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 |
|---|---|---|---|---|---|
ad397c52a4f3663dc82b35e80db50f2a0d671a52 | 1,622 | package uk.gov.dwp.queue.triage.core.jms;
import com.google.common.collect.ImmutableMap;
import org.junit.Test;
import uk.gov.dwp.queue.triage.core.domain.FailedMessage;
import uk.gov.dwp.queue.triage.id.FailedMessageId;
import javax.jms.JMSException;
import javax.jms.TextMessage;
import static org.mockito.Mockito.d... | 41.589744 | 111 | 0.767571 |
bac5ca1fd5fc2642bf41d7436a288a9b9792bea4 | 518 | package cn.xueden.system.dao;
import cn.xueden.common.core.web.domain.SysLog;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
/*import com.baomidou.mybatisplus.mapper.BaseMapper;*/
import java.util.List;
import java.util.Map;
/**功能描述:系统日志 Mapper 接口
* @Auther:http://www.xueden.cn
* @Date:2020/3/6
* @Desc... | 21.583333 | 55 | 0.747104 |
fc62fe61b1159fdf474b850b419436163c12826b | 6,027 | /*
* Copyright 2018. AppDynamics LLC and its affiliates.
* All Rights Reserved.
* This is unpublished proprietary source code of AppDynamics LLC and its affiliates.
* The copyright notice above does not evidence any actual or intended publication of such source code.
*
*/
package com.appdynamics.extensions.sitem... | 53.336283 | 161 | 0.714452 |
aef83393b4b3e8fb7c2f0ab8ecbbd2bc0dd7ba43 | 5,269 | package com.app.staysafefinal;
import androidx.appcompat.app.AppCompatActivity;
import androidx.fragment.app.Fragment;
import androidx.fragment.app.FragmentManager;
import androidx.fragment.app.FragmentPagerAdapter;
import androidx.viewpager.widget.ViewPager;
import android.content.Intent;
import android.os.Bundle;
i... | 27.731579 | 115 | 0.654773 |
83375a19c003238bbdc32259d9ec1e26b20d8638 | 3,537 | // RobotBuilder Version: 3.1
//
// This file was generated by RobotBuilder. It contains sections of
// code that are automatically generated and assigned by robotbuilder.
// These sections will be updated in the future when you export to
// Java from RobotBuilder. Do not put any code or make any change in
// the blocks... | 38.868132 | 148 | 0.702856 |
da1e44a1c27581b006639bc8ebdf510d671e1714 | 8,076 | package br.com.fernando.chapter08_enterpriseJavaBeans.part02_statelessSessionBeans;
import static br.com.fernando.Util.APP_FILE_TARGET;
import static br.com.fernando.Util.EMBEDDED_JEE_TEST_APP_NAME;
import static br.com.fernando.Util.HTTP_PORT;
import static br.com.fernando.Util.downVariables;
import static br.com.fer... | 42.730159 | 169 | 0.644626 |
b8c9dbe299c5e765eecd2ac406ed6142d5e1bf2d | 5,268 | package de.adito.ojcms.utils;
import org.jetbrains.annotations.*;
import java.util.*;
import java.util.function.*;
/**
* An index based iterator implementation.
* Supports custom start and end indices and might be supplied with a remover function.
*
* @param <ELEMENT> the elements provided by the iterator
* @au... | 30.988235 | 135 | 0.691344 |
8097536a3557db5c14ce381f277d6156ab082784 | 1,483 | /*
* Copyright 2013-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... | 22.815385 | 79 | 0.703304 |
b3c917b5b3194aa6df6bb560e54e73b6f8689775 | 9,338 | /**
* This program and the accompanying materials
* are made available under the terms of the License
* which accompanies this distribution in the file LICENSE.txt
*/
package com.archimatetool.editor.preferences;
import org.eclipse.jface.preference.IPreferenceStore;
import org.eclipse.swt.SWT;
import org.... | 47.161616 | 151 | 0.708824 |
ef76d1d347805c2b35c687eed8d57b45680072fb | 688 | package org.sistcoop.persona.admin.client.resource;
import javax.ws.rs.Consumes;
import javax.ws.rs.DELETE;
import javax.ws.rs.GET;
import javax.ws.rs.PUT;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;
import javax.ws.rs.core.Response;
import org.sistcoop.persona.representations.idm.AccionistaRepres... | 22.193548 | 73 | 0.797965 |
07c4042e6743dd7da7461db07bf042ec40b17d5d | 3,845 | /*
* 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
* distribute... | 26.517241 | 96 | 0.592978 |
b8a807e2c622cce93de3353254adb689714df23a | 1,116 | package com.mirkocaserta.bruce.key;
import com.mirkocaserta.bruce.BruceException;
import org.bouncycastle.jce.provider.BouncyCastleProvider;
import org.junit.jupiter.api.Test;
import java.security.Security;
import static com.mirkocaserta.bruce.Bruce.*;
import static java.nio.charset.StandardCharsets.UTF_8;
import st... | 30.162162 | 85 | 0.718638 |
f56a7f63712e641e50c011ccd26a122e1bb1f0fe | 441 | package dexter.ir.list;
import dexter.ir.Expr;
import dexter.ir.Visitor;
import dexter.ir.bool.CallExpr;
import java.util.Arrays;
/**
* Created by Maaz Ahmad on 6/25/19.
*/
public class LengthExpr extends CallExpr
{
public LengthExpr (Expr list)
{
super("len", Arrays.asList(list));
}
... | 20.045455 | 72 | 0.653061 |
c1c3abf2abd1f6e5e7def40388f651bbaf574ab7 | 1,314 | /*
Copyright 2016 Goldman Sachs.
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... | 23.890909 | 66 | 0.653729 |
a762b7cac60e0cd4fd47f1fc908ef511a00c4240 | 2,567 | /**
* Copyright 2015-2016 Debmalya Jash
* <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 required by applicabl... | 27.021053 | 83 | 0.597585 |
a5a8e307349e19be523e781bf30a160eff1f712c | 6,183 | /**
* Copyright Intellectual Reserve, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or a... | 37.932515 | 146 | 0.784894 |
471f57ecd0eeb2cc8f5dc8a43b1b22dffe9bcfcf | 2,921 | package com.oracle.cloud.compute.jenkins.model;
import java.util.Objects;
public class SSHKey {
// Modified from swagger-codegen -l jaxrs-cxf-client
// - renamed from SSHKeyResponse to SSHKey
private Boolean enabled = null;
private String key = null;
private String name = null;
private String... | 22.820313 | 80 | 0.572749 |
6c84c3468717263c4f61152aee852348370c5f89 | 11,865 | /*
* 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 ... | 32.958333 | 104 | 0.564939 |
f5bdb5d371994f114f7f1e90d8b8215a7ee15b52 | 6,216 | package com.distkv.server.service;
import com.distkv.common.utils.FutureUtils;
import com.distkv.rpc.protobuf.generated.CommonProtocol;
import com.distkv.rpc.protobuf.generated.DictProtocol;
import com.distkv.rpc.protobuf.generated.DictProtocol.DictGetItemResponse;
import com.distkv.rpc.protobuf.generated.DictProtocol... | 44.4 | 95 | 0.710264 |
660312e03587a120b8cc566eec7c02a767d0eb73 | 5,773 | package andres_sjsu.imagesearch.activities;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.net.ConnectivityManager;
import android.net.NetworkInfo;
import android.view.inputmethod.InputMethodManager;
import android.widget.AdapterView;
import android.widget.Ad... | 32.432584 | 117 | 0.653906 |
1c30c92916ed88cda46fcc8b4af8fd178193ff4c | 1,424 | package com.rafaelfiume.salume.web.model;
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlElementWrapper;
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlProperty;
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlRootElement;
import com.rafaelfiume.salume.domain.MoneyD... | 33.904762 | 105 | 0.755618 |
2ee3b5c5be156fea40e052c129975abcbb5a1ae3 | 3,279 | package com.wya1.iproperty.controller;
import org.springframework.stereotype.Controller;
import com.wya1.iproperty.controller.BaseController;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.ui.Model;
import o... | 31.228571 | 90 | 0.671241 |
a24bcb0edd454bb76df5eed3416ed2246cdc340a | 3,625 | // Copyright 2019 Google 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
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... | 33.564815 | 99 | 0.706207 |
32323f50928efce975aee6316ed370b1e1b28bd7 | 22,850 | package cn.lovepet.shops.view.ui.activity.content;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.text.TextUtils;
import android.view.View;
import android.view.a... | 39.328744 | 159 | 0.635624 |
d1826bc6ba178cde7be195bd81b4384ef6dcf0c5 | 2,415 | /*
* Jitsi, the OpenSource Java VoIP and Instant Messaging client.
*
* 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.or... | 31.363636 | 75 | 0.624017 |
8aef410d1e93ce9b817bdba1398ce07a6510e421 | 693 | package com.chaoxing.gsd.modules.entity;
/**
* 对应表user_file_main
* @author winsl
*
*/
public class UserFileMain {
private String userid;
private Integer fileid;
private String extend;
public String getUserid() {
return userid;
}
public void setUserid(String userid) {
this... | 18.72973 | 60 | 0.607504 |
76a7878cabb3a4a6c718391a6f28a576bc07fd1a | 3,816 | /*
* Copyright 2007 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to i... | 36 | 80 | 0.690514 |
60d7277985f96de1591eda1a0a14739cb673950b | 5,683 | /*
* Copyright 1999-2015 dangdang.com.
* <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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law... | 32.474286 | 152 | 0.683266 |
c22170e30da4619a6677317026ece48278060f29 | 1,687 | package org.wjw.java8;
import org.junit.Test;
import java.math.BigDecimal;
import java.util.Arrays;
import java.util.List;
/**
* Created by SWGawain on 2017/5/12.
*/
public class LambdaTest {
@Test
public void BasicTest(){
Arrays.asList(1,2,3).forEach( e -> System.out.println(e));
}
@Test... | 20.325301 | 66 | 0.509781 |
5085c14961608542e66df3e9beee27ab94306fa5 | 2,197 | /*
* Copyright 2001-2014 Aspose Pty Ltd. All Rights Reserved.
*
* This file is part of Aspose.Pdf. The source code in this file
* is only intended as a supplement to the documentation, and is provided
* "as is", without warranty of any kind, either expressed or implied.
*/
package programmersguide.workingwithasp... | 39.945455 | 128 | 0.694128 |
78b8f04dbfbb14bf1b3e6aecc5ba6c5fdc9208e6 | 1,193 | package com.twosheds.pi;
public class ChudnovskyActivity extends PiSeriesActivity {
private double multiplier;
private double factorial;
private double factorial3;
private double factorial6;
private double piInverse;
@Override
protected void init() {
multiplier = 12.0 / Math.pow(64... | 29.097561 | 156 | 0.564962 |
7603aed9d17ce886a1a192c78323302193d5a94e | 665 | package io.github.vm.patlego.enc;
import javax.annotation.Nonnull;
public interface Security {
/**
* Decrypts a token using the requested encryption service within the system
* @param token Encrypted token, the token entered within the system must be encrypted using this or else decryption risks failin... | 30.227273 | 134 | 0.705263 |
4122587e8c3b76b187923384002b37bd36fb6e14 | 4,048 | /*
* Copyright 2021 IBM Corporation
*
* 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... | 32.645161 | 100 | 0.72999 |
6b8f52044423c4a93768305375275dbe2c095b0e | 2,189 | package com.showka.service.validator.u05;
import java.math.BigDecimal;
import org.junit.Test;
import org.springframework.beans.factory.annotation.Autowired;
import com.showka.common.PersistenceTestCase;
import com.showka.domain.builder.ShohinBuilder;
import com.showka.domain.builder.UriageMeisaiBuilder;
import com.s... | 22.802083 | 72 | 0.723161 |
587eb561cbbf21861daa1ad503578367d64ed611 | 894 | package com.example.plugin;
import org.apache.ibatis.executor.statement.StatementHandler;
import org.apache.ibatis.plugin.*;
import java.sql.Connection;
import java.util.Properties;
//v2-chapter5
@Intercepts({@Signature(
type = StatementHandler.class,
method = "prepare",
args = {Connection.cl... | 24.162162 | 69 | 0.678971 |
30819593f71483415861db63b44e3b286cee9319 | 1,832 | package com.andersenlab.crm.utils;
import com.andersenlab.crm.rest.BaseResponse;
import com.fasterxml.jackson.databind.ObjectMapper;
import lombok.SneakyThrows;
import org.springframework.http.MediaType;
import javax.servlet.http.HttpServletResponse;
public class ResponseWriter<T> {
private final HttpServletRes... | 28.625 | 87 | 0.694869 |
2b00a8a538368b98e2ee34baf00304ebf61efeb1 | 161 | package io.eventuate.tram.viewsupport.rebuild;
import io.eventuate.tram.events.common.DomainEvent;
public class SnapshotOffsetEvent implements DomainEvent {
}
| 23 | 57 | 0.838509 |
e6c899ad6edb646b74b2f3c22fc3396595918fdc | 2,141 | package br.ufc.mdcc.mpos.util;
import java.util.regex.Pattern;
/**
* @author Philipp
*/
public final class Util {
private static Pattern patternIpAddress;
private static final String IPADDRESS_PATTERN = "^([01]?\\d\\d?|2[0-4]\\d|25[0-5])\\."
+ "([01]?\\d\\d?|2[0-4]\\d|25[0-5])\\."
+ "([01]?\\d\\d?|2[0-4... | 24.05618 | 100 | 0.596917 |
8aa94a3bbf3b2e26931072cb1d9fc3df5948c844 | 593 | package com.example.projectmanagement.SpringSecurity;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;
@Configuration
public class StateResou... | 37.0625 | 81 | 0.797639 |
0dfd34dc7abe9b593e21ea680bc273a4609fe544 | 333 | package repetition.exercises.solution.inputoutputfilesystems;
import java.io.File;
import java.util.Date;
public class Exercise7 {
public static void main(String[] args) {
File file = new File("test.txt");
Date date = new Date(file.lastModified());
System.out.println("\nThe file was last modified on: " + date ... | 27.75 | 72 | 0.717718 |
642989d54b4c93a87c95d907e9838cc4390344fe | 1,719 | /*
* Copyright (c) 1999, Oracle and/or its affiliates. All rights reserved.
* ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*/
package goodman.javax.naming.directory;
import goodman.javax.naming.NamingException;
/**
* This class is ... | 24.211268 | 84 | 0.687027 |
cb2ab3b294177e967d587a828361cf2811b3e8d9 | 1,391 | package org.didelphis.genetics.alignment.operators.comparators;
import org.didelphis.genetics.alignment.operators.Comparator;
import org.didelphis.language.phonetic.segments.Segment;
import org.didelphis.language.phonetic.sequences.Sequence;
import org.didelphis.structures.contracts.Streamable;
import org.didelphis.st... | 29.595745 | 75 | 0.726815 |
ce940b6c687b812d7b2704b5673f48ab12c7f52f | 1,357 | /*
* 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 operadoresunarios;
/**
*
* @author rafae
*/
public class OperadoresUnarios {
/**
* @param args the command line a... | 22.245902 | 79 | 0.493736 |
de32ffc494e7c0331bfd93f89f3d21c02b9a3dc8 | 2,067 | package mflix.api.daos;
import com.mongodb.ConnectionString;
import com.mongodb.WriteConcern;
import com.mongodb.client.MongoClient;
import com.mongodb.client.MongoClients;
import mflix.config.MongoDBConfiguration;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith... | 32.809524 | 88 | 0.79342 |
bb32d5aa8db6234fce5ee831eb58a9b9d02480b9 | 11,039 | /*
* Copyright © 2017 Cask Data, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed t... | 45.057143 | 120 | 0.703687 |
f130caa4aec0052e325219465e26c62df4ab86b0 | 263 | package com.thaiopensource.validate.auto;
import org.xml.sax.SAXException;
import org.xml.sax.XMLReader;
import com.thaiopensource.validate.auto.SchemaFuture;
public interface SchemaReceiver {
SchemaFuture installHandlers(XMLReader xr) throws SAXException;
}
| 26.3 | 65 | 0.8327 |
e2dea0bcd946fbab50122419ad6778dfc18096cd | 701 | package txengine.systems.dungeon.generate;
import txengine.structures.Canvas;
import txengine.structures.CanvasNode;
import txengine.systems.dungeon.Dungeon;
import java.util.List;
import java.util.Map;
import java.util.Random;
public interface BranchPasser {
List<CanvasNode> pass(final List<CanvasNode> lastPass... | 31.863636 | 120 | 0.713267 |
487a9b2749e60769c6c93463991b7ee1bd1cb03b | 443 | package org.recap.config;
import brave.sampler.Sampler;
import org.junit.Test;
import org.mockito.InjectMocks;
import org.recap.BaseTestCaseUT;
import static org.junit.Assert.assertNotNull;
public class SamplerConfigUT extends BaseTestCaseUT {
@InjectMocks
SamplerConfig samplerConfig;
@Test
public ... | 20.136364 | 57 | 0.747178 |
1c258cbb09cca8c882b4524aae786ba6e231b50e | 538 | package Strategy;
import Main.MainJFrame;
import java.awt.Image;
import javax.swing.ImageIcon;
public class PoliceLightBehaviour implements LightBehaviour {
@Override
public void lightUp(MainJFrame frame) {
Image img = new ImageIcon(getClass().getResource("/Images/Police.png")).getImage();
... | 28.315789 | 112 | 0.693309 |
10b1dd841549028652a22abac8caddfeecc1e11d | 688 | package com.lee.tac.model;
import java.util.Date;
/**
* author zhaoli
*/
public class View {
private Integer id;
private String time;
private Integer pv;
private Integer uv;
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
... | 14.333333 | 38 | 0.542151 |
fc42ef88707afb109a27d015009690fd6120fc55 | 2,173 | package githubbiostats;
import com.google.common.collect.ImmutableList;
import githubbiostats.biostat.BioStat;
import org.junit.Before;
import org.junit.Rule;
import org.junit.Test;
import org.mockito.Mock;
import org.mockito.junit.MockitoJUnit;
import org.mockito.junit.MockitoRule;
import java.util.ArrayList;
impor... | 30.180556 | 90 | 0.709158 |
e44c34b03e5426f5ea194d36fa13579dc096b7e1 | 2,386 | import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
public abstract class insert_Produces {
public static void insert_Pro (String produces) throws SQLException {
String producesT = "INSERT INTO Produces (year_pro,quantity,fid,pid) " + "VALUES (?,?,?,?)";
Str... | 41.137931 | 119 | 0.432523 |
438a920e67819826f9e89273bb68243e9fd397f1 | 1,902 | package com.polydes.paint.app.editors.image.tools;
import java.awt.Graphics;
import java.awt.Point;
import java.awt.Rectangle;
import com.polydes.paint.app.editors.image.DrawArea;
import com.polydes.paint.app.editors.image.ImageUtils;
import com.polydes.paint.app.editors.image.ShapeUtils;
public class Line implement... | 20.451613 | 105 | 0.686646 |
5bd8290293fa55a1bda7a4071158833b20f6382b | 4,643 | /*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* See the NOTICE file distributed with this work for additional
* information regarding copyright ownership.
* You may obtain a copy of the License at
*
* http://www.apache.... | 39.347458 | 100 | 0.665949 |
4479f912c5872d80eca7f78e5b711b39b9f3df84 | 1,194 | package app.model;
import javax.persistence.Column;
import javax.persistence.DiscriminatorColumn;
import javax.persistence.DiscriminatorType;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Inherita... | 24.367347 | 78 | 0.79732 |
f3046472265a6c933dacf6cdfec1b3361926c454 | 2,245 | package com.shahin.httpServer.utils;
import java.net.URLDecoder;
import java.nio.charset.StandardCharsets;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.StringTokenizer;
public class ParserUtils {
public final static char[] ALPHABET = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefg... | 31.619718 | 123 | 0.513586 |
f765cbbb1ccef96974a49abbf9f79a55e929c17b | 3,560 | /*
* 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.87234 | 128 | 0.741292 |
b32a7cd3911917bff6206c634f7f06be5ab42096 | 1,897 | package io.onebeacon.sample.baseservice;
import android.app.Service;
import android.content.Intent;
import android.os.Binder;
import android.os.IBinder;
import android.util.Log;
import java.util.Collection;
import io.onebeacon.api.Beacon;
import io.onebeacon.api.BeaconsMonitor;
/**
* Monitor Service
*/
public cla... | 25.635135 | 99 | 0.642066 |
5ce1c537dbe835b3cca2a80c97e70e81f3c1414b | 395 | package mxrcon.Code;
public class DefineValues
{
public static final int MODULE_VERSION_SUPPORT = 1;
public static final String PATH_FILE_SETTING = "setting.xml";
public static final String PATH_FILE_SERVERS = "servers.xml";
public static final String PATH_FOLDER_PLUGIN = "./plugins/";
public stati... | 35.909091 | 88 | 0.764557 |
e43cd0d895439bfb6f37ce49c6201640d70683c2 | 3,330 | package com.gemserk.resources.monitor;
import static org.junit.Assert.assertThat;
import org.hamcrest.core.IsEqual;
import org.junit.Test;
import com.gemserk.resources.MockResource;
import com.gemserk.resources.dataloaders.MockDataLoader;
public class ResourceStatusMonitorTest {
@Test
@SuppressWarnings({ "rawtyp... | 32.019231 | 84 | 0.793093 |
71127de628da4cb882ceb3cf90faa7d7a7b41498 | 71 | public class Foo {
void m() {
true && false.<caret>
}
} | 14.2 | 29 | 0.464789 |
323629271247664930469feacf8c0358a5309808 | 1,627 | package com.db117.example.leetcode.solution;
/**
* 实现 pow(x, n) ,即计算 x 的 n 次幂函数。
* <p>
* 示例 1:
* <p>
* 输入: 2.00000, 10
* 输出: 1024.00000
* 示例 2:
* <p>
* 输入: 2.10000, 3
* 输出: 9.26100
* 示例 3:
* <p>
* 输入: 2.00000, -2
* 输出: 0.25000
* 解释: 2-2 = 1/22 = 1/4 = 0.25
* 说明:
* <p>
* -100.0 < x < 100.0
* n 是 32 位... | 18.488636 | 60 | 0.408113 |
36d9fd7be698ec126e59ce7efda9e0f38b1644e0 | 1,749 | // Copyright 2020 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package com.android.webview.chromium;
import android.annotation.TargetApi;
import android.net.Network;
import android.webkit.PacProcessor;
import org.ch... | 25.720588 | 87 | 0.707833 |
6cf744d9c84fc6f4e56042fe3da4348b28f9f4b4 | 2,246 | package net.optifine.entity.model;
import java.util.Iterator;
import net.minecraft.client.Minecraft;
import net.minecraft.client.renderer.entity.EntityRendererManager;
import net.minecraft.client.renderer.entity.GhastRenderer;
import net.minecraft.client.renderer.entity.model.GhastModel;
import net.minecraft.client.re... | 31.194444 | 154 | 0.617542 |
1a49f6670c6f75333a33f5950d36d9bffbe9c232 | 4,109 | package edu.harvard.hms.dbmi.avillach.hpds.etl.phenotype;
import java.io.*;
import java.util.Date;
import java.util.concurrent.ExecutionException;
import org.apache.commons.csv.CSVFormat;
import org.apache.commons.csv.CSVRecord;
import org.apache.log4j.Logger;
import com.google.common.cache.CacheLoader.InvalidCacheL... | 38.401869 | 163 | 0.711365 |
f7318b7e19143ba58230e96ca1a635a288327b49 | 801 | package org.jboss.resteasy.tracing.providers.jsonb;
import org.jboss.resteasy.tracing.api.RESTEasyTracingInfoFormat;
import org.jboss.resteasy.tracing.api.providers.TextBasedRESTEasyTracingInfo;
import javax.json.bind.Jsonb;
import javax.json.bind.JsonbBuilder;
public class JSONBJsonFormatRESTEasyTracingInfo extends... | 26.7 | 86 | 0.725343 |
858d8e2f258a95f35f631f9218e6beb169a54031 | 2,656 | package com.example.newschool.activity;
import android.content.Intent;
import android.net.Uri;
import android.support.design.widget.TabLayout;
import android.support.v4.view.ViewPager;
import android.support.v7.app.ActionBar;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.sup... | 36.383562 | 88 | 0.712349 |
2b894521bb2dc38ec47c660a9b13dbab71a209c2 | 923 | package com.bugtrack.entity;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Embeddable;
import java.io.Serializable;
/**
* The grpermission provides data structure
* to store links between users and groups
* @version 0.9.9 1 July 2016
* @author Sergey Samsonov
*/
publ... | 20.977273 | 61 | 0.691224 |
b5a136a2adf71bc51c26dc562bd8a79c92617391 | 6,547 | package io.ebean.xtest.plugin;
import io.ebean.DB;
import io.ebean.Database;
import io.ebean.FetchPath;
import io.ebean.Query;
import io.ebean.plugin.BeanDocType;
import io.ebean.plugin.BeanType;
import io.ebean.plugin.Property;
import io.ebean.text.PathProperties;
import io.ebeaninternal.api.SpiQuery;
import io.ebean... | 28.219828 | 134 | 0.719719 |
c1772d25a0aa0e3b93d9329720148f14d10f1297 | 3,813 | package controllers;
import config.AuthorizationServerManager;
import config.AuthorizationServerSecure;
import config.JwtUtils;
import dtos.ConstraintGroups;
import dtos.RegistrationDto;
import models.User;
import play.data.Form;
import play.data.FormFactory;
import play.mvc.*;
import repositories.EventRepository;
imp... | 39.309278 | 191 | 0.654603 |
0588c8985e0c0b61e262c5957e07c6bd43d44656 | 1,202 | package listeningrain.cn.blog.utils;
import java.security.MessageDigest;
/**
* User: sunqingfeng6
* Date: 2018/11/19 9:25
* Description:
*/
public class EncryptUtils {
//MD5加密
public static String MD5(String originStr) {
char hexDigits[]={'0','1','2','3','4','5','6','7','8','9','a',... | 30.05 | 91 | 0.477537 |
eaf2db629c5eba15b411b3224770e172db735280 | 669 | package com.virt.GCM;
import android.app.Activity;
import android.content.ComponentName;
import android.content.Context;
import android.content.Intent;
import android.support.v4.content.WakefulBroadcastReceiver;
/**
* Class helper for receiving the broadcast messages
*
* @author KjellZijlemaker
*
*/
public cla... | 26.76 | 68 | 0.793722 |
334278cb943ea147c26ed3de5fcade3bc36f347a | 2,181 | package cn.az.project.news.admin.shiro;
import cn.az.project.news.core.jwt.JwtFilter;
import cn.hutool.core.map.MapUtil;
import org.apache.shiro.mgt.SessionsSecurityManager;
import org.apache.shiro.spring.security.interceptor.AuthorizationAttributeSourceAdvisor;
import org.apache.shiro.spring.web.ShiroFilterFactoryBea... | 33.045455 | 124 | 0.757909 |
87c846994132f4d9ca53f8b5d6853ee555d16d5b | 1,902 | package com.seko0716.es.plugin.pipeline.rest;
import org.elasticsearch.action.update.UpdateRequest;
import org.elasticsearch.client.node.NodeClient;
import org.elasticsearch.common.settings.Settings;
import org.elasticsearch.common.xcontent.XContentParser;
import org.elasticsearch.rest.BaseRestHandler;
import org.elas... | 42.266667 | 118 | 0.77918 |
af86df10ea00a5a9ea42b50a95f4c1ff9efedf4c | 3,543 | /*
* Copyright 2014+ Carnegie Mellon University
*
* 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... | 37.294737 | 130 | 0.695738 |
ca33d62b4f57930b9a2ad4a35411fc517771d864 | 210 | package co.nstant.in.cbor.model;
public class HalfPrecisionFloat extends AbstractFloat {
public HalfPrecisionFloat(float value) {
super(SpecialType.IEEE_754_HALF_PRECISION_FLOAT, value);
}
}
| 21 | 64 | 0.757143 |
be506d00f37126c270493f39b10a7c73dfcde6ca | 3,509 | package com.example.config;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.http.MediaType;
import org.springframework.web.accept.ContentNegotiationManager;
import or... | 35.09 | 97 | 0.764605 |
163072629d1ae127770f141da9585283bf92ff8d | 5,577 | package mf;
/*Generated by MPS */
import junit.framework.TestCase;
import org.junit.Assert;
import junit.textui.TestRunner;
import junit.framework.TestSuite;
public class DateRangeTester extends TestCase {
/*package*/ MfDate myDec15 = new MfDate(1999, 12, 15);
/*package*/ MfDate myJan2 = new MfDate(2000, 1, 2);
... | 43.570313 | 74 | 0.715259 |
74c919d4e355d3e3c147af043b5216cc299a46fc | 1,943 | /* 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... | 31.33871 | 125 | 0.65054 |
293c7a5ac59418d498f735616e7999b662d9c31e | 3,042 | package com.pushtorefresh.storio.contentresolver.operations.put;
import android.content.ContentValues;
import android.support.annotation.NonNull;
import com.pushtorefresh.storio.contentresolver.StorIOContentResolver;
import com.pushtorefresh.storio.operations.PreparedOperation;
import java.util.Collection;
/**
* R... | 36.214286 | 119 | 0.680473 |
df7345f62f038137432b495e7a58716d0cc3f3f6 | 6,217 | package com.jinhx.blog.controller.social;
import com.jinhx.blog.common.aop.annotation.Log;
import com.jinhx.blog.common.constants.RedisKeyConstants;
import com.jinhx.blog.common.enums.ResponseEnums;
import com.jinhx.blog.common.exception.MyException;
import com.jinhx.blog.common.util.MyAssert;
import com.jinhx.blog.co... | 33.069149 | 139 | 0.687148 |
f12420391d629ff7e9868ae07b940b2ff5ad1a37 | 1,597 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.security.implementation;
import com.azure.resourcemanager.security.fluent.models.ServerVulnerabilityAssessmentInner;
import com.... | 33.978723 | 106 | 0.763932 |
045b2a63eed48b0cad7522fd021c2371c316ceba | 11,689 | /*
* $Id$
*/
/*
Copyright (c) 2000-2016 Board of Trustees of Leland Stanford Jr. University,
all rights reserved.
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... | 46.943775 | 181 | 0.732655 |
7ece9e38444ffe30ae3f44df2df8e3d96d2513df | 4,662 | package rs.nicktrave.statsd.loadtest;
import com.beust.jcommander.JCommander;
import com.beust.jcommander.Parameter;
import java.io.IOException;
import java.net.InetSocketAddress;
import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.CountDownLatch;
import java.util.concurrent.Executors;
impor... | 31.931507 | 96 | 0.67589 |
d6d4b905b924ff7f6cf407ed2b712420a6386439 | 3,406 | package org.revenj.server.servlet;
import org.junit.Assert;
import org.junit.Test;
import org.revenj.TreePath;
import org.revenj.Utils;
import org.w3c.dom.Element;
import java.io.IOException;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.time.OffsetDateTime;
import java.time.Zone... | 39.149425 | 246 | 0.707868 |
f4f4349f9f75a2d51aeedcdbacc347adcf6509be | 319 | package io.api.etherscan.model.utility;
import io.api.etherscan.model.UncleBlock;
/**
* ! NO DESCRIPTION !
*
* @author GoodforGod
* @since 30.10.2018
*/
public class UncleBlockResponseTO extends BaseResponseTO {
private UncleBlock result;
public UncleBlock getResult() {
return result;
}
}
| 16.789474 | 58 | 0.695925 |
8538e39c6c8844f7bc78523d67e83b7e373c4a42 | 3,348 | /*
* #%L
* BroadleafCommerce Integration
* %%
* Copyright (C) 2009 - 2016 Broadleaf Commerce
* %%
* Licensed under the Broadleaf Fair Use License Agreement, Version 1.0
* (the "Fair Use License" located at http://license.broadleafcommerce.org/fair_use_license-1.0.txt)
* unless the restrictions on use therein a... | 35.617021 | 115 | 0.698029 |
d5534257a7981a08edef9392b8f0eeb817af71d4 | 480 | /**
* *****************************************************************************
*
* <p>Copyright FUJITSU LIMITED 2019
*
* <p>Creation Date: 24.09.2019
*
* <p>*****************************************************************************
*/
package org.oscm.identity.model;
import lombok.Data;
/** Simple dat... | 21.818182 | 83 | 0.46875 |
fbf0e43250dd628064591e8b12b81f94340833a6 | 964 | package ee.tuleva.onboarding.audit;
import ee.tuleva.onboarding.auth.principal.Person;
import lombok.RequiredArgsConstructor;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.springframework.stereotype.Component;
@Aspect
@Component
@RequiredArgsConstructor
public class ... | 34.428571 | 130 | 0.798755 |
b3befb531fafa0c766e6346e693b75439e5fc9b3 | 1,019 | class Solution
{
static void breakLine()
{
System.out.print("\n---------------------------------\n");
}
static int MAX = 10;
static int arr[] = new int[MAX], no;
static void nQueens(int k, int n)
{
for (int i = 1; i <= n; i++)
{
if (canPlace(k, i))
{
arr[k] = i;
if (k == n)
{
disp... | 14.152778 | 60 | 0.447498 |
af2c5aed93da1468051f272c67d30dde404b5c14 | 7,378 | /*
* The MIT License
*
* Copyright: Copyright (C) 2014 T2Ti.COM
*
* 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... | 30.36214 | 88 | 0.728246 |
c328ed6ef77a795218bc66ec12e422af6f6bcd0e | 8,772 | package net.mattcarpenter.srs.sm2;
import com.google.common.collect.ImmutableMap;
import net.mattcarpenter.srs.sm2.utils.MockTimeProvider;
import org.joda.time.DateTime;
import org.joda.time.format.DateTimeFormat;
import org.testng.Assert;
import org.testng.annotations.BeforeMethod;
import org.testng.annotations.Test;... | 36.55 | 106 | 0.668035 |
50f8f8ba4a62f3754fda47e6e4d061e841b40807 | 7,669 |
package shiver.me.timbers.aws.medialive;
import java.util.ArrayList;
import java.util.List;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyDescription;
im... | 41.907104 | 210 | 0.756944 |
61ae14e3d73de519cf886bb3ee90f7ecfa5e864b | 417 | package application.repositories;
import application.entities.security.UserSession;
import org.springframework.data.jpa.repository.JpaRepository;
public interface UserSessionRepository extends JpaRepository<UserSession, Integer> {
public UserSession findByTokenAndIsValidTrue(String token);
public UserSession... | 37.909091 | 116 | 0.851319 |
3de33667bd5dc0a32a49e89cf86e68a79f14eaac | 586 | package lambdaTest;
/**
* @author yyt
* @date 2021年12月26日 19:39
*/
public class Function4Test {
public static void main(String[] args) {
/**
* 通过[类名::new]的方式来实例化对象
* 原写法:ProductCreator creator = (id, name, price) -> new lambdaTest.Product(id, name, price);
*/
ProductCr... | 25.478261 | 101 | 0.610922 |
0869543e3c2d4420baa3d782e60ef92e4d1b2618 | 4,369 | package org.treblereel.gwt.three4g.demo.client.local.examples.performance;
import java.util.ArrayList;
import java.util.List;
import com.google.gwt.animation.client.AnimationScheduler;
import elemental2.dom.MouseEvent;
import jsinterop.base.Js;
import org.treblereel.gwt.three4g.cameras.PerspectiveCamera;
import org.t... | 35.811475 | 102 | 0.634241 |
24b8c7a8e66bb90d59102e6178922892ffffb910 | 13,557 | package authoring.controller;
import java.util.ArrayList;
import java.util.List;
import java.util.Observable;
import java.util.Observer;
import java.util.ResourceBundle;
import authoring.AuthorEnvironment;
import authoring.view.canvas.CanvasView;
import authoring.view.canvas.SpriteView;
import authoring.view.canvas.S... | 37.868715 | 237 | 0.644538 |
3ebebe1a8f6eec7f6c04bf41069b257cb198928a | 4,309 | package com.itextpdf.text;
import com.itextpdf.text.pdf.OutputStreamCounter;
import java.io.BufferedOutputStream;
import java.io.IOException;
import java.io.OutputStream;
import java.util.Properties;
public abstract class DocWriter implements DocListener {
public static final byte EQUALS = (byte) 61;
public s... | 24.907514 | 105 | 0.588071 |
3d73dec820cf70b5f5935af8fc4c4d0241303725 | 1,282 | package de.polocloud.api.component.base;
import de.polocloud.api.component.feature.ComponentOption;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
import java.util.function.Consumer;
public class SimpleTextBase<B extends TextBased<B>> implement... | 26.708333 | 92 | 0.654446 |
75bcdc31a155ea07e7ab3b7b83f65f9d5d446e5c | 527 | package dev.majek.advancements.shared;
import org.jetbrains.annotations.Contract;
import org.jetbrains.annotations.NotNull;
/**
* Enums implementing this interface are used to define data usually in {@link SharedObject}s.
* They can also be converted to a {@link String} to be used in JSON objects.
*/
public interf... | 25.095238 | 94 | 0.736243 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.