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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
135a7a7578a10f3e5366d756d11b6fe20d9b4a10 | Java | fgoneto/P2-T2_20161 | /P2_20161/src/aula_0810/seboso/Aluno.java | UTF-8 | 821 | 3.09375 | 3 | [] | no_license | package aula_0810.seboso;
import java.util.ArrayList;
public class Aluno {
private String nome;
private int idade;
private ArrayList<Double> notas;
public Aluno(String nome, int idade){
this.nome = nome;
this.idade = idade;
this.notas = new ArrayList<Double>();
}
public double getMaiorNota(){
d... | true |
40a98c6d0f4eb2bbb2ec444b6121d39ee1c28400 | Java | mahdiarn/OOPJava | /src/road/Road.java | UTF-8 | 479 | 2.53125 | 3 | [
"MIT"
] | permissive | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package road;
import facility.Facility;
/**
*
* @author Aya Aurora
*/
public class Road extends Facility{
//Constructor tanpa pa... | true |
b32773c34ac80fa8fbd29f5ca3836a65c76adc11 | Java | city-residence/OpenEstate-IS24-REST | /Core/src/main/jaxb/org/openestate/is24/restapi/xml/realestateproject/ContactFormFields.java | UTF-8 | 11,508 | 1.8125 | 2 | [
"Apache-2.0"
] | permissive |
package org.openestate.is24.restapi.xml.realestateproject;
import java.io.Serializable;
import javax.annotation.Generated;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlType;
import org.jvnet.jaxb2_commons.lang.CopyStrategy2;
impo... | true |
1851a4515898b52c64bcd69b6a5ea13556fb2dfb | Java | Bhawna11agg/Songs | /app/src/main/java/com/example/songs/song1.java | UTF-8 | 2,693 | 2.109375 | 2 | [] | no_license | package com.example.songs;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.media.MediaPlayer;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.ImageView;
import android.widget.TextView;
public class song1 extends Ap... | true |
81ff09f65bb52af7f13fc4c241570b6addff54cc | Java | Monkey-mi/erp | /src/erp/erp/PrepayAdjustment/service/PrepayAdjustmentInfoService.java | UTF-8 | 2,844 | 1.8125 | 2 | [] | no_license | package erp.erp.PrepayAdjustment.service;
import java.util.List;
import java.util.Map;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import erp.erp.PrepayAdjustment.data.PrepayAdjustmentInfoMapper;
import erp.erp.PrepayAdjustment.model.AgreementChoose;
... | true |
d03275f37e4091267e7ef3c1e3ce26a3fa694f68 | Java | Daniel-Lizarazo-Fuentes/BattleShips-Game | /battleshipGame/src/game/server/Client.java | UTF-8 | 8,211 | 3.203125 | 3 | [] | no_license | package game.server;
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.OutputStreamWriter;
import java.net.InetAddress;
import java.net.Socket;
import java.util.InputMismatchException;
import java.util.Scanner;
import game.except... | true |
87daf56a2631c141ece58696200beec2e1e553ef | Java | DerekWoof/eshop | /src/main/java/com/shop/controller/FullProductController.java | UTF-8 | 1,127 | 2.359375 | 2 | [] | no_license | package com.shop.controller;
import com.shop.model.Product;
import com.shop.repository.impl.ProductRepositoryImpl;
import com.shop.service.ProductService;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequ... | true |
08fabdb39fc75a74aaab7e7e624c9b1338c96f3d | Java | FunnyToxa/TicketAggregator | /src/main/java/RESTService/Controllers/UserRequestController.java | UTF-8 | 3,139 | 2.640625 | 3 | [] | no_license | package RESTService.Controllers;
import RESTService.DTO.Request.UserRequest;
import RESTService.DTO.Response.Trip;
import RESTService.DTO.RequestResponse;
import RESTService.DTO.Entries.UserResponseEntry;
import RESTService.Service.TicketService;
import org.springframework.beans.factory.annotation.Autowired;
import or... | true |
9c03e834a90b2558ef2c26dce2ed41e3559cc4f8 | Java | cph-mn521/LEGOHouse | /src/main/java/com/LEGO/DBconnector/Connector.java | UTF-8 | 1,101 | 2.703125 | 3 | [] | no_license | package com.LEGO.DBconnector;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.SQLException;
public class Connector {
private static final String DRIVER = "com.mysql.cj.jdbc.Driver";
private static final String URL = "jdbc:mysql://207.154.240.49/LEGOHouse"... | true |
67c52b3385c410e6db6f7ea659a8e3fda0951e09 | Java | Caire153901/carmanage | /src/main/java/com/wmt/carmanage/vo/VisitInfoVo.java | UTF-8 | 813 | 2.078125 | 2 | [] | no_license | package com.wmt.carmanage.vo;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.wmt.carmanage.entity.Customer;
import com.wmt.carmanage.entity.OrderInfo;
import lombok.Data;
import java.util.Date;
/**
* 回访信息
*/
@Data
public class VisitInfoVo {
/**
* ID
*/
private Integer id;
/**... | true |
501de891157ca3055549cf722b09f8aa1ec8ad37 | Java | thomaslundberg44/TheBeanQuartet | /src/main/java/com/the_bean_quartet/msc_project/entities/FailureDataList.java | UTF-8 | 498 | 2.046875 | 2 | [] | no_license | package com.the_bean_quartet.msc_project.entities;
import java.util.Collection;
import javax.xml.bind.annotation.XmlRootElement;
@XmlRootElement
public class FailureDataList {
// auto generated serial id
private static final long serialVersionUID = 1L;
private Collection<FailureClass> failures;
public Collect... | true |
edbb19785ca47119042b62593d5d0bb62cbdbe9c | Java | fithisux/Sevirus | /src/org/ntua/generic/AuxiliaryInfo.java | UTF-8 | 2,444 | 2.703125 | 3 | [] | no_license | /*
Copyright (c) ${date} Dr. Vasileios I. Anagnostopoulos.
This file is part of Sevirus.
Sevirus is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your opt... | true |
bfd76f750e2c326c5f935d3a645a653bb42589c9 | Java | deroneriksson/systemml-imgproc | /src/main/java/org/apache/sysml/image/ImgChannels.java | UTF-8 | 1,265 | 2.09375 | 2 | [
"Apache-2.0"
] | 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 |
b76b51952d0ddd19bbd8a5ccd0c9a29463a46342 | Java | Shuaidezixin/etrepair | /src/main/java/com/liveneo/etrepair/model/app/AppCaseInfoDto.java | UTF-8 | 3,154 | 1.90625 | 2 | [] | no_license | package com.liveneo.etrepair.model.app;
public class AppCaseInfoDto {
private String caseNo;
private String licenseNo;
private String dispatchType;
private String userName;
private String contact;
private String contactPhone;
private String damageDate;
private String damagePla... | true |
6fc79e743a270e05e5e283127e08a7e2bf9a09b3 | Java | ThitiBobo/ClientTFTP | /src/com/amigos/graphical/JFormClientTFTP.java | UTF-8 | 12,310 | 2.15625 | 2 | [] | no_license | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package com.amigos.graphical;
import CustomedExceptions.ServerSideException;
import com.amigos.tftp.ClientTFTP;
import java.awt.Color;... | true |
e385fee577fc590438bbc63dc3e2ce0e1627116d | Java | ArisChoice/AppUser | /app/src/main/java/com/app/barber/ui/postauth/activities/basic/TimeSelectionActivity.java | UTF-8 | 2,164 | 1.90625 | 2 | [
"MIT"
] | permissive | package com.app.barber.ui.postauth.activities.basic;
import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.widget.Toolbar;
import android.view.View;
import android.widget.ImageView;
import com.app.barber.R;
import com.app.barber.core.BaseActivit... | true |
03b1f5118412aedec523c07a6151dff89cf8169f | Java | EasyHapiness/spring-boot-module | /song-web/src/main/java/ya/song/controller/UserController.java | UTF-8 | 772 | 1.976563 | 2 | [] | no_license | package ya.song.controller;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import ya.song.service.UserService;
@RequestMapping("... | true |
d2f0a794e2151ff48586a107843e2ac6530244c4 | Java | ThanhHau97/Quan_Li_Nhan_Vien | /ASM/src/Poly/Controller/DepartsController.java | UTF-8 | 4,486 | 2.140625 | 2 | [] | no_license | package Poly.Controller;
import java.util.List;
import javax.persistence.Id;
import org.hibernate.Query;
import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.hibernate.Transaction;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller... | true |
442844388fe713d84b8fc40c0f790d04f5a88847 | Java | josemevi/angular-spring-backend | /src/main/java/com/jdmv/springboot/backend/apirest/controllers/ClienteRestController.java | UTF-8 | 10,999 | 2.28125 | 2 | [] | no_license | package com.jdmv.springboot.backend.apirest.controllers;
import java.io.IOException;
import java.net.MalformedURLException;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;
import javax.validation.Valid;
import org.springframework.beans.factory.annotation.Aut... | true |
3c3761262ae4a86b045f3a876210d874a22a621d | Java | kmrsumeet/Codemonk | /src/PatternPrinting1.java | UTF-8 | 551 | 3.4375 | 3 | [] | no_license | import java.util.Scanner;
public class PatternPrinting1 {
public static void main(String[] args) {
// TODO Auto-generated method stub
Scanner sc = new Scanner(System.in);
int t = sc.nextInt();
while(t-- > 0){
int noOfRows = sc.nextInt();
//int noOfColToPrint = noOfRows - 1;
for(int row = 1;row<= noOfRo... | true |
89fdc2b6fac5ddff14463998ffd9b7edc1eca056 | Java | amarin617/tfg-marin-app | /app/src/main/java/marin/tfg/com/tfgapp/restService/RestService.java | UTF-8 | 2,102 | 2.359375 | 2 | [] | no_license | package marin.tfg.com.tfgapp.restService;
import android.content.Context;
import android.os.AsyncTask;
import android.util.Base64;
import android.util.Log;
import org.json.JSONException;
import org.json.JSONObject;
import java.io.IOException;
import marin.tfg.com.tfgapp.objects.Callback;
import marin.tfg.com.tfgapp... | true |
8cfb85846e3cac3bd998cd4dad3551b6ee36acd9 | Java | ZernovG/Calendar | /src/main/java/com/calendar/server/nlp/TomitaParser.java | UTF-8 | 3,147 | 2.78125 | 3 | [] | no_license | package com.calendar.server.nlp;
import java.io.*;
import java.util.Arrays;
import java.util.HashMap;
import java.util.List;
import java.util.stream.Collectors;
public class TomitaParser {
private File tomitaBin;
private File workDir;
private class TomitaProcess {
private Process tomitaProcess;
... | true |
e88196370075a22c1bc16f14ece5eed38a30f63e | Java | viewserver/viewserver | /viewserver-core/src/main/java/io/viewserver/operators/projection/IProjectionConfig.java | UTF-8 | 4,216 | 2.171875 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2016 Claymore Minds Limited and Niche Solutions (UK) Limited
*
* 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
*
* Unl... | true |
11d60288b4232686999812e919903028f9e8dd6c | Java | longpham041292/java-sample | /session-service/src/main/java/asia/cmg/f8/session/dto/UserSubscriptionDto.java | UTF-8 | 1,658 | 2.3125 | 2 | [] | no_license | package asia.cmg.f8.session.dto;
import java.time.LocalDateTime;
import java.time.ZoneId;
import com.fasterxml.jackson.annotation.JsonProperty;
import asia.cmg.f8.session.entity.BasicUserEntity;
public class UserSubscriptionDto {
public UserSubscriptionDto(BasicUserEntity user, final LocalDateTime startTime, fina... | true |
a783193047b72bf005778b2e4b7dd8c52a7a2889 | Java | bellmit/Innovant | /app/src/main/java/com/innovent/erp/adapter/DashboardAdapter.java | UTF-8 | 5,967 | 1.898438 | 2 | [] | no_license | package com.innovent.erp.adapter;
import android.content.Context;
import android.content.Intent;
import android.graphics.drawable.Drawable;
import android.support.v4.content.ContextCompat;
import android.support.v4.graphics.drawable.DrawableCompat;
import android.support.v7.widget.RecyclerView;
import android.view.Lay... | true |
e33e08be38ae6e802b34cb09a317e6e73426a6de | Java | aixiaolinzi/yzzCool | /app/src/main/java/com/yue/opengl/deep4/Deep4Activity.java | UTF-8 | 790 | 2.109375 | 2 | [] | no_license | package com.yue.opengl.deep4;
import android.opengl.GLSurfaceView;
import android.os.Bundle;
import androidx.appcompat.app.AppCompatActivity;
/**
*Time: 2021/6/18
*Author:yzzCool
*Description: Android OpenGL ES(四)-为平面图添加滤镜
* https://www.jianshu.com/p/7bcdb68823cb
*/
public class Deep4Activity extends Ap... | true |
c7c745a17baeef92ab25aa2be03e2a170f5bff89 | Java | nflorez228/Android-project-wise | /app/src/main/java/com/nicoft/bewise/ConectToHubActivity2.java | UTF-8 | 18,853 | 2.046875 | 2 | [] | no_license | package com.nicoft.bewise;
import android.app.ProgressDialog;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.graphics.Color;
import android.net.NetworkInfo;
import android.net.nsd.NsdManager;
import android.net.nsd.NsdServiceInfo;
import android.... | true |
f644a5ce8057e92d13c433cdb05bd1224a8ab312 | Java | JasperPluijmers/networkAssignment | /src/main/java/fileserver/utils/packetUtils/PacketOption.java | UTF-8 | 999 | 2.875 | 3 | [] | no_license | package fileserver.utils.packetUtils;
/**
* The different options for packets. These are used in the protocol, for more information see the readme of the package
*/
public enum PacketOption {
Discover((byte) 0),
Discovered((byte) 1),
Setup((byte) 2),
Accept((byte) 3),
Request((byte) 4),
Ackno... | true |
b65b7fb1799e5f9b13eaeae71e142edf809cfad2 | Java | mikafouenski/DevoirJEE1 | /DirectoryManagement/src/web/person/PersonDetailController.java | UTF-8 | 1,585 | 2.515625 | 3 | [] | no_license | package web.person;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.we... | true |
b9222acb5800f11be2503bfeb6a1e5e3a2e1d76f | Java | David-JM/transaction-analyzer | /src/main/java/demo/transactionAnalyzer/utility/DataFormatter.java | UTF-8 | 489 | 2.515625 | 3 | [] | no_license | package demo.transactionAnalyzer.utility;
import demo.transactionAnalyzer.commons.DateFormat;
import java.time.LocalDate;
import java.time.format.DateTimeFormatter;
public final class DataFormatter {
private DataFormatter() {
}
public static LocalDate generateDateWithFormat(final DateFormat dateFormat,... | true |
3fde8c75a9242d7bddbf7249065ca47081fc247b | Java | lsxBread/wholesale | /src/main/java/com/anz/wholesale/repositories/AccountRepository.java | UTF-8 | 566 | 1.953125 | 2 | [] | no_license | package com.anz.wholesale.repositories;
import com.anz.wholesale.entities.Account;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;
import java.util.Optional;
public interface AccountRepository ... | true |
867979ee315887bc7e324df6b0fe842b7ded445d | Java | UlasMuezzinoglu/CourseManagementSys2 | /src/com/courseManagementSys2/User.java | UTF-8 | 1,744 | 2.296875 | 2 | [] | no_license | package com.courseManagementSys2;
public class User {
private int id;
private String memberNumber;
private String firstName;
private String lastName;
private String userName;
private String password;
private String email;
private String myMemberships;
private String creditCardInfo;
... | true |
4090a452f3f119e2a5715d0fd87d2aa022cac460 | Java | samirkerrouche/projet_javaWeb | /src/java/servlets/ServletViewClientSeances.java | UTF-8 | 3,481 | 2.546875 | 3 | [] | no_license | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package servlets;
import Mapping.OccurrenceS;
import hibernate.HibernateUtil;
import java.io.IOException;
import java.io.Pri... | true |
9a68f33a687c839478a16d08b271e2bc526a22c4 | Java | e-albrecht/skillmodelframework | /src/de/unigoe/informatik/swe/kcast/initialisation/MyInitialisationList.java | UTF-8 | 3,137 | 3 | 3 | [
"Apache-2.0"
] | permissive | package de.unigoe.informatik.swe.kcast.initialisation;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
import de.unigoe.informatik.swe.krm.KnowledgeComponent;
/**
* Represents an initializer list, which is comma separarated list of initiali... | true |
48162f2cc3e613fe62da67d3026d119769da2843 | Java | aliandpeach-learn/website_csrf | /website_a/src/main/java/com/yk/filter/TestFilter.java | UTF-8 | 862 | 2.25 | 2 | [] | no_license | package com.yk.filter;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import javax.servlet.*;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
public class TestFilter implements Filter {
private Logger logger = LoggerFactory.getLo... | true |
baf06618ad5cb06cc33550abf96d2c88b86fa503 | Java | jmSwift/JavaPrograms | /packNShip/src/packnship/Container.java | UTF-8 | 868 | 2.921875 | 3 | [] | no_license | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package packnship;
import java.text.DecimalFormat;
/**
*
* @author jose
*/
public abstract class Container implements Comparable{
... | true |
740338e9bc20661d5fb975d076a40a3315e444e5 | Java | leiyi1152/shancai | /src/main/java/com/icloud/web/user/app/EncryptionController.java | UTF-8 | 668 | 1.945313 | 2 | [] | no_license | package com.icloud.web.user.app;
import javax.servlet.http.HttpServletRequest;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.icloud.common.util.RequestUtil;
import com.icloud.service.user.EncryptionService;
@RestController
p... | true |
fe57e4c15473ca08d256b10c49da7a553e26cb0f | Java | Ravi1674/Task1-Booking-System-JWT | /src/main/java/com/bookingsystem/api/service/UserService.java | UTF-8 | 2,034 | 2.53125 | 3 | [] | no_license | package com.bookingsystem.api.service;
import java.util.HashSet;
import java.util.Set;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.crypto.password.PasswordEncoder;
import org.springframework.stereotype.Service;
import com.bookingsystem.api.dao.RoleDao;
import co... | true |
548abc5e5d771d370cc8a98c70080338c64dc626 | Java | fashare2015/SoulOfChess | /app/src/main/java/com/example/fashare/soulofchess/controller/GameController.java | UTF-8 | 1,793 | 2.34375 | 2 | [] | no_license | package com.example.fashare.soulofchess.controller;
import android.graphics.Point;
import android.os.AsyncTask;
import android.util.Log;
import com.example.fashare.soulofchess.constant.ChessType;
import com.example.fashare.soulofchess.controller.base.BaseController;
import com.example.fashare.soulofchess.model.ChessM... | true |
73fcd9bc99609ad25894c5e658ad35a175380b2b | Java | themarcosramos/relogios | /Relogio-T/src/br/uefs/ecomp/service/Cliente.java | UTF-8 | 2,867 | 2.6875 | 3 | [] | no_license | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package br.uefs.ecomp.service;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import jav... | true |
d9a435c6907d17dceb687faf8a836203962c2d70 | Java | figonzal1/Udelvd-app | /app/src/main/java/cl/udelvd/repositories/CohabitTypeRepository.java | UTF-8 | 5,184 | 1.9375 | 2 | [] | no_license | package cl.udelvd.repositories;
import android.app.Application;
import android.content.Context;
import android.content.SharedPreferences;
import android.util.Log;
import androidx.lifecycle.MutableLiveData;
import com.android.volley.Request;
import com.android.volley.Response;
import com.android.volley.toolbox.String... | true |
f1d5d3837e99c4af1674289e5f388baf4e82c67e | Java | kirjokansi/himmeli | /VenueSearch/app/src/androidTest/java/fi/kirjokansi/venuesearch/MockFoursquareApiImpl.java | UTF-8 | 1,071 | 2.265625 | 2 | [] | no_license | package fi.kirjokansi.venuesearch;
import java.io.BufferedInputStream;
import java.io.ByteArrayInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.net.MalformedURLException;
import java.text.SimpleDateFormat;
import java.util.Date;
/**
* Created by sampo on 15.12.2014.
*/
public class M... | true |
ecf3bc69d9a4b80a55d1890d6195e6eb2852a27f | Java | rbrazileiro/tamarino | /parser-xml/src/br/ufpe/cin/tamarino/circuit/arduino/Arduino.java | UTF-8 | 4,155 | 2.375 | 2 | [
"MIT"
] | permissive | package br.ufpe.cin.tamarino.circuit.arduino;
import java.util.LinkedList;
import br.ufpe.cin.tamarino.arduinoGenerator.AbstractScript;
import br.ufpe.cin.tamarino.arduinoGenerator.Block;
import br.ufpe.cin.tamarino.arduinoGenerator.VarDeclaration;
import br.ufpe.cin.tamarino.arduinoGenerator.functions.Delay;
import ... | true |
bf17744648cb73f01273bc05765e827a99d95824 | Java | iuji/popular-movies | /app/src/main/java/com/example/iujital/popularmovies/presentation/ListMoviesActivity.java | UTF-8 | 8,544 | 2.0625 | 2 | [] | no_license | package com.example.iujital.popularmovies.presentation;
import android.arch.lifecycle.Observer;
import android.arch.lifecycle.ViewModelProviders;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.GridLayoutManager;
im... | true |
6d2ab0a3501e4296edddfe7522179a489b042730 | Java | pedrovfigueiredo/BasicJavaRecap-2 | /src/com/elte/Main.java | UTF-8 | 8,735 | 3.3125 | 3 | [] | no_license | package com.elte;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.PrintWriter;
import java.net.Inet4Address;
import java.util.*;
public class Main {
public static void main(String[] args) {
// 1
String[] argsCoordinates = {"2.4","2", "1", "1", "10", "9.8", "-9", "-9.8"... | true |
991328374e50f086539b30d08de53b39f1af40f4 | Java | Senpat/Competitive-Programming | /AtCoder/Past Contests/DP Contest/L.java | UTF-8 | 1,597 | 3.265625 | 3 | [] | no_license | //make sure to make new file!
import java.io.*;
import java.util.*;
public class L{
public static long[] array;
public static long[][] sum;
public static long[][] dp;
public static void main(String[] args)throws IOException{
BufferedReader f = new BufferedReader(new InputStreamReader(System.i... | true |
b85771049ba69c70eeb89e06867ae0682706d4e0 | Java | kshitizranjan15/learned-git | /q7.java | UTF-8 | 304 | 2.25 | 2 | [] | no_license | import java.util.Scanner;
public class q67 {
public static void main(String[] args) {
Scanner sc=new Scanner(System.in);
int n=sc.nextInt();
int x;
x=n+n*n+n*n*n;
System.out.println(x);
System.out.println("in dev branch");
System.out.println("kshitiz");
}
} | true |
9d322c89b561f592b92f4aaafed7721bbdddeade | Java | HemanthMalisetty/JavaBasicProgram | /classes_programs/src/classes_programs/Main.java | UTF-8 | 1,055 | 3.171875 | 3 | [] | no_license | package classes_programs;
import java.util.*;
public class Main{
public static Employee getEmployeeDetails(){
System.out.println("Enter Id: "+ Employee.getEmployeeId());
System.out.println("Enter Name: "+ Employee.getEmployeeName());
System.out.println("Enter Salary: "+Employee.getSalar... | true |
8c658ad68a53c613854907a58fed43945f313f07 | Java | gitKatia/example | /src/test/java/com/kat/controller/ReservationControllerTest.java | UTF-8 | 11,315 | 2.359375 | 2 | [] | no_license | package com.kat.controller;
import static com.kat.model.ReservationBuilder.reservationBuilder;
import static java.time.LocalDate.now;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNull;
import static org.mockito.ArgumentMatchers.any;
import static org.mockito.ArgumentMatchers.anyLon... | true |
6bfb0c352467f7086fd023c12071d1894d0729aa | Java | IbrahimAyad94/Algorithm | /src/com/problems/LongestBinaryGap.java | UTF-8 | 1,509 | 3.734375 | 4 | [] | no_license | package com.problems;
import com.utils.Print;
/**
* @author Ibrahim Shehta
*/
public class LongestBinaryGap {
public static void main(String[] args) {
// TODO Auto-generated method stub
int res = getLongestBinaryGap(529);
Print.printSingleValue(res, "LongestBinaryGap");
}
/**
A binary gap within a... | true |
1ac75c8258e902dac2d5dca6580a7cf5601af853 | Java | anyamu/btc2101 | /BTC2101/Groups/ASSIG-1/Group6Assig1.java | UTF-8 | 1,603 | 3.34375 | 3 | [] | no_license | //!NOTE: This code doesn't work! Fix it!
import java.util.Scanner;
public class Group6Assig1 {
public static void main(String[] args) {
Scanner s=new Scanner(System.in);
System.out.println("No. of rows?");
int R=s.nextInt();
System.out.println("No. of columns?&q... | true |
ac2c82970e85d2f693d29564a34e0aa9ac65bf79 | Java | cugIE/GPSRouting | /GPSRouting/src/com/bean/Period.java | UTF-8 | 9,001 | 2.375 | 2 | [] | no_license | /**
*
*/
package com.bean;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Time;
import java.util.ArrayList;
import java.util.List;
import com.util.DBHelper;
import net.sf.json.JSONArray;
import net.sf.json.JSONObject;
/**
* @author XinLi
*
*/
public class Period {
private String id;
... | true |
e242ecb2a44db9c83d909a920626c62235c63107 | Java | chubbyyzy/Juice | /src/main/java/com/tribeofspirit/domain/respository/BaseRepository.java | UTF-8 | 231 | 1.8125 | 2 | [] | no_license | package com.tribeofspirit.domain.respository;
/**
* Author : gonwang
* Create time : 31.10.2015.
*/
public interface BaseRepository<T> {
void saveOrUpdate(T bean);
T get(Long id);
void delete(Long toDeleteId);
}
| true |
f134aa0a4331f74199958fd3ea22f9f1a3958455 | Java | L3o-pold/DevOO | /controleur/commande/CommandeSuppression.java | UTF-8 | 325 | 2.171875 | 2 | [] | no_license | package controleur.commande;
public class CommandeSuppression implements Commande {
/*--- Attributes ---*/
/*--- Constructor ---*/
public CommandeSuppression() {
}
/*--- Override methodes ---*/
@Override
public void execute() {
}
@Override
public void unexecute() {
... | true |
0b1639174e0501acc2ca3fcd40b7dd1b096d66ad | Java | TeamworkGuy2/JParseCode | /src/twg2/ast/interm/classes/ClassAst.java | UTF-8 | 4,629 | 2.15625 | 2 | [
"MIT"
] | permissive | package twg2.ast.interm.classes;
import java.io.IOException;
import java.util.List;
import lombok.Getter;
import twg2.annotations.Immutable;
import twg2.ast.interm.field.FieldDef;
import twg2.ast.interm.field.FieldDefResolved;
import twg2.ast.interm.method.MethodSigResolved;
import twg2.ast.interm.method.MethodSigSim... | true |
ab50a0931f2f4704676678ae4046b655ec8dab25 | Java | coolkingzhang/javastudy | /javastudy-cache-parent/javastudy-cachen-couchbase/src/main/java/org/javastudy/cachen/couchbase/ClientGet.java | UTF-8 | 744 | 2.453125 | 2 | [] | no_license | package org.javastudy.cachen.couchbase;
import java.io.IOException;
import java.net.URI;
import java.util.LinkedList;
import java.util.List;
import java.util.concurrent.TimeUnit;
import com.couchbase.client.CouchbaseClient;
public class ClientGet {
public static void main(String[] args) {
List<URI> uris = new Lin... | true |
ba0374dd66b04705aaf081eebf7af6d1935efdf8 | Java | a3535ed54a5ee6917a46cfa6c3f12679/7c314649_Menoria_OLD_SemiObf | /class_1042.java | UTF-8 | 3,233 | 2.078125 | 2 | [] | no_license | import java.util.concurrent.Callable;
// $FF: renamed from: dp
class class_1042 implements Callable {
// $FF: renamed from: a java.lang.String
private static final String field_5508;
// $FF: renamed from: b aji
final aji field_5509;
// $FF: renamed from: c ahb
final ahb field_5510;
// ... | true |
7b76dcc48b6e11c064cc5aff96ace46eafd59f51 | Java | ganxinming/javaBasiss | /src/basis/ThreadTest/ABC.java | UTF-8 | 2,847 | 4.09375 | 4 | [] | no_license | package basis.ThreadTest;
import java.util.concurrent.locks.Lock;
import java.util.concurrent.locks.ReentrantLock;
/**
* @Author Badribbit
* @create 2019/6/4 19:15
* @Define 按顺序打印ABC,通过静态内部类实现。一个lock,一个标志位作用。
* 这里并没有用等待和唤醒,他通过将i++放在while里面,只有执行成功i才能++,不执行成功则一直for循环等待且没有i++.
* 相当于将线程一直轮询,取代了三个唤醒和等待。
* @Tutorials... | true |
d7d59f7eec94fdbc731f101b3b13e1665126fb1f | Java | vkiz/rest-voting | /src/main/java/com/vkiz/voting/web/controller/ProfileRestController.java | UTF-8 | 3,324 | 2.109375 | 2 | [] | no_license | package com.vkiz.voting.web.controller;
import com.vkiz.voting.View;
import com.vkiz.voting.model.User;
import com.vkiz.voting.service.UserService;
import com.fasterxml.jackson.annotation.JsonView;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;... | true |
050993844fe94925f42a9e1e314f7a301240a09d | Java | ShaikMahaboobSab/ExcelExport | /FirstWebAppPract/src/main/java/com/app/config/AppConfig.java | UTF-8 | 723 | 1.640625 | 2 | [] | no_license | package com.app.config;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;
import org.springframework.core.env.Enviro... | true |
f57989900ce26f2f2dd899200c48358af7538ee8 | Java | demart/sushimi | /sources/sushimi-rest-api/app/controllers/FeedbackController.java | UTF-8 | 4,951 | 2.0625 | 2 | [] | no_license | package controllers;
import java.util.ArrayList;
import java.util.List;
import kz.sushimi.persistence.FeedbackType;
import kz.sushimi.persistence.dictionaries.City;
import kz.sushimi.persistence.dictionaries.Department;
import kz.sushimi.restapi.v1.exceptions.ErrorCode;
import kz.sushimi.restapi.v1.exceptions.Sushimi... | true |
1ebd6a740e5a66e57c1b00bcdd0f30e54b981374 | Java | fabricua/ProyectoCuassolo | /RentCar/src/Main/Ventana.java | UTF-8 | 19,154 | 1.992188 | 2 | [] | no_license | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package Main;
import java.awt.Desktop;
import java.io.File;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.swing.JOptionPane;
import javax.swing.table.DefaultTableModel;
/**
*
* @aut... | true |
eadeb871869a3abf54891a53bb5dd078f822495d | Java | ersincebi/fmway-isik | /app/src/test/java/com/fmway/models/user/UserParseDefinitionsTest.java | UTF-8 | 3,013 | 2.1875 | 2 | [
"MIT"
] | permissive | package com.fmway.models.user;
import org.junit.Test;
import static junit.framework.TestCase.assertEquals;
public class UserParseDefinitionsTest {
private UserParseDefinitions userParseDefinitions;
public void setUp(){ userParseDefinitions = new UserParseDefinitions(); }
public void tearDown... | true |
4a5bf708f542f3353a321867b4e800ae92767369 | Java | enet71/Schedule | /src/main/java/servlets/table/couple/ServletCreateCouple.java | WINDOWS-1251 | 12,203 | 2.4375 | 2 | [] | no_license | package servlets.table.couple;
import factory.FactoryDB;
import factory.concreteFactories.*;
import other.DateEdit;
import table.Audience;
import table.Couple;
import table.Subject;
import javax.servlet.RequestDispatcher;
import javax.servlet.ServletException;
import javax.servlet.http.Cookie;
import javax.servlet.ht... | true |
878f9861453450b0656aaa529380db60815a5840 | Java | Ameritronik/todoli | /app/src/main/java/com/codepath/todoli/DisplayTasks.java | UTF-8 | 14,781 | 2.203125 | 2 | [
"Apache-2.0"
] | permissive | package com.codepath.todoli;
import android.app.Activity;
import android.app.AlertDialog;
import android.content.DialogInterface;
import android.content.Intent;
import android.database.Cursor;
import android.icu.util.Calendar;
import android.os.Bundle;
import android.view.View;
import android.widget.AdapterView;
impor... | true |
5459e70013c192052aed7452c9ccdcbe664be85a | Java | malnebi/BILD-IT-zadaci | /src/Zadaci_12_08_2016/Z5_BrojPonavljanja100UnesenihBrojeva.java | UTF-8 | 2,079 | 3.765625 | 4 | [] | no_license | package Zadaci_12_08_2016;
/**
* Program ucitava cijele brojeve u rasponu od 1 do 100, broji i ispisuje koliko
* je koji broj puta unesen. Pretpostavimo da nula prekida unos brojeva. Ukoliko
* unesemo sljedeci niz brojeva 2 5 6 23 42 58 2 6 0 program nam ispisuje da se
* broj 2 ponavlja 2 puta, broj 5 jednom... | true |
b6ae6056bda419c0c30f1d6adb647350909c926d | Java | GospodinovVladislav/react-championship | /oldSource/main/java/bg/diplomna/championship/service/ParticipantServiceImpl.java | UTF-8 | 924 | 2.140625 | 2 | [] | no_license | package bg.diplomna.championship.service;
import java.util.Collection;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import bg.diplomna.championship.dao.Participant;
import bg.diplomna.cha... | true |
beb3c160a9d21150734a1ed8ebe23378499db075 | Java | RicardoIbarraDuarte/bunny-warcry | /app/src/main/java/com/example/stryker/bunny_warcray/ControlJuego.java | UTF-8 | 8,075 | 2.3125 | 2 | [] | no_license | package com.example.stryker.bunny_warcray;
import android.content.Context;
import android.content.SharedPreferences;
import android.support.v7.app.ActionBarActivity;
import android.os.Bundle;
import android.view.KeyEvent;
import android.view.Menu;
import android.view.MenuItem;
//Esta es la clase pri... | true |
abb3c2901008aa02aab20ac518b44e4e8101852c | Java | Lmpessoa/java-services | /core/src/main/java/com/lmpessoa/services/Redirect.java | UTF-8 | 9,054 | 2.4375 | 2 | [
"MIT"
] | permissive | /*
* Copyright (c) 2017 Leonardo Pessoa
* https://github.com/lmpessoa/java-services
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation t... | true |
1ec8501e97e8e22d28f61da68044639da71e7322 | Java | Mbukutshe/MobileSchools | /app/src/main/java/com/payghost/mobileschools/Adapters/MoreTabAdapter.java | UTF-8 | 10,138 | 1.984375 | 2 | [] | no_license | package com.payghost.mobileschools.Adapters;
import android.app.FragmentManager;
import android.content.Context;
import android.support.v7.widget.AppCompatCheckBox;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import com.pa... | true |
bb82a9591c24dfd65730515700b7d082b5ec7fc8 | Java | DanNistor1/testQuiz | /src/main/java/quiz/dao/daos/TestDAO.java | UTF-8 | 1,750 | 2.765625 | 3 | [] | no_license | package quiz.dao.daos;
import quiz.dao.entity.TestSet;
import javax.persistence.EntityManager;
import javax.persistence.EntityNotFoundException;
public class TestDAO {
public void create(TestSet test) {
EntityManager entityManager = EMF.createEntityManager();
entityManager.getTransaction().begin... | true |
e90d1f83852b55d3a64cbd1fbf1c934bfcb5c030 | Java | fragnex/GoldClassOnline | /GoldClassOnline-ejb/src/java/ejb/session/stateless/CalendarDaySessionBean.java | UTF-8 | 3,027 | 2.5625 | 3 | [] | no_license | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package ejb.session.stateless;
import entity.CalendarDayEntity;
import entity.HallEntity;
import entity.MovieEntity;
import entity.Scr... | true |
1dc84a0fd9d32feed7ce8f20f5fbcad51e1a9c4a | Java | lifezq/leetcode | /leetcode/src/main/java/com/yql/leetcode/StringToTreeNode.java | UTF-8 | 2,712 | 3.671875 | 4 | [] | no_license | package com.yql.leetcode;
import java.util.Stack;
public class StringToTreeNode {
public static void main(String[] args) {
Node head = new StringToTreeNode().createNodeByString("A(B(C),D(,E))");
new StringToTreeNode().bfs(head);
new StringToTreeNode().createStringByNode(head);
}
... | true |
617cdae0d031ce00c531f646ae679f26c1443724 | Java | rdingankar/algorithms | /src/com/asu/linkedlist/Node.java | UTF-8 | 711 | 3.734375 | 4 | [] | no_license | package com.asu.linkedlist;
public class Node{
Node next;
int data;
public Node(int data){
this.data = data;
this.next = null;
}
public Node(){
this.next = null;
}
public void append( int d){
Node end = new Node(d);
Node n = this;
while(n.next != null){
n = n.next;
... | true |
5912a73561d7c0e7959c301e67c4e594e6c985d4 | Java | karolkurbiel/SpringPostgresDemo | /src/main/java/com/karolkurbiel/service/ItemService.java | UTF-8 | 1,826 | 2.171875 | 2 | [] | no_license | package com.karolkurbiel.service;
import com.karolkurbiel.dao.ItemDao;
import com.karolkurbiel.model.item.Item;
import com.karolkurbiel.model.item.ItemCondition;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.ster... | true |
607bb2b64591b64df3c524686e57efa0d8574e11 | Java | atenpunk/animal-hospital | /animal-hospital/src/co/th/aten/hospital/ui/ReceiveSmartcardView.java | UTF-8 | 2,246 | 2.25 | 2 | [] | no_license | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package co.th.aten.hospital.ui;
import java.awt.BorderLayout;
import java.awt.FlowLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.JButton;
import javax.swing.JComponen... | true |
f88ad441dfc8fc63c28e76cd50c7247e1d9b3510 | Java | Unidata/awips2-core | /common/com.raytheon.uf.common.time/src/com/raytheon/uf/common/time/domain/TimeIntervalJaxbable.java | UTF-8 | 2,310 | 2.046875 | 2 | [] | no_license | /**
* This software was developed and / or modified by Raytheon Company,
* pursuant to Contract DG133W-05-CQ-1067 with the US Government.
*
* U.S. EXPORT CONTROLLED TECHNICAL DATA
* This software product contains export-restricted data whose
* export/transfer/disclosure is restricted by U.S. law. Dissemination
... | true |
1b2b085cb9015d3a6fce61a1030616b6b9014256 | Java | wutingting1993/SpringCloud | /feign-consumer/src/main/java/com/feign/service/HelloServiceFalback.java | UTF-8 | 948 | 2.25 | 2 | [] | no_license | package com.feign.service;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestHeader;
import org.springframework.web.bind.annotation.RequestParam;
impo... | true |
8a29bc448721c14fa9a68c42873c47775ef0396f | Java | andykuo1/candlelight | /src/main/java/apricot/hoob/EntitySystemBoundingCollider.java | UTF-8 | 2,423 | 2.71875 | 3 | [] | no_license | package apricot.hoob;
import apricot.base.collision.CollisionManager;
import apricot.base.entity.AbstractEntitySystem;
import apricot.base.entity.Entity;
import apricot.base.entity.EntityComponent;
import apricot.base.entity.EntityManager;
import apricot.base.scene.Scene;
/**
* Created by Andy on 7/15/17.
*/
public... | true |
7c4e2c3a7f650683ef409535bbab435b3585b359 | Java | Kamin124712T/103StudentDB | /src/studentdb/TestStudentDB.java | UTF-8 | 1,420 | 2.796875 | 3 | [] | no_license | package studentdb;
import java.util.Iterator;
import java.util.Map;
public class TestStudentDB {
public static void main(String[] args) {
DBStudent.createTable();
DBStudent.insertStudent(new Student("1001", "aa", 4.00, "IT", 1));
DBStudent.insertStudent(new Student("1007", "cc", 4.00, "I... | true |
6a38b756c4cc2b2ffc603b49cefd17741303d6b2 | Java | team-supercharge/akka-guice-example | /injection/src/main/java/hu/anitak/akka/guice/injection/AbstractActorProviderModule.java | UTF-8 | 2,523 | 2.3125 | 2 | [] | no_license | package hu.anitak.akka.guice.injection;
import akka.actor.Actor;
import akka.actor.ActorRef;
import akka.actor.ActorRefFactory;
import akka.actor.ActorSystem;
import akka.actor.Props;
import com.google.inject.AbstractModule;
import com.google.inject.Injector;
import com.google.inject.name.Names;
import com.google.inje... | true |
c1fdc060bc86193f76acf617cc6a061ffa40f7a3 | Java | alexjoita/Parking-Redirect | /app/src/main/java/com/heinemann/parkingredirect/MainActivity.java | UTF-8 | 6,298 | 2.0625 | 2 | [
"Apache-2.0"
] | permissive | package com.heinemann.parkingredirect;
import android.Manifest;
import android.app.AlertDialog;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.content.SharedPreferences;
import android.content.pm.PackageManager;
import android.location.Location;
im... | true |
8498f6807f7eee94731ffce56180658036dee286 | Java | VanSisto-Logos/JavaCore | /src/com/logos/lesson15/codetime/Application.java | UTF-8 | 852 | 3.203125 | 3 | [] | no_license | package com.logos.lesson15.codetime;
import java.util.LinkedHashMap;
import java.util.Map;
public class Application {
public static void main(String[] args) {
Map<User, Account> userAccountMap = new LinkedHashMap<>();
User user = new User("Steve");
User user1 = new User("Bill");
U... | true |
14fdacc72b8a6bdd0fde3f484fdc06e61d1e5fe2 | Java | levirosal/Java | /Collection/HashMap/hashmap04.java | UTF-8 | 578 | 3.875 | 4 | [] | no_license | // 4. Write a Java program to remove all of the mappings from a map.
import java.util.*;
public class hashmap04{
public static void main(String[] args){
run();
}
public static void run(){
Map<Integer,String> hash_map = new HashMap<Integer,String>();
hash_map.put(1, "Green");
hash_ma... | true |
4cb4786bbac63b3cb9553428c413b69740142f50 | Java | DesamNaren/CTW | /app/src/main/java/com/cgg/twdinspection/inspection/room/repository/RegistersRepository.java | UTF-8 | 2,282 | 2.3125 | 2 | [] | no_license | package com.cgg.twdinspection.inspection.room.repository;
import android.app.Application;
import android.util.Log;
import com.cgg.twdinspection.inspection.room.Dao.RegistersInfoDao;
import com.cgg.twdinspection.inspection.room.database.SchoolDatabase;
import com.cgg.twdinspection.inspection.source.registers_upto_date... | true |
1f5b1837a8d877fa0e4f9c9847723bd37f41a35d | Java | victorcalarasu/MAP | /Toy Language Interpretor/src/Model/ProgramState/ProgramState.java | UTF-8 | 3,090 | 2.765625 | 3 | [] | no_license | package Model.ProgramState;
import Model.ADT.*;
import Model.Exception.MyException;
import Model.Statements.IStatement;
import Model.Value.IValue;
import Model.Value.StringValue;
import java.io.BufferedReader;
import java.io.IOException;
public class ProgramState {
private IStack<IStatement> executionStack;
... | true |
91c63511ea09820e05b093ca85d8e75234471bf0 | Java | Team-Hycon/hyconj-util | /src/main/java/com/hycon/HyconUtil/Utils.java | UTF-8 | 8,767 | 2.28125 | 2 | [] | no_license | package com.hycon.HyconUtil;
import java.io.IOException;
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;
import java.security.Security;
import org.apache.commons.codec.DecoderException;
import org.apache.commons.codec.binary.Hex;
import org.bitcoinj.core.AddressFormatException;
impo... | true |
3fbf9f1862974db695054d1df26378c6dec09c6c | Java | rk7ol/programming_ML | /front/src/main/java/ManagerStarter.java | UTF-8 | 174 | 1.664063 | 2 | [] | no_license | import javafx.application.Application;
public class ManagerStarter {
public static void main(String[] args) {
Application.launch(ManagerViewApp.class);
}
}
| true |
0f8f8d498d3cb5eeee01e1b51aea6288f1caac91 | Java | AbazBajrami/Menu-System-for-Drinks | /MenuSystemForDrinks/test/sample/DrinkTest.java | UTF-8 | 784 | 2.671875 | 3 | [] | no_license | package sample;
import org.junit.jupiter.api.BeforeEach;
import static org.junit.jupiter.api.Assertions.*;
class DrinkTest {
Drink d;
@BeforeEach
void setUp() {
d = new Drink("Coke", "France", "1223.com", "A cola flavoured drink");
}
@org.junit.jupiter.api.Test
void... | true |
0e4be4c8d931983df93a43bbded6aec024f21db7 | Java | idan0610/oop-ex5 | /oop/ex5/filters/WrongFilterFormatException.java | UTF-8 | 304 | 2.203125 | 2 | [] | no_license | package oop.ex5.filters;
/**
* Exception when the filter format is bad.
* @author Idan Refaeli
*/
public class WrongFilterFormatException extends Exception {
private static final long serialVersionUID = 1L;
/**
* Initiates the exception.
*/
public WrongFilterFormatException() {
super();
}
}
| true |
77abe8eed4e5a3066d59ee064ea28ca33400dd44 | Java | MRivas-XumaK/slingBuild | /contrib/explorers/gwt/src/main/java/org/apache/sling/explorer/client/SlingExplorerApplication.java | UTF-8 | 4,647 | 2 | 2 | [
"Apache-2.0",
"JSON"
] | 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 |
0937ebb3cd067dd39121b1a4189cecda6bb07cd7 | Java | google/bundletool | /src/test/java/com/android/tools/build/bundletool/device/AdbRunnerTest.java | UTF-8 | 7,706 | 1.953125 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright (C) 2018 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 |
9e5125113d4a7647ca160640f33a1b93a0f8021f | Java | antonio-abrantes/curso-dev-android-adt | /Notificacoes/src/curso/android/Avisos.java | UTF-8 | 642 | 2.34375 | 2 | [] | no_license | package curso.android;
import android.app.Activity;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.LinearLayout;
import android.widget.Toast;
public class Avisos extends Activity{
public void Menssagem(Context ctx, LayoutInflater inflater){
//... | true |
dad8543bb459ce0ae6c61ca2a4ffae3a7b1c21a9 | Java | STAMP-project/dspot-experiments | /benchmark/test/org/apache/nifi/processors/standard/TestParseSyslog.java | UTF-8 | 5,171 | 1.804688 | 2 | [] | no_license | /**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may... | true |
d1dcb46dc787cc625a19494e15b8947401a1e034 | Java | 425devon/JavaMasterClass | /OOP-1/Inheritance/src/com/devon/Main.java | UTF-8 | 372 | 2.484375 | 2 | [] | no_license | package com.devon;
public class Main {
public static void main(String[] args) {
Animal animal = new Animal("Animal", 1,1,1,40);
Dog doggo = new Dog("Rocko", 1,1,25,35,2,4,12,"Short");
Fish fredderick = new Fish("Fredderick",0,1,25,2,6,4,1);
doggo.eat();
doggo.walk();
doggo.run();
... | true |
182387ebde7baa1903ab10e284c8963c63454333 | Java | dayupu/extras | /avatar/src/main/java/org/dayup/avatar/jpa/enums/EDataStatus.java | UTF-8 | 341 | 2.125 | 2 | [] | no_license |
package org.dayup.avatar.jpa.enums;
import org.dayup.avatar.jpa.base.DBEnum;
public enum EDataStatus implements DBEnum {
INIT(0), DELETED(3);
private Integer constant;
EDataStatus(Integer constant) {
this.constant = constant;
}
@Override
public Integer getConstant() {
retu... | true |
398e61096155a481d2036f7a1d4fe3b687739705 | Java | tabdilsaidixit/Programs | /DecoratorDesignPatttern/src/HeaderBar.java | UTF-8 | 284 | 2.703125 | 3 | [] | no_license |
public class HeaderBar extends Decorator {
public HeaderBar(IVisualComponent decoratedVisualComponent) {
super(decoratedVisualComponent);
}
public void draw() {
super.draw();
drawHeaderBar();
}
public void drawHeaderBar() {
System.out.println("Header Bar added");
}
}
| true |
7418a0fb098e078a53e5c5e07964c6b5c354c36e | Java | AVBLANCO/JavaWebSmart | /src/java/facade/GlobalController.java | UTF-8 | 615 | 1.84375 | 2 | [] | no_license | /*
-------Creado por-------
\(x.x )/ Anarchy \( x.x)/
------------------------
*/
// Bueno ¿y ahora qué? \\
package back.facade;
import back.dao.factory.FactoryDao;
public class GlobalController {
/**
* Para su comodidad, defina aquà el gestor de conexión pre... | true |
232b9c68f55a90a0f03f7e604bb8b6b65338fe3d | Java | yamildelgado/ejb-bean | /aeweb/AdministracionEfectivo-jpa/src/test/java/mx/com/banamex/ae/persistencia/dao/test/CatalogoPlazaDAOTest.java | UTF-8 | 1,668 | 2.265625 | 2 | [] | no_license | package mx.com.banamex.ae.persistencia.dao.test;
import static org.junit.Assert.assertNotNull;
import java.util.List;
import java.util.Properties;
import javax.naming.Context;
import javax.naming.InitialContext;
import mx.com.banamex.ae.persistencia.dao.common.test.AdminEfectivoEmbeddableContainer;
import mx.com.bcm... | true |
415406e57122b22517197f2b69d72773914b79bb | Java | lzyywsgl/carrental | /src/main/java/com/lzywsgl/sys/controller/DeskController.java | UTF-8 | 436 | 1.78125 | 2 | [] | no_license | package com.lzywsgl.sys.controller;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
/**
* 工作台的控制器
*/
@Controller
@RequestMapping("desk")
public class DeskController {
/**
*
* @return 跳转的工作台页面
*/
@RequestMapping("toDeskManager")
... | true |