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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
e9cf6b0760a0ddb579684d550887978b29316a5b | Java | 18752334498/springboot.soldier | /src/main/java/com/yucong/controller/LoginController.java | UTF-8 | 9,707 | 1.96875 | 2 | [] | no_license | package com.yucong.controller;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
import javax.servlet.http.HttpServletRequest;
import org.apache.commons.lang3.StringUtils;
import org.springframework.http.HttpEntity;
import org.springframewo... | true |
d1a5c8393d3c5fd88fa25c81289443c615f68a40 | Java | Devintia/DB | /src/main/java/net/devintia/db/DbHandlerFactory.java | UTF-8 | 354 | 2.1875 | 2 | [
"MIT"
] | permissive | package net.devintia.db;
import java.io.File;
/**
* @author MiniDigger
* @version 1.0.0
*/
public class DbHandlerFactory {
public static DbHandler getNewDbHandler( DbType type ) {
switch ( type ) {
case YAML:
return new YamlDbHandler( new File( "dev-database.yml" ) );
... | true |
9b19f18d1ac2924761431b08de7599e7dba799d6 | Java | wForget/orc-adaptor | /schema-generator/src/main/java/cn.wangz.orc.schema/model/ParseType.java | UTF-8 | 329 | 2.109375 | 2 | [] | no_license | package cn.wangz.orc.schema.model;
/**
* @author wang_zh
* @date 2020/1/3
*/
public enum ParseType {
CREATETABLE("CREATETABLE"),
STRUCTSCHEMA("STRUCTSCHEMA");
public String value;
ParseType(String value) {
this.value = value;
}
public String getValue() {
return this.value;... | true |
ad053c86f5ab0586da43ec70a1125af04b4f9220 | Java | nageshphaniraj81/BigLeapProject | /Core_Java/Collections/arraylist/ArrayListOfObjects.java | UTF-8 | 745 | 3.75 | 4 | [] | no_license | package arraylist;
import java.util.ArrayList;
import java.util.List;
public class ArrayListOfObjects {
public static void main(String[] args) {
List<Computer> pc = new ArrayList<>(100);
pc.add(new Computer(2,1000,"HP"));
pc.add(new Computer(4,1000,"Dell"));
pc.add(new Computer(2,500,"HP"));
pc.add(new... | true |
ace6fab6f800500e10b907580d076b8c3b13311f | Java | ahadahmed/task-manager | /taskmanager-api/src/main/java/com/cardinity/taskmanager/entity/Task.java | UTF-8 | 3,185 | 2.25 | 2 | [] | no_license | package com.cardinity.taskmanager.entity;
import com.fasterxml.jackson.annotation.JsonBackReference;
import com.fasterxml.jackson.annotation.JsonIdentityInfo;
import com.fasterxml.jackson.annotation.JsonManagedReference;
import com.fasterxml.jackson.annotation.ObjectIdGenerators;
import javax.persistence.*;
import ja... | true |
48877240e85e627359398070881f4dd787e0a2a4 | Java | lenconda/design_pattern | /src/main/java/top/lenconda/design_pattern/market/auth/Login.java | UTF-8 | 564 | 2.84375 | 3 | [] | no_license | package top.lenconda.design_pattern.market.auth;
import top.lenconda.design_pattern.market.user.User;
import java.util.ArrayList;
public class Login {
private ArrayList<User> users;
public Login(ArrayList<User> users) {
this.users = users;
}
public User login(String username, String passwor... | true |
ee150f41689289d7a85964ba1e533b1ebf321ec4 | Java | mayzucker/mayzucker | /Work 2/Main.java | UTF-8 | 4,471 | 3.265625 | 3 | [] | no_license | import java.util.*;
public class Main extends SortEngine
{
static Scanner kb = new Scanner(System.in);
public static void main(String[] args) {
final int limit = 10;
int []d = new int[limit];
int []tmp2 = new int[limit];
int data[] = new int[limit];
char ch;
do{
... | true |
47c8af6256d9f0e3ca1b64ecd2084a19b7eb587f | Java | justtankme/springbootapiseed | /src/main/java/com/company/project/core/configurer/DataSourceContextHolder.java | UTF-8 | 1,812 | 2.859375 | 3 | [
"Apache-2.0"
] | permissive | package com.company.project.core.configurer;
import com.company.project.core.common.DataSourceTypeEnum;
/**
*
* @ClassName: DataSourceContextHolder
* @Description: 本地线程,数据源上下文。
* @author duanzhiwei
* @date 2018年1月18日 下午12:55:52
*
*/
public class DataSourceContextHolder {
/**
* DATASOUR... | true |
c55ec432dfc86e8c6dfceee23e2e1f9793d60ba6 | Java | CelineSebaPreeti/MobileLearn | /src/java/temp/com/controller/delmodfrmgrp.java | UTF-8 | 3,774 | 1.984375 | 2 | [] | 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 temp.com.controller;
import java.io.IOException;
import java.io.PrintWriter;
import java.sql.Connection;
import java... | true |
2352fc236a1377b0c211343c2742457bd7e72f6a | Java | yuwj/SupremeLMY | /app/src/main/java/com/zondy/jwt/jwtmobile/view/impl/MaterialDesignTest.java | UTF-8 | 743 | 1.796875 | 2 | [] | no_license | package com.zondy.jwt.jwtmobile.view.impl;
import android.content.Context;
import android.content.Intent;
import android.support.design.widget.CoordinatorLayout;
import com.zondy.jwt.jwtmobile.R;
import com.zondy.jwt.jwtmobile.base.BaseActivity;
/**
* Created by ywj on 2017/4/2 0002.
*/
public class MaterialDesig... | true |
ec24bea404b8ec5310ad0308cae1e3f91001f13f | Java | SashaMizernuy/SkyNet | /app/src/main/java/ua/genesis/sasha/skynet/WeatherApi.java | UTF-8 | 510 | 2.046875 | 2 | [] | no_license | package ua.genesis.sasha.skynet;
import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Query;
public interface WeatherApi {
@GET("/data/2.5/weather?APPID=1326e3f912fb46859a937be21bf3f0c6&units=metric")
Call <OpenWeather> getOpenWeather(@Query("lat") String lat, @Query("lon") String lon);
... | true |
77ca301a87a62fc5d88baf5000067e3c445edb56 | Java | kamkeneddy/pojava | /Snake/src/enginepackage/PlayerAvatar.java | UTF-8 | 5,401 | 3.046875 | 3 | [] | no_license | package enginepackage;
import java.awt.Graphics;
import java.awt.event.KeyEvent;
import java.awt.event.KeyListener;
import java.util.ArrayList;
import java.util.List;
import interfacepackage.SnakeTheme;
public class PlayerAvatar implements KeyListener { //Autor: Mateusz Konopka
List <Integer> Xpos;
List <Integ... | true |
11eb5a24ed5fdc71b692238f0a98bc2103e13da8 | Java | sunyu1239/GoShopping | /src/com/weShop/allPackage/implementsPackage/DemoT.java | UTF-8 | 560 | 3.09375 | 3 | [] | no_license | package com.weShop.allPackage.implementsPackage;
public class DemoT {
public class InnerDemo {
}
public static void main(String[] args) {
D<Cat> d = new D<Cat>();
Fish f = new Fish();
Dog<Fish> dog = new Dog<Fish>();
dog.set(f);
Fish ff = d.name(dog);
ff.get();
}
}
class D<T> {
T k... | true |
4081cc8e229635dfbac1a0983411603915d6587f | Java | jasper-oh/jas-webservice-spring-aws | /src/test/java/com/jasper/self/springboot/domain/posts/PostsRepositoryTest.java | UTF-8 | 973 | 2.25 | 2 | [] | no_license | package com.jasper.self.springboot.domain.posts;
import org.junit.jupiter.api.AfterEach;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import java.util.List;
import static org.assertj.core.api.Assertions... | true |
37e39801922ed7cd5c119f947baa3fa731a2551c | Java | murthymalladi/ds-algos | /src/main/java/searching/PairSum.java | UTF-8 | 657 | 3.46875 | 3 | [] | no_license | package searching;
import java.util.HashSet;
/**
* Created by dmalladi on 10/16/2018.
*/
public class PairSum {
public static void main(String[] args) {
int[] arr = {100,5,7,3,1,6,9,8,14,-90};
int target = 10;
pairSum(arr,target);
}
public static void pairSum(int[] arr,int targe... | true |
d3cb339197a81a3bca11fae88cedc894713d786a | Java | harshakush/ImageServer | /ImageClientAndroid/src/net/appositedesigns/fileexplorer/workers/Finder.java | UTF-8 | 9,500 | 2.265625 | 2 | [] | no_license | package net.appositedesigns.fileexplorer.workers;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.net.MalformedURLException;
import java.net.URI;
import java.util.ArrayList;
i... | true |
19732e92a5f4ba24011514855591b5f91f50a1c3 | Java | svn2github/hsqldb | /base/branches/dev-one/android/test-src/org/hsqldb/lib/ArrayUtilTest.java | UTF-8 | 2,812 | 2.0625 | 2 | [
"BSD-3-Clause"
] | permissive | /* Copyright (c) 2001-2009, The HSQL Development Group
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice, this
* list... | true |
358951755d5719bc2ae85e8ef27edffa810333d7 | Java | jprakash2/e4s | /e4s/src/main/java/com/landisgyr/e4s/context/LVPhase.java | UTF-8 | 1,708 | 2.765625 | 3 | [] | no_license | package com.landisgyr.e4s.context;
/** Information about one of the (generally 3) phases making up an LVLine */
public class LVPhase {
public String lastUpdated;
public double avgV; // average (historical) values
public double avgI;
public double instV; // latest known values
public ... | true |
c6294366ec0edbe5864dea4a870e335389f07804 | Java | paradise1203/JBPractice | /#18_21/VkRestClient/src/main/java/com/aidar/UserApiImpl.java | UTF-8 | 1,025 | 2.203125 | 2 | [] | no_license | package com.aidar;
import org.springframework.web.client.RestTemplate;
public class UserApiImpl implements UserApi {
private RestTemplate restTemplate;
private Token token;
private AudioCollectionResponse audios;
public UserApiImpl() {
restTemplate = new RestTemplate();
}
@Override
... | true |
e5f9558dad3680a3bfed4dd4091ed608c8e9e6af | Java | agent-P/LCARS-Framework | /src/com/spagnola/lcars/elements/LCARSTime.java | UTF-8 | 2,504 | 2.296875 | 2 | [
"MIT"
] | permissive | /**
*
*/
package com.spagnola.lcars.elements;
import java.awt.FontMetrics;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Locale;
import java.util.TimeZone;
import java.util.Timer;
import java.util.TimerTask;
import com.spagnola.lcars.LCARS;
/**
* @author Perry Spagnola
*
*/
pu... | true |
1f4eb04ac88d303f97c7a37b300e6d45c50f59d3 | Java | x303597316/hm_gateway | /src/main/java/com/huamai/dao/TextContentDao.java | UTF-8 | 393 | 1.796875 | 2 | [] | no_license | package com.huamai.dao;
import java.util.List;
import com.huamai.entity.TextContent;
import com.huamai.entity.TreeNode;
public interface TextContentDao {
public List<TreeNode> menuList();
public int insertSelective(TextContent entity);
public TextContent selectByPrimerykey(String id);
public int updateSel... | true |
06a85654df2fcc24690c23fc0a1accaaac27b4e1 | Java | zgort/dogsite | /cms/dao/src/main/java/com/rum/cms/dao/IFileDAO.java | UTF-8 | 916 | 1.945313 | 2 | [] | no_license | package com.rum.cms.dao;
import java.io.IOException;
import org.springframework.web.multipart.MultipartFile;
/**
* @author Hikmat
*
*/
public interface IFileDAO {
/**
* @param multipartFile
* @param fileName
* @throws IllegalStateException
* @throws IOException
*/
public abstract vo... | true |
47afe1620b94a012355fb212106c1fe3e4cf14ae | Java | lijinxi/hc-mdm | /hc-mdm-web/src/main/java/com/hc/scm/mdm/web/controller/BasOrgViewController.java | UTF-8 | 1,193 | 1.984375 | 2 | [] | no_license | package com.hc.scm.mdm.web.controller;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.annotation.Resource;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.Res... | true |
f9ecb8f5a6bf520353ae877c4298da8360067e0a | Java | jgtrz/MiniCalculator | /Multiplier.java | UTF-8 | 141 | 2.25 | 2 | [] | no_license | /**
* @author Jose De Jesus Gutierrez
*/
public interface Multiplier {
//will be used to multiply numbers
public void multiply(int y);
}
| true |
8b797560dafaa10b7b93fdfb27af609ad76b94ec | Java | Rugal/gracker | /src/test/java/ga/rugal/gracker/core/service/impl/HttpCredentialServiceImplTest.java | UTF-8 | 759 | 1.929688 | 2 | [] | no_license | package ga.rugal.gracker.core.service.impl;
import ga.rugal.UnitTestBase;
import org.eclipse.jgit.transport.CredentialsProvider;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
import org.mockito.Mock;
import org.springframework.beans.factory.annotation.Autowired;
/**
*
* @author Rugal Ber... | true |
b71bba793373fab7ba7ca8aac6a46b429dfdd398 | Java | gandrade/assessment | /src/main/java/com/mytaxi/service/car/DefaultCarService.java | UTF-8 | 4,391 | 2.421875 | 2 | [] | no_license | package com.mytaxi.service.car;
import com.mytaxi.dataaccessobject.CarRepository;
import com.mytaxi.domainobject.CarDO;
import com.mytaxi.domainobject.ManufacturerDO;
import com.mytaxi.exception.CarAlreadyInUseException;
import com.mytaxi.exception.ConstraintsViolationException;
import com.mytaxi.exception.EntityNotFo... | true |
705b1a4dd2afaf6646ed743e7787b8f68d85d231 | Java | yaoyebufan/myblog | /myblog/src/main/java/com/sunyue/myblog/service/serviceImpl/CommentServiceImpl.java | UTF-8 | 3,661 | 2.25 | 2 | [] | no_license | package com.sunyue.myblog.service.serviceImpl;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.sunyue.myblog.commons.EmptyUtil;
import com.sunyue.myblog.commons.RegexpUtils;
import com.sunyue.myblog.dao.CommentsMapper;
import com.sunyue.myblog.entity.BaseResult;
import com.su... | true |
79678aecc843a3a85f93d14608838611c95b1a40 | Java | 9Sefa9/Java-Repository | /sonstiges/InputConverter.java | UTF-8 | 821 | 3.671875 | 4 | [] | no_license | package Exceptions.Exceptions;
import java.util.Scanner;
public class InputConverter {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
String input[] = new String[5]; // erstellt 5 elemente
for (int i = 0; i < input.length; i++) {
input[i] = sc.nextLine(); // einzelne ... | true |
7dd24db9918713c2e81de7a5d549bad7b8afae20 | Java | teruiV/jdk_learning | /src/main/java/designPattern/factory/Apple.java | UTF-8 | 194 | 2.71875 | 3 | [] | no_license | package designPattern.factory;
/**
* @author jianweilin
* @date 2018/6/9
*/
public class Apple implements Fruit {
@Override
public String sayName() {
return "Apple";
}
}
| true |
7b880f97b128ecb13f00994de827c22d73e03eff | Java | yin-bp/activiti-engine-5.12 | /activiti-engine/main/java/org/activiti/engine/impl/cmd/RemoveTaskVariablesCmd.java | UTF-8 | 1,055 | 2.109375 | 2 | [
"Apache-2.0"
] | permissive | package org.activiti.engine.impl.cmd;
import java.util.Collection;
import org.activiti.engine.impl.interceptor.CommandContext;
import org.activiti.engine.impl.persistence.entity.TaskEntity;
/**
* @author roman.smirnov
* @author Joram Barrez
*/
public class RemoveTaskVariablesCmd extends NeedsActiveTas... | true |
8d1277911147e07086a1d3814f98092b44ab1941 | Java | apache/geode | /geode-core/src/integrationTest/java/org/apache/geode/internal/cache/PartitionedRegionSingleNodeOperationsJUnitTest.java | UTF-8 | 50,239 | 1.804688 | 2 | [
"BSD-3-Clause",
"MIT",
"Apache-2.0",
"LicenseRef-scancode-public-domain",
"BSD-2-Clause",
"LicenseRef-scancode-unknown"
] | permissive | /*
* Licensed to the Apache Software Foundation (ASF) under one or more contributor license
* agreements. See the NOTICE file distributed with this work for additional information regarding
* copyright ownership. The ASF licenses this file to You under the Apache License, Version 2.0 (the
* "License"); you may not ... | true |
4d01f7753d8e29d9d0639fcce6a6ae69955a2c7f | Java | docwei2050/SimpleMusic | /app/src/main/java/com/docwei/simplemusic/TimeUtil.java | UTF-8 | 988 | 3 | 3 | [] | no_license | package com.docwei.simplemusic;
/**
* Created by liwk on 2020/10/24.
*/
public class TimeUtil {
public static String seconds2Format(int seconds) {
long hour = seconds / (60 * 60);
long minute = (seconds % (60 * 60)) / 60;
long second = seconds % 60;
String sh = "00";
if (h... | true |
eb54ba1515753f06f5ecdcd95679c79b41800357 | Java | hyb1234hi/reverse-wechat | /weixin6519android1140/src/sourcecode/com/tencent/mm/ui/conversation/a/e.java | UTF-8 | 7,054 | 1.507813 | 2 | [] | no_license | package com.tencent.mm.ui.conversation.a;
import android.content.Context;
import com.tencent.gmtrace.GMTrace;
import com.tencent.mm.sdk.platformtools.bg;
import com.tencent.mm.sdk.platformtools.w;
import com.tencent.mm.storage.t;
import com.tencent.mm.y.at;
import com.tencent.mm.y.b.b.b;
import com.tencent.mm.y.b.d;
i... | true |
6b373e89263c6029162a1e6bffdc28f78bf53547 | Java | nathanvander/lava2 | /OpCodes.java | UTF-8 | 4,825 | 2.109375 | 2 | [] | no_license | package lava2;
public interface OpCodes {
public final static char NOP = (char)0;
//Group 1: Logic
public final static char ISHL = (char)0x78; //120
public final static char ISHR = (char)0x7A; //122
public final static char IUSHR =(char)0x7C; //124
public final static char IAND = (char)0x7E; ... | true |
4b8f737c63f6cc8679ee64e54cd8780d4baf383c | Java | tkinsoon/cnasg-custom-kubeconfig | /src/main/java/com/vmware/cnasg/kubeconfig/CSRGenerator.java | UTF-8 | 5,065 | 1.804688 | 2 | [] | no_license | package com.vmware.cnasg.kubeconfig;
import io.fabric8.kubernetes.api.model.*;
import io.fabric8.kubernetes.client.internal.KubeConfigUtils;
import org.bouncycastle.openssl.jcajce.JcaPEMWriter;
import org.bouncycastle.operator.ContentSigner;
import org.bouncycastle.operator.jcajce.JcaContentSignerBuilder;
import org.b... | true |
2f2465035169b1ce524512d6e63d2a1f57089420 | Java | FriedrichF/icg | /icg-ss16/src/ogl/cube/RotatingCube.java | UTF-8 | 5,446 | 2.796875 | 3 | [] | no_license | /*******************************************************************************
* Copyright (c) 2013 Henrik Tramberend, Marc Latoschik.
* All rights reserved.
*******************************************************************************/
package ogl.cube;
import static org.lwjgl.glfw.GLFW.GLFW_KEY_R;
import icg... | true |
655c64c2f336827d863d8c59377269c560fda872 | Java | HalilCivelek/kolhis | /src/main/java/com/kolhis/ecommerce/util/MapperUtil.java | UTF-8 | 518 | 2.328125 | 2 | [] | no_license | package com.kolhis.ecommerce.util;
import lombok.AllArgsConstructor;
import org.modelmapper.ModelMapper;
import org.springframework.stereotype.Component;
import java.util.Collection;
import java.util.List;
import java.util.stream.Collectors;
@Component
@AllArgsConstructor
public class MapperUtil extends ModelMapper ... | true |
e4e99a5108facae2800ddc10516627b396614119 | Java | stevendroid/codetest-e463bdcc | /FibonacciViewer/app/src/main/java/com/stevenrengifo/fibonacciviewer/views/List.java | UTF-8 | 601 | 2.203125 | 2 | [] | no_license | package com.stevenrengifo.fibonacciviewer.views;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.widget.ArrayAdapter;
import android.widget.ListView;
import com.stevenrengifo.fibonacciviewer.R;
import java.util.ArrayList;
public class List extends Activity {
... | true |
257d0fa0dab316642d68e22ae2d56ecea1a3d3cc | Java | tectronics/the-last-battle | /hostelbrum/source/HostelBrumMobile/hostelbrumfunc/src/br/edu/unibratec/hostelbrumfunc/classesbasicas/MudancaStatusUH.java | UTF-8 | 811 | 2.359375 | 2 | [] | no_license | package br.edu.unibratec.hostelbrumfunc.classesbasicas;
import java.util.Date;
public class MudancaStatusUH {
Funcionario funcionario;
UH uh;
Date dataAlteracao;
public MudancaStatusUH() { }
public MudancaStatusUH(Funcionario funcionario, UH uh,
Date dataAlteracao) {
super();
this.funcionario ... | true |
3a2dd50966a3656529bbb23013c10b3d54ed25ea | Java | pankajk86/MySandbox | /companies/apple/DataStreamsAsDisjointIntervals.java | UTF-8 | 1,532 | 3.234375 | 3 | [] | no_license | package apple;
import java.util.ArrayList;
import java.util.List;
import java.util.TreeMap;
import facebook.Interval;
public class DataStreamsAsDisjointIntervals {
public static void main(String[] args) {
SummaryRanges s = new SummaryRanges();
s.addNum(1);
print(s.getIntervals());
s.addNum(3);
print(s.ge... | true |
dba2689af2f999d3f59d0cc4f83d450b77a85aba | Java | anshul559/Store | /shopping/src/main/java/net/ash/shopping/exception/CategoryNotFoundException.java | UTF-8 | 426 | 2.1875 | 2 | [] | no_license | package net.ash.shopping.exception;
public class CategoryNotFoundException extends Exception{
/**
*
*/
private static final long serialVersionUID = 1L;
private String msg;
public CategoryNotFoundException(String msg) {
this.msg = System.currentTimeMillis() +":"+ msg;
}
public CategoryNotFoundExceptio... | true |
6d2884a00193fc2e35d9eeb3a4949ce10741582b | Java | Neembuu/neembuunow | /neembuu-android/srcs/output_jar.src/twitter4j/auth/NullAuthorization.java | UTF-8 | 1,152 | 2.09375 | 2 | [] | no_license | package twitter4j.auth;
import java.io.ObjectStreamException;
import java.io.Serializable;
import twitter4j.internal.http.HttpRequest;
public class NullAuthorization
implements Authorization, Serializable
{
private static NullAuthorization SINGLETON = new NullAuthorization();
private static final long... | true |
3e8db8c1c99a63155a04d8b7fb82f52b7b9560d9 | Java | wdxxs2z/server-mmoniter | /src/com/mmonit/DaoImpl/RemotePortDaoImpl.java | UTF-8 | 819 | 2.15625 | 2 | [] | no_license | package com.mmonit.DaoImpl;
import org.springframework.jdbc.core.JdbcTemplate;
import com.mmonit.Dao.RemotePortDao;
import com.mmonit.bean.RemotePortBean;
public class RemotePortDaoImpl implements RemotePortDao{
private JdbcTemplate jt;
public JdbcTemplate getJt() {
return jt;
}
pu... | true |
239b712554cfc6199e389b8cf33d5ac411d2b8c8 | Java | NaluKit/gwt-boot-starter-nalu | /gwt-boot-starter-nalu-server/src/test/java/com/github/nalukit/gwtbootstarternalu/server/resource/generator/ModuleDescriptorGeneratorTest.java | UTF-8 | 3,318 | 1.789063 | 2 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | /*
* Copyright (c) 2018 - 2020 - Werner Elsler, Frank Hossfeld
*
* 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... | true |
b795eca369f1e905695824783fa283a021f84133 | Java | bitchtoy/Huipuapp | /app/src/main/java/com/example/administrator/huipuapp/untils/UtilBox.java | UTF-8 | 18,273 | 2.28125 | 2 | [] | no_license | package com.example.administrator.huipuapp.untils;
import android.Manifest;
import android.app.Activity;
import android.app.Dialog;
import android.app.ProgressDialog;
import android.content.Context;
import android.content.Intent;
import android.content.pm.PackageManager;
import android.graphics.Point;
import android.n... | true |
40931b02b25d3581fdb4b7314ae735a329906bf5 | Java | Samourai-Wallet/samourai-wallet-android | /app/src/main/java/com/samourai/wallet/pinning/SSLVerifierUtil.java | UTF-8 | 4,076 | 1.992188 | 2 | [
"Unlicense"
] | permissive | package com.samourai.wallet.pinning;
import android.content.Context;
import com.samourai.wallet.util.WebUtil;
import org.apache.http.HttpResponse;
import org.apache.http.client.methods.HttpPost;
import org.apache.http.conn.scheme.Scheme;
import org.apache.http.conn.scheme.SchemeRegistry;
import org.apache.http.conn.... | true |
f58b345acafd568d1a7197a0a108d9ddc771c8eb | Java | beyanerrahim/yurt | /src/yurt_project/Kuran_kursu.java | UTF-8 | 1,296 | 2.578125 | 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 yurt_project;
/**
*
* @author Bayoon
*/
public class Kuran_kursu extends Course{
private int parca_sa... | true |
46711df15dfbf61f87ff5783f812a7897518dd1b | Java | vinspier/ChineseStrokeSort | /test/TestObjectStrokeComparator.java | UTF-8 | 3,338 | 3 | 3 | [] | no_license |
import com.stroke.comparator.ObjectStrokeComparator;
import com.stroke.entity.Stroke;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
public class TestObjectStrokeComparator {
public static void main(String[] args) {
List<Stroke> strokes = new ArrayList<Stroke>();
Stroke strok... | true |
2cc5ad2e6155858960c0c9a8bcde86832b9e805f | Java | Rsisi/22C-Final-Project | /22C-Final/src/UserPackage/User.java | UTF-8 | 2,389 | 3.109375 | 3 | [] | no_license | package UserPackage;
import DataStructurePackage.*;
import DataStructurePackage.Comparable;
public class User implements FileOutPutFormat, Contain, Comparable<User> {
private String username;
private String password;
private String email;
private String securityAnswer;
public User(String username, String passwo... | true |
51985ad553139b85575d4458c1ad68dd847a17f7 | Java | Lrrent/Health | /app/src/main/java/com/example/da/health/personal_info_activity.java | UTF-8 | 2,559 | 2.375 | 2 | [] | no_license | package com.example.da.health;
import android.database.Cursor;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import java.text.SimpleDateFormat;
import java.util.Date;
/**
* Created by pc on 2017/4/15... | true |
1ba6751643a8ba52adcfdfde73def90452b46fbc | Java | ddamiani/codejam-solutions | /src/main/java/com/ddamiani/codejam/tictactoe/TicTacToe.java | UTF-8 | 4,096 | 3.421875 | 3 | [] | no_license | package com.ddamiani.codejam.tictactoe;
import com.ddamiani.codejam.filehandler.CodeJamFileHandler;
import com.ddamiani.codejam.tictactoe.Board.Entry;
import java.io.*;
import java.util.*;
/**
* Main class for the Tic Tac Toe challenge. Qualification Round 2013: Problem A.
*/
public final class TicTacToe extends C... | true |
191d0e811a926e9e4e0ae26f9601501a7f6bee33 | Java | Rasmur/Notes | /app/src/main/java/com/example/igory/notes/ListView/CustomAdapter.java | UTF-8 | 1,954 | 2.21875 | 2 | [] | no_license | package com.example.igory.notes.ListView;
import android.content.Context;
import android.content.res.Resources;
import android.graphics.PorterDuff;
import android.support.v7.widget.RecyclerView;
import android.text.Layout;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import an... | true |
90fa208e35d868f3f371f12627c7e8fac149fb48 | Java | dhavalsavani/CodingPractice | /src/main/java/challenges/kickstart/ks2020/roundC/StableWall.java | UTF-8 | 720 | 3.046875 | 3 | [] | no_license | package challenges.kickstart.ks2020.roundC;
import java.util.Arrays;
import java.util.Date;
import java.util.Scanner;
import java.util.concurrent.TimeUnit;
public class StableWall {
public static void main(String[] args) {
try(Scanner s = new Scanner(System.in)) {
//Taking Number of Test cases
int t = s.nex... | true |
0753327c4e91a3c7615c78085d59a8141553c9f7 | Java | ROOOOO/Study | /Discrete Math/Undirected Graphs/CompSet.java | UTF-8 | 1,225 | 3.359375 | 3 | [] | no_license | import java.util.ArrayList;
import java.util.Scanner;
public class CompSet {
private static class Elem{
boolean used;
ArrayList<Integer> list;
}
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
int n = in.nextInt();
int m = in.nextInt()... | true |
637426f75d7a621f03486ced03867c58b47eae6a | Java | headmadegames/ArtTag | /core/src/headmade/arttag/screens/StageScreen.java | UTF-8 | 2,335 | 1.96875 | 2 | [
"Apache-2.0"
] | permissive | /*******************************************************************************
* Copyright 2015 Headmade Games
*
* 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
*
* ... | true |
1b458e3e873a5c75db0ba5056f86be7391a02d59 | Java | dfserrano/r2c | /src/main/java/com/ssrg/r2c/migration/HBase.java | UTF-8 | 8,810 | 1.96875 | 2 | [] | no_license | package com.ssrg.r2c.migration;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
import java.util.NavigableMap;
import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.hbase.HBaseConfiguration;
import org.apache.hadoop.hbase... | true |
7eb536ddace1f87be40b77deeeb299ccf6a36c91 | Java | mcdowesj/DesignPatterns_src | /com/creational/factoryMethodPattern/autos/Automobile.java | UTF-8 | 138 | 2.578125 | 3 | [] | no_license | package com.creational.factoryMethodPattern.autos;
public interface Automobile {
public void turnOn();
public void turnOff();
}
| true |
89108931cfea06d2115a29f8849859509c95c407 | Java | dongnnd/plan | /app/src/main/java/com/example/plan/presenter/AbsController.java | UTF-8 | 2,494 | 2.03125 | 2 | [] | no_license | package com.example.plan.presenter;
import android.app.Application;
import android.arch.lifecycle.AndroidViewModel;
import android.content.Context;
import com.example.plan.entities.RemindMe;
import com.example.plan.entities.Repeat;
import com.example.plan.entities.Task;
import com.example.plan.presenter.contant.DataL... | true |
e5f7c80ca94774fa061757b4b3b28b1ddeb1ac5e | Java | AndreasSandberg/spar | /src/main/java/se/sparavisering/PersondetaljerTYPE.java | ISO-8859-2 | 14,029 | 1.703125 | 2 | [
"Apache-2.0"
] | permissive | //
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-833
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2015... | true |
4f51d5a4a196397bab90d38650fcfa71d7b8af40 | Java | altrouge/navjavfoxowl | /FoxyOwl/tests/fr/supaero/tags/RechercheEtiquetteTest.java | UTF-8 | 1,424 | 2.8125 | 3 | [] | no_license | package fr.supaero.tags;
import org.junit.*;
import static org.junit.Assert.*;
import java.util.Vector;
/**
* Unit Test for class RechercheEtiquette
*
* <p>Created: Tue Nov 9 10:13:38 2010</p>
*
* @author <a href="mailto:garion@supaero.fr">Christophe Garion</a>
* @version 1.0
*/
public class RechercheEtiquett... | true |
c003293dace8515508e7fbc36ae9d9b65bc354b0 | Java | andrewzchen/ClueGame | /Cluegame/src/experiment/IntBoard.java | UTF-8 | 3,168 | 3.265625 | 3 | [] | no_license | /**
* Authors:
* Andrew Chen
* Jordyn McGrath
*/
package experiment;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Map;
import java.util.Set;
public class IntBoard {
private Map <BoardCell, Set<BoardCell>> adjMtx;
private Set<BoardCell> possibleTargets;
private Set<BoardCel... | true |
06a2fdfd75cdd3b1a2dbd1b8486ffb9bc8e6004b | Java | georgekarahua/IntranetJavaEE2019-2020 | /src/gr/hua/dit/dao/ApplicationDAOImpl.java | UTF-8 | 3,158 | 2.6875 | 3 | [] | no_license | package gr.hua.dit.dao;
import java.util.List;
import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.hibernate.query.Query;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;
import gr.hua.dit.entities.Application;
import gr.hua.di... | true |
9879cd9fadf4b372bbe1b7447c69373f98c4a35a | Java | HanChangHun/MobilePlus-Prototype | /aosp/javalib/android/content/ContentProviderClient$NotRespondingRunnable.java | UTF-8 | 785 | 1.742188 | 2 | [] | no_license | package android.content;
import android.util.Log;
class NotRespondingRunnable implements Runnable {
private NotRespondingRunnable() {}
public void run() {
StringBuilder stringBuilder = new StringBuilder();
stringBuilder.append("Detected provider not responding: ");
stringBuilder.append(ContentProvi... | true |
d3c91f8d4f9de60cc6c8c357bcd4b4653655f1cc | Java | Portakalim/human-resource-management-system | /src/main/java/com/portakalim/hrms/business/concretes/EmployerManager.java | UTF-8 | 1,562 | 2.359375 | 2 | [] | no_license | package com.portakalim.hrms.business.concretes;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.portakalim.hrms.business.abstracts.EmployerService;
import com.portakalim.hrms.business.constants.Messages;
import c... | true |
cd9432717a9f2b6bd44bc940b559ba21978a9102 | Java | Omar0Tarek/Hearthstone-Clone | /src/view/GameView.java | UTF-8 | 563 | 2.4375 | 2 | [] | no_license | package view;
import java.awt.*;
import javax.swing.*;
@SuppressWarnings("serial")
public class GameView extends JFrame implements PlayGroundListener {
public GameView() {
initUI();
}
private void initUI() {
add(new PlayGround(this));
setUndecorated(true);
setResizable(false);
pack();
setDefaultClo... | true |
f18983c817c9edbde41cee16dfb31ab85534cb22 | Java | andrewpakhomov/aem-training | /core/src/main/java/com/epam/aem/training/core/searchservice/SearchServiceFactory.java | UTF-8 | 550 | 1.742188 | 2 | [] | 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 com.epam.aem.training.core.searchservice;
import java.util.List;
import org.apache.sling.api.resource.ResourceResolver;
/**
... | true |
5bdb7bf0e54e22de2ca6cc94e972bd3093aa3f07 | Java | niraliabhani18/MyProfileApp | /src/main/java/com/sample/ProfileService.java | UTF-8 | 842 | 2.796875 | 3 | [] | no_license | package com.sample;
import com.sample.details.DetailsType;
import java.util.ArrayList;
import java.util.List;
public class ProfileService {
public List getAvailableDetails(DetailsType type) {
List details = new ArrayList();
if(type.equals(DetailsType.EDUCATIONDETAILS)) {
details.add("B.Tech Comp... | true |
563e05135bdbf8ce927a5945dd9c0b5da1d06317 | Java | TYRER/MyBlog | /MyBlog/src/main/java/com/jyh/action/LetterAction.java | UTF-8 | 2,306 | 2.359375 | 2 | [] | no_license | package com.jyh.action;
import java.io.IOException;
import java.util.Calendar;
import com.jyh.domain.Letter;
import com.jyh.domain.User;
import com.jyh.service.LetterService;
public class LetterAction extends MyBaseAction {
private LetterService letterService;
private Letter letter;
private User user;
public Le... | true |
26532a17e7bd59873bedd87f3cc8d38c9b59441a | Java | mbortolotti/org.rexpd.core | /src/org/rexpd/core/base/BaseUtils.java | UTF-8 | 3,578 | 2.78125 | 3 | [] | no_license | package org.rexpd.core.base;
import java.util.ArrayList;
import java.util.List;
public abstract class BaseUtils {
/**
* Should be put in IBase
* @param base
* @param type
* @return
*/
public static final List<? extends IBase> getNodes(IBase base, Class<? extends IBase> type, boolean fulltree... | true |
c4bd9832ab7cedd76bf30cff7a2ca80a6a88a633 | Java | manojkur/CSSE333_DatabaseConnectivityApp | /src/services/KingdomService.java | UTF-8 | 23,969 | 2.28125 | 2 | [] | no_license | package services;
import java.awt.BorderLayout;
import java.awt.CardLayout;
import java.awt.Dimension;
import java.awt.FlowLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.sql.CallableStatement;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import ... | true |
fea4ac9bbfc81e021e62bfb9a0d77b91b4ece53b | Java | guptanitesh-ng/learnspace | /webservice-soap/Examples/AxisWSDL2Java/src/com/cts/client/AxisWSDL2JavaClient.java | UTF-8 | 611 | 2.546875 | 3 | [] | no_license | package com.cts.client;
import com.cts.math.ws.Add;
import com.cts.math.ws.AddE;
import com.cts.math.ws.AddResponseE;
import com.cts.service.MathServiceStub;
public class AxisWSDL2JavaClient {
/**
* @param args
* @throws Exception
*/
public static void main(String[] args) throws Exception {
MathServiceStu... | true |
2041598b9c734f875e22d550759c31b7951dbe86 | Java | kencana16/KampungAnggrek-Android | /app/src/main/java/com/kencana/kampunganggrek/HistoryActivity.java | UTF-8 | 4,600 | 2.015625 | 2 | [] | no_license | package com.kencana.kampunganggrek;
import androidx.appcompat.app.AppCompatActivity;
import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;
import android.app.ProgressDialog;
import android.content.Context;
import android.content.Intent;
import android.content.Share... | true |
bacf0dc553e9815ed4974568d941fff2df289bab | Java | remzitepe/CS102-Algorithm-and-Programming-2- | /Lab03/Lab03b/IntBag.java | UTF-8 | 3,631 | 3.765625 | 4 | [] | no_license | /**
* This is the IntBag class of lab01
* @author Remzi_Tepe
* @version 19.02.2020
*/
public class IntBag{
// properties
private int[] bag;
public int valid;
// constructors
// creates an empty bag with 100 sized.
public IntBag() {
bag = new int... | true |
38240caf0f0d5544349ee140a16bbb34d79f22b7 | Java | NiHaoyin/pts-service | /src/main/java/com/nihaoyin/ptsservice/bean/Vertex.java | UTF-8 | 659 | 2.609375 | 3 | [] | no_license | package com.nihaoyin.ptsservice.bean;
public class Vertex {
private final int vertexId;
private final Position position;
public Vertex(int vertexId, Position position) {
this.vertexId = vertexId;
this.position = position;
}
public int getVertexId() { return vertexId; }
public... | true |
424bd28a5a29fb978ed22aff75b37853c256829a | Java | zhangdongkun/DesignPatterns | /src/cn/zdk/strategy/Test.java | UTF-8 | 273 | 2.15625 | 2 | [] | no_license | package cn.zdk.strategy;
import cn.zdk.filter.Person;
public class Test {
public static void main(String[] args) {
Operater operater = new Operater(new OperateAdd());
int serult = operater.operate(1, 2);
System.err.println(serult);
}
}
| true |
7285c394e5b374202e2d2029975682646d9a3bce | Java | jcoelh0/PCOO | /Lecture03/practice03/src/ex1/Store.java | UTF-8 | 936 | 3.4375 | 3 | [] | no_license | package ex1;
import java.util.LinkedList;
import java.util.Queue;
import java.util.Random;
import java.util.logging.Level;
import java.util.logging.Logger;
/**
*
* @author João Coelho
*/
public class Store {
Random random;
Queue<String> products;
boolean limitProduction;
public Store(){
products = new Link... | true |
0bcb299c0af30e69a5d99230967d5a7e5aaa3ce6 | Java | glelouet/JSwaggerMaker | /Examples/Discourse/src/generated/java/discourse/example/com/anonymous/admin/sitesettings/TrackExternalRightClicks.java | UTF-8 | 891 | 2.171875 | 2 | [] | no_license | package discourse.example.com.anonymous.admin.sitesettings;
import java.util.HashMap;
import java.util.Map;
import discourse.example.com.Anonymous;
import fr.lelouet.jswaggermaker.client.common.impl.DelegateTransfer;
public class TrackExternalRightClicks
extends DelegateTransfer<Anonymous>
{
public TrackExte... | true |
c24764e4eecd76cbd1490a79b63fed7c761e30fc | Java | gochaorg/cofe.xyz-next | /sql/cpool/src/main/java/xyz/cofe/sql/cpool/proxy/GenericProxy.java | UTF-8 | 17,684 | 1.859375 | 2 | [
"MIT"
] | permissive | /*
* The MIT License
*
* Copyright 2017 user.
*
* Данная лицензия разрешает, безвозмездно, лицам, получившим копию данного программного
* обеспечения и сопутствующей документации (в дальнейшем именуемыми "Программное Обеспечение"),
* использовать Программное Обеспечение без ограничений, включая неограниченное п... | true |
44415aeeee9abaf408a5b5f941fa68a3199fb47c | Java | zootella/learning-bittorrent | /tests/com/limegroup/gnutella/stubs/UploadManagerStub.java | UTF-8 | 1,384 | 2.609375 | 3 | [] | no_license |
package com.limegroup.gnutella.stubs;
import com.limegroup.gnutella.UploadManager;
/**
* stub for easier testing. Feel free to override more methods/getters
*/
public class UploadManagerStub extends UploadManager {
int _numQueuedUploads;
boolean _isBusy;
boolean _isQueueFull;
int _uploadsInProgress;
publ... | true |
4b8292c8c4a4071c3c89bf445ab31cc5dcd1268b | Java | Tasswon/Introduction-to-Java-Two | /Java Set 3/12_Geometric Object and Octagon/TestOctagon.java | UTF-8 | 495 | 3.546875 | 4 | [] | no_license | //Name: Joseph Tassone
public class TestOctagon {
public static void main(String[]args) throws CloneNotSupportedException {
Octagon octagon1 = new Octagon(5);
Octagon octagon2 = (Octagon)octagon1.clone();
System.out.printf("The area of ocatagon 1 is %.2f", octagon1.getArea());
... | true |
b5ad634d90c70fb2ab4035cd12a6d1a021af0d12 | Java | WQJ-JS/plupload | /src/main/java/com/jusfoun/controller/PluploadController.java | UTF-8 | 1,373 | 2.484375 | 2 | [] | no_license | package com.jusfoun.controller;
import java.io.File;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping... | true |
387def41d70c762fcad233ae324ad545396e30bd | Java | maneesh1318/JavaDSAlgo | /Practice/src/com/practice/swiggyonlinetest/CarImpl.java | UTF-8 | 425 | 2.8125 | 3 | [] | no_license | package com.practice.swiggyonlinetest;
public class CarImpl implements Car{
String registrationNo;
String color;
CarImpl(String registrationNo,String color){
this.registrationNo = registrationNo;
this.color = color;
}
@Override
public String getColor() {
return color;... | true |
2c3b1484971db0a13e9108de85aa89b0da003447 | Java | JoeyChow1989/YiShanHome-master | /app/src/main/java/com/sshy/yjy/strore/mate/main/index/IndexAdapter.java | UTF-8 | 11,708 | 1.671875 | 2 | [] | no_license | package com.sshy.yjy.strore.mate.main.index;
import android.content.Context;
import android.content.Intent;
import android.support.v4.app.FragmentActivity;
import android.support.v4.view.ViewPager;
import android.support.v7.widget.AppCompatImageView;
import android.support.v7.widget.LinearLayoutManager;
import android... | true |
38fbc6e0959d55ae176f58b4076274947d3f1e2d | Java | wuxianghua/self_project_w_c_t | /app/src/main/java/net/imoran/auto/morwechat/service/WechatDataService.java | UTF-8 | 4,233 | 2 | 2 | [] | no_license | package net.imoran.auto.morwechat.service;
import android.os.Bundle;
import android.os.Message;
import android.util.Log;
import com.google.gson.Gson;
import net.imoran.auto.morwechat.bean.UpdateUnreadMessage;
import net.imoran.auto.morwechat.bean.WeMessageBean;
import net.imoran.auto.morwechat.fragment.InformationFr... | true |
4908fc49c6dc28a6bd5cb1203722b70d85d6679b | Java | youssefhribach1/java-and-sqlite-jdbc | /working with files/writte_file.java | UTF-8 | 646 | 3.359375 | 3 | [] | no_license | package working_with_files;
import java.io.FileWriter;
public class writte_file {
public static void main(String[] args) {
// TODO Auto-generated method stub
/*
try {
FileWriter fw=new FileWriter("test.txt");
fw.write("hello i'am a file written by Youssef Hribach");
fw.close();
}catch(Excep... | true |
9cf7c2103b6154dac8f5ccceec39592b32f34381 | Java | choleece/java-base | /jdk/src/main/java/cn/choleece/base/jdk/collection/queue/PriorityQueueClient.java | UTF-8 | 1,450 | 3.65625 | 4 | [] | no_license | package cn.choleece.base.jdk.collection.queue;
import lombok.Data;
import java.util.Comparator;
import java.util.PriorityQueue;
import java.util.Queue;
/**
* @author choleece
* @Description: 优先队列的使用
* @Date 2020-05-29 23:38
**/
public class PriorityQueueClient {
public static void main(String[] args) {
... | true |
e99d12b9307821fd3f7497dbcd559936d08ea2b4 | Java | Hasindu-Jayasinghe/31.03-online-food-orderig-system | /src/main/java/lk/nsbm/onlinefoodorderingsystem/service/impl/UserServiceImpl.java | UTF-8 | 2,872 | 2.28125 | 2 | [
"Apache-2.0"
] | permissive | package lk.nsbm.onlinefoodorderingsystem.service.impl;
import lk.nsbm.onlinefoodorderingsystem.dto.ContactDetailsDto;
import lk.nsbm.onlinefoodorderingsystem.dto.OrderDto;
import lk.nsbm.onlinefoodorderingsystem.dto.UserCredentialDto;
import lk.nsbm.onlinefoodorderingsystem.dto.UserDto;
import lk.nsbm.onlinefoodorderi... | true |
5650c67871f32b1d73f621c7e902a0802df31e56 | Java | lk4800/Spring | /ex00/src/main/java/org/zerock/dao/MemberDAOImpl.java | UTF-8 | 871 | 2.4375 | 2 | [] | no_license | package org.zerock.dao;
import org.apache.ibatis.session.SqlSession;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;
import org.zerock.vo.Member7VO;
@Repository //@Repository는 스프링에서 모델 DAOImpl을 인식하게 한다
public class MemberDAOImpl implements MemberDAO {
... | true |
613df907b2f3f1145c4225822f655b37308f1ac1 | Java | algkazakov/2019-08-otus-spring-kazakov | /spring08ht/src/test/java/ru/otus/spring/dao/CommentDaoJPATest.java | UTF-8 | 1,909 | 2.484375 | 2 | [] | no_license | package ru.otus.spring.dao;
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.autoconfigure.orm.jpa.DataJpaTest;
import org.springframework.boot.test.autoconfigure.orm.jpa.TestEntityManager;
i... | true |
b624cfdaf51c39081561a37d9dea525ced31ce5c | Java | FuYingju/SpringCloudPro | /microservice/microservice-order-consumer/src/main/java/com/example/service/IServiceHystrix.java | UTF-8 | 471 | 1.859375 | 2 | [] | no_license | package com.example.service;
import com.example.service.impl.IServiceHystrixImpl;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import java.util.Map;
@FeignClient(value="PROVIDER",fallback = IServiceHystrixImpl.class)
public interface IServi... | true |
95f60fba9898e6136fec871c82948ce69711158d | Java | kiranksrm/CoreJavaTraining | /OOPS/src/Shape.java | UTF-8 | 41 | 2.234375 | 2 | [] | no_license |
public interface Shape {
int area();
}
| true |
c6ead6f5866d0a9a25ab0d1a8a2db1641007129d | Java | emamian/mobisn | /src/edu/ndsu/cs/mobisn/GUIMessages.java | UTF-8 | 2,706 | 2.671875 | 3 | [] | no_license | package edu.ndsu.cs.mobisn;
import java.util.Enumeration;
import java.util.Hashtable;
import java.util.Vector;
import javax.microedition.lcdui.Command;
import javax.microedition.lcdui.CommandListener;
import javax.microedition.lcdui.Displayable;
import javax.microedition.lcdui.Form;
import javax.microeditio... | true |
cdc8b45703e91de2005f3ca622c4e924e45ed669 | Java | anchal180591/killbill-adyen-plugin | /src/test/java/org/killbill/billing/plugin/adyen/client/payment/service/TestAdyenPaymentRequestSender.java | UTF-8 | 7,611 | 1.664063 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2014-2016 Groupon, Inc
* Copyright 2014-2016 The Billing Project, LLC
*
* The Billing Project licenses this file to you 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... | true |
18759a35f591900e0f984b90316c0fd89d2145fe | Java | justomiguel/trucometer | /trucometer/src/com/globant/settings/Settings.java | UTF-8 | 1,591 | 2.5625 | 3 | [] | no_license | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.globant.settings;
/**
*
* @author justo.vargas
*/
public class Settings {
// set the differents modes of ui
private static final String FOSFOROS = "FOSFOROS";
private static final String POR... | true |
28bf3f705933965123b21c81d0ea5eb90b3fd7c7 | Java | QuratulainAli/ict-oosd-team-mark | /travel-experts-view/src/ca/sait/oosd/components/CustomerDragList.java | UTF-8 | 893 | 2.3125 | 2 | [] | no_license | package ca.sait.oosd.components;
import ca.sait.oosd.business.TEObject;
import ca.sait.oosd.listeners.CustomerDragGestureListener;
import java.awt.dnd.DnDConstants;
import java.awt.dnd.DragSource;
import javax.swing.DefaultListModel;
import javax.swing.JList;
/**
*
* @author duminda
* @purpose This is the drag lis... | true |
9797eddebb5f4c3f05032262a770e4017fdba746 | Java | micha0079/wikidumpreader | /src/main/java/com/wiki/wikidumpreader/WikiDumpReader.java | UTF-8 | 6,112 | 2.296875 | 2 | [] | no_license | /**
* @author Michael
* @date 09.07.2013
*/
package com.wiki.wikidumpreader;
import java.awt.print.PageFormat;
import java.io.File;
import java.io.FileInputStream;
import java.io.InputStream;
import javax.xml.bind.annotation.XmlInlineBinaryData;
import javax.xml.stream.XMLEventReader;
import javax.xml... | true |
0961a278accbc8d5bd862b90fa5d9a7b44cbe843 | Java | Explorer1092/biubiubiu | /framwork/WeTest/target/test-classes/com/weibo/model/Account.java | UTF-8 | 1,005 | 1.945313 | 2 | [] | no_license | package com.weibo.model;
public class Account {
private long uid;
private String screen_name;
private String email;
private int id;
private String password;
private int state;
private String groupID;
public long getUid() {
return uid;
}
public void setUid(long uid) {
this.uid = uid;
}
public String get... | true |
198fbc0513ea67f910d40c2286097e1b9c30ba57 | Java | FelipeGO13/CreditCard-Microservice | /Invoice/src/main/java/br/com/itau/invoice/clients/payment/PaymentClient.java | UTF-8 | 669 | 1.796875 | 2 | [] | no_license | package br.com.itau.invoice.clients.payment;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
@FeignClient(name="PAYMENT", config... | true |
33efc7a559f80a80383750aa27dfe5a041f15c5a | Java | opennetworkinglab/onos | /apps/optical-model/src/main/java/org/onosproject/net/optical/util/OpticalIntentUtility.java | UTF-8 | 9,658 | 1.921875 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2017-present Open Networking Foundation
*
* 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 appli... | true |
6ab12afc9d7eb350b59f6f78c39dc3c2bcf8bee6 | Java | CAPCHIK/SamsungPersonalProject | /app/src/main/java/ru/capchik/personalproject/azureDevOpsModels/TriggerInfo.java | UTF-8 | 1,168 | 2.046875 | 2 | [] | no_license | package ru.capchik.personalproject.azureDevOpsModels;
import com.google.gson.annotations.SerializedName;
public class TriggerInfo {
@SerializedName("ci.sourceBranch")
private String ciSourceBranch;
@SerializedName("ci.sourceSha")
private String ciSourceSha;
@SerializedName("ci.message")
privat... | true |