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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
8effd64cf3c1a0a8ee0551ca5a99318c9e1f69a4 | Java | phi-fell/fell | /project/src/OLDcom/monolc/fell/net/ServerIO.java | UTF-8 | 2,876 | 2.8125 | 3 | [] | no_license | package OLDcom.monolc.fell.net;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.net.ServerSocket;
import java.net.Socket;
import java.util.ArrayList;
import OLDcom.monolc.fell.version.VersionData;
import OLDcom.monolc.fell.world.Floo... | true |
eb58db25489060d79bb0e56feedf06894628e270 | Java | AdamStuart/misiek | /PPINetworksEvolutionPlugin/src/ppine/utils/Stats.java | UTF-8 | 3,490 | 2.296875 | 2 | [] | no_license | /* ===========================================================
* NetworkEvolutionPlugin : Cytoscape plugin for visualizing stages of
* protein networks evolution.
* ===========================================================
*
*
* Project Info: http://bioputer.mimuw.edu.pl/modevo/
* Sources: http://code.google.... | true |
9d24a02d73e85a348913c6a0a806697804987548 | Java | alfredo-milani/NextEventSimulator | /src/main/java/it/uniroma2/pmcsn/simulation/system/cloudlet/task_interrupt/TaskInterruptFactory.java | UTF-8 | 1,629 | 2.75 | 3 | [] | no_license | package it.uniroma2.pmcsn.simulation.system.cloudlet.task_interrupt;
import com.google.common.base.Preconditions;
import javax.annotation.Nonnull;
public class TaskInterruptFactory {
public enum Algorithm {
MIN_ARRIVAL_TIME,
MAX_ARRIVAL_TIME,
MIN_COMPLETION_TIME,
MAX_COMPLETION_... | true |
7dc3939ce91528b350fa9d046796139a2d4798be | Java | pabllo007/cca | /Movimentacao/ContaCapitalMovimentacaoFachada/src/main/java/br/com/sicoob/sisbr/cca/movimentacao/enums/EnumTipoPesquisaBloqueio.java | ISO-8859-10 | 729 | 2.6875 | 3 | [] | no_license | package br.com.sicoob.sisbr.cca.movimentacao.enums;
/**
* Enum com os valores possiveis para pesquisar bloqueios
* @author Nairon.Silva
*/
public enum EnumTipoPesquisaBloqueio {
TODOS("0", "TODOS"),
NOME("1", "NOME"),
CPF_CNPJ("2", "CPF/CNPJ"),
TIPO_BLOQUEIO("3", "TIPO BLOQUEIO"),
CONTA_CAPITAL("4", "CONTA CA... | true |
b5e63dd2630da200f834b6cd70fa774a3f5b23c8 | Java | ajlam/mssql-jdbc | /src/test/java/com/microsoft/sqlserver/jdbc/tvp/TVPIssuesTest.java | UTF-8 | 5,688 | 2 | 2 | [
"MIT"
] | permissive | /*
* Microsoft JDBC Driver for SQL Server
*
* Copyright(c) Microsoft Corporation All rights reserved.
*
* This program is made available under the terms of the MIT License. See the LICENSE file in the project root for more information.
*/
package com.microsoft.sqlserver.jdbc.tvp;
import static org.junit.jupite... | true |
99f8192e825c1f2b0aa5a3d66e82c35a092c788a | Java | xxxxxgg/hello-world | /pjt/src/main/java/com/vil/pjt/domain/OrderedItemVO.java | UTF-8 | 1,575 | 2.203125 | 2 | [] | no_license | package com.vil.pjt.domain;
import java.util.Date;
public class OrderedItemVO {
private Integer no;
private Integer order_no;
private Integer item_no;
private Integer count;
private Integer totalprice;
private String rentaltype;
private Date startdate;
private Date enddate;
... | true |
1f6066328ac74a3e138869500d9ff0c6ddb4de78 | Java | xiehuanfa/jiangkedajava | /springbootsell/src/main/java/com/neusoft/springbootsell/exception/SellException.java | UTF-8 | 483 | 2.25 | 2 | [
"Apache-2.0"
] | permissive | package com.neusoft.springbootsell.exception;
import com.lly835.bestpay.enums.BestPayResultEnum;
import com.neusoft.springbootsell.enums.ResultEnum;
public class SellException extends RuntimeException{
private Integer code;
public SellException(ResultEnum resultEnum) {
super(resultEnum.getMessage(... | true |
9c95223c428c9e08f43d555617a4be8609233528 | Java | P1ethora/EPAM_training_online | /Modul_2_Algorithmization/src/m_1_linearArrays/Task_04.java | UTF-8 | 1,313 | 3.828125 | 4 | [] | no_license | package m_1_linearArrays;
import java.util.Arrays;
/**
* Даны действительные числа a₁,a₂,...,aₙ . Поменять местами наибольший и наименьший элементы.
*/
public class Task_04 {
public static void main(String[] args) {
double[] list = {999, 9, 15, 888, 0, 1, 78, 17};
double max = Arrays.stream(l... | true |
a20a03b303ba9026afbc4ae9ad72bb8e93ddb6a9 | Java | HaydenLFowler/CO567-CW1 | /VenueManager.java | UTF-8 | 6,259 | 3.15625 | 3 | [] | no_license | import java.util.ArrayList;
/**
* Write a description of class VenueManager here.
*
* @author (your name)
* @version (a version number or a date)
*/
public class VenueManager
{
private ArrayList<Show> shows;
private ArrayList<Event> events;
private ArrayList<Promotions> promotions;
/**
* Cons... | true |
ba560008ce27694ff698105cf21e766735b54bab | Java | apoorva223054/SF3 | /POSNirvanaORM/src/com/nirvanaxp/types/entities/FieldType_.java | UTF-8 | 843 | 1.6875 | 2 | [
"Apache-2.0"
] | permissive | package com.nirvanaxp.types.entities;
import java.sql.Timestamp;
import javax.annotation.Generated;
import javax.persistence.metamodel.SingularAttribute;
import javax.persistence.metamodel.StaticMetamodel;
@Generated(value="Dali", date="2019-01-08T12:02:24.204+0530")
@StaticMetamodel(FieldType.class)
public class Fie... | true |
b5cb71fef660444367be3560b1f4def4bf4be239 | Java | alberto017/InviattoRepartidor | /app/src/main/java/com/example/inviattorepartidor/SignIn.java | UTF-8 | 8,684 | 2.0625 | 2 | [] | no_license | package com.example.inviattorepartidor;
import androidx.annotation.NonNull;
import androidx.appcompat.app.AppCompatActivity;
import io.paperdb.Paper;
import android.app.AlertDialog;
import android.app.ProgressDialog;
import android.content.DialogInterface;
import android.content.Intent;
import android.graphics.Typefa... | true |
da18115bb944a05036979d8c9ffea01f84efbb9f | Java | stevicaum/organizations | /src/main/java/com/usermind/rule/config/security/NoSecurityConfig.java | UTF-8 | 1,317 | 2 | 2 | [] | no_license | package com.usermind.rule.config.security;
import io.swagger.v3.oas.models.OpenAPI;
import io.swagger.v3.oas.models.info.Info;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.a... | true |
1f7b05b0e79eadd093a4813886dacb688462c56f | Java | assiaMorozova/git_practice | /src/receipt/ReceiptBuilder.java | UTF-8 | 2,222 | 2.796875 | 3 | [] | no_license | package receipt;
import java.io.FileInputStream;
import javax.swing.JOptionPane;
import org.apache.poi.hwpf.HWPFDocument;
import org.apache.poi.hwpf.usermodel.CharacterRun;
import org.apache.poi.hwpf.usermodel.Paragraph;
import org.apache.poi.hwpf.usermodel.Range;
import org.apache.poi.hwpf.usermodel.Section;
import... | true |
0b76afd4f2a597a12479b0d63d98fba0736ef013 | Java | mchen-len-son/pentaho-platform-plugin-reporting | /test-src/org/pentaho/reporting/platform/plugin/async/WriteToJcrTaskTest.java | UTF-8 | 4,179 | 1.679688 | 2 | [] | no_license | /*!
* This program is free software; you can redistribute it and/or modify it under the
* terms of the GNU Lesser General Public License, version 2.1 as published by the Free Software
* Foundation.
*
* You should have received a copy of the GNU Lesser General Public License along with this
* program; if not, you ... | true |
e0c019430cc6b262e5a644be09903dfe8cb72a11 | Java | Ko-Rona/tarnovskaya_elena_PDT_B12 | /mantis-tests/src/test/java/com/stqa/mantis/tests/SoapTests.java | UTF-8 | 1,107 | 2.453125 | 2 | [
"Apache-2.0"
] | permissive | package com.stqa.mantis.tests;
import com.stqa.mantis.model.Issue;
import com.stqa.mantis.model.Project;
import org.testng.Assert;
import org.testng.annotations.Test;
import javax.xml.rpc.ServiceException;
import java.net.MalformedURLException;
import java.rmi.RemoteException;
import java.util.Set;
public class Soap... | true |
c643cb7705abd6ca5c54b8f26a48b371fa65858c | Java | LP-sunrise/Weatherforecast | /app/src/main/java/com/example/weatherforecast/Weather.java | UTF-8 | 18,766 | 1.796875 | 2 | [] | no_license | package com.example.weatherforecast;
import android.content.ContentValues;
import android.content.Intent;
import android.content.SharedPreferences;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import androidx.appcompat.app.AppCompatActivity;
import android.os.Bundle;
import android.co... | true |
f3ca526580a26a4c8227f5cc401acb98bea7074d | Java | MashaLar/ElementaryTask | /src/main/java/task7/Main.java | UTF-8 | 187 | 1.523438 | 2 | [] | no_license | package task7;
import task7.presentation.RootRowConsoleProgram;
public class Main {
public static void main(String[] args) {
new RootRowConsoleProgram(false, args);
}
}
| true |
f76056d4060dbefbd55246079329de15225e7870 | Java | OakOnEll/LibriDroid | /Common/src/com/oakonell/utils/preference/CommonPreferences.java | UTF-8 | 3,725 | 2.03125 | 2 | [] | no_license | package com.oakonell.utils.preference;
import android.app.Activity;
import android.app.AlertDialog;
import android.content.DialogInterface;
import android.content.Intent;
import android.content.SharedPreferences;
import android.preference.Preference;
import android.preference.Preference.OnPreferenceClickListener;
impo... | true |
fb3d888da10b3379cba6093a73cc0045b480a44e | Java | hrahmadi71/MultiRefactor | /src/refactorings/type/CollapseHierarchy.java | UTF-8 | 18,553 | 2.015625 | 2 | [
"MIT"
] | permissive |
package refactorings.type;
import java.util.ArrayList;
import recoder.CrossReferenceServiceConfiguration;
import recoder.abstraction.ClassType;
import recoder.abstraction.Field;
import recoder.abstraction.Method;
import recoder.abstraction.Package;
import recoder.abstraction.Type;
import recoder.bytecode.... | true |
c8e1142efcbe717b0d24fa4afc940e945b5de7ad | Java | Jaguarhalo/CTO-V1.0 | /app/src/main/java/com/example/corp_01agmp/ctov10/BD/Pagos.java | UTF-8 | 2,581 | 2.40625 | 2 | [] | no_license | package com.example.corp_01agmp.ctov10.BD;
import android.content.ContentValues;
import android.content.Context;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.util.Log;
/**
* Created by Usuario 1 on 11/05/2016.
*/
public class Pagos {
private Conexion conexion;
... | true |
10fe6b717d23772bff1620af4b764d3c8b7fd956 | Java | ataybur/ShoppingCart | /src/main/java/com/ataybur/cart/utils/calculator/BigDecimalCalculator.java | UTF-8 | 330 | 2.671875 | 3 | [] | no_license | package com.ataybur.cart.utils.calculator;
import java.math.BigDecimal;
public class BigDecimalCalculator implements ICalculator{
private final BigDecimal instance;
public BigDecimalCalculator(BigDecimal instance) {
this.instance = instance;
}
@Override
public BigDecimal calculate() {
return this.instan... | true |
a6d79d8613b35028cbb740c3dc7b3f596a7808bf | Java | ferunal/ejemplomongo | /src/main/java/com/fer/ejemplomongocamel/Principal.java | UTF-8 | 3,460 | 1.742188 | 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.fer.ejemplomongocamel;
import com.mongodb.Mongo;
import com.mongodb.MongoClientSettings;
import com.mongodb.client.MongoCl... | true |
87c79ffdf3f2f420f03eb38e1a722e3ecf41dea7 | Java | rchomjak/OOPGraph | /src/com/company/Graph.java | UTF-8 | 832 | 2.796875 | 3 | [] | no_license | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package com.company;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Map;
/**
*
*
*/
public class Graph {
... | true |
ddfcd08dd9f3f7b4cb0898fd70083a7c976eb61c | Java | hugotannus/Ares | /src/obsolete/ServiceProvider.java | UTF-8 | 340 | 1.796875 | 2 | [] | no_license | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package obsolete;
import obsolete.Requirement;
/**
*
* @author Hugo
*/
public class ServiceProvider extends Requirement{
String fornecedor;
public ServiceProvider(String description) {
super(descrip... | true |
2ed977b52a71531a6d9fa39c7f5304560a23403b | Java | JALsnipe/HTC-RE-YouTube-Live-Android | /src/com/google/android/gms/analytics/z.java | UTF-8 | 1,619 | 1.859375 | 2 | [] | no_license | // Decompiled by Jad v1.5.8e. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.geocities.com/kpdus/jad.html
// Decompiler options: braces fieldsfirst space lnc
package com.google.android.gms.analytics;
// Referenced classes of package com.google.android.gms.analytics:
// ad, aa
class z
... | true |
23534d45a4a7b87021267f5d60dcaf3152a38c3e | Java | DevHilmi/CariDosen-MVP | /app/src/main/java/rizaldev/caridosenmvp/screens/main/list/DosenViewHolder.java | UTF-8 | 651 | 2.0625 | 2 | [] | no_license | package rizaldev.caridosenmvp.screens.main.list;
import android.support.v7.widget.RecyclerView;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;
import rizaldev.caridosenmvp.R;
/**
* Created by devel on 30/01/2018.
*/
class DosenViewHolder extends RecyclerView.ViewHolder ... | true |
c237c0d337cfba62b6fbdc2909da80dac5d29d29 | Java | clinton92/eNotice | /src/com/example/enoticeapp/Register.java | UTF-8 | 9,644 | 1.914063 | 2 | [] | no_license | package com.example.enoticeapp;
import java.io.IOException;
import java.io.UnsupportedEncodingException;
import java.util.ArrayList;
import java.util.List;
import org.apache.http.HttpResponse;
import org.apache.http.NameValuePair;
import org.apache.http.client.ClientProtocolException;
import org.apache.http.client.en... | true |
aa4f62282810bbbc71d0dfd7658eda9403ea3d19 | Java | davismariotti/DeathSwap | /src/main/java/com/hawkfalcon/deathswap/Stop.java | UTF-8 | 1,354 | 2.796875 | 3 | [] | no_license | package com.hawkfalcon.deathswap;
import org.bukkit.ChatColor;
import org.bukkit.entity.Player;
public class Stop {
public DeathSwap plugin;
public Stop(DeathSwap ds) {
this.plugin = ds;
}
public void dealWithLeftoverGames(String n, boolean died) {
if(plugin.match.containsKey(n)) {
... | true |
048e1359f3d51beb35cd0978f4a61f675d4b03a0 | Java | phongtn/BackendAPI | /src/main/java/com/wind/domain/user/UserService.java | UTF-8 | 874 | 2.296875 | 2 | [
"Apache-2.0"
] | permissive | package com.wind.domain.user;
import com.wind.config.exception.ServerApiException;
import com.wind.dto.UserDto;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
@Slf4j
@Service
public class UserService {
private final UserRepository userRepository;
public UserService(UserRepo... | true |
220536f490954ab9b87acd28df84f6b7f0d82388 | Java | hnl123/CRM6 | /src/main/java/com/zking/crm/mapper/ServiceMapper.java | UTF-8 | 665 | 1.90625 | 2 | [] | no_license | package com.zking.crm.mapper;
import com.zking.crm.model.Service;
import org.springframework.stereotype.Repository;
import java.util.List;
@Repository
public interface ServiceMapper {
int deleteByPrimaryKey(Long svrId);
int insert(Service record);
int insertSelective(Service record);
Service selec... | true |
f3d22d7fff03cc861619bc4d6b69cf25638c6a50 | Java | AceCheung-dot/YanHuaMarkdown- | /app/src/main/java/bob/eve/walle/mvp/presenter/MovieFromGankPresenter.java | UTF-8 | 2,908 | 2.140625 | 2 | [
"LicenseRef-scancode-warranty-disclaimer",
"Apache-2.0"
] | permissive | /*
* Create by BobEve on 17-12-21 下午4:31
* Copyright (c) 2017. All rights reserved.
*
* Last modified 17-12-21 上午3:08
*/
package bob.eve.walle.mvp.presenter;
import bob.eve.mvp.di.scope.PreFragment;
import bob.eve.mvp.presenter.EveBasePresenter;
import bob.eve.mvp.rx.error.EveRxErrorObserver;
import bob.eve.wall... | true |
1e6aeddf23a9ccbdd630642e32597c6430911b99 | Java | lionelcao/logstorm | /server/src/main/java/com/ebay/logstorm/server/services/impl/PipelineExecutionServiceImpl.java | UTF-8 | 9,742 | 1.921875 | 2 | [] | no_license | package com.ebay.logstorm.server.services.impl;
import com.ebay.logstorm.core.exception.PipelineExecutionException;
import com.ebay.logstorm.server.entities.PipelineEntity;
import com.ebay.logstorm.server.entities.PipelineExecutionEntity;
import com.ebay.logstorm.server.entities.PipelineExecutionStatus;
import com.eba... | true |
0ccaf086350312d987fd5c37ff056356c483447b | Java | samuelt1/java | /src/JDBC1.java | UTF-8 | 2,500 | 3.359375 | 3 | [] | no_license | // JDBC Example - printing a database's metadata
// Coded by Chen Li/Kirill Petrov Winter, 2005
// Slightly revised for ICS185 Spring 2005, by Norman Jacobson
import java.sql.*; // Enable SQL processing
import java.util.Scanner;
public class JDBC1 {
public static void main(String[] a... | true |
5173150ba60a292ddd903132bb03383c9f0ed808 | Java | BP2014W1/JodaEngine | /engine-core-impl/src/main/java/org/jodaengine/node/activity/custom/MailingVariable.java | UTF-8 | 3,416 | 2.875 | 3 | [] | no_license | package org.jodaengine.node.activity.custom;
import java.util.Properties;
import javax.annotation.Nonnull;
import javax.mail.Message;
import javax.mail.MessagingException;
import javax.mail.Session;
import javax.mail.Transport;
import javax.mail.internet.InternetAddress;
import javax.mail.internet.MimeMessage;
impor... | true |
e1a1dbbbc96e42981f1203a9a9ec3b6367e4281e | Java | chatopera/pug4j | /src/test/java/de/neuland/pug4j/expression/GraalJsExpressionHandlerTest.java | UTF-8 | 4,141 | 2.59375 | 3 | [
"MIT"
] | permissive | package de.neuland.pug4j.expression;
import de.neuland.pug4j.exceptions.ExpressionException;
import de.neuland.pug4j.model.PugModel;
import org.graalvm.polyglot.proxy.ProxyArray;
import org.graalvm.polyglot.proxy.ProxyObject;
import org.junit.Before;
import org.junit.Test;
import java.lang.reflect.Array;
import java.... | true |
aa59ed12486b8d53b43c3938c174e239238d8375 | Java | MelatTekie/EthiopiaGuide | /app/src/main/java/edu/mnstate/wy5094ho/tekieproject/salad.java | UTF-8 | 838 | 2 | 2 | [] | no_license | package edu.mnstate.wy5094ho.tekieproject;
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
public class salad extends parent {
private Button salad1;
private Button salad2;
@Override
prot... | true |
408c6c4dba23d6062ed3656fd4cb8b1b3f85e492 | Java | shashankshanu20/programming-algos | /workspace/algos/src/main/java/personal/programming/algos/trees/ZigZagLevelOrderTraversal.java | UTF-8 | 1,716 | 3.625 | 4 | [] | no_license | package personal.programming.algos.trees;
import java.util.ArrayDeque;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Queue;
public class ZigZagLevelOrderTraversal {
class TreeNode {
int val;
TreeNode left;
TreeNode right;
TreeNode(int x) {
... | true |
a62dbe543716748a5a08eced0aab293efbd1dd5a | Java | mschneiderman1/HelloWorld | /src/CH9Inheritance/Shapes/JavaFiles/Cylinder.java | UTF-8 | 1,098 | 4.03125 | 4 | [] | no_license |
package CH9Inheritance.Shapes.JavaFiles;
public class Cylinder implements Shapes {
private double radius;
private double height;
/**
* constructor
* @param radius
* @param height
*
*/
public Cylinder(double radius, double height){
this.radius = radius;
this.he... | true |
c2860d84027e58e8647526f30000865a2e0380c6 | Java | keefmarshall/fco-alerts-app | /src/uk/co/eleusis/android/fcoalerts/MainActivity.java | UTF-8 | 15,015 | 1.929688 | 2 | [
"MIT"
] | permissive | package uk.co.eleusis.android.fcoalerts;
import java.io.IOException;
import java.text.DateFormat;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Locale;
import java.util.Map;
import java.util.Set;
import java.... | true |
0d2712862d0ab86893f7f6042ee057813c979ea7 | Java | miguelhorlle/marque | /src/com/marquesexo/bean/Interessante.java | UTF-8 | 846 | 2.125 | 2 | [] | no_license | package com.marquesexo.bean;
import java.io.Serializable;
public class Interessante implements Serializable{
/**
*
*/
private static final long serialVersionUID = 1L;
private long id;
private long codigo_sexual_interessado;
private long codigo_sexual_interessante;
public long getId() {
return id... | true |
08c6afb2eac98ad18199256938a8d112fa0a2642 | Java | pluhi92/JAVA- | /kurz/DownloadJPEG.java | UTF-8 | 449 | 2.484375 | 2 | [] | no_license | package com.zetcode;
import java.io.*;
import java.net.URL;
public class DownloadJPEG {
public static void main(String[] args) throws IOException {
var url_path = "http://webcode.me/favicon.ico";
var url = new URL(url_path);
try (var is = url.openStream();
var fo = new FileOutpu... | true |
db4aa1164ce37087b7592ca789250c557c4cf2cc | Java | matkosoric/OCP | /src/main/java/edu/matkosoric/execution/output/fruits/FruitsOrder.java | UTF-8 | 825 | 3.328125 | 3 | [
"MIT-0"
] | permissive | package edu.matkosoric.execution.output.fruits;
/*
* Code examples for Oracle Certified Professional (OCP) Exam 1Z0-819
* Java 11 SE, 2022.
* Created by © Matko Soric.
*/
import java.util.ArrayList;
import java.util.Arrays;
public class FruitsOrder {
// what is the output ?
// because of the minus sign ... | true |
a4d5763c0d91aaa3eee760ade120d37a5809e467 | Java | ollim84/Java-projects | /Energy-aware job scheduler for supercomputing/Optimizer/java/org/f4g/entropy/plan/objective/PowerObjective.java | UTF-8 | 13,550 | 1.914063 | 2 | [] | no_license |
package org.f4g.entropy.plan.objective;
import java.util.ArrayList;
import java.util.List;
import java.util.HashMap;
import choco.cp.solver.variables.integer.BoolVarNot2;
import org.f4g.optimizer.utils.Utils;
import org.f4g.power.IPowerCalculator;
import org.f4g.schema.constraints.optimizerconstraints.VMTypeType;
i... | true |
67c2b7cec3e91499f49c557cf7328966418b0016 | Java | kkadapa/radioimageannotator | /src/main/java/com/imageview/DataRetrieveHelper.java | UTF-8 | 1,418 | 2.625 | 3 | [] | no_license | package com.imageview;
import com.data.ImageDataDAO;
import com.data.ImageDataModel;
import java.io.File;
import java.util.ArrayList;
import java.util.List;
/**
* Created by karthik on 3/1/15.
*/
public class DataRetrieveHelper {
public static ImageDataModel getDataFromDatabase (int index) {
ImageDat... | true |
96550b7960aaface203aa2b8d10f3d4cff17bf59 | Java | RuiRocha21/ucBusca | /dataServer/src/dataServer.java | UTF-8 | 42,141 | 2.421875 | 2 | [] | no_license | import java.io.*;
import java.net.*;
import java.nio.charset.StandardCharsets;
import java.sql.*;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.Iterator;
import java.util.LinkedList;
import java... | true |
165bf6d995c091f8080024163e1257ccb8a4a759 | Java | CenterForOpenScience/cas-overlay | /cas-server-support-osf/src/test/java/io/cos/cas/mock/MockNotifyRemotePrincipalAuthenticated.java | UTF-8 | 998 | 1.859375 | 2 | [
"Apache-2.0"
] | permissive | package io.cos.cas.mock;
import io.cos.cas.AbstractTestUtils;
import io.cos.cas.authentication.OpenScienceFrameworkCredential;
import org.jasig.cas.CentralAuthenticationService;
import javax.security.auth.login.AccountException;
/**
* This class mocks the {@code OpenScienceFrameworkPrincipalFromRequestRemoteUserNo... | true |
8f69a6c2919162331558fac649bb5913e6fa094a | Java | speedooo/mysnipserver | /src/test/java/com/github/nwillc/mysnipserver/util/http/error/HttpExceptionTest.java | UTF-8 | 2,162 | 2.265625 | 2 | [
"ISC"
] | permissive | /*
* Copyright (c) 2016, nwillc@gmail.com
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR D... | true |
f70f954f6b2bf2874dd620f94b52d0073ec04ca7 | Java | levinhtin/java-spring-cqrs | /src/main/java/com/greenglobal/eoffice/infrastructure/broker/SpringKafkaConsumer.java | UTF-8 | 1,116 | 2.234375 | 2 | [] | no_license | package com.greenglobal.eoffice.infrastructure.broker;
import java.text.SimpleDateFormat;
import java.util.Date;
import com.greenglobal.eoffice.domain.core.events.DomainEvent;
import com.greenglobal.eoffice.infrastructure.event.EventHandler;
import org.springframework.beans.factory.annotation.Autowired;
import org.s... | true |
aedcd89e6d955fd55cbf1cc8a3e48b7efea242e2 | Java | kashyapbari/priority-assignment | /src/main/java/com/kashyapbari/tatsam/priorityassignment/domain/Area.java | UTF-8 | 583 | 2.140625 | 2 | [] | no_license | package com.kashyapbari.tatsam.priorityassignment.domain;
import lombok.*;
import org.hibernate.annotations.GenericGenerator;
import javax.persistence.*;
import java.util.List;
import java.util.UUID;
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@Entity
public class Area {
@Id
@GeneratedValue(generat... | true |
594c53e47c451cbe1fd79edf79969b68597d5bf4 | Java | datahaki/retina | /src/test/java/ch/ethz/idsc/gokart/core/mpc/DubendorfTrack.java | UTF-8 | 4,653 | 2.296875 | 2 | [] | no_license | // code by mh
package ch.ethz.idsc.gokart.core.mpc;
import ch.ethz.idsc.retina.util.math.SI;
import ch.ethz.idsc.tensor.Scalar;
import ch.ethz.idsc.tensor.Tensor;
import ch.ethz.idsc.tensor.Tensors;
import ch.ethz.idsc.tensor.alg.Reverse;
import ch.ethz.idsc.tensor.alg.Transpose;
import ch.ethz.idsc.tensor.alg.VectorQ... | true |
8c892547a83296e70223bd4f4804ab3482954b03 | Java | NJyl/springbootpractice | /chapter3_demo/src/main/java/com/carterbrother/springbootpractice/chapter3_demo/web/ScopeController.java | UTF-8 | 1,394 | 2.234375 | 2 | [
"Apache-2.0"
] | permissive | package com.carterbrother.springbootpractice.chapter3_demo.web;
import com.carterbrother.springbootpractice.chapter3_demo.scope.ScopeBean;
import com.carterbrother.springbootpractice.chapter3_demo.scope.ScopeBean3;
import com.carterbrother.springbootpractice.chapter3_demo.scope.ScopeBeanApplication;
import com.carterb... | true |
1498cef034bb5f2301a48290c133b4c7dfbe5a6d | Java | alireza-ebrahimi/telegram-talaeii | /5.3.5/sources/org/telegram/messenger/exoplayer2/source/LoopingMediaSource.java | UTF-8 | 5,850 | 2.390625 | 2 | [] | no_license | package org.telegram.messenger.exoplayer2.source;
import java.io.IOException;
import org.telegram.messenger.exoplayer2.ExoPlayer;
import org.telegram.messenger.exoplayer2.Timeline;
import org.telegram.messenger.exoplayer2.Timeline$Period;
import org.telegram.messenger.exoplayer2.Timeline.Window;
import org.telegram.me... | true |
ec8e475e5d0e3f2f8363abd323819174d72d38ad | Java | nihed/magnetism | /dumbhippo/tags/pre-data-model-stacker/openfire/src/java/org/jivesoftware/openfire/stats/Statistic.java | UTF-8 | 2,841 | 2.8125 | 3 | [] | no_license | /**
* $RCSfile $
* $Revision $
* $Date $
*
* Copyright (C) 1999-2006 Jive Software. All rights reserved.
*
* This software is published under the terms of the GNU Public License (GPL),
* a copy of which is included in this distribution.
*/
package org.jivesoftware.openfire.stats;
/**
* A st... | true |
83931a2158c58c4c23ff2f2ee5bcc105eda8e716 | Java | LyotardPostmodernizm/QuizApp_MobileProgrammingHW | /app/src/main/java/tr/edu/yildiz/ekremkamaz/ExamActivity.java | UTF-8 | 6,953 | 2.109375 | 2 | [] | no_license | package tr.edu.yildiz.ekremkamaz;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.appcompat.app.AlertDialog;
import androidx.appcompat.app.AppCompatActivity;
import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;
import andro... | true |
e18b70297794272494c55cc9ce832f6ca0fb0e5e | Java | ajsin0508/Selenium-Framework | /src/test/java/com/tescobank/judge/task/PaperlessTask.java | UTF-8 | 316 | 1.921875 | 2 | [] | no_license | package com.tescobank.judge.task;
import com.tescobank.judge.state.Actions;
/**
* Created by pabloarroyo on 17/07/16.
*/
public class PaperlessTask {
public static void answer() {
Actions.getPaperlessAction().enterPaperlessChoice();
Actions.getBeInformedGeneralAction().clickNext();
}
}
| true |
4d99dc6717baea913af6c457df819fdeb310dd5a | Java | gngowtham25/StockOrderApplication | /src/com/stockorderapp/util/ApplicationEntryAction.java | UTF-8 | 314 | 1.96875 | 2 | [] | no_license | package com.stockorderapp.util;
/**
* Created by Gowtham on 18/03/18.
*/
public class ApplicationEntryAction implements ApplicationStartable {
public void startAction(){
CSVReaderCustomAction csvReader = new CSVReaderCustomAction(new ReadStockOrderCSV());
csvReader.readCSVData();
}
}
| true |
c2459988bd409325d662e49152fdb41c2ca71d86 | Java | jaeho0613/WSVA302_CCAMO | /CCAMO_version_Final/app/src/main/java/Fragment/CafeInfo/CafeWody.java | UTF-8 | 4,207 | 1.953125 | 2 | [] | no_license | package Fragment.CafeInfo;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.AdapterView;
import android.widget.ArrayAdapter;
import android.widget.Button;
import android.w... | true |
c448d866af5c7b0b86bf017ed7499093d87e2fc4 | Java | vicchugu/hiped2 | /src/main/java/hip/ch3/kafka/camus/StockSchemaRegistry.java | UTF-8 | 341 | 1.617188 | 2 | [
"Apache-2.0"
] | permissive | package hip.ch3.kafka.camus;
import com.linkedin.camus.schemaregistry.AvroMemorySchemaRegistry;
import hip.ch4.avro.gen.Stock;
/**
*/
public class StockSchemaRegistry extends AvroMemorySchemaRegistry {
public StockSchemaRegistry() {
super();
// register the schema for the topic
super.register("test", S... | true |
ef81ad6bab8c0e8230ed09c2de5a969f4d471c87 | Java | qbajas/systemy-rozproszone-zadania | /zad2/src/client/User.java | UTF-8 | 832 | 2.9375 | 3 | [] | no_license | package client;
import java.io.Serializable;
public class User implements Serializable {
private String pseudo;
public User(String pseudo) {
super();
this.pseudo = pseudo;
}
public String getPseudo() {
return pseudo;
}
public void setPseudo(String pseudo) {
this.pseudo = pseudo;
}
@Override
p... | true |
1d2b38806b95e78e4ac63468d17e0d8523959d1a | Java | theoriginalshaheedra/artifactory-oss | /storage/db/src/main/java/org/artifactory/storage/db/fs/dao/PropertiesDao.java | UTF-8 | 14,882 | 1.6875 | 2 | [] | no_license | /*
*
* Artifactory is a binaries repository manager.
* Copyright (C) 2018 JFrog Ltd.
*
* Artifactory is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at yo... | true |
4d9c7441c409d9cdc4862470e62da1662b516e8e | Java | assecopl/fh | /fhCoreLite/coreLite/src/main/java/pl/fhframework/model/forms/attribute/PropertyMultiplicityAttrConverter.java | UTF-8 | 1,405 | 2.421875 | 2 | [
"LicenseRef-scancode-warranty-disclaimer",
"Apache-2.0"
] | permissive | package pl.fhframework.model.forms.attribute;
import pl.fhframework.model.forms.Component;
import pl.fhframework.model.forms.Property;
/**
* Property.multiplicity attribute converter
*/
public class PropertyMultiplicityAttrConverter extends ToLowerCaseEnumAttrConverter<Property.PropertyMultiplicity> {
public P... | true |
a149805517b737dcfd64eddd3a80deb65af7d57b | Java | sshh12/SchoolCode | /Algorithms/Graphs/Bipartite.java | UTF-8 | 1,401 | 3.328125 | 3 | [
"MIT"
] | permissive |
import java.util.*;
public class Bipartite {
private static boolean bfs(int[][] graph, int vertex, int[] colorMap) {
colorMap[vertex] = 1;
Queue<Integer> q = new LinkedList<>();
q.add(vertex);
while (!q.isEmpty()) {
int current = q.remove();
for (int ... | true |
f242d69e84c43303a8fabb5c53896e69e0427bf8 | Java | michaelamanda259/Baby | /app/src/main/java/com/example/baby/Adapter.java | UTF-8 | 1,549 | 2.5625 | 3 | [] | no_license | package com.example.baby;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import androidx.annotation.NonNull;
import androidx.recyclerview.widget.RecyclerView;
import java.util.List;
class Adapter extends Re... | true |
e3f49cd2ce4708a3b47102ed455f88173ce05159 | Java | newYearsDeng/NorthmeterSmart | /app/src/main/java/com/northmeter/northmetersmart/mqtt/SimpleCallbackHandler.java | UTF-8 | 3,279 | 2.1875 | 2 | [] | no_license | package com.northmeter.northmetersmart.mqtt;
import android.content.Context;
import android.os.Bundle;
import android.os.Handler;
import android.os.Message;
import android.view.inputmethod.InputMethodSession.EventCallback;
import com.ibm.mqtt.MqttSimpleCallback;
/**
* 使用EventBus分发事件
*/
public class SimpleCallbackH... | true |
fb99999ada2b1150b3fbb4b0ca71a1d4c92bce22 | Java | falko/bpmn-conformer | /bpmn-xpath-functions-test/src/test/java/com/camunda/bpm/demo/bpmn_xpath/nonarquillian/InMemoryH2Test.java | UTF-8 | 2,836 | 1.851563 | 2 | [
"Apache-2.0"
] | permissive | package com.camunda.bpm.demo.bpmn_xpath.nonarquillian;
import org.apache.ibatis.logging.LogFactory;
import org.camunda.bpm.engine.impl.util.LogUtil;
import org.camunda.bpm.engine.runtime.ProcessInstance;
import org.camunda.bpm.engine.test.ProcessEngineRule;
import org.camunda.bpm.engine.test.Deployment;
import org.cam... | true |
9138eaaf23e5e0a2603698a4fa903b53da851f4c | Java | robbiestells/Workout | /app/src/main/java/com/example/android/workout/data/WorkoutDbHelper.java | UTF-8 | 3,552 | 2.484375 | 2 | [
"MIT"
] | permissive | package com.example.android.workout.data;
import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
//import com.example.android.workout.data.WorkoutContract.ActivityEntry;
import com.example.android.workout.data.WorkoutContract.ActivityEntry;
impo... | true |
f1fde252c682bd25bcd0a0a64e07ff39abf559c7 | Java | kuainiao/study4j | /study4j-spring/src/main/java/com/yincongyang/spring/aop/ControllerLogAspect.java | UTF-8 | 3,973 | 2.90625 | 3 | [] | no_license | package com.yincongyang.spring.aop;
import com.alibaba.fastjson.JSON;
import org.aspectj.lang.JoinPoint;
import org.aspectj.lang.ProceedingJoinPoint;
import org.aspectj.lang.annotation.*;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;
import java.lang.reflect... | true |
e98fbdfbdd1fffc6b235dcd61de607bbe9548f75 | Java | jojoldu/dev-planet | /src/main/java/devplanet/Application.java | UTF-8 | 1,076 | 2.1875 | 2 | [] | no_license | package devplanet;
import devplanet.config.EmbeddedRedisConfiguration;
import devplanet.dao.UserDao;
import devplanet.model.User;
import org.joda.time.DateTime;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplic... | true |
e67a5448bf439464bc19448a41f7f9c6ad1ff7bd | Java | DFLBB/TFM_archs | /netcan/src/com/tfm/data/vacunacion/Vacunacion.java | UTF-8 | 964 | 2.265625 | 2 | [] | no_license | package com.tfm.data.vacunacion;
import java.util.Date;
import javax.xml.bind.annotation.XmlRootElement;
@XmlRootElement
public class Vacunacion {
private String perroNombre;
private String afijo;
private String vacuna;
private Date fecha;
public Vacunacion(String perroNombre, String afijo, String vacuna, Dat... | true |
467c302c47a30971eb958da23b1221d9259a0d07 | Java | skipit/TwitterTweets | /app/src/main/java/com/codepath/apps/mysimpletweets/activities/TimelineActivity.java | UTF-8 | 5,462 | 2.125 | 2 | [] | no_license | package com.codepath.apps.mysimpletweets.activities;
import android.content.Intent;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentPagerAdapter;
import android.support.v4.view.ViewPager;
import android.support.v7.ap... | true |
78088aa4653e1fad731bd539f5f16f50c745adf4 | Java | VladMihai28/expenses | /app/src/main/java/com/highflyer/expenses/data/ExpenseContract.java | UTF-8 | 675 | 2.125 | 2 | [
"MIT"
] | permissive | package com.highflyer.expenses.data;
import android.provider.BaseColumns;
/**
* Created by Vlad
*/
public class ExpenseContract {
private ExpenseContract(){}
public static final class ExpenseEntry implements BaseColumns {
public static final String TABLE_NAME = "expenses";
public static f... | true |
4efe073ecace74dc58e8ad1954b09af913177ba4 | Java | Mikac1982/Java_Code | /src/com/class29/Test.java | UTF-8 | 438 | 2.15625 | 2 | [] | no_license | package com.class29;
public class Test {
public static void main(String[] args) {
WebDriver driver=new ChromeDriver();
driver.closeBrowser();
driver.execute();
driver.findElement();
driver.m2();
driver.maximizeWindow();
driver.openBrowser();
driver.takesScreenShot();
TakesScreenshot.m1(); //static m... | true |
6e1419f97165773c3aa0463d8770f0519ec7ae71 | Java | yanmarques/project-thursday | /src/br/common/models/selectionRuleSubjects/SelectionRuleSubjectDataBuilder.java | UTF-8 | 1,054 | 2.453125 | 2 | [
"MIT"
] | permissive | package br.common.models.selectionRuleSubjects;
import br.common.database.DataBuilder;
import br.common.database.SQLCompiler;
import br.common.models.subject.Subject;
import br.common.models.subject.SubjectDAO;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
public class S... | true |
104ec173a398ce378dc083f25ef01484a4fb680e | Java | liu121633/micro-service | /micro-service/control/generate/src/main/java/org/lhj/generate/util/GenerateUtil.java | UTF-8 | 2,651 | 2.5625 | 3 | [] | no_license | package org.lhj.generate.util;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.time.DateFormatUtils;
import org.lhj.generate.domain.model.GenerateModel;
import java.util.*;
import java.util.function.Function;
/**
* @author 刘洪君
* @date 2019/4/24... | true |
0b5c5704290075606572c6920bffef2d35c3bf0e | Java | alogfans/nanobase | /src/main/java/com/alogfans/nanobase/engine/Engine.java | UTF-8 | 413 | 2.5 | 2 | [
"MIT"
] | permissive | package com.alogfans.nanobase.engine;
/**
* The base Engine class, exposed a lot of common functions
* Created by Alogfans on 2015/10/10.
*/
public abstract class Engine {
public abstract boolean containsKey(String key);
public abstract void put(String key, String value);
public abstract String get(S... | true |
c4e6f88673e8db957c15b584edad327b7fe0029a | Java | luxiaofei222/jr_crm | /crm/src/main/java/com/jingren/jing/school/entrysystem/bean/repair/RepairMoney.java | UTF-8 | 3,774 | 2.1875 | 2 | [] | no_license | package com.jingren.jing.school.entrysystem.bean.repair;
import java.io.Serializable;
import java.util.Date;
/**
* @Title: RepairMoney.java
* @Package com.jingren.jing.school.entrysystem.bean.repair
* @Description: TODO 学员补费
* @author 鲁晓飞 MR.Lu
* @date 2017年6月12日 上午8:50:59
* @version 网校+CRM系统 V1.0
*/
@Suppress... | true |
0aab7c020ff5a58bce139d2ff55ef20d505a36ea | Java | elchin-gudratli/eTaskify | /src/main/java/com/eTaskify/eTaskify/entity/DTO/OrganizationsDTO.java | UTF-8 | 1,455 | 2.0625 | 2 | [] | no_license | package com.eTaskify.eTaskify.entity.DTO;
import java.util.List;
public class OrganizationsDTO {
private Integer id;
private String name;
private String email;
private String password;
private String username;
private String address;
private String phone;
private List<StaffsDTO> staffsDTO;
private ... | true |
5c3ccfc3afc15cf67d79a0cb6b77d30f9bf569d4 | Java | okta/okta-oidc-android | /app/src/main/java/com/okta/oidc/example/SignInDialog.java | UTF-8 | 2,598 | 2.15625 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright (c) 2019, Okta, Inc. and/or its affiliates. All rights reserved.
* The Okta software accompanied by this notice is provided pursuant to the Apache License,
* Version 2.0 (the "License.")
*
* You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.
*
* Unless required by ... | true |
71c0a8a6e6146d368557f70c348dc34a4f2286e7 | Java | granum-space/cansat-2017-2018 | /research/spectrometer/spectrometer-client/src/main/java/ru/rsce/cansat/granum/spectrometer/client/netty/Message.java | UTF-8 | 799 | 2.453125 | 2 | [
"MIT"
] | permissive | package ru.rsce.cansat.granum.spectrometer.client.netty;
public class Message {
public static enum Type {
RAW_FRAME;
public static Type fromInt(int value) throws IllegalArgumentException {
if (0 == value) {
return Type.RAW_FRAME;
}
throw new IllegalArgumentException("Не верный тип сообщения");
... | true |
b9f3c3e6ed78fb47d678e17b6caa216da3920020 | Java | LiuChengsi/movie | /src/main/java/com/example/movie/movie/service/ActorService.java | UTF-8 | 598 | 2.234375 | 2 | [] | no_license | package com.example.movie.movie.service;
import com.example.movie.movie.dto.Actor;
import com.example.movie.movie.repository.ActorRepository;
import org.springframework.stereotype.Service;
import java.util.List;
@Service
public class ActorService {
private final ActorRepository actorRepository;
public Actor... | true |
80e258941366c69d8c2b143b7f803e5c86cf2134 | Java | bellmit/lsxy-yunhuni-peer-internet | /app-call-center/src/main/java/com/lsxy/call/center/mq/handler/ConversationCompletedEventHandler.java | UTF-8 | 1,368 | 2.1875 | 2 | [] | no_license | package com.lsxy.call.center.mq.handler;
import com.lsxy.call.center.api.model.CallCenterConversation;
import com.lsxy.call.center.api.service.CallCenterConversationService;
import com.lsxy.framework.mq.api.MQMessageHandler;
import com.lsxy.framework.mq.events.callcenter.ConversationCompletedEvent;
import org.slf4j.Lo... | true |
5a5da99c7497e612d41bc1a86b8d4d795de6506a | Java | koukan3/basicJava | /src/main/java/com/tg/basicjava/dynamicproxy/reflection/TestReflect.java | UTF-8 | 306 | 2.015625 | 2 | [] | no_license | package com.tg.basicjava.dynamicproxy.reflection;
import org.junit.Test;
/**
* @Author: gh
* @Date: 2019/9/30 11:55
* @Description:
*/
public class TestReflect {
@Test
public void reflect(){
ClazzReflect cr = new ClazzReflect();
cr.getClazzInfo(new OriginalClazz());
}
}
| true |
2efaa9fc72f190a665a76decdf237c9642813556 | Java | e-shop-microservices/cart | /src/main/java/ojles/coursework/cart/dto/CartItemDto.java | UTF-8 | 694 | 2.46875 | 2 | [] | no_license | package ojles.coursework.cart.dto;
import lombok.Getter;
import lombok.Setter;
import ojles.coursework.cart.domain.CartItem;
@Getter
@Setter
public class CartItemDto {
private long id;
private int amount;
private ProductDto product;
public static CartItemDto from(CartItem cartItem, ProductDto product... | true |
0a344641da86f5f15a0553f606db247f01effe7f | Java | Takiguchi72/EDF_Gestion_Clients | /src/util/AccessHTTP.java | UTF-8 | 2,813 | 2.9375 | 3 | [] | no_license | package util;
import java.io.IOException;
import java.util.ArrayList;
import org.apache.http.HttpResponse;
import org.apache.http.NameValuePair;
import org.apache.http.client.ClientProtocolException;
import org.apache.http.client.HttpClient;
import org.apache.http.client.entity.UrlEncodedFormEntity;
import org.apache.... | true |
9c826bca75b657ec655213836429d97f254b811e | Java | lanesurface/JTUI | /src/jtxt/DrawableSurface.java | UTF-8 | 1,928 | 2.609375 | 3 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2019 Lane W. Surface
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed... | true |
d8ce716bab8cb893698e5f58246f93c66a80aa59 | Java | tmirafuentes/SECURDES17GadgetStore | /src/main/java/edu/dlsu/securdeproject/classes/Transaction.java | UTF-8 | 2,029 | 2.359375 | 2 | [] | no_license | package edu.dlsu.securdeproject.classes;
import org.hibernate.envers.Audited;
import javax.persistence.*;
import java.util.Calendar;
import java.util.Date;
import java.util.UUID;
@Entity
@Audited
public class Transaction {
private Long transactionId;
private User user;
private Product product;
priva... | true |
7809629cd5cb9dbe774e018c5f35be4743a702b1 | Java | oscarhf/osscare | /PLATEOSSRESTServer/src/queso/BayesianQueso.java | UTF-8 | 968 | 2.28125 | 2 | [] | no_license | package queso;
import gessi.plateoss.queso.MeasureAdapter;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;
import javax.ws.rs.Produces;
import javax.ws.rs.core.Response;
@Path("/bayesianqueso")
public class BayesianQueso {
@Path("{kqi}")
@GET
@Produces("application/json")
public ... | true |
7adacf3859d3e6df0cc1379b514f756b0dfa4a49 | Java | crrw/CSCI-323 | /assignment5/RabinKarp.java | UTF-8 | 2,714 | 2.96875 | 3 | [] | no_license | import java.util.*;
import java.io.*;
public class RabinKarp {
static Map<Integer, String> inputTextMap;
static Map<Integer, String> searchTextMap;
static String inputText = "", searchText = "";
static long time = 0;
static int comparisons = 0, searchIndex = 1, textIndex = 1;
public final stati... | true |
4af41a0c7328552035c194e228b96d3f854bb9b1 | Java | allahrakha-git/rep1 | /spark/src/com/training/spark/MPGWorks.java | UTF-8 | 597 | 2.390625 | 2 | [] | no_license | package com.training.spark;
import java.util.Arrays;
import org.apache.spark.api.java.function.Function;
public class MPGWorks implements Function<String, Double> {
int totalMPGCity;
int totalMPGHwy;
@Override
public Double call(String v1) throws Exception {
String[] attributes = v1.split(",");
t... | true |
ca486b25174b2de3f1e5c2be32c7bba00cbdad23 | Java | mpofukelvintafadzwa/cqf_project | /src/com/luigisgro/cqf/hjm/Cap.java | UTF-8 | 981 | 2.890625 | 3 | [] | no_license | package com.luigisgro.cqf.hjm;
import com.luigisgro.cqf.curve.TimePoint;
/**
* Implements a Cap by providing the caplet payoff
* @author Luigi Sgro
*
* @param <T>
*/
public class Cap<T extends TimePoint> extends SeriesOfOptions<T> {
/**
* Creates a new Cap
* @param strike Cap strike
* @param tenor Tenor ... | true |
59579d5efb7bcfef327f9314c3b9b812655b2183 | Java | souja/SLib | /SLibNew/fastlib/src/main/java/com/souja/lib/base/DirLayout.java | UTF-8 | 2,434 | 2.109375 | 2 | [] | no_license | package com.souja.lib.base;
import android.content.Context;
import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;
import android.util.AttributeSet;
import android.view.LayoutInflater;
import android.view.animation.Animation;
import android.view.animation.AnimationUt... | true |
efe617f32d550fad7be01779f1bab2a31bad4180 | Java | sergiom1996/programacion | /Ej42/src/Ej42.java | UTF-8 | 1,367 | 3.171875 | 3 | [] | no_license | /**
*
*/
/**
* @author usuario
*
*/
public class Ej42 {
/**
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated method stub
// Una empresa guarda en una tabla de 3x12x4 las ventas realizadas por sus tres representantes a lo largo de doce meses
//de sus cuatro productos, ... | true |
2af92638bfbb387cfe0fd324632c8c07671b30a7 | Java | srangar/reversal | /api/src/mainGeneratedRest/java/com/srini/reversal/AnagramGetRequestBuilder.java | UTF-8 | 873 | 1.632813 | 2 | [
"Apache-2.0"
] | permissive |
package com.srini.reversal;
import javax.annotation.Generated;
import com.linkedin.restli.client.RestliRequestOptions;
import com.linkedin.restli.client.base.GetRequestBuilderBase;
import com.linkedin.restli.common.ResourceSpec;
@Generated(value = "com.linkedin.pegasus.generator.JavaCodeUtil", comments = "Rest.li Re... | true |
879cc2371a8ff2a16142d9b21b5c5dabe8ebc114 | Java | minhajhussain/CustomLayout | /app/src/main/java/com/example/minhaj/customlayout/CustomAdapter.java | UTF-8 | 1,172 | 2.421875 | 2 | [] | no_license | package com.example.minhaj.customlayout;
import android.content.Context;
import android.support.annotation.LayoutRes;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget... | true |
3388190b3538f64bc5840174b01e526dd3229b54 | Java | bohatmx/LeadershipPlatformRepo | /Leadership001/leadershiplibrary/src/main/java/com/oneconnect/leadership/library/adapters/VideosAdapter.java | UTF-8 | 9,350 | 2 | 2 | [] | no_license | package com.oneconnect.leadership.library.adapters;
import android.content.Context;
import android.content.Intent;
import android.media.MediaPlayer;
import android.net.Uri;
import android.os.Environment;
import android.support.v7.widget.CardView;
import android.support.v7.widget.PopupMenu;
import android.support.v7.wi... | true |
a3dcc8c6755400e7de2795dc3f5ee0a89b1ed337 | Java | PenghaiZhang/openEQUELLA | /Source/Plugins/Core/com.equella.core/src/com/tle/web/sections/standard/renderers/SimpleControlsRenderer.java | UTF-8 | 1,969 | 2.0625 | 2 | [
"Apache-2.0",
"LGPL-3.0-only",
"LicenseRef-scancode-warranty-disclaimer",
"BSD-3-Clause",
"EPL-1.0",
"LGPL-2.0-or-later",
"Classpath-exception-2.0",
"LicenseRef-scancode-jdom",
"ICU",
"Apache-1.1",
"LGPL-2.1-only",
"LicenseRef-scancode-other-permissive",
"GPL-1.0-or-later",
"CPL-1.0",
"C... | permissive | /*
* Licensed to The Apereo Foundation under one or more contributor license
* agreements. See the NOTICE file distributed with this work for additional
* information regarding copyright ownership.
*
* The Apereo Foundation licenses this file to you under the Apache License,
* Version 2.0, (the "License"); you ma... | true |
17744d078581e8e8d70c5833f1b9f9290221dcaa | Java | TheDudeFromCI/Conquest | /src/me/ci/Community/PlayerMg.java | UTF-8 | 27,518 | 1.65625 | 2 | [
"MIT"
] | permissive | package me.ci.Community;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
import java.util.List;
import me.ci.WhCommunity;
import me.ci.Conquest.BuildingInterfaces.ResourceHolder;
import me.ci.Conquest.BuildingInterfaces.VillagerWorkable;
import me.ci.Conquest.Buildings.Constru... | true |
b905d7b0738162fe66f33632550c99215b84daac | Java | DavidChao99/LMICube | /app/src/main/java/com/example/david/lmicube/ButtonTemplate.java | UTF-8 | 2,709 | 2.75 | 3 | [] | no_license | package com.example.david.lmicube;
/**
* Created by David on 2/19/2018.
*/
public class ButtonTemplate {
// Back Button Vertexes
public float[] getBackButVertex() {
float squareCoords[] = {
1.71131f, 0.95429f, 0.0f, // top left
1.71131f, 0.52571f, 0.0f, // bottom... | true |
dfe7f2b0ca189eaaa1fe5f2548a505e9e125d4e4 | Java | polinafr/ProjectInISE | /src/geometries/Sphere.java | UTF-8 | 4,223 | 3.390625 | 3 | [] | no_license | package geometries;
import primitives.*;
import primitives.Vector;
import java.awt.color.ICC_ColorSpace;
import java.util.*;
import java.lang.*;
/**
* Class Sphere is a basic abstract representation of Sphere, contains Radius and the Center point
* radial geometrical objects
* Authors : Polina Frolov Korogodsky a... | true |
ac091e79394a425aad2aef46b813e68e2bc26583 | Java | Artuqu/Charity | /src/main/java/pl/coderslab/charity/controller/HomeController.java | UTF-8 | 1,031 | 2.078125 | 2 | [] | no_license | package pl.coderslab.charity.controller;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.annotation.Secured;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import ... | true |