max_stars_count
int64
301
224k
text
stringlengths
6
1.05M
token_count
int64
3
727k
315
#include "Tools/Math/utils.h" #include "Tools/Noise/Sigma.hpp" #include "Tools/Noise/Sigma.hpp" #include "Tools/Noise/Event_probability.hpp" #include "Tools/Noise/Received_optical_power.hpp" #include "Tools/Noise/noise_utils.h" namespace aff3ct { namespace tools { template <typename T, typename R> struct Noise_cast {...
883
347
<reponame>hbraha/ovirt-engine<filename>backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/vdscommands/UserConfiguredNetworkData.java<gh_stars>100-1000 package org.ovirt.engine.core.common.vdscommands; import java.util.Collections; import java.util.HashMap; import java.util.List; import java.util...
545
1,010
#include "main/shmem/shmem_file.h" #include <assert.h> #include <errno.h> #include <inttypes.h> #include <stdbool.h> #include <stddef.h> #include <stdint.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <time.h> #include <fcntl.h> #include <sys/mman.h> #include <sys/param.h> #include <sys/stat.h...
2,569
1,379
<reponame>adschw1/vim-awesome<gh_stars>1000+ """Utility functions for the submitted plugins table.""" import time import rethinkdb as r import db r_conn = db.util.r_conn def ensure_table(): db.util.ensure_table('submitted_plugins') db.util.ensure_index('submitted_plugins', 'submitted_at') db.util.ensu...
766
3,200
/** * Copyright 2019-2020 Huawei Technologies Co., Ltd * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicabl...
3,033
1,514
#ifndef CUBIC_SPLINE_H #define CUBIC_SPLINE_H #include <vector> using std::vector; #include "RageTypes.h" struct lua_State; struct CubicSpline { CubicSpline() :m_spatial_extent(0.0f) {} void solve_looped(); void solve_straight(); void solve_polygonal(); void p_and_tfrac_from_t(float t, bool loop, size_t& p, float...
1,443
1,773
<reponame>psunde/primefaces /* * The MIT License * * Copyright (c) 2009-2021 PrimeTek * * 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 limitatio...
3,340
4,935
<gh_stars>1000+ #include "../include/v8_helpers.h" namespace nodegit { v8::Local<v8::Value> safeGetField(v8::Local<v8::Object> &containerObject, std::string field) { auto maybeFieldName = Nan::New(field); if (maybeFieldName.IsEmpty()) { v8::Local<v8::Value> emptyResult; return emptyResult; } ...
224
1,133
<reponame>vincentschut/isce2<filename>components/isceobj/Sensor/src/asa_im_decode/asa_im_decode.c<gh_stars>1000+ /*********************************************************************************************************************************** asa_im_decode.c Decodes Envisat ASAR Image Mode Level 0 data com...
40,608
852
import FWCore.ParameterSet.Config as cms hfnoseNumberingInitialize = cms.ESProducer("HGCalNumberingInitialization", Name = cms.untracked.string("HGCalHFNoseSensitive") )
102
453
<reponame>codyd51/axle /* FUNCTION <<isxdigit>>, <<isxdigit_l>>---hexadecimal digit predicate INDEX isxdigit INDEX isxdigit_l SYNOPSIS #include <ctype.h> int isxdigit(int <[c]>); #include <ctype.h> int isxdigit_l(int <[c]>, locale_t <[locale]>); DESCRIPTION <<isxdigit>> is a macro which classifies singlebyt...
492
3,609
#ifndef __TRACYSOURCETOKENIZER_HPP__ #define __TRACYSOURCETOKENIZER_HPP__ #include <stdint.h> #include <vector> namespace tracy { class Tokenizer { public: enum class TokenColor : uint8_t { Default, Comment, Preprocessor, String, CharacterLiteral, Keyword, ...
400
438
<reponame>Pocoyo-dev/Discord-Bot<filename>src/languages/ru-RU/searcher/r6.json { "DESCRIPTION": "Gets statistics on a Rainbow 6 Account.", "USAGE": "r6 <user> [pc / xbox / ps4] [eu / na / as]", "UNKNOWN_USER": "This username was unable to be found.", "DESC": "Stats for the **{{REGION}}** region on **{{PLATFORM}...
302
665
/* * 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")...
1,251
465
<filename>pycharm2020.1.3/script/core/util/UtilApi.py from __future__ import annotations import asyncio # from asyncio import AbstractEventLoop import functools import json import random from typing import Callable, Union, Optional # from TcpServer import ev_loop # import typing import aiohttp import typing from commo...
3,123
1,156
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. import logging import numpy.testing as npt from reagent.core.parameters import ProblemDomain from reagent.gym.envs import Gym from reagent.gym.envs.wrappers.simple_minigrid import SimpleObsWrapper from reagent.gym.utils impo...
2,169
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...
4,226
795
package com.yydcdut.markdowndemo.controller; import android.widget.Toast; import com.yydcdut.markdown.MarkdownEditText; import com.yydcdut.markdown.span.MDOrderListSpan; import com.yydcdut.markdown.span.MDUnOrderListSpan; /** * Created by yuyidong on 16/7/15. */ public class ListController { private MarkdownEd...
3,333
810
from .stream51 import Stream51
8
416
// This file is distributed under the MIT license. // See the LICENSE file for details. #pragma once #ifndef VSNRAY_MATH_AXIS_H #define VSNRAY_MATH_AXIS_H 1 #include <cstddef> #include "config.h" #include "vector.h" namespace MATH_NAMESPACE { template <size_t Dim> class cartesian_axis; template <> class cartesi...
418
5,362
<reponame>timgates42/PokemonGo-Bot from pokemongo_bot import inventory from pokemongo_bot.base_task import BaseTask from pokemongo_bot.worker_result import WorkerResult class UpdateWebInventory(BaseTask): SUPPORTED_TASK_API_VERSION = 1 def work(self): inventory.update_web_inventory() return ...
119
645
<reponame>sleepingAnt/viewfinder<filename>backend/base/test/message_test.py # Copyright 2012 Viewfinder Inc. All Rights Reserved. """Test message validation and migration. """ __author__ = '<EMAIL> (<NAME>)' from copy import deepcopy from tornado.ioloop import IOLoop from viewfinder.backend.base import testing from ...
5,157
647
<filename>trick_source/er7_utils/integration/rkf45/include/rkf45_butcher_tableau.hh /** * @if Er7UtilsUseGroups * @addtogroup Er7Utils * @{ * @addtogroup Integration * @{ * @endif */ /** * @file * Defines Butcher tableau for Runge Kutta Fehlberg 4/5. */ /* Purpose: () */ #ifndef ER7_UTILS_RKF45_BUTCHER_TA...
624
839
<filename>rt/frontend/jaxrs/src/test/java/org/apache/cxf/jaxrs/impl/tl/ThreadLocalInvocationHandlerTest.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 ow...
1,322
445
<reponame>andreasbossard/deutschland """ Auswärtiges Amt OpenData Schnittstelle Dies ist die Beschreibung für die Schnittstelle zum Zugriff auf die Daten des [Auswärtigen Amtes](https://www.auswaertiges-amt.de/de/) im Rahmen der [OpenData](https://www.auswaertiges-amt.de/de/open-data-schnittstelle/736118) Init...
10,949
6,215
{ "documentationUrl": "https://docs.airbyte.io/integrations/sources/looker", "connectionSpecification": { "$schema": "http://json-schema.org/draft-07/schema#", "title": "Looker Spec", "type": "object", "required": ["domain", "client_id", "client_secret"], "additionalProperties": false, "prop...
614
2,231
/** * Copyright (c) 2007-2009, JAGaToo Project Group 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 ...
1,342
325
/* * The MIT License (MIT) * * Copyright (c) 2014-2018, <NAME> * * 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,...
1,986
348
/* * Copyright (c) 2010-2017, ALICE project, Inria * 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...
6,333
2,528
<reponame>fjavierv/react-md<gh_stars>1000+ { "out": "./packages/documentation/public/tsdocs", "entryPoints": [ "packages/alert/src/index.ts", "packages/app-bar/src/index.ts", "packages/autocomplete/src/index.ts", "packages/avatar/src/index.ts", "packages/badge/src/index.ts", "packages/button...
564
1,248
<reponame>mario-renau-alstom/atlas<filename>intg/src/main/java/org/apache/atlas/model/notification/AtlasNotificationStringMessage.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 informatio...
1,049
511
<reponame>SenthilKumarGS/TizenRT<filename>external/iotivity/iotivity_1.2-rel/resource/csdk/connectivity/util/src/camanager/bt_le_manager/android/camanagerleutil.c /* **************************************************************** * * Copyright 2016 Samsung Electronics All Rights Reserved. * * * * Licensed under ...
12,595
441
<reponame>dsrw/godot // Copyright 2009-2020 Intel Corporation // SPDX-License-Identifier: Apache-2.0 #pragma once #include "quadi.h" #include "quad_intersector_moeller.h" #include "quad_intersector_pluecker.h" namespace embree { namespace isa { /*! Intersects M quads with 1 ray */ template<int M, bool fi...
7,548
1,602
<filename>third-party/hwloc/hwloc-src/tests/ports/include/cuda/cuda.h<gh_stars>1000+ /* * Copyright © 2015 Inria. All rights reserved. * See COPYING in top-level directory. */ #ifndef HWLOC_PORT_CUDA_CUDA_H #define HWLOC_PORT_CUDA_CUDA_H #define CUDA_VERSION 4000 #endif /* HWLOC_PORT_CUDA_CUDA_H */
124
755
package com.hjq.xtoast.draggable; import android.annotation.SuppressLint; import android.view.MotionEvent; import android.view.View; /** * author : <NAME> * github : https://github.com/getActivity/XToast * time : 2019/01/04 * desc : 移动拖拽处理实现类 */ public class MovingDraggable extends BaseDraggable ...
974
539
# Copyright 2018-2021 Xanadu Quantum Technologies 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...
5,286
3,055
<reponame>Linghhh/u8g2 /* Fontname: -Cronyx-Courier-Medium-R-Normal--10-100-75-75-M-60-RAWIN-R Copyright: Copyright (C) 1990, 1991 EWT Consulting, Portions Copyright (C) 1994 Cronyx Ltd. Glyphs: 18/224 BBX Build Mode: 2 */ const uint8_t u8g2_font_crox2c_mn[290] U8G2_FONT_SECTION("u8g2_font_crox2c_mn") = "\22...
678
1,821
<reponame>shinny-yangyang/perspective ################################################################################ # # Copyright (c) 2019, the Perspective Authors. # # This file is part of the Perspective library, distributed under the terms of # the Apache License 2.0. The full license can be found in the LICENSE...
3,679
1,056
<gh_stars>1000+ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * ...
438
14,668
// 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. package org.chromium.chrome.browser.gcore; import static junit.framework.Assert.assertEquals; /** Spying mock for ConnectedTask. */ class MockConnectedT...
561
5,169
<reponame>Gantios/Specs { "name": "Inspector", "version": "0.0.1", "summary": "An elegant Object-Oriented objc runtime wrapper for Swift.", "description": "An elegant Object-Oriented objc runtime wrapper for Swift.\n1. Elegant\n2. OOP\n3. Inspect\n4. runtime\n5. Wrapper", "homepage": "https://github.com/0xxd0...
327
5,411
<filename>vendor/chromium/base/trace_event/log_message.cc<gh_stars>1000+ // 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. #include "base/trace_event/log_message.h" #include <stdint.h> #include <string>...
479
445
import os import sys py3 = sys.version_info.major >= 3 py36 = sys.version_info[0:2] >= (3, 6) if py3: def isStringType(t): return isinstance(t, str) if py36: from pathlib import Path def isPath(f): return isinstance(f, (bytes, str, Path)) else: def isPath(f): ...
360
1,418
<reponame>Watch-Later/recipes #include "InetAddress.h" #include "TcpStream.h" #include <limits> #include <memory> #include <unistd.h> #include <stdlib.h> #include <stdio.h> #include <time.h> #include <vector> int64_t kNanos = 1e9; int64_t clock_diff(struct timespec x, struct timespec y) { return (x.tv_sec - y.tv_s...
1,699
1,080
<reponame>wandaitzuchen/pelikan<gh_stars>1000+ import errno import socket import unittest # implementation based on pymemcache: https://pypi.python.org/pypi/pymemcache class TCPClient(object): DEFAULT_TIMEOUT = 1.0 RECV_SIZE = 1024 * 1024 def __init__(self, server, connect_timeou...
1,327
1,694
<filename>header6.6.1/RTMPDownloader.h // // Generated by class-dump 3.5 (64 bit) (Debug version compiled Sep 17 2017 16:24:48). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2015 by <NAME>. // #import "TXIStreamDownloader.h" @class NSLock, NSMutableArray, TXCRecvThread; @interface RTMPDownloa...
297
488
/** * \file NameGenerator.cc * \brief Class to generate numbered names. */ // tps (12/09/2009) : Playing with precompiled headers in Windows. Requires rose.h as the first line in source files. #include <sstream> #include "NameGenerator.hh" #include <ROSE_ASSERT.h> using namespace std; NameGenerator::NameGener...
394
522
package algs.model.tests.convexhull; import org.junit.Test; import algs.model.IPoint; import algs.model.problems.convexhull.slowhull.SlowHull; import algs.model.twod.TwoDPoint; import junit.framework.TestCase; public class SlowHullTest extends TestCase { @Test public void testTwoPoints() { IPoint[] points =...
1,356
538
package com.google.u2f.server.impl.attestation.android; import com.google.gson.JsonObject; import com.google.u2f.server.impl.attestation.X509ExtensionParsingUtil; import org.apache.commons.codec.binary.Hex; import org.bouncycastle.asn1.ASN1Encodable; import org.bouncycastle.asn1.ASN1Object; import org.bouncycastle.as...
5,701
2,379
// Copyright (c) by respective owners including Yahoo!, Microsoft, and // individual contributors. All rights reserved. Released under a BSD (revised) // license as described in the file LICENSE. #include <sstream> #include <cfloat> #include "reductions.h" #include "vw.h" #include "shared_data.h" #include "io/logger.h...
2,039
575
<filename>chrome/browser/ui/app_list/search/arc/recommend_apps_fetcher.cc<gh_stars>100-1000 // 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 "chrome/browser/ui/app_list/search/arc/recommend_apps...
361
678
/** * This header is generated by class-dump-z 0.2b. * * Source: /System/Library/PrivateFrameworks/OfficeImport.framework/OfficeImport */ #import <OfficeImport/XXUnknownSuperclass.h> #import <OfficeImport/EDKeyedObject.h> @class CHDErrorBar, EDCollection, CHDFormula, EDKeyedCollection, CHDChart, CHDChartType, CHD...
1,838
526
/* SPDX-License-Identifier: Apache-2.0 */ /* Copyright Contributors to the ODPi Egeria project. */ package org.odpi.openmetadata.accessservices.analyticsmodeling.test.synchronization; import org.testng.annotations.Test; import java.io.IOException; import java.util.Arrays; import java.util.Map; import java.util.Tree...
743
432
/* Copyright (c) 2015, bugyo * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * 1. Redistributions of source code must retain the above copyright notice, * this list of conditions and the ...
2,719
3,710
#pragma once //----------------------------------------------------------------------------- // tellipticbrush.h: interface for the TEllipticBrush class. //----------------------------------------------------------------------------- #if !defined(TELLIPTIC_BRUSH_H) #define TELLIPTIC_BRUSH_H #ifdef PER_VECCHIO_ELLIPT...
649
4,802
#ifndef TOBOOT_INTERNAL_H_ #define TOBOOT_INTERNAL_H_ #include <stdint.h> /// This describes the structure that allows the OS to communicate /// with the bootloader. It keeps track of how many times we've /// tried booting, as well as a magic value that tells us to enter /// the bootloader instead of booting the app...
596
1,564
/* * 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 * * Unless required b...
796
474
<reponame>ILGO0413/Javacord package org.javacord.core.interaction; import com.fasterxml.jackson.databind.JsonNode; import org.apache.logging.log4j.Logger; import org.javacord.api.DiscordApi; import org.javacord.api.entity.channel.Channel; import org.javacord.api.entity.channel.ServerChannel; import org.javacord.api.en...
1,761
2,151
// Copyright 2018 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_SOFTWARE_OUTPUT_DEVICE_CLIENT_H_ #define COMPONENTS_VIZ_SERVICE_DISPLAY_SOFTWARE_OUTPUT_DEVICE_CLIENT_H_ namespace...
259
4,071
package com.github.ompc.greys.core.command; import com.github.ompc.greys.core.advisor.AdviceListener; import com.github.ompc.greys.core.server.Session; import com.github.ompc.greys.core.util.PointCut; import com.github.ompc.greys.core.util.affect.RowAffect; import java.lang.instrument.Instrumentation; /** * 命令 * C...
1,690
1,123
/* * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * */ #pragma once #include <quic/codec/Types.h> #include <quic/state/StateData.h> namespace quic { /** * Processes a Datagram fra...
133
743
<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 licenses this file * to you under the Apache License, Version 2.0 (the ...
3,540
357
<gh_stars>100-1000 /* * Copyright (c) 2012-2015 VMware, 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 * * ...
734
575
<reponame>sarang-apps/darshan_browser<filename>chromeos/components/drivefs/drivefs_mojom_traits.cc // Copyright 2018 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 "chromeos/components/drivefs/drivefs_mojom_tra...
1,934
852
#ifndef MaxLostHitsTrajectoryFilter_H #define MaxLostHitsTrajectoryFilter_H #include "TrackingTools/TrajectoryFiltering/interface/TrajectoryFilter.h" class MaxLostHitsTrajectoryFilter final : public TrajectoryFilter { public: explicit MaxLostHitsTrajectoryFilter(int maxHits = 0) : theMaxLostHits(maxHits) {} expl...
421
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.conversion.nativetypes; public class IntWrapperSource { private Integer b; private Integer bb; private Integer s; private In...
881
808
<filename>lite/backends/arm/math/conv_transpose_depthwise.cc // Copyright (c) 2020 PaddlePaddle Authors. 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 // // htt...
10,916
2,727
<reponame>jiangkang/ndk-samples /* * Copyright (C) 2017 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-...
1,629
3,710
#include "locatorpopup.h" // TnzLib includes #include "toonz/txshlevelhandle.h" #include "toonz/tframehandle.h" #include "toonz/preferences.h" #include "toonz/stage2.h" // Tnz6 includes #include "tapp.h" #include "sceneviewer.h" #include <QVBoxLayout> LocatorPopup::LocatorPopup(QWidget *parent) : QDialog(parent...
1,374
804
<gh_stars>100-1000 package com.github.liuweijw.business.wechat.controller; import javax.servlet.http.HttpServletRequest; import org.springframework.amqp.rabbit.core.RabbitTemplate; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; import org.springframewo...
2,795
486
<filename>third_party/edu/tum/cup2/parser/actions/Accept.java package edu.tum.cup2.parser.actions; import edu.tum.cup2.semantics.Action; import java.io.Serializable; /** * LR parser action for "accept". * * @author <NAME> */ public class Accept implements LRAction, Serializable { private static final long ser...
220
669
/*++ Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT License. Module Name: qlgavgpool.cpp Abstract: This module implements routines for quantized linear global average pool. --*/ #include "mlasi.h" size_t MLASCALL MlasQLinearSafePaddingElementCount( size_t ElementSi...
21,064
435
<gh_stars>100-1000 { "description": "Serverside applications are more and more likely to need to run in\ndynamic cloud environments where they can automatically scale as\nrequired. One rightfully popular approach is to run the application\nas a Docker container inside a Kubernetes cluster, giving you a lot of\nopera...
480
434
package com.amazonaws.services.lambda.runtime.events.transformers.v2.dynamodb; import software.amazon.awssdk.services.dynamodb.model.StreamRecord; public class DynamodbStreamRecordTransformer { public static StreamRecord toStreamRecordV2(final com.amazonaws.services.lambda.runtime.events.models.dynamodb.StreamRe...
658
7,272
package com.kunal.abstractDemo; public class Main { public static void main(String[] args) { Son son = new Son(30); son.career(); son.normal(); Parent daughter = new Daughter(28); daughter.career(); Parent.hello(); // Parent mom = new Parent(45); } }
138
389
<gh_stars>100-1000 names = ["Jimmy", "Rose", "Max", "Nina", "Phillip"] for name in names: if len(name) != 4: continue print(f"Hello, {name}") if name == "Nina": break print("Done!")
98
1,442
<gh_stars>1000+ # Copyright (C) 2017 Beijing Didi Infinity Technology and Development Co.,Ltd. # All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache...
1,970
380
#!/usr/bin/env python # coding: utf-8 # In[1]: #importing the required packages import pandas as pd import seaborn as sns import numpy as np from sklearn.metrics import mean_squared_error, r2_score from sklearn.linear_model import LinearRegression from sklearn.model_selection import train_test_split #reading the da...
633
852
#ifndef CalibTracker_SiStripChannelGain_SiStripGainFromAsciiFile_h #define CalibTracker_SiStripChannelGain_SiStripGainFromAsciiFile_h #include "FWCore/ParameterSet/interface/FileInPath.h" #include "CommonTools/ConditionDBWriter/interface/ConditionDBWriter.h" #include "CondFormats/SiStripObjects/interface/SiStripApvGa...
442
1,817
/* * * * * * * * * * * Copyright 2019-2020 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 * * * * * * ...
3,159
384
<gh_stars>100-1000 /** * Copyright (C) 2017 Baidu, Inc. All Rights Reserved. */ package com.baidu.jprotobuf.pbrpc.transport; /** * The Class RpcErrorMessage. * * @author xiemalin * @since 3.5.13 */ public class RpcErrorMessage { /** The error code. */ private int errorCode; /**...
993
1,550
<reponame>ATikhonov2/leo-editor # Leo colorizer control file for fortran mode. # This file is in the public domain. # Properties for fortran mode. properties = { "blockComment": "C", "indentNextLine": "\\s*((if\\s*\\(.*\\)\\s*then|else\\s*|do\\s*)*)", "wordBreakChars": ",+-=<>/?^&*", } # Attribu...
5,974
1,025
#import <Foundation/Foundation.h> #import <CDEKit/CDEEntitiesViewController.h> #import <CDEKit/CDEManagedObjectsViewController.h> #import <CDEKit/CDEManagedObjectViewController.h> @interface CDE : NSObject + (instancetype)sharedCoreDataEditor; #pragma mark - Creating a Embedded Core Data Editor - (void)enableEmbedde...
132
1,521
<filename>analytical_engine/benchmarks/apps/bfs/property_bfs.h /** Copyright 2020 Alibaba Group Holding Limited. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.o...
2,229
1,006
from .common import EWSAccountService, to_item_id from ..properties import ParentItemId from ..util import create_element, set_xml_value, MNS class CreateAttachment(EWSAccountService): """MSDN: https://docs.microsoft.com/en-us/exchange/client-developer/web-service-reference/createattachment-operation """ ...
714
589
<filename>inspectit.ui.rcp/src/main/java/rocks/inspectit/ui/rcp/editor/preferences/control/SamplingRateControl.java package rocks.inspectit.ui.rcp.editor.preferences.control; import java.util.HashMap; import java.util.Map; import org.eclipse.swt.SWT; import org.eclipse.swt.events.SelectionAdapter; import org.eclipse....
2,299
540
<reponame>dlee992/sdc # -*- coding: utf-8 -*- # ***************************************************************************** # Copyright (c) 2020, Intel Corporation All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following cond...
6,963
310
from abc import ABCMeta import numpy as np from deslib.base import BaseDS from deslib.util.aggregation import (aggregate_proba_ensemble_weighted, sum_votes_per_class, get_weighted_votes) class BaseDES(BaseDS): """Base class for a Dynamic ...
4,766
343
[ { "url": "https://elixir-lang.org/getting-started/binaries-strings-and-char-lists.html#bitstrings", "description": "Getting Started guide - Bitstrings" }, { "url": "https://hexdocs.pm/elixir/Kernel.SpecialForms.html#%3C%3C%3E%3E/1", "description": "Kernel.SpecialForms.<<>>/1" } ]
130
856
// // Copyright © 2020 Arm Ltd and Contributors. All rights reserved. // SPDX-License-Identifier: MIT // #include <armnnUtils/Threads.hpp> #if defined(__linux__) #include <unistd.h> #include <sys/syscall.h> #define gettid() syscall(SYS_gettid) #elif defined(_MSC_VER) #include <common/include/WindowsWrapper.hpp> #elif...
358
1,431
/* ==================================================================== 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...
876
488
#pragma once #include <boost/bind.hpp> #include <boost/enable_shared_from_this.hpp> #include <boost/make_shared.hpp> #include "widgets.h" using namespace dbglog; namespace fuse { // Wrapper for boost:shared_ptr<Type> that can be used as keys in maps because it wraps comparison // operations by forwarding them to the...
3,316
5,139
{ "source" : "czm_material czm_getMaterial(czm_materialInput m) { return czm_getDefaultMaterial(m); }" }
40
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...
772
4,054
<reponame>Anlon-Burke/vespa // Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. /** * @author <NAME> * @date 2004/10/01 * @version $Id$ * @file conceptnet.h * @brief Concept network class definition. * */ #pragma once #include <cassert> #include <st...
4,384
577
<filename>bugtests/test354.py """ [ 522423 ] cStringIO has no reset() method """ import support import cStringIO s = cStringIO.StringIO("abcdef") s.read(3) s.reset() support.compare(s.read(3), "abc") support.compare(s.read(3), "def")
94
335
<gh_stars>100-1000 { "word": "Drank", "definitions": [ "A drink, especially of alcohol." ], "parts-of-speech": "Noun" }
68
594
<filename>SingleSource/Regression/C/gcc-c-torture/execute/ieee/mzero5.c /* Test gcse handling of IEEE 0/-0 rules. */ static double zero = 0.0; int negzero_check (double d) { if (d == 0) return !!memcmp ((void *)&zero, (void *)&d, sizeof (double)); return 0; } int sub (double d, double e) { if (d == 0.0 && ...
231
372
/* * 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 distributed under t...
1,727
388
<gh_stars>100-1000 """ This module defines the :class:`GenericFunction` class, which is the base for the implementation of spatial functions in GeoAlchemy. This module is also where actual spatial functions are defined. Spatial functions supported by GeoAlchemy are defined in this module. See :class:`GenericFunction`...
3,405