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 |
|---|---|---|---|---|---|
/*
* This is part of Geomajas, a GIS framework, http://www.geomajas.org/.
*
* Copyright 2008-2013 Geosparc nv, http://www.geosparc.com/, Belgium.
*
* The program is available in open source according to the GNU Affero
* General Public License. All contributions in this program are covered
* by the Geomajas Contr... | olivermay/geomajas | plugin/geomajas-plugin-deskmanager/deskmanager-gwt/src/main/java/org/geomajas/plugin/deskmanager/client/gwt/manager/common/LayerListGrid.java | Java | agpl-3.0 | 4,622 |
// Copyright 2016 Google Inc.
//
// 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... | GoogleChrome/two-token-sw | demo/original/src/main/java/com/google/account/filter/FilterUtil.java | Java | apache-2.0 | 2,436 |
/*
Copyright IBM Corp. All Rights Reserved.
SPDX-License-Identifier: Apache-2.0
*/
package cache
import (
pmsp "github.com/hyperledger/fabric-protos-go/msp"
"github.com/hyperledger/fabric/common/flogging"
"github.com/hyperledger/fabric/msp"
"github.com/pkg/errors"
)
const (
deserializeIdentityCacheSize = 100
... | stemlending/fabric | msp/cache/cache.go | GO | apache-2.0 | 3,363 |
package com.ctrip.hermes.broker.registry;
import java.io.IOException;
import org.apache.curator.x.discovery.ServiceDiscovery;
import org.apache.curator.x.discovery.ServiceDiscoveryBuilder;
import org.apache.curator.x.discovery.ServiceInstance;
import org.codehaus.plexus.personality.plexus.lifecycle.phase.Initializabl... | ctripcorp/hermes | hermes-broker/src/main/java/com/ctrip/hermes/broker/registry/DefaultBrokerRegistry.java | Java | apache-2.0 | 1,843 |
/*
* Copyright 2000-2013 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... | IllusionRom-deprecated/android_platform_tools_idea | plugins/groovy/src/org/jetbrains/plugins/groovy/util/dynamicMembers/GrDynamicMethodImpl.java | Java | apache-2.0 | 6,303 |
/*
* Copyright (c) 2005-2011 Grameen Foundation USA
* 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
*
* Unl... | madhav123/gkmaster | acceptanceTests/src/test/java/org/mifos/test/acceptance/framework/loan/RepayLoanParameters.java | Java | apache-2.0 | 4,173 |
/*
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, ... | Miciah/origin | vendor/k8s.io/kubernetes/test/e2e/upgrades/apps/daemonsets.go | GO | apache-2.0 | 6,386 |
/*
* Copyright 2000-2009 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... | lshain-android-source/tools-idea | plugins/groovy/src/org/jetbrains/plugins/groovy/actions/NewScriptAction.java | Java | apache-2.0 | 3,435 |
/*
* arcus-java-client : Arcus Java client
* Copyright 2010-2014 NAVER Corp.
*
* 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
*
* Unles... | qeist/arcus-java-client | src/test/manual/net/spy/memcached/collection/list/LopInsertBoundary.java | Java | apache-2.0 | 7,840 |
/* 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, software
* distributed... | AlexMinsk/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/core/variable/scope/VariableListenerInvocationListener.java | Java | apache-2.0 | 3,148 |
/*
* 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 may... | nikeshmhr/unitime | JavaSource/org/unitime/timetable/model/SavedHQL.java | Java | apache-2.0 | 9,873 |
/*
* 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 ... | GJL/flink | flink-streaming-java/src/test/java/org/apache/flink/streaming/runtime/tasks/StreamMockEnvironment.java | Java | apache-2.0 | 11,498 |
// Copyright 2000-2021 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
package com.intellij.openapi.progress;
import kotlinx.coroutines.Job;
import org.jetbrains.annotations.ApiStatus.Internal;
import org.jetbrains.annotations.NotNull;
import java.util.concurrent.Call... | smmribeiro/intellij-community | platform/util/src/com/intellij/openapi/progress/CancellationFutureTask.java | Java | apache-2.0 | 860 |
/**
* Copyright 2005-2014 Red Hat, Inc.
*
* Red Hat licenses this file to you 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 r... | hekonsek/fabric8 | sandbox/fabric/fabric-kubernetes-provider/src/main/java/io/fabric8/kubernetes/provider/commands/ReplicationControllerDelete.java | Java | apache-2.0 | 3,339 |
/*
* Copyright (c) 2008-2021, Hazelcast, 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 required ... | emre-aydin/hazelcast | hazelcast/src/test/java/com/hazelcast/internal/dynamicconfig/DynamicConfigSearchOrderTest.java | Java | apache-2.0 | 4,870 |
// Copyright 2009 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package os
import "syscall"
func isSymlink(stat *syscall.Stat_t) bool {
return stat.Mode&syscall.S_IFMT == syscall.S_IFLNK
}
func fileInfoFromStat(name stri... | npe9/noahevans-go9 | src/pkg/os/stat_freebsd.go | GO | bsd-3-clause | 932 |
package org.knowm.xchange.examples.anx.v2.trade;
import java.io.IOException;
import java.math.BigDecimal;
import org.knowm.xchange.Exchange;
import org.knowm.xchange.currency.CurrencyPair;
import org.knowm.xchange.dto.Order.OrderType;
import org.knowm.xchange.dto.trade.LimitOrder;
import org.knowm.xchange.dto.trade.O... | dozd/XChange | xchange-examples/src/main/java/org/knowm/xchange/examples/anx/v2/trade/LimitOrderDemo.java | Java | mit | 1,420 |
/* 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, software
* distributed... | nagyistoce/camunda-bpm-platform | engine-rest/src/main/java/org/camunda/bpm/engine/rest/dto/history/UserOperationLogEntryDto.java | Java | apache-2.0 | 3,987 |
/**
* 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... | ultratendency/hbase | hbase-server/src/test/java/org/apache/hadoop/hbase/quotas/TestQuotaObserverChoreWithMiniCluster.java | Java | apache-2.0 | 19,574 |
/**
* Copyright (C) 2011 - present by OpenGamma Inc. and the OpenGamma group of companies
*
* Please see distribution for license.
*/
package com.opengamma.analytics.financial.forex.definition;
import static org.testng.AssertJUnit.assertEquals;
import static org.testng.AssertJUnit.assertFalse;
import static org.te... | jeorme/OG-Platform | projects/OG-Analytics/src/test/java/com/opengamma/analytics/financial/forex/definition/ForexOptionVanillaDefinitionTest.java | Java | apache-2.0 | 5,431 |
package org.hisp.dhis.query;
/*
* Copyright (c) 2004-2017, University of Oslo
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyrigh... | jason-p-pickering/dhis2-core | dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/query/Restrictions.java | Java | bsd-3-clause | 4,857 |
package com.xeiam.xchange.examples.mercadobitcoin.marketdata.ltc;
import java.io.IOException;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import com.xeiam.xchange.Exchange;
import com.xeiam.xchange.ExchangeFactory;
import com.xeiam.xchange.currency.Cur... | codeck/XChange | xchange-examples/src/main/java/com/xeiam/xchange/examples/mercadobitcoin/marketdata/ltc/DepthChartDemo.java | Java | mit | 3,244 |
package com.commafeed.backend.service;
import java.util.Date;
import java.util.List;
import javax.inject.Inject;
import javax.inject.Singleton;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.codec.digest.DigestUtils;
import com.commafeed.backend.dao.... | syshk/commafeed | src/main/java/com/commafeed/backend/service/FeedUpdateService.java | Java | apache-2.0 | 2,183 |
package cz.metacentrum.perun.core.impl.modules.attributes;
import cz.metacentrum.perun.core.api.Attribute;
import cz.metacentrum.perun.core.api.AttributeDefinition;
import cz.metacentrum.perun.core.api.AttributesManager;
import cz.metacentrum.perun.core.api.Resource;
import cz.metacentrum.perun.core.api.exceptions.Wro... | zlamalp/perun | perun-core/src/main/java/cz/metacentrum/perun/core/impl/modules/attributes/urn_perun_resource_attribute_def_def_k4GroupCode.java | Java | bsd-2-clause | 1,997 |
/* pager.h - Interface to the pager for display component of a virtual console.
Copyright (C) 2002 Free Software Foundation, Inc.
Written by Marcus Brinkmann.
This file is part of the GNU Hurd.
The GNU Hurd is free software; you can redistribute it and/or
modify it under the terms of the GNU General Pu... | sebastianscatularo/hurd | console/pager.h | C | gpl-2.0 | 1,698 |
/**
* Aptana Studio
* Copyright (c) 2005-2011 by Appcelerator, Inc. All Rights Reserved.
* Licensed under the terms of the GNU Public License (GPL) v3 (with exceptions).
* Please see the license.html included with this distribution for details.
* Any modifications to this file must keep this entire header intact.
... | shakaran/studio3 | plugins/com.aptana.core.io/src/com/aptana/ide/core/io/Messages.java | Java | gpl-3.0 | 962 |
/*
* SonarQube, open source software quality management tool.
* Copyright (C) 2008-2014 SonarSource
* mailto:contact AT sonarsource DOT com
*
* SonarQube is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Found... | abbeyj/sonarqube | sonar-batch/src/test/java/org/sonar/batch/report/MetadataPublisherTest.java | Java | lgpl-3.0 | 3,406 |
/**
* 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... | ict-carch/hadoop-plus | hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/test/java/org/apache/hadoop/yarn/server/nodemanager/TestEventFlow.java | Java | apache-2.0 | 6,855 |
/*
* Copyright 2014-present Facebook, Inc.
*
* 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... | hgl888/buck | test/com/facebook/buck/shell/GenruleDescriptionTest.java | Java | apache-2.0 | 4,831 |
/*
* Copyright (C) 2008 The Guava 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 agre... | maxvetrenko/guava-libraries-17-0 | guava-testlib/src/com/google/common/collect/testing/MapTestSuiteBuilder.java | Java | apache-2.0 | 10,433 |
/**
* Appcelerator Titanium Mobile
* Copyright (c) 2009-2016 by Appcelerator, Inc. All Rights Reserved.
* Licensed under the terms of the Apache Public License
* Please see the LICENSE included with this distribution for details.
*/
package ti.modules.titanium.android;
import org.appcelerator.kroll.KrollDict;
imp... | mano-mykingdom/titanium_mobile | android/modules/android/src/java/ti/modules/titanium/android/PendingIntentProxy.java | Java | apache-2.0 | 3,098 |
package agouti
import (
"github.com/sclevine/agouti/api"
"github.com/sclevine/agouti/internal/element"
"github.com/sclevine/agouti/internal/target"
)
type Selectors interface {
String() string
}
type selectable struct {
session apiSession
selectors target.Selectors
}
type apiSession interface {
element.Cli... | johanbrandhorst/protobuf | vendor/github.com/sclevine/agouti/selectable.go | GO | mit | 7,140 |
/* Copyright (C) 2002-2013 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@redhat.com>, 2002.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published b... | SanDisk-Open-Source/SSD_Dashboard | uefi/userspace/glibc/nptl/pthread_rwlockattr_setpshared.c | C | gpl-2.0 | 1,250 |
/**
* 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... | robzor92/hops | hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-app/src/test/java/org/apache/hadoop/mapred/TestTaskAttemptFinishingMonitor.java | Java | apache-2.0 | 4,082 |
/*
* 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 ... | Todd-start/RocketMQ | common/src/main/java/org/apache/rocketmq/common/message/MessageAccessor.java | Java | apache-2.0 | 3,491 |
/*
* 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.core.security.action.oidc;
import ... | ern/elasticsearch | x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/action/oidc/OpenIdConnectAuthenticateRequestBuilder.java | Java | apache-2.0 | 1,285 |
/**
* Licensed to Apereo under one or more contributor license
* agreements. See the NOTICE file distributed with this work
* for additional information regarding copyright ownership.
* Apereo licenses this file to you under the Apache License,
* Version 2.0 (the "License"); you may not use this file
* except in ... | Jasig/SSP-Platform | uportal-war/src/main/java/org/jasig/portal/portlet/container/services/PortletDefinitionPreferencesImpl.java | Java | apache-2.0 | 5,490 |
/*
Simple DirectMedia Layer
Copyright (C) 1997-2017 Sam Lantinga <slouken@libsdl.org>
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
Permission is granted to anyone to use this ... | cmaughan/imgui | zep/m3rdparty/sdl/src/video/x11/SDL_x11opengl.h | C | mit | 3,291 |
/*
* Copyright 2005,2006 WSO2, Inc. http://www.wso2.org
*
* 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 applicab... | nwnpallewela/developer-studio | app-server/plugins/org.wso2.wsf.ide.core/src/org/wso2/wsf/ide/core/context/ServiceContext.java | Java | apache-2.0 | 1,676 |
// Copyright 2011, 2012, 2013 Canonical Ltd.
// Licensed under the AGPLv3, see LICENCE file for details.
package ec2
import (
"fmt"
"github.com/juju/juju/environs/imagemetadata"
"github.com/juju/juju/environs/instances"
"github.com/juju/juju/environs/simplestreams"
)
// signedImageDataOnly is defined here to al... | mhilton/juju | provider/ec2/image.go | GO | agpl-3.0 | 3,241 |
#!/usr/bin/env python
from numpy import *
parameter_list=[[20,100,6,10,0.5,1, 1], [20,100,6,10,0.5,1, 2]]
def mkl_regression_modular(n=100,n_test=100, \
x_range=6,x_range_test=10,noise_var=0.5,width=1, seed=1):
from modshogun import RegressionLabels, RealFeatures
from modshogun import GaussianKernel, PolyKernel,... | elkingtonmcb/shogun | examples/undocumented/python_modular/mkl_regression_modular.py | Python | gpl-3.0 | 1,421 |
/*
* Licensed to Metamarkets Group Inc. (Metamarkets) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. Metamarkets licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); yo... | tubemogul/druid | processing/src/main/java/io/druid/segment/MMappedIndex.java | Java | apache-2.0 | 3,998 |
/**
* The examples provided by Facebook are for non-commercial testing and
* evaluation purposes only.
*
* Facebook reserves all rights not expressly granted.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
... | skatpgusskat/react-native | Examples/UIExplorer/android/app/src/main/java/UIExplorerActivity.java | Java | bsd-3-clause | 2,297 |
/*
Copyright 2015 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, ... | rickypai/kubernetes | pkg/kubectl/cmd/edit.go | GO | apache-2.0 | 4,443 |
// Copyright (c) 2011 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.
// Cross platform methods for FilePathWatcher. See the various platform
// specific implementation files, too.
#include "base/files/file_path_watcher... | miniwebkit/src | graphics/skia/third_party/base/files/file_path_watcher.cc | C++ | gpl-2.0 | 973 |
/*
* Copyright 2016 MovingBlocks
*
* 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 t... | kaen/Terasology | engine/src/main/java/org/terasology/entitySystem/prefab/internal/PrefabFormat.java | Java | apache-2.0 | 2,696 |
/*
Copyright 2015 The Kubernetes Authors 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 required by applicable law or ag... | TestingCI/kubernetes | pkg/registry/resourcequota/etcd/etcd.go | GO | apache-2.0 | 2,787 |
/*
* 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.security.action.privilege;
import ... | GlenRSmith/elasticsearch | x-pack/plugin/security/src/main/java/org/elasticsearch/xpack/security/action/privilege/TransportDeletePrivilegesAction.java | Java | apache-2.0 | 2,543 |
/*
* 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 ... | Wesley-Lawrence/nifi | nifi-commons/nifi-utils/src/test/java/org/apache/nifi/util/file/classloader/TestClassLoaderUtils.java | Java | apache-2.0 | 6,492 |
/*
Copyright (c) 2014 Intel Corporation.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
* Redistributions of works must retain the original copyright notice, this list
of conditions and the following disclaimer.
* Redist... | hgl888/web-testing-service | wts/tests/webdatabase/SQLException_TOO_LARGE_ERR_type.js | JavaScript | bsd-3-clause | 2,369 |
/*
* 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 | platform/lang-impl/src/com/intellij/codeInsight/generation/actions/PresentableActionHandlerBasedAction.java | Java | apache-2.0 | 4,060 |
/*
uSynergy client -- Implementation for the embedded Synergy client library
version 1.0.0, July 7th, 2012
Copyright (c) 2012 Nick Bolton
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this softw... | Navaneethsen/synergy-1.4.18-r2250 | src/synergy-1.4.18-Source/src/cmd/usynergy/uSynergyUnix.c | C | gpl-2.0 | 1,199 |
/* This is a software decimal floating point library.
Copyright (C) 2007-2015 Free Software Foundation, Inc.
This file is part of GCC.
GCC 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, or ... | timshen91/gcc | libdecnumber/bid/host-ieee64.c | C | gpl-2.0 | 1,870 |
// Copyright 2012 The Closure Library Authors. 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 requ... | LeoLombardi/tos-laimas-compass | tos-laimas-compass-win32-x64/resources/app/node_modules/closure-util/.deps/library/b06c979ecae7d78dd1ac4f7b09adec643baac308/closure/goog/i18n/uchar/localnamefetcher_test.js | JavaScript | mit | 1,862 |
/*
* 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 | java/java-impl/src/com/intellij/refactoring/move/moveInner/MoveInnerToUpperOrMembersHandler.java | Java | apache-2.0 | 5,497 |
/*
* 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... | asedunov/intellij-community | platform/lang-impl/src/com/intellij/ide/bookmarks/actions/GoToMnemonicBookmarkActionBase.java | Java | apache-2.0 | 3,108 |
/**
* Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*/
package co... | prayuditb/tryout-01 | websocket/client/Client/node_modules/react-native/ReactAndroid/src/main/java/com/facebook/react/views/viewpager/ReactViewPagerManager.java | Java | mit | 3,715 |
package com.iluwatar.servicelayer.magic;
import java.util.ArrayList;
import java.util.List;
import com.iluwatar.servicelayer.servicelayer.spell.Spell;
import com.iluwatar.servicelayer.servicelayer.spell.SpellDao;
import com.iluwatar.servicelayer.spellbook.Spellbook;
import com.iluwatar.servicelayer.spellbook.Spellboo... | HappyYang/java-design-patterns | service-layer/src/main/java/com/iluwatar/servicelayer/magic/MagicServiceImpl.java | Java | mit | 1,479 |
/**
* 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... | tseen/Federated-HDFS | tseenliu/FedHDFS-hadoop-src/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/ha/protocolPB/ZKFCProtocolClientSideTranslatorPB.java | Java | apache-2.0 | 3,116 |
/*
Package errors provides a nice way of handling http errors
Examples:
To create an error:
err := errors.New(http.StatusBadRequest, "Something went wrong")
*/
package errors
import (
"net/http"
"runtime/debug"
log "github.com/sirupsen/logrus"
"github.com/hellofresh/janus/pkg/observability"
"github.com/hellof... | hellofresh/janus | pkg/errors/error.go | GO | mit | 2,310 |
/*
Copyright (C) 2016 CodingConnected e. U., Menno van der Woude
Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation
files (the "Software"), to deal in the Software without
restriction, including without limitation the rights to use,
copy, modify, ... | mennowo/yatlcclc | yatlcclc_lib/yatlcclc_prm_func.h | C | mit | 1,588 |
/*
* This file is part of RebornCore, licensed under the MIT License (MIT).
*
* Copyright (c) 2021 TeamReborn
*
* 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, inc... | TechReborn/TechReborn | RebornCore/src/main/java/reborncore/client/screen/builder/BlockEntityScreenHandlerBuilder.java | Java | mit | 8,437 |
#cnn file for tf tutorial
#Lukas Odrzywolski
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
#imports
import numpy as np
import tensorflow as tf
tf.logging.set_verbosity(tf.logging.INFO)
#application of logic added here
def cnn_model_fn(feature, labels... | odrzywolski-lukas/odrzywolskiSprintScripts | python/cnn_mnist.py | Python | mit | 3,457 |
package br.gov.siscomex.portalunico.cct_ext.model;
import java.util.List;
import javax.validation.Valid;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind... | samuelfac/portalunico.siscomex.gov.br | src/main/java/br/gov/siscomex/portalunico/cct_ext/model/DadosConsulta.java | Java | mit | 3,642 |
package fi.ni.ifc2x3;
import fi.ni.ifc2x3.interfaces.*;
import fi.ni.*;
import java.util.*;
/*
* IFC Java class
* @author Jyrki Oraskari
* @license This work is licensed under a Creative Commons Attribution 3.0 Unported License.
* http://creativecommons.org/licenses/by/3.0/
*/
public class IfcProjectOrderRecord... | jyrkio/Open-IFC-to-RDF-converter | IFC_RDF/src/fi/ni/ifc2x3/IfcProjectOrderRecord.java | Java | mit | 847 |
package com.example.volleyball.score;
import android.app.Application;
import android.util.Log;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.util.List;
import com.example.volleyball.score.GlobalConstant;
import com.volleyball.file.DomLeagueMatchPar... | davidblus/volleyball.score | src/com/example/volleyball/score/DataApplication.java | Java | mit | 5,312 |
package org.tntstudio;
import java.util.Comparator;
import org.tntstudio.graphics.Spine;
import org.tntstudio.resources.loaders.SpineLoader;
import com.badlogic.gdx.assets.loaders.BitmapFontLoader.BitmapFontParameter;
import com.badlogic.gdx.assets.loaders.MusicLoader.MusicParameter;
import com.badlogic.gdx.assets.... | trungnt13/fasta-game | TNTEngine/src/org/tntstudio/Const.java | Java | mit | 4,412 |
package org.knowm.xchange.examples.bitcoinde.marketdata;
import java.io.IOException;
import java.util.List;
import org.knowm.xchange.Exchange;
import org.knowm.xchange.bitcoinde.dto.marketdata.BitcoindeTrade;
import org.knowm.xchange.bitcoinde.dto.marketdata.BitcoindeTradesWrapper;
import org.knowm.xchange.bitcoinde.... | gaborkolozsy/XChange | xchange-examples/src/main/java/org/knowm/xchange/examples/bitcoinde/marketdata/BitcoindeTradesDemo.java | Java | mit | 1,796 |
// Copyright (c) 2011-2018 The Bitsend Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <qt/transactionfilterproxy.h>
#include <qt/transactiontablemodel.h>
#include <qt/transactionrecord.h>
#include <cs... | LIMXTEC/BitSend | src/qt/transactionfilterproxy.cpp | C++ | mit | 3,653 |
package won.model;
import java.io.Serializable;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.MappedSuperclass;
import javax.persistence.PrePersist;
import javax.persistenc... | hodrigohamalho/won | src/main/java/won/model/AbstractEntity.java | Java | mit | 1,182 |
import {
WorkflowCard,
WorkflowPostable,
} from '@cardstack/web-client/models/workflow';
import Layer1Network from '@cardstack/web-client/services/layer1-network';
import Layer2Network from '@cardstack/web-client/services/layer1-network';
import HubAuthentication from '@cardstack/web-client/services/hub-authenticat... | cardstack/cardstack | packages/web-client/app/models/workflow/network-aware-card.ts | TypeScript | mit | 1,326 |
#!/usr/bin/python
# -*- coding: utf-8 -*-
import logging
from pyforms import settings
#from pysettings import conf;
conf = settings
__author__ = "Ricardo Ribeiro"
__credits__ = ["Ricardo Ribeiro"]
__license__ = "MIT"
__version__ = '0.1.7.3'
__maintainer__ = "Ricardo Ribeiro"
__email__ = "ricardojvr@gmail.com"
__statu... | sunj1/my_pyforms | pyforms/__init__.py | Python | mit | 1,016 |
package com.feidao.web.rest.mvc;
import java.io.IOException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.springframework.http.HttpHeaders;
import org.springframework.http.HttpStatus;
import org.springframework.http.MediaType;
import org.springframework.http... | shayaya/feidao_web | rest-service-employ/src/main/java/com/feidao/web/rest/mvc/FileController.java | Java | mit | 2,700 |
package club.magicfun.aquila.form;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.validation.Errors;
import org.springframework.validation.ValidationUtils;
import org.springframework.validation.Validator;
import club.magicfun.... | bml3i/aquila | src/main/java/club/magicfun/aquila/form/GroupFormBeanValidator.java | Java | mit | 1,431 |
import * as React from 'react';
import * as ReactDom from 'react-dom';
import {
IPropertyPaneField,
PropertyPaneFieldType
} from '@microsoft/sp-webpart-base';
import { IPropertyPaneLoggingFieldProps } from './IPropertyPaneLoggingFieldProps';
import PropertyPaneLoggingFieldHost, { IPropertyPaneLoggingFieldHostProp... | estruyf/Search-WP-SPFx | src/webparts/searchSpfx/PropertyPaneControls/PropertyPaneLoggingField.ts | TypeScript | mit | 2,768 |
package pl.java.scalatech.config;
import java.util.HashMap;
import java.util.Map;
import javax.sql.DataSource;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Profile;
import org.springframework.jdbc.dataso... | przodownikR1/mvcSpringKata | src/main/java/pl/java/scalatech/config/JpaConfig.java | Java | mit | 2,924 |
package it.multicraft.api;
import java.sql.Connection;
import it.multicraft.api.config.PlayersData;
import it.multicraft.api.games.GamesManager;
import it.multicraft.api.sql.Database;
import it.multicraft.api.sql.engines.MySQL;
import org.bukkit.plugin.java.JavaPlugin;
public class MCApi extends JavaPlugin{
priv... | jiangzhonghui/multicraft-api | src/it/multicraft/api/MCApi.java | Java | mit | 1,357 |
package fr.pizzeria.admin.tool.controller;
import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
@WebServlet("/login")... | tanguygiga/dta-formation | pizzeria-app/pizzeria-admin-app/src/main/java/fr/pizzeria/admin/tool/controller/LoginController.java | Java | mit | 1,515 |
var mainList = document.getElementById("itemList");
var status = document.getElementById("status");
window.addEventListener("load", function load(event) {
window.removeEventListener("load", load, false); // Remove listener, invoke only once
browser.runtime.sendMessage({
"popupOpened": "opened"
});
console.log("... | tobiasdiez/Jabref-FirefoxAddon | data/progressPanel.js | JavaScript | mit | 2,406 |
#pragma once
#include "SLTexture2D_GL3.hpp"
#include "SLBuffer_GL3.hpp"
#include "SLIndexBuffer_GL3.hpp"
#include "SLShader_GL3.hpp"
// SLRGL3
namespace SLR_GL3 {
// SLMesh_GL3
class SLMesh_GL3 : public ISLMesh
{
private:
// renderer
ISLRenderer* mRenderer = nullptr;
public:
// textures
SLTexture2D_GL3* ... | SergeyLebedkin/SLEngine | src/SLRenderer/SLRenderer_GL3/SLMesh_GL3.hpp | C++ | mit | 3,345 |
package controllers
import (
"fmt"
"github.com/gin-contrib/multitemplate"
"github.com/gin-gonic/gin"
"github.com/gocms-io/gocms/context"
"github.com/gocms-io/gocms/controllers/api/admin_ctrl"
"github.com/gocms-io/gocms/controllers/api/auth_ctrl"
"github.com/gocms-io/gocms/controllers/api/healthy_ctrl"
"github.... | menklab/goCMS | controllers/controllers.go | GO | mit | 3,176 |
THREE.ProjectedGridExample = function ( renderer, camera, scene, options ) {
// Assign optional parameters as variables and object properties
function optionalParameter( value, defaultValue ) {
return value !== undefined ? value : defaultValue;
};
options = options || {};
this.geometryResolution = optionalPar... | jbouny/jbouny | experiments/projected_grid_vs_lod/js/effects/ProjectedGridExample.js | JavaScript | mit | 1,041 |
package org.cyclops.integratedtunnels.part.aspect.operator;
import net.minecraft.item.ItemStack;
import net.minecraft.util.Direction;
import net.minecraftforge.common.capabilities.Capability;
import org.cyclops.cyclopscore.datastructure.DimPos;
import org.cyclops.integrateddynamics.api.evaluate.EvaluationException;
im... | CyclopsMC/IntegratedTunnels | src/main/java/org/cyclops/integratedtunnels/part/aspect/operator/PositionedOperatorIngredientIndexItem.java | Java | mit | 1,864 |
package nz.govt.doc.t1m.services.person;
import nz.govt.doc.t1m.domain.person.PersonEntity;
import nz.govt.doc.t1m.domain.response.PagedResponse;
import nz.govt.doc.t1m.domain.response.Response;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
/**
*/
@R... | perfectr/t1m | T1MWebApp/src/main/java/nz/govt/doc/t1m/services/person/PersonController.java | Java | mit | 1,362 |
package cn.berserker.model;
import android.content.Context;
import android.content.pm.PackageInfo;
import android.content.pm.PackageManager;
import android.content.pm.PackageManager.NameNotFoundException;
import android.content.pm.Signature;
import android.text.TextUtils;
import java.io.BufferedReader;
import java.io.... | michael-destiny/PaymentPlatform | PaymentPlatform/src/cn/berserker/model/AppInfo.java | Java | mit | 4,243 |
package com.wilutions.joa.swing;
import java.awt.Component;
import javax.swing.JMenuBar;
import javax.swing.SwingUtilities;
import sun.awt.windows.WEmbeddedFrame;
import com.wilutions.com.AsyncResult;
import com.wilutions.com.WindowHandle;
import com.wilutions.com.WindowsUtil;
public class EmbeddedFra... | wolfgangimig/joa | java/joa/src/com/wilutions/joa/swing/EmbeddedFrameSwing.java | Java | mit | 2,919 |
/* This file is part of Openrouteservice.
*
* Openrouteservice is free software; you can redistribute it and/or modify it under the terms of the
* GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1
* of the License, or (at your option) any later version.
* Th... | GIScience/openrouteservice-core | openrouteservice/src/main/java/org/heigit/ors/matrix/algorithms/dijkstra/DijkstraMatrixAlgorithm.java | Java | mit | 4,114 |
/*
* Copyright (c) 2015 - 2017 3TUSK, et al.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge... | FrogCraft-Rebirth/FrogCraft-Rebirth | src/main/java/frogcraftrebirth/common/lib/block/BlockFrogWrenchable.java | Java | mit | 3,646 |
package net.bolbat.kit.scheduler.task.execution;
import net.bolbat.kit.scheduler.SchedulerConstants;
import net.bolbat.kit.scheduler.Task;
import net.bolbat.kit.scheduler.task.ConfigurableTask;
import net.bolbat.kit.scheduler.task.ProcessingException;
import net.bolbat.utils.logging.LoggingUtils;
import net.bolbat.uti... | Squadity/bb-kit | src/main/java/net/bolbat/kit/scheduler/task/execution/ExecutionTask.java | Java | mit | 1,856 |
/**
* 版权所有 (TMS)
*/
package com.lhjz.portal.entity;
import java.io.Serializable;
import java.util.Date;
import java.util.HashSet;
import java.util.Set;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.EntityListeners;
import javax.persistence.EnumType;
import javax.persiste... | xiweicheng/tms | src/main/java/com/lhjz/portal/entity/Comment.java | Java | mit | 2,758 |
import { Fun, Optional } from '@ephox/katamari';
import { Css, Height, SugarPosition, Width } from '@ephox/sugar';
import { AlloyComponent } from '../../api/component/ComponentApi';
import * as AlloyTriggers from '../../api/events/AlloyTriggers';
import { NativeSimulatedEvent } from '../../events/SimulatedEvent';
impo... | tinymce/tinymce | modules/alloy/src/main/ts/ephox/alloy/ui/slider/TwoDModel.ts | TypeScript | mit | 4,798 |
#include "IViewport.h"
#include "Renderer.h"
#include "ViewportWindowBinderFactory.h"
#include "SmartAssert.h"
IViewport::IViewport(void) : m_iInitViewportWidth(0), m_iInitViewportHeight(0)
{
}
IViewport::~IViewport(void)
{
}
void IViewport::Bind(IWindow& rWindow)
{
// Get the binder for the current graphics and w... | amaiorano/TheTetrisMaster | GSGameLib/gsgamelib/src/IViewport.cpp | C++ | mit | 2,397 |
/*
* Copyright (c) [2012] - [2017] Red Hat, Inc.
* 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
*
* Contributors:
* ... | codenvy/codenvy | selenium/codenvy-selenium-test/src/test/java/com/codenvy/selenium/factory/AuthenticateAndAcceptFactoryThroughCredentialsTest.java | Java | epl-1.0 | 2,452 |
package com.ftfl.androidgpsexample;
import java.util.ArrayList;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.widget.ListView;
import com.ftfl.androidgpsexample.adapter.CustomAdapter;
import com.ftfl.androi... | akmamirulislam/exercise | AndroidGPSExample/src/com/ftfl/androidgpsexample/RetriveActivity.java | Java | epl-1.0 | 1,268 |
/*
* Copyright (c) 2007 Pentaho Corporation. All rights reserved.
* This software was developed by Pentaho Corporation and is provided under the terms
* of the GNU Lesser General Public License, Version 2.1. You may not use
* this file except in compliance with the license. If you need a copy of the license,
... | panbasten/imeta | imeta2.x/imeta-src/imeta/src/main/java/com/panet/imeta/trans/steps/detectemptystream/DetectEmptyStreamMeta.java | Java | gpl-2.0 | 3,954 |
package com.yh.hr.component.transfer.comm.bt;
import java.util.List;
import com.yh.hr.component.tansfer.service.InfoTransferService;
import org.apache.commons.collections.CollectionUtils;
import com.yh.hr.res.gb.dto.GbSortManagementDTO;
import com.yh.hr.res.gb.dto.GbSortManagementDetailDTO;
import com.yh.hr.res.gb.s... | meijmOrg/Repo-test | freelance-hr-worktop/src/java/com/yh/hr/component/transfer/comm/bt/BtPbGbSortManagementService.java | Java | gpl-2.0 | 3,505 |
/*
Kvalobs - Free Quality Control Software for Meteorological Observations
$Id: Data.h,v 1.2.6.2 2007/09/27 09:02:22 paule Exp $
Copyright (C) 2007 met.no
Contact information:
Norwegian Meteorological Institute
Box 43 Blindern
0313 OSLO
NORWAY
email: kvalobs-dev@met.no
This file is part of KVALO... | metno/kvbufrd | src/bufr/EncodeBufr301090.cc | C++ | gpl-2.0 | 1,691 |
package eu.webtoolkit.jwt.examples.planner.captcha;
import eu.webtoolkit.jwt.Signal;
import eu.webtoolkit.jwt.Signal1;
import eu.webtoolkit.jwt.WCompositeWidget;
import eu.webtoolkit.jwt.WContainerWidget;
import eu.webtoolkit.jwt.WMouseEvent;
import eu.webtoolkit.jwt.WText;
/**
* A captcha using different shapes wit... | kdeforche/jwt | examples/planner/src/eu/webtoolkit/jwt/examples/planner/captcha/ShapesCaptchaWidget.java | Java | gpl-2.0 | 1,902 |
/*
* Copyright 2007, 2008 Dawid Stawiarski (neeo@kadu.net)
* Copyright 2010 Bartosz Brachaczek (b.brachaczek@gmail.com)
* Copyright 2004, 2005, 2006, 2007 Marcin Ślusarz (joi@kadu.net)
* Copyright 2002, 2003, 2004, 2006 Adrian Smarzewski (adrian@kadu.net)
* Copyright 2003, 2004 Tomasz Chiliński (chilek@chilan.com)... | vogel/kadu | plugins/emoticons/walker/emoticon-walker.cpp | C++ | gpl-2.0 | 4,016 |
/*FreeMind - A Program for creating and viewing Mindmaps
*Copyright (C) 2000-2015 Christian Foltin, Joerg Mueller, Daniel Polansky, Dimitri Polivaev and others.
*
*See COPYING for Details
*
*This program is free software; you can redistribute it and/or
*modify it under the terms of the GNU General Public License
... | derekprovance/Freemind | accessories/plugins/time/CalendarMarkingEvaluator.java | Java | gpl-2.0 | 14,113 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.