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 |
|---|---|---|---|---|---|
55f87419177aa26a56706f29085829e32bba0811 | 2,891 | //Project name: Breath of the Bull
//Description: Breath of the Bull is an Android mobile application that provides
//Zen-based support and techniques such as mindfulness exercises, daily quotes
//from Zen masters, and guided meditation sessions to help alleviate stress and anxiety.
//Filename: MainActivity.java
//Desc... | 34.831325 | 97 | 0.677966 |
d17c7b032a496097aa4f61316be0609773deea33 | 4,738 | /*
* Copyright (C) 2015 fuwjax.org (info@fuwjax.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 app... | 34.583942 | 99 | 0.578092 |
c920e4a0decd515f89cf6c9760c51debafcd8acd | 8,533 | package com.google.mobilesafe.utils;
import android.content.ContentValues;
import org.json.JSONArray;
import org.json.JSONObject;
import java.util.Iterator;
import java.util.Map;
/**
* ============================================================
* Copyright:Google有限公司版权所有 (c) 2017
* Author: 陈冠杰
* Email: 815... | 34.269076 | 115 | 0.504981 |
9a481ca59889dbd8de1cae97989be2c87b6d2353 | 155 | /**
* <p>Copyright (R) 2014 我是大牛软件股份有限公司。<p>
*/
package com.woshidaniu.zxzx.aip;
public interface SqlCondition {
public String getSqlCondition();
}
| 14.090909 | 41 | 0.703226 |
e6067570f73a9056ee857f849d6f745ffe20206a | 4,480 | /* Copyright 2016 Samsung Electronics 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 law... | 40.727273 | 100 | 0.666741 |
21070b18c3cd35543994529d1a583d4b737c38b1 | 424 | package com.github.bottomlessarchive.loa.document.view.service;
import com.github.bottomlessarchive.loa.document.service.domain.DocumentType;
import org.springframework.http.MediaType;
import org.springframework.stereotype.Service;
@Service
public class MediaTypeCalculator {
public MediaType calculateMediaType(f... | 30.285714 | 77 | 0.813679 |
0345a8149896c4200417801913230df01b6b9f2a | 1,472 | import java.io.IOException;
import java.io.RandomAccessFile;
public class fxn {
void insert(int rno,String name,String course) //insert fxn
{
try {
RandomAccessFile strecords = new RandomAccessFile("record.txt", "rw");
if(strecords.getFilePointer()==0) //if empty write heading
{
strecords.w... | 24.533333 | 102 | 0.557745 |
1111bd12837b225044392e1d6d335bcf7a023881 | 588 | /**
* SPDX-License-Identifier: Apache-2.0
*/
package com.devonfw.tools.solicitor.common.content.web;
import com.devonfw.tools.solicitor.common.content.ContentFactory;
/**
* A {@link ContentFactory} for {@link WebContent}.
*/
public class WebContentFactory implements ContentFactory<WebContent> {
/**
* {@... | 18.375 | 70 | 0.647959 |
1d456fd5ce40674b64c44347db83f4ca940d9481 | 2,523 | /*
* Copyright LWJGL. All rights reserved.
* License terms: https://www.lwjgl.org/license
* MACHINE GENERATED FILE, DO NOT EDIT
*/
package org.lwjgl.glfw;
import org.lwjgl.system.*;
import org.lwjgl.system.libffi.*;
import static org.lwjgl.system.APIUtil.*;
import static org.lwjgl.system.MemoryUtil.*;
import stat... | 32.766234 | 196 | 0.688466 |
7a429ce8a40426b4abcca59846d15109cde9b1e8 | 1,465 | /*
* 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 restaurantsystem;
import java.io.File;
import java.io.IOException;
import java.nio.file.Files;
import java.util.logging.Level;... | 25.701754 | 87 | 0.608874 |
6d82924d67d59363e8308034ab8d9b80d13226ae | 992 | //package com.example.modeldemo.service.factory;
//
//import com.example.modeldemo.init.SpringContextHolder;
//import com.example.modeldemo.service.OutputService;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.context.ApplicationContext;
//
//import javax.annotation.PostCo... | 28.342857 | 98 | 0.671371 |
755e03d73d9688ef3879f40db2f66da834b5e06a | 2,087 | package oxygenfactory.com.sasit.module.oxygen.expressProviders.entity;
import com.google.gson.annotations.SerializedName;
public class ExpressProvidersInfo {
@SerializedName("ID") private Integer id;//
@SerializedName("NAME") private String name;//名称
@SerializedName("CODE") private String code;//编码
@SerializedNam... | 24.267442 | 71 | 0.727839 |
d6e68ab01dd3462e1e70c6543960b65724543a64 | 555 | package quick.pager.shop.listener.platform;
import lombok.extern.slf4j.Slf4j;
import org.springframework.cloud.stream.annotation.StreamListener;
import org.springframework.messaging.handler.annotation.Payload;
import org.springframework.stereotype.Component;
/**
* 发送短信消息监听器
*
* @author siguiyang
*/
@Component
@Sl... | 24.130435 | 66 | 0.751351 |
5af9461358c3293ae7641eae7aaef54a6bc5179e | 208 | package no.nav.registre.inntekt.exception;
public class UgyldigArbeidsforholdException extends RuntimeException {
public UgyldigArbeidsforholdException(String message) {
super(message);
}
}
| 23.111111 | 70 | 0.774038 |
5e889907b87c420b65ac391a9ee665cdd031578c | 1,046 | package fr.beapp.utils.android.graphics;
import android.content.Context;
import android.content.res.Resources;
import android.util.DisplayMetrics;
import android.util.TypedValue;
public class UiUtils {
private UiUtils() {
}
/**
* Return the ActionBar's height in pixel.
*
* @param context the... | 28.27027 | 113 | 0.736138 |
a412ab6910dad4fce7cbc2167cd36d1142632973 | 7,784 | /*
This file is part of Peers, a java SIP softphone.
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
any later version.
This program is di... | 37.603865 | 85 | 0.629368 |
e06885bf6634f2c0c511ed18783133038ed15ab3 | 522 | // Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3) annotate safe
package com.google.android.gms.internal.ads;
// Referenced classes of package com.google.android.gms.internal.ads:
// bmj, biz, bct, bjc
public interf... | 21.75 | 69 | 0.724138 |
e42a0cb35064750bf0b8cc7ebc797bf58df5f147 | 1,417 | /**
* Copyright 2014 LiveRamp
*
* 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... | 33.738095 | 78 | 0.750882 |
c04e6a14dd8ff40a0828c145b0c2c37c4433fd43 | 21,935 | package sclean2.com;
import anywheresoftware.b4a.BA;
import anywheresoftware.b4a.objects.ServiceHelper;
import anywheresoftware.b4a.debug.*;
public class starter extends android.app.Service{
public static class starter_BR extends android.content.BroadcastReceiver {
@Override
public void onReceive(android.cont... | 46.970021 | 285 | 0.719398 |
2c5e8490df82f7e950f436f258bf7bc961457231 | 435 | /*
* Copyright (c) Alexander <gasfull98@gmail.com> Chapchuk
* Project name: PinNote
*
* Licensed under the MIT License. See LICENSE file in the project root for license information.
*/
package org.bigtows.notebook;
/**
* Simple interface of credential
*/
public interface NotebookAccessible {
/**
* Ge... | 17.4 | 96 | 0.657471 |
35cb5011382d8a207ffe87df0ae8f766cc10e057 | 7,381 | package org.encryptor4j;
import java.io.BufferedInputStream;
import java.io.BufferedOutputStream;
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.io.RandomAccessFile;
import java.secur... | 23.809677 | 112 | 0.63677 |
7f79132b164b2490ca030958f77c7f402e9690c1 | 927 | /*
* WordController.java
*
* Copyright (C) 2018 [ A Legge Up ]
*
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file for details.
*/
package com.aleggeup.confagrid.content;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowi... | 24.394737 | 64 | 0.750809 |
b809d72411c05acde1cd09471f6e482b8d54219e | 912 | import java.io.*;
public class Main {
public static void main(String args[]) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader (System.in));
do{
String s = br.readLine();
System.out.println(rot(s));
} while (br.ready());
}
static Strin... | 26.057143 | 82 | 0.458333 |
4f9c41bd94d16b8f9a3959d59bc0b46847faaba1 | 6,720 | import static org.junit.Assert.*;
import static org.junit.matchers.JUnitMatchers.*;
import static org.hamcrest.CoreMatchers.*;
import java.sql.Connection;
import java.sql.SQLException;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.List;
import model.Car;
import mod... | 33.103448 | 181 | 0.707887 |
e2d267c6f55253b1041c3b126e5f1ddfcdcc5ffe | 219 | package xdean.reflect.getter.internal.util;
import java.util.concurrent.Callable;
@FunctionalInterface
public interface FuncE0<R, E extends Exception> extends Callable<R> {
@Override
R call() throws E;
}
| 21.9 | 70 | 0.744292 |
214761f5f9b09c508abf20615ce80f330dfa72d4 | 1,839 | package ua.arlabunakty.examples.jackson.serializer;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import org.junit.jupiter.api.Test;
import ua.arlabunakty.examples.jackson.model.Person;
imp... | 30.65 | 118 | 0.699837 |
ceb5594c452f5f882b70f7f02f855e33cc08540a | 1,722 | The central classes in Java for working with Date and Time are Date, DateFormat and Calendar.
Date and Calendar classes are present in java.util package, while DateFormat is present in java.text package.
Starting with Java version 8, many new classes and enhancements were introduced for handling date and time, these ... | 59.37931 | 282 | 0.787456 |
61ebeecbc3e4bb7f4b1fb06e2d66c2e9a2d6cbfa | 3,514 | package org.apereo.cas.web;
import org.apereo.cas.configuration.model.support.captcha.GoogleRecaptchaProperties;
import org.apereo.cas.services.RegisteredServiceProperty;
import org.apereo.cas.services.ServicesManager;
import org.apereo.cas.util.RegexUtils;
import org.apereo.cas.web.support.WebUtils;
import lombok.Re... | 50.2 | 161 | 0.7214 |
3e13640f6bbec93bb6bddc3ff7fbeec66cce6d0d | 103 | package br.com.zupacademy.haline.proposta.carteira;
public enum TipoCarteira {
PAYPAL,
SAMSUNGPAY
}
| 14.714286 | 51 | 0.796117 |
361def3175b8a96975e57e248d8b3f153e91508a | 3,437 | /*
* 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
* distributed under t... | 26.438462 | 79 | 0.60867 |
b209084dc68c4048a8d896b3c6199b9dbb723c17 | 311 | package models.headout;
import com.google.gson.annotations.SerializedName;
/**
* Created by madki on 17/06/16.
*/
public class Currency {
public String code;
@SerializedName("currencyName")
public String name;
public String symbol;
public String localSymbol;
public int precision;
}
| 19.4375 | 50 | 0.713826 |
9a9d3ec502d941cec152e95911d3ed62929c2276 | 2,774 | package exercise;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
public class Fractional_Knapsack {
public static void main(String[] args) throws IOException {
BufferedReader reader =... | 28.597938 | 103 | 0.569214 |
79481b693627f939928343e17c74ad8945d956c2 | 1,891 | package de.metas.jmx;
import java.util.Arrays;
import java.util.Properties;
import org.adempiere.ad.migration.logger.MigrationScriptFileLoggerHolder;
import org.adempiere.ad.trx.api.ITrxManager;
import org.adempiere.util.trxConstraints.api.IOpenTrxBL;
import org.compiere.util.Env;
import org.springframework.jmx.expor... | 23.6375 | 135 | 0.769963 |
fd0868184526582e32a6b84cad059f786d3d66ef | 219 | package controller.character.helpers;
/**
* Classes in this package contain constants to determine a character's starting
* attributes, and distributable points (like money or skills).
* @author Daradics Levente
*/ | 31.285714 | 80 | 0.771689 |
82738baf4504a6ea81b137f55c4866fef1da0e7f | 1,973 | import java.util.Scanner;
public class Fetchingfromarray {
public static void main(String[] args)
{
Scanner sc = new Scanner(System.in);
// int rollnumber[] = new int[5];
// String name[] = new String[5];
// long phno[] = new long[5];
// for(int i=0; i<5; i++)
// {
// System.out... | 20.768421 | 99 | 0.535732 |
a8be468f23c0be5eda8bd19898d601951ac260e3 | 5,458 | /*******************************************************************************
* Copyright (C) 2017, Paul Scerri, Sean R Owens
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Red... | 34.544304 | 101 | 0.59399 |
e374da2c354257707208a234d718bf19b13a7877 | 4,926 | /**
* Copyright (C) 2011 - present by OpenGamma Inc. and the OpenGamma group of companies
*
* Please see distribution for license.
*/
package com.opengamma.analytics.financial.forex.definition;
import static org.testng.AssertJUnit.assertEquals;
import static org.testng.AssertJUnit.assertFalse;
import org.testng.a... | 45.192661 | 142 | 0.784612 |
2d29df15e9149ffa3290ecbde401863f9add980f | 2,423 | package com.anair.demo.component.movieratingsplitter.service;
import com.anair.demo.component.movieratingsplitter.model.Film;
import com.anair.demo.component.movieratingsplitter.model.FilmRating;
import com.anair.demo.component.movieratingsplitter.model.Movie;
import com.anair.demo.component.movieratingsplitter.util.J... | 39.080645 | 109 | 0.678085 |
541dd49f5181ea2fb55ae96643daab37ac5b4b44 | 4,005 | package com.example.hajken.helpers;
import android.content.Context;
import android.graphics.PointF;
import android.util.AndroidRuntimeException;
import android.util.Log;
import java.lang.reflect.Array;
import java.util.ArrayList;
public class MathUtility {
private static final String TAG = "MathUtility";
pr... | 27.62069 | 126 | 0.571536 |
04b144d9fc4db8ab7ecb45b27200bc7f7b4530a2 | 1,001 | package commandline.language.parser.specific;
import commandline.exception.ArgumentNullException;
import commandline.language.parser.ArgumentParseException;
import commandline.language.parser.ArgumentParser;
import org.jetbrains.annotations.NotNull;
/**
* User: gno, Date: 09.07.13 - 10:46
*/
public class BooleanArg... | 28.6 | 113 | 0.746254 |
e408fc1ca2fa4a323002fc444ec59be24270e9cd | 4,835 | package com.example.betterbuy;
import android.app.ProgressDialog;
import android.content.Intent;
import android.os.Bundle;
import android.text.TextUtils;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.Toast;
import androidx.annotation.NonNull;
import andr... | 39.308943 | 148 | 0.637435 |
6500ae8c015eba23aa218e81f0bab08d2ccc5710 | 1,362 | /*
https://leetcode.com/problems/largest-rectangle-in-histogram/description/
Given n non-negative integers representing the histogram's bar height where the width of each bar is 1, find the area of largest rectangle in the histogram.
Above is a histogram where width of each bar is 1, given height = [2,1,5,6,2,3].... | 23.482759 | 156 | 0.490455 |
86f4ad8c9b9b6edbf3344ffba809df633c46d725 | 1,232 | import java.util.*;
public class RemoveInRangeSplit{
public static void main(String[] args){
Scanner console = new Scanner(System.in);
System.out.print("\nPlease enter an alphabetical sequence of strings separated\n"+ "by spaces. The end of the sequence must be signified using\n"+ "the sentinel value lastString, f... | 37.333333 | 209 | 0.671266 |
86cba6352e2a0f0d2ceeae7fd20f5f28e048e3bf | 1,835 | /*
* 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 ... | 45.875 | 117 | 0.782016 |
2bc9bc6c2f1e6ff127e5247e34fe64ccd72b8571 | 3,327 | package com.kaba.planner.entity;
import java.io.Serializable;
import java.util.Collection;
import java.util.Objects;
import javax.persistence.Basic;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Gener... | 24.463235 | 95 | 0.658251 |
529f4d023099db03e4f730b4fe963f20c34b525f | 2,921 | package com.sequenceiq.cloudbreak.cloud.aws.connector.resource;
import static org.mockito.ArgumentMatchers.any;
import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.times;
import static org.mockito.Mockito.verify;
import static org.mockito.Mockito.when;
import static org.mockito.MockitoAnnotations... | 36.974684 | 115 | 0.772681 |
1a3ca5f4feb8a041576de109b3a75dbfd1159177 | 1,703 | /**
* 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... | 38.704545 | 105 | 0.736348 |
527042576c8a2b70a648f3b2b6ad7f9274f67947 | 2,903 | /*
* Copyright 2012-2019 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | 46.079365 | 108 | 0.815363 |
9f4cfbc7e2e772bb43c2be5fcfb40e5a1c230121 | 866 | package com.it.vo;
import java.util.List;
public class FlowChartVO {
private String code;
//类型名称
private String name;
//横坐标
private List<String> x;
//纵坐标-流量
private List<Long> y;
public FlowChartVO() {
super();
// TODO Auto-generated constructor stub
}
public FlowChartVO(String code, String nam... | 10.691358 | 77 | 0.616628 |
28e172ae8adf40909834e57f496720a90efca23d | 891 | package de.webis.sigir2021;
import java.util.List;
import org.approvaltests.Approvals;
import org.junit.Test;
import de.webis.sigir2021.App;
import de.webis.sigir2021.trec.JudgedDocuments;
import net.sourceforge.argparse4j.inf.Namespace;
public class AppArgsParsingTest {
@Test
public void testWeb2009WithTopic34()... | 21.214286 | 61 | 0.721661 |
7c59a92be4146d6225e61fa9344a02dacb5f96d0 | 6,456 | /**
* PostFinance Checkout SDK
*
* This library allows to interact with the PostFinance Checkout payment service.
*
* 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.or... | 30.027907 | 178 | 0.701053 |
c334825d01a647451be887330244244f20ea483c | 1,249 | package com.sorakasugano.pasteboard;
import java.util.*;
import java.text.*;
import redis.clients.jedis.*;
public class Setter extends Writer {
public String owner = null;
public Map<String, String> object = null;
public boolean replace = true;
private static String ISOString(Date date) {
Date... | 31.225 | 78 | 0.580464 |
afe41427e38e44ce356b6f77a6f87e70c8610afc | 1,815 | package x.mvmn.jhexedit.gui;
import java.awt.datatransfer.DataFlavor;
import java.awt.datatransfer.Transferable;
import java.io.File;
import java.util.Collection;
import java.util.Iterator;
import java.util.function.Consumer;
import javax.swing.JComponent;
import javax.swing.TransferHandler;
public class FileDropTra... | 29.274194 | 100 | 0.741047 |
a3d585799079c48dd3e6efeae071e3e9e52b8dd1 | 392 | package consulo.java.library;
import com.intellij.ide.highlighter.JavaClassFileType;
import com.intellij.openapi.roots.OrderRootType;
import com.intellij.openapi.roots.libraries.ui.FileTypeBasedRootFilter;
public class JavaJarRootFilter extends FileTypeBasedRootFilter
{
public JavaJarRootFilter()
{
super(OrderRoo... | 28 | 82 | 0.829082 |
1465e62a3a3dc464c70220870a3f32b1caf3ba39 | 10,289 | package jp.sourceforge.ea2ddl.dao.bsentity.dbmeta;
import java.util.List;
import java.util.Map;
import org.seasar.dbflute.Entity;
import org.seasar.dbflute.dbmeta.AbstractDBMeta;
import org.seasar.dbflute.dbmeta.info.*;
import org.seasar.dbflute.helper.StringKeyMap;
import jp.sourceforge.ea2ddl.dao.exentity.... | 65.955128 | 143 | 0.462824 |
ade280a03800d524dab4bb24e3df9cb3731ba284 | 3,480 | /* -*- mode: Java; c-basic-offset: 2; indent-tabs-mode: nil; coding: utf-8-unix -*-
*
* Copyright © 2017-2018 microBean.
*
* 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:/... | 26.165414 | 121 | 0.684483 |
016218e952ad34ddeee002ea2c8dbcd742a15188 | 18,878 | begin_unit|revision:0.9.5;language:Java;cregit-version:0.0.1
begin_comment
comment|/* * 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... | 13.552046 | 813 | 0.807607 |
e36708e7f8a2fc1a6b59b6865273957dd192cf09 | 2,078 | package it.linksmt.cts2.plugin.sti.db.commands.search;
import java.util.List;
import org.hibernate.Session;
import org.hibernate.criterion.MatchMode;
import org.hibernate.criterion.Order;
import org.hibernate.criterion.Restrictions;
import it.linksmt.cts2.plugin.sti.db.hibernate.HibernateCommand;
import it.linksmt.c... | 36.45614 | 109 | 0.790183 |
365bb12ee3e8cf870434f5cb6164d2b6c3ea18c9 | 5,258 | package seedu.address.testutil;
import static seedu.address.logic.parser.CliSyntax.PREFIX_DATE;
import static seedu.address.logic.parser.CliSyntax.PREFIX_DURATION;
import static seedu.address.logic.parser.CliSyntax.PREFIX_ENDAMOUNT;
import static seedu.address.logic.parser.CliSyntax.PREFIX_GAMETYPE;
import static seed... | 42.403226 | 105 | 0.597946 |
2a103c36b42e435466d501c5c4dbcd70a5e3cad3 | 428 | package com.totvs.guavaworkshop.coffeeandcode.strings.joiner.examples;
import com.google.common.base.Joiner;
public class Example05 {
public static void main(String[] args) {
String[] operacoes = { "1000", "1002", null, "1005", "1008" };
String where = Joiner.on(", ").skipNulls().join(operacoes);
... | 21.4 | 71 | 0.630841 |
0abb760c04637b647f7360c5c919319e06813872 | 3,537 | package com.cs18.anabeesh.salem.ui.SendAnswer;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.support.v7.widget.Toolbar;
import android.widget.ImageView;
import android.widget... | 35.727273 | 114 | 0.736783 |
8c597f132762e4c0633eff9ed0997c2dfff5f4d6 | 1,101 | package com.epam.cisen.jenkins;
import com.epam.cisen.core.api.dto.ConfigDTO;
public class JenkinsConfig extends ConfigDTO {
private String baseURL;
private String login;
private String pass;
private String jobName;
public JenkinsConfig() {
super("Jenkins", BaseType.CI);
}
publi... | 19.660714 | 85 | 0.603996 |
b97b34ff7b6b8d1c0c5885a364211dff2baf0612 | 498 | package ch.itenengineering.relations.r7.ejb;
import javax.ejb.Remote;
@Remote
public interface R7ManagerRemote {
public void clear();
public void book(int studentId, int courseId);
public void cancel(int studentId, int courseId);
public Object persist(Object entity);
public Object merge(Object entity);
@S... | 19.92 | 52 | 0.767068 |
2bcc8fb97c1d5d76e01113d86fdabe375987abce | 11,639 | /*
* This software is distributed under following license based on modified BSD
* style license.
* ----------------------------------------------------------------------
*
* Copyright 2003 The Nimbus Project. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
*... | 32.330556 | 106 | 0.537847 |
993d4c313b3b89e704bcbc598dd33ab8b05a1c63 | 459 | package com.saas.training.request;
import com.saas.pub.QueryParam;
import com.zpsenior.graphql4j.annotation.Input;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
@Data
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = false)
@Input("QueryTeacherParam")
public class QueryTeacher... | 18.36 | 51 | 0.782135 |
ea0355835e82ccbd1c99d3046b98c6976d02e674 | 4,226 | package com.bosssoft.hr.train.j2se.basic.example.socket;
import lombok.extern.slf4j.Slf4j;
import java.io.IOException;
import java.net.InetSocketAddress;
import java.nio.ByteBuffer;
import java.nio.channels.SelectionKey;
import java.nio.channels.Selector;
import java.nio.channels.ServerSocketChannel;
import java.nio.... | 37.732143 | 98 | 0.471368 |
d1c0485065c3e015fd5575cade3edff4334bb1e8 | 2,640 | package org.infinispan.persistence.cloud.configuration;
import static org.testng.Assert.assertEquals;
import static org.testng.Assert.assertTrue;
import java.util.Properties;
import org.infinispan.configuration.cache.Configuration;
import org.infinispan.configuration.cache.ConfigurationBuilder;
import org.testng.ann... | 42.580645 | 108 | 0.679924 |
38debf2b85347f6b91c61d4dce304115b5f6f492 | 144 | package com.springboot.service;
import com.springboot.entity.Role;
public interface RoleService {
public Role findRoleById(long roleId);
}
| 14.4 | 39 | 0.791667 |
bdec19fca4ff9eb05330308a2e29d09e6b116185 | 4,824 | package py.com.sodep.mobileforms.api.entities.forms.elements;
import java.util.ArrayList;
import java.util.List;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence... | 23.881188 | 97 | 0.748134 |
03d38eab9a9aefb80cdc387e2d6a62f6d273cd1e | 1,294 | package ejemplo2;
import java.util.concurrent.locks.Condition;
import java.util.concurrent.locks.Lock;
import java.util.concurrent.locks.ReentrantLock;
// La clase Paso define un cerrojo con un Condition para la variable booleana cerrado
// que es comprobada por un proceso.
// Si vale false(abierto) el proceso puede ... | 20.870968 | 95 | 0.502318 |
e2182e32ccd0badd86f735e8ceccfe8ec07f4c22 | 1,675 | package com.twu.biblioteca.servicetest;
import com.twu.biblioteca.entity.UserEntity;
import com.twu.biblioteca.service.UserService;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import java.util.ArrayList;
import java.util.List;
import static org.junit.Assert.assertEquals;
impor... | 26.171875 | 80 | 0.648955 |
b526796bf752a95e35cf587184814cfd6005eeb5 | 4,173 | package org.bian.dto;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.bian.dto.CRCustomerEligibilityAssessmentEvaluateOutputModelCustomerEligibilityAssessmentIns... | 36.605263 | 216 | 0.823628 |
37ce12563025c8ff90fb53cb146474ded0168652 | 3,979 | /**
*/
package com.github.lbroudoux.dsl.eip.impl;
import com.github.lbroudoux.dsl.eip.EipPackage;
import com.github.lbroudoux.dsl.eip.Metadata;
import com.github.lbroudoux.dsl.eip.Metadatable;
import java.util.Collection;
import org.eclipse.emf.common.notify.NotificationChain;
import org.eclipse.emf.common.util.EL... | 26.006536 | 127 | 0.621764 |
ef743c46c03482f4767e098e4b99e1f9462f2539 | 233 | package me.coopersully.Cursecraft.blocks.AdvancedWorkbench;
import com.google.gson.JsonObject;
public class AdvancedWorkbenchJSONFormat {
JsonObject inputA;
JsonObject inputB;
String outputItem;
int outputAmount;
}
| 21.181818 | 59 | 0.785408 |
a2075bf4a96d87501faa230491dcf63713a14e9f | 808 | package io.graversen.rust.rcon.objects.rust;
import com.google.gson.annotations.SerializedName;
public class ServerChat implements IChat
{
@SerializedName("Message")
private String message;
@SerializedName("UserId")
private String steamId;
@SerializedName("Username")
private String displayNa... | 16.833333 | 50 | 0.639851 |
aa51bec724f42049be7aee6edbe239efbb64e4ed | 3,786 | package kr.co.daou.sdev.altong.controller.admin;
import java.util.ArrayList;
import java.util.List;
import java.util.Set;
import javax.inject.Provider;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import o... | 26.851064 | 132 | 0.745114 |
8659f6f66eda77ed49206808c0f62ba9ceb3f050 | 1,216 | package Javis;
import java.io.IOException;
import java.net.ServerSocket;
import java.util.ArrayList;
public class Server {
ServerSocket server;
ArrayList<ChatServer> Chats;
int server_number;
Server() {
server_number = 0;
Chats = new ArrayList<ChatServer>();
try {
... | 22.943396 | 62 | 0.502467 |
f00c54f42c034f1d8f3753044d6d6ab498918357 | 13,532 | package cz.geek.fio.model;
import lombok.Data;
import javax.xml.bind.annotation.*;
import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
import javax.xml.datatype.XMLGregorianCalendar;
import java.math.BigDecimal;
import java.math.BigInteger;
... | 28.791489 | 94 | 0.610922 |
9bcc7472b205780888da0154468ea0af332f862c | 194 | package github.banana.design.factory;
/**
* 4.2 自行车产品工厂类
*/
public class BikeFactory implements TransFactory {
@Override
public Trans getTrans() {
return new Bike();
}
}
| 14.923077 | 50 | 0.649485 |
2fde1ad6ff3f90f6323005efb80739d81bf4542f | 753 | package com.herbertgao.telegram.database.service;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.herbertgao.telegram.database.entity.Lunar;
import com.herbertgao.telegram.database.mapper.LunarMapper;
import org.springfr... | 27.888889 | 67 | 0.747676 |
941623ac7ca6d0224c2ed300f7b3f1a68cf9c0ea | 2,072 | package ru.geracimov.otus.spring.lighthouse.managementserver.feign;
import com.fasterxml.jackson.databind.DeserializationFeature;
import com.fasterxml.jackson.databind.ObjectMapper;
import feign.Response;
import feign.codec.ErrorDecoder;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
impo... | 33.967213 | 97 | 0.653958 |
ce4bdbfd2411ec8e6cbdc3222181f0eed318eddf | 467 | package com.example.dealball.main.plus;
import com.example.dealball.main.base.BaseUiOperate;
import com.example.dealball.main.base.BaseView;
import java.util.Date;
public interface PlusContact {
interface View extends BaseUiOperate {
void showToast(String meg);
}
interface Presenter{
voi... | 24.578947 | 147 | 0.745182 |
acd491fe280b872400ea68b560ee69fb5b648bfa | 848 | package cn.toside.music.mobile.cache;
import android.os.AsyncTask;
import com.facebook.react.bridge.Promise;
// https://github.com/midas-gufei/react-native-clear-app-cache/tree/master/android/src/main/java/com/learnta/clear
public class CacheClearAsyncTask extends AsyncTask<Integer,Integer,String> {
public CacheMo... | 24.941176 | 114 | 0.740566 |
37aed02ef0c7bfafdda78fe3b3241ee9d99a1dff | 5,685 | package com.westlake.air.propro.algorithm.peak;
import com.westlake.air.propro.domain.bean.analyse.*;
import com.westlake.air.propro.domain.bean.score.IonPeak;
import com.westlake.air.propro.domain.bean.score.PeptideFeature;
import com.westlake.air.propro.domain.bean.score.PeakGroup;
import com.westlake.air.propro.dom... | 41.801471 | 184 | 0.697801 |
94be929a88e5bd243717d31c9c0fd3962bc0b236 | 4,660 | package com.github.zkoalas.jwts;
import com.github.zkoalas.jwts.annotation.Logical;
import com.github.zkoalas.jwts.annotation.RequiresPermissions;
import com.github.zkoalas.jwts.annotation.RequiresRoles;
import com.github.zkoalas.jwts.exception.ErrorTokenException;
import com.github.zkoalas.jwts.exception.ExpiredToken... | 38.833333 | 121 | 0.653863 |
b15b612b152ca8da295019f28566da72a54ea695 | 6,037 | package gov.usgs.traveltime.tables;
import gov.usgs.traveltime.AllBrnRef;
import gov.usgs.traveltime.AuxTtRef;
import gov.usgs.traveltime.ModConvert;
import gov.usgs.traveltime.TtStatus;
import java.io.IOException;
import java.util.ArrayList;
/**
* Travel-time table generation driver.
*
* @author Ray Buland
*/
pu... | 31.941799 | 97 | 0.632765 |
dc3abbec3c29965eb4d94699a8308fa96ba09219 | 5,186 | /*******************************************************************************
* Copyright (c) 2017 IBM Corp.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/li... | 28.032432 | 95 | 0.662553 |
920986abc2ca03e953859f19d99818b1704f737d | 3,211 | /*
* Licensed by the author of Time4J-project.
*
* See the NOTICE file distributed with this work for additional
* information regarding copyright ownership. The copyright owner
* licenses this file to you under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance
* w... | 32.765306 | 83 | 0.626596 |
594dce5ac6b20181b386b12a4da7cde6c2210416 | 5,782 | package com.bzh.floodserver.service.serviceImpl;
import com.bzh.floodserver.mapper.RiverMapper;
import com.bzh.floodserver.model.mapper.*;
import com.bzh.floodserver.service.RiverService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.text.Par... | 28.482759 | 104 | 0.687997 |
9bc148fe5d9e067cf77305283c95f94e0682799e | 5,853 | package GUI;
import SmartGraph.Edge;
import SmartGraph.Model;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Map;
import javax.swing.JFrame;
//The 'main' class so to speak
public class RPICampousPathsMain ex... | 34.22807 | 105 | 0.729028 |
3bb14a1c6be799c782005f9a7a49fe7a73179bac | 3,588 | package vn.fintechviet.content.model;
import java.util.Date;
import javax.persistence.*;
/**
* Created by tungn on 9/12/2017.
*/
@Entity
@Table(name = "news")
public class News {
private long id;
private String title;
private String shortDescription;
private String link;
private String imageLin... | 24.916667 | 119 | 0.606466 |
6c47b5d480a55eac4f313a3e3331a781eccbc827 | 2,669 | /*
* Copyright 2020 ART-Framework Contributors (https://github.com/Silthus/art-framework)
*
* 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-... | 44.483333 | 118 | 0.730611 |
edfcd651c996abd480ee0ed6b07c7b53fdf23581 | 11,784 | package org.apache.bookkeeper.bookie;
/*
*
* 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 Lic... | 37.291139 | 118 | 0.646979 |
572229d96ec3e54cfd285d98a1cd36cd7f59399c | 273 | package com.sh.vhr.mapper;
import com.sh.vhr.model.Role;
import org.apache.ibatis.annotations.Mapper;
import java.util.List;
@Mapper
public interface RoleMapper{
List<Role> getAllRoles();
Integer addRole(Role role);
Integer deleteRoleById(Integer roleId);
} | 19.5 | 44 | 0.754579 |
0e473c9f9867e7c9b1f9189da228c9dc527f88d7 | 116,120 | /*
* Copyright (C) 2006 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | 36.344288 | 114 | 0.546693 |
b4cca5fbdff4137f1f5c653a6afc6b07879aa810 | 1,369 | /*
* Copyright (c) 2015-2020 Vladimir Schneider <vladimir.schneider@gmail.com>, all rights reserved.
*
* This code is private property of the copyright holder and cannot be used without
* having obtained a license or prior written permission of the copyright holder.
*
* Unless required by applicable law or agreed... | 37 | 124 | 0.739226 |
0aaa684b0534025d3400dcdd0bf0d424590bbdf3 | 1,747 | // Copyright 2000-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.ide.errorTreeView;
import com.intellij.icons.AllIcons;
import com.intellij.openapi.vfs.VirtualFile;
import com.intellij.ui.CustomizeColoredTreeCellRenderer;
... | 42.609756 | 140 | 0.647396 |
bc7241f597ddd6a965661f86924ccd992440c6ed | 9,056 | /***************************************************************************
* JVerbnet v1.2.0
* Copyright (c) 2012 Massachusetts Institute of Technology
*
* JVerbnet is distributed under the terms of the Creative Commons
* Attribution 3.0 Unported License, which means it may be freely used for
* all pur... | 30.594595 | 151 | 0.64587 |
53cd6de2e41f02161d15c7a21377b494837e0b29 | 388 | /**
*
*/
package io.sipstack.transaction;
/**
* Represents all the states a transaction may be in, Invite and Non-Invite transactions
* alike. Of course, a Non-Invite transaction has less states that an Invite transaction.
*
* @author jonas@jonasborjesson.com
*/
public enum TransactionState {
INIT, CALLING... | 25.866667 | 89 | 0.737113 |
29affd2071dbe9b1993be872dc15429c6fb1e225 | 2,142 | package com.yt.comment.util;
import java.io.File;
import java.io.FileInputStream;
import java.nio.MappedByteBuffer;
import java.nio.channels.FileChannel;
import java.security.MessageDigest;
/**
* Description:MD5加密工具类
*
* @author:Tong
*/
public class MD5Util {
private static final char DIGITS[] = {'0','1','2',... | 31.043478 | 93 | 0.48366 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.