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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
bb902f3da9369676b5ce686f029d1a3f6b4a2eda | Java | zhengt/kikaha | /kikaha-hazelcast/source/kikaha/hazelcast/config/HazelcastConfiguration.java | UTF-8 | 1,397 | 2.15625 | 2 | [
"Apache-2.0"
] | permissive | package kikaha.hazelcast.config;
import java.util.List;
import lombok.Getter;
import lombok.RequiredArgsConstructor;
import lombok.experimental.Accessors;
import com.typesafe.config.Config;
/**
* Represents the entries defined in application.conf file that belongs to
* hazelcast behavior configuration in Kikaha.
... | true |
a584a6cd903d1fb95898703894dbffb87e55fc42 | Java | amfchef/Java | /8. Objects/src/Student_8_7.java | UTF-8 | 1,150 | 3.953125 | 4 | [] | no_license | import java.util.ArrayList;
/**
* Implement a class Student. For the purpose of this exercise, a student has a
* name and a total quiz score. Supply an appropriate constructor and methods
* getName()
* addQuiz(int score)
* getTotalScore()
* getAverageScore()
* To compute the latter, you also need to store the n... | true |
0a9da0f3ab4f869fb2698830b3b365b26ca2cfc5 | Java | lixiaoaitaozi/hello_github | /kuaiyou/app/src/main/java/com/china/kuaiyou/activity/RqCodeActivity.java | UTF-8 | 1,607 | 1.945313 | 2 | [] | no_license | package com.china.kuaiyou.activity;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;
import com.china.kuaiyou.R;
import com.china.kuaiyou.mybase.BaseCompatActivity;
import com.china.kuaiyou.mybase.MyGson;
import com.china.kuaiyou.mybase.MySharePrefer... | true |
c5a1014187405a9e9cb4a3327114612d4ff8666a | Java | MatsHead/ManageEmployees | /src/main/java/pl/matshead/examapp/repositories/security_repositories/RoleRepository.java | UTF-8 | 371 | 1.945313 | 2 | [] | no_license | package pl.matshead.examapp.repositories.security_repositories;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
import pl.matshead.examapp.model.security_model.Role;
@Repository("roleRepository")
public interface RoleRepository extends JpaRepository<Ro... | true |
8b9ca1ea205f1874e507461ef0b071293c97aa7c | Java | murengera/Message-app | /app/src/main/java/com/example/myapplication/registeractivity.java | UTF-8 | 2,335 | 2.40625 | 2 | [] | no_license | package com.example.myapplication;
import android.content.ContentValues;
import android.content.Intent;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.wid... | true |
9d913806861d8d6f3576179c3bc69d3583e09e30 | Java | kostadin-georgiev97/Gizmoball | /src/model/FileManagement/InvalidLineFormatException.java | UTF-8 | 197 | 2.109375 | 2 | [] | no_license | package model.FileManagement;
import java.io.IOException;
public class InvalidLineFormatException extends IOException {
public InvalidLineFormatException(String s){
super(s);
}
}
| true |
441e1228200319d2d47adf79bf6c17f96dcf1f77 | Java | senemgenberova/relational_db | /Test.java | UTF-8 | 278 | 2.921875 | 3 | [] | no_license | public class Test {
public static void main(String args[]){
int n = Integer.parseInt(args[0]);
int n1 = 0, k=0;
while(n!=0){
n1 = n%10;
if(n1==0)
k++;
n = n/10;
}
if(k>=2){
System.out.println("YES");
}
else{
System.out.println("NO");
}
}
}
| true |
90bed35eeb370223c0c9159ec887525383a7c771 | Java | PnevinPanevin/dogs | /app/src/main/java/com/sharipov/dogs/model/data_provider/ApiManager.java | UTF-8 | 1,793 | 2.515625 | 3 | [] | no_license | package com.sharipov.dogs.model.data_provider;
import java.io.File;
import java.util.concurrent.TimeUnit;
import okhttp3.Cache;
import okhttp3.CacheControl;
import okhttp3.Interceptor;
import okhttp3.OkHttpClient;
import okhttp3.Response;
import retrofit2.Retrofit;
import retrofit2.adapter.rxjava2.RxJava2CallAdapter... | true |
382f4ce908ca0edc8529d19e471a484eed00e5b2 | Java | andreaziani/BacteriaSimulator | /src/model/bacteria/species/behavior/decisionmaker/AlwaysEatDecisionMaker.java | UTF-8 | 461 | 2.328125 | 2 | [] | no_license | package model.bacteria.species.behavior.decisionmaker;
import model.action.ActionType;
import model.bacteria.BacteriaKnowledge;
class AlwaysEatDecisionMaker extends ConditionalSimpleActionDecisionMaker {
AlwaysEatDecisionMaker() {
super(ActionType.EAT);
}
@Override
protected bool... | true |
25bda01364ceb02657fb15e50a7007e503f934bf | Java | gmash24/copwatch-app-sample | /app/src/main/java/com/example/myprojectapp/Mapping.java | UTF-8 | 2,803 | 2.15625 | 2 | [] | no_license | package com.example.myprojectapp;
import androidx.annotation.NonNull;
import androidx.appcompat.app.AppCompatActivity;
import androidx.fragment.app.FragmentActivity;
import android.os.Bundle;
import com.google.android.gms.maps.CameraUpdateFactory;
import com.google.android.gms.maps.GoogleMap;
import com.google.andro... | true |
3d3635eabc36187400e03e6661e63d94c6b01fd2 | Java | santhoshima10/MyJavaLearnings | /src/LeetCode/MyArrayStack.java | UTF-8 | 999 | 3.6875 | 4 | [] | no_license | package LeetCode;
public class MyArrayStack {
int[] myStack = new int[100];
int top = -1;
public static void main(String[] args){
MyArrayStack stack = new MyArrayStack();
stack.push(1);
System.out.println(stack.top());
stack.push(2);
System.out.println(stack.top())... | true |
e3b0663dbe4b62c7551b0f3c5c10a5d532a71cd7 | Java | kgromov/px-automation | /src/test/java/configuration/dataproviders/BuyerDataProvider.java | UTF-8 | 10,448 | 2.03125 | 2 | [] | no_license | package configuration.dataproviders;
import configuration.helpers.RequestedURL;
import dto.ObjectIdentityData;
import dto.TestDataError;
import org.json.JSONArray;
import org.json.JSONObject;
import org.testng.annotations.DataProvider;
import px.objects.DataMode;
import px.objects.buyers.BuyerTestData;
import px.objec... | true |
b931d49dd711cae89a95c38764325ed5b1cb8229 | Java | emmanuelfls371/softmart7547 | /src/edu/tdp2/client/widgets/NewProjectWidget.java | UTF-8 | 10,277 | 1.929688 | 2 | [] | no_license | package edu.tdp2.client.widgets;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import com.google.gwt.core.client.GWT;
import com.google.gwt.event.dom.client.ChangeEvent;
import com.google.gwt.event.dom.client.ChangeHandler;
import com.google.gwt.user.client.Wi... | true |
574339e53a3ffe8b72c2b0c6e1c8be16d1804b15 | Java | fredrikvernblom/School-projects | /ProjectSpringBootSchool/src/main/java/com/example/projectspringbootschool/ProjectSpringBootSchoolApplication.java | UTF-8 | 374 | 1.578125 | 2 | [] | no_license | package com.example.projectspringbootschool;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
public class ProjectSpringBootSchoolApplication {
public static void main(String[] args) {
SpringApplication.run(Proj... | true |
f83797edf812f8af89ed270ee747dd93154c573b | Java | joshiejack/Harvest-Festival | /src/main/java/uk/joshiejack/harvestcore/item/custom/ItemAchievement.java | UTF-8 | 837 | 2.203125 | 2 | [] | no_license | package uk.joshiejack.harvestcore.item.custom;
import net.minecraft.util.ResourceLocation;
import uk.joshiejack.harvestcore.data.custom.item.CustomItemAchievement;
import uk.joshiejack.harvestcore.scripting.AchievementScripting;
import uk.joshiejack.penguinlib.data.holder.Holder;
import uk.joshiejack.penguinlib.item.c... | true |
d1e30c793bb940ae87a296235cb59e19ad426805 | Java | kayuu0810/boss | /boss-oms/boss-oms-dao/src/main/java/com/boss/oms/dao/model/TBizInviteCode.java | UTF-8 | 3,900 | 2.390625 | 2 | [] | no_license | package com.boss.oms.dao.model;
import java.io.Serializable;
import java.util.Date;
public class TBizInviteCode implements Serializable {
private Integer id;
/**
* 邀请码
*
* @mbg.generated
*/
private String inviteCode;
/**
* 使用人
*
* @mbg.generated
*/
private... | true |
f927d25bd7d5c5368154251af54059868322cc53 | Java | MaDolphin/Business-Transfer-NewVillage | /src/com/NewVillage/dao/InspectionDao.java | UTF-8 | 197 | 1.71875 | 2 | [] | no_license | package com.NewVillage.dao;
import com.NewVillage.entity.Inspection;
/**
* Created by xfcq on 2016/6/3.
*/
public interface InspectionDao {
public void addInspect(Inspection inspection);
}
| true |
3d79b4e65031f55bdb029f2779c20bc8f5473ac9 | Java | confuse0/kaffatech-latte | /code/src/main/java/com/kaffatech/latte/ctx/cc/ConfigCenterManager.java | UTF-8 | 514 | 1.859375 | 2 | [] | no_license | package com.kaffatech.latte.ctx.cc;
import com.kaffatech.latte.ctx.cc.model.Cluster;
import com.kaffatech.latte.ctx.cc.model.ServerSnapshot;
import java.util.List;
/**
* @author lingzhen on 16/11/22.
*/
public interface ConfigCenterManager {
void heartbeat(String clusterName, String name, String health);
... | true |
0a6dc150224cd15857b410d2a24005a0a8b75267 | Java | DaliaW/Database-Engine-using-Java | /src/main/java/Annabelle/BPTree.java | UTF-8 | 5,148 | 2.765625 | 3 | [] | no_license | package Annabelle;
import java.io.IOException;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.LinkedList;
import java.util.Queue;
public class BPTree implements Serializable {
/**
*
*/
private static final long serialVersionUID = 1L;
private int order;
private BPTreeNode root;
St... | true |
016744bb267e19f76f63214ee7fb55a12e603a97 | Java | dixu11/Chess | /src/backend/model/figure/value/BoardSide.java | UTF-8 | 1,010 | 2.984375 | 3 | [] | no_license | package backend.model.figure.value;
public enum BoardSide {
TOP(1,2,4),
BOTTOM(8,7,5),
UNKNOWN(-1,-1,-1);
private int figuresRow;
private int pawnsRow;
private int pawnsDoubleMoveRow;
BoardSide(int figuresRow, int pawnsRow, int pawnsDoubleMoveRow) {
this.figuresRow = figuresRow;
... | true |
abaf4ced9d5c26ff0fdc54bb1f374c5f372b7620 | Java | marciprete/wldiag | /src/main/java/it/senape/wldiag/xml/DatabaseLessLeasingBasisType.java | UTF-8 | 6,787 | 1.554688 | 2 | [] | no_license | //
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2018.01.... | true |
5c416bf8edb3585f7fa37c3eba0365b3719bd1b4 | Java | dhuebner/Xpect | /org.xpect.xtext.xbase.lib/src/org/xpect/xtext/xbase/lib/XbaseWorkspaceDefaultsSetup.java | UTF-8 | 1,160 | 1.570313 | 2 | [] | no_license | package org.xpect.xtext.xbase.lib;
import org.eclipse.xtext.xbase.lib.Procedures;
import org.xpect.Environment;
import org.xpect.XpectReplace;
import org.xpect.XpectRequiredEnvironment;
import org.xpect.setup.ISetupInitializer;
import org.xpect.setup.XpectSetupFactory;
import org.xpect.setup.XpectSetupRoot;
import org... | true |
cc836ee1201b0a08b450d834c562b218d8b8d63a | Java | Lasthuman911/lightJava | /lighttestdemo/src/main/java/proxy/steady/BusinessAgent.java | UTF-8 | 751 | 2.515625 | 3 | [] | no_license | package proxy.steady;
import proxy.Sell;
import proxy.Vender;
/**
* 静态代理
* @author light
*/
public class BusinessAgent implements Sell {
private Vender mVender;
public BusinessAgent(Vender mVender) {
this.mVender = mVender;
}
@Override
public void sell() {
System.out.println... | true |
15cdc707923b1c0aefb79fb91e3c225a39444a23 | Java | PreXident/TextAn | /Client/src/main/java/cz/cuni/mff/ufal/textan/gui/graph/GraphController.java | UTF-8 | 2,842 | 2.484375 | 2 | [] | no_license | package cz.cuni.mff.ufal.textan.gui.graph;
import cz.cuni.mff.ufal.textan.commons.utils.Pair;
import cz.cuni.mff.ufal.textan.core.graph.IGrapher;
import cz.cuni.mff.ufal.textan.gui.TextAnController;
import cz.cuni.mff.ufal.textan.gui.WindowController;
import java.io.IOException;
import java.net.URL;
import java.util.R... | true |
ffad1a272f637245331e69f21e30fa9232d29715 | Java | zhouhualei/leetcode-practice | /src/main/java/me/warren/leetcode/Solution144.java | UTF-8 | 1,613 | 3.515625 | 4 | [] | no_license | package me.warren.leetcode;
import java.util.ArrayList;
import java.util.List;
import java.util.Stack;
public class Solution144 {
public List<Integer> preorderTraversal(TreeNode root) {
List<Integer> result = new ArrayList<Integer>();
Stack<TreeNode> stack = new Stack<TreeNode>();
if(roo... | true |
7323c5f6bdf166d343b4a826b8810e67d3e00fd3 | Java | gadmins/server-java | /springboot/gadmins-module-devops/src/main/java/com/itfenbao/gadmins/devops/service/IGroupService.java | UTF-8 | 517 | 1.640625 | 2 | [
"Apache-2.0"
] | permissive | package com.itfenbao.gadmins.devops.service;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.itfenbao.gadmins.devops.data.dto.query.GroupQuery;
import com.itfenbao.gadmins.devops.entity.DatawayGroup;
/**
* <p>
* dataway分组表 服务类
* ... | true |
5b119672534788f691f0970cbfced81f69dac110 | Java | rbygrave/sourceforge-ebean | /ebean/tags/v2.4.0/core/src/test/java/com/avaje/tests/basic/TestM2MCascadeOne.java | UTF-8 | 733 | 2 | 2 | [] | no_license | package com.avaje.tests.basic;
import junit.framework.TestCase;
import com.avaje.ebean.Ebean;
import com.avaje.tests.model.basic.MRole;
import com.avaje.tests.model.basic.MUser;
public class TestM2MCascadeOne extends TestCase {
public void test() {
MUser u = new MUser();
u.... | true |
f94ba35d230936df2c2c2148fd590522b7799442 | Java | uchennafokoye/myWindyTrain | /app/src/main/java/com/uchennafokoye/mywindytrain/MainActivity.java | UTF-8 | 2,542 | 1.9375 | 2 | [] | no_license | package com.uchennafokoye.mywindytrain;
import android.app.Activity;
import android.app.ProgressDialog;
import android.content.ComponentName;
import android.content.Context;
import android.content.Intent;
import android.content.ServiceConnection;
import android.graphics.Color;
import android.graphics.PorterDuff;
impor... | true |
575c1922b0185b94a7f1908fb28baf1564ebb211 | Java | TInventory/Program | /src/main/java/edu/mtu/tinventory/data/Customer.java | UTF-8 | 2,977 | 3.046875 | 3 | [] | no_license | package edu.mtu.tinventory.data;
import edu.mtu.tinventory.database.DatabaseInterface;
import java.util.List;
import java.util.UUID;
public class Customer {
private UUID id;
private String personName;
private String companyName;
private String phoneNumber;
private String faxNumber;
private String address;
/**... | true |
985915147abe47f70365e0aacd6cba217543cfab | Java | labs-nashvi/home-boot-rs | /src/main/java/com/nashvi/labs/accounts/AccountsController.java | UTF-8 | 1,747 | 2.484375 | 2 | [] | no_license | package com.nashvi.labs.accounts;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.an... | true |
c286507ab2b1d504d35fa36b8a0e2de7491c0c0a | Java | NystromAlexander/MyUnitTester | /src/ClassTester.java | UTF-8 | 7,938 | 3.5625 | 4 | [] | no_license | /**
* Created by Alexander Nyström(dv15anm) on 09/11/2016.
*
*/
import java.lang.reflect.*;
/**
* ClassTester is a class designed to test other classes following that they
* meet certain requirements.
* What specifies a test class is that they implement
* the interface TestClass and has a nullary constructor a... | true |
77106a25293eb848ba066db64eaf6ca5fc34a179 | Java | JULIELab/jcore-dependencies | /dragontool/src/main/java/dragon/onlinedb/citeulike/CiteULikeArticleParser.java | UTF-8 | 1,325 | 2.6875 | 3 | [
"BSD-2-Clause"
] | permissive | package dragon.onlinedb.citeulike;
import dragon.onlinedb.Article;
import dragon.onlinedb.BasicArticleParser;
import dragon.onlinedb.bibtex.BibTeXArticle;
/**
* <p>CiteULike Article Parser </p>
* <p></p>
* <p>Copyright: Copyright (c) 2005</p>
* <p>Company: IST, Drexel University</p>
* @author Davis Zh... | true |
0292c39e23e3341853c041f1fc486274bd4d6ef8 | Java | Coac/ASCIIMovieCreator | /src/projetjava/AppliTest.java | UTF-8 | 1,154 | 2.609375 | 3 | [] | no_license | package projetjava;
import java.io.FileNotFoundException;
import ES.ES;
import Film.Film;
import Film.Image;
import Eléments.Cadre;
import Film.Caractère;
import Eléments.Extrait;
import Eléments.Ligne;
import Eléments.Texte;
import Coordonnées.Coord;
public class AppliTest {
public static void main(String[] ar... | true |
9290d0ed6f4931d410fd75e0e3de44641db675cc | Java | Jasonshi83/Udemy | /Section8_99_LinkedListDemo/src/Demo.java | UTF-8 | 652 | 2.84375 | 3 | [] | no_license | import javax.sound.midi.Soundbank;
import java.util.Iterator;
import java.util.LinkedList;
import java.util.ListIterator;
/**
* @program Section8_99_LinkedListDemo
* @description:
* @author: Zong Shi
* @create 2019-07-05 21:26
*/
public class Demo {
public static void main(String[] args) {
LinkedList<Stri... | true |
7af13aae8e52ea19dcba6837ec2d401b43d9326f | Java | BaranovAlexandr/CRUD313naproverku | /src/main/java/com/example/demo/controllers/RestControllers.java | UTF-8 | 1,894 | 2.421875 | 2 | [] | no_license | package com.example.demo.controllers;
import com.example.demo.model.Role;
import com.example.demo.model.User;
import com.example.demo.service.RoleService;
import com.example.demo.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
impo... | true |
f1f609ca9b23b7b8d8af511e010f4c5171287969 | Java | kmui2/Rule-Game-server | /src/edu/wisc/game/rest/NewEpisodeWrapper2.java | UTF-8 | 4,232 | 2.3125 | 2 | [] | no_license | package edu.wisc.game.rest;
import java.io.*;
import java.util.*;
import javax.json.*;
import javax.persistence.*;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import edu.wisc.game.util.*;
import edu.wisc.game.engine.*;
import edu.wisc.game.sql.*;
//@XmlRootElement... | true |
a426da6da5e4eeee60036f31f34df821798216ce | Java | hzh-romens/Health | /app/src/main/java/com/romens/yjk/health/ui/components/StoreLayout.java | UTF-8 | 1,918 | 2.46875 | 2 | [] | no_license | package com.romens.yjk.health.ui.components;
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.Canvas;
import android.graphics.Paint;
import android.graphics.Rect;
import android.graphics.RectF;
import android.util.AttributeSet;
import androi... | true |
fecaf2ff72440b71d058327f56417e6b8a1c16f8 | Java | Midou-Midur/DogFightHugoVictorMehdi | /DogFightHugoVictorMehdiCode/src/jpu2016/dogfight/model/Plane.java | UTF-8 | 2,219 | 2.828125 | 3 | [] | no_license | package jpu2016.dogfight.model;
import java.awt.Image;
import java.io.File;
import java.io.IOException;
import javax.imageio.ImageIO;
public class Plane extends Mobile {
private static int SPEED = 2, WIDTH = 100, HEIGHT = 30;
private int player;
public Plane(int player, Direction direction, Position ... | true |
f299c3f9773d3701e3b4638620eface2258703ed | Java | Javastro/astrogrid-legacy | /astrogrid/ogsa/mySpace/src/java/org/astrogrid/mySpace/mySpaceManager/DataItemRecord.java | UTF-8 | 7,171 | 2.890625 | 3 | [] | no_license | package org.astrogrid.mySpace.mySpaceManager;
import java.io.*;
import java.util.Date;
import java.util.Locale;
import java.text.*;
/**
* The <code>DataItemRecord</code> class represents the details held in
* the MySpace registry for a single <code>DataHolder</code> (in practice
* a file, typically a VOTable). Th... | true |
eb876ed7a7c20bf9f3c6c71bb17b89e2bb993776 | Java | avinashk369/Telecalling | /app/src/main/java/com/techcamino/telecalling/recievers/PhoneStateReceiver.java | UTF-8 | 9,310 | 1.96875 | 2 | [] | no_license | package com.techcamino.telecalling.recievers;
import android.app.ProgressDialog;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.media.MediaRecorder;
import android.os.Environment;
import android.preferenc... | true |
1069c9c838734fcd080ade880f70711740ff8006 | Java | jccarrillo/XCoLab | /taglibs/colabIceFacelets/src/main/java/org/climatecollaboratorium/facelets/simulations/ScenarioSavedEvent.java | UTF-8 | 479 | 2.046875 | 2 | [
"MIT"
] | permissive | package org.climatecollaboratorium.facelets.simulations;
import edu.mit.cci.roma.client.*;
import org.climatecollaboratorium.events.Event;
public class ScenarioSavedEvent implements Event {
private Scenario scenario;
public ScenarioSavedEvent(Scenario scenario) {
this.setScenario(scenario);
}
... | true |
cd25b856f6556129d3ce402426d37ac61c619c61 | Java | ManikandanRudrappa/DUMMY | /MavenProject/src/main/java/week3/day1/MainMobile.java | UTF-8 | 330 | 2.15625 | 2 | [] | no_license | package week3.day1;
public class MainMobile {
public static void main(String[] args)
{
SmartMobile smart=new SmartMobile();
smart.Browse();
smart.takesnap();
smart.Playmusic();
smart.ReceiveCall();
smart.MakeCalls();
smart.SendMessage();
AndroidMobile andr = new AndroidMobile();
andr.MakeCalls(... | true |
a22470ba2803754cb40292c8adeca8eeb985f9fd | Java | kezhanwang/uye-a | /app/src/main/java/com/bjzt/uye/views/component/ProfileItemView.java | UTF-8 | 1,727 | 2.0625 | 2 | [] | no_license | package com.bjzt.uye.views.component;
import android.content.Context;
import android.util.AttributeSet;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.RelativeLayout;
import android.widget.TextView;
import com.bjzt.uye.R;
import com.bjzt.uye.listener.IItemListener;
import com.comm... | true |
9e040da4f62678722198cac00fadb56f7ac38402 | Java | sommor-projects/sommor | /sommor-bundles/src/main/java/com/sommor/bundles/taxonomy/entity/SubjectTaxonomyRelationEntity.java | UTF-8 | 815 | 1.828125 | 2 | [] | no_license | package com.sommor.bundles.taxonomy.entity;
import com.sommor.mybatis.entity.BaseEntity;
import com.sommor.mybatis.entity.config.Column;
import com.sommor.mybatis.entity.config.Table;
import lombok.Getter;
import lombok.Setter;
/**
* @author yanguanwei@qq.com
* @since 2019/11/22
*/
@Table(value = "taxonomy_subject... | true |
4845d7b327c099b041a3bc503d62e4694e584f62 | Java | ijolidino/leetCodeTest | /leetcodeTest/Easy/missingNumber2.java | UTF-8 | 905 | 3.390625 | 3 | [] | no_license | package leetcodeTest.Easy;
import java.util.HashSet;
import java.util.Set;
/**
* Create by Fuwen on 2021/1/28
* 面试题 17.04. 消失的数字
* 数组nums包含从0到n的所有整数,但其中缺了一个。请编写代码找出那个缺失的整数。你有办法在O(n)时间内完成吗?
*
* 注意:本题相对书上原题稍作改动
*
* 示例 1:
*
* 输入:[3,0,1]
* 输出:2
*
*
* 示例 2:
*
* 输入:[9,6,4,2,3,5,7,0,1]
* 输出:8
*/
public clas... | true |
88c871bc2b8e1a8d59ea067e019270a6a36b557c | Java | brilliantStone93/temp | /12_exception/src/exception/SingleTon.java | UHC | 1,390 | 3.640625 | 4 | [] | no_license | package exception;
public class SingleTon {
private int num = 3;
private static SingleTon instance = null;
public static SingleTon getInstance() {
if(instance == null) {
synchronized(SingleTon.class) {
instance = new SingleTon();
}
}
return instance;
}
public static void main(String[] ar... | true |
3d76cc38ca6b4adea27985f6a64868388462520a | Java | hot66hot/meituan | /mtpoiop/mtpoiop-web/src/main/java/com/sankuai/meituan/poiop/dic/AppealStatus.java | UTF-8 | 653 | 2.0625 | 2 | [] | no_license | /*
* Copyright (c) 2010-2011 meituan.com
* All rights reserved.
*
*/
package com.sankuai.meituan.poiop.dic;
import com.sankuai.meituan.dic.DicGroup;
import com.sankuai.meituan.dic.DicName;
/**
*
* @author lueewy
* @created 2012-9-6
*
* @version 1.0
*/
@DicGroup("申诉状态")
public class AppealStatus {
@Di... | true |
19b4568fe56cfeaa89f8798cc0e91b7e7addc4fc | Java | rohitagarwal3011/Kreatik-Site-Incharge- | /app/src/main/java/com/app/rbc/siteincharge/utils/RetrofitClient.java | UTF-8 | 669 | 2.21875 | 2 | [] | no_license | package com.app.rbc.siteincharge.utils;
import com.app.rbc.siteincharge.interfaces.ApiServices;
import retrofit2.Retrofit;
import retrofit2.converter.gson.GsonConverterFactory;
public class RetrofitClient {
private static Retrofit getRetrofitInstance() {
return new Retrofit.Builder()
... | true |
d01e2e91b304615b2ff3dbaabf0b31ffb0fb0bf6 | Java | amchristi/checkReduce | /src/Reduce/MethodInfo.java | UTF-8 | 219 | 1.664063 | 2 | [] | no_license | package Reduce;
import java.util.HashMap;
import java.util.List;
/**
* Created by root on 8/1/17.
*/
public class MethodInfo {
String methodName;
List<String> classVariables;
List<String> statements;
}
| true |
17aab52331c232ce52d8921d2947473af5fc6381 | Java | manhaisao/Hxjdglpt | /app/src/main/java/com/xzz/hxjdglpt/adapter/SxAdapter.java | UTF-8 | 3,669 | 2.28125 | 2 | [] | no_license | package com.xzz.hxjdglpt.adapter;
import android.content.Context;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.LinearLayout;
import android.widget.TextView;
import com.xzz.hxjdglpt.activity.R;
import com.xzz.hxjdglpt.model.Fwmdm;
import com.xzz.hxjd... | true |
9bdb7a85813ffbf1afbdbb3bd34d99920eb4da09 | Java | amanjain-2246/Custom_spinner | /app/src/main/java/com/example/amanj/custom_spinner/MainActivity.java | UTF-8 | 1,722 | 2.140625 | 2 | [] | no_license | package com.example.amanj.custom_spinner;
import android.content.Intent;
import android.content.res.Resources;
import android.provider.MediaStore;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.AdapterView;
import android.widget.Spinner;
impor... | true |
90198a9584c7a66770189883501fa82451b8f808 | Java | yulinlin-lin/tour | /src/main/java/com/sgu/tourism/util/DataToos.java | UTF-8 | 583 | 2.328125 | 2 | [] | no_license | package com.sgu.tourism.util;
import java.text.SimpleDateFormat;
import java.util.Date;
public class DataToos {
private static SimpleDateFormat SDF_YYMMDD = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
private static SimpleDateFormat SDF_YYMMDD_2 = new SimpleDateFormat("yyyy-MM-dd");
public static Str... | true |
f50014782f2b5e4ad14098dca000d3ef920ddd3d | Java | jamesxuhaozhe/LeetCode-Java-Kotlin | /Java-Kotlin/src/main/java/array/_16.java | UTF-8 | 832 | 3.265625 | 3 | [
"MIT"
] | permissive | package array;
import java.util.Arrays;
public class _16 {
public int threeSumClosest(int[] nums, int target) {
Arrays.sort(nums);
int ans = nums[0] + nums[1] + nums[2];
int len = nums.length;
for (int i = 0; i < len - 2; i++) {
int start = i + 1;
int end =... | true |
ee48270f570ba776ae6e72270eb1e913c7a8ac08 | Java | egrohs/ET | /Wolf/src/AlphaWindow.java | UTF-8 | 1,603 | 3.015625 | 3 | [] | no_license | import java.awt.Container;
import java.awt.Dimension;
import java.awt.Graphics;
import java.awt.Image;
import java.awt.Rectangle;
import java.awt.Toolkit;
import java.net.URL;
import javax.swing.ImageIcon;
import javax.swing.JComponent;
import javax.swing.JLabel;
import javax.swing.JWindow;
public class AlphaWindow e... | true |
e1ac5de38dd64c4d1180aa4efa55d27ceb354892 | Java | LineageOS/android_packages_inputmethods_LatinIME | /tests/src/com/android/inputmethod/keyboard/internal/MoreKeySpecStringReferenceTests.java | UTF-8 | 13,359 | 2.078125 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright (C) 2014 The Android Open Source Project
*
* 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 |
8af408a7c0f828f179451b1d52cfa578840cf146 | Java | kevinmck91/codingchallenges | /Stacks/equal_stacks/EqualStacks_Solution.java | UTF-8 | 1,423 | 3.96875 | 4 | [] | no_license | package equal_stacks;
import java.util.Stack;
public class EqualStacks_Solution {
public static void main(String[] args) {
int[] stack1 = { 3, 2, 1, 1, 1 };
int[] stack2 = { 4, 3, 2 };
int[] stack3 = { 1, 1, 4, 1 };
int number = equalStacks(stack1, stack2, stack3);
System.out.println(number... | true |
b0072072e51a66b68efbb1534db8e78535fb0af3 | Java | ninthworld/MarchingCubes | /src/org/ninthworld/marchingcubes/renderers/geometry/CuboidRenderer.java | UTF-8 | 2,649 | 2.46875 | 2 | [] | no_license | package org.ninthworld.marchingcubes.renderers.geometry;
import org.lwjgl.opengl.GL11;
import org.lwjgl.opengl.GL20;
import org.lwjgl.opengl.GL30;
import org.lwjgl.util.vector.Matrix4f;
import org.ninthworld.marchingcubes.entities.*;
import org.ninthworld.marchingcubes.helper.MatrixHelper;
import org.ninthworld.marchi... | true |
8a721142c6facbd6adfe0c4239d3788a66c26cf3 | Java | tech2bg/creditanalytics | /CreditAnalytics/dev/src/org/drip/measure/discrete/UnivariatePoisson.java | UTF-8 | 3,687 | 2.484375 | 2 | [
"Apache-2.0"
] | permissive |
package org.drip.measure.discrete;
/*
* -*- mode: java; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*/
/*!
* Copyright (C) 2015 Lakshmi Krishnamurthy
*
* This file is part of DRIP, a free-software/open-source library for fixed income analysts and developers -
* http://www.credit-t... | true |
3f030db04e73b1675a8bf4ded74ec043c22b8198 | Java | xiaolongzuo/zxl | /zxl-orm-common/src/main/java/cn/zxl/orm/common/config/MulCommonBaseServiceParser.java | UTF-8 | 15,629 | 1.515625 | 2 | [
"Apache-2.0"
] | permissive | package cn.zxl.orm.common.config;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.UUID;
import org.mybatis.spring.SqlSessionFactoryBean;
import org.mybatis.spring.SqlSessionTemplate;
import org.springframework.aop.aspectj.AspectJExpressionPointcut;
import org.springframewo... | true |
405a771adcc1acd28d4255f3234f766f142d7be6 | Java | gian418/ilia-folha-de-ponto | /src/main/java/br/com/ilia/digital/folhadeponto/services/exceptions/MomentoBatidaException.java | UTF-8 | 264 | 2.015625 | 2 | [] | no_license | package br.com.ilia.digital.folhadeponto.services.exceptions;
public class MomentoBatidaException extends RuntimeException {
private static final long serialVersionUID = 1L;
public MomentoBatidaException(String message) {
super(message);
}
}
| true |
cb42012ef4a6434ebd7b850363c8deda4e9f1e76 | Java | msicsic/bankAccount | /business/src/main/java/com/sg/kata/bankaccount/business/Operation.java | UTF-8 | 495 | 2.671875 | 3 | [] | no_license | package com.sg.kata.bankaccount.business;
import java.time.LocalDateTime;
public abstract class Operation {
private int amount;
private LocalDateTime date;
public Operation(int amount) {
this.amount = amount;
this.date = LocalDateTime.now();
}
public int getAmount() {
ret... | true |
958e8263985e03e6738daaa64c205ae4df476054 | Java | BloopApp/BloopServer | /src/main/java/website/bloop/server/jdbi/FlagMapper.java | UTF-8 | 737 | 2.140625 | 2 | [
"MIT"
] | permissive | package website.bloop.server.jdbi;
import java.sql.ResultSet;
import java.sql.SQLException;
import org.skife.jdbi.v2.StatementContext;
import org.skife.jdbi.v2.tweak.ResultSetMapper;
import website.bloop.server.api.Flag;
public class FlagMapper implements ResultSetMapper<Flag> {
public Flag map(int i... | true |
0c91779330624a4241d1e398bf18f603c668b029 | Java | MazeHatter/YouGotADoodleServer | /src/com/monadpad/doodleme/MoovlesServlet.java | UTF-8 | 1,798 | 2.390625 | 2 | [] | no_license | package com.monadpad.doodleme;
import java.io.IOException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import com.google.appengine.api.datastore.DatastoreService;
import com.google.appengine.api.datastore.DatastoreServiceFac... | true |
1395901dff19057a68761f6a3e6e6cd5ddafb8ac | Java | fedeiar/Proyecto_DyDS | /proyecto/src/main/java/dyds/catalog/alpha/fulllogic/vista/Main.java | UTF-8 | 1,969 | 2.515625 | 3 | [] | no_license | package dyds.catalog.alpha.fulllogic.vista;
import javax.swing.JFrame;
import javax.swing.WindowConstants;
import dyds.catalog.alpha.fulllogic.modelo.ModelModule;
import dyds.catalog.alpha.fulllogic.modelo.VideoGameInfoModel;
import dyds.catalog.alpha.fulllogic.modelo.WikipediaSearcherImpl;
import dyds.catalog.alpha.... | true |
fbe177233a1578e3fddb3136d006724af8711368 | Java | BO688/Express_love | /java/com/bo/express_love/View/Session_with.java | UTF-8 | 1,136 | 2.109375 | 2 | [] | no_license | package com.bo.express_love.View;
import com.alibaba.fastjson.JSONObject;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import javax.servlet.http.HttpServletRequest;
@RestController
public class Session_with {
@RequestMappi... | true |
426567f7cf51f65713ff1ea2c09f72fef9bc602e | Java | acdean/acdepub | /src/main/java/me/koogy/acdepub/StylesheetWriter.java | UTF-8 | 751 | 2.671875 | 3 | [] | no_license | package me.koogy.acdepub;
import java.io.File;
import java.io.InputStream;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Paths;
import java.nio.file.StandardCopyOption;
/**
* Default stylesheet.
* @author adean
*/
public class StylesheetWriter {
// copy stylesheet from resources... | true |
19344aece3cd50f3d29386ca59c4855604119cb5 | Java | lazcatluc/contezi | /src/test/java/ro/contezi/novote/repository/RegistrationRepositoryTest.java | UTF-8 | 951 | 2.140625 | 2 | [] | no_license | package ro.contezi.novote.repository;
import static org.junit.Assert.*;
import org.junit.Before;
import org.junit.Test;
import ro.contezi.novote.model.Registration;
import ro.contezi.novote.model.Voter;
public class RegistrationRepositoryTest {
private RegistrationRepository registrationRepository;
... | true |
797033c2b80a090e3a57dd4228fd5d0dd5958408 | Java | stevenauto/javase | /src/java/com/steven/search_sort/RadixSort.java | UTF-8 | 3,042 | 3.734375 | 4 | [] | no_license | package com.steven.search_sort;
import java.util.*;
public class RadixSort implements SortInterface {
private static final HashMap<Character, Integer> alphaToNum = new HashMap();
static {
alphaToNum.clear();
initAlphaToNum('A', 'Z', alphaToNum);
initAlphaToNum('a', 'z', alphaToNum);
}
private static fin... | true |
3d8e7e12eceb64d90a321eb13b2f9013814bb419 | Java | polleyethan/CSCI0150_Evolution | /FitnessCalcFactor.java | UTF-8 | 833 | 3.359375 | 3 | [] | no_license | package Evolution;
/**
* Container class that calculates a given fitness factor
*
*/
public class FitnessCalcFactor {
private FitnessCalculationFactors _factor;
private double _multiplier;
/**
* Constructor for fitnesscalcfactor.
*/
public FitnessCalcFactor(FitnessCalculationFactors factor, double multip... | true |
d41a7e01b5a5f5a8cf174ac5e95aa1517f85fc99 | Java | lyhdrj/test | /Test/src/main/java/com/test/thread/Queue.java | GB18030 | 735 | 3.3125 | 3 | [] | no_license | package com.test.thread;
import java.util.LinkedList;
/**
*
*
* Ϊǣ̵߳ȴ
* вΪǣѵȴĶ
* */
public class Queue {
private LinkedList<Request> queue=new LinkedList<Request>();
public synchronized Request getRequest(){
if(queue.size()==0){
try {
System.out.printf("%s\n", "̴߳ڵȴ״̬.....");
this.wait();
} ... | true |
1ec521f066c5dde46fc2dbf83acba4b7cd078381 | Java | jefryvelasquez/LaboratorioEstructuras | /src/co/edu/udea/edatos/laboratorio1/modelo/Taller.java | UTF-8 | 1,614 | 2.578125 | 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 co.edu.udea.edatos.laboratorio1.modelo;
import java.util.List;
/**
*
* @author Telecentro
*/
public class Taller {
p... | true |
0b0f50c704435b3639454dd7bf62a75011d76e06 | Java | yoojaeok182/wholesalefriends | /app/src/main/java/com/wholesale/wholesalefriends/main/data/ProductViewWholesaleResponse.java | UTF-8 | 566 | 1.921875 | 2 | [] | no_license | package com.wholesale.wholesalefriends.main.data;
import java.util.List;
public class ProductViewWholesaleResponse {
private ProductWholesaleViewInfoData info;
private List<ProductViewImageData> image;
public ProductWholesaleViewInfoData getInfo() {
return info;
}
public void setInfo(P... | true |
b9e9013b54620a2a5a50ddcb13e5496607f9b0d8 | Java | lb13038579381/LeetCode | /src/main/java/字符串/字符串转整数.java | UTF-8 | 1,216 | 3.515625 | 4 | [] | no_license | package 字符串;
public class 字符串转整数 {
public static void main(String[] args) {
String str = "123213aa";
System.out.println(fun(str));
}
private static int fun(String str) {
int res = 0;
int n = 0;
int i = str.length() - 1;
boolean hasfu = false;
boolean... | true |
98b1e2fc3711ca440ebc1acd6345069e5b6b9660 | Java | sushengyang/AI | /rbfsEightPuzzle/src/read.java | UTF-8 | 1,128 | 2.9375 | 3 | [] | no_license | /*
Assignment No 1
By: Shubham Rai
scr130130
*/
/*
This class reads the files provided as the argument i.e eightpuzzle.txt file and call the recursive best first search method.
*/
import java.io.BufferedReader;
import java.io.File;
import java.io.FileInputStream;
import java.io.InputStreamReader;
import aima.core.e... | true |
8b0b2af5a188f65ca8648392b9a8564361cc401d | Java | bpass/cegis | /JGCTP/constants.java | UTF-8 | 828 | 1.546875 | 2 | [] | no_license | package jgctp;
public class Constants
{
public static final double PI = 3.141592653589793238;
public static final double HALF_PI = PI / 2;
public static final double TWO_PI = PI * 2;
public static final double EPSLN = 1.0e-10;
public static final double R2D = 57.2957795131;
public static final double D2R = 1.745... | true |
1d705ca39e6f21263939ddf0855847321b4f4952 | Java | bourque/COSC-716-OO-Methodology | /abstract_factory/Driver.java | UTF-8 | 2,076 | 3.375 | 3 | [] | no_license | /*
Matthew Bourque
3/22/2016
Homework Assignment 4
*/
class Driver {
/**
* The main driver
*/
public static void main(String[] args) {
// Create books to test with
Book book1 = new Book("1984", "fiction", "ebook");
Book book2 = new Book("Life in the Universe", "non fiction",... | true |
b7341701df534e0a8803c117b9bab1831924ba8a | Java | ppulse/LeetcodeWithJava | /StringToInteger(atoi)8/Solution.java | UTF-8 | 1,149 | 3.046875 | 3 | [] | no_license | public class Solution {
public int myAtoi(String str) {
if (str == null || str.length() == 0)
return 0;
long result = 0;
int sign = 0;
int startIndex = 0;
while (str.charAt(startIndex) == ' ')
startIndex++;
for (int i = start... | true |
74592064a91ac602f07e7a8f89b77feebb90c576 | Java | Achury/SOFTLOT | /src/com/lotrading/softlot/LODepartment/clientOrder/logic/IClientOrderInlandCSLogic.java | UTF-8 | 607 | 1.8125 | 2 | [] | no_license | package com.lotrading.softlot.LODepartment.clientOrder.logic;
import com.lotrading.softlot.LODepartment.clientOrder.entity.ClientOrderInlandCS;
/**
* @author JUAN DAVID URIBE
* @version 1.0
* @created 27-Sep-2011 12:00:00 AM
*/
public interface IClientOrderInlandCSLogic {
/**
*
* @param clientOrderInlandCS
... | true |
3dd29680d64a59a1796ca0ce321b64bd2fe190fe | Java | gishshir/Croissant | /src/main/java/com/collectif/ft/croissants/server/business/Alert.java | UTF-8 | 3,793 | 2.34375 | 2 | [] | no_license | package com.collectif.ft.croissants.server.business;
import java.util.Date;
import com.collectif.ft.croissants.server.business.message.Message;
import com.collectif.ft.croissants.server.business.message.Message.MessageLevel;
import com.collectif.ft.croissants.server.business.message.Message.MessagePriority;
import co... | true |
83d8af63ce42e4c3cd983bcf90c9e297d88e70df | Java | kiomnd2/spring-microservice | /chapter8/chapter8.checkin/src/main/java/com/chapter6/checkin/component/CheckInSource.java | UTF-8 | 297 | 1.742188 | 2 | [] | no_license | package com.chapter6.checkin.component;
import org.springframework.cloud.stream.annotation.Output;
import org.springframework.messaging.MessageChannel;
public interface CheckInSource {
public static String CHECKINQ="checkInQ";
@Output("checkInQ")
public MessageChannel checkInQ();
}
| true |
a02a8a6bd606e5b725fa0e415f2c3d53d2be3e0b | Java | apache/druid | /extensions-core/stats/src/test/java/org/apache/druid/query/aggregation/teststats/PvaluefromZscorePostAggregatorTest.java | UTF-8 | 3,375 | 1.828125 | 2 | [
"EPL-1.0",
"Classpath-exception-2.0",
"ISC",
"GPL-2.0-only",
"BSD-3-Clause",
"Apache-2.0",
"LicenseRef-scancode-public-domain",
"LicenseRef-scancode-generic-cla",
"0BSD",
"LicenseRef-scancode-sun-no-high-risk-activities",
"LicenseRef-scancode-free-unknown",
"JSON",
"LicenseRef-scancode-unico... | permissive | /*
* 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, Version 2.0 (the
* "License"); you ... | true |
90f76e5fdd9b1e765951036bf807204b55a010b4 | Java | shreesha/training | /src/main/java/com/example/Training/Model/User.java | UTF-8 | 1,191 | 2.375 | 2 | [] | no_license | package com.example.Training.Model;
/**
* Created by pana on 13/01/20.
*/
public class User {
private Long userId;
private String name;
private UserType type;
private String contactNumber;
private String emailId;
public User(String name, UserType type, String contactNumber, String emailId) {... | true |
f645e5c44aea18826ae511024187c6f10dd2a75a | Java | patguimaraes/cloud-native-samples | /user-service/src/main/java/sample/userservice/web/ApiController.java | UTF-8 | 3,089 | 2.34375 | 2 | [] | no_license | package sample.userservice.web;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Collection;
import java.util.HashMap;
import java.util.Map;
import javax.servlet.http.HttpServletResponse;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annota... | true |
f641a4c52cb862e9c6c4c342877db52a9f1487e5 | Java | iceleeyo/frms-policy-1 | /src/main/java/cn/com/bsfit/frms/policy/util/ReflectUtil.java | UTF-8 | 731 | 2.84375 | 3 | [] | no_license | package cn.com.bsfit.frms.policy.util;
import java.lang.reflect.Method;
import java.util.HashMap;
import java.util.Map;
/**
* 反射的工具类
*/
public class ReflectUtil {
/**
* 将POJO对象转成Map
*/
public static Map<String, Object> pojoToMap(Object obj) {
Map<String, Object> hashMap = new HashMap<String, Object>();
t... | true |
ebcbc995964ab2d625c18ad52d34506fcfd96219 | Java | uchupura/spring-boot-guides | /spring-boot-event/src/main/java/com/guide/event/global/common/CommonApiResponse.java | UTF-8 | 4,201 | 2.3125 | 2 | [] | no_license | package com.guide.event.global.common;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.*;
import lombok.extern.slf4j.Slf4j;
import org.springframework.http.ResponseEntity;
import org.springframework.validation.BindingResult;
import java.time.Local... | true |
c4cff0bf16355caa5e3e05e8a94ba5c38e2316ba | Java | amasadpanda/Chess | /Android/RequestExampleApplication/app/src/main/java/com/example/phili/requestexampleapplication/MainActivity.java | UTF-8 | 1,844 | 2.328125 | 2 | [] | no_license | package com.example.phili.requestexampleapplication;
import android.support.annotation.NonNull;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import com.google.android.gms.tasks.OnCompleteListener;
import com.google.android.gms.tasks.Task;
import com.google.fireb... | true |
a0479b978f4895a967567f015523bd92a9a36214 | Java | PlayersCommittee/gemp-swccg-public | /gemp-swccg-logic/src/main/java/com/gempukku/swccgo/logic/timing/results/AboutToCompleteDrawingDestinyResult.java | UTF-8 | 1,689 | 2.953125 | 3 | [
"MIT"
] | permissive | package com.gempukku.swccgo.logic.timing.results;
import com.gempukku.swccgo.common.DestinyType;
import com.gempukku.swccgo.game.SwccgGame;
import com.gempukku.swccgo.logic.effects.DrawDestinyEffect;
import com.gempukku.swccgo.logic.timing.Action;
import com.gempukku.swccgo.logic.timing.EffectResult;
/**
* The effec... | true |
b2d832c86788757c724736142dbb27713ae7decf | Java | sakalaharshith/Todo-List-App | /app/src/main/java/com/example/todolist/table1/helper.java | UTF-8 | 957 | 2.296875 | 2 | [] | no_license | package com.example.todolist.table1;
import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
import android.os.Build;
import androidx.annotation.RequiresApi;
public class helper extends SQLiteOpenHelper {
public static final int VERSION=1;
... | true |
aefaa159ff8098f0122a09bfd20190ef838305e5 | Java | LiaoYiWei/mockitodemo | /src/main/java/com/lyw/mockitodemo/service/UserService.java | UTF-8 | 993 | 2.28125 | 2 | [] | no_license | package com.lyw.mockitodemo.service;
import com.lyw.mockitodemo.domain.User;
import com.lyw.mockitodemo.repo.UserRepo;
import com.lyw.mockitodemo.service.ext.IdentityVerifyService;
import lombok.Setter;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
/**
... | true |
cfc2ce6fdae37a13e75a92935d4537ba23643049 | Java | lupeng219/webapp | /src/main/java/com/baibao/web/p2p/generator/dao/P2p_bank_typeMapper.java | UTF-8 | 410 | 1.859375 | 2 | [] | no_license | package com.baibao.web.p2p.generator.dao;
import java.util.List;
import com.baibao.web.p2p.generator.bean.P2p_bank_type;
public interface P2p_bank_typeMapper
{
public List<P2p_bank_type> getAll();
public P2p_bank_type getBankType(String bankCode);
public List<P2p_bank_type> getPersonalHhortcut();
public List<P... | true |
4896a69fe544d33244443c3451eabfc54f8a57ef | Java | kapilkd13/onlinejudge | /onlinejudge/src/onlinejudge/boardGUI.java | UTF-8 | 7,291 | 2.640625 | 3 | [] | no_license | package onlinejudge;
import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Dimension;
import java.awt.FlowLayout;
import java.awt.Font;
import java.awt.Graphics;
import java.awt.GridLayout;
import java.awt.Image;
import javax.swing.BorderFactory;
import javax.swing.BoxLayout;
import javax.swing.ImageIc... | true |
a492e81681d971c32730c382d3da86b532f05392 | Java | irhampta/muslimware | /app/src/main/java/com/unicode/muslimware/db/SettingsBluePrint.java | UTF-8 | 2,742 | 2.453125 | 2 | [] | no_license | package com.unicode.muslimware.db;
import android.content.ContentValues;
import android.database.sqlite.SQLiteDatabase;
import com.google.gson.Gson;
import com.unicode.muslimware.model.Alarm;
import com.unicode.muslimware.model.Carousel;
import com.unicode.muslimware.model.DateAndTime;
import com.unicode.muslimware.m... | true |
5b7ac701fe9ece345f7b96c410ae0377c5cc8e26 | Java | alejouribesanchez/android_course | /class_12/class_12/app/src/main/java/com/gapps/class_12/SimpleDialog.java | UTF-8 | 2,275 | 2.59375 | 3 | [] | no_license | package com.gapps.class_12;
import android.app.Dialog;
import android.content.Context;
import android.content.DialogInterface;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.v4.app.DialogFragment;
import android.support.v4.app.Fragment;
import android.support.v7.app.AlertD... | true |
eebba3e190d312b28453cd62e04c12b55a92977f | Java | chenxiliang/MathGame_Subspace | /src/GUI.java | UTF-8 | 8,747 | 2.765625 | 3 | [] | no_license |
import java.awt.EventQueue;
import java.awt.Font;
import javax.swing.*;
import javax.swing.border.MatteBorder;
import java.awt.Color;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
import javax.swing.border.LineBorder;
pub... | true |
da4abb1f887bb824b2cf3ec083c0952aa7c1817e | Java | imagine-penguins/penguins-erp-webapi | /src/main/java/com/knackitsolutions/crm/imaginepenguins/dbservice/converter/model/ParentResponseMapper.java | UTF-8 | 834 | 2.296875 | 2 | [] | no_license | package com.knackitsolutions.crm.imaginepenguins.dbservice.converter.model;
import com.knackitsolutions.crm.imaginepenguins.dbservice.dto.ParentLoginResponseDTO;
import com.knackitsolutions.crm.imaginepenguins.dbservice.entity.Parent;
import org.springframework.stereotype.Component;
import java.util.List;
import java... | true |
faca691a3193b0eec352ba2e2d99b55747330bc2 | Java | cccc0212/basketball | /src/main/java/cn/ssm/service/GameService.java | UTF-8 | 533 | 1.679688 | 2 | [] | no_license | package cn.ssm.service;
import java.util.Date;
import java.util.List;
import com.github.pagehelper.PageInfo;
import cn.ssm.po.Game;
public interface GameService {
public PageInfo<Game> selectGame(int currentPage , Date Start, Date End);
public List<Game> selectGame( Date Start, Date End, Integer id);
public ... | true |
d9c1cc4137364bb52fbeeff0429d2cf7a8a3cd39 | Java | trungtvq/java-practive | /server/target/generated-sources/protobuf/grpc-java/co/overlead/gRPC/VelocityGrpc.java | UTF-8 | 10,248 | 1.757813 | 2 | [] | no_license | package co.overlead.gRPC;
import static io.grpc.MethodDescriptor.generateFullMethodName;
import static io.grpc.stub.ClientCalls.asyncBidiStreamingCall;
import static io.grpc.stub.ClientCalls.asyncClientStreamingCall;
import static io.grpc.stub.ClientCalls.asyncServerStreamingCall;
import static io.grpc.stub.ClientCall... | true |
57761b87e79e13283303fc6acf55816141eaa00c | Java | vetkolisanket/ds_algo | /java/general/leetcode/ugly_number.java | UTF-8 | 791 | 3.84375 | 4 | [] | no_license | /*
263. Ugly Number
An ugly number is a positive integer whose prime factors are limited to 2, 3, and 5.
Given an integer n, return true if n is an ugly number.
Example 1:
Input: n = 6
Output: true
Explanation: 6 = 2 × 3
Example 2:
Input: n = 1
Output: true
Explanation: 1 has no prime factors, therefore all of ... | true |
dc6a6dbe0c52eeba7468dddbc88b9d585c22612e | Java | rodolfovalentim/enrico | /src/fansubs/AnimaKai.java | UTF-8 | 9,305 | 2 | 2 | [] | no_license | package fansubs;
import java.util.ArrayList;
import java.util.List;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.htmlunit.HtmlUnitDriver;
import org.openqa.selenium.phantomjs.PhantomJSDriver;
import org.openqa.selenium... | true |
b8d12a8b6ccb31771000e07d378ee9639406816d | Java | casparcao/openchat | /openchat-server/src/main/java/top/mikecao/openchat/server/producer/MsgProducer.java | UTF-8 | 1,383 | 2.109375 | 2 | [] | no_license | package top.mikecao.openchat.server.producer;
import lombok.extern.slf4j.Slf4j;
import org.springframework.amqp.rabbit.connection.CorrelationData;
import org.springframework.amqp.rabbit.core.RabbitTemplate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.lang.Nullable;
import ... | true |