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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
17ae39886d8bfb4adb8afe0ea403f2ea596af31e | Java | yantianping/qcloud-sdk-android | /QCloudCosXml/cosxmlext/src/main/java/com/tencent/cos/xml/transfer/request/WorkerUploadRequest.java | UTF-8 | 3,709 | 2.21875 | 2 | [
"MIT"
] | permissive | package com.tencent.cos.xml.transfer.request;
import android.annotation.SuppressLint;
import android.text.TextUtils;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.work.Data;
import com.tencent.cos.xml.model.object.PutObjectRequest;
import org.json.JSONException;
import org... | true |
cf66329155bf4683c05769a3b5cf4837a4bf58af | Java | gateshibill/shares100 | /src/main/java/com/cofc/service/GroupTypesService.java | UTF-8 | 552 | 1.515625 | 2 | [] | no_license | package com.cofc.service;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import com.cofc.pojo.GroupTypes;
import com.cofc.pojo.TagCommon;
public interface GroupTypesService {
public List<GroupTypes> findGroupTypesByplat(@Param("loginPlat")Integer loginPlat,@Param("isUsing")Integer isUsing,@Para... | true |
35bae67f0a872c3bc456724f26cf001cfeb114ca | Java | vrajat/lineage | /sqlplanner/src/main/java/io/tokern/lineage/sqlplanner/planner/FieldType.java | UTF-8 | 1,976 | 2.390625 | 2 | [
"MIT"
] | permissive | package io.tokern.lineage.sqlplanner.planner;
import org.apache.calcite.adapter.java.JavaTypeFactory;
import org.apache.calcite.linq4j.tree.Primitive;
import org.apache.calcite.rel.type.RelDataType;
import java.sql.Types;
import java.util.HashMap;
import java.util.Map;
/**
* Type of a field among all data storages.... | true |
65006a34127d539f4191178f86e95ddaa3643f8f | Java | chaoyueLin/routerDemo | /routerDemo/app/src/main/java/com/example/routerdemo/MyApplication.java | UTF-8 | 633 | 1.859375 | 2 | [] | no_license | package com.example.routerdemo;
import android.app.Application;
/*****************************************************************
* * File: - MyApplication
* * Description:
* * Version: 1.0
* * Date : 2020/9/8
* * Author: linchaoyue
* *
* * ---------------------- Revision History:----------------------
* * ... | true |
5eca02c62523072cabe5e363cb5060a16f2b2b68 | Java | pierredes/patient | /src/main/java/com/example/patient/api/PatientApiController.java | UTF-8 | 3,392 | 2.453125 | 2 | [] | no_license | package com.example.patient.api;
import com.example.patient.entities.PatientEntity;
import com.example.patient.services.PatientService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.w... | true |
c3cfc2bfd511dff037e66fbdbd1decf5117c9986 | Java | sagar-2000/RISK_SoftwareEngProject | /Biscuit-main/src/ENGINE/launch.java | UTF-8 | 720 | 2.59375 | 3 | [] | no_license | package ENGINE;
import java.awt.Rectangle;
import java.util.Arrays;
import GameObjects.Dice;
import UI.MainFrame;
import UI.Map;
public class launch {
public static GameManager gm;
// public static void main(String[] args) {
// MainFrame f = new MainFrame("Risk by Biscuit", new Rectangle(100,100,1000,1200));
/... | true |
03aefa9e5038e11b7480e26ad7ece7e997e5ff0b | Java | youngcd72/nexacro | /src/main/java/kr/or/coder/frame/ria/nexacro/NxcResult.java | UTF-8 | 2,699 | 2.15625 | 2 | [] | no_license | package kr.or.coder.frame.ria.nexacro;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import org.springframework.web.servlet.ModelAndView;
import com.nexacro17.xapi.data.DataSetList;
import com.nexacro17.xapi.data.PlatformData;
import com.nexacro17.xapi.data.VariableList;
impor... | true |
6a4228a902e42aee85edb1c635cb61d799c5fcc4 | Java | Bafguit/PuzzleLab | /src/main/java/puzzle/abstracts/TitlePanel.java | UTF-8 | 1,018 | 1.601563 | 2 | [] | no_license | package puzzle.abstracts;
import basemod.ReflectionHacks;
import basemod.patches.com.megacrit.cardcrawl.helpers.TopPanel.TopPanelHelper;
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.graphics.Color;
import com.badlogic.gdx.graphics.g2d.SpriteBatch;
import com.badlogic.gdx.math.MathUtils;
import java.awt.datatra... | true |
e77db4c3e3d9eb0131b262fc50c57b9c4a084250 | Java | deepexpert-gaohz/sa-d | /jnnsBank/system-api/src/main/java/com/ideatech/ams/system/log/service/AdminLogService.java | UTF-8 | 402 | 1.601563 | 2 | [] | no_license | /**
*
*/
package com.ideatech.ams.system.log.service;
import com.ideatech.ams.system.log.dto.SysLogInfo;
import java.util.List;
/**
* @author zhailiang
*
*/
public interface AdminLogService {
/*DhtmlxGrid query(AdminLogInfo adminLogInfo, Pageable pageable);
DhtmlxGrid queryScheduleLog();
DhtmlxGrid quer... | true |
c4262ffbcbd219127deed8282263459618d7302f | Java | ryaliscs/CurriculumExamples | /src/in/string/Magic.java | UTF-8 | 856 | 4.125 | 4 | [] | no_license | package in.string;
import java.util.Scanner;
/**
* Return if true if the entered word has two consecutive characters
*
* eg: mystery : true since it has ST
*
* @author saryal
*
*/
public class Magic {
String str;
public Magic() {
str = "";
}
void input() {
Scanner sc = new Scanner(System.in);
Sy... | true |
bef0630eb486366a9021c6008c1cbf71d7097e8f | Java | lingzhang-lyon/GumballMachine | /lab1-gumball-machine-greenfoot/greenfoot/GreenPicker.java | UTF-8 | 717 | 2.75 | 3 | [] | no_license | import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
/**
* Write a description of class GreenPicker here.
*
* @author (your name)
* @version (a version number or a date)
*/
public class GreenPicker extends Picker
{
/**
* Act - do whatever the GreenPicker wants to do. This met... | true |
523bf1dae1f160a59bc00b6ff6e829cd484c1045 | Java | T1907MQuyet/Project_GoodFood_Tomato | /Source And Database/project_tomato/src/main/java/tomato_th/project_tomato/model/Banners.java | UTF-8 | 2,131 | 2.46875 | 2 | [] | no_license | package tomato_th.project_tomato.model;
import javax.persistence.*;
import javax.validation.constraints.NotEmpty;
import java.util.Date;
@Entity
public class Banners {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private int banner_id;
@NotEmpty(message = "type banner name must not be empty... | true |
e5597d8a6dc25af822cb7a36b4dc70c4eea9c2b9 | Java | pombredanne/lsh-for-source-code | /Big_Clone_Bench_files_used/bcb_reduced/3/selected/566157.java | UTF-8 | 25,628 | 2.03125 | 2 | [
"MIT"
] | permissive | package au.edu.qut.yawl.admintool;
import java.util.List;
import java.util.Set;
import java.util.Iterator;
import java.util.HashMap;
import java.util.Calendar;
import java.util.LinkedList;
import java.util.ArrayList;
import java.util.StringTokenizer;
import java.text.MessageFormat;
import au.edu.qut.yawl.admintool.mod... | true |
5ebebbede19e2eaaddf33dd7091f6c9c6b0dfcca | Java | juan97serrano/Design-Principles-and-Design-Patterns | /Patrones/src/Adapter/Repostar.java | UTF-8 | 70 | 1.71875 | 2 | [] | no_license | package Adapter;
public interface Repostar {
void repostar();
}
| true |
ee5ec19e5b2d6e5242a95473fce35814c2de4dfa | Java | rudymccomb/vitess | /java/jdbc/src/test/java/com/flipkart/vitess/jdbc/test/VitessStatementTest.java | UTF-8 | 24,081 | 2.078125 | 2 | [
"BSD-3-Clause"
] | permissive | package com.flipkart.vitess.jdbc.test;
import com.flipkart.vitess.jdbc.VitessConnection;
import com.flipkart.vitess.jdbc.VitessStatement;
import com.flipkart.vitess.util.Constants;
import com.youtube.vitess.client.Context;
import com.youtube.vitess.client.SQLFuture;
import com.youtube.vitess.client.VTGateConn;
import ... | true |
77a13bcc25422b9d354a375f1b5024a10ba623c8 | Java | Shinkary/lesson2 | /src/com/company/UserNumber.java | UTF-8 | 394 | 3.046875 | 3 | [] | no_license | package com.company;
import java.util.Scanner;
public class UserNumber {
public static double inputNumber (String x){ //Ввод данных пользователем
Scanner getNumber = new Scanner(System.in);
System.out.println("Введите число " + x);
double userNumber = getNumber.nextDouble();
... | true |
65c7a86abe970e854298722a15e1ceb079846eb1 | Java | Orshih71/PHH | /Main.java | UTF-8 | 391 | 2.53125 | 3 | [] | no_license | package lab2;
/**
* @author Dios
*
*
*/
public class Main {
public static void main(String[]args) {
Account account = new Account(1000, 7777);
Customer customer = new Customer("Bat-Orshih", 71, 4444);
customer.getAccounts().add(account);
Bank bank = new Bank("Khaan");
bank.addCustomer(customer);
ATM a... | true |
42114cb83a494e604d1a7394370f766b8c502770 | Java | carloslongares/Android | /Viajes/src/com/example/viajes/PantallaResultado.java | UTF-8 | 2,246 | 2.359375 | 2 | [] | no_license | package com.example.viajes;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.EditText;
import android.widget.ImageView;
import android.widget.TextView;
import a... | true |
ec22f302ad8aac8a582e63b3687207105d4d0fd0 | Java | josbenper/Banco17 | /app/src/main/java/com/example/benavent/banco/TodosMovimientosActivity.java | UTF-8 | 1,775 | 2.09375 | 2 | [] | no_license | package com.example.benavent.banco;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Log;
import android.widget.ArrayAdapter;
import android.widget.ListView;
import com.example.benavent.banco.bd.MiBancoOperacional;
import com.example.benavent.banco.pojo.Cliente;
import co... | true |
0852f6610bae7bfe9554e1fb6d732b9ef55abd7f | Java | KingsleyYau/LiveClient | /android/QNLiveShow_independent/liveshowApp/src/main/java/com/qpidnetwork/livemodule/liveshow/pushmanager/ServiceConflictDialogActivity.java | UTF-8 | 2,687 | 2.0625 | 2 | [] | no_license | package com.qpidnetwork.livemodule.liveshow.pushmanager;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;
import com.qpidnetwork.livemodule.R;
import com.qpidnet... | true |
d929dd77d1b6f181501371be0c30c451d3f6eead | Java | youngmin-chung/Java_DesginPattern | /src/Bridge/BridgeTester.java | UTF-8 | 551 | 2.734375 | 3 | [] | no_license | package Bridge;
public class BridgeTester {
public static void main(String[] args){
RemoteButton theTV1 = new TVRemoteMute(new TVDevice(1, 200));
RemoteButton theTV2 = new TVRemoteMute(new TVDevice(1,200));
System.out.println("Test TV Muted");
theTV1.buttonFivePressed();
t... | true |
e0c882f0a8c713b1931eb3c94915552361f8edd7 | Java | exacode/flexibus | /flexibus/src/main/java/net/exacode/eventbus/dispatch/concurrent/BlockingAsyncDispatchStrategy.java | UTF-8 | 2,402 | 2.328125 | 2 | [] | no_license | /*
* Copyright (C) 2007 The Guava Authors
* Copyright (C) 2007 mendlik
*
* 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 requ... | true |
459605109b3ca151075c2904e2d4f57f89145532 | Java | iaeshliman/DBMS | /DBMS/src/aeshliman/backup/BackupPort.java | UTF-8 | 2,471 | 3.34375 | 3 | [] | no_license | package aeshliman.backup;
import java.util.Hashtable;
import java.util.Queue;
import java.util.Scanner;
import java.util.concurrent.TimeUnit;
import java.util.concurrent.locks.Lock;
import aeshliman.database.DataRepository;
import aeshliman.database.HashEntry;
/*
* Author: Isaac Aeshliman
* Date: 12/7/2020
* Descr... | true |
532ddae62968b2ebb3f370630d2a6afed68daa0c | Java | xiangyao0906/fenbitou | /app/src/main/java/com/fenbitou/adapter/HomeReconnedLiveAdapter.java | UTF-8 | 984 | 1.75 | 2 | [] | no_license | package com.fenbitou.adapter;
import android.support.annotation.Nullable;
import android.widget.ImageView;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.fenbitou.entity.HomeLiveItemEntity;
import com.fenbitou.utils.GlideUtil;
import com.fenbitou... | true |
fa5fc4804924f59134d9e5c4e62fa72580f97d75 | Java | Edwards9489/estatge-agent-system | /MSc Properties Client/src/client_gui/element/ElementDetails.java | UTF-8 | 19,534 | 2.265625 | 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 client_gui.element;
import client_application.ClientImpl;
import client_gui.AboutFrame;
import client_gui.DetailsPanel;
import... | true |
9b655b06b8dd84a1d50fe59af740aa53a4e0bb63 | Java | KillTheKingBeTheKing/Regicide | /src/com/osrs/game/model/areas/impl/PrivateArea.java | UTF-8 | 1,846 | 2.6875 | 3 | [] | no_license | package com.osrs.game.model.areas.impl;
import java.util.ArrayList;
import java.util.List;
import com.osrs.game.World;
import com.osrs.game.entity.impl.Character;
import com.osrs.game.entity.impl.npc.NPC;
import com.osrs.game.entity.impl.player.Player;
import com.osrs.game.model.Boundary;
import com.osrs.ga... | true |
9b17b904378ed1cde9a72d090e07a6bdc7366bb2 | Java | leachad/buuteeq-ponyhax | /app/src/main/java/network_power/NetworkChecker.java | UTF-8 | 2,084 | 3.1875 | 3 | [] | no_license | package network_power;
import android.content.Context;
import android.net.ConnectivityManager;
import android.net.NetworkInfo;
/**
* Created by Huy on 6/3/2015.
*/
public class NetworkChecker {
private static NetworkChecker instance = null;
/**
* Protected constructor for singleton design
*/
... | true |
aeb3757e0c7132ed82acf9d27d7f813b1b7f8dc3 | Java | Teg79/Wave | /src/main/java/com/frostwire/jlibtorrent/demo/DhtTest.java | UTF-8 | 2,453 | 2.484375 | 2 | [
"MIT"
] | permissive | package com.frostwire.jlibtorrent.demo;
import com.frostwire.jlibtorrent.AlertListener;
import com.frostwire.jlibtorrent.DHT;
import com.frostwire.jlibtorrent.Session;
import com.frostwire.jlibtorrent.TcpEndpoint;
import com.frostwire.jlibtorrent.alerts.Alert;
import com.frostwire.jlibtorrent.alerts.DhtBootstrapAlert;... | true |
eb0ebe80e7587f7bf7bca3bb02665b5015e4b3b6 | Java | RaghuRider/debuggers | /myinputManager.java | UTF-8 | 2,276 | 2.625 | 3 | [] | no_license | /*
* myinputManager.java
*
* Created on December 20, 2006, 12:10 PM
*
* To change this template, choose Tools | Template Manager
* and open the template in the editor.
*/
package mMm_game.SRC.Input;
import java.awt.event.KeyEvent;
import java.awt.event.KeyListener;
import mMm_game.SRC.Screen.StartMenu;
import ... | true |
007f32a44afd5924732bf9f1c64b640dd037b28e | Java | tomasz-rosiek/gtr | /src/test/java/pl/tzr/gumtree/test/AddressBookTest.java | UTF-8 | 3,818 | 2.640625 | 3 | [] | no_license | package pl.tzr.gumtree.test;
import org.junit.Test;
import pl.tzr.gumtree.AddressBook;
import pl.tzr.gumtree.Person;
import pl.tzr.gumtree.PersonNotFoundException;
import java.time.LocalDate;
import java.time.Month;
import java.util.Optional;
import static com.google.common.collect.Lists.newArrayList;
import static ... | true |
dc642d2beca8af039630148a0c4fd5dc806e6f2a | Java | jon44/spring-boot-mapstruct-skeleton | /SBM-API/src/main/java/cooksys/controller/ValidatedController.java | UTF-8 | 1,053 | 2.109375 | 2 | [] | no_license | package cooksys.controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import cooksys.service.ValidatedService;
@R... | true |
35cec6307ac534a4ffd9391e3b5a6996277f13e9 | Java | baghelabhishek/RestaurantApp | /src/main/java/OrderService/OrderController.java | UTF-8 | 639 | 2.328125 | 2 | [] | no_license | package OrderService;
import com.food.resturantService.Restaurant;
import com.food.resturantService.RestaurantController;
/**
* Created by hadoop on 26/01/17.
*/
public class OrderController {
private RestaurantController restaurantController;
public OrderController(RestaurantController restaurantControll... | true |
dfdf4c77e33ac8ebfe271e3d0138fcae66bbf65f | Java | JeroenW-1951880/challenge1 | /src/LiftGroupView.java | UTF-8 | 3,802 | 3.0625 | 3 | [] | no_license | import javax.swing.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.util.ArrayList;
import java.util.Observable;
import java.util.Observer;
/***
* Container class for all liftviews, main window
*
* @author Jeroen Weltens
*/
public class LiftGroupView extends JFrame implements... | true |
54ab55b0a59a0380661b7f37b016d4832001ae08 | Java | blackAllSun/sweet-home-3d-gestion-de-projet | /UndoManagerTest.java | UTF-8 | 2,584 | 3 | 3 | [
"Apache-2.0"
] | permissive | package junit;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import javax.swing.event.UndoableEditEvent;
import javax.swing.event.UndoableEditListener;
import javax.swing.undo.AbstractUndoableEdit;
import javax.swing.undo.CannotRedoException;
import javax.swing.undo.CannotUndoException;
... | true |
6ad5d624106ecb2c178b58703897551f0dfb7c41 | Java | TKFATEC/Priscila | /src/Dao/DevolucaoDao.java | UTF-8 | 4,079 | 2.53125 | 3 | [] | no_license | package Dao;
import java.awt.HeadlessException;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import javax.swing.JOptionPane;
import Entidades.Devolucao;
public class DevolucaoDao implements IDevolucaoDao
{
JTDSUtil gDao=new JTDSUtil();
Connection c = g... | true |
69eadbbf6c261491cf60500acf1eaf37c9237062 | Java | nguyendangtu/algorithm | /src/main/java/algorithm/quicksort/QuickSort.java | UTF-8 | 1,327 | 3.671875 | 4 | [] | no_license | package algorithm.quicksort;
import java.util.Arrays;
import java.util.stream.Collectors;
public class QuickSort {
public static final int[] quickSort(int[] array, int low, int high) {
if (low < high) {
int pi = partition(array, low, high);
quickSort(array, low, pi);
... | true |
42a712a929c5629cc07fe91041c46ba0eaf3b634 | Java | zhanglake/PathFinder | /src/main/java/com/zzh/dao/OrderDetailDao.java | UTF-8 | 363 | 1.65625 | 2 | [] | no_license | package com.zzh.dao;
import com.zzh.entity.OrderDetail;
import org.springframework.stereotype.Repository;
import java.util.List;
/**
* Created by zhenghua.zhang on 2018/1/15.
*/
@Repository
public interface OrderDetailDao {
void insertOne(OrderDetail orderDetail);
void insertList(List list);
List<Or... | true |
8f705d443914256a4768d4922b222ab46c10354d | Java | xa4ax2000/DatabaseProject | /src/Menu.java | UTF-8 | 44,921 | 2.75 | 3 | [] | no_license |
import java.awt.Dimension;
import java.awt.GraphicsEnvironment;
import java.awt.Toolkit;
import javax.swing.ImageIcon;
/*
* 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.
*/
/**
*
* @au... | true |
09f94c8dec7eb91414d543a48100d4bea8595fa7 | Java | SeriousIgor/Homework | /Homework11/src/User.java | UTF-8 | 44 | 1.859375 | 2 | [] | no_license | public record User(String name, int age){};
| true |
13f7d0abf23c428d7d647b7b934a292bc69200f3 | Java | samuelsmichael/IBS-Android | /app/src/main/java/com/inductivebiblestudyapp/ui/style/span/AbstractCustomBackgroundSpan.java | UTF-8 | 8,918 | 2.515625 | 3 | [] | no_license | package com.inductivebiblestudyapp.ui.style.span;
import android.graphics.Canvas;
import android.graphics.Paint;
import android.graphics.Paint.Align;
import android.os.Parcel;
import android.os.Parcelable;
import android.text.StaticLayout;
import android.text.Layout.Alignment;
import android.text.TextPaint;
import and... | true |
4a2156d07b72a6485bf946e3001b2d4211dd02a9 | Java | paullewallencom/wiremock-978-1-8392-1074-7 | /_src/Section 08/movies-app/src/test/java/com/learnwiremock/service/MoviesRestClientServerFaultTest.java | UTF-8 | 3,641 | 2.046875 | 2 | [
"MIT",
"Apache-2.0"
] | permissive | package com.learnwiremock.service;
import com.github.jenspiegsa.wiremockextension.ConfigureWireMock;
import com.github.jenspiegsa.wiremockextension.InjectServer;
import com.github.jenspiegsa.wiremockextension.WireMockExtension;
import com.github.tomakehurst.wiremock.WireMockServer;
import com.github.tomakehurst.wiremo... | true |
ac2030bfba5b2c0b34ef581f34b12dc8af025ced | Java | aykutuysal/smsspamdetector | /SpamGuard/src/com/smsspamguard/activity/SpamFromInbox.java | UTF-8 | 4,908 | 1.945313 | 2 | [] | no_license | package com.smsspamguard.activity;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.Set;
import android.app.ListActivity;
import android.content.ContentValues;
import android.database.Cursor;
import android.net.Uri;
import android.os.Bundle;
import android.util.Log;
import android.view.ContextMe... | true |
c65482f2530d79369e45cd7e574cbace3598fe71 | Java | ducnhientran/designpattern | /DesignPattern/src/designpattern/builderpattern/App.java | UTF-8 | 469 | 2.734375 | 3 | [] | no_license | package designpattern.builderpattern;
import designpattern.builderpattern.BankAccount.BankAccountBuilder;
public class App {
public static void main(String[] args) {
BankAccount account = new BankAccountBuilder()
.name("NhienTD")
.address("Quang Tri")
.accountNumber("12346789")
... | true |
73ab218f02f3aa4a48e86c0878eafedd0a81b3d7 | Java | yasminabelhadj/smartbelt | /app/src/main/java/com/example/hp/ournetwork/forgot.java | UTF-8 | 2,306 | 2.15625 | 2 | [] | no_license | package com.example.hp.ournetwork;
import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.RelativeLayout;
import an... | true |
296dc1cd9aca113ff95b16a8d1c74ffd575821b4 | Java | cybergarage/CyberToolbox4Java | /DialogEventClockPanel.java | UTF-8 | 1,350 | 2.484375 | 2 | [] | no_license | /******************************************************************
*
* CyberToolBox for Java
*
* Copyright (C) Satoshi Konno 1998
*
* File: DialogEventClockPanel.java
*
******************************************************************/
import java.awt.*;
import javax.swing.*;
import javax.swing.border.*;
... | true |
cc46d24b1144b48a70b9d3fd5137b384c10740b7 | Java | chenhuang511/ejbca-custom-ui | /modules/systemtests/src/org/ejbca/ui/web/pub/cluster/WebOcspHealthCheckTest.java | UTF-8 | 2,207 | 2.25 | 2 | [] | no_license | package org.ejbca.ui.web.pub.cluster;
import java.net.URL;
import org.apache.log4j.Logger;
import com.gargoylesoftware.htmlunit.WebClient;
import com.gargoylesoftware.htmlunit.WebConnection;
import com.gargoylesoftware.htmlunit.WebRequestSettings;
import com.gargoylesoftware.htmlunit.WebResponse;
/**
*
* @version... | true |
468b7f6ffde03c219851cfbe894543be805ec1f3 | Java | ukiras123/JavaDeckOfCard | /src/com/kiran/deckoOfCard/Driver.java | UTF-8 | 426 | 3.03125 | 3 | [] | no_license | package com.kiran.deckoOfCard;
/**
* Driver class for some testing
*
* @author Kiran
* @version 1.0 May 1, 2017
*/
public class Driver {
public static void main(String[] args) throws Exception {
DeckOfCards player1 = new DeckOfCards();
DeckOfCards player2 = new DeckOfCards();
System.out.println(player1.d... | true |
89a21f5047000c55eb298b41aa11d8dea5ae0ae0 | Java | tcthanu/learningJava | /sample/src/sample/ThreadDemo.java | UTF-8 | 519 | 3 | 3 | [] | no_license | package sample;
public class ThreadDemo {
public static void main(String[] args) {
Thread t1 = new MyThread();
Thread t2 = new Thread(new MyRunnable("t1"));
System.out.println("T 1 State" + t1.getState());
System.out.println("T 2 State" + t2.getState());
t1.start();
System.out.println("T 1 State" + t1.get... | true |
ae4992b81d63bd69b9a528241088c853493a647e | Java | theosotr/async-tajs | /test/src/dk/brics/tajs/test/TestNoFlowNodeInsertion.java | UTF-8 | 3,640 | 2.359375 | 2 | [
"Apache-2.0"
] | permissive | package dk.brics.tajs.test;
import dk.brics.tajs.Main;
import dk.brics.tajs.flowgraph.AbstractNode;
import dk.brics.tajs.flowgraph.BasicBlock;
import dk.brics.tajs.flowgraph.FlowGraph;
import dk.brics.tajs.flowgraph.jsnodes.AssumeNode;
import dk.brics.tajs.flowgraph.jsnodes.ConstantNode;
import dk.brics.tajs.options.O... | true |
be1daba06143b5416cd2e0c9aa2054979f214346 | Java | RaeanneVillanueva/Music-Player | /src/dao/AccountPlaylistDAOFactory.java | UTF-8 | 187 | 1.84375 | 2 | [] | no_license | package dao;
public class AccountPlaylistDAOFactory extends DAOFactory {
@Override
protected DataAccessObject createDAO() {
return new AccountPlaylistDAO(this);
}
}
| true |
e14ba0ed1e6173efd3a34d343a963195ed9f2763 | Java | npathai/unobtainium | /src/main/java/org/unobtanium/Context.java | UTF-8 | 401 | 2.53125 | 3 | [] | no_license | package org.unobtanium;
import java.util.concurrent.ConcurrentHashMap;
public class Context {
private ConcurrentHashMap<String, Object> contextInformation = new ConcurrentHashMap<>();
@SuppressWarnings("unchecked")
public <T> T get(String key) {
return (T) contextInformation.get(key);
}
public void se... | true |
3710e03cf2282a106fb16c365fd2ba647ca202c2 | Java | AnuradhaMishra/Banking-App | /src/main/java/com/projectzero/bms/Login/LoginCustomer.java | UTF-8 | 4,983 | 2.734375 | 3 | [] | no_license | package com.projectzero.bms.Login;
import java.util.Date;
import java.util.List;
import java.util.Scanner;
import org.apache.log4j.Logger;
import com.projectzero.bms.App.BankApp;
import com.projectzero.bms.dao.*;
import com.projectzero.bms.model.*;
public class LoginCustomer extends LoginCustomerPrompt {
int choi... | true |
32420044e03427d1fa64d1c31442514e68e6b010 | Java | wangruipeng-wrp/algorithm-and-data-structure | /src/Sort/QuickSortByThreeWays.java | UTF-8 | 1,379 | 3.34375 | 3 | [] | no_license | package Sort;
import Sort.util.ArrayGenerate;
import Sort.util.ISort;
import Sort.util.SortingHelper;
import java.util.Random;
/**
* 三路快速排序
*/
public class QuickSortByThreeWays implements ISort {
private final Random random = new Random();
@Override
public <T extends Comparable<T>> void sort(T[] arr)... | true |
2367d024417bcf9a17eb0a72f7d6b93c36a40c2a | Java | yangyanbin521/xiaoyelang | /lang-server/src/main/java/com/xiaoyelang/service/RoleService.java | UTF-8 | 319 | 1.75 | 2 | [] | no_license | package com.xiaoyelang.service;
import com.xiaoyelang.model.User;
import java.util.Set;
/**
* @ClassName LoginService
* @Author 杨彦斌
* @Date 2019/9/20 10:52
*登录验证 ,注册
* 此接口对于登录验证操作的接口
*/
public interface RoleService {
Set<String> selectRoleKeys(Integer id);
}
| true |
e8026c882b48e22a6cd02fb318d305d9faea25a5 | Java | AiMiKidass/LostProject | /app/src/main/java/com/example/alex/newtestproject/view/RedAlertTextView.java | UTF-8 | 1,952 | 2.34375 | 2 | [] | no_license | package com.example.alex.newtestproject.view;
import android.content.Context;
import android.graphics.Color;
import android.text.SpannableString;
import android.text.Spanned;
import android.text.TextPaint;
import android.text.style.ClickableSpan;
import android.util.AttributeSet;
import android.view.View;
import andro... | true |
5701cc8093da8761f191941b17bff3b635b59214 | Java | tadckle/rcp | /rcp3/rcp3.study/src/rcp3/study/nebula/GridTableViewerUsage.java | UTF-8 | 3,242 | 2.421875 | 2 | [] | no_license | package rcp3.study.nebula;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import org.eclipse.nebula.jface.gridviewer.GridTableViewer;
import org.eclipse.nebula.jface.gridviewer.GridViewerColumn;
import org.eclipse.nebula.widgets.grid.Grid;
import org.eclipse.nebula.widgets.grid.GridColumn... | true |
b42ccba229f2ffbe0ef988dbdede8483a566e60c | Java | maysis175/le4m | /RecogChord.java | UTF-8 | 9,691 | 2.25 | 2 | [] | no_license | import java.io.File;
import java.util.Arrays;
import java.util.stream.Collectors;
import java.util.stream.Stream;
import java.util.stream.IntStream;
import javax.sound.sampled.AudioSystem;
import javax.sound.sampled.AudioFormat;
import javax.sound.sampled.AudioInputStream;
import javafx.application.Application;
import... | true |
4e9799cb21d1ab28bf21ab39ff359e1ef6935086 | Java | luisalvaran17/TPS | /src/vista/ArticuloVista.java | UTF-8 | 17,973 | 2.046875 | 2 | [] | no_license | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package vista;
import javax.swing.JOptionPane;
import logica.ArticuloLogica;
import modelo.Articulo;
import persistencia.ArticuloJpaCo... | true |
e21a099d67f05d031a107517c1cad0396f5db67f | Java | samkirton/blackberry-sqlite-parser | /src/com/sqlite/parser/entry/EntryPoint.java | UTF-8 | 3,674 | 2.84375 | 3 | [] | no_license | package com.sqlite.parser.entry;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;
import com.sqlite.parser.generate.AndroidModelFile;
import com.sqlite.parser.generate.BlackBerryModelFile;
import com.sqlite.parser.parse.SQLParser;
import com.sqlite.parser.parse.SQLSchemaObjectR... | true |
1cb31bd8a88beafb8083ea033b6a84647ab3915f | Java | muststudypros/tmall_ssm | /tmall-common/src/main/java/com/tmall/common/enums/SellerEnums.java | UTF-8 | 718 | 2.359375 | 2 | [] | no_license | package com.tmall.common.enums;
public enum SellerEnums
{
FOUNDER(0,"创始人"),
//seller的状态
ALLOWED(10,"账户可用"),
DISABLE(11,"店铺已被封,账户被禁止登陆"),
;
private Integer code;
private String description;
public Integer getCode()
{
return code;
}
public void setCode(Integer code... | true |
8c78d743124bea456d0756cd196bcb02d6d6f52c | Java | victators/Springlight | /Ch47_ArrayAlgs/src/nearlyZero.java | UTF-8 | 489 | 3.6875 | 4 | [] | no_license | import java.io.*;
class NearlyZero {
public static void main(String[] args) {
int[] data = { 3, -1, 5, 7, 4, 12, -3, 8, -2 };
// declare and initialize variables
int close = Math.abs(data[0] - 0);
int index = 0;
// find the element nearest to zero
for (int i = 0; i < data.length; i++) {
if (Math.abs... | true |
200f0baca099648fd8af121b5788099ff58c1ced | Java | GS-LRY/MobilePoliceServer | /src/main/java/tlkj/util/OneMoreFunction.java | UTF-8 | 675 | 2.265625 | 2 | [] | no_license | package tlkj.util;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;
import org.springframework.web.context.request.RequestContextHolder;
import org.springframework.web.context.request.ServletRequestAttributes;
import tlkj.model.User;
public class OneMoreFunction {
HttpServletReq... | true |
459653a692007aa048da0d3e81df4d4f6c51466b | Java | bfarr-rh/daytrader | /modules/webservice/src/main/java/org/apache/geronimo/samples/daytrader/MarketSummaryDataBeanWS.java | UTF-8 | 5,046 | 2.03125 | 2 | [
"Apache-2.0"
] | permissive |
package org.apache.geronimo.samples.daytrader;
import java.math.BigDecimal;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlSchemaType;
import javax.xml.bind.annotation.XmlType;
import ja... | true |
12e92062145c3fea46e428104427df97c93a94e5 | Java | boollu/carbutlersystem | /src/com/cbs/action/RepairRecAction.java | UTF-8 | 2,813 | 1.78125 | 2 | [] | no_license |
package com.cbs.action;
import java.util.List;
import java.util.Map;
import com.cbs.po.*;
import com.cbs.service.ICarService;
import com.cbs.service.ICurrentUnitService;
import com.cbs.service.IDictionaryService;
import com.cbs.service.IDriverService;
import com.cbs.service.IRepairRecService;
import com.cbs.util.P... | true |
2b23dda9058b2957889418e4fe7d2a9900957fce | Java | rafaelsales/ArqueiroMedieval | /src/input/MouseManager.java | UTF-8 | 1,838 | 2.890625 | 3 | [] | no_license | package input;
import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;
import java.awt.event.MouseMotionListener;
import java.util.ArrayList;
import java.util.List;
/**
*
*/
public class MouseManager implements MouseMotionListener, MouseListener {
private static MouseManager instancia;... | true |
b686db645dd40e8dc0fe8790acf45d48a623e04d | Java | tmdues/TipWidgetLight | /com.tipwidget.light/src/com/tipwidget/light/CalculatorActivity.java | UTF-8 | 17,389 | 2.203125 | 2 | [] | no_license | package com.tipwidget.light;
import java.text.DecimalFormat;
import com.tipwidget.light.R;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
impo... | true |
2a5e32ca9dbb3fb10d8dc96ff54eb383a1b32b0b | Java | rafael-ortega/api-mutant | /src/test/java/com/mercadolibre/mutant/mutant/MutantSequenceTest.java | UTF-8 | 1,146 | 2.375 | 2 | [] | no_license | package com.mercadolibre.mutant.mutant;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.*;
class MutantSequenceTest {
String[] dnaA = {"ATGCGA","CAGTGC","TTATGT","AGAAGG","CCCCTA","TCACTG"};
@BeforeEach
void setUp() {
}
... | true |
84d029cd9ffcfd1991e33d73b31d4d2747d8140e | Java | wubiao6668/fellow | /fellow-web/src/main/java/com/fellow/web/controller/myCenter/SystemMessageController.java | UTF-8 | 12,569 | 2 | 2 | [] | no_license | package com.fellow.web.controller.myCenter;
import com.fellow.domain.constant.SystemConstant;
import com.fellow.common.util.VelocityUtil;
import com.fellow.domain.enums.ContentTypeEnum;
import com.fellow.domain.enums.MessageTypeEnum;
import com.fellow.domain.enums.SystemMessageStatusEnum;
import com.fellow.domain.enum... | true |
1d899ae4507c22b1a03ffad6a88649739648d5c3 | Java | 791837060/FastMap | /engine/engine-edit/src/main/java/com/navinfo/dataservice/engine/edit/operation/topo/breakin/breakzonepoint/Process.java | UTF-8 | 3,154 | 2.109375 | 2 | [] | no_license | package com.navinfo.dataservice.engine.edit.operation.topo.breakin.breakzonepoint;
import java.sql.Connection;
import java.util.List;
import com.navinfo.dataservice.dao.glm.iface.ObjStatus;
import com.navinfo.dataservice.dao.glm.iface.Result;
import com.navinfo.dataservice.dao.glm.model.ad.zone.ZoneFace;
impo... | true |
f9566477a239eab9be322de5d596089e9c5ce814 | Java | mbarberot/fotostep | /fotostep/fotostepEJB/src/main/java/business/UserSessionLocal.java | UTF-8 | 378 | 2.171875 | 2 | [] | no_license | package business;
import business.model.database.User;
import javax.ejb.Local;
/**
* Interface locale de manipulation du bean UserSession
*
* @author Mathieu Barberot
*/
@Local
public interface UserSessionLocal
{
public void setUser(User u);
public String getUserFirstName();
public String getUserLas... | true |
261cbab218c38d6121dda75618ed69f9acbc69b3 | Java | abiem/mayo-android | /app/src/main/java/com/mayo/classes/CardsDataModel.java | UTF-8 | 19,904 | 2.109375 | 2 | [] | no_license | package com.mayo.classes;
import android.content.Context;
import android.graphics.drawable.Drawable;
import android.os.CountDownTimer;
import android.util.Log;
import com.google.android.gms.maps.model.LatLng;
import com.google.android.gms.maps.model.Marker;
import com.mayo.R;
import com.mayo.Utility.CommonUtility;
im... | true |
f63c5a5568a0b4773c6d435ad9c73e8b5d6465cf | Java | zhongxingyu/Seer | /Diff-Raw-Data/32/32_29ea157545c119ff760755633dd37155b3c7fff2/Vorxel/32_29ea157545c119ff760755633dd37155b3c7fff2_Vorxel_t.java | UTF-8 | 1,514 | 2.53125 | 3 | [] | no_license | package misson20000.api.vorxel;
import org.lwjgl.LWJGLException;
import org.lwjgl.opengl.Display;
import org.lwjgl.opengl.DisplayMode;
import org.lwjgl.opengl.GL11;
import pitzik4.geode.Geode;
public class Vorxel {
private static Geode game;
public static void init(Settings set, Geode gamep) {
gam... | true |
5229c01511fcb9b84fde4148617a18b0cb7bd15b | Java | edo-vi/ER | /src/main/java/System/InterfaceFactories/DOCInterfaceFactory/DOCSearchResult.java | UTF-8 | 278 | 2.234375 | 2 | [] | no_license | package System.InterfaceFactories.DOCInterfaceFactory;
public class DOCSearchResult implements DOCInterface {
private String file;
public DOCSearchResult() {
this.file = "/D_Search2.fxml";
}
public String getFile() {
return this.file;
}
}
| true |
92fea277c03d0645545b08a7e3e31b187f673550 | Java | FazalJarral/LeArn | /app/src/main/java/com/example/learn/Fragment/HomeFragment.java | UTF-8 | 8,765 | 1.828125 | 2 | [] | no_license | package com.example.learn.Fragment;
import android.content.Context;
import android.net.Uri;
import android.os.Bundle;
import android.util.Log;
import android.view.Gravity;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Toast;
import androidx.annotati... | true |
4ebbda4f96ccf98867de5fcc1d723c4000abb275 | Java | springwindyike/mall-project | /mall-core/src/main/java/com/ishare/mall/core/exception/ArticeServiceException.java | UTF-8 | 1,027 | 2.0625 | 2 | [] | no_license | package com.ishare.mall.core.exception;
import com.ishare.mall.common.base.exception.BaseException;
/**
*
* @author zhangzhaoxin
*
*/
public class ArticeServiceException extends BaseException {
/**
* 系统日志
*/
private static final long serialVersionUID = 1L;
public ArticeServiceException(String sy... | true |
d069836d65b2bbb99731c6b3bbbc1d3bff05ae60 | Java | luigi-agosti/DebugDrawer | /debugdrawer-timber/src/main/java/io/palaima/debugdrawer/timber/TimberModule.java | UTF-8 | 1,120 | 1.953125 | 2 | [
"Apache-2.0"
] | permissive | package io.palaima.debugdrawer.timber;
import android.support.annotation.NonNull;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import io.palaima.debugdrawer.base.DebugModule;
import io.palaima.debugdrawer.timber.ui.LogDialog;
public class TimberModule implements DebugM... | true |
06a7b36d8ae7ea465f216956223962386b0f2e95 | Java | zhongxingyu/Seer | /Diff-Raw-Data/13/13_10de278a6ff596e23c010070f78a1baaedf7d5e1/DisplayWindow/13_10de278a6ff596e23c010070f78a1baaedf7d5e1_DisplayWindow_t.java | UTF-8 | 6,204 | 2.921875 | 3 | [] | no_license | /*
* Copyright (C) 2014 David McInnis
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This progra... | true |
795e170b9437c1dffbd8112ee0a795ff67e8f69b | Java | ithansiyeon/material | /class/java/JavaTest/src/com/test/io/Ex43_Directory_question_02.java | UTF-8 | 749 | 3.390625 | 3 | [] | no_license | package com.test.io;
import java.io.File;
import java.util.Scanner;
public class Ex43_Directory_question_02 {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
System.out.print("폴더 선택 : ");
String path = scan.nextLine();
System.out.print("파일 확장자 : ");
String extension = scan.n... | true |
9df8a5b88ebc608aa4f89fc184529ad66fc05330 | Java | gcamposdcc/EmpathicSystem | /DevLib/src/gcampos/dev/interfaces/structural/IClassGetter.java | UTF-8 | 149 | 2.234375 | 2 | [] | no_license | package gcampos.dev.interfaces.structural;
public interface IClassGetter<TargetType, PropertyType> {
public PropertyType get(TargetType t);
}
| true |
52e84db78a664c88a784146631d41e31698b29d7 | Java | piotrmbednarczyk/transfer-application | /src/main/java/com/piotrbednarczyk/ta/service/TransactionService.java | UTF-8 | 5,050 | 2.5 | 2 | [] | no_license | package com.piotrbednarczyk.ta.service;
import com.piotrbednarczyk.ta.model.Account;
import com.piotrbednarczyk.ta.model.Transaction;
import com.piotrbednarczyk.ta.service.error.TransactionException;
import io.ebean.EbeanServer;
import io.ebean.annotation.Transactional;
import org.slf4j.Logger;
import javax.inject.In... | true |
53f233c23caad84cf2936de0ef182d026ed69f46 | Java | mommi84/metric-learning | /metric-learning/src/acids2/plot/Svm3D.java | UTF-8 | 6,723 | 2.28125 | 2 | [] | no_license | package acids2.plot;
import java.util.TreeSet;
import libsvm.svm_model;
import libsvm.svm_node;
import libsvm.svm_parameter;
import libsvm.svm_problem;
import org.jzy3d.chart.Chart;
import org.jzy3d.chart.ChartLauncher;
import org.jzy3d.colors.Color;
import org.jzy3d.colors.ColorMapper;
import org.jzy3d... | true |
036199cb463b348409231dee67f038ef002faafb | Java | shanhunguao/crm | /ykhd-bms/src/main/java/com/ykhd/office/service/impl/RoleService.java | UTF-8 | 3,994 | 2.109375 | 2 | [] | no_license | package com.ykhd.office.service.impl;
import java.util.List;
import java.util.stream.Collectors;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.util.Assert;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
im... | true |
cda3859f10a0767e522bc1caa1eb5129537089ce | Java | emillindblad/GruProg-TDA548 | /week2/src/samples/ObjectArrMeth.java | UTF-8 | 2,267 | 4.40625 | 4 | [] | no_license | package samples;
import java.util.Scanner;
import static java.lang.System.in;
import static java.lang.System.out;
/*
* Using methods with parameters or return types of array of class objects.
*/
public class ObjectArrMeth {
public static void main(String[] args) {
new ObjectArrMeth().program();
}... | true |
a8c795e20d613061bd2f036469f9f0f85c1add4b | Java | Vishal2march/LDGrants | /src/gov/nysed/oce/ldgrants/grants/common/dao/GrantSubmissionDao.java | UTF-8 | 10,176 | 2.09375 | 2 | [] | no_license | package gov.nysed.oce.ldgrants.grants.common.dao;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import java.util.Map;
import org.springframework.jdbc.core.BeanPropertyRowMapper;
import gov.nysed.oce.ldgrants.grants.common.domain.Grant;
import gov.nysed.oce.ldg... | true |
055b2a85e3bdeffa9ff9a4fa8b30121cc58b1574 | Java | giannismakro/FIDO_UAF_Intergration_with_OpenID | /fido_uaf_library-main/fido_uaf_library-main/fido-uaf-server/src/test/java/eu/unipi/fidouafsvc/ops/RegistrationRequestGenerationTest.java | UTF-8 | 1,556 | 2.140625 | 2 | [
"MIT"
] | permissive | package eu.unipi.fidouafsvc.ops;
import com.google.gson.Gson;
import org.bouncycastle.util.encoders.Base64;
import eu.unipi.fido.uaf.crypto.Notary;
import eu.unipi.fido.uaf.msg.RegistrationRequest;
import org.junit.Ignore;
import org.junit.Test;
import static org.junit.Assert.assertNotNull;
import static org.junit.As... | true |
a490884a633c4eb354aec2c05f40e26f43b606ce | Java | dabliuw22/sb-microservice-book | /src/main/java/com/leysoft/app/repository/BookReposioty.java | UTF-8 | 202 | 1.671875 | 2 | [] | no_license | package com.leysoft.app.repository;
import org.springframework.data.repository.CrudRepository;
import com.leysoft.app.entity.Book;
public interface BookReposioty extends CrudRepository<Book, Long> {} | true |
03ff621ee87db4aa49219c433d9a50fe87417d59 | Java | Facebook-Governance/AutomationFramework | /APITestSuite/src/main/java/com/yodlee/yodleeApi/helper/JwtHelper.java | UTF-8 | 11,035 | 1.929688 | 2 | [] | no_license |
/*******************************************************************************
*
* * Copyright (c) 2020 Yodlee, Inc. All Rights Reserved.
*
* *
*
* * This software is the confidential and proprietary information of Yodlee, Inc.
*
* * Use is subject to license terms.
*
***************************... | true |
30fa4a2ba0c294af7df92e727435755583281972 | Java | Garibel-Lee/NJWB_OA | /src/com/lcqjoyce/entity/Menu.java | UTF-8 | 336 | 1.679688 | 2 | [] | no_license | package com.lcqjoyce.entity;
import lombok.Data;
import java.time.LocalDate;
/**
* <p>
*
* </p>
*
* @author mybatis-plus
* @since 2020-03-13
*/
@Data
public class Menu {
private Integer id;
private String menuName;
private String hrefUrl;
private Integer parentId;
private LocalDate ... | true |
be5678b13588b77ffa8eae38129bd86fae4c9cd8 | Java | kingraser/leetcode | /src/leetcode/ClosestBinarySearchTreeValueII.java | UTF-8 | 2,087 | 3.5625 | 4 | [] | no_license | package leetcode;
import static leetcode.common.TreeNode.tree;
import static org.junit.Assert.assertEquals;
import java.util.Arrays;
import java.util.LinkedList;
import java.util.List;
import java.util.Objects;
import java.util.Stack;
import org.junit.Test;
import leetcode.common.TreeNode;
public class ClosestBina... | true |
29ef3e2cee7486666693cde1ecc0da3c4212e925 | Java | youtakeoff01/poseidon | /psdon-web/src/main/java/com/hand/bdss/web/common/util/ConfigIOUtils.java | UTF-8 | 4,757 | 2.671875 | 3 | [] | no_license | package com.hand.bdss.web.common.util;
import java.io.BufferedInputStream;
import java.io.BufferedOutputStream;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.FileWriter;
import java.io.IOExceptio... | true |
da2b6922b31deedde322e327556c6d8d5c58c536 | Java | GaloisInc/formal-methods-workbench | /tools/case/architecture.plugin/src/com/collins/fmw/cyres/architecture/requirements/AddFilterClaim.java | UTF-8 | 1,531 | 2.109375 | 2 | [
"LicenseRef-scancode-other-permissive",
"BSD-3-Clause"
] | permissive | package com.collins.fmw.cyres.architecture.requirements;
import java.util.ArrayList;
import java.util.List;
import org.osate.aadl2.NamedElement;
import org.osate.aadl2.PortConnection;
import org.osate.aadl2.Subcomponent;
import com.rockwellcollins.atc.resolute.resolute.Arg;
import com.rockwellcollins.atc.resolute.re... | true |
d7221d5780f157530ada0d307c60d79975251358 | Java | TusharSri/loginApp | /app/src/main/java/com/example/apple/amazon/Activity/SplashActivity.java | UTF-8 | 1,453 | 2.015625 | 2 | [] | no_license | package com.example.apple.amazon.Activity;
import android.content.Intent;
import android.os.Handler;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.Window;
import android.view.WindowManager;
import android.view.animation.Animation;
import android.view.animation.Animation... | true |
66c47d1edcb334c52141dcf33c7af2ad4a0d2b42 | Java | Graffica/lwjgl3 | /src/core/org/lwjgl/system/MemoryAccess.java | UTF-8 | 12,302 | 2.453125 | 2 | [] | no_license | /*
* Copyright LWJGL. All rights reserved.
* License terms: http://lwjgl.org/license.php
*/
package org.lwjgl.system;
import org.lwjgl.LWJGLUtil;
import java.lang.reflect.Field;
import java.lang.reflect.Modifier;
import java.nio.*;
import static org.lwjgl.system.MemoryUtil.*;
/**
* Provides 4 MemoryAccessor imp... | true |
df0dcdad4e18d1e90dcbc85cdbecb71a07828450 | Java | Jonathan-Ngondi/newsapiD3 | /app/src/main/java/com/example/newsapid3/utils/ButterKnifeUtils.java | UTF-8 | 485 | 2.328125 | 2 | [] | no_license | package com.example.newsapid3.utils;
import butterknife.Unbinder;
import timber.log.Timber;
/**
* @author Mugiwara_Munyi
* @date 13/06/2019
*/
public class ButterKnifeUtils {
private ButterKnifeUtils(){
}
public static void unbind(Unbinder unbinder){
if(unbinder !=null){
try{
... | true |
3eb0e50b688d860a5450b2a84a409badcee00bdd | Java | AlexDudarov/1 | /web/src/main/java/gmail/alexdudarkov/sportshop/servlet/administration/AdminAddTypeGoodsServlet.java | UTF-8 | 1,191 | 2.203125 | 2 | [] | no_license | package gmail.alexdudarkov.sportshop.servlet.administration;
import gmail.alexdudarkov.sportshop.service.TypeGoodServiceImpl;
import gmail.alexdudarkov.sportshop.service.model.TypeGoodDTO;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
impor... | true |
0859ff1aea74ed0b75f840c2b59c95dcd6457984 | Java | IEclipseI/refactoring | /src/main/java/ru/akirakozov/sd/refactoring/service/ProductService.java | UTF-8 | 514 | 2.15625 | 2 | [] | no_license | package ru.akirakozov.sd.refactoring.service;
import ru.akirakozov.sd.refactoring.model.Product;
import java.util.Collection;
import java.util.List;
public interface ProductService {
void createTableIfNotExists();
List<Product> getAllProducts();
Product getProductWithBiggestPrice();
Product getProduc... | true |
3e568a781f4551549a918f1b500f53e45efa50cc | Java | ThalitaProgramadora/Mysql-springBoot | /spring boot/lojadegamesThalita/src/main/java/com/GrupoDurval/lojadegamesThalita/controller/CategoriaController.java | UTF-8 | 2,144 | 2.109375 | 2 | [] | no_license | package com.GrupoDurval.lojadegamesThalita.controller;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springfr... | true |
b57bf751aeb8abaf22232a18cfec16ec8e43a63f | Java | dingyongkang/study2021 | /eleme-goods/src/main/java/com/qf/adminshopcontroller/AdminShopController.java | UTF-8 | 1,207 | 2 | 2 | [] | no_license | package com.qf.adminshopcontroller;
import com.qf.admingoodsservice.AdminGoodsService;
import com.qf.adminshopservice.AdminShopService;
import com.qf.pojo.Goods;
import com.qf.pojo.Shop;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import java.util.L... | true |
7bf8b708a42ca3721d3cc3039b241471a3ffd9c9 | Java | mohitrajvardhan17/java1.8.0_151 | /com/sun/org/apache/xpath/internal/functions/FuncPosition.java | UTF-8 | 2,446 | 1.875 | 2 | [] | no_license | package com.sun.org.apache.xpath.internal.functions;
import com.sun.org.apache.xml.internal.dtm.DTMIterator;
import com.sun.org.apache.xml.internal.utils.WrappedRuntimeException;
import com.sun.org.apache.xpath.internal.XPathContext;
import com.sun.org.apache.xpath.internal.axes.SubContextList;
import com.sun.org.apac... | true |
425305603053c093322e6f2f988eacfa04ed2aa6 | Java | yumanman/mandy-springCloud | /config-client/src/main/java/com/mandy/learn/configClient/ConfigClientApplication.java | UTF-8 | 1,063 | 2.21875 | 2 | [] | no_license | package com.mandy.learn.configClient;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cl... | true |