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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
3e39abad1fc2c686fde505d7c7c09e79a0a59578 | Java | thimda/rsd_web | /bc/src/public/nc/uap/lfw/core/tags/DatasetMetaUtil.java | GB18030 | 8,367 | 2.09375 | 2 | [] | no_license | package nc.uap.lfw.core.tags;
import java.util.Calendar;
import nc.bs.pub.formulaparse.FormulaParse;
import nc.uap.lfw.core.LfwRuntimeEnvironment;
import nc.uap.lfw.core.data.Dataset;
import nc.uap.lfw.core.data.Field;
import nc.uap.lfw.util.JsURLEncoder;
import nc.uap.lfw.util.LanguageUtil;
import nc.vo.pub.formulas... | true |
33dd7dfd8e78b1b129d1fc9e2cd7b9dbb0a308c5 | Java | MiSheep/RuiDaoExam | /src/main/java/com/neuedu/ruidaoexam/controller/handlePhotoController.java | UTF-8 | 3,325 | 2.453125 | 2 | [] | no_license | package com.neuedu.ruidaoexam.controller;
import java.io.File;
import java.io.FileOutputStream;
import java.io.OutputStream;
import java.util.UUID;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;
import org.apache.commons.codec.binary.Base64;
import org.springframework... | true |
ab7e57638b9080f2f415f141665ee792408d4086 | Java | lefonque/exercise | /examples/example-springmvc/src/test/java/com/jpl/garage/example/springmvc/test/TestRun.java | UTF-8 | 1,003 | 2.046875 | 2 | [] | no_license | package com.jpl.garage.example.springmvc.test;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.co... | true |
1b65e0f186a00982fa776545bee6a84d5a8e6bde | Java | mathmferreira/Treinamento | /src/main/java/br/com/treinamento/ultracar/Treinamento/repositorios/impl/CustomizedUsuarioRepositoryImpl.java | UTF-8 | 2,038 | 2.28125 | 2 | [] | no_license | package br.com.treinamento.ultracar.Treinamento.repositorios.impl;
import java.util.HashMap;
import java.util.Map;
import java.util.Objects;
import java.util.stream.Collectors;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;
import javax.persistence.TypedQuery;
import org.apache.... | true |
ef60cf07a3edf77d0df829ca130eed2556426e24 | Java | swingle8/Hashing | /Find All Four Sum Numbers.java | UTF-8 | 2,584 | 3.59375 | 4 | [] | no_license | // { Driver Code Starts
// Initial Template for Java
import java.io.*;
import java.util.*;
class GFG {
public static void main(String[] args) throws IOException {
BufferedReader br =
new BufferedReader(new InputStreamReader(System.in));
int tc = Integer.parseInt(br.readLine().trim());
... | true |
190f148900578ae0775684025fb55058c342aad7 | Java | rohanbabbar04/Library-Management-System | /src/sample/LoginData.java | UTF-8 | 1,279 | 3.15625 | 3 | [] | no_license | package sample;
import java.io.*;
import java.util.ArrayList;
import java.util.List;
public class LoginData {
private static final LoginData instance = new LoginData();
private final List<LoginItem> loginList = new ArrayList<>();
public static LoginData getInstance() {
return instance;
}
... | true |
a7197acbb3a0005ed6ef7d291abc3bec36d227d1 | Java | renanjsiqueira/sisadonai | /src/main/java/br/com/eugeniosolucoes/view/model/DadosBoletoPagoModel.java | UTF-8 | 4,275 | 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 br.com.eugeniosolucoes.view.model;
import br.com.eugeniosolucoes.util.MyStrings;
import java.util.Date;
import java.u... | true |
0f46e01ce230078b75f6f5276f32796a1a4a724c | Java | azarioh/learning-resource-finder | /trunk/LearningResourceFinder/src/learningresourcefinder/util/CompetencesTreeVisitor.java | UTF-8 | 381 | 2.09375 | 2 | [] | no_license | package learningresourcefinder.util;
import learningresourcefinder.model.Competence;
import learningresourcefinder.repository.CycleRepository;
public interface CompetencesTreeVisitor {
void startCompetence(Competence competence, int recurtionLevel);
void endCompetence(Competence competence);
void befor... | true |
934a73ab6497ee95e6afd478fdcd9f7703d4b4e0 | Java | QUIDA5V/Bowling | /src/main/java/com/bowling/util/Constant.java | UTF-8 | 596 | 2.0625 | 2 | [] | no_license | package com.bowling.util;
public class Constant {
public final static String Fault = "F";
public final static String Strike = "X";
public final static String Spare = "/";
public final static String SpareTab = "/ |";
public final static String Space= " ";
public final static String TwoSpace= " ";
public final ... | true |
91a22d4b020294d036c792247fa416bf9ebeec6c | Java | nakul-chawla/javaPractice | /amex2.java | UTF-8 | 1,170 | 2.859375 | 3 | [] | no_license | import java.util.*;
import java.io.*;
class amex2{
public static int check(String[] A){
List<Character> ls = new ArrayList<Character>();
List<Integer> lsi=new ArrayList<Integer>();
int flag;
String ans="";
int abc;
System.out.println(abc);
for(int i=0;i<A.leng... | true |
6387eda22ca0dba2bfd7cfd4d729c2d7dc977430 | Java | pgjdbc/r2dbc-postgresql | /src/main/java/io/r2dbc/postgresql/SslFallbackConnectionFunction.java | UTF-8 | 2,775 | 2.015625 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2022 the original author or authors.
*
* 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applic... | true |
ddad7c870e238bd4733806855a4dcfbedb5ff045 | Java | LPF666/weixinDemo | /src/com/entity/DownSc.java | UTF-8 | 188 | 1.976563 | 2 | [] | no_license | package com.entity;
public class DownSc {
private String media_id;
public String getMedia_id() {
return media_id;
}
public void setMedia_id(String mediaId) {
media_id = mediaId;
}
}
| true |
5c5a5e08bbf84271ea4b111724ea83fe8c547fbe | Java | JetBrains/intellij-obsolete-plugins | /tapestry/src/test/java/com/intellij/tapestry/tests/mocks/PsiClassTypeMock.java | UTF-8 | 1,810 | 2.03125 | 2 | [
"Apache-2.0"
] | permissive | package com.intellij.tapestry.tests.mocks;
import com.intellij.pom.java.LanguageLevel;
import com.intellij.psi.PsiClass;
import com.intellij.psi.PsiClassType;
import com.intellij.psi.PsiType;
import com.intellij.psi.search.GlobalSearchScope;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nu... | true |
813d9d3b7b5f56353aa64eebb142865a1c9260f1 | Java | Scriptopathe/codinsa2015 | /Prod/v1.0/ClientJava/src/net/codinsa2015/StateAlterationSource.java | UTF-8 | 413 | 2.421875 | 2 | [] | no_license | package net.codinsa2015;
public enum StateAlterationSource
{
Consumable(0),
Armor(1),
Weapon(2),
Amulet(3),
Boots(4),
SpellActive(5),
UniquePassive(6);
int _value;
StateAlterationSource(int value) { _value = value; }
public int getValue() { return _value; }
public static StateAlterationSource fromValue(int ... | true |
3cf2e82d232176621f67f4d257cdcbd0e5b428b7 | Java | margaritamatulenkortu/Car-parking | /ipm-project-master/roomz-app/backend/src/main/java/com/roomz/demo/RoomZProjectApplication.java | UTF-8 | 790 | 2.046875 | 2 | [] | no_license | package com.roomz.demo;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
public class RoomZProjectApplication {
private static final Lo... | true |
1c6d77f99d6ec288c2078ab9a2e17e00fccd9934 | Java | Scusemua/Final-AP-Computer-Science-A-Project | /src/com/gmail/benrcarver/FinalProject/Canvas.java | UTF-8 | 41,979 | 2.890625 | 3 | [
"MIT"
] | permissive | package com.gmail.benrcarver.FinalProject;
/*
* author: Ben Carver
* period 5 AP Computer Science
*/
import javax.swing.*;
import java.awt.BasicStroke;
import java.awt.Graphics2D;
import java.awt.Graphics;
import java.awt.Color;
import java.awt.event.ActionEvent;
import java.util.ArrayList;
publi... | true |
66661e90fa8f1ea251d6aae4582171631781231e | Java | mmusgrov/corba | /ext-api/src/main/java/org/omg/Messaging/ReplyEndTimePolicyOperations.java | UTF-8 | 356 | 1.53125 | 2 | [] | no_license | package org.omg.Messaging;
/**
* Generated from IDL interface "ReplyEndTimePolicy".
*
* @author JacORB IDL compiler V 2.3.1, 27-May-2009
* @version generated at 10/01/2013 11:46:14 AM
*/
public interface ReplyEndTimePolicyOperations
extends org.omg.CORBA.PolicyOperations
{
/* constants */
/* operations */
... | true |
082e135d5cbce1b68ff7e67ed6da7b711bd23092 | Java | newguangzhou/hello-world3 | /app/src/main/java/com/xiaomaoqiu/now/PetAppLike.java | UTF-8 | 5,154 | 1.820313 | 2 | [] | no_license | package com.xiaomaoqiu.now;
import android.annotation.TargetApi;
import android.app.Application;
import android.content.Context;
import android.content.Intent;
import android.os.Build;
import android.os.Handler;
import android.support.multidex.MultiDex;
import com.baidu.mapapi.SDKInitializer;
import com.fa... | true |
c0ae92b66606dcc0096f987ea8737c2ecfeeb68a | Java | Henrik-Hanke/intermodal-domain | /src/test/java/net/contargo/intermodal/domain/example/RegistrationTrainTest.java | UTF-8 | 21,324 | 2.34375 | 2 | [
"Apache-2.0"
] | permissive | package net.contargo.intermodal.domain.example;
import com.fasterxml.jackson.databind.ObjectMapper;
import net.contargo.intermodal.domain.*;
import org.junit.jupiter.api.Test;
import java.io.IOException;
import java.time.Instant;
import static org.junit.jupiter.api.Assertions.*;
/**
* @author Isabell Dürlich ... | true |
3b399f5990274843afb74cfbb478e1cfde70b02c | Java | HaVu279/Gama | /GamaProject/src/main/java/hoainguyen/gama/GamaProject/controllers/GamaFileController.java | UTF-8 | 1,804 | 2.109375 | 2 | [] | no_license | package hoainguyen.gama.GamaProject.controllers;
import java.util.List;
import java.util.Optional;
import javax.validation.Valid;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.GetMapping;
imp... | true |
9d6600c072c17c70e8cd4fbeb3afe7b069c7a729 | Java | abelperez/commons | /src/com/mindplex/commons/collections/LoadBalancedList.java | UTF-8 | 3,649 | 3.21875 | 3 | [] | no_license | package com.mindplex.commons.collections;
import java.util.Collection;
import java.util.Iterator;
import java.util.List;
/**
*
* @author Abel Perez
*/
public interface LoadBalancedList<E>
{
/**
*
* @param value
* @param weight
* @return
*/
public LoadBalancedList add(E value, int w... | true |
4e4f3ca4adaf352b3fd79e4ac6209f14a5548aa7 | Java | bethscholze/bookshelfBanshee | /src/test/java/com/bookshelfBanshee/persistence/ListDaoTest.java | UTF-8 | 2,389 | 2.484375 | 2 | [] | no_license | package com.bookshelfBanshee.persistence;
import com.bookshelfBanshee.entity.Book;
import com.bookshelfBanshee.entity.UserList;
import com.bookshelfBanshee.entity.User;
import com.bookshelfBanshee.test.util.Database;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import java.util.Set;
im... | true |
c98c3865185b2d24bf5782b6724cd4da46ce02b6 | Java | StefanoBoriero/Blackboard | /app/src/main/java/dima/it/polimi/blackboard/fragments/PaymentListFragment.java | UTF-8 | 16,131 | 1.84375 | 2 | [] | no_license | package dima.it.polimi.blackboard.fragments;
import android.content.Context;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.preference.PreferenceManager;
import android.support.annotation.NonNull;
import android.support.design.widget.CollapsingToolbarLayout;
import android.support.v... | true |
dffdc7538b5aff780421866220046c0f27f5418a | Java | persistChao/springboot | /spring-boot-mybatis/src/main/java/com/answer/service/AccountService.java | UTF-8 | 420 | 2.03125 | 2 | [] | no_license | package com.answer.service;
import com.answer.entity.Account;
import java.util.List;
/**
* @descreption
* @Author answer
* @Date 2019/2/1 16 00
*/
public interface AccountService {
int add(String name, double money);
int update(String name, double money, int id);
int delete(int id);
Account ... | true |
1dedd7f985c9d4526a685b5fe66bffe1dbb40876 | Java | Spike-ysc/OrderingApp | /app/src/main/java/com/example/yan/orderingapp/MainActivity.java | UTF-8 | 2,997 | 2.296875 | 2 | [] | no_license | package com.example.yan.orderingapp;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentTransaction;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import com.ashokvarma.bottomnavigation.Bot... | true |
4446495f094125c1c0977d7fd42ac0d6b054e9a1 | Java | prakashvis/CryptSplit | /src/java/com/mini/download/ThreadProcess.java | UTF-8 | 1,287 | 2.640625 | 3 | [] | no_license |
package com.mini.download;
/*
Author: prakash. u
*/
import com.mini.crypt.Crypto;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Paths;
public class ThreadProcess extends Thread {
byte ... | true |
3a8f9fb86a428cac940d27b108496a6ce4fd1e41 | Java | mghb2009/Vaadin4Spring-MVP-Sample-SpringSecuritySocial | /src/main/java/org/vaadin/spring/sample/security/ui/social/ConnectionInfo.java | UTF-8 | 5,685 | 2.15625 | 2 | [
"Apache-2.0"
] | permissive | package org.vaadin.spring.sample.security.ui.social;
import java.io.Serializable;
import java.lang.reflect.Method;
import org.vaadin.spring.sample.security.ui.formsender.SocialProviderAction;
import com.vaadin.server.ExternalResource;
import com.vaadin.server.FontAwesome;
import com.vaadin.shared.ui.label.ContentMod... | true |
1913f32f2f344ef490b1845f146b4fb0602eb9a0 | Java | pumpkin0/pumpkin | /item/Item_Management_parent/Item_Management_service/src/main/java/zhangbin/cumt/service/base/SubAreaService.java | UTF-8 | 396 | 1.625 | 2 | [] | no_license | package zhangbin.cumt.service.base;
import java.util.List;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import zhangbin.cumt.domain.base.SubArea;
public interface SubAreaService {
void save(SubArea model);
Page<SubArea> pageQuery(Pageable pageable);
List<SubAre... | true |
1318418343715c9436a9ed0ff38371df99456fbc | Java | lotfiZouad/FSecure | /src/main/java/eventAnalyze/EventActivityTime.java | UTF-8 | 604 | 2.875 | 3 | [] | no_license | package eventAnalyze;
import java.util.function.LongConsumer;
public class EventActivityTime implements LongConsumer{
private long firstEvent = Long.MAX_VALUE;
private long lastEvent = 0;
@Override
public void accept(long value) {
firstEvent = Math.min(firstEvent,value);
lastEvent =... | true |
99da09eb368b7d1d098f33a5bfa5ec2dca6a909c | Java | youd5/rssfeed | /app/src/main/java/com/example/rssfeed/util/NseItem.java | UTF-8 | 463 | 1.929688 | 2 | [] | no_license | package com.example.rssfeed.util;
public class NseItem {
public String CH_SYMBOL;
public String mTIMESTAMP;
public Double CH_LAST_TRADED_PRICE;
public Double pChange;
public NseItem(String CH_SYMBOL, Double CH_LAST_TRADED_PRICE, String mTIMESTAMP, Double pChange) {
this.CH_SYMBOL = CH_SY... | true |
0191c5d9b952f54cdc023f4711d63301d387104a | Java | yuexiaoguang/tomcat8.5 | /src/org/apache/jasper/runtime/InstanceManagerFactory.java | UTF-8 | 625 | 2.28125 | 2 | [] | no_license | package org.apache.jasper.runtime;
import javax.servlet.ServletConfig;
import org.apache.tomcat.InstanceManager;
public class InstanceManagerFactory {
private InstanceManagerFactory() {
}
public static InstanceManager getInstanceManager(ServletConfig config) {
InstanceManager instanceManager =
... | true |
dfed571a1648c25f7ce9cd5adc9371cd4b8004f9 | Java | heman799/LeetCode | /src/NumberOfAirplanesInTheSky.java | UTF-8 | 1,228 | 3.28125 | 3 | [] | no_license | import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.PriorityQueue;
public class NumberOfAirplanesInTheSky {
public static int countOfAirplanes(List<Interval> airplanes) {
if (airplanes == null || airplanes.isEmpty()) {
return 0;
}
... | true |
acc05be433111643c6c1177c6e0009c93e4b4fd7 | Java | Swesje/OO-Software-Development-II | /H2 - Polymorfisme en Interfaces/Oefeningen/Oefeningen_Oefening3_Verplaatsing/src/testen/VerplaatsingPerBusTramTest.java | UTF-8 | 2,292 | 2.703125 | 3 | [] | no_license | package testen;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import domein.VerplaatsingPerBusTram;
public class VerplaatsingPerBusTramTest {
private VerplaatsingPerBusTram vpbt1, vpbt2;
@BeforeEach
public void before()... | true |
ef5926b8c3fd2e04e0dee24a31006ee2e93039fb | Java | wenjunyang/basic_algorithm_4j | /src/main/java/cn/wendale/base/SimHash.java | UTF-8 | 4,028 | 2.796875 | 3 | [] | no_license | package cn.wendale.base;
import com.google.common.primitives.Ints;
import java.util.ArrayList;
import java.util.List;
import static java.lang.Long.SIZE;
import static java.lang.Long.bitCount;
import static java.lang.String.format;
/**
* Created with IntelliJ IDEA.
* User: yang.wenjun
* Date: 2017/5/11
* Time: 下... | true |
1ad36e66380e04d263fe9003299cbd92393298a5 | Java | scalpovich/TechLarning | /src/main/java/com/mastercard/pts/integrated/issuing/pages/customer/dispute/SecondChargeBackNewPage.java | UTF-8 | 3,931 | 1.976563 | 2 | [] | no_license | package com.mastercard.pts.integrated.issuing.pages.customer.dispute;
import java.math.BigDecimal;
import java.util.Arrays;
import java.util.Collection;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.ui.ExpectedCondition;
import org.springframework.stereotype.Component;
import com.masterca... | true |
96478af39b4d3cbea5ce51da62fda7e8eb80ac88 | Java | TatianaDerevenets/home_work_1 | /Triangle.java | UTF-8 | 643 | 3.671875 | 4 | [] | no_license | package hillel;
import java.util.Scanner;
public class Triangle {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
System.out.print("Enter the length cathetus of a right triangle: ");
int a = sc.nextInt();
System.out.print("Enter the length of ... | true |
982d383851f8ac7e316ca5dd092dc772c9d39896 | Java | Giwi/karajan | /karajan/build/fr/suravenir/karajan/helpers/writers/XMLWriter.java | UTF-8 | 4,839 | 2.421875 | 2 | [] | no_license | package fr.suravenir.karajan.helpers.writers;
import java.io.File;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.text.DateFormat;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import javax.xml.datatype.XMLGregorianCalendar;
im... | true |
8bcbc50abf8c35f30beeea96b040f059a168f2e7 | Java | argeminis/android-basics | /app/src/main/java/es/argenito/trabajofinalandroid/EditarLugarActivity.java | ISO-8859-1 | 11,279 | 2.125 | 2 | [] | no_license | package es.argenito.trabajofinalandroid;
import android.app.Activity;
import android.content.ContentValues;
import android.content.Intent;
import android.database.Cursor;
import android.graphics.BitmapFactory;
import android.net.Uri;
import android.os.Bundle;
import android.provider.MediaStore;
import androi... | true |
52919e679b41a47a67fc4fe084ccba379cc1c0e6 | Java | laaposto/GOViz | /Servlets/InnerMunTopAfm.java | UTF-8 | 13,229 | 1.617188 | 2 | [] | no_license | import java.net.URL;
import java.nio.charset.Charset;
import org.json.JSONObject;
import javax.servlet.annotation.WebServlet;
import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;
import org.jdom.Document;
import org.jdom.Element;
import org.jdom.output.XMLOutputter;
import java.util.*;
import java.tex... | true |
05e3f19b4d50a3c9d8e4eacc3ba317161d65f03b | Java | alquimistacl/pruebaTecnica | /src/test/java/com/prueba/tecnica/service/SalesServiceTests.java | UTF-8 | 4,972 | 2.109375 | 2 | [] | no_license | package com.prueba.tecnica.service;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;
import static org.mockito.ArgumentMatchers.any;
import static org.mockito.BDDMockito.given;
import static org.mockito.Mockito.doNothing;
import java.util.ArrayList;
import java.util.Date;
import... | true |
bf5152090efe9cf60624e1b8e789302d807de6ea | Java | aspen13/lightssh | /lightssh/src/com/google/code/lightssh/project/scheduler/dao/PlanDetailDaoJpa.java | UTF-8 | 2,737 | 2.328125 | 2 | [] | no_license | package com.google.code.lightssh.project.scheduler.dao;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.List;
import javax.persistence.Query;
import org.apache.commons.lang3.StringUtils;
import org.springframework.stereotype.Repository;
import com.google.code.lightssh.common.dao.j... | true |
5bc7a8b3d4290d410f6d1e4c6640003f639ea27e | Java | MigankoAlexander/emsim-client | /src/main/java/emsimclient/EmsimClient.java | UTF-8 | 877 | 2.265625 | 2 | [] | no_license | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package emsimclient;
import java.io.File;
import javafx.application.Application;
import static javafx.application.Application.launch;
import javafx.scene.Scene;
import javafx.scene.paint.Color;
import javafx.... | true |
08f1beb90f14b716f69d48d7dfea8d4891b67fde | Java | JayHelaiya/R-D | /jpa/spring-boot-multiple-datasources-master/src/main/java/com/foobar/foo/repo/FooRepository.java | UTF-8 | 243 | 1.828125 | 2 | [] | no_license | package com.foobar.foo.repo;
import java.util.List;
import com.foobar.bar.domain.Bar;
import com.foobar.foo.domain.Foo;
/**
* @author jayesh.helaiya
*
*/
public interface FooRepository {
List<Foo> getfoos();
List<Bar> getbars();
}
| true |
c073541fc76b60cd93a0868ec145cf9317463a24 | Java | ankitech/Java8Assignment | /Java8/src/lambda/UserValidator.java | UTF-8 | 102 | 1.914063 | 2 | [] | no_license | package lambda;
public interface UserValidator {
boolean isValid(String name, String string);
}
| true |
16f2123f6216b16ee3c27cab7432f027ecf8f3f9 | Java | xujiankang6/mystudy20190927 | /mystudy/src/main/java/com/jiankang/javacoretechnologythetenversion/chapter9/v3/UpdateMapTest.java | UTF-8 | 628 | 3.171875 | 3 | [] | no_license | package com.jiankang.javacoretechnologythetenversion.chapter9.v3;
/*
*@create by jiankang
*@date 2020/6/20 time 15:42
*/
import java.util.HashMap;
import java.util.Map;
public class UpdateMapTest {
public static void main(String[] args) {
Map<String,Integer> m = new HashMap();
String word = "a... | true |
1a05e6ad3bbaa4799cd65fc08b8f609fb1813356 | Java | muadibbm/Advanced-Programming-Practices | /Object Oriented Programming/inheritence/Parent.java | UTF-8 | 530 | 3.1875 | 3 | [] | no_license | package Inheritence;
public class Parent extends Person{
private static int population = 0;
public Parent() {
population++;
}
public String whoAmI() {
return "I am a Parent";
}
public int getPopulation() {
return population;
}
public final String authority() {
return "Parent is in charge";
... | true |
c980fa110506acec83819c62f36d60ea2bc36ccc | Java | kilianpg/InciManager_e3b | /src/main/java/es/uniovi/asw/e3b/incimanager_e3b/inci_manager_gest/controllers/HomeController.java | UTF-8 | 1,346 | 2.078125 | 2 | [
"Unlicense"
] | permissive | package es.uniovi.asw.e3b.incimanager_e3b.inci_manager_gest.controllers;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.core.Authentication;
import org.springframework.security.core.context.SecurityContextHolder;
import org.springframework.stereotype.Controller;
impo... | true |
5b3d3e035cc5793d12cf016e39d237d0956e01ff | Java | guilhermegbm/GreenBuy | /src/Visao/Edicao/FRMEditarObjeto.java | UTF-8 | 26,223 | 2.09375 | 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 Visao.Edicao;
import Controle.ControleObjeto;
import Controle.ControleSubGrupo;
import Modelo.BEAN.Objeto;
import Modelo.BEAN.... | true |
74bc752e9df0983908dee41dac17f1316215dfd0 | Java | jokerboga111/MySocialNetWork | /src/main/java/Galaxy/DataBase/Golovach_JDBC_Main/JDBC_Friends/DaoFriendJDBC.java | UTF-8 | 7,808 | 2.40625 | 2 | [] | no_license | package Galaxy.DataBase.Golovach_JDBC_Main.JDBC_Friends;
import Galaxy.DataBase.DataBaseException.DBSystemException;
import Galaxy.DataBase.DataBaseException.NotUniqueUserEmailException;
import Galaxy.DataBase.DataBaseException.NotUniqueUserLoginException;
import Galaxy.DataBase.Golovach_JDBC_Main.Connections.Connecti... | true |
7b68e6892434ea260fb64f121c7e3297ac9c3b76 | Java | Docter60/Vox-Visio-Planus | /Vox Visio Planus/src/ui/element/MediaControl.java | UTF-8 | 5,295 | 2.4375 | 2 | [] | no_license | /**
*
*/
package ui.element;
import audio.SpectrumMediaPlayer;
import javafx.beans.value.ChangeListener;
import javafx.beans.value.ObservableValue;
import javafx.event.ActionEvent;
import javafx.event.EventHandler;
import javafx.scene.Group;
import javafx.scene.control.Button;
import javafx.scene.control.Slider;
im... | true |
d81928ced669f14971b6bcda5f8a8691a02922d5 | Java | rajupbiz/coredemo | /src/main/java/com/blob/model/ui/ShortlistedProfile.java | UTF-8 | 745 | 2.25 | 2 | [] | no_license | package com.blob.model.ui;
public class ShortlistedProfile {
private String fullName;
private String dateOfBirth;
private String occupation;
private String address;
public String getFullName() {
return fullName;
}
public void setFullName(String fullName) {
this.fullName = fullName;
}
pub... | true |
e0091f618a5c4175b12d91c91a99ff7e4d8263e3 | Java | imranau/names | /src/main/java/org/openepics/discs/names/ent/NameRelease.java | UTF-8 | 4,086 | 2.046875 | 2 | [] | no_license | /*
* This software is Copyright by the Board of Trustees of Michigan
* State University (c) Copyright 2012.
*
* You may use this software under the terms of the GNU public license
* (GPL). The terms of this license are described at:
* http://www.gnu.org/licenses/gpl.txt
*
* Contact Information:
* Fa... | true |
2b433466db0b12b5745389188da53f0a890b974e | Java | linuxnight1994/druidDemo | /xintiao/src/utry/psd/call/center/websocket/bo/DeptTreeDTO.java | UTF-8 | 1,304 | 2.25 | 2 | [] | no_license | package utry.psd.call.center.websocket.bo;
import java.util.List;
/**
* 组织树dto类
*/
public class DeptTreeDTO {
/**
* 组织id
*/
private String id;
/**
* 组织名称
*/
private String name;
/**
* 子节点数据
*/
private List<DeptTreeDTO> child;
/**
* 租住code
*/
private String code;
/**
* 父级id
*/
private S... | true |
13eb7361128b1acb6a5b9644f4dd5b7878894f0b | Java | jimzhaozhengwang/Chore-Story | /android/app/src/main/java/com/chorestory/templates/RegisterRequest.java | UTF-8 | 474 | 2.203125 | 2 | [] | no_license | package com.chorestory.templates;
public class RegisterRequest {
private String email;
private String clan_name;
private String name;
private String password;
private Integer picture;
public RegisterRequest(String email, String clanName, String name, String password, int picture) {
thi... | true |
6c5a207066ffef5814856a6511292408a6283506 | Java | 320853112/Restaurant | /Restaurant/src/com/Smileyes/service/FoodService_IN.java | UTF-8 | 350 | 1.890625 | 2 | [] | no_license | package com.Smileyes.service;
import java.util.List;
import com.Smileyes.entity.Food;
/*
* 食品服务接口
* */
public interface FoodService_IN {
void add(Food food);
void delete(int id);
Food findById(int id);
void update(Food food);
List<Food> findByName(String name);
List<Food> getAll();
List<Food> findByT... | true |
b88c22bd1b43584b2dc1b73264d3e628b7f6a80b | Java | suryapalukuri/Logistics | /app/src/main/java/com/example/admin/logistics/Depo.java | UTF-8 | 1,782 | 2.046875 | 2 | [] | no_license | package com.example.admin.logistics;
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.AdapterView;
import android.widget.Button;
import android.widget.Spinner;
import android.widget.TextView;
public class Depo ext... | true |
4017f40b7e691dfc80491abf7d59a1d3790cfbbe | Java | SCPractice/Help | /Help/src/cn/edu/zjut/action/OrderUpdateAction.java | GB18030 | 2,605 | 2.5 | 2 | [] | no_license | /*ܹעḨAction*/
package cn.edu.zjut.action;
import java.text.DecimalFormat;
import java.util.Map;
import com.opensymphony.xwork2.ActionContext;
import cn.edu.zjut.po.*;
import cn.edu.zjut.service.IOrderUpdateController;
public class OrderUpdateAction {
private IOrderUpdateController orderUpdateController... | true |
a649998d3124b13cc1da8c2c167fdb0299770c20 | Java | jxf44944/- | /src/com/service/impl/RolesServiceImpl.java | UTF-8 | 4,111 | 2.390625 | 2 | [] | no_license | package com.service.impl;
import java.util.HashSet;
import java.util.Iterator;
import java.util.List;
import java.util.Set;
import javax.annotation.Resource;
import org.springframework.stereotype.Service;
import com.dao.ILimitsDao;
import com.dao.IRoleAndLimitsDao;
import com.dao.IRolesDao;
import com.entity.TActer... | true |
b47b6172c6a0383a9e9078e40865c80ab443a4c6 | Java | DavidKahan/ContactsList | /app/src/main/java/com/sample/david/contactslist/presenter/SplashPresenter.java | UTF-8 | 3,189 | 2.46875 | 2 | [] | no_license | package com.sample.david.contactslist.presenter;
import android.app.Activity;
import android.os.AsyncTask;
import android.util.Log;
import android.widget.Toast;
import com.sample.david.contactslist.model.Contact;
import com.sample.david.contactslist.model.DatabaseHandler;
import com.sample.david.contactslist.model.Ht... | true |
8504fc6b963aab412ede5d2492879c99199c7ce5 | Java | arias111/SemestrovkaJwtVersion | /src/main/java/com/spring/basics/configuration/WebSocketConfig.java | UTF-8 | 966 | 2.25 | 2 | [] | no_license | package com.spring.basics.configuration;
import com.spring.basics.handlers.WebSocketHandshakeHandler;
import com.spring.basics.handlers.WebSocketMessagesHandler;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.so... | true |
6bfa82e2066136e8c4a6dc926e7c8683b156ed2d | Java | rauny-henrique/projeto-web_biblioteca-UFAB | /src/test/java/com/ufab/biblioteca_ufab/entidadesTestes/PermissaoTeste.java | UTF-8 | 594 | 2.421875 | 2 | [] | no_license | package com.ufab.biblioteca_ufab.entidadesTestes;
import static org.junit.Assert.*;
import org.junit.Before;
import org.junit.Test;
import com.ufab.biblioteca_ufab.models.entidades.Permissao;
public class PermissaoTeste {
Permissao permissao;
@Before
public void setUp() throws Exception {
per... | true |
2a8fc8f2f4842d0859ab7783945438e910ebd63b | Java | goyaher/java_practice | /springhibernateexample/src/main/java/com/springhibernateexample/generated/Category.java | UTF-8 | 929 | 2.375 | 2 | [] | no_license | package com.springhibernateexample.generated;
// Generated Jul 6, 2018 11:16:07 AM by Hibernate Tools 5.3.0.Beta2
import java.util.HashSet;
import java.util.Set;
/**
* Category generated by hbm2java
*/
public class Category implements java.io.Serializable {
private int id;
private String name;
priv... | true |
4ecb93cb035dde25449955199d79dcabdc1979d8 | Java | Zandex/Analisis_numerico_4S | /4S-Analisis-Numerico/app/src/main/java/co/edu/eafit/dis/analisisnumerico/equation_system/method_class/PartialPivoting.java | UTF-8 | 1,213 | 2.984375 | 3 | [
"MIT"
] | permissive | package co.edu.eafit.dis.analisisnumerico.equation_system.method_class;
import java.math.BigDecimal;
import co.edu.eafit.dis.analisisnumerico.utility_class.MethodsUtil;
public class PartialPivoting{
public static BigDecimal[][] partialPivoting(BigDecimal[][]mA, int n)throws Exception{
BigDecimal [][]A=... | true |
00a7469a1e74cde78d93814c8481c45c6fceb251 | Java | averroes96/FXTools | /src/com/houarizegai/fxtools/internationalization/MultiLangController.java | UTF-8 | 1,214 | 2.46875 | 2 | [
"MIT"
] | permissive | package com.houarizegai.fxtools.internationalization;
import javafx.fxml.FXML;
import javafx.fxml.Initializable;
import javafx.scene.control.Label;
import java.net.URL;
import java.util.Locale;
import java.util.ResourceBundle;
public class MultiLangController implements Initializable {
@FXML
private Label l... | true |
af09462b790193f2840f1af3edb6971f9639dad6 | Java | magiebox/magiebox-SDK | /src/main/java/com/tszj/chain/sdk/controller/LoginController.java | UTF-8 | 2,494 | 2.046875 | 2 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | package com.tszj.chain.sdk.controller;
import com.tszj.chain.sdk.api.ParamApi;
import com.tszj.chain.sdk.security.RestResponse;
import com.tszj.chain.sdk.utils.ConvertUtil;
import com.tszj.chain.sdk.utils.JwtUtils;
import com.tszj.chain.gmc4j.ActionSender;
import org.springframework.beans.factory.annotation.Autowired... | true |
98aec17d0ff1b27341700d904c5a480ca26b102e | Java | nuptkwz/algorithm-practice | /src/main/java/com/algorithm/practice/other/BigNumber.java | UTF-8 | 1,397 | 4.125 | 4 | [] | no_license | package com.algorithm.practice.other;
import java.util.Scanner;
/**
* Description
* description:有多个整数,求这些数能拼接成为的最大数
* 例:9 990 22 987
* 输出:9->990->987->22
* Date 2021/3/28 13:45
* Created by kwz
*/
public class BigNumber {
public static void main(String[] args) {
Scanner scanner = new Scanner(Syste... | true |
295a410a0b18ec283b4af76e9fb2742f7ef47e57 | Java | jaw2741/Java-Problem | /33-轉置矩陣.java | UTF-8 | 833 | 3.109375 | 3 | [] | no_license | import java.util.*;
public class Main{
public static void main(String args[]){
Scanner sc = new Scanner(System.in);
int n = sc.nextInt(),m = sc.nextInt();
int a[][] = new int[n][m];
for(int i=0;i<n;i++) {
for(int j=0;j<m;j++... | true |
6393c9bb24ddfc30971a7404d50607248769fa1e | Java | myaniu/vert.x | /vertx-platform/src/main/java/org/vertx/java/platform/impl/resolver/OldResolver.java | UTF-8 | 1,234 | 1.789063 | 2 | [
"Apache-2.0"
] | permissive | package org.vertx.java.platform.impl.resolver;/*
* Copyright 2013 Red Hat, Inc.
*
* Red Hat licenses this file to you 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/... | true |
40bb74ed04f92e93752d87dc3860c9db2a179bb9 | Java | yhmgood0130/kaffeduck-java-server-side | /src/main/java/com/moe/kaffeduck/repos/CoffeemakerRepository.java | UTF-8 | 587 | 1.984375 | 2 | [] | no_license | package com.moe.kaffeduck.repos;
//import java.util.List;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.repository.PagingAndSortingRepository;
import org.springframework.data.repository.query.Param;
import com.moe.kaffeduck.entities.Coff... | true |
6440d4a96daba4a282242715e572b1ef3584dc2b | Java | AndreasWBartels/imagen | /modules/core/src/main/java/org/eclipse/imagen/widget/ScrollingImagePanel.java | UTF-8 | 9,621 | 2.5625 | 3 | [
"Apache-2.0"
] | permissive | /*
* Copyright (c) 2019, Oracle and/or its affiliates. All rights reserved.
*
* 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... | true |
e56a6438edb0d9324b57b8a161a722dd720dcffd | Java | pai982010j90/Hibernate---Inicial | /src/hibernate1/Libro.java | UTF-8 | 1,090 | 2.546875 | 3 | [] | no_license | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package hibernate1;
import java.util.Date;
public class Libro {
private int id;
private String titulo;
private Date fechaPublicacion;
private float precio;
public Libro() {
}
public Li... | true |
fc35ce89b72feb2f4216117de84cc8d681e8baff | Java | franzmathauser/javabackend | /src/test/java/com/nttdata/masterthesis/javabackend/services/rest/security/AbstractSecureTest.java | UTF-8 | 1,854 | 2.25 | 2 | [] | no_license | /********************************************
* M A S T E R T H E S I S *
* *
* Franz Mathauser *
* Hochschule München *
* Immatrikulationsnummer: 01161608 *
* ... | true |
66bfea791468e878f43c0dea938ea900d8fab573 | Java | moutainhigh/boss2 | /src/main/java/cn/eeepay/framework/service/impl/StaticUserInfoServiceImpl.java | UTF-8 | 1,430 | 1.945313 | 2 | [] | no_license | package cn.eeepay.framework.service.impl;
import java.util.List;
import javax.annotation.Resource;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import cn.eeepay.framework.dao.StaticUserInfoDao;
import cn.eeepay.framework.db.pagination.Page;
import c... | true |
c5b537def3767f6c3dc5bff5fe07b9c1022216b4 | Java | owetterau/neo4j-websockets-example | /server/src/main/java/de/oliverwetterau/neo4j/examples/websockets/server/domain/entities/TranslatedMovie.java | UTF-8 | 1,324 | 2.875 | 3 | [] | no_license | package de.oliverwetterau.neo4j.examples.websockets.server.domain.entities;
import org.neo4j.graphdb.Node;
import java.util.Locale;
public class TranslatedMovie {
private Long id;
private String title;
private Integer year;
protected TranslatedMovie(Node node) throws Exception {
if (!node.ha... | true |
c5d94aa736f4ef488ce8c41aa317235bbad75f2f | Java | Neyzoter/oj | /src/main/java/cn/neyzoter/module/rpc/RpcConsumer.java | UTF-8 | 1,443 | 2.765625 | 3 | [
"MIT"
] | permissive | package cn.neyzoter.module.rpc;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.lang.reflect.Method;
import java.net.Socket;
/**
* RPC 服务使用者
* @author Charles Song
* @date 2020-4-19
*/
public class RpcConsumer {
public static void main (String[] args) {
try {
... | true |
e4005486ea6ddd044669e312d8da67753f5008d0 | Java | rooma15/TextHandling | /src/main/java/composite/TextHandler.java | UTF-8 | 1,825 | 3.109375 | 3 | [] | no_license | package composite;
import Parser.impl.SentenceParser;
import Parser.impl.TextParser;
import Parser.impl.ParagraphParser;
import Service.LoggerService;
import composite.impl.Paragraph;
import composite.impl.Sentence;
import java.util.ArrayList;
import java.util.List;
import java.util.stream.Collectors;
public class T... | true |
c2c1e2d687f2d639cd6cdc95aa815acd47df0137 | Java | AlessandroPedace95/The_Grower | /ServiceLayer/src/main/java/serviceEntityImp/VegetableServiceImp.java | UTF-8 | 993 | 2.40625 | 2 | [] | no_license | package serviceEntityImp;
import serviceEntity.VegetableService;
import entity.vegetables.Vegetable;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import repository.VegetableRepository;
import javax.validation.Valid;
import java.util.List;
import java.ut... | true |
469e8d576cb1580f894575ce2a1d3df47af91adb | Java | 1017148276/ceshi | /app/src/main/java/com/example/sks/util/Window.java | UTF-8 | 190 | 1.96875 | 2 | [] | no_license | package com.example.sks.util;
import android.view.View;
/**
* Created by sks on 2018/4/27.
*/
public class Window {
public void show(View child){
child.draw(null);
}
}
| true |
f7c9ac0d06c2a6d1209a39822f988706682d36a5 | Java | tsathishmca/WeatherApp | /WeatherApp/WeatherApp/app/src/main/java/com/example/sathishthirumoorthy/weatherapp/WeatherActivity.java | UTF-8 | 4,523 | 2.203125 | 2 | [] | no_license | package com.example.sathishthirumoorthy.weatherapp;
import android.content.Intent;
import android.os.Bundle;
import android.support.design.widget.FloatingActionButton;
import android.support.design.widget.Snackbar;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.Toolbar;
import androi... | true |
85e322fab0b4df27bf829b820dc1da4550d95f0e | Java | AlexandreMatheus/projeto-fujioka | /src/main/java/br/com/alexandreccapi/AlexandreProjetoApi/Services/PersonService.java | UTF-8 | 1,042 | 2.421875 | 2 | [] | no_license | package br.com.alexandreccapi.AlexandreProjetoApi.Services;
import br.com.alexandreccapi.AlexandreProjetoApi.Domain.Person;
import br.com.alexandreccapi.AlexandreProjetoApi.Repository.PersonRepository;
import br.com.alexandreccapi.AlexandreProjetoApi.Services.Dto.PersonDTO;
import javassist.NotFoundException;
import o... | true |
a08fd10fb111cbd9b0c7011249bc27163f07a550 | Java | wengqt/ingWorld | /src/main/java/com/ingzone/base/ResultStatusMessage.java | UTF-8 | 237 | 1.742188 | 2 | [] | no_license | package com.ingzone.base;
/**
* Created by 王镜鑫 on 17-4-23 下午10:08.
*/
public interface ResultStatusMessage {
String M_OK = "ok";
String M_FAILURE = "failure";
String M_PERMISSION_DENIED = "permission denied";
}
| true |
2b59b7b02b503ee41a1e7a29d0c8d937bd75c991 | Java | ipince/bookspicker | /src/com/bookspicker/client/presenter/OfferManagementPresenter.java | UTF-8 | 6,374 | 2.109375 | 2 | [] | no_license | package com.bookspicker.client.presenter;
import java.util.List;
import com.bookspicker.client.service.LocalOfferServiceAsync;
import com.bookspicker.client.service.UserServiceAsync;
import com.bookspicker.client.event.CreateOfferEvent;
import com.bookspicker.client.event.EditOfferEvent;
import com.bookspicke... | true |
3b6ba849f2f97f9a96b82dda1a2a5fe2b7a2f0bb | Java | Elaine-hung/Javasrc | /TestString1.java | UTF-8 | 1,573 | 4.03125 | 4 | [] | no_license |
public class TestString1 {
public static void main(String[] args) {
String name = "vincent";// pool會產生vincent字, 回傳記憶體位置給name變數
String name1 = "vincent";// 第二次再要, pool直接回傳vincent記憶體位置給name1, 不會再產生新的字
// name = "vincent1";// immutable; 會在pool區產生新的vincent1
String name2 = new String("vincent");// new ... | true |
393ab04b7cdcbc16be46e56a61ac6d61f32efb90 | Java | Litroom/Exam | /src/main/java/com/sergej/warehouse/controllers/InventoryController.java | UTF-8 | 2,593 | 2.3125 | 2 | [] | no_license | package com.sergej.warehouse.controllers;
import com.sergej.warehouse.dto.ClientsGetDTO;
import com.sergej.warehouse.dto.InventoryGetDTO;
import com.sergej.warehouse.dto.InventoryPutDTO;
import com.sergej.warehouse.services.InventoryService;
import io.swagger.annotations.ApiOperation;
import org.slf4j.Logger;
import o... | true |
00ca3872dfdfd5f2169e2b29290fb4f3554eefcf | Java | ducthotran2010/s.i.m.w.o.r.l.d-xml | /src/thotd/handlers/SAXHtmlHandler.java | UTF-8 | 1,957 | 2.828125 | 3 | [] | no_license | package thotd.handlers;
import org.xml.sax.Attributes;
import org.xml.sax.Locator;
import org.xml.sax.SAXException;
import org.xml.sax.helpers.DefaultHandler;
import thotd.dto.HtmlTagDTO;
import java.io.Serializable;
import java.util.*;
/**
* NOT USE ANY MORE
*
* {@code HtmlHandler} is base on DefaultHanlder of S... | true |
1b0112ecb996e1ee17f2bc795b4d96823aefc69b | Java | yusuflimdiwala/LeetCode-2 | /src/main/java/com/ajgaonkar/leetcode/LC662_Maximum_Width_Of_Binary_Tree.java | UTF-8 | 1,182 | 3.3125 | 3 | [
"Apache-2.0"
] | permissive | package com.ajgaonkar.leetcode;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
public class LC662_Maximum_Width_Of_Binary_Tree {
public static class TreeNode {
int val;
TreeNode left;
TreeNode right;
... | true |
95bedb6d9a8eb531255eccb95237be22be08d44c | Java | SigniFlow/connect-java-sdk | /src/test/java/com/SigniFlowup/connect/models/GetPrepperTemplateListResponseTest.java | UTF-8 | 1,741 | 1.65625 | 2 | [] | no_license | /*
* SigniFlow OpenAPI Spec v1
* ## SigniFlow API used to automate esignature workflow creation and management.
*
* The version of the OpenAPI document: 1.0
* Contact: support@signiflow.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator... | true |
62dc4a7fcd63e8b40b9270e477e2edb752ada3db | Java | terais/terai | /src/main/java/terai/controller/ErrorController.java | UTF-8 | 651 | 2.15625 | 2 | [] | no_license | package terai.controller;
import org.springframework.stereotype.Controller;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.scene.control.Label;
import javafx.scene.control.ScrollPane;
import javafx.stage.Modality;
import javafx.stage.Stage;
@Controller
public class ErrorController {
public ... | true |
b58f35ec1b5aa204cba30f81522a5be344cae44b | Java | puneteamsangsoftwares/SanguineERP | /src/com/sanguine/controller/clsTallyLinkUpController.java | UTF-8 | 7,653 | 1.804688 | 2 | [] | no_license | package com.sanguine.controller;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import javax.servlet.http.HttpServletRequest;
import javax.validation.Valid;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org... | true |
b9bbb8e65f02708faf7c996f3efa71fd43cefd06 | Java | lcgao/Personal | /music_module/src/main/java/com/lcgao/music_module/LeakCanaryTest.java | UTF-8 | 692 | 2.265625 | 2 | [] | no_license | package com.lcgao.music_module;
import android.content.Context;
import android.widget.TextView;
public class LeakCanaryTest {
private static LeakCanaryTest INSTANCE = null;
private Context context;
private TextView mTv;
public static LeakCanaryTest getInstance(Context context){
if(INSTANCE ==... | true |
18a01769cc62a3c5e4738b8d3214690fda68564b | Java | YassKnight/Knight | /app/src/main/java/com/knight/asus_nb/knight/UI/LuShuDaoHangActivity.java | UTF-8 | 3,846 | 1.921875 | 2 | [] | no_license | package com.knight.asus_nb.knight.UI;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.widget.SwipeRefreshLayout;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.AdapterView;
import android.widget.ListView;
import android.w... | true |
2d4443c76e9c875fe08c82b64fb685d72e52bdb6 | Java | xusanduo08/Java | /网络编程/使用TCP通信的服务端和客户端/TCPServer2.java | UTF-8 | 2,507 | 3.53125 | 4 | [] | no_license | package com.mengfansheng.Net;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import java.net.ServerSocket;
import java.net.Socket;
import java.util.ArrayList;
import java.util.List;
public class TCPServer {
private List<Channel> channelList = new ArrayList<>(); // 初始化... | true |
3e48c2a77e488f3c2f7da35a1d93dcf5eac742e8 | Java | mrLWachs/FinalExample | /src/year2019/cs40s/systemfilemanager/RenamerLogic.java | UTF-8 | 6,151 | 2.90625 | 3 | [] | no_license |
/** required package class namespace */
package year2019.cs40s.systemfilemanager;
/** required imports */
import java.io.BufferedReader;
import java.io.File;
import java.io.FileReader;
import java.io.IOException;
import java.nio.file.Files;
import javax.swing.JFileChooser;
import javax.swing.filechooser.FileFilter;
i... | true |
a4d321059718c24e055d91c05622fdd0fb24eff0 | Java | Finance-Investissements/PM-FMPproject | /app/src/main/java/com/ismaelbalaghni/fmpproject/presentation/view/StockAdapter.java | UTF-8 | 5,198 | 2.5 | 2 | [] | no_license | package com.ismaelbalaghni.fmpproject.presentation.view;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Filter;
import android.widget.Filterable;
import android.widget.ImageView;
import android.widget.TextView;
import ... | true |
451ea1a1d4100c338a256443d35c702095b07741 | Java | cout970/CakeApi | /src/main/api/org/cakepowered/api/util/DirectionYaw.java | UTF-8 | 548 | 3.046875 | 3 | [] | no_license | package org.cakepowered.api.util;
public enum DirectionYaw {
NORTH(0, 180),
SOUTH(1, 0),
WEST(2, 90),
EAST(3, 270);
private static final int OPOSITES[] = {1, 0, 3, 2};
int index;
float angle;
DirectionYaw(int index, float angle) {
this.index = index;
this.angle = angl... | true |
ce7254894877b230cc7efba46108c1e19f36a659 | Java | zhangbailu666/SpringBoot-MyBatis | /src/test/java/hello/GreetingCtrlTests.java | UTF-8 | 1,640 | 2.15625 | 2 | [] | no_license | //package hello;
//
//import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.get;
//import static org.springframework.test.web.servlet.result.MockMvcResultHandlers.print;
//import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.jsonPath;
//import static org.springfram... | true |
3f8f8a949a7e4396ef07d46c6c3cb123dc21e68b | Java | fjchenmq/chenmq | /springboot/src/main/java/com/cmq/demo/event/MySource.java | UTF-8 | 1,532 | 3.078125 | 3 | [] | no_license | package com.cmq.demo.event;
import java.util.EventListener;
import java.util.HashSet;
import java.util.Set;
/**
* @author Thief
*/
public class MySource {
private int flag = 0;
Set<EventListener> listeners = new HashSet<EventListener>();
/**
* 注册事件监听器
*
* @param listener
*/
pub... | true |
e4160d1ae5739b9e0e58ae1e0482746cb7ed9dd5 | Java | wy8162/xperia | /springdata/src/main/java/y/w/springdata/error/ErrorHandler.java | UTF-8 | 645 | 2.234375 | 2 | [] | no_license | package y.w.springdata.error;
import lombok.extern.slf4j.Slf4j;
import org.springframework.http.client.ClientHttpResponse;
import org.springframework.util.StreamUtils;
import org.springframework.web.client.DefaultResponseErrorHandler;
import java.io.IOException;
import java.nio.charset.Charset;
/**
* ErrorHandler
... | true |
503ff08743a17edc392028bb117622026672a2cc | Java | brodewal/Websight-Protobuild | /SQLLinkFile/src/scrapCode/callSQL.java | UTF-8 | 2,724 | 3.171875 | 3 | [] | no_license | /**
*
*/
package scrapCode;
import java.io.IOException;
import java.sql.*;
/**
* @author gce
*
*/
public class callSQL {
public static void main(String[] args) {
// TODO Auto-generated method stub
int[] array;
double sum;
String myDriver = "oracle.jdbc.driver.OracleDriver";
Stri... | true |
6693f0fb4ae2368eeef50149f88ce733356c24b6 | Java | Rovva/Lab2_algoritmer | /hash/HashProbe.java | UTF-8 | 8,671 | 2.84375 | 3 | [] | no_license | package hash;
import hash.NumberGenerator;
import java.math.*;
import java.util.Arrays;
public class HashProbe {
NumberGenerator num;
int arraySize;
int[] HashTable;
String [] statusTable;
int down1;
int up1;
int c;
int [] lastRehash;
int nrRehash;
int curRehash;
int nrInsertcollision;
int longestChain... | true |