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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
84ebae7515fce439ac5fe4462a884581ca3f5c9c | Java | BroniusJanonis/website_java | /src/test/java/lt/web/models/SchoolClassesTest.java | UTF-8 | 2,359 | 2.578125 | 3 | [] | no_license | package lt.web.models;
import org.junit.Before;
import org.junit.Test;
import java.util.ArrayList;
import java.util.List;
import static org.junit.Assert.*;
public class SchoolClassesTest {
private int schoolClassesId;
private String title;
private List<Children> childrenList;
private Teachers teach... | true |
be1868516104b9cce7666dc35f93f569cb9ed656 | Java | qianhk/KaiJs | /KaiWeex/app/src/main/java/com/njnu/kai/weex/WXApplication.java | UTF-8 | 618 | 1.78125 | 2 | [
"Apache-2.0"
] | permissive | package com.njnu.kai.weex;
import android.app.Application;
import com.taobao.weex.InitConfig;
import com.taobao.weex.WXEnvironment;
import com.taobao.weex.WXSDKEngine;
/**
* @author hongkai.qian
* @version 1.0.0
* @since 16-8-18
*/
public class WXApplication extends Application {
@Override
public void on... | true |
c31f2b9e99dd26b2f054682f29d8d429d9d11d23 | Java | gaetancollaud/fablab-manager | /src/main/java/net/collaud/fablab/manager/dao/GroupRepository.java | UTF-8 | 446 | 1.921875 | 2 | [
"MIT"
] | permissive | package net.collaud.fablab.manager.dao;
import java.util.List;
import net.collaud.fablab.manager.data.GroupEO;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
/**
*
* @author Gaetan Collaud <gaetancollaud@gmail.com>
*/
public interface GroupReposit... | true |
99f112e74c65e13648bc349f311414a81816af55 | Java | cwardcode/TranTracker | /Testing/TrackerAppTest/src/edu/wcu/trackerapp/test/NavTest.java | UTF-8 | 1,047 | 1.882813 | 2 | [] | no_license | package edu.wcu.trackerapp.test;
import com.cwardcode.trackerapp.Map;
import com.cwardcode.trackerapp.R;
import com.robotium.solo.Solo;
import android.test.ActivityInstrumentationTestCase2;
public class NavTest extends ActivityInstrumentationTestCase2<Map> {
private Solo solo;
public NavTest() {
super(Map.cla... | true |
92e56b950daeb93719fc75cb7f504124628ed876 | Java | junheng/akka-hbase | /protocol/src/main/java/io/github/junheng/akka/hbase/CQ.java | UTF-8 | 308 | 1.742188 | 2 | [
"MIT"
] | permissive | package io.github.junheng.akka.hbase;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.FIELD})
public @interface CQ {
byte value();
} | true |
f03083f088922fa482c1c82e539fbc578aa7fbff | Java | beyondbox/net | /app/src/main/java/com/appjumper/silkscreen/bean/ServiceProductResponse.java | UTF-8 | 377 | 1.8125 | 2 | [] | no_license | package com.appjumper.silkscreen.bean;
import java.util.List;
/**
* Created by yc on 2016/11/29.
* 产品列表
*/
public class ServiceProductResponse extends BaseResponse{
private List<ServiceProduct> data;
public List<ServiceProduct> getData() {
return data;
}
public void setData(List<ServicePr... | true |
bdbe33fe9ea50acd98273bdfd3c9c52ee06c590a | Java | sena1493994/TipicoSaludable | /Crud usuarios/app/src/main/java/com/example/admin/myfirebaseapp/model/Historial.java | UTF-8 | 2,025 | 2.015625 | 2 | [] | no_license | package com.example.admin.myfirebaseapp.model;
/**
* Created by ADMIN on 26/10/2018.
*/
public class Historial {
private String uid;
private String Calorías_consumidas;
private String Calorías_excedentes;
private String Calorías_finales;
private String Calorías_máximas;
private String Fecha;... | true |
de7c075249c62faae595394b041a446a38d875d1 | Java | kapilpruthi/siaamrepo | /siaamweb/siaam-token-mgmt/src/test/java/com/siaam/auth/token/TokenServiceTest.java | UTF-8 | 1,780 | 2.234375 | 2 | [] | no_license | package com.siaam.auth.token;
import static org.junit.Assert.*;
import java.util.HashMap;
import java.util.Map;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test... | true |
72dc1ff347af723a98f255c744c02f0c17203c96 | Java | Equilat/testjpa | /testjpa/src/main/java/dao/DaoReponse.java | UTF-8 | 948 | 2.296875 | 2 | [] | no_license | package dao;
import domain.Reponse;
import java.util.List;
public class DaoReponse {
public List<Reponse> findAll() {
return EntityManagerHelper.getEntityManager().createQuery("select r from Reponse as r", Reponse.class).getResultList();
}
public List<Reponse> findById(String id) {
ret... | true |
0d36ed8b1715635f81c4f8d38b4af5d65cf7ad69 | Java | sunjianqing/myjava | /src/main/java/com/jianqing/interview/leetcode16/FactorCombinations_254.java | UTF-8 | 1,374 | 3.390625 | 3 | [] | no_license | package com.jianqing.interview.leetcode16;
import java.util.ArrayList;
import java.util.List;
/**
* Created by jianqing_sun on 3/12/18.
* Factor Combinations
*
* Examples:
input: 1
output:
[]
input: 37
output:
[]
input: 12
output:
[
[2, 6],
[2, 2, 3],
[3, 4]
]
input: 32
output:
[
[2, 16],
[2... | true |
3ea026cde80db2ee4c8d7e57c10b0d760385b673 | Java | dmfullstack/BankBalanceDispensing | /src/main/java/com/sa/discovery/dispensing/entity/DenominationTypeCode.java | UTF-8 | 704 | 1.992188 | 2 | [] | no_license | package com.sa.discovery.dispensing.entity;
import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import org.springframework.lang.NonNull;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter... | true |
509425fde87fdce0de65cfee6a416ce999d981bf | Java | gianricardo/simter | /Simulador/src/simulador/generators/GeradorCaminhoesExternos.java | UTF-8 | 3,982 | 2.1875 | 2 | [] | no_license | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package simulador.generators;
import Enumerators.CaminhaoOperacao;
import Enumerators.ContainerTipos;
import cz.zcu.fav.kiv.jsim.JSimException;
import cz.zcu.fav.kiv.jsim.JSimInvalidParametersException;
import... | true |
3e31050248e803bc69e736815181d60fec9a8e84 | Java | wutao123456/common | /nettypro/src/main/java/com/wutao/netty/rpc/publicinterface/HelloService.java | UTF-8 | 156 | 1.65625 | 2 | [] | no_license | package com.wutao.netty.rpc.publicinterface;
/**
* @author wutao
* @date 2019/12/11
*/
public interface HelloService {
String hello(String msg);
}
| true |
4ced4f636dd30f78383fb4cceda22c605bf51e35 | Java | anzhiyi1988/MyCode | /DesignPattern/src/main/java/orz/an/design/pattern/chain/Handler1.java | UTF-8 | 218 | 2.125 | 2 | [] | no_license | package orz.an.design.pattern.chain;
public class Handler1 extends Handler {
@Override
protected void makeDecision(Request request) {
request.request();
System.out.println("滚!");
}
}
| true |
30eee91884d5afae0987e9f3a8fa517dcb9426c2 | Java | carl-001/springboot_template | /globalpro/src/main/java/com/global/api/service/system/ISysRoleService.java | UTF-8 | 671 | 1.867188 | 2 | [] | no_license | package com.global.api.service.system;
import com.global.api.entity.system.SysRole;
import com.baomidou.mybatisplus.service.IService;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import com.baomidou.mybatisplus.plugins.Page;
import java.util.Map;
/**
* <p>
* 系统角色表 服务类
* </p>
*
* @author yan... | true |
502d1c3b613621840b48e867eadd9a9af557485b | Java | pavelgrib/SE_CW1 | /CW2/AcmeTelecom/src/com/acmetelecom/Cost.java | UTF-8 | 567 | 3.40625 | 3 | [] | no_license | package com.acmetelecom;
import java.math.BigDecimal;
/*
Tiny type to encapsulate the cost variable which is a BigDecimal type
*/
public class Cost {
private BigDecimal callCost;
public Cost(BigDecimal callCost) {
this.callCost = callCost;
}
public BigDecimal getCallCost() {
return ... | true |
3afcbf96a0cdef0829fc108ea687fb8a52d4e111 | Java | juliebyte/AppointmentCalendar | /src/DAO/CountryDaoImpl.java | UTF-8 | 1,966 | 2.828125 | 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 DAO;
import Model.City;
import Model.Country;
import Utilities.DBConnection;
import Utilities.DBQuery;
import java.sql.ResultS... | true |
24cfa28d731946e0269736d9f6a94aa5d5161184 | Java | chaithanyabanka/Test | /src/com/nicor/generic/BasePage.java | UTF-8 | 1,692 | 2.59375 | 3 | [] | no_license | package com.nicor.generic;
import org.apache.log4j.Logger;
import org.junit.Assert;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.interactions.Actions;
import org.openqa.selenium.support.ui.ExpectedConditions;
import org.openqa.selenium.support.ui.WebDriverWait... | true |
f2d0118e2fcdce4d6dad208fc3b4a3e07b55e986 | Java | Makise-Christina/edms-backend | /src/main/java/com/m/edmsbackend/model/Elder.java | UTF-8 | 1,105 | 2.09375 | 2 | [] | no_license | package com.m.edmsbackend.model;
import java.util.Date;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import lombok.Data;
... | true |
6ed9dd6b75e120e59f34f72b9b30cbdaea973da5 | Java | digyprojectgl/Digy | /src/Model/Purchasable.java | UTF-8 | 143 | 2.171875 | 2 | [] | no_license | /**
* Created by Arthur on 27/02/2016.
*/
package Model;
public interface Purchasable {
double getPrice();
Product getProduct();
}
| true |
cb9db7f35174dd99259cc821c49090e378b09409 | Java | AngelovskiTeodor/bnks_project_securedrive | /src/main/java/mk/ukim/finki/bnks/securedrive/service/UploadedFileService.java | UTF-8 | 334 | 1.890625 | 2 | [] | no_license | package mk.ukim.finki.bnks.securedrive.service;
import mk.ukim.finki.bnks.securedrive.model.UploadedFile;
import java.util.List;
import java.util.Optional;
public interface UploadedFileService {
List<UploadedFile> findAll();
Optional<UploadedFile> findById(Long id);
void saveUploadedFile(UploadedFile upl... | true |
2f0dac44a1800b7f0223125a8d2b258bc9c89366 | Java | quentinLeDilavrec/gumtree-spoon-ast-diff | /src/test/java/gumtree/spoon/InsertApplyTest.java | UTF-8 | 3,774 | 2.3125 | 2 | [
"Apache-2.0"
] | permissive | package gumtree.spoon;
import java.io.File;
import org.junit.Before;
import org.junit.Test;
import gumtree.spoon.apply.MyUtils;
import spoon.reflect.factory.Factory;
import spoon.support.compiler.VirtualFile;
public class InsertApplyTest {
@Before
public void initProps() {
System.setProperty("nolabe... | true |
56725f40851665f8778a637c427800ac8c60e665 | Java | EslamKhder/problem-solving-with-java | /src/com/java/Team.java | UTF-8 | 632 | 3.125 | 3 | [] | no_license | package com.java;
import java.util.Scanner;
public class Team {
public static void main(String[] args) {
/*
3
1 1 0
1 1 1
1 0 0
* */
Scanner scanner = new Scanner(System.in);
int numQuestion = scanner.nextInt();
int counter = 0;
for(... | true |
31f7d45dc1903611e9075243bbadd15f67965acd | Java | Minichain/ElwynnProject | /src/items/HealthPotion.java | UTF-8 | 821 | 2.578125 | 3 | [] | no_license | package items;
import audio.OpenALManager;
import entities.Player;
import entities.Sprite;
import main.Strings;
public class HealthPotion extends Item {
private int cost;
private float restoreValue;
public HealthPotion() {
super();
cost = 2;
restoreValue = 500f;
MAX_AMOUNT... | true |
6d40ebf4ee22f44e7ba145ee0e6e2607ca4141df | Java | Zurich1994/Android-60-Demo | /MyTimePicker/src/com/fit/timepicker/MainActivity.java | UTF-8 | 1,373 | 2.5625 | 3 | [] | no_license | package com.fit.timepicker;
import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.TextView;
import android.widget.TimePicker;
import android.widget.TimePicker.OnTimeChangedListener;
public class Ma... | true |
13477dec666276d442e69456a71ab009172dbcab | Java | ahlianko/project_one | /src/main/java/model/entity/aircraft/PassengersAircraft.java | UTF-8 | 265 | 2.359375 | 2 | [] | no_license | package model.entity.aircraft;
public class PassengersAircraft extends Aircraft {
public PassengersAircraft(String name, int passengers, int cargo, int flyRange, int fuelConsumption) {
super(name, passengers, cargo, flyRange, fuelConsumption);
}
}
| true |
dd61d9d09d2dafeaecd73303efe6a5aa0aad96ca | Java | yubi48/Banking_project | /banking-web/src/main/java/com/rab3tech/user/ui/controller/LoginController.java | UTF-8 | 5,366 | 2.234375 | 2 | [] | no_license | package com.rab3tech.user.ui.controller;
import java.util.Collection;
import java.util.Collections;
import java.util.Iterator;
import java.util.List;
import java.util.Optional;
import java.util.stream.Collectors;
import javax.servlet.http.HttpSession;
import org.springframework.beans.factory.annotation.Autowired;
im... | true |
8281257d9d8e007cf5107ef9fa9d63a7cbf87552 | Java | Idriece/PaddleBall | /src/Paddle.java | UTF-8 | 2,347 | 3.328125 | 3 | [] | no_license | public class Paddle {
//Declare instance variables
private int x;
private int width;
private int height;
private int speed;
private int direction;
private int courtWidth;
public Paddle (int courtWidth) {
width = 100;
height = 10;
speed = 0;
direction = 0;
if(courtWidth >= width)
... | true |
a1b3964e6b49afe5a93899dda6e9b1c12e726a72 | Java | andradesampaio/notify-for-all-api | /src/main/java/com/notifyforall/api/model/WebPushUserAppConfiguration.java | UTF-8 | 1,071 | 1.960938 | 2 | [] | no_license | package com.notifyforall.api.model;
import com.notifyforall.api.enums.ChannelType;
import lombok.Data;
import lombok.NoArgsConstructor;
import javax.persistence.*;
import java.io.Serializable;
@Data
@Entity
@NoArgsConstructor
@Table(name = "web_push_user_app_configuration")
public class WebPushUserAppConfiguration i... | true |
b1357ec47f82adc67c0a5e736ff5e8c15599729d | Java | mounamhadhbi/KRY-code-assignment | /src/main/java/se/kry/codetest/service/ServiceRouter.java | UTF-8 | 4,348 | 2.421875 | 2 | [] | no_license | package se.kry.codetest.service;
import io.vertx.core.json.JsonArray;
import io.vertx.core.json.JsonObject;
import io.vertx.ext.web.Router;
import io.vertx.ext.web.RoutingContext;
import io.vertx.ext.web.handler.StaticHandler;
import java.net.MalformedURLException;
import java.util.List;
import java.util.stream.Colle... | true |
d312e932067450dea7fc8fa33a9c4d6b35eb3216 | Java | ArpitTailong/online-food-delivery-application | /online-food-deliver-application-middleware/src/main/java/com/cg/ofda/util/EMParserBill.java | UTF-8 | 1,557 | 2.359375 | 2 | [] | no_license | package com.cg.ofda.util;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.cg.ofda.entity.BillEntity;
import com.cg.ofda.model.BillModel;
import com.cg.ofda.repository.IBillRepository;
import com.cg.ofda.repository.IOrderRepository;
@Service
pub... | true |
3b25bd7d57713a70b03e0afde646ac7f7614be1c | Java | AlexandreInsua/RepositorioApis | /src/aplicacionAPI/Account.java | ISO-8859-1 | 4,217 | 2.5 | 2 | [] | no_license | package aplicacionAPI;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.StringReader;
import java.util.ArrayList;
import javax.xml.xpath.XPath;
import javax.xml.xpath.XPathConstants;
import javax.xml.xpath.XPathExpressionException;
import jav... | true |
f922721a41f6cb894d2bed33ea79dfdc6e6a49d7 | Java | caspervg/aggr | /src/test/java/net/caspervg/aggr/worker/read/JenaAggrReaderTests.java | UTF-8 | 2,165 | 2.25 | 2 | [
"MIT"
] | permissive | /*
package net.caspervg.aggr.worker.read;
import com.google.common.collect.Iterables;
import net.caspervg.aggr.core.bean.Measurement;
import net.caspervg.aggr.core.bean.Point;
import net.caspervg.aggr.core.util.AggrContext;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
import java.util.Hash... | true |
bdb5aa24f0ca98fc69c266e57f72762e1a466381 | Java | SieniAlessandro/Distribuited-Clustering | /docs/Codice/CommunicationModelHandler.java | UTF-8 | 1,148 | 2.375 | 2 | [] | no_license | package it.unipi.cds.federatedLearning;
import com.rabbitmq.client.Channel;
import com.rabbitmq.client.ConnectionFactory;
public abstract class CommunicationModelHandler {
protected final String RPC_NODE_TO_SINK_QUEUE_NAME = "RPC_QUEUE";
protected final String NODE_TO_SINK_QUEUE_NAME = "MODELS_QUEUE";
pr... | true |
3995e5d57f09a0aada51cde75601566a1aaf8233 | Java | isotrol-portal3/portal3 | /impe3/impe3-gui-common/src/main/java/com/isotrol/impe3/gui/common/widget/multivalue/AMultiValueField.java | UTF-8 | 14,478 | 2.015625 | 2 | [] | no_license | /**
* This file is part of Port@l
* Port@l 3.0 - Portal Engine and Management System
* Copyright (C) 2010 Isotrol, SA. http://www.isotrol.com
*
* Port@l 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,... | true |
45a1ffbd8df0c69e1c277dc4d6afa5912a7c2d59 | Java | DulingLai/Soot_Instrumenter | /InstrumentAPK/sootOutput/com.waze_source_from_JADX/com/google/android/gms/internal/zzne.java | UTF-8 | 5,633 | 1.765625 | 2 | [] | no_license | package com.google.android.gms.internal;
import android.os.Binder;
import android.os.IBinder;
import android.os.IInterface;
import android.os.Parcel;
import android.os.RemoteException;
import com.google.android.gms.auth.api.proxy.ProxyGrpcRequest;
import com.google.android.gms.auth.api.proxy.ProxyRequest;
import com.g... | true |
439487095417cb6ff5f46f3821d1617ed84b955b | Java | adamyy/algo | /questions/src/test/java/greedy/BurstBalloonsTest.java | UTF-8 | 296 | 2.3125 | 2 | [] | no_license | package greedy;
import org.junit.Test;
import static com.google.common.truth.Truth.*;
public class BurstBalloonsTest {
@Test
public void findMinArrowShots() {
assertThat(BurstBalloons.findMinArrowShots(new int[][]{
{10, 16}, {2, 8}, {1, 6}, {7, 12}
})).isEqualTo(2);
}
} | true |
991be471ce03948be14031f2715bdff5130c98bd | Java | DMScoder/AntGame | /core/src/Creature/ColonyUnit.java | UTF-8 | 1,596 | 3.09375 | 3 | [] | no_license | package Creature;
import com.mygdx.game.Player;
/**
* Created by Immortan on 1/25/2016.
*/
public class ColonyUnit extends Creature {
public static final int WORKER = 0;
public static final int FORAGER = 1;
public static final int SCOUT = 2;
public static final int FLYER = 3;
public static fina... | true |
6ca2d6256d6addc8e3cacc5704a2a79a2fcfed80 | Java | FuturePropLab/HotelOrderSystem | /MVNHotelOrderClient/src/main/java/businesslogic/strategy/PeriodStrategy_web.java | UTF-8 | 775 | 2.609375 | 3 | [] | no_license | package businesslogic.strategy;
import vo.DiscountVO_web;
import vo.DiscountVO_web_period;
import vo.OrderInputCalVO;
/**
* 特定期间优惠算法
*
* @author LWY
*
*/
public class PeriodStrategy_web implements WebStrategyInterface {
public double calculate(OrderInputCalVO orderInputCalVO, DiscountVO_web discountVO_web) {
... | true |
8274aa29121a3ee045c6b9560a2863986626f624 | Java | lanaflon-cda2/B4W | /Bid4WinEntity/src/com/bid4win/persistence/entity/locale/LocalizedStorage.java | ISO-8859-1 | 3,618 | 2.390625 | 2 | [] | no_license | package com.bid4win.persistence.entity.locale;
import javax.persistence.Access;
import javax.persistence.AccessType;
import javax.persistence.AttributeOverride;
import javax.persistence.Column;
import javax.persistence.MappedSuperclass;
import org.hibernate.annotations.Type;
import com.bid4win.commons.core.collectio... | true |
34e03bc21ce458d6ffb908ae5111ea04f4a4ee9e | Java | XDYB/theTourGuide | /src/main/java/com/ysq/theTourGuide/controller/OSSController.java | UTF-8 | 3,555 | 2.421875 | 2 | [] | no_license | package com.ysq.theTourGuide.controller;
import com.ysq.theTourGuide.dto.DownloadFileResult;
import com.ysq.theTourGuide.dto.UploadFileResult;
import com.ysq.theTourGuide.utils.AliyunOSSUtil;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.... | true |
f94816d20217278fd650b7d6123efdba3f0f2973 | Java | knightsss/xlink-datagetway | /metadata/src/main/java/cn/xlink/data/metadata/pageMetadata/PageMetadataController.java | UTF-8 | 4,514 | 2.21875 | 2 | [] | no_license | package cn.xlink.data.metadata.pageMetadata;
import cn.xlink.data.core.proxy.Proxy;
import cn.xlink.data.core.service.AuthCheck;
import cn.xlink.data.core.service.Service;
import cn.xlink.data.metadata.Constants;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.databind.ObjectMapper;
i... | true |
170e57d84d9355c962dde1f09bafe6cea8d3eca3 | Java | g1059491321/yingx_gyl | /src/main/java/com/baizhi/dao/UserMapper.java | UTF-8 | 321 | 1.742188 | 2 | [] | no_license | package com.baizhi.dao;
import com.baizhi.entity.User;
import com.baizhi.entity.UserPO;
import tk.mybatis.mapper.common.Mapper;
import java.util.List;
public interface UserMapper extends Mapper<User> {
public List<User> queryAllMan();
public List<User> queryAllWoman();
public List<UserPO> queryAll();
... | true |
29765579106acd912023a9fb6bd921a42d33f6eb | Java | djordjeognjenovic97/XML-projekat | /portal poverenika/poverenik/src/main/java/com/projekat/poverenik/repository/ZalbanaodlukuRepository.java | UTF-8 | 3,793 | 2.28125 | 2 | [] | no_license | package com.projekat.poverenik.repository;
import com.projekat.poverenik.existdb.ExistManager;
import com.projekat.poverenik.jaxb.JaxbParser;
import com.projekat.poverenik.model.zalbacutanjecir.Zalbacutanje;
import com.projekat.poverenik.model.zalbanaodlukucir.Zalbaodluka;
import org.springframework.beans.factory.anno... | true |
67796bd19d23e1665efaeb4633fd52316832c0ac | Java | mdsaad13/HealthCareManagement | /src/com/healthcare/dbutil/UserUtil.java | UTF-8 | 2,987 | 2.359375 | 2 | [] | no_license | package com.healthcare.dbutil;
import java.sql.PreparedStatement;
import java.sql.SQLException;
import com.healthcare.Config;
import com.healthcare.modals.Appointment;
import com.healthcare.modals.Consulting;
import com.healthcare.modals.Enquiry;
public class UserUtil extends Config {
public boolean InsertEnq(Enqu... | true |
2075d60904ebc69a8660d263377eac72bc5da151 | Java | reverseengineeringer/com.facebook.orca | /src/com/facebook/rti/common/guavalite/a/c.java | UTF-8 | 634 | 1.648438 | 2 | [] | no_license | package com.facebook.rti.common.guavalite.a;
import java.io.Serializable;
import javax.annotation.Nullable;
public abstract class c<T>
implements Serializable
{
public static <T> c<T> a(T paramT)
{
return new e(d.a(paramT));
}
public static <T> c<T> b(@Nullable T paramT)
{
if (paramT == null) {... | true |
c74cd8ab0dfdabaf10c21eed20a13f622fc36c60 | Java | kam123ex/210CT_Assignment | /Week6_Advanced/TestRecusiveSearch.java | UTF-8 | 595 | 3.296875 | 3 | [] | no_license | package Week6_Advanced;
public class TestRecusiveSearch {
public static void main(String[] args) {
RecursiveSearch rs = new RecursiveSearch();
int[] arr1 = { 2, 45, 234, 567, 876, 900, 976, 999 };
int index = rs.recursiveBinarySearch(arr1, 0, arr1.length, 45);
System.out.println("Found 45 at " ... | true |
c567d6bdcd41650c7026bdc53a5685a056f8cda5 | Java | maxqiang1992/MPchartLibrary | /app/src/main/java/cn/com/demo/MainActivity.java | UTF-8 | 3,123 | 2.15625 | 2 | [] | no_license | package cn.com.demo;
import android.app.Activity;
import android.content.Intent;
import android.graphics.Color;
import android.os.Build;
import android.os.Bundle;
import android.support.annotation.RequiresApi;
import android.view.View;
import java.util.ArrayList;
import java.util.Random;
import chart.LineChart;
impo... | true |
7416db2a4d9653f285e6e79df749f2e9389cd407 | Java | frinder6/spring.demo | /spring.dbs/src/main/java/spring/dao/BaseDao.java | UTF-8 | 3,584 | 2.21875 | 2 | [] | no_license | package spring.dao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.core.BeanPropertyRowMapper;
import org.springframework.jdbc.core.namedparam.BeanPropertySqlParameterSource;
import org.springframework.jdbc.core.namedparam.NamedParameterJdbcTemplate;
import org.springfra... | true |
6db66dc26b95ae775e719491f7f05bb2c587baa2 | Java | shilun/passport | /com.passport.main/src/main/java/com/passport/main/interceptor/ConfigurerAdapter.java | UTF-8 | 696 | 1.914063 | 2 | [] | no_license | package com.passport.main.interceptor;
import org.springframework.boot.SpringBootConfiguration;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;
import javax.annotation.Resource;
@SpringBootConfiguration
pu... | true |
fd2d7ff684916c0c39d0f2029a6e5ac3c304cda7 | Java | tgrm-tangram/AsyncTask | /task/src/main/java/com/tangram/task/interfaces/OnNext9.java | UTF-8 | 351 | 2.1875 | 2 | [] | no_license | package com.tangram.task.interfaces;
import android.support.annotation.NonNull;
/**
* 下一步 8个参数
*/
public interface OnNext9<T1, T2, T3, T4, T5, T6, T7, T8, T9> {
void onNext(@NonNull T1 t1,@NonNull T2 t2,@NonNull T3 t3,@NonNull T4 t4,@NonNull T5 t5,
@NonNull T6 t6,@NonNull T7 t7,@NonNull T8 t8,@... | true |
8767214e8aea178d0a7f70b8a2329d37a4429166 | Java | hoangsonsky/Mp3 | /app/src/main/java/com/example/mypc/mp3/CustomView/ViewPlayMuSic1.java | UTF-8 | 6,496 | 1.96875 | 2 | [] | no_license | package com.example.mypc.mp3.CustomView;
import android.app.Activity;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.View;
import android.... | true |
2aeb9912a734ec7269dbd8d034a06e5c2bcb9114 | Java | skappler/evaluation-subjects | /lexer/Lexer.java | UTF-8 | 1,463 | 3.34375 | 3 | [] | no_license | package lexer;
public class Lexer {
private final String[] split;
public Lexer(final String expression) {
this.split = expression.split("\\s");
}
public Token[] getTokens() {
final Token[] tokens = new Token[this.split.length];
int i = 0;
for (final String s : this.split) {
if (s.equals("+")) {
... | true |
bdb8035e65a2b928392ad919236cf24bbd33c18e | Java | AviBoter/Biddle | /app/src/main/java/com/example/biddle/Activites/ReceiptDetails.java | UTF-8 | 6,616 | 2.109375 | 2 | [
"MIT"
] | permissive | package com.example.biddle.Activites;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.os.CountDownTimer;
import android.util.Log;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
imp... | true |
41b85add7576150de0258ca5753ed33e0bf20f17 | Java | Saurutobi/L4850_Interpreter | /Project_2_Eval/src/abstractSyntaxTree/FactorNode.java | UTF-8 | 279 | 2.6875 | 3 | [] | no_license | package abstractSyntaxTree;
import Visitors.*;
public class FactorNode extends BinaryNode
{
public FactorNode(ASTNode leftNode, ASTNode rightNode)
{
super(leftNode, rightNode);
}
@Override
public Object accept(Visitor v)
{
return v.visit(this);
}
} | true |
b6b0aba3d31a88681aebcfe21ae6eb50c57e15be | Java | Philliprince/CEM | /src/main/java/io/cem/modules/cem/service/impl/RecordHourWebPageServiceImpl.java | UTF-8 | 44,987 | 1.757813 | 2 | [
"Apache-2.0"
] | permissive | package io.cem.modules.cem.service.impl;
import io.cem.common.utils.PropertiesUtils;
import io.cem.common.utils.SpringContextUtils;
import io.cem.modules.cem.dao.RecordHourWebPageDao;
import io.cem.modules.cem.dao.RecordWebPageDao;
import io.cem.modules.cem.entity.*;
import io.cem.modules.cem.service.RecordFailService... | true |
1385ff2f4cf99a4cf84694357abba8c6dff22705 | Java | jonbeibeibei/50.003-Problem-Sets | /Pset2/homework/q2/Main.java | UTF-8 | 1,733 | 3.421875 | 3 | [] | no_license | class Main{
private static Board board = Board.getInstance();
private static IO io = IO.getInstance();
private static Player playerX = new Player("X");
private static Player playerO = new Player("O");
public static void main(String[] args){
boolean playing = true;
boolean turn = true;
String ... | true |
938a6b38b355ee04df33ef757f9d7b9ffcd5a876 | Java | 1995hzczjut/leetcode | /src/main/java/com/jianzhiOffer/p57.java | UTF-8 | 1,493 | 3.71875 | 4 | [] | no_license | package com.jianzhiOffer;
/**
* @author Zhancong Huang
* @date 22:14 2019/4/28
*/
public class p57 {
static class TreeLinkNode {
int val;
TreeLinkNode left = null;
TreeLinkNode right = null;
TreeLinkNode next = null;
TreeLinkNode(int val) {
this.val = val;
... | true |
eba377345210e63b8c4b25ee8d309aae4982936f | Java | ChandanSharma23/LibrarySystemManagement | /src/main/java/com/libs/sys/controller/HomeController.java | UTF-8 | 4,141 | 2.28125 | 2 | [] | no_license | package com.libs.sys.controller;
import java.io.IOException;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springfra... | true |
748f7fc13a1653b6faa685a85672625a3474fe1c | Java | karlerikb-tlu-studyprojects/t09tervikveeb | /tervikveeb/src/test/java/karlerik/TervikveebTest.java | UTF-8 | 920 | 2.515625 | 3 | [] | no_license | package karlerik;
import org.junit.*;
import static org.junit.Assert.*;
public class TervikveebTest {
@Test
public void shoppingcartTest1() {
Elektrikitarr e = new Elektrikitarr("3");
assertEquals(1350, e.calculatePrice(), 0.01);
}
public void shoppingcartTest2() {
Elektrikitarr e = new El... | true |
d63280fe1149da8b8fcd5816ac7e2c0a84d3af52 | Java | saavivien/DRESEN | /src/main/java/com/dresen/dresen/DaoImplement/PromotionDaoImpl.java | UTF-8 | 2,130 | 2.09375 | 2 | [] | no_license | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package com.dresen.dresen.DaoImplement;
import com.douwe.generic.dao.DataAccessException;
import com.douwe.generic.dao.impl.Ge... | true |
f8addfdee713ab8c587b538d19b8fd551d54f692 | Java | henrikkyhl/ThreadSafeBankAccount | /src/threadsafebankaccount/SimpleAccount.java | UTF-8 | 1,130 | 2.734375 | 3 | [] | no_license | package threadsafebankaccount;
import java.util.AbstractMap;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.UUID;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.CopyOnWriteArrayList;
import ja... | true |
999a0e14065eafd858598f3213b8491e5608d8dd | Java | hellocountryman/bageshuo_v1 | /src/com/feytuo/bageshuo/activity/HomeDetailsIntroduce.java | UTF-8 | 1,887 | 2.1875 | 2 | [] | no_license | package com.feytuo.bageshuo.activity;
import android.app.Activity;
import android.app.Dialog;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.TextView;
import com.feytuo.bageshuo.R;
import com.feytuo.bageshuo.... | true |
d2bce4d89e60f046098f3a547ea06c5b666ff772 | Java | nus-mtp/x-aurora | /src/xaurora/util/UserProfile.java | UTF-8 | 1,554 | 2.78125 | 3 | [] | no_license | package xaurora.util;
public class UserProfile {
private String accessToken;
private String userName;
private String emailAddress;
private String storage;
private String path;
private String userID;
public UserProfile(){
accessToken = "";
userName = "";
emailAddress = "";
storage = "";
path = "... | true |
f233c4494769afe1999a4f616b86a9e977b7b69e | Java | Ph1L82/OCApp | /app/src/main/java/cl/philipsoft/ocapp/models/AccountBudget.java | UTF-8 | 1,164 | 2.1875 | 2 | [] | no_license | package cl.philipsoft.ocapp.models;
import com.orm.SugarRecord;
import java.sql.Timestamp;
public class AccountBudget extends SugarRecord {
private int account_id;
private double balance, assigned;
private Timestamp updated_at;
public int getAccount_id() {
return account_id;
}
publi... | true |
0ff92fa995ca93a2f4acf7bd1721477fe3aa076e | Java | ouissa/Java_Project | /src/CourseraGui/SerachCourse.java | UTF-8 | 6,935 | 2.296875 | 2 | [] | no_license | /*m
* 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 CourseraGui;
import static CourseraGui.CourseraFrame.Courses;
import javax.swing.JOptionPane;
import javax.swing.table.Defaul... | true |
fa5a2a186b35241f1e98224626772f13d5681701 | Java | lllverb/JavaStudy | /src/practice2/StrongBox.java | UTF-8 | 569 | 3.046875 | 3 | [] | no_license | package practice2;
public class StrongBox<E> {
private E data;
private KeyType keyType;
private int count;
public void put(E data) {this.data = data;}
StrongBox(KeyType keyType){
this.keyType = keyType;
}
public E get() {
this.count ++;
switch (this.keyType) {
case PADLOCK:
if (count < 1024) {return ... | true |
2db5c218c3833833de672e8f19f65faab86b1204 | Java | luiz158/purchase-order | /src/main/java/br/com/cafglass/purchaseorder/models/PurchaseOrder.java | UTF-8 | 5,120 | 2.15625 | 2 | [] | no_license | package br.com.cafglass.purchaseorder.models;
import java.util.Date;
import java.util.List;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persi... | true |
ef8c07989709a8043f5000ff4bb50b7a2bfd0739 | Java | thuonght2012/MyDiaryAndroid | /MyDiary/app/src/main/java/com/example/mydiary/MainActivity.java | UTF-8 | 3,791 | 2.328125 | 2 | [] | no_license | package com.example.mydiary;
import androidx.appcompat.app.AppCompatActivity;
import androidx.recyclerview.widget.DividerItemDecoration;
import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;
import androidx.room.Room;
import android.content.Intent;
import android.o... | true |
3899d429ba38b49f8f0635143f5c63ef232f3644 | Java | zytangshan/CommunicationDemo | /base/communication/src/main/java/ym/communication/injection/components/BaseComponent.java | UTF-8 | 838 | 2.234375 | 2 | [] | no_license | package ym.communication.injection.components;
import javax.inject.Singleton;
import dagger.Component;
import ym.communication.injection.modules.DataManagerModule;
import ym.communication.injection.modules.ServiceRouterModule;
import ym.communication.model.BaseDataManager;
import ym.communication.servicerouter.interf... | true |
cf938f29d9f73b628bce98919e7565af23f6d752 | Java | deepsoft-haolifa/haolifa | /src/main/java/com/deepsoft/haolifa/model/dto/finance/payapp/PayApplyDetailAddDTO.java | UTF-8 | 851 | 1.804688 | 2 | [] | no_license | package com.deepsoft.haolifa.model.dto.finance.payapp;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.math.BigDecimal;
/***
* 付款申请-详情-添加
*/
@Data
@EqualsAndHashCode(callSuper = false)
public class PayApplyDetailAddDTO {
@ApiModelProperty(value ... | true |
c303b797442dd230c02440474b9701890c05d0f1 | Java | lovepetveteriner/lpv-adb-be | /src/main/java/com/lpv/adb/be/infrastucture/email/JavaEmailService.java | UTF-8 | 1,364 | 2.34375 | 2 | [] | no_license | package com.lpv.adb.be.infrastucture.email;
import lombok.AllArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.boot.autoconfigure.mail.MailProperties;
import org.springframework.mail.SimpleMailMessage;
import org... | true |
3bfe5525fbbf5b91835abfa43685204e00b849c5 | Java | moutainhigh/meidianyishop | /meidianyi-common/src/main/java/com/meidianyi/shop/service/pojo/shop/member/score/ScoreSignParam.java | UTF-8 | 638 | 1.84375 | 2 | [] | no_license | package com.meidianyi.shop.service.pojo.shop.member.score;
import java.sql.Timestamp;
import java.util.List;
import lombok.Data;
/**
* 用户签到积分查询列表参数
* @author 黄壮壮
*
*/
@Data
public class ScoreSignParam {
/**
* 当前页
*
*/
private Integer currentPage;
/**
* 每页显示条目数量
*/
private Integer pageRows;
... | true |
83f34362a312390067066107d872162939a1b2cc | Java | stackroute/ibm-wave7-web-knowledge-generator | /web-search-service/src/main/java/com/stackroute/service/WebSearchService.java | UTF-8 | 353 | 1.75 | 2 | [
"Apache-2.0"
] | permissive | package com.stackroute.service;
import java.net.URISyntaxException;
//Interface
public interface WebSearchService {
//method to search and get the links from the api
String getSearchResults(String searchString) throws URISyntaxException;
//method to save the links
// Result saveResults(Result resultL... | true |
cd7f2888a26beb83e444aaa13009c59139dcff71 | Java | zengyijava/shaoguang | /emp_7.3/emp/wxgl/com/montnets/emp/wxgl/svt/weix_acctManagerSvt.java | UTF-8 | 23,587 | 1.945313 | 2 | [] | no_license | package com.montnets.emp.wxgl.svt;
import com.montnets.emp.common.biz.BaseBiz;
import com.montnets.emp.common.biz.CommonBiz;
import com.montnets.emp.common.constant.IErrorCode;
import com.montnets.emp.common.context.EmpExecutionContext;
import com.montnets.emp.entity.sysuser.LfSysuser;
import com.montnets.emp.entity.w... | true |
9af6037e02a360c1d4b80bd70dea927e3bb24d15 | Java | PepejHa4ker/Redstone-Repository | /src/main/java/thundr/redstonerepository/gui/element/ElementHungerPoints.java | UTF-8 | 2,150 | 2.375 | 2 | [
"MIT"
] | permissive | package thundr.redstonerepository.gui.element;
import cofh.core.gui.GuiContainerCore;
import cofh.core.gui.element.ElementBase;
import cofh.core.util.helpers.MathHelper;
import cofh.core.util.helpers.RenderHelper;
import net.minecraft.client.resources.I18n;
import net.minecraft.item.ItemStack;
import net.minecraft.uti... | true |
f1d2bf871dfa10fb48588233ad1b80640859a384 | Java | scijava/incubator | /imagej/imagej-ops2/src/main/java/net/imagej/ops2/threshold/localSauvola/ComputeLocalSauvolaThreshold.java | UTF-8 | 4,071 | 2.234375 | 2 | [
"LicenseRef-scancode-unknown-license-reference",
"BSD-2-Clause"
] | permissive | /*
* #%L
* ImageJ2 software for multidimensional image processing and analysis.
* %%
* Copyright (C) 2014 - 2022 ImageJ2 developers.
* %%
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of... | true |
5a2e7ccb6dc0197fc311ba28cc45caf79834e96f | Java | ChandraCXC/iris | /sed-builder/src/main/java/cfa/vo/sed/builder/StarTableSegmentParameter.java | UTF-8 | 2,140 | 2.109375 | 2 | [] | no_license | /**
* Copyright (C) 2012 Smithsonian Astrophysical Observatory
*
* 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 requi... | true |
830357415266700b131ae06ae0a3f35393e10fda | Java | TuTanK5/exercise | /ExerciseBusiness/src/test/java/com/exercise/business/BusinessPresentationTest.java | UTF-8 | 1,653 | 2.53125 | 3 | [] | no_license | package com.exercise.business;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit.jupiter.SpringJUnitConfig;
import java.util.ArrayList;
import java.util.A... | true |
2ec9d05edcf629cbcc4697daf7202a33dabe45a0 | Java | TimSandersFHICT/Connect-Four-Application | /src/main/java/ConnectFourLogic/Grid.java | UTF-8 | 5,465 | 3.53125 | 4 | [] | no_license | package ConnectFourLogic;
import ConnectFourLogic.Enums.CellState;
public class Grid {
private Cell[][] cells;
public Grid(int width, int height) {
this.cells = new Cell[width][height];
for (int i = 0; i < width; i++) {
for (int j = 0; j < height; j++) {
cells[i][... | true |
b24e39a45e943ef2fbcc79ff4b8b8003676a45fb | Java | nusip/RealEstate | /parser/src/kz/maks/realestate/parser/services/impl/KvartiraSaleServiceImpl.java | UTF-8 | 9,116 | 1.828125 | 2 | [] | no_license | package kz.maks.realestate.parser.services.impl;
import kz.maks.core.back.BackUtils;
import kz.maks.core.back.annotations.Inject;
import kz.maks.core.back.annotations.Service;
import kz.maks.core.back.services.impl.AbstractServiceImpl;
import kz.maks.core.shared.models.ListResponse;
import kz.maks.realestate.parser.as... | true |
d06767b0475391d37dd1444da7e9d0fabee01f5c | Java | devrath123/C2NRetailer | /app/src/main/java/com/example/c2n/retailerhome/di/RetailerHomeComponent.java | UTF-8 | 626 | 1.726563 | 2 | [] | no_license | package com.example.c2n.retailerhome.di;
import com.example.c2n.add_product.presenter.AddProductPriceFragment;
import com.example.c2n.retailerhome.presenter.RetailerHomeFragment;
import com.example.c2n.view_product.presenter.AppyOfferCardBottomFragment;
import dagger.Component;
/**
* Created by shivani.singh on 21-... | true |
8482fa2a6df1ee268b0a66294ba822bba1dc30c9 | Java | zwyhp/BBC_SSH | /src/main/java/com/ssh/bbc/controller/GlobalExceptionHandler.java | UTF-8 | 2,812 | 2.359375 | 2 | [] | no_license | package com.ssh.bbc.controller;
import com.ssh.bbc.util.BussinessException;
import com.ssh.bbc.util.LoginException;
import com.ssh.bbc.util.ResponseUtil;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.validation.BindException;
import org.springframework.validation.BindingResult;
im... | true |
bf08c78956a48583cfc41b1f38a88c8c02ec2192 | Java | fabioformosa/producer-consumer | /producer-consumer-model/web-manager/src/main/java/it/fabioformosa/lab/prodcons/service/TaskRegistry.java | UTF-8 | 720 | 2.40625 | 2 | [] | no_license | package it.fabioformosa.lab.prodcons.service;
import it.fabioformosa.lab.prodcons.model.SimpleManager;
import it.fabioformosa.lab.prodcons.spi.workers.Manager;
import java.util.HashMap;
import java.util.Map;
public class TaskRegistry {
private static Map<Integer, Manager> registry = new HashMap<Integer, ... | true |
240e5eb1ca3d7991334cd514f492463b5cb30652 | Java | MarcinBabacz/Exercise-PWN-course | /JAVA/JavaCz2/Firma/src/emp/Company.java | WINDOWS-1250 | 1,943 | 3.578125 | 4 | [] | no_license | package emp;
public class Company {
public static void main(String[] args){
/*Employee pracownik1 = new Employee();
Employee pracownik2 = new Employee();
Employee pracownik3 = new Employee();
pracownik1.imie = "Ernest";
pracownik1.nazwisko = "Krystian";
pracownik1.rokUrodzenia = 1986;
pracownik1.stazP... | true |
39d4d8847c0063b9159b830d426c09a23879f8fd | Java | wurzy/TF | /code/src/main/java/model/Extract.java | UTF-8 | 822 | 3.03125 | 3 | [] | no_license | package model;
import java.io.Serializable;
import java.time.LocalDateTime;
public class Extract implements Serializable {
private String description;
private LocalDateTime date;
private float value;
private float balance;
public Extract(String desc, LocalDateTime d, float v, float b){
th... | true |
bf6275caddaf00968e04115d0888859364ca7ad8 | Java | soberich/OldSchoolGitHub | /app/src/main/java/soberich/oldstylegithub/Processor.java | UTF-8 | 2,055 | 2.296875 | 2 | [] | no_license | package soberich.oldstylegithub;
import android.content.ContentResolver;
import android.content.ContentValues;
import android.content.Context;
import android.util.Log;
import java.util.List;
import javax.inject.Inject;
import static soberich.oldstylegithub.GitHubUsersContentProvider.*;
/**
*
* Created by soberic... | true |
89b6c2b65f3cf79883d98b0c29e0d5383342ae0e | Java | TrampcR/DeveloperRepository | /app/src/main/java/com/trampcr/developerrepository/designpatterns/productconsume/blocking/BlockingQueueModel.java | UTF-8 | 1,988 | 2.9375 | 3 | [
"Apache-2.0"
] | permissive | package com.trampcr.developerrepository.designpatterns.productconsume.blocking;
import android.util.Log;
import com.trampcr.developerrepository.designpatterns.productconsume.base.AbstractConsumer;
import com.trampcr.developerrepository.designpatterns.productconsume.base.AbstractProducer;
import com.trampcr.developerr... | true |
2e865e4eec78f2e11b29cbc289fab20b5167d467 | Java | tsuzcx/qq_apk | /com.tencent.mm/classes.jar/com/facebook/yoga/android/YogaViewLayoutFactory.java | UTF-8 | 1,546 | 1.742188 | 2 | [] | no_license | package com.facebook.yoga.android;
import android.content.Context;
import android.util.AttributeSet;
import android.view.LayoutInflater.Factory;
import android.view.View;
import com.tencent.matrix.trace.core.AppMethodBeat;
public class YogaViewLayoutFactory
implements LayoutInflater.Factory
{
private s... | true |
d2511f57d548b6328e226681c3faafa122b4159a | Java | bagdi/TestProject | /src/main/java/com/bogdan/testProject/io/impl/fileFormats/DocxImpl.java | UTF-8 | 2,126 | 2.609375 | 3 | [] | no_license | package com.bogdan.testProject.io.impl.fileFormats;
import com.bogdan.testProject.io.ReadDocument;
import org.apache.poi.xwpf.converter.xhtml.XHTMLConverter;
import org.apache.poi.xwpf.converter.xhtml.XHTMLOptions;
import org.apache.poi.xwpf.usermodel.XWPFDocument;
import org.apache.poi.xwpf.usermodel.XWPFParagraph;
i... | true |
3fafa8bb717ec2ae197cc453a5febe3c44f65159 | Java | iamslash/learntocode | /fundamentals/dynamicprog/knapsack01/MainApp.java | UTF-8 | 2,012 | 3.59375 | 4 | [] | no_license | // Copyright (C) 2023 by iamslash
import java.util.*;
// recursive dynamic programming
// O(CN) O(C)
class RecursiveSolution {
private int dfs(int[] values, int[] weights, int[] C, int avail) {
int n = values.length;
// base
if (avail <= 0) {
return 0;
}
... | true |
36684c12b93005aa5482ba08da477ff30056b707 | Java | hxgJG/WSNMonitor-master | /app/src/main/java/com/app/hexuegang/wsnmonitor/bean/ParameterSoil.java | UTF-8 | 1,601 | 2.03125 | 2 | [
"Apache-2.0"
] | permissive | package com.app.hexuegang.wsnmonitor.bean;
import java.io.Serializable;
import cn.bmob.v3.BmobObject;
/**
* Created by HEXG on 2017/4/9.
*/
public class ParameterSoil extends BmobObject implements Serializable{
private String soil_name;
private String element_name;
private float soil_value_bg;
pri... | true |
671aee92035ea1c368c5d70e425fe088f48fb999 | Java | MadhanChiluka/HackerRankProblemSolvingAlgos | /src/AngryProfessor.java | UTF-8 | 1,102 | 3.1875 | 3 | [] | no_license | import java.io.*;
import java.math.*;
import java.security.*;
import java.text.*;
import java.util.*;
import java.util.concurrent.*;
import java.util.regex.*;
public class AngryProfessor {
// Complete the angryProfessor function below.
static String angryProfessor(int k, int[] a) {
int attdOnTime = 0;
... | true |
5303a3522d0e8506cd0f3449ce2bec8d37e28763 | Java | Shivakumar-coder/THIS-Training-Bootcamp | /statdemo1/src/com/torryharris/statpack/Person.java | UTF-8 | 549 | 2.84375 | 3 | [] | no_license | package com.torryharris.statpack;
public class Person {
private static int count;
private int pId;
private String pName;
static {
count=0;
}
public Person(int pId, String pName) {
this.pId=pId;
this.pName=pName;
++count;
}
@Override
... | true |
c4fcca03e469aba68b7ce71086dfe8859a66f4a0 | Java | sdubigdata/Shiguang_Server | /src/main/java/team/ideart/shiguang/server/util/SecurityUtil.java | UTF-8 | 530 | 2.0625 | 2 | [] | no_license | package team.ideart.shiguang.server.util;
import team.ideart.shiguang.server.bean.UserContainer;
import team.ideart.shiguang.server.persist.entity.User;
import javax.servlet.ServletContext;
/**
* Description
*
* @author xccui
* Created on 11/21/15.
*/
public class SecurityUtil {
public static User g... | true |
420ee80307d9444e92c28ef7411d307aa5d97ebb | Java | dstiekem/Swingy | /src/main/java/dstiekem/za/model/EnemyPlasticFlower.java | UTF-8 | 181 | 2 | 2 | [] | no_license | package dstiekem.za.model;
import dstiekem.za.controller.Level;
public class EnemyPlasticFlower extends Enemy{
public EnemyPlasticFlower(Level l) {
super(l);
}
}
| true |
e4b8a1e6925848135cd7204bfce3fae7d07b7e2a | Java | kangsukyung/todaysroom_SPRING_PROJECT | /todaysroom/src/main/java/kosta/todayroom/domain/ProductAttachVO.java | UTF-8 | 239 | 1.648438 | 2 | [] | no_license | package kosta.todayroom.domain;
import lombok.Data;
@Data
public class ProductAttachVO {
private String uuid;
private String uploadPath;
private String fileName;
private boolean image;
private int store_seq;
}
| true |
b7c6be9f52f8847d3f2ca85a4a0e26be71b2fd7e | Java | Aedanovich/CCF | /CCF Android/CCFSGConnect/cCFSGConnect/src/main/java/com/ccfsg/connect/adapter/MenuAdapter.java | UTF-8 | 3,025 | 2.3125 | 2 | [] | no_license | package com.ccfsg.connect.adapter;
import java.util.ArrayList;
import android.content.Context;
import android.graphics.Color;
import android.graphics.ColorFilter;
import android.graphics.LightingColorFilter;
import android.graphics.PorterDuff;
import android.support.v4.app.FragmentActivity;
import android.v... | true |
c8f34c39845e12b8c301e89b5d910951ea557205 | Java | GoogleCloudPlatform/java-docs-samples | /automl/src/main/java/beta/automl/SetEndpoint.java | UTF-8 | 2,124 | 2.15625 | 2 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | /*
* Copyright 2019 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in wr... | true |
d2bc379e2ebd8177d4c7463110df90afe33863b5 | Java | Qijiedexiaomidi-zyh/blog_mybatisplus | /src/main/java/com/zyh/blog/entity/Blog.java | UTF-8 | 1,563 | 1.796875 | 2 | [] | no_license | package com.zyh.blog.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import java.io.Serializable;
import java.util.ArrayList;
... | true |