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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
caab75fd1253af77dbaaf945b7cb207ed135e175 | Java | huyquyen0501/springboot-hibernate-test | /src/main/java/com/example/demo/entity/HelloWorld.java | UTF-8 | 793 | 2.40625 | 2 | [] | no_license | package com.example.demo.entity;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
@Entity
@Table(name = "customer")
public class HelloWorld {
@Id
@Generated... | true |
63836fd06469b4a7fd64d6290a5b2c02bd100932 | Java | tianhaolin1991/ssm_super | /ssm_service/src/main/java/cn/itcast/service/ProductService.java | UTF-8 | 320 | 1.875 | 2 | [] | no_license | package cn.itcast.service;
import cn.itcast.domain.Product;
import java.util.List;
public interface ProductService {
/**
* 查询所有
* @return
* @param currentPage
* @param pageSize
*/
List<Product> findAll(Integer currentPage, Integer pageSize);
void add(Product product);
}
| true |
253de6f14c0d69725b5960c8d8a69563de4dd18f | Java | Hanan2412/ClientSide-ServerSide | /ServerSide/src/server/Server.java | UTF-8 | 1,797 | 2.796875 | 3 | [] | no_license | package server;
import java.beans.PropertyChangeListener;
import java.beans.PropertyChangeSupport;
import java.io.IOException;
import java.net.ServerSocket;
import java.net.Socket;
import java.util.Vector;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
public class Se... | true |
03f0619a8a5a1e78b89eb8c7d254873d6a55f8e5 | Java | jaspreetjhass/MongoDbRepo | /MongoSpringIntegration/src/main/java/org/jp/MongoSpringIntegrationApproach1/InsertMany.java | UTF-8 | 1,436 | 2.765625 | 3 | [] | no_license | package org.jp.MongoSpringIntegrationApproach1;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.bson.Document;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
imp... | true |
e52ccbdfd105e6c9aeedd39b098a36034602c00a | Java | aurelien-baudet/yoga-classes-booking-back | /src/main/java/fr/yoga/booking/service/business/ContactService.java | UTF-8 | 3,842 | 2.3125 | 2 | [] | no_license | package fr.yoga.booking.service.business;
import static java.util.concurrent.CompletableFuture.completedFuture;
import java.util.concurrent.CompletableFuture;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Service;
import fr.sii.ogham.core.exception.MessagingException;... | true |
e6d4f50a79b05f13699c46f0d5b9099d202b8092 | Java | stephenchu530/parley-app | /src/main/java/com/parley/parley/models/UserAccount.java | UTF-8 | 5,223 | 2.46875 | 2 | [
"MIT"
] | permissive | package com.parley.parley.models;
import org.springframework.security.core.GrantedAuthority;
import org.springframework.security.core.authority.SimpleGrantedAuthority;
import org.springframework.security.core.userdetails.UserDetails;
import javax.persistence.*;
import java.util.*;
@Entity
public class UserAccount i... | true |
67885fbcf03a4452a93f36a63f972804aa172d7b | Java | Lodoran/AulasPOO | /1003.java | UTF-8 | 408 | 3.40625 | 3 | [] | no_license | import java.util.Scanner;
public class primeiro{
public static void main(String[] args){
Scanner numero = new Scanner (System.in);
double numero1, numero2;
double media;
System.out.println ("Digite o valor de A: ");
numero1 = scan.nextDouble();
System.out.println ("Digite o valor de B: ");
numero2 = scan.next... | true |
007b269907d86e84f2f039a1867f367309cbb848 | Java | japes930/SpringBoot_103 | /ChallengeOne/src/challengeOne.java | UTF-8 | 1,950 | 3.4375 | 3 | [] | no_license | import java.util.Scanner;
import java.util.Random;
public class challengeOne {
public static void main( String[] args){
Scanner keyboard = new Scanner(System.in);
//**************************************************
// OPTION 1 *
//***********************************... | true |
a992d0657c76829482b063d33df30c7e5777488d | Java | vxvy/JDBC | /T2SAX/src/t2sax/T2SAXMain.java | UTF-8 | 1,271 | 2.328125 | 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 t2sax;
import java.io.IOException;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.xml.parsers.P... | true |
dee26c8792f5192e8547a5e6bad5063a53ca45ba | Java | mohana-vamsee/ssplat | /Javaresources/src/title.java | UTF-8 | 298 | 2.296875 | 2 | [] | no_license | @Entity
public class State {
@Id
@GeneratedValue(strategy=GenerationType.AUTO)
private Long id;
private String title;
@OneToMany(cascade = {CascadeType.ALL})
public String getTitle() {
return title;
}
public void setTitle(String title) {
this.title = title;
}
}
| true |
8400c9ba9bf6a4fe1578292855d39b3832f6f0a8 | Java | isfce/pid-hifi | /Tp01_Hifi/src/main/java/hifi/ChargeurCdFactory.java | UTF-8 | 1,051 | 2.78125 | 3 | [] | no_license | package hifi;
import java.io.IOException;
import java.util.Properties;
import java.util.stream.Collectors;
public class ChargeurCdFactory {
/**
* Fabrique qui construit un chargeur avec une liste de CD à partir d'un fichier
* l'organisation du fichier étant
* nomDisque= liste des morceaux séparés avec un... | true |
3073db3cffd7a0774ae786fbf2cf2c802351d3a2 | Java | apache/incubator-pekko | /docs/src/test/java/jdocs/ddata/protobuf/TwoPhaseSetSerializer2.java | UTF-8 | 2,850 | 1.828125 | 2 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0",
"LicenseRef-scancode-protobuf",
"LicenseRef-scancode-public-domain",
"BSD-2-Clause",
"Unlicense",
"CC0-1.0"
] | permissive | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* license agreements; and to You under the Apache License, version 2.0:
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* This file is part of the Apache Pekko project, which was derived from Akka.
*/
/*
* Copyright (C) 2015-2022 Light... | true |
12048276576775c69418d61e5050709efeb47d89 | Java | lucianluci96/shop | /shop/src/main/java/org/myproject/shop/service/api/impl/OutputService.java | UTF-8 | 1,833 | 2.25 | 2 | [] | no_license | package org.myproject.shop.service.api.impl;
import org.myproject.shop.core.model.OutputEntity;
import org.myproject.shop.core.model.ProductEntity;
import org.myproject.shop.core.model.ShopEntity;
import org.myproject.shop.core.repository.OutputRepository;
import org.myproject.shop.core.repository.ProductRepository;
i... | true |
d0bdd7b45958e895a7cc7188f2f78b4bcab4f94b | Java | LRuffati/ing-sw-2019-9 | /src/main/java/controller/externalinterfaces/ActorIface.java | UTF-8 | 635 | 2.28125 | 2 | [] | no_license | package controller.externalinterfaces;
import actions.ActionTemplate;
import java.util.List;
public interface ActorIface {
/**
*
* @return the actions available to the user. Each list of templates will generate an
* actionBundle
*/
List<List<ActionTemplate>> getActions();
/**
* ... | true |
6d238fffecdcc7b0d7284d0a4eafef9d0d2e871c | Java | Asfarus1/cloud-increment | /src/test/java/asfarus/example/cloudincrement/repository/internal/JdbcIncrementRepositoryTest.java | UTF-8 | 2,643 | 2.296875 | 2 | [] | no_license | package asfarus.example.cloudincrement.repository.internal;
import asfarus.example.cloudincrement.repository.IncrementRepository;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.... | true |
3b26b538c4be9b71ae5acd5a0ea8212927567fe0 | Java | MichaelD58/StarCraft-Optimiser | /src/Optimiser.java | UTF-8 | 7,746 | 2.578125 | 3 | [] | no_license | import java.util.ArrayList;
import java.util.Random;
public class Optimiser {
ArrayList<Construction> buildOrder = new ArrayList<>();
Random rand = new Random();
private StarCraft g;
private int marines = 0;
private int hellions = 0;
private int medivacs = 0;
private int vikings = 0;
... | true |
302d89c933cab3c65c16f5e320b419e16bf1ad02 | Java | shubhamkank/interview-prep | /src/main/java/com/interview/KMP.java | UTF-8 | 1,491 | 3.625 | 4 | [] | no_license | package com.interview;
public class KMP {
/**
* Compute temporary array to maintain size of suffix which is same as prefix
* Time/space complexity is O(size of pattern)
*/
private static int[] computePiTable(char[] pattern) {
//lps stands for longest proper prefix which is also suffix
... | true |
7a14613bdcede2517d62f1a967056956dbcd1169 | Java | softgo/ApplicationO | /src/main/java/com/javabase/demo/constant/ResultConstant.java | UTF-8 | 453 | 2.140625 | 2 | [] | no_license | package com.javabase.demo.constant;
/**
* 异常信息输出
* @author rocky
*/
public class ResultConstant {
/**
* 通用设置.
*/
public interface CommonResult{
String GET_RESULT_IS_NULL = "GET_RESULT_IS_NULL";
String OPERATE_ACTION_IS_FAILD = "OPERATE_ACTION_IS_FAILD";
}
/**
* 老师
... | true |
e2ed48b82d45769823c1cb6ac62d33210b00e391 | Java | MarineCastello/Airport | /Airport/src/dbAccess/FlightPlanDAO.java | ISO-8859-1 | 19,035 | 2.6875 | 3 | [] | no_license | package dbAccess;
import java.sql.Date;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.List;
import entity.Airline;
import entity.Airport;
import entity.Factory;
import entity.FlightDuration;
import entity.FlightPla... | true |
d05852d3e002dff006622e0c5ee25f65687851e1 | Java | sanguolingzi/desk | /sysmanage/src/main/java/com/cunw/cloud/familydesk/sysmanage/controller/SysAppBindResultController.java | UTF-8 | 1,191 | 1.867188 | 2 | [] | no_license | package com.cunw.cloud.familydesk.sysmanage.controller;
import com.cunw.cloud.framework.controller.BaseRESTfulController;
import com.cunw.cloud.framework.controller.dto.RESTfulResult;
import com.cunw.cloud.familydesk.sysmanage.service.ISysAppBindResultService;
import io.swagger.annotations.ApiOperation;
import org.spr... | true |
839dd2d2abe8d010e82b12f9429dc43d9b1d74a5 | Java | colorfulgrayscale/rofl | /src/database/DatabaseMessage.java | UTF-8 | 648 | 2.8125 | 3 | [] | no_license | package database;
public enum DatabaseMessage {
UPDATE_TABLES("updateTables"), UPDATE_ORDERS("updateOrders"), UPDATE_WALLS(
"updateWalls");
private String message;
private DatabaseMessage(final String aMessage) {
message = aMessage;
}
public String getListener() {
return "LISTEN " + message... | true |
2c2ffffc6ad98c0b736fa52207e787e8028037fb | Java | clorenz/WatchCheck | /src/de/uhrenbastler/watchcheck/ui/LogDialog.java | UTF-8 | 6,562 | 1.898438 | 2 | [] | no_license | /* ------------------------------------------------------------------------- *
$Source:$
$Author:$
$Date: $
$Revision: $
(C) 2006 Christoph Lorenz, <mail@christophlorenz.de>
All rights reserved.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License a... | true |
f100331d402ab2968f303038eee249d767680821 | Java | Timo-H/Dijkstra_Shortest_Path_en_Datastructuren | /src/Unit_Tests/ShortestPath/ReisTest.java | UTF-8 | 1,783 | 2.90625 | 3 | [] | no_license | package ShortestPath;
import org.junit.Test;
import java.util.ArrayList;
import static org.junit.Assert.*;
public class ReisTest {
@Test
public void getStappen() {
Vlucht vlucht = new Vlucht(30, 10);
Rit rit = new Rit(20);
Treinrit treinrit = new Treinrit(25);
ArrayList<Sta... | true |
f6c24207402bdf6550dbade6f440e6f24dd0ecb9 | Java | AntoninoAN/CustomConsumer | /app/src/main/java/com/example/tony/consumercontentprovider/MainActivity.java | UTF-8 | 2,353 | 2.34375 | 2 | [] | no_license | package com.example.tony.consumercontentprovider;
import android.content.ContentProviderClient;
import android.content.ContentValues;
import android.content.Intent;
import android.database.Cursor;
import android.net.Uri;
import android.os.RemoteException;
import android.support.v7.app.AppCompatActivity;
import android... | true |
6d18ab6591c157a369743360c246701dcefdedd4 | Java | hoaingo/new-project | /portal-service-new/src/main/java/com/pms/portal/model/Account.java | UTF-8 | 2,664 | 1.820313 | 2 | [] | no_license | package com.pms.portal.model;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.pms.jdbc.orm.Key;
import java.util.List;
/**
*
* @author conan
*/
public class Account {
@Key(value = "user_id")
private long userId;
@Key(value = "user_name")
private String userName;
@Key(value = "fu... | true |
a1718774dcb56d913a963e86d2834a1895ed66c6 | Java | amerrin/Portfolio | /Agent-Based Toy Factory (Group Project)/src/ServerClient/PrintsStringMessageToServer.java | UTF-8 | 412 | 2.703125 | 3 | [] | no_license | package ServerClient;
/* Test message class to print string on server. */
public class PrintsStringMessageToServer implements MessageToServer {
String myString;
public PrintsStringMessageToServer (String s) {
if (s!= null) myString = s;
else myString = new String("No message set");
}
public voi... | true |
5f56460f8ca2d992b91c668973f3a33288a60207 | Java | evgeniy-panferov/you-promocode-bot | /src/main/java/ru/youpromocodebot/controller/ImageController.java | UTF-8 | 1,245 | 2.421875 | 2 | [] | no_license | package ru.youpromocodebot.controller;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.http.HttpEntity;
import org.springframework.http.HttpHeaders;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.*;
import java.io.IOException;
import stat... | true |
d13b75feffd5e7a1692c1e529d10b7e710698a20 | Java | noisyle/crowbar | /crowbar-core/src/main/java/com/noisyle/crowbar/core/util/CryptoUtils.java | UTF-8 | 4,899 | 2.9375 | 3 | [] | no_license | package com.noisyle.crowbar.core.util;
import java.security.MessageDigest;
import java.security.SecureRandom;
import javax.crypto.Cipher;
import javax.crypto.KeyGenerator;
import javax.crypto.SecretKey;
import javax.crypto.spec.SecretKeySpec;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.noisy... | true |
4724c21069c5fa021f6ea35bc7477c12d3c78e0a | Java | alexandraback/datacollection | /solutions_5731331665297408_0/java/framalex/C.java | UTF-8 | 3,288 | 2.78125 | 3 | [] | no_license | import java.io.*;
import java.util.*;
import java.math.*;
public class C implements Runnable {
private String rec(int pos, int mask, ArrayList<Integer> list) {
if (Integer.bitCount(mask) == n) {
String ans = "";
int mm = 0;
for (int i = 0; i < list.size(); ++i) {
if ((mm & (1 << list.get(i... | true |
00a57399b504647108abce1e28fd12b9e2e39824 | Java | DomingosCastro/LPOO1617_T4G5 | /DungeonKeep/src/dungeon/cli/Input.java | UTF-8 | 199 | 2.484375 | 2 | [] | no_license | package dungeon.cli;
import java.util.Scanner;
public class Input
{
Scanner input = new Scanner(System.in);
public char read()
{
char letter= input.next().charAt(0);
return letter;
}
}
| true |
1d2e21f245d7a709696ebbc8f22b2b48fc7b87dc | Java | izabelaugrevska/das-project | /Homework4/backend-docker/object-catalog/src/main/java/mk/finki/ukim/das/objectcatalog/repository/ObjectRepository.java | UTF-8 | 949 | 2.25 | 2 | [] | no_license | package mk.finki.ukim.das.objectcatalog.repository;
import mk.finki.ukim.das.objectcatalog.model.Category;
import mk.finki.ukim.das.objectcatalog.model.Object;
import org.springframework.data.jpa.repository.JpaRepository;
import java.util.Set;
public interface ObjectRepository extends JpaRepository<Object, Long> {
... | true |
1b8b49e5c8f8d26c61231cab1f21a0e0e5b75e97 | Java | AmitVermadotcom/DSA_pepcoding | /Foundation/StackandQueue/queue/client.java | UTF-8 | 409 | 2.109375 | 2 | [] | no_license | public class client {
public static void main(String[] args){
dynamicQueue dq=new dynamicQueue(6);
for(int i=0;i<15;i++){
dq.push_(i*10);
}
System.out.println(dq.pop());
System.out.println(dq.pop());
System.out.println(dq.pop());
System.out.println... | true |
3d3225f31b69e306b9dc9c9877cc1b62f2ec4455 | Java | Aroddo/oca | /src/wbs/operatoren/TestDemo.java | UTF-8 | 525 | 2.890625 | 3 | [] | no_license | package wbs.operatoren;
public class TestDemo {
public static void main(String[] args) {
double x41 = 1.0e51;
double x42 = -1.0e51;
double x43 = 1.0e-51;
System.out.println(x41);
System.out.println(x42);
System.out.println(x43);
String s1 = "abc";
s1+="A";
s1 += 0xde;
... | true |
b171a03446838f95a4d6a73eb6e3e92ada777b8c | Java | taufiqjack/praxis-academy | /novice/02-01/kasus/app/src/main/java/kasusuji/Bicycle.java | UTF-8 | 777 | 3.109375 | 3 | [] | no_license | package kasusuji;
public abstract class Bicycle {
public int cadence = 0;
public int speed = 0;
public int gear = 1;
public Bicycle(int cadence, int speed, int gear) {
this.cadence = cadence;
this.speed = speed;
this.gear = gear;
}
public static void main(String[] arg... | true |
ab51c0426e606ac1705df082ca693c12a649cec1 | Java | dkovzan/applitools | /src/main/java/model/DataSet.java | UTF-8 | 2,270 | 2.984375 | 3 | [] | no_license | package model;
import java.util.List;
public class DataSet {
private String label;
private String backgroundColor;
private String borderColor;
private Long borderWidth;
private List<Long> data;
@Override
public String toString() {
return "DataSet{" +
"label='" + label + '\'' +
", backgroundColor='"... | true |
8c95995fffd73cc23cc458f2f7c590f395aff4ab | Java | iqbalkg/pbo1-pertemuan2 | /model/MataKuliah.java | UTF-8 | 269 | 2.125 | 2 | [] | no_license | package model;
public class Dosen{
public static void tampilanInfo(){
System.out.println();
System.out.println(==Data Mata Kuliah==):
System.out.println("Kode : TIF3402");
System.out.println("Nama : Pemprograman Berbasis Objek");
System.out.println("===========");
}
} | true |
1f20ff88a6d5729f340288b7078d27afaa861072 | Java | xindawang/batteryDD | /src/main/java/com/iot/dd/dao/entity/weixin/Menu.java | UTF-8 | 333 | 2.078125 | 2 | [] | no_license | package com.iot.dd.dao.entity.weixin;
/**
* Created by huanglin on 2017/7/15.
* 整个菜单对象的封装
*/
public class Menu {
private ComplexButton[] button;
public ComplexButton[] getButton() {
return button;
}
public void setButton(ComplexButton[] button) {
this.button = button;
}
}
| true |
81c3f307f49bfaf8b17005ad358fa615943c53a3 | Java | Psychedelic9/GofStudy | /src/iteratorPattern/CEOManager.java | UTF-8 | 589 | 3.09375 | 3 | [] | no_license | package iteratorPattern;
public class CEOManager extends AbstractLeaveHandler {
public CEOManager(String name) {
this.handlerManager = name;
}
@Override
void handLeave(LeaveRequest request) {
if (request.getLeaveDays()>MIDDLE && request.getLeaveDays()<MAX){
System.out.print... | true |
dc0970e919728de830fbe1091525d54e2606ab19 | Java | CedricNF/Essais-lundi-septembre | /src/main/java/com/inti/service/impl/ArticleService.java | UTF-8 | 827 | 2.046875 | 2 | [] | no_license | package com.inti.service.impl;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.inti.entites.Article;
import com.inti.repositories.ArticleRepository;
import com.inti.service.interfaces.IArticleService;
@Service
public cla... | true |
51dc6c8433e11afc9f1f175ebe8a541722bb9df3 | Java | Jeff-Playground/LeetCode | /src/com/wen/FourthFifty/ExcelSheetColumnTitle.java | UTF-8 | 287 | 2.671875 | 3 | [] | no_license | package com.wen.FourthFifty;
public class ExcelSheetColumnTitle {
public static String convertToTitle(int n) {
String result="";
while(n!=0){
n--;
result=(char)('A'+(n%26))+result;
n=n/26;
}
return result;
}
}
| true |
5f548af273a165a6a4af9bf88b1bff49ad038a65 | Java | marekzet/bdd-example-java | /test/integration/runners/PlacingOrderStepsRunner.java | UTF-8 | 1,315 | 1.96875 | 2 | [
"MIT"
] | permissive | package test.integration.runners;
import org.jbehave.core.Embeddable;
import org.jbehave.core.configuration.Configuration;
import org.jbehave.core.configuration.MostUsefulConfiguration;
import org.jbehave.core.io.CodeLocations;
import org.jbehave.core.junit.JUnitStories;
import org.jbehave.core.reporters.FilePrintStre... | true |
a53584aa0ecd53249f9d47ef86064c9fbc9e7fb0 | Java | lzybluee/Reeforge | /forge/src/forge/ai/ability/ControlExchangeAi.java | UTF-8 | 4,564 | 2.28125 | 2 | [] | no_license | package forge.ai.ability;
import com.google.common.base.Predicate;
import com.google.common.collect.Lists;
import forge.ai.ComputerUtil;
import forge.ai.ComputerUtilCard;
import forge.ai.SpellAbilityAi;
import forge.game.ability.AbilityUtils;
import forge.game.card.Card;
import forge.game.card.CardCollectio... | true |
aa2a1a05e41e052b94c203dfd76b624885e8c85b | Java | santieduardo/PDV-Android | /app/src/test/java/eduardosanti/com/br/pdv/dao/db/UserDAODB.java | UTF-8 | 3,601 | 2.65625 | 3 | [] | no_license | package eduardosanti.com.br.pdv.dao.db;
import android.content.ContentValues;
import android.content.Context;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import java.util.ArrayList;
import eduardosanti.com.br.pdv.dao.UserDAO;
import eduardosanti.com.br.pdv.model.User;
public class... | true |
48212b960f7732dad0a07c19300038eeaf439cfd | Java | Hexabinome/devoo | /src/main/java/modele/donneesxml/Livraison.java | UTF-8 | 2,411 | 3.21875 | 3 | [] | no_license | package modele.donneesxml;
import java.io.Serializable;
/**
* Représente une livraison à effectuer.
*
* @author mhaidara / maxou
*/
public class Livraison implements Serializable {
/** L'horaire de passe de la livraison, une fois que la tournée a été calculée */
private int horaireDePassage;
/**... | true |
bfa0618671ef75b8dd9a9436a18ef6ed91507041 | Java | BackupTheBerlios/projetp2s | /sources/p2s/P2S/Model/Projet.java | UTF-8 | 5,514 | 2.65625 | 3 | [] | no_license | package P2S.Model;
import java.util.*;
/**
*
* @author Fabien - Nicolas
*/
public class Projet {
//ATTRIBUTS
private String nom;
private String description;
private Date dateDebut;
private Date dateFin;
private IndicateursProjet indicateursProjet;
private Vector listeMesures;... | true |
56ea442b7fbb3413e5c52f1940ee6403a0abe2e6 | Java | Lee-sungheon/java8 | /src/Day01_11/Day0202.java | UHC | 432 | 3.359375 | 3 | [] | no_license | package Day01_11;
import java.util.*;
public class Day0202 {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int num1, num2;
System.out.print("num1,2 Է : ");
num1 = sc.nextInt();
num2 = sc.nextInt();
int result = num1 + num2;
System.out.print(" հ ");
... | true |
b6273e5771416202530c020d8f3fc39b68cddefa | Java | terhol/test2-2 | /src/se/terhol/pisemka22/Airplane.java | UTF-8 | 1,816 | 3.296875 | 3 | [
"MIT"
] | permissive | package se.terhol.pisemka22;
/**
* Airplane with given number of seats.
*
* @author Ludek Bartek
*/
public interface Airplane {
/**
* Returns passenger having reservation on the given seat.
*
* @param seat seat number (>= 0)
* @return passenger having reservation on the given seat or null
... | true |
a383c7710933451d7d0be00e3b8f8f20954e280f | Java | danyalwalker/Java-Programming | /src/OfficeHours/Practice/certification/JavaStatements.java | UTF-8 | 1,923 | 3.671875 | 4 | [] | no_license | package OfficeHours.Practice.certification;
public class JavaStatements {
public static void main(String[] args) {
boolean a = true;
int x = 2, y = 3,z;
if(a) z=x+y; else z=x-y;
System.out.println("z = " + z);
if(a) z=x+y; z=x-y;
System.out.println("z = " ... | true |
9f81ebbf99f239d634cb8fec07b0db05cc0075b6 | Java | dfiera/blackhole-api | /src/main/java/com/dfiera/blackholeapi/repository/StockDataCSVRepository.java | UTF-8 | 396 | 1.929688 | 2 | [] | no_license | package com.dfiera.blackholeapi.repository;
import com.dfiera.blackholeapi.entity.StockDataCSV;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;
import java.util.List;
@Repository
public interface StockDataCSVRepository extends MongoRepository<Stoc... | true |
3df4aef9acbbe4817029226828b054abdbdee0a3 | Java | P79N6A/lambda-xxoo | /01SourceCode/lambda-mls/lambda-core/src/main/java/com/yatop/lambda/core/mgr/workflow/component/ComponentMgr.java | UTF-8 | 1,077 | 1.976563 | 2 | [] | no_license | package com.yatop.lambda.core.mgr.workflow.component;
import com.yatop.lambda.base.model.WfCfgComponent;
import com.yatop.lambda.base.model.WfCfgComponentExample;
import com.yatop.lambda.core.enums.LambdaExceptionEnum;
import com.yatop.lambda.core.mgr.base.BaseMgr;
import com.yatop.lambda.core.enums.DataStatusEnum;
im... | true |
271fdfbbe07ce0b8821f86f6f03443c2fe96000f | Java | Davoleo/Java-GUI | /src/net/davoleo/javagui/forms/controls/JListGui.java | UTF-8 | 1,233 | 2.859375 | 3 | [] | no_license | package net.davoleo.javagui.forms.controls;
import javax.swing.*;
import javax.swing.event.ListSelectionEvent;
import javax.swing.event.ListSelectionListener;
import java.awt.*;
/*************************************************
* Author: Davoleo
* Date / Hour: 04/01/2019 / 15:47
* Class: JListGui
* Project: Java... | true |
ade89cee6f78889959467e385bfc8c724e293632 | Java | kwonmin123/test02 | /day08/src/encap/obj/Employee.java | UTF-8 | 124 | 2.21875 | 2 | [] | no_license | package encap.obj;
public class Employee {
public void cooking() {
System.out.println("요리합니다");
}
}
| true |
ea5bbfb73bc7690ab505b2d55d03e73451d9f10d | Java | qq316577877/sys-admin-web | /src/main/java/com/fruit/sys/admin/action/LoginAction.java | UTF-8 | 3,488 | 1.890625 | 2 | [] | no_license | /*
* Copyright (c) 2017-2022 by Ovfintech (Wuhan) Technology Co., Ltd.
* All right reserved.
*/
package com.fruit.sys.admin.action;
import com.fruit.sys.admin.model.JsonResult;
import com.fruit.sys.admin.model.UserInfo;
import com.fruit.sys.admin.service.EnvService;
import com.fruit.sys.admin.service.admin.AdminSe... | true |
9292ec35915549295c06686672ee6442934644b5 | Java | cuijiehui/doubao | /app/src/main/java/com/xinspace/csevent/sweepstake/weiget/ReceivSucDialog.java | UTF-8 | 1,181 | 1.882813 | 2 | [] | no_license | package com.xinspace.csevent.sweepstake.weiget;
import android.app.Dialog;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup.LayoutParams;
import android.widget.Button;
import android.widget.ImageView;
import android.widget.TextView;
import com... | true |
b1856d05646c2b616f27fbdcd4b4499e29770613 | Java | Alexandelphi/leetcode | /src/main/java/com/alexandelphi/leetcode/easy/FindTheDifference.java | UTF-8 | 816 | 3.53125 | 4 | [] | no_license | package com.alexandelphi.leetcode.easy;
import java.util.HashMap;
import java.util.Map;
public class FindTheDifference {
// my naive version
public char findTheDifference(String s, String t) {
Map<Character, Integer> map = new HashMap<>();
for (char c : s.toCharArray()) {
map.put(c, map.getOrDefault... | true |
1909b3b7cd7f93e341db52924417adabb5cfa152 | Java | RUPANSHURAMAN/CORE-JAVA | /27Exception/src/finalkeyword/C.java | UTF-8 | 243 | 2.6875 | 3 | [] | no_license | package finalkeyword;
//DIFFERENT
public class C {
public static void main(String[] args) {
C c1 = new C();
c1.test(10);
}
public void test(final int i) {
//i = 30; ERROR as final var can't be changed
System.out.println(i);
}
}
| true |
13b043ca4d7a3c010739bc67e633a305954e71b9 | Java | KristiansKaneps/OneInTheChamber | /src/main/java/lv/kaneps/oitc/scoreboard/Scoreboard.java | UTF-8 | 1,246 | 3.28125 | 3 | [
"MIT"
] | permissive | package lv.kaneps.oitc.scoreboard;
public class Scoreboard
{
protected final ScoreboardEntry[] entries;
protected int validEntries = 0;
protected final int size;
public Scoreboard(int size)
{
this.size = size;
entries = new ScoreboardEntry[size];
}
public boolean isFull()
{
return validEntries == size... | true |
b4eae31f394a3704a69a1f6e4a8311c1b2d3e4a9 | Java | tkirschenheiter/assignment3 | /Apple.java | UTF-8 | 227 | 3.078125 | 3 | [] | no_license |
public class Apple extends Fruit {
public Apple (String name, String taste, Double size) {
super(name,taste,size);
}
public Apple () {
}
public void eat() {
System.out.printf("Apples taste sweet \n");
}
}
| true |
73a17a05979ef259d5bba6c6440db8ea927b5ef2 | Java | SwiftOSSite/SwiftFrameWork | /src/main/java/net/gy/SwiftFrameWork/MVVM/Entity/ViewBinderLevel.java | UTF-8 | 629 | 2.109375 | 2 | [] | no_license | package net.gy.SwiftFrameWork.MVVM.Entity;
import java.lang.reflect.Field;
import java.util.Map;
/**
* Created by pc on 16/8/30.
*/
public class ViewBinderLevel {
private Map<Field,ViewBindEntity> elements;
private Map<Field,ViewBinderLevel> objs;
public Map<Field, ViewBindEntity> getElements() {
... | true |
01f30fbc852a9d757048487f9a0c085ef6433b8f | Java | richardpuma/ProjectsWordPress | /src/CoreJavaApi/DemoCoreJavaApi.java | UTF-8 | 454 | 2.8125 | 3 | [] | no_license | package CoreJavaApi;
public class DemoCoreJavaApi {
public static void main(String[] args) {
StringBuilder sb= new StringBuilder("Hola Mundo");
StringBuilder sb2= new StringBuilder("Hola Mundo");
System.out.println("equals en StringBuilder");
System.out.println(sb.equals(sb2));
... | true |
49ab1eacfad2bc0eab4b07ed20985cb7c76f06f3 | Java | lschuetze/Alf-Reference-Implementation | /org.modeldriven.alf/src/org/modeldriven/alf/syntax/statements/impl/IfStatementImpl.java | UTF-8 | 12,401 | 2.25 | 2 | [] | no_license |
/*******************************************************************************
* Copyright 2011, 2012 Data Access Technologies, Inc. (Model Driven Solutions)
* Copyright 2013 Ivar Jacobson International SA
*
* All rights reserved worldwide. This program and the accompanying materials
* are made available fo... | true |
8a5c20e44526a3bfd4239cb70fb972a2d6d3ba40 | Java | pict-sdl-grp/TripPlanner | /app/src/main/java/com/project/sdl/tripplanner/TripsPackage/Trip.java | UTF-8 | 636 | 2.234375 | 2 | [] | no_license | package com.project.sdl.tripplanner.TripsPackage;
import com.google.firebase.database.IgnoreExtraProperties;
/**
* Created by Manish Chougule on 02-08-2019.
*/
@IgnoreExtraProperties
public class Trip {
public String tripName;
public String createdBy;
public int noOfItems;
public String id;
... | true |
91ff0ddb57c76bf65b8dab73cdb84450d62a8466 | Java | veeravilla/apr2018 | /springjpademo/src/main/java/com/test/springjpademo/dao/AccountRepository.java | UTF-8 | 410 | 1.882813 | 2 | [] | no_license | package com.test.springjpademo.dao;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;
import com.test.springjpademo.entity.Account;
@Repository
public interface AccountRepository extends Jp... | true |
e31fe9ddcf8880c0898b50b34a381c68d299caa4 | Java | BrandtRobert/RayTracer | /Colorable.java | UTF-8 | 131 | 2.15625 | 2 | [] | no_license | /**
* Defines an object that has a matlib material property.
*/
public interface Colorable {
public Material getMaterial();
} | true |
fcf370f7847011550b23fd88c00a6160dc8a019e | Java | qiyuanzhao/la-conllector | /src/main/java/com/lavector/collector/crawler/kafka/Consumer.java | UTF-8 | 2,110 | 2.546875 | 3 | [] | no_license | package com.lavector.collector.crawler.kafka;
import org.apache.kafka.clients.consumer.ConsumerConfig;
import org.apache.kafka.clients.consumer.ConsumerRecord;
import org.apache.kafka.clients.consumer.ConsumerRecords;
import org.apache.kafka.clients.consumer.KafkaConsumer;
import org.apache.kafka.common.serialization.... | true |
0e712166c4f8d0fc55b041b35d11217ec016b944 | Java | sano91/breadth-first-search | /src/main/java/com/codecool/bfsexample/service/DistanceBelowZeroException.java | UTF-8 | 191 | 1.984375 | 2 | [] | no_license | package com.codecool.bfsexample.service;
class DistanceBelowZeroException extends RuntimeException {
DistanceBelowZeroException() {
super("Distance cannot be under 0");
}
}
| true |
5795edd393ce8c159e9f5d360ddb5a8f81e618e8 | Java | mlechnyput/3-1-2-bootstrap | /src/main/java/app/service/UserServiceImpl.java | UTF-8 | 1,865 | 2.3125 | 2 | [] | no_license | package app.service;
import app.dao.RoleDao;
//import app.dao.RoleDaoImpl;
import app.dao.UserDao;
import app.models.Role;
import app.models.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;
import org.springframework.stereotyp... | true |
c2e0f75657532a9edf2a58708495cb1b88174efc | Java | edanca/java-traditional-test-framework | /src/main/java/components/Recommendations.java | UTF-8 | 201 | 1.601563 | 2 | [] | no_license | package components;
import base.Base;
import org.openqa.selenium.WebDriver;
public class Recommendations extends Base {
public Recommendations(WebDriver driver) {
super(driver);
}
}
| true |
f3fdc5ac6c6fe3c741ae1f503c911b6be3bbe829 | Java | on-the-roads/LeetCode | /src/com/Solution/LinkedList/IntersectionOfTwoLinkedList160.java | UTF-8 | 1,273 | 4.09375 | 4 | [] | no_license | package com.Solution.LinkedList;
/**
* 题目:求两个链表相交的第一个结点,要求时间复杂度为O(n),空间复杂度为O(1)。若无相交结点则返回null。
* 思路:假设链表A和链表B的公共部分长度为c,A和B私有部分的长度分别为a和b,则a+c+b=b+c+a.
* 这个表达式的意思是A和B同时从他们的头结点开始向后访问,
* 当A访问到链表末尾时开始从B头结点访问;同样,当B访问到链表末尾时开始从A头结点访问。
* 最终,他们会在第一个相交结点相遇。若AB没有相交结点,那么他们会最终同时指向null.
*
*/
public class Inters... | true |
16a663f639193d9abcaf3b7915075e80a3584b3b | Java | 13dec2537/LionMonitoringDemo | /app/src/main/java/com/example/kuybeer26092016/lionmonitoringdemo/activitys/HistoryActivity.java | UTF-8 | 7,814 | 1.625 | 2 | [] | no_license | package com.example.kuybeer26092016.lionmonitoringdemo.activitys;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.graphics.Typeface;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActiv... | true |
09b40c2f8b26ac83f7e74d77a4583575c416923a | Java | dongwan47/Bizpoll_504 | /bizpoll/src/com/bizpoll/action/BoardAction.java | UTF-8 | 595 | 1.96875 | 2 | [] | no_license | package com.bizpoll.action;
import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import com.bizpoll.dao.BoardDAO;
public class BoardAction implements Action{
@Override
public ActionFoward excute(HttpServlet... | true |
50848c674084f77b83beaaa9b0087a21ecb281ab | Java | taquy/PRJ311-MartManager | /src/View/Update/UpdateStock.java | UTF-8 | 13,285 | 1.929688 | 2 | [] | no_license |
package View.Update;
import Cache.cStock;
import Cache.cUser;
import Entity.Product;
import Entity.Stock;
import Entity.User;
import Middleware.Validation;
import Model.StockModel;
import Model.UserModel;
import View.Dialog;
import View.Interface.IBundle;
import View.VValidate;
import java.text.ParseException;
import... | true |
b7dbd518f78e40e6f834ef2168d3bddc9d927f97 | Java | achowdhury80/leetcode | /src/com/leet/algo/Prob692.java | UTF-8 | 1,414 | 3.34375 | 3 | [] | no_license | package com.leet.algo;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.Comparator;
import java.util.HashMap;
import java.util.LinkedList;
import java.util.List;
import java.util.Map;
/**
* Created by ayanc on 12/7/17.
*/
public class Prob692 {
public List<String... | true |
b42a1d24770295a90cfcfc55c231735b40b6af8b | Java | ctripcorp/x-pipe | /redis/redis-console/src/main/java/com/ctrip/xpipe/redis/console/spring/XPipeServletInvocableHandlerMethod.java | UTF-8 | 3,912 | 1.914063 | 2 | [
"Apache-2.0"
] | permissive | package com.ctrip.xpipe.redis.console.spring;
import com.ctrip.xpipe.api.command.Command;
import com.ctrip.xpipe.api.monitor.EventMonitor;
import com.ctrip.xpipe.api.sso.UserInfoHolder;
import com.ctrip.xpipe.redis.console.controller.Health;
import com.ctrip.xpipe.redis.console.controller.api.migrate.MigrationApi;
imp... | true |
17e29790cd519e530c1ab58b8a7654c1f37a8dff | Java | QYJS007/JavaProject02 | /PDF/src/cg/main/pdfDomainVO.java | UTF-8 | 435 | 1.609375 | 2 | [] | no_license | package cg.main;
import java.io.File;
public class pdfDomainVO {
public File getInputfile() {
// TODO Auto-generated method stub
return null;
}
public int getPageno() {
// TODO Auto-generated method stub
return 0;
}
public void setContent(String content) {
// TODO Auto-generated met... | true |
0280ef7d42b497f89ecb1eb3728b682f308e8fb5 | Java | ALJet/MVPDemoTest | /app/src/main/java/indi/aljet/mvpdemotest/ui/activity/WeatherActivity.java | UTF-8 | 787 | 1.921875 | 2 | [] | no_license | package indi.aljet.mvpdemotest.ui.activity;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;
import butterknife.BindView;
import indi.aljet.mvpdemotest.R;
import indi.aljet.mvpdemotest.bean.WeatherData;
import indi.aljet.mvpdemotest.view.WeatherVie... | true |
abaecec921b19df01b418ab3deac716271b38a17 | Java | dschadow/JavaSecurity | /crypto-tink/src/test/java/de/dominikschadow/javasecurity/tink/hybrid/EciesWithAwsKmsSavedKeyTest.java | UTF-8 | 2,854 | 2.28125 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright (C) 2023 Dominik Schadow, dominikschadow@gmail.com
*
* This file is part of the Java Security project.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www... | true |
da56f5f486c132a8bee80b40bff65bbb16863ea5 | Java | MilanPatel718/Android-Photo-App | /app/src/main/java/photos/photosandroid/displayPhoto.java | UTF-8 | 21,115 | 1.828125 | 2 | [] | no_license | package photos.photosandroid;
import android.content.ComponentName;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.database.Cursor;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.media.Image;
import android.ne... | true |
c1ef90a56e407138f23610d44449a7d94bed251b | Java | Searay-330/ReviewSessionExamples | /code reading/src/human/Driver.java | UTF-8 | 1,290 | 3.78125 | 4 | [] | no_license | package human;
import java.util.ArrayList;
public class Driver {
public static void main(String[] args) {
human humanOne = new human(5, 110, 20, "blue", "Glenn");
human humanTwo = new human(6, 180, 35, "green", "Carl");
human humanThree = new human(4, 95, 40, "brown", "Jessie");
human humanFour = new human(... | true |
3b9536698e33eae5993dd3cb6b34783f6610b0b7 | Java | Zoran-Han/java | /demo0729/src/com/demo/oop/impl/Circle.java | UTF-8 | 1,803 | 3.4375 | 3 | [] | no_license | package com.demo.oop.impl;
import com.demo.oop.IShape;
import com.demo.oop.ParentInterface2;
/**
* @ClassName Circle
* @Description TODO
* @Author Hzrobo
* @CreateDate 2019年07月29日 16:13:13
* @Version 1.0.0
*/
/*
public class Circle implements IShape ,ParentInterface2 {//实现类可以实现多个接口
@Override
public ... | true |
1d8ad63fd9badcf98fb8fdbcc8d5b2b15aa673d0 | Java | linseycurrie/CClan_Week_12 | /Day03/Lab/src/main/java/Customer.java | UTF-8 | 654 | 2.8125 | 3 | [] | no_license | import java.util.ArrayList;
public class Customer {
private ArrayList<IProduct> purchases;
private ArrayList<Double> balance;
private ArrayList<Double> currentSpent;
public Customer(ArrayList<IProduct> purchases, ArrayList<Double> balance, ArrayList<Double> currentSpent) {
this.purchases = pu... | true |
1d863aadf2300a5e9ca0a8c604685b0435b23406 | Java | chenyantaoaaa/MyJavaResearchDemos | /src/com/mybatis/imitateMybatis/TestM.java | UTF-8 | 469 | 1.851563 | 2 | [] | no_license | package com.mybatis.imitateMybatis;
import org.junit.Test;
/**
* @author chenyantao
* @date 2017/11/10.
*/
public class TestM {
@Test
public void test1(){
MySqlSession mySqlSession = new MySqlSession("mybatis-config.xml","com/mybatis/mapper/UserMapper.xml");
// List<String> param = new Array... | true |
ff5344207e14d4476c4691c0b0ae5e92faeec8ec | Java | MeenuVNair/CodingSkills | /src/main/java/com/meenu/codingskills/datastructures/stack/ReverseStringWithStack.java | UTF-8 | 1,100 | 3.890625 | 4 | [] | no_license | package com.meenu.codingskills.datastructures.stack;
/**
* @author Meenu V Nair
*
*/
public class ReverseStringWithStack {
static int MAX_SIZE = 101;
static char arr[] = new char[MAX_SIZE];
static int top = -1;
public void findSolution() {
String input = "Hello";
/*Scanner input = new Scanner(System.in);... | true |
38db85e0d8ca3d0bbff5da5167634f9dcc1a14d5 | Java | blairjackson/Java-file-handler | /src/file_handler/Input.java | UTF-8 | 791 | 3.609375 | 4 | [] | no_license | package file_handler;
import java.util.Scanner;
/**
*
* @author blairjackson
*/
public class Input {
//get user input and pass to check if valid
int get_choice() {
Scanner sc = new Scanner(System.in);
System.out.println("Select an option: ");
int choice = sc.nextInt()... | true |
b7cd61c06f478fc7dbd4ef5970cf9833cf4f5272 | Java | yongjin5184/jpa_example | /src/main/java/com/example/jpa_example/model/entity/instagram/post/Post.java | UTF-8 | 1,492 | 1.945313 | 2 | [] | no_license | package com.example.jpa_example.model.entity.instagram.post;
import java.util.List;
import javax.persistence.Column;
import javax.persistence.ElementCollection;
import javax.persistence.Embedded;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.... | true |
6c8ad458bf0be92ccbe8aaf00916d2b636f3709f | Java | syncwt/personal | /src/main/java/com/beust/AssistedTest.java | UTF-8 | 4,061 | 2.984375 | 3 | [] | no_license | package com.beust;
import com.google.inject.Binder;
import com.google.inject.Binding;
import com.google.inject.Guice;
import com.google.inject.Inject;
import com.google.inject.Injector;
import com.google.inject.Module;
import com.google.inject.Singleton;
import com.google.inject.assistedinject.Assisted;
import com.goo... | true |
0605827639df4cd22b37a0a6465eb44733fcbe8f | Java | ChaoYongAtom/applibrary | /lib_webview/src/main/java/com/wcy/app/lib/web/js/JsEntraceAccess.java | UTF-8 | 224 | 1.617188 | 2 | [] | no_license | package com.wcy.app.lib.web.js;
import android.webkit.ValueCallback;
public interface JsEntraceAccess extends QuickCallJs {
void callJs(String js, ValueCallback<String> callback);
void callJs(String js);
}
| true |
e38c287ec74e3a1cd4d8d06efcca9b7ecd87ce40 | Java | AkinoriNoujima/NoughtsAndCrosses2 | /src/com/example/noughtsandcrosses2/MarubatsuBoard.java | UTF-8 | 2,047 | 3.375 | 3 | [] | no_license | package com.example.noughtsandcrosses2;
public class MarubatsuBoard {
// 012
// 345
// 678
/** ゲーム盤の選択状況 */
public String[] board = { "-", "-", "-", "-", "-", "-", "-", "-", "-" };
/** 現在のターン数 */
public int turn = 0;
/**
* ゲーム盤のnで指定された箇所が空欄であるか?
* @param n 0~8までの数値
* @return 空欄の場合true, 誰かが選択済みの場合false
... | true |
1dc33ca5608b8d8a6dafe64266edf3d1f78228a1 | Java | Viral-patel703/Testyourbond-aut0 | /lib/selenium-server-standalone-3.4.0/com/gargoylesoftware/htmlunit/javascript/host/event/MessageEvent.java | UTF-8 | 4,739 | 1.953125 | 2 | [] | no_license | package com.gargoylesoftware.htmlunit.javascript.host.event;
import com.gargoylesoftware.htmlunit.BrowserVersion;
import com.gargoylesoftware.htmlunit.BrowserVersionFeatures;
import com.gargoylesoftware.htmlunit.javascript.configuration.JsxClass;
import com.gargoylesoftware.htmlunit.javascript.configuration.JsxConstru... | true |
294c0bfedda0e5c331561b2c28a3364884300dda | Java | SabinaRe/Food-App | /app/src/main/java/com/example/tab/Sign_frag.java | UTF-8 | 926 | 1.875 | 2 | [] | no_license | package com.example.tab;
import android.content.Intent;
import android.os.Bundle;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.fragment.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
... | true |
eae8dca0809633c7a6026a52a542fbf98110f30b | Java | joejames1996/Cinemagic | /src/main/java/org/softwire/training/cinemagic/controllers/CinemaController.java | UTF-8 | 1,764 | 2.390625 | 2 | [] | no_license | package org.softwire.training.cinemagic.controllers;
import org.softwire.training.cinemagic.exceptions.NotFoundException;
import org.softwire.training.cinemagic.models.Cinema;
import org.softwire.training.cinemagic.models.Showing;
import org.softwire.training.cinemagic.services.CinemaService;
import org.softwire.train... | true |
126234938da07aac872e2e3a0330acd519bc97ec | Java | TannerJack/Introduction-to-Algorithms-Data-Structures-and-Program-Development | /Lab4/Lab4.java | UTF-8 | 927 | 3.75 | 4 | [] | no_license | class Zillion
{
private int digits[] ; //array of digits
public Zillion(int size)
{
digits = new int[size]; //set digits to size parameter
}
public void increment()
{
int length = digits.length; //Length of array
int counter = 0;
int index = length - 1; //Index in counter
while (counter... | true |
0bf6d56432558dd5d7199b1c2beb645af5e7c3c0 | Java | fix27/SwingJS-Examples | /src/test/Test_Or.java | UTF-8 | 757 | 2.609375 | 3 | [] | no_license | package test;
class Test_Or extends Test_ {
public static void main(String[] args) {
int count = 0;
boolean ok = true;
ok |= (count++ == 0);
ok |= (count++ == 0);
System.out.println(count);
assert (count == 2);
ok = false;
ok &= (count++ == 0);
ok &= (count++ == 0);
System.out.... | true |
9a84ea1fa0a02f229b03bfe9c8ef83bd863fcd7c | Java | dev4love/Weather-Android | /app/src/main/java/cn/lovexiaov/weather/presentation/main/daily/DailyFragment.java | UTF-8 | 2,020 | 2.09375 | 2 | [] | no_license | package cn.lovexiaov.weather.presentation.main.daily;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
i... | true |
fb72c65e70e53f05fa361a0ff97c6c828bb42215 | Java | caojinlin/crm-ssm | /myspring/src/main/java/org/myspring/beans/factory/support/GenericBeanDefinition.java | UTF-8 | 823 | 2.234375 | 2 | [] | no_license | package org.myspring.beans.factory.support;
import org.myspring.beans.BeanDefinition;
public class GenericBeanDefinition implements BeanDefinition {
private String id;
private String beanClassName;
private String scope;
public GenericBeanDefinition(String id, String beanClassName) {
this.i... | true |
d4d1ec393404b8a206f4e0b64bde0df83ae9749e | Java | kelvinrk/RU-Hungry | /src/com/example/myfood/RestaurantActivity.java | UTF-8 | 7,373 | 2.140625 | 2 | [] | no_license | package com.example.myfood;
import java.io.InputStream;
import java.util.ArrayList;
import android.app.Activity;
import android.app.AlertDialog;
import android.content.DialogInterface;
import android.content.Intent;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.net.Uri;
import ... | true |
79fba9c1c46df46d17aa4e85a308be2096e9bd3c | Java | w52ddz/simple_android | /app/src/main/java/com/example/simpleandroidproject/MainActivity.java | UTF-8 | 2,765 | 2.328125 | 2 | [] | no_license | package com.example.simpleandroidproject;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.AdapterView;
import android.widget.ArrayAdapter;
import android.widget.ListView;
import android.widget.Toast;
impo... | true |
584dd5b8a69951bb2c492185fb6cf1dd7da666e2 | Java | VSanchezBarre/Obligatoriojuego2s | /ObligatorioJuegoFinal/src/PackageJuego/Sistema.java | UTF-8 | 13,526 | 3.015625 | 3 | [] | no_license | //author Valentin Sanchez Ignacio Pigatto
package PackageJuego;
import static PackageJuego.JuegoMain.pedirUnIntValidado;
import static PackageJuego.Tablero1.*;
import java.util.ArrayList;
import java.io.*;
import java.util.Scanner;
public class Sistema implements Serializable {
private ArrayList<Jugad... | true |
0856f0e3973b1d3906cdd08b05f0c0290c58958f | Java | dennisvoliver/minecraft | /net/minecraft/command/argument/GameProfileArgumentType.java | UTF-8 | 5,102 | 2.046875 | 2 | [] | no_license | package net.minecraft.command.argument;
import com.google.common.collect.Lists;
import com.mojang.authlib.GameProfile;
import com.mojang.brigadier.StringReader;
import com.mojang.brigadier.arguments.ArgumentType;
import com.mojang.brigadier.context.CommandContext;
import com.mojang.brigadier.exceptions.CommandSyntaxEx... | true |
22b21cda3c12a3f981c9c5cee22d6ab810266382 | Java | Krasnyanskiy/cassandra-playground | /cassandra-basic/src/main/java/il/arri/cassandra/playground/model/User.java | UTF-8 | 253 | 1.765625 | 2 | [] | no_license | package il.arri.cassandra.playground.model;
import lombok.Data;
/**
* @author Arri Goldberg
*/
@Data
public class User {
private String id;
private String firstName;
private String lastName;
private Integer age;
private String email;
}
| true |