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 |
|---|---|---|---|---|---|
b678bb2fddbd5c1ff9f7c43da7c6bda3a577d89e | 6,041 | package org.highmed.dsf.fhir.dao;
import static org.junit.Assert.assertEquals;
import org.highmed.dsf.fhir.dao.jdbc.MeasureReportDaoJdbc;
import org.hl7.fhir.r4.model.MeasureReport;
import org.hl7.fhir.r4.model.MeasureReport.MeasureReportStatus;
import org.junit.Test;
public class MeasureReportDaoTest extends Abstra... | 25.06639 | 99 | 0.829664 |
c3d570489503951502f6cefee74abe7170aa40d8 | 210 | @MethodsReturnNonnullByDefault
@ParametersAreNonnullByDefault
package com.ridanisaurus.emendatusenigmatica.jei;
import mcp.MethodsReturnNonnullByDefault;
import javax.annotation.ParametersAreNonnullByDefault; | 30 | 54 | 0.904762 |
cffd7be9fb0f743e96954a58790fbb456c0ddd5b | 4,066 | /***
Copyright (c) 2016 CommonsWare, 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://www.apache.org/licenses/LICENSE-2.0. Unless required
by applicable law or agreed to in writing, so... | 29.251799 | 78 | 0.709051 |
f670100e1d7c35204e56e836b5cdb4ab3e7f4b50 | 549 | package com.peregud.shoppingcenter.servlet;
import org.junit.jupiter.api.Test;
import java.io.IOException;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.mockito.Mockito.*;
class DeleteDiscountServletTest extends MockInit {
@Test
void doGet() throws IOException {
whe... | 26.142857 | 61 | 0.717668 |
87175a5a2f2a7233d5a458d9121c52377b821fc2 | 1,507 | /**
* Copyright (C) 2004 - 2012 Shopzilla, Inc.
* All rights reserved. Unauthorized disclosure or distribution is prohibited.
*/
package com.shopzilla.api.client.model.response;
import java.util.ArrayList;
import java.util.List;
import com.shopzilla.api.client.model.Suggestion;
/**
*
* @author Tom Suthanurak... | 22.492537 | 78 | 0.66357 |
1dedb2c342dc01563500a1ec27b7fa1f78e7cbfa | 15,668 | package com.webimageloader.test;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStream;
import java.net.URL;
import java.net.URLConnection;
import java.net.URLStreamHandler;
import java.util.Random;
import java.util.concurrent.CountDownLatch;
import java.util... | 30.305609 | 120 | 0.597141 |
17643947fe9a41ba30ab8cbbcf2985368fd7c431 | 1,519 |
import java.awt.event.KeyEvent;
import java.awt.event.KeyListener;
public class KeyManager implements KeyListener {
private boolean[] keys;
public boolean up, left, right, jump, down, start, res;
private int counter = 1;
static boolean check = true;
public KeyManager() {
keys = new boolean[256];
... | 17.662791 | 57 | 0.614878 |
e6b529962239f9fb0097820a3a39b3db3d54025c | 7,279 | package com.atlassian.plugin.connect.plugin.web.panel;
import com.atlassian.plugin.ModuleDescriptor;
import com.atlassian.plugin.connect.api.descriptor.ConnectJsonSchemaValidator;
import com.atlassian.plugin.connect.api.web.WebFragmentLocationBlacklist;
import com.atlassian.plugin.connect.api.web.condition.ConditionLo... | 59.178862 | 213 | 0.752164 |
8da45c2957798478a7d47ac770f1b89635b0f9bf | 11,835 | /*
* 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... | 32.336066 | 80 | 0.575412 |
fbc622493a63b22059b7f8dfb6032e5e86d61ea3 | 2,610 | package org.infinispan.api.client.configuration;
import java.util.List;
import java.util.function.Supplier;
import org.infinispan.api.configuration.ClientConfig;
import org.infinispan.client.hotrod.FailoverRequestBalancingStrategy;
import org.infinispan.client.hotrod.ProtocolVersion;
import org.infinispan.client.hotr... | 87 | 855 | 0.869732 |
a9015b92d18f37180b18d9aa2a6b1c4b8780b0a9 | 9,869 | /*
* Copyright (c) 2017, 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 ... | 42.722944 | 100 | 0.603202 |
c35951165a44503b44e348dcbfbccd60216afcd4 | 7,016 | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package engines;
import distancemetrics.DistanceMetric;
import utils.InputOutput;
import utils.Mathematics;
import utils.RandomNumberGenerator;
import emo.Individual;
import emo.IndividualsSet;
import emo.Op... | 40.091429 | 95 | 0.579532 |
136ee120405343cf698911d3b24426451cb5db35 | 66 | package com.augustine.jpa.domain;
public class StdVoca {
}
| 11 | 34 | 0.69697 |
c07becb2ed0b8af6c5c675936228837cbfd25bdb | 272 | package com.mizuledevelopment.node.threads;
import com.mizuledevelopment.node.jedis.JedisPublisher;
public class PingRunnable implements Runnable {
@Override
public void run() {
new JedisPublisher().publishData("PING///" + System.getenv("ID"));
}
}
| 22.666667 | 74 | 0.716912 |
b7e1dd42a6ad77770b6f831eab5a5ad0f06f8220 | 5,336 | package com.trycatch.wasuradananjith.smartkubura2;
import android.app.ProgressDialog;
import android.content.Intent;
import android.content.SharedPreferences;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.text.method.LinkMovementMethod;
import android.view.View;
import andro... | 43.737705 | 139 | 0.566529 |
759003c832f9f3041e82794d887b2cf8eec2c3aa | 2,174 | package com.neusoft.labour.controller;
import javax.jws.WebService;
import javax.xml.ws.Holder;
import org.apache.log4j.Logger;
import com.neusoft.labour.service.InsurancePortService;
import com.neusoft.labour.util.CommonConstantUtil;
import cn.gov.ynhrss.psp.YnhrssPSPPortType;
import cn.gov.ynhrss.psp.Pspenv;
/**
... | 31.057143 | 210 | 0.734591 |
3f3373b5cc262bb90bb21aeedbd655b35d26ade9 | 1,630 | /*
* User Stories - Frontend
* Copyright (c) 2021 Falko Schumann <falko.schumann@muspellheim.de>
*/
package de.muspellheim.userstories.frontend;
import de.muspellheim.userstories.contract.messages.commands.CreateUserCommand;
import de.muspellheim.userstories.contract.messages.queries.UserQuery;
import de.muspellhe... | 26.721311 | 79 | 0.749693 |
9faa8853b4036a22baf0719d686df69a6712b8b9 | 3,039 | /*
* Copyright (c) 2002, 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 ... | 29.504854 | 84 | 0.604146 |
5ced27b2b288f09a9692747cf586f5d4ed58c1d8 | 1,337 | package ru.otus.quiz;
import lombok.RequiredArgsConstructor;
import org.springframework.context.MessageSource;
import org.springframework.stereotype.Component;
import ru.otus.infrastructure.IOService;
import ru.otus.quiz.config.QuizProps;
import ru.otus.quiz.domain.User;
import ru.otus.quiz.service.LoginService;
impor... | 34.282051 | 83 | 0.723261 |
4a204cdf6d7a36464c87e09c57cc574ce12efb08 | 1,026 | package binarySearch;
public class BinarySearch {
/**
* Function to search value using binary search algorithm.
* @param sortedArray array to be searched
* @param target search key value
* @return index if value found
* -1 if value not in the array
*/
public static int Bin... | 27 | 76 | 0.52924 |
8584358687205cd6790305883c25fdfaafb5eab6 | 472 | package com.alexvasilkov.foldablelayout.sample.data;
import com.google.gson.Gson;
import java.util.ArrayList;
public class order {
public String id;
public String user;
public ArrayList<orderItem> itemList;
public order(){}
public order(String user, ArrayList<orderItem> item_list){
thi... | 16.857143 | 62 | 0.663136 |
31b93dbd34cc12ae735113b3b262c5501252698c | 7,004 | package org.webcurator.core.coordinator;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.webcurator.core.exceptions.WCTRuntimeException;
import org.webcurator.core.scheduler.TargetInstanceManager;
import org.webcurator.core.util.PatchUtil;
import org.webcurator.core.visualization.VisualizationProgr... | 43.775 | 167 | 0.703027 |
7e16ca03f7e77cb7cfe4a10a98089655accce680 | 2,877 | package robosky.uplands.world.biome;
import robosky.uplands.block.BlockRegistry;
import robosky.uplands.block.UplandsOreBlock;
import robosky.uplands.world.feature.FeatureRegistry;
import robosky.uplands.world.feature.UplandsOreFeatureConfig;
import net.minecraft.block.Blocks;
import net.minecraft.entity.EntityCatego... | 44.261538 | 134 | 0.766771 |
3b41ebb80c2dfeb8c4282776eec892fd3401da67 | 1,452 | package de.hgu.gsehen.model;
import java.util.Date;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
@Entity
public class ManualWaterSupply {
@Id
@GeneratedValue
private long id;
private Date date;
private Double irrigation;
private Double precipitati... | 19.621622 | 93 | 0.670799 |
f79651fa6d3cb0f3d1094a2c6d8354663e23c697 | 767 | package L12InterfacesExercise.Ex04Telephony;
import java.util.List;
public class SmartPhoneImpl implements SmartPhone {
@Override
public void call(List<String> numbers) {
for (String number : numbers) {
if (number.matches("[0-9]*")) {
System.out.println(String.format("Cal... | 25.566667 | 75 | 0.521512 |
4c3d27a81088103eacfe8b36092cd8c84729510a | 173 | package org.cloud.ssm.service;
import org.cloud.ssm.entity.Person;
import org.cloud.ssm.utils.BaseService;
public interface PersonService extends BaseService<Person> {
}
| 19.222222 | 60 | 0.803468 |
159b9da5bf19a6cafdca72cc3da965bf1b04bd7d | 1,336 | package org.dfm.piggyurl.domain.port;
import org.dfm.piggyurl.domain.common.UserGroupType;
import org.dfm.piggyurl.domain.model.Group;
import org.dfm.piggyurl.domain.model.User;
import java.util.Optional;
public interface ObtainUser {
default Optional<User> getUserLoginDetail(final String userName, final String... | 29.688889 | 106 | 0.712575 |
73282e9b643b3a102d4591b2c4a210c141156ab8 | 769 | package io.openlineage.spark3.agent.lifecycle.plan.columnLineage.customVisitors;
import io.openlineage.spark3.agent.lifecycle.plan.columnLineage.ColumnLevelLineageBuilder;
import org.apache.spark.sql.catalyst.plans.logical.LogicalPlan;
/**
* Interface to visit custom {@link LogicalPlan} nodes to collect expression d... | 27.464286 | 100 | 0.752926 |
4b35a7148a183e7cb0b2a1c2132d3040385761f1 | 1,936 | package io.agent.agent;
import org.junit.jupiter.api.Test;
import static io.agent.agent.JarFiles.findAgentJarFromCmdline;
import static java.util.Arrays.asList;
import static org.junit.jupiter.api.Assertions.*;
class JarFilesTest {
@Test
void testCmdlineParserWildfly() {
// The command line argument... | 42.086957 | 148 | 0.647211 |
d03470a2d0f55b6a9b34c38fa671fed62bdcb029 | 405 | package csust.imageSearch.orm.dao.impl;
import csust.imageSearch.orm.Picture;
import csust.imageSearch.orm.dao.PictureDao;
public class PictureDaoImpl extends Base implements PictureDao{
@Override
public Picture getPictueByName(String name) {
String hql = "from Picture picture where picture.name = ?";
return (... | 27 | 88 | 0.777778 |
494fbdcfe7b78f84affacf34dd47873c649da504 | 3,224 | /**
* Copyright 2015-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0/
*
* or in the ... | 32.897959 | 94 | 0.664702 |
72ac06468b5d67a1f094afbdbb27963f104196ca | 814 | package cn.router7.mediator;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
* Abstract base class for party members.
*/
public abstract class PartyMemberBase implements PartyMember {
private static final Logger log = LoggerFactory.getLogger(PartyMemberBase.class);
protected Party party;
... | 21.421053 | 85 | 0.626536 |
e39e6588f9818b1ee6dd67c61a2aa7abcc67ac4e | 1,647 | package com.henry.android.popularmovies;
import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
import com.henry.android.popularmovies.data.MovieContract;
/**
* Created by Henry on 2017/9/14.
*/
public class MovieDbHelper extends SQLiteOpen... | 34.3125 | 110 | 0.697632 |
3646a44f882763abdfe0ab3277f1a085e2132b38 | 3,684 | /*
* 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... | 45.481481 | 119 | 0.7538 |
8154decb367e46f50dd7cfddfb3f73028c5c25e1 | 5,632 | package com.radish.master.system;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import com.cnpc.framework.utils.CodeException;
public class GUID {
// 共62个字符 0-9, A-Z, a-z, 支持 0-61的转换
private static final char[] CHARACTER_TABLE = { '0', '1', '2', '3', '4', '5', '6', '7', '8', '9',... | 32.554913 | 157 | 0.520064 |
fdf6fc6b8ff90d0ee1a9111d2ca8f5c0ba35c4b4 | 1,750 | package com.github.kjarosh.jfm.impl.mounter.rproxy.generator;
import com.github.kjarosh.jfm.api.FilesystemMapperException;
import com.github.kjarosh.jfm.api.annotations.Content;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.lang.reflect.Parameter;
import java.lang.re... | 27.34375 | 80 | 0.648 |
bf7ea8dadcc09b846ce3e64d06e172de17d377cd | 1,064 | package com.a6raywa1cher.muchelpspring.model;
import com.a6raywa1cher.muchelpspring.utils.Views;
import com.fasterxml.jackson.annotation.JsonIdentityInfo;
import com.fasterxml.jackson.annotation.JsonView;
import com.fasterxml.jackson.annotation.ObjectIdGenerators;
import lombok.Data;
import javax.persistence.*;
impor... | 23.130435 | 59 | 0.793233 |
7fda11b34c46b16f96eacada6a2724dd830fd365 | 1,503 | package com.avaje.ebeaninternal.api;
import java.sql.SQLException;
import com.avaje.ebean.annotation.ConcurrencyMode;
import com.avaje.ebean.bean.EntityBean;
import com.avaje.ebeaninternal.server.persist.dml.DmlHandler;
import com.avaje.ebeaninternal.server.persist.dmlbind.Bindable;
/**
* A plan for executing bean ... | 22.432836 | 76 | 0.697272 |
d976b1e92be4d716107b3d4757e60b963f158c4e | 11,308 | package uk.ac.ebi.fgpt.urigen;
import junit.framework.TestCase;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.jdbc.datasource.SingleConnectionDataSource;
import uk.ac.ebi.fgpt.urigen.dao.*;
import uk.ac.ebi.fgpt.urigen.exception.P... | 33.064327 | 145 | 0.562434 |
990224b38456993b04f75237577dbc9a47c268d3 | 1,451 | package com.yasinbee.libman.hex.domain.email.infrastructure;
import com.sendgrid.Method;
import com.sendgrid.Request;
import com.sendgrid.SendGrid;
import com.sendgrid.helpers.mail.Mail;
import com.sendgrid.helpers.mail.objects.Content;
import com.sendgrid.helpers.mail.objects.Email;
import com.yasinbee.libman.hex.dom... | 37.205128 | 99 | 0.69745 |
b6e3e44a63698e1e59c7e9f1fd6b675ed50e09b3 | 6,817 | package com.dev.bins.hexagonlayoutmanager;
import android.graphics.Rect;
import android.support.v7.widget.RecyclerView;
import android.view.View;
import android.view.ViewGroup;
import java.util.ArrayList;
import java.util.List;
/**
* Created by bin on 24/11/2016.
*/
public class HexagonLayoutManager extends Recyc... | 30.986364 | 147 | 0.50242 |
92a99a1203a9fe64a0603a77542f3489b1231704 | 4,478 | /*
* Licensed to the Hipparchus project under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The Hipparchus project licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may... | 34.183206 | 135 | 0.596025 |
e8ff15b897fc771fe977a366a8bd133f0aa53f95 | 946 | package kr.co.gardener.admin.model.user.list;
import kr.co.gardener.admin.model.user.User;
import kr.co.gardener.util.CommonList;
public class UserList extends CommonList<User> {
public UserList() {
super("유저 관리");
this.addTh("UserID","userId","none");
this.addTh("닉네임","userNick","text");
this.addTh("비밀번... | 27.028571 | 48 | 0.656448 |
1b50f7d8b6878218c1ef37c4d1b2d7f4d48ab215 | 634 | package com.imooc.mall.dao;
import com.imooc.mall.pojo.OrderItem;
import org.springframework.data.repository.query.Param;
import java.util.List;
import java.util.Set;
public interface OrderItemMapper {
int deleteByPrimaryKey(Integer id);
int insert(OrderItem record);
int insertSelective(OrderItem recor... | 25.36 | 80 | 0.769716 |
c71c95f4822beee1ca6249277d21a400e86033da | 598 | package com.pega.gsea.util;
public class Counter {
String id;
double cnt;
public Counter(String id, double cnt) {
super();
this.id = id;
this.cnt = cnt;
}
public Counter(String id) {
super();
this.id = id;
this.cnt = 0;
}
public String get... | 14.238095 | 43 | 0.489967 |
4ed134dab40c54d1b78783b1caae6b209c2ee321 | 7,753 | package us.ihmc.robotics.geometry;
import org.jfree.chart.ChartFactory;
import org.jfree.chart.ChartPanel;
import org.jfree.chart.JFreeChart;
import org.jfree.chart.plot.PlotOrientation;
import org.jfree.chart.plot.XYPlot;
import org.jfree.chart.renderer.xy.XYItemRenderer;
import org.jfree.data.xy.XYDataset;
import or... | 35.56422 | 129 | 0.659487 |
1b9f3ad13fef9a34a3c2419312afceecfa875559 | 13,144 | package com.example.saurab.abc.util;
import android.os.Environment;
import com.example.saurab.abc.vo.HttpResponseVO;
import org.apache.http.Header;
import org.apache.http.HttpEntity;
import org.apache.http.HttpResponse;
import org.apache.http.NameValuePair;
import org.apache.http.client.entity.UrlEncodedFormEntity;
imp... | 35.333333 | 99 | 0.587492 |
2fc269f5df0ec1ee815759d12af000af8030d856 | 2,935 | package com.example.binxie.helloworld.recyclerview;
import android.content.Context;
import android.media.Image;
import android.support.annotation.NonNull;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Ad... | 27.429907 | 126 | 0.641567 |
5ea6057218db44550e79e4d42d944cfbdf73cef8 | 5,220 | /*
* Copyright 2015 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... | 33.037975 | 97 | 0.680843 |
0707284be95e3cca8d7cce3638c9845f88a90612 | 2,828 | /**
* Copyright (C) 2016-2019 Expedia, 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 ag... | 42.848485 | 102 | 0.806223 |
10bdaefa59c9a2df138a4763eed9478ec481f600 | 530 | package homework1;
import java.util.HashMap;
import java.util.Map;
public class MapTest2 {
public static void main(String[] args) {
Map<Integer,String> map = new HashMap<Integer, String>();
map.put(1, "张三丰");
map.put(2, "周芷若");
map.put(3, "汪峰");
map.put(4, "灭绝师太");
... | 24.090909 | 65 | 0.535849 |
51b7c6d2ad90b9471aae9eec108e71121fd2a7d9 | 3,254 | package org.datadog.jenkins.plugins.datadog.steps;
import hudson.ExtensionList;
import hudson.model.labels.LabelAtom;
import net.sf.json.JSONObject;
import org.apache.commons.io.IOUtils;
import org.datadog.jenkins.plugins.datadog.DatadogGlobalConfiguration;
import org.datadog.jenkins.plugins.datadog.DatadogUtilities;
... | 38.282353 | 106 | 0.678242 |
8d69ecfa9e1caa874cb05e8dea49e22dc841303a | 2,790 | /**
* Die Klasse heißt: ReportCommand.java
* Die Klasse wurde am: 12.05.2017 | 22:07:37 erstellt.
* Der Author der Klasse ist: bySwordGames
*/
package de.bySwordGames.Bungee.Commands;
import java.util.concurrent.TimeUnit;
import de.bySwordGames.Bungee.Bungee;
import de.bySwordGames.Bungee.APIs.Report;
... | 30 | 110 | 0.673835 |
52ced27106cf4823552c89c461fc2688c1948151 | 8,614 | /*
* Copyright 1999-2019 Seata.io Group.
*
* 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 l... | 38.627803 | 112 | 0.652078 |
b59b0addfea0269d21156e343408d653139cf2d0 | 1,432 | package org.jetbrains.plugins.github;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
/**
* Information about Github repository.
*
* @author oleg
* @author Kirill Likhodedov
*/
public class RepositoryInfo {
@NotNull private final String myName;
@NotNull private final Str... | 23.866667 | 127 | 0.685754 |
4cccd23c39fb8524735dc3e270a6724d17241ccb | 5,287 | /*
* Copyright 2017-present Open Networking 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appli... | 38.875 | 102 | 0.71534 |
9fa58267628eabfd5ee19c4d30ebdae7eed45bcc | 383 | //Given a Binary Tree, convert it into its mirror.
class D33_MirrorTree
{
void mirror(TNode node)
{
// Your code here
if(node==null || (node.left==null&&node.right==null)){
return;
}
TNode temp = node.right;
node.right = node.left;
node.left = temp;
... | 20.157895 | 62 | 0.535248 |
adffa5916305694a41141d7764e66cbc19b933a5 | 1,201 | package no.nav.registre.medl.provider.rs;
import lombok.RequiredArgsConstructor;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import ... | 38.741935 | 95 | 0.822648 |
386e3f14fb9d51c1cccb3076292411bf36589dc7 | 893 | package com.app.service.util;
import java.io.UnsupportedEncodingException;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
/**
* Created by Victor on 17-6-28.
*/
public class CharHandle {
private static Pattern unicodeOutliers = Pattern.compile("[\ud83c\udc00-\ud83c\udfff]|[\ud83d\udc00-\ud83d\u... | 35.72 | 204 | 0.677492 |
f73f6f8b3ef95faca38e3e2b226887d4fe4de379 | 8,754 | package org.nzbhydra.config;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonFormat.Shape;
import com.google.common.base.Strings;
import lombok.Data;
import org.javers.core.metamodel.annotation.DiffIgnore;
import org.nzbhydra.NzbHydra;
import org.nzbhydra.config.download... | 36.173554 | 174 | 0.670436 |
31bb7f72b29b4093bd392d8d4b48f0351ff2bc9b | 4,655 | package razerdp.demo.fragment.basedemo;
import android.graphics.Color;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.widget.AppCompatCheckBox;
import android.view.Gravity;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
impo... | 36.944444 | 123 | 0.66015 |
d2c10a09d6e6bc482ab27435e0e301a312bfcb9e | 268 | package com.cheng.common.utils.retrofit;
import com.alibaba.fastjson.JSONObject;
import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Path;
public interface IpApiService {
@GET("{ip}")
Call<JSONObject> getIpInfo(@Path("ip") String ip);
}
| 20.615385 | 54 | 0.75 |
9c44d83fe713c3857008c7eacda07cc839293bde | 10,080 | package de.clashofdynasties.game;
import com.fasterxml.jackson.databind.node.JsonNodeFactory;
import com.fasterxml.jackson.databind.node.ObjectNode;
import de.clashofdynasties.models.*;
import de.clashofdynasties.repository.*;
import de.clashofdynasties.service.RoutingService;
import org.bson.types.ObjectId;
import or... | 46.451613 | 420 | 0.675198 |
619b23c87ac930989293b27cec68e999193ebf75 | 16,181 | /**
* Licensed to The Apereo Foundation under one or more contributor license
* agreements. See the NOTICE file distributed with this work for additional
* information regarding copyright ownership.
*
*
* The Apereo Foundation licenses this file to you under the Educational
* Community License, Version 2.0 (the ... | 53.052459 | 119 | 0.774427 |
1457b878a4a178d4bf9ed8fd838761201a1493c0 | 83 | package qub;
public enum VerticalAlignment
{
Top,
Center,
Bottom,
}
| 7.545455 | 29 | 0.626506 |
61b3953c87d5a1625e933c5bbfac4d2e0e5b3539 | 2,389 | /*
*
* Copyright 2012-2014 Eurocommercial Properties NV
*
*
* 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... | 29.8625 | 134 | 0.666806 |
5d01d7a0858edae55e7274293e4836ee794d086f | 1,406 | package com.rideaustin.service;
import java.util.Collections;
import javax.inject.Inject;
import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.Transactional;
import com.rideaustin.model.Document;
import com.rideaustin.model.enums.DocumentType;
import com.rideaustin.mode... | 31.954545 | 159 | 0.803698 |
95e1cecbfbf0c94af1b35d40e479a4dd7d370045 | 154 | package pl.edu.agh.mobilecodereviewer.model;
/**
* Created by lee on 2014-09-13.
*/
public enum DiffLineType {
UNCHANGED,REMOVED, SKIPPED, ADDED
}
| 17.111111 | 44 | 0.714286 |
5236b251493657d139d8ce0600e1860c819983ab | 369 | package com.g2forge.reassert.core.model.contract.usage;
import lombok.Builder;
import lombok.Data;
import lombok.RequiredArgsConstructor;
/**
* Represent a usage we do not yet recognize, but have some kind of text for.
*/
@Data
@Builder(toBuilder = true)
@RequiredArgsConstructor
public class UnknownUsage implements... | 23.0625 | 77 | 0.791328 |
fcfd26250ddb1a8a0433a4e9f0c38f5f090efe48 | 1,682 | // Copyright 2021 The Terasology Foundation
// SPDX-License-Identifier: Apache-2.0
package org.terasology.engine.module;
import org.junit.jupiter.params.ParameterizedTest;
import org.junit.jupiter.params.provider.ValueSource;
import org.terasology.module.ModuleLoader;
import java.io.IOException;
import java.net.URIS... | 35.787234 | 92 | 0.718787 |
5a2813211b9049cf079869495083e349fee934ed | 3,967 | package com.google.android.gms.internal.ads;
import android.os.IInterface;
import android.os.Parcel;
import android.os.RemoteException;
import com.google.android.gms.dynamic.IObjectWrapper.Stub;
public abstract class zzzw extends zzfn implements zzzv {
public zzzw() {
super("com.google.android.gms.ads.int... | 47.795181 | 196 | 0.574237 |
9db3c143d1e8d865e8cf3233b9c6f5e5e0ed980c | 871 | package com.danielme.jakartaee.jpa.dao;
import jakarta.persistence.EntityManager;
import java.util.Optional;
public class GenericDAOImpl<T, K> implements GenericDAO<T, K> {
private final EntityManager em;
private final Class<T> entityClass;
public GenericDAOImpl(EntityManager em, Class<T> entityClass) ... | 20.255814 | 67 | 0.639495 |
5a964b950bd0499133c14286cc971306f94593cb | 1,585 | package com.lzf.flyingsocks.client.proxy.socks;
import com.lzf.flyingsocks.client.proxy.ProxyRequest;
import io.netty.buffer.ByteBuf;
import io.netty.channel.socket.DatagramChannel;
import java.net.InetSocketAddress;
import java.util.Objects;
/**
* UDP代理请求
*/
public final class DatagramProxyRequest extends ProxyRe... | 23.308824 | 102 | 0.607571 |
8266ba41c36ed9178602d573fa7138d262670c2c | 3,053 | package tsuteto.tofu.eventhandler;
import cpw.mods.fml.common.eventhandler.Event;
import cpw.mods.fml.common.eventhandler.SubscribeEvent;
import net.minecraft.block.Block;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.world.World;
import net.minecraftforge.event.entity.player.BonemealEvent;
imp... | 33.184783 | 150 | 0.497871 |
4aa691ef40ff64748cbb04d35231d0f2872f18ea | 1,812 | /*
* Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
*
* WSO2 Inc. licenses this file to you under the Apache License,
* Version 2.0 (the "License"); you may not use this file except
* in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/li... | 29.704918 | 97 | 0.676049 |
e11f7f23955df3152a24e9db7e9713c064f2abb2 | 1,445 | package life.genny.qwanda.payments.assembly;
import java.io.Serializable;
import com.google.gson.annotations.Expose;
public class QPaymentsAssemblyKYC implements Serializable {
/**
*
*/
private static final long serialVersionUID = 1L;
public enum UserKYCState {
//Waiting for information of the user t... | 19.794521 | 109 | 0.722491 |
694c9350b228d24c481270a4e42ea63808ea3903 | 4,116 | /*
* Copyright (C) 2015 HaiYang Li
*
* 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... | 26.554839 | 117 | 0.569485 |
c8a70283cfd59bb73d09072df4b937827f3eccce | 1,804 | package de.rieckpil.blog;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.security.oauth2.client.AuthorizationCodeOAuth2AuthorizedClientProvider;
import org.springframework.security.oauth2.client.OAuth2AuthorizedClientManager;
... | 46.25641 | 131 | 0.806541 |
89f8e91b515c3064320d874971555f0ab88f2178 | 365 | package com.srch2;
/* User defined RefiningFloat that has a backing of Float class, rather
than the java float primitive. */
public class MyRefiningFloat implements RefiningFloatInterface {
Float value;
MyRefiningFloat(Float value) { this.value = value; }
public float getFloat() { return this.value; }
publ... | 30.416667 | 71 | 0.745205 |
0c37efaedb039a3f1ccc54032105385be605f2a0 | 4,188 | /*******************************************************************************
* Copyright 2011 Danny Kunz
*
* 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.a... | 32.465116 | 103 | 0.651385 |
05be8f2fcd39b4b5f07ab53d27abea912f9208dd | 1,105 | package com.nishitp;
import java.util.List;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import com.nishitp.optiondata.dao.DBDao;
import com.nishitp.optiondata.dao.MySqlDao;
import com.nishitp.optiondata.scraper.OptionDataRetriever;
import com.nishitp.otpiondata.beans.Pair;
public clas... | 33.484848 | 99 | 0.770136 |
e4fb08f7be409fb074aab6c0016b95b9f4ef8fd1 | 18,591 | package ca.uhn.fhir.jpa.patch;
/*-
* #%L
* HAPI FHIR JPA Server
* %%
* Copyright (C) 2014 - 2022 Smile CDR, 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://... | 39.980645 | 238 | 0.739336 |
c162af1273df39bf7edfcc22e6946d7b0dbc213f | 2,758 | package com.github.chenxdGit.common.util;
import java.math.BigInteger;
import java.security.MessageDigest;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import org.apache.commons.lang3.StringUtils;
/**
* 字符串工具类
* @author 陈晓东
*
*/
public class StringUtil extends StringUtils {
public static S... | 23.982609 | 77 | 0.549311 |
f9b956c961662e28a91adece2ada4b6241d41cdc | 6,809 | /* Copyright 2018-2019 Wehe Web Technologies
*
* 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... | 30.95 | 108 | 0.595682 |
2f29f81b235a1e04f8f31adf1039d5b137279aa2 | 198 | for(int i = 0; i < a.length; i++) {
for(int j = 0; j < a.length; j++) {
for(int k = 0; k < a.length; k++) {
a[j][k] = a[j][k] || (a[j][i] && a[i][k]);
}
}
} | 28.285714 | 55 | 0.318182 |
49f4585a7e49744b7f66f0334f3d36278e2cf10b | 14,232 | begin_unit|revision:0.9.5;language:Java;cregit-version:0.0.1
begin_comment
comment|/* * 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... | 15.760797 | 813 | 0.767566 |
80d30f61409133249a636bb039c8c562542d6dd3 | 2,184 | /*
* Copyright 2015-2021 OpenEstate.org.
*
* 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 ... | 31.652174 | 108 | 0.702381 |
46259b30c0b3a7c94377bdc7ad078f92f1e335a8 | 348 | package com.example.oauth.domain;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
import java.util.List;
import java.util.UUID;
@Repository
public interface UserRoleRepository extends JpaRepository<UserRoleEntity, Integer> {
List<UserRoleEntity> findR... | 24.857143 | 84 | 0.833333 |
845f2962dd85189100f824c6cd051b3ec83741e7 | 791 | // Template Source: Enum.java.tt
// ------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
// -------------------------------------------------... | 25.516129 | 152 | 0.538559 |
ad58ab1760145ad7fcc92244635df135df16b1c7 | 3,465 | package cn.share.jack.cyghttp;
import com.jakewharton.retrofit2.adapter.rxjava2.RxJava2CallAdapterFactory;
import java.util.concurrent.TimeUnit;
import cn.share.jack.cyghttp.app.HttpServletAddress;
import cn.share.jack.cyghttp.convert.CustomGsonConverterFactory;
import io.reactivex.Observable;
import io.reactivex.O... | 37.258065 | 135 | 0.609812 |
c9a9671fe4405cadaaec66725b98d9f5b776a44b | 1,583 | package jr.dungeon.entities.monsters.canines;
import jr.dungeon.Dungeon;
import jr.dungeon.Level;
import jr.dungeon.entities.EntityAppearance;
import jr.dungeon.entities.EntityLiving;
import jr.dungeon.entities.effects.StatusEffect;
import jr.dungeon.entities.interfaces.LightEmitter;
import jr.dungeon.serialisation.Re... | 27.293103 | 76 | 0.718256 |
4005e41277fa8cd5da9dc2508bc100e452ef728f | 2,783 | /**
* Copyright (C) 2013 Motown.IO (info@motown.io)
*
* 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 appl... | 46.383333 | 155 | 0.717212 |
04ca3330619892e233da13950c40ac760dfcdaa6 | 1,180 | /**
* Created by kerr.
*
* 代码清单 11-1 添加 SSL/TLS 支持 {@link nia.chapter11.SslChannelInitializer}
*
* 代码清单 11-2 添加 HTTP 支持 {@link nia.chapter11.HttpPipelineInitializer}
*
* 代码清单 11-3 自动聚合 HTTP 的消息片段 {@link nia.chapter11.HttpAggregatorInitializer}
*
* 代码清单 11-4 自动压缩 HTTP 消息 {@link nia.chapter11.HttpCompressionInit... | 36.875 | 101 | 0.764407 |
d65536d1171da7ea9b73118d71eed8d1fc4b58f0 | 1,682 | /*
* Copyright (c) 2020, 2021 Oracle and/or its affiliates.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ... | 28.508475 | 75 | 0.697384 |
967ef702a241c33a8351cf5e7587c45f8a21c19f | 1,551 | package com.youlai.mall.pms.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.youlai.mall.pms.pojo.domain.PmsSku;
import com.youlai.mall.pms.pojo.dto.SkuDTO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import java.util.List;
@Mapper
public interf... | 31.02 | 92 | 0.520309 |
332b3d16f765463a809fcf363c18cbbdc0a2b220 | 1,709 | package tech.peller.mrblackandroidwatch.utils;
import android.app.Activity;
import android.content.Context;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.view.Gravity;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import... | 31.072727 | 94 | 0.690462 |
4b061386788af3e5f3e52a4e90b015246cd4e5b0 | 117 | package com.hea3ven.tools.mappings;
public abstract class TypeDesc {
public abstract String get(ObfLevel level);
}
| 19.5 | 44 | 0.794872 |
aea78daa3fd3a78970953ac9b5dcc578734e8fb0 | 703 | package dhbwka.wwi.vertsys.javee.filmsortierung.filme.jpa;
public enum FilmStatus {
OPEN, IN_PROGRESS, FINISHED, CANCELED, POSTPONED;
/**
* Bezeichnung ermitteln
*
* @return Bezeichnung
*/
public String getLabel() {
switch (this) {
case OPEN:
return ... | 24.241379 | 58 | 0.516358 |
9b19c187083de1eebdbcc2ddd80c9cd43c003ffc | 937 | package com.nekretnine.dto;
import com.nekretnine.models.Comment;
public class CommentDTO {
private Long id;
private String data;
private AdvertisementDTO advertisementDTO;
private long time;
public CommentDTO() {}
public CommentDTO(Comment comment) {
this.id = comment.getId();
this.data = comment.getD... | 19.93617 | 76 | 0.719317 |
1ae8a729dd2ccae0449a229fc0a3835149954f88 | 11,440 | package org.vaadin.mvp.eventbus;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertTrue;
import static org.mockito.Matchers.any;
import static org.mockito.Mockito.inOrder;
import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.never;
import static org.mockito... | 37.385621 | 130 | 0.684091 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.