max_stars_count
int64
301
224k
text
stringlengths
6
1.05M
token_count
int64
3
727k
1,444
<reponame>GabrielSturtevant/mage package mage.cards.a; import java.util.UUID; import mage.abilities.Ability; import mage.abilities.common.SimpleActivatedAbility; import mage.abilities.costs.common.TapSourceCost; import mage.abilities.costs.mana.ManaCostsImpl; import mage.abilities.effects.common.CreateTokenEffect; im...
527
28,992
""" Implementation of the adapter for the native cheat.sh cheat sheets repository, cheat.sheets. The cheat sheets repository is hierarchically structured: cheat sheets covering programming languages are are located in subdirectories. """ # pylint: disable=relative-import import os import glob from .git_adapter impo...
1,684
2,151
// Copyright 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 MEDIA_BASE_KEY_SYSTEMS_H_ #define MEDIA_BASE_KEY_SYSTEMS_H_ #include <stdint.h> #include <string> #include <vector> #include "media/base/decryp...
1,298
1,443
{ "copyright": "<NAME>, http://polossk.com", "url": "http://polossk.com", "email": "<EMAIL>", "theme": "white cherry" }
54
1,305
/* * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #pragma once #include <math.h> #include "YGEnums.h" #include "YGMacros.h" YG_EXTERN_C_BEGIN // Not defined in MSVC++ #ifndef NAN...
648
315
/** Copyright 2019 LLVM project Copyright 2019-2021 <NAME> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by ap...
3,106
391
/* * Copyright 2019 LinkedIn Corporation * All Rights Reserved. * * Licensed under the BSD 2-Clause License (the "License"). See License in the project root for * license information. */ package com.linkedin.android.litr.filter.video.gl; import android.graphics.Bitmap; import androidx.annotation.Nullable; /** ...
303
435
{ "alias": "video/2357/whats-love-got-to-do-with-it-love-for-techie", "category": "ChiPy", "copyright_text": "CC BY", "description": "", "duration": 15, "id": 2357, "language": "eng", "quality_notes": "", "recorded": "2013-09-12", "slug": "whats-love-got-to-do-with-it-love-for-techie", "speakers":...
520
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 <cmath> #include <functional> #include <initializer_list> #include <memory> #include <frc/Timer.h> #include <f...
8,548
380
<gh_stars>100-1000 package org.ernest.applications.trampoline.entities; public class GitCredentials { private HttpsSettings httpsSettings; private SshSettings sshSettings; public GitCredentials() { } public GitCredentials(String username, String pass, String sshKeyLocation, String sshKeyPassword...
939
1,444
<reponame>nnadams/mage package mage.cards.r; import mage.MageObjectReference; import mage.abilities.Ability; import mage.abilities.DelayedTriggeredAbility; import mage.abilities.effects.Effect; import mage.abilities.effects.OneShotEffect; import mage.abilities.effects.common.search.SearchLibraryPutInPlayEffect; import...
1,587
542
package com.intsmaze.flink.groovy; import groovy.lang.Binding; import groovy.lang.Script; import org.apache.commons.lang3.tuple.Pair; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import java.util.Iterator; import java.util.Map.Entry; import java.util.concurrent.ConcurrentMap; public class GroovyRuleCalc ...
1,235
2,151
// -*- C++ -*- //===---------------------------- ctype.h ---------------------------------===// // // The LLVM Compiler Infrastructure // // This file is dual licensed under the MIT and the University of Illinois Open // Source Licenses. See LICENSE.TXT for details. // //===-------------------------...
437
453
/* Copyright (c) 2020 <NAME> Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTAB...
428
426
_base_ = './reppoints_moment_r50_fpn_gn-neck+head_1x_coco.py' lr_config = dict(step=[16, 22]) total_epochs = 24
56
2,611
# Lint as: python3 # 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.apache.org/licenses/LICENSE-2.0 # # Unless ...
2,834
852
<reponame>ckamtsikis/cmssw import FWCore.ParameterSet.Config as cms def customise(process): # process.dtDataIntegrityUnpacker.inputLabel = cms.untracked.InputTag('rawDataCollector') # process.DQMOfflineCosmics.remove(process.hcalOfflineDQMSource) # process.load("FWCore.Modules.printContent_cfi") # proc...
768
335
{ "word": "Lithosphere", "definitions": [ "The rigid outer part of the earth, consisting of the crust and upper mantle." ], "parts-of-speech": "Noun" }
69
778
<reponame>Panquesito7/compute-runtime<filename>opencl/source/execution_environment/cl_execution_environment.h /* * Copyright (C) 2020-2021 Intel Corporation * * SPDX-License-Identifier: MIT * */ #pragma once #include "shared/source/execution_environment/execution_environment.h" #include "built_in_ops.h" #includ...
343
2,151
<filename>chrome/browser/ui/views/constrained_web_dialog_delegate_views.cc // 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 "chrome/browser/ui/webui/constrained_web_dialog_delegate_base.h" ...
5,429
1,330
<reponame>michaelwalkerfl/facebook-sdk import facebook from . import FacebookTestCase class FacebookSearchTestCase(FacebookTestCase): def setUp(self): """Create GraphAPI object that can search (i.e. has user token).""" super(FacebookSearchTestCase, self).setUp() # Create an app access toke...
473
468
{ "name": "readr", "author": "rstudio", "license": "CC0", "raster": "http://hexb.in/hexagons/readr.png", "vector": "http://hexb.in/vector/readr.svg", "description": "readr: Read Tabular Data.", "order_online_url": "https://www.stickermule.com/marketplace/" }
111
344
/********************************************************************** Copyright (c) 2017 Advanced Micro Devices, Inc. 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 Software wi...
863
488
<gh_stars>100-1000 /* -*- C++ -*- */ // vim: syntax=cpp #ifndef H_PAG_DFI_COMMENT_ANNOTATOR #define H_PAG_DFI_COMMENT_ANNOTATOR template <typename DFI_STORE_TYPE> class PagDfiCommentAnnotator : public DfiCommentAnnotator<DFI_STORE_TYPE> { public: PagDfiCommentAnnotator(DFI_STORE_TYPE store) : DfiCommentAnno...
303
372
/* * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software distributed under t...
960
5,169
{ "name": "JKLog", "version": "0.1.0", "summary": "JKLog is a tool for ios developer to check the logs in the developing app.", "description": "JKLog is a tool for ios developer to check the logs in the developing app.", "homepage": "https://github.com/xindizhiyin2014/JKLog", "license": { "type": "MIT",...
248
526
/* SPDX-License-Identifier: Apache-2.0 */ /* Copyright Contributors to the ODPi Egeria project. */ package org.odpi.openmetadata.repositoryservices.connectors.stores.archivestore.properties; import com.fasterxml.jackson.annotation.JsonAutoDetect; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com...
2,648
708
{ "navigationBarTitleText": "点选验证", "usingComponents": { "verify": "/pages/verify/verify" } }
52
903
/* * 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 ...
943
734
<reponame>adamnemecek/tracktion_engine<gh_stars>100-1000 /* ,--. ,--. ,--. ,--. ,-' '-.,--.--.,--,--.,---.| |,-.,-' '-.`--' ,---. ,--,--, Copyright 2018 '-. .-'| .--' ,-. | .--'| /'-. .-',--.| .-. || \ Tracktion Software | | | | \ '-' \ `--.| \ \ | | ...
12,194
886
<gh_stars>100-1000 /* * Copyright 2019 flow.ci * * 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...
482
1,738
/* * 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 provided, by the license below or t...
1,231
322
#ifndef WOLFSSL_ROWLEY_HW_H #define WOLFSSL_ROWLEY_HW_H #include <__cross_studio_io.h> #include <__libc.h> #include <stdint.h> // Generic HW API void hw_init(void); uint32_t hw_get_time_sec(void); uint32_t hw_get_time_msec(void); void hw_uart_printchar(int c); void hw_watchdog_disable(void); uint32_t hw_rand(void);...
191
623
// Copyright (C) 2019 The Android Open Source Project // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable ...
491
619
/* * Author: <NAME> <<EMAIL>> * Copyright (c) 2014 Intel Corporation. * * This program and the accompanying materials are made available under the * terms of the The MIT License which is available at * https://opensource.org/licenses/MIT. * * SPDX-License-Identifier: MIT */ #pragma once #include <string> #inc...
476
348
<reponame>chamberone/Leaflet.PixiOverlay<gh_stars>100-1000 {"nom":"Chambley-Bussières","circ":"6ème circonscription","dpt":"Meurthe-et-Moselle","inscrits":453,"abs":259,"votants":194,"blancs":32,"nuls":13,"exp":149,"res":[{"nuance":"FN","nom":"M. <NAME>","voix":87},{"nuance":"FI","nom":"Mme <NAME>","voix":62}]}
133
421
<filename>src/log4qt/level.h /****************************************************************************** * * This file is part of Log4Qt library. * * Copyright (C) 2007 - 2020 Log4Qt contributors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in complia...
1,387
338
<filename>include/hadouken/scripting/modules/bittorrent/feed_status_wrapper.hpp #ifndef HADOUKEN_SCRIPTING_MODULES_BITTORRENT_FEEDSTATUSWRAPPER_HPP #define HADOUKEN_SCRIPTING_MODULES_BITTORRENT_FEEDSTATUSWRAPPER_HPP namespace libtorrent { struct feed_status; } namespace hadouken { namespace scriptin...
640
2,338
//===- unittests/StaticAnalyzer/Reusables.h -------------------------------===// // // 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 // //===---------------------------...
1,865
1,194
<filename>hapi-fhir-server-mdm/src/main/java/ca/uhn/fhir/mdm/rules/json/MdmSimilarityJson.java package ca.uhn.fhir.mdm.rules.json; /*- * #%L * HAPI FHIR - Master Data Management * %% * Copyright (C) 2014 - 2022 Smile CDR, Inc. * %% * Licensed under the Apache License, Version 2.0 (the "License"); * you may not ...
784
118,175
/* * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #include <memory> #import <React/RCTBridgeDelegate.h> namespace facebook { namespace react { class JSExecutorFactory; } } // T...
242
2,133
<reponame>uav-operation-system/qgroundcontrol /**************************************************************************** * * (c) 2009-2020 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org> * * QGroundControl is licensed according to the terms in the file * COPYING.md in the root of the source code director...
1,272
1,178
# Copyright 2020 Makani Technologies LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
6,442
742
package org.support.project.knowledge.dao.gen; import java.util.List; import java.sql.Timestamp; import org.support.project.knowledge.entity.TemplateMastersEntity; import org.support.project.ormapping.dao.AbstractDao; import org.support.project.ormapping.exception.ORMappingException; import org.support.project.orma...
6,575
1,041
package org.tests.basic; import io.ebean.BaseTestCase; import io.ebean.DB; import org.junit.jupiter.api.Test; import org.tests.model.basic.EBasicVer; import org.tests.model.basic.UTMaster; import javax.persistence.OptimisticLockException; import java.sql.Timestamp; import static org.assertj.core.api.Assertions.asser...
1,036
11,750
import copy from numbers import Number as Num from unittest import TestCase import plotly.io as pio class TestCaseNoTemplate(TestCase): def setUp(self): pio.templates.default = None def tearDown(self): pio.templates.default = "plotly" def compare_dict(dict1, dict2, equivalent=True, msg="", ...
1,435
776
package ghissues; import act.annotations.DownloadFilename; import act.app.ActionContext; import act.controller.annotation.UrlContext; import act.job.OnAppStart; import act.util.Global; import org.osgl.mvc.annotation.GetAction; import org.osgl.util.S; import java.util.ArrayList; import java.util.List; @UrlContext("82...
372
1,510
[{ "ugly1": "O'Malley", "ugly2": "<NAME>'s best speech started with: \"Four score and seven years ago..." }]
43
3,366
<reponame>silence0201/C-Plus-Study #include <cassert> #include <fstream> #include "ex17_04_findBook.h" #include "ex17_05_findBook.h" #include "ex17_06_findBook.h" vector<Sales_data> build_store(const string& s) { vector<Sales_data> ret; std::ifstream is(s); Sales_data item; while (is >> item) ret.push...
716
305
<reponame>AlphaSoftLLC/godot-cpp<gh_stars>100-1000 /*************************************************************************/ /* cowdata.hpp */ /*************************************************************************/ /* This file is par...
4,363
482
<reponame>lifecontrol/cattle package io.cattle.platform.core.dao.impl; import static io.cattle.platform.core.model.tables.HostLabelMapTable.*; import static io.cattle.platform.core.model.tables.LabelTable.*; import io.cattle.platform.core.dao.LabelsDao; import io.cattle.platform.core.model.Label; import io.cattle.pla...
478
705
package week05_part01.solution.deepViaConstructor; public class Customer { private static int count = 1000; private String name; private int id; private double fee; /* * Gives the new customer an id * Updates the customer count. * Note: We only want updated count for new customers * and *not* clon...
440
1,235
<filename>windows/src/win32-component/win32-timers-implementation.cpp<gh_stars>1000+ #include "stdafx.h" #include "holojs/private/error-handling.h" #include "win32-timers-implementation.h" #include <ppl.h> using namespace HoloJs; using namespace concurrency; using namespace std; void CALLBACK Timerproc(HWND Arg1, UIN...
2,063
2,338
<reponame>mkinsner/llvm // RUN: %clang_cc1 -fsyntax-only -Wdocumentation -Wmissing-prototypes -verify %s // RUN: %clang_cc1 -fsyntax-only -Wdocumentation -Wmissing-prototypes -fdiagnostics-parseable-fixits %s 2>&1 | FileCheck %s int f(); // expected-note{{this declaration is not a prototype; add parameter declarations...
1,678
3,212
/* * 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 ...
35,445
13,889
""" Logger tests ============ """ import pytest import pathlib import time @pytest.fixture def file_handler(): # restores handler to original state from kivy.config import Config log_dir = Config.get("kivy", "log_dir") log_maxfiles = Config.get("kivy", "log_maxfiles") try: yield None ...
672
348
<reponame>chamberone/Leaflet.PixiOverlay {"nom":"Villemareuil","circ":"5ème circonscription","dpt":"Seine-et-Marne","inscrits":273,"abs":150,"votants":123,"blancs":6,"nuls":3,"exp":114,"res":[{"nuance":"LR","nom":"<NAME>","voix":72},{"nuance":"FN","nom":"<NAME>","voix":42}]}
114
4,071
<reponame>Ru-Xiang/x-deeplearning import numpy as np a = np.ones([2, 3, 2], np.float32) a = [[[0.1, 0.2], [-0.3, 0.4], [0.5, 0.6]], [[0.7, 0.8], [0.9, 1.0], [1.1, 1.2]]] b = np.ones([2], np.float32) b = [0.2, 0.3] print np.multiply(a, b)
169
348
<gh_stars>100-1000 {"nom":"Versonnex","circ":"3ème circonscription","dpt":"Ain","inscrits":1217,"abs":819,"votants":398,"blancs":12,"nuls":7,"exp":379,"res":[{"nuance":"REM","nom":"M<NAME>","voix":267},{"nuance":"LR","nom":"Mme <NAME>","voix":112}]}
102
5,852
<reponame>autoantwort/proxygen /* * Copyright (c) Facebook, Inc. and its affiliates. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ #include <proxygen/lib/http/codec/HTTPParallelCodec.h> #include <algo...
791
6,181
/****************************************************************************** * The MIT License (MIT) * * Copyright (c) 2019-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 Soft...
941
1,285
<gh_stars>1000+ package net.minestom.server.listener.manager; import net.minestom.server.entity.Player; import net.minestom.server.network.ConnectionManager; import net.minestom.server.network.packet.server.ServerPacket; import org.jetbrains.annotations.NotNull; import java.util.Collection; /** * Interface used to ...
281
2,150
package org.javaee7.servlet.servlet_libs.basic.servlet; import java.io.IOException; import javax.servlet.ServletException; import javax.servlet.annotation.WebServlet; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; /** * @author <NA...
223
398
<gh_stars>100-1000 package io.joyrpc.codec.serialization.hessian2; /*- * #%L * joyrpc * %% * Copyright (C) 2019 joyrpc.io * %% * 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,020
605
@import weird_objc;
8
317
<filename>src/ballistica/dynamics/material/material_action.h<gh_stars>100-1000 // Released under the MIT License. See LICENSE for details. #ifndef BALLISTICA_DYNAMICS_MATERIAL_MATERIAL_ACTION_H_ #define BALLISTICA_DYNAMICS_MATERIAL_MATERIAL_ACTION_H_ #include "ballistica/core/object.h" namespace ballistica { class ...
615
1,178
<filename>tests/test_njobs.py import unittest import pandas as pd import numpy as np from sklearn.ensemble import RandomForestClassifier from sklearn.metrics import roc_auc_score from explainerdashboard.explainers import ClassifierExplainer from explainerdashboard.datasets import titanic_survive, titanic_names cla...
589
854
<reponame>timxor/leetcode-journal __________________________________________________________________________________________________ sample 28 ms submission class Solution { bool poss(vector<int>& w, int D,int x) { int n=w.size(); int sum=0;int ans=1; for(int i=0;i<n;i++) { if(w[i]>x)retur...
1,190
658
<filename>src/backend/api/api_v1/api.py from fastapi import APIRouter from fastapi import Security from api.api_v1.endpoints import config from api.api_v1.endpoints import domains from api.api_v1.endpoints import login from api.api_v1.endpoints import modules from api.api_v1.endpoints import users from api.api_v1.endp...
363
1,131
<gh_stars>1000+ # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"...
7,537
1,504
from .common import BaseController from .mpapi.mp import utils as mpUtils class Utils(BaseController): def create_qrcode(self, sceneData, expire=2592000): return self.determine_wrapper(mpUtils.create_qrcode, None, sceneData, expire) def download_qrcode(self, ticket): return ...
231
575
# 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. from base_generator import Color, Modes, BaseGenerator, VariableType import collections class CSSStyleGenerator(BaseGenerator): '''Generator for CSS Va...
1,925
32,544
<gh_stars>1000+ package com.baeldung.arangodb.model; import com.arangodb.springframework.annotation.ArangoId; import com.arangodb.springframework.annotation.Document; import com.arangodb.springframework.annotation.Relations; import org.springframework.data.annotation.Id; import java.time.ZonedDateTime; import java.ut...
722
335
<reponame>Safal08/Hacktoberfest-1 { "word": "Pageant", "definitions": [ "A public entertainment consisting of a procession of people in elaborate, colourful costumes, or an outdoor performance of a historical scene", "Something regarded as a series of interesting and varied events", "A s...
150
340
# Copyright (c) 2018, 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 required by appl...
2,502
605
<reponame>LaudateCorpus1/llvm-project // RUN: %clangxx_msan -O0 %s -o %t && %run %t // FIXME: Something changed in glibc 2.34, maybe earier. // UNSUPPORTED: glibc-2.34 #include <sanitizer/msan_interface.h> volatile int global; static void pre_ctor() { volatile int local; global = 42; local = 42; } __attribute...
174
489
<gh_stars>100-1000 #!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import os import numpy as np import pytest import habitat from habitat.utils.test_utils import samp...
1,580
777
// 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 <stddef.h> #include "base/numerics/safe_conversions.h" #include "base/optional.h" #include "media/filters/h264_parser.h" #include "ui/gfx/geomet...
982
1,483
<filename>lealone-test/src/test/java/org/lealone/test/orm/generated/Product.java package org.lealone.test.orm.generated; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import com.fasterxml.jackson.databind.annotation.JsonSerialize; import org.lealone.orm.Model; import org.lealone.orm.ModelDeserializ...
738
350
<filename>talkback/src/main/java/com/google/android/accessibility/talkback/UserInterface.java /* * Copyright (C) 2020 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * ht...
802
561
/* * Copyright 2020-present Ksyun * * 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...
961
6,304
<reponame>mohad12211/skia #if 0 // Disabled until updated to use current API. // Copyright 2019 Google LLC. // Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. #include "tools/fiddle/examples.h" // HASH=a5af182e793eed3f2bb3b0efc2cf4852 REG_FIDDLE(TextBlob_MakeFromString...
276
2,151
// Copyright 2018 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef ASH_IME_TEST_IME_CONTROLLER_CLIENT_H_ #define ASH_IME_TEST_IME_CONTROLLER_CLIENT_H_ #include "ash/public/interfaces/ime_controller.mojom.h" #incl...
566
445
<filename>build.linux64x64/third-party/alsa-lib-1.0.17a/test/code.c #include <stdlib.h> #include <stdio.h> #include <string.h> #include <unistd.h> #include <sched.h> #include <sys/time.h> #ifndef __builtin_expect #include <linux/compiler.h> #endif #define rdtscll(val) \ __asm__ __volatile__("rdtsc" : "=A" (val))...
4,197
653
<reponame>mkinsner/llvm //===-- os_util.cpp - OS utilities implementation---------------*- C++ -*--===// // // 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 // //===---...
3,654
543
<gh_stars>100-1000 /** * Copyright 2016 Twitter. 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 req...
640
5,964
<filename>experimental/PdfViewer/pdfparser/native/pdfapi/SkPdfType4ShadingDictionary_autogen.cpp /* * Copyright 2013 Google Inc. * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "SkPdfType4ShadingDictionary_autogen.h" #include "SkPdfNativeDoc.h" in...
942
2,151
// Copyright 2018 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef SERVICES_TRACING_TRACING_SERVICE_H_ #define SERVICES_TRACING_TRACING_SERVICE_H_ #include <memory> #include <string> #include "base/callback.h" #...
747
388
/* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). * Version 3.0.12 * * This file is not intended to be easily readable and contains a number of * coding conventions designed to improve portability and efficiency. D...
41,572
887
<gh_stars>100-1000 /* * Copyright (C) 2015 Open Source Robotics Foundation * * 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...
673
400
<gh_stars>100-1000 import torch import numpy as np from typing import Any from typing import Dict from typing import List from typing import Tuple from typing import Union from typing import Callable from typing import Optional arr_type = Union[np.ndarray, torch.Tensor] data_type = Optional[Union[np.ndarray, str]] ...
397
2,211
package com.egzosn.pay.wx.v3.bean.combine; import java.util.List; import java.util.Map; import com.alibaba.fastjson.JSONObject; import com.alibaba.fastjson.annotation.JSONField; import com.egzosn.pay.common.bean.PayMessage; import com.egzosn.pay.wx.v3.bean.order.SceneInfo; import com.egzosn.pay.wx.v3.bean.response.or...
1,225
348
package com.jstarcraft.rns.data.processor; import com.jstarcraft.ai.data.DataInstance; import com.jstarcraft.ai.data.processor.DataSorter; public class AllFeatureDataSorter implements DataSorter { @Override public int sort(DataInstance left, DataInstance right) { for (int dimension = 0, orde...
431
1,253
<reponame>zggs999/Arduino // // FILE: PulsePattern.cpp // AUTHOR: <NAME> at g<EMAIL> // VERSION: 0.1.4 // DATE: 2012-11-23 // PURPOSE: Arduino Library to generate repeating pulse patterns // // HISTORY: // 0.0.1 2012-11-23 initial version // 0.0.2 2012-11-23 adapted a static PPO // 0.0.3 2012-12-27 ...
1,420
2,059
<filename>src/wrapped/generated/wrappedxsltdefs.h /******************************************************************* * File automatically generated by rebuild_wrappers.py (v2.0.0.10) * *******************************************************************/ #ifndef __wrappedxsltDEFS_H_ #define __wrappedxsltDEFS_H_ #e...
95
777
<filename>chrome/browser/chromeos/login/ui/captive_portal_window_browsertest.cc<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 <memory> #include "base/command_line.h" #inclu...
2,494
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 ...
417
318
<gh_stars>100-1000 package org.apache.maven.surefire.api.booter; /* * 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 ...
486
13,585
<filename>mybatis-plus-core/src/test/java/com/baomidou/mybatisplus/core/toolkit/sql/SqlUtilsTest.java package com.baomidou.mybatisplus.core.toolkit.sql; import org.junit.jupiter.api.Test; import java.util.List; import static org.assertj.core.api.Assertions.assertThat; /** * @author miemie * @since 2020-11-19 */ ...
786
30,023
<reponame>MrDelik/core """Tests for the Elmax config flow.""" from unittest.mock import patch from elmax_api.exceptions import ElmaxBadLoginError, ElmaxBadPinError, ElmaxNetworkError from homeassistant import config_entries, data_entry_flow from homeassistant.components.elmax.const import ( CONF_ELMAX_PANEL_ID, ...
7,254