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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
da28726b468ace5c3145d02b050039c184edc90a | Java | heuristicus/nxt | /src/search/SearchNode.java | UTF-8 | 224 | 1.664063 | 2 | [] | no_license | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package search;
/**
*
* @author Jeremiah Via
*/
public interface SearchNode
{
public boolean equals(GridPoint point);
}
| true |
4ec8649792eb87b23191ecdd58b462cf8f3af715 | Java | EngrRubel/iCare | /app/src/main/java/com/jkkniugmail/rubel/icare/db/DatabaseManager.java | UTF-8 | 551 | 2.265625 | 2 | [] | no_license | package com.jkkniugmail.rubel.icare.db;
import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
/**
* Created by islan on 2/19/2017.
*/
public class DatabaseManager {
private DatabaseHelper helper;
private SQLiteDatabase database;
public DatabaseManager(Context context) {
... | true |
58354462d5b41e07645140951f44b2f93e02c7ca | Java | patrickHub/Quick-Documents | /QuickDocumentsDam/src/main/java/ch/cloud/quickdocument/service/dam/model/Dtos/ImageDTO.java | UTF-8 | 589 | 1.953125 | 2 | [] | no_license | package ch.cloud.quickdocument.service.dam.model.Dtos;
/**
*
* @Author <a href="pDjomo@hamilton-medical.com">Patrick Djomo</a>
*
*/
public class ImageDTO {
private int id;
private String uploadOn;
private String imgPath;
public int getId() {
return id;
}
public void setId(int id) {
t... | true |
4a85b668568dfd026bd750c6b9d1b87100686866 | Java | miaoihan/AwsomeJava | /collection/LinkListTest1.java | UTF-8 | 551 | 2.734375 | 3 | [] | no_license | package collection;
import pojo.Person;
/**
* time: 16-5-12.
* author: han
*/
public class LinkListTest1 {
public static void main(String[] args) {
Person p1 = new Person("han",1);
Person p2 = new Person("zh",2);
Person p3 = new Person("阿龙",3);
Person p4 = new Person("阿辉",4);
... | true |
9b0395e388c09ab4aa180918fb0f6ad4c4538492 | Java | maxymilianz/CS-at-University-of-Wroclaw | /Object-oriented software design/Solutions/3/2/src/com/company/OldReportPrinter.java | UTF-8 | 361 | 2.6875 | 3 | [] | no_license | package com.company;
public class OldReportPrinter {
private String data;
public OldReportPrinter(String data) {
this.data = data;
}
public void formatDocument() {
// some implementation
}
public void printReport() {
System.out.println(data);
}
public String ... | true |
a7d71743bfabe68eb18e5c688b79d0f549bae718 | Java | mohsenuss91/KGBANDROID | /src/com/appyet/manager/bv.java | UTF-8 | 1,215 | 1.554688 | 2 | [] | no_license | // Decompiled by Jad v1.5.8e. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.geocities.com/kpdus/jad.html
// Decompiler options: braces fieldsfirst space lnc
package com.appyet.manager;
import com.appyet.context.ApplicationContext;
import com.appyet.d.d;
import com.appyet.f.a;
// Referenced classes o... | true |
7eb5da1c031bfaccb03c02bd34534b3b65bcdcbc | Java | YeChenyu/HelloWorld | /HelloActivity/src/com/felipecsl/asymmetricgridview/RowItem.java | GB18030 | 464 | 2.734375 | 3 | [] | no_license | package com.felipecsl.asymmetricgridview;
final class RowItem {
//ʵΪAsymmetricItem
private final AsymmetricItemDao item;
//
private final int index;
/**
* AsymmetricItemзװ
* @param index
* @param item ʵΪAsymmetricItem
*/
RowItem(int index, AsymmetricItemDao item) {
this.item = item;
this.index = i... | true |
f114794d9a7853aa369b51f7e5be822de32a5476 | Java | jwiszowata/code_reaper | /code/my-app/functions/3/isNewWorldLuxuryType_GoodsType.java | UTF-8 | 104 | 2.15625 | 2 | [] | no_license | public boolean isNewWorldLuxuryType() {
return madeFrom != null && madeFrom.isNewWorldGoodsType();
} | true |
641a75ff4249350b8896ab6f4114ef738a011c47 | Java | AsiaMielczarek/JUnitTest | /src/main/java/workshop/test/exercises/NotString.java | UTF-8 | 209 | 2.5 | 2 | [] | no_license | package workshop.test.exercises;
public class NotString {
public String notString(String word){
if(word.contains("not")){
return word;
}
return "not " + word;
}
}
| true |
baab28ace6bafa051bdf169330bd0fac835328a4 | Java | exxcellent/swt2-bsa-backend | /bogenliga/bogenliga-application/src/main/java/de/bogenliga/application/services/v1/wettkampf/mapper/WettkampfDTOMapper.java | UTF-8 | 3,682 | 2.3125 | 2 | [
"MIT"
] | permissive | package de.bogenliga.application.services.v1.wettkampf.mapper;
import java.sql.Date;
import java.util.function.Function;
import de.bogenliga.application.business.wettkampf.api.types.WettkampfDO;
import de.bogenliga.application.common.service.mapping.DataTransferObjectMapper;
import de.bogenliga.application.services.v1.... | true |
0c05d752d647f3aea5d5d469bb5d2f224de5e2d4 | Java | neumotngayem/AilatrieuphuNew | /app/src/main/java/com/example/administrator/trieuphu/ScoreActivity.java | UTF-8 | 1,243 | 2.328125 | 2 | [] | no_license | package com.example.administrator.trieuphu;
import android.app.Activity;
import android.graphics.Typeface;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.widget.ListView;
import android.widget.TextView;
import java.util.ArrayList;
import java.util.Collection;
import java.uti... | true |
c7815d9758037f16b224a452c8e4fd7b012178f5 | Java | joshuadavis/yajul | /yajul-micro/src/main/java/org/yajul/micro/ModuleList.java | UTF-8 | 2,681 | 2.953125 | 3 | [] | no_license | package org.yajul.micro;
import com.google.inject.Guice;
import com.google.inject.Injector;
import com.google.inject.Module;
import com.google.inject.AbstractModule;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.util.ArrayList;
import java.util.List;
/**
* Helps make a list of modules to boot... | true |
2dc73e0a48c8744f9edb1ebd36ed051f0f065770 | Java | emcaste93/Tripscape | /app/src/main/java/com/example/tripscape/data/TripescapeFirestore.java | UTF-8 | 2,845 | 2.546875 | 3 | [] | no_license | package com.example.tripscape.data;
import android.util.Log;
import com.example.tripscape.model.Attraction;
import com.example.tripscape.model.Trip;
import com.example.tripscape.model.TripUser;
import com.google.firebase.firestore.CollectionReference;
import com.google.firebase.firestore.FirebaseFirestore;
public cl... | true |
84dc566451ff55a67a078b71cdd7ea421e3e9d7d | Java | AlexHajek93/Workspace | /ERS_Web/src/com/revature/servlet/ServletHelper.java | UTF-8 | 5,198 | 2.234375 | 2 | [] | no_license | package com.revature.servlet;
import java.io.IOException;
import java.sql.Date;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import ers.beans.ErsReimbursement;
import ers.beans.ErsRole;
impor... | true |
533801c8b7a0956b018fa9b2e5ec08bb08facd1e | Java | codimiracle/huidu-backend | /src/main/java/com/codimiracle/application/platform/huidu/web/api/expose/ApiCategoryController.java | UTF-8 | 4,103 | 2.15625 | 2 | [] | no_license | package com.codimiracle.application.platform.huidu.web.api.expose;
import com.codimiracle.application.platform.huidu.contract.*;
import com.codimiracle.application.platform.huidu.entity.vo.BookVO;
import com.codimiracle.application.platform.huidu.entity.vo.CategoryVO;
import com.codimiracle.application.platform.huidu.... | true |
b5ddceb36eba65b055626b32dd938479db51c862 | Java | AbrorHoshimov/SpringModul2les1task1 | /src/main/java/com/example/lesson1task1/payload/WorkerDto.java | UTF-8 | 270 | 1.664063 | 2 | [] | no_license | package com.example.lesson1task1.payload;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
@AllArgsConstructor
@NoArgsConstructor
@Data
public class WorkerDto {
private String name,street,home;
private int departmentId;
}
| true |
1f72a99254b4e6143b010e9be592784217d571b7 | Java | itcloudy/micro | /micro-common/src/main/java/com/hechihan/micro/common/util/jwt/JwtHelper.java | UTF-8 | 2,158 | 2.53125 | 3 | [] | no_license | /**
* @author: cloudy Date: 2018/1/30 Time: 16:24
* @email: 272685110@qq.com
* @description:
* @project: micro
*/
package com.hechihan.micro.common.util.jwt;
import com.hechihan.micro.common.constants.CommonConstants;
import com.hechihan.micro.common.util.KeyHelper;
import com.hechihan.micro.common.util.StringH... | true |
b12b3b14acbd07e0b15a4ca79d357fd06d0e6301 | Java | thbdy/SG | /app/src/main/java/com/zhangf/unnamed/App.java | UTF-8 | 3,528 | 2.375 | 2 | [] | no_license | package com.zhangf.unnamed;
import android.app.Application;
import android.content.Context;
import android.support.annotation.NonNull;
import com.google.gson.Gson;
import com.scwang.smartrefresh.layout.SmartRefreshLayout;
import com.scwang.smartrefresh.layout.api.DefaultRefreshFooterCreator;
import com.scwang.smartre... | true |
715d006ad52d63008ff8366ef6d9a13c6ee9f2c5 | Java | meysamaghighi/Kattis | /Catalan/j.java | UTF-8 | 607 | 3.015625 | 3 | [] | no_license | import java.math.BigInteger;
import java.util.Scanner;
public class j {
public static BigInteger[] cat;
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
int q,n;
q = in.nextInt();
cat = new BigInteger[5010];
cat[0] = BigInteger.ONE;
cat[1] = BigInteger.ONE;
while (q > 0... | true |
f710aebddb400a744278b9176303348760794551 | Java | oranshiner/oran1 | /app/src/main/java/com/example/oran/MapProject/activities/SecondActivity.java | UTF-8 | 926 | 2.046875 | 2 | [] | no_license | package com.example.oran.MapProject.activities;
import android.support.v4.app.FragmentActivity;
import android.os.Bundle;
import com.example.oran.MapProject.R;
import com.google.android.gms.maps.SupportMapFragment;
import com.google.android.gms.maps.model.LatLng;
public class SecondActivity extends FragmentActivity ... | true |
a6702af84c7ceb4aef64d1ccbb41e6f6bc88bc47 | Java | vasudhareddy/ebi | /src/main/java/com/embl/assignment/controllers/DateController.java | UTF-8 | 726 | 2.40625 | 2 | [] | no_license | package com.embl.assignment.controllers;
import com.embl.assignment.model.*;
import org.springframework.beans.factory.annotation.*;
import org.springframework.http.*;
import org.springframework.web.bind.annotation.*;
import java.time.*;
import java.time.format.*;
@RestController
public class DateController {
@V... | true |
6e7091b8a31da398d5cec054a28fe072845e01c8 | Java | dinhphuong99/BtClassromModule4 | /bank_manager/src/main/java/group/service/deposit/DepositServiceImpl.java | UTF-8 | 915 | 2.21875 | 2 | [] | no_license | package group.service.deposit;
import group.model.Customer;
import group.model.Deposit;
import group.repository.ICustomerRepository;
import group.repository.IDepositRepository;
import org.springframework.beans.factory.annotation.Autowired;
import java.util.List;
import java.util.Optional;
public class DepositService... | true |
a66b2acf796745faa01c1ec0498c8f175265b52a | Java | cristoprogramador/PRO | /pro.07Arrays/src/_03Ejercicios/_09TocayosConArrayLis.java | UTF-8 | 740 | 3.734375 | 4 | [] | no_license | package _03Ejercicios;
import java.util.Arrays;
import java.util.List;
public class _09TocayosConArrayLis {
public static void main(String[] args) {
String[] grupo1 = {"Bartolo", "David", "Esteban", "German", "Javi"};
String[] grupo2 = {"Ana", "Bartolo", "Carlos", "David", "Esteban", "Fernando"};
List<Stri... | true |
ef0e5127370e94605b7dea5194676dd6ab29868f | Java | CamelBell007/interactiveAd | /suspendinter/src/main/java/com/interactive/suspend/ad/html/load/AdListLoadTask.java | UTF-8 | 8,581 | 1.859375 | 2 | [] | no_license | package com.interactive.suspend.ad.html.load;
import android.content.Context;
import android.content.SharedPreferences;
import android.os.AsyncTask;
import android.text.TextUtils;
import android.util.Log;
import com.interactive.suspend.ad.constant.Constants;
import com.interactive.suspend.ad.db.AdInfo;
import com.int... | true |
89f613506b83f3c44c225729b7290375964d3d2f | Java | msgpo/mantissa | /src/test/java/org/spaceroots/mantissa/utilities/MappableScalarTest.java | UTF-8 | 1,695 | 2.640625 | 3 | [] | no_license | package org.spaceroots.mantissa.utilities;
import junit.framework.*;
public class MappableScalarTest
extends TestCase {
public MappableScalarTest(String name) {
super(name);
mapper = null;
scalar1 = null;
scalar2 = null;
scalar3 = null;
}
public void testDimensionCheck() {
assertTru... | true |
4dd25e43e08d0764738f6037aa06d79f91673a8e | Java | tasleemarshu/Arshiya_Tasleem_845007 | /src/test/java/com/Pages/Loginpage.java | UTF-8 | 1,927 | 2.609375 | 3 | [] | no_license | package com.Pages;
import java.io.IOException;
import java.util.concurrent.TimeUnit;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.chrome.ChromeDriver;
import org.openqa.selenium.firefox.FirefoxDriver;
import ExcelUtility.ExcelP... | true |
4c6fd0c473b452981ad4385a7ff7402286dec1dc | Java | singledemon/cloud | /platform-common/platform-common-core/src/main/java/com/alin/common/core/subjectobserver/SubjectObserverStartHandler.java | UTF-8 | 2,198 | 2.453125 | 2 | [] | no_license | package com.alin.common.core.subjectobserver;
import com.alin.common.core.subjectobserver.annotation.SubjectObserver;
import com.alin.common.core.subjectobserver.service.IObserver;
import com.alin.common.core.subjectobserver.service.ISubject;
import com.alin.common.core.util.SpringContextHolder;
import lombok.extern.j... | true |
aee94e90b271a66a13bb58f06eb92c23128aa7de | Java | junit/GenesisServer | /Code_Java/test/src/com/genesis/test/dataserver/sqlupdate/UpdateSqlTest.java | UTF-8 | 3,817 | 2.671875 | 3 | [] | no_license | package com.genesis.test.dataserver.sqlupdate;
import com.google.common.collect.Lists;
import com.google.common.collect.Sets;
import com.genesis.core.orm.hibernate.HibernateDBService;
import com.genesis.core.reflect.PrivateUtil;
import com.genesis.dataserver.sqlupdate.SqlUpdate;
import org.junit.Test;
im... | true |
37153c407124aa94bd67ef223f88889059ad7f4d | Java | MEJIOMAH17/rocketbank-api | /reverse/Rocketbank_All_3.12.4_source_from_JADX/sources/ru/rocketbank/r2d2/shop/cart/ShopCartActivity.java | UTF-8 | 9,325 | 1.773438 | 2 | [] | no_license | package ru.rocketbank.r2d2.shop.cart;
import android.content.Context;
import android.content.Intent;
import android.databinding.DataBindingUtil;
import android.os.Bundle;
import android.support.v7.app.ActionBar;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import... | true |
4865a4fc73c07897e204908dab0b5668ac858c3a | Java | darshankumar/Modern-Java-Example | /JavaEight_Example/src/com/learn/javaeight/stream/BoxingUnboxingStreamExample.java | UTF-8 | 997 | 3.90625 | 4 | [] | no_license | package com.learn.javaeight.stream;
import java.util.List;
import java.util.Optional;
import java.util.stream.Collectors;
import java.util.stream.IntStream;
public class BoxingUnboxingStreamExample {
public static void main(String[] args) {
System.out.println("###################################### ... | true |
ba379b38d34e267ec596b4c1aeb5900b19ed85ab | Java | waleedsalah088/Udacity-Google-India-Challenge-Scholarship-Projects-Phase-2 | /AapnuAmdavad/app/src/main/java/com/wordpress/piedcipher/aapnuamdavad/activities/RestaurantActivity.java | UTF-8 | 3,497 | 2.375 | 2 | [] | no_license | package com.wordpress.piedcipher.aapnuamdavad.activities;
import android.content.Intent;
import android.graphics.Color;
import android.net.Uri;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.support.v7.widget.Toolbar;
import android.view.Menu;
import android.view.MenuItem;
im... | true |
673942adef92f7d2b2b90892990acaaad6d3ef54 | Java | Amigo-sa/HandsFree | /App/src/main/java/by/citech/handsfree/network/control/IConnCtrl.java | UTF-8 | 245 | 1.742188 | 2 | [] | no_license | package by.citech.handsfree.network.control;
import by.citech.handsfree.exchange.IExchangeCtrl;
public interface IConnCtrl extends IExchangeCtrl {
void closeConnection();
void closeConnectionForce();
boolean isAliveConnection();
}
| true |
aea0375bf0fd78e38558f5075628ea355a96fe07 | Java | namget/namgetfingerprint | /app/src/main/java/com/tistory/namget/fingerprint/Util.java | UTF-8 | 859 | 2.28125 | 2 | [] | no_license | package com.tistory.namget.fingerprint;
import android.content.Context;
import android.support.v4.hardware.fingerprint.FingerprintManagerCompat;
/**
* Created by JaeWooLee on 2017-11-10.
*/
public class Util {
public static boolean isFingerprintAuthAvailable(Context context) {
FingerprintManagerCompat... | true |
5ad853f157b411b56d59d5e25dd2f9dc2ef2f55e | Java | P79N6A/icse_20_user_study | /methods/Method_23404.java | UTF-8 | 167 | 2.8125 | 3 | [] | no_license | /**
* Set the high bits of all pixels to opaque.
*/
protected void opaque(){
for (int i=0; i < pixels.length; i++) {
pixels[i]=0xFF000000 | pixels[i];
}
}
| true |
30641f261c20df02bf8558e7b9b4c4de5d970d12 | Java | alguojian/HttpUtils | /commonsdk/src/main/java/com/shuwtech/commonsdk/http/adapter/BaseResponseObservable.java | UTF-8 | 3,704 | 2.0625 | 2 | [] | no_license | /*
* Copyright (C) 2016 Jake Wharton
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | true |
f83a7ddb99134abbbc69bff55986e503ba3a8b27 | Java | RogerVFbr/microservices-poc-atividades | /src/main/java/com/soundlab/atividades/external/AbstractExternalSnsService.java | UTF-8 | 2,291 | 2.5 | 2 | [] | no_license | package com.soundlab.atividades.external;
import com.amazonaws.services.sns.AmazonSNS;
import com.amazonaws.services.sns.model.MessageAttributeValue;
import com.amazonaws.services.sns.model.PublishRequest;
import com.amazonaws.services.sns.model.PublishResult;
import com.fasterxml.jackson.core.JsonProcessingException;... | true |
4a6117f2a00d72d586412d2207e3a5ad4661bcda | Java | Drageaux/ProjectOrwell | /app/service/GithubServicePlugin.java | UTF-8 | 5,006 | 2.25 | 2 | [
"Apache-2.0"
] | permissive | package service;
import com.fasterxml.jackson.databind.JsonNode;
import com.feth.play.module.pa.providers.oauth2.OAuth2AuthInfo;
import com.feth.play.module.pa.providers.oauth2.OAuth2AuthProvider;
import com.google.inject.Inject;
import play.Application;
import play.Configuration;
import play.Plugin;
import play.libs.... | true |
5bb36a6d44c1ebf96f1e4035c87f651539213fd0 | Java | saliormoon/arangodb-java-driver | /src/test/java/com/arangodb/example/graph/UpdateAndReplaceVertexExample.java | UTF-8 | 4,105 | 2.75 | 3 | [
"Apache-2.0"
] | permissive | package com.arangodb.example.graph;
import org.junit.After;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
import com.arangodb.ArangoException;
import com.arangodb.entity.marker.VertexEntity;
/**
* Update and replace example
*
* @author a-brandt
*
*/
public class UpdateAndReplaceVerte... | true |
905f22c4117f54e9f30fed764a88663d493cfcc4 | Java | EgardoPort/TiendaOnline | /src/java/Controller/LoginFilter.java | UTF-8 | 2,165 | 2.703125 | 3 | [] | no_license | /*package Controller;
import java.io.IOException;
import javax.servlet.Filter;
import javax.servlet.FilterChain;
import javax.servlet.FilterConfig;
import javax.servlet.ServletException;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;
import javax.servlet.annotation.WebFilter;
import javax.s... | true |
d6a42b8f0760a59e3b53ef2d804fed29a3892a9f | Java | Oleg-Stepanenko-owo/GANET_SERVICE | /app/src/main/java/com/ganet/catfish/GANET/Data/FolderData.java | UTF-8 | 1,566 | 2.1875 | 2 | [] | no_license | package com.ganet.catfish.GANET.Data;
import java.util.Vector;
/**
* Created by oleg on 28.07.2016.
*/
/*
1C 684B3102 0376 0F 01 0102 03 00 440065007000650063006800650020 59
PACK | ID | |Folder| | pack/ALL | | FOLDER NAME
|number|
... | true |
7105099a02abcf86430be36d79e16595b086cc44 | Java | igordeuzami/ArqSoft | /pipoca/src/br/usjt/arqsw18/pipoca/model/service/FilmeService.java | UTF-8 | 2,315 | 2.25 | 2 | [] | no_license | package br.usjt.arqsw18.pipoca.model.service;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import javax.transaction.Transactional;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.web.client.Rest... | true |
0ffea7f3917a09ec68d1513fd0f36b1c195aaf8c | Java | yongqiang001/gmallparent | /service/service-cart/src/main/java/com/atguigu/gmall/cart/service/impl/CartServiceImpl.java | UTF-8 | 15,451 | 2.390625 | 2 | [] | no_license | package com.atguigu.gmall.cart.service.impl;
import com.atguigu.gmall.cart.mapper.CartInfoMapper;
import com.atguigu.gmall.cart.service.CartAsyncService;
import com.atguigu.gmall.cart.service.CartService;
import com.atguigu.gmall.common.constant.RedisConst;
import com.atguigu.gmall.model.cart.CartInfo;
import com.atgu... | true |
56cbd9316d927728c31ea769aab9968ef57db6dc | Java | yangzpag/CodeReader | /cocoon/src/scratchpad/src/org/apache/cocoon/acting/ModularDatabaseSelectAction.java | UTF-8 | 9,666 | 1.9375 | 2 | [] | no_license | /*****************************************************************************
* Copyright (C) The Apache Software Foundation. All rights reserved. *
* ------------------------------------------------------------------------- *
* This software is published under the terms of the Apache Software License *
* v... | true |
66076ebc5bb011bdd3b26ee1d541b180049e1e21 | Java | keithwars/FactoryPattern1 | /src/edu/ap/factorypattern1/CarFactory.java | UTF-8 | 275 | 2.5625 | 3 | [] | no_license | package edu.ap.factorypattern1;
import edu.ap.factorypattern1.Engine.GAS;
public abstract class CarFactory {
public Engine makeEngine() {
return new Engine(1600, 6, GAS.DIESEL);
}
public abstract Body createBody();
public abstract Interior createInterior();
}
| true |
0a72f2bd0770c8920f8711d6668034cb6e6fd619 | Java | mcanthony/voc | /python/common/org/python/exceptions/MemoryError.java | UTF-8 | 215 | 2.03125 | 2 | [
"BSD-3-Clause"
] | permissive | package org.python.exceptions;
public class MemoryError extends org.python.exceptions.Exception {
public MemoryError() {
super();
}
public MemoryError(String msg) {
super(msg);
}
}
| true |
15c6cb393878fcb5f4a9cfcbab71d0f9c212f67c | Java | pvdung/microservlet | /microservlet/src/test/java/AllTests.java | UTF-8 | 1,079 | 1.585938 | 2 | [] | no_license | /*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
*... | true |
9f279162a3e06eb0ca56b0c6e243491a3f0c8ae2 | Java | freakcsh/HttpManage | /app/src/main/java/com/freak/httpmanage/util/picture/PictureSelectorUtil.java | UTF-8 | 52,730 | 1.867188 | 2 | [] | no_license | package com.freak.httpmanage.util.picture;
import android.app.Activity;
import android.content.Context;
import android.content.pm.ActivityInfo;
import android.graphics.Color;
import androidx.core.content.ContextCompat;
import com.freak.httpmanage.R;
import com.luck.picture.lib.PictureSelector;
import com.luck.pictur... | true |
8b35544ce56cc35edb97c869304c5ac888b828b8 | Java | ldhisgood/graduation | /src/com/qykh/core/dao/impl/SupplierDao.java | UTF-8 | 393 | 1.921875 | 2 | [] | no_license | package com.qykh.core.dao.impl;
import org.springframework.stereotype.Repository;
import com.qykh.core.dao.ISupplierDao;
import com.qykh.core.domain.TSupplier;
import com.qykh.frame.dao.HibernateBaseDao;
@Repository
public class SupplierDao extends HibernateBaseDao<TSupplier> implements ISupplierDao{
@Override
pu... | true |
55a867966236790418e927e533b353bb8ae842f9 | Java | antomy-gc/art-java | /application-configurator/src/main/java/ru/art/configurator/service/ConfiguratorService.java | UTF-8 | 3,268 | 1.773438 | 2 | [
"Apache-2.0"
] | permissive | /*
* ART Java
*
* Copyright 2019 ART
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agr... | true |
62873b495be58ae6e23062287ac07cd6150036eb | Java | amanishr/Stock-Management-Back-End | /stock_management/src/com/walmart/dao/EmployeeDaoInterface.java | UTF-8 | 412 | 2.109375 | 2 | [] | no_license | package com.walmart.dao;
import java.util.List;
import com.walmart.exceptions.StockException;
import com.walmart.pojo.Employee;
public interface EmployeeDaoInterface {
public int addEmployee(Employee e);
public int updateEmployee(double salary, String active, int eid);
public int deleteEmployee(int eid);
public... | true |
22a1823b8052aa90cee2e85f103ddb795c22c09d | Java | gaurav121/RedisSpringBoot | /demo-service/src/main/java/com/demo/configuration/GenericExceptionHandler.java | UTF-8 | 1,512 | 2.28125 | 2 | [] | no_license | package com.demo.configuration;
import com.demo.exception.StudentNotFoundException;
import com.demo.object.response.BaseResponse;
import org.slf4j.MDC;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.ControllerAdvice;
import or... | true |
466014ed96f02da704e8261d1939a489c1dc80a4 | Java | testoftiramisu/SpringCoreCourse | /src/test/java/com/epam/spring/hometask/service/booking/CinemaBookingServiceTestConfig.java | UTF-8 | 1,295 | 1.835938 | 2 | [
"MIT"
] | permissive | package com.epam.spring.hometask.service.booking;
import com.epam.spring.hometask.dao.ticket.CinemaTicketDaoTestConfig;
import com.epam.spring.hometask.dao.ticket.TicketDao;
import com.epam.spring.hometask.domain.auditorium.AuditoriumsConfig;
import org.springframework.beans.factory.annotation.Autowired;
import org.sp... | true |
eea79fcad954c3e657116bda6d963361b98446da | Java | Alex2Apple/wsoFrame | /registry/src/main/java/com/wang/web/config/WebConfig.java | UTF-8 | 1,263 | 2.140625 | 2 | [] | no_license | package com.wang.web.config;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.ViewResolver;
import org.springframework.web.servlet.config.annotation.Defaul... | true |
8f517af4367e0545eddd2785da518be74ee36b36 | Java | treCoops/Gurind | /app/src/main/java/com/dtinnovation/gurind/Activity_Recently_Completed.java | UTF-8 | 16,956 | 1.859375 | 2 | [] | no_license | package com.dtinnovation.gurind;
import androidx.annotation.Nullable;
import androidx.core.content.ContextCompat;
import androidx.fragment.app.Fragment;
import android.app.ProgressDialog;
import android.content.Context;
import android.graphics.Color;
import android.net.ConnectivityManager;
import android.net.NetworkI... | true |
0b097f048cf2ef0618142b3622f23f0c053d90b8 | Java | AcepcsMa/Java-offer | /src/chapter7/SerializeBT.java | UTF-8 | 2,047 | 3.90625 | 4 | [] | no_license | package chapter7;
import java.util.LinkedList;
import java.util.Queue;
public class SerializeBT {
public static void main(String[] args) {
TreeNode node1 = new TreeNode(1);
TreeNode node2 = new TreeNode(2);
TreeNode node3 = new TreeNode(3);
TreeNode node4 = new TreeNode(4);
TreeNode node5 = new TreeNode(5... | true |
b8861df804db8ec34d2ca641ec74b1ad33e731d9 | Java | istyle1105/DA106G6 | /src/com/logcom/model/Log_comDAO_interface.java | UTF-8 | 454 | 1.828125 | 2 | [] | no_license | package com.logcom.model;
import java.util.List;
public interface Log_comDAO_interface {
public void insert(Log_comVO log_comvo);
public void update(Log_comVO log_comvo);
public void delete(String com_id);
public Log_comVO findByPrimaryKey(String com_id);
public List<Log_comVO> getAll();
public List<Log_comVO> ... | true |
a2009407b51794561913b138fbea8f0b4cfa3f29 | Java | tiankong6622/weisky | /newframe/admin-template/src/main/java/org/itboys/admin/entity/AdminOrgCity.java | UTF-8 | 851 | 2.03125 | 2 | [] | no_license | package org.itboys.admin.entity;
import com.google.code.morphia.annotations.Entity;
/**
* 城市关联对象表
* @author huml
*
*/
@Entity(value="AdminOrgCity", noClassnameStored = true)
public class AdminOrgCity extends BaseAdminEntity{
private static final long serialVersionUID = -8569025903282005492L;
public st... | true |
2fc4936183f20ff60cbe1edbb43320b2b1664079 | Java | comelf/L3Cache | /src/main/java/org/l3cache/dao/PostManager.java | UTF-8 | 5,162 | 2.015625 | 2 | [] | no_license | package org.l3cache.dao;
import java.util.ArrayList;
import java.util.List;
import org.apache.ibatis.session.SqlSession;
import org.apache.mahout.cf.taste.common.TasteException;
import org.apache.mahout.cf.taste.recommender.RecommendedItem;
import org.apache.mahout.cf.taste.recommender.Recommender;
import org.l3cache... | true |
7e1c12aa8b13d57548103294be0b874f30a029f8 | Java | 13767004362/VolleyHelper | /volleyhelper/src/main/java/com/xingen/volleyhelper/hook/HookVolleyManager.java | UTF-8 | 2,512 | 2.265625 | 2 | [
"Apache-2.0"
] | permissive | package com.xingen.volleyhelper.hook;
import android.util.Log;
import java.lang.reflect.Field;
import java.lang.reflect.Proxy;
/**
* Author by {xinGen}
* Date on 2018/8/1 10:54
*/
public class HookVolleyManager {
private final String TAG=HookVolleyManager.class.getSimpleName();
public void init(Object re... | true |
a45bee0999f5e5573c32a1a3e53754f36926c5a5 | Java | L1anggez1fu/blogs | /src/main/java/com/lgzf/service/CommentService.java | UTF-8 | 308 | 1.65625 | 2 | [] | no_license | package com.lgzf.service;
import com.lgzf.pojo.Comment;
import java.util.List;
/**
* @auther lgzf
* @data 2020-03-05 - 15:20
**/
public interface CommentService {
List<Comment> listCommentByBlogId(Long blogId);
int saveComment(Comment comment);
Comment getParentCommentById(Long id);
}
| true |
cdc6b07a664ade383e623ac2de8fb16352e38ca2 | Java | MyPureCloud/platform-client-sdk-java | /build/src/main/java/com/mypurecloud/sdk/v2/model/BuScheduleListItem.java | UTF-8 | 7,677 | 1.765625 | 2 | [
"MIT"
] | permissive | package com.mypurecloud.sdk.v2.model;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import com.fasterxml.jackson.core.JsonParser;
import com.fasterxml.jackson.databind.DeserializationContext;
import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.... | true |
d2bb0bad951a21ab2ded5ef75189035710536b1b | Java | JeffWoo2019/aliyun-openapi-java-sdk | /aliyun-java-sdk-ecsops/src/main/java/com/aliyuncs/ecsops/transform/v20160401/OpsSlsDescribeDashBoardResponseUnmarshaller.java | UTF-8 | 2,612 | 1.796875 | 2 | [
"Apache-2.0"
] | permissive | /*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed u... | true |
f57bafc5ce8a0b245136fe97e722c50b08131efb | Java | josemiguesuarez/annotations-reader | /spooned/code/biblioteca/interfaz/PanelAcciones.java | UTF-8 | 12,769 | 2.453125 | 2 | [] | no_license |
package code.biblioteca.interfaz;
@code.annotation.MyAnnotation(myAttribute = "Class")
public class PanelAcciones extends javax.swing.JPanel implements java.awt.event.ActionListener , java.awt.event.MouseListener {
private static final long serialVersionUID = 1L;
private static final java.lang.String INSER... | true |
2454ea1fa1d1b5819610f04b919ab528618545ea | Java | RicardoBrancas/CRC_1 | /java/ApproximateNeighbourhoodFunctionStats.java | UTF-8 | 3,176 | 2.640625 | 3 | [] | no_license | /*-
* Copyright (c) 2013, Pedro Rijo
* Copyright (c) 2013, Alexandre P Francisco
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTW... | true |
be168a2757375d43c24f69ce098a933587c8fe4f | Java | rkalz/CS203 | /Lab13/CS203_Lab13/src/linkedlistiterator/Main.java | UTF-8 | 782 | 3.53125 | 4 | [] | no_license | package linkedlistiterator;
import java.util.LinkedList;
public class Main {
public static void main(String[] args){
MyLinkedList myNumbers = new MyLinkedList();
ListIterator it = myNumbers.listIterator();
for(int i = 0; i < 10; i++){
it.add(new Integer(i));
}
it = myNumbers.listIterator();
it.next()... | true |
65a1e98a46c64649e264ffe2efa318ab64a12b31 | Java | QueesQuees/Project-Human-resources | /HumanResources/src/ICalculator.java | UTF-8 | 92 | 2.21875 | 2 | [] | no_license |
//trừu tương 100%.
public interface ICalculator {
double calculateSalary();
}
| true |
b8df00761c30f986f8332cf559177c3b8085c6fa | Java | rystrauss/algorithms-and-data-structures | /core/src/com/rystrauss/collections/Collection.java | UTF-8 | 3,806 | 3.8125 | 4 | [
"MIT"
] | permissive | package com.rystrauss.collections;
import java.util.Iterator;
/**
* A collection represents a group of objects, known as its elements. Some collections allow duplicate elements
* and others do not. Some are ordered and others unordered.
* <p>
* This interface is based on Java's Collection interface.
*
* @param ... | true |
35d3534376afac3b47f9600fa74011c1d8f2c098 | Java | sivajik/LeetCode | /src/leetcode/f7/medium/Prob167_TwoSum2InputArrayIsSorted.java | UTF-8 | 920 | 3.5 | 4 | [] | no_license | package leetcode.f7.medium;
import java.util.Arrays;
public class Prob167_TwoSum2InputArrayIsSorted {
public static void main(String[] args) {
System.out.println(Arrays.toString(twoSum(new int[] { 2, 7, 11, 15 }, 9)));
System.out.println(Arrays.toString(twoSum(new int[] { 5, 25, 75 }, 100)));
}
public static... | true |
641fda6abaec8e392d3be40ff0eff0f4344da00a | Java | MAQUANQUAN/prize | /ProtectAppDataWhenReset/PrizeFactoryDataProvider/src/com/android/factorydata/PhoneInfoHelper.java | UTF-8 | 3,483 | 2.390625 | 2 | [] | no_license | package com.android.factorydata;
import android.content.ContentValues;
import android.content.Context;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.util.Log;
public class PhoneInfoHelper extends SDSQLiteOpenHelper
{
private final static String DATABASE_NAME = "pri... | true |
796d49079a3d275c3a661529203bb639aec881c4 | Java | eetpang/JavaLearning | /04-springboot/liaosx-sell/src/main/java/cn/freesaber/sell/controller/WechatController.java | UTF-8 | 3,203 | 2.078125 | 2 | [] | no_license | package cn.freesaber.sell.controller;
import cn.freesaber.sell.config.ProjectUrlConfig;
import cn.freesaber.sell.enums.ResultEnum;
import cn.freesaber.sell.exception.SellException;
import me.chanjar.weixin.common.api.WxConsts;
import me.chanjar.weixin.common.error.WxErrorException;
import me.chanjar.weixin.mp.api.WxMp... | true |
9b5865f3b256649995a4487c77e092b24a629067 | Java | MightyBOBcnc/planet-generator | /ch.obermuhlner.planetgen/src/main/java/ch/obermuhlner/planetgen/planet/texture/awt/BufferedImageTextureWriter.java | UTF-8 | 966 | 3.078125 | 3 | [
"MIT"
] | permissive | package ch.obermuhlner.planetgen.planet.texture.awt;
import ch.obermuhlner.planetgen.math.Color;
import ch.obermuhlner.planetgen.planet.texture.TextureWriter;
import java.awt.image.BufferedImage;
public class BufferedImageTextureWriter implements TextureWriter<BufferedImage> {
private final BufferedImage image;... | true |
bb9d606cad034ab1e97218ffce15b956416da666 | Java | lanshifu/FFmpegDemo | /src/main/java/io/reactivex/internal/operators/observable/by.java | UTF-8 | 3,871 | 1.976563 | 2 | [] | no_license | package io.reactivex.internal.operators.observable;
import defpackage.wh;
import defpackage.xk;
import io.reactivex.disposables.b;
import io.reactivex.internal.disposables.DisposableHelper;
import io.reactivex.internal.disposables.EmptyDisposable;
import io.reactivex.k;
import io.reactivex.r;
import java.util.Iterator... | true |
7b6b6b3359128e62d04b46d495a5a1fef4db1fcc | Java | shoxrux-javaDev/app-secondWarehouseProject | /src/main/java/uz/spring/appanotherwarehouseproject/Dto/OutputDto.java | UTF-8 | 422 | 1.757813 | 2 | [] | no_license | package uz.spring.appanotherwarehouseproject.Dto;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.time.LocalDate;
@Data
@AllArgsConstructor
@NoArgsConstructor
public class OutputDto {
private LocalDate date;
private Integer warehouseId;
private Integer c... | true |
cfd536f31e2a1ca484c14acb0056ff632bc09228 | Java | icnNubby/PryanikiTest | /app/src/main/java/ru/nubby/pryanikitest/Injection.java | UTF-8 | 822 | 1.851563 | 2 | [] | no_license | package ru.nubby.pryanikitest;
import ru.nubby.pryanikitest.data.remote.RemoteApi;
import ru.nubby.pryanikitest.data.remote.RemoteRepository;
import ru.nubby.pryanikitest.data.Repository;
import ru.nubby.pryanikitest.data.test.TestRepository;
import ru.nubby.pryanikitest.util.BaseSchedulerProvider;
import ru.nubby.pry... | true |
dbfdc04c93d51b32a2d64ba63c0d2691c53e6f46 | Java | jewelcse/rabbitmq-saga-demo | /service-account/src/main/java/app/services/BudgetService.java | UTF-8 | 1,088 | 2.78125 | 3 | [] | no_license | package app.services;
import javax.security.auth.login.AccountNotFoundException;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import app.entities.Account;
import app.exceptions.InsufficientBudgetException;
import app.repositories.AccountRepository;
@S... | true |
4cd7a7fc5e1073f1029deec7e683f5f96166399a | Java | networker02/TaxiAppProject | /app/src/main/java/com/handycartaxi/taxiappproject/webserviceconection/Utilities.java | UTF-8 | 1,450 | 2.84375 | 3 | [] | no_license | package com.handycartaxi.taxiappproject.webserviceconection;
/**
* Created by Joan on 04-May-15.
*/
public class Utilities {
public static String combinePaths(String... paths)
{
String absolutePath = "";
for(String path : paths)
{
if (absolutePath.endsWith("/") && path.st... | true |
1282789f3ccc47db3d8774635b0ad847286203f6 | Java | ccyzml/WowGame | /app/src/main/java/com/nju/meanlay/wowgame/GameData/Ability/BaseAbility.java | UTF-8 | 152 | 1.664063 | 2 | [] | no_license | package com.nju.meanlay.wowgame.GameData.Ability;
import java.io.Serializable;
public abstract class BaseAbility implements Ability, Serializable {
}
| true |
a5d3fdd99260675417f3af1c629c0f7be43ef924 | Java | tbeckett1123/Learning | /College/mscc/java/Stnd.java | UTF-8 | 1,303 | 3.328125 | 3 | [] | no_license | import javax.swing.JOptionPane;
public class Stnd {
public static void out(String outMessage){
JOptionPane.showMessageDialog(null, outMessage, "standard output dialog box", JOptionPane.INFORMATION_MESSAGE);
}
public static String getStr(String outMessage) {
String temp;
for(;;)
{
temp = JOptionPane... | true |
5b81e1964ae442b41f6896f810b1df9120841de7 | Java | qqhappy/mesh-omc | /WEB/com.xinwei.minas.server/src/com/xinwei/minas/server/mcbts/facade/oamManage/McBtsOnlineTerminalListFacadeImpl.java | GB18030 | 1,169 | 2.03125 | 2 | [] | no_license | package com.xinwei.minas.server.mcbts.facade.oamManage;
import java.rmi.RemoteException;
import java.rmi.server.UnicastRemoteObject;
import java.util.List;
import com.xinwei.minas.mcbts.core.facade.oamManage.McBtsOnlineTerminalListFacade;
import com.xinwei.minas.mcbts.core.model.common.ActiveUserInfo;
import com.xinw... | true |
fc29adc86dd6a4b17697d9f7154277a4a7b3d7d8 | Java | flybo/mindeeper | /app/src/main/java/com/bob/flyboymvp/ui/fragment/ContactsFragment.java | UTF-8 | 2,811 | 2.03125 | 2 | [] | no_license | package com.bob.flyboymvp.ui.fragment;
import android.support.v4.app.Fragment;
import android.view.View;
import android.widget.LinearLayout;
import android.widget.TextView;
import com.bob.flyboymvp.R;
import com.bob.flyboymvp.ui.activity.MainActivity;
import com.bob.flyboymvp.ui.adapter.TabFragmentPagerAdapter;
impor... | true |
8425431315c8a41e906f7333fe64b1e7d0d9b3ea | Java | leelingco/opendental | /java/OpenDental/OneCalendarDay.java | UTF-8 | 5,002 | 2.6875 | 3 | [] | no_license | //
// Translated by CS2J (http://www.cs2j.com): 2/15/2016 8:00:27 PM
//
package OpenDental;
import OpenDental.OneCalendarDay;
/*
//horizontal lines:
for(int i=1;i<=RowCount;i++) {
g.DrawLine(LinePen,0,HeaderHeight+DayHeadHeight+RowHeight*i,Width,HeaderHeight+DayHeadHeight+RowHeight*i);
}
//vertical... | true |
1bef79218ad06efe0c3dda374cb605f5a9bfd482 | Java | Goldiriath/Goldiriath | /src/main/java/net/goldiriath/plugin/player/info/Info.java | UTF-8 | 264 | 1.75 | 2 | [] | no_license | package net.goldiriath.plugin.player.info;
import net.goldiriath.plugin.player.AbstractAttachement;
import net.goldiriath.plugin.player.PlayerData;
public class Info extends AbstractAttachement {
public Info(PlayerData data) {
super(data);
}
}
| true |
25d28b4b9095bc86652f54e8585e0c73f3b03536 | Java | zhongxingyu/Seer | /Diff-Raw-Data/33/33_831ef3e33bf40a9003b7bc855fe399c0e2135a7a/DrugListActivity/33_831ef3e33bf40a9003b7bc855fe399c0e2135a7a_DrugListActivity_t.java | UTF-8 | 18,134 | 1.578125 | 2 | [] | no_license | /**
* Copyright (C) 2011 Joseph Lehner <joseph.c.lehner@gmail.com>
*
* This file is part of RxDroid.
*
* RxDroid is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, ... | true |
83b2002395baa32a251d7c09258dc3539333a7b4 | Java | fllaryora/IUATesisMSDED | /Bootstrap/src/main/java/ar/com/cron/Bootstrap/OSHelper.java | UTF-8 | 2,969 | 2.90625 | 3 | [] | no_license | package ar.com.cron.Bootstrap;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;
import com.mongodb.DBObject;
import ar.com.cron.Bootstrap.constants.ProjectsFiels;
import ar.com.cron.Bootstrap.constants.ProjectsValues;
public class OS... | true |
7595da784f1b0a883d6002e26f06d28c6c347236 | Java | evikadar/Dog-shelter-back-end | /src/main/java/com/codecool/dogshelter/repository/ShelterRepository.java | UTF-8 | 699 | 2.109375 | 2 | [] | no_license | package com.codecool.dogshelter.repository;
import com.codecool.dogshelter.model.shelter.Shelter;
import com.codecool.dogshelter.model.shelter.ShelterDetails;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repo... | true |
a367294492bbc9f842b7375ec97c8b89415eb070 | Java | cgy529387306/Schedule | /app/src/main/java/com/android/mb/schedule/base/BaseMvpActivity.java | UTF-8 | 1,902 | 2.15625 | 2 | [] | no_license | package com.android.mb.schedule.base;
import android.content.DialogInterface;
import android.content.DialogInterface.OnKeyListener;
import android.os.Bundle;
import android.view.KeyEvent;
import com.android.mb.schedule.utils.Helper;
import com.android.mb.schedule.utils.ProgressDialogHelper;
import com.android.mb.sche... | true |
7cccdffbbf3d3c878e30fead576dd6fb8c0bcf85 | Java | sandeshds/VehicleSurvey | /src/main/java/com/sandesh/constants/TimeConstants.java | UTF-8 | 416 | 2.25 | 2 | [] | no_license | package com.sandesh.constants;
public class TimeConstants {
public static final int HOURS_IN_A_DAY = 24;
public static final int MINUTES_IN_HOUR = 60;
public static final int SECONDS_IN_A_MINUTE = 60;
public static final int MILLISECONDS_IN_A_SECOND = 1000;
public static final int MAX_MILLISECONDS_... | true |
d346ea1b39a1f689d7586256ee43a56dc39148a8 | Java | 791837060/java-sanguosha | /src/org/dizem/sanguosha/model/card/equipment/EquipmentCard.java | UTF-8 | 2,232 | 2.734375 | 3 | [] | no_license | package org.dizem.sanguosha.model.card.equipment;
import org.dizem.sanguosha.model.card.AbstractCard;
import org.dizem.sanguosha.model.card.ICard;
public class EquipmentCard extends AbstractCard {
public static final int TYPE_HORSE_CARD_MINUS = 3;
public static final int TYPE_HORSE_CARD_PLUS = 2;
p... | true |
eb7f4dd6020cd0cfae7d17490ea239ffb5be2879 | Java | parth12/ProgrammingClubDAIICT | /source/src/com/umeng/fb/audio/b.java | UTF-8 | 3,765 | 1.835938 | 2 | [] | no_license | // Decompiled by Jad v1.5.8e. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.geocities.com/kpdus/jad.html
// Decompiler options: braces fieldsfirst space lnc
package com.umeng.fb.audio;
import android.media.AudioRecord;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
... | true |
1f1b39a95c48baef31f0f978a0daa06875ba050f | Java | SuperZle/- | /LX713/src/XianCengTest.java | UTF-8 | 685 | 2.390625 | 2 | [] | no_license | import DanLi.EHan;
import DanLi.LanHan;
/**
* current user 张++
* 2020/7/13 0013
* 19:49
* 2020
*/
public class XianCengTest implements Runnable{
private int i=100;
private Object object=new Object();
@Override
public void run() {
while (true){
try {
Thread.sl... | true |
ba8b1f4c1897b12382a9b1e8100de36f5841dd6a | Java | ErickGuillen17/ProyectoDesarrolloWeb | /src/main/java/model/Sla.java | UTF-8 | 817 | 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 model;
/**
*
* @author Alejandro
*/
public class Sla {
private String idSla;
private Severidad laSeveridad;
pr... | true |
dcf551fee7d4180b0ee1589ce175ee6eb03545b5 | Java | satyac11/DSA | /Patterns/SlidingWindow/LongestSubstringwithKDistinctCharacters.java | UTF-8 | 1,373 | 3.765625 | 4 | [] | no_license | package Patterns.SlidingWindow;
import java.util.HashMap;
import java.util.Map;
public class LongestSubstringwithKDistinctCharacters {
public static int longestSubString(String string, int k){
int start=0,longestStringLength=0;
Map<Character,Integer> map = new HashMap<>();
for(int end=0;... | true |
9085180a94bdb49c3de793eaf1dddc1dbbd58b9a | Java | roymithun/JavaWork_2015 | /src/com/peto/datastructures/stack/SortStack.java | UTF-8 | 1,171 | 3.734375 | 4 | [] | no_license | package com.peto.datastructures.stack;
import java.util.Stack;
public class SortStack {
public static void main(String[] args) {
Stack<Integer> stack = new Stack<>();
stack.push(2);
stack.push(5);
stack.push(3);
stack.push(1);
stack.push(8);
stack.push(9);
System.out.println(stack);
System.out.... | true |
c27c923fa46c4606f9aba975750efbf46980b064 | Java | NecoHorne/HomeTribe | /app/src/main/java/com/necohorne/hometribe/Activities/Fragments/AboutFragment.java | UTF-8 | 2,894 | 2.203125 | 2 | [] | no_license | package com.necohorne.hometribe.Activities.Fragments;
import android.content.Context;
import android.content.pm.PackageInfo;
import android.content.pm.PackageManager;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;... | true |
9014fb67e5683888cd3a1f0c0235d3c6db929afa | Java | mercieau/projet2015 | /src/Aeroport.java | UTF-8 | 5,053 | 3.0625 | 3 | [] | no_license | /**
* @author Natacha, Aurélie
* @version 1.1
*/
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.util.ArrayList;
import java.util.Scanner;
public class Aeroport
{
private ArrayList<Point> listePoint;
private ArrayList<Line> listeLine;
private ArrayList<Runway> listeRunway;
privat... | true |
b4cddb34de5d0f9ed4b7570d6cc508754f8e8fc7 | Java | jayden123456/xiaoaimei | /StudioProjects/miaoying/app/src/main/java/com/yidan/xiaoaimei/presenter/EvaluatePresenter.java | UTF-8 | 1,961 | 1.992188 | 2 | [] | no_license | package com.yidan.xiaoaimei.presenter;
import com.yidan.xiaoaimei.contract.EvaluateContract;
import com.yidan.xiaoaimei.http.base.OnHttpCallBack;
import com.yidan.xiaoaimei.model.CommonEmptyInfo;
import com.yidan.xiaoaimei.model.detail.EvaluateInfo;
import com.yidan.xiaoaimei.model.detail.EvaluateModel;
/**
* 评价pre... | true |
7cae60dd2844c69484ae41708cc1b2fcc3e82e44 | Java | Spole0168/pay_ssh | /CommonModules/frameworkimpl/server/main/com/ibs/common/module/frameworkimpl/data/excel/ExcelImporter.java | UTF-8 | 16,400 | 1.84375 | 2 | [] | no_license | package com.ibs.common.module.frameworkimpl.data.excel;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.text.DateFormat;
import java.text.ParseException;
import java.text.SimpleDateFor... | true |
aca637b58fc57b24ed7555b09e70d6e2641c88c2 | Java | pulumi/pulumi-gcp | /sdk/java/src/main/java/com/pulumi/gcp/storage/outputs/TransferJobTransferSpecObjectConditions.java | UTF-8 | 8,783 | 1.921875 | 2 | [
"BSD-3-Clause",
"MPL-2.0",
"Apache-2.0"
] | permissive | // *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package com.pulumi.gcp.storage.outputs;
import com.pulumi.core.annotations.CustomType;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java... | true |
ee5c367287d8135b5a3757e15e696da54bdbab1c | Java | joeywhalen/3ThumbsUpReviewSite_WCCI | /src/main/java/org/wecancodeit/pojos/Hashtags.java | UTF-8 | 567 | 2.4375 | 2 | [] | no_license | package org.wecancodeit.pojos;
import javax.persistence.*;
import java.util.Set;
@Entity
public class Hashtags {
@Id
@GeneratedValue
private Long id;
private String hashName;
@ManyToMany(mappedBy = "hashtags")
private Set<Movie> movies;
public Hashtags(String hashName) {
this.ha... | true |
6c9983ef2519d3d2d96e490d131ed5154e2e4a14 | Java | MarioEcheve/lo-digital-backend-prod-gcp | /src/main/java/com/lodigital/web/rest/TipoLibroResource.java | UTF-8 | 5,019 | 2.40625 | 2 | [] | no_license | package com.lodigital.web.rest;
import com.lodigital.domain.TipoLibro;
import com.lodigital.repository.TipoLibroRepository;
import com.lodigital.web.rest.errors.BadRequestAlertException;
import io.github.jhipster.web.util.HeaderUtil;
import io.github.jhipster.web.util.ResponseUtil;
import org.slf4j.Logger;
import org... | true |