code stringlengths 3 1.05M | repo_name stringlengths 4 116 | path stringlengths 4 991 | language stringclasses 9
values | license stringclasses 15
values | size int32 3 1.05M |
|---|---|---|---|---|---|
/**
* Copyright 2018 The AMP HTML 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 require... | cory-work/amphtml | build-system/compile/bundles.config.js | JavaScript | apache-2.0 | 26,274 |
/*
* Copyright 2021 Google LLC
*
* 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... | googleads/google-ads-java | google-ads-stubs-v10/src/main/java/com/google/ads/googleads/v10/resources/BiddingStrategySimulationName.java | Java | apache-2.0 | 10,111 |
/*
* Copyright (c) 2005-2010, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
*
* WSO2 Inc. 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.... | maheshika/carbon4-kernel | core/org.wso2.carbon.core/src/main/java/org/wso2/carbon/core/persistence/OperationPersistenceManager.java | Java | apache-2.0 | 5,853 |
/*
* Copyright 2016 Drunken Dev.
*
* 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... | brettryan/spring-app-base | src/test/java/com/drunkendev/menu/MenuBuilderTest.java | Java | apache-2.0 | 3,004 |
import React, { useContext } from 'react';
import { css, cx } from 'emotion';
import { CompletionItem, selectThemeVariant, ThemeContext } from '../..';
import { GrafanaTheme, renderMarkdown, textUtil } from '@savantly/sprout-api';
const getStyles = (theme: GrafanaTheme, height: number, visible: boolean) => {
return... | savantly-net/sprout-platform | frontend/libs/sprout-ui/src/components/Typeahead/TypeaheadInfo.tsx | TypeScript | apache-2.0 | 1,884 |
/**
* Copyright (C) 2011 Xavier Jodoin (xavier@jodoin.me)
*
* 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 ... | xjodoin/torpedoquery | src/main/java/org/torpedoquery/jpa/TorpedoFunction.java | Java | apache-2.0 | 14,719 |
# pylint: skip-file
# flake8: noqa
# pylint: disable=too-many-lines
# noqa: E301,E302,E303,T001
class OpenShiftCLIError(Exception):
'''Exception class for openshiftcli'''
pass
ADDITIONAL_PATH_LOOKUPS = ['/usr/local/bin', os.path.expanduser('~/bin')]
def locate_oc_binary():
''' Find and return oc binar... | akubicharm/openshift-ansible | roles/lib_openshift/src/lib/base.py | Python | apache-2.0 | 21,165 |
package ru.job4j.testtask;
/**
* Class Account.
*/
public class Account {
public double value;
public String requisites;
/**
* Constructor.
* @param value amount of the money.
* @param requisites user's account.
*/
public Account(double value, String requisites) {
this.v... | TatyanaAlex/tfukova | chapter_003/src/main/java/ru/job4j/testtask/Account.java | Java | apache-2.0 | 919 |
/**
* Orignal work: Copyright 2015 www.seleniumtests.com
* Modified work: Copyright 2016 www.infotel.com
* Copyright 2017-2019 B.Hecquet
*
* 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... | bhecquet/seleniumRobot | core/src/main/java/com/seleniumtests/uipage/PageObject.java | Java | apache-2.0 | 75,240 |
// Copyright 2014 The Serviced 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... | spindance/serviced-precomp | cli/api/template_test.go | GO | apache-2.0 | 1,096 |
# Copyright (c) 2013 Mirantis 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 writ... | dmitryilyin/mistral | mistral/tests/unit/engine/default/test_executor.py | Python | apache-2.0 | 4,084 |
package com.osiris.component.bootstrap.menu.render;
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 org.primefaces.renderkit.CoreRenderer;
import com.osiris.compo... | CristianUrbainski/osiris-faces | osiris-faces/src/main/java/com/osiris/component/bootstrap/menu/render/MenuItemRender.java | Java | apache-2.0 | 2,535 |
import codecs
from pandas import read_csv
import argparse
import numpy as np
import codecs
import os
FIELD_NAMES = ["context_id","target","target_pos","target_position","gold_sense_ids","predict_sense_ids", "golden_related","predict_related","context"]
FIELD_TYPES = {"context_id":np.dtype(str),"target":np.dtype(str),"... | mpelevina/context-eval | semeval_2013_13/dataset2key.py | Python | apache-2.0 | 2,427 |
/*
* $Id: HtmlTag.java 54929 2004-10-16 16:38:42Z germuska $
*
* Copyright 1999-2004 The Apache Software Foundation.
*
* 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:... | codelibs/cl-struts | src/share/org/apache/struts/taglib/html/HtmlTag.java | Java | apache-2.0 | 6,309 |
package liquibase.snapshot.jvm;
import java.util.stream.Collectors;
import liquibase.Scope;
import liquibase.database.Database;
import liquibase.database.core.*;
import liquibase.exception.DatabaseException;
import liquibase.exception.UnexpectedLiquibaseException;
import liquibase.executor.ExecutorService;
import liqu... | liquibase/liquibase | liquibase-core/src/main/java/liquibase/snapshot/jvm/UniqueConstraintSnapshotGenerator.java | Java | apache-2.0 | 30,661 |
/**
* @license
* Copyright 2020 Google LLC
* SPDX-License-Identifier: Apache-2.0
*/
goog.module('Blockly.test.connectionChecker');
const {ConnectionType} = goog.require('Blockly.ConnectionType');
const {sharedTestSetup, sharedTestTeardown} = goog.require('Blockly.test.helpers');
suite('Connection checker', func... | google/blockly | tests/mocha/connection_checker_test.js | JavaScript | apache-2.0 | 12,098 |
/*
* Copyright (c) 2015 Complexible Inc. <http://complexible.com>
*
* 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 a... | Complexible/basecrm | main/src/com/complexible/basecrm/Deal.java | Java | apache-2.0 | 2,438 |
package com.resource;
public abstract class RscValidator {
public ValidatorConfiguration config;
public RscValidator(){}
public RscValidator(ValidatorConfiguration config){
this.config = config;
}
public void set_config(ValidatorConfiguration config){
this.config = config;
}
public abstract void init();
... | wanglilong007/rest_assured_framework | src/main/java/com/resource/RscValidator.java | Java | apache-2.0 | 504 |
<?php
/**
* 2013-11-25 上午12:08:30
* @author x.li
* @abstract
*/
class Product_Model_Series extends Application_Model_Db
{
/**
* 表名、主键
*/
protected $_name = 'product_catalog_series';
protected $_primary = 'id';
public function getData()
{
$sql = $this->select()
... | eoasoft/evolve | application/modules/product/models/Series.php | PHP | apache-2.0 | 1,314 |
/*
* Copyright (C) 2015 Orange
*
* 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... | Orange-OpenSource/fiware-ngsi-api | ngsi-client/src/main/java/com/orange/ngsi/model/UpdateAction.java | Java | apache-2.0 | 1,228 |
/*
* 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 under t... | hazendaz/assertj-core | src/test/java/org/assertj/core/error/ShouldBeSame_create_Test.java | Java | apache-2.0 | 1,541 |
package com.github.florent37.camerafragment.internal.timer;
import com.github.florent37.camerafragment.internal.utils.DateTimeUtils;
/*
* Created by florentchampigny on 13/01/2017.
*/
public class TimerTask extends TimerTaskBase implements Runnable {
public TimerTask(TimerTaskBase.Callback callback) {
... | mkrtchyanmnatsakan/DemoAppHelloWord | camerafragment/src/main/java/com/github/florent37/camerafragment/internal/timer/TimerTask.java | Java | apache-2.0 | 1,308 |
package fr.openwide.core.commons.util.registry;
import java.io.Closeable;
import java.io.File;
import java.io.InputStream;
import java.io.OutputStream;
import java.net.URI;
import java.util.Objects;
import java.util.Set;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.google.common.collect.Sets;
... | openwide-java/owsi-core-parent | owsi-core/owsi-core-components/owsi-core-component-commons/src/main/java/fr/openwide/core/commons/util/registry/TFileRegistry.java | Java | apache-2.0 | 4,967 |
/*
Copyright 2014 base2Services
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 w... | base2Services/kagura | shared/reporting-core/src/main/java/com/base2/kagura/core/report/configmodel/JDBCReportConfig.java | Java | apache-2.0 | 2,350 |
<?php
final class ManiphestTaskResultListView extends ManiphestView {
private $tasks;
private $savedQuery;
private $canEditPriority;
private $canBatchEdit;
private $showBatchControls;
public function setSavedQuery(PhabricatorSavedQuery $query) {
$this->savedQuery = $query;
return $this;
}
pu... | akkakks/phabricator | src/applications/maniphest/view/ManiphestTaskResultListView.php | PHP | apache-2.0 | 7,755 |
#region license
// Copyright 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... | JetBrains/resharper-angularjs | src/resharper-angularjs/Psi/AngularJs/References/AngularJsIncludeFileReferenceProvider.cs | C# | apache-2.0 | 4,390 |
package com.github.windchopper.common.fx.behavior;
import javafx.geometry.*;
import javafx.scene.Cursor;
import javafx.scene.input.MouseEvent;
import javafx.scene.layout.Region;
import javafx.stage.Stage;
import javafx.stage.Window;
import java.util.stream.Stream;
import static java.util.Arrays.stream;
public class... | windchopper/common | common-fx/src/main/java/com/github/windchopper/common/fx/behavior/WindowMoveResizeBehavior.java | Java | apache-2.0 | 12,341 |
/*
* Copyright 2016 Johann Reyes
*
* 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 ... | jreyes/mirror | app/src/main/java/com/vaporwarecorp/mirror/feature/artik/ArtikManagerImpl.java | Java | apache-2.0 | 7,495 |
package com.vaadin.book.applications;
import com.vaadin.Application;
import com.vaadin.data.Property;
import com.vaadin.data.Property.ValueChangeEvent;
import com.vaadin.ui.*;
import com.vaadin.ui.UriFragmentUtility.FragmentChangedEvent;
import com.vaadin.ui.UriFragmentUtility.FragmentChangedListener;
// BEGIN-EXAMPL... | BillHan/book-examples-v6 | src/main/java/com/vaadin/book/applications/UriFragmentApplication.java | Java | apache-2.0 | 2,141 |
package resource
import (
"fmt"
"net/url"
"strings"
"github.com/rs/rest-layer/schema"
)
// Index is an interface defining a type able to bind and retrieve resources
// from a resource graph.
type Index interface {
// Bind a new resource at the "name" endpoint
Bind(name string, s schema.Schema, h Storer, c Conf... | elmgone/coligui | vendor/github.com/rs/rest-layer/resource/index.go | GO | apache-2.0 | 3,120 |
from django.test import TestCase
from django.utils.timezone import utc
from datetime import datetime
import json
import logging
import mock
from dbkeeper.models import Organization, Team, Setting
from piservice.models import PiStation, PiEvent
import scoreboard.views as target
def _mocked_utcNow():
return datetime... | brata-hsdc/brata.masterserver | workspace/ms/scoreboard/tests/test_dock.py | Python | apache-2.0 | 49,951 |
var express = require('express');
var path = require('path');
var favicon = require('serve-favicon');
var logger = require('morgan');
var cookieParser = require('cookie-parser');
var bodyParser = require('body-parser');
var stylus = require('stylus');
var nib = require('nib');
var passport = require('passport');
var Ht... | Hamcker/PersonalExit | app.js | JavaScript | apache-2.0 | 4,622 |
/*
* Copyright (C) 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 ... | kuri65536/sl4a | android/Utils/src/com/googlecode/android_scripting/future/FutureResult.java | Java | apache-2.0 | 1,701 |
package com.datalint.open.server.io;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.Reader;
import com.datalint.open.shared.general.ILineReader;
public class LineReader implements ILineReader {
private final BufferedReader read... | datalint/open | Open/src/main/java/com/datalint/open/server/io/LineReader.java | Java | apache-2.0 | 669 |
<?php
declare(strict_types=1);
/*
* +----------------------------------------------------------------------+
* | ThinkSNS Plus |
* +----------------------------------------------------------------------+
* | Copyright (c) 2016-Present ZhiYiChuangXiang Technol... | slimkit/thinksns-plus | app/Http/Controllers/APIs/V2/PingPlusPlusChargeWebHooks.php | PHP | apache-2.0 | 3,568 |
<!DOCTYPE html>
<html>
<head>
<title>Ferramenta X</title>
</head>
<body>
<?php
require("template.php");
?>
<div class="container" align="center">
<h2>Login</h2>
<p>Realize o login para acessar a plataforma NERD POWER</p><br>
<form name="form1" action="proc/proc_login.php" method="POST" id="IdForm1">
<di... | IsaacR2/FerramentaX | login.php | PHP | apache-2.0 | 957 |
// Copyright 2020 the Exposure Notifications Verification Server 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... | google/exposure-notifications-verification-server | pkg/controller/issueapi/send_sms.go | GO | apache-2.0 | 5,453 |
/*!
* UI development toolkit for HTML5 (OpenUI5)
* (c) Copyright 2009-2016 SAP SE or an SAP affiliate company.
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
*/
// Provides control sap.m.InputListItem.
sap.ui.define(['jquery.sap.global', './ListItemBase', './library'],
function(jQuery, ListIt... | SuicidePreventionSquad/SeniorProject | resources/sap/m/InputListItem-dbg.js | JavaScript | apache-2.0 | 1,780 |
/**
* Created by Janeluo on 2016/8/13 0013.
*/
package com.janeluo.jfinalplus; | yangyining/JFinal-plus | src/main/java/com/janeluo/jfinalplus/package-info.java | Java | apache-2.0 | 80 |
package com.likya.tlossw.utils;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.HashMap;
import org.apache.commons.collections.iterators.ArrayIterator;
import org.apache.log4j.Logger;
import com.likya.tlos.model.xmlbeans.data.JobListDocument.JobList;
import com.likya.tlos.model.xmlbeans.data.... | likyateknoloji/TlosSWGroup | TlosSW_V1.0/src/com/likya/tlossw/utils/CpcUtils.java | Java | apache-2.0 | 12,211 |
package org.ovirt.engine.core.common.businessentities;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.Size;
import org.ovirt.engine.core.compat.Guid;
import org.ovirt... | raksha-rao/gluster-ovirt | backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/businessentities/Quota.java | Java | apache-2.0 | 12,992 |
/**
* 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... | yahoo/pulsar | pulsar-broker-common/src/main/java/org/apache/pulsar/broker/resources/NamespaceResources.java | Java | apache-2.0 | 3,049 |
/*
* Created on Nov 29, 2007
*
* Copyright (c), 2007 Don Branson. 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... | DonBranson/DonsProxy | src/main/com/moneybender/proxy/channels/decorators/ThrottleDecorator.java | Java | apache-2.0 | 1,299 |
/**
* 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... | Jackygq1982/hbase_src | hbase-server/src/test/java/org/apache/hadoop/hbase/regionserver/wal/TestCustomWALCellCodec.java | Java | apache-2.0 | 2,335 |
# frozen_string_literal: true
# Copyright 2015 Australian National Botanic Gardens
#
# This file is part of the NSL Editor.
#
# 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
#
# ht... | bio-org-au/nsl-editor | test/models/reference/update/if_changed/for_an_unchanged_volume_test.rb | Ruby | apache-2.0 | 968 |
<?php echo e(Form::open(['url' => route('lotes.store'), 'class'=>'form-horizontal', 'role'=>"form"])); ?>
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h4 class="modal-title">Criar Lote</h4>
</div>
<div class="modal-body">
<div cla... | System3D/gestor-de-lotes | storage/framework/views/96fd683b3799ea6bb61223346be7d37255bde268.php | PHP | apache-2.0 | 3,354 |
// Copyright 2010-2014, Google Inc.
// 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 copyright
// notice, this list of condit... | kishikawakatsumi/Mozc-for-iOS | src/android/tests/src/com/google/android/inputmethod/japanese/testing/MozcLayoutUtil.java | Java | apache-2.0 | 3,609 |
/*
* Copyright 2021 ThoughtWorks, 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 agr... | marques-work/gocd | spark/spark-base/src/main/java/com/thoughtworks/go/spark/HtmlErrorPage.java | Java | apache-2.0 | 1,606 |
<?php
/**
* THE CODE IN THIS FILE WAS GENERATED FROM THE EBAY WSDL USING THE PROJECT:
*
* https://github.com/davidtsadler/ebay-api-sdk-php
*
* Copyright 2014 David T. Sadler
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* ... | emullaraj/ebay-sdk-php | src/DTS/eBaySDK/Trading/Types/CategoryType.php | PHP | apache-2.0 | 5,200 |
export interface CommentJson {
body: string;
color?: string;
size?: number;
duration?: number;
easing?: string;
}
export interface StampJson {
path?: string;
url?: string;
duration?: number;
easing?: string;
}
export interface Setting {
key: string;
value: string;
}
export interface Stamp {
i... | chimerast/niconico-speenya | messages/index.ts | TypeScript | apache-2.0 | 389 |
/*
* Copyright 2012 - 2015 Manuel Laggner
*
* 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 ... | mlaggner/tinyMediaManager | src/org/tinymediamanager/core/movie/MovieSettings.java | Java | apache-2.0 | 32,049 |
/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib 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 a... | stdlib-js/stdlib | lib/node_modules/@stdlib/utils/async/some-by/lib/some_by.js | JavaScript | apache-2.0 | 3,300 |
/*
* Copyright 2014 Josselin Pujo
*
* 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 i... | neuneu2k/SEL | JetbrainsPlugin/src/fr/assoba/open/sel/jetbrains/SelElementType.java | Java | apache-2.0 | 923 |
package com.hxtech.offer.fragments;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import com.hxtech.offer.R;
public class CanonFragment extends BaseFragment {
public static CanonFragment newInstance() {
CanonFragment fragment = n... | offerHere/offer | app/src/main/java/com/hxtech/offer/fragments/CanonFragment.java | Java | apache-2.0 | 877 |
/* Copyright (c) 2015, Google Inc.
*
* 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 DISCLAIMS... | apple/swift-nio-ssl | Sources/CNIOBoringSSL/ssl/ssl_buffer.cc | C++ | apache-2.0 | 8,307 |
package de.kevinschie.SimulatorListener;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.ObjectInputStream;
import java.io.PrintWriter;
import java.net.ServerSocket;
import java.net.Socket;
import java.net.URL;
import java.net.URLConnection;
public class SimulationListener {
ObjectIn... | kevinschie/carGateway | src/de/kevinschie/SimulatorListener/SimulationListener.java | Java | apache-2.0 | 2,431 |
/* ###
* IP: GHIDRA
*
* 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 writin... | NationalSecurityAgency/ghidra | Ghidra/Features/VersionTracking/src/main/java/ghidra/feature/vt/api/db/VTMatchMarkupItemTableDBAdapterV0.java | Java | apache-2.0 | 5,056 |
package liquibase.datatype.core;
import liquibase.database.Database;
import liquibase.database.core.DB2Database;
import liquibase.database.core.DerbyDatabase;
import liquibase.database.core.FirebirdDatabase;
import liquibase.database.core.HsqlDatabase;
import liquibase.database.core.InformixDatabase;
import liquibase.... | adriens/liquibase | liquibase-core/src/main/java/liquibase/datatype/core/BooleanType.java | Java | apache-2.0 | 5,817 |
package client
import (
"io"
"time"
"github.com/docker/engine-api/types"
"github.com/docker/engine-api/types/container"
"github.com/docker/engine-api/types/filters"
"github.com/docker/engine-api/types/network"
"github.com/docker/engine-api/types/registry"
"github.com/docker/engine-api/types/swarm"
"golang.or... | thaJeztah/engine-api | client/interface.go | GO | apache-2.0 | 8,469 |
package esilatest
/*
200 ok object */
type GetCorporationsCorporationIdKillmailsRecent200Ok struct {
/*
A hash of this killmail */
KillmailHash string `json:"killmail_hash,omitempty"`
/*
ID of this killmail */
KillmailId int32 `json:"killmail_id,omitempty"`
}
| antihax/mock-esi | latest/go/model_get_corporations_corporation_id_killmails_recent_200_ok.go | GO | apache-2.0 | 269 |
# Copyright 2021 Google LLC
#
# 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, ... | GoogleCloudPlatform/mlops-with-vertex-ai | src/common/datasource_utils.py | Python | apache-2.0 | 2,483 |
<?php
if(isset($_SESSION["bird"])) {
$bird_info = $_SESSION["bird"];
$observers_list = $db->get_observers($bird_info["id_kentish_plover"]);
$observers_array = array();
while($observers = $observers_list->fetch()) {
array_push($observers_array, array(
"date" => $observers["date"],
"town" => $observers["tow... | Carmain/Banding-tracking | content/obs_sheet.php | PHP | apache-2.0 | 3,621 |
"""Insteon base entity."""
import functools
import logging
from pyinsteon import devices
from homeassistant.core import callback
from homeassistant.helpers.dispatcher import (
async_dispatcher_connect,
async_dispatcher_send,
)
from homeassistant.helpers.entity import DeviceInfo, Entity
from .const import (
... | aronsky/home-assistant | homeassistant/components/insteon/insteon_entity.py | Python | apache-2.0 | 5,749 |
package com.monkeyk.os.service.dto;
import com.monkeyk.os.domain.oauth.ClientDetails;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
/**
* 2016/6/8
*
* @author Shengzhao Li
*/
public class ClientDetailsListDto implements Serializable {
private static final long serialVersionU... | monkeyk/oauth2-shiro | authz/src/main/java/com/monkeyk/os/service/dto/ClientDetailsListDto.java | Java | apache-2.0 | 1,151 |
/*******************************************************************************
* Copyright (c) 2015-2018 Skymind, Inc.
*
* This program and the accompanying materials are made available under the
* terms of the Apache License, Version 2.0 which is available at
* https://www.apache.org/licenses/LICENSE-2.0.
*
*... | RobAltena/deeplearning4j | nd4j/nd4j-common/src/main/java/org/nd4j/api/loader/SourceFactory.java | Java | apache-2.0 | 1,022 |
package ch.sourcepond.utils.fileobserver.impl;
import static org.mockito.Mockito.mock;
import ch.sourcepond.utils.fileobserver.impl.dispatcher.DefaultEventDispatcher;
import ch.sourcepond.utils.fileobserver.impl.replay.DefaultEventReplayFactory;
/**
* @author rolandhauser
*
*/
public class DefaultWorkspaceTest {
... | SourcePond/fileobserver-impl | src/test/java/ch/sourcepond/utils/fileobserver/impl/DefaultWorkspaceTest.java | Java | apache-2.0 | 578 |
//MongoDB script to Update the Wing Directors list.
//The list includes Wing Directors and Assistants only.
//
//History:
// 15Nov21 MEG Clean spaces from email addresses.
// 07Mar21 MEG Exclude assistants
// 27Jan21 MEG Created.
var DEBUG = false;
var db = db.getSiblingDB( 'NHWG');
// Google Group of interest
var ba... | ifrguy/NHWG-MIMS | src/Groups/wing_directors.js | JavaScript | apache-2.0 | 4,806 |
package ec.master.assignment1.selection.impl;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.Random;
import ec.master.assignment1.model.Individual;
import ec.master.assignment1.selection.Selector;
/**
* @ClassName: FPSelection
* @Description: implementation of fitn... | nettree/EC | EC_Assignment1/src/ec/master/assignment1/selection/impl/FPSelection.java | Java | apache-2.0 | 1,373 |
/*
* Copyright 2017 Nobuki HIRAMINE
*
* 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 ... | nobukihiramine/ModelViewerTutorial | app/src/main/java/com/hiramine/modelfileloader/StlFileLoader.java | Java | apache-2.0 | 6,007 |
using System;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Logging;
using Newtonsoft.Json;
namespace GovITHub.Auth.Common.Services.Impl
{
/// <summary>
/// Base email sender
/// </summary>
public abstract class BaseEmailSender : IEmailSender
{
... | gov-ithub/auth-sso | src/GovITHub.Auth.Common/Services/Impl/BaseEmailSender.cs | C# | apache-2.0 | 1,437 |
// Copyright 2022 Google LLC
//
// 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 writi... | googleads/googleads-java-lib | modules/dfp_appengine/src/main/java/com/google/api/ads/admanager/jaxws/v202202/StatementError.java | Java | apache-2.0 | 2,266 |
using System;
using NUnit.Framework;
using PCLActivitySet.Domain.Recurrence;
using PCLActivitySet.Dto.Recurrence;
namespace PCLActivitySet.Test.Domain.Recurrence
{
[TestFixture]
public class DateProjectionTest
{
[Test]
public void TranslateProjectionType()
{
const int p... | Merlin9999/PCLActivitySet | src/PCLActivitySet/PCLActivitySet.Test/Domain/Recurrence/DateProjectionTest.cs | C# | apache-2.0 | 2,704 |
using System;
using CJia.Net.Communication;
using CJia.Net.Tcp;
using CJia.Net.Communication.Messengers;
using CJia.Net.Client;
namespace CJia.Net.Server
{
/// <summary>
/// Represents a client from a perspective of a server.
/// </summary>
public interface IServerClient : IMessenger
{
///... | leborety/CJia | CJia.Framework/CJia.Net/Server/IServerClient.cs | C# | apache-2.0 | 1,018 |
# -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: sample-weight-meta.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.p... | FederatedAI/FATE | python/federatedml/protobuf/generated/sample_weight_meta_pb2.py | Python | apache-2.0 | 3,206 |
/*
Copyright 2022 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, softwar... | kubernetes-client/java | fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CronJobSpecFluent.java | Java | apache-2.0 | 3,688 |
package com.github.hayataka.hibernatevalidatorsample.context;
import java.io.Closeable;
/**
* tryでのresourceCloseを行うための仕組
* @author hayakawatakahiko
*/
interface AutoCloseable extends Closeable {
/**
* 開放すべきリソースを閉じる処理.
*/
void close();
}
| hayataka/hibernateValidatorSample | src/main/java/com/github/hayataka/hibernatevalidatorsample/context/AutoCloseable.java | Java | apache-2.0 | 297 |
// +build windows
package handlers
import (
"syscall"
"golang.org/x/crypto/ssh"
)
var SyscallSignals = map[ssh.Signal]syscall.Signal{
ssh.SIGABRT: syscall.SIGABRT,
ssh.SIGALRM: syscall.SIGALRM,
ssh.SIGFPE: syscall.SIGFPE,
ssh.SIGHUP: syscall.SIGHUP,
ssh.SIGILL: syscall.SIGILL,
ssh.SIGINT: syscall.SIGINT... | cloudfoundry-incubator/diego-ssh-windows | handlers/signals_windows.go | GO | apache-2.0 | 867 |
/*
* Copyright 2005-2017 Dozer Project
*
* 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 ... | STRiDGE/dozer | core/src/test/java/org/dozer/vo/interfacerecursion/UserPrime.java | Java | apache-2.0 | 973 |
// Copyright 2012 the V8 project authors. 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 copyright
// notice, this list of ... | hkernbach/arangodb | 3rdParty/V8/v5.7.492.77/test/cctest/test-assembler-arm.cc | C++ | apache-2.0 | 114,323 |
package ludum.mighty.ld36.animations;
import com.badlogic.gdx.graphics.Texture;
import com.badlogic.gdx.graphics.g2d.Animation;
import com.badlogic.gdx.graphics.g2d.TextureRegion;
import ludum.mighty.ld36.settings.DefaultValues;
public class AnimatorSonicBoom {
private Texture kidTexture;
private TextureRegion[][... | punkto/mightyLD36 | core/src/ludum/mighty/ld36/animations/AnimatorSonicBoom.java | Java | apache-2.0 | 2,485 |
#include "arg_conversion.h"
#include "command_buffer.h"
static command_buffer buffer;
int piss_off(int a, double b) {
return printf("piss_off called with %d, %f\n", a, b);
}
static const char piss_off_usage[] = "piss_off int double\nYell numbers!";
void kill_player(const std::string& name) {
printf("Killing player... | n00btime/gen_wrapper | my_test.cpp | C++ | apache-2.0 | 871 |
package es.tid.pce.client.management;
import java.net.ServerSocket;
import java.util.Timer;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import es.tid.pce.client.emulator.AutomaticTesterStatistics;
import es.tid.pce.client.emulator.Emulator;
import es.tid.pce.client.tester.InformationRequest;
public clas... | telefonicaid/netphony-gmpls-emulator | src/main/java/es/tid/pce/client/management/AutomaticTesterManagementSever.java | Java | apache-2.0 | 2,161 |
package com.joey.bak.base.ui;
import android.app.Activity;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.FragmentTransaction;
import android.support.v7.app.AlertDialog;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
im... | JoeSteven/HuaBan | bak/src/main/java/com/joey/bak/base/ui/BaseFragment.java | Java | apache-2.0 | 3,988 |
/*!
* ${copyright}
*/
// Provides control sap.ui.commons.HorizontalDivider.
sap.ui.define([
'./library',
'sap/ui/core/Control',
'./HorizontalDividerRenderer'
],
function(library, Control, HorizontalDividerRenderer) {
"use strict";
// shortcut for sap.ui.commons.HorizontalDividerHeight
var HorizontalDivider... | SAP/openui5 | src/sap.ui.commons/src/sap/ui/commons/HorizontalDivider.js | JavaScript | apache-2.0 | 1,812 |
/*
* 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")... | iloveyou416068/CookNIOServer | demos/mina/src/mina/udp/perf/UdpServer.java | Java | apache-2.0 | 4,387 |
/*
* Copyright (C) 2011-2016 Intel Corporation. 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 copyright
* notice, this li... | shwetasshinde24/Panoply | patched-driver-sdk/customSDK/psw/urts/parser/parserfactory.cpp | C++ | apache-2.0 | 2,856 |
<?php
// Heading
$_['heading_title'] = 'Quốc Gia';
// Text
$_['text_success'] = 'Hoàn tất: Bạn đã sửa đổi các Quốc Gia!';
$_['text_list'] = 'Danh sách các Quốc gia';
$_['text_add'] = 'Thêm Quốc gia';
$_['text_edit'] = 'Sửa Quốc Gia';
// Column
$... | duythanhitc/ShopCartClean | admin/language/vi-vn/localisation/country.php | PHP | apache-2.0 | 2,084 |
<?php
/**
* Copyright 2015 Xenofon Spafaridis
*
* 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... | phramework/examples-api | public/index.php | PHP | apache-2.0 | 1,649 |
/*
* Copyright 2010-2012 Amazon.com, Inc. or its affiliates. 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.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "l... | frsyuki/aws-sdk-for-java | src/main/java/com/amazonaws/services/storagegateway/model/DescribeMaintenanceStartTimeResult.java | Java | apache-2.0 | 18,484 |
from __future__ import absolute_import
from django.utils.translation import ugettext as _
from django.conf import settings
from django.views.decorators.csrf import csrf_exempt
from django.contrib.auth import authenticate
from zerver.decorator import authenticated_json_post_view, has_request_variables, REQ
from zerver... | peiwei/zulip | zerver/views/user_settings.py | Python | apache-2.0 | 9,076 |
import path from 'path'
import chromedriver from 'chromedriver'
import webdriver from 'selenium-webdriver'
import electronPath from 'electron-prebuilt'
import homeStyles from '../app/components/Home.css'
import counterStyles from '../app/components/Counter.css'
chromedriver.start() // on port 9515
process.on('exit', c... | 3-strand-code/3sc-desktop | test/e2e.js | JavaScript | apache-2.0 | 3,188 |
package com.example.apkdownloadspeedtest;
import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
public class DBHelper_downloader extends SQLiteOpenHelper {
public DBHelper_downloader(Context context) {
//"download.db" is the name of databas... | princegyw/Personal-Utils | keep-old/FileDownloader_v5.0/DBHelper_downloader.java | Java | apache-2.0 | 929 |
package com.ogove.hr.Activities.Notification;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import com.ogove.hr.R;
public class NotificationDepartmentCreate extends AppCompatActivity impleme... | LyokoVN/HRManager | app/src/main/java/com/ogove/hr/Activities/Notification/NotificationDepartmentCreate.java | Java | apache-2.0 | 1,077 |
/*
* 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 ... | KulykRoman/drill | contrib/storage-hive/core/src/main/java/org/apache/drill/exec/store/hive/HiveDrillNativeParquetSubScan.java | Java | apache-2.0 | 2,845 |
/*
* Copyright (c) 2012-2018, Peter Abeles. All Rights Reserved.
*
* This file is part of DDogleg (http://ddogleg.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://w... | lessthanoptimal/ddogleg | test/org/ddogleg/fitting/modelset/TestModelManagerDefault.java | Java | apache-2.0 | 1,395 |
/*
* 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 ... | dashorst/wicket | wicket-core/src/main/java/org/apache/wicket/settings/ResourceSettings.java | Java | apache-2.0 | 26,459 |
/*
* Copyright (C) 2016 Intel Corporation
*
* 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... | android-art-intel/Nougat | art-extension/opttests/src/OptimizationTests/Devirtualization/InvokeInterfaceIntTryCatchFinally/Main.java | Java | apache-2.0 | 1,187 |
/**
*
*/
package org.apache.hadoop.hdfs.server.namenodeFBT.lock;
import org.apache.hadoop.hdfs.server.namenodeFBT.Response;
/**
* @author hanhlh
*
*/
public final class EndLockResponse extends Response {
/**
*
*/
private static final long serialVersionUID = 1L;
/**
* EndLockReque... | hanhlh/hadoop-0.20.2_FatBTree | src/hdfs/org/apache/hadoop/hdfs/server/namenodeFBT/lock/EndLockResponse.java | Java | apache-2.0 | 646 |
# coding=utf-8
from ..base import BitbucketBase
class BitbucketCloudBase(BitbucketBase):
def __init__(self, url, *args, **kwargs):
"""
Init the rest api wrapper
:param url: string: The base url used for the rest api.
:param *args: list: The fixed arguments for the Atlassian... | MattAgile/atlassian-python-api | atlassian/bitbucket/cloud/base.py | Python | apache-2.0 | 2,467 |
/*
* Copyright 2002-2014 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... | qobel/esoguproject | spring-framework/spring-messaging/src/main/java/org/springframework/messaging/handler/annotation/Header.java | Java | apache-2.0 | 1,673 |