max_stars_count
int64
301
224k
text
stringlengths
6
1.05M
token_count
int64
3
727k
2,151
<filename>third_party/android_tools/sdk/sources/android-25/com/android/documentsui/dirlist/FragmentTuner.java /* * Copyright (C) 2015 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 obta...
4,462
4,047
#include<gtest/gtest.h> TEST(basic_test, eq_works) { ASSERT_EQ(0, 1-1) << "Equality is broken. Mass panic!"; } TEST(basic_test, neq_works) { ASSERT_NE(15, 106) << "Inequal is equal. The foundations of space and time are in jeopardy."; }
104
14,668
// 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. #ifndef ASH_PUBLIC_CPP_PAGINATION_PAGINATION_MODEL_OBSERVER_H_ #define ASH_PUBLIC_CPP_PAGINATION_PAGINATION_MODEL_OBSERVER_H_ #include "ash/public/cp...
402
1,078
#ifndef AL_RWLOCK_H #define AL_RWLOCK_H #include "AL/al.h" #include "atomic.h" typedef struct { volatile RefCount read_count; volatile RefCount write_count; volatile ALenum read_lock; volatile ALenum read_entry_lock; volatile ALenum write_lock; } RWLock; void RWLockInit(RWLock *lock); void ReadLo...
174
1,382
<reponame>vankxr/liquid-dsp /* * Copyright (c) 2007 - 2015 <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,016
348
{"nom":"Tréglonou","circ":"5ème circonscription","dpt":"Finistère","inscrits":500,"abs":253,"votants":247,"blancs":38,"nuls":14,"exp":195,"res":[{"nuance":"REM","nom":"<NAME>","voix":120},{"nuance":"DVD","nom":"<NAME>","voix":75}]}
91
435
<reponame>tianliangyihou/LBPhotoBrowser // // LBCell.h // test // // Created by dengweihao on 2017/12/26. // Copyright © 2017年 dengweihao. All rights reserved. // #import <UIKit/UIKit.h> #import "LBModel.h" #define LB_WEAK_SELF __weak typeof(self)wself = self static NSString *ID = @"lb.cell"; @interface LBCell :...
214
589
package rocks.inspectit.ui.rcp.ci.testers; import org.apache.commons.lang.ArrayUtils; import org.eclipse.core.expressions.PropertyTester; import rocks.inspectit.shared.cs.ci.business.impl.ApplicationDefinition; import rocks.inspectit.shared.cs.ci.business.impl.BusinessTransactionDefinition; import rocks.inspectit.ui....
832
655
<filename>core/smartview/SearchFolderDefinition.cpp #include <core/stdafx.h> #include <core/smartview/SearchFolderDefinition.h> #include <core/smartview/RestrictionStruct.h> #include <core/smartview/PropertiesStruct.h> #include <core/mapi/extraPropTags.h> #include <core/smartview/SmartView.h> namespace smartview { vo...
2,298
66,985
/* * Copyright 2012-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...
522
4,054
/* * Copyright (c) 2019 BestSolution.at and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html * * Contributors: ...
167
1,848
<gh_stars>1000+ // bindgen-flags: --rustified-enum ".*" /** * Stores a pointer to the ops struct, and the offset: the place to * write the parsed result in the destination structure. */ struct cmdline_token_hdr { struct cmdline_token_ops *ops; unsigned int offset; }; typedef struct cmdline_token_hdr cmdline_parse...
654
771
<reponame>revolunet/tiny-helpers { "name": "Lighthouse CI Diff", "desc": "Compare two Lighthouse reports", "url": "https://googlechrome.github.io/lighthouse-ci/viewer/", "tags": [ "Performance" ], "maintainers": [], "addedAt": "2021-01-09" }
105
2,757
"""File System Proxy. Provide an OS-neutral view on a file system, locally or remotely. The functionality is geared towards implementing some sort of rdist-like utility between a Mac and a UNIX system. The module defines three classes: FSProxyLocal -- used for local access FSProxyServer -- used on the serv...
4,037
521
#ifndef HASHTABLE_H #define HASHTABLE_H 1 #include <dix-config.h> #include <X11/Xfuncproto.h> #include <X11/Xdefs.h> #include "list.h" /** @brief A hashing function. @param[in/out] cdata Opaque data that can be passed to HtInit that will eventually end up here @param[in] ptr The d...
2,491
381
#include "visibility.h" #include "objc/runtime.h" #include "module.h" #include "gc_ops.h" #include <assert.h> #include <stdio.h> #include <string.h> /** * The smallest ABI version number of loaded modules. */ static unsigned long min_loaded_version; /** * The largest ABI version number of loaded modules. */ static...
1,446
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 * ...
1,312
380
package n10s.result; import org.neo4j.graphdb.Node; import org.neo4j.graphdb.Relationship; public class RelAndNodeResult { public final Relationship rel; public final Node node; public RelAndNodeResult(Relationship rel, Node node) { this.rel = rel; this.node = node; } }
104
369
// Copyright (c) 2017-2021, Mudita Sp. z.o.o. All rights reserved. // For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md #include <catch2/catch.hpp> #include "Device.hpp" #include "application-settings/models/bluetooth/BluetoothSettingsModel.hpp" TEST_CASE("Devicei comparison") { Devicei device1{"De...
1,675
305
<reponame>rarutyun/llvm //===-- SymbolFileNativePDB.cpp -------------------------------------------===// // // 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 // //===---...
22,248
1,555
extern void exit (int); struct a { unsigned int bitfield : 3; }; int main() { struct a a; a.bitfield = 131; foo (a.bitfield); exit (0); } foo(unsigned int z) { if (z != 3) abort (); }
89
3,702
<reponame>impira/yugabyte-db // Copyright (c) YugaByte, 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 applic...
2,528
425
{"Sections":[{"Errors":[],"SectionType":"entitySection","Id":"entitySection_product","Body":"","Name":"product","Type":"simple","SynonymsOrPhraseList":[],"Range":{"Start":{"Line":3,"Character":0},"End":{"Line":3,"Character":17}}},{"Errors":[],"SectionType":"entitySection","Id":"entitySection_PREBUILT","Body":"","Name":...
429
335
{ "word": "Labyrinthodont", "definitions": [ "(of teeth) having the enamel deeply folded to form a labyrinthine structure.", "Relating to a group of large fossil amphibians of the late Devonian to early Triassic periods having labyrinthodont teeth." ], "parts-of-speech": "Adjective" }
106
629
/* Copyright (c) 2017, United States Government, as represented by the * Administrator of the National Aeronautics and Space Administration. * * All rights reserved. * * The Astrobee platform is licensed under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with t...
1,922
302
/**************************************************************************** ** Copyright (c) 2006 - 2011, the LibQxt project. ** See the Qxt AUTHORS file for a list of authors and copyright holders. ** All rights reserved. ** ** Redistribution and use in source and binary forms, with or without ** modification, are ...
8,347
677
// Copyright 2017 The Lynx Authors. All rights reserved. package com.lynx.ui.swiper; import android.util.SparseArray; import com.lynx.core.impl.RenderObjectImpl; import com.lynx.ui.LynxUI; import java.util.ArrayList; import java.util.List; public class PagerRecyclerBin { private SparseArray<List<LynxUI>> mRecy...
827
399
<reponame>tzpBingo/IQL package iql.web.config; import org.springframework.boot.web.servlet.MultipartConfigFactory; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.core.annotation.Order; import org.springframework.web.multipart....
680
1,338
/* * Copyright 2004-2012, Haiku, Inc. All Rights Reserved. * Distributed under the terms of the MIT License. * * Authors: * <NAME> <<EMAIL>> * Julun <<EMAIL>> * <NAME> <<EMAIL>> */ #ifndef ZONE_VIEW_H #define ZONE_VIEW_H #include <LayoutBuilder.h> #include <TimeFormat.h> #include <TimeZone.h> class BButt...
677
395
/** * Copyright 2017-2019 The OpenTracing 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...
1,536
2,338
import lldb from intelpt_testcase import * from lldbsuite.test.lldbtest import * from lldbsuite.test import lldbutil from lldbsuite.test.decorators import * class TestTraceLoad(TraceIntelPTTestCaseBase): mydir = TestBase.compute_mydir(__file__) def testSchema(self): self.expect("trace schema intel-pt...
336
862
<filename>lock-api-objects/src/main/java/com/palantir/lock/LockGroupBehavior.java /* * (c) Copyright 2018 Palantir Technologies 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...
369
6,272
<reponame>DuncanFaulkner/flex-layout { "ChromeHeadlessLocal": { "base": "ChromeHeadless", "flags": ["--window-size=1024,768"] }, "ChromeHeadlessCI": { "base": "ChromeHeadless", "flags": ["--window-size=1024,768", "--no-sandbox"] }, "FirefoxHeadless": { "base": "Firefox", "flags": ["-he...
339
521
<filename>third_party/virtualbox/src/VBox/Additions/x11/x11include/XFree86-4.3/X11/extensions/shapestr.h<gh_stars>100-1000 /************************************************************ Copyright 1989, 1998 The Open Group Permission to use, copy, modify, distribute, and sell this software and its documentation for an...
2,751
775
<reponame>ntyukaev/training_extensions<gh_stars>100-1000 # Copyright (C) 2021-2022 Intel Corporation # SPDX-License-Identifier: Apache-2.0 # """ This module contains the different ui rules elements, Rule and UIRules. They are used to define rules for disabling configuration parameters in the ui, conditional on the va...
1,394
3,631
/* * Copyright 2021 Red Hat, Inc. and/or its affiliates. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
674
567
package com.google.cloud.bigquery.utils.queryfixer.util; import com.google.cloud.bigquery.utils.queryfixer.entity.Position; import com.google.cloud.bigquery.utils.queryfixer.entity.StringView; import lombok.AllArgsConstructor; import lombok.NonNull; import java.util.ArrayList; import java.util.List; import java.util....
1,011
995
<gh_stars>100-1000 #include "ExponentialBackoffTimer.hpp" using namespace HomieInternals; ExponentialBackoffTimer::ExponentialBackoffTimer(uint16_t initialInterval, uint8_t maxBackoff) : _timer(Timer()) , _initialInterval(initialInterval) , _maxBackoff(maxBackoff) , _retryCount(0) { _timer.deactivate(); } bool Exp...
368
6,304
<filename>experimental/sktext/src/VisualRun.cpp // Copyright 2021 Google LLC. #include "experimental/sktext/src/VisualRun.h" namespace skia { namespace text { } // namespace text } // namespace skia
65
329
from collections.abc import Callable import pytest from rest_framework import renderers from rest_framework import request as rest_request from rest_framework import serializers from rest_framework.compat import uritemplate from rest_framework.decorators import api_view from rest_framework.response import Response fro...
1,583
348
<reponame>chamberone/Leaflet.PixiOverlay {"nom":"Taillecourt","circ":"4ème circonscription","dpt":"Doubs","inscrits":826,"abs":428,"votants":398,"blancs":21,"nuls":12,"exp":365,"res":[{"nuance":"REM","nom":"<NAME>","voix":211},{"nuance":"FN","nom":"<NAME>","voix":154}]}
109
404
<gh_stars>100-1000 // // AppDelegate.h // TFEasyCoderDemo // // Created by ztf on 16/10/28. // Copyright © 2016年 ztf. All rights reserved. // #import <UIKit/UIKit.h> @interface AppDelegate : UIResponder <UIApplicationDelegate> @property (strong, nonatomic) UIWindow *window; @end
114
892
<gh_stars>100-1000 { "schema_version": "1.2.0", "id": "GHSA-c4rh-4376-gff4", "modified": "2021-12-03T15:22:02Z", "published": "2021-11-24T21:12:04Z", "aliases": [ "CVE-2021-40830" ], "summary": "Improper certificate management in AWS IoT Device SDK v2", "details": "The AWS IoT Device SDK v2 for Java...
1,967
489
<gh_stars>100-1000 #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++# # Apache Axis 1.4 Remote Code Execution CVE-2019-0227 # #https://rhinosecuritylabs.com/Application-Security/CVE-2019-0227-Expired-Domain-to-RCE-in-Apac...
3,223
537
<filename>suro-s3/src/main/java/com/netflix/suro/input/remotefile/S3Consumer.java package com.netflix.suro.input.remotefile; import com.amazonaws.auth.AWSCredentialsProvider; import com.amazonaws.auth.AWSSessionCredentials; import com.fasterxml.jackson.annotation.JacksonInject; import com.fasterxml.jackson.annotation....
6,614
1,110
from cms.test_utils.project.pluginapp.plugins.manytomany_rel.models import Article, Section from django.contrib import admin from django.contrib.admin import ModelAdmin admin.site.register(Section, ModelAdmin) admin.site.register(Article, ModelAdmin)
75
377
/** * Copyright 2012 Impetus Infotech. * * 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 ag...
1,032
918
<filename>gobblin-modules/gobblin-parquet-common/src/main/java/org/apache/gobblin/parquet/writer/ParquetWriterConfiguration.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 regar...
1,653
1,171
#ifdef __OBJC__ #import <UIKit/UIKit.h> #else #ifndef FOUNDATION_EXPORT #if defined(__cplusplus) #define FOUNDATION_EXPORT extern "C" #else #define FOUNDATION_EXPORT extern #endif #endif #endif FOUNDATION_EXPORT double Pods_Sizes_ExampleVersionNumber; FOUNDATION_EXPORT const unsigned char Pods_Sizes_ExampleVersionStr...
121
890
<reponame>Joey-Wondersign/Staffjoy-suite-Joey<filename>tests/unit/models/test_user.py from tests.unit.test_base import BasicsTestCase from flask import g from app import db from app.models import Location, Role, User class AppTestUser(BasicsTestCase): def test_is_sudo(self): # admin is not g.cur...
2,888
2,542
<reponame>vishnuk007/service-fabric //------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //------------------------------------------------------------ #pragma once namespace ServiceModel { namespace ModelV2 { class CodePackageRes...
1,374
15,337
<reponame>fairhopeweb/saleor<gh_stars>1000+ import graphene from ...product import ProductTypeKind from ..core.enums import to_enum ProductTypeKindEnum = to_enum(ProductTypeKind) class ProductAttributeType(graphene.Enum): PRODUCT = "PRODUCT" VARIANT = "VARIANT" class StockAvailability(graphene.Enum): ...
317
500
from collections import Counter import matplotlib import numpy as np from matplotlib import pyplot as plt from .mapview import MapView from sompy.visualization.plot_tools import plot_hex_map class BmuHitsView(MapView): def _set_labels(self, cents, ax, labels, onlyzeros, fontsize, hex=False): for i, tx...
1,309
399
package com.amazonaws.athena.connector.lambda.serde; /*- * #%L * Amazon Athena Query Federation SDK * %% * Copyright (C) 2019 Amazon Web Services * %% * 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 ...
1,122
381
<gh_stars>100-1000 package org.apache.helix.monitoring.metrics; /* * 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...
1,701
903
<filename>lucene/analysis/common/src/java/org/apache/lucene/analysis/hunspell/HunspellStemFilter.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,738
2,858
/* * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT-style license found in the * LICENSE file in the root directory of this source tree. */ #include <cmath> #include <stdexcept> #include <gtest/gtest.h> #include "flashlight/fl/tensor/Index.h" #include "flashlight...
678
9,402
<filename>src/mono/mono/unit-tests/test-mono-embed.c /* * test-mono-embed.c: Unit test for embed mono. */ #define _TESTCASE_ #include <mono/mini/jit.h> #include <embed/teste.c>
79
1,405
package tms; import android.content.BroadcastReceiver; import android.content.Context; import android.content.IntentFilter; import com.tencent.tmsecure.common.ManagerCreator; import com.tencent.tmsecure.common.TMSApplication; import com.tencent.tmsecure.module.aresengine.AbsSysDao; import com.tencent.tmsecure.module.a...
2,490
460
// // FractionTokenInterpreter.h // FractionCalculateEngine // // Created by lmsgsendnilself on 16/5/12. // Copyright © 2016年 p. All rights reserved. // #import <Foundation/Foundation.h> @class FractionTokenizer; @interface FractionTokenInterpreter : NSObject @property(readonly) NSArray *tokens; - (instancetyp...
147
368
#include <stdlib.h> #include <string.h> #include <vector> #include "../linear.h" #include "mex.h" using std::vector; #ifdef MX_API_VER #if MX_API_VER < 0x07030000 typedef int mwIndex; #endif #endif #define Malloc(type,n) (type *)malloc((n)*sizeof(type)) #define NUM_OF_RETURN_FIELD 6 static const char *field_names...
2,125
407
<reponame>iuskye/SREWorks package com.alibaba.sreworks.health.controllers.incident; import com.alibaba.sreworks.health.api.incident.IncidentTypeService; import com.alibaba.sreworks.health.domain.req.incident.IncidentTypeCreateReq; import com.alibaba.sreworks.health.domain.req.incident.IncidentTypeUpdateReq; import com...
1,233
72,551
extern void old() __attribute__((deprecated)); static void warnings8() { old(); }
26
5,249
/* * Copyright (c) 2021, NVIDIA CORPORATION. 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 requi...
369
390
/* * Copyright 2017 <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 law or agreed to in writing, ...
2,394
595
<gh_stars>100-1000 /****************************************************************************** * Copyright (c) 2020 - 2021 Xilinx, Inc. All rights reserved. * SPDX-License-Identifier: MIT ******************************************************************************/ /**********************************************...
434
1,016
package com.thinkbiganalytics.scheduler; /*- * #%L * thinkbig-scheduler-quartz * %% * Copyright (C) 2017 ThinkBig Analytics * %% * 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 * * ...
5,088
750
<reponame>paradiseng/jasmin from twisted.web.resource import Resource class Ping(Resource): isleaf = True def __init__(self, log): Resource.__init__(self) self.log = log def render_GET(self, request): """ /ping request processing Note: Ping is used to check Jasmi...
265
471
from django.contrib import admin from custom.m4change.models import McctStatus class McctStatusAdmin(admin.ModelAdmin): model = McctStatus list_display = ('form_id', 'status', 'domain', 'reason', 'received_on', 'registration_date', 'immunized', 'is_booking', 'is_stillbirth', 'modified_on',...
153
1,144
package de.metas.migration.cli.rollout_migrate; import de.metas.migration.IDatabase; import de.metas.migration.IScript; import de.metas.migration.IScriptsRegistry; import de.metas.migration.impl.SQLDatabase; import lombok.AllArgsConstructor; import lombok.NonNull; /* * #%L * de.metas.migration.cli * %% * Copyrigh...
818
12,718
<filename>lib/libc/include/wasm-wasi-musl/wasi/libc.h #ifndef __wasi_libc_h #define __wasi_libc_h #include <__typedef_off_t.h> #include <__struct_timespec.h> #ifdef __cplusplus extern "C" { #endif struct stat; struct timespec; /// Register the given pre-opened file descriptor under the given path. /// /// This func...
895
355
/* The MIT License (MIT) Copyright (c) 2021 <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, copy, modify, merge, publis...
2,396
594
import json import os import glob import dataconverter # TODO adapt this method to get real detections on the given image. # You have to stick to the given result format. def mock_detector(image): mock_detections = [{'x0': 0.0, 'x1': 10.0, 'y0': 0.0, ...
792
844
<reponame>iprinceroyy/Hacktoberfest-2020 { "github-username": "Fonta22", "favourite-emoji": "🦠", "favourite-music": "https://soundcloud.com/monstercat/noisestorm-crab-rave", "favourite-color": "#FBFFBF" }
94
326
<filename>extensions/test/nsphere/nsphere-index_margin.cpp // Boost.Geometry (aka GGL, Generic Geometry Library) // Unit Test // Copyright (c) 2007-2012 <NAME>, Amsterdam, the Netherlands. // Copyright (c) 2013 <NAME>, Lodz, Poland. // Use, modification and distribution is subject to the Boost Software License, // Ve...
589
7,744
// // ASContextTransitioning.h // Texture // // Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. // Changes after 4/13/2017 are: Copyright (c) Pinterest, Inc. All rights reserved. // Licensed under Apache 2.0: http://www.apache.org/licenses/LICENSE-2.0 // #import <AsyncDisplayKit/ASDimensio...
619
1,056
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
4,196
5,169
{ "name": "CSSSelectorConverter", "version": "1.1.1", "license": "MIT", "summary": "Objective-C/Cocoa String Tokenizer and Parser toolkit. Supports Grammars.", "homepage": "https://github.com/siuying/CSSSelectorConverter", "authors": { "<NAME>": "<EMAIL>" }, "source": { "git": "https://github.co...
570
429
<filename>src/tests/ftest/io/small_file_count.py #!/usr/bin/python """ (C) Copyright 2020-2021 Intel Corporation. SPDX-License-Identifier: BSD-2-Clause-Patent """ from file_count_test_base import FileCountTestBase class SmallFileCount(FileCountTestBase): # pylint: disable=too-many-ancestors """Test class ...
385
921
<filename>src/main/java/com/vladsch/md/nav/settings/MdHtmlSettingsForm.java // Copyright (c) 2015-2020 <NAME> <<EMAIL>> Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. package com.vladsch.md.nav.settings; import com.intellij.openapi.application.ApplicationManager; i...
6,203
378
<reponame>CristianDVN/tomee /** * * 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 ...
1,063
818
import GRT import sys import argparse def main(): '''GRT ZeroCrossingCounter Example This example demonstrates how to create and use the GRT ZeroCrossingCounter FeatureExtraction Module. The ZeroCrossingCounter module counts the number of zero crossings that occur in an N dimensional signal over a...
964
585
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
925
4,067
#include "Cello.h" static const char* Current_Name(void) { return "Current"; } static const char* Current_Brief(void) { return "Implicit Object"; } static const char* Current_Description(void) { return "The `Current` class can be implemented by types which have implicit " "instances associated with the...
6,152
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...
817
336
<gh_stars>100-1000 /* * Copyright 2019 Apple 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 ag...
267
9,959
import lombok.experimental.*; class WitherLegacyStar { @Wither int i; WitherLegacyStar(int i) { this.i = i; } }
54
777
<gh_stars>100-1000 // 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. #include "chrome/browser/ui/views/extensions/bookmark_app_confirmation_view.h" #include "base/callback_helpers.h" #include "base/strin...
2,162
370
<reponame>gerritg/voxelshop package com.vitco.app.importer; import com.vitco.app.util.file.FileIn; import com.vitco.app.util.file.RandomAccessFileIn; import java.awt.*; import java.io.File; import java.io.IOException; /** * RawVox importer */ public class RawVoxImporter extends AbstractImporter { // the voxel...
1,200
1,819
package mortar.bundler; import android.content.Context; import android.os.Bundle; import java.util.ArrayList; import java.util.List; import java.util.concurrent.atomic.AtomicBoolean; import java.util.concurrent.atomic.AtomicInteger; import junit.framework.TestCase; import mortar.MortarScope; import mortar.Scoped; impo...
7,783
2,181
#pragma once // This needs to remain the first include in this file, or some defines aren't // set correctly when netinet/tcp.h is included and the CentOS 7 build breaks. // clang-format off #include "zeek/net_util.h" #include <netinet/tcp.h> #include <sys/types.h> #include <string> // clang-format on namespace zeek...
468
726
<reponame>xqgdmg/DavidNBA-master package com.yuyh.library.view.list.indexablelistview; import android.content.Context; import android.graphics.Color; import android.view.Gravity; import android.widget.FrameLayout; import android.widget.ProgressBar; import android.widget.TextView; /** * 搜索部分 相关 * Created by YoKeywo...
1,073
480
<reponame>weicao/galaxysql<filename>polardbx-calcite/src/main/java/org/apache/calcite/sql/SqlAlterTableGroupRenamePartition.java<gh_stars>100-1000 /* * Copyright [2013-2021], Alibaba Group Holding Limited * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compl...
681
971
package com.ucar.datalink.manager.core.coordinator; /** * Created by lubiao on 2016/12/1. */ public class GroupConfig { private int groupMinSessionTimeoutMs; private int groupMaxSessionTimeoutMs; public GroupConfig(int groupMinSessionTimeoutMs, int groupMaxSessionTimeoutMs) { this.groupMinSessio...
305
921
/* * Software License Agreement (BSD License) * * Copyright (c) 2011-2014, <NAME>, Inc. * Copyright (c) 2014-2016, Open Source Robotics Foundation * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditio...
1,421
1,217
<gh_stars>1000+ from .testutils import FullStackTests, FakeStrictRedis import os import json from mock import patch from webrecorder.utils import today_str from webrecorder.models.stats import Stats from webrecorder.browsermanager import BrowserManager # ============================================================...
3,843
1,163
// Copyright 2017-present, Facebook, Inc. // All rights reserved. // // This source code is licensed under the license found in the // LICENSE file in the root directory of this source tree. //File: color_mapping.hh #pragma once #include <csv.h> #include <algorithm> #include <unordered_map> #include <string> #include...
668
331
<gh_stars>100-1000 package com.lauzy.freedom.data.net.interceptor; import android.support.annotation.NonNull; import com.lauzy.freedom.data.net.constants.NetConstants; import java.io.IOException; import okhttp3.HttpUrl; import okhttp3.Interceptor; import okhttp3.Request; import okhttp3.Response; /** * Desc : 切换Ba...
1,129
4,054
<filename>modules/lwjgl/assimp/src/generated/java/org/lwjgl/assimp/AIFileReadProcI.java /* * Copyright LWJGL. All rights reserved. * License terms: https://www.lwjgl.org/license * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.assimp; import org.lwjgl.system.*; import org.lwjgl.system.libffi.*; import s...
770
1,006
<reponame>eenurkka/incubator-nuttx /**************************************************************************** * arch/arm/src/lpc17xx_40xx/lpc17_40_clockconfig.c * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this w...
635