max_stars_count
int64
301
224k
text
stringlengths
6
1.05M
token_count
int64
3
727k
390
<filename>tests/test_agents/test_deep/test_vpg.py<gh_stars>100-1000 import shutil from genrl.agents import VPG from genrl.environments import VectorEnv from genrl.trainers import OnPolicyTrainer class TestVPG: def test_vpg_discrete(self): env = VectorEnv("CartPole-v0") algo = VPG("mlp", env) ...
524
6,335
<gh_stars>1000+ package permissions.dispatcher.processor.base; import org.hamcrest.core.SubstringMatcher; final class StringEquals extends SubstringMatcher { StringEquals(String substring) { super(substring); } @Override protected boolean evalSubstringOf(String string) { // Strip Exc...
209
1,531
package com.sleekbyte.tailor.functional; import com.sleekbyte.tailor.common.Messages; import com.sleekbyte.tailor.common.Rules; import com.sleekbyte.tailor.common.Severity; import com.sleekbyte.tailor.output.Printer; import org.junit.runner.RunWith; import org.mockito.runners.MockitoJUnitRunner; /** * Functional tes...
2,015
679
/************************************************************** * * 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 y...
2,377
1,679
<filename>src/boards/mcu/stm32/EEPROM_Emul/Core/eeprom_emul_types.h /** ****************************************************************************** * @file EEPROM_Emul/Core/eeprom_emul_types.h * @author MCD Application Team * @brief This file contains all the functions prototypes for the EEPROM ...
1,604
648
{"category":[{"coding":[{"code":"chemical","display":"Chemical","system":"http://hl7.org.fhir/substance-category"}]}],"code":{"coding":[{"code":"88480006","display":"Potassium","system":"http://snomed.info/sct"}]},"id":"f203","identifier":[{"system":"http://acme.org/indentifiers/substances","value":"1234"}],"resourceTy...
258
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. #include "chrome/browser/ui/webui/settings/chromeos/constants/constants_util.h" #include "base/no_destructor.h" namespace chromeos { namespace settings ...
572
652
<gh_stars>100-1000 // Copyright (c) 2019, SafeBreach // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are met: // // * Redistributions of source code must retain the above copyright notice, // ...
1,234
372
<reponame>mjhopkins/google-api-java-client-services /* * 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...
1,011
4,894
/* Copyright (c) 2008-2020, <NAME> * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following * conditions are met: * * - Redistributions of source code must retain the above copyright notice, this list of condition...
992
2,253
/************************************************************************************ * * * Copyright (c) 2014 - 2018 <NAME> <<EMAIL>> * * ...
9,764
791
#pragma once #include "../../rendering/mesh.h" #include <core/reflection/reflection.h> #include <core/serialization/serialization.h> REFLECT_EXTERN(mesh::info); namespace bgfx { SAVE_EXTERN(VertexDecl); LOAD_EXTERN(VertexDecl); } SAVE_EXTERN(mesh::triangle); LOAD_EXTERN(mesh::triangle); SAVE_EXTERN(skin_bind_data:...
278
516
<reponame>scatterfish/unnamed-sdvx-clone<filename>Tests.Shared/src/TestString.cpp #include <Shared/Shared.hpp> #include <Shared/String.hpp> #include <Tests/Tests.hpp> std::vector<std::pair<const char*, const wchar_t*>> testCases({ {"", L""}, {"Hello, world!", L"Hello, world!"}, // Borute in Katakana {"\xe3\x83\x9...
811
1,350
<gh_stars>1000+ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. package com.azure.resourcemanager.security.fluent; import com.azure.core.annotation.ReturnType; import com.azure.core.annotation.ServiceMethod; im...
1,023
892
<filename>advisories/unreviewed/2022/05/GHSA-4rp2-whvp-25jm/GHSA-4rp2-whvp-25jm.json { "schema_version": "1.2.0", "id": "GHSA-4rp2-whvp-25jm", "modified": "2022-05-13T01:10:20Z", "published": "2022-05-13T01:10:20Z", "aliases": [ "CVE-2018-19981" ], "details": "Amazon AWS SDK <=2.8.5 for Android uses A...
768
1,627
<filename>src/main/java/net/querz/mcaselector/filter/LastUpdateFilter.java package net.querz.mcaselector.filter; import net.querz.mcaselector.io.mca.ChunkData; import net.querz.mcaselector.text.TextHelper; public class LastUpdateFilter extends LongFilter { public LastUpdateFilter() { this(Operator.AND, Comparator...
486
332
// Autogenerated from vk-api-schema. Please don't edit it manually. package com.vk.api.sdk.objects.utils; import com.google.gson.annotations.SerializedName; import com.vk.api.sdk.queries.EnumParam; /** * Object type */ public enum DomainResolvedType implements EnumParam { @SerializedName("user") USER("user"...
333
471
# Generated by Django 2.2.24 on 2021-07-29 21:32 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('enterprise', '0002_enterprisepermissions_account_unique'), ] operations = [ migrations.SeparateDatabaseAnd...
357
2,338
<reponame>medismailben/llvm-project<gh_stars>1000+ // Check that without suppressions, we catch the issue. // RUN: %clangxx_asan -O0 %s -o %t -framework Foundation // RUN: not %run %t 2>&1 | FileCheck --check-prefix=CHECK-CRASH %s // Check that suppressing a function name works within a no-fork sandbox // RUN: echo "i...
442
14,425
/* * 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,625
2,151
/* ** This file contains the TestDb bt wrapper. */ #include "lsmtest_tdb.h" #include "lsmtest.h" #include <unistd.h> #include "bt.h" #include <pthread.h> typedef struct BtDb BtDb; typedef struct BtFile BtFile; /* Background checkpointer interface (see implementations below). */ typedef struct bt_ckpter bt_ckpter; ...
12,961
1,666
package org.grobid.core.analyzers; import org.grobid.core.layout.LayoutToken; import org.grobid.core.lang.Language; import java.util.List; import java.util.ArrayList; import java.util.StringTokenizer; /** * Abstract analyzer for tokenizing/filtering text. * */ public interface Analyzer { List<String> tokenize(...
161
1,691
package com.kodedu.service; import javafx.event.ActionEvent; import java.util.concurrent.Executor; import java.util.concurrent.Future; import java.util.concurrent.ScheduledFuture; import java.util.concurrent.TimeUnit; import java.util.function.Consumer; import java.util.function.Supplier; /** * Created by usta on 2...
497
14,668
// 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 CHROME_BROWSER_SIGNIN_HEADER_MODIFICATION_DELEGATE_IMPL_H_ #define CHROME_BROWSER_SIGNIN_HEADER_MODIFICATION_DELEGATE_IMPL_H_ #include "base/memo...
812
647
/* * 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 of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable l...
4,085
14,668
<filename>vendor/chromium/mojo/public/cpp/bindings/unique_associated_receiver_set.h // 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. #ifndef MOJO_PUBLIC_CPP_BINDINGS_UNIQUE_ASSOCIATED_RECEIVER_SET_H_ #de...
499
14,668
<reponame>chromium/chromium // 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. #include "ui/aura/test/ui_controls_ozone.h" #include "base/ignore_result.h" #include "build/build_config.h" #include "build/c...
7,102
368
/* Plugin-SDK (Grand Theft Auto Vice City) source file Authors: GTA Community. See more here https://github.com/DK22Pac/plugin-sdk Do not delete this comment block. Respect others' work! */ #include "CPad.h" PLUGIN_SOURCE_FILE PLUGIN_VARIABLE CKeyboardState &CPad::NewKeyState = *reinterpret_cast<CKeyb...
11,137
5,607
<filename>http-server-netty/src/main/java/io/micronaut/http/server/netty/HttpToHttpsRedirectHandler.java<gh_stars>1000+ /* * Copyright 2017-2021 original 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...
1,210
4,606
<reponame>makotonium/dagster import warnings from typing import TYPE_CHECKING, Any, Dict, List, Optional, Union, cast from dagster import check from dagster.core.definitions.events import AssetKey from dagster.core.definitions.op_def import OpDefinition from dagster.core.definitions.solid import SolidDefinition from d...
7,664
348
<reponame>chamberone/Leaflet.PixiOverlay {"nom":"Echourgnac","circ":"1ère circonscription","dpt":"Dordogne","inscrits":317,"abs":151,"votants":166,"blancs":9,"nuls":8,"exp":149,"res":[{"nuance":"REM","nom":"<NAME>","voix":79},{"nuance":"FI","nom":"<NAME>","voix":70}]}
110
14,668
// Copyright (c) 2016 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 "net/tools/transport_security_state_generator/preloaded_state_generator.h" #include <string> #include "base/strings/string_number_conversio...
3,933
3,428
<reponame>ghalimi/stdlib {"id":"00713","group":"easy-ham-2","checksum":{"type":"MD5","value":"49b7b319d69b2dc2bc27a5dd206750a0"},"text":"From <EMAIL> Wed Jul 24 14:15:41 2002\nReturn-Path: <<EMAIL>>\nDelivered-To: yyyy<EMAIL>.netnoteinc.com\nReceived: from localhost (localhost [127.0.0.1])\n\tby phobos.labs.netnoteinc...
1,026
879
<filename>HibernateSpringBootImmutableEntity/src/main/java/com/bookstore/service/BookstoreService.java package com.bookstore.service; import com.bookstore.entity.Author; import com.bookstore.repository.AuthorRepository; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Tr...
425
675
""" Collecting all main APIs for optimisation here. -- <EMAIL> """
23
667
<gh_stars>100-1000 #include <libavcodec/avcodec.h> int main(void) { return AV_CODEC_ID_NONE; }
49
795
<reponame>ddymko/headlamp<gh_stars>100-1000 { "Loading binding details": "A carregar detalhes de «binding»", "Ref. API Group": "Grupo Ref. API" }
61
640
/*************************************************************** * StatusDB.h * Header for Rex addin program. ***************************************************************/ #ifndef STATUSDB_H #define STATUSDB_H enum { STATUS_RECID = 1, STATUS_STATUS }; enum { IDX_STATUS_RECID = 1 }; #define REX_NE...
139
1,738
/* * All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or * its licensors. * * For complete copyright and license terms please see the LICENSE at the root of this * distribution (the "License"). All use of this software is governed by the License, * or, if provided, by the license below or t...
10,612
338
<reponame>XmobiTea-Family/ezyfox-server<filename>ezyfox-server-core/src/main/java/com/tvd12/ezyfoxserver/socket/EzySimpleSocketStream.java<gh_stars>100-1000 package com.tvd12.ezyfoxserver.socket; import com.tvd12.ezyfoxserver.entity.EzySession; import lombok.Getter; @Getter public class EzySimpleSocketStream impleme...
292
852
<reponame>malbouis/cmssw #ifndef CondFormats_CSCObjects_CSCL1TPLookupTableME11ILT_h #define CondFormats_CSCObjects_CSCL1TPLookupTableME11ILT_h #include "CondFormats/Serialization/interface/Serializable.h" #include <vector> class CSCL1TPLookupTableME11ILT { public: CSCL1TPLookupTableME11ILT(); ~CSCL1TPLookupTable...
3,187
3,702
<reponame>skahler-yuga/yugabyte-db<gh_stars>1000+ // Copyright (c) YugaByte, 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 // // Unle...
2,641
1,962
package com.bolingcavalry.druidonesource.mapper; import com.bolingcavalry.druidonesource.entity.LogExtend; import com.bolingcavalry.druidonesource.entity.User; import org.springframework.stereotype.Repository; import java.util.List; /** * @Description: (这里用一句话描述这个类的作用) * @author: willzhao E-mail: <EMAIL> * @date:...
272
838
<filename>test/lib/stmt.h /** * Setup a test prepared statement. */ #ifndef TEST_STMT_H #define TEST_STMT_H #include <sqlite3.h> #define FIXTURE_STMT sqlite3_stmt *stmt #define STMT_PREPARE(CONN, STMT, SQL) \ { \ int rc; ...
610
4,036
// Generated automatically from android.util.ArrayMap for testing purposes package android.util; import java.util.Collection; import java.util.Map; import java.util.Set; public class ArrayMap<K, V> implements Map<K, V> { public ArrayMap(){} public ArrayMap(ArrayMap<K, V> p0){} public ArrayMap(int p0){} ...
557
14,668
<reponame>zealoussnow/chromium // Copyright (c) 2013 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 "components/policy/core/common/policy_load_status.h" #include "base/bind.h" #include "base/metrics/histogram....
420
476
<filename>hetu-sql-migration-tool/src/main/java/io/hetu/core/sql/migration/tool/SqlConverterFactory.java /* * Copyright (C) 2018-2020. Huawei Technologies Co., Ltd. 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...
523
352
#pragma once #include <stdint.h> #include "minheap.h" struct rank_hit { doc_id_t docID; float score; uint32_t n_occurs; position_t *occurs; /* occur positions */ }; typedef struct priority_Q { struct heap heap; uint32_t n_elements; } ranked_results_t /* a conceptually more descriptive name */; v...
424
435
{ "copyright_text": "Standard YouTube License", "description": "PyData DC 2016\n\nThis tutorial is an introduction to how to matplotlib's event handling system to build an tool for interactively exploring multi-scale time series data.\n\nThe primary example will be how to 'drill down' through summary data sets to v...
309
38,047
#include "test/jemalloc_test.h" #include "jemalloc/internal/ticker.h" static nstime_monotonic_t *nstime_monotonic_orig; static nstime_update_t *nstime_update_orig; static unsigned nupdates_mock; static nstime_t time_mock; static bool monotonic_mock; static bool check_background_thread_enabled(void) { bool enabled;...
8,231
611
// SPDX-License-Identifier: BSD-3-Clause // Copyright Contributors to the OpenColorIO Project. #ifndef INCLUDED_OCIO_MTLTEXTURE_H #define INCLUDED_OCIO_MTLTEXTURE_H #include <vector> #include <OpenGL/gl.h> #import <AppKit/AppKit.h> #import <Metal/Metal.h> #import <CoreVideo/CVPixelBuffer.h> #import <CoreVideo/CV...
1,143
678
<filename>iOSOpenDev/frameworks/StoreServices.framework/Headers/SSNetworkConstraints.h /** * This header is generated by class-dump-z 0.2b. * * Source: /System/Library/PrivateFrameworks/StoreServices.framework/StoreServices */ #import <StoreServices/SSXPCCoding.h> #import <StoreServices/StoreServices-Structs.h> #i...
738
631
<filename>Source/OpenNI/XnXml.cpp /***************************************************************************** * * * OpenNI 1.x Alpha * * Copyright (C) 2012 PrimeSense Ltd. ...
3,668
394
<reponame>solhuebner/ESP32-BLE-Gamepad #ifndef ESP32_BLE_GAMEPAD_H #define ESP32_BLE_GAMEPAD_H #include "sdkconfig.h" #if defined(CONFIG_BT_ENABLED) #include "nimconfig.h" #if defined(CONFIG_BT_NIMBLE_ROLE_PERIPHERAL) #include "BleConnectionStatus.h" #include "NimBLEHIDDevice.h" #include "NimBLECharacteristic.h" #de...
3,586
469
<filename>uats/src/main/java/org/mini2Dx/uats/TilingDrawableUAT.java<gh_stars>100-1000 package org.mini2Dx.uats; import org.mini2Dx.core.Graphics; import org.mini2Dx.core.Mdx; import org.mini2Dx.core.files.FileHandleResolver; import org.mini2Dx.core.game.GameContainer; import org.mini2Dx.core.graphics.TilingDrawable; ...
794
1,311
<filename>Jolt/Physics/Collision/Shape/ScaleHelpers.h // SPDX-FileCopyrightText: 2021 <NAME> // SPDX-License-Identifier: MIT #pragma once #include <Physics/PhysicsSettings.h> namespace JPH { /// Helper functions to get properties of a scaling vector namespace ScaleHelpers { /// The tolerance used to check if compo...
1,265
852
<filename>RecoEcal/EgammaCoreTools/interface/SCDynamicDPhiParametersHelper.h #ifndef RecoEcal_EgammaCoreTools_SCDynamicDPhiParametersHelper_h #define RecoEcal_EgammaCoreTools_SCDynamicDPhiParametersHelper_h #include "FWCore/ParameterSet/interface/ParameterSet.h" #include "CondFormats/EcalObjects/interface/EcalSCDynami...
274
631
<gh_stars>100-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...
457
11,356
// Boost.Geometry (aka GGL, Generic Geometry Library) // This file is manually converted from PROJ4 // Copyright (c) 2008-2012 <NAME>, Amsterdam, the Netherlands. // This file was modified by Oracle on 2017, 2018. // Modifications copyright (c) 2017-2018, Oracle and/or its affiliates. // Contributed and/or modified b...
2,616
2,288
<reponame>michaelfolkson/lnhw<filename>clightning/ccan/ccan/tal/benchmark/speed.c /* Taken from samba/lib/talloc/testsuite.c: Unix SMB/CIFS implementation. local testing of talloc routines. Copyright (C) <NAME> 2004 ** NOTE! The following LGPL license applies to the talloc ** library. This does NO...
1,392
378
/* * 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 ...
862
418
#include <vector> #include "caffe/my_layers/skelvector_loss_layer.hpp" #include "caffe/util/math_functions.hpp" using namespace std; namespace caffe { template <typename Dtype> void SkelVectorLossLayer<Dtype>::Reshape( const vector<Blob<Dtype>*>& bottom, const vector<Blob<Dtype>*>& top) { LossLayer<Dtype>::Reshap...
1,852
485
/************************************************************ cvslice.h - $Author: lsxi $ Copyright (C) 2005-2006 <NAME> ************************************************************/ #ifndef RUBY_OPENCV_CVSLICE_H #define RUBY_OPENCV_CVSLICE_H #include "opencv.h" #define __NAMESPACE_BEGIN_CVSLICE namespac...
623
922
//tag::include[] package org.hibernate.validator.referenceguide.chapter12.getterselectionstrategy; //end::include[] import jakarta.validation.constraints.Email; import jakarta.validation.constraints.NotEmpty; //tag::include[] public class User { private String firstName; private String lastName; private String em...
243
1,031
<reponame>kyletanyag/LL-Smartcard import template_partial_specialization_typedef.*; public class template_partial_specialization_typedef_runme { static { try { System.loadLibrary("template_partial_specialization_typedef"); } catch (UnsatisfiedLinkError e) { System.err.println("Native code library fai...
522
384
from django.contrib.contenttypes.models import ContentType import graphene_django_optimizer as gql_optimizer class ContentTypeType(gql_optimizer.OptimizedDjangoObjectType): """ Graphene-Django object type for ContentType records. Needed because ContentType is a built-in model, not one that we own and ca...
130
5,156
<reponame>jalapenopuzzle/rr from util import * send_gdb('b constructor') expect_gdb('Make breakpoint pending on future shared library load?') send_gdb('y') expect_gdb('Breakpoint 1') send_gdb('c') expect_gdb('Breakpoint 1') ok()
91
1,872
<reponame>mingwayzhang/tvm """NNVM compiler toolchain. User only need to use :any:`build` and :any:`build_config` to do the compilation, and :any:`save_param_dict` to save the parameters into bytes. The other APIs are for more advanced interaction with the compiler toolchain. """ from __future__ import absolute_import...
218
619
/* * Author: <NAME> <<EMAIL>> * Copyright (c) 2016 Intel Corporation * * This program and the accompanying materials are made available under the * terms of the The MIT License which is available at * https://opensource.org/licenses/MIT. * * SPDX-License-Identifier: MIT */ #pragma once #include <stdint.h> #in...
1,335
1,305
/* * Copyright (c) 1998, 2003, Oracle and/or its affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. * * * * * * * * * * * * * * * * * * * * */ package com.sun.corba.se.spi.legacy.connection; import java.util.Collection; import com.sun.corba.se....
285
2,338
//===- IPO/OpenMPOpt.h - Collection of OpenMP optimizations -----*- C++ -*-===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===---------------------------...
523
348
<filename>docs/data/leg-t2/059/05910508.json {"nom":"Roncq","circ":"10ème circonscription","dpt":"Nord","inscrits":10891,"abs":6291,"votants":4600,"blancs":210,"nuls":123,"exp":4267,"res":[{"nuance":"LR","nom":"<NAME>","voix":2553},{"nuance":"REM","nom":"<NAME>","voix":1714}]}
115
310
<reponame>dreeves/usesthis { "name": "Enlightenment", "description": "A window manager for X.", "url": "https://www.enlightenment.org/" }
54
2,443
<gh_stars>1000+ // Copyright (c) 2015-2019 The HomeKit ADK Contributors // // Licensed under the Apache License, Version 2.0 (the “License”); // you may not use this file except in compliance with the License. // See [CONTRIBUTORS.md] for the list of HomeKit ADK project authors. #include <errno.h> #include <stdio.h> #...
4,026
777
// Copyright (c) 2015 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 "ui/events/win/system_event_state_lookup.h" #include <windows.h> namespace ui { namespace win { bool IsShiftPressed() { return (::GetKey...
446
1,091
/* * Copyright 2016-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...
912
505
package de.rieckpil.blog; import com.fasterxml.jackson.databind.JsonNode; import org.junit.jupiter.api.AfterEach; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.test.autoconfigure.web.client.Auto...
546
316
<reponame>MrMarvin/cloudkeeper import yaml from resotolib.baseplugin import BaseActionPlugin from resotolib.logging import log from resotolib.core.query import CoreGraph from resotolib.graph import Graph from resoto_plugin_aws.resources import ( AWSVPC, AWSVPCPeeringConnection, AWSEC2NetworkAcl, AWSEC2N...
3,857
414
<reponame>Job-Yang/JYLocalized // // JYCellModel.h // JYLocalizedExample // // Created by 杨权 on 2017/9/27. // Copyright © 2017年 Job-Yang. All rights reserved. // #import <Foundation/Foundation.h> @interface JYCellModel : NSObject /** * 是否选中 */ @property (assign, nonatomic) BOOL enabled; /** * key */ @proper...
264
584
import os import time import torch import gym from all.agents import Agent def watch(agent, env, fps=60): action = None returns = 0 # have to call this before initial reset for pybullet envs env.render(mode="human") env.reset() while True: action = agent.act(env.state) returns...
294
14,668
// 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. package org.chromium.chrome.browser.compositor.bottombar.contextualsearch; import android.view.View; import org.chromium.chrome.R; import org.chromium.c...
787
1,155
package org.zalando.intellij.swagger.documentation; import com.intellij.codeInsight.documentation.DocumentationManager; import com.intellij.lang.documentation.DocumentationProvider; import com.intellij.psi.PsiElement; import com.intellij.psi.PsiFile; import org.zalando.intellij.swagger.SwaggerLightCodeInsightFixtureTe...
365
554
package github.tornaco.xposedmoduletest.xposed.submodules.debug; import android.content.Context; import android.util.Log; import com.android.internal.app.AlertController; import com.android.internal.policy.PhoneWindow; import java.lang.reflect.Method; import java.util.Arrays; import java.util.Set; impor...
2,460
2,874
<filename>feature/tool/compare2d.c #include <math.h> #include <stdio.h> #include <stdlib.h> #ifndef DATA_TYPE #define DATA_TYPE double #endif typedef DATA_TYPE data_t; int main(int argc, const char **argv) { FILE *ref_file = 0; FILE *dis_file = 0; int w, h; double ref_accum = 0; double dis_accum = 0; double ...
1,044
4,262
<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 "Lic...
1,164
2,139
<reponame>buzzdeee/ffi /* * Copyright (c) 2017 <NAME>. All rights reserved. * * For licensing, see LICENSE.SPECS */ #include <stdint.h> int test_untagged_bitmask(int val) { return val; } int test_untagged_typedef_bitmask(int val) { return val; } uint8_t test_untagged_nonint_bitmask(uint8_t val) { ret...
533
2,151
<reponame>zipated/src // Copyright 2018 The Crashpad 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-2.0 // ...
4,650
3,274
<reponame>tyang513/QLExpress<gh_stars>1000+ package com.ql.util.express.instruction.op; import java.lang.reflect.Array; import com.ql.util.express.ArraySwap; import com.ql.util.express.ExpressUtil; import com.ql.util.express.InstructionSetContext; import com.ql.util.express.OperateData; import com.ql.util.express.ins...
696
678
/** * This header is generated by class-dump-z 0.2b. * * Source: /System/Library/PrivateFrameworks/iPodUI.framework/iPodUI */ @class IUCoverFlowViewController; @protocol IUCoverFlowOwner <NSObject> @property(readonly, assign, nonatomic) BOOL isShowingCoverFlow; @property(retain, nonatomic) IUCoverFlowViewContro...
170
587
/* * Copyright 2017-2021 Crown Copyright * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or a...
1,478
310
<gh_stars>100-1000 package org.seasar.doma.jdbc.query; import java.sql.Connection; import java.sql.SQLException; public interface CreateQuery<RESULT> extends Query { RESULT create(Connection connection) throws SQLException; }
76
1,247
<filename>goodsKill-spring-boot-provider/goodsKill-service/src/main/java/org/seckill/service/mp/SuccessKilledService.java package org.seckill.service.mp; import com.baomidou.mybatisplus.extension.service.IService; import org.seckill.entity.SuccessKilled; /** * @author heng */ public interface SuccessKilledService e...
123
348
<reponame>chamberone/Leaflet.PixiOverlay<gh_stars>100-1000 {"nom":"Seix","circ":"1ère circonscription","dpt":"Ariège","inscrits":674,"abs":298,"votants":376,"blancs":26,"nuls":13,"exp":337,"res":[{"nuance":"FI","nom":"<NAME>","voix":181},{"nuance":"REM","nom":"<NAME>","voix":156}]}
114
745
#ifndef CK_AMD_BUFFER_ADDRESSING_HPP #define CK_AMD_BUFFER_ADDRESSING_HPP #include "data_type.hpp" namespace ck { template <typename T> union BufferResource { // 128 bit SGPRs to supply buffer resource in buffer instructions // https://rocm-documentation.readthedocs.io/en/latest/GCN_ISA_Manuals/testdocbook.h...
19,578
9,402
<reponame>pyracanda/runtime // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // ============================================================ // // ApplicationContext.cpp // // // Implements the ApplicationContext class // // =====...
4,054
1,738
<filename>dev/Code/Sandbox/Plugins/DeploymentTool/Tests/DeploymentToolTestsJsonPreProcessor.cpp /* * All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or * its licensors. * * For complete copyright and license terms please see the LICENSE at the root of this * distribution (the "License"). A...
1,627
1,609
<gh_stars>1000+ # # Copyright (C) 2016 <NAME> # # @@ All Rights Reserved @@ # This file is part of the RDKit. # The contents are covered by the terms of the BSD license # which is included in the file license.txt, found at the root # of the RDKit source tree. # generates reference data for the PMI descriptors fr...
677
679
<reponame>Grosskopf/openoffice /************************************************************** * * 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...
4,891
448
<filename>FileDownloaderDemo2/src/main/java/org/wlf/filedownloader_demo2/custom_model/CustomVideoInfo.java package org.wlf.filedownloader_demo2.custom_model; import android.util.Log; import org.wlf.filedownloader.DownloadFileInfo; import org.wlf.filedownloader.FileDownloader; import org.wlf.filedownloader.listener.On...
1,128
14,425
<reponame>bzhaoopenstack/hadoop /** * 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, Ver...
1,794