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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
de0cc877ef7c28935990d24294f03b983037ffad | Java | newjiang/Microblog | /app/src/main/java/com/example/jiang/microblog/mvp/contract/MicroblogContract.java | UTF-8 | 2,364 | 2.484375 | 2 | [] | no_license | package com.example.jiang.microblog.mvp.contract;
/**
* Created by jiang on 2018/1/8.
*/
import com.example.jiang.microblog.bean.Microblog;
import rx.Observable;
/**
* 契约接口
*/
public interface MicroblogContract {
interface Model {
/**
* 获取用户及用户关注好友的微博
*
* @param access_t... | true |
141efc89d6770dc65aeb253066ade2d123d903b6 | Java | DivineBee/FileSharing | /src/main/java/com/pbl/filesharing/FileSharing/entity/SharingInfo.java | UTF-8 | 1,017 | 2.109375 | 2 | [] | no_license | package com.pbl.filesharing.FileSharing.entity;
import javax.persistence.*;
@Entity
@Table(name="sharing_info")
public class SharingInfo {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Long id;
@Column(name = "owner")
private String ownerID;
@Column(name = "reciever")
p... | true |
728d335f432f7f8570a719201ef58ebc11606f11 | Java | moutainhigh/cloud | /cloud-hippo/src/main/java/com/smart4y/cloud/hippo/interfaces/dtos/role/GrantPrivilegeCommand.java | UTF-8 | 522 | 1.65625 | 2 | [
"MIT"
] | permissive | package com.smart4y.cloud.hippo.interfaces.dtos.role;
import io.swagger.annotations.ApiModel;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import java.io.Serializable;
/**
* @author Youtao
* on 2020/7/31 10:44
*/
@Data
@NoArgsConstruct... | true |
6c2057e0e14ba1e2f2d3d8cf1d69ff35533e3c0a | Java | khalifemubin/DailyReminder | /app/src/main/java/mubin/khalife/dailyreminder/Entries.java | UTF-8 | 593 | 2.328125 | 2 | [] | no_license | package mubin.khalife.dailyreminder;
/**
* Created by developer on 8/28/2015.
*/
public class Entries {
public int entryId;
public String entryTitle;
public String entryDescription;
public String entryDate;
public String entryPriority;
public Entries(Integer entryId, String entryTitle,String... | true |
60e0246f9e9e8f744c8162df0073504f35792bac | Java | demidenko05/beige-uml | /beige-uml-android/src/main/java/org/beigesoft/uml/factory/android/FactoryAsmFrameFull.java | UTF-8 | 4,103 | 1.640625 | 2 | [
"Apache-2.0",
"LicenseRef-scancode-free-unknown"
] | permissive | package org.beigesoft.uml.factory.android;
import android.app.Activity;
import org.beigesoft.android.graphic.CanvasWithPaint;
import org.beigesoft.android.graphic.service.SrvDraw;
import org.beigesoft.graphic.pojo.SettingsDraw;
import org.beigesoft.ui.container.IContainerSrvsGui;
import org.beigesoft.uml.app.model.Se... | true |
45c0d95912c7df0197ce8bb9d78b3056e4e06613 | Java | LittleJiongJiong/coolweather | /app/src/main/java/com/example/lenovo/coolweather/gson/AQI.java | UTF-8 | 342 | 2.03125 | 2 | [
"Apache-2.0"
] | permissive | package com.example.lenovo.coolweather.gson;
/**
* AQI:空气质量指数
* Created by Lenovo on 2018-5-21 021.
*/
public class AQI {
public AQICity city;
public class AQICity {
public String aqi;
/**
*PM2.5 1小时平均值(ug/m³)
*/
public String pm25;
}
}
| true |
d3d5d48ab581583e2d2aa7657799f725f1b93a68 | Java | OleksandrGaliamov/fugasolution | /src/main/java/com/github/vvv1559/detector/DetectionResult.java | UTF-8 | 917 | 2.65625 | 3 | [] | no_license | package com.github.vvv1559.detector;
import com.github.vvv1559.gameplay.Invader;
import com.github.vvv1559.image.SelectionRange;
import com.google.common.collect.ArrayListMultimap;
import com.google.common.collect.Multimap;
import java.util.Collection;
import java.util.Map;
public class DetectionResult {
private... | true |
e183d54d5fa30fc11cb2179dec9b1331a22cb6c4 | Java | gaoleicoding/NongKe | /app/src/main/java/com/nongke/jindao/mcontract/OrderProductContract.java | UTF-8 | 1,122 | 1.859375 | 2 | [] | no_license | package com.nongke.jindao.mcontract;
import com.nongke.jindao.base.mmodel.BannerResData;
import com.nongke.jindao.base.mmodel.MyAddressResData;
import com.nongke.jindao.base.mmodel.OrderProductResData;
import com.nongke.jindao.base.mmodel.Product;
import com.nongke.jindao.base.mmodel.ProductResData;
import com.nongke.... | true |
62bf4e4a24be1c1c6c5dec56871476365bb66237 | Java | arbiter34/SocketSendReceive | /Receiver/src/receiver/ReceiverMain.java | UTF-8 | 325 | 2.109375 | 2 | [] | no_license | /*
* ReceiverMain Class For Receiver
* Travis Alpers and Brian Lamb
* CSCI466 - Networks
* Lab 3
*/
package receiver;
public class ReceiverMain {
public static void main(String[] args) {
//Create thread with Receiver instance and run
Thread t = new Thread(new Receiver(4242));
t.run(... | true |
618a1631d591682e11075c9fc5777bc9f1747b57 | Java | HaRDi437/Prog3TP3 | /src/gui/AgeInputVerifier.java | UTF-8 | 777 | 2.5 | 2 | [] | no_license | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package gui;
import java.awt.Toolkit;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.InputVerifier;
import javax.swing.JComponent;
/**
*
* @author riadh
*/
public class A... | true |
b8f3c12a57a3692940c3874a88b32aac2c796765 | Java | aleticiamiranda/Dashboard-de-Usuario-com-Java | /acme-bank/src/main/java/br/com/bank/service/ContatoServiceImpl.java | UTF-8 | 815 | 2.140625 | 2 | [] | no_license | /**
*
*/
package br.com.bank.service;
import br.com.bank.dao.ContatoDaoImpl;
import br.com.bank.model.Contato;
import java.util.List;
/**
* @author cbgomes
*
*/
public class ContatoServiceImpl implements ContatoService {
private final ContatoDaoImpl dao;
public ContatoServiceImpl() {
this.dao ... | true |
4f1ea9bece446af61c14a2a2070aaee41bf5cf07 | Java | P79N6A/icse_20_user_study | /methods/Method_43066.java | UTF-8 | 570 | 2.28125 | 2 | [] | no_license | static List<LimitOrder> adaptBitcointoyouPublicOrders(List<List<BigDecimal>> list,OrderType orderType,CurrencyPair currencyPair){
List<BitcointoyouLevel> levels=new ArrayList<>();
for ( List<BigDecimal> rawLevel : list) {
levels.add(adaptRawBitcointoyouLevel(rawLevel));
}
List<LimitOrder> orders=new ArrayL... | true |
feb2df36ca4a81ac4fe7bd4aaaadf01c0e0e2277 | Java | openworm/org.geppetto.core | /src/main/java/org/geppetto/core/data/model/ExperimentStatus.java | UTF-8 | 373 | 2.109375 | 2 | [
"MIT"
] | permissive |
package org.geppetto.core.data.model;
public enum ExperimentStatus
{
DESIGN("DESIGN"), QUEUED("QUEUED"), RUNNING("RUNNING"), ERROR("ERROR"), COMPLETED("COMPLETED"), DELETED("DELETED"), CANCELED("CANCELED");
private ExperimentStatus(final String text)
{
this.text = text;
}
private final String text;
@Overr... | true |
0a672fe5c160c7c75cdcda8ede2356ff84896661 | Java | gmh5225/gdsl-toolkit | /eclipse-plugin/gdsl.plugin/src-gen/gdsl/plugin/gDSL/CONS.java | UTF-8 | 1,265 | 1.726563 | 2 | [
"LicenseRef-scancode-unknown-license-reference",
"SMLNJ"
] | permissive | /**
*/
package gdsl.plugin.gDSL;
import org.eclipse.emf.ecore.EObject;
/**
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>CONS</b></em>'.
* <!-- end-user-doc -->
*
* <p>
* The following features are supported:
* <ul>
* <li>{@link gdsl.plugin.gDSL.CONS#getConName <em>Con Name</em>}... | true |
dbc47ed9b62633931e618f5cc2ebfc2056ae905b | Java | upl-depot/examples | /javafx/PaginationDemo/src/pagination/controller/MainUIController.java | UTF-8 | 10,662 | 2.265625 | 2 | [] | no_license | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package pagination.controller;
import java.net.URL;
import java.util.Comparator;
import java.util.Date;
import java.util.GregorianCalendar;
import java.util.List;
import java.util.ResourceBundle;
import javafx.beans.pro... | true |
f9772a202ab88401fd0de34f41359ab6f3e2173d | Java | rz0310/MyStudy | /单例模式/wuwu.java | WINDOWS-1252 | 206 | 2.171875 | 2 | [] | no_license | package ģʽ;
public class wuwu{
public static void main(String[] args) {
Singleton s1 = Singleton.getInstance();
Singleton s2 = Singleton.getInstance();
System.out.println(s1==s2);
}
} | true |
15a3ac681ee57dea58f350677b1bf3e8634765dc | Java | win-than-htike/PADC-NetworkLayer | /app/src/main/java/xyz/winthan/padc_networklayer/data/network/RetrofitDataAgent.java | UTF-8 | 2,508 | 2.296875 | 2 | [] | no_license | package xyz.winthan.padc_networklayer.data.network;
import android.content.Context;
import org.greenrobot.eventbus.EventBus;
import java.util.concurrent.TimeUnit;
import okhttp3.OkHttpClient;
import retrofit2.Call;
import retrofit2.Callback;
import retrofit2.Response;
import retrofit2.Retrofit;
import retrofit2.con... | true |
2bbfff5ffd9662b49850039d3977f51728990e76 | Java | Ivan825/Class_10_internal_assignment_Ivan | /Question9.java | UTF-8 | 309 | 2.84375 | 3 | [] | no_license | public class Question9
{
void sum1(String args[])
{
int sum = 2-4+6-8+10-12+14-16+18-20;
System.out.println(sum);
}
void sum2(int x)
{
int sum = 0;
for(int i=2;i<=20;i= i+3)
{
sum = sum+ x/i;
}
}
}
| true |
9ff4e594b52acb90c26d5853166e055598274d4d | Java | DivyaKothandan/TestngTest | /src/groupTest/GroupingTest.java | UTF-8 | 579 | 2.171875 | 2 | [] | no_license | package groupTest;
import org.testng.annotations.Test;
public class GroupingTest {
@Test (priority=1, groups={"Books","Cancel"})
public void loginTest()
{
System.out.println("validate LoginTest");
}
@Test (priority=2, groups={"Books"})
public void regTest()
{
System.out.println("validate Registration Tes... | true |
e202ad7c04cd4907c035788c4d44ce99368de077 | Java | Xin221/Research | /src/inetintelliprocess/searchengine/searchers/WebPageInfo.java | UTF-8 | 11,065 | 2.421875 | 2 | [] | no_license | package inetintelliprocess.searchengine.searchers;
/**
* searchers搜索核心包
* 搜索实现
*/
import inetintelliprocess.util.LogWriter;
import java.util.List;
import java.util.Random;
import org.apache.log4j.MDC;
/**
*
* 文本信息载入管理的业务类
* 封装了通过读取文本对象信息表载入文本信息的相关业务功能。
* 搜出来的网页的数据结构
*
*/
public class WebPageInfo {
priv... | true |
1e29d01e989ca6f51512d5995f427fc9cba14bea | Java | K-scope/K-scope | /src/jp/riken/kscope/action/ProjectBuildAction.java | UTF-8 | 9,364 | 1.90625 | 2 | [
"Apache-2.0"
] | permissive | /*
* K-scope
* Copyright 2012-2013 RIKEN, Japan
*
* 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 ... | true |
f9a19100b0eb11192554e3356e91c8bd04a7c7c3 | Java | smileidentity/smile-identity-core-java | /src/main/java/smile/identity/core/adapters/InstantAdapter.java | UTF-8 | 614 | 2.515625 | 3 | [
"MIT"
] | permissive | package smile.identity.core.adapters;
import com.squareup.moshi.FromJson;
import com.squareup.moshi.ToJson;
import java.time.DateTimeException;
import java.time.Instant;
public class InstantAdapter {
@ToJson
String toJson(Instant instant) {
return instant.toString();
}
@FromJson
Instant... | true |
f46a758a495819d5803aa6c0484fb871b937d568 | Java | swathisprasad/citrus | /tools/remote/citrus-remote-server/src/main/java/com/consol/citrus/remote/model/RemoteResult.java | UTF-8 | 5,617 | 2.21875 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2006-2018 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 app... | true |
6518f78165f9647b56361ab44355274a94ca3e52 | Java | VinsUni/tinkubator | /lopsided/lopsided-farm/src/main/java/org/linkedprocess/farm/AbortJobPacketListener.java | UTF-8 | 3,095 | 2.28125 | 2 | [
"MIT"
] | permissive | package org.linkedprocess.farm;
import org.jivesoftware.smack.packet.IQ;
import org.jivesoftware.smack.packet.Packet;
import org.jivesoftware.smack.packet.XMPPError;
import org.linkedprocess.LopError;
import org.linkedprocess.LinkedProcess;
import org.linkedprocess.farm.os.Vm;
import org.linkedprocess.farm.os.errors.J... | true |
76912c3c17089a290e4c5930b1cb2fa10fe3a4b2 | Java | Ban-zee/Learning | /P39.java | UTF-8 | 574 | 3.015625 | 3 | [] | no_license | import java.io.*;
class P39
{
public static void main(String[]args)throws IOException
{
BufferedReader k=new BufferedReader(new InputStreamReader(System.in));
System.out.println("Please enter the range");
int n=Integer.parseInt(k.readLine());
char ch='a';
String A="";
A=A+ch;
int i,j,x=n-1,c;... | true |
d7e16f75bf630c330a496fbb53333484f525a6ff | Java | ggjyp/graduation-greenhouse-web | /src/main/java/com/jyp/greenhouse/core/util/HttpUtil.java | UTF-8 | 1,388 | 2.53125 | 3 | [] | no_license | package com.jyp.greenhouse.core.util;
import com.alibaba.fastjson.JSONObject;
import java.io.InputStreamReader;
import java.net.HttpURLConnection;
import java.net.URL;
import java.util.Scanner;
/**
* Author : jyp
* Date : 2017-05-04 17:31
* Describe :
*/
public class HttpUtil {
/**
* 访问urlTemp并获取J... | true |
61f85d77727bc4b9f60d09d4338cb34d1bdb0913 | Java | antoshkaplus/Android_Words | /app/src/main/java/com/antoshkaplus/words/StatsUpdateLocal.java | UTF-8 | 2,962 | 2.078125 | 2 | [] | no_license | package com.antoshkaplus.words;
import android.content.Context;
import android.os.AsyncTask;
import com.antoshkaplus.words.backend.dictionaryApi.DictionaryApi;
import com.antoshkaplus.words.backend.dictionaryApi.model.ForeignWordScoreList;
import com.antoshkaplus.words.backend.dictionaryApi.model.ForeignWordStats;
im... | true |
6dfd9cbc7b610ebe14c0c9b7be8bb2106b4b2290 | Java | sohyongsheng/textBuddy | /TextBuddy/test/textbuddy/ui/TaskManagerTest.java | UTF-8 | 6,627 | 3.15625 | 3 | [] | no_license | package textbuddy.ui;
import static org.junit.Assert.*;
import java.util.ArrayList;
import org.junit.Test;
public class TaskManagerTest {
private TaskManager textBuddy;
private String testDescription;
private String anotherTestDescription;
private String taskDescriptionStartingWithAlphabetZ;
pr... | true |
15a8be9685f5897a967b811fdd8094f45c3f99a4 | Java | mjd507/Meals | /common-utils/src/main/java/io/mjd507/eventbus/MealsDeadEvent.java | UTF-8 | 540 | 2.375 | 2 | [] | no_license | package io.mjd507.eventbus;
import com.google.common.eventbus.DeadEvent;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
* Created by mjd on 2018/6/13 19:41
*/
public class MealsDeadEvent extends DeadEvent {
private static final Logger logger = LoggerFactory.getLogger(MealsDeadEvent.class);
publi... | true |
96f64fd4a63752bb007e3cc5358cfdd39c3cac11 | Java | Wang-Jun-Chao/Lucene | /04-LuceneAnalyzer/src/org/itat/lucene/util/SampleSameWordContext.java | UTF-8 | 561 | 2.40625 | 2 | [] | no_license | package org.itat.lucene.util;
import java.util.HashMap;
import java.util.Map;
/**
* Author: 王俊超
* Date: 2015-09-01
* Time: 10:12
* Declaration: All Rights Reserved !!!
*/
public class SampleSameWordContext implements SameWordContext {
private Map<String, String[]> map = new HashMap<>();
public SampleSam... | true |
1076c88151b1de0274d3e8ee4fce3b8a456e337b | Java | ranansousa/Sistemas | /Finance/src/br/com/pempec/finance/daosIf/BancoDAOIf.java | UTF-8 | 924 | 2.15625 | 2 | [] | no_license | package br.com.pempec.finance.daosIf;
import br.com.pempec.finance.exceptions.SystemException;
import br.com.pempec.finance.models.BancoModel;
import java.util.Collection;
import java.util.List;
/**
* @author PEMPEC
*/
public interface BancoDAOIf {
public void inserir(BancoModel model) throws Syste... | true |
b9e318cf0c29d449e0f60dfe3e5cec86eb689625 | Java | cha63506/CompSecurity | /domioz-source/src/com/nuance/b/a/s.java | UTF-8 | 777 | 2.125 | 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.nuance.b.a;
public final class s extends Enum
{
public static final s a;
public static final s b;
public static final ... | true |
983871831d216c35ed73f2c1c41bb2df5f07065c | Java | RuyuWei/LeetCodeExercise | /src/easy/RemoveDuplicates.java | UTF-8 | 1,560 | 4.28125 | 4 | [] | no_license | package easy;
/**
* @author eruyuwe
* @date 2019/04/11
*
* Given a sorted array nums, remove the duplicates in-place such that each element appear only once and return
* the new length.
*
* Do not allocate extra space for another array, you must do this by modifying the input array in-place ... | true |
e42abff9c4600eb2b9a3f7010f1aa1dd62865688 | Java | TheLMiffy1111/JAOPCA | /src/main/java/thelm/jaopca/compat/thermalexpansion/recipes/ChillerRecipeSerializer.java | UTF-8 | 3,509 | 2.203125 | 2 | [
"MIT"
] | permissive | package thelm.jaopca.compat.thermalexpansion.recipes;
import java.util.ArrayList;
import java.util.List;
import java.util.Objects;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import com.google.gson.JsonArray;
import com.google.gson.JsonElement;
import com.google.gson.JsonObjec... | true |
9cfce1a87e187ce327a2e03e2385ffe702881bf6 | Java | SJTUhorstmann/LeetCode_Everyday | /yangpf/topic215_数组中第K个最大元素/桶排序.java | UTF-8 | 529 | 2.9375 | 3 | [] | no_license | class Solution {
public int findKthLargest(int[] nums, int k) {
int max=Integer.MIN_VALUE;
int min=Integer.MAX_VALUE;
for(int num:nums){
max=Math.max(max,num);
min=Math.min(min,num);
}
int[] bucket=new int [max-min+1];
for(int num:nums){
... | true |
d96c08d577997f079f312b8f8d19e6bbe925932d | Java | shaz312/Vehicle-Breakdown-Mechanic-Finder | /app/src/main/java/com/example/newproject/ChatMechanicActivity.java | UTF-8 | 3,489 | 2.21875 | 2 | [] | no_license | package com.example.newproject;
import androidx.appcompat.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.EditText;
import android.widget.ImageButton;
import android.widget.ListView;
import com.google.firebase.database.ChildEventListener;
import com.google.firebase.da... | true |
8f29aa074d340f02a057220b4d88fb684bc02f88 | Java | migeniya/JD2018-12-10 | /src/by/it/yarmolenka/jd01_04/InOut.java | UTF-8 | 584 | 3.21875 | 3 | [] | no_license | package by.it.yarmolenka.jd01_04;
class InOut {
static double[] getDoubleArray(String s) {
s = s.trim();
String[] array = s.split(" ");
double[] arr = new double[array.length];
for (int i = 0; i < arr.length; i++) arr[i] = Double.parseDouble(array[i]);
return arr;
}
... | true |
1ed8a3cd21fdb546ec2afb70c321ef59d0d95100 | Java | cha63506/CompSecurity | /king_J_bible_source/src/com/hmobile/biblekjv/MainBookActivity$1$1.java | UTF-8 | 1,626 | 1.601563 | 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.hmobile.biblekjv;
import android.os.Handler;
import android.os.Message;
import android.view.animation.Animation;
import android.view... | true |
3bbef6ceb6372272c5ab44109dbbdd32db31f697 | Java | richie1412/git_hub_rep | /wxxr-mobile-client/wxxr-mobile-common/src/com/wxxr/mobile/core/log/api/annotation/LogMessage.java | UTF-8 | 831 | 2.53125 | 3 | [] | no_license | package com.wxxr.mobile.core.log.api.annotation;
import java.lang.annotation.Documented;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;
import com.wxxr.mobile.core.log.api.SeverityLevel;
import static java.lang.annotation.ElementType.METHOD;
import static java.lang.annotation.RetentionPoli... | true |
aebb89e725574e607d17e9a12570e78d2b11f2b3 | Java | zhangpingpingSmart/lsp | /src/main/java/com/zpp/lsp/mapper/GoodsFormatMpper.java | UTF-8 | 367 | 1.695313 | 2 | [] | no_license | package com.zpp.lsp.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zpp.lsp.pojo.GoodsFormat;
/**
* @Author: 张平平
* @Date: 2021/3/22 16:13
*/
public interface GoodsFormatMpper extends BaseMapper<GoodsFormat> {
GoodsFormat getGoodsByGoodsFormatId(String goodsFormatId);
void delete... | true |
90c6f480331907c12ee6cc5807d1e7ef7d7a014f | Java | mychen-ustc/myCodingPro | /src/main/java/com/offer/_65_add.java | UTF-8 | 1,109 | 4.28125 | 4 | [] | no_license | /**
* // 65. 不用加减乘除做加法
* // 难度:简单
* // 写一个函数,求两个整数之和,要求在函数体内不得使用 “+”、“-”、“*”、“/” 四则运算符号。
* //
* // 示例:
* // 输入: a = 1, b = 1
* // 输出: 2
* //
* // 提示:
* // a, b 均可能是负数或 0
* // 结果不会溢出 32 位整数
*/
package com.offer;
class Solution_65 {
public int add(int a, int b) {
// 无进位和 与 异或运算... | true |
bbb012cf8c7079849ef6e223c7079bb9d42a8418 | Java | zhongxingyu/Seer | /Diff-Raw-Data/2/2_b2aac0721169c038cab6f5ba2b8e501a8c9dec40/XtendCompilerTest/2_b2aac0721169c038cab6f5ba2b8e501a8c9dec40_XtendCompilerTest_s.java | UTF-8 | 114,835 | 2.046875 | 2 | [] | no_license | package org.eclipse.xtend.core.tests.compiler;
import com.google.inject.Inject;
import org.eclipse.emf.common.util.EList;
import org.eclipse.xtend.core.jvmmodel.IXtendJvmAssociations;
import org.eclipse.xtend.core.tests.AbstractXtendTestCase;
import org.eclipse.xtend.core.xtend.XtendClass;
import org.eclipse.x... | true |
059b094a02f897346e8ce503bb6ce56136835f20 | Java | bcgit/bc-java | /pkix/src/main/jdk1.3/org/bouncycastle/cert/jcajce/ProviderCertHelper.java | UTF-8 | 734 | 2.453125 | 2 | [
"Apache-2.0",
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | package org.bouncycastle.cert.jcajce;
import java.security.Provider;
import java.security.NoSuchProviderException;
import java.security.cert.CertificateException;
import java.security.cert.CertificateFactory;
class ProviderCertHelper
extends CertHelper
{
private final Provider provider;
ProviderCertHelpe... | true |
ea7d09fcf37e4a9288e9b650dc153ef1f3f961cb | Java | yanzj/hhsite | /nlbs/V1.0.3/src/main/java/com/vilio/nlbs/util/MessageModel.java | UTF-8 | 945 | 2.625 | 3 | [] | no_license | package com.vilio.nlbs.util;
/**
* Created by dell on 2017/6/22/0022.
*/
public enum MessageModel {
MSG_001("001", "房产待评估通知"),
MSG_002("002", "房产已评估通知"),
MSG_003("003", "房产正在评估通知");
private String code;
private String title;
private MessageModel(String code, String title) {
this.co... | true |
bd811d2958d2d8e8e18ebf81345ec21aa83e91d3 | Java | hwong3251/classwork | /Person/src/Student.java | UTF-8 | 570 | 2.484375 | 2 | [] | no_license |
public class Student extends Person{
private String school;
private double osis;
private int gradelevel;
private double GPA;
private String[]classes;
private String[] greetings={"Hi","TGIF"};
public String greetings()
{
return "";
}
@Override
public String toString()
{
return"";
... | true |
0be1a4fd028239795b9c12838d178f27c653909b | Java | shekharAggarwal/URDriver | /app/src/main/java/com/urdriver/urdriver/Adapter/UserRequestAdminAdapter.java | UTF-8 | 19,655 | 2 | 2 | [
"Apache-2.0"
] | permissive | package com.urdriver.urdriver.Adapter;
import android.app.Activity;
import android.content.Intent;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import android.widget.TextView;
import android.widget.Toast;
import and... | true |
9d51a8504e905dc8b358ed7653b9e37841ab9ddf | Java | wenhao90/Java | /com.test.reader.writer/ReaderWriterWithLock.java | UTF-8 | 1,408 | 3.703125 | 4 | [] | no_license | package test1;
import java.util.concurrent.locks.ReadWriteLock;
import java.util.concurrent.locks.ReentrantReadWriteLock;
public class ReaderWriterWithLock implements ReaderWriter {
// 共享数据, 只能有一个线程能写该数据, 但可以有多个线程同时读该数据
private Object data = 0;
// 读写锁
private ReadWriteLock rwl = new ReentrantReadWriteLock();
/*... | true |
ac07817ea4a18220974641b39650ef6d64f5002e | Java | isc277/Ian_Campbell_2014 | /Android/iRU/src/edu/radford/softeng16/iRU/ActivitiesFeedParserFactory.java | UTF-8 | 599 | 2.390625 | 2 | [] | no_license | package edu.radford.softeng16.iRU;
public abstract class ActivitiesFeedParserFactory {
static String feedUrl = "https://php.radford.edu/~rspace/?feed=rss2";
public static FeedParser getParser(){
return getParser(ParserType.ANDROID_SAX);
}
public static FeedParser getParser(ParserType type){
switch (type){
... | true |
5c711c0080cf8342962e847dd063a5ecd8c12ac9 | Java | prakumis/javaTechPoc | /shop-web/src/test/java/com/nyp/shopping/web/controller/ProductCategoryControllerTest.java | UTF-8 | 6,209 | 1.976563 | 2 | [] | no_license | /**
*
*/
package com.nyp.shopping.web.controller;
import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.delete;
import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.get;
import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.... | true |
4c9b4c788e8f10f4ad086cbd004e1b7bf97a77ef | Java | jinx77/competitive | /src/main/java/com/xinzuo/competitive/pojo/User.java | UTF-8 | 1,270 | 2.046875 | 2 | [] | no_license | package com.xinzuo.competitive.pojo;
import java.io.Serializable;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
/**
* <p>
* 用户表
* </p>
*
* @author jc
* @since 2019-0... | true |
47d414c6b7bb0a7e4a7ebe0ada96b465406fd0e8 | Java | ShadowRavenGames/SmeltersForge | /smeltersforge_common/uk/co/shadowravengames/smeltersforge/models/TestModel.java | UTF-8 | 1,843 | 2.5625 | 3 | [] | no_license | // Date: 07/05/2013 21:36:01
// Template version 1.1
// Java generated by Techne
// Keep in mind that you still need to fill in some blanks
// - ZeuX
package uk.co.shadowravengames.smeltersforge.models;
import net.minecraft.client.model.ModelBase;
import net.minecraft.client.model.ModelRenderer;
import net.minec... | true |
8f521b52e449eb6607d2c5e35977aad5a71c018f | Java | redmaple1/framework-spring | /aop/src/main/java/com/redmaple/spring/aop/invocation/MethodInvocation.java | UTF-8 | 286 | 2.203125 | 2 | [] | no_license | package com.redmaple.spring.aop.invocation;
import java.lang.reflect.Method;
/**
* @Author: renmagical
* @Date: 2019-02-04 15:50
* @Description:
*/
public interface MethodInvocation {
Method getMethod();
Object[] getArguments();
Object proceed() throws Throwable;
}
| true |
0331049c345e671695143b26bcabda4f67399e1b | Java | Oracle-Exam-Preparation/OCA | /src/main/java/com/trl/method/inheritance/interface_/default_methods/a1/a2/Experience.java | UTF-8 | 823 | 3.46875 | 3 | [] | no_license | package com.trl.method.inheritance.interface_.default_methods.a1.a2;
/**
* This class is created for educational purposes.
* This class may contain sham information.
* Always check the information you are learning.
*
* @author Tsyupryk Roman
* @email tsyupryk.roman@gmail.com
* @since 17/9/19
*/
public class Ex... | true |
76f25c3f8b97ea3b0581a6c0441b59244a542965 | Java | Farmerc92/SimpleCrypt | /Crypto/src/test/java/com.zipcodewilmington.simplecrypt/FileWriterROT13Test.java | UTF-8 | 1,128 | 2.90625 | 3 | [
"MIT"
] | permissive | package com.zipcodewilmington.simplecrypt;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
import java.io.*;
public class FileWriterROT13Test {
@Before
public void init(){
ROT13 cipher = new ROT13();
cipher.encryptTextFile(new File("sonnet18.txt"));
cipher.d... | true |
5f8c9ca386470411ec56b41b279c9ea3811126b1 | Java | BenGoBlue05/Dollar-Scholar | /app/src/main/java/com/scholar/dollar/android/dollarscholarbenlewis/model/CollegeBasic.java | UTF-8 | 2,402 | 2.4375 | 2 | [] | no_license | package com.scholar.dollar.android.dollarscholarbenlewis.model;
import com.google.firebase.database.Exclude;
import com.google.firebase.database.IgnoreExtraProperties;
import java.util.HashMap;
import java.util.Map;
/**
* Created by bplewis5 on 10/3/16.
*/
@IgnoreExtraProperties
public class CollegeBasic {
pub... | true |
b6ae19a37c51e2258fe6274ebfa54c8aa40b4f9f | Java | mburrows02/pkts | /pkts-core/src/main/java/io/pkts/filters/DummyFilter.java | UTF-8 | 236 | 1.765625 | 2 | [
"MIT"
] | permissive | package io.pkts.filters;
import io.pkts.packet.Packet;
public class DummyFilter implements Filter {
@Override
public boolean accept(Packet packet) throws FilterException {
// TODO Auto-generated method stub
return false;
}
}
| true |
71be943cc2928178451b959897caf5e677216791 | Java | sangameshwar2804/all | /java prep/src/SecondLargest.java | UTF-8 | 343 | 3.03125 | 3 | [] | no_license |
public class SecondLargest {
public static void main(String[] args) {
int[] arr= {1,0,1,0};
for(int i=1;i< arr.length;i++) {
if(arr[i] < arr[i-1] )
{
arr[i] =arr[i] +arr[i-1];
arr[i -1 ] = arr[i] -arr[i-1];
arr[i] = arr[i] - arr[i-1];
i=0;
}
}
for(int i=0;i<arr.length;i++) {
System.out.p... | true |
f8a2357a04a8f4487f5d819e70202a1528d3baf5 | Java | carcaceres/backendtiempo | /src/java/dao/Main.java | UTF-8 | 916 | 2.390625 | 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 dao;
import entidad.DatosClima;
import servicio.Servicios;
/**
*
* @author Carlos
*/
public class Main {
/**
* @... | true |
1fb43b0214ca41af496a15a4c70c5d48547db702 | Java | corydissinger/java-megaman-yahtzee | /src/main/java/ui/LobbyMenu.java | UTF-8 | 9,132 | 2.78125 | 3 | [] | no_license | package main.java.ui;
/**
* LobbyMenu provides the players an opportunity to chat and declare readiness.
* Uses an inner updater Thread class to periodically receive chat information.
*
* @author Cory
* @version $Id: $Id
*/
import java.awt.Color;
import java.awt.Dimension;
import java.awt.Font;
import java.awt.... | true |
153592ec78c895f252530e3fe77e2cc00271f8ef | Java | tonylim01/AMFDummy | /src/main/java/media/platform/amf/engine/types/EngineResponseHeader.java | UTF-8 | 1,126 | 2.171875 | 2 | [] | no_license | package media.platform.amf.engine.types;
public class EngineResponseHeader {
public String type;
public String cmd;
public String appId;
public String result;
public String reason;
public EngineResponseHeader(String type, String cmd, String appId, String result, String reason) {
this.t... | true |
381f387090dd968ec157407b0c960c2038f19029 | Java | TheMasteredPanda/VoyageCore | /src/main/java/cm/pvp/voyagepvp/voyagecore/api/player/PlayerWrapper.java | UTF-8 | 381 | 2.390625 | 2 | [] | no_license | package cm.pvp.voyagepvp.voyagecore.api.player;
import lombok.Getter;
import org.bukkit.entity.Player;
import java.lang.ref.WeakReference;
/**
* Wrapper template for player wrappers.
*/
public class PlayerWrapper
{
@Getter
private WeakReference<Player> reference;
public PlayerWrapper(Player player)
... | true |
be82d2f62439175136979c8ec2f8026922484c8c | Java | mdelacalle/glob3mobile | /Glob3Demo/g3m/src/main/java/org/glob3/mobile/generated/QuadTree_Element.java | UTF-8 | 384 | 2.109375 | 2 | [
"BSD-2-Clause"
] | permissive | package org.glob3.mobile.generated;
public class QuadTree_Element
{
public final Sector _sector ;
public final QuadTree_Content _content;
public QuadTree_Element(Sector sector, QuadTree_Content content)
{
_sector = new Sector(sector);
_content = content;
}
public void dispose()
{
... | true |
cb9af0d37a5195eb0150443362bafca2c514f97b | Java | PicnicSupermarket/error-prone | /check_api/src/main/java/com/google/errorprone/matchers/Contains.java | UTF-8 | 2,052 | 2.546875 | 3 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2015 The Error Prone 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 applicable law ... | true |
c6a525819c44cfa91be522802b4bac86aa1f9468 | Java | andressalh/eleicao | /eleicoes/src/Classes/Estado.java | UTF-8 | 895 | 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 Classes;
/**
*
* @author Mozãooooo
*/
public class Estado {
int id_estado;
String nome_estado;
S... | true |
75199c9ea74c9a9ac3aa42ac65bbfcf3acb94adb | Java | huhanghao/MvpModuleFramework | /app_sample/src/main/java/com/hhh/app_index/activity/UtilViewSampleActivity.java | UTF-8 | 9,907 | 1.6875 | 2 | [] | no_license | package com.hhh.app_index.activity;
import android.app.Dialog;
import android.content.Context;
import android.graphics.drawable.Drawable;
import android.os.Bundle;
import android.util.DisplayMetrics;
import android.view.Gravity;
import android.view.View;
import android.view.ViewGroup;
import android.view.Window;
impor... | true |
0f4b5f809a986c1e346112955246e121d8e8fd8a | Java | wesleynoblehewitt/Dissertation | /engine_yuki/BoundingCircle.java | UTF-8 | 1,572 | 2.78125 | 3 | [] | no_license | package engine_yuki;
import java.util.ArrayList;
import org.newdawn.slick.Color;
import org.newdawn.slick.Graphics;
import org.newdawn.slick.geom.Ellipse;
/**
* Circular bounding shape
* @author Wesley
*
*/
public class BoundingCircle extends BoundingShape {
float radius;
public BoundingCircle(float radius... | true |
bafff33cbeeae3e356d9f6af4e4c0b6883724afd | Java | lk96/patterns-java | /acyclic-visitor/src/main/java/org/kevin/prototype/acyclicvisitor/ZoomVisitor.java | UTF-8 | 126 | 1.835938 | 2 | [] | no_license | package org.kevin.prototype.acyclicvisitor;
public interface ZoomVisitor extends ModemVisitor{
void visit(Zoom zoom);
}
| true |
82b7df58554030f6413774f364e642f4c393c6a3 | Java | fahadnasrullah109/KalturaClient-Android | /KalturaClient/src/main/java/com/kaltura/client/types/AdCuePoint.java | UTF-8 | 6,123 | 1.945313 | 2 | [
"MIT"
] | permissive | // ===================================================================================================
// _ __ _ _
// | |/ /__ _| | |_ _ _ _ _ __ _
// | ' </ _` | | _| || | '_/ _` |
// |_|\_\__,_|_|\__|\_,_|_| \_... | true |
a70ee4a6ae65769592842ac4ff48cdbad87d7af8 | Java | yellareddy1/HM_Ramya | /CITS/src/com/reports/AllTest/SelectedIssuesTabExportFunctionality.java | UTF-8 | 1,100 | 1.742188 | 2 | [] | no_license | package com.reports.AllTest;
import org.testng.annotations.BeforeClass;
import org.testng.annotations.Test;
import com.reports.bussinesslib.ITS_Summary_Navigate;
import com.reports.bussinesslib.LoginHM;
import com.reports.bussinesslib.selectedIssueTab;
import com.reports.commonlib.ExcelLib;
import com.reports.commonl... | true |
e4e59eb894d4b6fbc30b3ad8f8db152bbeaa4ac1 | Java | AY1920S2-CS2103T-F09-3/main | /src/main/java/igrad/services/Routes.java | UTF-8 | 327 | 1.703125 | 2 | [
"MIT"
] | permissive | package igrad.services;
//@@author waynewee
/**
* Contains NUSMods path and file names.
*/
public class Routes {
public static final String NUS_MODS_ROOT = "https://api.nusmods.com";
public static final String NUS_MODS_INDEX_JSON = "index.json";
public static final String NUS_MODS_MODULES_DIR = "module... | true |
99ca453c8298c3b67267879e3f42638f5676da0e | Java | sujl95/URL_Shortener | /src/main/java/me/thewing/url_shortening/service/UrlService.java | UTF-8 | 4,051 | 2.375 | 2 | [] | no_license | package me.thewing.url_shortening.service;
import java.time.Duration;
import java.time.LocalDateTime;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
import javax.servlet.http.HttpServletRequest;
import org.springframework.stereotype.Service;
im... | true |
2f8df0b4ebe615c43a5df71abe6596c8624118f3 | Java | shonayevshyngys/ktzhmanagement | /src/main/java/server/web/Handlers/UserInfoHandler.java | UTF-8 | 1,530 | 2.390625 | 2 | [] | no_license | package server.web.Handlers;
import io.javalin.Context;
import io.javalin.Handler;
import org.jetbrains.annotations.NotNull;
import server.domain.dao.UserDAO;
import server.domain.model.User;
import server.web.Utils.UserData;
import server.web.response_models.UserInfo;
public class UserInfoHandler implements Handler ... | true |
8746df737eb4c0ac0bed52bea3b75112298807d5 | Java | khaipk/girlloginboard | /src/login/GirlLogin.java | UTF-8 | 7,408 | 2.953125 | 3 | [] | no_license | package login;
import java.awt.BorderLayout;
import java.awt.EventQueue;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;
import javax.swing.JLabel;
import javax.swing.JOptionPane;
import javax.swing.JTextField;
import javax.swing.JPasswordField;
import javax.swing.JButton;... | true |
54a4b0be23b8cc875c3e462df325717f8ecefcdc | Java | clmoten84/Chatter | /lambda_apis/ChatterFileService/src/com/chatter/fileservice/exceptions/PropertyRetrievalException.java | UTF-8 | 416 | 2.390625 | 2 | [] | no_license | package com.chatter.fileservice.exceptions;
/**
* PropertyRetrievalException
* @author coreym
*
* Exception that gets thrown when a service property
* is unable to be retrieved from a service based
* properties file.
*/
public class PropertyRetrievalException extends Exception{
private static final long seria... | true |
faf7119bb05793eedda2f8752a98a1b86a525be0 | Java | jutrgo/MyGymPemAndroid | /app/src/main/java/proyecto/pem/mygym/estiramientos/EstiramientosPresenter.java | UTF-8 | 413 | 1.835938 | 2 | [] | no_license | package proyecto.pem.mygym.estiramientos;
import proyecto.pem.mygym.AppMediador;
public class EstiramientosPresenter implements IEstiramientosPresenter {
private AppMediador appMediador;
public EstiramientosPresenter(){
appMediador = AppMediador.getInstance();
}
@Override
... | true |
c893250ad61140692a8da9a159c7c81a4fdc23ce | Java | s11110101111/javaPersistenceInAction | /JavaPersistenceInAction-attached/src/main/java/de/gedoplan/beantrial/jpia/producer/EntityManagerProducer.java | UTF-8 | 2,221 | 2.40625 | 2 | [] | no_license | package de.gedoplan.beantrial.jpia.producer;
import de.gedoplan.baselibs.utils.util.ObjectUtil;
import java.io.Serializable;
import javax.enterprise.context.ApplicationScoped;
import javax.enterprise.context.ConversationScoped;
import javax.enterprise.inject.Any;
import javax.enterprise.inject.Disposes;
im... | true |
3d36a42ac6ef47e8aba1bd3486a157106140c48d | Java | soitun/collide | /client/src/main/java/com/google/collide/client/code/WorkspaceLocationBreadcrumbs.java | UTF-8 | 11,767 | 1.96875 | 2 | [
"Apache-2.0"
] | permissive | // Copyright 2012 Google Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable... | true |
415fb453eaf26c59547dd107766edb6352713fea | Java | DLukin911/restaurant_voting | /src/test/java/ru/dlukin/restaurant_voting/testdata/RestaurantTestData.java | UTF-8 | 1,279 | 2.390625 | 2 | [] | no_license | package ru.dlukin.restaurant_voting.testdata;
import ru.dlukin.restaurant_voting.MatcherFactory;
import ru.dlukin.restaurant_voting.model.MenuItem;
import ru.dlukin.restaurant_voting.model.Restaurant;
import java.time.LocalDate;
import java.util.List;
public class RestaurantTestData {
public static final Matcher... | true |
e93cbc63fdfc568c0739284f02f1f80cc906b7aa | Java | sergio921214/repoADN | /java-arquitectura-hexagonal/microservicio/infraestructura/src/main/java/com/ceiba/rentarauto/adaptador/repositorio/RepositorioRentarAutoMysql.java | UTF-8 | 1,484 | 2.046875 | 2 | [] | no_license | package com.ceiba.rentarauto.adaptador.repositorio;
import com.ceiba.infraestructura.jdbc.CustomNamedParameterJdbcTemplate;
import com.ceiba.infraestructura.jdbc.sqlstatement.SqlStatement;
import com.ceiba.rentarauto.modelo.entidad.RentarAuto;
import com.ceiba.rentarauto.puerto.repositorio.RepositorioRentarAuto;
impor... | true |
b4d766113c7296fb6392d0282d5f8f097954646a | Java | safeer2345/saraswathimedicals | /src/main/java/com/aitrich/saraswathimedicals/service/ProductRateService.java | UTF-8 | 600 | 2.203125 | 2 | [] | no_license | package com.aitrich.saraswathimedicals.service;
import com.aitrich.saraswathimedicals.repository.ProductRateRepository;
import javax.transaction.Transactional;
import org.springframework.stereotype.Service;
@Service
@Transactional
public class ProductRateService {
private ProductRateRepository productRateReposit... | true |
069bfe79f4bfed2fd303e60a6bc46699ba9c1610 | Java | Edutsi/academy | /src/main/java/br/com/academy/controllers/UsuarioController.java | UTF-8 | 2,808 | 2.390625 | 2 | [] | no_license | package br.com.academy.controllers;
import java.security.NoSuchAlgorithmException;
import javax.servlet.http.HttpSession;
import javax.validation.Valid;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.validation.BindingResult... | true |
b9588afba3901b95880e3049fed41bff0c729454 | Java | Alfonsog10/Reimbursement-Project | /Project/NewProject/src/main/java/com/alfonso/models/Reimburs.java | UTF-8 | 2,684 | 2.59375 | 3 | [] | no_license | package com.alfonso.models;
public class Reimburs {
private Integer reimb_id;
private Integer emp_id;
private Double amount;
private String reason;
private String status;
public Reimburs() {
super();
}
public Reimburs (Integer reimb_id, Integer emp_id, Double amount, String reason, String status) {
su... | true |
36c25a7ce408bef04ec240c392240d7073c237d4 | Java | abinshoby/javaassignment | /JavaAssignment/src/javaassignment/Main.java | UTF-8 | 12,708 | 3.21875 | 3 | [] | no_license | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package javaassignment;
import journals.*;
import books.*;
import java.util.Scanner;
/**
*
* @author Dell
*
*/
class staff{
St... | true |
bb6a822b388aae294d5aee9cf6c30db6abd566d3 | Java | Sgalvezz/Trivial-IT | /Trivial-IT/app/src/main/java/com/dam2/trivial_it/Quiz.java | UTF-8 | 15,781 | 2.046875 | 2 | [] | no_license | package com.dam2.trivial_it;
import android.content.Intent;
import android.database.sqlite.SQLiteDatabase;
import android.graphics.Color;
import android.media.MediaPlayer;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;
import a... | true |
a2672730571fa6e1f45aa74660b6194d3692bed1 | Java | dimplesin/DataStructuresAndAlgorithms | /src/com/company/amazon/BookKarumanchi/DataStructures/Trees/BinaryTrees/BinaryTreeFindMax.java | UTF-8 | 1,176 | 3.75 | 4 | [] | no_license | package com.company.amazon.BookKarumanchi.DataStructures.Trees.BinaryTrees;
/**
* Give an algorithm for finding maximum element in binary tree
*/
public class BinaryTreeFindMax {
public int FindMax(BinaryTreeNode root){
int root_val, left, right, max = Integer.MIN_VALUE;
if(root != null){
... | true |
8a5fd14f0ba7043b479bde3a9e1d63cd7e379add | Java | pulumi/pulumi-aws | /sdk/java/src/main/java/com/pulumi/aws/kms/KmsFunctions.java | UTF-8 | 40,064 | 1.726563 | 2 | [
"BSD-3-Clause",
"Apache-2.0",
"MPL-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.aws.kms;
import com.pulumi.aws.Utilities;
import com.pulumi.aws.kms.inputs.GetAliasArgs;
import com.pulumi.aws.kms.inputs.GetAliasPlainArgs;
import com.p... | true |
033ad16901adc4e3bcc899425f1a6d3113d118d7 | Java | MthreeTeam2/OrderBook | /OrderBook/src/main/java/com/mthree/OrderBook/controllers/TradeController.java | UTF-8 | 1,995 | 2.203125 | 2 | [] | no_license | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package com.mthree.OrderBook.controllers;
import com.mthree.OrderBook.entities.OrderVersion;
import com.mthree.OrderBook.entities.Stoc... | true |
e9a7aa9bd9e874089bb9fd8ddf93178e41f581c7 | Java | illusioni/templefinder | /src/main/java/com/dd/templefinder/repository/TempleRepositoryDummyImpl.java | UTF-8 | 1,104 | 2.796875 | 3 | [] | no_license | package com.dd.templefinder.repository;
import com.dd.templefinder.models.Temple;
import com.fasterxml.jackson.databind.ObjectMapper;
import org.springframework.stereotype.Repository;
import org.springframework.util.ResourceUtils;
import java.io.File;
import java.io.IOException;
import java.util.ArrayList;
import jav... | true |
638c4b9ba8725bce0052c77e01ff382d9184fb8b | Java | AnbarasanIT/Parameterization-Selenium-Webdriver-2.0 | /Selenium Webdriver 2.0 Data Provider Concepts/src/main/java/com/bestbuy/search/merchandising/wrapper/FacetBaseWrapper.java | UTF-8 | 13,381 | 2.203125 | 2 | [] | no_license | package com.bestbuy.search.merchandising.wrapper;
import java.util.Date;
import java.util.ArrayList;
import java.util.List;
import java.util.TreeMap;
import org.codehaus.jackson.annotate.JsonIgnoreProperties;
import org.codehaus.jackson.map.annotate.JsonDeserialize;
import org.codehaus.jackson.map.annotate.JsonSerial... | true |
09e4de796ba49104209326de8eb3edd592db85d3 | Java | mrminich/AndroidMultipleActivityDemo1 | /MainActivity.java | UTF-8 | 1,085 | 2.34375 | 2 | [] | no_license | package com.minich.multipleactivitiesdemo;
import android.support.v7.app.AppCompatActivity;
import android.app.ListActivity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.ArrayAdapter;
import android.widget.ListView;
public class MainActivity extends ListActi... | true |
1b71a0e3b03ba71c576279ac5f5844403f1cff93 | Java | armfahim/Job-Harvester | /src/test/java/io/naztech/jobharvestar/scraper/TestSTJamesHtml.java | UTF-8 | 3,185 | 2.4375 | 2 | [] | no_license | package io.naztech.jobharvestar.scraper;
import static org.junit.Assert.*;
import org.junit.AfterClass;
import org.junit.BeforeClass;
import org.junit.Test;
import java.io.IOException;
import java.net.MalformedURLException;
import java.util.List;
import com.gargoylesoftware.htmlunit.BrowserVersion;
import com.gargo... | true |
6f8af70049eafb060771042daaba8c12c0dbc99b | Java | yaonuan/xiaoer_shiro | /src/test/java/com/shiro/xiaoer/Md5Test.java | UTF-8 | 408 | 2.0625 | 2 | [] | no_license | package com.shiro.xiaoer;
import org.apache.shiro.crypto.hash.SimpleHash;
import org.junit.Test;
/**
* @Author : yaonuan
* @Email : 806039077@qq.com
* @Date : 2019/7/18
*/
public class Md5Test {
@Test
public void md5() {
String hashName = "md5";
String pwd = "123456789";
Object... | true |
327bb215a7755765d92efef5be65741261275d1a | Java | pinest94/algorithmStudy | /BOJ/src/algorithms/MergeSort.java | UTF-8 | 1,040 | 3.640625 | 4 | [] | no_license | package algorithms;
import java.util.Arrays;
public class MergeSort {
static int[] sorted;
public static void main(String[] args) {
int[] list = {1,5,3,2,8,4,9,6,7,6,4};
sorted = new int[list.length];
mergeSort(list, 0, list.length-1);
System.out.println(Arrays.toString(sorted));
}
private stati... | true |
4a47eae1dea74e8854ced86f12907fb9d584bab6 | Java | IDemiurge/Eidolons | /C-Engine/src/main/java/main/system/auxiliary/log/SpecialLogger.java | UTF-8 | 4,932 | 2.296875 | 2 | [] | no_license | package main.system.auxiliary.log;
import com.badlogic.gdx.utils.StringBuilder;
import main.data.filesys.PathFinder;
import main.game.core.game.Game;
import main.swing.generic.services.DialogMaster;
import main.system.PathUtils;
import main.system.auxiliary.EnumMaster;
import main.system.auxiliary.TimeMaster;
import m... | true |
1a1a2c6109b0b0d4a916d0978ee67fff0c035d65 | Java | Nexosis/nexosisclient-java | /src/main/java/com/nexosis/model/StatusMessage.java | UTF-8 | 682 | 2.28125 | 2 | [
"Apache-2.0"
] | permissive | package com.nexosis.model;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonPropertyOrder({
"severity",
"message"
})
public class Status... | true |
7122cf72d9193973f5e0e15196601c86189091f2 | Java | mythread/rongyi_source | /trade/src/main/java/net/shopxx/common/AdminLoginJCaptchaFilter.java | UTF-8 | 3,045 | 2.0625 | 2 | [] | no_license | package net.shopxx.common;
import java.io.IOException;
import java.net.HttpURLConnection;
import java.net.URL;
import java.net.URLConnection;
import javax.annotation.Resource;
import javax.servlet.Filter;
import javax.servlet.FilterChain;
import javax.servlet.FilterConfig;
import javax.servlet.ServletExcep... | true |
30b2dc9e298255b0f8684f85e7a854711d3a21af | Java | TarunPal3551/EarningGo | /app/src/main/java/com/avilaksh/earningo/Play_and_Earn_Activity.java | UTF-8 | 36,121 | 1.632813 | 2 | [] | no_license | package com.avilaksh.earningo;
import android.app.Dialog;
import android.content.DialogInterface;
import android.content.SharedPreferences;
import android.graphics.Color;
import android.graphics.drawable.ColorDrawable;
import android.os.Bundle;
import android.support.v7.app.AlertDialog;
import android.support.v7.app.A... | true |
f948f7f32c5100399109421399fa5551e453525e | Java | jeremiahkramer/battleship | /src/test/java/cs361/battleships/models/GameTest.java | UTF-8 | 13,742 | 2.890625 | 3 | [] | no_license | package cs361.battleships.models;
import org.junit.Test;
import java.util.ArrayList;
import java.util.List;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
public class GameTest {
@Test
public void testPlaceShipSuccessfulVerticalMinesweeper() {
... | true |
ee9d0ec6642898f1e091856257194733a1d5e413 | Java | 1022pkh/LoginPractice | /app/src/main/java/com/pkh/loginpractice/first/view/InputIP.java | UTF-8 | 4,243 | 2.234375 | 2 | [] | no_license | package com.pkh.loginpractice.first.view;
import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.util.Log;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.Toast;
import com.google.gson.Gson;... | true |
df4239b97df33ab791fef55452b2a32137377870 | Java | shivams1110/ConductorImplement | /app/src/main/java/com/assignment/shivamsharma/conductorimplementation/controller/DthController.java | UTF-8 | 710 | 2.046875 | 2 | [] | no_license | package com.assignment.shivamsharma.conductorimplementation.controller;
import android.support.annotation.NonNull;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import com.assignment.shivamsharma.conductorimplementation.R;
import com.assignment.shivamsharma.conductorimpl... | true |