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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
bdd05234423468fd3b2e1eb78afc87c68fff6743 | Java | tarpboy/sendemailtest | /app/src/main/java/com/woongjin/sendemailtest/Define.java | UTF-8 | 3,154 | 2.421875 | 2 | [] | no_license | package com.woongjin.sendemailtest;
import java.text.NumberFormat;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;
/**
* Created by Jonathan on 2017. 1. 8..
*/
public class Define {
public static final int MESSAGE_STATE_CHANGE = 1;
pub... | true |
a37383382e2ce1b2b06016f0c0bbd4e722593a1b | Java | xiaosigua1/SpringMVC | /12SSM/src/main/java/com/xdf/dao/UserMapper.java | UTF-8 | 154 | 1.773438 | 2 | [] | no_license | package com.xdf.dao;
import com.xdf.bean.User;
public interface UserMapper {
/**
* 登录
*/
User login(String name, String pwd);
}
| true |
64291bd8727bd198805d9e23fe10eac0c7643d1b | Java | slysonway/PrivateSale | /app/src/main/java/com/kfp/privatesale/view/ui/activity/ListActivity.java | UTF-8 | 2,493 | 2.125 | 2 | [] | no_license | package com.kfp.privatesale.view.ui.activity;
import androidx.annotation.NonNull;
import androidx.appcompat.app.AppCompatActivity;
import androidx.fragment.app.Fragment;
import androidx.fragment.app.FragmentManager;
import androidx.fragment.app.FragmentTransaction;
import android.content.Intent;
import android.os.Bun... | true |
399d90b7677f1eb75c811131db46069b17a77945 | Java | riomukhtarom/android-sql | /app/src/main/java/com/rio/sqliteexample/TeamHelper.java | UTF-8 | 2,323 | 2.671875 | 3 | [] | no_license | package com.rio.sqliteexample;
import android.content.ContentValues;
import android.content.Context;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import java.util.ArrayList;
import static com.rio.sqliteexample.DatabaseContract.TABLE_NAME;
import static com.rio.sqliteexample.Database... | true |
f8fab3cbad1a297416a2ebd4cf7988e110c86b76 | Java | ferdj1/fer-ryzetello-webserver | /src/main/java/my/project/fer/ryzetello/ryzetellowebserver/service/WebSocketServiceImpl.java | UTF-8 | 2,069 | 2.21875 | 2 | [] | no_license | package my.project.fer.ryzetello.ryzetellowebserver.service;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper;
import my.project.fer.ryzetello.ryzetellowebserver.model.WebSocketMessage;
import my.project.fer.ryzetello.ryzetellowebserver.model.WebSocketMessag... | true |
da075f7b866a3f1e2f1579a850814eb21973eb90 | Java | Nookie25/CC11 | /My knight's tour.java | UTF-8 | 196 | 1.75 | 2 | [] | no_license | /*
Name: Sean Jeffrey B. Fung
Section: CCA
Date:
Description: This program will be used to determine a knight's tour solution (if there is any) of a given coordinate of an 8x8 chess board by the user.
*/ | true |
764c1ed1d73951434cfb349d8c8a3ebed185e351 | Java | a0samue/pace-cnd-java | /spring-cloud-contracts/spring-cloud-contract-client/src/main/java/io/pivotal/pace/model/Profile.java | UTF-8 | 608 | 2.453125 | 2 | [] | no_license | package io.pivotal.pace.model;
import java.math.BigDecimal;
public class Profile {
private BigDecimal income;
private BigDecimal loanAmount;
public Profile() {
}
public Profile(double income, double loanAmount) {
this.income = BigDecimal.valueOf(income);
this.loanAmount = BigDecimal.valueOf(loanAmoun... | true |
8cf07c7045047aac2af1ba5581524ea24b1e70d7 | Java | rajjaiswalsaumya/spring-boot-h2-demo | /src/main/java/org/cdac/SpringBootH2DemoApplication.java | UTF-8 | 1,020 | 2.015625 | 2 | [] | no_license | package org.cdac;
import org.cdac.models.User;
import org.cdac.repositories.UserRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplic... | true |
8c88ec0b0c4d667faac1d3a9cc5f47049c173ab5 | Java | aesopcmc/springcloudlearn | /microservice-consumer-movie-feign/src/main/java/com/chao/cloud/ConsumerMovieFeignApplication.java | UTF-8 | 539 | 1.65625 | 2 | [] | no_license | package com.chao.cloud;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.circuitbreaker.EnableCircuitBreaker;
import org.springframework.cloud.openfeign.EnableFeignClients;
@EnableFeignClients//feign
@Enable... | true |
3465bd8330a362b10dac426a8313b8d4dda57d01 | Java | github/codeql | /java/ql/test/stubs/java-ee-el/javax/el/MethodExpression.java | UTF-8 | 131 | 1.609375 | 2 | [
"MIT"
] | permissive | package javax.el;
public class MethodExpression {
public Object invoke(ELContext context, Object[] params) { return null; }
}
| true |
90bec6d790ea54d82def61b4263b095fdf2a43c9 | Java | JereChen11/Android_ContentProvider_Learning | /app/src/main/java/com/jere/android_contentprovider_learning/MyContentObserver.java | UTF-8 | 1,201 | 2.40625 | 2 | [] | no_license | package com.jere.android_contentprovider_learning;
import android.database.ContentObserver;
import android.net.Uri;
import android.os.Handler;
/**
* @author jere
*/
public class MyContentObserver extends ContentObserver {
public static final int USER_TABLE_WHAT_CODE = 1111;
public static final int SCORE_TAB... | true |
0d594ec8d77c0f1c01d1549f3ac710746c44d769 | Java | nova-27/ServerManager | /SMFB_Core/src/main/java/com/github/nova_27/mcplugin/servermanager/core/command/MinecraftCommandExecutor.java | UTF-8 | 6,357 | 2.53125 | 3 | [
"Apache-2.0"
] | permissive | package com.github.nova_27.mcplugin.servermanager.core.command;
import com.github.nova_27.mcplugin.servermanager.core.utils.Messages;
import net.md_5.bungee.api.CommandSender;
import net.md_5.bungee.api.chat.TextComponent;
import net.md_5.bungee.api.plugin.Command;
import net.md_5.bungee.api.plugin.TabExecutor;
impor... | true |
24fd30c4fa7b5952a55d3b260df5c20c6fea6a11 | Java | a595834/dat102 | /Stabel/src/no/hvl/dat102/klient/KlientLabyrint.java | UTF-8 | 492 | 2.671875 | 3 | [] | no_license | package no.hvl.dat102.klient;
public class KlientLabyrint {
public static void main(String[] args) {
Labyrint labyrint = new Labyrint();
System.out.println("labyrinten");
System.out.println(labyrint);
LabyrintSpill spill = new LabyrintSpill(labyrint);
if (spill.gjennomgaa()) {
Sy... | true |
c00d2054ea02115853a0f2461bf863e6ff0caec7 | Java | maple00/RainWoodOA | /app/src/main/java/com/rainwood/oa/presenter/IArticlePresenter.java | UTF-8 | 914 | 1.8125 | 2 | [] | no_license | package com.rainwood.oa.presenter;
import com.rainwood.oa.base.IBasePresenter;
import com.rainwood.oa.view.IArticleCallbacks;
/**
* @Author: a797s
* @Date: 2020/6/5 18:12
* @Desc: 文章管理 ---沟通技巧、管理制度、开发文档、帮助中心
*/
public interface IArticlePresenter extends IBasePresenter<IArticleCallbacks> {
/**
* 沟通技巧
... | true |
e8cdcde55a34619af918b97fbdc75fe56e3501fb | Java | liubin97/LogisticalManagement | /dzd/src/com/neuedu/controller/SubWarehouseServlet.java | UTF-8 | 8,728 | 2.28125 | 2 | [] | no_license | package com.neuedu.controller;
import java.io.IOException;
import java.io.PrintWriter;
import java.sql.SQLException;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
import javax.servlet.ServletException;
import javax.servlet.ServletRequest;
import javax.servlet.http.HttpServ... | true |
a611077971cf6bb8737e2702b3e5edf201300b7b | Java | subbu-k/Hibernate_Practice | /Demo2/src/main/java/com/sm/demo2/Alien.java | UTF-8 | 1,089 | 2.640625 | 3 | [] | no_license | package com.sm.demo2;
import java.util.List;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.OneToMany;
@Entity
public class Alien {
@Id
private int id;
//private String name;
private Name name;
private int points;
//One Alien Can Have Many Bike's(... | true |
0492c4d20b697fcf60af92f8588f5e4e87a202c0 | Java | buixuanthe2212/reduxThunk | /android/app/src/main/java/com/jinjerkeihi/nfcfelica/transit/nextfare/record/NextfareTransactionRecord.java | UTF-8 | 5,755 | 2.140625 | 2 | [] | no_license | /*
* NextfareTapRecord.java
*
* Copyright 2015-2016 Michael Farrell <micolous+git@gmail.com>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at y... | true |
a7918c3cc70c543edc2adf58ee2b2755fd7c1f65 | Java | madanankurmalviya/GooglePageProject | /GoogleProject/src/test/java/com/google/test/NewsPageTest.java | UTF-8 | 1,243 | 2.046875 | 2 | [] | no_license | package com.google.test;
import java.io.IOException;
import org.testng.Assert;
import org.testng.annotations.AfterMethod;
import org.testng.annotations.BeforeMethod;
import org.testng.annotations.Test;
import com.google.base.BaseTest;
import com.google.pages.GoogleSecondPage;
import com.google.pages.LoginPage;
impor... | true |
02756f459899cda8260b8bff97e582732214ebe5 | Java | meeras26/Demoautomationtesting | /src/main/java/Pageobjects/framePage.java | UTF-8 | 929 | 2.234375 | 2 | [] | no_license | package Pageobjects;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
public class framePage
{
public WebDriver driver;
public framePage(WebDriver driver2)
{
// TODO Auto-generated constructor stub
this.driver=driver2;
}
By switchlink=By.cssSel... | true |
fdca1daa347db042c6761da3053467df616b74e7 | Java | AlexRod97/examen1 | /src/main/java/gt/edu/url/examen1/api/Monster.java | UTF-8 | 356 | 2.0625 | 2 | [] | no_license | package gt.edu.url.examen1.api;
public interface Monster {
public String getElemento();
public void setElemento(String element);
public int getEdad();
public void setEdad(int age);
public String getColor();
public void setColor(String colorN);
public void agigantarse ();
public void caminarLent... | true |
a502618e00194188e706e3fd2d88d3959370d015 | Java | MayurSTechnoCredit/JAVATechnoJuly2021 | /src/parthav/ParthavD_Assignment14/MaxNumberFromArray.java | UTF-8 | 344 | 3.109375 | 3 | [] | no_license | package parthav.ParthavD_Assignment14;
public class MaxNumberFromArray {
int maxNumber;
void printMaxNumberFromArray(int[] arr) {
for (int index = 0; index < arr.length; index++) {
if (maxNumber <= arr[index]) {
maxNumber = arr[index];
}
}
System.out.println("The max number from the given array is:... | true |
9b7af4712971a493fb4a99e47715487209f9ef06 | Java | yankuokuo/JD_demo | /app/src/main/java/bwei/com/jd_demo/activity/SearchActivity.java | UTF-8 | 4,379 | 1.90625 | 2 | [] | no_license | package bwei.com.jd_demo.activity;
import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.GridLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.util.Log;
import android.view.View;
import android.widget.EditTe... | true |
be6058a8de5c728f80bdc4804acaaa8b0849612b | Java | bpeak/springbootMVCSample | /src/main/java/com/bpeak/Dao/StudentDao.java | UTF-8 | 3,445 | 2.78125 | 3 | [] | no_license | package com.bpeak.Dao;
import com.bpeak.Entity.Student;
import org.springframework.stereotype.Repository;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.Statement;
import java.util.Collection;
import java.util.HashMap;
@Repository
public class StudentDao {
... | true |
e06281c099a87c74986ed6645531af883a5d9dfb | Java | AntonYastrebkov/MusicStreaming | /src/main/java/com/music/streaming/model/Song.java | UTF-8 | 409 | 2.109375 | 2 | [] | no_license | package com.music.streaming.model;
import lombok.Data;
import lombok.NoArgsConstructor;
import javax.persistence.*;
@Entity
@Data
@NoArgsConstructor
public class Song {
@Id
@GeneratedValue(strategy = GenerationType.AUTO)
private Long id;
private Integer number;
private String name;
@ManyToOn... | true |
597b862b5bbcb6d0b0d6f25f0d6cd5c9e16e316d | Java | raulserranomena/NewsApp | /app/src/main/java/com/example/newsapp/NewsAdapter.java | UTF-8 | 4,710 | 2.453125 | 2 | [] | no_license | package com.example.newsapp;
import android.content.Context;
import android.content.Intent;
import android.net.Uri;
import android.text.SpannableStringBuilder;
import android.text.Spanned;
import android.text.style.ForegroundColorSpan;
import android.util.Log;
import android.util.TypedValue;
import android.view.Layout... | true |
42a83f0522c03a00aebad2f3ef57687488e07a37 | Java | txrx-research/teku | /storage/src/main/java/tech/pegasys/teku/storage/server/rocksdb/core/RocksDbInstance.java | UTF-8 | 11,504 | 1.960938 | 2 | [
"Apache-2.0",
"LicenseRef-scancode-free-unknown"
] | permissive | /*
* Copyright 2020 ConsenSys AG.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in wr... | true |
6ff27a7d50ff1df8aa47a87d43973f323944a393 | Java | dennisekstrom/EW | /EW/src/chart/ChartGrid.java | UTF-8 | 1,348 | 3.5625 | 4 | [] | no_license | package chart;
import javax.swing.JPanel;
import java.awt.Color;
import java.awt.Graphics;
/**
* This class describes the underlying grid of the chart. It's a transparent
* panel with a light gray grid displayed. The lines of the grid are specified
* by integer arrays, in which each integer represents the positio... | true |
0f9d92471e7d116a173c533e1f0821c5169e599c | Java | johngova/newaem2018 | /core/src/main/java/com/azure/aemcode/core/servlets/AzureReadOnlySlingServlet.java | UTF-8 | 1,136 | 2.046875 | 2 | [] | no_license | package com.azure.aemcode.core.servlets;
import java.io.IOException;
import javax.servlet.ServletException;
import org.apache.felix.scr.annotations.sling.SlingServlet;
import org.apache.sling.api.SlingHttpServletRequest;
import org.apache.sling.api.SlingHttpServletResponse;
import org.apache.sling.api.servlets.Sling... | true |
4d892f8858a78953a1fbf75969eed0a976b7ada8 | Java | agustinpitaro/Compilador | /Compi/src/Utilidades/Test.java | UTF-8 | 484 | 2.375 | 2 | [] | no_license | package Utilidades;
import AnalizadorLexico.AnalizadorLexico;
import AnalizadorLexico.Simbolo;
import Parser.Parser;
public class Test {
public static void main (String [] args) {
AnalizadorLexico al = new AnalizadorLexico("linteger _a,");
// while (!al.isEOF()) {
// Simbolo s = al.getSimbolo();
... | true |
e58ba4c5b807f76c02407057a265c6aab30cc484 | Java | byempy/LolasoApp | /app/src/main/java/com/example/miguel/lolstats/Adapters/RateAdapter.java | UTF-8 | 2,434 | 2.390625 | 2 | [] | no_license | package com.example.miguel.lolstats.Adapters;
import android.content.Context;
import android.graphics.Color;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.TextView;
import com.example.migue... | true |
4b43956864a90a21d7722d48199f4c366e99c3e2 | Java | dlrbgh9303/websource | /board/src/main/java/board/action/BoardActionFoward.java | UTF-8 | 322 | 1.710938 | 2 | [] | no_license | package board.action;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
// 이동경로, 이동방식 저장 클래스
@NoArgsConstructor
@AllArgsConstructor
@Getter
@Setter
public class BoardActionFoward {
private String path;
private boolean redirect;
}
| true |
976952693bb3468273bfb393088c0365b2405089 | Java | adachij2002/mhp3-miner-ranking | /src/mh/miner/conf/RankingConf.java | UTF-8 | 437 | 2.1875 | 2 | [] | no_license | package mh.miner.conf;
import org.simpleframework.xml.Element;
import org.simpleframework.xml.Root;
/**
* RankingConf provides configuration of ranking page.
*/
@Root
public class RankingConf {
@Element(required=false)
private int maxPagesize = 10;
@Element(required=false)
private int navsize = 5;... | true |
e4844d6639656651566625fdd12b7710195d4f69 | Java | dmitrybilyk/interviews | /src/main/java/com/learn/spring/springinjection/autowire/mkyongtutorial/common/ChildPerson1.java | UTF-8 | 329 | 1.507813 | 2 | [] | no_license | package com.learn.spring.springinjection.autowire.mkyongtutorial.common;
import org.springframework.stereotype.Component;
/**
* Created with IntelliJ IDEA.
* User: Buh
* Date: 30.08.13
* Time: 9:26
* To change this template use File | Settings | File Templates.
*/
@Component
public class ChildPerson1 extends Pe... | true |
907d39389487040aa7d6d4704da9fddea50dc085 | Java | XingYu9902/Algorithms4th | /src/chapter1_1/Example_15.java | UTF-8 | 762 | 3.53125 | 4 | [] | no_license | package chapter1_1;
public class Example_15 {
public static void main(String[] args) {
int[] a = {1, 2, 1, 2, 3, 4, 5, 6, 7, 7};
int[] result = histogram(a, 8);
for (int i = 0; i < result.length; i++) {
System.out.println(i + ":" + result[i]);
}
}
private static... | true |
6bae0e61c574375cb2b08f22fd94e76a29d97459 | Java | est7/DemoProject | /app/src/main/java/com/est7/demoproject/swipeback/SwipBackActivity.java | UTF-8 | 387 | 1.609375 | 2 | [] | no_license | package com.est7.demoproject.swipeback;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import com.est7.demoproject.R;
public class SwipBackActivity extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState... | true |
23d7112c070ba02fa55f7572050370da3acf7c28 | Java | zhaosy-git/UNI_HAWKEYE | /uni_crawler/src/main/java/com/uni/hawkeye/crawler/womai_phone/bean/ProductInfo.java | UTF-8 | 2,808 | 2.296875 | 2 | [] | no_license | package com.uni.hawkeye.crawler.womai_phone.bean;
import java.math.BigDecimal;
import java.util.Date;
public class ProductInfo {
private String product_id;
private String product_title;
private String brand_name;
private int status;
private int product_list_id;
private String url;
private String ... | true |
1cdef6ca254cb9eb61f3e0d991d196877d542188 | Java | dashagaranina/Hometasks | /term4/task9/src/main/java/core/App.java | UTF-8 | 542 | 1.90625 | 2 | [] | no_license | package core;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import service.OrderService;
public class App {
public static void main(String[] args) throws Exception {
ApplicationContext appContext = new ClassPathXmlApplicationConte... | true |
24c0681eedd124a2b8be52d2c81b28637cc2c728 | Java | stonegyu/mywork | /ActBeat/src/com/bsent/actbeat1/UserInfomation.java | UHC | 3,932 | 2.4375 | 2 | [] | no_license | package com.bsent.actbeat1;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.FilenameFilter;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.ut... | true |
4fa4fd79524b4f11afe3091e7e5aba886eb5933a | Java | ONagaty/SEA-ModellAR | /eu.cessar.ct.core.mms/src/eu/cessar/ct/core/mms/internal/IMMNamespaceMapping.java | UTF-8 | 336 | 1.914063 | 2 | [] | no_license | package eu.cessar.ct.core.mms.internal;
import java.util.Map;
/**
*
*/
public interface IMMNamespaceMapping
{
/**
* @param namespace
* @return
*/
public String getPackageName(String namespace);
/**
* @return
*/
public String getRootNamespace();
/**
* @return
*/
public Map<String, String> getA... | true |
789abbeb4ad9d95e91899c89a82a378052fa7ae0 | Java | xym-mm/yeb | /yeb-server/src/main/java/com/yeb/server/service/IAdminService.java | UTF-8 | 733 | 1.796875 | 2 | [] | no_license | package com.yeb.server.service;
import com.yeb.server.pojo.Admin;
import com.baomidou.mybatisplus.extension.service.IService;
import com.yeb.server.pojo.Menu;
import com.yeb.server.pojo.RespBean;
import org.springframework.http.HttpRequest;
import javax.servlet.http.HttpServletRequest;
import java.util.List;
/**
* ... | true |
72a9d5ac6dc5755279c0fd8ded4869503a2cf971 | Java | sagek23/Java-Training | /dept/src/main/java/com/bit/dept/controller/DeptController.java | UTF-8 | 898 | 2.109375 | 2 | [] | no_license | package com.bit.dept.controller;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.servlet.ModelAndV... | true |
36e84f905d5e61263cf4a7c469d53de8ca98491f | Java | prakharparwal/JavaMaster | /CoreJava/src/com/prakhar/parwal/predicate/PredicateExample.java | UTF-8 | 1,471 | 3.453125 | 3 | [] | no_license | package com.prakhar.parwal.predicate;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.function.Consumer;
import java.util.function.Predicate;
import java.util.stream.Collectors;
public class PredicateExample
{
public static void main(String... q)
{
ArrayList<Person> persons = n... | true |
21333695b338698d4027446827f88ab233f32fd1 | Java | sanchezalejandro86/sem | /src/main/java/org/example/sem/SEM.java | UTF-8 | 2,447 | 3.921875 | 4 | [] | no_license | package org.example.sem;
import java.util.HashMap;
import java.util.Map;
import java.util.Stack;
public class SEM {
public static Map<Integer, Integer> process(int [] numbers){
Stack<Integer> s = new Stack<Integer>();
Map<Integer, Integer> result = new HashMap<>();
int element, next;
... | true |
9f9051c8125113c69391fc920c16e6c32ba012dc | Java | Tobben00/TicTacTrump-Bondesjakk | /java/no/woact/martob16/MainMenu.java | UTF-8 | 3,440 | 2.328125 | 2 | [] | no_license | package no.woact.martob16;
import android.content.SharedPreferences;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.content.Intent;
import android.widget.Button;
import android.widget.TextView;
public class MainMenu extends AppCompatActivi... | true |
748458bfc27023f253d4c31da90f78783c648254 | Java | smartcommunitylab/smartcampus.gamification | /game-engine.core/src/main/java/eu/trentorise/game/managers/drools/KieContainerFactory.java | UTF-8 | 224 | 1.664063 | 2 | [
"Apache-2.0"
] | permissive | package eu.trentorise.game.managers.drools;
import org.kie.api.runtime.KieContainer;
public interface KieContainerFactory {
KieContainer getContainer(String gameId);
KieContainer purgeContainer(String gameId);
}
| true |
0f94aa27a6fcf8e1c80cec3e91f0d24062a2fb24 | Java | kenzym04/Transportation-System-API-Integration | /service/src/main/java/org/broadinstitute/mbta/service/StopsMbtaService.java | UTF-8 | 416 | 2.09375 | 2 | [] | no_license | package org.broadinstitute.mbta.service;
import org.broadinstitute.mbta.core.Stop;
import java.io.IOException;
import java.util.List;
/**
* @author Colin Kegler
* @verion The Service method specification to retrieve MBTA Stops
*/
public interface StopsMbtaService {
final String BASE_URL_STOPS = "https://api-v... | true |
0f59596ad3d8661ea4adb0dd28d0896e18059ca3 | Java | anshulmahipal/accounting-app | /CommonData/src/common/model/dto/StatsContent.java | UTF-8 | 1,471 | 2.640625 | 3 | [] | no_license | package common.model.dto;
import common.model.BaseEntity;
import common.model.entity.Product;
public class StatsContent extends BaseEntity
{
//this dto object - representation of product entity & some additional attributes
//equivalent to supplyContent/saleContent db table
private Product product; // ne... | true |
0e11de935d5392a76b6aae1a5865c6404628561b | Java | mingyen/argoPractice | /src/RemoveElement.java | UTF-8 | 1,669 | 4.375 | 4 | [] | no_license | public class RemoveElement {
/**
* https://leetcode.com/articles/remove-element/
*
* Given an array and a value, remove all instances of that value in place and return the new length.
* Do not allocate extra space for another array, you must do this in place with constant memory.
* The ord... | true |
4d62df6134634bae0a430c93157ba8ed65a296da | Java | chelloya/ProyectoPrueba | /app/src/main/java/com/example/proyprueba/proyectoprueba/DataRespuestaOut.java | UTF-8 | 1,188 | 2.71875 | 3 | [] | no_license | package com.example.proyprueba.proyectoprueba;
import java.io.Serializable;
public class DataRespuestaOut implements Serializable {
private static final long serialVersionUID = 1L;
private int tiempoSobrante;
private int puntajeObtenido;
private boolean contestoBien;
private Pregunta preg;
public DataRespu... | true |
42b0fcf256edcd5b7e1132f1aa2edbbfeecdcb09 | Java | aghasyedbilal/intellij-community | /platform/dvcs-impl/src/com/intellij/dvcs/ui/BranchActionGroup.java | UTF-8 | 2,665 | 1.914063 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2000-2016 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | true |
91461511abefc2cc8861067136864129b4b9b9f3 | Java | YasinZhangX/meettingfilm-SpringCloud | /backend-apigw-zuul/src/main/java/com/yasin/meetingfilm/backend/zuul/config/ZuulConfig.java | UTF-8 | 683 | 1.796875 | 2 | [] | no_license | package com.yasin.meetingfilm.backend.zuul.config;
import com.yasin.meetingfilm.backend.zuul.filters.CorsFilter;
import com.yasin.meetingfilm.backend.zuul.filters.JWTFilter;
import com.yasin.meetingfilm.backend.zuul.filters.MyFilter;
import org.springframework.context.annotation.Bean;
import org.springframework.contex... | true |
6cd1eb6fb0c2ae5a02a671be1ee086df0c73da26 | Java | taikinakano/learn_java | /JAVAunderstand/src/chapter16/Exercise16_2.java | UTF-8 | 475 | 3.40625 | 3 | [] | no_license | package chapter16;
import java.util.ArrayList;
public class Exercise16_2 {
public static void main(String[] args) {
class Hero {
private String name;
public Hero(String name) {this.name = name; }
public String getName() { return this.name; }
}
Hero h1 = new Hero("斉藤");
Hero h2 = new Hero("鈴木");
... | true |
e9b27942fe1e24fb0d483586245880d178225ce0 | Java | maximAtanasov/QuackR | /quackr-server/src/main/java/de/webtech/quackr/service/event/EventAttendeeLimitReachedException.java | UTF-8 | 226 | 2.03125 | 2 | [
"MIT"
] | permissive | package de.webtech.quackr.service.event;
public class EventAttendeeLimitReachedException extends Throwable {
public EventAttendeeLimitReachedException(){
super("Cannot add more attendees to this event.");
}
}
| true |
7a3af0c933e2622e36a33f7110f5c98bda411fc6 | Java | bkerler/simplify | /smalivm/src/main/java/org/cf/smalivm/emulate/EmulatedMethod.java | UTF-8 | 265 | 1.929688 | 2 | [
"MIT"
] | permissive | package org.cf.smalivm.emulate;
import java.util.Set;
import org.cf.smalivm.SideEffect.Level;
import org.cf.smalivm.VirtualException;
public interface EmulatedMethod {
public Level getSideEffectLevel();
public Set<VirtualException> getExceptions();
}
| true |
24ea80b3ba7f78df3ee686b7df88b0b45187765a | Java | lixuan11/NetWorkSecurity | /src/application/RSATest.java | UTF-8 | 922 | 2.265625 | 2 | [] | no_license | package application;
import static org.junit.Assert.*;
import org.junit.Before;
import org.junit.Test;
import java.security.PrivateKey;
import java.security.PublicKey;
import java.security.KeyPair;
import java.security.NoSuchAlgorithmException;
import sun.misc.BASE64Decoder;
import sun.misc.BASE64Encoder;
public cl... | true |
cd0a88cc6dedfab4790414095dddbcae28f79c9b | Java | HARISHA13/850290-HACKATHON-1-26-05-2020 | /CPU1.java | UTF-8 | 2,331 | 2.8125 | 3 | [] | no_license | import java.io.BufferedReader;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;
import java.text.DecimalFormat;
import java.util.ArrayList;
import java.util.Collections;
import java.util.LinkedHashMap;
import org.json.JSONObject;
import org.json.simple.parser.ParseException;
... | true |
d1f62a24d84e812cbff08ccc48087adf4ce0adac | Java | chenleizhaoEdinboro/chenleizhaoedinboro.github.io | /NemoJava-2.0/src/test/java/FactoryAndData/B2C/NA27312.java | UTF-8 | 592 | 2.09375 | 2 | [
"MIT"
] | permissive | package FactoryAndData.B2C;
import org.testng.annotations.DataProvider;
import org.testng.annotations.Factory;
import CommonFunction.Common;
import TestData.PropsUtils;
import TestScript.B2C.NA27312Test;
public class NA27312 {
@DataProvider(name = "27312")
public static Object[][] Data27133() {
return Common.ge... | true |
3d8e34330f467e8263f9b872a046c82e3dea821c | Java | lazlaz/arithmetic | /src/main/java/com/laz/arithmetic/LetCodeSortLearn.java | UTF-8 | 830 | 3.046875 | 3 | [] | no_license | package com.laz.arithmetic;
import org.junit.Test;
import com.laz.arithmetic.LetCodeTreeLearn.TreeNode;
public class LetCodeSortLearn {
// 合并两个有序数组
@Test
public void test1() {
int[] nums1 = new int[]{1,2,3,0,0,0};
int[] nums2 = new int[]{2,5,6};
merge(nums1,3,nums2,3);
for (int num : nu... | true |
e5662746c8ba952af11f4eec73d8e81b11cd7f97 | Java | Valerio-boi/Codewars-java | /Kata/GreetMe.java | UTF-8 | 180 | 2.828125 | 3 | [] | no_license | public class GreetMe{
public static String greet(String name){
return "Hello " + ((String) name.subSequence(0, 1)).toUpperCase() + name.substring(1).toLowerCase() +"!";
}
} | true |
37ae18298b688a156cd84e2feeec47c4ca51a0a8 | Java | greenjjun/computersystem | /java/test/src/coffee/Test.java | UHC | 974 | 2.9375 | 3 | [] | no_license | package coffee;
import java.util.*;
public class Test {
public static void main(String[] args) {
// Student student = new Student("̼", 1, 4, 20);
// Scanner scanner = new Scanner(System.in);
// String str = scanner.nextLine();
// System.out.println(str);
//
// scanner.close();
//
// System.o... | true |
79592e4c2598b87c563e42b1e08b035d217f2c1a | Java | syluh/Examen | /src/examen/Numeros.java | UTF-8 | 1,298 | 3.640625 | 4 | [] | 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 examen;
import java.util.Scanner;
/**
*
* @author VICTOR
*/
public class Numeros {
public static void main(String[] args... | true |
61f3dcf549d9f4ed97edc3102f8a9f387527d081 | Java | qq245271830/MagicPlugin | /CompatibilityLib/v1_17_0/src/main/java/com/elmakers/mine/bukkit/utility/platform/v1_17_0/SchematicUtils.java | UTF-8 | 10,346 | 2.125 | 2 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | package com.elmakers.mine.bukkit.utility.platform.v1_17_0;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.util.ArrayList;
import java.util.Collection;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Set;
import java.util.logging.... | true |
6c7b0ffdc07a395d59fb31877e7387aaab728efa | Java | luyi1/quality | /quality/src/main/java/com/ge/digital/quality/QualityApplication.java | UTF-8 | 1,885 | 2.03125 | 2 | [] | no_license | package com.ge.digital.quality;
import java.lang.reflect.Type;
import java.util.Date;
import java.util.TimeZone;
import javax.annotation.PostConstruct;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure... | true |
7b2ffe068d64ae2518d26e9f374b3f48f3965f51 | Java | choloantonio09/ireserve | /Capstone/src/NameValidationFinal.java | UTF-8 | 4,605 | 2.984375 | 3 | [] | no_license |
import java.text.DecimalFormat;
import java.text.NumberFormat;
import java.util.Scanner;
import java.util.regex.Matcher; //decimal
import java.util.regex.Pattern; //decimal
import org.apache.commons.validator.routines.EmailValidator;
public class NameValidationFinal {
Scanner sc = new Scanner(System.in);
public s... | true |
5e6b392328f30c77a40ff401d347fad51738b3b0 | Java | scm-manager/scm-manager | /scm-core/src/main/java/sonia/scm/io/ZipUnArchiver.java | UTF-8 | 4,591 | 2.25 | 2 | [
"MIT"
] | permissive | /*
* MIT License
*
* Copyright (c) 2020-present Cloudogu GmbH and Contributors
*
* 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 r... | true |
9b56ecc199413669dc11f27734c5bed62504dc8d | Java | smartsheet-platform/smartsheet-java-sdk | /src/main/java/com/smartsheet/api/RowResources.java | UTF-8 | 7,262 | 2.4375 | 2 | [
"Apache-2.0"
] | permissive | package com.smartsheet.api;
/*
* #[license]
* Smartsheet SDK for Java
* %%
* Copyright (C) 2014 Smartsheet
* %%
* 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.a... | true |
4f98a5c8a3f4387f41b8e727e183e4eec25259bd | Java | apurvparekh30/ucfprogrammingteam | /8thsep18/practice/solutions/upwards/upwards.java | UTF-8 | 1,459 | 3.59375 | 4 | [] | no_license | // Arup Guha
// 1/29/2014
// Solution to 2013 SI@UCF Final Contest Question: Upwards
// Used for COP 2014 COP 4516 Class
import java.util.*;
public class upwards {
public static int curRank;
public static int skip;
public static int len;
public static int rank;
public static void main(String[] ... | true |
778a0ef70301eb60406544899e52d827e663e7b4 | Java | HaydenBrewBrew/ee422c_hbl297 | /Project 1/src/assignment1/SortTools.java | UTF-8 | 3,862 | 3.890625 | 4 | [] | no_license | // SortTools.java
/*
* EE422C Project 1 submission by Hayden Lydick
* Hayden Lydick
* hbl297
* 16290
* Spring 2017
* Slip days used: 0
*/
package assignment1;
import java.util.Arrays;
public class SortTools {
/**
* This method tests to see if the given array is sorted.
* @param x is the array
* @para... | true |
488086f0ae95d61f886abef06c86af199b037e1a | Java | FRC-Team-5957/PIDTest | /src/org/usfirst/frc/team5957/robot/Robot.java | UTF-8 | 4,955 | 2.328125 | 2 | [] | no_license | package org.usfirst.frc.team5957.robot;
import edu.wpi.first.wpilibj.ADXRS450_Gyro;
import edu.wpi.first.wpilibj.Encoder;
import edu.wpi.first.wpilibj.IterativeRobot;
import edu.wpi.first.wpilibj.Joystick;
import edu.wpi.first.wpilibj.SpeedController;
import edu.wpi.first.wpilibj.SpeedControllerGroup;
import edu.wpi.f... | true |
0b2737a397011b55dc13cd2b7e5b6c63a49f8476 | Java | MikhailChe/SortComparison | /src/sort/VecaRect.java | UTF-8 | 16,164 | 3.03125 | 3 | [] | no_license | package sort;
import java.awt.Color;
import java.awt.Font;
import java.util.Vector;
import acm.graphics.GLabel;
import acm.graphics.GRect;
public class VecaRect {
public VecaRect(Main m) {
/*
* Конструктор класса VecaRect. Принимает указатель на объект класса
* Main
*/
main = m;
NO... | true |
bf133a9b68b3fe7b0c438e0b1e37563fc604a828 | Java | dsalexan/yogurt | /yogurt/src/main/DiagramaganttController.java | UTF-8 | 6,373 | 2.375 | 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 main;
import java.net.URL;
import java.util.ArrayList;
import java.util.ResourceBundle;
import javafx.fxml.FXML;
import javaf... | true |
565c59e563cefeff69f7ba603b9f64c3f8418fe4 | Java | step9819/Cibertec_dawii | /Examen_Servicios/JAX_WS_SOAP_Cliente_Plantilla/src/soap/cibertec/servicio/ViajeService.java | UTF-8 | 759 | 2.25 | 2 | [] | no_license | package soap.cibertec.servicio;
import java.util.List;
import soap.cibertec.interfaces.ViajeBean;
public class ViajeService {
private ViajeServiceImplService ws=null;
public List<ViajeBean> listaViaje(double precioDesde, double precioHasta){
List<ViajeBean> lista=null;
try {
ws=new ViajeServiceImplServ... | true |
202bb91d76fca2821ca9424495eeb7142e28f3f9 | Java | apache/commons-validator | /src/test/java/org/apache/commons/validator/routines/checkdigit/ISBNCheckDigitTest.java | UTF-8 | 3,097 | 2.625 | 3 | [
"Apache-2.0",
"LicenseRef-scancode-generic-cla"
] | permissive | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | true |
6901dce6f4595ec9088b5b51667e17cad47c8291 | Java | mattvalli/MattValliCom | /src/main/java/com/mattvalli/RapidFramework/Model/UserSystem/dao/PersonDao.java | UTF-8 | 747 | 2.234375 | 2 | [] | no_license | package com.mattvalli.RapidFramework.Model.UserSystem.dao;
public interface PersonDao {
// CONSTANTS
public static final String CLASSNAME_MODEL = "Person";
// Database
public static final String DATABASE = "USER_SYSTEM";
public static final String TABLE = "PERSON";
// Columns
public static final St... | true |
d714109f1f61898250532fe67d5f285f6126fbbb | Java | pjhjohn/hsk4-dict-android | /app/src/main/java/com/hsk4dictionary/android/activity/MenuActivity.java | UTF-8 | 1,403 | 2.3125 | 2 | [
"Apache-2.0"
] | permissive | package com.hsk4dictionary.android.activity;
import android.app.Activity;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.widget.Button;
import android.widget.TextView;
import com.hsk4dictionary.android.R;
import butterknife.BindView;
import butterknife.ButterKnife;
p... | true |
71863cb9d83694bd3afaaa3a7240a0cf63eb56ae | Java | itsightconsulting/runfit | /src/main/java/com/itsight/repository/VideoAudioFavoritoRepository.java | UTF-8 | 1,134 | 1.945313 | 2 | [] | no_license | package com.itsight.repository;
import com.itsight.domain.VideoAudioFavorito;
import org.springframework.data.jpa.repository.EntityGraph;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;
import java.ut... | true |
129f93428ab12fcedac55b06c196ebd436d32916 | Java | kriquero/Programacion | /Ejercicios/Ejercicio 7.2/ejercicio72.java | UTF-8 | 1,400 | 3.5625 | 4 | [] | no_license | import java.util.Scanner;
public class ejercicio72 {
public static void main(String args[]){
Scanner sc= new Scanner(System.in);
persona p1 = new persona();
persona p2 = new persona();
System.out.println ("Escriba el nombre de la persona 1");
p1.nombre = sc.n... | true |
999b055793461f196b621ee65d5b4435254e809b | Java | vaginessa/BootToShell | /app/src/main/java/com/dukelight/boottoshell/MainActivity.java | UTF-8 | 12,057 | 2.40625 | 2 | [] | no_license | package com.dukelight.boottoshell;
import android.os.Bundle;
import android.os.Environment;
import android.os.Handler;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;
import android.widget.Toast;
import java.io.File;
import java.... | true |
85e145b1d05ce1e87b1e06c7188b72c9c1b5c7f5 | Java | zhangshilin9527/netty_study | /src/main/java/com/xiaolinzi/netty/study/unpacking/PackNettyServerHandler.java | UTF-8 | 852 | 2.53125 | 3 | [] | no_license | package com.xiaolinzi.netty.study.unpacking;
import io.netty.channel.ChannelHandlerContext;
import io.netty.channel.SimpleChannelInboundHandler;
import io.netty.util.CharsetUtil;
/**
* @author xiaolinzi
* @Date 2021/3/30 17:22
* @email xiaolinzi95_27@163.com
*/
public class PackNettyServerHandler extends SimpleCh... | true |
60ce2fbb251d9b6f31a78552081c7e2ed735b0e8 | Java | notafiscaltolegal/tolegal | /to-legal/src/main/java/gov/to/service/PessoaFisicaToLegalService.java | UTF-8 | 677 | 1.898438 | 2 | [] | no_license | package gov.to.service;
import java.util.List;
import javax.ejb.Local;
import gov.to.entidade.EnderecoToLegal;
import gov.to.entidade.PessoaFisicaToLegal;
import gov.to.filtro.FiltroPessoaFisicaToLegal;
/**
*
* @author pedro.oliveira
*
*
*/
@Local
public interface PessoaFisicaToLegalService ... | true |
08249599cb95a2ae2872944547a55fd3045ed854 | Java | SeelabFhdo/lemma | /de.fhdo.lemma.model_processing.eclipse.launcher/xtend-gen/de/fhdo/lemma/model_processing/eclipse/launcher/processing_configurations/shortcut/java_base_generator/AbstractJavaBaseGeneratorTemplate.java | UTF-8 | 5,591 | 1.867188 | 2 | [
"MIT"
] | permissive | package de.fhdo.lemma.model_processing.eclipse.launcher.processing_configurations.shortcut.java_base_generator;
import com.google.common.collect.Iterables;
import de.fhdo.lemma.model_processing.eclipse.launcher.Utils;
import de.fhdo.lemma.model_processing.eclipse.launcher.processing_configurations.ProcessorExecutableT... | true |
34e7da7e394d169ad0b97435f0717896adca746b | Java | robototes/InfiniteRecharge2020 | /src/main/java/frc/team2412/robot/RobotMapConstants.java | UTF-8 | 2,059 | 2.453125 | 2 | [] | no_license | package frc.team2412.robot;
public class RobotMapConstants {
public final static boolean CLIMB_CONNECTED = true;
public final static boolean CONTROL_PANEL_CONNECTED = false;
public final static boolean SHOOTER_CONNECTED = true;
public final static boolean INDEX_CONNECTED = true;
public final static boolean INTAK... | true |
aa7194aff07db4cdc948066ad76bb4afb32439be | Java | LIUNANYAN/-Java- | /java_files/mo_kuai_hua/Test1.java | UTF-8 | 153 | 2.4375 | 2 | [] | no_license |
public class Test1 {
String name="sdk";
int age=21;
public void person(){
System.out.println(name+" "+age);
}
} | true |
ee55089782f40284881e579687a0ffd2c7fdf19d | Java | matuobasyouca/com.software5000.ma | /com.software5000.ma.server/src/main/java/com/software5000/base/mybatis/plugins/PermissionRule.java | UTF-8 | 2,888 | 2.140625 | 2 | [
"MIT"
] | permissive | package com.software5000.base.mybatis.plugins;
import com.software5000.base.Constant;
import com.software5000.base.entity.SystemCode;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import java.util.ArrayList;
import java.util.List;
/**
* Created by cc on 2016/12/24.<br>
* Syst... | true |
df1f6c44499d5734c9f0ba4ffa04567186bdf772 | Java | SimiaCryptus/java-reference-counter | /autocoder/src/main/java/com/simiacryptus/ref/core/ops/LoggingASTVisitor.java | UTF-8 | 4,716 | 1.789063 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright (c) 2020 by Andrew Charneski.
*
* The author 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/licenses/LICENSE-2.0
... | true |
81ae118b9acafdfeb89a86c08580a96775e57721 | Java | zkk950815/gateway | /gateway/src/main/java/com/cpic/myuul/filter/route/RoutingFilter.java | UTF-8 | 834 | 2.09375 | 2 | [] | no_license | package com.cpic.myuul.filter.route;
import com.cpic.myuul.filter.MyuulFilter;
import com.cpic.myuul.http.RequestContext;
import org.springframework.http.RequestEntity;
import org.springframework.http.ResponseEntity;
import org.springframework.web.client.RestTemplate;
public class RoutingFilter implements Myu... | true |
afdbfa02ca9e2fcaeb9b6016c4130e072055308f | Java | bellmit/teach | /teach-service/src/main/java/com/wst/service/sys/service/AppAccessService.java | UTF-8 | 2,696 | 1.976563 | 2 | [] | no_license | /*
* AppAccessService.java Created on 2017年3月25日 下午2:24:27
* Copyright (c) 2017 HeWei Technology Co.Ltd. 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
*
* ... | true |
c8fe0a3d2aeb2557f89a19d63b23193b186bb63d | Java | MAXJOKER/keep-learning | /com.finn/src/main/java/leetcode/dynamicprogramming/HouseRobber3.java | UTF-8 | 2,684 | 3.96875 | 4 | [] | no_license | package leetcode.dynamicprogramming;
import leetcode.binarytree.TreeNode;
/**
* @author maxjoker
* @date 2022-05-30 23:50
*
* 337. 打家劫舍 III
* 小偷又发现了一个新的可行窃的地区。这个地区只有一个入口,我们称之为 root 。
*
* 除了 root 之外,每栋房子有且只有一个“父“房子与之相连。一番侦察之后,聪明的小偷意识到“这个地方的所有房屋的排列类似于一棵二叉树”。 如果 两个直接相连的房子在同一天晚上被打劫 ,房屋将自动报警。
*
* 给定二叉树的 root 。返回 ... | true |
a93a25e64f5884a5bd7019f012f600ce2a347e13 | Java | 13110992819/cs-wellet | /src/main/java/com/cdkj/coin/wallet/ao/impl/EthAddressAOImpl.java | UTF-8 | 6,814 | 1.9375 | 2 | [] | no_license | /**
* @Title EthAddressAOImpl.java
* @Package com.cdkj.coin.ao.impl
* @Description
* @author leo(haiqing)
* @date 2017年10月27日 下午5:43:34
* @version V1.0
*/
package com.cdkj.coin.wallet.ao.impl;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;
import org.apache.commons.col... | true |
23531b13d19879323e573a86af95d21a6915ac78 | Java | yuchende/blog | /HibernateStruts/src/test/java/edu/xaut/test/TestCase.java | GB18030 | 929 | 2.21875 | 2 | [] | no_license | package edu.xaut.test;
import java.util.List;
import org.junit.Test;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import edu.xaut.bean.User;
import edu.xaut.dao.UserDaoImpl;
import edu.xaut.service.UserService;
import edu.xaut.service.UserServiceImpl;
public class TestCase {
public s... | true |
ae391aa25695ffc59bac46180677821b55e209b5 | Java | dmitrykochanov/SportPredictions | /app/src/main/java/com/dmko/sportpredictions/injection/application/DataModule.java | UTF-8 | 1,410 | 2.203125 | 2 | [] | no_license | package com.dmko.sportpredictions.injection.application;
import com.dmko.sportpredictions.data.api.NewsApi;
import com.dmko.sportpredictions.data.NewsRepository;
import com.dmko.sportpredictions.data.NewsRepositoryImpl;
import com.dmko.sportpredictions.injection.scopes.ApplicationScope;
import com.dmko.sportprediction... | true |
064fa479a0f205416212d18821c0813e91940fca | Java | todorgrigorov/post-box | /app/src/main/java/com/tgrigorov/postbox/services/data/UserService.java | UTF-8 | 2,540 | 2.265625 | 2 | [] | no_license | package com.tgrigorov.postbox.services.data;
import com.microsoft.aad.adal.AuthenticationResult;
import com.tgrigorov.postbox.PostBox;
import com.tgrigorov.postbox.data.entities.Person;
import com.tgrigorov.postbox.data.entities.User;
import com.tgrigorov.postbox.http.data.MailDetailModel;
import com.tgrigoro... | true |
612fccee57402e1ae666f8e98ee3173ba1130b1b | Java | outsidereal/master-work | /src/main/java/com/diploma/classdiagram/model/relationships/Relationship.java | UTF-8 | 2,257 | 2.84375 | 3 | [] | no_license | package com.diploma.classdiagram.model.relationships;
import com.diploma.classdiagram.model.XMLElement;
/**
* User: ZIM
* Date: 25.08.12
* Time: 16:19
*/
public interface Relationship extends XMLElement {
/**
* This method should return identifier
* of source (also known as parent or supplier)
... | true |
d8d0e1264052961aa2ab847f244192c26c47232c | Java | armen-zakaryan/POS_EJB_JBOSS | /Pos_ejb/ejb/src/com/aua/businesslogic/ArchiveRecord.java | UTF-8 | 664 | 2.59375 | 3 | [] | no_license | package com.aua.businesslogic;
import java.util.Date;
/**
* Created by Armen on 19-Oct-14.
*/
public class ArchiveRecord {
private String owner;
private Sale sale = null;
private Date date = null;
public ArchiveRecord(Sale sale){
this.owner = sale.getShopingCart().getOwner();
this.s... | true |
350bf87dc99825575d8690d21699c921bd99f908 | Java | burningcl/LeetcodeSolutions | /src/com/skyline/leetcode/solution/Q16.java | UTF-8 | 1,412 | 3.421875 | 3 | [] | no_license | package com.skyline.leetcode.solution;
import java.util.Arrays;
/**
* 3Sum Closest
*
* https://leetcode.com/problems/3sum-closest/
*
* @author jairus
*
*/
public class Q16 {
public int threeSumClosest(int[] nums, int target) {
int sum = 0;
if (nums == null || nums.length < 3) {
return sum;
}
Arr... | true |
0174af8fce398b8fb3be7e6a8f683c9c9b8149d8 | Java | qnhlli/RxAndroid-Retrofit | /MyRxAndroid2/app/src/main/java/com/example/qnhlli/myrxandroid2/GithubService.java | UTF-8 | 349 | 1.742188 | 2 | [] | no_license | package com.example.qnhlli.myrxandroid2;
import java.util.Map;
import retrofit.http.GET;
import retrofit.http.QueryMap;
import rx.Observable;
/**
* Created by qnhlli on 2016/6/12.
*/
public interface GithubService {
@GET("/search/repositories")
Observable<GithubResults> getTopNewAndroidRepos(@QueryMap Map<... | true |
b6d2c05f3dd5af383e418172633ff06428530ddd | Java | nawsheenahmed18103377/Procurement-Management-System | /src/incognitocoders/ProductModel.java | UTF-8 | 885 | 2.421875 | 2 | [] | no_license | package incognitocoders;
public class ProductModel {
String pid, pname, pquantity, pprice;
public ProductModel(String pid, String pname, String pquantity, String pprice) {
this.pid = pid;
this.pname = pname;
this.pquantity = pquantity;
this.pprice = pprice;
}
public St... | true |
d1489cd5a16b9b81c082683ec8dd10715835577e | Java | utsav0904/OnlineQuiz | /src/co/oep/quiz/controller/RegistrationController.java | UTF-8 | 3,103 | 2.484375 | 2 | [] | no_license | package co.oep.quiz.controller;
import java.io.IOException;
import java.io.InputStream;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.SQLException;
import java.util.Collection;
import javax.servlet.RequestDispatcher;
import javax.servlet.ServletException;
import javax.servlet.annotati... | true |
a8501d7f20169ac5cf2bb9777a17a8ba56fd8a44 | Java | JosueRJ/Ejercicio4_PDF2 | /src/ejercicio4/Fraccion.java | UTF-8 | 2,750 | 3.5625 | 4 | [] | no_license |
package ejercicio4;
public class Fraccion {
//atributos
private int numerador;
private int denominador;
//Constructores
//por defecto
public Fraccion(){
numerador = 0;
denominador = 1;
}
//con parametros
public Fraccion(int x, int y){
th... | true |
54e482e0682749ac78d206147babb7574aec7df8 | Java | angel-ramoscardona/pentaho-hadoop-shims | /common-fragment-V1/src/main/java/com/pentaho/big/data/bundles/impl/shim/hdfs/HadoopFileSystemFactoryImpl.java | UTF-8 | 4,160 | 1.789063 | 2 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | /*******************************************************************************
* Pentaho Big Data
* <p>
* Copyright (C) 2002-2020 by Hitachi Vantara : http://www.pentaho.com
* <p>
* ******************************************************************************
* <p>
* Licensed under the Apache License, Version... | true |