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 |
|---|---|---|---|---|---|
081d2fc32a55a2ba51c956e2bbc72e5e058b5b68 | 3,469 | /*
* 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 AnalizadorSintactico.Descendente.Utilidades;
import static AnalizadorSintactico.AnalizadorSintactico.TokenActual;
import stati... | 35.762887 | 110 | 0.511387 |
229f37eb34314259278226c068dfe941de129c59 | 887 | package judge.model.service;
import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;
public class ExerciseServiceModel extends BaseServiceModel {
private String name;
private LocalDateTime startedOn;
private LocalDateTime dueDate;
public ExerciseServiceModel() {
}
public ... | 20.159091 | 60 | 0.658399 |
f19a1fdb361e0dfe19c7d15cd5fb3673f3cbc1c6 | 1,839 | /***************************************************************************
* Copyright (C) 2018 iObserve Project (https://www.iobserve-devops.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 ... | 38.3125 | 109 | 0.708537 |
f8fe9a6bc1692aec2bfcdca0a2ac7ed52cdb77c8 | 1,575 | package org.unidal.cat.plugin.transactions.model;
import org.unidal.cat.plugin.transactions.filter.TransactionsHelper;
import org.unidal.cat.plugin.transactions.model.entity.TransactionsDuration;
import org.unidal.cat.plugin.transactions.model.entity.TransactionsName;
import org.unidal.cat.plugin.transactions.model.en... | 33.510638 | 102 | 0.783492 |
9408f8d771a0961b288be97e868a5587dd7bd56e | 4,704 | /*
* $Id$
*
* 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
* "Lice... | 39.529412 | 131 | 0.711947 |
ca531db1cbddabcf0679292868712a84039141e3 | 500 | package lqcUtils.service.tx;
import java.lang.reflect.Method;
import java.sql.Connection;
import lqcUtils.proxy.FinallyAdvice;
public class TxFinallyAdvice extends FinallyAdvice{
@Override
public void advice(Object proxy, Method method, Object[] args, Exception e) throws Throwable {
// TODO Auto-gene... | 25 | 96 | 0.708 |
d92bb96f70b4d6eb5a015e201f675f9b2f99c86f | 1,158 | package com.nrupeshpatel.cleancity;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
import android.support.v7.app.AppCompatActivity;
import android.view.Window;
import android.view.WindowManager;
public class SplashActivity extends AppCompatActivity {
Handler handler;
Runn... | 28.95 | 80 | 0.665803 |
ec03bb1e2f200f1bf0f63c314320765b8e23c2c2 | 2,966 | /*
* Copyright 2017 Gregory Moyer
*
* 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... | 44.268657 | 99 | 0.651719 |
54027e0f7558d6a0f90a6bd24fc7c2a895154ea9 | 4,147 |
package myServlets;
import Beans.QuizBean;
import DbConnection.QuizOperation;
import java.io.IOException;
import java.io.PrintWriter;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.ser... | 44.591398 | 123 | 0.507114 |
ecfd682778a3d52d8aac4a829a4751cb55f66789 | 4,690 | package io.blockchainetl.common.fns;
import com.google.api.services.bigquery.model.TableRow;
import io.blockchainetl.common.utils.JsonUtils;
import io.blockchainetl.common.utils.TimeUtils;
import org.codehaus.jackson.JsonNode;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.io.IOException;
import... | 44.245283 | 118 | 0.686994 |
eaacbb17107bbf967efdfa91a5af9e867e9b96a9 | 1,957 | // Copyright 2000-2021 Nokia
//
// Licensed under the Apache License 2.0
// SPDX-License-Identifier: Apache-2.0
//
package com.nextenso.diameter.agent.peer.statemachine.rfc3588;
import static com.nextenso.diameter.agent.peer.statemachine.rfc3588.Rfc3588Constants.Event.I_PEER_DISC;
import static com.nextenso.diameter.... | 34.333333 | 114 | 0.782831 |
7521db5adf20414ba1f08a2105eeb8757eaaec15 | 917 | package foodev.jsondiff.jsonwrap;
/**
* Common abstaraction for a json array.
*
* @since 1.0.0
*/
public interface JzonArray extends JzonElement {
/**
* @return array size
*/
int size();
/**
* Returns element at given index.
*
* @param index
* - index to retreive element from
* @ret... | 17.301887 | 48 | 0.575791 |
75b070aa65aa9f14497844d89bb058171f355358 | 1,698 | package link.webarata3.common.util;
import java.util.HashMap;
import java.util.Map;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
/**
* 正規表現用のユーティリティ
*
* @author webarata3
*/
public abstract class RegexUtil {
/** 全角カタカナのパターン */
public static final String EM_KATAKANA = "\\u30A0-\\u30FF";... | 24.257143 | 77 | 0.583628 |
b76f039a7ff2dc9028d674eb7cb544365c2cc953 | 1,437 | package com.izhbg.typz.sso.auth.dto;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;
import org.hibernate.annotations.GenericGenerator;
import com.izhbg.typz.sso.auth2.dto.OauthClientDetails;
... | 21.447761 | 76 | 0.722338 |
b305bdc4f1367afb72e78dd670bc53a7e3c274b9 | 1,059 | package com.example.webcv.cv;
import com.example.webcv.certification.CertificationModel;
import com.example.webcv.experience.Experience;
import com.example.webcv.experience.ExperienceModel;
import com.example.webcv.experience.UserExperienceRepository;
import com.example.webcv.user.*;
import org.springframework.stereot... | 31.147059 | 105 | 0.756374 |
0dd2ad785b88354335a4382aa01b3b5cf916f5ab | 3,558 | package com.ahmedadeltito.virtualdressingview;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import org.opencv.android.AsyncServiceHelper;
import org.opencv.android.BaseLoaderCallback;
import org.opencv.android.InstallCallba... | 31.210526 | 92 | 0.569702 |
303213ea49256535b7089486afdbf705dc30d71a | 33,789 | /**
* Unlicensed code created by A Softer Space, 2019
* www.asofterspace.com/licenses/unlicense.txt
*/
package com.asofterspace.toolbox.utils;
import java.nio.charset.Charset;
import java.nio.charset.StandardCharsets;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java... | 26.710672 | 114 | 0.651751 |
4b5ad286e181dd0544b4bf274955d4e4f51730a1 | 999 | package com.qingtian.easy._141;
import com.qingtian.pojo.ListNode;
/**
* @Author mcrwayfun
* @Description
* @Date Created in 2018/6/1
*/
public class Solution {
public boolean hasCycle(ListNode head) {
ListNode fast = head, slow = head;
if(head == null || head.next == null)
ret... | 20.8125 | 59 | 0.547548 |
2ed9b837ff93f8a4e65de5342008a1e2aa462c75 | 140 | package com.deepingful.java8feature.functional.overload;
@FunctionalInterface
public interface IntPred {
boolean test(Integer value);
}
| 17.5 | 56 | 0.814286 |
542c3db0792ee21ed5315112dfb26f50b1984d03 | 715 | package com.goddardlabs.jokeviewlibrary;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.widget.TextView;
import static com.goddardlabs.jokeviewlibrary.Constants.JOKE_ID;
public class DisplayJokeActivity extends AppCompatActivity {
@Override
protected void onCreate(... | 29.791667 | 77 | 0.728671 |
af254896ff63e09a77f97e70ed4ed7e0ceda7525 | 5,260 | /*============LICENSE_START=======================================================
* oom-truststore-merger
* ================================================================================
* Copyright (C) 2020 Nokia. All rights reserved.
* ===========================================================================... | 40.775194 | 103 | 0.704943 |
2b30a58874903a097e6c9050fd3dd1f9f850c5fe | 3,822 | package edu.iu.lda;
import java.io.IOException;
import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.conf.Configured;
import org.apache.hadoop.fs.FileSystem;
import org.apache.hadoop.fs.Path;
import org.apache.hadoop.mapreduce.lib.input.FileInputFormat;
import org.apache.hadoop.mapreduce.lib.output.Fi... | 26.915493 | 63 | 0.671376 |
2e483b0522f6b4a7aea83b4b061d38b47ecb619e | 4,251 | package org.processmining.plugins.predictive_monitor.bpm.configuration;
import org.processmining.plugins.declareminer.enumtypes.DeclareTemplate;
import org.processmining.plugins.predictive_monitor.bpm.classification.enumeration.ClassificationType;
import org.processmining.plugins.predictive_monitor.bpm.clustering.enum... | 56.68 | 199 | 0.773936 |
ddb42beb56826f32b0786966ad55298dd720579b | 243 | package com.huonix.simplechat.enums;
public enum ERole {
ADMIN("admin"),
DEFAULT("default"),
GUEST("guest");
private String role;
ERole(String role) {
this.role = role;
}
public String role() {
return role;
}
}
| 12.15 | 36 | 0.617284 |
1ccacec5ec246ac19b8aa5edd2d692e3889e12ce | 1,211 | package com.darrensun.timus;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.HashMap;
import java.util.Map;
/**
* Timus 1617 - Flat Spots
* Created by Darren on 14-7-10.
*/
public class Q1617 {
public static void main(String[] args) {
Buffe... | 29.536585 | 81 | 0.563171 |
428f40ec627f55c48744dba95c9c1ef1f038090a | 3,779 | package com.wieland.www.scheduletest.schedule;
/**
* Created by wulka on 05.12.2017.
*/
public class NameShortcuts {
public static String getRealName(String fakeName) {
//TODO: Name database
/*switch (fakeName) {
case "Thei":
return "Frau Theiss";
case "Mi... | 29.069231 | 57 | 0.398254 |
7278eafcdb8a9af4a8de50664827959abe082e5b | 1,149 | package io.github.pivopil.share.entities.impl;
import com.fasterxml.jackson.annotation.JsonIgnore;
import io.github.pivopil.share.entities.BasicEntity;
import org.hibernate.validator.constraints.NotEmpty;
import org.springframework.security.core.GrantedAuthority;
import javax.persistence.Column;
import javax.persiste... | 22.98 | 67 | 0.707572 |
31566785c49125e7116e09a74cd73eaa62e6650d | 2,535 | /*
* 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 controller;
import java.net.URL;
import java.util.ResourceBundle;
import java.util.logging.Level;
import java.util.logging.Log... | 28.166667 | 93 | 0.670217 |
41cd46b9628328352b3d6b26c9968911753ae312 | 4,130 | /*
Copyright 2020, Rein (TNO MSG)
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software... | 31.052632 | 171 | 0.726877 |
f463a5ea05eb70316fe5e493cd301b0df0c76fda | 2,709 | /*******************************************************************************
* Copyright (c) 2011, 2012 SINTEF, Martin F. Johansen.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, an... | 33.444444 | 104 | 0.684385 |
6ff3d2a559bff2573d252cd71f480cdb49a4332b | 2,312 | /*
* 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... | 34 | 98 | 0.743945 |
9849cb5e9c97e7396cfd22d832352537093f37e1 | 406 | class Tree
{ int count ;
int findSum(Node iter ,int X){
if(iter==null)return 0;
int leftSum = findSum(iter.left , X);
int rightSum = findSum(iter.right ,X);
int sum = leftSum+rightSum+iter.data;
if(sum == X)count++;
return sum ;
}
int countSubtreesWithSumX(N... | 23.882353 | 47 | 0.551724 |
9d98e84bc41236e7f5a8cdfd0156a7a59f0cb689 | 43,276 | package si.isystem.itest.wizards;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.Set;
import java.util.TreeSet;
import org.apache.commons.lang3.StringUtils;
import org.apache.commons.lang3.math.NumberUtils;
import org.eclipse.jface.dialogs.MessageDialogWithToggl... | 45.601686 | 145 | 0.57198 |
1d8e93625f390ceb49820923ed128d09e5152c13 | 3,489 | package com.stats.disease.healthstats;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.graphics.Color;
import android.graphics.drawable.GradientDrawable;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
public class ViewStatsA... | 37.923913 | 111 | 0.689309 |
4266bde7bf52e5db449f62251d1d47a527006c3f | 6,483 | /*******************************************************************************
* Copyright (c) 2002 - 2006 IBM Corporation.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is avail... | 29.60274 | 130 | 0.649699 |
280df80af7a054c000cdc90e9266657599d1f99c | 949 |
package com.wk.chart.module;
import com.wk.chart.entry.CandleEntry;
import com.wk.chart.entry.ValueEntry;
import com.wk.chart.enumeration.IndexType;
import com.wk.chart.enumeration.ModuleType;
import com.wk.chart.module.base.IndexModule;
/**
* <p>蜡烛图的指标组件</p>
*/
public class CandleIndexModule extends IndexModule<... | 23.146341 | 65 | 0.610116 |
493e29e5f8e53a76c53d65e78458445e4394b899 | 539 | package com.ofdbox.core.xmlobj.adapter;
import com.ofdbox.core.xmlobj.st.ST_Loc;
import javax.xml.bind.annotation.adapters.XmlAdapter;
/**
* @description: ST_Loc适配器
* @author: 张家尧
* @create: 2020/10/01 13:17
*/
public class StLocAdapter extends XmlAdapter< String, ST_Loc> {
@Override
public ST_Loc unmars... | 22.458333 | 63 | 0.669759 |
e1082e29a1b11eea9ef2a1cee6baee8aa5db623c | 1,801 | package com.stackroute;
import com.stackroute.domain.Movie;
import org.springframework.beans.factory.BeanFactory;
import org.springframework.beans.factory.support.BeanDefinitionReader;
import org.springframework.beans.factory.support.BeanDefinitionRegistry;
import org.springframework.beans.factory.support.DefaultLista... | 50.027778 | 115 | 0.789561 |
882924dd4567336c368b740dfeb63a6724053909 | 3,834 | /*
* Copyright 2000-2014 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 agre... | 44.581395 | 174 | 0.759781 |
b866dd70f8543b07977c2a23e47976e12a7d7990 | 2,296 | /*
* Copyright 2019 Arcus 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 applicable law or agreed to ... | 22.732673 | 75 | 0.739547 |
5d0f07071e2012856f8cd0c866081e151d1c2a03 | 1,799 | package com.kunlun.common.config;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.context.annotation.Bean;
import org.... | 32.709091 | 119 | 0.732629 |
b70961ad963c02a31bd1e5f20b9592d3aae75266 | 1,047 | package dir_file;
import java.io.File;
/**
* DirTree - directory lister, like UNIX ls or DOS/VMS dir
*
* @author Ian Darwin, http://www.darwinsys.com/
* @version $Id: DirTree.java,v 1.7 2006/04/02 00:48:48 ian Exp $
*/
public class DirTree {
/** Main program */
public static void main(String[] argv) {
DirTre... | 23.266667 | 65 | 0.60745 |
62dce800b60b18792ec50ed1f24e977e771c9026 | 250 | package com.github.filipmalczak.vent.web.model.query;
import lombok.AllArgsConstructor;
import lombok.ToString;
@AllArgsConstructor
@ToString
public class OperationNotSupportedException extends RuntimeException {
private Operation operation;
}
| 22.727273 | 70 | 0.84 |
72de87446b45c0c4e43540971ccfeb578b70952b | 581 | package org.springframework.security.web.authentication.session;
import org.springframework.security.core.AuthenticationException;
/**
* Thrown by an <tt>SessionAuthenticationStrategy</tt> to indicate that an authentication
* object is not valid for the current session, typically because the same user has
* exceed... | 29.05 | 89 | 0.79346 |
8df65819fddcd929a1a196002100bb4a2f95badd | 428 |
class Porta {
boolean aberta;
String cor;
double dimensaoX;
double dimensaoY;
double dimensaoZ;
void abre() {
System.out.println("A porta foi aberta.");
this.aberta = true;
}
void fecha() {
System.out.println("A porta foi fechada.");
this.aberta = false;
}
void pinta(String s) {
this.cor = s;
}... | 13.806452 | 45 | 0.626168 |
e67fe94493f97ebfa0efd10d8bf7d365c37ccc99 | 2,457 | /*******************************************************************************
* Copyright (c) 2019 NetAllied Systems GmbH, Ravensburg. All rights reserved.
* Licensed under the MIT license. See LICENSE file in the project root for details.
*************************************************************************... | 30.333333 | 147 | 0.677656 |
0099bac410749e30c6e82886ee9c91fe8881e369 | 1,376 | package game.skill;
import game.actor.ActorDamage;
import game.actor.ActorInBattle;
import game.BattleOrder;
/**
* 龙腾
*/
public class Skill1200 extends Skill {
public Skill1200() {
id = 1200;
name = "蛟龙出海";
}
@Override
public void release() {
ActorInBattle target = self.bat... | 31.272727 | 81 | 0.673692 |
ab10b2af2164d33736db622ad9bf028a815feff7 | 3,160 | package com.qouteall.immersive_portals.mixin.altius_world;
import com.qouteall.immersive_portals.altius_world.AltiusInfo;
import net.minecraft.block.BlockState;
import net.minecraft.block.Blocks;
import net.minecraft.util.math.BlockPos;
import net.minecraft.world.IWorld;
import net.minecraft.world.biome.provider.Biome... | 36.321839 | 131 | 0.589241 |
e4374a819d02fbd7a224664fc83a55b5555ead66 | 7,803 | package io.github.hidroh.materialistic;
import android.content.Context;
import android.net.ConnectivityManager;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v4.widget.NestedScrollView;
import android.view.MenuItem;
import android.webkit.WebView;
import org.junit.Before;
imp... | 45.9 | 115 | 0.698449 |
01e7ff39d57082ddb819641753725280450961db | 597 | package com.sls.security.services;
import java.sql.Date;
import java.util.List;
import org.springframework.http.ResponseEntity;
import com.sls.security.dto.DeleteDTO;
import com.sls.security.dto.VisitorRegiDTO;
public interface VisitorRegiService {
List<VisitorRegiDTO> getAllVisitors();
VisitorRegiDTO getVisito... | 27.136364 | 76 | 0.825796 |
9fd09ed06824734fcf7fa852d16d124afedfdf71 | 3,463 | package com.okason.prontonotepadfirebase.ui.category;
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.ImageButton;
import android.widget.TextView;
import com.okason.pronton... | 32.980952 | 124 | 0.682356 |
27f92cac243f468d890f8247ba3b667430aa1ae3 | 13,553 | package ttt;
import java.util.*;
public class LinkedList<T> implements List<T> {
private Item<T> firstInList = null;
private Item<T> lastInList_TEMP1=null;
private Item<T> firstInList_TEMP11 = null;
private Item<T> lastInList_TEMPRem=null;
private Item<T> lastInList = null;
private boolean fir... | 24.508137 | 103 | 0.494724 |
8bf5dffed6b35dc469ce12abe31ae26990f6f8e5 | 7,858 | package com.puttysoftware.mazerunner2.creatures.party;
import java.awt.BorderLayout;
import java.awt.Component;
import java.awt.Container;
import java.awt.Dimension;
import java.awt.Frame;
import java.awt.Point;
import java.awt.Rectangle;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import ... | 44.647727 | 80 | 0.645839 |
8eecb9bda44cbe7324b310f885e8f0e0055b9566 | 951 | package mcouch.core.rhino;
import mcouch.core.couch.indexing.IndexEntry;
import mcouch.core.couch.indexing.View;
public class EmitFunction {
private View view;
public static final String EMIT_FUNCTION = "function emit(one, two){if (two) return javaEmitFunction.emit(one, two); return javaEmitFunction.emit(one)... | 27.970588 | 157 | 0.661409 |
9a1fd777fa019b16772b39ada43f1832c3dd461e | 2,721 | /*
* Copyright 2017 Johannes Donath <johannesd@torchmind.com>
* and other copyright owners as documented in the project's IP log.
*
* 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
*
* ... | 35.802632 | 99 | 0.735759 |
fff8a7e4b5a2a077b2693d4c7e3cabed718691a3 | 290 | package org.baeldung.springevents.synchronous;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
@Configuration
@ComponentScan("org.baeldung.springevents.synchronous")
public class SynchronousSpringEventsConfig {
}
| 26.363636 | 60 | 0.858621 |
ad4b2c62d80475f9d995eaec9e78b0586f29593b | 2,344 | package hr.fer.zemris.java.hw16.trazilica.commands;
import java.io.IOException;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.StringJoiner;
import hr.fer.zemris.java.hw16.trazilica.Command;
import hr.fer.zemris.java.hw16.trazilica.Document;
import hr.fer.zemris.java.hw16.traz... | 35.515152 | 89 | 0.729522 |
bf20e812e96c60e00949634f835e2a5dfaa6c96d | 488 | package mybean.data;
public class Password{
String oldPassword,newPassword,backNews="";
public void setNewPassword(String pw){
newPassword=pw;
}
public String getnewPassword(){
return newPassword;
}
public void setOldPassword(String pw){
oldPassword=pw;
}
public String getOl... | 21.217391 | 49 | 0.659836 |
a34a1610614cf3f211f6364369c273696e59a83e | 3,647 | package nl.knaw.huygens.antioch.client.model;
/*
* #%L
* antioch-java-client
* =======
* Copyright (C) 2015 - 2017 Huygens ING (KNAW)
* =======
* 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 Lic... | 21.96988 | 89 | 0.703318 |
6c65dd8540445bba5a00263022632afc0283d52b | 2,428 | package com.xiangzi.sapanywhere.bean;
import java.util.List;
import java.util.Map;
import com.fasterxml.jackson.annotation.JsonProperty;
/**
* 供应商
*/
public class Vendor extends BaseBean {
private Map<String, Object> customFields;
private String id;// integer (int64),A unique idendifier
// 编号
@... | 17.985185 | 81 | 0.668863 |
d01d4b5b2dee42a84e79da8621e382382fbf5668 | 359 | package io.github.bijeshos.designpatterns.abstractfactory.american;
import io.github.bijeshos.designpatterns.abstractfactory.Kitchen;
public class AmericanKitchen implements Kitchen {
static final String DESCRIPTION = "American Kitchen";
@Override
public void description() {
System.out.println("... | 25.642857 | 67 | 0.754875 |
4fa6e9ba9f8779bb0bd6a2f0941ef944bfdb6fd1 | 604 | package org.xaplus.engine;
/**
* @author Kirill Byvshev (k@byv.sh)
* @since 1.0.0
*/
class XAPlusThreadContext {
private volatile XAPlusTransaction transaction;
XAPlusTransaction getTransaction() {
return transaction;
}
void setTransaction(XAPlusTransaction transaction) {
if (tran... | 20.133333 | 66 | 0.63245 |
100f7c529dbcbb4db8436ad3e83e3f0fb771ebd7 | 3,408 | package common.zeroquest.client.render;
import net.minecraft.client.renderer.entity.RenderLiving;
import net.minecraft.entity.Entity;
import net.minecraft.entity.EntityLivingBase;
import net.minecraft.entity.passive.EntitySheep;
import net.minecraft.util.ResourceLocation;
import org.lwjgl.opengl.GL11;
impo... | 43.139241 | 158 | 0.700704 |
ab305993f40e3a7bca20cc9444b3095908d589bf | 3,929 | package org.drools.eclipse.flow.ruleflow.core;
/*
* Copyright 2005 JBoss 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... | 39.686869 | 99 | 0.697633 |
2d5f1a22f51f4c5f5c75e8d0090aee3fae889159 | 7,631 | package com.example.hroopendagtest1;
public class QuizLibr {
String chosenProgram;
String []studyProgram;
String [][] questionChoices;
String[] questionAnswers;
String [] questionSecondAnswers;
public String InfoQuestions [] = {
"How long does this Study Program take?",
... | 41.928571 | 161 | 0.564801 |
9c775f362c6e5486ac2694d97ebbce99c539849a | 3,544 | /*
Copyright 2011-2016 Google 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 by applicable law or agreed t... | 42.190476 | 99 | 0.751411 |
6ac2902c83af776308e1871ce34be6b68abe397e | 528 | package com.misterpemodder.shulkerboxtooltip.impl.tooltip;
import com.misterpemodder.shulkerboxtooltip.api.PreviewContext;
import com.misterpemodder.shulkerboxtooltip.api.provider.PreviewProvider;
import net.minecraft.client.item.TooltipData;
public class PreviewTooltipData implements TooltipData {
public final Pr... | 31.058824 | 79 | 0.825758 |
8845544d004fcc6891e08cb7d19c9f7ee78d9672 | 4,266 |
package com.example.moodmobile;
import org.apache.commons.lang3.StringUtils;
import java.util.Date;
import io.searchbox.annotations.JestId;
/**
* This is the main class used to implement the moods in the application.
* The main parameters used for this class are as follows:
* <ul>
* <li>message: Optional re... | 27.882353 | 91 | 0.636428 |
c5150cacb197cd448c9b4a1c40c87e362631b7d0 | 1,119 | package org.sonar.plugins.clojure.settings;
import org.sonar.api.config.PropertyDefinition;
import java.util.List;
import static java.lang.String.valueOf;
import static java.util.Collections.singletonList;
import static org.sonar.plugins.clojure.settings.Properties.MAIN_CATEGORY;
import static org.sonar.plugins.cloj... | 33.909091 | 84 | 0.72118 |
20a25991bb54487ab2dad22bfdfd59d179021089 | 4,071 | package org.springrain.config;
import java.io.IOException;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.cache.CacheManager;
import org.springframework.cache.concurrent.ConcurrentMapCacheManager;
import org.springframework.context.annotation.Bean;
import org.springframework.con... | 25.44375 | 114 | 0.606485 |
c92cf3bf2ca9a806f75d7855fe7f88ce6dbd4c9b | 3,938 | package com.codepath.apps.mysimpletweets.models;
import android.text.format.DateUtils;
import com.activeandroid.annotation.Table;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
impo... | 28.128571 | 80 | 0.562214 |
c194419a0aafd571a659ebb0747ebeb48714d993 | 3,313 | package com.gempukku.swccgo.cards.set215.dark;
import com.gempukku.swccgo.cards.AbstractAlien;
import com.gempukku.swccgo.cards.GameConditions;
import com.gempukku.swccgo.cards.conditions.ArmedWithCondition;
import com.gempukku.swccgo.cards.effects.PeekAtTopCardsOfReserveDeckAndChooseCardsToTakeIntoHandEffect;
import ... | 51.765625 | 248 | 0.759734 |
3ba97ff00649871395661b65f7b92d38a2915533 | 2,176 | package com.maxml.timer.receivers;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.telephony.TelephonyManager;
import android.util.Log;
import com.maxml.timer.controllers.TableController;
import com.maxml.timer.entity.Line;
import com.maxml.timer... | 32.477612 | 73 | 0.715993 |
207443794e24ecbd49d1d88f4abd634f110616f5 | 669 | package com.eixampledb.core;
public class CoreServices {
public static final int STRING = 0;
public static final int NUM_TYPE = 1;
public String operation_increment(String key, String value){
if(value.contains(".")){
value = (Double.parseDouble(value)+1.) + "";
}else{
... | 22.3 | 64 | 0.55157 |
fcda2ee7cf51251f379b8bb66c988e9597ecf1ad | 4,724 | package com.classicmodels.repository;
import static jooq.generated.tables.Customer.CUSTOMER;
import static jooq.generated.tables.Customerdetail.CUSTOMERDETAIL;
import static jooq.generated.tables.Manager.MANAGER;
import static jooq.generated.tables.Office.OFFICE;
import static jooq.generated.tables.OfficeHasManager.OF... | 45.864078 | 108 | 0.622354 |
bf666b0db938faa4fc703261fa8b160bb966c86d | 281 | package Owl;
/*Сделано глупой совой*/
public class NightOwl {
public double owlHeight;
public NightOwl (double height)
{
this.owlHeight=height;
}
public NightOwl() {
}
public double getOwlHeight(){
return this.owlHeight;
}
}
| 12.217391 | 35 | 0.604982 |
0cd761ed6c649a33d87a7b1b8ced03d464e8b131 | 15,853 | package cn.laoshini.game.example.tank.service;
import java.util.ArrayList;
import java.util.LinkedList;
import java.util.List;
import javax.annotation.Resource;
import com.google.common.collect.Lists;
import org.springframework.stereotype.Service;
import cn.laoshini.dk.domain.msg.RespMessage;
import cn.laoshini.dk.... | 40.963824 | 120 | 0.620261 |
e0257e7ed71bce37cd616a84750188b21e6225b0 | 355 | package org.carlspring.strongbox.providers.io;
import org.carlspring.strongbox.providers.layout.LayoutFileSystemProvider;
import org.carlspring.strongbox.storage.repository.Repository;
/**
* @author sbespalov
*
*/
@FunctionalInterface
public interface LayoutFileSystemProviderFactory
{
LayoutFileSystemProvider... | 20.882353 | 74 | 0.822535 |
8db7ff3ee1c42b15e55200e9125f02a44024003c | 15,419 | /*
* Copyright 2011 Azwan Adli Abdullah
*
* 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... | 35.203196 | 112 | 0.652701 |
39619bdf1cea9bba29ddaec01990f48f3c28cfe8 | 4,036 | package io.github.batetolast1.springcms.controller;
import io.github.batetolast1.springcms.dto.ArticleDto;
import io.github.batetolast1.springcms.dto.AuthorDto;
import io.github.batetolast1.springcms.dto.CategoryDto;
import io.github.batetolast1.springcms.service.AuthorService;
import io.github.batetolast1.springcms.s... | 33.355372 | 146 | 0.703171 |
ff5fded5627be9d1de53e31b9d273c02be76295d | 274 | package com.example.security.core.enums;
import com.alibaba.fastjson.JSON;
/**
* @author: ygl
* @date: 2018/2/7-13:07
* @Description:
* 认证成功后的响应方式
*/
public enum LoginType {
/**
* 登录类型,重定向
*/
REDIRECT,
/**
* 登录类型,json格式
*/
JSON
}
| 12.454545 | 40 | 0.562044 |
c0631baf390e4d9a1c2c69e0d46cb0d88bd122c3 | 1,584 | package com.epam.edu.htm.core.service.impl;
import com.epam.edu.htm.core.dao.ContactDao;
import com.epam.edu.htm.core.service.ContactOperations;
import com.epam.edu.htm.model.Contact;
import java.util.List;
public class ContactService implements ContactOperations {
private static final String CONTACT_NOT_NULL_M... | 26.4 | 97 | 0.671717 |
237cd8c99b972a6df5c79a9166d25161ce7ae26b | 3,706 | package ca.ulaval.glo4002.theproject.domain.creditcard.value;
import org.junit.Test;
import static org.junit.Assert.*;
public class CreditCardNumberTest {
private final String A_CARD_NUMBER = "123456789";
private final String A_VISA_CARD_NUMBER = "4123456789";
private final String AN_EQUAL_CARD_NUMBER =... | 30.628099 | 96 | 0.72612 |
2fda0f329566b5a3c30b4f9c81c3f2b681f9c572 | 9,599 | package com.mkch.maikejia.activity;
import java.lang.ref.WeakReference;
import java.net.SocketTimeoutException;
import org.apache.http.conn.ConnectTimeoutException;
import org.json.JSONObject;
import android.app.Activity;
import android.app.ProgressDialog;
import android.content.Intent;
import android.os.Bundle;
imp... | 29.35474 | 117 | 0.7207 |
ae8c44f550914e1407100360e43294cc93e78067 | 2,756 | package groupnet.gui;
import groupnet.util.Settings;
import javafx.beans.property.BooleanProperty;
import javafx.fxml.FXML;
import javafx.geometry.Point2D;
import javafx.scene.Node;
import javafx.scene.control.CheckBox;
import javafx.scene.control.TextField;
import javafx.scene.shape.Rectangle;
import math.geom2d.poly... | 25.054545 | 107 | 0.698839 |
540f0880eab6f70083c2c80d948b283790d3bc6d | 324 | package com.glmis.service.scientificResearch;
import com.glmis.domain.scientificResearch.MonographRank;
import com.glmis.service.BasicService;
import org.springframework.stereotype.Service;
/**
* Created by inkskyu428 on 17-5-11.
*/
@Service
public class MonographRankService extends BasicService<MonographRank,Long>... | 24.923077 | 75 | 0.817901 |
42d6bb3b9167946fe72174f2bfe49788d2f6a42b | 1,424 | package me.memleak.pomorello.rest.apis;
import java.util.ArrayList;
import me.memleak.pomorello.models.TrelloBoard;
import me.memleak.pomorello.models.TrelloCard;
import me.memleak.pomorello.models.TrelloList;
import me.memleak.pomorello.rest.TrelloCallback;
import retrofit.http.GET;
import retrofit.http.POST;
import... | 27.384615 | 60 | 0.662921 |
6e68a707c6f0d3e94fc3a4c2f9bdf9a06d30898f | 4,090 | package org.smartregister.view.contract;
import org.joda.time.DateTimeUtils;
import org.joda.time.LocalDate;
import org.junit.Assert;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.robolectric.RobolectricTestRunner;
import java.util.Calendar;
@RunWith(RobolectricTestRunner.class)
public class ECC... | 29.214286 | 97 | 0.686308 |
0d74b9f21173b17e1f1e37928e78dc35188048f2 | 960 | package com.qiwi.billpayments.sdk.config;
import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;
public class PropertiesTestConfiguration implements TestConfiguration {
private final Properties properties = new Properties();
public PropertiesTestConfiguration() {
try {
... | 28.235294 | 108 | 0.686458 |
f1530cbedc3a3c48900e2305dfeb1fc59e2a4a8d | 3,964 | package test;
import static org.testng.Assert.assertFalse;
import static org.testng.Assert.assertTrue;
import org.openqa.selenium.By;
import org.testng.annotations.BeforeClass;
import org.testng.annotations.Parameters;
import org.testng.annotations.AfterClass;
import org.testng.annotations.Test;
import page.LoginPag... | 32.227642 | 107 | 0.70005 |
49f5e4eff4883815582f013913097e68062886ff | 1,266 | package com.pinhuba.core.pojo;
import com.pinhuba.common.annotation.Remark;
/**
* 数据库表名:HM_PROJECT_STANDARD
*/
public class HmProjectStandard extends BaseStringBean implements java.io.Serializable {
private String standardName;
private String projectId;
private Integer unitPrice;
private String rem... | 19.476923 | 87 | 0.656398 |
71ff2c8943c1f43d696455773962ec817fdb92be | 335 | /*
* generated by Xtext 2.14.0
*/
package ck2xtext.gfx.scoping;
/**
* This class contains custom scoping description.
*
* See https://www.eclipse.org/Xtext/documentation/303_runtime_concepts.html#scoping
* on how and when to use it.
*/
public class Ck2GfxScopeProvider extends AbstractCk2GfxScopePr... | 20.9375 | 85 | 0.713433 |
3829f9c116fd1ae726f3582d16ea4a2941b60aa8 | 1,680 | package ee.edio.garmin.runconfig;
import com.intellij.execution.Location;
import com.intellij.execution.actions.ConfigurationContext;
import com.intellij.execution.actions.RunConfigurationProducer;
import com.intellij.openapi.module.Module;
import com.intellij.openapi.util.Comparing;
import com.intellij.openapi.util.R... | 35 | 113 | 0.714286 |
900c2b1dd46e8363349ffc280d981865faea54fc | 1,166 | /*
* Copyright 2020 Erik Amzallag
*
* 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... | 21.2 | 80 | 0.705832 |
73326c2334ddd580783327a37a77a833baeef48e | 6,838 | package misaka.nemesiss.com.findlostthings.Activity;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.provider.Settings;
import android.util.Log;
import android.view.View;
import android.widget.Button;
import android.widge... | 29.222222 | 127 | 0.612314 |
03e8247452644f45bf50e254983928e9ed5e4d47 | 495 | package fish.payara.microservices.integrated.speaker;
import fish.payara.microservices.integrated.speaker.model.Speaker;
/**
* Operations that can be performed on a Speaker to change the value.
*/
public interface SpeakerBackend {
/**
* Add speaker to the list of speakers.
* @param speaker The Speake... | 23.571429 | 69 | 0.705051 |
4be9cc3e98635d7f16f85f2adcb54639cbc1ac9a | 9,700 | /*******************************************************************************
* Software Name : RCS IMS Stack
*
* Copyright (C) 2010-2016 Orange.
*
* 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 th... | 41.630901 | 100 | 0.621134 |
52b9ab6300d6e53c501e5af7a9a8acf4e8619a3e | 1,897 | /*
* Copyright © 2018 Apple Inc. and the ServiceTalk project 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 requi... | 31.616667 | 82 | 0.673695 |
b951817f0d8fa1f90f8910203abdf0e862bc23e0 | 358 | package com.fatihari.homework4.service;
import java.util.List;
import java.util.Optional;
import com.fatihari.homework4.entity.UserAccount;
public interface IUserAccountService
{
public List<UserAccount> findAll();
public UserAccount findById(Long id);
public UserAccount saveOrUpdate(UserAccount userAccount);
p... | 23.866667 | 58 | 0.812849 |
6b6e57d3eaaf20fd949d493cbc60deee235b4213 | 2,380 | /*
* Copyright (C) 2015 Karumi.
*
* 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 w... | 25.869565 | 75 | 0.721849 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.