max_stars_count
int64
301
224k
text
stringlengths
6
1.05M
token_count
int64
3
727k
331
<reponame>Pranav174/DensePhrases import spacy import json import random import numpy as np from tqdm import tqdm from pipelines import pipeline nlp_sent = spacy.load("en_core_web_sm") doc = nlp_sent('European authorities fined Google a record $5.1 billion on Wednesday for abusing its power in the mobile phone market a...
2,168
2,151
/* * Copyright (C) 1999 <NAME> (<EMAIL>) * (C) 2004-2005 <NAME> (<EMAIL>) * Copyright (C) 2006, 2007 <NAME> (<EMAIL>) * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple Inc. * All rights reserved. * Copyright (C) 2007 <NAME> <<EMAIL>> * Copyright (C) 2007, 2008 <NAME> <<EMAIL>> ...
28,764
892
{ "schema_version": "1.2.0", "id": "GHSA-6hxc-5477-3vmj", "modified": "2022-05-01T07:07:30Z", "published": "2022-05-01T07:07:30Z", "aliases": [ "CVE-2006-3281" ], "details": "Microsoft Internet Explorer 6.0 does not properly handle Drag and Drop events, which allows remote user-assisted attackers to e...
994
337
package a; public class A { public class <caret>X { public X(String s) { System.out.println(s); } } }
72
335
<reponame>Safal08/Hacktoberfest-1 { "word": "Zester", "definitions": [ "A kitchen utensil for removing fine shreds of zest from citrus fruit." ], "parts-of-speech": "Noun" }
86
2,003
<reponame>cuisonghui/tera // Copyright (c) 2015, Baidu.com, Inc. All Rights Reserved // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef TERA_UTILS_UTILS_CMD_H_ #define TERA_UTILS_UTILS_CMD_H_ #include <map> #include <string> #include "leveldb/env.h" names...
290
335
<reponame>Safal08/Hacktoberfest-1 { "word": "Galactose", "definitions": [ "A sugar of the hexose class which is a constituent of lactose and many polysaccharides." ], "parts-of-speech": "Noun" }
91
645
// Copyright 2013-2016 Stanford University // // 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 ...
477
2,482
<reponame>VBallack/ArgusAPM package com.argusapm.android.core.job.net.impl; import com.argusapm.android.Env; import com.argusapm.android.utils.LogX; import java.io.IOException; import java.net.HttpURLConnection; import java.net.Proxy; import java.net.URL; import java.net.URLConnection; import javax.net.ssl.HttpsURLC...
578
332
/* Copyright (c) 2014 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Author: <NAME> */ #include <string> #include "kernel/error_msgs.h" #include "kernel/kernel_exception.h" #include "kernel/abstract_type_context.h" #include "library/util.h" #include "lib...
1,530
4,640
# 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 u...
3,647
4,409
/* * Copyright 2013-2014 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicabl...
421
416
<reponame>onezens/sdks<gh_stars>100-1000 // // MediaPlayerDefines.h // MediaPlayer // // Copyright 2008 Apple, Inc. All rights reserved. // #import <Availability.h> #import <TargetConditionals.h> #ifdef __cplusplus #define MP_EXTERN extern "C" __attribute__((visibility ("default"))) #else #define MP_EXTERN extern ...
687
997
<reponame>mkannwischer/PQClean #ifndef PQCLEAN_SPHINCSHARAKA256FSIMPLE_AESNI_API_H #define PQCLEAN_SPHINCSHARAKA256FSIMPLE_AESNI_API_H #include <stddef.h> #include <stdint.h> #define PQCLEAN_SPHINCSHARAKA256FSIMPLE_AESNI_CRYPTO_ALGNAME "SPHINCS+" #define PQCLEAN_SPHINCSHARAKA256FSIMPLE_AESNI_CRYPTO_SECRETKEYBYTES ...
1,106
322
#pragma once #include <immintrin.h> #include <ATen/ATen.h> #include "torch_ipex/csrc/cpu/bf16/vec/bf16_vec_kernel.h" namespace torch_ipex { namespace kernel { namespace vec { namespace vec512 { template <typename T> inline void rnnt_embedding_kernel_impl(const at::Tensor &embedding_table, ...
1,065
488
/* * * Copyright (c) International Business Machines Corp., 2002 * * 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 l...
1,441
552
<filename>app/src/main/java/com/github/malitsplus/shizurunotes/db/RawTowerSchedule.java package com.github.malitsplus.shizurunotes.db; public class RawTowerSchedule { public int tower_schedule_id; public String start_time; public String end_time; }
98
45,293
<filename>core/metadata/src/org/jetbrains/kotlin/metadata/builtins/BuiltInsProtoBuf.java<gh_stars>1000+ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: core/metadata/src/builtins.proto package org.jetbrains.kotlin.metadata.builtins; public final class BuiltInsProtoBuf { private BuiltInsProtoB...
4,757
1,031
/* File : example.c */ #include <stdio.h> #include <stdlib.h> #include <ctype.h> /* Compute the greatest common divisor of positive integers */ int gcd(int x, int y) { int g; g = y; while (x > 0) { g = x; x = y % x; y = g; } return g; } int gcdmain(int argc, char *argv[]) { int x,y; if (argc...
453
9,718
#include <Arduino.h> #include <ArduinoJson.h> #include <HTTPClient.h> #include <rpcWiFi.h> #include "SD/Seeed_SD.h" #include <Seeed_FS.h> #include <SPI.h> #include <vector> #include <WiFiClientSecure.h> #include "config.h" #include "camera.h" Camera camera = Camera(JPEG, OV2640_640x480); WiFiClientSecure client; vo...
2,204
1,125
// Copyright 2019 Google LLC // // This source code is licensed under the BSD-style license found in the // LICENSE file in the root directory of this source tree. // // Auto-generated file. Do not edit! // Specification: test/f32-raddexpminusmax.yaml // Generator: tools/generate-raddexpminusmax-test.py #include ...
15,407
358
<gh_stars>100-1000 package com.lucidworks.spark.query; import org.apache.log4j.Logger; import org.apache.solr.client.solrj.SolrQuery; import org.apache.solr.client.solrj.impl.CloudSolrClient; import org.apache.solr.client.solrj.impl.HttpSolrClient; import org.apache.solr.client.solrj.io.SolrClientCache; import org.apa...
969
348
<gh_stars>100-1000 {"nom":"Festigny","circ":"2ème circonscription","dpt":"Yonne","inscrits":85,"abs":36,"votants":49,"blancs":3,"nuls":1,"exp":45,"res":[{"nuance":"UDI","nom":"M. <NAME>","voix":24},{"nuance":"REM","nom":"<NAME>","voix":21}]}
100
5,411
<reponame>thorium-cfx/fivem /* * This file is part of the CitizenFX project - http://citizen.re/ * * See LICENSE and MENTIONS in the root of the source tree for information * regarding licensing. */ #include "StdInc.h" #include "Registry.h" // global registry for use by client-only modules InstanceReg...
401
1,350
<filename>sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/IntegrationServiceEnvironmentSubnetNetworkHealthImpl.java<gh_stars>1000+ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRes...
725
760
import sys import os import logging import asyncio import xviz_avs from xviz_avs.server import XVIZServer, XVIZBaseSession class XVIZMemorySourceSession(XVIZBaseSession): def __init__(self, socket, request, source): super().__init__(socket, request) self.source = source self._socket = soc...
582
522
package algs.model.problems.eightpuzzle; import algs.model.searchtree.DepthTransition; import algs.model.searchtree.INode; import algs.model.searchtree.IScore; /** * Fair evaluation, subset of GoodEvaluator from Nilsson, p. 66. * * @author <NAME> * @version 2.0, 8/30/15 * @since 1.0 */ public class FairEvaluat...
1,346
3,227
<filename>Orthtree/test/Orthtree/test_octree_copy_move_constructors.cpp #define CGAL_TRACE_STREAM std::cerr #include <iostream> #include <CGAL/Octree.h> #include <CGAL/Simple_cartesian.h> #include <CGAL/Point_set_3.h> #include <cassert> #include <CGAL/point_generators_3.h> typedef CGAL::Simple_cartesian<double> Ker...
619
412
<reponame>mauguignard/cbmc class Test2 { public static void foo() { assert false; } }
43
1,352
<reponame>mcolletta/pbrt-v4 // pbrt is Copyright(c) 1998-2020 <NAME>, <NAME>, and <NAME>. // The pbrt source code is licensed under the Apache License, Version 2.0. // SPDX: Apache-2.0 #include <pbrt/util/float.h> #include <pbrt/util/print.h> namespace pbrt { std::string Half::ToString() const { return StringPr...
149
701
#include "GraphicsSystem.h" #include "DecalsGameState.h" #include "OgreSceneManager.h" #include "OgreCamera.h" #include "OgreRoot.h" #include "OgreWindow.h" #include "OgreConfigFile.h" #include "Compositor/OgreCompositorManager2.h" #include "OgreTextureFilters.h" #include "OgreTextureGpuManager.h" //Declares WinMain...
4,723
554
<reponame>fxxf1111/X-APM package github.tornaco.xposedmoduletest.ui.activity.prop; import android.content.Context; import android.content.Intent; import android.support.v7.widget.SwitchCompat; import android.view.Menu; import android.view.MenuItem; import android.view.View; import java.util.ArrayList; impor...
1,776
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...
5,012
2,151
<gh_stars>1000+ // 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 "content/browser/tracing/cast_tracing_agent.h" #include <utility> #include "base/bind.h" #include "base/bind_helpers.h" #includ...
2,398
648
{"resourceType":"DataElement","id":"QuestionnaireResponse","meta":{"lastUpdated":"2015-10-24T07:41:03.495+11:00"},"url":"http://hl7.org/fhir/DataElement/QuestionnaireResponse","status":"draft","experimental":true,"stringency":"fully-specified","element":[{"path":"QuestionnaireResponse","short":"A structured set of ques...
180
348
{"nom":"Cazaux-d'Anglès","circ":"2ème circonscription","dpt":"Gers","inscrits":90,"abs":32,"votants":58,"blancs":6,"nuls":6,"exp":46,"res":[{"nuance":"SOC","nom":"<NAME>","voix":33},{"nuance":"REM","nom":"<NAME>","voix":13}]}
96
711
<reponame>jingetiema2100/MicroCommunity /* * Copyright 2017-2020 吴学文 and java110 team. * * 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...
737
531
<filename>test/pt/di_compile_time.cpp // // Copyright (c) 2012-2020 <NAME> (kris at jusiak dot net) // // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) // #if !defined(COVERAGE) #include <chrono> #include <cstdlib> ...
4,207
1,738
<filename>dev/Code/Sandbox/Editor/Util/PredefinedAspectRatios.h /* * All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or * its licensors. * * For complete copyright and license terms please see the LICENSE at the root of this * distribution (the "License"). All use of this software is gover...
519
1,006
/* Orx - Portable Game Engine * * Copyright (c) 2008-2021 Orx-Project * * This software is provided 'as-is', without any express or implied * warranty. In no event will the authors be held liable for any damages * arising from the use of this software. * * Permission is granted to anyone to use this sof...
13,706
2,134
#pragma once /* Copyright (c) 2017 <NAME> * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. */ namespace meta::detail { template<typename......
1,332
310
<filename>doma-core/src/main/java/org/seasar/doma/jdbc/query/ClobCreateQuery.java package org.seasar.doma.jdbc.query; import java.sql.Clob; import java.sql.Connection; import java.sql.SQLException; public class ClobCreateQuery extends AbstractCreateQuery<Clob> { @Override public Clob create(Connection connection...
134
839
/** * 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 m...
1,481
918
<gh_stars>100-1000 /* * Copyright 2018 CodiLime * * 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 o...
1,585
348
{"nom":"Cagny","circ":"2ème circonscription","dpt":"Calvados","inscrits":1212,"abs":628,"votants":584,"blancs":9,"nuls":5,"exp":570,"res":[{"nuance":"SOC","nom":"M<NAME>","voix":159},{"nuance":"REM","nom":"<NAME>","voix":146},{"nuance":"FN","nom":"Mme <NAME>","voix":76},{"nuance":"FI","nom":"M. <NAME>","voix":76},{"nua...
367
305
from imgaug import augmenters as iaa augmenter = iaa.Sequential( [ iaa.Fliplr(0.5), ], random_order=True, )
67
1,131
// 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...
1,396
3,001
# coding: utf-8 from __future__ import unicode_literals import re from .common import InfoExtractor from ..utils import js_to_json class LineTVIE(InfoExtractor): _VALID_URL = r'https?://tv\.line\.me/v/(?P<id>\d+)_[^/]+-(?P<segment>ep\d+-\d+)' _TESTS = [{ 'url': 'https://tv.line.me/v/793123_goodbye-...
1,645
5,342
<gh_stars>1000+ #ifndef VP8_MODEL_NUMERIC_HH_ #define VP8_MODEL_NUMERIC_HH_ //#define DEBUGDECODE //for uint16_t #include <cstdint> //for pair #include <utility> // for std::min #include <algorithm> #include <assert.h> #include "../util/memory.hh" #ifndef USE_SCALAR #include <immintrin.h> #include <tmmintrin.h> #includ...
6,456
2,132
// Targeted by JavaCPP version 1.5.6: DO NOT EDIT THIS FILE package org.bytedeco.spinnaker.Spinnaker_C; import java.nio.*; import org.bytedeco.javacpp.*; import org.bytedeco.javacpp.annotation.*; import static org.bytedeco.javacpp.presets.javacpp.*; import static org.bytedeco.spinnaker.global.Spinnaker_C.*; // Fu...
296
1,091
#! /usr/bin/env python import sys import tapiHelper import json if len(sys.argv) < 4: print "usage: execute-tapi-post-call <onos-node> <context> <empty> [uuid]." print "\t- If <empty> is \"empty\", it measn that it should be no devices, links or ports" print "\t- Uuid is optional and defaults to empty" ...
1,227
488
<gh_stars>100-1000 // t0014.c // type of character literals typedef long wchar_t; void foo() { __checkType('a', (int)0); __checkType('ab', (int)0); __checkType(L'a', (wchar_t)0); }
87
933
/* All modification made by Intel Corporation: © 2016 Intel Corporation All contributions by the University of California: Copyright (c) 2014, 2015, The Regents of the University of California (Regents) All rights reserved. All other contributions: Copyright (c) 2014, 2015, the respective contributors All rights rese...
5,016
510
#pragma once #include <cstring> #include <iostream> #include <fstream> #include <cstdarg> #include <memory> #include <map> typedef unsigned char byte; typedef signed char sbyte; typedef unsigned short ushort; #include "Logger.hpp" #include "IMemoryUnit.hpp" #include "ICPU.hpp" #include "IMMU.hpp" #define ARRAYSIZ...
207
463
<reponame>jasnzhuang/Personal-Homework #include "route_network_flow.h" #include <cmath> #include <iostream> #include <set> #include <queue> #include <algorithm> RoutePtr get_network_flow_algo() { return std::make_shared<RouteNetworkFlowImpl>(false); } RoutePtr get_decircle_algo() { return std::make_shared<RouteNetw...
3,738
476
// Copyright 2013 <NAME> // Distributed under Boost license #ifdef __linux__ #define BOOST_TEST_DYN_LINK #endif #include <boost/test/unit_test.hpp> #include <boost/numeric/ublas/io.hpp> #include <jsoncons/bignum.hpp> #include <jsoncons/json.hpp> #include <sstream> #include <vector> #include <utility> #include <ctime>...
1,986
383
<filename>fuse_models/test/test_unicycle_2d.cpp /*************************************************************************** * Copyright (C) 2017 Locus Robotics. All rights reserved. * Unauthorized copying of this file, via any medium, is strictly prohibited * Proprietary and confidential **************************...
5,757
1,143
<gh_stars>1000+ package com.twitter.common.stats; import org.junit.Before; import org.junit.Test; import com.twitter.common.quantity.Amount; import com.twitter.common.quantity.Time; import com.twitter.common.util.testing.FakeTicker; import static org.junit.Assert.assertEquals; /** * @author <NAME> */ public class...
580
425
<reponame>EugeneLugovtsov/pipeline-aws-plugin package de.taimos.pipeline.aws.eb; import com.amazonaws.services.elasticbeanstalk.AWSElasticBeanstalk; import com.amazonaws.services.elasticbeanstalk.model.DescribeEnvironmentsRequest; import com.amazonaws.services.elasticbeanstalk.model.DescribeEnvironmentsResult; import ...
854
356
#include "test_functions.hpp" BOOST_AFIO_AUTO_TEST_CASE(race_protection_works, "Tests that the race protection works", 300) { using namespace BOOST_AFIO_V2_NAMESPACE; #ifdef __APPLE__ // This test cannot pass on OS X currently, so exit immediately. return; #endif #if defined(__FreeBSD__) || defined(BOOST_A...
3,695
6,098
<gh_stars>1000+ #manually define threshold for predictions to 0.3 import pandas as pd pred = binomial_fit.predict(h2o_df) pred['predict'] = pred['p1']>0.3
60
3,562
<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...
984
311
package com.datadog.appsec.event; import com.datadog.appsec.event.data.DataBundle; import com.datadog.appsec.gateway.AppSecRequestContext; public interface DataListener extends OrderedCallback { void onDataAvailable(ChangeableFlow flow, AppSecRequestContext context, DataBundle dataBundle); }
90
455
<gh_stars>100-1000 from __future__ import print_function import codecs import os import collections from six.moves import cPickle import numpy as np from math import floor list TRAIN_PORTION = 0.95 TEST_PORTION = 0.05 class TextLoader(): def __init__(self, data_dir, batch_size, seq_length, partition='train', encod...
1,796
1,564
<gh_stars>1000+ /* * Copyright 2011 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 * * http://www.apache.org/licenses/LICENSE-2.0 * * U...
1,280
7,789
<reponame>kgyokov/resilience4j /* * Copyright 2020 <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...
693
2,690
<gh_stars>1000+ /****************************************************************************** * Copyright (C) 2013 by <NAME> * * <EMAIL> * * * * ...
2,040
2,583
<gh_stars>1000+ from arm.logicnode.arm_nodes import * class GoToLocationNode(ArmLogicTreeNode): """Makes a NavMesh agent go to location.""" bl_idname = 'LNGoToLocationNode' bl_label = 'Go to Location' arm_version = 1 def arm_init(self, context): self.add_input('ArmNodeSocketAction', 'In') ...
242
377
{ "name": "vital", "homepage": "http://vitalcss.com", "authors": [ "<NAME> <<EMAIL>>", "<NAME> <<EMAIL>>" ], "description": "A minimally invasive CSS framework for modern web applications.", "main": [ "sass/vital.sass" ], "license": "Apache-2.0", "ignore": [ "**/.*", "*.gemspec", ...
245
589
// // Copyright (C) 2016 LunarG, Inc. // // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions // are met: // // Redistributions of source code must retain the above copyright // notice, this list of c...
1,616
7,137
package io.onedev.server.web.component.colorpicker; import org.apache.wicket.markup.head.IHeaderResponse; import org.apache.wicket.markup.head.JavaScriptHeaderItem; import org.apache.wicket.markup.head.OnDomReadyHeaderItem; import org.apache.wicket.markup.html.form.HiddenField; import org.apache.wicket.model.IModel; ...
311
530
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the Apache 2.0 License. import tempfile import infra.network import infra.path import infra.proc import infra.net import infra.e2e_args import suite.test_requirements as reqs import ccf.proposal_generator import json from loguru import logger...
1,214
765
<filename>src/sim/guest_abi/dispatch.hh /* * Copyright 2019 Google Inc. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: redistributions of source code must retain the above copyright * notice, this list of condi...
1,457
912
// // Copyright (C) 2015 Yahoo Japan 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 la...
11,961
2,529
import inspect import logging import os import re import subprocess from typing import Dict, Any from pyhttpd.certs import CertificateSpec from pyhttpd.conf import HttpdConf from pyhttpd.env import HttpdTestEnv, HttpdTestSetup log = logging.getLogger(__name__) class ProxyTestSetup(HttpdTestSetup): def __init__...
622
3,428
{"id":"01657","group":"easy-ham-1","checksum":{"type":"MD5","value":"a57fd76dcafe47299543685aa2387d32"},"text":"Return-Path: <EMAIL>\nDelivery-Date: Fri Sep 6 17:28:09 2002\nFrom: <EMAIL> (<NAME>)\nDate: Fri, 6 Sep 2002 12:28:09 -0400\nSubject: [Spambayes] Deployment\nIn-Reply-To: <<EMAIL>>\nReferences: <<EMAIL>>\nMes...
335
14,668
// Copyright 2019 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_TRACING_PUBLIC_CPP_TRACED_PROCESS_H_ #define SERVICES_TRACING_PUBLIC_CPP_TRACED_PROCESS_H_ #include "services/tracing/public/mojom/syste...
281
1,894
<filename>dashboard/dashboard/pinpoint/models/change/change.py # 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. from __future__ import print_function from __future__ import division from __future__ import a...
4,314
573
<filename>python/lopq/package_metadata.json {"git_hash": "5be92898ae856b8c75fb5ec577f8cd0c95754488", "version": "1.0.36", "git_branch": "python2_parallel", "git_origin": "https://github.com/squall-1002/lopq.git"}
94
1,805
#ifndef gksmfc_h #define gksmfc_h ///////////////////////////////////////////////// // Includes #include "gks.h" #include <afxwin.h> ///////////////////////////////////////////////// // Vcl-Gks class TMfcGks: public TGks { private: CStatic* Static; mutable CRect StaticRect; mutable CDC BitmapDc; ...
3,381
5,133
/* * Copyright MapStruct Authors. * * Licensed under the Apache License version 2.0, available at http://www.apache.org/licenses/LICENSE-2.0 */ package org.mapstruct.ap.test.bugs._2352; import java.util.List; import org.mapstruct.ap.test.bugs._2352.dto.TheDto; import org.mapstruct.ap.test.bugs._2352.dto.TheModel;...
536
1,781
package org.nico.ratel.landlords.client.event; import java.util.Map; import org.nico.ratel.landlords.client.SimpleClient; import org.nico.ratel.landlords.helper.MapHelper; import org.nico.ratel.landlords.print.SimplePrinter; import io.netty.channel.Channel; public class ClientEventListener_CODE_ROOM_JOIN_SUCCESS ex...
334
323
from typing import List, Dict, Set, Union from copy import copy from collections import defaultdict from vnpy.event import Event from vnpy.trader.ui import QtWidgets, QtCore, QtGui from vnpy.trader.ui.widget import COLOR_BID, COLOR_ASK, COLOR_BLACK from vnpy.trader.event import ( EVENT_TICK, EVENT_TRADE, EVENT_POS...
9,489
852
#include "DataFormats/TrackerRecHit2D/interface/FastTrackerRecHit.h" #include "DataFormats/TrackerRecHit2D/interface/OmniClusterRef.h" namespace { const OmniClusterRef nullRef; } OmniClusterRef const& FastTrackerRecHit::firstClusterRef() const { return nullRef; }
92
2,151
<reponame>zipated/src /* * Copyright 2014 The Native Client 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 NATIVE_CLIENT_SRC_NONSFI_LINUX_LINUX_SYSCALL_DEFINES_H_ #define NATIVE_CLIENT_SRC_NONSFI_LINUX_LINUX_SYSCALL_DEF...
705
1,247
// Copyright 2019 <NAME>. See LICENSE file for terms. #include "test.hpp" int main() { path_start(); int n = INT_RAND; volatile int x = n; // volatile to prevent optimization of nongoal if (n >= 1) { if (n >= 10) { if (n >= 50) { if (x < 40) { path_nongoal(); } if...
226
696
<reponame>hwang-pku/Strata<filename>modules/pricer/src/main/java/com/opengamma/strata/pricer/capfloor/IborCapletFloorletVolatilitiesName.java /* * Copyright (C) 2016 - present by OpenGamma Inc. and the OpenGamma group of companies * * Please see distribution for license. */ package com.opengamma.strata.pricer.capfl...
550
588
<filename>src/main/java/com/flycms/web/system/ScoreAdminController.java package com.flycms.web.system; import com.flycms.core.base.BaseController; import com.flycms.core.entity.DataVo; import com.flycms.module.score.model.ScoreRule; import com.flycms.module.score.service.ScoreRuleService; import org.apache.commons.lan...
3,102
439
import static org.assertj.core.api.Assertions.assertThat; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertNull; import static org.junit.Assert.assertThrows; import org.junit.Ignore; import org.junit.Test; import java.util.ArrayList; public class BuildTreeTest { @Test public...
3,600
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...
2,739
2,690
#include <sm/kinematics/UncertainHomogeneousPoint.hpp> #include <sm/kinematics/homogeneous_coordinates.hpp> #include <sm/kinematics/quaternion_algebra.hpp> #include <sm/serialization_macros.hpp> namespace sm { namespace kinematics { /// \brief set the point to the origin with zero uncertainty. Uncertain...
2,922
382
/* * Copyright 2018 Google, 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 ...
525
319
<gh_stars>100-1000 """Benchmark some basic import use-cases. The assumption is made that this benchmark is run in a fresh interpreter and thus has no external changes made to import-related attributes in sys. """ from . import util from .source import util as source_util import decimal import imp import importlib imp...
2,405
326
<reponame>vany152/FilesHash // Boost.Geometry (aka GGL, Generic Geometry Library) // Unit Test // Copyright (c) 2010-2012 <NAME>, Amsterdam, the Netherlands. // This file was modified by Oracle on 2021. // Modifications copyright (c) 2021, Oracle and/or its affiliates. // Contributed and/or modified by <NAME>, on beh...
7,372
3,227
<gh_stars>1000+ #include <CGAL/Exact_predicates_exact_constructions_kernel.h> #include <CGAL/Barycentric_coordinates_2/Wachspress_coordinates_2.h> using Kernel = CGAL::Exact_predicates_exact_constructions_kernel; using FT = typename Kernel::FT; using Point_2 = typename Kernel::Point_2; int main() { const std...
1,377
663
# (C) Datadog, Inc. 2019-present # All rights reserved # Licensed under a 3-clause BSD style license (see LICENSE) """ https://help.sap.com/viewer/4fe29514fd584807ac9f2a04f6754767/2.0.02/en-US/20cbb10c75191014b47ba845bfe499fe.html > The views in the SYS_DATABASES schema provide aggregated information from a subset o...
4,586
699
#include "injlib.h" #include <ntddk.h> #include <ntimage.h> #if defined(_M_AMD64) || defined(_M_ARM64) # define INJ_CONFIG_SUPPORTS_WOW64 #endif ////////////////////////////////////////////////////////////////////////// // ke.h ////////////////////////////////////////////////////////////////////////// typedef enum ...
18,755
432
<reponame>lambdaxymox/DragonFlyBSD<filename>sys/sys/lwp.h #ifndef _SYS_LWP_H_ #define _SYS_LWP_H_ #include <sys/types.h> /* * Parameters for the creation of a new lwp. */ struct lwp_params { void (*lwp_func)(void *); /* Function to start execution */ void *lwp_arg; /* Parameter to this function */ void *lwp_sta...
608
711
package com.java110.community.listener.parkingArea; import com.alibaba.fastjson.JSONObject; import com.java110.community.dao.IParkingAreaServiceDao; import com.java110.entity.center.Business; import com.java110.core.event.service.AbstractBusinessServiceDataFlowListener; import com.java110.utils.constant.ResponseConsta...
1,555
1,997
"""`AbstractFactory` providers example.""" import abc import dataclasses import random from typing import List from dependency_injector import containers, providers class AbstractCacheClient(metaclass=abc.ABCMeta): ... @dataclasses.dataclass class RedisCacheClient(AbstractCacheClient): host: str port:...
793