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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
96954e9987ceaa5035f3b1210e2e0f64bd7a3a64 | Java | SergiyKlymenko/Spring-MVC-Security-annotations | /src/main/java/com/mvc/controller/MainController.java | UTF-8 | 1,635 | 2.421875 | 2 | [] | no_license | package com.mvc.controller;
import java.security.Principal;
import javax.servlet.http.HttpServletResponse;
import org.springframework.http.HttpStatus;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.PathVariable;
import org.spring... | true |
dd2974d417d891fcb9581b982f9f4ec0001fac25 | Java | janith-ch/construction-management | /Procurement Management System for Construction Industry/application-backend/src/main/java/app/system/application/backend/response/CommonResponse.java | UTF-8 | 1,555 | 2.40625 | 2 | [] | no_license | package app.system.application.backend.response;
public class CommonResponse<T> {
private T dataBundle;
private Boolean isSuccess;
private String errorMessage;
private String successMessage;
public CommonResponse(String errorMessage, T dataBundle) {
this.dataBundle = dataBundle;
... | true |
231ed29da631ad709af8cac688db5ab0a63a316b | Java | brunovianarezende/bjsistemas-bjtarefas-app | /app/src/main/java/nom/bruno/tasksapp/services/TaskService.java | UTF-8 | 1,479 | 1.851563 | 2 | [] | no_license | package nom.bruno.tasksapp.services;
import android.content.Context;
import android.support.annotation.NonNull;
import java.util.Arrays;
import java.util.Collections;
import java.util.Comparator;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Set;
im... | true |
bc7bb4411b5c48f905bf34819a8c938074a1f6e0 | Java | immortalcatz/StuffCraft-Mod | /stuffcraft/entity/nautilus/Nautilus.java | UTF-8 | 2,424 | 2.4375 | 2 | [] | no_license | package dr_detonation.stuffcraft.entity.nautilus;
import net.minecraft.client.model.ModelBase;
import net.minecraft.client.model.ModelRenderer;
import net.minecraft.entity.Entity;
public class Nautilus extends ModelBase
{
//fields
ModelRenderer Body;
ModelRenderer ShellBase;
ModelRenderer ShellBack;
... | true |
c24c5b805beedb0befcd9c4aec5fe24d9a59df60 | Java | skytylon/WansViewPlus | /app/src/main/java/net/ajcloud/wansviewplus/entity/CapabilityInfo.java | UTF-8 | 6,724 | 2.03125 | 2 | [] | no_license | package net.ajcloud.wansviewplus.entity;
import android.text.TextUtils;
import net.ajcloud.wansviewplus.support.core.bean.CapabilityBean;
import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Generated;
import org.greenrobot.greendao.annotation.Id;
import org.greenrobot.greendao... | true |
5c4c228d13af8bd9b58870833bbed063fb55dc02 | Java | hyekyung-kim/android-project-01 | /app/src/main/java/ddwucom/mobile/ma02_20170931/SearchMain.java | UTF-8 | 9,591 | 2.171875 | 2 | [] | no_license | package ddwucom.mobile.ma02_20170931;
import android.app.ProgressDialog;
import android.content.Context;
import android.content.Intent;
import android.graphics.Bitmap;
import android.graphics.drawable.BitmapDrawable;
import android.net.ConnectivityManager;
import android.net.NetworkInfo;
import android.os.AsyncTask;
i... | true |
a4473123250494747b345cc6ae60a5e089272b8c | Java | josemontenegro/ToBuyP2.2 | /app/src/main/java/com/example/admin/tobuy/data/Queries.java | UTF-8 | 445 | 2.28125 | 2 | [] | no_license | package com.example.admin.tobuy.data;
import com.example.admin.tobuy.models.ToBuy;
import java.util.ArrayList;
import java.util.List;
public class Queries {
public List<ToBuy> toBuys(){
List<ToBuy> toBuys = new ArrayList<>();
List<ToBuy> toBuyList = ToBuy.find(ToBuy.class,"done = 0");
if... | true |
5870fc52d4458176a5b1df9ea80a506034264fa1 | Java | Vikram-Bollam/Intern-Vikram | /OnlineAppointmentBooking/src/full/aw/Servlets/SupportUpdateAppointment.java | UTF-8 | 678 | 2.109375 | 2 | [] | no_license | package full.aw.Servlets;
import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import full.aw.service.ScheduleBook;
@SuppressWarnings("serial")
public class SupportUpdateApp... | true |
9f6953356d5a1742620ebe3b9f29bc5b26aec68b | Java | GEMINI1999/AddressBook-Management | /src/cn/design/SearchTool.java | UTF-8 | 1,725 | 2.765625 | 3 | [
"Apache-2.0"
] | permissive | package cn.design;
import javax.swing.*;
import java.sql.Connection;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
public class SearchTool {
public static boolean hasData(String strData) {
Connection conn = null;
Statement stmt = null;
ResultSet rs = ... | true |
f5d31472fc523981c2c24118134df9d5bb51a504 | Java | divukman/algorithms | /AlgorithmsTesting/src/main/java/com/dimitar/algorithms/hackerrank/ExtraLongFactorials.java | UTF-8 | 608 | 3.484375 | 3 | [] | no_license | package com.dimitar.algorithms.hackerrank;
import java.math.BigInteger;
/**
* https://www.hackerrank.com/challenges/extra-long-factorials/problem
*/
public class ExtraLongFactorials {
public static BigInteger factorial(int n) {
if (n == 1) return BigInteger.valueOf(n);
else {
return... | true |
41cc4a8a13ac8f213c02025b3e9f6add9595288e | Java | Rizwan-Hasan/GPA-Calculator-Java | /src/app/calculator.java | UTF-8 | 1,288 | 3 | 3 | [
"MIT"
] | permissive | package app;
import java.text.DecimalFormat;
import java.util.Map;
class calculator
{
private double CGPA;
private double totalCredit;
private String[] theoryGrades;
private String[] labGrades;
private Map<String, Object> gradeSheet = new gradeList().load();
calculator(String x, String y, boo... | true |
1aa7cc2dde551abd9152cfc013e7ff815d349256 | Java | ldodds/slug | /src/java/com/ldodds/slug/http/URLRetrievalWorker.java | UTF-8 | 5,066 | 2.328125 | 2 | [
"Apache-2.0"
] | permissive | package com.ldodds.slug.http;
import java.util.logging.*;
import java.io.*;
import java.net.*;
import com.hp.hpl.jena.rdf.model.*;
import com.ldodds.slug.framework.*;
import com.ldodds.slug.framework.config.Memory;
import com.ldodds.slug.http.throttle.Throttle;
import com.ldodds.slug.vocabulary.SCUTTERVOC... | true |
549c19dc3744ae7be9c278cc4454cb1f76783d72 | Java | tomjbarry/penstro-public | /src/main/java/com/py/py/dto/in/ChangeAppreciationResponseDTO.java | UTF-8 | 780 | 2.03125 | 2 | [
"MIT"
] | permissive | package com.py.py.dto.in;
import com.py.py.dto.DTO;
public class ChangeAppreciationResponseDTO extends DTO {
/**
*
*/
private static final long serialVersionUID = -8608835628416126371L;
private String appreciationResponse;
private boolean appreciationResponseWarning;
public ChangeAppreciationResponseDTO(... | true |
7bdecc47a8a49d8caa9bdc7339af92a8b1dc91fe | Java | mpabasara11/Library_Management_System | /myProject/src/myConnection.java | UTF-8 | 346 | 2.53125 | 3 | [] | no_license | import java.sql.*;
public class myConnection {
public Connection conn;
public Connection getConnection()
{ try{
String dbpath="jdbc:mysql://localhost/library";
conn=DriverManager.getConnection(dbpath,"root","");
}
catch(SQLException e)
{System.out.print(e.getMessage());
... | true |
e3646c32fd8141c74af7a5c4ab88bbea4cd0ea2c | Java | jtravan3/redox-java-data-model | /src/main/java/redox/datamodel/clinicalsummary/common/ValueWrapper.java | UTF-8 | 327 | 2.078125 | 2 | [
"CC-BY-3.0",
"MIT"
] | permissive | package redox.datamodel.clinicalsummary.common;
import lombok.Data;
/**
* This is a wrapper class for Observation Value type. It can either be a Value or String
* data type so this class provides the ability for it to be both
*/
@Data
public class ValueWrapper {
private Value value;
private String valueStr... | true |
aa7463b0761d3a2bccd0ca2281ce373ba71b5d73 | Java | charles-marques/dataset-375 | /projetos/nwcfile/src/main/java/nwcfile/KeySignature.java | UTF-8 | 2,905 | 2.703125 | 3 | [] | no_license | package nwcfile;
public class KeySignature extends Symbol {
public enum Note {
A,B,C,D,E,F,G;
}
private final NwcItem BYTE3 = new NwcItem() {
public NwcItem marshall(NwcFileWriter writer)
throws NwcFileException {
return this;
}
public NwcItem unmarshall(NwcFileReader reader)
... | true |
5127e3b75e789a384d29e7a7a1f1bda690fe0348 | Java | yangxiaoxi/EshoManager | /EshopManager/src/com/yunhe/service/LunBoService.java | GB18030 | 370 | 1.859375 | 2 | [] | no_license | package com.yunhe.service;
import java.util.List;
import com.yunhe.pojo.Ad;
public interface LunBoService {
/**
* ֲͼ
* @return
*/
boolean insertPhoto(String ad_img,int book_id);
/**
* ɾֲͼ
* @param ad_img
*/
void deletePhoto(int ad_id);
/**
* еֲͼ
* @return
*/
List<Ad> selectPhoto();
... | true |
ec55e1d69e0b5e506ea654aec437e2e2c50d1628 | Java | RchengANDLengwen/SsmFrame | /company/src/main/java/com/codejoys/company/entity/CurrentDeptEmp.java | UTF-8 | 4,591 | 2.28125 | 2 | [] | no_license | package com.codejoys.company.entity;
import java.io.Serializable;
import java.util.Date;
/**
*
* This class was generated by MyBatis Generator.
* This class corresponds to the database table current_dept_emp
*/
public class CurrentDeptEmp implements Serializable {
/**
*
* This field was generated by... | true |
46eac675d78fc25f6980d5832e8ffdf3692d60ff | Java | dineshkatamneni/MyProjects | /Banking_Application/src/main/java/com/wayne/project/console/IConsoleForCards.java | UTF-8 | 559 | 1.914063 | 2 | [] | no_license | package com.wayne.project.console;
import com.wayne.project.cards.ICards;
import com.wayne.project.cards.IRedeemCardPoints;
import java.sql.SQLException;
public interface IConsoleForCards {
public void displayCardsInformation() throws SQLException;
public boolean generateCardPinCode(ICards cards... | true |
7d78f5742071286039dfcc1814cc4ce5106801de | Java | leolopez48/ImportadoraPoe | /ProyectoPoe/src/com/dao/DaoUnidadMedida.java | UTF-8 | 4,984 | 2.296875 | 2 | [] | no_license | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package com.dao;
import com.pojos.UnidadMedida;
import com.utils.HibernateUtil;
import java.util.ArrayList;
import java.util.List;
imp... | true |
df3a9a0a291229c28f118d7c3a7c41840d30efbf | Java | koppor/synopsys-detect | /detectable/src/main/java/com/synopsys/integration/detectable/detectables/cargo/CargoDetectable.java | UTF-8 | 3,407 | 1.820313 | 2 | [
"Apache-2.0"
] | permissive | /**
* detectable
*
* Copyright (c) 2020 Synopsys, Inc.
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under ... | true |
82d8e878fc7c7f326e9e498b7f2dcac6a0904f0a | Java | rajibad91/Java | /Shopping_Cart/src/main/java/com/example/spring/Shopping_Cart/TestDB.java | UTF-8 | 446 | 1.742188 | 2 | [] | no_license | package com.example.spring.Shopping_Cart;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
public class TestDB {
public static void main(String[] args) {
// TODO Auto-generated method stub
ApplicationContext context = ... | true |
77dbf0e041236fc14f3e62385e8f13c462597c6f | Java | xei/bamilo-android | /app/src/main/java/com/bamilo/android/appmodule/bamiloapp/di/components/OrderCancellationComponent.java | UTF-8 | 455 | 1.75 | 2 | [] | no_license | package com.bamilo.android.appmodule.bamiloapp.di.components;
import com.bamilo.android.core.modules.OrderCancellationModule;
import com.bamilo.android.appmodule.bamiloapp.view.fragments.OrderCancellationFragment;
import dagger.Subcomponent;
/**
* Created by mohsen on 1/31/18.
*/
@Subcomponent(modules = {
... | true |
68f9cb62a1845da1e1b54e5730a9faaa771533b4 | Java | luciferliusha/dataCenter | /src/main/java/com/zjcds/serverResource/controller/ServerResourceController.java | UTF-8 | 3,479 | 2.265625 | 2 | [] | no_license | package com.zjcds.serverResource.controller;
import com.zjcds.serverResource.service.ServerResourceService;
import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.servlet.ModelAndView;
import javax... | true |
bf327d3a9079cd5572577f4d55d2e4ff10d33ba7 | Java | sethiz/Movie-Ticket-Booking | /Code/adminui/AddSeatType.java | UTF-8 | 8,515 | 2.375 | 2 | [] | no_license | package adminui;
import java.beans.PropertyVetoException;
import javax.swing.JInternalFrame;
import javax.swing.JOptionPane;
import model.DAO.seattypeDAO;
import model.to.seattypeTO;
import operations.Validations;
/**
*
* @author Shubham Sethi
*/
public class AddSeatType extends javax.swing.JInternalFrame {
i... | true |
3ed02afbc545a1a0933ed867d3a202a1d117c02b | Java | H-O-S/ProgKievModule02 | /src/Lesson01/MainL01Task01.java | UTF-8 | 516 | 3.375 | 3 | [] | no_license | /**
* Java OOP. Lesson 01.
*
* @author Oleg Khrulov
* @version dated 04.04.2019
*/
package Lesson01;
public class MainL01Task01 {
public static void main(String[] args) {
Car carOne = new Car();
carOne.setColor("Green");
carOne.setWeight(2000);
carOne.setYear(1980);
... | true |
706a7dfc8766876ce34d8468ce894664b16d0c9e | Java | sjain30/JavaLectures | /src/com/company/Lec3/src/com/company/Butterfly.java | UTF-8 | 895 | 3.3125 | 3 | [] | no_license | package com.company.Lec3;
import java.util.Scanner;
public class Butterfly {
public static void main(String[] args) {
Scanner s = new Scanner(System.in);
int n=s.nextInt();
int vmr=1;
int row=1;
while(vmr<=2*n-1){
int hmir=1;
int col=1;
w... | true |
4562a40891b4fe470d577574ad13f0550c3f7437 | Java | Timothy2015/Java | /1_廖雪峰java教程笔记/7_集合/7.2_使用Queue.java | UTF-8 | 1,192 | 4.0625 | 4 | [] | no_license | import java.util.LinkedList;
import java.util.Queue;
/**
# LinkedList的优点:
- LinkedList即实现了List接口,又实现了Queue接口
- 在使用时,如果把它当作List,就获取List的引用,如果把它当作Queue,就获取Queue的引用
*/
public class Main{
public static void main(String[] args){
Queue<String> q = new LinkedList<>();
//添加3个元素到队列 - q.offer() or q.add()
... | true |
707a9421be32b05804f4eafc5b9ce572c2d1ac8a | Java | Lorimax/boi | /MyGame/src/game/PickUp.java | UTF-8 | 675 | 2.96875 | 3 | [] | no_license | package game;
import java.util.concurrent.ThreadLocalRandom;
public class PickUp {
protected int posX;
protected int posY;
public PickUp() {
this.posX = ThreadLocalRandom.current().nextInt(0, 750);
this.posY = ThreadLocalRandom.current().nextInt(0, 750);
}
public void reset() {
th... | true |
647162be1b057514f7dca9908ba271564f790200 | Java | utcn-cs-software-design-tudorv-2019/assignment-1-AndreiBercean | /StudentManagement/src/dataAccessLayer/Student.java | UTF-8 | 352 | 2.8125 | 3 | [] | no_license | package dataAccessLayer;
public class Student
{
protected int userID;
protected int group;
public Student(int id, int g)
{
userID = id;
group = g;
}
public int getGroup()
{
return group;
}
public void setGroup(int group)
{
this.group = group;
}
public int getUserID(... | true |
1c3aac33cbeed08987a13ebcf6c7a9383e05269d | Java | AnandMurugan/kth-seds-2011-projects | /ID2212/HW1/src/utils/MessageType.java | UTF-8 | 374 | 1.867188 | 2 | [] | no_license | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package utils;
/**
*
* @author julio
*/
public enum MessageType {
CLIENT_NEW_GAME,
CLIENT_GUESS_LETTER,
CLIENT_GUESS_WORD,
CLIENT_DISCONNECT,
SERVER_NEW_GAME,
SERVER_WRONG_LETTER,
SERVER_C... | true |
ee16c16d5e8ca6cf4b7f64e95b14a549ac678d77 | Java | mtu20181234/leetcode | /276. Paint Fence.java | UTF-8 | 430 | 2.734375 | 3 | [] | no_license | public class Solution {
public int numWays(int n, int k) {
int[] dp = {0,k,k*k,0};
if(n<=2){
return dp[n];
}
int diff = k*(k-1);
int same = k;
int cur = -1;
for(int i=2;i<n;i++){
int prevDiff = diff;
cur = diff*k + same*(k-1... | true |
6dc98196eb809068b11dc570a38264cf9dd464b5 | Java | Anthony-W/CS101 | /Lab10/src/Dog.java | UTF-8 | 1,308 | 3.734375 | 4 | [] | no_license | import java.util.regex.Pattern;
import java.util.regex.Matcher;
public class Dog {
enum Tail {
LONG,
SHORT,
NONE;
}
int age;
String name;
String bark;
boolean hasShortHair;
double weight;
Tail tail;
public Dog() {
this("Wolfy");
}
public Dog(String name) {
if (validN... | true |
30e9589a8ce722e834353e277eff4c3e7727c782 | Java | Marcin3232/StacjaPogodowa_Mobilna | /app/src/main/java/com/example/czujnik5/Adapter/TempDataAdapter.java | UTF-8 | 1,286 | 2.375 | 2 | [
"MIT"
] | permissive | package com.example.czujnik5.Adapter;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ArrayAdapter;
import android.widget.TextView;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import com.ex... | true |
e083b56a5335191a2802d039b6015adcafdfeb5e | Java | lyf10009/JavaTest | /src/PatternsDesign/AbstractFactory/AbstractFactory.java | UTF-8 | 153 | 2.5 | 2 | [] | no_license | package PatternsDesign.AbstractFactory;
public interface AbstractFactory {
public ICpu createCpu();
public IMainboard createMainboard();
}
| true |
d6f3f64df2b670972b8a804f6cdd903443df8048 | Java | svn2github/myfaces-extcdi-parent | /alternative-modules/alternative-configuration-modules/core-alternative-configuration-module/src/test/java/org/apache/myfaces/extensions/cdi/core/test/alternative/config/CoreConfigTest.java | UTF-8 | 3,823 | 1.867188 | 2 | [] | no_license | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License")... | true |
c9520c379f5443ade4ac3b1c573242e7411f4079 | Java | wencl/spark_stream_kafka | /src/main/java/org/jrj/wen/spark_stream_kafka/execute/JavaDirectKafkaWordCount.java | UTF-8 | 5,722 | 2.078125 | 2 | [] | no_license | package org.jrj.wen.spark_stream_kafka.execute;
import java.util.Arrays;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Map;
import java.util.Set;
import java.util.regex.Pattern;
import org.apache.kafka.clients.consumer.ConsumerConfig;
import org.apache.kafka.clients.consumer.ConsumerR... | true |
b8414d95e2bcce3e23da513805daae85f1ef177a | Java | quyixiao/testshell | /src/main/java/tsh/util/ParserTokenManager.java | UTF-8 | 19,833 | 2.140625 | 2 | [] | no_license | package tsh.util;
import tsh.Token;
import tsh.constant.ParserConstants;
import tsh.exception.TokenMgrError;
import tsh.t.TSHTuple;
import tsh.t.TTuple2;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
public class ParserTokenManager extends Utils implements ParserConstants {
pub... | true |
cc1b7e0c35807514c5737a11126778402f05be9a | Java | STAMP-project/dspot-experiments | /benchmark/training/reactor/core/publisher/FluxSkipWhileTest.java | UTF-8 | 4,553 | 2.09375 | 2 | [] | no_license | /**
* Copyright (c) 2011-2017 Pivotal Software Inc, 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
*
* Unle... | true |
90b7bfd206b014944dda27ea577840e56a8e1208 | Java | AyaYoru/AndroidStudio-RandomNumber-9 | /android_num9_RandomNumber/app/src/main/java/com/example/android_num9_randomnumber/MainActivity.java | UTF-8 | 4,274 | 2.25 | 2 | [] | no_license | package com.example.android_num9_randomnumber;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;
public class MainActivity extends AppCompatActivity {
@Override
pro... | true |
cfe0631aef3fd81d19d17228701b4792dcad8cd6 | Java | jmad/aloha | /src/java/cern/accsoft/steering/aloha/calc/variation/VariationDataImpl.java | UTF-8 | 6,194 | 2.453125 | 2 | [
"Apache-2.0"
] | permissive | /*
* $Id: VariationDataImpl.java,v 1.2 2009-03-16 16:38:11 kfuchsbe Exp $
*
* $Date: 2009-03-16 16:38:11 $ $Revision: 1.2 $ $Author: kfuchsbe $
*
* Copyright CERN, All Rights Reserved.
*/
package cern.accsoft.steering.aloha.calc.variation;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.u... | true |
ddd9123f6aa63052636a2158afa69353152d1345 | Java | suprajaLara/snistForum | /app/src/main/java/jag/chintu/shiva/forum/Cse4sub.java | UTF-8 | 4,196 | 2.375 | 2 | [] | no_license | package jag.chintu.shiva.forum;
//import android.support.v7.app.*;
import java.util.*;
import android.os.*;
//import android.support.v7.widget.*;
import android.view.*;
import android.content.*;
import android.widget.*;
import androidx.appcompat.app.AppCompatActivity;
import androidx.recyclerview.widget.DefaultItemAn... | true |
b193620e1ecc872d2741d6eb6079df7d82750212 | Java | amitayansh/JavaFundamentals | /src/com/amitclive/fundamentals/Example47.java | UTF-8 | 784 | 3.171875 | 3 | [] | no_license | package com.amitclive.fundamentals;
public class Example47 {
public static void main(String[] args) {
char ch1 ='A';
// char ch2 =+ch1; Compilation Error: Type mismatch: cannot convert from int to char
char ch2 =(char) +ch1;
int a =+ch1;
double d1 =1234.567;
double d2 =-d1;
do... | true |
45e537a0d82ddfb8cbdee3297ce03b385c40adf9 | Java | szkuwamac/hcables | /common/szkuwa/hcables/tileentity/renderer/TESRCableHook.java | UTF-8 | 10,696 | 2.046875 | 2 | [
"MIT"
] | permissive | package szkuwa.hcables.tileentity.renderer;
import java.util.Iterator;
import org.lwjgl.opengl.GL11;
import szkuwa.hcables.HCables;
import szkuwa.hcables.item.ItemCable;
import szkuwa.hcables.tileentity.TileEntityGenericCableHook;
import szkuwa.hcables.utils.CableConnectionType;
import cpw.mods.fml.relauncher.Side;
... | true |
b39e4fb8bf67bb166522825df0c69aa011fb72f2 | Java | AartiGoel11/Eclipse_Programs | /ServletAndJSP/JavaProject/src/com/wipro/file/FileExample.java | UTF-8 | 472 | 3.015625 | 3 | [] | no_license | package com.wipro.file;
import java.io.File;
import java.io.IOException;
public class FileExample {
public static void main(String[] args) {
File f = new File("file2.txt");
try {
boolean b= f.createNewFile();
System.out.println("file is created "+b);
} catch (IOException e) {
// TODO Auto-generated ca... | true |
9d93d1010f74962e83265a96bb604e4630adf68d | Java | comradekingu/unity | /web-common/src/main/java/pl/edu/icm/unity/webui/common/credentials/SingleCredentialPanel.java | UTF-8 | 11,116 | 1.601563 | 2 | [] | no_license | /*
* Copyright (c) 2013 ICM Uniwersytet Warszawski All rights reserved.
* See LICENCE.txt file for licensing information.
*/
package pl.edu.icm.unity.webui.common.credentials;
import java.util.Collection;
import java.util.Map;
import org.apache.logging.log4j.Logger;
import com.vaadin.shared.ui.ContentMode;
import... | true |
d8b30f5acc12754ff16e6cffb10d04c3aa83c415 | Java | ljmf00-archive/trabalho-laboratorial-app | /app/src/main/java/net/lsferreira/school/trabalholaboratorial/Gabinete.java | UTF-8 | 864 | 2.859375 | 3 | [] | no_license | package net.lsferreira.school.trabalholaboratorial;
import net.lsferreira.school.trabalholaboratorial.Divisao;
import net.lsferreira.school.trabalholaboratorial.identificadores.Funcionario;
import java.util.LinkedList;
public class Gabinete<T extends Funcionario> extends Divisao {
private LinkedList<T> pessoas;
p... | true |
e15e04d3e6cc2addde6d64d9341324b3985af362 | Java | avelana/intersystems-cache-intellij-plugin | /cossupport/src/by/vsu/cacheplugin/service/NamePathGenerator.java | UTF-8 | 1,114 | 2.640625 | 3 | [] | no_license | package by.vsu.cacheplugin.service;
import java.io.File;
/**
* Created by mmaya on 15.04.2014.
*/
public class NamePathGenerator {
public static String createPathFromName(String name, String workspaceURL) {
String filename = name.replace(".", ":");
String[] folders = filename.split(":");
... | true |
88c24d2a684db4f84cbb2a78a0b47a776916c78a | Java | eriDam/Java_Tutorials_Review | /TutorialJavaReview/src/ConstrPizarraHistoria.java | ISO-8859-1 | 1,567 | 4.1875 | 4 | [] | no_license | /* Los mtodos constuctores son llamados automticamente
* cuando se crea un objeto es la nica vez q es llamado, es especial,
* con diferencias respecto a otros metodos regulares:
* - Tiene el mismo nombre que la clase, no tiene tipo de retorno, No return.
* Es un mtodo que no puede ser llamado,
*/
public cl... | true |
326b72282eb5dd16aabe1b26f505196c8273cc76 | Java | daviddaw/18-TerceraApuntes | /18 Tercera Evaluacion Apuntes , Enunciados , ejemplos y soluciones/jefesYObreros/conArrayList_Vector_Comparable_comparator/Jefe.java | UTF-8 | 1,431 | 3.34375 | 3 | [] | no_license | package conArrayList_Vector_Comparable_comparator;
import java.util.ArrayList;
public class Jefe extends Empleado {
static int autonumerico2;
ArrayList<Obrero> listaObreros;
public Jefe() {
super();
this.listaObreros= new ArrayList<Obrero>();
}
public ArrayList<Obrero> getListaObrero... | true |
5da2f584a690fef1e9c2dd0e52243a0e39a4af3b | Java | ronakpanchal/LeetcodePractice | /src/com/leetcode/problems/MostFrequentSubsetSum.java | UTF-8 | 1,609 | 2.9375 | 3 | [] | no_license | package com.leetcode.problems;
import java.util.ArrayList;
import java.util.Comparator;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.PriorityQueue;
import java.util.Queue;
public class MostFrequentSubsetSum {
Map<Integer, Integer> map = new Ha... | true |
fa39ef02d42925d6d8fb595af1eb23cf34052345 | Java | kwes18/HouseCmdState | /BlindClosed.java | UTF-8 | 800 | 3.375 | 3 | [] | no_license | /**
*
* @author Kayla Weselowski
* concrete state for blinds
* sets new state after up is called
* other commands print msgs
*/
public class BlindClosed implements BlindState {
Blind blind;
public BlindClosed(Blind newBlind) {
blind = newBlind;
}
@Override
public void fullyOpen() {
... | true |
f8f7268797789bc109871326d0f93d8dca81324e | Java | madsharm/search-target-case-study | /src/main/java/edu/search/rs/SearchRestService.java | UTF-8 | 1,790 | 2.109375 | 2 | [] | no_license | package edu.search.rs;
import edu.search.app.search.Search;
import edu.search.engine.SearcherFactory;
import edu.search.exception.InvalidSearchModeException;
import edu.search.vo.TimedSearchResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.SpringApplication;
import ... | true |
4cc347ad761db2e26f3bb9ee5efc309d5daa33ce | Java | bellmit/micro-service | /micro-service/mt-core/mt-core-1.0.0/src/main/java/com/ly/mt/core/common/dict/CouponUseTypeEnum.java | UTF-8 | 538 | 2.484375 | 2 | [] | no_license | package com.ly.mt.core.common.dict;
/**
* 优惠券使用状态枚举类
*
* @author zhanglifeng
* @date 2019-05-22
*/
public enum CouponUseTypeEnum {
COUPON_NOT_USED("1", "使用状态为未使用"),
COUPON_USED("2", "使用状态为已使用");
private final String id;
private final String name;
public String getId() {
return id;
... | true |
0bda33637bb80e5a7af7a9417c694a50eb64e9d6 | Java | MinSeob-Lee/JHTA | /oop7/Lotto.java | UTF-8 | 1,093 | 3.78125 | 4 | [] | no_license | package oop7;
import java.util.Arrays;
public class Lotto {
private int[] lottoNumbers = new int[6];
private int position = 0;
// 전체공개된 메소드
public int[] generateNumbers() {
clearLottoNumbers();
while (true) {
int number = (int) (Math.random() * 45 + 1);
boolean duplicationChecked = i... | true |
f51d9741c0af9bc54c51968b9ce82530b6ade482 | Java | shengqh/projecttrace | /src/main/java/edu/vanderbilt/cqs/dao/ProjectTaskStatusDAOImpl.java | UTF-8 | 281 | 1.515625 | 2 | [] | no_license | package edu.vanderbilt.cqs.dao;
import org.springframework.stereotype.Repository;
import edu.vanderbilt.cqs.bean.ProjectTaskStatus;
@Repository
public class ProjectTaskStatusDAOImpl extends GenericDAOImpl<ProjectTaskStatus, Long>
implements ProjectTaskStatusDAO {
}
| true |
df48f8a4a80dca79821e7201d5b33444ec5360c8 | Java | niemp296/Project-Based-Object-Oriented-Programming-and-Design | /Assn1/java/Functions.java | UTF-8 | 1,515 | 2.75 | 3 | [] | no_license | import java.util.List;
import java.util.Optional;
import java.util.Random;
import processing.core.PImage;
final class Functions
{
public static final Random rand = new Random();
public static PImage getCurrentImage(Object entity)
{
if (entity instanceof Background)
{
return ((Background... | true |
4e6bca3f22f55babc80a4f608ba0dfffa626295b | Java | benepell/Capstone-Project | /app/src/main/java/info/pelleritoudacity/android/rcapstone/data/db/DbHelper.java | UTF-8 | 31,498 | 1.710938 | 2 | [
"Apache-2.0"
] | permissive | /*
*
* ______ _____ _
* | ___ \ / ___| |
* | |_/ /___ __ _ _ __ \ `--.| |_ ___ _ __ ___
* | // __/ _` | '_ \ `--. \ __/ _ \| '_ \ / _ \
* | |\ \ (_| (_| | |_) /\__/ / || (_) | | | | __/
* \_| \_\___\__,_| .__/\____/ \__\___/|_| |_|\___|
* | |
* ... | true |
07913628fc5901c4bf509d399354db0111364871 | Java | PavloKhmarnyi/APhone | /app/src/main/java/com/example/pavlo/aphone/interfaces/RtcClient.java | UTF-8 | 564 | 2 | 2 | [] | no_license | package com.example.pavlo.aphone.interfaces;
import com.example.pavlo.aphone.parameters.RoomConnectionParameters;
import org.webrtc.IceCandidate;
import org.webrtc.SessionDescription;
/**
* Created by pavlo on 22.06.16.
*/
public interface RtcClient {
public void connectToRoom(RoomConnectionParameters connect... | true |
c272711811ba7125208ae62001c55930189a1c94 | Java | fossabot/justjournal | /src/main/java/com/justjournal/repository/EntryRepository.java | UTF-8 | 8,593 | 1.757813 | 2 | [] | no_license | /*
* Copyright (c) 2014 Lucas Holt
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of condition... | true |
6009024b2dc420e4d001ffb0749e344542f115ba | Java | ramin32/interpreter | /src/interpreter/Lexer.java | UTF-8 | 1,139 | 3.34375 | 3 | [] | no_license | /***********************************************************
* Lexer.java
* Desc: Performs lexical analysis on a given file.
* Uses patterns from Type class to discern between
* the different token types.
*
* Ramin Rakhamimov
* CIS 707
* Interpreter Project
*******************************... | true |
e9f838e16487158269fb00b7440a95a9ee2ed344 | Java | AggarwalAnkit/MapsDemo | /app/src/main/java/com/example/aa/mapsdemo/RestAdapter.java | UTF-8 | 1,657 | 2.375 | 2 | [] | no_license | package com.example.aa.mapsdemo;
import java.util.concurrent.TimeUnit;
import okhttp3.OkHttpClient;
import okhttp3.logging.HttpLoggingInterceptor;
import retrofit2.Retrofit;
import retrofit2.converter.gson.GsonConverterFactory;
/**
* Created by aa on 26/02/17.
*/
public class RestAdapter {
private static fin... | true |
56a3c83f2657a369f6634fcd2702cdf6de3682b8 | Java | 9odes/JAVA-01 | /Week_09/class17/rpcfx-core/src/main/java/com/nineodes/exception/RpcfxException.java | UTF-8 | 312 | 2.015625 | 2 | [] | no_license | package com.nineodes.exception;
/**
* created by DengJin on 2021/3/18 16:48
*/
public class RpcfxException extends RuntimeException {
public RpcfxException(Throwable cause) {
super(cause);
}
public RpcfxException(String message, Throwable cause) {
super(message, cause);
}
}
| true |
9b5f02a7e3623745a8c753d50dcafebe9d5695f5 | Java | glelouet/JSwaggerMaker | /Examples/Discourse/src/generated/java/discourse/example/com/anonymous/admin/sitesettings/StaffTags.java | UTF-8 | 835 | 2.390625 | 2 | [] | no_license | package discourse.example.com.anonymous.admin.sitesettings;
import java.util.HashMap;
import java.util.Map;
import discourse.example.com.Anonymous;
import fr.lelouet.jswaggermaker.client.common.impl.DelegateTransfer;
public class StaffTags
extends DelegateTransfer<Anonymous>
{
public StaffTags(Anonymous dele... | true |
fb9bbe20d517999244e495560a9ea2c3570af2d1 | Java | G14TeamWork/G14_GHealth | /Tests/Fixtures/InsertTestResultsTest.java | UTF-8 | 1,775 | 2.203125 | 2 | [] | no_license | package Fixtures;
import mainPackage.MainClass;
import ocsf.server.GHealthServer;
import Controllers.FillTestResController;
import Entities.FillTestResEntity;
import fit.ActionFixture;
public class InsertTestResultsTest extends ActionFixture {
Boolean result = true;
FillTestResEntity Entity = new FillTestResEntity()... | true |
ef57bda39e3d812fa455237e3ef05e3e05d38077 | Java | avorick/silver-potato | /ApplicationFramework/src/main/java/com/app/framework/listeners/AddressListener.java | UTF-8 | 219 | 1.921875 | 2 | [] | no_license | package com.app.framework.listeners;
import com.app.framework.entities.Address;
public interface AddressListener {
void onAddressResponse(Address address);
void onAddressError();
void onZeroResults();
}
| true |
73137179c8cee82a5c5410d7bdc366031d87b6f6 | Java | vFelicio/Rest_JSON | /cidade_rest/src/main/java/br/usjt/cidade_rest/CidadeRestApplication.java | UTF-8 | 320 | 1.515625 | 2 | [] | no_license | package br.usjt.cidade_rest;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
public class CidadeRestApplication {
public static void main(String[] args) {
SpringApplication.run(CidadeRestApplication.class, args);
}
}
| true |
985dfbb6d11c0972fd9efb56150e18bca29d3d88 | Java | erickogi/Data-Structures-Algorithims | /src/Graphs/AdjencyListGraph.java | UTF-8 | 3,270 | 3.859375 | 4 | [
"MIT"
] | permissive | package Graphs;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
public class AdjencyListGraph implements Graph{
//List of vertex objects (not adjecent) each has a refrence to its adjacents
private List<Vertex> vertexList = new ArrayList<>();
//Track no of vertices in gra... | true |
85c3e43a4bdd37cc5d5dc214c90048d0b5c95273 | Java | xuliangliang1992/gif-maker | /CommonLibrary/src/main/java/com/highlands/common/dialog/AuthDialog.java | UTF-8 | 2,060 | 2.109375 | 2 | [] | no_license | package com.highlands.common.dialog;
import android.content.Context;
import android.os.Bundle;
import android.view.View;
import com.highlands.common.R;
import com.highlands.common.databinding.AuthDialogBinding;
import com.highlands.common.dialog.base.BaseDialog;
import com.highlands.common.util.ShapeUtil;
import and... | true |
b4dcc407e833f41994d580db164fa25a050d9157 | Java | JonathanWick10/ProyectoFinal | /app/src/main/java/com/jonathan/proyectofinal/fragments/hp/TherapyPSFragment.java | UTF-8 | 4,080 | 2.09375 | 2 | [] | no_license | package com.jonathan.proyectofinal.fragments.hp;
import android.content.Context;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.fragment.app.Fragment;
import... | true |
a9d59ff8e6808ff58f03256f0fe464ccaf84b38a | Java | Lyrth/DiscordBot-Test | /src/main/java/lyr/testbot/util/ReflectionUtil.java | UTF-8 | 882 | 2.5625 | 3 | [] | no_license | package lyr.testbot.util;
import java.lang.annotation.Annotation;
import java.lang.reflect.Method;
import java.util.ArrayList;
import java.util.List;
public class ReflectionUtil {
public static List<Method> getAnnotatedMethods(final Class<?> clazz, final Class<? extends Annotation> annotation) {
final Li... | true |
298c26e2b7fac628e8fda5b7e100be5a7527d80d | Java | SJ-Revival/Ye | /app/src/main/java/de/ye/app/data/User.java | UTF-8 | 272 | 1.945313 | 2 | [] | no_license | package de.ye.app.data;
/**
* Created by bianca on 23.11.15.
*/
public class User {
public Address getAddress() {
return address;
}
public void setAddress(Address address) {
this.address = address;
}
private Address address;
}
| true |
56af6a386ec2b5dd1e231631fd466b6d10318222 | Java | bikashpdsah9512/MovieTicketBookingSystem | /Test/com/manisha/movieTicketBookingSystem/api/BookingControllerTest.java | UTF-8 | 4,751 | 2.390625 | 2 | [] | no_license | package com.manisha.movieTicketBookingSystem.api;
import com.manisha.movieTicketBookingSystem.exceptions.InvalidStateException;
import com.manisha.movieTicketBookingSystem.exceptions.NotFoundException;
import com.manisha.movieTicketBookingSystem.exceptions.SeatPermanentlyUnavailableException;
import com.manisha.movieT... | true |
71f0abe919ff597f48ef29ca328d59f925b0a548 | Java | junges521/src_awe | /src/main/java/com/ss/android/ugc/aweme/newfollow/util/FeedImpressionReporter.java | UTF-8 | 7,575 | 1.695313 | 2 | [] | no_license | package com.ss.android.ugc.aweme.newfollow.util;
import com.bytedance.common.utility.collection.CollectionUtils;
import com.meituan.robust.ChangeQuickRedirect;
import com.meituan.robust.PatchProxy;
import com.ss.android.ugc.aweme.base.sharedpref.e;
import java.util.HashSet;
import java.util.Iterator;
import java.util.... | true |
f9272b8e8544dfe8d5e75004d37ca7d9c4dee8ee | Java | daMaoCoding/project1 | /src/main/java/com/xinbo/fundstransfer/chatPay/inmoney/services/impl/ParttimeInmoneyServiceImpl.java | UTF-8 | 4,187 | 2.046875 | 2 | [] | no_license | package com.xinbo.fundstransfer.chatPay.inmoney.services.impl;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.HashMap;
import java.util.Map;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.fasterxml.jackson.core.Json... | true |
e6f57b703d81d02ad1d6daced07c9a0d30135415 | Java | asetiyadi/spring-web | /src/com/ibm/spring/web/controllers/OffersController.java | UTF-8 | 3,112 | 2.375 | 2 | [] | no_license | package com.ibm.spring.web.controllers;
import java.util.List;
import javax.validation.Valid;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.dao.DataAccessException;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springfram... | true |
2f91a138c366c1e1f333a622d3feb25fbfce955e | Java | damithchmr/Assignment | /src/assignment/model/ConfigurationData.java | UTF-8 | 643 | 2.3125 | 2 | [] | no_license | package assignment.model;
public class ConfigurationData {
private String boundaryPosition;
private String startPosition;
private String instruction;
public String getBoundaryPosition() {
return boundaryPosition;
}
public void setBoundaryPosition(String boundaryPosition) {
this.boundaryPosition = boundary... | true |
8f5a420a9be2f15e3c585cb7bcce6246f1e914f2 | Java | majiajue/ooobgy | /java_study/jung/dynamic_sna/src/edu/zju/cs/ooobgy/algo/dynamic_na/DynamicCluster.java | UTF-8 | 1,899 | 2.703125 | 3 | [] | no_license | package edu.zju.cs.ooobgy.algo.dynamic_na;
import java.util.ArrayList;
import java.util.List;
import java.util.Map.Entry;
import java.util.Set;
import org.apache.commons.collections15.Transformer;
import edu.zju.cs.ooobgy.algo.dynamic_na.pojo.ClusterSlice;
import edu.zju.cs.ooobgy.algo.dynamic_na.pojo.IdCluster;
imp... | true |
4ae2462275aecf5874706889a296371bacf83d6a | Java | javitan/Star-Wars-Labyrinth | /src/ED/Pila.java | UTF-8 | 2,777 | 3.78125 | 4 | [] | no_license | /**
* Implementación de la clase Pila.
* @version 4.0
* @author <b> Planet Express </b><br>
* Nombre y apellidos: Javier García Valencia
* Curso: 3º GIIIS
* Asignatura Desarrollo de Programas<br/>
* Curso 15/16
*/
package ED;
public class Pila<TipoDato extends Comparable<TipoDato>> {
/** Puntero a la cima d... | true |
bcab00fe9167c0623e5abbd6cfefd40e9d191d50 | Java | gauravjolly2210/GoogleSheets | /src/test/java/com/qait/automation/GoogleApi/Runner.java | UTF-8 | 256 | 1.507813 | 2 | [] | no_license | package com.qait.automation.GoogleApi;
import cucumber.api.CucumberOptions;
import cucumber.api.testng.AbstractTestNGCucumberTests;
@CucumberOptions(
features ="Feature"
,glue= {"Steps"}
)
public class Runner extends AbstractTestNGCucumberTests{
}
| true |
bdfbc185e5f790f04e59a68f728fb6caab997a75 | Java | herey-bit/AppClientesMoralFisico | /src/DTO/Prueba.java | UTF-8 | 437 | 2.40625 | 2 | [] | no_license | package DTO;
import DTO.*;
public class Prueba {
public static void main(String[] args) {
Persona[] n = new Persona[3];
PersonaMoral ok = new PersonaMoral();
//System.out.println(new PersonaMoral().getClass().getName());
System.out.println(n.getClass()+" "+n.getClass().getName()... | true |
1314383814d4d5853c6be7640a33e1807c598e94 | Java | D-M-Moriarty/DesignPatternsCA | /src/main/java/things/entity/strategy/update/UpdateSprite.java | UTF-8 | 93 | 1.945313 | 2 | [] | no_license | package things.entity.strategy.update;
public interface UpdateSprite {
void update();
}
| true |
1c8f24c43dd9db98ee3e7e9fe24081945002cec2 | Java | aysem61/tekrarveodev | /src/udemyProje/Test1BoyVeKilo.java | UTF-8 | 1,920 | 3.21875 | 3 | [] | no_license | package udemyProje;
import java.util.Scanner;
public class Test1BoyVeKilo {
public static void main(String[] args) {
// TODO Auto-generated method stub
boy_kilo();
hiz();
deger_degistirme();
hipotenus();
}
private static void hipotenus() {
// ucgenin dik kenarlari ile hipo... | true |
ef1e57913e7793ce3e81e6617c11ba58e54822bc | Java | chenzhikaizg/MyShppingDemo | /app/src/main/java/cn/aiyangkeji/activities/zhaoyys/QuickWenDaActivity.java | UTF-8 | 7,245 | 1.9375 | 2 | [] | no_license | package cn.aiyangkeji.activities.zhaoyys;
import android.os.Bundle;
import android.os.Environment;
import android.util.Log;
import android.view.KeyEvent;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.Button;
import android.widget.ImageView;
import android.widget.TextView;
import ... | true |
7c679b4addf3cbbcbe968079c02247f64f398c5b | Java | druidJane/Druid3.0.3 | /web-server/server-common/src/main/java/com/xuanwu/mos/vo/ContentVo.java | UTF-8 | 467 | 2.046875 | 2 | [] | no_license | package com.xuanwu.mos.vo;
/**
* Created by 郭垚辉 on 2017/8/8.
*/
public class ContentVo {
private Integer type;
private Object content;
public ContentVo() {
}
public Object getContent() {
return content;
}
public void setContent(Object content) {
this.content = content;... | true |
77b9df5c21b3dbf6609c258aceea814059a910d8 | Java | CronutJun/NICE | /nibs_ams_broker/src/main/java/com/nicetcm/nibsplus/broker/ams/mapper/TRmFileHisMapper.java | UTF-8 | 8,315 | 1.578125 | 2 | [] | no_license | package com.nicetcm.nibsplus.broker.ams.mapper;
import com.nicetcm.nibsplus.broker.ams.model.TRmFileHis;
import com.nicetcm.nibsplus.broker.ams.model.TRmFileHisKey;
import com.nicetcm.nibsplus.broker.ams.model.TRmFileHisSpec;
import java.util.List;
import org.apache.ibatis.annotations.Delete;
import org.apa... | true |
0a24acc4f8a96ae23dfa869cffcc5d7c82322815 | Java | cybergrouch/solvers | /models/src/main/java/org/lange/experiments/solver/models/CurrencyPairUtil.java | UTF-8 | 1,516 | 2.875 | 3 | [] | no_license | package org.lange.experiments.solver.models;
import org.apache.commons.lang3.tuple.Pair;
import org.paukov.combinatorics3.Generator;
import java.util.Comparator;
import java.util.List;
import java.util.Optional;
import java.util.function.Function;
import java.util.stream.Collectors;
import java.util.stream.Stream;
/... | true |
ee933abe8e58c8635d4d8cbe468937b28340b1a1 | Java | VNeufeld/testGis | /com.dev.gis.connector/src/com/dev/gis/connector/joi/protocol/DayAndHour.java | UTF-8 | 664 | 2.296875 | 2 | [] | no_license | package com.dev.gis.connector.joi.protocol;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlRootElement;
@XmlAccessorType(XmlAccessType.PROPERTY)
@XmlRootElement(name="dayHour")
public class DayAndHour extends BasicProtoco... | true |
ca8068e7baaf3d97d9547ae3a9562bac4079cf3e | Java | Ariah-Group/Continuity | /src/test/java/org/kuali/continuity/admin/dao/ITestSuite.java | UTF-8 | 1,934 | 1.671875 | 2 | [
"LGPL-2.0-or-later",
"ICU",
"CPL-1.0",
"MPL-2.0",
"Apache-2.0",
"Plexus",
"CDDL-1.0",
"ECL-2.0"
] | permissive | //
// Copyright 2011 Kuali Foundation, Inc. Licensed under the
// Educational Community 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.opensource.org/licenses/ecl2.php
//
// Unless required ... | true |
5322c6ff97de41506b51b69917316e68f028a02d | Java | GilBert1987/leetcode | /src/com/gilbert/algo/dp/MaxProfile.java | UTF-8 | 1,233 | 3.875 | 4 | [] | no_license | package com.gilbert.algo.dp;
// https://leetcode-cn.com/problems/best-time-to-buy-and-sell-stock/
// LK 121 买卖股票的最佳时机
//给定一个数组,它的第 i 个元素是一支给定股票第 i 天的价格。
//
// 如果你最多只允许完成一笔交易(即买入和卖出一支股票一次),设计一个算法来计算你所能获取的最大利润。
//
// 注意:你不能在买入股票前卖出股票。
// [7,1,5,3,6,4]
// 5
//输入: [7,6,4,3,1]
// 输出: 0
// 解释: 在这... | true |
72d8207772a88df1c71d8bf028a94fce62b929ee | Java | StefanLevoca/griddlers | /griddlers/src/main/java/sk/upjs/paz1c/griddlers/persistentna/MysqlKrizovkaDao.java | UTF-8 | 4,200 | 2.25 | 2 | [] | no_license | package sk.upjs.paz1c.griddlers.persistentna;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.jdbc.core.RowMapper;
import org.springframework.jdbc.cor... | true |
b029a655a12c452951a30564ed2d1165608c85d4 | Java | skullbonk/FancySandGame | /src/sand/controller/SandLab.java | UTF-8 | 7,610 | 3.09375 | 3 | [] | no_license | package sand.controller;
import java.awt.*;
import java.util.*;
import sand.view.SandDisplay;
public class SandLab
{
// public Map tools = new Hashtable();
//Step 4,6
//add constants for particle types here
public static final int EMPTY = 0;
public static final int METAL = 1;
public static final int SAND =... | true |
821c2221d8dd13ef116082118256440599b7fde9 | Java | Roiko97/coordination | /coordination/coordination/coordination_server/src/main/java/com/cd/coordination/impl/UserServiceImpl.java | UTF-8 | 3,538 | 2.078125 | 2 | [] | no_license | package com.cd.coordination.impl;
import com.cd.coordination.TrackService;
import com.cd.coordination.UserService;
import com.cd.coordination.dao.UserDao;
import com.cd.coordination.entity.User;
import com.cd.coordination.global.RedisPoolUtil;
import org.json.JSONObject;
import org.springframework.beans.factory.annota... | true |
657d425375abd87d5f042146c86bece4881133f3 | Java | hungngo78/HHMarket2 | /springboot-hhmarket/src/main/java/com/hhmarket/restfulapi/controllers/CategoryController.java | UTF-8 | 7,646 | 2.21875 | 2 | [] | no_license | package com.hhmarket.restfulapi.controllers;
import java.util.ArrayList;
import java.util.List;
import java.util.Optional;
import org.json.JSONObject;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
imp... | true |
500fa07a06671eb6da192657f1ad468d741b0dc3 | Java | samuelchoi/snowcms-snippet | /src/main/java/org/snow/snippet/cli/CliExample.java | UTF-8 | 1,152 | 2.90625 | 3 | [] | no_license | package org.snow.snippet.cli;
import org.apache.commons.cli.CommandLine;
import org.apache.commons.cli.CommandLineParser;
import org.apache.commons.cli.DefaultParser;
import org.apache.commons.cli.HelpFormatter;
import org.apache.commons.cli.Options;
import org.apache.commons.cli.ParseException;
/**
* Cli ... | true |
d5b7aa1c25ab83edc7c50e366adb2f27ba598c8b | Java | AkashRepository/chess | /src/main/java/com/akash/model/King.java | UTF-8 | 418 | 2.921875 | 3 | [] | no_license | package com.akash.model;
public class King extends Piece {
@Override
protected boolean canMove(Board board, Spot start, Spot end) {
if (end.getPiece().isWhite() == this.isWhite())
return false;
if ( Math.abs(start.getX() - end.getX()) +
Math.abs(start.getY() - end.g... | true |
1c497137d5016897bd3dda35febf93978eba818f | Java | NesterovAndrey/Backend | /src/main/java/com/backend/config/authentication/ResourceServer.java | UTF-8 | 2,893 | 2.125 | 2 | [] | no_license | package com.backend.config.authentication;
import com.backend.web.authentication.CustomUserAuthenticationConverter;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.*;
import org.springframework.security.co... | true |
ebe658450636aa7a3ce26c0e2861cb1edf92ede0 | Java | lookfirst/WePay-Java-SDK | /src/test/java/com/lookfirst/wepay/util/FakeDataProvider.java | UTF-8 | 560 | 2.421875 | 2 | [
"MIT"
] | permissive | package com.lookfirst.wepay.util;
import lombok.AllArgsConstructor;
import lombok.NonNull;
import lombok.RequiredArgsConstructor;
import java.io.ByteArrayInputStream;
import java.io.IOException;
import java.io.InputStream;
/**
* Helper class for faking data responses from the server.
*/
@AllArgsConstructor
public ... | true |
40b171c00036100ed10935c8ad1c5bbb16b3cb81 | Java | readlearncode/AWS-Polly-Custom-Connector | /src/main/java/org/mule/extension/aws/polly/internal/VoiceProfile.java | UTF-8 | 2,439 | 2.421875 | 2 | [
"MIT"
] | permissive | package org.mule.extension.aws.polly.internal;
import org.mule.runtime.extension.api.annotation.param.Optional;
import org.mule.runtime.extension.api.annotation.param.Parameter;
import org.mule.runtime.extension.api.annotation.param.display.DisplayName;
import org.mule.runtime.extension.api.annotation.values.OfVa... | true |
46048e09670f4bf83f6ac43357d1109955245889 | Java | Grandez/SDP_Java | /MODDBEntities/src/main/java/com/jgg/sdp/domain/module/MODCics.java | UTF-8 | 2,302 | 2.265625 | 2 | [] | no_license | package com.jgg.sdp.domain.module;
import java.io.Serializable;
import javax.persistence.*;
@Entity
@Table(name="MOD_CICS")
@NamedQueries ({
@NamedQuery( name="MODCics.delete"
,query="DELETE FROM MODCics c WHERE c.idVersion = ?1 ")
,@NamedQuery( name="MODCics.list"
,query="SELECT c FROM... | true |