max_stars_count
int64
301
224k
text
stringlengths
6
1.05M
token_count
int64
3
727k
1,755
<filename>IO/OMF/Testing/Cxx/TestOMFReader.cxx /*========================================================================= Program: Visualization Toolkit Module: TestOMFReader.cxx Copyright (c) <NAME>, <NAME>, <NAME> All rights reserved. See Copyright.txt or http://www.kitware.com/Copyright.htm for det...
1,488
310
<gh_stars>100-1000 #include <unistd.h> #include <iostream> void foo() { if (rand() % 10) { // Fast path usleep(1000); } else { // Slow path usleep(10000); } } void bar() { for (int i = 0; i < 1000000; ++i) {} } void work(bool call_foo) { if (call_foo) { foo(); } else { bar(); } ...
193
678
<gh_stars>100-1000 /** * This header is generated by class-dump-z 0.2b. * * Source: /System/Library/PrivateFrameworks/iTunesStoreUI.framework/iTunesStoreUI */ #import <iTunesStoreUI/SUMaskProvider.h> #import <iTunesStoreUI/iTunesStoreUI-Structs.h> @interface SURoundedCornersMaskProvider : SUMaskProvider { float...
254
306
import argparse, json import simpleamt import sys from itertools import chain """ Run with --prod to get all the hits from production. """ def get_all_reviewable_hits(mtc): paginator = mtc.get_paginator('list_hits') all_hits = [] for i, batch in enumerate(paginator.paginate(PaginationConfig={'PageSize': 100})): ...
255
3,209
#!/usr/bin/env python import argparse import numpy as np import tensorflow as tf import os.path as osp import models import dataset def display_results(image_paths, probs): '''Displays the classification results given the class probability for each image''' # Get a list of ImageNet class labels with open...
1,043
587
/* * Copyright 2019 LINE Corporation * * LINE Corporation 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/LICENSE-2.0 * * Unless re...
1,013
407
#include "verilog_parser/plugin_verilog_parser.h" #include "hal_core/netlist/netlist_parser/netlist_parser_manager.h" #include "verilog_parser/verilog_parser.h" namespace hal { extern std::unique_ptr<BasePluginInterface> create_plugin_instance() { return std::make_unique<VerilogParserPlugin>(); } ...
351
333
#ifndef FILE_CHMOD_H__ #define FILE_CHMOD_H__ #include "rodsDef.h" #include "rcConnect.h" typedef struct { rodsHostAddr_t addr; char fileName[MAX_NAME_LEN]; int mode; char rescHier[MAX_NAME_LEN]; char objPath[MAX_NAME_LEN]; } fileChmodInp_t; #define fileChmodInp_PI "struct RHostAddr_PI; str fileN...
232
3,395
<gh_stars>1000+ from typing import Any, Union try: from polars.polars import when as pywhen _DOCUMENTING = False except ImportError: # pragma: no cover _DOCUMENTING = True from polars import internals as pli class WhenThenThen: """ Utility class. See the `when` function. """ def __ini...
1,921
550
""" These classes define the behavior of how new subset states affect the edit_subset of a Data object. """ import logging from glue.core.contracts import contract from glue.core.message import EditSubsetMessage from glue.core.data_collection import DataCollection from glue.core.data import Data from glue.utils impor...
1,968
1,768
<reponame>zwergziege/tlaplus /******************************************************************************* * Copyright (c) 2015 Microsoft Research. All rights reserved. * * The MIT License (MIT) * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and ass...
2,569
861
<reponame>scotthufeng/spring-cloud-gray<filename>spring-cloud-gray-client/src/main/java/cn/springcloud/gray/event/listener/HandleEventlistener.java package cn.springcloud.gray.event.listener; import cn.springcloud.gray.changed.notify.ChangedType; import cn.springcloud.gray.event.HandleEvent; import cn.springcloud.gray...
474
2,023
import os, sys def locate_regression_tests(): for path in sys.path: if os.path.isdir(path): path = os.path.join(path, 'test') if os.path.isdir(path): return path raise RuntimeError('unable to locate standard regression tests')
125
3,428
<filename>lib/node_modules/@stdlib/datasets/spam-assassin/data/easy-ham-1/00636.f15c6eabe3d5204cb8704b0a4b845403.json<gh_stars>1000+ {"id":"00636","group":"easy-ham-1","checksum":{"type":"MD5","value":"f15c6eabe3d5204cb8704b0a4b845403"},"text":"From <EMAIL> Thu Sep 19 11:05:18 2002\nReturn-Path: <<EMAIL>>\nDelivered-T...
1,280
819
/* Copyright 2017 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 law or agreed to in ...
782
335
{ "word": "Integer", "definitions": [ "A number which is not a fraction; a whole number.", "A thing complete in itself." ], "parts-of-speech": "Noun" }
78
607
<filename>src/main/java/dev/cheerfun/pixivic/biz/ad/po/AdvertisementInfo.java package dev.cheerfun.pixivic.biz.ad.po; import lombok.Data; /** * @author OysterQAQ * @version 1.0 * @date 2020/2/20 下午10:58 * @description AdvertisementInfo */ @Data public class AdvertisementInfo { private Integer id; private...
210
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 "ash/constants/ash_features.h" #include "ash/public/cpp/capture_mode/capture_mode_test_api.h" #include "ash/public/cpp/shell_window_ids.h" #inclu...
7,285
345
from typing import Callable, Dict, List, Set, Optional from ctypes import c_int8 as i8, c_int16 as i16, c_int32 as i32, c_int64 as i64 from ctypes import c_uint8 as u8, c_uint16 as u16, c_uint32 as u32, c_uint64 as u64 import sys if __name__ == "__main__": print("Hello world!") print("Hello", "world!")
124
315
<reponame>nfarafia/TheWeds.2 package io.budgetapp.application; import javax.ws.rs.core.Response; import javax.ws.rs.ext.ExceptionMapper; import javax.ws.rs.ext.Provider; /** * */ @Provider public class NotFoundExceptionMapper implements ExceptionMapper<NotFoundException> { @Override public Response toRespo...
149
9,136
<reponame>lucasalavapena/dvc # type: ignore import logging import sys import time from functools import wraps import colorama logger = logging.getLogger(__name__) this = sys.modules[__name__] this.timeout_seconds = 10.0 this.already_displayed = False this.message = ( "You can cut execution time considerably by u...
502
1,224
""" Circle Collision with Swapping Velocities. by <NAME>. Based on <NAME>'s Solution in "Foundation Actionscript Animation: Making Things Move!". """ from ball import Ball balls = [Ball(100, 400, 20), Ball(700, 400, 80)] def setup(): size(640, 360) def draw(): background(51) for ball in balls: ...
163
631
<filename>activejdbc/src/test/java/org/javalite/activejdbc/connection_config/DBConfigurationSpec.java package org.javalite.activejdbc.connection_config; import org.junit.Test; import static org.javalite.test.jspec.JSpec.the; public class DBConfigurationSpec { @Test public void shouldLoadUniqueConnections(){ ...
296
2,542
<reponame>gridgentoo/ServiceFabricAzure // ------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License (MIT). See License.txt in the repo root for license information. // ----------------------------------------------------...
9,185
377
<gh_stars>100-1000 //------------------------------------------------------------------------------ // vkmemory.cc // (C) 2020 Individual contributors, see AUTHORS file //------------------------------------------------------------------------------ #include "render/stdneb.h" #include "vkmemory.h" #include "vkgraphic...
3,993
2,151
<gh_stars>1000+ // 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. #ifndef THIRD_PARTY_BLINK_RENDERER_PLATFORM_GRAPHICS_PAINT_PAINT_CHUNKER_H_ #define THIRD_PARTY_BLINK_RENDERER_PLATFORM_GRAPHICS_PAINT_PAI...
1,331
14,668
// Copyright 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. package org.chromium.components.minidump_uploader.util; /** * Interface for crash reporting permissions. */ public interface CrashReportingPermissionMa...
430
1,006
<gh_stars>1000+ /**************************************************************************** * net/udp/udp_setsockopt.c * * 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 co...
2,542
1,724
#pragma once #include <libjson/Parser.h> #include <libjson/Prettier.h> #include <libjson/Value.h>
42
348
<reponame>chamberone/Leaflet.PixiOverlay {"nom":"Hernicourt","circ":"1ère circonscription","dpt":"Pas-de-Calais","inscrits":407,"abs":190,"votants":217,"blancs":11,"nuls":7,"exp":199,"res":[{"nuance":"MDM","nom":"<NAME>","voix":121},{"nuance":"FN","nom":"<NAME>","voix":78}]}
114
1,169
package com.google.appinventor.client.editor.youngandroid.properties; import static com.google.appinventor.client.Ode.MESSAGES; import com.google.appinventor.client.widgets.properties.ChoicePropertyEditor; /* */ public class YoungAndroidRecyclerViewOrientationPropertyEditor extends ChoicePropertyEditor { private s...
200
345
import datetime import unittest class LinkStoreAsserts(unittest.TestCase): def assert_links_storage(self, store): store.empty() store.create_link('user1', '<PASSWORD>', '<PASSWORD>', expires=datetime.datetime.now()) store.create_link('user2', '<PASSWORD>', 'ABCDEF', expires=datetime.dat...
879
7,407
<reponame>xuyanbo03/lab<gh_stars>1000+ // Copyright (C) 2016-2019 Google Inc. // // 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, or // (at your option) any la...
507
1,909
<reponame>state303/spring-batch /* * Copyright 2006-2007 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/LICENS...
783
1,724
<reponame>GeGuNa/skift_oss2 #include <libwidget/Application.h> #include "task-manager/windows/TaskManager.h" namespace TaskManager { struct Application : public Widget::Application { Box<Widget::Window> build() override { return own<TaskManager>(); } }; } // namespace TaskManager int main(int a...
169
539
#include "geometrycentral/pointcloud/point_cloud.h" #include "geometrycentral/pointcloud/point_cloud_heat_solver.h" #include "geometrycentral/pointcloud/point_cloud_io.h" #include "geometrycentral/pointcloud/point_position_frame_geometry.h" #include "geometrycentral/pointcloud/point_position_geometry.h" #include "geome...
5,662
956
"""Test serializing ecdsa keys""" from __future__ import absolute_import, division, unicode_literals import unittest import jsonpickle from helper import SkippableTest class EcdsaTestCase(SkippableTest): def setUp(self): try: from ecdsa import NIST384p from ecdsa.keys import Sign...
485
5,023
<reponame>mspectorgoogle/clusterfuzz<filename>src/clusterfuzz/_internal/tests/core/build_management/overrides_test.py<gh_stars>1000+ # Copyright 2021 Google 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 ...
1,420
364
package com.linkedin.dagli.dl4j; import com.linkedin.dagli.nn.FloatingPointPrecision; import com.linkedin.dagli.nn.layer.NNActivationLayer; import com.linkedin.dagli.nn.layer.NNBatchNormalizedLayer; import com.linkedin.dagli.nn.layer.NNClassification; import com.linkedin.dagli.nn.layer.NNDenseLayer; import com.linkedi...
2,752
5,169
{ "name": "HumanVideoBoard", "version": "2.7.1", "summary": "The HumanVideoBoard framework allows any app to participate in Human Video Board smartphone light shows. Contact us for credentials.", "description": "Human Video Board is a system for displaying animated light shows at sports and entertainment venues...
403
2,338
<filename>clang-tools-extra/test/clang-tidy/checkers/readability-isolate-declaration.c // RUN: %check_clang_tidy %s readability-isolate-declaration %t void c_specific() { void (*signal(int sig, void (*func)(int)))(int); int i = sizeof(struct S { int i; }); int j = sizeof(struct T { int i; }), k; // CHECK-MESSA...
241
3,631
<gh_stars>1000+ /* * Copyright 2016 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/LICENSE-2.0 * * Unle...
1,460
12,278
# Copyright (c) 2011-present, Facebook, Inc. All rights reserved. # This source code is licensed under both the GPLv2 (found in the # COPYING file in the root directory) and Apache 2.0 License # (found in the LICENSE.Apache file in the root directory). import copy from advisor.db_log_parser import DataSource, NO_C...
8,464
768
/* Copyright (c) 2008-2021, <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 conditions and the fo...
6,768
363
/* Copyright 2009, 2011, 2015 predic8 GmbH, www.predic8.com 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,245
4,857
/* * 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 ...
817
623
<gh_stars>100-1000 package me.chanjar.jms.server.command.order; import me.chanjar.jms.server.command.infras.CommandProcessor; import me.chanjar.jms.server.command.infras.disruptor.CommandEventProducer; public class OrderInsertCommandProcessor implements CommandProcessor<OrderInsertCommand> { private final CommandE...
314
319
/* * Copyright (c) 2013 Qualcomm Atheros, Inc. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted (subject to the limitations in the * disclaimer below) provided that the following conditions are met: * * * Redistributions of source code ...
1,998
4,935
#ifndef NODEGIT_V8_HELPERS_H #define NODEGIT_V8_HELPERS_H #include <nan.h> namespace nodegit { v8::Local<v8::Value> safeGetField(v8::Local<v8::Object> &containerObj, std::string fieldName); } #endif
94
348
{"nom":"Chaulgnes","circ":"1ère circonscription","dpt":"Nièvre","inscrits":1193,"abs":697,"votants":496,"blancs":49,"nuls":24,"exp":423,"res":[{"nuance":"REM","nom":"<NAME>","voix":279},{"nuance":"FN","nom":"<NAME>","voix":144}]}
90
348
{"nom":"Dagneux","circ":"2ème circonscription","dpt":"Ain","inscrits":3193,"abs":1736,"votants":1457,"blancs":17,"nuls":3,"exp":1437,"res":[{"nuance":"MDM","nom":"Mme <NAME>","voix":484},{"nuance":"LR","nom":"M. <NAME>","voix":292},{"nuance":"FN","nom":"Mme <NAME>","voix":276},{"nuance":"FI","nom":"Mme <NAME>","voix":1...
244
1,162
<reponame>civitaspo/digdag package io.digdag.spi; import io.digdag.client.config.Config; public interface StorageFactory { String getType(); Storage newStorage(Config config); }
70
2,151
<reponame>zipated/src // Copyright (c) 2012 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 "media/audio/pulse/pulse_input.h" #include <stdint.h> #include "base/logging.h" #include "media/audio/audio_device_de...
4,641
1,510
<reponame>julien-faye/drill /* * 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 ...
4,670
12,063
import os # Get relative file path # this returns relative path from current file. def get_relative_path(curr_file, *path_components): return os.path.join(os.path.dirname(curr_file), *path_components)
68
348
<filename>docs/data/leg-t1/049/04902292.json {"nom":"Val-du-Layon","circ":"2ème circonscription","dpt":"Maine-et-Loire","inscrits":904,"abs":410,"votants":494,"blancs":5,"nuls":2,"exp":487,"res":[{"nuance":"REM","nom":"Mme <NAME>","voix":226},{"nuance":"LR","nom":"M. <NAME>","voix":63},{"nuance":"FI","nom":"Mme <NAME>"...
342
1,735
''' Register rule-based models or pre-trianed models ''' from rlcard.models.registration import register, load register( model_id = 'leduc-holdem-cfr', entry_point='rlcard.models.pretrained_models:LeducHoldemCFRModel') register( model_id = 'leduc-holdem-rule-v1', entry_point='rlcard.models.leducholdem...
397
2,354
// This file is part of AsmJit project <https://asmjit.com> // // See asmjit.h or LICENSE.md for license and copyright information // SPDX-License-Identifier: Zlib #include "../core/api-build_p.h" #include "../core/environment.h" ASMJIT_BEGIN_NAMESPACE // X86 Target // ---------- // // - 32-bit - Linux, OSX, BSD, ...
449
911
/* * This file is part of ComputerCraft - http://www.computercraft.info * Copyright <NAME>, 2011-2017. Do not distribute without permission. * Send enquiries to <EMAIL> */ package dan200.computercraft.shared.media.items; import dan200.computercraft.ComputerCraft; import dan200.computercraft.api.ComputerCraftAPI; ...
1,964
718
# Copyright (c) OpenMMLab. All rights reserved. import copy import os.path as osp from pathlib import Path from mmcv import scandir from torch.utils.data import Dataset from .builder import DATASETS from .pipelines import Compose IMG_EXTENSIONS = ('.jpg', '.JPG', '.jpeg', '.JPEG', '.png', '.PNG', '.ppm', ...
1,573
2,721
<gh_stars>1000+ /* * ****************************************************************************** * Copyright (c) 2013-2014 <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 Licens...
1,935
476
<filename>include/dynamic_robot_localization/cloud_matchers/feature_matchers/keypoint_detectors/impl/keypoint_detector.hpp<gh_stars>100-1000 /**\file keypoint_detector.pp * \brief Description... * * @version 1.0 * @author <NAME> */ // >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>...
1,061
893
<filename>python/python-pythonnet/Pythonnet - Python Scripts/Pythonnet Tutorial - Introduction System Libraries.py # import the CLR library import clr # add a reference to the System.Collections Assembly clr.AddReference('System.Collections') # generics are usually used with collections, so let's import the 'Dictiona...
1,456
4,238
<gh_stars>1000+ #!/usr/bin/env python """Tests for config_lib classes.""" import os import platform import stat from typing import Any, Dict from absl.testing import absltest from grr_response_core.lib import config_parser from grr_response_core.lib.util import temp class IniConfigFileParserTest(absltest.TestCase...
1,867
629
/* * Copyright (c) 2017-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #pragma once #include "synctrainer.h" namespace cpid { /** * Implements a n-step Advantage Actor-critic algorithm. * It supports set...
1,041
3,967
<filename>dali/plugin/plugin_manager_test.cc // Copyright (c) 2018, NVIDIA CORPORATION. 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.or...
509
368
<gh_stars>100-1000 /* Plugin-SDK (Grand Theft Auto) source file Authors: GTA Community. See more here https://github.com/DK22Pac/plugin-sdk Do not delete this comment block. Respect others' work! */ #include "plugin.h" #include "common.h" #include "CTimer.h" #include "CStreaming.h" #include "CTaskComple...
1,705
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...
38,464
678
<gh_stars>100-1000 /** * This header is generated by class-dump-z 0.2b. * * Source: /System/Library/PrivateFrameworks/DataDetectorsUI.framework/DataDetectorsUI */ #import <DataDetectorsUI/DataDetectorsUI-Structs.h> #import <DataDetectorsUI/UIActionSheetDelegate.h> #import <DataDetectorsUI/DDDetectionController.h> ...
1,235
348
{"nom":"Chichery","circ":"2ème circonscription","dpt":"Yonne","inscrits":328,"abs":171,"votants":157,"blancs":11,"nuls":4,"exp":142,"res":[{"nuance":"REM","nom":"<NAME>","voix":101},{"nuance":"UDI","nom":"M. <NAME>","voix":41}]}
92
348
{"nom":"Saint-Just","circ":"3ème circonscription","dpt":"Dordogne","inscrits":112,"abs":36,"votants":76,"blancs":3,"nuls":3,"exp":70,"res":[{"nuance":"SOC","nom":"<NAME>","voix":54},{"nuance":"MDM","nom":"<NAME>","voix":16}]}
92
3,788
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See LICENSE in the project root for license information. #pragma once class FloatUtil { public: // Represents a value that is not a number (NaN). static const float NaN; };
92
3,442
/* * Jitsi, the OpenSource Java VoIP and Instant Messaging client. * * Copyright @ 2015 Atlassian Pty 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 the License at * * http://www.apache.or...
515
681
#ifndef TYPES_H #define TYPES_H #include "PsyX/PsyX_config.h" #include <stdint.h> #include <stddef.h> #if !defined(__APPLE__) /* major part of a device */ #define major(x) ((int)(((unsigned)(x)>>8)&0377)) /* minor part of a device */ #define minor(x) ((int)((x)&0377)) /* make a device number */ #define makedev(x,y...
462
1,585
/* * Copyright (C) by Argonne National Laboratory * See COPYRIGHT in top-level directory */ #include "mpl.h" #include <stdio.h> #include <stdlib.h> #include <string.h> #include <assert.h> int main(void) { char *orig; char *str; char *next; str = NULL; next = MPL_strsep(&str, "|"); asse...
850
648
<reponame>swrobel/fhir {"resourceType":"SearchParameter","id":"Consent-actor","url":"http://hl7.org/fhir/SearchParameter/Consent-actor","name":"actor","status":"draft","experimental":false,"date":"2017-04-19T07:44:43+10:00","publisher":"Health Level Seven International (Community Based Collaborative Care)","contact":[{...
257
518
import pytest from _pytest.fixtures import FixtureRequest from holodeck import HolodeckException from holodeck.environments import HolodeckEnvironment from tests.utils.captures import compare_rgb_sensor_data_with_baseline from tests.worlds.mazeworld.conftest import ( weather_type_test_data, time_test_data, ...
2,372
2,151
/* * Copyright 2011 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 applic...
2,147
1,109
<reponame>LuShengDong/wasabi<filename>modules/analytics-objects/src/test/java/com/intuit/wasabi/analyticsobjects/statistics/DailyStatisticsTest.java<gh_stars>1000+ /******************************************************************************* * Copyright 2016 Intuit * <p> * Licensed under the Apache License, Versi...
1,045
1,761
/* Copyright (C) 1999-2021 by The D Language Foundation, All Rights Reserved * written by <NAME> * https://www.digitalmars.com * Distributed under the Boost Software License, Version 1.0. * https://www.boost.org/LICENSE_1_0.txt * https://github.com/dlang/dmd/blob/master/src/dmd/root/port.h */ #pragma once // P...
372
401
<reponame>roman-murashov/hedgewars /* * Hedgewars, a free turn based strategy game * Copyright (C) 2012 <NAME> <<EMAIL>> * * 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 ...
2,137
892
{ "schema_version": "1.2.0", "id": "GHSA-gxr7-xgq6-2pjx", "modified": "2022-05-13T01:06:47Z", "published": "2022-05-13T01:06:47Z", "aliases": [ "CVE-2011-0776" ], "details": "The sandbox implementation in Google Chrome before 9.0.597.84 on Mac OS X might allow remote attackers to obtain potentially se...
479
14,668
<filename>ios/chrome/common/ui/elements/form_input_accessory_view.h // Copyright 2014 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef IOS_CHROME_COMMON_UI_ELEMENTS_FORM_INPUT_ACCESSORY_VIEW_H_ #define IOS_CHROME_...
663
1,293
<filename>mentalist/controller.py<gh_stars>1000+ #! /usr/bin/env python3 logo = ''' _ _ _ _ /\/\ ___ _ __ | |_ __ _| (_)___| |_ / \ / _ \ '_ \| __/ _` | | / __| __| / /\/\ \ __/ | | | || (_| | | \__ \ |_ \/ \/\___|_| |_|\__\__,_|_|_|___/\__| ...
6,931
2,338
// RUN: %clang_cc1 %s -fsyntax-only -verify -Wcall-to-pure-virtual-from-ctor-dtor struct A { A() { f(); } // expected-warning {{call to pure virtual member function 'f' has undefined behavior; overrides of 'f' in subclasses are not available in the constructor of 'A'}} ~A() { f(); } // expected-warning {{call to pu...
710
809
#include "i2c.h" char i2c0_get(char slv_addr, int addr) { I2C0_TX_DATA(slv_addr); //set Slave Address for transmit I2C0_CMD(I2C0_START_WR); //send START + WR while(I2C0_TIP); //wait end of data transmit while(I2C0_ACK_RX); //wait ACK I2C0_TX_DATA((addr & 0xFF00)>>8); //set first address byte for transmit I2C0_CM...
431
698
<reponame>ELS-RD/transformer-deploy<gh_stars>100-1000 # Copyright 2022, <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...
7,119
876
#ifndef _MANIF_MANIF_AUTODIFF_LOCAL_PARAMETRIZATION_H_ #define _MANIF_MANIF_AUTODIFF_LOCAL_PARAMETRIZATION_H_ namespace manif { template <typename Ad, typename Derived> Eigen::Matrix<typename Derived::Scalar, Derived::RepSize, Derived::DoF> autodiffLocalParameterizationJacobian(const manif::LieGroupBase<Derived>& _st...
437
831
<filename>project-system-gradle/src/com/android/tools/idea/run/GradleApplicationIdProvider.java /* * Copyright (C) 2020 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 t...
2,588
809
//const char in6addr_any;
10
1,253
#include <bits/stdc++.h> using namespace std; int main() { int n,i,j; cin >> n; int a[n],prod[n]; for(i=0;i<n;i++) prod[i] = 1; int maxm = 1; for(i=0;i<n;i++) { cin >> a[i]; } for(i=1;i<n;i++) { for(j=0;j<n;j++) { if(a[i]>a[j] && prod[j]+1 > prod[i]) prod[i] = prod[j]+1; } if(maxm<prod[i])...
240
435
<reponame>amaajemyfren/data<gh_stars>100-1000 { "description": "Circus est un programme capable de g\u00e9rer la vie et la mort des processus et des sockets sur votre machine. L'id\u00e9e est de pouvoir g\u00e9rer ceux-cis facilement, depuis une interface python, et de recevoir des informations sur leur \u00e9tat: co...
607
1,664
<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,015
2,542
<gh_stars>1000+ // ------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License (MIT). See License.txt in the repo root for license information. // ------------------------------------------------------------ #pragma once ...
6,648
830
//_________________________________________________________________________________________________ //| -- INFO -- //| Name : CmdLine.cc //| Author(s) : <NAME> //| Module : CmdLine //| Description : Command line parsing. ...
569
4,618
<filename>tests/test_scripts.py import unittest from unittest import mock from kinto import scripts class RebuildQuotasTest(unittest.TestCase): def setUp(self): self.registry = mock.MagicMock() self.registry.settings = {"includes": "kinto.plugins.quotas"} def test_rebuild_quotas_in_read_only...
593
456
<reponame>belzecue/DJV<gh_stars>100-1000 // SPDX-License-Identifier: BSD-3-Clause // Copyright (c) 2004-2020 <NAME> // All rights reserved. #include <djvMath/Math.h> #include <djvCore/Memory.h> namespace djv { template<typename T, glm::precision P> inline bool fuzzyCompare(const glm::tvec2<T, P>& a, const gl...
2,019
1,350
""" This module contains certified classifiers. """ from art.estimators.certification import randomized_smoothing
28
1,936
<reponame>AdronTech/maplab // Original code Copyright Willowgarage as part of ROS, adapted here (BSD). // http://ros.org/wiki/vocabulary_tree #ifndef VOCABULARY_TREE_VOCABULARY_TREE_H_ #define VOCABULARY_TREE_VOCABULARY_TREE_H_ #include <cassert> #include <fstream> // NOLINT #include <limits> #include <stdexcept> #in...
1,205
493
package com.jdh.microcraft.item.tool; import com.jdh.microcraft.gfx.Color; import com.jdh.microcraft.item.Material; public class ItemGlove extends ItemTool { public ItemGlove(int id) { super(id, ItemTool.TYPE_OMNI, Material.BASE); } @Override public double getStaminaCostMultiplier() { ...
319