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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
5bfe7c7c0643f95c9c0b496f9dc8c08d15cb295e | Java | ljppff1/di_an_yi_liao | /javaapk.com-Diabetes/src/com/dian/diabetes/activity/sugar/adapter/TotalPopAdapter.java | UTF-8 | 984 | 2.21875 | 2 | [] | no_license | package com.dian.diabetes.activity.sugar.adapter;
import java.util.List;
import android.content.Context;
import android.view.View;
import android.widget.TextView;
import com.dian.diabetes.R;
import com.dian.diabetes.activity.MBaseAdapter;
import com.dian.diabetes.activity.sugar.model.MapModel;
public cl... | true |
9f42500f37391e1ad44c5fa4179f56b512267d09 | Java | hsbauer/lexevs-grid | /LexEVSAnalyiticalService/src/org/LexGrid/LexBIG/cagrid/adapters/LexBIGServiceGridAdapter.java | UTF-8 | 11,375 | 1.625 | 2 | [] | no_license | package org.LexGrid.LexBIG.cagrid.adapters;
import gov.nih.nci.evs.security.SecurityToken;
import java.net.ConnectException;
import java.rmi.RemoteException;
import java.util.Date;
import org.LexGrid.LexBIG.iso21090.DataModel.Collections.CodingSchemeRenderingList;
import org.LexGrid.LexBIG.iso21090.DataMode... | true |
33d2db6062f29cf58f89cf990ff53bd46e375c03 | Java | Artsysa/struct | /src/main/java/string/TestString.java | UTF-8 | 1,063 | 3.046875 | 3 | [] | no_license | package string;
import java.util.HashSet;
import java.util.Set;
import java.util.UUID;
/*
* @describe:
* @author: lyq
* @date: 2020/7/27 13:24
*/
public class TestString {
public static void main(String[] args) {
String str = new String("ccc")+new String("bbb");
String str1 = str.intern();
... | true |
356b8514aa5557c7eb65cf60218ca1558e93892d | Java | mini-watermelon/fast | /src/main/java/com/wisdomelon/base/code/sql/strategy/Strategy.java | UTF-8 | 281 | 2.15625 | 2 | [] | no_license | package com.wisdomelon.base.code.sql.strategy;
/**
* @author wisdomelon
* @date 2019/1/8 0008
* @project fast
* @jdk 1.8
*/
@FunctionalInterface
public interface Strategy {
/***
* 创建生成策略的具体方法
* @return
*/
String createValue();
}
| true |
ffcae2a22d0a9250cb4866e0cf0787545de4dc9f | Java | SwellRT/swellrt | /wave/src/test/java/org/waveprotocol/box/server/authentication/SessionManagerTest.java | UTF-8 | 3,386 | 2.03125 | 2 | [
"BSD-3-Clause",
"Apache-2.0",
"LicenseRef-scancode-generic-export-compliance"
] | 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... | true |
d9a7dce6aa1d73a8ad04b5975f2f244984146bcc | Java | 1terry/2212-Assign | /group84-master@7598dffa9a9/Project/src/main/java/statsVisualiser/gui/Login.java | UTF-8 | 6,854 | 2.90625 | 3 | [] | no_license | /**
* This is the program that is used to validate the user's account. SYSTEM STARTED THROUGH THIS CLASS.
* @author Kohei Yasui, Terrence Ju, John Dick, Kevin Yang
* Changelog
* March 31, 2021
* Made changes to ensure the program reads correctly from the given database file.
*
* April 7, 2021 (3:26 pm)
* Ma... | true |
b9d09a236391e429534d45518667f3c845cb15ed | Java | pperezp/respaldoProyectosAndroid | /Test_SQLITE/app/src/main/java/clase/cl/test_sqlite/MainActivity.java | UTF-8 | 1,230 | 2.46875 | 2 | [] | no_license | package clase.cl.test_sqlite;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.Button;
import android.widget.Toast;
import java.util.List;
public class MainActivity extends AppCompatActivity {
private Button btnCre... | true |
c8030dc70152624a41f3f3f7b9d45763a3452317 | Java | umarulkhak/si_sdm | /src/HRD/Gaji.java | UTF-8 | 41,666 | 2.609375 | 3 | [] | no_license | package HRD;
import java.awt.HeadlessException;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.ArrayLis... | true |
c74ba0f47cb7cda96ed57f8004519c0bc2f2fdf7 | Java | haotingfang/dubbo-client | /src/main/java/com/gupaoedu/dubbo/dubboclient/DubboController.java | UTF-8 | 1,659 | 2.4375 | 2 | [] | no_license | package com.gupaoedu.dubbo.dubboclient;
import com.gupaoedu.dubbo.ISayHelloService;
import org.apache.dubbo.config.annotation.Method;
import org.apache.dubbo.config.annotation.Reference;
import org.apache.dubbo.rpc.RpcContext;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bi... | true |
b42e28423be37154771dbf55770396e3dad3377b | Java | zacklionking/SNet-Project | /base/src/main/java/jcoolj/com/base/BaseActivity.java | UTF-8 | 1,230 | 2.09375 | 2 | [] | no_license | package jcoolj.com.base;
import android.content.res.Resources;
import android.os.Build;
import android.os.Bundle;
import android.view.View;
import android.view.ViewGroup;
import android.widget.FrameLayout;
import jcoolj.com.base.utils.PixelUtils;
import jcoolj.com.base.view.actionbar.SmartActionBar;
public abstract ... | true |
4198d54b158242c5ef2ad26c2851a60b5e3616ae | Java | NicolasKriegk/tp_java | /TPsGlobal/tpJSP_CDI/src/org/imie/Test_Integr_CDI.java | UTF-8 | 1,673 | 2.0625 | 2 | [] | no_license | package org.imie;
import java.io.IOException;
import java.util.List;
import javax.inject.Inject;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
impor... | true |
f3e262bec688adac7dbd51affc8656c03a4e970b | Java | haschish/subhunter | /app/src/main/java/com/example/submarinehunter/Game.java | UTF-8 | 6,801 | 2.40625 | 2 | [] | no_license | package com.example.submarinehunter;
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.graphics.PorterDuff;
import android.util.Log;
import android.view.MotionEvent;
import android.view.SurfaceHol... | true |
834daf06c0c80a8ed2daf6a51401060e3724ba75 | Java | darDomanski/GuestBook | /src/main/java/com/codecool/guestbook/handlers/GuestBookController.java | UTF-8 | 2,331 | 2.375 | 2 | [] | no_license | package com.codecool.guestbook.handlers;
import com.codecool.guestbook.DAO.*;
import com.codecool.guestbook.helpers.FormParser;
import com.sun.net.httpserver.HttpExchange;
import com.sun.net.httpserver.HttpHandler;
import org.jtwig.JtwigModel;
import org.jtwig.JtwigTemplate;
import java.io.IOException;
import java.io... | true |
e8b1e12f9a3f9df5aa7d3736bbf108f8bae8a474 | Java | kishmakov/jfs | /src/org/kshmakov/jfs/io/NameHelper.java | UTF-8 | 1,490 | 2.953125 | 3 | [] | no_license | package org.kshmakov.jfs.io;
import org.kshmakov.jfs.driver.JFSException;
import java.io.UnsupportedEncodingException;
public interface NameHelper {
char SEPARATOR = '/';
String CHARSET = "UTF-8";
short MAX_NAME_SIZE = 255;
static void inspect(String name) throws JFSException {
if (name.isEm... | true |
7a8a9d5c8e0305ead955227bb3441abe5ea54f89 | Java | abarraco/imis-cbms | /src/org/vmasc/cbms/client/bindings/generated/cbml_1_0/ObjectTypeReferenceAssociationCategoryCode.java | UTF-8 | 4,540 | 1.710938 | 2 | [] | no_license | //
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vJAXB 2.1.10 in JDK 6
// 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: 2011.1... | true |
e9d0981f0942be29215adeab16043aebe2ae7176 | Java | weiyushuai/MyApplications | /app/src/main/java/com/example/wys/myapplication/Fragment/MessageFragment.java | UTF-8 | 1,312 | 2.171875 | 2 | [] | no_license | package com.example.wys.myapplication.Fragment;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentActivity;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widge... | true |
7c7b1f4c095978d71c29899636d95af8b9e775d6 | Java | ymachkivskiy/hage | /platform/platform-utils/event-bus/event-bus-core/src/main/java/org/hage/platform/util/bus/BaseEventBus.java | UTF-8 | 780 | 2.40625 | 2 | [] | no_license | package org.hage.platform.util.bus;
import lombok.extern.slf4j.Slf4j;
@Slf4j
abstract class BaseEventBus implements EventBus {
private final com.google.common.eventbus.EventBus eventBus;
protected BaseEventBus(com.google.common.eventbus.EventBus bus) {
eventBus = bus;
}
@Override
public... | true |
62aa9647c02da3c0f10f30cba93c290be3a48a61 | Java | zlp-github/travel | /src/main/java/com/zlp/travel/dao/PlaceDao.java | UTF-8 | 271 | 1.554688 | 2 | [] | no_license | package com.zlp.travel.dao;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zlp.travel.entity.Place;
/**
* Author: zlp
* Date: 2020-08-08 19:26
* Description:张立朋,写点注释吧!!
*/
public interface PlaceDao extends BaseMapper<Place> {
}
| true |
10bd8c0b009f56d6acc3747b396d5849c36350b2 | Java | Soumyanetra/JavaProjects | /Project-Soumya/GAMES/Ground.java | UTF-8 | 2,690 | 2.703125 | 3 | [] | no_license | package GAMES;
import java.io.*;
class Ground extends Acpt
{
protected static boolean td = false;
protected void ground()throws IOException
{
int call = 0;
if(td == false)
td = ht.toss();
outer:
while(jd.n1 == 0)
{
int ct = 1;
if(td == tr... | true |
1d4750babe3f9ed8dd72ad67c226e298d0d63ee6 | Java | cmarshall10450/week-8-day-1-Word-Counter | /app/src/main/java/com/cmarshall10450/wordcounter/CountActivity.java | UTF-8 | 664 | 2.40625 | 2 | [] | no_license | package com.cmarshall10450.wordcounter;
import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.widget.TextView;
public class CountActivity extends AppCompatActivity {
private TextView wordCountText;
@Override
protected void onCreate(Bundle save... | true |
ce8ee2fe560d077f42b09e91052fe66312335f00 | Java | adagny/examen-soaint | /src/main/java/com/soaint/examen/controller/ClienteController.java | UTF-8 | 1,257 | 2.21875 | 2 | [] | no_license | package com.soaint.examen.controller;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import... | true |
71ed9f944295072dce4d8fa2bbe4def674bdbd4b | Java | S211606368/LawApp | /app/src/main/java/com/example/law/activity/SettingActivity.java | UTF-8 | 6,283 | 2.109375 | 2 | [] | no_license | package com.example.law.activity;
import android.annotation.SuppressLint;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;
import android.widget.SeekBar;
import androidx.appcom... | true |
06e1a3e165fe87e77077e67b1a28dfe9967986b8 | Java | honghongone/MyTestNG | /src/test/java/DemoTest/JustTest.java | UTF-8 | 535 | 2.15625 | 2 | [] | no_license | package DemoTest;
import org.testng.Assert;
import org.testng.annotations.Test;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
public class JustTest {
@Test
public void test4(){
Assert.assertEquals(1,2);
}
@Test
public void test2(){
System.out.println("te... | true |
5a0346f28c16f32a06ca1b70075dc8b4ab4d177d | Java | ndkheswa/learncoding-api | /src/main/java/com/learncoding/learncodingapi/shared/Constants.java | UTF-8 | 435 | 1.609375 | 2 | [] | no_license | package com.learncoding.learncodingapi.shared;
public class Constants {
public static final long EXPIRATION_TIME = 5*60*60;
public static final String SIGNING_KEY = "wolfpack";
public static final String TOKEN_PREFIX = "Bearer ";
public static final String HEADER_STRING = "Authorization";
public s... | true |
7133086850bc24d7941a89e99df8cf5c18ec0161 | Java | luizgustv/bootcamp-01-template-casa-do-codigo | /src/main/java/br/com/treino/casadocodigo/request/NovoLivroRequest.java | UTF-8 | 2,673 | 2.421875 | 2 | [
"Apache-2.0"
] | permissive | package br.com.treino.casadocodigo.request;
import br.com.treino.casadocodigo.model.Autor;
import br.com.treino.casadocodigo.model.Categoria;
import br.com.treino.casadocodigo.model.Livro;
import br.com.treino.casadocodigo.validations.ExistId;
import br.com.treino.casadocodigo.validations.UniqueValue;
import com.faste... | true |
75366c36e8ce14095bcf29333d09aef7e5da1b78 | Java | Gowri04/SeleniumWebDriver | /WebDriver/src/test/java/selenium/webdriver/locators/Locators1.java | UTF-8 | 897 | 2.390625 | 2 | [] | no_license | package selenium.webdriver.locators;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.chrome.ChromeDriver;
public class Locators1
{
public static void main(String[] args)
{
System.setProperty("webdriver.chrome.drive... | true |
e68cf3820a3256f161aa2e84bcf4004c6d8e546f | Java | europa1613/spring-boot | /limits-service/src/main/java/com/springcloud/microservices/limitsservice/bean/LimitConfiguration.java | UTF-8 | 435 | 2.234375 | 2 | [
"MIT"
] | permissive | package com.springcloud.microservices.limitsservice.bean;
public class LimitConfiguration {
private int maximun;
private int minimum;
public LimitConfiguration() {
super();
}
public LimitConfiguration(int maximun, int minimum) {
super();
this.maximun = maximun;
this.minimum = minimum;
... | true |
85283212135dc6b9fb01d5e907a6ea7655d16ac8 | Java | RemusCourtenay/dad-excel-converter | /src/main/java/helpers/WorkbookHelper.java | UTF-8 | 3,403 | 2.640625 | 3 | [] | no_license | package helpers;
import dosStuff.FileIOThreadManager;
import org.apache.poi.openxml4j.exceptions.InvalidFormatException;
import org.apache.poi.ss.usermodel.Cell;
import org.apache.poi.ss.usermodel.Row;
import org.apache.poi.ss.usermodel.Sheet;
import org.apache.poi.ss.usermodel.Workbook;
import org.apache.poi.xssf.use... | true |
f9161cfa0fb559e020999cee98c81fa9e3d11e4d | Java | Saman0800/DECO2800_Skyfall | /src/test/java/deco2800/skyfall/entities/worlditems/ShipwrecksTest.java | UTF-8 | 3,939 | 2.53125 | 3 | [] | no_license | package deco2800.skyfall.entities.worlditems;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
import static org.powermock.api.mockito.PowerMockito.whenNew;
import deco2800.skyfall.entities.SaveableEntity;
import deco2800.skyfall.util.... | true |
2f72775b3f475a2d74dd1d69b56897f0f3172333 | Java | BalajiRagupathi/JAVA-Programs | /Advance/Electricity_Bill.java | UTF-8 | 2,609 | 3.03125 | 3 | [] | no_license | import java.util.*;
class Bill_Seperator{
static TreeMap<String,Double> hm = new TreeMap<String,Double>();
static ArrayList<Double> bills = new ArrayList<Double>();
static void shops_seperation(){
for(int i = 0 ; i < Electricity_Bill_Report.shops.size() ; i++){
if( !Electricity_Bill_Rep... | true |
f09661cfc18a4862f2d77f36641528c7492e5281 | Java | LegionV2/Tripping-ninja | /src/States/MenuState.java | UTF-8 | 1,317 | 2.515625 | 3 | [
"MIT"
] | permissive | package States;
import org.newdawn.slick.Color;
import org.newdawn.slick.GameContainer;
import org.newdawn.slick.Graphics;
import org.newdawn.slick.Image;
import org.newdawn.slick.Input;
import org.newdawn.slick.SlickException;
import org.newdawn.slick.state.BasicGameState;
import org.newdawn.slick.state.StateBasedGam... | true |
f636b244b3bbe0a695d8b9cbd7192bf688922a44 | Java | sumit-sardar/GitMigrationRepo01 | /dep-scoring-ctrl/src/com/ctb/lexington/db/irsdata/IrsProgramDimData.java | UTF-8 | 3,597 | 2.3125 | 2 | [] | no_license | package com.ctb.lexington.db.irsdata;
import com.ctb.lexington.db.record.Persistent;
import java.util.Date;
/**
* @author Rama_Rao
*
*/
public class IrsProgramDimData implements Persistent{
private Long programid;
private Long customerid;
private String name;
private Date progStartDat... | true |
a01aefe7c464f4d8c85e93954fad4c97a2978a54 | Java | adaptris/interlok | /interlok-core/src/main/java/com/adaptris/core/ftp/FtpConsumerImpl.java | UTF-8 | 9,779 | 2.15625 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2015 Adaptris Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed t... | true |
30f9b2ae518b0cd4676dfc5b66d5a0d82baae39e | Java | yimengtianya/iotracah | /server/src/main/java/com/caricah/iotracah/server/netty/SSLHandler.java | UTF-8 | 6,361 | 1.859375 | 2 | [
"Apache-2.0"
] | permissive | /*
*
* Copyright (c) 2015 Caricah <info@caricah.com>.
*
* Caricah 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://www.apache.org/licenses/LICENSE-2.0
*
... | true |
ec63e40bea9084c1d0b48e6c5fb523302aebe74b | Java | ealtamar2/GalaxyFarAway | /mel-weather-forecast-job/src/main/java/com/mel/galaxy/weather/WeatherForecast.java | UTF-8 | 4,744 | 3.03125 | 3 | [
"Apache-2.0"
] | permissive | package com.mel.galaxy.weather;
import java.awt.geom.Point2D;
import java.util.Collections;
import java.util.Comparator;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
import java.util.function.Function;
import java.util.stream.Collectors;
import java.util.stream.Int... | true |
62728d84fe541e256f53f4e8f94a4bc2b36daa24 | Java | failex234/fshjava | /src/main/java/me/felixnaumann/fsh/FshMain.java | UTF-8 | 3,698 | 2.671875 | 3 | [
"MIT"
] | permissive | package me.felixnaumann.fsh;
import me.felixnaumann.fsh.Debug.DebuggingTools;
import me.felixnaumann.fsh.Formatting.Variables;
import me.felixnaumann.fsh.General.Commands;
import me.felixnaumann.fsh.Utils.GeneralUtils;
import me.felixnaumann.fsh.Utils.Native;
import java.util.*;
import static me.felixnaumann.fsh.Gen... | true |
dcf5fa49d3d1efd85382647e6d8c633b2855f8e4 | Java | zeng3234/GrowingProject | /BasicLib/src/main/java/com/gp/frame/basic/version/AndroidVersionUtils.java | UTF-8 | 455 | 2.265625 | 2 | [
"MIT"
] | permissive | package com.gp.frame.basic.version;
import android.os.Build;
/**
* @author zeng
* @Create at 2017/12/7
* @Description: .版本比对,里面全部是用的大于等于
*/
public class AndroidVersionUtils {
public static boolean aboveL() {
return Build.VERSION.SDK_INT >= AndroidVersionCodes.LOLLIPOP;
}
public static boole... | true |
1172a0e8f74cf131845912be9cdc281a526e1d81 | Java | michzio/salonea | /src/main/java/pl/salonea/jaxrs/bean_params/UserAccountBeanParam.java | UTF-8 | 2,721 | 1.921875 | 2 | [] | no_license | package pl.salonea.jaxrs.bean_params;
import pl.salonea.jaxrs.utils.RESTDateTime;
import javax.ws.rs.QueryParam;
/**
* Created by michzio on 06/09/2015.
*/
public class UserAccountBeanParam extends PaginationBeanParam {
private @QueryParam("login") String login;
private @QueryParam("email") String email;
... | true |
6f22fe1cc74d4a868a1263f865a3e33a08e09387 | Java | jvz/plugin-system | /java/src/main/java/org/musigma/plugin/core/java/registry/JavaPluginRegistry.java | UTF-8 | 3,543 | 2.140625 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2018 Matt Sicker
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | true |
36f51871c65b4265dec1a3a6c6dcc60c147b2630 | Java | YelsonVeras/KogaraTools | /src/main/java/edu/utesa/lib/models/dtos/school/ProblemAnswerDto.java | UTF-8 | 414 | 1.828125 | 2 | [] | no_license | package edu.utesa.lib.models.dtos.school;
import edu.utesa.lib.models.dtos.BaseDto;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
@AllArgsConstructor
@NoArgsConstructor
@Getter
@Setter
public class ProblemAnswerDto extends BaseDto {
private ProblemD... | true |
9e7da71c5f41a20810e86bb74c1da801c38c15c8 | Java | lverhelst/force-one | /core/src/verhelst/GameObjects/HUD.java | UTF-8 | 913 | 2.59375 | 3 | [] | no_license | package verhelst.GameObjects;
import com.badlogic.gdx.graphics.g2d.SpriteBatch;
import verhelst.Misc.Assets;
import verhelst.states.PlayGS;
/**
* Created by Orion on 2/10/2015.
*/
public class HUD {
Character player;
public HUD(Character player){
this.player = player;
}
... | true |
6a9c91b12cc87b5c8586d9e0a3a64f41a7ea1f33 | Java | gleekk/ShoppingMall | /src/model/ShoppingDAO.java | UHC | 4,609 | 2.78125 | 3 | [] | no_license | package model;
import java.util.List;
import javax.sql.DataSource;
import org.springframework.jdbc.core.BeanPropertyRowMapper;
import org.springframework.jdbc.core.RowMapper;
import org.springframework.jdbc.core.namedparam.BeanPropertySqlParameterSource;
import org.springframework.jdbc.core.namedparam.SqlPa... | true |
c553e9a403d21235a254ea8554f8ec23cbaa22ad | Java | zhongxingyu/Seer | /Diff-Raw-Data/30/30_cd79a9e260b5ecd454a0c7683413278dc6706906/ControleurESSpriteCarac/30_cd79a9e260b5ecd454a0c7683413278dc6706906_ControleurESSpriteCarac_s.java | UTF-8 | 4,172 | 2.5625 | 3 | [] | no_license | package com.arene.editeur.controleur;
import java.io.File;
import java.io.IOException;
import java.util.Enumeration;
import java.util.Properties;
import javax.swing.JComboBox;
import com.arene.editeur.modele.SpriteTest;
import com.arene.editeur.utils.file.FileTools;
import com.arene.editeur.vue.ESSpriteC... | true |
dbebc152a32b4df6389383a41e1148fe234b28e9 | Java | thanhhai-nguyen/thanhhai.ng | /Assignment/Assignment/src/java/sample/tbl_room/tbl_roomReportError.java | UTF-8 | 746 | 2.046875 | 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 sample.tbl_room;
import java.io.Serializable;
/**
*
* @author TTP
*/
public class tbl_roomReportError implements Serializ... | true |
a958cfafbb60e30aba935f9857ab11eb0187f46f | Java | icemannie/InfiniteRecharge2021 | /src/main/java/frc/robot/commands/AutoSwitchZoom.java | UTF-8 | 3,971 | 2.3125 | 2 | [] | no_license | /*----------------------------------------------------------------------------*/
/* Copyright (c) 2019 FIRST. All Rights Reserved. */
/* Open Source Software - may be modified and shared by FRC teams. The code */
/* must be accompanied by the FIRST BSD license file in the root directory of... | true |
710bb2be3a8e04d6357793ce5c3b5b0261d0b4c5 | Java | magx2/jSupla | /protocol/src/test/java/pl/grzeslowski/jsupla/protocol/impl/decoders/sc/SuplaRegisterClientResultDecoderImplTest.java | UTF-8 | 2,579 | 2.015625 | 2 | [
"MIT"
] | permissive | package pl.grzeslowski.jsupla.protocol.impl.decoders.sc;
import org.junit.runner.RunWith;
import org.mockito.InjectMocks;
import org.mockito.runners.MockitoJUnitRunner;
import pl.grzeslowski.jsupla.protocol.api.structs.sc.SuplaRegisterClientResult;
import pl.grzeslowski.jsupla.protocol.impl.decoders.ProperDecoderTest;... | true |
3f2be1e0fdb44a0654e523aa00ce31ad9873f2f0 | Java | bellmit/bootx-cloud | /bootx-starters/starter-feign/src/main/java/cn/bootx/starter/feign/inner/InnerServiceException.java | UTF-8 | 317 | 1.851563 | 2 | [
"Apache-2.0"
] | permissive | package cn.bootx.starter.feign.inner;
import cn.bootx.common.web.exception.BizException;
/**
* 内部服务错误
* @author xxm
* @date 2021/3/22
*/
public class InnerServiceException extends BizException {
public InnerServiceException(int code, String message) {
super(code, message);
}
}
| true |
8ec2a904096ff6be6347d252d7d5ba2c08686423 | Java | caominhnhut/code-tutor-web | /back-end/ct-rest/src/main/java/com/vn/green/rest/controller/HealthCheckRestService.java | UTF-8 | 387 | 1.773438 | 2 | [] | no_license | package com.vn.green.rest.controller;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ResponseBody;
@Controller
public class HealthCheckRestService
{
@GetMapping("/no-auth/health-check")
@ResponseBody
public... | true |
f17ab78d311836844e4ac64e1ab0d1a971f8271b | Java | bensadiku/ViewBindingSampleApp | /app/build/generated/data_binding_base_class_source_out/debug/out/dev/bensadiku/viewbindingsampleapp/databinding/ActivityRecyclerViewBinding.java | UTF-8 | 2,465 | 2.078125 | 2 | [
"Apache-2.0"
] | permissive | // Generated by view binder compiler. Do not edit!
package dev.bensadiku.viewbindingsampleapp.databinding;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import android... | true |
13f6616e32354a284019a263b27065e99737fdcf | Java | BeCandid/JaDX | /java/defpackage/adu.java | UTF-8 | 549 | 1.695313 | 2 | [] | no_license | package defpackage;
public final class adu {
public static byte a(Boolean bool) {
return bool != null ? bool.booleanValue() ? (byte) 1 : (byte) 0 : (byte) -1;
}
public static Boolean a(byte b) {
switch (b) {
case uu$h.com_facebook_login_view_com_facebook_confirm_logout /*0*/:
... | true |
3ed0457e23a86d46035efdcc57cd44f32a18fd22 | Java | Fiascos/javarush-telegrambot | /src/main/java/com/github/javarushcommunity/jrtb/service/FindNewArticleService.java | UTF-8 | 243 | 1.9375 | 2 | [
"Apache-2.0"
] | permissive | package com.github.javarushcommunity.jrtb.service;
/**
* Service for finding new articles.
*/
public interface FindNewArticleService {
/**
* Find new articles and notify subscribers about it.
*/
void findNewArticles();
}
| true |
cb58adc7154ecbda9ae3a1f4b60b080e98b23893 | Java | marcolinolucas/FabricaBicicleta | /src/trabalhopraticobicicleta/TrabalhoPraticoBicicleta.java | UTF-8 | 1,917 | 3.390625 | 3 | [] | no_license | package trabalhopraticobicicleta;
import java.util.Scanner;
public class TrabalhoPraticoBicicleta {
public static void main(String[] args) {
System.out.println("\nIniciando o Sistema...");
Scanner teclado = new Scanner(System.in);
int controle;
do {
... | true |
77a066940d300c3c7cd1e2d11f22597134199614 | Java | Hoangtq1710/C1120G1-TranQuocHoang | /Module_3/Case_Study_JSP_Servlet/Furama_JSP/src/main/java/repository/employee/EmployeeRepository.java | UTF-8 | 395 | 2.3125 | 2 | [] | no_license | package repository.employee;
import model.Employee;
import java.util.List;
public interface EmployeeRepository {
List<Employee> findAllEmployee();
void save(Employee employee);
Employee findEmployeeById(int id);
void update(int id, Employee employee);
void remove(int id);
List<Employee>... | true |
2ec877a18fb4e8efcbe8c82df120329be515d797 | Java | shaniakiat/Programming-Team | /Kattis/icpcawards.java | UTF-8 | 609 | 2.875 | 3 | [] | no_license | import java.util.*;
public class icpcawards {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
HashMap<String, String> map = new HashMap<>();
int n = sc.nextInt();
int max = 0;
for (int i = 0; i < n; i++) {
String u = sc.next(); // i... | true |
e1bda3b80c33f0b32d5535d1c6c9d2bae98ec838 | Java | esgonzalezca/PetSuiteBack | /src/main/java/com/petsuite/Services/dto/DogWalker_Dto.java | UTF-8 | 828 | 1.976563 | 2 | [] | no_license | package com.petsuite.Services.dto;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
@Data
@AllArgsConstructor
@NoArgsConstructor
public class DogWalker_Dto {
private String user;
private String password;
private String dog_walker_name;
private String dog_walker_p... | true |
f61cc25de596a07f7cd2002b0439df4c793ee1a1 | Java | jkindwall/TableDriver.Java | /TableDriver/src/test/java/io/github/jkindwall/tabledriver/OrGroupTests.java | UTF-8 | 3,803 | 2.65625 | 3 | [
"MIT"
] | permissive | package io.github.jkindwall.tabledriver;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertTrue;
import org.junit.Test;
public class OrGroupTests
{
@Test
public void orGroup_SingleAndGrou... | true |
8ee1642f783a6bf69d70773838b8ba5959a7c7ac | Java | xuxiaowei007/jeeframework | /src/main/java/com/jeeframework/core/context/support/SpringContextLoader.java | UTF-8 | 1,265 | 2.28125 | 2 | [] | no_license | /**
* Copyright (C) 2015-2015 JEEFRAMEWORK Inc.All Rights Reserved.
*
*
* 1.0 lanceyan 2008-11-28 Create
*/
package com.jeeframework.core.context.support;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.AbstractApplicatio... | true |
a8fa3e481d72a36b3fb03888c12515d90886e9fb | Java | SanRaph/corejava | /Addition.java | UTF-8 | 730 | 4.1875 | 4 | [] | no_license | /*
*Program: Collects name, two numbers, then add and display result
*as Johnson the result of n and x is y.
*/
import java.util.Scanner;
public class Addition{
public static void main(String[] args){
System.out.println("Please Enter Name:");
Scanner input = new Scanner(System.in);
String ... | true |
9876cf474a68efe0bcec906b078ec821f377678a | Java | Dheerajps77/EasMyTripHomeProject | /src/test/java/com/QA/EasMyTrip/TestPage/SearchHotel.java | UTF-8 | 964 | 1.898438 | 2 | [] | no_license | package com.QA.EasMyTrip.TestPage;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.CacheLookup;
import org.openqa.selenium.support.FindBy;
import org.openqa.selenium.support.How;
import org.openqa.selenium.support.ui.Select;
public class SearchHotel {
... | true |
9db930c0dd2fd9f75cf9b9eebbae32c00b67b085 | Java | svkrishna3724/NanoDegree-Projects | /WorldNews24X7/WorldNews24X7/app/src/main/java/com/vvitguntur/worldnews24x7/utilities/NetworkUtils.java | UTF-8 | 4,205 | 1.953125 | 2 | [] | no_license | /*
* Copyright (C) 2016 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | true |
ae9c703dc59be2fca2f37111fb6bbd552e576a7a | Java | NaitYoussef/tondeuse-simulateur | /src/test/java/com/mawitnow/tondeuse/application/executors/TondeuseSimulateurTest.java | UTF-8 | 3,132 | 2.609375 | 3 | [] | no_license | package com.mawitnow.tondeuse.application.executors;
import com.mawitnow.tondeuse.application.models.Commands;
import com.mawitnow.tondeuse.application.models.Point;
import com.mawitnow.tondeuse.application.models.TondeuseLocationInfo;
import org.junit.Before;
import org.junit.Test;
import java.util.Arrays;
import s... | true |
298bf612ca4a86cc163ba6703a54f80378ad6853 | Java | HoangTruongChi/LabRegistration | /backend/src/main/java/com/hust/labregister/service/impl/EquipmentServiceImpl.java | UTF-8 | 1,219 | 2.171875 | 2 | [] | no_license | package com.hust.labregister.service.impl;
import com.hust.labregister.controller.bean.ResponseBean;
import com.hust.labregister.model.Equipment;
import com.hust.labregister.repository.EquipmentOfRoomRepository;
import com.hust.labregister.repository.EquipmentRepository;
import com.hust.labregister.service.EquipmentSe... | true |
3adb3736b8b4f1ee61607e75ce03d6f72a77638b | Java | ratchet2324/refereeManagement | /container/src/main/java/nefra/game/Division.java | UTF-8 | 3,882 | 3.0625 | 3 | [
"Apache-2.0"
] | permissive | package nefra.game;
import javafx.collections.FXCollections;
import javafx.collections.ObservableList;
import java.io.Serializable;
import java.util.Random;
import java.util.UUID;
/**
* Holds all the information required to make a division: name and match official fees.
* @author Cordel Murphy
* @vers... | true |
2aea02c39706cc923d5f4a7c6cb3da8ce4f5faeb | Java | Passerbycmf/xiaolingtong | /src/main/java/com/common/SystemConfig.java | UTF-8 | 1,393 | 1.609375 | 2 | [] | no_license | package com.common;
/**
* Created by lvjianqing on 2017/8/1.
*/
public class SystemConfig {
public static String JsSessionName = "manager_js";//在session中存放登录用户角色
/*WX*/
public static String UserSession = "cur_user";//在session中存放登录用户信息的key
public static String UserIdSession = "cur_user_id";//在session中... | true |
f60b323d8d9dfdaf10dd93a31ea6e2cfd703f20b | Java | zhongxingyu/Seer | /Diff-Raw-Data/2/2_ea4ac34d1b226f2aab86e0dc204653e667278596/AllTests/2_ea4ac34d1b226f2aab86e0dc204653e667278596_AllTests_t.java | UTF-8 | 1,140 | 1.546875 | 2 | [] | no_license | /*******************************************************************************
* Copyright (c) 2009 itemis AG (http://www.itemis.eu) and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this ... | true |
8d5f46ac70ac1252d5261f0fb660af9169e653eb | Java | MVC-tim83/MVC | /Projekat/src/main/java/com/example/demo/controller/OdmorOdsustvoController.java | UTF-8 | 15,064 | 2.09375 | 2 | [] | no_license | package com.example.demo.controller;
import java.util.ArrayList;
import java.util.List;
import java.util.Set;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.http.MediaType;
i... | true |
9f92a3c035cdd525756084be5219f07fbc9df954 | Java | antoniofents/twitsPrinterAndroid | /app/src/main/java/com/example/afentanes/twitprinter/TwitPrinterUtil.java | UTF-8 | 2,555 | 2.171875 | 2 | [] | no_license | package com.example.afentanes.twitprinter;
import android.app.NotificationManager;
import android.app.PendingIntent;
import android.app.job.JobInfo;
import android.app.job.JobScheduler;
import android.content.ComponentName;
import android.content.Context;
import android.content.Intent;
import android.support.v4.app.No... | true |
7a2caae5fe3b3173bc003acafbfd8dcb131c8a19 | Java | lordssa/contact-list-solution | /src/main/java/com/bravi/crud/usecase/contact/impl/UpdateContact.java | UTF-8 | 1,033 | 2.296875 | 2 | [] | no_license | package com.bravi.crud.usecase.contact.impl;
import com.bravi.crud.domain.Contact;
import com.bravi.crud.repository.ContactRepository;
import com.bravi.crud.repository.converter.ContactDBToContactConverter;
import com.bravi.crud.repository.converter.ContactToContactDBConverter;
import com.bravi.crud.usecase.contact.Up... | true |
a49b9d8d9e7c7eb2923ed589a8309aeca1144589 | Java | JonathanThunberg/DATX02-15-12 | /GreenMe/app/src/main/java/datx021512/chalmers/se/greenme/navigation/NavAdapter.java | UTF-8 | 2,853 | 2.078125 | 2 | [] | no_license | package datx021512.chalmers.se.greenme.navigation;
import android.graphics.Color;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import java.util.List;
import datx021512.chalmers.se.greenme.R;... | true |
57a3e519e61a7cb92bb24e5adbcc81bb56aaf5b5 | Java | rae-123/Test01_Clone | /src/com/rae/clone/Person.java | UTF-8 | 853 | 3.125 | 3 | [] | no_license | package com.rae.clone;
/**
* 功能描述:<br>
* 〈〉
*
* @author 11718
* @create 2019/10/31
* @since 1.0.0
*/
public class Person implements Cloneable{
private int age;
private String name;
public Person(){}
public Person(int age, String name) {
this.age = age;
this.name = name;
}
... | true |
7ae14e06d8c506fb50f2077d4c4f24d941fca7ae | Java | AlexBringston/Online-Store-Java-Servlet | /src/main/java/com/store/filter/AuthFilter.java | UTF-8 | 2,678 | 2.625 | 3 | [] | no_license | package com.store.filter;
import com.store.controller.commands.CommandUtils;
import com.store.model.entity.Role;
import com.store.model.entity.User;
import com.store.model.exception.DatabaseException;
import com.store.model.service.UserService;
import org.apache.log4j.Logger;
import javax.servlet.*;
import javax.serv... | true |
19e02c5f67c2f27ccbd9b53695f9c32dc15945bd | Java | wby0014/netty-im | /netty-im-server/src/main/java/com/wby/netty/server/im/config/ClassUtils.java | UTF-8 | 4,046 | 2.171875 | 2 | [] | no_license | package com.wby.netty.server.im.config;
import org.springframework.beans.factory.BeanDefinitionStoreException;
import org.springframework.core.io.Resource;
import org.springframework.core.io.support.PathMatchingResourcePatternResolver;
import org.springframework.core.io.support.ResourcePatternResolver;
import org.spri... | true |
ac27b5dab01f12a85bf04c1ac16c9e7efbcca1c1 | Java | lilijie0706/threelier | /ThreeTierSample/src/zxing/Test.java | UTF-8 | 421 | 2.15625 | 2 | [] | no_license | package zxing;
import java.io.File;
public class Test {
public static void main(String[] args) throws Exception {
// TODO Auto-generated method stub
String imgPath = "src/二维码1.gif";
String content = "hello world中文你好吗";
String logo="src/logo.png";
// 生成图片
ZXingUtil.encodeImg(imgPath, "gif", content, 43... | true |
163466a6cdf787d41d69e0a86edc954c53ad7b66 | Java | nht178/AndroidProject | /Absworkoutpro1/app/src/main/java/hb/abs/absworkout/bellyfatworkout/waistworkout/abdominalworkout/absworkoutpro/listeners/IRateClicked.java | UTF-8 | 166 | 1.765625 | 2 | [] | no_license | package hb.abs.absworkout.bellyfatworkout.waistworkout.abdominalworkout.absworkoutpro.listeners;
public interface IRateClicked {
void rateClicked(int i);
}
| true |
a3cbbea9d869fff78206f78372135ba0e8d32351 | Java | ifollowyou/follow-hmk | /hmk-word-excel/src/main/java/org/ifollowyou/util/excel/read/Player.java | UTF-8 | 3,394 | 2.28125 | 2 | [] | no_license | package org.ifollowyou.util.excel.read;
public class Player {
// 序号
private String xh;
// 参赛号码
private String cshm;
// 芯片号码
private String xphm;
// 报名项目
private String bmxm;
// 团体名称
private String ttmc;
// 缴费状态
private String jfzt;
// 姓名
private String xm;
/... | true |
cf81643169a62199c4073f74d26b3831ef50c68a | Java | handsome-llk/algorithms | /src/main/java/com/study/algorithms/chart/singleSourcePath/Dijkstra.java | UTF-8 | 1,446 | 3.265625 | 3 | [] | no_license | package com.study.algorithms.chart.singleSourcePath;
/**
* Dijkstra算法:
* 解决的是带权重的有向图上单源最短路径问题,该算法要求所有边的权重都为非负值
*/
public class Dijkstra {
// INITIALIZE-SINGLE-SOURCE(G, s)
//
// for each vertex v in G.V {
// v.d = Integer.max
// v.p = NIL
// }
// s.d = 0;
//
//
// RELAX(u, v, w)
//
// ... | true |
7429fdcaabab550ce4e2adc2deb61d16260681ff | Java | HijbullahMahmud/PushNotificationWhen-app-is-killed | /app/src/main/java/com/codecanvas/notificationdemofcm/NotificationDetailsActivity.java | UTF-8 | 763 | 1.960938 | 2 | [] | no_license | package com.codecanvas.notificationdemofcm;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.os.Bundle;
import android.widget.TextView;
public class NotificationDetailsActivity extends AppCompatActivity {
TextView textViewNotificationDetails;
@Override
prote... | true |
a483319002fec8d59f378451ef60f085b8b1c771 | Java | rodsangon/dp1-2020-g3-07 | /src/test/java/org/springframework/samples/petclinic/service/AlergenosServiceTest.java | UTF-8 | 1,538 | 2.203125 | 2 | [
"Apache-2.0",
"LicenseRef-scancode-generic-cla"
] | permissive | package org.springframework.samples.petclinic.service;
import static org.junit.Assert.assertTrue;
import static org.junit.jupiter.api.Assertions.assertEquals;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Iterator;
import java.util.List;
import org.junit.jupiter.api.Test;
impor... | true |
c32765f7a1f8a8a4b07af6c8b02b1863ba14acbb | Java | Strandberg95/Labbar | /DA357ALaborationer/src/u1_TextSökning/KMP.java | UTF-8 | 1,845 | 3.15625 | 3 | [] | no_license | package u1_TextSökning;
public class KMP {
public KMP(){
String string = "Ay lmao";
String find = "lmao";
kmp_matcher(string.toCharArray(),find.toCharArray());
}
private static int kmp_Search(String S, String W){
int m = 0;
int i = 0;
int[] T = new int[S.length()];
while((m + i) < S.length()){
... | true |
d5b9a1a026511cc492b66c796d75fd4709ab4586 | Java | nitinattarnea/elsd | /src/test/java/fr/days/elsd/processors/impl/OpenSubtitlesProcessorTest.java | UTF-8 | 997 | 2.390625 | 2 | [] | no_license | /**
###############################################################################
# Contributors:
# Damien VILLENEUVE - initial API and implementation
###############################################################################
*/
package fr.days.elsd.processors.impl;
import java.io.File;
import java.io.IOEx... | true |
1a9e058b6e4d7f3750a06d7fa3b124a58950b8fc | Java | pengwei713/login | /Login/src/com/blog/servlet/UserIsExists.java | UTF-8 | 1,251 | 2.421875 | 2 | [] | no_license | package com.blog.servlet;
import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import com.blog.entity.User;
import com.blog.impl... | true |
0c67e33c11a713ee02953e9b04cb649199e54bf0 | Java | shikaining/MERLION | /HotelReservationSystem/HotelReservationSystem-ejb/src/java/ejb/session/stateless/RoomRateSessionBean.java | UTF-8 | 4,540 | 2.546875 | 3 | [] | no_license | package ejb.session.stateless;
import entity.RoomRateEntity;
import entity.RoomTypeEntity;
import java.util.ArrayList;
import java.util.List;
import javax.ejb.Local;
import javax.ejb.Remote;
import javax.ejb.Stateless;
import javax.persistence.EntityManager;
import javax.persistence.NoResultException;
import javax.per... | true |
917e4969b9a03eaad89f97367990cf23a5f27239 | Java | poojasekar/sampleprojects | /EmployeeManagementSystemBoot/src/main/java/com/ibm/training/SecurityConfig.java | UTF-8 | 1,749 | 2.234375 | 2 | [] | no_license | /*package com.ibm.training;
import javax.sql.DataSource;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration;
import org.springframework.core.annotation.Order;
import org.springframework.security.config.annotation.authentication.builders.Au... | true |
326131128031a621d398c491acbfe28d6938977c | Java | david-roetter/Carsale | /src/car/Invoice.java | UTF-8 | 815 | 3.328125 | 3 | [] | no_license | package car;
public class Invoice {
private int carId;
private int price;
private Invoice(int carId, int price) {
this.carId = carId;
this.price = price;
}
public static Invoice forSoldCar(Car carToSell) {
return new Invoice(carToSell.id(), carToSell.cost());
}
... | true |
867e666bee4de917c6368dfc2aa392e9c00cbfcd | Java | jinfayap/tp | /src/main/java/seedu/kitchenhelper/command/ListIngredientCommand.java | UTF-8 | 5,594 | 3.046875 | 3 | [] | no_license | package seedu.kitchenhelper.command;
import seedu.kitchenhelper.exception.KitchenHelperException;
import seedu.kitchenhelper.object.Chore;
import seedu.kitchenhelper.object.Recipe;
import seedu.kitchenhelper.object.ingredient.Vegetable;
import seedu.kitchenhelper.object.ingredient.Staple;
import seedu.kitchenhelper.ob... | true |
072cf71c641d3a579d69a7ffaf83bd23f3ba0123 | Java | DipanshuBhola/WeatherAppExample | /src/com/assignment/weatherappexample/ForecastResultsActivity.java | UTF-8 | 4,903 | 2.421875 | 2 | [] | no_license | package com.assignment.weatherappexample;
import java.util.ArrayList;
import java.util.List;
import com.assignment.application.NApplication;
import com.assignment.openWeatherClient.api.ForecastDataFetchOps;
import com.assignment.openWeatherClient.api.OpenWeatherClientOps;
import com.assignment.openWeatherClient.impl.... | true |
c72c2625008f1b98a9885a37e731c16ae58909b7 | Java | jiushigao/springboot-learn | /springboot1-dubbo/consumer-user/src/main/java/com/example/ticket/service/UserService.java | UTF-8 | 386 | 2.09375 | 2 | [] | no_license | package com.example.ticket.service;
import com.alibaba.dubbo.config.annotation.Reference;
import org.springframework.stereotype.Service;
@Service
public class UserService {
@Reference//远程调用,根据全类名去注册中心获取
TicketService ticketService;
public void getTicket(){
System.out.println("买到票啦"+ticketService... | true |
26f4e2115a7df74b041511a80e5cfe78e2f4a04c | Java | digideskio/millipede | /cyberduck/src/main/java/ch/cyberduck/core/ssl/AbstractX509TrustManager.java | UTF-8 | 2,728 | 2.21875 | 2 | [] | no_license | package ch.cyberduck.core.ssl;
/*
* Copyright (c) 2008 David Kocher. All rights reserved.
* http://cyberduck.ch/
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of... | true |
50fb4367d1803de2707c52f528925ee2eddfcf27 | Java | sbudhe123/Hackathon | /src/main/java/com/db/hackathon/PostgresSQLJDBC.java | UTF-8 | 653 | 2.46875 | 2 | [] | no_license | package com.db.hackathon;
import java.sql.Connection;
import java.sql.DriverManager;
//import java.sql.ResultSet;
//import java.sql.SQLException;
//import java.sql.Statement;
public class PostgresSQLJDBC {
public static void main(String args[]) {
Connection c = null;
try {
c = DriverManager.getConn... | true |
e5609ac0acdfa45a74b1df5e6f752b4e7954fcad | Java | keryhu/xdidian-projection | /personal-menu/src/main/java/com/xdidian/keryhu/personal_menu/domain/MenuType.java | UTF-8 | 6,360 | 2.671875 | 3 | [
"MIT"
] | permissive | package com.xdidian.keryhu.personal_menu.domain;
import java.util.HashMap;
import java.util.Map;
import java.util.Map.Entry;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
/**
*
* @ClassName: MenuType
* @Description: TODO(平台可能的菜单种类,目前一共是18个菜单名字
* ,将url硬编码... | true |
829b08242049e79213907d5b7384e5238b4e2575 | Java | CancheGer777/AutomationTestMaven | /src/main/java/javabasics/CompararCadenas.java | UTF-8 | 1,415 | 4.0625 | 4 | [] | no_license | package javabasics;
import javax.swing.*;
import java.util.Scanner;
public class CompararCadenas {
public static void main(String[] args) {
//Buenísimo el scanner :) ... es para recibir el valor dentro de la consola
// Scanner leer = new Scanner(System.in);
// System.out.println("Escribe la primera ... | true |
35bc671d525f255a3be9c89cb556dec6a871a954 | Java | bal-code-camp-rest-oidc/oidc-application-client | /spring-application/library-inventory-service/src/main/java/com/example/library/inventory/business/BookService.java | UTF-8 | 1,892 | 2.359375 | 2 | [] | no_license | package com.example.library.inventory.business;
import com.example.library.inventory.dataaccess.Book;
import com.example.library.inventory.dataaccess.BookRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframewor... | true |
d495d9fc2e3b54038fd8d679928a92b456c7fa9f | Java | kulikyawgen/elinextTestTask | /elinextTest/src/test/java/by/kulik/container/impl/ProviderImplTest.java | UTF-8 | 2,491 | 2.5625 | 3 | [] | no_license | package by.kulik.container.impl;
import by.kulik.container.Injector;
import by.kulik.container.Provider;
import by.kulik.data.FirstInterface;
import by.kulik.data.FirstInterfaceImplWithDefaultConstructor;
import by.kulik.data.FirstInterfaceImplWithOneInjectAndSingletonAnnotation;
import by.kulik.data.FirstInterfaceImp... | true |
07d98f43866420d7d3fa24f157288eece1e9e6b2 | Java | springmonster/ApkDownloadAndHotfix | /andfixlibrary/src/main/java/andfix/khch/andfixlibrary/apatchupdate/util/GlobalUtil.java | UTF-8 | 1,575 | 2.171875 | 2 | [] | no_license | package andfix.khch.andfixlibrary.apatchupdate.util;
import android.content.Context;
import android.content.pm.PackageInfo;
import android.content.pm.PackageManager;
import andfix.khch.andfixlibrary.apatchupdate.log.AFLog;
/**
* Created by kuanghaochuan on 2017/2/16.
*/
public class GlobalUtil {
private stati... | true |
7be79212749b229d56c5eac7ec938d57b877f75d | Java | adit22747/java | /java_assignment/.metadata/.plugins/org.eclipse.core.resources/.history/9a/104f83bc5960001b17e0cae5e4ed1363 | UTF-8 | 482 | 2.5625 | 3 | [] | no_license | package com.assignment4;
import java.util.Hashtable;
public class Customer {
private String custName = null;
private int ACC_NO = 0;
private Hashtable accountInfo = new Hashtable();
void depositeAmount(int ACC_TYPE, int amount) {
}
public String getCustName() {
return custName;
}
public void setCustNa... | true |
d56fc7768325f947d27e910e2bbb06f594a9ce36 | Java | scalagwt/scalagwt-gwt | /build-tools/customchecks/src/com/google/gwt/checkstyle/CustomRegexpHeaderCheck.java | UTF-8 | 7,360 | 2.015625 | 2 | [] | no_license | /*
* Copyright 2011 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in w... | true |
c62dabb9f96f4e18cb9a1da5101a6c4bd70167a1 | Java | anikiBouH/Programming | /lesson19/src/lesson19/Car.java | UTF-8 | 818 | 3.4375 | 3 | [] | no_license | package lesson19;
import java.time.Year;
public class Car {
private String model;
private String color;
private int year;
public Car()
{
}
public Car(String model, String color, int year)
{
setModel(model);
setColor(color);
setYear(year);
}
public void setModel(String model)
{
if(model != ... | true |
5542b072ad6074cb873cd3f5323b2f475920b72f | Java | rememberlostcode/nuaa | /nuaajava/src/main/java/com/school/xnew/persistence/dao/CoreMenuDao.java | UTF-8 | 450 | 1.757813 | 2 | [] | no_license | /**
*
*/
package com.school.xnew.persistence.dao;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import com.school.xnew.persistence.entity.CoreMenuModel;
/**
*
* 类说明:
*
* @author robin 2014-3-14下午8:51:58
*
*/
public interface CoreMenuDao extends GenericDao<CoreMenuModel> {
public ... | true |
ea0e5378e1d827a0aac0b5c97cd42950b927665e | Java | victorobiahu07/BLA-1 | /src/test/java/com/target/BarrenLandAnalysisTest.java | UTF-8 | 5,743 | 2.6875 | 3 | [] | no_license | package com.target;
import org.hamcrest.CoreMatchers;
import org.junit.Test;
import java.io.ByteArrayInputStream;
import java.util.List;
import static org.hamcrest.core.Is.is;
import static org.junit.Assert.assertThat;
import static org.junit.Assert.fail;
public class BarrenLandAnalysisTest {
@Test
publi... | true |
19ee1c647e3c661e0a8a1d5fb17cec767734f4d9 | Java | BrunnoHCInacio/Projeto-Garage-Motors | /ProjetoGarageMotors/src/projetogaragemotors/modelo/ClienteEnderecoDAO.java | UTF-8 | 3,666 | 2.28125 | 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 projetogaragemotors.modelo;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.ut... | true |