id stringlengths 64 64 | content stringlengths 500 100k | language stringclasses 29
values | path stringlengths 4 333 | repo stringlengths 5 116 | license stringclasses 15
values | size int64 500 100k | lines int64 26 8.06k | source stringclasses 1
value |
|---|---|---|---|---|---|---|---|---|
8030e3b8bbd12755b18d4bcf387df634d516a2a891f187cf9d8944025d915da8 | #include <primitiv/config.h>
#include <primitiv/devices/naive/device.h>
#include <primitiv/devices/naive/ops/common.h>
namespace primitiv {
namespace devices {
void Naive::max_fw_impl(const Tensor &x, std::uint32_t dim, Tensor &y) {
const std::uint32_t n = x.shape()[dim];
const std::uint32_t repeat = y.shape().s... | C++ | primitiv/devices/naive/ops/max.cc | odashi/primitiv | apache-2.0 | 1,551 | 53 | codeparrot/github-code |
a37a287cc5f4b99faf2d0ed93acac580305b2755e3b9551186e4bfac85075eb8 | #!/usr/bin/python
import apt
import apt.progress
import apt_pkg
import logging
import re
import sys
logging.basicConfig(filename1='/var/log/supervisor/rps.log',
format='%(asctime)s %(levelname)s: deb_install: %(message)s',
level=logging.INFO)
logging.getLogger().setLevel(logging.INFO)
class control_p... | Python | conf.d/deb_install_build_deps.py | bioothod/zbuilder | apache-2.0 | 3,249 | 100 | codeparrot/github-code |
bf67ef5374d4fd3c1bc8446c0b796aa3effbbf98e69e14e1a65439de5df974de | package com.senseidb.indexing;
import java.util.Map;
import org.json.JSONObject;
import org.json.JSONException;
import com.senseidb.conf.SenseiSchema;
import com.senseidb.plugin.SenseiPluginFactory;
import com.senseidb.plugin.SenseiPluginRegistry;
public interface ShardingStrategy {
int caculateShard(int maxShar... | Java | sensei-core/src/main/java/com/senseidb/indexing/ShardingStrategy.java | DataDog/sensei | apache-2.0 | 1,356 | 49 | codeparrot/github-code |
ee80eba29975cf8891f0e3c0f3f147b3f640ba03b6b59d6e1dae3d5076e2b7e3 | /*
* Copyright (c) 2005-2009 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... | Java | application/src/main/java/org/mifos/application/customer/util/helpers/CustomerPositionView.java | mifos/1.4.x | apache-2.0 | 1,803 | 70 | codeparrot/github-code |
6ed02b4a2d2f1b0186139916dc5b745533e609a6890a82c281598564005c1618 | package com.airbnb.lottie;
import android.support.test.filters.LargeTest;
import android.support.test.rule.ActivityTestRule;
import android.support.test.runner.AndroidJUnit4;
import com.airbnb.lottie.samples.MainActivity;
import org.junit.Rule;
import org.junit.Test;
import org.junit.runner.RunWith;
/**
* Run thes... | Java | lottie-android-master/LottieSample/src/androidTest/java/com/airbnb/lottie/LottieTest.java | haowenbiao/AndroidProject | apache-2.0 | 4,578 | 78 | codeparrot/github-code |
06396c9b9532a4d70d12aa4589ad5c6082bf2c4415f7bcdd7c412942f19b5658 | package com.example.eokuu;
import android.app.Activity;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.Window;
import android.view.WindowManager;
import android.widget.Button;
public class MainAct... | Java | eokuu/src/com/example/eokuu/MainActivity.java | genciii/Android | apache-2.0 | 2,153 | 81 | codeparrot/github-code |
5af86a6f57065718992884268d92db47f7a796d8ef7a7a21d4078ae0e1ddaa0d | package io.noties.markwon.html.tag;
import androidx.annotation.NonNull;
import org.commonmark.node.BlockQuote;
import java.util.Collection;
import java.util.Collections;
import io.noties.markwon.MarkwonConfiguration;
import io.noties.markwon.MarkwonVisitor;
import io.noties.markwon.SpanFactory;
import io.noties.mar... | Java | markwon-html/src/main/java/io/noties/markwon/html/tag/BlockquoteHandler.java | noties/Markwon | apache-2.0 | 1,383 | 48 | codeparrot/github-code |
0367ce5f6488615233534b42e52a1bf480b4523612b72c362ef1cb679a3d668e | using System;
using System.Management.Automation;
using EnvDTE;
using NuGet.VisualStudio;
namespace NuGet.PowerShell.Commands
{
/// <summary>
/// This project updates the specified package to the specified project.
/// </summary>
[Cmdlet(VerbsData.Update, "Package", DefaultParameterSetName = ... | C# | src/VsConsole/PowerShellCmdlets/UpdatePackageCommand.cs | themotleyfool/NuGet | apache-2.0 | 10,601 | 264 | codeparrot/github-code |
7567a89546617255e87795a00d2aaf1b541211a61e0be473c89596f5bc83b5b9 | define([
"smithy/GadgetSpace",
"smithy/GadgetArea",
"smithy/Gadget",
"smithy/GadgetFactory",
"Test/MockViewFactory"
], function (
GadgetSpace,
GadgetArea,
Gadget,
GadgetFactory,
MockViewFactory
) {
/**
* Test the primitive request methods.
*/
describe("TestGadge... | JavaScript | test/TestGadgetSpace.js | atsid/smithy-js | apache-2.0 | 1,210 | 45 | codeparrot/github-code |
674aa84998253d878c5f5160c54a8f7a731c4acf17f3926d6a251ed9b7395f69 | /**
* Copyright (C) 2016 Hyphenate 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... | Java | src/cn/ucai/superwechat/ui/ForwardMessageActivity.java | lixiqiang/superwechat | apache-2.0 | 2,271 | 61 | codeparrot/github-code |
d6c3e082923873bb76417f3214903217b0fc7655f44528e239e3c54f25aaa38f | //Copyright 2015 Paul Tegelaar
//
//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 ... | Java | src/main/java/com/pte/liquid/camel/processors/ConvertMessageJsonProcessor.java | rjptegelaar/liquid-os | apache-2.0 | 1,329 | 39 | codeparrot/github-code |
99b608fe7a9b0bd28f08bf541224ae585a0ebe4f52be3fb17f465221b3f65e4b | // Copyright 2017 The Ray 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 i... | C | src/ray/rpc/gcs_server/gcs_rpc_client.h | pcmoritz/ray-1 | apache-2.0 | 14,869 | 307 | codeparrot/github-code |
ed00a6ebd637f725fa721d78680bdfa2935b94fa39109a722011f66a223a3007 | /*
* 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... | Java | aws-java-sdk-fsx/src/main/java/com/amazonaws/services/fsx/model/transform/DisassociateFileSystemAliasesRequestMarshaller.java | aws/aws-sdk-java | apache-2.0 | 2,983 | 66 | codeparrot/github-code |
4ea3ef70ed17fcf153cc2830e5844c5a655f86ed4553db6bb9e37455269125f7 | package io.github.greyp9.arwo.core.xsd.model.test;
import io.github.greyp9.arwo.core.app.App;
import io.github.greyp9.arwo.core.lang.SystemU;
import io.github.greyp9.arwo.core.res.ResourceU;
import io.github.greyp9.arwo.core.url.URLCodec;
import io.github.greyp9.arwo.core.xml.QNameU;
import io.github.greyp9.arwo.core.... | Java | src/test/core/java/io/github/greyp9/arwo/core/xsd/model/test/XsdTypesTest.java | greyp9/arwo | apache-2.0 | 3,035 | 70 | codeparrot/github-code |
bf0aeef1f1863835a7bc6ee58b1657f6a72e1b78f75e619c585d29ff380db83c | /*
* Licensed to The Apereo Foundation under one or more contributor license
* agreements. See the NOTICE file distributed with this work for additional
* information regarding copyright ownership.
*
* The Apereo Foundation licenses this file to you under the Apache License,
* Version 2.0, (the "License"); you ma... | Java | Source/Plugins/Core/com.equella.core/src/com/tle/core/cloud/service/impl/CloudServiceImpl.java | equella/Equella | apache-2.0 | 25,837 | 733 | codeparrot/github-code |
8358fc5a438077b64b646483ea3c07ab2e5900d9ff2eb74e02d927f0a02c36d5 |
// cClientHandle.h
// Interfaces to the cClientHandle class representing a client connected to this server. The client need not be a player yet
#pragma once
#ifndef CCLIENTHANDLE_H_INCLUDED
#define CCLIENTHANDLE_H_INCLUDED
#include "Defines.h"
#include "Vector3.h"
#include "OSSupport/SocketThreads.h"
#include "... | C | src/ClientHandle.h | jamiepg1/MCServer | apache-2.0 | 17,610 | 378 | codeparrot/github-code |
ec66688a820c323c50eb168b4559cb9322f17720bb0d5f673ddfc15e3bcdaa02 | /*
* Copyright (C) 2008 ZXing 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 agr... | Java | src/com/google/zxing/client/android/CaptureActivity.java | uvwxy/zxingcapturemod | apache-2.0 | 29,244 | 825 | codeparrot/github-code |
c79bb83b4218ef068380a8fb1f8c468b1cf3699f324d8c60f8b449efd4b12259 | /*
* Copyright 2015-present Open Networking Foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appli... | Java | core/net/src/test/java/org/onosproject/app/impl/ApplicationManagerTest.java | opennetworkinglab/onos | apache-2.0 | 7,686 | 239 | codeparrot/github-code |
e146e818c0d8c3d8a76844d1e72a084ae6522d6c6ac88d12ce2adc046fa365c0 | import galaxyxml.tool.parameters as gxtp
from collections import Counter
from pydoc import locate
class ArgparseGalaxyTranslation(object):
def __gxtp_param_from_type(self, param, flag, label, num_dashes, gxparam_extra_kwargs, default=None):
from argparse import FileType
"""Based on a type, conver... | Python | argparse2tool/dropins/argparse/argparse_galaxy_translation.py | erasche/argparse2tool | apache-2.0 | 10,696 | 250 | codeparrot/github-code |
a5b5fae5c47c5e388d0cddf163900518671456f9c0da18bbb0ab6e4c2bfa87aa | #include "aws/core/Aws.h"
#include "aws/core/auth/AWSCredentialsProvider.h"
#include "aws/core/client/ClientConfiguration.h"
#include "aws/s3/S3Client.h"
#include "aws/s3/model/CreateBucketRequest.h"
#include "aws/s3/model/PutObjectRequest.h"
#include <fstream>
#include <iostream>
using namespace Aws;
int ... | C++ | miniotest.cpp | krishnasrinivas/random-progs | apache-2.0 | 2,386 | 76 | codeparrot/github-code |
457c6033ebcc45e3f27e58bc696975fbe93737a6bd41659000c7ea59d271e83a | package org.apache.helix.task.beans;
/*
* 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... | Java | helix-core/src/main/java/org/apache/helix/task/beans/JobBean.java | lei-xia/helix | apache-2.0 | 2,398 | 56 | codeparrot/github-code |
c189167ab4b937f94f6a2cac6da63a44f9ba4b127eb4090da3b1819c18086792 | /*
* Copyright 2010-2021 James Pether Sörling
*
* 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... | Java | service.data.impl/src/test/java/com/hack23/cia/service/data/impl/util/SecretPGXADataSourceTest.java | Hack23/cia | apache-2.0 | 2,445 | 81 | codeparrot/github-code |
1f69110fbc03a38c7a98f8a689990bc7e7c0f247c345bb625b30f1f5dcec4d39 | // +build windows
package windows
import (
"context"
"path/filepath"
"github.com/containerd/containerd"
"github.com/containerd/containerd/plugin"
"github.com/containerd/containerd/snapshot"
"github.com/pkg/errors"
)
var (
ErrNotImplemented = errors.New("not implemented")
)
func init() {
plugin.Register("sn... | GO | snapshot/windows/windows.go | yuexiao-wang/containerd | apache-2.0 | 2,156 | 81 | codeparrot/github-code |
532174922944b55ecb8fd55eca7142ee6a9bf18ea38601128e937497a921a371 | package com.github.kaiwinter.activerecord;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
* Reading columns from SQL sometimes needs some adaptation, especially because different SQL drivers behaves different.
* If a value cannot be set in the Active Record this class tries to convert that type... | Java | JavaActiveRecord/src/main/java/com/github/kaiwinter/activerecord/TypeConverter.java | kaiwinter/JavaActiveRecord | apache-2.0 | 1,814 | 46 | codeparrot/github-code |
5c491eb271c544e4a4d38cb962a9062a8ddf56a5f0a82cb4bbb939e015d950a4 | /*
* DBeaver - Universal Database Manager
* Copyright (C) 2010-2021 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... | Java | plugins/org.jkiss.dbeaver.ui.editors.data/src/org/jkiss/dbeaver/ui/controls/resultset/panel/valueviewer/ValueViewerPanel.java | Sargul/dbeaver | apache-2.0 | 15,333 | 400 | codeparrot/github-code |
193629ed3247062de8c4c770cfb5a4fb910046558bf804f120d1c25267d1169b | package org.ihtsdo.otf.security;
import java.util.logging.Logger;
import org.ihtsdo.otf.security.dto.UserSecurity;
public class UserSecurityCompare {
/**
* <p>
* logger.
* </p>
*/
private static final Logger LOG = Logger.getLogger(UserSecurity.class
.getName());
private UserSecurity leftUS;
private ... | Java | security/src/main/java/org/ihtsdo/otf/security/UserSecurityCompare.java | IHTSDO/OTF-User-Module | apache-2.0 | 1,111 | 61 | codeparrot/github-code |
2a2e5adab4e4a3ce3e780abcf2a20c3385fdb8c90d061e95272ffd444b0f15e1 | /*
* 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... | Java | aws-java-sdk-servicecatalog/src/main/java/com/amazonaws/services/servicecatalog/model/transform/ShareErrorJsonUnmarshaller.java | aws/aws-sdk-java | apache-2.0 | 3,200 | 85 | codeparrot/github-code |
9bee7f9429a2ea61aa0ff0f5b7f8b263264088ccc339545b106aadce6f207257 | /*
* 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... | Java | aws-java-sdk-auditmanager/src/main/java/com/amazonaws/services/auditmanager/model/UpdateAssessmentControlSetStatusResult.java | aws/aws-sdk-java | apache-2.0 | 4,448 | 128 | codeparrot/github-code |
020deea703f7b549ffb6e9e767a140cb1f35e23ea2b4e2d1aec38c1e31707459 | package com.gzmelife.app.tools;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Locale;
import com.gzmelife.app.views.pulldown.Logger;
import android.o... | Java | PMS/GzmeLife/src/com/gzmelife/app/tools/FileUtil.java | liudeyu/MeLife | apache-2.0 | 3,138 | 125 | codeparrot/github-code |
e15a911a430030e306209a230eb1abc2324eff712e496489177ea5126d4cfcd3 | /* Copyright 2017 - 2022 R. Thomas
* Copyright 2017 - 2022 Quarkslab
*
* 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 req... | C++ | include/LIEF/PE/DataDirectory.hpp | lief-project/LIEF | apache-2.0 | 2,399 | 93 | codeparrot/github-code |
36dc2f30c6fd258fa7d4bde171008afa6c1a574331d4ede4a896421c905b888d | /*
* 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 ... | GO | traffic_monitor_golang/traffic_monitor/datareq/cachestatfilter.go | rscrimojr/incubator-trafficcontrol | apache-2.0 | 5,321 | 169 | codeparrot/github-code |
ca6945a02b9e2c4e49be5bc517eb7278cf2220433ac9cf79db61f7cb7401a218 | package ch.shaktipat.saraswati.example.volatility.polymorphic;
import java.util.logging.Level;
import java.util.logging.Logger;
import ch.shaktipat.saraswati.common.PersistentClass;
import ch.shaktipat.saraswati.pobject.PProcessStatic;
import ch.shaktipat.saraswati.volatility.PersistentMethod;
import ch.shaktipat.sara... | Java | src/examples/volatilityPolymorphic/ch/shaktipat/saraswati/example/volatility/polymorphic/VolatileSubClass.java | liquid-mind/warp | apache-2.0 | 1,328 | 50 | codeparrot/github-code |
856fdea46eea9e8eaf3e74ed7a20c2e3978e7501d6766e1797a9269b14f2ab26 | /*
* Copyright 2017 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... | Java | server/src/test-integration/java/com/thoughtworks/go/server/dao/UserSqlMapDaoIntegrationTest.java | stevem999/gocd | apache-2.0 | 17,055 | 460 | codeparrot/github-code |
57f02f602e90dc12b3bc732ca217fbafd10e7a525d0335ae56423a3cbd3037ae | package com.vito16.shop.controller;
import com.vito16.shop.common.Page;
import com.vito16.shop.common.PageUtil;
import com.vito16.shop.model.News;
import com.vito16.shop.service.NewsService;
import com.vito16.shop.util.AdminUtil;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans... | Java | src/main/java/com/vito16/shop/controller/NewsController.java | RoyZeng/shop-1 | apache-2.0 | 2,070 | 60 | codeparrot/github-code |
59ce2d83d7844a2a3651f758b11054268e8ef688091f6267f8e9073739f21230 | <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<style>
.bar {
height: 18px;
background: green;
}
</style>
</head>
<body>
<script></script>
<!... | HTML | src/test/resources/test.html | byzy/jcv-maven-plugin | apache-2.0 | 1,275 | 48 | codeparrot/github-code |
80ea4e54465c8bef398d91675d7d175d40a7c10d170989c45c3c26e1db2e3b03 | /**
* 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... | Java | core/camel-management-impl/src/main/java/org/apache/camel/management/mbean/ManagedRoute.java | punkhorn/camel-upstream | apache-2.0 | 26,211 | 646 | codeparrot/github-code |
9e1578210f10a7bf6a003b0e0e2097b861cbc57cb8501bf7ca594b17ab9479c0 | #!/usr/bin/env perl
# See the NOTICE 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 obtain a copy of the License at
#
# htt... | Perl | scripts/examples/dna_getAncestralSequences.pl | Ensembl/ensembl-compara | apache-2.0 | 3,595 | 89 | codeparrot/github-code |
4e5fa9164d2bcae2ae0fbeaa3f508d50827d2cdb614b6444c7bb4131c1617b25 |
<!doctype html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="X-UA-Compatible" content="IE=Edge" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Configure your data locations — Google Earth Enterprise 5.3.8 documentation</title>
<link rel... | HTML | docs/geedocs/5.3.8/answer/fusionAdministration/confDataLocation.html | tst-ccamp/earthenterprise | apache-2.0 | 7,575 | 149 | codeparrot/github-code |
afdd2b3934e6258c0c817095c3e304ddd79988c21f9b3a0af7e5fdb711470da9 | #pragma once
#include "NFComm/NFPluginModule/NFPlatform.h"
#include "tinyxml2.h"
#include "MiniExcelReader.h"
#include <algorithm>
#include <fstream>
#include <sstream>
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include <wchar.h>
#include <locale.h>
#include <iostream>
#include <vector>
#include <map>
... | C | NFTools/NFFileProcess/FileProcess.h | xinst/NoahGameFrame | apache-2.0 | 3,781 | 163 | codeparrot/github-code |
e007c8c60a1bb1e193125bd35c32d1358d15cd95bc18b5e8450d365524ef35fa | /*
* Copyright (c) SAS Institute 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 agre... | C | rmake/lib/pycap.c | sassoftware/rmake | apache-2.0 | 2,650 | 110 | codeparrot/github-code |
0f0b016906075b5275554a03eeb58a02e13106617d4a478bbcfaa2070403b6e3 | package sk.fiit.dps.team11.providers;
import java.lang.reflect.Method;
import java.util.HashMap;
import java.util.Map;
import java.util.function.BiConsumer;
import javax.ws.rs.WebApplicationException;
import javax.ws.rs.core.Response;
import javax.ws.rs.ext.ExceptionMapper;
import javax.ws.rs.ext.Provider;
import or... | Java | key-value-store/dropwizard/src/main/java/sk/fiit/dps/team11/providers/RuntimeExceptionMapper.java | jurajmatus/dps-dynamo | apache-2.0 | 1,536 | 60 | codeparrot/github-code |
cbd47346f796cb4952478102163b9a358ca4ba03d2383f19a402763329499ee2 | /**
*
* 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"); ... | Java | modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/replica/catalog/utils/ThriftDataModelConversion.java | gouravshenoy/airavata | apache-2.0 | 12,430 | 222 | codeparrot/github-code |
9ec2def78c03399c7e2ac14cf531476fa8151d0cea5e106462d9c24da00e24b1 | require 'openssl'
module Kontena
class CertSplitter
include Kontena::Logging
# @return [Hash<String => String>]
def self.from_env(env = ENV)
cert_splitter = new(env)
cert_splitter.to_h
end
def initialize(env = ENV)
@env = env
end
# @param [String] cert_bundle
# @r... | Ruby | lib/kontena/cert_splitter.rb | kontena/kontena-loadbalancer | apache-2.0 | 1,605 | 84 | codeparrot/github-code |
d66ec37ff448263a9638a607ffe40c2efb004e597abcc153d95cef861150880d | /* IBM_PROLOG_BEGIN_TAG */
/* This is an automatically generated prolog. */
/* */
/* $Source: src/usr/hwpf/hwp/activate_powerbus/activate_powerbus.C $ */
/* ... | C++ | src/usr/hwpf/hwp/activate_powerbus/activate_powerbus.C | shenki/hostboot | apache-2.0 | 15,317 | 412 | codeparrot/github-code |
789b2ef8843cbbe5361ea6a91bd4835f276b8a20d6403b985152e8ceba12e4bc | /*
* 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... | Java | aws-java-sdk-codepipeline/src/main/java/com/amazonaws/services/codepipeline/model/transform/StageExecutionMarshaller.java | jentfoo/aws-sdk-java | apache-2.0 | 2,292 | 59 | codeparrot/github-code |
dd40265315138d520b68091fd36d8004efa02721f617001189e8b11cc5d151ec | package org.wikiup.servlet.impl.processor.text;
import java.io.StringWriter;
import java.util.HashSet;
import java.util.Iterator;
import java.util.Set;
import org.wikiup.core.inf.Attribute;
import org.wikiup.core.inf.Document;
import org.wikiup.servlet.ServletProcessorContext;
import org.wikiup.servlet.inf.... | Java | framework/src/org/wikiup/servlet/impl/processor/text/JsonProcessor.java | smantinc/wikiup | apache-2.0 | 3,308 | 90 | codeparrot/github-code |
e905216734b89024774e1b569b072c4ccc88089dee5c604d2c6c763ed3d0d2ab | package aggregator
import (
"autoscaler/db"
"autoscaler/models"
"autoscaler/routes"
"encoding/json"
"fmt"
"net/http"
"strconv"
"time"
"code.cloudfoundry.org/lager"
)
type MetricPoller struct {
logger lager.Logger
metricCollectorUrl string
doneChan chan bool
appChan chan ... | GO | src/autoscaler/eventgenerator/aggregator/metricPoller.go | qibobo/app-autoscaler | apache-2.0 | 3,620 | 134 | codeparrot/github-code |
eef160e20c820a05fe812edfb36be202de531f94f0eb2e9744bd31a99a41548a | #
# Copyright (c) 2013 Juniper Networks, Inc. All rights reserved.
#
# note that any print to stdout will break node manager because its uses
# stdout as communication channel and gratitious text there will break it.
# stderr should be fine
import sys
import gevent
from gevent import monkey
if not 'unittest' in sys.mo... | Python | src/discovery/client.py | numansiddique/contrail-controller | apache-2.0 | 15,569 | 439 | codeparrot/github-code |
177984471db589556338ed4de4af111f04c8765e4eef37155e9483982ac448ea | /*
+--------------------------------------------------------------------------
| Mblog [#RELEASE_VERSION#]
| ========================================
| Copyright (c) 2014, 2015 mtons. All Rights Reserved
| http://www.mtons.com
|
+---------------------------------------------------------------------------
*/
pac... | Java | mblog-core/src/main/java/mblog/core/data/OpenOauth.java | MRCHENDQ/JoinOurs | apache-2.0 | 2,668 | 135 | codeparrot/github-code |
227080fe8561188b8f034a28bf6c53df8a56a7f656414afb187d9e07e21d3a39 | /*
* Design a data structure that supports the following two operations:
*
* void addWord(word)
* bool search(word)
* search(word) can search a literal word or a regular expression string containing only letters a-z or .. A . means it can represent any one letter.
*/
class TrieNode {
public TrieNode[] childre... | Java | Add_and_Search_Word_Data_structure_design.java | kxingit/LeetCode_Java | apache-2.0 | 3,538 | 134 | codeparrot/github-code |
ab923fed43767602dbcea19065139efd002502e5c8e759203fe834cf23141c74 | /**
* (c) Copyright 2012 WibiData, Inc.
*
* See the NOTICE 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 obtain a copy of... | Java | kiji-schema/src/main/java/org/kiji/schema/hbase/HBaseColumnName.java | zenoss/kiji-schema | apache-2.0 | 2,830 | 119 | codeparrot/github-code |
27d8a26d85d21c9d92c1964c96f375531f19501b08e48cbb9fb8406f8c41f4e3 | <?php
abstract class ArcanistRepositoryLocalState
extends Phobject {
private $repositoryAPI;
private $shouldRestore;
private $stashRef;
private $workflow;
final public function setWorkflow(ArcanistWorkflow $workflow) {
$this->workflow = $workflow;
return $this;
}
final public function getWor... | PHP | src/repository/state/ArcanistRepositoryLocalState.php | phacility/arcanist | apache-2.0 | 7,134 | 278 | codeparrot/github-code |
6e39fce86b4cb12d1e4016870c944d4581d755efc0454e5e537ec54a951b9e9d | /**
* Created by steve on 07/04/15.
*/
var ModalTrigger = ReactBootstrap.ModalTrigger
var CatalogPage = React.createClass({displayName: "CatalogPage",
render: function() {
return (
React.createElement("div", {className: "row"},
React.createElement("div", {className: "col-md-1... | JavaScript | view/scripts/.module-cache/4f46b3929c409c72b668a9a0ffb6ce7fdb5adf81.js | networknt/light-commerce | apache-2.0 | 8,815 | 270 | codeparrot/github-code |
a8bca42b3b16d181f44b832281b51d2b5b38b0563dc25b367f73c919bc614366 | /**
* Original work: copyright 1999-2004 The Apache Software Foundation
* (http://www.apache.org/)
*
* This project is based on the work licensed to the Apache Software
* Foundation (ASF) under one or more contributor license agreements.
* See the NOTICE file distributed with this work for additional
* informat... | Java | net.tascalate.javaflow.providers.asmx/src/main/java/org/apache/commons/javaflow/providers/asmx/ContinuableMethodVisitor.java | vsilaev/java-continuations | apache-2.0 | 17,162 | 414 | codeparrot/github-code |
ae2261cc206f9be8a6dab98257d497e37188778318c4bb52460bbf8d937b0251 | package org.synyx.urlaubsverwaltung.core.application.domain;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import org.springframework.data.jpa.domain.AbstractPersistable;
import org.springframework.util.Assert;
import javax.persistence.Entity;
import j... | Java | src/main/java/org/synyx/urlaubsverwaltung/core/application/domain/VacationType.java | Intera/urlaubsverwaltung | apache-2.0 | 1,496 | 73 | codeparrot/github-code |
081c39af124a1a59070bb766f1b77869f3a40a64ece59b32d8f62cee97f1b081 | package com.sequenceiq.cloudbreak.converter;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import javax.annotation.PostConstruct;
import javax.inject.Inject;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.core.convert.ConversionService;
imp... | Java | core/src/main/java/com/sequenceiq/cloudbreak/converter/AbstractConversionServiceAwareConverter.java | sequenceiq/cloudbreak | apache-2.0 | 1,360 | 45 | codeparrot/github-code |
47fe80383cac3d4447dd49c1bd8821f4ea8636f534da57181610bd889bf802ef | /*
* Copyright 2011 The Netty Project
* The Netty Project licenses this file to you under the Apache License,
* version 2.0 (the "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at:
* http://www.apache.org/licenses/LICENSE-2.0
* Unless required by... | Java | handler/src/main/java/io/netty/handler/traffic/AbstractTrafficShapingHandler.java | DavidAlphaFox/netty | apache-2.0 | 16,128 | 448 | codeparrot/github-code |
10fa310b20767c21db03a9dc4f4c8644e8bdce3990f5b1f89bff84c659346d5e | # -*- coding: utf-8 -*-
__author__ = 'Alan Tai'
'''
Created on Jun 24, 2014
@author: Alan Tai
'''
import logging
import jinja2
import webapp2
import json
from dictionaries.dict_keys_values import KeysVaulesGeneral
from handlers.handler_webapp2_extra_auth import BaseHandler
from models.models_video_info import VideoIn... | Python | prjUnlimitedKP/src/dispatchers/dispatchers_videos.py | Gogistics/prjTWPublicMovements | apache-2.0 | 2,200 | 71 | codeparrot/github-code |
8dbd10948e5bf451a566d149dcadbc8461662cce5a9d9464948b38a5e1cba586 | // Copyright (c) 2014 Couchbase, 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 ... | GO | rest_create_index.go | nimishzynga/cbft | apache-2.0 | 2,648 | 89 | codeparrot/github-code |
6eb63124c770c8e551cc379099a973f7ebf0eb74b5ee3275a584896f3bee5cfe | /*
========================================================================
Name : quickLauncherApplication.cpp
Author : Usanov-Kornilov Nikolay (aka Kolay)
Copyright :
Contacts:
kolayuk@mail.ru
http://kolaysoft.ru
(c) KolaySoft, 2011
Description :
===================================... | C++ | src/quickLauncherApplication.cpp | kolayuk/quickLaunch | apache-2.0 | 2,234 | 85 | codeparrot/github-code |
9bd8ee431612a066dadcbcb2a976d22918f5758c25dddae130e42557ec45e157 | # -*- coding: utf-8 -*-
from __future__ import absolute_import
import operator
from django.conf import settings
from django.utils import translation
from django.utils.translation import ugettext as _
from django.utils.lru_cache import lru_cache
from six.moves import urllib, zip_longest, zip, range
from typing import ... | Python | zerver/lib/i18n.py | verma-varsha/zulip | apache-2.0 | 2,570 | 82 | codeparrot/github-code |
50a03e09c923b44fca564f61c910aa0173631a8cacd7ee98b4279afa8ffa5769 | /*
* Copyright (C) 2015 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 applicable l... | Java | android/android/src/com/android/tools/idea/editors/gfxtrace/rpc/Hierarchy.java | consulo/consulo-android | apache-2.0 | 1,742 | 62 | codeparrot/github-code |
02427d86ae978ead749184d22090ca6bd8bd75095944db21c03a73a02af82155 | /**
Copyright 2017 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 or agreed to in... | C | ion/base/stlalloc/allocunorderedmap.h | google/ion | apache-2.0 | 3,380 | 89 | codeparrot/github-code |
e44871e74f2162234092e1e3e9a769c5671bdaaa96da976f1baa5bf5a9035b90 | # -*- coding: utf-8 -*-
#
# 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
... | Python | airflow/jobs.py | hamedhsn/incubator-airflow | apache-2.0 | 90,563 | 2,182 | codeparrot/github-code |
f28f102de37eeddf7a3d59244935a940e5b52d2d15a8e9bb67eb28967f523bd8 | /*
* Copyright [2019] [Metamagic]
*
* 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,... | TypeScript | src/module/forms/datetimepicker/datetimepicker.component.ts | meta-magic/amexio.github.io | apache-2.0 | 55,469 | 1,839 | codeparrot/github-code |
05986d259127812899387618b75a13b13b370faf28ee3b7efb767ad4ee566055 | #!/usr/bin/python
# coding: utf-8
# Copyright 2013 The Font Bakery 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... | Python | scripts/fix-ttf-ascii-name.py | vitalyvolkov/fontbakery | apache-2.0 | 1,671 | 57 | codeparrot/github-code |
a49ffd78b7488ceba46fa77023d286dfce9224e1c19ff9d46c09d1552d6c1471 | /*
* Copyright (C) 2014 Universidad de Alicante
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* This progr... | Java | src/main/java/eu/digitisation/input/GUIHack.java | impactcentre/ocrevalUAtion | apache-2.0 | 13,519 | 362 | codeparrot/github-code |
152dd1d03d5a87a51bfe2a7fa6bd21be8e2b3376d0698d388ffb439d16ef619a | /* @license
* Copyright 2019 Google LLC. 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 a... | TypeScript | packages/model-viewer/src/test/three-components/ModelScene-spec.ts | PolymerLabs/model-viewer | apache-2.0 | 4,017 | 125 | codeparrot/github-code |
e476e35646ab8fa025b7f303c06364c46e7d9b6d443eed18f5783f44117a5d4b | /*
* Copyright (c) Joachim Ansorg, mail@ansorg-it.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 applicable la... | Java | src/com/ansorgit/plugins/bash/file/BashFileTypeLoader.java | jansorg/BashSupport | apache-2.0 | 1,718 | 41 | codeparrot/github-code |
5c4965613ce9e677e76a1100967baaa94fa331c9714fe174a0c9cf296e43342f | package com.eddyyuan.android.action;
import com.eddyyuan.android.AndroidResourceGeneratedConfigure;
import com.eddyyuan.android.entity.Selection;
import com.eddyyuan.android.entity.WriteObj;
import com.eddyyuan.android.util.TextUtils;
import com.intellij.ide.util.PropertiesComponent;
import com.intellij.openapi.action... | Java | src/com/eddyyuan/android/action/AndroidResourceGeneratedAction.java | Androidyuan/AndroidResourceGeneratedPlugin | apache-2.0 | 6,614 | 174 | codeparrot/github-code |
da26d97d480112fdbb8f57238479623a0349ad72ce9094c9cf848450311998be | /**
* Copyright 2009-2013 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... | Java | src/main/java/net/javacrumbs/demos/lambda/Lambdas.java | lukas-krecan/java8-playground | apache-2.0 | 1,495 | 47 | codeparrot/github-code |
a57ad54a297efb29c054a6ccb6ddf22aeaafc730db26c8a6799f441d3dca6204 | package tcp
import (
"flag"
"net"
"os"
"bufio"
"time"
"log"
)
func DefaultServer() {
var address = flag.String("address", ":6789", "server address host:port")
flag.Parse()
listener, err := net.Listen("tcp4", *address)
if err != nil {
log.Println("Error listening:", err)
os.Exit(1)
}
defer listener.... | GO | network/tcp/tcp_server.go | wiloon/golang-x | apache-2.0 | 1,318 | 68 | codeparrot/github-code |
599b0d84e24c92068d2ae9086963a77eb7010ea53c7cbf00341b23ffaf8632ce | import java.math.BigDecimal;
import org.marketcetera.trade.Equity;
import org.marketcetera.strategy.java.Strategy;
import org.marketcetera.trade.Factory;
import org.marketcetera.trade.OrderSingle;
import org.marketcetera.trade.OrderType;
import org.marketcetera.trade.Side;
import org.marketcetera.trade.TimeInForce;
/... | Java | trunk/modules/strategy/src/test/sample_data/inputs/SuggestTrades.java | nagyist/marketcetera | apache-2.0 | 3,126 | 94 | codeparrot/github-code |
07b24e3b52ba26cc7cdc3a36aea66762b0b6ea100015ce4e90f81ccec98d0790 | package com.alibaba.nacos.config.server.remote;
/*
* Copyright 1999-2020 Alibaba Group Holding Ltd.
*
* 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/licen... | Java | config/src/main/java/com/alibaba/nacos/config/server/remote/ConfigQueryGroupParser.java | alibaba/nacos | apache-2.0 | 1,735 | 57 | codeparrot/github-code |
69ce3bc8c03cb0b892246760d8eb9951922fbc6e1648e8eac9733aca2c55e29f | /**
* 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... | Java | library/src/main/java/org/apache/apex/malhar/lib/state/spillable/SpillableComplexComponentImpl.java | chandnisingh/apex-malhar | apache-2.0 | 6,500 | 205 | codeparrot/github-code |
5a35f150e6c7c835313e9c55c75413b30528cdc4fd98928c4ffea6ebe020adeb | import {ActionReducer, combineReducers} from "@ngrx/store";
import {
SHIPMENT_LIST_PAGE_REDUCER,
SHIPMENT_LIST_SLICE_INITIAL_STATE,
ShipmentListSlice
} from "./shipment/reducer/shipment-list-page.reducer";
import {
TASK_LIST_PAGE_REDUCER,
TASK_LIST_SLICE_INITIAL_STATE,
TaskListSlice
} from "./sh... | TypeScript | frontend/src/app/app.reducers.ts | educama-students2/Showcase | apache-2.0 | 2,077 | 47 | codeparrot/github-code |
0a42205d5d095c256fabeafa8637109c98cbab97002c49902899c6cc92fbc75b | type Alias = { num: number }
interface Interface {
num: number;
}
declare function aliased(arg: Alias): Alias;
declare function interfaced(arg: Interface): Interface;
(()=>{
class BasicCalculator {
public constructor(protected value: number = 0) { }
public currentValue(): number {
r... | TypeScript | src/170123-types.ts | XNSystemsStudy/Modern-Web-Development | apache-2.0 | 4,185 | 178 | codeparrot/github-code |
c45a52242e8b34fd04b24a7beb69bc8738f9713a41a3ff952e197d7fcf97f6e6 | package com.wizard.android.cprogressbutton;
import android.content.Context;
import android.graphics.Canvas;
import android.graphics.ColorFilter;
import android.graphics.Paint;
import android.graphics.Path;
import android.graphics.Rect;
import android.graphics.RectF;
import android.graphics.drawable.Drawable;
/**
* C... | Java | app/src/main/java/com/wizard/android/cprogressbutton/CProgressDrawable.java | lyncoka/androiddemo | apache-2.0 | 3,042 | 123 | codeparrot/github-code |
d43f6ad1dc9ef1c32475e04ec4db484619b0a56dbbbef5c0b9b757c1d5a2f109 | # Copyright 2016 Dell 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 app... | Python | cinder/interface/volume_management_driver.py | bswartz/cinder | apache-2.0 | 3,264 | 82 | codeparrot/github-code |
3e285a9494dcbf030a93fbc01662025a3ef3521b763385954c56c0df531a086f | package com.lfdversluis.tudirect.activities;
import android.app.Activity;
import android.app.AlertDialog;
import android.app.Dialog;
import android.app.ProgressDialog;
import android.content.DialogInterface;
import android.os.Bundle;
import android.util.Base64;
import android.view.View;
import android.webkit.WebView;
... | Java | app/src/main/java/com/lfdversluis/tudirect/activities/MainActivity.java | lfdversluis/TUDirect-Android | apache-2.0 | 5,530 | 147 | codeparrot/github-code |
3a22b26baf7c9ee1c161451c2ca9a0cdeef479045572de2e5e4345a7a7e41548 | package com.socrata.balboa.server;
import java.text.DateFormat;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.TimeZone;
public class ServiceUtils
{
public static scala.Option<Date> parseDate(String input)
{
DateFormat onlyDate = new SimpleD... | Java | balboa-http/src/main/java/com/socrata/balboa/server/ServiceUtils.java | socrata-platform/balboa | apache-2.0 | 1,019 | 40 | codeparrot/github-code |
19ebdf89ee5d321a4ae22f8d9f4580891ad2f405a8123741d83adf2ad74daef0 | /*
* Copyright 2021 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | C | public/verbs_util.h | google/rdma-unit-test | apache-2.0 | 10,324 | 249 | codeparrot/github-code |
a26f16a9ccaddf5fa8378e9655a64cea9be08d54b9f44adf3b5ca97b0843b3fd | namespace bombali.tests.integration.infrastructure.app.monitorchecks
{
using bdddoc.core;
using bombali.infrastructure.app.monitorchecks;
using developwithpassion.bdd.contexts;
using developwithpassion.bdd.mbunit;
using developwithpassion.bdd.mbunit.standard;
using developwithpassion.bdd.... | C# | product/bombali.tests.integration/infrastructure.app/monitorchecks/WebsiteCheckSpecs.cs | ferventcoder/bombali | apache-2.0 | 2,021 | 57 | codeparrot/github-code |
cf19287de7373c75ee0b5b45ac05cd931aedf24c18c826ee5892a96c8b65d32a | package com.stt.portfolio;
import java.util.Calendar;
import java.util.Date;
public class Util {
public static final double EURO_TO_MARKKA_RATIO = 5.94573;
private static Date dateBeforeEuro;
static {
Calendar c = Calendar.getInstance();
c.set(1999, 0, 1);
dateBeforeEuro = c.getTime();
}
public stati... | Java | src/com/stt/portfolio/Util.java | skarna1/javaportfolio | apache-2.0 | 1,171 | 57 | codeparrot/github-code |
a51cb10ff5ec70a1c739568c17a0706203e60dd96b5cef71f0f268acb2eb038f | /*
* Copyright 2012 JBoss by Red Hat.
*
* 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... | Java | jbpm-services/jbpm-kie-services/src/main/java/org/jbpm/kie/services/impl/RuntimeDataServiceImpl.java | lukenjmcd/jbpm | apache-2.0 | 43,869 | 1,146 | codeparrot/github-code |
d634aa1f4943d651ff6d2db6dd240c65543ade5006a38543d0f754890670715f | #!/usr/bin/ruby
#
# Authors:: api.sgomes@gmail.com (Sérgio Gomes)
#
# Copyright:: Copyright 2011, Google Inc. All Rights Reserved.
#
# License:: 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 ... | Ruby | lib/adwords_api/soap4r_response_handler.rb | chromeragnarok/adwords_api | apache-2.0 | 4,174 | 122 | codeparrot/github-code |
3dd2ef8627ffff749a3ea4ba8a91497593fdee5db77c0187cf616faea82d972a | import { TestBed, async } from '@angular/core/testing';
import { MaterialModule} from './material/material.module';
import { TopicListComponent } from './topic-list/topic-list.component';
import { TopicComponent } from './topic/topic.component';
import { PostComponent } from './post/post.component';
import { UserServic... | TypeScript | src/app/app.component.spec.ts | uhhhclem/argosy | apache-2.0 | 1,190 | 34 | codeparrot/github-code |
285018a923336bae61d8e15f7875aeb06c3a8e3524095faf34e8c245541e6b12 | /** @file
A brief file description
@section license License
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 und... | C | lib/ts/I_Version.h | chenglongwei/trafficserver | apache-2.0 | 3,524 | 115 | codeparrot/github-code |
fc6ba48f958eed9dad5dcb4dc90049199e23c52673b044ab4077b24ee6e47268 | package com.bagri.server.hazelcast.management;
import java.util.Collection;
import java.util.Map;
import java.util.concurrent.ExecutionException;
import java.util.concurrent.Future;
import javax.management.openmbean.TabularData;
import org.springframework.jmx.export.annotation.ManagedAttribute;
import org.... | Java | bagri-server/bagri-server-hazelcast/src/main/java/com/bagri/server/hazelcast/management/IndexManagement.java | dsukhoroslov/bagri | apache-2.0 | 5,625 | 140 | codeparrot/github-code |
c3870248b05f0301ec8f9be3f9ecae448e073001fb258fcf998f069784969051 | package main
import (
"database/sql"
"flag"
"fmt"
"github.com/lib/pq"
"io/ioutil"
"log"
"net/http"
"strconv"
"strings"
"time"
)
var db *sql.DB
var epoch time.Time
type Tick struct {
date string
open float64
low float64
high float64
close float64
volume int
}
func init() {
var _ interface{... | GO | update-tick-db.go | eldritchideen/go-stocks | apache-2.0 | 3,164 | 144 | codeparrot/github-code |
ed24f5cb43ab068c717a30a918e422d0ba2d3ae297c1725e01125de6fb0ef598 | // Copyright 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 to in... | Java | java_src/src/main/java/com/google/crypto/tink/integration/android/SharedPrefKeysetWriter.java | google/tink | apache-2.0 | 2,788 | 76 | codeparrot/github-code |
5152cbfc3f564484fdbe40d04b82e88bf65c68e63bb13cc7ba599eae588d37bc | # vim: tabstop=4 shiftwidth=4 softtabstop=4
import ConfigParser
from pprint import pformat
try:
from neutron.openstack.common import log as logging
except ImportError:
from oslo_log import log as logging
from neutron.common import exceptions
try:
from neutron.common.config import cfg
except ImportError:... | Python | neutron_plugin_contrail/plugins/opencontrail/quota/driver.py | eonpatapon/contrail-neutron-plugin | apache-2.0 | 9,119 | 249 | codeparrot/github-code |
2c72e901cbfdcd9523deb4ef64d10b66eaa37ac8f6243e6f48df928e57cf6f4e | /* Copyright 2004, 2005, 2006 2009 Acegi Technology Pty Limited
*
* 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 ... | Java | web/src/main/java/org/springframework/security/web/authentication/www/DigestAuthenticationFilter.java | panchenko/spring-security | apache-2.0 | 17,203 | 457 | codeparrot/github-code |
d8fc313d42ccc348c3719c98d4098cd3ae5c91408e87ad60c3192da861ed9778 | /*
* Copyright 2014 Matthias Fuchs
*
* 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... | C | stromx/raspi/ReadGpio.h | uboot/stromx-raspi | apache-2.0 | 1,990 | 61 | codeparrot/github-code |
4993b8bed1889fb4fcbaae30556ef4e64518236ccfbc2452adfb42ee2dcb56bb | #region Copyright
/*
Copyright 2014 Cluster Reply s.r.l.
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 ... | C# | Adapters/AdoNetAdapter/AdoNetAdapter/AdoNetAdapterConnectionUri.cs | ClusterReply/mercury-contrib-adapters | apache-2.0 | 5,723 | 194 | codeparrot/github-code |
fb7c16abbd37b812ed354d9eaca287166eb1b8783dad195b1a01510c59ac85fd | /*
* 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... | Java | aws-java-sdk-workspaces/src/main/java/com/amazonaws/services/workspaces/model/transform/DescribeIpGroupsRequestMarshaller.java | aws/aws-sdk-java | apache-2.0 | 2,687 | 63 | codeparrot/github-code |
f2558bcf89cf7076ae0798552dcab18c2c5e9bc0952d434379fe1ff4552f7f9e | /**
* 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... | Java | zookeeper-release-3.4.3/src/java/main/org/apache/zookeeper/server/quorum/QuorumPeerMain.java | sdw2330976/zookeeper-3.3.4-source | apache-2.0 | 6,880 | 162 | codeparrot/github-code |
13ee8155f2193b27e66a895dfcf82098724594cd4fc6b38c0e52faa564442dfe | package com.netscout.aion2
import com.github.racc.tscg.TypesafeConfigModule
import com.google.inject.{AbstractModule, Guice}
import com.netscout.aion2.inject._
import com.netscout.aion2.model.DataSource
import javax.ws.rs.core.{Application => JAXRSApplication, Response}
import net.codingwell.scalaguice.ScalaModule
... | Scala | src/test/scala/com/netscout/aion2/ApplicationSpec.scala | FlukeNetworks/aion | apache-2.0 | 9,580 | 296 | codeparrot/github-code |
0dd9d197dda3f40b5ea10d36a1b4e7f0a35b0187fc6d1baa76936c73d737b393 | #!/usr/bin/env python
import urllib2
from bs4 import BeautifulSoup
from parsingLibrary import loadHtmlTags, parseChannel, remove_duplicate_elements
from pymongo import MongoClient
from mongoConfiguration import load_mongo_configuration
mongo_address, mongo_port = load_mongo_configuration()
client = MongoClient(mongo_... | Python | tvChannelLoader.py | tvlive/tv-crawler | apache-2.0 | 5,139 | 125 | codeparrot/github-code |
0221f700c68da6150671ec02f597045b4d4346672a32f218f2be0782f543e1e5 | package de.synyx.meter.metrics.reporter;
import com.codahale.metrics.ScheduledReporter;
import com.codahale.metrics.graphite.Graphite;
import com.codahale.metrics.graphite.GraphiteReporter;
import com.google.common.base.Optional;
import org.hamcrest.Matchers;
import org.junit.Test;
import java.net.InetSocketAddress;
... | Java | metrics/src/test/java/de/synyx/meter/metrics/reporter/MetricReportHandlerGraphiteTest.java | synyx/meter | apache-2.0 | 2,822 | 68 | codeparrot/github-code |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.