max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
993 | # Copyright (c) 2021 PPViT Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable... | 6,074 |
885 | <reponame>Sollertix/PnP
/*******************************************************************************
**NOTE** This code was generated by a tool and will occasionally be
overwritten. We welcome comments and issues regarding this code; they will be
addressed in the generation tool. If you wish to submit pull requests... | 655 |
809 | <gh_stars>100-1000
/**
* @file
* @brief nxt touch sensor driver
*
* @date 02.12.10
* @author <NAME>
*/
#include <stdint.h>
#include <embox/test.h>
#include <unistd.h>
#include <drivers/nxt/avr.h>
#include <drivers/nxt/touch_sensor.h>
#define TOUCH_ADC_EDGE 500
static touch_hnd_t touch_sens_hnds[NXT_AVR_N_INPUT... | 404 |
879 | package org.zstack.zql;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.concurrent.atomic.AtomicLong;
public class ZQLStatistic {
private List<SlowZQLStatistic> slowZQLStatistics = Collections.synchronizedList(new ArrayList<>());
private AtomicLong executedZql... | 348 |
2,685 |
/*
* Copyright (C) <NAME> (vozlt)
*/
#ifndef _NGX_HTTP_VTS_DISPLAY_H_INCLUDED_
#define _NGX_HTTP_VTS_DISPLAY_H_INCLUDED_
ngx_int_t ngx_http_vhost_traffic_status_display_get_upstream_nelts(
ngx_http_request_t *r);
ngx_int_t ngx_http_vhost_traffic_status_display_get_size(
ngx_http_request_t *r, ngx_int_t f... | 717 |
910 | <gh_stars>100-1000
/*
* Copyright (c) 2021 VMware, Inc.
* SPDX-License-Identifier: MIT
*
* 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 limitatio... | 997 |
547 | <filename>renderer-macos/lib/stubs/BriskWindowDelegate.c
#import "BriskWindowDelegate.h"
@implementation BriskWindowDelegate {
value didResizeCallback;
}
- (void)windowDidResize:(NSNotification *)__unused aNotification {
if (didResizeCallback) {
brisk_caml_call(didResizeCallback);
}
}
- (void)setOnWindowDi... | 205 |
992 | /*
Copyright (c) 2006, <NAME> and <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 list of
conditions and the following ... | 3,005 |
2,338 | <reponame>mkinsner/llvm<filename>cross-project-tests/debuginfo-tests/dexter-tests/dbg-arg.c
// REQUIRES: lldb
// UNSUPPORTED: system-windows
//
// This test case checks debug info during register moves for an argument.
// RUN: %dexter --fail-lt 1.0 -w \
// RUN: --builder clang-c --debugger 'lldb' \
// RUN: --cf... | 466 |
393 | <filename>DMHY/NavigationView.h<gh_stars>100-1000
//
// NavigationView.h
// DMHY
//
// Created by 小笠原やきん on 9/9/15.
// Copyright © 2015 yaqinking. All rights reserved.
//
#import <Cocoa/Cocoa.h>
@interface NavigationView : NSView
@end
| 103 |
401 | /*
* Hedgewars, a free turn based strategy game
* Copyright (C) 2012 <NAME> <<EMAIL>>
*
* 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
* of the License, or (at your opti... | 357 |
945 | <reponame>floryst/ITK<gh_stars>100-1000
/*: Self-sorting in-place generalized prime factor (complex) double fft */
extern int v3p_netlib_dgpfa_(
v3p_netlib_doublereal *a, /*!< (IN/OUT) Real part of input/output vectors */
v3p_netlib_doublereal *b, /*!< (IN/OUT) Imaginary part of input/output vectors */
v3p_netlib... | 389 |
669 | <filename>onnxruntime/test/testdata/custom_execution_provider_library/my_ep_factory.cc
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
#include "core/common/gsl_suppress.h"
#include "my_ep_factory.h"
#include "my_execution_provider.h"
#include "core/providers/shared/commo... | 1,232 |
14,668 | <gh_stars>1000+
// 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 COMPONENTS_SECURITY_STATE_CONTENT_ANDROID_SECURITY_STATE_CLIENT_H_
#define COMPONENTS_SECURITY_STATE_CONTENT_ANDROID_SECURITY_STAT... | 305 |
852 | <reponame>ckamtsikis/cmssw
#ifndef CSCSPCounters_h
#define CSCSPCounters_h
#include <cstring>
class CSCSPCounters {
private:
// Block of counters
/////// word 1 ///////
unsigned track_counter_low : 15; //
unsigned zero_1 : 1; //
/////// word 2 ///////
unsigned track_counter_high : 15; //
... | 434 |
2,872 | {
"editor.insertSpaces": true,
"editor.tabSize": 2,
// For eslint
"eslint.enable": true,
"eslint.autoFixOnSave": true,
"tslint.enable": false,
// For flow
"flow.runOnAllFiles": true,
"flow.useNPMPackagedFlow": true,
"javascript.validate.enable": false,
} | 111 |
450 | <reponame>YangHao666666/hawq<filename>src/backend/cdb/cdbdisp.c
/*
* 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 yo... | 9,189 |
575 | // Copyright 2017 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "third_party/zlib/google/zip_writer.h"
#include "base/files/file.h"
#include "base/logging.h"
#include "base/strings/string_util.h"
#include "th... | 2,881 |
679 | <reponame>IzaakBirch/togglz<gh_stars>100-1000
package org.togglz.core.proxy;
import java.util.function.Supplier;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import org.togglz.core.Feature;
import org.togglz.core.manager.FeatureManager;
import org.togglz.core.manager.FeatureManagerBuild... | 1,234 |
365 | <filename>super-boot-gateway/src/main/java/org/superboot/entity/response/ResDate.java
package org.superboot.entity.response;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.io.Serializable;
/**
* <b> </b>
* <p>
* 功能描述:
* </p>
*
* @author ... | 692 |
743 | <filename>pebble/src/main/java/com/mitchellbosecke/pebble/extension/ExtensionRegistryFactory.java
package com.mitchellbosecke.pebble.extension;
import com.mitchellbosecke.pebble.extension.core.AttributeResolverExtension;
import com.mitchellbosecke.pebble.extension.core.CoreExtension;
import com.mitchellbosecke.pebble.... | 827 |
374 | <gh_stars>100-1000
/*
* Copyright (c) 2017 Trail of Bits, 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 ... | 2,730 |
2,400 | <reponame>mayurhole/optaplanner<filename>optaplanner-core/src/main/java/org/optaplanner/core/impl/score/stream/quad/AbstractQuadJoiner.java
/*
* Copyright 2020 Red Hat, Inc. and/or its affiliates.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance wi... | 1,381 |
798 | <gh_stars>100-1000
package picard.util;
import htsjdk.samtools.util.Md5CalculatingInputStream;
import htsjdk.samtools.util.Md5CalculatingOutputStream;
import org.testng.Assert;
import org.testng.annotations.Test;
import java.io.BufferedOutputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.... | 1,104 |
393 | package pl.otros.swing.rulerbar;
import javax.swing.text.JTextComponent;
import java.awt.*;
public class LineInTextMarker extends Marker {
private final int caretPosition;
private final JTextComponent textComponent;
public LineInTextMarker(String message, Color color, float percentValue,
... | 292 |
435 | <reponame>cirnoftw/android-openslmediaplayer
//
// Copyright (C) 2014 <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/LICENS... | 427 |
11,884 | <reponame>zouxifeng/teleport
/*
Copyright 2021 Gravitational, Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law ... | 1,835 |
10,225 | package org.jboss.resteasy.reactive.common.headers;
import java.util.List;
import javax.ws.rs.core.CacheControl;
import javax.ws.rs.ext.RuntimeDelegate;
import org.jboss.resteasy.reactive.common.util.ExtendedCacheControl;
/**
* @author <a href="mailto:<EMAIL>"><NAME></a>
*/
public class CacheControlDelegate impleme... | 2,545 |
9,724 | #include "alutInternal.h"
static enum
{
Unintialized, /* ALUT has not been initialized yet or has been de-initialised */
ALUTDeviceAndContext, /* alutInit has been called successfully */
ExternalDeviceAndContext /* alutInitWithoutContext has been called */
} initialisationState = Uni... | 1,277 |
14,668 | <reponame>zealoussnow/chromium
{
"getAvailableSinks": {
"urn:x-org.chromium.media:source:desktop":
[{"id" : "id1", "friendlyName" : "test-sink-1"}]
}
}
| 80 |
2,232 | <reponame>solson/lean
/*
Copyright (c) 2015 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: <NAME>
*/
#include "library/trace.h"
#include "library/norm_num.h"
#include "library/util.h"
#include "library/constants.h"
#include "library/comp_val.h"
n... | 13,408 |
1,694 | <filename>stagemonitor-core/src/main/java/org/stagemonitor/core/util/http/ErrorLoggingResponseHandler.java
package org.stagemonitor.core.util.http;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.stagemonitor.core.util.HttpClient;
import org.stagemonitor.util.IOUtils;
import java.io.IOException;
i... | 363 |
784 | package io.jboot.test.cache.caffeine;
import io.jboot.Jboot;
import io.jboot.app.JbootApplication;
import io.jboot.components.cache.JbootCache;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
public class CaffeineTester {
private static final String cacheName = "cachename";
@Test
... | 677 |
375 | /*
* Copyright 2015 Nokia Solutions and Networks
* Licensed under the Apache License, Version 2.0,
* see license.txt file for details.
*/
package org.robotframework.ide.eclipse.main.plugin.model.cmd;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
import org.robo... | 1,008 |
914 | <gh_stars>100-1000
package top.crossoverjie.cicada.db.core.handle;
import com.healthmarketscience.sqlbuilder.BinaryCondition;
import com.healthmarketscience.sqlbuilder.InsertQuery;
import com.healthmarketscience.sqlbuilder.UpdateQuery;
import com.healthmarketscience.sqlbuilder.dbspec.basic.DbColumn;
import com.healthm... | 2,221 |
52,316 | <reponame>oleksandr-pavlyk/cpython
import binascii
import functools
import hmac
import hashlib
import unittest
import unittest.mock
import warnings
from test.support import hashlib_helper, check_disallow_instantiation
from _operator import _compare_digest as operator_compare_digest
try:
import _hashlib as _hasho... | 14,224 |
1,350 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.analytics.synapse.spark.models;
import com.azure.core.util.ExpandableStringEnum;
import com.fasterxml.jackson.annotation.JsonCreator;
import jav... | 528 |
407 | package com.alibaba.smart.framework.engine.test.process.bean;
import lombok.Data;
@Data
public class Order {
private Double yzje;
} | 50 |
1,534 | {
"appDesc": {
"message": "Ne gubite vreme na komplikacije. Universal Bypass zaobilazi dosadne link shortenere."
},
"firstrunTitle": {
"message": "Hvala vam za instaliranje Universal Bypass!"
},
"firstrunNoScript": {
"message": "Međutim, izgleda da koristite NoScript ili slično, s čime Universal Bypass nije ... | 293 |
497 | <reponame>jhseodev/ngx_dynamic_upstream<gh_stars>100-1000
#include <ngx_config.h>
#include <ngx_core.h>
#include <ngx_http.h>
#include "ngx_dynamic_upstream_op.h"
static ngx_http_upstream_srv_conf_t *
ngx_dynamic_upstream_get_zone(ngx_http_request_t *r, ngx_dynamic_upstream_op_t *op);
static ngx_int_t
ngx_dynamic_u... | 3,720 |
4,816 | /**
* @file src/ctypes/reference_type.cpp
* @brief Implementation of ReferenceType.
* @copyright (c) 2018 Avast Software, licensed under the MIT license
*/
#include <cassert>
#include "retdec/ctypes/context.h"
#include "retdec/ctypes/reference_type.h"
#include "retdec/ctypes/visitor.h"
namespace retdec {
namespace c... | 594 |
5,133 | <gh_stars>1000+
/*
* 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.nestedproperties.simple.source;
public class SourceRoot {
private SourceProps props;
public void setProps(SourcePro... | 157 |
16,461 | // Copyright © 2018 650 Industries. All rights reserved.
#import <ExpoModulesCore/EXExportedModule.h>
#import <ExpoModulesCore/EXModuleRegistryConsumer.h>
static NSString *const EXNetworkTypeUnknown = @"UNKNOWN";
static NSString *const EXNetworkTypeNone = @"NONE";
static NSString *const EXNetworkTypeWifi = @"WIFI";
... | 139 |
892 | {
"schema_version": "1.2.0",
"id": "GHSA-72w6-jr6g-jmgh",
"modified": "2022-05-01T06:42:32Z",
"published": "2022-05-01T06:42:32Z",
"aliases": [
"CVE-2006-0766"
],
"details": "ICQ Inc. (formerly Mirabilis) ICQ 2003a, 2003b, Lite 4.0, Lite 4.1, and possibly other Windows versions allows user-assisted re... | 439 |
711 | package com.java110.goods.bmo.storeOrderCartReturn.impl;
import com.java110.core.annotation.Java110Transactional;
import com.java110.goods.bmo.storeOrderCartReturn.IDeleteStoreOrderCartReturnBMO;
import com.java110.intf.goods.IStoreOrderCartReturnInnerServiceSMO;
import com.java110.po.storeOrderCartReturn.StoreOrderCa... | 472 |
3,182 | <reponame>Junzerg/lombok
import java.util.List;
public class SuperBuilderBasicToBuilder {
@lombok.experimental.SuperBuilder(toBuilder=true)
public static class Parent {
private int field1;
@lombok.Builder.ObtainVia(field="field1")
int obtainViaField;
@lombok.Builder.ObtainVia(method="method")
int obtainVia... | 305 |
4,339 | /*
* 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 ... | 827 |
1,125 | <gh_stars>1000+
/*
* Licensed to Elasticsearch under one or more contributor
* license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright
* ownership. Elasticsearch licenses this file to you under
* the Apache License, Version 2.0 (the "License"); you may
*... | 1,199 |
1,038 | import kopf
@kopf.on.create('zalando.org', 'v1', 'kopfexamples')
def create_fn(logger, **kwargs):
logger.info("Something was logged here.")
| 59 |
458 | package com.example.gitnb.module.repos;
import android.content.Context;
import android.graphics.Color;
import android.graphics.Paint;
import android.support.v7.widget.RecyclerView;
import android.support.v7.widget.RecyclerView.ViewHolder;
import android.text.Html;
import android.util.StringBuilderPrinter;
import andro... | 1,738 |
679 | <reponame>Grosskopf/openoffice
/**************************************************************
*
* 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... | 22,670 |
552 | <reponame>lygstate/MIEngine
#pragma once
typedef void (*func4)();
typedef int (*func5)(int, int);
int* func6(func4 f4, func5 f5);
void func7();
int func8(int x, int y); | 73 |
1,247 | <filename>libpharos/delta.hpp
// Copyright 2015-2018 <NAME>. See LICENSE file for terms.
#ifndef Pharos_Delta_H
#define Pharos_Delta_H
#include "enums.hpp"
namespace pharos {
// Our confidence in the correctness of the stack delta. This is a strict ordering from least
// confident to most confident. Comparisons ... | 742 |
14,325 | package seaweedfs.file;
import org.junit.Assert;
import org.junit.Test;
import java.io.File;
import java.io.IOException;
import java.io.RandomAccessFile;
import java.nio.ByteBuffer;
import java.util.Random;
public class RandomeAccessFileTest {
@Test
public void testRandomWriteAndRead() throws IOException {
... | 845 |
348 | {"nom":"Plouëc-du-Trieux","circ":"5ème circonscription","dpt":"Côtes-d'Armor","inscrits":919,"abs":458,"votants":461,"blancs":12,"nuls":57,"exp":392,"res":[{"nuance":"REM","nom":"<NAME>","voix":257},{"nuance":"UDI","nom":"<NAME>","voix":135}]} | 102 |
4,202 | <filename>tests/__init__.py
# -*- coding:utf-8 -*-
#!/usr/bin/env python
"""
Date: 2019/12/12 18:16
Desc:
"""
| 51 |
3,102 | // RUN: %clang_cc1 -fsyntax-only -std=c++11 %s
template <typename T>
struct A {
// Used to crash when field was named after class.
int A = 0;
};
A<int> a;
| 66 |
648 | <gh_stars>100-1000
import torch
import torch.nn as nn
from mmcv.cnn import ConvModule, kaiming_init
from mmcv.runner import _load_checkpoint, load_checkpoint
from mmcv.utils import print_log
from ...utils import get_root_logger
from ..builder import BACKBONES
from .resnet3d import ResNet3d
try:
from mmdet.models ... | 10,809 |
538 | <reponame>mrarronz/react-native-blog-examples
package com.datatransfer;
import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
public class TestActivity extends Activity {
private Button button;
@Override
protected void onCreate(Bundle savedInstanc... | 303 |
1,004 | <reponame>d6t/d6tflow
import d6tflow
import pandas as pd
# define 2 tasks that load raw data
class Task1(d6tflow.tasks.TaskCache):
def run(self):
df = pd.DataFrame({'a': range(3)})
self.save(df) # quickly save dataframe
class Task2(Task1):
pass
# define another task that depends on data ... | 603 |
928 | # This test verifies that __name__ == "__main__" works properly in Python Loader
if __name__ == "__main__":
print('Test: 1234567890abcd')
| 47 |
2,151 | <reponame>Keneral/aframeworks<filename>opt/net/wifi/service/java/com/android/server/wifi/hotspot2/omadm/ManagementTreeRoot.java<gh_stars>1000+
/*
* Copyright (C) 2016 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance ... | 878 |
337 | #pragma once
#include <openvr_driver.h>
class VRWatchdogProvider : public vr::IVRWatchdogProvider
{
/** initializes the driver in watchdog mode. */
virtual vr::EVRInitError Init(vr::IVRDriverContext *pDriverContext)
{
VR_INIT_WATCHDOG_DRIVER_CONTEXT(pDriverContext);
return vr::VRInitError_None;
}
/** cleans... | 160 |
1,273 | <reponame>sunboy0523/gatk<gh_stars>1000+
package org.broadinstitute.hellbender.tools.htsgetreader;
import java.io.ByteArrayInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.net.URI;
import java.nio.file.Files;
import java.nio.file.Path;
import java.util.Array... | 1,848 |
323 | <filename>lib/ros_lib/moveit_msgs/GetMotionSequence.h
#ifndef _ROS_SERVICE_GetMotionSequence_h
#define _ROS_SERVICE_GetMotionSequence_h
#include <stdint.h>
#include <string.h>
#include <stdlib.h>
#include "ros/msg.h"
#include "moveit_msgs/MotionSequenceRequest.h"
#include "moveit_msgs/MotionSequenceResponse.h"
namespa... | 766 |
1,701 | package com.google.maps.android;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
/** Helper class for obtaining i... | 654 |
9,156 | /**
* 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... | 1,687 |
468 | <filename>OpenGLDLL/GLFunctions/Misc/EXT_framebuffer_blit_Include.h
#define GLI_INCLUDE_EXT_FRAMEBUFFER_BLIT
void glBlitFramebufferEXT(GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, GLint dstX0, GLint dstY0, GLint dstX1, GLint dstY1, GLbitfield mask, GLenum[Main] filter);
| 118 |
343 | from mayan.apps.views.forms import DetailForm
from .models import Cache, CachePartition
class CacheDetailForm(DetailForm):
class Meta:
fields = ('defined_storage_name',)
model = Cache
class CachePartitionDetailForm(DetailForm):
class Meta:
fields = ('cache', 'name')
model = ... | 122 |
501 | #!/usr/bin/env python
# Copyright 2014-2018 The PySCF Developers. 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
#
# U... | 1,068 |
6,989 | <gh_stars>1000+
#include "par_log.h"
| 18 |
3,366 | <gh_stars>1000+
#include"query.h"
#include<ostream>
using std::ostream;
ostream&
operator<<(ostream &os, const Query &query)
{
return os << query.rep();
} | 62 |
439 | <reponame>JananiPalanisamy/java
{
"blurb": "Write a function to determine if a list is a sublist of another list.",
"authors": [
"stkent"
],
"contributors": [
"aadityakulkarni",
"FridaTveit",
"hgvanpariya",
"jmrunkle",
"jtigger",
"kytrinyx",
"lemoncurry",
"mirkoperillo",
... | 346 |
507 | # terrascript/resource/brightbox.py
# Automatically generated by tools/makecode.py (24-Sep-2021 15:13:43 UTC)
#
# For imports without namespace, e.g.
#
# >>> import terrascript.resource.brightbox
#
# instead of
#
# >>> import terrascript.resource.brightbox.brightbox
#
# This is only available for 'official' and 'pa... | 123 |
372 | <reponame>kbore/pbis-open
/*
* Copyright © BeyondTrust Software 2004 - 2019
* All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/lic... | 2,355 |
775 | <reponame>Isaac-DeFrain/rchain
/* Mode: -*- C++ -*- */
// vim: set ai ts=4 sw=4 expandtab
/* @BC
* Copyright (c) 1993
* by Microelectronics and Computer Technology Corporation (MCC)
* All Rights Reserved
*
* Permission to use, copy, modify, and distribute this software and its
* documentat... | 1,088 |
348 | {"nom":"Sonnac-sur-l'Hers","circ":"3ème circonscription","dpt":"Aude","inscrits":120,"abs":49,"votants":71,"blancs":9,"nuls":3,"exp":59,"res":[{"nuance":"REM","nom":"<NAME>","voix":37},{"nuance":"SOC","nom":"<NAME>","voix":22}]} | 96 |
676 | <gh_stars>100-1000
package com.alorma.github.presenter.repos;
import com.alorma.github.presenter.BaseRxPresenter;
import com.alorma.github.presenter.View;
import java.util.List;
import core.datasource.CacheDataSource;
import core.datasource.CloudDataSource;
import core.repositories.Repo;
import core.repository.Gener... | 246 |
375 | {
"name": "obs-websocket-js",
"version": "4.0.3",
"description": "OBS Websocket API in Javascript, consumes @Palakis/obs-websocket",
"author": "<NAME> (haganbmj)",
"license": "MIT",
"repository": "obs-websocket-community-projects/obs-websocket-js",
"repoUrl": "https://github.com/obs-websocket-community-pr... | 1,355 |
2,962 | <filename>storio-sqlite/src/test/java/com/pushtorefresh/storio3/sqlite/operations/put/PutObjectsStub.java
package com.pushtorefresh.storio3.sqlite.operations.put;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import com.pushtorefresh.storio3.sqlite.Changes;
import com.pushtore... | 5,895 |
696 | <reponame>hwang-pku/Strata
/*
* Copyright (C) 2016 - present by OpenGamma Inc. and the OpenGamma group of companies
*
* Please see distribution for license.
*/
package com.opengamma.strata.product;
import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;
import java.util.NoSuchElementException;... | 4,936 |
892 | {
"schema_version": "1.2.0",
"id": "GHSA-6ghc-48vx-2m7g",
"modified": "2022-05-13T01:13:45Z",
"published": "2022-05-13T01:13:45Z",
"aliases": [
"CVE-2017-8244"
],
"details": "In core_info_read and inst_info_read in all Android releases from CAF using the Linux kernel, variable \"dbg_buf\", \"dbg_buf->... | 620 |
1,694 | //
// Generated by class-dump 3.5 (64 bit) (Debug version compiled Sep 17 2017 16:24:48).
//
// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2015 by <NAME>.
//
#import "MMUIViewController.h"
#import "EditBottleProfileDelegate-Protocol.h"
#import "PBMessageObserverDelegate-Protocol.h"
#import "UIAler... | 757 |
335 | <reponame>tsbohc/ProjectE
package moze_intel.projecte.api.capabilities;
import java.math.BigInteger;
import java.util.List;
import java.util.Map;
import java.util.Set;
import javax.annotation.Nonnull;
import moze_intel.projecte.api.ItemInfo;
import net.minecraft.entity.player.ServerPlayerEntity;
import net.minecraft.i... | 1,557 |
4,372 | <filename>shardingsphere-proxy/shardingsphere-proxy-backend/src/main/java/org/apache/shardingsphere/proxy/backend/communication/jdbc/statement/JDBCBackendStatement.java
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* th... | 1,386 |
442 | <reponame>violet-Bin/read-spring-code
/*
* Copyright 2002-2016 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
*
* https://www.apache.org/licenses/... | 2,160 |
385 | """
Displays a NetworkX octahedral graph to screen using a ArcPlot.
"""
import matplotlib.pyplot as plt
import networkx as nx
from nxviz.plots import ArcPlot
G = nx.octahedral_graph()
c = ArcPlot(G)
c.draw()
plt.show()
| 85 |
343 | //
// TonicTests.h
// TonicTests
//
// Created by <NAME> on 4/19/13.
// Copyright (c) 2013 <NAME>. All rights reserved.
//
#import <XCTest/XCTest.h>
@interface TonicTests : XCTestCase
@end
| 84 |
381 | import thread
# ^^ relative import of __pypy__.thread. Note that some tests depend on
# this (test_enable_signals in test_signal.py) to work properly,
# otherwise they get caught in some deadlock waiting for the import
# lock...
class SignalsEnabled(object):
'''A context manager to use in non-main threads:
enabl... | 217 |
4,140 | /*
* 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 ... | 815 |
2,151 | // 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.
package org.chromium.services.service_manager;
import org.chromium.mojo.bindings.ConnectionErrorHandler;
import org.chromium.mojo.bindings.Interface;
imp... | 712 |
800 | # 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-2.0
#
# Unless required by applicable law or agreed to in writing, softw... | 1,969 |
407 | #include <iostream>
#include <algorithm>
#include <string>
typedef long long int ll;
using namespace std;
#define NM 100005
int N, cnt[30], kind;
string A;
void input() {
cin >> N;
cin >> A;
}
void add(char x) { // x 라는 알파벳 추가
cnt[x - 'a']++;
if (cnt[x - 'a'] == 1) // 새롭게 나타난 알파벳이라는 뜻
kind++;
}
void erase(c... | 547 |
401 | /*
* Hedgewars, a free turn based strategy game
* Copyright (C) 2012 <NAME> <<EMAIL>>
*
* 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
* of the License, or (at your opti... | 466 |
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 ... | 1,838 |
450 | #pragma once
#include <stdint.h>
#include <stdbool.h>
void ONNC_RUNTIME_min_float(
void * restrict onnc_runtime_context
,const float * const * restrict input_data_0
,int32_t input_data_0_ntensor
,const int32_t * input_data_0_ndim, const int32_t * const * restrict input_data_0_dims
,float * restrict output_m... | 157 |
2,221 | <reponame>10088/flume<gh_stars>1000+
/**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License... | 4,986 |
460 | /* This file is part of the KDE project.
Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
This library 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 versio... | 552 |
600 | <filename>engine/source/preprocessorlib/test/calculator.c
/**
* Calculates the value of the constant integer expressions that are used
* in #if and #elif directives in the C preprocessor.
*
* @author Plombo
* @date 6 March 2012
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdbool.h>
#i... | 719 |
956 | <reponame>ajitkhaparde/trex-core
/* SPDX-License-Identifier: BSD-3-Clause
*
* Copyright 2017 NXP
*
*/
#ifndef _DPAA_LOGS_H_
#define _DPAA_LOGS_H_
#include <rte_log.h>
extern int dpaa_logtype_bus;
#define DPAA_BUS_LOG(level, fmt, args...) \
rte_log(RTE_LOG_ ## level, dpaa_logtype_bus, "dpaa: " fmt "\n", ##arg... | 465 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.