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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
6ffc0babc1d38686cad33192917486a1f7150d87 | Java | wang-shun/authority | /src/main/java/com/galaxy/authority/common/MyThreadPool.java | UTF-8 | 629 | 2.40625 | 2 | [] | no_license | package com.galaxy.authority.common;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
public class MyThreadPool {
private static MyThreadPool threadPool = null;
private static ExecutorService pool = null;
public static synchronized MyThreadPool get(){
if(threadPoo... | true |
66d68a4d280342a163ba90f5337093a4f2205589 | Java | azhkhn/erpnext | /module/app/erpnext-oa/src/main/java/com/erpnext/oa/act/service/ActFormService.java | UTF-8 | 743 | 1.648438 | 2 | [] | no_license | package com.erpnext.oa.act.service;
import java.util.List;
import org.flowable.form.api.FormDeployment;
import org.flowable.form.model.FormModel;
import org.springframework.data.domain.Pageable;
import com.erpnext.oa.act.dto.FormRepresentation;
import com.erpnext.oa.act.dto.FormSaveRepresentation;
import com.erpnext... | true |
adda698f348f09ac2a26c1002b6f1a28abeb59bd | Java | LostVirt/DreamDax | /src/org/dreambot/walker/dax/models/BankPathRequestPair.java | UTF-8 | 371 | 2.25 | 2 | [] | no_license | package org.dreambot.walker.dax.models;
public class BankPathRequestPair {
private Point3D start;
private RSBank bank;
public BankPathRequestPair(Point3D start, RSBank bank) {
this.start = start;
this.bank = bank;
}
public Point3D getStart() {
return start;
}
publ... | true |
b5c3f1ac05ee7b39f758d2194dcc2179c9a20317 | Java | Mihisuru/madproject | /app/src/main/java/com/example/etrain/TrainShedule.java | UTF-8 | 1,404 | 2.09375 | 2 | [] | no_license | package com.example.etrain;
import android.os.Bundle;
import android.widget.ImageView;
import androidx.annotation.NonNull;
import androidx.appcompat.app.AppCompatActivity;
import com.google.firebase.database.DataSnapshot;
import com.google.firebase.database.DatabaseError;
import com.google.firebase.database.Database... | true |
713e829a280f4f18a1146ad689e4a099202ece84 | Java | Hikarikun92/kafka-ui | /src/main/java/br/hikarikun92/kafkaui/xml/Property.java | UTF-8 | 2,798 | 2.765625 | 3 | [] | no_license | package br.hikarikun92.kafkaui.xml;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import java.util.Objects;
/**
* Class defining a name-value association according to the values in the XML configuration file. The name ... | true |
155def709903059868266c840340cc57576501ea | Java | Erwatt/JAVA_Basket | /Basket/src/main/java/basket/fault.java | UTF-8 | 902 | 2.65625 | 3 | [] | no_license |
package basket;
/**
*
* @author erwan & adrien
*/
/*declaration des fonctions*/
public class Fault {
/*gere les fautes et les attributions au joueur et equipe*/
public void new_fault(Team team, Player p, Boolean lancer, Integer Nbr_lancer, Player shooter, Team shooter_team){
... | true |
657fa66024b16c999998f3959646959ea1d90327 | Java | Saphyra/apphub | /apphub-integration/src/main/java/com/github/saphyra/apphub/integration/action/frontend/notebook/NotebookSettingActions.java | UTF-8 | 1,631 | 2.46875 | 2 | [] | no_license | package com.github.saphyra.apphub.integration.action.frontend.notebook;
import com.github.saphyra.apphub.integration.framework.SleepUtil;
import com.github.saphyra.apphub.integration.framework.WebElementUtils;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
... | true |
8dbef47a29bcead9a5a36665fd03b19649c051af | Java | plopezm/kafka-rest-proxy | /src/main/java/com/plopezm/proxy/proxy/entity/NewTopicRequest.java | UTF-8 | 319 | 1.710938 | 2 | [
"MIT"
] | permissive | package com.plopezm.proxy.proxy.entity;
public class NewTopicRequest {
private String topicName;
private int partitions;
private short replicas;
public String getTopicName() {
return topicName;
}
public int getPartitions() {
return partitions;
}
public short getReplicas() {
return replicas;
}
}
| true |
9b7c8ba7ea5c8024c1499c106625a54bbe8ed982 | Java | K-YOUTH/Age-of-Exile | /src/main/java/com/robertx22/age_of_exile/database/data/rarities/containers/GearRarities.java | UTF-8 | 3,396 | 2.265625 | 2 | [] | no_license | package com.robertx22.age_of_exile.database.data.rarities.containers;
import com.robertx22.age_of_exile.database.data.MinMax;
import com.robertx22.age_of_exile.database.data.rarities.BaseRaritiesContainer;
import com.robertx22.age_of_exile.database.data.rarities.IGearRarity;
import com.robertx22.age_of_exile.database.... | true |
cb2c0eaeddb120263460bb98089c18f7b48e92a7 | Java | JeremyZhuzz/Problem-of-Cannibals | /ProblemofCannibals.java | UTF-8 | 17,648 | 3.109375 | 3 | [] | no_license | import java.util.HashSet;
import java.util.Set;
//close to due time.
//Dont have time to debug
public class ProblemofCannibals extends Problem {
//initialize people
static final int cann1 = 0;
static final int cann2 = 1;
static final int cann3 = 2;
static final int miss1 = 3;
static f... | true |
a2e81351ecd92c7069f7e53f06eb270162a89803 | Java | sikakente/design-patterns-java | /src/com/design/patterns/creational/builder/StringBuilderDemo.java | UTF-8 | 346 | 3.03125 | 3 | [] | no_license | package com.design.patterns.creational.builder;
public class StringBuilderDemo {
public static void main(String[] args){
StringBuilder builder = new StringBuilder();
builder.append("First line");
builder.append(90000);
builder.append("Some lines");
System.out.println(bui... | true |
6a03f32a19a13c6c2c166d681ff93a6ed3dfd600 | Java | QinShi-SHE/JavaSe | /src/qinshi/day13/work/PersonCreate.java | UTF-8 | 510 | 3.28125 | 3 | [] | no_license | package qinshi.day13.work;
/**
* @Author LiQin
* @Version 1.o
* @ClassName PersonCreate
* @Date 2021/1/17 14:03
*/
public class PersonCreate {
/*
定义一个PersonCreate类:
创建两个对象,分别是zhangsan,33岁,1.73;lishi,44,1.74
分别调用对象的sayHello()方法。
*/
public static void main(String[] args) {
Person p1=new Per... | true |
c3f5431066f80321d82b29e85d11717c86f762f1 | Java | kavusiks/MyWorkJournal | /myworkjournal/src/main/java/myworkjournal/ui/DataInputController.java | UTF-8 | 4,381 | 2.71875 | 3 | [] | no_license | package myworkjournal.ui;
import javafx.fxml.FXML;
import javafx.scene.control.*;
import myworkjournal.core.Work;
import myworkjournal.core.WorkPeriod;
import java.io.IOException;
import java.time.LocalDate;
public class DataInputController extends AbstractController {
@FXML DatePicker workStartDatePicker;
@FX... | true |
528eec6bbd56ea5e5607542a370aa065ef135dc4 | Java | pratikranjane94/ApkDownloader-MVC- | /src/main/java/com/game/controllers/FileController.java | UTF-8 | 7,008 | 2.390625 | 2 | [] | no_license | /*File Name : FileController.java
*Created By: PRATIK RANJANE
*Purpose : Storing the uploaded file, creating JOUSP of games presents in files,
* creating CSV file of details of games using and displaying on web page using Socket,
* Downloading the file.
* */
package com.game.controllers;
import java.io.B... | true |
4214b0fa15b1b10c12d01e0bf09adc24c925ec46 | Java | zhongxingyu/Seer | /Diff-Raw-Data/32/32_cd711d7697ed5ce3a54be23fd5036414ec453c85/IntervalMergerWalker/32_cd711d7697ed5ce3a54be23fd5036414ec453c85_IntervalMergerWalker_s.java | UTF-8 | 5,115 | 2.21875 | 2 | [] | no_license | /*
* Copyright (c) 2009 The Broad Institute
* Permission is hereby granted, free of charge, to any person
* obtaining a copy of this software and associated documentation
* files (the "Software"), to deal in the Software without
* restriction, including without limitation the rights to use,
* copy, modify,... | true |
91f8e0efb9e2c3d08ec951086a278cfd4b76580b | Java | Mindkilla/monetka | /src/main/java/kz/monetka/server/controllers/PaymentsController.java | UTF-8 | 1,617 | 2.203125 | 2 | [] | no_license | package kz.monetka.server.controllers;
import kz.monetka.server.models.PaymentModel;
import kz.monetka.server.services.PaymentService;
import kz.monetka.server.utils.Consts;
import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
... | true |
35b5fa461d73521a0645dc914e91cee2e8ef8012 | Java | dmunguiatec/IC-6821-TC2 | /src/main/java/edu/tec/ic6821/tictactoe/Board.java | UTF-8 | 2,566 | 3.390625 | 3 | [] | no_license | package edu.tec.ic6821.tictactoe;
public final class Board {
private static final int BOARD_NUMBER_OF_ROWS = 3;
private static final int BOARD_NUMBER_OF_COLS = 3;
private final Token[][] board =
new Token[BOARD_NUMBER_OF_ROWS][BOARD_NUMBER_OF_COLS];
private int freeCells = BOARD_NUMBER_OF_RO... | true |
261d99285ed53c9669f8362f18f5339fdd90ffee | Java | CalNightingale/Heuristics-Test | /BruteForce.java | UTF-8 | 2,731 | 2.96875 | 3 | [] | no_license | import java.io.File;
import java.io.FileNotFoundException;
import java.time.Instant;
import java.time.Duration;
import java.util.Arrays;
import java.io.PrintWriter;
import java.util.ArrayList;
public class BruteForce extends Heuristic{
File file;
File debugFile = new File("C:/Users/calni/Documents/Programs/debug.t... | true |
0d361964fe81e02f80fa1884b6fb87ca64eb1d66 | Java | sunnyjinyubao/design-pattern-java- | /常用设计模式/src/工厂模式/扩展/替代单例模式/SingletonFactory.java | UTF-8 | 1,797 | 3.859375 | 4 | [
"Apache-2.0"
] | permissive | package 工厂模式.扩展.替代单例模式;
import 单例模式.懒汉模式.Singleton;
import java.lang.reflect.Constructor;
/**
* 利用多工厂模式创建单例对象
*
* 通过获得类构造器,然后设置访问权限,生成一个对象,然后提供外部访问,保证内存
* 中的对象唯一。当然,其他类也可以通过反射的方式建立一个单例对象,确实如此,但是一
* 个项目或团队是有章程和规范的,何况已经提供了一个获得单例对象的方法,为什么还要重
* 新创建一个新对象呢?除非是有人作恶。
* 以上通过工厂方法模式创建了一个单例对象,该框架可以继续扩展,在一个项目中可以
* 产生一个单例... | true |
1a453d6f8fc102ea4ad8cbce8add44b25ff9c3e3 | Java | modelmania/main | /Files/Codes/EstimateGarchRegress.java | UTF-8 | 16,042 | 2.703125 | 3 | [
"BSD-3-Clause"
] | permissive | /*
* ARMAX(0,0,1)-GARCH(1,1) MLE routine
*
* This routine implements the Maximum Likelihood Estimation (MLE) for
* ARMAX(0,0,1)-GARCH(1,1) process described as below
*
* x, y are two time series: y(t) = kappa + gamma * x(t) + e(t)
* e is an residual series: e(t) ~ Normal(0, h(t))
* variance for res... | true |
810ab6af7179a8982d4399d8b71ab4fd6e080283 | Java | wangyudong2018/liumo | /yiyun/web/src/main/java/com/yiyun/web/liumo/service/LmBannerService.java | UTF-8 | 545 | 1.640625 | 2 | [] | no_license | package com.yiyun.web.liumo.service;
import com.yiyun.domain.LmBanner;
import java.util.List;
import java.util.Map;
/**
* @title 六漠banner表
* @author WangYuDong
* @date Thu Jul 05 22:19:09 CST 2018
*/
public interface LmBannerService {
LmBanner get(Long id);
List<LmBanner> list(Map<String, Obj... | true |
01d5538173c3bc0dcc8b737d0aa506d727f92d91 | Java | bodhi-root/advent-of-code-2019 | /src/day18/MazeSearcher2.java | UTF-8 | 3,058 | 3.140625 | 3 | [] | no_license | package day18;
import java.util.Arrays;
import java.util.List;
import common.Location;
/**
* Speeds up the search by using a SimpleSearcher to find the best path to
* each key.
*
* Ran for about 30 minutes and was still finding solutions:
*
* NOTE: 'len' is lower by 1 than it should be due to an error
* SOL... | true |
5c4f827dc91585c59a573bff22d3a5e80c4425eb | Java | 5l1v3r1/aptlib | /complier/src/main/java/com/flyang/complier/manager/GenerateContractFactoryClass.java | UTF-8 | 10,163 | 2.078125 | 2 | [] | no_license | package com.flyang.complier.manager;
import com.flyang.annotation.apt.ContractFactory;
import com.flyang.complier.inter.GenerateClass;
import com.flyang.complier.util.Logger;
import com.squareup.javapoet.ClassName;
import com.squareup.javapoet.JavaFile;
import com.squareup.javapoet.MethodSpec;
import com.squareup.java... | true |
4986ec5ae8da2fe4bbb8b046d63f966a3e720113 | Java | guidosantos/FizzBuzzApp | /src/main/java/fizzbuzz/FizzBuzzController.java | UTF-8 | 1,475 | 3.546875 | 4 | [] | no_license | package fizzbuzz;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;
import javax.ws.rs.core.Response;
@Path("/FizzBuzz")
public class FizzBuzzController {
@GET
@Path("/{param}")
public Response fizzbuzz(@PathParam("param") String numbers) {
String response = "";
/* if no numbers... | true |
edf95eb99a895eca9aed4d3157dc1ee8e2ddd4c5 | Java | pumpkinlove/Inspection | /app/src/main/java/com/miaxis/inspection/entity/ProblemType.java | UTF-8 | 1,085 | 2.03125 | 2 | [] | no_license | package com.miaxis.inspection.entity;
import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Id;
import org.greenrobot.greendao.annotation.Generated;
import org.greenrobot.greendao.annotation.Unique;
/**
* Created by xu.nan on 2018/2/1.
*/
@Entity
public class ProblemType {
... | true |
b0dcb1127b0bf5382f2659c18b532ff034798715 | Java | cyf120209/ApiTest | /src/main/java/com/spring/utils/STExecutor.java | UTF-8 | 559 | 2.234375 | 2 | [] | no_license | package com.spring.utils;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
/**
* Created by lenovo on 2016/12/17.
*/
public class STExecutor {
static ExecutorService singleThreadExecutor=Executors.newSingleThreadExecutor();
// static ScheduledExecutorService scheduledExec... | true |
fd8577b33edba3c2a2ece570511aeb824b10bcc0 | Java | james-miller-93/HTTPServer | /PerThreadServer.java | UTF-8 | 1,514 | 2.453125 | 2 | [] | no_license | //PerTheadServer.java
import java.io.*;
import java.net.*;
import java.util.*;
import java.nio.ByteBuffer;
public class PerThreadServer {
static int port, cacheSize;
public static void main(String args[]) throws Exception {
// Get command line argument.
if (args.length != 2 || !args[0].equals("-conf... | true |
56268b2005f97ee26e4a9886b3d01ce2fec4bce9 | Java | vsvictor/deploy | /libs/src/model-scenarios/d2/modules/scenarios/api/CumulativeStatisticsApiMethod.java | UTF-8 | 4,338 | 2.03125 | 2 | [] | no_license | package d2.modules.scenarios.api;
import d2.modules.scenarios.model.History;
import d2.modules.scenarios.model.Scenario;
import d2.modules.scenarios.model.Subject;
import ic.id.Mapper;
import ic.interfaces.action.SafeAction1;
import ic.network.SocketAddress;
import ic.network.http.*;
import ic.storage.BindingStorage;... | true |
ddf5dc69170c1d5f6c8f7c4b602b20afc4339ffc | Java | zhongxingyu/Seer | /Diff-Raw-Data/7/7_5bdfbb17195ab6b7960a86c2a6c152010c1e0e52/GraphUpdateHandler/7_5bdfbb17195ab6b7960a86c2a6c152010c1e0e52_GraphUpdateHandler_t.java | UTF-8 | 6,472 | 2.140625 | 2 | [] | no_license | /*
*
* Enginuity Open-Source Tuning, Logging and Reflashing
* Copyright (C) 2006 Enginuity.org
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the Lic... | true |
73307b790b1341868ae41cdb225bc16ad572c33f | Java | davisoski/pacman | /src/main/uned/es/game/model/Inky.java | UTF-8 | 137 | 1.617188 | 2 | [] | no_license | package uned.es.game.model;
/**
*
* @author david
*
*/
public class Inky implements Ghost {
public Inky() {
}
}
| true |
7a68358f32b7940e0de239dbe96c2c6905e43a88 | Java | Loreeh/Rasonabe_Argoncillo_081517_BSCS3 | /Argoncillo_Rasonabe_Guestbook/src/com/guessbook/app/FrmUpdate.java | UTF-8 | 7,293 | 2.46875 | 2 | [] | no_license | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
/*
* FrmUpdate.java
*
* Created on Aug 7, 2017, 2:55:00 PM
*/
package com.guessbook.app;
import java.awt.Toolkit;
/**
*
* @author 3rd Year Account
*/
public class FrmUpdate extends javax.swing.JFrame {
/**... | true |
f9a86af780ffcf0308229db99c219e631b638e3c | Java | KyberJeffHason/FA-help | /lotr/common/world/structure2/LOTRWorldGenGondorWatchtower.java | UTF-8 | 10,329 | 2.140625 | 2 | [] | no_license | package lotr.common.world.structure2;
import java.util.Random;
import com.google.common.math.IntMath;
import lotr.common.LOTRFoods;
import lotr.common.LOTRMod;
import lotr.common.entity.LOTREntities;
import lotr.common.entity.LOTREntityNPCRespawner;
import lotr.common.entity.npc.LOTREntityGondorMan;
import lotr.common... | true |
2ed6a861bc1e946eac2c1fa9cb723b4effa7cfbf | Java | DangerAhead/OnlineCabBooking | /Online_Cab_Booking/src/cabbooking/Wallet_page.java | UTF-8 | 10,235 | 2.546875 | 3 | [] | no_license | package cabbooking;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import javax.swing.JOptionPane;
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
/*
* Wallet_page.java
*
* Created on 2 Nov... | true |
82ea533760650d016344b0785cd5b545467d6593 | Java | e-oheredia/service-proveedores | /src/main/java/com/exact/proveedores/entity/Empleado.java | UTF-8 | 1,365 | 2.078125 | 2 | [] | no_license | package com.exact.proveedores.entity;
import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.Ma... | true |
d1927806ee00a2c4f922290ff8e2577e8984b544 | Java | VisserSanne/IPSEN2-Frontend | /src/main/java/nello/App.java | UTF-8 | 447 | 2.515625 | 3 | [] | no_license | package nello;
import javafx.application.Application;
import javafx.stage.Stage;
/**
* Hello world!
*/
public class App extends Application {
public static void main(String[] args) {
System.out.println("Hello Nello!");
launch(args);
}
@Override
public void start(Stage primaryStage... | true |
1144528516a7279e06632d1134de80ffc2b2bf15 | Java | zhuhx123/ssm | /weixinpay/src/main/java/cn/com/ssm/wechat/util/XmlUtil.java | UTF-8 | 4,141 | 2.703125 | 3 | [] | no_license | package cn.com.ssm.wechat.util;
import com.github.pagehelper.StringUtil;
import org.jdom2.Document;
import org.jdom2.Element;
import org.jdom2.input.SAXBuilder;
import org.xmlpull.v1.XmlPullParser;
import org.xmlpull.v1.XmlPullParserException;
import org.xmlpull.v1.XmlPullParserFactory;
import java.io.ByteArrayInputS... | true |
b502c6699729793a6d5bcafd58c7b014af04836b | Java | reginaldobarreto/PagamentoFuncionario | /src/entities/OutSourceEmployee.java | UTF-8 | 823 | 3.125 | 3 | [] | no_license | package entities;
public class OutSourceEmployee extends Employee{
private Double additionalCharge;
public OutSourceEmployee() {
super();
}
public OutSourceEmployee(String name, Integer hours, Double valuePerHour, Double additionalCharge) {
super(name, hours, valuePerHour);
this.additionalCharge = additi... | true |
7bad45f01aed94ed73c608b5e294ba69a0f124bb | Java | megha705/SWPuzzleSolver | /src/com/example/NativeCamera/NativeCameraActivity.java | UTF-8 | 8,083 | 2.1875 | 2 | [] | no_license | package com.example.NativeCamera;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.List;
import org.opencv.android.BaseLoaderCallback;
import org.opencv.android.LoaderCallbackInterface;
import org.ope... | true |
452b78b8b0fcf8bd5d3cbac2cf8b0e63b5541d84 | Java | BoWen98/Activivti | /src/main/java/com/bowen/activiti/ActitvitiStartInstance.java | UTF-8 | 1,160 | 2.59375 | 3 | [] | no_license | package com.bowen.activiti;
import org.activiti.engine.ProcessEngine;
import org.activiti.engine.ProcessEngines;
import org.activiti.engine.RuntimeService;
import org.activiti.engine.runtime.ProcessInstance;
/**
* @ProjectName: Activivti
* @Package: com.bowen.activiti
* @ClassName: ActitvitiStartInstance
* @Autho... | true |
3f2fefa4ea1644e2ea06ba03ce9e4e6cc691988a | Java | jackqrr/fp-workshop-jvm | /java/exercises/src/main/java/org/artrev/workshop/fp/part2/exercise5/Exercise5.java | UTF-8 | 2,607 | 3.859375 | 4 | [
"Apache-2.0"
] | permissive | package org.artrev.workshop.fp.part2.exercise5;
import org.artrev.workshop.fp.tools.Function1;
import java.util.List;
/*
-- Other useful functions --
The world of higher order functions does not end on fold. There are many
other useful function that are begging to be written and used.
*/
public class Exercis... | true |
99dfd4b51d33b9821d6a3b440adda68dbe2ecad1 | Java | LorenBaker/A1List | /app/src/main/java/com/lbconsulting/a1list/database/ListTitle.java | UTF-8 | 13,134 | 2.046875 | 2 | [] | no_license | package com.lbconsulting.a1list.database;
import com.lbconsulting.a1list.activities.App;
import com.lbconsulting.a1list.classes.MyLog;
import com.lbconsulting.a1list.classes.MySettings;
import com.lbconsulting.a1list.services.UpAndDownloadDataAsyncTask;
import com.parse.ParseClassName;
import com.parse.ParseException;... | true |
396a02390d90e95d56f89e55c89e3230070cae89 | Java | supravadutta/DSA | /array problem/reverseint/main.java | UTF-8 | 488 | 3.09375 | 3 | [] | no_license | class Main{
public static void main(String[] args) {
int number = 12345;
String str = String.valueOf(number);
char[]arr=new char[str.length()];
arr=str.toCharArray();
int first = 0;
int last = str.length() - 1;
while (first < last) {
char temp = arr[first];
arr[first] = arr[las... | true |
4a3550d2cf4946096b236e81715abced2d038d79 | Java | gguevaraDk/proyectoFenix | /pmz-primefaces-web/src/main/java/com/premize/samples/web/jsf/prime/web/dto/ItemDetalleDTO.java | UTF-8 | 1,033 | 2.109375 | 2 | [] | no_license | package com.premize.samples.web.jsf.prime.web.dto;
import java.io.Serializable;
public class ItemDetalleDTO implements Serializable {
/**
*
*/
private static final long serialVersionUID = 8743461170263346489L;
private double valorTotal;
private double valorIva;
private double valorNeto;
p... | true |
a322042403a37fc2dace817fa292815bbe9bcb41 | Java | wso2/andes | /modules/andes-core/broker/src/main/java/org/wso2/andes/kernel/subscription/DurableTopicSubscriber.java | UTF-8 | 2,803 | 2.375 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright (c) 2016, WSO2 Inc. (http://wso2.com) All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless requi... | true |
69672935553f638d71a93fc336e110f13385d91f | Java | anu231/XData3 | /parsing/OperateOnJoin.java | UTF-8 | 34,147 | 2.125 | 2 | [] | no_license | package parsing;
import java.util.ArrayList;
import java.util.List;
import java.util.Vector;
import net.sf.jsqlparser.statement.select.Join;
import org.apache.derby.impl.sql.compile.AndNode;
import org.apache.derby.impl.sql.compile.BinaryRelationalOperatorNode;
import org.apache.derby.impl.sql.compile.FromBaseTable;... | true |
6261d34da4260920c3c3c92e4d1d9b549f9a0999 | Java | srishtisingh98/FeedbackManagementSystem | /src/main/java/com/cg/fms/utility/ProgramUtil.java | UTF-8 | 676 | 2.265625 | 2 | [] | no_license | package com.cg.fms.utility;
import java.util.List;
import org.springframework.stereotype.Component;
import com.cg.fms.dto.ProgramDetails;
import com.cg.fms.entites.Program;
@Component
public class ProgramUtil {
public ProgramDetails toProgram(Program prog) {
ProgramDetails pDto = new ProgramDetails(prog.getTra... | true |
1fb5a431270e2defa74a9ff6ce72d02fe39580d3 | Java | Mac-Daddies/teachers-pet | /src/main/java/com/tiy/Course.java | UTF-8 | 1,311 | 2.71875 | 3 | [] | no_license | package com.tiy;
import javax.persistence.*;
/**
* Created by jessicatracy on 10/7/16.
*/
@Entity
@Table(name = "courses")
public class Course {
@Id
@GeneratedValue
int id;
@Column(nullable = false)
String name;
@Column(nullable = false)
String subject;
@Column(nullable = false)
... | true |
5b9e0a27cb3dd32c4c1912f3226d5ae6768fb72f | Java | initial-d/info_hunting | /info hunting/info hunting/src/actions/addpage.java | GB18030 | 317 | 1.828125 | 2 | [] | no_license | package actions;
import actions.InfoSuperAction;
/**
* <p>addpage
* <p>ãתҳ
* <p>@author :born to try
*/
public class addpage extends InfoSuperAction {
public String execute() throws Exception{
request.setAttribute("mainPage","/pages/add/addInfo.jsp");
return SUCCESS;
}
}
| true |
d0ad6c5c4ea2052ab956385f4ce6e34eef92782c | Java | aakash-kumar87/Hybrid | /src/main/java/com/lifecycle/DataAccess/HighlyUsedRequests/Get/GetAcademicItemsAssociations.java | UTF-8 | 3,045 | 2.0625 | 2 | [] | no_license | package com.lifecycle.DataAccess.HighlyUsedRequests.Get;
import java.io.IOException;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.codehaus.jackson.map.DeserializationConfig;
import org.codehaus.jackson.map.ObjectMapper;
import com.lifecycle.DataAccess.... | true |
41f8cf09ae9fc4f62c9aa68101efce7a751d5749 | Java | Goulartvic/FeedBares | /app/src/main/java/enterprises/tanheta/feedbares/model/PubModel.java | UTF-8 | 1,689 | 2.359375 | 2 | [] | no_license | package enterprises.tanheta.feedbares.model;
import java.util.ArrayList;
import java.util.List;
public class PubModel {
private String name;
private String id;
private String address;
private double rating;
private String photoUrl;
private String category;
private List<CommentModel>... | true |
cf065dd56d8a1bfedca7af3813ecadafedc3ba40 | Java | MikeWuang/hawk-client | /net/minecraft/util/MovementInput.java | UTF-8 | 283 | 1.75 | 2 | [
"MIT"
] | permissive | package net.minecraft.util;
public class MovementInput {
public static float moveForward;
public static float moveStrafe;
public boolean jump;
public boolean sneak;
private static final String __OBFID = "CL_00000936";
public void updatePlayerMoveState() {
}
}
| true |
c5cbe2e549593dcabb51f77ca3d3fb879d034724 | Java | kenny-kim2/tunea | /src/com/tunea/jdbcdao/JdbcOrchInfoDao.java | UHC | 6,445 | 2.46875 | 2 | [] | no_license | package com.tunea.jdbcdao;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.List;
import com.tunea.dao.OrchInfoDao;
import com.tunea.model.OrchInfo;
public c... | true |
004c4397142fe9a603b09b51100525f61d957786 | Java | ictlyh/SearchEngine | /src/ac/ucas/ir/util/SetMerge.java | UTF-8 | 453 | 2.875 | 3 | [] | no_license | package ac.ucas.ir.util;
import java.util.HashSet;
import java.util.Iterator;
import java.util.Set;
public class SetMerge {
public static Set<String> merge(Set<String> s1, Set<String> s2){
Set<String> result = new HashSet<String>();
Iterator<String> ite = s1.iterator();
while(ite.hasNext()){
re... | true |
3287f6ae01f705d5a756f36e79fdaf7c46424992 | Java | jmrapp1/LWJGL_Pong | /src/com/jmr/engine/vec/Vector2.java | UTF-8 | 2,762 | 3.984375 | 4 | [] | no_license | package com.jmr.engine.vec;
public class Vector2 {
/** The x and y values. */
private float x, y;
/** Holds x and y values to do different mathematical equations. */
public Vector2(float x, float y) {
this.x = x;
this.y = y;
}
/** Sets the position.
* @param x The x value.
* @param y The y value.
... | true |
fbf642588e809fd791ddb713a68e861302f832c9 | Java | SaranKrishnapillai/CSCI2020U-Final-Project | /Game.java | UTF-8 | 485 | 2.375 | 2 | [] | no_license | import javafx.application.Application;
import javafx.scene.Scene;
import javafx.stage.Stage;
public class Game extends Application{
public void start(Stage stage) throws Exception{
Game_Content g = new Game_Content();
Scene scene = new Scene(g.getRoot(),800,600);
scene.setOnKeyPressed(e -> g.keyPressed(... | true |
393b6e64d37dbcf182fd3201800fcd3a88beb4c4 | Java | Coiado/jagger-CoiadoMota | /Jagger-CoiadoMota/ast/ExpBoolean.java | UTF-8 | 191 | 1.929688 | 2 | [] | no_license | package ast;
public abstract class ExpBoolean {
public abstract <T> T accepter(VisitorBoolean<T> v) throws Exception;
public abstract Exp op1();
public abstract String getType();
}
| true |
461176b04f4ab3c97edc81dab27192a8024abbf6 | Java | Gabehh/apaw-ep-gabriel-macho-pedro-magdaleno | /src/main/java/es/upm/miw/apaw_gabriel_pedro/chef_resource/ChefResource.java | UTF-8 | 861 | 2.078125 | 2 | [
"MIT"
] | permissive | package es.upm.miw.apaw_gabriel_pedro.chef_resource;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
@RestController
@RequestMapping(ChefResource.CHEFS)
public class ChefResource {
public static final String CHEFS = "/chefs";
private ChefBusi... | true |
139ca01872740243bdf1f0e118152106cce2e7e2 | Java | factoryfx/factoryfx | /javafxFactoryEditing/src/main/java/io/github/factoryfx/javafx/view/container/ViewDisplayerStage.java | UTF-8 | 515 | 2.3125 | 2 | [
"Apache-2.0"
] | permissive | package io.github.factoryfx.javafx.view.container;
import javafx.scene.control.TabPane;
import javafx.stage.Stage;
public class ViewDisplayerStage implements ViewDisplayer {
private final Stage stage;
public ViewDisplayerStage(Stage stage) {
this.stage = stage;
}
public void close(TabPane ta... | true |
5c7bbc7315c15865f1a19c063f11c6a4668d148e | Java | kradejova/coolture | /app/src/main/java/cz/radejova/kaja/coolture/Adapter.java | UTF-8 | 1,898 | 2.5 | 2 | [] | no_license | package cz.radejova.kaja.coolture;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.TextView;
import java.util.List;
public class Adapter extends BaseAdapter {
private Context cont... | true |
6d0fec893050102342e744fe12349e92dddc6230 | Java | GabrielEu/TrabalhoTCC | /src/br/com/escolatcc/bean/ContasBean.java | UTF-8 | 714 | 2.015625 | 2 | [] | no_license | package br.com.escolatcc.bean;
public class ContasBean {
private int idConta;
private static String login;
private static String password;
public int getIdConta() {
return idConta;
}
public void setIdConta(int idConta) {
this.idConta = idConta;
}
public String getLogin() {
return log... | true |
47b02485667d8e3277bbb5610fae5726d75bc154 | Java | SuperPoptart/DentistsOffice | /src/main/java/Model/UserList.java | UTF-8 | 200 | 1.757813 | 2 | [] | no_license | package Model;
import java.io.Serializable;
import java.util.ArrayList;
/**
* List of User
*/
public class UserList extends ArrayList<User> implements Serializable{
//sort users by isAdmin?
}
| true |
e9587995ddfce913bfd4e1aedf660cf54e28e347 | Java | hahnjiang/handbook4j | /guava-example/src/main/java/org/hahn/learning/guava/ConvertGet.java | UTF-8 | 544 | 2.53125 | 3 | [] | no_license | package org.hahn.learning.guava;
import com.google.common.util.concurrent.AsyncFunction;
import com.google.common.util.concurrent.ListenableFuture;
import com.google.common.util.concurrent.SettableFuture;
/**
* Created by jianghan on 2017/3/20.
*/
public class ConvertGet implements AsyncFunction<String, String> {
... | true |
aabf74e41ef3c41a2e9524dd1b52946094801bb6 | Java | lilypuree/GetSSHS-new | /src/application/Position.java | UTF-8 | 673 | 3.484375 | 3 | [] | no_license | package application;
public class Position {
protected int x;
protected int y;
Position (){}
Position(Position pos) {
x = pos.getX();
y = pos.getY();
}
Position(int x, int y) {
this.x = x;
this.y = y;
}
public int getX() {
return x;
}
public void setX(int x) {
this.x = x;
}
public void se... | true |
22590b30da15290ff317e5d4b11a4c7da4f19a50 | Java | darkvoid32/CTF-writeups | /DSO-NUS-CTF 2021/mobile/sekret chall/flashylighty.apk~/sources/a/h/j/p.java | UTF-8 | 3,172 | 1.9375 | 2 | [] | no_license | package a.h.j;
import a.b.c.q;
import android.animation.Animator;
import android.animation.AnimatorListenerAdapter;
import android.animation.ValueAnimator;
import android.view.View;
import java.lang.ref.WeakReference;
public final class p {
/* renamed from: a reason: collision with root package name */
publ... | true |
d4e403f23fa5f53dc6e613fd4a317749006d0366 | Java | ruioliveira0077/mobileProject | /app/src/main/java/com/example/sheduleorganizer/Menu.java | UTF-8 | 2,972 | 1.945313 | 2 | [] | no_license | package com.example.sheduleorganizer;
import android.content.Intent;
import android.content.SharedPreferences;
import android.support.annotation.NonNull;
import android.support.design.widget.BottomNavigationView;
import android.support.v4.app.Fragment;
import android.support.v7.app.AppCompatActivity;
import android.os... | true |
81da545e9cda5e0ed66d63d7ccaf5a35a0a984db | Java | h1totsu/PictureBox | /src/main/java/ua/h1totsu/entity/ImageTagPK.java | UTF-8 | 1,125 | 2.46875 | 2 | [] | no_license | package ua.h1totsu.entity;
import java.io.Serializable;
public class ImageTagPK implements Serializable {
Integer imageId;
Integer tagId;
public ImageTagPK() {
}
public Integer getImageId() {
return imageId;
}
public void setImageId(Integer imageId) {
this.imageId = ima... | true |
f045918efddb7b6a592266760365d3a40546f634 | Java | Livecraft-Server/livecraft-spigot-essentials | /src/main/java/com/gmail/mediusecho/livecraft_spigot_essentials/modules/sleepvote/SleepvoteEssentialsHook.java | UTF-8 | 2,272 | 2.015625 | 2 | [
"MIT"
] | permissive | /*
* Copyright (c) 2020 Jacob (MediusEcho)
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software
* and associated documentation files (the “Software”), to deal in the Software without
* restriction, including without limitation the rights to use, copy, modify, merge, pub... | true |
926659d4dd7efa543a816a2bd921f0e0205e00e8 | Java | MobyDrake/dosport | /src/main/java/ru/dosport/dto/EventRequest.java | UTF-8 | 1,056 | 2.25 | 2 | [] | no_license | package ru.dosport.dto;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import lombok.Data;
import javax.validation.constraints.FutureOrPresent;
import javax.validation.constraints.NotBlank;
import java.time.LocalDate;
import java.time.LocalTime;
import static ru.dosport.helpers.Messages.DATA_NOT_BLANK... | true |
4de44271ad6e06e9239ca44107e34b22442647da | Java | zkeithhardy/proj11 | /proj6LiLianKeithHardyZhou/src/proj19KeithHardyLiLian/bantam/builder/ASTNodeBuilder.java | UTF-8 | 16,611 | 3.21875 | 3 | [] | no_license | package proj19KeithHardyLiLian.bantam.builder;
import proj19KeithHardyLiLian.bantam.ast.*;
/**
* this is the builder class used in parser in order to implement
* the builder pattern
*/
public class ASTNodeBuilder {
/**
* builder for the Array assign expression
* @param position position for the node... | true |
4c66328f10c16d10fb999cfba1cfb480c8b005a9 | Java | dragutin91/Selenium | /src/test/java/com/symphony/stepDefintions/ProductsSteps.java | UTF-8 | 1,049 | 2.453125 | 2 | [] | no_license | package com.symphony.stepDefintions;
import ScenarioContext.CustomerContext;
import com.symphony.pageObjects.ProductsPage;
import cucumber.api.java.en.And;
import org.junit.Assert;
import java.io.IOException;
public class ProductsSteps {
ProductsPage productsPage;
CustomerContext customerContext;
publi... | true |
7dcb0f81746eff029bc8afb02d6a30c898adbb3e | Java | Yiming686/leetcode-project | /src/JavaBasics/Java_String.java | UTF-8 | 4,097 | 2.96875 | 3 | [] | no_license | package JavaBasics;
import java.awt.datatransfer.SystemFlavorMap;
import java.util.HashSet;
import java.util.Set;
import com.sun.org.apache.bcel.internal.generic.DADD;
import com.sun.org.apache.bcel.internal.generic.DDIV;
import LeetCode.ArrayBuilder;
import LeetCode.ArrayPrinter;
public class Java_String {
public... | true |
792ea68daddaabbadf1e7ecef849f865b5db2442 | Java | seonae8133/firstProject | /firstProject/src/com/yedam/oper/OverflowExample.java | UTF-8 | 845 | 3.84375 | 4 | [] | no_license | package com.yedam.oper;
public class OverflowExample {
public static void main(String[] args) {
System.out.println(Integer.MIN_VALUE);
// 2147483647, -2147483648
// int result = safeAdd(2147483647,10);
// int result = safeAdd(-2147483648,-10);
int result = safeAdd(12121,10);
}
public static int safeAdd(in... | true |
79e345af327850b5f41c32b21f01d78d8f11b3b7 | Java | JonathanOhara/java-hashmap-presentation | /src/main/java/MODxAND.java | UTF-8 | 395 | 3.09375 | 3 | [] | no_license | import java.util.HashMap;
import java.util.Map;
public class MODxAND {
public static void main(String[] args) {
for (int i = 1; i < 64; i++) {
// System.out.println("Testing "+i);
// System.out.println("MOD " + (i % 16));
// System.out.println("AND " + (i & 15));
... | true |
4d89643e8398f8445985bc5c8cf9902ba17b7410 | Java | mglad/cavern_app | /app/src/main/java/com/example/mglad/cavern/UserActivity.java | UTF-8 | 9,256 | 2.0625 | 2 | [] | no_license | package com.example.mglad.cavern;
import android.animation.Animator;
import android.animation.AnimatorListenerAdapter;
import android.annotation.TargetApi;
import android.app.AlertDialog;
import android.content.DialogInterface;
import android.content.Intent;
import android.os.AsyncTask;
import android.os.Build;
import... | true |
61a86ade752e4cfc96329c94b45c17fb25e9f579 | Java | TheSkyGold/gemp-lotr | /gemp-lotr/gemp-lotr-cards/src/main/java/com/gempukku/lotro/cards/set20/fallenRealms/Card20_114.java | UTF-8 | 2,027 | 2.4375 | 2 | [] | no_license | package com.gempukku.lotro.cards.set20.fallenRealms;
import com.gempukku.lotro.cards.AbstractMinion;
import com.gempukku.lotro.cards.PlayConditions;
import com.gempukku.lotro.cards.effects.AddUntilEndOfPhaseModifierEffect;
import com.gempukku.lotro.common.Culture;
import com.gempukku.lotro.common.Keyword;
import com.g... | true |
bfef4e4f7156037d2e2116063b9a8b5e67633df2 | Java | y6044405/yxh-base | /.svn/pristine/e9/e993c98f2202da0f1febbd98a72f5bb102d281d2.svn-base | UTF-8 | 1,016 | 2.125 | 2 | [] | no_license | package com.tzg.ex.mvc.web.validator;
import java.util.List;
import org.springframework.validation.BindingResult;
import org.springframework.validation.FieldError;
import org.springframework.validation.ObjectError;
import com.tzg.ex.core.common.Result;
public class ValidationUtils extends org.springframework.valid... | true |
8224a3bbb8fc5585b66a4967c8e2418eea75a471 | Java | amal2004/SOA-Consumer-Producer- | /Consumer/src/test/java/test/com/amal/jms/listner/ConsumerListenerTest.java | UTF-8 | 1,459 | 2.234375 | 2 | [] | no_license | package test.com.amal.jms.listner;
import javax.jms.JMSException;
import javax.jms.TextMessage;
import org.junit.After;
import org.junit.Before;
import static org.easymock.EasyMock.*;
import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.ConfigurableA... | true |
635fe1de929548ebc9de069919eb4a62713b60f3 | Java | HanumathRao/ProgrammingProblems | /src/com/company/BinarySearchTreeWithMinimalHeight.java | UTF-8 | 2,109 | 3.671875 | 4 | [] | no_license | package com.company;
/**
* Created by hmaduri on 6/25/16.
*/
public class BinarySearchTreeWithMinimalHeight {
public static void main(String[] args) {
// Integer integers[] = {1,2,3,4,5,6,7,8,9,10};
Integer integers[] = {1,2,3,4,5,6,7,8,9,10,11,12};
BinarySearchTree<Integer> tree = buildBi... | true |
44ac2f713b1a0d48a65119f7b8ec8643859e8905 | Java | huidongs/cloud2020 | /seata-storage-service2002/src/main/java/pers/huidong/springcloud/alibaba/domain/Storage.java | UTF-8 | 439 | 1.585938 | 2 | [] | no_license | package pers.huidong.springcloud.alibaba.domain;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.ibatis.annotations.Mapper;
import java.math.BigDecimal;
/**
* @Desc:
*/
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Storage {
private Long id;
... | true |
68fbfbfffd1aecfda010dfe5737b34762520dea3 | Java | radec94/HIBERNATE | /src/hb/PojoClients.java | IBM852 | 1,050 | 2.203125 | 2 | [] | no_license |
public class PojoClients {
private float id_autonumeric;
private float id_concesionari;
private float id_adrea;
private String id_client;
private String nom;
private int telefon;
public PojoClients(){}
public float getId_autonumeric() {
return id_autonumeric;
}
public void setId_autonumeric(float id_au... | true |
359433324ba0d4cd99af6fa0d0179c471d062a84 | Java | yawu2014/MyBatis-CMEU | /src/pers/cmeu/models/ColumnItem.java | UTF-8 | 2,523 | 2.109375 | 2 | [] | no_license | package pers.cmeu.models;
import java.util.List;
public class ColumnItem {
private boolean anyAssociation;//true代表association,false代表collection
private boolean anyHasColl;//true代表存在collection,false代表不存在,用于表示是否需要创建dao层分页嵌套查询接口
private String primaryKey;
private String className;
private String inProperty... | true |
941575e8a01c7bf5c09f89593a55e74cc8f851ca | Java | fernangel/hello-java | /test 7/src/ru/mera/сhizhkin_roman/postman/test.java | WINDOWS-1251 | 4,206 | 3.140625 | 3 | [] | no_license | package ru.mera.hizhkin_roman.postman;
public class test {
public static void main(String[] args) {
int sum1 = 0, sum2 = 0, sum3 = 0, sum4 = 0, sum5 = 0, max = 0, place1 = 0, place2 = 0;
AbstractItem [] arr = new AbstractItem[300];
arr[0] = new Circular_saw("", 6000, 2, 2000, 100);
arr[1] = new Drill(... | true |
9fc7b0f41fcb6d4bc6b63a8cbd582425b42088db | Java | lucaswamser/ecommerce | /ModuloAutenticacao/src/com/up/autenticacao/controllers/UsuarioController.java | UTF-8 | 2,620 | 2.359375 | 2 | [] | no_license | package com.up.autenticacao.controllers;
import javax.servlet.http.HttpSession;
import javax.validation.Valid;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.validation.BindingResult;
import org.springframework.web.bind.annot... | true |
f32a86d1383275f7028037eb1811fc00be3c1d70 | Java | mrigankaroy/Task_Manager | /TaskService/src/main/java/com/mriganka/taskmanager/taskService/model/web/BulkTaskResultResponse.java | UTF-8 | 392 | 1.632813 | 2 | [] | no_license | package com.mriganka.taskmanager.taskService.model.web;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import java.io.Serializable;
import java.util.List;
@Getter
@Setter
@AllArgsConstructor
@NoArgsConstructor
public class BulkTaskResultRe... | true |
860c070a8fce879a7ee9eb8cc41cc985083093b2 | Java | richasdy/mobitick-android | /src/srv/btp/eticket/crud/CRUD_Route_Back_Table.java | UTF-8 | 5,670 | 2.53125 | 3 | [] | no_license | package srv.btp.eticket.crud;
import java.util.ArrayList;
import java.util.List;
import android.content.ContentValues;
import android.content.Context;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteDatabase.CursorFactory;
import android.da... | true |
8dc843f3ebb3af7fc8f8b809a59f9410394dea97 | Java | cangozpi/Kuvid-Game | /src/test/test/BlenderBreakTests/testBreak.java | UTF-8 | 13,681 | 2.59375 | 3 | [] | no_license | package test.BlenderBreakTests;
import com.company.Domain.Models.Blender;
import com.company.Domain.Models.Inventory;
import com.company.Enums.*;
import org.junit.*;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
import static org.hamcrest.CoreMatchers.anyOf;
import static org.ham... | true |
225a5069774a2532d8f271a7a3fa19dffecb8f43 | Java | helloworld0118/luqiao_server | /src/com/core/mapper/YuanguanhanMapper.java | UTF-8 | 11,944 | 1.859375 | 2 | [] | no_license | package com.core.mapper;
import com.core.entity.Yuanguanhan;
import com.core.entity.YuanguanhanExample;
import java.util.List;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.DeleteProvider;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Inse... | true |
95ada38e28e3202af9acbb9e6ff07b68016cdd35 | Java | zafrul-ust/tcmISDev | /src/main/java/com/tcmis/internal/hub/action/ShippingInfoAction.java | UTF-8 | 5,032 | 1.8125 | 2 | [] | no_license | package com.tcmis.internal.hub.action;
import java.math.BigDecimal;
import java.util.Collection;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.commons.beanutils.DynaBean;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.Actio... | true |
6d38a76b21ad26772e0e2190d95ce8abab10cd68 | Java | zcerhub/spring-framework-study | /my-spring-aop/src/main/java/com/example/myspring/aop/AopProxyUtils.java | UTF-8 | 1,881 | 2.78125 | 3 | [] | no_license | package com.example.myspring.aop;
import com.example.myspring.aop.advisor.Advisor;
import com.example.myspring.aop.advisor.PointcutAdvisor;
import com.example.myspring.beans.BeanFactory;
import org.apache.commons.collections4.CollectionUtils;
import java.lang.reflect.Method;
import java.util.ArrayList;
import java.uti... | true |
790cbacbacbceb25c757ccff397acdcf133478de | Java | de-identification/de-identification | /ipv-core/src/main/java/com/ibm/whc/deid/models/FirstName.java | UTF-8 | 1,116 | 2.21875 | 2 | [
"Apache-2.0"
] | permissive | /*
* (C) Copyright IBM Corp. 2016,2020
*
* SPDX-License-Identifier: Apache-2.0
*/
package com.ibm.whc.deid.models;
import java.io.Serializable;
public class FirstName implements LocalizedEntity, Serializable {
/**
*
*/
private static final long serialVersionUID = -4173369720649054384L;
private final Strin... | true |
d7bbd3e769f4bbba807b717855e184228b9058d4 | Java | gitItaca/01_ManejoFicheros | /src/pack/Libros.java | ISO-8859-10 | 1,107 | 3.203125 | 3 | [] | no_license | package pack;
import java.io.FileWriter;
import java.io.FileReader;
import java.io.IOException;
public class Libros {
public static void main(String[] args) {
/*String texto = "<Libros><Libro><Titulo>100 aos de soledad<Titulo><Libro><Libros>";
String nombre = "libros.xml";*/
String textoFichero = "100 aos de ... | true |
6e85b0a2cb1974313207d3c14f19151ea8a0e4a1 | Java | drsoares/codility-solutions-java | /src/main/lesson01/BinGap.java | UTF-8 | 2,284 | 4.125 | 4 | [] | no_license | package lesson01;
/**
* A binary gap within a positive integer N is any maximal sequence of consecutive zeros that is surrounded by ones at both ends in the binary representation of N.
* <p>
* For example, number 9 has binary representation 1001 and contains a binary gap of length 2. The number 529 has binary repre... | true |
ac3223380ea558d2a221b5785b320d0f329f6fff | Java | Alessandro10/ProgettoAndroid | /AndroidStudioProjects/login/app/src/main/java/com/example/tonino/login/Dialogs/SingleEditTextDialog.java | UTF-8 | 2,927 | 2.3125 | 2 | [] | no_license | package com.example.tonino.login.Dialogs;
import android.os.Bundle;
import android.support.v4.app.FragmentActivity;
import android.text.InputType;
import android.view.LayoutInflater;
import android.view.ViewGroup;
import android.view.WindowManager;
import android.widget.EditText;
import com.example.tonino.login.R;
... | true |
4b0faed00acf3bb77a09ffdce74876da79727171 | Java | harrybands/Old_Projects | /lab09/reverse.java | UTF-8 | 389 | 3.203125 | 3 | [] | no_license | import java.util.Scanner;
public class reverse {
private String x;
public reverse () {
this.x=x;
}
public String reverseString(String x) {
String result="";
for(int i=x.length()-1;i>=0;i--) {
result+=x.charAt(i);}
return result;
}
public static int maxOfTwo(int x,int y) {
int max=Math.max(x, y);... | true |
228402e8a312d9e073e4b3fca7b517f6b8515296 | Java | danielVidela/Java_intro | /daniel/introJava/src/introjava/bucles_para_java.java | UTF-8 | 1,525 | 3.5 | 4 | [] | 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 introjava;
import java.util.Scanner;
/**
*
* @author Dany
*/
public class bucles_para_java {
/**
... | true |
5481318470f69d591e98f6abf01c839ba3e32504 | Java | aguoxing/blog | /blog-backend/src/main/java/cn/codexing/blog/service/impl/TagServiceImpl.java | UTF-8 | 1,560 | 2.078125 | 2 | [] | no_license | package cn.codexing.blog.service.impl;
import cn.codexing.blog.common.util.PageUtils;
import cn.codexing.blog.entity.ArticleTag;
import cn.codexing.blog.entity.Tag;
import cn.codexing.blog.mapper.ArticleTagMapper;
import cn.codexing.blog.mapper.TagMapper;
import cn.codexing.blog.service.TagService;
import cn.codexing.... | true |
dac5932d208fbbfac2d0f90310e3899f8f97e7ec | Java | alli5723/popularmovies | /app/src/main/java/com/omo_lanke/android/popularmovies/data/MoviesDbHelper.java | UTF-8 | 1,750 | 2.390625 | 2 | [] | no_license | package com.omo_lanke.android.popularmovies.data;
import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
import com.omo_lanke.android.popularmovies.data.MoviesContract.MoviesEntry;
/**
* Created by omo_lanke on 07/05/2017.
*/
public class Mo... | true |
4e0d89c9aaf4dd741bc86fd2263663cccfecd7d7 | Java | ferMendo7a/gestion-aulas-fpune | /src/main/java/com/devmp/gestionaulas/domain/service/CarreraService.java | UTF-8 | 675 | 2 | 2 | [] | no_license | package com.devmp.gestionaulas.domain.service;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.devmp.gestionaulas.domain.model.Carrera;
import com.devmp.gestionaulas.domain.repository.ICarreraRepository;
@Servi... | true |
0ec95625278c22feeb452685eb9034ceccaf4f50 | Java | 787569597/WHUT | /大三下——软件测试/Triangle/src/triangle/text.java | GB18030 | 1,713 | 3.890625 | 4 | [] | no_license | /*
* жǷΪ
* ֮ʹڵ
* ֻСڵ
*/
package triangle;
import java.util.*;
public class text
{
public static void main(String[] args)
{
int border[] = new int[3];
int a;
Scanner keyboard = new Scanner(System.in);
System.out.println("߳");
for(int i=0; i<3; i++)
{
if(keyboard.hasNextInt())
{
a = ... | true |
8c78fc5b68c7ad368b7df9fd0d1151e4039e84d5 | Java | TomasJanuskevic/PracticalProject | /src/main/java/shop/service/ProductService.java | UTF-8 | 958 | 2.796875 | 3 | [] | no_license | package shop.service;
import shop.dao.ProductDao;
import shop.exception.FailedFindProductException;
import shop.model.BuyItem;
import shop.model.Cart;
import shop.model.products.Product;
import java.util.Scanner;
public class ProductService {
public void addProductToCart(Cart cart) {
Product product;
... | true |