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 |
|---|---|---|---|---|---|
4df0bee686782276a91cdfba7639c752fea3d465 | 5,874 | // Copyright (C) 2016 DigiGene, (www.DigiGene.com)(alinhayati[at]gmail[dot]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.... | 38.142857 | 100 | 0.692543 |
a1e035cc255d7f5994b569338fa990986da232a3 | 5,205 | /**
* <p>Copyright: Copyright (c) 2019</p>
*
* <h3>License</h3>
*
* Copyright (c) 2019 by Jonatan Gomez-Perdomo. <br>
* All rights reserved. <br>
*
* <p>Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* <ul>
* <l... | 33.365385 | 116 | 0.706436 |
7d47df74f22f1059234502ab7ed5b429c1f34043 | 245 | package com.tpi2.contacorrente.models.dao;
public class AlteraClienteDao {
private String nome;
public AlteraClienteDao() {
}
public String getNome() {
return nome;
}
public void setNome(String nome) {
this.nome = nome;
}
}
| 12.894737 | 42 | 0.693878 |
6c7526b54184b53c0add8ba0b87d8faf29f32217 | 301 | package test;
import java.util.*;
/**
* Created by IntelliJ IDEA.
* User: dsl
* Date: Jun 17, 2004
* Time: 1:28:14 PM
* To change this template use File | Settings | File Templates.
*/
public class C {
{
List l = new ArrayList();
Collections.binarySearch(l, null);
}
}
| 16.722222 | 64 | 0.604651 |
2b51fb818f150631d6126f573342e6dcaa3284bd | 1,714 | package com.example.android.miwok;
import android.content.Context;
import android.support.annotation.NonNull;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ArrayAdapter;
import android.widget.ImageView;
import android.widget.TextView;
imp... | 31.740741 | 107 | 0.687281 |
7f8e798fec61690f07dd648ebb22bb71f04593df | 4,511 | // ============================================================================
//
// Copyright (C) 2006-2015 Talend Inc. - www.talend.com
//
// This source code is available under agreement available at
// %InstallDIR%\features\org.talend.rcp.branding.%PRODUCTNAME%\%PRODUCTNAME%license.txt
//
// You should have receiv... | 34.174242 | 130 | 0.59233 |
b1e7c395ca9cbe4fd03fd4bde49789dbd8720999 | 944 | package ru.job4j.array;
import org.junit.Test;
import static org.hamcrest.core.Is.is;
import static org.junit.Assert.assertThat;
public class SquareTest {
@Test
public void whenBoundThreeThenOneFourNine() {
int bound = 3;
Square square = new Square();
int[] result = square.calculate(b... | 29.5 | 65 | 0.598517 |
0b5fb5354a0291edc9d4e9fc6511fdac8cf1035d | 5,214 | /**
* Copyright 2011 The Open Source Research Group,
* University of Erlangen-Nürnberg
*
* 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/lic... | 19.825095 | 178 | 0.62639 |
e57564c575b895a581721fb4168bcfd80df56034 | 9,669 | // Generated by OABuilder
package com.cdi.model.search;
import java.util.logging.*;
import com.viaoa.object.*;
import com.viaoa.datasource.*;
import com.viaoa.hub.*;
import com.viaoa.util.*;
import com.viaoa.util.filter.*;
import com.cdi.model.*;
import com.cdi.model.oa.*;
import com.cdi.model.oa.propertypath.*;
impo... | 42.407895 | 131 | 0.718482 |
1c963276a182832fe893a5a6ad60212e95c01d50 | 9,357 | package urjc.gamelink.Controllers;
import java.io.IOException;
import java.net.URI;
import java.security.Principal;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.List;
import java.util.Optional;
import javax.servlet.http.HttpServletRequest;
import org.hibernate.engine.jdbc.BlobProxy;
imp... | 34.527675 | 114 | 0.660468 |
2b735f83e1609f1d2dfec9992a5a1d5de15a5c90 | 1,059 | /* Copyright (c) 2008-2013, Avian Contributors
Permission to use, copy, modify, and/or distribute this software
for any purpose with or without fee is hereby granted, provided
that the above copyright notice and this permission notice appear
in all copies.
There is NO WARRANTY for this software. See l... | 21.612245 | 68 | 0.638338 |
daa812c8e37ab5e71f513c95dc5240e79f1d94ef | 1,388 | package org.smartframework.cloud.examples.api.ac.core.configure;
import org.smartframework.cloud.examples.api.ac.core.controller.ApiMetaController;
import org.smartframework.cloud.examples.api.ac.core.listener.NotifyGatewayFetchApiMetaListener;
import org.smartframework.cloud.examples.api.ac.core.properties.ApiAccessP... | 43.375 | 144 | 0.839337 |
ff544cb697b0398853afcf071b6e8da759739413 | 474 | package vip.efactory.modules.monitor.service.mapper;
import org.mapstruct.Mapper;
import org.mapstruct.ReportingPolicy;
import vip.efactory.base.BaseMapper;
import vip.efactory.modules.monitor.domain.Server;
import vip.efactory.modules.monitor.service.dto.ServerDTO;
/**
* @author Zhang houying
* @date 2019-11-03
*/
@... | 27.882353 | 81 | 0.805907 |
f73005c5a84106a37ab7f566148883fb72a1e290 | 2,874 | /*
* Copyright (C) 2016 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | 41.652174 | 125 | 0.709812 |
dc584167b7d26472a3409d3cface03a2ef4fb02e | 19,575 | package main.image;
import java.awt.Color;
import java.awt.Point;
import java.awt.Rectangle;
import java.awt.image.BufferedImage;
import java.util.HashSet;
import java.util.LinkedList;
import java.util.List;
import java.util.Set;
import main.util.Fn;
/**
*
* @author Bunnyspa
*/
public class ColorMatrix {
priv... | 31.674757 | 99 | 0.450983 |
9ca2359135553683043e8e54cf7e5f8330f3a79b | 2,673 | package uk.gov.dvla.osl.ordnancesurvey.service.resources;
import com.codahale.metrics.annotation.ExceptionMetered;
import com.codahale.metrics.annotation.Timed;
import lombok.extern.slf4j.Slf4j;
import uk.gov.dvla.osl.addresslookup.api.os.OrdnanceSurveyServiceAPI;
import uk.gov.dvla.osl.commons.error.api.response.Erro... | 36.121622 | 120 | 0.713056 |
8c47c3de4d6d7639460ecabf337abad57ff76210 | 4,335 | package com.massfords.calcviz;
/**
*
* Serializes the expression to a string.
*
* @author markford
* Date: 3/1/12
*/
public class ExpressionSerializerVisitor extends BaseVisitor<Void, CalcException> {
/**
* keeps track of the expression we're building.
*/
private final StringBuilder sb ... | 22.117347 | 83 | 0.546021 |
ebcf60d2eb9421fe4bb23de6c4bcbbd390b1b3f7 | 4,069 | package com.lambdaschool.starthere.controllers;
import com.lambdaschool.starthere.logging.Loggable;
import com.lambdaschool.starthere.models.Pickup;
import com.lambdaschool.starthere.models.User;
import com.lambdaschool.starthere.services.PickupService;
import org.springframework.beans.factory.annotation.Autowired;
im... | 39.504854 | 91 | 0.617105 |
b132e64c74398c477542ff73c66ef91daf9946b6 | 7,213 | /**
*
*/
package org.orange.familylink.sms;
import org.orange.familylink.BuildConfig;
import org.orange.familylink.MessagesActivity;
import org.orange.familylink.R;
import org.orange.familylink.data.MessageLogRecord.Status;
import org.orange.familylink.database.Contract;
import org.orange.familylink.database.Contrac... | 37.373057 | 97 | 0.755303 |
ab9d36e5a6af8147c8f1d3218bda9cbe384f4442 | 1,205 | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package org.oastem.frc.pid;
import edu.wpi.first.wpilibj.PIDController;
/**
*
* @author KTOmega
*/
public class PIDControllerCollection {
private PIDController[] ctrl;
private int i = 0;
private int max;... | 21.140351 | 74 | 0.516183 |
b9251903cd90c6b65242eb2bbf67185153f8380b | 1,426 | package com.dev.doc.service.impl;
import java.util.List;
import org.springframework.stereotype.Service;
import com.dev.base.mybatis.service.impl.BaseMybatisServiceImpl;
import com.dev.base.util.Pager;
import com.dev.doc.dao.ModuleDao;
import com.dev.doc.entity.Module;
import com.dev.doc.service.ModuleService;
/**
... | 26.90566 | 101 | 0.755259 |
1c6a8b8060951e0daac3a4d1d013a7d349f72935 | 362 | package com.rbkmoney.messages.dao;
import com.rbkmoney.messages.domain.Conversation;
import com.rbkmoney.messages.exception.DaoException;
import java.util.List;
public interface ConversationDao {
void saveAll(List<Conversation> conversations) throws DaoException;
List<Conversation> findAllById(List<String>... | 24.133333 | 85 | 0.812155 |
c26f5ab573e1515753ae901a6bd89b3c56674a4c | 1,035 | package com.emeraldcube.ais.objects;
public class MathValue {
private int currencyDecimals;
private boolean zero;
private boolean negative;
private int intValue;
private int decimalPosition;
public void setCurrencyDecimals(int currencyDecimals) {
this.currencyDecimals = currencyDecima... | 20.294118 | 59 | 0.647343 |
02b450d1e7e98b27186c89bd290c03a0e735ab49 | 7,919 | /*
* Copyright 2019 Haulmont.
*
* 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... | 32.191057 | 112 | 0.657785 |
ed970df7f31a0e7d4d159aea1520db7bcb376966 | 11,799 | /*
* Copyright 2019 The Chromium Authors. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
package io.flutter.logging.tree;
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
import com.google.gson.JsonElement;
import com.go... | 30.887435 | 134 | 0.671921 |
189ff527950b32abc349aa6a28b8f8b156b227b6 | 528 | public class Pr0413 {
public static String splice(String a, String b) {
int i = 0;
String ret = "";
while (i < a.length())
ret += "" + a.charAt(i) + b.charAt(i++);
return ret;
}
public static void main(String[] args) {
String one = MyLibrary.getWord("Give me a word");
String two = MyLibrary.getWor... | 24 | 79 | 0.621212 |
201d97a7987094ac444c60e71899f44b10671e59 | 1,454 | /*
* Copyright 2021 Alemiz
* 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, ... | 33.813953 | 136 | 0.724897 |
6503ed5efb27c1ba592acff0d20490376bbfdf2d | 5,192 | /*
* Copyright 2011 by Graz University of Technology, Austria
* MOCCA has been developed by the E-Government Innovation Center EGIZ, a joint
* initiative of the Federal Chancellery Austria and Graz University of Technology.
*
* Licensed under the EUPL, Version 1.1 or - as soon they will be approved by
* the Europ... | 31.277108 | 85 | 0.696456 |
690ff0d4e993dd7eebd9423357986ca69634a0f6 | 2,848 | /**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
*/
package com.microsoft.azure.management.mediaservices.v2015_10_01.implementation;
import... | 29.061224 | 122 | 0.676966 |
7240563e46c0d138b2b1b7a89fd2f250af047935 | 2,180 | /*
* DBeaver - Universal Database Manager
* Copyright (C) 2010-2021 DBeaver Corp 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/LICE... | 26.91358 | 97 | 0.661468 |
98651713326b6301475f67c6c46d0a05fc2063a8 | 2,594 | /*
* 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 ... | 41.174603 | 109 | 0.792984 |
953a578e19133b3cf038b25552a47295e45e4ab9 | 2,984 | /*
* Copyright (C) 2019 Pieter Pauwels, Ghent University
* Modifications Copyright (C) 2020 Giovanni Velludo
*
* This file is part of IFC.JAVA.
*
* 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 Li... | 48.129032 | 100 | 0.602547 |
2062023e32a7215cb6762bf86bd080840ffe5502 | 12,483 | package com.rjliulei.quanzi.util;
import java.lang.reflect.Field;
import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.atomic.AtomicInteger;
import android.app.Activity;
import android.app.ActivityManager;
import android.app.Service;
import android.app.ActivityManager.RunningServiceInfo;
imp... | 24.524558 | 109 | 0.687896 |
7510b5ad467282a31c80441b19d3b445536b1e1e | 1,867 | //package com.base.common.config;
//
//import java.io.IOException;
//
//import javax.servlet.Filter;
//import javax.servlet.FilterChain;
//import javax.servlet.FilterConfig;
//import javax.servlet.ServletException;
//import javax.servlet.ServletRequest;
//import javax.servlet.ServletResponse;
//import javax.s... | 34.574074 | 107 | 0.687199 |
b2411748147fea0cbc9257e1849474eb1f3519b3 | 1,519 | package org.cyclops.everlastingabilities.api;
import net.minecraft.item.Rarity;
import net.minecraft.util.text.ITextComponent;
import net.minecraft.util.text.StringTextComponent;
import net.minecraft.util.text.TranslationTextComponent;
import javax.annotation.Nonnull;
import java.util.Objects;
/**
* An ability inst... | 27.125 | 167 | 0.655036 |
a65c8121cf195e19c257008d80f5487fe285ebc3 | 124 | package INHERITANCE.Zoo;
public class Snake extends Reptile{
public Snake(String name) {
super(name);
}
}
| 15.5 | 36 | 0.653226 |
2b38c0e64a200e4c8f462c2f77bd6fe7794c3a36 | 828 | import java.util.Scanner;
public class Traversematrix{
public static void main(String args[]){
Scanner scan = new Scanner(System.in);
int value = scan.nextInt();
boolean iseven = true;
int a[][]= new int[10][10];
if(value%2==0)
iseven=true;
else
iseven=false;
int i,j;
int c=1;
int l=1;
int f=0;
// ... | 11.342466 | 39 | 0.528986 |
64e294ca0ddc58b754dc72435f976f25cfe0b3c2 | 495 | package ru.stqa.pft.mantis.appmanager;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
public class NavigationHelper extends HelperBase {
public NavigationHelper(ApplicationManager app) {
super(app);
}
public void loginPage() {
wd.get(app.getProperty("web.baseUrl"));
}
public... | 21.521739 | 83 | 0.680808 |
6a328be069e379262361afbe60fa597141f783fd | 10,932 | package com.softlayer.api.gen;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Set;
public class MetaConverter {
protected static final Map<String, String> keywordReplacements;
protected... | 48.15859 | 119 | 0.562294 |
2cff0140bef867bdf4254b31fc299e7ce2ed50ec | 6,124 | package com.safet.admin.bustrackeradmin;
import android.content.Context;
import android.content.Intent;
import android.net.ConnectivityManager;
import android.net.NetworkInfo;
import android.support.annotation.NonNull;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.support.v7... | 39.766234 | 126 | 0.634063 |
10ef67d83de1ccd6d8bf4b8189ca987592f4c1ee | 591 | /*
* Copyright (c) 2021. Clément Grennerat
* All rights reserved. You must refer to the licence Apache 2.
*/
package fr.clementgre.pdf4teachers.document.editions.undoEngine;
public abstract class UndoAction{
private final UType undoType;
public UndoAction(UType undoType){
this.undoType = ... | 22.730769 | 85 | 0.673435 |
8466f213c5b3c6c0f50a54e2bced2f29f529051f | 653 | package com.example.lewjun.domain;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import javax.persistence.*;
@NoArgsConstructor
@AllArgsConstructor
@Data
@Accessors(chain = true)
@Entity
public class SysPermission extends BaseObj {
@I... | 24.185185 | 58 | 0.744257 |
8dbaed06eef0b69e55aa93a12b9dc03b889818fc | 1,658 | /*
* Licensed to Brownbaglunch.fr under one or more contributor
* license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright
* ownership. Brownbaglunch.fr licenses this file to you under
* the Apache License, Version 2.0 (the "License"); you may
* not use t... | 38.55814 | 129 | 0.717129 |
53b62ade4e62f0e1bca023f63a17148a47b3def1 | 716 | package cloud.chenh.doch.data.repo;
import cloud.chenh.doch.data.base.BaseRepository;
import cloud.chenh.doch.data.entity.Project;
import cloud.chenh.doch.data.entity.User;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;
import java.util.List;
@Repository
publi... | 29.833333 | 108 | 0.76676 |
46d59979c9a0c1261732c719943e52f8eac27d34 | 2,643 | package com.demo.mark.myeventbus_demo;
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;
import android.widget.Toast;
import com.demo.mark.myeventbus... | 31.464286 | 98 | 0.67045 |
2181fca88f4ea1e51b77dc6d63671ae935379a41 | 4,597 | /**
* 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... | 29.280255 | 97 | 0.649337 |
7b41d4e2845e9289c4eb99ef31a1950137a7b556 | 762 | package org.pikater.core.ontology.subtrees.metadata;
import java.util.ArrayList;
import java.util.List;
import jade.content.AgentAction;
public class GetAllMetadata implements AgentAction {
/**
*
*/
private static final long serialVersionUID = -5223603055736238437L;
private List<Metadata> exceptions;
priv... | 19.538462 | 68 | 0.76378 |
2c8189c62b265e9265cbdef82cf64554625f703d | 386 | package com.xpcf.mall.seckill.config;
import org.springframework.context.annotation.Configuration;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;
/**
* TODO
*
* @author XPCF
* @version 1.0
* @date 2/13/2021 7:25 AM
*/
@Configurati... | 20.315789 | 66 | 0.787565 |
476effbb4b45a0addc6e724e4e7cb2824ff87b77 | 827 | import java.util.ArrayList;
import java.util.List;
import java.util.zip.CRC32;
public class A {
private static A instance;
public static A getInstance() {
if (instance == null)
instance = new A();
return instance;
}
private String randomHash() {
CRC32 crc32 = new ... | 21.205128 | 72 | 0.5526 |
f0b2076b48dd5d698024cbd3ecae43fc6cd81a95 | 169 | package victor.training.oo.creational.factory.blocks.lego;
import victor.training.oo.creational.factory.blocks.spi.Board;
public class LegoBoard implements Board {
}
| 21.125 | 62 | 0.816568 |
0f2c7117f844d62108ba3979e3764e2a5088989a | 2,320 | package me.tagavari.airmessage.connection.listener;
import androidx.annotation.Nullable;
import androidx.arch.core.util.Function;
import me.tagavari.airmessage.common.Blocks;
import me.tagavari.airmessage.enums.AttachmentReqErrorCode;
import me.tagavari.airmessage.enums.ConnectionErrorCode;
import me.tagavari.airmessa... | 59.487179 | 214 | 0.842672 |
c6ef7c2885fc574d5ad6b528d53dbd52da445ef2 | 3,114 | package com.dronfieslabs.portableutmpilot.ui.activities;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.util.Log;
import android.view.ViewGroup;
import android.widget.Button;
import android.widget.ImageView;
import andro... | 38.925 | 157 | 0.733783 |
9b6df8d3170b4910af105ba5226c472fbcf0a915 | 1,252 | package com.regnosys.rosetta.resource;
import java.util.Map;
import org.eclipse.emf.ecore.EObject;
import org.eclipse.xtext.resource.IEObjectDescription;
public interface IndexedFeature<T> {
T getValue(IEObjectDescription desc);
T getValue(EObject object);
void index(EObject obj, Map<String, String> userData);... | 21.220339 | 92 | 0.720447 |
8055ef7937050cfd512baea885865c7eea454960 | 1,607 | /*******************************************************************************
* Copyright (c) 2015 Eclipse RDF4J contributors, Aduna, and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Distribution License v1.0
* which accompanies th... | 30.320755 | 117 | 0.686372 |
054a4fb35a99c07ae077f6670a37f9af6eb0c013 | 14,626 | package org.hkijena.jipipe.extensions.expressions.ui;
import com.google.common.html.HtmlEscapers;
import org.hkijena.jipipe.api.registries.JIPipeExpressionRegistry;
import org.hkijena.jipipe.extensions.expressions.*;
import org.hkijena.jipipe.ui.components.FormPanel;
import org.hkijena.jipipe.utils.StringUtils;
import... | 56.471042 | 208 | 0.646862 |
a3bf8a97e01e5259008d2221ae4a3a724d2a70da | 6,961 | /**
* Copyright 2019 tonwu.net - 顿悟源码
*
* 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... | 34.122549 | 106 | 0.568022 |
fc3ea5f38918f842825fb5e8c593bde913c41dc0 | 30,325 | package org.opensha.sha.earthquake.faultSysSolution.inversion.sa;
import java.util.Arrays;
import java.util.List;
import java.util.Random;
import org.apache.commons.cli.CommandLine;
import org.apache.commons.cli.Option;
import org.apache.commons.cli.Options;
import org.apache.commons.lang3.time.StopWatch;
import org.... | 36.668682 | 133 | 0.709316 |
5d40f862ae91b207cbef21490846358596b38cee | 2,187 | package com.habitat.HABITAT.Controller;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.anno... | 34.714286 | 112 | 0.80567 |
8347b24a576604c0afe3874a0acc0c74831892cc | 4,060 | package com.zlkcxd.dao.domain;
import java.io.Serializable;
import java.util.Date;
import org.apache.commons.lang3.builder.ReflectionToStringBuilder;
public class OperationLog implements Serializable {
/**
* 自增长ID -- s_operation_log.id
*
*/
private Long id;
/**
* 操作者 -- s_operation_l... | 18.883721 | 81 | 0.560837 |
d983b74ab816eb838efba4fb5e4251b384c07653 | 5,316 | /*
*
* * Copyright 2020 New Relic Corporation. All rights reserved.
* * SPDX-License-Identifier: Apache-2.0
*
*/
package com.newrelic.agent.tracers.jasper;
import java.lang.reflect.Method;
import java.util.HashMap;
import java.util.Map;
public class JasperClassFactory {
static final Map<ClassLoader, Jasp... | 32.613497 | 118 | 0.685666 |
a459e9aaaefa93f19c8cd5ec844947f5339e8d0a | 6,954 | /*
* 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 ... | 49.671429 | 128 | 0.658614 |
cfefe51bd656231d80c626a753c346347895b19f | 280 | package com.codingblocks.lecture_9.access;
public class Child extends Parent {
public void sample(){
System.out.println(this.pub);
System.out.println(this.prot);
// System.out.println(this.pri);
System.out.println(this.deft);
}
}
| 25.454545 | 43 | 0.628571 |
8cc364ff3fa4c4c80f12b2306faa6c2d9cdedd4a | 4,019 | /*
* Copyright 2008-2014 Hippo B.V. (http://www.onehippo.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 ... | 33.491667 | 121 | 0.709132 |
135649b723cb1a82abd71474bdbf46c624b22fd5 | 19,912 | /*
* 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 ... | 42.186441 | 109 | 0.769938 |
6097459d63e023d3845d1f7e6f93992222c139f7 | 12,026 | /*
* 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 ... | 36.776758 | 116 | 0.674871 |
f6ee9fb9e2933ab177deba744f8a7d109dfc8c1e | 4,794 | package gui.tabs;
import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Component;
import java.awt.Dimension;
import java.awt.GridLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.io.File;
import javax.swing.BorderFactory;
import javax.swing.JButton;
import ja... | 28.035088 | 100 | 0.665624 |
1b9cf3c3bd03ffe3b3bddb4a7bed5326fe34b6db | 391 | package com.java.advanced.features.juc.c_001;
/**
* synchronized 关键字
* 对某个对象加锁
*
* @author wangzhichao
* @since 2020/3/28
*/
public class T {
private int count = 10;
private Object o = new Object();
public void m() {
synchronized (o) {
count--;
System.out.println(Thre... | 18.619048 | 87 | 0.567775 |
bfeec0724102a62e6f9a1dd877cf14e719b71d32 | 2,184 | //
// Diese Datei wurde mit der JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.3.2 generiert
// Siehe <a href="https://javaee.github.io/jaxb-v2/">https://javaee.github.io/jaxb-v2/</a>
// Änderungen an dieser Datei gehen bei einer Neukompilierung des Quellschemas verloren.
// Generiert: 2020.0... | 29.513514 | 131 | 0.68544 |
e1c4f82f073601f869a04efd35b8f355375f655b | 2,720 | package implementations.arreglos;
import api.ConjuntoTDA;
import api.DiccionarioMultipleTDA;
/**
* @author: Leto, Marcelo; Godoy Parise, Andres; Rodriguez Cachuan, Gleny
* @definition: Implementacion de Diccionario, utilizando un arreglo de elementos donde
* cada uno de estos contiene una clave y un arreglo de va... | 23.652174 | 88 | 0.690074 |
42ba3e276fcb5eafbf5d96d874ff7accd78b949d | 1,846 | package richards;
public class TaskState extends RBObject {
private boolean packetPending;
private boolean taskWaiting;
private boolean taskHolding;
public boolean isPacketPending() { return packetPending; }
public boolean isTaskHolding() { return taskHolding; }
public boolean isTaskWaiting() { ret... | 23.974026 | 70 | 0.684182 |
cdccf7f4fd1adbcd7db7b8f4941c0c793bf290da | 11,820 | package de.sematre.dsbmobile;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.Reader;
import java.io.Serializable;
import java.net.URL;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Date;
import java.util.HashMap;
import java... | 28.68932 | 169 | 0.654822 |
6c7b3dd96bbe87d6ed38603984315bf1a218cc58 | 679 | import java.util.Arrays;
public class odev_42 {
public static void main(String[] args) {
// TODO Auto-generated method stub
int[] dizi = {10, 20, 20, 10, 10, 20, 5, 20};
int count;
System.out.println("Dizi : " + Arrays.toString(dizi));
System.out.println("Tekrar Sayıları");
for (int i = 0; i < dizi... | 16.166667 | 77 | 0.490427 |
ac63aab0dd7621b1e4837bfd781680649558226a | 4,454 | /*
* Copyright 2013-present Facebook, 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... | 30.29932 | 99 | 0.679614 |
5c4c063b32427eadb5312128df8fec89cc7a1726 | 1,559 | package com.interview.systemdesign;
class Board {
public static final int BOARD_SIZE = 3;
private final Player[][] grid = new Player[BOARD_SIZE][BOARD_SIZE];
public Board makeMove(final Move move) {
grid[move.x][move.y] = move.player;
return this;
}
public Board undo(final Move m... | 24.746032 | 104 | 0.570237 |
ee5f97874aadb66e59b5a682425b58c5bf9dbaa7 | 846 | package com.journaldev.mvpdagger2.view.adapter;
import android.support.v4.app.FragmentStatePagerAdapter;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
public class FragmentPagerAdapter extends FragmentStatePagerAdapter {
int mNumOfTabs;
Fragment[] fragments = new Fragm... | 27.290323 | 90 | 0.667849 |
626bee8e5e174f9d0422089671829fbcec1bdad1 | 1,804 | /*
* MundiAPILib
*
* This file was automatically generated by APIMATIC v2.0 ( https://apimatic.io ).
*/
package com.mundipagg.api.models;
import java.util.*;
public class UpdatePricingSchemeRequestBuilder {
//the instance to build
private UpdatePricingSchemeRequest updatePricingSchemeRequest;
... | 27.333333 | 108 | 0.665188 |
124103cf3df4cbed45fb958a1482ea1132440229 | 1,864 | package UnusedReferences;
import javafx.scene.paint.Color;
/**
* StateNode class to keep track of the history of
* states that each cell has been in
*
* Has no dependencies
*
* @author Dorian
*
*/
public class StateNode {
//Information specific to the actual cell state
private Color stateColor;
private... | 19.829787 | 55 | 0.70279 |
1a4486aebd1f1e083e1d6927e60cf313baef75af | 2,915 | package io.neow3j.contract;
import io.neow3j.contract.abi.model.NeoContractEvent;
import io.neow3j.contract.abi.model.NeoContractFunction;
import io.neow3j.contract.abi.model.NeoContractInterface;
import io.neow3j.model.types.ContractParameterType;
import java.util.List;
import static io.neow3j.utils.Strings.isEmpty... | 32.388889 | 129 | 0.638079 |
37373da0599ca24ccad34e95350a8342f508d559 | 1,135 | package com.oubowu.ipanda.util;
import com.bumptech.glide.load.engine.DiskCacheStrategy;
import com.bumptech.glide.load.resource.drawable.DrawableTransitionOptions;
import com.bumptech.glide.request.RequestOptions;
import com.bumptech.glide.request.transition.DrawableCrossFadeFactory;
import com.oubowu.ipanda.R;
/**
... | 32.428571 | 180 | 0.718943 |
b3be1f51ff767455317192a4da6d8fda037af00f | 76 | /**
* Collectors for client metrics.
*/
package io.lettuce.core.metrics;
| 12.666667 | 33 | 0.697368 |
85fef01dce3c49084d171d592f76d7090d94ab49 | 6,240 | package org.firstinspires.ftc.teamcode.tests;
import com.qualcomm.robotcore.eventloop.opmode.Disabled;
import com.qualcomm.robotcore.eventloop.opmode.LinearOpMode;
import com.qualcomm.robotcore.eventloop.opmode.TeleOp;
import com.qualcomm.robotcore.hardware.CRServo;
import com.qualcomm.robotcore.hardware.DcMotor;
impo... | 31.675127 | 108 | 0.620994 |
cddd603530e85cac622a3bc257980c7e2ae72600 | 9,619 | /*****************************************************************************
* Source code information
* -----------------------
* Original author Ian Dickinson, HP Labs Bristol
* Author email ian_dickinson@users.sourceforge.net
* Package Jena 2
* Web http://sourceforge.net/pr... | 38.170635 | 143 | 0.628444 |
0d0c53f601d602836268dc14a4f5c882676c2585 | 34,700 | package ca.uqam.inf2120;
class JamoReplacements {
static final int JAMOS_LAST_CONSONANT_NUMBER = 27;
static final int JAMOS_FIRST_CONSONANT_NUMBER = 19;
static final JamosPhoneticReplacement[][] REPLACEMENTS = new JamosPhoneticReplacement[][] {
/* 1 */
{
/* 1 */ new JamosPhone... | 57.355372 | 95 | 0.56389 |
cc086a1cf6044ba65352af1865c4a861da620bab | 2,067 | package b.j.a.c.e0;
import b.e.a.a.a;
import b.j.a.c.i;
import b.j.a.c.j0.g;
import java.lang.reflect.AnnotatedElement;
import java.lang.reflect.Member;
public final class l extends h {
/* renamed from: j reason: collision with root package name */
public final m f1923j;
/* renamed from: k reason: col... | 22.714286 | 85 | 0.546202 |
95001a4a8ea9cf3242d2f21d87aa5607efcd1f8c | 375 | package com.bupt.protocol;
import lombok.Data;
import java.io.Serializable;
@Data
public class Request implements Serializable {
private static final long serialVersionUID = 7259204908595536308L;
private Long id; //请求id,标识一次请求
private String className;
private String methodName;
private Class<?>... | 22.058824 | 70 | 0.752 |
60634bed038d0ecbf00877f50729b8fd37b62672 | 719 | package com.pengyeah.uidemos;
import androidx.appcompat.app.AppCompatActivity;
import android.os.Bundle;
import android.view.Window;
import android.view.WindowManager;
import com.pengyeah.clockview.widgets.TimeDiskView;
public class ClockViewDemo extends AppCompatActivity {
@Override
protected void onCreat... | 29.958333 | 77 | 0.759388 |
6a4606fa3b0ae2d64ca09cb880c18fe705a030e9 | 5,067 | package de.metas.dataentry.data;
import static org.adempiere.model.InterfaceWrapperHelper.load;
import static org.adempiere.model.InterfaceWrapperHelper.newInstance;
import static org.adempiere.model.InterfaceWrapperHelper.saveRecord;
import java.util.List;
import java.util.Optional;
import java.util.stream.Stream;
... | 33.335526 | 110 | 0.793961 |
359ba104514d1485cd23cc158bd6df509250a921 | 3,241 | /*
* Copyright 2012 Daniel Bechler
*
* 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... | 40.012346 | 104 | 0.77291 |
3660f7c5ff8f010b547d0eefde2b8714ef5fd8fc | 782 | package RuntimeConstantPool;
import java.util.Random;
public class TestIntern2 {
/**
* 总结:jdk1,6常量池放在方法区,jdk1.7常量池放在堆内存
* ,jdk1.8放在元空间里面,和堆相独立。所以导致string的intern方法因为以上变化在不同版本会有不同表现。
*
* @param args
*/
static final int MAX = 10737410;
static final String[] arr = new String[MAX];
public static void main... | 23.69697 | 76 | 0.659847 |
ad934cc5e7e72c0515f124efc1c22ddf65a496ef | 3,802 | /*
* The MIT License
* Copyright © 2018
*
* 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, pu... | 30.66129 | 82 | 0.697791 |
6fde7fe23823a0290de336f2264b354f72aa2eb1 | 2,612 | /**
* Copyright © 2016-2022 liuhangjun All rights reserved.
*/
package com.channelsharing.hongqu.portal.api.service.impl;
import com.channelsharing.common.cache.CacheDuration;
import com.channelsharing.common.cache.ExpireTimeConstant;
import com.channelsharing.hongqu.portal.api.constant.Constant;
import com.cha... | 36.277778 | 139 | 0.73392 |
60c2a990a6cf5f1932941e24693403cd8a953e2a | 2,190 | /*
* Copyright (c) 2015-2020 Snowplow Analytics Ltd. All rights reserved.
*
* This program is licensed to you under the Apache License Version 2.0,
* and you may not use this file except in compliance with the Apache License Version 2.0.
* You may obtain a copy of the Apache License Version 2.0 at http://www.apach... | 32.205882 | 114 | 0.647945 |
cdee327c503e92148b9e35919ec0abfb823623f1 | 10,601 |
package com.vladium.utils;
import java.io.OutputStream;
import java.io.OutputStreamWriter;
import java.io.PrintWriter;
import java.io.UnsupportedEncodingException;
import java.text.DecimalFormat;
import java.text.NumberFormat;
// ----------------------------------------------------------------------------
/**
* A F... | 35.573826 | 130 | 0.462787 |
aaf654e8e900537854a94da82116ad1fc7444194 | 3,639 | /*
* Copyright (c) 2008-2019, Hazelcast, Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required ... | 27.156716 | 95 | 0.615004 |
7cd3c932d14d555d9144a912fd71e69a05980c21 | 1,378 | /*
* Copyright (c) 2019, Zuse Institute Berlin.
*
* Licensed under the New BSD License, see LICENSE file for details.
*
*/
package de.zib.paciofs.multichain.rpc.types;
import com.google.gson.annotations.SerializedName;
import java.math.BigDecimal;
public class UnspentTransactionOutput {
@SerializedName("txid"... | 23.355932 | 79 | 0.688679 |
7f3b21111d549ca72b52849eb432acea21572d0a | 194 | package uk.co.mruoc.transport.location;
public interface Location {
String getName();
default boolean hasName(String otherName) {
return getName().equals(otherName);
}
}
| 16.166667 | 47 | 0.685567 |
4264a9a5c94e1755f5b9cbcbc9bf6fe38eb21656 | 1,007 | package com.potato369.find.order.service;
import com.github.binarywang.wxpay.bean.notify.WxPayOrderNotifyResult;
import com.potato369.find.common.dto.OrderInfoDTO;
import com.potato369.find.common.vo.result.AliAppPayResult;
import com.potato369.find.common.vo.result.WeChatAppPayResult;
import java.util.Map;
public i... | 21.891304 | 70 | 0.656405 |
fb154593692b67f6c189a600d8659b009c3044be | 1,019 | package org.notima.fortnox.command.table;
import java.util.List;
import org.apache.karaf.shell.support.table.ShellTable;
import org.notima.api.fortnox.entities3.PreDefinedAccount;
import org.notima.api.fortnox.entities3.PreDefinedAccountSubset;
public class PreDefinedAccountTable extends ShellTable {
public void ... | 17.877193 | 64 | 0.691855 |
04a5f46908060b990c8c12199d2ccb057ab7bcd4 | 2,943 | package com.ybz;
import com.ybz.controller.DataNodeTravelController;
import com.ybz.dao.NodeTravelMapper;
import com.ybz.entity.NodeTravelExample;
import com.ybz.utils.DataBaseUtils;
import com.ybz.utils.DateUtils;
import com.yonyou.iuap.context.InvocationInfoProxy;
import org.apache.commons.lang.StringUtils;
... | 39.24 | 149 | 0.747537 |
9dcc023f07b788dfe75da981855e44139a11526d | 1,797 | //,temp,NetscalerResource.java,2786,2812,temp,NetscalerResource.java,2764,2784
//,3
public class xxx {
private void unBindServiceToMonitor(final String nsServiceName, final String nsMonitorName) throws ExecutionException {
try {
com.citrix.netscaler.nitro.resource.config.basic.service serviceOb... | 56.15625 | 159 | 0.657763 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.