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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
08fd1a91b920023e5f553700f5519242440e9a4f | Java | mukesh14149/MediSys | /app/src/main/java/com/example/mukesh/medisys/MedicationItemPagerFragment.java | UTF-8 | 5,651 | 2.109375 | 2 | [] | no_license | package com.example.mukesh.medisys;
import android.content.Intent;
import android.graphics.Color;
import android.graphics.Typeface;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
i... | true |
12e579ddf48ca4d7cf356074cda1f903d21300e7 | Java | gspandy/zx-parent | /ink-channel/ink-channel-api/src/main/java/com/ink/channel/api/model/in/OrderCancelIn.java | UTF-8 | 1,946 | 1.96875 | 2 | [] | no_license | package com.ink.channel.api.model.in;
import java.io.Serializable;
import javax.validation.constraints.Digits;
import org.hibernate.validator.constraints.NotEmpty;
public class OrderCancelIn implements Serializable{
private static final long serialVersionUID = -7207271959319766664L;
@NotEmpty
private String ord... | true |
bcd90229c3c6ff0e74a77fc3596058294db54428 | Java | jayantvaish/tmp | /src/main/java/com/intalio/bpms/taskmanager/TMP.java | UTF-8 | 1,380 | 2.171875 | 2 | [] | no_license | package com.intalio.bpms.taskmanager;
import org.apache.axiom.om.OMElement;
import org.intalio.tempo.workflow.util.xml.OMElementQueue;
import org.intalio.tempo.workflow.util.xml.OMUnmarshaller;
import com.intalio.bpms.taskmanager.common.TMPXMLConstants;
import com.intalio.bpms.taskmanager.vo.ChainedExecutionVO;
publ... | true |
fec01702d312e4eff5c73d971b626d46fbe6d793 | Java | Durgaprasad-Nagarkatte/AirLineBookingSystem | /src/main/java/com/company/akshay/flightbooking/FlightAdapter.java | UTF-8 | 2,155 | 2.328125 | 2 | [] | no_license | package com.company.akshay.flightbooking;
import android.content.Context;
import android.support.annotation.IdRes;
import android.support.annotation.LayoutRes;
import android.support.annotation.NonNull;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.A... | true |
daab8917bd518691067dadc2bf0c9927c4225e45 | Java | rafaelanastacioalves/desafio-android | /app/src/androidTest/java/com/example/rafaelanastacioalves/moby/PullMockedListTest.java | UTF-8 | 5,404 | 1.664063 | 2 | [] | no_license | package com.example.rafaelanastacioalves.moby;
import android.content.Context;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.support.test.InstrumentationRegistry;
import android.support.test.espresso.intent.Intents;
import android.support.test.rule.ActivityTestRule;
im... | true |
fca63ab877b0f5830e865d35a60e4c87baf56234 | Java | AstroCube/Centauri | /API/bukkit/src/main/java/net/astrocube/api/bukkit/lobby/selector/lobby/LobbyCloudWrapperGenerator.java | UTF-8 | 418 | 2 | 2 | [] | no_license | package net.astrocube.api.bukkit.lobby.selector.lobby;
import net.astrocube.api.core.virtual.gamemode.GameMode;
import java.util.List;
public interface LobbyCloudWrapperGenerator {
/**
* Get set of {@link GameMode} lobbies from cloud integration
* @param gameMode to search
* @return collection co... | true |
dc8b3f93cfa958c776ee1e7eef7decbea2e634ac | Java | dheerajsharma1990/algo | /src/test/java/com/algo/dp/DecodeWaysTest.java | UTF-8 | 1,567 | 2.859375 | 3 | [] | no_license | package com.algo.dp;
import org.testng.annotations.Test;
import static org.hamcrest.CoreMatchers.is;
import static org.hamcrest.MatcherAssert.assertThat;
public class DecodeWaysTest {
public int numDecodings(String a) {
if (a.charAt(0) == '0') {
return 0;
}
int arr[] = new int... | true |
66573d54cbeab1fe840c0648b8eb1ebb4fa62be0 | Java | mav67dev/projects | /cart/src/main/java/com/ethoca/cart/controller/CartController.java | UTF-8 | 7,808 | 2.453125 | 2 | [] | no_license | package com.ethoca.cart.controller;
import com.ethoca.cart.exception.AvailabilityException;
import com.ethoca.cart.exception.EmptyCartException;
import com.ethoca.cart.exception.ProductNotFoundException;
import com.ethoca.cart.model.CartProduct;
import com.ethoca.cart.model.OrderProduct;
import com.ethoca.cart.... | true |
ee97b2413f66d037c1e04c48e7dc38123956c575 | Java | fh-erfurt/1234Altwagen | /src/test/java/de/altwagen/Car/CarManagerTest.java | UTF-8 | 3,062 | 2.8125 | 3 | [
"Apache-2.0"
] | permissive | package de.altwagen.Car;
import de.altwagen.Exceptions.CarCountBelowZeroException;
import de.altwagen.domain.Address;
import de.altwagen.domain.Location;
import de.altwagen.domain.LocationManager;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Tes... | true |
71afe36d8b0be96ed9d930ff603cf53f2f7127d3 | Java | DeepakPatwa/JavaAssignment | /JunitAssignment/src/main/java/com/stackroute/unittest/pe1/ReverseTheNumber.java | UTF-8 | 533 | 3.296875 | 3 | [] | no_license | package com.stackroute.unittest.pe1;
import java.util.Scanner;
public class ReverseTheNumber {
public static String Reverse(String str)
{
int len=str.length()-1;
String strResult="";
for(int i=len;i>=0;i--)
strResult=strResult + str.charAt(i);
return strResult;
... | true |
0c08f8f9c57be3a469f2d6e49f678c1b1ac1b793 | Java | webuser2013/TeleRadiology | /src/main/java/com/kinsolutions/sites/resourceinfo/SiteResInfo.java | UTF-8 | 745 | 1.976563 | 2 | [] | no_license | package com.kinsolutions.sites.resourceinfo;
import java.io.Serializable;
import com.kinsolutions.baseinfo.ErrorData;
import com.kinsolutions.baseinfo.HeaderData;
public class SiteResInfo implements Serializable {
private HeaderData headerData;
private SiteInfo siteInfo;
private ErrorData errorData;
publi... | true |
864c4e94d4acd43db5d72f8841b00ae539e743d9 | Java | proohit/accountingappdesktop | /src/gui/wallets/WalletHyperlink.java | UTF-8 | 582 | 2.390625 | 2 | [] | no_license | package gui.wallets;
import data.Wallet;
import gui.Ui;
import javafx.event.ActionEvent;
import javafx.event.EventHandler;
import javafx.scene.control.Hyperlink;
public class WalletHyperlink extends Hyperlink {
public WalletHyperlink(Wallet wallet) {
super(wallet.getName() + "(" + wallet.getBalance() +... | true |
b48592acdb694c3e9c7b12cce4850f578d717694 | Java | leandro-romero/styling | /src/main/java/styling/entities/MethodResult.java | UTF-8 | 490 | 2.765625 | 3 | [] | no_license | package styling.entities;
public class MethodResult {
private String name;
private int numberOfLines;
public MethodResult(String name, int numberOfLines) {
this.name = name;
this.numberOfLines = numberOfLines;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name... | true |
bbb4bd13aebdd298f805529d36b71d3726bbb7a8 | Java | xingxingge/hx-base | /src/main/java/com/hx/base/interfaces/StreamFormatable.java | UTF-8 | 364 | 2.15625 | 2 | [] | no_license | package com.hx.base.interfaces;
import com.hx.base.exception.BaseException;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
public interface StreamFormatable {
void importObject(InputStream is) throws BaseException, IOException;
void exportObject(OutputStream os... | true |
e5ccdb152f9a9947245ab53c90c89b5ce0002db6 | Java | willusim/MyCounterStrike2D | /src/Player.java | UTF-8 | 6,260 | 2.59375 | 3 | [] | no_license | import javafx.animation.AnimationTimer;
import javafx.scene.PerspectiveCamera;
import javafx.scene.image.ImageView;
import javafx.scene.input.KeyEvent;
import javafx.scene.input.MouseEvent;
import javafx.scene.shape.Rectangle;
import java.util.Random;
public class Player extends ImageView {
private do... | true |
17aaba9e3bf029c0f6610ee81785b27387967354 | Java | VechnayaUnost/Notice | /app/src/main/java/by/darya/zdzitavetskaya/notice/di/module/RealmModule.java | UTF-8 | 642 | 1.898438 | 2 | [] | no_license | package by.darya.zdzitavetskaya.notice.di.module;
import android.content.Context;
import javax.inject.Singleton;
import by.darya.zdzitavetskaya.notice.utils.realm.CustomRealmConfiguration;
import dagger.Module;
import dagger.Provides;
import io.realm.Realm;
import io.realm.RealmConfiguration;
@Module
public class R... | true |
8da0754b54ea26d27754cbb3a49c3107c487c0dc | Java | leeclarke/SwarmWars | /src/Util/Schedule.java | UTF-8 | 1,359 | 3.40625 | 3 | [] | no_license | package Util;
public class Schedule<T extends Comparable<T>> {
class Node {
T element = null;
Node next = null;
public Node(T el) {
element = el;
}
}
Node first = null;
int size = 0;
T last_added = null;
public T peek() { if( first == null) return null; return first.element; }
public... | true |
9af15198ad540edbc159ee5d964bddbe721d0ffe | Java | wohenaini/MyApplication | /ruralbank/src/main/java/cn/com/jiutairural/web/CommonWebChromeClientEx.java | UTF-8 | 1,326 | 2.03125 | 2 | [] | no_license | package cn.com.jiutairural.web;
import android.webkit.JsPromptResult;
import android.webkit.WebChromeClient;
import android.webkit.WebView;
/**
*
*@author Mr.kang
*@date 2019-07-02
*
*/
public class CommonWebChromeClientEx extends WebChromeClient {
@Override
public void onProgressChanged(WebView view, int newProgre... | true |
53019d53cd29418b2f440c2b23d82728bdfc2d33 | Java | jabaraster/Coral | /src/main/java/jabara/coral/entity/EItemValueSelection.java | UTF-8 | 1,620 | 2.484375 | 2 | [] | no_license | /**
*
*/
package jabara.coral.entity;
import jabara.coral.model.IIndexable;
import jabara.jpa.entity.EntityBase;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
/**
* @author jabaraster
*/
@Entity
public cla... | true |
1836fa9478413373bfcbb801db5b75efd4644f11 | Java | bhavyakamboj/bookmarker | /src/main/java/com/sivalabs/bookmarker/domain/model/BookmarkDTO.java | UTF-8 | 1,000 | 2.21875 | 2 | [] | no_license | package com.sivalabs.bookmarker.domain.model;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import javax.validation.constraints.NotBlank;
import java.time.LocalDateTime;
import java.util.ArrayList;
import java.util.List;
@Data
public class BookmarkDTO {
private Long id;
@NotBlank... | true |
a56c747ea47f1f4c473981faa995d7b3c02517c2 | Java | iwillkillb/java_projects | /Company in power management/src/PrintChart.java | UHC | 813 | 3.625 | 4 | [] | no_license | import java.util.ArrayList;
public class PrintChart {
public static void main(String[] args) {
// TODO Auto-generated method stub
CompanymanChart companymanChart = new CompanymanChart();
ArrayList<Companyman> companymen = companymanChart.getCompanymen(SortingOrder.Descending, SortingStandard.Task);
//Sorting... | true |
cec198e296f3e88a09e8f09694f6879999400971 | Java | ThibaultFighiera/FaceAnonymizer | /app/src/main/java/com/pj/tfighiera/faceanonymizer/MainActivity.java | UTF-8 | 1,627 | 2.28125 | 2 | [] | no_license | package com.pj.tfighiera.faceanonymizer;
import com.pj.tfighiera.faceanonymizer.presenter.MainPresenter;
import android.content.Intent;
import android.os.Bundle;
import androidx.annotation.Nullable;
import androidx.appcompat.app.AppCompatActivity;
import androidx.appcompat.widget.Toolbar;
public class MainActivity ... | true |
2123116fe88d09809521026dce99fc4c128261aa | Java | dejan-jesic-hybrid/design-patterns | /src/main/java/decorator/BeverageAddition.java | UTF-8 | 110 | 2.15625 | 2 | [] | no_license | package decorator;
abstract class BeverageAddition extends Beverage {
abstract String getDescription();
}
| true |
dfa08f52c379859279ec655c29cae248c62daf1c | Java | mouadelfakir/project-lombok-helloworld | /src/main/java/com/stackextend/lombokhelloworld/lombok/Slf4jHelloWorld.java | UTF-8 | 225 | 2.0625 | 2 | [] | no_license | package com.stackextend.lombokhelloworld.lombok;
import lombok.extern.slf4j.Slf4j;
@Slf4j
public class Slf4jHelloWorld {
public void doSomething() {
log.info("This is a message from Lombok @Slf4j");
}
}
| true |
ffc437012f6d054f9b41464f257ff7e34d412844 | Java | 995270418L/java_learn | /src/main/java/com/steve/ifeve/JavaIo/ExceptionHandler/TemplateProcessExceptionInterfaceClass.java | UTF-8 | 1,334 | 3.234375 | 3 | [] | no_license | package com.steve.ifeve.JavaIo.ExceptionHandler;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStream;
/**
* Created by liu on 6/19/17.
* 使用的话就是:
* new TemplateProcessExceptionInterfaceClass().process("/home/liu/....",new TemplateProcessExcept... | true |
73584fce533ea6762feb399e175e74ef9de058d1 | Java | mohamedmmc/FanArtMobile | /src/com/mycompany/myapp/service/ServiceUser.java | UTF-8 | 11,619 | 1.796875 | 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.mycompany.myapp.service;
import com.codename1.capture.Capture;
import com.codename1.components.InfiniteProgress;
import co... | true |
1d455f6dfa63ec0ed3ffcce44a0aeade65b490b0 | Java | SoftEng-HEIGVD/Teaching-HEIGVD-RES-2021-Chill | /src/test/java/ch/heigvd/res/chill/domain/fabio10000/LeffeBlondeTest.java | UTF-8 | 1,007 | 2.65625 | 3 | [] | no_license | package ch.heigvd.res.chill.domain.fabio10000;
import ch.heigvd.res.chill.domain.Bartender;
import ch.heigvd.res.chill.protocol.OrderRequest;
import ch.heigvd.res.chill.protocol.OrderResponse;
import org.junit.jupiter.api.Test;
import java.math.BigDecimal;
import static org.junit.jupiter.api.Assertions.assertEquals;... | true |
ba7120941020deaa7205b0b54243b8df51301df3 | Java | mountaingoat99/ScoreMyDivePremium | /app/src/main/java/com/info/sqlite/model/DiverTotalDB.java | UTF-8 | 486 | 2.40625 | 2 | [] | no_license | package com.info.sqlite.model;
public class DiverTotalDB {
int _id;
int _diveTotal;
public DiverTotalDB(){}
public DiverTotalDB(int diveTotal){
this._diveTotal = diveTotal;
}
public int get_diveTotal() {
return _diveTotal;
}
public void set_diveTotal(int _diveTotal) ... | true |
bc172b5671204c35bac2b9e0bbdfd6f6f909ee9f | Java | MaroLopes/chamados | /src/java/br/com/chamados/VO/MailsEnvio.java | UTF-8 | 3,194 | 2.09375 | 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 br.com.chamados.VO;
import java.io.Serializable;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax... | true |
3a8354a260abda0b2c82ac53dea471cc4138a2ac | Java | Wb-Alpha/Algorithm | /蓝桥真题/src/第十一届蓝桥杯二次模拟/单词重排.java | GB18030 | 598 | 3.015625 | 3 | [] | no_license | package ʮһűģ;
import java.util.HashSet;
import java.util.Set;
//
//LANQIAOеĸУԵõͬĵʣLANQIAOAAILNOQȣע7ĸҪϣʲһоӢ塣
//ʣܹٸͬĵ
public class {
String[] data = {"L", "A", "N", "Q", "I", "A", "O"};
class Node{
private String Data;
private Node[] nList = new Node[7];
public Node(String[] dList) {
}
}
public s... | true |
0d271680110ab36f0ba1315a010a40564942aaa9 | Java | jameswatt2008/Android_App_OpenSource | /音乐播放器/PlayMusic/src/com/teleca/jamendo/other/LicenseBuilder.java | UTF-8 | 1,178 | 1.976563 | 2 | [] | no_license | /*
* Copyright (C) 2009 Teleca Poland Sp. z o.o. <android@teleca.com>
*
* 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
*
*... | true |
2bc839239f1e71b627b0264239cc12c230ea3787 | Java | JamesCollerton/Java_The_Complete_Reference | /Part_I/Chapter_12_Enumerations_Autoboxing/RepeatedAndTypeAnnotations/MyTypeAnnotation.java | UTF-8 | 216 | 2 | 2 | [] | no_license | import java.lang.annotation.*;
@Retention(RetentionPolicy.RUNTIME)
@Repeatable(MyTypeAnnotationArray.class)
@Target(ElementType.FIELD)
public @interface MyTypeAnnotation {
String name();
int value() default 1;
}
| true |
13c35dc200e717ee18e4f5379c3836898b671ce8 | Java | kkloberdanz/CS2820 | /src/production/beltTest.java | UTF-8 | 1,544 | 2.671875 | 3 | [] | no_license | package production;
public class beltTest {
private String name;
public String toString(){
return name;
}
public String getName(){
return name;
}
static SimRandom rand;
static MockOrders order;
/**
* Tester for loadBelt and packBox.
* @author Tyler Sporrer
*/
public st... | true |
af299d8a1f927e54d3241a8ca59a0dbb0853aa03 | Java | cuijiade7777/cj-video | /cj-videos-dev-service/src/main/java/com/cj/service/UserService.java | UTF-8 | 1,057 | 1.9375 | 2 | [] | no_license | package com.cj.service;
import com.cj.pojo.Users;
import com.cj.pojo.UsersReport;
public interface UserService {
/**
* 判断用户名是否存在
*/
public boolean queryUsernameIsExist(String username);
/**
* 保存用户(用户注册)
*/
public void saveUser(Users user);
public Users queryUserForLogin(String usern... | true |
001fa7ae1a0cdccfd588da6b40212e8d6dad804c | Java | verbhu23/BHGlass | /bankglass/src/main/java/com/biomhope/glass/face/bean/FaceRecogResult.java | UTF-8 | 598 | 1.84375 | 2 | [] | no_license | package com.biomhope.glass.face.bean;
import java.util.List;
/**
* author:BH
* create at:2018-10-18
* description: 人脸识别结果数据模型
*
*/
public class FaceRecogResult {
public String exCode;
public String exMsg;
public String logId;
public FaceRecogListVO result;
@Override
public String toStri... | true |
317bd375889df20bb76425fa64b4dc850f90cc88 | Java | yuanjie193/javademo | /javawebdemo/src/com/trash/controller/UsersController.java | UTF-8 | 272 | 1.96875 | 2 | [] | no_license | package com.trash.controller;
import com.trash.service.UsersService;
import com.trash.service.UsersServiceImpl;
public class UsersController {
private UsersService us = new UsersServiceImpl();
public void register(String uName){
us.register(uName);
}
}
| true |
aeebaa1b190a7fcf2b230ffa9f1b13b8b4f93af6 | Java | ZimaApps/PointOfSaleApplication | /app/src/main/java/com/standard/app/settings/OnlineInitActivity.java | UTF-8 | 5,160 | 2.140625 | 2 | [] | no_license | package com.standard.app.settings;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.text.Editable;
import android.text.InputType;
import android.text.TextUtils;
import android.text.TextWatcher;
import android.util.Log;
import android.view.View;
import android.widget.... | true |
d80133d9c89dce771098c5c04f9463bff0cfa602 | Java | gstsgy/springCloudTemplates | /gateway/src/main/java/com/guyue/gateway/conf/SwaggerHeaderFilter.java | UTF-8 | 1,176 | 2.140625 | 2 | [] | no_license |
package com.guyue.gateway.conf;
import org.apache.commons.lang.StringUtils;
import org.springframework.cloud.gateway.filter.GatewayFilter;
import org.springframework.cloud.gateway.filter.factory.AbstractGatewayFilterFactory;
import org.springframework.http.server.reactive.ServerHttpRequest;
import org.springframework... | true |
c19206cfb79da08e0a461c40bca73c0db73b6333 | Java | whjin5804/KHacademy | /Day10/src/StringTest3.java | UHC | 1,582 | 4.34375 | 4 | [] | no_license | public class StringTest3 {
public static void main(String[] args) {
//String Ŭ ϴ ɵ...
String s1 = "Coffee";
String s2 = "Bread";
//concat() > ڿ
String result = s1.concat(s2);
System.out.println(s1); //coffee
System.out.println(result); //coffeeBread
System.out.println(s1 + s2); //coffeeBread
... | true |
db215d1769cad9217994f1254bd98bd3753d3f3c | Java | tsuzcx/qq_apk | /com.tencent.mm/classes.jar/com/tencent/xweb/skia_canvas/resource_loader/ResourceLoaderDelegateWrapper.java | UTF-8 | 2,884 | 1.84375 | 2 | [] | no_license | package com.tencent.xweb.skia_canvas.resource_loader;
import com.tencent.matrix.trace.core.AppMethodBeat;
public class ResourceLoaderDelegateWrapper
{
private static final String TAG = "ResourceLoaderDelegateW";
private final IResourceLoader mDelegate;
private final Thread mThread;
ResourceLoader... | true |
0becfc275f079741ff9e59659a2bc4c738e1162f | Java | tzajc/design-patterns | /examples/src/main/java/com/smalaca/interpreter/Calculator.java | UTF-8 | 1,359 | 3.15625 | 3 | [] | no_license | package com.smalaca.interpreter;
import com.smalaca.interpreter.language.CalculatorExpression;
import com.smalaca.interpreter.language.Divide;
import com.smalaca.interpreter.language.Multiple;
import com.smalaca.interpreter.language.Percentage;
import com.smalaca.interpreter.language.RawNumber;
import com.smalaca.inte... | true |
2b9428dba04b635c6dc944ea1530f8e2dcd57c77 | Java | loveexception/ZHIHU_START | /src/main/java/com/maodajun/zhihu/MainLauncher.java | UTF-8 | 1,958 | 1.851563 | 2 | [] | no_license | package com.maodajun.zhihu;
import com.maodajun.zhihu.module.ActiveModule;
import com.maodajun.zhihu.module.CheckModule;
import com.maodajun.zhihu.module.MyModule;
import com.maodajun.zhihu.module.UserModule;
import org.nutz.boot.NbApp;
import org.nutz.dao.util.Daos;
import org.nutz.ioc.impl.PropertiesProxy;
import or... | true |
c25af2bc09a98d2e639167c5fe0b4c8a000f6057 | Java | Hikari41/shoppingcart | /src/main/java/com/cheer/cart/dao/ShoppingCartMapper.java | UTF-8 | 249 | 1.867188 | 2 | [] | no_license | package com.cheer.cart.dao;
import com.cheer.cart.model.ShoppingCart;
public interface ShoppingCartMapper {
// 展示购物车信息
ShoppingCart getCart(String cartId);
// 添加购物车
void add(ShoppingCart shoppingCart);
}
| true |
f6ac3170bb4a650a03793d0f2da448d64c6d8e57 | Java | Supratip09/PixogramUserAuthentication | /src/main/java/com/ibm/fsd/training/service/PixogramUserDetailsService.java | UTF-8 | 1,678 | 2.46875 | 2 | [] | no_license | package com.ibm.fsd.training.service;
import java.util.UUID;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.core.userdetails.ReactiveUserDetailsService;
import org.springframework.security.core.userdetails.UserDetails;
import org.springframework.security.crypto.pass... | true |
8c2d18f54f16cb42b26ad65133eb448fccb3f478 | Java | Max-lu/memcached-demo | /src/main/java/custom/Account.java | UTF-8 | 907 | 2.453125 | 2 | [] | no_license | package custom;
import java.io.Serializable;
/**
* Created by max.lu on 2016/3/21.
*/
public final class Account implements Serializable {
private static final long serialVersionUID = -9026498648840274608L;
public Account() {
}
@Override
public String toString() {
return "[name=" + t... | true |
f7b7443eeccaf09049d5484b30699ca239e87bce | Java | llagar910e/Katas | /Diamond/src/DiamondTest.java | UTF-8 | 872 | 2.703125 | 3 | [] | no_license | import junit.framework.TestCase;
import org.junit.Test;
import java.util.Map;
public class DiamondTest extends TestCase {
private int nbLetters = 0;
private final char[] alphabet = {'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z'... | true |
253fcbfc862ec820302b7c7cd03600cabf2b794d | Java | Deep-cola/OnlineJudge | /src/newcode/UnusualAdd.java | UTF-8 | 1,080 | 3.921875 | 4 | [] | no_license | package newcode;
import java.util.Scanner;
/**
* @description: 另类加法
* 给定两个int A和B。编写一个函数返回A+B的值,但不得使用+或其他算数运算符。
* 测试样例: 1,2
* 返回: 3
* @author: Deepcola
* @time: 2020/12/14 23:45
*/
public class UnusualAdd {
/**
* 位的异或运算跟求'和'的结果一致:
* 异或 1^1=0 1^0=1 0^0=0
* 求和 1+1=0 1+0=1... | true |
5572473da1f6de0ffae1d7fd7b9e0c2c9595c836 | Java | haydennix55/promethean.ai | /src/main/java/ai/promethean/Parser/ParserInterface.java | UTF-8 | 327 | 2.34375 | 2 | [] | no_license | package ai.promethean.Parser;
import java.util.Map;
// ParserInterface: Interface needs a parse function that takes either a file path or language string as input
// isFile bool denotes whether the string is a file path or not
public interface ParserInterface {
Map<String, Object> parse(String json, Boolean isFi... | true |
1539fa1e165142b3898b0aa3e44a506dfb2353e8 | Java | rahul26021999/Prepareurself-Android | /app/src/main/java/com/prepare/prepareurself/profile/ui/adapter/UserPrefernceAdapter.java | UTF-8 | 2,296 | 2.3125 | 2 | [] | no_license | package com.prepare.prepareurself.profile.ui.adapter;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import androidx.annotation.NonNull;
import androidx.recyclerview.widget.RecyclerView;
import com.prepare.p... | true |
ae080be88088c564bb3cbecd4cbedc9f10841458 | Java | LeeSM0518/OS | /src/thread/MusicPlayer.java | UTF-8 | 1,154 | 2.890625 | 3 | [] | no_license | package thread;
import javazoom.jl.decoder.JavaLayerException;
import javazoom.jl.player.Player;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.Scanner;
public class MusicPlayer {
private Player player;
private List<Music> musicList;
private Status status;
priva... | true |
8bb9d278d086f75e18ec764b126107e98102c811 | Java | zhouriyue/wyy | /app/src/main/java/com/gxuwz/beethoven/model/entity/SongList.java | UTF-8 | 7,333 | 2.078125 | 2 | [] | no_license | package com.gxuwz.beethoven.model.entity;
import android.graphics.Bitmap;
import android.os.Parcel;
import android.os.Parcelable;
import com.gxuwz.beethoven.model.vo.Href;
import java.io.Serializable;
public class SongList implements Serializable, Parcelable {
/**
* 歌单id
*/
private String songLis... | true |
5039bc4f8abe30d021a5584a351840cba0df5f55 | Java | vidhya12278/space | /src/test/java/com/hotel/Maintainpage.java | UTF-8 | 587 | 1.976563 | 2 | [] | no_license | package com.hotel;
public class Maintainpage
{
private Loginpagepojo login;
private Searchpagepojo search;
private Bookingpagepojo booking;
private Orderpagepojo order;
public Loginpagepojo getLogin()
{
return (login==null)?login=new Loginpagepojo():login;
}
public Searchpagepojo getSearch()
{
re... | true |
666707d9509c7b4286d70cffdf7b3c3fc87b49f1 | Java | kl243818244/HdfsClient | /src/main/java/com/hadoop/mapreduce/writable/WritableWordcountDriver.java | UTF-8 | 1,861 | 2.21875 | 2 | [] | no_license | package com.hadoop.mapreduce.writable;
import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.fs.Path;
import org.apache.hadoop.io.Text;
import org.apache.hadoop.mapreduce.Job;
import org.apache.hadoop.mapreduce.lib.input.CombineTextInputFormat;
import org.apache.hadoop.mapreduce.lib.input.FileInputFor... | true |
3b7cc237d4a65950910571cd3035dbebced25fec | Java | bellmit/bzy-git | /src/main/java/com/supwisdom/framework/utils/ExceptionCheckUtil.java | UTF-8 | 253 | 1.523438 | 2 | [] | no_license | package com.supwisdom.framework.utils;
import org.springframework.util.Assert;
import com.supwisdom.framework.utils.parent.MyUtil;
/**
* 异常校验类
*/
public class ExceptionCheckUtil extends Assert implements MyUtil {
}
| true |
1cb1b008e62070ffc81ce555adc4b6306bae8b63 | Java | mustang2247/dbstat | /src/main/java/com/ganqiang/dbstat/core/TimerPlugin.java | UTF-8 | 4,346 | 2.328125 | 2 | [
"Apache-2.0"
] | permissive | package com.ganqiang.dbstat.core;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.Timer;
import java.util.TimerTask;
import org.apache.log4j.Logger;
import org.dom4j.Document;
import org.dom4j.Element;
import com.ncfgroup.dbstat.util.ConfigHandler;
import com.ncfgroup.dbstat... | true |
b3ac0dd4c97942d7aac0cd40346830ea59211d64 | Java | BugBang/EShop | /app/src/main/java/com/edianjucai/eshop/model/entity/InitModel.java | UTF-8 | 2,980 | 1.960938 | 2 | [] | no_license | package com.edianjucai.eshop.model.entity;
import java.util.List;
public class InitModel extends BaseActModel {
private String kf_phone;
private String kf_email;
private int about_info;
private int version;
private String site_domain;
public String getSite_domain() {
return site_domai... | true |
73b7ed9672fa4b0f2dac3dc9f8570a60b93c9de0 | Java | namimono/zhny | /src/main/java/org/rcisoft/business/system/roleuser/service/Impl/SysUserMenuServiceImpl.java | UTF-8 | 19,527 | 1.835938 | 2 | [] | no_license | package org.rcisoft.business.system.roleuser.service.Impl;
import io.jsonwebtoken.Claims;
import org.apache.commons.lang3.StringUtils;
import org.rcisoft.base.jwt.JwtTokenUtil;
import org.rcisoft.base.result.Result;
import org.rcisoft.base.result.ServiceResult;
import org.rcisoft.base.util.UuidUtil;
import org.rcisoft... | true |
4eb242d85ff8e44afe55d6218c73250c37e771cf | Java | pepbea/ex1Herencia3 | /src/ex6/Comercial.java | UTF-8 | 482 | 2.796875 | 3 | [] | no_license | package exercicis.herencia.empleats;
public class Comercial extends Empleat{
private double comissio;
public Comercial() {
super();
}
public Comercial(String nom, String cognom, int edat, int salari,double comissio) {
super(nom,cognom,edat,salari);
this.comissio = comissio;
}
/*... | true |
756aa21e97d913bb4d4dc0b86a0adde5ba279a23 | Java | cs2268842/liping | /src/main/java/com/jiuli/liping/service/WeiXinService.java | UTF-8 | 223 | 1.515625 | 2 | [] | no_license | package com.jiuli.liping.service;
import com.jiuli.liping.vo.UserInfo;
/**
* Author zyl
* Date 2019-12-03
*/
public interface WeiXinService {
public UserInfo getUserInfo(String code);
String sendMessage();
}
| true |
20c5d438970f1bb656ad0fb3e02ef755cc5af9de | Java | hasancivelek/JavaCode_2 | /src/week5/Recap_5.java | UTF-8 | 622 | 3.546875 | 4 | [] | no_license | package week5;
public class Recap_5 {
public static int method1(int a){
System.out.println("this method starting to work");
System.out.println("we are adding 10 into our parameter");
a=a+10;
System.out.println("we are returing a");
return a;
}
////////////////////////////
boolean a= false;
static boole... | true |
e2feb83a91f4a5f8e3db7cc87a0acafd34cf3b38 | Java | MiguelJG/TFG | /jgrapht-1.3.0/source/jgrapht-core/src/main/java/org/jgrapht/alg/connectivity/BiconnectivityInspector.java | UTF-8 | 12,618 | 2.46875 | 2 | [
"LGPL-2.1-only",
"EPL-1.0",
"LGPL-2.0-or-later",
"BSD-3-Clause",
"EPL-2.0",
"LicenseRef-scancode-unknown-license-reference",
"LGPL-2.1-or-later",
"Apache-2.0",
"MIT"
] | permissive | /*
* (C) Copyright 2017-2017, by Joris Kinable and Contributors.
*
* JGraphT : a free Java graph-theory library
*
* See the CONTRIBUTORS.md file distributed with this work for additional
* information regarding copyright ownership.
*
* This program and the accompanying materials are made available under the
* ... | true |
3c6186b4cfc2c6439016cf5f90bcd4018b7a711f | Java | x1t1t/leetcode | /src/main/java/array/EasyCountElements.java | UTF-8 | 883 | 4.09375 | 4 | [] | no_license | package array;
import java.util.HashMap;
import java.util.Map;
/**
* Counting Elements
* <p>
* Given an integer array arr, count element x such that x + 1 is also in arr.
* If there're duplicates in arr, count them seperately.
*/
public class EasyCountElements {
public static void main(String[] args) {
... | true |
ac96a3e67c1f70fa0b2eb90803c435841d61e40b | Java | tmuehl/problem-spring-web | /src/test/java/org/zalando/problem/spring/web/advice/AdviceTraitTest.java | UTF-8 | 5,873 | 1.882813 | 2 | [
"Apache-2.0"
] | permissive | package org.zalando.problem.spring.web.advice;
/*
* #%L
* problem-handling
* %%
* Copyright (C) 2015 Zalando SE
* %%
* 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://... | true |
06eaacdde1083b72cb25198300d2b21714ad58bf | Java | KYLChiu/Project-Euler | /src/Q0033.java | UTF-8 | 1,787 | 3.34375 | 3 | [] | no_license | public class Q0033 extends Library {
public static void main(String[] args) {
System.out.println(solve());
}
public static int solve() {
for (int j = 10; j < 100; j++) {
for (int i = 10; i < j; i++) {
double div = (double) i/j;
double cancelFirst = (double) Integer.valueOf(String.valueOf(i).substri... | true |
a1c081e0b8fbfa67565dca38c572b03849c482d7 | Java | burhanuddinhamzabhai/ModernBazaar | /app/src/main/java/com/dotfiftythree/modernbazaar/Registration/PhoneNumberConfirmation.java | UTF-8 | 7,078 | 1.945313 | 2 | [] | no_license | package com.dotfiftythree.modernbazaar.Registration;
import android.app.ProgressDialog;
import android.content.Intent;
import android.os.Build;
import android.os.Bundle;
import android.os.Handler;
import android.text.TextUtils;
import android.util.Log;
import android.view.View;
import android.view.WindowManager;
impor... | true |
9e85cabf6a8915ec6a375e004b2bedc96b27b5d9 | Java | Kossanta/capstone | /SymptomManager/.svn/pristine/9e/9e85cabf6a8915ec6a375e004b2bedc96b27b5d9.svn-base | UTF-8 | 1,266 | 3.0625 | 3 | [] | no_license | package org.coursera.symptommanager.objects;
/**
*
* This is the object that represents the questions the patient answers and has the following parameters
* long id : which is the id of the account
* String title : which is the title of the question
* String response : which is the response of the question
... | true |
ade8b156aefc7aab4f8166e469e323710ded3d7b | Java | lwei20000/spring-framework | /my-test/src/main/java/com/test_shangguigu/t31_tx/service/UserService.java | UTF-8 | 523 | 1.898438 | 2 | [
"Apache-2.0"
] | permissive | package com.test_shangguigu.t31_tx.service;
import com.test_shangguigu.t31_tx.dao.UserDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
@Service
public class UserService {
@Autowired
pr... | true |
6aab2415b1bef6ba89e2e9c1999b8bc87f6a163f | Java | habbes/java-calc | /SymbolTable.java | UTF-8 | 520 | 2.953125 | 3 | [] | no_license | /**
* The base interface for a symbol table
*/
public interface SymbolTable {
/**
* Returns the value of the specified variable
* @param name
* @return
*/
int getValue(String name);
/**
* Sets the value of the specified variable.
* If the variable does not exist, it is create... | true |
0c214186767c5f4b68e17ccca4e5925a9c8c77da | Java | xdwangwei/vue_shop | /src/main/java/com/vivi/vue/shop/exception/CommonError.java | UTF-8 | 167 | 1.679688 | 2 | [] | no_license | package com.vivi.vue.shop.exception;
/**
* @author wangwei
* 2021/2/8 21:15
*/
public interface CommonError {
String getErrMsg();
String getErrCode();
}
| true |
2b8ec2c91814634ed2355a20aab0f00f453312e5 | Java | DungVu0302/Demo | /app/src/main/java/edu/csc/bt_fragment/MainActivity.java | UTF-8 | 2,202 | 2.546875 | 3 | [] | no_license | package edu.csc.bt_fragment;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import androidx.appcompat.app.AppCompatActivity;
import androidx.fragment.app.FragmentTransaction;
public class MainActivity extends AppCompatActivity {
Button btnRed,btnGreen,btnYellow;
Red_Fragmen... | true |
d413d1a9460da2fe302b6e614c2bdd3e8d5bbd9b | Java | christophpickl/josceleton | /artifact/josceleton/core-impl/trunk/src/main/java/net/sf/josceleton/core/impl/entity/CoreImplEntityModule.java | UTF-8 | 564 | 1.742188 | 2 | [] | no_license | package net.sf.josceleton.core.impl.entity;
import net.sf.josceleton.core.impl.entity.location.CoreImplLocationModule;
import net.sf.josceleton.core.impl.entity.user.CoreImplUserModule;
import com.google.inject.AbstractModule;
import com.google.inject.Scopes;
/**
*
* @since 0.1
*/
public class CoreImplEntityModu... | true |
845d74417aeb032fc4d2ef3fbbf62995e7b48421 | Java | biplap-sarkar/yelp-dataset-project | /DSParser/src/com/ds/annotation/Annotation.java | UTF-8 | 11,639 | 2.34375 | 2 | [] | no_license | package com.ds.annotation;
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.DataOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.OutputStreamWriter;
import java.net.HttpURLConnection;
import java.net.URL;
import java.sql.... | true |
c87439743256330af9d9013718ec67d6d917c4aa | Java | compomics/toppr | /src/be/proteomics/pprIA/update/DailyUniprotFetcher.java | UTF-8 | 16,307 | 2.3125 | 2 | [] | no_license | package be.proteomics.pprIA.update;
import be.proteomics.ppr.db.accessors.Protein;
import be.proteomics.util.io.FTPClient;
import be.proteomics.util.io.FTPClient2;
import com.compomics.util.io.FTP;
import org.apache.commons.io.IOUtils;
import java.io.*;
import java.net.URL;
import java.net.URLConnection;
i... | true |
327a9c6c0ee1a1e8a79f28e75e12c0c1be59fdc2 | Java | osipovgit/VirtualWorld | /src/main/java/com/osipov/evgeny/entity/ModelState.java | UTF-8 | 504 | 2.515625 | 3 | [] | no_license | package com.osipov.evgeny.entity;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.Random;
public enum ModelState {
VILLAGER,
FARMER,
DOCTOR,
SHERIFF,
CRIMINAL,
PRISONER,
CAUGHT,
DEAD;
public static ModelState getRandomState() {
... | true |
9943d6088c29b8dcda1b0552712cce0266dc2124 | Java | himuraxkenji/aeropuerto-clean | /aeropuerto-core/src/test/java/modeloTest/AirplaneUnitTest.java | UTF-8 | 2,131 | 2.6875 | 3 | [] | no_license | package modeloTest;
import exceptions.AirplaneIncompleteException;
import exceptions.SeatIncompleteException;
import model.Airplane;
import model.Seat;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;
import java.util.ArrayList;
import java.util.List;
public class AirplaneUnitTest {
@... | true |
5b151c53838016a709f4aa00c9c818762cbfc269 | Java | aleredondi/mobiwsn-localization | /src/remote_interfaces/clients/dve/DVE.java | UTF-8 | 387 | 1.898438 | 2 | [] | no_license | package remote_interfaces.clients.dve;
import java.rmi.Remote;
import java.rmi.RemoteException;
import remote_interfaces.clients.profiling_system.*;
public interface DVE extends Remote {
public void newPredictedProfile( ProfileType type, String room ) throws RemoteException;
public void notifyRealTimeValue(Pro... | true |
c46e32b3144e04de8a0983b454141a5d600f6ac1 | Java | fcsabika100/MiniEvents | /MiniEvents/src/Handlers/EventHandlers/SimpleEvents/Parkour.java | UTF-8 | 2,528 | 2.46875 | 2 | [] | no_license | package Handlers.EventHandlers.SimpleEvents;
import Mains.MiniEvents;
import Mains.SettingsManager;
import org.bukkit.Bukkit;
import org.bukkit.Location;
import org.bukkit.World;
import org.bukkit.entity.Player;
import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener;
import org.bukkit.event.entity.Enti... | true |
36cb586a748c4cb68a145bba16da3798c205e625 | Java | DukeCharles/revision-718-server | /src/com/rs/game/area/NexMulti.java | UTF-8 | 622 | 2.203125 | 2 | [] | no_license | package com.rs.game.area;
import com.rs.game.WorldTile;
import com.rs.game.area.shapes.Polygon;
public final class NexMulti extends Area {
@Override
public Area update() {
return this;
}
@Override
public String name() {
return "Nex Multi";
}
@Override
public Shape[] shapes() {
return new Shape[] { ne... | true |
5bdd761ebb361a076f9a269532f6d23d4a6befb2 | Java | Aggarwal-Ankur/QuickReddit | /app/src/main/java/com/aggarwalankur/capstone/quickreddit/data/RedditPostContract.java | UTF-8 | 2,867 | 2.171875 | 2 | [] | no_license | package com.aggarwalankur.capstone.quickreddit.data;
import android.content.ContentResolver;
import android.net.Uri;
import android.provider.BaseColumns;
/**
* Created by Ankur on 13-Oct-2016
*/
public class RedditPostContract {
//Create the content Authority
public static final String AUTHORITY = "com.agg... | true |
13e843a67092e361ade96a436eac7414c5e9e4a0 | Java | ashangit/hibernatus | /hibernatus-agent/src/main/java/fr/bionf/hibernatus/agent/db/DbUtils.java | UTF-8 | 5,935 | 2.1875 | 2 | [
"Apache-2.0"
] | permissive | package fr.bionf.hibernatus.agent.db;
import fr.bionf.hibernatus.agent.conf.Constants;
import fr.bionf.hibernatus.agent.executor.ListFileExecutor;
import fr.bionf.hibernatus.agent.utils.TarFolder;
import org.rocksdb.*;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.io.File;
import java.io.IOExce... | true |
3145a82e5f3c18663fab652eb7bef2149b8b70a5 | Java | Master-lyt/xiaomishop | /src/main/java/com/xm/entity/ProductType.java | UTF-8 | 826 | 2.375 | 2 | [] | no_license | package com.xm.entity;
/**
* @author lz
* @date 2020/9/17 - 9:00
* @function
*/
public class ProductType {
private Integer typeId;
private String typeName;
public Integer getTypeId() {
return typeId;
}
public void setTypeId(Integer typeId) {
this.typeId = typeId;
}
p... | true |
43c5d653dfd8a200f871964052a79d4f25726461 | Java | OpenBankingToolkit/openbanking-clients | /forgerock-openbanking-analytics-webclient/src/main/java/com/forgerock/openbanking/analytics/webclient/services/WebClientConsentMetricService.java | UTF-8 | 2,856 | 1.890625 | 2 | [
"Apache-2.0"
] | permissive | /**
* Copyright 2019 ForgeRock AS.
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, ... | true |
dab92c090295056faa1b8ad680f6a02bc33af05e | Java | gradle/gradle | /subprojects/core/src/main/java/org/gradle/initialization/BuildRequestContext.java | UTF-8 | 1,088 | 1.632813 | 2 | [
"BSD-3-Clause",
"LGPL-2.1-or-later",
"LicenseRef-scancode-mit-old-style",
"EPL-2.0",
"CDDL-1.0",
"MIT",
"LGPL-2.1-only",
"Apache-2.0",
"MPL-2.0",
"EPL-1.0"
] | permissive | /*
* Copyright 2014 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | true |
21f5e67199eef848bf63a511aa14cba216490fff | Java | silver3456/Java_Yaroslavl | /src/main/java/OCA/Frog.java | UTF-8 | 119 | 2.3125 | 2 | [] | no_license | package OCA;
public class Frog {
static int frogCount = 0;
public Frog() {
frogCount += 1;
}
}
| true |
3ef6e79a20874c1c264bf26f14908a905b0d779a | Java | Erhaborosagie/customer-app | /src/main/java/com/osagie/customer/app/model/Customer.java | UTF-8 | 900 | 2.234375 | 2 | [] | no_license | package com.osagie.customer.app.model;
import lombok.Getter;
import lombok.Setter;
import org.hibernate.annotations.GenericGenerator;
import javax.persistence.*;
import javax.validation.constraints.Email;
import javax.validation.constraints.NotNull;
import java.time.LocalDateTime;
import java.util.List;
/**
* Creat... | true |
7293b49f75be92c361f75fb3396097f82bd7dc72 | Java | cookin-by-the-book/cookin-android | /cookin_by_the_book/app/src/main/java/com/mobileappdev/cookinbythebook/ViewRecipeActivity.java | UTF-8 | 8,069 | 2.0625 | 2 | [] | no_license | package com.mobileappdev.cookinbythebook;
import androidx.annotation.NonNull;
import androidx.appcompat.app.AppCompatActivity;
import android.app.ActionBar;
import android.app.AlertDialog;
import android.content.Context;
import android.content.DialogInterface;
import android.content.SharedPreferences;
import android.... | true |
9ba5e76de56c1ddf5987c0eeb8d51d2071d7adf3 | Java | Mamun-100/javapracticejava | /src/javapractice/EmployeeComparisom.java | UTF-8 | 905 | 2.515625 | 3 | [] | no_license | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package javapractice;
/**
*
* @author User
*/
public class EmployeeComparisom {
private int id;
private String name;
pr... | true |
79066e4429ef6b3c820d7e54cfcd16e78c8623ab | Java | niuyi/PPTVTest | /src/com/niuyi/test/PinDaoActivity.java | UTF-8 | 819 | 2.171875 | 2 | [] | no_license | package com.niuyi.test;
import android.app.Activity;
import android.app.ListActivity;
import android.os.Bundle;
import android.widget.ArrayAdapter;
import android.widget.ListView;
import android.widget.TextView;
public class PinDaoActivity extends Activity {
@Override
public void onCreate(Bundle savedInstanceStat... | true |
48264a2e467f3ff01ed735802601a48176eb12d2 | Java | cenbow/lime-security-powerauth | /powerauth-restful-server-spring/src/main/java/io/getlime/security/powerauth/app/rest/api/spring/controller/CustomActivationController.java | UTF-8 | 5,891 | 2.015625 | 2 | [
"Apache-2.0"
] | permissive | package io.getlime.security.powerauth.app.rest.api.spring.controller;
import io.getlime.powerauth.soap.CreateActivationResponse;
import io.getlime.security.powerauth.rest.api.base.encryption.PowerAuthNonPersonalizedEncryptor;
import io.getlime.security.powerauth.rest.api.base.exception.PowerAuthActivationException;
im... | true |
aaa224936a5673c30daa9443360ac9b551920b82 | Java | happy6eve/clientmanager | /clientmanager/src/main/java/com/jiuyi/clientmanager/domain/my/info/RequestMyEditInfoVo.java | UTF-8 | 1,867 | 2 | 2 | [] | no_license | package com.jiuyi.clientmanager.domain.my.info;
public class RequestMyEditInfoVo {
private String token;
private RequestMyEditInfo requestMyEditInfo;
public class RequestMyEditInfo {
private int id;//id
private String userId;//用户ID
private String headPhoto;//头像路径
private String userName;//姓名
... | true |
445ccadef40589205cfed24f182e3c3d794a210a | Java | nimilp/MyTasks | /app/src/main/java/com/mytasks/ModifyTask.java | UTF-8 | 9,582 | 1.960938 | 2 | [] | no_license | package com.mytasks;
import android.app.Activity;
import android.app.DatePickerDialog;
import android.content.DialogInterface;
import android.os.Bundle;
import android.support.design.widget.FloatingActionButton;
import android.support.v7.app.AlertDialog;
import android.support.v7.app.AppCompatActivity;
import android.... | true |
2fcddd4d6a100df8940fb1ea2c3a7e4749e1cf0b | Java | Team4028/Example-Swerve | /src/main/java/com/swervedrivespecialties/exampleswerve/commands/shooter/RunShooterFromVision.java | UTF-8 | 2,312 | 2.03125 | 2 | [] | no_license | /*----------------------------------------------------------------------------*/
/* Copyright (c) 2019 FIRST. All Rights Reserved. */
/* Open Source Software - may be modified and shared by FRC teams. The code */
/* must be accompanied by the FIRST BSD license file in the root directory of... | true |
8aa66327ad457592fa793a6f8526048ab1f7dbd4 | Java | perdiatmaja/java-spring-rest | /src/main/java/id/atmaja/baserestapi/MainApplication.java | UTF-8 | 528 | 1.703125 | 2 | [] | no_license | package id.atmaja.baserestapi;
import id.atmaja.baserestapi.config.AppProperties;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication public class MainApplication {
public static void main(String[] args) throws Exception {... | true |
7fad298bfb7ed8aa263dc3c24278c6eec13cfab9 | Java | michelangelorosa/ing-sw-2021-Piferi-Rosa-Rossi | /src/main/java/it/polimi/ingsw/Controller/Actions/ChooseProductionOutput.java | UTF-8 | 10,412 | 2.734375 | 3 | [] | no_license | package it.polimi.ingsw.Controller.Actions;
import it.polimi.ingsw.Controller.ControllerClasses.ActionController;
import it.polimi.ingsw.Model.Enums.LeaderCardAction;
import it.polimi.ingsw.Model.Enums.ResourceType;
import it.polimi.ingsw.Model.GameModel.Player;
import it.polimi.ingsw.Model.GameModel.PopeTileClass;
im... | true |
25a6323e3699e2bbcc920b0aed4e8c567de61b14 | Java | hexiaowenAdmin/hRpc | /src/main/java/com/rpc/nio/NIOClientSocket.java | UTF-8 | 2,810 | 2.84375 | 3 | [] | no_license | package com.rpc.nio;
import com.rpc.server.HelloService;
import com.rpc.util.SerializingUtils;
import com.rpc.util.ServiceReqUtil;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.lang.reflect.Method;
import java.net.InetSocketAddress;
import java.nio.ByteBuffer;
import java.ni... | true |
6d97eda27a925ab8a2c1919c48caccce09918b52 | Java | complitex/flexbuh | /flexbuh-admin/src/main/java/org/complitex/flexbuh/admin/dictionary/web/DocumentList.java | UTF-8 | 8,500 | 1.757813 | 2 | [] | no_license | package org.complitex.flexbuh.admin.dictionary.web;
import org.apache.wicket.authroles.authorization.strategies.role.annotations.AuthorizeInstantiation;
import org.apache.wicket.extensions.markup.html.repeater.data.sort.OrderByBorder;
import org.apache.wicket.extensions.markup.html.repeater.data.sort.SortOrder;
import... | true |
1a961cf4f317e30728b46549de16cf5037a0b91e | Java | FFFengMJL/blog | /work/Java/0402/src/MultiThread/Bank.java | UTF-8 | 1,911 | 3.40625 | 3 | [] | no_license | package MultiThread;
public class Bank extends Thread {
public static Object realLock;
public Bank() {
this.realLock = new Object();
}
void bank() {
Bank b = new Bank("B");
Bank c = new Bank("C");
b.start();
c.start();
}
private static in... | true |
83f0c1ae1246400ff16a280e4acea158ea75b65e | Java | lighthou/AuthOut | /android/AuthOut/app/src/main/java/rocketpotatoes/authout/AdminActivity.java | UTF-8 | 2,092 | 2.03125 | 2 | [
"MIT"
] | permissive | /*
* MIT License
Copyright (c) 2018 Ryan Kurz
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publi... | true |
617aed60592e10549c4a09f975c6737c0e055d28 | Java | flpanbin/ComponentDemo | /app/src/main/java/com/example/juniorpan/myapplication/app/app.java | UTF-8 | 310 | 1.578125 | 2 | [] | no_license | package com.example.juniorpan.myapplication.app;
import com.example.module_common.base.BaseAppliction;
import com.github.mzule.activityrouter.annotation.Modules;
@Modules({"book","music"})
public class app extends BaseAppliction {
@Override
public void onCreate() {
super.onCreate();
}
}
| true |
3c94448d828e1e3e384845736485eaca82dc1df3 | Java | meeidol-luo/qooq | /classes/com/tencent/mobileqq/forward/ForwardDialogBuilder.java | UTF-8 | 401 | 1.796875 | 2 | [] | no_license | package com.tencent.mobileqq.forward;
public abstract interface ForwardDialogBuilder
{
public abstract int a();
public abstract String a();
public abstract int b();
public abstract String c();
}
/* Location: E:\apk\QQ_91\classes-dex2jar.jar!\com\tencent\mobileqq\forward\ForwardDialogBui... | true |