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 |
|---|---|---|---|---|---|
24bd1493ce7e23aba919d7f8225056ca60d82a22 | 4,372 | import org.apache.spark.SparkConf;
import org.apache.spark.api.java.JavaPairRDD;
import org.apache.spark.api.java.JavaSparkContext;
import org.sparkproject.guava.collect.Lists;
import scala.Tuple2;
import java.util.*;
public class ActorTopMovies {
public static class MyComparator implements Comparator<Tuple2<Str... | 47.010753 | 156 | 0.533166 |
43933e1f18f4af8e3cafa758ebfd2ef76bc5d176 | 2,609 | package gov.faa.ang.swac.common.interfaces;
import gov.faa.ang.swac.common.flightmodeling.FlightLeg;
import gov.faa.ang.swac.common.flightmodeling.Itinerary;
import gov.faa.ang.swac.common.flightmodeling.TrajectoryState;
import gov.faa.ang.swac.datalayer.DataAccessException;
/**
*
* @author ssmitz
*/
public interf... | 51.156863 | 136 | 0.766194 |
13a5e20d6e9a5224add47ad4394b0781dc843d85 | 14,843 | /*
HostConnectProfile.java
Copyright (c) 2014 NTT DOCOMO,INC.
Released under the MIT license
http://opensource.org/licenses/mit-license.php
*/
package com.nttdocomo.android.dconnect.deviceplugin.host.profile;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import android.bluetooth.BluetoothAdapt... | 32.408297 | 115 | 0.613488 |
31b974c53810b31f5beb1dc8930ec32e038d08b4 | 3,060 | package cn.bitflash.vip.index.controller;
import cn.bitflash.annotation.Login;
import cn.bitflash.entity.UserGetuiEntity;
import cn.bitflash.entity.UserInfoEntity;
import cn.bitflash.entity.UserSecretEntity;
import cn.bitflash.interceptor.ApiLoginInterceptor;
import cn.bitflash.utils.*;
import cn.bitflash.vip.index.en... | 36 | 114 | 0.674837 |
0a44dc9ca50be61347448fc8c7b3eec6ee90459c | 442,387 | /* AUTO-GENERATED FILE. DO NOT MODIFY.
*
* This class was automatically generated by the
* aapt tool from the resource data it found. It
* should not be modified by hand.
*/
package com.jhonts.flutterduck;
public final class R {
public static final class anim {
public static final int abc_fade_in=0... | 59.468611 | 176 | 0.664165 |
9933e88e7ff6fe56b4c47a082bd25841bc90f7bf | 2,931 | package j3dio.stl;
import java.nio.ByteBuffer;
import j3dio.Byteable;
import j3dio.Point3f;
/**
* @author Evan Shimoniak
* @since 4.0
**/
public class FaceT implements Byteable {
public Point3f normal = new Point3f();
public Point3f vert1 = null;
public Point3f vert2 = null;
public Point3f vert3 = null;
publi... | 24.02459 | 117 | 0.622313 |
bb9b069f874389271ed732e7d3da39c99a7bd405 | 863 | package com.zapp.library.merchant.network.response;
import android.support.annotation.Nullable;
import com.zapp.library.merchant.exception.ZappError;
import java.util.List;
/**
* PBBA bank Logo service response
*/
public class PBBABankLogoResponse {
private final List<AvailableBankAppsResponse> availableBankA... | 28.766667 | 136 | 0.764774 |
c1452575c506198c749a6ecf93efbda56306052b | 4,955 | /*
* Copyright (c) 2014-2015 University of Ulm
*
* See the NOTICE file distributed with this work for additional information
* regarding copyright ownership. 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... | 40.950413 | 220 | 0.686377 |
0b9c4c568e24762404398ea148a7d3abcfca4f06 | 6,617 | /* For LarKC */
package com.cyc.tool.subl.jrtl.nativeCode.type.stream;
import static org.armedbear.lisp.Keyword.ERROR_KEYWORD;
import static org.armedbear.lisp.Keyword.IO_KEYWORD;
import static org.armedbear.lisp.Keyword.TEXT_KEYWORD_CHARACTER;
import org.armedbear.lisp.Keyword;
import org.armedbear.lisp.Stream;
impo... | 24.969811 | 117 | 0.742028 |
20fe3decf3baba7b8b36c829e328a875e0dad897 | 1,284 | package com.pinicius.android.casapiclient.model;
import com.google.gson.annotations.SerializedName;
import java.util.List;
/**
* Created by pinicius on 26/11/16.
*/
public class RoomDto {
@SerializedName("id") private int id;
@SerializedName("name") private String name;
@SerializedName("capacity") pri... | 21.762712 | 73 | 0.48676 |
df7d8a026d337748c9d25a2180ce7ebb252c6d2b | 5,576 | package dev.domain;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
/**
*
* @author mtremion
*
* Classe véhicule. Un véhicule contient : un ID auto incrémenté lors de
* ... | 21.363985 | 109 | 0.671987 |
f4fb90635bdc959cca384a114f6318a61588f2bc | 197 | package com.mafour.api.service.info;
import lombok.Builder;
import lombok.Data;
@Data
@Builder
public class PersonInfo {
private String icon;
private String title;
private String url;
}
| 12.3125 | 36 | 0.751269 |
0cdfd0a2c0706c3f5bf1431b0048c418f18b1d29 | 325 | package model;
/**
* Created by pedroguimaraes on 9/27/16.
*/
public class ConstStringValue extends StringValue {
private String value;
public ConstStringValue(String value, int line) {
super(line);
this.value = value;
}
@Override
public String value() {
return value;
... | 18.055556 | 53 | 0.627692 |
82d74932f3dd91424655fd53fe10174b77367413 | 25,660 | package org.gbif.pipelines.core.converters;
import com.fasterxml.jackson.databind.node.TextNode;
import com.google.common.base.Strings;
import java.util.ArrayList;
import java.util.List;
import java.util.Map.Entry;
import java.util.Objects;
import java.util.Optional;
import java.util.stream.Collectors;
import lombok.B... | 45.176056 | 100 | 0.70834 |
a47882dbbcf21d995b77389fcd823def816d4e1c | 1,502 | /*
* Copyright 2007 skynamics AG
*
* 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 applic... | 31.291667 | 109 | 0.704394 |
d99ab9d7c21d0bb0d83dc0c4596dc66d20811250 | 869 | package me.dommi2212.BungeeBridge.events.unwrapped;
import java.util.UUID;
import net.md_5.bungee.api.plugin.Event;
/**
* An event representing Spigot's PlayerCommandPreprocessEvent.
*/
public class PlayerCommandPreprocessEvent extends Event {
private UUID uuid;
private String message;
private String bungeena... | 17.38 | 84 | 0.696203 |
7396ed2cb226b776fd3822000d05f11e939e748e | 5,646 | package com.hjg.base.util;
import android.annotation.SuppressLint;
import android.app.Activity;
import android.content.ComponentName;
import android.content.Context;
import android.content.Intent;
import android.content.pm.PackageManager;
import android.content.pm.ResolveInfo;
import android.net.Uri;
import android.os... | 31.19337 | 160 | 0.652497 |
1e2312c84143582390e2ed1c333cd7899ba99a85 | 1,242 | package edu.ntu.compilers.lab4.util;
import java.util.Iterator;
import java.util.List;
/**
* Author: Domi
* Date: Mar 25, 2011
* Time: 9:35:11 PM
*/
public class FormatHelper {
public static String toDebuggableString(String str) {
String out = "";
for (char c : str.toCharArray()... | 24.352941 | 67 | 0.47504 |
aab9390304ac0a463b005e2f3d79627000fb5aa6 | 3,703 | package xyz.monkeytong.hongbao.utils.log2file;
import android.util.Log;
import com.apkfuns.logutils.LogLevel;
import com.apkfuns.logutils.file.LogFileEngine;
import com.apkfuns.logutils.file.LogFileParam;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.text.DateForm... | 27.227941 | 96 | 0.535512 |
a5b3252ca8b11c4fcb78e0345e318218c99fb425 | 75 | /**
* Provides classes to get subscriptions
*/
package api.subscriptions; | 18.75 | 40 | 0.746667 |
715f9b07823724822e70346cf020eb4d46439fea | 4,862 | // Ben Nathanson
// https://leetcode.com/submissions/detail/263178869/
// Self-critique for next time:
// We can use c - '0' instead of Ctoi(c) to get the int value of a char
// str.trim() removes leading whitespaces from a string
// Boundary values were a big pain point in this challenge.
// There are simpler ways of ... | 40.181818 | 93 | 0.534554 |
6e0d87c94fb66f8395c8df13f549be02075e174a | 967 | package com.univocity.articles.jmh;
import com.univocity.articles.jmh.params.FileToProcess;
import org.openjdk.jmh.annotations.*;
import org.openjdk.jmh.infra.Blackhole;
import org.simpleflatmapper.csv.CsvParser;
import org.simpleflatmapper.util.CheckedConsumer;
import java.io.Reader;
import java.util.concurrent.Time... | 23.02381 | 61 | 0.754912 |
3d7f0b56c17bf5beabf59b4b14aa71560f725f17 | 2,098 | package base;
import static play.test.Helpers.fakeApplication;
import static play.test.Helpers.inMemoryDatabase;
import java.util.List;
import models.Anuncio;
import org.junit.Test;
import play.db.jpa.JPA;
import play.test.FakeApplication;
import play.test.WithBrowser;
/**
*
* @author Vinicius
*
*/
public cl... | 33.83871 | 222 | 0.647283 |
846c3c6268c115e7f5dd6efb5ee2713b88b8503f | 2,548 | package uk.ac.ucl.jsh.model.programs;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.NoSuchFileException;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
public class MakeDirectory extends AbstractProgram {
publi... | 33.090909 | 84 | 0.58595 |
46c62cf25df4c83015a243fb3785d48573de681e | 777 | package com.jn.langx.util.collection.iter;
import java.util.ListIterator;
public class EmptyIterator<E> implements ListIterator<E> {
public static final EmptyIterator INSTANCE = new EmptyIterator();
@Override
public boolean hasNext() {
return false;
}
@Override
public E next() {
... | 14.942308 | 69 | 0.57529 |
99c60975bc89d521d56e02c9c6364347865df10e | 22,720 | package com.sec.myPowerSpy;
import android.annotation.SuppressLint;
import android.app.Service;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import android.location.Location;
import android.location.LocationListener;
impor... | 42.074074 | 164 | 0.564437 |
7b2957ca1aa4acde380c6346606522be9654a155 | 3,493 | /*
* * Copyright (C) 2013-2018 Matt Baxter https://kitteh.org
*
* 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, co... | 32.045872 | 108 | 0.65073 |
699ec55d283c9d855bed13261df65b0260ac8a75 | 1,244 | package nz.co.hmccarth;
import java.util.concurrent.TimeUnit;
import javax.annotation.Nonnegative;
import javax.annotation.Nonnull;
import nz.co.hmccarth.controller.ControllerInterface;
public class Procrustes {
private long _MeasureIntervalInMillis;
private ControllerInterface _controller;
private boolean _runn... | 22.618182 | 101 | 0.717846 |
00e2232589d62b2aa2cfd4a4091351ee44c4f21f | 936 | package org.folio.circulation.services.feefine;
import static org.folio.circulation.support.json.JsonObjectArrayPropertyFetcher.mapToList;
import java.util.List;
import org.folio.circulation.domain.FeeFineAction;
import org.folio.circulation.support.http.client.Response;
import io.vertx.core.json.JsonObject;
import... | 30.193548 | 90 | 0.800214 |
e9b2c1c9d88584ae8c1be7125584ba4bae4f9f42 | 2,766 | package ru.pravvich.service;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.boot.test.mock.mockito.MockBean;
import org.springframewor... | 29.741935 | 85 | 0.74295 |
0c8e606f7e9f93b4f02e249eb949f9e312012d40 | 695 | package Main;
import service.Properties;
import service.rm.ReplicaManager;
public class RM3_Run {
public static void start(){
System.out.println("Initializing " + Properties.rm3Name
+ " at " + Properties.RM_3_INET + ":" + Properties.RM_3_LISTENING_PORT);
ReplicaManager replicaMana... | 31.590909 | 134 | 0.670504 |
c8384c1ec958370010968943fd8ed602bf34b0aa | 809 | package com.example.myapplication.exam;
import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.Button;
import com.example.myapplication.R;
public class FirstActivity extends AppCompatActivity {
@Override
prote... | 28.892857 | 85 | 0.68974 |
b6e00cfabcaf079a037c9ad0bef5af4f955c94e6 | 10,249 | package jp.osaka.cherry.addressbook.ui.view.timeline;
import android.content.Intent;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.os.Handler;
import android.os.Looper;
import android.util.Log;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
impor... | 24.058685 | 106 | 0.607474 |
62c72df9bdce6cb171931464b81aa4691b190f77 | 3,395 | /**
* Oracle Opensync Module
* Copyright (c) 2009-2013 by Appcelerator, Inc. All Rights Reserved.
* Licensed under the terms of the Apache Public License
* Please see the LICENSE included with this distribution for details.
*
*/
package appcelerator.oracle.opensync;
import oracle.opensync.util.PlatformFactory;
... | 34.292929 | 104 | 0.702798 |
832098703f7919d1c3f901c9be61bd19d3f3ffb3 | 10,687 | package persistenceXML;
import init.Init;
import help.Help;
import org.jdom.Document;
import org.jdom.JDOMException;
import org.w3c.dom.Element;
import org.w3c.dom.NamedNodeMap;
import org.w3c.dom.Node;
import java.io.FileWriter;
import java.io.IOException;
import java.util.logging.Level;
import org.jdom.input.SAXBui... | 42.919679 | 151 | 0.660429 |
a3d9ae924f4a12b5061f7ee39beed93f65e8bee0 | 798 | package ua.gram.model.group;
import com.badlogic.gdx.scenes.scene2d.ui.Skin;
import com.badlogic.gdx.scenes.scene2d.ui.Table;
import ua.gram.DDGame;
import ua.gram.model.actor.misc.CustomLabel;
import ua.gram.model.player.Player;
/**
* @author Gram <gram7gram@gmail.com>
*/
public class PlayerDataTable extends Tabl... | 29.555556 | 97 | 0.681704 |
2d196f10a2674aa333f9a7d6f5e4779bac4e954c | 4,618 | package processing.pong;
import processing.core.*;
/**
* @author Noah Ruben
*
*/
// Noah Ruben
// 87 => W
// 83 => S
// 38 => UP
// 40 => DOWN
// 32 => SPACE
public class PongEclipse extends PApplet {
float xPosBall;
float yPosBall;
float durchmesserBall;
float xMovBall;
float yMovBall;... | 18.92623 | 77 | 0.574708 |
47c02428790ba84669bd7678b7e464e54654556b | 4,695 | /*-
* #%L
* anchor-gui-annotation
* %%
* Copyright (C) 2010 - 2020 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche
* %%
* 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 Softwar... | 41.184211 | 95 | 0.701597 |
5d22cf5aafc667b69f17c5aef5c08d35b956042a | 1,313 | package seedu.address.request.requeststorage;
import java.io.IOException;
import java.nio.file.Path;
import java.util.Optional;
import seedu.address.commons.events.model.RequestListChangedEvent;
import seedu.address.commons.events.storage.DataSavingExceptionEvent;
import seedu.address.commons.exceptions.DataConversio... | 32.02439 | 93 | 0.789794 |
b6bb7bb4224e878746fc6843c58f30832932f2b4 | 644 |
public class Pro_opiVO extends PropertyVO{
//오피스텔 필드
private String area;
private String month;
//생성자
public Pro_opiVO(){
}
public Pro_opiVO(String type, String address, int price, String area, String month){
super(type, address, price);
this.area = area;
this.month = month;
}
//toString 오버라이드
publ... | 18.4 | 85 | 0.670807 |
e1614e7913bda0bfc74ea24a26b7419f552edc1c | 2,213 | /*
* Copyright (C) 2012-2015 DataStax 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 app... | 34.046154 | 103 | 0.712155 |
08dc7a280f5392a9aefc823c002b317e5636c5d2 | 199 | package dev.zihasz.client.feature.traits;
import java.awt.*;
public interface IDraggable {
boolean isDrag();
void setDrag(boolean drag);
Point getDragPos();
void setDragPos(Point dragPos);
}
| 15.307692 | 41 | 0.748744 |
f54c21d3b983a157676a01b4b713617bd3f4c5b5 | 310 | //Written by Dimiter Dinkov
//student number :C15334276
//Mobile Software Development Lab work
//Examples of encapsulation/inheritance/interfaces/instanceof in java
package lab1;
//an example of an interface
public interface PublishDetails {
public String ConfirmDetails();
public String getCourseCode();
}
| 25.833333 | 69 | 0.803226 |
4bcdb5b568f11cf54b13d701e39a0b91c6963b5c | 2,067 | package com.coding.gateway.auth.oauth2.client;
import java.util.Optional;
import javax.inject.Inject;
import javax.inject.Named;
import com.coding.commons.domain.user.model.UserToken;
import com.coding.commons.domain.user.repository.UserTokenRepository;
import org.springframework.security.core.Authentication;
import ... | 43.978723 | 134 | 0.784712 |
5476df76527becb24e5d1839728c37708423bb6b | 2,128 | package com.tenable.io.api.editors.models;
/**
* Copyright (c) 2017 Tenable Network Security, Inc.
*/
public class EditorSettings {
private SettingsDetail basic;
private SettingsDetail discovery;
private SettingsDetail assessment;
private ReportSettingsDetail report;
private SettingsDetail advan... | 18.666667 | 60 | 0.589756 |
6e9a2e89e1a730c09efc511689b8e9aa3b815098 | 15,233 | /*******************************************************************************
* Copyright (c) 2016, David Picard.
* 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 o... | 24.217806 | 228 | 0.596928 |
44af8aa1f21038b8fd07893cd593dfdaa44631a0 | 5,707 | /*
* 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... | 36.120253 | 103 | 0.636236 |
440db20cace5b0be300862dc9b453af0a1ce5c46 | 2,889 | package archived.artifactsreloaded.common.components.effects;
import java.util.List;
import java.util.Random;
import net.minecraft.entity.Entity;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.ItemStack;
import net.minecraft.world.World;
import archived.artifactsreloaded.common.components... | 22.570313 | 135 | 0.709242 |
da99a0420998c45685fe81e80239f7353c160d59 | 2,708 | package com.firstvoices.keyboards;
import android.content.Context;
import android.content.Intent;
import android.graphics.Typeface;
import android.os.Bundle;
import android.view.View;
import android.view.Window;
import android.widget.AdapterView;
import android.widget.ListView;
import android.widget.TextView;
import ... | 35.631579 | 109 | 0.707164 |
14065ba000ac04b83fcc9b1cc0e553d9a0ce65dd | 2,999 | package testresults.CVSB_9644;
import net.serenitybdd.junit.runners.SerenityRunner;
import net.thucydides.core.annotations.Steps;
import net.thucydides.core.annotations.Title;
import org.junit.Test;
import org.junit.runner.RunWith;
import steps.*;
import steps.util.UtilSteps;
import utils.BaseTestClass;
@RunWith(Sere... | 36.13253 | 115 | 0.75025 |
9699f56438a41d8afbddd8186bbf72d12dec08d0 | 2,033 | package script;
import javax.script.*;
import java.io.FileReader;
import java.net.URL;
import java.util.Scanner;
/**********************************************************************
* <p>文件名:${FILE_NAME} </p>
* <p>文件描述:${DESCRIPTION}(描述该文件做什么)
* @project_name:test
* @author zengshunyao
* @da... | 34.457627 | 92 | 0.552386 |
8d0f167253fbdbe3331591ff7bf15a67bbf6b7ea | 14,376 | /*----------------------------------------------------------------------------*/
/* Copyright (c) 2017-2018 FIRST. All Rights Reserved. */
/* Open Source Software - may be modified and shared by FRC teams. The code */
/* must be accompanied by the FIRST BSD license file in the root directory of... | 46.827362 | 190 | 0.732053 |
ccf17f812df3f03806c35450336a7e3cdf6f7aa5 | 132 | package constants;
public class PrintConst {
public static void main(String[] args) {
System.out.println(B.CONST_B_2);
}
}
| 16.5 | 42 | 0.704545 |
af46c7c99eb43da3471ec20ffc473196cf208ae8 | 917 | package com.kovaliv.services.swagerservicesimpl;
import com.kovaliv.api.ColumnsApiService;
import com.kovaliv.api.model.Column;
import lombok.RequiredArgsConstructor;
import org.modelmapper.ModelMapper;
import org.springframework.stereotype.Service;
import javax.ws.rs.core.Response;
import javax.ws.rs.core.SecurityCo... | 32.75 | 88 | 0.752454 |
9de023617638a8dae495a4e2377c5a5be02a4683 | 1,227 | /**
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distribu... | 40.9 | 118 | 0.757131 |
41cc980089fee0c4b2b410aed6df1fb8eefbe886 | 1,168 | package com.akshara.assessment.a3.Pojo;
public class RegisterStudentPojo {
//institution id will be based on school for each grade one unique id
String first_name,last_name,gender,institution,status,academic_year,uid;
@Override
public String toString() {
return "RegisterStudentPojo{" +
... | 34.352941 | 81 | 0.530822 |
b32c1069243b2cadc9289741afd86ddd8533ad91 | 4,548 | package com.izforge.izpack.util;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
import java.io.File;
import java.util.ArrayList;
import java.util.List;
import org.junit.Test;
/**
* Tests the {@link PrivilegedRunner}.
*
* @auth... | 33.441176 | 99 | 0.668426 |
dee7938314dc7a3282a4c0bc9b3712a4e1a85b60 | 515 | package com.coding.bat.warmup1;
public class SumDouble {
/*
* Given two int values, return their sum. Unless the two values are the same, then return double their sum
*/
public static void main(String[] args) {
System.out.println(sumDouble(1, 3));
System.out.println(sumDouble(2, 2));
System.out.println(... | 20.6 | 108 | 0.640777 |
6f98876f46f047af6099bb72eef2a224e1d16eca | 808 | package io.agora.tutorials1v1vcall;
import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
public class VideoChatViewActivity extends AppCompatActivity {
private static final String TAG = VideoChatViewActivity.class.getSimpleName();
private static final int ... | 27.862069 | 82 | 0.725248 |
8014325b086ba47a73e32994f60a50066f666858 | 6,507 | /* ==================================================================
* SI60KTLCTData.java - 22 Nov 2017 12:28:46
*
* Copyright 2017 SolarNetwork.net Dev Team
*
* 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 ... | 27.340336 | 99 | 0.710158 |
28b9594231f3d1052646b0b26b3e3b93235edd6d | 20,319 | package com.fanxin.huangfangyi.main.adapter;
import android.content.Context;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.ImageView;
import android.widget.RelativeLayout;
import android.wid... | 60.473214 | 196 | 0.656085 |
3bf0fd00fede50e55d7fa66f8b6d7900aa55b89a | 3,057 | package global;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.PrintStream;
import java.util.Scanner;
public class GlobalSettings {
// Attributes
private static final File GLOBALSETTINGSFILE = new File(
"src/global/globalsettings.ini");
private boolean musicMute... | 28.570093 | 111 | 0.575401 |
3e4b4a74d0d5ff92d66339bbeb25a5eff48d14f4 | 709 | package com.urally.pvt.Aug04;
import java.util.Objects;
/*java.lang.Object类是java语言中的根类,所有类的父类.它所描述的所有方法子类都可以使用.
*在对象实例化的时候,最终找到的父类就是Object.
* 如果一个类没有特别指定父类,那么默认继承Object类
*/
public class LearnObject {
private int id;
public static void main(String[] args) {
}
//返回该对象的字符串表示
@Override
public S... | 21.484848 | 55 | 0.634697 |
3920375154f6125a1ec4900057174a695f6a1c61 | 1,005 | package csu.common.test;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;
import java.util.List;
import java.util.Random;
public class Test1 {
private Comparator<Integer> comp = new Comparator<Integer>() {
@Override
public int compare(Integer arg0, Integer arg1) {
if (a... | 20.1 | 63 | 0.646766 |
a354c38498e2975ef5a397013ad40d893ac3abe7 | 833 | package net.savantly.sprout.franchise.domain.calendar;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import net.savantly.sprout.core.tenancy.TenantKeyedRepository;
import net.savantly.sprout.rest.crud.TenantedDtoController;
@RestControll... | 25.242424 | 83 | 0.816327 |
3b8a4b5bdd3d77a9f22f051e27557e3edafba409 | 1,339 | package mb.tego.strategies.runtime;
import mb.tego.sequences.Seq;
import mb.tego.strategies.NamedStrategy;
import mb.tego.strategies.NamedStrategy1;
/**
* Constant strategy that discards the input and always returns the same value.
*
* @param <T> the type of input (contravariant)
* @param <R> the type of output (... | 30.431818 | 100 | 0.67289 |
b733ce4edb6a2eecc44e76ea58e4e7b225c3848c | 15,946 | /*
* Copyright 2014 The Netty Project
*
* The Netty 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 ... | 35.59375 | 118 | 0.601906 |
7950825cea055b2814b8e004abc5e3a50c4a31c3 | 322 | package pers.hdh.sell.form;
import lombok.Data;
/**
* CategoryForm class<br/>
* 类目表单验证
* @author hdonghong
* @date 2018/04/09
*/
@Data
public class CategoryForm {
/** 类目id */
private Integer categoryId;
/** 类目名字 */
private String categoryName;
/** 类目编号 */
private Integer categoryType;
... | 14 | 33 | 0.63354 |
574c93aec8de964ec5ad4cacfd734bc897fe1bc3 | 660 | package com.sy.dao;
import com.sy.pojo.Student;
import org.apache.ibatis.annotations.Param;
import java.util.List;
public interface StudentMapper {
int deleteByPrimaryKey(Integer id);
int insert(Student record);
int insertSelective(Student record);
Student selectByPrimaryKey(Integer ... | 22 | 80 | 0.70303 |
d393d36e287408162cc8585e0e6b0a8dba3b760f | 1,027 | package org.bc.util.io.pem;
public class PemHeader {
private String name;
private String value;
public PemHeader(String var1, String var2) {
this.name = var1;
this.value = var2;
}
public String getName() {
return this.name;
}
public String getValue() {
return this.value;... | 22.822222 | 107 | 0.589094 |
226f55c8430f30d11bfa363a0e97fe07b40c3c4b | 530 | package random.sll;
import common.Utilities;
import org.junit.Test;
import gov.nasa.jpf.util.test.TestJPF;
public class Input_withRound1 extends TestJPF {
@Test
public void test_withRound1() throws Exception {
Input obj = new Input();
Node root = new Node();
Node next_36 = null;
int elem_35 = -24;
root.e... | 18.275862 | 49 | 0.701887 |
8873aeb325d79d7982bb4951a023c4e56c4f254f | 4,829 | /*
* [New BSD License]
* Copyright (c) 2011-2012, Brackit Project Team <info@brackit.org>
* 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 reta... | 28.405882 | 83 | 0.749016 |
31d603921d850f7a49e399a90794090861e8ffb1 | 913 | package model;
public final record Message(int messageId, String sender, String receiver, String content,
boolean deleted, String sentDate) {
public Message(String sender, String receiver, String content) {
this(0, sender, receiver, content, false, null);
}
@Override
... | 38.041667 | 90 | 0.454545 |
337f6f19e0ec99641f601eb5e0737c5dbc77e815 | 753 | package aya.ext.graphics.instruction;
import java.awt.AlphaComposite;
import aya.ext.graphics.Canvas;
import aya.ext.graphics.CanvasTable;
import aya.ext.graphics.GraphicsInstruction;
import aya.obj.block.Block;
public class SetAlphaGraphicsInstruction extends GraphicsInstruction {
public SetAlphaGraphicsInstructi... | 24.290323 | 92 | 0.7583 |
da1381bebe073682ced16c61fa248ec918b406d8 | 37,696 | package org.ots123it.open.sdubotr;
import org.meowy.cqp.jcq.entity.*;
import org.meowy.cqp.jcq.event.JcqAppAbstract;
import org.meowy.cqp.jcq.message.CQCode;
import org.ots123it.jhlper.CommonHelper;
import org.ots123it.jhlper.DBHelper;
import org.ots123it.jhlper.ExceptionHelper;
import org.ots123it.open.sdubotr.Global... | 39.144341 | 166 | 0.60659 |
79bc7f1535ce4ef69a6fe21f9149855c4c3b2f5c | 631 | public class TestInstanceof
{
public static void main(String[] args)
{
//声明str时使用Object类, 则str的编译类型是Object, Object是所有类的父类, 但str变量的实际类型是String
Object str = "hello world";
//String是Object类的子类, 所以可以进行instanceof运算. 返回true
System.out.println("字符串是否是Object类的实例:" + (str instanceof Object));
//返回true
System.out.p... | 37.117647 | 72 | 0.740095 |
4108952dac9eec003630c08da09f55e685706b9f | 2,472 | /*
* 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.744186 | 119 | 0.680825 |
b38360f46dac96e3506b0db96ec15e85c1da6498 | 1,618 | package ibm.coope;
import java.time.LocalDate;
import lombok.Data;
@Data
public class CoopeFRA {
String tmp;
private String TipoDoc;
private String CodEmpleado;
private String NomSocio;
private String Placa;
private LocalDate FecInscripcion;
private String Propietario;
private String Marca;
private String... | 28.892857 | 113 | 0.704574 |
6de048188dae651848dafa0a1e3bb0a62e3244e0 | 1,343 | package pl.springboot.crud.model;
import java.sql.Timestamp;
import java.util.Calendar;
import java.util.Date;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.J... | 23.982143 | 65 | 0.734922 |
2958d1079d2a846a2c711d5cb3762ec704a03d7b | 3,764 | /**
* (c) 2014 Cisco and/or its affiliates. All rights reserved.
*
* This software is released under the Eclipse Public License. The details can be found in the file LICENSE.
* Any dependent libraries supplied by third parties are provided under their own open source licenses as
* described in their own LICENSE... | 43.767442 | 125 | 0.693943 |
f36c74607a55471d3f65366e01b1fa215bff6932 | 3,109 | package se.vidstige.jadb.test;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;
import se.vidstige.jadb.*;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.util.List;
public class RealDeviceTestCases {
private JadbConnection jadb;
@B... | 30.184466 | 89 | 0.623673 |
9b8d250e9cf0943574e0e951180b67f625f0e988 | 231 | package br.com.ericbraga.enment.interactor.contracts;
import java.io.File;
import io.reactivex.Single;
public interface DownloadContract {
Single<Boolean> download(File outputDirectory, String userOwner, String fileName);
}
| 23.1 | 86 | 0.800866 |
a330cc1cd84a8235e99dbb02acd0cbfb8cb1bc1d | 4,617 | package eu.bcvsolutions.idm.core.security.evaluator.eav;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
import java.util.UUID;
import java.util.stream.Collectors;
import javax.persistence.criteria.CriteriaBuilder;
import javax.persistence.cr... | 33.70073 | 167 | 0.776478 |
1a5468b60ea7f9c11b8ba88233f1cb18ade3ccb4 | 1,366 | package de.uni_mannheim.informatik.dws.melt.demomatcher;
import de.uni_mannheim.informatik.dws.melt.matching_jena.MatcherYAAAJena;
import de.uni_mannheim.informatik.dws.melt.matching_jena_matchers.filter.extraction.NaiveDescendingExtractor;
import de.uni_mannheim.informatik.dws.melt.matching_jena_matchers.metalevel.Co... | 39.028571 | 128 | 0.743777 |
83f7e02736bf5ec97d0b4beb7232ed5983dbefee | 10,092 | /*
* Copyright 2017 EpochArch.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 applicable law or agreed t... | 37.797753 | 100 | 0.693817 |
7f35760f2531dbe2b675a00f4e64e5a132b12824 | 2,909 | /*
* 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 ... | 33.825581 | 99 | 0.685803 |
b3fa44204cfd51d777f11f6fd0c3b9ff0f1eba1a | 323 | package com.br.zupacademy.api.mercadolivre.realizarcompra;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;
import java.util.UUID;
@Component
public interface SistemaDePagamento {
public String realiza(UUID idCompra, FormaDePagamento gatewayPagamento);... | 26.916667 | 76 | 0.839009 |
2522c782f21a48315606e9f1d99763374a555e81 | 5,247 | package com.example.yangy.carbonfootprint;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.TextView;
import android.os.BatteryManager;
import an... | 34.071429 | 108 | 0.673718 |
0f304a8687dd4f1e1b0f0507b5823394ab99fddd | 2,026 | package org.ludus.backend.por;
import org.ludus.backend.fsm.FSM;
import org.ludus.backend.fsm.impl.Edge;
import org.ludus.backend.fsm.impl.FSMImpl;
import org.ludus.backend.fsm.impl.Location;
import java.util.Set;
import java.util.stream.Collectors;
public class Preprocessor {
public static final String BOTTOM ... | 33.766667 | 128 | 0.629812 |
b2946d217bcbb194014c5ebcd8538e8eeb0db3a7 | 4,521 | package com.shahroz.searchview;
import android.content.Context;
import android.os.Bundle;
import android.os.Handler;
import android.os.SystemClock;
import android.support.design.widget.FloatingActionButton;
import android.support.design.widget.Snackbar;
import android.support.v7.app.AppCompatActivity;
import android.s... | 32.76087 | 173 | 0.664234 |
18fbd7f266cab6e9a4be3fc3d1b498114ef4bb84 | 1,750 | /*
* Copyright (C) 2014 Lukasz Szczyglowski, Radoslaw Trzcionkowski
*
* 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 req... | 33.653846 | 95 | 0.763429 |
a85406aab7690d9eb125c017195817863547b23b | 2,229 | package com.mfour.OrderBook.service;
import com.mfour.OrderBook.daos.UserInfoDao;
import com.mfour.OrderBook.entities.UserInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
@Service
public class UserService {
@Autowired
UserInfoDao userInfoDao;... | 32.779412 | 96 | 0.642889 |
8c52d801435442ec88b44b3925d2aa7ff4ecf690 | 2,010 | package p005cm.aptoide.p006pt.dataprovider.p010ws.p013v7.post;
import android.content.SharedPreferences;
import okhttp3.OkHttpClient;
import p005cm.aptoide.p006pt.dataprovider.interfaces.TokenInvalidator;
import p005cm.aptoide.p006pt.dataprovider.p010ws.BodyInterceptor;
import p005cm.aptoide.p006pt.dataprovider.p010ws... | 45.681818 | 214 | 0.775622 |
d2bc77aec4056490278c14794d7ef8f245efb12a | 4,281 | /*
* Copyright (C) 2008 feilong
*
* 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... | 27.798701 | 79 | 0.5459 |
4cfcf0d146f0cf4c9d697b0b36a8733e6cc8dd53 | 6,693 | /*
* Copyright 2020 The Closure Compiler 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... | 35.412698 | 98 | 0.698192 |
c8f7f80ab9b986bb0ef9e02f918f2b3946fa71c8 | 746 | package pulsar;
import org.apache.pulsar.client.api.Producer;
import org.apache.pulsar.client.api.PulsarClient;
import org.apache.pulsar.client.api.PulsarClientException;
import org.apache.pulsar.client.api.Schema;
/**
* Producer.
*
* @author 刘斌
* @version 0.0.1
* @serial 2021-10-29 : base version.
*/
public cl... | 27.62963 | 81 | 0.668901 |
a555b13dbc008c6250aa2e4cf42d16064c098e81 | 3,364 | package com.rains.transaction.tx.manager.spi.repository;
import com.rains.transaction.common.holder.DbTypeUtils;
/**
* @author hugosz
* @version [2018年03月26日 16:32]
* @since V1.00
*/
public abstract class AbstractJdbcRecoverRepository {
public static class SqlHelper {
public static String buildCreat... | 45.459459 | 91 | 0.381986 |
d3f207de1b4b82f5271be3bc98593e645f15fe3e | 1,148 | package com.outlook.image.controller;
public class MeetingStartTime {
private int year;
private String month;
private int day;
private int hours;
private int minutes;
private String timezone;
public MeetingStartTime(int year, String month, int day, int hours, int minutes, String timezone) {
this.year = year;... | 15.726027 | 100 | 0.680314 |
766308f8bad61ab0d60fb7513abbfeac834be3f9 | 6,013 | package org.talend.dataprep.preparation.event;
import static org.talend.tql.api.TqlBuilder.eq;
import static org.talend.tql.api.TqlBuilder.in;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import... | 42.95 | 117 | 0.65375 |
2207a4ed9a9986da748d7a1d159542f80bf85a43 | 13,326 | package de.metahlfabric;
import com.google.gson.Gson;
import com.google.gson.JsonObject;
import org.hyperledger.fabric.contract.annotation.DataType;
import org.hyperledger.fabric.contract.annotation.Property;
import javax.management.AttributeNotFoundException;
import java.util.ArrayList;
import java.util.List;
/**
... | 35.16095 | 132 | 0.591775 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.