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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
7b1f3547f8dd557640701dc038ee31c2c8b9a802 | Java | aarthiarun/algorithm | /src/test/java/org/practise/algorithm/leetcode/tree/hard/RecoverBinarySearchTreeTest.java | UTF-8 | 687 | 2.515625 | 3 | [] | no_license | package org.practise.algorithm.leetcode.tree.hard;
import org.practise.algorithm.pojo.TreeNode;
import org.testng.annotations.Test;
import static org.testng.Assert.*;
public class RecoverBinarySearchTreeTest {
private RecoverBinarySearchTree obj = new RecoverBinarySearchTree();
@Test
public void testReco... | true |
16130dbf9ba0a7f7dc8a6af7d68f47c2faa0ef96 | Java | Aya-Ayman/Consolto | /app/src/main/java/com/codesignet/consalto/medical_service_details/view/PhoneCallInterface.java | UTF-8 | 261 | 1.78125 | 2 | [] | no_license | package com.codesignet.consalto.medical_service_details.view;
import android.content.Context;
/**
* Created by Hagar on 03/06/2018.
*/
public interface PhoneCallInterface {
void askForPermission(String permission, Integer requestCode, Context context);
}
| true |
97c8f996c63c239ef0ae857e0fcc5a49806511bf | Java | tur-ing/gg-probe | /shop-gg/src/main/java/de/gg/TableController.java | UTF-8 | 949 | 2.21875 | 2 | [] | no_license | package de.gg;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod... | true |
27a50bcd3376b7e1a20b1b9dc7e605c0e269f13e | Java | amvince/Byrne7688-2020 | /ColourWheel/src/main/java/frc/robot/commands/spinCounter.java | UTF-8 | 2,543 | 2.5625 | 3 | [
"MIT"
] | permissive | /*----------------------------------------------------------------------------*/
/* Copyright (c) 2019 FIRST. All Rights Reserved. */
/* Open Source Software - may be modified and shared by FRC teams. The code */
/* must be accompanied by the FIRST BSD license file in the root directory of... | true |
8849e8567795d7adf60f3520f8875bb265682bbd | Java | anakiou/PiControl | /app/src/main/java/anakiou/com/picontrol/dao/EventLogDAO.java | UTF-8 | 4,003 | 2.234375 | 2 | [] | no_license | /*
* Copyright 2016 . Anargyros Kiourkos.
*
* 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 la... | true |
321a2a31c0d739cdd9690c9a46465ef860e1ed1b | Java | enw860/MyProject | /JavaApp/MyTable/MyTable_final/src/frontend/EditBill.java | UTF-8 | 10,616 | 2.40625 | 2 | [] | no_license | package frontend;
import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;
import java.io.IOException;
import java.math.BigDecimal;
import javax.swing.*;
import javax.swing.event... | true |
dada24c689223823d9f7cda666055d245dc009b2 | Java | cckmit/astrobee_gds | /gov.nasa.arc.verve.utils.rapid/src/gov/nasa/arc/verve/utils/rapid/RapidVerve.java | UTF-8 | 6,805 | 2.015625 | 2 | [
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | /*******************************************************************************
* Copyright (c) 2013 United States Government as represented by the
* Administrator of the National Aeronautics and Space Administration.
* All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"... | true |
ef46d42c6efe2b7f97969dcabad55fca07c2cf63 | Java | glenn-auld/and-digital-challenge | /src/test/java/com/anddigital/challenge/builder/CustomerBuilder.java | UTF-8 | 1,019 | 2.796875 | 3 | [] | no_license | package com.anddigital.challenge.builder;
import com.anddigital.challenge.domain.Customer;
import com.anddigital.challenge.domain.PhoneNumber;
import java.util.Set;
/**
* Builder for Customer objects
*/
public class CustomerBuilder {
private Long id;
private String firstName;
private String lastName;
... | true |
9ac35fd0cf9167721ba4a6be5ba8d929ff2163dd | Java | mrMgt/JLM | /src/main/java/vn/hackathon/likeme/repository/PokeHistoryRepository.java | UTF-8 | 330 | 1.59375 | 2 | [] | no_license | package vn.hackathon.likeme.repository;
import org.springframework.data.mongodb.repository.MongoRepository;
import vn.hackathon.likeme.entity.Buddy;
import vn.hackathon.likeme.entity.PokeHistory;
/**
* Created by linhnd on 2016/10/20.
*/
public interface PokeHistoryRepository extends MongoRepository<PokeHistory,Str... | true |
cb8f24e933c12b7759b9530560f0e100fc7204c7 | Java | LXiong/SmartBird | /SmartBirdEngine/src/main/java/org/smartbirdpj/engine/controller/PointCalculator.java | UTF-8 | 11,057 | 2.15625 | 2 | [] | no_license | package org.smartbirdpj.engine.controller;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
import java.util.logging.Logger;
import org.smartbirdpj.engine.validator.ChantaValidator;
import org.smartbirdpj.engine.validator.ChiToitsuValidator;
import org.smartbirdpj.engine.validator.Chinits... | true |
7753572155607f6cbe4e785b8f08c9a157b7577c | Java | nmhoang2909/AppiumCucumber | /src/test/java/modules/SimpleModule.java | UTF-8 | 782 | 2.28125 | 2 | [] | no_license | package modules;
import helper.CommonFunctions;
import io.appium.java_client.AppiumDriver;
import objects.SimplePage;
import org.junit.Assert;
/**
* Created by Hoang on 5/9/17.
*/
public class SimpleModule extends SimplePage {
public SimpleModule(AppiumDriver driver) {
super(driver);
}
public ... | true |
9356e5e701b8cde777f4d865d7f4deaa186ea8c2 | Java | damianprog/allbooks-webservice-client | /src/main/java/com/allbooks/webapp/utils/readerbook/ReaderBooksForMyBooksGetter.java | UTF-8 | 1,589 | 2.328125 | 2 | [] | no_license | package com.allbooks.webapp.utils.readerbook;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Page;
import org.springframework.stereotype.Component;
import com.allbooks.webapp.entity.ReaderBook;
import com.allbooks.webapp.enumeration.ShelvesState;
import com.allbo... | true |
a2ca1f2ef833e5adbb22288caaa8f8e030c6b7bb | Java | zhongxingyu/Seer | /Diff-Raw-Data/5/5_d697ffa687b4edbcac4dc992f73c818f0fd32cc8/PollingODObject/5_d697ffa687b4edbcac4dc992f73c818f0fd32cc8_PollingODObject_t.java | UTF-8 | 1,474 | 2.453125 | 2 | [] | no_license | package com.novel.odisp.common;
import java.util.List;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.regex.Pattern;
/**
* ODISP.
* @author .
* @author () 2003, "-"
* @version $Id: PollingODObject.java,v 1.10 2003/11/27 00:26:51 valeks Exp $
*/
public abstract class P... | true |
dcd6508b5f73c31aa95348ddf0ce0b5b9be3e55f | Java | sks40gb/zunk | /base/struts1.3_hibernate/src/java/com/sun/web/filter/StrutsHibernateRequestFilter.java | UTF-8 | 2,273 | 2.40625 | 2 | [] | no_license | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.sun.web.filter;
import com.sun.hibernate.Dao.IBaseHibernateDAO;
import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.Http... | true |
4e22408a8d36d5bae747fb39178ff3224d7e8ae6 | Java | pranithavangala/guttmanlab-capture | /src/capture/filter/PolyBaseFilter.java | UTF-8 | 3,711 | 2.375 | 2 | [] | no_license | package capture.filter;
import java.util.Collection;
import java.util.List;
import org.apache.log4j.Logger;
import broad.core.primer3.PrimerPair;
import nextgen.core.pipeline.ConfigFileOptionValue;
import capture.OligoPool;
import capture.Probe;
import capture.ProbeSet;
/**
* @author prussell
* Filter probes w... | true |
6d3c202634df9315ae8fa7e87b44f5ef55225fa2 | Java | 584393321/aite_zhuoyue | /app/src/main/java/com/aliyun/wuye/ui/fragment/ATAppointRecordUnhandleFragment.java | UTF-8 | 8,998 | 1.703125 | 2 | [] | no_license | package com.aliyun.wuye.ui.fragment;
import android.annotation.SuppressLint;
import android.app.Dialog;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.TextView;
import com.alibaba.... | true |
580a9cdcb94f8fe00c1ed7f46a4d4e8eb2a7ef3f | Java | buba4r/Fourmiliere | /src/fourmi/role/Role.java | UTF-8 | 201 | 2.265625 | 2 | [] | no_license | package fourmi.role;
import fourmi.Fourmi;
public abstract class Role {
protected Fourmi fourmi;
public Role(Fourmi fourmi) {
this.fourmi = fourmi;
}
public abstract void action();
}
| true |
7c83c384e6c7641fabfb6edd31b602e0e4563da4 | Java | kunkka321/Practica3100-RealNOFake | /app/src/main/java/pe/edu/ulima/pruebacalificada3/ListadoCompetenciaAdapter.java | UTF-8 | 1,805 | 2.40625 | 2 | [] | no_license | package pe.edu.ulima.pruebacalificada3;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.TextView;
import java.util.List;
/**
* Created by sodm on 6/23/2017.
*/
public class Listado... | true |
2c2724d929a5a2fe6fd56dc340f56a25c9601443 | Java | basilk27/ngmemberboot | /backend/src/test/java/com/anthem/member/ngmemberboot/repository/JidJobidRepositoryTest.java | UTF-8 | 3,747 | 1.953125 | 2 | [] | no_license | package com.anthem.member.ngmemberboot.repository;
import com.anthem.member.ngmemberboot.constants.Constants;
import com.anthem.member.ngmemberboot.model.JidJobid;
import com.anthem.member.ngmemberboot.model.JidJobidPK;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.Run... | true |
5881bb892c3c93446e2e59cbe3af27b7b1b42132 | Java | guopengcheng12138/gitTest | /Shopping/src/dao/imple/DetailsDaoImple.java | UTF-8 | 1,568 | 2.53125 | 3 | [] | no_license | package dao.imple;
import java.util.List;
import org.springframework.orm.hibernate3.HibernateTemplate;
import dao.DetailsDao;
import domain.Details;
public class DetailsDaoImple implements DetailsDao {
//依赖注入Hibernate模板
private HibernateTemplate hibernateTemplate;
public void setHibernateTemplate(... | true |
5c9d068eae13d928a503bcf9c116bf047937f7cf | Java | hephecqq/ActiveMQDemo | /mybatis/src/main/java/dagong/jms/service/ConsumerMessageListener2.java | UTF-8 | 1,472 | 2.703125 | 3 | [] | no_license | package dagong.jms.service;
import javax.annotation.Resource;
import javax.jms.Destination;
import javax.jms.JMSException;
import javax.jms.Message;
import javax.jms.MessageProducer;
import javax.jms.Session;
import javax.jms.TextMessage;
import org.springframework.jms.listener.SessionAwareMessageListener;
... | true |
99f4ac81396228504ca90de3d3410e341cf230f3 | Java | alyoona/onlineshop | /src/main/java/com/stroganova/onlineshop/dao/jdbc/JdbcProductDao.java | UTF-8 | 2,569 | 2.390625 | 2 | [] | no_license | package com.stroganova.onlineshop.dao.jdbc;
import com.stroganova.onlineshop.dao.ProductDao;
import com.stroganova.onlineshop.dao.jdbc.mapper.ProductRowMapper;
import com.stroganova.onlineshop.entity.Product;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.... | true |
aa21bea3e8b64da1e9c6814ae4f00eba41f3034c | Java | renatoAlexsander/library-api | /src/main/java/com/estudo/library/utils/TestUtils.java | UTF-8 | 495 | 2.125 | 2 | [] | no_license | package com.estudo.library.utils;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper;
import lombok.extern.slf4j.Slf4j;
@Slf4j
public class TestUtils {
public static String convertObjectToJson(Object object) {
try {
return new ObjectM... | true |
5fe6f7f818fc42b62bea5f72bcae12d7b4811a73 | Java | SoundaryaGajjam/HibernateDemo | /HibernateDemo/src/main/java/com/scp/hibernateDemo/Student.java | UTF-8 | 1,039 | 2.875 | 3 | [] | no_license | package com.scp.hibernateDemo;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.TableGenerator;
@Entity
public class Student {
@Id
//@GeneratedValue(strategy=GenerationType.SEQUENCE)
... | true |
041b9025b3fb276745f63aee40323ff83cd16d4d | Java | jonathan016/OASIS-backend | /repository/src/main/java/com/oasis/repository/SupervisionRepository.java | UTF-8 | 824 | 1.953125 | 2 | [] | no_license | package com.oasis.repository;
import com.oasis.model.entity.SupervisionModel;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;
import java.util.List;
@Repository
public interface SupervisionRepository
extends MongoRepository< SupervisionMod... | true |
824bc81060cd16a185a1f519ba125ef773803ede | Java | CarlieCharp/CarlieCharp_MAD | /final/final carlie (no toggle)/app/src/main/java/com/example/coffee_new/MainActivity.java | UTF-8 | 7,389 | 2.4375 | 2 | [] | no_license | package com.example.coffee_new;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.ImageView;
im... | true |
509628060cbf6b040552179590933f3d848a355e | Java | rafliefue/LB-Project | /src/test/java/org/springframework/samples/petclinic/jornada/JornadaValidatorTests.java | UTF-8 | 1,692 | 2.359375 | 2 | [] | no_license |
package org.springframework.samples.petclinic.jornada;
import java.util.Locale;
import java.util.Set;
import javax.validation.ConstraintViolation;
import javax.validation.Validator;
import org.assertj.core.api.Assertions;
import org.junit.jupiter.api.Test;
import org.springframework.context.i18n.LocaleContextHolder... | true |
0371be400dd38f2012568e22a42d3955ee5383f0 | Java | zsabin/SimplifiedTFTP-Tool | /src/ByteFileComparator.java | UTF-8 | 1,503 | 3.78125 | 4 | [] | no_license | import java.io.*;
public class ByteFileComparator {
public static void main(String[] args) throws IOException {
if (args.length != 2) {
System.out.println("Invalid command line arguments");
}
String fileName1 = args[0];
String fileName2 = args[1];
File file1 =... | true |
dd78e749ab6e49b468780846133c8c84e952e346 | Java | anrgl/job4j_forum | /src/test/java/ru/job4j/control/PostControlTest.java | UTF-8 | 4,669 | 2.015625 | 2 | [] | no_license | package ru.job4j.control;
import org.junit.jupiter.api.Test;
import org.mockito.ArgumentCaptor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.autoconfigure.web.servlet.AutoConfigureMockMvc;
import org.springframework.boot.test.context.SpringBootTest;
import org.spr... | true |
ca93a6b7a73a1bbc1e632075eb47dfc893550a54 | Java | Bradley-Wu/download-demo | /download-demo/src/main/java/cn/tedu/test/Tests.java | GB18030 | 684 | 2.578125 | 3 | [] | no_license | package cn.tedu.test;
import java.io.File;
import java.io.FileOutputStream;
import java.io.InputStream;
import cn.tedu.utils.MatrixToImageWriter;
public class Tests {
public static void main(String[] args) {
InputStream inputStream = null;
try {
//ŵҪάϢ
inputStream = MatrixToImageWriter.crea... | true |
0a9708cabb086b8211171be36d5e192c83487890 | Java | andredalton/SIGP | /src/br/usp/ime/sigp/jpa/BaseEntityString.java | UTF-8 | 152 | 1.921875 | 2 | [] | no_license | package br.usp.ime.sigp.jpa;
public abstract class BaseEntityString {
public abstract String getId();
public abstract void setId(String id);
}
| true |
e55ea248144d42e04cb9b55dcb1cc2450d109219 | Java | VINICIOMIRANDA/br.edu.usj.ads.lpii | /src/main/java/br/edu/usj/ads/lpii/projeto_final_produto/StoreController.java | UTF-8 | 19,971 | 2.265625 | 2 | [] | no_license | package br.edu.usj.ads.lpii.projeto_final_produto;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.... | true |
5dbfe6cee9f585ae2ecd2e4c8d2692690b9994ab | Java | Daniil-BSD/SkeletonSPL | /src/gameLogic/CellLogic.java | UTF-8 | 400 | 2.796875 | 3 | [] | no_license | package gameLogic;
import java.util.*;
/**
* This interface is responsible for „decisions” or actions that must be
* performed at certain cells.
*/
interface CellLogic {
/**
*
* This method triggers actions bound to the respective cell, and decides if the
* train can leave the current cell and advance to ... | true |
7008766ae93f8ca99bace3fe78c7d7cc88e9775a | Java | aKn1ghtOut/Unimate | /app/src/main/java/in/litico/unimate/managers/manager_fast_track.java | UTF-8 | 7,687 | 1.757813 | 2 | [] | no_license | package in.litico.unimate.managers;
import android.annotation.SuppressLint;
import android.app.Activity;
import android.content.Context;
import android.content.SharedPreferences;
import android.os.AsyncTask;
import android.util.Log;
import android.webkit.JavascriptInterface;
import android.webkit.WebView;
import andro... | true |
23e48b17f147cba78101314ceeb93c9bb4831334 | Java | ChinaVolvocars/Android_Merchant | /app/src/main/java/com/hzxmkuar/sxmaketnew/login_register/NewZCActivity.java | UTF-8 | 33,590 | 1.507813 | 2 | [] | no_license | package com.hzxmkuar.sxmaketnew.login_register;
import android.content.Intent;
import android.content.pm.PackageManager;
import android.graphics.Bitmap;
import android.net.Uri;
import android.support.v4.app.ActivityCompat;
import android.support.v4.content.ContextCompat;
import android.util.Log;
import android.view.Vi... | true |
c7e1d4375236204d5d70b03083ee79da362875d6 | Java | GottaGetSwifty/AndroidSideLoading | /library/src/main/java/com/github/peejweej/androidsideloading/model/SideLoadInformation.java | UTF-8 | 804 | 2.265625 | 2 | [
"MIT"
] | permissive | package com.github.peejweej.androidsideloading.model;
import android.net.Uri;
import android.os.Parcel;
import java.io.Serializable;
/**
* Created by Fechner on 8/24/15.
*/
public class SideLoadInformation implements Serializable{
public String fileExtension;
public String file;
public String fileName... | true |
f51857e7baf968648028e4056189efdce8463804 | Java | nbaer63/CMSC204REPO | /BaerNicholas_Assignment2/src/main/RecipientLine.java | UTF-8 | 1,971 | 3.71875 | 4 | [] | no_license | package main;
import exceptions.*;
import interfaces.*;
/**Data Structure class that deals with generic queue of Recipient
*
* @author Nick Baer
*
* @param <T> generic object
*/
@SuppressWarnings("unchecked")
public class RecipientLine<T> implements RecipientLineInterface{
private Queue<T> queue;
... | true |
0fe4c7675e31003a7c3a9811d5e9b2da32c5766f | Java | Ciscen/QianFanLive | /app/src/main/java/com/example/ciscen/qianfan/adapter/ListAdapter_Week.java | UTF-8 | 3,964 | 2.046875 | 2 | [] | no_license | package com.example.ciscen.qianfan.adapter;
import android.content.Context;
import android.content.res.AssetManager;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.os.Bundle;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import androi... | true |
5f1325f064ac2634a59119dfac1a085e18afdfaf | Java | rushabh33shah/C-declarations-to-English-Translator | /gen/CDeclBaseListener.java | UTF-8 | 3,907 | 2.453125 | 2 | [
"BSD-2-Clause"
] | permissive | // Generated from C:/Users/RUSHABH/Documents/GitHub/cdecl-rpshah2/grammars/cs652/cdecl\CDecl.g4 by ANTLR 4.6
import org.antlr.v4.runtime.ParserRuleContext;
import org.antlr.v4.runtime.tree.ErrorNode;
import org.antlr.v4.runtime.tree.TerminalNode;
/**
* This class provides an empty implementation of {@link CDeclListe... | true |
cb50aaa3c1971698b1e3873e83b40a6ce14b24dd | Java | devprofe/java | /003_Fechas/src/Fechas.java | UTF-8 | 1,071 | 3.640625 | 4 | [] | no_license | import java.util.Scanner;
public class Fechas {
public static void main(String...args) {
String fecha1; String fecha2;
Scanner in = new Scanner(System.in);
System.out.println("Ingrese 1º fecha DD/MM/AAAA");
fecha1 = in.nextLine();
int dia1 = Integer.parseInt(fecha1.substring(0,2));
int mes1 = Integer.parse... | true |
6277ed7f9692452a88cf2b620e96b6526b06418c | Java | kvm/AndroidApps | /private/FixedDepositor/FixedDepositor/app/src/main/java/com/pheonixlabs/srkuruma/fixeddepositor/Common/DateTimeUtils.java | UTF-8 | 1,597 | 2.984375 | 3 | [] | no_license | package com.pheonixlabs.srkuruma.fixeddepositor.Common;
import org.joda.time.Days;
import org.joda.time.LocalDate;
import java.text.DateFormat;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
/**
* Created by srkuruma on 7/9/2016.
*/
public class DateTimeUtils {
publi... | true |
85bbc48f89f863c6452e4714ae1f0a0c08062af2 | Java | qp1u18/AdAuction_backup | /src/test/java/backend/KeyMatricsTest.java | UTF-8 | 17,951 | 2.171875 | 2 | [] | no_license | package backend;
import org.junit.jupiter.api.*;
import java.io.File;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.time.LocalDateTime;
import java.util.EnumSet;
import java.util.LinkedHashMap;
import java.util.Map;
public class KeyMatricsTest {
private ... | true |
fcede63dd3bef3cc4b6f6b9844cabb44a34b3d5b | Java | snemanja/elektronski_dnevnik | /src/main/java/com/iktpreobuka/elektronski_dnevnik/entities/TeacherEntity.java | UTF-8 | 906 | 2.203125 | 2 | [] | no_license | package com.iktpreobuka.elektronski_dnevnik.entities;
import java.util.List;
import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.OneToMany;
import javax.persistence.Table;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
im... | true |
09fc66ee5176da10c26d8c6384b9e053e1c8ac6b | Java | dwightnaylor/MOAP | /AlgorithmMaker/src/theorems/Fact.java | UTF-8 | 3,190 | 2.8125 | 3 | [
"MIT"
] | permissive | package theorems;
import static algorithmMaker.util.KernelUtil.*;
import static kernelLanguage.KernelFactory.*;
import kernelLanguage.*;
import solver.Chainer;
/**
* @author dwight
*
* @param <T>
* Should be either an atomic...or???
*/
public class Fact<T extends KProperty> {
private static final St... | true |
91f632480bd1ef9502ec3a0431ae7d1dd4cbe0f3 | Java | singhaniatanay/beneFIT | /app/src/main/java/tech/iosd/benefit/OnBoardingFragments/GetStarted.java | UTF-8 | 2,135 | 1.796875 | 2 | [] | no_license | package tech.iosd.benefit.OnBoardingFragments;
import android.support.annotation.NonNull;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.content.Context;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.view.LayoutInflater;
impo... | true |
c7c2d4e9620143f319fa66d92f8f06a96284afb1 | Java | AshutoshSundresh/OnePlusSettings-Java | /sources/com/oneplus/settings/gestures/OPGestureUtils.java | UTF-8 | 11,910 | 1.734375 | 2 | [] | no_license | package com.oneplus.settings.gestures;
import android.content.Context;
import android.content.Intent;
import android.content.pm.LauncherApps;
import android.content.pm.PackageManager;
import android.content.pm.ResolveInfo;
import android.content.pm.ShortcutInfo;
import android.net.Uri;
import android.os.Process;
impor... | true |
afa691010f3db1442b94b9b098d3330134689999 | Java | Janmebows/webroguelike | /src/main/java/com/fdm/model/PlayerCharacter.java | UTF-8 | 2,003 | 3.203125 | 3 | [] | no_license | package com.fdm.model;
import javax.persistence.*;
import org.springframework.stereotype.Component;
/**
* An extension of {@link Actor} specifically for human interaction
* @author KILA
* @version 1.0
*/
@Component
@Entity
public class PlayerCharacter extends Actor {
/**
* Used for temporary holding when rece... | true |
13b034d346e0469cb5c8377563b0660ee413dcfb | Java | philiiiiiipp/multiplayer-balancing | /TD-Game/src/nl/uva/td/game/map/Field.java | UTF-8 | 3,403 | 3.390625 | 3 | [] | no_license | package nl.uva.td.game.map;
import java.util.HashSet;
import java.util.Set;
import nl.uva.td.game.tower.Tower;
/** Represents a field inside the game **/
public abstract class Field {
/** The type of field **/
public enum Type {
CREEP_FIELD,
TOWER_FIELD
}
/** All towers which have t... | true |
268453d4c940197c2a95d93cb0ba80423e180333 | Java | wkodate/leetcode | /java/src/main/java/com/wkodate/leetcode/LC0883_ProjectionAreaOf3DShapes/Solution.java | UTF-8 | 1,207 | 3.359375 | 3 | [] | no_license | package com.wkodate.leetcode.LC0883_ProjectionAreaOf3DShapes;
public class Solution {
public int projectionArea(int[][] grid) {
int xy = 0;
int yz = 0;
int zx = 0;
for (int i = 0; i < grid.length; i++) {
int yzMax = 0;
int zxMax = 0;
for (int j =... | true |
99d0389f34a4508ec036cc14f98f90890868b7d2 | Java | swd1119/morelove | /morelove-api/common/src/main/java/wujiuye/morelove/common/exception/WebException.java | UTF-8 | 707 | 2.6875 | 3 | [
"MIT"
] | permissive | package wujiuye.morelove.common.exception;
public class WebException extends RuntimeException{
private String message;
private Throwable throwable;
public WebException(String message){
super(message);
this.message = message;
}
public WebException(Throwable throwable){
sup... | true |
7a7cd78a02b01290b02e10a53ce7178a12d36977 | Java | idear1203/hihocoder | /src/main/java/com/idear/hihocoder/trie_tree_1014/Main.java | UTF-8 | 1,657 | 3.578125 | 4 | [] | no_license | package com.idear.hihocoder.trie_tree_1014;
import java.util.*;
class TrieNode{
private int count = 0;
private TrieNode[] children;
TrieNode(){
children = new TrieNode[26];
}
void insert(char[] s, int i){
count++;
if (i < s.length){
int index = s[i] - 'a';
... | true |
a114afee5670484a6d2bda7e3321f2197dea3887 | Java | itliuwei2819/MyRabbitMQ | /my-rabbitmq/src/main/java/com/toolv/myrabbitmq/ack/consumer/AckConsumer.java | UTF-8 | 1,154 | 2.671875 | 3 | [] | no_license | package com.toolv.myrabbitmq.ack.consumer;
import java.io.IOException;
import java.nio.charset.StandardCharsets;
import com.rabbitmq.client.AMQP;
import com.rabbitmq.client.Channel;
import com.rabbitmq.client.Consumer;
import com.rabbitmq.client.DefaultConsumer;
import com.rabbitmq.client.Envelope;
import com.rabbitm... | true |
128a26b01ae75b756d5e2cecf90f287cc95e78c8 | Java | ocardenasmartinez/seidor-products | /src/main/java/cl/falabella/repositories/ProductsRepository.java | UTF-8 | 340 | 1.867188 | 2 | [] | no_license | package cl.falabella.repositories;
import cl.falabella.entities.data.ProductsEntity;
import org.springframework.data.repository.CrudRepository;
import org.springframework.stereotype.Repository;
@Repository
public interface ProductsRepository extends CrudRepository<ProductsEntity, Integer> {
ProductsEntity findBy... | true |
e7b5fad4d444455f97cb0ef3a9e58714db531358 | Java | qxev/cv2 | /src/cn/clickvalue/cv2/pages/affiliate/CommissionTaxViewPage.java | UTF-8 | 3,620 | 1.929688 | 2 | [] | no_license | package cn.clickvalue.cv2.pages.affiliate;
import org.apache.tapestry5.ComponentResources;
import org.apache.tapestry5.annotations.ApplicationState;
import org.apache.tapestry5.annotations.Property;
import org.apache.tapestry5.beaneditor.BeanModel;
import org.apache.tapestry5.grid.GridDataSource;
import org.apache.tap... | true |
fbbf38cdedc98bade29195497d71fb949ae35e7c | Java | GaurangTandon/extensible-bowling-game | /src/Widget/GenericPanel.java | UTF-8 | 1,068 | 3.015625 | 3 | [] | no_license | package Widget;
import javax.swing.*;
import javax.swing.border.TitledBorder;
import java.awt.*;
abstract class GenericPanel {
final JPanel panel;
GenericPanel() {
panel = new JPanel();
panel.setLayout(new BorderLayout());
}
GenericPanel(final String heading) {
panel = new J... | true |
b7342db1a1ba5432f346e41c0713fe5429c61069 | Java | tectronics/moneydance-forecaster | /src/main/java/com/moneydance/modules/features/forecaster/window/FavouritesManager.java | UTF-8 | 11,727 | 2.046875 | 2 | [] | no_license | /*
* Copyright (c) 2008, Kevin Stembridge
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* * Redistributions of source code must retain the above copyright
* notice, this list of... | true |
7ba84338111be327e530696c3dd88fa58cf27c04 | Java | Vongfong/java-codes | /src/main/java/com/dragon/book/javacore/chapter14/tereSet/TreeSetTest.java | UTF-8 | 1,059 | 3.203125 | 3 | [] | no_license | package com.dragon.book.javacore.chapter14.tereSet;
import java.util.Comparator;
import java.util.HashMap;
import java.util.SortedSet;
import java.util.TreeSet;
/**
* Created with IntelliJ IDEA.
* User: dsy30
* Date: 2018/3/17
*/
public class TreeSetTest {
public static void main(String[] args) {
Sort... | true |
6c0fae9b4c9ea29d969fd227adb41a8d6da985ec | Java | xie-summer/yc-order | /order-api/src/main/java/com/ai/yc/order/api/orderdetails/param/OrderFeeVo.java | UTF-8 | 4,950 | 2.0625 | 2 | [] | no_license | package com.ai.yc.order.api.orderdetails.param;
import java.io.Serializable;
import java.math.BigDecimal;
import java.sql.Timestamp;
/**
* @Description: 费用信息
* @author hougang@asiainfo.com
* @date 2016年11月5日 上午9:21:33
* @version V1.0
*/
public class OrderFeeVo implements Serializable {
private static final l... | true |
d0e32bf21fc92110f8bd2af114d50f0794ad74ee | Java | mescoba1/SpaceInvaders | /app/src/main/java/com/example/miguel/spaceinvaders/SpaceView.java | UTF-8 | 2,015 | 2.734375 | 3 | [] | no_license | package com.example.miguel.spaceinvaders;
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Rect;
import android.view.MotionEvent;
import android.view.SurfaceHolder;
import androi... | true |
14dbda6415ee5db5aac246b1cbc722062a3f235d | Java | luotianwen/pgy | /dd_sdk_storm/src/main/java/com/kkgame/user/bolt/AdDataClickVersionCountBolt.java | UTF-8 | 4,872 | 1.96875 | 2 | [] | no_license | package com.kkgame.user.bolt;
import backtype.storm.task.OutputCollector;
import backtype.storm.task.TopologyContext;
import backtype.storm.topology.IRichBolt;
import backtype.storm.topology.OutputFieldsDeclarer;
import backtype.storm.tuple.Tuple;
import com.kkgame.user.bean.AdDataVO;
import com.kkgame.util.CalendarFo... | true |
0de448c2115a758a5e1b3fc164c8a601e04a4977 | Java | foryoung2018/UsageReport | /hdk/htc/lib1/HtcUPManager/src/com/htc/lib1/upm/HtcUPUploadScheduler.java | UTF-8 | 3,058 | 2.296875 | 2 | [] | no_license | package com.htc.lib1.upm;
import android.content.Context;
import android.content.SharedPreferences;
import android.os.Handler;
import com.htc.lib1.upm.uploader.ReportManager;
final class HtcUPUploadScheduler {
private static final String TAG = "HtcUPUploadScheduler";
private final static String preferenceName... | true |
cae3fb48d079ee89548962e6b7e0c9bb0e7c0af6 | Java | amrmahdyy/Code-forces-solutions | /A339.java | UTF-8 | 1,792 | 3.203125 | 3 | [] | no_license | import java.util.ArrayList;
import java.util.Collections;
import java.util.Scanner;
public class A339 {
public static void main(String[]args){
Scanner scanner=new Scanner(System.in);
String s=scanner.next();
ArrayList<Integer>numbersList=new ArrayList<Integer>();
int i=0;
if... | true |
6588417577a3af27b3cffec52f124d56bf387fba | Java | liziczh/lizi-old | /BookStore/src/main/java/com/group3/bookstore/service/impl/ReceiverServiceImpl.java | UTF-8 | 1,211 | 2.125 | 2 | [
"Apache-2.0"
] | permissive | package com.group3.bookstore.service.impl;
import com.group3.bookstore.mapper.ReceiverMapper;
import com.group3.bookstore.pojo.Receiver;
import com.group3.bookstore.service.IReceiverService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.... | true |
cb49b5fc6df27b4f56a7db613ab1775242f6b946 | Java | zhiweiGitHub/SplierPaChong | /src/main/java/com/tupian/DownloadClass.java | UTF-8 | 473 | 2.609375 | 3 | [] | no_license | package com.tupian;
import java.sql.Connection;
/**
* 这个类用来下载图片
*/
public class DownloadClass {
private Dao dao = new Dao();
/**
* 首先从数据库中查询数据是否存在
* 如果存在,就不下载
* 如果不存在,就追加到序列
* @param url
*/
public void download(String url) {
if (dao.selectUrl(url)) {
//如果url在... | true |
cd2f6cac90f46c5961c3a988fe47870d52b32c39 | Java | linwence/cmics | /cmicmdm/src/main/java/com/el/cmic/ws/mapper/FE84101ZSelectByE8ZZBM.java | UTF-8 | 1,222 | 1.679688 | 2 | [] | no_license | //
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by Fernflower decompiler)
//
package com.el.cmic.ws.mapper;
import com.el.cfg.domain.Fe84101z;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.SelectProvider;
import org.apache.ibatis.jdbc.SQL;
import org.spri... | true |
e38cf6c0af1c1daa81472cc08f190dafbee7c2e9 | Java | Dhiraj-321/API | /nimaiUCM/src/main/java/com/nimai/ucm/service/ReferServiceImpl.java | UTF-8 | 19,340 | 1.640625 | 2 | [] | no_license | package com.nimai.ucm.service;
import java.math.BigInteger;
import java.text.DecimalFormat;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.Date;
import java.util.List;
import java.util.function.Predicate;
import java.util.stream.Collector;
import java.util.stream.Collectors;
import org.apac... | true |
8c0753db1ecd9ed105d55ffc5f4a88c3925f94cd | Java | juanseleon1/RES-PwA | /BESA/FrameWorkBESA/KernelBESA/src/BESA/Kernel/Agent/Event/ACLBESA.java | UTF-8 | 1,153 | 2.15625 | 2 | [] | no_license | /*
* @(#)ACLBESA.java 2.0 11/01/11
*
* Copyright 2011, Pontificia Universidad Javeriana, All rights reserved.
* Takina and SIDRe PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
*/
package BESA.Kernel.Agent.Event;
import java.io.Serializable;
/**
* This class allows the handling of a DataBESA.
*
* ... | true |
48b450c372e1eb1f6744d06f3b4a671ade7b5109 | Java | AlmostIntelligent/Hydra | /subprojects/core/src/main/java/org/gethydrated/hydra/core/Version.java | UTF-8 | 1,908 | 2.765625 | 3 | [] | no_license | package org.gethydrated.hydra.core;
import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;
/**
* Hydra version information.
*/
public final class Version {
private Version() { }
private static final Properties PROPS = new Properties();
static {
try (InputStre... | true |
d74c4896fb25af0ac871b40f30131a95af4041ec | Java | jacknoerror/enduro | /src/com/bzbluetooth/android/bluetoothlegatt/ControlActivity.java | UTF-8 | 33,205 | 1.5625 | 2 | [] | no_license | package com.bzbluetooth.android.bluetoothlegatt;
import java.util.concurrent.Executors;
import java.util.concurrent.ScheduledExecutorService;
import java.util.concurrent.TimeUnit;
import android.app.Activity;
import android.app.AlertDialog;
import android.app.AlertDialog.Builder;
import android.app.ProgressD... | true |
c7e722ad598389798fc730be2878d02040e691f2 | Java | cvchaparro/jellyfish | /jellyfish-cli/com.ngc.seaside.jellyfish.service.impl.propertyservice/src/test/java/com/ngc/seaside/jellyfish/service/impl/propertyservice/PropertiesTest.java | UTF-8 | 3,218 | 2.0625 | 2 | [
"MIT"
] | permissive | /**
* UNCLASSIFIED
*
* Copyright 2020 Northrop Grumman Systems Corporation
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of
* this software and associated documentation files (the "Software"), to deal in
* the Software without restriction, including without limitation the right... | true |
4c07d5cec448e59a7259fbe78612e5368887e39d | Java | mindy15963/NuclearCraft | /src/main/java/nc/multiblock/fission/solid/SolidFuelFissionLogic.java | UTF-8 | 16,517 | 1.539063 | 2 | [
"CC0-1.0",
"MIT"
] | permissive | package nc.multiblock.fission.solid;
import static nc.block.property.BlockProperties.ACTIVE;
import static nc.block.property.BlockProperties.FACING_ALL;
import static nc.recipe.NCRecipes.fission_heating;
import java.util.ArrayList;
import java.util.List;
import com.google.common.collect.Lists;
import it.unimi.dsi.f... | true |
b773277ed6770053982c01e1ae457eb244cf8dd9 | Java | dianafisher/InterviewPrep | /src/com/dianafisher/interviewbit/dynamic_programming/min_sum_path_in_matrix/Solution.java | UTF-8 | 2,196 | 3.78125 | 4 | [] | no_license | package com.dianafisher.interviewbit.dynamic_programming.min_sum_path_in_matrix;
import java.util.ArrayList;
import java.util.Arrays;
/**
* Created by dianafisher on 1/29/18.
*
* Given a m x n grid filled with non-negative numbers, find a path from
* top left to bottom right which minimizes the sum of all numbers... | true |
1eca27136f30677084879294df683d51989ca686 | Java | radekg12/pi-back | /src/main/java/com/example/userportal/controller/CustomerController.java | UTF-8 | 1,442 | 2.21875 | 2 | [] | no_license | package com.example.userportal.controller;
import com.example.userportal.service.CustomerService;
import com.example.userportal.service.dto.CustomerDTO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.an... | true |
1e0ffa3afa21b44f0851135039a06fb8e9cf570c | Java | rumev/Patika | /RepeatedTimes/src/main.java | UTF-8 | 591 | 3.15625 | 3 | [] | no_license | import java.util.HashMap;
public class main {
public static void main(String[] args) {
// TODO Auto-generated method stub
int[] list = {10,20,20,10,10,20,5,20,10,20,5};
HashMap<Integer,Integer> control = new HashMap<Integer,Integer>();
for(int i =0;i<list.length;i++) {
if(control.containsKey(list[i]))... | true |
0c300e50d4440327186282d36e057f7100e026b8 | Java | Librari/JavaWebsocketClient | /websockets-example/src/main/java/com/appunite/socket/MainActivity.java | UTF-8 | 6,691 | 2.203125 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright (C) 2015 Jacek Marchwicki <jacek.marchwicki@gmail.com>
*
* 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 r... | true |
b82e252d2aba09be605145e83c992b8506effc5d | Java | oscarYeung/ib_terminal | /ib-terminal-server/src/main/java/com/henyep/ib/terminal/server/service/impl/IbClientLinkServiceImpl.java | UTF-8 | 4,466 | 1.976563 | 2 | [] | no_license | package com.henyep.ib.terminal.server.service.impl;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import javax.annotation.Resource;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.stereotype.Service;
import com.henyep.ib.t... | true |
4cf9fc9aaeb31a471f3043b9c825e4b3ff0bf20b | Java | Rammy42/KeyCloakDemo | /src/main/java/com/techsophy/securitydemo/model/UserModal.java | UTF-8 | 1,990 | 2.34375 | 2 | [] | no_license | package com.techsophy.securitydemo.model;
import java.util.List;
public class UserModal {
String userName;
String firstName;
String lastName;
String password;
String eMail;
List<String> realmRoles;
public String getUserName() {
return userName;
}
public vo... | true |
c9e2be5f0e1251a0453e65358c3cb78175a8199b | Java | BuddhikaJayanarth/portfolio | /Java Class Parser and Analyser/ClassFileParser/Field.java | UTF-8 | 2,715 | 2.53125 | 3 | [] | no_license |
import java.io.DataInputStream;
import java.io.IOException;
import java.util.ArrayList;
/*
* 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.
*/
/**
*
* @author ADMIN
*/
public class Fie... | true |
8fe7c291c846361ba9674b5de0674e60f617a3aa | Java | ashwinswaroop/TripCluster | /TripClusterProject/TripCluster/app/src/main/java/com/ashwin/tripcluster/LocationDBHelper.java | UTF-8 | 2,121 | 2.515625 | 3 | [] | no_license | package com.ashwin.tripcluster;
/**
* Created by ashwi on 11/25/2015.
*/
import android.content.ContentValues;
import android.content.Context;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
/**
* Created by Swaroop on 11/7/2015.
*/
p... | true |
bb8bf31de675ecb9e50d5552d9fb847a24fb595b | Java | weresandstorm/sandstorm | /sandstorm-controller/controller-core/src/main/java/io/sandstorm/controller/domain/job/JobExecutionException.java | UTF-8 | 352 | 1.8125 | 2 | [] | no_license | package io.sandstorm.controller.domain.job;
import io.sandstorm.common.AppInternalException;
public class JobExecutionException extends AppInternalException {
public JobExecutionException(String message) {
super(message);
}
public JobExecutionException(String message, Throwable cause) {
... | true |
4dc0298fb8dfd1a572c4a0fd103c76914f49a604 | Java | rkskdhs/Multicampus | /Basic/oop/src/d_access/sub/Access.java | UTF-8 | 755 | 3.65625 | 4 | [] | no_license | package d_access.sub;
public class Access {
public static void main(String[] args) {
private String a = "Private Data";
public String b = "Public Data";
protected String c = "Protected Data";
String d = "Default";
public void output() {
System.out.println(a);
System.out.printl... | true |
89c0fa455191198304065bff01485ba32fd3b1b6 | Java | Sofiaaa/RecruME | /src/main/java/gr/codehub/RecruME/models/Skill.java | UTF-8 | 363 | 2.03125 | 2 | [] | no_license | package gr.codehub.RecruME.models;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import javax.persistence.*;
@Data
@NoArgsConstructor
@AllArgsConstructor
@Entity
public class Skill {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private in... | true |
b43412e0f651c1f6fd3b22a8f83021b1b3ad28a8 | Java | AayushiGoyal04/OnlineWallet | /OnlineWalletSystem/src/main/java/com/cg/ows/service/OnlineWalletSystemServiceImpl.java | UTF-8 | 2,491 | 2.703125 | 3 | [] | no_license | package com.cg.ows.service;
import java.math.BigInteger;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.stereotype.Service;
import org.springframework.web.server.ResponseStatusException;
import com... | true |
788316378a23461f2b5f320da6bd349f54bf73d5 | Java | panhui524/mygit | /src/com/yinhai/service/UserService.java | UTF-8 | 204 | 1.71875 | 2 | [] | no_license | package com.yinhai.service;
import java.util.ArrayList;
import com.yinhai.bean.User;
public interface UserService {
boolean register(User user);
ArrayList<User> login(User user);
}
| true |
cff6ba9f2ea1787af0daff4bc8f50746f3f56f97 | Java | totomatisme/ProfitBourse | /src/profitbourse/vue/colonnemilieu/milieu/bas/PanelVide.java | UTF-8 | 436 | 1.851563 | 2 | [] | no_license | package profitbourse.vue.colonnemilieu.milieu.bas;
import java.awt.Dimension;
import javax.swing.JPanel;
import profitbourse.vue.Controleur;
public class PanelVide extends JPanel {
private static final long serialVersionUID = -3257806341026785837L;
//private Controleur controleur;
public PanelVide(Controleur... | true |
2fc4bd59a6f6b9484faa571f0885c72ce9a0e251 | Java | PrzemekSztandera/bootcamp-2019 | /fundamentals-4/fundamentals4/src/com/manchesterdigital/chef/Chef.java | UTF-8 | 329 | 2.25 | 2 | [] | no_license | package com.manchesterdigital.chef;
import com.manchesterdigital.BakingExample;
public class Chef extends BakingExample {
public static void main(String[] args) {
BakingExample bakingExample = new BakingExample();
Chef chef = new Chef();
// bakingExample.decorate();
chef.decorate();... | true |
6d5a65352fd47125d52d551372c38a330ae623e9 | Java | yuzhaojing/algorithm004-05 | /Week 1/id_000/java/laioffer/DynamicProgrammingI/MaxProductOfCuttingRope.java | UTF-8 | 2,079 | 4.03125 | 4 | [] | no_license | package laioffer.DynamicProgrammingI;
public class MaxProductOfCuttingRope {
public static void main(String[] args) {
System.out.println(new MaxProductOfCuttingRope().maxProduct(40));
System.out.println(new MaxProductOfCuttingRope().maxProductBetter(40));
}
/**
* 假设:length >= 2
... | true |
8662e278cf76f99334e563fb7a2eb26b2c0a4d40 | Java | CDU55/Logic-E-Learning-Assistant | /src/application/FOLQuiz/ResolutionQuizFOLController.java | UTF-8 | 6,104 | 2.203125 | 2 | [] | no_license | package application.FOLQuiz;
import java.io.IOException;
import java.net.URL;
import java.sql.SQLException;
import java.util.ResourceBundle;
import DbManagement.CurrentQuizLevel;
import DbManagement.ResolutionChapter;
import Exceptions.GoalReached;
import Exceptions.InvalidInferenceRuleApplication;
import Exceptions.... | true |
a7d30670e9dbc6ee3015d423758cb28547884b56 | Java | idaviz/hermes | /src/main/java/aas/hermes/dao/model/ModelMessageDAO.java | UTF-8 | 11,404 | 2.5625 | 3 | [] | no_license | /*
* Created by me and myself.
*/
package aas.hermes.dao.model;
/**
*
* @author David
*/
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import aas.hermes.db.GestionBaseDeDatos;
import aas.hermes.dao.javabeans.Message;
import java.sql.SQLException;
import j... | true |
ae7d87b8a41a16403d3f98d33454739523ecfa2f | Java | Cheng2001/peter | /src/main/java/com/peter/xiao/main/controller/GeneratorController.java | UTF-8 | 1,003 | 1.992188 | 2 | [] | no_license | package com.peter.xiao.main.controller;
import com.peter.xiao.common.ResultData;
import com.peter.xiao.common.generator.CodeGenerator;
import com.peter.xiao.main.entity.Generator;
import com.peter.xiao.main.service.IGeneratorService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.*;
... | true |
09bb690dc6f12185d88cca3e2f3f7085dc4b700d | Java | zxhfrombnu/StudySpringFramework | /SimpleJavaApplication/src/main/java/com/helen/AppConfig.java | UTF-8 | 765 | 2.25 | 2 | [] | no_license | package com.helen;
import javax.sql.DataSource;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;
import com.helen.entities.BaseballGame;
import com.helen.entities.Cubs;
import com.helen.entities.Game... | true |
5a76c53a939232023dea6ad95834cd4207794bd8 | Java | smooth7/StudentResultSystem | /StudentResultSystem/src/modelInterfaces/ILecturerDetailsInput.java | UTF-8 | 167 | 2.015625 | 2 | [] | no_license | package modelInterfaces;
public interface ILecturerDetailsInput {
public boolean insertLecturerDetails(String lecturerName, String lecturerDepartment);
}
| true |
90a5f45bd03f1800c58756089d75bb4a41d50af9 | Java | TinBuzan/JAVA-Circular-Double-Linked-ADT | /Driver.java | UTF-8 | 5,031 | 3.984375 | 4 | [] | no_license | /* Purpose: Data Structure and Algorithms Lab 4 Problem 1
* Status: Redone and tested
* Last update: 2/25/2016
* Submitted: 2/25/2016
* Comment: test suite and sample run attached
* @author: Tin Buzancic
* @version: 2016.25.02
*/
import java.io.*;
public class Driver extends ListCDLSBased
{
public static B... | true |
56c529893ec663032fe45c38646da1c0b2528b4c | Java | badalb/Core-Java | /java8-stream/src/main/java/com/test/stream/NewPersonMain.java | UTF-8 | 399 | 3.0625 | 3 | [] | no_license | package com.test.stream;
import java.util.Map;
import java.util.stream.Collectors;
public class NewPersonMain {
public static void main(String[] args) {
Map<Integer, String> personMap = Person.persons.stream()
.collect(Collectors.toMap(s -> s.age, s -> s.name, (name1, name2) -> name1 + ";" + name2));
perso... | true |
8845f8a05c8aac522ea14ef907c6411d0287490b | Java | navyanswamy20/TYSS-16Sep19-NavyaHN | /maps/src/com/tyss/maps/TestG.java | UTF-8 | 438 | 2.78125 | 3 | [] | no_license | package com.tyss.maps;
import java.util.Hashtable;
public class TestG {
public static void main(String[] args) {
Hashtable<Integer, String> ht = new Hashtable<>();
ht.put(101, "ajay");
ht.put(102, "navya");
ht.put(103, "sona");
ht.put(104, "moni");
ht.put(101, "ram");
ht.put(109, "ram");
//ht.put(nul... | true |
fae6c81ac4a6e588f00501c5abff0017bcc53c8b | Java | Yalun-Yong/ShellPlugin_screen | /ShellPlugin_screen/GOLauncherEX_ShellPlugin_screen/src/com/jiubang/shell/analysis3dmode/MS3DHeader.java | UTF-8 | 2,543 | 2.546875 | 3 | [] | no_license | /*
* MS3DHeader.java
*
* Copyright (C) 2001-2002 Kevin J. Duling (kevin@dark-horse.net)
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (... | true |
300bcfa078dd037ca7ea6c6bae24d7532ccb57a3 | Java | futurepages/2 | /src/org/futurepages/core/filter/Filter.java | UTF-8 | 997 | 2.65625 | 3 | [] | no_license | package org.futurepages.core.filter;
import org.futurepages.core.action.Manipulable;
import org.futurepages.core.control.InvocationChain;
/**
* A filter intercepts an action so it can modify its input and output, before and after the action is executed.
* Filters are very useful for validation, authentica... | true |
c3800a61886529a5707a418e9fc97cd195c390b2 | Java | VimukthiC/Spring_Boot_POS | /Back_End/src/main/java/com/wixis360/spring/controller/ItemController.java | UTF-8 | 2,509 | 2.359375 | 2 | [] | no_license | package com.wixis360.spring.controller;
import com.wixis360.spring.dto.ItemDTO;
import com.wixis360.spring.service.ItemService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.http.MediaType;
import org.springframework.http.ResponseE... | true |
8e6185a48dbdb87d61ba602db49c1015b740bad7 | Java | DjangoZorro/Java-practice-OPT2 | /src/Person.java | UTF-8 | 690 | 3.21875 | 3 | [] | no_license | public class Person {
private String name;
private int geboortejaar;
public Person(String name, int geboortejaar) {
this.name = name;
this.geboortejaar = geboortejaar;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name =... | true |
3e3e197d9cfd83ee435846376d0d7c53af2d3979 | Java | Uhbyxer/mockito | /Fragment/src/org/eclipsecon/coctail/bar/BartenderTest.java | UTF-8 | 1,360 | 2.375 | 2 | [] | no_license | package org.eclipsecon.coctail.bar;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.InOrder;
import org.mockito.InjectMocks;
import org.mockito.Mock;
import org.mockito.Spy;
import org.mockito.runners.MockitoJUnitRunner;
import static org.mockito.Mockito.*;
@RunWi... | true |