max_stars_count
int64
301
224k
text
stringlengths
6
1.05M
token_count
int64
3
727k
385
<gh_stars>100-1000 from ._linalg import complete_basis, direct_sum, orthonormalize from ._normalize_activation import moment, normalize2mom from ._soft_unit_step import soft_unit_step from ._soft_one_hot_linspace import soft_one_hot_linspace from ._reduce import germinate_formulas, reduce_permutation __all__ = [ ...
198
779
from __future__ import absolute_import import operator from cytoolz.functoolz import curry, num_required_args, has_keywords def should_curry(f): num = num_required_args(f) return num is None or num > 1 or num == 1 and has_keywords(f) is not False locals().update( dict((name, curry(f) if should_curry(f...
180
2,092
package com.demo.widget.adapter; import android.graphics.Color; import android.support.v7.widget.RecyclerView; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.TextView; import com.chad.library.adapter.base.BaseViewHolder; import com.demo.widget.R; im...
776
1,079
// Copyright 2004-present Facebook. All Rights Reserved. #include <stdio.h> #include <string.h> #include <JavaScriptCore/JavaScript.h> #include <JavaScriptCore/API/JSProfilerPrivate.h> #include "JSCHelpers.h" #include "Value.h" #ifdef WITH_FB_MEMORY_PROFILING static JSValueRef nativeEnableAllocationTag( JSConte...
1,544
560
/* * Copyright (c) 2016 <NAME> <<EMAIL>> * All Rights Reserved. */ package me.zhanghai.android.douya.broadcast.content; import android.os.Bundle; import androidx.fragment.app.Fragment; import androidx.fragment.app.FragmentActivity; import org.greenrobot.eventbus.Subscribe; import org.greenrobot.eventbus.ThreadMod...
3,974
764
{ "symbol": "EXX Token", "address": "0x7A271d1Df2C3f2FeF734611C6C7eE6b9B8439204", "overview":{ "en": "ET is the abbreviation of EXX Token. On July 9, 2018, ET was officially issued, with a total amount of 10 billion, and will never be issued. ET is a proof of the rights of the EXX trading platform itself....
807
14,668
// Copyright 2014 The Crashpad 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 // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by ...
1,759
521
/* ***** BEGIN LICENSE BLOCK ***** * Version: MPL 1.1/GPL 2.0/LGPL 2.1 * * The contents of this file are subject to the Mozilla Public License Version * 1.1 (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.mozilla.org/MPL/ * ...
2,470
460
<filename>trunk/win/Source/Includes/Boost/bimap/container_adaptor/vector_map_adaptor.hpp // Boost.Bimap // // Copyright (c) 2006-2007 <NAME> // // 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) /// \file c...
1,207
479
// Copyright (C) 2016 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 // // Unless required by applicable ...
6,220
333
{ "name": "swiped", "version": "0.1.4", "homepage": "https://github.com/mishk0/swiped", "authors": [ "mishk0 <<EMAIL>>" ], "description": "touch swipe for your mobile application, written in vanilla JS", "main": "./dist/swiped.js", "ignore": [ ".*", "package.json", "node_modules", "b...
209
6,989
#include "common.h" #include <util/generic/yexception.h> namespace NLoggingImpl { TString GetLocalTimeSSimple() { struct tm tm; return Strftime("%b%d_%H%M%S", Now().LocalTime(&tm)); } TString PrepareToOpenLog(TString logType, const int logLevel, const bool rotation, const bool startAsDaem...
535
733
<gh_stars>100-1000 from rx import Observable, AnonymousObservable from rx.internal import extensionmethod @extensionmethod(Observable) def skip_last(self, count): """Bypasses a specified number of elements at the end of an observable sequence. Description: This operator accumulates a queue with a len...
477
778
<filename>buildtools/src/main/java/org/apache/pulsar/tests/RetryAnalyzer.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 ownership. The ASF licenses thi...
1,223
32,544
package com.baeldung.functional; import static org.springframework.web.reactive.function.BodyExtractors.toDataBuffers; import static org.springframework.web.reactive.function.BodyExtractors.toFormData; import static org.springframework.web.reactive.function.BodyInserters.fromValue; import static org.springframework.we...
1,579
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.avs.implementation; import com.azure.core.http.rest.PagedIterable; import com.azure.core.http.rest.Response; import com.azure.co...
4,439
623
// Copyright (C) 2020 The Android Open Source Project // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable ...
865
1,345
<reponame>MaksHess/napari from ._context import Context, create_context, get_context from ._layerlist_context import LayerListContextKeys __all__ = ['Context', 'create_context', 'get_context', 'LayerListContextKeys']
65
6,240
<filename>.changes/1.23.0.json<gh_stars>1000+ { "schema-version": "1.0", "changes": [ { "type": "enhancement", "category": "Deploy", "description": "Wait for function state to be active when deploying" }, { "type": "feature", "category": "SQS", "description": "Add que...
167
763
package org.batfish.datamodel.trace; import static org.junit.Assert.assertEquals; import com.google.common.collect.ImmutableList; import com.google.common.testing.EqualsTester; import java.util.List; import org.batfish.common.util.BatfishObjectMapper; import org.batfish.datamodel.TraceElement; import org.junit.Test; ...
487
4,879
package com.mapswithme.maps.search; import android.app.Activity; import androidx.annotation.NonNull; import com.mapswithme.maps.Framework; import com.mapswithme.util.Utils; public class MegafonPromoProcessor implements PromoCategoryProcessor { @NonNull private final Activity mActivity; MegafonPromoProcessor(@...
165
1,566
<reponame>tstrutz/sqlite_orm #include <sqlite_orm/sqlite_orm.h> #include <catch2/catch.hpp> #include <numeric> // std::iota using namespace sqlite_orm; TEST_CASE("Exists") { struct User { int id = 0; std::string name; }; struct Visit { int id = 0; int userId = 0; ...
5,061
1,125
<gh_stars>1000+ #!/usr/bin/env python from pymodbus.compat import IS_PYTHON3, PYTHON_VERSION import pytest import asynctest import asyncio import logging import time _logger = logging.getLogger() if IS_PYTHON3: # Python 3 from asynctest.mock import patch, Mock, MagicMock from pymodbus.device import ModbusDeviceIde...
15,672
2,757
<filename>EdkCompatibilityPkg/Foundation/Framework/Protocol/FirmwareVolumeBlock/FirmwareVolumeBlock.h /*++ Copyright (c) 2004 - 2010, Intel Corporation. All rights reserved.<BR> This program and the accompanying materials are licensed and made available under the terms and conditions of t...
3,592
14,668
{ "name": "Optional permissions which cannot be optional", "version": "0.0.1.33", "manifest_version": 2, "description": "Extension with an optional permission listed which can't be optional (debugger).", "optional_permissions": [ "tabs", "debugger" ] }
92
309
<gh_stars>100-1000 #!/usr/bin/env python """ """ import vtk def main(): colors = vtk.vtkNamedColors() xyxFile, qFile = get_program_parameters() # Read the data. # pl3d = vtk.vtkMultiBlockPLOT3DReader() pl3d.AutoDetectFormatOn() pl3d.SetXYZFileName(xyxFile) pl3d.SetQFileName(qFile) ...
2,140
312
<filename>example/07_file_save.cc<gh_stars>100-1000 #include "workflow/WFFacilities.h" #include <csignal> #include "wfrest/HttpServer.h" using namespace wfrest; static WFFacilities::WaitGroup wait_group(1); void sig_handler(int signo) { wait_group.done(); } int main() { signal(SIGINT, sig_handler); Htt...
466
408
<filename>gluon/packages/dal/pydal/dialects/couchdb.py from ..adapters.couchdb import CouchDB from .base import NoSQLDialect from . import dialects @dialects.register_for(CouchDB) class CouchDBDialect(NoSQLDialect): def _and(self, first, second, query_env={}): return "(%s && %s)" % ( self.expa...
688
14,668
// Copyright 2021 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef TOOLS_AGGREGATION_SERVICE_AGGREGATION_SERVICE_TOOL_NETWORK_INITIALIZER_H_ #define TOOLS_AGGREGATION_SERVICE_AGGREGATION_SERVICE_TOOL_NETWORK_INITI...
533
1,037
#define PY_SSIZE_T_CLEAN #include <Python.h> #if PY_MAJOR_VERSION == 2 PyMODINIT_FUNC init_distorm3(void) { (void)Py_InitModule("_distorm3", NULL); } #else static struct PyModuleDef _distorm3_module = { PyModuleDef_HEAD_INIT, "_distorm3", NULL, -1, NULL, }; PyMODINIT_FUNC PyInit__distorm3(void...
214
677
/* * Copyright (C) 2016-2017 Apple 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: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditi...
3,345
423
<filename>Pods/Headers/Private/JSQMessagesViewController/UIView+JSQMessages.h<gh_stars>100-1000 // // Created by <NAME> // http://www.jessesquires.com // // // Documentation // http://cocoadocs.org/docsets/JSQMessagesViewController // // // GitHub // https://github.com/jessesquires/JSQMessagesViewController // //...
377
349
<reponame>AntonDyukarev/wiremock /* * Copyright (C) 2017-2021 <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 require...
1,480
3,372
/* * Copyright 2016-2021 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 in the "licen...
4,539
342
/** * Copyright 2014 Cloudera 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 i...
3,245
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 "headless/public/util/deterministic_http_protocol_handler.h" #include <memory> #include "base/macros.h" #include "headless/public/headless_brow...
969
549
<reponame>D-J-Roberts/xsimd /*************************************************************************** * Copyright (c) <NAME>, <NAME>, <NAME> and * * <NAME> * * Copyright (c) QuantStack * * Copyrigh...
802
452
<reponame>the-real-mrcs/firebase-admin-java<filename>src/main/java/com/google/firebase/database/snapshot/Index.java /* * Copyright 2017 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 L...
646
379
# 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 # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
411
2,591
package liquibase.changelog.filter; import liquibase.changelog.ChangeSet; public interface ChangeSetFilter { public ChangeSetFilterResult accepts(ChangeSet changeSet); }
52
1,178
<reponame>leozz37/makani<gh_stars>1000+ /* * 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 ...
1,386
4,639
from django import http from django.test import TestCase from oscar.core.loading import get_class CustomerHistoryManager = get_class('customer.history', 'CustomerHistoryManager') class TestProductHistory(TestCase): def setUp(self): self.request = http.HttpRequest() self.response = http.HttpResp...
157
639
<filename>src/nnfusion/core/operators/generic_op/generic_op_define/All.cpp // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. #include "nnfusion/core/operators/generic_op/generic_op.hpp" REGISTER_OP(All) .attr<int>("axis", -1) .attr<bool>("keep_dims", false) .infershape([](std::sha...
556
348
{"nom":"Serques","circ":"8ème circonscription","dpt":"Pas-de-Calais","inscrits":959,"abs":499,"votants":460,"blancs":46,"nuls":18,"exp":396,"res":[{"nuance":"REM","nom":"<NAME>","voix":237},{"nuance":"FN","nom":"<NAME>","voix":159}]}
94
826
#define SYNC_STREAM cudaStreamDefault void setsizes(long long N, dim3 *gridp, int *nthreadsp); void setsizesLean(long long N, dim3 *gridp, int *nthreadsp); int apply_links(float *A, int *L, float *C, int nrows, int ncols); int apply_preds(float *A, int *L, float *C, int nrows, int ncols); int apply_lls...
3,035
956
<filename>scripts/automation/trex_control_plane/interactive/trex/wireless/trex_wireless_client.py import threading from enum import Enum from scapy.contrib.capwap import * from trex_openssl import * from .trex_wireless_ap import * from .trex_wireless_device import WirelessDevice from .services.trex_stl_ap import * fr...
1,270
877
<filename>checker/tests/resourceleak/CommonModuleCrash.java import java.net.*; class CommonModuleCrash { Socket bar = new Socket(); static void baz(Socket s) {} static { baz(new Socket()); } }
70
669
<filename>onnxruntime/test/contrib_ops/bifurcation_detector_op_test.cc // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. #include "gtest/gtest.h" #include "test/common/tensor_op_test_utils.h" #include "test/common/cuda_op_test_utils.h" #include "test/providers/provider_tes...
836
3,457
<filename>sandbox/jacobi/poisson.hpp #ifndef KASTORS_POISSON_H #define KASTORS_POISSON_H #include <cassert> #include <string> /******************************************************************************/ /* Purpose: SWEEP carries out one step of the Jacobi iteration. Discussion: Assuming DX = DY, we can ...
2,128
1,500
<filename>tests/garage/envs/test_normalized_gym.py from garage.envs import GymEnv, normalize class TestNormalizedGym: def setup_method(self): self.env = normalize(GymEnv('CartPole-v1'), normalize_reward=True, normalize_obs=True, ...
867
31,928
from localstack import config from localstack.services.infra import start_moto_server def start_rg(port=None, asynchronous=False, update_listener=None): port = port or config.PORT_RESOURCE_GROUPS return start_moto_server( "resource-groups", port, name="Resource Groups API", as...
147
5,800
// ArduinoJson - https://arduinojson.org // Copyright <NAME> 2014-2021 // MIT License #pragma once #include <string> struct custom_char_traits : std::char_traits<char> {}; struct custom_allocator : std::allocator<char> {}; typedef std::basic_string<char, custom_char_traits, custom_allocator> custom_string;
111
315
<filename>velocity-spring-boot-autoconfigure/src/main/java/com/alibaba/boot/velocity/tools/AbstractVelocityToolsScanner.java package com.alibaba.boot.velocity.tools; import com.alibaba.boot.velocity.util.CompatibleRelaxedPropertyResolver; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFact...
788
988
<filename>platform/keyring.impl/src/org/netbeans/modules/keyring/gnome/libsecret/GnomeLibSecretProvider.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...
2,324
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...
20,101
1,761
package com.lody.legend.dalvik; import static com.lody.legend.dalvik.DalvikConstants.*; /** * @author Lody * @version 1.0 */ public class DalvikHelper { public static int dvmComputeJniArgInfo(String shorty) { int returnType, jniArgInfo; int hints; /* The first shorty character is the ...
1,961
997
#ifndef ntt_H #define ntt_H #include <stdint.h> extern void PQCLEAN_NTRULPR857_AVX2_ntt512_7681(int16_t *f, int reps); extern void PQCLEAN_NTRULPR857_AVX2_ntt512_10753(int16_t *f, int reps); extern void PQCLEAN_NTRULPR857_AVX2_invntt512_7681(int16_t *f, int reps); extern void PQCLEAN_NTRULPR857_AVX2_invntt512_10753...
182
3,100
<reponame>andruuuuush/xenia package jp.xenia.emulator; public class WindowDemoActivity extends WindowedAppActivity { @Override protected String getWindowedAppIdentifier() { return "xenia_ui_window_vulkan_demo"; } }
92
1,831
/** * Copyright (c) 2017-present, 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. */ #include <chrono> #include <boost/python.hpp> #include <boost/python/suite/indexing/ma...
3,085
1,412
<reponame>IMCG/CPPCon14 // // Wrapper.h // PlusPlus // // Created by <NAME> on 7/11/14. // Released into the public domain by <NAME>, 2014. // #ifndef PLUSPLUS_WRAPPER_H #define PLUSPLUS_WRAPPER_H #include "Boxed.h" #include "EnumWrapper.h" #include "Inverted.h" #include <utility> #include <type_traits> /* ...
1,609
1,433
<gh_stars>1000+ /* * Copyright (c) 2016, 2017, 2018, 2019 FabricMC * * 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 requi...
505
534
package mekanism.common.recipe.lookup.monitor; import mekanism.api.math.FloatingLong; import mekanism.api.recipes.NucleosynthesizingRecipe; import mekanism.common.capabilities.energy.MachineEnergyContainer; import mekanism.common.recipe.lookup.IRecipeLookupHandler; public class NucleosynthesizerRecipeCacheLookupMonit...
479
1,561
<reponame>radetsky/themis<filename>src/themis/secure_cell.c<gh_stars>1000+ /* * Copyright (c) 2015 Cossack Labs 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.a...
11,466
3,444
<filename>blade-websocket/src/test/java/com/hellokaton/blade/websocket/BaseWebSocketHandler.java package com.hellokaton.blade.websocket; import com.hellokaton.blade.websocket.annotaion.OnClose; import com.hellokaton.blade.websocket.annotaion.OnOpen; /** * @author darren * @description * @date 2018/12/18 13:29 */ ...
251
1,351
<filename>example/plugins/c-api/disable_http2/disable_http2.cc /** @file An example plugin for accept object protocol set API. This clones the protocol sets attached to all the accept objects and unregisters HTTP/2 from those copies. The protocol set for incoming connections that match a list of domains are re...
1,037
884
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. package com.microsoft.commondatamodel.objectmodel.storage; import com.microsoft.commondatamodel.objectmodel.storage.GithubAdapter; import java.time.Duration; imp...
286
381
package com.tngtech.jgiven.example.springboot; import java.util.Arrays; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.context.ApplicationContext; @SpringBootApplication public class Application { public static v...
236
743
<reponame>riag23/AdaptiveCards<gh_stars>100-1000 {"actions":[],"body":[{"columns":[{"backgroundImage":"https://adaptivecards.io/content/AlkiBeach.jpg","items":[],"minHeight":"50px","type":"Column","width":"auto"},{"backgroundImage":{"url":"https://adaptivecards.io/content/GoldenGardensPark.jpg","verticalAlignment":"cen...
630
1,072
from .ops import ( s_add_e, s_mul_e, s_sub_e, s_add_e_sum, s_mul_e_sum, s_sub_e_sum, s_add_e_mean, s_mul_e_mean, s_sub_e_mean, s_add_t, s_mul_t, s_dot_t, s_sub_t, s_div_t, )
164
348
<filename>docs/data/leg-t2/011/01101222.json {"nom":"Mas-Cabardès","circ":"1ère circonscription","dpt":"Aude","inscrits":145,"abs":54,"votants":91,"blancs":15,"nuls":2,"exp":74,"res":[{"nuance":"REM","nom":"<NAME>","voix":45},{"nuance":"FN","nom":"<NAME>","voix":29}]}
111
340
<filename>src/main/java/com/zblog/web/backend/controller/UploadController.java package com.zblog.web.backend.controller; import java.io.InputStream; import java.util.Date; import org.apache.shiro.authz.annotation.Logical; import org.apache.shiro.authz.annotation.RequiresRoles; import org.springframework.beans....
896
653
<reponame>mkinsner/llvm<filename>clang/test/SemaSYCL/esimd-private-glob.cpp // RUN: %clang_cc1 -fsycl-is-device -fsyntax-only -verify %s // expected-no-diagnostics int x = 0;
78
3,428
{"id":"00403","group":"spam-1","checksum":{"type":"MD5","value":"46d0face754b6bb7dce8b3ea560f75fb"},"text":"From <EMAIL> Sat Sep 21 10:48:50 2002\nReturn-Path: <<EMAIL>>\nDelivered-To: zzzz@<EMAIL>assass<EMAIL>int.org\nReceived: from localhost (jalapeno [127.0.0.1])\n\tby zzzzason.org (Postfix) with ESMTP id 899FA16F1...
3,037
5,169
<filename>Specs/e/4/7/SpotX-SDK-AVPlayer/1.5.1/SpotX-SDK-AVPlayer.podspec.json { "name": "SpotX-SDK-AVPlayer", "version": "1.5.1", "summary": "SpotX SDK for AVPlayer", "authors": "SpotX, Inc.", "homepage": "http://www.spotx.tv", "license": { "type": "Commercial", "text": "https://www.spotx.tv/contac...
702
3,102
<reponame>medismailben/llvm-project // RUN: %clang_cc1 -I %S -emit-pch \ // RUN: -include Inputs/pch-through3c.h \ // RUN: -pch-through-header=Inputs/pch-through3c.h -o %t.3c %s // Checks that no warnings appear for this successful use. // RUN: %clang_cc1 -verify -I %S -include-pch %t.3c \ // RUN: -include Input...
203
1,133
<filename>components/stdproc/model/addsubmodel/include/addsubmodelmodule.h //#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ //# //# Author: <NAME> //# Copyright 2013, by the California Institute of Technology. ALL RIGHTS RESERVED. //# United States Government Sponsorship ac...
678
6,989
//===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===---------------------------...
333
1,467
<gh_stars>1000+ /* * Copyright 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 in the...
556
3,200
/** * Copyright 2021 Huawei Technologies Co., Ltd * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law...
1,058
1,144
<filename>backend/de.metas.handlingunits.base/src/test/java/de/metas/handlingunits/shipmentschedule/util/ShipmentScheduleHelper.java package de.metas.handlingunits.shipmentschedule.util; import static org.adempiere.model.InterfaceWrapperHelper.getModelTableId; import static org.adempiere.model.InterfaceWrapperHelper.l...
2,878
335
{ "word": "Premonition", "definitions": [ "a strong feeling that something is about to happen, especially something unpleasant" ], "parts-of-speech": "noun" }
68
304
/* * Copyright 2019-2021 CloudNetService team & contributors * * 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...
2,258
335
{ "word": "Cavity", "definitions": [ "An empty space within a solid object.", "A decayed part of a tooth." ], "parts-of-speech": "Noun" }
78
669
<gh_stars>100-1000 """ Copyright (c) Facebook, Inc. and its affiliates. """ import logging import os import re import CloudFlare import boto3 def generate_batch_id(): """ Generate a unique id for each hitl run """ import datetime dt = datetime.datetime.now() return int(dt.strftime("%Y%m%d%H...
1,885
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...
998
937
{ "extends": "./node_modules/gts/", "rules": { "no-prototype-builtins": "off", "no-unused-vars": "off", "require-yield": "off", "node/no-deprecated-api": "off", "@typescript-eslint/no-unused-vars": "off", "@typescript-eslint/no-empty-interface": "off", "@typescript-eslint/no-explicit-any...
182
14,668
<filename>net/spdy/http2_priority_dependencies.h<gh_stars>1000+ // 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. #ifndef NET_SPDY_HTTP2_PRIORITY_DEPENDENCIES_H_ #define NET_SPDY_HTTP2_PRIORITY_DEPENDENCI...
1,345
435
// // Copyright (C) 2014 <NAME> // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable ...
7,066
1,848
namespace std { template < typename > struct char_traits; } namespace __gnu_cxx { template < typename > struct char_traits; } namespace std { template < class _CharT > struct char_traits:__gnu_cxx::char_traits < _CharT > { }; }
94
848
<filename>tensorflow/lite/delegates/gpu/cl/texture2d.cc /* Copyright 2019 The TensorFlow 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 http://www.apache.org/lice...
1,645
523
__version__ = '2.20201202'
12
538
<filename>ICPOdometry.h /* * ICPOdometry.h * * Created on: 17 Sep 2012 * Author: thomas */ #ifndef ICPODOMETRY_H_ #define ICPODOMETRY_H_ #include "Cuda/internal.h" #include <sophus/se3.hpp> #include <vector> #include <Eigen/Core> #include <Eigen/Geometry> class ICPOdometry { public: EIGEN_MAKE_ALIGNED...
617
470
<filename>tableauserverclient/server/endpoint/dqw_endpoint.py import logging from .. import RequestFactory, DQWItem from .endpoint import Endpoint from .exceptions import MissingRequiredFieldError logger = logging.getLogger(__name__) class _DataQualityWarningEndpoint(Endpoint): def __init__(self, parent_srv, ...
965
1,204
<filename>collections/src/main/java/com/gs/collections/impl/block/comparator/FunctionComparator.java /* * Copyright 2011 <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 * * ...
540
9,957
<gh_stars>1000+ #!/usr/bin/env python import csv import email from email import policy import imaplib import logging import os import ssl from bs4 import BeautifulSoup credential_path = "credentials.txt" csv_path = "mails.csv" logger = logging.getLogger('imap_poller') host = "imap.gmail.com" port = 993 ssl_contex...
1,850
660
/* * Copyright (c) 2017, Intel Corporation * * 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, publis...
2,786
910
from stone.backends.python_rsrc.stone_base import *
17
1,379
/* * Copyright 2008-2013 LinkedIn, 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...
3,662
1,269
<gh_stars>1000+ /* This file is part of the iText (R) project. Copyright (c) 1998-2021 iText Group NV Authors: iText Software. This program is free software; you can redistribute it and/or modify it under the terms of the GNU Affero General Public License version 3 as published by the Free Soft...
1,608
316
#include <string.h> struct S { int *a; int b; }; int main(void) { struct S S1, S2; S1.a = &S1.b; memcpy(&S2, &S1, sizeof(S1)); *S2.a = 9; test_assert(S1.b == 9); return 0; }
121