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 |
|---|---|---|---|---|---|
10743b03a058e9ef9d3e3c5aacac3406426a1016 | 6,857 | /*
* Copyright The OpenTelemetry Authors
* SPDX-License-Identifier: Apache-2.0
*/
package io.opentelemetry.javaagent.tooling.ignore;
import com.google.auto.service.AutoService;
import io.opentelemetry.instrumentation.api.config.Config;
import io.opentelemetry.javaagent.bootstrap.AgentClassLoader;
import io.opentel... | 43.398734 | 99 | 0.71314 |
1c9e9b061fc1e55caef5e1f00dc6799845731df6 | 1,306 | package io.github.squid233.javaprogrammereditor;
import io.github.squid233.javaprogrammereditor.setting.Settings;
import javax.swing.*;
/**
* @author squid233
*/
public class Main {
public static Frame frame;
public static final String VERSION = "0.2.0-pre-alpha";
public static final String UPDATE_DAT... | 36.277778 | 128 | 0.632466 |
dfdaece9cb83a55b705f5410a5a58a73324fc3ab | 1,944 | //Leetcode problem 217 Contains Duplicate
//Leetcode problem 219 Contains Duplicate II
//Leetcode problem 220 Contains Duplicate III
//Solution written by Xuqiang Fang on 22 March 2018
import java.util.HashMap;
import java.util.Map;
import java.util.Set;
class Solution{
public boolean containsDuplicate(int[] nums) {
... | 29.907692 | 92 | 0.598765 |
9b3e7c8b02de279f593bc27b3c74d56d81deec5d | 762 | package ru.atoroschin;
import io.netty.buffer.ByteBuf;
import io.netty.channel.ChannelHandlerContext;
import io.netty.channel.ChannelInboundHandlerAdapter;
import ru.atoroschin.auth.AuthService;
public class AuthHandler extends ChannelInboundHandlerAdapter {
private final AuthService authService;
public Auth... | 29.307692 | 85 | 0.707349 |
7c3996903f5edaf0d55db4337897a73af83b5b78 | 364 | /**
* Copyright 2015, Xiaomi.
* All rights reserved.
* Author: yongxing@xiaomi.com
*/
package com.xiaomi.infra.galaxy.talos.consumer;
public class TalosMessageReaderFactory implements MessageReaderFactory {
@Override
public MessageReader createMessageReader(TalosConsumerConfig consumerConfig) {
return ne... | 22.75 | 80 | 0.782967 |
db05c421cc468861485887c255d32a092274fd01 | 1,588 | /*
Leetcode Problem 198: House Robber
https://leetcode.com/problems/house-robber/description/
You are a professional robber planning to rob houses along a street. Each house has a certain amount
of money stashed, the only constraint stopping you from robbing each of them is that adjacent houses
have security system c... | 29.962264 | 100 | 0.639798 |
ef2e2311305c40258ac66ae75164e27d93515796 | 364 | package iitb.Segment;
import iitb.CRF.*;
/**
*
* @author Sunita Sarawagi
*
*/
public interface TrainData extends DataIter {
int size(); // number of training records
void startScan(); // start scanning the training data
boolean hasMoreRecords();
public TrainRecord nextRecord();
boolean hasN... | 20.222222 | 57 | 0.673077 |
d37252d9d5ec48e624473dba42ae22f2c51a395f | 1,284 | package ex;
import java.util.Scanner;
/*
* Topic: 輸入所使用的度數,換算夏月及非夏月之電費金額。
* Date: 2016/12/05
* Author: 105021062 鄭雅韵
*/
public class ex02 {
public static void main(String[] args) {
// TODO Auto-generated method stub
Scanner scn=new Scanner(System.in);
float n=scn.nextInt();
float a=0;
float b=0;
if(... | 27.319149 | 91 | 0.563863 |
05a66b67654863767a740076839656b66630abdb | 5,808 | package com.google.android.gms.vision.barcode;
import android.graphics.Point;
import android.os.Parcel;
import android.os.Parcelable.Creator;
import com.google.android.gms.common.internal.safeparcel.zza;
import com.google.android.gms.vision.barcode.Barcode.CalendarEvent;
import com.google.android.gms.vision.barcode.Ba... | 46.095238 | 154 | 0.590565 |
7f8c4af45eacd510a4c31f69128fd12eda7fd540 | 368 | package code.madhan.sfmovietour.repository;
import org.springframework.data.repository.PagingAndSortingRepository;
import org.springframework.stereotype.Repository;
import code.madhan.sfmovietour.model.Movie;
@Repository
public interface MovieRepository extends PagingAndSortingRepository<Movie, String>, CustomMovieR... | 24.533333 | 107 | 0.839674 |
bef0d5f7c80f5a4e3c98717166442743565b754b | 1,378 | package com.alibaba.smart.framework.engine.smart.parser;
import javax.xml.namespace.QName;
import javax.xml.stream.XMLStreamReader;
import com.alibaba.smart.framework.engine.extension.annoation.ExtensionBinding;
import com.alibaba.smart.framework.engine.extension.constant.ExtensionConstant;
import com.alibaba.smart.f... | 29.319149 | 85 | 0.748911 |
b66c05a868283417ea3b7ea9ab99f1216a50026b | 7,966 | /**
* Copyright 2017 ZuInnoTe (Jörn Franke) <zuinnote@gmail.com>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appli... | 35.721973 | 675 | 0.774793 |
d308ec01d8489e64459fcbe383df7214b90c85fb | 4,324 | package cn.newcapec.function.platform.dao;
import java.util.ArrayList;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
import org.apache.commons.lang.StringUtils;
import org.springframework.stereotype.Repository;
import cn.newcapec.framework.core.dao.hibernate.HibernateEntityDao;
import ... | 28.826667 | 97 | 0.678538 |
ffd5d0ac5edcffbb8da7d3134af6fe22ddcbc2db | 5,421 | /*
* Copyright (c) 2008-2021, 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 ... | 36.877551 | 125 | 0.68991 |
1ddec250e16dc006fe4704d3e7c5dcdbddaaea32 | 1,784 | /*
* #!
* Ontopoly Editor
* #-
* Copyright (C) 2001 - 2013 The Ontopia Project
* #-
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.... | 29.733333 | 110 | 0.713004 |
6add99e3d375643b5c58dadbbdb46d7f591e88bd | 2,225 | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.proschedule.core.calendar.model;
import java.util.List;
import java.util.Date;
import com.proschedule.util.date.DateUtil;
import java.util.Set;
import org.junit.After;
import org.junit.AfterClass;
import or... | 22.474747 | 68 | 0.583371 |
57fc8ba0a7867cd666d9a15cfa99e25513269bfb | 8,170 | /*
* Copyright 2016 Google 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 by appli... | 44.89011 | 96 | 0.753611 |
dcff46cd7691bcd8e574ba1270060bba592eb812 | 23,626 | /**
* Copyright 2015 Confluent 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 in ... | 34.795287 | 158 | 0.677347 |
0b16cefa617356d6b5ad7ba8b17268b13a1737c7 | 16,490 | package greenerLawn.androidthings.GreenerHub;
import android.app.Activity;
import android.app.AlarmManager;
import android.app.PendingIntent;
import android.content.Context;
import android.content.Intent;
import android.net.ConnectivityManager;
import android.net.NetworkInfo;
import android.os.Bundle;
import android.o... | 42.282051 | 173 | 0.597514 |
a60f24725601b8c471659f85f03f3b5aa52fc173 | 9,186 | package com.sanju.youtubedata.service;
import com.google.api.client.googleapis.json.GoogleJsonResponseException;
import com.google.api.client.http.HttpRequest;
import com.google.api.client.http.HttpRequestInitializer;
import com.google.api.client.http.HttpTransport;
import com.google.api.client.http.javanet.NetHttpTra... | 40.826667 | 136 | 0.674069 |
7320f1eff9392751400661c4586ef49162ecd02c | 207 |
public class ExercicioSeis {
public static void main(String[] args) {
int[] v = { 5, 10, 15, 20, 25, 30, 35, 40, 45, 50 };
for(int i = 0; i < v.length; i++) {
System.out.println(v[i]);
}
}
}
| 17.25 | 54 | 0.541063 |
a04e79d3cad56e931be14a372288964ce6620aa7 | 619 | package jp.spring.boot.algolearn.teacher.form;
import java.util.List;
import lombok.Data;
import lombok.NoArgsConstructor;
/**
* 先生用コースForm(course form for teacher).
* @author tejc999999
*/
@Data
@NoArgsConstructor
public class CourseForm {
/**
* コースID(course id).
*/
private S... | 17.194444 | 47 | 0.599354 |
2b4f25b11f07571205ae8029538abe43bd7e1e70 | 248 | /*
*
* * Copyright 2020 New Relic Corporation. All rights reserved.
* * SPDX-License-Identifier: Apache-2.0
*
*/
package com.newrelic.agent.instrumentation.iface;
public interface SampleSuperInterfaceObject {
int getOtherNumber();
}
| 16.533333 | 64 | 0.721774 |
d497efeb92d3db354dba9e451cad554dfc543af1 | 793 | package io.kyberorg.yalsee.redis.pubsub;
import lombok.RequiredArgsConstructor;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.data.redis.listener.ChannelTopic;
import org.springframework.stereotype.Service;
/**
* Service that sends messages to Yalsee Application Channel in Redi... | 29.37037 | 84 | 0.757881 |
571d57a3bafba8d1b3ea9ffba1cef4a8cd910e27 | 2,258 | package at.sms.business.sdk.http.impl;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import at.sms.business.api.domain.sms.SmsSendResponse;
import at.sms.business.sdk.client.util.DeleteUnderscoreAtTheBeginning;
import at.sms.business.sdk.client.util.StatusCodes;
import at.sms.business.sdk.exception.ApiExce... | 25.659091 | 104 | 0.751993 |
2ebd2ffc3e6229218ba91cf9e2c106c07c0c4614 | 1,697 | package Application.Controllers;
import Application.Helpers.Quiz;
import javafx.fxml.FXML;
import javafx.fxml.Initializable;
import javafx.scene.control.Button;
import javafx.scene.control.ComboBox;
import javafx.stage.Stage;
import java.net.URL;
import java.util.ResourceBundle;
/**
* The controller for the 'Quiz St... | 29.258621 | 97 | 0.740719 |
02961562b22b0b836468a7ffd9203946b8ba62ab | 8,554 | /*
* Copyright 2019 Red Hat, Inc. 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 app... | 61.1 | 147 | 0.509002 |
6d4524097a90322c16f2b46cf0eef6b948da36e6 | 21,651 | /* -*- Mode: java; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this file except in compliance with
* the License. Yo... | 35.668863 | 130 | 0.583437 |
32729b506deef168a123fc329923889ddc1e88ec | 350 | package cn.com.tsjx.common.config.file.protocol;
/**
* @author <a href="mailto:wangyuxuan@dangdang.com">Yuxuan Wang</a>
*
*/
public final class ProtocolNames {
public static String FILE = "file";
public static String CLASSPATH = "classpath";
public static String HTTP = "http";
public stati... | 20.588235 | 68 | 0.668571 |
271d6c31494eee8a4eb3718fb86afba9389a190b | 261 | package com.google.sampling.experiential.dao;
import java.sql.SQLException;
import com.google.sampling.experiential.server.PacoId;
public interface CSExternStringInputDao {
PacoId getTextAndCreate(String label, boolean createOption) throws SQLException;
}
| 26.1 | 82 | 0.835249 |
34a53755b6470e182c7644de2f34b803f47c1f8c | 1,036 | package models;
public class CellErrorJSON implements Comparable<CellErrorJSON> {
private String column = "";
private String row = "";
private String error = "";
public CellErrorJSON(final String column, final String row, final String error) {
this.column = column;
this.row = row;
this.error = error;
}
... | 21.583333 | 82 | 0.67471 |
9324bbda88cdbdc52e9333892595145e545792d9 | 973 | package com.nr.agent.instrumentation.r2dbc;
import com.newrelic.api.agent.Trace;
import io.r2dbc.spi.Connection;
import reactor.core.publisher.Mono;
public class R2dbcTestUtils {
@Trace(dispatcher = true)
public static void basicRequests(Connection connection) {
Mono.from(connection.createStatement("I... | 54.055556 | 147 | 0.716341 |
2f6a291c82e9e5f144fd34ab8e0122c9189d9a9f | 1,151 | package com.ofdbox.core.xmlobj.signature;
import com.ofdbox.core.xmlobj.adapter.StBoxAdapter;
import com.ofdbox.core.xmlobj.adapter.StRefIdAdapter;
import com.ofdbox.core.xmlobj.st.ST_RefID;
import com.ofdbox.core.xmlobj.st.ST_Box;
import lombok.Data;
import org.hibernate.validator.constraints.NotBlank;
import javax.... | 27.404762 | 61 | 0.765421 |
81ec83938b585311fbb29f3e422c1b61e4dc0364 | 297 | package net.violet.probes;
import javax.management.openmbean.CompositeData;
import javax.management.openmbean.OpenDataException;
public interface CacheProbeMBean {
CompositeData getCacheMapSizesStats() throws OpenDataException;
CompositeData getCachePulseStats() throws OpenDataException;
}
| 24.75 | 64 | 0.851852 |
8213540793ca88cbb42646a391706b58f148adc7 | 948 | package ai.giskard.repository;
import lombok.NonNull;
import org.mapstruct.Named;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.repository.NoRepositoryBean;
/**
* A standard JpaRepository interface that helps Mapstruct to find an ID-to-T
* mapper method
*/
@NoReposit... | 26.333333 | 86 | 0.683544 |
a43d403f67f4d8c551a5c1e1d3f67924d2b385af | 2,334 | package com.rbkmoney.dark.api.service;
import com.rbkmoney.damsel.domain.Blocked;
import com.rbkmoney.damsel.domain.PartyStatus;
import com.rbkmoney.damsel.payment_processing.InternalUser;
import com.rbkmoney.damsel.payment_processing.PartyManagementSrv;
import com.rbkmoney.damsel.payment_processing.UserInfo;
import c... | 37.645161 | 117 | 0.705227 |
6a5e0388ff7ec3807ffc46cec5a3e5c3fc5c8bf9 | 3,099 | /*
* [New BSD License]
* Copyright (c) 2011-2012, Brackit Project Team <info@brackit.org>
* 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 reta... | 35.215909 | 83 | 0.736689 |
5d5638de8361a93af16622ec94ee9037d0ef7173 | 15,103 | package com.zebra.windevmobilemxwrapper;
// Android / Java imports
import android.app.Activity;
import android.text.TextUtils;
import android.util.Log;
import android.util.Xml;
import java.io.StringReader;
import java.util.ArrayList;
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
import com.symbol.... | 36.836585 | 189 | 0.552605 |
c2a73f87c248171cb5f7e85e5b960eb72a314c31 | 1,671 | package com.orangetalents.proposta.novaproposta;
import java.math.BigDecimal;
import javax.validation.constraints.Email;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Positive;
import com.orangetalents.proposta.compartilhada.utils.Encry... | 23.535211 | 96 | 0.758827 |
350d8b0bcc777ba92485ae58cd5400b86f912771 | 253 | package net.lacnic.elections.exception;
public class OperationNotPermittedException extends Exception {
private static final long serialVersionUID = 8041401889653642928L;
public OperationNotPermittedException(String error) {
super(error);
}
}
| 19.461538 | 67 | 0.814229 |
4f9a1972c23bc2de96981461aef45f1556e3fb97 | 4,405 | /*
* (C) Copyright 2009 Nuxeo SA (http://nuxeo.com/) and others.
*
* 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 require... | 33.625954 | 95 | 0.681952 |
ee1416e6905032e57c5c6ae71e4729c4c8fc3759 | 3,575 | package org.zstack.image;
import org.zstack.header.identity.SessionInventory;
import org.zstack.header.image.ImageArchitecture;
import org.zstack.header.longjob.LongJobMessageData;
import org.zstack.header.message.NeedReplyMessage;
import java.util.List;
/**
* Created by Camile on 2/5/18.
* copy by APIAddImageMsg... | 21.536145 | 72 | 0.64979 |
d9752620329b7acff56d79d00548b5e49e3a9bc0 | 2,737 | package com.hope.mall.mallproduct.controller;
import java.util.Arrays;
import java.util.Map;
//import org.apache.shiro.authz.annotation.RequiresPermissions;
import com.hope.mall.mallproduct.service.CategoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.anno... | 27.09901 | 71 | 0.710267 |
9d70fbbd07629641342f3ac096defb0a81762e93 | 1,993 | // Author: mszal@google.com (Michael Szal)
package com.google.libwebm.mkvmuxer;
import com.google.libwebm.Common;
public class Tracks extends Common {
public enum Type {
None,
kVideo,
kAudio
};
public static final String kVorbisCodecId = "A_VORBIS";
public static final String kVp8CodecId = "V_V... | 28.070423 | 80 | 0.74862 |
dc14f248f35bd6c165293bd5c3e6e683b1e01f73 | 1,474 | package mage.cards.v;
import mage.MageInt;
import mage.abilities.Ability;
import mage.abilities.common.DiesTriggeredAbility;
import mage.abilities.effects.common.counter.AddCountersTargetEffect;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import mage.constants.SubType;
im... | 30.708333 | 115 | 0.738806 |
c5e3a12b81ccccab7ffac8fd150593cd41d91507 | 637 | package com.boot.saas.mapper;
import com.boot.saas.domain.MysqlAccount;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
/**
* MysqlAccount
*
* @author lizhifu
* @date 2020/12/22
*/
public interface MysqlAccountMapper {
/**
* 查询
* @param id
* @return
... | 21.233333 | 67 | 0.642072 |
76e2c0e0d08011b939e8454934dc4a3ac12eead7 | 2,114 |
package com.commercetools.api.models.message;
import java.time.*;
import java.util.*;
import java.util.function.Function;
import javax.validation.Valid;
import com.commercetools.api.models.customer_group.CustomerGroupReference;
import com.fasterxml.jackson.annotation.*;
import com.fasterxml.jackson.databind.annotat... | 36.448276 | 120 | 0.790445 |
4add9944b74f4336c1510bef5517daf3d6581ac6 | 3,308 | /*$$
* Copyright (c) 1999, Trustees of the University of Chicago
* 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 not... | 34.103093 | 79 | 0.740931 |
7fb3cca280bd0ed612e65f83e9259e5a7af8d434 | 8,327 | /*
* Copyright 2017 Austin Lehman
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... | 34.127049 | 192 | 0.688603 |
e6e2e00125c174b515d00679df39b51df9aae311 | 2,362 | package com.amsavarthan.hify.feature_ai.utils;
import android.content.ContentValues;
import android.content.Context;
import android.database.Cursor;
import android.database.DatabaseErrorHandler;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
import java.util.ArrayList;... | 29.525 | 90 | 0.684589 |
5a499ee0d7f26242555bdc333ab4c7db2995336a | 444 | package com.neu.his.cloud.zuul.service.sms;
import com.neu.his.cloud.zuul.model.SmsPermission;
import com.neu.his.cloud.zuul.model.SmsStaff;
import java.util.List;
/**
* @author Zain
* @title: SmsRoleService
* @projectName his-cloud
* @description: TODO
* @date 2019/6/17 14:20
*/
public interface SmsRoleServic... | 19.304348 | 55 | 0.691441 |
46db86bb1d9a3a061cf229f48e451d709d0f0733 | 465 | package org.getopentest.selenium;
import org.getopentest.selenium.core.SeleniumTestAction;
public class ActionsPerform extends SeleniumTestAction {
@Override
public void run() {
this.waitForAsyncCallsToFinish();
try {
SeleniumTestAction.getActionsInstance().perform();
... | 23.25 | 62 | 0.630108 |
d6542af3a64eff194fb8637c4d3a6d1e546e79d3 | 7,398 | package com.netopyr.wurmloch.integration;
import com.netopyr.wurmloch.crdt.ORSet;
import com.netopyr.wurmloch.store.CrdtStore;
import org.testng.annotations.BeforeMethod;
import org.testng.annotations.Test;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.contains;
import stati... | 26.234043 | 76 | 0.595431 |
63dc0aadb5e1875f86a973f0e16cecc972de2130 | 14,012 | package com.github.pmoerenhout.atcommander.module.telit.commands;
import java.util.ArrayList;
import java.util.List;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import org.apache.commons.lang3.StringUtils;
import com.github.pmoerenhout.atcommander.AtResponse;
import com.github.pmoerenhout.atcomma... | 33.361905 | 205 | 0.585641 |
b4602d664a3fa74e0b9c44b547f8aefabfca4b48 | 5,447 | /*
* Copyright 2002-2005 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by... | 25.101382 | 85 | 0.591518 |
bd72af1e4daa0ba7a4fdc7d34a3711ce8178d3c8 | 1,822 | package uk.gov.companieshouse.service.email;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import uk.gov.companieshouse.exception.EmailSendException;
import uk.gov.companieshouse.kafka.message.Message;
import uk.gov.companieshouse.kafka.producer.CHKafkaPr... | 33.740741 | 100 | 0.712404 |
7c3c8e6b2bb5a6746a3ebfa97d4cb21e50314da6 | 2,926 | /**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
*/
package com.microsoft.azure.batch.protocol.models;
import com.fasterxml.jackson.annotat... | 29.26 | 145 | 0.670882 |
6a9bb98813d9615c9071e1dad2e5ef8ad11102d5 | 17,360 | package org.cobbzilla.wizard.main;
import fr.opensagres.xdocreport.core.io.IOUtils;
import lombok.Cleanup;
import lombok.extern.slf4j.Slf4j;
import org.cobbzilla.util.daemon.ZillaRuntime;
import org.cobbzilla.util.handlebars.HandlebarsUtil;
import org.cobbzilla.util.http.HttpStatusCodes;
import org.cobbzilla.util.io.F... | 46.417112 | 180 | 0.605012 |
303ee1eabde8c1539c385b7c0b41e05816db1c91 | 3,930 | /**
* Copyright (C) 2014 Karlsruhe Institute of Technology
*
* 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... | 28.897059 | 124 | 0.627226 |
9915a7cb2ab809e1a600fd9359e11222b027a1d3 | 962 | package br.com.cadastrousuarios.controller;
import javax.enterprise.context.ApplicationScoped;
import javax.faces.bean.ManagedBean;
@ManagedBean(name = "LoginBean")
@ApplicationScoped
public class LoginBean {
public Usuario usuario;
private String mensagem;
public String verificaLogin() {
if (usuario.getNome()... | 18.5 | 92 | 0.714137 |
010b18c12af8484a7b858f6b26210c74e46ca9d0 | 4,745 | package io.gitbooks.abhirockzz.jwah.chat;
import io.gitbooks.abhirockzz.jwah.chat.eventbus.ChatEventBus;
import io.gitbooks.abhirockzz.jwah.chat.internal.NewJoineeMessageEncoder;
import io.gitbooks.abhirockzz.jwah.chat.internal.LogOutMessageEncoder;
import io.gitbooks.abhirockzz.jwah.chat.internal.ReplyEncoder;
... | 34.136691 | 114 | 0.660695 |
d7184296e00c2399a48002abaa0f861bd2e22701 | 20,206 | package de.renew.net;
import de.renew.database.Transaction;
import de.renew.database.TransactionSource;
import de.renew.engine.common.SimulatorEventLogger;
import de.renew.engine.common.StepIdentifier;
import de.renew.engine.events.TraceEvent;
import de.renew.engine.searcher.TriggerableCollection;
import de.renew.eng... | 36.017825 | 96 | 0.652133 |
b6c60429c39516a6bdf80e01a1d74d0fbaeaeb5f | 3,298 | package com.example.oculusvrdemo;
import android.content.Context;
import android.util.Log;
import com.wahoofitness.connector.HardwareConnector;
import com.wahoofitness.connector.HardwareConnectorEnums;
import com.wahoofitness.connector.HardwareConnectorTypes;
import com.wahoofitness.connector.capabilities.Capability;... | 34.354167 | 161 | 0.757732 |
3369817e825ab2220f84ee8adb97496b3ccb2b43 | 1,403 | package daggerok.app.entities;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import javax.persistence.*;
import java.io.Serializable;
import java.util.LinkedHashSet;
import java.util.Set;
import static javax.persistence.CascadeType.ALL;
import static javax.persistence.Enu... | 25.981481 | 86 | 0.725588 |
461685e8330a42842db7711dc21731ac4809b84e | 1,277 | package com.redhat.service.smartevents.shard.operator.resources.istio;
import java.util.List;
import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
@JsonIgnoreProperties(ignoreUnknown = true)
public class AuthorizationPolicySpecRuleWhen {
private String key;
private List<St... | 23.218182 | 84 | 0.634299 |
73e564d23b75099a5d828566a004310c79d35d85 | 924 | package org.esfinge.aom.simpletypesquare;
import java.util.ArrayList;
import java.util.List;
import org.esfinge.aom.model.rolemapper.metadata.annotations.EntityType;
import org.esfinge.aom.model.rolemapper.metadata.annotations.Name;
import org.esfinge.aom.model.rolemapper.metadata.annotations.PropertyType;
... | 20.533333 | 75 | 0.721861 |
f0f16388eee76ee30919469510a57588d6dbeb74 | 1,306 | package uk.gov.hmcts.reform.professionalapi.domain;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.Set;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
@NoArgsConstructor
@Getter
@Setter
public class UserProfil... | 28.391304 | 96 | 0.639357 |
06e79fe841ac1f7080defea5552ff2264f44a364 | 933 | package saigonwithlove.ivy.intellij.shared;
import com.intellij.AbstractBundle;
import java.lang.ref.Reference;
import java.lang.ref.SoftReference;
import org.jetbrains.annotations.NonNls;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.PropertyKey;
public class IvyBundle extends AbstractBu... | 29.15625 | 93 | 0.742765 |
1a75fb4b3c69877a92c3f24508d3f53f2f565237 | 1,149 | /*
* Copyright 1999-2011 Alibaba Group Holding 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 applica... | 26.72093 | 75 | 0.738903 |
20673c07f610032b0735e2011084fde8f3519744 | 106 | package facade;
/**
* Created by OGC on 2016/4/12.
*/
public interface SystemA {
void systema();
}
| 11.777778 | 31 | 0.632075 |
52060f3cba7b339e9dd3cc9f2a27266e02e32803 | 1,183 | public class Divs32 {
static final int MAX_INT = 2147483647;
static final int MIN_INT = -2147483648;
public static int divS32(int numerator, int denominator) {
int quotient;
int tempAbsQuotient;
boolean quotientNeedsNegation = false;
if (denominator == 0) {
quotient = numerator >= 0 ? MAX_... | 31.972973 | 90 | 0.645816 |
8a2ff85c24f03e17fb53550ccf3cb124d0be703e | 1,740 | package com.flowid.futils;
import java.io.Serializable;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.flowid.xdo.cmn.StructMessage;
public class Result<T> implements Serializable {
private static final long serialVersionUID = 1L;
T... | 23.835616 | 89 | 0.598276 |
091d203e4581587df26e1ae723577df475581d64 | 8,872 | package py.com.sodep.mobileforms.impl.services.metadata.core;
import java.util.ArrayList;
import java.util.List;
import javax.persistence.NoResultException;
import javax.persistence.Query;
import javax.persistence.TypedQuery;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.f... | 34.387597 | 113 | 0.746393 |
3c5e96ed687411f0b2b79f167479c4fc443877e5 | 2,231 | package org.objectweb.asm.commons;
import org.objectweb.asm.ModuleVisitor;
public class ModuleRemapper
extends ModuleVisitor
{
private final Remapper remapper;
public ModuleRemapper(ModuleVisitor paramModuleVisitor, Remapper paramRemapper)
{
this(393216, paramModuleVisitor, paramRemapper);
}
pro... | 29.355263 | 98 | 0.711788 |
9867d2652856e94f3b7c5558d6ed0cd6f02d6af9 | 2,367 | package dk.viabill.productorders.entity;
// Generated Dec 8, 2018 4:40:16 PM by Hibernate Tools 4.3.1
import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import java... | 25.180851 | 94 | 0.672159 |
7e323c4f9a0eca7b4cffedb90b060ef34de45510 | 976 | package me.bedaring.imsproject.models;
import javax.persistence.*;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.util.ArrayList;
import java.util.List;
/**
* @author Michael DeAngelo
* last update date: Aug 21, 2018
* purpose: This class defines the group that u... | 19.918367 | 117 | 0.670082 |
292824408004dda52d8e2b6aa0a58d4a8359cbbc | 3,582 | package net.egork.collections;
import net.egork.generated.collections.comparator.IntComparator;
import net.egork.misc.ArrayUtils;
/**
* @author egor@egork.net
*/
public class KDTree2D {
private final int[] weight;
private final int[] x;
private final int[] y;
private final int[] at;
private fina... | 38.106383 | 119 | 0.506979 |
a1aebcd1139e0bb3ea0535e023f2b4ef6451d3ad | 2,184 | /*
* Copyright 2003 - 2020 The eFaps Team
*
* 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 ... | 25.103448 | 75 | 0.657967 |
0742f66c536fce7d1241a6c82a7db175b1963ee0 | 3,209 | package xyz.less.bean;
import java.io.File;
import java.util.Map;
import java.util.Set;
import javafx.scene.media.MediaView;
import javafx.stage.Stage;
import javafx.stage.StageStyle;
import xyz.less.graphic.Guis;
import xyz.less.graphic.skin.MiniSkin;
import xyz.less.graphic.skin.Skin;
import xyz.less.gr... | 23.595588 | 64 | 0.718604 |
e9946842b100c252bc14bd27e5b8ace134083453 | 1,275 | /*
* Copyright (c) 2020 www.hoprxi.com 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 ... | 30.357143 | 79 | 0.716863 |
b3ad27036c5d858393ac6b9e5b2915d93da616b3 | 379 | package com.moolng.canal.es.entity.suggest;
import lombok.Data;
import java.io.Serializable;
@Data
public class Source implements Serializable {
private static final long serialVersionUID = 6501362699465908840L;
private int id;
private String content;
private NameSuggest nameSuggest;
private I... | 19.947368 | 68 | 0.765172 |
70bde9cd026c884c09ec411c8c8c724e8514b307 | 56 | package p;
class A{
void m(int i){
class Local{}
}
} | 9.333333 | 15 | 0.589286 |
3d235e88c8e8914e8d3ef28caa95ac6bcda62aea | 1,710 | import java.io.IOException;
import java.io.InputStream;
public class MainEntry {
public static void main(String[] args) {
// the command to execute
executeCmd("ls -oa");
}
private static void executeCmd(String string) {
InputStream pipedOut = null;
try {
Process... | 26.307692 | 89 | 0.533918 |
b8294469b693be5f6045be2072dcd01ca8b4fa8d | 529 | package com.citraining.tag;
import java.io.IOException;
import javax.servlet.jsp.JspException;
import javax.servlet.jsp.tagext.SimpleTagSupport;
import tldgen.Tag;
import tldgen.TagAttribute;
@Tag
public class HelloTag extends SimpleTagSupport{
private String name;
@TagAttribute(required=true)
public vo... | 21.16 | 59 | 0.701323 |
426ca84286bee88958910866e4c473e615b3d16d | 663 | package ru.kireev.junit_mockito.auth;
import java.util.Optional;
/*
*
* Проверить логику аутентификации:
* 1) Если логин/пароль введен верно - возвращается true
* 2) Если пользователя не существует или логин/пароль введен неверно - возвращается false
*
* */
public class AuthenticationService {
private fina... | 24.555556 | 90 | 0.689291 |
44a52e10fef9865577a42407963619a6e76b1810 | 6,947 | package com.example.borrowface.coolweather;
import android.content.Intent;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.preference.PreferenceManager;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.support.v4.widget.SwipeRefreshLa... | 40.389535 | 123 | 0.627609 |
939633b797536bd7b7a5e3b59c76162a1ae19966 | 1,380 | package android.support.v7.view.menu;
import android.content.Context;
import android.graphics.drawable.Drawable;
import android.support.v4.p008d.p009a.C0091c;
import android.view.MenuItem;
import android.view.SubMenu;
import android.view.View;
class ae extends ac implements SubMenu {
ae(Context context, C0091c c0... | 22.258065 | 62 | 0.635507 |
dabf96606f3f8c75279e522c40b1da11e0a55035 | 451 | // SPDX-License-Identifier: MIT
package com.mercedesbenz.sechub.domain.scan.config;
/**
* Just a special variant to have possibility to change ScanMappingConfiguration
*
* @author Albert Tregnaghi
*
*/
public class DeveloperToolsScanMappingConfigurationService extends ScanMappingConfigurationService {
public... | 26.529412 | 100 | 0.793792 |
a341146701f7d872e45c2b99f1ae1fd04d88ea3a | 4,193 | /**
* Copyright 2005-2014 Red Hat, Inc.
*
* Red Hat 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 r... | 39.186916 | 93 | 0.63606 |
5f28fca863bf304d14c7530ad02e1997ea6764d5 | 14,978 | /**
* SetTopBoxCreative.java
*
* This file was auto-generated from WSDL
* by the Apache Axis 1.4 Mar 02, 2009 (07:08:06 PST) WSDL2Java emitter.
*/
package com.google.api.ads.dfp.axis.v201605;
/**
* A {@code Creative} that will be served into cable set-top boxes.
* There are no assets for this
* c... | 41.261708 | 143 | 0.652156 |
44209313bffa2cb37eeda14b00a37a4eab35ec47 | 858 | package com.github.bogdanovmn.translator.web.app.user;
import org.hamcrest.CoreMatchers;
import org.junit.Test;
import java.io.IOException;
import java.net.URISyntaxException;
import java.nio.file.Files;
import java.nio.file.Paths;
import static org.hamcrest.CoreMatchers.is;
import static org.junit.Assert.assertThat... | 19.5 | 73 | 0.723776 |
65f453e7d97ea0f75c5e8a42bb243dccd42b8fdf | 567 | package com.lge.stark.model;
import com.lge.stark.Jsonizable;
public class ChannelUserMap extends Jsonizable {
private String channelId;
private String userId;
public ChannelUserMap() {
}
public ChannelUserMap(String channelId, String userId) {
this.channelId = channelId;
this.userId = userId;
}
public ... | 17.181818 | 57 | 0.733686 |
74f46569f8828fa2145f94a7744ecb3d7da4eeeb | 5,861 | package lia.advsearching;
/**
* Copyright Manning Publications Co.
*
* 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 requ... | 36.861635 | 89 | 0.628732 |
b2a0656bff79c7d04b588f45dae650e7d385445d | 5,801 | package com.example.aliosama.des.Model;
import java.util.ArrayList;
/**
* Created by aliosama on 12/17/2017.
*/
public class Key {
static ArrayList<KeyModel> SubKeys;
static ArrayList<String> Key_8_blocks;
static String Key;
static ArrayList<CD_Model> C_D;
static int[][] PC1 =
{{5... | 37.915033 | 116 | 0.489054 |
f885ce759eb71e51b1de8c0c47cf039ac3d6864d | 6,270 | package eu.iamgio.jrfl.program;
import eu.iamgio.jrfl.Console;
import eu.iamgio.jrfl.Logger;
import eu.iamgio.jrfl.api.JrflPlugin;
import eu.iamgio.jrfl.api.colors.Colors;
import eu.iamgio.jrfl.api.commands.Commands;
import eu.iamgio.jrfl.api.configuration.Configuration;
import eu.iamgio.jrfl.api.configuration.SubFold... | 38.466258 | 126 | 0.689474 |
c4e2222eac6b82b2aacf3f2775ec8c07bd04cdc8 | 2,155 | /**
*
Given an array of ints, is it possible to divide the ints into two groups,
so that the sum of one group is a multiple of 10, and the sum of the other group is odd.
Every int must be in one group or the other. Write a recursive helper method that takes
whatever arguments you like, and make the initial call to... | 29.121622 | 135 | 0.553132 |
8fbd74063a8c2b368c2a2d8e2df6c484adf02dd5 | 4,191 | /*
Copyright (C) 2008 Richard Gomes
This source code is release under the BSD License.
This file is part of JQuantLib, a free-software/open-source library
for financial quantitative analysts and developers - http://jquantlib.org/
JQuantLib is free software: you can redistribute it and/or modify it
under the te... | 35.218487 | 92 | 0.66953 |
c1f57576ba84026717c4be207d0620b67e2e1f12 | 3,534 | /*
* Copyright (C) 2009 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | 34.647059 | 95 | 0.648557 |
14beb6faec225ea2df7cbc13c89653f150062683 | 1,356 | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | 28.25 | 75 | 0.708702 |
d37efc24b2f00df1e3f34fc2b7669d817f9f9ece | 11,933 | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | 46.796078 | 158 | 0.715662 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.