max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
848 | /**
* Copyright (c) 2011-2021 <NAME>
* This file is part of the SdFat library for SD memory cards.
*
* 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 Software without restrictio... | 3,636 |
5,169 | {
"name": "FAZTimePicker",
"version": "1.2.0",
"summary": "A date picker view to choose date and time in Objective-C. it support iOS 8.0 later and it can run in any device,such as iPhone 4~iPhone X",
"description": "时间选择器,可适用iOS 8 以上系统,iPhone4 ~ iPhone X 的机型适配,只要两句代码,您可以轻松简便的实现时间选择,此控件还能根据您想要的结果自行设定输出结果的格式,无需额外... | 655 |
351 | <reponame>the6nnoo/dna<filename>example/android/app/src/main/java/me/ele/dna_example/DnaVersion.java
package me.ele.dna_example;
import me.ele.dna_annotations.DnaMethod;
public class DnaVersion {
@DnaMethod
public DnaVersion() {
}
@DnaMethod
public String getVersion() {
return android.o... | 147 |
2,141 | <filename>src/ploomber/tasks/mixins.py<gh_stars>1000+
from ploomber.exceptions import MissingClientError
from ploomber.util.dotted_path import DottedPath
class ClientMixin:
"""
A mixin that exposes a client property. Looks at the _client attribute,
then looks at self.dag. If _client returns a DottedSpecPa... | 448 |
2,542 | <filename>src/prod/src/Reliability/LoadBalancing/BalanceChecker.cpp
// ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
// ------------------------... | 12,273 |
2,400 | /*
* Copyright 2020 Red Hat, Inc. and/or its affiliates.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ap... | 816 |
797 | <reponame>srinivasankavitha/js-graphql-intellij-plugin
/*
The MIT License (MIT)
Copyright (c) 2015 <NAME> and Contributors
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 ... | 782 |
14,668 | // 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 "ash/keyboard/ui/notification_manager.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace keyboard {
TEST(NotificationManagerTest, Does... | 696 |
1,184 | <reponame>lcs-d3v/plyer
'''
Module of MacOSX API for plyer.devicename.
'''
import socket
from plyer.facades import DeviceName
class OSXDeviceName(DeviceName):
'''
Implementation of MacOSX DeviceName API.
'''
def _get_device_name(self):
hostname = socket.gethostname()
return hostname
... | 165 |
627 | <gh_stars>100-1000
/* Copyright 2016 The Chromium OS 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 "common.h"
#include "link_defs.h"
#include "registers.h"
#include "i2c.h"
#include "usb_descriptor.h"
#include "util.h"... | 2,279 |
466 | <reponame>wbaby/ReClassEx<filename>beaengine/beaengine/tests/test.py<gh_stars>100-1000
#!/usr/bin/python
# -*- coding: utf-8 -*-
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either v... | 103,498 |
1,738 | /*
* 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 provided, by the license below or t... | 4,067 |
1,338 | <reponame>Kirishikesan/haiku
// MallocBuffer.h
#include <malloc.h>
#include "MallocBuffer.h"
// TODO: maybe this class could be more flexible by taking
// a color_space argument in the constructor
// the hardcoded width * 4 (because that's how it's used now anyways)
// could be avoided, but I'm in a hurry... :-)
//... | 479 |
544 | <gh_stars>100-1000
//
// GTMSystemVersion.h
//
// Copyright 2007-2008 Google Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License"); you may not
// use this file except in compliance with the License. You may obtain a copy
// of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
... | 890 |
2,342 | #include "../GraphicsHost/GuiGraphicsHost.h"
namespace vl
{
namespace presentation
{
namespace compositions
{
using namespace collections;
using namespace controls;
using namespace elements;
/***********************************************************************
GuiWindowComposition
******************... | 1,675 |
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.
#ifndef LIBRARIES_NACL_IO_DIR_NODE_H_
#define LIBRARIES_NACL_IO_DIR_NODE_H_
#include <map>
#include <string>
#include <vec... | 791 |
2,023 | <filename>recipes/Python/157358_Lightweight_XML_constructor/recipe-157358.py<gh_stars>1000+
from xml.dom.minidom import Document, parse, parseString
from types import StringType, UnicodeType
import string
enc = "iso-8859-1"
def _encode(v):
if isinstance(v, UnicodeType):
v = v.encode(enc)
return v
cla... | 1,534 |
374 | package com.pedaily.yc.ycdialoglib.animator;
public enum PopupAnimation {
// 缩放 + 透明渐变
ScaleAlphaFromCenter, // 从中心进行缩放+透明渐变
ScaleAlphaFromLeftTop, //从左上角进行缩放+透明渐变
ScaleAlphaFromRightTop, //从右上角进行缩放+透明渐变
ScaleAlphaFromLeftBottom, //从左下角进行缩放+透明渐变
ScaleAlphaFromRightBottom, //从右下角进行缩放+透明渐变
... | 614 |
856 | <gh_stars>100-1000
//
// Copyright © 2017 Arm Ltd. All rights reserved.
// SPDX-License-Identifier: MIT
//
#pragma once
#include "Optimization.hpp"
#include <armnn/utility/IgnoreUnused.hpp>
namespace armnn
{
namespace optimizations
{
class OptimizeInverseConversionsImpl
{
public:
/// Run for every connection be... | 592 |
2,421 | /*
* Copyright 2012-2018 Chronicle Map Contributors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicab... | 630 |
619 | <filename>examples/c/cjq4435.c
/*
* Author: <NAME> <<EMAIL>>
* Copyright (c) 2017 Intel Corporation.
*
* This program and the accompanying materials are made available under the
* terms of the The MIT License which is available at
* https://opensource.org/licenses/MIT.
*
* SPDX-License-Identifier: MIT
*/
#inc... | 719 |
504 | #define BOOST_TEST_MODULE TestSolvers
#include <boost/test/unit_test.hpp>
#include <amgcl/value_type/complex.hpp>
#include <amgcl/backend/builtin.hpp>
#include "test_solver.hpp"
BOOST_AUTO_TEST_SUITE( test_solvers )
BOOST_AUTO_TEST_CASE(test_builtin_complex_backend)
{
test_backend< amgcl::backend::builtin< std:... | 172 |
2,221 | <reponame>avinashk07/flume
/*
* 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... | 820 |
1,444 |
package mage.cards.w;
import java.util.UUID;
import mage.MageInt;
import mage.abilities.common.LandfallAbility;
import mage.abilities.effects.common.continuous.BoostSourceEffect;
import mage.abilities.keyword.FlyingAbility;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
im... | 392 |
1,982 | <filename>libs/other_commands.py
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""The Package that contains all the telegram functions used except news"""
from libs import utils
def prof_command(bot, update, args):
"""Defining the `prof` command"""
prof_name = " ".join(args).strip().title() if args else ''
... | 2,750 |
1,056 | <filename>php/php.phing/src/org/netbeans/modules/php/phing/options/PhingOptions.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 licens... | 830 |
404 | <gh_stars>100-1000
#include "ringlogger.h"
#include <stdio.h>
#include <stdbool.h>
#include <string.h>
#include <unistd.h>
#include <inttypes.h>
#include <sys/wait.h>
static void forkwrite(void)
{
struct log *log = open_log("/tmp/test_log");
char c[512];
int i, base;
bool in_fork = !fork();
base = 10000 * in_for... | 537 |
809 | /**
* @file
* @brief Defines macros used for direct access to registers mapped into
* the address space.
*
* @date 25.11.09
* @author <NAME>
*/
#ifndef HAL_REG_H_
#define HAL_REG_H_
#include <asm/hal/reg.h>
#include <stdint.h>
#ifndef __REG_STORE
#define __REG_STORE(addr, value) \
do { *((volatile unsigned l... | 1,180 |
971 | <reponame>JackAKirk/oneDNN
/*******************************************************************************
* Copyright 2020 Intel Corporation
*
* 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
... | 3,682 |
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 "services/network/test/test_network_quality_tracker.h"
namespace network {
TestNetworkQualityTracker::TestNetworkQualityTracker() = default;
T... | 107 |
348 | <filename>docs/data/leg-t2/040/04001163.json
{"nom":"Lüe","circ":"1ère circonscription","dpt":"Landes","inscrits":450,"abs":263,"votants":187,"blancs":26,"nuls":7,"exp":154,"res":[{"nuance":"MDM","nom":"<NAME>","voix":98},{"nuance":"SOC","nom":"<NAME>","voix":56}]} | 110 |
11,058 | <reponame>Hadron/python
#
# Package analogous to 'threading.py' but using processes
#
# multiprocessing/__init__.py
#
# This package is intended to duplicate the functionality (and much of
# the API) of threading.py but uses processes instead of threads. A
# subpackage 'multiprocessing.dummy' has the same API but is a... | 308 |
37,508 | //=============================================================================
//
// Copyright (c) 2015-2020 Qualcomm Technologies, Inc.
// All Rights Reserved.
// Confidential and Proprietary - Qualcomm Technologies, Inc.
//
//=============================================================================
#ifndef Z... | 1,967 |
7,510 | [
{
"category": "``kinesisanalytics``",
"description": "[``botocore``] Update kinesisanalytics client to latest version",
"type": "api-change"
}
] | 64 |
2,206 | /*
* ******************************************************************************
* *
* *
* * This program and the accompanying materials are made available under the
* * terms of the Apache License, Version 2.0 which is available at
* * https://www.apache.org/licenses/LICENSE-2.0.
* *
* * See the NO... | 873 |
426 | /* Code generated by IfcQuery EXPRESS generator, www.ifcquery.com */
#pragma once
#include <vector>
#include <map>
#include <sstream>
#include <string>
#include "ifcpp/model/GlobalDefines.h"
#include "ifcpp/model/BasicTypes.h"
#include "ifcpp/model/BuildingObject.h"
// TYPE IfcSpaceTypeEnum = ENUMERATION O... | 476 |
385 | <filename>tests/test_plots.py
"""
Some rudimentary tests. Instantiates a Plot object, but doesn't test plotting.
Discovered that this set of rudimentary tests might be necessary after seeing
the following issue:
https://github.com/ericmjl/nxviz/issues/160
"""
# from test_utils import diff_plots, corresponding_li... | 1,678 |
1,467 | {
"version": "2.10.41",
"date": "2019-12-23",
"entries": [
{
"type": "feature",
"category": "Amazon Detective",
"description": "Updated the documentation for Amazon Detective."
},
{
"type": "feature",
"category": "Amazon FSx... | 386 |
7,892 | /***************************************************/
/*! \class Effect
\brief STK abstract effects parent class.
This class provides common functionality for
STK effects subclasses.
by <NAME> and <NAME>, 1995 - 2005.
*/
/***************************************************/
#include "Stk.h"
#ifndef ... | 533 |
2,073 | <reponame>java-app-scans/mahout<filename>community/mahout-mr/integration/src/main/java/org/apache/mahout/text/MailArchivesClusteringAnalyzer.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... | 2,748 |
374 | package net.dubboclub.dubbogenerator;
import com.alibaba.dubbo.common.utils.StringUtils;
import javassist.*;
import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.atomic.AtomicLong;
/**
* Created by bieber on 2015/7/31.
*/
public class Javassi... | 2,037 |
1,887 | """This module contains various helper methods for dealing with EVM
operations."""
from enum import Enum
from mythril.laser.ethereum import util
from mythril.laser.smt import simplify
class VarType(Enum):
"""An enum denoting whether a value is symbolic or concrete."""
SYMBOLIC = 1
CONCRETE = 2
class V... | 845 |
12,278 | <reponame>pyracanda/runtime
#define UNW_LOCAL_ONLY
#include <libunwind.h>
#if defined(UNW_LOCAL_ONLY) && !defined(UNW_REMOTE_ONLY)
#include "Gset_caching_policy.c"
#endif
| 77 |
1,936 | <filename>algorithms/ceres-error-terms/include/ceres-error-terms/inertial-error-term-eigen.h
#ifndef CERES_ERROR_TERMS_INERTIAL_ERROR_TERM_EIGEN_H_
#define CERES_ERROR_TERMS_INERTIAL_ERROR_TERM_EIGEN_H_
#include <vector>
#include <Eigen/Core>
#include <ceres/sized_cost_function.h>
#include <glog/logging.h>
#include <... | 2,618 |
1,738 | /*
* 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 provided, by the license below or t... | 4,204 |
316 | #include <iostream>
#include <vigra/multi_array.hxx>
#include <vigra/basicgeometry.hxx>
#include <vigra/impex.hxx>
using namespace vigra;
int main(int argc, char ** argv)
{
if(argc != 3)
{
std::cout << "Usage: " << argv[0] << " infile outfile" << std::endl;
std::cout << "(grayscale only, su... | 788 |
777 | // 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 WebEncryptedMediaRequest_h
#define WebEncryptedMediaRequest_h
#include "public/platform/WebCommon.h"
#include "public/platform/WebPrivatePtr.h"
#... | 439 |
407 | /*
* Copyright (c) 2017-2019, NVIDIA CORPORATION. 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 ... | 2,068 |
312 | <filename>src/occa/internal/utils/sys.hpp
#ifndef OCCA_INTERNAL_UTILS_SYS_HEADER
#define OCCA_INTERNAL_UTILS_SYS_HEADER
#include <iostream>
#include <sstream>
#include <occa/defines.hpp>
#include <occa/types.hpp>
#include <occa/internal/io/output.hpp>
#include <occa/internal/utils/enums.hpp>
#include <occa/utils/hash... | 2,215 |
1,143 | package com.twitter.common.zookeeper.testing.angrybird;
import java.io.IOException;
import java.text.ParseException;
import java.util.logging.Logger;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import java.util.List;
import javax.annotation.Nullable;
import com.google.common.base.Optional;
import... | 3,308 |
1,806 | /*
* -\-\-
* Spotify Apollo API Implementations
* --
* Copyright (C) 2013 - 2015 Spotify AB
* --
* 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... | 279 |
583 | #include "generic_histogram.hpp"
#include <memory>
#include <numeric>
#include <string>
#include <utility>
#include <vector>
namespace opossum {
template <typename T>
GenericHistogram<T>::GenericHistogram(std::vector<T>&& bin_minima, std::vector<T>&& bin_maxima,
std::vector<Hist... | 2,006 |
1,104 | <gh_stars>1000+
package org.apache.lucene.analysis.sinks;
/**
* 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 ... | 488 |
1,194 | package ca.uhn.fhir.rest.server.interceptor.s13n.standardizers;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.params.ParameterizedTest;
import org.junit.jupiter.params.provider.CsvFileSource;
import static org.junit.jupiter.api.Assertions.assertEquals;
public class TitleStandardizerTest {
IStandardiz... | 747 |
959 | <reponame>blmoistawinde/nlpcda<filename>nlpcda/tools/simbert/generator.py
# -*- coding: utf-8 -*-
import os
import numpy as np
from bert4keras.backend import keras
from bert4keras.models import build_transformer_model
from bert4keras.tokenizers import Tokenizer
from bert4keras.snippets import sequence_padding, AutoRegr... | 1,605 |
764 | // 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... | 10,740 |
344 | <filename>llvm_propeller_generate_testdata.cc
#include "llvm_propeller_protobuf.h"
#include "third_party/abseil/absl/flags/flag.h"
#include "third_party/abseil/absl/flags/parse.h"
#include "third_party/abseil/absl/flags/usage.h"
#if defined(HAVE_LLVM)
#include <memory>
#include "base/commandlineflags.h"
#include "bas... | 1,384 |
1,805 | <filename>glib-adv/sgraph.cpp
/////////////////////////////////////////////////
// Includes
#include "sgraph.h"
/////////////////////////////////////////////////
// Simple-Graph
void TSGraph::AddEdgeOrIncWgt(const int& SrcVrtxN, const int& DstVrtxN,
const bool& DirP, const double Wgt){
bool FoundP=false; in... | 7,129 |
516 | <filename>{{cookiecutter.project_slug}}/backend/app/app/core/config.py
import os
def getenv_boolean(var_name, default_value=False):
result = default_value
env_value = os.getenv(var_name)
if env_value is not None:
result = env_value.upper() in ("TRUE", "1")
return result
API_V1_STR = "/api/v1... | 504 |
5,774 | <reponame>gi0baro/pyo3<filename>examples/pyo3-pytests/tests/test_objstore.py<gh_stars>1000+
import gc
import platform
import sys
import pytest
from pyo3_pytests.objstore import ObjStore
def test_objstore_doesnot_leak_memory():
N = 10000
message = b'\\(-"-;) Praying that memory leak would not happen..'
#... | 260 |
1,510 | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | 1,276 |
1,235 | package ${groupId}.actions;
import com.opensymphony.xwork2.ModelDriven;
import org.apache.struts2.rest.DefaultHttpHeaders;
import org.apache.struts2.rest.HttpHeaders;
import org.apache.struts2.rest.RestActionSupport;
import java.util.Collection;
import java.util.UUID;
public class PingController extends RestActio... | 679 |
458 | <filename>android/library/maply/src/main/java/com/mousebird/maply/Matrix3d.java
/*
* Matrix3d.java
* WhirlyGlobeLib
*
* Created by jmnavarro
* Copyright 2011-2016 mousebird consulting
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with ... | 523 |
1,069 | <filename>lib/extensions/pacnet/test_pac.py
"""
Copyright (C) 2019 NVIDIA Corporation. All rights reserved.
Licensed under the CC BY-NC-SA 4.0 license (https://creativecommons.org/licenses/by-nc-sa/4.0/legalcode).
"""
import unittest
from functools import wraps
import numpy as np
import torch as th
from torch import ... | 10,585 |
4,013 | from checkov.common.models.enums import CheckCategories
from checkov.terraform.checks.resource.gcp.AbsGoogleImpersonationRoles import AbsGoogleImpersonationRoles
class GoogleProjectImpersonationRoles(AbsGoogleImpersonationRoles):
def __init__(self):
name = "Ensure no roles that enable to impersonate and ma... | 223 |
2,177 | """JSON token scanner
"""
import re
def _import_c_make_scanner():
try:
from simplejson._speedups import make_scanner
return make_scanner
except ImportError:
return None
c_make_scanner = _import_c_make_scanner()
__all__ = ['make_scanner', 'JSONDecodeError']
NUMBER_RE = re.compile(
r... | 1,905 |
1,056 | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | 1,083 |
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 ... | 761 |
326 | """
Test the functions that load libgmt.
"""
import ctypes
import shutil
import subprocess
import sys
import types
from pathlib import PurePath
import pytest
from pygmt.clib.loading import check_libgmt, clib_full_names, clib_names, load_libgmt
from pygmt.exceptions import GMTCLibError, GMTCLibNotFoundError, GMTOSError... | 4,876 |
2,436 | package com.ss.android.ugc.bytex.access_inline.visitor;
import com.ss.android.ugc.bytex.access_inline.Context;
import com.ss.android.ugc.bytex.access_inline.ShouldSkipInlineException;
import com.ss.android.ugc.bytex.common.Constants;
import com.ss.android.ugc.bytex.common.graph.FieldEntity;
import com.ss.android.ugc.b... | 6,270 |
341 | <reponame>chenmingxiang110/Chinese-automatic-speech-recognition
import scipy.io.wavfile as wav
import numpy as np
import os
import pydub
import tempfile
import scipy
import random
from python_speech_features import logfbank
from lib.tools_math import *
def changeRateTo16000(filepath):
if filepath[-4:].lower() =='... | 1,456 |
3,282 | import chainer
import chainer.links as L
import chainer.functions as F
from lda2vec import utils, dirichlet_likelihood
import numpy as np
class NSLDA(chainer.Chain):
def __init__(self, counts, n_docs, n_topics, n_dim, n_vocab, n_samples=5):
factors = np.random.random((n_topics, n_dim)).astype('float32')... | 587 |
318 | package org.apache.maven.plugin.surefire;
/*
* 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 Li... | 1,061 |
312 | /*******************************************************************************
* Copyright (c) 2019 Eclipse RDF4J contributors.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Distribution License v1.0
* which accompanies this distribution, an... | 269 |
606 | <gh_stars>100-1000
package org.arend.ext.core.body;
import org.arend.ext.core.context.CoreParameter;
import org.jetbrains.annotations.NotNull;
import java.util.List;
public interface CoreElimBody extends CoreBody {
@NotNull List<? extends CoreElimClause> getClauses();
/**
* Computes a list of pattern sequenc... | 237 |
703 | <reponame>Tekh-ops/ezEngine
#include <Core/CorePCH.h>
#include <Core/Interfaces/WindWorldModule.h>
#include <Core/World/World.h>
// clang-format off
EZ_BEGIN_DYNAMIC_REFLECTED_TYPE(ezWindWorldModuleInterface, 1, ezRTTINoAllocator)
EZ_END_DYNAMIC_REFLECTED_TYPE;
EZ_BEGIN_STATIC_REFLECTED_ENUM(ezWindStrength, 1)
EZ_... | 969 |
1,031 | <gh_stars>1000+
import torch
import torch.nn as nn
from torch.autograd import Variable
class VAE(nn.Module):
def __init__(self, in_shape, n_latent):
super().__init__()
self.in_shape = in_shape
self.n_latent = n_latent
c,h,w = in_shape
self.z_dim = h//2**2 # receptive field ... | 1,266 |
903 | /****************************************************************************
**
** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
** All rights reserved.
** Contact: Nokia Corporation (<EMAIL>)
**
** This file is part of the QtCore module of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL$
** ... | 2,089 |
472 | <filename>stack/two_stack_in_an_array.py
"""
Problem Statement:
Implementation of twoStacks should use only one array, i.e., both stacks
should use the same array for storing elements.
URL: https://www.geeksforgeeks.org/implement-two-stacks-in-an-array/
"""
class TwoStacks:
def __init__(self, capacity):
s... | 723 |
1,350 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
package com.azure.spring.data.cosmos.repository.integration;
import com.azure.cosmos.models.PartitionKey;
import com.azure.spring.data.cosmos.ReactiveIntegrationTestCollectionManager;
import com.azure.spring.data.cosmos.cor... | 3,884 |
892 | <gh_stars>100-1000
{
"schema_version": "1.2.0",
"id": "GHSA-w423-76hx-v38v",
"modified": "2022-04-29T02:58:47Z",
"published": "2022-04-29T02:58:47Z",
"aliases": [
"CVE-2004-1015"
],
"details": "Buffer overflow in proxyd for Cyrus IMAP Server 2.2.9 and earlier, with the imapmagicplus option enabled, ma... | 589 |
1,056 | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | 4,286 |
1,037 | package com.dk.demo.photoview;
import android.annotation.SuppressLint;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.AdapterView;
import android.widget.AdapterView.... | 929 |
1,126 | <reponame>vorburger/maven-mvnd
/*
* Copyright 2019 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
... | 854 |
1,337 | <gh_stars>1000+
/*
* Copyright (c) 2008-2019 Haulmont.
*
* 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... | 522 |
313 | <reponame>JasonWHowell/azure-cosmos-dotnet-v2
{"status_id":4771254720528384,"text":"Nuzibo ahali wor ebohe ki vaumwes ohona cil cerfomvot ri od ma vo afe epezda serzo valbofab. #onbuuf","user":{"user_id":371139020849152,"name":"Rosa Romero","screen_name":"@vi","created_at":925371878,"followers_count":57,"friends_count... | 196 |
1,767 | <filename>stream/src/main/java/com/annimon/stream/operator/IntTakeWhile.java
package com.annimon.stream.operator;
import com.annimon.stream.function.IntPredicate;
import com.annimon.stream.iterator.PrimitiveIterator;
import java.util.NoSuchElementException;
import org.jetbrains.annotations.NotNull;
public class IntTa... | 738 |
891 | /*
* Copyright (C) 2008-2010 <NAME>
*
* This file is part of the JNR 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
*
* ... | 291 |
515 | package com.bj58.argo.internal;
import com.bj58.argo.ActionResult;
import com.bj58.argo.Argo;
import com.bj58.argo.ArgoController;
import com.bj58.argo.annotations.GET;
import com.bj58.argo.annotations.POST;
import com.bj58.argo.annotations.Path;
import com.bj58.argo.thirdparty.AnnotationUtils;
import com.google.commo... | 1,475 |
320 | #include <metal.hpp>
#include "test.hpp"
#define MATRIX(M, N) \
CHECK((metal::is_invocable<metal::lambda<metal::eval>, VALUE(M)>), (FALSE)); \
CHECK((metal::is_invocable<metal::lambda<metal::eval>, NUMBER(M)>), (TRUE)); \
CHECK((metal::is_invocable<metal::lambda<metal::eval>, PAIR(M)>), (FALSE)); \
CH... | 343 |
554 | package github.tornaco.xposedmoduletest.xposed.submodules;
import android.content.ComponentName;
import com.google.common.collect.Sets;
import java.util.Set;
import de.robv.android.xposed.XposedHelpers;
/**
* Created by guohao4 on 2017/10/31.
* Email: <EMAIL>
*/
public abstract class AndroidSubM... | 469 |
799 | <gh_stars>100-1000
import urllib3
import traceback
import demistomock as demisto
from CommonServerPython import * # pylint: disable=unused-wildcard-import
from CommonServerUserPython import * # noqa
# Disable insecure warnings
urllib3.disable_warnings()
''' CLIENT CLASS '''
class Client(BaseClient):
def live... | 1,397 |
309 | package io.github.unterstein;
import com.binance.api.client.domain.account.AssetBalance;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplica... | 674 |
457 | <filename>third_party/vins-fusion/vins_estimator/src/utility/tic_toc.h<gh_stars>100-1000
/*******************************************************
* Copyright (C) 2019, Aerial Robotics Group, Hong Kong University of Science and Technology
*
* This file is part of VINS.
*
* Licensed under the GNU General Public Li... | 341 |
348 | {"nom":"Saint-Pierre-Brouck","circ":"14ème circonscription","dpt":"Nord","inscrits":758,"abs":381,"votants":377,"blancs":23,"nuls":9,"exp":345,"res":[{"nuance":"LR","nom":"<NAME>","voix":235},{"nuance":"REM","nom":"<NAME>","voix":110}]} | 92 |
3,765 | /*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
// Note: taken from https://github.com/forcedotcom/idecore/blob/3083815933c2d015d03417986f57bd25786d58ce/com.salesforce.ide.apex.core/src/apex/jorje/semantic/common/TestQueryValidators.java
/*
* Copyright 2016 salesforce.com, inc.
... | 1,094 |
6,270 | <gh_stars>1000+
[
{
"type": "feature",
"category": "Polly",
"description": "Amazon Polly adds Mandarin Chinese language support with new female voice - \"Zhiyu\""
}
] | 80 |
416 | package org.simpleflatmapper.map;
import org.simpleflatmapper.jdbc.JdbcColumnKey;
import org.simpleflatmapper.map.mapper.MapperKeyComparator;
import org.simpleflatmapper.jdbc.impl.JdbcColumnKeyMapperKeyComparator;
public enum CacheType {
ARRAY {
@Override
IMapperCache<JdbcColumnKey, Object> newCa... | 632 |
532 | <filename>app/web/__init__.py<gh_stars>100-1000
#coding:utf-8
from flask import Blueprint
web = Blueprint("web", __name__)
import app.web.views
from app.models import user, book
| 64 |
14,668 | // 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.
#include "dbus/util.h"
namespace dbus {
std::string GetAbsoluteMemberName(const std::string& interface_name,
const std... | 148 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.