repo_name stringlengths 4 116 | path stringlengths 4 379 | size stringlengths 1 7 | content stringlengths 3 1.05M | license stringclasses 15
values |
|---|---|---|---|---|
citrix/terraform-provider-netscaler | vendor/github.com/hashicorp/terraform/internal/initwd/module_install.go | 22560 | package initwd
import (
"fmt"
"log"
"os"
"path/filepath"
"strings"
version "github.com/hashicorp/go-version"
"github.com/hashicorp/terraform-config-inspect/tfconfig"
"github.com/hashicorp/terraform/addrs"
"github.com/hashicorp/terraform/internal/earlyconfig"
"github.com/hashicorp/terraform/internal/modsdir"... | apache-2.0 |
libra/libra | language/diem-tools/writeset-transaction-generator/src/admin_script_builder.rs | 2656 | // Copyright (c) The Diem Core Contributors
// SPDX-License-Identifier: Apache-2.0
use anyhow::Result;
use diem_framework::compile_script;
use diem_types::{
account_address::AccountAddress,
account_config::diem_root_address,
transaction::{Script, WriteSetPayload},
};
use handlebars::Handlebars;
use serde::... | apache-2.0 |
timaar/Tiimspot | src/main/java/com/timaar/tiimspot/config/WebConfigurer.java | 6238 | package com.timaar.tiimspot.config;
import com.codahale.metrics.MetricRegistry;
import com.codahale.metrics.servlet.InstrumentedFilter;
import com.codahale.metrics.servlets.MetricsServlet;
import com.timaar.tiimspot.web.filter.CachingHttpHeadersFilter;
import com.timaar.tiimspot.web.filter.StaticResourcesProductionFil... | apache-2.0 |
google/jax | jax/scipy/linalg.py | 1140 | # Copyright 2020 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 in writing, ... | apache-2.0 |
vam-google/google-cloud-java | google-api-grpc/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListMetricDescriptorsRequest.java | 33401 | // Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/monitoring/v3/metric_service.proto
package com.google.monitoring.v3;
/**
*
*
* <pre>
* The `ListMetricDescriptors` request.
* </pre>
*
* Protobuf type {@code google.monitoring.v3.ListMetricDescriptorsRequest}
*/
public final class L... | apache-2.0 |
InspirarDigital/Android-aulas | Aula3/app/src/main/java/com/atilabraga/aula3/ui/MainActivity.java | 4467 | package com.atilabraga.aula3.ui;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.AdapterView;
import android.widget.ArrayAdapter;
import android.widget.ImageView;
import android.widget.Spinner;
import android.widget.TextView;
import com.atilab... | apache-2.0 |
Banno/sbt-plantuml-plugin | src/main/java/net/sourceforge/plantuml/classdiagram/ClassDiagramFactory.java | 5902 | /* ========================================================================
* PlantUML : a free UML diagram generator
* ========================================================================
*
* (C) Copyright 2009-2017, Arnaud Roques
*
* Project Info: http://plantuml.com
*
* This file is part of PlantUML.
... | apache-2.0 |
ingorichtsmeier/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/ProcessInstanceQueryImpl.java | 15531 | /*
* Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH
* under one or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information regarding copyright
* ownership. Camunda licenses this file to you under the Apache License,
* Version 2.0; y... | apache-2.0 |
liam-kelly/CloudBurst | includes/views/settings.php | 245 | <div id="set">
<div id="sidebar">
<?php
//Include the settings menu
require_once(ABSPATH.'includes/views/settings_menus/menu.php')
?>
</div>
<p>This is where settings will go.</p>
</div> | apache-2.0 |
bitgirder/bitgirder-main | mingle-service/go/lib/mingle/service/errorf.go | 262 | package service
import (
"fmt"
"errors"
)
func libError( msg string ) error {
return errors.New( "mingle/service: " + msg )
}
func libErrorf( tmpl string, argv ...interface{} ) error {
return fmt.Errorf( "mingle/service: " + tmpl, argv... )
}
| apache-2.0 |
mikeng13/slcCampNYC_teamMnM_mobile | Models/Calendar.cs | 230 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace HelloSLC.Models
{
public class Calendar
{
public string Title { get; set; }
}
}
| apache-2.0 |
cwx521/Husky | src/Husky.Principal.Users/Data/Entities/UserGroup.cs | 231 | using System.ComponentModel.DataAnnotations;
namespace Husky.Principal.Users.Data
{
public class UserGroup
{
public int Id { get; set; }
[StringLength(50), Required]
public string GroupName { get; set; } = null!;
}
}
| apache-2.0 |
datathings/greycat | plugins/ml/src/test/java/greycatMLTest/GPSIndex.java | 4837 | /**
* Copyright 2017-2019 The GreyCat Authors. All rights reserved.
* <p>
* 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
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
* Un... | apache-2.0 |
NationalSecurityAgency/ghidra | Ghidra/Features/Base/src/test.slow/java/ghidra/app/plugin/core/symboltree/SymbolTreePlugin1Test.java | 31370 | /* ###
* 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... | apache-2.0 |
zhanmer/pipeline-mongo | utils.py | 1556 | import urllib
import http.cookiejar as cookielib
import io
import gzip
import base64
headers = {
"Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8",
"Accept-Language": "en-us,en;q=0.5",
"Accept-Charset": "utf-8",
"Accept-Encoding": "gzip, deflate",
"Connection": "keep-alive",
}
class htt... | apache-2.0 |
StrongMonkey/agent | service/hostapi/exec/exec.go | 3252 | package exec
import (
"encoding/base64"
"io"
"net/url"
log "github.com/Sirupsen/logrus"
"github.com/rancher/websocket-proxy/backend"
"github.com/rancher/websocket-proxy/common"
"github.com/docker/distribution/context"
"github.com/docker/docker/api/types"
"github.com/rancher/agent/service/hostapi/auth"
"gi... | apache-2.0 |
shuodata/deeplearning4j | deeplearning4j-nn/src/main/java/org/deeplearning4j/berkeley/SloppyMath.java | 35547 | /*-
*
* * Copyright 2015 Skymind,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
* *
* * ... | apache-2.0 |
moparisthebest/beehive | beehive-netui-core/src/main/java/org/apache/beehive/netui/pageflow/PageFlowException.java | 3137 | /*
* 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 |
dtk/dtk-server | application/model/node/delete.rb | 5353 | #
# Copyright (C) 2010-2016 dtk contributors
#
# This file is part of the dtk 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
#
# Unles... | apache-2.0 |
OLR-xray/XRay-NEW | XRay/xr_3da/xrGame/space_restriction_composition.cpp | 6128 | ////////////////////////////////////////////////////////////////////////////
// Module : space_restriction_composition.cpp
// Created : 17.08.2004
// Modified : 27.08.2004
// Author : Dmitriy Iassenev
// Description : Space restriction composition
//////////////////////////////////////////////////////////////////... | apache-2.0 |
Windows-Applications-Captain-Cold/Mobile-Food-Ordering | EatFast-Server/app/dbRequester.js | 1044 | var User = require('./models/User.js');
module.exports = function () {
function getUserById(id) {
return new Promise(function (resolve, reject) {
User.findOne({_id: id}, function (error, user) {
if (error) {
reject(error);
}
i... | apache-2.0 |
xArthasx/dotfiles | .config/coc/extensions/node_modules/coc-scssmodules/node_modules/coc.nvim/lib/language-client/workspaceFolders.js | 5471 | /* --------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
* ----------------------------------------------------------------... | apache-2.0 |
petarfitzpatrick/Project2 | client/login/client.js | 3369 | const handleLogin = (e) => {
e.preventDefault();
$("#postMessage").animate({width:'hide'}, 350);
if($("#user").val() == '' || $("#pass").val() == '') {
handleError("RAWR! Username or password is empty");
return false;
}
console.log($("input[name=_csrf]").val());
sendAjax('POST', $("#loginForm").... | apache-2.0 |
TSavo/GoEvolve | population.go | 3814 | package goevolve
import (
"bytes"
"crypto/sha256"
"encoding/gob"
"fmt"
"github.com/tsavo/GoVirtual"
"io"
"log"
"os"
"time"
)
type Population struct {
Id, RegisterLength int
InstructionSet *govirtual.InstructionSet
Breeder *Breeder
Evaluator *Evaluator
Selector ... | apache-2.0 |
dselsam/lean | src/library/scoped_ext.cpp | 6957 | /*
Copyright (c) 2014 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura
*/
#include <vector>
#include <memory>
#include <string>
#include "util/sstream.h"
#include "library/scoped_ext.h"
namespace lean {
typedef std::tuple<push_sc... | apache-2.0 |
dyu/bookmarks | bookmarks-cli/src/main/java/bookmarks/cli/Main.java | 1908 | // TODO copyright header
package bookmarks.cli;
import io.airlift.command.Cli.CliBuilder;
import io.airlift.command.ParseException;
import com.dyuproject.protostuffdb.EntityMetadataRegistry;
import com.dyuproject.protostuffdb.TagMetadata;
import com.dyuproject.protostuffdb.CliUtil;
import com.dyuproject.protostuffdb... | apache-2.0 |
kenwenzel/leveldb | leveldb/src/main/java/org/iq80/leveldb/util/fpc/FpcTest.java | 1374 | /*
* 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 |
T-Systems-MMS/perfsig-jenkins | dynatrace/src/main/java/de/tsystems/mms/apm/performancesignature/dynatracesaas/rest/model/TechnologyInfo.java | 2757 | /*
* Copyright (c) 2014-2018 T-Systems Multimedia Solutions GmbH
*
* 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 |
leiyaoshun/jeesite | src/main/java/com/thinkgem/jeesite/modules/act/service/creator/RuntimeActivityDefinitionEntityIntepreter.java | 1784 | package com.thinkgem.jeesite.modules.act.service.creator;
import java.util.List;
/**
* RuntimeActivityDefinitionEntity的解释类(代理类)
* 主要用以解释properties字段的值,如为get("name")提供getName()方法
*
* @author bluejoe2008@gmail.com
*
*/
public class RuntimeActivityDefinitionEntityIntepreter
{
RuntimeActivityDefinitionEntity _enti... | apache-2.0 |
RAHULYERRAMSETTI1/SPACEACTIVITY | src/andy/nasa/main/widget/ContactItemInterface.java | 412 | package andy.nasa.main.widget;
public interface ContactItemInterface {
public String getItemForIndex(); // return the item that we want to categorize under this index. It can be first_name or last_name or display_name
// e.g. "Albert Tan" , "Amy Green" , "Alex Ferguson" will fall under index A
public ... | apache-2.0 |
Mercateo/rest-schemagen | src/main/java/com/mercateo/common/rest/schemagen/plugin/common/TargetSchemaEnablerForLinkFactory.java | 538 | package com.mercateo.common.rest.schemagen.plugin.common;
import com.mercateo.common.rest.schemagen.plugin.TargetSchemaEnablerForLink;
import org.glassfish.hk2.api.Factory;
public class TargetSchemaEnablerForLinkFactory implements Factory<TargetSchemaEnablerForLink> {
@Override
public TargetSchemaEnablerForL... | apache-2.0 |
satabin/sablecc | src/org/sablecc/sablecc/codegeneration/scala/MDefaultPackage.java | 784 | /* This file was generated by SableCC's ObjectMacro. */
package org.sablecc.sablecc.codegeneration.scala;
public class MDefaultPackage {
private final String pLanguageName;
private final MDefaultPackage mDefaultPackage = this;
public MDefaultPackage(String pLanguageName) {
if(pLanguageName == null) throw ... | apache-2.0 |
rgooch/Dominator | fleetmanager/hypervisors/update.go | 23520 | package hypervisors
import (
"flag"
"fmt"
"io"
"net"
"strings"
"time"
"github.com/Cloud-Foundations/Dominator/fleetmanager/topology"
"github.com/Cloud-Foundations/Dominator/lib/constants"
"github.com/Cloud-Foundations/Dominator/lib/errors"
"github.com/Cloud-Foundations/Dominator/lib/log/prefixlogger"
"gith... | apache-2.0 |
rockmkd/datacollector | docs/generated/oxygen-webhelp/app/nav-links/json/concept_xmx_1wg_gz-d46e106842.js | 256 | define({"topics" : [{"title":"Event Records","href":"datacollector\/UserGuide\/Executors\/Spark.html#concept_qk2_3wg_gz","attributes": {"data-id":"concept_qk2_3wg_gz",},"menu": {"hasChildren":false,},"tocID":"concept_qk2_3wg_gz-d46e106935","topics":[]}]}); | apache-2.0 |
uw-madison-show/shots | deploy/lib/functions_utility.php | 4977 | <?php
/**
* Group of functions and shortcuts I like to use.
*
* Stolen, adapted, and simplified from many different PHP frameworks.
* flourishlib: http://flourishlib.com/
*
*/
/**
* Converts all special characters to entites, using UTF-8.
*
* Stolen from: https://github.com/flourishlib/flourish-classes/blob/m... | apache-2.0 |
albahrani/aquacontrol-server | src/main/java/com/github/albahrani/aquacontrol/server/json/JSONConfigurationChannel.java | 1179 | /**
* Copyright © 2017 albahrani (https://github.com/albahrani)
*
* 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... | apache-2.0 |
radiasoft/radtrack | radtrack/ui/globalgu.py | 8241 | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'radtrack/ui/globalgu.ui'
#
# Created: Fri Feb 19 03:27:59 2016
# by: PyQt4 UI code generator 4.11.3
#
# WARNING! All changes made in this file will be lost!
from PyQt4 import QtCore, QtGui
try:
_fromUtf8 = QtCore.QString.fromUtf8
... | apache-2.0 |
paulmey/azure-sdk-for-go | arm/examples/check.go | 2030 | package examples
import (
"fmt"
"log"
"net/http"
"os"
"github.com/Azure/azure-sdk-for-go/Godeps/_workspace/src/github.com/Azure/go-autorest/autorest"
"github.com/Azure/azure-sdk-for-go/Godeps/_workspace/src/github.com/Azure/go-autorest/autorest/azure"
"github.com/Azure/azure-sdk-for-go/Godeps/_workspace/src/gi... | apache-2.0 |
imasahiro/armeria | core/src/main/java/com/linecorp/armeria/server/annotation/ConsumeTypes.java | 1119 | /*
* Copyright 2017 LINE Corporation
*
* LINE Corporation 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:
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless r... | apache-2.0 |
mknapik/u2i-jenkins | recipes/default.rb | 339 | #
# Cookbook Name:: u2i-jenkins
# Recipe:: default
#
# Copyright (C) 2014 Michał Knapik
#
# All rights reserved - Do Not Redistribute
#
include_recipe 'u2i-jenkins::_rvm'
include_recipe 'u2i-jenkins::_is_secured'
include_recipe 'u2i-jenkins::jenkins'
include_recipe 'u2i-jenkins::services'
include_recipe 'u2i-jenkins::... | apache-2.0 |
andresmgot/serverless-kubeless | examples/multi-python/handler.py | 133 | def foo(event, context):
print event['data']
return 'foo'
def bar(event, context):
print event['data']
return'bar'
| apache-2.0 |
calonso-conabio/intranet | protected/humhub/modules/post/messages/lt/views_edit.php | 82 | <?php
return array (
'Edit your post...' => 'Redaguokite savo skelbimą...',
);
| apache-2.0 |
GoogleChromeLabs/tooling.report | client/test/index.ts | 633 | /**
* Copyright 2020 Google Inc. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
* Unless required by applicable law ... | apache-2.0 |
NexusSW/lxd-common | lib/nexussw/lxd/transport/rest.rb | 211 | require "nexussw/lxd/transport"
require "nexussw/lxd/transport/mixins/rest"
module NexusSW
module LXD
class Transport
class Rest < Transport
include Mixins::Rest
end
end
end
end
| apache-2.0 |
xiaoyongaa/ALL | 网络编程第四周/先进先出队列的使用.py | 780 | import queue
#队列,先进先出队列
#put放数据,是否堵塞,阻塞的超时
#
# q=queue.Queue(2) #队列最大长度2
# print(q.empty()) #判断队列是否为空 空就是true
# q.put(11) #放进q队列里面11
# q.put(22)
# print(q.empty())
# print(q.maxsize) #队列的最大长度
# #q.put(33,block=False,timeout=2)
# #print(q.qsize())
# print(q.get()) #取出队列里面数据
# print(q.get())
# #print(q.get())
#join,t... | apache-2.0 |
antlibs/ant-contrib | src/test/resources/design/src/mod/catchdepend/ClassDependsOnCatch.java | 959 | /*
* Copyright (c) 2001-2004 Ant-Contrib project. 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 ... | apache-2.0 |
afinka77/ignite | modules/core/src/test/java/org/apache/ignite/internal/processors/cache/expiry/IgniteCacheExpiryPolicyAbstractTest.java | 37489 | /*
* 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 |
shopizer-ecommerce/shopizer | sm-core/src/main/java/com/salesmanager/core/business/repositories/user/UserRepository.java | 2111 | package com.salesmanager.core.business.repositories.user;
import java.util.List;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import com.salesmanager.core.model.user.User;
public interface UserRepository extends JpaRepository<User, Long>, UserRe... | apache-2.0 |
josdem/client-chat | chat-xmpp/src/main/java/com/all/chat/xmpp/FacebookChatService.java | 13852 | /**
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, rep... | apache-2.0 |
googleapis/google-cloud-go | internal/generated/snippets/cloudtasks/apiv2beta2/Client/PauseQueue/main.go | 1412 | // 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 ... | apache-2.0 |
iris-dni/iris-frontend | src/form/trustPublishConfirmationValidator.js | 179 | import FIELDS from 'components/TrustPublishConfirmationForm/fields';
import fieldValidator from 'form/fieldValidator';
export default (values) => fieldValidator(FIELDS, values);
| apache-2.0 |
dbeaver/dbeaver | plugins/org.jkiss.dbeaver.ext.postgresql.ui/src/org/jkiss/dbeaver/ext/postgresql/tools/fdw/PostgreFDWConfigWizard.java | 15043 | /*
* DBeaver - Universal Database Manager
* Copyright (C) 2010-2022 DBeaver Corp and others
*
* 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/LICE... | apache-2.0 |
ansel86castro/Igneel | Samples/ForgeEditor/Testing.cs | 1323 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Igneel;
using Igneel.Effects;
using Igneel.Graphics;
using Igneel.Rendering;
using Igneel.SceneComponents;
using Igneel.Techniques;
namespace ForgeEditor
{
public class IdTechnique : DefaultTe... | apache-2.0 |
youkai-app/ProgressView | library/src/main/java/app/youkai/progressview/LongTouchHandler.java | 2516 | package app.youkai.progressview;
import android.view.MotionEvent;
import android.view.View;
import android.view.ViewConfiguration;
import java.util.Timer;
import java.util.TimerTask;
class LongTouchHandler implements View.OnTouchListener {
private IncrementListener incrementListener;
private Timer timer;
... | apache-2.0 |
morj/xodus | environment/src/main/java/jetbrains/exodus/tree/btree/LeafNodeDupMutable.java | 4848 | /**
* Copyright 2010 - 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 a... | apache-2.0 |
leleuj/cas | support/cas-server-support-oauth-core-api/src/main/java/org/apereo/cas/ticket/OAuth20TokenSigningAndEncryptionService.java | 1634 | package org.apereo.cas.ticket;
import org.apereo.cas.support.oauth.services.OAuthRegisteredService;
import org.jose4j.jws.AlgorithmIdentifiers;
import org.jose4j.jwt.JwtClaims;
import java.util.Optional;
/**
* This is {@link OAuth20TokenSigningAndEncryptionService}.
*
* @author Misagh Moayyed
* @since 6.0.0
*/... | apache-2.0 |
JonDouglas/xamarin-android-tutorials | Notifications/Lollipop/Lollipop/Resources/Resource.Designer.cs | 3422 | #pragma warning disable 1591
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.34014
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerate... | apache-2.0 |
KRMAssociatesInc/eHMP | ehmp/product/production/hmp-main/src/main/java/gov/va/cpe/vpr/sync/SyncService.java | 31811 | package gov.va.cpe.vpr.sync;
import com.google.gson.Gson;
import com.google.gson.JsonObject;
import static gov.va.cpe.vpr.sync.MessageDestinations.COMMAND_QUEUE;
import static gov.va.cpe.vpr.sync.MessageDestinations.IMPORT_QUEUE;
import static gov.va.cpe.vpr.sync.MessageDestinations.PATIENT_QUEUE;
import stat... | apache-2.0 |
gatling/gatling | src/docs/content/reference/current/mqtt/code/MqttSampleScala.scala | 3801 | import io.gatling.core.Predef._
import scala.concurrent.duration._
//#imprts
import io.gatling.mqtt.Predef._
//#imprts
class MqttSampleScala {
//#protocol
val mqttProtocol = mqtt
// enable protocol version 3.1 (default: false)
.mqttVersion_3_1
// enable protocol version 3.1.1 (default: true)
.mqttVersion_3_1_1... | apache-2.0 |
primecloud-controller-org/pcc-java-sdk | src/main/java/jp/primecloud/auto/sdk/client/loadbalancer/DescribeLoadBalancer.java | 1593 | /*
* Copyright 2016 SCSK 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 agr... | apache-2.0 |
wakandan/wire | wire-runtime/src/test/java/com/squareup/wire/protos/edgecases/NoFields.java | 814 | // Code generated by Wire protocol buffer compiler, do not edit.
// Source file: ../wire-runtime/src/test/proto/edge_cases.proto
package com.squareup.wire.protos.edgecases;
import com.squareup.wire.Message;
public final class NoFields extends Message {
private static final long serialVersionUID = 0L;
public NoFi... | apache-2.0 |
levymoreira/griffon | subprojects/griffon-pivot/src/test/java/griffon/pivot/support/adapters/TextInputSelectionAdapterTest.java | 1558 | /*
* Copyright 2008-2015 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 app... | apache-2.0 |
graniet/operative-framework | modules/pictures/exif.go | 4729 | package pictures
import (
"encoding/json"
"os"
"github.com/graniet/go-pretty/table"
"github.com/graniet/operative-framework/session"
"github.com/rwcarlsen/goexif/exif"
"github.com/rwcarlsen/goexif/mknote"
)
type PictureExifModule struct {
session.SessionModule
sess *session.Session `json:"-"`
Stream *sess... | apache-2.0 |
jexp/idea2 | platform/lang-impl/src/com/intellij/psi/impl/cache/impl/VfsIndexer.java | 3665 | /*
* 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 |
jk1/intellij-community | python/src/com/jetbrains/python/console/PydevConsoleRunnerImpl.java | 40617 | // Copyright 2000-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.jetbrains.python.console;
import com.google.common.collect.Lists;
import com.intellij.execution.ExecutionException;
import com.intellij.execution.ExecutionHelper;
imp... | apache-2.0 |
chenjun0210/HanLP | src/main/java/com/hankcs/hanlp/mining/word2vec/TextFileCorpus.java | 6296 | package com.hankcs.hanlp.mining.word2vec;
import java.io.*;
import java.util.TreeMap;
public class TextFileCorpus extends Corpus
{
private static final int VOCAB_MAX_SIZE = 30000000;
private int minReduce = 1;
private BufferedReader raf = null;
private DataOutputStream cache;
public TextFileCor... | apache-2.0 |
is-apps/WebproxyPortlet | src/main/java/org/jasig/portlet/proxy/search/GsaSearchStrategy.java | 6764 | /**
* 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 ... | apache-2.0 |
tlehoux/camel | camel-core/src/test/java/org/apache/camel/processor/interceptor/TracerTest.java | 3766 | /**
* 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 |
Glasgow2015/team-1 | app/src/main/java/jp/com/beetracker/MainActivity.java | 5239 | package jp.com.beetracker;
import android.content.Entity;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.util.Log;
import android.view.Menu;
import android.view.MenuItem;
import com.google.gson.Gson;
import org.apache.http.HttpResponse;
import org.apache.http.client.HttpCli... | apache-2.0 |
shiver-me-timbers/smt-waiting-parent | smt-waiting-test/smt-waiting-integration-test/src/test/java/shiver/me/timbers/waiting/ITManualWaiter.java | 3013 | package shiver.me.timbers.waiting;
import shiver.me.timbers.waiting.execution.ManualWaitingExclude;
import shiver.me.timbers.waiting.execution.ManualWaitingExcludeWithInclude;
import shiver.me.timbers.waiting.execution.ManualWaitingFor;
import shiver.me.timbers.waiting.execution.ManualWaitingForNotNull;
import shiver.... | apache-2.0 |
moral369/DNM_SNS | Favorite/src/com/tarks/favorite/webview.java | 5776 | package com.tarks.favorite;
import android.app.AlertDialog;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.view.KeyEvent;
import android.view.View;
import android.view.inputmethod.InputMethodManager;
import android.webkit.CookieSyncManager;
import android.webkit.ValueCa... | apache-2.0 |
VahidN/MvcPlugin | MvcPluginMasterApp/Properties/AssemblyInfo.cs | 1372 | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("Mv... | apache-2.0 |
pietrog/astre | public/app.js | 1428 | (function(){
'use strict';
// Declare app level module which depends on views, and components
angular.module('astre', ['ui.router',
'LocalStorageModule',
'pietro.authentication',
'admin']);
angular.module('astre')
.config(config);
//function authenticationInterce... | apache-2.0 |
zpao/buck | test/com/facebook/buck/features/apple/projectV2/BuildConfigurationTest.java | 10856 | /*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* 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 applic... | apache-2.0 |
prebid/prebid-server | openrtb_ext/imp_jixie.go | 218 | package openrtb_ext
type ExtImpJixie struct {
Unit string `json:"unit"`
AccountId string `json:"accountid,omitempty"`
JxProp1 string `json:"jxprop1,omitempty"`
JxProp2 string `json:"jxprop2,omitempty"`
}
| apache-2.0 |
markcowl/azure-sdk-for-net | sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/BigDataPoolResourceInfo.cs | 7954 | // <auto-generated>
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for
// license information.
//
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is
// re... | apache-2.0 |
xiekeyang/containerd | services/images/helpers.go | 2169 | package images
import (
imagesapi "github.com/containerd/containerd/api/services/images"
"github.com/containerd/containerd/api/types/descriptor"
"github.com/containerd/containerd/images"
"github.com/containerd/containerd/metadata"
"github.com/containerd/containerd/namespaces"
ocispec "github.com/opencontainers/i... | apache-2.0 |
blackmad/snippets | logic/user_logic.py | 1038 | from app import db
from models.group import Group
from models.user import User
from models.snippet import Snippet
from models.link_tables import *
from datetime import date, datetime, timedelta
class UserLogic():
@staticmethod
def find_user_by_email(email):
return db.session.query(User).filter_by(id=email).on... | apache-2.0 |
vatbub/hangman-solver | src/main/java/stats/HangmanStats.java | 9907 | package stats;
/*-
* #%L
* Hangman Solver
* %%
* Copyright (C) 2016 Frederik Kammel
* %%
* 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/l... | apache-2.0 |
Whiley/WhileyTheoremProver | src/main/java/wyal/WyalMain.java | 1904 | // Copyright 2011 The Whiley Project Developers
//
// 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... | apache-2.0 |
aspectran/aspectran | rss-lettuce/src/main/java/com/aspectran/core/component/session/redis/lettuce/cluster/ClusterLettuceSessionStore.java | 3433 | /*
* Copyright (c) 2008-2021 The Aspectran 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 applicabl... | apache-2.0 |
twitter/twitter-cldr-rb | spec/shared/languages_spec.rb | 4216 | # encoding: UTF-8
# Copyright 2012 Twitter, Inc
# http://www.apache.org/licenses/LICENSE-2.0
require 'spec_helper'
describe TwitterCldr::Shared::Languages do
describe "#translate_language" do
it "should translate a language from one locale to another" do
expect(described_class.translate_language("Russian... | apache-2.0 |
paulstapleton/flowable-engine | modules/flowable-ui/flowable-ui-app/src/test/java/org/flowable/ui/application/FlowableUiIdmApplicationDefaultAuthenticationTest.java | 4553 | /* 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... | apache-2.0 |
ikhemissi/Prebid.js | src/ga.js | 6469 | /**
* ga.js - analytics adapter for google analytics
*/
var events = require('./events');
var utils = require('./utils');
var CONSTANTS = require('./constants.json');
var BID_REQUESTED = CONSTANTS.EVENTS.BID_REQUESTED;
var BID_TIMEOUT = CONSTANTS.EVENTS.BID_TIMEOUT;
var BID_RESPONSE = CONSTANTS.EVENTS.BID_RESPONSE... | apache-2.0 |
AllenHom/coolweather | app/src/main/java/com/starnet/root/coolweather/model/StringConverterFactory.java | 730 | package com.starnet.root.coolweather.model;
import java.lang.annotation.Annotation;
import java.lang.reflect.Type;
import okhttp3.ResponseBody;
import retrofit2.Converter;
import retrofit2.Retrofit;
/**
* Created by root on 16-8-18.
*/
public class StringConverterFactory extends Converter.Factory {
public stat... | apache-2.0 |
KRMAssociatesInc/eHMP | lib/mvi/org/hl7/v3/IVLPQ.java | 4096 |
package org.hl7.v3;
import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.JAXBElement;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElementRef;
import javax.xml.bind.annotation.XmlElementRefs;
import ... | apache-2.0 |
yagitoshiro/Study4 | Resources/ui/common/FirstView_3.js | 1499 | //FirstView Component Constructor
function FirstView() {
//create object instance, a parasitic subclass of Observable
var self = Ti.UI.createView();
//label using localization-ready strings from <app dir>/i18n/en/strings.xml
var button = Ti.UI.createButton({
color:'#000000',
title:String.format(L('welcome'),'... | apache-2.0 |
Clinical3PO/Platform | dev/c3po-angularjs-visualization/web/client/components/widgets/widget-server-directive.js | 3832 | 'use strict';
/**
* @ngdoc directive
* @name serverWidget
* @restrict A
* @scope
*
* @description
*
* Adds chartjs line ticker data to widget
*
* @usage
* ```html
* <widget chartjs-ticker-widget>
* ```
*/
angular.module('c-3po')
.directive('serverWidget', function ($timeout, $interval) {
return {
require: ... | apache-2.0 |
glycerine/vj | src/veracity/src/js_tests/longtests__st_portability_06__W9838.js | 3584 | /*
Copyright 2010-2013 SourceGear, 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, softwar... | apache-2.0 |
yurloc/assertj-core | src/test/java/org/assertj/core/data/MapEntry_toString_Test.java | 1203 | /*
* Created on Dec 21, 2010
*
* 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 |
bochackathon-fintech/Heroes-Lab | app/Conversations/ForeignExchangeRate.php | 1974 | <?php
/**
* Created by PhpStorm.
* User: DarkP
* Date: 6/10/2017
* Time: 12:25 PM
*/
namespace app\Conversations;
class ForeignExchangeRate
{
protected static $unusedRates = [
'TRY',
'THB',
'CAD',
'CZK',
'DKK',
'KRW',
'SGD',
'ZAR',
'N... | apache-2.0 |
prjm/paspaspas | PasPasPas.Typings/src/Common/Scope.cs | 3439 | #nullable disable
using System;
using System.Collections.Generic;
using PasPasPas.Globals.Types;
using PasPasPas.Infrastructure.Utils;
namespace PasPasPas.Typings.Common {
/// <summary>
/// scope for identifier visibility
/// </summary>
public class Scope {
private readonly ... | apache-2.0 |
plus1s/shadowsocks-py-mu | shadowsocks/tcprelay.py | 33893 | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Copyright 2015 clowwindy
# Copyright 2016 Howard Liu
#
# 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/LICEN... | apache-2.0 |
dahlstrom-g/intellij-community | plugins/textmate/src/org/jetbrains/plugins/textmate/editor/TextMateBackspaceHandler.java | 1942 | package org.jetbrains.plugins.textmate.editor;
import com.intellij.codeInsight.editorActions.BackspaceHandlerDelegate;
import com.intellij.openapi.editor.Document;
import com.intellij.openapi.editor.Editor;
import com.intellij.openapi.editor.ex.EditorEx;
import com.intellij.openapi.editor.highlighter.EditorHighlighter... | apache-2.0 |
NationalSecurityAgency/ghidra | Ghidra/Features/GhidraServer/src/main/java/ghidra/server/UserManager.java | 22938 | /* ###
* 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... | apache-2.0 |
kcudnik/bridgegooglemaps | Animation.cs | 634 | namespace Bridge.Google.Maps
{
/// <summary>
/// Animations that can be played on a marker. Use the setAnimation method
/// on Marker or the animation option to play an animation.
/// </summary>
[External]
[Enum(Emit.Name)]
[Namespace("google.maps")]
public enum Animation
{
... | apache-2.0 |
niqo01/monkey | src/internalDebug/java/com/monkeysarmy/fit/ui/debug/AnimationSpeedAdapter.java | 1571 | package com.monkeysarmy.fit.ui.debug;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import com.monkeysarmy.fit.ui.misc.BindableAdapter;
import static butterknife.ButterKnife.findById;
class AnimationSpeedAd... | apache-2.0 |
victorluissantos/OO-PHP | revisao/config/database.class.php | 1048 | <?php
/**
* @see:Classe DataBase, responsável por gerenciar conexão(s) com N host ou base
*/
class Database{
const USER = 'root';
const PASSWORD = 'elaborata';
/*Atributo de controle a instancia unica da classe*/
private static $instancia;
public function __construct()
{
//$this->conecta($usuario);
}
/**
... | apache-2.0 |
odesk/php-odesk | src/oDesk/API/Routers/Activities/Team.php | 4600 | <?php
/**
* oDesk auth library for using with public API by OAuth
* Get oTask/Activity records within a team
*
* @final
* @package oDeskAPI
* @since 05/21/2014
* @copyright Copyright 2014(c) oDesk.com
* @author Maksym Novozhylov <mnovozhilov@odesk.com>
* @license oDesk's API Terms of Use {... | apache-2.0 |
google/tink | cc/prf/hmac_prf_key_manager.cc | 3759 | // Copyright 2020 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 w... | apache-2.0 |