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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
1336d97c9bd9de34fa81e42e5bfdf2a44ba8d7db | Java | pinkproblem/RadarBeacon | /app/src/main/java/edu/kit/teco/radarbeacon/compass/CompassManager.java | UTF-8 | 2,804 | 2.59375 | 3 | [] | no_license | package edu.kit.teco.radarbeacon.compass;
import android.app.Activity;
import android.content.Context;
import android.hardware.Sensor;
import android.hardware.SensorEvent;
import android.hardware.SensorEventListener;
import android.hardware.SensorManager;
import java.util.ArrayList;
/**
* Created by Iris on 17.08.2... | true |
e7fd4438d96fa1590f20996c0ca41a1395849213 | Java | 425868130/HelloSpring | /src/main/java/hellospring/model/User.java | UTF-8 | 2,037 | 2.171875 | 2 | [] | no_license | package hellospring.model;
import java.sql.Timestamp;
import org.springframework.stereotype.Component;
/**
* 用户实体
* @author Dream Sky
*
*/
@Component
public class User {
private long UersID;
private String UCount;
private String UNickName;
private boolean USex;
private String UPswd;
private String UImg;
pr... | true |
e538719cb2615e2e600c21943d005b3bb2955b86 | Java | iurinh/my-project-iuri | /Projeto_Joilson_LabBD_SalonSoft/src/control/ControllerAgendamento.java | ISO-8859-1 | 6,443 | 2.328125 | 2 | [] | no_license | package control;
import java.io.IOException;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.List;
import javax.servlet.RequestDispatcher;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import ja... | true |
88fa227b72cfa3ed2a9e190a9107c3ba028d7c5b | Java | AmanaAdvisors/ta4j | /ta4j-core/src/test/java/org/ta4j/core/analysis/criteria/OpenedTradeUtils.java | UTF-8 | 832 | 2.46875 | 2 | [
"MIT"
] | permissive | package org.ta4j.core.analysis.criteria;
import org.ta4j.core.AnalysisCriterion;
import org.ta4j.core.Order;
import org.ta4j.core.Trade;
import org.ta4j.core.mocks.MockTimeSeries;
import org.ta4j.core.num.Num;
import java.util.function.Function;
import static org.ta4j.core.TestUtils.assertNumEquals;
public class Op... | true |
e7cc876bb1d9eec84e16a0833dec831ff6dbcc7d | Java | jiyonguk/Java | /java_project/FirstJAVA/src/chapter1/ex4.java | UTF-8 | 260 | 2.765625 | 3 | [] | no_license | package chapter1;
public class ex4 {
public static void main(String[] args) {
byte b = 0;
int i = 0;
for(int x=0;x<270;x++) {
System.out.print(b++);
System.out.print("\t");
//System.out.println();
System.out.println(i++);
}
}
}
| true |
ca37c4929ebfc12a1479b71aea4466f5535c8655 | Java | SetsunaChyan/JavaWeb-QASystem | /src/manager/showQuestion.java | UTF-8 | 1,150 | 2.1875 | 2 | [] | no_license | package manager;
import dao.QuestionDaoImpl;
import dao.ReplyDaoImpl;
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 java.io.IOException;
@Web... | true |
7c23ec98e20d12389de118cdb0d1917688142a07 | Java | thomas-wroblewski/awroby-homeauto | /src/main/java/com/awroby/auto/dao/OutletRepository.java | UTF-8 | 311 | 2.03125 | 2 | [] | no_license | package com.awroby.auto.dao;
import java.util.List;
import org.springframework.data.mongodb.repository.MongoRepository;
import com.awroby.auto.objects.Outlet;
public interface OutletRepository extends MongoRepository<Outlet, String>{
public List<Outlet> findAll();
public Outlet findById(String id);
}
| true |
605025edfdbd85bed6039acb45841fcda41b7351 | Java | parsaalian/ap-project | /Game/src/network/public_chat/Status.java | UTF-8 | 1,544 | 2.703125 | 3 | [] | no_license | package network.public_chat;
import java.io.Serializable;
public class Status implements Serializable {
private String name;
private double health;
private double maxHealth;
private double energy;
private double maxEnergy;
private double stamina;
private double maxStamina;
private doub... | true |
3043de568c3308b99adfebadaf6b8e90821ddfba | Java | maedere/Pool_reservation_3 | /app/app/src/main/java/org/project/poolreservation/models/TimeOfDay.java | UTF-8 | 1,211 | 2.53125 | 3 | [] | no_license | package org.project.poolreservation.models;
public class TimeOfDay {
private String time;
private String gender;
private int capacity;
private int off;
private String price;
private String id;
private boolean show=true;
public TimeOfDay(String id,String price,String time, String gender... | true |
d24724b4a2eee455871fe70ba6aef1be7de1ff67 | Java | stormbreaker11/scst | /src/main/java/com/nic/in/model/Mandal.java | UTF-8 | 324 | 1.953125 | 2 | [] | no_license | package com.nic.in.model;
public class Mandal {
private String mname;
private String mcode;
public String getMname() {
return mname;
}
public void setMname(String mname) {
this.mname = mname;
}
public String getMcode() {
return mcode;
}
public void setMcode(String mcode) {
this.mcode = mcode;
}
... | true |
f594f22bb38457ab76184fff08578d45504848d5 | Java | onap/aai-aai-common | /aai-schema-ingest/src/main/java/org/onap/aai/validation/nodes/DuplicateNodeDefinitionValidationModule.java | UTF-8 | 1,827 | 2.109375 | 2 | [
"Apache-2.0"
] | permissive | /**
* ============LICENSE_START=======================================================
* org.onap.aai
* ================================================================================
* Copyright © 2017-18 AT&T Intellectual Property. All rights reserved.
* ========================================================... | true |
65b6d31f530e3af7f38f3d8584358372f0f19001 | Java | mameports/arcadeflex-037b8 | /convertor/java_code/drivers/toaplan2.java | UTF-8 | 146,052 | 2.28125 | 2 | [] | no_license | /*****************************************************************************
ToaPlan game hardware from 1991-1994
------------------------------------
Driver by: Quench and Yochizo
Supported games:
Name Board No Maker Game name
---------------------------------------------------------------------------... | true |
2b1f8c0fa63fa4f2e550e02929c5c79d285c18bd | Java | Fireserdg/job4j | /chapter_101/src/test/java/ru/job4j/generic/SimpleArrayTest.java | UTF-8 | 4,240 | 3.296875 | 3 | [
"Apache-2.0"
] | permissive | package ru.job4j.generic;
import org.junit.Test;
import java.util.Iterator;
import java.util.NoSuchElementException;
import static org.hamcrest.core.Is.is;
import static org.junit.Assert.*;
/**
* Test class for check Simple Array.
*
* @author Sergey Filippov (serdg1984@yandex.ru).
* @version $Id$.
* @since 06.08... | true |
2cb85149c318c0c582a07323310ce3618da10233 | Java | aniket00197/ankysoft | /src/main/java/controller/FunctionListController.java | UTF-8 | 746 | 2.21875 | 2 | [] | no_license | package controller;
import applicationui.MainScreen;
import javafx.event.ActionEvent;
import javafx.fxml.FXML;
import javafx.scene.control.Button;
public class FunctionListController {
@FXML
Button button;
@FXML
public void setUI(ActionEvent event)
{
button = (Button) event.getSource(... | true |
708c694b0ae4b651aca0e05f19dd8664d72e57aa | Java | edersonjseder/beautyfit | /beautyfit_oauth2/src/main/java/br/com/beautyfit/Application.java | UTF-8 | 2,332 | 2.140625 | 2 | [] | no_license | package br.com.beautyfit;
import javax.annotation.PostConstruct;
import javax.sql.DataSource;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.S... | true |
323ac751ca6e58eafc39ab1c862c779baeec3b04 | Java | meryathadt/test-jenkon-digitoll-services-dev | /commons/src/main/java/com/digitoll/commons/kapsch/response/VignetteRegistrationResponseContent.java | UTF-8 | 2,174 | 2.359375 | 2 | [] | no_license | package com.digitoll.commons.kapsch.response;
import com.digitoll.commons.model.Vehicle;
import com.digitoll.commons.model.VignettePrice;
import com.digitoll.commons.kapsch.classes.EVignetteProduct;
import com.digitoll.commons.kapsch.classes.VignettePurchase;
import com.digitoll.commons.kapsch.classes.VignetteValidity... | true |
196a6a59cc7958b66a13ee87d6d2d500b6a6b8dd | Java | yuta-pharmacy2359/Java_Object | /第2章/src/sample/ExecToString.java | UTF-8 | 235 | 2.328125 | 2 | [] | no_license | package sample;
import java.time.LocalDate;
public class ExecToString {
public static void main(String[] args) {
Product p1 = new Product("A100", "XenPad", 35760, LocalDate.of(2016, 9, 16), true);
System.out.println(p1);
}
}
| true |
29ac7d387582df3089ea1bbed102acf573ff3e5e | Java | shiyuneau/mobileback | /admin/src/main/java/com/sy/mobileback/web/core/config/FileConfig.java | UTF-8 | 774 | 1.90625 | 2 | [] | no_license | package com.sy.mobileback.web.core.config;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;
/**
* @author shiyu
* @Description
* @create 2019-04-06 0:25
*/
@Component
@ConfigurationProperties(prefix = "mobileback")
public class FileConfig... | true |
139b787ebd69fda7cbe15fdc34627ae8b94e5f75 | Java | yiyeshua/XXYaYa | /app/src/main/java/com/yiyeshu/xxyaya/ui/fragment/MainFragment.java | UTF-8 | 1,477 | 2.09375 | 2 | [] | no_license | package com.yiyeshu.xxyaya.ui.fragment;
import android.support.design.widget.TabLayout;
import android.support.v4.view.ViewPager;
import android.util.Log;
import com.yiyeshu.xxyaya.R;
import com.yiyeshu.xxyaya.adapter.MainPagerAdapter;
import com.yiyeshu.xxyaya.base.BaseFragment;
import java.util.ArrayList;
import j... | true |
07c98ad829421e10b4b89f65490153e2b27a5637 | Java | CalinDS/Planner | /server/src/main/java/server/convert/EventConvertor.java | UTF-8 | 987 | 2.53125 | 3 | [] | no_license | package server.convert;
import lib.dto.EventDto;
import server.model.Event;
import server.model.Reminder;
import server.model.User;
import java.util.ArrayList;
import java.util.List;
public final class EventConvertor {
private EventConvertor() {
}
public static Event convert(EventDto eventDto) {
... | true |
f6ce134eb7469992244393822cb7422758e08232 | Java | chieping/typesafe_config_sample | /src/main/java/com/honda/Main.java | UTF-8 | 1,230 | 2.890625 | 3 | [] | no_license | import com.typesafe.config.*;
public class Main {
public static void main(String... args) throws Exception {
Main.class.getMethod(args[0], null).invoke(null);
}
public static void load() {
Config conf = ConfigFactory.load();
System.out.println("The answer is: " + conf.getString("simple-app.answer"));
Syste... | true |
658677b6115fe3d2ea82037468874c530978bdd5 | Java | Sakthiben/testAndReport | /src/main/java/com/karya/bean/StockEntryBean.java | UTF-8 | 2,035 | 2.40625 | 2 | [] | no_license | package com.karya.bean;
import javax.validation.constraints.NotNull;
import org.hibernate.validator.constraints.NotEmpty;
public class StockEntryBean {
private int stockid;
//@NotNull
//@NotEmpty(message = "Please enter the material request")
private String materialrequest;
private String date;
private... | true |
dc79c0ab810c8167c72268ef8d0550523082caba | Java | harshitha20/quizQuestion1 | /src/main/java/org/codejudge/sb/controller/exception/QuizNotFoundException.java | UTF-8 | 321 | 1.945313 | 2 | [] | no_license | package org.codejudge.sb.controller.exception;
import org.springframework.http.HttpStatus;
import org.springframework.web.bind.annotation.ResponseStatus;
@ResponseStatus(HttpStatus.NOT_FOUND)
public class QuizNotFoundException extends RuntimeException{
public QuizNotFoundException()
{
super();
}
}... | true |
f8cf1249d37e455b6deb8d5a4cab74643cf9d6bf | Java | thoratou/sbs | /sbs-core/src/main/java/screen/tools/sbs/component/ComponentLibrary.java | UTF-8 | 3,185 | 1.929688 | 2 | [] | no_license | /*****************************************************************************
* This source file is part of SBS (Screen Build System), *
* which is a component of Screen Framework *
* *
* C... | true |
9341e6add64a524813222105653b07896f6b32e3 | Java | u10k/JavaBase | /io/src/test/java/com/github/kuangcp/PropertiesTest.java | UTF-8 | 876 | 2.46875 | 2 | [
"MIT"
] | permissive | package com.github.kuangcp;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.nio.charset.StandardCharsets;
import java.util.Properties;
import lombok.extern.slf4j.Slf4j;
import org.junit.Test;
/**
* @author kuangcp on 18-8-21-下午4:51
*/
@Slf4j
public class PropertiesTest {... | true |
3ce5f4ceb5eaf9bfded8148b798411c858b25c0b | Java | alldatacenter/alldata | /lake/paimon/paimon-flink/paimon-flink-common/src/test/java/org/apache/paimon/flink/BinaryRowTypeSerializerTest.java | UTF-8 | 1,810 | 1.898438 | 2 | [
"BSD-3-Clause",
"MIT",
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0",
"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 ... | true |
1835da7673a7678c6c3da86a44a6b8b2e2e5637a | Java | dzzhyk/excel-upload | /src/main/java/com/yankaizhang/excel/response/LayuiResult.java | UTF-8 | 744 | 2.140625 | 2 | [
"MIT"
] | permissive | package com.yankaizhang.excel.response;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import java.util.List;
/**
* layui-table响应体
*/
@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
public class LayuiResult <T> {
private static final int... | true |
bef895c4cb262dcb81fb05ebe5ab070a26d171af | Java | ro0sterjam/cracking-the-coding-interview | /src/test/java/com/ro0sterjam/ctci/LinkedListTest.java | UTF-8 | 12,060 | 3.140625 | 3 | [] | no_license | package com.ro0sterjam.ctci;
import org.junit.Test;
import java.util.Arrays;
import java.util.HashSet;
import java.util.Set;
import static com.ro0sterjam.ctci.LinkedList.*;
import static org.hamcrest.CoreMatchers.is;
import static org.junit.Assert.*;
/**
* Created by kenwang on 2016-03-13.
*/
public class LinkedL... | true |
d812f635a8a694640d34196ac18eaeed2a6c9e6c | Java | HamiltonGravito/dio-bootcamp-everis | /src/main/java/com/github/hamiltongravito/citiesapi/countries/CountryResources.java | UTF-8 | 1,260 | 2.3125 | 2 | [] | no_license | package com.github.hamiltongravito.citiesapi.countries;
import com.github.hamiltongravito.citiesapi.countries.Country;
import com.github.hamiltongravito.citiesapi.countries.repository.CountryRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Page;
import o... | true |
91ddeefafc2c70c75fbb0b9adbc29f28b7779d36 | Java | davidliuzd/spring-boot-v2 | /Chapter16/src/main/java/net/liuzd/spring/boot/v2/config/MvcConfiguration.java | UTF-8 | 1,293 | 2.234375 | 2 | [
"MIT"
] | permissive | package net.liuzd.spring.boot.v2.config;
import org.springframework.beans.propertyeditors.StringTrimmerEditor;
import org.springframework.context.annotation.Configuration;
import org.springframework.format.FormatterRegistry;
import org.springframework.web.bind.WebDataBinder;
import org.springframework.web.bind.a... | true |
1b9143d3f1e522cd4895b178141475930438cbc8 | Java | saikirank1910/pkmachine | /Event-rest/src/main/java/com/pkrm/event/dao/RegionDaoImpl.java | UTF-8 | 970 | 2.28125 | 2 | [] | no_license | package com.pkrm.event.dao;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.core.RowMapper;
import org.springframework.jdbc.core.namedparam.NamedParameterJdbcTemplate;
import org.springframew... | true |
0f3d33f04e9d232e6c8305e45cb4ff14b998d793 | Java | brunofilipe/LS-ISEL | /src/main/java/pt/isel/ls/academicActivities/view/commands/user/GetUsersViewHtml.java | UTF-8 | 2,964 | 2.34375 | 2 | [] | no_license | package pt.isel.ls.academicActivities.view.commands.user;
import pt.isel.ls.academicActivities.engine.UrlTo;
import pt.isel.ls.academicActivities.model.IEntity;
import pt.isel.ls.academicActivities.model.Student;
import pt.isel.ls.academicActivities.model.Teacher;
import pt.isel.ls.academicActivities.utils.Writable;
i... | true |
2542d2d8ace4d62ba3c44cffaea0f0618599327e | Java | piotr-j/tastyjam | /jam/src/io/piotrjastrzebski/jam/ecs/components/rendering/AtlasAssetDef.java | UTF-8 | 317 | 1.953125 | 2 | [] | no_license | package io.piotrjastrzebski.jam.ecs.components.rendering;
import com.artemis.PooledComponent;
import com.badlogic.gdx.graphics.g2d.TextureAtlas;
public class AtlasAssetDef extends PooledComponent {
public String atlas;
public String path;
@Override protected void reset () {
atlas = null;
path = null;
}
}
| true |
9401f4c3819384a4fd92ab26dabed9fe75fa6518 | Java | kristianloseth/Asciiladden | /Asciiladden/src/asciiladden/Asciiladden.java | UTF-8 | 296 | 1.84375 | 2 | [] | no_license | package asciiladden;
public class Asciiladden {
public static void main(String[] args) throws Exception {
GetMinne minne = new GetMinne(args[0]);
String streng = minne.getRespons();
System.out.println(streng);
minne.getInfo(streng);
}
}
| true |
0c40cc64a817a5f39d13d12045b759765fe38c7d | Java | prajwalwakekar/Framework | /FedCapturev1/src/test/java/com/salesforce/utilities/ExcelDataProvider.java | UTF-8 | 1,121 | 2.6875 | 3 | [] | no_license | package com.salesforce.utilities;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import org.apache.poi.xssf.usermodel.XSSFWorkbook;
public class ExcelDataProvider {
XSSFWorkbook wb;
public ExcelDataProvider()
{
File src ... | true |
a78bae749f18f888165646ad83cf7b096a767eba | Java | LoganYue/TheProfessionals | /app/src/main/java/professional/team17/com/professional/Activity/AddReview.java | UTF-8 | 2,601 | 2.609375 | 3 | [
"Apache-2.0"
] | permissive | /*
* AddReview
*
* April 02, 2018
*
* Copyright @ 2018 Team 17, CMPUT 301, University of Alberta - All Rights Reserved.
* You may use, distribute, or modify this code under terms and conditions of the Code of Student Behaviour at the University of Alberta.
* You can find a copy of the license in the github wiki ... | true |
80aa76d6035fd39c02625102f78ed0f458ab26ba | Java | VallamkondaNeelima/ThoughtWorksAssignments | /src/com/thoughtworks/AllocateLab.java | UTF-8 | 997 | 3.53125 | 4 | [] | no_license | package com.thoughtworks;
import java.util.*;
public class AllocateLab {
public static void main(String[] args) {
// write your code here
int labCapacity[] = new int[3];
int studentCount, min = Integer.MAX_VALUE;
String allocatedLab = "";
Scanner sc = new Scanner(System.in... | true |
124891f124944a611e49237389849f982d082fd5 | Java | CheungChan/litespring | /src/main/java/org/litespring/beans/factory/BeanCreateException.java | UTF-8 | 809 | 2.78125 | 3 | [] | no_license | package org.litespring.beans.factory;
import org.litespring.beans.BeansException;
public class BeanCreateException extends BeansException {
private String beanName;
public BeanCreateException(String msg) {
super(msg);
}
public BeanCreateException(String msg, Throwable cause) {
super(... | true |
2b2b37ea1c3d3d3a13fdc5d19e6261299bf4eb84 | Java | bbossgroups/bboss | /bboss-htmlparser/src/org/htmlparser/parserapplications/filterbuilder/wrappers/HasSiblingFilterWrapper.java | UTF-8 | 6,526 | 2.421875 | 2 | [
"Apache-2.0"
] | permissive | // HTMLParser Library $Name: v1_5 $ - A java-based parser for HTML
// http://sourceforge.org/projects/htmlparser
// Copyright (C) 2005 Derrick Oswald
//
// Revision Control Information
//
// $Source: /cvsroot/htmlparser/htmlparser/src/org/htmlparser/parserapplications/filterbuilder/wrappers/HasSiblingFilterWrapper.java... | true |
05c61d3d15afac93a51b2b6e3d41c15cdc1c5910 | Java | donthadineshkumar/spring-demo-pro-with-tests-using-javaconfig | /src/test/java/com/web/EmployeeRepoTest.java | UTF-8 | 1,759 | 2.40625 | 2 | [] | no_license | package com.web;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.*;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.j... | true |
c08338b65e1d629178c651caca03a3b571a890fa | Java | hk057/ICT311 | /app/src/main/java/com/bignerdranch/android/triplogger/SettingListFragment.java | UTF-8 | 5,169 | 2.28125 | 2 | [] | no_license | package com.bignerdranch.android.triplogger;
import android.content.Intent;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.util.Log;
import android.view.LayoutInflater;
import... | true |
e4f5786e13237b6bdce82f4bcf514b69b9b9166e | Java | rathorerahul326/truckdispatcher | /TruckDispatcher/src/com/dao/Connect.java | UTF-8 | 602 | 2.515625 | 3 | [
"MIT"
] | permissive | package com.dao;
import java.sql.*;
public class Connect {
private static Connect con;
static String driver="com.mysql.jdbc.Driver";
static String url="jdbc:mysql://localhost:3306/truckdispatcher";
static String uname="root";
static String pass="rahul@123";
static{
try{
Class.forName(d... | true |
186921e942a457c72e15cf7037632990d54e0615 | Java | gitter-badger/adeptj-modules | /viewengine/handlebars/src/main/java/com/adeptj/modularweb/viewengine/api/ViewEngine.java | UTF-8 | 2,101 | 2.28125 | 2 | [
"Apache-2.0"
] | permissive | /*
* =============================================================================
*
* Copyright (c) 2016 AdeptJ
* Copyright (c) 2016 Rakesh Kumar <irakeshk@outlook.com>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* Yo... | true |
2b3102663edd7d14b8c8efc45d73918e8ae53e6a | Java | FMammadzada/Assigment4 | /library/src/main/java/edu/ada/service/library/controller/impl/BookLibraryWSImpl.java | UTF-8 | 3,722 | 2.3125 | 2 | [] | no_license | package edu.ada.service.library.controller.impl;
import edu.ada.service.library.controller.BookLibraryWS;
import edu.ada.service.library.model.dto.BookModel;
import edu.ada.service.library.model.entity.Books;
import edu.ada.service.library.service.BookLibraryService;
import edu.ada.service.library.service.ReservedPeri... | true |
40f43419e11543b3db9698f5564ea8fa2811d22f | Java | Shubhamjain2908/DS-Algo | /src/Graph/TopologicalSort.java | UTF-8 | 2,105 | 3.5 | 4 | [] | 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 Graph;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
import java.util.Sta... | true |
324f7cd457cb6cb5f1e0ad175bbf0a02e1831166 | Java | Evelinaholtho/Blomapp2 | /app/src/main/java/com/example/evelina/blomapp/interfaces/PlantStore.java | UTF-8 | 323 | 2.046875 | 2 | [] | no_license | package com.example.evelina.blomapp.interfaces;
import com.example.evelina.blomapp.Plant;
import java.util.List;
/**
* Created by Evelina on 2017-11-15.
*/
public interface PlantStore {
List<Plant> getAllPlants();
void fillPlantList();
void addPlant(Plant plant);
void updatePlant (Plant plant);
... | true |
9ddabb0b52978961d784fc13133c79fbc8cae7b3 | Java | OYousryB/SocketXpt | /AsynchronousSocketServer/src/main/try/sparkTCP/ServerWithObjects.java | UTF-8 | 2,389 | 3.015625 | 3 | [] | no_license | package sparkTCP;
import objects.Lineitem;
import java.io.*;
import java.net.ServerSocket;
import java.net.Socket;
import java.util.ArrayList;
import java.util.List;
public class ServerWithObjects {
private ServerWithObjects(int port) {
DataInputStream rawData;
ObjectOutputStream outStream;
... | true |
5f7d88945ad81c77ae7ffdd48fa325879236e5c3 | Java | ArbustaIT/CapacitacionAutomation | /src/main/java/co/com/arbusta/capacitacion/autoScreenplayCucumber/userinterfaces/UImenuCategorias.java | UTF-8 | 832 | 1.570313 | 2 | [] | no_license | package co.com.arbusta.capacitacion.autoScreenplayCucumber.userinterfaces;
import org.openqa.selenium.By;
import net.serenitybdd.core.pages.PageObject;
import net.serenitybdd.screenplay.targets.Target;
import net.thucydides.core.annotations.DefaultUrl;
@DefaultUrl("http://automationpractice.com/")
public class UImen... | true |
23a333b92d5b55e7f3d56b3612cce5af3eadf728 | Java | nut077/docker | /src/main/java/com/github/nut077/docker/controller/JwtAuthenicationController.java | UTF-8 | 2,921 | 2.1875 | 2 | [] | no_license | package com.github.nut077.docker.controller;
import com.github.nut077.docker.util.JwtTokenUtil;
import com.github.nut077.docker.dto.UserDto;
import com.github.nut077.docker.entity.JwtRequest;
import com.github.nut077.docker.entity.JwtResponse;
import com.github.nut077.docker.entity.User;
import com.github.nut077.docke... | true |
b67fb2c87459b88093ce8609509034f1f02f3876 | Java | Taskukello/shootDEMdown | /shootdemdown/src/main/java/toiminta/Logiikka.java | UTF-8 | 12,600 | 2.375 | 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 toiminta;
import toiminta.vihollisobjekti.ObjektinArpoja;
import toiminta.vihollisobjekti.VihollisObjekti;
import java.awt.Lis... | true |
493d7b3449a2260e4452d9b5b38268c1391e401c | Java | dongyj1/coding_practice | /src/ObjectOrientedDesign/PizzaDeliver/Pizza.java | UTF-8 | 1,095 | 3.09375 | 3 | [] | no_license | package ObjectOrientedDesign.PizzaDeliver;
/**
* Created by dyj on 7/4/18.
*/
public class Pizza {
Type type;
double price;
int size;
String description;
Restaurant restaurant;
public void setType(Type type) {
this.type = type;
}
public void setPrice(double price) {
... | true |
914b91aee2d89d2ada53c18b2f989027b27353cf | Java | oushuhua/Project_Afc_For_Eclipse | /TestAfc/src/com/afc/product/fragment/ShoppingAdFrgm.java | UTF-8 | 4,864 | 1.765625 | 2 | [] | no_license | package com.afc.product.fragment;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import android.net.ConnectivityManager;
import android.net.NetworkInfo;
import android.os.Bundle;
import android.view.LayoutInflater;
import an... | true |
a8e93730780a57926e048d21de4034c1f4adcb79 | Java | mandyssst/MyCode | /Forest_simulator/Helper.java | UTF-8 | 1,996 | 3.25 | 3 | [] | no_license | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package forest_simulator;
import java.util.Scanner;
/**
*
* @author songx544
*/
public class Helper {
public static boolean bool(String str)
{
if (str.equalsIgnoreCase("yes")) {
return t... | true |
aa23dac92aa31aa5a5565cb6586d689edad48ea6 | Java | xiaozi0513/anyway | /anyway-plugins/ipip-client/src/main/java/com/anyway/ipip/util/ThreadUtil.java | UTF-8 | 444 | 2.46875 | 2 | [] | no_license | package com.anyway.ipip.util;
import lombok.extern.slf4j.Slf4j;
/**
* @author: wang_hui
* @date: 2019/5/9 上午10:23
*/
@Slf4j
public class ThreadUtil {
/**
* 休眠
*
* @param millis 休眠时间,单位:毫秒
*/
public static void sleep(long millis) {
try {
Thread.sleep(millis);
... | true |
4adc691583f5e37fd901a66d2c02f5bcf92539d8 | Java | Abin7677/Logical-Questions | /company_questions/src/company/Cipher_char.java | UTF-8 | 331 | 2.6875 | 3 | [] | no_license | package company;
import java.util.Scanner;
public class Cipher_char {
public static void main(String arg[])
{
Scanner s=new Scanner(System.in);
String c=s.nextLine();
int a=s.nextInt();
char ch=0;
for(int i=0;i<1;i++)
{
ch=(char) (c.charAt(0)+a);
System.out.print(ch);
... | true |
4eb44de159717da24a5d8836dbb60b93d5d739d6 | Java | TatianeAnjos/ComunicaoRede-Java | /src/Entities/Servidor.java | ISO-8859-1 | 2,449 | 3.421875 | 3 | [] | no_license | package Entities;
import java.io.BufferedOutputStream;
import java.io.BufferedReader;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.PrintStream;
import java.net.ServerSocket;
import java.net.Socket;
import java.util.Enumeration... | true |
de006bb2ca2316c89ac8f886006b909c515c5933 | Java | guidobonerz/snatchfreezer | /SnatchFreezer/src/main/java/de/drazil/snatchfreezer/model/ActionItemPropertyBean.java | UTF-8 | 3,217 | 2.171875 | 2 | [] | no_license | package de.drazil.snatchfreezer.model;
import org.nield.dirtyfx.beans.DirtyBooleanProperty;
import org.nield.dirtyfx.beans.DirtyLongProperty;
import javafx.beans.property.SimpleLongProperty;
public class ActionItemPropertyBean {
private SimpleLongProperty index;
private DirtyLongProperty delay;
private DirtyLong... | true |
a5f7c886f208ebb8921acb7903fae7e81cd4caf4 | Java | hongnam207/pi-network-source | /java/com/facebook/ads/redexgen/X/C0273Af.java | UTF-8 | 1,327 | 2.109375 | 2 | [] | no_license | package com.facebook.ads.redexgen.X;
import androidx.annotation.Nullable;
/* renamed from: com.facebook.ads.redexgen.X.Af reason: case insensitive filesystem */
public final class C0273Af {
public static final C0273Af A02 = new C0273Af(Long.MAX_VALUE, Long.MAX_VALUE);
public static final C0273Af A03 = A04;
... | true |
c153bcf44f770f1e5437dec05cbbe63ec61186e5 | Java | DarkDrogan/EnglTrainer | /src/main/java/cf/darkdrogan/apps/englTrainer/StorageForWords/IrVerbWords.java | UTF-8 | 20,199 | 2.5625 | 3 | [] | no_license | package cf.darkdrogan.apps.englTrainer.StorageForWords;
import java.util.Random;
/**
* ??
*/
public class IrVerbWords implements Words {
//Array of the irregular verbs, may be changed to SQL or XML||JSon list for parsing
/**
* private String VERB = "rusInfinitive iDo rootDo rootDid firstVerb secondVerb ty... | true |
83feed818984862d4e59e7812081c3098f31d679 | Java | INBio/m3s | /m3s-service/src/test/java/org/inbio/m3s/dao/INBioTaxonDAOTest.java | UTF-8 | 3,497 | 2.328125 | 2 | [] | no_license | package org.inbio.m3s.dao;
import org.inbio.m3s.dao.core.TaxonDAO;
import org.inbio.m3s.model.atta.INBioTaxon;
import org.inbio.m3s.model.taxonomy.Taxon;
import org.springframework.test.AbstractDependencyInjectionSpringContextTests;
public class INBioTaxonDAOTest extends AbstractDependencyInjectionSpringContextTest... | true |
88cbca48898d7b2aee087b0981da80acc47804d8 | Java | jcaso26/Kamaduino_Back | /src/main/java/com/kamaduino/converter/TemperaturaConverter.java | UTF-8 | 836 | 2.390625 | 2 | [
"Apache-2.0"
] | permissive | package com.kamaduino.converter;
import com.kamaduino.dto.TemperaturaDTO;
import com.kamaduino.entity.Temperatura;
public class TemperaturaConverter {
public static TemperaturaDTO entityToDTO(Temperatura temperatura){
TemperaturaDTO temperaturaDTO = new TemperaturaDTO(temperatura.getId(), temperatura.get... | true |
df4e0ee56a0b3fc55a3b42726826bf4e0d3de882 | Java | gui-gui-maker/MyFrame | /SYTSB1/.svn/pristine/3f/3f94ed45710d1450ab249ace44c3e28ce30ac5bb.svn-base | UTF-8 | 5,284 | 2.140625 | 2 | [] | no_license | package com.fwxm.scientific.web;
import java.util.Date;
import java.util.HashMap;
import javax.servlet.http.HttpServletRequest;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.sp... | true |
dd93d9395be0a44c99158421392a88c33af99740 | Java | focusxyhoo/leetcode | /src/examination/Huawei02.java | UTF-8 | 3,472 | 3.28125 | 3 | [] | no_license | package examination;
import java.util.*;
/**
* created with IntelliJ IDEA
* author : focusxyhoo
* date : 2019-08-14
* time : 18:55
* description :
*/
public class Huawei02 {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
String s = scann... | true |
34345be7ce6e084ecee6b26c6248811102f460f5 | Java | matthiaw/quarxs | /QuarXs/src/main/java/org/rogatio/quarxs/GraphEventListener.java | UTF-8 | 32,501 | 1.960938 | 2 | [] | no_license | package org.rogatio.quarxs;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import javax.inject.Inject;
import javax.inject.Named;
import javax.inject.Provider;
import org.rogatio.quarxs.util.Constants;
import org.rogatio.quarxs.util.ObjectQuery;
import org.rogatio.quarxs.ut... | true |
20c9599db08630ce7b4f45aa02bd862d7224960d | Java | aekgmla77/miniproject | /mini_project/src/co/mini_project/project/web/FoodDelete.java | UTF-8 | 607 | 2.078125 | 2 | [] | no_license | package co.mini_project.project.web;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import co.mini_project.project.common.Command;
import co.mini_project.project.dao.MenuDao;
import co.mini_project.project.vo.MenuVO;
public class FoodDelete implements Command {
@Overri... | true |
910597de4993c4bab2ef9a609df85c5c4e2ebfb1 | Java | AllanWendy/jenkins | /sdk/src/main/java/com/wecook/sdk/api/model/Session.java | UTF-8 | 1,614 | 2.34375 | 2 | [] | no_license | package com.wecook.sdk.api.model;
import com.google.gson.annotations.SerializedName;
import com.wecook.common.core.internet.ApiModel;
import com.wecook.common.utils.JsonUtils;
import org.json.JSONException;
/**
* 会话
*
* @author kevin
* @version v1.0
* @since 2014-11/18/14
*/
public class Session extends ApiMod... | true |
1cc4bc452161a263422a24eebbee2a008fd332c9 | Java | Krzysztof-87/AdvancedJava | /src/Zad7/Circle.java | UTF-8 | 696 | 3.28125 | 3 | [] | no_license | package Zad7;
/*
Klasa Circle powinna implementować interfejs GeometricObject , a ponadto
zawierać pole: promień. Metody interfejsu GeometricObject powinny zostać
zaimplementowane zgodnie z de nicjami metematycznymi
*/
public class Circle implements GeometricObject {
protected float radius;
public Circle(in... | true |
d966771a6fde22d54163ad8faa95ec7626512d9a | Java | DineshNadar95/Coding-stuff | /Educative/Queues/Queues.java | UTF-8 | 1,366 | 3.828125 | 4 | [] | no_license | import java.util.*;
class Queues {
public static String[] generateBinaryToN(int N){
String[] result = new String[N];
// Write -- Your -- Code
Queue<String> q = new LinkedList<>();
q.offer("1");
int indx = result.length;
while(indx != 0 && !q.isEmpty()){
String peeked = q.peek();
result[result.length... | true |
96dab30a60bcdd4677e9f805b24fdb6e275c4724 | Java | ani03sha/Leetcoding | /november-2021-leetcoding-challenge/src/main/java/org/redquark/leetcoding/challenge/Problem27_ProductOfArrayExceptSelf.java | UTF-8 | 1,495 | 3.75 | 4 | [
"MIT"
] | permissive | package org.redquark.leetcoding.challenge;
/**
* @author Anirudh Sharma
* <p>
* Given an integer array nums, return an array answer such that answer[i] is equal to the product of all the
* elements of nums except nums[i].
* <p>
* The product of any prefix or suffix of nums is guaranteed to fit in a 32-bit intege... | true |
a57a18f82705199b2e1d33214b04d3ba5da1f71d | Java | nosmoon/misdevteam | /src/chosun/ciis/hd/lvcmpy/rec/HD_LVCMPY_2801_LCURLISTRecord.java | UHC | 2,885 | 1.828125 | 2 | [] | no_license | /***************************************************************************************************
* ϸ : .java
* : ڿ-û
* ۼ : 2007-05-22
* ۼ : 뼷
***************************************************************************************************/
/*****************************************************************... | true |
2fd1748f157e520cf98daa91ffe8c9c9be5925be | Java | yinfang/XiWeiApp | /common/src/main/java/com/zyf/device/BaseView.java | UTF-8 | 763 | 1.945313 | 2 | [] | no_license | package com.zyf.device;
import com.zyf.model.Result;
/**
* 类描述: 描述该类的功能
* 创建人: wzg
* 创建时间: 2017/3/9
* 修改时间: 2017/3/9 20:39
* 修改备注: 说明本次修改内容
*/
public interface BaseView {
void showToast(Result result);
void showProgress();
void showProgressNoCancel();
void showProgress(String msg);
... | true |
65da1c11a03c0bde0094dede3008cd7b3ca204e4 | Java | Weijiangtao139300/NewYuNiFangDemo | /app/src/main/java/weijiangtao/bwie/com/newyunifangdemo/activity/Homeactivity.java | UTF-8 | 5,644 | 1.921875 | 2 | [] | no_license | package weijiangtao.bwie.com.newyunifangdemo.activity;
import android.graphics.Color;
import android.os.Build;
import android.os.Bundle;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentTransaction;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import a... | true |
04a33a20ae242a4f70c1a84c1e8fb47f6e3c47fa | Java | IreneCho424/java2020_2 | /javalab4/src/ex1/TwoDShape.java | UHC | 306 | 3.390625 | 3 | [] | no_license | package ex1;
//( 1) TwoDShape Ŭ. width height Ÿ showDim() Լ.
//1817022 ̸
public class TwoDShape{
public double width;
public double height;
public void showDim() {
System.out.println("Width and height are " + width + " and " + height);
}
} | true |
7c43d529496f4b3cf84b14e9cd01b94a96b6ece7 | Java | logicmons/myVhr | /web-vhr/vhr-web/src/main/java/com/ysj/vhr/web/LoginController.java | UTF-8 | 1,235 | 2.375 | 2 | [] | no_license | package com.ysj.vhr.web;
import com.ysj.vhr.config.VerificationCode;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSe... | true |
180ed71b49ca5902e5565b5f66249f2e19eb21ab | Java | shnsalal/Spring-Boot-Login-Form-With-JWT | /jwt-project/src/main/java/com/darkroom/main/Service/RoleService.java | UTF-8 | 146 | 1.890625 | 2 | [] | no_license | package com.darkroom.main.Service;
import com.darkroom.main.model.Role;
public interface RoleService {
public Role findByRole(String role);
}
| true |
fd8104f0d88e82c0c88871b5efca53393454c061 | Java | ruddn777/Chap11 | /Chap11/src/SuperTest3/SuperTest3.java | UHC | 929 | 3.21875 | 3 | [] | no_license | package SuperTest3;
class SD1{
public int i1;
public double d1;
public SD1(int i1){
System.out.println("SD1(int i1) ");
this.i1=i1*i1;
System.out.println(i1+" 2:"+this.i1);
}
public SD1(double d1){
System.out.println("SD1(double d1) ");
this.d1=d1*d1 ;
System.out.println(d1+" 2:"+this.d1... | true |
857a95d15db0cc38fa2378eede5baa10b02ef443 | Java | Banzindun/dota2ai | /Dota2Framework/src/main/java/cz/cuni/mff/kocur/console/CommandResponse.java | UTF-8 | 2,450 | 3.65625 | 4 | [] | no_license | package cz.cuni.mff.kocur.console;
import cz.cuni.mff.kocur.base.CustomStringBuilder;
/**
* Class that represents a console command response. The response stores the
* status of the command, that was performed as well as it's message.
*
* @author kocur
*
*/
public class CommandResponse extends CustomStringBuil... | true |
c6eadd6781078ae4dd69377a40ab101aeb699613 | Java | digidee/powerlift | /Powerlift/src/com/example/powerlift/WorkoutMain.java | UTF-8 | 1,735 | 2.015625 | 2 | [] | no_license | package com.example.powerlift;
import java.util.List;
import android.graphics.Color;
import android.os.Bundle;
import android.support.v4.app.ListFragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.ViewGroup;
import android.widget.Button... | true |
34c9b31597f954dded1f6fea93edae12e7d51b97 | Java | achmos/x-debugger | /src/interpreter/bytecode/debuggerByteCodes/HeaderCode.java | UTF-8 | 551 | 2.484375 | 2 | [] | no_license | package interpreter.bytecode.debuggerByteCodes;
import interpreter.VirtualMachine;
import interpreter.bytecode.ByteCode;
import interpreter.debugger.DebugVirtualMachine;
/**
* HeaderCode is an Abstract class that is used to tell the
* difference between Header ByteCodes of a Function and
* the regular ByteCodes.
... | true |
dcbd4251617b32eb7cda19295ae627004ebd733a | Java | rscerb1/InClassStategy | /src/PaypalStrategy.java | UTF-8 | 378 | 2.765625 | 3 | [] | no_license | // Reggie Scerbo, Matt Cole, Delano Powell
public class PaypalStrategy implements PaymentStrategy{
private String emailID, password;
public PaypalStrategy(String emailID, String password){
this.emailID = emailID;
this.password = password;
}
@Override
public void pay(int amount){
... | true |
9d47202b81595d6d02d413ba4f2722f972d159c8 | Java | vtitkova/Dashboard | /dashboard/dashboard-web/src/main/java/com/dmma/dashboard/gwt/admin/client/mvp/tables/broker/brokers/presenter/BrokersPresenterDisplay.java | UTF-8 | 842 | 1.929688 | 2 | [] | no_license | package com.dmma.dashboard.gwt.admin.client.mvp.tables.broker.brokers.presenter;
import java.util.ArrayList;
import com.dmma.dashboard.gwt.core.shared.entities.BrokerDTO;
import com.dmma.dashboard.gwt.core.shared.entities.BrokerOfficeDTO;
import com.google.gwt.event.dom.client.HasChangeHandlers;
import com.google.gwt... | true |
060e613708b863cc88e14d054660f4223c101c3f | Java | VicenteFnowell/sonidosdepeliculas | /app/src/main/java/com/example/sonidosdepeliculas/CSonidos.java | UTF-8 | 1,037 | 2.453125 | 2 | [] | no_license | package com.example.sonidosdepeliculas;
/**
* Created by Vicente FN on 04/03/2018.
*/
public class CSonidos {
String titulo;
String duracion;
String nombre;
String pelicula;
public CSonidos(String titulo, String duracion, String nombre,String pelicula) {
this.titulo = titulo;
t... | true |
81498e2d1d65d6f4fb4d152f8cd56d2189598174 | Java | mol-yan/myCode | /redis_study/src/test/java/com/hangyan/redis_study/Mapper/TestCourseMapper.java | UTF-8 | 992 | 2.15625 | 2 | [] | no_license | package com.hangyan.redis_study.Mapper;
import com.alibaba.fastjson.JSON;
import com.hangyan.redis_study.model.Course;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframew... | true |
971a7858205999b84feec3701a1fd3401bcc3433 | Java | DashaMihai/Homework | /Task20_tests/MessageSendGroupTest.java | UTF-8 | 1,431 | 2.03125 | 2 | [] | no_license | package test;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;
import org.testng.AssertJUnit;
import org.testng.annotations.AfterClass;
import org.testng.annotations.BeforeClass;
import org.testng.annotations.Test;
import page.LoginPage;
import page.... | true |
356945b9fdc2094eb6b06f8b0c96d1a57f15a021 | Java | ft655508/SilverKing | /src/com/ms/silverking/cloud/dht/daemon/storage/ValidityVerifier.java | UTF-8 | 971 | 2.28125 | 2 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | package com.ms.silverking.cloud.dht.daemon.storage;
import java.nio.ByteBuffer;
import com.ms.silverking.cloud.dht.ConsistencyProtocol;
import com.ms.silverking.cloud.dht.common.MetaDataUtil;
import com.ms.silverking.cloud.dht.daemon.storage.protocol.StorageProtocolUtil;
/**
* Verify storage state. Possibl... | true |
2cf7802149ef6d8f1f6868c19657337f67f99926 | Java | spampana/Core-Java | /SCJP/src/com/helpezee/boundedtypeswithgenerics/B.java | UTF-8 | 155 | 2.203125 | 2 | [] | no_license | package com.helpezee.boundedtypeswithgenerics;
public class B extends A {
public void displayClass() {
System.out.println("Inside sub class B");
}
}
| true |
5778630fb0721317f8b919e57f512e586bb414f6 | Java | chzhcn/biosoftware | / biosoftware/src/biodraft/PrimerPair.java | UTF-8 | 2,528 | 2.734375 | 3 | [] | no_license | package biodraft;
import java.sql.*;
import java.util.ArrayList;
public class PrimerPair {
private int forStart;
private int forEnd;
private int revStart;
private int revEnd;
private double score;
private int groupID;
public PrimerPair(int forStart, int forEnd, int revStart,
... | true |
566d4def792028d7dc0e46cf2e6c382885c89830 | Java | lizanle521/springaop | /src/main/java/com/lzl/netty/chapter10fileserver/httpxml/server/HttpXmlServerHandler.java | UTF-8 | 1,685 | 2.4375 | 2 | [] | no_license | package com.lzl.netty.chapter10fileserver.httpxml.server;
import com.lzl.netty.chapter10fileserver.httpxml.Order;
import com.lzl.netty.chapter10fileserver.httpxml.codec.HttpXmlRequest;
import com.lzl.netty.chapter10fileserver.httpxml.codec.HttpXmlResponse;
import io.netty.channel.ChannelFuture;
import io.netty.channel... | true |
6cdc22881589d7f8dbad3aa74c81acfd2c7f821c | Java | diegomigliavacca/deegree3.3-gpkg | /deegree-services/deegree-services-wps/src/main/java/org/deegree/services/wps/provider/JavaProcessProviderProvider.java | UTF-8 | 4,231 | 1.609375 | 2 | [] | no_license | //$HeadURL$
/*----------------------------------------------------------------------------
This file is part of deegree, http://deegree.org/
Copyright (C) 2001-2009 by:
- Department of Geography, University of Bonn -
and
- lat/lon GmbH -
This library is free software; you can redistribute it and/or modify it und... | true |
c983fa77cabdbc53342be44fefa5bec66d4ca167 | Java | RitaLanca/spring-course | /src/app/spring_course/model/enums/UnitMeasures.java | UTF-8 | 118 | 1.851563 | 2 | [] | no_license | package com.academy.recipes.spring_course.model.enums;
public enum UnitMeasures {
GR,
POUNDS,
KILOGRAMS,
LITER
}
| true |
f89d64259b79de2f35bd9be6aa0935acc5f107b2 | Java | rishikumar-RK/Morse-Code-Translator-App | /app/src/main/java/com/example/rishi/morsecode/MainActivity.java | UTF-8 | 5,084 | 2.484375 | 2 | [] | no_license | package com.example.rishi.morsecode;
import android.content.ClipData;
import android.content.ClipboardManager;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.ImageButton;
import android.widget.TextView;
import and... | true |
bba3a5b6b51ba1de03864d374b48a6fcc0c3ec39 | Java | lizhifeng-sky/CreateRecyclerAdapter | /src/CreateJavaUtils.java | UTF-8 | 3,743 | 2.703125 | 3 | [] | no_license |
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileWriter;
import java.io.IOException;
/**
* Created by Administrator on 2017/4/20 0020.
*/
public class CreateJavaUtils {
public static void createBaseAdapter(String packageName, String path) throws IOException {
String filePath = path... | true |
377ada14b4cf449fcb886f7568f2cfae63b74035 | Java | MarcIotInfra/Dabchat | /Private/Main/src/main/java/com/example/main/webservice/FriendListService.java | UTF-8 | 680 | 2.15625 | 2 | [] | no_license | package com.example.main.webservice;
import com.example.main.interfaces.IFriendListRepository;
import com.example.main.model.User;
import java.util.List;
import retrofit2.Call;
import retrofit2.http.Body;
import retrofit2.http.GET;
import retrofit2.http.POST;
import retrofit2.http.Path;
import retrofit2.http.Query;
... | true |
3d779d9a1d2bc55488cea2c0c7e011de5b221600 | Java | dscholz-tgm/PasswordManager | /src/pwm/utils/CipherFactory.java | UTF-8 | 610 | 2.75 | 3 | [] | no_license | package pwm.utils;
import java.security.NoSuchAlgorithmException;
import javax.crypto.Cipher;
import javax.crypto.NoSuchPaddingException;
/**
* Creates the different Cipher to prevent from
* catching the exceptions every time
*
* @author Adrian Bergler
* @version 0.1
*/
public class CipherFactory {
private ... | true |
a115d4430922f6826e45c67d20bf31858d1a9e02 | Java | millicAa/LanguageSchoolApp | /projekat/SkolaStranihJezikaZajednicki/src/domen/Kurs.java | UTF-8 | 4,960 | 2.46875 | 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 domen;
import java.io.Serializable;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.ArrayList;
impor... | true |
7513ad27a34ccb7e29146a34cead18c03a6fee23 | Java | CodingSoldier/java-learn | /文件/thinkinginjavaexamples/annotations/database/Uniqueness.java | UTF-8 | 237 | 2.03125 | 2 | [
"Apache-2.0"
] | permissive | //: annotations/database/Uniqueness.java
// Sample of nested annotations
package com.thinkinginjavaexamples.annotations.database;
public @interface Uniqueness {
Constraints constraints()
default @Constraints(unique=true);
} ///:~
| true |
fcd24750d5bef1b3bec06c0d6b76aca846fd3dec | Java | TehVenomm/sauceCodeProject | /sources/com/google/android/gms/internal/zzcqb.java | UTF-8 | 7,784 | 1.71875 | 2 | [] | no_license | package com.google.android.gms.internal;
import android.annotation.SuppressLint;
import android.content.Context;
import android.os.PowerManager;
import android.os.PowerManager.WakeLock;
import android.os.WorkSource;
import android.text.TextUtils;
import android.util.Log;
import com.google.android.gms.common.internal.z... | true |
1465a39946cbe3d3554add1843d6e9dd8cf776ca | Java | foxking0416/SDT | /src/sdt/stepb/stepb_object_array.java | UTF-8 | 1,801 | 2.90625 | 3 | [] | no_license | package sdt.stepb;
import java.util.LinkedList;
import java.util.Hashtable;
public class stepb_object_array
{
protected LinkedList list;
protected Hashtable idTable;
boolean isRerrangeNeed ;
public stepb_object_array()
{
list = new LinkedList();
idTable = new Hashtable();
... | true |
2eb151e3568b06871db024e5eac6a1f93b55edad | Java | ioulios1/e-student | /Application_Files/DesktopApp/src/DesktopApp/addStudentClient.java | UTF-8 | 1,955 | 2.46875 | 2 | [] | no_license |
package DesktopApp;
import javax.ws.rs.ClientErrorException;
import javax.ws.rs.client.Client;
import javax.ws.rs.client.Invocation;
import javax.ws.rs.client.WebTarget;
import org.json.*;
/**
* Η κλάση addStudentClient εκτελεί τις βοηθητικές λειτουργίες για την κλήση
* του webService add_student.
* @author Ioulio... | true |
ebdacbc5adb3619300e0c7c3520abab19f848a50 | Java | wangyuchen-1/CompilerFront | /src/com/ctgu/inter/Or.java | WINDOWS-1252 | 376 | 2.5625 | 3 | [] | no_license | package com.ctgu.inter;
import com.ctgu.lexer.Token;
// || ıת jumping
public class Or extends Logical{
public Or(Token tok,Expr x1, Expr x2) {
super(tok,x1,x2);
}
public void jumping(int t,int f) {
int label = t != 0 ? t : newlabel();
expr1.jumping(label, 0);
expr2.jumping(t, f);
if(t == 0) {
emit... | true |