max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
3,296 | <reponame>neonkingfr/ccv
#include "case.h"
#include "ccv_case.h"
#include "ccv_nnc_case.h"
#include <ccv.h>
#include <nnc/ccv_nnc.h>
#include <nnc/ccv_nnc_easy.h>
#include <3rdparty/dsfmt/dSFMT.h>
TEST_SETUP()
{
ccv_nnc_init();
}
TEST_CASE("reduce sum forward")
{
GUARD_ELSE_RETURN(ccv_nnc_cmd_ok(CCV_NNC_REDUCE_SUM_... | 2,257 |
1,078 | <filename>tests/api_resources/test_reversal.py<gh_stars>1000+
from __future__ import absolute_import, division, print_function
import pytest
import stripe
TEST_RESOURCE_ID = "trr_123"
class TestReversal(object):
def construct_resource(self):
reversal_dict = {
"id": TEST_RESOURCE_ID,
... | 615 |
685 | {
"average-durations": "平均用时",
"average-tries-count": "平均尝试",
"back-today": "回到今天",
"cheatsheet": "速查表",
"check-assist": "辅助排除",
"colorblind-mode": "色彩增强",
"continue": "继续游戏",
"correct-answer": "正确答案",
"dashboard": "记分板",
"description": "汉字 Wordle",
"dont-spoiler": "分享时建议开启遮罩避免剧透",
"download": "... | 2,444 |
348 | <reponame>chamberone/Leaflet.PixiOverlay<filename>docs/data/leg-t2/062/06201416.json<gh_stars>100-1000
{"nom":"Hautecloque","circ":"1ère circonscription","dpt":"Pas-de-Calais","inscrits":169,"abs":68,"votants":101,"blancs":3,"nuls":3,"exp":95,"res":[{"nuance":"MDM","nom":"<NAME>","voix":49},{"nuance":"FN","nom":"<NAME>... | 143 |
764 | <reponame>641589523/token-profile<filename>erc20/0xef6344de1fcfC5F48c30234C16c1389e8CdC572C.json
{"symbol": "DNA","address": "0xef6344de1fcfC5F48c30234C16c1389e8CdC572C","overview":{"en": ""},"email": "","website": "https://www.encrypgen.com/","state": "NORMAL","links": {"blog": "","twitter": "https://twitter.com/encry... | 152 |
4,054 | // Copyright 2020 Oath Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#pragma once
#include <vespa/metrics/metricset.h>
#include <vespa/metrics/valuemetric.h>
#include <vespa/fnet/connection.h>
namespace storage {
// Simple wrapper around low-level fnet network metrics
cl... | 192 |
399 | <gh_stars>100-1000
package io.envoyproxy.envoymobile.engine.types;
public interface EnvoyLogger {
void log(String str);
}
| 44 |
692 | <gh_stars>100-1000
#include "mpi.h"
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <assert.h>
int main(int argc, char *argv[])
{
int num_procs, num_local;
char mach_name[MPI_MAX_PROCESSOR_NAME];
int mach_len;
MPI_Init (&argc,&argv);
MPI_Comm_size (MPI_COMM_WORLD, &num_procs);
MPI_Comm... | 350 |
7,629 | /* 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 writing, software
distr... | 2,738 |
1,192 | // Run lines below; this test is line- and column-sensitive.
void foo(void) __attribute__((availability(macosx,introduced=10.4,deprecated=10.5,obsoleted=10.7), availability(ios,introduced=3.2,deprecated=4.1)));
enum {
old_enum
} __attribute__((deprecated));
enum {
old_enum_plat
} __attribute__((availability(maco... | 332 |
681 | <filename>AntiEmulator/src/diff/strazzere/anti/MainActivity.java
package diff.strazzere.anti;
import android.app.Activity;
import android.os.Build;
import android.os.Bundle;
import android.util.Log;
import android.view.Menu;
import diff.strazzere.anti.debugger.FindDebugger;
import diff.strazzere.anti.emulator.FindEmul... | 2,031 |
335 | {
"word": "Rocking",
"definitions": [
"Moving gently to and fro or from side to side.",
"(of a place) full of excitement or social activity."
],
"parts-of-speech": "Adjective"
} | 84 |
12,340 | <filename>sonic-iOS/Sonic/ResourceLoader/SonicResourceLoadOperation.h<gh_stars>1000+
//
// SonicResourceLoadOperation.h
// Sonic
//
// Tencent is pleased to support the open source community by making VasSonic available.
// Copyright (C) 2017 THL A29 Limited, a Tencent company. All rights reserved.
// Licensed und... | 468 |
479 | <filename>src/test/resources/restapi/roles_captains_tenants_malformed.json
{
"cluster_permissions" : [ "cluster:monitor*" ],
"index_permissions" : [ {
"index_patterns" : [ "sf" ],
"allowed_actions" : [ "OPENDISTRO_SECURITY_CRUD" ]
}, {
"index_patterns" : [ "pub" ],
"allowed_actions" : [ "OPENDISTR... | 262 |
643 | <filename>rns_shell/platform/graphics/PlatformDisplay.cpp
/*
* Copyright (C) 1994-2021 OpenTV, Inc. and Nagravision S.A.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "ReactSkia/utils/RnsUtils.h"
#if USE(EGL)
#include "egl/GLWindowContextEGL.h... | 1,713 |
6,989 | #include "slice.h"
#include "cuda_buffer.h"
#include <util/stream/output.h>
#include <util/string/cast.h>
template <>
void Out<TSlice>(IOutputStream& o, const TSlice& slice) {
o.Write("[" + ToString(slice.Left) + "-" + ToString(slice.Right) + "]");
}
| 104 |
558 | package syncer.replica.datatype.command.string;
import syncer.replica.datatype.command.GenericKeyValueCommand;
/**
* Append String
*/
public class AppendCommand extends GenericKeyValueCommand {
private static final long serialVersionUID = 1L;
public AppendCommand() {
}
public AppendCommand(byte[... | 128 |
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.
#include "chromecast/external_mojo/external_service_support/tracing_client_dummy.h"
namespace chromecast {
namespace external_service_support {
// static... | 173 |
1,284 | package org.akhq.configs;
import io.micronaut.context.annotation.ConfigurationProperties;
import io.micronaut.security.config.SecurityConfigurationProperties;
import lombok.Data;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
@Data
@ConfigurationProperties("akhq.security.header-auth... | 207 |
789 | package io.advantageous.qbit.service.rest.endpoint.tests.tests;
import io.advantageous.boon.json.JsonFactory;
import io.advantageous.qbit.http.HttpHeaders;
import io.advantageous.qbit.http.request.HttpRequestBuilder;
import io.advantageous.qbit.http.request.HttpTextResponse;
import io.advantageous.qbit.server.Endpoint... | 8,157 |
575 | // Copyright 2014 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 EXTENSIONS_BROWSER_API_EXECUTE_CODE_FUNCTION_IMPL_H_
#define EXTENSIONS_BROWSER_API_EXECUTE_CODE_FUNCTION_IMPL_H_
#include "extensions/browser/ap... | 3,150 |
506 | // https://codeforces.com/contest/1186/problem/D
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
int main() {
cin.tie(0);
ios::sync_with_stdio(0);
int n, s = 0;
cin >> n;
vector<ll> b(n);
vector<bool> c(n);
for (int i = 0; i < n; i++) {
double x;
cin >> x;
b[i] = ll(ceil(... | 243 |
678 | //
// Generated by class-dump 3.5 (64 bit).
//
// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>.
//
#import "MMService.h"
#import "MMService.h"
@class NSMutableArray, NSMutableDictionary, NSString, WAReportOuterMenuActionItem;
@interface WAWebViewReportStatMgr : MMService <MMService>... | 772 |
2,151 | <gh_stars>1000+
print "sample\\path\\foo.cpp"
| 19 |
367 | from .drop import DropPath
from .inverted_residual import InvertedResidual, InvertedResidualV3
from .make_divisible import make_divisible
from .res_layer import ResLayer
from .se_layer import SELayer
from .self_attention_block import SelfAttentionBlock
from .up_conv_block import UpConvBlock
from .weight_init import tru... | 170 |
23,901 | <reponame>DionysisChristopoulos/google-research<filename>group_agnostic_fairness/adversarial_reweighting_model.py
# coding=utf-8
# Copyright 2021 The Google Research 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 ... | 7,123 |
677 | /*
* Copyright (C) 2017 Apple Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions a... | 1,158 |
1,826 | package com.vladsch.flexmark.ext.wikilink.internal;
| 19 |
700 | <reponame>Robin5605/site
# Generated by Django 3.0.14 on 2021-11-05 05:18
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('api', '0072_merge_20210724_1354'),
('api', '0073_otn_allow_GT_and_LT'),
]
operations = [
]
| 128 |
371 | <reponame>sekikn2/bigtop
# pylint: disable=unused-argument
# 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 Apa... | 747 |
23,572 | <reponame>suryatmodulus/puppeteer
{
"compilerOptions": {
"module": "commonjs",
"strict": true,
"outDir": "dist",
"moduleResolution": "node"
},
"files": ["good.ts", "bad.ts"]
}
| 90 |
4,772 | package example.repo;
import example.model.Customer1369;
import java.util.List;
import org.springframework.data.repository.CrudRepository;
public interface Customer1369Repository extends CrudRepository<Customer1369, Long> {
List<Customer1369> findByLastName(String lastName);
}
| 87 |
2,706 | <reponame>17zhangw/peloton
// Copyright (c) 2013-2014 Sandstorm Development Group, Inc. and contributors
// Licensed under the MIT License:
//
// 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 Softwa... | 3,109 |
1,481 | <gh_stars>1000+
package apoc.math;
import apoc.util.TestUtil;
import org.apache.commons.math3.stat.regression.SimpleRegression;
import org.junit.BeforeClass;
import org.junit.ClassRule;
import org.junit.Test;
import org.neo4j.test.rule.DbmsRule;
import org.neo4j.test.rule.ImpermanentDbmsRule;
import static org.junit.... | 1,327 |
1,031 | #!/usr/bin/env python
import sys
import os
def failed(message):
if message == "":
print("mkrelease.py failed to complete")
else:
print(message)
sys.exit(2)
import argparse
parser = argparse.ArgumentParser(description="Build a SWIG distribution source tarball swig-x.y.z.tar.gz and the Windows zip packag... | 919 |
2,151 | <filename>third_party/blink/renderer/core/animation/worklet_animation_controller.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 "third_party/blink/renderer/core/animation/worklet_animation_... | 825 |
471 | <gh_stars>100-1000
/////////////////////////////////////////////////////////////////////////////
// Name: class_webview.h
// Purpose: WebView classes group docs
// Author: wxWidgets team
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
/**
... | 147 |
1,644 | // Copyright 2017 The Nomulus 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 a... | 2,292 |
792 | <filename>python/setup.py
"""
While inside this file folder, run `python setup.py install` or `python setup.py build` to compile this library
NOTE: Visual Studio is required to build C extensions on Windows.
"""
from distutils.core import setup, Extension
gjk = Extension(
name = "gjk",
sources = ["gjk_wrapp... | 176 |
680 | <gh_stars>100-1000
package org.ff4j.hazelcast;
/*
* #%L
* ff4j-store-jcache
* %%
* Copyright (C) 2013 - 2015 FF4J
* %%
* 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:... | 444 |
348 | <gh_stars>100-1000
{"nom":"Bazoncourt","circ":"3ème circonscription","dpt":"Moselle","inscrits":409,"abs":207,"votants":202,"blancs":6,"nuls":3,"exp":193,"res":[{"nuance":"LR","nom":"<NAME>-<NAME>","voix":128},{"nuance":"REM","nom":"<NAME>","voix":65}]} | 103 |
1,644 | // Copyright 2017 The Nomulus 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 a... | 713 |
4,879 | <gh_stars>1000+
#ifndef OSMIUM_IO_WRITER_HPP
#define OSMIUM_IO_WRITER_HPP
/*
This file is part of Osmium (http://osmcode.org/libosmium).
Copyright 2013-2015 <NAME> <<EMAIL>> and others (see README).
Boost Software License - Version 1.0 - August 17th, 2003
Permission is hereby granted, free of charge, to any person... | 2,474 |
577 | <filename>src/org/python/modules/_weakref/ReferenceBackend.java
package org.python.modules._weakref;
import org.python.core.PyObject;
import org.python.core.PyList;
public interface ReferenceBackend {
public PyObject get();
public void add(AbstractReference ref);
public boolean isCleared();
public Abs... | 152 |
1,255 | /*
Copyright (c) 2009-2010 <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... | 3,569 |
575 | <gh_stars>100-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 CHROME_BROWSER_SAFE_BROWSING_CLOUD_CONTENT_SCANNING_BINARY_UPLOAD_SERVICE_FACTORY_H_
#define CHROME_BROWSER_SAFE_BROWSING_CLOUD... | 540 |
12,366 | // 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 w... | 2,065 |
14,668 | // Copyright 2021 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef ASH_SERVICES_QUICK_PAIR_PUBLIC_CPP_BATTERY_NOTIFICATION_H_
#define ASH_SERVICES_QUICK_PAIR_PUBLIC_CPP_BATTERY_NOTIFICATION_H_
#include <cstdint>
... | 667 |
353 | package com.wepay.waltz.server;
import com.wepay.riff.network.SSLConfig;
import com.wepay.riff.config.ConfigException;
import org.junit.Test;
import org.yaml.snakeyaml.Yaml;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.i... | 3,943 |
5,169 | {
"name": "EvoPayTokenizer",
"version": "1.1.6",
"summary": "EvoPayTokenizer helps you get a token for a bank card through evopay Payment Provider.",
"description": "EvoPayTokenizer provides a simple interface to get a token for a payment card, that your users specify. This token will further be used when worki... | 308 |
5,710 | <reponame>mattiapenati/web-frameworks
from masonite.request import Request
from masonite.controllers import Controller
class PageController(Controller):
def index(self):
return ""
def show_user(self, request: Request):
return request.param("id")
def create_user(self):
return ""
| 113 |
575 | // Copyright 2015 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 "content/public/common/content_features.h"
#include "base/feature_list.h"
#include "build/build_config.h"
#include "build/chromeos_buildflags.h"
... | 16,228 |
486 | package com.ptrprograms.gallery.model;
import android.os.Parcel;
import android.os.Parcelable;
import android.text.TextUtils;
import android.util.Log;
public class Image implements Parcelable {
private String largeImage;
private String thumbNailImage;
private String caption;
public Image() {
}
... | 759 |
1,236 | <filename>flume/runtime/common/processor_executor.h
/***************************************************************************
*
* Copyright (c) 2013 Baidu, 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 Lice... | 2,197 |
665 | <gh_stars>100-1000
/* http_client_test.cc
<NAME>, January 2014
This file is part of MLDB. Copyright 2014-20176 mldb.ai inc.
All rights reserved.
Test for HttpClient
*/
#define BOOST_TEST_MAIN
#define BOOST_TEST_DYN_LINK
#include <chrono>
#include <memory>
#include <iostream>
#include <ostream>
#include <... | 1,482 |
353 | <filename>lhotse/bin/lhotse.py
#!/usr/bin/env python3
"""
Use this script like:
$ lhotse --help
$ lhotse make-feats --help
$ lhotse make-feats --compressed recording_manifest.yml mfcc_dir/
$ lhotse write-default-feature-config feat-conf.yml
$ lhotse kaldi import data/train 16000 train_manifests/
$ lhotse split 3 audio... | 392 |
2,434 | <gh_stars>1000+
package io.github.swagger2markup.adoc.ast.impl;
import org.asciidoctor.ast.*;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.util.List;
import java.util.*;
public class TableImpl extends StructuralNodeImpl implements Table {
public static final String OPTION_UNBREAKABLE = "u... | 3,842 |
348 | <filename>docs/data/leg-t2/022/02205016.json
{"nom":"Ile-de-Bréhat","circ":"5ème circonscription","dpt":"Côtes-d'Armor","inscrits":444,"abs":163,"votants":281,"blancs":27,"nuls":3,"exp":251,"res":[{"nuance":"REM","nom":"<NAME>","voix":149},{"nuance":"UDI","nom":"<NAME>","voix":102}]} | 119 |
14,668 | <filename>chrome/browser/extensions/api/enterprise_networking_attributes/enterprise_networking_attributes_api.h<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 CHROME_BROWSER_EXTE... | 461 |
463 | <reponame>yanz08/rv8-wezh<filename>src/gen/gen-markdown.cc
//
// gen-map.cc
//
#include <cstdio>
#include <cstdlib>
#include <functional>
#include <algorithm>
#include <memory>
#include <string>
#include <vector>
#include <deque>
#include <map>
#include <set>
#include <unistd.h>
#include "util.h"
#include "cmdline.... | 889 |
3,422 | package com.volokh.danylo.video_player_manager.player_messages;
import android.content.Context;
import android.media.MediaPlayer;
import android.net.Uri;
import com.volokh.danylo.video_player_manager.manager.VideoPlayerManagerCallback;
import com.volokh.danylo.video_player_manager.ui.VideoPlayerView;
/**
* This Pla... | 277 |
8,232 | <reponame>isra-fel/STL
// Copyright (c) Microsoft Corporation.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
#define _CONTAINER_DEBUG_LEVEL 1
#include <algorithm>
#include <span>
#include <stddef.h>
#include <vector>
#include <test_death.hpp>
using namespace std;
int globalArray[5]{10, 20,... | 5,329 |
3,274 | <reponame>tyang513/QLExpress
package com.ql.util.express;
import java.util.HashMap;
@SuppressWarnings("serial")
public class DefaultContext<K,V> extends HashMap<K,V> implements IExpressContext<K,V> {
}
| 76 |
190,993 | /* Copyright 2020 The TensorFlow 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 law or a... | 802 |
628 | <reponame>gaybro8777/osf.io
# -*- coding: utf-8 -*-
from rest_framework import permissions
from rest_framework import exceptions
from api.base.utils import get_user_auth, assert_resource_type
from api.nodes.permissions import (
AdminOrPublic as NodeAdminOrPublic,
)
from osf.models import Preprint, OSFUser, Preprin... | 2,131 |
11,247 | /*
* Copyright 2017 JessYan
*
* 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 ... | 6,920 |
14,668 | <reponame>zealoussnow/chromium
// 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 "third_party/blink/renderer/core/layout/style_retain_scope.h"
#include "third_party/blink/renderer/core/style/com... | 366 |
1,655 | <reponame>chaosink/tungsten
#ifndef SAMPLERECORD_HPP_
#define SAMPLERECORD_HPP_
#include "math/MathUtil.hpp"
#include "math/Vec.hpp"
#include "io/FileUtils.hpp"
namespace Tungsten {
struct SampleRecord
{
uint32 sampleCount, nextSampleCount, sampleIndex;
float adaptiveWeight;
float mean, runningVariance;... | 723 |
828 | package net.hasor.dataql.runtime.basic;
import net.hasor.dataql.AbstractTestResource;
import net.hasor.dataql.HintValue;
import net.hasor.dataql.Query;
import net.hasor.dataql.domain.DataModel;
import net.hasor.dataql.domain.ValueModel;
import org.junit.Test;
import java.util.HashMap;
import java.util.Map;
public cla... | 1,130 |
14,668 | <reponame>zealoussnow/chromium
/* See LICENSE file for copyright and license details. */
#include <utf.h>
#include "tap.h"
#define CHECK(S,N,R,RS) do { \
Rune r; \
if(is(utflen(S), 1, #S" is 1 rune long")) { \
is(chartorune(&r, (S)), (N), "rune in "#S" is "#N" bytes long"); \
is(r, (R), "rune in "#S" is "RS); \
... | 1,080 |
1,056 | <filename>enterprise/web.el/src/org/netbeans/modules/web/el/completion/ELSanitizer.java
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF lic... | 4,150 |
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 "chrome/browser/extensions/api/cloud_print_private/cloud_print_private_api.h"
#include <string>
#include "base/memory/ptr_util.h"
#include ... | 1,412 |
1,056 | <reponame>timfel/netbeans
/*
* 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.... | 1,406 |
346 | <filename>src/game/Utils/Cinematics.h
#ifndef CINEMATICS_H
#define CINEMATICS_H
#include "Types.h"
struct SMKFLIC;
void SmkInitialize(void);
void SmkShutdown(void);
SMKFLIC* SmkPlayFlic(const char* filename, UINT32 left, UINT32 top, BOOLEAN auto_close);
BOOLEAN SmkPollFlics(void);
void SmkCloseFlic(SMK... | 154 |
1,359 | import torch
import torch.nn as nn
import torch.nn.functional as F
from .BasePIFuNet import BasePIFuNet
from .SurfaceClassifier import SurfaceClassifier
from .DepthNormalizer import DepthNormalizer
from .ConvFilters import *
from ..net_util import init_net
class ConvPIFuNet(BasePIFuNet):
'''
Conv Piximp networ... | 1,497 |
367 | import asyncio
from opal_common.schemas.data import DataUpdateReport
from opal_client.callbacks.reporter import CallbacksReporter
from opal_client.callbacks.register import CallbacksRegister
from opal_client.data.fetcher import DataFetcher
from typing import List, Optional
import pydantic
from fastapi_websocket_rpc.rp... | 4,935 |
1,527 | {
"name": "Stringer",
"description": "A self-hosted, anti-social RSS reader.",
"logo": "https://raw.githubusercontent.com/swanson/stringer/master/screenshots/logo.png",
"keywords": [
"RSS",
"Ruby"
],
"website": "https://github.com/swanson/stringer",
"success_url": "/heroku",
"scripts": {
"po... | 436 |
1,283 | /*
* PriceList_serialization.h
*
* Created on: 2019-5-26
* Author: fasiondog
*/
#pragma once
#ifndef PRICELIST_SERIALIZATION_H_
#define PRICELIST_SERIALIZATION_H_
#include "../config.h"
#include "../DataType.h"
#if HKU_SUPPORT_SERIALIZATION
#if HKU_SUPPORT_XML_ARCHIVE
#include <boost/serialization/nvp.hpp... | 910 |
1,068 | <filename>assertj-android/src/main/java/org/assertj/android/api/widget/ListPopupWindowInputMethodMode.java
package org.assertj.android.api.widget;
import android.support.annotation.IntDef;
import android.widget.ListPopupWindow;
import java.lang.annotation.Retention;
import static java.lang.annotation.RetentionPolicy.... | 188 |
1,808 | import hyperion, time, random, math
# Initialize the led data
ledData = bytearray()
for i in range(hyperion.ledCount):
ledData += bytearray((0,0,0))
sleepTime = float(hyperion.args.get('speed', 1.0)) * 0.004
minStepTime = float(hyperion.latchTime)/1000.0
if minStepTime == 0: minStepTime = 0.001
factor = 1 if ... | 515 |
597 |
///////////////////////////////////////////////////////////////////////////////
// Copyright 2014 <NAME>
// Copyright 2014 <NAME>
// Copyright 2014 <NAME>
// Copyright 2014 <NAME>
// Distributed under the Boost
// Software License, Version 1.0. (See accompanying file
// LICENSE_1_0.txt or copy at http://www.boo... | 16,646 |
402 | /*
* Copyright 2000-2021 Vaadin Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... | 1,066 |
1,236 | package com.example.spotlight;
import android.content.Context;
import android.graphics.Typeface;
import java.util.HashMap;
import java.util.Map;
/**
* Adapted from github.com/romannurik/muzei/
* <p/>
* Also see https://code.google.com/p/android/issues/detail?id=9904
*/
public class FontUtil {
private FontUt... | 353 |
2,655 | <gh_stars>1000+
{
"page-assets-bazaar": "Conceptos básicos de Ethereum",
"page-assets-blocks": "Bloques de construcción",
"page-assets-doge": "Doge usando dapps",
"page-assets-download-artist": "Artista:",
"page-assets-download-download": "Descargar",
"page-assets-enterprise": "Ethereum para empresas",
"p... | 792 |
10,225 | package io.quarkus.undertow.deployment;
import java.util.Optional;
import org.eclipse.microprofile.config.ConfigProvider;
import org.jboss.metadata.property.PropertyResolver;
public class MPConfigPropertyResolver implements PropertyResolver {
@Override
public String resolve(String propertyName) {
Op... | 143 |
1,443 | {
"copyright": "subtub, https://github.com/subtub",
"url": "https://github.com/subtub",
"email": "<EMAIL>",
"format": "html",
"gravatar": false,
"theme": "plaintext"
}
| 74 |
782 | <gh_stars>100-1000
/*
* Copyright (c) 2021, <NAME>. All Rights Reserved.
*
* This file is part of BoofCV (http://boofcv.org).
*
* 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
*
* ht... | 2,166 |
2,023 | <gh_stars>1000+
"""
An alternative running scheme for unittest test suites.
Superceded by the TestOOB Python unit testing framework,
http://testoob.sourceforge.net
"""
__author__ = "<NAME>"
import unittest, sys
from itertools import ifilter
###########################################################################... | 2,078 |
10,225 | <filename>extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment/src/test/java/io/quarkus/resteasy/reactive/server/test/multipart/AbstractMultipartTest.java
package io.quarkus.resteasy.reactive.server.test.multipart;
import static org.awaitility.Awaitility.await;
import java.io.File;
import java.nio.file.P... | 633 |
1,697 | <reponame>Paranoid-L/IOT-Technical-Guide
package iot.technology.actor.core;
import iot.technology.actor.ActorCreator;
import iot.technology.actor.message.ActorId;
import iot.technology.actor.message.ActorMsg;
import java.util.List;
import java.util.function.Predicate;
import java.util.function.Supplier;
/**
* @auth... | 260 |
343 | #include "bindings.h"
#pragma once
#if defined(ON_PYTHON_COMPILE)
void initBitmapBindings(pybind11::module& m);
#else
void initBitmapBindings(void* m);
#endif
class BND_Bitmap : public BND_CommonObject
{
public:
ON_Bitmap* m_bitmap = nullptr;
public:
BND_Bitmap();
BND_Bitmap(ON_Bitmap* bitmap, const ON_ModelCo... | 367 |
358 | <filename>Resources/Softwares/Apache Tomcat 7.0.75/webapps/examples/WEB-INF/classes/websocket/drawboard/DrawMessage.java
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding ... | 3,667 |
335 | <reponame>Safal08/Hacktoberfest-1
{
"word": "Vivid",
"definitions": [
"Producing powerful feelings or strong, clear images in the mind.",
"(of a colour) intensely deep or bright.",
"(of a person or animal) lively and vigorous."
],
"parts-of-speech": "Adjective"
} | 120 |
443 | /*
* MIT License
*
* Copyright (c) [2018] [WangBoJing]
* 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, mod... | 3,474 |
319 | /**
* Copyright (c) 2011, The University of Southampton and the individual contributors.
* 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 ... | 2,214 |
356 | #include "afio_pch.hpp"
int main(void)
{
//[filedir_example
using namespace BOOST_AFIO_V2_NAMESPACE;
using BOOST_AFIO_V2_NAMESPACE::rmdir;
std::shared_ptr<boost::afio::dispatcher> dispatcher =
boost::afio::make_dispatcher().get();
current_dispatcher_guard h(dispatcher);
// Free function
try
{
... | 1,252 |
364 | // File implement/oglplus/enums/error_code_class.ipp
//
// Automatically generated file, DO NOT modify manually.
// Edit the source 'source/enums/oglplus/error_code.txt'
// or the 'source/enums/make_enum.py' script instead.
//
// Copyright 2010-2019 <NAME>.
// Distributed under the Boost Software License, Version... | 1,974 |
357 | <reponame>wfu8/lightwave
/*
* Copyright © 2012-2015 VMware, Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the “License”); you may not
* use this file except in compliance with the License. You may obtain a copy
* of the License at http://www.apache.org/licenses/LICENSE-2.0
*
* ... | 6,395 |
515 | <reponame>kraehlit/CTK
/*=============================================================================
Library: CTK
Copyright (c) German Cancer Research Center,
Division of Medical and Biological Informatics
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file... | 519 |
14,570 | <reponame>wwadge/swagger-codegen<gh_stars>1000+
package io.swagger.codegen.nodejs;
import io.swagger.codegen.AbstractOptionsTest;
import io.swagger.codegen.CodegenConfig;
import io.swagger.codegen.languages.NodeJSServerCodegen;
import io.swagger.codegen.options.NodeJSServerOptionsProvider;
import mockit.Expectations;... | 839 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.