max_stars_count
int64
301
224k
text
stringlengths
6
1.05M
token_count
int64
3
727k
21,684
<filename>test/common/memcached_workload_common.py # This is a (hopefully temporary) shim that uses the rdb protocol to # implement part of the memcache API import contextlib import rdb_workload_common @contextlib.contextmanager def make_memcache_connection(opts): with rdb_workload_common.make_table_and_connectio...
497
12,278
// (C) Copyright <NAME> 2002. // 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) #include <boost/pending/disjoint_sets.hpp> #include <boost/test/minimal.hpp> #include <boost/cstdlib.hpp> template <typename Disjoi...
1,002
2,399
<reponame>allran/SJVideoPlayer // // SJKeyboardDemoViewController1.h // SJVideoPlayer_Example // // Created by 畅三江 on 2020/6/5. // Copyright © 2020 changsanjiang. All rights reserved. // #import <UIKit/UIKit.h> NS_ASSUME_NONNULL_BEGIN @interface SJKeyboardDemoViewController1 : UIViewController @end NS_ASSUME_N...
132
2,460
/** * Copyright (C) 2015 Red Hat, 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...
11,683
1,338
<gh_stars>1000+ #ifndef CONNECT_APP_H #define CONNECT_APP_H #include <AppKit.h> #include <InterfaceKit.h> #include "PathView.h" #include "MsgConsts.h" #define APPLICATION "LinePathBuilder" #define VERSION "1.0" class AppWindow : public BWindow { public: BMenuBar *menubar; PathView *view; AppWindow(BRect); bool Q...
196
4,081
<filename>integration/fuse/src/main/java/alluxio/fuse/FuseWebServer.java /* * The Alluxio Open Foundation licenses this work under the Apache License, version 2.0 * (the "License"). You may not use this work except in compliance with the License, which is * available at www.apache.org/licenses/LICENSE-2.0 * * This...
331
471
<gh_stars>100-1000 from django.apps import apps from django.core.management.base import BaseCommand from corehq.apps.sms.models import INCOMING, OUTGOING from corehq.apps.smsbillables.models import SmsUsageFee from corehq.apps.smsbillables.utils import log_smsbillables_info def bootstrap_usage_fees(apps): SmsUsa...
218
322
<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 "...
1,147
4,538
<filename>os/board/rtl8721csm/src/component/soc/realtek/amebad/fwlib/include/rtl8721d_vector.h<gh_stars>1000+ /** ****************************************************************************** * @file rtl8721d_vector.h * @author * @version V1.0.0 * @date 2016-05-17 * @brief This file contains all th...
6,124
339
<filename>integration/broker-tests/tests-integration/tests-amqp/src/test/java/org/wso2/mb/integration/tests/amqp/functional/JMSRoutingKeyPropertyTestCase.java /* * Copyright (c) 2018, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. * * WSO2 Inc. licenses this file to you under the Apache License, * Version 2.0...
5,563
1,906
<filename>packages/fluxible-addons-react/package.json { "name": "fluxible-addons-react", "version": "1.1.0", "description": "Fluxible addons for use with React", "main": "dist/lib/index.js", "module": "dist/es/index.js", "repository": { "type": "git", "url": "https://github.com/yahoo/fluxible" }, ...
545
1,286
<gh_stars>1000+ /* * Copyright 2020-2022 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 * * Unle...
6,404
530
<filename>strongbox-storage/strongbox-storage-api/src/main/java/org/carlspring/strongbox/storage/checksum/ChecksumManager.java package org.carlspring.strongbox.storage.checksum; /** * @author carlspring */ public interface ChecksumManager { }
82
335
{ "word": "Weary", "definitions": [ "feeling or showing extreme tiredness, especially as a result of excessive exertion", "reluctant to see or experience any more of; tired of" ], "parts-of-speech": "Adjective" }
92
376
#pragma once #include <Register/Utility.hpp> namespace Kvasir { //Mailbox namespace MailboxIrq0{ ///<Interrupt request register for the Cortex-M0+ CPU. using Addr = Register::Address<0x1c02c000,0x00000000,0x00000000,unsigned>; ///If any bit is set, an interrupt request is sent to the Cort...
1,055
8,027
<gh_stars>1000+ """ Module docstring """ def _impl(ctx): """ Function docstring """ out = ctx.declare_file("out.txt") out.write(out, " ".join(ctx.attr.contacts)) some_rule_test = rule( attrs = {}, implementation = _impl, test = True, )
108
977
<filename>src/main/java/io/leangen/graphql/execution/TypeResolver.java package io.leangen.graphql.execution; import graphql.schema.GraphQLObjectType; /** * @author <NAME> (kaqqao) */ public interface TypeResolver { GraphQLObjectType resolveType(TypeResolutionEnvironment environment); }
98
1,253
# -*- coding: utf-8 -*- """A parser for Portable Executable (PE) files.""" import os import pefile from dfdatetime import posix_time as dfdatetime_posix_time from dfdatetime import semantic_time as dfdatetime_semantic_time from dfvfs.helpers import data_slice as dfvfs_data_slice from plaso.containers import artifac...
6,166
548
# Copyright 2019 ZTE corporation. All Rights Reserved. # SPDX-License-Identifier: Apache-2.0 import os from tempfile import TemporaryDirectory from unittest import TestCase import tensorrt import tensorflow as tf import model_compiler.compilers.repository as compiler_repository from model_compiler.models.sources.sav...
1,993
4,535
// Copyright 2019 Intel Corporation #include "pmlc/conversion/affine_to_stripe/convert_affine_to_stripe.h" #include "pmlc/dialect/stripe/affine_poly.h" #include "pmlc/dialect/stripe/dialect.h" #include "pmlc/dialect/stripe/ops.h" #include "pmlc/dialect/stripe/util.h" #include "mlir/Dialect/AffineOps/AffineOps.h" #inc...
1,621
1,144
#include "fdt_host.h" #include "../scripts/dtc/libfdt/fdt_addresses.c"
33
30,023
<reponame>domwillcode/home-assistant """The acer_projector component."""
25
519
package kale.dbinding; import android.databinding.BaseObservable; import android.databinding.Observable; /** * @author Kale * @date 2016/1/9 */ public abstract class BaseViewModel<T extends BaseViewModel> extends BaseObservable { /** * convert index to {@link SerializableViewModel} */ public Ser...
376
713
<filename>core/src/main/java/org/infinispan/remoting/rpc/RpcManager.java package org.infinispan.remoting.rpc; import java.util.Collection; import java.util.List; import java.util.Map; import java.util.concurrent.CompletableFuture; import java.util.concurrent.CompletionStage; import java.util.function.Function; import...
2,668
348
<gh_stars>100-1000 {"nom":"Turriers","dpt":"Alpes-de-Haute-Provence","inscrits":239,"abs":51,"votants":188,"blancs":28,"nuls":5,"exp":155,"res":[{"panneau":"1","voix":104},{"panneau":"2","voix":51}]}
84
1,510
<filename>contrib/format-iceberg/src/main/java/org/apache/iceberg/data/ScanTaskTableScanIterable.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...
1,066
769
<filename>sw/apps/riscv_tests/testVecArith/testVecArith_stimuli_riscv.h unsigned int g_add_a[] = { 0x73FD0C57, 0xF8608167, 0x2E9149C7, 0x87F1242F, 0xF6339C17, 0xE6B6D53B, 0xC7E86B87, 0xC8EF9C91, 0x54DE1298, 0x8A3F3F73, }; unsigned int g_add_b[] = { 0x914A3B0D, 0x6F4DAD83, 0x6E68075F, 0xD71C5BD8, 0x0CEE6379, 0xBD9E8958...
13,243
1,682
<reponame>haroldl/rest.li /* Copyright (c) 2012 LinkedIn 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 a...
1,980
795
# -*- coding: utf-8 -*- # Copyright 2017 ProjectQ-Framework (www.projectq.ch) # # 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,969
1,364
package kilim.test.ex; import kilim.Pausable; public class ExFlow { void loop() throws Pausable { ExA a = null; int i; for (i = 0; i < 10; i++) { if (i < 5) { a = new ExC(); } else { a = new ExD();; } } // at...
356
4,140
/* * 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,862
1,738
<reponame>jeikabu/lumberyard /* * 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 governed by the License, * or, if provid...
1,924
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,368
7,137
<reponame>grego10/onedev package io.onedev.server.web.page.project.pullrequests.detail.activities; import io.onedev.server.web.page.base.BaseDependentCssResourceReference; public class PullRequestActivitiesCssResourceReference extends BaseDependentCssResourceReference { private static final long serialVersionUID = ...
139
849
<filename>lte/gateway/c/core/oai/test/lib/test_3gpp.cpp /** * Copyright 2020 The Magma Authors. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. * * Unless required by applicable law or agreed to in writing, software * distributed...
5,939
441
/** Validation Functions. */ package org.basex.query.func.validate;
20
1,604
package org.bouncycastle.crypto.test; import java.util.ArrayList; import org.bouncycastle.crypto.Digest; import org.bouncycastle.crypto.digests.GOST3411_2012_256Digest; import org.bouncycastle.crypto.digests.GOST3411_2012_512Digest; import org.bouncycastle.crypto.macs.HMac; import org.bouncycastle.crypto.params.KeyPa...
1,626
32,544
package com.baeldung.threadlocal; public class Context { private final String userName; Context(String userName) { this.userName = userName; } @Override public String toString() { return "Context{" + "userNameSecret='" + userName + '\'' + '}'; } }
133
810
from dataclasses import dataclass from enum import Enum @dataclass class PropertyDiff: property_name: str val_existing: str val_declared: str class TransitionType(Enum): UNKNOWN = 0 CREATE = 1 DELETE = 2 UPDATE = 3 UNCHANGED = 4
105
15,337
<filename>saleor/graphql/product/tests/test_variant_availability.py from datetime import timedelta import graphene from django.test import override_settings from django.utils import timezone from django_countries import countries from ....shipping.models import ShippingZone from ....warehouse.models import Reservatio...
5,279
480
<filename>lib/python2.7/site-packages/openchange/tests/__init__.py def test_suite(): import unittest loader = unittest.TestLoader() suite = unittest.TestSuite() from openchange.tests import (test_provision, test_mailbox) suite.addTests(loader.loadTestsFromModule(test_provision)) suite....
150
5,169
<reponame>Gantios/Specs { "name": "GZ-NMSSH", "version": "4.1.5", "summary": "NMSSH is a clean, easy-to-use, unit tested framework for iOS and OSX that wraps libssh2.", "homepage": "https://github.com/gaetanzanella/NMSSH", "license": "MIT", "authors": { "<NAME>": "<EMAIL>", "<NAME>": "<EMAIL>" }, ...
770
2,151
// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "ui/events/event_utils.h" #include <vector> #include "base/metrics/histogram_macros.h" #include "ui/display/display.h" #include "ui/display...
1,883
480
package org.apache.calcite.sql; import com.alibaba.polardbx.druid.sql.ast.SQLName; import org.apache.calcite.sql.parser.SqlParserPos; import java.util.List; /** * Created by luoyanxin. * * @author luoyanxin */ public class SqlAlterTableGroupSplitPartitionByHotValue extends SqlAlterTableSplitPartitionByHotValue {...
331
704
package org.jgroups.protocols; import org.jgroups.Message; import org.jgroups.annotations.Property; import org.jgroups.annotations.Unsupported; import org.jgroups.stack.Protocol; /** * Discards a message whose sequence number (in the payload, as a Long) matches seqno 2 times, * before passing it down. Used for unit...
783
562
from conans import CMake, ConanFile, tools from conans.errors import ConanInvalidConfiguration import glob import os class GetDnsConan(ConanFile): name = "getdns" description = "A modern asynchronous DNS API" topics = "conan", "getdns", "asynchronous", "event" license = "BSD-3-Clause" homepage = "...
3,169
5,937
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. //+----------------------------------------------------------------------- // // // Abstract: // Contains f...
3,124
337
<reponame>sethvargo/vaex<gh_stars>100-1000 import vaex from benchmarks.fixtures import generate_numerical check = False # in h2o we have (with n=1e8 and k=1e2) # id1 - str with 1e2 different values # id2 - str with 1e2 different values # id3 - str with 1e2 different values # id4 - int with 1e2 different values # id5...
1,610
376
<gh_stars>100-1000 /* * lex functions test program. * * @author lionsoul<<EMAIL>> */ #include "friso.h" #include <stdio.h> #include <time.h> #include <string.h> #define __LENGTH__ 15 #define ___PRINT_HELP_INFO___ \ printf("1. help print the current menu.\n"); ...
2,366
1,144
package de.metas.adempiere.docline.sort.api.impl; /* * #%L * de.metas.adempiere.adempiere.base * %% * Copyright (C) 2015 metas GmbH * %% * 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, ...
2,087
892
{ "schema_version": "1.2.0", "id": "GHSA-qwm4-r696-wpp8", "modified": "2022-05-02T03:46:45Z", "published": "2022-05-02T03:46:45Z", "aliases": [ "CVE-2009-3585" ], "details": "Session fixation vulnerability in html/Elements/SetupSessionCookie in Best Practical Solutions RT 3.0.0 through 3.6.9 and 3.8.x...
1,288
687
<reponame>ScriptBox99/google-api-dotnet-client<filename>EnumStorage/calendar_v3.json { "Google.Apis.Calendar.v3.CalendarBaseServiceRequest<<TResponse>>.AltEnum": [ "json" ], "Google.Apis.Calendar.v3.CalendarListResource+ListRequest.MinAccessRoleEnum": [ "freeBusyReader", "owner", "reader", "wr...
601
356
/* * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
558
5,238
<reponame>nickzhuang0613/lvgl /******************************************************************************* * Size: 32 px * Bpp: 4 * Opts: --no-compress --no-prefilter --bpp 4 --size 32 --font Montserrat-Medium.ttf -r 0x20-0x7F,0xB0,0x2022 --font FontAwesome5-Solid+Brands+Regular.woff -r 61441,61448,61451,61452,6...
193,175
1,093
/* * Copyright 2002-2019 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 a...
1,345
3,834
{ "resources": [ { "pattern": "\\QMETA-INF/MANIFEST.MF\\E" }, { "pattern": "\\Qakka-http-version.conf\\E" }, { "pattern": "\\Qapplication.conf\\E" }, { "pattern": "\\Qorg/enso/projectmanager/boot/ProjectManager$.class\\E" }, { "pattern": "\\Qorg/enso/projectmanager/control/core/CovariantFlat...
1,286
544
import os import tempfile from examples import acquire_token_by_client_credentials, test_user_principal_name from office365.graph_client import GraphClient from office365.outlook.mail.attachments.attachment import Attachment from office365.outlook.mail.messages.message import Message # Purpose: demonstrates how to do...
316
2,151
<reponame>zipated/src<filename>media/cdm/output_protection.h<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. #ifndef MEDIA_CDM_OUTPUT_PROTECTION_H_ #define MEDIA_CDM_OUTPUT_PROTECTION_H_ ...
853
375
<filename>src/RobotFrameworkCore/org.robotframework.ide.core-functions/src/test/java/org/rf/ide/core/execution/agent/event/TestStartedEventTest.java /* * Copyright 2017 Nokia Solutions and Networks * Licensed under the Apache License, Version 2.0, * see license.txt file for details. */ package org.rf.ide.core.execution...
3,563
407
<filename>SpringCloud/SpringCloud2020/cloud2020/cloud-provider-payment8002/src/main/java/com/atguigu/springcloud/controller/PaymentController.java package com.atguigu.springcloud.controller; import com.atguigu.springcloud.entities.CommonResult; import com.atguigu.springcloud.entities.Payment; import com.atguigu.spring...
730
1,435
from libcloud.compute.types import Provider from libcloud.compute.providers import get_driver apikey = 'your api key' secretkey = 'your secret key' host = 'localhost' path = '/path/to/api' port = 8080 Driver = get_driver(Provider.CLOUDSTACK) conn = Driver(key=apikey, secret=secretkey, host=host, path=pa...
128
2,023
<reponame>tdiprima/code #!/usr/bin/env python # updated 2005.07.21, thanks to <NAME> # updated 2006.03.30, thanks to <NAME> import sys import re import getopt # parse options for module imports opts, args = getopt.getopt(sys.argv[1:], 'm:') opts = dict(opts) if '-m' in opts: for imp in opts['-m'].split(','): ...
431
769
#include "svdpi.h" #include <unistd.h> #include <stdio.h> #include <stdlib.h> #include <errno.h> #include <netinet/in.h> #include <arpa/inet.h> #include <fcntl.h> #include "dpiheader.h" extern svLogic rtl_get_tdo(); int jp_check_con(); uint8_t jp_waiting; uint8_t count_comp; uint8_t jp_got_con; static int jp_com...
1,709
769
<filename>platforms/tizen/src/platform_tizen.cpp<gh_stars>100-1000 #include <stdio.h> #include <stdarg.h> #include <iostream> #include <fstream> #include <string> #include <list> #include <memory> #include <algorithm> #include <vector> #include "platform_tizen.h" #include "platform_gl.h" #include "urlWorker.h" #inclu...
3,171
372
/* Editor Settings: expandtabs and use 4 spaces for indentation * ex: set softtabstop=4 tabstop=8 expandtab shiftwidth=4: * * -*- mode: c, c-basic-offset: 4 -*- */ /* * Copyright © BeyondTrust Software 2004 - 2019 * All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you m...
15,086
576
<filename>game/gamemusic.cpp #include "gamemusic.h" #include "gothic.h" #include <Tempest/Sound> #include <Tempest/Log> #include "game/definitions/musicdefinitions.h" #include "dmusic/mixer.h" #include "resources.h" using namespace Tempest; struct GameMusic::MusicProducer : Tempest::SoundProducer { MusicProducer...
2,409
45,293
<reponame>Mu-L/kotlin<filename>kotlin-native/runtime/src/main/cpp/Format.cpp /* * Copyright 2010-2021 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ #include "Format.h" #include "Porting.h" using namespace kotlin; std_support::span<char>...
456
2,151
<reponame>MauroArgentino/RSXGL /* * Mesa 3-D graphics library * Version: 7.1 * * Copyright (C) 1999-2007 <NAME> All Rights Reserved. * * 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 Softw...
1,984
642
#pragma once #include <QtWidgets/QWidget> namespace AxiomGui { class WindowResizer : public QWidget { Q_OBJECT public: explicit WindowResizer(QWidget *parent = nullptr); signals: void startResize(); void resized(QPoint amount); protected: void mousePressEven...
226
6,098
package water.rapids.ast.prims.time; import org.joda.time.MutableDateTime; /** */ public class AstYear extends AstTime { public String str() { return "year"; } public long op(MutableDateTime dt) { return dt.getYear(); } }
91
555
"""Sopel's plugins exceptions.""" # Copyright 2019, <NAME> <<EMAIL>> # # Licensed under the Eiffel Forum License 2. from __future__ import generator_stop class PluginError(Exception): """Base class for plugin related exceptions.""" class PluginNotRegistered(PluginError): """Exception raised when a plugin is...
254
348
<gh_stars>100-1000 {"nom":"Saint-Loup-Lamairé","circ":"3ème circonscription","dpt":"Deux-Sèvres","inscrits":742,"abs":405,"votants":337,"blancs":33,"nuls":18,"exp":286,"res":[{"nuance":"REM","nom":"<NAME>","voix":188},{"nuance":"LR","nom":"<NAME>","voix":98}]}
109
386
////////////////////////////////////////////////////////////////////////// // // Copyright (c) 2008-2010, Image Engine Design 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: // // ...
823
1,570
<gh_stars>1000+ // Copyright 2016 The SwiftShader 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 // // U...
2,802
777
<reponame>google-ar/chromium<gh_stars>100-1000 /* * Copyright (C) 2010 Google 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 ...
1,442
319
<filename>machine-learning/machine-learning/src/main/java/org/openimaj/ml/linear/learner/perceptron/PlusOneDoubleArrayKernelPerceptron.java /** * Copyright (c) 2011, The University of Southampton and the individual contributors. * All rights reserved. * * Redistribution and use in source and binary forms, with or w...
731
322
<filename>ta-lib/c/src/ta_abstract/ta_def_ui.h /* TA-LIB Copyright (c) 1999-2007, <NAME> * All rights reserved. * * Redistribution and use in source and binary forms, with or * without modification, are permitted provided that the following * conditions are met: * * - Redistributions of source code must retain t...
4,086
14,668
<filename>third_party/blink/renderer/modules/bluetooth/bluetooth_remote_gatt_server.cc<gh_stars>1000+ // Copyright 2015 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "third_party/blink/renderer/modules/bluetoo...
3,104
5,169
{ "name": "GoogleAnalytics-iOS-SDK", "version": "3.0.9", "summary": "GoogleAnalytics for iOS SDK.", "description": " The Google Analytics SDK for iOS makes it easy for native iOS developers to collect user engagement data form their applications. Developers can then use the Google Analytics reports to measure:...
558
14,668
// 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 BASE_ANDROID_JNI_WEAK_REF_H_ #define BASE_ANDROID_JNI_WEAK_REF_H_ #include <jni.h> #include "base/android/scoped_java_ref.h" #include "base/base...
590
992
/* * Copyright 2018 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 applica...
1,143
3,358
<reponame>jiangjiali/QuantLib /* -*- mode: c++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /* Copyright (C) 2006 <NAME> Copyright (C) 2006 <NAME> Copyright (C) 2000, 2001, 2002, 2003 RiskMap srl This file is part of QuantLib, a free-software/open-source library for financial quantitative analy...
1,009
474
<gh_stars>100-1000 package org.javacord.api.listener.channel.server.invite; import org.javacord.api.event.channel.server.invite.ServerChannelInviteCreateEvent; import org.javacord.api.listener.GloballyAttachableListener; import org.javacord.api.listener.ObjectAttachableListener; import org.javacord.api.listener.server...
244
5,903
<gh_stars>1000+ /*! ****************************************************************************** * * Pentaho Data Integration * * Copyright (C) 2002-2021 by <NAME> : http://www.pentaho.com * ******************************************************************************* * * Licensed under the Apache License, ...
4,163
1,738
<filename>dev/Gems/CertificateManager/Code/Source/DataSource/FileDataSource.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 sof...
716
357
<gh_stars>100-1000 /* * Copyright © 2017 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 * * Unle...
447
1,350
<filename>sdk/servicebus/microsoft-azure-servicebus/src/main/java/com/microsoft/azure/servicebus/primitives/StringUtil.java // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. package com.microsoft.azure.servicebus.primitives; import java.nio.charset.Charset; import java.ni...
534
36,797
#!/usr/bin/env python3 """ Copyright (C) 2019 by <NAME> <<EMAIL>> Copyright (C) 2019 by Mygod Studio <<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 the License, or (at ...
1,790
10,245
/* * Copyright 2017 The gRPC 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 applicable law or agree...
1,794
3,710
<gh_stars>1000+ #pragma once #ifndef CLEANUPPARAMETERS_INCLUDED #define CLEANUPPARAMETERS_INCLUDED // Qt includes #include <QString> // Toonz includes #include "tfilepath.h" #include "toonz/targetcolors.h" #include "tcamera.h" #include "tpalette.h" #undef DVAPI #undef DVVAR #ifdef TOONZLIB_EXPORTS #define DVAPI DV_...
1,874
30,785
<filename>jadx-plugins/jadx-java-input/src/main/java/jadx/plugins/input/java/data/JavaMethodRef.java package jadx.plugins.input.java.data; import jadx.api.plugins.input.data.IMethodRef; import jadx.plugins.input.java.JavaClassReader; import jadx.plugins.input.java.utils.DescriptorParser; public class JavaMethodRef ex...
598
4,054
<reponame>Anlon-Burke/vespa // Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. package com.yahoo.language; import org.junit.Test; import java.util.Arrays; import java.util.List; import static org.junit.Assert.*; /** * @author <NAME> */ public class LanguageTes...
2,070
938
package slimeknights.tconstruct.shared; import net.minecraft.item.Food; import net.minecraft.potion.EffectInstance; import net.minecraft.potion.Effects; import slimeknights.tconstruct.shared.block.SlimeType; @SuppressWarnings("WeakerAccess") public final class TinkerFood { private TinkerFood() {} /* Bacon. What m...
787
41,267
"""Boto/botocore helpers""" import warnings from scrapy.exceptions import NotConfigured, ScrapyDeprecationWarning def is_botocore(): """ Returns True if botocore is available, otherwise raises NotConfigured. Never returns False. Previously, when boto was supported in addition to botocore, this returned Fals...
371
190,993
<filename>tensorflow/lite/python/analyzer_wrapper/analyzer_wrapper.cc /* Copyright 2021 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.a...
413
12,252
<gh_stars>1000+ /* * Copyright 2016 Analytical Graphics, Inc. and/or its affiliates * and other contributors as indicated by the @author tags. * * 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 Licen...
886
679
<filename>main/stoc/source/simpleregistry/simpleregistry.cxx /************************************************************** * * 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 * regar...
23,991
14,668
// 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 GPU_COMMAND_BUFFER_SERVICE_VALIDATING_ABSTRACT_TEXTURE_IMPL_H_ #define GPU_COMMAND_BUFFER_SERVICE_VALIDATING_ABSTRACT_TEXTURE_IMPL_H_ #include "b...
804
8,969
// Copyright (c) 2018, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. #ifndef RUNTIME_VM_COMPILER_BACKEND_LOOPS_H_ #define RUNTIME_VM_COMPILER_BACKEND_LOOPS_H_ #if defined(...
3,693
10,504
<filename>tests-deprecating/milvus_benchmark/milvus_benchmark/metrics/models/metric.py import time import datetime import json import hashlib from .env import Env from .server import Server from .hardware import Hardware class Metric(object): """ A template for reporting data: { "_id" : ObjectId(...
2,089