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 |
|---|---|---|---|---|---|
1e2e4b73164efd15c745ef64ee9a1270c164e6db | 5,720 | package org.dhis2.fhir.adapter.fhir.transform.dhis.impl.util.dstu3;
/*
* Copyright (c) 2004-2019, University of Oslo
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* Redistributions of sou... | 45.396825 | 166 | 0.738112 |
58875b72496ce2eb52c779bb4fb0aa73d155910c | 638 | package com.example.administrator.testone.activity;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.support.v7.widget.AppCompatTextView;
import android.widget.AutoCompleteTextView;
import android.widget.EditText;
import com.example.administrator.testone.R;
public class MyLog... | 27.73913 | 56 | 0.793103 |
a719a435834ba8dc656619f49184a3a969a3af90 | 374 | package ppt;
import java.awt.Dimension;
import java.util.ArrayList;
import java.util.List;
public class Table extends Element {
List<TableRow> tablerows = new ArrayList<>();
public Table(double pX, double pY, List<TableRow> tr, Dimension sz) {
super(pX, pY, sz);
tablerows = tr;
}
public Table(double pX, do... | 18.7 | 70 | 0.692513 |
c65554760add6ee3e631bfedec5dcb0d0fcafd04 | 4,682 | /*
* Copyright © 2020 Cask Data, 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 t... | 36.294574 | 112 | 0.715079 |
c8669f5c64bdcde393753c417c1caf5b1dde8712 | 3,961 | package com.bitmovin.api.sdk.model;
import java.util.Objects;
import java.util.Arrays;
import com.bitmovin.api.sdk.model.Message;
import com.bitmovin.api.sdk.model.Status;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.... | 22.895954 | 82 | 0.654633 |
0721af2b1d164248e77e870bd767f1a6954592a3 | 5,384 | /*
*
* * Copyright 2020 New Relic Corporation. All rights reserved.
* * SPDX-License-Identifier: Apache-2.0
*
*/
package com.newrelic.agent.deadlock;
import com.google.common.collect.Maps;
import com.newrelic.agent.Agent;
import com.newrelic.agent.HarvestServiceImpl;
import com.newrelic.agent.attributes.Attrib... | 39.588235 | 119 | 0.647845 |
27215707142e3bf274d3a25c0ddac32ab06d561c | 727 | package com.jtmcn.archwiki.viewer;
/**
* Various constants used throughout the program.
*/
public class Constants {
//format types
public static final String TEXT_HTML_MIME = "text/html";
public static final String TEXT_PLAIN_MIME = "text/plain";
public static final String UTF_8 = "UTF-8";
//arch wiki urls
pu... | 34.619048 | 89 | 0.755158 |
5567935844a959348eea9c86f85526d74ce3eab6 | 1,364 | /* Copyright 2016 Urban Airship and Contributors */
package com.urbanairship.preference;
import android.annotation.TargetApi;
import android.content.Context;
import android.os.Build;
import android.util.AttributeSet;
import com.urbanairship.UAirship;
/**
* CheckboxPreference to enable/disable push notification vib... | 29.021277 | 108 | 0.75 |
f05f39cbe050d4c47fd737dd7cd6e07649b6b447 | 2,088 | /*
* generated by Xtext 2.10.0
*/
package com.beenleigh.dsl.web;
import com.beenleigh.dsl.ide.contentassist.antlr.LemmaParser;
import com.beenleigh.dsl.ide.contentassist.antlr.internal.InternalLemmaLexer;
import com.google.inject.Binder;
import com.google.inject.Provider;
import com.google.inject.name.Names;
import ... | 38.666667 | 94 | 0.823755 |
d242d370804920446fc2ce2fbc2affc5c6d342bf | 339 | package com.dotterbear.schedule.a.tweet.db.repo;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;
import com.dotterbear.schedule.a.tweet.db.model.ScheduledTweet;
@Repository
public interface ScheduledTweetRepository extends MongoRepository<Scheduled... | 33.9 | 91 | 0.852507 |
09e0d906395e907e7f06c18f02f6d7547042f515 | 20,808 | package com.u8.server.web.analytics;
import com.u8.server.cache.CacheManager;
import com.u8.server.common.Page;
import com.u8.server.common.UActionSupport;
import com.u8.server.data.analytics.GameChannelTSummaryData;
import com.u8.server.data.analytics.TSummary;
import com.u8.server.log.Log;
import com.u8.serv... | 38.040219 | 185 | 0.564398 |
c9672edc8613fefdadefa40e970c1a00963b9708 | 1,962 | package org.firstinspires.ftc.teamcode.Robot.SubSystems;
import com.qualcomm.robotcore.hardware.DcMotor;
import com.qualcomm.robotcore.hardware.DcMotorSimple;
import com.qualcomm.robotcore.hardware.HardwareMap;
import com.qualcomm.robotcore.hardware.Servo;
import org.firstinspires.ftc.teamcode.FTC_API.Robot.SubSystem... | 27.633803 | 73 | 0.599388 |
224735b1e0c321a38475e43c25d240a2ac7de1ad | 2,137 | package com.client.core.soap.tools.property.getdtofields.impl;
import org.springframework.stereotype.Service;
import com.bullhorn.entity.candidate.SendoutDto;
import com.client.core.soap.tools.property.getdtofields.DtoFieldGetService;
@Service("sendoutGetService")
public class SendoutDtoFieldGetService extends DtoFi... | 28.118421 | 116 | 0.746841 |
7c1f69db84a4e3b643cb63698346b2c9a3d2924d | 617 | package org.glob3.mobile.generated;
public class GenericQuadTree_Geodetic2DElement extends GenericQuadTree_Element
{
public final Geodetic2D _geodetic ;
public GenericQuadTree_Geodetic2DElement(Geodetic2D geodetic, Object element)
{
super(element);
_geodetic = new Geodetic2D(geodetic);
}
... | 19.903226 | 80 | 0.685575 |
b393c7d0fd6f5571ac4a873123c96df8d9ae4e43 | 562 | import Algorithms.BinarySearch.BinarySearch;
import Algorithms.Hashmap.Entry;
import Algorithms.Hashmap.OpenAddressing.RobinHood;
import java.util.*;
public class Main {
public static void main(String[] args) {
int[] a = new int[] {1,2,3,3,4,5,5,6,7,8,9,10,20,30,30,40,50};
Arrays.sort(a... | 31.222222 | 100 | 0.654804 |
3ace55507ecc34cd53c5a35ab985b0ce7e8b82a9 | 462 | package org.wildfly.swarm.config.generator.generator;
import org.jboss.dmr.Property;
import org.wildfly.swarm.config.runtime.model.AddressTemplate;
/**
* Maps resources (through their address) to {@link ClassPlan}'s.
* This way multiple resources can be represented by the same java class.
*
* @author Bob McWhirte... | 28.875 | 73 | 0.768398 |
1135deb8125e7dcbcbe7e46318f1346fae663476 | 220 | package com.leaning.linnyk.cloud.limitsservice.bean;
import lombok.AllArgsConstructor;
import lombok.Getter;
@AllArgsConstructor
@Getter
public class LimitConfiguration {
private int maximum;
private int minimum;
}
| 16.923077 | 52 | 0.818182 |
dff85df6dfdde29f74d863e3cb818a1eca46add5 | 2,929 | package org.example.pool;
import cn.hutool.core.util.RandomUtil;
import com.google.common.util.concurrent.Futures;
import com.google.common.util.concurrent.ListenableFuture;
import com.google.common.util.concurrent.ListeningExecutorService;
import com.google.common.util.concurrent.MoreExecutors;
import lombok.AllArgsC... | 34.05814 | 138 | 0.625811 |
34695a469b310cc6541d5bcaf20fa86d0a1a325a | 2,624 | /*
* 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 ... | 34.986667 | 75 | 0.720274 |
834bda3e4f13ff54b758a41bb8938ee8967eefa1 | 557 | package ai.hyacinth.core.service.gateway.server.security;
import java.util.ArrayList;
import java.util.Collection;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.security.core.Authentication;
@Data
@NoArgsConstructor
public class DefaultAuthentication implements Authentication {
pri... | 26.52381 | 70 | 0.818671 |
68cd4d628b646c9b6095ffb54898bc6a456a0222 | 500 | package com.luv2code.imusic.entity.customInterface;
import com.luv2code.imusic.entity.Artist;
import com.luv2code.imusic.entity.Category;
import java.util.Date;
import java.util.Set;
public interface SongNotUrl {
Integer getId();
String getName();
String getIntroduction();
Date getCreateTime... | 15.625 | 51 | 0.688 |
e6443476c308e6a9a122ef456f24012dbfafa3ca | 3,492 | package com.xinsite.core.model.user;
import com.xinsite.common.uitls.mapper.JsonMapper;
import java.io.Serializable;
/**
* 用户登录成功用户实例
* create by zhangxiaxin
*/
public class LoginUser implements Serializable {
private int userId; //当前登录用户Id
private String userName;
private String loginName;
priv... | 19.954286 | 58 | 0.621707 |
e901d0a5f7670da72540310570ed3484fbf8bf91 | 252 | package org.star.jaising.jarmony.ws;
import org.star.jaising.jarmony.JArmonyApplicationTests;
/**
* @author zhengjiaxing
* @description WebSocket服务端客户端消息收发测试类
* @date 2020/10/30
*/
public class WebSocketTests extends JArmonyApplicationTests {
}
| 19.384615 | 61 | 0.785714 |
b4ca20b2a22238da28cd086e6ff09fcb8fc41553 | 3,373 | /* ========================================================================
* JCommon : a free general purpose class library for the Java(tm) platform
* ========================================================================
*
* (C) Copyright 2000-2005, by Object Refinery Limited and Contributors.
*
* Pro... | 30.944954 | 79 | 0.595316 |
938999ec23ec7d223f378c531d6d0f2a14a65eb8 | 2,504 | package ruina.vfx;
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.graphics.Color;
import com.badlogic.gdx.graphics.Texture;
import com.badlogic.gdx.graphics.g2d.SpriteBatch;
import com.megacrit.cardcrawl.core.Settings;
import com.megacrit.cardcrawl.dungeons.AbstractDungeon;
import com.megacrit.cardcrawl.helpers.... | 31.3 | 86 | 0.572684 |
2723b96b1549562c14031b616a7d7f0c33814a47 | 13,950 | // Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/ads/googleads/v6/common/bidding.proto
package com.google.ads.googleads.v6.common;
public final class BiddingProto {
private BiddingProto() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistryLite regi... | 62.276786 | 162 | 0.800143 |
755fbeb6c4395183518b501fe56cd94ee0365196 | 557 | package com.tudou.common.annotation;
import java.lang.annotation.*;
/**
* 在不需要验证用户是否有权限的类或方法上标注即可(后台通常都是需要权限的)<br/>
* 当某些 url 只需要用户登录后就可以访问时, 标注此注解<br/>
* <span style="color:red">优先级低于 NotNeedLogin</span>, 也就是如果两个注解都有标注时, 对应类或方法的 url 就不需要登录
* <br><br>
*
* 在 Controller 类上标注后, 这个类下面的方法都不会再验证权限.<br>
* 想要在某个方法上再次验... | 24.217391 | 88 | 0.745063 |
ecfac7220b95f8ebd31b6eff1edaf788675fb788 | 4,137 | /*
* YUI Test
* Author: Nicholas C. Zakas <nzakas@yahoo-inc.com>
* Copyright (c) 2009, Yahoo! Inc. All rights reserved.
* Code licensed under the BSD License:
* http://developer.yahoo.net/yui/license.txt
*/
package com.yahoo.platform.yuitest.coverage.report;
import com.yahoo.platform.yuitest.coverage.r... | 36.610619 | 117 | 0.678994 |
bb1f7395d8fd5b62dfa7b56380650894ec552812 | 1,155 | package com.example.demo.manager;
import java.util.Optional;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.example.demo.manager.dao.EmployeeDao;
import com.ex... | 25.108696 | 96 | 0.758442 |
2930ad4d41493c46d62d4e9283b6f868e2dab464 | 3,676 |
/**
* Implementation of directed, weighed graph using a HashMap to represent adjacency list.
*
* @author marcinkossakowski on 9/24/14.
*/
import java.util.HashMap;
import java.util.ArrayList;
import java.util.HashSet;
// For file reading
import java.io.BufferedReader;
import java.io.IOException;
import java.io.F... | 26.070922 | 98 | 0.548966 |
343d8f4dd47753bd40cb3eec6ba05cb3e15049e2 | 165 | class C
{
double test()
{
System.out.println("from test");
return 20.90;
}
}
class D extends C
{
int test()
{
System.out.println("from D");
return 10;
}
} | 9.705882 | 33 | 0.606061 |
8703c07049a8b561565ac7a405b0634c99f5beee | 2,353 | package com.omnicrola.pixelblaster.map.io;
import com.omnicrola.pixelblaster.util.PointSet;
public class TerrainShapes {
public static final PointSet BASE = createRounded();
public static final PointSet CENTER = createSquare();
public static final PointSet ROUNDED = createRounded();
public static final PointSet C... | 34.101449 | 63 | 0.747981 |
a3aa39a7f56385f4c6cd3c46e6d94a6d6a217b63 | 1,344 | package org.juicecode.telehlam.ui.fingerprint;
import android.os.Bundle;
import androidx.fragment.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import android.widget.LinearLayout;
import org.juicecode.telehlam.R;
import org.... | 33.6 | 159 | 0.725446 |
8f7c870a2cc95f47fcf4f83bea6a98a35d0c1f7e | 207 | package org.vno.repository;
import org.springframework.data.repository.CrudRepository;
import org.vno.domain.Tag;
/**
* @author kk
*/
public interface TagRepository extends CrudRepository<Tag, Long> {
}
| 18.818182 | 66 | 0.772947 |
715c42f99d50e81f807dd8df65b9a132625b20c7 | 1,726 | package io.github.jsbd.common.serialization.bytebean.codec.primitive;
import io.github.jsbd.common.serialization.bytebean.codec.ByteFieldCodec;
import io.github.jsbd.common.serialization.bytebean.codec.NumberCodec;
import io.github.jsbd.common.serialization.bytebean.context.DecContext;
import io.github.jsbd.common.ser... | 35.958333 | 124 | 0.727115 |
74945cb94f58d7a67b0b4dd0721bba4bd18ee705 | 2,266 | /*
* Copyright OpenSearch Contributors
* SPDX-License-Identifier: Apache-2.0
*/
package org.opensearch.sql.legacy.parser;
import com.alibaba.druid.sql.ast.SQLExpr;
import com.alibaba.druid.sql.ast.expr.SQLIdentifierExpr;
import com.alibaba.druid.sql.ast.expr.SQLMethodInvokeExpr;
import com.alibaba.druid.sql.ast.e... | 31.472222 | 105 | 0.656222 |
bf2fa3995dbe514d0463795d01d5e78e197101c4 | 287 | package com.biniam.designpatterns.abstractFactory.foobarmotorco;
/**
* @author Biniam Asnake
*/
public class CarVehicleFactory extends AbstractVehicleFactory {
@Override
Body getBody() {
return new CarBody();
}
@Override
Chassis getChassis() {
return new CarChassis();
}
}
| 16.882353 | 64 | 0.738676 |
6afc643be3b8442d5c170a2a1967c2f5ba300624 | 517 | package perfectNumber;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
System.out.print("Enter number: ");
Scanner input = new Scanner(System.in);
int number = input.nextInt();
int total = 0;
for (int i = 1; i < number; i++) {
if (number % i == 0)... | 17.233333 | 57 | 0.584139 |
6c4b49b49b3b001f273c7940446736d32d809c0c | 5,022 | package com.mundane.androidtechniqueapply.ui.fragment;
import android.animation.Animator;
import android.animation.AnimatorListenerAdapter;
import android.animation.AnimatorSet;
import android.animation.ObjectAnimator;
import android.animation.PropertyValuesHolder;
import android.animation.ValueAnimator;
import andro... | 29.368421 | 100 | 0.749303 |
57f57f8de4bc004540799bbb230577c76da568b2 | 715 | package io.vertx.armysystem.microservice.dictionary.api;
import io.vertx.armysystem.business.common.CRUDRestAPIVerticle;
import io.vertx.armysystem.business.common.CRUDService;
import io.vertx.core.logging.Logger;
import io.vertx.core.logging.LoggerFactory;
import io.vertx.ext.web.Router;
import java.util.List;
publ... | 29.791667 | 96 | 0.806993 |
a141b72f8d10d06eeb97fed39dc0b842a4b1f141 | 5,019 | /*******************************************************************************
* Copyright © 2019 by California Community Colleges Chancellor's Office
*
* 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
* o... | 43.267241 | 114 | 0.736202 |
037a3c37e5edd9679d87ac2be1759681cd08f1e7 | 7,912 | /*
* @copyright defined in LICENSE.txt
*/
package hera.api.model;
import static hera.util.ValidationUtils.assertNotNull;
import static java.util.Arrays.asList;
import static java.util.Collections.emptyList;
import hera.AbstractTestCase;
import hera.api.model.Aer.Unit;
import hera.key.AergoKey;
import hera.key.Aerg... | 38.407767 | 511 | 0.728387 |
d32faba95c69b7c6f3eb2160b257ab5b5a602628 | 7,341 | /*
* MergeValue.java
*
* This source file is part of the FoundationDB open source project
*
* Copyright 2015-2020 Apple Inc. and the FoundationDB 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 obta... | 43.182353 | 194 | 0.6871 |
b0d720b27c3e07a3dfcc5b8f1ee2cdc1b1432497 | 7,611 | /*
* Jicofo, the Jitsi Conference Focus.
*
* Copyright @ 2015-Present 8x8, 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
*
... | 34.438914 | 114 | 0.685587 |
b2e40a259a296f183205d7e8184846244f221384 | 12,176 | package com.example.campushelp_s.fragment;
import android.app.Activity;
import android.graphics.BitmapFactory;
import android.os.Bundle;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import android.widget.ImageView;
i... | 35.498542 | 132 | 0.608574 |
431b93619080118dbe3ab565eb66d4a58f0c1a8f | 1,825 | package com.rewayaat.config;
import com.google.api.client.googleapis.auth.oauth2.GoogleIdToken;
import com.google.api.client.googleapis.auth.oauth2.GoogleIdTokenVerifier;
import com.google.api.client.http.HttpTransport;
import com.google.api.client.http.javanet.NetHttpTransport;
import com.google.api.client.json.JsonF... | 40.555556 | 117 | 0.712329 |
1f55a10301c2710bcebc9789b77d72d50914935a | 2,109 | package org.jakartaeeprojects.coffee.drinks.boundary;
import org.jakartaeeprojects.coffee.drinks.entity.Coffee;
import org.jakartaeeprojects.coffee.drinks.entity.CoffeeDto;
import javax.ejb.Stateless;
import java.util.ArrayList;
import java.util.List;
import java.util.Optional;
import static java.util.stream.Collect... | 32.953125 | 74 | 0.596965 |
7b14e2903f4142a56b06830fd15daa1e5680d5e0 | 692 | package com.ctrip.ferriswheel.quarks.syntax.lr;
import com.ctrip.ferriswheel.quarks.exception.QuarksLexicalException;
import com.ctrip.ferriswheel.quarks.exception.QuarksSyntaxException;
import java.io.IOException;
public class TestLR1ParsingTableConstructor {
public static void main(String[] args) throws Quark... | 34.6 | 82 | 0.75289 |
f37a83a1c15a55a795e0c120efeca06b8e670799 | 870 | package com.cognizant.bakingo.service;
import java.util.HashMap;
import java.util.LinkedHashMap;
import java.util.Map;
import org.springframework.stereotype.Service;
import com.cognizant.bakingo.bean.Cake;
@Service
public class CakeService {
public static Map<Integer, Cake> orderList = new HashMap<>();
public sta... | 24.857143 | 71 | 0.710345 |
f15faf46e58d4f4b37a43036eb9db2ff90e29d36 | 1,842 | package com.paragon_software.dictionary_manager;
import android.content.Context;
import androidx.annotation.NonNull;
import com.paragon_software.license_manager_api.LicenseFeature;
import com.paragon_software.license_manager_api.LicenseManager;
import com.paragon_software.trial_manager.TrialManagerAPI;
import java.u... | 32.315789 | 102 | 0.718241 |
5beb34a7b9fbb9aca354f5650dc73bf462e741ab | 8,661 | package com.yoloz.sample.jdbc;
import java.sql.*;
import java.util.Random;
/**
* Class.forName("oracle.jdbc.driver.OracleDriver")
*/
public class OracleTest {
public static void main(String[] args) throws ClassNotFoundException, SQLException, InterruptedException {
// Class.forName("oracle.jdbc.driver.O... | 43.522613 | 126 | 0.552592 |
df4865ec33fda844d2d09ac92456e7ca8184e21d | 1,799 | package com.mbafour.mba.service.book;
import com.mbafour.mba.domain.entity.AuctionEntity;
import com.mbafour.mba.domain.entity.BookEntity;
import com.mbafour.mba.domain.repository.BookRepository;
import com.mbafour.mba.dto.book.BookRequest;
import com.mbafour.mba.service.member.MemberStatusService;
import com.mbafour.... | 39.977778 | 139 | 0.717065 |
879adfff3395505fec0690b6a256ce26493e5c42 | 4,797 | package cn.ulyer.baseserver.api;
import cn.hutool.core.util.StrUtil;
import cn.ulyer.baseapi.entity.BaseApp;
import cn.ulyer.baseapi.entity.BaseAppResource;
import cn.ulyer.baseapi.vo.AuthorityVo;
import cn.ulyer.baseserver.service.BaseAppResourceService;
import cn.ulyer.baseserver.service.BaseAppService;
import cn.u... | 35.533333 | 167 | 0.69335 |
18bdbfc9b36d09c0550d2e0f3b28a021c90aff56 | 668 | package com.dreamworker;
/**
* 263 Ugly Number
*/
public class LeetCode263 {
public static void main(String[] args) {
LeetCode263 solution = new LeetCode263();
solution.isUgly(7);
}
public boolean isUgly(int num) {
if (num == 0) {
return false;
}
if ... | 20.242424 | 59 | 0.44012 |
45bb9f58843f8fc2a18adfb11c29611793517585 | 857 | package info.shibafu528.blurhash;
import org.jetbrains.annotations.NotNull;
/*package*/ class Base83 {
private static final String CHARCTERS = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz#$%*+,-.:;=?@[]^_{|}~";
public static int decode(@NotNull String str) {
int val = 0;
in... | 29.551724 | 130 | 0.541424 |
4beaf1d410a10a1cb93e1c2c8a40ab523e63c824 | 809 | package com.jaquadro.minecraft.storagedrawers.integration;
import com.jaquadro.minecraft.storagedrawers.integration.minetweaker.Compaction;
import com.jaquadro.minecraft.storagedrawers.integration.minetweaker.OreDictionaryBlacklist;
import com.jaquadro.minecraft.storagedrawers.integration.minetweaker.OreDictionaryWhit... | 29.962963 | 92 | 0.776267 |
2fec33703da788d950baba809c23e2dcf03614eb | 3,428 | package org.benf.cfr.reader.bytecode.analysis.parse.utils.finalhelp;
import org.benf.cfr.reader.bytecode.analysis.loc.BytecodeLoc;
import org.benf.cfr.reader.bytecode.analysis.opgraph.Op03SimpleStatement;
import org.benf.cfr.reader.bytecode.analysis.parse.expression.LValueExpression;
import org.benf.cfr.reader.bytecod... | 39.402299 | 144 | 0.704492 |
453c555a733374b20b735984fa191bf1d218cf0e | 691 | package cn.cyejing.dam.common.expression.ast;
import cn.cyejing.dam.common.expression.EvaluationContext;
public class OpForwardNode extends Node {
private String address;
public OpForwardNode(String address, Node... operands) {
super(operands);
this.address = address;
}
@Override
... | 23.827586 | 66 | 0.6411 |
26dbd114905847ab6afb0aacf9c15783c47dc12e | 261 | package de.psandro.nickify.api.model.exception;
import de.psandro.nickify.api.exception.NickifyException;
public final class ConfigurationException extends NickifyException {
public ConfigurationException(String message) {
super(message);
}
}
| 26.1 | 68 | 0.781609 |
9aac2840b9503fccdc79dd5df0a1ca8659c4c49d | 2,079 | package io.yokota.json.diff;
import org.everit.json.schema.CombinedSchema;
import org.everit.json.schema.Schema;
import java.util.Iterator;
import static io.yokota.json.diff.Difference.Type.COMPOSITION_METHOD_CHANGED;
import static io.yokota.json.diff.Difference.Type.PRODUCT_TYPE_EXTENDED;
import static io.yokota.js... | 44.234043 | 106 | 0.636364 |
e47a7fa9d937e4978e311831e8ae143a28040bf2 | 780 | package ccc.ccc2002;
import java.util.Scanner;
public class J2 {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
for (String s = sc.nextLine(); !s.equals("quit!"); s = sc.nextLine()) {
if (s.length() > 4 && s.endsWith("or") && !isVowel(s.charAt(s.l... | 26 | 92 | 0.423077 |
4fb97af7ecc173b7a6eee4660fd7ddae29fc6987 | 833 | package com.frontbackend.java.io.list;
import java.io.IOException;
import java.nio.file.FileVisitResult;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.nio.file.SimpleFileVisitor;
import java.nio.file.attribute.BasicFileAttributes;
public class ListFilesUsingVisitor {
... | 32.038462 | 84 | 0.626651 |
54764d23709182b3de33e1129e914ff9b47bf53e | 6,786 | /*******************************************************************************
* Copyright (c) 1999-2005 The Institute for Genomic Research (TIGR).
* Copyright (c) 2005-2008, the Dana-Farber Cancer Institute (DFCI),
* J. Craig Venter Institute (JCVI) and the University of Washington.
* All rights reserved.
... | 37.285714 | 159 | 0.582818 |
7fdf576f33ed1fb0a429fb158e01400388c630d7 | 2,215 | // Copyright (c) 2020-2021 Yinsen (Tesla) Zhang.
// Use of this source code is governed by the MIT license that can be found in the LICENSE.md file.
package org.aya.core.serde;
import kala.collection.immutable.ImmutableSeq;
import kala.collection.mutable.MutableMap;
import org.aya.core.sort.Sort;
import org.aya.generi... | 36.916667 | 116 | 0.71377 |
172340729aacd5bf5b538977276a9f7bd978a8b7 | 2,826 | package com.madlab.floatingactionbutton;
import androidx.appcompat.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.TextView;
import android.widget.Toast;
import com.google.android.material.floatingactionbutton.ExtendedFloatingActionButton;
import com.google.android.ma... | 36.701299 | 91 | 0.650035 |
d1dcf1da68934fdf8eaa7b3bd38dbbe292b66d40 | 1,945 | package seedu.tarence.testutil;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import seedu.tarence.model.Application;
import seedu.tarence.model.builder.TutorialBuilder;
import seedu.tarence.model.tutorial.Tutorial;
/**
* A utility class containing a list of {@code Tutorial} objects to... | 39.693878 | 101 | 0.693059 |
03579aae7a5127dfdf1d7f88b282f0192fad025b | 3,671 | package com.flurry.sdk;
import com.flurry.sdk.C7554lc.C7555a;
import java.net.SocketTimeoutException;
/* renamed from: com.flurry.sdk.J */
class C7399J implements C7555a<byte[], String> {
/* renamed from: a */
final /* synthetic */ C7423N f14510a;
/* renamed from: b */
final /* synthetic */ C7440Q f... | 36.346535 | 140 | 0.518387 |
6f913cd2d56f7bd0ac1e19cf9444c6a6f0ab54e6 | 8,165 | /*
* This program is free software: you can redistribute it and/or modify it under
* the terms of the GNU General Public License as published by the Free Software
* Foundation, either version 3 of the License, or (at your option) any later
* version.
*
* This program is distributed in the hope that it will be us... | 23.735465 | 108 | 0.642866 |
b030c9725696883632d050dce5831df140905d80 | 4,058 | package com.hys.exam.struts.form;
import com.hys.framework.web.form.BaseForm;
/**
*
* 标题:考试支撑平台
*
* 作者:tony 2010-2-3
*
* 描述:
*
* 说明:
*/
public class OlemPaperForm extends BaseForm {
private static final long serialVersionUID = -1251376418361496553L;
private Long id;
private String name;
/**... | 14.702899 | 68 | 0.679152 |
0ce4bcb19f23e221fed32255b23873088578163f | 1,007 | package catalinc.daydream.stars;
import android.content.Context;
import android.util.AttributeSet;
import android.view.SurfaceHolder;
import android.view.SurfaceView;
import android.view.View;
public class DreamView extends SurfaceView implements SurfaceHolder.Callback {
private RenderThread mRenderThread;
... | 25.820513 | 89 | 0.71996 |
ed05251c637d37444575e7b5ad51242d5dbc5289 | 118 | package io.emqx.extension.handler.codec;
public interface HandlerReturn {
public Object encode(ResultCode rc);
}
| 14.75 | 40 | 0.779661 |
e38e1c81c7b302f30250f9407665038c9ccf11e0 | 516 | package cn.org.rookie.mapper.entity;
import cn.org.rookie.mapper.annotation.Primary;
import cn.org.rookie.mapper.annotation.Table;
@Table("admin_user")
public class Test {
@Primary
private String id;
private String username;
public String getId() {
return id;
}
public void setId(St... | 16.645161 | 47 | 0.637597 |
8483ce0ec786313e5e931fd3fc5c1bf1afb8f70c | 1,414 | package ru.geekbrains.lesson2.apps;
import ru.geekbrains.lesson2.database.SQLService;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.net.Socket;
import java.util.Scanner;
/**
* Java Core. Professional level. Lesson 2
*
* @author Zurbaevi Nika
*/
public class ClientApp {
public ... | 30.73913 | 95 | 0.533946 |
08d56527d95b66919f13b319b8699954ce1a7c0a | 1,929 | package com.algorithm.space.hancock.all.solution;
import java.util.Arrays;
import java.util.LinkedList;
import java.util.List;
import java.util.stream.Collectors;
public class SolutionOf0015 {
public List<List<Integer>> threeSum(int[] nums) {
List<Integer> sortedNums = Arrays.stream(nums).sorted().boxed()... | 33.258621 | 130 | 0.572836 |
0dd1dcb201b5fa2b098d5dbe2894cc6058c8b8b8 | 808 | package common.entity;
import java.io.Serializable;
import java.util.List;
import javax.persistence.MappedSuperclass;
import javax.xml.bind.annotation.XmlTransient;
import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;
import lombok.Setter;
/**
* エンティティリストの基底クラス.
*/
@NoArgsConstructor
... | 18.363636 | 84 | 0.633663 |
ea2a49318ebc0a0310f9a078f0151621f83eb050 | 21,169 | // Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3) annotate safe
package com.fasterxml.jackson.databind.deser.impl;
import com.fasterxml.jackson.core.JsonParser;
import com.fasterxml.jackson.databind.*;
import com.faste... | 39.568224 | 207 | 0.568048 |
49bbeee3d904e44f5bed49ababb53c4e898560b3 | 362 | package com.wy;
import javax.sql.DataSource;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
@SpringBootTest
class ApplicationTests {
@Autowired
private DataSource datasource;
@Test
void contextLoads(... | 19.052632 | 62 | 0.798343 |
b7a5331c7b01e4930cfb3470494c2b3400389d69 | 32,595 | /*
* This file was automatically generated by EvoSuite
* Fri Aug 24 18:12:19 GMT 2018
*/
package org.dom4j.io;
import org.junit.Test;
import static org.junit.Assert.*;
import static org.evosuite.shaded.org.mockito.Mockito.*;
import static org.evosuite.runtime.EvoAssertions.*;
import java.io.ByteArrayInputStream;
i... | 37.465517 | 327 | 0.67673 |
7379401b2eed7d8a1ef5e841ecef3beb9f337f24 | 18,057 | /*
* Copyright (C) 2014 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... | 38.094937 | 129 | 0.633715 |
958e24da70f6d3a8272267171d87ac01f68a907a | 5,594 | /* Copyright 2017 Zutubi Pty Ltd
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in... | 33.90303 | 119 | 0.656596 |
81d854d0354da8cbed969f521bf97797114432ab | 3,065 | package com.service.back;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.dao.HqlDAO;
import co... | 28.37963 | 103 | 0.711582 |
b27bd822b38093a6eddc23bbb64adc7c919dd88c | 2,350 | package io.github.belmomusta.validation.validator;
import io.github.belmomusta.validation.annotation.Validation;
import io.github.belmomusta.validation.criteria.Criteria;
import io.github.belmomusta.validation.criteria.Criterion;
import io.github.belmomusta.validation.enumeration.ErrorMessage;
import io.github.belmomu... | 35.074627 | 151 | 0.682979 |
f723c44907aa40d777ec1d8f95dcfee24ee30b9f | 2,296 | /*
* JBoss, Home of Professional Open Source
*
* Copyright 2013 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/lic... | 36.444444 | 118 | 0.72169 |
cd65b3dbd47ca041d2b2dfb9456404226aba3405 | 1,589 | package de.dytanic.cloudnet.driver.network.def.packet;
import de.dytanic.cloudnet.common.document.gson.JsonDocument;
import de.dytanic.cloudnet.driver.network.def.PacketConstants;
import de.dytanic.cloudnet.driver.network.protocol.Packet;
import de.dytanic.cloudnet.driver.service.ServiceEnvironmentType;
import java.u... | 56.75 | 185 | 0.786029 |
74d2cfd32b14fedf70822387261fa290798175d3 | 2,771 | package org.gmu.context;
import android.location.Location;
import android.os.Bundle;
import org.gmu.control.Controller;
import org.gmu.dao.OrderDefinition;
import org.gmu.map.MapPosition;
import org.gmu.pojo.NavigationItem;
import org.gmu.pojo.PlaceElement;
import org.gmu.utils.Utils;
import java.io.Serializable;
imp... | 30.788889 | 112 | 0.717791 |
7788b6d959f0ce6fd3f6478992206d9542a4ef77 | 2,979 | package com.fishercoder.solutions;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
/**
* 756. Pyramid Transition Matrix
*
* We are stacking blocks to form a pyramid. Each block has a color which is a one letter string, like `'Z'`.
* For every block of color `C` w... | 31.691489 | 109 | 0.598859 |
df943bbc67e679f18519805916adfbf10c30b31a | 1,755 | package eu.minemania.watson.chat;
import java.util.ArrayList;
import eu.minemania.watson.analysis.CoreProtectAnalysis;
import eu.minemania.watson.analysis.LbCoordsAnalysis;
import eu.minemania.watson.analysis.LbToolBlockAnalysis;
import eu.minemania.watson.analysis.ModModeAnalysis;
import eu.minemania.watson.analysis... | 28.770492 | 80 | 0.688889 |
2aa1ceaf8212de162c9a7ced53f52c9a307a5472 | 1,094 | package com.ssm.service.impl;
import com.github.pagehelper.Page;
import com.ssm.dao.UserInfoDao;
import com.ssm.entity.po.UserInfoPo;
import com.ssm.service.UserInfoService;
import org.apache.ibatis.session.RowBounds;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.... | 25.44186 | 62 | 0.74223 |
c100d3a6d03b2dd294587ce74e1b5ab5b01c0635 | 510 | /**
@lc id : 206
@problem : Reverse Linked List
@author : github.com/rohitkumar-rk
@url : https://leetcode.com/problems/reverse-linked-list/
@difficulty : easy
@tags : Linked List
*/
class Solution {
public ListNode reverseList(ListNode head) {
if(head == null || head.next == null)
re... | 20.4 | 57 | 0.601961 |
dacd75bc77b46c6f3222f58e339a61c6fd720f64 | 1,558 | /*
* Copyright 2017 Hippo B.V. (http://www.onehippo.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... | 38.95 | 112 | 0.715661 |
25a89150828058f7b9e1f89b4dd18a44de4dd1ba | 232 | package de.dieklaut.camtool.renderjob;
import java.io.IOException;
import java.nio.file.Path;
public class NullRenderJob extends RenderJob {
@Override
void storeImpl(Path destination) throws IOException {
// do nothing
}
}
| 16.571429 | 54 | 0.771552 |
220458422cf52cc692a47f65c858eb7ad0f3f7e1 | 853 | package entity;
import java.io.*;
import javax.persistence.*;
@Embeddable
public class VoterDetail implements Serializable{
private String nrc, township, city, phoneno;
public VoterDetail(){}
public String getNrc() {
return nrc;
}
public void setNrc(String nrc) {
this.nrc = nrc;
}
... | 16.403846 | 94 | 0.631887 |
05e537b00abb0fe678a719a852e6751aa6919a8b | 126 | package com.ruoyi.system.domain;
import lombok.Data;
/**
* 打印机实体类
*/
@Data
public class Printer {
Integer shopId;
}
| 9 | 32 | 0.666667 |
f2fb21a35263c0709690c4492174d5599b3adc23 | 1,576 | package com.bradmcevoy.http.http11;
import com.bradmcevoy.http.Resource;
/**
* Generates ETags, ie entity tags.
*
* Custom implementations must be injected into:
* - DefaultHttp11ResponseHandler
* - DefaultWebDavPropertySource
*
* .. or whatever you're using in their place
*
* Note that the Http11ResponseH... | 34.26087 | 80 | 0.711294 |
7591ea27f23412e7192032354ad52e338d4fc280 | 566 | package harry.utils;
import javax.servlet.http.Cookie;
import javax.servlet.http.HttpServletRequest;
import org.springframework.util.StringUtils;
/**
*
* @author harry
*
*/
public class CookieUtil {
public static String getCookie(HttpServletRequest request, String name) {
Cookie[] cookies = r... | 18.866667 | 75 | 0.65371 |
79eea1052f219256b72148ba2641735f1c775857 | 2,159 | /**
*
*/
package com.unionpay.orderprocess;
import org.apache.log4j.Logger;
import com.interactiontimes.database.OrderStatus;
import com.pay.orderprocesschoose.OrderProcess;
import com.pay.utiles.OrderInfoHttpTransfer;
//import com.pay.utiles.XmlDocResolution;
import com.unionpay.unionpayinfo.UnionPayInfo;
import ... | 41.519231 | 144 | 0.794812 |
ac22adeecf429e0db155a01c031e91663a55c618 | 2,262 | package ru.job4j.collections.pro.map;
import java.util.Calendar;
/**
* Класс User3.
*
* @author Анастасия Гладун
* @since 24.07.2017
*/
public class User3 {
private String name;
private int children;
private Calendar birthday;
public User3(String name, int children, Calendar birthday) {
... | 51.409091 | 147 | 0.635279 |
a63458fe62a438eaf5eddb27a28a3635cd869ede | 52,987 | /*
* @(#)Cubes.java
* CubeTwister. Copyright © 2020 Werner Randelshofer, Switzerland. MIT License.
*/
package ch.randelshofer.rubik.cube;
import ch.randelshofer.math.IntMath;
import ch.randelshofer.rubik.CubeAttributes;
import ch.randelshofer.rubik.notation.Notation;
import ch.randelshofer.rubik.notation.Symbol;
im... | 39.631264 | 122 | 0.430653 |
cfaad11acdc190f8a1e77d5a24abf0106a823be4 | 3,043 | /*
* MIT License
*
* Copyright (c) 2017 Jeremy Wood, Elijah Poulos
*
* 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 ... | 40.039474 | 99 | 0.727571 |
eb6a564e33c74aac6e42ab7b85f7ed5a5ce77fad | 4,586 | package dk.statsbiblioteket.doms.transformers.fileobjectcreator;
import dk.statsbiblioteket.doms.transformers.fileobjectcreator.MuxFileChannelCalculator;
import dk.statsbiblioteket.util.FileAlreadyExistsException;
import jsr166y.ForkJoinPool;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.io.Buf... | 36.983871 | 111 | 0.603576 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.