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 |
|---|---|---|---|---|---|
8e99d2dcfa73121fa2770e948bbc8144de9678e9 | 271 | package com.napier.sem;
public class Population {
private int population;
//getters and setters
public int getPopulation() {
return population;
}
public void setPopulation(int population) {
this.population = population;
}
}
| 14.263158 | 47 | 0.645756 |
c15fffcc3d0719b2a1e6a5cea25782669ecd31ac | 1,136 | // Java program to illustrate creating an array of
// objects
class Student
{
public int roll_no;
public String name;
Student(int roll_no, String name)
{
this.roll_no = roll_no;
this.name = name;
}
}
// Elements of array are objects of a class Student.
public class... | 26.418605 | 60 | 0.533451 |
e7874fa2041657c7d3d26a7955f11319e09db9cd | 3,351 | package com.xiaoteng.blog.model;
import org.hibernate.validator.constraints.Length;
import org.springframework.data.annotation.CreatedDate;
import org.springframework.data.annotation.LastModifiedDate;
import org.springframework.format.annotation.DateTimeFormat;
import javax.persistence.Id;
import javax.persistence.Ta... | 20.685185 | 60 | 0.575649 |
c59a6ba0aeac8002232a9116aa798270fe96ea35 | 4,361 | package org.lightning.quark.test;
import org.h2.jdbcx.JdbcDataSource;
import org.lightning.quark.core.model.db.DataSourceParam;
import org.lightning.quark.db.datasource.DSFactory;
import javax.sql.DataSource;
/**
* Created by cook on 2018/2/24
*/
public abstract class DbTestUtils {
public static DataSourcePar... | 36.041322 | 158 | 0.721394 |
39ff83e1202843dfd6e8eda7924513a61f509a43 | 2,307 | package producerstest.badexecutor;
import static com.google.common.truth.Truth.assertThat;
import static org.junit.Assert.fail;
import com.google.common.util.concurrent.Futures;
import com.google.common.util.concurrent.ListenableFuture;
import com.google.common.util.concurrent.ListeningExecutorService;
import com.goo... | 30.355263 | 95 | 0.72215 |
4d8c65078b9c00625635fac88568ed33fb773746 | 199 | package com.example.graduationproject.fragment;
import android.support.v4.app.Fragment;
/**
* Created by Administrator on 2017/11/15 0015.
*/
public class HomeVideoFragment extends Fragment {
}
| 18.090909 | 49 | 0.773869 |
1562b59dd1cbcf105ffae39ded827118387d652c | 393 | package dev.samstevens.totp;
import java.io.FileOutputStream;
import java.io.IOException;
public class IOUtils {
/**
* Helper method to write data to a file.
*/
public static void writeFile(byte[] contents, String filePath) throws IOException {
try (FileOutputStream stream = new FileOutputS... | 23.117647 | 87 | 0.666667 |
90d339c9cced23d9a2f7a71a439ed8095620373e | 2,299 | package hello;
import com.fasterxml.jackson.core.type.TypeReference;
import com.fasterxml.jackson.databind.ObjectMapper;
import hello.entity.Ad;
import hello.entity.Picture;
import hello.service.AdService;
import hello.service.PictureService;
import org.springframework.boot.CommandLineRunner;
import org.springframewor... | 37.688525 | 110 | 0.671161 |
825d4a0817c19f9749c4c1d520c3a3bf20c33c77 | 4,706 | /**
* Copyright 2018-2020 stylefeng & fengshuonan (https://gitee.com/stylefeng)
* <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
... | 24.010204 | 76 | 0.638547 |
8373ef9f04977d5bd6f0e67c438e9703c4bf3678 | 2,751 | /*******************************************************************************
* Copyright (c) 2015 Google, Inc and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is avail... | 31.62069 | 107 | 0.672483 |
ff50d4c4770913262fc40ad940d4ce4fd7b92e69 | 3,745 | /*
* Copyright 2015 elisha.
*
* 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 ... | 32.008547 | 109 | 0.693458 |
144fe36507a33215ac15e4cf294f4dc31b7148aa | 2,759 | package matrix;
public class Matrix {
private double[][] _h;
private int _m;
private int _n;
public Matrix(int m, int n) throws IllegalParamException {
if(m < 1) {
throw new IllegalParamException("illegal value of m in constructor Matrix(m, n): " + m);
}
if(n < 1) {
throw new IllegalParamException... | 21.896825 | 120 | 0.563972 |
43e5987a02d3d948364a3132f2c25f0d5de99d04 | 800 | package com.mapbox.services.android.navigation.v5.utils.span;
import android.os.Build;
import android.text.Spannable;
import android.text.SpannableStringBuilder;
import java.util.List;
public class SpanUtils {
public static SpannableStringBuilder combineSpans(List<SpanItem> spanItems) {
SpannableStringBuilder... | 29.62963 | 96 | 0.7475 |
c339105062974f41d62397cd49438423c1d72cad | 2,963 | package com.almis.awe.annotation.aspect;
import com.almis.awe.annotation.entities.security.Crypto;
import com.almis.awe.annotation.processor.security.CryptoProcessor;
import com.almis.awe.annotation.util.AnnotationUtils;
import com.almis.awe.exception.AWException;
import org.aspectj.lang.ProceedingJoinPoint;
import or... | 32.922222 | 145 | 0.729666 |
9ccdf93dc4b8249f249542a4349b1eb4b10f5797 | 450 | package br.com.rkoyanagui.cornichon.screen.selenium;
public class WebDriverFactoryException extends RuntimeException {
private static final long serialVersionUID = -4505802554479782155L;
public WebDriverFactoryException(String message) {
super(message);
}
public WebDriverFactoryException(String message,... | 23.684211 | 69 | 0.773333 |
72660f4cdce7f20c50078e4a32045e0efb6d8f79 | 1,207 | package com.github.bazoocaze.vulkancpu4j.vulkan;
import com.github.bazoocaze.vulkancpu4j.util.ByRef;
import com.github.bazoocaze.vulkancpu4j.util.OutRef;
import com.github.bazoocaze.vulkancpu4j.vulkan.enums.VkResult;
import org.jetbrains.annotations.ApiStatus.Internal;
public interface VkInstance {
@Internal
... | 37.71875 | 110 | 0.71831 |
ea8d20dd7c4d4e147b45781c3165162ed2f41518 | 5,306 | /*
* 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.223404 | 77 | 0.467018 |
a1b8cf309b284a8d47d512d671285db5a8d3c1b8 | 3,358 | /**
* Copyright (c) 2013, Anthony Schiochet and Eric Citaire
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* * Redistributions of source code must retain the above copyright notice, thi... | 27.52459 | 96 | 0.699524 |
4a99c9c7d7dead820184f84863c0ba72c85c645a | 489 | package com.example.pengyuanfan.fablix.json;
/**
* Created by pengyuanfan on 6/11/2016.
*/
public class CommentResult {
String comment_result;
String info;
public String getComment_result() {
return comment_result;
}
public void setComment_result(String comment_result) {
this.co... | 18.807692 | 58 | 0.648262 |
c41e4eb95ff4710d94cadfb72d9bca0028153ab2 | 4,270 | package org.dhis2.fhir.adapter.dhis.model;
/*
* Copyright (c) 2004-2019, University of Oslo
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the ... | 32.348485 | 171 | 0.705152 |
ca4205aafcb8436f328a4db7f1fc3f92045bf823 | 1,726 | package dev.manpreet.kaostest.runner.listeners;
import dev.manpreet.kaostest.dto.internal.RunnerStore;
import lombok.extern.slf4j.Slf4j;
import org.testng.ITestResult;
import org.testng.TestListenerAdapter;
/**
* Built-in listener which increments the RunnerStore for each test execution.
*/
@Slf4j
public class Stor... | 39.227273 | 118 | 0.715527 |
b86c882b1cf1af253bbffa8e733a6c817a3b2801 | 2,033 | package com.miki.assistant.adapter;
import android.content.Context;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TextView;
import com.miki.assistant.R;
import com.miki.... | 29.042857 | 94 | 0.693064 |
b883f043e9c847104609eba2ae21ebf14bfce9f6 | 518 | package cn.fjc.designpatterntutorial.proxy.staticproxy;
/**
* Created by shiqifeng on 2017/3/17.
* Mail byhieg@gmail.com
*/
public class ProxySubject implements Subject{
//我是替真实觉得干活的人
private RealSubject realSubject;
//代理要有构造,构造是我要代理的人是谁
public ProxySubject(RealSubject realSubject) {
this.... | 21.583333 | 55 | 0.675676 |
90cbc2576cb714a22a8812002e79a37491f33363 | 3,906 | /*
* MIT No Attribution
*
* Copyright 2021 Rickard Lundin (rickard@ignalina.dk)
*
* 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 ... | 42.923077 | 181 | 0.680748 |
f7102ecc9316fc0fa27f68ac9aa7366df4bac4c7 | 793 | package org.kimbs.jwt.controller;
import org.kimbs.jwt.model.Product;
import org.kimbs.jwt.repository.ProductRepository;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.w... | 29.37037 | 67 | 0.790668 |
01281f9cbae9785f1e545548efe8990783506692 | 1,963 | package com.xixia.remembersonglyrics.Services;
import android.app.Activity;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v7.app.AppCompatActivity;
import android.transition.Fade;
/**
* Created by macbook on 7/31/17.
*/
public class FragmentService {
... | 42.673913 | 131 | 0.697402 |
7eee93e41e658ec33a27f0301f701757440f92ec | 5,561 | package com.ospn.common;
import javax.crypto.Cipher;
import javax.crypto.spec.IvParameterSpec;
import javax.crypto.spec.SecretKeySpec;
import java.io.BufferedOutputStream;
import java.io.FileOutputStream;
import java.security.MessageDigest;
import java.text.SimpleDateFormat;
import java.util.Arrays;
import java.util.B... | 34.974843 | 101 | 0.575616 |
293b2e722ba6f9f2bd7e0602b74eec04b2667f06 | 394 | package com.alipay.api.response;
import com.alipay.api.AlipayResponse;
/**
* ALIPAY API: alipay.open.mini.ampe.deviceproduct.delete response.
*
* @author auto create
* @since 1.0, 2021-12-08 23:54:44
*/
public class AlipayOpenMiniAmpeDeviceproductDeleteResponse extends AlipayResponse {
private s... | 18.761905 | 84 | 0.72335 |
7639becb1d0da07a10b86c0aceb1ccb0e07aacc9 | 2,128 | import java.util.Arrays;
import java.util.List;
import org.junit.*;
import static org.junit.Assert.*;
public class CourseTest {
@Rule
public DatabaseRule database = new DatabaseRule();
@Test
public void all_emptyAtFirst() {
assertEquals(Course.all().size(), 0);
}
@Test
public void... | 26.6 | 65 | 0.655075 |
05ef0a6c8c6586b5005bd97e85ea78492d58a9eb | 4,892 | /*
*************************************************************************
* The contents of this file are subject to the Openbravo Public License
* Version 1.0 (the "License"), being the Mozilla Public License
* Version 1.1 with a permitted attribution clause; you may not use this
* file except in... | 39.772358 | 139 | 0.651676 |
02233813346e5e602c262d57083a949279ff4767 | 1,282 | package com.blazeloader.util.transformers.mapping;
import com.blazeloader.util.transformers.transformations.Transformation;
import java.util.HashMap;
import java.util.LinkedList;
import java.util.List;
import java.util.Map;
public class DefaultTransformationMap extends TransformationMap {
private final Map<Strin... | 35.611111 | 114 | 0.700468 |
176b294f2af1496189514ea245edf541b454e4ca | 8,191 | package com.nb6868.onex.uc.service;
import cn.hutool.core.map.MapUtil;
import cn.hutool.core.text.StrSplitter;
import cn.hutool.core.util.StrUtil;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.nb6868.onex.common.exception.ErrorCode;
import com.nb6868.onex.common.jpa.DtoService;
import ... | 37.401826 | 171 | 0.637163 |
f3798e9896d871ab938bb12ae2a53d64becfd3fc | 7,104 | /*
* Copyright 2020 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to i... | 41.54386 | 100 | 0.7058 |
e437b60fa152c1ad5940e6056bf69f2c6a455958 | 850 | package org.malagu.panda.security.ui.filter;
import java.util.Arrays;
import java.util.Collection;
import org.apache.commons.lang.StringUtils;
import org.springframework.stereotype.Component;
import com.bstek.dorado.view.widget.Control;
import com.bstek.dorado.view.widget.base.tab.ControlTab;
@Component
public clas... | 20.731707 | 66 | 0.768235 |
927cd48a4d7f4d28b95923fd916351ad6018bc59 | 5,447 | package com.king.liaoba.mvp.adapter;
import android.content.ComponentName;
import android.content.Context;
import android.content.Intent;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.media.MediaPlayer;
import android.os.Parcelable;
import android.util.Log;
import android.view.V... | 37.565517 | 107 | 0.628052 |
a64dbe9547a03dacc25de14494091f3e2b405f57 | 1,405 | /*
* 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 edu.cyborgs.projects.commands;
/**
*
* @author ricshawn
*/
public class LiftLower extends CommandBase {
private boole... | 25.089286 | 79 | 0.66121 |
778c203dc1fb14feb619443138aec6d3a7470b8a | 2,881 | package com.island;
import android.graphics.*;
import android.widget.*;
public class Testo extends Oggetto
{
private CharSequence testo;
private int colore;
private Paint.Align textAlign=Paint.Align.CENTER;
private Typeface typeface;
private double textX=0.5;
private double larghezzaX=1;
private double carattere... | 25.723214 | 125 | 0.739674 |
6433048abdb9e6da7277d9f40a6309d056fee400 | 402 | package io.github.darkantoine.protowrapper;
public class StringUtils {
private StringUtils() {
}
public static String capitalize(String name) {
return name.substring(0, 1).toUpperCase() + name.substring(1);
}
public static String lowerCamel(String name) {
return name.substring(0, 1).toLow... | 20.1 | 66 | 0.686567 |
497b08fc5180ecbdaf078b27c04e33d87186c671 | 2,262 | /*
* Copyright 2019, EnMasse authors.
* License: Apache License 2.0 (see the file LICENSE or http://apache.org/licenses/LICENSE-2.0.html).
*/
package io.enmasse.iot.registry.device;
import static io.enmasse.iot.registry.device.CredentialKey.credentialKey;
import static io.enmasse.iot.utils.MoreFutures.completeHand... | 41.127273 | 174 | 0.785588 |
301fed0496c4e14a4d23ed0ba4d9673cc2c41311 | 3,706 | /*
* JBoss, Home of Professional Open Source
* Copyright 2010, Red Hat Middleware LLC, and individual contributors
* by the @authors tag. See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not us... | 36.333333 | 116 | 0.730977 |
436110979409ee2754ac265c52d8254975ab2aec | 430 | package cn.vgbhfive.graduationproject.repository;
import cn.vgbhfive.graduationproject.entity.ManAsset;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
import java.util.List;
/**
* @time: 2019/03/17
* @author: Vgbh
*/
@Repository
public interface Man... | 22.631579 | 76 | 0.795349 |
fd657e3327b105082b770801e7b87fa478e1d296 | 260 | package io.reactivex.internal.observers;
import java.util.concurrent.atomic.AtomicInteger;
class QueueDrainSubscriberWip extends QueueDrainSubscriberPad0 {
final AtomicInteger wip = new AtomicInteger();
QueueDrainSubscriberWip() {
}
}
| 23.636364 | 65 | 0.757692 |
f588c03aaf41f3140ae839be1cc9917d613c0ea1 | 18,849 | package com.example.wonderfulchat.view;
import android.Manifest;
import android.app.AlertDialog;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.content.IntentFilter;
import android.content.pm.PackageManager... | 36.388031 | 161 | 0.598387 |
862757560a6a2c3e9794afb1072fdbc907714407 | 9,308 | /*
* Copyright (c) 2016-present, RxJava Contributors.
*
* 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 la... | 29.0875 | 112 | 0.53309 |
fe9a1c8c637475f923bbaa95b4c6445a25075816 | 1,723 | package com.logo.ui.components;
import java.util.ArrayList;
import java.util.List;
import com.byteowls.vaadin.chartjs.ChartJs;
import com.byteowls.vaadin.chartjs.config.DonutChartConfig;
import com.byteowls.vaadin.chartjs.data.PieDataset;
import com.byteowls.vaadin.chartjs.options.InteractionMode;
import com... | 35.895833 | 107 | 0.724318 |
02d72da4dd51477a1661406a15448857e205627c | 3,600 | /*
* Copyright (c) 2008, Rickard Öberg. 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 required by applicable l... | 26.277372 | 115 | 0.634722 |
35bebb8ef6ef82d276456a5117f3cdef9cf9c96f | 785 | public class InnerMembers {
static class StaticI {
static int x;
static String foo() { return "foo"; }
}
class Inner {
static final int CONST=10;
static final int NOT_CONST=new Integer(10).intValue(); //ERR: non-constant static in inner
static int x; ... | 37.380952 | 98 | 0.556688 |
0c87be4a95eed8546db0b429b9f7e89094845a1e | 8,320 | package ch.kk7.confij;
import ch.kk7.confij.binding.BindingContext;
import ch.kk7.confij.binding.ConfigBinder;
import ch.kk7.confij.binding.ConfigBinding;
import ch.kk7.confij.binding.values.ValueMapperFactory;
import ch.kk7.confij.binding.values.ValueMapperInstance;
import ch.kk7.confij.common.GenericType;
import ch.... | 33.14741 | 117 | 0.764063 |
8d54397c88961c284997e4f6b2006f1ea597865f | 2,613 | package org.openecomp.sdc.common.log.elements;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.Mock;
import org.mockito.junit.MockitoJUnitRunner;
import org.onap.logging.ref.slf4j.ONAPLogConstants;
import org.openecomp.sdc.common.log.enums.EcompLoggerErrorCode;
impor... | 35.794521 | 136 | 0.755071 |
37bc913dd6659d29e8464da114afc5fb9614f93c | 1,073 | package com.bridgeit.Algorithprogram;
import java.util.Scanner;
public class TempratureConversion
{
public void celTofar(double cel)
{
double far=(cel*(9/5))+32;
System.out.println("\nFahrenheit : "+far);
}
public void farTocel(double far)
{
double cel=((far-32)*(5/9)... | 22.829787 | 70 | 0.535881 |
3b2ccd59db6a607f3288201276f7b320c1b9b1b9 | 3,879 | package main;
import processing.core.PApplet;
import sorting.DrawSort;
import ui.Control;
import ui.IconButton;
import ui.TextButton;
import ui.ToggleButton;
import java.awt.*;
public class ControlPanel {
private final PApplet processing;
private final DrawSort sort;
private IconButton increaseSpeed;
... | 32.057851 | 95 | 0.662542 |
26f73cd230f4ff31027d697e43ac767f30b9eabc | 1,307 | package com.github.bxy.file.api;
import com.github.bxy.base.R;
import com.github.bxy.file.dto.AttachmentDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.Req... | 32.675 | 107 | 0.697016 |
8e9940bab9499de1e982fb756bd9724c7f541098 | 70 | package android.content.pm;
public abstract class PackageManager {
}
| 14 | 38 | 0.8 |
9c97087cb9b9538788f1da4dd85e2fa2bc730cb2 | 968 | package com.lightweh.activity;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import com.lightweh.render.LoadObjModelRenderer;
import org.rajawali3d.renderer.Renderer;
import org.rajawali3d.view.ISurface;
import org.rajawali3d.view.SurfaceView;
public class MainActivity extends AppCompa... | 27.657143 | 70 | 0.731405 |
c10a29275ed12a36a8deab612cf5c59589bb57a8 | 2,350 | // Copyright (c) 2019, the R8 project authors. Please see the AUTHORS file
// for details. 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.tools.r8.ir.desugar.backports;
import com.android.tools.r8.graph.DexItemFactory;
impo... | 37.903226 | 89 | 0.741277 |
40b3947667e8d2134fa579d7416b20b097c3ad20 | 240 | package p024io.fabric.sdk.android.services.concurrency.p354a;
/* renamed from: io.fabric.sdk.android.services.concurrency.a.a */
/* compiled from: Backoff */
public interface C13932a {
/* renamed from: a */
long mo19343a(int i);
}
| 26.666667 | 66 | 0.716667 |
94291cde6839989f734b906f525c6f4549141411 | 4,190 | /* *
* Ping++ Server SDK
* 说明:
* 以下代码只是为了方便商户测试而提供的样例代码,商户可根据自己网站需求按照技术文档编写, 并非一定要使用该代码。
* 接入退款流程参考开发者中心:https://www.pingxx.com/docs/server/refund ,文档可筛选后端语言和接入渠道。
* 该代码仅供学习和研究 Ping++ SDK 使用,仅供参考。
*/
package cn.stt.pingpp.example;
import com.pingplusplus.exception.*;
import com.pingplusplus.model.Charge;
import ... | 27.933333 | 111 | 0.568735 |
776f006ae3e2060a7a2ebf422a6b3f613af32d7a | 458 | package org.sampsonlab.nephvseqtlserver.repositories;
import java.util.List;
import org.sampsonlab.nephvseqtlserver.entities.Gene;
import org.sampsonlab.nephvseqtlserver.entities.PeerEQTL;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.Repository;
public interface Ge... | 32.714286 | 65 | 0.823144 |
995fee3b74c3173d939e11f6aa0667aa99ac8bb2 | 17,470 | /**
* 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 m... | 34.662698 | 98 | 0.6332 |
6cfef6523daa23a441fcf023784fc999b9c0c9b3 | 1,119 | package de.thmshmm.log4j;
/**
* Created by Thomas Hamm on 27.07.17.
*/
public class LogItem {
private final Long ts;
private final String level;
private final String logger;
private final String thread;
private final String msg;
private final String sparklineOcid;
private final String sta... | 20.722222 | 127 | 0.613047 |
75bab81cf64d391739c1e89754af00f79c437052 | 3,015 | package io.github.williamjesusdev.grupojsa.empresa.domain.service.impl;
import io.github.williamjesusdev.grupojsa.core.domain.entity.Cidade;
import io.github.williamjesusdev.grupojsa.core.domain.repository.CidadesRepository;
import io.github.williamjesusdev.grupojsa.core.domain.service.impl.AllBuildersImpl;
import io.... | 40.743243 | 98 | 0.738308 |
45dd667359bb7c8886612a8468ac37204be3b66c | 1,623 | package marubinotto.piggydb.ui;
import static java.lang.Long.parseLong;
import static org.apache.commons.lang.StringUtils.isNotBlank;
import static org.apache.commons.lang.StringUtils.removeStart;
import java.io.IOException;
import javax.servlet.Filter;
import javax.servlet.FilterChain;
import javax.servlet.FilterCo... | 29.509091 | 77 | 0.743068 |
e2ffeb8e8d34a5883d4c3f76172a22cd66f6325a | 2,514 | // XSD4J - XML Schema library for Java
//
// Copyright (C) 2006 Josef Spillner <js177634@inf.tu-dresden.de>
// Published under GNU General Public License conditions.
//
// This file is part of the XSD4J library.
// It has been created under a student deployment contract
// at the Chair of Computer Networks, Facu... | 24.647059 | 73 | 0.682975 |
9915846b106a8c4b0c565d0a7856322913e1807c | 2,273 | /*
* Copyright 2019 Google LLC. 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 required by appli... | 39.189655 | 136 | 0.758029 |
c9251c23a90ec25fc9cfcd3981abafe5ad4ec894 | 3,205 | /**
* Copyright 2014 Netflix, Inc.
* <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 applicable law or... | 33.736842 | 109 | 0.652418 |
c9300da7d4e3ea93ac244f7421e8d38138e8ef32 | 1,046 | package main.java;
public class QuickSort6 {
public static <T extends Comparable<T>> void sort(final T[] a) {
if (a.length <= 1) {
return;
}
sortInternal(a, 0, a.length - 1);
}
public static <T extends Comparable<T>> void sortInternal(final T[] a, final int from, final int to) {
if (from >= to) {
... | 18.678571 | 103 | 0.561185 |
433946533bc72765bd3a86d17573006ec11006d1 | 1,327 | package com.maxiaofa.hosts.utils;
import com.maxiaofa.hosts.RunHosts;
import java.io.*;
import java.util.Scanner;
import java.util.logging.Logger;
/**
* @author MaXiaoFa
*/
public class FileUtils {
private static final Logger log = Logger.getLogger(RunHosts.class.getName());
public static String read(Fil... | 27.081633 | 81 | 0.54107 |
2152898c625cc6e4ce24b9b157c79869d27b52b1 | 2,976 | import java.util.HashMap;
import java.util.Iterator;
/**
* The class holds the properties of a book register
* @author Mikkel Aas
* @version 1.0
*/
public class BookRegister {
/**
* register field that stores the value of a HashMap object with String as key and Book as value
*/
privat... | 36.740741 | 117 | 0.633065 |
b32ba46a91b106d339c37b0e9a006f772410f6f0 | 328 | package com.navercorp.pinpoint.grpc.server;
import io.netty.channel.EventLoopGroup;
import io.netty.channel.ServerChannel;
import java.util.concurrent.Executor;
public interface ServerChannelType {
Class<? extends ServerChannel> getChannelType();
EventLoopGroup newEventLoopGroup(int nThreads, Executor execu... | 25.230769 | 70 | 0.807927 |
04ccb3cdbb4997ecbb31b90650539e07df372551 | 9,979 | /*
* Copyright Terracotta, 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 ... | 35.137324 | 242 | 0.711394 |
e30ca56fb313c12fbb0f45ade36b68ab0de0f99d | 1,076 | package org.minijax.validation.metadata;
import java.util.Set;
import jakarta.validation.metadata.ConstraintDescriptor;
import jakarta.validation.metadata.ElementDescriptor;
public abstract class MinijaxElementDescriptor implements ElementDescriptor {
private final Class<?> elementClass;
private final Set<Co... | 27.589744 | 77 | 0.72026 |
5e84ad7617aaca1a5ca658f7bcd113a231e3f4b5 | 4,474 | /*
* 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... | 36.672131 | 148 | 0.668976 |
8e5069b6a14a33751876ccd0816094b44f832b29 | 9,750 | package com.capgemini.mrchecker.mobile.unit.core.runtime;
import static junit.framework.TestCase.assertEquals;
import static org.hamcrest.MatcherAssert.assertThat;
import java.util.HashMap;
import java.util.Map;
import org.hamcrest.Matchers;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Disab... | 46.875 | 189 | 0.766462 |
7ae4c6958d4988312adecb6d7a9edf470d2c7611 | 4,338 | package com.malidong.seckill.service.impl;
import com.malidong.seckill.exception.GlobalException;
import com.malidong.seckill.mapper.OrderMapper;
import com.malidong.seckill.mapper.SeckillGoodsMapper;
import com.malidong.seckill.mapper.SeckillOrderMapper;
import com.malidong.seckill.pojo.Order;
import com.malidong.sec... | 38.052632 | 115 | 0.703089 |
7c752b459e2b25061351a6a3888450be2f19ad9d | 3,370 | package p005cm.aptoide.p006pt.view;
import javax.inject.Provider;
import org.jacoco.agent.p025rt.internal_8ff85ea.Offline;
import p005cm.aptoide.p006pt.app.AppNavigator;
import p005cm.aptoide.p006pt.app.view.AppViewNavigator;
import p005cm.aptoide.p006pt.navigator.FragmentNavigator;
import p318e.p319a.C13181b;
import ... | 51.060606 | 215 | 0.75727 |
0d726081edb4314ee7f94d3227939e6940c92143 | 2,763 | package cn.gitlab.virtualcry.sapjco.client;
import cn.gitlab.virtualcry.sapjco.beans.factory.*;
import cn.gitlab.virtualcry.sapjco.client.function.zmm_shp_getdnhb.DnHeader;
import cn.gitlab.virtualcry.sapjco.client.function.zmm_shp_getdnhb.TableParameter;
import cn.gitlab.virtualcry.sapjco.client.handler.FunctionReque... | 37.849315 | 120 | 0.683677 |
88497cc45dd8e5dc657d3dd2cf4ef38e255dd524 | 8,924 | /**
* This file is part of choco-solver, http://choco-solver.org/
*
* Copyright (c) 2017, IMT Atlantique. All rights reserved.
*
* Licensed under the BSD 4-clause license.
* See LICENSE file in the project root for full license information.
*/
package org.chocosolver.solver.constraints.checker.fmk;
import org.c... | 37.495798 | 93 | 0.498991 |
7595abebbdd96d32defa234e88755c488fad6479 | 5,932 | /*
* Copyright (C) 2013 Lisa Park, Inc. (www.lisa-park.net)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
... | 42.676259 | 139 | 0.577208 |
e1f53274e351fb7538174ca202c157ce5a32ad00 | 1,342 | package mekanism.common.integration.crafttweaker.handlers;
import mekanism.common.Mekanism;
//@ZenRegister
//@ZenCodeType.Name("mekanism.chemical.oxidizer")
public class ChemicalOxidizer {
public static final String NAME = Mekanism.MOD_NAME + " Chemical Oxidizer";
//TODO: CrT Integration
/*@ZenCodeType.... | 41.9375 | 146 | 0.73696 |
89d3214657a642dd2650e9e2d693b3a286420643 | 223 | package io.github.aguirresabino.bookapi;
import org.junit.jupiter.api.Test;
import org.springframework.boot.test.context.SpringBootTest;
@SpringBootTest
class BookapiApplicationTests {
@Test
void contextLoads() {}
}
| 18.583333 | 60 | 0.798206 |
efc056de13dee586bf6a0d266bd57b58da938e13 | 5,095 | package com.commercetools.sync.customers.utils;
import static com.commercetools.sync.commons.utils.CustomUpdateActionUtils.buildPrimaryResourceCustomUpdateActions;
import static com.commercetools.sync.commons.utils.OptionalUtils.filterEmptyOptionals;
import static com.commercetools.sync.customers.utils.CustomerUpdateA... | 56.611111 | 115 | 0.809028 |
7ab201826e557ef5a5daec7062bec7763ef43d05 | 4,123 | package saberapplications.pawpads;
import android.util.Log;
import com.quickblox.users.model.QBUser;
import java.util.HashMap;
import java.util.Map;
public class UserStatusHelper {
private static final long OFFLINE_TIME = 600000; // 10 min
private static final long AWAY_TIME = 300000; // 5 min
private s... | 43.861702 | 100 | 0.632792 |
9145a5d36937f26c33ea942e14d2e231da93eed1 | 5,092 | /*
* Copyright 2021 Broadband Forum
*
* 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... | 43.521368 | 117 | 0.689906 |
9da707d2eaaced269635a3bd4961d6db7fd16595 | 139 | package com.maven.Spring;
public class Bike implements Vehicle{
public void drive() {
System.out.println("Driving the bike!");
}
}
| 15.444444 | 42 | 0.705036 |
48260bd13953d87f1281aa6491b480b917b5351f | 1,392 | // Copyright (c) 2011 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 org.chromium.debug.core.util;
import java.util.Arrays;
import java.util.HashSet;
import java.util.Set;
import java.util.regex.Pattern;
impor... | 30.933333 | 95 | 0.6875 |
98506ffd12f3226b346ab3d1e00aaebe2181e975 | 13,537 | /*
* Copyright 2015 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 "license" file... | 49.95203 | 124 | 0.695723 |
119fb8cf70f1cb624ff10adfb6aa5c7938a1ac85 | 1,355 | package org.hac.lib;
import org.hac.exception.HacException;
import org.hac.function.NativeFunction;
import java.lang.reflect.Method;
import java.nio.charset.StandardCharsets;
import java.util.ArrayList;
import java.util.Base64;
import java.util.List;
public class Base64Lib {
private static final String LIB_NAME ... | 33.04878 | 104 | 0.659041 |
1e7a789dc1e9f6370d7d5b8cb029e56293cc4665 | 6,838 | /**
* 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... | 44.116129 | 120 | 0.733548 |
d29f1dbdbad836dd87bed0a2b28aeba2c0f100bd | 2,638 | package net.sevecek.videoboss.controller;
import java.util.*;
import org.springframework.stereotype.*;
import org.springframework.web.bind.annotation.*;
import net.sevecek.videoboss.entity.*;
import net.sevecek.videoboss.repository.*;
@Controller
public class CustomersController {
private CustomerRepository cust... | 34.25974 | 79 | 0.600834 |
f6a1328a7cb445e6692101860ff9c7f3bf80655e | 7,515 | /*
* Copyright 2019, OpenTelemetry 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... | 28.683206 | 100 | 0.658417 |
0c446bbdcb212685a5ee93b67791c500078c9c63 | 11,660 | /*
* 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 org.sysapp.bridge;
import java.io.StringReader;
import java.util.HashMap;
import java.util.Map;
import java.util.Properties;
i... | 39.391892 | 117 | 0.51741 |
dba92ba83f75ad1460a143bf7a2559f587c4c2d0 | 18,860 | /*
* Copyright 2003-2018 Bas Leijdekkers
*
* 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 agree... | 38.886598 | 141 | 0.686161 |
18c605cde10df7478302713cd0925d8df0bc82f0 | 279 | package com.harmazing.openbridge.paasos.resource.controller;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
@Controller
@RequestMapping("/resource/architecture")
public class PaasArchitectureController {
}
| 21.461538 | 62 | 0.835125 |
145a22079f6caa19cd488cb1759576b3f5ae1b37 | 2,539 | /*
* Copyright (c) 2008-2017, Hazelcast, 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 required ... | 37.895522 | 120 | 0.704214 |
3181be0008bb3f636e5e7c431365c166e9526a7d | 3,374 | /*
* Copyright 2010-2013 Ning, Inc.
*
* Ning licenses this file to you under the Apache License, version 2.0
* (the "License"); you may not use this file except in compliance with the
* License. You may obtain a copy of the License at:
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | 52.71875 | 118 | 0.534084 |
48a2c7957a82fc29c26b4347cc096d2832a7ab01 | 4,650 | package org.aksw.simba.lsq;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.nio.file.Paths;
import java.util.Calendar;
import java.util.Collection;
import java.util.Map;
import java.util.function.BiConsumer;
import java.util.stream.Collectors;
import org.aksw.simba.lsq.parser.Mapper;
impo... | 34.191176 | 222 | 0.668602 |
541d39b27d386f8957a95e034267488651f5eec0 | 859 | package com.example.usuario.pasarela.Core.Uploader;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.net.wifi.WifiManager;
import android.util.Log;
public class NetworkListener extends BroadcastReceiver {
private static FileUploader uploader =... | 31.814815 | 86 | 0.71362 |
6eba28c96c4ea0e0b59fcd441afbc6753634a5ed | 869 | package top.chenqwwq.leetcode.lcof2._93;
/**
* @author chenbingxin
* @date 2021/12/23
**/
public class Solution {
public int lenLongestFibSubseq(int[] arr) {
final int n = arr.length;
if (n < 3) {
return 0;
}
int ans = 0;
int[][] dp = new int[n][n];
fo... | 26.333333 | 84 | 0.336018 |
76f568c7f64230c63a4124cbdbc8e5a4317c246b | 3,424 | package com.gpfduoduo.wechat.ui.fragment;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.support.v7.widget.Toolbar;
import android.text.TextUtils;
import android.util.Log;
import android.view.View;
import android.view.ViewStub;
import androi... | 30.035088 | 106 | 0.660047 |
4c17813b5fffd9fa23402d0d7449714511da91b1 | 385 | package com.jonathan.framework.task;
import java.util.concurrent.ScheduledThreadPoolExecutor;
import java.util.concurrent.ThreadFactory;
public class TaskThreadPool {
public static final ScheduledThreadPoolExecutor TASK_POOL = new ScheduledThreadPoolExecutor(30, new ThreadFactory() {
@Override
public Thread... | 21.388889 | 119 | 0.776623 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.