max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
625 | #include "side_effect.h"
#include "sir/util/irtools.h"
#include "sir/util/operator.h"
namespace seq {
namespace ir {
namespace analyze {
namespace module {
namespace {
struct VarUseAnalyzer : public util::Operator {
std::unordered_map<id_t, long> varCounts;
std::unordered_map<id_t, long> varAssignCounts;
void ... | 3,030 |
432 | <reponame>lambdaxymox/DragonFlyBSD
/* $NetBSD: hack.monst.c,v 1.7 2011/08/16 09:26:22 christos Exp $ */
/*
* Copyright (c) 1985, Stichting Centrum voor Wiskunde en Informatica,
* Amsterdam
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted ... | 2,404 |
321 | <filename>apis/api-core/api-core-common/src/main/java/org/hoteia/qalingo/core/dao/DeliveryMethodDao.java<gh_stars>100-1000
/**
* Most of the code in the Qalingo project is copyrighted Hoteia and licensed
* under the Apache License Version 2.0 (release version 0.8.0)
* http://www.apache.org/licenses/LICENS... | 2,032 |
1,686 | // Copyright (c) 2021 <NAME>. All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
//
// * Redistributions of source code must retain the above copyright
// notice, this list of conditions and t... | 2,614 |
390 | <filename>genrl/agents/bandits/contextual/base.py<gh_stars>100-1000
from typing import Optional
import torch
from genrl.core import Bandit, BanditAgent
class DCBAgent(BanditAgent):
"""Base class for deep contextual bandit solving agents
Args:
bandit (gennav.deep.bandit.data_bandits.DataBasedBandit)... | 897 |
456 | <reponame>pafri/DJV<gh_stars>100-1000
// SPDX-License-Identifier: BSD-3-Clause
// Copyright (c) 2004-2020 <NAME>
// All rights reserved.
namespace djv
{
namespace System
{
inline const std::weak_ptr<Context>& IObject::getContext() const
{
return _context;
}
inline c... | 2,443 |
1,805 | <reponame>qiuhere/Bench
#include <gtest/gtest.h>
#include "Snap.h"
int BuildCapacityNetwork(const TStr& InFNm, PNEANet &Net, const int& SrcColId = 0, const int& DstColId = 1, const int& CapColId = 2) {
TSsParser Ss(InFNm, ssfWhiteSep, true, true, true);
TRnd Random;
Net.Clr();
Net = TNEANet::New();
int SrcN... | 729 |
353 | """
This global flag controls whether to assign new tensors to the parameters
instead of changing the existing parameters in-place when converting an `nn.Module`
using the following methods:
1. `module.cuda()` / `.cpu()` (for moving `module` between devices)
2. `module.float()` / `.double()` / `.half()` (for conve... | 276 |
794 |
#ifndef __HelloCpp__RootWindow__
#define __HelloCpp__RootWindow__
#include <iostream>
#include "CrossApp.h"
USING_NS_CC;
class RootWindow: public CAWindow
{
public:
static RootWindow* getInstance();
static void destroyInstance();
RootWindow();
virtual ~RootWindow();
... | 178 |
304 | <reponame>NoahFetz/CloudNet-v3<filename>cloudnet-modules/cloudnet-bridge/src/main/java/de/dytanic/cloudnet/ext/bridge/BridgeConstants.java<gh_stars>100-1000
/*
* Copyright 2019-2021 CloudNetService team & contributors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file ex... | 763 |
2,180 | /*
* This file is part of the Heritrix web crawler (crawler.archive.org).
*
* Licensed to the Internet Archive (IA) by one or more individual
* contributors.
*
* The IA licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance ... | 1,491 |
14,793 | package me.chanjar.weixin.cp.api.impl;
import com.google.common.collect.ImmutableMap;
import com.google.gson.reflect.TypeToken;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import me.chanjar.weixin.common.error.WxErrorException;
import me.chanjar.weixin.common.util.json.GsonParser;
import m... | 1,217 |
575 | // Copyright 2016 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... | 710 |
10,225 | package io.quarkus.it.cache;
import javax.enterprise.context.ApplicationScoped;
import javax.ws.rs.DELETE;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import org.jboss.resteasy.annotations.jaxrs.PathParam;
import org.jboss.resteasy.annotations.jaxrs.QueryParam;
@ApplicationScoped
@Path("sunrise")
public class S... | 423 |
327 | <reponame>jtravee/neuvector<gh_stars>100-1000
#ifndef _URCU_ARCH_UATOMIC_X86_H
#define _URCU_ARCH_UATOMIC_X86_H
/*
* Copyright (c) 1991-1994 by Xerox Corporation. All rights reserved.
* Copyright (c) 1996-1999 by Silicon Graphics. All rights reserved.
* Copyright (c) 1999-2004 Hewlett-Packard Development Company... | 6,379 |
1,056 | <filename>ide/derby/test/unit/src/org/netbeans/modules/derby/test/TestBase.java<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 ... | 985 |
702 | <filename>bin/update_dependencies.py
#!/usr/bin/env python3
# This file supports 3.6+
import os
import shutil
import subprocess
import sys
from pathlib import Path
DIR = Path(__file__).parent.resolve()
RESOURCES = DIR.parent / "cibuildwheel/resources"
python_version = "".join(str(v) for v in sys.version_info[:2])
e... | 404 |
1,296 | <reponame>shuryanc/sdk<gh_stars>1000+
/**
* @file MAccountPurchase.cpp
* @brief Get details about a MEGA purchase.
*
* (c) 2013-2014 by Mega Limited, Auckland, New Zealand
*
* This file is part of the MEGA SDK - Client Access Engine.
*
* Applications using the MEGA API must present a valid application key
* and comply ... | 714 |
660 | /*
* Copyright (c) 2019, Intel Corporation
*
* 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, publis... | 23,393 |
432 | package us.parr.bookish.model;
public class InlineEquation extends InlineImage {
public String eqn;
public float height, depth;
public int descentPercentage;
public int depthRounded;
public float depthTweaked;
public InlineEquation(String imageFilename, String eqn, float height, float depth) {
super(imageFile... | 249 |
620 | <gh_stars>100-1000
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import argparse
import os.path as osp
from tqdm import tqdm
from utils import (dump_data, read_meta, write_meta, build_knns,
filter_clusters, labels2clusters, clusters2labels,
BasicDataset, Timer)
from pro... | 3,272 |
496 | /*
* Licensed to Elasticsearch B.V. under one or more contributor
* license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright
* ownership. Elasticsearch B.V. licenses this file to you under
* the Apache License, Version 2.0 (the "License"); you may
* not u... | 1,816 |
1,143 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# tests/find.py
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# * Redistributions of source code must retain the above copyright
# notice, this list of condi... | 886 |
778 | package org.aion.log;
import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.times;
import static org.mockito.Mockito.verify;
import static org.mockito.Mockito.when;
import org.junit.Before;
import org.junit.Test;
import org.mockito.Mock;
import org.mockito.MockitoAnnotations;
import org.slf4j.Logg... | 19,753 |
563 | <reponame>kdima001/mesh
package com.gentics.mesh.core.rest.schema;
import com.gentics.mesh.core.rest.microschema.MicroschemaVersionModel;
/**
* A schema storage is a store which hold schemas. Schema storages are used to quickly load a schema in order to deserialize or serialize a node. TODO: add
* version
*/
publi... | 984 |
338 | package fr.lteconsulting.pomexplorer;
public interface Log
{
void html( String log );
}
| 33 |
2,220 | from abc import ABCMeta, abstractmethod
class Rebalance(object):
"""
Interface to a generic list of system logic and
trade order rebalance timestamps.
"""
__metaclass__ = ABCMeta
@abstractmethod
def output_rebalances(self):
raise NotImplementedError(
"Should implement... | 133 |
1,546 | #ifndef __eglplatform_h_
#define __eglplatform_h_
/*
** Copyright 2007-2020 The Khronos Group Inc.
** SPDX-License-Identifier: Apache-2.0
*/
/* Platform-specific types and definitions for egl.h
*
* Adopters may modify khrplatform.h and this file to suit their platform.
* You are encouraged to submit all modificati... | 1,942 |
841 | <gh_stars>100-1000
package org.jboss.resteasy.embedded.test.core.basic.resource;
import jakarta.ws.rs.GET;
import jakarta.ws.rs.Path;
@Path("/singletons")
public class ApplicationTestSingletonB {
@Path("b")
@GET
public String get() {
return "b";
}
}
| 111 |
4,124 | from deep_daze.deep_daze import DeepDaze, Imagine
| 17 |
475 | <reponame>islandempty/zfoo
/*
* Copyright (C) 2020 The zfoo 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... | 492 |
778 | package org.aion.p2p;
import java.util.HashSet;
import java.util.Set;
/** @author chris */
public class Ver {
public static final short V0 = 0;
/** New protocol version supporting fast sync. */
public static final short V1 = 1;
// for test
public static final short VTEST = Byte.MAX_VALUE;
... | 367 |
513 | <gh_stars>100-1000
package com.zmops.iot.message.config;
/**
* @author nantian created at 2021/9/26 23:15
*/
public interface Event {
/**
* 聊天事件
*/
String CHAT = "chat";
/**
* 广播消息
*/
String BROADCAST = "broadcast";
/**
* 群聊
*/
String GROUP = "group";
/**... | 202 |
1,405 | <reponame>jarekankowski/pegasus_spyware
package com.lenovo.safecenter.adapter;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.ImageView;
import android.widget.TextView;
import com.leno... | 1,902 |
1,444 |
package mage.cards.r;
import java.util.UUID;
import mage.abilities.Ability;
import mage.abilities.common.SimpleActivatedAbility;
import mage.abilities.costs.common.TapSourceCost;
import mage.abilities.costs.mana.GenericManaCost;
import mage.abilities.effects.common.DamageTargetEffect;
import mage.cards.CardImpl;
impo... | 385 |
879 | package org.zstack.externalservice.cronjob;
import org.springframework.beans.factory.annotation.Autowired;
import org.zstack.core.externalservice.ExternalService;
import org.zstack.core.externalservice.ExternalServiceFactory;
import org.zstack.core.externalservice.ExternalServiceManager;
import org.zstack.core.externa... | 265 |
1,350 | <filename>sdk/resourcemanagerhybrid/azure-resourcemanager-resources/src/main/java/com/azure/resourcemanager/resources/models/WhatIfOperationResult.java
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
package com.azure.resourcemanager.resources.models;
import com.azure.c... | 338 |
372 | <reponame>wuyinlei/VideoDemo<filename>library/src/main/java/org/sunger/net/widget/SolidToast.java
package org.sunger.net.widget;
import android.app.Activity;
import android.content.Context;
import android.graphics.Color;
import android.os.Handler;
import android.text.TextUtils;
import android.view.Gravity;
import andr... | 4,252 |
2,519 | // This file is licensed under the Elastic License 2.0. Copyright 2021-present, StarRocks Limited.
package com.starrocks.sql.optimizer.rule.transformation;
import com.google.common.collect.Lists;
import com.starrocks.sql.optimizer.OptExpression;
import com.starrocks.sql.optimizer.OptimizerContext;
import com.starrock... | 740 |
3,897 | /*******************************************************************************
* DISCLAIMER
* This software is supplied by Renesas Electronics Corporation and is only
* intended for use with Renesas products. No other uses are authorized. This
* software is owned by Renesas Electronics Corporation and is protected un... | 11,723 |
402 | #pragma once
#define MAX(a, b) ({ \
__typeof__(a) __max_tmp_a = (a); \
__typeof__(a) __max_tmp_b = (b); \
(__max_tmp_a >= __max_tmp_b ? __max_tmp_a : __max_tmp_b); \
})
#define MIN(a, b) ({ \
__typeof__(a) __min_tmp_a = (a); \
__typeof__(a) __min_tmp_b = (b); \
(__min_tmp_a <= __min_tmp_b ? __min_tmp_a : ... | 178 |
335 | {
"word": "Parachute",
"definitions": [
"A cloth canopy which fills with air and allows a person or heavy object attached to it to descend slowly when dropped from an aircraft, or which is released from the rear of an aircraft on landing to act as a brake."
],
"parts-of-speech": "Noun"
} | 97 |
5,169 | <filename>Specs/HJRSeparatableView/1.1.0/HJRSeparatableView.podspec.json
{
"name": "HJRSeparatableView",
"version": "1.1.0",
"summary": "An extended view with a single line separator like UITableViewCell.",
"homepage": "https://github.com/hedjirog/HJRSeparatableView",
"screenshots": "https://raw.github.com/he... | 306 |
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 ... | 2,255 |
526 | /* SPDX-License-Identifier: Apache-2.0 */
/* Copyright Contributors to the ODPi Egeria project. */
package org.odpi.openmetadata.commonservices.ocf.metadatamanagement.rest;
import com.fasterxml.jackson.databind.ObjectMapper;
import org.testng.annotations.Test;
import static org.testng.Assert.assertFalse;
import stati... | 1,769 |
190,993 | <gh_stars>1000+
/* Copyright 2015 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 app... | 2,096 |
648 | <reponame>swrobel/fhir
{"resourceType":"CodeSystem","id":"match-grade","meta":{"lastUpdated":"2019-11-01T09:29:23.356+11:00"},"url":"http://terminology.hl7.org/CodeSystem/match-grade","identifier":[{"system":"urn:ietf:rfc:3986","value":"urn:oid:2.16.840.1.113883.4.642.4.1289"}],"version":"4.0.1","name":"MatchGrade","ti... | 438 |
14,668 | // Copyright 2020 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "third_party/blink/renderer/modules/webtransport/test_utils.h"
#include "base/check.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "... | 1,825 |
1,043 | <filename>SwiftExample/Pods/Headers/Private/KZPlayground/KZPPlaygroundViewController.h
//
// Created by <NAME>(http://twitter.com/merowing_) on 19/10/14.
//
//
//
@import Foundation;
@import UIKit;
@interface KZPPlaygroundViewController : UIViewController
@property(nonatomic, assign) BOOL timelineHidden;
+ (instan... | 137 |
12,278 | <gh_stars>1000+
// Copyright <NAME> 2005.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
#ifndef BOOST_PARAMETER_AUX_PREPROCESSOR_SEQ_ENUM_HPP
#define BOOST_PARAMETER_AUX_PREPROCESSOR_SEQ_ENUM_HPP
#include <bo... | 396 |
3,200 | <filename>mindspore/lite/src/common/config_file.h<gh_stars>1000+
/**
* Copyright 2021 Huawei Technologies Co., Ltd
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache... | 588 |
38,247 | <reponame>Linuxinet/PayloadsAllTheThings
#! /usr/bin/env python2
#Jenkins Groovy XML RCE (CVE-2016-0792)
#Note: Although this is listed as a pre-auth RCE, during my testing it only worked if authentication was disabled in Jenkins
#Made with <3 by @byt3bl33d3r
from __future__ import print_function
import requests
from... | 1,106 |
407 | package com.alibaba.tesla.appmanager.server.event.componentpackage;
import com.alibaba.tesla.appmanager.common.enums.KanikoBuildEventEnum;
/**
* @ClassName: AddKanikoPodEvent
* @Author: dyj
* @DATE: 2021-07-14
* @Description:
**/
public class FailedKanikoPodEvent extends KanikoPodEvent {
public FailedKanikoP... | 170 |
407 | package com.alibaba.tesla.authproxy.model;
import lombok.Data;
import java.io.Serializable;
import java.util.Date;
@Data
public class TeslaServiceExtAppDO implements Serializable {
private Integer id;
private String name;
private String secret;
private String comments;
private Integer creator... | 150 |
839 | /**
* 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 m... | 936 |
14,668 | <reponame>chromium/chromium
// Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/page_load_metrics/observers/from_gws_page_load_metrics_observer.h"
#include <string>
#include "base/... | 11,071 |
335 | {
"word": "Beachfront",
"definitions": [
"The part of a coastal town next to and directly facing the sea; the seafront."
],
"parts-of-speech": "Noun"
} | 71 |
1,139 | package com.journaldev.androidcanvasbasics;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.widget.LinearLayout;
import android.widget.RelativeLayout;
public class MainActivity extends AppCompatActivity {
LinearLayout linearLayout;
@Override
protected void onCre... | 205 |
8,148 | #pragma once
#include "../dxvk_device.h"
#include "dxvk_hud_item.h"
#include "dxvk_hud_renderer.h"
namespace dxvk::hud {
/**
* \brief HUD uniform data
* Shader data for the HUD.
*/
struct HudUniformData {
VkExtent2D surfaceSize;
};
/**
* \brief DXVK HUD
*
* Can be used by the pre... | 1,062 |
558 | /* SPDX-License-Identifier: Apache-2.0 */
/*
* Copyright (C) 2015-2017,2021 Micron Technology, Inc. All rights reserved.
*/
#ifndef HSE_UTEST_COMMON_H
#define HSE_UTEST_COMMON_H
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <assert.h>
#define MTF_PAGE_S... | 1,551 |
945 | <reponame>RYH61/iotdb
/*
* 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 (t... | 1,463 |
373 | package com.dianrong.common.uniauth.common.server;
import org.springframework.web.servlet.LocaleResolver;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.Locale;
/**
* . uniauth local resolver.
*
* @author wanglin
*/
public class UniauthLocaleResolver... | 214 |
617 | // Copyright (c) Open Enclave SDK contributors.
// Licensed under the MIT License.
#include <openenclave/bits/defs.h>
#include <openenclave/corelibc/bits/defs.h>
#include <stdlib.h>
OE_NO_RETURN void exit(int code)
{
_Exit(code);
}
| 91 |
347 | <reponame>hbraha/ovirt-engine<gh_stars>100-1000
package org.ovirt.engine.core.common.businessentities;
/**
* Status of host kdump flow
*/
public enum KdumpFlowStatus {
/**
* Kdump flow started
*/
STARTED,
/**
* Kdump flow is currently running
*/
DUMPING,
/**
* Kdump flo... | 369 |
400 | /*
* priority_buffer_queue.h - priority buffer queue
*
* Copyright (c) 2015 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
*
* http://www.apache.org/licenses... | 652 |
877 | <filename>checker/tests/mustcall/TryWithResourcesCrash.java<gh_stars>100-1000
// A test case for a crash while checking hfds.
import java.io.Closeable;
import java.io.DataOutputStream;
import java.io.IOException;
import java.io.OutputStream;
class TryWithResourcesCrash {
void test(FileSystem fs, byte[] bytes, Strin... | 287 |
474 | <gh_stars>100-1000
from .execution_statistics_viewer import ExecutionStatisticsViewer
| 25 |
372 | <gh_stars>100-1000
/*
* DISTRHO Plugin Framework (DPF)
* Copyright (C) 2012-2021 <NAME> <<EMAIL>>
*
* Permission to use, copy, modify, and/or distribute this software for any purpose with
* or without fee is hereby granted, provided that the above copyright notice and this
* permission notice appear in all copies... | 1,488 |
331 | package com.lauzy.freedom.data.local.data.impl;
import android.content.Context;
import com.lauzy.freedom.data.local.data.CacheRepo;
/**
* Desc : 缓存
* Author : Lauzy
* Date : 2018/4/3
* Blog : http://www.jianshu.com/u/e76853f863a9
* Email : <EMAIL>
*/
public class CacheRepoImpl extends SharedPreferenceDataRepo ... | 308 |
14,668 | // Copyright 2019 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef UI_OZONE_PLATFORM_WAYLAND_TEST_TEST_DATA_DEVICE_MANAGER_H_
#define UI_OZONE_PLATFORM_WAYLAND_TEST_TEST_DATA_DEVICE_MANAGER_H_
#include <wayland-s... | 456 |
575 | <reponame>sarang-apps/darshan_browser
// Copyright 2019 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ash/public/cpp/split_view_test_api.h"
#include "ash/shell.h"
#include "ash/wm/splitview/split_view_contro... | 409 |
14,668 | <reponame>chromium/chromium
// 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 "chrome/browser/page_load_metrics/observers/data_saver_site_breakdown_metrics_observer.h"
#include "base/metrics/fie... | 2,949 |
381 | <reponame>joyrun/ActivityRouter
package com.grouter.compiler;
import com.squareup.javapoet.AnnotationSpec;
import com.squareup.javapoet.ClassName;
import com.squareup.javapoet.JavaFile;
import com.squareup.javapoet.MethodSpec;
import com.squareup.javapoet.ParameterizedTypeName;
import com.squareup.javapoet.TypeName;
i... | 1,360 |
530 | import pytest
from tartiflette.language.ast import ObjectTypeExtensionNode
def test_objecttypeextensionnode__init__():
object_type_extension_node = ObjectTypeExtensionNode(
name="objectTypeExtensionName",
interfaces="objectTypeExtensionInterfaces",
directives="objectTypeExtensionDirective... | 3,043 |
587 | <gh_stars>100-1000
/*
* Copyright 2012-2014 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
*
* Unles... | 342 |
2,151 | // 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 "chrome/browser/devtools/chrome_devtools_manager_delegate.h"
#include <utility>
#include "base/strings/utf_string_conversions.h"
#include "buil... | 2,562 |
809 | <filename>lenskit-core/src/test/java/org/lenskit/data/entities/EntityDefaultsTest.java
/*
* LensKit, an open-source toolkit for recommender systems.
* Copyright 2014-2017 LensKit contributors (see CONTRIBUTORS.md)
* Copyright 2010-2014 Regents of the University of Minnesota
*
* Permission is hereby granted, free o... | 1,020 |
743 | <reponame>davidpete9/guacamole-client<filename>extensions/guacamole-auth-jdbc/modules/guacamole-auth-jdbc-postgresql/src/main/java/org/apache/guacamole/auth/postgresql/conf/PostgreSQLSSLMode.java<gh_stars>100-1000
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements... | 1,024 |
1,338 | <reponame>Kirishikesan/haiku
#ifndef _HAIKU_BUILD_COMPATIBILITY_FREEBSD_SYS_STAT
#define _HAIKU_BUILD_COMPATIBILITY_FREEBSD_SYS_STAT
#include_next <sys/stat.h>
#include <sys/cdefs.h>
#ifndef UTIME_NOW
# define UTIME_NOW (-1)
# define UTIME_OMIT (-2)
__BEGIN_DECLS
/* assume that futimens() and utimensat() aren't... | 327 |
4,036 | <gh_stars>1000+
char *getenv(const char *name);
void sink(const char *sinkparam); // $ ast,ir=global1 ast,ir=global2
void throughLocal() {
char * local = getenv("VAR");
sink(local);
}
char * global1 = 0;
void readWriteGlobal1() {
sink(global1); // $ ast,ir=global1
global1 = getenv("VAR");
}
static c... | 185 |
4,233 | {
"name": "babel-preset-carbon",
"private": true,
"version": "0.1.0",
"license": "Apache-2.0",
"main": "index.js",
"repository": {
"type": "git",
"url": "https://github.com/carbon-design-system/carbon.git",
"directory": "config/babel-preset-carbon"
},
"bugs": "https://github.com/carbon-desig... | 418 |
380 | <gh_stars>100-1000
/**
* Author: <NAME>
* Date: 21 July 2021 (Wednesday)
*/
import java.util.*;
public class ImmediateSmallerThanX{
public static void main(String args[]){
Solution s = new Solution();
int arr[] = {4,67,13,12,15};
System.out.println(s.immediateSmaller(arr,arr.length,16));
}
}
class S... | 297 |
12,718 | /* This file is automatically generated.
It defines macros to allow user program to find the shared
library files which come as part of GNU libc. */
#ifndef __GNU_LIB_NAMES_H
#define __GNU_LIB_NAMES_H 1
#include <bits/wordsize.h>
#if __WORDSIZE == 32 && defined __riscv_float_abi_soft
# include <gnu/lib-names-i... | 255 |
325 | <filename>google_play_scraper/exceptions.py
class GooglePlayScraperException(Exception):
pass
class NotFoundError(GooglePlayScraperException):
pass
class ExtraHTTPError(GooglePlayScraperException):
pass
| 66 |
897 | <filename>C/math/reverse_number.c<gh_stars>100-1000
// C program to reverse a number.
#include <stdio.h>
// Function to reverse a number.
int reverse(int num)
{
int rev = 0;
while (num > 0)
{
rev = rev * 10;
//Extract the last digit of the number.
int rem = num % 10;
rev = r... | 337 |
2,205 | <reponame>kiaplayer/mcrouter
/*
* 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 "mcrouter/routes/McRouteHandleProvider.h"
#include <mcrouter/routes/FailoverRoute.h>
namesp... | 250 |
500 | package com.zulip.android.widget;
import android.app.PendingIntent;
import android.appwidget.AppWidgetManager;
import android.appwidget.AppWidgetProvider;
import android.content.ComponentName;
import android.content.Context;
import android.content.Intent;
import android.net.Uri;
import android.text.TextUtils;... | 1,660 |
335 | {
"word": "Ionic",
"definitions": [
"The Ionic order of architecture.",
"The ancient Greek dialect used in Ionia."
],
"parts-of-speech": "Noun"
} | 77 |
1,639 | <filename>packages/@jsii/java-runtime/project/src/main/java/software/amazon/jsii/JsiiEngine.java
package software.amazon.jsii;
import software.amazon.jsii.api.Callback;
import software.amazon.jsii.api.GetRequest;
import software.amazon.jsii.api.InvokeRequest;
import software.amazon.jsii.api.JsiiOverride;
import softwa... | 11,326 |
435 | <reponame>Montana/datawave
package datawave.query.index.lookup;
import com.google.common.collect.HashMultimap;
import com.google.common.collect.Multimap;
import com.google.common.collect.Sets;
import datawave.accumulo.inmemory.InMemoryInstance;
import datawave.data.type.LcNoDiacriticsType;
import datawave.data.type.Ty... | 69,734 |
378 | /**
* 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... | 790 |
363 | <gh_stars>100-1000
# -*- encoding: utf-8 -*-
"""
HubbleStack Nova module for auditing installed packages.
Supports both blacklisting and whitelisting pacakges. Blacklisted packages
must not be installed. Whitelisted packages must be installed, with options for
requiring a specific version or a minimum or maximum versi... | 6,384 |
766 | <reponame>data-man/libfsm<filename>src/libfsm/minimise.c
/*
* Copyright 2020 <NAME>
*
* See LICENCE for the full copyright terms.
*/
#include <assert.h>
#include <stddef.h>
#include <stdlib.h>
#include <string.h>
#include <stdint.h>
#include <stdio.h>
#include <fsm/fsm.h>
#include <fsm/pred.h>
#include <fsm/walk... | 10,387 |
1,025 | <gh_stars>1000+
//==================================================================================
// Copyright (c) 2016 , Advanced Micro Devices, Inc. All rights reserved.
//
/// \author AMD Developer Tools Team
/// \file pdRemoteProcessDebugger.cpp
///
//============================================================... | 33,002 |
3,765 | <gh_stars>1000+
/**
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.plsql.ast;
import java.util.List;
import org.junit.Assert;
import org.junit.Test;
import net.sourceforge.pmd.lang.plsql.AbstractPLSQLParserTst;
public class ASTCompoundCondition... | 286 |
460 | <filename>trunk/win/UploadMessage.py
#!/usr/bin/python
# Copyright 2011 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org... | 777 |
320 | <reponame>trathborne/nvchecker
# MIT licensed
# Copyright (c) 2020-2021 lilydjwg <<EMAIL>>, et al.
# Copyright (c) 2017 <NAME> <<EMAIL>>, et al.
from flaky import flaky
import pytest
pytestmark = [pytest.mark.asyncio, pytest.mark.needs_net]
@flaky(max_runs=10)
async def test_apt(get_version):
assert await get_ver... | 793 |
340 | #!/bin/python3
import sys
def is_kaprekar(num):
if num < 4:
if num == 1:
return True
else:
return False
num_sq = pow(num, 2)
num_sq_str = str(num_sq)
left = num_sq_str[:len(num_sq_str)//2]
right = num_sq_str[len(num_sq_str)//2:]
#print("left = ... | 430 |
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.recoveryservicesbackup.models;
import com.azure.resourcemanager.recoveryservicesbackup.fluent.models.OperationStatusInner;
impor... | 588 |
1,338 | <reponame>Kirishikesan/haiku<gh_stars>1000+
#include "PrintTestView.hpp"
PrintTestView::PrintTestView(BRect frame)
: Inherited(frame, "", B_FOLLOW_ALL, B_WILL_DRAW | B_FULL_UPDATE_ON_RESIZE)
{
}
void PrintTestView::Draw(BRect updateRect)
{
StrokeRoundRect(Bounds().InsetByCopy(20,20), 10, 10);
BFont font(be_bold_fo... | 232 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.