max_stars_count
int64
301
224k
text
stringlengths
6
1.05M
token_count
int64
3
727k
364
// // PDFDocumentOutlineViewController.h // GreatReader // // Created by <NAME> on 2014/01/20. // Copyright (c) 2014 <NAME>. All rights reserved. // #import <UIKit/UIKit.h> @class PDFDocumentOutline; @interface PDFDocumentOutlineViewController : UITableViewController @property (nonatomic, strong) PDFDocumentOutl...
125
852
<filename>DataFormats/MuonDetId/interface/DTLayerId.h #ifndef MuonDetId_DTLayerId_h #define MuonDetId_DTLayerId_h /** \class DTLayerId * DetUnit identifier for DT layers * * \author <NAME> - INFN Torino */ #include <DataFormats/MuonDetId/interface/DTSuperLayerId.h> class DTLayerId : public DTSuperLayerId { pub...
535
634
<gh_stars>100-1000 package org.apache.james.backends.cassandra.versions; import org.assertj.core.api.Assertions; import org.junit.jupiter.api.Test; class SchemaVersionTest { static final SchemaVersion VERSION_1 = new SchemaVersion(1); static final SchemaVersion VERSION_2 = new SchemaVersion(2); static fi...
377
998
<reponame>sergey-v-kuznetsov/lapack<filename>CBLAS/src/cblas_globals.c int CBLAS_CallFromC=0; int RowMajorStrg=0;
61
14,668
<filename>content/renderer/media/win/dcomp_texture_factory.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 "content/renderer/media/win/dcomp_texture_factory.h" #include "gpu/ipc/client/clie...
812
5,813
/* * 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 ...
488
2,111
<filename>algorithms/src/LocalizationAndMapping/registration_localization/fast_gicp/thirdparty/nvbio/nvbio/io/sequence/sequence_pac.h /* * nvbio * Copyright (c) 2011-2014, NVIDIA CORPORATION. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted ...
1,420
2,137
//##################################################################### // Copyright (c) 2012-2013, <NAME>, <NAME>. // Distributed under the FreeBSD license (see license.txt) //##################################################################### // Utility classes/functions //! @file //################################...
3,773
2,487
/* * Copyright (C) 2018 Zhejiang xiaominfo Technology CO.,LTD. * All rights reserved. * Official Web Site: http://www.xiaominfo.com. * Developer Web Site: http://open.xiaominfo.com. */ package com.xiaominfo.swagger.service.controller; import io.github.swagger2markup.Swagger2MarkupConverter; import org.springfram...
351
1,803
<reponame>trsvchn/Ax #!/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. from ax.storage.sqa_store.decoder import Decoder from ax.storage.sqa_store.encoder import Encoder ...
2,851
3,442
<reponame>wcicola/jitsi /* DO NOT EDIT THIS FILE - it is machine generated */ #include <jni.h> /* Header for class net_java_sip_communicator_impl_netaddr_HardwareAddressRetriever */ #ifndef _Included_net_java_sip_communicator_impl_netaddr_HardwareAddressRetriever #define _Included_net_java_sip_communicator_impl_netadd...
263
14,668
<filename>third_party/webgpu-cts/scripts/tsc_ignore_errors.py #!/usr/bin/env python # 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. import subprocess import sys import os third_party_dir = os.path.dirname...
558
4,879
<reponame>KAMiKAZOW/omim<filename>android/src/com/mapswithme/maps/bookmarks/data/BookmarkManager.java package com.mapswithme.maps.bookmarks.data; import android.text.TextUtils; import androidx.annotation.IntDef; import androidx.annotation.IntRange; import androidx.annotation.MainThread; import androidx.annotation.Non...
16,229
6,034
package cn.iocoder.mall.tradeservice.enums; import cn.iocoder.common.framework.exception.ErrorCode; /** * 订单错误码 * <p> * 错误码区间 [1-008-000-000 ~ 1-008-000-000] * * @author Sin * @time 2019-03-23 11:23 */ public interface OrderErrorCodeConstants { // order ErrorCode ORDER_NOT_EXISTENT = new ErrorCode(100...
1,408
380
<reponame>tanisha-bhadani/hacktoberfest2021-1<gh_stars>100-1000 /** * Author: <NAME> * Date: 03 August 2021 (Tuesday) */ import java.util.*; public class MaxSumOfKConsecutive{ public static void main(String args[]){ Solution s = new Solution(); int arr[] = {1,8,30,-5,20,7}; int arr1[] = {5,-10,6,90,3};...
597
1,144
/* $NetBSD: position.c,v 1.18 2010/11/22 21:04:28 pooka Exp $ */ /*- * Copyright (c) 1991, 1993, 1994 * The Regents of the University of California. All rights reserved. * * This code is derived from software contributed to Berkeley by * <NAME> of the University of California, San Diego and Lance * Visser of Co...
2,068
5,169
<reponame>Gantios/Specs { "name": "BLEKit_iOS", "version": "1.0.0", "summary": "'ARC and GCD Compatible Reachability Class for iOS and OS X.", "description": "With the latest technology, it is compatible with the B521 multi-purpose bracelet, which has a strong reliability", "homepage": "https://github.com/YXx...
298
1,662
# doc-export: OpenlayersExample """ Example demonstrating how to create a simple map app with Openlayers and flexx. Features: * Load geojson data to map. * Draw points on map. * Working with Openlayers events. """ import os from flexx import flx BASE_DIR = os.getcwd() with open(BASE_DIR + '/static/js/data.json') ...
2,992
1,821
/* * Copyright 2018- The Pixie 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 ag...
759
2,061
#include <assert.h> #include <stdlib.h> #include <string.h> #include <wlr/backend.h> #include <wlr/render/wlr_renderer.h> #include <wlr/types/wlr_matrix.h> #include <wlr/types/wlr_output_damage.h> #include <wlr/types/wlr_scene.h> #include <wlr/types/wlr_surface.h> #include <wlr/util/region.h> #include "util/signal.h" ...
9,850
1,851
// // VROARSceneDelegateiOS.h // ViroKit // // Created by <NAME> on 7/10/17. // Copyright © 2017 Viro Media. All rights reserved. // // Permission is hereby granted, free of charge, to any person obtaining // a copy of this software and associated documentation files (the // "Software"), to deal in the Software ...
1,028
2,151
/* * Copyright (c) 2015 The WebM project authors. All Rights Reserved. * * Use of this source code is governed by a BSD-style license * that can be found in the LICENSE file in the root of the source * tree. An additional intellectual property rights grant can be found * in the file PATENTS. All contributin...
4,611
1,382
/* Spa libcamera support * * Copyright (C) 2020, Collabora Ltd. * Author: <NAME> <<EMAIL>> * * libcamera_wrapper.h * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), * to deal in the Software without restr...
1,339
416
#ifndef _LIB_ARCH_XCHG_H #define _LIB_ARCH_XCHG_H #ifdef __cplusplus extern "C" { #endif #include <arch/config.h> #define test_and_set __test_and_set #ifdef __cplusplus } #endif #endif /* _LIB_ARCH_XCHG_H */
107
765
#include "systemc.h" int sc_main(int argc, char** argv) { sc_bigint<3> bi; cout << bi[3] << endl; cout << "Program completed" << endl; return 0; }
75
3,970
// // Copyright 2004-present Facebook. 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 ap...
546
578
/* * Tencent is pleased to support the open source community by making BK-JOB蓝鲸智云作业平台 available. * * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved. * * BK-JOB蓝鲸智云作业平台 is licensed under the MIT License. * * License for BK-JOB蓝鲸智云作业平台: * ----------------------------------------------...
5,195
666
<reponame>elina8013/android_demo<filename>Dagger2Demo/app/src/main/java/com/example/clevo/dagger2demo/ScopeDemo.java package com.example.clevo.dagger2demo; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import javax.inject.Scope; /** * Created by Clevo on 2016/7/19. */ @Scope @...
148
408
<gh_stars>100-1000 #ifndef H_infra_util_Type #define H_infra_util_Type //--------------------------------------------------------------------------- // RDF-3X // (c) 2009 <NAME>. Web site: http://www.mpi-inf.mpg.de/~neumann/rdf3x // // This work is licensed under the Creative Commons // Attribution-Noncommercial-Share ...
369
485
<filename>internalblue/socket_hooks.py from __future__ import print_function from builtins import object import binascii import time try: from typing import List, Optional, Any, TYPE_CHECKING, Tuple, Dict, Type except ImportError: pass class SocketRecvHook(object): def __init__(self, socket): # ...
4,424
6,992
<gh_stars>1000+ /* * Copyright 2002-2017 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 re...
569
448
// // Created by moqi on 2018/9/19. // #include "utils/af_clock.h" #include "frame_work_log.h" #include "timer.h" int main() { af_scalable_clock clock; clock.start(); int speed = 1; for (int i = 0; i < 20; i++) { if (i / 5 + 1 > speed) { speed = i / 5 + 1; AF_LOGD("spee...
696
5,169
{ "name": "TaniwhaTextField", "version": "1.5", "summary": "TaniwhaTextField is a lightweight and beautiful swift textfield framework. And also you can highly customize it.", "description": "TaniwhaTextField is a lightweight and beautiful swift textfield framework. And also you can highly customize it. Long-ter...
300
2,151
// Copyright 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 "components/exo/keyboard.h" #include "base/threading/thread_task_runner_handle.h" #include "components/exo/keyboard_delegate.h" #include "compon...
4,797
1,883
from sanic import Sanic, response from sanic.blueprints import Blueprint # Usage # curl -H "Host: example.com" localhost:8000 # curl -H "Host: sub.example.com" localhost:8000 # curl -H "Host: bp.example.com" localhost:8000/question # curl -H "Host: bp.example.com" localhost:8000/answer app = Sanic("Example") bp = Bl...
371
6,098
package hex.genmodel.attributes.metrics; import hex.genmodel.attributes.SerializedName; public class MojoModelMetricsOrdinalGLM extends MojoModelMetricsOrdinal { public long _nullDegressOfFreedom; public long _residualDegressOfFreedom; @SerializedName("residual_deviance") public double _resDev; @Serialized...
131
407
#include <iostream> #include <algorithm> #pragma warning(disable:4996) using namespace std; #define NM 55 #include <vector> int n, root, erased, leaf[NM]; vector<int> child[NM]; void input() { cin >> n; for (int i = 0; i < n; i++) { int par; cin >> par; if (par == -1) { root = i; } else { child[par]...
403
4,071
<reponame>Ru-Xiang/x-deeplearning /* Copyright (C) 2016-2018 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 req...
1,577
445
<reponame>RazyRabbit/x11-packages<filename>packages/termux-x11/termux-x11.c<gh_stars>100-1000 #include <unistd.h> #include <stdlib.h> #include <stdio.h> #include <string.h> #include <errno.h> #include <sys/stat.h> #include <wayland-client.h> #ifndef TERMUX_PREFIX # define TERMUX_PREFIX "/data/data/com.termux/files/usr...
775
6,034
package cn.iocoder.mall.mybatis.core.injector.method; import cn.iocoder.mall.mybatis.core.enums.CustomSqlMethodEnum; import com.baomidou.mybatisplus.annotation.IdType; import com.baomidou.mybatisplus.core.injector.AbstractMethod; import com.baomidou.mybatisplus.core.metadata.TableFieldInfo; import com.baomidou.mybatis...
1,668
4,054
<filename>node-admin/src/test/java/com/yahoo/vespa/hosted/node/admin/task/util/file/FileSnapshotTest.java // Copyright 2019 Oath Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. package com.yahoo.vespa.hosted.node.admin.task.util.file; import com.yahoo.vespa.test.file.TestFileS...
851
1,960
# # Copyright (c) 2017 Intel Corporation # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed t...
1,013
372
/* Editor Settings: expandtabs and use 4 spaces for indentation * ex: set softtabstop=4 tabstop=8 expandtab shiftwidth=4: * * -*- mode: c, c-basic-offset: 4 -*- */ /* * Copyright © BeyondTrust Software 2004 - 2019 * All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you m...
3,642
2,860
<reponame>nostro-im/pipelines # cross_validation_pipeline compact import kfp from kfp import components chicago_taxi_dataset_op = components.load_component_from_url('https://raw.githubusercontent.com/kubeflow/pipelines/e3337b8bdcd63636934954e592d4b32c95b49129/components/datasets/Chicago%20Taxi/component.yaml') xgboos...
575
393
<gh_stars>100-1000 /* * Interrupt transparent queue, Schoen et. al, "On Interrupt-Transparent * Synchronization in an Embedded Object-Oriented Operating System", 2000. * enqueue() is allowed to interrupt enqueue() and dequeue(), however, * dequeue() is not allowed to interrupt itself. */ #include "lock_free_queue...
470
381
package net.laoyeye.yyblog.service; import org.springframework.stereotype.Service; import net.laoyeye.yyblog.common.DataGridResult; import net.laoyeye.yyblog.model.LogDO; import net.laoyeye.yyblog.model.query.LogQuery; @Service public interface LogService { void save(LogDO logDO); DataGridRe...
173
6,199
<gh_stars>1000+ #!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved from typing import Any from unittest import TestCase class MetricsTestBase(TestCase): def assertMetricsAlmostEqual(self, first: Any, second: Any) -> None: self.assertEqual(type(first), type(secon...
466
441
<reponame>ssinai1/rbfx // // Copyright (c) 2017-2020 the rbfx project. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to...
2,930
305
//===-- RichManglingContextTest.cpp ---------------------------------------===// // // 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 // //===---------------------------...
2,130
603
<gh_stars>100-1000 import contextlib import json import os import shutil import sys import tempfile __all__ = ['MockCommand', 'assert_calls'] pkgdir = os.path.dirname(__file__) recording_dir = None def prepend_to_path(dir): os.environ['PATH'] = dir + os.pathsep + os.environ['PATH'] def remove_from_path(dir): ...
2,208
1,997
<gh_stars>1000+ /* * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance * with the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0/ * * or in t...
1,864
916
<reponame>mxmpl/pykaldi<gh_stars>100-1000 """ For detailed documentation of Kaldi input/output streams and extended filenames, see `Kaldi I/O mechanisms`_ and `Kaldi I/O from a command-line perspective`_. .. _Kaldi I/O mechanisms: http://kaldi-asr.org/doc/io.html .. _Kaldi I/O from a command-line perspective: ht...
3,537
343
// Copyright 2015 Google Inc. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable...
1,056
2,293
<filename>example/simple/settings.py HELLO = "WORLD"
20
1,604
<filename>proxyclient/experiments/fptest.py #!/usr/bin/env python3 # SPDX-License-Identifier: MIT import sys, pathlib sys.path.append(str(pathlib.Path(__file__).resolve().parents[1])) from m1n1.setup import * from m1n1 import asm FPCR_FZ = 1 << 24 ACTLR_DEFAULT = 0xc00 ACTLR_AFP = 1 << 5 AFPCR = (3,6,15,2,5) AFPCR_...
1,237
526
/* SPDX-License-Identifier: Apache 2.0 */ /* Copyright Contributors to the ODPi Egeria project. */ package org.odpi.openmetadata.adapters.connectors.governanceactions.remediation; import org.odpi.openmetadata.adapters.connectors.governanceactions.ffdc.GovernanceActionConnectorsAuditCode; import org.odpi.openmetadata.a...
4,176
371
""" Django settings for example project. """ import os from pathlib import Path # Build paths inside the project like this: os.path.join(BASE_DIR, ...) BASE_DIR = Path.cwd() # SECURITY WARNING: keep the secret key used in production secret! SECRET_KEY = "a_not_so_secret_key" # SECURITY WARNING: don't run with debug ...
1,680
305
package org.mamute.dao; import static org.mamute.model.MarkedText.notMarked; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import net.vidageek.mirror.dsl.Mirror; import org.joda.time.DateTime; import org.joda.time.DateTimeUtils; import org.junit.Before; import org.mamute.builder.Questi...
1,363
29,258
package com.taobao.arthas.core.command.monitor200; import com.taobao.arthas.core.advisor.AdviceListener; import com.taobao.arthas.core.command.ScriptSupportCommand; import com.taobao.arthas.core.shell.command.CommandProcess; import com.taobao.arthas.core.util.matcher.Matcher; import com.taobao.middleware.cli.annotatio...
1,131
316
<gh_stars>100-1000 /* * cifra - embedded cryptography library * Written in 2014 by <NAME> <<EMAIL>> * * To the extent possible under law, the author(s) have dedicated all * copyright and related and neighboring rights to this software to the * public domain worldwide. This software is distributed without any * w...
6,470
3,436
<reponame>eseiler/range-v3<filename>include/range/v3/utility/tuple_algorithm.hpp<gh_stars>1000+ /// \file // Range v3 library // // Copyright <NAME> 2013-present // // Use, modification and distribution is subject to the // Boost Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or copy at //...
3,551
562
#include <safe_str_lib.h> #include <stdlib.h> void constraint_handler(const char* msg, void* ptr, errno_t error) { printf("Constraint handler: %s\n", msg); printf("Success!\n"); exit(0); } int main(int argc, char** argv) { char dst[2]; set_str_constraint_handler_s(constraint_handler); strcpy...
176
416
package org.simpleflatmapper.converter.impl.time; import org.simpleflatmapper.converter.Context; import org.simpleflatmapper.converter.ContextualConverter; import java.time.*; import java.util.Date; public class ObjectToJavaOffsetDateTimeConverter implements ContextualConverter<Object, OffsetDateTime> { private...
687
553
<gh_stars>100-1000 from pathlib import Path from typing import Union def gen_md_from_configs(config_root_dir: Union[Path, str], target_md_path: Union[Path, str] = 'model_zoo.md', prefix: str = '') -> None: def to_path(p: Union[Path, str]) -> Path: if isinst...
611
3,799
<gh_stars>1000+ /* * Copyright 2021 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless req...
1,760
552
<reponame>novium258/cortx-1 import app @app.app.task def event_test(x, y): return x * y + 15
45
7,158
/*M/////////////////////////////////////////////////////////////////////////////////////// // // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. // // By downloading, copying, installing or using the software you agree to this license. // If you do not agree to this license, do not download, instal...
2,475
654
<reponame>Zombiedistributor/orbot<gh_stars>100-1000 /* error.h - Error handling Copyright (C) 2000, 2001 <NAME> Copyright (C) 2003, 2004, 2011 <NAME> This file is part of the pdnsd package. pdnsd is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License ...
1,480
12,718
/** * This file has no copyright assigned and is placed in the Public Domain. * This file is part of the mingw-w64 runtime package. * No warranty is given; refer to the file DISCLAIMER.PD within this package. */ #ifndef _INC_EAPMETHODPEERAPIS #define _INC_EAPMETHODPEERAPIS #if (_WIN32_WINNT >= 0x0600) #include <eap...
2,451
561
<filename>src/GafferScene/CurveSampler.cpp ////////////////////////////////////////////////////////////////////////// // // Copyright (c) 2020, <NAME>. All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions a...
1,679
427
<gh_stars>100-1000 //===-- ProcFileReader.h ----------------------------------------*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===------------------------------------...
416
2,113
//----------------------------------------------------------------------------- // Copyright (c) 2013 GarageGames, LLC // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to // deal in the Software without restrictio...
831
1,252
#include <cstdio> template<typename T> struct SincosReference { const T x, s, c; }; template<typename T> struct Reference { const T x, ref; }; template<typename T> struct Data { static const SincosReference<T> sincosReference[]; static const Reference<T> asinReference[]; static const Reference<T>...
1,804
669
/* * Copyright 2021 The TensorFlow Runtime 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 applicab...
963
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...
1,753
1,053
<filename>tos/chips/cortex/m3/sam3/s/pmc/sam3spmchardware.h /* * Copyright (c) 2011 University of Utah. * 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 ...
4,449
4,612
<reponame>batmancn/Tensorflow-Tutorial """ Know more, visit my Python tutorial page: https://morvanzhou.github.io/tutorials/ My Youtube Channel: https://www.youtube.com/user/MorvanZhou Dependencies: tensorflow: 1.1.0 matplotlib numpy """ import tensorflow as tf import numpy as np import matplotlib.pyplot as plt tf.se...
1,664
528
<reponame>anukaal/opytimizer from opytimizer.optimizers.swarm import BWO # One should declare a hyperparameters object based # on the desired algorithm that will be used params = { 'pp': 0.6, 'cr': 0.44, 'pm': 0.4 } # Creates a BWO optimizer o = BWO(params=params)
108
1,103
<reponame>harmanpatial/hollow /* * Copyright 2016-2019 Netflix, 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...
2,281
366
import numpy as np from scipy.integrate import ode from .common import validate_tol, validate_first_step, warn_extraneous from .base import OdeSolver, DenseOutput class LSODA(OdeSolver): """Adams/BDF method with automatic stiffness detection and switching. This is a wrapper to the Fortran solver from ODEPACK...
3,355
1,056
<gh_stars>1000+ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * ...
2,060
432
/* My favorite names for boolean values */ #define No 0 #define Yes 1 #define Maybe 2 /* tri-state boolean, actually */
40
713
<filename>core/src/main/java/org/infinispan/util/function/SerializableObjIntConsumer.java<gh_stars>100-1000 package org.infinispan.util.function; import java.io.Serializable; import java.util.function.ObjIntConsumer; /** * This is a functional interface that is the same as a {@link ObjIntConsumer} except that it mus...
150
373
/* Copyright (C) 2017 Beijing Didi Infinity Technology and Development 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. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 ...
2,983
1,403
<gh_stars>1000+ import torch import torch.nn as nn class SoftDiceLoss(nn.Module): def __init__(self): super(SoftDiceLoss, self).__init__() def forward(self, output, label): probs = output.view(-1) mask = label.view(-1) smooth = 1 intersection = torch.sum(probs * mask)...
308
6,224
<gh_stars>1000+ /* * Copyright (c) 2016 Intel Corporation. * * SPDX-License-Identifier: Apache-2.0 */ /* * The header was moved to include/storage/disk_access.h * This header is deprecated and there for compatibility. */ #ifndef ZEPHYR_INCLUDE_DISK_DISK_ACCESS_H_ #define ZEPHYR_INCLUDE_DISK_DISK_ACCESS_H_ #if...
202
12,004
<filename>pkg/codegen/internal/test/testdata/replace-on-change/python/pulumi_example/__init__.py # coding=utf-8 # *** WARNING: this file was generated by test. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** from . import _utilities import typing # Export this package's modules as ...
336
743
{ "$schema": "http://adaptivecards.io/schemas/adaptive-card.json", "type": "AdaptiveCard", "version": "1.0", "body": [ { "type": "TextBlock", "text": "Present a form and submit it back to the originator" }, { "type": "Input.Text", "id": "firstName", "placeholder": "What is your first name?" }...
254
1,056
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
12,084
1,168
// Block-style documentation comments are indexed. //- ClassC.node/kind record //- Doc.node/kind anchor //- Doc.loc/start @^:9"/**" //- Doc.loc/end @$:11"*/" //- Doc documents ClassC /** comment */ class C { };
80
822
<reponame>zhangwenxue/AndroidLocalizationer /* * Copyright 2014-2015 <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 * * Unl...
8,391
1,063
[ { "category": "``IAM``", "description": "Update model to latest version", "type": "feature" }, { "category": "``Redshift``", "description": "Update model to latest version", "type": "feature" } ]
90
318
<filename>modules/pulse/pulse.c<gh_stars>100-1000 /** * @file pulse.c Pulseaudio sound driver * * Copyright (C) 2010 - 2016 <NAME> */ #include <pulse/pulseaudio.h> #include <pulse/simple.h> #include <re.h> #include <rem.h> #include <baresip.h> #include "pulse.h" /** * @defgroup pulse pulse * * Audio driver m...
1,111
5,169
{ "name": "EnlightedIntegrationTest", "version": "0.1.0", "summary": "Summary Summary Summary Summary Summary Summary Summary Summary", "description": "Description Description DescriptionDescription Description Description Description Description Description Description", "homepage": "https://github.co...
254
423
<filename>Artifacts/windows-webdeploy/Artifactfile.json { "$schema": "https://raw.githubusercontent.com/Azure/azure-devtestlab/master/schemas/2016-11-28/dtlArtifacts.json", "title": "WebDeploy", "publisher": "ALM Rangers", "description": "Installs WebDeploy using the Chocolatey package manager.", "tags": [ ...
280
329
#ifndef _NEHE_WINDOW #define _NEHE_WINDOW #include <string> #include <iostream> #include "GLee/GLee.h" #include <SDL/SDL.h> #include <SDL/SDL_opengl.h> #include <GL/gl.h> #include <GL/glu.h> using std::string; namespace NeHe { class Window { private: int m_Width; int m_Height; int m_Bpp; bool m_Ful...
287
2,453
<gh_stars>1000+ // // Generated by class-dump 3.5 (64 bit) (Debug version compiled Sep 30 2020 21:18:12). // // Copyright (C) 1997-2019 <NAME>. // #import <DVTFoundation/NSObject-Protocol.h> @class NSError, NSFileManager, NSString, NSURL; @protocol NSFileManagerDelegate <NSObject> @optional - (BOOL)fileManager...
742
679
<filename>main/qadevOOo/java/OOoRunner/src/main/java/mod/_sw/XMLImporter.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 inf...
2,408
348
<reponame>chamberone/Leaflet.PixiOverlay {"nom":"Gouézec","circ":"6ème circonscription","dpt":"Finistère","inscrits":842,"abs":441,"votants":401,"blancs":48,"nuls":14,"exp":339,"res":[{"nuance":"REM","nom":"<NAME>","voix":178},{"nuance":"LR","nom":"Mme <NAME>","voix":161}]}
113
1,712
//===--------------- include/Jit/global.h -----------------------*- C++ -*-===// // // LLILC // // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. // See LICENSE file in the project root for full license information. // //===--------------------------------------------------------------...
333