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
// 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...
gsantovena/mesos
src/slave/flags.hpp
C++
apache-2.0
7,795
# Copyright 2015-2018 Capital One Services, 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 ...
taohungyang/cloud-custodian
tools/c7n_azure/tests/test_networksecuritygroup.py
Python
apache-2.0
6,524
/*! * Copyright 2016 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 appli...
tcrognon/google-cloud-node
scripts/helpers.js
JavaScript
apache-2.0
10,052
/* * 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 "l...
dump247/aws-sdk-java
aws-java-sdk-directconnect/src/main/java/com/amazonaws/services/directconnect/model/transform/DescribeConnectionsOnInterconnectResultJsonUnmarshaller.java
Java
apache-2.0
3,202
package com.laimiux.rxactivity; import android.app.Activity; public abstract class LifecycleEvent { private final Kind kind; private final Activity activity; public LifecycleEvent(Kind kind, Activity activity) { this.kind = kind; this.activity = activity; } public Activity activity() { return ...
Laimiux/RxActivity
rxactivity/src/main/java/com/laimiux/rxactivity/LifecycleEvent.java
Java
apache-2.0
495
<?php /* +-------------------------------------------------------------------------+ | Engine of the Enigma Plugin | | | | This program is free software; you can redistribute it and/or modify | | ...
kfmaster/cicdlab
modules/docker-roundcubemail/plugins/enigma/lib/enigma_engine.php
PHP
apache-2.0
26,398
# Copyright 2021 The Cirq 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in ...
quantumlib/Cirq
cirq-rigetti/cirq_rigetti/sampler.py
Python
apache-2.0
5,548
package com.afeng.xf.utils.AFengUtils; import android.annotation.TargetApi; import android.app.Activity; import android.content.Context; import android.graphics.Color; import android.os.Build; import android.support.annotation.ColorInt; import android.support.design.widget.CoordinatorLayout; import android.support.v4....
GitHubAFeng/AFengAndroid
app/src/main/java/com/afeng/xf/utils/AFengUtils/StatusBarUtil.java
Java
apache-2.0
28,369
package com.fiberlink.ninjaparser.output; public class StdOut implements Output{ public void print() { } }
anandaverma/NinjaParser
src/com/fiberlink/ninjaparser/output/StdOut.java
Java
apache-2.0
123
/* * Copyright (C) 2012-2015 DataStax 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 app...
adejanovski/cassandra-jdbc-wrapper
src/main/java/org/apache/cassandra2/cql/jdbc/CassandraDriver.java
Java
apache-2.0
844
<?php namespace DCarbone\PHPFHIRGenerated\DSTU1\PHPFHIRTests\FHIRElement\FHIRBackboneElement\FHIRFamilyHistory; /*! * 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,...
dcarbone/php-fhir-generated
src/DCarbone/PHPFHIRGenerated/DSTU1/PHPFHIRTests/FHIRElement/FHIRBackboneElement/FHIRFamilyHistory/FHIRFamilyHistoryConditionTest.php
PHP
apache-2.0
3,336
"""Reverse complement reads with Seqtk.""" import os from plumbum import TEE from resolwe.process import ( Cmd, DataField, FileField, FileHtmlField, ListField, Process, StringField, ) class ReverseComplementSingle(Process): """Reverse complement single-end FASTQ reads file using Seqt...
genialis/resolwe-bio
resolwe_bio/processes/support_processors/seqtk_reverse_complement.py
Python
apache-2.0
8,764
"""TcEx Framework Service Common module""" # standard library import json import threading import time import traceback import uuid from datetime import datetime from typing import Callable, Optional, Union from .mqtt_message_broker import MqttMessageBroker class CommonService: """TcEx Framework Service Common m...
kstilwell/tcex
tcex/services/common_service.py
Python
apache-2.0
14,584
package org.glamey.scaffold.component.store.qiniu; import com.google.common.io.Files; import org.glamey.scaffold.BaseSpringJunit; import org.glamey.scaffold.component.store.StoreTemplate; import org.junit.Test; import javax.annotation.Resource; import java.io.File; /** * @author zhouyang.zhou. */ public class QiNi...
glameyzhou/scaffold
scaffold-component/src/test/java/org/glamey/scaffold/component/store/qiniu/QiNiuStoreTemplateTest.java
Java
apache-2.0
846
package whelk.gui; import whelk.ScriptGenerator; import javax.swing.*; import java.awt.*; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.io.BufferedReader; import java.io.File; import java.io.FileReader; import java.io.IOException; import java.util.HashSet; import java.util.Set; ...
libris/librisxl
gui-whelktool/src/main/java/whelk/gui/ReplaceRecordsPanel.java
Java
apache-2.0
3,153
using System; using System.Threading; using bytePassion.Lib.Communication.State; using bytePassion.Lib.ConcurrencyLib; using OQF.AnalysisAndProgress.ProgressUtils; using OQF.Bot.Contracts; using OQF.Bot.Contracts.Coordination; using OQF.Bot.Contracts.GameElements; using OQF.Bot.Contracts.Moves; using OQF.PlayerVsBot.C...
bytePassion/OpenQuoridorFramework
OpenQuoridorFramework/OQF.PlayerVsBot.GameLogic/GameService.cs
C#
apache-2.0
4,020
/* * Copyright 2018 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...
gocd-contrib/docker-elastic-agents
src/main/java/cd/go/contrib/elasticagents/docker/requests/JobCompletionRequest.java
Java
apache-2.0
3,654
/* * Copyright 2015 Gerald Muecke, gerald.muecke@gmail.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...
rolandio/inkstand
inkstand-http-undertow/src/main/java/io/inkstand/http/undertow/AuthenticatingUndertowWebServerProvider.java
Java
apache-2.0
3,953
/* * 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 ...
googleapis/java-aiplatform
proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteContextRequestOrBuilder.java
Java
apache-2.0
2,785
# Copyright (c) 2014 Rackspace, 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 wr...
obulpathi/poppy
poppy/transport/validators/stoplight/helpers.py
Python
apache-2.0
823
""" * Copyright 2007 Fred Sauer * * 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, so...
jaredly/pyjamas
library/pyjamas/dnd/util/CoordinateLocation.py
Python
apache-2.0
1,133
namespace TreeConstructionFromQuartets.Model { using System; using System.Collections.Generic; using System.Linq; public class PartitionSet { public PartitionSet(string PartitionSetName) { this._PartitionSetName = PartitionSetName; this._Final_Score = 0; ...
tanvirehsan/TreeConstructionFromQuartets
TreeConstructionFromQuartets/Model/PartitionSet.cs
C#
apache-2.0
4,522
# Copyright 2015 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing,...
googleapis/google-api-ruby-client
google-api-client/generated/google/apis/securitycenter_v1beta1/service.rb
Ruby
apache-2.0
66,146
<?php $TRANSLATIONS = array( "Not all calendars are completely cached" => "Ikke alle kalendere er fuldstændig cached", "Everything seems to be completely cached" => "Alt ser ud til at være cached", "No calendars found." => "Der blev ikke fundet nogen kalendere.", "No events found." => "Der blev ikke fundet nogen begive...
ArcherCraftStore/ArcherVMPeridot
apps/owncloud/htdocs/apps/calendar/l10n/da.php
PHP
apache-2.0
7,568
#include <iostream> #include <vector> #include <cmath> #include <algorithm> #include <fstream> #include "gflags/gflags.h" #include "Common/log.h" DEFINE_string(res_file, "", "predict res"); DEFINE_int32(log_level, 2, "LogLevel :" "0 : TRACE " "1 : DEBUG " "2 : INFO " "3 : ERROR"); uint32_t log_level =...
uwroute/study
ML/eval/auc.cpp
C++
apache-2.0
2,402
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Web; namespace Mobet.Runtime.Cookie { public static class CookieManager { /// <summary> /// 创建cookie /// </summary> /// <param name="name">cookie名</param> /// <param name=...
Mobet/Mobet-Net
Mobet-Net/Mobet/Runtime/Cookie/CookieManager.cs
C#
apache-2.0
1,723
<tr> <td><?php echo $area->id ?></td> <td><?php echo $area->lat ?></td> <td><?php echo $area->lng ?></td> <td><?php echo $area->radius ?></td> <td width="300px"><?php echo $area->url ?></td> <td><?php echo $area->area ?></td> <td><?php echo $area->min_radius_area ?></td> <td><?php echo $...
smart-e/lifemap
plugins/lfPosPlugin/apps/pc_backend/modules/pos/templates/_googlearea.php
PHP
apache-2.0
520
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System.Collections.Generic; using System.Collections.Immutable; using System.Linq; using System.Threading; using System.Threading.Tasks; using Microsof...
mono/roslyn
src/Features/Core/Diagnostics/EngineV2/DiagnosticIncrementalAnalyzer.cs
C#
apache-2.0
9,908
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("MNI...
kawatan/Milk
MNISTTest/Properties/AssemblyInfo.cs
C#
apache-2.0
1,389
require 'test/unit' class TestRubyLiteral < Test::Unit::TestCase def test_special_const assert_equal 'true', true.inspect assert_instance_of TrueClass, true assert_equal 'false', false.inspect assert_instance_of FalseClass, false assert_equal 'nil', nil.inspect assert_instance_of NilClass, n...
google-code/android-scripting
jruby/src/test/externals/ruby1.9/ruby/test_literal.rb
Ruby
apache-2.0
6,345
package dbutil import ( "github.com/wpxiong/beargo/log" ) func init() { log.InitLog() }
wpxiong/beargo
util/dbutil/db_util.go
GO
apache-2.0
94
import java.util.HashMap; import java.util.Map; public class WordPattern { public static boolean wordPattern(String pattern, String str) { Map<String, String> a2b = new HashMap<String, String>(); Map<String, String> b2a = new HashMap<String, String>(); String[] tokens = str.split(" "); ...
wittyResry/leetcode
src/main/java/WordPattern.java
Java
apache-2.0
1,026
package org.aksw.sparqlify.qa.pinpointing; import java.util.Collection; import java.util.HashSet; import java.util.Set; import org.aksw.sparqlify.core.algorithms.CandidateViewSelectorImpl; import org.aksw.sparqlify.core.algorithms.ViewQuad; import org.aksw.sparqlify.core.domain.input.ViewDefinition; import org.aksw.s...
AKSW/R2RLint
src/main/java/org/aksw/sparqlify/qa/pinpointing/Pinpointer.java
Java
apache-2.0
2,208
/* * Copyright 2014 Martin W. Kirst * * 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...
nitram509/macaroons.js
src/main/ts/MacaroonsVerifier.ts
TypeScript
apache-2.0
9,915
const _ = require('lodash'); const teFlow = require('te-flow'); const AnimManager = require('./anim-manager.js'); const _H = require('./../helpers/helper-index.js'); const animConfig = function (_key, _data) { /** * Preps the data to be processed * @param {str} key -> anim key * @...
ctr-lang/ctr
lib/ctr-nodes/animation/anim-config.js
JavaScript
apache-2.0
1,529
/** * */ package com.f1000.rank.helper; import java.util.List; import com.f1000.rank.journal.model.Rank; /** * The Interface RankingHelper. * * @author mattiam */ public interface RankingHelper { /** * Ranking. * * @param <T> the generic type * @param list the list */ public <T extend...
mattiamascia/jrank
src/main/java/com/f1000/rank/helper/RankingHelper.java
Java
apache-2.0
361
package me.chen_wei.zhihu; import android.app.Application; import android.support.v7.app.AppCompatDelegate; /** * Created by Hander on 16/2/28. * <p/> * Email : hander_wei@163.com */ public class MyApplication extends Application { static{ //设置DayNightTheme模式 AppCompatDelegate.setDefaultNight...
HanderWei/ZhihuDaily
app/src/main/java/me/chen_wei/zhihu/MyApplication.java
Java
apache-2.0
489
package leetcode; /** * https://leetcode.com/problems/two-sum-ii-input-array-is-sorted/ * https://leetcode.com/explore/learn/card/array-and-string/205/array-two-pointer-technique/1153/ */ public final class Problem167TwoSumII { public int[] twoSum(int[] numbers, int target) { if (numbers == null || numb...
jaredsburrows/cs-interview-questions
java/src/main/java/leetcode/Problem167TwoSumII.java
Java
apache-2.0
752
/* * Copyright 2013-2019 consulo.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 applicable law or agreed to ...
consulo/consulo
modules/base/lang-impl/src/main/java/com/intellij/ide/actions/runAnything/RunAnythingContextRecentDirectoryCache.java
Java
apache-2.0
1,682
module Synthea module World class BirthRate def initialize @area = Synthea::Config.population.area @population_variance = Synthea::Config.population.birth_variance @rate_per_sq_mile = (Synthea::Config.population.daily_births_per_square_mile * Synthea::Config.time_step) mean ...
AmartC/synthea
lib/world/birth_rate.rb
Ruby
apache-2.0
515
/******************************************************************************* * Copyright 2015 Maximilian Stark | Dakror <mail@dakror.de> * * 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...
Dakror/Vloxlands
core/src/de/dakror/vloxlands/generate/WorldGenerator.java
Java
apache-2.0
1,624
package com.havryliuk.itarticles.data.local.preferences; import javax.inject.Inject; /** * Created by Igor Havrylyuk on 23.10.2017. */ public class AppPreferencesHelper implements IPreferencesHelper { private static final String PREF_KEY_IS_LOGGED_IN = "PREF_KEY_IS_LOGGED_IN"; private static final String ...
graviton57/ITArticles
app/src/main/java/com/havryliuk/itarticles/data/local/preferences/AppPreferencesHelper.java
Java
apache-2.0
1,546
/* * 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 ...
WilliamDo/ignite
modules/ml/src/main/java/org/apache/ignite/ml/math/impls/matrix/AbstractMatrix.java
Java
apache-2.0
26,094
package com.ctrip.xpipe.redis.proxy.spring; import com.ctrip.xpipe.redis.core.proxy.endpoint.DefaultProxyEndpointManager; import com.ctrip.xpipe.redis.core.proxy.endpoint.ProxyEndpointManager; import com.ctrip.xpipe.redis.core.proxy.handler.NettyClientSslHandlerFactory; import com.ctrip.xpipe.redis.core.proxy.handler....
ctripcorp/x-pipe
redis/redis-proxy/src/main/java/com/ctrip/xpipe/redis/proxy/spring/Production.java
Java
apache-2.0
2,700
using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; namespace DotVVM.Framework.Parser.Dothtml.Parser { [DebuggerDisplay("{debuggerDisplay,nq}")] public class DothtmlBindingNode : DothtmlLiteralNode { #region debbuger display [DebuggerBrowsable(Debug...
holajan/dotvvm
src/DotVVM.Framework/Parser/Dothtml/Parser/DothtmlBindingNode.cs
C#
apache-2.0
666
package com.lucidastar.hodgepodge.view; import android.animation.ValueAnimator; import android.content.Context; import android.content.res.TypedArray; import android.graphics.Canvas; import android.graphics.Color; import android.graphics.Paint; import android.graphics.RectF; import android.os.Bundle; import android.os...
Lucidastar/hodgepodgeForAndroid
app/src/main/java/com/lucidastar/hodgepodge/view/CircleProgressView.java
Java
apache-2.0
22,758
/// <reference path="..\compiler\commandLineParser.ts" /> /// <reference path="..\services\services.ts" /> /// <reference path="protocol.d.ts" /> /// <reference path="session.ts" /> namespace ts.server { export interface Logger { close(): void; isVerbose(): boolean; loggingEnabled(...
bowlofstew/kythe
third_party/typescript/src/server/editorServices.ts
TypeScript
apache-2.0
96,179
package com.dxbook.ui; public class SearchResultActivity { }
treper/SlidingMenuUsage
DxStore/src/com/dxbook/ui/SearchResultActivity.java
Java
apache-2.0
63
/* * Copyright 2017-2022 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...
aws/aws-sdk-java
aws-java-sdk-managedblockchain/src/main/java/com/amazonaws/services/managedblockchain/model/NetworkSummary.java
Java
apache-2.0
16,696
/* * Copyright 2017-2022 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...
aws/aws-sdk-java
aws-java-sdk-servicecatalog/src/main/java/com/amazonaws/services/servicecatalog/model/DescribeTagOptionResult.java
Java
apache-2.0
3,915
/* * 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 * distr...
Scavi/BrainSqueeze
src/main/java/com/scavi/brainsqueeze/codefight/challenge/CreditCycle.java
Java
apache-2.0
923
/* * Copyright 2015-2018 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...
thomasdarimont/spring-data-examples
jpa/multiple-datasources/src/test/java/example/springdata/jpa/multipleds/order/OrderRepositoryTests.java
Java
apache-2.0
1,608
package com.commercetools.sunrise.common.template.cms.filebased; import com.commercetools.sunrise.cms.CmsPage; import com.commercetools.sunrise.cms.CmsService; import com.commercetools.sunrise.common.template.i18n.I18nResolver; import javax.inject.Inject; import javax.inject.Named; import java.util.List; import java....
rfuertesp/pruebas2
common/app/com/commercetools/sunrise/common/template/cms/filebased/FileBasedCmsService.java
Java
apache-2.0
1,294
import torch from torch import nn, Tensor from typing import Iterable, Dict from sentence_transformers import SentenceTransformer from transformers import AutoConfig, AutoTokenizer, AutoModelForCausalLM, PreTrainedModel import logging logger = logging.getLogger(__name__) class DenoisingAutoEncoderLoss(nn.Module): ...
UKPLab/sentence-transformers
sentence_transformers/losses/DenoisingAutoEncoderLoss.py
Python
apache-2.0
6,700
/** * 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...
WIgor/hadoop
hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/datanode/DNConf.java
Java
apache-2.0
17,321
import sys from typing import Optional from bowler import Query, LN, Capture, Filename, TOKEN, SYMBOL from fissix.pytree import Node, Leaf from lib2to3.fixer_util import Name, KeywordArg, Dot, Comma, Newline, ArgList def filter_print_string(node, capture, filename) -> bool: function_name = capture.get("function_...
edx/repo-tools
edx_repo_tools/codemods/django2/foreignkey_on_delete_mod.py
Python
apache-2.0
1,718
/* * Copyright (c) 2002-2018 "Neo Technology," * Network Engine for Objects in Lund AB [http://neotechnology.com] * * This file is part of Neo4j. * * Neo4j is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundatio...
HuangLS/neo4j
community/graph-algo/src/main/java/org/neo4j/graphalgo/impl/centrality/EigenvectorCentralityArnoldi.java
Java
apache-2.0
7,492
/* * Copyright © 2016, 2017 IBM Corp. 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 applicab...
cloudant/sync-android
cloudant-sync-datastore-core/src/main/java/com/cloudant/sync/internal/documentstore/callables/GetAllRevisionsOfDocumentCallable.java
Java
apache-2.0
3,855
package com.cognizant.cognizantits.qcconnection.qcupdation; import com4j.DISPID; import com4j.DefaultValue; import com4j.IID; import com4j.NativeType; import com4j.Optional; import com4j.ReturnValue; import com4j.VTID; @IID("{2AF970F7-6CCC-4DFB-AA78-08F689481F94}") public abstract interface IBug extends IBaseFieldE...
CognizantQAHub/Cognizant-Intelligent-Test-Scripter
QcConnection/src/main/java/com/cognizant/cognizantits/qcconnection/qcupdation/IBug.java
Java
apache-2.0
1,729
/* * 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...
Asimov4/elasticsearch
src/test/java/org/elasticsearch/common/lucene/LuceneTest.java
Java
apache-2.0
6,332
/* * Copyright 2015-2017 Red Hat, Inc. and/or its affiliates * and other contributors as indicated by the @author tags. * * 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...
Jiri-Kremser/hawkular-agent
hawkular-agent-core/src/main/java/org/hawkular/agent/monitor/storage/MetricTagPayloadBuilderImpl.java
Java
apache-2.0
4,162
#!/usr/bin/env python ''' Script to ingest GCP billing data into a DB ''' import logging import os import re import sys from datetime import datetime from dateutil.relativedelta import relativedelta from dateutil.parser import parse as parse_date from httplib2 import Http import transaction from apiclient.discover...
blentz/cloud-costs
budget/scripts/gcp_test.py
Python
apache-2.0
2,730
<?php use yii\helpers\Html; use yii\widgets\ActiveForm; ?> <h3 class="page-title"> Authority management <small> Role detail </small> </h3> <div class="page-bar"> <ul class="page-breadcrumb"> <li> <i class="fa fa-home"></i> <a href="index.html">Home</a> <i class="f...
diandianxiyu/Yii2-CMS-Template
views/role/view.php
PHP
apache-2.0
9,248
package org.gradle.test.performance.mediummonolithicjavaproject.p127; import org.junit.Test; import static org.junit.Assert.*; public class Test2551 { Production2551 objectUnderTest = new Production2551(); @Test public void testProperty0() { String value = "value"; objectUnderTest....
oehme/analysing-gradle-performance
my-app/src/test/java/org/gradle/test/performance/mediummonolithicjavaproject/p127/Test2551.java
Java
apache-2.0
2,111
package org.gradle.test.performance.mediummonolithicjavaproject.p211; public class Production4230 { private String property0; public String getProperty0() { return property0; } public void setProperty0(String value) { property0 = value; } private String property1; ...
oehme/analysing-gradle-performance
my-app/src/main/java/org/gradle/test/performance/mediummonolithicjavaproject/p211/Production4230.java
Java
apache-2.0
1,891
/* * Copyright 2014 Google Inc. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicabl...
benjyw/kythe
kythe/go/storage/tools/read_entries/read_entries.go
GO
apache-2.0
5,685
# # Author:: Seth Chisamore (<schisamo@opscode.com>) # Cookbook Name:: chef_handlers # Recipe:: default # # Copyright 2011, Opscode, 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 # # ...
hh/chef_handler
recipes/default.rb
Ruby
apache-2.0
989
package com.alipay.api.response; import com.alipay.api.internal.mapping.ApiField; import com.alipay.api.AlipayResponse; /** * ALIPAY API: alipay.marketing.campaign.activity.offline.create response. * * @author auto create * @since 1.0, 2017-04-07 18:22:19 */ public class AlipayMarketingCampaignActivityOfflineC...
wendal/alipay-sdk
src/main/java/com/alipay/api/response/AlipayMarketingCampaignActivityOfflineCreateResponse.java
Java
apache-2.0
860
class Config(object): SERVER_URL = "BACKEND_SERVER_URL" CAMERA_NAME = "CAM_NAME" API_KEY = "API_KEY" class Backend(object): URL_PREFIX = "http://" API_PREFIX = "/api/v1/" AUTH_URL = "%susers/auth" % API_PREFIX REGISTER_CAM_URL = "%scam" % API_PREFIX UPLOAD_URL = "%scam/upload" % API_PR...
SillentTroll/rascam_client
wsgi/common/constants.py
Python
apache-2.0
370
/* * Copyright 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 a...
CarloMicieli/footballdb-starter
src/main/java/io/github/carlomicieli/footballdb/starter/domain/games/PassingStatsFormatException.java
Java
apache-2.0
1,290
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: BceForgetPassword.proto package com.xinqihd.sns.gameserver.proto; public final class XinqiBceForgetPassword { private XinqiBceForgetPassword() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistry registry) {...
wangqi/gameserver
server/src/gensrc/java/com/xinqihd/sns/gameserver/proto/XinqiBceForgetPassword.java
Java
apache-2.0
16,953
package com.lys.ping; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; import com.pingplusplus.Pingpp; import com.pingplusplus.exception.APIConnectionException; import com.pingplusplus.exception.APIException; import com.pingplusplus.exception.AuthenticationException; ...
zzsoszz/wyyf
src/com/lys/ping/PingCharge.java
Java
apache-2.0
5,897
# -*- coding: utf-8 -*- # # Copyright 2014-2020 BigML # # 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 ...
jaor/bigmler
bigmler/processing/ensembles.py
Python
apache-2.0
3,944
/* * Copyright 2012-present Facebook, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may * not use this file except in compliance with the License. You may obtain * a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or...
azatoth/buck
test/com/facebook/buck/cli/InstallCommandTest.java
Java
apache-2.0
14,471
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #include "isourceselector.h" namespace search::queryeval { ISourceSelector::ISourceSelector(Source defaultSource) : _baseId(0), _defaultSource(defaultSource) { assert(defaultSource < SOURCE_LIMIT); } ...
vespa-engine/vespa
searchlib/src/vespa/searchlib/queryeval/isourceselector.cpp
C++
apache-2.0
483
# == Schema Information # # Table name: course_users # # id :integer not null, primary key # course_id :integer # user_id :integer # created_at :datetime # updated_at :datetime # # Read about factories at https://github.com/thoughtbot/factory_girl FactoryGirl.define do factory :course_user...
patrickspencer/compass-webapp
spec/factories/course_users.rb
Ruby
apache-2.0
334
using System; using System.Web.Http; using System.Web.Mvc; using xStudio.Web.Areas.HelpPage.ModelDescriptions; using xStudio.Web.Areas.HelpPage.Models; namespace xStudio.Web.Areas.HelpPage.Controllers { /// <summary> /// The controller that will handle requests for the help page. /// </summary> public ...
xDevsPro/xStudio
Solution/UIs/xStudio.Web/Areas/HelpPage/Controllers/HelpController.cs
C#
apache-2.0
1,892
/* * Copyright 2017-2022 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...
aws/aws-sdk-java
aws-java-sdk-iotdeviceadvisor/src/main/java/com/amazonaws/services/iotdeviceadvisor/AWSIoTDeviceAdvisorAsyncClient.java
Java
apache-2.0
22,034
/* * Copyright 2019 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 ...
google/intellij-protocol-buffer-editor
core/src/main/java/com/google/devtools/intellij/protoeditor/ide/documentation/PbDocumentationProvider.java
Java
apache-2.0
2,354
package com.mnknowledge.dp.behavioral.observer.newsfeed; public class User implements Observer { private String name; private String article; private Subject newsFeed; public User(String name) { super(); this.name = name; } public void subscribe(Subject newsFeed) { ne...
stapetro/mnk_designpatterns
dpsamples/src/main/java/com/mnknowledge/dp/behavioral/observer/newsfeed/User.java
Java
apache-2.0
714
// Copyright 2019 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 ...
googleads/google-ads-java
google-ads-migration-examples/src/main/java/com/google/ads/googleads/migration/campaignmanagement/CreateCompleteCampaignGoogleAdsApiOnly.java
Java
apache-2.0
27,574
/* * 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 ...
nextreports/nextreports-server
src/ro/nextreports/server/aop/EntitiesRemoveAdvice.java
Java
apache-2.0
1,930
import operator import pandas as pd import pandas.util.testing as tm import pytest import ibis from ibis.common import IbisTypeError def test_array_length(t, df): expr = t.projection([ t.array_of_float64.length().name('array_of_float64_length'), t.array_of_int64.length().name('array_of_int64_le...
deepfield/ibis
ibis/pandas/execution/tests/test_arrays.py
Python
apache-2.0
6,305
package com.hubspot.singularity; import ch.qos.logback.classic.LoggerContext; import com.google.common.collect.ImmutableList; import com.google.common.collect.ImmutableMap; import com.google.common.net.HostAndPort; import com.google.inject.Inject; import com.google.inject.Injector; import com.hubspot.mesos.JavaUtils; ...
hs-jenkins-bot/Singularity
SingularityService/src/main/java/com/hubspot/singularity/SingularityAbort.java
Java
apache-2.0
5,463
/* * Copyright 2015-2018 G-Labs. All Rights Reserved. * https://zuixjs.github.io/zuix * * 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/L...
genielabs/zuix
build/scripts/lint.js
JavaScript
apache-2.0
2,327
$: << File.join(File.dirname(__FILE__), "/../lib" ) require 'rubygems' require 'spec' require 'dynomite'
chef/ruby-dynomite
spec/spec_helper.rb
Ruby
apache-2.0
106
/** * 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 m...
clibois/wss4j
ws-security-stax/src/main/java/org/apache/wss4j/stax/validate/UsernameTokenValidatorImpl.java
Java
apache-2.0
11,364
import {firestore} from '../../utils/firestore'; const HOOK_COLLECTION_NAME = 'github-event-deliveries'; export const HOOK_MAX_AGE = 60 * 1000; class HooksModel { /** * This method may be called multiple times in quick succession resulting * in a the doc already existing. */ async logHook(hookDelivery: ...
PolymerLabs/project-health
src/server/models/hooksModel.ts
TypeScript
apache-2.0
1,305
package com.ycsoft.report.query.daq; import java.sql.Connection; import java.sql.ResultSet; import java.sql.SQLException; import java.sql.Statement; import com.ycsoft.commons.exception.ReportException; import com.ycsoft.commons.helper.LoggerHelper; import com.ycsoft.report.db.ConnContainer; /** * 数据库提取数...
leopardoooo/cambodia
boss-report/src/main/java/com/ycsoft/report/query/daq/DBAcquisition.java
Java
apache-2.0
1,854
package org.aws4j.data.dynamo.attribute.converter; import java.lang.reflect.Type; import java.util.Set; import org.aws4j.core.exception.NotImplementedException; import org.aws4j.core.util.JacksonUtil; import com.amazonaws.services.dynamodbv2.model.AttributeValue; import com.fasterxml.jackson.core.JsonProcessingExcep...
aws4j/dynamo-mapper
src/main/java/org/aws4j/data/dynamo/attribute/converter/JsonConverter.java
Java
apache-2.0
1,500
package ee.jiss.commons.json.convert; import com.fasterxml.jackson.core.JsonParser; import com.fasterxml.jackson.databind.DeserializationContext; import com.fasterxml.jackson.databind.deser.std.StdScalarDeserializer; import org.joda.time.LocalDate; import org.joda.time.format.DateTimeFormatter; import java.io.IOExcep...
jiss-software/jiss-commons
commons-json/src/main/java/ee/jiss/commons/json/convert/LocalDateParser.java
Java
apache-2.0
935
/* * Copyright 2004-2015 Cray Inc. * Other additional copyright holders may be indicated within. * * The entirety of this work is 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 * *...
hildeth/chapel
compiler/main/driver.cpp
C++
apache-2.0
41,155
/* * 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 ...
JingchengDu/hbase
hbase-server/src/main/java/org/apache/hadoop/hbase/io/hfile/HFileWriterImpl.java
Java
apache-2.0
32,336
export * from './dynamic-date.module'; export * from './dynamic-date.pipe';
our-city-app/oca-backend
embedded-apps/projects/shared/src/lib/dynamic-date/index.ts
TypeScript
apache-2.0
76
using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.Events; namespace Game.Event { public class Event : MonoBehaviour { #region Fields [SerializeField] private UnityEvent _startList; [SerializeField] private UnityEvent _end...
hilllo/HaloLandsAR
HaloLands/Assets/Scripts/EventSystem/Event.cs
C#
apache-2.0
779
import execSync from "../services/exec-sync"; import log from "../services/logger"; import lambdaExists from "../utils/lambda-exists"; export default function deploy (options) { const { awsAccessKeyId, awsSecretAccessKey, awsRegion, lambdaName, lambdaRole, sourceDir ...
lk-architecture/lk-lambda-deploy
src/steps/4.deploy.js
JavaScript
apache-2.0
1,817
var schema = require("./schema.js"); var xml = require("./xml.js"); module.exports.createBuilder = schema.createBuilder; module.exports.parse = xml.parse; module.exports.parseXml = xml.parse;
pagi-org/pagijs
src/js/schema/index.js
JavaScript
apache-2.0
193
using System.Web.Http; using System.Web.Routing; namespace Giventocode.AzureSearch { public class WebApiApplication : System.Web.HttpApplication { protected void Application_Start() { WebApiConfig.Register(); } } }
giventocode/azure-mobileservices-search
Giventocode.AzureSearch/Global.asax.cs
C#
apache-2.0
266
namespace Snippets6.RavenDB { using System.Threading.Tasks; using NServiceBus; using NServiceBus.RavenDB; using Raven.Client; using Raven.Client.Document; class RavenDBConfigure { public void SharedSessionForSagasAndOutbox() { #region ravendb-persistence-shared-...
WojcikMike/docs.particular.net
Snippets/Snippets_6/RavenDB/Configure.cs
C#
apache-2.0
3,386
#if TEXTURE_EXPOSE == TEXTURE_NAMES #elif TEXTURE_EXPOSE == TEXTURE_BUILDER_NAME builArmchair, #elif TEXTURE_EXPOSE == TEXTURE_FILE __FILE__, #elif TEXTURE_EXPOSE == TEXTURE_BUILDER_BODY void builArmchair() { Channel t; t.Cells(100); Channel r = t; r.Scale(53.f/255.f, 83.f/255.f); Channel g = t; g.Scale(3...
laurentlb/Ctrl-Alt-Test
F/data/textures/armchair.cc
C++
apache-2.0
678