max_stars_count
int64
301
224k
text
stringlengths
6
1.05M
token_count
int64
3
727k
461
<gh_stars>100-1000 /*- * Copyright (c) 2002 <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: * 1. Redistributions of source code must retain the above copyright * notice, this ...
1,156
331
<reponame>greenlion/SIMDCompressionAndIntersection<gh_stars>100-1000 /** * This code is released under the * Apache License Version 2.0 http://www.apache.org/licenses/. * */ #include <unistd.h> #include "synthetic.h" #include "timer.h" #include "intersection.h" // https://code.google.com/p/likwid/wiki/LikwidPerfC...
24,965
1,465
{ "type": "Row", "category": "widget", "description": "A composite with the `layout` property initialized with a `RowLayout`. All children are automatically arranged in one horizontal row, starting from the left.", "extends": "Composite", "constructor": { "access": "public", "parameters": [ { ...
723
672
// // RNSketch.h // RNSketch // // Created by <NAME> on 28/04/2016. // Copyright © 2016 <NAME>. All rights reserved. // #import <UIKit/UIKit.h> #if __has_include(<React/RCTViewManager.h>) // React Native >= 0.40 #import <React/UIView+React.h> #else // React Native <= 0.39 #import "UIView+React.h" #endif @interfac...
276
1,909
<gh_stars>1000+ package org.knowm.xchange.coincheck.dto; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.databind.PropertyNamingStrategies; import com.fasterxml.jackson.databind.annotation.JsonNaming; import lombok.Getter; import s...
272
335
{ "word": "Approximate", "definitions": [ "Come close or be similar to something in quality, nature, or quantity.", "Estimate or calculate (a quantity) fairly accurately." ], "parts-of-speech": "Verb" }
88
1,367
<gh_stars>1000+ # -*- coding: UTF-8 -*- """ Module with tests for Strings """ #----------------------------------------------------------------------------- # Copyright (c) 2013, the IPython Development Team. # # Distributed under the terms of the Modified BSD License. # # The full license is in the file COPYING.txt, ...
3,250
419
<filename>Resources/Services/Export/Dialog/ActionRendering/ScribanRenderingEngine/RenderingObjects/ScribanSpawnObjectActionData.en.json<gh_stars>100-1000 { "PlaceholderDesc_Object": "The object that is being spawned.", "PlaceholderDesc_TargetMarkerName": "The name of the marker at which the object is being sp...
215
13,885
/* * Copyright (C) 2021 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 app...
1,451
778
//--------------------------------------------------------------------------------------------------------------------// // // // Tuplex: Blazing Fast Python Data Scien...
1,889
892
<reponame>github/advisory-database { "schema_version": "1.2.0", "id": "GHSA-5297-pw47-52pg", "modified": "2022-05-13T01:31:18Z", "published": "2022-05-13T01:31:18Z", "aliases": [ "CVE-2019-1835" ], "details": "A vulnerability in the CLI of Cisco Aironet Access Points (APs) could allow an authenticated...
573
348
{"nom":"Landudec","circ":"7ème circonscription","dpt":"Finistère","inscrits":1088,"abs":616,"votants":472,"blancs":49,"nuls":15,"exp":408,"res":[{"nuance":"REM","nom":"<NAME>","voix":251},{"nuance":"LR","nom":"<NAME>","voix":157}]}
90
335
<reponame>Safal08/Hacktoberfest-1 { "word": "Level", "definitions": [ "A horizontal plane or line with respect to the distance above or below a given point.", "A height or distance from the ground or another stated or understood base.", "A floor within a multistorey building.", "...
339
1,529
<reponame>IgiArdiyanto/PINTO_model_zoo ### tensorflow==2.3.1 import tensorflow as tf # Weight Quantization - Input/Output=float32 height = 480 width = 640 converter = tf.lite.TFLiteConverter.from_saved_model('saved_model_nyu_{}x{}'.format(height, width)) converter.optimizations = [tf.lite.Optimize.OPTIMIZE_FOR_SIZE]...
426
1,072
<reponame>THUDM/cogdl import argparse import numpy as np import torch from sklearn.metrics import auc, f1_score, precision_recall_curve, roc_auc_score from cogdl.data import Graph from .. import register_model_wrapper, EmbeddingModelWrapper def get_score(embs, node1, node2): vector1 = embs[int(node1)] vector...
1,483
2,151
<filename>media/mca/filterfw/java/android/filterfw/core/NativeBuffer.java /* * Copyright (C) 2011 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 * * ...
1,449
3,372
<filename>aws-java-sdk-sqs/src/main/java/com/amazonaws/services/sqs/buffered/AmazonSQSBufferedAsyncClient.java /* * Copyright 2012-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 t...
15,038
1,043
<reponame>triceo/simple-java-mail<gh_stars>1000+ package org.simplejavamail.internal.authenticatedsockssupport.socks5server.io; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import java.io.IOException; import java.net.Socket; /** * The class <code>SocketPipe</code> represents pipe that can transfer data ...
831
14,668
// Copyright (c) 2013 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 CHROME_BROWSER_POLICY_PROFILE_POLICY_CONNECTOR_BUILDER_H_ #define CHROME_BROWSER_POLICY_PROFILE_POLICY_CONNECTOR_BUILDER_H_ #include <memory>...
552
1,602
// assign to all the variables #define lvar(name, type, init) name = init; #include "var-types.h" #undef lvar
40
469
/******************************************************************************* * Copyright 2019 See AUTHORS file * * 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.apac...
6,221
399
#pragma once #include "CompositeObj.hpp" #include "system/System.hpp" #include "Common.hpp" /** \brief Helpers to export a Rendu scene. \ingroup ObjToScene */ namespace SceneExport { /** \brief Contain exported texture infos for a given material. */ struct Material { std::string colorName; ///< Color texture ...
445
4,879
<gh_stars>1000+ // Copyright 2019 Google // // 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 a...
2,035
338
package fr.lteconsulting.pomexplorer.graph; import java.util.Collection; import java.util.HashSet; import java.util.Set; import java.util.concurrent.atomic.AtomicReference; import java.util.stream.Collectors; import fr.lteconsulting.pomexplorer.graph.relation.*; import org.jgrapht.graph.DirectedMultigraph; import fr...
2,957
1,444
package mage.client.dialog; import mage.client.MageFrame; import mage.client.util.SettingsManager; import mage.client.util.gui.GuiDisplayUtil; import org.apache.log4j.Logger; import javax.swing.*; import java.awt.*; import java.awt.event.InvocationEvent; import java.awt.event.MouseEvent; import java.beans.PropertyVet...
5,028
2,313
/* * Copyright (c) 2021 Arm Limited. * * SPDX-License-Identifier: MIT * * 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 ...
956
441
import numpy as np import pandas as pd import yfinance import matplotlib.pyplot as plt import datetime as dt pd.set_option('display.max_columns', None) stock = input('Enter a ticker: ') start = dt.date.today() - dt.timedelta(days=1) ticker = yfinance.Ticker(stock) df = ticker.history(interval="1d") last_day = df.tail...
683
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...
1,298
2,151
<gh_stars>1000+ /* * 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 obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless...
618
2,094
//////////////////////////////////////////////////////////////////////////////////////////////////// // // Project: Embedded Learning Library (ELL) // File: Optional.h (utilities) // Authors: <NAME> // //////////////////////////////////////////////////////////////////////////////////////////////////// #pragma...
1,128
5,941
#include <stdio.h> #include <stdlib.h> #include <winpr/crt.h> #include <winpr/file.h> #include <winpr/windows.h> int TestFileDeleteFile(int argc, char* argv[]) { BOOL rc; int fd; char validA[] = "/tmp/valid-test-file-XXXXXX"; char validW[] = "/tmp/valid-test-file-XXXXXX"; WCHAR* validWW = NULL; const char* inva...
611
707
// Copyright (c) FIRST and other WPILib contributors. // Open Source Software; you can modify and/or share it under the terms of // the WPILib BSD license file in the root directory of this project. #include "hal/simulation/NotifierData.h" extern "C" { uint64_t HALSIM_GetNextNotifierTimeout(void) { return 0; } in...
175
310
{ "name": "Copperhead", "description": "A gaming mouse.", "url": "https://www.amazon.com/RAZER-Copperhead-Razor-Precision-Gaming/dp/B000C28VM0" }
62
1,471
<filename>tests/parser/exceptions/test_vyper_exception_pos.py from pytest import raises from vyper.exceptions import VyperException def test_type_exception_pos(): pos = (1, 2) with raises(VyperException) as e: raise VyperException("Fail!", pos) assert e.value.lineno == 1 assert e.value.col_...
276
362
<filename>example/unitest/main.c #include <u/libu.h> #include "test.h" int facility = LOG_LOCAL0; int TC_1_1 (test_case_t *tc); int TC_1_2 (test_case_t *tc); int TC_2_1 (test_case_t *tc); int TC_2_2 (test_case_t *tc); int test_suite_TS1_register (test_t *t); int test_suite_TS2_register (test_t *t); int main (int ar...
1,207
528
<reponame>anukaal/opytimizer<gh_stars>100-1000 import gc import tensorflow as tf from tensorflow.keras import datasets, layers, models, optimizers from opytimizer import Opytimizer from opytimizer.core import Function from opytimizer.optimizers.swarm import PSO from opytimizer.spaces import SearchSpace # Loads CIFAR...
870
25,360
<reponame>linzhaojia77/jeecg-boot<gh_stars>1000+ package org.jeecg.modules.demo.cloud.service; import org.jeecg.common.api.vo.Result; public interface JcloudDemoService { Result<String> getMessage(String name); }
85
918
<filename>boost/libs/spirit/test/karma/regression_semantic_action_attribute.cpp // Copyright (c) 2010 <NAME> // Copyright (c) 2001-2010 <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) #include <boos...
367
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. #include "components/sync/model/proxy_model_type_controller_delegate.h" #include <utility> #include "base/bind.h" #include "components/sync/base/bind_to...
1,494
467
<filename>MacForge/MacForgeHelper/MFAppDelegate.h<gh_stars>100-1000 // // MFAppDelegate.h // MFAppDelegate // // Created by <NAME> on 04/12/12. // Copyright (c) 2020 MacEnhance. All rights reserved. // #import <Cocoa/Cocoa.h> @interface MFAppDelegate : NSObject <NSApplicationDelegate, NSUserNotificationCenterDele...
182
1,773
<filename>src/TriggerThreadProcs.c<gh_stars>1000+ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License //-------------------------------------------------------------------- // // thread processes // //-------------------------------------------------------------------- #incl...
5,475
7,482
<reponame>Davidfind/rt-thread /***************************************************************************//** * @file * @brief General Purpose IO (GPIO) peripheral API * devices. * @author Energy Micro AS * @version 3.0.0 ******************************************************************************* * @secti...
4,771
307
<filename>classloader-leak-prevention/classloader-leak-prevention-core/src/test/java/se/jiderhamn/classloader/leak/prevention/cleanup/IIOServiceProviderCleanUpTest.java package se.jiderhamn.classloader.leak.prevention.cleanup; import javax.imageio.ImageIO; import javax.swing.*; import org.junit.Before; /** * Test c...
307
982
/* * This file contains dump parsing logic * * Copyright (c) 2008-2017 Red Hat, Inc. * * 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 * n...
14,124
317
<reponame>dinisAbranches/nwchem<filename>src/tce/ccc.py<gh_stars>100-1000 # Ground-state coupled-cluster ansatz generator for OCE # (c) All rights reserved by Battelle & Pacific Northwest Nat'l Lab (2002) from tkinter import * import tkinter.messagebox import tkinter.simpledialog import tkinter.filedialog #import tkMe...
26,500
997
<gh_stars>100-1000 #include "inner.h" /* * Encoding/decoding of keys and signatures. * * ==========================(LICENSE BEGIN)============================ * * Copyright (c) 2017-2019 Falcon Project * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and asso...
7,317
416
<reponame>Zi0P4tch0/sdks // // VNGeometryUtils.h // Vision // // Copyright © 2020 Apple Inc. All rights reserved. // #import <Foundation/Foundation.h> #import <CoreGraphics/CoreGraphics.h> #import <simd/simd.h> #import <Vision/VNDefines.h> #import <Vision/VNTypes.h> #import <Vision/VNGeometry.h> NS_ASSUME_NONNUL...
1,560
4,606
<filename>examples/docs_snippets_crag/docs_snippets_crag/guides/dagster/graph_job_op/op_multi_out.py from typing import Tuple from dagster import In, Out, op @op( ins={"arg1": In(metadata={"a": "b"})}, out={"out1": Out(metadata={"c": "d"}), "out2": Out(metadata={"e": "f"})}, ) def do_something(arg1: str) -> ...
164
357
from cifar_configs import * from imagenet_configs import * from config_factory import get_config, get_config_from_json
37
2,587
package cn.hikyson.godeye.core.internal.modules.crash; import androidx.annotation.Keep; import java.io.Serializable; @Keep public class CrashConfig implements Serializable { public boolean immediate = false; public CrashConfig() { } public CrashConfig(boolean immediate) { this.immediate = ...
217
412
{ "json-ui": true, "trace": true, "classpath": ".", "java-max-vla-length": 192, "java-unwind-enum-static": true, "max-nondet-string-length": 100, "depth": false, "java-assume-inputs-non-null": true, "max-nondet-array-length": 10, "max-nondet-string-length": 10, "java-max-vla...
195
5,168
<reponame>Olalaye/MegEngine<filename>src/core/impl/comp_node/cambricon/comp_node.cpp /** * \file src/core/impl/comp_node/cambricon/comp_node.cpp * MegEngine is Licensed under the Apache License, Version 2.0 (the "License") * * Copyright (c) 2014-2021 Megvii Inc. All rights reserved. * * Unless required by applica...
10,885
386
<reponame>ccoderJava/bus /********************************************************************************* * * * The MIT License (MIT) * * ...
6,384
416
<filename>sfm-test/src/main/java/org/simpleflatmapper/test/beans/DbArrayOfString.java<gh_stars>100-1000 package org.simpleflatmapper.test.beans; public class DbArrayOfString { private int id; private String[] objects; public int getId() { return id; } public void setId(int id) { this.id = id; } public St...
164
505
<filename>cppForSwig/ScriptRecipient.h //////////////////////////////////////////////////////////////////////////////// // // // Copyright (C) 2016, goatpig // // Distributed under the MIT license ...
3,449
3,508
<gh_stars>1000+ package com.fishercoder.solutions; import java.util.ArrayList; import java.util.List; import java.util.TreeMap; public class _1862 { public static class Solution1 { /** * TODO: this results in TLE, fix it. */ public int sumOfFlooredPairs(int[] nums) { ...
500
346
bool_one = False or not True and True bool_two = False and not True or True bool_three = True and not (False or False) bool_four = not not True or False and not True bool_five = False or not (True and True)
65
1,175
<reponame>amoniaka-knabino/Crypton from sage.all import * from Crypto.Util.number import * def func_f(X_i, P, Q, E): """ To calculate X_(i+1) = f(X_i) :parameters: X_i : sage.schemes.elliptic_curves.ell_point.EllipticCurvePoint_finite_field X_i = (a_i * P) + (b_i * Q) ...
2,736
892
<filename>advisories/unreviewed/2022/05/GHSA-gg9m-7hf2-hmp9/GHSA-gg9m-7hf2-hmp9.json { "schema_version": "1.2.0", "id": "GHSA-gg9m-7hf2-hmp9", "modified": "2022-05-12T00:01:50Z", "published": "2022-05-12T00:01:50Z", "aliases": [ "CVE-2022-29898" ], "details": "On various RAD-ISM-900-EN-* devices by PH...
498
14,668
<filename>components/sync/trusted_vault/trusted_vault_connection.cc // Copyright 2020 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 "components/sync/trusted_vault/trusted_vault_connection.h" namespace syncer ...
258
2,206
/* * * Copyright (c) 2006-2020, Speedment, 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 * * Unless requi...
9,428
831
/* * Copyright (C) 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 app...
1,273
575
<reponame>sarang-apps/darshan_browser // 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 "third_party/blink/renderer/bindings/core/v8/script_iterator.h" #include "third_party/blink/renderer/bindi...
1,525
487
<gh_stars>100-1000 #include <stdint.h> /* * This file implements sample C extern function. It contains definition of the following C extern function: * * extern bit<16> compute_hash(in <bit<32> srcAddr, in bit<32> dstAddr) * */ struct data { uint32_t ipSrcAddr; uint32_t ipDstAddr; }; /** * This is really simpl...
356
1,374
<gh_stars>1000+ package def.dom; public class SVGPathSegList extends def.js.Object { public double numberOfItems; native public SVGPathSeg appendItem(SVGPathSeg newItem); native public void clear(); native public SVGPathSeg getItem(double index); native public SVGPathSeg initialize(SVGPathSeg newIte...
184
360
<filename>src/common/interfaces/libpq/client_logic_processor/stmt_processor.cpp /* * Copyright (c) 2020 Huawei Technologies Co.,Ltd. * * openGauss is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * *...
46,936
392
/* * Copyright 1997-2021 Optimatika * * 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, publish...
2,927
7,886
<reponame>ishaanthakur/litho /* * Copyright (c) Meta Platforms, Inc. and 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 ...
698
4,879
#pragma once #include <cstdint> #include <vector> namespace dp { class IndexStorage { public: IndexStorage(); explicit IndexStorage(std::vector<uint32_t> && initial); uint32_t Size() const; void Resize(uint32_t size); void * GetRaw(uint32_t offsetInElements = 0); void const * GetRawConst() const; sta...
189
2,728
<gh_stars>1000+ # ------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # ---------------------------------------------------------------------...
1,793
732
/* Copyright 2014 Adobe Systems Incorporated (http://www.adobe.com/). All Rights Reserved. This software is licensed as OpenSource, under the Apache License, Version 2.0. This license is available at: http://opensource.org/licenses/Apache-2.0. */ "/OtherSubrs[systemdict/internaldict known{1183615869 systemdict/i...
2,329
533
<reponame>coomar2841/image-chooser-library package com.kbeanie.imagechooser.helpers; import android.database.Cursor; import android.graphics.Bitmap; import android.net.Uri; import android.os.ParcelFileDescriptor; import android.util.Log; import com.kbeanie.imagechooser.exceptions.ChooserException; import java.io.Byt...
1,317
14,668
// Copyright 2019 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/chrome_cleaner/os/secure_dll_loading.h" #include <windows.h> #include <memory> #include <set> #include <string> #include <vector> #inc...
2,437
346
<reponame>FluffyQuack/ja2-stracciatella #include "Campaign_Init.h" #include "Overhead.h" #include "FileMan.h" #include "Creature_Spreading.h" #include "Campaign_Types.h" #include "Queen_Command.h" #include "Strategic_Movement.h" #include "Game_Event_Hook.h" #include "GameSettings.h" #include "Random.h" #include "Messag...
12,869
713
package org.infinispan.server.hotrod.configuration; import static java.util.Arrays.stream; /** * @since 10.0 */ public enum Strength { LOW("low"), MEDIUM("medium"), HIGH("high"); private final String str; Strength(String str) { this.str = str; } @Override public String toString() { ...
205
8,805
// Copyright (C) 2009-2012 <NAME> // Distributed under the Boost Software License, Version 1.0 // (see accompanying file LICENSE_1_0.txt or a copy at // http://www.boost.org/LICENSE_1_0.txt) // Home at http://www.boost.org/libs/functional/overloaded_function #ifndef BOOST_FUNCTIONAL_OVERLOADED_FUNCTION_CONFIG_...
609
416
<reponame>EMinsight/Fast-BVH<filename>benchmark/main.cpp #include <FastBVH.h> #include <algorithm> #include <vector> #include <sstream> #include <cstdio> #include <cstdlib> #include "Face.h" #include "FaceBoxConverter.h" #include "FaceIntersector.h" #include "Scheduler.h" #include "../examples/Stopwatch.h" #include...
1,906
2,048
// Copyright (c) 2017-2021, University of Cincinnati, developed by <NAME> // under NSF AWARD 1414736 and by the respective contributors. // All rights reserved. // // SPDX-License-Identifier: BSD-3-Clause #include <CLI/CLI.hpp> #include <algorithm> #include <iostream> #include <tuple> #include <vector> int main(int a...
617
432
<gh_stars>100-1000 /* * Copyright (C) 2015 <NAME> for GravityBox Project (C3C076@xda) * 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 ...
2,424
663
/* * Copyright 2016-2017 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 ...
448
584
// // bitfield.h // AppleIntelWifiAdapter // // Created by qcwap on 2020/1/5. // Copyright © 2020 钟先耀. All rights reserved. // #ifndef bitfield_h #define bitfield_h #include <libkern/OSTypes.h> #include <libkern/OSAtomic.h> #define BITS_PER_LONG 64 #define BITS_PER_LONG_LONG 64 #define BIT(nr) (1UL ...
1,770
1,194
<reponame>MFAshby/hapi-fhir<filename>hapi-fhir-server/src/main/java/ca/uhn/fhir/rest/server/interceptor/s13n/standardizers/Range.java package ca.uhn.fhir.rest.server.interceptor.s13n.standardizers; /*- * #%L * HAPI FHIR - Server Framework * %% * Copyright (C) 2014 - 2022 Smile CDR, Inc. * %% * Licensed under the...
583
2,828
<reponame>tamaashu/curator<filename>curator-recipes/src/test/java/org/apache/curator/framework/recipes/locks/SemaphoreClient.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 * ...
1,996
14,668
{"tests": {"power.idle_platform": {"IdleStory_60s": {"actual": "PASS", "artifacts": {"logs": ["https://console.developers.google.com/m/cloudstorage/b/chrome-telemetry-output/o/64fb2894-80ff-11e8-bfca-787b8ab93ad2"]}, "is_unexpected": false, "times": [66.31182289123535], "time": 66.31182289123535, "expected": "PASS"}, "...
403
692
<filename>SingularityBase/src/main/java/com/hubspot/deploy/Artifact.java package com.hubspot.deploy; import com.fasterxml.jackson.annotation.JsonIgnore; import io.swagger.v3.oas.annotations.media.Schema; import java.util.Objects; import java.util.Optional; @Schema(description = "Represents an artifact for a task") pu...
905
405
<filename>jeewx/src/main/java/org/jeecgframework/web/cgform/controller/build/CgFormBuildController.java package org.jeecgframework.web.cgform.controller.build; import java.io.BufferedWriter; import java.io.IOException; import java.io.StringWriter; import java.util.ArrayList; import java.util.HashMap; import java.util....
4,828
1,685
# Copyright (c) 2012, GPy authors (see AUTHORS.txt). # Licensed under the BSD 3-clause license (see LICENSE.txt) from .kern import Kern import numpy as np from ...core.parameterization import Param from paramz.transformations import Logexp from paramz.caching import Cache_this class Static(Kern): def __init__(se...
5,005
6,098
<gh_stars>1000+ package hex.anovaglm; import hex.DataInfo; import hex.ModelBuilder; import hex.ModelBuilderHelper; import hex.ModelCategory; import hex.glm.GLM; import hex.glm.GLMModel; import water.DKV; import water.Key; import water.Scope; import water.exceptions.H2OModelBuilderIllegalArgumentException; import water...
3,533
7,073
<filename>atest/testresources/testlibs/objecttoreturn.py class ObjectToReturn: def __init__(self, name): self.name = name def __str__(self): return self.name def exception(self, name, msg=""): try: exception = getattr(__builtins__, name) except AttributeError: ...
183
1,227
/* * Copyright 2018 <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 wr...
385
372
<filename>lwbase/include/lw/rbtree.h /* 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, ...
1,535
1,852
<gh_stars>1000+ // // CPDocument.h // ReferencedProject // // Created by <NAME> on 22/10/12. // Copyright (c) 2012 CocoaPods. All rights reserved. // #import <Cocoa/Cocoa.h> @interface CPDocument : NSPersistentDocument @end
93
5,169
<reponame>Gantios/Specs { "name": "D2PDatePicker", "version": "0.1.1", "summary": "Elegant and Easy-to-Use iOS Swift Date Picker", "description": "Elegant and Easy-to-Use iOS Swift Date Picker made with love by DI2PRA", "homepage": "https://github.com/di2pra/D2PDatePicker", "license": { "type": "MIT", ...
353
945
<gh_stars>100-1000 #include <vnl/io/vnl_io_vector.hxx> VNL_IO_VECTOR_INSTANTIATE(int);
45
335
package moze_intel.projecte.rendering; import net.minecraft.client.renderer.RenderState; import net.minecraft.client.renderer.RenderType; import net.minecraft.client.renderer.vertex.DefaultVertexFormats; import net.minecraft.client.renderer.vertex.VertexFormat; import net.minecraft.util.ResourceLocation; import org.lw...
769
364
<filename>doc/quickbook/oglplus/quickref/client/scissor_test.hpp /* * Copyright 2014-2015 <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) */ //[oglplus_client_ScissorTestState namespace client { class...
231
826
<reponame>julescmay/LuxCore<filename>deps/opencolorio-2.0.0/src/iccProfileReader.h /* The ICC Software License, Version 0.2 Copyright (c) 2003-2010 The International Color Consortium. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the...
12,244
14,793
package me.chanjar.weixin.mp.bean.card.enums; /** * 商户提供服务类型 */ public enum BusinessServiceType { BIZ_SERVICE_DELIVER("外卖服务"), BIZ_SERVICE_FREE_PARK("停车位"), BIZ_SERVICE_WITH_PET("可带宠物"), BIZ_SERVICE_FREE_WIFI("可带宠物"); private String description; BusinessServiceType(String description) { this.descri...
192
3,539
/* * If you are including the plugin into your code using static build, you * can simplify it by just including this file, which will include all the * related code in one step without you having to get involved in the detail. */ #define LWS_PLUGIN_STATIC #include "../crypto/chacha.c" #include "../crypto/ed25519....
203
663
# (C) Datadog, Inc. 2018-present # All rights reserved # Licensed under a 3-clause BSD style license (see LICENSE) from datadog_checks.base import PDHBaseCheck from .metrics import DEFAULT_COUNTERS class HypervCheck(PDHBaseCheck): def __init__(self, name, init_config, instances=None): super(HypervCheck, ...
139