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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
1c24844919c5a28abbfc86eeeed1191463f0e983 | Java | touwolf/kasije | /kasije-core/src/main/java/com/kasije/core/auth/AuthUser.java | UTF-8 | 3,105 | 2.203125 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2016 Kasije Framework.
*
* 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 agr... | true |
66fdd997ee45fd8addb6278c902638db5a0b0cbf | Java | abelakponine/Text-Based-Adventure-Game-Java | /Position.java | UTF-8 | 1,042 | 3.765625 | 4 | [] | no_license | /**
* This is a text based Adventure Game
* This class represents the position of a player character
* @author Abel Akponine
* @version 2019.12.16
*/
public class Position
{
// instance variables - replace the example below with your own
private int coordX;
private int coordY;
public Position(){
... | true |
ac030067cb3e2d09ec59a6537cd0f9b84872cc88 | Java | eechava6/VARIAMOS | /com.variamos.solver/src/main/java/com/variamos/solver/core/compiler/Hlcl2GnuPrologExact.java | IBM852 | 3,668 | 2.46875 | 2 | [] | no_license | package com.variamos.solver.core.compiler;
import com.variamos.hlcl.core.HlclProgram;
import com.variamos.hlcl.model.expressions.BooleanOperation;
import com.variamos.hlcl.model.expressions.SymbolicExpression;
import com.variamos.solver.model.compiler.GNUPrologSymbolsConstant;
public class Hlcl2GnuPrologExact ... | true |
0fce588aa90bc4890a1d6e47232a174361327dcc | Java | timucini/VocabQuizSpring | /vocabularyManagement.export/src/main/java/vocab/domain/Book.java | UTF-8 | 2,457 | 2.796875 | 3 | [] | no_license | package vocab.domain;
import javax.persistence.*;
import java.util.ArrayList;
import java.util.List;
import java.util.Objects;
@Entity
@Table(name="book")
public class Book {
@Id
@GeneratedValue(strategy = GenerationType.AUTO)
private Long id;
@Version
private Long version;
private String na... | true |
626ac888d67908c5d89060aa765251379c6378e6 | Java | zhengjinguang/Doraemon | /framework/rpc/src/com/lemi/mario/rpc/http/client/DefaultHttpClient.java | UTF-8 | 460 | 2.265625 | 2 | [] | no_license | package com.lemi.mario.rpc.http.client;
import com.lemi.mario.base.http.HttpClientWrapper;
/**
* Default http client.
*
* @author liuxu5@letv.com (Liu Xu)
*/
public class DefaultHttpClient extends HttpClientWrapper {
private static final int SOCKET_TIMEOUT_MS = 60 * 1000;
private static final int CONNECTIO... | true |
26c074925adc586afe2f2bbcd3c54fa5cbe8de6e | Java | Bwasier/Community | /comm'unitylibrary/src/main/java/fr/solucom/communitylibrary/News.java | UTF-8 | 620 | 2.640625 | 3 | [] | no_license | package fr.solucom.communitylibrary;
/**
* Created by wasier on 22/06/2015.
*/
/**
* This java class represents an news hosted in the server. Each floor possesses two news.
*
* @see Home
*/
public class News {
//The title of the news
private String title;
//The news' description
private String ... | true |
07d04b3e64ab1b7fe91d322624d7ae5b8c59caa4 | Java | DanAnastasyev/mipt-java-2016 | /seminars/src/ru/mipt/java2016/seminars/seminar1/FileStreamsOldErrorHandlingDemo.java | UTF-8 | 1,060 | 3.59375 | 4 | [] | no_license | package ru.mipt.java2016.seminars.seminar1;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;
/**
* Пример работы с FileInputStream/FileOutputStream без try-with-resources
*/
public class FileStreamsOldErrorHandlingDemo {
public static void main(String[] args) {
// ... | true |
e8104300677803869928347129b78e34cd3ec509 | Java | DevanshiShah14/Algorithms | /Algorithm/src/array/BinaryGap.java | UTF-8 | 957 | 3.015625 | 3 | [] | no_license | package array;
import java.util.Arrays;
import java.util.Collection;
import java.util.Collections;
import javax.swing.plaf.basic.BasicInternalFrameTitlePane.MaximizeAction;
public class BinaryGap {
public static void main(String args[]) {
System.out.println(binaryGap(22));
}
public static int b... | true |
e51039b1cce03fa999d088372a33a51d36933adb | Java | lucasmedeiros/Prova-Concorrente-2020.3 | /src/questao2/Aluno.java | UTF-8 | 387 | 2.8125 | 3 | [] | no_license | package questao2;
public class Aluno implements Runnable {
private final int id;
private final String escola;
private final Buffer buffer;
public Aluno(int id, String escola, Buffer buffer) {
this.id = id;
this.escola = escola;
this.buffer = buffer;
}
@Override
pub... | true |
2622c8c13fe28006045a42393163852614f9c3cf | Java | aumeunier/ic06-amscjl | /ic06project/src/beta/MainMenuGameStateNew.java | UTF-8 | 5,936 | 2.453125 | 2 | [] | no_license | package beta;
import mdes.slick.sui.Display;
import mdes.slick.sui.Label;
import org.newdawn.slick.Color;
import org.newdawn.slick.GameContainer;
import org.newdawn.slick.Graphics;
import org.newdawn.slick.Image;
import org.newdawn.slick.MouseListener;
import org.newdawn.slick.SlickException;
import org.newdawn.slick... | true |
b193cc63398dad584ade63dc376d50df9df73cd8 | Java | nstickler28/nes28-roadrage | /src/model/Taxi.java | UTF-8 | 2,917 | 3.625 | 4 | [] | no_license | package model;
import java.util.Map;
/**
* Class for the taxi.
*
* @author Nathan Stickler
* @version 10/18/19
*
*/
public class Taxi extends AbstractVehicle {
/** Death time for the taxi. */
private static final int DEATH_TIME = 15;
/** Number of clock ticks before Taxi can drive through... | true |
fd26ead8668205eb32b8ba164681e3c5bc8a09d7 | Java | rebaze/autocode | /src/main/java/com/rebaze/bespoke/rule/SequentialMutationRule.java | UTF-8 | 605 | 2.5 | 2 | [
"Apache-2.0"
] | permissive | package com.rebaze.bespoke.rule;
import com.rebaze.bespoke.MutableItem;
import com.rebaze.bespoke.MutationRule;
import java.util.List;
/**
* Created by tonit on 18/10/16.
*/
public class SequentialMutationRule implements MutationRule
{
private final List<MutationRule> list;
public SequentialMutationRule(... | true |
20982d9354a4ecfa90e6e92eee09963798abcd00 | Java | arockwell/vivoweb_ufl_mods | /vitro-core/webapp/src/edu/cornell/mannlib/vitro/webapp/ontology/update/SimpleChangeRecord.java | UTF-8 | 3,630 | 2.1875 | 2 | [] | no_license | /*
Copyright (c) 2011, Cornell University
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice,
this list of conditions and t... | true |
d0b9ae6eb5be525593d6eafada8a059cbed9891f | Java | Gokuns/restaurant | /RestaurantApi/src/main/java/com/yp/service/SellOrderService.java | UTF-8 | 1,480 | 2.140625 | 2 | [] | no_license | package com.yp.service;
import com.yp.dto.SellOrderDto;
import com.yp.entity.SellOrder;
import com.yp.exception.BusinessRuleException;
import com.yp.mapper.SellOrderMapper;
import com.yp.repos.SellOrderRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.Messag... | true |
eb615fade4b0aa7438d82ef7c7b67e6507a21ae2 | Java | jack445566/test | /src/main/java/com/itheima/service/impl/UserServiceImpl.java | UTF-8 | 5,099 | 2.984375 | 3 | [] | no_license | package com.itheima.service.impl;
import com.aliyuncs.CommonResponse;
import com.itheima.dao.UserDao;
import com.itheima.domain.ResultInfo;
import com.itheima.domain.User;
import com.itheima.service.UserService;
import com.itheima.util.DaoFactory;
import com.itheima.util.Md5Utils;
import com.itheima.util.SmsUtils;
pu... | true |
e2dd716a30c0a06a9b1b4e70f169ca08985dd85b | Java | cheongalc/tuzhan | /app/src/main/java/com/tuzhan/GamePagerAdapter.java | UTF-8 | 1,100 | 2.390625 | 2 | [] | no_license | package com.tuzhan;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentStatePagerAdapter;
import android.util.Log;
import java.util.List;
/**
* Created by Al Cheong on 13/11/2017.
* This class is is to manage the fragments for the ViewPager ... | true |
ac71e9f5ab81af0cddd4c110b1c716e2478a8571 | Java | stella1996/oraclecertificationcourse | /JavaPrograms/src/com/javacertification/firstchapter/ConcatStrings.java | UTF-8 | 375 | 3.203125 | 3 | [] | no_license | package com.javacertification.firstchapter;
public class ConcatStrings {
public String concat() {
String firstName = "STELLA";
String lastName = "STEFFY";
String fullName = firstName + lastName;
return fullName;
}
public static void main(String[] args) {
ConcatStrings c = new ConcatStrin... | true |
48d664fba895c50987f8158697629eff52426406 | Java | hmcts/cmc-claim-store | /src/test/java/uk/gov/hmcts/cmc/claimstore/documents/content/ResponseAcceptationContentProviderTest.java | UTF-8 | 5,495 | 2.046875 | 2 | [
"MIT"
] | permissive | package uk.gov.hmcts.cmc.claimstore.documents.content;
import org.junit.Before;
import org.junit.Test;
import uk.gov.hmcts.cmc.domain.models.Claim;
import uk.gov.hmcts.cmc.domain.models.PaymentOption;
import uk.gov.hmcts.cmc.domain.models.claimantresponse.CourtDetermination;
import uk.gov.hmcts.cmc.domain.models.claim... | true |
26e73662613ccc109725b3f6dba32931d816d1c0 | Java | lolo101/fatChains | /src/main/java/fr/lbroquet/fat/FileDirectoryEntry.java | UTF-8 | 1,453 | 2.828125 | 3 | [] | no_license | package fr.lbroquet.fat;
import java.nio.ByteBuffer;
/**
* 32-bits data structure holding file attributes.
* @author loic
*/
public class FileDirectoryEntry {
private final byte secondaryCount;
public FileDirectoryEntry(ByteBuffer buffer) {
byte tag = buffer.get();
if (tag != 0xffffff85) ... | true |
ce0b2baf3ee598f9652493a5bb40fc3e469ce8cb | Java | VicenzoMartinelli/trabalhofinal_poo2 | /src/main/java/br/edu/utfpr/pb/vicenzo_trabfinal/controller/UsuarioController.java | UTF-8 | 1,262 | 2.4375 | 2 | [] | no_license | package br.edu.utfpr.pb.vicenzo_trabfinal.controller;
import br.edu.utfpr.pb.vicenzo_trabfinal.dao.GenericDao;
import br.edu.utfpr.pb.vicenzo_trabfinal.dao.UsuarioDAO;
import br.edu.utfpr.pb.vicenzo_trabfinal.model.Usuario;
import br.edu.utfpr.pb.vicenzo_trabfinal.util.SecurityUtil;
import java.util.logging.Level;
imp... | true |
38f419652ba7c8e497cddfe205c1267fbb3c9da9 | Java | jdmalter/BarkBot | /src/main/java/barkbot/rule/Rule.java | UTF-8 | 118 | 1.890625 | 2 | [] | no_license | package barkbot.rule;
import barkbot.model.Message;
public interface Rule {
boolean accepts(Message message);
}
| true |
1301751a9ff1939814d4dcb0f11028a6167576e2 | Java | jlarroyop/bufete-web-erp | /bufete-backend/bufete-backend/src/main/java/com/bufete/backend/model/Configuration.java | UTF-8 | 2,153 | 2.15625 | 2 | [] | no_license | package com.bufete.backend.model;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
... | true |
bcaf418999ccf557a8b40d05380473a2817eed20 | Java | aheadlcx/analyzeApk | /zuiyou/sources/com/meizu/cloud/pushsdk/platform/pushstrategy/UnRegisterStatusStrategy.java | UTF-8 | 4,242 | 1.984375 | 2 | [] | no_license | package com.meizu.cloud.pushsdk.platform.pushstrategy;
import android.content.Context;
import android.content.Intent;
import android.text.TextUtils;
import com.meizu.cloud.a.a;
import com.meizu.cloud.pushsdk.networking.common.ANResponse;
import com.meizu.cloud.pushsdk.networking.error.ANError;
import com.meizu.cloud.p... | true |
319ffc3a50d9a8b219a4da20ac26bf7e36b5a9e6 | Java | Isaac-SOL/ModTweaker | /src/main/java/com/blamejared/compat/tconstruct/TConstructHelper.java | UTF-8 | 5,682 | 2.046875 | 2 | [
"MIT"
] | permissive | package com.blamejared.compat.tconstruct;
import gnu.trove.map.hash.THashMap;
import com.blamejared.mtlib.helpers.ReflectionHelper;
import mezz.jei.api.IGuiHelper;
import mezz.jei.api.recipe.IRecipeCategory;
import minetweaker.MineTweakerAPI;
import minetweaker.api.compat.DummyJEIRecipeRegistry;
import minetweaker.api... | true |
2316bfa20531e112ea8b15b296039e5bdabafafe | Java | haditabatabaei/webproject | /backend/collecting/dsfj/Java/edited/nio.SocketSelector.java | UTF-8 | 5,837 | 2.328125 | 2 | [] | no_license |
package org.elasticsearch.nio;
import java.io.IOException;
import java.nio.channels.ClosedChannelException;
import java.nio.channels.ClosedSelectorException;
import java.nio.channels.SelectionKey;
import java.nio.channels.Selector;
import java.util.concurrent.ConcurrentLinkedQueue;
import java.util.function.BiConsum... | true |
c503445f937988e04cd8b5a0e7542aed3e841e4e | Java | mfengafscme/mDuesPerCap_new | /cSRC_PerCap/MinDues/Software/src/org/afscme/enterprise/reporting/specialized/web/PreliminaryRosterAffiliateForm.java | UTF-8 | 2,523 | 2.4375 | 2 | [] | no_license | package org.afscme.enterprise.reporting.specialized.web;
import java.util.*;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionMapping;
import javax.servlet.http.HttpServletRequest;
import org.afscme.enterprise.common.web.SearchForm;
import org.afscme.enterprise.reporting.specialized.Pr... | true |
df182233c7f84b6caae341e0f3058b5eab2adc6a | Java | 0jinxing/wechat-apk-source | /com/tencent/mm/plugin/wallet/pwd/ui/WalletForgotPwdVerifyIdUI$7.java | UTF-8 | 1,085 | 1.625 | 2 | [] | no_license | package com.tencent.mm.plugin.wallet.pwd.ui;
import android.view.View;
import android.view.View.OnFocusChangeListener;
import com.tencent.matrix.trace.core.AppMethodBeat;
import com.tencent.mm.sdk.platformtools.ab;
final class WalletForgotPwdVerifyIdUI$7
implements View.OnFocusChangeListener
{
WalletFor... | true |
ab83bfda750c7449ae010b5b4f723ea45a530863 | Java | ZTong1201/LeetCode | /Java/Medium/153.Find_Minimum_in_Rotated_Sorted_Array/findMinimum.java | UTF-8 | 2,679 | 4.09375 | 4 | [] | no_license | import org.junit.Test;
import static org.junit.Assert.*;
public class findMinimum {
/**
* Suppose an array sorted in ascending order is rotated at some pivot unknown to you beforehand.
* (i.e., [0,1,2,4,5,6,7] might become [4,5,6,7,0,1,2]).
*
* Find the minimum element.
* You may assume... | true |
4807ec36374885281e45ef571bd3495a160529c1 | Java | DaliaAsh/MVChw | /src/daliaTest/secondTest.java | UTF-8 | 283 | 2.15625 | 2 | [] | no_license | package daliaTest;
import static org.junit.Assert.*;
import org.junit.Test;
import source.Model;
public class secondTest {
@Test
public void test() {
Model m = new Model();
m.SubTwoNumbers(5.0,2.0);
assertTrue(3.0 == m.getCalcValue());
}
}
| true |
f5735d889b6214f49dcfbb936fcb1b57c269e683 | Java | tt-52101/api | /src/main/java/com/fanmila/handlers/oms/OmsLVMResponseHandler.java | UTF-8 | 6,553 | 1.882813 | 2 | [] | no_license | package com.fanmila.handlers.oms;
import java.util.Calendar;
import java.util.Iterator;
import java.util.Set;
import com.fanmila.model.URLHandlerContext;
import com.fanmila.cms.model.cps.CPSURLHandlerContext;
import org.apache.commons.lang.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
im... | true |
385887a1669e258560c6cf834358f917453d12fa | Java | robbypark/IdleIdea | /app/src/main/java/com/robbypark/android/idleidea/view/IdeaActivity.java | UTF-8 | 4,643 | 2.421875 | 2 | [
"MIT"
] | permissive | package com.robbypark.android.idleidea.view;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import andr... | true |
d1e4801499dc1e46a02576c64c1fdbbf044a676a | Java | BAT6188/company-database | /huntkey/code/sceo-entity-generator/src/main/java/com/huntkey/rx/task/VoTask.java | UTF-8 | 3,261 | 2.125 | 2 | [] | no_license | package com.huntkey.rx.task;
import java.util.ArrayList;
import java.util.List;
import com.huntkey.rx.Constants;
import com.huntkey.rx.config.Configuration;
import com.huntkey.rx.framework.AbstractApplicationTask;
import com.huntkey.rx.framework.context.ApplicationContext;
import com.huntkey.rx.handler.BaseHandler;
... | true |
4d048246e68843c0adbbb0c2527bc6fa7f5b2fa9 | Java | sebastian4j/demo-apicurio-api | /src/main/java/com/sebastian/demo/apicuario/Saludos.java | UTF-8 | 500 | 2.484375 | 2 | [
"Apache-2.0"
] | permissive | package com.sebastian.demo.apicuario;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;
import javax.ws.rs.Produces;
/**
* A JAX-RS interface. An implementation of this interface must be provided.
*/
@Path("/saludos")
public interface Saludos {
/**
* Obtiene el saludo para per... | true |
86a6ba5697f7e4b04a7e67477067c21c53f8a3f1 | Java | P79N6A/POCAB | /java.bpc_galaxy_batch/integration-flow/src/test/java/com/bnpp/galaxy/gxt/app/mail/MailServiceTest.java | UTF-8 | 2,126 | 1.945313 | 2 | [] | no_license | package com.bnpp.galaxy.gxt.app.mail;
import com.bnpp.galaxy.gxt.app.configuration.MailConfigurationProperties;
import com.bnpp.galaxy.gxt.app.template.CompiledTemplate;
import com.bnpp.galaxy.gxt.app.template.TemplateService;
import org.junit.Test;
import static org.mockito.ArgumentMatchers.any;
import static org.mo... | true |
fcb09adb296a046c7c263631fa64304a6e3f4369 | Java | lavatory/gwt-highcharts-code | /src/main/java/org/moxieapps/gwt/highcharts/client/events/PlotBandDblClickEvent.java | UTF-8 | 403 | 1.601563 | 2 | [] | no_license | /*
* File: $URL$
* $Id$
* Copyright: Vekia
*
* Last change:
* $Date$
* $Author$
*/
package org.moxieapps.gwt.highcharts.client.events;
import com.google.gwt.core.client.JavaScriptObject;
/**
* @author sdiagne
*
*/
public class PlotBandDblClickEvent extends MouseEvent {
/**
* @param event
*/
... | true |
c65c59ba052a34378c85419671701f89932fde24 | Java | lukakralj/GpioManager_App | /app/src/main/java/com/lukakralj/GpioManager_App/NewComponentController.java | UTF-8 | 8,662 | 2.125 | 2 | [
"MIT"
] | permissive | package com.lukakralj.GpioManager_App;
import android.content.Intent;
import android.os.Handler;
import android.os.Looper;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.support.v7.widget.Toolbar;
import android.view.Menu;
import android.view.MenuItem;
import android.view.Vie... | true |
113206e51e9c904ac936fa878cd8214d5ce3a72f | Java | cjh5414/PoketmonBlockGame | /src/mapEdit/MapPanel.java | UHC | 6,379 | 2.90625 | 3 | [] | no_license | package mapEdit;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
import element.Block;
import element.ItemBlock;
import element.SpecialBlock;
import element.Stage;
import game.MyPanel;
class MapPanel extends MyPanel {
private Stage stage; // 簡 ִ Stage
private boolean check; // ִ ... | true |
70e732507fdabca4313f0f2b4c554f03f72a14a2 | Java | kms2413/yodde_spring | /yodde_spring/src/main/java/com/yodde/pictureModel/PictureDaoImp.java | UTF-8 | 2,377 | 2.21875 | 2 | [] | no_license | package com.yodde.pictureModel;
import java.util.List;
import org.apache.ibatis.session.SqlSession;
import org.apache.ibatis.session.SqlSessionFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
@Component
public class PictureDaoImp imple... | true |
80862c56aefcdacdb9d76658e3f4557e248ff023 | Java | Suarez999/spring-boot-flowable-demo | /flowable-demo/src/test/java/com/github/ji4597056/flow/VariableFlowTest.java | UTF-8 | 3,080 | 2.421875 | 2 | [] | no_license | package com.github.ji4597056.flow;
import java.util.HashMap;
import java.util.LinkedList;
import java.util.Map;
import org.flowable.engine.runtime.ProcessInstance;
import org.flowable.task.api.Task;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
/**
* @author Jeffrey
* @since 2018/03/21 20... | true |
34506845a3eb55aafed6a6817438d4caa49f7ab3 | Java | JMIsham/twister2_kafka | /twister2/task/src/main/java/edu/iu/dsc/tws/task/taskgraphbuilder/DirectedDataflowTaskEdge.java | UTF-8 | 1,140 | 2.15625 | 2 | [
"Apache-2.0"
] | permissive | // 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 writing, software
// distribute... | true |
9688143c22508a0e4fcea8d0526938c2f7451b38 | Java | haku117/FSP | /src/java/org/apache/hama/myhama/io/EdgeParser.java | UTF-8 | 3,735 | 3.03125 | 3 | [] | no_license | package org.apache.hama.myhama.io;
import java.util.ArrayList;
/**
* Parse the string argument as edges (edge ids [and weights])
* around the matches of the given characters.
* @author root
*
*/
public class EdgeParser {
public class IntDoubleEdgeSet {
Integer[] ids;
Double[] weights;
... | true |
9b6afc263d2422824610d06beedd31d2dde58857 | Java | ibrahim-java/myrepo | /available-hotel-api/src/main/java/com/maf/availablehotel/parameter/CrazyHotelProviderParameter.java | UTF-8 | 4,431 | 2.65625 | 3 | [] | no_license | package com.maf.availablehotel.parameter;
import java.time.Instant;
import java.time.LocalDate;
import java.time.ZoneOffset;
import java.time.format.DateTimeFormatter;
import java.util.HashMap;
import java.util.Map;
/**
*
* @author izreqat
* This class represents the source of MAF/CrazyHotelProvider parameters ma... | true |
c77d8b1d8a50302d3fbdbd91bada0e9abf27376a | Java | Refactula/1MLoC | /Story/src/main/java/refactula/story/chapter/AchievementsChapter.java | UTF-8 | 738 | 2.75 | 3 | [] | no_license | package refactula.story.chapter;
import refactula.story.achievement.Achievement;
import refactula.story.markdown.MDWriter;
import java.util.List;
import static refactula.story.markdown.MDElements.chapterTitle;
public class AchievementsChapter extends Chapter {
private final List<Achievement> achievements;
... | true |
9ff64c8b29487803d80e3b5566bf161611fce3e8 | Java | yuleidian520/yld | /yld/src/main/java/recall/dao/IRecallOrderDAO.java | UTF-8 | 957 | 1.804688 | 2 | [] | no_license | package com.cf.web.order.recall.dao;
import java.util.List;
import com.cf.interfaces.dto.CommonQC;
import com.cf.web.order.recall.model.OAOrderInfo;
/**
* 回溯订单DAO 使用的数据源为mysql
* @author yuleidian
* 2018年1月9日 下午3:03:33
*/
@MiniDao
public interface IRecallOrderDAO {
/**
* 分页查询回溯订单信息
* @param condition
* @p... | true |
fdaefc4b584e65567d0c6099e7bd437dffed610d | Java | IGajev/Algorithms.Searching | /VMWare_Interview_Questions/src/main/java/org/example/ReverseSinglyLinkedList.java | UTF-8 | 1,625 | 3.640625 | 4 | [] | no_license | package org.example;
public class ReverseSinglyLinkedList<Item> {
private Node first;
private class Node {
Item item;
Node next;
public Node(Item item) {
this.item = item;
}
}
public void addNode(Item item) {
Node oldFirst = first;
first = new Node(item);
first.next = oldF... | true |
cea92edc6dac5e98d9236b0340240123e0576e8c | Java | AhmiDarrow/EssentialCraft3 | /java/ec3/client/gui/GuiCommon.java | UTF-8 | 1,783 | 2.59375 | 3 | [] | no_license | package ec3.client.gui;
import java.util.ArrayList;
import java.util.List;
import org.lwjgl.opengl.GL11;
import ec3.client.gui.element.GuiElement;
import DummyCore.Utils.MiscUtils;
import net.minecraft.client.Minecraft;
import net.minecraft.client.gui.inventory.GuiContainer;
import net.minecraft.inventory.Container;... | true |
8dd2bf7ec50cf4045a1a4593fdfdc0129c8ba2ec | Java | YevhenZzz/courseOfAlgorithm | /lab3_algorythm/src/com/company/WidthAlgorithm.java | UTF-8 | 3,113 | 3.203125 | 3 | [] | no_license | package com.company;
import java.util.ArrayList;
import java.util.List;
class WidthAlgorithm {
private static int score = 0;
void search(int[] dataArray) {
List<Integer> dataList = new ArrayList<>();
for (int i : dataArray) {
dataList.add(i);
}
System.out.println(dat... | true |
5475c429f3a479b4ff952479c76d089ac0811cc4 | Java | degulab/SOARS | /src/Program5.0/src/soars/common/utility/swing/text/ITextUndoRedoManagerCallBack.java | UTF-8 | 488 | 1.859375 | 2 | [
"MIT"
] | permissive | /**
*
*/
package soars.common.utility.swing.text;
import javax.swing.text.AbstractDocument.DefaultDocumentEvent;
import javax.swing.undo.UndoManager;
/**
* @author kurata
*
*/
public interface ITextUndoRedoManagerCallBack {
/**
* @param undoManager
*/
void on_changed(UndoManager undoMana... | true |
8ae534d0a9a969c3ac6069928cc929e41ec2aa55 | Java | charliebootcamp/SpeedSell | /src/com/bootcamp/portal/mgr/ManagerFactory.java | UTF-8 | 763 | 2.21875 | 2 | [] | no_license | package com.bootcamp.portal.mgr;
import javax.annotation.PostConstruct;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Scope;
import org.springframework.context.annotation.ScopedProxyMode;
import org.springframework.stereotype.Component;
@Component
@Scope... | true |
ee4538488f8c26ee0f65bd370a33a3b724372ce6 | Java | dtkmn/algorithms | /src/leetcode/SymmetricTree.java | UTF-8 | 3,273 | 3.796875 | 4 | [] | no_license | package leetcode;
import java.util.ArrayList;
import java.util.List;
import java.util.Stack;
/**
* https://leetcode.com/problems/symmetric-tree/
*/
public class SymmetricTree {
public static void main(String[] args) {
TreeNode root = new TreeNode(2);
root.left = new TreeNode(1);
root.le... | true |
8aca472d11372c046543c4b784e52aacad327930 | Java | mfyuce/spring-context-template | /src/test/java/com/github/markusbernhardt/springcontexttemplate/InvalidTemplateTest.java | UTF-8 | 2,171 | 2.421875 | 2 | [
"Apache-2.0"
] | permissive | package com.github.markusbernhardt.springcontexttemplate;
import static org.junit.Assert.assertTrue;
import static org.junit.Assert.fail;
import org.junit.Test;
import org.springframework.beans.factory.BeanCreationException;
import org.springframework.beans.factory.BeanDefinitionStoreException;
import org.springframe... | true |
b24f620a0d7f6add743d5bb2696db5d3cd09b6f6 | Java | AntoineLabeeuw/hotel-web-api | /src/main/java/dev/hotel/controller/ClientController.java | UTF-8 | 3,890 | 2.734375 | 3 | [] | no_license | package dev.hotel.controller;
import java.util.List;
import java.util.Optional;
import java.util.UUID;
import javax.validation.Valid;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.validation.BindingResult;
import org.springframework.web.bind.an... | true |
a302ce760610a8971985245cf50b160bb18bfa95 | Java | yuzhaocai/blog | /blog/src/main/java/com/class8/blog/aop/aspect/UserServiceAspect.java | UTF-8 | 2,342 | 2.6875 | 3 | [] | no_license | package com.class8.blog.aop.aspect;
import org.aspectj.lang.JoinPoint;
import org.aspectj.lang.ProceedingJoinPoint;
import org.aspectj.lang.annotation.After;
import org.aspectj.lang.annotation.AfterReturning;
import org.aspectj.lang.annotation.AfterThrowing;
import org.aspectj.lang.annotation.Around;
import or... | true |
680b07e7010dfa15b218503ff3fe9adb913fae90 | Java | peterAkuhata/punch-in-free | /punchInFree/src/main/java/com/aku/apps/punchin/free/utils/DateUtil.java | UTF-8 | 11,083 | 3.1875 | 3 | [] | no_license | package com.aku.apps.punchin.free.utils;
import java.text.DateFormat;
import java.util.Calendar;
import java.util.Date;
import java.util.concurrent.TimeUnit;
public class DateUtil {
/** Returns whether today is the currently selected page, or not */
public static boolean isToday(Date date) {
... | true |
aa2999d8d3a917dd8146a544974414c5c88ae571 | Java | phantacix/sb-framework | /sb-commons/common-rhino/src/main/java/org/chinasb/common/rhino/NativeJavaMap.java | UTF-8 | 1,615 | 2.578125 | 3 | [] | no_license | package org.chinasb.common.rhino;
import java.util.Map;
import org.mozilla.javascript.NativeJavaObject;
import org.mozilla.javascript.Scriptable;
/**
* Represents the scriptable object for Java object which implements the interface Map
*
* @author zhujuan
*/
public class NativeJavaMap extends NativeJavaObject {... | true |
bb21bf9f5d043e4a276f916c29a9d4cd1d017bbc | Java | rsbth/Car-Rental | /src/main/java/com/santosh/Controller/BookingController.java | UTF-8 | 1,712 | 2.390625 | 2 | [] | no_license | package com.santosh.Controller;
import com.santosh.Booking;
import com.santosh.Model.BookingModel;
import com.santosh.ReportByHour;
import javax.ws.rs.*;
import javax.ws.rs.core.MediaType;
import java.time.format.DateTimeFormatter;
import java.util.ArrayList;
import java.util.List;
@Path("bookings")
public class Boo... | true |
44ccdc8a79dcae3bd5b88490c932fd194df3e23d | Java | CMSSKKK/algorithm-start | /example-and-just-test/src/test/one.java | UTF-8 | 589 | 2.96875 | 3 | [] | no_license | package test;
public class one {
public static void main(String[] args) {
//
// int[] answer = new int[3];
//
// for (int i = 0; i < arr.length; i++) {
// if(arr[i] == 1) {
// answer[0]++;
// } else if (arr[i] == 2) {
// answer[1]++;
// }else {
// answer[2]++;
// }
//
// }
// int max ... | true |
cc7861ebcb57df281737f757e22e22ba29ae73c4 | Java | dnd2/CQZTDMS | /src/com/infodms/dms/actions/claim/basicData/ClaimOtherFeeMain.java | UTF-8 | 10,424 | 1.96875 | 2 | [] | no_license | /**
* @Title: ClaimOtherFeeMain.java
* @Package com.infodms.dms.actions.claim.basicData
* @Description: TODO(索赔其它费用维护)
* @author wangjinbao
* @date 2010-5-31 下午04:05:09
* @version V1.0
*/
package com.infodms.dms.actions.claim.basicData;
import java.util.Date;
import java.util.LinkedList;
impor... | true |
752105c6d29d29e1f7fa1adfc511fefee215e6b2 | Java | edsgrupob/Z0 | /Codigos/Compiler/src/main/java/compiler/VMWriter.java | UTF-8 | 6,006 | 3.484375 | 3 | [] | no_license | /**
* Curso: Elementos de Sistemas
* Arquivo: VMWriter.java
*/
package compiler;
import java.io.*;
/**
* Encapsula o código para gravar as instruções em Liguagem de Máquina Virtual à Pilha.
* Responsável por abrir o arquivo para gravar instruções, possui funcionalidades para gravar as instruções.
*/
public cla... | true |
cd61968b0b0babd4bd02040b70b0a344b8aa33f6 | Java | ppvkt/epopova | /chapter_003/src/test/java/ru/job4j/sort/SortUserTest.java | UTF-8 | 919 | 2.734375 | 3 | [
"Apache-2.0"
] | permissive | package ru.job4j.sort;
import org.junit.Test;
import java.util.ArrayList;
import java.util.List;
import java.util.Set;
import static org.hamcrest.core.Is.is;
import static org.junit.Assert.assertThat;
public class SortUserTest {
@Test
public void whenListThenSortTreeSet() {
List<User> list = new Arra... | true |
281c4e93b4a737ec32fd2de2275e49e8fa3b8557 | Java | xiaoza/PhotoSelectorForAndroid | /photoselector/src/main/java/cn/xianging/photoselector/OnPhotoSelectedListener.java | UTF-8 | 258 | 1.773438 | 2 | [] | no_license | package cn.xianging.photoselector;
import java.util.List;
/**
* Created by xiaoz on 16/3/30.
* Copyright © 2016年 xianging. All rights reserved.
*/
public interface OnPhotoSelectedListener {
void onPhotoSelected(List<PhotoInfo> selectedPhotos);
}
| true |
e9a82039e2c6b48012d3c12951222b2522e192b1 | Java | dubems/Learnings | /src/main/java/com/nriagudubem/learnings/CoinChange.java | UTF-8 | 1,135 | 2.765625 | 3 | [] | no_license | package com.nriagudubem.learnings;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import java.util.Arrays;
public class CoinChange {
private Log log = LogFactory.getLog(CoinChange.class);
public int coinChange(int[] coins, int amount) {
if (coins.length == 0) ... | true |
8d8d93f82dfe46f033d3592d057b8f24d0f48907 | Java | ayunami2000/cactuschat | /org/apache/logging/log4j/core/layout/PatternLayout.java | UTF-8 | 11,100 | 1.671875 | 2 | [] | no_license | //
// Decompiled by Procyon v0.5.36
//
package org.apache.logging.log4j.core.layout;
import org.apache.logging.log4j.core.config.DefaultConfiguration;
import org.apache.logging.log4j.core.config.plugins.PluginBuilderAttribute;
import org.apache.logging.log4j.core.util.Builder;
import java.io.Serializable;
import or... | true |
d53138f748957ae99a8eb3d9d5c6b8efd76b5f09 | Java | rnfxl92/2012920022_SungMin | /20171031XSCodeTest/build/generated-sources/jaxb/BindingTest/package-info.java | UHC | 553 | 1.945313 | 2 | [] | no_license | //
// JAXB(JavaTM Architecture for XML Binding) 2.2.5-2 Ǿϴ.
// <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> Ͻʽÿ.
// ϸ ҽ Ű սǵ˴ϴ.
// ¥: 2017.10.31 ð 02:18:36 PM KST
//
@javax.xml.bind.annotation.XmlSchema(namespace = "http://tempuri.org/po.xsd", elementFormDefault = javax.xml.... | true |
5ddf7431b5415976b82603b58bef3ec3729392f1 | Java | Searchat-COSW/Spring-Boot | /src/main/java/edu/eci/cosw/searchat/searchatapi/persistence/ProfileInformationRepository.java | UTF-8 | 558 | 1.570313 | 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 edu.eci.cosw.searchat.searchatapi.persistence;
import edu.eci.cosw.searchat.searchatapi.model.ProfileInformation;
import edu.e... | true |
28583972d9b7e60cabb6b6cd9581ebb6f312e177 | Java | TheStudentPL/java171118 | /Wordgiven.java | UTF-8 | 782 | 3.21875 | 3 | [] | no_license | public class Wordgiven {
public static void main(String[] args) {
String numb;
numb = args[0];
System.out.println("Wpisałeś liczbę: " + numberMethod(numb));
}
static long numberMethod(String number){
String name="";
long l=0;
switch (number) {
... | true |
e982ff345ede5de68d53b128bfe38de1a1a85e28 | Java | HariKiranMoka/palmetopractice | /usecase1/src/usecase1/A.java | UTF-8 | 44 | 1.960938 | 2 | [] | no_license | package usecase1
interface A {
int i=3;
}
| true |
4c58f9b007ded4831c53f98848a77e899edc4122 | Java | SurpriseWang/computer | /src/main/java/com/system/computer/pojo/Storehouse.java | UTF-8 | 970 | 2.171875 | 2 | [] | no_license | package com.system.computer.pojo;
import java.io.Serializable;
public class Storehouse implements Serializable {
private Integer storehouseId;
private String storehouseDescribe;
private String storehouseAddress;
private static final long serialVersionUID = 1L;
public Integer getStorehouseId() ... | true |
c52902a84b3a2163a31da503a3f4f3aa01292c14 | Java | ThalesSalgado/oauth2-ex | /src/main/java/com/thales/oauth/utils/Helper.java | UTF-8 | 2,032 | 2.484375 | 2 | [] | no_license | package com.thales.oauth.utils;
import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;
import org.springframework.util.CollectionUtils;
import org.springframework.web.context.request.RequestContextHolder;
import org.springframework.web.context.request.ServletRequestAttributes;
import javax.servlet.h... | true |
c480fdb77d0c572bdc177ec04cd498a593536df2 | Java | mosoti17/hair-salon | /src/test/java/ClientTest.java | UTF-8 | 1,354 | 2.921875 | 3 | [] | no_license | import org.junit.*;
import static org.junit.Assert.*;
import org.sql2o.*;
import java.util.List;
import java.util.ArrayList;
public class ClientTest {
@Rule
public DatabaseRule database = new DatabaseRule();
@Test
public void client_clientInstatiatesCorrectly(){
Client myClient= new Client("Mercy... | true |
f8f0350a03860a14fc75a33a21c2f18d5b48967e | Java | thanhnhutkmt/myproject | /AndroidStudioProjects/PersonalUtilitiesForLife/app/src/main/java/util/MyImage.java | UTF-8 | 2,111 | 2.59375 | 3 | [] | no_license | package util;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Matrix;
import android.graphics.Paint;
import android.graphics.PorterDuff;
import android.graphics.PorterDuffXfermode;
import android.graphics.Type... | true |
79a125c58dda4ca7475cab0005dc0b5462191cf7 | Java | jingboli/PracticeDraw1 | /app/src/main/java/com/hencoder/hencoderpracticedraw1/practice/Practice9DrawPathView.java | UTF-8 | 1,343 | 2.515625 | 3 | [] | no_license | package com.hencoder.hencoderpracticedraw1.practice;
import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Paint;
import android.graphics.Path;
import android.graphics.RectF;
import android.support.annotation.Nullable;
import android.util.AttributeSet;
import android.view.View;
publi... | true |
66174d9832b78995f7b7edbe71ccc3e50bd16e72 | Java | GNK2SO/demo-jwt-auth | /src/main/java/com/gnk2so/auth/user/service/UserServiceImpl.java | UTF-8 | 1,134 | 2.34375 | 2 | [] | no_license | package com.gnk2so.auth.user.service;
import com.gnk2so.auth.user.exception.AlreadyUsedEmailException;
import com.gnk2so.auth.user.exception.UserNotFoundException;
import com.gnk2so.auth.user.model.User;
import com.gnk2so.auth.user.repository.UserRepository;
import org.springframework.beans.factory.annotation.Autowir... | true |
cadda7547a93b34e939775ccbdbb44e37a77bd90 | Java | freeman9998/MyCoding | /Itwill/1st-project-team4-Bob4Jo/src/com/itwill/service/MemberService.java | UTF-8 | 2,636 | 2.671875 | 3 | [] | no_license | package com.itwill.service;
import java.util.List;
import com.itwill.dao.MemberInfoDao;
import com.itwill.vo.MemberInfo;
public class MemberService {
private MemberInfoDao memberInfoDao;
public MemberService() {
memberInfoDao=new MemberInfoDao();
}
//1.회원가입
/*
* 아이디 존재여부체크(아이디 중복체크 기능구현)
* -존재하면 메세지:아... | true |
cc56f217dade2b6f7d2627d0dbb57c9ce3db60c4 | Java | Wiive/YrgoUppgifterGP20 | /Game Programming/Assignment02/build-tmp/source/Assignment02.java | UTF-8 | 3,788 | 3.15625 | 3 | [] | no_license | import processing.core.*;
import processing.data.*;
import processing.event.*;
import processing.opengl.*;
import java.util.HashMap;
import java.util.ArrayList;
import java.io.File;
import java.io.BufferedReader;
import java.io.PrintWriter;
import java.io.InputStream;
import java.io.OutputStream;
import jav... | true |
3c0cd2915e528e77952f3275a57112ac93f42ce1 | Java | Graf2242/mobs | /gameMechanics/src/main/java/Mechanics/Mob.java | UTF-8 | 2,845 | 2.78125 | 3 | [] | no_license | package Mechanics;
import java.util.ArrayList;
abstract class Mob implements Action {
protected final FightImpl fight;
private final int criticalDamageMultiplier;
private final int successfulBlockDamageScaler;
private final float criticalDamageChance;
private final String name;
private final ... | true |
054a84d4803194c4b6587d3eed3a2648e42f9644 | Java | romankoval/botbuilder-java | /libraries/botbuilder/src/main/java/com/microsoft/bot/builder/DeleteActivityHandler.java | UTF-8 | 1,162 | 2.53125 | 3 | [
"LicenseRef-scancode-generic-cla",
"MIT"
] | permissive | package com.microsoft.bot.builder;
import com.microsoft.bot.schema.models.ConversationReference;
import java.util.concurrent.Callable;
import java.util.concurrent.CompletableFuture;
/**
* A method that can participate in delete activity events for the current turn.
* @param context The context object for the turn.... | true |
fb07fcce176713b2e1721bc4099ac4d69ec45aa9 | Java | jianli2014/learning-git | /nzxye/ScreenAndroid/app/src/main/java/com/nzxye/ai/bean/AddFaceResponse.java | UTF-8 | 1,186 | 1.945313 | 2 | [] | no_license | package com.nzxye.ai.bean;
import java.util.ArrayList;
/**
* Created by yuxiaodong on 03/03/2017.
*/
public class AddFaceResponse extends ResponseBase {
private String faceset_token;
private String outer_id;
private int face_added;
private int face_count;
private ArrayList<String> failure_deta... | true |
17eb3d8fde2c6a1dab04314bd97be674e415a9e4 | Java | AyrtonAlves/JavaBasics | /src/_1014/Main.java | UTF-8 | 290 | 2.9375 | 3 | [
"ISC"
] | permissive | package _1014;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
int a = scan.nextInt();
double b = scan.nextDouble();
double c = a/b;
System.out.printf("%.3f km/l\n",c);
}
}
| true |
705d8f8ddeb5e4f2a09a835b59529bd5c681aa89 | Java | mcculls/nexus | /nexus/nexus-test-harness/nexus-test-harness-its/src/test/java/org/sonatype/nexus/integrationtests/nexus4539/AutoBlockITSupport.java | UTF-8 | 8,659 | 1.570313 | 2 | [] | no_license | /**
* Sonatype Nexus (TM) Open Source Version
* Copyright (c) 2007-2012 Sonatype, Inc.
* All rights reserved. Includes the third-party code listed at http://links.sonatype.com/products/nexus/oss/attributions.
*
* This program and the accompanying materials are made available under the terms of the Eclipse Public L... | true |
4cd0a58882041e30549ac8e5021407bf3114dd9b | Java | Kwpolska/lockscreendarkifier | /app/src/main/java/com/chriswarrick/lockscreendarkifier/WallpaperHandler.java | UTF-8 | 1,646 | 2.15625 | 2 | [
"BSD-2-Clause"
] | permissive | package com.chriswarrick.lockscreendarkifier;
import android.Manifest;
import android.app.WallpaperManager;
import android.content.Context;
import android.content.pm.PackageManager;
import android.os.ParcelFileDescriptor;
import androidx.core.app.ActivityCompat;
import android.util.Log;
import java.io.IOException;
p... | true |
5dba7ce1fce3c554002962e19c2fb4ea55f02b23 | Java | Kursulla/SplitScreen-activity-start | /app/src/main/java/rs/webnet/splitscreenanim/DeviceUtil.java | UTF-8 | 946 | 2.296875 | 2 | [] | no_license | package rs.webnet.splitscreenanim;
import android.app.Activity;
import android.graphics.Point;
import android.util.DisplayMetrics;
import android.view.Display;
/**
* Created by kursulla on 4/4/14.
* <p/>
* Class purpose:
*/
public class DeviceUtil {
public static int getScreenWidth(Activity activity){
... | true |
897a551d8fe90e09fb1531ae3963bda825ee24f2 | Java | liangliangattack/Access_School_Client | /app/src/main/java/com/example/administrator/access_school_client/Util/CommonAdapter.java | UTF-8 | 1,638 | 2.515625 | 3 | [] | no_license | package com.example.administrator.access_school_client.Util;
import android.content.Context;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import java.util.List;
public abstract class CommonAdapter<T> extends BaseAdapter {
private Context context;
private List<T... | true |
9a6dfa693ff556cb2fca046264b3903927031ba1 | Java | K0zka/geocoder | /src/main/java/org/todomap/geocoder/Address.java | UTF-8 | 1,087 | 2.53125 | 3 | [] | no_license | package org.todomap.geocoder;
import javax.persistence.Embeddable;
/**
* Address bean.
*
* @author kocka
*
*/
@Embeddable
public class Address {
private String address;
private String country;
private String state;
private String town;
private String postalCode;
public String getPostalCode() {
return ... | true |
5617a97aa651fd7819d8bb1d96f87155143596fd | Java | zopelee/AndroidPractice | /FunLibrary/src/spare/funlibrary/framework/gl/Texture2.java | UTF-8 | 6,728 | 2.109375 | 2 | [] | no_license | package spare.funlibrary.framework.gl;
import java.io.IOException;
import java.io.InputStream;
import java.util.ArrayList;
import java.util.List;
import javax.microedition.khronos.opengles.GL10;
import spare.funlibrary.framework.FileIO;
import spare.funlibrary.framework.impl.GLGame2;
import spare.funlibr... | true |
5c8fbc14ebd1e01a90a76d42c9c8388f69a39537 | Java | kwang92/Bitcamp_Java | /Day0427_GUI/src/student/InfoFrameTest.java | UTF-8 | 135 | 1.585938 | 2 | [] | no_license | package student;
public class InfoFrameTest {
public static void main(String[] args) {
MyInfoFrame frame = new MyInfoFrame();
}
}
| true |
217926de7cf57e796256710163850c9b0b429222 | Java | doublek420/azure-sdk-for-java | /azure-batch/src/main/java/com/microsoft/azure/batch/JobScheduleOperations.java | UTF-8 | 10,418 | 1.929688 | 2 | [
"MIT"
] | permissive | /**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*/
package com.microsoft.azure.batch;
import com.microsoft.azure.PagedList;
import com.microsoft.azure.batch.protocol.models.*;
import com.microsoft.rest... | true |
094f20dede3e1adc8cb99393906c1f3095498668 | Java | coolmeen/pageViewProcessing | /src/main/java/com/example/simmilarweb/SimmilarwebApplication.java | UTF-8 | 3,276 | 1.609375 | 2 | [] | no_license | package com.example.simmilarweb;
import com.example.simmilarweb.pojo.PageView;
import com.example.simmilarweb.pojo.UserStats;
import com.example.simmilarweb.pojo.WebStat;
import lombok.AllArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.apache.beam.runners.direct.DirectRunner;
import org.apache.beam.sdk.P... | true |
9fd4f2ba1062b377cb65ea1ed10cf11075698b46 | Java | ouyangzn/SimpleGitHub | /app/src/main/java/com/ouyangzn/github/utils/ScreenUtils.java | UTF-8 | 5,405 | 2.34375 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright (c) 2016. ouyangzn <ouyangzn@163.com>
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | true |
e53fac1e6ce2d2d81c5256c68d6be85d6bd3662a | Java | vineet192/BakingApp | /app/src/main/java/com/example/android/bakingapp/MainActivity.java | UTF-8 | 2,767 | 2.046875 | 2 | [] | no_license | package com.example.android.bakingapp;
import android.content.Intent;
import android.support.v4.app.FragmentManager;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import com.android.volley.Request;
import com.android.volley.RequestQueue;
import com.android.volley.Response;
import com.andr... | true |
533c4ee554ee42bfe4eb2f6fd347bce618b657aa | Java | NoraHille/MysteryGame | /src/LayerInstruction.java | UTF-8 | 239 | 2.421875 | 2 | [] | no_license | public class LayerInstruction extends InstructionLink {
int indexOfNextLayer = -1;
public LayerInstruction(String message, int indexOfNextLayer) {
super(message);
this.indexOfNextLayer = indexOfNextLayer;
}
}
| true |
ab2b4819d3f2a50cb276e5898c9404db65a9b515 | Java | tiqwab/example | /mockito-example/src/main/java/org/tiqwab/example/mockito/Order.java | UTF-8 | 481 | 2.6875 | 3 | [] | no_license | package org.tiqwab.example.mockito;
import lombok.Getter;
public class Order {
@Getter
private String sku;
@Getter
private int qty;
@Getter
private boolean isFilled;
public Order(String sku, int qty) {
this.sku = sku;
this.qty = qty;
this.isFilled = false;
}
public void fill(Warehouse warehouse) {... | true |
34d9016a4e1b722ed166c3c61e497305762142aa | Java | piaohao/eladmin | /eladmin-system/src/test/java/me/zhengjie/EladminSystemApplicationTests.java | UTF-8 | 5,448 | 2.03125 | 2 | [
"Apache-2.0"
] | permissive | package me.zhengjie;
import cn.hutool.core.util.StrUtil;
import cn.hutool.http.ContentType;
import cn.hutool.http.HttpRequest;
import cn.hutool.http.HttpResponse;
import cn.hutool.http.HttpStatus;
import cn.hutool.json.JSONUtil;
import lombok.extern.slf4j.Slf4j;
import me.zhengjie.api.domain.generator.GenConfig;
impor... | true |
5c49172a725dd9d1ec9f92b2eb014f878372b5d6 | Java | cyamamot/DejaPhotoProject | /app/src/main/java/g25/com/dejaphoto/DejaPhotoService.java | UTF-8 | 6,732 | 2.140625 | 2 | [] | no_license | package g25.com.dejaphoto;
import android.app.AlarmManager;
import android.app.PendingIntent;
import android.app.Service;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.os.IBinder;
import android.support.annotation.RestrictTo;
import android.util... | true |
548bcb68049af4250867604986df73ce853ed037 | Java | SanushRadalage/MicroService | /src/main/java/com/example/demo/domain/request/RequestDto.java | UTF-8 | 626 | 2.578125 | 3 | [
"Apache-2.0"
] | permissive | package com.example.demo.domain.request;
import com.example.demo.domain.BaseDto;
/**
* Request Dto can use by any Dto class in the package for field Validations.
*/
abstract class RequestDto implements BaseDto {
/**
* This function checks the required fields are available or not.
* This is accessible... | true |
0146941aad119c3cac972855229b5cad6f93819f | Java | janczar/powertape | /powertape-lib/src/main/java/net/janczar/powertape/annotation/Scope.java | UTF-8 | 91 | 1.578125 | 2 | [
"Apache-2.0"
] | permissive | package net.janczar.powertape.annotation;
public @interface Scope {
Class value();
}
| true |
140c813ffedfe5b67bd45b91961006f956ff4f38 | Java | DaveVanRijn/TimeKeeper | /TimeKeeper/src/Keeper/View/MeetingPanel.java | UTF-8 | 3,639 | 2.375 | 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 Keeper.View;
import Shared.Resource.FileUtil;
import Shared.Object.Meeting;
import java.awt.Color;
import java.awt.Dimension;
... | true |
f3c06981cb75d3321aa4638f41d83c11698faafa | Java | JackyWu15/DesignPatternsDemo | /app/src/main/java/com/hechuangwu/designpatternsdemo/strategy/SubwayStrategy.java | UTF-8 | 278 | 2.703125 | 3 | [] | no_license | package com.hechuangwu.designpatternsdemo.strategy;
/**
* Created by cwh on 2019/8/9 0009.
* 功能:
*/
public class SubwayStrategy implements CalculateStrategy {
int exPrice = 5;
@Override
public int calculatePrice(int km) {
return km*exPrice;
}
}
| true |
d0f17ee456b3f6ed7baa189c456f1dbd00fa3e23 | Java | royzhuo/mybatis | /src/main/java/com/entity/Employee.java | UTF-8 | 1,559 | 2.609375 | 3 | [] | no_license | package com.entity;
import java.util.Date;
/**
* Created by roy.zhuo on 2017/10/18.
*/
public class Employee {
private Integer id;
private String name;
private DepartMent dept;
private Date createTime;
private Date updateTime;
public Employee(Integer id, String name, DepartMent dept, Dat... | true |
b20632e047a85a064ea16a5c8d97018ea193d57b | Java | m1339294326/TestProject | /MoveTest/src/com/example/movetest/MainActivity.java | UTF-8 | 1,257 | 2.140625 | 2 | [] | no_license | package com.example.movetest;
import android.os.Bundle;
import android.app.Activity;
import android.view.Menu;
import android.view.MotionEvent;
import android.view.View;
import android.view.View.OnTouchListener;
import android.widget.FrameLayout;
public class MainActivity extends Activity {
private FrameLayout mFram... | true |