max_stars_count
int64
301
224k
text
stringlengths
6
1.05M
token_count
int64
3
727k
607
package dev.cheerfun.pixivic.basic.auth.domain; import java.util.Map; /** * @author OysterQAQ * @version 1.0 * @date 2019/09/08 22:24 * @description 权限约定 */ public interface Authable { String getIssuer(); Map<String, Object> getClaims(); boolean isEnabled(); }
114
504
<reponame>steakknife/pcgeos<gh_stars>100-1000 extern void _cdecl MapHeapEnter(MemHandle phyMemInfoBlk); extern void _cdecl MapHeapLeave(void); extern Boolean _cdecl MapHeapCreate(char permName[GEODE_NAME_SIZE], MemHandle *phyMemInfoBlk); extern void _cdecl MapHeapDestroy(MemHandle phyMemInfoBlk); extern Boolea...
268
3,705
<filename>tests/chainer_tests/functions_tests/activation_tests/test_swish.py import numpy from chainer import functions from chainer import testing def _sigmoid(x): half = x.dtype.type(0.5) return numpy.tanh(x * half) * half + half def _broadcast_to(array, shape): if hasattr(numpy, 'broadcast_to'): ...
1,064
498
package com.bizzan.bc.wallet.component; import com.alibaba.fastjson.JSON; import com.alibaba.fastjson.JSONArray; import com.alibaba.fastjson.JSONObject; import com.bizzan.bc.wallet.entity.Coin; import com.bizzan.bc.wallet.entity.Deposit; import com.bizzan.bc.wallet.event.DepositEvent; import com.bizzan.bc.wallet.servi...
3,354
305
/*===-------------------------------------------------------------------------- * ATMI (Asynchronous Task and Memory Interface) * * This file is distributed under the MIT License. See LICENSE.txt for details. *===------------------------------------------------------------------------*/ #include "rt.h"...
526
776
/* * Copyright 2019-present HiveMQ GmbH * * 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 ag...
1,090
47,529
<filename>src/test/java/io/reactivex/rxjava3/internal/schedulers/IoSchedulerInternalTest.java /* * Copyright (c) 2016-present, RxJava Contributors. * * 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 Lice...
1,283
2,706
<filename>retro/cores/gba/src/gba/gba.c /* Copyright (c) 2013-2015 <NAME> * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ #include <mgba/internal/gba/gba.h> #i...
10,908
528
<reponame>anukaal/opytimizer from opytimizer.spaces.search import SearchSpace # Define the number of agents and decision variables n_agents = 2 n_variables = 5 # Also defines the corresponding lower and upper bounds # Note that they have to be the same size as `n_variables` lower_bound = [0.1, 0.3, 0.5, 0.7, 0.9] upp...
245
407
<filename>paas/appmanager/tesla-appmanager-server/src/main/java/com/alibaba/tesla/appmanager/server/job/CleanAppPackageJob.java<gh_stars>100-1000 package com.alibaba.tesla.appmanager.server.job; import com.alibaba.tesla.appmanager.autoconfig.PackageProperties; import com.alibaba.tesla.appmanager.common.pagination.Pagi...
735
2,344
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import warnings from contextlib import ExitStack from itertools import product from random import random from unittest ...
18,861
778
<reponame>clazaro/Kratos // Author: <NAME> (<EMAIL>) // Date: April 2021 //This drag law is explained and implemented in detail in the following paper: //Lattice Boltzmann investigation on fluid flows through packed beds: Interaction between fluid rheology and bed properties //Qi et al. 2020 #include "swimming_DEM_appl...
2,898
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 ...
459
955
"""Backend supported: tensorflow.compat.v1, tensorflow, pytorch""" import deepxde as dde import numpy as np a = 1 d = 1 Re = 1 def pde(x, u): u_vel, v_vel, w_vel, p = u[:, 0:1], u[:, 1:2], u[:, 2:3], u[:, 3:4] u_vel_x = dde.grad.jacobian(u, x, i=0, j=0) u_vel_y = dde.grad.jacobian(u, x, i=0, j=1) u...
4,057
701
<reponame>snazari/Pyto """ Classes from the 'vCard' framework. """ try: from rubicon.objc import ObjCClass except ValueError: def ObjCClass(name): return None def _Class(name): try: return ObjCClass(name) except NameError: return None CNVCardData = _Class("CNVCardData") CNV...
1,723
325
<gh_stars>100-1000 from unittest import TestCase from unittest.mock import patch, PropertyMock, MagicMock from basketball_reference_web_scraper.html import PlayerSearchResult class TestPlayerSearchResult(TestCase): def test_league_abbreviation_query(self): self.assertEqual( PlayerSearchResult...
663
384
#include "../gmx_blas.h" void F77_FUNC(daxpy,DAXPY)(int * n_arg, double * da_arg, double * dx, int * incx_arg, double * dy, int * incy_arg) { int i,ix,iy; int n=*n_arg; double da=*da...
588
333
package com.alipay.api.domain; import java.util.List; import com.alipay.api.AlipayObject; import com.alipay.api.internal.mapping.ApiField; import com.alipay.api.internal.mapping.ApiListField; /** * 口碑菜谱分类置顶同步 * * @author auto create * @since 1.0, 2020-08-31 11:12:05 */ public class KoubeiCateringD...
451
3,348
<reponame>wromansky/incubator-heron /** * 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,...
1,057
2,564
// // Created by CainHuang on 2020-02-24. // #ifndef AVMEDIAPLAYER_H #define AVMEDIAPLAYER_H #include <SafetyQueue.h> #include <android/native_window.h> #include <player/AudioStreamPlayer.h> #include <player/VideoStreamPlayer.h> #include <MessageQueue.h> #include <player/OnPlayListener.h> #include <player/Timestamp.h...
1,979
2,232
<reponame>JLimperg/lean /* Copyright (c) 2015 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Author: <NAME> */ #include "kernel/environment.h" #include "kernel/standard_kernel.h" #include "library/module.h" #include "api/decl.h" #include "api/string.h" #...
966
386
""" This module is run with mypy to check types can be used correctly externally. """ from dirty_equals import HasName, HasRepr, IsStr assert 123 == HasName('int') assert 123 == HasRepr('123') assert 123 == HasName(IsStr(regex='i..')) assert 123 == HasRepr(IsStr(regex=r'\d{3}')) # type ignore is required (if it wasn'...
134
2,109
/* * This file is part of John the Ripper password cracker. * * Functions common to OpenCL and other accelerators (eg. FPGA) go in this file. * * This software is * Copyright (c) 2010-2012 <NAME> <samu at linuxasylum dot net> * Copyright (c) 2010-2013 <NAME> <<EMAIL>> * Copyright (c) 2010-2013 magnum * Copyrig...
7,518
1,056
<reponame>arusinha/incubator-netbeans<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...
1,145
12,252
<reponame>rmartinc/keycloak /* D-Bus Java Implementation Copyright (c) 2005-2006 <NAME> This program is free software; you can redistribute it and/or modify it under the terms of either the GNU Lesser General Public License Version 2 or the Academic Free Licence Version 2.1. Full licence texts are i...
1,063
335
<filename>P/Playback_noun.json { "word": "Playback", "definitions": [ "The reproduction of previously recorded sounds or moving images.", "A pre-recorded musical soundtrack mimed to by an actor." ], "parts-of-speech": "Noun" }
97
1,380
<gh_stars>1000+ /* * sophia database * sphia.org * * Copyright (c) <NAME> * BSD License */ #include <libss.h> #include <libsf.h> #include <libsr.h> #include <libso.h> #include <libsv.h> #include <libsd.h> #include <libsi.h> static int si_redistribute(si *index, sr *r, sdc *c, sinode *node, ssbuf *result) { (vo...
6,331
480
/* * Copyright [2013-2021], Alibaba Group Holding Limited * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
721
450
package com.pivotal.hawq.mapreduce.ao; /* * 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 Licen...
1,379
372
from __future__ import print_function from __future__ import division from __future__ import absolute_import import yaml from .kms import kms_simple_constructor yaml.add_constructor('!kms', kms_simple_constructor)
65
348
<reponame>chamberone/Leaflet.PixiOverlay {"nom":"Mérindol","circ":"2ème circonscription","dpt":"Vaucluse","inscrits":1648,"abs":836,"votants":812,"blancs":18,"nuls":6,"exp":788,"res":[{"nuance":"REM","nom":"Mme <NAME>","voix":204},{"nuance":"LR","nom":"<NAME>","voix":183},{"nuance":"FN","nom":"<NAME>","voix":145},{"nua...
261
764
{ "symbol": "ECU", "address": "0xd3CDc4e75750DC1e59F8342200742B6B29490e70", "overview":{ "en": "We at ECU are introducing an alternative to the current instabilities of cryptos with a token that will not depend on current BTC price thereby giving confidence to its holders and users that Decurian w...
409
2,201
<filename>cpp/lib/ApprovalTests.hpp<gh_stars>1000+ #ifndef APPROVAL_TEST_1_APPROVALTESTS_HPP #define APPROVAL_TEST_1_APPROVALTESTS_HPP #include "ApprovalTests.v.6.0.0.hpp" #endif
89
1,068
<filename>examples/imagenet-transfer-learning/register.py from azureml.core import Workspace from azureml.core.model import Model from azureml.core import Run import argparse import json if __name__ == '__main__': parser = argparse.ArgumentParser() parser.add_argument( '--dataset_name', type=str, d...
427
432
[ { "slug": "gauntlt", "name": "Gauntlt", "description": "Gauntlt provides hooks to a variety of security tools and puts them within reach of security, dev and ops teams to collaborate to build rugged software. It is built to facilitate testing and communication between groups and create actionable tests ...
176
360
<gh_stars>100-1000 /* * Copyright (c) 2020 Huawei Technologies Co.,Ltd. * * openGauss is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * * http://license.coscl.org.cn/MulanPSL2 * * THIS SOFTWARE IS...
1,422
17,337
<reponame>SSYSS000/Proton #include <stdarg.h> #include <stdlib.h> #include <stdio.h> #include <dlfcn.h> #include <limits.h> #include <stdint.h> #include "windef.h" #include "winbase.h" #include "winnls.h" #include "wine/debug.h" #include "vrclient_defs.h" #include "vrclient_private.h" #include "initguid.h" #define ...
27,558
2,508
<reponame>nitinkr-aktivolabs/JTCalendar // // JTHorizontalCalendar.h // JTCalendar // // Created by <NAME> // #import <UIKit/UIKit.h> #import "JTContent.h" @interface JTHorizontalCalendarView : UIScrollView<JTContent> @property (nonatomic, weak) JTCalendarManager *manager; @property (nonatomic) NSDate *date; /...
157
16,870
<reponame>chi-w-ng/flatbuffers<filename>tests/MyGame/Example2/MonsterT.java // automatically generated by the FlatBuffers compiler, do not modify package MyGame.Example2; import java.nio.*; import java.lang.*; import java.util.*; import com.google.flatbuffers.*; public class MonsterT { public MonsterT() { } } ...
107
3,428
<filename>lib/node_modules/@stdlib/datasets/spam-assassin/data/spam-2/00813.33bf420f192b90e27c45d3053ecbc6d4.json {"id":"00813","group":"spam-2","checksum":{"type":"MD5","value":"33bf420f192b90e27c45d3053ecbc6d4"},"text":"From <EMAIL> Mon Jul 22 18:39:20 2002\nReturn-Path: <<EMAIL>>\nDelivered-To: yyyy@localhost.netno...
986
850
from ..utils import TranspileTestCase class DocstringTests(TranspileTestCase): def test_method_docstring(self): self.assertCodeExecution(""" def test(): "This is the docstring" return 3 print(test()) print(test.__doc__) """) ...
315
5,169
<reponame>Gantios/Specs<gh_stars>1000+ { "name": "HBHybridCollectionView", "version": "1.0.6", "summary": "Hybrid scroll collection view.", "homepage": "https://github.com/Ban-Tang/HBHybridCollectionView", "authors": { "Roylee": "<EMAIL>" }, "description": "A collection for hybrid scrolling, you can u...
312
1,695
<reponame>gautamkmr/caffe2<gh_stars>1000+ import fft.complex_soa arg_t = Argument(ptr(const_float_), name="t") arg_f = Argument(ptr(float_), name="f") with Function("nnp_fft16_soa__avx2", (arg_t, arg_f), target=uarch.default + isa.fma3 + isa.avx2): reg_t = GeneralPurposeRegister64() LOAD.ARGUMENT(re...
1,211
335
<filename>U/Unintelligible_adjective.json { "word": "Unintelligible", "definitions": [ "Impossible to understand." ], "parts-of-speech": "Adjective" }
76
303
<reponame>didindinn/database-as-a-service # -*- coding: utf-8 -*- from __future__ import absolute_import, unicode_literals from django.utils.translation import ugettext_lazy as _ from django.contrib import admin import logging LOG = logging.getLogger(__name__) class ConfigurationAdmin(admin.ModelAdmin): list_d...
129
3,212
/* * 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 ...
4,525
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. #include "chromeos/services/bluetooth_config/public/cpp/cros_bluetooth_config_util.h" #include "base/strings/utf_string_conversions.h" namespace chromeo...
300
368
from typing import Iterable, Optional from cutecharts.charts.basic import BasicChart class Scatter(BasicChart): CHART_TYPE = "XY" def set_options( self, x_label: str = "", y_label: str = "", x_tick_count: int = 3, y_tick_count: int = 3, is_show...
1,031
1,144
/* SPDX-License-Identifier: GPL-2.0+ */ /* * (C) Copyright 2015 Google, Inc * * (C) Copyright 2008-2014 Rockchip Electronics */ #ifndef __RC4_H #define __RC4_H /** * rc4_encode() - encode a buf with the RC4 cipher * * @buf: Buffer to encode (it is overwrite in the process * @len: Length of buffer in bytes * ...
154
1,486
<filename>gsi_openssh/source/regress/unittests/hostkeys/tests.c /* $OpenBSD: tests.c,v 1.1 2015/02/16 22:18:34 djm Exp $ */ /* * Regress test for known_hosts-related API. * * Placed in the public domain */ void tests(void); void test_iterate(void); /* test_iterate.c */ void tests(void) { test_iterate(); }
127
348
{"nom":"Couches","circ":"3ème circonscription","dpt":"Saône-et-Loire","inscrits":1003,"abs":563,"votants":440,"blancs":29,"nuls":10,"exp":401,"res":[{"nuance":"REM","nom":"M. <NAME>","voix":248},{"nuance":"LR","nom":"M. <NAME>","voix":153}]}
99
2,338
// RUN: rm -rf %t // RUN: %clang_cc1 -fmodules -fmodules-cache-path=%t -fimplicit-module-maps -I%S/Inputs/suggest-include %s -verify #include "empty.h" // import the module file // expected-note@usetextual1.h:2 {{here}} // expected-note@textual2.h:1 {{here}} // expected-note@textual3.h:1 {{here}} // expected-note@tex...
626
3,395
import pytest import polars as pl def test_compare_series_value_mismatch() -> None: srs1 = pl.Series([1, 2, 3]) srs2 = pl.Series([2, 3, 4]) with pytest.raises(AssertionError, match="Series are different\n\nValue mismatch"): pl.testing.assert_series_equal(srs1, srs2) def test_compare_series_null...
1,554
1,194
package ca.uhn.fhir.parser; import org.hl7.fhir.dstu3.model.Observation; import ca.uhn.fhir.model.api.annotation.ResourceDef; @ResourceDef(name = "Observation", profile = CustomObservation.PROFILE) public class CustomObservation extends Observation { public static final String PROFILE = "http://custom_Observation"...
122
2,025
#pragma once #include <iod/sio_utils.hh> #include <silicon/symbols.hh> #include <silicon/optional.hh> namespace sl { using namespace iod; using namespace s; template <typename P> struct params_t { params_t(P p) : params(p) {} P params; }; template <typename... P> auto parameters(P... p) ...
188
958
<filename>scripts/interpolation.py #! /usr/bin/python ''' Data Interpolation ''' import os, sys import pandas as pd def interpolate(dataframe, cols_to_interpolate): for col in cols_to_interpolate: dataframe[col] = dataframe[col].interpolate('spline', order=2) return dataframe def main(dir_path...
281
339
/* *Copyright (c) 2005-2010, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. * *WSO2 Inc. licenses this file to you under the Apache License, *Version 2.0 (the "License"); you may not use this file except *in compliance with the License. *You may obtain a copy of the License at * *http://www.apache.org/licenses/LI...
2,481
3,269
// Time: O(nlogm), m is the max of quantities // Space: O(1) class Solution { public: int minimizedMaximum(int n, vector<int>& quantities) { int left = 1, right = *max_element(cbegin(quantities), cend(quantities)); while (left <= right) { const auto& mid = left + (right - left) / 2; ...
463
369
#define SOKOL_IMPL #include "sokol_fetch.h" void use_fetch_impl(void) { sfetch_setup(&(sfetch_desc_t){0}); }
57
6,497
<gh_stars>1000+ package com.sohu.cache.web.controller; import com.sohu.cache.entity.AppAudit; import com.sohu.cache.entity.AppUser; import com.sohu.cache.entity.InstanceAlertValueResult; import com.sohu.cache.entity.InstanceInfo; import com.sohu.cache.redis.RedisCenter; import com.sohu.cache.stats.instance.Inst...
4,472
1,980
#pragma once #include <windows.h> #include <string> namespace pesieve { namespace util { bool make_minidump(DWORD pid, std::string out_file); }; };
59
348
<filename>docs/data/leg-t2/045/04506334.json {"nom":"Vieilles-Maisons-sur-Joudry","circ":"6ème circonscription","dpt":"Loiret","inscrits":450,"abs":233,"votants":217,"blancs":15,"nuls":12,"exp":190,"res":[{"nuance":"MDM","nom":"<NAME>","voix":96},{"nuance":"UDI","nom":"<NAME>","voix":94}]}
120
310
{ "name": "<NAME> R1900", "description": "An ink jet printer.", "url": "https://www.amazon.com/Epson-Stylus-Format-Printer-C11C698201/dp/B0011G47PQ" }
66
1,323
<filename>ZYChat-EaseMob/ZYChat/Square/BTActionSheetViewController/BTActionSheetSimpleTextCell.h<gh_stars>1000+ // // BTActionSheetSimpleTextCell.h // ZYChat // // Created by ZYVincent QQ:1003081775 on 15/9/2. // Copyright (c) 2015年 ZYProSoft. QQ群:219357847 All rights reserved. // #import "BTActionSheetBaseCell....
161
521
/* $Id: BandwidthGroupImpl.cpp $ */ /** @file * * VirtualBox COM class implementation */ /* * 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 mod...
3,531
1,934
/* * Copyright 2018-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...
1,287
2,003
<gh_stars>1000+ // Copyright (c) 2015, Baidu.com, Inc. All Rights Reserved // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "gflags/gflags.h" #include "glog/logging.h" #include "gtest/gtest.h" #include "load_balancer/cost_functions.h" #include "load_bala...
1,841
357
/* * Copyright (c) 2012-2015 VMware, 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...
869
606
package org.arend.module.scopeprovider; import org.arend.ext.module.ModulePath; import org.arend.naming.scope.CachingScope; import org.arend.naming.scope.Scope; import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; import java.util.HashMap; import java.util.Map; public class CachingMod...
425
539
/*************************************************************************/ /* */ /* Language Technologies Institute */ /* Carnegie Mellon University */ /* ...
2,079
4,339
<reponame>geertjanw/ignite<filename>modules/core/src/main/java/org/apache/ignite/internal/processors/resource/GridResourceMethod.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 ...
871
327
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package de.fhpotsdam.unfolding.providers; import java.net.URI; import org.apache.log4j.Logger; import de.fhpotsdam.unfolding.core.Coordinate; import de.fhpotsdam.unfolding.geo.MercatorProjection; import de.fhpotsdam.u...
1,137
680
<filename>skyeye-promote/skyeye-web/src/main/java/com/skyeye/eve/controller/SysEveUserController.java /** * Copyright 卫志强 QQ:<EMAIL> Inc. All rights reserved. */ package com.skyeye.eve.controller; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; import ...
4,568
6,181
<reponame>emacslisp/python /* System module interface */ #ifndef Py_SYSMODULE_H #define Py_SYSMODULE_H #ifdef __cplusplus extern "C" { #endif PyAPI_FUNC(PyObject *) PySys_GetObject(const char *); PyAPI_FUNC(int) PySys_SetObject(const char *, PyObject *); #ifndef Py_LIMITED_API PyAPI_FUNC(PyObject *) _PySys_GetObject...
615
3,301
<filename>core/src/test/java/com/alibaba/alink/operator/common/statistics/basicstatistic/VectorStatColTest.java package com.alibaba.alink.operator.common.statistics.basicstatistic; import com.alibaba.alink.testutil.AlinkTestBase; import org.junit.Test; import static org.junit.Assert.assertEquals; public class Vector...
386
7,057
<gh_stars>1000+ // Copyright 2016 The RE2 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 <stdlib.h> // Entry point for libFuzzer. extern "C" int LLVMFuzzerTestOneInput(const uint8_t...
228
3,102
<reponame>medismailben/llvm-project // Check that we pass -fcomment-block-commands to frontend. // // RUN: %clang -c %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-NO-ARG // RUN: %clang -c %s -fcomment-block-commands=Foo -### 2>&1 | FileCheck %s --check-prefix=CHECK-ARG // // CHECK-ARG: -fcomment-block-commands=Foo /...
154
468
<gh_stars>100-1000 // // C++ implementation of bucket sort. // // // The All ▲lgorithms Project // // https://allalgorithms.com/ // https://github.com/allalgorithms/cpp // // Contributed by: <NAME> // Github: @macmullen // #include <cmath> #include <iostream> #include <algorithm> #include <vector> // A utility functio...
781
5,169
<filename>Specs/WZLSerializeKit/1.1/WZLSerializeKit.podspec.json { "name": "WZLSerializeKit", "version": "1.1", "summary": "A four-line tool to enable serialize and deserialize in iOS platform", "description": "A four-line tool to enable serialize and deserialize in iOS platform. 4行代码完成iOS序列化与反序列化.", "homepag...
332
341
/* -*- Mode: C; tab-width: 4 -*- * * Copyright (c) 2003-2015 Apple 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,074
3,062
<reponame>kudlav/organicmaps package com.mapswithme.maps.search; import android.view.View; import android.widget.TextView; import androidx.annotation.NonNull; import androidx.annotation.Nullable; import androidx.annotation.StringRes; import com.mapswithme.maps.R; import com.mapswithme.util.UiUtils; public class Sea...
706
995
// Copyright 2015-2017 <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) #ifndef BOOST_HISTOGRAM_UNLIMTED_STORAGE_HPP #define BOOST_HISTOGRAM_UNLIMTED_STORAGE_HPP #include <algorithm> #include...
12,967
776
<filename>src/main/java/com/hivemq/security/ssl/NonSslHandler.java /* * Copyright 2019-present HiveMQ GmbH * * 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...
960
1,838
<reponame>RussellM2020/maml_gps import numpy as np from nose2 import tools from rllab.envs.box2d.car_parking_env import CarParkingEnv from rllab.envs.box2d.cartpole_env import CartpoleEnv from rllab.envs.box2d.cartpole_swingup_env import CartpoleSwingupEnv from rllab.envs.box2d.double_pendulum_env import DoublePendulu...
1,382
3,631
<reponame>AnilKumarBejjanki/drools /* * Copyright 2017 Red Hat, Inc. and/or its affiliates. * * 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...
700
343
<filename>mayan/apps/duplicates/tests/mixins.py<gh_stars>100-1000 from ..tasks import task_duplicates_scan_all, task_duplicates_scan_for class DuplicatedDocumentAPIViewTestMixin: def _request_test_duplicated_document_list_api_view(self): return self.get(viewname='rest_api:duplicateddocument-list') de...
696
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. //+---------------------------------------------------------------------------- // // // Abstract: // Templa...
2,293
335
<filename>A/Anal_adjective.json { "word": "Anal", "definitions": [ "Relating to or situated near the anus.", "(in Freudian theory) relating to or denoting a stage of infantile psychosexual development in which defecation is the major source of sensuous pleasure and the anus forms the centre of s...
143
601
<reponame>Harshagracy/sp-dev-fx-webparts<filename>samples/react-side-panel/config/package-solution.json<gh_stars>100-1000 { "solution": { "name": "react-side-panel-client-side-solution", "id": "e9f0eff5-4e0f-492d-a5c8-d16568d2bfc3", "version": "1.0.0.0" }, "paths": { "zippedPackage": "solution/rea...
169
535
/* * 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,147
724
# -*- coding=utf-8 -*- # Copyright (C) 2020. Huawei Technologies Co., Ltd. All rights reserved. # This program is free software; you can redistribute it and/or modify # it under the terms of the MIT License. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the ...
535
2,151
<gh_stars>1000+ // Copyright 2019 The Dawn 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...
2,770
2,208
<reponame>sveilleux1/pybrain<gh_stars>1000+ #!/usr/bin/env python ######################################################################### # Reinforcement Learning with PGPE on the Acrobot Environment # # The Acrobot Environment is a 1 DoF system. # The goal is to swing up the pole and balance it. # The motor is unde...
743
1,144
<reponame>yodaos-project/yodaos /* * Copyright (C) 2008 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-...
1,051
510
<reponame>cmars/cakeshop package com.jpmorgan.cakeshop.test; import static org.testng.Assert.*; import com.jpmorgan.cakeshop.model.Node; import com.jpmorgan.cakeshop.service.NodeService; import java.io.IOException; import org.springframework.beans.factory.annotation.Autowired; import org.testng.annotations.Test; p...
202
685
#include <Logging.h> #include <APIC.h> #include <CString.h> #include <IDT.h> #include <Panic.h> #include <Serial.h> #include <StackTrace.h> extern "C" { [[noreturn]] void KernelAssertionFailed(const char* msg, const char* file, int line) { asm("cli"); APIC::Local::SendIPI(0, ICR_DSH_OTHER /* Send to all oth...
348
765
/* * Copyright 2018 Google, Inc. * * 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 conditions and the following disclaimer; * ...
1,834
2,151
<reponame>terrajobst/linux-packaging-skiasharp package com.google.typography.font.sfntly.table.opentype.chaincontextsubst; import com.google.typography.font.sfntly.data.ReadableFontData; import com.google.typography.font.sfntly.table.opentype.component.OffsetRecordTable; public abstract class ChainSubGenericRuleSet<T...
388
348
{"nom":"Marnay","circ":"1ère circonscription","dpt":"Haute-Saône","inscrits":1100,"abs":571,"votants":529,"blancs":50,"nuls":22,"exp":457,"res":[{"nuance":"REM","nom":"Mme <NAME>","voix":251},{"nuance":"FN","nom":"Mme <NAME>","voix":206}]}
95
374
import unittest import numpy as np try: import Levenshtein except ImportError: Levenshtein = False from dirty_cat import string_distances def _random_string_pairs(n_pairs=50, seed=1): rng = np.random.RandomState(seed) characters = list(map(chr, range(10000))) pairs = [] for n in range(n_pai...
2,572