max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
11,868 | <reponame>MalcolmScoffable/openapi-generator<gh_stars>1000+
#ifndef _keyValuePair_H_
#define _keyValuePair_H_
#include<string.h>
typedef struct keyValuePair_t {
char* key;
void* value;
} keyValuePair_t;
keyValuePair_t *keyValuePair_create(char *key, void *value);
keyValuePair_t* keyValuePair_create_allocate... | 181 |
310 | {
"name": "S24B300HL",
"description": "A 23.6 inch LED screen.",
"url": "http://www.samsung.com/uk/support/model/LS24B300HL/EN"
} | 58 |
372 | <reponame>sordina/morpheus-graphql<gh_stars>100-1000
{
"errors": [
{
"message": "Argument \"monster\" got invalid value. Expected type \"Monster!\" found {}. Exclusive input objects must provide a value for at least one field.",
"locations": [{ "line": 2, "column": 22 }]
},
{
"message": ... | 205 |
713 | package org.infinispan.distribution.rehash;
import org.infinispan.test.TestingUtil;
public abstract class RehashLeaveTestBase extends RehashTestBase {
void waitForRehashCompletion() {
TestingUtil.blockUntilViewsReceived(60000, false, caches);
TestingUtil.waitForNoRebalance(caches);
}
}
| 107 |
1,338 | <reponame>Kirishikesan/haiku<filename>src/libs/glut/glutEvent.cpp<gh_stars>1000+
/***********************************************************
* Copyright (C) 1997, Be Inc. Copyright (C) 1999, <NAME>.
*
* This program is freely distributable without licensing fees
* and is provided without guarantee or warrant... | 9,368 |
806 | package com.evenwell.powersaving.g3.powersaver.function;
import android.content.Context;
import android.database.ContentObserver;
import android.provider.Settings.System;
import android.text.TextUtils;
import android.util.Log;
import com.evenwell.powersaving.g3.lpm.LpmUtils;
import com.evenwell.powersaving.g3.utils.PS... | 1,613 |
6,224 | <reponame>olavst-nordic/sdk-zephyr
/*
* Copyright (c) 2017 Intel Corporation.
* Copytight (c) 2019 Nordic Semiconductor ASA
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <zephyr.h>
#include <pm/pm.h>
#include <hal/nrf_regulators.h>
#include <logging/log.h>
LOG_MODULE_DECLARE(soc, CONFIG_SOC_LOG_LEVEL);
/* ... | 397 |
1,172 | <gh_stars>1000+
{
"latencyActive": false,
"exceptionsActive": false,
"killApplicationActive": false,
"memoryActive": false
}
| 54 |
1,272 | <gh_stars>1000+
/*
* Copyright 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... | 5,614 |
376 | package ru.atom.exception;
public class BaseException extends Exception {
public BaseException(String message) {
super("BaseException: " + message);
}
} | 53 |
6,238 | from vibora import Vibora, TestSuite
from vibora.blueprints import Blueprint
from vibora.responses import JsonResponse
class RouterPrefixesTestCase(TestSuite):
async def test_root_route_expect_registered(self):
data = {'hello': 'world'}
app = Vibora()
@app.route('/test', methods=['GET'])... | 445 |
348 | {"nom":"Saint-Denis-les-Ponts","circ":"4ème circonscription","dpt":"Eure-et-Loir","inscrits":1341,"abs":631,"votants":710,"blancs":42,"nuls":17,"exp":651,"res":[{"nuance":"UDI","nom":"<NAME>","voix":444},{"nuance":"REM","nom":"<NAME>","voix":207}]} | 102 |
3,579 | package com.querydsl.apt.domain;
import org.junit.Test;
import com.querydsl.core.annotations.QueryEntity;
import com.querydsl.core.annotations.QuerySupertype;
public class RawTest {
@QuerySupertype
public static class SuperClass<T extends Comparable<T>> {
public String property;
}
@Suppre... | 180 |
332 | <filename>src/frontends/lean/decl_cmds.h
/*
Copyright (c) 2014 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: <NAME>
*/
#pragma once
#include "util/buffer.h"
#include "kernel/expr.h"
#include "frontends/lean/cmd_table.h"
namespace lean {
class pa... | 361 |
2,539 | // Windows/MemoryLock.cpp
#include "StdAfx.h"
#include "../../C/CpuArch.h"
#include "MemoryLock.h"
namespace NWindows {
namespace NSecurity {
#ifndef UNDER_CE
#ifdef _UNICODE
#define MY_FUNC_SELECT(f) :: f
#else
#define MY_FUNC_SELECT(f) my_ ## f
extern "C" {
typedef BOOL (WINAPI * Func_OpenProcessToken)(HANDLE P... | 1,219 |
14,668 | // Copyright 2020 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.
package org.chromium.chrome.browser.settings;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.sup... | 848 |
3,973 | <filename>felix/bpf-gpl/policy.h
// Project Calico BPF dataplane programs.
// Copyright (c) 2020-2021 Tigera, Inc. All rights reserved.
// SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
#ifndef __CALI_POLICY_H__
#define __CALI_POLICY_H__
enum calico_policy_result {
CALI_POL_NO_MATCH,
CALI_POL_ALLOW,
CALI_... | 702 |
348 | <reponame>chamberone/Leaflet.PixiOverlay
{"nom":"<NAME>","circ":"6ème circonscription","dpt":"Seine-Maritime","inscrits":3864,"abs":1986,"votants":1878,"blancs":37,"nuls":9,"exp":1832,"res":[{"nuance":"COM","nom":"<NAME>","voix":834},{"nuance":"FN","nom":"M. <NAME>","voix":417},{"nuance":"REM","nom":"<NAME>","voix":320... | 224 |
384 | <reponame>WanEnNg/mmcv
import os.path as osp
import tempfile
import warnings
def test_save_checkpoint():
try:
import torch
import torch.nn as nn
except ImportError:
warnings.warn('Skipping test_save_checkpoint in the absense of torch')
return
import mmcv.runner
model ... | 331 |
441 | package org.basex.query.func.java;
import static org.basex.query.value.type.AtomType.*;
import static org.basex.query.value.type.NodeType.*;
import java.math.*;
import java.net.*;
import java.util.*;
import javax.xml.namespace.*;
import org.basex.query.value.array.*;
import org.basex.query.value.item.*;
import org.... | 1,778 |
852 | <reponame>ckamtsikis/cmssw<gh_stars>100-1000
import FWCore.ParameterSet.Config as cms
maxEvents = cms.untracked.PSet( input = cms.untracked.int32(-1) )
readFiles = cms.untracked.vstring()
secFiles = cms.untracked.vstring()
source = cms.Source ("PoolSource",fileNames = readFiles, secondaryFileNames = secFiles)
readFil... | 440 |
1,682 | <gh_stars>1000+
/*
Copyright (c) 2018 LinkedIn Corp.
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 ... | 270 |
2,206 | /*
* ******************************************************************************
* *
* *
* * This program and the accompanying materials are made available under the
* * terms of the Apache License, Version 2.0 which is available at
* * https://www.apache.org/licenses/LICENSE-2.0.
* *
* * See the NO... | 1,865 |
14,668 | <reponame>zealoussnow/chromium
// 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.
#ifndef UI_GFX_MOJOM_HDR_METADATA_MOJOM_TRAITS_H_
#define UI_GFX_MOJOM_HDR_METADATA_MOJOM_TRAITS_H_
#include "ui/gfx/hdr_m... | 769 |
776 | <reponame>Diffblue-benchmarks/actframework<filename>legacy-testapp/src/test/java/testapp/endpoint/SimpleEventListenerMarkerTest.java
package testapp.endpoint;
import org.junit.Test;
import java.io.IOException;
public class SimpleEventListenerMarkerTest extends EndpointTester {
@Test
public void test() thro... | 146 |
1,664 | <reponame>samyzh/ambari
/*
* 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 ... | 706 |
14,668 | <filename>chromeos/network/onc/onc_normalizer_fuzzer.cc
// 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.
#include <stddef.h>
#include <stdint.h>
#include "base/json/json_reader.h"
#include "base/strings... | 404 |
14,668 | <reponame>zealoussnow/chromium
// Copyright 2018 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 IOS_CHROME_BROWSER_UI_AUTHENTICATION_CELLS_TABLE_VIEW_ACCOUNT_ITEM_H_
#define IOS_CHROME_BROWSER_UI_AUTHENTICATION_... | 682 |
306 | <filename>warp/tests/test_mesh_query_ray.py
# Copyright (c) 2022 NVIDIA CORPORATION. All rights reserved.
# NVIDIA CORPORATION and its licensors retain all intellectual property
# and proprietary rights in and to this software, related documentation
# and any modifications thereto. Any use, reproduction, disclosure o... | 3,024 |
395 | // For Capstone Engine. AUTO-GENERATED FILE, DO NOT EDIT
package capstone;
public class Sparc_const {
// Enums corresponding to Sparc condition codes, both icc's and fcc's.
public static final int SPARC_CC_INVALID = 0;
// Integer condition codes
public static final int SPARC_CC_ICC_A = 8 + 256;
... | 8,281 |
550 | <gh_stars>100-1000
from glue.core.fitters import BaseFitter1D
from glue.core.simpleforms import IntOption
from glue.config import fit_plugin
import numpy as np
@fit_plugin
class PolynomialFitter(BaseFitter1D):
label = "Polynomial"
degree = IntOption(min=0, max=5, default=3, label="Polynomial Degree")
def... | 291 |
537 | <reponame>wangxuan-cn/SMSGate<filename>src/test/java/es/rickyepoderi/wbxml/bind/wvcsp/ListManageResponse.java<gh_stars>100-1000
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vJAXB 2.1.10
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jax... | 1,143 |
66,985 | /*
* Copyright 2012-2019 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | 468 |
1,110 | <filename>Classes/GSStartup.h
//
// GSStartup.h
// gfxCardStatus
//
// Created by <NAME> on 6/12/12.
// Copyright (c) 2012 <NAME>. All rights reserved.
//
@interface GSStartup : NSObject
// Whether or not the app exists in the current user's Login Items list.
+ (BOOL)existsInStartupItems;
// Put the app in the cu... | 137 |
743 | {"actions":[{"fallback":"drop","title":"This is a bug!","type":"SomeCustomAction"}],"body":[{"fallback":"drop","type":"SomeCustomElement"}],"type":"AdaptiveCard","version":"1.2"} | 47 |
32,544 | package com.baeldung.hibernate.manytomany.util;
import org.hibernate.SessionFactory;
import org.hibernate.boot.registry.StandardServiceRegistryBuilder;
import org.hibernate.cfg.Configuration;
import org.hibernate.service.ServiceRegistry;
import com.baeldung.hibernate.manytomany.model.Employee;
import com.baeldu... | 709 |
3,755 | <reponame>alijasim/frappe<filename>frappe/utils/lazy_loader.py
import importlib.util
import sys
def lazy_import(name, package=None):
"""Import a module lazily.
The module is loaded when modules's attribute is accessed for the first time.
This works with both absolute and relative imports.
$ cat mod.py
print("Loa... | 365 |
322 | <filename>spring-social-core/src/main/java/org/springframework/social/oauth2/OAuth2ServiceProvider.java
/*
* Copyright 2015 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy ... | 441 |
2,360 | <filename>var/spack/repos/builtin/packages/py-extension-helpers/package.py
# Copyright 2013-2021 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
class PyExtensionHelpers(PythonPackage):
"... | 311 |
335 | {
"word": "Bladder",
"definitions": [
"A muscular membranous sac in the abdomen which receives urine from the kidneys and stores it for excretion.",
"An inflated or hollow flexible bag or chamber."
],
"parts-of-speech": "Noun"
} | 92 |
2,023 | <reponame>tdiprima/code
#!/usr/bin/env python
import os
import subprocess
import sys
import StringIO
def cmdtolist(str):
cmdlist=[]
current=[]
gc=''
last=''
for c in str:
if (c == '\\'):
pass
elif (last == '\\'):
current.append(c)
elif (gc != ''):
... | 986 |
2,151 | // 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.
#include "chrome/browser/ui/desktop_ios_promotion/desktop_ios_promotion_util.h"
#include <memory>
#include "base/i18n/rtl.h"
#include "base/metrics/fiel... | 3,340 |
573 | <reponame>EdwardBetts/UniversalSplitScreen
#include "stdafx.h"
#include "InstallHooks.h"
#include "Hooking.h"
#include <vector>
#include <winternl.h>
#include <random>
#include <map>
#include <iostream>
std::mt19937 randomGenerator;
//Key: search term. Value: the assigned name that is replaced for every name that mat... | 2,268 |
583 | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# Copyright (C) 2017-2020 The Project X-Ray Authors.
#
# Use of this source code is governed by a ISC-style
# license that can be found in the LICENSE file or at
# https://opensource.org/licenses/ISC
#
# SPDX-License-Identifier: ISC
from prjxray.segmaker import Segmake... | 6,336 |
2,072 | # Copyright Contributors to the Amundsen project.
# SPDX-License-Identifier: Apache-2.0
from amundsen_application.base.base_bigquery_preview_client import BaseBigqueryPreviewClient
from amundsen_application.models.preview_data import (
PreviewData,
)
from google.cloud import bigquery
from flatten_dict import flatt... | 749 |
1,240 | <filename>SubEthaEdit-Mac/Source/SEEApplication.h
// SEEApplication.h
// SubEthaEdit
//
// Created by <NAME> on 06.08.14.
#import <Cocoa/Cocoa.h>
@interface SEEApplication : NSApplication
@end
| 77 |
1,975 | // Copyright 2006-2009 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 ... | 1,300 |
856 | //
// Copyright © 2020 Arm Ltd. All rights reserved.
// SPDX-License-Identifier: MIT
//
#include "SampleMemoryManager.hpp"
#include <algorithm>
namespace sdb // sample dynamic backend
{
SampleMemoryManager::SampleMemoryManager()
{}
SampleMemoryManager::~SampleMemoryManager()
{}
SampleMemoryManager::Pool* SampleMe... | 672 |
1,198 | <reponame>dherbst/lullaby
/*
Copyright 2017-2019 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 ... | 700 |
4,335 | /* ----------------------------------------------------------------------------
* Copyright (c) Huawei Technologies Co., Ltd. 2019-2020. All rights reserved.
* Description: Stack Info Implementation
* Author: Huawei LiteOS Team
* Create: 2019-09-01
* Redistribution and use in source and binary forms, with or witho... | 999 |
371 | /***************************************************************
//工程名称 : ClassPropertyTest
//文件名称 : MyObject.h
//创建时间 : 2017/3/14
//创建作者 : JXT
//版权归属 : 霖溦
//文件描述 :
***************************************************************/
#import <Foundation/Foundation.h>
@interface MyObject : NSObject
//实例属性
@proper... | 244 |
19,628 | //
// UIImageView+DoraemonSDImage.h
// DoraemonKit
//
// Created by yixiang on 2019/6/19.
//
#import <UIKit/UIKit.h>
NS_ASSUME_NONNULL_BEGIN
@interface UIImageView (DoraemonSDImage)
@end
NS_ASSUME_NONNULL_END
| 98 |
575 | <gh_stars>100-1000
// Copyright 2019 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/modules/launch/file_handling_expiry_impl.h"
#include <memory>
#include "third_party/blink/public... | 1,010 |
3,513 | <filename>src/SHADERed/Objects/Debug/DebuggerSuggestion.h
#pragma once
#include <SHADERed/Objects/PipelineItem.h>
#include <glm/glm.hpp>
namespace ed {
class DebuggerSuggestion {
public:
enum class SuggestionType {
ComputeShader
};
DebuggerSuggestion()
{
Thread = WorkgroupSize = glm::ivec3(0);
Type... | 204 |
30,023 | <gh_stars>1000+
"""Support for IBM Watson TTS integration."""
| 19 |
12,278 | <filename>libs/geometry/index/test/rtree/generated/s2d/rtree_drst_que_s2d.cpp<gh_stars>1000+
// Boost.Geometry Index
// Unit Test
// Copyright (c) 2011-2014 <NAME>, <NAME>.
// Use, modification and distribution is subject to the Boost Software License,
// Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at... | 239 |
369 | <reponame>Shiva-D/rtos-course
/* sys/ports_def.h -- Definition of system ports
Copyright 2000 Free Software Foundation, Inc.
Written by <NAME> (<EMAIL>)
This file is part of GEL.
GEL is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License** as published by
th... | 367 |
988 | //------------------------------------------------------------------------------
// GB_AxB_saxpy_template: C=A*B, C<M>=A*B, or C<!M>=A*B via saxpy method
//------------------------------------------------------------------------------
// SuiteSparse:GraphBLAS, <NAME>, (c) 2017-2021, All Rights Reserved.
// SPDX-Licens... | 814 |
575 | <gh_stars>100-1000
// Copyright 2016-2019 Proyectos y Sistemas de Mantenimiento SL (eProsima).
//
// 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/LIC... | 2,069 |
2,023 | <reponame>tdiprima/code
#!/usr/bin/python2.6
# -*- coding: utf-8 -*-
""" Read page indices to build book index. """
# index should be between 3 and 9 pages
#1. fix tricky names (e.g., <NAME>, <NAME>)
import codecs
import getopt
from optparse import OptionParser
import os
import re
import sys
ABBRV = (
('NPOV', 'Ne... | 3,014 |
379 | package com.oim.fx.view.node;
import com.oim.core.business.sender.UserCategoryMemberSender;
import com.oim.core.business.service.UserService;
import com.oim.core.business.view.UserDataView;
import com.oim.core.common.app.view.UserHeadMenuView;
import com.only.common.result.Info;
import com.only.fx.common.component.Onl... | 2,177 |
316 | <reponame>pcrane70/Argus
/*
* Copyright (c) 2016, Salesforce.com, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright ... | 3,235 |
348 | {"nom":"Veslud","circ":"1ère circonscription","dpt":"Aisne","inscrits":179,"abs":77,"votants":102,"blancs":4,"nuls":8,"exp":90,"res":[{"nuance":"REM","nom":"<NAME>","voix":54},{"nuance":"FN","nom":"<NAME>","voix":36}]} | 89 |
421 | <gh_stars>100-1000
// The following code example shows how to create a CultureInfo for S"Spanish - Spain"
// with the international sort and another with the traditional sort.
// <snippet1>
using namespace System;
using namespace System::Collections;
using namespace System::Globalization;
int main()
{
... | 2,179 |
453 | /*
* Promise API implemented by cpp as Javascript promise style
*
* Copyright (c) 2016, xhawk18
* at gmail.com
*
* The MIT License (MIT)
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
*... | 1,965 |
575 | <filename>tools/mb/mb_config_expectations/client.v8.fyi.json
{
"Android V8 FYI Release (Nexus 5X)": {
"gn_args": {
"dcheck_always_on": true,
"ffmpeg_branding": "Chrome",
"is_component_build": false,
"is_debug": false,
"proprietary_codecs": true,
"symbol_level": 1,
"target... | 1,894 |
460 | <gh_stars>100-1000
// Boost.Bimap
//
// Copyright (c) 2006-2007 <NAME>
//
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
/// \file detail/concept_tags.hpp
/// \brief Bimap tags and concepts
#ifndef ... | 1,274 |
588 | package com.flycms.web.tags;
import com.flycms.constant.Const;
import com.flycms.core.base.AbstractTagPlugin;
import com.flycms.module.user.model.User;
import freemarker.core.Environment;
import freemarker.template.*;
import org.springframework.stereotype.Service;
import org.springframework.web.context.request.Request... | 462 |
522 | /**
* @file dot_medianSort.c Generate MedianSort DOT graph
* @brief
* Implementation that uses dot.h interface to produce on stdout the
* DOT commands for a MedianSort execution.
*
* This code is not intended to be used for sorting. Rather, it
* generates DOTTY output that shows the behavior of Me... | 1,603 |
28,056 | package com.alibaba.json.bvtVO.alipay;
import com.alibaba.fastjson.annotation.JSONField;
import java.util.ArrayList;
import java.util.List;
public class PlatformDepartmentVO {
@JSONField(ordinal=1)
private String id ;
@JSONField(ordinal=2)
private String label ;
@JSONField(ordinal=3)
private ... | 2,621 |
679 | <filename>main/bridges/source/cpp_uno/shared/types.cxx
/**************************************************************
*
* 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 c... | 1,868 |
331 | <filename>unit-tests/apiversions-should-be-recent/Pass/ProviderResource.json
{
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"resources": [
{
"apiVersion": "2018-09-01-preview",
"name": "[concat(para... | 429 |
302 | #include "resourcehandlersfactory.h"
#include "resourcehandlers.h"
#include "every_cpp.h"
namespace BrowserAutomationStudioFramework
{
ResourceHandlersFactory::ResourceHandlersFactory(QObject *parent) :
IResourceHandlersFactory(parent)
{
}
IResourceHandlers * ResourceHandlersFactory::CreateReso... | 135 |
10,980 | <gh_stars>1000+
import os
import sys
from optparse import OptionParser
import ParseLogs
#
# Logalyzer. Original: https://github.com/hatRiot/logalyzer
# Converted to python3.6 by @programmerchad
#
# callback for the user flag
def user_call(option, opt_str, value, parser):
if len(parser.rargs) != 0:
valu... | 2,056 |
1,452 | <reponame>CrazyLeoJay/Apktool
/*
* Copyright (C) 2010 <NAME> <<EMAIL>>
* Copyright (C) 2010 <NAME> <<EMAIL>>
*
* 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.... | 1,619 |
7,158 | <filename>modules/quality/src/qualitybrisque.cpp
// 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.
/*
Copyright (c) 2011 The University of Texas at Austin
All rights reserved.... | 5,891 |
447 | """
The `pip_audit` APIs.
"""
from pip_audit._version import __version__
__all__ = ["__version__"]
| 39 |
1,156 | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.
import copy
import unittest
import numpy as np
import numpy.testing as npt
import torch
from reagent.core.types import CBInput
from reagent.gym.policies.policy import Policy
from reagent.gym.policies.samplers.discrete_sampl... | 2,841 |
2,389 | /*
Copyright 2021 The Kubernetes Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, softwar... | 1,651 |
431 | package com.jpay.entity;
public class Order {
private String appId;
private String body;
private String subject;
private String deviceInfo;//可选 设备ID
private String nofityUrl;
private String paraTradeNo;
private String paraId;
private int totalFee;//单位 元
private String attach;
private String channelId;
p... | 582 |
2,881 | package com.example.zhpan.banner.recyclerview.ui;
import android.content.Context;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.recyclerview.widget.RecyclerView;
import android.util.AttributeSet;
import android.view.View;
import android.view.ViewGroup;
import com.example.z... | 2,125 |
1,875 | <gh_stars>1000+
/*
* Copyright 2018 <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 required by applicabl... | 483 |
602 | <gh_stars>100-1000
package org.corfudb.utils.lock.states;
import lombok.extern.slf4j.Slf4j;
import org.corfudb.utils.lock.Lock;
import java.util.Optional;
/**
* Stopped State. Lock transitions to stopped state only if there is
* an unrecoverable error.
*
* @author mdhawan
* @since 04/17/2020
*/
@Slf4j
public c... | 572 |
372 | //
// Notice Regarding Standards. AMD does not provide a license or sublicense to
// any Intellectual Property Rights relating to any standards, including but not
// limited to any audio and/or video codec technologies such as MPEG-2, MPEG-4;
// AVC/H.264; HEVC/H.265; AAC decode/FFMPEG; AAC encode/FFMPEG; VC-1; and M... | 4,278 |
460 | /////////////////////////////////////////////////////////////////////////////
// Name: wx/motif/icon.h
// Purpose: wxIcon class
// Author: <NAME>
// Modified by:
// Created: 17/09/98
// RCS-ID: $Id: icon.h 42752 2006-10-30 19:26:48Z VZ $
// Copyright: (c) <NAME>
// Licence: wxWindows lice... | 694 |
1,970 | /*
* 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,601 |
581 | <reponame>flix-/phasar
#include <iostream>
using namespace std;
int main() {
std::string c("test");
std::string d(c);
std::cout << c << d << "\n";
std::string e, f;
e = c;
std::cout << e << "\n";
std::string g(move(e));
std::cout << g << "\n";
f = move(d);
std::cout << f << "\n";
return 0;
}
| 147 |
476 | /*
* 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
* distribut... | 3,554 |
424 | #include <Fastor/Fastor.h>
using namespace Fastor;
#define Tol 1e-12
#define BigTol 1e-5
template<typename T>
void run() {
using std::abs;
{
Tensor<T,9,10> a1; a1.iota(0);
Tensor<int,5,5> it1;
for (auto i=0; i<5; ++i)
for (auto j=0; j<5; ++j)
it1(i,j) = i*... | 2,179 |
4,268 | import os, sys, json, yaml
if __name__ == '__main__':
# Use safe_dump() instead of dump() to avoid tags like "!!python/unicode"
print(yaml.safe_dump(json.load(sys.stdin), default_flow_style=False))
| 77 |
574 | # -*- coding: utf-8 -*-
from strategyease_sdk.jobs.basic_job import BasicJob
class ConvertibleBondsPurchaseJob(BasicJob):
def __init__(self, client, client_aliases=None, name=None, **kwargs):
super(ConvertibleBondsPurchaseJob, self).__init__(name, kwargs.get('schedule', None), kwargs.get('enabled', False... | 327 |
372 | #include "TextureManager.h"
#include "Bitmap.h"
#if IMGUI_USE_GLBINDING
#define GLBINDING_AVAILABLE 1
#include <glbinding-aux/ContextInfo.h>
#include <glbinding/gl21/gl.h>
#include <glbinding/gl21ext/gl.h>
#include <glbinding/gl30/gl.h>
using namespace gl21;
#elif IMGUI_USE_GLAD2
#include <glad/gl.h>
#else
#include <W... | 1,746 |
470 | <filename>Sonora/Categories/NSObject+AssociatedObjects.h
//
// NSObject+AssociatedObjects.h
//
// Created by <NAME> on 8/27/09.
// Public domain because I love you.
//
#import <Foundation/Foundation.h>
@interface NSObject (AMAssociatedObjects)
- (void)associateValue:(id)value withKey:(void *)key; // Strong referen... | 145 |
3,104 | {
"compileOnSave": false,
"compilerOptions": {
"module": "commonjs",
"noEmit": true,
"noImplicitAny": true,
"types": []
},
"include": [
"../index.d.ts",
"../moment-timezone-utils.d.ts",
"./moment-timezone-tests.ts",
"./moment-timezone-utils-tests.ts"
]
}
| 140 |
451 | <reponame>bujiio/buji-pac4j<filename>src/main/java/io/buji/pac4j/filter/CallbackFilter.java
/*
* Licensed to the bujiio organization of the Shiro project under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. ... | 1,236 |
348 | {"nom":"Marsac","circ":"2ème circonscription","dpt":"Tarn-et-Garonne","inscrits":105,"abs":39,"votants":66,"blancs":4,"nuls":4,"exp":58,"res":[{"nuance":"RDG","nom":"Mme <NAME>","voix":35},{"nuance":"FN","nom":"M. <NAME>","voix":23}]} | 98 |
10,225 | <reponame>PieterjanDeconinck/quarkus<filename>integration-tests/main/src/test/java/io/quarkus/it/main/JaxbTestCase.java
package io.quarkus.it.main;
import static org.hamcrest.Matchers.contains;
import org.junit.jupiter.api.Test;
import io.quarkus.test.junit.QuarkusTest;
import io.restassured.RestAssured;
@QuarkusTe... | 220 |
945 | <filename>node-commons/src/main/java/org/apache/iotdb/commons/auth/role/LocalFileRoleAccessor.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 ownership. ... | 3,453 |
851 | <filename>references/ExoPlayer/library/core/src/main/java/com/google/android/exoplayer2/extractor/mp4/PsshAtomUtil.java
/*
* Copyright (C) 2016 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.
* Yo... | 2,546 |
735 | package org.mvel2.optimizers.impl.refl.nodes;
import org.mvel2.compiler.ExecutableStatement;
import org.mvel2.integration.VariableResolverFactory;
import java.lang.reflect.Array;
import static org.mvel2.DataConversion.convert;
public abstract class InvokableAccessor extends BaseAccessor {
protected int length;
... | 507 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.