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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
0771a9d887a449ac1f9889774e300eb6c71607ce | Java | Shubham-9798/Capgemini-bootcamp-sept21-online-wallet | /OnlineWalletSystem/OnlineWalletSystem/src/main/java/com/onlinewallet/service/IUserService.java | UTF-8 | 1,208 | 2 | 2 | [] | no_license | package com.onlinewallet.service;
import java.util.List;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;
import com.onlinewallet.entities.BankAccount;
import com.onlinewallet.entities.WalletAccount;
import com.onlinewallet.entities.WalletTransaction;
impo... | true |
a638d49e19ca48fb49018adb14ea936e5a628175 | Java | psk041e/bitcamp | /bitcamp-web01/src/main/java/step12/MessageInitializerA.java | UTF-8 | 401 | 2.15625 | 2 | [] | no_license | package step12;
import java.util.Map;
import bitcamp.mylib.MessageInitializer;
public class MessageInitializerA implements MessageInitializer{
@Override
public void onStartup(Map<String, String> msgMap) {
System.out.println("MessageInitializerA.onStartup()");
msgMap.put("title", "제목입니다."... | true |
6ba9c962bafc797b663acf30ce439ea9c80e2392 | Java | marta-pvfpig/ull-esit-inf-tfg-1819-menu-planning-android-alu0100768152 | /code/TFG3/app/src/main/java/com/example/tfg3/MainActivity.java | UTF-8 | 1,453 | 2.0625 | 2 | [] | no_license | package com.example.tfg3;
import android.content.Intent;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.EditText;
import android.widget.RadioButton;
import android.... | true |
253ae10f371d37eac32a14a03fe35b6f4fc9eb39 | Java | pupysheva/Standardization-of-acceptance-tests-8-semester | /src/abstractFactory/concreteClasses/Style2A.java | UTF-8 | 424 | 2.234375 | 2 | [
"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.
*/
package abstractFactory.concreteClasses;
import abstractFactory.interfaces.IA;
/**
*
* @author pupys
*/
public class Style2A imple... | true |
e1daa897201232bb4cbd2f77b1f0d32e9f2df547 | Java | AbstractElement/EalysProject | /src/main/java/com/sam_solutions/ealys/dto/ImageDTO.java | UTF-8 | 320 | 1.945313 | 2 | [] | no_license |
package com.sam_solutions.ealys.dto;
import lombok.Data;
import javax.validation.constraints.NotNull;
/**
* Class for storing image DTO object.
*/
@Data
public class ImageDTO{
/**
* Image id
*/
private Long imageId;
/**
* Image name
*/
@NotNull
private String imageName;
}
| true |
fea11781d028948d577a32f99922b88c41016465 | Java | Janek00/AkademiaKodu | /src/pl/kodu/akademia/MyWater.java | UTF-8 | 1,250 | 3.03125 | 3 | [] | no_license | package pl.kodu.akademia;
import static pl.kodu.akademia.Constants.*;
public class MyWater {
private int largeBottlesCount = 0;
private int mediumBottlesCount = 0;
private int smallBottlesCount = 0;
public MyWater() {
}
public void addLarge(int pieces) {
this.largeBottlesCount += pi... | true |
1191f8dd8dc995b60580a7913e3ec0b5c93c80c2 | Java | shutu0930/java_programs | /ExamQ3/src/Parking.java | UTF-8 | 110 | 2.15625 | 2 | [] | no_license |
public abstract class Parking {
int spotsNo;
abstract String assignParking();
abstract int currentNo();
}
| true |
6ab45c2a014e1881121966d3a6090d7247d0a53e | Java | reyzarc/FastDevelopFrame | /app/src/main/java/com/xtec/timeline/widget/ProgressStatusView.java | UTF-8 | 3,842 | 2.484375 | 2 | [] | no_license | package com.xtec.timeline.widget;
import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Paint;
import android.graphics.RectF;
import android.util.AttributeSet;
import android.view.View;
import com.xtec.timeline.R;
/**
* Created by 武昌丶鱼 on 2016/11/8.
* Description:自定义带状态的进度view
*/... | true |
b52a30edbacfda3bbb4ca8fffd00ec54c124d61f | Java | 845146913/RSBot-Scripts | /src/stumpy3toes/api/script/GroundItems.java | UTF-8 | 1,087 | 2.390625 | 2 | [] | no_license | package stumpy3toes.api.script;
import org.powerbot.script.rt4.BasicQuery;
import stumpy3toes.api.script.wrappers.GroundItem;
import java.util.ArrayList;
import java.util.List;
public class GroundItems extends BasicQuery<GroundItem> {
public final ClientContext ctx;
public GroundItems(ClientContext ctx) {
... | true |
a4bd4b7e834538debf75a35372a7c885517854a1 | Java | OpenSourceConsulting/playce-chameleon | /src/main/java/com/athena/chameleon/engine/core/analyzer/parser/EjbJarXMLParser.java | UTF-8 | 8,684 | 1.78125 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2012 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 |
2df4526fe5c78ed2c917973f173107f792134a98 | Java | alxlys/algorithms | /Algorithms/src/org/lafore/sort/QuickSort1.java | UTF-8 | 1,996 | 3.59375 | 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 org.lafore.sort;
/**
*
* @author oslysenko
*/
public class QuickSort1 {
private static int[] result;
... | true |
ba6c14197f2936afaacfe8204c1e66571089ec1b | Java | MattNolanLab/PSICS | /Icing/src/org/psics/icing/HashBasedTree.java | UTF-8 | 3,145 | 2.5 | 2 | [] | no_license | package org.psics.icing;
import java.util.ArrayList;
import java.util.HashMap;
import org.catacomb.interlish.structure.Tree;
import org.catacomb.interlish.structure.TreeChangeReporter;
import org.catacomb.interlish.structure.TreeNode;
import org.catacomb.interlish.structure.TreeRoot;
import org.psics.be.E;
import org... | true |
e7402c7f46e4a97f38ad059bce63d498f8716cb7 | Java | markrileybot/boombox | /android/src/main/java/boombox/android/blespp/Scanner.java | UTF-8 | 3,847 | 2.421875 | 2 | [] | no_license | package boombox.android.blespp;
import android.bluetooth.BluetoothManager;
import android.bluetooth.le.BluetoothLeScanner;
import android.bluetooth.le.ScanCallback;
import android.bluetooth.le.ScanFilter;
import android.bluetooth.le.ScanFilter.Builder;
import android.bluetooth.le.ScanResult;
import android.bluetooth.l... | true |
ad92e9e7a7796ee1e891278c1c14f3ec14641790 | Java | luvinhthinh/frontend | /src/main/java/com/dev/backend/service/impl/OrderLineServiceImpl.java | UTF-8 | 1,276 | 2.359375 | 2 | [] | no_license | package com.dev.backend.service.impl;
import java.util.List;
import com.dev.backend.dao.OrderLineDAO;
import com.dev.backend.domain.OrderLine;
import com.dev.backend.service.OrderLineService;
public class OrderLineServiceImpl implements OrderLineService {
OrderLineDAO orderLineDAO;
@Override
public void insert(... | true |
70f0b5986f6be733d1306ac03d97f9de915ec3fb | Java | Shadow-lc/B2CShopping | /b2cshoppingmall-bean/src/main/java/edu/graduation/b2cshoppingmall/order/OrderDetail.java | UTF-8 | 780 | 2.078125 | 2 | [] | no_license | package edu.graduation.b2cshoppingmall.order;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
/**
* 订单清单
*/
@Data
@NoArgsConstructor
@AllArgsConstructor
public class OrderDetail {
/**
* 订单清单id
*/
private int id;
/**
* 订单号
*/
private String... | true |
fadf681e49d30d49b6b84089ca7b6055b0b46cf3 | Java | reed07/MyPreferencePal | /jadx-MFP/src/main/java/org/apache/sanselan/common/mylzw/MyBitInputStream.java | UTF-8 | 2,254 | 2.53125 | 3 | [] | no_license | package org.apache.sanselan.common.mylzw;
import java.io.IOException;
import java.io.InputStream;
import org.apache.sanselan.common.BinaryConstants;
public class MyBitInputStream extends InputStream implements BinaryConstants {
private int bitCache;
private int bitsInCache;
private final int byteOrder;
... | true |
55973475a4a1b8c2561545323614db3d27de284a | Java | FreeDao/android-codes | /Shaver/src/shaver/standopen/Welcome.java | GB18030 | 4,431 | 1.921875 | 2 | [] | no_license | package shaver.standopen;
import cn.domob.android.ads.DomobAdListener;
import cn.domob.android.ads.DomobAdView;
import android.app.Activity;
import android.app.AlertDialog;
import android.app.AlertDialog.Builder;
import android.content.DialogInterface;
import android.content.Intent;
import android.hardware.Se... | true |
1a4486e4c028d847e966fd8d4c098fcd911d093c | Java | crowjdh/SerialAnimator | /src/main/java/com/yooiistudios/serialanimator/ViewTransientUtils.java | UTF-8 | 1,341 | 2.40625 | 2 | [] | no_license | package com.yooiistudios.serialanimator;
import android.support.v4.view.ViewCompat;
import android.view.View;
import com.yooiistudios.serialanimator.property.ViewProperty;
/**
* Created by Dongheyon Jeong in SequentialAnimationTest from Yooii Studios Co., LTD. on 15. 1. 29.
*
* ViewUtil
* 뷰 유틸....
*/
public c... | true |
fdcf9b4d14ae3ebf05245a94660c3dd419c60a69 | Java | nlrarojas/Caso2Diseno | /src/Model/TextRepresentation.java | UTF-8 | 2,372 | 3.34375 | 3 | [] | no_license | package Model;
import java.util.ArrayList;
import java.util.List;
/**
* TODO - get as rich text should return a valid representation for
* visualization ... with colors and bold
*
* @author Charlie
*/
public class TextRepresentation {
private ArrayList<CharacterRepresentation> characters;
private ColorF... | true |
84f310c052a7e5a82c79bf669fdcbc62d6267370 | Java | xuan567/java-learning | /day20/src/com/lixuan/IO/Deom15_file.java | WINDOWS-1252 | 552 | 3 | 3 | [] | no_license | package com.lixuan.IO;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.util.Scanner;
public class Deom15_file {
public static void main(String[] args) throws IOException {
Scanner sc = new Scanner(System.in);
System.out.println("");
FileOutputStre... | true |
d0d357fa9b5b1a277a145168c575a86b630ffaa8 | Java | ELsamar/JMlessous | /src/main/java/com/jaune/JMlessous/repository/CarteRepository.java | UTF-8 | 283 | 1.65625 | 2 | [] | no_license | package com.jaune.JMlessous.repository;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
import com.jaune.JMlessous.model.Carte;
@Repository
public interface CarteRepository extends JpaRepository<Carte, Integer>{
}
| true |
3e3a73ca41a682206896f8265f165551a60a2214 | Java | subbukathir/ToroGlass | /app/src/main/java/com/toroapp/toro/adapter/ViewInspectionListAdapter.java | UTF-8 | 6,621 | 1.976563 | 2 | [] | no_license | package com.toroapp.toro.adapter;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.RecyclerView;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.LinearLayout;
im... | true |
ade9800088328c87de4a1740cf3d159ff2ecd1e0 | Java | shatian114/protobufLearn | /src/com/pengcui/protobuf/bufTest.java | UTF-8 | 4,823 | 2.4375 | 2 | [
"Apache-2.0"
] | permissive | package com.pengcui.protobuf;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.net.InetAddress;
import java.net.InetSocketAddress;
import java.net.Socket;
import java.net.SocketAddress;
import java.net.UnknownHostException;
import pengcui.protoBuf.bufClass.Buf;
public ... | true |
493573e0c39ad74af47d38c1b45b6336596fee7d | Java | kubasub/chinese-checkers | /android-application/ChineseCheckers/src/instrumentTest/java/ca/brocku/chinesecheckers/tests/MainActivityUnitTest.java | UTF-8 | 9,649 | 1.875 | 2 | [] | no_license | package ca.brocku.chinesecheckers.tests;
import android.app.Activity;
import android.app.Instrumentation;
import android.content.Intent;
import android.graphics.drawable.Drawable;
import android.test.ActivityInstrumentationTestCase2;
import android.view.ActionProvider;
import android.view.ContextMenu;
import android.v... | true |
a445396c9b3f06cd200dd84190b2d2eb94f07ba4 | Java | TrevorAYork/Tactics | /src/main/java/com/TrevorAYork/tactics/controller/Controller.java | UTF-8 | 1,470 | 2.875 | 3 | [] | no_license | package com.TrevorAYork.tactics.controller;
import com.TrevorAYork.tactics.model.Move;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation... | true |
f8ba5127c5192a615c26925fe7436d19f290ef4a | Java | nexus-lab/relf-client | /relf/src/main/java/org/nexus_lab/relf/lib/rdfvalues/android/RDFAndroidLocation.java | UTF-8 | 1,639 | 1.765625 | 2 | [] | no_license | package org.nexus_lab.relf.lib.rdfvalues.android;
import org.nexus_lab.relf.lib.rdfvalues.RDFDatetime;
import org.nexus_lab.relf.lib.rdfvalues.structs.RDFProtoStruct;
import org.nexus_lab.relf.proto.AndroidLocation;
import net.badata.protobuf.converter.annotation.ProtoClass;
import net.badata.protobuf.converter.annot... | true |
6577a4f67e1e1d86c9895a542c1baa7fac841c58 | Java | MatthiasRobbers/shortbread | /shortbread/src/test/java/com/example/TestMethodShortcutActivity_Shortcuts.java | UTF-8 | 1,083 | 2.109375 | 2 | [
"Apache-2.0"
] | permissive | package com.example;
import android.app.Activity;
import android.content.Context;
import android.content.pm.ShortcutInfo;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import shortbread.internal.MethodShortcuts;
import shortbread.internal.Shortcuts;
public final class TestMethodSh... | true |
a51c80a5d213212da027e033c030cbad0ee9a641 | Java | Darling1116/Welcome_1116 | /test.java 11_5/Exam_03.java | UTF-8 | 1,097 | 3.1875 | 3 | [] | no_license | package Test11_5;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Iterator;
public class Exam_03 {
public static void main(String[] args) {
int[] arr = new int[8];
Arrays.fill(arr,1);
for(int i=0;i<8;i++){
System.out.print(arr[i]+" ");
}
int[] arr1 = new int[8];
Arrays.fill(arr1, 1);
... | true |
35054a8baf5e5c1abd7b49ed88ac060c2b425744 | Java | dlernatovich/PublicationSystem | /app/src/main/java/com/artlite/publicatiosystem/repositories/user/UserRepository.java | UTF-8 | 2,021 | 2.59375 | 3 | [] | no_license | package com.artlite.publicatiosystem.repositories.user;
import androidx.annotation.Nullable;
import com.artlite.apiskd.models.UserModel;
import com.artlite.bslibrary.managers.BSCryptSharedPreferenceManager;
/**
* Class which provide to management the user
*/
public class UserRepository {
/**
* Constants ... | true |
901fb9ee777bd981d2c0432850c1f3a525b7cd92 | Java | lor6/tutorials | /gradle-modules/gradle/junit5/src/test/java/com/example/CalculatorJUnit4Test.java | UTF-8 | 221 | 2.25 | 2 | [
"MIT"
] | permissive | package com.example;
import static org.junit.Assert.assertEquals;
import org.junit.Test;
public class CalculatorJUnit4Test {
@Test
public void testAdd() {
assertEquals(42, Integer.sum(19, 23));
}
}
| true |
2b1076a734eb0929c370b71a7028d415b8254909 | Java | leandrovi/projects-orders | /projects.orders/src/estadoConsole/EnumEstadoConsole.java | UTF-8 | 907 | 2.25 | 2 | [
"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.
*/
package estadoConsole;
/**
*
* @author 082170032
*/
public enum EnumEstadoConsole {
BEM_VINDO(new EstadoConsoleBemVindo())... | true |
8a8a61ebe8eecdf0216a7ee306b52a556de4f7a5 | Java | OlegAryukov/algoFW | /src/main/java/leetcode/challange/CpuntElements.java | UTF-8 | 365 | 2.78125 | 3 | [] | no_license | package leetcode.challange;
import java.util.Arrays;
public class CpuntElements {
public int countElements(int[] arr) {
Arrays.sort(arr);
int currMax = 0;
int res = 0;
for (int i = 0; i < arr.length; i++) {
if(arr[i+1] - arr[i] == 1){
currMax += 0;
... | true |
ad93660009c5871281f1cb0643f2575ba33c139a | Java | ciroteixeira/RestWithSpringBootUdemy | /02 SpringBootUdemy - Calculator/src/main/java/br/com/erudio/exception/handler/CustomizeException.java | UTF-8 | 1,367 | 2.265625 | 2 | [] | no_license | package br.com.erudio.exception.handler;
import java.util.Date;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.b... | true |
eadf5101e37e17f26b21ffea10f84fa68247ca95 | Java | antmednik/2019-11-otus-spring-mednikov | /homework-28/src/main/java/ru/otus/homework/hw28/factory/ArmoryWorkshop.java | UTF-8 | 2,610 | 2.796875 | 3 | [] | no_license | package ru.otus.homework.hw28.factory;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Service;
import ru.otus.homework.hw28.domain.armory.ArmoryType;
import ru.otus.homework.hw28.domain.material.MaterialPiece;
... | true |
736ea8630cbc2864d3cabc55f5564de74debac83 | Java | tianbaojun/XMvp | /xteacher/src/main/java/com/zjhz/teacher/ui/dialog/WaitDialog.java | UTF-8 | 957 | 2.140625 | 2 | [] | no_license | package com.zjhz.teacher.ui.dialog;
import android.app.ProgressDialog;
import android.content.Context;
import android.content.DialogInterface;
import android.view.KeyEvent;
import android.view.Window;
/**
* Created by Android Studio
* author: fei.wang
* Date: 2016-06-3
* Time: 10:30
* Description:
*/
public cla... | true |
7dfad1b23cbf0efca7cf244148b622f9dbb61983 | Java | documobi/android-demo | /app/src/main/java/com/brandactif/scandemo/model/ScanResponse.java | UTF-8 | 1,937 | 2.3125 | 2 | [] | no_license | package com.brandactif.scandemo.model;
import com.google.gson.annotations.SerializedName;
import java.util.Map;
public class ScanResponse {
@SerializedName("uuid")
private String uuid;
@SerializedName("status")
private String status;
@SerializedName("redirect_url")
private String redirectUrl... | true |
8a72eb1647f15232b5a47114cd2c80df8a8aadb1 | Java | liheming/fancaiProject-master | /app/src/main/java/com/suctan/huigang/adapter/wanteat/AddFoodSpinneItemAdapter.java | UTF-8 | 1,994 | 2.265625 | 2 | [] | no_license | package com.suctan.huigang.adapter.wanteat;
import android.content.Context;
import android.graphics.Color;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.RelativeLayout;
import android.widget.TextView;
import com.su... | true |
b07716ef4f7c64cfdd91296bc6385e5aede7e5d1 | Java | Jagruthi92/Sbi | /src/generic/Generic_read_single_data.java | UTF-8 | 777 | 2.109375 | 2 | [] | no_license | package generic;
import java.io.FileInputStream;
import org.apache.poi.ss.usermodel.Cell;
import org.apache.poi.ss.usermodel.Workbook;
import org.apache.poi.ss.usermodel.WorkbookFactory;
import org.openqa.selenium.WebDriver;
import org.testng.Reporter;
public class Generic_read_single_data implements Auto_... | true |
044c55c1841bddcc5e980ae1b1bc52a0a4197eb7 | Java | AhmedMorgan/Business-Process-Management-System | /src/main/java/com/grokonez/jwtauthentication/service/UserService.java | UTF-8 | 2,922 | 2.296875 | 2 | [] | no_license | package com.grokonez.jwtauthentication.service;
import com.grokonez.jwtauthentication.message.response.GeneralResponseObject;
import com.grokonez.jwtauthentication.message.response.ResponseObject;
import com.grokonez.jwtauthentication.model.Request;
import com.grokonez.jwtauthentication.model.User;
import com.grokonez... | true |
60099f490246688aa4ef926a6c02065d7939fc34 | Java | PharahPhat/Selenium | /Java/datawarehouse/src/test/java/dwh/ohio/Auto_SEVV_TC_18765_PROVIDER_GENERAL_Validate_Provider_Data_Exported_As_Expected_Results.java | UTF-8 | 547 | 1.578125 | 2 | [] | no_license | package dwh.ohio;
import generic.ProviderGeneralGenericTest;
import org.testng.annotations.Test;
public class Auto_SEVV_TC_18765_PROVIDER_GENERAL_Validate_Provider_Data_Exported_As_Expected_Results extends ProviderGeneralGenericTest {
@Test
public void Auto_SEVV_TC_18765_PROVIDER_GENERAL_Validate_Provider_Dat... | true |
530e74bf15599daa912a3bf01092fed00ed334d2 | Java | lvcs123456/syncMore | /src/main/java/MoreThread/GetDcl.java | UTF-8 | 682 | 2.765625 | 3 | [] | no_license | package MoreThread;
public class GetDcl {
public static void main(String[] args) {
Thread thread = new Thread(){
@Override
public void run() {
while(true){
try {
sleep(1111);
}catch (Exception e){
... | true |
4bf191e414ac92078fe4976aa9f53a5096fa595d | Java | zhmuch/LeetCode | /#290 Word Pattern.java | UTF-8 | 1,180 | 3.015625 | 3 | [] | no_license | public class Solution {
public boolean wordPattern(String pattern, String str) {
int pLen = pattern.length();
int sLen = 0;
if(pLen==0) return false;
int l = str.length();
Hashtable p = new Hashtable();
String temp="";
for(int i=0; i<l; i++){
char... | true |
50651ecd4deb2095f48800f306f14f12f23ff16b | Java | Tejas-narola/resilience-android | /resilience-app/src/main/java/au/com/dius/resilience/ui/activity/ServiceRequestListActivity.java | UTF-8 | 6,549 | 1.765625 | 2 | [] | no_license | package au.com.dius.resilience.ui.activity;
import android.app.LoaderManager;
import android.content.Intent;
import android.content.Loader;
import android.os.Bundle;
import android.view.Gravity;
import android.view.View;
import android.widget.AbsListView;
import android.widget.AdapterView;
import android.widget.ListVi... | true |
a7f0b05bf5e8dad1a99da801793f502064289d5e | Java | wangkk24/testgit | /20210809(ZJYD_v2.6.0)/app/src/main/java/com/pukka/ydepg/common/report/ubd/pbs/PbsUaConstant.java | UTF-8 | 2,054 | 1.789063 | 2 | [] | no_license | package com.pukka.ydepg.common.report.ubd.pbs;
public class PbsUaConstant {
public final static String TAG = "PBS_USER_ACTION";
final static String PBS_UBD_URL = "http://aikanvod.miguvideo.com:8858/pvideo/p/useraction.jsp";
final static String PBS_DESKTOP_URL = "http://aikanvod.miguvideo.com:8858/pvi... | true |
5a871b66ec467ce995c33e874f562ef0fa12cb8f | Java | shashankkhochikar/Clickit | /app/src/main/java/com/clickitproduct/adapter/CustomListAdapterProducts.java | UTF-8 | 2,008 | 2.234375 | 2 | [] | no_license | package com.clickitproduct.adapter;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.ImageView;
import android.widget.TextView;
import com.clickitproduct.Beans.ProductBean;
import com.c... | true |
0075370cb129702d90f641a54361b8a93cecd659 | Java | GSIL-Monitor/All-Java | /wechat-dev/src/main/java/com/d1m/wechat/model/enums/ActionEngineStatus.java | UTF-8 | 563 | 2.359375 | 2 | [] | no_license | package com.d1m.wechat.model.enums;
public enum ActionEngineStatus {
OFF((byte) 1, "关闭"),
ON((byte) 1, "使用"),
DELETE((byte) 1, "删除"),
;
private byte value;
private String name;
/**
* @param value
* @param name
*/
private ActionEngineStatus(byte value, String name) {
this.value = value;
this.na... | true |
41470cbbd12b3ca9971dbe1c43f429e380c4b458 | Java | DarrenKang/sms_front_server | /src/main/java/ph/sinonet/vg/live/model/enums/ErrorCode.java | UTF-8 | 1,077 | 2.671875 | 3 | [] | no_license | package ph.sinonet.vg.live.model.enums;
/**
* Created by jay on 7/22/16.
* TODO : no description for other error code
*/
public enum ErrorCode {
SUCCESS(200, "操作成功"),
EMPTY_MESSAGE(401, "Empty message"),
MSG_LENGTH_EXCEED(402, "Message exceeds length"),
FAIL_SEND(413, "Fail on sending message"),
... | true |
77191e3192e9c521df981824a121752e35ce2e49 | Java | darksith666/Cloud-android-core | /app/src/main/java/com/simicart/core/customer/model/ResetPasswordModel.java | UTF-8 | 690 | 1.828125 | 2 | [] | no_license | package com.simicart.core.customer.model;
import android.util.Log;
import com.simicart.core.base.model.SimiModel;
import com.simicart.core.base.network.request.multi.SimiRequest;
import org.json.JSONException;
import org.json.JSONObject;
/**
* Created by James Crabby on 12/11/2015.
*/
public class ResetPasswordMo... | true |
59bd99f48f031f62091a755c049ef98691a07d9e | Java | methraanil/Anil_methra_coreJava | /Date_time/Custom_Date_Time.java | UTF-8 | 353 | 2.78125 | 3 | [] | no_license | package pkg.Date_time;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.time.LocalTime;
public class Custom_Date_Time {
public static void main(String[] args) {
LocalDate d=LocalDate.of(1997,12,24);
LocalTime t=LocalTime.of(12,25,5,1265);
LocalDateTime dt=LocalDateTime.of(d, t);
... | true |
85da260cc1d733201b6a0db1953de22432076a3e | Java | P79N6A/icse_20_user_study | /methods/Method_53659.java | UTF-8 | 229 | 2.421875 | 2 | [] | no_license | /**
* ??? ?? yyyy-MM-dd HH:mm:ss
* @param date
* @return
*/
public static String getTimeStamp(Date date){
if (date == null) {
return dateFormat.format(new Date());
}
else {
return dateFormat.format(date);
}
}
| true |
5a336c43c67295ef534597f14af1eaa5d6b46f03 | Java | artronics/satrapi3 | /senator/src/main/java/com/artronics/senator/event/DevicePacketReceived.java | UTF-8 | 272 | 1.984375 | 2 | [] | no_license | package com.artronics.senator.event;
import com.artronics.senator.packet.DevicePacket;
public class DevicePacketReceived extends BaseEvent<DevicePacket>
{
public DevicePacketReceived(Object source, DevicePacket message)
{
super(source, message);
}
}
| true |
d4009929d858bbda0d0c3f5b1b917f01e74bc563 | Java | anuragmauryamca/Java-Project | /FirstSpringBootApplicationSpecificationfilter-Rest/src/main/java/com/in/opalina/test/NumberOfAccurances.java | UTF-8 | 1,874 | 2.859375 | 3 | [] | no_license | package com.in.opalina.test;
public class NumberOfAccurances {
/*
* public Page<TbSpelAFecCnxn> getAllTbSpelAFecCnxns(Map<String, String>
* filterParameter, Pageable pageable) {
*
* if (filterParameter == null || filterParameter.isEmpty()) { return
* this.tbSpelAFecCnxnDao.findAll(pageable); }
*
* re... | true |
b840632ad0ae9b9d574acbe57f28ea9c7d06229f | Java | rioshen/interview | /src/com/interview/algorithms/string/C11_20_SubStringLocator.java | UTF-8 | 1,936 | 3.3125 | 3 | [] | no_license | package com.interview.algorithms.string;
/**
* Created_By: stefanie
* Date: 14-7-20
* Time: 下午2:45
*/
public class C11_20_SubStringLocator {
public static int match(String a, String b){
for(int i = 0; i < a.length(); i++) {
int j = 0;
for (; j < b.length() && b.charAt(j) == a.c... | true |
48eeb7b177287ff6aa6297a9fbff12497550c4b9 | Java | mohammedshethwala/TA-Helper | /app/src/main/java/com/cs442/team4/tahelper/student/groups/LexicographicComparator.java | UTF-8 | 634 | 2.8125 | 3 | [] | no_license | package com.cs442.team4.tahelper.student.groups;
import com.cs442.team4.tahelper.student.Student_Entity;
import java.util.Comparator;
/**
* Created by neo on 06-11-2016.
* Student Comparator
*/
public class LexicographicComparator implements Comparator<Student_Entity> {
@Override
public int compare(Stude... | true |
11889bcb5ccce724a00b98e3f94d34b0db9e52fb | Java | rz-yang/careCenter-java-web | /服务器端/customer/src/main/java/com/seu/care/customer/service/impl/CustomerServiceImpl.java | UTF-8 | 1,794 | 2.203125 | 2 | [] | no_license | package com.seu.care.customer.service.impl;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.netflix.discovery.converters.Auto;
import com.seu.care.customer.client.BedClient;
import com.seu.care.customer.mapper.CustomerInMapper;
import com.seu.care.customer.model.Bed;
... | true |
830443cfeec4a549414190f7c4acca72be3bef6d | Java | reactor/reactor-core | /reactor-core/src/test/java/reactor/core/publisher/NextProcessorTest.java | UTF-8 | 25,807 | 1.96875 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright (c) 2015-2022 VMware Inc. or its affiliates, All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
*... | true |
2de6df763fb3fb7f7c5fe9c45290ee4a483488d9 | Java | Zeus-guy/The-forge | /src/main/java/grupoE/laforja/Station.java | UTF-8 | 1,649 | 2.734375 | 3 | [
"Apache-2.0"
] | permissive | package grupoE.laforja;
public class Station {
private String type;
private int player;
private double time;
private String heldObject;
private String heldObject2;
public Station(String type, int player) {
this.type = type;
this.player = player;
time = -1;
heldObject = "none";
heldObject2 = "none";
... | true |
6d7570df6de04e078d14bdbd0126edeb601404c8 | Java | yyl537110/pg | /pg-client/src/main/java/com/slj/pg/service/impl/HelpCadreServiceImpl.java | UTF-8 | 2,048 | 2.15625 | 2 | [] | no_license | package com.slj.pg.service.impl;
import com.github.pagehelper.Page;
import com.github.pagehelper.PageHelper;
import com.slj.pg.bean.HelpCadre;
import com.slj.pg.bean.page.PageDataInfo;
import com.slj.pg.bean.page.Pagination;
import com.slj.pg.bean.page.SearchCondition;
import com.slj.pg.dao.interfaces.HelpCadreDao;
im... | true |
67c307300c307ef5ac985c7201c3b283321c568d | Java | hoainam2006dzpro/Mercado-Informal | /appE/src/main/java/com/rademotions/mercadoinformal/visao/CadastroClienteActivity.java | UTF-8 | 8,778 | 2.171875 | 2 | [
"MIT"
] | permissive | package com.rademotions.mercadoinformal.visao;
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.ArrayAdapter;
import android.widget.Button;
import android.widget.CheckBox;
import android.widget.CompoundButton;
impo... | true |
fc73ed8d3d5d0fdfac77d7266ec1ef85df6bc5d4 | Java | yayoveco/Piramide | /src/piramide/qw.java | UTF-8 | 518 | 2.671875 | 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 piramide;
/**
*
* @author arty_
*/
public class qw
{
public void suma(int num1,int num2){
int suma=num1+num2;... | true |
9c042fb45b366eb9d36daf493b1272c4d2b9687d | Java | PSEH-5/weatherapp-swapnil | /src/main/java/com/weatherapp/pojo/WeatherData.java | UTF-8 | 932 | 2.484375 | 2 | [] | no_license | package com.weatherapp.pojo;
import java.util.Arrays;
public class WeatherData {
private Location location;
private String credit;
private Meta meta;
private Sun sun;
private Time[] forecast;
public Location getLocation() {
return location;
}
public void setLocation(Location location) {
this.location = location;
}
... | true |
a221eeb003cdd9d32659e0ceef5a5353afcfbb53 | Java | karol-musial/gierka | /src/main/java/enemies/Ork.java | UTF-8 | 453 | 2.359375 | 2 | [] | no_license | package enemies;
import classStatistics.ClassStatistics;
import lombok.Getter;
import lombok.Setter;
@Getter
@Setter
public class Ork extends ClassStatistics {
private int hp = 300;
private final int defense = 2;
private final int attack = 13;
@Override
public String toString() {
return ... | true |
1bd3d3d9517669f500b9ed08178a4558b4ddfd9e | Java | javpc/seguime | /app/src/main/java/pc/javier/seguime/ActividadOpciones.java | UTF-8 | 1,812 | 1.921875 | 2 | [] | no_license | package pc.javier.seguime;
import android.content.Intent;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import androidx.appcompat.app.AppCompatActivity;
import pc.javier.seguime.adaptador.Preferencias;
import pc.javier.seguime.control.ControlPa... | true |
1dce4b61a6d4e16999f4eb9a56a2b3c6e64f94cb | Java | bellmit/ace | /framework-cloud/ace-modules/ace-jinmao/src/main/java/com/github/wxiaoqi/security/jinmao/vo/house/HouseTreeList.java | UTF-8 | 468 | 1.507813 | 2 | [] | no_license | package com.github.wxiaoqi.security.jinmao.vo.house;
import lombok.Data;
import java.io.Serializable;
/**
* @Author: Lzx
* @Description:
* @Date: Created in 9:35 2018/12/4
* @Modified By:
*/
@Data
public class HouseTreeList implements Serializable {
private static final long serialVersionUID = -367239693392146... | true |
ca1bdd25934fe06bf51ceedb7e9a3f09996c1715 | Java | youngseo9603/UOrders_Server | /src/main/java/com/example/uorders/dto/cafe/OwnerCafe.java | UTF-8 | 573 | 2.140625 | 2 | [] | no_license | package com.example.uorders.dto.cafe;
import com.example.uorders.domain.Cafe;
import com.example.uorders.domain.Menu;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.Setter;
import java.util.ArrayList;
import java.util.List;
@Getter
@Setter
@AllArgsConstructor
public class OwnerCafe {
priv... | true |
ce6b9d9cb33a196f471df5bbfedaba59a59e8dbb | Java | toufictalib/lyst | /src/main/java/com/example/lyst/tempo/ObjectFactory.java | UTF-8 | 2,723 | 1.835938 | 2 | [] | no_license | //
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.11
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2020.03.12 at 01:43:... | true |
e95e8ac7e729fa6c6214a032bf28130c42d16612 | Java | skayvanfar/jcg | /jcg-language-parser-toolkit/src/main/java/ir/sk/jcg/jcglanguageparsertoolkit/lparser/tokenizer/TokenStream.java | UTF-8 | 4,631 | 3.390625 | 3 | [] | no_license | package ir.sk.jcg.jcglanguageparsertoolkit.lparser.tokenizer;
import java.util.ArrayList;
/**
* An array of tokens with many useful helper methods
*
* @author <a href="kayvanfar.sj@gmail.com">Saeed Kayvanfar</a> on 7/5/2017.
*/
public class TokenStream extends ArrayList<Token> {
public TokenStream() {
}
... | true |
5d8e0d1ab5dd4f86742e3f669865834ca351de3d | Java | akshayraghavan21/SmartPark | /app/src/main/java/r/akshay/smartpark/SearchProductAdapter.java | UTF-8 | 3,799 | 1.859375 | 2 | [] | no_license | package r.akshay.smartpark;
import android.content.ClipData;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.os.Parcelable;
import android.support.constraint.ConstraintLayout;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
... | true |
c46d29afe620045690895604a5a52c6c78fe8eec | Java | YujunWu-King/university | /src/main/java/com/tranzvision/gd/TZAudMgBundle/model/PsTzAudListTKey.java | UTF-8 | 723 | 1.75 | 2 | [] | no_license | package com.tranzvision.gd.TZAudMgBundle.model;
public class PsTzAudListTKey {
private String tzAudId;
private String tzLxfsLy;
private String tzLydxId;
public String getTzAudId() {
return tzAudId;
}
public void setTzAudId(String tzAudId) {
this.tzAudId = tzAudId == null ? n... | true |
e4a8ae6383a640da2c5c4d00a525a14518b10cf3 | Java | DisNoire/core-nlp-ver1 | /src/main/java/JavassistHandler.java | UTF-8 | 1,159 | 2.75 | 3 | [] | no_license | import javassist.*;
public class JavassistHandler {
private static ClassPool pool = ClassPool.getDefault();
public static void makeClass(String className){
pool.makeClass(className);
}
public static void makeMethod(String className, String methodName, String methodParams){
try {
... | true |
2ae496aa7cc87701a9073184dcca08628233d2a8 | Java | Tonio993/Scrap-Code | /Grafi/src/test/Test.java | UTF-8 | 1,044 | 3.046875 | 3 | [] | no_license | package test;
import java.util.stream.Collectors;
import main.GraphI;
import main.GraphTM;
import main.Node;
public class Test {
public static void main(String[] args) {
GraphI<String> g = new GraphTM<>();
Node<String> nodeA = new Node<>("A");
Node<String> nodeB = new Node<>("B");
Node<String> nodeC = new... | true |
52e8ddc82c1cf84901e7e7c4cef0880ebc12c5d1 | Java | learnwithrajiv/DSAlgoCampaign | /src/LeetCodeSubmissions/ContainerWithMostWater.java | UTF-8 | 1,483 | 3.921875 | 4 | [] | no_license | package LeetCodeSubmissions;
/*
You are given an integer array height of length n. There are n vertical lines drawn such that the two endpoints of the ith line are (i, 0) and (i, height[i]).
Find two lines that together with the x-axis form a container, such that the container contains the most water.
Return the maxim... | true |
1c035ecbb73783a4511afc660dfbbdab7a1390e4 | Java | Agadar/NationStates-Telegrammer-Core | /src/main/java/com/github/agadar/telegrammer/core/regiondumpaccess/RegionDumpAccessImpl.java | UTF-8 | 2,813 | 2.5625 | 3 | [] | no_license | package com.github.agadar.telegrammer.core.regiondumpaccess;
import java.io.FileNotFoundException;
import java.util.Collection;
import java.util.LinkedHashSet;
import java.util.Map;
import java.util.stream.Collectors;
import com.github.agadar.nationstates.NationStates;
import com.github.agadar.nationstates.domain.reg... | true |
43a0fab8e3812bfa8a7b01b95329a1d8457411eb | Java | Mars-Cai/GroupProject | /src/renderer/Game.java | UTF-8 | 683 | 2.53125 | 3 | [] | no_license | package renderer;
import WorldEditor.Square;
import WorldEditor.World;
import static java.awt.event.KeyEvent.*;
import WorldEditor.GameObjects.Player;
public class Game {
public Player player;
public int time;
public Square[][] world;
public Game(World world) {
player = world.player;
this... | true |
216ccf72ec0ab7aee4d88774a9dee49d4eada6a3 | Java | baraaf/CarShop | /src/carshop/employee/FXMLEmployeeHomeController.java | UTF-8 | 3,247 | 2.203125 | 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 carshop.employee;
import static carshop.login.FXMLLoginController.id;
import java.io.IOException;
import java.net.URL;
import ... | true |
fa64d73fe0acae92b354d051bb29dc32f68318fb | Java | jbosstm/narayana | /XTS/localjunit/unit/src/test/java/com/arjuna/wsc/tests/arq/RegistrationServiceTest.java | UTF-8 | 5,195 | 1.78125 | 2 | [
"Apache-2.0"
] | permissive | /*
Copyright The Narayana Authors
SPDX short identifier: Apache-2.0
*/
package com.arjuna.wsc.tests.arq;
import com.arjuna.webservices.SoapFault;
import com.arjuna.wsc.CannotRegisterException;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.fail;
import jakarta.xml.ws.wsaddressin... | true |
8ff14e40deb3df608047aa704f4acc254785b6ce | Java | ZeeCee/Jafun | /books/java-cookbook/JDBC/ResultsDecoratorHTML.java | UTF-8 | 1,081 | 3 | 3 | [
"BSD-2-Clause"
] | permissive | import java.io.IOException;
import java.sql.ResultSet;
import java.sql.ResultSetMetaData;
import java.sql.SQLException;
/** Print ResultSet in HTML
*/
class ResultsDecoratorHTML extends ResultsDecorator {
ResultsDecoratorHTML(ResultsDecoratorPrinter out) {
super(out);
}
public void write(ResultSet rs) throws... | true |
77b189d90626e9c584463a108d29ce6be638bd0b | Java | MatthieuLepers/Project-Dungeon | /src/dungeon/entity/monster/Monster.java | UTF-8 | 1,023 | 2.921875 | 3 | [] | no_license | /**
* @author Matthieu Lepers & Verschaeve Th�o
* @version 1.0.0
* @description Monster interface
*/
package dungeon.entity.monster;
import dungeon.entity.EntityLiving;
import dungeon.entity.types.MonsterType;
import dungeon.entity.types.Type;
import dungeon.inventory.ItemStack;
import dungeon.inventory.Material;
... | true |
2de60d7f1d80f1e7f74152ab683233ffd4b5b72e | Java | suberguo/GP-Training | /designpattern/prototype/src/main/java/com/dds/designpattern/prototype/Person.java | UTF-8 | 1,422 | 3.25 | 3 | [] | no_license | package com.dds.designpattern.prototype;
import java.io.Serializable;
public class Person implements Serializable {
private String name;
private String position;
private int age;
private String sex;
private Address address;
public String getName() {
return name;
}
public vo... | true |
2be6d2cee17719276bc68ae087b14250e2357733 | Java | dylan-pham/APCS | /Labs/#13 Four Season Lab/RainDrop.java | UTF-8 | 498 | 3.234375 | 3 | [] | no_license | import java.awt.Color;
import java.awt.Graphics;
public class RainDrop {
private int x;
private int y;
public RainDrop() {
x = (int)(Math.random() * 800);
y = (int)(Math.random() * 600);
}
public void drawMe(Graphics g, Color c) {
g.setColor(c);
g.fillRect... | true |
ad2cf6e451bcbfb64bd27e585cb7596d10577cd1 | Java | mojio/spark-llap | /src/main/java/com/hortonworks/spark/sql/hive/llap/streaming/HiveStreamingDataSourceWriter.java | UTF-8 | 2,182 | 1.84375 | 2 | [
"Apache-2.0"
] | permissive | package com.hortonworks.spark.sql.hive.llap.streaming;
import java.util.List;
import com.hortonworks.spark.sql.hive.llap.WriterType;
import org.apache.spark.sql.catalyst.InternalRow;
import org.apache.spark.sql.sources.v2.writer.DataWriterFactory;
import org.apache.spark.sql.sources.v2.writer.SupportsWriteInternalRow... | true |
c41742d4e214fba61f16702491b68710090309ff | Java | mtugnarelli/colecciones-ahorcado | /src/colecciones/AhorcadoTest.java | UTF-8 | 2,839 | 3.015625 | 3 | [] | no_license | package colecciones;
import org.junit.Assert;
import org.junit.Test;
public class AhorcadoTest {
@Test
public void crearAhorcadoCon10ChancesYNoUsarNinguna() {
Ahorcado ahorcado = new Ahorcado("casa", 10);
Assert.assertEquals(10, ahorcado.obtenerChancesRestantes());
}
@Test
... | true |
1a2e9115ce73c7b700fe895101f7349b3439d5da | Java | Jahid1999/Design-Patterns | /strategyPattern/RocketPayment.java | UTF-8 | 192 | 2.46875 | 2 | [] | no_license | package strategyPattern;
public class RocketPayment implements PaymentType {
public RocketPayment() {
}
public void pay()
{
System.out.println("Payment done by Rocket");
}
}
| true |
8f0fbb6adf380848cc93af4dba6aff52168dfa7d | Java | VictorChenLi/HitMeAndroidDemo | /src/org/stl/hitme/goal/service/GoalListAdapter.java | GB18030 | 3,587 | 2.09375 | 2 | [] | no_license | package org.stl.hitme.goal.service;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Random;
import org.stl.hitme.R;
import org.stl.hitme.storeCat.model.Goal;
import org.stl.hitme.storeCat.service.DBAccessImpl;
import org.stl.hitme.sysUtil.... | true |
899f45e98a8a76cffa57862154aab523dbf976c6 | Java | matthieujan/middleware | /rmi/fr.ensibs.socialnetwork.client/src/main/java/fr/ensibs/socialnetwork/client/message/JmsMessageManager.java | UTF-8 | 2,616 | 2.296875 | 2 | [] | no_license | package fr.ensibs.socialnetwork.client.message;
import fr.ensibs.socialnetwork.client.OpenJmsTalker;
import fr.ensibs.socialnetwork.common.JmsType;
import fr.ensibs.socialnetwork.core.Message;
import fr.ensibs.socialnetwork.core.Publication;
import fr.ensibs.socialnetwork.logic.message.MessageManager;
import javax.jm... | true |
dc6d649a45a14d34d81437fc28cc808db85d366f | Java | jinia91/MVC2-Member_Board | /src/main/java/controller/member/MemberSearchAllController.java | UHC | 1,935 | 2.65625 | 3 | [] | no_license | package controller.member;
import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import beans.MemberDTO;
import controller.Controller;
import controller.HttpUtil;
import se... | true |
e448197778c0190d24a771f21c596d5e6a86c275 | Java | 641693535/JDBCLearn | /ConnectionTest1/src/preparedstatement/crud/AllPreparedStatementForQuery.java | UTF-8 | 2,738 | 3 | 3 | [] | no_license | package preparedstatement.crud;
import bean.Customers;
import bean.Order;
import org.junit.Test;
import java.io.IOException;
import java.lang.reflect.Field;
import java.lang.reflect.InvocationTargetException;
import java.sql.*;
/**
* @author RZBlegion Email:641693535@qq.com
* @Description 通用的查询表中的单条数据的类
* @cre... | true |
63b8fd71200cf0107bcf6649bce03ddf87069d76 | Java | zhongxingyu/Seer | /Diff-Raw-Data/16/16_d35b0d0a895733040009c10fcf6b0c1f8a4ae859/LinkedTaskInfoAdapterFactory/16_d35b0d0a895733040009c10fcf6b0c1f8a4ae859_LinkedTaskInfoAdapterFactory_t.java | UTF-8 | 4,510 | 1.625 | 2 | [] | no_license | /*******************************************************************************
* Copyright (c) 2004, 2007 Mylyn project committers and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this di... | true |
e6df472913f821e14d896a12efa232e2a88a97ce | Java | custom-koncept-ltd/split-proc | /src/test/java/koncept/sp/stage/AllJobTrackerTypesFactory.java | UTF-8 | 1,076 | 2.484375 | 2 | [
"MIT"
] | permissive | package koncept.sp.stage;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
import java.util.List;
import koncept.sp.tracker.BlockingJobTracker;
import koncept.sp.tracker.CopyOnWriteJobTracker;
import koncept.sp.tracker.internal.JobTrackerDefinition;
/**
* Test factory for all (non d... | true |
84aa723357e5c259321691a128e4a781cff1f00f | Java | layaBegin/JavaBase | /jinjieDay05/src/com/heima/haxiSet_hashMap/Demo_TreeSet.java | UTF-8 | 2,402 | 3.578125 | 4 | [] | no_license | package com.heima.haxiSet_hashMap;
import java.util.Comparator;
import java.util.Set;
import java.util.TreeSet;
/**
* TreeSet 不重复,无索引,必须排序
* 底层基于红黑树排序,增删查改性能都较好
*
* 比较有两种方式
* 1,类继承Comparable
* 2,TreeSet 重写 Comparator
* 3,如果比较两个元素 结果为 0 会自动去重。若要不自动去重复 ,可以自己修改
*/
public class Demo_TreeSet {
public stati... | true |
dcac5972108153638d47f1195b2af838c593d639 | Java | ch3ngxuyuan/LaShop | /app/src/main/java/com/lala/lashop/ui/cate/adapter/ColorsAdapter.java | UTF-8 | 1,495 | 2.3125 | 2 | [] | no_license | package com.lala.lashop.ui.cate.adapter;
import android.graphics.Color;
import android.support.annotation.Nullable;
import android.widget.FrameLayout;
import android.widget.TextView;
import com.lala.lashop.R;
import com.lala.lashop.base.BaseAdapter;
import com.lala.lashop.base.BaseViewHolder;
import com.lala.lashop.u... | true |
1e41cd51ee09b94c4266d092eb5e223b62eae0ed | Java | sibendudey/Data-Structures-and-Algorithms | /src/dynamic/programming/hackerrank/SubstringCandies.java | UTF-8 | 1,380 | 3.5625 | 4 | [] | no_license | package dynamic.programming.hackerrank;
import java.util.Scanner;
public class SubstringCandies {
public static void main(String args[]) {
Scanner sc = new Scanner(System.in);
String line = sc.next();
System.out.println(maxCandies(line));
}
/*private static int maxCandies(String ... | true |
763bd7244d1840e20ad55c5e302d52070bb6ae89 | Java | ZhimingYan/book-notes | /src/main/java/top/xraorao/sword/t62/Solution62.java | UTF-8 | 1,223 | 2.96875 | 3 | [
"MIT"
] | permissive | /*
* Copyright (c) 2018. Xiong Raorao. All rights reserved.
* Project Name: book-notes
* File Name: Solution62.java
* Date: 18-7-27 下午8:00
* Author: Xiong Raorao
*/
package top.xraorao.sword.t62;
/**
* 序列化二叉树.
*
* @author Xiong Raorao
* @since 2018-07-27-19:58
*/
public class Solution62 {
public int in... | true |
5a52bfc82c6a4b3c2dbb81a2079f9880a5630205 | Java | sirBobz/Airtime-Service-Application | /src/main/java/world/jumo/Service/ProcessRequest.java | UTF-8 | 1,782 | 2.34375 | 2 | [] | no_license | /**
* Receives the Airtime request
* and sends to Africa's Talking API
* this is through their API Class
*/
package world.jumo.Service;
import java.util.Map;
import org.apache.commons.lang.StringUtils;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.json.JSONArray... | true |
047107a1750997eed115679e1bb807a9dd12fc39 | Java | chingpo/algorithms | /src/jianzhiOffer/replaceSpace.java | UTF-8 | 799 | 3.09375 | 3 | [] | no_license | package jianzhiOffer;
import java.util.Scanner;
import java.util.Stack;
public class replaceSpace {
public static String rSpace(StringBuffer str){
StringBuffer out=new StringBuffer();
char[] s=str.toString().toCharArray();
int slen=s.length;
for (int i = 0; i < slen; i++) {
if(s... | true |
d3eea5f7d36a8da5baa8a57720aedb0569b15bd8 | Java | pedroph23/mscv-events | /src/main/java/com/eventosapp/eventosapp/services/EventService.java | UTF-8 | 607 | 1.890625 | 2 | [
"MIT"
] | permissive | package com.eventosapp.eventosapp.services;
import com.eventosapp.eventosapp.exceptions.EventException;
import com.eventosapp.eventosapp.model.EventEntity;
import com.eventosapp.eventosapp.parameters.EventParameters;
import com.eventosapp.eventosapp.presenters.EventPresenter;
import org.springframework.stereotype.Serv... | true |
1fd1fe6f885689a674d8acbaef125b88f749d3ce | Java | plm9606/swea | /src/baekjoon/Boj_1202.java | UTF-8 | 3,242 | 3.546875 | 4 | [] | no_license | package baekjoon;
import java.io.*;
import java.util.*;
public class Boj_1202 {
public static void main(String[] args) throws FileNotFoundException {
System.setIn(new FileInputStream("res/boj_1202.txt"));
Scanner sc = new Scanner(System.in);
int N = sc.nextInt();
int K = sc.nextInt... | true |
68a877f178356fa07dca94a206781b65030c4985 | Java | hataka/codingground | /neko/cs/cs_062/opover01/opover01.cs | UTF-8 | 1,774 | 3.0625 | 3 | [] | no_license | // -*- mode: java -*- Time-stamp: <2016-08-24 15:57:55 kahata>
/*================================================================
* title:
* file:
* path; cs/cs_062/opover01/opover01.cs
* url: cs/cs_062/opover01/opover01.cs
* created: Time-stamp: <2016-08-24 15:57:55 kahata>
* revision: $Id$
* Programmed By:... | true |
15d3760d8f2753f9e68579420b7348e8d702bac7 | Java | mariusspielberger/wwi15seb_code-snippets | /com/mariusspielberger/study/p6/sw_arch/exercise/control/UserControl.java | UTF-8 | 384 | 2.25 | 2 | [] | no_license | package com.mariusspielberger.study.p6.sw_arch.exercise.control;
import com.mariusspielberger.study.p6.sw_arch.exercise.entity.User;
import java.util.List;
public interface UserControl {
User findUserById(int id);
User findUserByUsername(String userName);
List<User> getAllUsers();
User createUser(User user)... | true |
c4b5b479e3b3402d4132f49da555aa0822ffd0e5 | Java | JamesKitching/desmo-j | /.svn/pristine/c4/c4b5b479e3b3402d4132f49da555aa0822ffd0e5.svn-base | UTF-8 | 616 | 2.71875 | 3 | [] | no_license | /**
*
*/
package test.implementation;
import desmoj.core.report.Reporter;
/**
* This class is the Implementation for having
* a test object of the typ Reporter.
*
* @author Clara Bluemm
* @see desmoj.core.report
*/
public class TestReporter extends Reporter {
/**
* Invokes the Construct... | true |