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 |
|---|---|---|---|---|---|
5c26eceae44e1cb019665bd195f1ce2b83f88e13 | 226 | package eu.kiaru.ij.controller42.structDevice;
import java.time.LocalTime;
abstract public class TimedSample<T> {
public T sample;
public LocalTime time;
abstract public T interpolate(T ti, T tf, double ratio_I_to_F);
}
| 22.6 | 64 | 0.778761 |
f40440d558f7a30e88e367393dca1b18ea264a63 | 1,112 | package com.matchesfashion.oauthdemo.security;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.security.authentication.AuthenticationProvider;
import org.springframework.security.authentication.UsernamePasswordAuthenticationToken;
import org.springframework.security.core.Authenticat... | 34.75 | 102 | 0.794964 |
928480510d51c2c6bd8d0853597b9a715df74285 | 6,819 | package com.hn.view;
import java.awt.BorderLayout;
import java.awt.FlowLayout;
import java.awt.GridLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.util.Date;
import javax.swing.BorderFactory;
import javax.swing.DefaultComboBoxModel;
import javax.swing.JButton;
import java... | 24.180851 | 115 | 0.700689 |
7aa269cf069b2d6bcea421735068783869ee2235 | 372 | import java.util.Scanner;
public class kelipatan3{
public static void main(String[] args){
int i, bil, banyak;
Scanner in = new Scanner(System.in);
System.out.println("input banyak bilangan : "); banyak= in.nextInt();
for(i = 1; i<=banyak;i++){
bil = i * 3;
... | 23.25 | 77 | 0.534946 |
ffdae627fc51bc0d402b77548c737a712d4af67a | 167 | package com.ioc.factory;
import java.util.List;
public interface IFetchData {
//Common interface method to fetch data.
List<Object[]> fetchData();
}
| 16.7 | 43 | 0.682635 |
ad747087d556c0356c77c5e0e9116a5432f4dfdf | 3,666 | package core.document.graph;
import javafx.beans.Observable;
import javafx.beans.property.IntegerProperty;
import javafx.beans.property.SimpleIntegerProperty;
import javafx.beans.value.ObservableValue;
import java.util.LinkedList;
import java.util.List;
/**
* Network Graph that filters the contents of another Netwo... | 38.1875 | 123 | 0.627932 |
596364ffa0cbd36170a5ad901c84ebfdf3570e9d | 3,539 | /*
* 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 ... | 38.89011 | 120 | 0.612037 |
b845eb0242a6bed3de3b30b77effcd5be5255a36 | 519 | package mostenire;
public class Executie {
public static void main(String[] args) {
Om x = new Om();
x.setVarsta(22);
x.setNume("Cristi");
x.afisareInformatiiOm();
x.setNume("dragos");
Copil dragalasu = new Copil();
dragalasu.setVarsta(8);
dragalas... | 20.76 | 53 | 0.595376 |
191a3ab9b44c380b46edbeeaf0323aa1a3d5d04f | 2,005 | /*
Copyright 2011-2014 Cray Inc. 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 and the followin... | 36.454545 | 87 | 0.762095 |
1a78c7ed2541b8431eb05d6b7620f6439c56f834 | 818 | package ru.job4j.list;
class Node<T> {
public Node(T value) {
this.value = value;
}
T value;
Node<T> next;
boolean hasCycle(Node first) {
boolean result;
if (first == null) {
result = false;
}
Node tortoise = first;
Node hare = first;
... | 21.526316 | 55 | 0.392421 |
fd723e81816e05abb23d4ea757eb80c501def689 | 12,039 | /* 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 it.angrydroids.epub3reader;
public final class R {
public static final class array {
public static final int ColorBac... | 51.229787 | 93 | 0.726306 |
77b29ff50b9441889218e2a0ce4834a158927c02 | 3,617 | /*
* Copyright (c) Jim Coles (jameskcoles@gmail.com) 2016. through present.
*
* Licensed under the following license agreement:
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Also see the LICENSE file in the repository root directory.
*/
package org.jkcsoft.bogey.model;
import org.jkcsoft.bogey.metamode... | 27.610687 | 96 | 0.614321 |
be4e48991bf0287f47c63ed242faac971a1e9fb2 | 1,809 | package com.bioid.authenticator.base.logging;
import android.support.annotation.NonNull;
/**
* Provides a similar API to {@link android.util.Log} for logging with a stopwatch extension.
* All log messages can have arguments like in {@link String#format(String, Object...)}.
* <p/>
* To obtain a LoggingHelper insta... | 28.714286 | 98 | 0.648425 |
145f26f5b461b6adbebb6d825dfeb8185bc9fe39 | 1,136 | import java.util.concurrent.Semaphore;
public class Sodbuster implements Runnable {
private String dimidiate;
public static Semaphore waffen = new Semaphore(1);
public static int billboard = 0;
public Sodbuster(String handle) {
this.dimidiate = handle;
}
public void run() {
while (true) {
... | 25.244444 | 69 | 0.610915 |
6b6d7394901d3bcf92be982e229be14b3865496e | 2,490 | /*
* (C) Copyright 2019 Nuxeo (http://nuxeo.com/) and others.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required b... | 32.337662 | 175 | 0.743373 |
3ef29d33ccf6a7653a26c17bf7ac45f57677e113 | 1,298 | /*
* Copyright 2012 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | 28.217391 | 107 | 0.691063 |
49a0609904e2aa7b479adf001330acffdfba55f4 | 204 | package domainV2.util.validation.text;
public class GenericTextValidatorNonEmpty implements IGenericTextValidator {
@Override
public boolean validate(String input) {
return !input.equals("");
}
}
| 18.545455 | 76 | 0.784314 |
b5abf601b82c3cbb09bb8e992ed552b4ade7bfdb | 8,919 | /*
* TouchGraph LLC. Apache-Style Software License
*
*
* Copyright (c) 2001-2002 Alexander Shapiro. 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 ... | 28.770968 | 120 | 0.614867 |
d1f294e9db8ad42e1766f284db202483ea239cdd | 48,719 | begin_unit|revision:0.9.5;language:Java;cregit-version:0.0.1
begin_comment
comment|// Copyright (C) 2018 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... | 15.291588 | 923 | 0.819742 |
90234ff2e1bc66fe4ab40e5c9a47fc4735298e96 | 2,569 | package com.twu.biblioteca.model;
import com.twu.biblioteca.libraryitem.Book;
import com.twu.biblioteca.libraryitem.LibraryItem;
import org.junit.Test;
import org.mockito.Mockito;
import java.util.ArrayList;
import static org.junit.Assert.assertEquals;
public class LibraryTest {
@Test
public void canRetur... | 38.343284 | 84 | 0.674192 |
761f4a32bbe9e12299c93176e6a42dae01c50148 | 3,232 | package org.checkerframework.dataflow.cfg.node;
import com.sun.source.tree.CaseTree;
import com.sun.source.tree.Tree;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import java.util.Objects;
import javax.lang.model.type.TypeKind;
import javax.lang.model.util.Types;
import org.checkerfr... | 29.117117 | 98 | 0.707611 |
1e016da08f152b6e6786567ffb623dfa1960e31e | 17,359 | package com.ibm.nmon.gui.chart.builder;
import java.text.DecimalFormat;
import java.text.SimpleDateFormat;
import java.util.List;
import org.jfree.chart.JFreeChart;
import org.jfree.chart.axis.DateAxis;
import org.jfree.chart.axis.NumberAxis;
import org.jfree.chart.labels.XYToolTipGenerator;
import org.jfree.chart.p... | 36.855626 | 116 | 0.543522 |
53457e8aa67f9ee07304d211f9db9ca6ea3e5191 | 2,094 | package blinmaker;
import java.util.Scanner;
public class Cooker
{
public static void main(String[] args)
{
int eggsAmount;
int eggsMin = 1;
int milkAmount;
int milkMin = 200; //milliliters
int flourAmount;
int flourMin = 100; //grams
System.out.println("Hello Boris!");
System.out.println("Blinma... | 28.297297 | 77 | 0.662369 |
ee10f43d3504246721debda153e616a879fe9806 | 1,368 | package lejos.mf.common;
import lejos.mf.common.exception.UnitMessageException;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.JUnit4;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNull;
/**
* Created by Michaël Ludmann on 31/07/16.
*/
@RunWith(... | 31.090909 | 76 | 0.725877 |
ea3600ed4452d1a1f11eb8c1ec6578f5398d884f | 264 | package org.codemucker.cqrs.service.impl;
import org.codemucker.cqrs.service.DefaultHttpRequestContext;
import org.codemucker.cqrs.service.HttpResponse;
public interface PipelineHandler {
HttpResponse invoke(DefaultHttpRequestContext request);
}
| 24 | 62 | 0.80303 |
39203d0e0ebbd30f237d0a51e729c2a2b8bdb3ff | 309 | package com.lovecws.mumu.oauth.server;
/**
* <p>OauthUser: Zhang Kaitao
* <p>Date: 14-2-17
* <p>Version: 1.0
*/
public class Constants {
public static String RESOURCE_SERVER_NAME = "oauth-server";
public static final String INVALID_CLIENT_DESCRIPTION = "客户端验证失败,如错误的client_id/client_secret。";
}
| 23.769231 | 99 | 0.724919 |
1d54b414bdffdcfacc05d4095026fa49503da949 | 2,048 | package io.pivotal.web.controller;
import io.pivotal.web.domain.Order;
import io.pivotal.web.service.AccountService;
import io.pivotal.web.service.MarketSummaryService;
import io.pivotal.web.service.PortfolioService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.anno... | 42.666667 | 138 | 0.810547 |
6236bc0175935c3cf3f307226289497857821485 | 232 | package com.haulmont.demo.emailtemplates.web.customer;
import com.haulmont.cuba.gui.components.AbstractEditor;
import com.haulmont.demo.emailtemplates.entity.Customer;
public class CustomerEdit extends AbstractEditor<Customer> {
} | 33.142857 | 60 | 0.844828 |
0fe6f1826cd3d9179693c427d0220fcf5283e48b | 5,341 | package org.alien4cloud.tosca.editor;
import java.util.List;
import java.util.Set;
import javax.inject.Inject;
import org.alien4cloud.tosca.model.definitions.DeploymentArtifact;
import org.alien4cloud.tosca.model.templates.NodeTemplate;
import org.alien4cloud.tosca.model.templates.Topology;
import org.apache.commons... | 48.554545 | 193 | 0.721588 |
08e0eca57f4fcab671bb448d374093338375e564 | 425 | package org.yeastrc.limelight.xml.msfragger.objects;
import java.math.BigDecimal;
import java.util.Map;
public class TargetDecoyAnalysis {
private Map<BigDecimal, Double> scoreFDRMap;
protected TargetDecoyAnalysis( Map<BigDecimal, Double> scoreFDRMap ) {
this.scoreFDRMap = scoreFDRMap;
}
pu... | 21.25 | 74 | 0.722353 |
5d94e8aa7a2b48b578c019c5c3f241064e8a3397 | 855 | package building.types.specific;
import static building.types.abstractions.SuperType.VAL_HOLDER_TYPE;
import static building.types.specific.operators.InfixOpType.*;
import building.types.abstractions.AbstractType;
import building.types.abstractions.SpecificType;
import building.types.specific.operators.InfixOpType;
... | 25.147059 | 123 | 0.729825 |
0ffee38d439514ca6a8f8ae5501e3aa06a5a3f6d | 7,653 | package it.com.atlassian.bitbucket.jenkins.internal.config;
import com.atlassian.bitbucket.jenkins.internal.config.BitbucketPluginConfiguration;
import com.atlassian.bitbucket.jenkins.internal.config.BitbucketServerConfiguration;
import com.atlassian.bitbucket.jenkins.internal.config.BitbucketTokenCredentials;
import ... | 45.553571 | 150 | 0.754998 |
bac02afa6c5e7c15de5c0ca5a90a208a471b5c95 | 2,381 | /*
* ============LICENSE_START==========================================
* org.onap.music
* ===================================================================
* Copyright (c) 2017 AT&T Intellectual Property
* ===================================================================
* Licensed under the Apache Licens... | 34.507246 | 104 | 0.602268 |
4bd12effb2e31db2f05798ef2d40598a3161ff54 | 864 | /*
* Copyright (c) 2019 SAP SE or an SAP affiliate company. All rights reserved.
*/
package de.hybris.platform.integrationservices.exception;
import de.hybris.platform.core.model.c2l.LanguageModel;
import java.util.Locale;
/**
* Indicates an attempt to use an invalid or unsupported ISO code with the localized dat... | 26.181818 | 93 | 0.75 |
78d68ad6bc4c60affeb7881752b558e425813a9a | 1,575 | package com.hyf.testDemo.testReference;
import java.lang.ref.Reference;
import java.lang.ref.ReferenceQueue;
import java.lang.ref.SoftReference;
import java.util.ArrayList;
import java.util.List;
/**
* @author Howinfun
* @desc
* @date 2020/7/17
*/
public class TestSoftReference {
public static void main(Stri... | 30.288462 | 97 | 0.554921 |
8dfbb4f7057e3c389d50615b9ad885ba0565097f | 1,918 | package com.yanxin.iot.json2;
/**
* @author Cheng Guozhen
* 告警数 + 工作票数
* 告警数和工作票数都是累计的
*/
public class WarnCount {
// 运维班名称
public String ywb;
// 门禁告警数
public int door = 0;
// 窗体告警数
public int window = 0;
// 井盖告警数
public int holeCover = 0;
// 挡板告警数
... | 15.467742 | 43 | 0.544317 |
dcfb1eeaefe9c73d71417ac4ffebd2292c929c4a | 5,474 | /*
* FindBugs - Find Bugs in Java programs
* Copyright (C) 2005, University of Maryland
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (a... | 42.765625 | 122 | 0.655097 |
58d9ff17816f87c012a399f385b68a3893be2d20 | 765 | package com.arranger.apv.loc;
import com.arranger.apv.Main;
import com.arranger.apv.util.Configurator;
public class StarLocation extends PointsLocationSystem {
private static final double STAR_POINTS [][] = {
{ 0, 85 }, { 75, 75 }, { 100, 10 }, { 125, 75 },
{ 200, 85 }, { 150, 125 }, { 160, 190 }, { 1... | 21.857143 | 76 | 0.649673 |
c0d3e264b7d6b87a5e264b340eb6c7a5dbc89f7f | 1,867 | package com.freight.crm.entity;
import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalTime;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence... | 21.45977 | 51 | 0.739154 |
861ccd99c9de7c10e6d070817753b394dadf0877 | 152 | package ie.lennon.tom;
public class SubClass extends SuperClass {
public static String method1(){
return SubClass.class.getName();
}
}
| 19 | 42 | 0.690789 |
c0c21b987e9d95051de2ff494b5b2dc2ee5d9ddb | 2,402 | /**
* Copyright 2014 Sayem Ahmed
* 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 ... | 24.02 | 84 | 0.723147 |
47b4ba81d3240f1eff42b01df93ca3618a481663 | 2,422 | package edu.cg.algebra;
//import ex3.UnimplementedMethodException;
public class Ops {
public static final float epsilon = 1e-5f;
public static final float infinity = 1e8f;
public static float dot(Vec u, Vec v) {
return u.x*v.x + u.y*v.y + u.z*v.z;
}
public static Vec cross(Vec u, Vec v) {
return new Vec(... | 21.81982 | 80 | 0.628819 |
f40196c6d3a8415a20a019df6e5763dc1421df58 | 328 | package com.xiaofeng.utils.designpatterns.command;
/**
* @author Chen Xiaofeng
* @version 1.0.0
* @date 2017/07/21
* @email chenxf84@gmail.com
*/
public class Adder {
private int num = 0; //定义初始值为0
//加法操作,每次将传入的值与num作加法运算,再将结果返回
public int add(int value) {
num += value;
return num;
... | 16.4 | 50 | 0.625 |
145cea20b9fb299dcb5231aed0ebd30ee90fbc3a | 836 | package sonar.logistics.api.core.tiles.displays.info.register;
import java.util.ArrayList;
public class LogicPath {
public ArrayList path = new ArrayList<>();
public Class<?> start;
public Object startObj;
public RegistryType type;
public void setRegistryType(RegistryType regType) {
type = regType;
}
publi... | 20.390244 | 62 | 0.691388 |
4315fff0d95baa81f5c2d0680d040162de37f92b | 2,338 | package org.dasein.cloud.azure.storage.model;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
/**
* Created by Vlad_Munthiu on 7/17/2014.
*/
@XmlRootElement(name="CreateSt... | 30.363636 | 105 | 0.723268 |
1e528141c826d6f87e7238c62bbc9a7d5ace8b80 | 691 | package lsieun.graphics;//HIDE
import java.awt.Graphics2D;
/**
* A shape that can be drawn on a canvas.
*/
public interface Shape
{
/**
* Gets the leftmost x-position of the shape.
* @return the leftmost x-position
*/
int getX();
/**
* Gets the topmost y-position of the shape.
*... | 17.717949 | 49 | 0.564399 |
2771ec2b2173e32b98b7851cce2267fa17570138 | 492 | package com.example.demo;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.ActiveProfiles;
@SpringBootTest
@ActiveProfiles({"it", "red", "small"})
class DemoApplication... | 24.6 | 66 | 0.788618 |
025e28d9530fc7aab1c6c75b9a0220d48a8b6395 | 3,774 | package com.matao.fundamentals.exercises;
import java.util.Iterator;
import java.util.NoSuchElementException;
/**
* Created by matao on 2018/9/29.
* <p>
* Write a Queue implementation that uses a circular linked list,
* which is the same as a linked list except that no links are null
* and the value of last.next... | 26.577465 | 86 | 0.518813 |
95ed38205098f280c48f135dec248fab13a0b153 | 777 | package com.github.lhrb.xml;
import java.util.List;
public class Leaf implements Tag {
private final String name;
private final List<Attribute> attributes;
private final String text;
private Leaf(String name, List<Attribute> attributes, String text) {
this.name = name;
this.attributes... | 25.9 | 77 | 0.598456 |
07b9c82102b6d5ec35c07e5ac374b517c3ab412b | 1,480 | package io.contek.invoker.bitstamp.api.rest.market;
import io.contek.invoker.bitstamp.api.common._OrderBook;
import io.contek.invoker.bitstamp.api.rest.RestRequest;
import io.contek.invoker.commons.actor.IActor;
import io.contek.invoker.commons.rest.RestContext;
import io.contek.invoker.commons.rest.RestMethod;
import... | 23.492063 | 76 | 0.743243 |
a502b35950545dd4d472fdc9c4861c4cf2aa4eb5 | 1,998 | /**
* <copyright>
* </copyright>
*
* $Id$
*/
package org.eclipse.bpel4chor.model.chor.common;
import org.eclipse.emf.ecore.EFactory;
/**
* <!-- begin-user-doc -->
* The <b>Factory</b> for the model.
* It provides a create method for each non-abstract class of the model.
* <!-- end-user-doc -->
* @see org.ec... | 27 | 97 | 0.651652 |
2a741ea29d8bc9e15e7b99d987a5825bb24e0682 | 970 | package org.notima.businessobjects.adapter.sie;
import java.util.Dictionary;
import java.util.Hashtable;
import org.apache.karaf.util.tracker.BaseActivator;
import org.apache.karaf.util.tracker.annotation.ProvideService;
import org.apache.karaf.util.tracker.annotation.Services;
import org.notima.generic.ifacebusiness... | 23.095238 | 69 | 0.76701 |
9f5d70d4ed73718069f7dd1bf0ef55f539e37ec1 | 730 | package com.cabecinha84.zcashui;
import java.awt.Color;
import javax.swing.Action;
import javax.swing.JMenu;
public class ZcashJMenu extends JMenu {
private Color backGroundColor = ZcashXUI.menu;
private Color textColor = ZcashXUI.text;
public ZcashJMenu() {
super();
this.setBackground(backGroundColor);
thi... | 18.717949 | 47 | 0.743836 |
9434d56f64e64d6d015c7711864ea044ebd12369 | 8,721 | /*
* Author: K. Reed Bialousz
* 5/7/2015
*
* This Heat Map supports destructive interference between positive and negative edge weights.
* RawData is a view-model for weighted longitude-latitude points.
* Data is a view-model for the clustered data.
*
* To utilize this, enter your API key in the manifest and ... | 28.407166 | 120 | 0.640638 |
0ffd7e780490480e0e764631b70ec8f75a6e1b94 | 1,422 | package teletubbies.logic.parser;
import static java.util.Objects.requireNonNull;
import java.util.Collection;
import java.util.Set;
import teletubbies.commons.core.Messages;
import teletubbies.logic.commands.FilterCommand;
import teletubbies.logic.parser.exceptions.ParseException;
import teletubbies.model.person.Pe... | 33.857143 | 98 | 0.7391 |
156c94e0f49b909fd3da80bcceb2d5505ceaf87c | 5,250 | // Copyright 2014 Pants project contributors (see CONTRIBUTORS.md).
// Licensed under the Apache License, Version 2.0 (see LICENSE).
package com.twitter.intellij.pants.completion;
import com.intellij.codeInsight.completion.*;
import com.intellij.codeInsight.lookup.LookupElement;
import com.intellij.codeInsight.lookup... | 37.769784 | 121 | 0.724 |
7e1f7812aa09c2f3efd109c2626079c5503f14ca | 1,074 | package org.ldbcouncil.snb.driver.runtime.coordination;
public class MultiWriterCompletionTimeStateManagerWriter implements CompletionTimeWriter
{
private final int id;
private final MultiWriterCompletionTimeStateManager completionTimeStateManager;
MultiWriterCompletionTimeStateManagerWriter(
... | 27.538462 | 88 | 0.717877 |
ae16a53c2ed9b61015cdfe4a64da9c92eb83939d | 4,839 | /**
* 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.26 | 119 | 0.67142 |
d61ace1c893144fcc4c3b701c2b10023bc6b5897 | 1,154 | package smoovie.apps.com.kayatech.smoovie.ui.main.viewmodel;
import android.arch.lifecycle.LiveData;
import android.arch.lifecycle.ViewModel;
import java.util.List;
import smoovie.apps.com.kayatech.smoovie.MoviesRepository;
import smoovie.apps.com.kayatech.smoovie.model.Category;
import smoovie.apps.com.kayatech.smo... | 32.971429 | 104 | 0.766898 |
be847d24fdac1ffd532b344ee6f33222495cc600 | 516 | package com.msb.mall.coupon;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
@SpringBootApplication
@MapperScan("com.msb.mal... | 28.666667 | 72 | 0.813953 |
be56db4c3e53e98a92d49f52cc96724c50b3c37c | 431 | package com.fagi.responses;
/*
* Copyright (c) 2015. Nicklas 'MiNiWolF' Pingel and Marcus 'Zargess' Haagh.
* UserExists.java
*/
import java.io.Serial;
/**
* We send this response object when the user already exists and someone is trying to create a new
* user with the same username.
*
* @author miniwolf
*/
pu... | 22.684211 | 98 | 0.721578 |
1d7f04d7f85ecd9eec72c3fc5913658ff8e8d56f | 306 | class MyTest {
void processStrings(String... list) {
System.out.println(list);
}
void test() {
processStrings("", <error descr="'processStrings(java.lang.String...)' in 'MyTest' cannot be applied to '(java.lang.String, int, java.lang.String, java.lang.String)'">1</error>, "str", "s");
}
} | 34 | 194 | 0.650327 |
755f477bd23ca5d8718457c09eb2556f8509b8fa | 1,776 | package com.android.cardgame.cardgame;
import android.app.Activity;
import android.content.Intent;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.os.Handler;
/**
* Created by Jelen on 2015-10-09.
*/
public class Welcome extends Activity {
private boolean isFirstIn;
priv... | 26.117647 | 78 | 0.598536 |
a9af004dc538eba3f77f1f4485debceb04882a60 | 9,677 | package org.tain;
import java.text.NumberFormat;
import java.time.LocalDateTime;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.Optional;
import java.util.Random;
import java.util.stream.IntStream;
import org.springframework.beans.factory.annotation.Autowired;
import org.... | 27.413598 | 109 | 0.639558 |
d8267dd796c4e6b9f77bf84d5a5540a9286bc4fc | 1,984 | package minesweeper;
import javafx.application.Application;
import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.scene.image.Image;
import javafx.scene.image.ImageView;
import javafx.stage.Stage;
import java.io.*;
import java.util.Objects;
/**
* Main class for entering... | 36.072727 | 197 | 0.75252 |
83501f25b49518b2039bf7d5a75cdb0d5a539b80 | 2,984 | /*
* Copyright 2020 聂钊 nz@qdigo.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... | 34.298851 | 107 | 0.697051 |
a7f37c89a9f3534d271daf59c6977161677e9a36 | 6,745 | // Copyright (c) 2013-2014 Sandstorm Development Group, Inc. and contributors
// Licensed under the MIT License:
//
// 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, inc... | 32.272727 | 161 | 0.593625 |
ac3be13b4f94621eae18f165e9c927ef9bd78b26 | 421 | package com.example.dtcs.Canlender;
import android.content.Context;
import android.util.AttributeSet;
import com.test.sign_calender.DatePicker2;
/**
* Created by q9163 on 23/01/2018.
*/
public class SignCanlender extends DatePicker2{
public SignCanlender(Context context) {
super(context);
}
... | 17.541667 | 63 | 0.714964 |
055bcd0f5a5b105906e52d3bed3fa6af40b43580 | 1,654 | package com.gutotech.narutogame.data.network;
import androidx.annotation.NonNull;
import com.google.firebase.database.DataSnapshot;
import com.google.firebase.database.DatabaseError;
import com.google.firebase.database.DatabaseReference;
import com.google.firebase.database.FirebaseDatabase;
import com.google.firebase... | 31.807692 | 96 | 0.685611 |
7eb7a41274b042c36fa6fd941ffd68a574e96536 | 363 | package io.github.incplusplus.peerprocessing.common;
/** This enum contains values that are processed by the server and/or client */
public enum VariousEnums implements Header {
/**
* This tells the server to kill off the client connections. Also works vice versa where this is
* sent by the server telling the ... | 33 | 98 | 0.752066 |
7ceb682d0254490e07e61926875607502f9d87a9 | 4,386 | package org.minimalj.undertow;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.nio.charset.Charset;
import java.util.Collection;
import java.util.Map;
import org.minimalj.frontend.impl.json.JsonInput;
import org.minimalj.frontend.impl.json.JsonOutput;
import... | 33.738462 | 167 | 0.747378 |
27a59c3f4b04eaf0d89d71c6a0bfbf29ba9e91f6 | 182 | package io.guill.uniovi.ds.practica_3.editor;
public interface Figura {
public void dibujar();
public void mover(int dx, int dy);
public boolean contiene(int x, int y);
}
| 22.75 | 46 | 0.714286 |
9247f2840e193fa898230e324f9f7fc4a5f580b7 | 1,527 | /*
* Copyright 2017 LinkedIn Corp.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to i... | 29.941176 | 100 | 0.759005 |
04c4e0c587bd06c62558c6ca7528a8ac89aa28eb | 1,297 | package com.zhangjian.coolweather.consis;
import interfaces.heweather.com.interfacesmodule.bean.basic.Basic;
import interfaces.heweather.com.interfacesmodule.bean.basic.Update;
import interfaces.heweather.com.interfacesmodule.bean.weather.forecast.ForecastBase;
public class ForecastConst {
private Basic basic; //... | 37.057143 | 84 | 0.655359 |
67b6880c7cdb9cde7feb73fb949d3072e818efd5 | 2,865 | package bzh.medek.server.persistence.dao;
import java.util.List;
import javax.ejb.Stateless;
import javax.persistence.TypedQuery;
import bzh.medek.server.json.book.JsonBook;
import bzh.medek.server.json.home.BookStats;
import bzh.medek.server.persistence.entities.Book;
import bzh.medek.server.persistence.entities.Bo... | 27.815534 | 88 | 0.687609 |
a32478a3a81fe0806cba444395657eab56a8e8da | 2,146 | package org.linlinjava.litemall.db.service;
import com.github.pagehelper.PageHelper;
import org.apache.commons.lang3.StringUtils;
import org.linlinjava.litemall.db.dao.WxTempleteSendStatusMapper;
import org.linlinjava.litemall.db.domain.WxGzhUser;
import org.linlinjava.litemall.db.domain.WxTempleteSendStatus;
import o... | 39.018182 | 144 | 0.764678 |
ce61828d725dfd799f845f6b40b958df55305c5b | 11,025 | /*
* Copyright 2012 Red Hat, Inc. and/or its affiliates.
*
* 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... | 35.795455 | 149 | 0.608345 |
946ac140d43ecb0c1d4099e38b7a82f9731ca755 | 2,664 | /*
* ====================================================================
* 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
... | 38.608696 | 129 | 0.649024 |
4eef152d07fcda68a7dca2483d74b3d32069dda0 | 1,020 | package imnotjahan.mod.danmachi.networking;
import imnotjahan.mod.danmachi.capabilities.IStatus;
import imnotjahan.mod.danmachi.capabilities.StatusProvider;
import imnotjahan.mod.danmachi.networking.packets.MessageClientStatus;
import imnotjahan.mod.danmachi.util.exceptions.MissingStatus;
import net.minecraft.client.M... | 35.172414 | 109 | 0.752941 |
71956bbc1c85f958cf979bc07a4c3e8977293be6 | 1,851 | package cd4017be.automation.Gui;
import cd4017be.api.energy.EnergyAPI;
import cd4017be.api.energy.EnergyAutomation.IEnergyItem;
import cd4017be.automation.Item.ItemFilteredSubInventory;
import cd4017be.lib.BlockGuiHandler;
import cd4017be.lib.Gui.GuiMachine;
import cd4017be.lib.Gui.TileContainer;
import net.minecraft.... | 34.277778 | 111 | 0.756888 |
5d242948422007ad2e2d1e8910ab2b37004fe6f8 | 3,981 | package com.hd.message.controller;
import com.alibaba.fastjson.JSONObject;
import com.hd.message.dao.MessageRecordRepository;
import com.hd.message.dao.MessageSendRecordRepository;
import com.hd.message.dto.MessageDTO;
import com.hd.message.dto.MessageQueryDTO;
import com.hd.message.dto.ResponseData;
import com.hd.mes... | 36.522936 | 118 | 0.682994 |
58d595d48ccca13fe2e3be3795ce87215607ea4b | 2,596 | package com.genius.backend.infrastructure.security.social;
import com.genius.backend.domain.model.user.User;
import org.springframework.security.core.GrantedAuthority;
import org.springframework.security.core.authority.SimpleGrantedAuthority;
import org.springframework.social.security.SocialUserDetails;
import java.u... | 25.96 | 191 | 0.773498 |
e05c37dc0309d2b1b365a3346bb27dcb592deee9 | 641 | package bank.app.bankaccount;
import bank.BankAccount;
import bank.Holder;
import pt.tecnico.po.ui.Command;
/**
* This class represents a command for showing all the holders of an account.
*/
public class DoShowAccountHolders extends Command<BankAccount> {
/**
* Constructor.
*
* @param account
* ... | 22.103448 | 77 | 0.703588 |
24eb38e3fdf20c22a94c1598e1a4652b81f2d148 | 2,892 | /*
* 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 ... | 30.125 | 107 | 0.697095 |
e22f03002c22c6c42724a95ec8b82a1f8d09ab9e | 1,322 | /*
* Copyright 2016 Tsuyoshi Murakami
*
* 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... | 28.12766 | 75 | 0.606657 |
b63a46418b42d270bfc9c954a7ef7b2ffd116234 | 2,139 | /*
* Copyright (c) 2018, enoa (fewensa@enoa.io)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable l... | 40.358491 | 75 | 0.659187 |
44389585e2969d4919ac5f00d7ee46c5ae292f60 | 2,245 | /**
* If you really care for the license, look for the LICENSE.txt at the project root. Frankly, I
* really don't care.
**/
package com.example.starter.dao.impl;
import java.util.Iterator;
import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.slf4j.Logger;
import org.slf4j.Logge... | 33.014706 | 97 | 0.626726 |
e18a2240dd18e66bd46d48826f48d35878acb943 | 163 | @LooperMode(Mode.PAUSED)
package org.robolectric.plugins.config;
import org.robolectric.annotation.LooperMode;
import org.robolectric.annotation.LooperMode.Mode;
| 27.166667 | 50 | 0.846626 |
f5be96d16e72700faf1058a80665c4f72a7c33d5 | 629 | package com.mzdomanska.sda.trees.letter;
public class Answer<LetterInput,TextOutput> implements DecisionTree<LetterInput,TextOutput> {
private TextOutput output;
public Answer(TextOutput output) {
this.output = output;
}
@Override
public TextOutput ask(LetterInput letter) {
retur... | 24.192308 | 93 | 0.704293 |
5ac12ad24d3380b5626c25ebc37d1869cf103dc3 | 6,843 | /*
* 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.015789 | 122 | 0.674558 |
adda9bf8b0d5242ce15ac8b355c676446af79004 | 4,043 | package jlitec.command;
import java.io.IOException;
import java.util.Map;
import java.util.function.Function;
import java.util.stream.Collectors;
import java.util.stream.IntStream;
import jlitec.backend.passes.MethodWithFlow;
import jlitec.backend.passes.flow.FlowPass;
import jlitec.backend.passes.live.LivePass;
impor... | 35.464912 | 84 | 0.59164 |
ee671c895fcd61718597c43140bd0673b727eca5 | 373 | /**
* IF_Service.java
*
* This file was auto-generated from WSDL
* by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
*/
package com.pgxxgc.www.IF_Service;
public interface IF_Service extends java.rmi.Remote {
public java.lang.String IFService(java.lang.String sMsgID, java.lang.S... | 28.692308 | 123 | 0.723861 |
f4ad93307e2980067be7e7651ad381ab4865daf0 | 3,095 | package com.explore.fragment;
import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.support.v7.widget.GridLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import androi... | 30.95 | 132 | 0.712116 |
46e4766e94df420a5ec8781547ebb1682fdcc725 | 2,744 | package org.opencb.oskar.spark.variant.analysis;
import org.apache.spark.sql.Dataset;
import org.apache.spark.sql.Row;
import org.apache.spark.sql.catalyst.expressions.Expression;
import org.apache.spark.sql.functions;
import org.junit.Before;
import org.junit.ClassRule;
import org.junit.Test;
import org.opencb.biodat... | 35.179487 | 122 | 0.716108 |
eb64d79abf2243cfb04ffa6a9f317e09bad40007 | 232 | public class KthSmallestElement {
private static void minHeapify(int[] arr, int len) {
}
public static void main(String[] args) {
int arr[] = {12, 3, 5, 7, 19};
minHeapify(arr, arr.length-1);
}
}
| 17.846154 | 56 | 0.577586 |
f61685295d8a3b4b8d3cb365a94e151248a41843 | 82 | package com.hello;
public interface User {
public abstract void addUser();
}
| 13.666667 | 35 | 0.719512 |
6bedecebf7e65f136715d4fa6ba7e06cc7aa1852 | 2,014 | /*
* The contents of this file are subject to the license and copyright
* detailed in the LICENSE and NOTICE files at the root of the source
* tree and available online at
*
* http://www.dspace.org/license/
*/
package org.dspace.app.rest.converter;
import static org.junit.Assert.assertEquals;
import static org.j... | 31.968254 | 88 | 0.735353 |
fcfa9d9e032ecc251fb7614e5bf9dc3c63b918a2 | 1,683 | package com.smates.dbc2.po;
import java.util.UUID;
/**
* 优惠政策表
*
* @author machao
*
*/
public class TblPrefPolicy {
private String id;
private String fldWatershedCode;
private String fldCountyCode;
private String fldDate;
private String fldPrefPolicyType;
private double fldAllowance;
... | 20.277108 | 111 | 0.714795 |
8986c3b27964d3a3c9845f22d945c8c57557306f | 1,150 | package com.egoveris.deo.base.service;
import java.util.Map;
import com.egoveris.deo.base.exception.FirmaDocumentoException;
import com.egoveris.deo.model.model.FirmaResponse;
import com.egoveris.deo.model.model.RequestGenerarDocumento;
public interface FirmaDocumentoService {
/**
* Firma el documento con cer... | 33.823529 | 111 | 0.775652 |
409f8768d149ed8248f479588c199e75064d757b | 5,206 | /*
* Copyright 2016-2017 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | 31.361446 | 87 | 0.65655 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.