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 |
|---|---|---|---|---|---|
bb750dbcd0692fcd64f6386c077445493188d0e6 | 1,816 | /**
* Methods of Mass Destruction. Trendy new algorithms with a focus on
* efficiency and accuracy.
*
* @author me
* @version 0.0.1
*/
public class MMD {
/**
* Adds a sudden cry or remark, especially expressing surprise,
* anger, or pain to the string.
*
* @param input the original string to u... | 17.295238 | 70 | 0.525881 |
56977ec3ae28f438b52b5b3845d5e894660d322a | 3,186 | package org.kuska.weatherapp.injection;
import org.kuska.weatherapp.BuildConfig;
import org.kuska.weatherapp.networking.WeatherDataManager;
import org.kuska.weatherapp.networking.WeatherDatabaseService;
import java.io.File;
import java.io.IOException;
import javax.inject.Singleton;
import dagger.Module;
... | 33.536842 | 109 | 0.583804 |
6cd54ca9a06ed10f7f34c01f726fcd9bd316788a | 383 | package at.favre.lib.hood;
import at.favre.lib.hood.interfaces.HoodAPI;
import at.favre.lib.hood.noop.HoodNoop;
final class HoodFactory implements HoodAPI.Factory {
@Override
public HoodAPI createHoodApi() {
return new HoodNoop();
}
@Override
public HoodAPI.Extension createHoodApiExtensio... | 22.529412 | 55 | 0.710183 |
383d1228eaebd3d1c65d21d62c6863c75dba5d1e | 7,598 | /*
* VIVO Proxy API
* Proxy API for VIVO Data Manipulation
*
* OpenAPI spec version: 1.0.0
* Contact: vivo@uqam.ca
*
* 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 ca.uqam.tool.vivop... | 30.031621 | 163 | 0.723875 |
3c693ae466b8e9b8b70e8ba6a6d0a01fbec89a54 | 3,250 | package com.github.cjqcn.htty.core.netty.handler;
import com.github.cjqcn.htty.core.common.ExceptionHandler;
import com.github.cjqcn.htty.core.dispatcher.HttyDispatcher;
import com.github.cjqcn.htty.core.http.BasicHttyRequest;
import com.github.cjqcn.htty.core.http.BasicHttyResponse;
import com.github.cjqcn.htty.core.... | 37.790698 | 93 | 0.710769 |
41c1d538bb24fa7d4c3c37272e3598c8988357d7 | 4,764 | /*-
* ========================LICENSE_START=================================
* ids-comm
* %%
* Copyright (C) 2019 Fraunhofer AISEC
* %%
* 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
... | 32.630137 | 86 | 0.693955 |
bcbb0f3a76e5adbe3471e2df6d7bacf98bccbcf0 | 3,008 | package gui.test.Bena.WF;
import org.openqa.selenium.WebDriver;
import org.testng.annotations.BeforeClass;
import org.testng.annotations.BeforeMethod;
import org.testng.annotations.Test;
import com.shaft.gui.browser.BrowserFactory;
import com.shaft.gui.browser.BrowserFactory.BrowserType;
import gui.pageObj... | 35.388235 | 127 | 0.751995 |
2b633dbba6c756f10a0db8bd1b31c604796516a2 | 314 | package com.infectedbytes.carbon.controllers;
/**
* Additional input via vectors. Mostly used for motion sensing, like rotational orientation and translational acceleration. Not supported
* by most controllers.
*
* @author Henrik
*
*/
public enum CarbonVector {
ACCELEROMETER, GYROSCOPE, EXTRA1, EXTRA2
}
| 24.153846 | 138 | 0.767516 |
10eb44ed0fe25f26df772c146fc3a195631f170f | 166 | package strategy;
public class ConcreteStrategyB extends Strategy{
@Override
public void algorithmInterface() {
System.out.println("算法B实现");
}
}
| 18.444444 | 48 | 0.692771 |
1a44afad2d24605193af46331cdf39f092683e2b | 6,515 | /*
Copyright 2015 Ant Kutschera
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 w... | 33.410256 | 152 | 0.747352 |
51c42d66719467a86f99c62446f2348a7c328d7e | 384 | package fr.jmini.txtlinter.cli;
import com.selesse.jxlint.Jxlint;
import fr.jmini.txtlinter.rules.TxtLinterRules;
import fr.jmini.txtlinter.settings.TxtLinterProgramSettings;
public class Main {
public static void main(String[] args) {
Jxlint jxlint = new Jxlint(new TxtLinterRules(), new TxtLinterProgramSettin... | 27.428571 | 92 | 0.778646 |
c82d86a424f870793cdb27cb0e5eef9d7dac0361 | 1,950 | package com.org.lob.project.service;
import static org.assertj.core.api.Assertions.assertThat;
import static org.mockito.ArgumentMatchers.any;
import static org.mockito.Mockito.when;
import java.util.Optional;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.e... | 29.545455 | 102 | 0.801538 |
19fc9be73c1afeff03ab0f0e8fe4ba1b193249ba | 1,393 | package de.hepisec.taglib.cms;
import de.hepisec.taglib.cms.util.CMSUtil;
import java.io.IOException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.jsp.JspException;
import javax.servlet.jsp.PageContext;
import javax.servlet.jsp.tagext.SimpleTagSupport;
/**
*
* @author Hendrik Pilz
*/
public c... | 26.788462 | 84 | 0.644652 |
2db1ba43d7f010580f8e250646377cb6c1122d23 | 142 | package com.example.framework.mvvm.ui.feed.opensource;
public interface OpenSourceNavigator {
void handleError(Throwable throwable);
}
| 17.75 | 54 | 0.795775 |
2896ae901c2696aa53ace5bee96929d21ac78438 | 175 | package com.moonce.blog.doman;
/**
* 存储 Akismet 或手工审核的评论是否为垃圾评论的判断结果
* meta_id:自增唯一 ID
* comment_id:评论 ID
* meta_key:键名
* meta_value:键值
*/
public class CommentMeta {
}
| 14.583333 | 34 | 0.714286 |
cdf502dc31924e26a054c8aaba65b68b35e37e59 | 6,416 | package myPackage;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.util.Vector;
import javax.swing.ImageIcon;
import javax.swing.JButton;
import javax.swing.JLabel;
import javax.... | 29.703704 | 94 | 0.687812 |
c712515ceafc15e7baf5346f27521e2a549022c8 | 2,900 | package DataStructure.tree.binaryTree.ertyuygf;
import DataStructure.tree.binaryTree.binaryTreeRealize.BinaryTreeImpl;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.Stack;
import java.util.stream.Collectors;
/**
* @author liujun
* @versio... | 29.591837 | 130 | 0.517241 |
c4887f8b2e4dbfd65c949e05229800a883959091 | 158 | package motivating.queue;
public class QueueNode {
public int value;
public QueueNode next;
public QueueNode(int value) {
this.value = value;
}
}
| 12.153846 | 30 | 0.708861 |
8da92d0855e2884472eb8dc7b08ebbe627063cc3 | 1,109 | /* Copyright 2007 Niclas Hedhman.
*
* 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... | 32.617647 | 95 | 0.759243 |
59fa1385897f87f4ec0e432926e424fbd6e1674a | 1,150 | package api.theVelopers.sas.converter;
import javax.persistence.AttributeConverter;
import javax.persistence.Converter;
import org.springframework.data.convert.ReadingConverter;
import org.springframework.data.convert.WritingConverter;
import api.theVelopers.sas.enumeration.TipoUsuario;
import static api.theVeloper... | 19.166667 | 85 | 0.741739 |
b23988fd5576a3e2d280a27a87c0a1ce57c7804c | 671 | package com.mapsindoors.stdapp.condeco;
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
import java.util.List;
public class CondecoBookingResult
{
@SerializedName("bookings")
@Expose
private List<CondecoBooking> bookings = null;
private String externalId;... | 21.645161 | 60 | 0.701937 |
54de94ce09232a9d0289df8019c66a6fb81bb26e | 927 | package io.split.engine.matchers;
import io.split.engine.evaluator.EvaluationContext;
import io.split.engine.evaluator.Evaluator;
import java.util.Map;
/**
* A matcher that matches all keys. It returns true for everything.
*
* @author adil
*/
public final class AllKeysMatcher implements Matcher {
@Override
... | 22.609756 | 135 | 0.642934 |
070b936e632e3d59a8b57bfddad7df81336b4d1d | 879 | import java.util.Scanner;
public class sumin2Darr{
private static final Scanner in = new Scanner(System.in);
public static void main(String[] args){
int[][] m = getArray();
printMat(m);
System.out.println(sum(m));
}
public static int[][] getArray() {
int[][] m = new in... | 22.538462 | 61 | 0.41752 |
a88bb1d609fea57d7690248b37a88e83c59ee60f | 513 | package org.n3r.eql;
import org.junit.BeforeClass;
import org.junit.Test;
import java.util.List;
import static org.hamcrest.CoreMatchers.equalTo;
import static org.junit.Assert.assertThat;
public class SingleColumnListTest {
@BeforeClass
public static void beforeClass() {
new Eql("mysql").execute();... | 21.375 | 57 | 0.668616 |
ba81e2efb0c7adad7d967743aecc75f05d34d36b | 6,906 | package io.smalldata.ohmageomh.surveys.domain.survey.prompt;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
import name.jenkins.paul.john.concordia.schema.NumberSchema;
import name.jenkins.paul.john.concordia.schema.Schema;
import io.smalldata.ohmageomh.surve... | 33.043062 | 120 | 0.585578 |
5085280c48a0583fe1c2f5bc505496638a0a3dc2 | 3,090 | package com.decompiler.bytecode.analysis.loc;
import java.util.Collection;
import java.util.Map;
import java.util.Set;
import com.decompiler.entities.Method;
import com.decompiler.util.collections.MapFactory;
import com.decompiler.util.collections.SetFactory;
import com.decompiler.util.collections.SetUtil;
/*
* The... | 39.615385 | 125 | 0.685113 |
cefcb042be525c4d93455f451a517ac74e6efe26 | 2,169 | package org.orienteer.core.method;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import org.apache.wicket.behavior.Behavior;
import org.orienteer.core.component.BootstrapType;
import org.orienteer.core.c... | 30.549296 | 98 | 0.745044 |
dba01afe041098fee065a9af3db4b655dbed0194 | 121 | package gui.dialogitems;
import javafx.scene.control.ToggleGroup;
public class OmRadioGroup extends ToggleGroup {
}
| 15.125 | 48 | 0.801653 |
85df3c106d17aaa0da6b7bb83a0a30b88a9d958c | 160 | package spaceattack.framework.ecs;
import spaceattack.framework.GameIO;
public interface System
{
void execute(EntitySystem es, GameIO io, double delta);
}
| 17.777778 | 57 | 0.79375 |
fcb1e60c6264410ca5ccea83023c75f674cc76b2 | 9,989 | package com.hxts.sync.build;
import java.lang.reflect.Field;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
im... | 28.621777 | 109 | 0.649715 |
bebe8de77b108dc8e377ec8c1bb999111f12458e | 5,026 | package com.techhounds.lib.hid;
import java.util.ArrayList;
import java.util.HashMap;
import com.techhounds.Robot;
import edu.wpi.first.wpilibj.GenericHID.RumbleType;
import edu.wpi.first.wpilibj.Joystick;
import edu.wpi.first.wpilibj.smartdashboard.SmartDashboard;
public class ControllerMap {
private HashMap<In... | 28.078212 | 103 | 0.682451 |
d6d1ecc85c3d635ae0fad7f6c422d4cfe7a0ba50 | 3,129 | package com.bdp.tx.netty.service.impl;
import com.alibaba.fastjson.JSONObject;
import com.bdp.tx.commons.utils.task.ConditionUtils;
import com.bdp.tx.commons.utils.task.IBack;
import com.bdp.tx.commons.utils.task.Task;
import com.bdp.tx.control.service.TransactionControlService;
import com.bdp.tx.framework.utils.Socke... | 27.208696 | 81 | 0.717482 |
4fa0637bb8e6e1d797a155f0b2f3e02642c90d99 | 2,622 | // Licensed to Cloudera, Inc. under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. Cloudera, Inc. licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may not use this f... | 27.3125 | 78 | 0.713577 |
483112d4c559359c57abc048cf248e194e119813 | 3,527 | package com.ramostear.unaboot.web;
import org.springframework.beans.propertyeditors.CustomDateEditor;
import org.springframework.data.domain.PageRequest;
import org.springframework.data.domain.Pageable;
import org.springframework.data.domain.Sort;
import org.springframework.http.HttpStatus;
import org.springframework.... | 30.669565 | 122 | 0.683584 |
4fd7182cd3f866f1911ad233c646d40bca038a12 | 39,298 | /*
* Copyright 2017-2021 original 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agr... | 44.505096 | 247 | 0.456028 |
24030ac728082951e2e9da183edd89ad4ac7b45e | 1,634 | package com.imageloader.adapter;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import com.imageloader.R;
import java.util.List;
/**
* Created by wangzhiguo on 15/8/31.
*/
public class RecyclerAdapter extends RecyclerVie... | 28.172414 | 116 | 0.659731 |
bee689eb337d495e414d551baae8ade39a5e1c7f | 2,731 | /**
* Copyright 2005-2014 The Kuali Foundation
*
* Licensed under the Educational Community 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.opensource.org/licenses/ecl2.php
*
* Unless required by a... | 31.755814 | 125 | 0.755767 |
b0d1d1083a85947b58a5989194dfad0aa55da1e4 | 1,384 | //
// ========================================================================
// Copyright (c) 1995-2019 Mort Bay Consulting Pty. Ltd.
// ------------------------------------------------------------------------
// All rights reserved. This program and the accompanying materials
// are made available under the ter... | 27.68 | 76 | 0.565029 |
dfe46447ab0547c3ff5a5bf36c7b7b87d84bef9f | 3,462 | /*
* Sleuth Kit Data Model
*
* Copyright 2013 Basis Technology Corp.
* Contact: carrier <at> sleuthkit <dot> 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.a... | 28.85 | 144 | 0.703351 |
97c204d9b804876ca72682ed1714d7d62a570180 | 2,548 | /**
* Copyright (C) FuseSource, Inc.
* http://fusesource.com
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by... | 23.163636 | 75 | 0.620879 |
a964cc31118e2ed6d148f956dc93a301dcbaed99 | 323 | package com.github.ticherti.parser.repository;
import com.github.ticherti.parser.model.ParsedPage;
import java.util.List;
public interface Repository {
void create(ParsedPage page);
ParsedPage read(String url);
void update(ParsedPage page);
void delete(String url);
List<ParsedPage> getAll();... | 17.944444 | 51 | 0.733746 |
db737e09a5e95b8448e30df14383a55f1eb6fff0 | 13,158 | /*
* Copyright (c) 2011, The Broad Institute
*
* Permission is hereby granted, free of charge, to any person
* obtaining a copy of this software and associated documentation
* files (the "Software"), to deal in the Software without
* restriction, including without limitation the rights to use,
* copy, modify, me... | 52.214286 | 173 | 0.662031 |
242aec0ca5802708743a8fda6b38ebe1bf2fc9a7 | 2,239 | package com.myedu.project.system.domain;
import com.myedu.framework.aspectj.lang.annotation.Excel;
import com.myedu.framework.web.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
/**
/**
* 组合数据详情对象 yun_system_group_data
*
* @author m... | 20.171171 | 71 | 0.586423 |
c5dea1f9dba0bd88a98a0b7b78298abcdc632c29 | 7,182 | package com.example.instagramtake2.fragments;
import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.support.v4.widget.SwipeRefreshLayout;
import android.support.v7.widget.Lin... | 39.245902 | 132 | 0.614731 |
bfaa3d45153d61eb9df37016cbf3c9292441934e | 6,819 | package com.stylefeng.guns.rest.modular.order.service;
import com.alibaba.dubbo.config.annotation.Reference;
import com.alibaba.dubbo.config.annotation.Service;
import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.stylefe... | 34.095 | 102 | 0.639097 |
13291f66949ff60b4357b9b021e1c6181289144c | 7,763 | package com.diozero.internal.provider.pi4j;
/*
* #%L
* Organisation: mattjlewis
* Project: Device I/O Zero - pi4j provider
* Filename: RaspiGpioBcm.java
*
* This file is part of the diozero project. More information about this project
* can be found at http://www.diozero.com/
* %%
* Cop... | 55.848921 | 83 | 0.619606 |
054842fc1a588ac777b9cbcb2c9bd8f6e1934ed6 | 2,622 | package com.zx.sms.common;
import io.netty.channel.Channel;
import io.netty.channel.ChannelFuture;
import io.netty.util.concurrent.*;
/**
* A skeletal {@link ChannelFuture} implementation which represents a
* {@link ChannelFuture} which channel is error,such as : not connected,channel writable is false,and so on.
... | 22.603448 | 110 | 0.634249 |
678729a8de8d2229171eddb2ed656fe4c3a862cb | 11,814 | package com.armueller.fluxytodo.models;
import com.armueller.fluxytodo.actions.DataBundle;
import com.armueller.fluxytodo.actions.TodoAction;
import com.armueller.fluxytodo.actions.ViewAction;
import com.armueller.fluxytodo.busses.ActionBus;
import com.armueller.fluxytodo.busses.DataBus;
import com.armueller.fluxytodo... | 38.990099 | 100 | 0.579736 |
761eaa14abb308b397a49b6a9c0be9fbe4d54646 | 5,198 | package com.liux.android.util;
import org.junit.Test;
import static org.junit.Assert.assertArrayEquals;
import static org.junit.Assert.assertEquals;
import com.liux.android.test.RobolectricTest;
public class TextUtilTest extends RobolectricTest {
@Test
public void MD5() {
assertEquals("d41d8cd98f00... | 33.753247 | 189 | 0.685071 |
531373b63c29c34af73e042bbc345b88d5ee7b9d | 1,874 | // SPDX-FileCopyrightText: 2022 RTE FRANCE
//
// SPDX-License-Identifier: Apache-2.0
package org.lfenergy.compas.sct.commons.dto;
import org.junit.jupiter.api.Test;
import org.lfenergy.compas.scl2007b4.model.THitem;
import java.time.LocalDateTime;
import java.util.UUID;
import static org.junit.jupiter.api.Assertion... | 32.310345 | 79 | 0.657951 |
091ab876e7545ba501fd91757916dcd18a6ce089 | 7,644 | /*
* Copyright 2021 Red Hat, Inc. and/or its affiliates
* and other contributors as indicated by the @author tags.
*
* 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.apach... | 42.466667 | 199 | 0.724097 |
a31ed037feb224b75ed61237d9354247246331b4 | 16,957 | /*
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 not use this f... | 45.339572 | 136 | 0.643156 |
bae35118b1fd3c0468e1d206ecbd0e382dbde40b | 15,100 | /**
* Copyright 2007-2015, Kaazing Corporation. 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 require... | 30.139721 | 128 | 0.656026 |
c1ba2b6a3b2f82872f9477f2b388adf3175b1ec7 | 7,112 | // ============================================================================
// Copyright (C) 2006-2018 Talend Inc. - www.talend.com
//
// This source code is available under agreement available at
// https://github.com/Talend/data-prep/blob/master/LICENSE
//
// You should have received a copy of the agreement
// al... | 31.056769 | 122 | 0.607705 |
44721f6af2159aebefaf231c2c9c2ea0d47c2ef2 | 16,817 | /*
* JBoss, Home of Professional Open Source
* Copyright 2009, Red Hat Middleware LLC, and individual contributors
* as indicated by the @author tags.
* See the copyright.txt in the distribution for a
* full listing of individual contributors.
* This copyrighted material is made available to anyone wishing to use... | 50.960606 | 182 | 0.792948 |
946633605648e5edf5b18122ee7ae87329ff2670 | 40,703 | /*
* USE - UML based specification environment
* Copyright (C) 1999-2010 Mark Richters, University of Bremen
*
* 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 2 of the
* Li... | 26.14194 | 91 | 0.640346 |
bf9070add54ff7943b115a8b136dbeee0a42af47 | 5,981 | package net.ims.jcms.extras;
import net.ims.jcms.*;
import java.io.FileNotFoundException;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.text.SimpleDateFormat;
import javax.naming.NamingException;
import javax.servlet.ServletContext;
/**
* Extends Record to contain the data for a single payme... | 28.079812 | 141 | 0.676476 |
064323608e74cd392ccb88abadc9b93a6d0213bc | 4,926 | /*
* Copyright (c) 2021 The lambda4j 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... | 41.394958 | 120 | 0.703004 |
5a4168248b828015bbcac13a70fcf0f14d3dda01 | 414 | public class ForLoops {
/*
* For loops work just like while loops, but with everything
* you need to manage the loop all in one place
*/
public static void main(String[] args) {
// i = i + 1 can be written as i++
// i = i - 1 can be written as i--
for( int i = 0; i < 100; i--){
if(i % 2 == 0){
System... | 20.7 | 60 | 0.555556 |
cae9dd2bf8be863d930bd7f89ade4c0f2baf8c38 | 220 | package com.todo.client;
/**
* A routing function that matches all todo items.
*/
public class ToDoRoutingAll implements ToDoRoutingFunction {
@Override
public boolean matches(ToDoItem item) {
return true;
}
}
| 15.714286 | 60 | 0.740909 |
21776137f479d27834d5b86030c102991f20fb9c | 2,817 | package org.tahom.repository.dao;
import java.util.List;
import org.sqlproc.engine.SqlControl;
import org.sqlproc.engine.SqlRowProcessor;
import org.sqlproc.engine.SqlSession;
import org.tahom.repository.model.Player;
@SuppressWarnings("all")
public interface PlayerDao {
public Player insert(final SqlSession sqlSes... | 37.56 | 139 | 0.781328 |
edcf3131515b26fc882a7c704d81b3a9557adefb | 9,584 | package com.gameplaycoder.thunderjack.players;
import android.support.constraint.Guideline;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TextView;
import com.gameplaycoder.thunderjack.cards.Card;
import com.gameplaycoder.thunderjack.utils.cardsTweener.CardsTweener;
import jav... | 38.645161 | 102 | 0.406407 |
be821e8d8e3557317a6ffc712ce74f4a54d6dcb5 | 2,078 | /*
* Copyright (c) 2020 Dario Lucia (https://www.dariolucia.eu)
*
* 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 re... | 32.984127 | 101 | 0.714148 |
32d19404d3b9197eb236d10bc85a105cc2afc974 | 4,561 | /*
* Created on Wed Sep 30 2020
*
* Copyright (c) storycraft. Licensed under the MIT Licence.
*/
package sh.pancake.launcher;
import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.lang.reflect.Method;
import java.net.URL;
import java.util.Optional;
import java.util.ServiceLoader... | 35.632813 | 147 | 0.696558 |
39f9774c3934b22949b3d5c70fe73a1e3fa8154a | 746 | package com.applicaster.plugin.player.dirtvision;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import com.applicaster.jwplayerplugin.JWPlayerActivity;
import com.applicaster.plugin_manager.playersmanager.Playable;
public class DIRTVisionPlayerActivity extends JWPlayerActiv... | 32.434783 | 80 | 0.77748 |
e2f0e4e8a42f002d58b4e28a813fcd51b77cb9b1 | 6,302 | /*******************************************************************************
* Copyright 2016 Elix_x
*
* 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/l... | 35.011111 | 188 | 0.746747 |
896052dfa79a4ddcf30d42f43636112a7def4235 | 447 | package cn.ubuilding.dolphin.servlet.security;
import org.springframework.stereotype.Service;
/**
* @author Wu Jianfeng
* @since 16/3/2 08:36
* // TODO 登录模块接入SSO
*/
@Service
public class DolphinUserCas {
public User getUser(String account, String password) {
if ("parker".equals(account) || "wjf".equ... | 22.35 | 79 | 0.662192 |
3d52ace0f84b5786182c94313c41c64c810b5d52 | 700 | package com.snowcattle.game.service.net.http;
import com.snowcattle.game.service.net.SdNetConfig;
import org.jdom2.DataConversionException;
import org.jdom2.Element;
/**
* Created by jiangwenping on 2017/7/3.
*/
public class SdHttpServerConfig extends SdNetConfig{
private int handleThreadSize;
public voi... | 25.925926 | 89 | 0.74 |
065cff36eb4cd365eb9c1122fe2586e05c34c339 | 556 | package com.l1.service;
import java.util.List;
import java.util.Map;
import com.l1.entity.Inventory;
public interface InventoryService {
public List<Inventory> find(Map<String, Object> map);
public Inventory findById(Integer id);
public Long getTotal(Map<String, Object> map);
public Integer ... | 22.24 | 70 | 0.730216 |
7f9cbee3276d4e3351dff0032aff2cdac1ac5676 | 13,147 | package club.map.core.model;
import club.map.core.util.BeanUtil;
import club.map.core.util.StringUtil;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import java.io.*;
import java.util.*;
/**
* TODO:此处继承了HashMap后无法自动注入了
* Created by zero-mac on 16/6/... | 25.982213 | 106 | 0.529246 |
4a5bd7448ad5f9e08dd596cfdc31964504b21968 | 1,101 | public class HW10 {//내 풀이
public static void main(String[] args) {
/* 2개의 배열을 만든다.
하나는 과일을 담는 장바구니 배열
하나는 해당 과일의 개수가 들어있는 배열이다.
사과 5, 귤 3, 오렌지 5, 수박 2, 메론 3, 포도 4개를 배열로 표현하고
적당한 값을 매겨서 합산 가격을 출력하도록 프로그래밍 하시오. */
//1.2개의 배열을 만든다
//2.과일 담는 배열, 갯수 배열
//... | 21.588235 | 59 | 0.415985 |
82206844133cdd747e094ede8b9bbff09997fd6e | 286 | package app.ccb.services;
import javax.xml.bind.JAXBException;
import java.io.IOException;
public interface BankAccountService {
Boolean bankAccountsAreImported();
String readBankAccountsXmlFile() throws IOException;
String importBankAccounts() throws JAXBException;
}
| 20.428571 | 56 | 0.793706 |
7f33dcd3751ff22175e0ca6605ca5b8865361ffb | 1,923 | package com.adaptris.core.json.jslt;
import static org.apache.commons.lang3.StringUtils.isEmpty;
import java.util.Collections;
import java.util.Map;
import java.util.regex.Pattern;
import java.util.stream.Collectors;
import com.adaptris.core.AdaptrisMessage;
import com.fasterxml.jackson.databind.JsonNode;
import com.t... | 32.59322 | 100 | 0.73843 |
a3e6bf51a391dc50c6e224355f13cd3b9e6c2f68 | 1,739 | package com.lostagain.JamGwt.InventoryObjectTypes;
import com.google.gwt.user.client.ui.PopupPanel;
import com.lostagain.Jam.Interfaces.hasCloseDefault;
import com.lostagain.Jam.Interfaces.PopupTypes.IsInventoryItemPopupContent;
import com.lostagain.JamGwt.JargScene.SceneObjects.Interfaces.isInventoryItemImplementatio... | 19.10989 | 133 | 0.649224 |
b8585f6627c7b27c8972b3bc0f34687d036d90e6 | 258 | package br.com.zupacademy.gabriel.proposta.biometry;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
@Repository
public interface BiometryRepository extends JpaRepository<Biometry, Long> {
}
| 25.8 | 75 | 0.844961 |
f74c93c3144cff42481f83708a6c85495a45a5a9 | 286 | /*
* */
package com.synectiks.process.common.plugins.cef.parser;
public class ParserException extends Exception {
public ParserException(String msg) {
super(msg);
}
public ParserException(String msg, Throwable throwable) {
super(msg, throwable);
}
} | 19.066667 | 61 | 0.674825 |
45866336df79882f64f45601a7da67ddb21756a3 | 183 | package org.aksw.dcat_suite.service;
import com.google.common.util.concurrent.Service;
public interface ServiceInstance {
Service getService();
ServiceConfig getConfig();
}
| 20.333333 | 49 | 0.775956 |
a58514ed38c8d2fc0311f91865c4c4975d65fa72 | 3,515 | package br.com.zupacademy.proposta.model;
import java.util.ArrayList;
import java.util.List;
import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.pers... | 30.301724 | 128 | 0.795733 |
fb19c7dc1050751a458ad75fff7dc5e3c600192b | 341 | package me.ilvc.all.novel.controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
/**
* <p>
* 前端控制器
* </p>
*
* @author iLvc
* @since 2019-11-12
*/
@RestController
@RequestMapping("/spider-novel-model")
public class SpiderNovel... | 16.238095 | 62 | 0.739003 |
594cbe0531bfbd9215345393dd1c6404fef1592c | 406 | package usa.cactuspuppy.PVNBot.utils.discord;
import net.dv8tion.jda.core.EmbedBuilder;
import net.dv8tion.jda.core.entities.Message;
public class DiscordLogger {
public static boolean logTextCommand(long guildID, String logChannel, String msg) {
return true;
}
public static boolean logTextComman... | 27.066667 | 95 | 0.743842 |
c6772aeebe27dd270073cde0f1951705f8e3ef66 | 766 | package com.hankz.util.dbutil;
public class URLInformationModel {
public String url;
public String mainwords;
public int total_frequence;
public int different_DC_frequence;
public int different_APK_frequence;
public String DCs;
public String APKs;
public URLInformationModel(String url,... | 33.304348 | 109 | 0.694517 |
30a8ba77998a43bfb723f0a90cf9cf1dda9778fe | 2,960 | /*
* 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 ... | 27.663551 | 83 | 0.669257 |
1e39ee272bdacd7780297d33bbbdb02d490f649e | 2,108 | /*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* See the NOTICE file distributed with this work for additional
* information regarding copyright ownership.
* You may obtain a copy of the License at
*
* http://www.apache.... | 38.327273 | 117 | 0.671252 |
d38692018bc6770c158c34c7d06074ae25701cc1 | 6,037 | package fr.insee.rmes.persistance.service.sesame.concepts.collections;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import org.apache.commons.httpclient.HttpStatus;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.json.JSONArray;
import o... | 46.438462 | 145 | 0.796091 |
b22313f17f4c320b6504583518b229fc6dcee47a | 3,337 | package com.goldenlife.android.presenter;
import android.util.Log;
import com.goldenlife.android.gson.News;
import com.goldenlife.android.gson.Result;
import com.goldenlife.android.model.ModelImp;
import com.goldenlife.android.model.ModelInt;
import com.goldenlife.android.util.HttpUtil;
import com.goldenlife.android.... | 35.5 | 114 | 0.546599 |
93351a845dbdb8054f10be43521ae7bad2f33319 | 1,312 | package io.skysail.server.app;
import io.skysail.api.text.TranslationRenderService;
import java.lang.ref.WeakReference;
import java.util.*;
import lombok.*;
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.lang.StringUtils;
import org.osgi.framework.Constants;
/**
* Holds a weak reference to a translat... | 26.77551 | 104 | 0.691311 |
4e0ac1d910ca7f47c0d62814ab116b0d296e2133 | 1,112 | package im.dlg.botsdk.domain;
public class Group {
private String shortname;
private String title;
private Peer peer;
private GroupType type;
public Group(String shortname, String title, Peer peer, GroupType type) {
this.shortname = shortname;
this.title = title;
this.peer ... | 19.172414 | 77 | 0.48741 |
22fa6a641e631591e037739ba788bf2900d252f8 | 7,830 | package com.tcmj.custjar;
import com.tcmj.custjar.mrg.impl.JarFileMerger;
import com.tcmj.custjar.mrg.Merger;
import com.tcmj.custjar.mrg.impl.LightJarFileMerger;
import java.io.File;
import java.net.InetAddress;
import java.util.HashSet;
import java.util.Iterator;
import java.util.Set;
/**
* CustJar - Custom Jar Ge... | 35.753425 | 144 | 0.487484 |
f683aa82b005dc18ff858d165f16997c4ba8dea4 | 2,601 | /*
* Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH under
* one or more contributor license agreements. See the NOTICE file distributed
* with this work for additional information regarding copyright ownership.
* Licensed under the Zeebe Community License 1.1. You may not use this file
* ... | 32.5125 | 99 | 0.750865 |
1aec2edcae27cc0acf656fd03877c5c510ef04ac | 15,593 | /*
* Copyright 2019, Perfect Sense, 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 a... | 37.573494 | 150 | 0.663888 |
4bba9cc3b79bb3fcd5c8bd51f283b638c32f0432 | 5,961 | package com.douglaswhitehead.controller;
import java.io.UnsupportedEncodingException;
import java.util.ArrayList;
import java.util.List;
import java.util.UUID;
import javax.servlet.http.Cookie;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.springframework.bea... | 37.968153 | 191 | 0.741654 |
176ac98f393f0169b1d2a6796ce6be084b2a18dc | 320 | package org.sparqpoc.apprespository;
import org.sparqpoc.appmodel.LoanMaster;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
@Repository
public interface LoanRepository extends JpaRepository<LoanMaster, Long> {
LoanMaster findById(long loanid);
}
| 22.857143 | 73 | 0.83125 |
362f10ada90fcc3a3227a7409d4467de3c1cf8f6 | 167 | package com.elead.viewpagerutils;
public interface PagerAssist {
public boolean hasInit();
public void setInit(boolean hasInit);
public void initPager();
}
| 13.916667 | 38 | 0.748503 |
aec60ffb40a20feb9fa705ea3d3764a19aab6668 | 1,011 | package com.reynke.sloud.databaseutilities.dependencyinjection;
import com.google.inject.Injector;
import com.reynke.sloud.databaseutilities.configuration.DatabaseType;
import com.reynke.sloud.databaseutilities.configuration.IDatabaseConfiguration;
import com.reynke.sloud.databaseutilities.database.IDatabase;
import ... | 31.59375 | 94 | 0.78635 |
6f3a5fa900a872b8427b510ec8cc58f37f904ca1 | 1,497 | package com.vaguehope.onosendai.util;
import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.util.ArrayList;
import java.util.List;
import com.vaguehope.onosendai.C;
public final class LogcatHelper {
private LogcatHelper () {
throw new AssertionError();
}
public static void d... | 25.372881 | 100 | 0.653975 |
4be414f71280cd928817daaba07a53525a56e379 | 1,814 | package stack;
import java.util.Stack;
public class LC844BackspaceStringCompare {
public boolean backspaceCompare(String S, String T) {
Stack<Character> stack1 = new Stack<>();
Stack<Character> stack2 = new Stack<>();
for (char c : S.toCharArray()) {
if (c == '#') {
... | 26.676471 | 77 | 0.455347 |
c6367b8faa1002f833ae303f45069606a131a682 | 382 | package no.fdk.acat.common.model.apispecification.info;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;
@Data
@JsonInclude(JsonInclude.Include.NON_NULL)
public class Info {
private String title;
private String description;
private String termsOfService;
private Contact contact... | 22.470588 | 55 | 0.774869 |
2d14e59f73009dd16f9dd443ca8d66817fb4b10a | 4,048 | package com.example.xiaojin20135.imagebrowsepro;
import android.content.Intent;
import android.support.v4.view.ViewPager;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Log;
import android.view.KeyEvent;
import android.view.WindowManager;
import android.widget.ProgressBa... | 30.208955 | 116 | 0.657115 |
849203d3b1664faa80310cfe340023a822bb6d50 | 12,353 | /* Copyright 2017 Google 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in... | 35.909884 | 100 | 0.696754 |
b08e91e1d457bcfc12d89abf00df0383f3689b07 | 3,159 | /*
* Copyright (c) 2008, 2015, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free ... | 30.085714 | 119 | 0.61032 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.