max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
407 | #include "gui/channel_manager/channel_item.h"
#define MAX_CHANNEL_ENTIRES 1000
namespace hal
{
ChannelItem::ChannelItem(QString name)
: mName(name)
{
}
QVariant ChannelItem::data(int column) const
{
switch (column)
{
case 0:
return mName;
... | 412 |
707 | #pragma once
// DO NOT EDIT. File generated by script update_inlinedoc.py.
#define automaton___reduce___doc \
"__reduce__()\n" \
"\n" \
"Return pickle-able data for this automaton instance."
#define automaton___sizeof___doc \
"Return the approximate size in bytes occupied by the\n" \
"Automaton instance in memor... | 3,810 |
1,076 | ////////////////////////////////////////////////////////////////////////////////
// /
// 2012-2019 (c) Baical /
// ... | 1,228 |
453 | // Copyright (c) the JPEG XL Project Authors. All rights reserved.
//
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
#ifndef LIB_EXTRAS_ENC_EXR_H_
#define LIB_EXTRAS_ENC_EXR_H_
// Encodes OpenEXR images in memory.
#include "lib/extras/packed_image.h"
#include ... | 366 |
1,131 | //
// 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 ... | 995 |
1,475 | <filename>geode-core/src/main/java/org/apache/geode/internal/logging/log4j/LogMarker.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 licens... | 2,643 |
851 | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import numpy as np
import torch
import torch.nn as nn
import torch.nn.functional as F
from torch.autograd import Variable
from utils.init_weights import init_weights, normalized_columns_initializer
from core.mo... | 319 |
642 | #pragma once
#include "Control.h"
namespace AxiomModel {
constexpr size_t GRAPH_CONTROL_CURVE_COUNT = 16;
struct GraphControlTimeState {
uint32_t currentTimeSamples;
uint8_t currentState;
};
struct GraphControlCurveStorage {
uint8_t curveCount;
double curveStartVals[... | 1,339 |
348 | {"nom":"Gageac-et-Rouillac","circ":"2ème circonscription","dpt":"Dordogne","inscrits":393,"abs":189,"votants":204,"blancs":0,"nuls":5,"exp":199,"res":[{"nuance":"REM","nom":"<NAME>","voix":64},{"nuance":"FN","nom":"<NAME>","voix":41},{"nuance":"ECO","nom":"Mme <NAME>","voix":29},{"nuance":"LR","nom":"Mme <NAME>","voix"... | 263 |
1,443 | {
"copyright": "<NAME>",
"url": "http://robert-kummer.de",
"email": "<EMAIL>",
"gravatar": true,
"format": "html",
"theme": "default"
}
| 65 |
764 | {"symbol": "NRP","address": "0x3918C42F14F2eB1168365F911f63E540E5A306b5","overview":{"en": ""},"email": "<EMAIL>","website": "https://www.nrp.world/","state": "NORMAL","links": {"blog": "https://medium.com/@info_87830/neural-protocol-nrp-airdrop-ico-37ab1923c9cb","twitter": "https://www.twitter.com/neuralprotocol","tel... | 160 |
1,757 | <reponame>xiaoheiyo/nonebot2
r"""
权限
====
每个 ``Matcher`` 拥有一个 ``Permission`` ,其中是 **异步** ``PermissionChecker`` 的集合,只要有一个 ``PermissionChecker`` 检查结果为 ``True`` 时就会继续运行。
\:\:\:tip 提示
``PermissionChecker`` 既可以是 async function 也可以是 sync function
\:\:\:
"""
import asyncio
from typing import TYPE_CHECKING, Union, Callable,... | 2,197 |
1,199 | # coding=utf-8
# Copyright 2018 The Google AI Language Team 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 by ... | 473 |
32,544 | <filename>patterns/dipmodular/com.baeldung.dip.daoimplementations/module-info.java
module com.baeldung.dip.daoimplementations {
requires com.baeldung.dip.entities;
requires com.baeldung.dip.daos;
provides com.baeldung.dip.daos.CustomerDao with com.baeldung.dip.daoimplementations.SimpleCustomerDao;
expor... | 153 |
892 | <gh_stars>100-1000
{
"schema_version": "1.2.0",
"id": "GHSA-wjvr-2hjg-6rhj",
"modified": "2022-04-05T00:00:39Z",
"published": "2022-03-30T00:00:24Z",
"aliases": [
"CVE-2022-28143"
],
"details": "A cross-site request forgery (CSRF) vulnerability in Jenkins Proxmox Plugin 0.7.0 and earlier allows attack... | 550 |
4,262 | /*
* 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 ... | 2,769 |
11,775 | <filename>jib-cli/src/main/java/com/google/cloud/tools/jib/cli/buildfile/Layers.java
/*
* 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... | 3,857 |
3,513 | <filename>src/SHADERed/UI/Debug/AutoUI.cpp<gh_stars>1000+
#include <SHADERed/UI/Debug/AutoUI.h>
#include <SHADERed/Objects/Settings.h>
#include <imgui/imgui.h>
namespace ed {
void DebugAutoUI::OnEvent(const SDL_Event& e)
{
}
void DebugAutoUI::Update(float delta)
{
if (m_update) {
m_value.resize(m_expr.size()... | 735 |
21,382 | <reponame>linyiyue/ray<filename>src/ray/object_manager/plasma/get_request_queue.h<gh_stars>1000+
// Copyright 2017 The Ray 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
//
// ... | 1,717 |
3,682 | <filename>python-sqlite-sqlalchemy/project/examples/example_3/app/albums/routes.py
from flask import Blueprint, render_template, redirect, url_for
from flask_wtf import FlaskForm
from wtforms import StringField
from wtforms import HiddenField
from wtforms.validators import InputRequired, ValidationError
from app import... | 857 |
1,338 | /*
*
* Copyright (c) 1994
* Hewlett-Packard Company
*
* Permission to use, copy, modify, distribute and sell this software
* and its documentation for any purpose is hereby granted without fee,
* provided that the above copyright notice appear in all copies and
* that both that copyright notice and this permiss... | 3,736 |
1,253 | def decimal_to_binary(n):
if n > 1: decimal_to_binary(n//2)
print(n % 2, end = '')
try: decimal_to_binary(int(input("Enter an Integer to Covert into Binary: ")))
except ValueError: print("Input is not an integer.")
print()
| 84 |
541 | /**
* The contents of this file are subject to the license and copyright
* detailed in the LICENSE and NOTICE files at the root of the source
* tree and available online at
*
* http://www.dspace.org/license/
*/
package org.dspace.app.rest;
import static com.jayway.jsonpath.JsonPath.read;
import static com.jayway... | 69,293 |
1,673 | <reponame>C-Chads/cc65
#include <stdio.h>
unsigned char failures = 0;
int main(void)
{
int i;
i = 0;
if ((i > 1) && (i < 3)) {
failures++;
}
printf("failures: %u\n", failures);
return failures;
}
| 95 |
1,236 | <reponame>jasonfeihe/BitFunnel<filename>NativeJIT/inc/NativeJIT/ExecutionPreconditionTest.h
// The MIT License (MIT)
// Copyright (c) 2016, Microsoft
// 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 t... | 1,934 |
19,438 | <filename>Kernel/RTC.cpp
/*
* Copyright (c) 2018-2020, <NAME> <<EMAIL>>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#include <AK/Time.h>
#include <Kernel/Arch/x86/IO.h>
#include <Kernel/CMOS.h>
#include <Kernel/RTC.h>
namespace RTC {
static time_t s_boot_time;
void initialize()
{
s_boot_time = now();
}
ti... | 1,465 |
379 | <filename>src/main/java/com/sixt/service/framework/util/ReflectionUtil.java
/**
* Copyright 2016-2017 Sixt GmbH & Co. Autovermietung KG
* 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,014 |
2,151 | /*
* Copyright 2017 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
// Make sure that the PRI format string macros are defined
#ifndef __STDC_FORMAT_MACROS
#define __STDC_FORMAT_MACROS
#endif
#include <inttypes.h>
#include <stdarg.h>
#includ... | 438 |
313 | <reponame>740326093/-
//
// YBLMessageDetailViewController.h
// 手机云采
//
// Created by 乔同新 on 2017/8/1.
// Copyright © 2017年 乔同新. All rights reserved.
//
#import "YBLMainViewController.h"
#import "YBLMessageDetailViewModel.h"
@interface YBLMessageDetailViewController : YBLMainViewController
@property (nonatomic, ... | 149 |
1,176 | <gh_stars>1000+
// Copyright (c) 2014 <NAME>.
// Copyright (c) 2014 GitHub, Inc. All rights reserved.
// See the LICENSE file.
#ifndef THRUST_SHELL_BROWSER_UI_VIEWS_MENU_LAYOUT_H_
#define THRUST_SHELL_BROWSER_UI_VIEWS_MENU_LAYOUT_H_
#include "ui/views/layout/fill_layout.h"
namespace thrust_shell {
class MenuLayout ... | 341 |
7,137 | <filename>server-core/src/main/java/io/onedev/server/rest/jersey/ResourceConfigProvider.java
package io.onedev.server.rest.jersey;
import javax.inject.Provider;
import org.glassfish.jersey.server.ResourceConfig;
public class ResourceConfigProvider implements Provider<ResourceConfig> {
@Override
public ResourceCon... | 122 |
998 | <filename>Source/Voxel/Private/VoxelRender/PhysicsCooker/VoxelAsyncPhysicsCooker_PhysX.cpp
// Copyright 2021 Phyronnaz
#include "VoxelRender/PhysicsCooker/VoxelAsyncPhysicsCooker_PhysX.h"
#include "VoxelRender/VoxelProcMeshBuffers.h"
#include "VoxelRender/VoxelProceduralMeshComponent.h"
#include "VoxelPhysXHelper... | 5,894 |
465 | <reponame>NetsanetGeb/marmaray
/*
* Copyright (c) 2019 Uber Technologies, Inc.
* 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 restriction, including without limitation the
* rights... | 1,233 |
575 | // Copyright 2018 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef COMPONENTS_OFFLINE_ITEMS_COLLECTION_CORE_FILTERED_OFFLINE_ITEM_OBSERVER_H_
#define COMPONENTS_OFFLINE_ITEMS_COLLECTION_CORE_FILTERED_OFFLINE_ITEM_... | 758 |
4,816 | /**
* @file include/retdec/serdes/object.h
* @brief Object (de)serialization.
* @copyright (c) 2019 Avast Software, licensed under the MIT license
*/
#ifndef RETDEC_SERDES_OBJECT_H
#define RETDEC_SERDES_OBJECT_H
#include <rapidjson/document.h>
namespace retdec {
namespace common {
class Object;
} // namespace c... | 181 |
7,482 | <gh_stars>1000+
/*
* Copyright (c) 2015, Freescale Semiconductor, Inc.
* Copyright 2016-2017 NXP
* All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
#include "fsl_specification.h"
#include "fsl_card.h"
/*******************************************************************************
* Variables... | 3,245 |
324 | <gh_stars>100-1000
import typer
from tiktokpy import TikTokPy
from tiktokpy.cli.utils import coro
app = typer.Typer()
@app.command()
@coro
async def login():
async with TikTokPy() as bot:
await bot.login_session()
@app.callback()
def callback():
pass
| 110 |
1,444 | <filename>Mage.Sets/src/mage/cards/r/RuinationRioter.java
package mage.cards.r;
import mage.MageInt;
import mage.abilities.Ability;
import mage.abilities.common.DiesSourceTriggeredAbility;
import mage.abilities.dynamicvalue.DynamicValue;
import mage.abilities.dynamicvalue.common.CardsInControllerGraveyardCount;
import... | 641 |
4,283 | /*
* Copyright (c) 2008-2021, Hazelcast, 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 ... | 1,181 |
891 | <reponame>eregon/jnr-ffi
/*
* Copyright (C) 2008-2010 <NAME>
*
* This file is part of the JNR 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/li... | 363 |
9,088 | <filename>src/providers/console-logging-provider.h
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license.
#pragma once
#include <napa/providers/logging.h>
#include <stdio.h>
namespace napa {
namespace providers {
/// <summary> A logging provider that logs to the standar... | 494 |
892 | {
"schema_version": "1.2.0",
"id": "GHSA-c93f-9f7g-fv7h",
"modified": "2022-05-13T01:19:17Z",
"published": "2022-05-13T01:19:17Z",
"aliases": [
"CVE-2018-16789"
],
"details": "libhttp/url.c in shellinabox through 2.20 has an implementation flaw in the HTTP request parsing logic. By sending a crafted m... | 651 |
446 | <gh_stars>100-1000
from typing import Any, Callable, Generator, List
from random import randint
def preprocess_char_based(sentence: List[str]) -> List[str]:
return list(" ".join(sentence))
def preprocess_add_noise(sentence: List[str]) -> List[str]:
sent = sentence[:]
length = len(sentence)
if length... | 520 |
1,442 | <filename>poincare/include/poincare/empty_context.h
#ifndef POINCARE_EMPTY_CONTEXT_H
#define POINCARE_EMPTY_CONTEXT_H
#include <poincare/context.h>
#include <poincare/expression.h>
#include <assert.h>
namespace Poincare {
class EmptyContext : public Context {
public:
// Context
SymbolAbstractType expressionTypeF... | 207 |
971 | #pragma once
#include "execution/sql/value.h"
namespace noisepage::execution::sql {
/**
* Utility class to handle mini runners functions
*/
class EXPORT MiniRunnersFunctions {
public:
// Delete to force only static functions
MiniRunnersFunctions() = delete;
/**
* Emit tuples
* @param ctx ExecutionCon... | 626 |
1,346 | <filename>Trakttv.bundle/Contents/Libraries/Shared/plugin/scrobbler/main.py
from plugin.core.constants import ACTIVITY_MODE
from plugin.core.helpers.thread import module
from plugin.core.method_manager import MethodManager
from plugin.preferences import Preferences
from plugin.scrobbler.methods import Logging, WebSocke... | 241 |
571 | <gh_stars>100-1000
/***************************************************************************
Copyright 2016 Ufora 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://w... | 28,342 |
16,989 | <filename>src/main/java/com/google/devtools/build/lib/rules/proto/ProtoLangToolchainProvider.java<gh_stars>1000+
// Copyright 2016 The Bazel 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 ... | 1,094 |
333 | <reponame>genisysram/jackson-dataformats-text<filename>properties/src/main/java/com/fasterxml/jackson/dataformat/javaprop/util/JPropNode.java
package com.fasterxml.jackson.dataformat.javaprop.util;
import java.util.*;
/**
* Value in an ordered tree presentation built from an arbitrarily ordered
* set of flat input ... | 1,849 |
52,316 | r"""Fixer for unicode.
* Changes unicode to str and unichr to chr.
* If "...\u..." is not unicode literal change it into "...\\u...".
* Change u"..." into "...".
"""
from ..pgen2 import token
from .. import fixer_base
_mapping = {"unichr" : "chr", "unicode" : "str"}
class FixUnicode(fixer_base.BaseFix):
BM_c... | 620 |
615 | #include <iostream>
#include "meta/index/vocabulary_map.h"
using namespace meta;
int main(int argc, char** argv)
{
if (argc < 2)
{
std::cout << "Usage: " << argv[0] << " filename" << std::endl;
return 1;
}
index::vocabulary_map map{argv[1]};
for (term_id tid{0}; tid < map.size();... | 181 |
1,019 | /**
* Copyright 2015-现在 广州市领课网络科技有限公司
*/
package com.roncoo.education.course.common.es;
import com.roncoo.education.util.base.Page;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.BeanUtils;
import java.io.Serializable;
import java.lang.reflect.InvocationTargetException;
im... | 690 |
766 | <filename>src/http.hpp
#pragma once
#include "stl.hpp"
#include "interface/http.hpp"
#include "interface/http_callback.hpp"
#include "single_thread_task_runner.hpp"
namespace mx3 {
struct HttpResponse {
bool error;
uint16_t http_code;
string data;
};
class Http final {
public:
Http(shared_ptr<mx3_g... | 405 |
1,210 | # -*- coding: utf-8 -*-
"""
Tencent is pleased to support the open source community by making GameAISDK available.
This source code file is licensed under the GNU General Public License Version 3.
For full details, please refer to the file "LICENSE.txt" which is provided as part of this source code package.
Copyright... | 562 |
456 | // SPDX-License-Identifier: BSD-3-Clause
// Copyright (c) 2004-2020 <NAME>
// All rights reserved.
#include <djvUI/Menu.h>
#include <djvUI/Action.h>
#include <djvUI/DrawUtil.h>
#include <djvUI/EventSystem.h>
#include <djvUI/ITooltipWidget.h>
#include <djvUI/IconSystem.h>
#include <djvUI/LayoutUtil.h>
#include <djvUI/... | 29,503 |
2,151 | //===- RegionInfo.h - SESE region analysis ----------------------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... | 10,661 |
2,023 | <filename>recipes/Python/576616_FactorialLambda/recipe-576616.py
#On the name of ALLAH and may the blessing and peace of Allah
#be upon the Messenger of <NAME>.
#Author : <NAME>
#Date : 13/01/09
#version :2.4
import random
class NegativeNumberError(ArithmeticError):
""" attempted imporper operation on negative n... | 3,090 |
521 | /* Copyright (c) 2001, Stanford University
* All rights reserved.
*
* See the file LICENSE.txt for information on redistributing this software.
*/
#ifndef CR_STATE_FOG_H
#define CR_STATE_FOG_H
#include "state/cr_statetypes.h"
#include <iprt/cdefs.h>
#ifdef __cplusplus
extern "C" {
#endif
typedef struct {
CR... | 635 |
2,151 | <filename>core/java/android/net/WifiLinkQualityInfo.java
/*
* Copyright (C) 2013 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.apa... | 1,455 |
1,331 | package javapayload.stage;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.OutputStream;
public class DummyStage implements Stage {
public void start(DataInputStream in, OutputStream rawOut, String[] parameters) throws Exception {
byte[] buffer = new byte[in.readInt()];
... | 251 |
2,180 | <reponame>luckydzj/LogiKM
package com.xiaojukeji.kafka.manager.kcm.common.entry.ao;
import com.xiaojukeji.kafka.manager.common.entity.Result;
import java.util.List;
/**
* @author zengqiao
* @date 20/5/20
*/
public class CreationTaskData {
private String uuid;
private Long clusterId;
private List<Str... | 1,455 |
348 | //
// FKFlickrPeopleGetGroups.h
// FlickrKit
//
// Generated by FKAPIBuilder.
// Copyright (c) 2013 DevedUp Ltd. All rights reserved. http://www.devedup.com
//
// DO NOT MODIFY THIS FILE - IT IS MACHINE GENERATED
#import "FKFlickrAPIMethod.h"
typedef NS_ENUM(NSInteger, FKFlickrPeopleGetGroupsError) {
FKFlickrP... | 1,039 |
1,755 | <reponame>LongerVisionUSA/VTK
/*=========================================================================
Program: Visualization Toolkit
Module: vtkWrapPythonEnum.c
Copyright (c) <NAME>, <NAME>, <NAME>
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
Thi... | 3,896 |
1,338 | <reponame>Kirishikesan/haiku<filename>src/bin/draggers.cpp
/*
* Copyright 2016, <NAME>, <<EMAIL>>. All rights reserved.
* Distributed under the terms of the MIT License.
*/
/*
* draggers - show/hide draggers from CLI
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <Application.h>
#include ... | 529 |
1,478 | /**
* @file unit-cppapi-util.cc
*
* @section LICENSE
*
* The MIT License
*
* @copyright Copyright (c) 2017-2021 TileDB, Inc.
*
* 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 wit... | 1,850 |
5,937 | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
//+-----------------------------------------------------------------------------
//
//
// $TAG ENGR
// $Mod... | 333 |
1,474 | <reponame>schminkel/FlatLaf
/*
* Copyright 2020 FormDev Software GmbH
*
* 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 r... | 382 |
8,772 | {
"dependencies": "discovery-profile,pac4j-webflow,oidc,simple-mfa",
"properties": [
"--cas.service-registry.core.init-from-json=true",
"--cas.authn.pac4j.cas[0].login-url=https://localhost:8444/cas/login",
"--cas.authn.pac4j.cas[0].protocol=CAS30",
"--cas.authn.pac4j.cas[0].client-name=CasClient",... | 373 |
12,824 | <filename>test/files/neg/t10260/D.java
public class D<T> {}
| 25 |
566 | #include <oci.h>
#include <stdlib.h>
| 17 |
619 | from django.test import TestCase
from localflavor.md import forms
from .forms import MDPlaceForm
class MDLocalFlavorTests(TestCase):
def setUp(self):
self.data = {
'idno': '1231231231231',
'company_type_1': 'SRL',
'company_type_2': 'II',
'license_plate': ... | 1,756 |
460 | <reponame>ybayart/norminette<gh_stars>100-1000
void tata(const char xc);
void tata(const t_struct *a);
void tata(const char w);
int main(int toto, int c, int v)
{
if (i --)
while (1)
{
return ;
}
else
return ;
}
void toto(void)
{
return ;
}
| 128 |
794 | [
{
"name": "Current pkg",
"description": "应用切换时,使用Toast显示当前应用的当前应用包名(仅做示例,请自行优化)",
"priority": 2,
"condition": "frontPkgChanged == true",
"actions": [
"ui.showShortToast(activity.getFrontAppPackage());"
]
}
] | 165 |
3,747 | <filename>tests/python/kaolin/metrics/test_voxelgrid.py
# Copyright (c) 2019-2020, NVIDIA CORPORATION. All rights reserved.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.ap... | 1,718 |
716 | /*
* Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
* See https://llvm.org/LICENSE.txt for license information.
* SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
*
*/
#ifndef F_EXP_RTE_H_
#define F_EXP_RTE_H_
#include "gbldefs.h"
#include "global.h"
#include "symtab.h"
#inc... | 1,008 |
473 | <reponame>pingjuiliao/cb-multios
#include "cgc_string.h"
#include "cgc_stdint.h"
cgc_size_t cgc_strlen( const char *str )
{
cgc_size_t len = 0;
while ( *str++ != '\0' )
len++;
return len;
}
void cgc_bzero(void *s, cgc_size_t n) {
while (n) {
((char *)s)[--n] = '\0';
}
((c... | 391 |
777 | <gh_stars>100-1000
/*
* Copyright (C) 1999 <NAME> (<EMAIL>)
* (C) 1999 <NAME> (<EMAIL>)
* Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc.
* All rights reserved.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Libra... | 20,185 |
349 | <reponame>mapoto/alexa-skills-kit-sdk-for-java
/*
Copyright 2019 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.... | 3,516 |
2,486 | <reponame>priya1puresoftware/python-slack-sdk
import json
from typing import Optional, Dict, Any, Sequence
from urllib.parse import parse_qsl
def parse_body(body: str, content_type: Optional[str]) -> Dict[str, Any]:
if not body:
return {}
if (
content_type is not None and content_type == "appl... | 1,440 |
1,540 | package test.retryAnalyzer.issue2148;
import static org.assertj.core.api.Assertions.assertThat;
import org.testng.TestNG;
import org.testng.annotations.Test;
import org.testng.xml.XmlSuite.FailurePolicy;
import test.SimpleBaseTest;
public class IssueTest extends SimpleBaseTest {
@Test(description = "GITHUB-2148")... | 349 |
617 | <reponame>qinFamily/Oceanus
/**
* Copyright 2011-2013 FoundationDB, 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
*
* Unle... | 672 |
60,067 | #include <ATen/native/vulkan/ops/Common.h>
namespace at {
namespace native {
namespace vulkan {
namespace ops {
uint32_t batch_size(const Tensor& tensor) {
const IntArrayRef sizes = tensor.sizes();
const uint32_t dims = sizes.size();
if (dims < 4) {
return 1;
}
return sizes[dims - 4];
}
uint32_t channe... | 619 |
1,682 | /*
Copyright (c) 2012 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... | 15,519 |
347 | <reponame>hbraha/ovirt-engine<filename>frontend/webadmin/modules/gwt-common/src/main/java/org/ovirt/engine/ui/common/widget/table/ColumnContextPopup.java<gh_stars>100-1000
package org.ovirt.engine.ui.common.widget.table;
import org.ovirt.engine.ui.common.widget.PopupPanel;
/**
* {@link PopupPanel} adapted for use wi... | 290 |
460 | <filename>testsuite/testsuite-cdi-jaxws/src/main/java/org/wildfly/swarm/cdi/jaxws/test/GreeterServiceImpl.java
/**
* Copyright 2017 Red Hat, Inc, and individual contributors.
* <p>
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
*... | 407 |
432 | <gh_stars>100-1000
/* CVS socket client stuff.
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 2, or (at your option)
any later version.
This program is distributed in ... | 485 |
568 | package com.novoda.monkey;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
public class MonkeyRunnerActivity extends AppCompatActivity {
private boolean showingAlternativeBackgroundColor;
@Override
public void onCreate(Bundle savedInstanceState) {
... | 338 |
509 | <gh_stars>100-1000
{
"name": "string-trace",
"version": "1.0.0",
"main": "index.js",
"repository": "https://github.com/mattzeunert/fromjs.git",
"author": "<NAME> <<EMAIL>>",
"license": "MIT",
"scripts": {
"compile-core": "cd packages/core;tsc --project tsconfig-core-main.json",
"compile-core-watch... | 930 |
605 | package com.sohu.tv.mq.cloud.service;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
import org.apache.commons.lang3.math.NumberUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.facto... | 2,415 |
1,085 | <filename>lib/tool_shed/util/repository_content_util.py
import os
import shutil
import tool_shed.repository_types.util as rt_util
from tool_shed.util import (
commit_util,
xml_util,
)
def upload_tar(trans, rdah, tdah, repository, tar, uploaded_file, upload_point, remove_repo_files_not_in_tar,
... | 1,901 |
1,133 | #!/usr/bin/env python3
import isce
import datetime
import isceobj
import numpy as np
from iscesys.Component.Component import Component
from iscesys.Traits import datetimeType
####List of parameters
IMAGING_MODE = Component.Parameter('mode',
public_name = 'imaging mode',
default = 'TOPS',
type... | 4,931 |
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.
package org.chromium.chrome.browser.tab.state;
import static org.mockito.Mockito.doReturn;
import androidx.test.filters.SmallTest;
import org.junit.Ass... | 3,609 |
1,444 |
package mage.abilities.effects.common.combat;
import mage.abilities.Ability;
import mage.abilities.effects.RequirementEffect;
import mage.constants.Duration;
import mage.game.Game;
import mage.game.permanent.Permanent;
/**
*
* @author LevelX2
*/
public class BlocksIfAbleSourceEffect extends RequirementEffect {
... | 416 |
4,283 | <filename>hazelcast/src/test/java/com/hazelcast/map/merge/MapSplitBrainStressTest.java
/*
* Copyright (c) 2008-2021, Hazelcast, 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... | 2,612 |
435 | {
"copyright_text": null,
"description": "TL;DR\n\nWhen you go full Big Data at public data and become a citzen.\n-------------------------------------------------------------\n\nAudience type: developers, data scientists of any level of expertise.\n\nAfter a political coup Brazil drowned in scandals and political\... | 672 |
1,444 | package mage.cards.l;
import mage.MageInt;
import mage.abilities.Ability;
import mage.abilities.common.BecomesBlockedAllTriggeredAbility;
import mage.abilities.common.SimpleActivatedAbility;
import mage.abilities.costs.mana.ManaCostsImpl;
import mage.abilities.effects.Effect;
import mage.abilities.effects.OneShotEffec... | 1,324 |
6,098 | package hex;
/**
* Created by tomasnykodym on 1/5/16.
*/
public interface GLMMetrics {
double residual_deviance(); //naming is pythonic because its user-facing via grid search sort criterion
double null_deviance();
long residual_degrees_of_freedom();
long null_degrees_of_freedom();
}
| 100 |
568 | <gh_stars>100-1000
//
// Copyright (c) 2009, <NAME>
// 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 lis... | 11,637 |
3,102 | // NotFramework.h
#import "NotInModule.h"
| 17 |
348 | <filename>docs/data/leg-t2/069/06913299.json
{"nom":"Colombier-Saugnieu","circ":"13ème circonscription","dpt":"Rhône","inscrits":1868,"abs":1175,"votants":693,"blancs":36,"nuls":11,"exp":646,"res":[{"nuance":"LR","nom":"<NAME>","voix":378},{"nuance":"REM","nom":"<NAME>","voix":268}]} | 118 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.