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 |
|---|---|---|---|---|---|
ed82798a71efe22bd16dd4d645d136015dc36c92 | 32,610 | package com.example.music_player.ui;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.view.LayoutInflater;
import android.view.MenuInflater;
import android.view.MenuItem;
import android.view.View;
import android.view.ViewGroup;
import android.widget.... | 51.354331 | 256 | 0.538148 |
49edd98831e2c61be9acb5dafae14493f0681cba | 874 | package nerd.utopian.completablefuture.springboot;
import java.util.concurrent.Executor;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.concurrent.Thread... | 36.416667 | 81 | 0.83524 |
f6bf62493e487eba062cf1e362f9718aa12d8750 | 1,199 | package com.example.eokuu;
import android.app.Activity;
import android.content.Intent;
import android.content.pm.ResolveInfo;
import android.os.Bundle;
import android.provider.Settings;
import android.view.View;
import android.widget.Button;
import android.widget.Toast;
public class Ayarlar extends Activity {
Butto... | 27.25 | 70 | 0.766472 |
c36dd6ffd7c7a4a6ff2adfb32c5e2a248bd0a185 | 54,934 | /*
* Copyright (c) 2008-2019 Geode Systems LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or ag... | 39.634921 | 109 | 0.533094 |
9c73ace07f26feed4c8fb4a0e6c1d284cc256bc2 | 299 | package io.student.modules.datacenter.dao;
import org.apache.ibatis.annotations.Mapper;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import io.student.modules.datacenter.entity.CameraroomEntity;
@Mapper
public interface CameraroomDao extends BaseMapper<CameraroomEntity> {
}
| 23 | 71 | 0.799331 |
8d8b473fb5ea03c73abc5c67abb6290cb24af6db | 2,273 | package org.mapfish.print.attribute;
import org.mapfish.print.config.Configuration;
import org.mapfish.print.config.Template;
import org.mapfish.print.wrapper.PArray;
import org.mapfish.print.wrapper.PObject;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
impor... | 27.719512 | 107 | 0.603168 |
9f61ca9b6c0e11c57451c373f0efc669642913b1 | 4,518 | package controllers;
import java.util.ArrayList;
import java.util.Observable;
import algorithms.AbstractAlgorithm;
import algorithms.BinarisationAlgorithm;
import process.AbstractProcessAdapter;
import process.IProcessAdapter;
import process.ProcessThreadAdapter;
import process.ProcessWorkerAdapter;
im... | 31.375 | 166 | 0.747233 |
183f4bd9453e4b5944901568c9bc54392b8ede6e | 6,639 | package sk.bpositive.bcommon.firebase;
import android.content.ContentResolver;
import android.content.Context;
import android.content.pm.ApplicationInfo;
import android.content.pm.PackageManager;
import android.content.res.Resources;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android... | 31.023364 | 116 | 0.586534 |
092d237f71eef8369bffa978a4395b7d6b89f077 | 4,144 | /*
Copyright (c) 2012, Apps4Av Inc. (apps4av.com)
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 an... | 26.062893 | 765 | 0.572394 |
8548ce7f28513750a5b368ec911875abba249ef4 | 197 | public class Countdown {
// Counts down from 10 to 0, then prints "DONE!"
public static void main(String[] args) {
for (int i = 10; i >= 0; i--) {
System.out.println(i);
}
}
}
| 19.7 | 50 | 0.568528 |
0c018c5ba33128d1905387b7cafae89c7e959bae | 288 | package com.Stevedores.Stevedores.repository;
import com.Stevedores.Stevedores.dto.User;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
@Repository
public interface UserRepository extends JpaRepository<User, Integer> {
}
| 28.8 | 70 | 0.847222 |
636646c000f9e57070f1d1f4f090f06b7ee19063 | 2,809 | package ch.ethz.karto.map3d;
import java.awt.GraphicsDevice;
import java.awt.GraphicsEnvironment;
import java.awt.Toolkit;
import javax.media.nativewindow.AbstractGraphicsDevice;
import javax.media.opengl.GL;
import javax.media.opengl.GLCapabilities;
import javax.media.opengl.GLContext;
import javax.media.opengl.GLDr... | 30.204301 | 92 | 0.641153 |
6c244602286af7449cd962cf8d06a8190c7fca2c | 1,872 | package com.ultramixer.jtimezone.mac;
import com.ultramixer.jtimezone.JTimeZoneChangeListener;
import com.ultramixer.jtimezone.JTimeZoneProvider;
import org.joda.time.DateTimeZone;
import java.util.ArrayList;
import java.util.logging.Logger;
/**
* Created by TB on 10.04.15.
*/
public class MacJTimeZoneProvider imp... | 27.529412 | 115 | 0.725427 |
9c38ce4f0543542e6b4f0a5f7417b41e5bca808a | 1,441 | package com.danilov.supermanga.core.theme;
import android.content.Context;
import android.content.res.TypedArray;
import android.graphics.drawable.Drawable;
import android.support.annotation.AttrRes;
import android.util.TypedValue;
/**
* Created by Semyon on 21.03.2016.
*/
public class ThemeUtils {
public stat... | 35.146341 | 98 | 0.692575 |
e1f8ac26fd7c3c56fef60d7b650f5ec5c99897f3 | 1,635 | package com.sivc.webapp.controller;
import org.appfuse.model.User;
import org.appfuse.service.UserManager;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.InjectMocks;
import org.mockito.Mock;
import org.mockito.MockitoAnnotations;
import org.mockito.runners.MockitoJ... | 30.277778 | 87 | 0.727829 |
06671e4c8c2e7e79f253821c43fb1570240a2c86 | 678 | package ru.mytasks.models;
public class Sock {
private String color;
private int cottonPart;
private int quantity;
public Sock() {
}
public Sock(String color, int cottonPart, int quantity) {
this.setColor(color);
this.setCottonPart(cottonPart);
this.setQuantity(quantity);
}
public String getColo... | 15.767442 | 58 | 0.69764 |
6ee070af3f5275eb4a38157a78d1f07541446b2c | 488 | package ua.com.fielden.platform.sample.domain;
import com.google.inject.Inject;
import ua.com.fielden.platform.dao.CommonEntityDao;
import ua.com.fielden.platform.entity.annotation.EntityType;
import ua.com.fielden.platform.entity.query.IFilter;
@EntityType(TgModelYearCount.class)
public class TgModelYearCountDao ex... | 27.111111 | 105 | 0.79918 |
0cc92a635ab60167ef587d5415d64d385feeaa26 | 1,440 | package de.hft_stuttgart.sw.projectindoorapp.models.external;
/**
* Created by usman on 04-Dec-17.
*/
public class RssiSignal {
private Long id;
private double appTimestamp;
private double rssiSignalStrength;
private boolean averagedSignalStrength;
private WifiAccessPoint wifiAccessPoint;
p... | 23.606557 | 81 | 0.686111 |
4195a3ec41c1a81c36b7e77286610127ac44f3e1 | 918 | package org.dainst.chronontology.config;
import org.testng.annotations.BeforeMethod;
import org.testng.annotations.Test;
import java.util.Properties;
import static org.testng.Assert.assertEquals;
import static org.testng.Assert.assertTrue;
/**
* @author Daniel M. de Oliveira
*/
public class ElasticsearchDatastore... | 25.5 | 85 | 0.721133 |
82e7864f11b625845f6c4e476d8d84b8e8b1fb21 | 1,338 | package com.telecominfraproject.wlan.equipment.models;
import java.util.HashMap;
import java.util.Map;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.telecominfraproject.wlan.core.model.json.JsonDeserializationUtils;
public enum TunnelIndicator {
no(0L),
primary(1L),
secondary(2L),
... | 26.235294 | 98 | 0.617339 |
1c33640c893348a5863759b88df2995605b6a519 | 6,077 | package org.opensha.commons.geo;
/**
* This class encapsulates information describing a vector between two
* <code>Location</code>s. This vector is defined by the azimuth (bearing) from
* a point p1 to a point p2, and also by the horizontal and vertical separation
* between the points. Note that a <code>LocationVe... | 32.497326 | 79 | 0.7117 |
7c6f68a1b0d72010d76d9bf7023d3bd77ff3e0a0 | 4,500 | package com.sms.msgsend.utils;
import cn.hutool.core.util.StrUtil;
import cn.hutool.crypto.SecureUtil;
import cn.hutool.crypto.symmetric.AES;
import cn.hutool.crypto.symmetric.DES;
import cn.hutool.json.JSONObject;
import cn.hutool.json.JSONUtil;
import cn.hutool.json.XML;
import com.sms.msgsend.constants.SystemConst... | 30.201342 | 129 | 0.582222 |
cf005c1baa9b8624897a8aabe87830c40bc028ec | 1,101 | package com.example.android.tourguide;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ListView;
import java.util.ArrayList;
/**
* Created by benwong on 2016-07-09.
*/
public class E... | 29.756757 | 178 | 0.751135 |
67b2cbd6262c31bcf9fd1f203b5305dba01feb3a | 808 | package com.onevgo.springboot.security.entity;
import java.util.List;
public class SysRole {
private String role;
private String name;
private List<SysPermission> permissionList;
public SysRole() {
}
public SysRole(String role, String name) {
this.role = role;
this.name = na... | 18.790698 | 71 | 0.623762 |
4048dfb75bc4d7569aa81418f77d3ceb1113c44c | 2,691 | /*
* Copyright [2012-2015] PayPal Software Foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | 24.688073 | 104 | 0.643255 |
6c70f1bfe842dc4a278357f2f430ecf80914a36b | 630 | package io.ebean.annotation;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* Deprecated migrate to <code>@WhenModified</code>.
* <p>
* For a timestamp property that is set to the datetime when the... | 26.25 | 80 | 0.763492 |
9648894b4f06d49fe02c5de58cd3d2c2a67fe66b | 6,105 | package com.skytala.eCommerce.domain.content.relations.content.control.assocPredicate;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.Set;
import javax.servl... | 40.973154 | 169 | 0.807535 |
887e6ba870930ad1270c58d13dd81c89bf09adce | 2,740 | /*
* Made with all the love in the world
* by scireum in Remshalden, Germany
*
* Copyright by scireum GmbH
* http://www.scireum.de - info@scireum.de
*/
package sirius.kernel.health;
import sirius.kernel.nls.NLS;
import java.time.Instant;
import java.util.logging.Level;
/**
* Contains a log message passed fro... | 25.37037 | 110 | 0.633212 |
6d45651e786e2fb5a79a66cd09d3a9599183f401 | 1,349 | package com.xiaoyuzhuanqian.mvp.ui.activity.invitation.presenter;
import com.trello.rxlifecycle2.LifecycleProvider;
import com.trello.rxlifecycle2.android.FragmentEvent;
import com.xiaoyuzhuanqian.api.retrofit.BaseObserver;
import com.xiaoyuzhuanqian.api.retrofit.NewTransformerManager;
import com.xiaoyuzhuanqian.api.r... | 34.589744 | 91 | 0.761305 |
bdb8d27683460934ddeca946d84b37acb06a7eee | 2,311 | package org.bbs.apklauncher;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import android.annotation.TargetApi;
import android.app.Activity;
import android.content.Context;
import android.os.Build;
import android.util.Log;
import dalvik.system.DexClassLoader;
import dalvik.system.DexFi... | 25.677778 | 103 | 0.667676 |
9da685bca8763d2373a48201d3baee0d718a460d | 1,322 | package com.blackboard.www.controller;
import java.util.ArrayList;
import javax.servlet.http.HttpServletRequest;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.we... | 27.541667 | 82 | 0.776097 |
1d04db63d869827f99540d27b5169c2ecb0571de | 230 | package common;
public class EuclideanDistance implements DistanceFunction {
@Override
public double compute(double[] p, double[] q) {
return new org.apache.commons.math3.ml.distance.EuclideanDistance().compute(p, q);
}
}
| 20.909091 | 84 | 0.756522 |
82b3cf952cd10b8b27505a6553da40b3475b5801 | 1,751 | // Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/cloud/datastream/v1alpha1/datastream_resources.proto
package com.google.cloud.datastream.v1alpha1;
public interface OracleRdbmsOrBuilder extends
// @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1alpha1.OracleRdbms)... | 32.425926 | 95 | 0.712736 |
4c7ff3aba64dd48399c95447354514e91838c96e | 4,837 | package io.apigee.trireme.kernel.test;
import io.apigee.trireme.kernel.NodeVersion;
import org.junit.Test;
import static org.junit.Assert.*;
public class VersionTest
{
@Test
public void testOneDigit()
{
NodeVersion v = new NodeVersion("10");
assertEquals(10, v.getMajor());
assert... | 27.959538 | 86 | 0.567707 |
1c45d2f22736abc02fc0c5fe8bb47a99639ee6c5 | 4,934 | /*
* 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 writing, software distributed under t... | 33.337838 | 182 | 0.710174 |
d20306b15324f7d98d13a4c9ceb42ad1eeebb01e | 5,064 | /*
* 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 ... | 37.791045 | 116 | 0.67733 |
1406822c253d5be849a152ddc23dd70afc907fcf | 4,368 | /**
* Tencent is pleased to support the open source community by making TDW available.
* Copyright (C) 2014 THL A29 Limited, a Tencent company. 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... | 21.307317 | 93 | 0.690476 |
de19b2994c9458eee4fa75cfc572b36411f4475c | 5,903 | /*
* Marketing API
* Marketing API
*
* OpenAPI spec version: 1.3
*
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
package com.tencent.ads.model;
import com.google.gson.Gson;
import com.go... | 23.612 | 100 | 0.697611 |
c53bb264607483a6c68939cc4e492f8206136ee0 | 631 | package com.skytala.eCommerce.domain.order.relations.orderType.event.attr;
import com.skytala.eCommerce.framework.pubsub.Event;
import com.skytala.eCommerce.domain.order.relations.orderType.model.attr.OrderTypeAttr;
public class OrderTypeAttrAdded implements Event{
private OrderTypeAttr addedOrderTypeAttr;
private... | 25.24 | 87 | 0.81458 |
82ece60158d7a45cc720925c282838f2902c924c | 1,996 | package rocks.inspectit.server.util;
import org.apache.commons.lang.ArrayUtils;
import org.hibernate.Hibernate;
import org.hibernate.collection.internal.PersistentList;
import org.hibernate.collection.internal.PersistentMap;
import org.hibernate.collection.internal.PersistentSet;
import org.hibernate.collection.spi.Pe... | 23.482353 | 85 | 0.75501 |
68e9eefb7d38cfcf0ba0b2b563bcea349073980f | 1,802 | package ua.com.foxminded.division.maths;
import org.junit.jupiter.api.Test;
import java.util.ArrayList;
import java.util.List;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.core.Is.is;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.A... | 33.37037 | 87 | 0.645394 |
4a04787c35d2afed3c35846798c8d4d659e6009a | 2,385 | /**
* Copyright (c) 2016-present, RxJava Contributors.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in
* compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable l... | 27.732558 | 112 | 0.658281 |
42e23d298f33ede841bc84202dcab45a6d83ecce | 3,525 | package com.brainpg.teddystoy.activity;
import android.os.Bundle;
import android.support.v4.widget.DrawerLayout;
import android.support.v7.app.ActionBar;
import android.support.v7.app.ActionBarDrawerToggle;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.LinearLayoutManager;
import an... | 36.340206 | 147 | 0.693901 |
284a13ba669f24073044491a9bde9edf0ba9f87f | 1,162 | package junit.proxy;
import proxy.PacketQueue;
import proxy.UDPDatagram;
import junit.framework.TestCase;
public class TestPacketQueue extends TestCase {
PacketQueue queue;
public void setUp() {
queue = new PacketQueue();
}
public void testQueue() {
UDPDatagram packet... | 26.409091 | 71 | 0.567126 |
220e20bbd810ebc27aae8a801fdde0840382b390 | 1,263 | package com.xinfan.wxshop.business.vo;
import com.thoughtworks.xstream.annotations.XStreamAlias;
import com.xinfan.wxshop.business.util.XStreamCDATA;
@XStreamAlias("xml")
public class OutputMessage {
@XStreamAlias("ToUserName")
@XStreamCDATA
private String ToUserName;
@XStreamAlias("FromUserName")
... | 18.573529 | 58 | 0.707838 |
4ea0ec67a9bbf80298f5b96b4df96c5f23f3bda6 | 1,186 | package net.yoonaxes.auth.configuration.impl;
import eu.okaeri.configs.OkaeriConfig;
import eu.okaeri.configs.annotation.*;
import net.yoonaxes.auth.security.SecurityConfiguration;
@Names(
modifier = NameModifier.TO_LOWER_CASE,
strategy = NameStrategy.HYPHEN_CASE
)
public class PluginConfiguration ext... | 38.258065 | 145 | 0.75801 |
0fb6ad89500d592fbdb1459991ff49a62f4caf42 | 1,968 | package es.ucm.abd.practica2.controller;
import es.ucm.abd.practica2.dao.AbedemonDAO;
import es.ucm.abd.practica2.model.Abedemon;
import es.ucm.abd.practica2.model.AbedemonTableModel;
import java.util.List;
import javax.swing.DefaultComboBoxModel;
/**
* Controlador de los paneles de búsqueda
*
* @author Manuel M... | 29.818182 | 89 | 0.639736 |
c669272db7dc4f6dcb4032ed86a7092c3e5780a8 | 4,209 | package com.wnp.lqmall.activity;
import android.Manifest;
import android.annotation.SuppressLint;
import android.app.ListActivity;
import android.content.Intent;
import android.graphics.Color;
import android.net.Uri;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.v7.app.Ale... | 34.219512 | 252 | 0.741981 |
f5791696239dedacf07b42bcc373c190c34ac8ba | 895 | package dev.magicmq.pyspigot.event;
import dev.magicmq.pyspigot.managers.script.Script;
import org.bukkit.event.Cancellable;
import org.bukkit.event.Event;
import org.bukkit.event.HandlerList;
public class ScriptLoadEvent extends Event implements Cancellable {
private static final HandlerList handlers = new Hand... | 21.829268 | 67 | 0.688268 |
6c02ba355b0e85c6f9e3186310cfb55d7c3cea93 | 822 | package May2021PrepLeetcode;
public class _0073SetMatrixZeroes {
public static void main(String[] args) {
setZeroes(new int[][] { new int[] { 1, 1, 1 }, new int[] { 1, 0, 1 }, new int[] { 1, 1, 1 }, });
setZeroes(new int[][] { new int[] { 0, 1, 2, 0 }, new int[] { 3, 4, 5, 2 }, new int[] { 1, 3, 1, 5 }, });
}
... | 25.6875 | 107 | 0.519465 |
02c031791e556d7c28c2d6c3b2f93a0110c14376 | 437 | package com.github.thorbenkuck.netcom2.exceptions;
public class PipelineAccessException extends NetComRuntimeException {
public PipelineAccessException() {
}
public PipelineAccessException(String s) {
super(s);
}
public PipelineAccessException(String s, Throwable throwable) {
sup... | 21.85 | 69 | 0.704805 |
47dea4c11f830ab7af5d167b87edbb10e7f50592 | 2,958 | /*
* Copyright 2009-2014 PrimeTek.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to i... | 28.442308 | 91 | 0.620352 |
f4616908dddafce60bb517bc4e32c5c1ae0b188d | 3,319 | package com.github.pozo.game.server;
import com.github.pozo.game.server.model.DefaultGameModel;
import com.github.pozo.game.server.model.GameModel;
import com.github.pozo.game.server.model.objects.meta.Player;
import com.github.pozo.game.server.model.unit.time.TimeUnits;
import com.github.pozo.game.server.model.unit.t... | 31.018692 | 94 | 0.582706 |
285bf61c09aeabf228886f0cfae62b1174cff5d7 | 6,570 | package com.ming.biz.controller;
import com.ming.biz.service.ArticleService;
import com.ming.biz.utils.TransCodingUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.core.annotation.AuthenticationPrincipal;
import org.springframework.stereotype.Controller;
import or... | 27.375 | 95 | 0.611416 |
a2f55f73b0603808db95fc468b360f3375c7f346 | 30,858 | /*
* Copyright (C) 2019 Alberto Irurueta Carro (alberto@irurueta.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
*
* Unles... | 47.693972 | 112 | 0.672111 |
df864bec142ea1d0608498cf72a83a0efba62e05 | 876 | import maow.pojobuilder.PojoWriter;
import maow.pojobuilder.pojo.PojoObject;
public class Test {
public static void main(String[] args) {
// PojoObject object = new PojoObject.Builder().addField("field", "test").addField("array", new String[]{"test1","test2"}).build();
// object.to("json.json")... | 39.818182 | 139 | 0.597032 |
1d568be060c0387561dc7317ae29726e88544b5c | 7,982 | package org.iplantc.service.apps.model;
import org.apache.commons.collections.CollectionUtils;
import org.json.JSONArray;
import org.json.JSONObject;
import org.testng.Assert;
import org.testng.annotations.BeforeClass;
import org.testng.annotations.DataProvider;
import org.testng.annotations.Test;
/**
* Created wit... | 54.29932 | 214 | 0.701829 |
3b2a5248e4a387a61b9d8d91aec502ba0c3a5379 | 442 | package org.la4j;
import java.util.Arrays;
public final class V {
public static Vector v(double... values) {
return Vector.fromArray(values);
}
public static Iterable<Vector> vs(double... values) {
return Arrays.asList(
v(values).to(Vectors.BASIC),
v(values).to(Ve... | 20.090909 | 57 | 0.599548 |
37d5ed0e92f681d6d87a4215cc40a01faf2a213d | 1,365 | package com.beiing.baseframe.utils;
import java.text.NumberFormat;
import java.util.Locale;
/**
* Created by chenliu on 2016/5/19.<br/>
* 描述:
* </br>
*/
public final class NumberUtil {
private NumberUtil() {
}
/**
* 货币格式化。
* 给两个小数点,并且隔三个数加个逗号
*
* @param money
* @return
... | 16.058824 | 71 | 0.506227 |
6981525aa67edd1dde26ca8539f5cd589141dd3e | 8,673 | package service;
import helper.JSONHelper;
import helper.WSHelper;
import model.json.input.Coord;
import model.json.input.geocode.AddressResponse;
import model.json.input.place.Address;
import model.json.input.place.AddressPlace;
import model.json.input.place.PlaceResponse;
import model.json.input.velib.VelibResponse;... | 37.873362 | 164 | 0.62585 |
6d640751da0082d5b773a915466b78c03d0a78c2 | 6,853 | /*
* Copyright 2011 Mikhail Lopatkin
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agree... | 34.786802 | 112 | 0.572304 |
18cc9cf4927794e2abbbf731e84b86aec53ae253 | 610 | import java.util.Arrays;
public class Solution {
public void hanota(int[] A, int[] B, int[] C) {
int len = A.length;
System.out.println(len);
C = new int[len];
System.out.println(Arrays.toString(C));
System.arraycopy(A, 0, C, 0, len);
System.out.println(Arrays.toSt... | 22.592593 | 51 | 0.529508 |
175bb6530652b487a8732dc907521c158341ff02 | 4,949 | // Copyright 2018 The Bazel Authors. 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 appl... | 37.492424 | 98 | 0.653667 |
241254ebfa044c4d0cd7adbd40fe555b0e0977d4 | 713 | package me.apjung.backend.service.shop;
import me.apjung.backend.domain.shop.ShopSafeLevel;
import me.apjung.backend.domain.user.User;
import me.apjung.backend.dto.request.ShopRequest;
import me.apjung.backend.dto.response.ShopResponse;
import java.util.List;
public interface ShopService {
ShopResponse.Create cr... | 35.65 | 85 | 0.791024 |
a1d3f38719d24dada38e15fff9e541abe727d562 | 449 | // Copyright 2018 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.base;
import org.chromium.base.annotations.UsedByReflection;
/**
* Class only compiled into android app bundles but not into APKs.... | 29.933333 | 100 | 0.755011 |
9fd43de157a7b8beb30725452a145a736f0de2a6 | 13,212 | package com.ivanov.tech.profile.ui;
import java.util.ArrayList;
import android.app.ProgressDialog;
import android.content.Context;
import android.content.res.Resources.NotFoundException;
import android.database.Cursor;
import android.database.DataSetObserver;
import android.graphics.Bitmap;
import android.graphics.Bi... | 32.145985 | 158 | 0.645474 |
ba05b5d82d390af97ac43ff01b2afff422f3043b | 426 | package me.mrdaniel.npcs.catalogtypes.horsecolor;
import org.spongepowered.api.CatalogType;
import org.spongepowered.api.util.annotation.CatalogedBy;
import lombok.Getter;
import lombok.RequiredArgsConstructor;
@RequiredArgsConstructor
@CatalogedBy(HorseColors.class)
public class HorseColor implements CatalogType {
... | 26.625 | 57 | 0.830986 |
2a2d2eaee423de46897f652d212fbdba2a140229 | 2,590 | /*
* Copyright (C) Lightbend Inc. <https://www.lightbend.com>
*/
package play.mvc;
import akka.stream.IOResult;
import akka.stream.Materializer;
import akka.stream.javadsl.FileIO;
import akka.stream.javadsl.Sink;
import akka.util.ByteString;
import play.api.http.HttpConfiguration;
import play.core.parsers.Multipart... | 36.478873 | 101 | 0.599228 |
c6b2e22c7a79b98d8912162260a9c8a1c455c034 | 698 | class BullshitReturnDemo {
//定义特殊的返回值
public static final String ERROR_MSG = "Error:getHttpByPostBody exception";
public static String getHttpByPostBody(String url, String data) throws IOException{
Request request = Request.of(url).setBody(data).setConnectionTimeout(CONNECT_TIMEOUT).setReadTimeout(R... | 46.533333 | 123 | 0.700573 |
1b9817ab9c72816a442daca2d7dc23ebe736e5f4 | 5,328 | /**
* Copyright (C) 2002-2015 The FreeCol Team
*
* This file is part of FreeCol.
*
* FreeCol 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 2 of the License, or
* (at your option... | 23.575221 | 81 | 0.62988 |
b2d84d21a3e8dd9bee30d6f92198e8797e544342 | 245 | package ge.btu.lecture10.service;
import ge.btu.lecture10.DTO.comment.AddCommentInput;
import ge.btu.lecture10.DTO.comment.AddCommentOutput;
public interface CommentService {
AddCommentOutput addComment(AddCommentInput addCommentInput);
}
| 27.222222 | 65 | 0.832653 |
cd2aed5d39f4bf846cdb19a82b67de3e8564b519 | 10,503 | package notaql.engines.mongodb;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
import com.mongodb.BasicDBObject;
import com.mongodb.BulkWriteOperation;
import com.mongodb.DB;
import com.mongodb.DBCollection;
import com.mongodb.DBCu... | 23.444196 | 179 | 0.692374 |
8aefbf058864907019a8f191f65010814ddb7581 | 667 | package com.adaptris.mgmt.kubernetes.metrics;
import java.util.Properties;
import org.junit.jupiter.api.AfterEach;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
public class KubernetesMetricsComponentTest {
private KubernetesMetricsComponent component;
@BeforeEach
public void ... | 20.212121 | 63 | 0.730135 |
1a95c5fc6c81eb3c058bf977b0e01d40dc43a906 | 948 | package com.example.z.oldprojectgoogle.fragment;
import android.util.Log;
import android.view.Gravity;
import android.view.View;
import android.widget.TextView;
import static android.content.ContentValues.TAG;
/**
* Created by z on 2018/4/20.
*/
public class ApkPageFragment extends BaseFragment {
@Override
... | 23.121951 | 55 | 0.584388 |
1b56f42b0876a7aec4b08eecc0483d17378a5e66 | 487 | import java.util.ArrayList;
import java.util.List;
public class FizzBuzz_412 {
public List<String> fizzBuzz(int n) {
List<String> result = new ArrayList<>(n);
for (int i = 1; i <= n; ++i) {
StringBuilder sb = new StringBuilder();
if (i % 3 == 0) sb.append("Fizz");
... | 25.631579 | 51 | 0.50924 |
6b77d22618bf5a868b705a7220ef50f6ca474924 | 1,334 | package org.conqueror.cat.analysis;
import com.typesafe.config.ConfigFactory;
import org.conqueror.cat.config.KeywordAnalyzerConfig;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import static org.junit.Assert.*;
public class KomoranKeywordAnalyzerTest {
private KomoranKeywordAnalyzer... | 29 | 116 | 0.550225 |
e3456d60ffeffbce0d14b88b5ecfcf04c00becab | 1,494 | /*
535. Encode and Decode TinyURL
TinyURL is a URL shortening service where you enter a URL such as
https://leetcode.com/problems/design-tinyurl and it returns a short URL such as http://tinyurl.com/4e9iAk.
Design the encode and decode methods for the TinyURL service. There is no restriction on
how your encode/decod... | 34.744186 | 162 | 0.67336 |
d7d91670c737664ff9eea66b3cc84c766f8cc6e0 | 638 | package com.indignado.logicbricks.core;
import com.badlogic.ashley.core.Entity;
import com.badlogic.gdx.assets.AssetManager;
import com.indignado.logicbricks.utils.builders.LBBuilders;
/**
* @author Rubentxu.
*/
public abstract class EntityFactory {
protected String tag = this.getClass().getSimpleName();
p... | 22.785714 | 74 | 0.744514 |
9840a969ef199ece3a4a2f3b0c51a9f7b0f35370 | 477 | package com.qzing.ddd.classic.demo.domain.exchange.account.dto;
import lombok.Data;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.math.BigDecimal;
/**
* @author yangyanze
*/
@Data
public class WithdrawalDto {
/**
... | 16.448276 | 63 | 0.66457 |
4dac67d95622836cfd9d23f0651bf1fe29be5fb2 | 828 | package io.mdsl.utils;
import java.util.ArrayList;
import java.util.List;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
public class URITemplateHelper {
/*
public static void main(String[] args) {
String text = "Test string, with occurrences of {id}/{subid}.";
List<String> strarr = findTempla... | 25.875 | 78 | 0.716184 |
0904d401ec93364438de67a3fe5115e43ae8ab9a | 8,050 | package com.cocos2dj.module.base2d.framework.common;
import java.util.Arrays;
import java.util.Collection;
/**
* 缓存ArrayList<p>
*
* 基本功能与arrayList相同,在执行删除操作是,采用标记的方式一次性更新内容,
* 而非一个一个删除。<p><pre>
* Object temp = tempArray.beginRemove();//获取副本开始修改
* tempArray.keepElement(0);//保留元素0、1
* tempArray.keepElement(1);
... | 26.744186 | 75 | 0.561988 |
24cd409ce2e39838119bea83b6ba44f3f577c192 | 562 | package hu.ibello.demo.pages;
import hu.ibello.core.Name;
import hu.ibello.elements.WebElement;
import hu.ibello.search.By;
import hu.ibello.search.Find;
@Name("Registration page")
public class RegistrationPage extends AbstractPage {
private static final String url = "/clients/#registration";
@Find(by = By.... | 25.545455 | 67 | 0.725979 |
b5f159648424fd576894aee2bef29e6513a8a6d2 | 13,642 | /**
* Copyright (c) 2002-2013 "Neo Technology,"
* Network Engine for Objects in Lund AB [http://neotechnology.com]
*
* This file is part of Neo4j.
*
* Neo4j 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 Foundati... | 32.480952 | 112 | 0.582759 |
1175497686297aa234f1d0e807fea8a99ca0acb8 | 7,051 | package com.gutotech.narutogame.ui.adapter;
import android.app.Dialog;
import android.content.Context;
import android.graphics.Color;
import android.graphics.Typeface;
import android.graphics.drawable.ColorDrawable;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import and... | 40.994186 | 116 | 0.677634 |
880b10fb591e744c776cd59647aa08e178a1daf7 | 448 | package com.jeffdisher.membrane.store.connection;
import java.io.Closeable;
import com.jeffdisher.laminar.types.CommitInfo;
import com.jeffdisher.laminar.types.TopicName;
public interface IWritingConnection extends Closeable {
CommitInfo synchronousCreateTopic(TopicName name, byte[] code, byte[] arguments);
Comm... | 26.352941 | 82 | 0.803571 |
8f4b5221265cf9670086b9f0726296d043e70492 | 304 | package de.sebb767.pvs.helper;
/**
* Created by proj on 3/23/17.
*/
public class ThreadCountHelper {
public static int getCpuCount()
{
return Runtime.getRuntime().availableProcessors();
}
public static int getIdealThreadCount()
{
return getCpuCount() * 2;
}
}
| 17.882353 | 58 | 0.634868 |
2889a68c7c40c52b8fc8d97909f4f9a324fe4135 | 1,242 | /*
* Copyright (C) 2008-2013 VMware, 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 b... | 27 | 95 | 0.689211 |
2413d45141c608c0d3436e758e7af38361fc5083 | 49,721 | // ______________________________________________________
// Generated by sql2java - https://github.com/10km/sql2java-2-6-7 (custom branch)
// modified by guyadong from
// sql2java original version https://sourceforge.net/projects/sql2java/
// JDBC driver used at code generation time: com.mysql.jdbc.Driver
// templat... | 32.993364 | 167 | 0.623077 |
3d82fb492cc381930effaf265e8ad695a5bc3b86 | 1,879 | package org.udg.pds.todoandroid.fragmentPagerAdapter;
import android.content.Context;
import android.os.Bundle;
import androidx.annotation.Nullable;
import androidx.annotation.StringRes;
import androidx.fragment.app.Fragment;
import androidx.fragment.app.FragmentManager;
import androidx.fragment.app.FragmentPagerAdap... | 31.316667 | 123 | 0.710484 |
26f572eaddba2ad8fd6db48559245900c450f052 | 2,519 | package org.springframework.security.oauth2.provider.exchange;
import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.ExpectedException;
import org.junit.runner.RunWith;
import org.mockito.InjectMocks;
import org.mockito.Mock;
import org.mockito.runners.MockitoJUnitRunner;
import org.springframework.secu... | 33.586667 | 115 | 0.762604 |
5e7e22db3172180c7a587cb96c57ff4ee01bd399 | 3,731 | /*
* Copyright (c) 2018-2025, lengleng 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 ... | 33.612613 | 147 | 0.78692 |
0e5d05405c404de7aa3bac8af5e674a508872bcf | 5,149 | package ro.pub.cs.systems.eim.practicaltest01var08;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;
import android.widget.Toast;
public ... | 30.467456 | 118 | 0.694698 |
afbc5ed4a27a241a596b84264ff2df7ec80ba0e5 | 8,196 | /**
* I waive copyright and related rights in the this work worldwide through the CC0 1.0 Universal
* public domain dedication. https://creativecommons.org/publicdomain/zero/1.0/legalcode
*/
package gov.usgs.volcanoes.pensive.plot;
import gov.usgs.plot.data.SliceWave;
import gov.usgs.plot.data.Spectrogram;
import ... | 28.164948 | 96 | 0.698755 |
6b83c7069220d3c43614b01582d786fcbd64c304 | 1,342 | package org.openapi4j.parser.validation.v3;
import org.openapi4j.core.validation.ValidationResults;
import org.openapi4j.parser.model.v3.EncodingProperty;
import org.openapi4j.parser.model.v3.OpenApi3;
import org.openapi4j.parser.validation.ValidationContext;
import org.openapi4j.parser.validation.Validator;
import s... | 43.290323 | 137 | 0.802534 |
9c16eaea0dbea372eefc0af6e136de3212612bd3 | 3,449 | package com.waka.workspace.smalldianping.Activity.Main.Fragment;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.Toolbar;
import android.view.KeyEvent;
import android.view.MenuItem;
import android.view.View;
import android.widget.EditText;
import android.widg... | 28.270492 | 115 | 0.61699 |
9de11202ee573ce9eb8053798a7e783b6b717fa2 | 1,149 | package stallone.complex.io;
import stallone.api.complex.IComplexArray;
import stallone.api.algebra.*;
/**
*
* @author Martin Senne
*/
public class OutputUtil
{
public static String scalarToEasyString(IComplexNumber s)
{
return(scalarToEasyString(s.getRe(), s.getIm()));
}
public s... | 20.890909 | 82 | 0.48651 |
616f95a5f55c4cf69bc2c0e4dada2a80f2918f2c | 814 | package com.puresoltechnologies.javafx.preferences.serializers;
import com.puresoltechnologies.javafx.extensions.fonts.FontDefinition;
import com.puresoltechnologies.javafx.extensions.properties.PropertyDefinition;
import com.puresoltechnologies.javafx.preferences.PreferencesSerializer;
public class FontDefinitionPre... | 33.916667 | 101 | 0.815725 |
44f2da6db1e64222678b4ad0a48fc9498858d0ef | 5,101 | package frc.team1138.robot;
import edu.wpi.first.wpilibj.Joystick;
import edu.wpi.first.wpilibj.buttons.JoystickButton;
import frc.team1138.robot.commands.ClearStickyFaults;
import frc.team1138.robot.commands.CollectCubeRight;
import frc.team1138.robot.commands.CycleArm;
import frc.team1138.robot.commands.EjectCube;
i... | 36.697842 | 104 | 0.757891 |
db2caf5b443720c1645ba6677f34ad4690e874b2 | 5,255 | /**
* The MIT License
* Copyright (c) 2014 Benoit Lacelle
*
* 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,... | 31.094675 | 115 | 0.682969 |
5548b82d2f1bc1d50cc937605231ace17b087aa4 | 5,545 | /*
* Copyright (C) 2008 The Guava Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | 39.326241 | 119 | 0.8 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.