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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
f65829cf49e1d6a4c8baa95ffdfe487b885ff57c | Java | Amirkhan5949/E_Commerce | /app/src/main/java/com/example/e_commerce_user/ui/activity/ProfileActivity.java | UTF-8 | 16,422 | 1.664063 | 2 | [] | no_license | package com.example.e_commerce_user.ui.activity;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.os.Environment;
import android.util.Log;
import android.view.Gravity;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.w... | true |
64b28cbc53729fe9b52c401e58d953c70820fe04 | Java | manoj897/mjapps | /LeadershipAndMotivation/src/main/java/com/inmobi/manojkrishnan/LeadershipAndMotivation/WallpaperFragment.java | UTF-8 | 18,079 | 1.765625 | 2 | [] | no_license | package com.inmobi.manojkrishnan.LeadershipAndMotivation;
import android.Manifest;
import android.app.ProgressDialog;
import android.content.Context;
import android.content.Intent;
import android.content.pm.PackageManager;
import android.content.res.Resources;
import android.graphics.Bitmap;
import android.graphics.Bi... | true |
c544fb083596dd781e59c64402c560532d3361aa | Java | loveTeamByWantAndRsl/want_lifu | /src/main/java/com/example/wantlifu/controller/reciveEntity/AddLifuReciveEntity.java | UTF-8 | 593 | 1.945313 | 2 | [] | no_license | package com.example.wantlifu.controller.reciveEntity;
import com.example.wantlifu.entity.Lifu;
import com.example.wantlifu.entity.Message;
import javax.validation.Valid;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
/**
* @author want
* @createTime 2020.02.18.14:18
*/
publi... | true |
f4d9c0a369d13775b7bdd21f78547f0565bea732 | Java | BlueVegetable/yicheng | /src/main/java/cn/studio/zps/blue/ljy/domain/ProfessionCoursePicture.java | UTF-8 | 1,328 | 2.609375 | 3 | [] | no_license | package cn.studio.zps.blue.ljy.domain;
public class ProfessionCoursePicture {
private int id;
private String path;
private String url;
public int getId() {
return this.id;
}
public void setId(int id) {
this.id=id;
}
public String getPath() {
return this.path;
}
public void setPath(String path) {
... | true |
d78c57b115981e1a48585327c65ea333f3fb06c8 | Java | kimyeongha/javaPractice | /Phonetest.java | UTF-8 | 2,402 | 3.546875 | 4 | [] | no_license | package chapter06_Class01;
import java.util.Scanner;
public class Phonetest {
public static void main(String[] args) {
// TODO Auto-generated method stub
Scanner s = new Scanner(System.in);
System.out.println("당신의 휴대폰 모델을 입력하시오");
String model= s.next();
System.out.println("색상을 입력하시오");
... | true |
70ea561b3c9f90bbbe66ce6faabe5e41ee6f73ad | Java | lyfeifei/lyfeifei | /lyfeifei/src/main/java/org/xinhua/cbcloud/aes/AESHandler.java | UTF-8 | 2,622 | 3.015625 | 3 | [] | no_license | package org.xinhua.cbcloud.aes;
import lombok.extern.slf4j.Slf4j;
import java.io.File;
@Slf4j
public class AESHandler {
public static void main(String[] args) throws Exception {
// D:/1920.jpg D:/1920_encrypted.jpg
String filePath = "D:\\loneliness-2308923_640.jpg";
// 生成密钥
Str... | true |
43d348e3e0a21dd7e7b80dda8ebbefffb91299f9 | Java | FirstTeamAir/backend | /service/src/main/java/ru/vsu/service/service/validation/annotation/ValueOfEnumWithId.java | UTF-8 | 1,189 | 2.21875 | 2 | [] | no_license | package ru.vsu.service.service.validation.annotation;
import ru.vsu.repository.entity.commons.HasId;
import ru.vsu.service.service.validation.validator.ValueOfEnumWithIdValidator;
import javax.validation.Constraint;
import javax.validation.Payload;
import java.lang.annotation.ElementType;
import java.lang.annotation.... | true |
581ec642b79adda7ded58c4bf3d8646dec12a0d2 | Java | dorset-college-projects/oop-week6-java-shoppingcart | /src/com/company/Cart.java | UTF-8 | 1,985 | 3.6875 | 4 | [] | no_license | package com.company;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileWriter;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Scanner;
public class Cart {
public ArrayList<Product> products = new ArrayList<Product>();
private double TotalPrice;
publ... | true |
def5a3b7686004ec18b49bd9cce08f7b351cf806 | Java | Alegarse/MaipetsFCT | /app/src/main/java/com/example/maipetsfct/VetActivity.java | UTF-8 | 2,771 | 2.078125 | 2 | [] | no_license | package com.example.maipetsfct;
import androidx.annotation.NonNull;
import androidx.appcompat.app.AppCompatActivity;
import androidx.navigation.NavController;
import androidx.navigation.Navigation;
import androidx.navigation.ui.AppBarConfiguration;
import androidx.navigation.ui.NavigationUI;
import android.annotation... | true |
62d54bc6241cbc416ebbd4e4463b165823963768 | Java | newtonker/wechat6.5.3 | /app/src/main/wechat6.5.3/com/tencent/tinker/c/a/a/a/m.java | UTF-8 | 2,738 | 1.648438 | 2 | [] | no_license | package com.tencent.tinker.c.a.a.a;
import com.tencent.tinker.a.a.i;
import com.tencent.tinker.a.a.i.e;
import com.tencent.tinker.a.a.k;
import com.tencent.tinker.a.a.t.a;
import com.tencent.tinker.a.b.b.b.AnonymousClass3;
import com.tencent.tinker.c.a.b.b;
import java.io.ByteArrayOutputStream;
import java.util.BitSet... | true |
b61d862c142f1bd24c88d6623c23ae957e44956e | Java | Eduardo14141/META | /src/java/Servlets/GuardarCambios.java | UTF-8 | 4,962 | 2.578125 | 3 | [] | no_license | package Servlets;
import Java.AccionesCuenta;
import TablasSQL.Cuenta;
import java.io.IOException;
import java.nio.charset.StandardCharsets;
import java.util.Base64;
import java.util.List;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import... | true |
c96706f0df5e3ef2ad57a766134232ef3d37e25c | Java | OgiOgi1/vjezbanje-tokom-lockdown-a | /src/Online_Prodavnica/RegistracijaKupaca.java | UTF-8 | 636 | 2.40625 | 2 | [] | no_license | package Online_Prodavnica;
public class RegistracijaKupaca {
public interface RegistrationService {
String NAME = "sample_RegistrationService";
@Validated
RegistrationResult registerUser(User1 String login, String password);
public static class RegistrationResult implements Seria... | true |
957653e01ca05f591a71cd04c444d7bbb285bea1 | Java | Tobyawo/BlogApi-with-Spring-Security | /src/main/java/com/fb2/fb/Exception/ResourceNotFoundException.java | UTF-8 | 612 | 2.140625 | 2 | [] | no_license | package com.fb2.fb.Exception;
import com.fb2.fb.model.request.ApiResponse;
import org.springframework.http.HttpStatus;
import org.springframework.web.bind.annotation.ResponseStatus;
@ResponseStatus(HttpStatus.NOT_FOUND)
public class ResourceNotFoundException extends RuntimeException {
private transient ApiRespon... | true |
8e2053dc66bf76a534fbc2a62696bf0f37d7a70e | Java | DhwaniSondhi/Design-Patterns | /04StrategyPattern/Practice4/StrategyDriver.java | UTF-8 | 578 | 2.984375 | 3 | [] | no_license | package Practice4;
public class StrategyDriver {
public static void main(String[] args) {
TransportToAirport transportToAirport=new TransportToAirport();
System.out.println("Taking city bus.........");
transportToAirport.setStrategy(new CityBus());
transportToAirport.travelling();
System.out.println("... | true |
dcc6f8e3b6c2a3bce8910e083d2d2ba4e59a6bff | Java | bellmit/zycami-ded | /src/main/java/com/google/android/gms/internal/measurement/zzko.java | UTF-8 | 3,852 | 1.625 | 2 | [] | no_license | /*
* Decompiled with CFR 0.151.
*/
package com.google.android.gms.internal.measurement;
import com.google.android.gms.internal.measurement.zzkp;
public final class zzko
extends Enum {
public static final /* enum */ zzko zza;
public static final /* enum */ zzko zzb;
public static final /* enum */ zzko zz... | true |
6425130f733b6871b971460766f135a36c7b47c6 | Java | JeffersonCabrera/Spring | /spring04/src/main/java/com/conecta/spring04/AppConfig.java | UTF-8 | 757 | 2.15625 | 2 | [] | no_license | package com.conecta.spring04;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import com.conecta.beans.Barcelona;
import com.conecta.beans.Camiseta;
import com.conecta.beans.Jugador;
import com.conecta.beans.Juventus;
import com.conecta.beans.Marca;
@C... | true |
b725bfbc2d79061edd44cca45cf5587881e29d6a | Java | sinaden/P1groupSina | /ShopUpdates/Game.java | UTF-8 | 28,031 | 2.96875 | 3 | [] | no_license | package Game;
import javax.swing.*;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.KeyAdapter;
import java.awt.event.KeyEvent;
import java.io.File;
import java.io.PrintWriter;
import java.util.ArrayList;
import java.util.Random;
import java.util.Scanner... | true |
413161f4725cc23414caeacd35eecaf1ac81e1ab | Java | bdlions/DroidSDK | /src/org/bdlions/client/reqeust/uploads/UploadService.java | UTF-8 | 1,382 | 2.453125 | 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 org.bdlions.client.reqeust.uploads;
import java.io.File;
import java.io.IOException;
import okhttp3.MediaType;
import okhttp3.... | true |
ae9f8d847756a253ba8a990d5ba12b340d88d1fd | Java | htdrajiv/DE_Courses_Mum | /ASD/Lab12-SpringAOP/CustomerApplication/customers/AspectTracking.java | UTF-8 | 1,357 | 2.328125 | 2 | [] | no_license | package customers;
/**
* Created by Rajiv on 5/20/2017.
*/
import org.aspectj.lang.JoinPoint;
import org.aspectj.lang.ProceedingJoinPoint;
import org.aspectj.lang.annotation.After;
import org.aspectj.lang.annotation.Around;
import org.aspectj.lang.annotation.Aspect;
import org.springframework.util.StopWatch;
impor... | true |
e5699c81669747040fb2de03778a11dc9df7b76d | Java | shengleiRain/leetcode | /src/__leetcode/Utils.java | UTF-8 | 227 | 2.140625 | 2 | [] | no_license | package __leetcode;
/**
* @author Rain
* @date 2019/6/26.
*/
public class Utils {
public static void swap(int[] nums, int i, int j) {
int tmp = nums[i];
nums[i] = nums[j];
nums[j] = tmp;
}
}
| true |
d25a39f817f21a67d86d8e3df510cee9ce2d988a | Java | tmdmaker/tmdmaker | /bundles/org.tmdmaker.core/src/org/tmdmaker/core/model/VirtualSuperset.java | UTF-8 | 4,917 | 2.1875 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2009-2019 TMD-Maker Project <https://www.tmdmaker.org>
*
* 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 re... | true |
7e3e3816ef9974bcc9c8e1d3a653af0f83c8e7bb | Java | PatrickUbelhor/LeagueMastery | /src/main/java/team/gif/model/riot/Mastery.java | UTF-8 | 381 | 1.710938 | 2 | [
"NCSA",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | package team.gif.model.riot;
import lombok.Data;
@Data
public class Mastery {
private Integer championLevel;
private String chestGranted;
private Long championPoints;
private Long championPointsSinceLastLevel;
private Long championPointsUntilNextLevel;
private String summonerId;
private Integer tokensEarned;... | true |
15aafcccdedbc4ee7de9786e3c8d197d9bea68ae | Java | Auch-Auch/avito_source | /sources/a7/c/a/a/r/c/n.java | UTF-8 | 1,348 | 1.96875 | 2 | [] | no_license | package a7.c.a.a.r.c;
import kotlin.jvm.functions.Function1;
import kotlin.jvm.internal.Intrinsics;
import kotlin.jvm.internal.Lambda;
import org.kodein.di.TypeReference;
import org.kodein.di.TypesKt;
import org.kodein.di.bindings.NoArgBindingKodein;
import ru.sravni.android.bankproduct.utils.navigation.IPreviousModul... | true |
15687c722a0bfaec2e1f7bd0d1991e3bfa90de54 | Java | zsj6102/hongmu2.0 | /app/src/main/java/com/colpencil/redwood/present/mine/CardPresenter.java | UTF-8 | 5,507 | 2.125 | 2 | [] | no_license | package com.colpencil.redwood.present.mine;
import com.colpencil.redwood.bean.CardWallInfo;
import com.colpencil.redwood.bean.result.CareReturn;
import com.colpencil.redwood.model.CardModel;
import com.colpencil.redwood.model.imples.ICardModel;
import com.colpencil.redwood.view.impl.ICardView;
import com.property.col... | true |
cb016da4e331682428288bd74ff31ebe42d3ca2c | Java | Ds-Xyy/purchase | /src/main/java/com/turing/purchase/service/impl/UserServiceimpl.java | UTF-8 | 1,380 | 2.078125 | 2 | [] | no_license | package com.turing.purchase.service.impl;
import com.turing.purchase.Untils.SaltUtils;
import com.turing.purchase.entity.SysUsers;
import com.turing.purchase.entity.SysUsersExample;
import com.turing.purchase.mapper.SysUsersMapper;
import com.turing.purchase.service.UserService;
import org.apache.shiro.crypto.hash.Md5... | true |
4a5e73442eccc35c8de2ed29eff36ab55cc709c7 | Java | nadavbar/GraphicsEx3 | /src/Ex3PCA/Color.java | UTF-8 | 2,507 | 3.875 | 4 | [] | no_license | package Ex3PCA;
/**
* A color object with R, G, B components
*/
public class Color
{
/** The red component of the color*/
private double _red;
/** The green component of the color*/
private double _green;
/** The blue component of the color*/
private double _blue;
/**
* Creates a new color object
* @p... | true |
9b4f6e5f95b1dcfc306e481ccc2404762700e56c | Java | jpatera/isman | /src/main/java/eu/japtor/isman/model/Person.java | UTF-8 | 1,583 | 2.484375 | 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 eu.japtor.isman.model;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;... | true |
663d3379f86f54d4963533ba35c93520b267092b | Java | prakriti-a/LyricsFinderApp | /app/src/main/java/com/prakriti/lyricsfinderapp/MainActivity.java | UTF-8 | 3,151 | 2.25 | 2 | [] | no_license | package com.prakriti.lyricsfinderapp;
import androidx.annotation.NonNull;
import androidx.appcompat.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.TextView;
import com.android.voll... | true |
1f082ddfa247e93dc26e59c17bbea39703c0fcab | Java | BNU-Chen/tdjygl | /src/cn/edu/bnu/land/web/JsfieldmappingController.java | UTF-8 | 2,819 | 1.976563 | 2 | [] | no_license | package cn.edu.bnu.land.web;
import java.io.IOException;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestBody;
impo... | true |
1bbf93d5c78aaffaf4f8001605f67f765e29f28b | Java | hanclouds/mqtt-sdk | /src/main/java/com/hanclouds/impl/AbstractHancloudsCallback.java | UTF-8 | 3,569 | 2.375 | 2 | [] | no_license | package com.hanclouds.impl;
import com.hanclouds.HancloudsClient;
import com.hanclouds.model.ProxyNotifyInfo;
import com.hanclouds.model.StructureInfo;
import java.util.List;
/**
* HanCloudsCallback 回调抽象类,外部可以实现
*
* @author szl
* @date 2018/7/15
*/
public abstract class AbstractHancloudsCallback {
/**
... | true |
0f0a41809a2606396eb5ba03f23f62ba727088ad | Java | cycle1984/oa-ssspa | /src/main/java/cn/cycle/oa/service/impl/MyGroupServiceImpl.java | UTF-8 | 2,019 | 2.1875 | 2 | [] | no_license | package cn.cycle.oa.service.impl;
import javax.persistence.criteria.CriteriaBuilder;
import javax.persistence.criteria.CriteriaQuery;
import javax.persistence.criteria.Path;
import javax.persistence.criteria.Predicate;
import javax.persistence.criteria.Root;
import org.springframework.beans.factory.annotation... | true |
5a7796225c15b544c241d0fde14885d7ee7e4886 | Java | Letractively/isfasiel-spring | /isfasiel/src/com/isfasiel/main/file/service/impl/FileImpl.java | UTF-8 | 1,264 | 1.945313 | 2 | [] | no_license | package com.isfasiel.main.file.service.impl;
import javax.annotation.Resource;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.isfasiel.main.file.service.FileService;
import com.isfasiel.util.data.Data;
import com.isfasiel.util.file.Fi... | true |
e9e48422466fb5f5f0a50029bd04492be6cb08e9 | Java | ning-deng/Travel-Guide | /src/edu/buffalo/cse636/api/DataCollector.java | UTF-8 | 7,654 | 2.59375 | 3 | [] | no_license | package edu.buffalo.cse636.api;
import java.sql.ResultSet;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Date;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Map;
import java.util.Set;
import com.mongodb.BasicDBObject;
import com.mongodb.DB;
import com.mongodb.... | true |
92ecb76adecae2d67d55d3bf084e9e9f57d759cf | Java | cdai/interview | /1-algorithm/13-leetcode/java/src/advanced/combinatorial/backtracking/dfs/lc079_wordsearch/Solution.java | UTF-8 | 4,762 | 3.9375 | 4 | [
"MIT"
] | permissive | package advanced.combinatorial.backtracking.dfs.lc079_wordsearch;
/**
* Given a 2D board and a word, find if the word exists in the grid.
* The word can be constructed from letters of sequentially adjacent cell,
* where "adjacent" cells are those horizontally or vertically neighboring.
* The same letter cell may n... | true |
1b5ed3c84e44b39c8deb6164617c32db1bd5d959 | Java | ghj1040110333/udmp | /udmp-components/udmp_bpm/src/main/java/cn/com/git/udmp/common/act/AbstractServiceTaskCommand.java | UTF-8 | 1,534 | 1.882813 | 2 | [] | no_license | package cn.com.git.udmp.common.act;
import java.util.HashMap;
import java.util.Map;
import org.activiti.engine.impl.bpmn.parser.FieldDeclaration;
public abstract class AbstractServiceTaskCommand implements ActServiceTaskCommand {
Map<String,FieldDeclaration> allConfig = new HashMap<String,FieldDeclaration>();
M... | true |
74f593b069c6225bdb5096bd81c1a4371b78ed61 | Java | Aiushtha/RemWallpaper | /app/src/main/java/share/AndroidShare.java | UTF-8 | 2,662 | 2.625 | 3 | [] | no_license | package share;
import android.content.Context;
import android.content.SharedPreferences;
import com.google.gson.Gson;
public class AndroidShare {
public interface IExcute {
void put(SharedPreferences.Editor localEditor);
void get(SharedPreferences settings);
}
protected String filenam... | true |
811b93370aea91ad3c445c3cd5dff610d7d8912a | Java | jinxihexi0411/Airport_Scheduling_Simulation | /src/MPIMessage.java | UTF-8 | 336 | 2.65625 | 3 | [] | no_license | public class MPIMessage {
private int targetRank;
private Event event;
MPIMessage(int targetRank, Event event) {
this.targetRank = targetRank;
this.event = event;
}
public int getTargetRank() {
return this.targetRank;
}
public Event getEvent() {
return this... | true |
54239f6899e387a9a8482a8e01e0d2d53f8ddfc2 | Java | chiranjitjana/stylezone | /Stylezone-backend/src/main/java/com/project/stylezone/models/AppointmentList.java | UTF-8 | 380 | 2.046875 | 2 | [] | no_license | package com.project.stylezone.models;
import java.util.List;
public class AppointmentList {
private List<CustomFittingAppointMent> appointmentList;
public List<CustomFittingAppointMent> getAppointmentList() {
return appointmentList;
}
public void setAppointmentList(List<CustomFittingAppointMent> appointmentL... | true |
f6fc7414d6a2c75c9b06ef20aae479fea8b597bc | Java | codezerk/vagrant-binding | /src/main/java/com/guigarage/vagrant/configuration/VagrantVmConfig.java | UTF-8 | 4,768 | 2.328125 | 2 | [] | no_license | package com.guigarage.vagrant.configuration;
import java.net.URL;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
/**
* A configuration class that can be used to define and create a VM in Vagrant.
* @author hendrikebbers
*
*/
public class VagrantVmConfig {
priv... | true |
87df1ee23122653c451bfc419e1d9ce2c363b815 | Java | BackupTheBerlios/notemanager | /Symphonie/src15/fr/umlv/symphonie/formula/sablecc/node/AIconstExpratom.java | UTF-8 | 1,480 | 2.234375 | 2 | [] | no_license | /* This file was generated by SableCC (http://www.sablecc.org/). */
package fr.umlv.symphonie.formula.sablecc.node;
import java.util.*;
import fr.umlv.symphonie.formula.sablecc.analysis.*;
public final class AIconstExpratom extends PExpratom
{
private TIconst _iconst_;
public AIconstExpratom()
{
}
... | true |
54d4faf79aacdb2620b32a4f023830ba31526ad6 | Java | sjx2015/VoiceBleTestV1.2.1 | /app/src/main/java/com/actions/voicebletest/bean/KeyMapping.java | UTF-8 | 1,502 | 2.265625 | 2 | [] | no_license | package com.actions.voicebletest.bean;
import java.util.HashMap;
import java.util.Map;
/**
* Created by chang on 2018/4/20.
*/
public class KeyMapping {
Map mKeyMap = new HashMap<String,String>();
public KeyMapping(){
mKeyMap.put("300000", "REMOTE_KEY_POWER");
mKeyMap.put("400000", "REMOTE_... | true |
c228438484767bbc870efa0e3d7b75405a36f540 | Java | vachb/latoken-java-client | /src/main/java/com/latoken/api/client/v2/response/DepositAddressResponse.java | UTF-8 | 420 | 1.75 | 2 | [] | no_license | package com.latoken.api.client.v2.response;
import lombok.Data;
import java.util.Map;
@Data
public final class DepositAddressResponse {
private Account depositAccount;
private String message;
private Error.ErrorCode error;
private Error.Status status;
private Map<String, String> errors;
@Data
... | true |
9c351fa340511754dd6184a8ae8cc103384575bf | Java | yundequanshi/TxCarShop | /app/src/main/java/com/txsh/exception/ZMDBException.java | UTF-8 | 622 | 2.34375 | 2 | [] | no_license | /**
* FlieName:LTDBException.java
* Destribution:
* Author:michael
* 2013-5-20 上午11:55:55
*/
package com.txsh.exception;
import com.txsh.utils.MLToolUtil;
/**
* @author michael
*
*/
public class ZMDBException extends Exception{
/**
*
*/
private static final long serialVersionUID = 6429635947845610312... | true |
aea672aa8ff51a4044d7c6ab9b57455ea3b3cb14 | Java | Dangerxfh/Person_Manager | /src/com/ldu/xfh/entity/LinkMan.java | UTF-8 | 2,026 | 2.125 | 2 | [] | no_license | package com.ldu.xfh.entity;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import ja... | true |
d48283905cdf73ded122441139a621ede66cfa7e | Java | Dynamit88/PDFBox-Java | /src/pdf/bouncycastle/operator/bc/BcECContentSignerBuilder.java | UTF-8 | 821 | 1.921875 | 2 | [] | no_license | package pdf.bouncycastle.operator.bc;
import pdf.bouncycastle.asn1.x509.AlgorithmIdentifier;
import pdf.bouncycastle.crypto.Digest;
import pdf.bouncycastle.crypto.Signer;
import pdf.bouncycastle.crypto.signers.DSADigestSigner;
import pdf.bouncycastle.crypto.signers.ECDSASigner;
import pdf.bouncycastle.operator.Operato... | true |
2c2c17f7f5897a96b2532773f5629cd76d72abfa | Java | qixiaohui/HaidaibanDemo | /app/src/main/java/com/haidaiban/foxlee/model/deal/Result.java | UTF-8 | 10,450 | 1.875 | 2 | [] | no_license | package com.haidaiban.foxlee.model.deal;
/**
* Created by qixiaohui on 3/15/15.
*/
import java.util.ArrayList;
import java.util.List;
import javax.annotation.Generated;
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
@Generated("org.jsonschema2pojo")
public class Result... | true |
6b702575564488a2fe6476b70e9177480b33a030 | Java | Shadi723/Warehouse.Managment | /app/src/main/java/com/example/warehousemanagment/ali/Dialogs/ResetPasswordDialog.java | UTF-8 | 3,779 | 2.34375 | 2 | [] | no_license | package com.example.warehousemanagment.ali.Dialogs;
import android.app.Dialog;
import android.content.Context;
import android.graphics.Color;
import android.graphics.drawable.ColorDrawable;
import android.util.Patterns;
import android.view.View;
import android.view.Window;
import android.widget.Button;
import android.... | true |
8ca86516314a04938ae4a64c4f5a9f5be6b64fb5 | Java | dhirajn72/allmylocalstuff | /HibernateSpring/Spring4Example/src/main/resources/com/servlet/test/TestServlet.java | UTF-8 | 695 | 2.390625 | 2 | [] | no_license | package com.servlet.test;
import java.io.IOException;
import javax.servlet.RequestDispatcher;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
public class TestServlet extends HttpServlet {
@Ove... | true |
9e5a62eceee33e8682a590571325052cd137052f | Java | Nkonyane/quiz_app | /app/src/main/java/com/example/wendy/quiz_app/chatSlang.java | UTF-8 | 2,779 | 2.375 | 2 | [] | no_license | package com.example.wendy.quiz_app;
import android.app.Activity;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.QuickContactBadge;
import android.widget.RadioButton;
import android.widget.TextView;
import android.... | true |
35507b7a6c0bd22086b4967077cd74fe3f4413d9 | Java | kasperyhr/leetcode | /215/Solution.java | UTF-8 | 281 | 3.015625 | 3 | [] | no_license | class Solution {
public int findKthLargest(int[] nums, int k) {
PriorityQueue<Integer> heap = new PriorityQueue<Integer>();
for(int num: nums){
heap.add(num);
if(heap.size() > k) heap.poll();
}
return heap.poll();
}
} | true |
3d6a08c9dffaad328a290751bfde6adf774119cf | Java | felliciawidianti/MalangTravell | /app/src/main/java/id/sch/smktelkom_mlg/ngalam/KItem_list.java | UTF-8 | 629 | 1.640625 | 2 | [] | no_license | package id.sch.smktelkom_mlg.ngalam;
import android.os.Bundle;
import android.widget.RatingBar;
import android.widget.TextView;
/**
* Created by Mokleters on 04/30/2017.
*/
public class KItem_list extends KDetailActivity {
TextView tvrating;
@Override
protected void onCreate(Bundle savedInstanceState... | true |
13f58d40b37bc07138cabf9807304493feede540 | Java | ghacupha/ifris-excel-mapper | /src/main/java/io/github/ifris/kernel/excel/internal/mapper/mohsen_mahmoudi/converter/DateTypeConverter.java | UTF-8 | 1,871 | 2.8125 | 3 | [
"Apache-2.0"
] | permissive | /*
* code https://github.com/mohsen-mahmoudi/excel-object-mapping
*/
package io.github.ifris.kernel.excel.internal.mapper.mohsen_mahmoudi.converter;
import java.sql.Timestamp;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;
import org.slf4j.Logger;
import static org.slf4j.LoggerF... | true |
05e7133c79ad98f4d1b020bcbeb87e6510ab6484 | Java | jakubdykowski/gdrive | /src/qapps/gdrive/util/Upload.java | UTF-8 | 2,267 | 2.71875 | 3 | [] | no_license | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package qapps.gdrive.util;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.util.concurrent.ExecutorService;
import java.util.logging.Level;
import... | true |
fb973879c3fbd8f1b53e4d370dd888f0789327a9 | Java | orpinhas20/CARD_WAR | /app/src/main/java/com/example/project_1/GameManager.java | UTF-8 | 3,339 | 3.53125 | 4 | [
"MIT"
] | permissive | package com.example.project_1;
import android.util.Log;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
public class GameManager {
// Define constants:
public static final int MAX_CARDS =26;
private static final int cardNumberSize = 52;
private static final int halfA... | true |
89f91f37cbab154eea4759b2eee6c64bc6181ed0 | Java | dreamvalley/6.0.0 | /src/com/uas/erp/controller/plm/AnalysegridController.java | UTF-8 | 3,675 | 1.914063 | 2 | [] | no_license | package com.uas.erp.controller.plm;
import java.util.HashMap;
import java.util.Map;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody... | true |
d08e466d77bb754ed87c19c446881743ae8a244e | Java | zdb17173/fran-cloud | /mq-springboot/src/test/java/org/fran/cloud/mq/test/SendMessage.java | UTF-8 | 1,441 | 2.140625 | 2 | [] | no_license | package org.fran.cloud.mq.test;
import com.fasterxml.jackson.core.JsonProcessingException;
import org.fran.cloud.mq.aws.sns.factories.SNSClient;
import org.fran.cloud.mq.aws.sns.interfaces.SNSFactory;
import org.fran.cloud.mq.aws.sqs.factories.SQSClient;
import org.fran.cloud.mq.aws.sqs.interfaces.SQSFactory;
import o... | true |
d40a980656ebfc3414791fce545c2aa05b8d81c0 | Java | ganeshramr/acme-reference-impl | /src/test/java/com/acme/reference/impl/service/test/TestDataGenerator.java | UTF-8 | 1,131 | 2.21875 | 2 | [] | no_license | package com.acme.reference.impl.service.test;
import java.util.ArrayList;
import java.util.List;
import com.acme.reference.impl.dto.BenchmarkClientDTO;
import com.acme.reference.impl.dto.DeliveryChannelDTO;
public class TestDataGenerator {
public static BenchmarkClientDTO generateBenchmarkClientDTO(){
Benchma... | true |
5a1517bb1c1e00a367506aaf8422ff69690de3da | Java | k2glyph/LogicabeansBlog | /src/main/java/com/logicabeans/api/crud/controller/UserController.java | UTF-8 | 3,518 | 2.34375 | 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 com.logicabeans.api.crud.controller;
import com.logicabeans.api.crud.IUserService;
import com.logicabeans.api.crud.exception.U... | true |
b97ec3fd21c2392fbebbf2d8ed49cbeee563371c | Java | lor6/tutorials | /spring-boot-modules/spring-boot-di/src/main/java/com/baeldung/componentscan/filter/assignable/ComponentScanAssignableTypeFilterApp.java | UTF-8 | 471 | 2.0625 | 2 | [
"MIT"
] | permissive | package com.baeldung.componentscan.filter.assignable;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.FilterType;
@Configuration
@ComponentScan(includeFilters = @ComponentScan.Filter(type = FilterTy... | true |
4553eda3185b166b0d79ccbdc7ab244eff78c921 | Java | Qiang8/nmyj-micro | /cdp-report/micro/src/main/java/com/taiji/cdp/report/repository/ConsJudgeRepository.java | UTF-8 | 3,450 | 2.09375 | 2 | [] | no_license | package com.taiji.cdp.report.repository;
import com.querydsl.core.BooleanBuilder;
import com.querydsl.core.types.Projections;
import com.querydsl.jpa.JPQLQuery;
import com.taiji.cdp.report.entity.ConsJudgeInfo;
import com.taiji.cdp.report.entity.QConsJudgeInfo;
import com.taiji.micro.common.enums.DelFlagEnum;
import c... | true |
68524c6b87660cf1170fba409c3ad26faf502e01 | Java | dsiegler2000/PascalInterpreter | /src/symbol/SymbolType.java | UTF-8 | 75 | 1.53125 | 2 | [] | no_license | package symbol;
public enum SymbolType {
BUILTIN_TYPE,
VAR_SYMBOL;
}
| true |
f691021b8e1fd7017a4a5137010b27b714a35f08 | Java | Top-Q/jsystem | /jsystem-core-projects/jsystemCore/src/main/java/jsystem/framework/scenario/flow_control/AntIfCondition.java | UTF-8 | 12,016 | 1.75 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2005-2010 Ignis Software Tools Ltd. All rights reserved.
*/
package jsystem.framework.scenario.flow_control;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Properties;
import jsystem.framework.common.CommonResources;
import jsystem.framework.report.RunnerListenersManager;
impo... | true |
4b1398799b9ec39d5c781ee54060cdca1050a80f | Java | avivfaraj/cs570-health-tracker | /tests/FoodSearchTester.java | UTF-8 | 822 | 2.8125 | 3 | [
"MIT"
] | permissive | // package Helper;
import java.util.Calendar;
import java.util.ArrayList;
/***************************************
* FoodSearchTester.java
* Whitebox for FoodSearch.java
* @author Aviv Farag
* @version 6.0 - 06.10.21
****************************************/
public class FoodSearchTester {
public static void ma... | true |
34f671a4e16def02fc28fac8e400561c603ea2d9 | Java | luolili/java-jdk-study-demo | /pm/src/main/java/com/luo/ptn/creational/abstractfactory/PyCourseFactory.java | UTF-8 | 274 | 2.125 | 2 | [] | no_license | package com.luo.ptn.creational.abstractfactory;
public class PyCourseFactory implements CourseFactory {
@Override
public Video getVideo() {
return new PyVideo();
}
@Override
public Article getArticle() {
return new PyArticle();
}
}
| true |
beb867323fc34c07c47a1054661ab6556f026b45 | Java | trryanalicataga/project_automation | /src/test/java/tooltwist/pageObjects/SL_SignUpPageObject.java | UTF-8 | 4,070 | 2.140625 | 2 | [] | no_license | package tooltwist.pageObjects;
import org.junit.Assert;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.ui.Select;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import tooltwist.utils.ElementUtil;
import tooltwis... | true |
70762575ac2aab51017196651d97ac1bcb8641a9 | Java | cloudiator/rest-server | /model/src/main/java/io/github/cloudiator/rest/model/CloudiatorProcessNew.java | UTF-8 | 4,449 | 2.125 | 2 | [
"Apache-2.0"
] | permissive | package io.github.cloudiator.rest.model;
import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonSubTypes;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
import io.swagger.annotations.ApiMode... | true |
3523f83c429200afee47e9cab0a88681ab3ef7d9 | Java | OlivierCoue/Minock | /src/myGame/Menu.java | UTF-8 | 2,976 | 2.671875 | 3 | [
"MIT"
] | permissive | package myGame;
import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Dimension;
import java.awt.FlowLayout;
import java.awt.Font;
import java.util.Calendar;
import javax.swing.ImageIcon;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JPasswordField;
import javax.swing.JTextA... | true |
20d9fcd58a6d81b079ef84bf93511c8f5784e2cf | Java | wsy1983wsy/Android_Advance | /OKHttp/custom_okhttp/src/main/java/com/wsy/custom/okhttp/okhttp/chain/Interceptor2.java | UTF-8 | 214 | 1.804688 | 2 | [] | no_license | package com.wsy.custom.okhttp.okhttp.chain;
import com.wsy.custom.okhttp.okhttp.Response2;
import java.io.IOException;
public interface Interceptor2 {
Response2 doNext(Chain2 chain2) throws IOException;
}
| true |
57417a98761f0e4d8288ebe8d6d9bc8196df40ff | Java | VictorVangelov/HackBulgaria | /Core-Java-2/MultiThreading/src/CourseTasks/Consumer.java | UTF-8 | 456 | 3 | 3 | [] | no_license | package CourseTasks;
public class Consumer implements Runnable {
@Override
public void run() {
for(int i =0; i< 1_000;i++){
synchronized (BlockingQueue.myQueue) {
while(BlockingQueue.myQueue.isEmpty()){
try {
BlockingQueue.myQueue.wait();
} catch (InterruptedException e) {}
}
Blocki... | true |
fdbdebcd49cb14cb7986442f357351502288c7ff | Java | a-chen/expense-reimbursement-system | /src/main/java/com/revature/middle/TypeService.java | UTF-8 | 334 | 1.984375 | 2 | [] | no_license | package com.revature.middle;
import com.revature.beans.Type;
import com.revature.data.DatabaseAccessImplementation;
import java.sql.SQLException;
import java.util.List;
/**
* Created by achen on 12/12/2016.
*/
class TypeService {
List<Type> getTypes() {
return new DatabaseAccessImplementation().getTyp... | true |
b5ca13a5d7e9d99188b627387a64fbb702fce858 | Java | autolock-anonymous/autolock-benchmark | /benchmarks-bak/src/Plural/src/edu/cmu/cs/crystal/analysis/live/LiveVariableTransferFunction.java | UTF-8 | 10,987 | 1.882813 | 2 | [] | no_license | /**
* Copyright (c) 2006, 2007, 2008 Marwan Abi-Antoun, Jonathan Aldrich, Nels E. Beckman,
* Kevin Bierhoff, David Dickey, Ciera Jaspan, Thomas LaToza, Gabriel Zenarosa, and others.
*
* This file is part of Crystal.
*
* Crystal is free software: you can redistribute it and/or modify
* it under the terms of the G... | true |
01242466d46467a40b4b94e083d480ef5536a8e4 | Java | NumenJamila/JavaWebBlog | /JavaWeb/src/source/service/MysqlLink.java | UTF-8 | 11,814 | 3.109375 | 3 | [] | no_license | package source.service;
import java.sql.*;
import java.util.Arrays;
/**
* Created by sophia on 30/07/2017.
*/
public class MysqlLink {
private static final String URL = "jdbc:mysql://localhost:3306/blog?useSSL=true&useUnicode=true&characterEncoding=utf8";
private static final String USERNAME = "root";
pr... | true |
4a040c933db39689777d6e8c2862342e44e5d388 | Java | tchqiq/HiveUDF | /src/main/java/cn/com/diditaxi/hive/cf/OverThreshold.java | UTF-8 | 1,507 | 2.640625 | 3 | [] | no_license | package cn.com.diditaxi.hive.cf;
import java.io.IOException;
import java.util.Properties;
import org.apache.hadoop.hive.ql.exec.Description;
import org.apache.hadoop.hive.ql.exec.UDF;
import org.apache.hadoop.io.IntWritable;
import org.apache.hadoop.io.Text;
/**
* 2014/09/26
* @author heqi
*
*/
@Description(name... | true |
beceab9acd77e930f48a7f00159b70c6c84a092e | Java | PARTHSAIJA/findASpace | /app/src/main/java/com/findaspace/findaspace/base/BaseActivity.java | UTF-8 | 2,502 | 2.0625 | 2 | [] | no_license | package com.findaspace.findaspace.base;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.ActionBar;
import android.support.v7.app.AppCompatActivity;
import android.view.MenuItem;
import com.findaspace.findaspace.app.R;
import butterknife.ButterKnife;
import butterkn... | true |
a2aa09e836cca681fc05f1dde2bba05b1582f988 | Java | TaylorSeguraVindas/Tarea4Ejercicio2 | /src/segura/taylor/bl/entidades/CuentaAhorroProgramado.java | UTF-8 | 4,095 | 2.984375 | 3 | [] | no_license | package segura.taylor.bl.entidades;
import segura.taylor.bl.enums.EnumTipoCuenta;
import segura.taylor.bl.enums.EnumTipoMovimiento;
import java.time.LocalDate;
import java.time.Period;
public class CuentaAhorroProgramado extends Cuenta{
//Constantes
public static final double constTasaIntereses = 0.14;
p... | true |
1ac6e32121c01f1b29776cfaf2e1237afe7626ee | Java | JeffersonLab/hps-java | /recon/src/main/java/org/hps/recon/filtering/FEEFilterDriver.java | UTF-8 | 4,378 | 2.359375 | 2 | [] | no_license | package org.hps.recon.filtering;
import org.lcsim.event.CalorimeterHit;
import org.lcsim.event.Cluster;
import org.hps.conditions.database.DatabaseConditionsManager;
import org.hps.conditions.ecal.EcalChannel;
import org.hps.conditions.ecal.EcalConditions;
import org.hps.recon.ecal.cluster.ClusterUtilities;
//import o... | true |
1238c0e50bbd92c1331d4aa6b628fe602061502c | Java | MarioDorantes/ProfessionalPractices | /src/BusinessLogic/CoordinatorValidations.java | UTF-8 | 520 | 2.328125 | 2 | [] | no_license | package BusinessLogic;
/**
*
* @author mario
*/
public class CoordinatorValidations extends PersonDataValidations {
boolean validCompanyName;
boolean validProjectName;
public boolean validateCompanyName (String companyName) {
return validCompanyName = companyName.matches("[A-ZÑa-zñ0-... | true |
46a01a658c48a0d015e134e85de03741f209a328 | Java | robin2017/java_concurrency_in_practice | /net/jcip/examples/Test.java | UTF-8 | 269 | 2.0625 | 2 | [] | no_license | package net.jcip.examples;
/**测试类:
* 完成基本代码测试
* */
public class Test {
/**主方法:main*/
public static void main(String[] args){
System.out.println("Hello World");
}
/**测试方法*/
public void test(){}
}
| true |
4553a404a4da572bc25f47124814626405b93a6b | Java | patelkhushbu246/Session_Management | /app/src/main/java/com/example/sessionmanagement/SignUpActivity.java | UTF-8 | 1,765 | 2.328125 | 2 | [] | no_license | package com.example.sessionmanagement;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.Toast;
public class SignUpActivity extends AppCompatActivity {... | true |
b7ebb5d4d442e9183d33953a439ee305040ad6bb | Java | fengclondy/bbscloud | /ribbon-server/src/main/java/com/iag/bbscloud/ribbonserver/service/AccountService.java | UTF-8 | 792 | 2 | 2 | [] | no_license | package com.iag.bbscloud.ribbonserver.service;
import com.iag.bbscloud.common.dto.AccountAddDTO;
import com.iag.bbscloud.common.dto.AccountDTO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;
import... | true |
adb07316969f1e0f40291d901744fc1b416dbf22 | Java | akshaynotes/Network-Security | /src/AES.java | UTF-8 | 3,370 | 3.03125 | 3 | [] | no_license | import java.io.DataInputStream;
import java.io.IOException;
public class AES {
private static final int S[][] = {{9, 4, 10, 11}, {13, 1, 8, 5}, {6, 2, 0, 3}, {10, 14, 15, 7}};
public static void main(String[] args) throws IOException {
DataInputStream inp = new DataInputStream(System.in);
Syst... | true |
cbd637aaba3c094150c71bf917443f86aac2173e | Java | ashish-vaishist/spring-boot-cicd-aws | /src/main/java/com/example/test/hackerrank/SubArrWihGivenSum.java | UTF-8 | 1,742 | 3.234375 | 3 | [] | no_license | package com.example.test.hackerrank;
import java.util.ArrayList;
import java.util.Arrays;
public class SubArrWihGivenSum {
static ArrayList<Integer> subarraySum(int[] arr, int n, int s)
{
int ij=-1;
ArrayList<Integer> l= new ArrayList<Integer>();
int k=0;
int curr= arr[k];
... | true |
47c252f295a130076a2b18aa7a6c0f35112c253a | Java | tubagunacgun/BMG4 | /src/siniflar/DosyaIslemleri.java | UTF-8 | 16,909 | 2.125 | 2 | [] | no_license |
package siniflar;
import duyurutakipsistemi.AkademikDuyuruDuzenleController;
import duyurutakipsistemi.AkademisyenHesapController;
import duyurutakipsistemi.OgrenciHesapController;
import duyurutakipsistemi.TeknoparkDuyuruDuzenleController;
import duyurutakipsistemi.TeknoparkHesapController;
import duyurutaki... | true |
ba99c8bdeb6069ef262f5cca7e8351206df13225 | Java | TINNQYOU/dtemplates | /src/main/java/com/admindemo/chapter01_seckill/bean/TSeckill.java | UTF-8 | 222 | 1.710938 | 2 | [
"Apache-2.0"
] | permissive | package com.admindemo.chapter01_seckill.bean;
import lombok.Getter;
import lombok.Setter;
@Getter@Setter
public class TSeckill {
private int id;
private String sku;
private int num;
private int price;
}
| true |
2162b5d1aa43711b37c2655ad00896f03274ab7d | Java | pradeeppadmarajaiah/designPatterns | /src/com/bitiknow/dp/creational/singleton/FinalSingleTon.java | UTF-8 | 527 | 2.65625 | 3 | [] | no_license | package com.bitiknow.dp.creational.singleton;
public class FinalSingleTon {
private static final long serialVersionUID = 1L;
private FinalSingleTon() {
// private constructor
}
private static class FinalSingleTonHolder {
public static final FinalSingleTon INSTANCE = new FinalSi... | true |
53a2a62153e4a6b4e3154dce2d14b9da694ae96c | Java | JosephAlemu/BBVABANK | /app/src/main/java/com/batchmates/android/bbvabacksearcher/view/secondactivity/MapsActivity.java | UTF-8 | 7,369 | 1.875 | 2 | [] | no_license | package com.batchmates.android.bbvabacksearcher.view.secondactivity;
import android.Manifest;
import android.content.Intent;
import android.content.pm.PackageManager;
import android.location.Location;
import android.location.LocationListener;
import android.os.Build;
import android.support.v4.app.ActivityCompat;
impor... | true |
9df9c4594d10fb898ad8cf6ea914eb9ffc0fd85f | Java | Kerim5858/GMI | /src/test/java/gmibank/pages/US_04_Page.java | UTF-8 | 861 | 1.875 | 2 | [] | no_license | package gmibank.pages;
import gmibank.utilities.Driver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.FindBy;
import org.openqa.selenium.support.PageFactory;
public class US_04_Page {
public US_04_Page() {
PageFactory.initElements(Driver.getDriver(),this);
}
@FindBy(xp... | true |
9b16b72b8f8d88eac010e24a586f927bda7e5696 | Java | marcellinamichie291/betex-dao | /src/main/java/com/vareger/servicies/BotConfigService.java | UTF-8 | 420 | 2.03125 | 2 | [] | no_license | package com.vareger.servicies;
import com.vareger.models.BotConfig;
import com.vareger.models.Pair;
import java.util.Optional;
public interface BotConfigService extends Service<Integer, BotConfig> {
/**
* Find BotConfig by arg parameters
* pair
* liveSeconds
* openSeconds
* @return
... | true |
eab5a48816f8cf0bf38aa25d42313f35bdf8f215 | Java | haha007/kalthailand-api | /kalthailand-api-blacklist/src/main/java/th/co/krungthaiaxa/api/blacklist/filter/KalApiTokenFilter.java | UTF-8 | 5,275 | 2.0625 | 2 | [] | no_license | package th.co.krungthaiaxa.api.blacklist.filter;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.http.HttpEntity;
import org.springframework.http.HttpHeaders;
import org.springframework.http.ResponseEntity;
import org.spring... | true |
95356cfff6c4fded8e96b77df8ea67f291b3a82a | Java | meikaiss/framework | /libframework/src/main/java/com/android/framework/view/CircleLoadingView.java | UTF-8 | 6,598 | 2.296875 | 2 | [] | no_license | package com.android.framework.view;
import android.animation.ValueAnimator;
import android.content.Context;
import android.content.res.TypedArray;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.util.AttributeSet;
import android.util.Log;
import android.view... | true |
816593a2ec45dfbcb2bf696c9447d56ce7db082e | Java | dbs-leipzig/gradoop | /gradoop-common/src/test/java/org/gradoop/common/model/impl/pojo/EdgeTest.java | UTF-8 | 3,936 | 2.15625 | 2 | [
"Apache-2.0",
"BSD-3-Clause"
] | permissive | /*
* Copyright © 2014 - 2021 Leipzig University (Database Research Group)
*
* 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
*
* Unles... | true |
df9e7b08e6f4764464b13c5c256ea1b9e1dcd852 | Java | upennyayang/practice | /db/WebLogger.java | UTF-8 | 1,111 | 3.15625 | 3 | [] | no_license | package com.yavinci.companies.dropbox;
public class WebLogger {
int[] arr;
int size;
long lastHit = -1;
public WebLogger(int size) {
this.size = size;
this.arr = new int[size];
}
public void hit(long ts) {
int index = (int) ts % size;
if (ts - lastHit >= size) {
arr = new int[size];
}
if (ts ... | true |
ea60653e42cd839936a8c4ac0171b2db1296bce3 | Java | colinlibrary/ImageLoader | /library/src/main/java/com/colin/library/progress/OnProgressListener.java | UTF-8 | 235 | 2.03125 | 2 | [] | no_license | package com.colin.library.progress;
/**
*
*/
public interface OnProgressListener<T> {
void onProgress(boolean isComplete, int percentage, long bytesRead, long totalBytes);
void onComplete(T resource);
void onFailed();
}
| true |
9eb843cbef578ce95c3072e1fdbec48c434e49c5 | Java | sbzilla/mina-sshd | /sshd-fs/src/main/java/org/apache/sftp/protocol/packetdata/impl/DefaultRmDir.java | UTF-8 | 490 | 2.03125 | 2 | [
"Apache-2.0"
] | permissive | package org.apache.sftp.protocol.packetdata.impl;
import org.apache.sftp.protocol.PacketType;
import org.apache.sftp.protocol.packetdata.RmDir;
import org.apache.sftp.protocol.packetdata.Status;
public class DefaultRmDir extends AbstractPath<RmDir> implements RmDir {
@Override
public Class<Status> exp... | true |
fc082aab3e74ad21b3290738ed441e3c4b9b8659 | Java | virtualcell/vcell | /vcell-core/src/main/java/org/vcell/pathway/kinetics/SBPAXHMMRevLawBuilder.java | UTF-8 | 4,634 | 1.929688 | 2 | [
"MIT"
] | permissive | /*
* Copyright (C) 1999-2011 University of Connecticut Health Center
*
* Licensed under the MIT License (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.opensource.org/licenses/mit-license.php
*/
package org... | true |
70a242486dce14a48150bd0d30d9c2d8c50ea9de | Java | fsfrlnc/ws-archivo-bin | /src/main/java/prueba/exception/NoEncontradoException.java | UTF-8 | 237 | 2.203125 | 2 | [] | no_license | package prueba.exception;
/**
* Para avisar que registro no se encontró.
*
* @author francisco
*
*/
public class NoEncontradoException extends Exception
{
public NoEncontradoException(String message)
{
super(message);
}
}
| true |
e0bd104c66b2cb33878304ceac923d947be5e2c1 | Java | freemed/openclinicga | /src/be/openclinic/statistics/chin/DiagnosisTrend.java | UTF-8 | 1,834 | 2.59375 | 3 | [] | no_license | package be.openclinic.statistics.chin;
import org.dom4j.Element;
import java.util.Vector;
import java.util.Iterator;
/**
* User: Frank Verbeke
* Date: 30-jul-2007
* Time: 8:18:40
*/
public class DiagnosisTrend extends Indicator{
private int duration;
private String codetype;
private String code;
... | true |
8a71d292a44444d2cec99250f4576f19502c0cab | Java | stormboy/Meemplex | /internet-gwt/source/org/meemplex/internet/gwt/client/binding/InOutBinding.java | UTF-8 | 1,641 | 2.59375 | 3 | [] | no_license | package org.meemplex.internet.gwt.client.binding;
import org.meemplex.internet.gwt.client.InboundBinding;
import org.meemplex.internet.gwt.client.OutboundBinding;
import org.meemplex.internet.gwt.shared.BindingFactory;
import org.meemplex.internet.gwt.shared.FacetReference;
public abstract class InOutBinding {
/**... | true |
f41e71ba2d5a7e57997e49430297110c1d119615 | Java | ChangHoSeok/courageTech | /src/courage-tech/src/main/java/kr/pe/courage/tech/uss/info/todo/service/TodoGroupVO.java | UTF-8 | 2,253 | 1.867188 | 2 | [
"Apache-2.0"
] | permissive | package kr.pe.courage.tech.uss.info.todo.service;
import org.codehaus.jackson.annotate.JsonIgnore;
import kr.pe.courage.common.annotation.KeepCondition;
import kr.pe.courage.common.core.CommonDefaultVO;
/**
* <pre>
* kr.pe.courage.tech.uss.info.todo.service
* TodoGroupVO.java
* </pre>
*
* @Author : Seok Chang ... | true |
66351966b77a68a1956bb519d84f025d5708aa3a | Java | moink-net/dtd-parser | /src/main/java/de/tudarmstadt/ito/xmldbms/tools/GeneratePropFile.java | UTF-8 | 2,671 | 3.0625 | 3 | [] | no_license | // No copyright, no warranty; use as you will.
// Written by Adam Flinton and Ronald Bourret, 2001
// Version 1.1
// Changes from version 1.01: New in 1.1
package de.tudarmstadt.ito.xmldbms.tools;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.util.Propert... | true |