max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
1,399 | <reponame>allister-grange/readme.so
{
"editor-desktop-optimized": "Ang website na ito ay magagamit lamang para sa desktop",
"editor-visit-desktop": "Mangyaring bisitahin ang readme.so sa isang desktop upang likhain ang iyong readme!",
"nav-download": "Mag-Download",
"download-readme-generated": "Nabuo na ang Re... | 420 |
365 | <reponame>rotoglup/blender
/*
* Copyright 2018 Blender 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 b... | 2,204 |
381 | <gh_stars>100-1000
"""
Bytecode handling classes and functions for use by the flow space.
"""
from rpython.tool.stdlib_opcode import host_bytecode_spec
from opcode import EXTENDED_ARG, HAVE_ARGUMENT
import opcode
from rpython.flowspace.argument import Signature
CO_GENERATOR = 0x0020
CO_VARARGS = 0x0004
CO_VARKEYWORDS ... | 1,804 |
988 | /*
* 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 ... | 2,546 |
382 | <filename>clouddriver-core/src/main/java/com/netflix/spinnaker/clouddriver/search/SearchProvider.java
/*
* Copyright 2018 Netflix, 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
*... | 895 |
348 | <gh_stars>100-1000
{"nom":"Prailles","circ":"2ème circonscription","dpt":"Deux-Sèvres","inscrits":506,"abs":212,"votants":294,"blancs":3,"nuls":3,"exp":288,"res":[{"nuance":"SOC","nom":"<NAME>","voix":106},{"nuance":"REM","nom":"Mme <NAME>","voix":78},{"nuance":"FI","nom":"<NAME>","voix":48},{"nuance":"FN","nom":"<NAME... | 209 |
3,269 | // Time: O(n)
// Space: O(h)
/**
* Definition for a binary tree node.
* struct TreeNode {
* int val;
* TreeNode *left;
* TreeNode *right;
* TreeNode(int x) : val(x), left(NULL), right(NULL) {}
* };
*/
class Solution {
public:
double maximumAverageSubtree(TreeNode* root) {
double re... | 386 |
42,609 | {
"plugins": [
"jsx",
"flow"
],
"throws": "JSX value should be either an expression or a quoted JSX text. (1:9)"
} | 54 |
766 | <reponame>kobylkinks/LightAutoML
"""Tools for partial installation."""
try:
from importlib.metadata import PackageNotFoundError
from importlib.metadata import distribution
except ModuleNotFoundError:
from importlib_metadata import PackageNotFoundError, distribution
import logging
logger = logging.getLog... | 573 |
1,318 | /*
* Copyright 2016 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 i... | 1,302 |
892 | {
"schema_version": "1.2.0",
"id": "GHSA-6cc4-g986-cx7v",
"modified": "2022-05-01T23:50:02Z",
"published": "2022-05-01T23:50:02Z",
"aliases": [
"CVE-2008-2439"
],
"details": "Directory traversal vulnerability in the UpdateAgent function in TmListen.exe in the OfficeScanNT Listener service in the clien... | 1,128 |
2,649 | <filename>pytorch/pytorchcv/models/isqrtcovresnet.py<gh_stars>1000+
"""
iSQRT-COV-ResNet for ImageNet-1K, implemented in PyTorch.
Original paper: 'Towards Faster Training of Global Covariance Pooling Networks by Iterative Matrix Square Root
Normalization,' https://arxiv.org/abs/1712.01034.
"""
__all__ = ['... | 7,416 |
337 | package cn.ycbjie.ycaudioplayer.model.bean;
import android.graphics.Bitmap;
import java.io.Serializable;
/**
* <pre>
* @author yangchong
* blog : www.pedaily.cn
* time : 2018/03/22
* desc : 视频信息
* revise:
* </pre>
*/
public class VideoBean implements Serializable {
// 视频类型:本地/网络
... | 1,399 |
7,546 | package com.davemorrissey.labs.subscaleview.test;
public class Page {
private final int text;
private final int subtitle;
public Page(int subtitle, int text) {
this.subtitle = subtitle;
this.text = text;
}
public int getText() {
return text;
}
public int getSubt... | 146 |
8,629 | <reponame>anishbhanwala/ClickHouse
#include <DataTypes/Serializations/ISerialization.h>
#include <Compression/CompressionFactory.h>
#include <Columns/IColumn.h>
#include <IO/WriteHelpers.h>
#include <IO/Operators.h>
#include <IO/ReadBufferFromString.h>
#include <Common/escapeForFileName.h>
#include <DataTypes/NestedUti... | 3,859 |
432 | package us.parr.bookish.entity;
import us.parr.bookish.parse.BookishParser;
public class SideNoteDef extends EntityDef {
public String note;
public SideNoteDef(int index, BookishParser.AttrsContext attrsCtx, String note) {
super(index, attrsCtx.attributes);
this.note = note;
}
public boolean isSideItem() { ... | 114 |
2,338 | <reponame>mkinsner/llvm
//===--- Allocator.cpp - Simple memory allocation abstraction -------------===//
//
// 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
//
//===---... | 521 |
7,482 | <reponame>cazure/rt-thread<gh_stars>1000+
/*
* Copyright (c) 2006-2021, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
* Date Author Notes
* 2019-02-17 jinsheng first version
*/
#ifndef __LCD_PORT_H__
#define __LCD_PORT_H__
/* 4.3 inch screen, 480 * ... | 451 |
363 | <reponame>elizabethking2/UnrealGDK<filename>SpatialGDK/Source/SpatialGDK/Private/Schema/ClientEndpoint.cpp
// Copyright (c) Improbable Worlds Ltd, All Rights Reserved
#include "Schema/ClientEndpoint.h"
namespace SpatialGDK
{
ClientEndpoint::ClientEndpoint(const Worker_ComponentData& Data)
: ReliableRPCBuffer(ERPCTy... | 366 |
473 | /*
* Copyright (C) <NAME> <<EMAIL>>
*
* 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 to use, copy, modify, merge, publish... | 870 |
826 | <gh_stars>100-1000
#include "blur.h"
#include "../utils/utility.h"
namespace weserv {
namespace api {
namespace processors {
VImage Blur::process(const VImage &image) const {
auto sigma = query_->get<float>("blur", 0.0F);
// Should we process the image?
if (sigma == 0.0F) {
return image;
}
... | 619 |
2,999 | <reponame>junghee/LIEF
/* Copyright 2017 - 2021 <NAME>
* Copyright 2017 - 2021 Quarkslab
*
* 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,649 |
2,387 | <reponame>saikrishna169/pipedream
{
"name": "@pipedream/bandwidth",
"version": "1.0.0",
"description": "Pipedream Bandwidth Components",
"main": "index.js",
"keywords": [
"pipedream",
"bandwidth"
],
"author": "Bandwidth",
"license": "MIT",
"dependencies": {
"@bandwidth/messaging": "^4.... | 144 |
2,062 | <filename>strawberry/fastapi/handlers/__init__.py
from strawberry.fastapi.handlers.graphql_transport_ws_handler import (
GraphQLTransportWSHandler,
)
from strawberry.fastapi.handlers.graphql_ws_handler import GraphQLWSHandler
__all__ = ["GraphQLTransportWSHandler", "GraphQLWSHandler"]
| 102 |
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,231 |
9,680 | <reponame>dutxubo/nni
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT license.
import os
import random
import sys
from .. import lib_acquisition_function
from .. import lib_constraint_summation
sys.path.insert(1, os.path.join(sys.path[0], '..'))
CONSTRAINT_LOWERBOUND = None
CONSTRAINT_UPPERBOUND = ... | 1,503 |
3,861 | <reponame>nicklela/edk2<filename>MdePkg/Library/BaseLib/Arm/InternalSwitchStack.c<gh_stars>1000+
/** @file
SwitchStack() function for ARM.
Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>
Portions copyright (c) 2008 - 2009, Apple Inc. All rights reserved.<BR>
SPDX-License-Identifier:... | 1,055 |
4,262 | {
"model": {
"kind": "model",
"name": "etcdServiceDiscovery",
"title": "Etcd Service Discovery",
"deprecated": false,
"label": "routing,cloud,service-discovery",
"javaType": "org.apache.camel.model.cloud.EtcdServiceCallServiceDiscoveryConfiguration",
"input": false,
"output": false
}... | 827 |
9,472 | #pragma once
#include <Python.h>
#include <stdbool.h>
#include "cmatcher.h"
#include "cresponse.h"
#include "common.h"
#define REQUEST_INITIAL_BUFFER_LEN 1024
typedef struct {
PyObject_HEAD
char* method;
size_t method_len;
char* path;
bool path_decoded;
size_t path_len;
bool qs_decoded;
size_t qs_l... | 722 |
502 | <reponame>jackx22/fixflow
/**
* 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
... | 815 |
3,102 | // B
#include "C.h"
| 11 |
1,738 | <gh_stars>1000+
/*
* 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 li... | 1,010 |
460 | /*=============================================================================
Copyright (c) 2001-2006 <NAME>
Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
===========================================... | 329 |
2,329 | package invokestatic.issue4;
public class AA {
public static String getString() {
return "String1";
}
}
| 38 |
344 | <gh_stars>100-1000
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------... | 710 |
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.
#ifndef IOS_CHROME_BROWSER_UI_SETTINGS_PASSWORD_PASSWORD_DETAILS_PASSWORD_DETAILS_TABLE_VIEW_CONTROLLER_DELEGATE_H_
#define IOS_CHROME_BROWSER_UI_SETTINGS... | 644 |
358 | #include <agz/editor/envir_light/native_sky.h>
#include <agz/editor/ui/utility/validator.h>
#include <agz/tracer/create/envir_light.h>
AGZ_EDITOR_BEGIN
NativeSkyWidget::NativeSkyWidget(const CloneData &clone_data)
{
QGridLayout *layout = new QGridLayout(this);
top_ = new ColorHolder(clone_data.... | 1,216 |
4,461 | <reponame>przemub/pwndbg
import pwndbg.commands
from pwndbg.commands.misc import list_and_filter_commands
STACK_COMMANDS = [
('canary', 'Print out the current stack canary.'),
('context', 'Print out the current register, instruction, and stack context.'),
('down', 'Select and print stack frame called by th... | 371 |
1,104 | package com.alimama.mdrillImport;
import java.io.IOException;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.apache.log4j.Logger;
import org.apache.solr.common.SolrInputDocument;
import com.alimama.mdrill.ui.service.MdrillService;
import ... | 2,473 |
679 | /**************************************************************
*
* 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 y... | 352 |
1,936 | #include <fstream> // NOLINT
#include <vector>
#include <Eigen/Core>
#include <Eigen/StdVector>
#include <descriptor-projection/descriptor-projection.h>
#include <descriptor-projection/flags.h>
#include <descriptor-projection/projected-descriptor-quantizer.h>
#include <gflags/gflags.h>
#include <glog/logging.h>
#incl... | 1,158 |
1,199 | <filename>games/fortune/files/patch-strfile.c
--- strfile/strfile.c.orig Tue Oct 8 17:16:57 2002
+++ strfile/strfile.c Tue Oct 8 17:17:05 2002
@@ -452,7 +452,7 @@
long tmp;
long *sp;
- srandomdev();
+ srandom(getpid());
Tbl.str_flags |= STR_RANDOM;
cnt = Tbl.str_numstr;
--- strfile/strfile.c.orig 2007... | 623 |
12,536 | <reponame>xyzst/gvisor
// Copyright 2018 The gVisor 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 ... | 1,138 |
1,259 | import pytest
from django.core.signing import TimestampSigner
from rest_framework.exceptions import AuthenticationFailed
from integrations.slack.authentication import OauthInitAuthentication
oauth_init_authentication = OauthInitAuthentication()
def test_oauth_init_authentication_failes_if_invalid_signature_is_passe... | 397 |
12,252 | <reponame>rmartinc/keycloak
/*
* Copyright 2016 Red Hat, Inc. and/or its affiliates
* and other contributors as indicated by the @author tags.
*
* 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... | 978 |
4,054 | // Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.vespa.orchestrator.status;
/**
* Enumeration of the different statuses a host can have.
*
* @author oyving
*/
public enum HostStatus {
/** The services on the host is supposed to be up. */... | 265 |
12,366 | // Copyright 2021 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in w... | 686 |
474 | <filename>GVRf/Framework/framework/src/main/java/org/gearvrf/scene_objects/GVRSphereSceneObject.java
/* Copyright 2015 Samsung Electronics Co., LTD
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the Li... | 20,792 |
3,102 | <gh_stars>1000+
// RUN: %clang_cc1 -std=c++2a -emit-header-module -fmodule-name=attrs -x c++-header %S/Inputs/empty.h %S/Inputs/attrs.h -o %t.pcm
// RUN: %clang_cc1 -std=c++2a %s -fmodule-file=%t.pcm -E -verify -I%S/Inputs | FileCheck %s
#define SEMI ;
// expected-error@+1 {{semicolon terminating header import declara... | 300 |
629 | //
// File: imgdgdbadbaihlng_xnrm2.cpp
//
// Code generated for Simulink model 'est_estimator'.
//
// Model version : 1.1142
// Simulink Coder version : 8.11 (R2016b) 25-Aug-2016
// C/C++ source code generated on : Tue Oct 16 10:06:07 2018
//
#include "rtwtypes.h"
#include <math.h>
#include "im... | 508 |
839 | /**
* 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 m... | 3,713 |
764 | <reponame>641589523/token-profile
{"symbol": "INS","address": "0x5B2e4a700dfBc560061e957edec8F6EeEb74a320","overview":{"en": ""},"email": "<EMAIL>","website": "https://insolar.io/","state": "NORMAL","links": {"blog": "https://medium.com/insolar","twitter": "https://twitter.com/insolario","telegram": "https://t.me/insol... | 141 |
386 | <gh_stars>100-1000
##########################################################################
#
# Copyright (c) 2007-2013, Image Engine Design Inc. All rights reserved.
#
# Copyright 2010 Dr D Studios Pty Limited (ACN 127 184 954) (Dr. D Studios),
# its affiliates and/or its licensors.
#
# Redistribution and use in... | 15,367 |
369 | <filename>inc/osvr/Common/NetworkingSupport.h<gh_stars>100-1000
/** @file
@brief Header
@date 2015
@author
Sensics, Inc.
<http://sensics.com/osvr>
*/
// Copyright 2015 Sensics, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compli... | 900 |
2,868 | <gh_stars>1000+
/*
* Copyright (c) 2016-2020, Intel Corporation
*
* 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 cond... | 1,977 |
456 | <gh_stars>100-1000
// SPDX-License-Identifier: BSD-3-Clause
// Copyright (c) 2004-2020 <NAME>
// All rights reserved.
#include <djvUI/Spacer.h>
#include <djvUI/Style.h>
using namespace djv::Core;
namespace djv
{
namespace UI
{
namespace Layout
{
struct Spacer::Private
... | 2,301 |
12,252 | <filename>testsuite/integration-arquillian/tests/base/src/test/java/org/keycloak/testsuite/broker/KcSamlRequestedAuthnContextBrokerTest.java
package org.keycloak.testsuite.broker;
import org.keycloak.broker.saml.SAMLIdentityProviderConfig;
import org.keycloak.dom.saml.v2.protocol.AuthnContextComparisonType;
import org... | 6,433 |
2,406 | <filename>inference-engine/src/vpu/common/include/vpu/configuration/switch_converters.hpp
// Copyright (C) 2021 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#pragma once
#include <string>
#include <unordered_map>
namespace vpu {
const std::unordered_map<std::string, bool>& string2switch();
const std:... | 137 |
326 | // Boost.Geometry
// QuickBook Example
// Copyright (c) 2021, Oracle and/or its affiliates
// Contributed and/or modified by <NAME>, on behalf of Oracle
// Use, modification and distribution is subject to the Boost Software License,
// Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost... | 408 |
1,391 | <filename>src/libndb/ndblookval.c
#include <u.h>
#include <libc.h>
#include <bio.h>
#include <ip.h>
#include <ndb.h>
/*
* Look for a pair with the given attribute. look first on the same line,
* then in the whole entry.
*/
Ndbtuple*
ndbfindattr(Ndbtuple *entry, Ndbtuple *line, char *attr)
{
Ndbtuple *nt;
/* f... | 388 |
2,329 | package data;
class SimpleClassFour {
{
System.out.println("clinit!");
}
public int boo;
public static String s;
public SimpleClassFour(int i) {
}
public SimpleClassFour(String d) {
}
void boo() {
}
@SuppressWarnings("unused")
private static void foo() {
}
public String goo(int i, double d, Stri... | 175 |
348 | <filename>docs/data/leg-t2/088/08804491.json
{"nom":"<NAME>","circ":"4ème circonscription","dpt":"Vosges","inscrits":78,"abs":29,"votants":49,"blancs":9,"nuls":4,"exp":36,"res":[{"nuance":"LR","nom":"<NAME>","voix":21},{"nuance":"SOC","nom":"<NAME>","voix":15}]} | 111 |
313 | <gh_stars>100-1000
{"status_id":1975907262660608,"text":"Vecrepe cavugiwi za vi udhofaso damdalha fah kupca narod ucodo doom ofucoz kizremwe puhkuwmi puwlevu womub fesjenkum idvaag. #mojne","user":{"user_id":1367694733475840,"name":"<NAME>","screen_name":"@rot","created_at":1318723664,"followers_count":80,"friends_cou... | 203 |
587 | /*
* Copyright (C) 2013 salesforce.com, 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 ... | 2,473 |
407 | <reponame>StyleTang/SmartEngine<filename>core/src/main/java/com/alibaba/smart/framework/engine/configuration/impl/DefaultXmlParserFacade.java<gh_stars>100-1000
package com.alibaba.smart.framework.engine.configuration.impl;
import java.lang.reflect.Field;
import java.util.ArrayList;
import java.util.List;
import java.u... | 2,650 |
348 | <reponame>chamberone/Leaflet.PixiOverlay
{"nom":"Ploumilliau","circ":"4ème circonscription","dpt":"Côtes-d'Armor","inscrits":2024,"abs":1005,"votants":1019,"blancs":77,"nuls":39,"exp":903,"res":[{"nuance":"REM","nom":"<NAME>","voix":531},{"nuance":"SOC","nom":"Mme <NAME>","voix":372}]} | 122 |
5,267 | package io.swagger.v3.core.oas.models.composition;
import com.fasterxml.jackson.annotation.JsonSubTypes;
import com.fasterxml.jackson.annotation.JsonSubTypes.Type;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
@JsonTypeInfo(
use = JsonTypeInfo.Id.NAME,
include = JsonTypeInfo.As.EXTERNAL_PROPER... | 338 |
2,728 | <filename>ReactNativeFrontend/ios/Pods/boost/boost/atomic/detail/ops_gcc_aarch64_common.hpp<gh_stars>1000+
/*
* Distributed under the Boost Software License, Version 1.0.
* (See accompanying file LICENSE_1_0.txt or copy at
* http://www.boost.org/LICENSE_1_0.txt)
*
* Copyright (c) 2020 <NAME>
*/
/*!
* \file ato... | 766 |
580 | <reponame>shuaijunlan/floodlight<gh_stars>100-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/LICENSE-2.0
*
* Unless requi... | 9,197 |
5,788 | /*
* 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,180 |
5,238 | <reponame>nickzhuang0613/lvgl
#
# Example of styling the bar
#
style_bg = lv.style_t()
style_indic = lv.style_t()
style_bg.init()
style_bg.set_border_color(lv.palette_main(lv.PALETTE.BLUE))
style_bg.set_border_width(2)
style_bg.set_pad_all(6) # To make the indicator smaller
style_bg.set_radius(6)
style_bg.s... | 324 |
5,133 | /*
* Copyright MapStruct Authors.
*
* Licensed under the Apache License version 2.0, available at http://www.apache.org/licenses/LICENSE-2.0
*/
package org.mapstruct.ap.test.abstractclass;
/**
* @author <NAME>
*/
public interface BaseMapperInterface {
Target sourceToTargetFromBaseMapperInterface(Source sourc... | 99 |
784 | package com.gplibs.magicsurfaceview;
class WaitNotify {
private boolean mWait = false;
private boolean mNotify = false;
private SimpleLock mLock = new SimpleLock();
WaitNotify() {
}
void doNotify() {
mLock.lock();
try {
mNotify = true;
if (mWait) {
... | 709 |
4,962 | <filename>byte-buddy-dep/src/test/java/net/bytebuddy/implementation/bind/annotation/TargetMethodAnnotationDriverBinderParameterBinderForFixedValueOfConstantTest.java<gh_stars>1000+
package net.bytebuddy.implementation.bind.annotation;
import net.bytebuddy.ByteBuddy;
import net.bytebuddy.dynamic.loading.ClassLoadingStr... | 1,155 |
529 | // CRT I/O redirection support
#include <stdio.h>
#include <time.h>
#include <rt_sys.h>
#include "stm32f4xx.h"
// disable semi hosting as NETMF doesn't require it and it adds to code size
#pragma import(__use_no_semihosting_swi)
#pragma import(__use_no_semihosting)
#pragma import(__use_no_heap_region)
#pragm... | 835 |
348 | {"nom":"Authiou","circ":"2ème circonscription","dpt":"Nièvre","inscrits":36,"abs":11,"votants":25,"blancs":4,"nuls":0,"exp":21,"res":[{"nuance":"REM","nom":"M. <NAME>","voix":11},{"nuance":"SOC","nom":"M. <NAME>","voix":10}]} | 94 |
436 | /**
* The MIT License
* Copyright (c) 2019- Nordic Institute for Interoperability Solutions (NIIS)
* Copyright (c) 2018 Estonian Information System Authority (RIA),
* Nordic Institute for Interoperability Solutions (NIIS), Population Register Centre (VRK)
* Copyright (c) 2015-2017 Estonian Information System Autho... | 1,292 |
850 | <filename>tests/structures/test_if_elif_else.py<gh_stars>100-1000
from ..utils import TranspileTestCase
class IfElifElseTests(TranspileTestCase):
def test_if(self):
# Matches if
self.assertCodeExecution("""
x = 1
if x < 5:
print('Small x')
""")
... | 4,705 |
318 | <reponame>jasjuang/opengm
#ifndef OPENGM_LP_SOLVER_GUROBI_HXX_
#define OPENGM_LP_SOLVER_GUROBI_HXX_
#include <gurobi_c++.h>
#include <opengm/inference/auxiliary/lpdef.hxx>
#include <opengm/inference/auxiliary/lp_solver/lp_solver_interface.hxx>
#include <opengm/utilities/timer.hxx>
/*********************
* class def... | 18,298 |
880 | # Copyright (c) Meta Platforms, Inc. and affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
from typing import Callable, Optional
import libcst as cst
from libcst import parse_expression
from libcst._nodes.tests.base import CSTNode... | 2,201 |
2,144 | /**
* 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... | 488 |
1,379 | package voldemort.store.stats;
import org.junit.Before;
import org.junit.Test;
public class RequestCounterTest {
private RequestCounter requestCounter;
@Before
public void setUp() {
// Initialize the RequestCounter with a histogram
requestCounter = new RequestCounter("tests.RequestCounte... | 220 |
302 | <reponame>susannahsoon/oldperth<filename>nyc/task_reader.py
'''Read tasks from a variety of possible sources.
If a single argument is passed to the program beginning with 'http://', it will
read tasks from that URL. Otherwise it will read from files passed as
parameters. Otherwise it will read from stdin.
'''
import ... | 286 |
348 | <gh_stars>100-1000
{"nom":"<NAME>","circ":"3ème circonscription","dpt":"Haute-Vienne","inscrits":581,"abs":311,"votants":270,"blancs":42,"nuls":24,"exp":204,"res":[{"nuance":"REM","nom":"<NAME>","voix":150},{"nuance":"LR","nom":"<NAME>","voix":54}]} | 100 |
3,227 | <gh_stars>1000+
// Copyright (c) 2005-2009 INRIA Sophia-Antipolis (France).
// All rights reserved.
//
// This file is part of CGAL (www.cgal.org)
//
// $URL$
// $Id$
// SPDX-License-Identifier: LGPL-3.0-or-later OR LicenseRef-Commercial
//
//
// Author(s) : <NAME>, <NAME>
#include <CGAL/Exact_predicates_inexact_... | 2,350 |
852 | #include "HLTTrackWithHits.h"
// declare this class as a framework plugin
#include "FWCore/Framework/interface/MakerMacros.h"
DEFINE_FWK_MODULE(HLTTrackWithHits);
| 58 |
323 | package cn.huanzi.qch.springbootmybatis.service;
import cn.huanzi.qch.springbootmybatis.mapper.UserMapper;
import cn.huanzi.qch.springbootmybatis.pojo.Result;
import cn.huanzi.qch.springbootmybatis.pojo.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
... | 753 |
440 | <filename>IGC/Compiler/CISACodeGen/Simd32Profitability.hpp
/*========================== begin_copyright_notice ============================
Copyright (C) 2017-2021 Intel Corporation
SPDX-License-Identifier: MIT
============================= end_copyright_notice ===========================*/
#pragma once
#include "... | 945 |
474 | //
// TuSDKCPStackFilterBarBase.h
// TuSDK
//
// Created by <NAME> on 16/9/23.
// Copyright © 2016年 tusdk.<EMAIL>. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "TuSDKCPStackFilterTableView.h"
#import "TuSDKCPFilterOnlineControllerInterface.h"
@protocol TuSDKCPStackFilterBarInterface;
/**
* 滤镜组选择栏委托
... | 2,845 |
14,668 | <reponame>zealoussnow/chromium
// Copyright 2021 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef ASH_PUBLIC_CPP_PROJECTOR_PROJECTOR_ANNOTATOR_CONTROLLER_H_
#define ASH_PUBLIC_CPP_PROJECTOR_PROJECTOR_ANNOTATOR_CON... | 436 |
988 | <reponame>oyarzun/incubator-netbeans<filename>php/php.api.phpmodule/src/org/netbeans/modules/php/api/util/StringUtils.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
* regardin... | 4,489 |
1,822 | <gh_stars>1000+
// Copyright (c) 2020 ETH Zurich
//
// SPDX-License-Identifier: BSL-1.0
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
#pragma once
#include <hpx/parallel/task_block.hpp>
namespace hpx {
... | 213 |
1,391 | #include "stdinc.h"
#include "9.h"
typedef struct {
char* argv0;
int (*cmd)(int, char*[]);
} Cmd;
static struct {
QLock lock;
Cmd* cmd;
int ncmd;
int hi;
} cbox;
enum {
NCmdIncr = 20,
};
int
cliError(char* fmt, ...)
{
char *p;
va_list arg;
va_start(arg, fmt);
p = vsmprint(fmt, arg);
werrstr("%s", p);
... | 855 |
646 |
#include "HeliumRain/Quests/QuestCatalog/FlareHistoryQuest.h"
#include "HeliumRain/Flare.h"
#include "HeliumRain/Data/FlareResourceCatalog.h"
#include "HeliumRain/Data/FlareSpacecraftCatalog.h"
#include "HeliumRain/Economy/FlareCargoBay.h"
#include "HeliumRain/Game/FlareGame.h"
#include "HeliumRain/Game/FlareGameTo... | 10,598 |
1,086 | <filename>test/util.c
/********************************************************************
* *
* THIS FILE IS PART OF THE OggVorbis SOFTWARE CODEC SOURCE CODE. *
* USE, DISTRIBUTION AND REPRODUCTION OF THIS LIBRARY SOURCE IS *
* GOVERNED BY A B... | 780 |
305 | package org.mamute.validators;
import br.com.caelum.vraptor.validator.Validator;
import com.google.common.base.Function;
import com.google.common.collect.Collections2;
import org.mamute.factory.MessageFactory;
import org.mamute.model.Attachment;
import javax.annotation.Nullable;
import javax.inject.Inject;
import jav... | 406 |
2,863 | <filename>spock-core/src/main/java/org/spockframework/builder/ClosureBlueprint.java<gh_stars>1000+
/*
* Copyright 2010 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 th... | 405 |
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.statistics.export.service;
import static org.hamcrest.CoreMatchers.is;
import stati... | 1,867 |
1,066 | package org.gradle.profiler;
public enum BuildStep {
CLEANUP, BUILD
}
| 27 |
704 | package org.jgroups.util;
import org.jgroups.logging.Log;
/**
* Log (using {@link SuppressCache}) which suppresses (certain) messages from the same member for a given time
* @author <NAME>
* @since 3.2
*/
public class SuppressLog<T> {
protected final Log log;
protected final SuppressCache<T>... | 791 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.