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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
effb600d34a8db724e19a8766be1d8988e6f06ca | Java | robbenv/Mpzn | /app1/src/main/java/com/mpzn/mpzn/activity/AddBBActivity.java | UTF-8 | 14,148 | 1.601563 | 2 | [] | no_license | package com.mpzn.mpzn.activity;
import android.content.Intent;
import android.os.Bundle;
import android.support.v7.widget.AppCompatSpinner;
import android.util.Log;
import android.view.View;
import android.widget.AdapterView;
import android.widget.ArrayAdapter;
import android.widget.Button;
import android.wi... | true |
daf974cacd3df79be335c9304480d0ffe341ff9a | Java | mkaep/SSL-Primary-Study | /src/MainSplit.java | UTF-8 | 888 | 2.6875 | 3 | [] | no_license | import org.deckfour.xes.model.XLog;
import loader.Loader;
import parser.Parser;
import splitter.Splitter;
import splitter.SplitterRandom;
import splitter.TestTrainObject;
/**
* Main class for splitting an event log into training and testdata
*
* @author Martin Kaeppel
*/
public class MainSplit {
... | true |
f19035464f25ceaaefec34005c98ef9af22aa797 | Java | hyb1234hi/reverse-wechat | /weixin6519android1140/src/sourcecode/com/tencent/mm/splash/h.java | UTF-8 | 1,996 | 1.5 | 2 | [] | no_license | package com.tencent.mm.splash;
import android.app.Activity;
import android.app.Instrumentation;
import android.content.Intent;
import com.tencent.gmtrace.GMTrace;
import com.tencent.mm.app.c;
import java.lang.reflect.Field;
import java.util.ArrayList;
final class h
extends Instrumentation
{
public Instrumentation... | true |
6c991852bf54433e54c77acd3abcb09393849f89 | Java | almusil/MultimediaTesting | /app/src/main/java/feec/vutbr/cz/multimediatesting/View/MainActivity.java | UTF-8 | 3,579 | 2 | 2 | [] | no_license | package feec.vutbr.cz.multimediatesting.View;
import android.content.Intent;
import android.databinding.DataBindingUtil;
import android.os.Bundle;
import android.support.v4.app.FragmentTransaction;
import android.support.v4.app.LoaderManager;
import android.support.v4.content.Loader;
import android.support.v7.app.App... | true |
908117bb80b26128cd01780a6826cb05299f241c | Java | LeYaz/FilRouge | /ProjetJ2EE/src/main/java/com/example/ProjetFilRougeGarage/beans/FactureFiche.java | UTF-8 | 1,492 | 2.203125 | 2 | [] | no_license | package com.example.ProjetFilRougeGarage.beans;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persiste... | true |
de114d5b163468925cc700d99362cbdfca457985 | Java | perlanie/DataMiningEnterpriseComputing | /HuntsAlgorithm/Dataset.java | UTF-8 | 3,138 | 3.328125 | 3 | [] | no_license | import java.util.*;
public class Dataset{
private ArrayList<HashMap<String,HashMap<String,Counter>>> totalAttrCounts;
private String[][]dataset;
private String[][]datasetSchema;
private int classIndex;
public Dataset(String[][] datasetSchema, String[][]dataset, int classIndex){
this.datasetSchema=datasetSche... | true |
2598cfe10aac1849ae9bebe8c49bccaddf66eb85 | Java | dragosbudrica/ThinkingInJava | /src/strings/exercises/StringsEx14.java | UTF-8 | 423 | 3.265625 | 3 | [] | no_license | package strings.exercises;
import java.util.*;
class SplitDemo {
public static void main(String[] args) {
String input =
"This!!unusual use!!of exclamation!!points";
System.out.println(Arrays.toString(
input.split("!!")));
System.out.println(Arrays.toString(
input.split("!!", 3)));
}
}
... | true |
e6d5a480cb0c77e874d2531858dfddd8171478d7 | Java | Halis-Can/JavaProgrammingB15Online | /src/day47/Garage.java | UTF-8 | 746 | 3.46875 | 3 | [] | no_license | package day47;
public class Garage {
public static void main(String[] args) {
// Abstract class can not be instantiated
// It means we can not create object out of it
// Car c = new Car();
ElectricCar c1 = new ElectricCar();
c1.start();
c1.goBackward();
c1.g... | true |
9b9c27a8fc9a55eec8a0679f20c66613f6bc1aa7 | Java | Salvadore1987/face-recognize | /src/main/java/uz/asbt/eldar/face/recognize/lib/FaceRecognize.java | UTF-8 | 64,453 | 2.625 | 3 | [] | no_license | package uz.asbt.eldar.face.recognize.lib;
import Luxand.FSDK;
import com.sun.jna.ptr.IntByReference;
import uz.asbt.eldar.face.recognize.exceptions.RecognizeException;
import uz.asbt.eldar.face.recognize.model.*;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
/**
* Класс предназначен дл... | true |
fce8bd6bd8b436e0088e097b714b8282e3841ac9 | Java | hieuhmse05572/Furniture | /src/java/entity/OrderDetail.java | UTF-8 | 1,701 | 2.546875 | 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 entity;
import java.io.Serializable;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Jo... | true |
44920608509664b0eae94b7f681113706f20e6e6 | Java | goldenkinglet/bikeshop | /bike/io/RecordParser.java | UTF-8 | 1,082 | 3.03125 | 3 | [] | no_license | package bike.io;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
import java.util.Iterator;
import java.util.LinkedList;
import java.util.List;
import javax.swing.JOptionPane;
public class RecordParser {
... | true |
e7357a93b49c21fd31ef1e34ee00686e3ca2443a | Java | Snownee/Cuisine2 | /src/main/java/snownee/cuisine/data/adapter/StarsAdapter.java | UTF-8 | 1,220 | 2.4375 | 2 | [] | no_license | package snownee.cuisine.data.adapter;
import java.lang.reflect.Type;
import com.google.common.collect.ImmutableListMultimap;
import com.google.gson.JsonDeserializationContext;
import com.google.gson.JsonDeserializer;
import com.google.gson.JsonElement;
import com.google.gson.JsonParseException;
import snownee.cuisin... | true |
c2a84ef5c2d68e3760970cf1b53c2b7c56a4cf2f | Java | Bondzberg/Final-connect-the-dot | /src/Animation.java | UTF-8 | 1,029 | 3.046875 | 3 | [] | no_license | /**
* @(#)Animation.java
*
* Lab 5 Starter Code
*
*
* @author Mr May
* @version 1.00 2016/7/21
*/
import mayflower.*;
public class Animation
{
private MayflowerImage[] frames;
private int currentFrame;
private int frameRate;
public Animation(int rate, String[] filenames)
{
f... | true |
f8f9c38f55bda3bf28763e9441704cfa87aa37ce | Java | Jevinliu/NMR-RCP | /edu.xmu.nmr.dataAnalysis.diagram/src/edu/xmu/nmr/dataanalysis/diagram/handlers/ShowDiagHandler.java | UTF-8 | 2,775 | 2.171875 | 2 | [] | no_license | package edu.xmu.nmr.dataanalysis.diagram.handlers;
import org.apache.log4j.Logger;
import org.eclipse.core.commands.AbstractHandler;
import org.eclipse.core.commands.ExecutionEvent;
import org.eclipse.core.commands.ExecutionException;
import org.eclipse.ui.IWorkbenchPart;
import org.eclipse.ui.PlatformUI;
impo... | true |
5db00fcfb8cd2be59a2b725333d32b862dd8e9c8 | Java | lucene4ir/lucene4ir8 | /src/main/java/lucene4ir/DumpTermsApp.java | UTF-8 | 6,378 | 2.265625 | 2 | [
"Apache-2.0"
] | permissive | package lucene4ir;
import javax.xml.bind.JAXB;
import java.io.File;
import java.io.IOException;
import java.nio.file.Paths;
import java.util.*;
import org.apache.lucene.index.Term;
import org.apache.lucene.index.Terms;
import org.apache.lucene.index.Terms... | true |
e3c929338e71a61d21c54b5038256a88a2171fac | Java | stephencarse/SquidLib | /src/squidpony/squidgrid/fov/threed/FOVSolver3D.java | UTF-8 | 2,321 | 2.875 | 3 | [
"Apache-2.0",
"BSD-3-Clause"
] | permissive | package squidpony.squidgrid.fov.threed;
import squidpony.squidgrid.util.RadiusStrategy;
import squidpony.annotation.Beta;
import squidpony.squidgrid.fov.FOVSolver;
/**
*
* @author Eben Howard - http://squidpony.com - howard@squidpony.com
*/
@Beta
public interface FOVSolver3D extends FOVSolver {
/**
* Cal... | true |
c3f704c924aa388869828c77c02c82648ed6e44c | Java | primayasa/LoginTodoApp | /app/src/main/java/com/primayasa/logintodoapp/Todo.java | UTF-8 | 215 | 2.375 | 2 | [] | no_license | package com.primayasa.logintodoapp;
public class Todo {
private String title;
public Todo(String title){
this.title = title;
}
public String getTitle(){
return this.title;
}
}
| true |
51fac2ec816e9ff6e8268c9674689eec72605f55 | Java | TestToolInterfaces/tti_utils | /src/main/java/org/testtoolinterfaces/utils/GenericTagAndStringXmlHandler.java | UTF-8 | 2,962 | 3.0625 | 3 | [] | no_license | package org.testtoolinterfaces.utils;
import org.xml.sax.Attributes;
import org.xml.sax.XMLReader;
/**
* Handles XML lines like:
* <{tag}>
* ...
* </{tag}>
*
* The Tag-name is configurable and the Text is read and returned as string.
*
* No parameters and no sub-tags are supported.
* I... | true |
638d16bb0c84eb9892685cb5cb475f183c3ce59d | Java | MTrop/DoomTools | /src/main/java/net/mtrop/doom/tools/gui/managers/DoomToolsLanguageManager.java | UTF-8 | 8,107 | 2.296875 | 2 | [
"MIT"
] | permissive | /*******************************************************************************
* Copyright (c) 2020-2023 Matt Tropiano
* This program and the accompanying materials are made available under
* the terms of the MIT License, which accompanies this distribution.
******************************************************... | true |
3c1d7adfe3daaa872b9ffd485bc47335ce94d07d | Java | yasburg/CS310-MobileApplicationDevelopment | /Week3Day2/src/edu/sabanciuniv/cs310/fileio/MainClassRead.java | UTF-8 | 680 | 3.1875 | 3 | [] | no_license | package edu.sabanciuniv.cs310.fileio;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
public class MainClassRead {
public static void main(String[] args)
{
//System.out.println((char)88);
try
{
FileReader reader = new FileReader("studyme.txt");
while... | true |
cf60a7258f5790d5a8875a468d801a44f5753cb9 | Java | zhengyang65/LeetCode | /精选Top/数组/src/medium/Leetcode73.java | UTF-8 | 981 | 3.171875 | 3 | [] | no_license | package medium;
import java.util.*;
public class Leetcode73 {
public static void setZeroes(int[][] matrix) {
int row = matrix.length;
int col = matrix[0].length;
Set<Integer> rowset = new HashSet<>();
Set<Integer> colset = new HashSet<>();
for (int i = 0; i < row; i++) {
... | true |
83bbdcd6ed90d7656aa9a13cf1efed73195ef420 | Java | jeongdev55/netflix_admin | /src/main/java/com/mgr/netflix/admin/ticket/dao/AdminTicketDAO.java | UTF-8 | 1,116 | 2.078125 | 2 | [] | no_license | package com.mgr.netflix.admin.ticket.dao;
import java.util.HashMap;
import java.util.List;
import org.mybatis.spring.SqlSessionTemplate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;
@Repository
public class AdminTicketDAO<AdminTicketVO> {
@Autowi... | true |
55eb8e942f344b7ac2c62feedcad38b2b57e9dc8 | Java | Bahubali/coding-test | /src/com/datastructure/QueueTemp.java | UTF-8 | 800 | 3.53125 | 4 | [] | no_license | package com.datastructure;
/**
* Created by bahubali.n on 05/05/19.
*/
public class QueueTemp {
private int head = 0, tail = 0, numQueueElements = 0;
private Integer[] entries;
public QueueTemp(int capacity) {
entries = new Integer[capacity];
}
public void enqueue(int val) {
if... | true |
529e7fc2d6d61834313d390a51986540b2d51339 | Java | JuyelRana/MaheRamadan2016 | /app/src/main/java/com/rana/juyelrana/maheramadan/TotalCalender.java | UTF-8 | 3,137 | 1.859375 | 2 | [] | no_license | package com.rana.juyelrana.maheramadan;
import android.content.Intent;
import android.os.Bundle;
import android.support.design.widget.FloatingActionButton;
import android.support.design.widget.Snackbar;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.Toolbar;
import android.view.View;... | true |
713be6ff480526570d258846eb4222cd42a41964 | Java | alizaliz/CodingBat-Java | /java-exercises/src/main/java/codingbat/String2.java | UTF-8 | 17,010 | 4.34375 | 4 | [] | no_license | package codingbat;
/**
* Medium String problems -- 1 loop. See the Java String Help document for help
* with strings. https://codingbat.com/doc/string.html
*/
public class String2 {
/**
* Given a string, return a string where for every char in the original, there
* are two chars.
*
*
... | true |
a9544362a8f8414bb23774705567a72df6baab07 | Java | yashpatel007/EStore-Spring-Application | /src/main/java/com/estore/EStore/models/SellerAuthority.java | UTF-8 | 1,218 | 2.21875 | 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.estore.EStore.models;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.G... | true |
2da35ed20b912cec82d8629a236aeb0cbe07dbc6 | Java | yulong88888/HelloSpringCloud | /hello-spring-cloud-service-admin/src/main/java/net/lengmang/hello/spring/cloud/service/admin/AdminController.java | UTF-8 | 603 | 2.203125 | 2 | [] | no_license | package net.lengmang.hello.spring.cloud.service.admin;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
@RestController
publi... | true |
2f23e1b07f5b284cb983994b409459465ef6dc73 | Java | nblair/my-student-financial-account | /my-student-financial-account-impl/src/main/java/edu/wisc/student/finance/demo/DemoChargeDaoImpl.java | UTF-8 | 1,111 | 2.34375 | 2 | [] | no_license | /**
*
*/
package edu.wisc.student.finance.demo;
import java.util.Collection;
import javax.inject.Named;
import edu.wisc.student.finance.ChargeDao;
import edu.wisc.student.finance.v1.ChargeType;
/**
* Demo implementation of {@link ChargeDao} backed by {@link GenericDemoDataDao}.
*
* @author Nicholas Blair
*/... | true |
6a016fdb5bc50eb6e254c2c99879b77c373e0686 | Java | monkeydp/demo | /thrift/client/src/main/java/com/monkeydp/demo/thrift/client/event/EventController.java | UTF-8 | 515 | 1.898438 | 2 | [] | no_license | package com.monkeydp.demo.thrift.client.event;
import com.monkeydp.demo.thrift.protocol.event.TEvent;
import com.monkeydp.demo.thrift.protocol.event.TEventService;
import lombok.extern.slf4j.Slf4j;
import ru.trylogic.spring.boot.thrift.annotation.ThriftController;
/**
* @author iPotato
* @date 2019/7/11
*/
@Slf4j
... | true |
31654455bfcf66728d4d0bfb6d9ec8a1e8de8415 | Java | shanks195/toan-project | /open4um/src/main/java/tp/kits3/open4um/service/HistoryMoneyService.java | UTF-8 | 563 | 1.796875 | 2 | [] | no_license | package tp.kits3.open4um.service;
/**
* @author Thong
*/
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import tp.kits3.open4um.dao.HistoryMoneyDao;
import tp.kits3.open4um.vo.HistoryMoney;
@Service
public class HistoryMoneyServi... | true |
bd9129ff37d810caa10f7ba988d52ccccaa7b3e0 | Java | mhapanow/museum | /src/main/java/com/ciessa/museum/bz/legacy/FER0330View01BzService.java | UTF-8 | 3,613 | 1.632813 | 2 | [] | no_license | package com.ciessa.museum.bz.legacy;
import java.util.Date;
import java.util.logging.Level;
import java.util.logging.Logger;
import org.json.JSONObject;
import org.restlet.resource.Get;
import org.springframework.beans.factory.annotation.Autowired;
import com.ciessa.museum.bz.RestBaseServerResource;
import com.ciess... | true |
0aa7f25d3ed85002c9680ecf3b3dd2ee4664c25a | Java | mpadovan/shopping-list | /src/main/java/it/unitn/webprog2018/ueb/shoppinglist/entities/Notification.java | UTF-8 | 1,117 | 2.0625 | 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 it.unitn.webprog2018.ueb.shoppinglist.entities;
import it.unitn.webprog2018.ueb.shoppinglist.entities.utils.AbstractEntity;
im... | true |
e6fe1cae5bfa7a147ea2ce0fc169a824aaf4fe44 | Java | roppel/CodingInterviewProblems | /src/Leetcode/pattern/backtracking/LC78_Subsets.java | UTF-8 | 866 | 3.359375 | 3 | [] | no_license | package Leetcode.pattern.backtracking;
import java.util.ArrayList;
import java.util.List;
public class LC78_Subsets {
public static void main(String[] args) {
LC78_Subsets lc78 = new LC78_Subsets();
lc78.subsets(new int[]{1,2,3}).forEach(k-> System.out.println(k));
}
public List<List<Int... | true |
ef388335ad9a84265f81f3d15ef67a99c246fbd3 | Java | INGENIANCE/Monitoring-Spring-Batch | /backend/src/main/java/com/ingeniance/batch/config/QuartzConfig.java | UTF-8 | 3,271 | 2.046875 | 2 | [] | no_license | package com.ingeniance.batch.config;
import com.ingeniance.batch.quartz.AutowiringSpringBeanJobFactory;
import com.ingeniance.batch.quartz.QuartzJobLauncher;
import com.ingeniance.batch.quartz.TriggerMonitor;
import org.quartz.spi.JobFactory;
import org.springframework.batch.core.configuration.JobRegistry;
import org.... | true |
6c2db907ef6b715f98e570998577228a4ca8cd8a | Java | joseluiszamora/horizon-android | /src/com/horizon/reports/TabTransactionsClosedActivity.java | UTF-8 | 2,604 | 2.015625 | 2 | [] | no_license | package com.horizon.reports;
import java.util.List;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.AdapterView;
import android.widget.AdapterView.OnItemClickListener;
import android.widget.ListView;
import ... | true |
b7dce2afe340b96c6839e313039cfee53886ff99 | Java | chamanbharti/java-works | /data-structure-and-algorithm/Interview-Programs/src/com/sumOfEnteredNo/CountGivenNo.java | UTF-8 | 491 | 3.4375 | 3 | [] | no_license | package com.sumOfEnteredNo;
import java.util.Scanner;
public class CountGivenNo {
public static void main(String[] args) {
int count = 0;
Scanner input = new Scanner(System.in);
System.out.println("Ente digit: ");
//if user enter 12345678910 then Exception in thread "main" java.util.InputMismatchException... | true |
aea05cd0039f05c74878c9f662b878564eb8ad02 | Java | zackhillman/prodmonitor | /src/main/java/com/worldpay/prodmonitor/jmx/ReplicationServiceStatusImpl.java | UTF-8 | 1,451 | 2.09375 | 2 | [] | no_license | package com.worldpay.prodmonitor.jmx;
//import com.oracle.coherence.patterns.pushreplication.PublishingService.State;
import java.beans.ConstructorProperties;
import java.util.Date;
import java.util.HashMap;
import java.util.Map;
public class ReplicationServiceStatusImpl extends ApplicationStatusImpl {
//// priv... | true |
6e9fdb1eb0ce289ed9e29bc1b09983f9e7627b27 | Java | ITCrowds/GuaPiBooks | /src/test/java/com/itcrowds/guapibooks/ReaderTests.java | UTF-8 | 1,219 | 1.976563 | 2 | [] | no_license | package com.itcrowds.guapibooks;
import com.itcrowds.guapibooks.mapper.ReaderMapper;
import com.itcrowds.guapibooks.service.ReaderService;
import org.junit.Assert;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.tes... | true |
6c06ef1b8283f39d0119e9ce7a2d5e9d3dc6038b | Java | ptrnov/ttscm | /app/src/main/java/com/cudocomm/troubleticket/service/NotificationService.java | UTF-8 | 2,403 | 1.820313 | 2 | [] | no_license | package com.cudocomm.troubleticket.service;
import android.content.Context;
import android.content.Intent;
import android.os.Build;
import android.os.Build.VERSION;
import android.os.Bundle;
import android.service.notification.NotificationListenerService;
import android.service.notification.StatusBarNotification;
impo... | true |
864ec4448e529e8455df6055002fbb6a8b93c9f6 | Java | rangamramesh/microservicesDemo | /order_service/src/main/java/com/ramesh/order_service/resorces/ProductCatlogServiceUsingWebClint.java | UTF-8 | 1,593 | 2.375 | 2 | [] | no_license | package com.ramesh.order_service.resorces;
import com.ramesh.order_service.models.CatlogItem;
import com.ramesh.order_service.models.Product;
import com.ramesh.order_service.models.ProductList;
import com.ramesh.order_service.models.RatingList;
import org.springframework.beans.factory.annotation.Autowired;
import org.... | true |
1b91911743c7110acf43ef70fe1889878218209d | Java | 331491512/esz | /esuizhen-service/esuizhen-ehr-system/src/main/java/com/esuizhen/cloudservice/ehr/model/meta/TMetaInfoRoute.java | UTF-8 | 643 | 1.804688 | 2 | [] | no_license | package com.esuizhen.cloudservice.ehr.model.meta;
public class TMetaInfoRoute {
private Integer routeId;
private String routeCode;
private String routeName;
public Integer getRouteId() {
return routeId;
}
public void setRouteId(Integer routeId) {
this.routeId = routeId;
... | true |
4085c9f8e78ea7e82783d9f96e4e4edc207026e2 | Java | Farhannnn/DogProject16s-49 | /app/src/main/java/com/example/saad/dogproject/Recycler1Model.java | UTF-8 | 531 | 2.546875 | 3 | [] | no_license | package com.example.saad.dogproject;
public class Recycler1Model {
public String DogName;
public String DogDesp;
public Recycler1Model(String dogName, String dogDesp) {
DogName = dogName;
DogDesp = dogDesp;
}
public String getDogName() {
return DogName;
}
public v... | true |
b74fdfb921fe4c0226864e82376dfbfe8cc381ee | Java | Ret-Mode/android | /android/src/com/android/tools/idea/logcat/DefaultAndroidLogcatFilter.java | UTF-8 | 5,071 | 2.203125 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright (C) 2016 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 |
4c72e5a38cba2e4c52455588d8a67ff6fd8305b9 | Java | dhonza/ne | /src/gpat/ATRandomLeaf.java | UTF-8 | 3,026 | 2.828125 | 3 | [] | no_license | package gpat;
import common.RND;
import java.util.ArrayList;
import java.util.List;
/**
* Created by IntelliJ IDEA.
* User: drchaj1
* Date: 7/26/11
* Time: 1:38 PM
* To change this template use File | Settings | File Templates.
*/
public class ATRandomLeaf {
public static class FreeLeaf {
final pri... | true |
fc0e75b6716f37ec8928ebbb16b2e99649fa9c9d | Java | patteje479/Pixelmon | /common/pixelmon/villageGeneration/MapGenPixelmonVillage.java | UTF-8 | 1,898 | 2.53125 | 3 | [] | no_license | package pixelmon.villageGeneration;
import java.util.Arrays;
import java.util.List;
import java.util.Random;
import pixelmon.enums.EnumBiomes;
import net.minecraft.src.BiomeGenBase;
public class MapGenPixelmonVillage extends MapGenStructure
{
/** A list of all the biomes villages can spawn in. */
public sta... | true |
840d05826c5c37c2b0cee8d9b956dc087a071183 | Java | SarithaRajamanickam/Employee | /src/test/java/com/example/demo/EmployeeBuilder.java | UTF-8 | 734 | 2.84375 | 3 | [] | no_license | /*package com.example.demo;
public class EmployeeBuilder {
private Employee employee = new Employee();
public EmployeeBuilder id(int id) {
employee.setId(id);
return this;
}
public EmployeeBuilder empname(String empname) {
employee.setEmpname(empname);
return this;
}
public EmployeeBuilder designation(... | true |
3273c3e260037d32b107297c9890431201b46f6e | Java | YYYQG/arithmetic | /src/main/java/Maximum_Depth_Of_Binary_Tree.java | UTF-8 | 1,462 | 3.671875 | 4 | [] | no_license | import java.util.Stack;
/*
给定一个二叉树,找出其最大深度。
二叉树的深度为根节点到最远叶子节点的最长路径上的节点数。
说明: 叶子节点是指没有子节点的节点。
示例:
给定二叉树 [3,9,20,null,null,15,7],
3
/ \
9 20
/ \
15 7
返回它的最大深度 3 。
*/
public class Maximum_Depth_Of_Binary_Tree {
//递归
public int maxDepth(TreeNode root) {
return getMaxDepth(root);
... | true |
9513ad2260107403dfd5e9d8db9c1f9d0519e396 | Java | sunshixiong789/McHealth | /src/main/java/com/imedcare/project/fnbj/chjc/chyxzd/mapper/TbChChyxzdMapper.java | UTF-8 | 1,442 | 1.992188 | 2 | [] | no_license | package com.imedcare.project.fnbj.chjc.chyxzd.mapper;
import com.imedcare.project.fnbj.chjc.chyxzd.domain.TbChChyxzd;
import java.util.List;
/**
* 产后42天医学指导Mapper接口
*
* @author zhangshilei
* @date 2019-11-19
*/
public interface TbChChyxzdMapper
{
/**
* 查询产后42天医学指导
*
* @param id 产后42天医学指导ID
... | true |
1c7cf0a317101c919bdae5d55fc4960b5643852b | Java | Thiagohcrestani/Trabalho-Cliente-Java | /src/br/com/ab/contracts/FormControllerInterface.java | UTF-8 | 609 | 2.046875 | 2 | [] | no_license | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package br.com.ab.contracts;
import javafx.scene.Parent;
/**
*
* @author drink
*/
public interface FormControllerInterface {
/... | true |
d11c0feb0f7bd273d062b9e0596fff2730bd5513 | Java | accp4014/bookRepository | /src/main/java/com/java1234/test/Teacher.java | UTF-8 | 151 | 2.4375 | 2 | [] | no_license | package com.java1234.test;
public class Teacher implements Penson{
@Override
public void say() {
System.out.println("我是一个老师");
}
}
| true |
d35c3af83a315132f27bceeb88edb091abb00fd5 | Java | Jack0215/Java_Basic | /alone/src/Workshop4_1/Student.java | UTF-8 | 1,370 | 3.375 | 3 | [] | no_license | package Workshop4_1;
public class Student {
private String name;
private int korean;
private int math;
private int english;
private int science;
public Student() {}
public Student(String name, int korean, int math, int english, int science) {
this.name=name;
this.korean=korean;
this.math=mat... | true |
e5fb68b8afd5abbc5caa8fe0ad9ae4679a3e7e17 | Java | Juwdohr/WGU_Calendar | /src/Controllers/AppointmentDetails.java | UTF-8 | 14,911 | 2.8125 | 3 | [
"MIT"
] | permissive | package Controllers;
import Models.Appointment;
import Models.Contact;
import Models.Customer;
import Utilities.Alerts;
import Utilities.Database.ContactDao;
import javafx.collections.FXCollections;
import javafx.collections.ObservableList;
import javafx.fxml.FXML;
import javafx.scene.control.*;
import javafx.stage.St... | true |
a521f244641f89e8142d1f92f09cc5aefd959ca5 | Java | AY1920S1-CS2103T-T13-2/main | /src/main/java/seedu/address/logic/parser/StatsCommandParser.java | UTF-8 | 6,027 | 2.015625 | 2 | [
"MIT"
] | permissive | package seedu.address.logic.parser;
import static seedu.address.commons.core.Messages.MESSAGE_INVALID_COMMAND_FORMAT;
import static seedu.address.logic.parser.CliSyntax.PREFIX_ADDRESS;
import static seedu.address.logic.parser.CliSyntax.PREFIX_BODY_DETAILS;
import static seedu.address.logic.parser.CliSyntax.PREFIX_CAUS... | true |
6f93daabb2b7b37e3f84b0ac91766fabf6996580 | Java | tanyatgr/SysGearTest | /src/main/java/task1/YamlParser.java | UTF-8 | 2,717 | 3.328125 | 3 | [] | no_license | package task1;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileWriter;
import java.io.IOException;
import java.io.InputStream;
import java.util.ArrayList;
import java.util.Collections;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.l... | true |
d0c62647440b7f3b9978b373e9d1da1c8d85bd86 | Java | mitesh018/FinalServlet | /src/CreateTable.java | UTF-8 | 1,524 | 2.75 | 3 | [] | no_license |
import java.io.IOException;
import java.io.PrintWriter;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletReq... | true |
210451e6381a59563c55671b06029396b958a226 | Java | Flint92/profiler | /src/main/java/demo/ProfilerApplication.java | UTF-8 | 601 | 1.828125 | 2 | [] | no_license | package demo;
import demo.service.DataService;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
//@SpringBootApplication
//@ImportResource(locations= {"classpath:application-demo.xml"})
public class ProfilerApplication {
... | true |
be53084e1cb5ceb26911060109ada1a901d0715c | Java | gzmuSoft/BaoJing | /src/main/java/com/gzmusxxy/service/BxInsuranceService.java | UTF-8 | 1,324 | 1.914063 | 2 | [
"MIT"
] | permissive | package com.gzmusxxy.service;
import com.github.pagehelper.PageInfo;
import com.gzmusxxy.entity.BxInsurance;
import org.apache.ibatis.annotations.Param;
import java.util.List;
public interface BxInsuranceService {
int insert(BxInsurance record);
BxInsurance selectByPrimaryKey(Integer id);
int updateBy... | true |
2920feee411e7353e40561b39cc87ebcf0439a4a | Java | iwtbam/leetcode | /code/lt0718.java | UTF-8 | 653 | 2.953125 | 3 | [] | no_license | class Solution {
public int findLength(int[] A, int[] B) {
int len1 = A.length;
int len2 = B.length;
if(len1 == 0 || len2 == 0)
return 0;
int[][] dp = new int[len1][len2];
int maxLen = 0;
for(int i = 0; i < len1; i++){
for(int j = 0; j... | true |
ffd5a7f025893acb8e437d6f58d213e6f123cc48 | Java | wtjandjay/JAY | /app/src/main/java/com/diligroup/UserSet/activity/ReportBirthday.java | UTF-8 | 2,202 | 2 | 2 | [] | no_license | package com.diligroup.UserSet.activity;
import android.widget.DatePicker;
import com.diligroup.R;
import com.diligroup.base.BaseActivity;
import com.diligroup.bean.UserInfoBean;
import com.diligroup.net.Action;
import com.diligroup.utils.NetUtils;
import com.diligroup.utils.ToastUtil;
import java.util.Calendar;
imp... | true |
578ceb5c05ed19a7d7fe5c4129f58b43f2f88f86 | Java | Melancholic/RedBlack-Tree-plot-at-AWT | /src/com/andreydev/rbtree/RBNode.java | UTF-8 | 1,349 | 3.109375 | 3 | [] | no_license | package com.andreydev.rbtree;
public class RBNode {
private int key;
private Color color;
private RBNode left, right, parrent;
public RBNode(int key, Color color, RBNode nil) {
this.key = key;
this.color = color;
this.left = nil;
this.right = nil;
this.parrent =... | true |
6010d23c1eb5327012a35ea6d11586a75886ddff | Java | Poley/PSDAlt | /internGit/system/src/uk/ac/glasgow/internman/userstore/StudentImpl.java | UTF-8 | 1,147 | 2.71875 | 3 | [] | no_license | package uk.ac.glasgow.internman.userstore;
import uk.ac.glasgow.internman.Internship;
import uk.ac.glasgow.internman.internships.InternshipImpl;
import uk.ac.glasgow.internman.userstore.User;
public class StudentImpl extends User implements uk.ac.glasgow.internman.Student {
private Internship internship;
private P... | true |
8b9fd49d1777ca316b36bb72a11348c0f0e336ee | Java | udumas/Advanced-Java-MCC | /Project 3 - Data Bases/src/DataBase.java | UTF-8 | 3,675 | 3.203125 | 3 | [] | no_license | import java.io.*;
import java.sql.*;
import java.util.*;
public class DataBase
{
Connection con;
Statement stat;
String cmd;
/**
* Constructor
* @throws SQLException, IOException
*/
public DataBase(String pfile) throws SQLException, IOException
{
con = getConnection(pfile);
stat ... | true |
e358019f5ae1c092aad8188b6e1eac53f1ecfe12 | Java | Cui-bob/PathToAlgorithms | /src/MergeSort.java | UTF-8 | 3,397 | 3.25 | 3 | [] | no_license | import java.util.Arrays;
import java.util.Random;
public class MergeSort {
public static void main(String[] arg)
{
int length = 10000;
double[] array = new double[length];
double[] arrayR = new double[length];
Random r = new Random();
for(int i=0;i<length;i++)
{
array[i] = r.nextDouble();
}
... | true |
195e37d213317b2c32ea187c330ed420c28ed66f | Java | ValdemarTeodoro/exercicios_jsf | /JSFExercicio8Valdemar/src/br/com/faculdadedelta/modelo/ProcessoValdemar.java | UTF-8 | 1,739 | 2.609375 | 3 | [] | no_license | package br.com.faculdadedelta.modelo;
public class ProcessoValdemar {
private Long id;
private String numeroProcesso;
private String descricaoProcesso;
private double valorProcesso;
public ProcessoValdemar() {
super();
}
public ProcessoValdemar(Long id, String numeroProcesso, String descri... | true |
d9ad03165db19a8e66ff34bc8f63d3af591a3c6e | Java | saulcasti/PacaProject | /src/main/java/com/paca/entities/User.java | UTF-8 | 2,788 | 2.5 | 2 | [] | no_license | package com.paca.entities;
import java.util.Set;
import javax.persistence.*;
//A collection that contains no duplicate elements
@Entity
public class User {
@Id
@GeneratedValue
private long id;
@Column(unique=true)
private String email;
private String name;
private String lastName;
private String pa... | true |
55616c6bf7f4d606ef655418b96ab9f68f426d7c | Java | harishmain/KayakRepo | /KayakApp/src/com/newt/perfecto/selenium/services/ApplicationManager.java | UTF-8 | 2,627 | 2.640625 | 3 | [] | no_license | package com.newt.perfecto.selenium.services;
import org.apache.log4j.Logger;
import com.perfectomobile.selenium.*;
import com.perfectomobile.selenium.api.*;
import com.perfectomobile.selenium.options.*;
import com.newt.perfecto.selenium.logger.Log4jWrapper;
import com.newt.perfecto.selenium.util.CommonUtility;
/**
*... | true |
244fdc61b0f008782d0f933f363715c8911e2a3d | Java | QI567/macket | /app/src/main/java/com/qi/market/common/db/annotation/UPDATE.java | UTF-8 | 302 | 2.171875 | 2 | [] | no_license | package com.qi.market.common.db.annotation;
import java.lang.annotation.ElementType;
import java.lang.annotation.Target;
/**
* Author:liuqi
* Date:2017/11/29 14:43
* Detail:在方法上注解,表示为更新方法
*/
@Target(ElementType.METHOD)
public @interface UPDATE {
String value();
}
| true |
821251afbb52621460b1f406416f75aba68011fc | Java | seibushin/feedbackr | /app/src/main/java/de/hhu/cs/feedbackr/firebase/FirebaseStorageHelper.java | UTF-8 | 3,963 | 2.890625 | 3 | [
"MIT"
] | permissive | package de.hhu.cs.feedbackr.firebase;
import android.content.Context;
import android.graphics.Bitmap;
import android.os.Environment;
import android.util.Log;
import com.google.firebase.storage.FirebaseStorage;
import com.google.firebase.storage.StorageException;
import com.google.firebase.storage.StorageReference;
im... | true |
760e36bbaeb054d0fb3b021254550f24fda29187 | Java | niilante/http | /src/main/java/com/wizzardo/http/html/Tag.java | UTF-8 | 6,100 | 2.734375 | 3 | [
"MIT"
] | permissive | package com.wizzardo.http.html;
import com.wizzardo.tools.misc.Unchecked;
import java.util.*;
import java.util.concurrent.Callable;
/**
* Created by wizzardo on 08.01.15.
*/
public class Tag {
protected Map<String, String> attrs;
protected String name;
protected Body body;
Tag() {
}
publi... | true |
66b20ce74242cada0ec63cbf0ed4346cede3bd93 | Java | wizzdi/paypal-subscription-client | /src/main/java/com/wizzdi/billing/payment/paypal/client/request/PaymentMethod.java | UTF-8 | 1,653 | 1.960938 | 2 | [] | no_license |
package com.wizzdi.billing.payment.paypal.client.request;
import java.util.HashMap;
import java.util.Map;
import javax.annotation.Generated;
import com.fasterxml.jackson.annotation.JsonAnyGetter;
import com.fasterxml.jackson.annotation.JsonAnySetter;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fast... | true |
93b3afcc6870a3b0cfd8b8618c69af0fbacb4e05 | Java | Wajdi-H/JobOrgan | /src/main/java/com/example/demo/Repository/TypeTravailRepository.java | UTF-8 | 290 | 1.578125 | 2 | [] | no_license | package com.example.demo.Repository;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
import com.example.demo.DAO.TypeTravail;
@Repository
public interface TypeTravailRepository extends JpaRepository<TypeTravail, Long> {
}
| true |
cb67c14786aa5c8e919d748b8c44b860e56bdc7c | Java | rh01/marklogic-guide | /src/com/readailib/ml/DocumentMetaDataReader.java | UTF-8 | 3,398 | 2.40625 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2018 @rh01 http://github.com/rh01
*
* 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 l... | true |
a5759ec9c9528e16c4c84c3eae5a3b1b26174972 | Java | vpupkin/h-os | /src/main/java/org/lzy/fwswaper/htmlhandler/htmlparserex/ScriptExTag.java | UTF-8 | 4,114 | 2.703125 | 3 | [] | no_license | package org.lzy.fwswaper.htmlhandler.htmlparserex;
import org.htmlparser.Node;
import org.htmlparser.scanners.ScriptScanner;
import org.htmlparser.tags.CompositeTag;
import org.htmlparser.util.SimpleNodeIterator;
/**
* A script tag.
*/
@SuppressWarnings("serial")
public class ScriptExTag extends Composit... | true |
dd2591629dac560747863c1a2f30f8b7caf48f00 | Java | chorlick/jrecipe | /src/com/jrecipe/model/business/manager/RecipeStepManager.java | UTF-8 | 1,181 | 2.984375 | 3 | [] | no_license | package com.jrecipe.model.business.manager;
import com.jrecipe.model.domain.ApplicationState;
/**
* Manger for RecipeSteps.
*
* @author Chris Horlick
* @version 0.0.6
* @since 0.0.6
*/
public class RecipeStepManager extends ManagerSuperType {
/* the instance object for the singleton pattern */
private stat... | true |
3e98634c51932ec136580bd9ae8c297788725af2 | Java | Jerry-max199/SpringMvc-Course | /ch03-receiveParam/src/main/java/com/zzjm/controller/MyController.java | UTF-8 | 3,311 | 3.328125 | 3 | [] | no_license | package com.zzjm.controller;
import com.zzjm.vo.Student;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframewor... | true |
fe7cabcd87e7406591638d34cdd8f93d071da17f | Java | seamyreed333/java_exercise | /src/main/java/exercise7/SutdaDeck.java | UTF-8 | 1,236 | 3.671875 | 4 | [] | no_license | package exercise7;
/**
* Created by hyojeongyoon on 2016. 6. 26..
*/
public class SutdaDeck {
final int CARD_NUM = 20;
SutdaCard[] cards = new SutdaCard[CARD_NUM];
/**
* (1) 배열 SutdaCard를 적절히 초기화 하시오.
*/
public SutdaDeck() {
for (int i = 0; i < cards.length; i++) {
int ... | true |
91b41effe119753d54a5b08d2c96362b0562a9f7 | Java | yzkc/TCLFSSC | /src/main/java/com/epoch/framework/bpm/event/BeforeTaskSubmitedEvent.java | UTF-8 | 749 | 1.976563 | 2 | [] | no_license | package com.epoch.framework.bpm.event;
import java.util.HashMap;
import java.util.Map;
import org.springframework.context.ApplicationEvent;
import com.epoch.cc.entity.ProcessTaskEntity;
/**
* Created by fengf on 2016-6-28
* @desc 流程任务提交前事件
*/
public class BeforeTaskSubmitedEvent extends ApplicationEvent {
... | true |
a33cb50141c8a9cbe2516774a4019d0d591ddd02 | Java | VitorFernandes2/ProjPA | /projpa/GameLogic/Trackers/JourneyTracker.java | UTF-8 | 2,540 | 3.28125 | 3 | [] | no_license | package projpa.GameLogic.Trackers;
import java.io.Serializable;
import java.util.ArrayList;
import projpa.GameLogic.GameConstants;
/**
* JourneyTracker
*/
public class JourneyTracker extends GameConstants implements Serializable{
String [] JourneyTrackers = {"S", "2A", "3A", "4A","5A","R","4A","5A","6A","R","6... | true |
f7c4aef4df8af80780d8bda70fbbd26c9f8bdd64 | Java | zhangbin8/test | /src/main/java/com/alipay/Rest.java | UTF-8 | 434 | 2.484375 | 2 | [] | no_license | package com.alipay;
import java.util.HashSet;
import java.util.Set;
public class Rest {
public static void main(String[] args) {
Set<Integer> xin = new HashSet<Integer>();
xin.add(2);
xin.add(3);
xin.add(4);
Set<Integer> old = new HashSet<Integer>();
old.add(1);
old.add(2);
old.add(3);
... | true |
09454c8ab30bf14e8ff8e88a9568a5127a8ba839 | Java | dongjunekim/SleepPattern_practice | /app/src/main/java/whatdda/tabexamsolo/View/SecondFragment.java | UTF-8 | 3,224 | 2.328125 | 2 | [] | no_license | package whatdda.tabexamsolo.View;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;... | true |
3a4fb6af293948199418ac622da87c6e0f34f0c2 | Java | cerick/chuidiang-ejemplos | /mbean/src/com/chuidiang/ejemplos/mbean/Hello.java | UTF-8 | 575 | 3.09375 | 3 | [] | no_license | package com.chuidiang.ejemplos.mbean;
/**
* A mbean implementation. It must implement a mbean interface
* ( A interface which name ends with "MBean" ). The class must
* have the same name as the interface, but without the trailing
* "MBean"
*
* Something implements SomethingMBean
*
* @author chui... | true |
dd70cf717f5746750be6b35721baa815dbde2cc0 | Java | kushpatel712/kanyehole | /KanYeHole/app/src/main/java/com/dropout/kanyehole/TayArc.java | UTF-8 | 2,100 | 3.171875 | 3 | [] | no_license | package com.dropout.kanyehole;
/**
* This Class is the Taylor Head that moves with the accelerometer.
* There is only one of them since it's basically the player's character.
*/
public class TayArc implements Drawable {
private static TayArc instance = new TayArc(0, 0);
private android.graphics.PointF posit... | true |
c3a992b26ed4c00b4e8416884b5267b2da5f3f14 | Java | vstandera/PoliceServerInterview | /radar/src/main/java/com/system/radar/services/RadarServiceImpl.java | UTF-8 | 566 | 2.125 | 2 | [] | no_license | package com.system.radar.services;
import com.system.radar.data.RadarData;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.web.client.RestTemplate;
@Service
public class RadarServiceImpl implements RadarService {
@Autowired
... | true |
3761c9feba4f8d0e79c6fc5b05fb8a910045de5d | Java | KajanM/StepByStepSwing | /Swing8- Size/src/Toolbar.java | UTF-8 | 1,264 | 2.84375 | 3 | [] | no_license | import java.awt.FlowLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.JButton;
import javax.swing.JPanel;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
public class Toolbar extends JPanel implements ActionListener {
private stat... | true |
5c8a097ca346489834d230b4f307afd449dd6c34 | Java | Dannyhh/Bloodlines | /DescUI.java | UTF-8 | 1,333 | 2.96875 | 3 | [] | no_license | import java.util.*;
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import java.io.*;
public class DescUI extends UI {
Item selected;
JTextArea textArea;
public DescUI (Item selected) {
this.selected = selected;
renderAll();
}
public void renderAll () {
wi... | true |
a3e893431ba284c1b9e8ab91398c0b9dc4ff8de2 | Java | nikohan/spring-boot-demo | /biz-demo/src/main/java/com/test/demo/algorithms/sort/FastSort.java | UTF-8 | 1,235 | 3.6875 | 4 | [] | no_license | package com.test.demo.algorithms.sort;
import java.util.Arrays;
/**
* 快速排序
* https://www.cnblogs.com/coderising/p/5708801.html
* Created on 2017/12/14.
*/
public class FastSort {
public static void main(String[] args) {
int[] array = new int[] {3, 2, 4, 1, 5, 9, 6, 7, 8};
System.out.println(Arrays.toString(... | true |
fe93e94c68968fcb6354cca3cae37e05bb1bc036 | Java | keviinss/SistemMonitoring | /app/src/main/java/com/example/skripsi/activity/ortu/InputAmalanYaumiyah.java | UTF-8 | 5,334 | 1.796875 | 2 | [] | no_license | package com.example.skripsi.activity.ortu;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.ArrayAdapter;
import android.widget.Button;
import android.widget.EditText;
import android.widget.ImageView;
import android.widget.Spinner;
import android.widget.TextView;... | true |
4a2c1a7ff27f2742bb3a5b684cd5f1c65e050134 | Java | stanvanrooy/decompiled-instagram | /decompiled/instagram/sources/com/instagram/react/modules/product/IgReactPromoteMigrationModule.java | UTF-8 | 1,811 | 1.625 | 2 | [] | no_license | package com.instagram.react.modules.product;
import android.text.TextUtils;
import com.facebook.fbreact.specs.NativeIGPromoteMigrationReactModuleSpec;
import com.facebook.react.module.annotations.ReactModule;
import com.instagram.business.promote.activity.PromoteActivity;
import p000X.A44;
import p000X.AnonymousClass0... | true |
a071eda048706e2265fde2fce9c28fe219b75bc7 | Java | NovaViper/ZeroQuest | /1.7.10-src/common/zeroquest/client/gui/config/GuiFactory.java | UTF-8 | 5,264 | 2.15625 | 2 | [
"Apache-2.0"
] | permissive | package common.zeroquest.client.gui.config;
import java.util.ArrayList;
import java.util.List;
import java.util.Set;
import net.minecraft.client.Minecraft;
import net.minecraft.client.gui.GuiScreen;
import net.minecraft.client.resources.I18n;
import net.minecraftforge.common.ForgeModContainer;
import net.mi... | true |
fdaf2eb5fee67f3a0fd8852ad915f4c34430c139 | Java | githubzoujiayun/job138 | /.svn/pristine/fd/fdaf2eb5fee67f3a0fd8852ad915f4c34430c139.svn-base | UTF-8 | 4,960 | 1.84375 | 2 | [] | no_license | package com.geetion.job138.fragment;
import cn.sharesdk.onekeyshare.OnekeyShare;
import com.liqi.job.R;
import com.geetion.job138.activity.BaseActivity;
import com.geetion.job138.activity.MapActivity;
import com.geetion.job138.imagecache.ImageLoader;
import com.geetion.job138.model.Company;
import com.geetion.job138.... | true |
8cbfdb0e767e0aae4ef1da91572639c088c0f57d | Java | Software-Engineering-Cabbage/BlogParkApp | /app/src/main/java/com/example/my_test6/edu_module/Manager/Member/MemberDeleteActivity.java | UTF-8 | 4,070 | 2.140625 | 2 | [] | no_license | package com.example.my_test6.edu_module.Manager.Member;
import androidx.annotation.NonNull;
import androidx.appcompat.app.AppCompatActivity;
import androidx.recyclerview.widget.ItemTouchHelper;
import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;
import android.an... | true |
13811ea01c4ecd9ff70a5ec9b8372998659f6a12 | Java | DDDJing/mmzsblog-util | /springboot-shiro/src/main/java/com/shiro/service/UserRoleService.java | UTF-8 | 310 | 1.53125 | 2 | [
"Apache-2.0"
] | permissive | package com.shiro.service;
import com.shiro.model.UserRole;
import com.baomidou.mybatisplus.extension.service.IService;
/**
* <p>
* 服务类
* </p>
*
* @author mmzsblog.cn
* @since 2020-07-30
*/
public interface UserRoleService extends IService<UserRole> {
Integer getRoleIdByUserId(Integer userId);
}
| true |
1e4aaa057678d20e4b9f5aa55892e1d8ea0957eb | Java | a827871781/spring-cli | /src/main/java/com/syz/cli/service/Innodb1Service.java | UTF-8 | 754 | 1.796875 | 2 | [] | no_license | package com.syz.cli.service;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.syz.cli.Dao.Innodb1Mapper;
import com.syz.cli.entity.Innodb1;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;
import java.util.Map;
@Se... | true |
54f71e5b6a3aa257c44025845d0f51be259b81ec | Java | bjlcyxkjyxgs/jeesite-1 | /src/main/java/com/thinkgem/jeesite/modules/business/entity/special/SwSpecial.java | UTF-8 | 7,470 | 1.867188 | 2 | [
"Apache-2.0"
] | permissive | /**
* Copyright © 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
*/
package com.thinkgem.jeesite.modules.business.entity.special;
import org.hibernate.validator.constraints.Length;
import com.thinkgem.jeesite.modules.sys.entity.Office;
import com.thinkgem.jeesite.module... | true |
f6986d5470536e05822d8b79d831757002d19716 | Java | tattrung15/BTVN_JAVA_2019 | /BooksManagement/src/view/View.java | UTF-8 | 29,658 | 2.703125 | 3 | [] | no_license | package view;
import controller.DataController;
import controller.DataUtility;
import model.Book;
import model.BookReaderManagement;
import model.Reader;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Date;
import java.util.Scanner;
public class View {
public static void main(Str... | true |
2663cc9ad153f29548f73fa29a57cef6fed1c4f7 | Java | 3xPinkyBlack/3xPinkyBlack-Standard-Calculator-Java | /src/latestcalcinterface/LatestCalcInterface.java | UTF-8 | 29,724 | 2.8125 | 3 | [] | no_license | package latestcalcinterface;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.*;
import static javax.swing.BorderFactory.createEmptyBorder;
public class LatestCalcInterface {
JFrame CalcFrame = new JFrame("Razor Studios");
JTex... | true |
49272a2d50c800a7003412f0d35dfb0f1b028d40 | Java | wisafirnanda/CoffeeTime2 | /app/src/main/java/com/coffeetime/client/DetailWarkopActivity.java | UTF-8 | 3,470 | 2.03125 | 2 | [] | no_license | package com.coffeetime.client;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.view.View;
import android.widget.TextView;
import com.coffeetime.R;
import com.coffee... | true |
df9316708bcda6a0ee6cc57e656ec5f988e885dc | Java | kozchris/sesametm | /sesametm.common/src/main/java/de/topicmapslab/sesametm/core/SesameTopicMapSystem.java | UTF-8 | 1,700 | 2.234375 | 2 | [] | no_license | /*
* Copyright: Copyright 2010 Topic Maps Lab, University of Leipzig. http://www.topicmapslab.de/
* License: Apache License, Version 2.0 http://www.apache.org/licenses/LICENSE-2.0.html
*/
package de.topicmapslab.sesametm.core;
import java.util.HashMap;
import java.util.Map;
import org.tmapi.core.FeatureNotRecog... | true |
75ed7e15bdf072927b6f96ec28d952508cd13a09 | Java | NBakalov19/SoftUni_Java_Database_Hibernate | /09.XML-Processing/car_shop_dealer/src/main/java/com/bakalov/xmlproccesing/services/CustomerService.java | UTF-8 | 569 | 2.078125 | 2 | [] | no_license | package com.bakalov.xmlproccesing.services;
import com.bakalov.xmlproccesing.domains.dtos.views.CustomersWithPurchasesDto;
import com.bakalov.xmlproccesing.domains.dtos.views.OrderedCustomersDto;
import com.bakalov.xmlproccesing.domains.entities.Customer;
import java.io.BufferedReader;
import java.util.List;
... | true |
3021f3aab22964988cea7c1255b21fedb7ab547c | Java | rishabh-agarwal/PointOfSaleSystem | /src/main/java/com/harrisburg/university/softengandtest/pointofsalesystem/Item/ReturnItem.java | UTF-8 | 505 | 2.03125 | 2 | [
"Apache-2.0"
] | permissive | package com.harrisburg.university.softengandtest.pointofsalesystem.Item;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
@Entity
@AllArgsConstructor
@NoArgsCon... | true |