max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
435 | <filename>euroscipy-2017/videos/euroscipy-2017-pyrate-optical-raytracing-based-on-python.json
{
"copyright_text": "Creative Commons Attribution license (reuse allowed)",
"description": "Pyrate is a program for scientific optical lens design. It traces rays\nthrough an optical system and optimizes its properties, e.... | 542 |
337 | public class JavaClass {
public static String getNull() {
return null;
}
public static My getMy() {
return null;
}
} | 61 |
1,200 | <gh_stars>1000+
#ifndef LEGO_MQLogger_H_
#define LEGO_MQLogger_H_
#include <string>
namespace CarreraConsumer {
typedef void (* LEGO_LOG_FUNC)(const char *);
class MQLogger
{
public:
MQLogger():func_(&DefaultOutputWrapper){}
virtual ~MQLogger(){}
void SetOutputFunction(LEGO_LOG_FUNC func);
... | 227 |
2,452 | <reponame>iyzwei4666/MyWeibo<filename>toutiao/src/main/java/com/meiji/toutiao/setting/TextSizeFragment.java
package com.meiji.toutiao.setting;
import android.app.Fragment;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.view.LayoutInflater;
import android.view.View;
import android.... | 1,067 |
333 | <filename>src/main/java/com/alipay/api/domain/AlipayOpenMiniDeploypackageQueryModel.java
package com.alipay.api.domain;
import com.alipay.api.AlipayObject;
import com.alipay.api.internal.mapping.ApiField;
/**
* 线上拉包接口
*
* @author auto create
* @since 1.0, 2019-09-16 11:48:31
*/
public class AlipayOpen... | 1,989 |
8,805 | /*=============================================================================
Copyright (c) 2016 <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)
=================================================... | 1,917 |
1,224 | /*******************************************************************************
* Copyright (c) 2016 EclipseSource and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is ava... | 4,912 |
997 | #ifndef PQCLEAN_SNTRUP857_CLEAN_CRYPTO_ENCODE_INT16_H
#define PQCLEAN_SNTRUP857_CLEAN_CRYPTO_ENCODE_INT16_H
#include <stdint.h>
#define PQCLEAN_SNTRUP857_CLEAN_crypto_encode_int16_STRBYTES 2
#define PQCLEAN_SNTRUP857_CLEAN_crypto_encode_int16_ITEMS 1
#define PQCLEAN_SNTRUP857_CLEAN_crypto_encode_int16_ITEMBYTES 2
voi... | 199 |
478 | <filename>source/uwp/Renderer/lib/AdaptiveShowCardActionRenderer.h
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
#pragma once
#include "AdaptiveShowCardActionRenderer.g.h"
namespace winrt::AdaptiveCards::Rendering::Uwp::implementation
{
struct AdaptiveShowCardActi... | 643 |
308 | # -*- coding: utf-8 -*-
from hamcrest import *
from test.base import BaseTestCase
from amplify.agent.common.context import context
from amplify.agent.objects.plus.api import NginxApiHttpCacheObject
__author__ = "<NAME>"
__copyright__ = "Copyright (C) Nginx, Inc. All rights reserved."
__license__ = ""
__maintainer__ ... | 7,829 |
369 | <gh_stars>100-1000
// Copyright (c) 2017-2022, Mudita <NAME>.o.o. All rights reserved.
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md
#include "RT1051DriverSAI.hpp"
#include "bsp/BoardDefinitions.hpp"
#include "../fsl_drivers/fsl_sai_edma.h"
namespace drivers
{
using namespace magic_enum;
... | 4,608 |
742 | <gh_stars>100-1000
#ifndef BODY_ARMOR_ARTIFACT_DATA_H
#define BODY_ARMOR_ARTIFACT_DATA_H
#include <memory>
#include <vector>
#include "ArmorArtifactData.h"
class ArmorMaterial;
enum class ArmorType;
enum class BodyPartName;
class BodyArmorArtifactData : public ArmorArtifactData
{
private:
std::uni... | 311 |
360 | <filename>contrib/pgrowlocks/pgrowlocks.cpp
/*
* contrib/pgrowlocks/pgrowlocks.c
*
* Copyright (c) 2005-2006 <NAME>
*
* Permission to use, copy, modify, and distribute this software and
* its documentation for any purpose, without fee, and without a
* written agreement is hereby granted, provided that the above
... | 3,315 |
772 | package com.sksamuel.scrimage.webp;
import org.apache.commons.lang3.SystemUtils;
import java.io.IOException;
import java.io.InputStream;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.StandardCopyOption;
import java.util.Arrays;
import java.util.concurrent.TimeUnit;
abstract class WebpHa... | 752 |
5,316 | package com.airbnb.aerosolve.core.transforms;
import com.airbnb.aerosolve.core.transforms.types.StringTransform;
import java.text.Normalizer;
import com.typesafe.config.Config;
/**
* Normalizes strings to UTF-8 NFC, NFD, NFKC or NFKD form (NFD by default)
* "field1" specifies the key of the feature
* "normalizat... | 564 |
435 | <filename>pycon-thailand-2018/videos/teaching-and-learning-with-python.json
{
"copyright_text": "Creative Commons Attribution license (reuse allowed)",
"description": "This talk will feature discussions of how Python can be used to teach principles of computer science but it isn't limited to educators. Learning abo... | 491 |
2,151 | <filename>components/offline_pages/core/prefetch/prefetch_configuration.cc
// 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 "components/offline_pages/core/prefetch/prefetch_configuration.h"
#in... | 172 |
3,269 | <reponame>Priyansh2/LeetCode-Solutions
// Time: O(|V| + |E|) = O(|E|) since graph is connected, O(|E|) >= O(|V|)
// Space: O(|V| + |E|) = O(|E|)
class Solution {
public:
int secondMinimum(int n, vector<vector<int>>& edges, int time, int change) {
vector<vector<int>> adj(n);
for (const auto& edge :... | 2,211 |
5,169 | {
"name": "Classes",
"version": "0.0.1",
"summary": "A short description of Classes.",
"description": "私有Pods测试\n* Markdown 格式",
"homepage": "http://EXAMPLE/Classes",
"license": "MIT",
"authors": {
"fangyuan2902": ""
},
"source": {
"git": "https://github.com/fangyuan2902/StringUtil.git"
},
... | 252 |
4,054 | <filename>readthedocs/integrations/migrations/0008_add_new_jsonfields.py<gh_stars>1000+
# Generated by Django 3.2.11 on 2022-01-31 11:47
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('integrations', '0007_update-provider-data'),
]
operations =... | 420 |
488 | // t0055.cc
// member initializer where member is a templatized base class
template <class T>
class A {
public:
int f();
A(T t);
int g();
};
class B : A<int> {
public:
B() : A<int>(5) {}
};
// variant using an explicit specialization
template <>
class A<float> {};
struct D : A<float> {
D() : A<floa... | 152 |
381 | <reponame>wasauce/depthai-experiments
import cv2
import numpy as np
import depthai as dai
from time import sleep
'''
Basic demo of gen2 pipeline builder functionality where output of jpeg encoded images are sent out SPI rather than the typical XLink out interface.
Make sure you have something to handle the SPI protoc... | 771 |
560 | <reponame>zhanghai/Douya<gh_stars>100-1000
/*
* Copyright (c) 2018 <NAME> <<EMAIL>>
* All Rights Reserved.
*/
package me.zhanghai.android.douya.glide;
import android.appwidget.AppWidgetManager;
import android.content.ComponentName;
import android.content.Context;
import android.graphics.Bitmap;
import android.grap... | 991 |
713 | <reponame>t-gergely/infinispan
package org.infinispan.cloudevents.configuration;
import java.util.HashMap;
import java.util.Map;
/**
* Attribute.
*
* @author <NAME>
* @since 12
*/
public enum Attribute {
// must be first
UNKNOWN(null),
BOOTSTRAP_SERVERS("bootstrap-servers"),
ACKS("acks"),
AUDIT_T... | 459 |
927 | /* DO NOT EDIT THIS FILE - it is machine generated */
#include <jni.h>
/* Header for class android_serialport_SerialPort */
#ifndef _Included_android_serialport_SerialPort
#define _Included_android_serialport_SerialPort
#ifdef __cplusplus
extern "C" {
#endif
/*
* Class: android_serialport_SerialPort
* Method: ... | 356 |
1,338 | /*
* Copyright 2011, <NAME>, <EMAIL>.
* Distributed under the terms of the MIT License.
*/
#include "Query.h"
#include <file_systems/QueryParser.h>
#include "AttributeCookie.h"
#include "Directory.h"
#include "Index.h"
#include "Node.h"
#include "Volume.h"
// #pragma mark - QueryPolicy
struct Query::QueryPol... | 2,094 |
459 | <gh_stars>100-1000
/*
* This file is part of choco-solver, http://choco-solver.org/
*
* Copyright (c) 2021, IMT Atlantique. All rights reserved.
*
* Licensed under the BSD 4-clause license.
*
* See LICENSE file in the project root for full license information.
*/
package org.chocosolver.solver.search.loop.monit... | 265 |
1,031 | <reponame>stjordanis/ml-cheatsheet
import torch
import torch.nn as nn
#from torch.autograd import Variable
class RNN(nn.Module):
def __init__(self, n_classes):
super().__init__()
self.hid_fc = nn.Linear(185, 128)
self.out_fc = nn.Linear(185, n_classes)
self.softmax = nn.LogSoftmax()... | 540 |
466 | package mu.nu.nullpo.gui;
public abstract class MouseInputDummy {
protected int mouseX;
protected int mouseY;
protected int[] mousePressed;
protected MouseInputDummy() {
mousePressed = new int[3];
}
public boolean isMouseClicked() {
return (mousePressed[0] == 1);
}
public boolean isMouseM... | 461 |
448 | <gh_stars>100-1000
/*
+----------------------------------------------------------------------+
| PHP Version 7 |
+----------------------------------------------------------------------+
| Copyright (c) The PHP Group ... | 1,405 |
777 | // Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ui/gfx/blit.h"
#include <stddef.h>
#include "base/logging.h"
#include "build/build_config.h"
#include "skia/ext/platform_canvas.h"
#includ... | 1,429 |
1,718 | #pragma once
#ifdef USE_CUDA
#define WARP_SIZE 32
#define MAX_THREADS_PER_BLOCK 1024
#define REDUCE_THREADS 256
#define HOST_AND_DEVICE __host__ __device__
#define FORCE_INLINE __forceinline__
#include <cuda_fp16.h>
#include <cuda_runtime.h>
#else
#define HOST_AND_DEVICE
#define FORCE_INLINE inline
#endif // USE_CUDA
... | 186 |
843 | package org.zalando.nakadi.annotations.validation;
import org.junit.Before;
import org.junit.Test;
import javax.validation.Valid;
import javax.validation.Validation;
import javax.validation.Validator;
import static org.junit.Assert.assertTrue;
import static org.junit.jupiter.api.Assertions.assertFalse;
public class... | 484 |
602 | <reponame>jtgrabowski/stargate<filename>testing/src/test/java/io/stargate/it/cql/AbstractCompressionTest.java<gh_stars>100-1000
package io.stargate.it.cql;
import static org.assertj.core.api.Assertions.assertThat;
import static org.assertj.core.api.Assertions.offset;
import com.datastax.oss.driver.api.core.CqlSession... | 756 |
38,047 | #include "test/jemalloc_test.h"
#define ARENA_RESET_PROF_C_
#include "arena_reset.c"
| 40 |
2,496 | <gh_stars>1000+
/*
* Copyright (C) 2005-2008 <NAME>. 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
*
* Unles... | 17,332 |
513 | // https://www.interviewbit.com/problems/number-of-1-bits/
int Solution::numSetBits(unsigned int A) {
// Do not write main() function.
// Do not read input, instead use the arguments to the function.
// Do not print the output, instead return values as specified
// Still have a doubt. Checkout www.inte... | 228 |
935 | /*
* Copyright 2017-2019 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/LICENSE-2.0
*
* Unless required by a... | 589 |
2,180 | /*
* This file is part of the Heritrix web crawler (crawler.archive.org).
*
* Licensed to the Internet Archive (IA) by one or more individual
* contributors.
*
* The IA licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* ... | 2,006 |
1,179 | <gh_stars>1000+
// SPDX-License-Identifier: BSD-2-Clause
/*
* Copyright (c) 2014-2019, Linaro Limited
*/
#include <assert.h>
#include <crypto/crypto.h>
#include <crypto/crypto_impl.h>
#include <stdlib.h>
#include <string.h>
#include <tee_api_types.h>
#include <tee/tee_cryp_utl.h>
#include <util.h>
/* From libtomcr... | 3,066 |
460 | <filename>playwright/src/main/java/com/microsoft/playwright/impl/JSHandleImpl.java<gh_stars>100-1000
/*
* Copyright (c) Microsoft Corporation.
* <p>
* 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... | 1,388 |
471 | <filename>examples/pxScene2d/external/WinSparkle/3rdparty/wxWidgets/tests/geometry/region.cpp<gh_stars>100-1000
///////////////////////////////////////////////////////////////////////////////
// Name: tests/geometry/region.cpp
// Purpose: wxRegion unit test
// Author: <NAME>
// Created: 2011-10-12
/... | 1,359 |
605 | <reponame>MaxLabHub/GlideBitmapPool<filename>glide-bitmap-pool/src/main/java/com/glidebitmappool/internal/SizeConfigStrategy.java
/*
* Copyright (C) 2016 <NAME>
* Copyright (C) 2011 Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this fi... | 3,819 |
892 | <gh_stars>100-1000
{
"schema_version": "1.2.0",
"id": "GHSA-gwc8-4x3p-h96j",
"modified": "2022-05-02T00:10:05Z",
"published": "2022-05-02T00:10:05Z",
"aliases": [
"CVE-2008-4432"
],
"details": "Cross-site scripting (XSS) vulnerability in search.php in the RMSOFT MiniShop module 1.0 for Xoops allows re... | 470 |
1,144 | <filename>backend/de.metas.vertical.pharma.securpharm/src/main/java-gen/de/metas/vertical/pharma/securpharm/model/I_M_Securpharm_Log.java
package de.metas.vertical.pharma.securpharm.model;
/** Generated Interface for M_Securpharm_Log
* @author Adempiere (generated)
*/
@SuppressWarnings("javadoc")
public interface... | 6,085 |
1,319 | from paddlenlp.transformers import ErniePretrainedModel, BertPretrainedModel, RobertaPretrainedModel
from paddle import nn
import paddle
class ErnieForQuestionAnswering(ErniePretrainedModel):
def __init__(self, ernie):
super(ErnieForQuestionAnswering, self).__init__()
self.ernie = ernie # allow er... | 1,520 |
5,169 | <reponame>Gantios/Specs
{
"name": "PinFloyd",
"summary": "MapKit annotations clustering for iOS.",
"version": "1.0.4",
"homepage": "https://github.com/vadymmarkov/PinFloyd",
"license": "MIT",
"authors": {
"<NAME>": "<EMAIL>"
},
"source": {
"git": "https://github.com/vadymmarkov/PinFloyd.git",
... | 288 |
575 | // Copyright (c) 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.
#include "chrome/browser/ash/login/oobe_configuration.h"
#include "base/bind.h"
#include "base/callback.h"
#include "base/json/json_reader.h"
#includ... | 1,346 |
928 | <filename>pyportify/pkcs1/keys.py<gh_stars>100-1000
import fractions
from . import primitives
from . import exceptions
from .defaults import default_crypto_random
from .primes import get_prime, DEFAULT_ITERATION
class RsaPublicKey(object):
__slots__ = ('n', 'e', 'bit_size', 'byte_size')
def __init__(self, n... | 2,849 |
1,444 | package org.mage.test.cards.single.lrw;
import mage.constants.PhaseStep;
import mage.constants.Zone;
import org.junit.Test;
import org.mage.test.player.TestPlayer;
import org.mage.test.serverside.base.CardTestPlayerBase;
/**
* @author Kranken, LevelX2
*/
public class BurrentonForgeTenderTest extends CardTestPlayer... | 2,394 |
804 | <reponame>rfscholte/jansi
/*******************************************************************************
* Copyright (C) 2017, the original author(s).
*
* 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 ... | 364 |
702 | /*
* Copyright Hyperledger Besu Contributors.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agr... | 634 |
2,055 | # pragma once
# include <imgui.h>
namespace ax {
namespace Drawing {
enum class IconType: ImU32 { Flow, Circle, Square, Grid, RoundSquare, Diamond };
void DrawIcon(ImDrawList* drawList, const ImVec2& a, const ImVec2& b, IconType type, bool filled, ImU32 color, ImU32 innerColor);
} // namespace Drawing
} // namespac... | 106 |
1,975 | <filename>omaha/common/ping_event.cc
// Copyright 2011 Google Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless requi... | 3,500 |
778 | package org.knowm.xchart.demo.charts.radar;
import org.knowm.xchart.RadarChart;
import org.knowm.xchart.RadarChartBuilder;
import org.knowm.xchart.SwingWrapper;
import org.knowm.xchart.demo.charts.ExampleChart;
import org.knowm.xchart.style.Styler.LegendPosition;
/**
* Radar Chart
*
* <p>Demonstrates the following... | 674 |
335 | {
"word": "Laboured",
"definitions": [
"Done with great effort and difficulty.",
"(especially of humour or a performance) not spontaneous or fluent."
],
"parts-of-speech": "Adjective"
} | 81 |
784 | <gh_stars>100-1000
[
{
"range": { "start": { "line": 1, "character": 11 }, "end": { "line": 1, "character": 18 } },
"severity": 1,
"source": "ts",
"message": "Argument of type '$$Props' is not assignable to parameter of type '{ exported1: string; }'.\n Types of property 'exported1' ... | 212 |
1,768 | package tlc2.value.impl;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;
import static org.junit.Assert.fail;
import org.junit.Test;
import util.Assert.TLCRuntimeException;
public class IntervalValueTest {
@Test
public void testElementAt() {
final IntervalValue iv = new ... | 1,187 |
6,969 | ##### 7th solution
#---------------------------------------------------------
for i in range(int(input())):
s = input()
print(*[''.join(s[::2]), ''.join(s[1::2])]) | 54 |
421 | #using <System.dll>
#using <System.Drawing.dll>
#using <System.Windows.Forms.dll>
using namespace System;
using namespace System::Windows::Forms;
public ref class Form1: public Form
{
protected:
ListBox^ textBox1;
// <Snippet1>
private:
void PrintProductVersion()
{
textBox1->Text = ... | 172 |
652 | <reponame>EnrikoChavez/opencbdc-tx
// Copyright (c) 2021 MIT Digital Currency Initiative,
// Federal Reserve Bank of Boston
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "ostream_serializer.hpp"
#i... | 635 |
1,024 | <filename>src/main/java/com/commafeed/backend/model/AbstractModel.java
package com.commafeed.backend.model;
import java.io.Serializable;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.MappedSuperclass;
import javax.persis... | 325 |
319 | <reponame>wh81752/quarkus-cxf<filename>integration-tests/src/test/java/io/quarkiverse/it/cxf/GreetingWebServiceImplTestIT.java
package io.quarkiverse.it.cxf;
import static io.restassured.RestAssured.given;
import static org.hamcrest.CoreMatchers.containsString;
import org.junit.jupiter.api.Test;
import io.quarkus.te... | 896 |
630 | <gh_stars>100-1000
#include <hb.h>
#include <hb-ft.h>
#ifndef HB_VERSION_ATLEAST
#define HB_VERSION_ATLEAST(major,minor,micro) \
((major)*10000+(minor)*100+(micro) <= \
HB_VERSION_MAJOR*10000+HB_VERSION_MINOR*100+HB_VERSION_MICRO)
#endif
#if HB_VERSION_ATLEAST(1,1,3)
#define USE_HARFBUZZ_METRICS
#inclu... | 1,650 |
407 | package com.alibaba.tesla.appmanager.trait.plugin;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import com.alibaba.fastjson.TypeReference;
import com.alibaba.tesla.appmanager.common.exception.AppErrorCode;
import com.alibaba.tesla.appmanager.common.ex... | 3,060 |
1,373 | package com.o19s.es.ltr.ranker.normalizer;
import com.o19s.es.ltr.ranker.LtrRanker;
import org.apache.lucene.util.Accountable;
import org.apache.lucene.util.RamUsageEstimator;
import java.util.Map;
import java.util.Objects;
public class FeatureNormalizingRanker implements LtrRanker, Accountable {
private final ... | 1,053 |
3,402 | <gh_stars>1000+
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* ... | 1,136 |
1,657 | __author__ = "<NAME>"
__version__ = "0.0.1"
__license__ = "BSD"
import inspect
import numpy as np
import ConfigSpace
import ConfigSpace.hyperparameters as CSH
from autoPyTorch.pipeline.nodes.loss_module_selector import LossModuleSelector
from autoPyTorch.utils.configspace_wrapper import ConfigWrapper
from autoPyTorc... | 471 |
8,095 | <reponame>radiantprism/StarCraft-2<filename>pysc2/tests/protocol_error_test.py
#!/usr/bin/python
# Copyright 2017 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License... | 1,508 |
1,581 | <filename>AppDevKit/ColorHexPresentationViewController.h<gh_stars>1000+
//
// UIColorHexPresentationViewController.h
// AppDevKit
//
// Created by <NAME> on 6/9/15.
// Copyright © 2015, Yahoo Inc.
// Licensed under the terms of the BSD License.
// Please see the LICENSE file in the project root for terms.
//
#im... | 137 |
1,501 | <reponame>osterwood/litex<filename>litex/compat/soc_sdram.py<gh_stars>1000+
####################################################################################################
# DISCLAIMER: Provides retro-compatibility layer for SoCSDRAM based designs.
# Will soon no longer work, please don't use in... | 1,115 |
882 | package water.api;
import dontweave.gson.JsonObject;
import water.Job;
import water.util.Log;
import water.util.RemoveAllKeysTask;
public class RemoveAll extends JSONOnlyRequest {
@Override public RequestServer.API_VERSION[] supportedVersions() { return SUPPORTS_ONLY_V2; }
@Override protected void registered(Requ... | 359 |
5,717 | <filename>samples/hmd_opencv_sandbox/opencv_process.cpp
#include "opencv_process.h"
#include "hmd_opencv_sandbox.h"
#include <opencv2/imgproc/types_c.h>
#include <opencv2/calib3d.hpp>
#include <opencv2/imgproc.hpp>
#include "common_hello.h"
#include <time.h>
#define STB_IMAGE_WRITE_IMPLEMENTATION
#include "stb_image_w... | 11,423 |
348 | <filename>docs/data/leg-t2/062/06203351.json
{"nom":"Fouquières-lès-Lens","circ":"3ème circonscription","dpt":"Pas-de-Calais","inscrits":4559,"abs":2749,"votants":1810,"blancs":85,"nuls":56,"exp":1669,"res":[{"nuance":"FN","nom":"M. <NAME>","voix":972},{"nuance":"MDM","nom":"<NAME>","voix":697}]} | 133 |
2,338 | <filename>clang/test/SemaCXX/cxx03-aligned-allocation-unscoped-enum.cpp
// RUN: %clang_cc1 -std=c++03 -triple x86_64-pc-linux-gnu %s \
// RUN: -faligned-allocation -emit-llvm -o - -Wno-c++11-extensions | FileCheck %s
// Ensure Clang doesn't confuse std::align_val_t with the sized deallocation
// parameter when the e... | 304 |
1,767 | package com.annimon.stream.operator;
import com.annimon.stream.iterator.PrimitiveIterator;
import org.jetbrains.annotations.NotNull;
public class IntLimit extends PrimitiveIterator.OfInt {
private final PrimitiveIterator.OfInt iterator;
private final long maxSize;
private long index;
public IntLimit... | 247 |
1,909 | package org.knowm.xchange.ftx.dto.account;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.math.BigDecimal;
import org.knowm.xchange.currency.Currency;
public class FtxWalletBalanceDto {
@JsonProperty("coin")
private Currency coin;
@JsonProperty("free")
private BigDecimal free;
@JsonPro... | 328 |
14,668 | // 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.
#include "media/audio/alsa/alsa_util.h"
#include "media/audio/alsa/mock_alsa_wrapper.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace alsa_uti... | 687 |
1,656 | """
.. module: lemur.plugins.lemur_jks.plugin
:platform: Unix
:copyright: (c) 2018 by Netflix Inc., see AUTHORS for more
:license: Apache, see LICENSE for more details.
.. moduleauthor:: <NAME> <<EMAIL>>
"""
from cryptography.fernet import Fernet
from cryptography.hazmat.primitives import serialization
fr... | 1,865 |
932 | <reponame>oriolmirosa/dash-recipes<filename>tabs-and-intervals.py
import dash
from dash.dependencies import Input, Output, Event, State
import dash_core_components as dcc
import dash_html_components as html
import datetime
app = dash.Dash()
app.scripts.config.serve_locally = True
app.config['suppress_callback_excepti... | 580 |
507 | # terrascript/mysql/d.py
| 11 |
2,542 | // ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
// ------------------------------------------------------------
#pragma once
namespace Common... | 130 |
4,200 | /*
* Copyright 2018 Rundeck, Inc. (http://rundeck.com)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appli... | 1,267 |
679 | <filename>main/connectivity/source/inc/propertyids.hxx
/**************************************************************
*
* 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 c... | 2,257 |
7,956 | <reponame>Earthman100/spyder
# -*- coding: utf-8 -*-
#
# Copyright © Spyder Project Contributors
# Licensed under the terms of the MIT License
# (see spyder/__init__.py for details)
"""
spyder.plugins.appearance
=========================
Appearance Plugin.
"""
| 86 |
1,141 | <filename>quokka/core/app.py
# coding: utf-8
from flask import Blueprint, Flask
from flask.helpers import _endpoint_from_view_func
class QuokkaApp(Flask):
"""
Implements customizations on Flask
- custom add_quokka_url_rule
- properties to access db and admin
"""
def add_quokka_url_rule(self, ... | 590 |
5,169 | {
"name": "AsyncOpKit",
"version": "1.0.0",
"summary": "Generic NSOperation subclass for managing asynchronous code in Swift",
"description": "AsyncOpKit provides AsyncOp, a generic NSOperation subclass for managing\nasynchronous operations with NSOperationQueues while taking advantage of\nthe power of Swift's ... | 265 |
1,133 | #!/usr/bin/env python3
#
# Author: <NAME>
# Copyright 2016
#
# <NAME>: Adopted for stack processing
import argparse
import numpy as np
import os
import isce
import isceobj
import logging
import datetime
from isceobj.Location.Offset import OffsetField, Offset
from isceobj.Util.decorators import use_api
import s1a_isce... | 3,475 |
14,668 | // Copyright 2019 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 "chrome/chrome_cleaner/engines/controllers/engine_facade.h"
#include <utility>
#include "base/check.h"
#include "chrome/chrome_cleaner/engines/... | 396 |
8,747 | /*
* SPDX-FileCopyrightText: 2017-2021 Espressif Systems (Shanghai) CO LTD
*
* SPDX-License-Identifier: Apache-2.0
*/
#pragma once
#ifdef __cplusplus
extern "C" {
#endif
/**
* @brief Set up the SysTick interrupt
*/
void vPortSetupTimer(void);
#ifdef __cplusplus
}
#endif
| 112 |
5,169 | <filename>Specs/TFSliderView/0.1.1/TFSliderView.podspec.json<gh_stars>1000+
{
"name": "TFSliderView",
"version": "0.1.1",
"summary": "An easy to use stylish toggle switch for iOS 8+.",
"homepage": "https://github.com/tarikfayad/TFSliderView",
"description": "TFSliderView is an easy to use stylish toggle switc... | 403 |
363 | <reponame>dingjs/javaagent
/*
* Javassist, a Java-bytecode translator toolkit.
* Copyright (C) 1999- <NAME>. All Rights Reserved.
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this file except in compliance with
* the License. Alternatively... | 6,211 |
1,056 | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | 678 |
432 | <gh_stars>100-1000
/*
* Copyright (c) 1993, 1994, 1995, 1996, 1997
* The Regents of the University of California. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that: (1) source code distributions
* retain the above copyright not... | 716 |
1,723 | from collections import defaultdict
class Graph:
def __init__(self, vertices):
self.graph = defaultdict(list)
self.vertices = vertices
def add_edge(self, u, v):
self.graph[u].append(v)
def print_path(self, s, d, visited, path):
visited[s] = True
... | 580 |
3,477 | // Copyright Microsoft and Project Verona Contributors.
// SPDX-License-Identifier: MIT
#include <ds/scramble.h>
// Simple test that perm is not preserving orders.
int main()
{
xoroshiro::p128r32 r(2);
bool failed = false;
for (size_t i = 0; i < 100; i++)
{
verona::Scramble s1;
s1.setup(r);... | 363 |
2,206 | <gh_stars>1000+
/*
* ******************************************************************************
* *
* *
* * This program and the accompanying materials are made available under the
* * terms of the Apache License, Version 2.0 which is available at
* * https://www.apache.org/licenses/LICENSE-2.0.
* *
... | 719 |
348 | <reponame>chamberone/Leaflet.PixiOverlay
{"nom":"Amenoncourt","circ":"4ème circonscription","dpt":"Meurthe-et-Moselle","inscrits":70,"abs":38,"votants":32,"blancs":0,"nuls":2,"exp":30,"res":[{"nuance":"LR","nom":"<NAME>","voix":22},{"nuance":"REM","nom":"<NAME>","voix":8}]} | 116 |
2,338 | <reponame>undingen/BOLT<filename>clang/test/CodeGen/RISCV/rvv-intrinsics-overloaded/vfmin.c
// NOTE: Assertions have been autogenerated by utils/update_cc_test_checks.py
// REQUIRES: riscv-registered-target
// RUN: %clang_cc1 -triple riscv64 -target-feature +f -target-feature +d -target-feature +experimental-v \
// RUN... | 11,335 |
852 | // Description: see header file
#include "CondFormats/DataRecord/interface/L1TCaloStage2ParamsRcd.h"
#include "FWCore/Framework/interface/eventsetuprecord_registration_macro.h"
EVENTSETUP_RECORD_REG(L1TCaloStage2ParamsRcd);
| 82 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.