blob_id stringlengths 40 40 | language stringclasses 1
value | repo_name stringlengths 5 132 | path stringlengths 2 382 | src_encoding stringclasses 34
values | length_bytes int64 9 3.8M | score float64 1.5 4.94 | int_score int64 2 5 | detected_licenses listlengths 0 142 | license_type stringclasses 2
values | text stringlengths 9 3.8M | download_success bool 1
class |
|---|---|---|---|---|---|---|---|---|---|---|---|
b19ba0ca8cb6cd1426ae1b5601013cf5cfdce7f0 | Java | flywind2/joeis | /src/irvine/oeis/a024/A024507.java | UTF-8 | 614 | 2.890625 | 3 | [] | no_license | package irvine.oeis.a024;
import irvine.math.LongUtils;
import irvine.math.z.Z;
import irvine.oeis.Sequence;
/**
* A024507 Numbers that are the sum of 2 distinct nonzero squares (with repetition).
* @author Sean A. Irvine
*/
public class A024507 implements Sequence {
private long mN = 4;
private long mC = 0;
... | true |
1dd18200f94c71d6f2f0255f2000639bae986700 | Java | janebabra/speedment | /src/test/java/com/speedment/core/config/model/parameters/FieldStorageTypeTest.java | UTF-8 | 2,817 | 2.234375 | 2 | [
"Apache-2.0"
] | permissive | /**
*
* Copyright (c) 2006-2015, Speedment, 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 requ... | true |
6fdacce6667c4a1d2b8df7ff8faf575c6714d295 | Java | zhao-qc/zstack | /sdk/src/main/java/org/zstack/sdk/InstallPathRecycleInventory.java | UTF-8 | 2,564 | 1.828125 | 2 | [
"Apache-2.0"
] | permissive | package org.zstack.sdk;
public class InstallPathRecycleInventory {
public long trashId;
public void setTrashId(long trashId) {
this.trashId = trashId;
}
public long getTrashId() {
return this.trashId;
}
public java.lang.String resourceUuid;
public void setResourceUuid(j... | true |
02515a3b06e08d97c1114aa71114044aea92d0eb | Java | sanket-briozing/aspen-api-automation | /src/test/java/com/briozing/automation/base/InitializeTestSuite.java | UTF-8 | 1,310 | 2.171875 | 2 | [] | no_license | package com.briozing.automation.base;
import com.briozing.automation.common.Configuration;
import com.briozing.automation.factory.Log4JFactory;
import com.briozing.automation.utils.AppAssert;
import com.briozing.automation.utils.MainUtils;
import org.testng.annotations.AfterSuite;
import org.testng.annotations.BeforeS... | true |
b88d9d4507dc117db9a4618f1137d22f94b169cd | Java | aramperes/Cleanstone | /src/main/java/rocks/cleanstone/net/netty/pipeline/inbound/InboundPacketHandler.java | UTF-8 | 1,669 | 2.296875 | 2 | [
"MIT"
] | permissive | package rocks.cleanstone.net.netty.pipeline.inbound;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import io.netty.channel.ChannelHandlerContext;
import io.netty.channel.ChannelInboundHandlerAdapter;
import io.netty.handler.codec.DecoderException;
import io.netty.util.AttributeKey;
import rocks.cleanstone.... | true |
84061f2a759b0d1b54e45611754ef6017dfe80c1 | Java | xiaobingcom/ms_cloud | /ms-module/ms-notice/src/main/java/com/ms/notice/controller/NoticeController.java | UTF-8 | 2,198 | 2.09375 | 2 | [] | no_license | package com.ms.notice.controller;
import com.ms.notice.server.WebSocketServer;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestP... | true |
115b872986f1c8bd4ba583d035824f7cfedab816 | Java | automenta/java-unidu-pire | /src/main/java/de/unidu/is/util/XMLUtilities.java | UTF-8 | 13,558 | 1.984375 | 2 | [
"Apache-2.0"
] | permissive | /*
Copyright 2000-2005 University Duisburg-Essen, Working group "Information Systems"
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... | true |
5428b87c3f28d11c32e77850473ee32cc4cd7a99 | Java | teobryer/ENCHERES_TROC_G1 | /src/app/bo/Articles_Vendus.java | UTF-8 | 568 | 1.609375 | 2 | [] | no_license | package app.bo;
import lombok.Data;
import java.time.LocalDate;
import java.util.List;
@Data
public class Articles_Vendus {
private int no_article;
private String nom_article;
private String description;
private LocalDate date_debut_encheres;
private LocalDate date_fin_encheres;
private int ... | true |
9b9f0ed98096693621f695a7ae7213c7288b4b22 | Java | Shreenikethan/Playground | /Dept Repay/Main.java | UTF-8 | 196 | 1.914063 | 2 | [] | no_license | #include<iostream>
using namespace std;
int main()
{
int x,y,r;
cin>>x>>y>>r;
int roi=x*y*r/100;
cout<<roi<<"\n";
cout<<roi+x<<"\n";
cout<<roi*0.02<<"\n";
cout<<(roi+x)-(roi*0.02);
} | true |
edfef1857abcfd5165e6a912c3bf029c2595be2d | Java | fzheng/codejam | /practice/FederalTax.java | UTF-8 | 4,145 | 2.65625 | 3 | [
"MIT"
] | permissive | public class FederalTax {
private float grossIncome;
private float withheld;
private float[] bracket;
private float[] percentage;
private float standardDeductible;
private float personalExemption;
private float deductible;
private float childCredit;
private float amtThres;
private float adjustedGros... | true |
0ea78a10193c1e80ab0505310926d2ef6c9475e1 | Java | kasiadyduch/praca-dyplomowa | /src/main/java/app/controller/WebController.java | UTF-8 | 377 | 1.851563 | 2 | [] | no_license | package app.controller;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
@Controller
public class WebController {
@GetMapping(value = "/")
public String getIndex() {
return "index.html";
}
@GetMapping(value = "/private")
public ... | true |
ffbc563252decc96d5a651763d2d59ef92850fbd | Java | Gaurav123/WorkoutApp | /app/src/main/java/com/example/workoutapp/excersisefrag.java | UTF-8 | 1,089 | 2.0625 | 2 | [] | no_license | package com.example.workoutapp;
import android.content.Intent;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import android.widget.ImageButton;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable... | true |
a69a32070fb0f6e72d53c17955c57ba267bf6b04 | Java | SergShapoval/aop | /src/main/java/com/example/aop/service/UserService.java | UTF-8 | 358 | 2.046875 | 2 | [] | no_license | package com.example.aop.service;
import com.example.aop.dto.AddNewUserDTO;
import com.example.aop.dto.UpdateExistingUserDTO;
import com.example.aop.model.User;
public interface UserService {
User add(AddNewUserDTO addNewUserDTO);
User get(int id);
User delete(int id);
User update(int id, UpdateExis... | true |
80cee8d1a9b0b86ef3f5f33fff1f763c22c0ad2a | Java | vinhanguyen/guestbook-webapp | /src/main/java/dao/MessageDao.java | UTF-8 | 197 | 1.929688 | 2 | [] | no_license | package dao;
import java.util.List;
import domain.Message;
public interface MessageDao {
void createMessage(Message message) throws Exception;
List<Message> getMessages() throws Exception;
}
| true |
e01f0fd755211dc5026de3f9fdbbe4fe43d1cca7 | Java | manug2/concur | /src/main/java/com/manug2/concur/queue/MyBlockingQueue.java | UTF-8 | 2,375 | 3.125 | 3 | [] | no_license | package com.manug2.concur.queue;
import java.util.Collection;
import java.util.Iterator;
import java.util.concurrent.BlockingQueue;
import java.util.concurrent.TimeUnit;
/**
* Created by maverick on 4/11/2016.
*/
public abstract class MyBlockingQueue implements BlockingQueue<Integer> {
@Override
public boo... | true |
af80444e673d72a64e2355000792f0b63397d8b4 | Java | qiujianrui/CM | /app/src/main/java/com/chumeng/yxfz/util/ToastUtils.java | UTF-8 | 2,230 | 2.578125 | 3 | [] | no_license | package com.chumeng.yxfz.util;
import android.text.TextUtils;
import android.view.Gravity;
import android.widget.Toast;
import com.chumeng.yxfz.BaseApplication;
/**
* Created by THINK on 2017/10/19.
*/
public class ToastUtils {
private static Toast mToast;
private static Toast mCenterToast;
public st... | true |
a422d220af6ba4ece7949d01aecc3422461d377b | Java | jsalmighty89/CA_TermProject | /src/game/Item/Item.java | UTF-8 | 914 | 2.796875 | 3 | [] | no_license | package game.Item;
import org.newdawn.slick.GameContainer;
import engine.framework.AEFramework;
import engine.object.AEGameObject;
import game.character.Player;
import game.character.PlayerSHK;
public class Item extends AEGameObject {
protected float lifeTime;
protected float healthUp;
public Item() {
this... | true |
79a4780e27b94fb55b267514f414a52262287702 | Java | woothee/woothee-java | /src/main/java/is/tagomor/woothee/appliance/Nintendo.java | UTF-8 | 932 | 2.1875 | 2 | [
"Apache-2.0"
] | permissive | package is.tagomor.woothee.appliance;
import java.util.Map;
import java.util.regex.Pattern;
import java.util.regex.Matcher;
import java.util.regex.MatchResult;
import is.tagomor.woothee.AgentCategory;
import is.tagomor.woothee.DataSet;
public class Nintendo extends AgentCategory {
public static boolean challenge(f... | true |
36695fdc1751a0a07b0f3ffc2c50ba452fc15541 | Java | ksapper/com.jcloud.framework | /jcloud-demo/demo-consumer-service/src/main/java/com/jcloud/demo/consumer/controller/OrderServiceImpl.java | UTF-8 | 2,345 | 1.914063 | 2 | [] | no_license | package com.jcloud.demo.consumer.controller;
import com.jcloud.demo.consumer.api.feign.OrderService;
import com.jcloud.demo.consumer.api.request.OrderAdd;
import com.jcloud.demo.consumer.api.response.OrderAddResponse;
import com.jcloud.demo.consumer.consume.UserServiceRemote;
import com.jcloud.demo.consumer.model.Orde... | true |
a131c62b8751fc74d440d1b9a5606e0005bbb973 | Java | x1094724864/study-Java | /JavaBase/src/com/lx/javabase/oop3/TheftproofDoor2.java | UTF-8 | 376 | 2.703125 | 3 | [] | no_license | package com.lx.javabase.oop3;
import com.lx.javabase.oop3.Door;
public class TheftproofDoor2 extends Door implements DoorBell, LockDoor {
public void lockUp() {
System.out.println("扭锁,门开了");
}
public void openLock() {
System.out.println("再扭锁,门就关了");
}
public void photo() {
System.out.println("我拍照咯... | true |
684d0ae317f35596848ed8d6fb8cd6d2f004397e | Java | tsws4s/tsw7 | /pm7/src/main/java/pm7/web/RequirementControllerTest.java | UTF-8 | 46,416 | 1.710938 | 2 | [] | no_license | package pm7.web;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.support.DefaultListableBeanFactory;
import org.springframework.context.ApplicationContext;
import org.springframework.mock.we... | true |
1217467cec74fa967458fb7cc1c60777579b48a4 | Java | mchung/restless | /src/com/chungco/rest/boxnet/BoxLoginProvider.java | UTF-8 | 661 | 2.203125 | 2 | [] | no_license | package com.chungco.rest.boxnet;
import com.chungco.rest.ILoginProvider;
public class BoxLoginProvider implements ILoginProvider {
private String mUsername;
private String mPassword;
private final String mSID;
public BoxLoginProvider(final String pUsername, final String pPa... | true |
6e7d18099fbf19865534921f18334572ed883351 | Java | SSGGGG/tiny-spring-excelman | /tiny-spring-step8/src/main/java/com/excelman/beans/factory/support/AbstractBeanFactory.java | UTF-8 | 2,730 | 2.59375 | 3 | [] | no_license | package com.excelman.beans.factory.support;
import cn.hutool.core.util.ClassUtil;
import com.excelman.beans.BeansException;
import com.excelman.beans.factory.config.BeanDefinition;
import com.excelman.beans.factory.config.BeanPostProcessor;
import com.excelman.beans.factory.config.ConfigurableBeanFactory;
import com.e... | true |
0c11ec695dc9a1b488fc4f844705635c2bc0b9b4 | Java | hcmfys/my-swagger | /src/main/java/org/springbus/zdis/pub/PubController.java | UTF-8 | 898 | 2.453125 | 2 | [] | no_license | package org.springbus.zdis.pub;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.... | true |
688e2eda322358a05bfae86c0395d9c6e3562075 | Java | Wei1127/custom | /app/src/main/java/com/example/mycommerce/adapter/homeadapter/DirectSellingAdapter.java | UTF-8 | 2,856 | 2.046875 | 2 | [] | no_license | package com.example.mycommerce.adapter.homeadapter;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TextView;
import androidx.annotation.NonNull;
import androidx.recyclerview.widget.Recy... | true |
21c1e5dbcb5cf6b44e1a9c5ac4aa889933fbea91 | Java | testmandy/NativeAdLibrary-master | /library/src/main/java/me/dt/nativeadlibary/config/NativeAdLibManager.java | UTF-8 | 15,299 | 2.140625 | 2 | [] | no_license | package me.dt.nativeadlibary.config;
import android.app.Application;
import android.content.Context;
import android.util.Log;
import com.dt.client.android.analytics.exception.EventException;
import com.dt.client.android.analytics.net.gson.EGson;
import com.dt.client.android.analytics.net.gson.GsonBuilder;
import com.... | true |
31be7b875625fd9733b840f3dbbf1a31f5548e70 | Java | ColinFletcherQA/UndercoverBooks | /src/main/java/com/qa/services/BookService.java | UTF-8 | 567 | 1.921875 | 2 | [] | no_license | package com.qa.services;
import com.qa.models.Book;
import com.qa.models.BookRequest;
import com.qa.repositories.BookRepository;
import com.qa.repositories.BookRequestRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;
@Serv... | true |
67c489d40b41803f8690b643f2b97cc90295370b | Java | nan21/nan21.dnet.modules_oss | /nan21.dnet.module.md/nan21.dnet.module.md.business/src/main/java/net/nan21/dnet/module/md/bp/business/serviceimpl/VendorGroupAcctService.java | UTF-8 | 4,951 | 1.96875 | 2 | [] | no_license | /*
* DNet eBusiness Suite
* Copyright: 2010-2013 Nan21 Electronics SRL. All rights reserved.
* Use is subject to license terms.
*/
package net.nan21.dnet.module.md.bp.business.serviceimpl;
import java.util.List;
import javax.persistence.EntityManager;
import net.nan21.dnet.core.api.session.Session;
im... | true |
b04cd937cb9a9e5e881ee4e11a974bc0dac69a18 | Java | Etherealss/MIMS | /src/main/java/database/base/BaseDataManagementByList.java | UTF-8 | 2,800 | 3.109375 | 3 | [] | no_license | package database.base;
import common.structure.MyArrayList;
import pojo.po.Identify;
import util.SearchUtil;
import util.SortUtil;
import java.util.*;
/**
* @author wtk
* @description 将4个DataManagement抽象出一个父类,概括所有CRUD操作
* @date 2021-06-01
*/
public class BaseDataManagementByList<T extends Identify> {
privat... | true |
b654937c74e538a6ede971c55951f4050cac5f76 | Java | zaunerc/combowidget | /src/combowidget/playground/BulletProofComboPlayground.java | UTF-8 | 17,743 | 2.171875 | 2 | [] | no_license | package combowidget.playground;
import java.net.URL;
import java.net.URLClassLoader;
import java.util.List;
import org.eclipse.core.databinding.DataBindingContext;
import org.eclipse.core.databinding.observable.Realm;
import org.eclipse.core.databinding.observable.value.IObservableValue;
import org.eclipse.jface.data... | true |
3ab437ebd14e27a3ee1e7d881d006a650b422c24 | Java | Taher-Ghaleb/FlakeFlagger | /flakiness-predicter/input_data/original_tests/doanduyhai-Achilles/nonFlakyMethods/info.archinnov.achilles.schemabuilder.CreateIndexTest-should_create_index.java | UTF-8 | 269 | 1.96875 | 2 | [
"BSD-3-Clause"
] | permissive | @Test public void should_create_index() throws Exception {
final String statement=SchemaBuilder.createIndex("myIndex").ifNotExists().onTable("ks","test").andColumn("col");
assertThat(statement).isEqualTo("\n\tCREATE INDEX IF NOT EXISTS myIndex ON ks.test(col)");
}
| true |
7e6f3488a65b04d66496122bcddfa49068e95967 | Java | shasait/commentcodegen | /ccgtest/src/Test123.java | UTF-8 | 8,935 | 3 | 3 | [] | no_license | import java.beans.PropertyChangeListener;
import java.beans.PropertyChangeSupport;
/**
* Demonstration:
* <ul>
* <li>Contains a hooked multi-property with afterchanged-option.</li>
* <li>A two-sided relation.</li>
* <li>A simple bound property.</li>
* </ul>
* All with a few lines of comment.
*/
public class Te... | true |
22c079894255ed79c14014636b789d9667c3874e | Java | THW3-Jack/Calcproblem | /src/org/sla/Main.java | UTF-8 | 461 | 2.421875 | 2 | [] | no_license | package org.sla;
public class Main {
public static void main(String[] args) {
String myCalc0 = "dz/dx = ";
String myCalc1 = "= 3(x)^2-9";
int m = 3;
String m2 = "x";
int e = 2;
int m3 = -9;
int e2 = 0;
int p = m * e;
int t = m3 * e2;
... | true |
06960f3ff9db7f57fc357543a9f6ebef1c441ab1 | Java | bobkubista/examples | /utils/rest-utils/src/main/java/bobkubista/examples/utils/rest/utils/service/GenericETagModifiedDateDomainObjectDecorator.java | UTF-8 | 1,767 | 2.53125 | 3 | [] | no_license | package bobkubista.examples.utils.rest.utils.service;
import java.time.Instant;
import java.util.Locale;
import javax.ws.rs.core.EntityTag;
import bobkubista.examples.utils.domain.model.domainmodel.identification.DomainObject;
/**
* Generic decorator for {@link DomainObject}s, to add an {@link EntityTag}... | true |
bbc1bd21b3d3282368af4cf17ad62dee545e6817 | Java | cha63506/CompSecurity | /sound-cloud_source/src/com/soundcloud/android/waveform/WaveformOperations$2.java | UTF-8 | 956 | 1.554688 | 2 | [] | no_license | // Decompiled by Jad v1.5.8e. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.geocities.com/kpdus/jad.html
// Decompiler options: braces fieldsfirst space lnc
package com.soundcloud.android.waveform;
import com.soundcloud.android.model.Urn;
import com.soundcloud.android.rx.observers.DefaultSubscriber;
... | true |
565731e88e261797c1173bdd732447e492bf5a65 | Java | vuhoi134/pet-care | /src/main/java/com/poly/petcare/domain/specification/OutputSpecification.java | UTF-8 | 784 | 2.28125 | 2 | [] | no_license | package com.poly.petcare.domain.specification;
import com.poly.petcare.domain.entites.Input;
import com.poly.petcare.domain.entites.Output;
import org.springframework.data.jpa.domain.Specification;
public class OutputSpecification {
/**
* Lấy ra danh sách product với status
* @param status
* @retur... | true |
7fa37bb5d642442036acce402269c7f9ebc78d58 | Java | vitorossi103/Dodger | /src/helpers/Artist.java | UTF-8 | 1,385 | 2.71875 | 3 | [] | no_license | package helpers;
import static org.lwjgl.opengl.GL11.*;
import java.io.IOException;
import java.io.InputStream;
import org.newdawn.slick.opengl.Texture;
import org.newdawn.slick.opengl.TextureLoader;
import org.newdawn.slick.util.ResourceLoader;
public class Artist {
public static void drawQuad(float x, float y, f... | true |
8dc4c985071b6c8d2f5de23e3cf7c35be9e25b64 | Java | shangaimin/AudioPlay | /app/src/main/java/com/audiodemo/MainActivity.java | UTF-8 | 3,610 | 2.171875 | 2 | [] | no_license | package com.audiodemo;
import com.audiodemo.adapter.RecordAdapter;
import com.audiodemo.listener.AudioListener;
import com.audiodemo.util.MediaManager;
import com.audiodemo.widget.AudioRecorderButton;
import android.graphics.drawable.AnimationDrawable;
import android.media.MediaPlayer;
import android.os.Bundle;
impor... | true |
744f9f1477bf74a132bfd6fe713429254ad7afad | Java | nondarashwin/Rashwin_Nonda_SOF | /Day05/Assignment_04/src/MyUtil.java | UTF-8 | 1,218 | 3.609375 | 4 | [] | no_license | import java.util.Scanner;
public class MyUtil {
int a;
static int throwDice() {
int temp;
do {
temp = (int) (Math.random() * 100) % 7;
} while (temp == 0);
return temp;
}
static double findAvg(int[] array) {
int avg = 0;
for (int a : array) ... | true |
12edc16237fe8dc5fd8f7d23ec8c59e6fda0d44d | Java | CrizR/FreeCell | /test/cs3500/hw02/TestCard.java | UTF-8 | 877 | 3.375 | 3 | [] | no_license | package cs3500.hw02;
/**
* Created by ChrisRisley on 5/12/17.
*/
import org.junit.Test;
import static org.junit.Assert.assertEquals;
/**
* Class for testing the Card Class.
*/
public class TestCard {
Card card1 = new Card(Card.Value.ACE, Card.Suit.SPADES);
@Test //Tests to see if ToString properly prints ... | true |
f07b88580f43ac89a2cccd13aac69974b459fb4b | Java | dosrd/droidstore | /src/main/java/com/dabarobjects/storeharmony/droidstore/cloud/CloudTransferProgressMonitor.java | UTF-8 | 659 | 1.804688 | 2 | [] | no_license | package com.dabarobjects.storeharmony.droidstore.cloud;
public abstract interface CloudTransferProgressMonitor {
public abstract void onTransferIdAcquired(long paramLong, String paramString);
public abstract void onCloudPartSent(int paramInt, long paramLong1, long paramLong2, long paramLong3);
public abs... | true |
98ddce88dc1d592bf3c19e5a94186dbbfe7d0e52 | Java | s-omy/develop-playground | /PersecQuery/src/main/java/jp/omiya/persec/query/ast/TupleExpression.java | UTF-8 | 1,343 | 2.734375 | 3 | [] | no_license | package jp.omiya.persec.query.ast;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
import jp.omiya.persec.query.common.Evaluated;
import jp.omiya.persec.query.common.QueryRecord;
import jp.omiya.persec.query.common.ValueObject;
/**
* "(1, 2, 3)" のようなタプル表現のモデ... | true |
262211334a3ac93c85ceef017f3d8bbf2217a4a2 | Java | ToTheMoonLee/Data_Structure | /src/practice/hanoi/Hanoi.java | UTF-8 | 533 | 3.53125 | 4 | [] | no_license | package practice.hanoi;
public class Hanoi {
public static void main(String[] args) {
hanoi(8, "X", "Y", "Z");
System.out.println(" count ==== " + count);
}
private static int count = 0;
private static void hanoi(int n, String from, String buffer, String to) {
if (n == 0) {
... | true |
785cc9f33f21b715f89890f216c68512ee4abec4 | Java | kyocoolcool/Java-Notes | /Chapter10/Extend/HW10_17.java | UTF-8 | 892 | 3.765625 | 4 | [
"MIT"
] | permissive | package Chris.Chapter10.Extend;
/*CColor類別裡的show() method不能改寫父類別Car裡的show() method,
父類別Car裡的show() method為final,不能被改寫。*/
class Car {
protected String owner;
protected String id;
Car(String own, String s){
owner=own;
id=s;
}
final void show() {
System.out.println("車主姓名:" + owner);
System.out.pri... | true |
e35146c730abf1f623fcb534c89275bb793762b4 | Java | vaibhav-raut/beOne-Server | /shg-ws/src/main/java/com/beone/shg/net/webservice/rest/service/ProfileWS.java | UTF-8 | 4,421 | 2 | 2 | [] | no_license | package com.beone.shg.net.webservice.rest.service;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.InitializingBean;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework... | true |
c42497cb8a25cc8d27cb8f6fd0e0d1b9286362a0 | Java | AaronStahley/CSC205 | /Activity3/Square.java | UTF-8 | 382 | 3.28125 | 3 | [] | no_license | package Activity3;
//Program Name : Square
//Author : Aaron Stahley
//Date Written: 2/5/2015
//Class : Square.java
public class Square extends Rectangle {
public Square () {
this(1);
}
public Square(double s) {
super(s,s);
}
@Override
public String toString() {
return "Square [s=" + w + " perimete... | true |
1e7ee1d6bfcaef20d02dd86b2d63a4f231664b5e | Java | CS122B-CWP/cs122b | /miniEbay/src/main/java/miniEbay/jdbc/dao/BidDAO.java | UTF-8 | 3,331 | 2.71875 | 3 | [
"Apache-2.0"
] | permissive | package miniEbay.jdbc.dao;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
import org.json.JSONException;
import org.json.JSONObject;
import ... | true |
50c4a49864e0c4594f349beb6967c41edbbfe29a | Java | matzew/perspicuus | /server/src/test/java/org/jboss/perspicuus/rest/SchemaRecommendationResourceIT.java | UTF-8 | 3,168 | 2.171875 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2017 Red Hat, Inc. and/or its affiliates.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
* Unless required by applicable law o... | true |
0aa35b768a4611cc127fb0954af950ff5b4a3b49 | Java | huanglongf/enterprise_project | /dev/.svn/pristine/35/358a3ff8fc25d450fb76624ddb5ab1c9f7f1767f.svn-base | UTF-8 | 2,214 | 1.75 | 2 | [] | no_license | package com.bt.workOrder.service;
import java.util.List;
import java.util.Map;
import org.apache.ibatis.annotations.Param;
import com.bt.common.controller.param.Parameter;
import com.bt.lmis.code.BaseService;
import com.bt.lmis.page.QueryResult;
import com.bt.workOrder.controller.form.CaimantWKParam;
import com.bt.w... | true |
fb37d972b941782e2cebaf9e5fc639fead650807 | Java | Arkpeng/HelloWorld | /src/test/MultiplicationTable.java | ISO-8859-7 | 233 | 2.796875 | 3 | [] | no_license | package test;
public class MultiplicationTable {
public static void main(String[] args) {
int sum=0;
String lab = "1~100ĺͣ";
for(int i=1;i<=100;i++) {
sum +=i;
}
System.out.println(lab+sum);
}
}
| true |
47f1de2db080b24059ba41f1f91ea6525009df4d | Java | xudabeauty/java_demo | /spring/src/main/java/com/my/spring/chapter07/dynamicProxy/PermanceHandler.java | UTF-8 | 617 | 2.828125 | 3 | [] | no_license | package com.my.spring.chapter07.dynamicProxy;
import java.lang.reflect.InvocationHandler;
import java.lang.reflect.Method;
import com.my.spring.chapter07.PermanceMonitor;
public class PermanceHandler implements InvocationHandler{
private Object target;
public PermanceHandler(Object obj) {
this.targ... | true |
32a4e52579f2c73aad97093311e74f92bfb2daad | Java | jai-somai-lulla/Sem-7 | /STQA/Issue-Management-System-master/imsclient/src/javaapplication19/Main_list_panel.java | UTF-8 | 14,026 | 2.03125 | 2 | [
"MIT",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | /*
* 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 javaapplication19;
import java.util.ArrayList;
import javax.swing.DefaultListModel;
import javax.swing.JList;
import java.sql... | true |
8c8fe3c15c12b59f9bb014c27dad63cc9e026d09 | Java | jefersonss/ASO-Mobile | /MyApplication/app/src/main/java/aso/unisinos/br/aso_mobile/ExpandableListAdapter.java | UTF-8 | 4,619 | 2.203125 | 2 | [] | no_license | package aso.unisinos.br.aso_mobile;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.graphics.Color;
import android.graphics.Typeface;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseExpanda... | true |
1acb4f3264ef0885bcac367b95b36b9657026159 | Java | Mrouissi/CASANOVA_BACK | /src/main/java/com/istic/casanova/repository/PeriodeAbsRepository.java | UTF-8 | 536 | 1.992188 | 2 | [] | no_license | package com.istic.casanova.repository;
import com.istic.casanova.model.Dossier;
import com.istic.casanova.model.PeriodeAbs;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;
import java.util.List;
@Rep... | true |
54f3704b52b02c55cbe6e8131bfc3476f181af27 | Java | sunilsoni/Learning | /java-basics/src/main/java/com/training/java/basics/constructor/Son.java | UTF-8 | 1,240 | 4.03125 | 4 | [] | no_license | package com.training.java.basics.constructor;
/**
* The subclass constructor will first call the parent class's no-argument constructor by default, regardless of whether super() is explicitly written;
*/
public class Son extends Father {
private static int countSon;
static {
System.out.println(" Sub... | true |
a14a2a18292b1f751660a7801843645f9b8a1420 | Java | VelAngelov/HomeWorks_ITTalents | /ITT_OOP_ALL_TASKS/src/imigrants/lib/Police.java | UTF-8 | 845 | 3.046875 | 3 | [] | no_license | package imigrants.lib;
import imigrants.lib.imigrants.Imigrant;
/*
* • Полицаи – те залавят около 50% от нелегалните имигранти (радикални и
екстремисти). Не могат да залавят обаче имигранти, които носят бомба в
себе си. Те проверят всички имигранти, независимo от типа им и дали
имат паспорт.
*/
public class Police e... | true |
72723cd97f9bec3774720ff447fb75c074bdad08 | Java | helioh2/exemplos-java2016 | /src/cafe/Cafe.java | UTF-8 | 709 | 3.34375 | 3 | [] | no_license | package cafe;
public class Cafe {
// atributos (campos)
private String tipo;
private Double preco;
private Double peso;
// construtor
public Cafe(String tipo, Double preco, Double peso){
this.tipo = tipo;
this.preco = preco;
this.peso = peso;
}
// metodos
public String getTipo(){
return this.tipo;... | true |
3b8a3f7db39cfed9619ecff532907fc98b808051 | Java | pheerawadee/pacman-java | /src/elements/Pinky.java | UTF-8 | 2,958 | 2.515625 | 3 | [
"MIT"
] | permissive | package elements;
import utils.Consts;
import utils.Drawing;
import java.awt.Graphics;
import control.GameController;
import java.util.ArrayList;
import utils.Position;
// Paralelo ao Pacman em y, aleatório em x
public class Pinky extends Ghost {
// Encurrala o Pacman
private void move(Position ... | true |
8bb06e94459075f4000b8f674c93f5a2067abdca | Java | unayakdev/remed | /clinical-trail-lex-common/src/main/java/ai/remed/clinical/trail/aws/lex/response/DialogAction.java | UTF-8 | 2,389 | 2.125 | 2 | [
"Apache-2.0"
] | permissive | package ai.remed.clinical.trail.aws.lex.response;
import java.util.HashMap;
import java.util.Map;
public class DialogAction {
private String type;
private String fulfillmentState;
private Message message;
private String intentName;
private String slotToElicit;
private Map<String, String> slots... | true |
71c32195087882a3d47c31595cef462f3afedea3 | Java | ma349432587/mry | /src/main/java/com/mry/repository/ActivityRewardRepository.java | UTF-8 | 964 | 2.03125 | 2 | [] | no_license | package com.mry.repository;
import java.util.List;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;
import com.mry.model.ActivityReward;
... | true |
84f8e63afea521c8ecae83b92ca90f9b826e7083 | Java | fonimus/ssh-shell-spring-boot | /starter/src/main/java/com/github/fonimus/ssh/shell/commands/TasksCommand.java | UTF-8 | 18,391 | 1.75 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright (c) 2020 François Onimus
*
* 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... | true |
1ab87fd00ca7bd3ecb40967cc241a8d0225c4b1d | Java | nalee772/shareoffice | /src/service/memberUser/PickProAction.java | UTF-8 | 1,988 | 2.15625 | 2 | [] | no_license | package service.memberUser;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.List;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import dao.books.BooksDto;
import dao.memberUser.MemberDao;
import dao.office.... | true |
8cc78b919fbf76f9d13853c9ac34846a1e521102 | Java | Toonwire/PokemonGoTool | /app/src/main/java/com/toonwire/pokemongotool/InfoDataCP.java | UTF-8 | 392 | 2.375 | 2 | [] | no_license | package com.toonwire.pokemongotool;
public class InfoDataCP {
private int candy;
private double avgMultiplier;
public InfoDataCP(int candy, double avgMultiplier) {
this.candy = candy;
this.avgMultiplier = avgMultiplier;
}
public double getAvgMultiplier() {
return avgMultip... | true |
66dcc8fb2dca92b9b05effc25e53110cafad0f84 | Java | jilqka/modul2 | /recursion4_3.java | UTF-8 | 663 | 3.28125 | 3 | [] | no_license | public class recursion4_3 {
public static void main(String[] args) {
System.out.println(xMethod(2,6));
System.out.println(yMethod(2,6));
}
private static int yMethod(int num, int degree) {
int sum=1;
for (int i = 1; i <=degree ; i++) {
sum*=num;
... | true |
c5d0fdb4e493d68ba59143e91e712ba53b772967 | Java | Anton-nsk/ApiTestsProjectPresentation | /src/test/java/ru/projectApi/refactoring/hooks/Hooks.java | UTF-8 | 1,192 | 1.859375 | 2 | [] | no_license | package ru.projectApi.refactoring.hooks;
import io.cucumber.java.After;
import io.cucumber.java.Before;
import io.qameta.allure.Step;
import ru.projectApi.refactoring.connectors.ConnectForDB;
import ru.projectApi.refactoring.global.globalUtils.GlobalTools;
import java.io.IOException;
import java.sql.SQLException;
im... | true |
55179539ac72072f8d82fc602a486cb788725420 | Java | RehamAlnagar/Movie_app | /app/src/main/java/com/example/android/movieapp/MainActivity.java | UTF-8 | 2,533 | 2.5 | 2 | [] | no_license | package com.example.android.movieapp;
import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.Menu;
import android.view.MenuItem;
public class MainActivity extends AppCompatActivity implements NameListener {
boolean mInTwoPane = false;
... | true |
e07f0d32cd4c8d649e80c5e2a58c6ba94b16a544 | Java | gametaro321/spring-boot-demo | /src/main/java/com/example/demo/dto/ZipCodeDataDto.java | UTF-8 | 478 | 1.78125 | 2 | [] | no_license | package com.example.demo.dto;
import lombok.Data;
@Data
public class ZipCodeDataDto {
/** 郵便番号 */
String zipcode;
/** 都道府県コード */
String prefcode;
/** 都道府県名 */
String address1;
/** 市区町村名 */
String address2;
/** 町域名 */
String address3;
/** 都道府県名カナ */
String kana1;
... | true |
b552393378014017137e2535bee7ab4e3d15eb9b | Java | liuxiang/bright_frame | /src/main/java/com/wosai/bright/controller_web/system/SysMenuController.java | UTF-8 | 8,524 | 2.15625 | 2 | [] | no_license | package com.wosai.bright.controller_web.system;
import com.wosai.bright.common.Constants;
import com.wosai.bright.mapper.SysMenuDataMapper;
import com.wosai.bright.mapper.SysMenuMapper;
import com.wosai.bright.mapper.SysUserMapper;
import com.wosai.bright.mapper.SysUserMenuMapper;
import com.wosai.bright.model.SysMenu... | true |
bd53777c766cd7eeab2a01b67a16badaf90adc41 | Java | BennieQAQ/test | /ems/src/main/java/org/wangyu/ems/handler/DeptHandler.java | UTF-8 | 1,826 | 2.15625 | 2 | [] | no_license | package org.wangyu.ems.handler;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.an... | true |
215e076f76a7acb8b1901325a9d0dd0fe1f340af | Java | rubel046/Pattern-Recognition-Tool | /Pattern-Recognition-Tool-master/src/singleLinkage/SLInput.java | UTF-8 | 8,988 | 2.734375 | 3 | [] | no_license | /*
* 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 singleLinkage;
/**
*
* @author mahfuz11
*/
import java.io.*;
import java.util.*;
import javax.swing.JTextArea;
public clas... | true |
d4ef9c3e325e3b44213a604863bbc808aacc81e9 | Java | lena2011/NimDemo | /app/src/main/java/zaoren/demo/com/NimApplication.java | UTF-8 | 473 | 1.921875 | 2 | [] | no_license | package zaoren.demo.com;
import android.app.Application;
import com.netease.nimlib.sdk.NIMClient;
import com.netease.nimlib.sdk.auth.LoginInfo;
/**
* Created by Administrator on 2017/12/27.
*/
public class NimApplication extends Application {
@Override
public void onCreate() {
super.onCreate();
... | true |
741f37c14f051ec92fb342e61ab6b882aff1229a | Java | Tryking/TMPlugIn | /app/src/main/java/com/tryking/tmplugin/MainActivity.java | UTF-8 | 1,792 | 2.4375 | 2 | [] | no_license | package com.tryking.tmplugin;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.Toast;
import com.tryking.tmplugin.utils.Constant;
import com.tryking.tmplugin.utils.FileUtil;
import java.util.ArrayList;
import java.... | true |
5e372ad6c6ae971e84f4644325b08abeb1255267 | Java | bernardkaminski/DPM_FALL_2013_Team2 | /Tests/bluetoothTest.java | UTF-8 | 238 | 1.84375 | 2 | [] | no_license | package Tests;
import lejos.nxt.comm.Bluetooth;
import lejos.nxt.comm.RConsole;
public class bluetoothTest {
static void main()
{
RConsole.openAny(20000);
Bluetooth.setFriendlyName("NXT");
RConsole.println("connected");
}
}
| true |
878c671ee54a5bb8b9985060649e727ad43e5a1f | Java | WPZC/epallcompany | /yc/yc-tcp-analysis/src/main/java/com/ep/yc/yctcpanalysis/service/impl/forward/SendHeNanAnYang.java | UTF-8 | 964 | 1.648438 | 2 | [] | no_license | package com.ep.yc.yctcpanalysis.service.impl.forward;
import com.ep.yc.yctcpanalysis.entity.YcRealtimeinfoEntity;
import com.ep.yc.yctcpanalysis.service.Forwarding;
import com.ep.yc.yctcpanalysis.util.HttpRequest;
import java.util.Date;
/**
* @Author WQY
* @Date 2019/11/18 16:10
* @Version 1.0
*/
public class Se... | true |
cd60fbe87cc0eeb600a985035d1ff8b4d96be547 | Java | mihkell/bank_test | /src/main/test/com/pocopay/controller/TransactionsRestControllerTest.java | UTF-8 | 3,290 | 1.984375 | 2 | [] | no_license | package com.pocopay.controller;
import static org.hamcrest.Matchers.hasSize;
import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.post;
import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.jsonPath;
import static org.springframework.test.web.servlet.result.MockMv... | true |
a7df0af1e9200b25596fa4c817ccd9eb7db75f21 | Java | Artiow/football-manager | /src/main/java/ru/vldf/sportsportal/dao/generic/definite/tourney/TimegridTypeDAO.java | UTF-8 | 420 | 1.929688 | 2 | [] | no_license | package ru.vldf.sportsportal.dao.generic.definite.tourney;
import ru.vldf.sportsportal.domain.tourney.TimegridTypeEntity;
import java.util.List;
public interface TimegridTypeDAO {
Integer save(TimegridTypeEntity type);
// ==================================================================================
// ... | true |
77102426898d0bc6082e953b95e81fa12f6f67c1 | Java | asfman/CameraUploader | /src/ylab/donut/camerauploader/PreferenceController.java | UTF-8 | 910 | 2.28125 | 2 | [] | no_license | package ylab.donut.camerauploader;
import android.content.*;
import android.preference.*;
public class PreferenceController{
private SharedPreferences share;
private Context context;
public PreferenceController(Context c){
context=c;
updateSharedPreferences();
}
public boolean getBoolean(String key){
//sha... | true |
76e495347706500a69467e68698d32d2daff98cb | Java | mojohaus/ditaot-maven-plugin | /src/main/java/org/codehaus/mojo/dita/DitaShowHelpMojo.java | UTF-8 | 1,886 | 1.890625 | 2 | [] | no_license | package org.codehaus.mojo.dita;
/*
* 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, Ver... | true |
21e53a97809de09c557790e82ddbca57088352de | Java | abbasanwar/echallansystem | /app/src/main/java/com/echallansystem/ShowLicenceActivity.java | UTF-8 | 2,536 | 2.359375 | 2 | [] | no_license | package com.echallansystem;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.view.View;
import android.widget.TextView;
import com.echallansystem.Models.LicenceVerification;
i... | true |
eb4a7e98419049762fee7a241be44a7ade909004 | Java | tangtaocode/tangtao.code | /sp_checkdata/src/main/java/net/risesoft/database/simplejdbc/Update.java | UTF-8 | 345 | 1.929688 | 2 | [] | no_license | package net.risesoft.database.simplejdbc;
/**
*
* @author Jackmen wei(韦杰民)2014年5月5日
*
*/
public interface Update extends Operate {
public Update setColumnAndValue(String columnName, Object value);
public Update setColumnAndColumn(String columnName1, String columnName2);
public Condition createSpecia... | true |
59be41a929bd2d2f1892f0269f0f56cc50f35e9e | Java | floatworks/PhotoShare-Server | /src/here/wait/photo/share/bean/Comment.java | UTF-8 | 1,471 | 2.3125 | 2 | [] | no_license | package here.wait.photo.share.bean;
import here.wait.photo.share.utils.Utilities;
import java.util.Date;
public class Comment extends Data
{
private int id;
private String content;
private Date createTime;
private User owner;
private int toId;
private Photo photo;
public int getId()
{
return id;
}
public... | true |
0f726ac64f5c72e160f1bedab2d39aece6bf613b | Java | esrasertsu/Kalypso | /KalypsoModelWspmPdbCore/src/org/kalypso/model/wspm/pdb/gaf/GafPartsMapping.java | WINDOWS-1252 | 4,884 | 1.914063 | 2 | [] | no_license | /** This file is part of Kalypso
*
* Copyright (c) 2012 by
*
* Bjrnsen Beratende Ingenieure GmbH, Koblenz, Germany (Bjoernsen Consulting Engineers), http://www.bjoernsen.de
* Technische Universitt Hamburg-Harburg, Institut fr Wasserbau, Hamburg, Germany
* (Technical University Hamburg-Harburg, Institute... | true |
ffc9db065d369e0986bff795e29ea3a7442d9128 | Java | echalkpad/bell-sam2 | /subscriber-thirdparty-gateway-adapter/src/main/java/com/vennetics/bell/sam/subscriber/thirdparty/gateway/adapter/SubscriberThirdPartyAdapter.java | UTF-8 | 3,158 | 1.960938 | 2 | [] | no_license | package com.vennetics.bell.sam.subscriber.thirdparty.gateway.adapter;
import java.util.List;
import javax.annotation.PostConstruct;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cloud.netflix.hystrix.EnableHystrix;
i... | true |
fad24e5f88ecdf4e49b980f40d37afd2f51187f1 | Java | ryska/Hamiltonian-path | /src/genetics/algorithm/NodeGenerator.java | UTF-8 | 1,007 | 3.40625 | 3 | [] | no_license | package genetics.algorithm;
import edu.uci.ics.jung.graph.Graph;
import genetics.data.Chromosome;
import genetics.data.Gene;
import graph.Node;
import java.util.LinkedList;
/**
* Klasa odpowiedzialna za generowanie Node'ów z Chromosomów.
* @author Adrianna
*/
public class NodeGenerator {
/**
* Funkc... | true |
dc764c4a57e170fbbf23b09360fb2a395d208c98 | Java | 295286769/yiqijinew | /app/src/main/java/com/yiqiji/money/modules/book/detailinfo/activity/BookZoonImageActivity.java | UTF-8 | 2,251 | 1.882813 | 2 | [] | no_license | package com.yiqiji.money.modules.book.detailinfo.activity;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;
import com.example.csonezp.imagezoomdemo.HackyViewPager;
import com.example.csonezp.imagezoomdemo.ImageViewPage... | true |
647981a5f3b4bf593fcb8dc94afd027463ac3524 | Java | xiao78050576/spring-boot-security-example | /src/main/java/org/haycco/spring/api/samplestuff/ServiceGateway.java | UTF-8 | 294 | 1.984375 | 2 | [] | no_license | package org.haycco.spring.api.samplestuff;
import java.util.List;
import org.haycco.spring.domain.DomainUser;
import org.haycco.spring.domain.Stuff;
public interface ServiceGateway {
List<Stuff> getSomeStuff();
void createStuff(Stuff newStuff, DomainUser domainUser);
}
| true |
28e187a8abaf552c253c579a90e7ef510a0ac207 | Java | dingfei2018/anfapc | /src/main/java/com/supyuan/kd/line/LineController.java | UTF-8 | 10,360 | 1.71875 | 2 | [] | no_license | package com.supyuan.kd.line;
import java.util.ArrayList;
import java.util.List;
import org.apache.commons.lang3.StringUtils;
import com.alibaba.fastjson.JSONObject;
import com.jfinal.plugin.activerecord.Page;
import com.supyuan.component.base.BaseProjectController;
import com.supyuan.front.branch.LogisticsNetwork;
i... | true |
10b099b05a13b6a814ad1b8287d95a7fd4cea4e3 | Java | Nsharmasaraswat/Hunter | /Hunter Src/hunter-core/src/main/java/com/gtp/hunter/process/websocket/ProcessWebSocketServer.java | UTF-8 | 3,495 | 2.15625 | 2 | [] | no_license | package com.gtp.hunter.process.websocket;
import java.io.IOException;
import java.util.UUID;
import javax.enterprise.context.ApplicationScoped;
import javax.inject.Inject;
import javax.websocket.CloseReason;
import javax.websocket.CloseReason.CloseCodes;
import javax.websocket.OnClose;
import javax.websocket.OnMessag... | true |
d8b7713688e2c1fff74fe91918475174a3abdb98 | Java | PaciekM/AndroidBlogier | /app/src/main/java/com/example/blogier/Database/PostDatabase.java | UTF-8 | 1,617 | 2.421875 | 2 | [] | no_license | package com.example.blogier.Database;
import android.content.Context;
import androidx.room.Database;
import androidx.room.Room;
import androidx.room.RoomDatabase;
import androidx.sqlite.db.SupportSQLiteDatabase;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import lombok.NonNul... | true |
bc0f72db8462fa244340ab4dbf0eae1d35a9ab32 | Java | Pod3Gs/internship-project | /src/main/java/com/scott/springweb/service/MessageService.java | UTF-8 | 225 | 1.570313 | 2 | [] | no_license | package com.scott.springweb.service;
public interface MessageService {
void sendRegister(String username);
void sendDelete(String username);
void sendChangePw(String username);
void sendLogin(String username);
}
| true |
b6bf679e0f50884bd40903738ac45d745a803a2b | Java | xin-ren/CustomSimpleViewPager | /app/src/main/java/cn/utsoft/commons/customsimpleviewpager_demo/widght/HeapFrameLayout.java | UTF-8 | 4,488 | 2.375 | 2 | [] | no_license | package cn.utsoft.commons.customsimpleviewpager_demo.widght;
import android.content.Context;
import android.graphics.Canvas;
import android.util.AttributeSet;
import android.util.Log;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import java.util.ArrayList;
import java.util... | true |
a10691b5bc4ee657d4171516c5b58defc1c904d1 | Java | JACKROMER/gateway-for-thing | /src/main/java/com/jackromer/gateway/thingProtocols/processCurrencyProrocol/mqttMessageProcessor/CurrencyMqttMessageProcessor.java | UTF-8 | 7,265 | 2.3125 | 2 | [] | no_license | /*
* File name: CurrencyMqttMessageProcessor.java
*
* Purpose:
*
* Functions used and called: Name Purpose ... ...
*
* Additional Information:
*
* Development History: Revision No. Author Date 1.0 "zhouqiang" Jul 20, 2018
* ... ... ...
*
***************************************************/
package com.jack... | true |
e52f38d140c3faca5b921957173cba5f39cdd136 | Java | ntut-em-project/ntut-em-project2 | /src/ntut/csie/engineering_mathematics/project/proj02/solver/Solver5.java | UTF-8 | 1,626 | 2.359375 | 2 | [] | no_license | package ntut.csie.engineering_mathematics.project.proj02.solver;
import com.mathworks.engine.MatlabEngine;
import ntut.csie.engineering_mathematics.project.proj02.config.App;
import java.util.LinkedList;
import java.util.Map;
import java.util.concurrent.ExecutionException;
import static ntut.csie.engineering_mathema... | true |
939497586105e32075d221c3d1ac197222933274 | Java | prasanta-biswas/docker-experiments | /springboot-app/src/test/java/io/apitest/example/integrationtest/steps/SearchCustomerIntegrationTest.java | UTF-8 | 2,369 | 2.109375 | 2 | [
"Apache-2.0"
] | permissive | package io.apitest.example.integrationtest.steps;
import cucumber.api.java.en.And;
import cucumber.api.java.en.When;
import io.apitest.example.integrationtest.CustomerAppBaseIntegrationTest;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.http.MediaType;
import org.springframework.t... | true |
a77cacab25f0ea2f061e2fb4e11642ff70423b5b | Java | chechubui/jdbc | /IO/src/diapositivas/FileReader2.java | ISO-8859-10 | 996 | 3.234375 | 3 | [] | no_license | package diapositivas;
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;
public class FileReader2 {
public static void main(String[] args) {
// TODO Auto-generated method stub
//solo para archivos d... | true |
9393e7c4537783f83193de7bdbd00aa7bfa21bb7 | Java | GAndrews13/BlueGardens | /BlueGardensEESystem/src/main/java/com/netbuilder/entitymanagers/Dummy/SupplierProductManagerDummy.java | UTF-8 | 1,102 | 2.71875 | 3 | [] | no_license | package com.netbuilder.entitymanagers.Dummy;
import java.util.ArrayList;
import javax.enterprise.inject.Alternative;
import com.netbuilder.entities.SupplierProduct;
import com.netbuilder.entitymanagers.SupplierProductManager;
/**
* @author abalagel links interface with db
*/
@Alternative
public class SupplierProd... | true |
9f33a68afe3ddc84db77164de306532f671842be | Java | ZieLong/algorithm | /NetEase/Direction.java | UTF-8 | 1,814 | 3.6875 | 4 | [] | no_license | package NetEase;
import java.util.Scanner;
/**
* 牛牛去犇犇老师家补课,出门的时候面向北方,但是现在他迷路了。
* 虽然他手里有一张地图,但是他需要知道自己面向哪个方向,请你帮帮他。
*
* 每个输入包含一个测试用例。
每个测试用例的第一行包含一个正整数,表示转方向的次数N(N<=1000)。
接下来的一行包含一个长度为N的字符串,由L和R组成,L表示向左转,R表示向右转。
输出牛牛最后面向的方向,N表示北,S表示南,E表示东,W表示西。
*/
public class Direction {
public static void main(String[... | true |
7f3e01222cc5018fec73384d57e17128a0df739b | Java | khj309/Algorithm | /Algorithm/src/FindingRule/Q1193.java | UTF-8 | 597 | 2.859375 | 3 | [] | no_license | package FindingRule;
import java.util.Scanner;
public class Q1193 {
public static void main(String[] args) {
Scanner sc= new Scanner(System.in);
int num=sc.nextInt();
int cnt=1, i=1, j=1;
String cmd="right";
while(cnt!=num) {
switch(cmd) {
case "right":
j++;
cmd="bottom";
... | true |
e95996a9b436b737ebc4e0a34aeef7c51f9092da | Java | ValBlan1/TeamProject | /Ebay/src/test/java/EbayTest/AllCategoriesTest.java | UTF-8 | 2,040 | 2.015625 | 2 | [] | no_license | package EbayTest;
import ebayTestCases.MainTestCases;
import org.openqa.selenium.support.PageFactory;
import org.testng.annotations.BeforeClass;
import org.testng.annotations.BeforeMethod;
import org.testng.annotations.Test;
public class AllCategoriesTest extends MainTestCases {
MainTestCases mainTestCases;
... | true |
92cc7728e5f5537628390230c79b2edd9879c1fa | Java | wlj/owl_s_service | /owlsapi-1.1.2/src/main/java/EDU/cmu/Atlas/owls1_1/process/RepeatUntil.java | UTF-8 | 358 | 1.96875 | 2 | [] | no_license | package EDU.cmu.Atlas.owls1_1.process;
import EDU.cmu.Atlas.owls1_1.expression.Condition;
public interface RepeatUntil extends ControlConstruct {
public Condition getUntilCondition();
public void setUntilCondition(Condition condition);
public ControlConstruct getUntilProcess();
public void setUntilProcess(... | true |