repo_name stringlengths 4 116 | path stringlengths 4 379 | size stringlengths 1 7 | content stringlengths 3 1.05M | license stringclasses 15
values |
|---|---|---|---|---|
scorpionvicky/elasticsearch | server/src/test/java/org/elasticsearch/snapshots/SnapshotResiliencyTests.java | 96649 | /*
* Licensed to Elasticsearch under one or more contributor
* license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright
* ownership. Elasticsearch licenses this file to you under
* the Apache License, Version 2.0 (the "License"); you may
* not use this fi... | apache-2.0 |
jhuang101/eDocumentReader | Hubs/activities/system/lightweight/InternalRejectRecognitionActivity.cs | 646 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
namespace eDocumentReader.Hubs.activities.system.lightweight
{
public class InternalRejectRecognitionActivity : Activity
{
private double creationTime;
public InternalRejectRecognitionActivity()
{
... | apache-2.0 |
joaogl/LeGame-Remake | src/net/joaolourenco/legame/entity/mob/Citizen.java | 2596 | /*
* Copyright 2014 Joao Lourenco
*
* 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 o... | apache-2.0 |
bandarji/lekhan | python/reddit/fizzbuzz.py | 1129 | import sys
def fizz_buzz(ceiling):
"""Display numbers, replacing evenly-divisible numbers with fuzz/buzz.
Starting with 1, show numbers up to and including the ceiling value. If the
number is evenly divisible by 3, display "Fizz"; "Buzz" when evenly
divisible by 5. When by both, display "FizzBuzz".
... | apache-2.0 |
meituan/mssapi_php | src/Mss/Common/Waiter/WaiterInterface.php | 1605 | <?php
/**
* Copyright 2010-2013 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... | apache-2.0 |
mF2C/COMPSs | compss/programming_model/bindings/python/src/pycompss/api/multinode.py | 8325 | #!/usr/bin/python
#
# Copyright 2002-2019 Barcelona Supercomputing Center (www.bsc.es)
#
# 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
... | apache-2.0 |
ccidral/dagger | dagger-core/src/main/java/dagger/http/cookie/Cookie.java | 456 | package dagger.http.cookie;
import java.util.Date;
public interface Cookie {
String getName();
String getValue();
boolean isSecure();
void setSecure(boolean secure);
boolean isHttpOnly();
void setHttpOnly(boolean httpOnly);
String getPath();
void setPath(String path);
Inte... | apache-2.0 |
oehme/analysing-gradle-performance | my-app/src/main/java/org/gradle/test/performance/mediummonolithicjavaproject/p313/Production6260.java | 1891 | package org.gradle.test.performance.mediummonolithicjavaproject.p313;
public class Production6260 {
private String property0;
public String getProperty0() {
return property0;
}
public void setProperty0(String value) {
property0 = value;
}
private String property1;
... | apache-2.0 |
googleads/google-ads-ruby | lib/google/ads/google_ads/v8/services/topic_view_service/client.rb | 18414 | # frozen_string_literal: true
# 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 applicabl... | apache-2.0 |
arquillian/arquillian-core | testenrichers/ejb-jakarta/src/main/java/org/jboss/arquillian/testenricher/ejb/client/EJBEnricherArchiveAppender.java | 1931 | /*
* JBoss, Home of Professional Open Source
* Copyright 2020 Red Hat Inc. and/or its affiliates and other contributors
* as indicated by the @authors tag. All rights reserved.
* See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
* Licensed under the Apache License, Vers... | apache-2.0 |
placeboR/MagicMirror | app/src/main/java/com/example/administrator/magicmirror/db/County.java | 861 | package com.example.administrator.magicmirror.db;
import org.litepal.crud.DataSupport;
/**
* Created by Administrator on 2017/5/8.
*/
public class County extends DataSupport {
private int id;
private String countyName;
private String weatherId;
private int cityId;
public int getId() {
... | apache-2.0 |
lyndon160/REF | tools/specmuall.py | 9823 |
spec = {
'name' : "Mu's template #2",
'default network name' : "demo-net3",
'external network name' : "ext-net3",
'keypair' : "dell4",
'Networks' : [
{ 'name' : "lan201" , "start": "192.168.1.201", "end": "192.168.1.202", "subnet" :" 192.168.1.0/24", "gateway": "192.168.1.1", "vlan": 201, "... | apache-2.0 |
BlueBrain/bluima | modules/bluima_typesystem/src/main/java/de/julielab/jules/types/GeniaPOSTag_Type.java | 2129 |
/* First created by JCasGen Sat Mar 07 22:05:57 CET 2015 */
package de.julielab.jules.types;
import org.apache.uima.jcas.JCas;
import org.apache.uima.jcas.JCasRegistry;
import org.apache.uima.cas.impl.CASImpl;
import org.apache.uima.cas.impl.FSGenerator;
import org.apache.uima.cas.FeatureStructure;
import org.apache.... | apache-2.0 |
MSeifert04/iteration_utilities | tests/test_allmonotone.py | 1938 | # Licensed under Apache License Version 2.0 - see LICENSE
import pytest
from iteration_utilities import all_monotone
import helper_funcs as _hf
from helper_cls import T
def test_all_monotone_empty1():
assert all_monotone([])
def test_all_monotone_normal1():
assert all_monotone([T(1), T(1), T(1)])
def t... | apache-2.0 |
yuqirong/CarManager | src/com/carmanager/daos/impl/FaultCodeDaoImpl.java | 470 | package com.carmanager.daos.impl;
import org.springframework.stereotype.Repository;
import com.carmanager.entities.FaultCode;
import com.carmanager.entities.Page;
@Repository("faultCodeDao")
public class FaultCodeDaoImpl extends BaseDaoImpl<FaultCode> {
public Page<FaultCode> listFaultCodePage(int pageNo, int page... | apache-2.0 |
ManageIQ/manageiq-ui-classic | spec/presenters/tree_node/miq_alert_set_spec.rb | 275 | describe TreeNode::MiqAlertSet do
subject { described_class.new(object, nil, nil) }
let(:object) { FactoryBot.create(:miq_alert_set) }
include_examples 'TreeNode::Node#key prefix', 'ap-'
include_examples 'TreeNode::Node#icon', 'pficon pficon-warning-triangle-o'
end
| apache-2.0 |
GIP-RECIA/cas | support/cas-server-support-saml-idp-web/src/main/java/org/apereo/cas/support/saml/web/idp/profile/builders/enc/encoder/sso/SamlResponseArtifactEncoder.java | 4385 | package org.apereo.cas.support.saml.web.idp.profile.builders.enc.encoder.sso;
import org.apereo.cas.support.saml.services.idp.metadata.SamlRegisteredServiceServiceProviderMetadataFacade;
import org.apereo.cas.support.saml.web.idp.profile.builders.enc.encoder.BaseHttpServletAwareSamlObjectEncoder;
import org.apereo.cas... | apache-2.0 |
antihax/mock-esi | dev/go/api_opportunities.go | 6500 | package esidev
import (
"net/http"
"time"
"github.com/gorilla/mux"
)
var _ time.Time
var _ = mux.NewRouter
func GetCharactersCharacterIdOpportunities(w http.ResponseWriter, r *http.Request) {
var (
localV interface{}
err error
characterId int32
datasource string
token string
)
/... | apache-2.0 |
mikatammi/tee-tui-virtual-display | virtualdisplay-qt/settingsdialog.cpp | 232 | #include "settingsdialog.hpp"
#include "ui_settingsdialog.h"
SettingsDialog::SettingsDialog(QWidget *parent) :
QDialog(parent),
ui_(new Ui::SettingsDialog)
{
ui_->setupUi(this);
}
SettingsDialog::~SettingsDialog()
{
}
| apache-2.0 |
huang195/kubernetes | pkg/apis/storage/v1beta1/generated.pb.go | 19660 | /*
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, ... | apache-2.0 |
xuzha/leveldb | leveldb/src/main/java/org/iq80/leveldb/impl/Version.java | 11082 | /**
* Copyright (C) 2011 the original author or authors.
* See the notice.md file distributed with this work for additional
* information regarding copyright ownership.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may... | apache-2.0 |
hbibel/TapToUnlock | app/src/androidTest/java/com/abominableshrine/taptounlock/mocks/MockTapDetector.java | 3070 | /*
* Copyright 2015 Hannes Bibel, Valentin Sawadski
*
* 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 applica... | apache-2.0 |
adrianit0/MyScripts | Scripts/PlatformGame/Generador.cs | 1597 | //Script modificado del actual de Juande.
using UnityEngine;
using System.Collections;
public class Generador : MonoBehaviour {
public Transform personaje;
public float metrosMin = 0;
public float metrosMax = 0;
public GameObject[] obj;
//Random
float metrosRnd = ... | apache-2.0 |
webmaster444/webmaster444.github.io | other/mypointcloud/three/src/renderers/shaders/ShaderChunk/envmap_fragment.glsl.js | 1606 | export default /* glsl */`
#ifdef USE_ENVMAP
#ifdef ENV_WORLDPOS
vec3 cameraToFrag;
if ( isOrthographic ) {
cameraToFrag = normalize( vec3( - viewMatrix[ 0 ][ 2 ], - viewMatrix[ 1 ][ 2 ], - viewMatrix[ 2 ][ 2 ] ) );
} else {
cameraToFrag = normalize( vWorldPosition - cameraPosition );
}
// T... | apache-2.0 |
saumikonline/schat | src/main/java/com/sc/schat/controller/AuthController.java | 2518 | package com.sc.schat.controller;
import java.util.Collections;
import javax.inject.Inject;
import javax.servlet.http.HttpServletResponse;
import javax.validation.Valid;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;... | apache-2.0 |
stellar/gateway-server | src/github.com/stellar/gateway/protocols/bridge/builder_allow_trust.go | 1303 | package bridge
import (
"github.com/stellar/gateway/protocols"
b "github.com/stellar/go/build"
)
// AllowTrustOperationBody represents allow_trust operation
type AllowTrustOperationBody struct {
Source *string
AssetCode string `json:"asset_code"`
Trustor string
Authorize bool
}
// ToTransactionMutator ret... | apache-2.0 |
ixa-ehu/qwn-ppv | src/main/java/es/ehu/si/ixa/qwn/ppv/PropagationCombinator.java | 5210 | /*
* Copyright 2014 Iñaki San Vicente and Rodrigo Agerri
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... | apache-2.0 |
stemey/gform-app | src/gform-app/cms/LinkDialog.js | 1541 | define([
'dijit/_editor/_Plugin',
'dijit/_editor/plugins/LinkDialog',
"dojo/_base/declare"
], function (Plugin, LinkDialog, declare) {
var CmsLinkDialog = declare( [LinkDialog], {
htmlTemplate:"<a href=\"{{link-path '${urlInput}'}}\" _djrealurl=\"{{link-path '${urlInput}'}}\" target=\"${targetS... | apache-2.0 |
cucina/opencucina | engine/src/test/java/org/cucina/engine/config/ParameterSetterActionDefinitionParserTest.java | 1365 | package org.cucina.engine.config;
import org.cucina.engine.operations.ParameterValueExtractorOperation;
import org.junit.Test;
import org.springframework.beans.factory.config.BeanDefinition;
import org.springframework.beans.factory.support.BeanDefinitionBuilder;
import org.w3c.dom.Element;
import static org.junit.Ass... | apache-2.0 |
h136799711/20150615modoer_marry | static/javascript/plugins/slideBack.js | 765 | define("plugins/slideBack",function(a,b,c){var d={back:$(".subNav .back"),c:$(".subNav").find("a")};d.getOption=function(a){var b=this,c=b.c.eq(a);b.nW=c.width(),b.nLeft=c.position().left},d.init=function(){var a=this,b=!0;b=a.c.parent("li").size()>0?!1:!0,a.getOption(b?$(".subNav a.active").index():$(".subNav a").pare... | apache-2.0 |
Neovici/cosmoz-omnitable | cosmoz-omnitable-item-expand-line.js | 757 | import { component, html } from 'haunted';
const OmnitableItemExpandLine = ({ column }) => html`
<style>
:host {
display: flex;
align-items: center;
flex-wrap: wrap;
}
.item-expand-label {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
flex: initial;
align-self: start;
... | apache-2.0 |
dsrbecky/gapid | gapis/api/test/test.go | 1595 | // Copyright (C) 2017 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 t... | apache-2.0 |
pebble2015/cpoi | src/org/apache/poi/util/HexDump.cpp | 11508 | // Generated from /POI/java/org/apache/poi/util/HexDump.java
#include <org/apache/poi/util/HexDump.hpp>
#include <java/io/ByteArrayOutputStream.hpp>
#include <java/io/FileInputStream.hpp>
#include <java/io/InputStream.hpp>
#include <java/io/OutputStream.hpp>
#include <java/io/OutputStreamWriter.hpp>
#include <java/io/... | apache-2.0 |
consulo/consulo | modules/base/platform-api/src/main/java/com/intellij/openapi/ui/popup/IconButton.java | 1701 | /*
* 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... | apache-2.0 |
yihaha/YTest | app/src/main/java/com/yibh/mytest/customview/CustomActivity.java | 1329 | package com.yibh.mytest.customview;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import com.yibh.mytest.R;
import java.util.ArrayList;
import java.util.List;
public class CustomActivity extends AppCompatActivity {
private RoundView mRoundView;
private... | apache-2.0 |
SethGreylyn/gwells | gwells/migrations/0019_auto_20170728_1149.py | 17671 | # -*- coding: utf-8 -*-
# Generated by Django 1.10.6 on 2017-07-28 18:49
from __future__ import unicode_literals
from decimal import Decimal
import django.core.validators
from django.db import migrations, models
import django.db.models.deletion
import uuid
class Migration(migrations.Migration):
dependencies = [... | apache-2.0 |
OpenVidu/openvidu | openvidu-node-client/src/OpenVidu.ts | 27595 | /*
* (C) Copyright 2017-2020 OpenVidu (https://openvidu.io)
*
* 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... | apache-2.0 |
xiayouli0122/Wardroid | src/com/example/ward/sample/FrameLayoutActivity.java | 362 | package com.example.ward.sample;
import android.app.Activity;
import android.os.Bundle;
import com.example.ward.R;
public class FrameLayoutActivity extends Activity{
@Override
protected void onCreate(Bundle savedInstanceState) {
// TODO Auto-generated method stub
super.onCreate(savedInstanceState);
setCo... | apache-2.0 |
naveenbhaskar/gocd | server/webapp/WEB-INF/rails/spec/views/api/pipelines/stage_feed_xml_spec.rb | 10934 | #
# Copyright 2019 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 agreed to in ... | apache-2.0 |
shawnbuso/amphtml | build-system/tasks/gen-codeowners/index.js | 3723 | /**
* Copyright 2017 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... | apache-2.0 |
tknandu/CommonsMath_Modifed | math (trunk)/src/main/java/org/apache/commons/math3/geometry/partitioning/BSPTree.java | 30204 | /*
* 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 ... | apache-2.0 |
rvadali/fb-raid-refactoring | src/contrib/raid/src/java/org/apache/hadoop/raid/JobMonitor.java | 7472 | /**
* 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... | apache-2.0 |
mboucher/ibm-watson | content/src/main/content/jcr_root/apps/ibm-watson/contexthub/modules/conscientiousness/renderer.conscientiousness.js | 5821 | /*
| Copyright 2015 Adobe
|
| 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... | apache-2.0 |
ascleft/CtrlCenter | src/com/zc/support/service/SystemInitHelper.java | 624 | package com.zc.support.service;
import java.util.ArrayList;
import com.zc.support.config.ConfigHelperDB;
import com.zc.support.config.ConfigHelperURL;
public class SystemInitHelper {
public static void init() {
ArrayList<String> infos = new ArrayList<String>();
ConfigHelperURL.init();
ConfigHelperDB.init()... | apache-2.0 |
ChinmaySKulkarni/hbase | hbase-server/src/main/java/org/apache/hadoop/hbase/mob/MobUtils.java | 41179 | /**
*
* 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"); ... | apache-2.0 |
trasa/aws-sdk-java | aws-java-sdk-kms/src/main/java/com/amazonaws/services/kms/model/GenerateRandomRequest.java | 4206 | /*
* Copyright 2010-2016 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 "lice... | apache-2.0 |
Gavin-Yang/elasticsearch-hadoop | spark/sql-13/src/main/scala/org/elasticsearch/spark/sql/DefaultSource.scala | 2151 | package org.elasticsearch.spark.sql
import scala.collection.JavaConverters.mapAsJavaMapConverter
import scala.collection.mutable.LinkedHashMap
import org.apache.spark.annotation.DeveloperApi
import org.apache.spark.sql.DataFrame
import org.apache.spark.sql.SQLContext
import org.apache.spark.sql.sources.BaseRelation
i... | apache-2.0 |
VlachJosef/bforms-frontend | app/uk/gov/hmrc/bforms/models/eeitt/BusinessUser.scala | 839 | /*
* Copyright 2017 HM Revenue & Customs
*
* 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 a... | apache-2.0 |
ONLYOFFICE/CommunityServer | web/studio/ASC.Web.Studio/Products/Community/Modules/Forum/Common/ForumManager.cs | 1464 | /*
*
* (c) Copyright Ascensio System Limited 2010-2021
*
* 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 appli... | apache-2.0 |
chbatey/cassandra-1 | src/java/org/apache/cassandra/tools/NodeProbe.java | 60959 | /*
* 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 ... | apache-2.0 |
nvivo/knockbone | src/View.ts | 20873 | module Knockbone {
interface EventInfo {
eventName: string;
methodName: string;
method: any;
selector: string;
adapter: string;
filters: string[];
}
interface ParsedEventInfo {
el?: EventInfo[];
direct?: EventInfo[];
window?: EventIn... | apache-2.0 |
MartinAparicioPons/Competitive-Programming | UVA/OlympicSwimming.cpp | 1531 | #include <bits/stdc++.h>
#define EL cerr << endl;
#define DB(x) cerr << "#" << (#x) << ": " << (x) << " ";
#define DEB(x) cerr << "#" << (#x) << ": " << (x) << endl;
#define PR(x) cout << (x) << endl
#define X first
#define Y second
#define PB push_back
#define MP make_pair
using namespace std;
typedef unsigned long ... | apache-2.0 |
mufaddalq/cloudstack-datera-driver | awsapi/src/com/amazon/ec2/ReplaceNetworkAclAssociation.java | 16123 | // 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... | apache-2.0 |
telefonicaid/fiware-sinfonier | sinfonier-web/app/models/module/Libraries.java | 1331 | package models.module;
import com.mongodb.BasicDBList;
import com.mongodb.DBObject;
import exceptions.SinfonierException;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import models.Model;
import play.data.validation.Valid;
public class Libraries extends Model implemen... | apache-2.0 |
yurydelendik/binaryen | src/passes/RelooperJumpThreading.cpp | 10006 | /*
* Copyright 2016 WebAssembly Community Group participants
*
* 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... | apache-2.0 |
googleapis/google-api-java-client-services | clients/google-api-services-osconfig/v1/1.31.0/com/google/api/services/osconfig/v1/model/Inventory.java | 5068 | /*
* 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... | apache-2.0 |
googleapis/google-api-java-client-services | clients/google-api-services-gkehub/v1alpha/1.31.0/com/google/api/services/gkehub/v1alpha/model/ConfigManagementGroupVersionKind.java | 3089 | /*
* 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... | apache-2.0 |
jastice/intellij-scala | scala/scala-impl/test/org/jetbrains/plugins/scala/failed/checkAccess/CheckAccessTest.scala | 551 | package org.jetbrains.plugins.scala.failed.checkAccess
import org.jetbrains.plugins.scala.PerfCycleTests
import org.jetbrains.plugins.scala.lang.checkers.checkPrivateAccess.CheckPrivateAccessTestBase
import org.junit.experimental.categories.Category
/**
* User: Dmitry.Naydanov
* Date: 22.03.16.
*/
@Category(Arr... | apache-2.0 |
codeboytj/data-structures-algorithms | src/test/java/cumt/tj/learn/algorithms/sort/BitArraySortTest.java | 1378 | package cumt.tj.learn.algorithms.sort;
import org.junit.Test;
import java.io.BufferedWriter;
import java.io.FileWriter;
import java.io.IOException;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Random;
import java.util.Set;
/**
* Created by sky on 17-4-26.
*/
public class BitArraySortTest {
... | apache-2.0 |
sferich888/origin | pkg/cmd/openshift-apiserver/openshiftapiserver/project.go | 1668 | package openshiftapiserver
import (
corev1informers "k8s.io/client-go/informers/core/v1"
rbacinformers "k8s.io/client-go/informers/rbac/v1"
"k8s.io/client-go/kubernetes"
restclient "k8s.io/client-go/rest"
rbacauthorizer "k8s.io/kubernetes/plugin/pkg/auth/authorizer/rbac"
quotainformer "github.com/openshift/clie... | apache-2.0 |
ContinueCoding/GoogleOfficialGuidePractice | app/src/main/java/com/huoxy/googleofficialpractice/apiguide/chapter4/AnimationGraphicActivity.java | 9710 | package com.huoxy.googleofficialpractice.apiguide.chapter4;
import android.animation.Animator;
import android.animation.LayoutTransition;
import android.animation.ValueAnimator;
import android.graphics.Bitmap;
import android.graphics.Canvas;
import android.graphics.Color;
import android.os.Bundle;
import android.suppo... | apache-2.0 |
free-creations/Repetitor | MediaContainer2/src/de/free_creations/mediacontainer2/MediaRootNode.java | 2845 | /*
* Copyright 2012 Harald Postner.
*
* 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 agree... | apache-2.0 |
asakusafw/asakusafw | yaess-project/asakusa-yaess-core/src/main/java/com/asakusafw/yaess/core/JobScheduler.java | 3870 | /**
* Copyright 2011-2021 Asakusa Framework Team.
*
* 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... | apache-2.0 |
mifos/1.5.x | application/src/main/java/org/mifos/reports/branchreport/BranchReportLoanArrearsAgingBO.java | 6910 | /*
* Copyright (c) 2005-2010 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... | apache-2.0 |
SebastianCzoch/lxc-exporter | lxc/memory.go | 1224 | package lxc
import (
"fmt"
"io/ioutil"
"strings"
)
// MemStat is a struct which contains usage of memory read from cgroups
type MemStat struct {
Usage float64
}
var (
lxcMemStatPathPattern = map[int]string{
4: "%s/memory/lxc/%s/memory.usage_in_bytes",
}
)
// GetMemStat is a method which returns MemStat stru... | apache-2.0 |
chrsmith/google-cloud-powershell | Google.PowerShell/Logging/GcLogCmdlets.cs | 33592 | // Copyright 2015-2016 Google Inc. All Rights Reserved.
// Licensed under the Apache License Version 2.0.
using Google.Apis.Logging.v2;
using Google.Apis.Logging.v2.Data;
using Google.PowerShell.Common;
using System;
using System.Collections;
using System.Collections.Generic;
using System.Collections.ObjectModel;
usin... | apache-2.0 |
vpikulik/lymph | docs/conf.py | 7820 | # -*- coding: utf-8 -*-
#
# lymph documentation build configuration file, created by
# sphinx-quickstart on Thu Nov 21 15:41:28 2013.
#
# This file is execfile()d with the current directory set to its
# containing dir.
#
# Note that not all possible configuration values are present in this
# autogenerated file.
#
# All... | apache-2.0 |
ericallfesta/kirarirenew | proto.git 2/db/migrate/20140325102750_add_source_url_in_products.rb | 137 | class AddSourceUrlInProducts < ActiveRecord::Migration
def change
add_column :products, :source_url, :string, limit: 511
end
end
| apache-2.0 |
allomov/bosh-init | internal/github.com/onsi/ginkgo/internal/codelocation/code_location_test.go | 2528 | package codelocation_test
import (
. "github.com/cloudfoundry/bosh-init/internal/github.com/onsi/ginkgo"
"github.com/cloudfoundry/bosh-init/internal/github.com/onsi/ginkgo/internal/codelocation"
"github.com/cloudfoundry/bosh-init/internal/github.com/onsi/ginkgo/types"
. "github.com/cloudfoundry/bosh-init/internal/... | apache-2.0 |
chris-carneiro/Wi-Fi-Toggler | app/src/main/java/net/opencurlybraces/android/projects/wifitoggler/ui/fragments/PreferencesFragment.java | 3357 | package net.opencurlybraces.android.projects.wifitoggler.ui.fragments;
import android.os.Bundle;
import android.preference.ListPreference;
import android.preference.Preference;
import android.preference.PreferenceFragment;
import android.util.Log;
import net.opencurlybraces.android.projects.wifitoggler.R;
import net.... | apache-2.0 |
fxdyx/develnext | jphp-gui-ext/src/main/java/org/develnext/jphp/ext/javafx/classes/data/MetaNode.java | 3084 | package org.develnext.jphp.ext.javafx.classes.data;
import com.sun.javafx.geom.BaseBounds;
import com.sun.javafx.geom.transform.BaseTransform;
import com.sun.javafx.jmx.MXNodeAlgorithm;
import com.sun.javafx.jmx.MXNodeAlgorithmContext;
import com.sun.javafx.sg.prism.NGNode;
import javafx.geometry.Bounds;
import javafx... | apache-2.0 |
fxdyx/develnext | develnext/src/ide/formats/form/event/MouseEventKind.php | 346 | <?php
namespace ide\formats\form\event;
use php\gui\event\UXMouseEvent;
/**
* Class MouseEventKind
* @package ide\formats\form\event
*/
class MouseEventKind extends AbstractEventKind
{
/**
* @return array
*/
public function getArguments()
{
return [
[UXMouseEvent::class, '... | apache-2.0 |
UKHomeOffice/drt-scalajs-spa-exploration | server/src/test/scala/actors/serializers/ManifestMessageConversionSpec.scala | 2551 | package actors.serializers
import drt.shared._
import org.specs2.mutable.Specification
import passengersplits.core.PassengerTypeCalculatorValues.DocumentType
import passengersplits.parsing.VoyageManifestParser._
import server.protobuf.messages.VoyageManifest.PassengerInfoJsonMessage
class ManifestMessageConversionSpe... | apache-2.0 |
abstractj/incubator-deltaspike | deltaspike/modules/security/impl/src/main/java/org/apache/deltaspike/security/impl/authorization/SecurityExtension.java | 10505 | /*
* 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 ma... | apache-2.0 |
elahrvivaz/geomesa | geomesa-utils/src/test/scala/org/locationtech/geomesa/utils/stats/GroupByTest.scala | 26986 | /***********************************************************************
* Copyright (c) 2013-2019 Commonwealth Computer Research, Inc.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Apache License, Version 2.0
* which accompanies this distribution and... | apache-2.0 |
jhulten/chef | chef/lib/chef/knife/node_show.rb | 1590 | #
# Author:: Adam Jacob (<adam@opscode.com>)
# Copyright:: Copyright (c) 2009 Opscode, Inc.
# License:: Apache License, Version 2.0
#
# 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... | apache-2.0 |
memodir/cv | src/resume/views.py | 17836 | # -*- coding: utf-8 -*-
import logging
from django.conf import settings
from django.contrib.auth import get_user_model
from django.contrib.auth.mixins import LoginRequiredMixin
from django.shortcuts import get_object_or_404, render #noqa
from django.http import HttpResponseRedirect # noqa
from django.urls import re... | apache-2.0 |
stdlib-js/stdlib | lib/node_modules/@stdlib/blas/ext/base/dapxsum/lib/main.js | 917 | /**
* @license Apache-2.0
*
* Copyright (c) 2020 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... | apache-2.0 |
stdlib-js/stdlib | lib/node_modules/@stdlib/random/streams/gumbel/test/test.factory.js | 15782 | /**
* @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... | apache-2.0 |
open-orchestra/open-orchestra-mongo-libs | MongoBundle/DependencyInjection/Compiler/FilterTypePaginationCompilerPass.php | 890 | <?php
namespace OpenOrchestra\MongoBundle\DependencyInjection\Compiler;
use OpenOrchestra\BaseBundle\DependencyInjection\Compiler\AbstractTaggedCompiler;
use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface;
use Symfony\Component\DependencyInjection\ContainerBuilder;
/**
* Class FilterTypePagina... | apache-2.0 |
LindaLawton/Google-APIs-PHP-Samples | Samples/Google Mirror API/v1/AttachmentsListSample.php | 3744 | <?php
// Copyright 2017 DAIMTO ([Linda Lawton](https://twitter.com/LindaLawtonDK)) : [www.daimto.com](http://www.daimto.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://w... | apache-2.0 |
nickman/tsdb-csf | csf-hub/src/main/java/com/sun/jdmk/CompatibleClassLoaderRepositorySupport.java | 6940 | /*
* @(#)file CompatibleClassLoaderRepositorySupport.java
* @(#)author Sun Microsystems, Inc.
* @(#)version 1.4
* @(#)lastedit 07/03/08
*
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
*
* Copyright (c) 2007 Sun Microsystems, Inc. All Rights Reserved.
*
* The contents of this fil... | apache-2.0 |
jnook/org.injava.build.CuteBuild | CuteBuild/src/main/java/org/injava/build/cutebuild/maven/pom/elements/distributionmanagement/DistributionManagement.java | 890 | package org.injava.build.cutebuild.maven.pom.elements.distributionmanagement;
import static java.util.Arrays.asList;
import static org.injava.lang.designbycontract.Preconditions.requireNonNull;
import java.util.List;
import org.injava.build.cutebuild.maven.pom.PomElement;
import org.injava.build.cutebuild.ma... | apache-2.0 |
jschaub30/workload_monitor | workload_monitor.py | 6005 | #!/usr/bin/python
'''
Usage:
workload_monitor.py CONFIG_FILENAME [-h | --help]
'''
import sys
import os
import re
import socket
from docopt import docopt
import shutil
from datetime import datetime
def main(config_fn):
''''''
# TODO: Do I need to pass around config?
config = read_config(config_fn)
... | apache-2.0 |
MIUNPsychology/PUPIL | servlet-src/src/pupil/command/cmd_getwithpermission.java | 2257 | package pupil.command;
import pupil.*;
import pupil.sql.*;
import pupil.core.*;
import pupil.util.*;
import java.io.*;
import java.sql.*;
import java.util.*;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.xml.parsers.*;
import javax.xml.transform.*;
import javax.xml.transform.dom.*;
import javax.xm... | apache-2.0 |
juanco89/posts | src/main/java/com/juanco/posts/util/Logg.java | 282 |
package com.juanco.posts.util;
/**
* Registra eventos para debug y auditoria.
* @author Juan C. Orozco <juanco89@gmail.com>
*/
public class Logg {
public void registrar(String evento) {
// Implementacion provisional
System.out.println(evento);
}
}
| apache-2.0 |
UFC-GREat-PPGETI/MCCSimulator | MCCSim/src/br/ufc/mobile/network/Bandwidth4G.java | 5126 | /*******************************************************************************
*
* * * Copyright (C) 2015 Luis Sérgio da Silva Júnior
* * *
* * * 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 ... | apache-2.0 |
HabariMag/bloggenistvielfalt | system/classes/rewriterules.php | 10491 | <?php
/**
* @package Habari
*
*/
/**
* Class for storing and retrieving rewrite rules from the DB.
*/
class RewriteRules extends ArrayObject
{
/**
* Add pre-defined rules to an array of rules only if rules with their names don't already exist
*
* @param array $rules An array of RewriteRule objects
* @re... | apache-2.0 |
ctripcorp/x-pipe | redis/redis-console/src/main/java/com/ctrip/xpipe/redis/console/spring/ResourceConfig.java | 4552 | package com.ctrip.xpipe.redis.console.spring;
import com.ctrip.xpipe.concurrent.DefaultExecutorFactory;
import com.ctrip.xpipe.lifecycle.LifecycleHelper;
import com.ctrip.xpipe.pool.XpipeNettyClientKeyedObjectPool;
import com.ctrip.xpipe.redis.core.proxy.ProxyResourceManager;
import com.ctrip.xpipe.redis.core.proxy.en... | apache-2.0 |
Fokko/incubator-airflow | airflow/contrib/operators/jenkins_job_trigger_operator.py | 10466 | # -*- coding: utf-8 -*-
#
# 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
#... | apache-2.0 |
dcarbone/php-fhir-generated | src/DCarbone/PHPFHIRGenerated/DSTU1/PHPFHIRTests/FHIRElement/FHIRLinkTypeTest.php | 3114 | <?php
namespace DCarbone\PHPFHIRGenerated\DSTU1\PHPFHIRTests\FHIRElement;
/*!
* This class was generated with the PHPFHIR library (https://github.com/dcarbone/php-fhir) using
* class definitions from HL7 FHIR (https://www.hl7.org/fhir/)
*
* Class creation date: December 26th, 2019 15:43+0000
*
* PHPFHIR Copyri... | apache-2.0 |
thecableguy11492/pynet_practice | class1/JSONex7.py | 108 | from pprint import pprint as pp
import json
with open('jsonex6.json') as f:
new = json.load(f)
pp(new)
| apache-2.0 |
huangtao2003/androguard | tests/test_arsc.py | 2367 | import sys
import unittest
from androguard.core.bytecodes import apk, axml
TEST_APP_NAME = "TestsAndroguardApplication"
TEST_ICONS = {
120: "res/drawable-ldpi/icon.png",
160: "res/drawable-mdpi/icon.png",
240: "res/drawable-hdpi/icon.png",
65536: "res/drawable-hdpi/icon.png"
}
TEST_CONFIGS = {
"la... | apache-2.0 |
audit4j/audit4j-db | src/main/java/org/audit4j/handler/db/Utils.java | 2399 | /*
* Copyright (c) 2014-2015 Janith Bandara, This source is a part of
* Audit4j - An open source auditing framework.
* http://audit4j.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 a... | apache-2.0 |
muratiakos/EKonyvtarAudio | mobile/src/main/java/com/murati/oszk/audiobook/playback/QueueManager.java | 8973 | /*
* Copyright (C) 2014 The Android Open Source 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 app... | apache-2.0 |
roycetech/Anki-Tools | anki_card_maker/lib/highlighter/commandline_module.rb | 216 | require './lib/source_parser'
#
module CommandlineModule
def regexter(parser)
parser.regexter(
'cmd',
/```\w*\n(^\$ .*\n)+```/,
lambda(_t, _r) { CommandHighlighter.new.high }
)
end
end
| apache-2.0 |
dongsupark/seafile-fuse-client | fuse.py | 23661 | # Copyright (c) 2008 Giorgos Verigakis <verigak@gmail.com>
#
# Permission to use, copy, modify, and 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 A... | apache-2.0 |
EvertonTenorio/SistClinica | src/java/br/com/clinica/web/beangerenciado/ConstrutorUsuario.java | 920 | /*
* 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 br.com.clinica.web.beangerenciado;
import br.com.clinica.negocio.Usuario;
import javax.faces.bean.ManagedBean;
import javax.fa... | apache-2.0 |
jentfoo/aws-sdk-java | aws-java-sdk-ec2/src/main/java/com/amazonaws/services/ec2/model/transform/VpcPeeringConnectionStaxUnmarshaller.java | 3970 | /*
* Copyright 2014-2019 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 "licen... | apache-2.0 |
osisoft/Qi-Samples | ocs_samples/basic_samples/SDS/JavaScript/NodeJs/config.js | 892 | // config.js
//
//Copyright 2019 OSIsoft, 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 agre... | apache-2.0 |