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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
c1d06430bb05134e5236023ed01478134224c7bf | Java | USTBlzg10/-offer | /src/main/java/leetcodeTest/JavaVersion/RomanToInt_13.java | UTF-8 | 1,830 | 3.4375 | 3 | [] | no_license | package leetcodeTest.JavaVersion;
import java.util.HashMap;
import java.util.Map;
/**
* @author LiuZhiguo
* @date 2019/11/12 10:39
*/
public class RomanToInt_13 {
public int romanToInt(String s){
/*方法一
Map<String, Integer> map = new HashMap<String, Integer>();
map.put("I",1);
ma... | true |
d6843764bcfe06e85cf69f3f82e909641fd26378 | Java | contactashish94/BasicJava | /src/com/ashish/interview/warmUpChallenge/ex2/Solution.java | UTF-8 | 1,615 | 3.234375 | 3 | [] | no_license | package com.ashish.interview.warmUpChallenge.ex2;
import java.io.*;
import java.util.HashMap;
import java.util.Scanner;
public class Solution {
public static void main(String[] args) throws IOException {
//BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(System.in));
//Buff... | true |
57c161165161bf99767c2bf792d7dfb71aa48eb5 | Java | john821216/job_interview | /src/Leetcode/_198.java | UTF-8 | 998 | 3.109375 | 3 | [] | no_license | package Leetcode;
public class _198 {
public int rob(int[] nums) {
int[] dp = new int[nums.length];
int max = 0;
for (int i = 0; i < nums.length; i++) {
dp[i] = nums[i];
if (dp[i] > max) {
max = dp[i];
}
}
for (int i = 0; i < nums.length; i++) {
int maxJval = 0;
for (int j = 0; j < i - 1... | true |
fdee50100e9fa27d32bbdc853ef4b6cf6b6d2004 | Java | dginovker/RS-2009-317 | /Client/src/main/java/com/runescape/chat/MessageType.java | UTF-8 | 3,680 | 2.78125 | 3 | [] | no_license | package com.runescape.chat;
import com.runescape.Game;
import com.runescape.GameShell;
import com.runescape.util.StringUtility;
/**
* Represents a type of message to show the player.
*
* @author <a href="http://Gielinor.org">Gielinor</a>
*/
public enum MessageType {
GAME_MESSAGE(0),
CONSOLE... | true |
f13b823ff12ea862c3372660e996710f7ebe8c8b | Java | TheWizard91/Album_base_source_from_JADX | /sources/androidx/recyclerview/selection/PointerDragEventInterceptor.java | UTF-8 | 1,603 | 2 | 2 | [] | no_license | package androidx.recyclerview.selection;
import android.view.MotionEvent;
import androidx.core.util.Preconditions;
import androidx.recyclerview.widget.RecyclerView;
final class PointerDragEventInterceptor implements RecyclerView.OnItemTouchListener {
private RecyclerView.OnItemTouchListener mDelegate;
private... | true |
d4dba1de8e660ed11575911f5691d90d55e886b3 | Java | kfulton121/uml-editor | /src/App.java | UTF-8 | 522 | 2.421875 | 2 | [] | no_license | import javafx.application.Application;
import javafx.scene.Scene;
import javafx.stage.Stage;
public class App extends Application {
@Override
public void start(Stage primaryStage) {
primaryStage.setTitle("UML Editor - fiVe");
Controller controller = new Controller();
Scene scene = new Scene(... | true |
b574b254630103e9e4f937d7ff1e9de115d83fa1 | Java | zyinn/Repo | /FRT_Repopledge/src/main/java/com/finruntech/frt/fits/pledge/service/FitsAccPortfolioSecuService.java | UTF-8 | 1,648 | 2.1875 | 2 | [] | no_license | package com.finruntech.frt.fits.pledge.service;
import com.finruntech.frt.fits.pledge.model.FitsAccPortfolioSecuEntity;
import com.finruntech.frt.fits.pledge.repository.FitsAccPortfolioSecuMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java... | true |
2320cb6b7a43d3a1de2f6f1413cd52d25979dab9 | Java | subramaniansrm/rta | /src/main/java/com/srm/rta/validation/WidgetValidation.java | UTF-8 | 4,973 | 2.21875 | 2 | [] | no_license | package com.srm.rta.validation;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import com.srm.coreframework.config.UserMessages;
import com.srm.coreframework.constants.ControlNameConstants;
import com.srm.coreframework.util.Commo... | true |
d0920b50ab30c7f35a085b9b691e0398d1d9cc50 | Java | j7arsen/mvpretrofitdagger | /app/src/main/java/j7arsen/com/dagger/main/newtest/view/NewTestActivity.java | UTF-8 | 2,285 | 2.09375 | 2 | [] | no_license | package j7arsen.com.dagger.main.newtest.view;
import android.app.Activity;
import android.app.Fragment;
import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.Nullable;
import javax.inject.Inject;
import j7arsen.com.dagger.R;
import j7arsen.com.dagger.app.TestApplication;
import j... | true |
6d6a9b845a6347230201de8e3970d9e02eafcba4 | Java | xingganfengxing/java-platform | /module/module-security/src/main/java/com/whenling/module/security/shiro/RetryLimitMd5CredentialsMatcher.java | UTF-8 | 2,023 | 2.4375 | 2 | [
"Apache-2.0"
] | permissive | package com.whenling.module.security.shiro;
import java.util.concurrent.atomic.AtomicInteger;
import org.apache.shiro.authc.AuthenticationInfo;
import org.apache.shiro.authc.AuthenticationToken;
import org.apache.shiro.authc.ExcessiveAttemptsException;
import org.apache.shiro.authc.UsernamePasswordToken;
impo... | true |
7902a9ec3b14fa1e72650dc0012c1d70673b192f | Java | niuapp/RedBaByTest_1 | /src/com/itheima/redbaby/fragment/ClassFragment.java | UTF-8 | 3,101 | 2.296875 | 2 | [] | no_license | package com.itheima.redbaby.fragment;
import java.util.ArrayList;
import java.util.List;
import android.content.Intent;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.AdapterView;
import android.widget.AdapterView.OnItemClic... | true |
8cad81dd3d3339cd37dd5ca07748908d1ff367bd | Java | cybernetics/mapstruct | /processor/src/test/java/org/mapstruct/ap/test/conversion/nativetypes/CharConversionTest.java | UTF-8 | 2,210 | 1.960938 | 2 | [
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | /**
* Copyright 2012-2016 Gunnar Morling (http://www.gunnarmorling.de/)
* and/or other contributors as indicated by the @authors tag. See the
* copyright.txt file in the distribution for a full listing of all
* contributors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not ... | true |
2d5e867a10afdfe1f76134e16d9768f6c24d3514 | Java | Oiwane/Code-Smell-Checker-Beta | /src/main/java/ui/refactoring/replaceTempWithQuery/MyTempWithQueryHandler.java | UTF-8 | 767 | 1.84375 | 2 | [
"Apache-2.0"
] | permissive | package ui.refactoring.replaceTempWithQuery;
import com.intellij.openapi.actionSystem.DataContext;
import com.intellij.openapi.project.Project;
import com.intellij.psi.PsiElement;
import com.intellij.refactoring.tempWithQuery.TempWithQueryHandler;
import org.jetbrains.annotations.NotNull;
public class MyTempW... | true |
6066032450207594637b7f3d1fb75a90685bed73 | Java | veeraBhavani/sampath-class-code | /Jun2015/src/edu/wbqa/entities/usages/AccountTest.java | UTF-8 | 377 | 2.703125 | 3 | [] | no_license | package edu.wbqa.entities.usages;
import edu.wbqa.entities.*;
public class AccountTest {
public static void main(String[] args) {
Account a1 = new Account();
a1.deposit(50);
System.out.println(a1.getAccountBalance());
Account a2 = new Account();
Account a3 = new Account();
a1.withdra... | true |
f94451b039e111a01526c9ab3d88f7408f0a6942 | Java | piaoking/ticket_king | /src/main/java/com/ticket/demo_ticketking/mapper/SeatMapper.java | UTF-8 | 335 | 1.929688 | 2 | [] | no_license | package com.ticket.demo_ticketking.mapper;
import com.ticket.demo_ticketking.po.TbPlace;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;
@Mapper
@Component
public interface SeatMapper {
TbPlace querySeat(@Param("placeId") lo... | true |
70ce608eb3d82f663e293c3b4a91d24b02674c43 | Java | wjdekdns0808/Cookie_app-android- | /app/src/main/java/com/example/team_project_cookie/Realtime_base_edit.java | UTF-8 | 781 | 2.171875 | 2 | [] | no_license | package com.example.team_project_cookie;
import com.google.firebase.database.DatabaseReference;
import com.google.firebase.database.FirebaseDatabase;
import java.util.HashMap;
public class Realtime_base_edit {
FirebaseDatabase database;
DatabaseReference databaseReference;
Realtime_base_edit(){
}
... | true |
fd8f9cfd25d0ae22b6ea05f9ab3ce4e4570ae483 | Java | libgdx/libgdx | /gdx/src/com/badlogic/gdx/net/HttpRequestBuilder.java | UTF-8 | 5,518 | 2.265625 | 2 | [
"Apache-2.0",
"LicenseRef-scancode-other-copyleft",
"CC-BY-SA-3.0",
"LicenseRef-scancode-proprietary-license"
] | permissive | /*******************************************************************************
* Copyright 2011 See AUTHORS file.
*
* 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 |
540686df498a5421458b3ec7aea3f3d0f21c0a05 | Java | saguaro88/ForumProject | /src/main/java/com/javaee/projectFroum/projectForum/dto/TopicMapper.java | UTF-8 | 1,599 | 2.140625 | 2 | [] | no_license | package com.javaee.projectFroum.projectForum.dto;
import com.javaee.projectFroum.projectForum.models.Post;
import com.javaee.projectFroum.projectForum.models.Topic;
import com.javaee.projectFroum.projectForum.services.PostServiceImpl;
import com.javaee.projectFroum.projectForum.services.UserServiceImpl;
import com.jav... | true |
c31743c55fb209a12137670ca6088cb22681cb64 | Java | jstashk/doc-search | /doc-search-server/src/main/java/org/ystashko/docsearch/controller/DocumentsController.java | UTF-8 | 1,000 | 2.015625 | 2 | [] | no_license | package org.ystashko.docsearch.controller;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import org.ystashko.docsearch.model.ResponseWrapper;
import org.ystashko.docsearch.service.DocumentIndex;
import org.ystashko.docsearch.model.Document;
import jav... | true |
f100a35e95b6964cc9930c5ab921a608ab28e3ca | Java | TwoToneEddy/uniBackup | /Sep 2014/Advanced OO/Week 2/FourPlay/src/fourplay/ColomnPanel.java | UTF-8 | 2,968 | 2.90625 | 3 | [] | no_license | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package fourplay;
import javax.swing.*;
import java.awt.*;
import java.awt.event.MouseEvent;
import java.awt.event.MouseList... | true |
8fa3ab60f9c163285a84ef71189ea51bcae0d68f | Java | poyi41/SMBG | /app/src/main/java/apexbio/smbg/DashBoardActivity.java | UTF-8 | 6,847 | 2.125 | 2 | [] | no_license | package apexbio.smbg;
/**
* Created by A1302 on 2015/7/7.
*/
import android.content.Intent;
import android.os.Bundle;
import android.support.v4.app.FragmentActivity;
import android.util.DisplayMetrics;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewStub;
import android.view.Vie... | true |
ded796b1042ca00e26dd6476c28932ba5f2bde67 | Java | Gavin89/TravelMemories | /app/src/main/java/com/hardygtw/travelmemories/fragments/Places/EditPlaceFragment.java | UTF-8 | 11,068 | 1.773438 | 2 | [] | no_license | package com.hardygtw.travelmemories.fragments.Places;
import android.app.ActionBar;
import android.app.AlertDialog;
import android.content.Context;
import android.content.DialogInterface;
import android.location.Address;
import android.location.Geocoder;
import android.os.AsyncTask;
import android.os.Bundle;
import a... | true |
b997752b0c0e7d7b8ff0a11c66d9bcf0ace38c98 | Java | spring-projects/spring-framework | /spring-web/src/main/java/org/springframework/web/context/ConfigurableWebApplicationContext.java | UTF-8 | 3,786 | 2.0625 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2002-2014 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 a... | true |
39178eb4414b9f5680134b20c29770aaad16c977 | Java | ySant/triads | /J8SevenTriangles.java | UTF-8 | 12,731 | 2.9375 | 3 | [] | no_license | /*
* J8SevenTriangles.java
* Counting/Enumerating Triangles in a Directed Graph,
* classified into 7 types of triangles (i.e., 7 counters).
* Suppose triangle (u,v,w) : edges e1=uv, e2=vw, e3=wu (notice this!)
* - Type 1: ->, ->, -> (1 cycle)
* - Type 2: ->, ->, <- (1 trus... | true |
d6d7839c63c8aaee5a2272bc23e22bb966f7bc29 | Java | JavierEGoTe/Ejercicio-Figuras-Geometricas | /src/Circulo.java | UTF-8 | 233 | 2.734375 | 3 | [] | no_license | import static java.lang.Math. *;
public class Circulo extends FigurasGeometricas{
float radio=0.0f;
double area=0;
public String calcularArea() {
area = Math.PI*Math.pow(radio,2);
return "El area del circulo es: "+area;
}
}
| true |
3bb30c2565ea7c7f986e0d0e18bd7128c2ee1a9f | Java | nelsonwhf/InviteMsgCenter | /src/com/duowan/gamebox/msgcenter/msg/response/JoinGameResponse.java | UTF-8 | 317 | 1.75 | 2 | [] | no_license | /**
*
*/
package com.duowan.gamebox.msgcenter.msg.response;
import com.duowan.gamebox.msgcenter.msg.AbstractMessage;
/**
* @author zhangtao.robin
*
*/
public class JoinGameResponse extends AbstractMessage<Object> {
public JoinGameResponse() {
super();
setCode(JOIN_GAME_CODE);
}
}
| true |
84259ccc0793eec12d737c7eb4228946e041e7de | Java | chiangming/leetcode-solution | /src/main/java/com/leetcode/solution/Solution32_Longest_Valid_Parentheses.java | UTF-8 | 3,965 | 3.546875 | 4 | [] | no_license | package com.leetcode.solution;
import java.util.Map;
import java.util.Stack;
/**
* @Author mingjiang
* @Date 2019/4/11 17:41
*/
public class Solution32_Longest_Valid_Parentheses {
//如果能使用for循环就使用for循环,而不是没有剪枝的DFS迭代
public int longestValidParentheses(String s) {
int maxlen = 0;
for (int i ... | true |
4266005b2ee00f7020c904b0480f072212485b6c | Java | Cocanuta/Marble | /com/planet_ink/marble_mud/Abilities/Songs/Play_Accompaniment.java | UTF-8 | 2,484 | 1.96875 | 2 | [] | no_license | package com.planet_ink.marble_mud.Abilities.Songs;
import com.planet_ink.marble_mud.core.interfaces.*;
import com.planet_ink.marble_mud.core.*;
import com.planet_ink.marble_mud.core.collections.*;
import com.planet_ink.marble_mud.Abilities.interfaces.*;
import com.planet_ink.marble_mud.Areas.interfaces.*;
import com.pl... | true |
a4e0d1316b024d47164d71ee40674000d9a5fa50 | Java | geovas01/mathpiper | /src/library_apps/piper_me/piper_me/org/mathrider/piper_me/ParsedObject.java | UTF-8 | 9,606 | 2.484375 | 2 | [] | no_license | package org.mathpiper.ide.piper_me;
class ParsedObject
{
public ParsedObject(InfixParser aParser)
{
iParser = aParser;
iError = false;
iEndOfFile = false;
iLookAhead = null;
}
public void Parse() throws Exception
{
ReadToken();
if (iEndOfFile)
{
iResult.setNext(iParser.iE... | true |
149a23d349fd721914159869584c638b1e75cf27 | Java | quarl894/Algorithm_exam | /Algo/src/backjune/DFS_BFS/bj_15655.java | UTF-8 | 1,365 | 2.953125 | 3 | [] | no_license | package backjune.DFS_BFS;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.Arrays;
public class bj_15655 {
static int n;
static int m;
static int[] arr;
static int[] tmp;
static boolean[] visited;
public static void main(String[] args) throws Exception{
... | true |
da9c5de99230a1921167b284b58eac6372a117e0 | Java | boosey/resource-scheduler | /reservation/reservation-api/src/main/java/boosey/ReservationAPI.java | UTF-8 | 4,363 | 2.234375 | 2 | [] | no_license | package boosey;
import java.util.List;
import javax.enterprise.context.ApplicationScoped;
import javax.inject.Inject;
import javax.ws.rs.Consumes;
import javax.ws.rs.DELETE;
import javax.ws.rs.GET;
import javax.ws.rs.NotAcceptableException;
import javax.ws.rs.POST;
import javax.ws.rs.PUT;
import javax.ws.rs.Path;
impo... | true |
c11848be2e1bbd8279e22f7933917ec355c44959 | Java | Fxhnd13/TS1-Tiempo-Maya | /Proyecto Escritorio/src/modelos/objetos/Energia.java | UTF-8 | 1,905 | 3.21875 | 3 | [] | no_license | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package modelos.objetos;
/**
* Clase destinada a almacenar la información de una energia
* @author jose_
*/
public class Energia {
... | true |
eaf496d6fd51e6bfdac3c3b20f9ec931d5afb288 | Java | jianJizz/JUC | /src/main/java/com/usc/leetcode/RemoveNthFromEnd.java | UTF-8 | 2,240 | 3.90625 | 4 | [] | no_license | package com.usc.leetcode;
import java.util.*;
/**
*给定一个链表,删除链表的倒数第 n 个节点,并且返回链表的头结点。
*
* 示例:
*
* 给定一个链表: 1->2->3->4->5, 和 n = 2.
*
* 当删除了倒数第二个节点后,链表变为 1->2->3->5.
* 说明:
*
* 给定的 n 保证是有效的。
*
* 进阶:
*
* 你能尝试使用一趟扫描实现吗?
*
* 来源:力扣(LeetCode)
* 链接:https://leetcode-cn.com/problems/remove-nth-node-from-end-of-l... | true |
1695c4f662828d38c816a79923242068d16e25e1 | Java | broeschi/Versuch1307 | /src/converter/ResultatConverter.java | ISO-8859-3 | 4,061 | 2.6875 | 3 | [] | no_license | package converter;
import java.util.HashMap;
import java.util.Map;
import com.healthmarketscience.jackcess.Row;
import Person.Person;
import Person.Resultat;
/**
* Klasse zur Konvertierung der Resultatdaten zwischen DB und Javamodell
*
* @author Ruedi Broger
*/
public class ResultatConverter {
... | true |
ae5623e3bcfc7f3bd8e92f19dd25ae638ff46e99 | Java | Cenyijin/interview-assignments | /java/src/main/java/com/cx/shorturl/app/service/impl/ShortUrlServiceImpl.java | UTF-8 | 3,434 | 2.703125 | 3 | [] | no_license | package com.cx.shorturl.app.service.impl;
import com.cx.shorturl.app.data.ShortUrl;
import com.cx.shorturl.app.id.IdGenerator;
import com.cx.shorturl.app.service.ShortUrlService;
import com.google.common.cache.Cache;
import com.google.common.cache.CacheBuilder;
import com.google.common.cache.RemovalListener;
import or... | true |
3407b4ff819833e00d163efc338d629e9ce5836d | Java | Sebastian-Noren/PoliceSystem | /src/main/java/pust/model/entity/Person.java | UTF-8 | 2,673 | 2.484375 | 2 | [] | no_license | package pust.model.entity;
import pust.model.administrative_functions.application_functions.Identification;
import pust.model.administrative_functions.report_system.report.CrimeReport;
import pust.model.administrative_functions.report_system.record.Record;
import pust.model.enumerations.Gender;
public abstract class ... | true |
123e4b754f3dbe812f9d8db06f9d0d161985541d | Java | abhi8panmand/TvShowApp | /app/src/main/java/com/gravity/tvshows/API/ApiClient.java | UTF-8 | 1,835 | 2.28125 | 2 | [] | no_license | package com.gravity.tvshows.API;
import android.app.Activity;
import com.readystatesoftware.chuck.ChuckInterceptor;
import java.net.CookieManager;
import java.net.CookiePolicy;
import java.util.concurrent.TimeUnit;
import okhttp3.OkHttpClient;
import okhttp3.internal.JavaNetCookieJar;
import okhttp3.logging.HttpLog... | true |
86c1c90979496d639eb61e44e9e2d5e87a9e052d | Java | nginer/CloudWeb | /src/testweb/vo/Admin.java | UTF-8 | 1,002 | 2.140625 | 2 | [] | no_license | package testweb.vo;
public class Admin {
private String admin_ID;
private String admin_name;
private String time_regist;
private String time_login;
private String email;
private String password;
public String getAdmin_ID() {
return admin_ID;
}
public void setAdmin_ID(String admin_ID) {
this.admin_ID = adm... | true |
bb2845ded50aa1de5dda20965d63d6312c923049 | Java | asanka88/Learning | /Read_Data_Sources/ReadDataSources/src/main/java/org/wso2/carbon/am/internal/Util.java | UTF-8 | 415 | 1.671875 | 2 | [] | no_license | package org.wso2.carbon.am.internal;
import org.wso2.carbon.ndatasource.core.DataSourceService;
public class Util {
private static DataSourceService dataSourceAdminService;
public static DataSourceService getNDataService() {
return dataSourceAdminService;
}
public static synchronized void... | true |
eb70463ee5b339bba94ba5f08dda1ec414a884b4 | Java | Nesomar/facisa-plp-162 | /Projeto 1 - Estágio 1/Analisador.java | UTF-8 | 17,126 | 2.921875 | 3 | [] | no_license | /* Generated By:JavaCC: Do not edit this line. Analisador.java */
public class Analisador implements AnalisadorConstants {
/*impressão dos tokens recebidos como entrada */
public void processa() throws Exception {
while (true) {
Token t = getNextToken();
String nomeToken = tokenImag... | true |
cf77c9eb0849cf8285c8529ab226ed52ea432955 | Java | reverseengineeringer/com.yelp.android | /src/bolts/j.java | UTF-8 | 258 | 1.5 | 2 | [] | no_license | package bolts;
public abstract interface j<TTaskResult, TContinuationResult>
{
public abstract TContinuationResult then(k<TTaskResult> paramk);
}
/* Location:
* Qualified Name: bolts.j
* Java Class Version: 6 (50.0)
* JD-Core Version: 0.7.1
*/ | true |
95e4345101edf2fc96d105ac996ff1471aef025d | Java | purushottam-kr-singh/Practice_code | /Practice_Test/src/com/company/main/stack/NearestSmallerElementRight.java | UTF-8 | 1,665 | 4.03125 | 4 | [] | no_license | package com.company.main.stack;
import java.util.Scanner;
import java.util.Stack;
public class NearestSmallerElementRight {
/** This method accept the input as array of integer and find the neares
* smaller element to the right of each element and return the value for
* each element
* @param nums... | true |
321c16c31d08c35c70fee4b02acc1645094697a8 | Java | kkhalili16/ApiTesing | /src/test/java/utils/Utility.java | UTF-8 | 1,595 | 2.65625 | 3 | [] | no_license | package utils;
import java.io.File;
import java.io.IOException;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;
import com.BaseClassWebDriver;
import org.apache.commons.io.FileUtils;
import org.openqa.selenium.OutputType;
import org.openqa.selenium.Tak... | true |
fb377bbc7e84b422b1ed841380cb19096c0ed3b0 | Java | Guksu/AcademyClass | /chapter11_reference_array/src/Test03/WeekScheduler.java | UTF-8 | 2,948 | 3.890625 | 4 | [] | no_license | package Test03;
import java.util.Scanner;
public class WeekScheduler {
Day[] days;
Scanner sc;
String[] week = {"월","화","수","목","금","토","일"};
public WeekScheduler() {
sc = new Scanner(System.in);
days = new Day[7];
for (int i=0; i<days.length; i++) {
days[i] = new Day();
}
}
vo... | true |
b0a3c2b8c156aa3dd0ec383694cfaec08852cdd6 | Java | EmanuelGabriel/processos-api | /src/main/java/br/com/meta/projetoapimeta/services/DocumentService.java | UTF-8 | 1,023 | 2.15625 | 2 | [] | no_license | package br.com.meta.projetoapimeta.services;
import java.time.LocalDate;
import java.util.List;
import java.util.Optional;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import br.com.meta.projetoapimeta.domain.dtos.request.DocumentModelInputRequest;
import br.com.meta.... | true |
5c84a263565dee39bb04e0a3c271945795601fc2 | Java | woshiqiang/txt | /app/src/main/java/com/hbck/txt/MainActivity.java | UTF-8 | 1,991 | 2.359375 | 2 | [] | no_license | package com.hbck.txt;
import android.app.ProgressDialog;
import android.content.Intent;
import android.os.Bundle;
import android.os.Environment;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.AdapterView;
import android.widget.ListView;
import java.io.File;
import jav... | true |
995147dbca63f46a5adf193bef0607ea35067a9e | Java | cgnov/pomfocus | /app/src/main/java/com/example/pomfocus/fragments/profile/ProfileFragment.java | UTF-8 | 10,359 | 1.726563 | 2 | [] | no_license | package com.example.pomfocus.fragments.profile;
import android.os.Bundle;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.fragment.app.Fragment;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import androi... | true |
81927584bf7767071142c471609b7663726c5e1b | Java | esalty/JavaCourse5GoIT | /src/module9/testCore/Top.java | UTF-8 | 170 | 1.882813 | 2 | [] | no_license | package module9.testCore;
/**
* Created by GodMod on 2/11/2017.
*/
public class Top {
public Top(String s) { System.out.print("B"); }
public Top() {
}
}
| true |
9e4402af8650523862588284228ab4bf2ae0922f | Java | visalim/ServletProject | /src/com/phonebook/domain/Contact.java | UTF-8 | 273 | 2.15625 | 2 | [] | no_license | package com.phonebook.domain;
public interface Contact {
int getId();
void setId(int id);
String getName();
void setName(String name);
String getEmail();
void setEmail(String email);
String getMobile();
void setMobile(String mobile);
} | true |
4d1a24a8c62b703e5aca69ccb3d6766a00def505 | Java | pmushegh/junit5_for_ui_testing | /src/test/java/test_junit5/TestClassRepeatedTest.java | UTF-8 | 430 | 2.328125 | 2 | [] | no_license | package test_junit5;
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.RepeatedTest;
import org.junit.jupiter.api.TestInfo;
public class TestClassRepeatedTest {
@RepeatedTest(value = 3, name = "{displayName} -> {currentRepetition}/{totalRepetitions}")
@DisplayName("Repeated test name")
... | true |
0c9a1e12e73795cb2ff896696df15b3919c33bbf | Java | drobishman/TimeToGo | /app/src/main/java/it/curdrome/timetogo/connection/atac/IdPalinaAsyncTask.java | UTF-8 | 7,619 | 2.265625 | 2 | [] | no_license | package it.curdrome.timetogo.connection.atac;
import android.os.AsyncTask;
import android.util.Log;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
import java.net.MalformedURLException;
import java.net.URL;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.... | true |
984fcedbe0a8718a92659518ce825b33589da8ea | Java | JNKKKK/Rutgers-CS526-Project-Template | /template2/src/main/java/inside/AddTask.java | UTF-8 | 1,990 | 2.46875 | 2 | [] | no_license | package inside;
import java.io.IOException;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.SQLException;
import java.util.Date;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
imp... | true |
52e4be741565d1cf586a24d9fcca9428870d4b99 | Java | supersize/MyProjects | /KimJaeHyeong_1/src/board_dao/BDao.java | UTF-8 | 8,823 | 2.3125 | 2 | [] | no_license | package board_dao;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.Timestamp;
import java.util.ArrayList;
import javax.naming.Context;
import javax.naming.InitialContext;
import javax.sql.DataSource;
import board_dto.BDto;
public class BDao {
... | true |
18119cf2be0bdce14155b8da2755d88b3551e35c | Java | sohanKumawat/java-sample-project | /mb-spring-service/process-springboot-jpa/src/main/java/com/mb/demo/entity/common/ticket/TicketLogging.java | UTF-8 | 572 | 1.914063 | 2 | [] | no_license | package com.mb.demo.entity.common.ticket;
import java.io.Serializable;
import javax.persistence.Column;
import com.mb.demo.beans.BaseBean;
import com.mb.demo.constants.PickPackConstants.TicketType;
import lombok.Data;
import lombok.EqualsAndHashCode;
@Data
@EqualsAndHashCode(callSuper = false)
public class TicketL... | true |
4ef5c39d9ad96bf9e484b72caf9f8ed1d3b7c656 | Java | devom7022/Blix | /app/src/main/java/com/example/blix/ui/discover/DiscoverPresenter.java | UTF-8 | 3,783 | 2.328125 | 2 | [
"MIT"
] | permissive | package com.example.blix.ui.discover;
import android.util.Log;
import com.example.blix.api.ApiClient;
import com.example.blix.model.ResponseDiscover;
import retrofit2.Call;
import retrofit2.Callback;
import retrofit2.Response;
public class DiscoverPresenter implements DiscoverListener.Presenter{
private static ... | true |
cc80b7d2c35be3878314e37014fd40c612346270 | Java | gleatham/CST-135_AddressBook | /src/Location.java | UTF-8 | 985 | 2.984375 | 3 | [] | no_license | /**
* Stand along class.
* Used by BaseContact to add a location
*/
public class Location {
private String locationId;
private String street;
private String city;
private String state;
Location(String locationId, String street, String city, String state){
this.locationId = locationId;
... | true |
b6f28635ca736e5a93d0a0660f0073754db2c85f | Java | moutainhigh/center-1 | /newscenter/src/main/java/com/cmall/newscenter/model/DeliveryCharResult.java | UTF-8 | 818 | 1.867188 | 2 | [] | no_license | package com.cmall.newscenter.model;
import java.util.ArrayList;
import java.util.List;
import com.srnpr.zapcom.baseannotation.ZapcomApi;
import com.srnpr.zapweb.webapi.RootResultWeb;
/**
* 发货输出类
* @author shiyz
* date 2016-03-20
*
*/
public class DeliveryCharResult extends RootResultWeb {
@ZapcomApi(value="发货... | true |
9308d1ccd8985b9febe80e213aa1c91b05f267d2 | Java | thanghv1711/Battleship_android | /app/src/main/java/fu/prm391/example/view/RegisterDialog.java | UTF-8 | 1,605 | 2.203125 | 2 | [] | no_license | package fu.prm391.example.view;
import android.app.ActionBar;
import android.app.Activity;
import android.app.Dialog;
import android.os.Bundle;
import android.widget.Button;
import fu.prm391.example.event.DRegisterBtnCancelOnClickListener;
import fu.prm391.example.event.DRegisterBtnRegisterOnClickListener;
public cl... | true |
7633b70082fc159a7468d5694c89071ff116c008 | Java | VXolevchuk/verysimplebank | /src/main/java/com/example/verysimplebank/repos/TransactionRepository.java | UTF-8 | 647 | 1.976563 | 2 | [] | no_license | package com.example.verysimplebank.repos;
import com.example.verysimplebank.dto.TransactionToDisplayDTO;
import com.example.verysimplebank.model.Account;
import com.example.verysimplebank.model.Transaction;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Que... | true |
5823075b2075bf7aecdfbdb373fa3163be78f02d | Java | kawasima/services-by-lifecycle | /src/main/java/net/unit8/examples/user/domain/Requester.java | UTF-8 | 688 | 2.21875 | 2 | [] | no_license | package net.unit8.examples.user.domain;
import lombok.Getter;
import org.springframework.security.core.GrantedAuthority;
import org.springframework.security.core.authority.SimpleGrantedAuthority;
import java.util.Collection;
import java.util.Set;
@Getter
public class Requester extends Member {
private final Proj... | true |
0043e82f36b66eccaf3d0cadcff2ce79d022f2d1 | Java | GigaSpaces-ProfessionalServices/distributed-collections | /collections-core/src/main/java/org/openspaces/collections/queue/distributed/operations/DistrQueueHeadResult.java | UTF-8 | 2,285 | 2.703125 | 3 | [] | no_license | package org.openspaces.collections.queue.distributed.operations;
import java.io.Externalizable;
import java.io.IOException;
import java.io.ObjectInput;
import java.io.ObjectOutput;
import static org.openspaces.collections.util.SerializationUtils.readNullableObject;
import static org.openspaces.collections.util.Serial... | true |
d8d0b4392e3d037cc1a2dd299f464cf1a11a67a6 | Java | MahdiHoseiniTabar/TaskManager | /app/src/main/java/com/example/caspian/taskmanager/CallBack.java | UTF-8 | 93 | 1.867188 | 2 | [] | no_license | package com.example.caspian.taskmanager;
public interface CallBack {
void callBack();
}
| true |
69525b48aecb1a7d3d60030b5513ccdaf54ea56f | Java | Sravani04/WEEELCO | /app/src/main/java/com/example/yellowsoft/weeelco/AccountFragment.java | UTF-8 | 20,245 | 1.804688 | 2 | [] | no_license | package com.example.yellowsoft.weeelco;
import android.content.Intent;
import android.graphics.Color;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.view.WindowManager... | true |
ad76aec5d68c1182dbcde5a7bf67a14fe2ab97f5 | Java | ianuoui/elasticsearch | /server/src/main/java/org/elasticsearch/index/query/Rewriteable.java | UTF-8 | 6,450 | 2.171875 | 2 | [
"Apache-2.0",
"Elastic-2.0",
"SSPL-1.0",
"LicenseRef-scancode-other-permissive"
] | permissive | /*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License
* 2.0 and the Server Side Public License, v 1; you may not use this file except
* in compliance with, at your election, the Elastic License 2.0 or the Server... | true |
24d895753255aec38453fe99a5fadbe3fadcba3d | Java | aanchal-n/CCBD-Project | /microservices/ms3/src/main/java/com/ms3/services/ms3serviceimpl.java | UTF-8 | 357 | 2.03125 | 2 | [] | no_license | package com.ms3.services;
import com.ms3.entity.ms3;
import org.springframework.stereotype.Service;
import java.util.List;
@Service
public class ms3serviceimpl implements ms3service{
@Override
public String getms3(Integer a) {
if (a%2 == 0)
return ("EVEN");
else
... | true |
b611c7922f95377644c9c38616a72419eb3c2f55 | Java | avilesj/taskr-api | /src/main/java/com/javiles/taskr/services/TaskServiceImpl.java | UTF-8 | 786 | 2.46875 | 2 | [] | no_license | package com.javiles.taskr.services;
import com.javiles.taskr.models.Task;
import com.javiles.taskr.repositories.TaskRepository;
import org.springframework.beans.factory.annotation.Autowired;
import java.util.List;
import java.util.Optional;
public class TaskServiceImpl implements TaskService
{
@Autowired
pri... | true |
2295f0b10302ec9c50005338bc573d4c1108b89d | Java | mikiebrenbren/spel-spring-sample | /src/main/java/com/caveofprogramming/spring/test/RandomText.java | UTF-8 | 491 | 2.640625 | 3 | [] | no_license | package com.caveofprogramming.spring.test;
import org.springframework.stereotype.Component;
import java.util.Random;
/**
* Created by michaelbrennan on 3/22/15.
*/
@Component
public class RandomText {
private static String[] text = {
"I'll be back",
"Get to the choppa!",
"H... | true |
ce5e7a91dc362ee0ee4b02b98dd8b51c7c2f50b5 | Java | lakerswq7/Interview | /dp/LongestIncreasingSubsequence.java | GB18030 | 1,739 | 3.703125 | 4 | [] | no_license | package dp;
/*
* http://www.lintcode.com/zh-cn/problem/longest-increasing-subsequence/
* 0. ½еijȣ sequence -> dp
* 1. f[i] -> Ϊi + 1LISһСΪ
* 2. f[i] -> 쵽jλõʱf[i]ҵĵһnums[j]λΪiʱf[i]ֵΪnums[j]
* ǣʵһСģLISλüһnums[j]
* 3. f[i]ΪInteger.MAX_VALUE
* 4. һlen¼ǰLIS ɨһԺlen
*
* Ż㷨ӶO(nlogn)
* һdpĻҪO(n^2),ɨһͬʱҪɨַ֮ǰ
*... | true |
db4a4fd17a61ea248293fd4c9cdf19b2e6fb9a77 | Java | Darkceus/Programacion-Ambientada-a-Cliente-Servidor | /5 - Archivo_v2/ArchivoCliente_v2/src/archivocliente/Cliente.java | UTF-8 | 18,711 | 2.921875 | 3 | [] | no_license | package archivocliente;
import java.awt.Desktop;
import java.net.*;
import java.io.*;
import java.util.Scanner;
/**
* Clase Cliente. En esta clase se manejan todos los Clientes vistos en el
* parcial.
* @author Alexander Gámez Urías
* @version 1.0
*/
public class Cliente {
private String direccion;
priv... | true |
43948dbc44c6bfda5254e660ef7767b4455c3b0f | Java | princeprag/Buy-Rent-Sell-IITG | /app/src/main/java/com/example/rentbuysell/Buy.java | UTF-8 | 1,675 | 1.914063 | 2 | [] | no_license | package com.example.rentbuysell;
import androidx.appcompat.app.AppCompatActivity;
import androidx.appcompat.widget.Toolbar;
import androidx.viewpager.widget.ViewPager;
import android.os.Bundle;
import com.example.rentbuysell.Fragment.*;
import com.example.rentbuysell.adapter.ViewPagerAdapter;
import com.gigamole.nav... | true |
cd0d1eef91356ca22ab4ae06ad6c2e01137c3cf0 | Java | vireninterviewkit/code-backup | /coding-skills/geeksforgeeks-module/src/main/java/com/geeks/problem/datastructures/BSTProblems.java | UTF-8 | 20,956 | 3.828125 | 4 | [] | no_license | package com.geeks.problem.datastructures;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.LinkedList;
import java.util.List;
import java.util.PriorityQueue;
import java.util.Queue;
import java.util.Stack;
import com.common.model.TreeNode;
import com.common.model.Lis... | true |
2de6142bc7506027933f68f3e41b0a5f6a18b4f5 | Java | zJiangnan/Java | /RD_IDEA_Java/JavaIO/src/main/java/cn/echo/bufferedstream/BufferedInputStreamTest.java | UTF-8 | 2,961 | 3.296875 | 3 | [] | no_license | package cn.echo.bufferedstream;
import java.io.*;
/**
* @ClassName : BufferedInputStreamTest
* @Author : Jiangnan
* @Date: 2020/11/3 10:50
* @Description : 缓冲字节输入流
**/
public class BufferedInputStreamTest {
public static void main(String[] args) throws IOException {
InputStream is = new FileInputStre... | true |
b5f10ebceef380557ad36b2f00bcfeb677af6dff | Java | zhanglei-1987/project | /project-utility/src/test/java/cn/quickly/project/utility/reflect/AnnotationsTest.java | UTF-8 | 1,698 | 2.265625 | 2 | [] | no_license | package cn.quickly.project.utility.reflect;
import java.lang.reflect.Method;
import org.junit.Test;
import cn.quickly.project.utility.map.Maps;
import cn.quickly.project.utility.mock.MockComponent;
import cn.quickly.project.utility.mock.MockDemo;
import cn.quickly.project.utility.mock.MockInstance;
import ... | true |
81553ccf50d063a9680a4e6f503ba1cd5dafceb0 | Java | alex-carvalho/clean-code | /src/main/java/com/ac/example/cleanCode/service/CandidateServiceImpl.java | UTF-8 | 3,755 | 2.5625 | 3 | [
"MIT"
] | permissive | package com.ac.example.cleanCode.service;
import com.ac.example.cleanCode.model.Candidate;
import com.ac.example.cleanCode.model.Course;
import com.ac.example.cleanCode.repository.CandidateRepository;
import com.ac.example.cleanCode.service.exceptions.CandidateDoesntMeetRequirementsException;
import com.ac.example.cle... | true |
f40211ee0b1bfa66b243df69779218f415b1ddd7 | Java | Deborina/DataStreamingService | /data-streaming-service/src/main/java/com/hellofreash/constant/QueryConstant.java | UTF-8 | 524 | 1.960938 | 2 | [] | no_license | package com.hellofreash.constant;
public class QueryConstant {
public static final String QUERY_SAVE = "insert into EVENTS(timestamp_millis, event_col1, event_col2) "
+ "values(?, ?, ?) ";
public static final String QUERY_EVENT_STATS = "select count(*) as count, sum(EVENT_COL1) as firstColumnSum,"
+... | true |
38929a2d06bb7641dd9af9bca6b35d520e9770bd | Java | GenYuanLian/monera | /Service/shop-soa/shop-soa-api/src/main/java/com/genyuanlian/consumer/shop/api/IWeixinpayApi.java | UTF-8 | 1,034 | 1.890625 | 2 | [] | no_license | package com.genyuanlian.consumer.shop.api;
import java.util.Map;
import com.genyuanlian.consumer.shop.vo.ShopMessageVo;
import com.genyuanlian.consumer.shop.vo.WeixinpayParamsVo;
public interface IWeixinpayApi {
/**
* 微信支付,同意下单接口
* @param req
* @return
*/
public ShopMessageVo<Map<String,Object>> unifiedOrd... | true |
d7cf37f1078d1fd490efff03761a2ce22ee75961 | Java | sirinath/Terracotta | /dso/branches/3.5/code/base/dso-l1/src/com/tc/object/handler/ReInvalidateHandler.java | UTF-8 | 3,610 | 2.265625 | 2 | [] | no_license | /*
* All content copyright Terracotta, Inc., unless otherwise indicated. All rights reserved.
*/
package com.tc.object.handler;
import com.tc.object.ObjectID;
import com.tc.object.cache.CachedItemStore;
import com.tc.util.ObjectIDSet;
import com.tc.util.TCTimerService;
import java.util.Iterator;
import java.util.Ti... | true |
2bcdd83707f7f5e6c969a7eb132f2254b21b65bc | Java | montoyaguzman/itapizaco | /1_Fundamentos/Programacion Orientada A Objetos/Practicas de clase/Teclado.java | ISO-8859-1 | 447 | 3.4375 | 3 | [] | no_license | import java.io.*;
public class Teclado
{
public int leeEntero()
{
boolean bandera=false;
int dato=0;
while(!bandera)
{
try
{
BufferedReader br= new BufferedReader (new InputStreamReader(System.in));
dato=Integer.parseInt(br.readLine());
bandera=true;
}
catch(Exception dato)
... | true |
f78d86d161dd2b04be7211f5ce8d09a905e1a9ef | Java | j-white/hacked-castor | /cpa/src/main/java/org/exolab/castor/jdo/engine/JDOFieldDescriptor.java | UTF-8 | 1,761 | 1.789063 | 2 | [] | no_license | /*
* Copyright 2006 Ralf Joachim
*
* 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 ... | true |
61467f3a4d5e199fcb52ae3bfe959af1b6d2bab1 | Java | dcoraboeuf/txconsole | /txconsole-core/src/main/java/net/txconsole/core/model/TranslationMapResponse.java | UTF-8 | 357 | 1.632813 | 2 | [] | no_license | package net.txconsole.core.model;
import lombok.Data;
import java.util.List;
import java.util.Locale;
/**
* Truncated version of a {@link TranslationMap}, to be used at client side.
*/
@Data
public class TranslationMapResponse {
private final int total;
private final List<Locale> locales;
private fina... | true |
e24e5204daae3d9f41d479cb1cd00be7f427cb0c | Java | andressj6/spring-social-spotify | /src/main/java/org/springframework/social/spotify/api/Spotify.java | UTF-8 | 1,295 | 1.585938 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2014 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | true |
90cd8dc66b0022019a167f9dd9e629622e4555fc | Java | tvunak/springbackend | /src/main/java/com/example/restexampletv/model/ArticleDetail.java | UTF-8 | 1,248 | 2.34375 | 2 | [] | no_license | package com.example.restexampletv.model;
import com.fasterxml.jackson.annotation.JsonIgnore;
import javax.persistence.*;
@Entity
public class ArticleDetail{
@Id
private long id;
private String description;
private String manufacturer;
@OneToOne
@MapsId
@JsonIgnore
private Article ar... | true |
0eec23d0a9172681b6ecd2d37e74b2e30cf590b3 | Java | Kushagra369/Codeforces_Sol | /MaximumInTable.java | UTF-8 | 521 | 3.140625 | 3 | [] | no_license | import java.util.*;
public class MaximumInTable {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
sc.close();
int[][] a = new int[n][n];
int max = 0;
for(int i=0; i<n; i++)
{
for(int j=0; j<n; j++)
{
if(i==0 ||j==0)
{
... | true |
1ae24a6069678ca8d120a8d8cf44911f18127fdb | Java | yangsongshui/xds | /ebottle/src/main/java/com/wsq/ebottle/fragment/LoveFragment.java | UTF-8 | 4,150 | 2.0625 | 2 | [] | no_license | package com.wsq.ebottle.fragment;
import java.util.ArrayList;
import com.wsq.ebittle.common.Constants;
import com.wsq.ebottle.R;
import com.wsq.ebottle.adapter.LoveAdapter;
import com.wsq.ebottle.bean.Event;
import com.wsq.ebottle.broadcast.CountDownReceiver;
import com.wsq.ebottle.db.dao.EventTableDao;
import com.ws... | true |
686dfcf2277d738b9025fff9f3c26879163a8a65 | Java | an-jun/springboot-wechat-demo | /src/main/java/cc/anjun/wechat/domain/res/ImageMessage.java | UTF-8 | 300 | 1.789063 | 2 | [] | no_license | package cc.anjun.wechat.domain.res;
import cc.anjun.wechat.domain.BaseMessage;
public class ImageMessage extends BaseMessage {
private Image Image;//Image节点
public Image getImage() {
return Image;
}
public void setImage(Image image) {
Image = image;
}
} | true |
7853195d1abd08730b25290b7fc9240d4ca8c7f3 | Java | Kseniya-Katselnikava/JB29_HT1 | /Z37p9.java | UTF-8 | 1,501 | 3.328125 | 3 | [] | no_license | //Составить линейную программу, печатающую значение true, если указанное
//высказывание является истинным, и false — в противном случае:
//• График функции у = ах2 + bх+ с проходит через заданную точку с координатами (m,
//п).
package by.epam.jb29.task01;
import java.util.Scanner;
public class Z37p9 {
publ... | true |
4709214cda6a3ce6dcf74f1f0870e150addec45e | Java | Roxic-stackoverflowerror/RoxicProject | /crm/src/main/java/com/roxic/crm/workbench/dao/ContactsActivityRelationDao.java | UTF-8 | 394 | 1.601563 | 2 | [] | no_license | package com.roxic.crm.workbench.dao;
import com.roxic.crm.workbench.domain.ContactsActivityRelation;
public interface ContactsActivityRelationDao {
int save(ContactsActivityRelation contactsActivityRelation);
int getCountsByConids(String[] ids);
int deletByConids(String[] ids);
int unbound(String ... | true |
3b61d27718ad0d47b3120995e34542a822903bb5 | Java | xu20160924/leetcode | /leetcodejava/src/main/java/com/designpattern/singleton/Singleton2.java | UTF-8 | 1,470 | 3.671875 | 4 | [] | no_license | package com.designpattern.singleton;
/**
* @author: John
* @date: 2020-11-01 17:39
* @description: 懒汉式单例
**/
public class Singleton2 {
// 指向自己实例的私有静态引用
private static Singleton2 singleton2;
// 私有的构造方法
private Singleton2() {}
// // 以自己实例为返回值的静态的公有方法,静态工厂方法
// public static Singleton2 getSin... | true |
ab6fa8840b599169adfad0f6620a758b776b03c8 | Java | huebschwerlen/JavaApp | /apptbook-android/app/src/main/java/edu/pdx/cs410J/hueb/SearchViewActivity.java | UTF-8 | 4,988 | 2.375 | 2 | [
"Apache-2.0"
] | permissive | package edu.pdx.cs410J.hueb;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.os.Bundle;
import android.widget.ArrayAdapter;
import android.widget.ListView;
import android.widget.TextView;
import android.widget.Toast;
import java.io.BufferedReader;
import java.io.File;
i... | true |
c50c0239b9a84e3c5d63176d99ffb8ebf2d1830a | Java | cadereynoldson/raffleprogram | /GUI_V2/subpanels/TestingFrame.java | UTF-8 | 3,963 | 2.46875 | 2 | [] | no_license | package subpanels;
import java.awt.BorderLayout;
import java.awt.GridLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.JButton;
import javax.swing.JCheckBox;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.UIManager;
import fadingComponents.F... | true |
5d9c6ed3f4fb653e023a3aa1bf01904a5e309573 | Java | svashish305/ftpusingudp | /simple_ftp_client.java | UTF-8 | 7,324 | 2.609375 | 3 | [
"MIT"
] | permissive | /*
* 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.
*/
import java.io.*;
import java.net.*;
/**
*
* @author shubhashish
*/
public class simple_ftp_client {
String hostna... | true |
06db465b7d0a5b9e62c7429288bdeb772debd885 | Java | LittleDecorator/JointPurchase | /src/main/java/com/acme/controller/MediaController.java | UTF-8 | 4,941 | 2.34375 | 2 | [] | no_license | package com.acme.controller;
import com.acme.enums.ImageSize;
import com.acme.handlers.Base64BytesSerializer;
import com.acme.model.Content;
import com.acme.repository.ContentRepository;
import com.acme.service.ImageService;
import com.acme.service.ResizeService;
import java.time.LocalDateTime;
import java.time.ZoneId... | true |
ace5cb539b3293c1f2ab0b9b420eb8789dfc4318 | Java | kiritoAsunaXy/house | /house/house-common/src/main/java/com/xuyu/house_common/Testasurl.java | UTF-8 | 235 | 1.585938 | 2 | [] | no_license | package com.xuyu.house_common;
import com.xuyu.house_common.result.ResultMsg;
public class Testasurl {
public static void main(String args[]){
System.out.println(ResultMsg.successMsg("你好啊").asUrlParams());
}
}
| true |
539051fbf565f05c76e8d084c87584ef690b77cf | Java | rcrodrigues/movie_app | /app/src/main/java/com/example/android/movie/activities/discovery/view/DiscoveryAdapterOnClickHandler.java | UTF-8 | 242 | 1.65625 | 2 | [] | no_license | package com.example.android.movie.activities.discovery.view;
import com.example.android.movie.activities.discovery.entities.DiscoveryModel;
public interface DiscoveryAdapterOnClickHandler {
void onClick(DiscoveryModel discoveryModel);
} | true |
3fcdb0f868af3ee192d886aed7f8bf83ca7a7478 | Java | vb143/simple_basic_programs | /Java_Project/javaArray/programs/ArrayUserInput.java | UTF-8 | 659 | 3.5625 | 4 | [] | no_license | package javaArray.programs;
import java.util.Scanner;
public class ArrayUserInput {
public static void main(String[] args) {
Scanner scanner =new Scanner(System.in);
int [] array = new int[10];
System.out.print("Enter 10 numbers ");
for (int i = 0; i < 10; i++) {
array[i] = scanner.nextInt();
}
... | true |
986662213ef1510798c1e1eb5ec12e67e98fe875 | Java | MashiroSky/springboot-EbookStore | /src/main/java/com/bookstore/controller/CartController.java | UTF-8 | 917 | 2.15625 | 2 | [] | no_license | package com.bookstore.controller;
import com.bookstore.entity.Cart;
import com.bookstore.service.CartService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import java.util.List;
@RestController
public class CartController {
@Autowired
CartSe... | true |
827b6505e2fcca954246f216d4b155e9d34584db | Java | margarita910/laba7 | /laba/commands/Show.java | UTF-8 | 1,296 | 3.015625 | 3 | [] | no_license | package laba.commands;
import laba.com.company.DataBaseHandler;
import laba.commands.general.*;
import laba.com.company.Ticket;
import java.sql.SQLException;
import java.util.List;
/**
* Класс, осуществлящий вывод всех элементов коллекции
*/
public class Show implements Command {
public static fin... | true |
d32b2115c8904a9308fc7bbf5e3709e256aaedb6 | Java | waadfahadq/RafeegWAAD | /app/src/main/java/com/example/myapplication/admin_portal/ui/ProfileFragment/add.java | UTF-8 | 12,518 | 1.640625 | 2 | [] | no_license | package com.example.myapplication.admin_portal.ui.ProfileFragment;
import android.Manifest;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.text.TextUtils;
import android.util.Log;
import android.view.MenuItem;
import android.view.View;
import android.widget.AdapterView;... | true |
8ccbdced2640ce648b26d2ea7a4b6f654852b36a | Java | PiccaBro/java_api_training | /src/main/java/fr/lernejo/navy_battle/RivalMap.java | UTF-8 | 3,863 | 2.828125 | 3 | [] | no_license | package fr.lernejo.navy_battle;
import org.json.simple.JSONObject;
import org.json.simple.parser.JSONParser;
import org.json.simple.parser.ParseException;
import java.io.IOException;
import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
import java.ut... | true |
1a85dd1bc0fcdcd6d8a6d138330aa40c34cdf64c | Java | DavidSoto5317/HojaTrabajo3 | /HojaTrabajo3/test/hojatrabajo3/MergeSortTest.java | UTF-8 | 1,079 | 2.828125 | 3 | [] | no_license | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package hojatrabajo3;
import org.junit.After;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeC... | true |