max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
14,668 | <reponame>chromium/chromium<gh_stars>1000+
// 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 CHROME_BROWSER_UI_VIEWS_PASSWORDS_PASSWORD_GENERATION_POPUP_VIEW_VIEWS_H_
#define CHROME_BROWSER_UI_VIE... | 756 |
322 | <gh_stars>100-1000
[
{
"type": "org.apache.eagle.alert.engine.publisher.impl.AlertKafkaPublisher",
"name": "kafka-testAlertStream",
"policyIds": [
"state_check_latency"
],
"dedupIntervalMin": "PT1M",
"properties": {
"kafka_broker": "localhost:9092",
"topic": "latency_state_ka... | 375 |
768 | # coding=utf-8
# Copyright 2021 DeepMind Technologies Limited.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applic... | 1,856 |
855 | <filename>kopf/_cogs/helpers/hostnames.py
import ipaddress
import socket
from typing import List, Optional, Tuple
def get_descriptive_hostname() -> str:
"""
Look for non-numeric hostnames of the machine where the operator runs.
The purpose is the host identification, not the actual host accessability.
... | 944 |
12,718 | <reponame>Bhuvanesh1208/ruby2.6.1
/**
* This file is part of the mingw-w64 runtime package.
* No warranty is given; refer to the file DISCLAIMER.PD within this package.
*/
#include <winapifamily.h>
#include <rpc.h>
#include <rpcndr.h>
#ifndef _OBJBASE_H_
#define _OBJBASE_H_
#include <pshpack8.h>
#include <combase... | 3,268 |
335 | {
"word": "Attach",
"definitions": [
"Join or fasten (something) to something else.",
"Add or fasten (a related document) to another, or to an email.",
"Include (a condition) as part of an agreement.",
"Accompany (a person or group) without being invited.",
"Appoint (some... | 205 |
5,766 | <reponame>astlin/poco<gh_stars>1000+
//
// ApacheRequestHandlerFactory.cpp
//
// Copyright (c) 2006-2011, Applied Informatics Software Engineering GmbH.
// and Contributors.
//
// SPDX-License-Identifier: BSL-1.0
//
#include "ApacheRequestHandlerFactory.h"
#include "ApacheConnector.h"
#include "Poco/Net/HTTPRequestHa... | 981 |
578 | <filename>src/backend/commons/common/src/main/java/com/tencent/bk/job/common/util/file/CharsetDetectHelper.java
/*
* Tencent is pleased to support the open source community by making BK-JOB蓝鲸智云作业平台 available.
*
* Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
*
* BK-JOB蓝鲸智云作业平台 is lic... | 1,720 |
371 |
# 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 not use... | 2,309 |
361 | import copy
import torch
import os.path as osp
import GCL.losses as L
import GCL.augmentors as A
import torch.nn.functional as F
import torch_geometric.transforms as T
from tqdm import tqdm
from torch.optim import Adam
from GCL.eval import get_split, LREvaluator
from GCL.models import BootstrapContrast
from torch_geom... | 2,510 |
190,993 | /* Copyright 2021 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... | 978 |
14,668 | // 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.
#ifndef NET_SSL_SSL_KEY_LOGGER_H_
#define NET_SSL_SSL_KEY_LOGGER_H_
#include <memory>
#include <string>
#include "base/no_destructor.h"
#include "net/ba... | 671 |
1,738 | <gh_stars>1000+
/*
* 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 li... | 324 |
1,138 | #!/usr/bin/python3
import os
import re
import glob
import ssg.build_yaml
import ssg.constants
import tables.table_renderer
class HtmlOutput(tables.table_renderer.TableHtmlOutput):
TEMPLATE_NAME = "tables/reference_tables_template.html"
def __init__(self, * args, ** kwargs):
super(HtmlOutput, self)... | 842 |
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,745 |
3,236 | <reponame>liping12345/NewbieGuide<gh_stars>1000+
package com.app.hubert.guide.util;
import android.app.Activity;
import android.content.Context;
import android.content.res.Resources;
import android.graphics.Point;
import android.os.Build;
import android.util.DisplayMetrics;
import android.view.Display;
import android.... | 1,449 |
344 | <filename>FXyz-Samples/src/main/java/org/fxyz3d/samples/FXyzSample.java<gh_stars>100-1000
/**
* FXyzSample.java
*
* Copyright (c) 2013-2016, F(X)yz
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions ar... | 1,859 |
2,728 | //
// traits/static_require.hpp
// ~~~~~~~~~~~~~~~~~~~~~~~~~
//
// Copyright (c) 2003-2021 <NAME> (chris at kohlhoff dot com)
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
#ifndef BOOST_ASIO_TRAITS_STATIC_R... | 1,291 |
1,382 | <gh_stars>1000+
/* Simple Plugin API
*
* Copyright © 2018 <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... | 2,158 |
348 | {"nom":"Prédefin","circ":"6ème circonscription","dpt":"Pas-de-Calais","inscrits":143,"abs":66,"votants":77,"blancs":2,"nuls":4,"exp":71,"res":[{"nuance":"REM","nom":"<NAME>","voix":52},{"nuance":"FN","nom":"<NAME>","voix":19}]} | 95 |
8,772 | package org.apereo.cas.configuration.model.support.geo.googlemaps;
import org.apereo.cas.configuration.model.support.geo.BaseGeoLocationProperties;
import org.apereo.cas.configuration.support.DurationCapable;
import org.apereo.cas.configuration.support.RequiredProperty;
import org.apereo.cas.configuration.support.Requ... | 474 |
739 | <reponame>takipsizad/pyjs<gh_stars>100-1000
from pyjamas import DOM
class DragEvent(object):
"""
emulates a drag event.
http://dev.w3.org/html5/spec/dnd.html#dragevent
"""
relatedTarget = None
detail = 0
returnValue = True
def __init__(self, evt, type, dataTransfer, target=None):
... | 1,291 |
335 | {
"word": "Nocturne",
"definitions": [
"A short composition of a romantic nature, typically for piano.",
"A picture of a night scene."
],
"parts-of-speech": "Noun"
} | 82 |
2,199 | <gh_stars>1000+
/*******************************************************************************
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
********************... | 163 |
348 | {"nom":"Agey","circ":"4ème circonscription","dpt":"Côte-d'Or","inscrits":251,"abs":128,"votants":123,"blancs":14,"nuls":6,"exp":103,"res":[{"nuance":"REM","nom":"<NAME>","voix":70},{"nuance":"LR","nom":"M. <NAME>","voix":33}]} | 94 |
315 | <filename>java/pgv-java-stub/src/main/java/io/envoyproxy/pgv/ValidatorIndex.java
package io.envoyproxy.pgv;
/**
* {@code ValidatorIndex} defines the entry point for finding {@link Validator} instances for a given type.
*/
@FunctionalInterface
public interface ValidatorIndex {
/**
* Returns the validator for... | 476 |
818 | <filename>build/python/examples/ClassificationModulesExamples/adaboost_classifier_example.py<gh_stars>100-1000
import GRT
import sys
import argparse
import inspect
def main():
# Parse the training data filename from the command line
parser = argparse.ArgumentParser(description='Process some data.')
parser.a... | 1,066 |
49,742 | package com.thealgorithms.maths;
import java.util.*;
/*
* @author <NAME>
* Determinant of Matrix Wikipedia link : https://en.wikipedia.org/wiki/Determinant
*/
public class DeterminantOfMatrix {
// Determinant calculator
//@return determinant of the input matrix
static int determinant(int a[][], int n) ... | 965 |
1,350 | <reponame>LinuxDoku/pdf2json
[{"id":"TPNAME","type":"alpha","calc":true,"value":""},{"id":"TPFNAM","type":"alpha","calc":true,"value":""},{"id":"TPINIT","type":"alpha","calc":true,"value":""},{"id":"TPSSN","type":"ssn","calc":true,"value":""},{"id":"SPNAME","type":"alpha","calc":true,"value":""},{"id":"SPFNAM","type":"... | 1,163 |
379 | package cc.bitky.clustermanage.utils;
public interface TcpSendListener {
void send();
}
| 32 |
475 | <reponame>islandempty/zfoo
package com.zfoo.net.base.netty.udpserver;
import com.zfoo.util.ThreadUtils;
import io.netty.bootstrap.Bootstrap;
import io.netty.channel.ChannelFuture;
import io.netty.channel.ChannelOption;
import io.netty.channel.EventLoopGroup;
import io.netty.channel.nio.NioEventLoopGroup;
import io.net... | 710 |
854 | __________________________________________________________________________________________________
sample 0 ms submission
class Solution {
private:
int get_last(int &x) {
int n = x % 2;
x /= 2;
return n;
}
public:
int minFlips(int a, int b, int c) {
int count = 0;
int c_last, b_last, a_last;
while (c != ... | 652 |
2,519 | <reponame>sparklezzz/starrocks
// This file is licensed under the Elastic License 2.0. Copyright 2021-present, StarRocks Limited.
#pragma once
#include "exec/pipeline/operator.h"
#include "exec/pipeline/set/except_context.h"
#include "exec/pipeline/source_operator.h"
namespace starrocks::pipeline {
// ExceptOutputS... | 1,019 |
1,720 | #include <cstring>
#include <stdio.h>
#include "../MIPS.h"
#include "MA_EE.h"
using namespace MIPSReflection;
void CMA_EE::ReflOpRdRt(INSTRUCTION* pInstr, CMIPS* pCtx, uint32 nAddress, uint32 nOpcode, char* sText, unsigned int nCount)
{
uint8 nRT = static_cast<uint8>((nOpcode >> 16) & 0x001F);
uint8 nRD = static_ca... | 11,092 |
369 | /** @file sys_startup.c
* @brief Startup Source File
* @date 05.November.2010
* @version 1.01.001
*
* This file contains:
* - Include Files
* - Type Definitions
* - External Functions
* - VIM RAM Setup
* - Startup Routine
* .
* which are relevant for the Starup.
*/
/* (c) Texas Instruments 2010, ... | 5,324 |
1,433 | <reponame>gerald-yang/ubuntu-iotivity-demo
/******************************************************************
*
* Copyright 2015 Samsung Electronics 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.
* ... | 3,469 |
379 | <filename>client/oim-fx/src/test/java/com/oim/test/PathSTest.java
package com.oim.test;
import java.io.File;
/**
* @author XiaHui
* @date 2017年9月21日 下午7:19:55
*/
public class PathSTest {
public static void main(String[] a) {
String RESOURCES_DIR = System.getProperty("app.dir", System.getProperty("user.dir")) +... | 166 |
1,016 | package com.thinkbiganalytics.spark.repl;
/*-
* #%L
* thinkbig-commons-spark-repl
* %%
* Copyright (C) 2017 ThinkBig Analytics
* %%
* 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,646 |
793 | <filename>test/CodeGen/riscv32-ilp32-ilp32f-abi.c
// RUN: %clang_cc1 -triple riscv32 -emit-llvm %s -o - | FileCheck %s
// This file contains test cases that will have the same output for the ilp32
// and ilp32f ABIs.
#include <stddef.h>
#include <stdint.h>
struct tiny {
uint8_t a, b, c, d;
};
struct small {
int... | 885 |
336 | <reponame>tomwei7/LA104
#include <library.h>
extern "C" {
#include "py/gc.h"
#include "py/lexer.h"
#include "py/runtime.h"
//#include "lib/utils/pyexec.h"
//
#include "py/compile.h"
#include "py/persistentcode.h"
}
#include "../../os_host/source/framework/BufferedIo.h"
uint8_t gFatSharedBuffer[BIOS::FAT::SharedBuffe... | 2,438 |
818 | /*
* Copyright 2021 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 a... | 1,793 |
375 | package org.archive.cdxserver.processor;
import org.archive.format.cdx.CDXLine;
import org.archive.format.cdx.FieldSplitFormat;
public abstract class RevisitResolver extends DupeCountProcessor {
public final static String origfilename = "orig.filename";
public final static String origoffset = "orig.offset";
publi... | 560 |
669 | # -*- coding: utf-8 -*-
__author__ = """<NAME>"""
__email__ = '<EMAIL>'
__version__ = '1.0.0'
from .api import FaceAlignment, LandmarksType, NetworkSize
| 64 |
897 | package org.exampleapps.greatbig.repository.search;
import org.exampleapps.greatbig.domain.Talk;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;
/**
* Spring Data Elasticsearch repository for the Talk entity.
*/
public interface TalkSearchRepository extends ElasticsearchRepository<... | 91 |
333 | <reponame>alipay/alipay-sdk-java-all
package com.alipay.api.domain;
import com.alipay.api.AlipayObject;
import com.alipay.api.internal.mapping.ApiField;
/**
* 上新商品信息
*
* @author auto create
* @since 1.0, 2019-01-04 11:54:30
*/
public class ApplyGoodsInfo extends AlipayObject {
private static final... | 1,063 |
4,218 | <reponame>Verchasve/conductor_test<filename>grpc-server/src/main/java/com/netflix/conductor/grpc/server/service/GRPCHelper.java
/*
* Copyright 2020 Netflix, Inc.
* <p>
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
* the License. You may obtain ... | 2,519 |
14,668 | <filename>third_party/crashpad/crashpad/util/ios/ios_intermediate_dump_writer.h
// Copyright 2021 The Crashpad 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 a... | 2,376 |
631 | <filename>activeweb/src/test/java/app/controllers/SimpleValueController.java
package app.controllers;
import org.javalite.activeweb.AppController;
/**
* @author <NAME>: 7/16/12 3:09 AM
*/
public class SimpleValueController extends AppController {
public void index(){
if(exists("name"))
vi... | 142 |
589 | <filename>inspectit.server/src/main/java/rocks/inspectit/server/dao/MethodSensorTypeIdentDao.java<gh_stars>100-1000
package rocks.inspectit.server.dao;
import java.util.List;
import java.util.Map;
import rocks.inspectit.shared.all.cmr.model.MethodSensorTypeIdent;
/**
* This DAO is used to handle all {@link MethodSe... | 768 |
678 | //
// Generated by class-dump 3.5 (64 bit).
//
// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>.
//
#import "NSObject.h"
@interface EmoticonUtil : NSObject
{
}
+ (void)reportMigrationStateWithKey:(int)arg1;
+ (_Bool)migrationEmoticonForEmoticonList:(id)arg1 isCustomEmoticon:(_Bool)arg... | 874 |
1,894 | <filename>common/py_trace_event/py_trace_event/__init__.py<gh_stars>1000+
# Copyright 2016 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.
from __future__ import absolute_import
import os
import sys
SCRIPT_DIR = os.path.ab... | 218 |
1,162 | package org.nesc.ec.bigdata.model;
/**
* @author Truman.P.Du
* @date 2019年4月10日 下午2:14:43
* @version 1.0
*/
public class MonitorTopic {
private String topicName;
private String clusterName;
private Long clusterID;
private Long topicId;
private boolean isCollections;
public Long getTopicId()... | 412 |
3,287 | # --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------... | 497 |
303 | <filename>src/gc/bdwgc/include/private/darwin_semaphore.h
/*
* Copyright (c) 1994 by Xerox Corporation. All rights reserved.
* Copyright (c) 1996 by Silicon Graphics. All rights reserved.
* Copyright (c) 1998 by <NAME>. All rights reserved.
* Copyright (c) 2000-2009 by Hewlett-Packard Development Company.
* All... | 960 |
1,350 | <reponame>Manny27nyc/azure-sdk-for-java
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.purview.fluent.models;
import com.azure.core.annotation.Immutable;
import com.azure.core... | 863 |
854 | __________________________________________________________________________________________________
sample 76 ms submission
static const auto _ = []() {
ios::sync_with_stdio(false);
cin.tie(nullptr);
cout.tie(nullptr);
return 0;
}();
class Solution {
public:
int numMatchingSubseq(string S, vector<st... | 972 |
668 | <reponame>jkreindl/sulong
/*
* Copyright (c) 2018, Oracle and/or its affiliates.
*
* 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 abo... | 1,384 |
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 ... | 700 |
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.loadtestservice.implementation;
import com.azure.core.http.rest.PagedIterable;
import com.azure.core.http.rest.Response;
import ... | 3,068 |
348 | <reponame>chamberone/Leaflet.PixiOverlay
{"nom":"Courcelles","dpt":"Meurthe-et-Moselle","inscrits":85,"abs":10,"votants":75,"blancs":7,"nuls":2,"exp":66,"res":[{"panneau":"1","voix":41},{"panneau":"2","voix":25}]} | 95 |
695 | <gh_stars>100-1000
#@PydevCodeAnalysisIgnore
# XXX This module needs cleanup.
from ctypes import *
DWORD = c_ulong
WORD = c_ushort
BYTE = c_byte
ULONG = c_ulong
LONG = c_long
LARGE_INTEGER = c_longlong
ULARGE_INTEGER = c_ulonglong
HANDLE = c_ulong # in the header files: void *
HWND = HANDLE
HDC = HANDLE
HMODULE ... | 1,281 |
900 | #!/usr/bin/env python
# -*- coding: utf-8 -*
# Copyright: [CUP] - See LICENSE for details.
# Authors: <NAME> (@mythmgn),
"""
:description:
decorators related module
"""
import os
import sys
import argparse
_NOW_PATH = os.path.dirname(os.path.abspath(__file__)) + '/'
_TOP_PATH = os.path.abspath(_NOW_PATH + '/../')
... | 725 |
348 | {"nom":"<NAME>","circ":"2ème circonscription","dpt":"Haute-Saône","inscrits":99,"abs":40,"votants":59,"blancs":3,"nuls":1,"exp":55,"res":[{"nuance":"FN","nom":"<NAME>","voix":33},{"nuance":"REM","nom":"<NAME>","voix":22}]} | 92 |
9,516 | /*!
* Copyright (c) 2021 by Contributors
* \file ndarray_partition.h
* \brief Operations on partition implemented in CUDA.
*/
#ifndef DGL_RUNTIME_WORKSPACE_H_
#define DGL_RUNTIME_WORKSPACE_H_
#include <dgl/runtime/device_api.h>
#include <cassert>
namespace dgl {
namespace runtime {
template<typename T>
class ... | 693 |
503 | package com.smartisanos.sidebar.view;
import android.content.res.Configuration;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.WindowManager;
import com.smartisanos.sidebar.R;
import com.smartisanos.sidebar.util.Tracker;
import smartisanos.app.MenuDialog;
public class ClearL... | 955 |
1,206 | SKIP_PIPES = "skip_pipes" | 13 |
3,066 | /* PDCurses */
#include <curspriv.h>
#include <assert.h>
/*man-start**************************************************************
kernel
------
### Synopsis
int def_prog_mode(void);
int def_shell_mode(void);
int reset_prog_mode(void);
int reset_shell_mode(void);
int resetty(void);
int save... | 3,194 |
742 | <gh_stars>100-1000
#!/usr/bin/env python3
"""Lookup tables"""
import argparse
# --------------------------------------------------
def get_args():
"""get command-line arguments"""
parser = argparse.ArgumentParser(
description='Gashlycrumb',
formatter_class=argparse.ArgumentDefaultsHelpFormat... | 594 |
826 | package io.eventuate.tram.sagas.orchestration;
import io.eventuate.tram.commands.common.Command;
public class PendingSagaCommand {
private String destination;
private String resource;
private Command command;
public PendingSagaCommand(String destination, String resource, Command command) {
this.destinat... | 174 |
2,045 | {
"props": {
"children": { "type": { "name": "node" } },
"classes": { "type": { "name": "object" } },
"disabled": { "type": { "name": "bool" } },
"loading": { "type": { "name": "bool" } },
"loadingIndicator": {
"type": { "name": "node" },
"default": "<CircularProgress color=\"inherit\"... | 1,248 |
668 | <filename>conan-utils/src/main/java/com/tal/wangxiao/conan/utils/core/constant/DataType.java
package com.tal.wangxiao.conan.utils.core.constant;
/**
* @author :dengkunnan
* @date :2020.06.03
* @description: 针对JSON可配置数据类型枚举
* @version: 1.0.0.1
*/
public enum DataType {
string, integer, number, object, array, ... | 194 |
1,353 | <gh_stars>1000+
/*
* Copyright (c) 2014, <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 o... | 2,527 |
1,056 | <gh_stars>1000+
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* ... | 1,320 |
622 | import warnings
from types import FrameType
from typing import Optional, Dict, Any, cast
__all__ = ["make_step"]
import inspect
from baikal.steps import Step
def make_step(
base_class: type, attr_dict: Dict[str, Any] = None, class_name: Optional[str] = None
) -> type:
"""Creates a step subclass from the gi... | 966 |
434 | #coding=utf-8
from bs4 import BeautifulSoup
import requests
PREFIX = "https://rpmfind.net"
packages = [['xfsprogs','5.10.0-2.fc34'],['inih','49-3.fc34'],['libedit','3.1-37.20210522cvs.fc34']]
for p in packages:
software = p[0]
version = p[1]
html = requests.get('https://rpmfind.net/linux/rpm2htm... | 373 |
4,879 | <reponame>kudlav/organicmaps<filename>indexer/trie.hpp
#pragma once
#include "base/assert.hpp"
#include "base/base.hpp"
#include "base/buffer_vector.hpp"
#include "base/mem_trie.hpp"
#include <cstddef>
#include <memory>
#include <vector>
namespace trie
{
using TrieChar = uint32_t;
// 95 is a good value for the defa... | 989 |
2,389 | <reponame>Ankit01Mishra/java<gh_stars>1000+
package io.kubernetes.client.openapi.models;
import io.kubernetes.client.fluent.VisitableBuilder;
import com.google.gson.annotations.SerializedName;
import io.kubernetes.client.fluent.Fluent;
import io.kubernetes.client.fluent.Nested;
import java.util.ArrayList;
import java.... | 2,493 |
375 | <reponame>spirentitestdevter/RED<filename>src/RobotFrameworkCore/org.robotframework.ide.core-functions/src/main/java/org/rf/ide/core/testdata/model/table/TableHeaderComparator.java
/*
* Copyright 2015 Nokia Solutions and Networks
* Licensed under the Apache License, Version 2.0,
* see license.txt file for details... | 689 |
524 | <filename>libomicron/src/curl_tools/curl_ssl_callbacks_mac.h
#pragma once
#ifdef OMICRON_USE_LIBCURL
#include <curl.h>
namespace omicronlib
{
CURLcode ssl_ctx_callback_mac(CURL *curl, void *ssl_ctx, void *userptr);
}
#endif | 102 |
767 | from abc import ABCMeta, abstractmethod
import zmq
from six import add_metaclass, iteritems
from fuel.iterator import DataIterator
from fuel.server import recv_arrays
@add_metaclass(ABCMeta)
class AbstractDataStream(object):
"""A stream of data separated into epochs.
A data stream is an iterable stream of ... | 3,706 |
1,456 | # This code is part of Qiskit.
#
# (C) Copyright IBM 2021.
#
# This code is licensed under the Apache License, Version 2.0. You may
# obtain a copy of this license in the LICENSE.txt file in the root directory
# of this source tree or at http://www.apache.org/licenses/LICENSE-2.0.
#
# Any modifications or derivative wo... | 2,368 |
585 | #include "EntityTweener.h"
#include "../OpenLoco.h"
#include "../Vehicles/Vehicle.h"
#include "Entity.h"
#include <cmath>
#include <iostream>
namespace OpenLoco
{
using EntityListType = EntityManager::EntityListType;
using EntityListIterator = EntityManager::ListIterator<EntityBase, &EntityBase::next_thing_id>... | 1,776 |
322 | #
# Copyright 2019 <NAME>, <NAME>, <NAME>,
# <NAME>, <NAME>, <NAME>, <NAME>,
# <NAME>, <NAME>, <NAME>, <NAME>,
# <NAME>, <NAME>, <NAME>, <NAME>, <NAME>
#
# This file is part of acados.
#
# The 2-Clause BSD License
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provi... | 2,031 |
774 | <gh_stars>100-1000
/*
* Copyright 2001-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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unl... | 5,140 |
5,865 | /*
* Copyright 2021 ThoughtWorks, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agr... | 5,711 |
348 | <gh_stars>100-1000
{"nom":"Bize","circ":"1ère circonscription","dpt":"Haute-Marne","inscrits":49,"abs":19,"votants":30,"blancs":4,"nuls":2,"exp":24,"res":[{"nuance":"REM","nom":"<NAME>","voix":15},{"nuance":"LR","nom":"<NAME>","voix":9}]} | 98 |
1,338 | /*
* Copyright 2010 Haiku, Inc. All rights reserved.
* Distributed under the terms of the MIT license.
*
* Authors:
* <NAME>
*/
#include "accelerant.h"
#include "3dfx.h"
uint32
TDFX_GetVideoMemorySize(void)
{
// Return the number of bytes of video memory.
uint32 chipSize; // size is in megabytes
uint32... | 860 |
476 | #ifndef _GL4ES_RASTER_H_
#define _GL4ES_RASTER_H_
#include "gles.h"
#include "list.h"
#ifndef GL_STENCIL_INDEX
#define GL_STENCIL_INDEX 0x1901
#endif // GL_STENCIL_INDEX
#ifndef GL_DEPTH_COMPONENT
#define GL_DEPTH_COMPONENT 0x1902
#endif // GL_DEPTH_COMPONENT
typedef struct {
GLfloat x;
GLfloat y;
GL... | 781 |
7,482 | <gh_stars>1000+
/*
* Copyright (c) 2006-2021, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
* Date Author Notes
* 2015-11-19 Urey the first version
* 2017-09-20 Quintin.Z modify for nv32
*/
#include "rtthread.h"
#include "finsh.h"
extern... | 353 |
4,858 | {
"$schema": "http://iglucentral.com/schemas/com.snowplowanalytics.self-desc/schema/jsonschema/1-0-0#",
"self": {
"vendor": "com.codecombat",
"name": "confirmed_restart",
"format": "jsonschema",
"version": "1-0-0"
},
"type": "object",
"properties": {
"user": {"type": "string", "pattern": "^[a-z0-9]{24}$"... | 220 |
643 | <gh_stars>100-1000
// Generated automatically from org.apache.shiro.jndi.JndiCallback for testing purposes
package org.apache.shiro.jndi;
import javax.naming.Context;
public interface JndiCallback
{
Object doInContext(Context p0);
}
| 84 |
2,143 | package com.tngtech.archunit.example.cycles.complexcycles.slice2;
import com.tngtech.archunit.example.cycles.complexcycles.slice1.SliceOneCallingConstructorInSliceTwoAndMethodInSliceThree;
public class SliceTwoInheritingFromSliceOne extends SliceOneCallingConstructorInSliceTwoAndMethodInSliceThree {
}
| 94 |
1,374 | package def.dom;
import def.js.Object;
public class MSGraphicsTrust extends def.js.Object {
public java.lang.Boolean constrictionActive;
public java.lang.String status;
public static MSGraphicsTrust prototype;
public MSGraphicsTrust(){}
}
| 79 |
348 | <gh_stars>100-1000
{"nom":"Val-de-la-Haye","circ":"4ème circonscription","dpt":"Seine-Maritime","inscrits":547,"abs":305,"votants":242,"blancs":22,"nuls":3,"exp":217,"res":[{"nuance":"REM","nom":"<NAME>","voix":150},{"nuance":"FN","nom":"<NAME>","voix":67}]} | 106 |
442 | <reponame>gperciva/scrypt
#include <sys/auxv.h>
int
main(void)
{
int res;
unsigned long val;
res = elf_aux_info(AT_HWCAP, &val, sizeof(unsigned long));
(void)res;
return (val != 0);
}
| 86 |
1,786 | <reponame>slaveuser/EVCache20190422
package com.netflix.evcache;
public class EVCacheReadQueueException extends EVCacheException {
private static final long serialVersionUID = -7660503904923117538L;
public EVCacheReadQueueException(String message) {
super(message);
}
public EVCacheReadQueueE... | 133 |
2,151 | <filename>third_party/blink/public/platform/web_fullscreen_video_status.h
// 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.
#ifndef THIRD_PARTY_BLINK_PUBLIC_PLATFORM_WEB_FULLSCREEN_VIDEO_STATUS_H_
#define... | 308 |
389 | //
// VSDetailViewController.h
// Vesper
//
// Created by <NAME> on 11/18/12.
// Copyright (c) 2012 Q Branch LLC. All rights reserved.
//
#import <UIKit/UIKit.h>
#import <MessageUI/MessageUI.h>
#import "VSBaseViewController.h"
@class VSNote;
@class VSTag;
@class VSNavbarView;
@class VSDetailView;
@class VSDetai... | 436 |
563 | <filename>iast-agent/src/main/java/com/secnium/iast/agent/monitor/EngineMonitor.java
package com.secnium.iast.agent.monitor;
import com.secnium.iast.agent.*;
import com.secnium.iast.agent.manager.EngineManager;
import com.secnium.iast.agent.report.AgentRegisterReport;
import com.secnium.iast.agent.util.http.HttpClient... | 847 |
1,602 | <filename>libtool/src/gmp-6.1.2/mini-gmp/tests/t-pprime_p.c
/* test mpz_probab_prime_p
Copyright 2001, 2002, 2004, 2011, 2012, 2014, 2016 Free Software
Foundation, Inc.
This file is part of the GNU MP Library test suite.
The GNU MP Library test suite is free software; you can redistribute it
and/or modify it under t... | 1,736 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.