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 |
|---|---|---|---|---|---|
01ec627dc040bd90fba63f91fa950bc4f4cc8f2e | 77,528 | // 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.google.android.gms.internal.ads;
import android.media.MediaCodecInfo;
import android.util.*;
import java.util.*;
import java.util.regex.Matche... | 39.92173 | 562 | 0.53173 |
3610aa348f827725e132d1b8268607ea83f34788 | 14,440 | // Copyright 2020 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
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... | 40.335196 | 99 | 0.699654 |
9e79c698ac049dca2867580daca078d3e2ddccb5 | 2,639 | package de.ayesolutions.gogs.client;
import de.ayesolutions.gogs.client.model.AccessToken;
import org.junit.Assume;
import org.junit.Before;
import java.io.IOException;
import java.net.URI;
import java.util.UUID;
/**
* @author Christian Aye - c.aye@aye-solutions.de
*/
public abstract class AbstractGogsTest {
... | 42.564516 | 799 | 0.78022 |
253332ef956ab246e615f7f865c8a12bf39c6e14 | 3,502 | /*
* Copyright 2016-present Open Networking Laboratory
*
* 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 appli... | 29.183333 | 85 | 0.718447 |
bbca9c2557d0e7c1d8f4326c2c2b16757a9f64c6 | 2,619 | /*
* Integrated Rule Inference System (IRIS):
* An extensible rule inference system for datalog with extensions.
*
* Copyright (C) 2009 ICT Institute - Dipartimento di Elettronica e Informazione (DEI),
* Politecnico di Milano, Via Ponzio 34/5, 20133 Milan, Italy.
*
* This library is free software; you can red... | 34.92 | 107 | 0.757159 |
9bbd6122f19bca2a810eb9859be1597cd360b851 | 8,198 | package com.rsun.andemo.Operation;
import android.content.Context;
import android.util.Log;
import com.rsun.Global.GlobalEnv;
import com.rsun.andemo.inf.RSunApi;
import org.json.JSONException;
import org.json.JSONObject;
import java.io.IOException;
import okhttp3.ResponseBody;
import retrofit2.Call;
import retrofi... | 39.603865 | 173 | 0.519029 |
a1ce92507836f5d2178c6b4525fa29d0cdae91a6 | 682 | package com.sibisoft.faizaniftikhartdd;
public abstract class Money
{
abstract Money times(int multiplier);
protected String currency;
protected int amount;
public Money()
{
}
Money(int amount, String currency)
{
this.amount = amount;
this.currency = currency;
}
public boolean... | 17.487179 | 72 | 0.653959 |
9893cd9e67a9addd5e4c0c2ce3be555dc37b1503 | 1,915 | /**
* ip:
* 10 -> 15 -> 5 -> 20
* ^ |
* |----------|
* op: 10 -> 15 -> 5 -> 20
*
* ip: 10 -> 15 -> 5
* op: 10 -> 15 -> 5
*
* Approach:
* 1) detect loop using Floyds algo
* 2) Move slow ptr to beginning of LL and keep fastptr to meeting point (meeting point is point where slowptr &... | 24.87013 | 141 | 0.52376 |
f669e4c05dffcf108a8e3f26b7c578308bc92958 | 6,755 | /*
* Copyright 2017-2020 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... | 41.189024 | 138 | 0.743597 |
8eac79cada57362c0f44ce24a8f184b4c449cc4b | 1,784 | /*
* 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
* <p>
* Unless required by applicable law or agreed to in writing, software
* distributed ... | 23.473684 | 80 | 0.640695 |
a02156380e265b6387d82db2d71611489714bad8 | 351 | package com.aghajari.axvideotimelineview;
public interface AXTimelineViewListener {
void onLeftProgressChanged(float progress);
void onRightProgressChanged(float progress);
void onDurationChanged(long Duration);
void onPlayProgressChanged(float progress);
void onDraggingStateCha... | 39 | 56 | 0.754986 |
a3398574553abb9fd7320aff4a102f34b8053576 | 287 | package com.zcwfeng.fastdev.ui.fragment.request.demo;
public class Contributor {
public final String login;
public final int contributions;
public Contributor(String login, int contributions) {
this.login = login;
this.contributions = contributions;
}
} | 26.090909 | 57 | 0.710801 |
76bb7303d04a35275efb45fddf80bb0dba8b9da3 | 6,395 | /**
* Copyright 2014 AnjLab
*
* 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... | 34.945355 | 104 | 0.619703 |
6be741c0fb9505d98b065bc19f44ba02e4d32e9a | 2,212 | package com.linkedin.databus.client.registration;
/*
*
* Copyright 2013 LinkedIn Corp. 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/... | 25.136364 | 87 | 0.729204 |
62e7d2f074159eafdd3381518d5e61f02143756d | 2,076 | /*
* This file is part of BlueMap, licensed under the MIT License (MIT).
*
* Copyright (c) Blue (Lukas Rieger) <https://bluecolored.de>
* Copyright (c) contributors
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Softwar... | 30.985075 | 80 | 0.757225 |
518e55b4bd563cfeb499ce416561c453c9f3b963 | 10,155 | package com.project.askit.controller;
import com.project.askit.entity.Role;
import com.project.askit.entity.User;
import com.project.askit.model.ErrorModel;
import com.project.askit.model.MessageModel;
import com.project.askit.util.Pair;
import com.project.askit.util.Utility;
import org.springframework.beans.factory.a... | 39.057692 | 112 | 0.699852 |
40ce4f038ab79eee84d850bf551ebd149b313d13 | 3,126 | /*
* Copyright 2019 The Hekate Project
*
* The Hekate Project licenses this file to you under the Apache License,
* version 2.0 (the "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at:
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless ... | 34.733333 | 139 | 0.694818 |
f7cd19097b6a9ddc4a5a18bba55c0ea2ba8937ba | 21,221 | /*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License;
* you may not use this file except in compliance with the Elastic License.
*/
package org.elasticsearch.xpack.ql.planner;
import org.elasticsearch.common.... | 44.770042 | 139 | 0.627869 |
e4e67a5a13407c7256a62953bc13cd975c882e7c | 140 | package com.zenith.elixer.specification.image;
public interface IImage {
public IImage setColor(int x, int y, int r, int g, int b);
}
| 20 | 62 | 0.721429 |
167a8e2e05286a8e42c125f3d16cb7952be597af | 3,942 | /**
* (c) raptor_MVK, 2015. All rights reserved.
*/
package ru.mvk.iluvatar.javafx.field;
import javafx.scene.Parent;
import javafx.scene.control.DatePicker;
import javafx.scene.layout.VBox;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
import org.junit.Assert;
import org.junit... | 33.40678 | 88 | 0.762811 |
a143a1e9851c87280a1e6bdd2478e666c898f88f | 15,895 | package services;
import Bean.CachLyBean;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.Date;
import java.util.List;
import javax.swing.JOptionPane;
import models.CachLyModel;
import models.ChungMinhThuM... | 51.440129 | 141 | 0.577477 |
e7df47680dfa788ceecd8913a03601dd167b1a96 | 3,521 | /*
* 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.container;
import com.google.inject.Inject;
impor... | 32.601852 | 99 | 0.752059 |
dfa96c0db739a1c5c501782b96b147e4040146a5 | 1,431 | package org.rookit.dm.album.release;
import com.google.common.base.MoreObjects;
import org.rookit.api.dm.album.TypeRelease;
import org.rookit.dm.utils.DataModelValidator;
import org.rookit.utils.log.validator.Validator;
import javax.annotation.Nullable;
import java.time.LocalDate;
import java.util.Optional;
final cl... | 26.018182 | 79 | 0.685535 |
65dc80168a030efdb86767e618c341a97194aa11 | 522 | package miscelleneous_problems.math.number_system;
public class AnyBaseToDecimalConversion {
public static int getValueInDecimal(int n, int b){
return convertAnyBaseToDecimal(n, b);
}
private static int convertAnyBaseToDecimal(int num, int base){
int res = 0, power = 1;
int tempN... | 22.695652 | 66 | 0.570881 |
f668880948bededdfd1115e37836e32559552cd2 | 117 | public class MuteQuack extends QuackBehavior{
void quack() {
System.out.println(this+" cant speak!");
}
} | 19.5 | 45 | 0.666667 |
59bf4c69d89598057e0bb922a445ac6e090b4e03 | 1,328 | package com.github.fanzezhen.demo.logweb.controller;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.github.fanzezhen.common.core.model.dto.PageDto;
import com.github.fanzezhen.demo.logbiz.facade.LogLoginServiceFacade;
import com.github.fanzezhen.common.log.foundation.entity.LogLogin;
import com.githu... | 26.56 | 85 | 0.749247 |
d3624fcd8ac29009ca407941d7ec74dfbe2d8634 | 10,004 | package com.genie.schedule.service;
import com.genie.schedule.MicroServerApp;
import com.genie.schedule.service.dto.CronJobInfo;
import com.genie.schedule.service.dto.JobDetailDTO;
import com.genie.schedule.service.dto.SimpleJobInfo;
import com.genie.schedule.utils.QuartzUtil;
import com.genie.schedule.utils.TaskHisto... | 45.472727 | 118 | 0.680328 |
a63905f3ac90656c1621c966c26fa96444bbc930 | 3,341 | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package io.github.kandefromparis.generator.cheer;
import io.vertx.core.AbstractVerticle;
import io.vertx.ext.web.RoutingContext;
impor... | 37.539326 | 148 | 0.61748 |
9adbaa477e279f2ecc91ebfe94cbf77352ae68b0 | 5,467 | /**
* Copyright (C) 2010-2013 Andrei Pozolotin <Andrei.Pozolotin@gmail.com>
*
* All rights reserved. Licensed under the OSI BSD License.
*
* http://www.opensource.org/licenses/bsd-license.php
*/
package com.jwrapper.maven.cfn;
import java.io.File;
import java.util.HashMap;
import java.util.List;
import java.util... | 23.873362 | 108 | 0.699287 |
61bfcffe37353a0b1b96fa2946129a80b3067569 | 13,492 | /*
* Copyright 1999-2011 Alibaba Group.
*
* 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... | 44.381579 | 137 | 0.533798 |
23c61a9a54a3b79eb85acb896ebd69a94c4e2eba | 1,387 | import java.util.Arrays;
/**
* Given an array <tt>A</tt> of non-negative integers, return an array consisting of all the even elements of
* <tt>A</tt>, followed by all the odd elements of <tt>A</tt>.
* <p>
* You may return any answer array that satisfies this condition.
* <p>
* <b>Example 1:</b>
* <pre>
* Inpu... | 23.913793 | 109 | 0.503965 |
0d301c0af83c126d9f92bfdee2432ea42d059011 | 2,247 | package cn.smile.smilemall.search;
import cn.smile.smilemall.search.config.ElasticSearchConfig;
import com.fasterxml.jackson.databind.ObjectMapper;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.elasticsearch.action.index.IndexRequest... | 28.807692 | 108 | 0.793057 |
adf4a309202dcdfe8c492751fc2534d9bdfe1538 | 193 | /**
*
*/
package com.rains.proxy.core.algorithm.impl.support;
/**
* @author liubing
*
*/
public interface RedisWeight {
/**
* 获取权重比例
* @return
*/
public int getWeight();
}
| 9.65 | 52 | 0.585492 |
4ea1778615add8684767e7bdc8fb670f422e906a | 3,310 | /**
* 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... | 28.290598 | 79 | 0.722054 |
813b0d7f250bb0134b825a3e1148c671eef5b040 | 4,033 | package com.example.android.miwok;
import android.content.Context;
import android.media.AudioManager;
import android.media.MediaPlayer;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.AdapterView;
import android.widget.ListView;
import java.ut... | 41.57732 | 147 | 0.682618 |
a63129918d78f426cde5cf67bcdf6e0c6a2110c2 | 4,207 | /*
@@author shihaoyap
*/
package seedu.address.logic.commands.schedule;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertFalse;
import static org.junit.jupiter.api.Assertions.assertTrue;
import static seedu.address.commons.core.Messages.MESSAGE_EVENTS_... | 44.284211 | 112 | 0.772997 |
fd1e3e576f4d09e56e43a6599c3e10486a1be49e | 1,359 | package in.aos.service;
import java.sql.SQLException;
import java.util.List;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import in.aos.bean.Facilities;
import in.aos.bean.GalleryBean;
import in.aos.bean.NewsAndEventBean;
... | 26.647059 | 95 | 0.756439 |
fcc901c7260f185d57a7e406b122e46222d13273 | 977 | public class Soultion110 {
public static void main(String[] args) {
TreeNode p = new TreeNode(3);
p.left = new TreeNode(9);
p.right = new TreeNode(20);
p.left.left = new TreeNode(15);
// p.left.right = new TreeNode(7);
p.left.left.left = new TreeNode(4);
// p.l... | 29.606061 | 53 | 0.558854 |
74ef38fba19e06411685064d1e48d9cf5324ab34 | 1,915 | package de.elnarion.ddlutils.alteration;
/*
* 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 Lic... | 41.630435 | 137 | 0.716449 |
3c40cfe23b9bddbec13179aa7d68639c790fb876 | 331 | package org.nse.battleship;
import android.app.Activity;
import android.os.Bundle;
/**
* Created by Tom on 23.07.2015.
*/
public class GameWonActivity extends Activity {
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.wi... | 22.066667 | 53 | 0.712991 |
617af4cbfce765dd1916a5a474bc84d503a94562 | 1,434 | package com.francelabs.datafari.handler.parsed;
import java.io.InputStream;
import org.apache.commons.io.IOUtils;
import org.apache.solr.common.params.UpdateParams;
import org.apache.solr.common.util.ContentStream;
import org.apache.solr.handler.extraction.ExtractionDateUtil;
import org.apache.solr.handler.loader.Con... | 36.769231 | 143 | 0.783821 |
6c3871c95e446402c2753db170e866b3798a8d1f | 452 | package enums;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.ToString;
@AllArgsConstructor
@Getter
@ToString
public enum RpcErrorMessageEnum {
CLIENT_CONNECT_SERVER_FAILURE("客户端连接服务端失败"),
SERVICE_INVOCATION_FAILURE("服务调用失败"),
SERVICE_CAN_NOT_BE_FOUND("没有找到指定的服务"),
SERVICE_NOT_I... | 23.789474 | 57 | 0.798673 |
30675b3350d94a55d6de2abc001ba6dab66f1c89 | 515 | package old.readwrite;
import java.util.Map;
import java.util.Scanner;
import old.core.exceptions.FileReadException;
import old.core.exceptions.FormatNotSupportedException;
import old.datatypes.DataType;
import org.w3c.dom.Element;
public interface DataReader {
public Map<String, String[]> getValidReadFormats();
... | 30.294118 | 102 | 0.829126 |
da2a900faa7c09c9fd301e5233c3d50cc2ad197b | 206 | package com.understand.concurrency.task6;
public class Main {
public static void main(String[] args) {
ExecutorTask executorTask = new ExecutorTask();
executorTask.execute();
}
}
| 18.727273 | 55 | 0.674757 |
48dcd64052321d8d665def0d4324fadd28f3d610 | 58 | /**
*
*/
/**
* @author jron
*
*/
package exampleTwo; | 7.25 | 19 | 0.465517 |
4aa288b0a4ae5b9b05c0a29096278e2d2044292e | 1,682 | package oracle.pgql.lang;
import static org.junit.Assert.assertTrue;
import org.junit.Test;
public class Experimental extends AbstractPgqlTest {
@Test
public void testReferencesToSelectExpression1() throws Exception {
String query = "SELECT n.age * 2 AS doubleAge "//
+ " FROM MATCH (n) ON g "//
... | 31.735849 | 68 | 0.579667 |
fa76639a47f6cd5ce337023cd150eefdf53c4c65 | 1,186 | package org.drools.core.factmodel.traits;
import org.drools.core.util.Triple;
import org.drools.core.util.TripleFactory;
import org.drools.core.util.TripleImpl;
import org.drools.core.util.TripleStore;
import java.io.IOException;
import java.io.ObjectInput;
import java.io.ObjectOutput;
public class TripleBasedBean ... | 23.254902 | 89 | 0.655987 |
16219e07ce8eb7084015f512f053780fd1839c97 | 1,730 | package edu.southwestern.tasks.megaman;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import edu.southwestern.tasks.megaman.levelgenerators.MegaManGANGenerator.SEGMENT_TYPE;
public class MegaManTrackSegmentType {
public static int numRight = 0;
public static int numLeft = 0;
public st... | 22.179487 | 124 | 0.691329 |
2abf6d5380f3d0369debd79dbe957b98bff28c52 | 519 | package com.aks.commons.controller;
import javax.validation.Valid;
import java.util.List;
import java.util.Optional;
public interface BaseController<
Request extends BaseRequest,
Response extends BaseResponse,
ID> {
Optional<Response> update(@Valid Request requestModel);
Optional<Res... | 21.625 | 59 | 0.714836 |
c002c7eeaefe45834fb336020f0fa95568ca8094 | 747 | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package rs.fon.eklub.core.entities;
/**
*
* @author milos
*/
public class Stat {
private String label;
private String ... | 17.372093 | 79 | 0.597055 |
d3f76fcdfa5630310b1bcd43c5cd833ea01a6e17 | 19,273 | /*
* Copyright 2014 Thomas Hoffmann
*
* 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 agr... | 44.613426 | 116 | 0.543766 |
43b7c927cbfbb23a3964747b128323ae49351c5a | 3,875 | /**
* Copyright (c) 2019,2020 honintech
*
* 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, merge, publish, di... | 43.055556 | 463 | 0.698839 |
ecfd8bc8d024d6b99f5561d30c41f76194f6fadd | 6,730 | /*
* Copyright (C) 2016 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.022599 | 151 | 0.659287 |
aaf6ca59c2186c11e48bd815047a4fabc9069c50 | 3,235 | /*
* 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 ... | 28.628319 | 101 | 0.649459 |
c106bb04e36ad8e7f9517a3b022bb70a4d99c15f | 7,241 | package com.poppinjay13.grind.Adapters;
import android.content.Context;
import android.content.Intent;
import android.graphics.Paint;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import androidx.annotation.NonNull;
import androidx.cardvie... | 39.140541 | 107 | 0.591907 |
bf48a8466578694f699e516b599eb9282b39ecda | 3,681 | package br.com.qyon.atualizadorPostgres;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileReader;
import java.io.IOException;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.Arrays;
imp... | 34.401869 | 177 | 0.664765 |
398b3b0a509bd6583c5218fb5cf16633048332bd | 4,654 | package com.solverpeng.controller;
import com.solverpeng.bean.Order;
import com.solverpeng.bean.Person;
import com.solverpeng.bean.Trade;
import com.solverpeng.bean.User;
import org.springframework.beans.PropertyValues;
import org.springframework.beans.propertyeditors.CustomDateEditor;
import org.springframework.forma... | 35.8 | 109 | 0.710142 |
2ccb279eb2c8b453ca0cb6ebfbf0eff5e416d2bd | 1,027 | package com.skyseraph.xknife.c13_3_2;
import retrofit2.http.GET;
import retrofit2.http.Path;
import retrofit2.http.Query;
import rx.Observable;
/**
* Created by SkySeraph on 2016/5/4.
*/
public interface IDataApi {
/**
* 获取热门电影
*
* @return hot movie
*/
@GET("movie/in_th... | 20.54 | 93 | 0.566699 |
29d74523b9795295e2d39951af54e10fe5c4d869 | 7,731 | // connect 4 game in java
import java.awt.*;
import java.awt.Image;
import java.awt.image.*;
import java.applet.*;
public class con4 extends Applet
{
// variables
private Rectangle dropMarker1,dropMarker2,dropMarker3,dropMarker4,dropMarker5,dropMarker6, dropMarker7, ywindet, rwindet;
private boolean myTurn;
private... | 25.430921 | 122 | 0.536671 |
d120e698aa975436d4f936e980523a4e86f9c693 | 316 |
public class variable_length {
public static void main(String args[]){
System.out.println(average(2,43,6,33,56,32));
}
public static int average (int ...numbers){
int total=0;
for(int x : numbers){
total+=x;
}
return total/numbers.length;
}
}
| 11.703704 | 48 | 0.550633 |
1b9e525470b883e49505922634b1bdc27d178540 | 1,603 | package demosoft;
import org.apache.camel.LoggingLevel;
import org.apache.camel.builder.RouteBuilder;
import javax.enterprise.context.ApplicationScoped;
import static org.apache.camel.builder.endpoint.StaticEndpointBuilders.amqp;
import static org.apache.camel.builder.endpoint.StaticEndpointBuilders.timer;
@Applica... | 39.097561 | 101 | 0.603244 |
8640e2adcfa4068d5acfb9e7107ddc2b8e47c1a9 | 1,008 | package T06objectsAndClasses.exercise.P03OpinionPollv2;
import java.util.ArrayList;
import java.util.Comparator;
import java.util.List;
import java.util.Scanner;
import java.util.stream.Collectors;
public class Main {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
... | 34.758621 | 69 | 0.616071 |
ef6a08573dbdd8fc44e77af1ee846c9989efd6e2 | 756 | package com.skywin.cloudadmin.vsphere.task;
import org.junit.Test;
import com.alibaba.fastjson.JSON;
import cn.com.skywin.cloudadmin.api.vsphere.info.template.UploadTemplateDto;
import cn.com.skywin.cloudadmin.commons.UUIDGenerator;
import cn.com.skywin.cloudadmin.vsphere.task.CreateImageTask;
/**
* @author zwj
*... | 27 | 76 | 0.699735 |
d6f012b5c20148438a9ff5724b0a744d46bac97d | 922 | package com.dennis.nio;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.nio.ByteBuffer;
import java.nio.channels.FileChannel;
public class NioTest04 {
public static void main(String[] args) throws Exception {
FileOutputStream outputStream = new FileOutputStream("outpu... | 28.8125 | 76 | 0.60846 |
72e790f1b75b4169b4f8e004b64f888a6eb4c277 | 1,494 | package io.micronaut.docs.config.value;
import io.micronaut.context.ApplicationContext;
import io.micronaut.context.DefaultApplicationContext;
import io.micronaut.context.env.PropertySource;
import org.codehaus.groovy.runtime.DefaultGroovyMethods;
import org.junit.Test;
import spock.lang.Specification;
import java.ut... | 32.478261 | 94 | 0.714859 |
9fb1f386236209f25c8a2e6a3f37e0e024ee2a4c | 820 | package com.muscleape.excel.test.listen;
import com.muscleape.excel.context.AnalysisContext;
import com.muscleape.excel.event.AnalysisEventListener;
import java.util.ArrayList;
import java.util.List;
public class ExcelListener extends AnalysisEventListener {
private List<Object> data = new ArrayList<Object>()... | 24.117647 | 64 | 0.653659 |
dec3f9708835f26805fe9068e3cdfbb474d93836 | 538 | package com.example;
import org.springframework.boot.context.properties.ConfigurationProperties;
@ConfigurationProperties(prefix = "greeter")
public class GreeterConfigProperties {
private String message = "message";
private String name = "name";
public String getMessage() {
return message;
... | 19.925926 | 75 | 0.663569 |
3becc8a1329cd80fba82647e39a1ad5d3d267c3c | 286 | package designpatterns;
class Singleton {
private static Singleton s = new Singleton();
private Singleton() {
}
public static Singleton createInstance() {
return s;
}
}
class Driver {
public static void main(String [] args){
Singleton s = Singleton.createInstance();
}
} | 15.052632 | 46 | 0.706294 |
0d48c56a51ec83e11f00ed4239bd952c4b370952 | 3,339 | package com.war3.nova.core.actuator.node.artificialapproval;
import java.util.List;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.war3.nova.Constants;
import com.war3.nova.NovaException;
import com.war3.nova.Result;
import com.war3.nova.annotation.NovaMapper;
import com.war3.nova.bea... | 45.739726 | 130 | 0.704103 |
1e195cdbe26cd961dbd62b735cdff7274ba60b3e | 8,135 | // Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package org.chromium.chrome.testshell;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.text.Text... | 34.037657 | 92 | 0.651998 |
f7da4d1ccd54b4a19d58a2292a13e0c721734a5e | 4,972 | package android.net;
import android.annotation.Nullable;
import android.content.ComponentName;
import android.os.Parcel;
import android.os.Parcelable;
import java.util.Objects;
/**
* Holds metadata about a discovered network scorer/recommendation application.
*
* TODO: delete this class once robolectric supports ... | 37.954198 | 96 | 0.694087 |
55b31e0774585f230ec89a8e03bfc3739ed0ef76 | 481 | package com.epicodus.kloutulator.models;
/**
* Created by Guest on 5/10/16.
*/
public class Influencer {
String name;
String score;
public Influencer(String name) {
this.name = name;
}
public String getScore() {
return score;
}
public void setScore(String score) {
... | 16.033333 | 40 | 0.577963 |
7571c626c22b195645a19403d486b97c6f4c8317 | 110 | /**
* Filters to select classes and methods for runtime suites.
*/
package com.dhemery.runtimesuite.filters; | 27.5 | 60 | 0.763636 |
271e58d83e8ae7ef006a894c86bbac59446ded6e | 2,242 | package com.javarush.task.task18.task1808;
/*
Разделение файла
*/
import java.io.*;
public class Solution {
public static void main(String[] args) throws IOException {
// C:\Users\Dimka\Documents\JavaRushHomeWork\JavaRushHomeWork_2_0\JavaRushTasks\2.JavaCore\src\com\javarush\task\task18\task1801\File1.t... | 39.333333 | 267 | 0.575825 |
5649302af86d100f517e4a158ac561a92e054e7c | 6,872 | /*
*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the Common Development and Distribution
* License, Version 1.0 only (the "License"). You may not use this file except in compliance with
* the License.
*
* You can obtain a copy of the license at license/ESCIDOC.LICENSE or
* ... | 26.84375 | 111 | 0.665454 |
e1ea8772e050bb6cdbb3392921f82f9e9ebad85c | 554 | package org.quickclient.classes;
/**
*
* @author Administrator
*/
public class QListItem {
private String rObjectId;
private String name;
public String getRObjectId() {
return rObjectId;
}
public void setRObjectId(String rObjectId) {
this.rObjectId = rObjectId;
... | 17.3125 | 49 | 0.559567 |
631376f662a226af589241a17203f95aa0b21a4b | 4,677 | package br.com.zup.polyana.propostas.proposta;
import br.com.zup.polyana.propostas.proposta.criptografia.CriptografaDocumento;
import br.com.zup.polyana.propostas.validation.ApiErrorException;
import feign.FeignException;
import io.opentracing.Span;
import io.opentracing.Tracer;
import org.springframework.http.HttpSt... | 37.416 | 122 | 0.670301 |
31825a2771cc894c09ca637042bf1bc7530c3441 | 678 | package edu.virginia.psyc.kaiser.persistence;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.mindtrails.domain.questionnaire.LinkedQuestionnaireData;
import javax.persistence.Entity;
import javax.persistence.Lob;
import javax.persistence.Table;
import javax.validation.constraints.NotNull;
import java... | 22.6 | 67 | 0.783186 |
174deec7e11a0631935f42517bb5677bdadf8955 | 161 | package acmtree;
public class Enrichment {
// ENRICHMENT
public static final boolean Enable = true;
public static final boolean Disable = false;
}
| 17.888889 | 46 | 0.714286 |
491a23143d4abde38872ca1532b76f084d1a1c37 | 8,176 | /*
* Copyright (c) 2011-2013, Peter Abeles. All Rights Reserved.
*
* This file is part of BoofCV (http://boofcv.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... | 42.583333 | 129 | 0.739604 |
c04ef1307deb4d9172e47ea1a86840cee5ad4f06 | 266 | package com.solitardj9.apiService.utils;
import org.apache.commons.lang3.StringUtils;
public class RouteFilterStringUtils {
public static Boolean isNullOrEmpty(String str) {
return StringUtils.isEmpty(str) || StringUtils.isBlank(str);
}
} | 26.6 | 69 | 0.733083 |
e839c3d34d25444e13356d6ffc5c10a0dd3a9a65 | 3,212 | /*
* Voicebase V3 API
* APIs for speech recognition and speech analytics, powering insights every business needs.
*
* OpenAPI spec version: 3.0.1
* Contact: support@voicebase.com
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
*... | 26.766667 | 125 | 0.7033 |
7fc3645b66addd4797a8f9f1fa0533565b92512f | 8,750 | /*
* Copyright (c) 2018, Lotto <https://github.com/devLotto>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice, th... | 27.429467 | 100 | 0.747429 |
e7144f7c2395474648f43f160b03c3e2cfb48c90 | 1,775 | /* Class255 - Decompiled by JODE
* Visit http://jode.sourceforge.net/
*/
final class Class255 {
static int anInt3499;
static long aLong3500;
static int[] anIntArray3501 = { 0, 2, 2, 2, 1, 1, 3, 3, 1, 3, 3, 4, 4 };
static int anInt3502;
static int anInt3503 = 0;
static int anInt3504;
static final void method1... | 28.629032 | 73 | 0.64507 |
2e4ef2acb0dca8a8f864ce238b81561cb39a16c7 | 2,086 | /************************************************************************
UpdatedServicesEvent.java is part of Ti4j 3.1.0 Copyright 2013 Emitrom 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 Lic... | 37.25 | 100 | 0.678332 |
2b1770c4a2dfe7c831439a0b15ad5143183398d4 | 2,131 | /*
* Copyright (C) 2019 Red Hat, 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 ... | 31.80597 | 80 | 0.652745 |
3b1527b12c5f036770f59ba596bc9b4384e41e56 | 643 | package com.fbi.engine.domain.schema;
import lombok.Data;
import java.io.Serializable;
import java.util.List;
@Data
public class ConnectionPropertiesSchema implements Serializable {
/*
Derived instance of ConnectionDetails class that is associated with this connection properties schma
*/
privat... | 21.433333 | 108 | 0.727838 |
aaa3a3b059b5912b6ed360711fd4fd6912335977 | 11,320 | /*
* Copyright (C) 2020, Peter Abeles. All Rights Reserved.
*
* This file is part of Geometric Regression Library (GeoRegression).
*
* 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
*
*... | 36.166134 | 110 | 0.733039 |
acd8afeee19387d7566ce0e8eded52998bf8b1f8 | 20,124 | package org.wycliffeassociates.translationrecorder.ProjectManager.activities;
import android.app.AlertDialog;
import android.app.FragmentManager;
import android.app.ProgressDialog;
import android.content.DialogInterface;
import android.content.Intent;
import android.content.SharedPreferences;
import android.net.Uri;
i... | 41.407407 | 192 | 0.642815 |
f5d91894a8663335777947fe4f5e131cf5f7a4f3 | 2,327 | /*
* ***** BEGIN LICENSE BLOCK *****
* Zimbra Collaboration Suite Server
* Copyright (C) 2012 Zimbra, Inc.
*
* The contents of this file are subject to the Zimbra Public License
* Version 1.3 ("License"); you may not use this file except in
* compliance with the License. You may obtain a copy of the License at
... | 29.0875 | 93 | 0.649764 |
2d2ffc4de4aaeba3d2669bfdb57142b12a9c59c2 | 5,104 | /*
* Constellation - An open source and standard compliant SDI
* http://www.constellation-sdi.org
*
* Copyright 2014 Geomatys.
*
* 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
*... | 39.261538 | 150 | 0.747845 |
5cbe2ccabca7a3e44a614a3c53aac5191b5b528a | 5,760 | package org.tanrabad.survey.nearby;
import org.junit.Test;
import org.tanrabad.survey.domain.place.PlaceRepository;
import org.tanrabad.survey.entity.Place;
import org.tanrabad.survey.entity.field.Location;
import org.tanrabad.survey.nearby.repository.ImpNearbyPlaceRepository;
import org.tanrabad.survey.nearby.reposit... | 48.403361 | 112 | 0.699132 |
f98285173a2e42baa2110e47355b36f2bbc010f5 | 2,691 | begin_unit|revision:0.9.5;language:Java;cregit-version:0.0.1
begin_comment
comment|/* * 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 ... | 23.198276 | 810 | 0.797473 |
86b97cf4a709651c8ee5589af2a687778403ad15 | 1,238 | package org.quickstart.metrics.yammer;
import com.yammer.metrics.Metrics;
import com.yammer.metrics.core.Histogram;
import com.yammer.metrics.reporting.ConsoleReporter;
import java.util.LinkedList;
import java.util.List;
import java.util.concurrent.TimeUnit;
public class LearnHistogram {
private List<String> str... | 25.791667 | 95 | 0.638126 |
f1f8a863c92265f377437242ddb056ab438b3740 | 1,328 | package org.cyclops.integrateddynamics.core.evaluate.variable;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.nbt.NBTTagList;
/**
* A list of NBT tags.
*/
public class ValueTypeListProxyNbtValueListTag extends ValueTypeListProxyNbtValueListGeneric<NBTTagList, ValueTypeNbt, ValueTypeNbt.ValueNbt> {
... | 30.883721 | 171 | 0.724398 |
a9148d957a3c53b061ffe71f596d7133adb65099 | 3,506 | import java.util.HashMap;
import java.util.Iterator;
import java.util.Map;
import java.util.Map.Entry;
import java.util.Random;
import java.util.Set;
public class Customer {
// variables
private int numOrders;
private double amount;
private long customerID;
private long uniqueID;
private int[] leftHalf = new int... | 25.405797 | 75 | 0.62607 |
179b75ce0567a33a70372445205d65dec4a01a3f | 827 | import java.util.*;
import java.util.concurrent.atomic.AtomicInteger;
public class Redis {
private static IRedisClient client;
public static void initialize(IRedisClient client)
{
Redis.client = client;
}
public static IRedisClient getClient()
{
return client;
}
publ... | 23.628571 | 74 | 0.533253 |
f1350b12a33123f52444a87484f0edcfb095da19 | 3,167 | /*
* Copyright 2020-2022 the original author or 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 a... | 35.58427 | 117 | 0.770761 |
a4c73f9e92df166d65f6bd18d7eb692dabab6ccf | 3,962 | package org.zerhusen.ams.rest;
import java.time.LocalDate;
import java.util.ArrayList;
import java.util.List;
import java.util.stream.Collectors;
import javax.servlet.http.HttpServletRequest;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;... | 33.863248 | 259 | 0.80944 |
ee45bd5ad843af9d98796d111b2718b022e801d9 | 1,019 | /**
* <copyright>
* </copyright>
*
*
*/
package eu.hyvar.feature.mapping.resource.hymapping.ui;
import java.util.Iterator;
import java.util.LinkedHashMap;
import java.util.Map;
import org.eclipse.swt.graphics.Color;
import org.eclipse.swt.graphics.RGB;
import org.eclipse.swt.widgets.Display;
/**
* A class for ... | 19.980392 | 75 | 0.664377 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.