max_stars_count
int64
301
224k
text
stringlengths
6
1.05M
token_count
int64
3
727k
409
<reponame>MasterKale/py_webauthn from base64 import urlsafe_b64decode def base64url_to_bytes(val: str) -> bytes: """ Convert a Base64URL-encoded string to bytes. """ # Padding is optional in Base64URL. Unfortunately, Python's decoder requires the # padding. Given the fact that urlsafe_b64decode wi...
173
3,102
// RUN: rm -rf %t // RUN: %clang_cc1 -fmodules -fmodules-cache-path=%t -fmodules-local-submodule-visibility -I%S/Inputs/no-linkage -fmodule-map-file=%S/Inputs/no-linkage/module.modulemap %s -verify #include "empty.h" namespace NS { int n; } // expected-note {{candidate}} struct Typedef { int n; }; // expected-note {{...
695
634
<filename>notebooks/110-ct-segmentation-quantize/async_inference.py<gh_stars>100-1000 import cv2 import numpy as np from collections import deque from os import PathLike import threading from omz_python.models import model as omz_model from pathlib import Path def sigmoid(x): return np.exp(-np.logaddexp(0, -x)) ...
2,398
10,225
package io.quarkus.deployment.configuration.type; import java.util.Objects; import org.eclipse.microprofile.config.spi.Converter; /** * */ public final class Leaf extends ConverterType { private final Class<?> type; private final Class<? extends Converter<?>> convertWith; private int hashCode; pub...
511
1,735
''' Project: Gui Gin Rummy File name: player_type.py Author: <NAME> Date created: 3/14/2020 ''' import enum class PlayerType(enum.Enum): computer_player = 1 human_player = 2 demo_player = 3
92
322
<gh_stars>100-1000 double gDataClose[10000] = { 111.45,110,109.04,109.22,110.9,109.69,111.23,112.05,112.71,112.64,110.73,112.98,113.53,113.89, 111.89,113.23,112.04,110.65,114.52,115.62,116.53,118.1,116.17,116.38,114.81,115.86,111.08,110.77, 109.66,108.6,109.28,109.1,108.63,108.97,109.03,108.05,106.58,105.01,105.25,105....
37,124
14,425
<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 *...
1,146
892
{ "schema_version": "1.2.0", "id": "GHSA-f64v-2v58-4rrx", "modified": "2022-05-13T01:28:50Z", "published": "2022-05-13T01:28:50Z", "aliases": [ "CVE-2013-6800" ], "details": "An unspecified third-party database module for the Key Distribution Center (KDC) in MIT Kerberos 5 (aka krb5) 1.10.x allows rem...
490
1,657
<filename>src/apps/bridge/mac_table.c /* Use of this source code is governed by the Apache 2.0 license; see COPYING. */ #include <inttypes.h> #include "learning.h" /* Insert a MAC address into the main and shadow hash tables. */ void mac_table_insert(uint64_t mac, handle_t port, handle_t group, ...
1,594
3,170
<filename>contrib/libpoco/Foundation/include/Poco/Types.h // // Types.h // // $Id: //poco/1.4/Foundation/include/Poco/Types.h#2 $ // // Library: Foundation // Package: Core // Module: Types // // Definitions of fixed-size integer types for various platforms // // Copyright (c) 2004-2006, Applied Informatics Software E...
2,805
303
<gh_stars>100-1000 /* Copyright (C) 2005-2011 <NAME> */ // local #include "LC_WinError.h" #include "LC_WinUtils.h" /** * Given a Windows error code, format an error message string. The string * returned is from a static buffer, so this is not thread-safe. */ char const* LC_formatError( char const *what, DWORD err...
378
1,475
/* * 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 not ...
878
2,494
<reponame>ktrzeciaknubisa/jxcore-binary-packaging /* 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/. */ /* * pkix_crlselector.h * * CrlSelector Object Type Definition...
367
478
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. #pragma once #include "AdaptiveCards.Rendering.Uwp.h" #include "InputValue.h" #include "AdaptiveInputs.g.h" namespace winrt::AdaptiveCards::Rendering::Uwp::implementation { struct AdaptiveInputs : AdaptiveInputsT<Adapt...
986
1,178
<reponame>leozz37/makani /* * Copyright 2020 Makani Technologies LLC * * 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 re...
701
515
# Purpose: using radius DIMENSION # Copyright (c) 2019-2021, <NAME> # License: MIT License import pathlib import math import ezdxf from ezdxf.math import Vec3, UCS import logging # ======================================== # Setup logging # ======================================== logging.basicConfig(level="WARNING") ...
5,478
811
<filename>tests/data/element_content_replacement/css3-modsel-176-info.json { "description": "Element content replacement - Combinations: classes and IDs (css3-modsel-176)", "selectors": { "p": "css3-modsel-176.expected0.html", "p:not(#other).class:not(.fail).test#id#id": "css3-modsel-176.expected1.html", ...
371
956
<reponame>timgates42/trex-core<gh_stars>100-1000 from trex.stl.trex_stl_hltapi import STLHltStream class STLS1(object): ''' Eth/IPv6/UDP stream with VM, to change the ipv6 addr (only 32 lsb) Has per-stream stats. ''' def get_streams (self, direction = 0, **kwargs): return STLHltStream(l3_...
516
3,000
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. package com.mojang.brigadier.arguments; import com.google.common.testing.EqualsTester; import com.mojang.brigadier.StringReader; import com.mojang.brigadier.context.CommandContextBuilder; import com.mojang.brigadier.except...
1,126
852
// -*- C++ -*- // // Package: SiPixelCalibConfigurationReadDb // Class: SiPixelCalibConfigurationReadDb // /**\class SiPixelCalibConfigurationReadDb SiPixelCalibConfigurationReadDb.cc CalibTracker/SiPixelTools/plugins/SiPixelCalibConfigurationReadDb.cc Description: <one line class summary> Implementation: ...
1,792
892
<gh_stars>100-1000 { "schema_version": "1.2.0", "id": "GHSA-fx8p-65qg-hm72", "modified": "2022-05-02T03:59:54Z", "published": "2022-05-02T03:59:54Z", "aliases": [ "CVE-2009-4951" ], "details": "Unspecified vulnerability in the ClickStream Analyzer [output] (alternet_csa_out) extension 0.3.0 and earlie...
369
12,278
// Copyright 2018 the V8 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. #ifndef V8_D8_D8_PLATFORMS_H_ #define V8_D8_D8_PLATFORMS_H_ #include <cstdint> #include <memory> namespace v8 { class Platform; // Returns a predict...
301
445
<gh_stars>100-1000 /* Tracing support for CGEN-based simulators. Copyright (C) 1996-2019 Free Software Foundation, Inc. Contributed by Cygnus Support. This file is part of GDB, the GNU debugger. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public Lic...
4,482
5,903
<reponame>zhouguangping/pentaho-kettle<filename>core/src/main/java/org/pentaho/di/connections/utils/EncryptUtils.java /*! ****************************************************************************** * * Pentaho Data Integration * * Copyright (C) 2019 by <NAME> : http://www.pentaho.com * ************************...
1,140
3,425
from nameko.containers import ServiceContainer class Service: name = "service" # create a container container = ServiceContainer(Service, config={}) # ``container.extensions`` exposes all extensions used by the service service_extensions = list(container.extensions) # start service container.start() # stop ser...
90
302
<filename>questions/51751453/tablemodel.h #ifndef FOOTABLEMODEL_H #define FOOTABLEMODEL_H #include <QAbstractTableModel> #include <QBrush> struct Item { QString text = ""; QBrush textColor = Qt::black; QBrush bgColor = Qt::white; }; class TableModel : public QAbstractTableModel { Q_OBJECT public: TableMode...
512
3,710
#pragma once /*------------------------------------ Iwa_DirectionalBlurFx ボケ足の伸ばし方を選択でき、参照画像を追加した DirectionalBlur //------------------------------------*/ #ifndef IWA_DIRECTIONAL_BLUR_H #define IWA_DIRECTIONAL_BLUR_H #include "tfxparam.h" #include "stdfx.h" struct float2 { float x, y; }; struct float4 { float...
1,129
2,890
<filename>lts-core/src/main/java/com/github/ltsopensource/store/jdbc/datasource/DataSourceProvider.java package com.github.ltsopensource.store.jdbc.datasource; import com.github.ltsopensource.core.cluster.Config; import com.github.ltsopensource.core.spi.SPI; import com.github.ltsopensource.core.constant.ExtConfig; im...
204
465
import numpy as np import torch from torchvision import datasets class Data: def __init__(self, X_train, Y_train, X_test, Y_test, handler): self.X_train = X_train self.Y_train = Y_train self.X_test = X_test self.Y_test = Y_test self.handler = handler self.n_...
1,208
460
<reponame>heatedcpu/webkettle package org.sxdata.jingwei.dao; import org.flhy.ext.Task.ExecutionTraceEntity; import org.springframework.stereotype.Repository; import java.util.List; /** * Created by cRAZY on 2017/4/5. */ @Repository("taskExecutionTraceDao") public interface ExecutionTraceDao { public void addE...
224
8,194
/* * Copyright 2016 <NAME> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in wr...
3,516
5,169
<gh_stars>1000+ { "name": "AFPhotoBrowser", "version": "0.0.1", "license": "MIT", "summary": "Photo browser plugin with vertical and horizontal scroll.", "description": "AFPhotoBrowser is based on MWPhotoBrowser, I deprecated some API and add some new features, such as vertical scroll.", "screenshots": [ ...
352
940
<reponame>jvernet/macemu /* * video_blit.h - Video/graphics emulation, blitters * * Basilisk II (C) 1997-2008 <NAME> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version ...
2,261
326
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------...
8,140
354
<filename>framework/delibs/decpp/dePoolArray.hpp #ifndef _DEPOOLARRAY_HPP #define _DEPOOLARRAY_HPP /*------------------------------------------------------------------------- * drawElements C++ Base Library * ----------------------------- * * Copyright 2014 The Android Open Source Project * * Licensed under the A...
7,243
2,211
// Copyright (c) 2013 Intel Corporation. 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/public/browser/browser_thread.h" #include "content/public/test/browser_test_utils.h" #include "content/public/test/test_utils.h" #inclu...
997
613
#define RNG pcg64_c32 #define TWO_ARG_INIT 1 #define AWKWARD_128BIT_CODE 1 #include "pcg-test-noadvance.cpp"
51
777
/* * Copyright © 2015 <NAME> (<EMAIL>) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agr...
915
460
<filename>core/container/src/main/java/org/wildfly/swarm/container/runtime/cdi/ImplicitArchiveExtension.java /** * Copyright 2015-2017 Red Hat, Inc, and individual contributors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * ...
1,417
963
<filename>core/src/test/java/com/vladmihalcea/book/hpjp/hibernate/query/mapping/ResultSetMappingTest.java package com.vladmihalcea.book.hpjp.hibernate.query.mapping; import com.vladmihalcea.book.hpjp.hibernate.identifier.Identifiable; import com.vladmihalcea.book.hpjp.util.AbstractOracleIntegrationTest; import com.vla...
6,942
765
//===-- GDBRemoteTestUtils.cpp ----------------------------------*- 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 // //===---------------------------...
237
416
/* * @file CBManager.h * @framework CoreBluetooth * * @discussion Entry point to the central role. * * @copyright 2016 Apple, Inc. All rights reserved. */ #import <CoreBluetooth/CBDefines.h> #import <Foundation/Foundation.h> NS_CLASS_AVAILABLE(N_A, 10_0) CB_EXTERN_CLASS @interface CBManager : NSObject - (ins...
492
348
<gh_stars>100-1000 {"nom":"Noyal-Châtillon-sur-Seiche","circ":"1ère circonscription","dpt":"Ille-et-Vilaine","inscrits":4934,"abs":2160,"votants":2774,"blancs":32,"nuls":19,"exp":2723,"res":[{"nuance":"REM","nom":"<NAME>","voix":915},{"nuance":"UDI","nom":"<NAME>","voix":584},{"nuance":"SOC","nom":"Mme <NAME>","voix":3...
381
629
<reponame>PeterWofford/astrobee /* Copyright (c) 2017, United States Government, as represented by the * Administrator of the National Aeronautics and Space Administration. * * All rights reserved. * * The Astrobee platform is licensed under the Apache License, Version 2.0 * (the "License"); you may not use thi...
849
582
<reponame>oalbader/moduliths<filename>moduliths-sample/src/test/java/com/acme/myproject/moduleB/ModuleBTest.java /* * Copyright 2018 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 obtai...
860
6,390
{ "templates": [], "start_urls": [ "http://www.seedsofchange.com/garden_center/browse_category.aspx?id=123" ], "exclude_patterns": [ "/tellafriend.aspx.+" ], "follow_patterns": [ "/garden_center/browse_category.aspx.+", "/garden_center/detailedCategoryDisplay.a...
217
5,169
{ "name": "TBAPIClient", "version": "0.1.0", "summary": "Lightweight API Client", "description": "\"A lightweight API Client that leverages the use of Swift's Decodable and automatically returns objects in predefined types.\"", "homepage": "https://github.com/kalafun/TBAPIClient", "license": { "type": "...
260
903
package org.develnext.jphp.zend.ext.standard; import php.runtime.ext.support.compile.ConstantsContainer; public class LangConstants extends ConstantsContainer { }
51
405
<gh_stars>100-1000 from ..core import IslamicCalendar from ..registry_tools import iso_register @iso_register('QA') class Qatar(IslamicCalendar): "Qatar" include_new_years_day = False FIXED_HOLIDAYS = ( (12, 18, "National Day"), ) include_start_ramadan = True include_eid_al_fitr = Tr...
175
719
/* */ package com.googlecode.objectify.test; import com.googlecode.objectify.annotation.Cache; import com.googlecode.objectify.annotation.Entity; import com.googlecode.objectify.annotation.Id; import com.googlecode.objectify.impl.translate.opt.joda.JodaTimeTranslators; import com.googlecode.objectify.test.u...
624
590
<reponame>HareGun/xboot #ifndef __BCM2836_MBOX_H__ #define __BCM2836_MBOX_H__ #ifdef __cplusplus extern "C" { #endif #include <stdint.h> /* Mbox videocore */ int bcm2836_mbox_vc_get_firmware_revison(void); /* Mbox hardware */ int bcm2836_mbox_hardware_get_model(void); int bcm2836_mbox_hardware_get_rev...
1,061
2,151
<filename>buildSrc/src/main/groovy/org/mockito/release/git/GitTool.java<gh_stars>1000+ package org.mockito.release.git; /** * Git operations */ public interface GitTool { /** * Configures local git author by name and email. * Returns an object that can be used to restore the author to original value. */ ...
119
335
{ "word": "Hikikomori", "definitions": [ "reclusive adolescents or adults who withdraw from social life, often seeking extreme degrees of isolation and confinement.", "modern-day hermits" ], "parts-of-speech": "Adjective" }
91
343
#ifndef ARRAY2_UTILS_H #define ARRAY2_UTILS_H #include "vec.h" #include "array2.h" #include "../utils/util.h" template<class S, class T> T interpolate_value(const Vec<2,S>& point, const Array2<T, Array1<T> >& grid) { int i,j; S fx,fy; get_barycentric(point[0], i, fx, 0, grid.ni); get_barycentric(point[1]...
754
1,350
""" Module implementing postprocessing defences against adversarial attacks. """ from art.defences.postprocessor.class_labels import ClassLabels from art.defences.postprocessor.gaussian_noise import GaussianNoise from art.defences.postprocessor.high_confidence import HighConfidence from art.defences.postprocessor.postp...
119
3,200
<reponame>PowerOlive/mindspore<filename>mindspore/lite/examples/runtime_gpu_extend/src/custom_common.h /** * Copyright 2021 Huawei Technologies Co., Ltd * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of ...
1,696
324
/* Copyright 2012 10gen Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or ...
696
3,094
<filename>ML/Pytorch/Basics/custom_dataset/custom_dataset.py<gh_stars>1000+ """ Example of how to create custom dataset in Pytorch. In this case we have images of cats and dogs in a separate folder and a csv file containing the name to the jpg file as well as the target label (0 for cat, 1 for dog). Programmed by <NAM...
1,453
615
/** * @file query_runner.cpp * @author <NAME> */ #include <iostream> #include <string> #include <vector> #include "meta/corpus/document.h" #include "meta/index/eval/ir_eval.h" #include "meta/index/inverted_index.h" #include "meta/index/ranker/ranker_factory.h" #include "meta/parser/analyzers/tree_analyzer.h" #incl...
2,475
5,169
{ "name": "BBBadgeBarButtonItem", "version": "1.0", "summary": "Badge value on top of BarButtonItem", "description": " Create a BarButtonItem with a badge on top. Easily customizable. Your BarButtonItem can be any custom view you wish for. The badge on top can display any number or string ...
354
1,921
#pragma once #include "tag-version.h" enum item_status_flag_type // per item flags: ie. ident status, cursed status { //0x00000001, // was: ISFLAG_KNOW_CURSE ISFLAG_KNOW_TYPE = 0x00000002, // artefact name, sub/special types ISFLAG_KNOW_PLUSES = 0x00000004, // to...
1,187
348
{"nom":"<NAME>","circ":"7ème circonscription","dpt":"Alpes-Maritimes","inscrits":2893,"abs":1561,"votants":1332,"blancs":74,"nuls":20,"exp":1238,"res":[{"nuance":"REM","nom":"<NAME>","voix":651},{"nuance":"LR","nom":"<NAME>","voix":587}]}
96
504
<gh_stars>100-1000 /* ssl/s2_lib.c */ /* Copyright (C) 1995-1998 <NAME> (<EMAIL>) * All rights reserved. * * This package is an SSL implementation written * by <NAME> (<EMAIL>). * The implementation was written so as to conform with Netscapes SSL. * * This library is free for commercial and non-commerci...
5,568
322
import sys import torch sys.path.insert(0, "../") from linformer_pytorch import LinformerLM model = LinformerLM( num_tokens=10000, input_size=512, channels=16, dim_k=16, dim_ff=32, nhead=4, depth=3, activation="relu", checkpoint_level="C1", ...
278
1,603
<reponame>cuong-pham/datahub package datahub.protobuf.model; import com.google.protobuf.DescriptorProtos.DescriptorProto; import com.google.protobuf.DescriptorProtos.FieldDescriptorProto; import com.google.protobuf.DescriptorProtos.FileDescriptorProto; import com.google.protobuf.DescriptorProtos.OneofDescriptorProto; ...
2,570
1,026
''' NOTE: Sigh. it's nice to be able to define the tests next to the source code (so it serves as documentation). However, if you run 'pytest --pyargs my.core', it detects 'core' package name (because there is no my/__init__.py) (see https://docs.pytest.org/en/latest/goodpractices.html#tests-as-part-of-application-code...
396
5,169
{ "name": "SPModel", "version": "0.0.1", "summary": "Persist your models to sqlite, without configuration and sql queries", "description": "SPModel will save you time by creating database and generating basic sql's automatically.", "homepage": "https://github.com/metinn/SPModel", "license": { "type": "M...
254
418
<filename>examples/cordic_fixed-top.cpp<gh_stars>100-1000 /* This is traditional CORDIC computation of sine and cosine. The current code is based on [FXT: cordic-circ-demo.cc] Correctly calculates cos and sine between 0-90 degrees (0-100). INPUT: double theta: Input angle long n: Number of iterations. OUTP...
836
340
<gh_stars>100-1000 #!/usr/bin/env python import socket,subprocess,os; LHOST = '192.168.56.1' LPORT = 8080 def main(): s=socket.socket(socket.AF_INET,socket.SOCK_STREAM); s.connect((LHOST,LPORT)); os.dup2(s.fileno(),0); os.dup2(s.fileno(),1); os.dup2(s.fileno(),2); p=subprocess.call(["/bin/sh...
185
435
{ "alias": "video/995/a-python-on-the-couch", "category": "PyCon AU 2011", "copyright_text": "Creative Commons Attribution license", "description": "", "duration": null, "id": 995, "language": "eng", "quality_notes": "", "recorded": "2011-08-22", "related_urls": [ "http://couchdb.apache.org/)" ...
458
1,615
<gh_stars>1000+ /** * Created by MomoLuaNative. * Copyright (c) 2019, Momo Group. All rights reserved. * * This source code is licensed under the MIT. * For the full copyright and license information,please view the LICENSE file in the root directory of this source tree. */ package com.immomo.mls.fun.lt; import ...
1,289
439
// test022.cpp - generate new document by cell, no row labels #include <rapidcsv.h> #include "unittest.h" int main() { int rv = 0; std::string csvref = "A,B,C\n" "3,9,81\n" "4,16,256\n" ; std::string path = unittest::TempPath(); try { rapidcsv::Document doc("", rapidcsv::LabelParams(), ...
426
843
<filename>src/olympia/stats/migrations/0002_beta_stats_flag.py # Generated by Django 2.2.12 on 2020-06-05 11:21 from django.db import migrations def create_waffle_flag(apps, schema_editor): Flag = apps.get_model('waffle', 'Flag') Flag.objects.create( name='beta-stats', rollout=True, p...
208
411
<reponame>zhizhangxian/sssegmentation '''initialize''' from .builder import BuildParallelModel, BuildParallelDataloader
39
9,959
<reponame>PrzemyslawMalinowski-epm/sample-repo-git-flow /* * These are stub versions of various bits of javac-internal API (for various different versions of javac). Lombok is compiled against these. */ package com.sun.tools.javadoc; import java.nio.CharBuffer; import com.sun.tools.javac.parser.Scanner; import com....
271
2,230
/** * Copyright (c) 2017-present, Facebook, Inc. * All rights reserved. * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ #include <fstream> #include <chrono> #include "go_state.h" #include "board_feature.h" static std::vector<std::s...
1,200
1,511
* \ingroup popt */ /* (C) 1998-2000 Red Hat, Inc. -- Licensing details are in the COPYING file accompanying popt source distributions, available from ftp://ftp.rpm.org/pub/rpm/dist. */
64
3,227
// Synopsis: Testsuite of package Approximate_min_ellipsoid_d // // Revision: $Id$ // $Date$ // // Author: <NAME> <<EMAIL>> (ETH Zurich) #include <cstdlib> #include <cmath> #include <vector> #include <iostream> #include <string> #include <CGAL/Cartesian.h> #include <CGAL/Cartesian_d.h> #include <CGAL/point_generators...
2,962
8,027
/* * Copyright (c) Facebook, Inc. and 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/LICENSE-2.0 * * Unless required by applic...
1,037
72,551
<reponame>gandhi56/swift int fooHelperExplicitFunc(int a);
25
2,542
from typing import List from thinc.shims.shim import Shim from ..util import make_tempdir class MockShim(Shim): def __init__(self, data: List[int]): super().__init__(None, config=None, optimizer=None) self.data = data def to_bytes(self): return bytes(self.data) def from_bytes(sel...
424
348
<reponame>chamberone/Leaflet.PixiOverlay {"nom":"Breteuil","circ":"1ère circonscription","dpt":"Oise","inscrits":3123,"abs":1872,"votants":1251,"blancs":52,"nuls":27,"exp":1172,"res":[{"nuance":"LR","nom":"M. <NAME>","voix":864},{"nuance":"REM","nom":"<NAME>","voix":308}]}
113
11,356
/* * Node.cpp * * Created on: 8 Apr 2013 * Author: s0965328 */ #include "Node.h" namespace AutoDiff { unsigned int Node::DEFAULT_INDEX = 0; Node::Node():index(Node::DEFAULT_INDEX),n_in_arcs(0){ } Node::~Node() { } void Node::hess_reverse_0_init_n_in_arcs() { n_in_arcs++; // cout<<this->toString(0)<<en...
183
2,206
/* * ****************************************************************************** * * * * * * This program and the accompanying materials are made available under the * * terms of the Apache License, Version 2.0 which is available at * * https://www.apache.org/licenses/LICENSE-2.0. * * * * See the NO...
577
852
import FWCore.ParameterSet.Config as cms idealGeometryRecord = cms.ESSource("EmptyESSource", recordName = cms.string('IdealGeometryRecord'), iovIsRunNotTime = cms.bool(True), firstValid = cms.vuint32(1) ...
956
1,686
// Copyright (c) 2012 The Chromium Embedded Framework 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 CEF_LIBCEF_BROWSER_XML_READER_IMPL_H_ #define CEF_LIBCEF_BROWSER_XML_READER_IMPL_H_ #pragma once #include <libxml/xmlreade...
830
1,682
/* Copyright (c) 2013 LinkedIn Corp. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to...
661
631
<reponame>Ar-2/activejdbc package app.controllers.api; import org.javalite.activeweb.AppController; public class ApiHomeController extends AppController { public void index() { respond("home"); } }
77
348
{"nom":"<NAME>","circ":"3ème circonscription","dpt":"Pyrénées-Orientales","inscrits":708,"abs":427,"votants":281,"blancs":21,"nuls":17,"exp":243,"res":[{"nuance":"REM","nom":"<NAME>","voix":166},{"nuance":"FN","nom":"<NAME>","voix":77}]}
95
2,690
#include "tommath_private.h" #ifdef MP_PACK_COUNT_C /* LibTomMath, multiple-precision integer library -- <NAME> */ /* SPDX-License-Identifier: Unlicense */ size_t mp_pack_count(const mp_int *a, size_t nails, size_t size) { size_t bits = (size_t)mp_count_bits(a); return ((bits / ((size * 8u) - nails)) + (((bits %...
153
940
<reponame>jvernet/macemu /* * mathlib.hpp - Math library wrapper * * Kheperix (C) 2003-2005 <NAME> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License,...
3,565
3,457
<filename>src/Eigen-3.3/doc/snippets/MatrixBase_zero_int_int.cpp<gh_stars>1000+ cout << MatrixXi::Zero(2,3) << endl;
53
441
package org.basex.core.cmd; import static org.basex.query.QueryError.*; import java.io.*; import java.util.*; import org.basex.core.*; import org.basex.core.jobs.*; import org.basex.core.parse.*; import org.basex.core.parse.Commands.*; import org.basex.core.users.*; import org.basex.io.serial.*; import org.basex.que...
670
7,137
package io.onedev.server.util; import java.io.Serializable; public interface Provider<T> extends Serializable { T get(); }
41
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. #ifndef SERVICES_DEVICE_PUBLIC_CPP_TEST_FAKE_DEVICE_POSTURE_PROVIDER_H_ #define SERVICES_DEVICE_PUBLIC_CPP_TEST_FAKE_DEVICE_POSTURE_PROVIDER_H_ #include ...
569
4,054
<reponame>shahariel/vespa<filename>vespajlib/src/main/java/com/yahoo/slime/NixValue.java // Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. package com.yahoo.slime; final class NixValue extends Value { private static final NixValue invalidNix = new NixValue(); ...
275
575
<reponame>iridium-browser/iridium-browser // Copyright 2017 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "components/omnibox/browser/omnibox_edit_model.h" #include <stddef.h> #include <memory> #include <str...
9,513
311
<filename>FetLife/fetlife/src/main/java/com/bitlove/fetlife/util/MaterialIcons.java package com.bitlove.fetlife.util; public class MaterialIcons { public static final String FAVORITE = "{zmdi_favorite}"; public static final String FAVORITE_OUTLINE = "{zmdi_favorite_outline}"; }
102
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 ...
6,181
1,103
/* * 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 * * Unless required by ...
686