max_stars_count
int64
301
224k
text
stringlengths
6
1.05M
token_count
int64
3
727k
14,668
<filename>components/autofill_assistant/browser/service/cup.h<gh_stars>1000+ // Copyright 2021 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef COMPONENTS_AUTOFILL_ASSISTANT_BROWSER_SERVICE_CUP_H_ #define COMPONEN...
523
2,728
# ------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # -------------------------------------------------------------------------- """ FILE...
828
3,073
from apps.analyzer.models import Category, FeatureCategory from django.db.models.aggregates import Sum import math class Classifier: def __init__(self, user, feed, phrases): self.user = user self.feed = feed self.phrases = phrases def get_features(self, doc): found = {} ...
2,523
2,151
<reponame>kniefliu/WindowsSamples // // Copyright (c) 2002-2014 The ANGLE Project Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // // SurfaceImpl.cpp: Implementation of Surface stub method class #include "libANGLE/renderer/Surface...
231
1,561
<filename>tests/api/controllers/emitter_receiver_enable_disable/emitter_receiver_enable_disable.c /* * Description: Test Emitters and Receivers with mixed transmission type. * This file contains some tests of the emission/reception of data: * - disabled / ensabled receivers * ...
4,534
2,753
<reponame>ShankarNara/shogun import os import sys insertions=0 deletions=0 files=0 FROMVER="" if len(sys.argv)>1: FROMVER=sys.argv[1] TOVER="" if len(sys.argv)>2: TOVER=sys.argv[2] TMPNAME=os.tmpnam() VER="" if len(FROMVER)>0: VER=FROMVER+'..' if len(TOVER)>0: if len(VER)==0: VER='..' VER=VER+TOVER os.system('...
439
841
<filename>resteasy-core/src/main/java/org/jboss/resteasy/core/ResourceMethodInvoker.java package org.jboss.resteasy.core; import org.jboss.resteasy.annotations.Stream; import org.jboss.resteasy.core.interception.jaxrs.PostMatchContainerRequestContext; import org.jboss.resteasy.core.providerfactory.ResteasyProvider...
13,275
884
{ "manifestName": "SyncAgentCommon", "explanation": "CDM standard entities for 'SyncAgentCommon'", "entities": [ { "type": "LocalEntity", "entityName": "Contact", "entityPath": "Contact.1.0.cdm.json/Contact" }, { "type": "LocalEntity", "entityName": "AttributeValueMap", ...
480
1,909
package org.knowm.xchange.globitex.dto; import com.fasterxml.jackson.annotation.JsonProperty; import java.io.Serializable; import java.util.List; public class GlobitexErrors implements Serializable { @JsonProperty("errors") private final List<GlobitexError> errors; public GlobitexErrors(@JsonProperty("errors"...
197
787
class Solution { private: bool validSuffix(vector<int> &data, int &i, int cnt) { while (cnt && i < data.size() && (data[i] >> 6) == 2) ++i, --cnt; return cnt == 0; } public: bool validUtf8(vector<int>& data) { for (int i = 0; i < data.size(); ) { int n = data[i++]; ...
402
357
/* * 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 * * Unless required by ...
1,598
1,133
/* ------------------------------------------------------------------ */ /* Decimal Floating Point Abstraction Layer (DFPAL) */ /* dfpaltypes.h */ /* ------------------------------------------------------------------ */ /* (c) Copyright IBM Corpora...
1,735
1,909
<reponame>grmkris/XChange package org.knowm.xchange.btcmarkets; import org.knowm.xchange.Exchange; import org.knowm.xchange.ExchangeFactory; import org.knowm.xchange.ExchangeSpecification; import org.knowm.xchange.utils.AuthUtils; public class ExchangeUtils { public static Exchange createExchangeFromProperties() { ...
170
1,809
<gh_stars>1000+ package com.d_project.qrcode.web; import java.io.ByteArrayOutputStream; import java.io.IOException; import java.io.OutputStream; import java.util.HashMap; import java.util.Map; /** * GIFイメージ(B/W) * @author <NAME> */ class GIFImage { private int width; private int height; ...
3,454
1,043
<reponame>JeffMuchine/micro-server<filename>micro-application-register/src/test/java/com/oath/micro/server/application/registry/RegisterEntryTest.java package com.oath.micro.server.application.registry; import static junit.framework.TestCase.assertFalse; import static org.junit.Assert.assertTrue; import java.util.Dat...
1,026
3,655
<gh_stars>1000+ import paddlex as pdx train_analysis = pdx.datasets.analysis.Seg( data_dir='dataset/remote_sensing_seg', file_list='dataset/remote_sensing_seg/train.txt', label_list='dataset/remote_sensing_seg/labels.txt') train_analysis.analysis()
109
387
<filename>src/DlibDotNet.Native/dlib/svm/kernel/polynomial_kernel.h #ifndef _CPP_SVM_KERNEL_POLYNOMIAL_KERNEL_H_ #define _CPP_SVM_KERNEL_POLYNOMIAL_KERNEL_H_ #include "../../export.h" #include <dlib/svm/kernel.h> #include "../../template.h" #include "../../shared.h" using namespace dlib; #pragma region tem...
1,185
1,921
import random from copy import deepcopy class Node: def __init__(self, val): self.val = val self.prev = None self.next = None def __hash__(self): return hash(self.val) def __eq__(self, other): return self.val == other.val def __repr__(self): return st...
843
1,562
<gh_stars>1000+ // Copyright 2019 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law o...
1,209
1,470
# -*- coding: utf-8 -*- # Generated by Django 1.10.2 on 2016-12-24 09:23 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [("challenges", "0004_challenge_is_disabled")] operations = [ ...
1,203
3,600
<reponame>duxinyu03/moco<filename>moco-core/src/main/java/com/github/dreamhead/moco/RestServer.java<gh_stars>1000+ package com.github.dreamhead.moco; public interface RestServer extends HttpServer { void resource(String name, RestSetting setting, RestSetting... settings); }
93
14,668
// Copyright (c) 2010 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef BASE_THIRD_PARTY_SYMBOLIZE_CONFIG_H_ #define BASE_THIRD_PARTY_SYMBOLIZE_CONFIG_H_ #define GOOGLE_GLOG_DLL_DECL #define GOOGLE_NAMESPACE googl...
180
841
""" This is the TestRunner module which executes the test programs. """ import os import sys import time import binary_runner import console from blade_util import environ_add_path from blade_util import md5sum from test_scheduler import TestScheduler def _get_ignore_set(): """ """ ignore_env_vars = [ ...
7,389
1,042
{ "name": "@doabit/semantic-ui-sass", "version": "2.4.5", "description": "semantic-ui-sass npm package", "main": "src/semantic-ui.js", "files": [ "src/**/*" ], "scripts": { "prepublishOnly": "rm -rf src && yarn copy:js && yarn copy:css && yarn copy:assets && node ./script.js", "copy:js": "cp -...
403
515
package com.bj58.argo.thirdparty.jetty; /* ------------------------------------------------------------ */ /** * UTF-8 StringBuffer. * * This class wraps a standard {@link java.lang.StringBuffer} and provides methods to append * UTF-8 encoded bytes, that are converted into characters. * * This class is stateful a...
492
2,177
# -*- coding: utf-8 -*- import re from pprint import pprint import sys def parse(text): tag = None task = text m = re.match(r'#(?P<tag>[^ ]+)$', text, re.IGNORECASE) if m is not None: tag = m.group('tag') task = "" else: m = re.match(r'#(?P<tag>[^ ]+?) ', text, re.IGNORECASE) if m is not None: tag = ...
341
521
/* ERASE for dynamic arrays of objects: destruct elements and free the array if array is static (fixed length) then perform a clear operation only */ #include "fb.h" FBCALL int fb_ArrayEraseObj( FBARRAY *array, FB_DEFCTOR ctor, FB_DEFCTOR dtor ) { if( array->flags & FBARRAY_FLAGS_FIXED_LEN ) { fb_ArrayClearObj...
184
8,027
<filename>test/com/facebook/buck/core/rules/impl/PathReferenceRule.java /* * Copyright (c) Facebook, Inc. and 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 * * ht...
616
6,240
<reponame>lukec611/closure-compiler /* * Copyright 2020 The Closure Compiler 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...
426
1,444
package mage.cards.w; import java.util.UUID; import mage.abilities.effects.common.search.SearchLibraryPutOnLibraryEffect; import mage.cards.CardImpl; import mage.cards.CardSetInfo; import mage.constants.CardType; import mage.filter.StaticFilters; import mage.target.common.TargetCardInLibrary; /** * * @author Plopma...
333
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 CHROME_BROWSER_CHROMEOS_LOGIN_LOGIN_MANAGER_TEST_H_ #define CHROME_BROWSER_CHROMEOS_LOGIN_LOGIN_MANAGER_TEST_H_ #include <string> #include "base...
1,221
310
<reponame>dreeves/usesthis { "name": "Lumix DMC-GH1", "description": "A 14 megapixel micro four thirds camera.", "url": "https://en.wikipedia.org/wiki/Panasonic_Lumix_DMC-GH1" }
75
5,169
{ "name": "MEVHorizontalContacts", "version": "0.1.0", "summary": "A horizontal collection view layout.", "description": "TODO: Add long description of the pod here.", "homepage": "https://github.com/manuelescrig/MEVHorizontalContacts", "license": "MIT", "authors": { "<NAME>": "<EMAIL>" }, "source...
243
852
/** measure branch sizes * * */ #include "PerfTools/EdmEvent/interface/EdmEventSize.h" #include <boost/program_options.hpp> #include <string> #include <iostream> #include <fstream> #include <TROOT.h> #include <TSystem.h> #include <TError.h> #include "FWCore/FWLite/interface/FWLiteEnabler.h" stat...
1,920
2,671
from .inplace_abn import bn
10
2,338
<filename>clang-tools-extra/clang-tidy/bugprone/TooSmallLoopVariableCheck.cpp<gh_stars>1000+ //===--- TooSmallLoopVariableCheck.cpp - clang-tidy -----------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. /...
2,978
551
{ "image": "https://user-images.githubusercontent.com/91655303/142618933-d2dead94-c735-47ac-92d8-025c23a2c07d.png", "issueId": 851, "name": "<NAME>", "username": "krishguptadev" }
88
384
<gh_stars>100-1000 package yifeiyuan.practice.practicedemos.viewdrager; import android.content.Context; import android.support.v4.widget.ViewDragHelper; import android.util.AttributeSet; import android.util.Log; import android.view.MotionEvent; import android.view.View; import android.widget.FrameLayout; /** * Creat...
2,377
2,542
<gh_stars>1000+ // ------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License (MIT). See License.txt in the repo root for license information. // ------------------------------------------------------------ #include "Ra.S...
574
348
<gh_stars>100-1000 {"nom":"Porchères","circ":"11ème circonscription","dpt":"Gironde","inscrits":714,"abs":371,"votants":343,"blancs":21,"nuls":8,"exp":314,"res":[{"nuance":"REM","nom":"<NAME>","voix":174},{"nuance":"FN","nom":"<NAME>","voix":140}]}
100
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...
1,164
837
/********************************************************************* * Software License Agreement (BSD License) * * Copyright (c) 2019, University of Stuttgart * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the follo...
4,938
2,151
/* * This file is part of Wireless Display Software for Linux OS * * Copyright (C) 2014 Intel Corporation. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 o...
411
1,467
{ "version": "2.13.64", "date": "2020-07-29", "entries": [ { "type": "feature", "category": "Amazon Elastic Compute Cloud", "description": "Adding support to target EC2 On-Demand Capacity Reservations within an AWS Resource Group to launch EC2 instances." ...
908
1,040
<reponame>wenhao-fly/LTScrollView<filename>OCExample/OCExample/LTPageView/Controller/LTPageViewTestOneVC.h // // LTPageViewTestOneVC.h // OCExample // // Created by 高刘通 on 2018/6/28. // Copyright © 2018年 LT. All rights reserved. // #import <UIKit/UIKit.h> @interface LTPageViewTestOneVC : UIViewController @proper...
143
310
{ "name": "Wealthfront", "description": "An automated investment service.", "url": "https://www.wealthfront.com/" }
39
580
// test that perf of benchmark is better than perf of baseline_benchmark (or suite baseline if nullptr) times q // returns false on fail bool test_regression(const picobench::report& report, const char* suite_name, const char* benchmark, double q = 1, const char* baseline_benchmark = nullptr) { auto suite = re...
575
3,673
// ---------------------------------------------------------------------------- // - Open3D: www.open3d.org - // ---------------------------------------------------------------------------- // The MIT License (MIT) // // Copyright (c) 2018-2021 www.open3d.org // // Perm...
2,151
1,275
<reponame>JimMadge/aws-fpga<filename>shared/lib/fileprovider.py # Amazon FPGA Hardware Development Kit # # Copyright 2016 Amazon.com, Inc. or its affiliates. All Rights Reserved. # # Licensed under the Amazon Software License (the "License"). You may not use # this file except in compliance with the License. A copy of ...
1,914
371
<reponame>PlexPt/mybatis-plus-generator-ui package com.github.davidfantasy.mybatisplus.generatorui.strategy; import com.baomidou.mybatisplus.generator.config.ConstVal; import lombok.Data; @Data public class ServiceImplStrategy { /** * 自定义继承的ServiceImpl类全称,带包名 */ private String superServiceImplClass ...
162
678
/** * This header is generated by class-dump-z 0.2b. * * Source: /System/Library/PrivateFrameworks/GeoServices.framework/GeoServices */ #import <GeoServices/XXUnknownSuperclass.h> @interface GEOReverseGeocoderCache : XXUnknownSuperclass { } + (id)sharedCache; // 0x56fd - (void)clear; // 0x5789 - (void)setRespons...
166
2,113
<reponame>vbillet/Torque3D //~~~~~~~~~~~~~~~~~~~~//~~~~~~~~~~~~~~~~~~~~//~~~~~~~~~~~~~~~~~~~~//~~~~~~~~~~~~~~~~~~~~~// // Arcane-FX for MIT Licensed Open Source version of Torque 3D from GarageGames // Copyright (C) 2015 Faust Logic, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a co...
2,027
2,116
<reponame>Charliemaple/qmc-decoder<gh_stars>1000+ /* * Author: mayusheng - <EMAIL> * Last modified: 2020-06-29 10:56 * Filename: decoder.cpp * * Description: qmc file auto decode * * */ #include <algorithm> #include <iostream> #include <memory> #include <regex> #include <vector> #include "seed.hpp" #if define...
1,774
1,436
// // NIMContactSelectTabView.h // NIMKit // // Created by chris on 15/9/15. // Copyright (c) 2015年 NetEase. All rights reserved. // #import <UIKit/UIKit.h> @class NIMContactPickedView; @interface NIMContactSelectTabView : UIView @property (nonatomic,strong) NIMContactPickedView *pickedView; @property (nonatomi...
132
473
#!/usr/bin/env python from generator.actions import Actions, Variable import random import string import struct def random_string(length): s = '' for x in xrange(length): s += random.choice(string.ascii_uppercase) return s def r_uint32(): return random.randint(0, 0xffffffff) def r_vendor(): ...
2,793
852
#ifndef FWCore_MessageService_test_ProblemTestClient_t1_h #define FWCore_MessageService_test_ProblemTestClient_t1_h #include "FWCore/Framework/interface/Frameworkfwd.h" #include "FWCore/Framework/interface/global/EDAnalyzer.h" namespace edm { class ParameterSet; } namespace edmtest { class ProblemTestClient_t1 ...
222
305
<filename>llvm-project/clang/test/CoverageMapping/break.c // RUN: %strip_comments > %t.stripped.c // RUN: %clang_cc1 -fprofile-instrument=clang -fcoverage-mapping -dump-coverage-mapping -emit-llvm-only -main-file-name break.c %t.stripped.c | FileCheck %s int main() { // CHECK: File 0, [[@LINE]]:12 -> {{[0-9]+}...
1,216
1,403
<reponame>beldenfox/LLGL<filename>sources/Renderer/ShaderFlags.cpp /* * ShaderFlags.cpp * * This file is part of the "LLGL" project (Copyright (c) 2015-2019 by <NAME>) * See "LICENSE.txt" for license information. */ #include <LLGL/ShaderFlags.h> namespace LLGL { LLGL_EXPORT bool IsShaderSourceCode(const Shad...
224
440
/*========================== begin_copyright_notice ============================ Copyright (C) 2020-2021 Intel Corporation SPDX-License-Identifier: MIT ============================= end_copyright_notice ===========================*/ #ifndef IGCLLVM_SUPPORT_MEMORYBUFFER_H #define IGCLLVM_SUPPORT_MEMORYBUFFER_H #inc...
312
14,668
<gh_stars>1000+ // Copyright 2017 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "third_party/blink/renderer/modules/animationworklet/animator_definition.h" #include "third_party/blink/renderer/bindings/core/v...
416
1,157
#include <maxtest/testconnections.hh> int main(int argc, char** argv) { TestConnections test(argc, argv); std::string query = "SELECT '"; // One byte command byte and one byte for the single quote query.append(0xfffffb - 1 - query.size() - 1, 'a'); query += "'"; auto c = test.maxscale->rwspli...
258
598
/* * * 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 * distri...
1,686
11,356
<reponame>shreyasvj25/turicreate<gh_stars>1000+ #include <boost/parameter.hpp> BOOST_PARAMETER_NAME((pass_foo, keywords) foo) BOOST_PARAMETER_FUNCTION( (int), f, keywords, (required (foo, *))) { return foo + 1; } int x = f(pass_foo = 41); int main() {}
123
343
<reponame>lukegehron/rhino3dm<filename>src/bindings/bnd_dimensionstyle.cpp #include "bindings.h" BND_DimensionStyle::BND_DimensionStyle() { SetTrackedPointer(new ON_DimStyle(), nullptr); } BND_DimensionStyle::BND_DimensionStyle(ON_DimStyle* dimstyle, const ON_ModelComponentReference* compref) { SetTrackedPointer(...
5,649
764
package thread_safe; import java.io.IOException; import org.jruby.Ruby; import org.jruby.ext.thread_safe.JRubyCacheBackendLibrary; import org.jruby.runtime.load.BasicLibraryService; // can't name this JRubyCacheBackendService or else JRuby doesn't pick this up public class JrubyCacheBackendService implements BasicLi...
155
482
"""resizer module handle image resizing""" import albumentations as A import cv2 import numpy as np from enum import Enum import imghdr _INTER_STR_TO_CV2 = dict( nearest=cv2.INTER_NEAREST, linear=cv2.INTER_LINEAR, bilinear=cv2.INTER_LINEAR, cubic=cv2.INTER_CUBIC, bicubic=cv2.INTER_CUBIC, area=...
2,185
3,200
/** * Copyright 2019-2020 Huawei Technologies Co., Ltd * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicabl...
586
355
<gh_stars>100-1000 package net.tomp2p; import net.tomp2p.connection.ChannelCreator; import net.tomp2p.message.Buffer; import net.tomp2p.p2p.Peer; import net.tomp2p.p2p.builder.SendDirectBuilder; import net.tomp2p.peers.PeerAddress; import net.tomp2p.rpc.RawDataReply; import net.tomp2p.storage.AlternativeCompositeByteB...
515
411
<filename>library/src/main/java/me/zhanghai/android/customtabshelper/CustomTabsHelperFragment.java<gh_stars>100-1000 /* * Copyright (c) 2015 <NAME> <<EMAIL>> * All Rights Reserved. */ package me.zhanghai.android.customtabshelper; import android.app.Activity; import android.content.ActivityNotFoundException; import...
1,518
327
/* * Copyright 2014 CITIUS <http://citius.usc.es>, University of Santiago de Compostela. * * 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/licen...
2,760
302
<reponame>Atul9/tectonic /*------------------------------------------------------------------------ Copyright (C) 2002-2014 SIL International. All rights reserved. Distributable under the terms of either the Common Public License or the GNU Lesser General Public License, as specified in the LICENSING.txt file. File: ...
2,737
496
<gh_stars>100-1000 #ifndef SIMIT_FIR_REWRITER_H #define SIMIT_FIR_REWRITER_H #include <memory> #include "fir.h" #include "fir_visitor.h" namespace simit { namespace fir { struct FIRRewriter : public FIRVisitor { virtual void visit(Program::Ptr); virtual void visit(StmtBlock::Ptr); virtual void visit(RangeInde...
1,283
12,718
<reponame>aruniiird/zig<filename>lib/libc/musl/src/thread/pthread_setname_np.c<gh_stars>1000+ #define _GNU_SOURCE #include <fcntl.h> #include <string.h> #include <unistd.h> #include <sys/prctl.h> #include "pthread_impl.h" int pthread_setname_np(pthread_t thread, const char *name) { int fd, cs, status = 0; char f[si...
355
12,718
//===----------------------------------------------------------------------===// // // 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,274
1,056
<reponame>Antholoj/netbeans /* * 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 ...
3,246
365
import pytest import torch from summarize_from_feedback import tasks from summarize_from_feedback.query_response_model import PADDING_TOKEN from summarize_from_feedback.utils.assertions import assert_eq class TestEncoder: def encode(self, text): return [ord(x) for x in text] def decode(self, tokens)...
1,882
1,150
/** * Copyright 2018 Confluent Inc. * * Licensed under the GNU AFFERO GENERAL PUBLIC LICENSE, Version 3.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://opensource.org/licenses/AGPL-3.0 * * Unless required by applicable l...
2,299
784
<filename>corev_apu/tb/riscv-isa-sim/riscv/insns/fcvt_q_wu.h require_extension('Q'); require_fp; softfloat_roundingMode = RM; WRITE_FRD(ui32_to_f128((uint32_t)RS1)); set_fp_exceptions;
90
348
{"nom":"Morsains","circ":"3ème circonscription","dpt":"Marne","inscrits":127,"abs":56,"votants":71,"blancs":11,"nuls":0,"exp":60,"res":[{"nuance":"REM","nom":"<NAME>","voix":42},{"nuance":"FN","nom":"<NAME>","voix":18}]}
88
4,901
/* * Copyright (C) 2016 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
3,307
1,144
// Copyright 2013 Google 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 required by applicable...
450
784
<filename>sklego/mixture/bayesian_gmm_classifier.py import numpy as np from sklearn.base import BaseEstimator, ClassifierMixin from sklearn.mixture import BayesianGaussianMixture from sklearn.utils import check_X_y from sklearn.utils.multiclass import unique_labels from sklearn.utils.validation import check_is_fitted, ...
2,072
10,002
<reponame>fangshun2004/calculator // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. #pragma once namespace Numbers { namespace DesignData { #ifdef _DEBUG // These class are to be consumed exclusively by Blend and the VS designer // with these clas...
2,465
462
## # Copyright (c) 2013-2017 Apple 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 required by applicable l...
14,289
3,269
# Time: O(1) # Space: O(1) class Solution(object): def numberOfDays(self, Y, M): """ :type Y: int :type M: int :rtype: int """ leap = 1 if ((Y % 4 == 0) and (Y % 100 != 0)) or (Y % 400 == 0) else 0 return (28+leap if (M == 2) else 31-(M-1)%7%2)
174
1,615
// // MLNUIMyImageHandler.h // LuaNative // // Created by <NAME> on 2020/5/27. // Copyright © 2020 MoMo. All rights reserved. // #import <Foundation/Foundation.h> #import "MLNUIKit.h" NS_ASSUME_NONNULL_BEGIN @interface MLNUIMyImageHandler : NSObject <MLNUIImageLoaderProtocol> @end NS_ASSUME_NONNULL_END
125
509
#pragma once #include "GraphicsDevice/ITexture2D.h" #include "WebRTCMacros.h" namespace unity { namespace webrtc { class MTLTexture; struct MetalTexture2D : ITexture2D { public: id<MTLTexture> m_texture; MetalTexture2D(uint32_t w, uint32_t h, id<MTLTexture> tex); virtual ~MetalTe...
355
2,963
// // Created by <NAME> on 17.03.18. // #include "../runtime/Runtime.h" #include <random> namespace s { class PRNG : public runtime::Object<PRNG> { public: std::mt19937_64 prng = std::mt19937_64(std::random_device()()); }; extern "C" PRNG* sPrngNew() { return PRNG::init(); } extern "C" runtime::Integer sPr...
297
480
/* * 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 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...
524
30,023
"""The IntelliFire integration.""" from __future__ import annotations from datetime import timedelta from aiohttp import ClientConnectionError from async_timeout import timeout from intellifire4py import ( IntellifireAsync, IntellifireControlAsync, IntellifirePollData, ) from homeassistant.core import Ho...
888
627
<reponame>closer2/chrome-ec /* Copyright 2018 The Chromium OS 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 __HID_DEVICE_H #define __HID_DEVICE_H #include <stdint.h> #include <stddef.h> #include "hooks.h" #define HID...
1,023
435
<reponame>amaajemyfren/data { "description": "As a penniless academic I wanted to do \"big data\" for science. Open\nsource, Python, and simple patterns were the way forward. Staying on top\nof todays growing datasets is an arm race. Data analytics machinery\n\u2014clusters, NOSQL, visualization, Hadoop, machine lear...
441
2,151
<reponame>zipated/src // Copyright 2017 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef CHROME_BROWSER_BROWSING_DATA_COUNTERS_SITE_DATA_COUNTING_HELPER_H_ #define CHROME_BROWSER_BROWSING_DATA_COUNTERS_SITE_DATA_C...
922
20,995
// Copyright 2020 the V8 project 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 V8_TOOLS_V8WINDBG_TEST_DEBUG_CALLBACKS_H_ #define V8_TOOLS_V8WINDBG_TEST_DEBUG_CALLBACKS_H_ #if !defined(UNICODE) || !defined(_UNICODE) #error ...
1,495
2,443
/* * 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 ...
4,349
1,232
/*- * << * DBus * == * Copyright (C) 2016 - 2019 Bridata * == * 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 requir...
5,273
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 CHROME_BROWSER_ANDROID_TAB_WEB_CONTENTS_DELEGATE_ANDROID_H_ #define CHROME_BROWSER_ANDROID_TAB_WEB_CONTENTS_DELEGATE_ANDROID_H_ #include <mem...
2,436
2,875
# -*- coding: utf-8 -*- # @Time : 2017/7/13 下午5:13 # @Author : play4fun # @File : findHomography.py # @Software: PyCharm """ findHomography.py:联合使用特征提取和 calib3d 模块中的 findHomography 在复杂图像中查找已知对象 """ import numpy as np import cv2 from matplotlib import pyplot as plt MIN_MATCH_COUNT = 10 img1 = cv2.imread('../da...
1,681
852
#include "SiStripRawToDigiModule.h" #include "SiStripRawToDigiUnpacker.h" #include "CondFormats/SiStripObjects/interface/SiStripFedCabling.h" #include "DataFormats/Common/interface/DetSetVector.h" #include "DataFormats/Common/interface/Handle.h" #include "DataFormats/DetId/interface/DetIdCollection.h" #include "DataF...
3,152
17,703
// NOLINT(namespace-envoy) constexpr char TEST_SELFSIGNED_ECDSA_P384_CERT_256_HASH[] = "686326b5427f43d04394606c75223180779478004b2112820b5affb6d84763b9"; constexpr char TEST_SELFSIGNED_ECDSA_P384_CERT_1_HASH[] = "58b63003620b27457a8445520c73b3ee7530a6d4"; constexpr char TEST_SELFSIGNED_ECDSA_P384_CERT_SPKI[] =...
338