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 |
|---|---|---|---|---|---|
9095cb5c63e41b6a65a8f94d9ef21144d80c2fa9 | 504 |
package org.openecomp.ncomp.sirius.manager.agent.servers.monitoring.south.logging;
import org.openecomp.entity.EcompOperationEnum;
public enum SouthBoundApiOperationEnum implements EcompOperationEnum {
SouthBoundApi_logs("SouthBoundApi@logs"),
SouthBoundApi_metrics("SouthBoundApi@metrics"),
SouthBoundApi_prop... | 20.16 | 82 | 0.78373 |
b46c447484cf659d63f3eb48a5a8d19a087fe5c7 | 2,035 | /*
* Copyright 2019 Wultra s.r.o.
*
* 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... | 26.428571 | 78 | 0.663391 |
595f534c39260b561274dad8c41263c4d798bdf4 | 2,724 |
package org.springframework.web.jsf;
import javax.faces.application.NavigationHandler;
import javax.faces.context.FacesContext;
import org.junit.Test;
import org.springframework.beans.factory.BeanFactory;
import org.springframework.beans.factory.support.StaticListableBeanFactory;
import org.springframework.lang.Nu... | 29.608696 | 118 | 0.804332 |
6f95b11ba1d389a9a6988566b0d126e6b5cc112d | 5,439 | package com.iwbfly.myhttp.logging;
import com.iwbfly.myhttp.http.Request;
import com.iwbfly.myhttp.http.Response;
import com.iwbfly.myhttp.reflection.MyhttpRequest;
import com.iwbfly.myhttp.utils.Util;
import java.io.*;
import java.util.*;
import java.util.logging.Level;
import static com.iwbfly.myhttp.utils.Util.va... | 37 | 129 | 0.553227 |
1d35a91cf072da7497b570b074eeaafdf9571bb7 | 7,907 | package com.github.guignol.indrah.utils;
import com.github.guignol.indrah.command.CommandOutput;
import com.github.guignol.indrah.command.FileStageCommand;
import com.github.guignol.indrah.model.*;
import org.jetbrains.annotations.NotNull;
import java.nio.file.Path;
import java.util.List;
import java.util.fu... | 40.341837 | 141 | 0.586063 |
2e9b9fce6362a3a6a19c5140bb5ade31ccadc827 | 420 | package com.zup.lucasciscar.cartaoproposta.dto.response;
public class CarteiraClientResponse {
private Resultado resultado;
private String id;
public enum Resultado {
ASSOCIADA, FALHA;
}
public CarteiraClientResponse(Resultado resultado, String id) {
this.resultado = resultado;
... | 20 | 67 | 0.669048 |
09df8385023ab0f248a3fe36de5769a0c184fe91 | 923 | package com.company.demo.core;
import com.haulmont.cuba.core.global.Events;
import com.haulmont.cuba.core.sys.events.*;
import org.slf4j.Logger;
import org.springframework.context.event.EventListener;
import org.springframework.stereotype.Component;
import javax.inject.Inject;
@Component
public class MyAppLifecycleB... | 26.371429 | 61 | 0.732394 |
548d2ebcb6a4c969f668a2be004d6327a57e1219 | 5,001 | package seedu.zookeep.model.animal;
import static java.util.Objects.requireNonNull;
import static seedu.zookeep.commons.util.CollectionUtil.requireAllNonNull;
import java.util.Comparator;
import java.util.Iterator;
import java.util.List;
import javafx.collections.FXCollections;
import javafx.collections.ObservableLi... | 33.34 | 119 | 0.665467 |
a39495ac432179edb4456e4323487dbff685d424 | 1,136 | package org.odk.collect.android.augmentedreality.scan;
import android.app.Activity;
import android.app.Dialog;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.os.Bundle;
import android.util.Log;
import android.widget.ImageView;
import android.widget.TextView;
import android.widget... | 27.707317 | 79 | 0.762324 |
85f898255892fad117839fe78ddae4207d22313a | 3,500 | /*
* Copyright 2021 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 a... | 45.454545 | 122 | 0.75 |
e1375d230002ef4bac62809d90babd91f5115e1d | 3,865 | package io.renren.modules.netty.handle;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import io.netty.channel.Channel;
import io.netty.channel.ChannelHandlerContext;
import io.netty.channel.SimpleChannelInboundHandler;
import io.netty.channel.group.ChannelGroup;
import io.netty.channel.grou... | 37.524272 | 170 | 0.732471 |
0d647f8e9a7109d2b5825f43ef31b655f8693ec4 | 2,705 | package si.matjazcerkvenik.test.restws.library;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import javax.ws.rs.Consumes;
import javax.ws.rs.DELETE;
import javax.ws.rs.GET;
import javax.ws.rs.PUT;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;
import javax.ws.rs.Produces;
impor... | 21.64 | 76 | 0.673198 |
8b8a23a3970f9b0bc643ce5d7536a99681ba9ee1 | 882 | package clinic.programming.training;
import java.util.List;
import java.util.ArrayList;
import org.apache.commons.lang3.StringUtils;
public class Application {
public int countWords(String words){
String[] separatedWords = StringUtils.split(words, ' ');
return separatedWords == null ? 0 : separatedWords.leng... | 27.5625 | 61 | 0.678005 |
c6097bb7efc24b3797e70b7ddbc9bc8382c085d6 | 1,150 | package com.rs.game.npc.combat.impl;
import com.rs.game.Animation;
import com.rs.game.Entity;
import com.rs.game.Graphics;
import com.rs.game.npc.NPC;
import com.rs.game.npc.combat.CombatScript;
import com.rs.game.npc.combat.NPCCombatDefinitions;
import com.rs.game.player.Player;
import com.rs.utils.Utils;
public cla... | 31.944444 | 109 | 0.737391 |
f34846bbf1719f3610eab054352ab7874c938a0f | 2,702 | package com.sayee.sxsy.common.utils;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONArray;
import com.sayee.sxsy.common.mapper.JsonMapper;
import java.io.PrintStream;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import ... | 26.23301 | 116 | 0.545522 |
09fa07dbeb491ba632295ee28abc464a43431e21 | 1,159 | package gov.cdc.usds.simplereport.db.repository;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertThrows;
import static org.junit.jupiter.api.Assertions.assertTrue;
import gov.cdc.usds.simplereport.db.model.SupportedDisease;
import org.junit.jupiter.api... | 35.121212 | 88 | 0.772217 |
26ea4cbff19117e233023c69e3ff91fd75a324b9 | 1,626 | package com.github.microwww.security.cli;
import com.fasterxml.jackson.annotation.JsonIgnore;
import java.util.ArrayList;
import java.util.List;
public class AjaxMessage<T> {
private List<String> errors;
private List<String> warns;
private String message;
private T data;
private transient Objec... | 19.829268 | 51 | 0.586101 |
4f049739e17ff6469e9d4b1806908a1de5f3e573 | 1,418 | package com.amazonaws.greengrass.cddsensehat.leds.arrays;
/*
public class MacOSSenseHatLEDArray implements SenseHatLEDArray {
private final JavaFXLEDArray javaFXLEDArray;
private SenseHatLEDImage senseHatLEDImage;
@Inject
public MacOSSenseHatLEDArray(JavaFXLEDArray javaFXLEDArray) {
this.javaF... | 36.358974 | 90 | 0.735543 |
001959db1d917beb5194ab32a5b574a8b596cb1d | 241 | package com.a9032676.fpstd.exception;
public class Undefined extends RuntimeException {
private Undefined() {
super("** Exception: fpstd.undefined");
}
public static Undefined undefined() { return new Undefined(); }
}
| 21.909091 | 67 | 0.692946 |
38ad36f74d6bb59458aa13d59147ce4b799fe5de | 1,856 | package feta.readnet;
import feta.FetaOptions;
import feta.network.Link;
import org.json.simple.JSONObject;
import java.io.*;
import java.util.ArrayList;
public abstract class ReadNet {
public ArrayList<Link> links_;
LinkBuilder lb_;
public String sep_;
String networkInput_;
boolean removeDuplic... | 30.933333 | 89 | 0.574892 |
7c30fe29674db06ca7b6693615f163f3a680ad51 | 5,608 | /**
*
*/
package com.perforce.p4java.impl.generic.core;
import java.util.Date;
import java.util.Map;
import com.perforce.p4java.Log;
import com.perforce.p4java.core.ILabelSummary;
import com.perforce.p4java.impl.mapbased.MapKeys;
/**
* Default implementation of the ILabelSumamry interface.
*/
public class Label... | 25.375566 | 81 | 0.694009 |
65dd02dc9a19427b9dd04e58ee9575cfd037293c | 5,704 | //---------------------------------------------------------------------------------
//
// BlackBerry Extensions
// Copyright (c) 2008-2012 Vincent Simonetti
//
// Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
// documentation files (the "Software"), ... | 24.8 | 193 | 0.650596 |
57ed4f926f19d9c54b4dd53193266bb985a40393 | 2,262 | package com.gtxc.practice.hackerrank;
/*
Created by gt at 3:36 AM on Monday, February 14, 2022.
Project: practice, Package: com.gtxc.practice.hackerrank.
*/
import java.util.Arrays;
import java.util.Scanner;
public class ArrayGame {
public static boolean canWin(int leap, int[] game) {
// Return ... | 27.253012 | 82 | 0.453581 |
85a98465b40e9e9760777b058ba5012d698341d6 | 2,017 | /**
* Copyright (C) 2012 Google, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or ... | 37.351852 | 97 | 0.752603 |
36aca431d0b29ca5cb63155c578d5c5a199cadcc | 1,896 | package co.cargoai.sqs.internal;
import co.cargoai.sqs.api.SqsMessagePollerProperties;
import lombok.RequiredArgsConstructor;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import software.amazon.awssdk.services.sqs.SqsClient;
import software.amazon.awssdk.services.sqs.model.Message;
import software.amazon.a... | 32.135593 | 88 | 0.7173 |
f53978d74ef3149c6c9e179a1b340d7a884cd1c0 | 2,808 | /*
* WiFi Analyzer
* Copyright (C) 2016 VREM Software Development <VREMSoftwareDevelopment@gmail.com>
*
* 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 Free Software Foundation, either version 3 of the License, or... | 32.275862 | 85 | 0.721866 |
cd9d002aa30e16512cab178ba3b93b2b309c4811 | 197 | package vendor.exceptions;
public class BadFormatException extends Exception {
public BadFormatException(){
super();
}
public BadFormatException(String message){
super(message);
}
}
| 14.071429 | 51 | 0.741117 |
22c96bffd6bbf978cc3f94780454a563a59b10fb | 2,169 | package string;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
/**
* 93. Restore IP Addresses
* <p>
* Given a string containing only digits, restore it by returning all possible valid IP address combinations.
* <p>
* Example:
* Input: "25525511135"
* Output: ["255.255.11.135",... | 27.807692 | 109 | 0.510834 |
8269ea14a143bacedfd57e8ec3f1c690a597836d | 1,280 | package org.fun4j.compiler.expressions;
import org.fun4j.compiler.Expression;
import org.objectweb.asm.MethodVisitor;
/**
* A Lookup expression.
* Represents Function objects that are looked up from the local map of a function instance.
*/
public class LookupLocal extends Expression {
String strName = null;
... | 24.615385 | 136 | 0.600781 |
b631c3b60c2e5b0d6a2650c1fc64516661def92a | 2,581 | package com.negusoft.holoaccent.example.fragment;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.ActionMode;
import android.view.LayoutInflater;
import android.view.Menu;
import android.view.MenuInflater;
import android.view.MenuItem;
import android.view.View;
import android.view... | 29.666667 | 100 | 0.772569 |
b67f16f38729fd5d5e93076dbb4bbfe9ddb6af72 | 409 | package com.airfranceklm.amt.yaml.list;
import com.airfranceklm.amt.yaml.YamlBinding;
import com.airfranceklm.amt.yaml.YamlReadable;
import java.util.List;
@YamlReadable
public class StringListBean {
private List<String> coll;
public List<String> getColl() {
return coll;
}
@YamlBinding("str... | 19.47619 | 46 | 0.696822 |
64d2a6cdbe1447d5863a42442eb8e1ef50431bfb | 4,680 | /*
* Copyright (C) 2016 android@19code.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 appl... | 34.666667 | 112 | 0.543803 |
dff5210b803a36ac998eb06fcd9d469ed53872cc | 6,840 | /*
* Copyright 2006-2018 Prowide
*
* 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... | 33.203883 | 114 | 0.712573 |
7672f4a23b5e8c46a5087c90ae832410d2b556b6 | 14,980 | package org.ovirt.engine.api.restapi.resource;
import java.util.List;
import java.util.Set;
import javax.ws.rs.core.HttpHeaders;
import javax.ws.rs.core.Response;
import javax.ws.rs.core.UriInfo;
import org.ovirt.engine.api.common.util.DetailHelper;
import org.ovirt.engine.api.common.util.DetailHelper.Detail;
import... | 41.611111 | 132 | 0.65247 |
55bf98466a927e1abde87197607516c995e9a6fc | 538 | package io.mykit.wechat.mp.beans.json.menu;
import io.mykit.wechat.mp.beans.json.base.BaseJsonBean;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
/**
* @Author: liuyazhuang
* @Date: 2018/7/19 12:51
* @Description: 微信的菜单信息
*/
@NoArgsConstruc... | 22.416667 | 71 | 0.784387 |
865ac4c82e9bfff2eecc2c355e2bec8fb3085541 | 3,701 | /*
* (C) Copyright IBM Corp. 2012, 2016 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 re... | 35.247619 | 80 | 0.713321 |
9adc61d7cde7b6ac496c6233865fae8d404cdb47 | 736 | package systems.rcd.enonic.datatoolbox;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStream;
import com.google.common.io.ByteSource;
public class TemporaryFileByteSource
extends ByteSource
{
private File file;
public TemporaryFileByteSource( ... | 19.368421 | 63 | 0.644022 |
89756caec6ead2f1709956e50d7a41d9f73889aa | 413 | /**
* Contains the operand implementation of java-based usage of the Filter DSL used in limited cases where Java-side
* evaluation of these Filter DSL expressions is needed.
*
* Expression hierarchies are created by the {@link de.quinscape.automaton.runtime.filter.JavaFilterTransformer} but
* can also be used to w... | 41.3 | 116 | 0.774818 |
f8b46c8ae810d02e8d3e0773d4693ffb61b98581 | 1,873 | package com.seanyj.mysamples.service;
import android.app.NotificationManager;
import android.app.Service;
import android.content.Intent;
import android.os.Binder;
import android.os.IBinder;
import androidx.annotation.Nullable;
public class MyService extends Service {
private NotificationManager mNotificationManag... | 27.144928 | 92 | 0.675921 |
64affdc7217c79e48e702805c218e1e83a76ec47 | 295 | package com.github.lit.support.data.domain;
/**
* @author liulu
* @version v1.0
* date 2018-12-21 18:58
*/
public interface Pageable {
int getPageNum();
int getPageSize();
int getOffset();
Sort getSort();
default boolean isCount() {
return true;
}
}
| 11.8 | 43 | 0.6 |
b5199bbdb5369879d47f1ed0bf3f2130fc329853 | 2,177 | /*
* Copyright 2018 - 2021 Paul Hagedorn (Panzer1119)
*
* 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 ... | 27.556962 | 169 | 0.632522 |
6b65250e6354d72e9d2e9ae62f52826521894626 | 3,965 | // Targeted by JavaCPP version 1.5.5-SNAPSHOT: DO NOT EDIT THIS FILE
package org.bytedeco.dnnl;
import java.nio.*;
import org.bytedeco.javacpp.*;
import org.bytedeco.javacpp.annotation.*;
import static org.bytedeco.javacpp.presets.javacpp.*;
import org.bytedeco.opencl.*;
import static org.bytedeco.opencl.global.Open... | 54.315068 | 172 | 0.759899 |
585ab2a76e9d82e9b2e09a8939a3e461d013646e | 183 | package com.dodo.xinyue.core.net.callback;
/**
* IError
*
* @author DoDo
* @date 2017/8/31
*/
public interface IError {
void onError(int code, String msg);
}
| 13.071429 | 43 | 0.601093 |
63844074f5f31932af0eec93f700618461942cfc | 24,558 | /*
* Copyright 2008-2019 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 req... | 48.058708 | 190 | 0.57297 |
ac5c6111f822d96444622bd02411412a6013c833 | 5,477 | package ru.sdroman.carstore.models;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
... | 19.701439 | 103 | 0.49644 |
52d49a0525f986108e76a8ced6a6dd0def4aa231 | 2,855 | /**********************************************************\
| |
| hprose |
| |
| Official WebSite: http://www.hprose.com/ |
| ... | 43.923077 | 99 | 0.475306 |
b5973e6701f1bb1f5e57981d9241d35dc1500908 | 9,532 | package org.foo.app;
import org.apache.felix.scr.annotations.Activate;
import org.apache.felix.scr.annotations.Component;
import org.apache.felix.scr.annotations.Deactivate;
import org.apache.felix.scr.annotations.Service;
import org.apache.felix.scr.annotations.Reference;
import org.apache.felix.scr.annotations.Refer... | 35.303704 | 139 | 0.706882 |
c7423914f73f40ce2cdd677f894c6c4d333dee6a | 613 | package business;
public class Seat {
private int row;
private int col;
private int price;
private AirPlane ap;
public Seat(){
ap = new AirPlane();
}
public int getRow() {
return row;
}
public void setRow(int row) {
this.row = row;
}
public int getCol() {
retur... | 15.717949 | 35 | 0.572594 |
83e4586c4308f0ae1c133c27600369691ec2f73a | 298 | package org.spring.springboot.dao;
import org.spring.springboot.domain.City;
import org.springframework.data.mongodb.repository.ReactiveMongoRepository;
import org.springframework.stereotype.Repository;
@Repository
public interface CityRepository extends ReactiveMongoRepository<City, Long> {
}
| 27.090909 | 77 | 0.848993 |
a199790e0685aae8d2dd466825b6924661d783cc | 3,512 | package com.togo.c_sms.Adapters;
import android.app.Activity;
import android.app.Dialog;
import android.content.Context;
import android.content.Intent;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.view.WindowManager;
import android.widget.RelativeLayout;
i... | 37.763441 | 205 | 0.677107 |
f4ae37fcc9a030e99197c11837413a5ee2e65534 | 2,801 | /*
* MIT License
*
* Copyright (c) 2019 blombler008
*
* 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, modi... | 43.092308 | 118 | 0.702606 |
8d3d35b3530ae4f7569dfa0b247184e0274ca7aa | 1,233 | package com.smartcodeltd.jenkinsci.plugins.build_monitor.tasks.configuration;
import net.serenitybdd.screenplay.Actor;
import net.serenitybdd.screenplay.Task;
import net.serenitybdd.screenplay.actions.SelectFromOptions;
import net.serenitybdd.screenplay.jenkins.user_interface.ViewConfigurationPage;
import net.serenity... | 34.25 | 101 | 0.752636 |
a87ff12c7af2db7ccfc297d67e2ee5c488f2963f | 411 | package cn.elvea.platform.commons.utils;
import lombok.extern.slf4j.Slf4j;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;
/**
* IpUtilsTests
*
* @author elvea
* @since 0.0.1
*/
@Slf4j
public class IpUtilsTests {
@Test
public void test() throws Exception {
String ipAd... | 17.869565 | 55 | 0.698297 |
9ae632986c597a61ff28ee4df971b26137a799f8 | 591 | package io.alapierre.jcr.exceptions;
/**
* Created 12.02.2020 copyright original authors 2020
*
* @author Adrian Lapierre {@literal <al@soft-project.pl>}
*/
public class DataIntegrityViolationException extends DataAccessException {
public DataIntegrityViolationException() {
}
public DataIntegrityViola... | 24.625 | 77 | 0.71912 |
43045df7089300ccab8db2a00ec272d952d5cb73 | 4,419 | package org.jboss.jube.maven;
import org.apache.maven.archiver.MavenArchiveConfiguration;
import org.apache.maven.artifact.repository.ArtifactRepository;
import org.apache.maven.execution.MavenSession;
import org.apache.maven.plugin.assembly.AssemblerConfigurationSource;
import org.apache.maven.project.MavenProject;
i... | 23.758065 | 216 | 0.642679 |
5a9132529a4914065560f203148d0dbaa8665288 | 3,734 | /*
* Copyright 2020 Anton Novikau
*
* 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 agree... | 33.339286 | 112 | 0.592662 |
14b01904baacf4aa7f94f4c4ace4a65907f60c4a | 354 | package lee.todo.Activity;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import lee.todo.R;
public class SettingActivity extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(... | 22.125 | 56 | 0.757062 |
56b44fc0d7ab3d54bbe91ed3672171ac752677cd | 185 | package datastructure.Stack;
/**
* Created by joybar on 29/10/17.
*/
public class CustomStack {
private long[] a;
private int size; //栈数组的大小
private int top; //栈顶
}
| 15.416667 | 33 | 0.632432 |
8ecbbb6d93607244e9cb4a1ec602ff4f1c29a300 | 1,070 | package com.example.nirbhay.Police;
public class CrimeRecords {
private Double latitude, longitude;
private int threatLevel;
private String crimeNo;
public CrimeRecords(){
}
public CrimeRecords(Double latitude, Double longitude, int threatLevel, String crimeNo) {
this.latitude = lati... | 20.980392 | 93 | 0.637383 |
3e55d4283334d05fc6af5a733b933c20d603bf96 | 1,161 | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package com.nepal.auctionhouse.entity;
/**
*
* @author Suzn
*/
public final class LotMeta {
private int id;
... | 17.590909 | 80 | 0.503015 |
3c38f8b316f19b2593bc25c9d96b1566688d62e1 | 4,665 | // Copyright (c) 2008 The Board of Trustees of The Leland Stanford Junior University
// Copyright (c) 2011, 2012 Open Networking Foundation
// Copyright (c) 2012, 2013 Big Switch Networks, Inc.
// This library was generated by the LoxiGen Compiler.
// See the file LICENSE.txt which should have been included in the sour... | 42.027027 | 129 | 0.699893 |
d9fea0e62654cb0d4236311e8a7c97c5896879ae | 246 | package com.modelagemConceitual.repositories;
import org.springframework.data.jpa.repository.JpaRepository;
import com.modelagemConceitual.domain.ItemPedido;
public interface ItemPedidoRepository extends JpaRepository<ItemPedido, Integer>{
}
| 24.6 | 81 | 0.857724 |
ddb46d7d9d9739601797afa8120b39c35aa7bc0a | 1,191 | package core.util.utilities;
import java.util.UUID;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.BufferedOutputStream;
import org.apache.commons.codec.binary.Base64;
public final class FileUtil{
public static String getDocumentBase64(byte[] bytesContent){
... | 29.775 | 95 | 0.61293 |
4de94bebcc97b25410557320f48bb6db60100eb8 | 2,970 | /*
* Copyright 2016 Karl Bennett
*
* 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... | 31.263158 | 147 | 0.714478 |
2d03d06a862e8a996179af484b0ca696c275c90f | 1,685 | /*
* 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 not ... | 33.039216 | 100 | 0.761424 |
be9b33913d8c2df0adae2838787199d500d08186 | 3,643 | package mcjty.rftoolsdim.network;
import io.netty.buffer.ByteBuf;
import io.netty.buffer.Unpooled;
import mcjty.lib.network.NetworkTools;
import mcjty.lib.varia.Logging;
import mcjty.rftoolsdim.dimensions.DimensionInformation;
import mcjty.rftoolsdim.dimensions.ModDimensions;
import mcjty.rftoolsdim.dimensions.descrip... | 37.947917 | 146 | 0.657151 |
64b6e332921cfd7c1413621928ef65b5bc80d3d9 | 2,390 | /*
* Copyright 2017 Huawei Technologies Co., Ltd.
*
* 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... | 37.936508 | 114 | 0.698745 |
6c0fb71ab4e645f383aaa97c9bf26ef44c579fe5 | 2,357 | /*
* Copyright © 2019 Cask Data, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed t... | 40.637931 | 118 | 0.710649 |
d1f455d8614d937f821fbb010e0dbca6f6d6b992 | 3,755 | package com.codepath.apps.restclienttemplate;
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.ImageView;
import android.widget.TextView;
import android.widget... | 31.291667 | 121 | 0.636751 |
d487f27afa81c5042b9954bbf58cb88b0bce5458 | 4,244 | package ru.progrm_jarvis.reflector.bytecode.mirror;
import javassist.CtClass;
import javassist.NotFoundException;
import lombok.val;
import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.*;
import static ru.progrm_jarvis.reflector.TestUtil.getCtClass;
import static ru.progrm_jarvis.reflect... | 31.205882 | 112 | 0.611923 |
dc5f1bc9dd8c5f663e23a68d58870d134a2c0db2 | 252 | package io.github.zutherb.appstash.shop.ui.event.cart;
import io.github.zutherb.appstash.shop.ui.event.AjaxEvent;
/**
* @author zutherb
* <p>
* marker interface
*/
public interface CartChangeEvent extends AjaxEvent { /* NOOP */
}
| 21 | 63 | 0.686508 |
0508b1e3f95570839c83dccf3014be67c8b07a32 | 7,026 | /* DO NOT EDIT */
/* This file was generated from team_groups.stone */
package com.dropbox.core.v2.team;
import com.dropbox.core.stone.StoneSerializers;
import com.dropbox.core.stone.StructSerializer;
import com.fasterxml.jackson.core.JsonGenerationException;
import com.fasterxml.jackson.core.JsonGenerator;
import c... | 35.13 | 139 | 0.575149 |
f4764fa43575c0d45efc00d70dc10fcb07046a93 | 9,229 | package com.mobius.software.android.iotbroker.main.iot_protocols.amqp.classes.headerapi;
import com.mobius.software.android.iotbroker.main.iot_protocols.amqp.classes.codes.AMQPType;
import com.mobius.software.android.iotbroker.main.iot_protocols.amqp.classes.codes.HeaderCodes;
import com.mobius.software.android.iotbro... | 36.768924 | 113 | 0.777657 |
e6acd60feee17f2f754daa1dacf1b506ee43ad52 | 2,454 | import static org.junit.jupiter.api.Assertions.*;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
public class PetShopTest {
private PetShop petShop;
@BeforeEach
public void setUp() {
petShop = new PetShop();
}
// testes para os casos em que alguma exceção será lançada.
@Tes... | 29.214286 | 89 | 0.716789 |
86392ccdca6f74e679007adc2065d2ff5ee6fd5f | 5,512 |
package com.carlosfilipe.zup.bootcamp.fase3.controller;
import java.io.BufferedReader;
import java.io.IOException;
import java.nio.charset.StandardCharsets;
import java.nio.file.Files;
import java.nio.file.Paths;
import java.util.List;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServl... | 39.942029 | 113 | 0.721335 |
82f88e9b94040b8ba6b1be88f7183944ac9c4ccf | 1,139 | package com.codepath.simpletodo;
import com.raizlabs.android.dbflow.annotation.Column;
import com.raizlabs.android.dbflow.annotation.PrimaryKey;
import com.raizlabs.android.dbflow.annotation.Table;
import com.raizlabs.android.dbflow.structure.BaseModel;
/**
* Created by praniti on 8/20/17.
*/
//Table name: ToDoIte... | 18.672131 | 57 | 0.652327 |
bb48a95fec641d75c8360b5e1ea4800e9c748ddb | 1,997 | package com.krevin.crockpod.alarm;
import android.content.Context;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ArrayAdapter;
import android.widget.TextView;
imp... | 36.309091 | 108 | 0.712068 |
e3b85b4658d5ff486e518526bcc6b150fbf9dee6 | 6,154 | package it.spid.cie.oidc.helper;
import com.nimbusds.jose.jwk.JWKSet;
import java.net.URI;
import java.net.URLEncoder;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
import java.net.http.HttpResponse.BodyHandlers;
import java.nio.charset.StandardCharsets;
import ... | 26.991228 | 99 | 0.69142 |
d939e96fd16dd26569ed5926ce0ac0344921485b | 1,016 | package com.berry.oss.dao.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import java.io.Serializable;
import java.util.Date;
/**
* <p>
* 防盗链,http referer 白名单设置
... | 15.875 | 52 | 0.622047 |
348649fc06acf1a625aab55bd2223f86079e5324 | 519 | package rip.orbit.hcteams.chat;
import rip.orbit.hcteams.HCF;
import rip.orbit.hcteams.chat.listeners.ChatListener;
import java.util.concurrent.atomic.AtomicInteger;
public class ChatHandler {
private static AtomicInteger publicMessagesSent = new AtomicInteger();
public ChatHandler() {
HCF.getInsta... | 27.315789 | 111 | 0.751445 |
0bffde487921b171b34ca6d4f2f91227236591bb | 1,395 | package com.example.leeyonghun.x11test.restapi;
import com.example.leeyonghun.x11test.AppApplication;
import com.google.gson.JsonArray;
import com.google.gson.JsonObject;
import org.json.JSONObject;
import retrofit2.Call;
import retrofit2.http.Body;
import retrofit2.http.GET;
import retrofit2.http.Headers;
import re... | 27.352941 | 71 | 0.712545 |
53f6fa824a61cd59edc5e9187c72989624d1f6e7 | 1,505 | package com.funnytoday.seoul.seoulgo.mainImageplay;
import android.app.Activity;
import android.graphics.Color;
import android.graphics.drawable.ColorDrawable;
import android.os.Bundle;
import android.view.Window;
import android.widget.TextView;
import com.funnytoday.seoul.seoulgo.R;
/**
* Created by 박상돈 on 2016-0... | 29.509804 | 89 | 0.718937 |
ae5c4910ac3004d11fd6e85e4734994f46e64d19 | 2,198 | /*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License
* 2.0 and the Server Side Public License, v 1; you may not use this file except
* in compliance with, at your election, the Elastic License 2.0 or the Server... | 30.109589 | 106 | 0.691538 |
036fec0f25029fa2d5a78904082b43106fabe036 | 6,840 | /**
* Copyright 2015 Palantir Technologies, 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 ... | 36.774194 | 96 | 0.692982 |
311c1ae5a6bd92a8bfe8abb45ef5f8e3b1f5b7c0 | 1,598 | package com.jerusalem.goods.controller.web;
import com.jerusalem.goods.entity.CategoryEntity;
import com.jerusalem.goods.service.CategoryService;
import com.jerusalem.goods.vo.Category2Vo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.spring... | 27.551724 | 102 | 0.694618 |
050084652bfab6d26a22e707823dce23a32904bf | 22,138 | package io.opensphere.core.appl.versions.controller;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.net.URL;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.fil... | 39.888288 | 130 | 0.642922 |
cd8275b1b102ec9d0722caf38100a362204fe59f | 2,061 | package com.siziksu.marvel.common;
import android.content.Context;
import android.net.ConnectivityManager;
import android.net.Network;
import android.net.NetworkInfo;
import android.os.Build;
import com.siziksu.marvel.common.model.Connection;
public final class ConnectionManager {
private final Context context;... | 38.166667 | 127 | 0.58952 |
893edc2235c0592127d4981e9c5f23950c7a12f1 | 1,425 | package criptografia;
public class CifraCesar implements Cifra{
private int n;
public CifraCesar(int n){
this.n = n;
}
@Override
public String cifrar(String mensagem) {
String output = "";
for (int i=0; i < mensagem.length(); i++) {
char c_atual = mensagem.cha... | 26.388889 | 76 | 0.446316 |
b43a96d6fa529b26bf878ea39909838f6f559b5e | 396 | package com.ng.vis.component;
import com.artemis.Component;
/**
* (c) 2016 Abhishek Aryan
*
* @author Abhishek Aryan
* @since 12/30/2015.
*
*/
public class PhysicsOrigin extends Component {
public float originX, originY;
public PhysicsOrigin(){
}
public PhysicsOrigin(float originX,float orig... | 15.230769 | 54 | 0.661616 |
54f9d36c766bcd12e101728436074c11ff60a422 | 67 | package com.zestic.authy.app.entity.user;
public class Access {
}
| 13.4 | 41 | 0.761194 |
c404954255db475f728233ca55a7871fe5267f4f | 727 | package grafioschtrader.entities;
import java.util.Date;
import javax.annotation.Generated;
import javax.persistence.metamodel.SingularAttribute;
import javax.persistence.metamodel.StaticMetamodel;
@Generated(value = "org.hibernate.jpamodelgen.JPAMetaModelEntityProcessor")
@StaticMetamodel(Auditable.class)
public ab... | 36.35 | 78 | 0.84044 |
96307c08e1b691d1d7c006a918fb48d93fba7987 | 4,446 | package com.example.neilyi.advancedhybridframework.hybride.imp;
import android.content.Intent;
import android.net.Uri;
import android.text.TextUtils;
import com.example.neilyi.advancedhybridframework.hybride.BridgeCallback;
import com.example.neilyi.advancedhybridframework.hybride.HybridHandler;
import com.example.ne... | 39.345133 | 128 | 0.587494 |
554d80b14be73c3aa77701ae7305085f26aea9c5 | 12,428 | /*
* Copyright (c) 2008-2018, 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 ... | 40.482085 | 102 | 0.689572 |
6806b5a4d33b04e2b92ed9f51526ee678b82a872 | 406 | package br.com.zup.bootcamp.client.response;
public class AssociateWalletResponse {
private final String resultado;
private final String id;
public AssociateWalletResponse(String resultado, String id) {
this.resultado = resultado;
this.id = id;
}
public String getResultado() {
... | 19.333333 | 65 | 0.650246 |
0d3723330d8f469d42147417b401d478557a7adf | 1,666 | package com.social.goalapp.data.network.model;
/**
* Created by Aravindraj on 11/6/2017.
*/
import java.util.List;
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
public class Commentt {
@SerializedName("id")
@Expose
private Integer id;
@SerializedName(... | 21.088608 | 65 | 0.651261 |
1168677373cacb8491621160b5c99293709e9db6 | 323 | /**
* Наблюдатель.
* <b>Тип: поведенческий </b>
* Определяет зависимость "один ко многим" между объектами так, что когда один объект меняет своё
* состояние, все зависимые объекты оповещаются и обновляются автоматически.
*
* @author Andrey Kharintsev on 10.01.2019
*/
package ru.ajana.work.pattern.behavior.observ... | 35.888889 | 97 | 0.755418 |
cea2df4b0eacaedfd8253c03d0c49caf63d1f767 | 43 | package ru.shemplo.infosearch.spellcheck;
| 21.5 | 42 | 0.837209 |
ff3b39efe7da930dc6c6a6b0002378473f7b4e19 | 6,404 | /*
* Copyright © 2017-2020 factcast.org
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or ag... | 33.354167 | 93 | 0.711743 |
6f52b6310c19c7cc74d15186c08b3dad5e418bb2 | 15,592 | /*
* 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 ... | 42.835165 | 148 | 0.648409 |
ec35d56ad89f725881b5425926a0857308e54dff | 610 | package sgf.gateway.model.metadata.activities.modeling;
import org.junit.Test;
import sgf.gateway.model.ModelEqualsMethodTest;
import sgf.gateway.model.metadata.Taxonomy;
import sgf.gateway.model.metadata.TopicImpl;
public class TopicImplEqualsEqualsTest extends ModelEqualsMethodTest {
public Object createObject... | 22.592593 | 75 | 0.722951 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.