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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
834a2a48785437dbdff254df9a524e35103ef9c4 | Java | maxovic/my-first-telegram-bot | /src/main/java/com/vlife/service/UserPreferenceService.java | UTF-8 | 1,484 | 2.40625 | 2 | [] | no_license | package com.vlife.service;
import com.vlife.model.entity.UserPreference;
import com.vlife.repository.UserPreferenceRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import javax.persistence.EntityExistsException;
@Service
public class UserPrefer... | true |
1568647d2aea9730d86a4bfb038e1312fa42e1d0 | Java | muhammedyounusattari/SpringBootExceptionHandling | /src/main/java/younus/attari/constant/ExceptionHandlingURIConstants.java | UTF-8 | 170 | 1.625 | 2 | [] | no_license | package younus.attari.constant;
public class ExceptionHandlingURIConstants {
public static final String HOME="/v1/home";
public static final String FIRST="/first";
}
| true |
eff849543802c0fb7955d0ad4f4e7e6c73e0bb90 | Java | loslink/FFmpegAndroid-master | /app/src/main/java/com/frank/ffmpeg/activity/PushActivity.java | UTF-8 | 2,511 | 2.4375 | 2 | [] | no_license | package com.frank.ffmpeg.activity;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.text.TextUtils;
import android.util.Log;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.Toast;
import com.frank.ffmpeg.Pusher;
imp... | true |
1eeddf902faa5b627516a4a21cdb7a8ec9464590 | Java | Parmerlee/SomethingImprotant | /MCommon/src/main/java/com/bonc/mobile/common/kpi/KpiTableColumn.java | UTF-8 | 6,377 | 2.171875 | 2 | [] | no_license |
package com.bonc.mobile.common.kpi;
import java.util.List;
import java.util.Map;
import android.annotation.SuppressLint;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.MotionEvent;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.View.On... | true |
7c58d67339319f3af3185da5680d74fa7ea7791f | Java | LynnYuki/CookCloud | /app/src/main/java/com/example/administrator/cookman/model/manager/CookCategoryManager.java | UTF-8 | 3,873 | 2.1875 | 2 | [] | no_license | package com.example.administrator.cookman.model.manager;
import android.content.res.AssetManager;
import com.example.administrator.cookman.CookManApplication;
import com.example.administrator.cookman.model.entity.CookEntity.CategoryChildInfo1;
import com.example.administrator.cookman.model.entity.CookEntity.CategoryC... | true |
d1f8c23f25d89231dfb224414157ba66eda66641 | Java | moutainhigh/api-center | /lizikj-center-gateway/src/main/java/com/lizikj/api/vo/order/param/ItemAttrParamVO.java | UTF-8 | 1,124 | 2.015625 | 2 | [] | no_license | package com.lizikj.api.vo.order.param;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.util.List;
/**
* @author Michael.Huang
* @date 2017/8/25 15:36
*/
@ApiModel
public class ItemAttrParamVO<T extends ItemAttrValueParamVO> implement... | true |
92a31eee2090cc853e60383790ea6b9a5d57fbb8 | Java | AlessioAgnese/Interpreter | /interpreter/Main.java | UTF-8 | 1,846 | 2.8125 | 3 | [] | no_license | package interpreter;
import static java.lang.System.err;
import java.io.FileReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import parser.Parser;
import parser.ParserException;
import parser.StreamParser;
import parser.StreamTokenizer;
import parser.Toke... | true |
956ad469ca3ded2836f2b4731c905a1cafe71b17 | Java | MHw19/codefestfinalday | /app/src/main/java/com/lk/codefist2021/MapsFragment.java | UTF-8 | 13,651 | 1.570313 | 2 | [] | no_license | package com.lk.codefist2021;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.core.app.ActivityCompat;
import androidx.core.content.ContextCompat;
import androidx.fragment.app.Fragment;
import androidx.fragment.app.FragmentActivity;
import android.Manifest;
import android.annot... | true |
2f7219f7894f4ed2a0f462ca3e85c75c7fd2db9d | Java | zus500/LuxMedTask | /src/main/java/com/example/demo/JavaFXModul/HttpMetod/ClientMetodHttp/HttpGetAllClient.java | UTF-8 | 965 | 2.375 | 2 | [] | no_license | package com.example.demo.JavaFXModul.HttpMetod.ClientMetodHttp;
import com.example.demo.JavaFXModul.HttpMetod.PoliceMetodHttp.HttpGetAllPolice;
import com.example.demo.SpringModul.Models.Client;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.http.ResponseEntity;
import org.springfr... | true |
ba94241f420ca1906881260e6fefb12b567e82d5 | Java | jtcho/AelfCraft | /ALFCore/src/com/alf/character/effect/common/DisarmEffect.java | UTF-8 | 2,788 | 2.765625 | 3 | [] | no_license | package com.alf.character.effect.common;
import java.util.HashMap;
import org.bukkit.entity.Player;
import org.bukkit.inventory.ItemStack;
import org.bukkit.inventory.PlayerInventory;
import com.alf.character.Alf;
import com.alf.character.effect.EffectType;
import com.alf.character.effect.ExpirableEffect;
... | true |
3fd760b31a647ce90b83da60771db8f1ab04d546 | Java | jhonatanluiz/SGLJ | /src/java/tcc/sglj/util/MailMessage.java | UTF-8 | 1,829 | 2.25 | 2 | [] | no_license | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package tcc.sglj.util;
/**
*
* @author jhonatan
*/
public class MailMessage {
private String to;
private String cc;
private String bcc;
private String from;
private String subject... | true |
3716839b06a19df3485fca95739ecf82c2ef349c | Java | Mutte18/UsersApp | /src/main/java/com/users/model/User.java | UTF-8 | 537 | 2.5 | 2 | [] | no_license | package com.users.model;
import lombok.Data;
import lombok.NoArgsConstructor;
import javax.persistence.*;
@Data
@NoArgsConstructor
@Entity
@Table(name = "users")
public class User {
@Id
@GeneratedValue(strategy= GenerationType.IDENTITY)
private Long id;
private String name;
private String email;... | true |
d576da5f4a8be1766d1a89f4e6cdf2837933b505 | Java | abchakra/problemsolving | /TestJava/src/com/test/java/Smoothie.java | UTF-8 | 2,964 | 2.984375 | 3 | [] | no_license | package com.test.java;
import java.util.HashMap;
import java.util.Map;
import java.util.Set;
import java.util.TreeSet;
import java.util.stream.Collectors;
import java.util.stream.Stream;
class Smoothie {
public static String ingredients(String order) {
Map<String, Set<String>> smoothies = new HashMap<String,... | true |
e9a1804229a927c9813bd8ca4fef04369cff24e6 | Java | alexhilton/EffectiveJava | /src/com/effectivejava/generics/ObjectHolder3.java | UTF-8 | 905 | 3.6875 | 4 | [
"Apache-2.0"
] | permissive | package com.effectivejava.generics;
public class ObjectHolder3<T> {
private T holder1;
private T holder2;
private T holder3;
public ObjectHolder3(T t1, T t2, T t3) {
holder1 = t1;
holder2 = t2;
holder3 = t3;
}
public T getFirst() {
return holder1;
}
public T getSecond() {
return holder2;
}
... | true |
bbb99ea1838082076f76d55c313a84443e945540 | Java | rattlehead1319/ds_algo | /LeetCode/src/problems/hard/strings/TextJustification.java | UTF-8 | 1,751 | 3.46875 | 3 | [] | no_license | package problems.hard.strings;
import java.util.*;
public class TextJustification {
public List<String> fullJustify(String[] words, int maxWidth) {
List<String> result = new ArrayList<>();
List<String> row = new ArrayList<>();
int currentLength = 0;
for (int i = 0; i < words.lengt... | true |
ef31fd7fe146711bd500611957aa966c7e2b0b27 | Java | scarlet25151/leetcodesolution | /trapping_rain_water2_407.java | UTF-8 | 2,471 | 2.90625 | 3 | [] | no_license | import java.util.*;
public class trapping_rain_water2_407 {
public int trapRainWater(int[][] heightMap) {
if (heightMap.length == 0) return 0;
int m = heightMap.length, n = heightMap[0].length,
res = 0, mx = Integer.MIN_VALUE;
return 0;
}
public int myAtoi(String str... | true |
6a9ebb31653d699261947231069e0e334e11169f | Java | OliverBaverstock/Book-and-Character-Information-System | /src/application/BookAddedController.java | UTF-8 | 715 | 2.265625 | 2 | [] | no_license | package application;
import javafx.event.ActionEvent;
import javafx.fxml.FXML;
import javafx.fxml.FXMLLoader;
import javafx.scene.Scene;
import javafx.scene.control.Button;
import javafx.scene.layout.AnchorPane;
import javafx.stage.Stage;
public class BookAddedController {
@FXML private Button returnButton;
@FX... | true |
b1a26223c66ded341a6e15da7654187873991a23 | Java | mikhaiJIChe/AITSch | /Base/IdeaProjects/Lesson_03_Boolean/src/Lesson3_LeapYear.java | UTF-8 | 767 | 3.546875 | 4 | [] | no_license | /*
•Прочитать с консоли год и вывести в консоль, является он високосным или нет
•Старайтесь использовать логические связки, если это возможно
*/
import java.util.Scanner;
public class Lesson3_LeapYear {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
System.out... | true |
e6b4d3922c54fde9562c1e308d2c96b12a4c918b | Java | code-say/capjavareact | /jpa/src/main/java/com/cap/entities/TestUserRepository.java | UTF-8 | 552 | 2.296875 | 2 | [] | no_license | package com.cap.entities;
import static org.junit.Assert.assertEquals;
import org.junit.Before;
import org.junit.Test;
public class TestUserRepository {
UserRepository userRepository;
@Before
public void setUp() {
userRepository = new UserRepository();
}
@Test
public void testAddUser() {
User user = new... | true |
a064f92be16ea8e5e4e60536c1a3ab536cbe042a | Java | suryasiyadri/COMP-830-Oops | /Q5.java | UTF-8 | 3,229 | 3.109375 | 3 | [] | no_license | import java.util.ArrayList;
import java.util.List;
interface BakedGoods {
public int getPrice();
public String getDescription();
public String getSellByDate();
}
class Cookie implements BakedGoods {
int price = 0;
String description;
String sellbydate;
public void setCookie(int price, String descri... | true |
28e220e30fcbd47877c1453b15a4f038d5462c8c | Java | renfeihn/drools7-demo | /src/main/java/com/sky/bluesky/service/impl/RuleActionRelServiceImpl.java | UTF-8 | 1,301 | 1.984375 | 2 | [
"Apache-2.0"
] | permissive | package com.sky.bluesky.service.impl;
import com.github.pagehelper.PageInfo;
import com.sky.bluesky.mapper.BaseRuleActionRuleRelInfoMapper;
import com.sky.bluesky.model.BaseRuleActionRuleRelInfo;
import com.sky.bluesky.service.RuleActionRelService;
import org.springframework.stereotype.Service;
import javax.annotatio... | true |
cc6568fa4615d94075e3bbac6e84da55c1530a40 | Java | ryan87ly/leetcode | /149/src/Solution.java | UTF-8 | 1,309 | 3.15625 | 3 | [] | no_license | import java.util.HashMap;
public class Solution {
public int maxPoints(Point[] points) {
int length = points.length;
if (length == 0) return 0;
if (length == 1) return 1;
int max = 0;
for (int i = 0; i < length; ++i) {
int equalsPoints = 0;
int curre... | true |
7fa6e45d896df0a76bfafd0132d4d75556335b38 | Java | xcai67/StaticPages | /lib/saxon.jar.src/com/icl/saxon/Version.java | UTF-8 | 1,386 | 1.945313 | 2 | [
"Apache-2.0"
] | permissive | // Decompiled by Jad v1.5.8e. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.geocities.com/kpdus/jad.html
// Decompiler options: packimports(3) fieldsfirst lnc
// Source File Name: Version.java
package com.icl.saxon;
public class Version
{
public static String javaVersion;
... | true |
67e51dd0e954243d68c517193d15cf0e071e6529 | Java | green-fox-academy/sskreber | /week-20-Exam-projects/bankofsimba/src/main/java/com/greenfoxacademy/bankofsimba/services/BankAccountServiceImplemented.java | UTF-8 | 1,109 | 2.9375 | 3 | [] | no_license | package com.greenfoxacademy.bankofsimba.services;
import com.greenfoxacademy.bankofsimba.models.BankAccount;
import org.springframework.stereotype.Service;
import java.util.ArrayList;
@Service
public class BankAccountServiceImplemented implements BankAccountService {
private ArrayList<BankAccount> bankAccounts ... | true |
5cf98a4e6e114f0f796a365911e73bed31fd0165 | Java | automeveris/automacaoselenium | /bddeveris/src/test/java/com/bddeveris/steps/FormAuthenticationSteps.java | UTF-8 | 557 | 2.015625 | 2 | [] | no_license | package com.bddeveris.steps;
import org.openqa.selenium.WebDriver;
import com.bddeveris.pages.FormAuthenticationPage;
import com.bddeveris.runner.ClassInit;
import io.cucumber.java.en.Given;
import io.cucumber.java.en.When;
public class FormAuthenticationSteps{
//WebDriver driver;
//FormAuthenticationPage page... | true |
d8da019cb19dbd31c68c1b19dc0550cc3bd08ea7 | Java | humanheima/CameraDemo | /imageslector/src/main/java/com/hm/imageslector/activity/PictureSelectActivity.java | UTF-8 | 12,601 | 2.03125 | 2 | [] | no_license | package com.hm.imageslector.activity;
import android.animation.Animator;
import android.animation.AnimatorListenerAdapter;
import android.animation.ObjectAnimator;
import android.app.Activity;
import android.content.Intent;
import android.support.v7.widget.GridLayoutManager;
import android.support.v7.widget.LinearLayo... | true |
2b60458593a39301e6b87cc6e7745935dd8b57c9 | Java | alexbacus/ARK | /app/src/main/java/com/example/animalrecordkeeper/Exceptions/FailedValidationException.java | UTF-8 | 205 | 2.109375 | 2 | [] | no_license | package com.example.animalrecordkeeper.Exceptions;
public class FailedValidationException extends RuntimeException {
public FailedValidationException(String message) {
super(message);
}
}
| true |
2200c7168ba961e151dd6689738112c6ec93761a | Java | BasisTI/madre | /prescricao/src/test/java/br/com/basis/madre/prescricao/web/rest/PrescricaoProcedimentoResourceIT.java | UTF-8 | 17,837 | 1.695313 | 2 | [] | no_license | package br.com.basis.madre.prescricao.web.rest;
import br.com.basis.madre.prescricao.PrescricaoApp;
import br.com.basis.madre.prescricao.domain.PrescricaoProcedimento;
import br.com.basis.madre.prescricao.repository.PrescricaoProcedimentoRepository;
import br.com.basis.madre.prescricao.repository.search.PrescricaoProc... | true |
871efedd80fb94703653bbb924ee8d4191d1dd5e | Java | xkjywan/BThouse | /app/src/main/java/com/bthouse/mvp/module/City.java | UTF-8 | 619 | 1.976563 | 2 | [] | no_license | package com.bthouse.mvp.module;
/**
* 查到的城市
*/
public class City {
private String imgUrl;
private String cityName;
private String cityinfo;
public String getImgUrl() {
return imgUrl;
}
public void setImgUrl(String imgUrl) {
this.imgUrl = imgUrl;
}
public String ge... | true |
959acb4ceb033a4b43757b23eb27057ae5001d2d | Java | xihuan22d/SnakeWay | /app/src/main/java/com/my/views/PhizAndKeyboardFrameLayout.java | UTF-8 | 14,089 | 1.53125 | 2 | [] | no_license | package com.my.views;
import android.app.Activity;
import android.content.Context;
import android.content.res.Configuration;
import android.content.res.TypedArray;
import android.graphics.drawable.Drawable;
import android.os.Handler;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable... | true |
7ecb74287972ccec975890584ff42cbd47d8ae3b | Java | oddbjornkvalsund/Conticious | /Conticious.api/src/main/java/no/haagensoftware/contentice/spi/RouterPlugin.java | UTF-8 | 7,505 | 2.25 | 2 | [
"Apache-2.0"
] | permissive | package no.haagensoftware.contentice.spi;
import io.netty.channel.ChannelHandler;
import no.haagensoftware.contentice.data.URLData;
import no.haagensoftware.contentice.handler.ContenticeHandler;
import no.haagensoftware.contentice.handler.FileServerHandler;
import org.apache.log4j.Logger;
import java.util.*;
/**
* ... | true |
6eb8301730f10e0ee14930c7001fcd0ac6bf7ce9 | Java | weidewind/javaAsymmetry | /src/StrandFinder.java | UTF-8 | 182 | 1.65625 | 2 | [] | no_license |
public class StrandFinder {
public static boolean ifLeading (int cromosome_size, int ori_start, int ori_end, int gc_maximum, boolean straight){
return straight;
}
} | true |
b9ca626ba4d82dbfb254e866ea171bc9fd457915 | Java | yeungeek/AndroidRoad | /BasicDaggerSample/app/src/main/java/com/yeungeek/dagger/android/AppComponent.java | UTF-8 | 303 | 1.765625 | 2 | [
"Apache-2.0"
] | permissive | package com.yeungeek.dagger.android;
import com.yeungeek.dagger.App;
import dagger.Component;
import dagger.android.AndroidInjectionModule;
/**
* @author yangjian
* @date 2018/03/09
*/
@Component(modules = AndroidInjectionModule.class)
public interface AppComponent {
void inject(App app);
}
| true |
20557f9d55e0b3498bef954fe8b727573dcb93cd | Java | klimber/desafioProJ | /src/test/java/br/com/projuris/TestMyCalculo.java | UTF-8 | 3,183 | 2.578125 | 3 | [] | no_license | package br.com.projuris;
import static org.junit.Assert.assertEquals;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.Spr... | true |
ab4d47a700dc828cda8eee7068767bbdd27a0fe3 | Java | jordanqin/qcloud-sdk-android | /QCloudCosXml/cosxml/src/normal/java/com/tencent/cos/xml/model/bucket/ListBucketInventoryRequest.java | UTF-8 | 1,107 | 2.1875 | 2 | [
"MIT"
] | permissive | package com.tencent.cos.xml.model.bucket;
import com.tencent.cos.xml.common.RequestMethod;
import com.tencent.cos.xml.exception.CosXmlClientException;
import com.tencent.qcloud.core.http.RequestBodySerializer;
import java.util.Map;
public class ListBucketInventoryRequest extends BucketRequest {
private String c... | true |
b07f37fb84d1461db3198e571d1edc70f9277ba1 | Java | lzj1995822/zhbh-api | /src/main/java/com/jtzh/entity/GovmgtProblem.java | UTF-8 | 3,205 | 1.742188 | 2 | [] | no_license | package com.jtzh.entity;
import java.util.Date;
public class GovmgtProblem {
private Integer id;
private String title;
private Date receptionTime;
private String mode;
private String receptionName;
private String receptionCard;
private String receptionPhone;
private String companyName;
private String address... | true |
26343dc80965d7c65c7d793058121881d8c269cf | Java | KrisRaya/merchant-service | /src/main/java/com/demo/merchantservice/service/MerchantService.java | UTF-8 | 363 | 1.851563 | 2 | [] | no_license | package com.demo.merchantservice.service;
import com.demo.merchantservice.model.Merchant;
import java.util.List;
import java.util.Optional;
public interface MerchantService {
Merchant addMerchant(Merchant merchant);
List<Merchant> findAll();
Optional<Merchant> findById(Long id);
Me... | true |
8c884e5f6237ba1b6a74b8a6e2ff96ab80a85a66 | Java | Ernyoke/random_algorithms | /src/main/java/KMostFrequentElements.java | UTF-8 | 964 | 3.171875 | 3 | [
"MIT"
] | permissive | import org.jetbrains.annotations.Contract;
import java.util.*;
public class KMostFrequentElements {
@Contract(pure = true)
public static List<Integer> solve(List<Integer> elements, int k) {
HashMap<Integer, Integer> histogram = new HashMap<>();
elements.forEach(element -> {
... | true |
cc02f8ab99a7b22c7587764c27cda0d50fd98fdb | Java | kasoleg/views-collection | /app/src/main/java/com/example/viewscollection/Brush.java | UTF-8 | 116 | 1.953125 | 2 | [] | no_license | package com.example.viewscollection;
import android.graphics.Paint;
public interface Brush {
Paint paint();
}
| true |
7d7f35ceb3d44886fa8c9304e67841593fcf07ac | Java | Jean1dev/Reconhecimento-Facil- | /tensorflow-grpc-java/src/main/java/edu/usc/irds/tensorflow/grpc/TensorflowObjectRecogniser.java | UTF-8 | 3,117 | 2.40625 | 2 | [
"Apache-2.0",
"MIT"
] | permissive | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | true |
09999fb6a2b8a4eecbb668960db2ac058761d91a | Java | adligo/fabricate.adligo.org | /src/org/adligo/fabricate/models/dependencies/I_Dependency.java | UTF-8 | 1,503 | 2.46875 | 2 | [
"Apache-2.0"
] | permissive | package org.adligo.fabricate.models.dependencies;
import java.util.List;
/**
* Represents a dependency which has been read
* from the xml file. Implementation may be immutable
* or mutable. Equals and hashCode are done performing the following fields;
* Artifact
* FileName
* Group
* Type
* Version
* Note p... | true |
8eaa3722ef97829ab69f18a6ae3ce3c91b1b77e3 | Java | JeonSeungWoo/APT | /APT/src/main/java/org/woo/apt/HomeController.java | UTF-8 | 1,457 | 2.171875 | 2 | [] | no_license | package org.woo.apt;
import java.util.Locale;
import javax.inject.Inject;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.... | true |
9b2da6de88ba9a3fe2539d1b819bbf4cb26b57a1 | Java | jeremyber/JSFProject | /src/java/DAO/UserDAO.java | UTF-8 | 8,976 | 2.703125 | 3 | [] | no_license | package DAO;
import java.sql.Connection;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.ArrayList;
import model.Cart;
import model.ListingBean;
import model.LoginBean;
import model.UserBean;
/**
*
* @author bmsalm
*/
public class UserDAO {
public stat... | true |
426794a39db810720784cc225ae523da86b25028 | Java | crnk-project/crnk-framework | /crnk-data/crnk-data-jpa/src/test/java/io/crnk/data/jpa/model/OverrideIdTestEntity.java | UTF-8 | 685 | 1.914063 | 2 | [
"Apache-2.0"
] | permissive | package io.crnk.data.jpa.model;
import io.crnk.core.resource.annotations.JsonApiId;
import javax.persistence.Entity;
import javax.persistence.Id;
@Entity
public class OverrideIdTestEntity extends TestMappedSuperclass {
public static final String ATTR_id = "id";
public static final String ATTR_pk = "pk";
@Id
p... | true |
ffdf5589268f3e0d1254e681afcc5d334ca6ca94 | Java | Lulocu/4B-ETSINF | /CDM/pract3/P1/sources/com/google/android/gms/games/internal/api/GamesMetadataImpl.java | UTF-8 | 4,861 | 1.953125 | 2 | [] | no_license | package com.google.android.gms.games.internal.api;
import android.os.RemoteException;
import com.google.android.gms.common.api.GoogleApiClient;
import com.google.android.gms.common.api.PendingResult;
import com.google.android.gms.common.api.Status;
import com.google.android.gms.common.data.DataHolder;
import com.googl... | true |
8c281744c5fc01b721f25594293ac8b08ee4c043 | Java | leifan/oilmis | /src/main/java/com/mltech/brite/request/user/GetUserListRequest.java | UTF-8 | 706 | 1.921875 | 2 | [] | no_license | package com.mltech.brite.request.user;
import com.mltech.brite.request.BaseValidateRequest;
public class GetUserListRequest extends BaseValidateRequest{
private String districtName;
private String departmentName;
private String groupName;
public String getDistrictName() {
return districtName;
}
public... | true |
bb60e4226993f8712afe98ed8b0e57dd50c19a36 | Java | sjb7/Digital-Solutions | /src/UtilityClass.java | UTF-8 | 2,189 | 3.609375 | 4 | [] | no_license | import java.util.*;
import java.io.*;
public class UtilityClass {
/*Helper function for giveStartingIndex and giveLastIndex*/
private static int giveIndex(String text,String searchString,int start,int startOrLast) {
for(int i = start; i<text.length()-searchString.length(); i++) {
int k=0;
for(int j=i,b=0;j... | true |
ab80539d42fc8cf9ebde4fd4209488c68511f21e | Java | Geraldojrcg/SistemaAlmoxarifado | /src/com/br/ufrn/almoxarifado/StatusMaterial.java | UTF-8 | 83 | 1.671875 | 2 | [] | no_license | package com.br.ufrn.almoxarifado;
public enum StatusMaterial {
ATIVO,
INATIVO
}
| true |
bb525297407fbfe2af716d188730730b39cd3b58 | Java | sgupta229/Monopoly | /src/Model/tests/WinMoneyACTest.java | UTF-8 | 2,661 | 2.84375 | 3 | [
"MIT"
] | permissive | package Model.tests;
import Controller.AbstractGame;
import Controller.ClassicGame;
import Model.AbstractPlayer;
import Model.Bank;
import Model.ClassicPlayer;
import Model.XmlReaderException;
import Model.actioncards.*;
import javafx.collections.FXCollections;
import javafx.collections.ObservableList;
import org.juni... | true |
776de8b2ba8c2ba61363d39795c5d7038782f269 | Java | HalasNet/middleheaven | /middleheaven-utils/src/main/java/org/middleheaven/reflection/PropertyBagProxyHandler.java | UTF-8 | 1,172 | 2.984375 | 3 | [] | no_license | package org.middleheaven.reflection;
import java.util.HashMap;
import java.util.Map;
import org.middleheaven.collections.nw.Sequence;
public class PropertyBagProxyHandler implements ProxyHandler {
Map<String , Object> properties = new HashMap<String,Object>();
@Override
public Object invoke(Objec... | true |
ca679f7761e3397d83c87542fc85ec8983507505 | Java | shitangdama/leetcode | /algorithms/044.Wildcard_Matching/Wildcard_Matching.java | UTF-8 | 3,021 | 3.03125 | 3 | [] | no_license | <<<<<<< HEAD
// For detailed explanation, see http://discuss.leetcode.com/questions/222/wildcard-matching
// Time: O(|s||p|*log|s|), Space: O(|s|)
// Time can also optimize to O(|s||p|)
public class Solution {
public boolean isMatch(String s, String p) {
// without this optimization, it will fail for large data ... | true |
5e3863934e9bbed3efa66eaf05a942521d3c1976 | Java | MICROCN/wtlib | /src/main/java/com/wtlib/dao/UserMapper.java | UTF-8 | 727 | 1.703125 | 2 | [] | no_license | <<<<<<< HEAD
package com.wtlib.dao;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import com.wtlib.pojo.User;
/**
* @author zongzi
* @date 2017年1月21日 下午6:14:59
*/
public interface UserMapper extends BaseDao<User> {
void save(User user);
List<User> selectByLoginId(@Param("loginId") String... | true |
e430979869a80f22af90114f82a429541dac8df4 | Java | lhc180/hellou | /MPS/src/com/zlq/util/MyUtil.java | UTF-8 | 12,582 | 1.96875 | 2 | [] | no_license | package com.zlq.util;
import java.io.ByteArrayOutputStream;
import java.io.InputStream;
import java.util.ArrayList;
import java.util.List;
import org.apache.http.HttpResponse;
import org.apache.http.HttpStatus;
import org.apache.http.client.HttpClient;
import org.apache.http.client.methods.HttpGet;
import org.apache.... | true |
d8be0a1478d64038b98c3bcc184929225dda83ac | Java | Olgachis/educa | /src/main/java/educa/evaluation/domain/User.java | UTF-8 | 642 | 1.945313 | 2 | [] | no_license | package educa.evaluation.domain;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.codehaus.jackson.annotate.JsonIgnore;
import org.hibernate.validator.constraints.NotBlank;
import javax.persistence.Entity;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.validation.const... | true |
d70f50e8fd8abd12504fec3285e4e40279db2c75 | Java | white-feather-projects/Almacen-Afiliados | /CBPult/src/main/java/com/cbp3/ws/cbp/service/ModificarProductoUbicacionWS.java | UTF-8 | 4,521 | 2.109375 | 2 | [] | no_license |
package com.cbp3.ws.cbp.service;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Clase Java para modificarProductoUbicacionWS complex type.
*
* <p>El siguiente fragmento de esquema especifica el contenido que se... | true |
0a9f331928972029a9a02cb1cbd2d855a764f9ff | Java | qufl0407/springTest | /src/main/java/com/edu/test/HomeController.java | UTF-8 | 5,062 | 2.375 | 2 | [] | no_license | package com.edu.test;
import java.text.DateFormat;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Locale;
import java.util.Map;
import javax.servlet.http.HttpServletRequest;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.ann... | true |
a93ee01a163b4bf8e1ee3d838459c80089e3c189 | Java | leguim-repo/pom-hotel-mike | /backend/src/main/java/com/pomhotel/booking/ui/api/v1/exceptions/BookingApiException.java | UTF-8 | 290 | 2 | 2 | [] | no_license | package com.pomhotel.booking.ui.api.v1.exceptions;
import com.pomhotel.booking.ui.api.v1.dto.BookingApiDTO;
public class BookingApiException extends RuntimeException{
public BookingApiException(BookingApiDTO dto) {
super("BookingApiDTO Exception " + dto.toString());
}
}
| true |
625426573a6b5fac6955c07b5f273f36073a33e4 | Java | westoncb/TiledText-GIDE | /src/com/cyntaks/GDXGIDE/util/VariableSizeBox.java | UTF-8 | 5,767 | 2.921875 | 3 | [] | no_license | package com.cyntaks.GDXGIDE.util;
import java.util.ArrayList;
import java.util.Scanner;
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.graphics.GL20;
import com.badlogic.gdx.graphics.Texture;
import com.badlogic.gdx.graphics.Texture.TextureFilter;
import com.cyntaks.GDXGIDE.Drawable;
import com.cyntaks.GDXGIDE.... | true |
0017f396f97006ddc81f6bb0d3f7b9a58f80b3c9 | Java | xpowerfullx/anDroid-dev | /app/src/main/java/hu/obuda/uni/nik/labyrinthmaze/HighScoreTableActivity.java | UTF-8 | 2,364 | 2.34375 | 2 | [] | no_license | package hu.obuda.uni.nik.labyrinthmaze;
import android.database.Cursor;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.widget.ListView;
import java.util.ArrayList;
import java.util.List;
import hu.obuda.uni.nik.labyrinthmaze.adapter.HighScoreAdapter;
import hu.obuda.uni.nik... | true |
d33b4902ef61b1deb48363d324d73cc5701d2027 | Java | marioruiz97/asisgeAPI | /src/main/java/com/asisge/apirest/config/ApiRestExceptionHandler.java | UTF-8 | 4,120 | 2.140625 | 2 | [] | no_license | package com.asisge.apirest.config;
import java.util.Arrays;
import java.util.List;
import java.util.stream.Collectors;
import javax.validation.ConstraintViolationException;
import org.apache.commons.lang3.StringUtils;
import org.springframework.dao.DataAccessException;
import org.springframework.dao.DataIn... | true |
2d8446b1207528b527d88872c5a4d9a8c7828581 | Java | osamadeinat/drools-rule-builder | /src/main/java/org/drools/rules/builder/domain/RequestRules.java | UTF-8 | 1,071 | 2.03125 | 2 | [
"MIT"
] | permissive | package org.drools.rules.builder.domain;
import java.util.List;
public class RequestRules {
private boolean isFunction;
private String action;
private String value;
private String subRuleOperator;
private String operator;
private String attribute;
private String sign;
private List<R... | true |
e5796842b43eefabe2cc64cacdfbbc443f274aa4 | Java | itwangxinli/fnstudy | /src/main/java/com/derbysoft/tinyweb/view/RendingStratgy.java | UTF-8 | 224 | 1.6875 | 2 | [] | no_license | package com.derbysoft.tinyweb.view;
import java.util.List;
import java.util.Map;
/**
* Created by xinliwang on 14-9-28.
*/
public interface RendingStratgy {
public String renderView(Map<String ,List<String >> model);
}
| true |
31a5e43b6b77b225a7954755c7e5e938322994dd | Java | ljieun1228/java_OOP_Bank | /service/AccountService.java | UTF-8 | 889 | 2.296875 | 2 | [] | no_license | package service;
import java.util.ArrayList;
import domain.AccountBean;
/**
* @author Lee Ji-Eun
* @date 2018. 12. 26.
* @desc 은행계좌
*/
public interface AccountService{
/**
* CREATE
*/
public void createAccount(int money);
public String createAccountNum(); // 계좌번호 생성
/**
... | true |
6cac3021d051d24a88784e08dbc664e4646cdecd | Java | suyash-capiot/operations | /src/main/java/com/coxandkings/travel/ext/model/finance/invoice/AmendmentType.java | UTF-8 | 130 | 1.59375 | 2 | [] | no_license | package com.coxandkings.travel.ext.model.finance.invoice;
public enum AmendmentType {
ADDED, CHANGED, NOCHANGE, CANCELLED
}
| true |
b68a18613d6660e56602d738d20bb046c72f7506 | Java | jpawz/rekrutacjepstrg2 | /src/main/java/com/example/rekrutacjepstrg2/event/TrainRepositoryEventHandler.java | UTF-8 | 1,558 | 2.34375 | 2 | [] | no_license | package com.example.rekrutacjepstrg2.event;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.dao.DataIntegrityViolationException;
import org.springframework.data.mongodb.core.mapping.event.AbstractMongoEventListener;
import org.springframework.data.mongodb.core.mapping.event.Af... | true |
95c3ca4ef70d20f1f31e0e0e19ef35f9ce5e8d92 | Java | niallo58/document-analyzer | /src/main/java/com/visiblethread/demo/controller/DocumentController.java | UTF-8 | 1,126 | 2.0625 | 2 | [] | no_license | package com.visiblethread.demo.controller;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
imp... | true |
2dd2b69d96ce9ae2ba6019fd959b0de7c8a9eb75 | Java | thortiede/sbml4j | /src/main/java/org/sbml4j/config/AnnotationConfigProperties.java | UTF-8 | 5,369 | 1.96875 | 2 | [
"MIT"
] | permissive | /**
* --------------------------------------------------------------------------
* SBML4j
* --------------------------------------------------------------------------
* University of Tuebingen, 2022.
*
* This code is part of the SBML4j software package and subject to the terms
* ... | true |
614be67bdd2c6fc8acfe9a0a3a4217d2233b5e6b | Java | Yackson10/DistribuidoraHyJa | /app/src/main/java/com/example/distribuidorahyj/utils/Tabla_Cliente.java | UTF-8 | 633 | 1.859375 | 2 | [] | no_license | package com.example.distribuidorahyj.utils;
public class Tabla_Cliente {
public static final String TABLA_CLIENTE="cliente";
public static final String CAMPO_ID="idCliente";
public static final String CAMPO_NOMBRE="nombre";
public static final String CAMPO_APELLIDO="apellido";
public static final ... | true |
7c75c77aece356ed9225b06b35c6f415a705fc5d | Java | majian7653/learnDemo | /MybatisSpringboot/src/main/java/org/example/controller/UserController.java | UTF-8 | 1,733 | 2.359375 | 2 | [] | no_license | package org.example.controller;
import com.github.pagehelper.PageInfo;
import org.example.entity.User;
import org.example.service.UserService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
/**
... | true |
1c8d4e55daf0c5061643973e75c057fa6b82a85c | Java | andresbejarano/LeapGestureAnalyzer | /src/leapgestureanalyzer/Point.java | UTF-8 | 1,173 | 3.140625 | 3 | [] | no_license | package leapgestureanalyzer;
/**
*
* @author AndresMauricio
*/
public class Point {
public float x;
public float y;
public float z;
/**
*
*/
public Point() {
x = y = z = 0;
}
/**
*
* @param v
*/
public Point(fl... | true |
f614c6f2538d7c17666cad09ef9bd7c9cd442823 | Java | TeacherChen1990/JavaEE-EFD | /j2e-chapter-5/src/main/java/com/woniuxy/ssf/service/UserService.java | UTF-8 | 703 | 2.546875 | 3 | [
"Apache-2.0"
] | permissive | package com.woniuxy.ssf.service;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import org.springframework.stereotype.Service;
import com.woniuxy.ssf.entity.User;
@Service("userService")
public class UserService {
private static List<User> users;
public List<User> findAll(){
if(us... | true |
553e30c80936155cde2f4daea23fa9e2131e2249 | Java | Gurudasnov/NoidaPanda | /Sravan/getFileFromReact.java | UTF-8 | 2,730 | 2.546875 | 3 | [] | no_license | package rest;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import javax.ws.rs.Consumes;
import javax.ws.rs.POST;
import javax.ws.rs.Path;
import javax.ws.rs.core.MediaType;
import javax.ws.rs.core.Response;
import org.glassfish.jersey.media.... | true |
2df91166c97dcc027d2909acffc769c1a071b401 | Java | ogneyar79/junior | /chapter_001/src/main/java/ru/job4j/collection/tree/Tree.java | UTF-8 | 5,279 | 3.890625 | 4 | [] | no_license | package ru.job4j.collection.tree;
import java.util.*;
public class Tree<E extends Comparable<E>> implements SimpleTree<E> {
/**
* переменная Node<E> корневой узел нашего дерева
*/
private Node<E> root;
/**
* переменная которая показывает количество элементов, узлов в дереве.
*/
in... | true |
3db7fa8115b47de5f082fd9c69c83a54a706719e | Java | shinesoleil/training-HaoP | /apis/api impl/java/orderApiJava2/src/test/java/com/thoughtworks/ketsu/api/OrderApiTest.java | UTF-8 | 5,255 | 2.171875 | 2 | [] | no_license | package com.thoughtworks.ketsu.api;
import com.thoughtworks.ketsu.domain.Order;
import com.thoughtworks.ketsu.domain.Payment;
import com.thoughtworks.ketsu.support.ApiSupport;
import com.thoughtworks.ketsu.support.ApiTestRunner;
import com.thoughtworks.ketsu.support.TestHelper;
import org.junit.Test;
import org.junit.... | true |
8be485c48b28426d8da946e9adaba46baf2f38cf | Java | RunningGreens/IntelligentPharmacy | /src/main/java/com/cy/mapper/MenuManage.java | UTF-8 | 1,444 | 2.15625 | 2 | [
"Apache-2.0"
] | permissive | package com.cy.mapper;
import com.cy.bean.FirstMenu;
import com.cy.bean.SecondMenu;
import org.springframework.stereotype.Repository;
import java.util.ArrayList;
@Repository("menuManage")
public interface MenuManage {
//二级菜单查找
public abstract ArrayList<?> findadmin(int adminRoleId);
//一级菜单查找
public... | true |
7141cf735923cd47e936d6fe59863173f7b8a2c8 | Java | Duelist256/CoreJava | /src/day170624/homework/sign/SignTest.java | UTF-8 | 1,339 | 2.96875 | 3 | [] | no_license | package day170624.homework.sign;
import day170624.mytestframework.Asserts;
/**
* Created by Duelist on 25.06.2017.
*/
public class SignTest {
public static void main(String[] args) {
System.out.println(Asserts.assertEquals(Sign.sign(5), 1));
System.out.println(Asserts.assertEquals(Sign.sign(-5),... | true |
e932ce4830d3241f3c5b8be804fc297ea1255889 | Java | a869819435/Ywq | /sc-xzsd-app/clientOrder/controller/ClientOrderController.java | UTF-8 | 4,070 | 1.976563 | 2 | [] | no_license | package com.xzsd.app.clientOrder.controller;
import com.alibaba.fastjson.JSONObject;
import com.google.gson.JsonObject;
import com.neusoft.core.restful.AppResponse;
import com.xzsd.app.clientOrder.entity.ClientOrderGoods;
import com.xzsd.app.clientOrder.service.ClientOrderService;
import com.xzsd.app.clientShopCart.co... | true |
25204b944e3f9d7e0a143e392b5fdefdbea405b9 | Java | laughing1990/aplan-fork | /aplanmis-rest/src/main/java/com/augurit/aplanmis/rest/userCenter/vo/UploadMatReturnVo.java | UTF-8 | 982 | 1.929688 | 2 | [] | no_license | package com.augurit.aplanmis.rest.userCenter.vo;
import com.augurit.agcloud.bsc.domain.BscAttFileAndDir;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.util.List;
/**
* 导入文件;一键提取;一件分拣 返回vo
*/
@Data
@Api("导入文件;一键提取;自动分拣 返回vo")
public class UploadMa... | true |
8f318c058bbe006b6e0e5b889b1ce965e25110b8 | Java | Riunjaku/Projeto_AlertaPet | /app/src/main/java/com/aniharu/alertapet/Classes/Marcadores.java | UTF-8 | 675 | 2.4375 | 2 | [] | no_license | package com.aniharu.alertapet.Classes;
public class Marcadores {
public String imagem, descricao;
public double Lat, Lng;
public double getLat() {
return Lat;
}
public void setLat(double lat) {
Lat = lat;
}
public double getLng() {
return Lng;
}
public ... | true |
4dcec06a05a6718e6b8e688047f3392a0a03de90 | Java | MrChest/JMS_Jetty | /src/main/java/PageGenerator.java | UTF-8 | 1,174 | 2.296875 | 2 | [] | no_license | import freemarker.cache.FileTemplateLoader;
import freemarker.template.Configuration;
import freemarker.template.Template;
import freemarker.template.TemplateException;
import sun.util.resources.cldr.ka.LocaleNames_ka;
import java.io.*;
import java.util.Map;
/**
* Created by Home on 09.08.2017.
*/
public class Page... | true |
8a50ce98c9f7c6c87c1e6b0a1c45e66e0229669a | Java | unascribed-archive/Farrago | /src/main/java/com/unascribed/farrago/network/RenameHotbarMessage.java | UTF-8 | 629 | 2.53125 | 3 | [
"MIT"
] | permissive | package com.unascribed.farrago.network;
import io.netty.buffer.ByteBuf;
import cpw.mods.fml.common.network.ByteBufUtils;
import cpw.mods.fml.common.network.simpleimpl.IMessage;
public class RenameHotbarMessage implements IMessage {
private String name;
public RenameHotbarMessage() {} // Required constructor for For... | true |
dac551df6e8f4ee920b1bbeb7d15fb3943f17158 | Java | nekumiya/videoapp | /src/main/java/com/kexie/videoapp/mbg/model/Message.java | UTF-8 | 3,428 | 2.296875 | 2 | [] | no_license | package com.kexie.videoapp.mbg.model;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.util.Date;
public class Message implements Serializable {
@ApiModelProperty(value = "主键")
private Integer id;
@ApiModelProperty(value = "评论对象id")
private Integer objectId;
... | true |
adf796d4655a273716bedac843bd16f5a119e834 | Java | duneF/everyDay | /taotao-portal/src/main/java/com/portal/controller/indexController.java | UTF-8 | 2,593 | 1.984375 | 2 | [] | no_license | package com.portal.controller;
import com.google.gson.Gson;
import com.google.gson.reflect.TypeToken;
import com.taotao.common.pojo.CookieUtils;
import com.taotao.common.pojo.HttpRequestUtils;
import com.taotao.mapper.ItemSolrBean;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
... | true |
93262f2fbb6f6333d280dbdfabbffbf61d787041 | Java | dustinkredmond/LiteORM | /src/test/java/com/dustinredmond/liteormtest/Tests.java | UTF-8 | 4,376 | 2.609375 | 3 | [] | no_license | package com.dustinredmond.liteormtest;
/*
* Copyright 2020 Dustin K. Redmond
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
... | true |
aadcc0493fb2d2119727b933146bc0f84cfad3a4 | Java | Geeko9/IJKProject | /src/com/geeko/proto/ijkproject/app/widgets/ClearableEditText.java | UTF-8 | 2,759 | 2.453125 | 2 | [] | no_license | package com.geeko.proto.ijkproject.app.widgets;
import android.content.Context;
import android.text.Editable;
import android.text.InputFilter;
import android.text.TextWatcher;
import android.util.AttributeSet;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.EditText;
impor... | true |
b1bbc6795018f8460cb3c90a67be7d0b9d39d206 | Java | X-FAN/GankAPP | /app/src/main/java/com/xf/gankapp/view/activity/WebViewActivity.java | UTF-8 | 1,366 | 2.03125 | 2 | [] | no_license | package com.xf.gankapp.view.activity;
import android.os.Bundle;
import android.view.View;
import android.webkit.WebChromeClient;
import android.webkit.WebView;
import android.webkit.WebViewClient;
import android.widget.ProgressBar;
import com.xf.gankapp.R;
public class WebViewActivity extends BaseActivity {
@O... | true |
abafffb60118fba5e8ca8464d9f7c7f86955dd46 | Java | bg4akv/UnderstandingComputation | /src/main/Statement.java | UTF-8 | 1,166 | 2.9375 | 3 | [] | no_license | package main;
import java.util.Iterator;
import java.util.Map;
public abstract class Statement {
//public Map<String, NumExp> newEnv;
public void print()
{
System.out.println(toString());
}
abstract public boolean reduciable();
abstract public Statement reduce(Map<String, Expression> enviroment);
abstract ... | true |
2010def511b687c9a0f5422fcf0658619e5aae98 | Java | amish1999/Leetcode | /src/main/java/com/fishercoder/solutions/_654.java | UTF-8 | 3,887 | 4.125 | 4 | [
"Apache-2.0"
] | permissive | package com.fishercoder.solutions;
import com.fishercoder.common.classes.TreeNode;
/**
* 654. Maximum Binary Tree
*
* Given an integer array with no duplicates. A maximum tree building on this array is defined as follow:
*
* The root is the maximum number in the array.
* The left subtree is the maximum tree con... | true |
cc59fbcecc61489a789c7556eee05c3d0365248f | Java | xingyes/wpospad | /xingy_libutil/src/com/xingy/util/ImageLoader.java | UTF-8 | 24,267 | 2.109375 | 2 | [] | no_license | package com.xingy.util;
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.os.AsyncTask;
import android.os.Environment;
import android.text.TextUtils;
import android.widget.ImageView;
import com.xingy.R;
import com.xingy.util.activity.BaseA... | true |
9dd8250c72597b2a7290c7ef2e25f9dbef97ca4a | Java | Game-Designing/Custom-Football-Game | /sources/p005cm/aptoide/p006pt/abtesting/ABTestActionBody.java | UTF-8 | 2,405 | 1.960938 | 2 | [
"MIT"
] | permissive | package p005cm.aptoide.p006pt.abtesting;
import java.util.ArrayList;
import java.util.List;
import org.jacoco.agent.p025rt.internal_8ff85ea.Offline;
/* renamed from: cm.aptoide.pt.abtesting.ABTestActionBody */
public class ABTestActionBody {
private static transient /* synthetic */ boolean[] $jacocoData;
priv... | true |
aba631585dd2db3d41226263bc96a6ecb3b6f178 | Java | uulyanamuur/java | /Pr1/src/Ball.java | UTF-8 | 848 | 3.65625 | 4 | [] | no_license | public class Ball {
private String color;
private double radius;
public Ball(String color, double radius){
this.color = color;
this.radius = radius;
}
public Ball(String color){
this.color = color;
radius = 0;
}
public Ball(){
color = "gree... | true |
36733867e805688608433252fc887824a0e7f9dd | Java | Rilok/JAVALabs | /laboratorium-4-Rilok/StringOperations/test/StringOpTest.java | UTF-8 | 1,273 | 2.421875 | 2 | [] | no_license | import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.*;
import static org.junit.Assert.*;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
public class StringOpTest {
public StringOperations StrTest;
@Before
public void setUp() throws Exc... | true |
4106ae411a9b7cbe72637c650e12f364d9ba81ce | Java | GitHubWebb/HST-SDK | /app/src/main/java/com/hst/sdkTest/MainActivity.java | UTF-8 | 4,729 | 2.03125 | 2 | [] | no_license | package com.hst.sdkTest;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import com.inpor.fastmeetingcloud.sdk.HstLoginManager;
public class MainActivity ext... | true |
c3b8e34098dad2c5c77427cb244530686cc7b7ca | Java | thomasadohle/-.www.gi | /src/insulease/dao/RelationshipsDao.java | UTF-8 | 4,350 | 2.8125 | 3 | [] | no_license | package insulease.dao;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import insulease.model.Patients;
import insulease.model.Relationships;
import insulease.model.Relationships.RelType;
import insulease.model.Users;
... | true |
d06829d9dd4c5bed913635203dd098a6be0adf23 | Java | lucassum/8Puzzle | /src/principal/Estado.java | UTF-8 | 2,570 | 3.28125 | 3 | [
"MIT"
] | permissive | /*
* 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 principal;
import java.util.Arrays;
import static principal.Algoritmos.indice;
/**
*
* @author lucassum
*/
public class Es... | true |
8acf7538a05b965d034a477ac0ba48a316d1104e | Java | isEmmanuelOlowe/W11-Practical | /source/Company.java | UTF-8 | 2,291 | 3.734375 | 4 | [] | no_license | import java.time.LocalDate;
public class Company {
private Staff[] staffMembers;
private Holiday[] destinations;
public Company(Staff[] staffMembers, Holiday[] destinations){
this.staffMembers = staffMembers;
this.destinations = destinations;
}
public void displaySalaries(){
System.out.println(... | true |
faee0a79b8c11869c40a17f97281f80eeaea2231 | Java | KyeoungSooKim/kimksWeb | /src/main/java/com/kimks/mapper/CartMapper.java | UTF-8 | 747 | 1.648438 | 2 | [] | no_license | package com.kimks.mapper;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import com.kimks.domain.CartListVO;
import com.kimks.domain.CartVO;
public interface CartMapper {
public void addCart(CartVO vo);
public List<CartListVO> cartList(String u_id);
public List<CartListVO> cartListCookie... | true |
c9b2969ee9603c100caeebbebf4988ff61893872 | Java | deltatager/ProjetIntegre-EQ3 | /src/main/java/com/power222/tuimspfcauppbj/service/StudentService.java | UTF-8 | 2,005 | 2.296875 | 2 | [] | no_license | package com.power222.tuimspfcauppbj.service;
import com.power222.tuimspfcauppbj.dao.StudentRepository;
import com.power222.tuimspfcauppbj.dao.UserRepository;
import com.power222.tuimspfcauppbj.model.Student;
import com.power222.tuimspfcauppbj.util.SemesterContext;
import org.springframework.security.crypto.password.Pa... | true |
133eec77f4d66c3e716a969034625bf5b9239f00 | Java | KiLMaN/Master-RA | /Software/GamePlay-simu/src/communication/CommunicationTower.java | UTF-8 | 5,284 | 2.734375 | 3 | [] | no_license | package communication;
import java.io.DataOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.net.InetAddress;
import java.net.Socket;
import java.net.UnknownHostException;
import tools.Tools;
public class CommunicationTower {
private Socket so... | true |
e9417ebbb6409f693e736d876763889a29341088 | Java | eblufac/Design-Pattern | /J2EE-Patterns/src/com/j2ee/frontController/FrontControllerPatternDemo.java | UTF-8 | 1,051 | 2.9375 | 3 | [] | no_license | package com.j2ee.frontController;
import com.j2ee.frontController.Controller.FrontController;
/**
* @author lgy
* @version 1
* @description
* 提供一个集中的请求处理机制,所有的请求都将由一个单一的处理程序处理
* 处理程序可以做认证/授权/记录日志,或者跟踪请求,然后把请求传给相应的处理程序。
* 前端控制器(Front Controller) - 处理应用程序所有类型请求的单个处理程序,应用程序
* 可以是基于 web 的应用程序,也可以是基于桌面的应用程序。
* 调度器... | true |