max_stars_count
int64
301
224k
text
stringlengths
6
1.05M
token_count
int64
3
727k
1,668
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('assets', '0027_asset_buyout_date'), ('ssl_certificates', '0001_initial'), ] operations = [ ...
352
590
/*! @file @author <NAME> @date 08/2012 */ #include "ExportDefine.h" #include "ExportMarshaling.h" #include "MyGUI_LayerManager.h" #include "MyGUI_CustomLayer.h" #include "MyGUI_ExportDiagnostic.h" #include "MyGUI_CustomLayerNode.h" namespace Export { namespace ScopeLayers_GetLayer { MYGUIEXPORT Convert<bool...
671
1,936
#include "rovioli/rovioli-node.h" #include <string> #include <aslam/cameras/ncamera.h> #include <localization-summary-map/localization-summary-map.h> #include <message-flow/message-flow.h> #include <message-flow/message-topic-registration.h> #include <vio-common/vio-types.h> #include "rovioli/datasource-flow.h" #inc...
1,478
782
<gh_stars>100-1000 /* * Copyright (c) 2021, <NAME>. All Rights Reserved. * * This file is part of BoofCV (http://boofcv.org). * * 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 * * ht...
690
815
/*========================================================================= Program: ParaView Module: pqOutputPortComboBox.h Copyright (c) 2005-2008 Sandia Corporation, Kitware Inc. All rights reserved. ParaView is a free software; you can redistribute it and/or modify it under the terms of the ...
1,127
1,511
* spinlock API declarations on SMP (and debug) * (implemented in kernel/spinlock.c) * * portions Copyright 2005, Red Hat, Inc., <NAME> * Released under the General Public License (GPL). */
56
400
/* * libdvs.h - abstract header for DVS (Digital Video Stabilizer) * * Copyright (c) 2014-2016 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://...
821
488
// gcc accepts this in C mode, not in C++ mode (per the C++ spec) typedef struct zone_struct { int x; } zone_t; struct zone_t;
48
4,879
<filename>platform/locale.hpp #pragma once #include <string> namespace platform { struct Locale { public: std::string m_language; std::string m_country; std::string m_currency; }; Locale GetCurrentLocale(); } // namespace platform
84
521
<filename>third_party/virtualbox/src/VBox/Frontends/VirtualBox/src/globals/UIErrorString.cpp<gh_stars>100-1000 /* $Id: UIErrorString.cpp $ */ /** @file * VBox Qt GUI - UIErrorString class implementation. */ /* * Copyright (C) 2006-2017 Oracle Corporation * * This file is part of VirtualBox Open Source Edition (OS...
3,199
676
package com.alorma.github.utils.uris; import android.net.Uri; /** * Created by Bernat on 18/04/2015. */ public class RepoUri { private Uri uri; public RepoUri create(String url) { uri = Uri.parse(url); return this; } public String getOwner() { if (uri != null) { int path = 0; if (u...
303
476
/* * 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 writing, software * distribut...
4,991
916
<gh_stars>100-1000 package com.vladmihalcea.flexypool.metric.dropwizard; import com.codahale.metrics.Metric; import com.codahale.metrics.Reservoir; /** * <code>ReservoirFactory</code> defines how a Dropwizard reservoir is allocated to a specific Metric. * * @author <NAME> * @since 1.2.2 */ public interface Reser...
204
2,010
<filename>ScatteringTransform/test/run_tf.py<gh_stars>1000+ import os # Disable Tensorflow's INFO and WARNING messages # See http://stackoverflow.com/questions/35911252 if 'TF_CPP_MIN_LOG_LEVEL' not in os.environ: os.environ['TF_CPP_MIN_LOG_LEVEL'] = '2' import tensorflow as tf import sys sys.path.append("../src/ut...
734
3,428
{"AA":"vowel","AE":"vowel","AH":"vowel","AO":"vowel","AW":"vowel","AY":"vowel","B":"stop","CH":"affricate","D":"stop","DH":"fricative","EH":"vowel","ER":"vowel","EY":"vowel","F":"fricative","G":"stop","HH":"aspirate","IH":"vowel","IY":"vowel","JH":"affricate","K":"stop","L":"liquid","M":"nasal","N":"nasal","NG":"nasal"...
225
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 ...
4,952
1,431
<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 license...
2,352
348
{"nom":"Savouges","circ":"5ème circonscription","dpt":"Côte-d'Or","inscrits":249,"abs":121,"votants":128,"blancs":6,"nuls":4,"exp":118,"res":[{"nuance":"LR","nom":"<NAME>","voix":60},{"nuance":"REM","nom":"<NAME>","voix":58}]}
93
626
<filename>contrib/spring_sleuth_v1x/src/test/java/io/opencensus/contrib/spring/sleuth/v1x/OpenCensusSleuthSpanContextHolderTest.java /* * Copyright 2018, OpenCensus Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You m...
2,468
412
/* 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 law or agreed to in wri...
7,853
1,350
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. package com.azure.resourcemanager.synapse.fluent.models; import com.azure.core.annotation.Fluent; import com.azure.core.management.ProxyResource; import com.azure...
834
301
# Copyright 2016 Confluent 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 agreed to in writing, s...
2,946
352
{ "navigationBarTitleText": "退款/售后", "enablePullDownRefresh": true, "usingComponents": { "van-panel": "@vant/weapp/panel/index", "refund-card": "@/pages/refund/components/card/index", "list": "@/components/list/index" } }
107
4,326
<gh_stars>1000+ # -*- encoding: utf-8 -*- import unittest from isso import utils from isso.utils import parse class TestUtils(unittest.TestCase): def test_anonymize(self): examples = [ (u'12.34.56.78', u'12.34.56.0'), (u'fc00:db20:35b:7399::5', u'fdf8:f53e:61e4::18...
1,224
578
<reponame>hamid646/xmemcached /** * Copyright [2009-2010] [<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 * app...
598
852
<filename>SimG4Core/Application/interface/ThreadHandoff.h<gh_stars>100-1000 #ifndef SimG4Core_Application_ThreadHandoff_h #define SimG4Core_Application_ThreadHandoff_h // -*- C++ -*- // // Package: SimG4Core/Application // Class : ThreadHandoff // /**\class ThreadHandoff ThreadHandoff.h "SimG4Core/Application/...
955
1,293
/* * Copyright (c) 2018 - Manifold Systems 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 required by applicable ...
3,928
404
<reponame>techkey/PTVS from ctypes import * class PyObject(Structure): _fields_ = [('ob_refcnt', c_size_t), ('ob_type', py_object)] class PseudoTypeType(object): def __getattribute__(self, name): if name == '__repr__': raise Exception() elif name == '__name__': ...
259
1,909
<reponame>grmkris/XChange<filename>xchange-lykke/src/test/java/org/knowm/xchange/lykke/LykkeExceptionTest.java<gh_stars>1000+ package org.knowm.xchange.lykke; import static org.assertj.core.api.AssertionsForClassTypes.assertThat; import com.fasterxml.jackson.databind.ObjectMapper; import java.io.IOException; import j...
372
348
{"nom":"Etais","circ":"4ème circonscription","dpt":"Côte-d'Or","inscrits":69,"abs":38,"votants":31,"blancs":0,"nuls":4,"exp":27,"res":[{"nuance":"REM","nom":"<NAME>","voix":18},{"nuance":"LR","nom":"M. <NAME>","voix":9}]}
95
348
{"nom":"Bettwiller","circ":"7ème circonscription","dpt":"Bas-Rhin","inscrits":263,"abs":143,"votants":120,"blancs":4,"nuls":5,"exp":111,"res":[{"nuance":"LR","nom":"<NAME>","voix":79},{"nuance":"REM","nom":"<NAME>","voix":32}]}
91
2,151
# -*- coding: utf-8 -*- # Copyright 2015 The Chromium OS Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """Unittests for systeminfo.""" from __future__ import print_function import collections import io import mock import os import ...
7,978
2,401
<reponame>keenahn/lwip #include "image.h" CropWorker::CropWorker( size_t left, size_t top, size_t right, size_t bottom, CImg<unsigned char> * cimg, Nan::Callback * callback ): Nan::AsyncWorker(callback), _left(left), _top(top), _right(right), _bottom(bottom), _cimg(cimg) {} CropWorker::~Cr...
328
679
<filename>main/sc/source/ui/unoobj/ChartRangeSelectionListener.cxx<gh_stars>100-1000 /************************************************************** * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additio...
1,119
145,614
<gh_stars>1000+ #!/usr/bin/env python3 from __future__ import annotations from typing import Any, Generic, Iterable, Iterator, TypeVar T = TypeVar("T", bound=bool) class SkewNode(Generic[T]): """ One node of the skew heap. Contains the value and references to two children. """ def __init__(sel...
2,258
5,852
<filename>proxygen/lib/http/session/HTTPDefaultSessionCodecFactory.h /* * Copyright (c) Facebook, Inc. and its affiliates. * 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. */ #pragma once #include <proxygen...
412
1,139
<filename>CoreJavaProjects/CoreJavaExamples/src/com/journaldev/string/StringArrayToString.java package com.journaldev.string; import java.util.Arrays; public class StringArrayToString { /** * This program shows how to convert String Array to String * @param args */ public static void main(Stri...
347
1,374
/* * TypeScript definitions to Java translator - http://www.jsweet.org * Copyright (C) 2015 CINCHEO SAS <<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 3 of th...
972
575
<filename>components/viz/service/display/overlay_strategy_single_on_top.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 COMPONENTS_VIZ_SERVICE_DISPLAY_OVERLAY_STRATEGY_SINGLE_ON_TOP_H_ #define...
1,342
317
<gh_stars>100-1000 package com.googlecode.totallylazy.numbers; import com.googlecode.totallylazy.functions.CurriedMonoid; import com.googlecode.totallylazy.comparators.NullComparator; public class Minimum implements com.googlecode.totallylazy.comparators.Minimum<Number>,CurriedMonoid<Number> { @Override publi...
207
1,250
<reponame>yeti-threatintel/yeti<gh_stars>1000+ import logging from core.errors import ObservableValidationError from core.observables import Certificate def register_certificate(content, context, source): """Helper function to register certificate Args: content (str): The certificate content. ...
618
1,461
<reponame>TheBlindMick/MPU6050 // 300-Gen-OwnGenerator.cpp // Shows how to define a custom generator. // Specifically we will implement a random number generator for integers // It will have infinite capacity and settable lower/upper bound #include <catch2/catch.hpp> #include <random> // This class shows how to imp...
696
602
<filename>testing/src/test/java/io/stargate/it/storage/StargateSpec.java /* * Copyright The Stargate 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/l...
463
1,178
/* * 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 required by applicable law ...
1,065
364
/* Dwarf Therapist Copyright (c) 2009 <NAME> (chmod) 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 use, copy, modify, merge, publi...
1,401
60,067
<filename>aten/src/ATen/native/quantized/cpu/qnnpack/wrappers/requantization/gemmlowp-scalar.c /* Auto-generated by generate-wrappers.py script. Do not modify */ #include <requantization/gemmlowp-scalar.c>
77
333
<reponame>alipay/alipay-sdk-java-all package com.alipay.api.response; import com.alipay.api.AlipayResponse; /** * ALIPAY API: alipay.commerce.iot.mdeviceprod.device.bind response. * * @author auto create * @since 1.0, 2021-07-14 10:12:37 */ public class AlipayCommerceIotMdeviceprodDeviceBindResponse...
179
607
<filename>src/main/java/dev/cheerfun/pixivic/basic/cbir/service/TagInfoCrawlerService.java package dev.cheerfun.pixivic.basic.cbir.service; import com.fasterxml.jackson.core.JsonProcessingException; import com.fasterxml.jackson.databind.ObjectMapper; import dev.cheerfun.pixivic.basic.cbir.domain.FeatureTag; import dev...
2,005
3,055
<reponame>Linghhh/u8g2<filename>sys/arm/stm32l031x6/eval_board/main.c /* Example for the STM32L031 Eval Board with 128x64 OLED at PA13/PA14 */ #include <stdio.h> #include "stm32l031xx.h" #include "delay.h" #include "u8x8.h" /*=======================================================================*/ /* external...
2,049
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 ...
1,111
1,199
# coding=utf-8 # Copyright 2018 The Google AI Language Team 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 ...
1,712
575
/* This file is part of Lwt, released under the MIT license. See LICENSE.md for details, or visit https://github.com/ocsigen/lwt/blob/master/LICENSE.md. */ #include "lwt_config.h" #if !defined(LWT_ON_WINDOWS) #include <caml/mlvalues.h> #include <caml/unixsupport.h> #include <poll.h> CAMLprim value lwt_unix_rea...
236
1,444
package mage.cards.d; import java.util.UUID; import mage.MageInt; import mage.abilities.common.SimpleActivatedAbility; import mage.abilities.costs.mana.ColoredManaCost; import mage.abilities.effects.common.RegenerateSourceEffect; import mage.cards.CardImpl; import mage.cards.CardSetInfo; import mage.constants.CardTyp...
438
1,745
<reponame>stefantaubert/deepvoice3_pytorch import numpy as np # https://github.com/tensorflow/tensor2tensor/issues/280#issuecomment-339110329 def noam_learning_rate_decay(init_lr, global_step, warmup_steps=4000): # Noam scheme from tensor2tensor: warmup_steps = float(warmup_steps) step = global_step + 1....
530
3,631
<reponame>AnilKumarBejjanki/drools /* * Copyright 2019 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. * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable...
342
758
import os from collections import OrderedDict import pandas as pd import seaborn as sns import cv2 import matplotlib as mpl import matplotlib.pyplot as plt import numpy as np from .datasets import get_tide_path from .errors.main_errors import ( BackgroundError, BoxError, ClassError, DuplicateError, ...
4,507
839
<filename>systests/tracing/src/test/java/org/apache/cxf/systest/jaxrs/tracing/opentracing/IsLogContaining.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 * regarding copyright ...
623
14,668
// 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 "remoting/codec/webrtc_video_encoder_proxy.h" #include "base/bind.h" #include "base/threading/sequenced_task_runner_handle.h" #include "third_pa...
1,279
5,447
<filename>scripts/pose/directpose/demo_directpose.py<gh_stars>1000+ import os import argparse from gluoncv.torch import model_zoo from gluoncv.torch.engine.config import get_cfg_defaults from gluoncv.torch.utils.model_utils import download from gluoncv.torch.utils.visualizer import ColorMode, Visualizer from gluoncv.to...
2,004
679
<gh_stars>100-1000 /************************************************************** * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF license...
1,361
1,219
/* * Copyright 2013 Bazaarvoice, 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 agre...
505
1,503
<filename>parquet-pig/src/main/java/org/apache/parquet/pig/convert/DecimalUtils.java<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. ...
771
2,151
// 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. #include <stddef.h> #include <stdint.h> #include "third_party/ots/include/opentype-sanitiser.h" #include "third_party/ots/include/ots-memory-stream.h" s...
212
361
<filename>src/main/java/li/cil/oc2/common/network/message/ComputerBusStateMessage.java package li.cil.oc2.common.network.message; import li.cil.oc2.common.bus.CommonDeviceBusController; import li.cil.oc2.common.network.MessageUtils; import li.cil.oc2.common.tileentity.ComputerTileEntity; import net.minecraft.network.P...
515
819
/* -------------------------------------------------------------------------- */ /* Copyright 2002-2021, OpenNebula Project, OpenNebula Systems */ /* */ /* Licensed under the Apache License, Version 2.0 (the "License"); you may ...
1,620
778
<reponame>troels/compute-runtime /* * Copyright (C) 2019-2021 Intel Corporation * * SPDX-License-Identifier: MIT * */ #include "shared/source/command_stream/command_stream_receiver_with_aub_dump.inl" #include "shared/source/os_interface/linux/device_command_stream.inl" #include "shared/source/os_interface/linux/d...
216
2,930
/* * Copyright (c) 2020 The ZLMediaKit project authors. All Rights Reserved. * Created by alex on 2021/4/6. * This file is part of ZLMediaKit(https://github.com/xia-chu/ZLMediaKit). * * Use of this source code is governed by MIT license that can be found in the * LICENSE file in the root of the source tree. All c...
518
353
#include "gtest/gtest.h" #include "util/testutil.hpp" #include "disassembly/extractimmediate.hpp" TEST(extract_immediate, x86registers) { std::vector<uint64_t> results; ExtractImmediateFromString("EAX", &results); EXPECT_EQ(results.size(), 0); ExtractImmediateFromString("EBX", &results); EXPECT_EQ(results.s...
527
326
<reponame>Pacman1984/etna from pathlib import Path from subprocess import run from tempfile import NamedTemporaryFile from tempfile import TemporaryDirectory import pandas as pd import pytest @pytest.fixture def base_backtest_yaml_path(): tmp = NamedTemporaryFile("w") tmp.write( """ n_folds: ...
1,193
945
/* * 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 ...
718
577
# Copyright � Corporation for National Research Initiatives import sys, os, java, jarray # This file is retained only for backward compatibility. # # This supports the jython -jar <zip-or-jar-file> command, under a mechanism by which # This file must be copied into the root of a ZIP/JAR file system. # See org/python/u...
753
312
#include "clar_libgit2.h" #include "odb.h" void test_object_raw_size__validate_oid_size(void) { git_oid out; cl_assert(20 == GIT_OID_RAWSZ); cl_assert(40 == GIT_OID_HEXSZ); cl_assert(sizeof(out) == GIT_OID_RAWSZ); cl_assert(sizeof(out.id) == GIT_OID_RAWSZ); }
138
1,111
<reponame>Jonypr-code/KivyMD from kivymd.uix.behaviors import CircularElevationBehavior from kivymd.uix.boxlayout import MDBoxLayout from kivymd.uix.screen import MDScreen class KitchenSinkElevationScreen(MDScreen): pass class KitchenSinkElevationExampleCircle(CircularElevationBehavior, MDBoxLayout): def on...
147
607
<gh_stars>100-1000 /* * This file is a part of the open source stm32plus library. * Copyright (c) 2011,2012,2013,2014 <NAME> <www.andybrown.me.uk> * Please see website for licensing terms. */ #pragma once #ifdef WIN32 #pragma pack(push,1) #endif namespace stm32plus { namespace fat { /** * @brief FAT sh...
571
527
<gh_stars>100-1000 /* * Copyright 2018 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 i...
640
4,537
<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 // "Li...
742
2,915
<filename>src/demo/platform/environment.c /* ////////////////////////////////////////////////////////////////////////////////////// * includes */ #include "../demo.h" /* ////////////////////////////////////////////////////////////////////////////////////// * main */ tb_int_t tb_demo_platform_environment_main(tb_in...
630
679
<reponame>Grosskopf/openoffice<filename>main/idlc/inc/idlc/astscope.hxx<gh_stars>100-1000 /************************************************************** * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for ad...
737
443
<gh_stars>100-1000 from __future__ import absolute_import, division, unicode_literals from flask.ext.restful import reqparse from changes.api.auth import get_project_slug_from_plan_id, requires_project_admin from changes.api.base import APIView from changes.config import db from changes.models.plan import Plan, PlanS...
667
5,169
<reponame>Gantios/Specs { "name": "ViewInspector", "version": "0.4.10", "summary": "ViewInspector is a library for unit testing SwiftUI views.", "homepage": "https://github.com/nalexn/ViewInspector", "license": { "type": "MIT", "file": "LICENSE" }, "authors": { "<NAME>": "<EMAIL>" }, "plat...
363
330
<filename>src/main/java/chapter_14/Example1.java<gh_stars>100-1000 package chapter_14; /** * 商店定位器 * * @author biezhi * @date 2018/9/24 */ public class Example1 { /** * 给某个用户实现一个“商店定位器” * * 对于任何给定用户的经纬度,找到距离该经纬度最近的商店。 * * 1. 当位置处理国际日期分界线两侧的情况 * 2. 接近北极或南极的位置 * 3. 按 “每英里所跨经纬...
350
378
/* -*- Mode: c; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil; -*- */ #include <stdio.h> #include <stdlib.h> #include <stdint.h> #include <concurrent/concurrent.h> #include <concurrent/shortname.h> #define STACK_SIZE (1024 * 2) /* coroutine in coroutine recursive */ void coro(struct concurrent_ctx *ctx) { ...
1,287
9,402
<filename>src/coreclr/vm/peimagelayout.h // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // -------------------------------------------------------------------------------- // PEImageLayout.h // // --------------------------------...
1,383
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...
565
1,523
// 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...
6,336
742
#include <limits> #include "velocityprofile_spline.hpp" namespace KDL { static inline void generatePowers(int n, double x, double* powers) { powers[0] = 1.0; for (int i=1; i<=n; i++) { powers[i] = powers[i-1]*x; } return; } VelocityProfile_Spline::VelocityProfile_Spline() { duration_ = 0.0; coef...
2,222
521
/** * @file tests/llvmir2hll/ir/function_tests.cpp * @brief Tests for the @c function module. * @copyright (c) 2017 Avast Software, licensed under the MIT license */ #include <gtest/gtest.h> #include "retdec/llvmir2hll/ir/empty_stmt.h" #include "retdec/llvmir2hll/ir/function.h" #include "retdec/llvmir2hll/ir/int_type...
1,991
2,151
<reponame>rio-31/android_frameworks_base-1 /* * Copyright (C) 2014 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/licens...
950
348
{ "cert_provider_command":[ "/opt/google/endpoint-verification/bin/SecureConnectHelper", "--print_certificate"], "device_resource_ids":["11111111-1111-1111"] }
62
1,473
/* * Copyright 2018 NAVER 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 in w...
2,018
333
<filename>src/PortBender/PortBender/Arguments.cpp // Copyright 2021 Praetorian Security, 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/LIC...
573
488
#define PI 3.14159265358979323846 #define fixangle(a) ((a) - 360.0 * (floor((a) / 360.0))) /* Fix angle */ #define torad(d) ((d) * (PI / 180.0)) /* Deg->Rad */ #include <math.h> int main() { double A4, MmP, lP, Lambdasun; torad(2 * MmP); torad(2 * (lP - Lambdasun)); torad(MmP); A4 = 0.214 * sin(tor...
245
1,283
package com.pengrad.telegrambot.checks; import com.pengrad.telegrambot.model.Sticker; import static org.junit.Assert.assertNotNull; /** * stas * 10/21/15. */ public class StickerTest { public static void check(Sticker sticker, boolean emoji, boolean fileSize) { assertNotNull(sticker.fileId()); ...
238
4,054
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. package com.yahoo.documentapi.messagebus.protocol; import com.yahoo.document.BucketId; import com.yahoo.document.DocumentId; import org.junit.Test; import static org.junit.Assert.assertFalse; /** * @author vekte...
494
708
package com.anji.captcha.config; import com.anji.captcha.properties.AjCaptchaProperties; import org.springframework.boot.context.properties.EnableConfigurationProperties; import org.springframework.context.annotation.ComponentScan; import org.springframework.context.annotation.Configuration; import org.springframework...
160
2,151
<reponame>zipated/src /* * 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-2.0 * * ...
4,306
7,482
/* * @brief CMSIS Peripheral Access Layer for NV32 * * CMSIS Peripheral Access Layer for NV32 */ #if !defined(NV32_H_) #define NV32_H_ /**< Symbol preventing repeated inclusion */ /** Memory map major version (memory maps with equal major version number are * compatible) */ #define ...
80,951
1,056
<reponame>timfel/netbeans /* * 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....
8,787
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...
14,137
5,079
<filename>desktop/core/ext-py/Django-1.11/tests/admin_scripts/app_raising_warning/models.py # -*- coding: utf-8 -*- from __future__ import unicode_literals from django.core import checks from django.db import models class ModelRaisingMessages(models.Model): @classmethod def check(self, **kwargs): ret...
128