max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
36,552 | <gh_stars>1000+
/* This file was generated by upbc (the upb compiler) from the input
* file:
*
* envoy/type/matcher/v3/struct.proto
*
* Do not edit -- your changes will be discarded when the file is
* regenerated. */
#include <stddef.h>
#include "upb/msg_internal.h"
#include "envoy/type/matcher/v3/struct.upb... | 658 |
1,172 | // Copyright (C) 2008 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 agreed t... | 1,247 |
348 | <reponame>chamberone/Leaflet.PixiOverlay
{"nom":"Mailleroncourt-Charette","circ":"2ème circonscription","dpt":"Haute-Saône","inscrits":249,"abs":112,"votants":137,"blancs":3,"nuls":16,"exp":118,"res":[{"nuance":"REM","nom":"<NAME>","voix":77},{"nuance":"FN","nom":"M. <NAME>","voix":41}]} | 117 |
764 | <filename>erc20/0x31497f218c005fE3d5eE87e5a33e133A909A7a4b.json
{
"symbol": "DTA",
"token_name": "<PASSWORD>",
"address": "0x31497f218c005fE3d5eE87e5a33e133A909A7a4b",
"total_supply": "21000000",
"suggested_gas_limit_setting": "60000",
"overview":{
"en": "The full name of the Digital Twin Agreement ... | 805 |
14,499 | <filename>infer/tests/codetoanalyze/java/pulse/AutoGenerated.java<gh_stars>1000+
/*
* 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.
*/
package codetoanalyze.java.infer;
/* @generated *... | 141 |
1,256 | <gh_stars>1000+
/*
char_width.cpp
Fullwidth support
*/
/*
Copyright © 2021 Far Group
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
1. Redistributions of source code must retain the above copyright
... | 9,136 |
467 | <filename>app/src/main/java/com/yoyiyi/soleil/module/region/RegionTypeActivity.java
package com.yoyiyi.soleil.module.region;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import com.annimon.stream.Stream;
import com.yoyiyi.soleil.R;
import com.yoyiyi.soleil.bean.region.Regio... | 1,247 |
1,056 | <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
* ... | 12,663 |
4,069 | //
// Use this file to import your target's public headers that you would like to expose to Swift.
//
//model
#import "YALTabBarItem.h"
//controller
#import "YALFoldingTabBarController.h"
//helpers
#import "YALAnimatingTabBarConstants.h" | 79 |
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... | 447 |
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... | 5,140 |
657 | <filename>lib/slack/web/docs/team.integrationLogs.json
{
"desc": "Gets the integration logs for the current team.",
"args": {
"service_id": {
"type" : "int",
"required" : false,
"desc" : "Filter logs to this service. Defaults to all logs."
},
"app_id": {
"type" : "int",
"required" : false,
... | 325 |
332 | <gh_stars>100-1000
package com.vk.api.sdk.objects.enums;
import com.google.gson.annotations.SerializedName;
import com.vk.api.sdk.queries.EnumParam;
public enum VideoPrivacy implements EnumParam {
@SerializedName("0")
ALL("0"),
@SerializedName("1")
FRIENDS("1"),
@SerializedName("2")
FRIENDS_... | 265 |
5,169 | {
"name": "IBentifiers",
"version": "1.2.0",
"summary": "Handle your identifiable IB elements swiftly.",
"description": "IBentifiers provide swifty shortcuts and extensions that ease handling of identifiable IB elements such as storyboards and NIBs.",
"homepage": "https://github.com/fellipecaetano/IBentifiers... | 231 |
348 | <gh_stars>100-1000
{"nom":"Ressons-le-Long","circ":"4ème circonscription","dpt":"Aisne","inscrits":596,"abs":318,"votants":278,"blancs":5,"nuls":1,"exp":272,"res":[{"nuance":"REM","nom":"<NAME>","voix":82},{"nuance":"LR","nom":"Mme <NAME>","voix":67},{"nuance":"FN","nom":"<NAME>","voix":64},{"nuance":"FI","nom":"Mme <N... | 250 |
5,538 | package com.jayway.jsonpath;
import org.junit.Test;
import java.util.ArrayList;
import java.util.List;
import static org.assertj.core.api.Assertions.assertThat;
public class EvaluationListenerTest extends BaseTest {
@Test
public void an_evaluation_listener_can_abort_after_one_result_using_fluent_api() {
... | 1,681 |
981 | <reponame>Alexmitter/box64<filename>src/wrapped/generated/wrappedlibcryptundefs.h<gh_stars>100-1000
/*******************************************************************
* File automatically generated by rebuild_wrappers.py (v2.1.0.16) *
*******************************************************************/
#ifndef __wr... | 117 |
1,602 | <reponame>MayukhSobo/chapel
/*
* Copyright 2021 Hewlett Packard Enterprise Development LP
* Other additional copyright holders may be indicated within.
*
* The entirety of this work is licensed under the Apache License,
* Version 2.0 (the "License"); you may not use this file except
* in compliance with the Licen... | 2,032 |
14,668 | // 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 ASH_PUBLIC_CPP_EXTERNAL_ARC_MESSAGE_CENTER_ARC_NOTIFICATION_DELEGATE_H_
#define ASH_PUBLIC_CPP_EXTERNAL_ARC_MESSAGE_CENTER_ARC_NOTIFICATION_DELEGA... | 580 |
2,053 | <reponame>zbum/scouter
/*
* Copyright 2015 the original author or authors.
* @https://github.com/scouter-project/scouter
*
* 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
*
* htt... | 1,183 |
2,039 | <gh_stars>1000+
/*-
*
* * Copyright 2015 Skymind,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... | 1,384 |
778 | <filename>modDbImpl/src/org/aion/db/store/XorDataSource.java
package org.aion.db.store;
import java.util.Collection;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Map;
import java.util.Optional;
import org.aion.db.impl.ByteArrayKeyValueStore;
import org.aion.util.bytes.ByteUtil;
public class X... | 1,249 |
2,151 | <reponame>bighitbiker3/webrtc
/*
* Copyright (c) 2015 The WebRTC 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 in the root of the source
* tree. An additional intellectual property rights grant can be found
* in th... | 6,757 |
1,536 | from tensorflow.keras.callbacks import Callback
class ExperimentLogCallback(Callback):
def __init__(self,
experiment_name,
params):
'''Takes as input the name of the experiment which will be
used for creating a .log file with the outputs and the params
d... | 1,091 |
585 | /*!
* Copyright (c) 2017-2020 by Contributors
* \file compiler.cc
* \brief Registry of compilers
*/
#include <treelite/compiler.h>
#include <treelite/compiler_param.h>
#include <treelite/logging.h>
#include <rapidjson/document.h>
#include <limits>
#include "./ast_native.h"
#include "./failsafe.h"
namespace treelit... | 1,222 |
1,056 | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | 3,049 |
5,169 | <reponame>ftapp/cocoapods<filename>Specs/WalmartSDKKit/1.0.0/WalmartSDKKit.podspec.json
{
"name": "WalmartSDKKit",
"version": "1.0.0",
"summary": "Walmart SDK Kit for iOS",
"description": "Walmart SDK is designed to let you drive sales right in your app or on your website. SDK components like BuyNow button can ... | 430 |
879 | <filename>plugin/localstorage/src/main/java/org/zstack/storage/primary/local/LocalStorageKvmFactory.java<gh_stars>100-1000
package org.zstack.storage.primary.local;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.transaction.annotation.Transactional;
import org.zstack.core.clo... | 2,746 |
648 | <filename>spec/hl7.fhir.core/3.0.1/package/DataElement-StructureMap.group.rule.rule.json
{"resourceType":"DataElement","id":"StructureMap.group.rule.rule","meta":{"lastUpdated":"2017-04-19T07:44:43.294+10:00"},"url":"http://hl7.org/fhir/DataElement/StructureMap.group.rule.rule","status":"draft","experimental":true,"str... | 189 |
412 | <gh_stars>100-1000
/*******************************************************************\
Module: value_set_fi_Fp_removal
Author: <NAME>, <EMAIL>
\*******************************************************************/
/// \file
/// flow insensitive value set function pointer removal
#ifndef CPROVER_GOTO_INSTRUMENT_VA... | 301 |
9,959 | class CleanupName {
void test() {
@lombok.Cleanup("toString") Object o = "Hello World!";
System.out.println(o);
}
void test2() {
@lombok.Cleanup(value="toString") Object o = "Hello World too!";
System.out.println(o);
}
} | 95 |
639 | //
// Created by zeyi on 1/10/19.
//
#include "thundergbm/parser.h"
#include <thundergbm/dataset.h>
#include "thundergbm/predictor.h"
#ifdef _WIN32
INITIALIZE_EASYLOGGINGPP
#endif
int main(int argc, char **argv) {
el::Loggers::reconfigureAllLoggers(el::ConfigurationType::Format, "%datetime %level %fbase:%line ... | 603 |
3,102 | <filename>clang/test/SemaCXX/type_pack_element.cpp
// RUN: %clang_cc1 -fsyntax-only -verify -std=c++11 %s
static_assert(__has_builtin(__type_pack_element), "");
using SizeT = decltype(sizeof(int));
template <SizeT i, typename ...T>
using TypePackElement = __type_pack_element<i, T...>;
template <int i>
struct X;
st... | 1,154 |
1,668 | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
def rewrite_business_segment_from_pc(apps, schema_editor):
Service = apps.get_model('assets', 'Service')
for service in Service.objects.filter(profit_center__business_segment__isnull=False):
print... | 616 |
677 | /*
* Copyright (C) 2008-2017 Apple Inc. All rights reserved.
* Copyright (C) 2012 Research In Motion Limited. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistributions of sou... | 2,980 |
1,253 | #include <iostream>
using namespace std;
int main()
{
int n;
cout<<"Enter any number: "<<endl;
cin>>n;
cout<< (n&1?"Number is Odd":"Number is Even")<<endl;
}
| 69 |
573 | <gh_stars>100-1000
// Copyright 2015, VIXL authors
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
//
// * Redistributions of source code must retain the above copyright notice,
// this ... | 24,307 |
1,546 | <gh_stars>1000+
/*
* Copyright (C) 2021 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless... | 3,382 |
1,056 | <filename>ide/image/src/org/netbeans/modules/image/ZoomOutAction.java
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
*... | 813 |
424 | import os
import sys
import time
import siliconcompiler
# Setting up the experiment
def main():
rootdir = os.path.dirname(__file__)
target = "skywater130_demo"
jobname = 'job0'
examples = [{'heartbeat' : 1000},
{'picorv32' : 1000},
{'aes' : 1500}]
results = {}
... | 1,003 |
607 | package dev.cheerfun.pixivic.biz.web.app.repository;
import dev.cheerfun.pixivic.biz.web.app.po.ExternalLink;
import org.springframework.data.jpa.repository.JpaRepository;
public interface ExternalLinkRepository extends JpaRepository<ExternalLink, Integer> {
}
| 89 |
2,748 | /*
* 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 ... | 1,102 |
1,573 | // Copyright (c) 2019 The Bitcoin developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#ifndef BITCOIN_TEST_LCG_H
#define BITCOIN_TEST_LCG_H
#include <cstdint>
// Simple 32-bit linear congruential generator with 64-bit i... | 395 |
1,682 | /*
Copyright (c) 2018 LinkedIn Corp.
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... | 1,068 |
843 | # Generated by Django 3.2.6 on 2021-09-03 08:50
from django.db import migrations
def rm_import_waffle_switch(apps, schema_editor):
Switch = apps.get_model('waffle', 'Switch')
# drop the waffle switch blocklist_auto_import to avoid confusion
Switch.objects.filter(name='blocklist_auto_import').delete()
cl... | 231 |
2,059 | /*******************************************************************
* File automatically generated by rebuild_wrappers.py (v2.0.0.10) *
*******************************************************************/
#ifndef __wrappedlibxcbdri2UNDEFS_H_
#define __wrappedlibxcbdri2UNDEFS_H_
#undef xFEpuu
#endif // __wrappedlib... | 97 |
1,124 | from scipy.io.wavfile import read as wavread
import numpy as np
import tensorflow as tf
import sys
def decode_audio(fp, fs=None, num_channels=1, normalize=False, fast_wav=False):
"""Decodes audio file paths into 32-bit floating point vectors.
Args:
fp: Audio file path.
fs: If specified, resamples decod... | 2,368 |
758 | <reponame>Amanda-Barbara/nvcaffe
#ifndef CAFFE_CUDNN_POOLING_LAYER_HPP_
#define CAFFE_CUDNN_POOLING_LAYER_HPP_
#include <vector>
#include "caffe/blob.hpp"
#include "caffe/layer.hpp"
#include "caffe/proto/caffe.pb.h"
#include "caffe/layers/pooling_layer.hpp"
namespace caffe {
#ifdef USE_CUDNN
/**
* @brief cuDNN im... | 769 |
575 | <filename>remoting/host/backoff_timer.cc
// Copyright 2015 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 "remoting/host/backoff_timer.h"
#include "base/bind.h"
#include <memory>
#include <utility>
namespace ... | 654 |
945 | <gh_stars>100-1000
// This is core/vnl/algo/vnl_solve_qp.h
#ifndef vnl_solve_qp_h_
#define vnl_solve_qp_h_
//:
// \file
// \brief Functions to solve various forms of constrained quadratic programming
// \author <NAME>
#include <vnl/vnl_vector.h>
#include <vnl/vnl_matrix.h>
#include <vnl/algo/vnl_algo_export.h>
//: ... | 1,619 |
335 | <filename>examples/32_lora_wan/main/main.cpp
#include <lmic.h>
#include <hal/hal.h>
#include <SPI.h>
#include <U8x8lib.h>
#define BUILTIN_LED 25
#define SCK 5 // GPIO5 -- SX127x's SCK
#define MISO 19 // GPIO19 -- SX127x's MISO
#define MOSI 27 // GPIO27 -- SX127x's MOSI
#define SS 18 // GPIO18... | 3,692 |
1,173 | {
"url": "http://www.lefigaro.fr/conjoncture/2013/04/05/20002-20130405ARTFIG00473-montebourg-envisage-des-privatisations-partielles.php",
"target_language": "fr",
"expected": {
"meta_description": "Selon le ministre du Redressement productif interview\u00e9 par le Wall Street Journal, le gouverneme... | 707 |
1,073 | @import templates_top;
template<typename T> class Vector;
template<typename T> class Vector;
template<typename T> class List;
template<> class List<bool> {
public:
void push_back(int);
};
namespace N {
template<typename T> class Set;
}
namespace N {
template<typename T> class Set {
public:
void insert(T)... | 649 |
8,657 | <filename>deps/mruby/mrbgems/mruby-socket/test/sockettest.c
#include <stdio.h>
#include <stdlib.h>
#include "mruby.h"
#include "mruby/error.h"
#if defined(_WIN32) || defined(_WIN64)
#include <io.h>
#ifdef _MSC_VER
#include <fcntl.h>
#include <sys/stat.h>
#define open _open
#define close _close
#define unlink _unl... | 791 |
781 | <gh_stars>100-1000
//-------------------------------------------------------------------------------------------------------
// Copyright (C) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
//--------------------------------------... | 5,895 |
852 | import FWCore.ParameterSet.Config as cms
from DQMOffline.Trigger.topMonitoring_cfi import topMonitoring
mssmHbbMonitoring = topMonitoring.clone()
mssmHbbMonitoring.FolderName = cms.string('HLT/HIG/default/')
mssmHbbMonitoring.histoPSet.lsPSet = cms.PSet(
nbins = cms.uint32 ( 250 ),
xmin = cms.double( 0.),
x... | 3,090 |
778 | <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 licenses this file
* to you under the Apache License, Version 2.0 (the... | 2,148 |
12,964 | <reponame>udaytejam/Algorithms
/** Time Complexity ~O(log(a + b)) */
package com.williamfiset.algorithms.math;
public class ExtendedEuclideanAlgorithm {
// This function performs the extended euclidean algorithm on two numbers a and b.
// The function returns the gcd(a,b) as well as the numbers x and y such
// ... | 284 |
2,762 | <filename>src/box/sql/vdbetrace.c
/*
* Copyright 2010-2017, Tarantool AUTHORS, please see AUTHORS file.
*
* Redistribution and use in source and binary forms, with or
* without modification, are permitted provided that the following
* conditions are met:
*
* 1. Redistributions of source code must retain the abov... | 1,958 |
544 | <filename>AppKit/GTMNSAnimatablePropertyContainerTest.h
//
// GTMNSAnimatablePropertyContainerTest.h
//
// Copyright (c) 2010 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 c... | 499 |
399 | <filename>athena-federation-sdk/src/main/java/com/amazonaws/athena/connector/lambda/serde/DelegatingSerializer.java
/*-
* #%L
* Amazon Athena Query Federation SDK
* %%
* Copyright (C) 2019 - 2020 Amazon Web Services
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this fil... | 796 |
373 | <gh_stars>100-1000
/** @file
This file defines the PPI for notifying PlatformInitPreMem
of temporary memory being disabled.
Copyright (c) 2019, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#ifndef _PLATFORM_INIT_TEMP_RAM_EXIT_PPI_H_
#define _PLATFORM_INIT... | 623 |
6,580 | # QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals.
# Lean Algorithmic Trading Engine v2.0. Copyright 2014 QuantConnect 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 Licen... | 2,275 |
306 | <gh_stars>100-1000
package com.dueeeke.videoplayer.util;
import android.util.Log;
/**
* 日志类
* Created by Devlin_n on 2017/6/5.
*/
public class L {
private static final String TAG = "DKPlayer";
public static void d(String msg) {
Log.d(TAG, msg);
}
public static void e(String msg) {
... | 154 |
311 | <gh_stars>100-1000
import deal
@deal.reason(ZeroDivisionError, lambda a, b: b == 0)
@deal.reason(ValueError, lambda a, b: a == b, message='a is equal to b')
@deal.raises(ValueError, IndexError, ZeroDivisionError)
@deal.pre(lambda a, b: b != 0)
@deal.pre(lambda a, b: b != 0, message='b is not zero')
@deal.ensure(lambd... | 223 |
938 | package slimeknights.tconstruct.tools.modifiers.ability.armor;
import net.minecraft.entity.LivingEntity;
import net.minecraft.entity.player.ServerPlayerEntity;
import net.minecraft.util.math.vector.Vector3d;
import net.minecraftforge.common.ForgeMod;
import net.minecraftforge.common.MinecraftForge;
import net.minecraf... | 993 |
1,996 | import html
import sweetviz.sv_html as sv_html
from sweetviz.sv_types import NumWithPercent, FeatureToProcess
def do_detail_text(to_process: FeatureToProcess, updated_dict: dict):
updated_dict["detail"] = dict()
detail = updated_dict["detail"]
# Compute COUNT stats (i.e. below graph)
# --------------... | 738 |
439 | package com.haskforce.settings;
import com.haskforce.utils.NotificationUtil;
import com.intellij.ide.util.PropertiesComponent;
import com.intellij.notification.NotificationType;
import com.intellij.openapi.diagnostic.Logger;
import com.intellij.openapi.project.Project;
import org.jetbrains.annotations.NotNull;
import ... | 1,601 |
918 | /*
* 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 ... | 617 |
341 | <gh_stars>100-1000
import pytest
from stellar_sdk import xdr as stellar_xdr
from stellar_sdk.exceptions import ValueError
from stellar_sdk.muxed_account import MuxedAccount
from stellar_sdk.strkey import StrKey
class TestMuxedAccount:
def test_init_with_account_id_id(self):
account_id = "<KEY>"
a... | 1,167 |
312 | /*
dla.c
Contributed by <NAME>
This program 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 option) any later version.
This program is distribu... | 1,560 |
5,169 | {
"name": "GoodsTitleAttr",
"version": "0.0.1",
"summary": "A TestDemo",
"homepage": "https://github.com/liushouxun/Test",
"license": "MIT",
"authors": {
"liusx": "<EMAIL>"
},
"source": {
"git": "https://github.com/liushouxun/Test.git",
"tag": "0.0.1"
},
"source_files": "GoodsTitleAttr/*... | 187 |
30,023 | """Tests for the RTSPtoWebRTC integration."""
| 15 |
333 | #ifndef IRODS_TICKET_ADMIN_H
#define IRODS_TICKET_ADMIN_H
#include "objInfo.h"
struct RcComm;
typedef struct TicketAdminInput {
char *arg1;
char *arg2;
char *arg3;
char *arg4;
char *arg5;
char *arg6;
struct KeyValPair condInput;
} ticketAdminInp_t;
#define ticketAdminInp_PI "str *arg1; s... | 242 |
422 | <gh_stars>100-1000
from sqlobject import *
from sqlobject.col import validators
from sqlobject.tests.dbtest import *
########################################
## Enum test
########################################
class Enum1(SQLObject):
l = EnumCol(enumValues=['a', 'bcd', 'e'])
def testBad():
setupClass(Enum... | 645 |
3,782 | <gh_stars>1000+
import numpy as np
def get_distribution(GC_fraction):
from simdna.util import DiscreteDistribution
return DiscreteDistribution({
'A': (1 - GC_fraction) / 2,
'C': GC_fraction / 2,
'G': GC_fraction / 2,
'T': (1 - GC_fraction) / 2
})
def simple_motif_embedding(motif_name, ... | 5,519 |
556 | from unittest import TestCase
import numpy as np
import matplotlib.pyplot as plt
import time
from phi import math
from phi import field
from phi.geom import Box
from phi.math import spatial
from phi.physics._boundaries import Domain, PERIODIC
from .numpy_reference import HW, Namespace
from .phi_version import step_gr... | 3,950 |
14,668 | // Copyright 2020 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chromecast/media/cma/backend/proxy/audio_decoder_pipeline_node.h"
#include "chromecast/media/api/decoder_buffer_base.h"
#include "chromecast/pu... | 1,484 |
7,857 | #include "QtCore/QSettings/qsettings_wrap.h"
#include "Extras/Utils/nutils.h"
#include "QtCore/QVariant/qvariant_wrap.h"
Napi::FunctionReference QSettingsWrap::constructor;
Napi::Object QSettingsWrap::init(Napi::Env env, Napi::Object exports) {
Napi::HandleScope scope(env);
char CLASSNAME[] = "QSettings";
Napi... | 892 |
553 | <gh_stars>100-1000
package com.muses.base.search.biz;
import org.apache.lucene.analysis.Analyzer;
import org.apache.lucene.analysis.TokenStream;
import org.apache.lucene.analysis.cn.smart.SmartChineseAnalyzer;
import org.apache.lucene.document.Document;
import org.apache.lucene.index.DirectoryReader;
import org.apache... | 1,411 |
1,091 | /*
* Copyright 2018-present Open Networking 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
*
* Unless required by appli... | 1,006 |
348 | <reponame>chamberone/Leaflet.PixiOverlay<gh_stars>100-1000
{"nom":"Morthomiers","circ":"2ème circonscription","dpt":"Cher","inscrits":494,"abs":263,"votants":231,"blancs":11,"nuls":6,"exp":214,"res":[{"nuance":"MDM","nom":"<NAME>","voix":111},{"nuance":"COM","nom":"<NAME>","voix":103}]} | 117 |
1,682 | /*
Copyright (c) 2020 LinkedIn Corp.
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... | 270 |
678 | <reponame>RockerHX/FishChat
//
// Generated by class-dump 3.5 (64 bit).
//
// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>.
//
#import "ReaderMessageViewModel.h"
@class NSString;
@interface VideoReaderMessageViewModel : ReaderMessageViewModel
{
_Bool m_isTitleMultiRow;
}
+ (_Boo... | 332 |
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.storage.models;
import com.azure.core.annotation.Fluent;
import com.azure.core.util.logging.ClientLogger;
import com.azure.resou... | 1,828 |
872 | <gh_stars>100-1000
#!/usr/bin/python3
"""
Given two arrays A and B of equal size, the advantage of A with respect to B is
the number of indices i for which A[i] > B[i].
Return any permutation of A that maximizes its advantage with respect to B.
Example 1:
Input: A = [2,7,11,15], B = [1,10,4,11]
Output: [2,11,7,15]
E... | 827 |
611 | <reponame>theredled/idea-php-symfony2-plugin<filename>src/main/java/fr/adrienbrault/idea/symfony2plugin/twig/annotation/TemplateAnnotationReferences.java
package fr.adrienbrault.idea.symfony2plugin.twig.annotation;
import com.intellij.psi.PsiReference;
import com.jetbrains.php.lang.psi.elements.StringLiteralExpression... | 763 |
5,279 | <filename>sdks/java/core/src/main/java/org/apache/beam/sdk/transforms/reflect/OnTimerInvokerFactory.java
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright owners... | 459 |
819 | <filename>seurat/ingest/proto_view_group_loader.cc<gh_stars>100-1000
/*
Copyright 2017 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/lic... | 2,120 |
476 | <gh_stars>100-1000
#include "planes.h"
#include "../glx/hardext.h"
#include "loader.h"
#include "matrix.h"
#include "matvec.h"
void APIENTRY_GL4ES gl4es_glClipPlanef(GLenum plane, const GLfloat *equation)
{
/*
When glClipPlane is called,
equation is transformed by the inverse of the modelview mat... | 548 |
852 | /**\class CSCToAFEB
*
* CSC layer, wire vs AFEB channel map.
*
* \author <NAME>, CMU
*/
#include <OnlineDB/CSCCondDB/interface/CSCToAFEB.h>
#include <iostream>
using namespace std;
/// return AFEB channel number
int CSCToAFEB::getAfebCh(int layer, int wiregroup) const {
int wire = wiregroup - 8 * ((wiregrou... | 626 |
396 | package com.yeungeek.monkeyandroid.ui.main;
import com.yeungeek.monkeyandroid.data.DataManager;
import com.yeungeek.monkeyandroid.data.model.User;
import com.yeungeek.monkeyandroid.rxbus.event.BusEvent;
import com.yeungeek.monkeyandroid.rxbus.event.SignInEvent;
import com.yeungeek.monkeyandroid.ui.base.presenter.MvpLc... | 1,333 |
1,272 | <reponame>immortalkrazy/avs-device-sdk
/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com... | 5,942 |
359 | /*
* Copyright (C) 2021 Xilinx, Inc
* SPDX-License-Identifier: Apache-2.0
*/
/****************************************************************
Kernel to kernel streaming example consisting of three compute
units in a linear hardware pipeline.
1) Adder kernel that adds two input vectors from global memory
and strea... | 3,097 |
772 | {
"no-NO": {
"data": {
"bubble_choice_description": {
"courseD_bee_nestedLoops8_2021": "Samle inn all nektaren fra hver blomst og lag honning i alle bikubene. Bruk løkke i løkke."
}
}
}
} | 110 |
648 | <reponame>kiyoon/Video-Swin-Transformer
import numpy as np
from mmcv.utils import assert_dict_has_keys
from numpy.testing import assert_array_equal
from mmaction.datasets.pipelines import ColorJitter
class TestColor:
@staticmethod
def test_color_jitter():
imgs = list(
np.random.randint(0... | 1,530 |
8,451 | <gh_stars>1000+
/*******************************************************************************
* ___ _ ____ ____
* / _ \ _ _ ___ ___| |_| _ \| __ )
* | | | | | | |/ _ \/ __| __| | | | _ \
* | |_| | |_| | __/\__ \ |_| |_| | |_) |
* \__\_\\__,_|\___||___/\__|____/|____/
*
... | 748 |
348 | <reponame>chamberone/Leaflet.PixiOverlay<gh_stars>100-1000
{"nom":"Cessey","circ":"1ère circonscription","dpt":"Doubs","inscrits":301,"abs":172,"votants":129,"blancs":12,"nuls":4,"exp":113,"res":[{"nuance":"SOC","nom":"Mme <NAME>","voix":65},{"nuance":"REM","nom":"Mme <NAME>","voix":48}]} | 119 |
322 | <filename>torch_ipex/csrc/verbose.cpp
#include "verbose.hpp"
#include "cpu/mkldnn/MKLDNNCommon.h"
namespace torch_ipex {
namespace verbose {
int _mkldnn_set_verbose(int level) {
return torch_ipex::cpu::mkldnn_set_verbose(level);
}
} // namespace verbose
} // namespace torch_ipex
| 115 |
1,821 | <reponame>hangqiu/pixie
/*
* Copyright 2018- The Pixie Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required... | 1,576 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.