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 |
|---|---|---|---|---|---|
67d9a9768ee1125c491ddc5563d52fde47184a93 | 1,623 | package org.apache.hudi.intsig;
import org.apache.flink.api.common.RuntimeExecutionMode;
import org.apache.flink.streaming.api.environment.StreamExecutionEnvironment;
import org.apache.flink.table.api.bridge.java.StreamTableEnvironment;
public class ProducerData {
/**
* 生成数据,写到本地文件中
* @param args
... | 34.531915 | 116 | 0.561306 |
15b597d352a2ccbe1b351645fa6b2384bac1d002 | 417 | //This is Programming Challenge 1
public class ProgrammingChallenge1
{
public static void main(String args[])
{
String name = "Martin Piskor";
int age;
age = 18;
double annualPay = 15000;
System.out.println("My name is " + name + " and I am " + age + " years old.");
Syst... | 21.947368 | 84 | 0.585132 |
4287229c2d5a06da73ddc23aae6e7579b5807186 | 1,310 | package com.jnape.palatable.lambda.functions.builtin.fn2;
import com.jnape.palatable.lambda.functions.builtin.fn3.LTEBy;
import com.jnape.palatable.lambda.functions.specialized.BiPredicate;
import com.jnape.palatable.lambda.functions.specialized.Predicate;
import static com.jnape.palatable.lambda.functions.builtin.fn... | 30.465116 | 120 | 0.687023 |
59faba6ac3937edc4b98886acd5fff3b190262b8 | 53,362 | /*
* This file was automatically generated by EvoSuite
* Thu Aug 23 17:52:10 GMT 2018
*/
package com.soops.CEN4010.JMCA.JParser;
import org.junit.Test;
import static org.junit.Assert.*;
import static org.evosuite.shaded.org.mockito.Mockito.*;
import static org.evosuite.runtime.EvoAssertions.*;
import com.soops.CEN... | 30.809469 | 176 | 0.633128 |
74f5892d0e8c8b9016ee2ed67ea242366d531ac2 | 6,447 | /*
* (C) Copyright 2020 Radix DLT Ltd
*
* Radix DLT Ltd 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 re... | 31.758621 | 142 | 0.727625 |
b26879ddbd1de9a657974322a640acf292f35ea7 | 3,016 | package com.yurihs.calculadorarf;
import android.content.res.Resources;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.design.widget.TextInputLayout;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;... | 31.092784 | 95 | 0.668103 |
39a7384fdbb118402f876698541cde765fee487c | 87 | class Test {
public int field = anotherField;
public static int anotherField = 1;
} | 21.75 | 37 | 0.724138 |
8a6f965d25560b3fb99d02770f4cf87e3d9adef4 | 3,759 | /*
* 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 ... | 49.460526 | 183 | 0.724395 |
47247fa17cb4a73c007b66e1d25cae17d1adef34 | 1,831 | package de.unbound.game.mode.serversurvival;
import de.unbound.game.collisionhandler.BodyCollisionHandler;
import de.unbound.game.collisionhandler.VisionCollisionHandler;
import de.unbound.game.mode.CollisionDetection;
import de.unbound.game.model.entities.Entity;
import de.unbound.utility.UnboundConstants;
public cl... | 34.54717 | 146 | 0.77444 |
08a3e9a7e46e87ddbece78dec1584823de01afe1 | 23,886 | package adf.sample.module.complex;
import adf.agent.communication.MessageManager;
import adf.agent.communication.standard.bundle.MessageUtil;
import adf.agent.communication.standard.bundle.information.*;
import adf.agent.communication.standard.bundle.centralized.CommandFire;
import adf.agent.communication.standard.bun... | 42.426288 | 136 | 0.52851 |
85777e0328e5cf6acf9a41b89461577f0eb333d5 | 930 | package com.zw.platform.task;
import com.zw.platform.service.reportManagement.VehStateService;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.spring... | 25.135135 | 98 | 0.708602 |
c9b14885649f4c0ceda26e66af9bdb7802bafdb6 | 4,951 | package org.egov.wscalculation.config;
import java.math.BigDecimal;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
@Gette... | 24.631841 | 66 | 0.725308 |
05289fa7c6e6778aa2d8a9a1a10456ae4f892852 | 207 | package com.sika.code.batch.refactor.step;
import org.springframework.context.annotation.Configuration;
/**
* @author daiqi
* @create 2020-01-08 23:33
*/
@Configuration
public class TestStepConfig {
}
| 15.923077 | 60 | 0.753623 |
673988ce71a9a9a3b2846aa75485b498888debfe | 258 | package rdk.Interfaces;
import rdk.Annotations.RDK;
import rdk.Annotations.Retarded;
import rdk.Classes.Retard;
public interface RetardFace {
@RDK String RetardedKid = "Are you a seven year old retard";
@RDK @Retarded Retard rd = new Retard();
}
| 19.846154 | 64 | 0.74031 |
301e3c54f319577684f8946085ffeb84f4d18ff3 | 2,179 | package com.futurewei.alcor.subnet.service;
import com.futurewei.alcor.common.db.CacheException;
import com.futurewei.alcor.common.exception.FallbackException;
import com.futurewei.alcor.common.exception.ParameterUnexpectedValueException;
import com.futurewei.alcor.web.entity.subnet.SubnetEntity;
import com.futurewei... | 41.113208 | 121 | 0.750344 |
ceb9d1eb44b3c5c365d36bcc5c3c5f268d1a1437 | 757 | // Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See License.txt in the repository root.
package com.microsoft.tfs.core.artifact;
import java.text.MessageFormat;
import com.microsoft.tfs.core.exceptions.TECoreException;
/**
* Thrown when an artifact ID is not in the proper format... | 30.28 | 102 | 0.693527 |
d6d3c33e94697fe1978ace3e734eaa4c0b7d2eb7 | 2,012 | package chapter.android.aweme.ss.com.homework;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.Rec... | 32.983607 | 90 | 0.705268 |
b7295f8703529f973c4bf5f011b00c1006b81793 | 3,563 | /*
* ============LICENSE_START=======================================================
* ONAP : ccsdk features
* ================================================================================
* Copyright (C) 2020 highstreet technologies GmbH Intellectual Property.
* All rights reserved.
* =======================... | 26.992424 | 107 | 0.578164 |
f155be53fc6d612263b4639b9ad021b548b82acf | 883 | package com.callejas.cesar.aprendamosastronomia;
import java.io.Serializable;
/**
* Created by Eduardo_Chavez on 9/10/2016.
*/
public class appDatosG implements Serializable{
private String nombre;
private String contenido;
private int picture;
appDatosG(String nombre, String contenido, int pictu... | 18.020408 | 60 | 0.633069 |
f05f38b0096e0729c1e88244e1c5f19fb71420da | 16,363 | package com.ebp.owat.lib.structure.matrix;
import com.ebp.owat.lib.datastructure.matrix.Matrix;
import com.ebp.owat.lib.datastructure.matrix.utils.coordinate.MatrixCoordinate;
import com.ebp.owat.lib.testUtils.TestUtils;
import com.ebp.owat.lib.utils.rand.OwatRandGenerator;
import com.ebp.owat.lib.utils.rand.RandGener... | 20.712658 | 101 | 0.64108 |
fb2e40b4df426bad59918544c4b95eecf4d14e7f | 6,597 | /* AUTO-GENERATED FILE. DO NOT MODIFY.
*
* This class was automatically generated by the
* gradle plugin from the resource data it found. It
* should not be modified by hand.
*/
package com.google.android.gms;
public final class R {
public static final class attr {
public static final int buttonSize ... | 64.048544 | 99 | 0.767773 |
949be5cdcd576a842f9480ae00fe8c0d4b0532af | 3,995 | package net.fishtron.server.api;
import net.fishtron.utils.F;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
/**
* Created by tom on 27.08.2017.
*/
// TODO sjednotit s net.fishtron.eva.multi;
public class Configs {
// TODO revidovata sjednotit s TFGP a F.
public st... | 27.937063 | 94 | 0.495119 |
b0157cac09120a5606ada0fec6e532d6d81b59b7 | 1,615 | package br.com.zupacademy.thiago.casadocodigo.domain;
import java.time.LocalDateTime;
import java.util.Objects;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.validation.const... | 18.77907 | 116 | 0.732508 |
734e6d297fa4c73f9ed34cce949bd828c6f61ddd | 413 | /**
*
*/
package io.github.ttallaemideul.service.user;
import java.io.Serializable;
import lombok.Data;
@Data
public class UserRoleDto implements Serializable {
private static final long serialVersionUID = 1L;
private String id;
private String role;
private String desc;
private int priority;
public Strin... | 16.52 | 50 | 0.731235 |
e69693ab231413afd478b5889f2974d8150cad66 | 1,914 | package com.tietoevry.quarkus.resteasy.problem.devmode;
import static io.restassured.RestAssured.when;
import static org.hamcrest.Matchers.is;
import static org.hamcrest.Matchers.nullValue;
import io.quarkus.test.QuarkusDevModeTest;
import org.jboss.shrinkwrap.api.ShrinkWrap;
import org.jboss.shrinkwrap.api.spec.Java... | 34.8 | 115 | 0.703239 |
5e68c7c036212f8380ce8c0ad5c2c7cd3e7c10c3 | 2,554 | //package io.github.wotjd243.aladin.enrollment.application;
//
//import io.github.wotjd243.aladin.book.domain.Book;
//import io.github.wotjd243.aladin.book.domain.BookRepository;
//import io.github.wotjd243.aladin.enrollment.domain.Enrollment;
//import io.github.wotjd243.aladin.enrollment.domain.EnrollmentRepository;
/... | 36.485714 | 125 | 0.698512 |
6d2d3885947d520905d72a4d2f4b30a9ed2b60ce | 7,624 | /* ###
* IP: GHIDRA
*
* 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 writin... | 35.962264 | 106 | 0.743048 |
7abc4113097f1d3cebf9b8b887a614bc0724c470 | 3,358 | package org.carlspring.strongbox.security.authentication;
import org.carlspring.strongbox.controllers.support.ErrorResponseEntityBody;
import org.carlspring.strongbox.security.exceptions.SecurityTokenException;
import org.carlspring.strongbox.security.exceptions.SecurityTokenExpiredException;
import org.carlspring.str... | 32.288462 | 113 | 0.690887 |
0c4f36013c2080c90064273628ccac5f1aef1501 | 1,023 | package ClientHandle;
import java.io.ObjectInputStream;
import java.net.Socket;
import Message.MessageForGroupChat;
import View.GroupChat;
public class ClientGroupChatThread extends Thread{
private Socket soc1;
private String schoolNum;
public ClientGroupChatThread(String schoolNum,Socket soc1) {
this.schoolN... | 22.23913 | 73 | 0.701857 |
207c3d2bd4390a82b35d328bd8fa6aa44c3401b7 | 1,532 | package org.markysoft.vani.core.annotation;
import java.lang.annotation.ElementType;
import java.lang.annotation.Inherited;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* This annotation declares a dependency of a js-interface. S... | 27.854545 | 78 | 0.682115 |
d7faba93788cf63e081eb326d0bbea6c298e751f | 1,234 | package com.github.xiaoy.aop;
import lombok.extern.slf4j.Slf4j;
import org.aopalliance.intercept.MethodInvocation;
import java.lang.reflect.Field;
import java.lang.reflect.Proxy;
/**
* @author songxiaoyue
*/
@Slf4j
public class DynamicDataSourceClassResolver {
private static boolean mpEnabled = false;
privat... | 26.255319 | 90 | 0.696921 |
d421477e9b11a4a26a257924a9a8f5627cb511e9 | 3,849 | package com.paladin.common.controller;
import com.paladin.common.core.ConstantsContainer;
import com.paladin.common.core.ConstantsContainer.KeyValue;
import com.paladin.common.core.FileResourceContainer;
import com.paladin.common.core.cache.DataCacheHelper;
import com.paladin.common.core.security.NeedAdmin;
import com... | 33.763158 | 91 | 0.709535 |
276908032d0a8c62c7df9a43a7cb43a5b0dd4cc0 | 1,317 | // Code generated by lark suite oapi sdk gen
package com.larksuite.oapi.service.vc.v1.model;
import com.google.gson.annotations.SerializedName;
public class ReserveMeetingSetting {
@SerializedName("topic")
private String topic;
@SerializedName("action_permissions")
private ReserveActionPermission[] act... | 27.4375 | 83 | 0.722096 |
c1698599a6f9d67aa2a50d052cc57a56bffd2a6c | 2,458 | /**
*
*/
package com.rains.proxy.core.enums;
import com.rains.proxy.core.constants.RedisConstants;
/**
* @author liubing
*
*/
public enum RedisProxyParamType {
/** request timeout **/
requestTimeout("requestTimeout", 200),
/** request id from http interface **/
requestIdFromClient("requestIdFromC... | 26.717391 | 86 | 0.64402 |
0c67d0319692e4b7759196cb2290282ec85c9b96 | 7,694 | /*
* 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 simulacrojava;
import java.util.ArrayList;
import java.util.Scanner;
/**
*
* @author victoriapenas
*/
public class CajeroA... | 34.972727 | 126 | 0.508578 |
6d694253fbb6da8e736ba58e63f903cd68053814 | 675 | package com.github.tangyi.common.core.web;
import org.springframework.core.convert.support.GenericConversionService;
import org.springframework.web.bind.WebDataBinder;
import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springframework.web.bind.annotation.InitBinder;
/**
* 日期类型转换绑定
*/
@Contr... | 33.75 | 113 | 0.808889 |
5b90fbd35ab9a7c47fdbf384448ef341fe15a5d5 | 2,196 | package com.outbrain.swinfra.metrics.client;
import com.outbrain.swinfra.metrics.Counter;
import com.outbrain.swinfra.metrics.Histogram;
import com.outbrain.swinfra.metrics.MetricCollector;
import com.outbrain.swinfra.metrics.MetricCollectorRegistry;
import com.outbrain.swinfra.metrics.MetricRegistry;
import com.outbr... | 37.862069 | 123 | 0.729508 |
1f4072eae7cdb276aab754caaa30149f41bf3c73 | 12,971 | /*
* Copyright (C) 2014 Dell, 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 agre... | 38.951952 | 132 | 0.549148 |
0af68d7c4083540a227fa9b235c19a2c18de85ea | 2,511 | package com.williamng.weathercenter;
import java.util.Date;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import com.amazon.ask.dispatcher.request.handler.HandlerInput;
import com.amazon.ask.dispatcher.request.handler.RequestHandler;
import com.amazon.ask.model.IntentRequest;
import com.amazon.ask.mo... | 29.541176 | 92 | 0.680605 |
0bb1391d542d32a8bb549137e1dbb194d303c4b1 | 4,138 | package ch.bytecrowd.kafka;
import ch.bytecrowd.kafkazen.service.KafkaAdminService;
import ch.bytecrowd.kafkazen.service.KafkaAdminServiceFactory;
import ch.bytecrowd.kafkazen.service.model.ConsumerGroup;
import ch.bytecrowd.kafkazen.service.model.ConsumerGroupPartition;
import ch.bytecrowd.kafkazen.service.model.Topi... | 43.557895 | 268 | 0.68463 |
b4c05dbbbcbf335675900a33b6a0475db3fea534 | 14,160 | /*
Copyright (c) 2016, Shanghai YUEWEN Information Technology Co., Ltd.
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,
* this ... | 37.263158 | 135 | 0.572952 |
6f01f781091222f27c42098db511a9fabb982079 | 226 | package com.lhn.mapper;
import com.lhn.pojo.SearchRecords;
import com.lhn.utils.MyMapper;
import java.util.List;
public interface SearchRecordsMapper extends MyMapper<SearchRecords> {
public List<String> getHotwords();
} | 18.833333 | 70 | 0.79646 |
cfb5ac7a0521da1a05d47061a44034d9893bc92e | 368 | package com.mall.android;
import android.app.Application;
import com.example.latte.app.latte;
/**
* Created by Jsoner on 2017/7/23.
*/
public class ExampleApp extends Application{
@Override
public void onCreate() {
super.onCreate();
latte.init(this)
.withApiHost("http://127... | 18.4 | 49 | 0.603261 |
71b9f21686e07cfdb32a4edb6b2c83079a5604b0 | 53,176 | /*
* Copyright (C) 2015 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 app... | 39.418829 | 110 | 0.60296 |
86695af8285e3bccb6cfc2195e0a13ce5d2e21c0 | 1,058 | public void finish() throws Exception {
DataOutputStream datOut;
ObjectOutputStream objOut;
int size;
int i;
sendMsg("Finishing the enpacking ...");
outJar.putNextEntry(new ZipEntry("kind"));
datOut = new DataOutputStream(outJar);
datOut.writeUTF("stan... | 35.266667 | 78 | 0.58034 |
b14be96af17bb056cfa41cfc8e0c5e287c6dfddc | 673 | package com.github.extermania.leetcode;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
public class $0295_Find_Median_from_Data_Stream_2_36 {
class MedianFinder {
private boolean even = true;
private int n1 = 0;
private int n2 = -1;
private List<Integer> list = ... | 18.694444 | 69 | 0.61367 |
4394bc64c4b7fa8e7322ae8e28eafc6fb5b34601 | 671 | package uk.co.bty.mock.cybersource.data;
import lombok.Builder;
import lombok.Value;
@Value
@Builder
public class TokenRequestData
{
private String billCity;
private String billCountry;
private String billLine1;
private String billLine2;
private String billPostalCode;
private String billEmail;
private String b... | 23.964286 | 40 | 0.824143 |
acaf4a6a08ee055395e03de0c2b9ea8b54669a5d | 135 | package org.terraform.biome;
public enum BiomeType {
OCEANIC,
FLAT,
MOUNTAINOUS,
BEACH,
DEEP_OCEANIC,
RIVER
}
| 12.272727 | 28 | 0.644444 |
21c9e1cbcb07313e0c89a13862d3e39369d7fe1c | 7,229 | /*
* MIT License
*
* Copyright (c) 2021 pumbas600
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify... | 31.986726 | 122 | 0.629824 |
25f2f4418529b5caeeed68b260997739e67a526d | 3,603 | /**
*
* Copyright 2005-2006 The Apache Software Foundation or its licensors, as applicable.
*
* 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/L... | 31.330435 | 148 | 0.648904 |
d9acb500c3858dbe5d604167d1cc15e87b4653b6 | 4,967 | package com.example.tyl.timer.util;
import android.content.Intent;
import android.graphics.Color;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import android.widget.TextView;
import com.example... | 44.348214 | 188 | 0.666801 |
ac96b0103e2ff39336cbf8e8b3bf15055b53f70f | 922 | package dev.cremich.sse.server.eventstream.repository;
import java.util.Collection;
import java.util.HashMap;
import java.util.Map;
import javax.annotation.PostConstruct;
import org.springframework.stereotype.Repository;
@Repository
public class InMemoryDataStreamRepository {
private Map<String, DataStream> persis... | 23.641026 | 72 | 0.741866 |
968b636fb231ef84e984a39f1a65d3a1d3f8eb04 | 611 | package tk.skuro.idea.orgmode;
import com.intellij.lang.Language;
/**
* Extension of a {@link Language} for org-mode
*
* @author Carlo Sciolla
* @since 0.1
*/
public final class OrgLanguage extends Language {
public static final String ORG_LANGUAGE_ID = "OrgMode";
// see: http://lists.gnu.org/archive/ht... | 26.565217 | 79 | 0.723404 |
c6956d353c3d15a345b6ae389f362e6f8289b383 | 368 | package com.zlikun.log;
import org.junit.Test;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
* @auther zlikun <zlikun-dev@hotmail.com>
* @date 2017/4/28 11:38
*/
public class ConsoleAppenderTest {
@Test
public void append() {
Logger log = LoggerFactory.getLogger(ConsoleAppenderTest.... | 18.4 | 73 | 0.679348 |
85319da26729a6875f5a60bbc2653b217e3dcde0 | 1,076 | package webtests.seleniumeasy.pageobjects;
import net.serenitybdd.core.pages.WebElementFacade;
import net.serenitybdd.core.pages.WebElementState;
import net.thucydides.core.annotations.DefaultUrl;
import net.thucydides.core.pages.PageObject;
import java.util.List;
@DefaultUrl("https://the-internet.herokuapp.com/hove... | 30.742857 | 82 | 0.698885 |
0a7ef55edb39628c906cc9dbb4ea6666196e2bbf | 449 | package com.github.zhuyizhuo.generator.mybatis.generator.service.template;
import com.github.zhuyizhuo.generator.mybatis.generator.service.GenerateService;
/**
* 模板生成 service <br>
*
* @author zhuo <br>
* @since 1.4.0
*/
public interface TemplateGenerateService extends GenerateService {
/**
* 增加模板
... | 21.380952 | 80 | 0.717149 |
55d756eb281358bb39f93aecd7438c924d94a85e | 763 | /*
* Copyright 2012 Phil Pratt-Szeliga and other contributors
* http://chirrup.org/
*
* See the file LICENSE for copying permission.
*/
package edu.syr.pcpratts.rootbeer.util;
import java.io.File;
import java.net.URLDecoder;
public class CurrJarName {
public String get(){
try {
String path = Curr... | 23.121212 | 100 | 0.633028 |
7dfc48185074c7b78cdb8857fa50ff48e1b24496 | 986 | package org.yaml.snakeyaml.parser;
import org.yaml.snakeyaml.events.Event;
import org.yaml.snakeyaml.tokens.Token$ID;
class ParserImpl$ParseDocumentContent implements Production {
// $FF: synthetic field
final ParserImpl this$0;
private ParserImpl$ParseDocumentContent(ParserImpl var1) {
this.this$0 = ... | 32.866667 | 129 | 0.691684 |
55c7ae110513a41455ffa3e371f8a5d7d7941679 | 5,394 | /*
* Copyright 2018-present Facebook, 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... | 38.805755 | 95 | 0.738413 |
7c6108e7bfabba46ae23ffe43cbbe803af7dfbfb | 4,329 | /*
* 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")... | 60.971831 | 126 | 0.818434 |
61817eb6b92d19035b7666a700d6c7049e0a8153 | 2,167 | package modtweaker2.mods.chisel.commands;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
import minetweaker.MineTweakerAPI;
import minetweaker.MineTweakerImplementationAPI;
import minetweaker.api.player.IPlayer;
import minetweaker.api.server.ICommandFunction;
import... | 37.362069 | 161 | 0.711583 |
9c00913a8ede7274be34fc5c744c53b0d68d57a1 | 1,962 | package com.twu.biblioteca;
/**
* Created by eric on 3/5/16.
*/
public class UserItem implements Comparable<UserItem>{
private String number = "xxx-xxxx";
private String pwd = "dddd";
private String name = "erer";
private String email = "ee@11.com";
private String phone = "112";
private boo... | 20.87234 | 89 | 0.556065 |
ac7edc8982544e357381a2c309d501c8f92dbd52 | 1,313 | /*
* Copyright (C) 2016 Insitute for User Experience and Interaction Design,
* Hochschule Mannheim University of Applied Sciences
*
* 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
*
... | 31.261905 | 75 | 0.73572 |
d6e6ba12342a95d7bf1ccf7ee9f848dd027b7fa8 | 2,640 | /*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License
* 2.0 and the Server Side Public License, v 1; you may not use this file except
* in compliance with, at your election, the Elastic License 2.0 or the Server... | 37.183099 | 105 | 0.658712 |
bcd39c440d509cd05aea7a6abd2a8eaaeced45e3 | 329 | package proton.inject.provider;
import javax.inject.Inject;
import javax.inject.Provider;
import proton.inject.Injector;
import android.content.Context;
public class ContextProvider implements Provider<Context> {
@Inject
private Injector mInjector;
@Override
public Context get() {
return mInjector.getContext... | 17.315789 | 59 | 0.784195 |
8c19779c9e7d983a25603f2bb2d0d658415c5f3e | 1,309 | package io.saagie.ddd.legacytodomain.dao;
import io.saagie.ddd.legacytodomain.model.Platform;
import io.saagie.ddd.legacytodomain.model.User;
import org.springframework.stereotype.Repository;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
@Repository
public class U... | 26.18 | 73 | 0.624141 |
ca3dc7ab02da8f12bb180a0dfb77dd2df49f4d30 | 2,163 | package my.cluster;
import io.vertx.core.DeploymentOptions;
import io.vertx.core.VertxOptions;
import io.vertx.core.json.JsonObject;
/**
* 获取集群和部署配置类属性
*/
public class OptionsReader {
private static final String VX_PREFIX = "vertx.";
private static ResourceLoader LOADER = ResourceLoader.getInstance();
publ... | 44.142857 | 107 | 0.763754 |
887088f2b7b7c1c4cf7406a76c9d780f248eb730 | 3,931 | package org.openstack4j.openstack.manila.internal;
import org.openstack4j.api.manila.ShareNetworkService;
import org.openstack4j.model.common.ActionResponse;
import org.openstack4j.model.manila.ShareNetwork;
import org.openstack4j.model.manila.ShareNetworkCreate;
import org.openstack4j.model.manila.ShareNetworkUpdateO... | 32.487603 | 110 | 0.696769 |
427d4830851b4cdf8d0a91fadcd03db939f4f0de | 150 | package com.uni.julio.superplus.listeners;
public interface NotificationListener {
void notificationClicked(String action, int mainCategoryId);
} | 30 | 64 | 0.82 |
32aff04be2b74fac5ca89e960329374525a4f589 | 2,363 | package Basic_CF_Package;
import java.util.TreeSet;
public class CF12_tree_hash_set {
public static void main(String[] args) {
//SortedSet is a subInterface of Set, which guarantees that the elements in the set are sorted.
TreeSet<String> treeSet = new TreeSet<>();
treeSet.add("London")... | 35.80303 | 142 | 0.656369 |
82b715d33b55bbb42a96b4f5fa913a92e3de4856 | 745 | package org.visallo.web.routes.edge;
import com.google.inject.Inject;
import com.google.inject.Singleton;
import org.visallo.webster.ParameterizedHandler;
import org.visallo.webster.annotations.Handle;
import org.vertexium.Authorizations;
import org.vertexium.Graph;
import org.visallo.web.clientapi.model.ClientApiVert... | 28.653846 | 88 | 0.774497 |
eebd8d4dc9eb0bf17ab730a8e7d1b7d8e0edefb7 | 2,862 | package org.gusdb.wdk.model.filter;
import java.lang.reflect.InvocationTargetException;
import java.util.ArrayList;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
import org.apache.log4j.Logger;
import org.gusdb.wdk.model.WdkModel;
import org.gusdb.wdk.model.WdkModelException;
import org... | 34.902439 | 106 | 0.719776 |
85fe94e955451175e6f5c7b1f147652622548046 | 2,294 | /*****************************************************************************************
*
* Copyright 2015 Gregory Brown. 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 ... | 30.586667 | 91 | 0.579773 |
76f9256f7f66e067dbdc0c47123a10032fab0bf8 | 2,410 | package com.icthh.xm.commons.logging.util;
import org.apache.commons.codec.digest.DigestUtils;
import org.apache.commons.lang3.StringUtils;
import org.slf4j.MDC;
import java.io.UnsupportedEncodingException;
import java.nio.charset.StandardCharsets;
import java.util.Base64;
import java.util.UUID;
import java.util.conc... | 25.368421 | 101 | 0.63029 |
c1a6ef83796c79f77c6678666438f4ef99802b0b | 817 | package cz.metacentrum.perun.core.impl.modules.attributes;
import cz.metacentrum.perun.core.implApi.modules.attributes.UserVirtualAttributeCollectedFromUserExtSource;
/**
* All eduPersonUniqueIds collected from UserExtSources attributes.
*
* @author Martin Kuba makub@ics.muni.cz
*/
@SuppressWarnings("unused")
pub... | 24.029412 | 110 | 0.802938 |
1eb2e7181310a6067c9a4d45a55db7a3848a228d | 3,243 | package aleetcode.contest2019;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
public class Contest152 {
public static void main(String[] args) {
new Contest152().numPrimeArrangements(100);
int [] calories={6,5,0,0};
new Contest152().di... | 27.483051 | 106 | 0.465002 |
73d77636d205bd8584565a544578791dc8235dc2 | 389 | package com.railway.train_service.persistence;
import java.util.Collection;
import org.springframework.data.mongodb.repository.MongoRepository;
import com.railway.train_service.domain.Train;
import com.railway.train_service.domain.TrainType;
public interface TrainRepository extends MongoRepository<Train, String> {
... | 29.923077 | 73 | 0.845758 |
ee93431283cd5b2a1988af80666ad5b8278ea42f | 5,562 | package org.everit.json.schema.loader;
import static java.util.Arrays.asList;
import static java.util.Collections.emptyMap;
import static java.util.Collections.singleton;
import static org.junit.jupiter.api.Assertions.*;
import static org.mockito.ArgumentMatchers.any;
import static org.mockito.Mockito.mock;
import sta... | 31.072626 | 133 | 0.649946 |
bd3f87e8067d9366b966aeddb13cebd7b0312952 | 2,376 | package org.apache.harmony.security.provider.cert;
/*
* #%L
* Matos
* $Id:$
* $HeadURL:$
* %%
* Copyright (C) 2010 - 2014 Orange SA
* %%
* 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 ... | 33 | 141 | 0.737374 |
0ffc1370d1a69321d354327f21cd3663a4133f1f | 4,416 | /*
* <summary></summary>
* <author>He Han</author>
* <email>hankcs.cn@gmail.com</email>
* <create-date>2014/11/17 19:34</create-date>
*
* <copyright file="PlaceRecognition.java" company="上海林原信息科技有限公司">
* Copyright (c) 2003-2014, 上海林原信息科技有限公司. All Right Reserved, http://www.liNTunsoft.com/
* This source is subje... | 33.454545 | 126 | 0.55548 |
dda1d4b74db3516ea646663f16dcf92fb9766144 | 3,479 | package me.wavelength.baseclient.gui.altmanager.impl;
import java.io.IOException;
import org.lwjgl.input.Keyboard;
import me.wavelength.baseclient.account.Account;
import me.wavelength.baseclient.gui.altmanager.components.GuiPasswordField;
import me.wavelength.baseclient.gui.altmanager.thread.AccountLoginThread;
imp... | 37.408602 | 187 | 0.734981 |
a7736b5396032e43ba80086a6e0ab588aba73f1a | 2,526 | /*
* #%L
* Gravia :: Resource
* %%
* Copyright (C) 2010 - 2014 JBoss by Red Hat
* %%
* 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.... | 37.701493 | 151 | 0.706255 |
e47112142f6ab217f7a8c5ba16a95f6dc2aee75d | 930 | package paradox.client.main.command;
import java.util.ArrayList;
import paradox.client.main.Client;
import paradox.client.main.commands.Toggle;
public class CommandManager {
private ArrayList<Command> commands;
public CommandManager(){
commands = new ArrayList();
addCommand(new Toggle());
}
public void... | 21.136364 | 57 | 0.690323 |
50f24da865504701f6b6f3863f8606c8dbdd8ecc | 7,440 | /*
* Copyright © 2019 Apple Inc. and the ServiceTalk project 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 requi... | 48.311688 | 116 | 0.707796 |
05e27b4ff258cfc5da901e8bcfb38092c094500b | 12,234 | // Copyright 2019 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.chrome.browser.tasks.tab_management;
import static org.hamcrest.Matchers.is;
import static org.junit.Assert.assertFalse;
import stat... | 43.077465 | 110 | 0.713585 |
dc65023bc9221c1fd1a78f3a10ba7d3b9a3de595 | 212 | package cucumber.demo.bank.hooks;
import cucumber.demo.bank.AccountManager;
import io.cucumber.java.After;
public class BankGlobalHook {
@After
public void reset() {
AccountManager.instance().reset();
}
}
| 17.666667 | 41 | 0.759434 |
58d8891f42ef0aea6adbb33ee4685316878d2614 | 3,735 | /*
Copyright (c) 2013, Groupon, Inc.
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,
this list of conditions and the following disc... | 27.065217 | 81 | 0.659438 |
2a46a4c6283dbe00590024e0a7ead9418243ac49 | 3,289 | package com.poplar.executor;
import com.poplar.config.Configuration;
import com.poplar.config.MapperStatement;
import com.poplar.reflect.ReflectionUtil;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.sql.*;
import java.util.ArrayList;
import java.util.List;
/**
* Create BY poplar ON 2020/4/14
... | 31.932039 | 156 | 0.605655 |
55efffd3aeda1be70740de402b41a98898d5237d | 1,198 | package app.exam.parser;
import org.springframework.stereotype.Component;
import app.exam.parser.interfaces.Parser;
import javax.xml.bind.JAXBContext;
import javax.xml.bind.JAXBException;
import javax.xml.bind.Marshaller;
import javax.xml.bind.Unmarshaller;
import java.io.StringReader;
import java.io.StringWriter;
@... | 33.277778 | 86 | 0.738731 |
22501e9757dd66a0b30536716137f00e66d639bb | 3,803 | /*
* Licensed to CRATE Technology GmbH ("Crate") under one or more contributor
* license agreements. See the NOTICE file distributed with this work for
* additional information regarding copyright ownership. Crate licenses
* this file to you under the Apache License, Version 2.0 (the "License");
* you may not us... | 41.791209 | 113 | 0.739679 |
5634288ef03224ed45aa547135d4459da8005361 | 5,327 | package winsome.client;
import java.io.*;
import java.util.Objects;
import java.util.Optional;
import winsome.utils.configs.AbstractConfig;
import winsome.utils.configs.ConfigEntry;
import winsome.utils.configs.exceptions.*;
/** The Client configuration */
public class ClientConfig extends AbstractConfig {
/** A... | 42.277778 | 149 | 0.572743 |
0919ae434b7929f7047f5f504e8d61683ad72ca8 | 2,882 | package jetbrains.buildServer.auth.saml.plugin;
import com.intellij.openapi.diagnostic.Logger;
import jetbrains.buildServer.auth.saml.plugin.pojo.SamlPluginSettings;
import jetbrains.buildServer.controllers.admin.AdminPage;
import jetbrains.buildServer.log.Loggers;
import jetbrains.buildServer.serverSide.auth.Pe... | 41.768116 | 101 | 0.700902 |
60f9048d1d217ea80e9a8dc871a547ccc7f69508 | 2,642 | /*
* Copyright (c) 2019-2021 "Neo4j,"
* Neo4j Sweden AB [https://neo4j.com]
*
* This file is part of Neo4j.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apach... | 29.355556 | 150 | 0.758516 |
4c19a78d2f866d643418df49644a44752c1831ae | 1,286 | package com.yash.todolist.model;
import androidx.annotation.NonNull;
import androidx.room.ColumnInfo;
import androidx.room.Entity;
import androidx.room.ForeignKey;
import androidx.room.Index;
import androidx.room.PrimaryKey;
import java.sql.Date;
/**
* @author Yash Sompura
*/
@Entity(tableName = "tasklist",
... | 20.09375 | 54 | 0.628305 |
1eb214e9b5c2935925aa6c6aa46f7023da0da884 | 935 | package ru.job4j.tracker2.start;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import ru.job4j.tracker2.start.interfaces.Input;
import static org.hamcrest.Matchers.is;
import static org.junit.Assert.*;
public class TrackerSecondTest {
private Tracker tracker = new Tracker();
private Input... | 26.714286 | 85 | 0.700535 |
429d99c89c8a9423e6a59ccbc34f6c80a8b0516b | 1,625 | package javax.ims.core;
/**
* This listener type is used to notify an application about events regarding a Reference.
* @author amo
*
*/
public interface ReferenceListener
{
/**
* <p>Notifies the application that the reference was successfully delivered.
* <p>This method is invoked at the endpoint that se... | 31.25 | 134 | 0.726154 |
d034752a361f2fbea3df923e47f0acb1ab1e2c89 | 3,411 | package com.example.coolweather.slideMenu;
import android.R.integer;
import android.content.Context;
import android.util.AttributeSet;
import android.view.MotionEvent;
import android.view.View;
import android.widget.FrameLayout;
import android.widget.Scroller;
public class SlideMenu extends FrameLayout {
private S... | 14.766234 | 72 | 0.61888 |
f126ea0bd43ca947e2962cd79f3b335d9e8b6602 | 3,528 | package util;
import com.fasterxml.jackson.databind.JsonNode;
import exceptions.BadRequestException;
import exceptions.ForbiddenRequestException;
import models.User;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
/**
* Utility class for helping with chats
*/
publ... | 32.366972 | 136 | 0.696429 |
118ce9b4b2a33e5fb38931f8c45dfe84693b2a56 | 99 | package com.ogpe.observable;
@FunctionalInterface
public interface Callback {
void callback();
}
| 14.142857 | 28 | 0.787879 |
e6924b8097e7baeadf73d60140df1c266ad429c9 | 18,308 | package com.nosqldriver.sql;
import com.nosqldriver.VisibleForPackage;
import com.nosqldriver.util.IOUtils;
import com.nosqldriver.util.VariableSource;
import org.junit.jupiter.params.ParameterizedTest;
import org.junit.jupiter.params.provider.Arguments;
import java.io.IOException;
import java.math.BigDecimal;
import... | 54.326409 | 251 | 0.692375 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.