max_stars_count
int64
301
224k
text
stringlengths
6
1.05M
token_count
int64
3
727k
348
<reponame>chamberone/Leaflet.PixiOverlay<gh_stars>100-1000 {"nom":"Thianges","circ":"2ème circonscription","dpt":"Nièvre","inscrits":164,"abs":82,"votants":82,"blancs":8,"nuls":2,"exp":72,"res":[{"nuance":"SOC","nom":"<NAME>","voix":37},{"nuance":"REM","nom":"M. <NAME>","voix":35}]}
119
679
<gh_stars>100-1000 /************************************************************** * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF license...
1,897
327
<gh_stars>100-1000 package org.lsp.javaproject; public enum EnumType { FOO, BAR, BAZ }
51
425
{"Sections":[{"Errors":[{"Message":"LU file reference path is empty: \"[test]()\"","Range":{"Start":{"Line":1,"Character":0},"End":{"Line":1,"Character":8}},"Severity":"ERROR"}],"SectionType":"importSection","Id":"importSection_","Body":"","Description":"test","Path":"","Range":{"Start":{"Line":1,"Character":0},"End":{...
152
3,947
// // NSCoder+DTCompatibility.h // DTCoreText // // Created by <NAME> on 14/02/19. // Copyright (c) 2014 Drobnik.<EMAIL>. All rights reserved. // #import <Foundation/Foundation.h> #import "DTCompatibility.h" @interface NSCoder (DTCompatibility) #if !TARGET_OS_IPHONE - (void)encodeCGSize:(CGSize)size forKey:(NS...
208
2,100
/* * Copyright (C) 2017 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 * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agree...
2,223
7,567
<reponame>galenzhao/nodemcu-firmware<gh_stars>1000+ #ifndef READLINE_APP_H #define READLINE_APP_H typedef void (*uart_cb_t)(const char *buf, size_t len); extern void input_setup(int bufsize, const char *prompt); extern void input_setup_receive(uart_cb_t uart_on_data_cb, int data_len, char end_char, bool run_input); ex...
166
2,517
// This file is part of CAF, the C++ Actor Framework. See the file LICENSE in // the main distribution directory for license terms and copyright or visit // https://github.com/actor-framework/actor-framework/blob/master/LICENSE. #include "caf/io/network/acceptor.hpp" #include "caf/logger.hpp" namespace caf::io::netw...
444
1,350
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. package com.azure.resourcemanager.sql.fluent; import com.azure.core.annotation.ReturnType; import com.azure.core.annotation.ServiceMethod; import com.azure.core.h...
4,657
2,542
// ------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License (MIT). See License.txt in the repo root for license information. // ------------------------------------------------------------ #include "stdafx.h" namespace...
862
312
/******************************************************************************* * Copyright (c) 2015 Eclipse RDF4J contributors, Aduna, and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Distribution License v1.0 * which accompanies th...
460
32,544
<filename>algorithms-searching/src/test/java/com/baeldung/algorithms/breadthfirstsearch/BreadthFirstSearchAlgorithmUnitTest.java package com.baeldung.algorithms.breadthfirstsearch; import org.junit.jupiter.api.Test; import static org.assertj.core.api.Assertions.assertThat; class BreadthFirstSearchAlgorithmUnitTest {...
1,054
1,220
<filename>flash-core/src/main/java/cn/enilu/flash/bean/vo/node/MenuMeta.java package cn.enilu.flash.bean.vo.node; import lombok.Data; /** * @author :enilu * @date :Created in 2019/10/30 22:01 */ @Data public class MenuMeta { private String title; private String icon; }
117
2,294
# Set random number generator np.random.seed(2020) # Initialize step_end, t_range, n, v_n and i t_range = np.arange(0, t_max, dt) step_end = len(t_range) n = 500 v_n = el * np.ones([n, step_end]) i = i_mean * (1 + 0.1 * (t_max / dt)**(0.5) * (2 * np.random.random([n, step_end]) - 1)) # Initialize binary numpy array ...
390
4,054
<reponame>tkoyama010/readthedocs.org # -*- coding: utf-8 -*- # Generated by Django 1.11.21 on 2019-06-13 18:03 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('sphinx_domains', '0003_additional_indexed_fields'), ...
230
307
<filename>modules/app-version-common/src/main/java/com/tairanchina/csp/avm/mapper/ApkMapper.java<gh_stars>100-1000 package com.tairanchina.csp.avm.mapper; import com.baomidou.mybatisplus.mapper.BaseMapper; import com.baomidou.mybatisplus.plugins.pagination.Pagination; import com.tairanchina.csp.avm.dto.ApkExt; import ...
299
1,264
/** * MongoDB specific messaging support for listening to eg. * <a href="https://docs.mongodb.com/manual/changeStreams/">Change Streams</a>. */ @org.springframework.lang.NonNullApi package org.springframework.data.mongodb.core.messaging;
77
2,813
package org.jabref.model.openoffice.uno; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import java.util.Optional; import com.sun.star.container.NoSuchElementException; import com.sun.star.container.XNameAccess; import com.sun.star.container.XNamed; import com.sun.star.lang.DisposedExcept...
1,598
5,169
{ "name": "IMOPushFramework", "version": "0.9.4", "summary": "IMOPushFramework.", "description": "IMOPushFramework 2019.03.07", "homepage": "https://github.com/koo0922/IMOPushFramework", "license": { "type": "MIT", "file": "LICENSE" }, "authors": { "": "" }, "platforms": { "ios": "8....
218
309
<filename>src/Cxx/Developers/vtkTest1.cxx<gh_stars>100-1000 #include "vtkTest1.h" #include <vtkObjectFactory.h> vtkStandardNewMacro(vtkTest1); vtkTest1::vtkTest1() { this->Value = 4.5; } vtkTest1::~vtkTest1() { } void vtkTest1::PrintSelf( ostream& os, vtkIndent indent ) { this->Superclass::PrintSelf( os, inde...
148
816
<filename>Source/JxADF/JxPlatform/src/main/java/com/jxtech/tag/table/TableButtonTag.java package com.jxtech.tag.table; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import javax.servlet.jsp.JspException; import javax.servlet.jsp.tagext.Tag; import org.apache.struts2.comp...
1,563
386
<filename>include/IECore/VectorTraits.h<gh_stars>100-1000 ////////////////////////////////////////////////////////////////////////// // // Copyright (c) 2007, Image Engine Design Inc. All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided...
1,070
2,549
<reponame>williamirick/hatch<filename>tests/commands/test_install.py<gh_stars>1000+ import os from click.testing import CliRunner from hatch.cli import hatch from hatch.config import get_venv_dir from hatch.env import get_editable_packages, get_installed_packages from hatch.utils import env_vars, remove_path, temp_ch...
2,485
331
<gh_stars>100-1000 from django.urls import path from .forms import ( CookieContactWizard, Page1, Page2, Page3, Page4, SessionContactWizard, ) urlpatterns = [ path('wiz_session/', SessionContactWizard.as_view( [('form1', Page1), ('form2', Page2), ('form3', Page3), ('form4', P...
346
848
# Copyright 2016 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 required by applica...
1,563
743
<reponame>akrystian/hermes package pl.allegro.tech.hermes.management.domain.subscription.health.problem; import pl.allegro.tech.hermes.api.SubscriptionHealthProblem; import pl.allegro.tech.hermes.management.domain.subscription.health.SubscriptionHealthContext; import pl.allegro.tech.hermes.management.domain.subscripti...
587
648
{"resourceType":"DataElement","id":"Address.country","meta":{"lastUpdated":"2017-04-19T07:44:43.294+10:00"},"url":"http://hl7.org/fhir/DataElement/Address.country","status":"draft","experimental":true,"stringency":"fully-specified","element":[{"id":"Address.country","path":"Address.country","short":"Country (e.g. can b...
215
1,164
// Copyright 2018 U.C. Berkeley RISE Lab // // 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...
3,962
2,141
""" Function for testing testing SQL relations """ from typing import Union, List from jinja2 import Template def nulls_in_columns(client, cols: Union[str, List[str]], product): """Check if any column has NULL values, returns bool Parameters ---------- client Database client cols ...
1,110
400
/* * cl_memory.h - CL memory * * Copyright (c) 2015 Intel Corporation * * 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 * * Unles...
2,949
8,772
<filename>support/cas-server-support-jpa-hibernate/src/main/java/org/apereo/cas/hibernate/CasHibernatePhysicalNamingStrategy.java package org.apereo.cas.hibernate; import org.apereo.cas.util.scripting.ScriptingUtils; import org.apereo.cas.util.spring.ApplicationContextProvider; import lombok.extern.slf4j.Slf4j; impor...
1,284
1,040
/** * Implements a octree data structure using PCL as a backend * for pushbroom stereo data. * * Supports checking trajectories against the octree to determine nearest neighbor. * * (C) 2015 <NAME> <<EMAIL>> */ #ifndef STEREO_OCTOMAP_H_ #define STEREO_OCTOMAP_H_ #include <iostream> #include "opencv2/opencv.h...
1,018
407
<gh_stars>100-1000 package com.alibaba.tesla.appmanager.server.repository.impl; import com.alibaba.tesla.appmanager.common.util.DateUtil; import com.alibaba.tesla.appmanager.server.repository.AppPackageTaskRepository; import com.alibaba.tesla.appmanager.server.repository.condition.AppPackageTaskQueryCondition; import ...
1,386
348
<reponame>chamberone/Leaflet.PixiOverlay {"nom":"Epiais-Rhus","circ":"1ère circonscription","dpt":"Val-d'Oise","inscrits":560,"abs":283,"votants":277,"blancs":33,"nuls":5,"exp":239,"res":[{"nuance":"LR","nom":"<NAME>","voix":121},{"nuance":"REM","nom":"<NAME>","voix":118}]}
113
2,226
package com.bonnyfone.vectalign.viewer; import android.support.v7.graphics.drawable.PathParser; import com.bonnyfone.vectalign.PathNodeUtils; import com.kitfox.svg.SVGCache; import com.kitfox.svg.app.beans.SVGIcon; import javax.swing.*; import java.awt.*; import java.awt.event.ComponentEvent; import java.awt.event.Co...
4,388
388
//***************************************************************************** // //! \file w5100S.c //! \brief W5100S HAL Interface. //! \version 1.0.0 //! \date 2018/03/29 //! \par Revision history //! <2018/03/29> 1st Release //! \author Peter //! //! Copyright (c) 2013, WIZnet Co., LTD. //! All rights res...
7,790
438
indies = [8828, 1222, 4110, 7484, 5704, 5324, 7105, 2664, 630, 4178, 1268, 1840, 6838, 3641, 4596, 829, 9772, 4155, 9228, 6454, 9144, 7995, 5614, 9790, 270, 5538, 7919, 6601, 6494, 4656, 7174, 7404, 7684, 8769, 1043, 8127, 7175, 1470, 8208, 3681, 7140, 2832, 4925, 3698, 2759, 8359, 6661, 6382, 1568, 9976, 2653, 400, 98...
377
665
<reponame>mldbai/mldb<gh_stars>100-1000 /** tuple_description.h -*- C++ -*- <NAME>, 24 April 2014 Copyright (c) 2014 mldb.ai inc. All rights reserved. This file is part of MLDB. Copyright 2015 mldb.ai inc. All rights reserved. Value description for a tuple. ...
2,854
5,169
<reponame>Gantios/Specs<gh_stars>1000+ { "name": "QMSwiftExt", "version": "0.1.2", "summary": "Find the easy extensions for all built in swift structs and class.", "description": "TODO: This is a demo pod create and released for testing purpose. There is only a single class of String Extension in this pod.", ...
276
312
/* * Copyright 2015 Rockchip Electronics 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 applicable...
1,385
7,892
<filename>lib-src/libnyquist/nyquist/nyqsrc/oldyin.h /* yin.h -- Nyquist code for F0 estimation using YIN approach */ LVAL snd_yin(sound_type s, double low_step, double high_step, long stepsize); /* LISP: (SND-YIN SOUND ANYNUM ANYNUM FIXNUM) */
94
1,144
/* SPDX-License-Identifier: GPL-2.0 */ /* * Copyright (C) Marvell International Ltd. and its affiliates */ #ifndef _MV_DDR_TOPOLOGY_H #define _MV_DDR_TOPOLOGY_H /* ddr bus masks */ #define BUS_MASK_32BIT 0xf #define BUS_MASK_32BIT_ECC 0x1f #define BUS_MASK_16BIT 0x3 #define BUS_MASK_16BIT_ECC 0x13 #define BUS...
1,944
472
<reponame>greck2908/Windows-Machine-Learning #pragma once #include "EncryptedModels.g.h" namespace winrt::WinMLSamplesGalleryNative::implementation { struct EncryptedModels : EncryptedModelsT<EncryptedModels> { EncryptedModels() = default; static winrt::Microsoft::AI::MachineLearning::Learning...
194
577
/* * Copyright (c) 2016 咖枯 <<EMAIL> | <EMAIL>> * * 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 la...
6,723
1,350
<reponame>billwert/azure-sdk-for-java // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. package com.azure.resourcemanager.policyinsights.generated; import com.azure.core.util.Context; /** Samples for Remediation...
877
365
<filename>extern/audaspace/include/fx/LowpassCalculator.h<gh_stars>100-1000 /******************************************************************************* * Copyright 2009-2016 <NAME> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the Lice...
522
357
#include "includes.h" #if defined(_DEBUG) #include "../x64/Debug/vmca_s.c" #else #include "../x64/Release/vmca_s.c" #endif
55
335
/* Copyright (C) 2017 Quaternion Risk Management Ltd All rights reserved. This file is part of ORE, a free-software/open-source library for transparent pricing and risk analysis - http://opensourcerisk.org ORE is free software: you can redistribute it and/or modify it under the terms of the Modified BSD License...
680
652
# THIS FILE IS GENERATED FROM NUMPY SETUP.PY short_version = '1.10.0' version = '1.10.0' full_version = '1.10.0.dev0+046311a' git_revision = '<PASSWORD>' release = False if not release: version = full_version
92
1,144
package de.metas.shipper.gateway.go.model; /** Generated Interface for GO_DeliveryOrder_Package * @author Adempiere (generated) */ @SuppressWarnings("javadoc") public interface I_GO_DeliveryOrder_Package { /** TableName=GO_DeliveryOrder_Package */ public static final String Table_Name = "GO_DeliveryOrde...
2,999
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 PPAPI_TESTS_TEST_VIDEO_DECODER_DEV_H_ #define PPAPI_TESTS_TEST_VIDEO_DECODER_DEV_H_ #include <string> #include "ppapi/c/dev/ppb_video_decode...
307
7,629
<gh_stars>1000+ /* Copyright 2021 Google LLC Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing...
718
3,227
namespace CGAL { /*! \ingroup PkgQPSolverClasses An object of class `Linear_program_from_iterators` describes a linear program of the form \f{eqnarray*}{ \mbox{(QP)}& \mbox{minimize} & \qpc^{T}\qpx+c_0 \\ &\mbox{subject to} & A\qpx\qprel \qpb, \\ & & \qpl \leq \qpx \leq \qpu \f} in \f$ n\f$ real v...
12,340
5,823
// Copyright 2013 The Flutter 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 SHELL_PLATFORM_DARWIN_GRAPHICS_DARWIN_CONTEXT_METAL_H_ #define SHELL_PLATFORM_DARWIN_GRAPHICS_DARWIN_CONTEXT_METAL_H_ #import <CoreVideo/CVMetalTe...
845
537
/*! * @file * class Filter, pipeline unit for filtering. * * This file is a part of easyLambda(ezl) project for parallel data * processing with modern C++ and MPI. * * @copyright <NAME> <<EMAIL>> 2015-2016 * Distributed under the Boost Software License, Version 1.0. * (See accompanying LICENSE.md or copy at * ...
559
4,873
/* * 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 * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required ...
5,526
11,094
<filename>基础教程/A2-神经网络基本原理/第8步 - 卷积神经网络/src/ch18-CNNModel/Level4_MnistConvNet.py<gh_stars>1000+ # Copyright (c) Microsoft. All rights reserved. # Licensed under the MIT license. See LICENSE file in the project root for full license information. from MiniFramework.NeuralNet_4_2 import * from ExtendedDataReader.MnistI...
1,022
377
package com.ramijemli.percentagechartview.callback; public interface AdaptiveColorProvider { default int provideProgressColor(float progress) { return -1; } default int provideBackgroundColor(float progress) { return -1; } default int provideTextColor(float progress) { re...
152
975
<reponame>HelloVass/Shield package com.dianping.shield.entity; import com.dianping.agentsdk.sectionrecycler.section.PieceAdapter; /** * Created by hezhi on 17/2/21. */ public class ExposedInfo { //曝光列表 public PieceAdapter owner; public ExposedDetails details; @Override public boolean equals(Ob...
489
2,293
<filename>deps/luasocket/libluasocket/options.h #ifndef OPTIONS_H #define OPTIONS_H /*=========================================================================*\ * Common option interface * LuaSocket toolkit * * This module provides a common interface to socket options, used mainly by * modules UDP and TCP. * * RCS I...
464
1,197
import pytest from wtforms import validators from wtforms.fields import StringField from wtforms.form import Form @pytest.fixture() def flags(): return StringField(validators=[validators.DataRequired()]).bind(Form(), "a").flags def test_existing_values(flags): assert flags.required is True assert "requ...
301
335
/* Copyright (C) <NAME> */ #include "WrappedVectorBuffer.hpp" namespace ancient::internal { WrappedVectorBuffer::WrappedVectorBuffer(std::vector<uint8_t> &refdata) : _refdata(refdata) { return; } WrappedVectorBuffer::~WrappedVectorBuffer() { return; } const uint8_t *WrappedVectorBuffer::data() const noexcept {...
242
310
<filename>gear/hardware/s/sh-101.json { "name": "SH-101", "description": "A bass synth.", "url": "https://en.wikipedia.org/wiki/Roland_SH-101" }
62
711
package com.java110.dto.machine; import com.java110.dto.PageDto; import java.io.Serializable; import java.util.Date; /** * @ClassName FloorDto * @Description 设备上报数据层封装 * @Author wuxw * @Date 2019/4/24 8:52 * @Version 1.0 * add by wuxw 2019/4/24 **/ public class MachineRecordDto extends PageDto implements Seri...
1,406
20,996
<filename>external/esprima/test_fixtures/invalid-syntax/migrated_0185.failure.json { "index": 40, "lineNumber": 1, "column": 41, "message": "Error: Line 1: Variable name may not be eval or arguments in strict mode" }
87
646
/* Copyright (c) 2017 TOSHIBA Digital Solutions Corporation This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This...
18,737
493
import sys import time import ecal.core.core as ecal_core from ecal.core.publisher import StringPublisher if __name__ == "__main__": # initialize eCAL API. The name of our Process will be "Python Hello World Publisher" ecal_core.initialize(sys.argv, "Python Hello World Publisher") # Create a String Publisher t...
313
684
import os DEBUG = os.environ.get('DEBUG', 'False') SECRET_KEY = os.environ.get('SECRET_KEY') MYSQL_ENDPOINT = os.environ.get('MYSQL_ENDPOINT') MYSQL_PASSWORD = os.environ.get('MYSQL_PASSWORD') MYSQL_USER = os.environ.get('MYSQL_USER') MYSQL_DB = os.environ.get('MYSQL_DB')
128
2,329
<reponame>alimate/spring-loaded package invokestatic.issue4; public class BBBBB extends AB { public static String getMessage() { return getString(); } }
56
2,151
/* * Copyright © 2013 <NAME> * * This file is part of the glmark2 OpenGL (ES) 2.0 benchmark. * * glmark2 is free software: you can redistribute it and/or modify it under the * terms of the GNU General Public License as published by the Free Software * Foundation, either version 3 of the License, or (at your opti...
1,581
6,201
<reponame>huihui7987/pattern<filename>examples/01-web/08-wiktionary.py<gh_stars>1000+ from __future__ import print_function from __future__ import unicode_literals from builtins import str, bytes, dict, int import os import sys sys.path.insert(0, os.path.join(os.path.dirname(__file__), "..", "..")) from pattern.web ...
1,166
4,614
<filename>ion/test/src/com/koushikdutta/ion/test/RedirectTests.java<gh_stars>1000+ package com.koushikdutta.ion.test; import android.test.AndroidTestCase; import android.util.Log; import com.koushikdutta.async.http.server.AsyncHttpServer; import com.koushikdutta.async.http.server.AsyncHttpServerRequest; import com.ko...
802
3,102
<reponame>medismailben/llvm-project // REQUIRES: x86-registered-target // RUN: %clang_cc1 %s -fasm-blocks -triple i386-apple-darwin10 -emit-llvm -o - | FileCheck %s namespace x { enum { A = 12 }; struct y_t { enum { A = 17 }; int r; } y; } // CHECK-LABEL: t1 void t1() { enum { A = 1 }; // CHECK: cal...
631
379
<reponame>oimchat/oim-fx package com.oim.core.js; /** * @author: XiaHui * @date: 2017年10月17日 上午9:38:55 */ public interface ChatInterface extends WebInterface{ void openUrl(String url); void download(String url); void prompt(String text); }
100
1,350
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. package com.azure.resourcemanager.edgeorder.models; import com.azure.core.util.ExpandableStringEnum; import com.fasterxml.jackson.annotation.JsonCreator; import j...
721
1,451
<reponame>luxy25/pandora package tech.linjiang.pandora.ui.fragment; import android.os.Bundle; import androidx.annotation.Nullable; import androidx.appcompat.widget.Toolbar; import android.view.MenuItem; import android.view.View; import java.util.ArrayList; import java.util.List; import tech.linjiang.pandora.cache.H...
1,245
348
<filename>docs/data/leg-t2/035/03506025.json<gh_stars>100-1000 {"nom":"Billé","circ":"6ème circonscription","dpt":"Ille-et-Vilaine","inscrits":762,"abs":390,"votants":372,"blancs":15,"nuls":7,"exp":350,"res":[{"nuance":"UDI","nom":"M. <NAME>","voix":236},{"nuance":"REM","nom":"<NAME>","voix":114}]}
125
380
from hls4ml.model.optimizer.optimizer import OptimizerPass class Template(OptimizerPass): def __init__(self, name, layer_class, attribute_name): self.name = name self.layer_class = layer_class if not isinstance(self.layer_class, (list, tuple, set)): self.layer_class = [self.la...
1,051
2,338
#include "CFBasicHash.h" #include "lldb/Utility/Endian.h" using namespace lldb; using namespace lldb_private; bool CFBasicHash::IsValid() const { if (m_address != LLDB_INVALID_ADDRESS) { if (m_ptr_size == 4 && m_ht_32) return true; else if (m_ptr_size == 8 && m_ht_64) return true; else ...
1,253
1,442
<reponame>VersiraSec/epsilon-cfw<filename>apps/solver/interval_controller.h #ifndef SOLVER_INTERVAL_CONTROLLER_H #define SOLVER_INTERVAL_CONTROLLER_H #include <escher/message_table_cell_with_editable_text.h> #include "equation_store.h" #include "../shared/float_parameter_controller.h" namespace Solver { class Interv...
687
1,853
template<typename... Args> struct count; template<> struct count<> { static const int value = 0; }; template<typename T, typename... Args> struct count<T, Args...> { static const int value = 1 + count<Args...>::value; }; static_assert(count<double>::value == 1, "2 elements");
115
479
/* ANTLR Translator Generator * Project led by <NAME> at http://www.jGuru.com * Software rights: http://www.antlr.org/license.html * * $Id:$ */ #include "antlr/TokenRefCount.hpp" #include "antlr/Token.hpp" #ifdef ANTLR_CXX_SUPPORTS_NAMESPACE namespace antlr { #endif TokenRef::TokenRef(Token* p) : ptr(p), count(1...
286
735
<gh_stars>100-1000 // NOTE: This file was generated by the ServiceGenerator. // ---------------------------------------------------------------------------- // API: // AI Platform Training & Prediction API (ml/v1) // Description: // An API to enable creating and using machine learning models. // Documentation: // ...
132
383
package com.droidnova.android.games.vortex; import android.app.Activity; import android.os.Bundle; public class Vortex extends Activity { private static final String LOG_TAG = Vortex.class.getSimpleName(); private VortexView _vortexView; @Override protected void onCreate(Bundle savedInstanceState...
159
1,003
package com.moxi.mogublog.utils; import lombok.extern.slf4j.Slf4j; import org.springframework.util.StringUtils; import java.util.ArrayList; import java.util.List; import java.util.Map; import java.util.regex.Matcher; import java.util.regex.Pattern; /** * web有关的工具类 * * @author 陌溪 * @date 2017年9月24日23:27:03 */ @S...
3,269
348
<filename>src/openms/thirdparty/evergreen/src/Language/TensorLang.hpp<gh_stars>100-1000 typedef struct TensorLangT { std::vector<double> flat_vector; std::vector<long> shape; } TensorLang;
75
525
<reponame>Eiygy-Veyron-Network/AppOpsX package com.zzzmode.appopsx.ui.permission; import android.content.Context; import android.content.DialogInterface; import android.content.DialogInterface.OnClickListener; import androidx.appcompat.app.AlertDialog; import androidx.recyclerview.widget.RecyclerView; import androidx....
2,498
449
{ "name": "button-css-ts", "description": "A simple Button test in a CSS & TS project", "command": "agrippa gen css-ts-button --styling css --ts" }
56
1,083
//===--- InterfaceAssociations.h - Associated types/conformances -*- C++ -*-===// // // This source file is part of the Swift.org open source project // // Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors // Licensed under Apache License v2.0 with Runtime Library Exception // // See https://swift.org/...
1,872
11,094
<filename>实践案例/B15-基于深度学习的代码搜索案例/src/3Model/args.py # Copyright (c) Microsoft. All rights reserved. # Licensed under the MIT license. See LICENSE file in the project root for full license information. import argparse def add_common_model_arguments(parser: argparse.ArgumentParser) -> None: """Add common arguments...
2,892
459
#pragma once #include "../types/program_shader.h" #include <oglplus/uniform.hpp> #include <oglplus/interop/glm.hpp> class DepthProgram : public ProgramShader { protected: struct UniformMatrices { oglplus::Uniform<glm::mat4> modelViewProjection; }; public: UniformMat...
253
672
<filename>velox/substrait/tests/FunctionTest.cpp /* * 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 * * http://www.apache.org/lic...
1,576
672
/* * Copyright (c) 2004 Apple Computer, Inc. All rights reserved. * * @APPLE_LICENSE_HEADER_START@ * * This file contains Original Code and/or Modifications of Original Code * as defined in and that are subject to the Apple Public Source License * Version 2.0 (the 'License'). You may not use this file except in...
571
2,151
<filename>content/browser/appcache/appcache_update_url_loader_request.cc<gh_stars>1000+ // Copyright (c) 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 "content/browser/appcache/appcache_update_url_loader_...
2,663
445
<filename>include/multiverso/util/async_buffer.h<gh_stars>100-1000 #ifndef MULTIVERSO_UTIL_ASYNC_BUFFER_H_ #define MULTIVERSO_UTIL_ASYNC_BUFFER_H_ #include <multiverso/table_interface.h> #include <multiverso/util/waiter.h> #include <thread> namespace multiverso { template<typename BufferType = void*> class ASyncBu...
1,166
17,375
# 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
437
4,054
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. package com.yahoo.vespa.indexinglanguage.parser; import com.yahoo.document.datatypes.*; import com.yahoo.vespa.indexinglanguage.expressions.Expression; import com.yahoo.vespa.indexinglanguage.parser.ParseException;...
488
558
<reponame>RogerChern/ProxylessNAS # ProxylessNAS: Direct Neural Architecture Search on Target Task and Hardware # <NAME>, <NAME>, <NAME> # International Conference on Learning Representations (ICLR), 2019. from utils.latency_estimator import * from utils.my_modules import * from utils.pytorch_utils import * def make...
725
521
/* * mrhoist.c * * SOFTWARE RIGHTS * * We reserve no LEGAL rights to the Purdue Compiler Construction Tool * Set (PCCTS) -- PCCTS is in the public domain. An individual or * company may do whatever they wish with source code distributed with * PCCTS or the code generated by PCCTS, including the incorporation o...
35,762
724
import unittest import cv2 import os class CamTest(unittest.TestCase): @classmethod def tearDown(cls): if os.path.exists(cls.img_path): os.remove(cls.img_path) @classmethod def setUp(cls): cls.img_path = os.path.join(os.getcwd(), "img.p...
457