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 |
|---|---|---|---|---|---|
45d525100d501562f77e8a45591c7210a2e9b463 | 431 | package com.github.wesleyegberto.microprofile.reactive.dataprocessor;
import javax.ejb.Schedule;
import javax.ejb.Stateless;
import javax.enterprise.event.Event;
import javax.inject.Inject;
@Stateless
public class TransactionHandler {
@Inject
Event<String> btcTxEvent;
@Schedule(hour = "*", minute = "*", second = ... | 25.352941 | 72 | 0.733179 |
d302f47e5bdb6909e517f548134f0c58d7314ea1 | 2,789 | package com.jayantkrish.jklol.ccg;
import java.util.Arrays;
import junit.framework.TestCase;
import com.jayantkrish.jklol.ccg.data.CcgSyntaxTreeFormat;
import com.jayantkrish.jklol.ccg.data.CcgbankSyntaxTreeFormat;
import com.jayantkrish.jklol.data.DataFormat;
public class CcgSyntaxTreeTest extends TestCase {
... | 41.014706 | 284 | 0.691287 |
874f2acefc68ff51ad18eb3a51ea3ad6f88e3f50 | 756 | package org.openehealth.ipf.platform.camel.core.dataformat;
import org.slf4j.Logger;
import org.xml.sax.ErrorHandler;
import org.xml.sax.SAXException;
import org.xml.sax.SAXParseException;
class SimpleSaxErrorHandler implements ErrorHandler {
private Logger log;
SimpleSaxErrorHandler(Logger log) {
... | 22.235294 | 77 | 0.714286 |
62e88289acb66cdf17836ccebf295a221c3c68df | 5,250 | /*
* Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved.
* ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*/
package goodman.java.security.cert;
import goodman.java.security.InvalidAlgorithmParameterException;
i... | 39.473684 | 79 | 0.698095 |
54d775fa27ae4f43709bd20b66f8667112e6eecb | 2,037 | package atvlista3;
import java.util.ArrayList;
public class Time {
private String nome, fundacao;
private ArrayList<Jogador> jogadores = new ArrayList();
private Tecnico tecnico = new Tecnico();
public Time() {
}
public Time(String novoNome, String novoFundacao, ArrayList novoJogadores, Tec... | 27.16 | 164 | 0.566519 |
8fd1dd968bcfdf8efad8b4b50376288a62f6c3ea | 955 | /**
*
*/
package one.tracking.framework.dto;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import io.swagger.annotations.ApiModel;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lom... | 17.685185 | 55 | 0.725654 |
1aa6f635e6c6a9576ac2cc9afd7e1003a54000bc | 5,907 | /*
* 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 ... | 32.103261 | 108 | 0.774843 |
863e9ecc0ecfc4cd92739dcbc37451d6ea993ae5 | 2,131 | package com.blog.controller;
import java.io.IOException;
import java.util.HashMap;
import java.util.Map.Entry;
import javax.servlet.ServletException;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import j... | 34.370968 | 126 | 0.753168 |
419c1b205e4e4921241d61de78f2a611f667c7e3 | 5,855 | // ============================================================================
//
// Copyright (C) 2006-2017 Talend Inc. - www.talend.com
//
// This source code is available under agreement available at
// %InstallDIR%\features\org.talend.rcp.branding.%PRODUCTNAME%\%PRODUCTNAME%license.txt
//
// You should have receiv... | 42.122302 | 121 | 0.678053 |
fbbf46ecc03e6a92f3eba50e0e46544103b08807 | 4,790 | package com.snakegame;
/**
* @ProjectName: 23designpattern_java
* @Package: com.snakegame
* @ClassName: SnakeModel
* @Author: chenyang
* @Description:
* @Date: 2021/7/19 12:00 上午
* @Version: 1.0
*/
import java.util.*;
import javax.swing.JOptionPane;
public class SnakeModel{
private int rows,cols;//行列数
... | 29.9375 | 115 | 0.547808 |
dbe14937607458a69c530fa6b954f0dc83b588c0 | 3,001 | /**
* Copyright (c) 2011, University of Konstanz, Distributed Systems Group 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 no... | 39.486842 | 100 | 0.758747 |
6d66790272c6f532e7417a944410c643c2c6ecf0 | 5,596 | package io.quarkus.devtools.testing.registry.client;
import io.quarkus.bootstrap.resolver.maven.BootstrapMavenException;
import io.quarkus.bootstrap.resolver.maven.MavenArtifactResolver;
import io.quarkus.devtools.messagewriter.MessageWriter;
import io.quarkus.maven.ArtifactCoords;
import io.quarkus.registry.RegistryR... | 45.868852 | 121 | 0.720336 |
f45db13580af5ff512964d83c8860c22c3372bf3 | 1,150 | package org.knowm.xchange.idex.service;
import javax.ws.rs.Consumes;
import javax.ws.rs.POST;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import org.knowm.xchange.idex.annotations.Api;
import org.knowm.xchange.idex.annotations.ApiOperation;
import org.knowm.xchange.idex.annotations.ApiResponse;
import org.kn... | 31.081081 | 117 | 0.742609 |
3317e7d47200e30e79ef022702dcbf1954f3ae38 | 2,027 | package seedu.address.logic.commands.notes;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertFalse;
import static org.junit.jupiter.api.Assertions.assertTrue;
import static seedu.address.testutil.academics.TypicalAssessments.getTypicalAcademics;
import s... | 37.537037 | 104 | 0.768624 |
5534bc9bd38f8e8f1f2134fd755ce3d1c918ee49 | 1,636 | import java.awt.Color;
import java.awt.Graphics2D;
import java.awt.RenderingHints;
import java.awt.image.BufferedImage;
import java.awt.image.DataBufferByte;
import java.io.IOException;
import java.io.OutputStream;
public class FFmpegRawBytes {
static void drawFrame(Graphics2D g, int w, int h, int f, int frame) {
... | 26.819672 | 121 | 0.685208 |
a9deccabcfa267931831ee43aca8680a3c13d839 | 116 | package com.example.demo;
import javax.persistence.Entity;
@Entity
public class Customer2 extends BaseEntity {
}
| 12.888889 | 43 | 0.793103 |
7627a38e2a5da2f790f1adf7c4ebea106ea83161 | 21,311 | /*
* Copyright 2016-2021 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 "licen... | 35.108731 | 159 | 0.650603 |
0453c32e0faad4445f9b17daf2a753b251a09bbd | 2,482 | package com.conveyal.gtfs.validator;
import com.conveyal.gtfs.error.SQLErrorStorage;
import com.conveyal.gtfs.loader.Feed;
import com.conveyal.gtfs.model.*;
import java.net.URL;
import static com.conveyal.gtfs.error.NewGTFSErrorType.FIELD_VALUE_TOO_LONG;
/**
* MTCValidator runs a set of custom validation checks fo... | 38.78125 | 130 | 0.68332 |
21083f8ff16167324216b405cebd01309defe5ea | 652 | package program;
public class Printers {
public static void print2DArray(int[][] arr) {
for(int[] m : arr) {
for(int n : m)
System.out.printf("[%d]", n);
System.out.println();
}
}
public static void print2DArray(char[][] arr) {
for(char[] m : arr) {
for(char n : m)
System.out.printf("[%s]",... | 20.375 | 48 | 0.587423 |
75f5bfddcfe8f02e486e7e4fda4dcfeb38865746 | 3,788 | package com.codepath.apps.erastustweet.utilities;
import android.content.Context;
import android.text.Editable;
import android.text.Spannable;
import android.text.SpannableString;
import android.text.TextWatcher;
import android.text.style.BackgroundColorSpan;
import android.widget.Button;
import android.widget.EditTex... | 44.564706 | 109 | 0.568374 |
fe8a90f988456149cbac48b0df9db39c2d3a657b | 8,949 | /*
* 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 ... | 43.441748 | 128 | 0.7079 |
c1bc19656b16e8ed1d5747ee84a63267e86c7a15 | 7,875 | package bfd.sys.solr.handler;
import bfd.sys.solr.SolrField;
import bfd.sys.solr.util.Constants;
import net.sf.json.JSONArray;
import net.sf.json.JSONObject;
import org.apache.log4j.Logger;
import org.apache.solr.common.SolrInputDocument;
import java.util.*;
import java.util.concurrent.Exchanger;
public ... | 31.882591 | 111 | 0.639873 |
efa9dc04fef61aed797716b4bf159e7f0d98baaa | 676 | /*
* Microsoft JDBC Driver for SQL Server Copyright(c) Microsoft Corporation All rights reserved. This program is made
* available under the terms of the MIT License. See the LICENSE file in the project root for more information.
*/
package com.microsoft.sqlserver.testframework.sqlType;
import java.sql.JDBC... | 39.764706 | 117 | 0.739645 |
93dae4c6854246ba367b478f1ca80238ebfd0192 | 3,219 | /*
* Copyright 2018 - 2020 Paul Hagedorn (Panzer1119)
*
* 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
*
* U... | 37 | 93 | 0.61137 |
86191cac5dfd2afbb69f3880df537e4c44e4cfea | 2,494 | package org.d3ifcool.finpro.dosen;
import androidx.test.rule.ActivityTestRule;
import org.d3ifcool.finpro.R;
import org.d3ifcool.finpro.activities.DosenMainActivity;
import org.d3ifcool.finpro.activities.LoginActivity;
import org.junit.Before;
import org.junit.Rule;
import org.junit.Test;
import static androidx.test... | 33.702703 | 123 | 0.706095 |
d36f6e3816dad8c8ac3dc00ceeec213b53016b69 | 1,747 | /**
* Copyright (c) 2015, Benny Bobaganoosh. All rights reserved.
* License terms are in the included LICENSE.txt file.
*/
package engine.parsing.json;
import java.io.BufferedWriter;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;
import java.text.ParseException;
import engine.pa... | 22.397436 | 67 | 0.659416 |
d35b6f297964ac502269d150e518fd9a7edceb3d | 8,774 | package edu.virginia.vcgr.genii.network.ftp;
import java.io.InputStream;
import java.io.OutputStream;
import java.util.Collection;
import java.util.Date;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.morgan.ftp.FTPException;
import org.morgan.ftp.FilePermissions;
impo... | 32.984962 | 116 | 0.722134 |
59be32de38bc489ef6b2f2de6630d6aeae07a4e4 | 4,979 | /*
* $Id: SimpleAnnotations.java 3373 2008-05-12 16:21:24Z xlv $
*
* This code is part of the 'iText Tutorial'.
* You can find the complete tutorial at the following address:
* http://itextdocs.lowagie.com/tutorial/
*
* This code is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; wit... | 37.43609 | 223 | 0.708777 |
7181966e525395753d1793be8a056629218db608 | 9,570 | package java_test;
import java.math.BigInteger;
import java.util.Vector;
import java_test.GroupElement;
import org.bouncycastle.pqc.math.linearalgebra.IntegerFunctions;
@SuppressWarnings("unused")
public class Curve25519{
private final int BIT_WIDTH = 254;
private final BigInteger FIELD_PRIME = GroupElement.F... | 37.382813 | 139 | 0.639394 |
606193f2f7af8b1091ff0fc662143bedfea9a48d | 2,602 | package com.demo.siscon.models.entities;
import javax.persistence.*;
import javax.validation.constraints.Email;
import javax.validation.constraints.Size;
import java.io.Serializable;
import java.util.List;
@Entity
@Table(name="PROVEEDORSERVICIO")
public class ProveedorServicio implements Serializable {
private s... | 21.504132 | 95 | 0.652575 |
57a5e88eba34274ad3696f948a2cb0e4fc7ef523 | 721 | package org.jboss.eap.qe.microprofile.metrics.integration.ft;
import java.io.IOException;
import javax.enterprise.context.ApplicationScoped;
import javax.inject.Inject;
import org.eclipse.microprofile.faulttolerance.Fallback;
@ApplicationScoped
public class FTCustomCounterIncrementProviderService {
private lon... | 24.033333 | 62 | 0.771151 |
7333263e0d3aa70ec876771aed1008b697bd6d82 | 35,033 | package com.github.zvreifnitz.jpipeline;
import com.github.zvreifnitz.jcore.exc.AppException;
import com.github.zvreifnitz.jpipeline.execution.PipelineExecutor;
import com.github.zvreifnitz.jpipeline.utils.Funcs;
import org.junit.Assert;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
impo... | 48.254821 | 178 | 0.597066 |
0a946f7741e8095592bb70785bcc3de28db399fc | 1,511 | package bg.bas.iinf.sinus.wicket.model.owl;
import java.net.URI;
import org.apache.wicket.model.LoadableDetachableModel;
import org.semanticweb.owlapi.model.OWLNamedObject;
import org.semanticweb.owlapi.model.OWLObject;
import bg.bas.iinf.sinus.cache.CacheFactory;
import bg.bas.iinf.sinus.cache.CacheWrapper... | 21.898551 | 94 | 0.65321 |
f97105f320eeda63561103376ed472cb1da535c7 | 1,639 | package de.team7.swt.checkout.presentation;
import de.team7.swt.checkout.model.OrderCompletionFailure;
import org.springframework.core.Ordered;
import org.springframework.core.annotation.Order;
import org.springframework.http.HttpHeaders;
import org.springframework.http.HttpStatus;
import org.springframework.http.Resp... | 43.131579 | 113 | 0.790116 |
895099d7311b59c33546705fb9dc7f3a467e8c39 | 7,341 | /**
*/
package CIM15.IEC61970.Domain;
import java.util.Date;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.EObject;
import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
/**
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>Date Time Interval</b></em>'.
* <!-- end-user... | 23.378981 | 127 | 0.612723 |
5ad87a1987a1884d4cb0237a2db4b0e5eadf6203 | 126 | package noppes.npcs.blocks.tiles;
import net.minecraft.util.AxisAlignedBB;
public class TileSign extends TileBanner {
}
| 12.6 | 42 | 0.785714 |
939ef5724f3b79d992a66a509055ea2579a5157b | 1,994 | /*
* Copyright (C) 2019 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.982456 | 124 | 0.740221 |
291e674a4468babba7e68ccecfb440c7457e4279 | 2,941 | package org.commcare.adapters;
import android.app.Activity;
import org.commcare.cases.entity.Entity;
import org.commcare.cases.entity.NodeEntityFactory;
import org.javarosa.core.model.instance.TreeReference;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.LinkedHashSet;
import java.util.List;
... | 37.705128 | 127 | 0.644679 |
b5367db24e652362a1981f18c2c146d23e5dfbe6 | 367 | package io.quarkus.resteasy.reactive.server.test.multipart;
import java.io.File;
import javax.ws.rs.core.MediaType;
import org.jboss.resteasy.reactive.PartType;
import org.jboss.resteasy.reactive.RestForm;
public class MultipartOutputFileResponse {
@RestForm
String name;
@RestForm
@PartType(MediaT... | 19.315789 | 59 | 0.773842 |
b0b49a9ad6775546d084d2d1c2d04f63c1a44b87 | 2,624 | package com.mvc.timemachine.models;
import java.util.ArrayList;
import java.util.List;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import javax.persistence.FetchType;
import javax.persis... | 20.661417 | 81 | 0.704268 |
0ba50b4dcbaa2a391d632319db14cde498eb88fc | 3,903 | package com.capstone.AninPringleOfori.dao;
import com.capstone.AninPringleOfori.model.item.Item;
import com.capstone.AninPringleOfori.model.item.TShirt;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.dao.EmptyResultDataAccessException;
import org.springframework.jdbc.core.Jdb... | 37.893204 | 160 | 0.674609 |
60cd300bd70b0505af3571ca24fb1e4700293c09 | 1,303 | package com.clean.architecture.infra.factory;
import com.clean.architecture.domain.factory.AbstractRepositoryFactory;
import com.clean.architecture.domain.repository.CouponRepository;
import com.clean.architecture.domain.repository.ItemRepository;
import com.clean.architecture.domain.repository.OrderRepository;
import... | 37.228571 | 81 | 0.815042 |
8ba5cc75bd509043013c019e9282c8e89e13ab13 | 26,230 | /**
* Apache License
* Version 2.0, January 2004
* http://www.apache.org/licenses/
*
* TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
*
* 1. Definitions.
*
* "License" shall mean the terms and conditio... | 39.802731 | 108 | 0.665498 |
dfbd1791d66e37ab2287ca598dc5e8fc0e6870a5 | 268 | package com.gathermall.product.dao;
import com.gathermall.product.entity.SpuInfoDesc;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
@Mapper
public interface SpuInfoDescDao extends BaseMapper<SpuInfoDesc> {
}
| 22.333333 | 65 | 0.828358 |
907fe0266008608f79e65d0c7f0e3733ae09a2b3 | 664 |
import java.util.Scanner;
/**
*
* @author Bruno
*/
public class Main {
public static void main(String[] args) {
Scanner ler= new Scanner(System.in);
//instancia
Vendedor v= new Vendedor();
//valores
System.out.println("Digite as vendas de Março: ");
... | 24.592593 | 60 | 0.563253 |
7579e72d96279ed6a928c58f11c0c195fe256f33 | 3,605 |
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.UnsupportedEncodingException;
/**
* This class reads bytes from a stream, creates consignments and
* puts each consignment into a message
*
* Message Format (without in-between space)
* RDT sequence... | 32.772727 | 98 | 0.595007 |
cf4671f62e8857502964c3c06861f6ab59caa65f | 1,980 | /*
* Copyright (c) 2020-2021 Chuntung Ho. Some rights reserved.
*/
package com.chuntung.payment.dto;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
public class PayQueryResult implements Serializable {
private static final long serialVersionUID = 8756471524183185831L;
pri... | 22.5 | 70 | 0.623232 |
89b108c5912b7e1285c43e9e053a8392b4addb37 | 1,256 | /*
* Copyright © 2015 - 2021 ReSys (info@dialob.io)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicab... | 32.205128 | 128 | 0.73965 |
cb53494cf1a7b658d9344020ecb28aa0642fd93d | 1,413 | package utils;
import java.io.File;
import java.io.FileFilter;
import java.io.FilenameFilter;
public class FileFilters {
public static FileFilter directoryFilter = new FileFilter() {
public boolean accept(File file) {
return file.isDirectory();
}
};
public static FilenameFilter exceptionFilter = new Filen... | 27.173077 | 81 | 0.721161 |
79fbbb22c3191757175b8f628e46e80a1b9a585d | 1,014 | public class Assignment {
public static void main (String[] args){
double right = 6.0;
double left = 10.0;
double answer, a, b;
System.out.println("A = " + left);
System.out.println("B = " + right);
// Assignment
System.out.println("\nAssignment");... | 27.405405 | 55 | 0.431953 |
9081579158b9697aeb8c2f36c736a2fc8f6dc251 | 1,503 | package edu.usfca.cs272;
import java.nio.file.Path;
import java.nio.file.PathMatcher;
public class PathMatcherDemo {
public static void main(String[] args) {
Path hello = Path.of("hello.txt");
Path world = Path.of("txt.world");
PathMatcher anonClass = new PathMatcher() {
@Override
public boolean matches... | 27.327273 | 68 | 0.650699 |
dc44d8e4268cccd8394fb65f85315d6fd5b16e91 | 18,232 | package us.ihmc.commonWalkingControlModules.trajectories;
import static org.junit.Assert.assertTrue;
import static org.junit.Assert.fail;
import java.util.Random;
import org.junit.After;
import org.junit.Test;
import us.ihmc.continuousIntegration.ContinuousIntegrationAnnotations.ContinuousIntegrationTest;
import us... | 50.504155 | 157 | 0.769471 |
94e0620a635d3c607ffa6fec186e8bc56dd75be0 | 5,764 | /*
* Copyright (C) 2019 Parrot Drones SAS
*
* 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 cond... | 40.027778 | 117 | 0.629251 |
63146283f5d6d308b6a7d70997e99b6b1007e8a4 | 1,375 | package ExamExercises_07.ExamJanuary72018;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Coins {
public static void main(String[] args) throws IOException {
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
dou... | 25.943396 | 85 | 0.484364 |
7a22aa6d486a540ce918a7bba4b12aae8d0c4eb1 | 4,384 | package com.jfinalshop.model;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import org.apache.commons.lang3.StringUtils;
import com.jfinalshop.model.base.BaseArticleCategory;
/**
* Dao - 文章分类
*
*
*
*/
@SuppressWarnings("serial")
public class ArticleCategory extends BaseArt... | 22.030151 | 198 | 0.638686 |
72676f749791b7208a134e76ab1dda95e25d114d | 10,459 | package com.alibaba.datax.plugin.writer.clickhousereader;
import com.alibaba.datax.common.element.*;
import com.alibaba.datax.common.exception.DataXException;
import com.alibaba.datax.common.plugin.RecordSender;
import com.alibaba.datax.common.plugin.TaskPluginCollector;
import com.alibaba.datax.common.statistics.Perf... | 43.579167 | 167 | 0.501769 |
35367bb3851017d8bcd610ce06446b30aa93fe91 | 1,205 | /**
* 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.management.network.v2020_05_01;
import com.fasterxml.jackso... | 27.386364 | 106 | 0.717012 |
f37f3400ebe6137673fe41ff74ccb0ee853f3b9e | 1,968 | package de.unibi.agbi.biodwh2.core.etl;
import com.fasterxml.jackson.databind.MappingIterator;
import de.unibi.agbi.biodwh2.core.DataSource;
import de.unibi.agbi.biodwh2.core.Workspace;
import de.unibi.agbi.biodwh2.core.exceptions.ParserException;
import de.unibi.agbi.biodwh2.core.exceptions.ParserFormatException;
imp... | 37.846154 | 117 | 0.700203 |
cf49d53e2256e339f3b0fca37cbb9c8ef6a451b4 | 5,425 | package me.megamichiel.animationlib.util.pipeline;
import java.util.Objects;
import java.util.concurrent.atomic.AtomicLong;
import java.util.function.*;
public class Pipeline<E> extends AbstractPipeline<Predicate<? super E>> {
public Pipeline(PipelineContext ctx) {
super(ctx);
}
public void acce... | 30.649718 | 97 | 0.581751 |
a5c5d08f71878148c90dcee76178b1e2011fc50c | 1,568 | package uk.co.codera.ci.tooling.api.bitbucket;
import javax.ws.rs.Consumes;
import javax.ws.rs.POST;
import javax.ws.rs.Path;
import javax.ws.rs.core.MediaType;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import uk.co.codera.ci.tooling.api.bitbucket.dto.PushEventDto;
import uk.co.codera.ci.tooling.git.G... | 34.844444 | 121 | 0.744898 |
42b9c92095a043cc048e568f819da621f7e1d609 | 2,368 | /*
* Copyright 2019 lorislab.org.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed ... | 29.234568 | 81 | 0.651182 |
ffeada836511e72b2ef73bfd673a40266525d27f | 1,334 | package us.aaronweiss.pixalia.server.packets;
import io.netty.channel.Channel;
import us.aaronweiss.pixalia.server.tools.Utils;
public class VHostChangeRequestPacket extends Packet {
public static final byte OPCODE = 0x04;
private VHostChangeRequestPacket(Channel channel, boolean status) {
super(channel, OPCODE... | 27.791667 | 96 | 0.762369 |
51c6a83a026610790bbd3c1fda145768028c8921 | 349 | package org.ecjug.hackday.repository;
import org.ecjug.hackday.domain.model.Group;
import java.util.List;
import java.util.Optional;
public interface GroupRepository {
Group add(Group group);
List<Group> list();
Optional<Group> byId(String groupId);
void update(Group group);
Optional<Group> ... | 17.45 | 46 | 0.730659 |
0907e3ac79d85998ccc1efe1de20083e37b23f21 | 397 | import java.util.Scanner;
class Palindrome
{
public static void main(String args[])
{
String a;
String b="";
Scanner src = new Scanner(System.in);
a = src.nextLine();
for (int i = a.length() - 1;i >=0;i--)
{
b = b+a.charAt(i);
}
if (b.equals(a))
{
System.out.println("This is a palindrome");
... | 15.88 | 50 | 0.581864 |
8b0c7d96d7e61a25c6a21819c1c589b6ade833d7 | 112 | package com.ygmpkk.marketdata.agent.service.marketapi.command;
public abstract class CommandRequestWrapper {
}
| 22.4 | 62 | 0.839286 |
2a7bd53c822e3cdf7f23126dc595268070cf5f9c | 5,831 | package com.example.findacar.adapters;
import android.app.Activity;
import android.graphics.Color;
import android.graphics.PorterDuff;
import android.graphics.drawable.Drawable;
import android.view.View;
import android.view.ViewGroup;
import android.view.Window;
import android.view.WindowManager;
import android.widge... | 38.111111 | 147 | 0.686332 |
1cc50116bc925fdd8961cb023bc52bdf6938fcea | 848 | package com.googlecode.aviator.runtime.function.string;
import java.util.Map;
import com.googlecode.aviator.runtime.function.AbstractFunction;
import com.googlecode.aviator.runtime.function.FunctionUtils;
import com.googlecode.aviator.runtime.type.AviatorLong;
import com.googlecode.aviator.runtime.type.AviatorOb... | 26.5 | 95 | 0.738208 |
dcdd7d687a1f65410d599282217efa3e8d910733 | 1,391 |
package com.xxyp.xxyp.user.contract;
import com.xxyp.xxyp.common.base.IBasePresenter;
import com.xxyp.xxyp.common.base.IBaseView;
import com.xxyp.xxyp.common.bean.UserInfo;
import com.xxyp.xxyp.user.bean.UserShotListBean;
import rx.Observable;
/**
* Description : 个人中心contract Created by sunpengfei on 2017/8/2. Per... | 16.963415 | 74 | 0.531991 |
7e7fbc62e1cbd853425c9066232b646790fe03fe | 4,403 | package ca.ubc.ece.salt.pangor.analysis.argumentorder;
import java.util.HashSet;
import java.util.Iterator;
import java.util.Set;
import java.util.stream.Collectors;
import org.mozilla.javascript.Node;
import org.mozilla.javascript.ast.Assignment;
import org.mozilla.javascript.ast.AstNode;
import org.mozilla.javascri... | 35.796748 | 114 | 0.756757 |
30f89bf0503728a7a176fd3c806c0217d46e5610 | 3,143 | /*
* 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; you may not use this file except in compliance with the Elastic License
* 2.0.
*/
package org.elasticsearch.xpack.eql.session;
import org.elasticse... | 27.094828 | 88 | 0.692332 |
4a2793857f73737012448f5c10fd364ba45bf45c | 358 | package zdream.nsfplayer.mpeg;
/**
* <p>Mpeg 格式的音频数据帧
*
* @author Zdream
* @since v0.1
* @date 2018-01-16
*/
public class MpegFrame {
MpegFrame(MpegAudio audio, int seq) {
this.audio = audio;
this.seq = seq;
}
/**
* 序号
*/
public final int seq;
/**
* 属于哪个 audio 的
*/
public final MpegAudio ... | 11.548387 | 38 | 0.603352 |
1c797b20b0dd086caf66c62f0315a01e31543fe8 | 842 | package SearchStateAI;
import Puzzle.ListKR;
import Puzzle.PuzzleKR;
import java.util.*;
public class BreathFirstSearch {
Queue<ListKR> puzzleKRQueue = new LinkedList<>();
public BreathFirstSearch(ListKR firstQueue) {
puzzleKRQueue.add(firstQueue);
}
public String getSolutio... | 25.515152 | 76 | 0.586698 |
06500c0d6123a0de5a9b7fa39788be29c5e02637 | 705 | package jp.gr.java_conf.spica.plugin.gradle.jacoco.test.assertions;
import jp.gr.java_conf.spica.plugin.gradle.jacoco.internal.domain.coverage.model.CoverageReport;
import org.assertj.core.api.AbstractAssert;
public class CoverageReportAssert extends AbstractAssert<CoverageReportAssert, CoverageReport> {
public Co... | 37.105263 | 96 | 0.805674 |
9065288dcf312506f7e588e6ad227e0671334f36 | 846 | /*
* @lc app=leetcode id=201 lang=java
*
* [201] Bitwise AND of Numbers Range
*
* https://leetcode.com/problems/bitwise-and-of-numbers-range/description/
*
* algorithms
* Medium (39.09%)
* Likes: 955
* Dislikes: 120
* Total Accepted: 148.4K
* Total Submissions: 379.6K
* Testcase Example: '5\n7'
*
... | 16.92 | 79 | 0.523641 |
13e8d93b4d25a86138960c4641df62c36dceba88 | 1,076 | package org.calvin.String;
import java.util.HashMap;
import java.util.Map;
public class FirstRecurring {
public static Character findFirstRecurring(String input) {
if (input == null || input.length() < 2) return null;
Map<Character, Integer> tracker = new HashMap<>();
for (char c : input.... | 29.081081 | 90 | 0.506506 |
5b97bf6ebd628cd6c5eb86b8535cdab2569aa593 | 890 | package com.miausoft.miaups.controllers;
import com.miausoft.miaups.persistence.ParcelDimensionsRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.CrossOrig... | 37.083333 | 87 | 0.824719 |
ede88592a8f8b35ccd7e3608089553aad229df7a | 1,843 | public class TNode<E extends Comparable<E>> {
protected E key;
protected TNode<E> left = null;
protected TNode<E> right = null;
protected int size = 1;
protected int height = 0;
protected int freq = 1; // increment when duplicate keys are inserted
protected int access = 0; // increment when TNod... | 18.806122 | 94 | 0.604449 |
63b155300f5894d76917d8d9525fa00626fc46eb | 5,515 | /**
* Copyright 2014 Internet2
*
* 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... | 33.424242 | 100 | 0.683772 |
9d1ab631b62b587a5006071ce0fd4df1bf5acd69 | 2,555 | /*
* Copyright (c) 2020 Thomas Neidhart.
*
* 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... | 33.181818 | 112 | 0.691194 |
bcc6a58d91a390febbf714777fe704425158dff5 | 1,519 | package seedu.address.logic.commands.mark;
import seedu.address.logic.CommandHistory;
import seedu.address.logic.commands.CommandResult;
import seedu.address.logic.commands.exceptions.CommandException;
import seedu.address.model.Model;
import seedu.address.model.mark.Mark;
/**
* Mark "and" subcommand
*/
public clas... | 31 | 105 | 0.673469 |
d4025127f710fb188d1651845e59e0a5d6522a68 | 1,288 | package core.string;
import org.junit.Test;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
public class EqualityTest {
@Test
public void checkReferenceEquality() {
String s1 = "Firefly";
String s2 = "Firefly";
assertTrue(s1 == s2);
String s3 = "Fire" + "fly";
ass... | 21.114754 | 45 | 0.681677 |
b3b0cf4bd709a5a4f957edf33fc80f033ef768d0 | 3,801 | import org.junit.Test;
import java.util.Arrays;
import java.util.NoSuchElementException;
import static org.junit.Assert.*;
public class AddressBookTest {
private static AddressBook createDictionary() {
return new AddressBook(
new Pair("Krivitskii", new Address("Komendantskii", "1", "1"))... | 31.941176 | 103 | 0.548014 |
d6cb4442f3eb6a3167fef8e2c39a0b734043d41a | 5,272 | package com.kodstar.backend.service.impl;
import com.kodstar.backend.model.dto.Label;
import com.kodstar.backend.model.entity.LabelEntity;
import com.kodstar.backend.repository.LabelRepository;
import com.kodstar.backend.service.LabelService;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Displa... | 28.344086 | 85 | 0.735205 |
8e3cdfadf447190bb9bc923b135a74c5db9257e6 | 420 | package io.metadew.iesi.metadata.definition.action.result.key;
import io.metadew.iesi.metadata.definition.key.MetadataKey;
import lombok.Data;
import lombok.EqualsAndHashCode;
@Data
@EqualsAndHashCode(callSuper = true)
public class ActionResultOutputKey extends MetadataKey {
private final String runId;
priva... | 24.705882 | 62 | 0.797619 |
c8877110c1f65beae0cfc26f0e165f9be9ab2c5f | 5,001 | /*PLEASE DO NOT EDIT THIS CODE*/
/*This code was generated using the UMPLE 1.31.1.5860.78bb27cc6 modeling language!*/
package cruise.umple.parser;
import java.nio.file.*;
/**
* Used to indicate the coordinates of a position when parsing. This is done by keeping track of the
* filename, the line number and the corr... | 22.940367 | 160 | 0.625475 |
598e8c16803225ba110412f8c5265d1a7552be8c | 2,264 | package com.yi.swagger.config;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import springfox.documentation.builders.ApiInfoBuilder;
import springfox.documentation.builders.ParameterBuilder;
import springfox.documentation.builders.PathSelectors;
import... | 31.444444 | 77 | 0.738516 |
97c5461ab2d03957f8789d43fb9fde5ce348bdd4 | 842 | package com.example.helloworld.model;
public class VareforbrugElement {
private String varenavn = "";
private String opkoeb = "";
private String koebsPris = "";
private String vareforbrug = "";
public String getVarenavn() {
return varenavn;
}
public void setVarenavn(String varena... | 20.047619 | 52 | 0.625891 |
161217c39b67aa9ff14d3537c3287dfdb6ba50cf | 140 | package com.moemoe.lalala.utils;
/**
* Created by yi on 2017/1/12.
*/
public interface MoeMoeCallback {
void onSuccess(Object o);
}
| 14 | 33 | 0.685714 |
298d97f363f937a211409d9335c424c1bc9cadb9 | 7,783 | /*******************************************************************************
* Copyright (c) 2009 IBM Corporation 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 a... | 30.521569 | 100 | 0.694976 |
e49c797661811d91efe1c5bc9179eddac73f1c25 | 536 | package com.gps.db.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.gps.common.model.CommandType;
import com.gps.db.dbutils.MyPage;
import com.gps.db.entity.CommandTypeEntity;
import java.util.List;
import java.util.Map;
/**
*
*
* @author zb
* @email zb@gmail.com
* @date 2019-06-... | 21.44 | 73 | 0.757463 |
9126fb6745be35f660b1d1b5730c2973096269d9 | 2,728 | /**
* Created by egor_hm on 7/3/15.
*/
import edu.princeton.cs.algs4.WeightedQuickUnionUF;
public class Percolation {
private int gridSize = 0;
private boolean [] grid = null;
private WeightedQuickUnionUF qu = null;
private WeightedQuickUnionUF backwashQu = null;
private int virtualTop = 0;
... | 25.027523 | 81 | 0.522361 |
d41506b5a8fc8b9617dc93bc592e057d1b2dd97d | 8,633 | /*
* Copyright 2010-2022 Jan de Jongh <jfcmdejongh@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... | 36.42616 | 132 | 0.556817 |
0f77d9a1e592a24639a10ed94b6e79c9acc315b0 | 714 | package com.concordium.sdk.responses.transactionstatus;
import com.concordium.sdk.transactions.AccountAddress;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Getter;
import lombok.ToString;
/**
* Account is not a delegation account.
*/
@ToStr... | 26.444444 | 88 | 0.780112 |
1c99f268dda42c3e74135305225b271db782d6d7 | 451 | package com.g10.ssm.po;
public class Permission {
private Integer permissionId;
private String name;
public Integer getPermissionId() {
return permissionId;
}
public void setPermissionId(Integer permissionId) {
this.permissionId = permissionId;
}
public String getName() ... | 19.608696 | 55 | 0.629712 |
90da4d0f781d68218fb9f514137e98b9355f49c8 | 84,905 | /*
* @(#)MmeIuIf.java 1.0 09/12/14
*
* This file has been auto-generated by JNC, the
* Java output format plug-in of pyang.
* Origin: module "hcta-epc", revision: "2014-09-18".
*/
package hctaEpc.mmeSgsn.interface_.iu;
import .ietfInetTypes.IpAddress;
import Element;
import Epc;
import JNCException;
... | 32.769201 | 112 | 0.652117 |
8c7b963697cd4187b8607cd4591eced51840ae5c | 4,730 | package org.succlz123.blueboard.view.adapter.recyclerview.other;
import com.facebook.drawee.view.SimpleDraweeView;
import org.succlz123.blueboard.MyApplication;
import org.succlz123.blueboard.R;
import org.succlz123.blueboard.base.BaseRvViewHolder;
import org.succlz123.blueboard.model.bean.acfun.AcReOther;
import org... | 36.666667 | 137 | 0.682452 |
635b8758d1064d91f80ffdf5fab98a75ae72be74 | 2,628 | package com.happy;
import java.util.Stack;
/**
* 第32题 最长有效括号
* 给定一个只包含 '(' 和 ')' 的字符串,找出最长的包含有效括号的子串的长度。
*
* @author qgl
* @date 2019/06/02
*/
public class LongestValidParentheses32 {
/**
* 解法一:利用栈
* 时间复杂度:O(n),空间复杂度:O(n)
*
* @param s
* @return
*/
public int longestValidPar... | 25.269231 | 95 | 0.371385 |
4ce7974dd55d481294553fd9df6d0cd6c8f4d064 | 2,093 | package com.lamfire.utils;
import java.io.Serializable;
import java.util.List;
import java.util.Set;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Future;
import java.util.concurrent.TimeUnit;
/**
* 带标识的多线程执行器
*/
public class IdentityExecutor {
private final Set<Seriali... | 25.216867 | 102 | 0.593884 |
f91c0788c5d6844b65f46cb96a3a5723769399d5 | 3,289 | package net.violet.platform.datamodel.factories.implementations;
import java.sql.SQLException;
import java.util.Collections;
import net.violet.db.records.factories.RecordFactoryImpl;
import net.violet.platform.datamodel.Messenger;
import net.violet.platform.datamodel.MessengerImpl;
import net.violet.platform.datamode... | 26.739837 | 198 | 0.723016 |
61e06b786421a23488301d19ce68e05aa89762c6 | 1,005 | package net.ttk1.hideme.command;
import net.ttk1.hideme.HideMeManager;
import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player;
import java.util.Set;
public class ShowCommand extends AbstractCommand {
public ShowCommand(HideMeManager manager) {
super(manager, "show", "hideme.show", 0, tr... | 29.558824 | 97 | 0.639801 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.