max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
318 | <filename>Core/Install/elxComponentDatabase.h
/*=========================================================================
*
* Copyright UMC Utrecht and contributors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may ... | 1,711 |
559 | /**
* Copyright (c) 2014 Netflix, 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... | 937 |
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 ... | 12,286 |
9,782 | /*
* 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
* distribut... | 2,748 |
862 | <filename>python/plotting/plot_soft_contact.py
#!/usr/bin/python
#
# Copyright 2020 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-... | 597 |
7,442 | <filename>Example/ZFPlayer/TableView/Model/ZFTableData.h
//
// ZFTableData.h
// ZFPlayer
//
// Created by 紫枫 on 2018/4/24.
// Copyright © 2018年 紫枫. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
@interface ZFTableData : NSObject
@property (nonatomic, copy) NSString *nick_name;
... | 327 |
317 | <filename>include/edyn/serialization/entt_s11n.hpp<gh_stars>100-1000
#ifndef EDYN_SERIALIZATION_ENTT_S11N_HPP
#define EDYN_SERIALIZATION_ENTT_S11N_HPP
#include <entt/entity/fwd.hpp>
#include <entt/entity/entity.hpp>
namespace edyn {
template<typename Archive>
void serialize(Archive &archive, entt::entity &entity) {
... | 278 |
17,481 | <filename>javatests/dagger/internal/codegen/ConflictingEntryPointsTest.java
/*
* Copyright (C) 2018 The Dagger 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.a... | 4,166 |
2,996 | <reponame>jhong97/Terasology<filename>engine/src/main/java/org/terasology/engine/network/internal/JoinStatusImpl.java
// Copyright 2021 The Terasology Foundation
// SPDX-License-Identifier: Apache-2.0
package org.terasology.engine.network.internal;
import com.google.common.util.concurrent.AtomicDouble;
import org.tera... | 695 |
324 | /*
* 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,116 |
7,892 | <filename>src/tracks/ui/CommonTrackPanelCell.cpp
/**********************************************************************
Audacity: A Digital Audio Editor
CommonTrackPanelCell.cpp
<NAME> split from TrackPanel.cpp
**********************************************************************/
#include "CommonTrackPanelCell.... | 1,563 |
118,175 | /*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
#pragma once
#include <butter/butter.h>
#ifdef BUTTER_USE_FOLLY_CONTAINERS
#include <folly/container/F14Set.h>
#else
#include ... | 216 |
412 | <filename>regression/cbmc/cprover_bool1/main.c
#include <assert.h>
int main()
{
int y;
__CPROVER_bool x = y;
assert(x != (__CPROVER_bool)y);
}
| 71 |
310 | {
"name": "Slimblade",
"description": "A trackball with laser sensors.",
"url": "https://www.amazon.com/Kensington-Slimblade-Trackball-USB-K72327US/dp/B001MTE32Y"
} | 68 |
1,695 | <reponame>happybin92/trino
/*
* 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 wri... | 966 |
22,028 | <reponame>shipan3452/algo<filename>c-cpp/09_queue/linked_queue.hpp<gh_stars>1000+
/**
* Created by <NAME> (Liam0205) on 2018/10/10.
*/
#ifndef QUEUE_LINKED_QUEUE_HPP_
#define QUEUE_LINKED_QUEUE_HPP_
#include <memory>
template <typename T>
struct Node {
using ptr_t = std::shared_ptr<Node<T>>;
T data;
... | 927 |
884 | # Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
from typing import Union, TYPE_CHECKING
from cdm.enums import CdmObjectType
from cdm.persistence import PersistenceLayer
from . import utils
from .types import A... | 777 |
348 | {"nom":"Loudun","circ":"4ème circonscription","dpt":"Vienne","inscrits":5256,"abs":2955,"votants":2301,"blancs":149,"nuls":64,"exp":2088,"res":[{"nuance":"UDI","nom":"<NAME>-<NAME>","voix":1070},{"nuance":"MDM","nom":"M. <NAME>","voix":1018}]} | 102 |
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... | 1,284 |
2,226 | <reponame>Oasis256/NymphCast<gh_stars>1000+
/* Copyright 2012-2017 <NAME> <<EMAIL>>
This file is part of lcdapi.
lcdapi 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 3 of
t... | 374 |
2,753 | <reponame>ShankarNara/shogun<gh_stars>1000+
#include <gtest/gtest.h>
#include <fstream>
#include <shogun/base/ShogunEnv.h>
#include <shogun/io/stream/FileOutputStream.h>
using namespace shogun;
using namespace std;
TEST(FileOutputStream, write)
{
string fname = "test123";
string_view test_str("asdf");
auto fs_reg... | 345 |
450 | package net.openhft.chronicle.core.threads;
import net.openhft.affinity.Affinity;
import net.openhft.affinity.AffinityLock;
import org.junit.Test;
import java.util.BitSet;
import java.util.concurrent.BlockingQueue;
import java.util.concurrent.LinkedBlockingQueue;
import java.util.concurrent.TimeUnit;
import static o... | 786 |
5,703 | /*
*
* Copyright 2015 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required... | 342 |
14,922 | /* nuklear - 1.32.0 - public domain */
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#include <stdio.h>
#include <string.h>
#include <limits.h>
#include <time.h>
#define WINDOW_WIDTH 800
#define WINDOW_HEIGHT 600
#define NK_INCLUDE_FIXED_TYPES
#define NK_INCLUDE_STANDARD_IO
#define NK_INCLUDE_STANDARD_VARARGS
#def... | 2,427 |
1,396 | <filename>core/src/main/java/org/jdbi/v3/core/mapper/reflect/ColumnNameMatcher.java<gh_stars>1000+
/*
* 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/LIC... | 589 |
545 | #include <iostream>
int main() {
int n;
auto isZero = [&n] { return n > 0 ? --n, false : true; };
// Use comma expression to return bool value
std::cin >> n;
while (!isZero())
std::cout << n << std::endl;
isZero();
std::cout << n << std::endl;
//std::cout << typeid(isZero()).name() << std::endl;
... | 132 |
14,668 | <reponame>zealoussnow/chromium
// 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 "fuchsia/engine/browser/navigation_policy_throttle.h"
#include <fuchsia/web/cpp/fidl.h>
#include <lib/fidl/cpp/bi... | 2,403 |
486 | <reponame>mckenzielong/memoryjs
#include <node.h>
#include <windows.h>
#include <TlHelp32.h>
#include <vector>
#include "memory.h"
memory::memory() {}
memory::~memory() {}
std::vector<MEMORY_BASIC_INFORMATION> memory::getRegions(HANDLE hProcess) {
std::vector<MEMORY_BASIC_INFORMATION> regions;
MEMORY_BASIC_INFOR... | 201 |
1,755 | <reponame>cclauss/VTK
/*=========================================================================
Program: Visualization Toolkit
Module: vtkMotionFXCFGReader.h
Copyright (c) <NAME>, <NAME>, <NAME>
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
This sof... | 881 |
880 | <filename>logback-android/src/test/java/ch/qos/logback/core/helpers/FileFilterUtilTest.java<gh_stars>100-1000
/**
* Copyright 2019 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
... | 960 |
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 ... | 939 |
5,813 | <filename>integration-tests/quickstart-it.json<gh_stars>1000+
{
"broker_host" : "localhost",
"broker_port" : "8082",
"broker_tls_url" : "http://localhost:8082",
"router_host" : "localhost",
"router_port" : "8888",
"router_tls_url" : "http://localhost:8888",
"indexer_host" : "localhost",
"inde... | 235 |
14,668 | // 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.
#include "components/variations/service/variations_safe_mode_constants.h"
namespace variations {
const base::FilePath::CharType kVariationsFilename[] =
... | 182 |
3,428 | {"id":"02192","group":"easy-ham-1","checksum":{"type":"MD5","value":"41f1b8c296ad29aad5d34d66834cb265"},"text":"From <EMAIL> Wed Oct 2 11:44:38 2002\nReturn-Path: <<EMAIL>>\nDelivered-To: y<EMAIL>ass<EMAIL>int.org\nReceived: from localhost (jalapeno [127.0.0.1])\n\tby jmason.org (Postfix) with ESMTP id 187F016F16\n\t... | 737 |
393 | #include "../TopicModel/DT.h"
#include "module.h"
#include "utils.h"
using namespace std;
tomoto::RawDoc::MiscType DT_misc_args(TopicModelObject* self, const tomoto::RawDoc::MiscType& o)
{
tomoto::RawDoc::MiscType ret;
ret["timepoint"] = getValueFromMiscDefault<uint32_t>("timepoint", o, "`DTModel` requires a `time... | 5,307 |
938 | <reponame>brickviking/TinkersConstruct<gh_stars>100-1000
{
"type": "tconstruct:material_fluid",
"fluid": {
"tag": "tconstruct:ender_slime",
"amount": 250
},
"temperature": 70,
"output": "tconstruct:enderslime"
} | 94 |
648 | <filename>spec/hl7.fhir.core/1.0.2/package/DataElement-ValueSet.publisher.json
{"resourceType":"DataElement","id":"ValueSet.publisher","meta":{"lastUpdated":"2015-10-24T07:41:03.495+11:00"},"url":"http://hl7.org/fhir/DataElement/ValueSet.publisher","status":"draft","experimental":true,"stringency":"fully-specified","el... | 236 |
569 | package de.tu_darmstadt.seemoo.nfcgate.nfc.config;
/**
* Represents all NCI configuration options that can occur in initial card data
*/
public enum OptionType {
// LISTEN A
// ATQA[0]
LA_BIT_FRAME_SDD(0x30),
// ATQA[1]
LA_PLATFORM_CONFIG(0x31),
// SAK
LA_SEL_INFO... | 817 |
10,225 | package io.quarkus.funqy.runtime;
import java.util.Optional;
import io.quarkus.runtime.annotations.ConfigItem;
import io.quarkus.runtime.annotations.ConfigPhase;
import io.quarkus.runtime.annotations.ConfigRoot;
@ConfigRoot(phase = ConfigPhase.RUN_TIME)
public class FunqyConfig {
/**
* The function to expo... | 193 |
502 | <gh_stars>100-1000
/**
* Copyright 1996-2013 Founder International 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
... | 3,762 |
480 | <filename>polardbx-optimizer/src/main/java/com/alibaba/polardbx/optimizer/config/table/statistic/StatisticDataTableSource.java
/*
* 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 Licen... | 2,030 |
323 | <reponame>jiangjiang66/SpringBoot3<filename>springboot-security/src/main/java/cn/huanzi/qch/springbootsecurity/sysuser/service/SysUserServiceImpl.java
package cn.huanzi.qch.springbootsecurity.sysuser.service;
import cn.huanzi.qch.springbootsecurity.common.pojo.Result;
import cn.huanzi.qch.springbootsecurity.common.ser... | 443 |
7,482 | <reponame>rockonedege/rt-thread
/*
* Copyright (c) 2006-2021, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
* Date Author Notes
* 2018-11-06 SummerGift first version
*/
#include "board.h"
void SystemClock_Config(void)
{
RCC_OscInitTypeDef RCC_OscIn... | 905 |
1,056 | <filename>java/beans/src/org/netbeans/modules/beans/beaninfo/BiIconEditor.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 thi... | 11,990 |
14,425 | /**
* 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... | 476 |
303 | <filename>app/src/main/cpp/pdfium/include/pdfwindow/PWL_EditCtrl.h
// Copyright 2014 PDFium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
#ifndef _P... | 2,548 |
3,200 | /**
* Copyright 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 applicable law... | 723 |
1,778 | /*
* Copyright (c) 2014-2018 Cesanta Software Limited
* 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
*
* ... | 2,506 |
2,113 | <gh_stars>1000+
//~~~~~~~~~~~~~~~~~~~~//~~~~~~~~~~~~~~~~~~~~//~~~~~~~~~~~~~~~~~~~~//~~~~~~~~~~~~~~~~~~~~~//
// 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 copy
// of th... | 772 |
1,338 | /*
* Copyright 2009-2012 Haiku Inc. All rights reserved.
* Distributed under the terms of the MIT License.
*
* Authors:
* <NAME> <<EMAIL>>
* <NAME> <<EMAIL>>
* <NAME> <<EMAIL>>
*/
#include "ExtensionsView.h"
#include <Catalog.h>
#include <GL/gl.h>
#include <GL/glu.h>
#include <GroupLayout.h>
#include <Gro... | 773 |
429 | <gh_stars>100-1000
package io.airlift.configuration;
public interface ConfigurationBindingListener
{
void configurationBound(ConfigurationBinding<?> configurationBinding, ConfigBinder configBinder);
}
| 55 |
852 | #include "FWCore/Framework/interface/MakerMacros.h"
#include "SimCalorimetry/HcalSimProducers/interface/HcalDigiProducer.h"
#include "SimGeneral/MixingModule/interface/DigiAccumulatorMixModFactory.h"
DEFINE_DIGI_ACCUMULATOR(HcalDigiProducer);
| 90 |
1,061 | package city.thesixsectorteam.wheelworld.job.dao;
import city.thesixsectorteam.wheelworld.job.domain.JobLog;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
public interface JobLogMapper extends BaseMapper<JobLog> {
} | 84 |
3,252 | <reponame>dk25021999/mmf
# Copyright (c) Facebook, Inc. and its affiliates.
import unittest
import tests.test_utils as test_utils
import torch
from mmf.common.report import Report
from mmf.common.sample import SampleList
class TestReport(unittest.TestCase):
def _build_report(self):
tensor_a = torch.tens... | 910 |
1,056 | <reponame>timfel/netbeans<filename>enterprise/j2ee.dd/src/org/netbeans/modules/j2ee/dd/impl/common/GetAllEjbs.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 copyri... | 1,283 |
697 | import java.awt.Dimension;
import java.awt.Point;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import nz.sodium.*;
public class characters {
static <A> Cell<List<A>> sequence(Collection<Cell<A>> in) {
Cell<List<A>> out = new Cell<>(new ArrayList<A>());
for (Cell<A... | 1,115 |
450 | /* Empty for now. */
| 7 |
1,967 | //
// FormatterKit.h
// FormatterKit
//
// Created by <NAME> on 26/03/16.
// Copyright © 2016 FormatterKit. All rights reserved.
//
#import <Foundation/Foundation.h>
//! Project version number for FormatterKit.
FOUNDATION_EXPORT double FormatterKitVersionNumber;
//! Project version string for FormatterKit.
FOUND... | 301 |
756 | /*
* Copyright (c) 2013 <NAME>
*
* This file is part of GamingAnywhere (GA).
*
* GA is free software; you can redistribute it and/or modify it
* under the terms of the 3-clause BSD License as published by the
* Free Software Foundation: http://directory.fsf.org/wiki/License:BSD_3Clause
*
* GA is distributed in... | 1,176 |
709 | package com.olacabs.jackhammer.tool.interfaces.request;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.olacabs.jackhammer.models.Scan;
import javax.websocket.EncodeException;
import javax.websocket.Encoder;
import javax.websocket.EndpointConfig;
import java.io.IOException;
public class ScanRequestEn... | 299 |
416 | # Copyright 2017 <NAME>
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at:
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, soft... | 11,409 |
692 | <reponame>rajshah4/pytorch-widedeep
import numpy as np
import torch
import torch.nn.functional as F
from torch import nn
from pytorch_widedeep.wdtypes import * # noqa: F403
allowed_activations = ["relu", "leaky_relu", "tanh", "gelu", "geglu", "reglu"]
class GEGLU(nn.Module):
def forward(self, x):
x, ga... | 4,843 |
3,897 | <gh_stars>1000+
/****************************************************************************
*
* Copyright 2020 Samsung Electronics All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with ... | 827 |
573 | // 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 list of conditions ... | 25,624 |
647 | <reponame>gilbertguoze/trick
#include "trick/CheckPointAgent.hh"
| 27 |
354 | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
# Copyright 2021 Efabless 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
#
# Un... | 2,628 |
1,210 | <gh_stars>1000+
/*
* Copyright (c) 2004, 2006, 2008 Hyperic, Inc.
* Copyright (c) 2010 VMware, 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/licen... | 551 |
2,655 | <filename>src/intl/it/page-about.json
{
"page-about-h2": "Richiedi una funzionalità",
"page-about-h3": "Lavori in corso",
"page-about-h3-1": "Funzionalità implementate",
"page-about-h3-2": "Funzionalità previste",
"page-about-li-1": "in corso",
"page-about-li-2": "in programma",
"page-about-li-3": "implem... | 646 |
325 | <filename>test/cases/expanded/gnu variadic macros.h
"2,3,4", 1 __VA_ARGS__ 2,3,4
| 38 |
5,865 | <filename>domain/src/main/java/com/thoughtworks/go/domain/JobResult.java
/*
* Copyright 2021 ThoughtWorks, 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.apach... | 933 |
335 | <reponame>Safal08/Hacktoberfest-1<filename>P/Punk_adjective.json
{
"word": "Punk",
"definitions": [
"Relating to punk rock and its associated subculture.",
"In poor condition."
],
"parts-of-speech": "Adjective"
} | 107 |
1,393 | package io.ribot.app.ui;
import android.content.Intent;
import android.os.Bundle;
import javax.inject.Inject;
import io.ribot.app.data.DataManager;
import io.ribot.app.ui.base.BaseActivity;
import io.ribot.app.ui.main.MainActivity;
import io.ribot.app.ui.signin.SignInActivity;
public class LauncherActivity extends ... | 366 |
23,220 | <gh_stars>1000+
package com.alibaba.otter.canal.server.netty;
import com.alibaba.otter.canal.common.CanalLifeCycle;
import com.alibaba.otter.canal.server.netty.listener.ChannelFutureAggregator.ClientRequestResult;
/**
* @author <NAME>
*/
public interface ClientInstanceProfiler extends CanalLifeCycle {
void pro... | 119 |
51,124 | {
"componentDescription": "",
"propDescriptions": {
"alt": "Used in combination with <code>src</code> or <code>srcSet</code> to provide an alt attribute for the rendered <code>img</code> element.",
"children": "Used to render icon or text elements inside the Avatar if <code>src</code> is not set. This can b... | 846 |
14,668 | #!/usr/bin/env python3
# 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.
"""Parses allocation profiles from a trace and graphs the results.
This parses an allocation profile generated by PartitionAlloc in th... | 1,843 |
307 | //
//
#ifndef _SPHERE_SHAPE_H
#define _SPHERE_SHAPE_H
#pragma once
#include "globalincs/pstypes.h"
#include "math/bitarray.h"
#include "particle/ParticleEffect.h"
#include "utils/RandomRange.h"
namespace particle {
namespace effects {
/**
* @ingroup particleEffects
*/
class SphereShape {
::util::UniformFloatRan... | 436 |
348 | <reponame>chamberone/Leaflet.PixiOverlay
{"nom":"Douvaine","circ":"5ème circonscription","dpt":"Haute-Savoie","inscrits":3254,"abs":2021,"votants":1233,"blancs":14,"nuls":1,"exp":1218,"res":[{"nuance":"REM","nom":"Mme <NAME>","voix":462},{"nuance":"DVD","nom":"Mme <NAME>","voix":176},{"nuance":"FN","nom":"Mme <NAME>","... | 292 |
1,929 | <reponame>austinjp/textacy
import datetime
import pathlib
import pytest
from textacy import utils
@pytest.mark.parametrize(
"val,val_type,col_type,expected",
[
(None, int, list, None),
(1, int, list, [1]),
([1, 2], int, tuple, (1, 2)),
((1, 1.0), (int, float), set, {1, 1.0}),... | 4,441 |
456 | <reponame>pafri/DJV
// SPDX-License-Identifier: BSD-3-Clause
// Copyright (c) 2004-2020 <NAME>
// All rights reserved.
#include <djvSystemTest/DirectoryModelTest.h>
#include <djvSystem/DirectoryModel.h>
#include <djvSystem/FileIO.h>
using namespace djv::Core;
using namespace djv::System;
namespace djv
{
namespa... | 3,536 |
626 | package org.jsmart.zerocode.core.kafka.helper;
import static org.jsmart.zerocode.core.kafka.KafkaConstants.RAW;
import static org.jsmart.zerocode.core.kafka.common.CommonConfigs.BOOTSTRAP_SERVERS;
import static org.jsmart.zerocode.core.kafka.common.KafkaCommonUtils.resolveValuePlaceHolders;
import static org.jsmart.ze... | 2,331 |
732 | package io.eventuate.tram.spring.commands.autoconfigure;
import io.eventuate.tram.spring.commands.consumer.TramCommandConsumerConfiguration;
import io.eventuate.tram.spring.commands.producer.TramCommandProducerConfiguration;
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
import org.springf... | 171 |
826 | package io.eventuate.tram.sagas.reactive.simpledsl;
import io.eventuate.tram.commands.common.Command;
import io.eventuate.tram.commands.consumer.CommandWithDestination;
import io.eventuate.tram.sagas.simpledsl.CommandEndpoint;
import org.reactivestreams.Publisher;
import java.util.function.Function;
import java.util.... | 605 |
2,151 | <gh_stars>1000+
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "base/metrics/sample_map.h"
#include "base/logging.h"
#include "base/memory/ptr_util.h"
#include "base/numerics/safe_convers... | 1,120 |
6,717 | <filename>Frameworks/Foundation/NSPathUtilitiesInternal.h<gh_stars>1000+
//******************************************************************************
//
// Copyright (c) 2015 Microsoft Corporation. All rights reserved.
//
// This code is licensed under the MIT License (MIT).
//
// THE SOFTWARE IS PROVIDED "AS IS", ... | 802 |
724 | # -*- coding:utf-8 -*-
# Copyright (C) 2020. Huawei Technologies Co., Ltd. All rights reserved.
# This program is free software; you can redistribute it and/or modify
# it under the terms of the MIT License.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the ... | 591 |
988 | //------------------------------------------------------------------------------
// GB_mxm: matrix-matrix multiply for GrB_mxm, GrB_mxv, and GrB_vxm
//------------------------------------------------------------------------------
// SuiteSparse:GraphBLAS, <NAME>, (c) 2017-2021, All Rights Reserved.
// SPDX-License-Ide... | 4,145 |
4,071 | <filename>xdl/xdl/python/utils/file_io.py
# Copyright 2018 Alibaba Group. 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... | 770 |
396 | <reponame>yeungeek/monkey-android
package com.yeungeek.monkeyandroid.ui.detail;
import com.yeungeek.mvp.common.lce.MvpLceView;
/**
* Created by yeungeek on 2016/4/13.
*/
public interface RepoDetailMvpView extends MvpLceView<String> {
void starStatus(boolean isStaring);
void notLogined();
}
| 119 |
1,467 | <gh_stars>1000+
/**
* Copyright Soramitsu Co., Ltd. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef IROHA_ADDACCOUNTDETAIL_HPP
#define IROHA_ADDACCOUNTDETAIL_HPP
#include <string>
#include "model/command.hpp"
namespace iroha {
namespace model {
struct SetAccountDetail : public Command... | 332 |
334 | # Made by @xdavidhu (github.com/xdavidhu, https://xdavidhu.me/)
import serial
import io
import os
import subprocess
import signal
import time
try:
serialportInput = input("[?] Select a serial port (default '/dev/ttyUSB0'): ")
if serialportInput == "":
serialport = "/dev/ttyUSB0"
else:
seri... | 1,030 |
1,048 | <reponame>dibyendumajumdar/ravi<gh_stars>1000+
/*
Adapted from https://github.com/rui314/chibicc
MIT License
Copyright (c) 2019 <NAME>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without res... | 640 |
306 | <reponame>timkpaine/lantern<filename>lantern/grids/__init__.py<gh_stars>100-1000
from .grid_plotly import plotly_grid
from .grid_qgrid import qgrid_grid
from .grid_psp import psp_grid
from .grid_phosphor import phosphor_grid
from .grid_ipysheet import ipysheet_grid
from .grid_lineup import lineup_grid
_BACKENDS = ['p... | 404 |
535 | #!/usr/bin/env python3
# Copyright (c) 2018 The Bitcoin Unlimited developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
from grapheneblocks import GrapheneBlockTest
from test_framework.test_framework import BitcoinTestFramew... | 736 |
491 | /*
* Encog(tm) Core v3.4 - Java Version
* http://www.heatonresearch.com/encog/
* https://github.com/encog/encog-java-core
* Copyright 2008-2017 Heaton Research, 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... | 422 |
5,169 | <filename>Specs/FontasticIcons/0.2.0/FontasticIcons.podspec.json
{
"name": "FontasticIcons",
"version": "0.2.0",
"summary": "Objective-C wrapper for iconic fonts.",
"description": " - [Entypo](http://entypo.com) pictograms by <NAME>.\n - [FontAwesome](http://fortawesome.git... | 401 |
348 | {"nom":"Saint-Martin-au-Bosc","dpt":"Seine-Maritime","inscrits":161,"abs":31,"votants":130,"blancs":12,"nuls":5,"exp":113,"res":[{"panneau":"2","voix":81},{"panneau":"1","voix":32}]} | 75 |
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... | 2,712 |
465 | # -*- coding: utf-8 -*-
"""
Code for selecting top N models and build stacker on them.
Competition: HomeDepot Search Relevance
Author: <NAME>
Team: Turing test
"""
from config_IgorKostia import *
import os
import pandas as pd
import xgboost as xgb
import csv
import random
import numpy as np
import scipy as sp
import... | 3,747 |
2,047 | import pytest
from kedro.framework.cli.hooks.manager import CLIHooksManager
from kedro.framework.cli.hooks.specs import CLICommandSpecs
@pytest.mark.parametrize(
"hook_specs,hook_name,hook_params",
[(CLICommandSpecs, "before_command_run", ("project_metadata", "command_args"))],
)
def test_hook_manager_can_ca... | 294 |
738 | <filename>templates/go/go_otp_symmetric_base.py
buildcode="""
package main
/*
#cgo CFLAGS: -IMemoryModule
#cgo LDFLAGS: MemoryModule/build/MemoryModule.a
#include "MemoryModule/MemoryModule.h"
*/
import "C"
import (
{5}
)
func check(e error) bool{{
if e != nil {{
return false
}}
return tr... | 3,453 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.