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 |
|---|---|---|---|---|---|
056bc2e10044febbea85f5cf88a1b93d2a31d1ae | 649 | /**
*
*/
package ch.ethz.infsec.secureumlgui.securemodel.dialects.parser.oclexpressions;
/**
*
*/
public class BooleanLiteral extends Literal
{
/**
*
*/
public BooleanLiteral(boolean value)
{
this.value = value;
}
private boolean value;
public boolean getValue()
{
... | 15.452381 | 79 | 0.534669 |
73239869b012b18e0740be44946ec176ddedb32a | 1,760 | import java.io.*;
import java.util.*;
import java.text.*;
import java.math.*;
import java.util.regex.*;
// https://www.hackerrank.com/challenges/minimum-absolute-difference-in-an-array
public class Solution {
// perform quicksort
public static void quickSort(int[] arr, int low, int high) {
int i = low... | 29.333333 | 81 | 0.490909 |
29b369d56caf2e7aee6e6bd938219a9a10f5341b | 6,697 | package com.lsh.wms.service.outbound;
import com.alibaba.dubbo.config.annotation.Reference;
import com.alibaba.dubbo.config.annotation.Service;
import com.lsh.base.common.exception.BizCheckedException;
import com.lsh.base.common.utils.DateUtils;
import com.lsh.wms.api.service.location.ILocationRpcService;
import com.l... | 39.394118 | 128 | 0.673884 |
eb90bb7b424b572fee0ec862e963d8153f8b479a | 655 | package com.github.jira.commons.model;
import org.apache.commons.lang.StringUtils;
@SuppressWarnings("serial")
public class Type extends Entity {
public static final String NAME = "name";
public static final String DIRECTION = "direction";
public static final String DESCRIPTION = "description";
@Override
publi... | 23.392857 | 62 | 0.743511 |
76b5c8b1f056b3fef96b4226da978ca0c82c8080 | 4,536 | package org.myrobotlab.opencv;
import static org.bytedeco.opencv.helper.opencv_imgcodecs.cvLoadImage;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertTrue;
import java.awt.image.BufferedImage;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import org... | 31.5 | 128 | 0.690035 |
26e2d293eac01cd716494b3635cd9ea9e042bba3 | 16,502 | /*
* 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 ... | 34.379167 | 100 | 0.705914 |
4bca952c87f64d364a4108a67f5cdb0aaa10e6d2 | 306 | //,temp,sample_4213.java,2,13,temp,sample_7977.java,2,7
//,3
public class xxx {
private void codecTestMapFile(Class<? extends CompressionCodec> clazz, CompressionType type, int records) throws Exception {
FileSystem fs = FileSystem.get(conf);
log.info("creating mapfiles with records using codec");
}
}; | 27.818182 | 124 | 0.767974 |
ddf006f93833256b2aab69b2e1194e3bcf5588df | 465 | package javax.servlet;
import java.util.Map;
import java.util.Set;
public interface Registration {
String getName();
String getClassName();
boolean setInitParameter(String var1, String var2);
String getInitParameter(String var1);
Set<String> setInitParameters(Map<String, String> var1);
Ma... | 21.136364 | 60 | 0.722581 |
9d6cce5eb29a3ca1fea1151932b9a708874778e2 | 1,944 | package com.rando.service.imp;
import java.util.Calendar;
import java.util.List;
import java.util.NoSuchElementException;
import java.util.Optional;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transacti... | 24.3 | 67 | 0.77572 |
aa1aeb79bf72ab37fd5e1698d4a271e796b4f94a | 1,011 | package math.battle.cheat;
import java.awt.Rectangle;
import java.awt.Robot;
import java.awt.Toolkit;
import java.awt.image.BufferedImage;
import java.nio.file.Path;
import net.sourceforge.tess4j.ITesseract;
import net.sourceforge.tess4j.Tesseract;
import net.sourceforge.tess4j.TesseractException;
public class OCRPa... | 26.605263 | 83 | 0.762611 |
c340f9a65680883b3d33e9ec90bee877c93bc799 | 1,684 | package net.atomation.rgbdemo.services.atomation;
import net.atomation.rgbdemo.interfaces.IAppScanListener;
import net.atomation.rgbdemo.services.IServiceCommand;
/**
* a collection of all the commands supported by AtomationService
* NOTE: all commands will be executed on a worker thread
* Created by eyal on 09/01... | 29.034483 | 109 | 0.679929 |
36291d19e584620c687f7f4b19e32d6d16fe2b6e | 643 | package com.leesh.boilerplate.security;
import com.leesh.boilerplate.BaseTest;
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.core.userdetails.UserDetails;
class CustomUserDetailsServiceTes... | 30.619048 | 85 | 0.786936 |
ea1e6db47c85661871e9fcec7be346b5ad7e310f | 956 | package com.flame4ost.asynctaskdownloader;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import java.util.ArrayList;
public cla... | 25.157895 | 82 | 0.757322 |
46cb80f877ed22d37ec9e7fa387b328171b190c2 | 1,401 | package com.geodoer.letsmrt.mHttpPost.api;
import android.util.Log;
import com.google.android.gms.maps.model.LatLng;
import com.google.gson.JsonObject;
/**
* Created by fud on 2015/4/19.
*/
public class NavigationApi {
String url = "http://router.project-osrm.org/viaroute?";
int z = 1;
String output =... | 25.944444 | 80 | 0.573162 |
20a5a71e149c92b1ae9d193df9ad916150b2e913 | 12,918 | package org.alliedium.ignite.migration;
import org.alliedium.ignite.migration.dao.converters.IIgniteDTOConverter;
import org.alliedium.ignite.migration.dao.converters.IgniteObjectStringConverter;
import org.alliedium.ignite.migration.dto.CacheConfigurationData;
import org.alliedium.ignite.migration.dto.CacheDataTypes;... | 50.460938 | 135 | 0.73177 |
213e54f8ae92656740f88aa2df6580a6fc180ad9 | 67 | package com.gmail.shihab4t.chapter06.C08Null;public class Card {
}
| 22.333333 | 64 | 0.80597 |
617fa13b8ff18907c9bc654488307212316776e8 | 13,870 | package net.minecraft.entity.projectile;
import com.google.common.collect.Lists;
import java.util.List;
import java.util.UUID;
import javax.annotation.Nullable;
import net.minecraft.entity.Entity;
import net.minecraft.entity.EntityType;
import net.minecraft.entity.LivingEntity;
import net.minecraft.entity.player.Playe... | 32.945368 | 252 | 0.579308 |
108ef2994163232e3b7a8cff1e25296d2dbf0a0f | 643 | package CompetitiveCoding.Codechef.Compete.SnackDownOnlinePre_EliminationRoundA;
import java.util.Scanner;
class TeamFormationForSnackdown {
public static void main(String args[]) {
Scanner scanner=new Scanner(System.in);
int T = scanner.nextInt();
for(int i=0; i<T; i++) {
int... | 25.72 | 80 | 0.508554 |
e75b4757b21602e4899a4c2b765c8776d770ff8f | 714 | package com.fsck.k9.preferences;
/*
* TODO:
* - use the default values defined in GlobalSettings and AccountSettings when creating new
* accounts
* - think of a better way to validate enums than to use the resource arrays (i.e. get rid of
* ResourceArrayValidator); maybe even use the settings description for... | 35.7 | 98 | 0.708683 |
790ddb9d2d0c93bd72361a787ed6f6f985448d25 | 2,301 | /*
* The Gemma project
*
* Copyright (c) 2009 University of British Columbia
*
* 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
*
... | 28.407407 | 116 | 0.697957 |
71e41615625319eb73d0eda4fc4de2581ad01737 | 7,662 | package com.ternence.permission.model;
import java.io.Serializable;
import java.util.Date;
public class SysUser implements Serializable {
private String uuid;
private String loginName;
private String pwd;
private String salt;
private String realName;
private String empNo;
private Str... | 32.74359 | 130 | 0.573218 |
372c6f3245b75b23e700bddb534e95e4ed2dc7a1 | 351 | package io.connectedhealth_idaas.eventbuilder.dataobjects.financial.hipaa;
import org.apache.commons.lang3.builder.ReflectionToStringBuilder;
public class DH {
private String DH_01_ShipDeliveryorCalendarPatternCode;
private String DH_02_Time;
private String DH_03_Time;
public String toString() { return ReflectionToStr... | 31.909091 | 76 | 0.854701 |
4a7492f02029bbf2fa91b8fbb215e244a2db12b1 | 107 | package co.ledger.core;
public class EthereumPublicKeyProviderImpl extends EthereumPublicKeyProvider {
}
| 17.833333 | 78 | 0.850467 |
eb3889d94ec589118ca5998761cfce0982754154 | 2,634 | /**
* Copyright 2019 Sven Loesekann
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.606061 | 115 | 0.733485 |
ddfd1ed85855bbfc2c270f494db68c06c841cdac | 3,621 | /*------------------------------------------------------------------------------
Copyright (c) CovertJaguar, 2011-2016
http://railcraft.info
This code is the property of CovertJaguar
and may only be used with explicit written
permission unless otherwise specified on the
license page at http://railcraft.info/wiki... | 33.841121 | 96 | 0.623861 |
944e4c2071b98bcda650a667aa631848a3a51cc3 | 549 | package Service;
import model.Login;
import model.User;
public interface IUserService {
public Boolean addUser(User user);
public void importUserFromExcel(String path);
public Boolean signupUser(User user,String password, String email);
public Integer getLastIdUser();
public String getPasswor... | 20.333333 | 71 | 0.750455 |
4508fa1fc93413e118e138db377449fe3f38861c | 133 | package net.quantium.harvester.input;
public interface ITextListener {
void onTextInput(char character, TextModifiers mod);
}
| 22.166667 | 54 | 0.781955 |
18edc30ec19288629c8a246ec469b66e9e9771ab | 4,602 | package com.company.dao.entity;
import java.math.BigDecimal;
import java.sql.Timestamp;
import java.util.Objects;
public class Journeyrate {
private int id;
private int journeyfrom;
private int journeyto;
private BigDecimal reducerate;
private double pricerate;
private double thisprice;
pr... | 24.094241 | 188 | 0.604302 |
6d29e274464983914f1a128b6b6325c5bd34a183 | 150 | package cz.kamenitxan.jakon.core.configuration;
/**
* Created by tomaspavel on 6.6.17.
*/
public enum DeployMode {
DEVEL,
TESTING,
PRODUCTION
}
| 13.636364 | 47 | 0.72 |
aa1904b46501c1fe04670d81a156c3fbbc81cb77 | 168 | package com.middleware.cache.core;
/**
* 加锁执行的任务
*
* @author DOUBLE 2016年7月19日
*/
public interface LockTask<T> {
/**
* 工作
*/
public T work();
}
| 11.2 | 34 | 0.565476 |
30ae3c9bc7f9007a53b9f84555fb718bb522b33d | 15,833 | /**
* Copyright (c) 2014 Virtue Studios
*
* 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, pub... | 36.066059 | 237 | 0.699804 |
e81013eb78d9f7e2cc4f30f98477b99e4a2ced31 | 2,809 | package org.buildobjects.process;
import java.io.ByteArrayOutputStream;
import static java.nio.charset.StandardCharsets.UTF_8;
/**
* Signals the failure of an external process that returned a non zero exit code. It captures additional information
* such as the output on stderr.
*/
public class ExternalProcessFailu... | 28.373737 | 144 | 0.613742 |
a589452df1ebb2b30aa08db7c7b943504ad46131 | 30,361 | /**
*
*/
package com.idt.bw.activity;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;
import android.content.Context;
import android.content.Intent;
import android.gra... | 34.306215 | 166 | 0.71526 |
38e5fc969a79c76b2a431d17743c25fa26fab043 | 331 | package com.zupacademy.MicroservicoPropota.clientes;
public enum ResultadoSolicitacao {
COM_RESTRICAO,SEM_RESTRICAO;
public SituacaoDoCartao normaliza(){
if(this.equals(COM_RESTRICAO)){
return SituacaoDoCartao.NAO_ELEGIVEL;
}else{
return SituacaoDoCartao.ELEGIVEL;
... | 23.642857 | 52 | 0.685801 |
dff53030aea8d1217e7e6ea62bfa62193a30fe7d | 1,212 | package edu.stanford.nlp.util;
/**
* <p>
* Base type for all annotatable core objects. Should usually be instantiated as
* {@link ArrayCoreMap}. Many common key definitions live in
* {@link edu.stanford.nlp.ling.CoreAnnotations}, but others may be defined elsewhere. See
* {@link edu.stanford.nlp.ling.CoreAnnotati... | 43.285714 | 90 | 0.74835 |
b8152e1fa84130e20a8e45245c8bc5081ee9fcdd | 675 | package com.bihe0832.android.lib.download;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
/**
* DownloadAction
*
* @author zixie code@bihe0832.com Created on 2020/7/6.
*/
@Retention(RetentionPolicy.SOURCE)
public @interface DownloadAction {
//添加下载任务下载
int ADD = 1;
... | 17.307692 | 55 | 0.597037 |
f9c75ca93efe50cc48dd0b22345550d8127a6805 | 3,623 | package com.brin.denonremotefree.Helper;
import android.content.pm.PackageManager;
import android.content.res.Resources;
import android.util.Log;
import com.android.volley.Request;
import com.android.volley.Response;
import com.android.volley.VolleyError;
import com.android.volley.toolbox.StringRequest;
imp... | 32.348214 | 175 | 0.495998 |
5282acea162a5f8c5752a94bd96c85c228f1dd90 | 33,638 | /*
* Copyright 2016-2021 Amazon.com, Inc. or its affiliates. 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. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "licen... | 47.917379 | 141 | 0.672156 |
1e07d0292a7754a027dd4ace617bcee5b0694c75 | 1,728 | package com.github.mateuszmazewski.passwordmanager.data.entity;
import com.github.mateuszmazewski.passwordmanager.data.AbstractEntity;
import com.github.mateuszmazewski.passwordmanager.data.Messages;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.validation.constraints.NotBlank;
import... | 20.093023 | 70 | 0.655671 |
3734829eae34934ce1603b3aa0db460373241fed | 164 | package Environment;
public class Greeting {
public String stringForCustomer(Customer customer) throws FormattingException {
return customer.toString();
}
}
| 16.4 | 80 | 0.786585 |
8500379d4455d892032a1d3d1341d47c9397a637 | 632 | package com.honftel.project.post.comment.dao;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import com.honftel.project.post.comment.model.Comment;
@Repository
public interface CommentDAO {
public int insertComment(
@Param("postId") int po... | 25.28 | 117 | 0.75 |
ccf782aeb80efd7f724818f95eba4befa8c80ab1 | 1,447 | package com.codetaylor.mc.athenaeum.util;
import net.minecraft.util.SoundCategory;
import net.minecraft.util.SoundEvent;
import net.minecraft.util.math.BlockPos;
import net.minecraft.world.World;
public final class SoundHelper {
public static float getPitchEntityItemPickup() {
return ((RandomHelper.random().n... | 27.301887 | 152 | 0.696614 |
b70b56c804d27469355736d3980ea7d355ba72fb | 929 | /*
* 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 lab3_hectorreyes_noelmartinez;
import java.util.ArrayList;
/**
*
* @author noelg
*/
public class PisoSuperior extends Piso... | 21.604651 | 79 | 0.664155 |
584a53a8f6f7b2d999296957f18f29efd5146c3f | 11,973 | /*
* Copyright 2020 The gRPC Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agree... | 42.760714 | 99 | 0.613881 |
264fd3c544ca9946fa46bf2e04d55905d9b33ac4 | 10,866 | begin_unit|revision:0.9.5;language:Java;cregit-version:0.0.1
begin_comment
comment|// Copyright (C) 2015 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... | 13.685139 | 83 | 0.803331 |
2058db0e2b80cd2831f6a1322d152e514622bd2c | 1,690 | package com.spring.basic;
import java.util.Date;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.context.ApplicationContext;
import org.springframework.stereotype.Component;
import com.spring.basic.model.Salary;
import com.... | 25.223881 | 73 | 0.775148 |
8dd8f1d91e8a58836c5ff8e3f125e708588edb00 | 8,674 | /*
* Copyright 2000-2018 JetBrains 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 ag... | 37.387931 | 163 | 0.706249 |
ea3b14c7cfe1c97ff87d2c9b6e3d288eb0af1442 | 3,366 | package com.zw.platform.repository.modules;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import com.zw.platform.domain.forwardplatform.ThirdPlatForm;
import com.zw.platform.domain.forwardplatform.ThirdPlatFormConfig;
import com.zw.platform.domain.forwardplatform.ThirdPlatFormConfigView;
import ... | 28.05 | 95 | 0.706477 |
e907d01a981555511271f39b6c11b9a59b777ffc | 719 | package net.f4fs.fspeer;
import net.tomp2p.dht.FutureRemove;
import net.tomp2p.futures.BaseFutureAdapter;
public class RemoveListener extends BaseFutureAdapter<FutureRemove> {
private final String _output;
private final String _peerIP;
public RemoveListener(String peerIP, String output){
... | 26.62963 | 86 | 0.617524 |
11a0ed05c36366a0580a84693ce1720a9e9fc005 | 6,834 | /****************************************************************************
* Copyright 2016-2017, Optimizely, Inc. and contributors *
* *
* Licensed under the Apache License, Version 2.0 (the "License"); *
* you m... | 46.808219 | 156 | 0.593796 |
eedb4a1951de29358d0965b2755bfa7aa78f5b67 | 857 | package be.nokorbis.spigot.commandsigns.addons.economy.data;
import be.nokorbis.spigot.commandsigns.api.addons.Addon;
import be.nokorbis.spigot.commandsigns.api.addons.AddonConfigurationData;
import org.bukkit.entity.Player;
public class EconomyConfigurationData extends AddonConfigurationData {
private double pric... | 22.552632 | 104 | 0.759627 |
9d475eae4d15f74f660af3b08398b27cbe592e32 | 4,774 | package net.egork.collections.intcollection;
import net.egork.numbers.IntegerUtils;
import java.util.NoSuchElementException;
import java.util.Random;
public class IntHashMap {
private static final Random RND = new Random();
private static final int[] SHIFTS = new int[4];
private static final byte PRESENT... | 26.971751 | 83 | 0.492459 |
c088db5e8acbfa0fd950543adc745980e481f9a6 | 3,674 | package com.zebrunner.agent.testng.listener;
import com.zebrunner.agent.testng.adapter.TestNGAdapter;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.testng.IConfigurationListener;
import org.testng.ISuite;
import org.testng.ISuiteListener;
import org.testng.ITestContext;
import org.testng.ITestLis... | 34.990476 | 139 | 0.720468 |
3ac9613cd85b2d1515875c892626261b6bae3ffe | 462 | package com.adidas.sub.email.api;
import org.springframework.http.ResponseEntity;
import org.springframework.stereotype.Component;
import com.adidas.sub.email.model.Email;
@Component
class EmailFallback implements EmailControllerApiClient {
@Override
public ResponseEntity<Email> findAllEmails() {
Email email = ... | 27.176471 | 88 | 0.790043 |
e04f346fad2ad82f70c189ec3ddb75db06063c45 | 400 | package adamSmithComp373Proj1.BridgePattern;
public class UseResource{
Integer ID;
String Name;
public void setResourceType(){
System.out.println("Use");
}
public Integer getID(){
return this.ID;
}
public String getName(){
return this.Name;
}
... | 16 | 44 | 0.585 |
a6fd6971223e3a6f75d287201f13dc488c1890f6 | 3,836 | package cn.edu.ruc.iir.pard.exchange;
import cn.edu.ruc.iir.pard.executor.PardTaskExecutor;
import cn.edu.ruc.iir.pard.executor.connector.Block;
import cn.edu.ruc.iir.pard.executor.connector.Task;
import cn.edu.ruc.iir.pard.executor.connector.UnionTask;
import cn.edu.ruc.iir.pard.scheduler.TaskScheduler;
import cn.edu... | 34.872727 | 115 | 0.633994 |
2b9677a297f809e3e67e197a8a6d577b03a102cd | 5,972 | package org.alliancegenome.neo4j.repository;
import java.util.*;
import java.util.stream.*;
import org.alliancegenome.cache.repository.helper.JsonResultResponse;
import org.alliancegenome.neo4j.entity.SpeciesType;
import org.alliancegenome.neo4j.entity.node.*;
import org.alliancegenome.neo4j.entity.relationship.Ortho... | 48.552846 | 158 | 0.671467 |
07dd67d23927a6563fc38d476b63c112e6c04ef7 | 1,177 | /*
* The Alluxio Open Foundation licenses this work under the Apache License, version 2.0
* (the "License"). You may not use this work except in compliance with the License, which is
* available at www.apache.org/licenses/LICENSE-2.0
*
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTIES OR CONDI... | 33.628571 | 98 | 0.731521 |
76982f0836711007a0283fe325a17022cd348d1b | 1,457 | package com.pei.bookmanager.config;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.config.annotation.authentication.builders.AuthenticationManagerBuilder;
import org.springframework.security.config.annotation.web.builders.HttpSecurity;
import org.springframework.secu... | 39.378378 | 107 | 0.71105 |
69d05b6456ce72650e4c33158d172158afc6f854 | 3,142 | package es.guiguegon.cabify.adapters;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TextView;
import butterknife.BindView;
import butterknife.ButterKnife;
import com.bump... | 31.42 | 95 | 0.695735 |
250f43ff55dbb25a43e727c77519a97647c5993d | 667 | package com.change_vision.astah.lab.plugin.miro.board;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
@JsonIgnoreProperties(ignoreUnknown = true)
public class Board {
private String name;
private String id;
private String viewLink;
public String getName() {
return name;
}... | 18.027027 | 61 | 0.634183 |
91a32aacdee444765cf5ad5aae4491b07c97bb5c | 1,851 | /*
* Copyright 2020 Yu Liebing
*
* 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... | 24.68 | 85 | 0.727715 |
c07ff370900adede03cde3bfc2c4c785b82dac1a | 1,304 | import java.sql.PreparedStatement;
import java.sql.SQLException;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.RequestScoped;
@ManagedBean
@RequestScoped
public class ResetPassword {
String sifre,sifret,rc;
public String reset() {
if(!sifre.equals(sifret) || sifre.length()>30 || sifre.length()<6... | 25.568627 | 140 | 0.702454 |
dc6ca39515c33b4c2dd1db3fe02fd868136805b7 | 957 | package com.nastib.tpecom.servlets;
import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.Http... | 35.444444 | 121 | 0.730408 |
96ae4dc959bafc8ba2eeea801d0ea6ef2ad3cca0 | 463 | package org.campagnelab.circles.aspect.behavior;
/*Generated by MPS */
import org.jetbrains.mps.openapi.model.SNode;
/**
* Will be removed after 3.3
* Need to support the legacy static direct method calls
*/
@Deprecated
public class NewBeanCreationFocus_Behavior {
public static SNode call_getViewingConcept_8338... | 27.235294 | 98 | 0.807775 |
45dc832e0ed807ee96b0e9ae39773dbcd3354f1e | 262 | package org.iproduct.spring.comments;
public interface CommentsLoggerService {
void dumpAllComments();
void dumpCommentsByAuthor(String authorEmail);
// CommentsService getCommentsService();
// void setCommentsService(CommentsService supplier);
}
| 29.111111 | 56 | 0.78626 |
557c2e4e9b937284884bdb8661a9d0d8e2cdc8a3 | 1,852 | package com.handsomexi.homework.activity;
import android.os.Bundle;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.EditText;
import android.widget.ImageView;
import android.widget.Spinner;
import android.widget.TextView;
import com.handsomexi.homework.R;
i... | 28.9375 | 112 | 0.715983 |
ce758f0c3976e2f478a91a178824fca64b0627a1 | 11,832 | package org.zalando.tarbelaproducer.web;
import org.assertj.core.api.Assertions;
import org.zalando.tarbelaproducer.BaseMockedExternalCommunicationIT;
import org.zalando.tarbelaproducer.TestApplication;
import org.zalando.tarbelaproducer.api.event.model.BunchOfEventsDTO;
import org.zalando.tarbelaproducer.api.event.mo... | 46.21875 | 118 | 0.596433 |
fcf7b003de823410467e1bc65ebe4a6dbcdf36de | 5,421 | package com.r4intellij.interpreter;
import com.google.common.collect.Iterables;
import com.intellij.execution.ExecutionException;
import com.intellij.execution.configurations.GeneralCommandLine;
import com.intellij.execution.process.CapturingProcessHandler;
import com.intellij.openapi.util.SystemInfo;
import com.intel... | 36.14 | 161 | 0.627006 |
4b67fb4917ec3975e79fabf9f3609403dd6f30ff | 6,035 | /**
* This software is released as part of the Pumpernickel project.
*
* All com.pump resources in the Pumpernickel project are distributed under the
* MIT License:
* https://raw.githubusercontent.com/mickleness/pumpernickel/master/License.txt
*
* More information about the Pumpernickel project is available he... | 27.431818 | 79 | 0.624192 |
028bb2c1c444a800b6f5ab565a5c68bcc9a1e626 | 2,833 | /*
* #%L
* ACS AEM Commons Bundle
* %%
* Copyright (C) 2013 Adobe
* %%
* 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.240385 | 124 | 0.726085 |
c1d7baee9109a3fb7a86003c303f82fc3f6dd90d | 1,170 | package test.linkedList; //MyListNode.java
//This class implements basic node stored in a linked list .
class MyListNode
{
/*Class Members*/
public Object _element; //Node's data
public MyListNode _next; //Pointer to next node
public int _nTime = 0; //The time to sleep
//C't... | 24.375 | 82 | 0.57094 |
62f5651cc0f56fe8bdbda8e06a5e7cf4ede194e6 | 4,236 | /**
* Copyright 2015 DuraSpace, 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 agree... | 36.834783 | 119 | 0.688385 |
25d7daa2a29b6bda65e966c181b9a5bf994a5873 | 401 | package com.action.shejizhichan.chapter15.common;
/**
* @Description TODO
* @Author wuyunfeng
* @Date 2020-05-25 10:37
* @Version 1.0
*/
public class ConcreteCommand1 extends Command {
private Receiver receiver;
public ConcreteCommand1(Receiver receiver) {
this.receiver = receiver;
}
@... | 18.227273 | 49 | 0.668329 |
d3d381be0fced445cc35e40ef434a2d9ac2bd0ad | 368 | package com.netease.iot.rule.proxy.mapper;
import com.netease.iot.rule.proxy.domain.SqlTemplate;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;
@Mapper
public interface SqlTemplateMapper {
List<SqlTemplate> getSqlTemplateByParentId(@Param("version"... | 28.307692 | 108 | 0.796196 |
37a5a34b9785b638cdd0bbd85ad3763e252c655d | 2,848 | /**
* generated by Xtext 2.19.0
*/
package org.afplib.afpText;
import org.eclipse.emf.common.util.EList;
/**
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>BDM</b></em>'.
* <!-- end-user-doc -->
*
* <p>
* The following features are supported:
* </p>
* <ul>
* <li>{@link org.afpli... | 29.360825 | 97 | 0.608497 |
8fd3e98fe88e713fab8e2f15d9a711d67d8ad167 | 1,742 | /*
* Copyright (C) 2019 Rabobank Nederland
*
* 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 la... | 28.557377 | 98 | 0.719862 |
6c3724383dae62dc0231d4b66b7803faae12980f | 6,962 | package com.appgrouplab.evaluometro.appmovil.Candidato;
import android.os.AsyncTask;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import com.ap... | 37.031915 | 198 | 0.680839 |
d36033a6f2436de16ada34fc35eb354431ab91cc | 1,782 | /*
* Licensed to CRATE Technology GmbH ("Crate") under one or more contributor
* license agreements. See the NOTICE file distributed with this work for
* additional information regarding copyright ownership. Crate licenses
* this file to you under the Apache License, Version 2.0 (the "License");
* you may not us... | 31.821429 | 82 | 0.714366 |
cdc9d99f35f5d568d267348380fdd993a7b685da | 2,203 | /*
* (C) Copyright 2018 Lukas Morawietz (https://github.com/F43nd1r)
*
* 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... | 30.597222 | 100 | 0.728552 |
9a93e601c89ba28c82c6e3e1842d10911fac7055 | 1,455 | package pages;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.ui.Select;
//estrutural--------------------------------------------------------------------------------------------------------
//ADD contato no formulario aber... | 34.642857 | 116 | 0.611684 |
c322803166de4d2558c3df8baa1ca63f1327f0e0 | 935 | package com.controller;
import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import com.dao.Owner_dao;
import com.... | 25.27027 | 120 | 0.73262 |
d0652f3ad94fd5ee46ea8705052635169f4d41e2 | 368 | package io.reflectoring.coderadar.projectadministration.port.driver.filepattern.delete;
public interface DeleteFilePatternFromProjectUseCase {
/**
* Deletes a file pattern from the DB given its id.
*
* @param filePatternId The id of the file pattern.
* @param projectId The id of the project.
*/
voi... | 28.307692 | 87 | 0.75 |
73bcc80c3e3cd635ca309cd4f4ca63cfb5f9457e | 565 | package org.polyforms.event;
import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* Indicates that methods do nothing when they are invoked by clients.
*
* The an... | 25.681818 | 97 | 0.785841 |
d53aaeaa26b0e6ff9ca25701dcf819dbd7dcd6e9 | 2,963 | package com.github.ellivr.sakmasak.utils;
import android.content.Context;
import android.content.res.Resources;
import com.github.ellivr.sakmasak.R;
/**
* Created by ref on 2017/08/31.
*/
public class GlobalVar {
public final static class Const{
public static final String BASE_URL = "https://d17h27t... | 37.506329 | 119 | 0.595005 |
fc98586804a8e21ea8b2b108b01db1ac5704add8 | 4,221 | package com.baidu.hugegraph.job.schema;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import com.baidu.hugegraph.backend.id.Id;
import com.baidu.hugegraph.backend.id.IdGenerator;
import com.baidu.hugegraph.backend.tx.SchemaTransaction;
import com.baidu.hugegraph.job.Job;
import ... | 38.724771 | 77 | 0.601279 |
4c570b493e36ae9fbccee4ac33638adbf2f9887a | 3,952 | /*
* 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 ... | 58.117647 | 109 | 0.755314 |
b4f1483e74a9510c2db9f12e379de91e30711fb5 | 232 | package ru.jvdev.univalidator.rules;
/**
* @author <a href="mailto:ilatypov@wiley.com">Ilshat Latypov</a>
* @since 23.08.2016
*/
public interface ValidationRule {
boolean check(Object value);
String getErrorMessage();
}
| 21.090909 | 65 | 0.706897 |
7e9bf59904be47b984131035693295aebc2a3a31 | 87 | package me.ederign;
public class Student {
public Student(String nome) {
}
}
| 10.875 | 33 | 0.655172 |
f452288d0042b733afc153aee35f5745fa4428f6 | 1,153 | /*
* 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 Aula_10_Pilha;
/**
*
* @author anacris
*/
public class Pilha {
private No topo;
private int tam;
//Cria u... | 22.607843 | 79 | 0.567216 |
7fece192020b2ef79cbf18fd53549fbaaef473cb | 781 | package com.sciome.bmdexpress2.mvp.model.refgene;
import java.io.Serializable;
/*
* super class to represent a "Gene". Current system only represents Entrez genes,
* but in the future it would be nice to be able to add references from other sources.
*/
public abstract class ReferenceGene implements Serializable
... | 18.162791 | 86 | 0.711908 |
5c24b2f2f7f06a68769a8c2fda3141dd2cee83b6 | 1,655 | package demo.taskapplication.ui;
import android.content.Context;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import java.util.List;
import demo.taskapplication.R;
/**
* Created by Binay o... | 27.131148 | 120 | 0.691239 |
a67894cb4abead70ca914bfecf2876ab899689f3 | 340 | package com.jiuye.sona.design.visitor;
/**
* @Author: xinjian.hu
* @Date: 2020/10/12 17:31
* @Email: huxinjian@jiuyescm.com
*/
public interface Visitor {
/**
* 访问学⽣信息
*
* @param student
*/
void visit(Student student);
/**
* 访问⽼师信息
* @param teacher
*/
void visit(... | 14.782609 | 38 | 0.558824 |
cb3958e70fa2de17d5dca2fbef1dba89959e04c5 | 3,244 | package com.jbm.cluster.center.listener;
import cn.hutool.core.bean.BeanUtil;
import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import com.google.common.collect.Lists;
import com.jbm.cluster.api.model.entity.BaseApi;
import com.jbm.cluster.center.service.BaseApiService;
import com.jbm.clus... | 35.26087 | 90 | 0.622688 |
4c42a97e1f8da0044f68f2d3c81f13e2284ff0f5 | 6,888 | package maru.groundstation.controls;
import maru.core.model.IGroundstation;
import maru.core.model.IScenarioProject;
import org.eclipse.swt.SWT;
import org.eclipse.swt.layout.GridData;
import org.eclipse.swt.layout.GridLayout;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Label;
i... | 29.947826 | 102 | 0.630807 |
6efc9483c3c340869e3627414229d59a4ba66703 | 1,790 | package com.xad.sdk.mraid;
import android.app.Fragment;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.RelativeLayout;
import java.util.ArrayList;
import java.util.List;
/**
* Cr... | 24.861111 | 141 | 0.67933 |
f564389682403b3ba82322cfd4838c3a8ce978b3 | 1,372 | package com.xin.tools;
import java.awt.Color;
import java.text.SimpleDateFormat;
import javax.swing.BorderFactory;
import com.github.sarxos.webcam.Webcam;
import com.github.sarxos.webcam.WebcamPanel;
import com.github.sarxos.webcam.WebcamUtils;
/*
* 线程类,控制拍照
*
* */
public class CaptureRunnable implements Runnab... | 21.4375 | 89 | 0.717201 |
9641ca0cbd2c04cd72253cfdd07d7349db901bca | 1,392 | package me.luligabi.coxinhautilities.client.compat.rei.drying;
import me.luligabi.coxinhautilities.client.compat.rei.ReiPlugin;
import me.luligabi.coxinhautilities.common.recipe.drying.DryingRecipe;
import me.shedaniel.rei.api.common.category.CategoryIdentifier;
import me.shedaniel.rei.api.common.display.Display;
impo... | 27.294118 | 89 | 0.738506 |
a8b8001cf209ee60dae8cb6928ed51122fd2fbc2 | 1,023 | package com.random.developer.interview;
import java.util.function.Consumer;
import com.random.developer.interview.fixtures.BinaryNode;
public class BinaryTreeTraversal {
public <T> void preOrder(BinaryNode<T> root, Consumer<T> consumer) {
consumer.accept(root.getValue());
if (root.getLeftChild() != null) {
... | 25.575 | 70 | 0.690127 |
938b6b3be04fc9a1fa1fbfddada374bd17aaa1ce | 323 | package com.stackroute.repository;
import com.stackroute.domain.Producer;
import com.stackroute.domain.User;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;
@Repository
public interface ProducerRepository extends MongoRepository<Producer, String> {... | 29.363636 | 79 | 0.851393 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.