max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
575 | <reponame>Ron423c/chromium
// 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 "content/common/shared_file_util.h"
#include "base/logging.h"
#include "base/strings/string_number_conversions.h"
#in... | 694 |
495 | /*
* Copyright 2014-2016 Media for Mobile
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or ag... | 864 |
435 | <gh_stars>100-1000
package datawave.query.iterator.pipeline;
import java.util.ArrayList;
import java.util.Collection;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
import org.apache.accumulo.core.data.ByteSequence;
import org.apache.accumulo.core.data.Key;
import org.apache.accumulo.core.data... | 1,551 |
1,662 | """ Test components live.
"""
import gc
import weakref
import asyncio
from pscript import this_is_js
from flexx import app, event
from flexx.util.testing import run_tests_if_main, raises, skip, skipif
from flexx.app.live_tester import run_live, roundtrip, launch
from flexx.event import loop
def setup_module():
... | 7,622 |
571 | /*
* Copyright (c) 2020-2021 <NAME> <EMAIL>
* zlib License, see LICENSE file.
*/
#include "fr_jam_intro_scene.h"
#include "bn_keypad.h"
#include "bn_colors.h"
#include "fr_scene_type.h"
#include "bn_regular_bg_items_jam_backdrop.h"
#include "models/fr_model_3d_items_jam_logo.h"
namespace fr
{
namespace
{
... | 1,453 |
335 | {
"word": "Ghost",
"definitions": [
"An apparition of a dead person which is believed to appear or become manifest to the living, typically as a nebulous image.",
"A slight trace or vestige of something.",
"A faint secondary image caused by a fault in an optical system, duplicate signal ... | 123 |
787 | # Copyright 2021 Soda
# 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 writing, soft... | 548 |
582 | <reponame>PinoEire/archi<gh_stars>100-1000
/**
* This program and the accompanying materials
* are made available under the terms of the License
* which accompanies this distribution in the file LICENSE.txt
*/
package org.opengroup.archimate.xmlexchange;
import static org.junit.Assert.assertEquals;
import org.ecl... | 774 |
1,350 | <filename>sdk/resourcemanager/azure-resourcemanager-cosmos/src/main/java/com/azure/resourcemanager/cosmos/fluent/TableResourcesClient.java
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resour... | 12,842 |
6,688 | <reponame>jellopuddingstick/scrcpy
package com.genymobile.scrcpy;
import android.graphics.Rect;
public final class ScreenInfo {
/**
* Device (physical) size, possibly cropped
*/
private final Rect contentRect; // device size, possibly cropped
/**
* Video size, possibly smaller than the dev... | 2,306 |
1,099 | <gh_stars>1000+
package com.example.commonlibrary.net;
import android.os.Environment;
import com.example.commonlibrary.BaseApplication;
import com.example.commonlibrary.net.download.DownLoadApi;
import com.example.commonlibrary.net.download.DownLoadInterceptor;
import com.example.commonlibrary.net.download.DownLoadPr... | 4,795 |
348 | <reponame>chamberone/Leaflet.PixiOverlay
{"nom":"Saint-Martial-sur-Né","dpt":"Charente-Maritime","inscrits":333,"abs":70,"votants":263,"blancs":19,"nuls":5,"exp":239,"res":[{"panneau":"1","voix":140},{"panneau":"2","voix":99}]} | 96 |
892 | {
"schema_version": "1.2.0",
"id": "GHSA-7r45-7xq5-v6wq",
"modified": "2022-05-13T01:53:17Z",
"published": "2022-05-13T01:53:17Z",
"aliases": [
"CVE-2018-7243"
],
"details": "An authorization bypass vulnerability exists In Schneider Electric's 66074 MGE Network Management Card Transverse installed in ... | 446 |
477 | <gh_stars>100-1000
package github.cesarferreira.rxpeople;
import android.content.Context;
import java.util.List;
import github.cesarferreira.rxpeople.models.EncapsulatedUser;
import github.cesarferreira.rxpeople.models.FakeUser;
import github.cesarferreira.rxpeople.models.FetchedData;
import github.cesarferreira.rxp... | 1,385 |
2,962 | package com.pushtorefresh.storio3.sample.ui.fragment;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.support.v4.app.FragmentActivity;
import android.support.v7.widget.DefaultItemAnimator;
import android.support.v7.widget.DividerItemDecora... | 5,120 |
643 | package com.semmle.util.trap.dependencies;
import java.io.File;
import java.nio.file.Path;
import java.util.AbstractSet;
import java.util.Collections;
import java.util.Iterator;
import java.util.Set;
import com.semmle.util.exception.ResourceError;
/**
* The immediate dependencies of a particular TRAP file
*/
publi... | 860 |
4,269 | <filename>ribbon/src/main/java/com/netflix/ribbon/proxy/RibbonDynamicProxy.java
/*
* Copyright 2014 Netflix, 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.apa... | 2,325 |
471 | <gh_stars>100-1000
import copy
import numpy as np
import torchx.nn as nnx
class ParameterNoise(object):
def apply(self, model):
pass
class NormalParameterNoise(ParameterNoise):
def __init__(self, sigma):
self.sigma = sigma
print('Parameter noise initialized with sigma', self.sigma)
... | 1,382 |
530 | /*******************************************************************************
* Copyright 2014 <NAME>.
*
* 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/... | 502 |
21,684 | // Copyright 2010-2015 RethinkDB, all rights reserved.
#ifndef CLUSTERING_ADMINISTRATION_PERSIST_MIGRATE_MIGRATE_V1_14_HPP_
#define CLUSTERING_ADMINISTRATION_PERSIST_MIGRATE_MIGRATE_V1_14_HPP_
#include "clustering/administration/persist/migrate/metadata_v1_14.hpp"
#include "clustering/administration/persist/migrate/me... | 340 |
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/.
********************... | 813 |
317 | <gh_stars>100-1000
# Released under the MIT License. See LICENSE for details.
#
"""Functionality for prepping types for use with dataclassio."""
# Note: We do lots of comparing of exact types here which is normally
# frowned upon (stuff like isinstance() is usually encouraged).
# pylint: disable=unidiomatic-typecheck
... | 6,261 |
13,057 | <gh_stars>1000+
/*
* Copyright (c) 2016 Mockito contributors
* This program is made available under the terms of the MIT License.
*/
package org.mockito.internal.hamcrest;
import org.hamcrest.Matcher;
import org.hamcrest.StringDescription;
import org.mockito.ArgumentMatcher;
import org.mockito.internal.matchers.Var... | 323 |
1,685 | # Copyright (c) 2012, GPy authors (see AUTHORS.txt).
# Licensed under the BSD 3-clause license (see LICENSE.txt)
import numpy as np
#from ..util.warping_functions import *
from ..core import GP
from .. import likelihoods
from paramz import ObsAr
#from GPy.util.warping_functions import TanhFunction
from ..util.warping_... | 3,385 |
332 | package io.github.quickmsg.core.spi;
import io.github.quickmsg.common.channel.MqttChannel;
import io.github.quickmsg.common.topic.SubscribeTopic;
import io.github.quickmsg.common.topic.TopicRegistry;
import io.github.quickmsg.core.topic.FixedTopicFilter;
import io.github.quickmsg.core.topic.TopicFilter;
import io.gith... | 1,253 |
595 | <gh_stars>100-1000
//
// PBCategoryBudgetPair.h
// Predicitve Budget
//
// Created by <NAME> on 2015. 02. 12..
// Copyright (c) 2015. DroidZONE. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "PBBudget.h"
#import "PBCategory.h"
#import "PBTransaction.h"
#import "PBAccount.h"
#import "PBCategoryB... | 354 |
699 | <filename>src/main/java/tech/jhipster/registry/web/rest/package-info.java
/**
* Spring MVC REST controllers.
*/
package tech.jhipster.registry.web.rest;
| 55 |
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,550 |
372 | /*
* 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 writing, software distributed under t... | 1,793 |
1,538 | // Lean compiler output
// Module: Lean.Compiler.IR.UnboxResult
// Imports: Init Lean.Data.Format Lean.Compiler.IR.Basic
#include <lean/lean.h>
#if defined(__clang__)
#pragma clang diagnostic ignored "-Wunused-parameter"
#pragma clang diagnostic ignored "-Wunused-label"
#elif defined(__GNUC__) && !defined(__CLANG__)
#p... | 16,032 |
411 | <reponame>khotitekofe/saw-script
/*
Module : ECC.java
Description :
Stability : provisional
Point-of-contact : jhendrix
Copyright 2012 Galois, Inc. All rights reserved.
*/
package com.galois.ecc;
import java.util.Random;
/**
* Code for testing ECC Implementation.
*/
public final class ECC {
... | 1,093 |
528 | <reponame>Cognixion-inc/brainflow
/*****************************************************************************
FFTRealFixLen.hpp
By <NAME>
--- Legal stuff ---
This program is free software. It comes without any warranty, to
the extent permitted by applicable law. You can redistribute it
and/or modi... | 3,469 |
2,542 | <gh_stars>1000+
// ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
// ------------------------------------------------------------
#pragma once
... | 1,426 |
449 | <filename>began/updater.py<gh_stars>100-1000
import chainer
import chainer.functions as F
from chainer import Variable
import numpy as np
class Updater(chainer.training.StandardUpdater):
def __init__(self, *args, **kwargs):
self.gen, self.dis = kwargs.pop('models')
self.gamma = kwargs.pop('gamma'... | 797 |
324 | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | 1,486 |
433 | <reponame>redkale/redkale
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package org.redkale.convert;
import java.lang.reflect.Type;
import java.nio.ByteBuffer;
import java... | 974 |
1,040 | <reponame>Ybalrid/orbiter<gh_stars>1000+
#ifndef TILE_H
#define TILE_H
#include <windows.h>
#include <vector>
#include "ddsread.h"
#include "ZTreeMgr.h"
#define TILE_SURFSTRIDE 512
enum TileMode {
TILEMODE_NONE,
TILEMODE_SURFACE,
TILEMODE_WATERMASK,
TILEMODE_NIGHTLIGHT,
TILEMODE_ELEVATION,
TILEMODE_ELEVMOD
};
... | 1,391 |
346 | <reponame>lpython2006e/python-samples
my_file = open("output.txt", "r+")
| 30 |
968 | /*
* Copyright MapStruct Authors.
*
* Licensed under the Apache License version 2.0, available at http://www.apache.org/licenses/LICENSE-2.0
*/
package org.mapstruct.jpa;
/**
*
* @author <NAME>
*/
public class CombinedOfferingEntity implements Entity {
private ComposedKey key;
private String descriptio... | 320 |
634 | <reponame>SamSoneyC/dxwrapper
#pragma once
#define WIN32_LEAN_AND_MEAN
#include <Windows.h>
namespace Compat20
{
namespace CompatGdiDc
{
HDC getDc(HDC origDc);
void releaseDc(HDC origDc);
}
}
| 98 |
335 | {
"word": "Reverse",
"definitions": [
"A complete change of direction or action.",
"Reverse gear on a motor vehicle; the position of a gear lever or selector corresponding to this.",
"A play in which a player reverses the direction of attack by passing the ball to a teammate moving in th... | 251 |
442 | <filename>src/service/debug.h
#pragma once
#include <QDebug>
namespace debug
{
extern std::atomic_bool isTrace;
QString traceFileName();
bool setTraceFileName(const QString& fileName);
}; // namespace debug
#define SOFT_ASSERT(XXX, WORKAROUND) \
if (!(XXX)) { ... | 1,248 |
3,508 | package com.fishercoder.solutions;
import java.util.Deque;
import java.util.LinkedList;
public class _224 {
public static class Solution1 {
/**
* My complete original solution on 12/23/2021
*/
public int calculate(String s) {
Deque<String> stack = new LinkedList<>();... | 1,942 |
400 | <gh_stars>100-1000
package org.ofdrw.core.text;
import org.dom4j.Element;
import org.ofdrw.core.OFDElement;
import org.ofdrw.core.basicType.STBase;
import org.ofdrw.core.basicType.ST_Array;
import org.ofdrw.core.pageDescription.clips.ClipAble;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List... | 5,223 |
2,151 | <reponame>Y-D-Lu/rr_frameworks_base<gh_stars>1000+
/*
* Copyright (C) 2010 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.or... | 848 |
2,151 | // 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.
#include "chrome/browser/ui/views/download/download_item_view.h"
#include "base/strings/utf_string_conversions.h"
#include "testing/gtest/include/gtest/g... | 571 |
937 | <reponame>HaoZhang95/PythonAndMachineLearning<filename>26数据结构/day04/01_binary_search.py
def binary_search(alist, item):
"""二分法查找,递归方法"""
n = len(alist)
mid = n // 2
if n > 0:
if alist[mid] == item:
return True
elif item < alist[mid]:
# 产生新的列表进行递归
re... | 602 |
3,631 | /*
* Copyright 2018 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 app... | 391 |
1,346 | package com.ctrip.platform.dal.dao.client.DatabaseCategory;
import com.ctrip.platform.dal.dao.DalPojo;
import com.ctrip.platform.dal.dao.annotation.Database;
import com.ctrip.platform.dal.dao.annotation.Type;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java... | 364 |
1,202 | {"file_hash":null,"name":"GetHighest","version":"0.1.2","description":"Gets the highest value from a list","group":"CAAD_RWTH","keywords":["highest","list"],"dependencies":[],"license":"MIT","contents":"Get Highest - Gets the highest value from a list","engine_version":"0.5.2.10107","engine_metadata":"","engine":"dynam... | 92 |
14,793 | package me.chanjar.weixin.cp.api;
import me.chanjar.weixin.common.error.WxErrorException;
import me.chanjar.weixin.cp.bean.WxCpAgentWorkBench;
/**
* @author songshiyu
* @date : create in 16:16 2020/9/27
* @description: 工作台自定义展示:https://work.weixin.qq.com/api/doc/90000/90135/92535
*/
public interface WxCpAgentWork... | 228 |
2,144 | /**
* 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... | 903 |
414 | <filename>ios-sealtalk/RCloudMessage/RCWatchKit/RCWKRequestHandler.h
//
// RCWKRequestHandler.h
// RongIMDemo
//
// Created by litao on 15/3/30.
// Copyright (c) 2015年 RongCloud. All rights reserved.
//
#import "RCWKAppInfoProvider.h"
#import <Foundation/Foundation.h>
#import <RongIMLib/RongIMLib.h>
@interface RC... | 259 |
355 | <reponame>ggrimes/jvarkit
package com.github.lindenb.jvarkit.util.iterator;
import java.util.Arrays;
import java.util.List;
import org.testng.Assert;
import org.testng.annotations.Test;
public class FilterIteratorTest {
@Test
public void test1() {
List<Integer> array = Arrays.asList(1,10,2,2,4,5,2);
FilterIterator... | 245 |
2,527 | <filename>components/jupyter-web-app/backend/main.py
import os
import sys
import logging
from flask_cors import CORS
from kubeflow_jupyter.default.app import app as default
from kubeflow_jupyter.rok.app import app as rok
logger = logging.getLogger("entrypoint")
# Get the UIs
ui = os.environ.get("UI", "default")
apps ... | 265 |
473 | <reponame>ProjectVault/orp
/** @file aes_test.h
*
* AES test vectors for mselOS
*/
#ifndef _AES_TEST_H
#define _AES_TEST_H
void do_aes(void);
#endif
| 73 |
488 | <reponame>maurizioabba/rose<gh_stars>100-1000
#include "InnerInnerInner3.h"
#include "InnerInnerInner4.h" | 48 |
858 | <reponame>ryuukk/ldc
//===-- mangling.h --------------------------------------------------------===//
//
// LDC – the LLVM D compiler
//
// This file is distributed under the BSD-style LDC license. See the LICENSE
// file for details.
//
//===-----------------------------------------------------... | 539 |
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,534 |
766 | /* generated */
#include "class.h"
static const struct range ranges[] = {
{ 0x005FUL, 0x005FUL },
{ 0x203FUL, 0x2040UL },
{ 0x2054UL, 0x2054UL },
{ 0xFE33UL, 0xFE34UL },
{ 0xFE4DUL, 0xFE4FUL },
{ 0xFF3FUL, 0xFF3FUL }
};
const struct class utf8_Pc = {
ranges,
sizeof ranges / sizeof *ranges
};
| 143 |
1,471 | def test_gas_call(get_contract_with_gas_estimation):
gas_call = """
@external
def foo() -> uint256:
return msg.gas
"""
c = get_contract_with_gas_estimation(gas_call)
assert c.foo(call={"gas": 50000}) < 50000
assert c.foo(call={"gas": 50000}) > 25000
| 113 |
306 |
#
# PS Move API - An interface for the PS Move Motion Controller
# Copyright (c) 2011 <NAME> <<EMAIL>>
# 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 mus... | 1,277 |
3,301 | <reponame>okjay/Alink<filename>core/src/main/java/com/alibaba/alink/common/io/catalog/JdbcCatalog.java
package com.alibaba.alink.common.io.catalog;
import org.apache.flink.api.common.io.InputFormat;
import org.apache.flink.api.common.io.OutputFormat;
import org.apache.flink.api.common.io.RichInputFormat;
import org.ap... | 4,682 |
1,900 | <gh_stars>1000+
/*
* Copyright Terracotta, 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 l... | 1,069 |
892 | {
"schema_version": "1.2.0",
"id": "GHSA-73pp-cff4-vg2v",
"modified": "2022-05-13T01:35:32Z",
"published": "2022-05-13T01:35:32Z",
"aliases": [
"CVE-2018-0241"
],
"details": "A vulnerability in the UDP broadcast forwarding function of Cisco IOS XR Software could allow an unauthenticated, adjacent atta... | 646 |
1,475 | /*
* 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 ... | 1,063 |
2,603 |
/******************************************************************************
*
* alt_watchdog.c - API for the Altera SoC FPGA watchdog timers.
*
******************************************************************************/
/******************************************************************************
*
... | 21,647 |
318 | <gh_stars>100-1000
package org.apache.maven.surefire.api.util.internal;
/*
* 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... | 4,530 |
751 | /*
* The MIT License (MIT)
*
* Copyright (c) 2017-2020 <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, ... | 4,671 |
3,631 | /*
* Copyright 2011 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... | 1,864 |
778 | //
// Author: <NAME> <EMAIL>
//
#if !defined(KRATOS_SYMPLECTIC_EULER_SCHEME_H_INCLUDED )
#define KRATOS_SYMPLECTIC_EULER_SCHEME_H_INCLUDED
// System includes
#include <string>
#include <iostream>
#include <cfloat>
// Project includes
#include "dem_integration_scheme.h"
#include "includes/define.h"
#include "utiliti... | 2,706 |
4,772 | <filename>jpa/deferred/src/main/java/example/repo/Customer1011Repository.java
package example.repo;
import example.model.Customer1011;
import java.util.List;
import org.springframework.data.repository.CrudRepository;
public interface Customer1011Repository extends CrudRepository<Customer1011, Long> {
List<Custome... | 115 |
405 | <reponame>wtis-cj/JsoupXpath
package org.seimicrawler.xpath.core.function;
import org.seimicrawler.xpath.core.Scope;
import org.seimicrawler.xpath.core.Function;
import org.seimicrawler.xpath.core.XValue;
import org.seimicrawler.xpath.util.CommonUtil;
import java.util.List;
/**
* The position function returns a num... | 319 |
551 | {
"image": "https://user-images.githubusercontent.com/48065878/104632919-feb5a400-5663-11eb-8dd0-b05cfd377158.png",
"issueId": 244,
"name": "<NAME>",
"username": "filippo-fonseca"
}
| 87 |
1,875 | <gh_stars>1000+
/*
* Copyright 2017 <NAME>.
*
* 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 applicabl... | 3,437 |
1,927 | /*
* Copyright (C) 2019 ByteDance 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... | 888 |
3,372 | <reponame>MC-JY/aws-sdk-java
/*
* Copyright 2016-2021 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
* the License. A copy of the License is located at
*
* http://aws.amazon.com/apac... | 1,611 |
335 | {
"word": "Unconvinced",
"definitions": [
"Not certain that something is true or can be relied on or trusted."
],
"parts-of-speech": "Adjective"
} | 69 |
862 | <reponame>sgillen/tiny-differentiable-simulator<filename>src/visualizer/opengl/utils/tiny_logging.cpp<gh_stars>100-1000
/*
Copyright (c) 2013 Advanced Micro Devices, Inc.
This software is provided 'as-is', without any express or implied warranty.
In no event will the authors be held liable for any damages arising from... | 1,407 |
1,826 | <filename>flexmark-ext-enumerated-reference/src/main/java/com/vladsch/flexmark/ext/enumerated/reference/EnumeratedReferenceVisitorExt.java
package com.vladsch.flexmark.ext.enumerated.reference;
import com.vladsch.flexmark.util.ast.VisitHandler;
public class EnumeratedReferenceVisitorExt {
public static <V extends... | 264 |
427 | //===-- StoppointLocation.cpp -----------------------------------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... | 464 |
597 | /*
* Copyright (c) 2022 Baidu.com, 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/licenses/LICENSE-2.0
*
* Unless required by ... | 682 |
3,055 | /*
Fontname: -FreeType-TenStamps-Medium-R-Normal--16-160-72-72-P-141-ISO10646-1
Copyright: Geoff
Glyphs: 64/124
BBX Build Mode: 2
*/
const uint8_t u8g2_font_tenstamps_mu[2019] U8G2_FONT_SECTION("u8g2_font_tenstamps_mu") =
"@\2\3\4\4\4\1\3\5\17\17\377\375\14\375\14\375\3\257\0\0\7\306 \12\377\363\17\377\377\3... | 3,531 |
587 | <gh_stars>100-1000
/*
* Copyright (C) 2013 salesforce.com, 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 requ... | 1,522 |
479 | <reponame>jeremyvdw/aurora
/**
* 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 wr... | 3,014 |
346 | <filename>libmetrics/interface.h
#ifndef INTERFACE_H
#define INTERFACE_H 1
#include "config.h"
#ifdef MINGW
#include <windows.h>
#include <iphlpapi.h>
#else
#include "unpifi.h"
#endif
int get_min_mtu( void );
#endif
| 94 |
412 | public class GenericFunctions
{
//Methods with generic inputs
public static <T> void processSimple(Generic<T> x)
{
}
public static <T extends Interface> void processUpperBoundInterface(Generic<T> x)
{
}
public static <T extends Interface_Implementation> void processUpperBoundClass(Generic<T> x)
{... | 1,051 |
303 |
#import "RCTUIManager.h"
#import <FileBrowser/FileBrowser-Swift.h>
@interface RNFileSelector : NSObject <RCTBridgeModule>
@end
| 54 |
376 | <gh_stars>100-1000
{
"images":[
{
"label": "dirb",
"name": "hypnza/dirb",
"tag": "latest",
"description": "Dirb container",
"default_command": "-u localhost"
},
{
"label": "dirbuster",
"name": "hypnza/dirbuster",
"tag": "latest",
"description": "Dirb... | 868 |
2,338 | //===--- Passes/LongJmp.h -------------------------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===---------------------------... | 2,450 |
607 | package com.sandwich.util.io;
import java.io.InputStream;
import java.util.NoSuchElementException;
import java.util.Scanner;
public class StreamUtils {
public static String convertStreamToString(InputStream stream) {
Scanner scanner = new Scanner(stream);
try {
return scanner.useDelimiter("\\A").next();
} ... | 144 |
1,074 | <gh_stars>1000+
# -----------------------------------------------------------------------------
# Copyright (c) 2009-2016 <NAME>. All rights reserved.
# Distributed under the (new) BSD License.
# -----------------------------------------------------------------------------
import numpy as np
from glumpy import app, glo... | 941 |
2,414 | package com.lou.springboot.controller;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.... | 669 |
416 | <reponame>khauser/SimpleFlatMapper
package org.simpleflatmapper.reflect.test.asm.sample;
import org.simpleflatmapper.reflect.Setter;
import org.simpleflatmapper.reflect.primitive.IntSetter;
import org.simpleflatmapper.test.beans.DbPrimitiveObjectWithSetter;
public class PrimitiveIntSetter implements Setter<DbPrimitiv... | 207 |
348 | <filename>docs/data/leg-t2/015/01501058.json
{"nom":"Cros-de-Ronesque","circ":"1ère circonscription","dpt":"Cantal","inscrits":131,"abs":45,"votants":86,"blancs":0,"nuls":2,"exp":84,"res":[{"nuance":"LR","nom":"<NAME>","voix":54},{"nuance":"REM","nom":"<NAME>","voix":30}]} | 114 |
21,382 | <gh_stars>1000+
import ray
import pytest
import sys
from ray.experimental import shuffle
def test_shuffle():
try:
shuffle.main()
finally:
ray.shutdown()
# https://github.com/ray-project/ray/pull/16408
@pytest.mark.skipif(sys.platform == "win32", reason="Failing on Windows.")
def test_shuffl... | 233 |
2,743 | <reponame>eshbeata/open-paperless
from __future__ import absolute_import, unicode_literals
from django.utils.translation import ugettext_lazy as _
from dynamic_search.classes import SearchModel
from .permissions import permission_role_view
role_search = SearchModel(
app_label='permissions', model_name='Role',
... | 189 |
865 | <gh_stars>100-1000
#
# SPDX-License-Identifier: Apache-2.0
#
from subprocess import call
from api.config import CELLO_HOME, FABRIC_TOOL
class ConfigTxGen:
"""Class represents cryptotxgen."""
def __init__(self, network, filepath=CELLO_HOME, configtxgen=FABRIC_TOOL, version="2.2.0"):
"""init CryptoGen
... | 1,291 |
14,668 | <filename>third_party/sqlite/scripts/sqlite_cherry_picker.py<gh_stars>1000+
#!/usr/bin/env python3
from __future__ import print_function
import argparse
import generate_amalgamation
import hashlib
import os
import string
import subprocess
import sys
class UnstagedFiles(Exception):
pass
class UnknownHash(Excep... | 5,741 |
348 | {"nom":"Coussay-les-Bois","circ":"4ème circonscription","dpt":"Vienne","inscrits":754,"abs":416,"votants":338,"blancs":34,"nuls":14,"exp":290,"res":[{"nuance":"UDI","nom":"<NAME>-<NAME>","voix":156},{"nuance":"MDM","nom":"<NAME>","voix":134}]} | 99 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.