max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
493 | package com.martinrgb.animer.core.math.converter;
public class OrigamiPOPConverter extends AnSpringConverter {
private boolean otherParaCalculation = false;
public OrigamiPOPConverter(double bounciness,double speed) {
super();
calculate(bounciness,speed,1,0);
}
public OrigamiPOPConve... | 600 |
1,668 | default_app_config = 'ralph.dns.apps.DNS'
| 19 |
690 | <reponame>Mr00Anderson/artemis-odb
/*******************************************************************************
* Copyright 2011 See AUTHORS file.
*
* 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 t... | 2,626 |
12,077 | <filename>faker/providers/automotive/sv_SE/__init__.py<gh_stars>1000+
from .. import Provider as AutomotiveProvider
class Provider(AutomotiveProvider):
"""Implement automotive provider for ``sv_SE`` locale.
Sources:
- https://en.wikipedia.org/wiki/Vehicle_registration_plates_of_Sweden
- https://www.... | 193 |
1,279 | <reponame>hawflau/serverless-application-model
[
{ "LogicalResourceId":"ActiveTracingFunction", "ResourceType":"AWS::Lambda::Function"},
{ "LogicalResourceId":"ActiveTracingFunctionRole", "ResourceType":"AWS::IAM::Role"},
{ "LogicalResourceId":"PassThroughTracingFunction", "ResourceType":"AWS::Lambda::Function"},... | 130 |
13,648 | # Test that calling clazz.__call__() with up to at least 3 arguments
# doesn't require heap allocation.
import micropython
class Foo0:
def __call__(self):
print("__call__")
class Foo1:
def __call__(self, a):
print("__call__", a)
class Foo2:
def __call__(self, a, b):
print("__ca... | 259 |
778 | <gh_stars>100-1000
// KRATOS ______ __ __ _____ __ __ __
// / ____/___ ____ / /_____ ______/ /_/ ___// /________ _______/ /___ ___________ _/ /
// / / / __ \/ __ \/ __/ __ `/ ___/ __/\__ \/ __/ ___/ / / / ___/ __/ / / / ___/ __ `/ /
/... | 2,578 |
3,212 | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | 1,894 |
344 | <filename>indoor/data.py
import numpy as np
import os,time
import threading
import util
import scipy.misc
# load data
def load(opt,test=False):
path = "dataset/{0}".format("test" if test else "train")
D = {
"disocclude": np.load("{0}/disocclude.npy".format(path)),
"removed": np.load("{0}/removed.npy".format(path... | 2,655 |
1,248 | <gh_stars>1000+
# -*- coding: utf-8 -*-
# Generated by Django 1.10.2 on 2016-10-18 16:54
from __future__ import unicode_literals
import django.db.models.deletion
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('pretixbase', '0040_u2fdevice'),
]
... | 249 |
5,169 | <filename>Specs/ZHSDKlib/1.0.0/ZHSDKlib.podspec.json
{
"name": "ZHSDKlib",
"version": "1.0.0",
"summary": "zhanghong Ad SDK.",
"description": "\"/Users/gaoshilei/Desktop/ZHSDKlib /Users/gaoshilei/Desktop/ZHSDKlib /Users/gaoshilei/Desktop/ZHSDKlib /Users/gaoshilei/Desktop/ZHSDKlib /Users/gaoshilei/Desktop/ZHSDKl... | 437 |
454 | <gh_stars>100-1000
/*
* zsummerX License
* -----------
*
* zsummerX is licensed under the terms of the MIT license reproduced below.
* This means that zsummerX is free software and can be used for both academic
* and commercial purposes at absolutely no cost.
*
*
* =============================================... | 2,379 |
1,788 | <reponame>radmirnovii/databend
#!/usr/bin/env python3
import os
import sys
import signal
CURDIR = os.path.dirname(os.path.realpath(__file__))
sys.path.insert(0, os.path.join(CURDIR, '../../helpers'))
from client import client
log = None
# uncomment the line below for debugging
log = sys.stdout
client1 = client(nam... | 456 |
690 | <reponame>Mr00Anderson/artemis-odb
package com.artemis;
import com.artemis.annotations.SkipWire;
/**
* Most basic system.
*
* Upon calling world.process(), your systems are processed in sequence.
*
* Flow:
* {@link #initialize()} - Initialize your system, on top of the dependency injection.
* {@link #begin()} ... | 934 |
403 | <reponame>queer/utt<gh_stars>100-1000
package gg.amy.utt.transform.impl;
import gg.amy.utt.data.InputFormat;
import gg.amy.utt.data.OutputFormat;
import gg.amy.utt.transform.TransformationContext;
import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.assertEquals;
/**
* @author amy
* @s... | 907 |
849 | """
Copyright (c) 2016-present, Facebook, Inc.
All rights reserved.
This source code is licensed under the BSD-style license found in the
LICENSE file in the root directory of this source tree. An additional grant
of patent rights can be found in the PATENTS file in the same directory.
"""
import ipaddress
import time... | 4,129 |
323 | <filename>include/nanorange/algorithm/pop_heap.hpp<gh_stars>100-1000
// nanorange/algorithm/pop_heap.hpp
//
// Copyright (c) 2018 <NAME> (<EMAIL> at <EMAIL> dot <EMAIL>)
// 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.tx... | 963 |
1,605 | <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... | 812 |
2,023 | <reponame>tdiprima/code
def oa(o):
for at in dir(o):
print at,
'''
Sample calls and output for oa() below:
# object attributes of a dict:
oa({})
__class__ __cmp__ __contains__ __delattr__ __delitem__ __doc__ __eq__ __format__
__ge__ __getattribute__ __getitem__ __gt__ __hash__ __init__ __iter__ __le__ __l... | 893 |
1,109 | /*******************************************************************************
* Copyright 2016 Intuit
* <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 License at
* <p>
* http://www.apache.o... | 3,936 |
24,910 | # -*- coding: utf-8 -*-
import os
import sys
from pprint import pprint
root = os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
sys.path.append(root + '/python')
import ccxt # noqa: E402
print('CCXT Version:', ccxt.__version__)
exchange = ccxt.binance({
'apiKey': 'YOUR_API_KEY',
... | 447 |
2,541 | from __future__ import print_function
from builtins import object
from builtins import str
from typing import Dict
from empire.server.common import helpers
from empire.server.common.module_models import PydanticModule
from empire.server.utils import data_util
from empire.server.utils.module_util import handle_error_m... | 1,306 |
679 | <reponame>Grosskopf/openoffice<filename>main/chart2/source/controller/inc/dlg_InsertTitle.hxx<gh_stars>100-1000
/**************************************************************
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed... | 536 |
20,995 | <gh_stars>1000+
// Copyright 2020 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef V8_HEAP_CODE_OBJECT_REGISTRY_H_
#define V8_HEAP_CODE_OBJECT_REGISTRY_H_
#include <set>
#include <vector>
#include "src/base/ma... | 425 |
303 | <filename>www/draw/metadata/5/5551.json
{"id":5551,"line-1":"Provence-Alpes-Côte d'Azur","line-2":"France","attribution":"©2015 DigitalGlobe","url":"https://www.google.com/maps/@43.269643,6.579352,17z/data=!3m1!1e3"} | 93 |
1,738 | <reponame>jeikabu/lumberyard
/*
* All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or
* its licensors.
*
* For complete copyright and license terms please see the LICENSE at the root of this
* distribution (the "License"). All use of this software is governed by the License,
* or, if provid... | 618 |
6,852 | <reponame>pcwuyu/PaddleGAN<gh_stars>1000+
# Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserve.
#
# 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/licens... | 572 |
677 | // Copyright 2017 The Lynx Authors. All rights reserved.
#ifndef LYNX_DEBUGGER_DEBUG_CLEINT_H_
#define LYNX_DEBUGGER_DEBUG_CLEINT_H_
#include "debugger/debug_client.h"
#include <string>
#include "debugger/debug_host.h"
#include "debugger/debug_session.h"
#include "third_party/jsoncpp/include/json/json.h"
namespace... | 481 |
12,252 | <gh_stars>1000+
/*
* Copyright 2021 Red Hat, Inc. and/or its affiliates
* and other contributors as indicated by the @author tags.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* ... | 4,391 |
1,008 | <gh_stars>1000+
/*
* Copyright (C) 2019 The Turms Project
* https://github.com/turms-im/turms
*
* 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/L... | 8,620 |
2,151 | // 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 "content/shell/app/shell_main_delegate.h"
#include <iostream>
#include "base/base_switches.h"
#include "base/command_line.h"
#include "base... | 6,032 |
362 | <reponame>hvarg/weightless<filename>src/lib/popover-card/blueprint.json
{
"extend": "blueprint.json",
"input": "src/lib/popover-card/blueprint.md",
"output": "src/lib/popover-card/README.md",
"tag": "wl-popover-card",
"demo": "https://weightless.dev/elements/popover",
"img": "https://raw.githubusercontent.com/and... | 151 |
1,030 | <gh_stars>1000+
"""Test constrain parameters."""
import random
import numpy as np
import pytest
import stan
program_code = """
parameters {
real x;
real<lower=0> y;
}
transformed parameters {
real x_mult = x * 2;
}
generated quantities {
real z = x + y;
}
"""
num_samples = 1000
num_chains = 4
x = random.... | 385 |
607 | <reponame>AIHZP/andysworkshop-stm32plus<gh_stars>100-1000
/*
* This file is a part of the open source stm32plus library.
* Copyright (c) 2011,2012,2013,2014 <NAME> <www.andybrown.me.uk>
* Please see website for licensing terms.
*/
#pragma once
namespace stm32plus {
namespace display {
/**
* @brief b... | 512 |
3,266 | package frege.runtime;
import java.io.File;
import java.io.IOException;
import java.util.Arrays;
import javax.tools.JavaCompiler;
import javax.tools.JavaCompiler.CompilationTask;
import javax.tools.JavaFileObject;
import javax.tools.StandardJavaFileManager;
import javax.tools.ToolProvider;
public class Javac {
f... | 1,048 |
815 | /*=========================================================================
Program: ParaView
Module: pqHighlightablePushButton.cxx
Copyright (c) 2005,2006 Sandia Corporation, Kitware Inc.
All rights reserved.
ParaView is a free software; you can redistribute it and/or modify it
under the terms of... | 894 |
954 | <filename>src/main/java/com/jdon/controller/context/SessionWrapper.java
package com.jdon.controller.context;
public interface SessionWrapper {
Object getAttribute(String key);
void setAttribute(String key, Object o);
}
| 78 |
348 | {"nom":"<NAME>","circ":"1ère circonscription","dpt":"Charente","inscrits":5147,"abs":3124,"votants":2023,"blancs":89,"nuls":61,"exp":1873,"res":[{"nuance":"REM","nom":"<NAME>","voix":1051},{"nuance":"FI","nom":"<NAME>","voix":822}]} | 94 |
1,367 | <filename>saklib/src/main/java/com/wanjian/sak/system/canvas/compact/HardwareCanvasV23Impl.java
package com.wanjian.sak.system.canvas.compact;
import android.graphics.Canvas;
import android.view.Choreographer;
import android.view.DisplayListCanvas;
import android.view.RenderNode;
import android.view.ThreadedRenderer;
... | 1,368 |
1,123 | <reponame>foufrix/react-native-video-processing
//
// RNVideoProcessing.h
// RNVideoProcessing
//
#ifndef RNVideoProcessing_h
#define RNVideoProcessing_h
#import "React/RCTView.h"
#import "SDAVAssetExportSession.h"
#import "RNTrimmerView.h"
#endif /* RNVideoProcessing_h */
| 108 |
881 | <filename>structurizr-client/test/unit/com/structurizr/io/json/JsonTests.java
package com.structurizr.io.json;
import com.structurizr.Workspace;
import com.structurizr.model.*;
import org.junit.Test;
import java.io.StringReader;
import java.io.StringWriter;
import java.util.UUID;
import static org.junit.Assert.asser... | 1,230 |
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 "chromecast/public/cast_media_shlib.h"
#include "chromecast/media/cma/backend/media_pipeline_backend_for_mixer.h"
namespace chromecast {
namesp... | 361 |
435 | package datawave.query.testframework;
import datawave.data.normalizer.Normalizer;
import datawave.data.type.IpAddressType;
import datawave.ingest.csv.config.helper.ExtendedCSVHelper;
import datawave.ingest.data.config.CSVHelper;
import datawave.ingest.data.config.ingest.BaseIngestHelper;
import datawave.ingest.input.r... | 2,966 |
4,054 | <reponame>yarons/readthedocs.org
# Copied from test_middleware.py
import pytest
from django.http import HttpRequest
from django.test import TestCase
from django.test.utils import override_settings
from django_dynamic_fixture import get
from readthedocs.builds.models import Version
from readthedocs.projects.constants ... | 6,824 |
1,706 | <gh_stars>1000+
package com.evernote.client.android.asyncclient;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.util.Pair;
import com.evernote.client.android.EvernoteSession;
import com.evernote.client.android.helper.EvernotePreconditions;
import com.evernote.cli... | 8,979 |
385 | <reponame>claycurry34/e3nn
import math
import pytest
import torch
from e3nn import o3
from e3nn.util.test import assert_auto_jitable, assert_equivariant
def test_weird_call():
o3.spherical_harmonics([4, 1, 2, 3, 3, 1, 0], torch.randn(2, 1, 2, 3), False)
def test_weird_irreps():
# string input
o3.spheri... | 2,364 |
975 | <reponame>HelloVass/Shield<filename>shieldCore/src/main/java/com/dianping/shield/node/adapter/hotzone/OnHotZoneStateChangeListener.java
package com.dianping.shield.node.adapter.hotzone;
import com.dianping.shield.entity.ScrollDirection;
import com.dianping.shield.node.cellnode.ShieldDisplayNode;
/**
* Created by run... | 279 |
353 | <reponame>johannespitz/functionsimsearch
#include "gtest/gtest.h"
#include "disassembly/flowgraphutil.hpp"
#include <array>
TEST(flowgraphutil, dyninstinstructiongetter) {
EXPECT_EQ(index, 8128);
}
| 80 |
834 | <reponame>BohdanMosiyuk/samples<filename>snippets/cpp/VS_Snippets_Winforms/Classic DomainUpDown Example/CPP/source.cpp
#using <system.dll>
#using <system.data.dll>
#using <system.drawing.dll>
#using <system.windows.forms.dll>
using namespace System;
using namespace System::Data;
using namespace System::Drawing;
using ... | 741 |
1,091 | /*
* Copyright 2017-present Open Networking Foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appli... | 797 |
892 | {
"schema_version": "1.2.0",
"id": "GHSA-hgc3-hp6x-wpgx",
"modified": "2021-11-17T21:17:29Z",
"published": "2021-11-03T17:36:22Z",
"aliases": [
"CVE-2021-3840"
],
"summary": "Antilles Dependency Confusion Vulnerability",
"details": "### Potential Impact: \nRemote code execution.\n\n### Scope of Impa... | 1,058 |
351 | <filename>xlog-base/src/test/java/com/promegu/xlog/base/TestMatchMethod.java<gh_stars>100-1000
package com.promegu.xlog.base;
/**
* Created by guyacong on 2015/7/8.
*/
public class TestMatchMethod {
private int mInt;
private Long mLong;
private MethodToLog mMethodToLog;
@XLog
public TestMatch... | 656 |
9,680 | <reponame>dutxubo/nni
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT license.
import copy
from typing import Dict, Tuple, Any
from nni.retiarii.utils import uid
from nni.common.device import Device, CPUDevice
from ...graph import Cell, Edge, Graph, Model, Node
from ...operation import Operation, _IO... | 6,800 |
677 | /*
* Copyright (C) 2013 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,781 |
4,538 | <gh_stars>1000+
/**
*****************************************************************************************
* Copyright(c) 2017, Realtek Semiconductor Corporation. All rights reserved.
*****************************************************************************************
* @file link_mgr.h
* @brief ... | 686 |
598 | <filename>tests/cli/grass/modes/on_premises/arm_parameters.json
{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentParameters.json#",
"contentVersion": "1.1.0.0",
"parameters": {
"adminPublicKey": {
"value": null
},
"adminUsername": {
"value": null
},
"a... | 218 |
982 | /*
* This file contains various logger routines
*
* Copyright (c) 2010-2019 Red Hat, Inc.
* Copyright (c) 2019 Virtuozzo International GmbH
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met :
* 1. Redistribution... | 770 |
369 | <gh_stars>100-1000
/*
* Copyright © 2014 <NAME>, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable... | 2,382 |
2,293 | import sqlite3
import datetime
con = sqlite3.connect(":memory:", detect_types=sqlite3.PARSE_COLNAMES)
cur = con.cursor()
cur.execute('select ? as "x [timestamp]"', (datetime.datetime.now(),))
dt = cur.fetchone()[0]
print dt, type(dt)
| 92 |
9,516 | <gh_stars>1000+
from torch.utils.data import Dataset, DataLoader
import dgl
from dgl.data import PPIDataset
import collections
#implement the collate_fn for dgl graph data class
PPIBatch = collections.namedtuple('PPIBatch', ['graph', 'label'])
def batcher(device):
def batcher_dev(batch):
batch_graphs = dgl... | 1,314 |
739 | <reponame>Vertver/Crinkler<gh_stars>100-1000
// A minimal example that demonstrates how to use the Compressor library.
// The library currently doesn't provide any decompression functionality and
// there is no way to use the resulting compressed blocks directly with Crinkler,
// so the only practical use of the libra... | 1,060 |
327 | <reponame>Meteo-Concept/cpp-driver<gh_stars>100-1000
/*
Copyright (c) DataStax, 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 r... | 1,426 |
1,169 | // -*- mode: java; c-basic-offset: 2; -*-
// Copyright 2009-2011 Google, All Rights reserved
// Copyright 2011-2012 MIT, All rights reserved
// Released under the Apache License, Version 2.0
// http://www.apache.org/licenses/LICENSE-2.0
/**
* Classes for maintaining (but not creating) the component palette and the
* ... | 185 |
1,354 | /* CMSIS-DAP Interface Firmware
* Copyright (c) 2009-2013 ARM Limited
*
* 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 re... | 481 |
1,027 | // Copyright (c) 2015 GitHub, Inc.
// Use of this source code is governed by the MIT license that can be
// found in the LICENSE file.
#include "base/bind_helpers.h"
#include "brightray/browser/notification_delegate.h"
#include "content/public/browser/notification_event_dispatcher.h"
namespace brightray {
Notificati... | 310 |
1,350 | <filename>sdk/cognitiveservices/ms-azure-cs-faceapi/src/main/java/com/microsoft/azure/cognitiveservices/vision/faceapi/models/Makeup.java
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generat... | 667 |
588 | <reponame>fmilano/CppMicroServices
//
// detail/win_fd_set_adapter.hpp
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
//
// Copyright (c) 2003-2020 <NAME> (chris at kohlhoff dot com)
//
// 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.... | 1,655 |
336 | <reponame>dolphintear/pytorch-kaggle-starter
import os
import json
import time
import scipy
import numpy as np
import pandas as pd
import bcolz
import random
from io import StringIO
from torch.autograd import Variable
import cv2
import h5py
import config as cfg
import constants as c
from .pred_constants import *
from ... | 2,591 |
356 | <filename>proctor-pipet/proctor-pipet-core/src/test/java/com/indeed/proctor/pipet/core/model/TestJsonResult.java
package com.indeed.proctor.pipet.core.model;
import com.google.common.collect.ImmutableMap;
import com.indeed.proctor.common.ProctorResult;
import com.indeed.proctor.common.model.ConsumableTestDefinition;
i... | 631 |
422 | // file : libbuild2/dist/init.cxx -*- C++ -*-
// license : MIT; see accompanying LICENSE file
#include <libbuild2/dist/init.hxx>
#include <libbuild2/scope.hxx>
#include <libbuild2/file.hxx>
#include <libbuild2/diagnostics.hxx>
#include <libbuild2/config/utility.hxx>
#include <libbuild2/dist/rule.hxx>
#includ... | 3,252 |
14,668 | <gh_stars>1000+
// Copyright (c) 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 CONTENT_BROWSER_SITE_INSTANCE_GROUP_H_
#define CONTENT_BROWSER_SITE_INSTANCE_GROUP_H_
#include "base/memory/ref_counted.h"
#i... | 636 |
3,212 | <reponame>westdart/nifi<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, V... | 780 |
1,261 | <gh_stars>1000+
/**
Onion HTTP server library
Copyright (C) 2010-2018 <NAME> and others
This library is free software; you can redistribute it and/or
modify it under the terms of, at your choice:
a. the Apache License Version 2.0.
b. the GNU General Public License as published by the
Free Software Foun... | 2,023 |
384 | <reponame>lhf974941160211/Latin<gh_stars>100-1000
/*
* Copyright (C) 2013 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org... | 2,846 |
966 | # -*- coding: utf-8 -*-
"""Dummy test case that invokes all of the C++ unit tests."""
import moe.build.GPP as C_GP
class TestCppUnitTestWrapper(object):
"""Calls a C++ function that runs all C++ unit tests.
TODO(GH-115): Remove/fix this once C++ gets a proper unit testing framework.
"""
def test_r... | 198 |
436 | /*
* Copyright 2003-2006 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable... | 1,001 |
559 | /***************************************************************************
* Copyright (c) 2016, <NAME>, <NAME>, <NAME> *
* Copyright (c) 2016, QuantStack *
* *
* Distributed under the terms of ... | 1,400 |
473 | /*
* Copyright (c) 2014 Kaprica Security, Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, mer... | 1,853 |
450 | <filename>libs/gum/prof/gumwallclocksampler.c
/*
* Copyright (C) 2009-2018 <NAME> <<EMAIL>>
* Copyright (C) 2009 <NAME> <<EMAIL>>
*
* Licence: wxWindows Library Licence, Version 3.1
*/
#include "gumwallclocksampler.h"
struct _GumWallclockSampler
{
GObject parent;
};
static void gum_wallclock_sampler_iface_ini... | 613 |
12,718 | /**
* This file has no copyright assigned and is placed in the Public Domain.
* This file is part of the mingw-w64 runtime package.
* No warranty is given; refer to the file DISCLAIMER.PD within this package.
*/
#ifndef __REQUIRED_RPCNDR_H_VERSION__
#define __REQUIRED_RPCNDR_H_VERSION__ 475
#endif
#include <_mingw... | 12,888 |
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.ai.textanalytics.models;
import com.azure.core.annotation.Immutable;
import com.azure.core.util.ExpandableStringEnum;
import com.fasterxml.jacks... | 376 |
2,637 | /*
* (C) Copyright 2008-2019 Marvell International Ltd. All Rights Reserved
*
* MARVELL CONFIDENTIAL
* The source code contained or described herein and all documents related to
* the source code ("Material") are owned by Marvell International Ltd or its
* suppliers or licensors. Title to the Material remains with... | 1,339 |
1,232 | <reponame>JunZCn/DBus
# Copyright 2016 MongoDB, 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 or ag... | 10,113 |
2,772 | # -------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
# --------------------------------------------------------------------------
imp... | 3,450 |
480 | /*
* Copyright [2013-2021], Alibaba Group Holding Limited
*
* 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 app... | 1,335 |
1,126 | #include <stdio.h>
#include <string.h>
#define max(a,b) (a > b) ? a : b
// Function that computes the longest common subsequence
// Complexity: O( len(string1) * len(string2) )
int longestCommonSubsequence(char *string1, char *string2) {
int len1 = (int) strlen(string1);
int len2 = (int) strlen(string2);
int lcs[l... | 421 |
3,710 | <filename>toonz/sources/include/toonz/expressionreferencemonitor.h
#pragma once
#ifndef EXPRESSIONREFERENCEMONITOR_H
#define EXPRESSIONREFERENCEMONITOR_H
#undef DVAPI
#undef DVVAR
#ifdef TOONZLIB_EXPORTS
#define DVAPI DV_EXPORT_API
#define DVVAR DV_EXPORT_VAR
#else
#define DVAPI DV_IMPORT_API
#define DVVAR DV_IMPORT_... | 523 |
340 | <reponame>cloudnoize/concord-bft
// Concord
//
// Copyright (c) 2018-2019 VMware, Inc. All Rights Reserved.
//
// This product is licensed to you under the Apache 2.0 license (the "License"). You may not use this product except in
// compliance with the Apache 2.0 License.
//
// This product may include a number of su... | 1,228 |
1,222 | <reponame>pchalupa/renative
{
"CFBundleDevelopmentRegion": "$(DEVELOPMENT_LANGUAGE)",
"CFBundleDisplayName": "{{PLUGIN_APPTITLE}}",
"CFBundleExecutable": "$(EXECUTABLE_NAME)",
"CFBundleIdentifier": "$(PRODUCT_BUNDLE_IDENTIFIER)",
"CFBundleInfoDictionaryVersion": "6.0",
"CFBundleName": "$(PRODUCT... | 372 |
432 | /*
* Copyright 2018 <NAME>, <EMAIL>
*
* 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 ... | 62,827 |
1,573 | <gh_stars>1000+
// Copyright (c) 2018 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#ifndef BITCOIN_INTERFACES_NODE_H
#define BITCOIN_INTERFACES_NODE_H
#include <addrdb.h> // For banmap_t
#incl... | 3,630 |
1,443 | <reponame>cssence/mit-license<filename>users/the-zumata-team.json
{
"copyright": "The Zumata Team",
"url": "https://github.com/Zumata",
"email": "<EMAIL>",
"format": "html"
}
| 77 |
852 | <reponame>ckamtsikis/cmssw
import FWCore.ParameterSet.Config as cms
muonsCleaned = cms.EDProducer("PFMuonUntagger",
muons = cms.InputTag("muons"),
badmuons = cms.VInputTag(),
)
| 81 |
1,538 | <reponame>tballmsft/lean4<filename>stage0/src/util/map_foreach.h
/*
Copyright (c) 2019 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: <NAME>
*/
#pragma once
#include <functional>
#include "runtime/object.h"
namespace lean {
/* Helper functions f... | 266 |
543 | <reponame>Dynamite12138/NLPwork
/* NiuTrans.Tensor - an open-source tensor library
* Copyright (C) 2017, Natural Language Processing Lab, Northeastern University.
* 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.... | 1,279 |
480 |
#ifndef _PCI_REGS_H
#define _PCI_REGS_H
#define PCI_HEADER_TYPE 0x0E
#endif // _PCI_REGS_H
| 56 |
1,909 | package org.knowm.xchange.ftx.dto.trade;
import java.math.BigDecimal;
public class FtxOrderRequestPayload {
private String market;
private FtxOrderSide side;
private BigDecimal price;
private FtxOrderType type;
private BigDecimal size;
private boolean reduceOnly;
private boolean ioc;
private b... | 1,018 |
397 | <reponame>ilblackdragon/studio
import glob
import os
from studio import fs_tracker
import pickle
weights_list = sorted(
glob.glob(
os.path.join(
fs_tracker.get_artifact('w'),
'*.pck')))
print('*****')
print(weights_list[-1])
with open(weights_list[-1], 'r') as f:
w = pickle.lo... | 164 |
1,125 | /*
* 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
* not use this fi... | 4,707 |
619 | <filename>include/mull/JunkDetection/CXX/CompilationDatabase.h
#pragma once
#include <map>
#include <string>
#include <utility>
#include <vector>
namespace mull {
class Diagnostics;
class CompilationDatabase {
public:
using Flags = std::vector<std::string>;
using Database = std::map<std::string, Flags>;
Comp... | 504 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.