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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
ff32d829fce47f9fb32e6dbdc649ad155d7b9bd5 | Java | zhxluke/TestJava | /src/main/java/com/lcb/ds/tree/BinaryTree.java | UTF-8 | 1,352 | 3.828125 | 4 | [] | no_license | package com.lcb.ds.tree;
public class BinaryTree<T extends Comparable<T>> implements Comparable<T> {
private TreeNode<T> root;
public BinaryTree(T element) {
this.root = new TreeNode<T>(element);
}
public TreeNode<T> getRoot() {
return root;
}
public void add(T element) {
addElement(root, element);
}
... | true |
45477eba9e5e2f0e4c8d7b23e2e5300e2bcf1361 | Java | tsuzcx/qq_apk | /com.tencent.qqlite/assets/exlibs.1.jar/classes.jar/com/tencent/mobileqq/activity/aio/audiopanel/ChangeVoiceView.java | UTF-8 | 7,123 | 1.601563 | 2 | [] | no_license | package com.tencent.mobileqq.activity.aio.audiopanel;
import android.content.Context;
import android.content.res.Resources;
import android.os.SystemClock;
import android.util.AttributeSet;
import android.widget.ImageView;
import android.widget.RelativeLayout;
import android.widget.TextView;
import com.tencent... | true |
b1059164d76fd05977c4cb5ef840bbc074db7bdc | Java | Lucas-Poppy/Hew2_LOHACO | /src/cart/TekiSyoriServlet.java | UTF-8 | 3,437 | 2.109375 | 2 | [] | no_license | package cart;
import java.io.IOException;
import java.sql.SQLException;
import javax.servlet.RequestDispatcher;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.Ht... | true |
dc5b3dd43f3d52059ce7a6af47b98cbca75627e2 | Java | danielekbom/pong | /model/PlayerModel.java | UTF-8 | 803 | 3.90625 | 4 | [] | no_license | package model;
/**
* Class that represents a player.
* A player consists of a Name and a Score.
* @author Daniel and Oscar
*
*/
public class PlayerModel {
private String Name;
private int Score = 0;
/**
* Constructor for a player.
* @param name The player's name.
*/
public PlayerModel(String name){
... | true |
396340c17b646e601bd9fc2ce1198d1d44188d91 | Java | wangzhiwubigdata/DesignPattern | /Builder/BuilderPattern.java | UTF-8 | 1,790 | 3.765625 | 4 | [] | no_license | class Product {
private String part1;
private String part2;
public String getPart1() {
return part1;
}
public void setPart1(String part1) {
this.part1 = part1;
}
public String getPart2() {
return part2;
}
public void setPart2(String part2) {
this.par... | true |
8009c9d24fb95d25f908394d04592b4a0669230d | Java | deveshtiwary19/My-Billing-Book | /app/src/main/java/com/example/mybillingbook/Fragments/PartyFragment.java | UTF-8 | 8,335 | 2.140625 | 2 | [] | no_license | package com.example.mybillingbook.Fragments;
import android.content.Intent;
import android.os.Bundle;
import androidx.annotation.NonNull;
import androidx.fragment.app.Fragment;
import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;
import android.text.Editable;
imp... | true |
5a0a4b821a5909d09a08b14436ca08586cb1003f | Java | filveith/DUT-Gomoku-2021 | /src/jeu/Case.java | UTF-8 | 529 | 3.375 | 3 | [] | no_license | package jeu;
public class Case {
char nature;
/**
* Constructeur de Case
*
* @param nature_
*/
Case (char nature_) {
this.nature = nature_;
}
/**
* get la nature d'une case
*
* @return nature de la case
*/
public char getNature() {
retu... | true |
b6e3e104b28d44c56e382ee566dbfeb2ff08227d | Java | COFFEE-ZJU/OnlineJudge | /src/leetcode/_1sttime/no306/Solution.java | UTF-8 | 1,873 | 3.390625 | 3 | [] | no_license | package leetcode._1sttime.no306;
import java.math.BigInteger;
public class Solution {
public boolean isAdditiveNumber(String num) {
int len;
if (num == null || (len=num.length()) <= 2) return false;
int bound = len / 3 * 2;
BigInteger n1 = BigInteger.ZERO;
boolean iFixed =... | true |
cf9f3227cb73ae061ad0351d644f870727da8de0 | Java | mhrpatel12/MVVM | /app/src/main/java/com/mihir/vehiclelisting/model/Weather.java | UTF-8 | 2,139 | 2.390625 | 2 | [] | no_license |
package com.mihir.vehiclelisting.model;
import java.io.Serializable;
import android.os.Parcel;
import android.os.Parcelable;
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
public class Weather implements Serializable, Parcelable {
@SerializedName("temp")
@Exp... | true |
1bc6f28f7fd5bec45b7eb28901604ea36a010be5 | Java | savlpavel/domino-jnx | /domino-jnx-api/src/main/java/com/hcl/domino/richtext/records/CDOLEBegin.java | UTF-8 | 7,694 | 1.765625 | 2 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | /*
* ==========================================================================
* Copyright (C) 2019-2022 HCL America, Inc. ( http://www.hcl.com/ )
* All rights reserved.
* ==========================================================================
* Licensed under the Apache License, Ve... | true |
b25cb34264d8d3541416ade448fb32b18ab0391d | Java | Yzerost/solution-hub-backend | /src/main/java/com/h3c/solution/service/SolutionService.java | UTF-8 | 919 | 2.078125 | 2 | [] | no_license | package com.h3c.solution.service;
import com.h3c.solution.entity.Solution;
import java.util.List;
public interface SolutionService {
/**
* 获取所有内容
* @return
*/
List<Solution> findAll();
/**
* 根据 id 查询一条记录
* @param id
* @return
*/
Solution getSolutionById(Integer id)... | true |
e63d880231663e23bbe808b76d82fd790b391f3c | Java | JetBrains/intellij-community | /platform/lang-api/src/com/intellij/execution/filters/OpenFileHyperlinkInfo.java | UTF-8 | 1,860 | 1.867188 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2000-2017 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | true |
bcd59dfe69df71cfc9057563c2b4c73e223c3d25 | Java | Qiaoda/Hotwind.Android.SWMS.UNIT | /LoginActivity/src/cn/jitmarketing/hot/ui/sku/AddStockActivity.java | UTF-8 | 12,518 | 1.625 | 2 | [] | no_license | package cn.jitmarketing.hot.ui.sku;
import java.io.InputStream;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Timer;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
import android.app.AlertDialog;
import andro... | true |
eeadb56ed5576243bf639bd35e8b16dbaa006b6c | Java | rizqaalfi/Java | /NetBeansProjects/ProjectBelajar/src/projectbelajar/ProjectBelajar.java | UTF-8 | 611 | 2.421875 | 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 projectbelajar;
/**
*
* @author Acer
*/
public class ProjectBelajar {
/**
* @param args the command line argument... | true |
d6df6a883a787206a1235ebcd9934c38918a92c7 | Java | jmmateo14/EDA1_2015-16 | /MateoMartinJoseManuel/src/org/eda1/actividad04/ejercicio01/SpellChecker.java | UTF-8 | 2,381 | 3.625 | 4 | [] | no_license | package org.eda1.actividad04.ejercicio01;
import java.util.*;
public class SpellChecker
{
protected TreeSet<String> dictionary;
protected TreeSet<String> document;
/**
* Initializes this SpellChecker object.
*
*/
public SpellChecker()
{
dictionary = new TreeSet<String>();
document = new TreeSet<... | true |
f49ad6df7a511572be34e2c21c8d8eefaad40584 | Java | Conservant/logiweb2 | /src/main/java/com/tsystems/logiweb2/model/enums/DriverStatus.java | UTF-8 | 157 | 1.765625 | 2 | [] | no_license | package com.tsystems.logiweb2.model.enums;
/**
* Created by StarKiller on 17.11.2014.
*/
public enum DriverStatus {
DRIVING,
ON_ROUTE,
FREE
}
| true |
8775d1bedad36f55589a27e46efe1d646726d545 | Java | miguelpincheira/ejemploCucumber | /src/test/component/java/cl/nisum/ubb/RentACarSteps.java | UTF-8 | 2,624 | 2.375 | 2 | [] | no_license | package cl.nisum.ubb;
import java.util.List;
import java.util.Map;
import org.hamcrest.core.Is;
import org.junit.Assert;
import org.mockito.Mockito;
import cucumber.api.DataTable;
import cucumber.api.PendingException;
import cucumber.api.java.Before;
import cucumber.api.java.en.Given;
import cucumber.api.java.en.The... | true |
f30ab3704b63fdcb918eef58738557a2edc1745a | Java | felipeleandro/TesteE2EJava | /src/test/java/com/cit/howtojunite2etest/tests/MouseOver.java | UTF-8 | 1,456 | 2.421875 | 2 | [] | no_license | package com.cit.howtojunite2etest.tests;
import com.cit.howtojunite2etest.suporte.Navegador;
import org.junit.After;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
import org.openqa.selenium.By;
import org.openqa.selenium.Point;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium... | true |
c1348767916989741f681d72c84fb0595db5d5bc | Java | leilaconti/Restaurant-Management-Web-Application | /src/main/java/team14/arms/backend/data/entity/TableNumber.java | UTF-8 | 665 | 2.546875 | 3 | [] | no_license | package team14.arms.backend.data.entity;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;
/**
* Represents the table number assigned to the order.
*/
@Entity
public class TableNumber extends AbstractEntity {
... | true |
efbaffb214594382516a5250d8393be692a9e1d0 | Java | alexdpn/warehouse | /src/main/java/com/warehouse/model/food/Bean.java | UTF-8 | 330 | 2.515625 | 3 | [] | no_license | package com.warehouse.model.food;
import com.warehouse.model.Type;
import java.math.BigDecimal;
import java.time.LocalDate;
public class Bean extends Food {
public Bean() {}
public Bean (double weight, LocalDate expiry, BigDecimal price, String color) {
super(weight, expiry, Type.BEAN, price, color)... | true |
f44a2352251a0e5dc21e1b28d0a3c04d8767e0d5 | Java | Paishwarya0404/AishwaryaP_Logger | /House.java | UTF-8 | 185 | 1.515625 | 2 | [] | no_license | package epam.logger.log4j;
public class House extends Interest {
public static void main(String[] args) {
House invoke = new House();
invoke.inputDetails();
}
}
| true |
13622265b4b3a092cebe857ed8ab1e23d8cf3b49 | Java | Time-Travellers/TragedyLooper | /src/presentacion/vista/juego/proponerGuion/PanelSeleccionSubtrama.java | UTF-8 | 791 | 2.375 | 2 | [] | no_license | package presentacion.vista.juego.proponerGuion;
import javax.swing.JComboBox;
import javax.swing.JLabel;
import javax.swing.JPanel;
import presentacion.modelo.juego.InfoGuion.Subtrama;
public class PanelSeleccionSubtrama extends JPanel {
private static final long serialVersionUID = 2102358638852149560L;
... | true |
e413c8dc275bd2505e61712290ceccf70f00a8d3 | Java | dnrlrl/j2_201311233 | /src/headfirst/iterator/dinermerger/after/PancakeHouseMenu.java | UTF-8 | 625 | 2.96875 | 3 | [] | no_license | package headfirst.iterator.dinermerger.after;
import java.util.ArrayList;
public class PancakeHouseMenu implements Menu{
ArrayList menuItems;
public PancakeHouseMenu(){
menuItems=new ArrayList();
addItem("BLT","Bacon, Lettuce, Tomato",true, 2.99);
addItem("Salad","Salad, Lettuce, Tomato",true, 2.... | true |
fe500cc8e6461f02943014d1a3360f29b7e9f399 | Java | chloneda/spring-anything | /spring-boot-with-freemarker/src/main/java/com/chloneda/domain/User.java | UTF-8 | 952 | 2.65625 | 3 | [
"Apache-2.0"
] | permissive | package com.chloneda.domain;
/**
* @Created by chloneda
* @Description:
*/
public class User {
private int id;
private String name;
private double money;
private String password;
public User() {
}
public User(int id, String name, double money, String password) {
this.id = id;
... | true |
c7cac43a8f6e1932770b9189e8feef15abda0dae | Java | seogeon/eclipse-workspace-se | /22.내부클래스[Nested]/src/OuterClassMain.java | UTF-8 | 308 | 2.375 | 2 | [] | no_license |
public class OuterClassMain {
public static void main(String[] args) {
OuterClass oc=new OuterClass();
oc.outer_member_field=3422378;
oc.outer_member_method();
/*
OuterClass.InnerClass ic=oc.new InnerClass();
ic.inner_member_field=343434;
ic.inner_member_method();
*/
}
}
| true |
7702590a4ab63e433e36ff0527ee796152804a4e | Java | ludoch/appengine-java-standard | /api/src/main/java/com/google/appengine/api/search/checkers/GetRequestChecker.java | UTF-8 | 2,611 | 2.375 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2021 Google LLC
*
* 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | true |
69531dcce8861e68db238b5ead90ced16b72da46 | Java | pop1030123/android-atleap | /atleap-core/src/main/java/com/blandware/android/atleap/provider/sqlite/SQLiteUriMatcher.java | UTF-8 | 9,945 | 2 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright (C) 2013 Blandware (http://www.blandware.com)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required b... | true |
b9a4d12d63ecc6ba50a94ec989e3ca961efe36ef | Java | kgyrtkirk/filebot | /source/hu/rxd/filebot/classifiers/SeriesMatch.java | UTF-8 | 7,771 | 2.265625 | 2 | [] | no_license | package hu.rxd.filebot.classifiers;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Comparator;
import java.util.List;
import java.util.Locale;
import java.util.PriorityQueue;
import java.util.concurrent.ExecutionException;
import com.google.common.base.Function;
import com.google.common.cach... | true |
0f6169aa7df384cb17cb3bf9fd1dbd43dbcbfd24 | Java | izimin/auth-spring-security | /src/main/java/org/psu/auth/model/enums/RoleEnum.java | UTF-8 | 106 | 1.726563 | 2 | [] | no_license | package org.psu.auth.model.enums;
public enum RoleEnum {
ROLE_GUEST,
ROLE_USER,
ROLE_ADMIN
}
| true |
972d0915c268566f0b6958597d93879e693be632 | Java | doug-gillette/Merrill-Gillette-Project | /JavaApplication5/src/byui/cit260/treasureHunt/model/InventoryItem.java | UTF-8 | 3,908 | 2.71875 | 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 byui.cit260.treasureHunt.model;
import byui.cit260.treasureHunt.control.GameControl;
import java.io.Serializable;
impor... | true |
88606636b047862b71b6adaa278075863a1e2414 | Java | edu-athensoft/ceit1101java | /src/com/athensoft/session3/oop/activity10/AbstractPerson5.java | UTF-8 | 464 | 3.1875 | 3 | [] | no_license | package com.athensoft.session3.oop.activity10;
/**
* Activity 10.4 - Declare an abstract class
*
* with constructor(s), this is legal !!!
*
* @author Athens
*
*/
public abstract class AbstractPerson5 {
//this is legal
public AbstractPerson5() {
}
public abstract String getName();
... | true |
a1082fe04f09de8a9d219c3a074fb061f88a7146 | Java | krizzikuse/MTe | /app-core/src/main/java/com/mercury/platform/shared/FrameVisibleState.java | UTF-8 | 145 | 1.53125 | 2 | [
"MIT"
] | permissive | package com.mercury.platform.shared;
/**
* Created by Константин on 09.12.2016.
*/
public enum FrameVisibleState {
SHOW, HIDE
}
| true |
1511dd63eec7733c03e90a04b8cf79aa24f9f104 | Java | LimJinSuk/chapter03 | /src/io/FileReaderTest.java | UTF-8 | 1,254 | 3.390625 | 3 | [] | no_license | package io;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
public class FileReaderTest {
public static void main(String[] args) {
FileReader fr = null;
FileInputStream fis=null;
try {
//"안녕하세요"
//문자기반-5번읽음
fr... | true |
79a3d8b11624a6092d7734073c96ba0b793e01c1 | Java | Kevin-Borge-Tobar/Proyectos_Java | /ListaEstudiantes/src/main/java/lista/Lista.java | UTF-8 | 824 | 2.53125 | 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 lista;
/**
*
* @author Kevin Borge
*/
public class Lista {
private String nombreCompleto;
private i... | true |
1259108af9ff50ff08dd057407ebc59b7a012a32 | Java | yjfJeff/InnovationCare | /AntibioticGuidelines/src/innovationcare/app/antibioticguidelines/ui/DisplayAntibioticLinkActivity.java | UTF-8 | 2,118 | 2.1875 | 2 | [] | no_license | package innovationcare.app.antibioticguidelines.ui;
import innovationcare.app.antibioticguidelines.Interaction;
import innovationcare.app.antibioticguidelines.R;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.... | true |
5ccb9fdb95c63e2bcae98b5452eb65e7aa9be19b | Java | faisal-nazir/practice_repo | /fna.algos.practice/src.main.java/common/utils/Graph.java | UTF-8 | 428 | 3.140625 | 3 | [] | no_license | package common.utils;
public class Graph {
private static int MAX_VERTICES = 6;
private GraphNode[] vertices;
private int count;
public Graph() {
vertices = new GraphNode[MAX_VERTICES];
count = 0;
}
public GraphNode[] getAllNodes() {
return vertices;
}
public void addNode(GraphNode n) {
if(count ... | true |
ba4a8986d847575780e64e9bc04a3465d903985f | Java | bkahlert/com.bkahlert.nebula | /src-demo/com/bkahlert/nebula/gallery/demoSuits/instruction/explanatory/list/ItemsOnlyListExplanatoryCompositeDemo.java | UTF-8 | 1,546 | 2.4375 | 2 | [
"MIT"
] | permissive | package com.bkahlert.nebula.gallery.demoSuits.instruction.explanatory.list;
import org.eclipse.swt.SWT;
import org.eclipse.swt.events.SelectionAdapter;
import org.eclipse.swt.events.SelectionEvent;
import org.eclipse.swt.widgets.Button;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Display;
... | true |
08621ebf1346417bb02dd25a792dc4ad9910ee58 | Java | zhangshuhua/java-study | /src/main/java/com/zsh/algorithm/chapter2/RandArray.java | UTF-8 | 1,329 | 3.421875 | 3 | [] | no_license | package com.zsh.algorithm.chapter2;
import java.util.Random;
/**
* Created by zsh7040 on 2018-1-22.
* 课后题2.8-随机产生不重复数组
*/
public class RandArray {
//空间换时间
private boolean[] usedArray;
public RandArray(){}
public RandArray(int range){
usedArray = new boolean[range];
}
int[] gener... | true |
ebb8cc075649bf5f73cdfbf0110f670dcdff3d3f | Java | dondadou/TaxiFare | /taxifare/src/main/java/com/taxifare/api/GoogleDirectionAPI.java | UTF-8 | 1,345 | 2.5625 | 3 | [] | no_license | package com.taxifare.api;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.squareup.okhttp.OkHttpClient;
import com.squareup.okhttp.Request;
import com.squareup.okhttp.Response;
import com.taxifare.model.pojos.Directions;
import java.io.IOException;
import java.net.URLEncoder;
class GoogleDirectionAPI ... | true |
edc0e1c960dcc4a9f0bb0e21827dc4bedfebe998 | Java | siddhimuskande/University-Managment-System | /src/ums/TeachDetails.java | UTF-8 | 11,606 | 2.3125 | 2 | [] | no_license | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package ums;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import javax.swing.JOptionPane;
/**
*
* @author Chetan
*/
public class TeachDetails extends javax.swing.JFra... | true |
15c2699d0b2585f5672018a901c031003259b6ca | Java | BrunoRub/ProyectoDSII | /computec/src/main/java/com/proyecto/entity/Usuarios.java | UTF-8 | 1,123 | 1.9375 | 2 | [] | no_license | package com.proyecto.entity;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import org.springframework.format.annotation... | true |
ab67435f4f441f66ba516626d72724b61d8ff2cd | Java | MhmoudOsman/Electronic-Delegate | /app/src/main/java/muhammed/awad/electronicdelegate/Caching/Engine.java | UTF-8 | 7,216 | 2.03125 | 2 | [] | no_license | package muhammed.awad.electronicdelegate.Caching;
import android.annotation.SuppressLint;
import android.annotation.TargetApi;
import android.content.Context;
import android.content.ContextWrapper;
import android.content.pm.PackageManager.NameNotFoundException;
import android.content.res.Configuration;
import android.... | true |
6ae2ece92709f99b0e810e3fc49d608446835644 | Java | miyahejuzi/cn-orange-security | /orange-security/orange-security-core/src/main/java/cn/orange/core/properties/ImageCodeProperties.java | UTF-8 | 325 | 1.773438 | 2 | [] | no_license | package cn.orange.core.properties;
import lombok.Getter;
import lombok.Setter;
/**
* @author kz
* @date 2019/8/10
*/
@Setter
@Getter
public class ImageCodeProperties extends SmsCodeProperties {
private int height = 30;
private int width = 70;
public ImageCodeProperties() {
setLength(4);
... | true |
a1b0708caaf25bcdcdd7e8497dcc922747094a3e | Java | jacobow/CellularAutomataSimulator | /src/cellsociety_team11/game_of_life/GameOfLifeGrid.java | UTF-8 | 2,140 | 3.15625 | 3 | [
"MIT"
] | permissive | package cellsociety_team11.game_of_life;
import java.util.List;
import cellsociety_team11.Cell;
import cellsociety_team11.Coordinates;
import cellsociety_team11.Grid;
import cellsociety_team11.Rule;
import xml.factory.XMLFactoryException;
import xml.model.SimulationXMLModel;
public class GameOfLifeGrid extends Grid<... | true |
55cf20a1713585b07190eb854916d5ddfc476880 | Java | triceo/inrc2 | /src/main/java/org/optaplanner/examples/inrc2/io/Inrc2SolutionFileIO.java | UTF-8 | 4,433 | 2.375 | 2 | [] | no_license | package org.optaplanner.examples.inrc2.io;
import java.io.File;
import java.util.LinkedHashMap;
import java.util.LinkedHashSet;
import java.util.LinkedList;
import java.util.List;
import java.util.Map;
import java.util.Set;
import java.util.SortedMap;
import org.apache.commons.io.FileUtils;
import org.apache.commons.... | true |
41ce741376cc84c344474d31c60d3f0f47518b76 | Java | jakub-olszewski/tarr2019java6-design-pattern | /src/main/java/pl/sdacademy/design/patterns/operation/observer/meteo/Main.java | UTF-8 | 1,540 | 2.921875 | 3 | [
"MIT"
] | permissive | package pl.sdacademy.design.patterns.operation.observer.meteo;
import pl.sdacademy.design.patterns.operation.observer.meteo.observer.MeteoCurrentDisplay;
import pl.sdacademy.design.patterns.operation.observer.meteo.observer.MeteoStatistic;
import pl.sdacademy.design.patterns.operation.observer.meteo.subject.MeteoData;... | true |
f9355752710ec97f86f2e6a9d2df984a43d0f6b8 | Java | wubaofeng111/myApplications | /Prototype/src/ShapeCache.java | UTF-8 | 761 | 2.5625 | 3 | [] | no_license | /**
* Created by friday on 16/9/2.
*/
import sun.security.provider.SHA;
import java.util.Hashtable;
public class ShapeCache {
private static Hashtable<String,Shape> shapeTable =
new Hashtable<String,Shape>();
public static Shape getShape(String shapeId)
{
Shape cloneShape = shapeTabl... | true |
459d2fd60669a8b3997af1a926748ba4d73bec70 | Java | wks1222/mobius-source | /java/lineage2/gameserver/skills/skillclasses/ManaDam.java | UTF-8 | 3,119 | 2.3125 | 2 | [] | no_license | /*
* This program is free software: you can redistribute it and/or modify it under
* the terms of the GNU General Public License as published by the Free Software
* Foundation, either version 3 of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be u... | true |
55fffcedcf83b83ddd6151182350fe416607a2d5 | Java | andrew00x/everrest | /everrest-core/src/main/java/org/everrest/core/method/ParameterResolver.java | UTF-8 | 1,274 | 1.953125 | 2 | [] | no_license | /*******************************************************************************
* Copyright (c) 2012-2016 Codenvy, S.A.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available ... | true |
156923e8fc8a10b846dbd76bb51cf038ee1c5d01 | Java | Luciwar/Example | /src/Problem3.java | UTF-8 | 2,643 | 2.84375 | 3 | [] | no_license | class Task implements Comparable<Task> {
String taskName;
Date Start;
Date End;
public Task(String tName, Date s, Date e) {
taskName = tName;
Start = s;
End = e;
}
@Override
public int compareTo(Task o) {
if (End... | true |
ba7976fba8b2bf21bbc7134bdf86ec3019bcbcf9 | Java | HakJko/DESIGN_PATTERNS- | /STRUCTURAL_PATTRENS/DECORATOR/src/main/java/edu/patterns/ik/Task.java | UTF-8 | 560 | 3.140625 | 3 | [] | no_license | package edu.patterns.ik;
public class Task {
public static void main(String[] args) {
IDeveloper simpleDeveloper = new JavaDeveloper();
System.out.println("Simple developer = " + simpleDeveloper.makeJob());
IDeveloper seniorDeveloper = new SeniorJavaDeveloper(new JavaDeveloper());
... | true |
ca0e929c1e731c4705e0e145e5ed73ffe27a6020 | Java | Jesuspain13/Project | /censo/src/test/java/es/indra/censo/dao/TestUeDao.java | UTF-8 | 1,867 | 2.03125 | 2 | [] | no_license | package es.indra.censo.dao;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
import java.io.File;
import java.io.FileInputStream;
import java.util.List;
import java.util.Locale;
import org.apache.poi.ss.usermodel.Workbook;
import org.apache.poi.ss.usermodel.Workbo... | true |
93924f027bf7d456a1ffdc55c8875809e6efbfbe | Java | liebekinder/middleware | /services-ejb/src/main/java/fr/alma/middleware1314/services/TestRss.java | UTF-8 | 536 | 2.0625 | 2 | [] | no_license | package fr.alma.middleware1314.services;
import java.net.URL;
import com.sun.syndication.feed.synd.SyndFeed;
import com.sun.syndication.io.SyndFeedInput;
import com.sun.syndication.io.XmlReader;
/**
* @author Arnaud Thimel <thimel@codelutin.com>
*/
public class TestRss {
public static void main(String[] args)... | true |
bce6672f84eebdf5da3cb501354129c34c7f3b42 | Java | zaidsaeed/FloodIt- | /FloodIt (2)/src/GameController.java | UTF-8 | 21,692 | 2.984375 | 3 | [] | no_license | import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.util.LinkedList;
import java.awt.Checkbox;
import java.awt.*;
import java.lang.*;
import javax.swing.JOptionPane;
import javax.swing.*;
import java.util.*;
import java.io.*;
/**
* The class <b>GameController</b> is the controller... | true |
78753b26b2e2df68531237fc1d95c0c8c9d00dfa | Java | HowardLander/DataBridge-contrib | /ingest/schizConnect/src/main/java/org/renci/databridge/contrib/ingest/schizConnect/SchizConnectClinicalMetadataFormatter.java | UTF-8 | 4,429 | 2.71875 | 3 | [] | no_license | package org.renci.databridge.contrib.ingest.schizConnect;
import org.renci.databridge.contrib.ingest.util.*;
import java.io.*;
import java.util.*;
import com.google.gson.*;
import com.google.gson.annotations.*;
import org.renci.databridge.formatter.*;
import org.renci.databridge.persistence.metadata.*;
import java.util... | true |
3c0cd64d8944e9dc35057ec4fc89d1164c3dbb09 | Java | yan96in/RRH | /rrh/src/com/cbkj/rrh/pay/wxpay/WXPayUtil.java | UTF-8 | 11,519 | 1.984375 | 2 | [] | no_license | package com.cbkj.rrh.pay.wxpay;
import java.io.StringReader;
import java.net.InetAddress;
import java.net.NetworkInterface;
import java.net.SocketException;
import java.util.Enumeration;
import java.util.HashMap;
import java.util.LinkedList;
import java.util.List;
import java.util.Map;
import java.util.Random;
import... | true |
0e36867d16e7498d6558bb65ef94d892de09c405 | Java | whmine/renren-security | /renren-security/renren-modules/renren-modules-request/renren-modules-request-resources/renren-modules-request-resources-other/src/main/java/io/renren/modules/sys/request/SysDictOptionSaveRequest.java | UTF-8 | 1,590 | 1.828125 | 2 | [
"Apache-2.0"
] | permissive | package io.renren.modules.sys.request;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModelProperty;
import io.renren.comm... | true |
021f8074c9da445d99438d71ffcf445853a09c00 | Java | zhaochlive/sas | /src/main/java/com/js/sas/controller/FacilitatorGoldsController.java | UTF-8 | 10,001 | 2.1875 | 2 | [
"Apache-2.0"
] | permissive | package com.js.sas.controller;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.js.sas.entity.Facilitator;
import com.js.sas.entity.dto.CustomerOfOrder;
import com.js.sas.service.FacilitatorGoldsService;
import com.js.sas.utils.CommonUtils;
import com.js.sas.utils.DateTimeUtil... | true |
ee5a4ca66cc7982a0d6177be62b7247d96ea5b74 | Java | jozn/Bisphone | /de/measite/minidns/DNSMessage.java | UTF-8 | 8,738 | 1.914063 | 2 | [] | no_license | package de.measite.minidns;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.OutputStream;
import java.util.Arrays;
import org.jivesoftware.smackx.bytestreams.ibb.InBandBytestreamManager;
public class DNSMessage ... | true |
485c055adbe920ece3969d616cdd267e413ac4b5 | Java | singhmarut/java8training | /src/main/java/demo/InsurancePremium.java | UTF-8 | 990 | 3.09375 | 3 | [] | no_license | package demo;
import java.util.function.BiConsumer;
/**
* Created by marutsingh on 6/5/16.
*/
class InsurancePremium{
String personName;
double amount;
public void printPersonAmount(BiConsumer<String,Double> printFormat){
printFormat.accept(this.personName,this.amount);
}
public stati... | true |
afd440b5a01c9581696a920befa008af9d8d5434 | Java | gyqplus/gyq | /src/main/java/com/dw/health/eportal/service/impl/PermissionServiceImpl.java | UTF-8 | 4,399 | 2.03125 | 2 | [] | no_license | package com.dw.health.eportal.service.impl;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;
import com.d... | true |
3f8f3be8d1cfbc80c30e4cec6449d9fb818e1ed2 | Java | bellmit/eeka-service | /oms-biz/src/main/java/com/greatonce/oms/biz/admin/GlobalExpressMallMappingService.java | UTF-8 | 757 | 1.898438 | 2 | [] | no_license | package com.greatonce.oms.biz.admin;
import com.greatonce.oms.biz.BizService;
import com.greatonce.oms.domain.admin.GlobalExpressMallMapping;
import com.greatonce.oms.domain.enums.MallType;
import com.greatonce.oms.query.admin.GlobalExpressMallMappingQuery;
/**
* 全局快递商城映射.
*
* @author code-generator
* @author She... | true |
18869ec27a74c32607b7b5bdc8cd3c36edbfc5fb | Java | obilearns2rock/mybible | /platforms/android/src/com/chukylabs/bible/Book.java | UTF-8 | 1,007 | 2.796875 | 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 com.chukylabs.bible;
import java.util.ArrayList;
import java.util.LinkedHashMap;
import java.util.LinkedList;
/**
*
* @aut... | true |
600724f98e3041138e101137542deadc4a0ad570 | Java | survivant/hatatitla | /src/main/java/net/anthavio/httl/api/HttlApiBuilder.java | UTF-8 | 25,726 | 1.90625 | 2 | [] | no_license | package net.anthavio.httl.api;
import java.lang.annotation.Annotation;
import java.lang.reflect.Field;
import java.lang.reflect.InvocationHandler;
import java.lang.reflect.Method;
import java.lang.reflect.ParameterizedType;
import java.lang.reflect.Proxy;
import java.lang.reflect.Type;
import java.util.ArrayList;
impo... | true |
b1c07f34785949d57a2bd316f991a9dd37b56ed5 | Java | mukkamalla/devops | /payroll-spring-backend/src/main/java/com/valign/payroll/webservice/repository/PayrollUserRoleRepository.java | UTF-8 | 1,233 | 1.9375 | 2 | [] | no_license | package com.valign.payroll.webservice.repository;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.domain.Sort;
import org.springframework.data.repository.query.Param;
import com.valign.payroll.webservice.model.PayrollUserRole;
import or... | true |
cc6d2bf0529a8973a552b045986507e50576166d | Java | pauburgos10/tarmac-challenge | /employees_service/src/main/java/com/tarmac/challenge/service/EmployeeService.java | UTF-8 | 620 | 2.125 | 2 | [] | no_license | package com.tarmac.challenge.service;
import com.tarmac.challenge.model.Employee;
import java.util.List;
public interface EmployeeService {
Employee findByName(String name);
List<Employee> findAll(int page, int size);
List<Employee> findByRole(String role, int page, int size);
List<Employee> findByC... | true |
11f27e89345a2d6524b0e4a9bd68e4c78f55aadc | Java | brandboxmkplc/BillTableSystem | /app/src/main/java/com/example/billtable/AddCustomer.java | UTF-8 | 2,836 | 2.4375 | 2 | [] | no_license | package com.example.billtable;
import android.content.ContentValues;
import android.content.Intent;
import android.database.sqlite.SQLiteDatabase;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import an... | true |
7b164be2656d94e88fbfef8cf7858a3f45184cea | Java | soghao/zgyh | /BocBankMobile/src/main/java/com/boc/bocsoft/mobile/bocmobile/buss/loan/eloan/batchprepay/ui/submit/BatchPrepaySubmitFragment.java | UTF-8 | 25,265 | 1.664063 | 2 | [] | no_license | package com.boc.bocsoft.mobile.bocmobile.buss.loan.eloan.batchprepay.ui.submit;
import android.os.Bundle;
import android.text.TextUtils;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.Button;
import android.widget.LinearLayout;
import android.widget.ScrollV... | true |
e8211fd71e04180c3155ca0f588d45d7f138d85d | Java | cdtft/meet | /src/main/java/com/cdut/enums/RoleEnum.java | UTF-8 | 490 | 2.578125 | 3 | [] | no_license | package com.cdut.enums;
/**
* 角色枚举
* Created by king on 2017/10/24.
*/
public enum RoleEnum {
/**
* 管理员角色
*/
ADMIN("admin"),
/**
* 普通用户角色
*/
NORMAL("normal");
RoleEnum(String roleName) {
this.roleName = roleName;
}
private String roleName;
public Stri... | true |
8d627c0afbe25098050eec0b9bd320e99f1caf37 | Java | NomNomSu/InventoryApp | /app/src/main/java/g/inventoryapp/ProductCursorAdapter.java | UTF-8 | 3,917 | 2.15625 | 2 | [] | no_license | package g.inventoryapp;
import android.content.ContentUris;
import android.content.ContentValues;
import android.content.Context;
import android.database.Cursor;
import android.net.Uri;
import android.text.TextUtils;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import an... | true |
54b105649da9fe32b11f58f155c585fc06cc60fd | Java | DaqianLiao/StudyJavaCode | /src/main/java/com/ldq/study/serializable/TransientFieldPerson.java | UTF-8 | 1,001 | 2.78125 | 3 | [] | no_license | package com.ldq.study.serializable;
import java.io.Serializable;
public class TransientFieldPerson implements Serializable {
//通过判断类的serialVersionUID来验证的版本一致的
private static final long serialVersionUID = -2095916884810199532L;
private String name;
private transient int age = 18;
private transient ... | true |
7ec4e247618dbfffbda2b4d73fae44dc66f07be2 | Java | PawelMur/test | /untitled/src/zadanie1.java | UTF-8 | 406 | 3.234375 | 3 | [] | no_license | public class zadanie1 {
static boolean sortowanie (){
int [] tab = {4 , 5, 6, 7};
for (int i = 0 ; i<tab.length-1; i++){
if (tab[i]>tab[i+1]){
return false;
}
}return true;
}
public static void main (String[]args){
String i = (sortowan... | true |
2d6ca8d81c240a92f4ab19d828224e6359585348 | Java | whtis/Java-Exercises | /chapter4/src/$4_15.java | UTF-8 | 547 | 3.25 | 3 | [] | no_license | /**
* Created by ht on 2015/11/26.
*/
public class $4_15 {
public static void main(String[] args) {
double sum = 0;
double product = 0;
double mean = 0;
double deviation = 0;
for (int i = 0; i < 9; i++) {
double a = Math.random() * 1000;
sum += a;
... | true |
b464d68627e8704b0587f172200f42f71284fd09 | Java | flossokay/dagger2 | /daggerDecompiled/app/src/main/java/m3c/mobi/daggerDecompiled/MainActivity.java | UTF-8 | 1,254 | 1.742188 | 2 | [] | no_license | // Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3)
// Source File Name: MainActivity.java
package m3c.mobi.daggerDecompiled;
import android.os.Bundle;
import android.widget.TextView;
import javax.inject.Inject;
impo... | true |
137db4555b4ce2ad74ebce1bb47e3b3a7e8182a1 | Java | jmrsuarez/Grade-12-ICS | /ICS4U/Unit 2/Activity 4/U2A4_ChrisDeVisser_Students/src/u2a4_chrisdevisser_students/Kernel32.java | UTF-8 | 299 | 2.109375 | 2 | [] | no_license | package u2a4_chrisdevisser_students;
import com.sun.jna.Native;
import com.sun.jna.win32.StdCallLibrary;
public interface Kernel32 extends StdCallLibrary { //for kernel32.dll
int GetCurrentProcessId();
static Kernel32 INSTANCE = (Kernel32)Native.loadLibrary("kernel32", Kernel32.class);
} | true |
c510adbaadf8cfb99ec070aba69fe0db7cd46fc4 | Java | gabriel-tandil/gamelogic | /src/client/game/U3dEndState.java | UTF-8 | 427 | 1.828125 | 2 | [] | no_license | package client.game;
import com.jmex.game.state.GameState;
/**
* estado final de U3d
*
*
*/
public class U3dEndState extends GameState {
@Override
public void cleanup() {
// TODO Auto-generated method stub
}
@Override
public void render(float arg0) {
// TODO Auto-generated method stu... | true |
a32aa3f05e7775c70e2b931cbe35767a85b08e6d | Java | llsok/ycdemo | /71/C71-S3-Ply-springMVC/src/main/java/com/yc/springmvc/bean/Board.java | UTF-8 | 3,005 | 2.328125 | 2 | [] | no_license | package com.yc.springmvc.bean;
import java.io.Serializable;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Date;
public class Board implements Serializable {
private int boardid;
private String boardname;
private int parentid;
public int getTopicsum() {
retur... | true |
adee19b7ee684979dfcc8b4babcb06cb54fc42bf | Java | Gizmoscope/while | /vvhile/frontend/Scanner.java | UTF-8 | 15,697 | 2.90625 | 3 | [] | no_license | package vvhile.frontend;
import vvhile.basic.language.IntegerScanner;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.util.HashMap;
import java.util.Map;
import java.util.function.Predicate;
import vvhile.frontend.Token.Symbol;
import... | true |
90bf0c8feb6f6512195d6b04927bbb3d7bf4ba56 | Java | vhfcunha/senior-hcm-java | /src/main/java/br/com/senior/hcm/payroll/pojos/CustomData.java | UTF-8 | 182 | 1.648438 | 2 | [
"MIT"
] | permissive | package br.com.senior.hcm.payroll.pojos;
public class CustomData {
/**
* Valor do campo
*/
String value;
/**
* Nome do campo
*/
String field;
}
| true |
18ee50646c45fa5eb4b21812364e2a51786913ea | Java | youngkingtut/cracking | /src/main/java/com/tristan/cracking/Testing.java | UTF-8 | 822 | 3.578125 | 4 | [] | no_license | package com.tristan.cracking;
class Main {
public static int fib(int n) {
return tail(0, 1, n);
}
private static int tail(int a, int b, int n) {
if (n <= 0) {
return a;
} else {
return tail(b, a + b, n -1);
}
}
private static String fizzbuz... | true |
e50de3f2bcee73b23aa5992457db32282110ff99 | Java | DavidABeers/beers-a03 | /exercise27/src/test/java/baseline/Solution27Test.java | UTF-8 | 374 | 2.0625 | 2 | [] | no_license | package baseline;
import org.junit.jupiter.api.Test;
import java.util.ArrayList;
import static org.junit.jupiter.api.Assertions.*;
class Solution27Test {
@Test
void testValidateInput() {
Solution27 sol = new Solution27();
ArrayList<String> results = sol.validateInput("f", "", "32g04", "FD77... | true |
de96588e35d777e6e08c5a4a373bdcde2643a99d | Java | michalbrzezinskiorg/warehouse-demo | /src/main/java/acme/warehouse/demo/web/messages/MessageStore.java | UTF-8 | 1,382 | 2.453125 | 2 | [] | no_license | package acme.warehouse.demo.web.messages;
import acme.warehouse.demo.eventstream.products.events.ProductRejectedEvent;
import acme.warehouse.demo.eventstream.warehouse.events.PositionModificationRejectedEvent;
import acme.warehouse.demo.eventstream.warehouse.events.PositionRejectedEvent;
import org.springframework.con... | true |
c4453b010e8baffe24690e98b64610aa0a2dc8ff | Java | hlanlin-ny/springmvcmybatis | /springmvcmybatis-core/src/main/java/com/yaofei/springmvcmybatis/service/impl/ExpressInfoToCityTransferServiceImpl.java | UTF-8 | 860 | 2.046875 | 2 | [] | no_license | package com.yaofei.springmvcmybatis.service.impl;
import com.yaofei.springmvcmybatis.entity.ExpressInfoToCityTransfer;
import com.yaofei.springmvcmybatis.repository.ExpressInfoToCityTransferRepository;
import com.yaofei.springmvcmybatis.service.ExpressInfoToCityTransferService;
import org.springframework.beans.factory... | true |
ca538c5a9254a223ed9e0d756d74470443987dc9 | Java | hongsookim/DL_batch_server | /src/main/java/com/herald/entities/ResultItem.java | UTF-8 | 538 | 1.679688 | 2 | [] | no_license | package com.herald.entities;
import javax.persistence.Entity;
@Entity
public class ResultItem {
public String PRD_ID; //1369866158
public String PRD_NM; //"[beyond closet SPAIN] DOG PATCH SWEAT SHIRT"
public String LCTGR_NM; //"디자이너 남성의류"
public String MCTGR_NM; //티셔츠
public String SCTGR_... | true |
92428215124252a92e060385875550a7add89bc4 | Java | SiegeZero/2018LZUEELL | /LZUODS/src/com/gsb/BasicObject/MBGPOJO/Person.java | UTF-8 | 5,129 | 2.171875 | 2 | [] | no_license | package com.gsb.BasicObject.MBGPOJO;
import java.util.Date;
public class Person {
private Integer sysNo;
private String name;
private String gender;
private String nativePlace;
private String nation;
private String salaryNo;
private Integer salaryLibNo;
private Integer deptNo;
... | true |
d11381c751f51f0080314e2567e236367cfc4792 | Java | Xceptance/neodymium-library | /src/main/java/com/xceptance/neodymium/visual/ai/util/Constants.java | UTF-8 | 3,276 | 2.5 | 2 | [
"MIT"
] | permissive | // Copyright 2017 Thomas Volkmann
//
// Permission is hereby granted, free of charge, to any person obtaining a copy of this
// software and associated documentation files (the "Software"),
// to deal in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish,... | true |
d06a5c382f3cf4ee7efbcbad862b5644fde75bd8 | Java | deprvas001/DayCare1 | /app/src/main/java/com/development/daycare/views/activity/dayCareAdd/AddDayRepository.java | UTF-8 | 2,710 | 2.21875 | 2 | [] | no_license | package com.development.daycare.views.activity.dayCareAdd;
import android.content.Context;
import androidx.lifecycle.MutableLiveData;
import com.development.daycare.model.addDay.AddCareApiResponse;
import com.development.daycare.model.addDay.AddCareRequest;
import com.development.daycare.model.addDay.AddCareResponse... | true |
48daab03c787d4cdf2636a5fa924e1d6c465245e | Java | nurmuhammad/rvc | /src/main/java/rvc/Route.java | UTF-8 | 5,474 | 2.5625 | 3 | [
"Apache-2.0"
] | permissive | package rvc;
import java.util.*;
public class Route {
HttpMethod httpMethod;
String path;
String domain;
String acceptedType;
Action action;
Filter filter;
long cacheExpire = 0;
Class<? extends Exception> exception;
private String[] pathParts = null;
void path(String path){
... | true |
3e67d310b19cbbbf65bc2d06b7ece7f404ebd008 | Java | abrenoch/hyperion-android-grabber | /common/src/main/java/com/abrenoch/hyperiongrabber/common/HyperionScreenEncoderBase.java | UTF-8 | 4,894 | 2.1875 | 2 | [
"MIT"
] | permissive | package com.abrenoch.hyperiongrabber.common;
import android.content.res.Configuration;
import android.media.projection.MediaProjection;
import android.os.Handler;
import android.os.HandlerThread;
import android.util.Log;
import com.abrenoch.hyperiongrabber.common.network.HyperionThread;
import com.abrenoch.hyperiongr... | true |
d0b789f19d8bb8defcf112bc924c34415f40fc81 | Java | emanutri/pizza_store | /src/main/java/it/prova/pizzastore/repository/ordine/CustomOrdineRepositoryImpl.java | UTF-8 | 2,225 | 2.46875 | 2 | [] | no_license | package it.prova.pizzastore.repository.ordine;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;
import javax.persistence.TypedQuery;
import org.apache.commons.lang3.StringUtils;
imp... | true |
4c50ed1f45aa6de282ea9d3e5b3d3adfa3bc5736 | Java | windzzc/JavaSortBase | /src/SortArray/SelectSort.java | UTF-8 | 698 | 3.4375 | 3 | [] | no_license | package SortArray;
import java.util.Arrays;
public class SelectSort {
public static void selectSort(int[] nums){
int length = nums.length;
for(int i=0;i<length;i++){
int min = i;
for(int j=i+1;j<length;j++){
if(nums[j]<nums[min]){
min = j... | true |
a7ffb03169e89173a1b3f5d79a30d7f881efb2df | Java | alipay/alipay-sdk-java-all | /v2/src/main/java/com/alipay/api/domain/AlipaySocialQuestionnareTaskFinishModel.java | UTF-8 | 795 | 1.789063 | 2 | [
"Apache-2.0"
] | permissive | package com.alipay.api.domain;
import com.alipay.api.AlipayObject;
import com.alipay.api.internal.mapping.ApiField;
/**
* 哥伦布用研投放任务取消投放
*
* @author auto create
* @since 1.0, 2020-07-29 11:11:18
*/
public class AlipaySocialQuestionnareTaskFinishModel extends AlipayObject {
private static final long serialVersio... | true |
abfd37fd5448c369aea5cffa836dd6a503242023 | Java | jelinarest/pruebams | /src/main/java/scjn/gob/mx/service/mapper/CampoMapper.java | UTF-8 | 1,427 | 2.421875 | 2 | [] | no_license | package scjn.gob.mx.service.mapper;
import scjn.gob.mx.domain.*;
import scjn.gob.mx.service.dto.CampoDTO;
import org.mapstruct.*;
/**
* Mapper for the entity {@link Campo} and its DTO {@link CampoDTO}.
*/
@Mapper(componentModel = "spring", uses = {DatoMapper.class, TipoDatoMapper.class, TipoValidacionMapper.class,... | true |
ecb04145687f9d6e2d0b035831260eb60e67b1e2 | Java | liangchaojiang/FFmpegforAndroid | /src/com/example/moscal/MainActivity.java | UTF-8 | 1,851 | 2.0625 | 2 | [] | no_license | package com.example.moscal;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.TextView;
import android.widget.Toast;
public class MainActivity extends Activity... | true |
8f892f671471b298f99aa91356a2698765b5b1de | Java | zhuzhu333/wangyiyanxuan | /consumer/src/main/java/com/kgc/consumer/custom/CheckInfoComplete.java | UTF-8 | 2,472 | 2.125 | 2 | [] | no_license | package com.kgc.consumer.custom;
import com.alibaba.dubbo.common.utils.StringUtils;
import com.alibaba.fastjson.JSONObject;
import com.kgc.consumer.utils.RedisUtils;
import com.kgc.provider.dto.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.method.HandlerMethod;
imp... | true |
27d8f7c826486e068a4840acf4c2c571261edce5 | Java | mzacierka/Data-Structures-2K18 | /Lab6-Queue/src/DriverDeq.java | UTF-8 | 3,635 | 4.03125 | 4 | [
"MIT"
] | permissive | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
/*
* Purpose: Data Structure and Algorithms Lab 6 Problem 1
* Status: Complete and thoroughly tested
* Last update: 02/25/18
* Submitted: 02/25/18
* Comment: test suite and sample run attached
* @author: Micha... | true |
a1cc735eef0d5e136fc712c4776db5f61b6dc1a6 | Java | molare/gestionImmob | /src/main/java/com/immo/service/TypeBienService.java | UTF-8 | 398 | 1.953125 | 2 | [] | no_license | package com.immo.service;
import com.immo.entities.Devis;
import com.immo.entities.TypeBien;
import java.util.List;
/**
* Created by olivier on 02/10/2019.
*/
public interface TypeBienService {
public List<TypeBien> getAll();
public TypeBien add(TypeBien typeBien);
public TypeBien update(TypeBien typeB... | true |
1f5fd91c07aa89633caf53030422e73813cdb7d6 | Java | agunde/SnowRemovalProblem | /src/graph/Cost.java | UTF-8 | 142 | 2.3125 | 2 | [] | no_license | package graph;
public interface Cost {
public double getServicingCost();
public double getPassThroughCost();
public double getDemand();
}
| true |
cf237dcc1a6fcee1a685bfc23a6bca834c69d189 | Java | hpjzzz/CRM | /src/main/java/cn/demo/crm/web/controller/MenuController.java | UTF-8 | 2,522 | 2.15625 | 2 | [] | no_license | package cn.demo.crm.web.controller;
import cn.demo.crm.condition.Conditions;
import cn.demo.crm.condition.PageList;
import cn.demo.crm.domain.Menu;
import cn.demo.crm.service.IMenuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.spring... | true |
a7cec1152fe68b2ccf45f8e349c46b57684b6416 | Java | sandeepmaity09/JavaAlgoPractice | /SelectionSortClass.java | UTF-8 | 507 | 2.90625 | 3 | [] | no_license | /*
Program: Selection Sort Algorithm Implementation
Author: ghost
Date: 30/10/2017
*/
class SelectionSortClass extends SortingClass {
public void selectionSort(){
for(int i=0;i<N-1;i++){
int minIndex = i;
for(int j=i+1;j<N;j++){
if(arr[j] < arr[minIndex]){
... | true |