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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
11daaff8f5c317efff3b2ef051ac86337b25aa30 | Java | malavasiale/SABDProj2 | /src/utils/MetricConsumer3.java | UTF-8 | 2,603 | 2.53125 | 3 | [] | no_license | package utils;
import org.apache.storm.metric.api.IMetricsConsumer;
import org.apache.storm.task.IErrorReporter;
import org.apache.storm.task.TopologyContext;
import java.io.FileWriter;
import java.io.IOException;
import java.util.Collection;
import java.util.Map;
/*
Classe che funziona da consumatore esterno de... | true |
7690094390d48f2b105f4cec5bdf5eed34c37edf | Java | Bwasier/Community | /comm'unitylibrary/src/main/java/fr/solucom/communitylibrary/ConnectionsChecker.java | UTF-8 | 3,010 | 3 | 3 | [] | no_license | package fr.solucom.communitylibrary;
import android.app.Activity;
import android.bluetooth.BluetoothAdapter;
import android.content.Context;
import android.net.ConnectivityManager;
import android.widget.Toast;
/**
* Created by wasier on 30/06/2015.
*/
public class ConnectionsChecker {
/**
* This method is ... | true |
a137948cb2cde5d859483fd168ffb0c7e4189dd9 | Java | uwitec/energy3d | /src/main/java/org/concord/energy3d/simulation/LocationData.java | UTF-8 | 4,456 | 3.15625 | 3 | [
"MIT"
] | permissive | package org.concord.energy3d.simulation;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.util.HashMap;
import java.util.Map;
public final class LocationData {
private static final LocationData instance = new LocationData();
... | true |
7c44cac19a02b855685da0d89eafdba52b7b403e | Java | BohdanShuba/tablet_manager | /src/main/java/com/diploma/tablet_manager/mapper/impl/DrugMapper.java | UTF-8 | 747 | 2.359375 | 2 | [] | no_license | package com.diploma.tablet_manager.mapper.impl;
import com.diploma.tablet_manager.domain.Drug;
import com.diploma.tablet_manager.dto.DrugDto;
import com.diploma.tablet_manager.mapper.Mapper;
import org.springframework.stereotype.Component;
import static java.util.Objects.isNull;
@Component
public class DrugMapper im... | true |
f51e3ff12c8f0d6f1182076e9d2adbe3e960911b | Java | PaulBryden/Project-Pinball | /src/model/AbstractGizmo.java | UTF-8 | 3,830 | 2.828125 | 3 | [
"MIT"
] | permissive | package model;
import java.awt.Color;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
import physics.Circle;
import physics.LineSegment;
import physics.Vect;
/**
*
* @author Matt, David
*
*/
abstract class AbstractGizmo implements IGizmo {
protected String id... | true |
8f3a3ee5e7e53500b8fdc438798fce1cf28e0c98 | Java | LichKinContributor/lichkin-framework-android | /lichkin-framework-defines/src/main/java/com/lichkin/framework/defines/annotations/IgnoreLog.java | UTF-8 | 414 | 1.976563 | 2 | [] | no_license | package com.lichkin.framework.defines.annotations;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* <pre>
* 字段忽略记录日志
* </pre>
*
* @author SuZhou LichKin Information Technology Co., Ltd.
*/
@Targ... | true |
6d67dafb822b09287775855b0ac785fed66d17f6 | Java | Yoon-ddo/Java_kopo_ddo | /Java/day13/HomeWork/ExceptionWork.java | UTF-8 | 808 | 3.546875 | 4 | [] | no_license | package HomeWork;
import java.util.Scanner;
public class ExceptionWork {
public static void main(String[] args) throws LottoNumberException{
try {
lottoNum();
} catch(Exception e){
System.out.println(e.getMessage());
}
}
public static void lottoNum() throws LottoNumberEx... | true |
3bee278a5782d7480a55e019342ea400dffa548b | Java | habyb/Java-Fundamentals | /If-Switch/src/com/elasticconcept/java/ifswitch/Main.java | UTF-8 | 776 | 3.890625 | 4 | [] | no_license | package com.elasticconcept.java.ifswitch;
public class Main {
public static void main(String[] args) {
// int num = 15;
//
// if (num > 10) {
// System.out.println("The number is greater than 10");
//
// } else if (num < 10) {
// System.out.println("The number is less than 10");
//
// } else {
// ... | true |
19d095d81f216881c6a554076f090adfd0b7f19e | Java | christianrubiales/snippets1 | /src/various/MostOccurringTriplets.java | UTF-8 | 2,926 | 3.21875 | 3 | [] | no_license | package various;
import java.util.*;
public class MostOccurringTriplets {
private static String[][] logFile = new String[][]{
{"/", "user_1"}, {"/about", "user_1"}, {"/", "user_3"}, {"/features", "user_1"}, {"/about", "user_2"},
{"/purchase", "user_2"}, {"/purchase", "user_1"},{"/thank-you", "user_1"}... | true |
8b65f3b782fefdf9be61521daeba0702c212ee98 | Java | odinchev/basics | /src/basics/reverseword.java | UTF-8 | 314 | 2.78125 | 3 | [] | no_license | package basics;
import java.util.Scanner;
public class reverseword
{
public static void main(String[]args)
{
Scanner keyboard=new Scanner(System.in);
String word;
word=keyboard.nextLine();
for (int i=word.length()-1; i>=0;i--)
{
System.out.print(word.charAt(i)+"");
}
}
}
| true |
caadee199fc3e3dcd61a24c15e2c13b8e986ffd1 | Java | Dabjazz/SportsClubManager | /Server/src/server/domain/classes/Country.java | UTF-8 | 4,336 | 2.375 | 2 | [] | no_license | package server.domain.classes;
import contract.domain.ICountry;
import java.io.Serializable;
import javax.persistence.*;
import javax.xml.bind.annotation.*;
/**
@author Markus Mohanty <markus.mo at gmx.net>
*/
@Entity
@Table(name = "Country")
@XmlRootElement
public class Country
implements S... | true |
40bda534dea7ee42309d828a8ac79a047902f2eb | Java | janweesha/department-management-system | /crm/src/com/crm/dao/impl/DeptDao.java | UTF-8 | 4,162 | 2.546875 | 3 | [] | no_license | package com.crm.dao.impl;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import javax.annotation.Resource;
import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import org.springframework.dao.... | true |
a1a29604d80f68f287522378829a653526c6d7b9 | Java | zhangyanwei/spring-cloud-template | /service-impl/src/main/java/com/github/zhangyanwei/sct/service/impl/access/UserAccess.java | UTF-8 | 1,385 | 2.140625 | 2 | [
"MIT"
] | permissive | package com.github.zhangyanwei.sct.service.impl.access;
import com.github.zhangyanwei.sct.dao.repository.UserRepository;
import com.github.zhangyanwei.sct.service.dto.user.PureTokenUser;
import com.github.zhangyanwei.sct.service.dto.user.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.s... | true |
98bb728a48162bc3c3ffde20cd1a10837d9ef16d | Java | geekfrank-io/PracticeSuper | /src/main/java/com/zxk/dao/impl/UserInfoDAOImpl.java | UTF-8 | 730 | 1.9375 | 2 | [] | no_license | package com.zxk.dao.impl;
import com.zxk.dao.IUserInfoDAO;
import org.apache.ibatis.session.SqlSession;
import org.apache.ibatis.session.SqlSessionFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;
import java.util.Map;
@Repository("userInfoDAO")... | true |
e9cbcb99fe623cb82cdf08344af398d98a8fedf4 | Java | dlworldpeace/CitiIntegration | /src/main/java/RandomStringGenerator.java | UTF-8 | 2,232 | 2.9375 | 3 | [] | no_license | package main.java;
import java.security.NoSuchAlgorithmException;
import java.security.SecureRandom;
import java.util.Locale;
import java.util.Objects;
import java.util.Random;
public class RandomStringGenerator {
/**
* Generate a random string.
* return a secure random string of length preset
*/
public... | true |
05da00cfce963cb8a9d453e3ccaf7b7e4847607e | Java | AkshayBabbar/Problems | /src/corejava/oops/Student.java | UTF-8 | 1,233 | 3.5625 | 4 | [] | no_license | package src.corejava.oops;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;
import java.util.List;
public class Student {
public void marks(Student s1){
System.out.println(this == s1);
}
// private final String id;
// private final String name;
// privat... | true |
9c614f024196385664ed02c77b5e4a91d5e7c313 | Java | lakshayrastogi/Projects | /buddy-check-alarm/app/src/main/java/com/example/nadir/buddycheckalarm/HttpPostTask.java | UTF-8 | 2,941 | 2.484375 | 2 | [] | no_license | package com.example.nadir.buddycheckalarm;
import android.os.AsyncTask;
import org.json.JSONObject;
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.InputStreamReader;
import java.io.OutputStream;
import java.io.OutputStreamWriter;
import java.net.HttpURLConnection;
import java.net.URL;
... | true |
b1d183ed8f802f6c2fc94b8c969c1d409e22734f | Java | bogdanking/lab3 | /src/test/java/test/Novelties.java | UTF-8 | 1,834 | 2.34375 | 2 | [] | no_license | package test;
import org.junit.After;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;
import org.openqa.selenium.firefox.FirefoxDriver;
import java.util.concurrent.TimeUnit... | true |
0745c578d558dffeee2c4cef477caf34f3c85cc7 | Java | flashboss/workdesk | /src/main/java/com/wewebu/ow/server/app/OwClientRefreshContext.java | UTF-8 | 996 | 2.203125 | 2 | [] | no_license | package com.wewebu.ow.server.app;
import java.util.EventListener;
/**
*<p>
* Interface to refresh objects and display data.<br/>
* Mainly used by the function plugins to inform their clients of changed objects, which have to be updated.<br/>
* See {@link OwUpdateCodes} as well.
*</p>
*
*<p><font siz... | true |
6a9956126e2dc3e4d6f171eb4775aeffe964df1e | Java | percussion/percussioncms | /projects/sitemanage/src/main/java/com/percussion/utils/PSNamedLockManager.java | UTF-8 | 4,598 | 2.75 | 3 | [
"LicenseRef-scancode-dco-1.1",
"Apache-2.0",
"OFL-1.1",
"LGPL-2.0-or-later"
] | permissive | /*
* Copyright 1999-2023 Percussion Software, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicabl... | true |
2ad6d1df0a4898c7295aa7bdf436e3cdf4b3830a | Java | sujanrimal/GiftCardProject | /bin/ext-integration/odata2webservices/testsrc/de/hybris/platform/odata2webservices/converter/HttpServletRequestToODataContextConverterUnitTest.java | UTF-8 | 1,836 | 1.859375 | 2 | [] | no_license | /*
* [y] hybris Platform
*
* Copyright (c) 2018 SAP SE or an SAP affiliate company.
* All rights reserved.
*
* This software is the confidential and proprietary information of SAP
* ("Confidential Information"). You shall not disclose such Confidential
* Information and shall use it only in accordance with the ... | true |
867f6bfb5bb4bcd5ebd1820d793c915867147c86 | Java | yuviandroid/MySmallGame | /app/src/main/java/in/yuvi/small2dgame/cutomadapter/LevelAdapter.java | UTF-8 | 327 | 1.929688 | 2 | [] | no_license | package in.yuvi.small2dgame.cutomadapter;
import android.content.Context;
import android.widget.ArrayAdapter;
public class LevelAdapter extends ArrayAdapter<String> {
public LevelAdapter(Context context, int resource, String[] objects) {
super(context, resource, objects);
// TODO Auto-generated constructor stub... | true |
ebd8f7bcb3beacd382b25b8736a9c3ac1e3ca252 | Java | crashinvaders/gdx-texture-packer-gui | /core/src/com/crashinvaders/texturepackergui/controllers/main/PackMenuActors.java | UTF-8 | 492 | 1.640625 | 2 | [
"Apache-2.0"
] | permissive | package com.crashinvaders.texturepackergui.controllers.main;
import com.github.czyzby.lml.annotation.LmlActor;
import com.kotcrab.vis.ui.widget.Menu;
import com.kotcrab.vis.ui.widget.MenuItem;
@SuppressWarnings("WeakerAccess")
public class PackMenuActors {
@LmlActor("muPack") Menu muPack;
@LmlActor("miPackPa... | true |
b514a44e882a0b9b9444a7417deefa3770555d4d | Java | GithubWangXiaoXi/Hospital-master | /src/main/java/com/ming/hospital/pojo/Prescription.java | UTF-8 | 1,637 | 2.15625 | 2 | [] | no_license | package com.ming.hospital.pojo;
import java.util.Date;
import java.util.List;
public class Prescription {
private Long pid;
private Appointment appointment;
private String description;
private String medicineMno;
private String medicineMname;
public String getMedicineMname() {
return... | true |
f847fd4f2235ce35bfe1347b3422b717d99f3a3a | Java | blinkfox/jpack-maven-plugin | /src/main/java/com/blinkfox/jpack/exception/PackException.java | UTF-8 | 622 | 2.421875 | 2 | [
"Apache-2.0"
] | permissive | package com.blinkfox.jpack.exception;
/**
* jpack 打包构建等相关的运行时异常.
*
* @author blinkfox on 2020-06-22.
* @since v1.5.0
*/
public class PackException extends RuntimeException {
private static final long serialVersionUID = 1L;
/**
* 附带 msg 信息的构造方法.
*
* @param msg 消息
*/
public PackExc... | true |
92906ad0493dd2af1230f80e9585f8aaadd31f4e | Java | GOGJIAN/MyTimi | /app/src/main/java/com/jianjian/android/mytimi/tools/TimiFetchr.java | UTF-8 | 459 | 1.84375 | 2 | [] | no_license | package com.jianjian.android.mytimi.tools;
import com.google.gson.Gson;
import com.jianjian.android.mytimi.model.NotificationItem;
import java.io.IOException;
public class TimiFetchr {
public String getNotification(){
try {
String jsonString = new HttpUtil().getUrlString(Content.url+"notify")... | true |
72edc868622c1a28d494770fb12a235253aa9840 | Java | evrimulgen/TelegramBot-Vokzal-Ticket-RailwayStation | /RailwayStation-Vokzal-Ticket/src/main/java/com/urunov/telgbot/botapi/handlers/menu/MainMenuHandler.java | UTF-8 | 1,121 | 2.234375 | 2 | [] | no_license | package com.urunov.telgbot.botapi.handlers.menu;
import com.urunov.telgbot.botapi.BotState;
import com.urunov.telgbot.botapi.handlers.InputMessageHandler;
import com.urunov.telgbot.service.MainMenuService;
import com.urunov.telgbot.service.ReplyMessagesService;
import org.springframework.stereotype.Component;
import o... | true |
a4e3c456e791056c837bc743c0e7256e3b2b2e85 | Java | percussion/percussioncms | /system/services/src/com/percussion/services/PSContextLoader.java | UTF-8 | 3,426 | 1.789063 | 2 | [
"LicenseRef-scancode-dco-1.1",
"Apache-2.0",
"OFL-1.1",
"LGPL-2.0-or-later"
] | permissive | /*
* Copyright 1999-2023 Percussion Software, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicabl... | true |
b187f5a1d7eb9b061ced1dc204cf917697218959 | Java | PhillipHoribe/LP1I3Tp02 | /Tp02Ex02.java | UTF-8 | 578 | 3.421875 | 3 | [] | no_license | import java.util.Scanner;
public class Tp02Ex02 {
public static void main(String[] args) {
float soma, num, b, media, qtd, maior;
soma = 0;
qtd = 0;
maior = 0;
for (int i = 0; i < 3; i++) {
Scanner Numero = new Scanner(System.in);
System.out.printf("Numero:");
num = Numero.nextInt();
qtd = qtd +1 ;
... | true |
0c595d0707b303fa069b64508d700d0f7cb83999 | Java | aman-a1/ISUMarketPlace | /Backend/isumarketplace/src/main/java/com309/springboot/isumarketplace/Controller/MessageController.java | UTF-8 | 5,389 | 2.484375 | 2 | [] | no_license | package com309.springboot.isumarketplace.Controller;
import com309.springboot.isumarketplace.Exceptions.ResourceNotFoundException;
import com309.springboot.isumarketplace.Model.Message;
import com309.springboot.isumarketplace.Model.User;
import com309.springboot.isumarketplace.Model.UserConversation;
import com309.spr... | true |
05a7894030d4e9e66212c034784fb67d1fb1778a | Java | stellasipi/MobWebHF_SpaceWeatherApp | /app/src/main/java/hu/bme/aut/spaceweatherapp/data/dao/CmeDao.java | UTF-8 | 595 | 1.984375 | 2 | [] | no_license | package hu.bme.aut.spaceweatherapp.data.dao;
import androidx.room.Dao;
import androidx.room.Delete;
import androidx.room.Insert;
import androidx.room.Query;
import androidx.room.Update;
import java.util.List;
import hu.bme.aut.spaceweatherapp.data.entities.CME_item;
@Dao
public interface CmeDao {
... | true |
da7ea442d0ceb7fe66f5eb1500d38e908268026e | Java | levin-algos/otus-2018 | /07-linear-sorts/src/main/java/ru/otus/sort/Common.java | UTF-8 | 1,602 | 3.203125 | 3 | [] | no_license | package ru.otus.sort;
import java.util.Random;
class Common {
static final int[] POWER_OF_10 = new int[]{1, 10, 100, 1000, 10_000, 100_000, 1_000_000,
10_000_000, 100_000_000, 1_000_000_000};
static int max(int[] array) {
int max = Integer.MIN_VALUE;
for (int i : array) {
... | true |
7db95aa54cccfdfabecc573a616a90fdca34df26 | Java | toninoes/tfg-heridas-rest-servicio-web-spring | /src/main/java/rha/model/Imagen.java | UTF-8 | 2,159 | 2.328125 | 2 | [
"MIT"
] | permissive | package rha.model;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.T... | true |
a75dfba09007766d9ecf5258c4f1afb823952355 | Java | AyediMedali/Pi_Epione | /epioneServer/src/main/java/fr/epione/interfaces/IuserServiceLocal.java | UTF-8 | 540 | 1.859375 | 2 | [] | no_license | package fr.epione.interfaces;
import java.util.List;
import javax.ejb.Local;
import javax.json.JsonObject;
import fr.epione.entity.Doctor;
import fr.epione.entity.User;
@Local
public interface IuserServiceLocal {
int addUser(User user);
List<User> getAllUsers();
User getUserById(int idUser);
User... | true |
d1f5b32bf68f9cea76487adce86d84bc3aed6277 | Java | abhibvnl/my-java-Works | /Test Questions/src/questionSet1/Q10.java | UTF-8 | 977 | 3.265625 | 3 | [] | no_license | package questionSet1;
import java.util.ArrayList;
import java.util.Scanner;
public class Q10 {
public static void main(String[] args) {
int arr[] = {-4, 3, -9, 0, 4, 1};
int arr2[] = {1, 2, 3, -1, -2, -3,0,0};
int pos=0, neg=0, zeros=0;
for(int no: arr2){
if(no>0)
pos++;
else if(no<0)
... | true |
c86f777253ed4e53c7ca5d6da91475374e71f428 | Java | superlyzh/git-test | /IdeaProject/Day11/src/com/pluto/abstarct/test/Rabbit.java | UTF-8 | 166 | 2.09375 | 2 | [] | no_license | package com.pluto.abstarct.test;
public class Rabbit implements Runner{
@Override
public void run() {
System.out.println("兔子蹦起来");
}
}
| true |
c32039ffaf1ce3fa05c7fa03cbae7f36c6eb8e59 | Java | katamaiah/spring-boot-mq-messaging | /src/main/java/hello/Receiver.java | UTF-8 | 739 | 2.1875 | 2 | [] | no_license | package hello;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jms.annotation.JmsListener;
import org.springframework.stereotype.Component;
import hello.domain.ErrorMessage;
@Component
public class Receiver {
@Autowired
ErrorMessageRepository repo;
@Autowired
Error... | true |
c9d389e6cc318439675e1e3caece7ecc8a5904ec | Java | satells/stu-forum | /jforum2/src/main/java/net/jforum/util/MobileStatus.java | UTF-8 | 4,277 | 2.265625 | 2 | [
"BSD-2-Clause"
] | permissive | /*
* Copyright (c) JForum Team
* All rights reserved.
*
* Redistribution and use in source and binary forms,
* with or without modification, are permitted provided
* that the following conditions are met:
*
* 1) Redistributions of source code must retain the above
* copyright notice, this list of conditio... | true |
4bc9358d7c4b6d906515c339094ed10c8439fea6 | Java | Khazrak/JDocker | /api129/src/main/java/com/github/khazrak/jdocker/api129/model/NetworkIPAMConfig129.java | UTF-8 | 801 | 1.9375 | 2 | [
"Apache-2.0"
] | permissive | package com.github.khazrak.jdocker.api129.model;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder;
import com.github.khazrak.jdocker.abstraction.NetworkIPAMConfig;
import lombok.Build... | true |
caa485fc311ebeb3a521aeef7d2870280c603596 | Java | jhonyjhon/TestRepo | /src/testScenarios/RetrieveTester.java | UTF-8 | 846 | 2.03125 | 2 | [] | no_license | package testScenarios;
import hydraTester.RetrieveadsTest.RetrieveadsTester;
import testerConfiguration.TesterConfiguration;
public class RetrieveTester
{
public static void main( String[] args )
{
TesterConfiguration.loadConfiguration();
RetrieveadsTester retrieveadsTester = new RetrieveadsT... | true |
de31e44a8d75ec54b83defcb8e71cdab3ceecbd1 | Java | rkotsur/TestQA | /HAG_new/src/RKotsurLesson34_1/AddGoods.java | UTF-8 | 2,743 | 3.421875 | 3 | [] | no_license | package RKotsurLesson34_1;
import java.util.*;
//Создать консольное приложение
// ● Необходимо создать приложение, которое выводит список производителей.
//● При выборе производителя выводятся все его товары.
// ● Производитель может иметь много товаров.
//● Работу с пользователем организовать через консоль.
//● Выпо... | true |
18e73e9f5bb7e150f1747c4db75903285f385dd6 | Java | Malachiparks1999/CISC275Project | /MainMenu.java | UTF-8 | 5,074 | 2.9375 | 3 | [] | no_license | import javafx.geometry.Insets;
import javafx.scene.Scene;
import javafx.scene.control.Button;
import javafx.scene.image.Image;
import javafx.scene.image.ImageView;
import javafx.scene.layout.AnchorPane;
import javafx.scene.layout.Background;
import javafx.scene.layout.BackgroundFill;
import javafx.scene.layout.BorderPa... | true |
04c2abf4fe641821ec0e7f3d0c4833aaecbc7ca7 | Java | eFOIA-12/eFOIA | /org/apache/http/impl/io/ChunkedOutputStream.java | UTF-8 | 3,110 | 2.5625 | 3 | [] | no_license | package org.apache.http.impl.io;
import java.io.IOException;
import java.io.OutputStream;
import org.apache.http.annotation.NotThreadSafe;
import org.apache.http.io.SessionOutputBuffer;
@NotThreadSafe
public class ChunkedOutputStream extends OutputStream {
private final byte[] cache;
private int cache... | true |
314331b262771d4d3ecc003a6ae3296a184e764c | Java | LuLuWen/Detect | /src/main/java/demo/CoCoME/contoller/OrderController.java | UTF-8 | 1,118 | 2.3125 | 2 | [] | no_license | package demo.CoCoME.contoller;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.spr... | true |
654651d4edf283b916525f438ddb7da87a4ed824 | Java | zerogo233/qyssm | /src/main/java/com/hualy/shopping/dao/ProductDao.java | UTF-8 | 440 | 1.921875 | 2 | [] | no_license | package com.hualy.shopping.dao;
import com.hualy.shopping.pojo.Product;
import java.util.List;
import java.util.Map;
public interface ProductDao {
public Product find(String id);
public int add(Product product);
public int edit(Product edit);
public int delete(String del);
pub... | true |
737da9c7434659fcf2904115c3913cebfff663fa | Java | S-Chaurasia/Java-Assignments | /Assignment7/ShapeDemo.java | UTF-8 | 3,824 | 3.4375 | 3 | [] | no_license | //This program demonstrate Text, Line, Rectangle, Circle, Arc, etc
//When you test on this program, just run one part of the codes
//otherwise all shapes (text, line, rectangle, etc) will be
//tanggled together
import javafx.application.Application;
import javafx.stage.Stage;
import javafx.scene.Scene;
import ... | true |
90855928ba218057acc321c4180d324efd6ea181 | Java | agodomen/lightralab | /src/main/java/edu/muc/controller/SystemController.java | UTF-8 | 5,947 | 1.984375 | 2 | [] | no_license | /**
*
*/
package edu.muc.controller;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import com.jfinal.aop.Before;
import com.jfinal.core.ActionKey;
import edu.muc.controller.interceptor.AuthInterceptor;
import edu.muc.controller.interce... | true |
420f7c6656b853369dd18d641ab25ec59d8c4cba | Java | apereo/cas | /support/cas-server-support-person-directory/src/test/java/org/apereo/cas/DefaultPersonDirectoryAttributeRepositoryPlanLdapTests.java | UTF-8 | 2,993 | 1.898438 | 2 | [
"Apache-2.0",
"LicenseRef-scancode-free-unknown",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | package org.apereo.cas;
import org.apereo.cas.adaptors.ldap.LdapIntegrationTestsOperations;
import org.apereo.cas.authentication.CoreAuthenticationTestUtils;
import org.apereo.cas.authentication.principal.PrincipalResolver;
import org.apereo.cas.util.RandomUtils;
import org.apereo.cas.util.junit.EnabledIfListeningOnPo... | true |
3bd504ac37734f3c287a92a54e96f5b7a048feef | Java | gitter-badger/matrixstudio | /core/src/main/java/matrixstudio/model/MatrixInteger.java | UTF-8 | 2,701 | 2.53125 | 3 | [] | no_license | package matrixstudio.model;
import org.xid.basics.model.ChangeRecorder;
import org.xid.basics.model.ModelObject;
import org.xid.basics.serializer.Boost;
import org.xid.basics.serializer.BoostObject;
import org.xid.basics.serializer.BoostUtil;
import java.util.Random;
public class MatrixInteger extends Matrix implem... | true |
016cee670534fa073384051db2693d50da0879d1 | Java | qianzui/my-android-tools | /MyAndroidTools/src/cn/emagsoftware/net/wifi/direct/CloseDirectApCallback.java | UTF-8 | 208 | 1.609375 | 2 | [] | no_license | package cn.emagsoftware.net.wifi.direct;
/**
* Created by Wendell on 13-8-5.
*/
public interface CloseDirectApCallback
{
public void onClosed();
public void onError(Exception e);
}
| true |
daf88be0fc6ed6385bbd94bcbe9cc4b15fc51b92 | Java | SpringCao/SwordToOffer | /src/二叉树的遍历/层次遍历/MaxWidth.java | UTF-8 | 1,174 | 3.65625 | 4 | [] | no_license | package 二叉树的遍历.层次遍历;
import java.util.LinkedList;
import java.util.Queue;
public class MaxWidth {
public static void main(String[] args) {
TreeNode head = new TreeNode(8);
head.left = new TreeNode(6);
head.left.left = new TreeNode(5);
head.left.right = new TreeNode(7);
... | true |
8ca9fdc1fcc6bf40a9be0179ff5163f04aa023c4 | Java | hzr958/myProjects | /scmv6/web-mobile/src/main/java/com/smate/web/mobile/wechat/base/vo/WechatBaseVO.java | UTF-8 | 1,708 | 1.890625 | 2 | [] | no_license | package com.smate.web.mobile.wechat.base.vo;
public class WechatBaseVO {
private String wxOpenId;// 微信openid
private String des3Wid;// 微信加密id
// 页面调用微信js
private String timestamp;// 必填,生成签名的时间戳
private String nonceStr;// 必填,生成签名的随机串
private String signature;// 必填,签名
private String code;// 微信网页授权code
p... | true |
4c5d35bfdc2009f3d91a2bbc07a3e9144b9ce089 | Java | brunobrossi/exemple-playframework | /app/autenticadores/UsuarioAuth.java | UTF-8 | 947 | 2.1875 | 2 | [
"Apache-2.0"
] | permissive | package autenticadores;
import java.util.Optional;
import javax.inject.Inject;
import controllers.LoginController;
import controllers.routes;
import dao.ILoginDAO;
import models.Usuario;
import play.mvc.Http.Context;
import play.mvc.Result;
import play.mvc.Security.Authenticator;
public class UsuarioAuth extends Au... | true |
adfff2a07c321b39fba1d7d95db94fbb63b9545f | Java | FilimonovaM/EJC08 | /src/main/java/com/epam/vol1/hw3/farm/behavior/swimming/SwimLikeTheAxe.java | UTF-8 | 415 | 2.953125 | 3 | [] | no_license | package com.epam.vol1.hw3.farm.behavior.swimming;
import com.epam.vol1.hw3.farm.behavior.interfaces.SwimBehavior;
public class SwimLikeTheAxe implements SwimBehavior {
/**
* uses for demonstration one of the birds of swim behavior.
*
* @return String message
*/
@Override
public String... | true |
891f060a2b4acc870aaecdc6808c71a9d4d2b5c2 | Java | lehongphuong/hien | /src/model/bean/Menu.java | UTF-8 | 668 | 2.640625 | 3 | [] | no_license | package model.bean;
public class Menu {
private int menuId;
private String name;
private int positive;
public Menu() {
super();
}
public Menu(int menuId, String name, int positive) {
super();
this.menuId = menuId;
this.name = name;
this.positive = positive;
}
public int getMenuId... | true |
0a6ae8ebe5f0b44a379a80a5727e2ee4a064214b | Java | peter-mount/global-forecast-system | /grib2/src/main/java/onl/area51/gfs/grib2/section/Section.java | UTF-8 | 1,350 | 2.296875 | 2 | [] | no_license | /*
* Copyright 2015 peter.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in w... | true |
7c0d0b8fca65febb5bc1fef05ef45b75e182e98c | Java | liangchch/loan | /loan-bestsign/src/main/java/com/hwc/framework/modules/third/impl/BankCardServiceImpl.java | UTF-8 | 2,935 | 1.976563 | 2 | [] | no_license | package com.hwc.framework.modules.third.impl;
import cn.freesoft.utils.FsUtils;
import com.hwc.base.api.Response;
import com.hwc.base.sdk.core.Client;
import com.hwc.common.aliyun.IHwcCache;
import com.hwc.framework.modules.third.BankCardService;
import com.hwc.loan.sdk.user.domain.BankCardBean;
import com.hwc.loan.sd... | true |
648e1638424b995a3b51c7a141df0f8f1661168a | Java | jy231613/wechart | /wxbase/src/main/java/com/qb/wxbase/create/sql/exception/NoPrimaryKeyException.java | UTF-8 | 628 | 2.328125 | 2 | [] | no_license | package com.qb.wxbase.create.sql.exception;
/**
* ================================================
* 作 者:贾恒飞 >>> 17515250730@163.com
* 项 目:wechat
* 日 期:2019/1/13
* 包 名:com.qb.wxbase.create.sql.exception
* 描 述:不存在主键异常
* Create by Administrator from AndroidStudio3.2
* =============================... | true |
68a40cb6f41608d8a31870bd9a36367a7ce8a475 | Java | AlexNastin/G3DM | /src/main/java/com/global3Dmod/ЗDmodel/domain/Avatar.java | ISO-8859-13 | 2,748 | 2.296875 | 2 | [] | no_license | package com.global3Dmod.Dmodel.domain;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.NamedQueries;
import javax.persi... | true |
fc640c96eade7f285285f7b513daa3f7ae5140de | Java | fluex404/spring-boot-jpa | /spring-boot-jpa/src/main/java/com/fluex404/springbootjpa/repository/PostRepository.java | UTF-8 | 290 | 1.695313 | 2 | [] | no_license | package com.fluex404.springbootjpa.repository;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
import com.fluex404.springbootjpa.model.Post;
@Repository
public interface PostRepository extends JpaRepository<Post, Long>{
}
| true |
9d9868661854797a2b97e408c3ee751198ab198a | Java | Nomentsoa/PointeurAndroidITUNfc | /app/src/main/java/mg/itu/lazanomentsoa/pointagenfcitu/ui/MainActivity.java | UTF-8 | 7,685 | 1.75 | 2 | [] | no_license | package mg.itu.lazanomentsoa.pointagenfcitu.ui;
import android.app.PendingIntent;
import android.content.Intent;
import android.content.IntentFilter;
import android.nfc.FormatException;
import android.nfc.NdefMessage;
import android.nfc.NdefRecord;
import android.nfc.NfcAdapter;
import android.nfc.Tag;
import android.... | true |
8a3990b6bbc0cae0e8485e1fb99f14d64c6837c7 | Java | Brunobzrra/ifpb_monteiro_dac_2021_1_grupo_4 | /backend/src/main/java/br/edu/ifpb/dac/livrariaParaiba/service/ItemCarrinhoService.java | UTF-8 | 847 | 2.140625 | 2 | [] | no_license | package br.edu.ifpb.dac.livrariaParaiba.service;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import br.edu.ifpb.dac.livrariaParaiba.model.ItemCarrinho;
import br.edu.ifpb.dac.livrariaParaiba.repository.ItemCarrinhoRepository;
/*... | true |
e83944769d34f5f3f8c6d9a449a165cefc9b96d6 | Java | lcyanxi/jdk8 | /src/share/classes/javax/xml/crypto/dsig/keyinfo/X509IssuerSerial.java | UTF-8 | 3,567 | 1.703125 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright (c) 2005, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Softwa... | true |
afd8deb55d228c49a8902ce97e740370585ea5b4 | Java | tduchoslav/alarm | /alarm-server/src/main/java/com/tduch/alarm/conf/EmailParameters.java | UTF-8 | 762 | 2.328125 | 2 | [] | no_license | package com.tduch.alarm.conf;
public class EmailParameters {
private final String emailFrom;
private final String emailFromPassword;
private final String emailTo;
public EmailParameters(String emailFrom, String emailFromPassword, String emailTo) {
this.emailFrom = emailFrom;
this.emailFromPas... | true |
c632477f503bd33ca760d18b9ffc7f79504194f2 | Java | akaravi/Ntk.Android.Academy | /app/src/main/java/ntk/android/academy/adapter/theme/holder/ArticleHolder.java | UTF-8 | 1,208 | 1.992188 | 2 | [] | no_license | package ntk.android.academy.adapter.theme.holder;
import android.content.Context;
import android.graphics.PorterDuff;
import androidx.recyclerview.widget.RecyclerView;
import android.view.View;
import android.widget.ProgressBar;
import android.widget.TextView;
import java.util.List;
import butterknife.BindView;
imp... | true |
ab87bc05519f9ff649aee9176dd26cc38e5aa270 | Java | apache/openoffice | /main/qadevOOo/java/OOoRunner/src/main/java/ifc/ui/_XModuleUIConfigurationManagerSupplier.java | UTF-8 | 2,611 | 1.742188 | 2 | [
"Apache-2.0",
"CPL-1.0",
"bzip2-1.0.6",
"LicenseRef-scancode-other-permissive",
"Zlib",
"LZMA-exception",
"LGPL-2.0-or-later",
"LicenseRef-scancode-free-unknown",
"LicenseRef-scancode-philippe-de-muyter",
"OFL-1.1",
"LGPL-2.1-only",
"MPL-1.1",
"X11",
"LGPL-2.1-or-later",
"GPL-2.0-only",
... | 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 y... | true |
e0fd2e1b86e52b0f32fdf2db0c8f9aec52bba889 | Java | DanMoss/nonogram | /src/grid/SquareFillEventListener.java | UTF-8 | 153 | 1.9375 | 2 | [] | no_license | package grid;
public interface SquareFillEventListener
{
// Used by a source to update the listener
public void onNotification(Square square);
} | true |
0e80c6b81becf8722feb7231a6574276e244717a | Java | guyroyse/ephemeral-graph | /src/test/java/com/guyroyse/ephemeral/graph/EphemeralGraphTests.java | UTF-8 | 5,242 | 2.5 | 2 | [] | no_license | package com.guyroyse.ephemeral.graph;
import com.guyroyse.ephemeral.graph.annotations.GraphID;
import com.guyroyse.ephemeral.graph.annotations.GraphInt;
import com.guyroyse.ephemeral.graph.annotations.GraphString;
import com.guyroyse.ephemeral.graph.annotations.Graphable;
import com.guyroyse.ephemeral.graph.lettuce.Gr... | true |
73d5e79274ee4c843d822eace17b397ddcdbcfe5 | Java | theKerrigan/FRC_2014_Junior_year | /Hackbot 2014/src/com/fpsrobotics/HackbotWatchdog.java | UTF-8 | 575 | 2.75 | 3 | [] | no_license | package com.fpsrobotics;
import edu.wpi.first.wpilibj.Watchdog;
/**
* Controls the robot's watchdog.
*
* @author ray
*/
public class HackbotWatchdog
{
Watchdog dog = Watchdog.getInstance();
/**
* Feed the watchdog so the robot doesn't die.
*
* @param dog
*/
public void feed()
... | true |
960af7a76f52689efc0576dc42ab92aac744729a | Java | alimogh/Oxygen | /oxygen-run/src/com/jfixby/scarabei/examples/btc/round1/MarketShare.java | UTF-8 | 1,113 | 2.15625 | 2 | [
"Apache-2.0"
] | permissive |
package com.jfixby.scarabei.examples.btc.round1;
import java.io.IOException;
import com.jfixby.scarabei.api.collections.List;
import com.jfixby.scarabei.api.log.L;
import com.jfixby.scarabei.api.sys.settings.ExecutionMode;
import com.jfixby.scarabei.api.sys.settings.SystemSettings;
import com.jfixby.scarabei.example... | true |
7ca69158e242c7eb637a9002bc522f932306a8dc | Java | zyb2013/Warriors | /src/com/yayo/warriors/module/task/facade/LoopTaskFacade.java | UTF-8 | 995 | 1.90625 | 2 | [] | no_license | package com.yayo.warriors.module.task.facade;
import java.util.Collection;
import com.yayo.warriors.bo.ResultObject;
import com.yayo.warriors.module.props.entity.BackpackEntry;
import com.yayo.warriors.module.task.entity.UserLoopTask;
import com.yayo.warriors.module.task.model.QualityResult;
import com.yayo.warriors.... | true |
3bf49a1fc86631ecaf771887c26a8984eb91f624 | Java | sendianthe/springcloud | /springcloud-clients2/src/main/java/com/example/springcloudclients2/SpringcloudClients2Application.java | UTF-8 | 808 | 1.601563 | 2 | [] | no_license | package com.example.springcloudclients2;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.spring... | true |
983eb5ad557159d432549c4df08d83fa23e6e3c6 | Java | sihai/sox | /src/main/java/com/ihome/sox/crypter/BlowfishEncrypter.java | UTF-8 | 4,684 | 2.5625 | 3 | [] | no_license | /*
* ihome inc.
* soc
*/
package com.ihome.sox.crypter;
import javax.crypto.Cipher;
import javax.crypto.spec.IvParameterSpec;
import javax.crypto.spec.SecretKeySpec;
import org.apache.commons.codec.binary.Base64;
import org.apache.commons.codec.digest.DigestUtils;
import org.apache.commons.lang.StringU... | true |
b9ba78bbc622e96e38e2e681f3bcd89640f26ccb | Java | vincent928/springboot-application | /src/main/java/com/moon/exception/MyException.java | UTF-8 | 591 | 2.75 | 3 | [] | no_license | package com.moon.exception;
import com.moon.enums.ExceptionEnum;
/**
* Author : moon
* Date : 2018/12/11 11:16
* Description : Class for 自定义异常
*/
public class MyException extends RuntimeException {
private int code;
public MyException() {
super();
}
public MyException(ExceptionEnum exc... | true |
f182b52e921b880c34b2515d011b60c4051d12a7 | Java | rogasz09/Projekt-MMM | /src/piekarnik_2/Piekarnik_2.java | UTF-8 | 5,705 | 2.8125 | 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 piekarnik_2;
import java.awt.Dimension;
import java.awt.Graphics;
import java.awt.*;
import java.util.Collections;
... | true |
88bd933b8cb60aa0349d8604d371c1228611e8c0 | Java | Kanhaiyaklal/SpringUpdateProject | /src/main/java/com/app/validator/OrderValidator.java | UTF-8 | 1,203 | 2.59375 | 3 | [] | no_license | package com.app.validator;
import org.springframework.stereotype.Component;
import org.springframework.validation.Errors;
import org.springframework.validation.Validator;
import com.app.model.Order;
@Component
public class OrderValidator implements Validator{
@Override
public boolean supports(Class<?> c... | true |
f156183db35ba27b4bc38deedddfe088695267a8 | Java | scratches/spring-data-gazillions | /src/main/java/hello/service/Customer1854Service.java | UTF-8 | 223 | 1.5625 | 2 | [] | no_license | package hello.service;
import org.springframework.stereotype.Service;
import hello.repo.Customer1854Repository;
@Service
public class Customer1854Service {
public Customer1854Service(Customer1854Repository repo) {
}
}
| true |
40f014a656c6d3f2f9af3f1902ea7cf9be95b428 | Java | fadimedibi/TestNGBasic | /src/com/class3/HWDataProviderAddEmployee.java | WINDOWS-1252 | 4,299 | 2.609375 | 3 | [] | no_license | package com.class3;
/*
* TC 1: HRMS Add Employee:
Open chrome browser
Go to http://166.62.36.207/humanresources/symfony/web/index.php/auth/login
Login into the application
Add 5 different Employees and create login credentials by providing:
First Name
Last Name
Username
Password
Provide Employee First and Last Name... | true |
09b8fccf737a0706d18c7fce45f70c5993995de5 | Java | wang59/srcoa | /main/java/org/jeecgframework/web/oct/activiti/entity/ActApproveLog.java | UTF-8 | 3,191 | 2.015625 | 2 | [] | no_license | package org.jeecgframework.web.oct.activiti.entity;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Many... | true |
1e7da63d4239544a7f9368164d361b927aaca1fd | Java | MessirVoland/spring-simple-example | /src/main/java/ru/devmark/test/TestApp.java | UTF-8 | 462 | 1.859375 | 2 | [] | no_license | package ru.devmark.test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import ru.devmark.test.services.MainService;
public class TestApp {
public static void main(String[] args) {
ApplicationContext context = new ClassPat... | true |
c50c5e8314f47763841d808173441d7156a0dd2b | Java | akoubensky/informatics | /1/src/Bits.java | UTF-8 | 655 | 3.3125 | 3 | [] | no_license | /**
* Created by Alex on 7/29/2015.
*/
public class Bits {
public static void main(String[] args) {
byte b1 = 12; // 00001100
System.out.println(b1);
byte b2 = -12; // 11110100 (256-12=244)
System.out.format("%h\n", (char) b2);
int n1 = b2; // 11111111 11111111 11... | true |
db2b219b29ae1ac18212e95c8b6ed65fb0453dda | Java | muckyang/Algorithm_Study | /SSAFY_STUDY/Study_11/Study_1103/Main_9935_문자열폭발.java | UTF-8 | 1,011 | 3.21875 | 3 | [] | no_license | package Study_1103;
import java.util.Arrays;
import java.util.HashMap;
import java.util.Iterator;
public class Main_9935_문자열폭발 {
public static void main(String[] args) {
HashMap<Character, Integer > map = new HashMap<>();
// map.put("송복민", 167);
// System.out.println(map.get("송복민"));
// map.put("송복민", 170);
// ... | true |
b3a0db231385eb3c1b3ebfc85c80d8249174eebd | Java | JtePromise/demo | /src/main/java/com/service/TestServiceImpl.java | UTF-8 | 619 | 1.96875 | 2 | [] | no_license | package com.service;
import com.dao.UserRepository;
import com.dao.model.Users;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cache.annotation.CachePut;
import org.springframework.cache.annotation.Cacheable;
import org.springframework.stereotype.Service;
import java.util.Li... | true |
102153f65c82fb48c466316ef959846e8810ee0c | Java | ta4anka/projectServletsJSP | /src/main/java/repository/hibernate/HibernateProjectRepositoryImpl.java | UTF-8 | 1,975 | 2.625 | 3 | [] | no_license | package repository.hibernate;
import model.Project;
import org.hibernate.Session;
import repository.ProjectRepository;
import util.HibernateUtil;
import javax.persistence.Query;
import java.math.BigDecimal;
import java.util.List;
public class HibernateProjectRepositoryImpl implements ProjectRepository {
public... | true |
3c8a4278bc90dd442bb549082def6cd2a96d99af | Java | natanaelsantosbr/android-tcc-bolso-casal | /app/src/main/java/br/android/bolsocasalapp/despesas/repositorio/ICallbackBuscarDespesasPorMesAno.java | UTF-8 | 289 | 1.828125 | 2 | [] | no_license | package br.android.bolsocasalapp.despesas.repositorio;
import java.util.List;
import br.android.bolsocasalapp.despesas.dominio.Despesa;
public interface ICallbackBuscarDespesasPorMesAno {
void onSucesso(boolean retorno, List<Despesa> despesas) ;
void onErro(String mensagem);
}
| true |
a42546bbc810fc1ebb8d0fdd182267fc556fb577 | Java | GregPhi/PJI_BAL | /ProjetLivreTestRequest/app/src/main/java/com/example/projetlivretestrequest/JsonRequestActivity.java | UTF-8 | 7,633 | 2.1875 | 2 | [] | no_license | package com.example.projetlivretestrequest;
import android.net.ConnectivityManager;
import android.net.NetworkInfo;
import android.os.Bundle;
import android.text.TextUtils;
import android.util.Log;
import android.view.View;
import android.widget.EditText;
import android.widget.TextView;
import com.android.volley.Auth... | true |
763375c2d22c0ccff910938aa1c4cebd239e617e | Java | Mathhead200/Grid-Assignment-Java-Library | /The Grid - Original/com/mathhead200/grid/NullParentBoxException.java | UTF-8 | 735 | 2.796875 | 3 | [] | no_license | package com.mathhead200.grid;
/**
* NullParentBoxException is thrown when a method invoked on a GridItem breaks because it needs to act on
* its parent Box, but its parent Box has been set to null or has never been set.
* @author Christopher D'Angelo
* @author JBD Computers ™
* @version 1.1
* @see Box#add... | true |
05bc0c76f6ca9ccc741f6262515d88b7d6ee7bbe | Java | pavelmx/mongodb | /src/main/java/com/innowise/mongodb/exception/EntityExistsException.java | UTF-8 | 319 | 2.1875 | 2 | [] | no_license | package com.innowise.mongodb.exception;
public class EntityExistsException extends RuntimeException {
public EntityExistsException(final String message) {
super(message);
}
public EntityExistsException(final String message, final Throwable throwable) {
super(message, throwable);
}
}
| true |
46bf424d3865d25d848d9f7c319906abca82a53a | Java | jssteux/mig_osivia | /jbp_commons/jbp-common-1-2-5/common/src/main/java/org/jboss/portal/common/net/URLNavigator.java | UTF-8 | 4,095 | 2.140625 | 2 | [] | no_license | /******************************************************************************
* JBoss, a division of Red Hat *
* Copyright 2006, Red Hat Middleware, LLC, and individual *
* contributors as indicated by the @authors tag. See the *
... | true |
1fe0ebd0446fbb29365726284ba61838c8bdf3d8 | Java | kogayushi/ist-procedural-vs-object-oriented-programming | /src/main/java/com/example/ist/object/oriented/domain/model/policy/PolicyFactory.java | UTF-8 | 1,699 | 2.515625 | 3 | [] | no_license | package com.example.ist.object.oriented.domain.model.policy;
import com.example.ist.object.oriented.domain.model.identity.Person;
import com.example.ist.object.oriented.domain.model.identity.User;
import org.springframework.stereotype.Component;
import java.util.LinkedHashSet;
import java.util.Set;
@Component
publi... | true |
86b874b94ecb16dd8797885ba2a851e7265534f3 | Java | J22Pregbaha/first-android-app | /app/src/main/java/com/example/keepfit/db/MainActivityRepository.java | UTF-8 | 2,949 | 2.296875 | 2 | [] | no_license | package com.example.keepfit.db;
import android.app.Application;
import android.os.AsyncTask;
import androidx.lifecycle.LiveData;
import com.example.keepfit.models.CurrentGoal;
import com.example.keepfit.models.Goals;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.List;
public class Main... | true |
2294c9c4adf761a4f50e96d724d0055285d41699 | Java | youngseu/leetcode | /src/Tree/BinaryTreeRightSideView.java | UTF-8 | 2,783 | 3.828125 | 4 | [] | no_license | package Tree;
import Base.TreeNode;
import java.util.*;
//199 problem
//Binary Tree Right Side View
//Given a binary tree, imagine yourself standing on the right side of it, return the values of the nodes you can see ordered from top to bottom.
//Example:
//Input: [1,2,3,null,5,null,4]
//Output: [1, 3, 4]
//Explanat... | true |
649c160f23ca0dfdd29ffd93dc1e966d9e5c936b | Java | glukas/Kamel-DB | /src/ch/ethz/inf/kameldb/core/PackedMemoryArrayTest.java | UTF-8 | 10,002 | 2.65625 | 3 | [] | no_license | package ch.ethz.inf.kameldb.core;
import static org.junit.Assert.*;
import java.io.File;
import java.nio.ByteBuffer;
import java.util.Comparator;
import java.util.Date;
import java.util.Random;
import java.util.SortedSet;
import java.util.TreeSet;
import org.junit.Test;
public class PackedMemoryArrayTest {
@Test
... | true |
2b845f792e6a3cce4b36ac1fc59d13cc64cfe178 | Java | topazi-k/bug_tracker | /src/main/java/com/bug_tracker/controller/RegistrationController.java | UTF-8 | 1,391 | 2.0625 | 2 | [] | no_license | package com.bug_tracker.controller;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
i... | true |
3be164f4059d26aac2d53787ada35196b5383391 | Java | samaromku/ThaiRoles | /app/src/main/java/com/example/alino4ka/thairoles/activities/ResultActivity.java | UTF-8 | 3,096 | 2.234375 | 2 | [] | no_license | package com.example.alino4ka.thairoles.activities;
import android.content.Intent;
import android.os.Bundle;
import android.os.PersistableBundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.w... | true |
b6d4a0cd0c27f5bfd2dd2e035c57b911f1ece7f1 | Java | belaran/grundlagen-der-programmierung | /src/java/Addition.java | UTF-8 | 651 | 3.8125 | 4 | [] | no_license | /**
*
* Probably one of the most powerfull piece of program I ever wrote... No, really !
*
* @author Romain PELISSE
*
*/
public class Addition {
/**
* @param args
*/
public static void main(String[] args) {
if ( args.length < 2 ) {
System.out.println("Invalid inputs - not enough arguments (2 requir... | true |
e6b89425c905ddc34463f3e5bb4a915d0cf98607 | Java | chuanzhangjiang/ZLib | /zlib/src/main/java/me/zjc/zlib/network/download/DownloadApi.java | UTF-8 | 607 | 2.15625 | 2 | [
"Apache-2.0"
] | permissive | package me.zjc.zlib.network.download;
import okhttp3.ResponseBody;
import retrofit2.adapter.rxjava.Result;
import retrofit2.http.GET;
import retrofit2.http.Header;
import retrofit2.http.Streaming;
import retrofit2.http.Url;
import rx.Observable;
/**
* Created by ChuanZhangjiang on 2016/8/5.
* 文件下载API
* 用于根据文件的url... | true |
20667739ad982a2110934a5da79cf7e0167b59c9 | Java | Banki-Africa/feature-wallet-jme | /src/org/banki/io/InterruptedIOException.java | UTF-8 | 1,801 | 2.359375 | 2 | [
"MIT"
] | 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 |
e01931464946df3cc59121a1b4ae7b7372ba7616 | Java | lisz1012/Network_Programming | /src/main/java/com/lisz/bio/Server.java | UTF-8 | 1,486 | 3.53125 | 4 | [] | no_license | package com.lisz.bio;
import java.io.IOException;
import java.io.InputStream;
import java.net.InetSocketAddress;
import java.net.ServerSocket;
import java.net.Socket;
/* Blocking IO 必须有大量的线程在空等,消耗CPU资源,一般网络程序都不用。
* 但是,如果知道连接server的人特别少,这么写简单处理,特别方便,不易出错。
*/
public class Server {
public static void main(String[] ar... | true |
274e5864323938f9543be884e684d3d524735e8e | Java | HuGanghui/tianchi_analyticDB_2021 | /src/main/java/com/aliyun/adb/contest/MergeSortAnalyticDB.java | UTF-8 | 9,278 | 2.546875 | 3 | [] | no_license | package com.aliyun.adb.contest;
import com.aliyun.adb.contest.spi.AnalyticDB;
import java.io.*;
import java.nio.ByteBuffer;
import java.nio.LongBuffer;
import java.nio.channels.FileChannel;
import java.util.*;
import static com.aliyun.adb.contest.common.Utils.bytesToLong;
import static com.aliyun.adb.contest.common.... | true |