max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
603 | import numpy as np
from pandas import DataFrame, Series, period_range
def test_iat(float_frame):
for i, row in enumerate(float_frame.index):
for j, col in enumerate(float_frame.columns):
result = float_frame.iat[i, j]
expected = float_frame.at[row, col]
assert result ... | 320 |
679 | <reponame>Grosskopf/openoffice<filename>main/framework/source/helper/statusindicator.cxx<gh_stars>100-1000
/**************************************************************
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with... | 1,778 |
1,056 | /*
* 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 ... | 1,264 |
360 | <reponame>28kayak/luwak
package uk.co.flax.luwak;
/*
* Copyright (c) 2015 Lemur Consulting 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/lic... | 1,103 |
14,668 | <gh_stars>1000+
// Copyright 2021 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROMEOS_DBUS_FWUPD_DBUS_CONSTANTS_H_
#define CHROMEOS_DBUS_FWUPD_DBUS_CONSTANTS_H_
namespace chromeos {
const char kFwupdServic... | 280 |
387 | <gh_stars>100-1000
/*
* Copyright (C) 2014, United States Government, as represented by the
* Administrator of the National Aeronautics and Space Administration.
* All rights reserved.
*
* The Java Pathfinder core (jpf-core) platform is licensed under the
* Apache License, Version 2.0 (the "License"); you may not... | 674 |
406 | <filename>services/unsupported/OpenADRVenAgent/openadrven/models.py
# -*- coding: utf-8 -*- {{{
# vim: set fenc=utf-8 ft=python sw=4 ts=4 sts=4 et:
#
# Copyright 2020, Battelle Memorial Institute.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with t... | 5,664 |
66,985 | <filename>spring-boot-project/spring-boot-tools/spring-boot-configuration-processor/src/test/java/org/springframework/boot/configurationsample/simple/SimpleArrayProperties.java<gh_stars>1000+
/*
* Copyright 2012-2019 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
... | 547 |
335 | // $Id$
# ifndef CPPAD_CORE_OMP_MAX_THREAD_HPP
# define CPPAD_CORE_OMP_MAX_THREAD_HPP
/* --------------------------------------------------------------------------
CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-16 <NAME>
CppAD is distributed under multiple licenses. This distribution is under
the terms of... | 827 |
1,056 | /*
* 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 ... | 1,134 |
655 | #include <StdAfx.h>
#include <MrMapi/MMRules.h>
#include <MrMapi/mmcli.h>
#include <MrMapi/MMAcls.h>
void DoRules(_In_opt_ LPMAPIFOLDER lpFolder) { DumpExchangeTable(PR_RULES_TABLE, lpFolder); }
| 92 |
1,056 | <filename>enterprise/payara.common/src/org/netbeans/modules/payara/common/actions/AbstractOutputAction.java
/*
* 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 own... | 747 |
631 | /**
* Copyright (c) 2011-2017 libbitcoin developers (see AUTHORS)
*
* This file is part of libbitcoin.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the Lic... | 1,085 |
831 | <reponame>Snehakri022/HackerrankPractice
# Problem: https://www.hackerrank.com/challenges/sherlock-and-cost/problem
# Score: 50
test = int(input())
for i in range(test):
n = int(input())
b = list(map(int, input().split()))
dp = [[0], [0]]
for i in range(1, len(b)):
add_1 = max(dp[0][-1], dp[... | 273 |
634 | /*
* Copyright 2013-2016 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 ... | 762 |
1,080 | <gh_stars>1000+
# Copyright (c) 2012 OpenStack Foundation.
# 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... | 616 |
521 | /* $Id: HGCM.h $ */
/** @file
* HGCM - Host-Guest Communication Manager.
*/
/*
* Copyright (C) 2006-2017 Oracle Corporation
*
* This file is part of VirtualBox Open Source Edition (OSE), as
* available from http://www.virtualbox.org. This file is free software;
* you can redistribute it and/or modify it under t... | 872 |
5,133 | /*
* Copyright MapStruct Authors.
*
* Licensed under the Apache License version 2.0, available at http://www.apache.org/licenses/LICENSE-2.0
*/
package org.mapstruct.ap.test.bugs._1453;
import java.util.List;
import java.util.Map;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;
/**
* @author ... | 271 |
4,054 | <filename>config-model/src/test/java/com/yahoo/searchdefinition/derived/CasingTestCase.java<gh_stars>1000+
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.searchdefinition.derived;
import com.yahoo.searchdefinition.Search;
import com.yahoo.sear... | 558 |
575 | #!/usr/bin/env vpython
#
# Copyright 2017 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import sys
from blinkpy.web_tests.merge_results import main
main(sys.argv[1:])
| 85 |
826 | package edu.berkeley.bvlc;
public final class CAFFE {
private CAFFE() {}
static {
LibUtils.loadLibrary("caffe");
}
public static native void set_mode(int mode);
public static native void set_phase(int phase);
public static native int get_mode();
... | 195 |
626 | """
Anserini: A toolkit for reproducible information retrieval research built on Lucene
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... | 3,651 |
348 | {"nom":"Briarres-sur-Essonne","circ":"5ème circonscription","dpt":"Loiret","inscrits":456,"abs":255,"votants":201,"blancs":16,"nuls":5,"exp":180,"res":[{"nuance":"REM","nom":"<NAME>","voix":96},{"nuance":"LR","nom":"<NAME>","voix":84}]} | 96 |
348 | <reponame>chamberone/Leaflet.PixiOverlay
{"nom":"Villeneuve","circ":"2ème circonscription","dpt":"Alpes-de-Haute-Provence","inscrits":3181,"abs":1964,"votants":1217,"blancs":95,"nuls":33,"exp":1089,"res":[{"nuance":"REM","nom":"M. <NAME>","voix":652},{"nuance":"FI","nom":"M. <NAME>","voix":437}]} | 123 |
780 | /*
* 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 ... | 751 |
14,668 | // Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
//
// This file declares a helper function that will check to see if a given folder
// is "identical" to another (for some value of identical, see belo... | 366 |
3,705 | import chainer
import chainer.backends
from chainer.backends.cuda import cupy
import chainer.functions as F
import chainer.links as L
import chainer.testing
import chainer.testing.attr
import chainermn
import numpy as np
import pytest
class Model(chainer.Chain):
def __init__(self, n_vocab, n_hid, communicator, ra... | 2,161 |
676 | package com.alorma.github.ui.utils;
import android.widget.AdapterView;
public abstract class SimpleItemSelectedItemListener implements AdapterView.OnItemSelectedListener {
@Override
public void onNothingSelected(AdapterView<?> adapterView) {
}
}
| 71 |
2,434 | <reponame>SergKhram/swagger2markup
/*
* Copyright 2016 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless require... | 1,055 |
852 | <reponame>ckamtsikis/cmssw<gh_stars>100-1000
#include "EventFilter/HcalRawToDigi/interface/HcalPacker.h"
#include "EventFilter/HcalRawToDigi/interface/HcalHTRData.h"
#include "EventFilter/HcalRawToDigi/interface/HcalDCCHeader.h"
#include "DataFormats/HcalDetId/interface/HcalGenericDetId.h"
#include "FWCore/MessageLogge... | 4,723 |
570 | <filename>picture_library/src/main/java/com/luck/picture/lib/instagram/adapter/FilterItemView.java
package com.luck.picture.lib.instagram.adapter;
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.Color;
import android.graphics.Typeface;
import android.view.Gravity;
import android... | 1,426 |
2,728 | #ifndef BOOST_SYSTEM_DETAIL_THROWS_HPP_INCLUDED
#define BOOST_SYSTEM_DETAIL_THROWS_HPP_INCLUDED
// Copyright <NAME> 2006, 2007
// Copyright <NAME> 2007
// Copyright <NAME> 2017, 2018
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.bo... | 557 |
380 | from rest_framework import views
from rest_framework.response import Response
import ipaddress
import socket
from .hash_calculator.cryptographic_hash_calculator import CryptographicHashWrapper as CryptoHash
from .hash_calculator.historic_hash_calculator import HistoricHashWrapper as HistoryHash
from .entropy_calculato... | 989 |
2,489 | /*
right.h
Right panel of UI utils.
*/
#pragma once
#include "ofMain.h"
#include "header.h"
#include "radarContainer.h"
#include "spikeGraph.h"
#include "animated.h"
class Right : public Animated {
public:
Right();
void draw();
float x;
float y;
float w;
float h;
void setPos(float x_, fl... | 222 |
1,288 | // Copyright 2017 Google Inc. All rights reserved.
//
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file or at
// https://developers.google.com/open-source/licenses/bsd
#ifndef PACKAGER_MEDIA_FORMATS_WEBVTT_WEBVTT_MP4_CUE_HANDLER_H_
#define PACKAGER_MEDIA_FORMATS_WEB... | 691 |
1,041 | package org.tests.model.inheritmany;
import javax.persistence.DiscriminatorValue;
import javax.persistence.Entity;
import java.util.Date;
@Entity
@DiscriminatorValue("TWO")
public class IMRootTwo extends IMRoot {
String title;
Date whenTitle;
public String getTitle() {
return title;
}
public void se... | 175 |
977 | def foo():
print(len(text_list))
text_list: List[str] = []
foo() | 30 |
988 | /*
* 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 ... | 3,215 |
918 | /*
* 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 ... | 1,756 |
635 | <filename>bagua/torch_api/contrib/utils/store.py
from typing import List, Dict, Optional, Union
from collections import defaultdict
__all__ = ["Store", "ClusterStore"]
class Store:
"""
Base class for key-value store implementations. Entries are added to store with :meth:`set` or :meth:`mset`, and retrieved
... | 1,826 |
16,461 | package abi42_0_0.expo.modules.interfaces.sensors;
import android.hardware.SensorEventListener2;
public interface SensorServiceInterface {
SensorServiceSubscriptionInterface createSubscriptionForListener(SensorEventListener2 sensorEventListener);
}
| 66 |
3,294 | //{{NO_DEPENDENCIES}}
// Microsoft Developer Studio generated include file.
// Used by SetPaneSize.rc
//
#define IDP_OLE_INIT_FAILED 100
#define IDD_SetPaneSize_FORM 101
#define IDS_MAIN_TOOLBAR 101
#define IDR_MAINFRAME 128
#define IDR_SETBARTYPE ... | 858 |
367 | <filename>solaris/utils/log.py
import logging
def _get_logging_level(level_int):
"""Convert a logging level integer into a log level."""
if isinstance(level_int, bool):
level_int = int(level_int)
if level_int < 0:
return logging.CRITICAL + 1 # silence all possible outputs
elif level_i... | 332 |
344 | /*
MIT License
Copyright (c) 2020 earlygrey
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, dist... | 2,088 |
3,222 | package org.apache.maven.model.building;
/*
* 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 Lic... | 1,878 |
471 | <reponame>esteinberg/plantuml4idea
package org.plantuml.idea.preview;
import com.intellij.openapi.actionSystem.AnActionEvent;
import com.intellij.openapi.actionSystem.Presentation;
import com.intellij.openapi.actionSystem.ex.CustomComponentAction;
import com.intellij.openapi.project.DumbAwareAction;
import com.intelli... | 2,500 |
56,632 | // This file is part of OpenCV project.
// It is subject to the license terms in the LICENSE file found in the top-level directory
// of this distribution and at http://opencv.org/license.html.
#include "opencv2/core/utils/buffer_area.private.hpp"
#include "opencv2/core/utils/configuration.private.hpp"
#ifndef OPENCV... | 1,946 |
850 | <filename>libs/models/detectors/two_stage_base_network.py
# -*-coding: utf-8 -*-
from __future__ import absolute_import, division, print_function
import os
import tensorflow as tf
import tensorflow.contrib.slim as slim
from libs.models.anchor_heads.generate_anchors import GenerateAnchors
from libs.utils.show_box_in_... | 8,070 |
2,032 | /*
Tencent is pleased to support the open source community by making PhxQueue available.
Copyright (C) 2017 THL A29 Limited, a Tencent company. All rights reserved.
Licensed under the BSD 3-Clause License (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the Lice... | 565 |
10,225 | package io.quarkus.it.websocket;
import javax.websocket.OnMessage;
import javax.websocket.server.ServerEndpoint;
@ServerEndpoint("/echo")
public class EchoSocket {
@OnMessage
String echo(String msg) {
return msg;
}
}
| 97 |
1,016 | <reponame>peter-ls/kylo<filename>services/feed-manager-service/feed-manager-core/src/main/java/com/thinkbiganalytics/feedmgr/service/category/SimpleCategoryCache.java
package com.thinkbiganalytics.feedmgr.service.category;
/*-
* #%L
* thinkbig-feed-manager-core
* %%
* Copyright (C) 2017 ThinkBig Analytics
* %%
* ... | 2,547 |
380 | import numpy as np
from hls4ml.model.optimizer import OptimizerPass
from hls4ml.model.layers import Conv1D, Conv2D, Dense, SeparableConv1D, SeparableConv2D
class ApplyResourceStrategy(OptimizerPass):
''' Transposes the weights to use the dense_resource matrix multiply routine '''
def match(self, node):
... | 857 |
1,831 | /**
* Copyright (c) 2017-present, Facebook, Inc. and its affiliates.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree.
*/
#include "logdevice/server/ServerSSLFetcher.h"
#include <wangle/ssl/TLSCredProcessor.... | 1,327 |
3,730 | <reponame>jackywyz/jvm.go
package jvm.lambda;
public class LambdaTest {
public static void main(String[] args) {
Runnable r = () -> System.out.println("Hello, World!");
r.run();
}
}
| 99 |
4,606 | import uuid
from unittest import mock
import pytest
from botocore import exceptions
from dagster import DagsterResourceFunctionError, In, Out, build_op_context, configured, job, op
from dagster_aws.s3 import S3FileHandle, S3FileManager, s3_file_manager, s3_resource
def test_s3_file_manager_write(mock_s3_resource, mo... | 2,236 |
2,002 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See LICENSE in the project root for license information.
#include "StdAfx.h"
namespace Microsoft::Resources
{
/*!
* An atom pool initialized directly from an array of static strings.
* Uses the suppli... | 2,134 |
372 | <reponame>noisecode3/DPF
/*
* DISTRHO Plugin Framework (DPF)
* Copyright (C) 2012-2021 <NAME> <<EMAIL>>
*
* Permission to use, copy, modify, and/or distribute this software for any purpose with
* or without fee is hereby granted, provided that the above copyright notice and this
* permission notice appear in all ... | 1,168 |
440 | /*========================== begin_copyright_notice ============================
Copyright (C) 2018-2021 Intel Corporation
SPDX-License-Identifier: MIT
============================= end_copyright_notice ===========================*/
#include "PacketBuilder.h"
#include <cstdarg>
#include "Probe/Assertion.h"
namespa... | 2,568 |
335 | <reponame>Safal08/Hacktoberfest-1
{
"word": "Bay",
"definitions": [
"(of a dog, especially a large one) bark or howl loudly.",
"(of a group of people) shout loudly, typically to demand something.",
"Bay at."
],
"parts-of-speech": "Verb"
} | 118 |
3,139 | <reponame>supertick/jmonkeyengine<filename>jme3-core/src/main/java/com/jme3/animation/SpatialTrack.java
/*
* Copyright (c) 2009-2020 jMonkeyEngine
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions ... | 4,861 |
2,338 | // RUN: %clang_cc1 -triple thumbv8m.base-eabi -fsyntax-only -ffreestanding %s -verify -mcmse
// RUN: %clang_cc1 -triple thumbv8m.base-eabi -fsyntax-only -ffreestanding -x c++ %s -verify -mcmse
// expected-no-diagnostics
#include <arm_cmse.h>
typedef void (*callback_t)(void);
void func(callback_t fptr, void ... | 243 |
348 | <reponame>chamberone/Leaflet.PixiOverlay
{"nom":"Calenzana","circ":"2ème circonscription","dpt":"Haute-Corse","inscrits":1660,"abs":793,"votants":867,"blancs":36,"nuls":8,"exp":823,"res":[{"nuance":"REG","nom":"<NAME>","voix":681},{"nuance":"REM","nom":"<NAME>","voix":142}]} | 113 |
323 | package org.xbib.io.compress.bzip2;
import static org.junit.Assert.*;
import java.io.ByteArrayInputStream;
import java.io.IOException;
import org.junit.Test;
/**
* Tests BitInputStream
*/
public class BZip2BitInputStreamTests {
// Boolean
/**
* Test reading 8 zeroes
* @throws java.io.IOException
*/
@Te... | 1,809 |
30,785 | package jadx.tests.integration.enums;
import org.junit.jupiter.api.Test;
import jadx.tests.api.IntegrationTest;
import static jadx.tests.api.utils.assertj.JadxAssertions.assertThat;
import static jadx.tests.integration.enums.TestEnums2a.TestCls.DoubleOperations.DIVIDE;
import static jadx.tests.integration.enums.Test... | 553 |
336 | """
File name: fcn
Author: <NAME>
Date created: 17.02.2019
Date last modified: 16:59 17.02.2019
Python Version: "3.6"
Copyright = "Copyright (C) 2018-2019 of Packt"
Credits = ["<NAME>, <NAME>"]
License = "MIT"
Version = "1.0.0"
Maintainer = "non"
Status = "Prototype" # "Prototype", "Development", or "Production"
"""
... | 1,426 |
542 | <reponame>vlad-roid/OneSignal-Android-SDK
package com.onesignal;
import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteException;
import org.robolectric.annotation.Implements;
@Implements(OneSignalDbHelper.class)
public class ShadowOneSignalDbHelper {
... | 601 |
1,190 | <filename>configs/repvgg/repvgg-B3g4_4xb64-autoaug-lbs-mixup-coslr-200e_in1k.py<gh_stars>1000+
_base_ = './repvgg-B3_4xb64-autoaug-lbs-mixup-coslr-200e_in1k.py'
model = dict(backbone=dict(arch='B3g4'))
| 107 |
5,937 | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
//+-----------------------------------------------------------------------------
//
//
// $TAG ENGR
// $Mod... | 3,600 |
415 | <filename>cli/src/pcluster/aws/sts.py<gh_stars>100-1000
# Copyright 2021 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.amaz... | 326 |
364 | package com.jslsolucoes.nginx.admin.agent.model.response.virtual.host;
import com.jslsolucoes.nginx.admin.agent.model.FileObject;
import com.jslsolucoes.nginx.admin.agent.model.response.NginxResponse;
public class NginxVirtualHostReadResponse implements NginxResponse {
private FileObject fileObject;
publ... | 226 |
406 | <filename>src/main/java/org/broad/igv/feature/PSLRecord.java
/*
* The MIT License (MIT)
*
* Copyright (c) 2007-2015 Broad Institute
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software wi... | 1,296 |
1,281 | <reponame>mohitktanwr/toolkits
from .common import GenericTimmEncoder, make_n_channel_input_std_conv
__all__ = [
"NFNetF0Encoder",
"NFNetF1Encoder",
"NFNetF2Encoder",
"NFNetF3Encoder",
"NFNetF4Encoder",
"NFNetF5Encoder",
"NFNetF6Encoder",
"NFNetF7Encoder",
]
class NFNetF0Encoder(Gener... | 1,871 |
1,647 | #ifndef PYTHONIC_INCLUDE_NUMPY_ROT90_HPP
#define PYTHONIC_INCLUDE_NUMPY_ROT90_HPP
#include "pythonic/include/utils/functor.hpp"
#include "pythonic/include/utils/numpy_conversion.hpp"
#include "pythonic/include/types/ndarray.hpp"
#include "pythonic/include/numpy/copy.hpp"
PYTHONIC_NS_BEGIN
namespace numpy
{
templat... | 261 |
311 | /**
* Copyright 2019 The JoyQueue 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... | 515 |
380 | <reponame>corriganjeff/oxAuth
/*
* oxAuth is available under the MIT License (2008). See http://opensource.org/licenses/MIT for full text.
*
* Copyright (c) 2014, Gluu
*/
package org.gluu.oxauth.interop;
import static org.testng.Assert.assertTrue;
import org.apache.commons.lang.StringUtils;
import org.gluu.oxaut... | 258 |
1,056 | /*
* 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 ... | 766 |
1,959 | package com.xamarin.android;
public class CallNonvirtualDerived extends CallNonvirtualBase {
public boolean methodInvoked;
public void method () {
System.out.println ("CallNonvirtualDerived.method() invoked!");
methodInvoked = true;
}
}
| 74 |
965 | <reponame>bobbrow/cpp-docs
// int nInitialWidth
// CString strCaption
if (!m_wndShortcutsBar.Create(strCaption, this,
CRect(0, 0, nInitialWidth, nInitialWidth),
ID_VIEW_OUTLOOKBAR, WS_CHILD | WS_VISIBLE | CBRS_LEFT))
{
TRACE0("Failed to create outlook bar\n... | 175 |
1,068 | package org.assertj.android.support.v4.api.print;
import android.support.annotation.IntDef;
import android.support.v4.print.PrintHelper;
import java.lang.annotation.Retention;
import static java.lang.annotation.RetentionPolicy.SOURCE;
@IntDef({
PrintHelper.SCALE_MODE_FILL,
PrintHelper.SCALE_MODE_FIT
})
@Rete... | 128 |
316 | #import <Foundation/Foundation.h>
#import <CoreGraphics/CoreGraphics.h>
#import <CoreLocation/CoreLocation.h>
#import "MGLFoundation.h"
NS_ASSUME_NONNULL_BEGIN
/**
An `MGLMapCamera` object represents a viewpoint from which the user observes
some point on an `MGLMapView`.
#### Related examples
See the <a href="... | 2,162 |
945 | <reponame>0x17FEFE/tensorflow-ue4
#pragma once
#include "IAudioCaptureInterface.h"
class FWindowsAudioCapture : public IAudioCaptureInterface
{
public:
FWindowsAudioCapture();
virtual void StartCapture(TFunction<void(const TArray<uint8>&, float)> OnAudioData = nullptr, TFunction<void(const TArray<uint8>&, float)> ... | 197 |
507 | # tests/test_provider_TomTucka_circleci.py
# Automatically generated by tools/makecode.py (24-Sep-2021 15:13:55 UTC)
def test_provider_import():
import terrascript.provider.TomTucka.circleci
def test_resource_import():
from terrascript.resource.TomTucka.circleci import circleci_environment_variable
fro... | 287 |
353 | CSEXPORT void CSCONV Export_FAssetData_Get_TagsAndValues(FAssetData* instance, TArray<FName>& outTags, TArray<FString>& outValues)
{
for(const TPair<FName, FString>& Pair : instance->TagsAndValues)
{
outTags.Add(Pair.Key);
outValues.Add(Pair.Value);
}
}
CSEXPORT csbool CSCONV Export_FAssetData_IsValid(FAssetDat... | 481 |
1,014 | <filename>firmware/fifo.c
#include <fx2regs.h>
#include <fx2delay.h>
#include "glasgow.h"
void fifo_init() {
// Use newest chip features.
SYNCDELAY;
REVCTL = _ENH_PKT|_DYN_OUT;
// Disable all FIFOs and bus.
// The FIFO clock must stay enabled for FIFO registers to work.
SYNCDELAY;
IFCONFIG = _IFCLKSRC;
... | 1,460 |
1,085 | <filename>dac/backend/src/main/java/com/dremio/dac/model/common/EnumTypeIdResolver.java
/*
* Copyright (C) 2017-2019 Dremio Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*... | 1,380 |
892 | {
"schema_version": "1.2.0",
"id": "GHSA-m495-pg93-8h47",
"modified": "2022-05-13T01:48:38Z",
"published": "2022-05-13T01:48:38Z",
"aliases": [
"CVE-2018-1000511"
],
"details": "WP ULike version 2.8.1, 3.1 contains a Incorrect Access Control vulnerability in AJAX that can result in allows anybody to d... | 450 |
521 | /**********************************************************
* Copyright 1998-2009 VMware, Inc. All rights reserved.
*
* Permission is hereby granted, free of charge, to any person
* obtaining a copy of this software and associated documentation
* files (the "Software"), to deal in the Software without
* restrict... | 2,275 |
362 | package net.ripe.db.whois.scheduler.task.export;
import net.ripe.db.whois.common.rpsl.ObjectType;
import org.junit.jupiter.api.Test;
import static org.hamcrest.core.Is.is;
import static org.hamcrest.MatcherAssert.assertThat;
public class FilenameStrategyTest {
@Test
public void getFilename_SingleFile() {
... | 263 |
575 | // Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "third_party/blink/renderer/core/paint/svg_foreign_object_painter.h"
#include "base/optional.h"
#include "third_party/blink/renderer/core/layout... | 1,017 |
15,666 | <reponame>FeryET/pytorch-lightning<gh_stars>1000+
# Copyright The PyTorch Lightning team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
... | 755 |
2,603 | <gh_stars>1000+
#include <errno.h>
int _faccessat(int dirfd, const char *file, int mode, int flags) {
errno = ENOSYS;
return -1;
}
| 62 |
5,169 | {
"name": "ExternalLib",
"version": "0.0.1",
"summary": "A collection of iOS Libs",
"description": "A collection of iOS Libs.For code management.",
"homepage": "https://bitbucket.org/APPLYD/podtest",
"license": {
"type": "MIT",
"file": "LICENSE"
},
"authors": {
"APPLYD": "<EMAIL>"
},
"so... | 236 |
656 | <reponame>AlexDLSy/canmatrix
#!/usr/bin/env python3
import canmatrix.formats
import sys
# command line options...
usage = """
%prog [options] matrix frame
matrixX can be any of *.dbc|*.dbf|*.kcd|*.arxml
frame is AAA#YYYYYYYYYYYYYYYY or
BBBBB#YYYYYYYYYYYYYYYY or
where AAA is standard ID and BBBBB is extend... | 451 |
372 | <filename>clients/google-api-services-apigee/v1/1.31.0/com/google/api/services/apigee/v1/model/GoogleCloudApigeeV1DeveloperSubscription.java
/*
* 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
... | 1,928 |
1,056 | <gh_stars>1000+
/*
* 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
* ... | 484 |
1,029 | <reponame>suzhenyu006/sonic-agent<filename>src/main/java/org/cloud/sonic/agent/tools/file/FileTool.java<gh_stars>1000+
package org.cloud.sonic.agent.tools.file;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.util.zip.ZipEntry;
import java.u... | 823 |
14,668 | <gh_stars>1000+
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_INSTALLER_GCAPI_MAC_GCAPI_H_
#define CHROME_INSTALLER_GCAPI_MAC_GCAPI_H_
// Error conditions for GoogleChromeCompatibi... | 813 |
346 | <reponame>rhyep/Python_tutorials
print "Time to conquer the variance!"
| 24 |
488 | /*
*
* Copyright (c) International Business Machines Corp., 2001
*
* 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 l... | 3,837 |
8,586 | /* Copyright (c) 2020 vesoft inc. All rights reserved.
*
* This source code is licensed under Apache 2.0 License.
*/
#pragma once
#include <boost/endian/conversion.hpp>
#include "common/base/Base.h"
namespace nebula {
namespace geo {
enum class ByteOrder : uint8_t {
BigEndian = 0,
LittleEndian = 1,
};
stru... | 861 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.