max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
614 | [
{ "home": "England", "away": "Portugal", "homescore": "1", "awayscore": "0" },
{ "home": "Macedonia", "away": "Iran", "homescore": "1", "awayscore": "3" },
{ "home": "Seychelles", "away": "Algeria", "homescore": "0", "awayscore": "2" },
{ "home": "New York City FC", "away": "Real Salt Lake", "homescore": "2",... | 964 |
623 | package com.netease.nim.uikit.common.media.imagepicker.view;
import android.animation.Animator;
import android.animation.ObjectAnimator;
import android.content.Context;
import android.graphics.drawable.BitmapDrawable;
import android.view.MotionEvent;
import android.view.View;
import android.view.ViewGroup;
import andr... | 1,857 |
726 | package org.landy.business.identify.order.domain;
import java.sql.Date;
/**
* 订单明细相关信息
* @author landyl
* @create 2:28 PM 05/14/2018
*/
public class OrderDetail {
private Long orderDetailId;
private Integer requestId;
private Long orderId;
private Long customerId;
private String statusCode;
... | 605 |
568 | <filename>MagicMirror/app/src/main/java/com/novoda/magicmirror/facerecognition/KeyToFaceMappings.java<gh_stars>100-1000
package com.novoda.magicmirror.facerecognition;
import android.view.KeyEvent;
import java.util.HashMap;
import java.util.Map;
public class KeyToFaceMappings {
private final Map<Integer, FaceEx... | 422 |
647 | <gh_stars>100-1000
/*
PURPOSE: (Perform LU decomposition of matrix a)
REFERENCE: ((Numerical Recipes [FORTRAN]))
PROGRAMMERS: (((<NAME>) (<NAME>) (Jan 1993) (v1.0) (Init Release))) */
#include <stdio.h>
#include "trick/trick_math.h"
#define tiny 1.0e-20
int LU_dcmp( /* Return: Zero */
... | 1,613 |
1,768 | // Copyright (c) 2003 Compaq Corporation. All rights reserved.
// Portions Copyright (c) 2003 Microsoft Corporation. All rights reserved.
// Last modified on Mon 30 Apr 2007 at 13:26:33 PST by lamport
// modified on Thu Jan 10 18:33:42 PST 2002 by yuanyu
package tlc2.util;
public final class MemIntStack extend... | 744 |
438 | <gh_stars>100-1000
def is_private(pattern):
"""
Check availability of pattern.
"""
if pattern:
return pattern.startswith('_')
| 60 |
584 | /*
* Copyright 2018-2021 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... | 2,208 |
595 | <reponame>erique/embeddedsw
/******************************************************************************
* Copyright (C) 2021 Xilinx, Inc. All rights reserved.
* SPDX-License-Identifier: MIT
******************************************************************************/
#ifndef XV_WARP_FILTER_L2_H /* prevent c... | 900 |
1,133 | /**
*
* PixelFlow | Copyright (C) 2016 <NAME> - http://thomasdiewald.com
*
* A Processing/Java library for high performance GPU-Computing (GLSL).
* MIT License: https://opensource.org/licenses/MIT
*
*/
package SoftBody2D.SoftBody2D_GetStarted;
import java.util.ArrayList;
import com.thomasdiewald.pixelflow... | 2,158 |
1,729 | <filename>source/3rdparty/easy_profiler/include/easy/arbitrary_value.h
/**
Lightweight profiler library for c++
Copyright(C) 2016-2019 <NAME>, <NAME>
Licensed under either of
* MIT license (LICENSE.MIT or http://opensource.org/licenses/MIT)
* Apache License, Version 2.0, (LICENSE.APACHE or http://www.apache.o... | 4,620 |
892 | {
"schema_version": "1.2.0",
"id": "GHSA-g6ph-6cq5-3xgm",
"modified": "2022-05-01T23:52:57Z",
"published": "2022-05-01T23:52:57Z",
"aliases": [
"CVE-2008-2752"
],
"details": "Microsoft Word 2000 9.0.2812 and 2003 11.8106.8172 does not properly handle unordered lists, which allows user-assisted remote ... | 769 |
355 | <filename>core/src/main/java/net/tomp2p/p2p/PostRoutingFilter.java
package net.tomp2p.p2p;
import net.tomp2p.peers.PeerAddress;
/**
* Filters potential and direct hits from the result set.
*
* @author <NAME>
*
*/
public interface PostRoutingFilter {
/**
* @return <code>true</code> to reject / ignore a <stro... | 231 |
1,483 | /*
* Copyright Lealone Database Group.
* Licensed under the Server Side Public License, v 1.
* Initial Developer: zhh
*/
package org.lealone.sql;
import org.lealone.db.async.Future;
import org.lealone.db.result.Result;
import org.lealone.server.protocol.dt.DTransactionParameters;
public interface DistributedSQLCo... | 152 |
340 | //==================================================================================================
/**
EVE - Expressive Vector Engine
Copyright : EVE Contributors & Maintainers
SPDX-License-Identifier: MIT
**/
//==================================================================================================
... | 800 |
350 | <filename>Fetch data of any country/Source_code.py
'''
Fetch data of any Country with Python using Countryinfo
Author: <NAME>
'''
#import the necessary module!
from countryinfo import CountryInfo
name = 'India'
country = CountryInfo(name)
data1 = country.alt_spellings()
print(data1)... | 289 |
407 | <filename>paas/tesla-authproxy/tesla-authproxy-server/src/main/java/com/alibaba/tesla/authproxy/util/AuthUtil.java
package com.alibaba.tesla.authproxy.util;
import com.alibaba.tesla.authproxy.model.mapper.AppExtMapper;
import com.alibaba.tesla.authproxy.model.mapper.UserMapper;
import com.alibaba.tesla.authproxy.model... | 2,887 |
372 | <gh_stars>100-1000
/* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */
/*
* clients/klist/klist.c
*
* Copyright 1990 by the Massachusetts Institute of Technology.
* All Rights Reserved.
*
* Export of this software from the United States of America may
* require a specific license from the United St... | 10,225 |
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 <utility>
#include "base/bind.h"
#include "base/synchronization/waitable_event.h"
#include "chrome/chrome_cleaner/ipc/ipc_test_util.h"
#include ... | 4,623 |
4,526 | #ifndef ALTERNATIVE_PATH_ROUTING_HPP
#define ALTERNATIVE_PATH_ROUTING_HPP
#include "engine/datafacade.hpp"
#include "engine/internal_route_result.hpp"
#include "engine/algorithm.hpp"
#include "engine/search_engine_data.hpp"
#include "util/exception.hpp"
namespace osrm
{
namespace engine
{
namespace routing_algorith... | 559 |
3,373 | <filename>scalyr_agent/third_party_tls/oscrypto/_win/_crypt32_ctypes.py
# coding: utf-8
from __future__ import unicode_literals, division, absolute_import, print_function
import sys
import ctypes
from ctypes import windll, wintypes, POINTER, Structure, c_void_p, c_char_p
from ctypes.wintypes import DWORD
from .._ffi... | 4,159 |
1,178 | <reponame>leozz37/makani<gh_stars>1000+
# Copyright 2020 Makani Technologies 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... | 756 |
364 | <filename>Source/AsyncLoadingScreen/Public/SLoadingWidget.h<gh_stars>100-1000
/************************************************************************************
* *
* Copyright (C) 2020 <NAME>. *
* Website: https://github.com/truong-bui/AsyncLoadingScreen *
* Licensed under t... | 600 |
3,095 | #include "mimeattachment.h"
#include <QFileInfo>
MimeAttachment::MimeAttachment(QFile *file)
: MimeFile(file)
{
}
MimeAttachment::~MimeAttachment()
{
}
void MimeAttachment::prepare()
{
this->header += "Content-disposition: attachment\r\n";
MimeFile::prepare();
}
| 111 |
1,585 | <reponame>j-xiong/ompi<filename>ompi/mpi/fortran/mpif-h/win_flush_all_f.c
/* -*- Mode: C; c-basic-offset:4 ; indent-tabs-mode:nil -*- */
/*
* Copyright (c) 2004-2005 The Trustees of Indiana University and Indiana
* University Research and Technology
* Corporation. All... | 1,596 |
669 | <reponame>flygod1159/MxEngine
// Copyright(c) 2019 - 2020, #Momo
// 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 noti... | 788 |
4,339 | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | 448 |
623 | // Copyright (C) 2021 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/licenses/LICENSE-2.0
//
// Unless required by applicable ... | 286 |
2,542 | <reponame>gridgentoo/ServiceFabricAzure
// ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
// ---------------------------------------------------... | 563 |
831 | <gh_stars>100-1000
/*
* Copyright (C) 2014 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/licenses/LICENSE-2.0
*
* Unl... | 4,018 |
1,546 | <reponame>RadekBledowski/lawnchair<filename>quickstep/src/com/android/quickstep/RecentsAnimationController.java
/*
* Copyright (C) 2018 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 ob... | 3,148 |
350 | <filename>cocotb/config.py
#!/usr/bin/env python
###############################################################################
# Copyright (c) 2013 Potential Ventures Ltd
# Copyright (c) 2013 SolarFlare Communications Inc
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# ... | 3,893 |
608 | // This file is part of VSTGUI. It is subject to the license terms
// in the LICENSE file found in the top-level directory of this
// distribution and at http://github.com/steinbergmedia/vstgui/LICENSE
#pragma once
#include "../../vstguibase.h"
#if WINDOWS
#include "../iplatformresourceinputstream.h"
#include "../... | 832 |
1,144 | <reponame>dram/metasfresh
package de.metas.procurement.base.model.interceptor;
import org.adempiere.ad.callout.annotations.Callout;
import org.adempiere.ad.callout.annotations.CalloutMethod;
import org.adempiere.ad.callout.api.ICalloutField;
import org.adempiere.ad.modelvalidator.annotations.Interceptor;
import org.ad... | 1,499 |
316 | // Copyright (c) 2015-2016, tandasat. All rights reserved.
// Copyright (c) 2016-2017, KelvinChan. All rights reserved.
// Use of this source code is governed by a MIT-style license that can be
// found in the LICENSE file.
/// @file
/// Implements EPT functions.
#include "ept.h"
#include "asm.h"
#include "common.h"
... | 16,653 |
320 | <filename>matconvnet-1.0-beta16/matlab/src/bits/data.hpp
// @file data.hpp
// @brief Basic data structures
// @author <NAME>
/*
Copyright (C) 2015 <NAME>.
All rights reserved.
This file is part of the VLFeat library and is made available under
the terms of the BSD license (see the COPYING file).
*/
#ifndef __vl__dat... | 1,718 |
1,144 | // SPDX-License-Identifier: GPL-2.0+
/*
* Copyright (C) 2015 Google, Inc
*/
#include <common.h>
#include <dm.h>
#include <mmc.h>
#include <dm/test.h>
#include <test/ut.h>
/*
* Basic test of the mmc uclass. We could expand this by implementing an MMC
* stack for sandbox, or at least implementing the basic operatio... | 467 |
6,300 | //
// Created by <NAME> on 6/1/21.
//
#ifndef MENU_DARWIN_H
#define MENU_DARWIN_H
#include "common.h"
#include "ffenestri_darwin.h"
enum MenuItemType {Text = 0, Checkbox = 1, Radio = 2};
enum MenuType {ApplicationMenuType = 0, ContextMenuType = 1, TrayMenuType = 2};
static const char *MenuTypeAsString[] = {
... | 1,186 |
488 | // An example ROSE plugin
#ifndef CLASS_HIERARCHY_WRITER_H
#define CLASS_HIERARCHY_WRITER_H 1
#include <ostream>
#include "ClassHierarchyAnalysis.h"
#include "ObjectLayoutAnalysis.h"
namespace CodeThorn
{
/// filter type for class hierarchy writer
/// returns true, if a class should be included in the graph
usi... | 1,084 |
9,136 | <filename>examples/ThirdPartyLibs/BussIK/LinearR2.cpp
/*
*
* Mathematics Subpackage (VrMath)
*
*
* Author: <NAME>, <EMAIL>.
* Web page: http://math.ucsd.edu/~sbuss/MathCG
*
*
This software is provided 'as-is', without any express or implied warranty.
In no event will the authors be held liable for any damages... | 1,018 |
575 | // Copyright 2020 Proyectos y Sistemas de Mantenimiento SL (eProsima).
//
// 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... | 1,683 |
979 | # This test generates the 'precaculatedHashes' array in 1.sys.test.ts
import hashlib
import math
def calculate_hash(total_size: int) -> str:
if total_size >= 20000000:
divider = math.ceil(total_size / 100000000)
blocks = []
for x in range(divider):
blocks.append({'start': x * 1... | 581 |
585 | /**
* Copyright (c) 2016-present, Facebook, 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 ... | 432 |
1,444 | <reponame>GabrielSturtevant/mage
package mage.cards.t;
import java.util.UUID;
import mage.MageInt;
import mage.MageObject;
import mage.abilities.Abilities;
import mage.abilities.Ability;
import mage.abilities.common.SpellCastControllerTriggeredAbility;
import mage.abilities.effects.common.search.SearchLibraryPutInHan... | 947 |
530 | <filename>application/org.openjdk.jmc.joverflow/src/main/java/org/openjdk/jmc/joverflow/support/ProblemRecorder.java
/*
* Copyright (c) 2018, Oracle and/or its affiliates. All rights reserved.
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* The contents of this file are subject to the terms ... | 1,698 |
1,663 | <gh_stars>1000+
/*
Copyright (c) 2015 <NAME>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"),
to deal in the Software without restriction, including without limitation
the rights to use, copy, modify, merge, pu... | 903 |
1,874 | # Copyright 2012 Nebula, Inc.
# Copyright 2013 IBM Corp.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required... | 803 |
2,805 | <reponame>robin-NEC/ckan
{
"processing": "Bezig...",
"lengthMenu": "_MENU_ resultaten weergeven",
"zeroRecords": "Geen resultaten gevonden",
"info": "_START_ tot _END_ van _TOTAL_ resultaten",
"infoEmpty": "Geen resultaten om weer te geven",
"infoFiltered": " (gefilterd uit _MAX_ resultaten)",
... | 356 |
3,372 | <reponame>MC-JY/aws-sdk-java<gh_stars>1000+
/*
* Copyright 2016-2021 Amazon.com, Inc. or its affiliates. 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. A copy of the License is located at
*
* http://aws.... | 2,755 |
458 | <reponame>timmattison/gwt-material<filename>gwt-material/src/main/java/gwt/material/design/client/ui/MaterialRange.java<gh_stars>100-1000
/*
* #%L
* GwtMaterial
* %%
* Copyright (C) 2015 - 2017 GwtMaterialDesign
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file ex... | 3,986 |
310 | <reponame>orekyuu/doma
/** Provides classes to build dynamic SQL statements. */
package org.seasar.doma.jdbc.builder;
| 39 |
679 | /**************************************************************
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to y... | 1,079 |
4,538 | <filename>components/ota/ota_agent/verify/ota_verify_hash.c
/*
* Copyright (C) 2015-2017 Alibaba Group Holding Limited
*/
#include <string.h>
#include "ota_log.h"
#include "ota_import.h"
#include "ota_hal_digest.h"
#include "ota_hal_os.h"
#define OTA_BUF_VERIFY 512
int ota_hash_init(ota_hash_ctx_t *ctx, unsigned ch... | 3,840 |
563 | <reponame>OferLevi85/athenz
/*
* Copyright The Athenz 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 b... | 4,492 |
14,668 | <reponame>zealoussnow/chromium
// Copyright 2013 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 "google_apis/gcm/engine/fake_connection_factory.h"
#include <memory>
#include "google_apis/gcm/engine/fake_conne... | 705 |
356 | <reponame>AyuBisht/Algo-Tree<filename>Code/Java/Longest_Common_Prefix.java<gh_stars>100-1000
/* Here is the code for finding the Longest Conmmon Prefix
from the input provided by user.
_______________________________________________________________
*/
import java.util.Scanner;
public class Main {
private stati... | 599 |
315 | <reponame>shink/incubator-inlong
/*
* 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 ... | 614 |
4,812 | //===--- DeltaAlgorithm.cpp - A Set Minimization Algorithm -----*- C++ -*--===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//===------------------------------... | 1,303 |
8,629 | #include "IFileCache.h"
#include <Common/hex.h>
#include <Common/CurrentThread.h>
#include <Common/SipHash.h>
#include <Common/FileCacheSettings.h>
#include <IO/ReadSettings.h>
#include <filesystem>
namespace fs = std::filesystem;
namespace DB
{
namespace ErrorCodes
{
extern const int REMOTE_FS_OBJECT_CACHE_ERR... | 2,310 |
861 | package cn.springcloud.gray.server.configuration;
import cn.springcloud.gray.server.clustering.PeerNode;
import cn.springcloud.gray.server.clustering.ServerCluster;
import cn.springcloud.gray.server.clustering.ServerClusterImpl;
import cn.springcloud.gray.server.configuration.properties.ClusterProperties;
import cn.sp... | 614 |
485 | package io.indexr.query.plan.physical;
import java.util.Comparator;
import java.util.Iterator;
import java.util.List;
import java.util.concurrent.atomic.AtomicBoolean;
import java.util.function.Predicate;
import java.util.function.Supplier;
import io.indexr.query.expr.Expression;
import io.indexr.query.expr.Interpret... | 673 |
348 | {"nom":"Montsûrs-<NAME>","circ":"1ère circonscription","dpt":"Mayenne","inscrits":1860,"abs":886,"votants":974,"blancs":14,"nuls":2,"exp":958,"res":[{"nuance":"SOC","nom":"<NAME>","voix":266},{"nuance":"REM","nom":"Mme <NAME>","voix":239},{"nuance":"LR","nom":"Mme <NAME>","voix":178},{"nuance":"FN","nom":"<NAME>","voix... | 255 |
381 | <reponame>m4sterchain/mesapy<filename>pypy/module/_rawffi/alt/test/test_ffitype.py<gh_stars>100-1000
from pypy.module._rawffi.alt.test.test_funcptr import BaseAppTestFFI
class AppTestFFIType(BaseAppTestFFI):
def test_simple_types(self):
from _rawffi.alt import types
assert str(types.sint) == "<ffi... | 653 |
938 | {
"variants": {
"type=bottom": {
"model": "tconstruct:block/wood/bloodshroom/slab"
},
"type=double": {
"model": "tconstruct:block/wood/bloodshroom/planks"
},
"type=top": {
"model": "tconstruct:block/wood/bloodshroom/slab_top"
}
}
} | 132 |
997 | <filename>crypto_sign/sphincs-haraka-192f-simple/clean/hash_haraka.c
#include <stdint.h>
#include <string.h>
#include "address.h"
#include "haraka.h"
#include "hash.h"
#include "params.h"
#include "utils.h"
void PQCLEAN_SPHINCSHARAKA192FSIMPLE_CLEAN_initialize_hash_function(
hash_state *hash_state_seeded,
con... | 2,528 |
1,031 | package at.wirecube.additiveanimations.additive_animator;
import android.animation.TypeEvaluator;
import java.util.List;
import at.wirecube.additiveanimations.helper.FloatProperty;
/**
* This is a small utility class which can animate any kind of object using the
* {@link #property(float, FloatProperty)} and {@li... | 720 |
316 | /**
* Contains the Mapbox Maps Android Log API classes.
*/
package com.mapbox.mapboxsdk.log; | 29 |
852 | import FWCore.ParameterSet.Config as cms
# output block for alcastream EcalPhiSym
# output module
# module alcastreamEcalPhiSymOutput = PoolOutputModule
alcastreamEcalPhiSymOutput = cms.PSet(
outputCommands = cms.untracked.vstring('drop *',
'keep EcalRecHitsSorted__*_*')
)
| 111 |
2,650 | __all__ = [
"__version__",
"utils",
"pdfminer",
"open",
"set_debug",
]
from ._version import __version__
from .pdf import PDF
from . import utils
import pdfminer
import pdfminer.pdftypes
import sys
pdfminer.pdftypes.STRICT = False
pdfminer.pdfinterp.STRICT = False
open = PDF.open
def load(file_... | 253 |
4,625 | // Copyright 2018 JanusGraph 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 law or agree... | 478 |
404 | // Copyright (c) 2020 K Team. All Rights Reserved.
package org.kframework.compile.checks;
import org.kframework.definition.Context;
import org.kframework.definition.ContextAlias;
import org.kframework.definition.RuleOrClaim;
import org.kframework.definition.Sentence;
import org.kframework.kore.K;
import org.kframework... | 1,001 |
12,278 | <filename>boost/boost/graph/distributed/depth_first_search.hpp
// Copyright (C) 2004-2008 The Trustees of Indiana University.
// Use, modification and distribution is subject to the Boost Software
// License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
// A... | 5,015 |
522 | # Cf. https://github.com/ppwwyyxx/tensorpack/blob/master/examples/FasterRCNN/train.py
# and https://github.com/ppwwyyxx/tensorpack/blob/master/examples/FasterRCNN/model.py
import tensorflow as tf
import numpy as np
from functools import partial
from datasets import DataKeys
from network.ConvolutionalLayers import Con... | 15,378 |
852 | <reponame>ckamtsikis/cmssw
#include "CondCore/Utilities/interface/PayloadInspectorModule.h"
#include "CondCore/Utilities/interface/PayloadInspector.h"
#include "CondCore/CondDB/interface/Time.h"
#include "DataFormats/EcalDetId/interface/EBDetId.h"
#include "DataFormats/EcalDetId/interface/EEDetId.h"
#include "CondCore/... | 2,012 |
348 | <reponame>chamberone/Leaflet.PixiOverlay
{"nom":"Vandoeuvre-lès-Nancy","circ":"2ème circonscription","dpt":"Meurthe-et-Moselle","inscrits":15814,"abs":8898,"votants":6916,"blancs":69,"nuls":25,"exp":6822,"res":[{"nuance":"MDM","nom":"<NAME>","voix":2557},{"nuance":"SOC","nom":"<NAME>","voix":1128},{"nuance":"LR","nom":... | 313 |
403 | <reponame>bilaleluneis/QPULib<filename>Lib/Target/Pretty.h
#ifndef _TARGET_PRETTY_H_
#define _TARGET_PRETTY_H_
#include "Target/Syntax.h"
// Pretty printer for the QPULib target language
void pretty(Instr instr);
#endif
| 89 |
468 | {
"name": "pride",
"author": "<NAME>",
"license": "CC0",
"raster": "http://hexb.in/hexagons/pride.png",
"vector": "http://hexb.in/vector/pride.svg",
"description": "Hexagon symbolising the pride flag."
}
| 89 |
530 | /*
* Copyright (c) 2018, Oracle and/or its affiliates. All rights reserved.
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* The contents of this file are subject to the terms of either the Universal Permissive License
* v 1.0 as shown at http://oss.oracle.com/licenses/upl
*
* or the follo... | 1,320 |
1,350 | <filename>sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/AzureADOnlyAuthenticationsListSamples.java<gh_stars>1000+
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Gene... | 351 |
1,205 | <gh_stars>1000+
"""
Module for the creation of composite quantum objects via the tensor product.
"""
__all__ = [
'tensor', 'super_tensor', 'composite', 'tensor_swap', 'tensor_contract'
]
import numpy as np
import scipy.sparse as sp
from qutip.cy.spmath import zcsr_kron
from qutip.qobj import Qobj
from qutip.permu... | 4,566 |
1,069 | <reponame>Leopere/django-th
#!/usr/bin/env python
# coding: utf-8
from __future__ import unicode_literals
from django.core.management.base import BaseCommand
from django_th.recycle import recycle
class Command(BaseCommand):
help = 'Trigger all data from cache in version 2'
def handle(self, *args, **option... | 156 |
1,861 | <filename>cpp/spectrum/core/decisions/MetadataDecision.cpp<gh_stars>1000+
// Copyright (c) Facebook, Inc. and its affiliates.
//
// This source code is licensed under the MIT license found in the
// LICENSE file in the root directory of this source tree.
#include "MetadataDecision.h"
namespace facebook {
namespace sp... | 337 |
323 | /*
* Copyright (c) 2018, SUSE LLC.
*
* This program is licensed under the BSD license, read LICENSE.BSD
* for further information
*/
struct solv_zchunk;
extern struct solv_zchunk *solv_zchunk_open(FILE *fp, unsigned int streamid);
extern ssize_t solv_zchunk_read(struct solv_zchunk *zck, char *buf, size_t len);
e... | 140 |
507 | <gh_stars>100-1000
# tests/test_provider_camptocamp_jwt.py
# Automatically generated by tools/makecode.py (24-Sep-2021 15:19:50 UTC)
def test_provider_import():
import terrascript.provider.camptocamp.jwt
def test_resource_import():
from terrascript.resource.camptocamp.jwt import jwt_hashed_token
from t... | 292 |
338 | <filename>ants/contrib/bids/cohort.py
"""
BIDSCohort class for handling BIDS datasets.
This class allows you to streamline various tasks
related to neuroimage processing, machine learning
analysis, and deep learning sampling
NOTES
------
# Example: run N4 bias correction on the T1 images of a BIDS dataset
cohort = B... | 1,237 |
16,989 | // Copyright 2015 The Bazel 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 appl... | 871 |
364 | <reponame>rodrigo-bruno/DeathStarBench
{
"secret": "secret",
"social-graph-service": {
"addr": "social-graph-service",
"port": 9090
},
"social-graph-mongodb": {
"addr": "social-graph-mongodb",
"port": 27017
},
"social-graph-redis": {
"addr": "social-graph-redis",
"port": 6379
},
... | 987 |
190,993 | /* Copyright 2019 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... | 6,121 |
1,615 | //
// MLNLayoutNode.h
//
//
// Created by MoMo on 2018/10/24.
//
#import <UIKit/UIKit.h>
#import "MLNViewConst.h"
#define isLayoutNodeWidthNeedMerge(NODE) (NODE.widthType == MLNLayoutMeasurementTypeMatchParent &&\
(NODE.supernode.mergedWidthType == MLNLayoutMeasurementTypeWrapCont... | 2,428 |
421 |
//<Snippet1>
#using <System.Xml.dll>
#using <System.dll>
using namespace System;
using namespace System::IO;
using namespace System::Xml;
using namespace System::Xml::Serialization;
public ref class Group
{
public:
// This attribute will be overridden.
[SoapAttributeAttribute(Namespace="http:... | 928 |
635 | <gh_stars>100-1000
/*
* Copyright 2018 - 2019 <NAME> (i-net software)
*
* 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... | 718 |
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.resourcemanager.cognitiveservices.implementation;
import com.azure.resourcemanager.cognitiveservices.fluent.models.AccountSkuListResultInner;
im... | 503 |
505 | package de.rieckpil.blog;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.autoconfigure.jdbc.JdbcTest;
import org.springframework.jdbc.core.JdbcTemplate;
import javax.sql.DataSource;
import static org.junit.jupiter.api.Assertions.... | 211 |
830 | <gh_stars>100-1000
r"""
=================================
Wasserstein 1D with PyTorch
=================================
In this small example, we consider the following minization problem:
.. math::
\mu^* = \min_\mu W(\mu,\nu)
where :math:`\nu` is a reference 1D measure. The problem is handled
by a projected gradi... | 1,764 |
765 | /*
* Copyright (c) 2014 The University of Wisconsin
*
* Copyright (c) 2006 INRIA (Institut National de Recherche en
* Informatique et en Automatique / French National Research Institute
* for Computer Science and Applied Mathematics)
*
* All rights reserved.
*
* Redistribution and use in source and binary for... | 1,705 |
777 | <reponame>breandan/graphviz-java<filename>graphviz-java/src/test/java/guru/nidi/graphviz/attribute/validate/ColorListDatatypeTest.java
/*
* Copyright © 2015 <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 ... | 592 |
412 | /* FUNCTION: __CPROVER_danger_execute */
#ifndef __CPROVER_cegis_number_of_vars
#define __CPROVER_cegis_number_of_vars 2
#endif
#ifndef __CPROVER_cegis_number_of_consts
#define __CPROVER_cegis_number_of_consts 1
#endif
#ifndef __CPROVER_cegis_number_of_ops
#define __CPROVER_cegis_number_of_ops 3
#endif
#ifndef __CPROV... | 2,698 |
2,151 | // 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.
#ifndef CHROMEOS_SERVICES_DEVICE_SYNC_DEVICE_SYNC_IMPL_H_
#define CHROMEOS_SERVICES_DEVICE_SYNC_DEVICE_SYNC_IMPL_H_
#include "base/macros.h"
#include "ba... | 2,663 |
659 | from test.apps.openapi.schema import OpenAPIVersion
import pytest
from _pytest.main import ExitCode
import schemathesis
from schemathesis import models
@pytest.fixture(autouse=True)
def unregister_hooks():
yield
schemathesis.hooks.unregister_all()
@pytest.mark.operations("success")
def test_custom_cli_han... | 1,493 |
325 | /* SPDX-License-Identifier: BSD-3-Clause
*
* Copyright(c) 2017 Intel Corporation. All rights reserved.
*
* Author: <NAME> <<EMAIL>>
*/
/**
* \file arch/xtensa/include/arch/schedule/task.h
* \brief Arch task header file
* \authors <NAME> <<EMAIL>>
*/
#ifdef __SOF_SCHEDULE_TASK_H__
#ifndef __ARCH_SCHEDULE_TAS... | 219 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.