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 |
|---|---|---|---|---|---|
1348394869150320fd9348ffc1b849f36b57ea3e | 1,628 | package seedu.progresschecker.logic.commands;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.ExpectedException;
import seedu.progresschecker.model.exercise.Exercise;
import seedu.progresschecker.model.exercis... | 33.916667 | 94 | 0.723587 |
cc097977da69fede70ff6d1c2a8d9533a9675467 | 264 | package demo.mina.multiconn;
public class SendThread extends Thread {
public SendThread(String name) {
super(name);
}
@Override
public void run() {
int i = 2;
while (i-->0) {
Client.send();
}
}
}
| 14.666667 | 40 | 0.515152 |
d1d98a189f209cf10182ce4896a4fcf829dc165d | 689 | package com.github.akarazhev.jacademy.jprog.collections.hashmap.v10;
import java.util.HashMap;
import java.util.Map;
public class HashMapDemo {
public static void main(String[] args) {
Map<String, Integer> map1 = new HashMap<>();
map1.put("Jay", 5000);
map1.put("Rahul", 3000);
map... | 25.518519 | 82 | 0.5791 |
234359fa74390b320016a1ffc0f91f244ee9b1f3 | 1,826 | package diergo.csv;
import java.util.function.BiConsumer;
import java.util.List;
import java.util.function.BiFunction;
import static java.util.Arrays.asList;
import static java.util.Collections.emptyList;
/**
* Error handlers to be used by the parser.
*
* @see CsvParserBuilder#handlingErrors(BiFunction)
*/
publ... | 31.482759 | 145 | 0.655531 |
061b8840822b33d2ab0a7dd02dc91c201c347a86 | 169 | package rabbitmq.test;
import rabbitmq.mgmt.model.Node;
/**
* @author Richard Clayton (Berico Technologies)
*/
public interface NodeMatcher extends Matcher<Node> {}
| 18.777778 | 53 | 0.757396 |
9745a824e438f779b462165ae22298d8e46bd5f2 | 300 | package com.example.android.persistence.model;
public interface Aktivitaet {
public long getFrist();
public boolean getStatus();
public String getTyp();
public int getMitarbeiterNr();
public int getPersonID();
public int getAktNr();
public String getNotiz();
}
| 13.636364 | 46 | 0.683333 |
d75fc4f231ac36f1d754a9d02489ceccfeb5b5c2 | 2,704 | package ru.job4j.collection.comparator;
import org.junit.Test;
import java.util.Arrays;
import java.util.Collections;
import java.util.Comparator;
import java.util.List;
import static org.hamcrest.Matchers.*;
import static org.junit.Assert.assertThat;
public class JobTest {
@Test
public void whenComaparator... | 29.391304 | 111 | 0.552515 |
e6b3432eb53b5a9b9672780b9393c19ec9ee90bf | 2,089 | package com.baz.app.lc.medium;
import java.util.*;
public class LongestChain {
/**
* "Problem Statement
* You are given a library with n words (w[0], w[1], ...,w[n-1]).
* You choose a word from it, and in each step, remove one letter from this word only if doing so yields another word in the libra... | 31.651515 | 137 | 0.51843 |
4c7d8ad4a993f65bc11fb4613d8b425e38147a1b | 2,367 | package com.stockly.android.widgets;
import android.content.Context;
import android.graphics.drawable.Drawable;
import android.util.AttributeSet;
import android.util.Log;
import android.view.View;
import com.google.android.material.textfield.TextInputEditText;
import com.stockly.android.R;
import java.util.ArrayList... | 28.178571 | 91 | 0.642586 |
73580d6cc9d233626754bc26bbc1a5180c6fdd6f | 3,093 | package uk.ac.ebi.pride.toolsuite.gui.component.proteingroup;
import java.awt.Component;
import java.awt.Dimension;
import java.awt.Rectangle;
import java.awt.Shape;
import java.awt.geom.Ellipse2D;
import java.awt.geom.RoundRectangle2D;
import java.util.Collection;
import org.apache.commons.collections15.Transformer;... | 33.619565 | 137 | 0.641772 |
efcc993ebf88038742eb0e04a695a7a49149d9a0 | 1,225 | package icfpc2020.strategy;
import icfpc2020.Commands;
import icfpc2020.Tokens;
import icfpc2020.api.GameResponse;
import icfpc2020.api.Ship;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.util.Collections;
import java.util.Comparator;
import java.util.List;
public class SplitStrategy implement... | 29.878049 | 91 | 0.577959 |
aa8f5692ab9d06f6a400bce9c04f5fbe3a3d0332 | 7,208 | package com.commercetools.sync.integration.services.impl;
import com.commercetools.sync.services.InventoryService;
import com.commercetools.sync.services.impl.InventoryServiceImpl;
import io.sphere.sdk.commands.UpdateAction;
import io.sphere.sdk.inventory.InventoryEntry;
import io.sphere.sdk.inventory.InventoryEntryDr... | 50.405594 | 126 | 0.73793 |
845a81a34745cb48cd82e4a0384afd08415dea0d | 570 | package com.yq.entity;
public class GoodsPic {
private String filename;
private byte[] content;
public GoodsPic() {
}
public GoodsPic(String filename, byte[] content) {
this.filename = filename;
this.content = content;
}
public String getFilename() {
return file... | 17.272727 | 54 | 0.598246 |
a3796076d4bc3af3d9449b9b8e18bd3029565ead | 1,148 | package com.ppdai.das.core.task;
import java.sql.SQLException;
import java.util.List;
import com.ppdai.das.client.CallableTransaction;
import com.ppdai.das.client.Hints;
import com.ppdai.das.client.Parameter;
import com.ppdai.das.core.client.DalClient;
import com.ppdai.das.core.client.DalCommand;
public... | 29.435897 | 139 | 0.682927 |
87d291e0e0c087bc2ddf820ca19699b17d9bee9a | 1,756 | package de.undefinedhuman.engine.entity.shader;
import de.undefinedhuman.engine.camera.Camera;
import de.undefinedhuman.engine.opengl.OpenGLUtils;
import de.undefinedhuman.engine.opengl.shader.ShaderProgram;
import de.undefinedhuman.engine.opengl.shader.uniforms.UniformMatrix3;
import de.undefinedhuman.engine.opengl.s... | 39.022222 | 99 | 0.763098 |
1d6f86eb4a8a238beb484ef1c541bb7ae65832bf | 472 | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.powercord869.code.robot.autonomous;
public class NoAutonomous extends AutonomousRoutine {
public NoAutonomous() {
}
public void run() {
//will never run
}
pu... | 21.454545 | 54 | 0.580508 |
c2185cbf825673566c24c05ffd7f0a7d7dc0fb01 | 1,874 | package controller;
import com.google.inject.Inject;
import com.typesafe.config.Config;
import dev.voidframework.web.bindable.WebController;
import dev.voidframework.web.http.Context;
import dev.voidframework.web.http.Result;
import dev.voidframework.web.http.param.RequestPath;
import dev.voidframework.web.http.param.... | 31.762712 | 115 | 0.691569 |
b4d401b06458a2824740f68868f5ebdfffb8a2fd | 812 | /**
* @author feiyu
* Step 1 <36, “6870 1572 1”> <37, “6870 100 0”>
* to <6870, "1572 1"> <6870, "100 0">
*/
package feiyu.com.cf;
import java.io.IOException;
import org.apache.hadoop.io.LongWritable;
import org.apache.hadoop.io.Text;
import org.apache.hadoop.mapreduce.Mapper;
import org.apache.mahout.math.VarLo... | 30.074074 | 104 | 0.71798 |
b5d00fab0028b8c6aee7a10ef2e20c84f156840a | 2,222 | package test;
import algorithms.timeseries.TimeSeries;
import algorithms.timeseries.movingaverage.AlgoCumulativeMovingAverage;
import algorithms.timeseries.reader_writer.AlgoTimeSeriesReader;
import algorithms.timeseries.reader_writer.AlgoTimeSeriesWriter;
import java.io.IOException;
import java.io.UnsupportedEncodin... | 38.310345 | 98 | 0.732223 |
7b93393d271d1d809954ab6825fc5e621113098c | 1,473 | package ru.job4j.listinmap;
/**
* Created by Admin on 31.08.2017.
*/
public class User {
/**
* Id user.
*/
private int id;
/**
* name user.
*/
public String name;
/**
* city user.
*/
public String city;
/**
* Construct.
* @param id int
* @para... | 19.12987 | 73 | 0.458248 |
1699b556d7818be259f0db347458a94b43a3dcff | 1,572 | /**
* Licensed to The Apereo Foundation under one or more contributor license
* agreements. See the NOTICE file distributed with this work for additional
* information regarding copyright ownership.
*
*
* The Apereo Foundation licenses this file to you under the Educational
* Community License, Version 2.0 (the ... | 32.75 | 137 | 0.743639 |
bd3b75ae5244ddf230cd9a38d53082e740ed1ed1 | 6,126 | package com.app.thechatrooms.ui.trips;
import android.annotation.SuppressLint;
import android.app.Notification;
import android.app.NotificationChannel;
import android.app.NotificationManager;
import android.content.Context;
import android.graphics.Color;
import android.location.Location;
import android.os.Build;
impo... | 44.715328 | 172 | 0.708456 |
d7dbd85525ff40cf79e498bb01c9e05ab5169ada | 1,655 | /* The contents of this file are subject to the license and copyright terms
* detailed in the license directory at the root of the source tree (also
* available online at http://fedora-commons.org/license/).
*/
package org.fcrepo.server.journal.entry;
import org.fcrepo.server.errors.ServerException;
import org.fcr... | 30.648148 | 83 | 0.688822 |
89e2df256141fa8880e1091f92b26d8cf38bbb85 | 1,374 | package com.map.platform.system.base.bean;
import java.util.Date;
import com.map.platform.commons.bean.BaseModel;
public class WebImg extends BaseModel{
private static final long serialVersionUID = 1L;
private Integer id;
private String title;
private String imgAddr;
private String linkAddr;
private String i... | 20.205882 | 49 | 0.727802 |
2ecc7e4704b0b81844f6cd89990e8e5d5a0d2c38 | 2,263 | package com.netease.nim.camellia.core.client.hub.standard;
import com.netease.nim.camellia.core.client.callback.OperationCallback;
import com.netease.nim.camellia.core.client.callback.ProxyClientFactory;
import com.netease.nim.camellia.core.client.env.ProxyEnv;
import com.netease.nim.camellia.core.client.hub.IProxyHu... | 38.355932 | 130 | 0.711887 |
8ec526da979820f5dbc5160f149a163a5416856f | 3,525 | package mu.nu.nullpo.game.net;
import java.io.Serializable;
import java.util.Calendar;
import mu.nu.nullpo.util.GeneralUtil;
import org.apache.log4j.Logger;
/**
* Chat message
*/
public class NetChatMessage implements Serializable {
/** Serial version */
private static final long serialVersionUID = 1L;
/** Lo... | 19.915254 | 108 | 0.643121 |
df11cbd6d82d563ec9d76d2b3e48f37d3e5a5207 | 144 | package com.mujdell2019.hackathon.models;
import com.fasterxml.jackson.databind.JsonNode;
public interface IMarshal {
JsonNode marshal();
}
| 16 | 47 | 0.798611 |
67090aaa52208473fa9c8961a530e22bf851ca3b | 3,162 | package com.xcvgsystems.hypergiant;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.Scanner;
import com.badlogic.gdx.Application.ApplicationType;
import com.badlogic.gdx.utils.TimeUtils;
import com.badlogic.gdx.Gdx;
import com.xcvgsystems.hypergiant.manage... | 17.278689 | 67 | 0.639785 |
86d207d470457419d6d50990da695b368944184e | 3,213 | /*
* Copyright 2022 ScreamingSandals
*
* 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... | 45.253521 | 125 | 0.572362 |
319d4aee1d72eb5dd9040d3c01cef484bc11edb4 | 34,691 | // Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/cloud/retail/v2beta/user_event.proto
package com.google.cloud.retail.v2beta;
public interface UserEventOrBuilder extends
// @@protoc_insertion_point(interface_extends:google.cloud.retail.v2beta.UserEvent)
com.google.protobuf.Message... | 40.338372 | 107 | 0.701652 |
41a6f16c3671ba78e7c3bd40901da2710ce66622 | 9,732 | package com.eShopool.AndroidApp.Mainpages;
import android.content.ContentResolver;
import android.content.Intent;
import android.content.SharedPreferences;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.net.Uri;
import android.os.Bundle;
import android.os.Handler;
import android.... | 38.314961 | 109 | 0.535656 |
da609b1bfb9e43421961c90a990e1f9b8c536119 | 904 | package com.sap.iot.azure.ref.notification.util;
public class Constants {
private Constants() {
}
//Notification Processor Function Constants
public static final String TRIGGER_NAME = "notification";
public static final String TRIGGER_EVENT_HUB_NAME = "sap.iot.modelabstraction.meta.change.v1";
... | 50.222222 | 116 | 0.783186 |
67a66b35d26765f84b52b481eb4e30c351ccb4df | 476 | package com.wukongnotnull.vo;
//author: 悟空非空也(B站/知乎/公众号)
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.io.Serializable;
@Data
@NoArgsConstructor
@AllArgsConstructor
public class ResponseResult implements Serializable {
//是否响应成功 true 成功 false 失败
private bo... | 17.62963 | 53 | 0.735294 |
97818923a569537730aa3d42ce30d63aef6cc48d | 1,077 | package hu.vanio.minta.controller;
import java.util.ArrayList;
import java.util.List;
import org.springframework.http.HttpStatus;
import org.springframework.web.bind.annotation.*;
/**
* A üzenetkezeléséhez használható REST végpontok
*
* @author Szalai Gyula <gyula.szala@vanio.hu>
*/
@RestController
@RequestMapp... | 26.268293 | 69 | 0.703807 |
cf298733351b7e35725e78d8f67a8e27f7e35c3e | 528 | package demo04;
import java.util.ArrayList;
public class demo06ArrayListStudent {
public static void main(String[] args) {
ArrayList<Student> list = new ArrayList<>();
list.add(new Student(22,"洪七公"));
list.add(new Student(23,"欧阳锋"));
list.add(new Student(53,"黄药师"));
list.... | 25.142857 | 72 | 0.556818 |
caca126460809f317367afdca8d91bd0cac2fb2a | 4,798 | package org.innovateuk.ifs.interview.workflow.configuration;
import org.innovateuk.ifs.application.domain.Application;
import org.innovateuk.ifs.application.repository.ApplicationRepository;
import org.innovateuk.ifs.interview.domain.InterviewAssignment;
import org.innovateuk.ifs.interview.domain.InterviewAssignmentMe... | 46.582524 | 181 | 0.816173 |
23026e321e889dfae513ea51b532e66133c6f554 | 5,616 | /*
* 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.osedu.org/licenses/ECL-2.0
*
* Unless required by applicab... | 27.80198 | 87 | 0.71688 |
d9774f673ddaa83f4e4678a00931c66cba4b464d | 621 | package engine;
import java.util.Collections;
import java.util.HashMap;
import java.util.LinkedHashSet;
import java.util.Map;
import java.util.Set;
public class Context {
private final Set<String> errors = new LinkedHashSet<>();
private final Map<String, Object> data = new HashMap<>();
public void addError(Strin... | 20.032258 | 58 | 0.718196 |
002b15a3219d9603ac0aa15bb1240ffe042ee50b | 12,964 | begin_unit|revision:0.9.5;language:Java;cregit-version:0.0.1
begin_comment
comment|// Copyright (C) 2011 The Android Open Source Project
end_comment
begin_comment
comment|//
end_comment
begin_comment
comment|// Licensed under the Apache License, Version 2.0 (the "License");
end_comment
begin_comment
comment|// you m... | 14.261826 | 540 | 0.813329 |
cefa468db9e118f276554254422c942b08128427 | 2,055 | package com.github.loki4j.logback;
import java.util.Random;
import com.github.loki4j.common.HttpHeaders;
import com.github.loki4j.testkit.dummy.LokiHttpServerMock;
import static com.github.loki4j.logback.Generators.*;
import static com.github.loki4j.logback.Loki4jAppenderTest.*;
import org.junit.AfterClass;
import ... | 28.150685 | 94 | 0.639416 |
4cec6e03d9a2e4b77f0b1f58d103a40ae5da1300 | 1,682 | package hirs.data.persist.enums;
/**
* Identifies the type of component.
*/
public enum ComponentType {
/**
* Baseboard.
*/
BASEBOARD(Values.BASEBOARD),
/**
* BIOS or UEFI.
*/
BIOS_UEFI(Values.BIOS_UEFI),
/**
* Chassis.
*/
CHASSIS(Values.CHASSIS),
/**
*... | 18.898876 | 85 | 0.497027 |
41b44900b39dcceb442dc70b606a063fba88c56c | 10,003 | package ru.ucvt.simulatorcasino;
import android.app.Activity;
import android.app.AlertDialog;
import android.content.DialogInterface;
import android.content.Intent;
import android.content.pm.ActivityInfo;
import android.os.Bundle;
import android.view.View;
import android.view.animation.ScaleAnimation;
import android.w... | 36.775735 | 141 | 0.510147 |
b50223f3df34b2f22dee04e7ca78a1811a6b437d | 310 | package com.geowarin;
import org.Springframework.boot.SpringApplication;
import org.Springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
public class AppApplication {
public static void main(String[] args) {
SpringApplication.run(AppApplication.class, args);
}
}
| 23.846154 | 68 | 0.787097 |
6e0534953e1dcbc1e20bdb8694f96175f86de67d | 405 | package ch.admin.bag.covidcertificate.api.request;
public enum Issuable {
CH_AND_ABROAD("ch_and_abroad"),
CH_ONLY("ch_only"),
ABROAD_ONLY("abroad_only"),
UNDEFINED("undefined");
/**
* The code used to store the value.
*/
private String code;
Issuable(String code) {
this... | 17.608696 | 50 | 0.609877 |
dc7f4f208b2ec3a45b0e5244c67ff2a54aa2fa1f | 132 | package io.agora.vlive.protocol.model.response;
public class ModifyUserStateResponse extends Response {
public boolean data;
}
| 22 | 55 | 0.80303 |
82da84c8db975f2b283f6536a042aac500f844d3 | 690 | package ClassificationTraining.SpringSprint;
import java.util.ArrayList;
import java.util.List;
/**
* @Classname InorderTraversal
* @Description TODO
* @Date 2021/2/9 20:51
* @Created by Administrator
*/
public class InorderTraversal {
List<Integer> res = new ArrayList<>();
public List<Integer> inorderT... | 19.714286 | 58 | 0.582609 |
55ce1cbaf964589b57e5e74184b2cabb47a00311 | 2,051 | /*
* DBeaver - Universal Database Manager
* Copyright (C) 2010-2019 Serge Rider (serge@jkiss.org)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/license... | 37.981481 | 134 | 0.738176 |
06e4d6eb3e52f17a0678564ebc45e0bb22804215 | 3,604 | package algoritms_data_structures;
import static org.junit.Assert.*;
import org.junit.Test;
public class QueueTest {
@Test
public void testQueueAddPerson() {
try {
//Arrange
Queue queue = new Queue(4);
//Act
queue.addPerson("John");
String response = queue.removePerson();
//Assert
... | 16.762791 | 54 | 0.603774 |
6df5d7a2bf449b0dd753f133f30ec348bc65eb9a | 6,172 | package com.example.zhang.myapplication;
import android.Manifest;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import android.content.pm.PackageManager;
import android.net.wifi.ScanResult;
import android.net.wifi.WifiManag... | 40.339869 | 177 | 0.586196 |
9645869b83c3978fd8ea011a953d5da7526614dd | 788 |
public class _7ReverseInteger {
public int reverse(int x) {
long newSum = 0;
while (x != 0){
newSum = newSum * 10 + x % 10;
x = x/10;
}
if (newSum > Integer.MAX_VALUE || newSum < Integer.MIN_VALUE){
return 0;
}else return (int)newSum;
}
public... | 23.878788 | 70 | 0.612944 |
ab09bdfd91a053c63959cc893a7c9520e0567c5c | 988 | package org.openrepose.commons.utils.io;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.io.IOException;
import java.io.InputStream;
import java.io.ObjectInputStream;
import java.io.ObjectStreamClass;
public class ThreadContextAwareObjectInputStream extends ObjectInputStream {
private static... | 32.933333 | 105 | 0.761134 |
c57379781414587a0ae8156b651230cf76df080a | 1,790 | /*
* 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 ... | 38.085106 | 97 | 0.773184 |
2f6048c511c7a6ee469ae112b895461e94d9d15b | 301 | package com.damoo.samples.models;
import java.util.UUID;
public class QueueObj {
public String id;
public String name;
public String favouriteFruit;
public QueueObj(String name, String favouriteFruit) {
this.name = name;
this.favouriteFruit = favouriteFruit;
}
} | 21.5 | 57 | 0.694352 |
89b7961ee1c96a1879d1df36b05a7d3c70e74a9d | 677 | package yu.com.Wifi.wifiway;
import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.widget.Button;
import yu.com.Wifi.R;
public class User extends AppCompatActivity {
private Button mReturnButton;
@Override
protected void onCreate(Bundle ... | 28.208333 | 63 | 0.694239 |
761a7afd26331e06001d79f244b6533e4d8a1d83 | 1,671 | package modelo;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Date;
import aplicacao.IDInterface;
/**********************************
* IFPB - Curso Superior de Tec. em Sist. para Internet
* POB - Persistencia de Objetos
* Prof. Fausto Ayres
*
*/
public class Pessoa implements I... | 19.206897 | 69 | 0.657092 |
35ef00a33e5e9ad7dc8467881846776b898c48b2 | 8,240 | package com.badoo.hprof.library.model;
import com.badoo.hprof.library.util.StreamUtil;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
/**
* Model for a Java class. ClassDefinition contains data from two different hprof records, LOAD_CLASS and CLASS_DUMP (He... | 34.049587 | 136 | 0.655704 |
3032b4ee53dda5fde0eb4c95a327f783e083845b | 265 | package machinecoding.splitwise.model;
/**
* The enum Expense type.
*/
public enum ExpenseType {
/**
*Exact expense type.
*/
EXACT,
/**
*Percent expense type.
*/
PERCENT,
/**
*Share expense type.
*/
SHARE,
/**
*Equal expense type.
*/
EQUAL
}
| 11.041667 | 38 | 0.607547 |
c57658b2d76343bb375608fbe3fcb551d65f8a66 | 2,594 | package com.hyr.quartz.listener;
import com.hyr.quartz.utils.MxBeanManager;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.quartz.JobListener;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.util.concurrent.ConcurrentHashMap;
/*************************... | 31.634146 | 120 | 0.635312 |
d7ecbe24a6bc3ae1e4900477715fdf296d48173c | 3,919 | package org.opensha.sha.gcim.calc;
import java.io.IOException;
import java.rmi.Remote;
import java.rmi.RemoteException;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Map;
import org.opensha.commons.data.Site;
import org.opensha.commons.data.function.ArbitrarilyDiscretizedFunc;
import org.open... | 40.402062 | 110 | 0.772391 |
c64224321d4c6e6b63b0c1ba56204b8dabaa0c25 | 13,980 | /*
* Copyright 2020 YugaByte, Inc. and Contributors
*
* Licensed under the Polyform Free Trial License 1.0.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://github.com/YugaByte/yugabyte-db/blob/master/licenses/POLYFORM-FREE-T... | 31.557562 | 99 | 0.679685 |
e24ce78f05f7196f5ce7ed853a9ab35cbacb4fc2 | 21,806 | package com.martin.butterfly.master;
import android.graphics.Path;
import android.graphics.Rect;
/**
* 作者:MartinBZDQSM on 2016/9/2 0002.
* 博客:http://www.jianshu.com/users/78f0e5f4a403/latest_articles
* github:https://github.com/MartinBZDQSM
*/
public class ButterFly {
public Path p = new Path();
private... | 77.601423 | 120 | 0.653811 |
dbc29ba28e8a525a26a8b9a3894cb2eefd980ddc | 7,919 | package enegade.uml.debugger.stepmethodcall;
/*
* Copyright 2020 enegade
*
* This file is part of the enegade.uml package.
*
* This file is distributed "AS IS", WITHOUT ANY WARRANTIES.
*
* For the full copyright and license information, please view the LICENSE
* file distributed with this project.
*/
import ... | 29.113971 | 126 | 0.604369 |
2b076dafcb352b368acc6bc3cc79a0e01c831070 | 4,411 | /*
* 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 ... | 33.671756 | 111 | 0.589209 |
939dd43a0eab74ef7118f16dd4f1c53608a004ff | 3,203 | package com.routon.smartcampus.createcode;
import java.io.File;
import java.math.BigDecimal;
import java.sql.Date;
import java.text.SimpleDateFormat;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.Matrix;
import android.net.Uri;
import android.os.Bundle;
import android.... | 33.020619 | 140 | 0.761474 |
a830b5bf4c2ecb6bde68e60054f34dec92a00f84 | 2,946 | package newGameLogic;
import main.Output;
public class GameBoard extends Board {
/**
* creates a single GameBoard object
* @param player1 player1 for the board
* @param player2 player2 for the board
* @return returns the GameBoard just created
*/
public static GameBoard createGameBoard(Player player1, Pla... | 32.373626 | 104 | 0.718262 |
93753b9eaeae9e79e3f2708911fb4d976886edff | 168 | package argmus.restaurantwebapp.service;
import argmus.restaurantwebapp.model.Address;
public interface AddressService {
Address saveAddress(Address address);
}
| 18.666667 | 45 | 0.815476 |
6847bb6fb69426be694076d7e4f8c3c9d208117d | 3,083 | package me.senseiwells.arucas.values.functions;
import me.senseiwells.arucas.api.ISyntax;
import me.senseiwells.arucas.throwables.CodeError;
import me.senseiwells.arucas.utils.Context;
import me.senseiwells.arucas.utils.impl.ArucasList;
import me.senseiwells.arucas.values.ListValue;
import me.senseiwells.arucas.values... | 33.879121 | 133 | 0.76938 |
be407895fc061f52b3efe5462a5c82d1f4054960 | 4,990 | /*
* 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 ... | 35.899281 | 133 | 0.62024 |
61e83d0ff34ae425bb3e82966001d349d02d0664 | 1,223 | package com.epam.jdi.light.settings;
import org.openqa.selenium.Dimension;
import java.util.List;
import static com.epam.jdi.light.common.Exceptions.exception;
import static com.epam.jdi.tools.RegExUtils.matches;
import static java.lang.Integer.parseInt;
public class ScreenSize {
public int width, height;
p... | 28.44186 | 128 | 0.611611 |
261a8a9e0628bca9994bda255784f7a00a7215ac | 5,140 | /**
* Copyright 2010 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed t... | 30.595238 | 89 | 0.681323 |
0d9cc72d1b9fc576677717ba1ae4917e3a086711 | 1,774 | /*
* RTask.java
*
* Copyright (C) 2010-2016, Microsoft Corporation
*
* This program is licensed to you under the terms of Version 2.0 of the
* Apache License. This program is distributed WITHOUT
* ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,
* MERCHANTABILITY OR FITNESS FOR A PARTICULAR... | 36.204082 | 84 | 0.700113 |
c63ceac9cad1e0ef17036a8b528a77daae6ff0c7 | 10,255 | package com.akaalapps.wifinetworkspecifierconnect;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.net.ConnectivityManager;
import android.net.ConnectivityManager.NetworkCallback;
import android.net.Network;
import android.net.NetworkCapabilities;... | 43.638298 | 149 | 0.625841 |
8f9ac8b03d575adb40da92159ddcdb81da16e241 | 3,512 | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | 32.220183 | 103 | 0.755125 |
db539501cde75fe488475db81bc1c9cc4119656a | 8,017 | //package hellogbye.com.hellogbyeandroid.fragments;
//
//import android.app.Activity;
//import android.app.Fragment;
//import android.content.BroadcastReceiver;
//import android.content.Context;
//import android.content.Intent;
//import android.content.IntentFilter;
//import android.os.Bundle;
//import android.text.met... | 36.276018 | 144 | 0.62829 |
3a694379720cc31590955047059d192c7b3cdf82 | 5,778 | package com.gdxsoft.easyweb.define.group;
import java.io.File;
import java.io.IOException;
import org.json.JSONObject;
import com.gdxsoft.easyweb.conf.ConfScriptPaths;
import com.gdxsoft.easyweb.data.DTTable;
import com.gdxsoft.easyweb.datasource.DataConnection;
import com.gdxsoft.easyweb.define.ConfigUtils;
import ... | 26.383562 | 207 | 0.735895 |
c1618174f173e91c0781a631700992af63091aa4 | 357 | package br.udesc.ppr55.hi.model.decorator;
import br.udesc.ppr55.hi.model.WaterLily;
public class RedFrog extends WaterLilyDecorator {
public RedFrog(WaterLily waterLily) {
super(waterLily);
this.setImage("images/water-lily-with-pink-frog.png");
}
@Override
public String getFrogColo... | 18.789474 | 62 | 0.672269 |
922782c494a48baebf1f1ddd9fdff9432a3a09d0 | 1,177 | package inheritance;
public class Review {
private String author;
private double numberOfStarsR;
private String body;
private String business;
private String movieName;
public Review(String author, double numberOfStarsR, String body, String business) {
this.author = author;
thi... | 26.155556 | 166 | 0.645709 |
14be4219505840389aea10df9b61eb521bb1f9ae | 1,902 | /*
* StringTaggerDemo2.java - StringTaggerDemo2 is demonstration program for Sen.
*
* Copyright (C) 2002-2004 Takashi Okamoto Takashi Okamoto <tora@debian.org>
*
* This library is free software; you can redistribute it and/or modify it under
* the terms of the GNU Lesser General Public License as publishe... | 35.222222 | 81 | 0.668244 |
a0c63373ccbc162807db59431cd5d55a9f28e279 | 1,818 | package opennaef.rest.api.spawner;
/**
* MvoDtoDesc を JSON に変換する際に、同一階層のものだけを Dto へ変換できるようにするためのThreadLocal変数を保持する
*/
public class ConvertVariable extends ThreadLocal<String> {
private static ThreadLocal<Vars> holder = new ThreadLocal<Vars>() {
@Override
protected Vars initialValue() {
... | 22.725 | 83 | 0.570407 |
c6c24c00adb75c6379af20938680ffc7138cff85 | 2,913 | /* Copyright (c) 2017 LibJ
*
* 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, distribu... | 35.52439 | 137 | 0.693786 |
4d59831774c64c01b78d02614306b9e879f2849e | 10,063 | /*
* Copyright 2011 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 agreed t... | 40.252 | 141 | 0.659843 |
1b1ee38557d99e064aef83a493098aa5b01091a3 | 1,202 | package de.atacama.apenio.nks.api.builder.rest;
import de.atacama.apenio.nks.api.NksQuery;
import de.atacama.apenio.nks.api.NksResponse;
import de.atacama.apenio.nks.api.builder.Type;
import de.atacama.apenio.nks.api.io.net.RestClient;
import org.elasticsearch.action.search.SearchRequest;
import java.io.IOException;
... | 20.724138 | 60 | 0.613145 |
7ebc5d98126aeb18e017a35d633a36ca102312ac | 846 | package com.ipincloud.iotbj.srv.dao;
import com.ipincloud.iotbj.srv.domain.RoleBtn;
import org.apache.ibatis.annotations.Param;
import java.util.List;
import java.util.Map;
import com.alibaba.fastjson.JSONObject;
//(RoleBtnDao) 表数据库访问层
//generate by redcloud,2020-07-21 21:46:14
public interface RoleBtnDao {
//@para... | 32.538462 | 66 | 0.71513 |
2d7204d1dfe7b8bb471b01dd2822941c47f7fba5 | 5,058 | /*
* Copyright 2022 Pavel Kastornyy.
*
* 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... | 36.652174 | 120 | 0.682285 |
e9e1403f65c7b3473ca7886e4d8ee7da421e701b | 323 | class Matrix {
public static void main(String args[]) {
double m[][] = {
{ 0*0, 1*0, 2*0, 3*0},
{ 0*1, 1*1, 2*1, 3*1},
{ 0*2, 1*2, 2*2, 3*2},
{ 0*3, 1*3, 2*3, 3*3}
};
int i, j;
for(i = 0; i < 4; i++) {
for(j = 0; j < 4; j++)
System.out.print(m[i][j] + " ");
System.out.println();
}
... | 19 | 41 | 0.414861 |
8487ceff1755c93767d09fa1d4bb9b185dcae73e | 4,880 | // Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/api/metric.proto
package com.google.api;
public final class MetricProto {
private MetricProto() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistryLite registry) {
}
public static void registerA... | 50.309278 | 127 | 0.740164 |
46ee41975cc6243531f33c5dbfdbb73750d92063 | 2,319 | package io.spokestack.spokestack;
import android.content.Context;
import androidx.annotation.NonNull;
import io.spokestack.spokestack.tts.AudioResponse;
import io.spokestack.spokestack.tts.TTSComponent;
import io.spokestack.spokestack.tts.TTSEvent;
import io.spokestack.spokestack.tts.TTSListener;
/**
* Text-to-speec... | 33.608696 | 80 | 0.717551 |
dcf87d4d93b377b011f381b9988e92dba4dbaba6 | 16,288 | /*
* JBoss, Home of Professional Open Source.
* Copyright 2021, Red Hat, Inc., and individual contributors
* as indicated by the @author tags. See the copyright.txt file in the
* distribution for a full listing of individual contributors.
*
* This is free software; you can redistribute it and/or modify it
* unde... | 44.021622 | 119 | 0.705427 |
8962ffa721a0579b8f589d613a9651df9403a325 | 337 | //,temp,sample_7290.java,2,11,temp,sample_1639.java,2,10
//,3
public class xxx {
public void exceptionCaught(ChannelHandlerContext ctx, Throwable cause) throws Exception {
if (consumer.isRunAllowed()) {
if (cause instanceof ClosedChannelException) {
} else {
log.info("closing channel as an exception was thrown from n... | 22.466667 | 90 | 0.753709 |
dc57b76c6863946a5c86d82076e8d9c519c2c5f8 | 4,188 | /*
* 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 m... | 33.238095 | 76 | 0.716571 |
13519c595e24d41fb2be89514a4d74d57a787882 | 437 | package io.cem.modules.cem.service;
import io.cem.modules.cem.entity.ScoreCollectLayerEntity;
import java.util.List;
import java.util.Map;
import java.util.concurrent.ExecutionException;
public interface ScoreCollectLayerService {
void saveScores(String stime, String etime) throws ExecutionException, In... | 31.214286 | 97 | 0.782609 |
42bae28d7035488e3889f9ca0e9198cc4b37d417 | 1,316 | package com.kiminonawa.mydiary.main.topic;
import com.kiminonawa.mydiary.R;
/**
* Created by daxia on 2016/10/17.
*/
public class Diary implements ITopic {
private String title;
private long id;
private long count;
private int color;
private boolean pinned = false;
public Diary(long id, S... | 16.871795 | 52 | 0.576748 |
8d991c23caa5ab993ae4fc4c321243449d61c1da | 12,020 | package main;
import java.awt.Color;
import java.awt.image.BufferedImage;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.ArrayList;
import java.util.HashMap;
import javax.imageio.ImageIO;
import ac.AdaptiveArithmeticDecompress;
im... | 28.551069 | 98 | 0.617138 |
8065fcc457a7478ecb1545f8f4a91c2cc627410d | 223 | package com.atc.simulator.display.model;
/**
* Created by luke on 21/09/16.
*
* @author Luke Frisken
*/
public enum PredictionDisplayMethod {
WIREFRAME,
GRADIENT,
CENTRE_LINE_ONLY,
TWO_LINE,
NONE
}
| 14.866667 | 40 | 0.672646 |
0973e9b7e3f56af0d86ba172208eab73a579496c | 700 | package com.skrivet.supports.menu.dao.mongodb.item.template.update;
import com.skrivet.core.common.entity.NameValueEntity;
import org.springframework.data.mongodb.core.mapping.Field;
import java.util.List;
public class MenuItemUpdateTemplate {
private String parentId;
//名称
private String menuKey;
//... | 22.580645 | 67 | 0.707143 |
61c6b7ae60713d0c0879597227bced24ea7ee6a2 | 6,031 | package com.planet_ink.coffee_mud.Abilities.Songs;
import com.planet_ink.coffee_mud.core.interfaces.*;
import com.planet_ink.coffee_mud.core.*;
import com.planet_ink.coffee_mud.core.collections.*;
import com.planet_ink.coffee_mud.Abilities.interfaces.*;
import com.planet_ink.coffee_mud.Areas.interfaces.*;
import ... | 30.306533 | 169 | 0.663903 |
f8ef40345cea1b1c84121ab3acd6427a000f6550 | 43,928 | package com.trade.barter;
import android.app.ActionBar;
import android.app.Activity;
import android.app.AlertDialog;
import android.app.PendingIntent;
import android.app.ProgressDialog;
import android.content.DialogInterface;
import android.content.Intent;
import android.content.IntentFilter;
import android.content.Sh... | 40.007286 | 229 | 0.59766 |
f7ef34e02dccd3ec2a236a58c1cd8fbf57938504 | 1,403 | package br.estacio.pos.pioo.web.command.navegacao;
import java.io.IOException;
import java.sql.SQLException;
import javax.servlet.RequestDispatcher;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import br.estacio.pos.pioo.domain.Ca... | 26.471698 | 92 | 0.752673 |
1d44bf08229043ca9d49bb4838754f0573a9e063 | 947 | import java.io.*;
import java.math.*;
import java.security.*;
import java.text.*;
import java.util.*;
import java.util.concurrent.*;
import java.util.regex.*;
public class Solution {
// Complete the marsExploration function below.
public static int marsExploration(String message) {
String sos ="SOS";
... | 24.921053 | 105 | 0.652587 |
32433c795c209f537b3c65d6c0a53eab83ab1eac | 2,031 | package cn.isjinhao.se.test;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.time.ZoneId;
import java.time.format.DateTimeFormatter;
import java.util.Calendar;
import java.util.Date;
/**
* @Author ISJINHAO
* @Date 2021/8/1 23:37
*/
public class DateTest {
public static void main(String... | 29.867647 | 111 | 0.650911 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.