code stringlengths 572 46.5k | repo_name stringlengths 7 62 | path stringlengths 6 247 | language stringclasses 7
values | license stringclasses 15
values | size int64 572 46.5k |
|---|---|---|---|---|---|
/**
* Copyright 2014 Google 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
*
* Unless requir... | rickyHong/RSparkMR4C | java/src/java/com/google/mr4c/serialize/bean/BeanBasedDatasetSerializer.java | Java | apache-2.0 | 2,333 |
/*
* 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"); you ... | hequn8128/flink | flink-runtime/src/test/java/org/apache/flink/runtime/io/network/netty/NettyClientServerSslTest.java | Java | apache-2.0 | 12,480 |
/*
* 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"); you ... | nakul02/incubator-systemml | src/test/java/org/apache/sysml/test/integration/functions/misc/RewriteEliminateAggregatesTest.java | Java | apache-2.0 | 4,049 |
// Copyright 2017 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "base/test/task_environment.h"
#include "mojo/public/cpp/bindings/receiver.h"
#include "mojo/public/cpp/bindings/remote.h"
#include "sandbox/mac/... | nwjs/chromium.src | sandbox/mac/mojom/mojom_traits_unittest.cc | C++ | bsd-3-clause | 1,580 |
/*
* 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"); you ... | gyeongin/reef | lang/java/reef-common/src/main/java/org/apache/reef/runtime/common/driver/evaluator/EvaluatorMessageDispatcher.java | Java | apache-2.0 | 14,664 |
package org.archive.wayback.resourceindex.cdxserver;
import java.util.HashMap;
import java.util.LinkedList;
import org.apache.commons.lang.math.NumberUtils;
import org.archive.cdxserver.CDXQuery;
import org.archive.cdxserver.CDXServer;
import org.archive.cdxserver.auth.AuthChecker;
import org.archive.format.cdx.CDXLi... | bitzl/openwayback | wayback-core/src/main/java/org/archive/wayback/resourceindex/cdxserver/CDXToCaptureSearchResultsWriter.java | Java | apache-2.0 | 12,339 |
/*
* Copyright 2000-2015 JetBrains s.r.o.
*
* 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 agre... | ivan-fedorov/intellij-community | platform/lang-impl/src/com/intellij/codeInsight/template/impl/TemplateExpressionLookupElement.java | Java | apache-2.0 | 4,473 |
/*
* Copyright 2000-2014 JetBrains s.r.o.
*
* 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 agre... | asedunov/intellij-community | plugins/groovy/groovy-psi/src/org/jetbrains/plugins/groovy/lang/groovydoc/psi/impl/GrDocMethodParamsImpl.java | Java | apache-2.0 | 3,774 |
# rhn_register.py - GUI front end code for firstboot screen resolution
#
# Copyright 2003 Red Hat, Inc.
# Copyright 2003 Brent Fox <bfox@redhat.com>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundat... | aronparsons/spacewalk | client/debian/packages-already-in-debian/rhn-client-tools/src/firstboot-legacy-rhel5/rhn_create_profile_gui.py | Python | gpl-2.0 | 2,246 |
/*
* 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"); you may ... | davidegiannella/jackrabbit-oak | oak-core/src/test/java/org/apache/jackrabbit/oak/security/authorization/evaluation/RepoLevelPolicyTest.java | Java | apache-2.0 | 6,334 |
/**
* Copyright 2005-2015 The Kuali Foundation
*
* 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 by a... | jruchcolo/rice-cd | rice-framework/krad-data/src/test/java/org/kuali/rice/krad/data/provider/SpringMetadataProviderImplTest.java | Java | apache-2.0 | 2,522 |
/**
* 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"); you... | kristinehahn/drill | exec/java-exec/src/main/java/org/apache/drill/exec/store/dfs/FileSystemPlugin.java | Java | apache-2.0 | 6,815 |
/*
* Copyright 2000-2016 JetBrains s.r.o.
*
* 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 agre... | siosio/intellij-community | java/debugger/impl/src/com/intellij/debugger/impl/descriptors/data/UserExpressionData.java | Java | apache-2.0 | 2,239 |
// Copyright 2012, 2013 Canonical Ltd.
// Licensed under the AGPLv3, see LICENCE file for details.
package application
import (
"github.com/juju/cmd"
"github.com/juju/errors"
"github.com/juju/juju/api/application"
"github.com/juju/juju/cmd/juju/block"
"github.com/juju/juju/cmd/modelcmd"
)
var usageUnexposeSumm... | perrito666/juju | cmd/juju/application/unexpose.go | GO | agpl-3.0 | 1,878 |
/*
*
* 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"); you may... | mbroadst/debian-qpid-cpp-old | proton-j/src/main/java/org/apache/qpid/proton/codec/messaging/DeleteOnCloseType.java | Java | apache-2.0 | 2,439 |
/*
* Copyright 2000-2015 JetBrains s.r.o.
*
* 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 agre... | akosyakov/intellij-community | plugins/hg4idea/src/org/zmlx/hg4idea/execution/HgCommandProcessHandler.java | Java | apache-2.0 | 2,496 |
/*
* 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"); you may n... | cshannon/activemq-artemis | tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/client/ConsumerRoundRobinTest.java | Java | apache-2.0 | 3,489 |
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "content/browser/loader/resource_message_filter.h"
#include "content/browser/appcache/chrome_appcache_service.h"
#include "content/browser/f... | qtekfun/htcDesire820Kernel | external/chromium_org/content/browser/loader/resource_message_filter.cc | C++ | gpl-2.0 | 2,064 |
/*
* Copyright 2000-2014 JetBrains s.r.o.
*
* 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 agre... | akosyakov/intellij-community | python/python-rest/src/com/jetbrains/rest/sphinx/SphinxBaseCommand.java | Java | apache-2.0 | 6,818 |
/*
* Copyright 2012-2016 the original author or authors.
*
* 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 ap... | izeye/spring-boot | spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/condition/ResourceConditionTests.java | Java | apache-2.0 | 3,168 |
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ui/views/examples/combobox_example.h"
#include "base/strings/stringprintf.h"
#include "base/strings/utf_string_conversions.h"
#include "ui/... | aospx-kitkat/platform_external_chromium_org | ui/views/examples/combobox_example.cc | C++ | bsd-3-clause | 1,372 |
/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License
* 2.0; you may not use this file except in compliance with the Elastic License
* 2.0.
*/
package org.elasticsearch.xpack.sql.expression.function.aggregate;
... | robin13/elasticsearch | x-pack/plugin/sql/src/main/java/org/elasticsearch/xpack/sql/expression/function/aggregate/SumOfSquares.java | Java | apache-2.0 | 1,058 |
/*
* Copyright 2000-2014 JetBrains s.r.o.
*
* 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 agre... | Lekanich/intellij-community | plugins/groovy/src/org/jetbrains/plugins/groovy/intentions/control/MergeIfAndIntention.java | Java | apache-2.0 | 3,074 |
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "remoting/host/ipc_input_injector.h"
#include "remoting/host/desktop_session_proxy.h"
namespace remoting {
IpcInputInjector::IpcInputInjec... | GladeRom/android_external_chromium_org | remoting/host/ipc_input_injector.cc | C++ | bsd-3-clause | 1,208 |
/*
Copyright 2017 The Kubernetes Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, ... | linzhaoming/origin | vendor/k8s.io/kubernetes/pkg/cloudprovider/providers/gce/gce_loadbalancer_naming.go | GO | apache-2.0 | 3,945 |
/*
Copyright 2014 The Kubernetes Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, ... | wjiangjay/origin | vendor/k8s.io/kubernetes/pkg/registry/core/podtemplate/strategy.go | GO | apache-2.0 | 2,929 |
/*
Copyright 2016 The Kubernetes Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, ... | ashetty1/kedge | vendor/k8s.io/kubernetes/pkg/kubectl/pdb.go | GO | apache-2.0 | 6,516 |
from functools import wraps
from django.middleware.csrf import CsrfViewMiddleware, get_token
from django.utils.decorators import decorator_from_middleware
csrf_protect = decorator_from_middleware(CsrfViewMiddleware)
csrf_protect.__name__ = "csrf_protect"
csrf_protect.__doc__ = """
This decorator adds CSRF protection ... | sametmax/Django--an-app-at-a-time | ignore_this_directory/django/views/decorators/csrf.py | Python | mit | 2,073 |
/*
* Copyright 2014, Michael Ellerman, IBM Corp.
* Licensed under GPLv2.
*/
#ifndef _SELFTESTS_POWERPC_PMU_EBB_EBB_H
#define _SELFTESTS_POWERPC_PMU_EBB_EBB_H
#include "../event.h"
#include "../lib.h"
#include "trace.h"
#include "reg.h"
#define PMC_INDEX(pmc) ((pmc)-1)
#define NUM_PMC_VALUES 128
struct ebb_state... | mericon/Xp_Kernel_LGH850 | virt/tools/testing/selftests/powerpc/pmu/ebb/ebb.h | C | gpl-2.0 | 1,848 |
/**
* This software is released as part of the Pumpernickel project.
*
* All com.pump resources in the Pumpernickel project are distributed under the
* MIT License:
* https://raw.githubusercontent.com/mickleness/pumpernickel/master/License.txt
*
* More information about the Pumpernickel project is available he... | mickleness/pumpernickel | src/main/java/com/pump/showcase/demo/AngleSliderUIDemo.java | Java | mit | 3,772 |
// Copyright 2018 The Fractal Team Authors
// This file is part of the fractal project.
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your opti... | fractalPlatform/Fractal | cmd/ft/debug.go | GO | mit | 4,771 |
package com.zimbra.qa.selenium.projects.ajax.tests.calendar.performance;
import java.io.File;
import java.text.SimpleDateFormat;
import java.util.*;
import org.testng.annotations.Test;
import com.zimbra.qa.selenium.framework.items.AppointmentItem;
import com.zimbra.qa.selenium.framework.util.*;
import com.zimbra.qa.... | nico01f/z-pec | ZimbraSelenium/src/java/com/zimbra/qa/selenium/projects/ajax/tests/calendar/performance/ZmCalendarApp_ViewMonth_Appointment1.java | Java | mit | 4,006 |
/*
* Copyright (C) Research In Motion Limited 2009-2010. All rights reserved.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your o... | lordmos/blink | Source/platform/image-decoders/ImageDecoder.cpp | C++ | mit | 7,624 |
package pl.tomaszdziurko.jvm_bloggers.blog_posts;
import com.google.common.annotations.VisibleForTesting;
import com.google.common.base.Preconditions;
import com.rometools.rome.feed.synd.SyndContentImpl;
import com.rometools.rome.feed.synd.SyndEntry;
import com.rometools.rome.feed.synd.SyndEntryImpl;
import com.rometo... | sobkowiak/jvm-bloggers | src/main/java/pl/tomaszdziurko/jvm_bloggers/blog_posts/AggregatedRssFeedProducer.java | Java | mit | 5,477 |
package com.wstro.service.impl.echat;
import java.util.List;
import java.util.Map;
import javax.annotation.Resource;
import org.springframework.stereotype.Service;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.wstro.dao.echat.ChatFriendGroupDao;
import com.wstro.dao.echat.TsBaseUserDao;
import ... | tranquilMind/wstro-myjob | wstro-core/wstro-service/src/main/java/com/wstro/service/impl/echat/ChatFriendGroupServiceImpl.java | Java | mit | 846 |
package com.zhang.ivan.imp2exp.toimp;
import java.io.FileInputStream;
import org.apache.poi.ss.usermodel.Workbook;
import org.apache.poi.xssf.usermodel.XSSFWorkbook;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.zhang.ivan.imp2exp.bean.ImpExcelTemplate;
import com.zhang.ivan.imp2exp.check.bean.... | IvanZhang2013/dataexcel | src/main/java/com/zhang/ivan/imp2exp/toimp/XLSX2Data.java | Java | mit | 1,442 |
/*
* This file is part of Sponge, licensed under the MIT License (MIT).
*
* Copyright (c) SpongePowered <https://www.spongepowered.org>
* Copyright (c) contributors
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Softwar... | SpongePowered/Sponge | src/main/java/org/spongepowered/common/item/recipe/smithing/SpongeSmithingRecipeBuilder.java | Java | mit | 5,720 |
package rf.yatzy.webapp.controllers;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.ModelAttribute;
import org.springframework.web.bind.annotation.RequestMapping;
import rf.yatzy.game.api.score.Yatz... | rubenfreitas/yatzy-on-boot | yatzy-on-boot-webapp/src/main/java/rf/yatzy/webapp/controllers/YatzyController.java | Java | mit | 787 |
package server
import (
"github.com/skuid/go-middlewares"
"github.com/skuid/helm-value-store/store"
)
// ApiController stores metadata for the API
type ApiController struct {
releaseStore store.ReleaseStore
authorizers []go_middlewares.Authorizer
timeout int64
}
// ControllerOpt is a func that modifies an... | skuid/helm-value-store | server/root.go | GO | mit | 1,048 |
//
#include <PeLibAux.h>
#include "common_utils.h"
#include "stub_packer.h"
class FillStubDataVisitor : public PeLib::PeFileVisitor
{
public:
FillStubDataVisitor(
std::vector<uint8_t>& outFileBuffer
, const AdditionalDataBlocksType& additionalDataBlocks
, stub::STUB_DATA& stubData) :
outFileBuffer_(o... | azerg/PackerPE | PackerPE/spack/src/stub_packer.cpp | C++ | mit | 2,195 |
#ifndef HTTP_CLIENT_H
#define HTTP_CLIENT_H
#include "http-response-parser.h"
struct http_response;
struct http_client;
struct http_client_request;
enum http_client_request_error {
HTTP_CLIENT_REQUEST_ERROR_ABORTED = 9000,
HTTP_CLIENT_REQUEST_ERROR_HOST_LOOKUP_FAILED,
HTTP_CLIENT_REQUEST_ERROR_CONNECT_FAILED,
H... | bdraco/dovecot | src/lib-http/http-client.h | C | mit | 3,734 |
package next.operator.currency.service;
import com.fasterxml.jackson.core.type.TypeReference;
import lombok.extern.slf4j.Slf4j;
import next.operator.config.WebObjectMapper;
import next.operator.currency.model.CurrencyExrateModel;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework... | Sevenflanks/linebot-operator-next | src/main/java/next/operator/currency/service/CurrencyExtRateDataLoader.java | Java | mit | 2,822 |
/*
* This is a generated class.
*/
package com.mailjet.client.resource;
import com.mailjet.client.Resource;
import com.mailjet.client.enums.ApiAuthenticationType;
import com.mailjet.client.enums.ApiVersion;
/**
*
* @author Guillaume Badi
*/
public class Apikey {
public static Resource resource = new Resou... | mailjet/mailjet-apiv3-java | src/main/java/com/mailjet/client/resource/Apikey.java | Java | mit | 1,219 |
#ifndef ___24ofParameterGUIClass__guiCamera__
#define ___24ofParameterGUIClass__guiCamera__
#include "ofMain.h"
class GuiCamera {
public:
void setup();
void draw();
ofParameterGroup cameraParameters;
ofParameter<bool> gCtoggleOnOff;
ofParameter<bool> gCtoggleShowImage;
ofParameter<bool> gCt... | VideoMapping/remoteX | src/guiCamera.h | C | mit | 847 |
/*
This is a course requirement for CS 192 Software Engineering II
under the supervision of Asst. Prof. Ma. Rowena C. Solamo of the
Department of Computer Science, College of Engineering,
University of the Philippines, Diliman for the AY 2015-2016
Code author: Luigi del Rosario
Code History:
Programmer ... | CrumbleThorn/IskUber | Source Codes/Ionic/pages/pending-requests/pending-requests.module.ts | TypeScript | mit | 943 |
import generateUtilityClass from '../generateUtilityClass';
import generateUtilityClasses from '../generateUtilityClasses';
export interface SwitchUnstyledClasses {
/** Class applied to the root element. */
root: string;
/** Class applied to the internal input element */
input: string;
/** Class applied to t... | oliviertassinari/material-ui | packages/mui-base/src/SwitchUnstyled/switchUnstyledClasses.ts | TypeScript | mit | 1,212 |
package cz.pojd.homeautomation.hawa.rest;
import javax.inject.Inject;
import javax.ws.rs.Consumes;
import javax.ws.rs.GET;
import javax.ws.rs.POST;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFacto... | PoJD/hawa | hawa/src/main/java/cz/pojd/homeautomation/hawa/rest/OutdoorService.java | Java | mit | 1,865 |
package br.com.dbsoft.ui.component.quickinfo;
import java.io.IOException;
import javax.faces.component.UIComponent;
import javax.faces.context.FacesContext;
import javax.faces.context.ResponseWriter;
import javax.faces.render.FacesRenderer;
import br.com.dbsoft.ui.component.DBSRenderer;
import br.com.dbsoft.ui.core.... | dbsoftcombr/dbsfaces | src/main/java/br/com/dbsoft/ui/component/quickinfo/DBSQuickInfoRenderer.java | Java | mit | 2,768 |
/*
* The MIT License
*
* Copyright (c) 2013-2016 reark project contributors
*
* https://github.com/reark/reark/graphs/contributors
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software w... | apoi/reark | appbasic/src/main/java/io/reark/rxgithubapp/basic/data/DataLayer.java | Java | mit | 4,041 |
package cz.mjanys.iface.converter;
import com.google.common.collect.Sets;
import cz.mjanys.core.database.EntityReferenceFactory;
import cz.mjanys.core.entity.RoleEntity;
import cz.mjanys.core.entity.UserEntity;
import cz.mjanys.core.util.PasswordEncoderUtil;
import cz.mjanys.iface.converter.generic.AbstractExtendedCon... | mjanys/Simple-CMS | src/main/java/cz/mjanys/iface/converter/UserEntityConverter.java | Java | mit | 1,462 |
package io.github.teamdevintia.round2.network;
import io.github.teamdevintia.round2.network.internal.EventBus;
import io.github.teamdevintia.round2.network.pipeline.StreamHandler;
import io.github.teamdevintia.round2.network.pipeline.PipelineDecoder;
import io.github.teamdevintia.round2.network.pipeline.PipelineEncode... | TeamDevintia/DevAthlon3-Round2 | network/src/main/java/io/github/teamdevintia/round2/network/ServerNetHandler.java | Java | mit | 1,541 |
package org.aikodi.chameleon.support.expression;
import org.aikodi.chameleon.core.validation.BasicProblem;
import org.aikodi.chameleon.core.validation.Verification;
import org.aikodi.chameleon.oo.expression.Expression;
import org.aikodi.chameleon.util.association.Single;
public abstract class TernaryExpression extend... | markovandooren/chameleon | src/org/aikodi/chameleon/support/expression/TernaryExpression.java | Java | mit | 954 |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... | 0xmohit/vscode | extensions/git/src/api/git.d.ts | TypeScript | mit | 4,884 |
/**
* The MIT License
* Copyright (c) 2011 Kuali Mobility Team
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, ... | tamerman/mobile-starting-framework | security.authorization/src/main/java/org/kuali/mobility/security/authz/entity/AclExpression.java | Java | mit | 4,626 |
package org.ringingmaster.engine.composition;
import org.junit.Test;
import static org.junit.Assert.assertEquals;
import static org.ringingmaster.engine.composition.MutableComposition.TERMINATION_MAX_PART_CIRCULARITY_INITIAL_VALUE;
import static org.ringingmaster.engine.composition.MutableComposition.TERMINATION_MAX_... | ringingmaster/ringingmaster-engine | src/test/java/org/ringingmaster/engine/composition/TerminationMaxCircularityMutationTest.java | Java | mit | 1,832 |
package com.cai.workhourstracker;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import com.cai.workhourstracker.helper.DatabaseHelper;
import com.cai.workhourstracker.model.Entry;
import com.cai.workhourstracker.model.Job;
import Utils.DateCalculateUtils;
import Utils.DateFormatUtils;
imp... | tvetan/android | WorkHoursTracker/src/com/cai/workhourstracker/EntriesGroupListActivity.java | Java | mit | 4,448 |
'use strict';
var $ = require('../internals/export');
var global = require('../internals/global');
var call = require('../internals/function-call');
var uncurryThis = require('../internals/function-uncurry-this');
var IS_PURE = require('../internals/is-pure');
var DESCRIPTORS = require('../internals/descriptors');
var ... | zloirock/core-js | packages/core-js/modules/es.symbol.constructor.js | JavaScript | mit | 10,494 |
import { createSelector } from 'reselect';
import { fromJS } from 'immutable';
/**
* Direct selector to the userLogin state domain
*/
const makeSelectUserLoginSubstate = () => (state) => state.get('login').get('userLogin');
/**
* Other specific selectors
*/
/**
* Default selector used by UserLogin
*/
const ma... | VeloCloud/website-ui | app/containers/UserLogin/selectors.js | JavaScript | mit | 1,103 |
package com.xeiam.xchange.oer.service.polling;
import java.io.IOException;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import si.mazi.rescu.RestProxyFactory;
import com.xeiam.xchange.Exchange;
import com.xeiam.xchange.exceptions.ExchangeException;
import com.xeiam.xchange.oer.OER;
import com.xeiam.xcha... | coingecko/XChange | xchange-openexchangerates/src/main/java/com/xeiam/xchange/oer/service/polling/OERMarketDataServiceRaw.java | Java | mit | 1,304 |
'use strict';
/**
* Module dependencies
*/
var interventionNaturesPolicy = require('../policies/intervention-natures.server.policy'),
interventionNatures = require('../controllers/intervention-natures.server.controller');
module.exports = function (app) {
// InterventionNatures collection routes
app.route('/a... | zain-creation/inteligferma.io | modules/intervention-natures/server/routes/intervention-natures.server.routes.js | JavaScript | mit | 1,285 |
package com.elearning.dao;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import com.elearning.entity.Student;
@Repository(value="studentDao")
public interface StudentDao {
public void insertBasicInformation(@Param("ID") String ID,... | HUSTBIGDATA/E-Learning-System | src/main/java/com/elearning/dao/StudentDao.java | Java | mit | 1,063 |
package crypt
import (
"fmt"
)
// Encrypt some data using the given password and the latest encryption
// function.
func Encrypt(password string, data []byte) ([]byte, error) {
return CryptVersions.Latest().Encrypt(password, data)
}
// Decrypt some data using the given password and its associated encryption
// fun... | jasontbradshaw/pass | crypt/crypt.go | GO | mit | 847 |
/**
* Copyright (c) 2013-2014 Angelo ZERR.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributor... | angelozerr/eclipse-wtp-json | core/org.eclipse.wst.json.core/src/org/eclipse/wst/json/core/internal/parser/regions/JSONParserRegionFactory.java | Java | mit | 3,756 |
// Copyright (c) 2022 Roberto Raggi <roberto.raggi@gmail.com>
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, cop... | robertoraggi/cplusplus | src/ir/cxx/ir/statement_codegen.cc | C++ | mit | 7,851 |
package de.ptb.epics.eve.editor.gef.editparts;
import java.beans.PropertyChangeEvent;
import java.beans.PropertyChangeListener;
import java.util.ArrayList;
import java.util.List;
import org.apache.log4j.Logger;
import org.eclipse.draw2d.ConnectionAnchor;
import org.eclipse.draw2d.IFigure;
import org.eclipse.draw2d.La... | eveCSS/eveCSS | bundles/de.ptb.epics.eve.editor/src/de/ptb/epics/eve/editor/gef/editparts/StartEventEditPart.java | Java | epl-1.0 | 5,565 |
/**
* This file is licensed under the University of Illinois/NCSA Open Source License. See LICENSE.TXT for details.
*/
package edu.illinois.bundleupdater;
import org.eclipse.core.runtime.ILog;
import org.eclipse.core.runtime.IStatus;
import org.eclipse.core.runtime.Platform;
import org.eclipse.core.runtime.Status;
i... | ChangeOrientedProgrammingEnvironment/eclipseRecorder | edu.illinois.bundleupdater/src/edu/illinois/bundleupdater/Activator.java | Java | epl-1.0 | 2,147 |
/**
* Copyright (c) 2015 Bosch Software Innovations GmbH and others.
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
... | stormc/hawkbit | hawkbit-mgmt-resource/src/main/java/org/eclipse/hawkbit/mgmt/rest/resource/MgmtRolloutMapper.java | Java | epl-1.0 | 12,260 |
/**
* Copyright (c) 2011 - 2015, Lunifera GmbH (Gross Enzersdorf), Loetz KG (Heidelberg)
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/leg... | lunifera/lunifera-runtime-web | org.lunifera.runtime.web.ecview.services.vaadin/src/org/lunifera/runtime/web/ecview/services/vaadin/impl/XtextModule.java | Java | epl-1.0 | 2,958 |
/*
* Copyright (c) 2014 Cisco Systems, Inc. and others. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v1.0 which accompanies this distribution,
* and is available at http://www.eclipse.org/legal/epl-v10.html
*/
package org... | aryantaheri/controller | opendaylight/md-sal/sal-remoterpc-connector/src/test/java/org/opendaylight/controller/remote/rpc/RpcListenerTest.java | Java | epl-1.0 | 2,086 |
//-----BEGIN DISCLAIMER-----
/*******************************************************************************
* Copyright (c) 2011, 2021 JCrypTool Team and Contributors
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which a... | jcryptool/core | org.jcryptool.crypto.flexiprovider.operations/src/org/jcryptool/crypto/flexiprovider/operations/xml/algorithms/BlockCipherDescriptorElement.java | Java | epl-1.0 | 3,040 |
package com.odcgroup.t24.enquiry.figure;
import java.net.URL;
import org.eclipse.core.runtime.FileLocator;
import org.eclipse.core.runtime.Path;
import org.eclipse.core.runtime.Platform;
import org.eclipse.draw2d.ColorConstants;
import org.eclipse.draw2d.Figure;
import org.eclipse.draw2d.GridData;
import org.eclipse.... | debabratahazra/DS | designstudio/components/t24/ui/com.odcgroup.t24.enquiry.editor/src/main/java/com/odcgroup/t24/enquiry/figure/FieldFigure.java | Java | epl-1.0 | 3,367 |
/*
* Copyright (c) 2019 PANTHEON.tech, s.r.o. and others. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v1.0 which accompanies this distribution,
* and is available at http://www.eclipse.org/legal/epl-v10.html
*/
package or... | opendaylight/yangtools | data/yang-data-impl/src/main/java/org/opendaylight/yangtools/yang/data/impl/schema/AbstractNormalizableAnydata.java | Java | epl-1.0 | 2,391 |
package ben.risk.player.game.map.view;
import ben.risk.player.game.WorldCanvas;
import ben.risk.player.game.map.model.MapModel;
import ben.risk.player.mvc.AbstractViewManager;
import ben.risk.player.mvc.IView;
import ben.risk.player.mvc.ModelManager;
import org.jetbrains.annotations.NotNull;
/**
* Map Controller.
*... | bensmith87/risk | player/src/main/java/ben/risk/player/game/map/view/MapViewManager.java | Java | gpl-2.0 | 913 |
package com.chteuchteu.freeboxstats.ui;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ProgressBar;
import android.widget.TextView;
import com.androidplot.xy.XYPlot;
import com.chteuch... | chteuchteu/Freebox-Stats | freeboxStats/src/main/java/com/chteuchteu/freeboxstats/ui/TwoGraphsFragment.java | Java | gpl-2.0 | 1,569 |
#! /usr/bin/env python3
"""
This file is part of Pybakalib.
Pybakalib is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
Foobar is distribute... | vakabus/pybakalib | examples/average_predictor.py | Python | gpl-2.0 | 1,661 |
/**
* File name: ViewPortBlock.java
* @created: Apr 1, 2011 12:01:33 PM
* @author Ruslan Fayzrakhmanov (ruslanrf@gmail.com)
*/
package tuwien.dbai.wpps.core.wpmodel.physmodel.bgm.instadp.rdfframe;
import java.util.Collection;
import java.util.Collections;
import java.util.Iterator;
import org.apache.log4j.Logger... | ruslanrf/wpps | wpps_plugins/tuwien.dbai.wpps.core/src/tuwien/dbai/wpps/core/wpmodel/physmodel/bgm/instadp/rdfframe/RdfViewPortBlock.java | Java | gpl-2.0 | 3,218 |
package marae.gm;
import java.util.HashMap;
import java.util.LinkedList;
import java.util.List;
import java.util.Map;
import moorea.graphs.SimpleNode;
/**
* This class provide a generic node for a graphical model. No hypothesis
* are made on the type of information processed and exchanged by nodes. These
* could... | nicolasst/marae | src/marae/gm/GMNode.java | Java | gpl-2.0 | 2,355 |
package net.itransformers.xmlParameterFactory;
import net.itransformers.parameterfactoryapi.ParameterFactoryException;
import net.itransformers.parameterfactoryapi.ParameterFactoryManagerFactory;
import net.itransformers.parameterfactoryapi.ParameterFactoryManger;
import java.io.File;
import java.util.HashMap;
impor... | iTransformers/netTransformer | parameterFactory/xmlParameterFactory/src/main/java/net/itransformers/xmlParameterFactory/XmlParameterManagerFactory.java | Java | gpl-2.0 | 1,493 |
/**
* OWASP Benchmark Project v1.2beta
*
* This file is part of the Open Web Application Security Project (OWASP)
* Benchmark Project. For details, please see
* <a href="https://www.owasp.org/index.php/Benchmark">https://www.owasp.org/index.php/Benchmark</a>.
*
* The OWASP Benchmark is free software: you can redistribu... | marylinh/Benchmark | src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01587.java | Java | gpl-2.0 | 3,765 |
#ifdef GL_SUPPORT
#define BRICKWARE_GRAPHICS_EXPORTS
#include "BrickwareGraphics/BrickwareGraphicsDLL.hpp"
#include "BrickwareGraphics/RenderingManager.hpp"
#include "BrickwareGraphics/RenderTexture.hpp"
#include "BrickwareGraphics/Screen.hpp"
#include "BrickwareGraphics/PrimitiveManager.hpp"
using namespace Brickwar... | Honeybunch/BrickwareGraphics | src/RenderingManagerGL.cpp | C++ | gpl-2.0 | 4,302 |
package mono.debugger.protocol;
import mono.debugger.AssemblyMirror;
import mono.debugger.JDWPException;
import mono.debugger.PacketStream;
import mono.debugger.TypeMirror;
import mono.debugger.VirtualMachineImpl;
/**
* @author VISTALL
* @since 18.04.14
*/
public class Assembly_GetType implements Assembly
{
stati... | consulo/mono-soft-debugging | src/main/java/mono/debugger/protocol/Assembly_GetType.java | Java | gpl-2.0 | 1,214 |
/**
* OWASP Benchmark Project v1.2beta
*
* This file is part of the Open Web Application Security Project (OWASP)
* Benchmark Project. For details, please see
* <a href="https://www.owasp.org/index.php/Benchmark">https://www.owasp.org/index.php/Benchmark</a>.
*
* The OWASP Benchmark is free software: you can redistribu... | marylinh/Benchmark | src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00702.java | Java | gpl-2.0 | 3,495 |
// datamodel specific includes
#include "ExampleForCyclicDependency2Const.h"
#include "ExampleForCyclicDependency1.h"
#include "ExampleForCyclicDependency2.h"
#include "ExampleForCyclicDependency2Collection.h"
#include "ExampleForCyclicDependency2Data.h"
#include "ExampleForCyclicDependency2Obj.h"
#include <iostream>
... | HEP-FCC/podio | tests/src/ExampleForCyclicDependency2Const.cc | C++ | gpl-3.0 | 2,251 |
#!/usr/bin/env python
# encoding: utf-8
"""
userbrain.py
Created by Michael Sobczak on 2012-07-25.
Copyright (c) 2012 Michael Sobczak. All rights reserved.
This module is to be used for interacting with brainwave headsets that communicate using the
ThinkGearConnector server. Contained within this module are classes t... | georgeBoole/mindcontrol | mindcontrol/userbrain.py | Python | gpl-3.0 | 6,765 |
package it.albertus.acodec.gui;
import static it.albertus.acodec.gui.GuiStatus.ERROR;
import java.util.logging.Level;
import org.eclipse.jface.util.Util;
import org.eclipse.swt.SWT;
import org.eclipse.swt.events.SelectionAdapter;
import org.eclipse.swt.events.SelectionEvent;
import org.eclipse.swt.widgets.... | Albertus82/Codec | src/main/java/it/albertus/acodec/gui/MenuBar.java | Java | gpl-3.0 | 8,388 |
/*
* 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.ostrichemulators.semtool.ui.actions;
import java.awt.Frame;
import java.awt.event.ActionEvent;
import java.io.File;
import... | Ostrich-Emulators/semtool | gui/src/main/java/com/ostrichemulators/semtool/ui/actions/MountAction.java | Java | gpl-3.0 | 3,497 |
package interfaz.botones;
import java.awt.Color;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
import javax.swing.JButton;
import interfaz.Escenario;
import objetos.Obstaculo;
/*
* Clase abstracta BtnObstaculo.
* Clase que generaliza el comportamiento de un boton para el despliegue de un o... | emarod/The-Wall-Defense | The Wall Defense/src/interfaz/botones/BtnObstaculo.java | Java | gpl-3.0 | 931 |
/*
* Copyright (c) 2011 Nat Pryce, Timo Meinen.
*
* This file is part of Team Piazza.
*
* Team Piazza is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your opti... | anubhav94/team-piazza | team-piazza-server/src/main/java/com/natpryce/piazza/BuildMonitorController.java | Java | gpl-3.0 | 5,071 |
/*
This file is part of solidity.
solidity is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
solidity is distributed in the hope that i... | ethereum/solidity | test/tools/ossfuzz/const_opt_ossfuzz.cpp | C++ | gpl-3.0 | 1,117 |
/*
* Syncany, www.syncany.org
* Copyright (C) 2011-2016 Philipp C. Heckel <philipp.heckel@gmail.com>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
... | syncany/syncany-plugin-gui | core/syncany-lib/src/main/java/org/syncany/operations/daemon/DaemonOperation.java | Java | gpl-3.0 | 11,372 |
package nz.co.ritc.classyfindz.jpa.repository;
import static org.junit.Assert.*;
import java.util.Arrays;
import java.util.List;
import org.apache.commons.collections.CollectionUtils;
import org.apache.commons.collections.Predicate;
import org.apache.commons.collections.Transformer;
import org.apache.commo... | classyfindz-git/classyfindz-web | src/test/java/nz/co/ritc/classyfindz/jpa/repository/SearchResultsWithTagNamesViewRepositoryTest.java | Java | gpl-3.0 | 3,599 |
//Copyright (c) 2011 Municipalidad de Rosario and Coop. de Trabajo Tecso Ltda.
//This file is part of SIAT. SIAT is licensed under the terms
//of the GNU General Public License, version 3.
//See terms in COPYING file or <http://www.gnu.org/licenses/gpl.txt>
package ar.gov.rosario.siat.bal.iface.model;
import java.uti... | avdata99/SIAT | siat-1.0-SOURCE/src/iface/src/ar/gov/rosario/siat/bal/iface/model/CompensacionSearchPage.java | Java | gpl-3.0 | 5,292 |
/**
* APICloud Studio
* Copyright (c) 2014-2015 by APICloud, Inc. All Rights Reserved.
* Licensed under the terms of the GNU Public License (GPL) v3.
* Please see the license.html included with this distribution for details.
* Any modifications to this file must keep this entire header intact.
*/
package com.api... | apicloudcom/APICloud-Studio | com.apicloud.resource/src/com/apicloud/resource/Activator.java | Java | gpl-3.0 | 2,138 |
package fantasy;
import java.io.ByteArrayOutputStream;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStreamReader;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Calendar;
import java.util.Collections;
import java.util.Date;
im... | ajuluri/java | fantasy/src/main/java/fantasy/BidManager.java | Java | gpl-3.0 | 36,818 |
/*
Rocrail - Model Railroad Software
Copyright (C) 2002-2014 Rob Versluis, Rocrail.net
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option)... | KlausMerkert/FreeRail | rocdigs/impl/xpressnet/opendcc.h | C | gpl-3.0 | 1,231 |
package com.billhillapps.audiomerge.music;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Path;
import org.apache.commons.io.FilenameUtils;
import org.apache.commons.lang3.StringUtils;
import org.jaudiotagger.audio.AudioFile;
import org.jaudiotagger.audio.AudioFileIO;
import org.jaudiota... | CedricReichenbach/audiomerge | src/main/java/com/billhillapps/audiomerge/music/FileSong.java | Java | gpl-3.0 | 5,992 |
// Generated from ./core/dsl/Expr.g4 by ANTLR 4.6
// jshint ignore: start
var antlr4 = require('antlr4/index');
// This class defines a complete listener for a parse tree produced by ExprParser.
function ExprListener() {
antlr4.tree.ParseTreeListener.call(this);
return this;
}
ExprListener.prototype = Object.create... | saas-plat/saas-plat-appfx | src/core/dsl/ExprListener.js | JavaScript | gpl-3.0 | 3,640 |
#include "serverconnector.h"
#include <QTimer>
#include <messages/appidentmessage.h>
#include <messages/appokmessage.h>
#include "iencoder.h"
ServerConnector::ServerConnector(QUrl url, QObject *parent) :
QObject{parent},
_serverUrl{std::move(url)}
{
qInfo() << "Connecting to remote backend server with url:" << _ser... | Skycoder42/KeepassTransfer | webapp/serverconnector.cpp | C++ | gpl-3.0 | 4,007 |
//Copyright (c) 2011 Municipalidad de Rosario and Coop. de Trabajo Tecso Ltda.
//This file is part of SIAT. SIAT is licensed under the terms
//of the GNU General Public License, version 3.
//See terms in COPYING file or <http://www.gnu.org/licenses/gpl.txt>
package ar.gov.rosario.siat.ef.iface.model;
import java.util... | avdata99/SIAT | siat-1.0-SOURCE/src/iface/src/ar/gov/rosario/siat/ef/iface/model/CompFuenteColVO.java | Java | gpl-3.0 | 3,753 |
#ifndef JLOWFUSE_H
#define JLOWFUSE_H
#define FUSE_USE_VERSION 26
#include <jni.h>
#include <fuse_lowlevel.h>
#include <fuse_opt.h>
JNIEnv *attach_native_thread();
void detach_native_thread();
void exception_check(JNIEnv *env);
void jlowfuse_init(void *userdata, struct fuse_conn_info *conn);
void jlowfuse_destroy(v... | irq0/jlowfuse | native/jlowfuse.h | C | gpl-3.0 | 3,033 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.