max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
428 | <filename>Java/Loon-Lite(PureJava)/Loon-Lite-Core/src/loon/action/ActionTween.java<gh_stars>100-1000
/**
* Copyright 2008 - 2015 The Loon Game Engine 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 ... | 13,102 |
886 | //
// detail/chrono_time_traits.hpp
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
//
// Copyright (c) 2003-2016 <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_DETAIL_... | 1,904 |
391 | import textwrap
from dna_features_viewer.biotools import (
extract_graphical_translation,
reverse_complement,
find_narrowest_text_wrap,
)
def test_extract_graphical_translation():
seq = "ATGGACAGAACAATATAA"
seq1 = "ATGC" + seq + "GTTC"
seq2 = "ATGC" + reverse_complement(seq) + "GTTC"
asse... | 329 |
930 | package vip.mate.core.rule.entity;
import lombok.*;
/**
* 黑名单工具类
*/
@Setter
@Getter
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class BlackList {
/**
* 主键ID
*/
private Long id;
/**
* IP地址
*/
private String ip;
/**
* 请求uri
*/
private String requestU... | 366 |
848 | /* Copyright 2019 The TensorFlow Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or a... | 10,418 |
5,169 | {
"name": "YieldmoSDK",
"version": "4.1.0",
"summary": "Yieldmo iOS SDK to deliver ads to your Mobile app.",
"description": "Yieldmo builds mobile advertising products driven by Design and Data. Our SDK makes this easier to integrate with your apps.",
"homepage": "https://github.com/yieldmo/yieldmo-ios-sdk",
... | 286 |
731 | #ifndef _BINDED_FUNC_HPP
#define _BINDED_FUNC_HPP
#include <memory>
#include <string>
#include "mode.hpp"
namespace vind
{
class NTypeLogger ;
class CharLogger ;
class BindedFunc {
private:
struct Impl ;
std::unique_ptr<Impl> pimpl ;
virtual void error_process(const std::exc... | 827 |
674 | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
import logging
import xml.etree.ElementTree as ET
import arrow
from builtins import *
from nzbhydra.categories import getByNewznabCats
from nzbhydra.exceptions import I... | 2,181 |
679 | <reponame>Grosskopf/openoffice<filename>main/sw/source/ui/vba/vbaview.hxx<gh_stars>100-1000
/**************************************************************
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for ... | 1,024 |
678 | <filename>tests/trainers/test_classification.py
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.
import os
from typing import Any, Dict, Generator, Type, cast
import pytest
import timm
from _pytest.monkeypatch import MonkeyPatch
from omegaconf import OmegaConf
from pytorch... | 3,077 |
3,651 | package com.orientechnologies.common.comparator;
import com.orientechnologies.orient.core.index.OCompositeKey;
import com.orientechnologies.orient.core.metadata.schema.OType;
import java.util.Comparator;
import org.junit.Assert;
import org.junit.Test;
/**
* @author <NAME> (a.lomakin-at-orientdb.com)
* @author <NAME... | 366 |
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.
package org.chromium.chrome.browser;
import android.content.Context;
import android.content.res.Resources;
import android.util.TypedValue;
import org.ch... | 535 |
2,161 | /*
* 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 ... | 5,982 |
2,372 | <reponame>ceti-dev/PhysX<filename>physx/source/physxcooking/src/convex/BigConvexDataBuilder.h
//
// 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
//... | 1,297 |
336 | <gh_stars>100-1000
#pragma once
#include <Framework.h>
#include "GraphBase.h"
#include <Oscilloscope/Math/ChannelMath.h>
class CWndOscGraph : public CWndGraph, public CMathChannel
{
ui16 m_arrAverageBuf[DivsX*BlkX];
bool m_bPersistReset;
bool m_bNeedRedraw;
void _PrepareColumn( ui16 *column, ui16 n, ui16 ... | 407 |
881 | <gh_stars>100-1000
# -*- coding: utf-8 -*-
"""
Tencent is pleased to support the open source community by making 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community
Edition) available.
Copyright (C) 2017-2021 <NAME>, a Tencent company. All rights reserved.
Licensed under the MIT License (the "License"); you may not use this file ex... | 665 |
861 | package cn.springcloud.gray.server.dao.repository;
import cn.springcloud.gray.server.dao.model.AuthorityDO;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;
/**
* @author saleson
*... | 177 |
1,408 | <filename>plat/nxp/common/nv_storage/plat_nv_storage.h
/*
* Copyright 2021 NXP
*
* SPDX-License-Identifier: BSD-3-Clause
*
*/
#ifndef PLAT_NV_STRG_H
#define PLAT_NV_STRG_H
#define DEFAULT_SET_VALUE 0xA1
#define READY_TO_WRITE_VALUE 0xFF
#ifndef NV_STORAGE_BASE_ADDR
#define NV_STORAGE_BASE_ADDR DEFAULT_NV_STORAG... | 357 |
4,129 | <gh_stars>1000+
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: ResourcesInternalLegacy.proto
package com.didiglobal.booster.aapt2.legacy;
public final class ResourcesInternalLegacy {
private ResourcesInternalLegacy() {}
public static void registerAllExtensions(
com.google.protobuf.Ex... | 42,562 |
302 | # -*- coding: utf-8 -*-
# Copyright 2016 Yelp 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 ... | 1,635 |
2,921 | <reponame>otopetrik/nanopb<filename>tests/msgid/encode_msgid.c<gh_stars>1000+
/* Encode a message using msgid field as prefix */
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <pb_encode.h>
#include "msgid_example.pb.h"
#include "test_helpers.h"
/* This function writes the message id as a prefix ... | 982 |
3,428 | {"id":"02211","group":"easy-ham-1","checksum":{"type":"MD5","value":"06ce65e84569f2a40763e9c9ac2ee6cc"},"text":"From <EMAIL> Thu Oct 3 12:24:35 2002\nReturn-Path: <<EMAIL>>\nDelivered-To: y<EMAIL>int.org\nReceived: from localhost (jalapeno [127.0.0.1])\n\tby jmason.org (Postfix) with ESMTP id 8D85816F6B\n\tfor <jm@lo... | 532 |
8,027 | /*
* Copyright (c) Facebook, Inc. and 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 applic... | 930 |
461 | from habu.lib import dnsx
def test_mx():
assert 'aspmx.l.google.com.' in dnsx.mx('google.com')
def test_ns():
assert 'ns1.google.com.' in dnsx.ns('google.com')
def test_axfr_fail():
assert not dnsx.axfr('google.com')
def test_axfr_success():
assert dnsx.axfr('zonetransfer.me')
| 131 |
348 | <reponame>chamberone/Leaflet.PixiOverlay<filename>docs/data/leg-t2/088/08804336.json
{"nom":"Ollainville","circ":"4ème circonscription","dpt":"Vosges","inscrits":63,"abs":27,"votants":36,"blancs":1,"nuls":1,"exp":34,"res":[{"nuance":"LR","nom":"<NAME>","voix":20},{"nuance":"SOC","nom":"<NAME>","voix":14}]} | 129 |
2,042 | <filename>Demo/src/main/java/com/yc/ycvideoplayer/newPlayer/tiktok/TikTokRenderViewFactory.java
package com.yc.ycvideoplayer.newPlayer.tiktok;
import android.content.Context;
import com.yc.video.surface.InterSurfaceView;
import com.yc.video.surface.SurfaceFactory;
import com.yc.video.surface.RenderTextureView;
publ... | 217 |
578 | <filename>src/core/XML/XMLFileHandlers.h
/*
* Copyright (c) 2003-2021 <NAME> <<EMAIL>>.
* All rights reserved. Use of the code is allowed under the
* Artistic License 2.0 terms, as specified in the LICENSE file
* distributed with this code, or available from
* http://www.opensource.org/licenses/artistic-license-2.0.php... | 1,787 |
502 | """
This is a skeleton script that shows how you can build a Kubeflow pipeline
using the Kale SDK.
"""
"""
The only imports you need to convert your python code to a pipeline are these
two decorators.
"""
from kale.sdk import pipeline, step
"""
Defining a step is as simple as decorating a Python function. When a fun... | 1,326 |
1,346 | <gh_stars>1000+
package com.huanchengfly.tieba.post.widgets.theme;
import android.annotation.SuppressLint;
import android.content.Context;
import android.content.res.ColorStateList;
import android.content.res.TypedArray;
import android.util.AttributeSet;
import androidx.annotation.NonNull;
import androidx.annotation.... | 1,271 |
4,955 | import requests
headers = {
'Content-Type': 'application/json',
'X-API-Version': '200',
}
data = '{"userName":"username123","password":"<PASSWORD>", "authLoginDomain":"local"}'
response = requests.post('https://0.0.0.0/rest/login-sessions', headers=headers, data=data, verify=False)
| 103 |
965 | // Set the edit control to be read-only.
m_myEdit.SetReadOnly(TRUE);
ASSERT(m_myEdit.GetStyle() & ES_READONLY); | 43 |
369 | <gh_stars>100-1000
// Copyright (c) 2017-2022, Mudita <NAME>.o.o. All rights reserved.
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md
#include "ContactsRingtonesTable.hpp"
ContactsRingtonesTable::ContactsRingtonesTable(Database *db) : Table(db)
{}
ContactsRingtonesTable::~ContactsRingtonesTable(... | 1,961 |
1,515 | <reponame>CodeGuy-007/lightly<gh_stars>1000+
import unittest
import numpy as np
from lightly.active_learning.scorers.classification import ScorerClassification, _entropy
class TestScorerClassification(unittest.TestCase):
def test_score_calculation_random(self):
n_samples = 10000
n_classes = 10
... | 2,233 |
3,215 | [{"filename": "AFP.conf", "type": "data"}, {"filename": "afpovertcp.cfg", "type": "ASCII text"}, {"filename": "aliases", "type": "ASCII text"}, {"filename": "aliases.db", "type": "Berkeley DB 1.85 (Hash, version 2, native byte-order)"}, {"filename": "apache2", "type": "directory"}, {"filename": "asl", "type": "director... | 1,570 |
14,668 | // Copyright 2021 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 ASH_APP_LIST_MODEL_APP_ICON_LOAD_HELPER_H_
#define ASH_APP_LIST_MODEL_APP_ICON_LOAD_HELPER_H_
#include <memory>
#include <string>
#include <vecto... | 567 |
1,374 | <reponame>norzak/jsweet
package source.extension;
public class ToBeSorted {
public void myMethod() {
}
static void myStaticMethod() {
}
} | 62 |
1,765 | package io.envoyproxy.pgv;
import java.sql.Ref;
import java.util.concurrent.ConcurrentHashMap;
/**
* {@code ReflectiveValidatorIndex} uses reflection to discover {@link Validator} implementations lazily the first
* time a type is validated. If no validator can be found for {@code type}, a fallback validator
* will... | 750 |
4,879 | package com.mapswithme.maps.adapter;
public interface AdapterIndexAndPosition
{
int getRelativePosition();
int getIndex();
}
| 39 |
1,658 | #pragma once
#ifndef GUJIA_GUJIA_EPOLL_IMPL_H
#define GUJIA_GUJIA_EPOLL_IMPL_H
#include "gujia.h"
#if defined(GUJIA_HAS_EPOLL)
namespace gujia {
template <typename T, size_t SIZE>
int EventLoop<T, SIZE>::AddEvent(int fd, int mask) {
mask |= masks_[fd]; /* Merge old events */
if (mask == masks_[fd]) {
return 0... | 972 |
6,989 | <gh_stars>1000+
#pragma once
#define THROWING
#ifdef __cplusplus
#define THROWING noexcept
extern "C" {
#endif
const char* GetLibDir() THROWING;
const char* GetPyLib() THROWING;
#ifdef __cplusplus
}
#endif
| 88 |
482 | package com.jmrapp.terralegion.game.world.entity;
import com.badlogic.gdx.graphics.Color;
import com.badlogic.gdx.graphics.g2d.SpriteBatch;
import com.jmrapp.terralegion.engine.views.drawables.Drawable;
import com.jmrapp.terralegion.engine.world.entity.BodyType;
import com.jmrapp.terralegion.engine.world.entity.WorldB... | 381 |
1,656 | """ Set 'deleted' flag from null to false on all certificates once
Revision ID: 318b66568358
Revises: 9f79024fe67b
Create Date: 2019-02-05 15:42:25.477587
"""
# revision identifiers, used by Alembic.
revision = "318b66568358"
down_revision = "9f79024fe67b"
from alembic import op
def upgrade():
connection = op... | 159 |
468 | <gh_stars>100-1000
#define GLI_INCLUDE_GL_INTEL_MAP_TEXTURE
enum Main {
GL_TEXTURE_MEMORY_LAYOUT_INTEL = 0x83FF,
//GL_LAYOUT_DEFAULT_INTEL = 0,
//GL_LAYOUT_LINEAR_INTEL = 1,
// GL_LAYOUT_LINEAR_CPU_CACHED_INTEL = 2,
};
void glSyncTextureINTEL(GLuint texture);
v... | 233 |
892 | <filename>advisories/unreviewed/2022/05/GHSA-24hw-jxqf-4vc6/GHSA-24hw-jxqf-4vc6.json
{
"schema_version": "1.2.0",
"id": "GHSA-24hw-jxqf-4vc6",
"modified": "2022-05-02T03:59:34Z",
"published": "2022-05-02T03:59:34Z",
"aliases": [
"CVE-2009-4925"
],
"details": "Multiple SQL injection vulnerabilities in ... | 576 |
648 | {"resourceType":"ValueSet","id":"list-status","meta":{"lastUpdated":"2015-10-24T07:41:03.495+11:00","profile":["http://hl7.org/fhir/StructureDefinition/valueset-shareable-definition"]},"text":{"status":"generated","div":"<div xmlns=\"http://www.w3.org/1999/xhtml\">\n <h2>ListStatus</h2>\n <p>The c... | 1,344 |
339 | <gh_stars>100-1000
'''
(c) 2011, 2012 Georgia Tech Research Corporation
This source code is released under the New BSD license. Please see
http://wiki.quantsoftware.org/index.php?title=QSTK_License
for license details.
Created on January, 24, 2013
@author: <NAME>
@contact: <EMAIL>
@summary: Example tutoria... | 1,548 |
777 | // 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/chromeos/feedback_util.h"
#include "base/bind.h"
#include "base/callback.h"
#include "base/logging.h"
#include "chrome/browser/e... | 523 |
3,200 | <reponame>GuoSuiming/mindspore<gh_stars>1000+
# Copyright 2019 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.org/licenses/LICENSE-2.0... | 2,477 |
480 | <gh_stars>100-1000
import unittest
from nlu import *
class TestWordSegmenter(unittest.TestCase):
def test_word_segmenter(self):
pipe = nlu.load('zh.segment_words',verbose=True)
data = '您的生活就是矩阵编程固有的不平衡方程的剩余部分之和。您是异常的最终结果,尽管做出了我最大的努力,但我仍然无法消除数学精度的和谐。尽管仍然不遗余力地避免了负担,但这并不意外,因此也不超出控制范围。这无可避免地将您引向了这里。... | 732 |
14,425 | <filename>hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/crypto/CipherSuite.java
/**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownershi... | 1,037 |
2,671 | <reponame>timmartin/skulpt<filename>test/tokenize/t02.py<gh_stars>1000+
0o123 <= 0123
| 39 |
542 | #ifndef GUARD_le_tessellator_H
#define GUARD_le_tessellator_H
#include "le_core.h"
#ifdef __cplusplus
# include <glm/fwd.hpp>
#endif
struct le_tessellator_o;
// clang-format off
struct le_tessellator_api {
typedef uint16_t IndexType;
struct le_tessellator_interface_t {
static constexpr auto OptionsWindingsOf... | 1,352 |
1,652 | <reponame>z131031231/x-pipe
package com.ctrip.xpipe.redis.console.service;
import com.ctrip.xpipe.redis.console.AbstractConsoleIntegrationTest;
import com.ctrip.xpipe.redis.console.model.ZoneTbl;
import org.junit.Assert;
import org.junit.Test;
import org.springframework.beans.factory.annotation.Autowired;
import java... | 514 |
848 | /* Copyright 2018 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... | 773 |
14,668 | <gh_stars>1000+
// 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 "media/gpu/vaapi/test/scoped_va_context.h"
#include "media/gpu/vaapi/test/macros.h"
#include "media/gpu/vaapi/test/scoped_va_con... | 622 |
2,338 | //===--- RedundantPreprocessorCheck.h - clang-tidy --------------*- C++ -*-===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===---------------------------... | 460 |
1,338 | /*
* Copyright 2008, <NAME>, <EMAIL>.
* Distributed under the terms of the MIT License.
*/
#ifndef _VFS_FIFO_H
#define _VFS_FIFO_H
#include <fs_interface.h>
status_t create_fifo_vnode(fs_volume* superVolume, fs_vnode* vnode);
void fifo_init();
#endif // _VFS_FIFO_H
| 118 |
1,444 | <gh_stars>1000+
package org.mage.test.cards.single.m21;
import mage.constants.PhaseStep;
import mage.constants.Zone;
import mage.counters.CounterType;
import org.junit.Test;
import org.mage.test.serverside.base.CardTestPlayerBase;
public class AnimalSanctuaryTest extends CardTestPlayerBase {
private static final... | 1,726 |
14,668 | <filename>chromecast/crash/linux/dummy_minidump_generator.h
// 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 CHROMECAST_CRASH_LINUX_DUMMY_MINIDUMP_GENERATOR_H_
#define CHROMECAST_CRASH_LINUX_DUMM... | 464 |
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,452 |
558 | <reponame>pratikadarsh/Algorithms
/*
* @file ListStack.h
* @author (original JAVA) <NAME>, <EMAIL>
* (conversion to C++) <NAME>, <EMAIL>
* @date 02 July 2020
* @version 0.1
* @brief A linked list implementation of a stack.
*/
#ifndef D_LINKLIST_STACK_H
#define D_LINKLIST_STACK_H
#include <Stack.... | 1,028 |
2,980 | /*
* 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 ... | 548 |
32,544 | package com.baeldung.java9.language.stream;
import org.junit.Test;
import java.util.Arrays;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;
import java.util.stream.Stream;
import static java.lang.Integer.*;
import static org.junit.Assert.assertEquals;
publi... | 1,449 |
474 | package org.javacord.api.entity.channel;
import org.javacord.api.entity.channel.internal.GroupChannelUpdaterDelegate;
import org.javacord.api.util.internal.DelegateFactory;
import java.util.concurrent.CompletableFuture;
/**
* This class can be used to update group channels.
*/
public class GroupChannelUpdater {
... | 432 |
3,269 | // Time: O(m * n * log(m * n))
// Space: O(m * n)
// Dijkstra algorithm solution
class Solution {
public:
int minimumEffortPath(vector<vector<int>>& heights) {
static const vector<pair<int, int>> directions{{0, 1}, {1, 0},
{0, -1}, {-1, 0}};
... | 5,966 |
700 | #define BLKDEV_BASE 0x10015000
#define BLKDEV_ADDR BLKDEV_BASE
#define BLKDEV_OFFSET (BLKDEV_BASE + 8)
#define BLKDEV_LEN (BLKDEV_BASE + 12)
#define BLKDEV_WRITE (BLKDEV_BASE + 16)
#define BLKDEV_REQUEST (BLKDEV_BASE + 17)
#define BLKDEV_NREQUEST (BLKDEV_BASE + 18)
#define BLKDEV_COMPLETE (BLKDEV_BASE + 19)
#define BLK... | 456 |
5,250 | <filename>modules/flowable-variable-service/src/main/java/org/flowable/variable/service/impl/types/TraceableVariablesCommandContextCloseListener.java
/* 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 Lic... | 733 |
571 | //
// EmptyDataSet_Swift.h
// EmptyDataSet-Swift
//
// Created by <NAME> on 04/07/2019.
// Copyright © 2019 Xiaoye. All rights reserved.
//
#import <UIKit/UIKit.h>
//! Project version number for EmptyDataSet_Swift.
FOUNDATION_EXPORT double EmptyDataSet_SwiftVersionNumber;
//! Project version string for EmptyData... | 171 |
4,224 | /****************************************************************************
*
* Copyright (c) 2012-2016 PX4 Development Team. 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. Red... | 1,224 |
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,729 |
624 | package com.pinterest.doctork.security;
import javax.ws.rs.container.ContainerRequestFilter;
import com.pinterest.doctork.config.DoctorKConfig;
/**
* This extends JAX-RS containter request filter for authorization.
*
* Please refer to https://docs.oracle.com/javaee/7/api/javax/ws/rs/container/ContainerRequestFi... | 155 |
435 | # -*- coding: utf-8 -*-
from __future__ import absolute_import, print_function, division
import datetime
import os
import json
import time
import pytest
from petl.compat import text_type
from petl.io.gsheet import fromgsheet, togsheet, appendgsheet
from petl.test.helpers import ieq, get_env_vars_named
gspread = pyt... | 3,543 |
488 | int main() {
int s1=0,s2=0;
do {
s1=s1+1;
if(s1>5)
s1=s1+2;
do {
s2=s2+1;
if(s2>5)
s2=s2+2;
} while (s2<10);
} while (s1<10);
s2=0;
s1=0;
return 0;
}
| 151 |
482 | <filename>driver/src/main/java/com/impossibl/postgres/jdbc/DataSourceSettings.java
/**
* Copyright (c) 2013, imp<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:
*
* * Redistribution... | 1,402 |
1,006 | <gh_stars>1000+
/****************************************************************************
* arch/arm/src/rp2040/rp2040_dmac.c
*
* 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 reg... | 5,088 |
2,372 | <filename>physx/source/pvd/include/PxPvdDataStream.h
//
// 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... | 3,458 |
8,570 | {
"author": "Microsoft",
"name": "Blazor WebAssembly App Empty",
"description": "An empty project template for creating a Blazor app that runs on WebAssembly and is optionally hosted by an ASP.NET Core app. This template does not have any content in it.",
"symbols/Framework/description": "The target framework f... | 572 |
769 | <gh_stars>100-1000
/*
* Copyright (c) Baidu Inc. All rights reserved.
*
* 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 ... | 5,702 |
354 | #ifndef _ESEXTCTESSELLATIONSHADERBARRIER_HPP
#define _ESEXTCTESSELLATIONSHADERBARRIER_HPP
/*-------------------------------------------------------------------------
* OpenGL Conformance Test Suite
* -----------------------------
*
* Copyright (c) 2014-2016 The Khronos Group Inc.
*
* Licensed under the Apache Lic... | 2,210 |
628 | # -*- coding: utf-8 -*-
# Generated by Django 1.11.13 on 2018-07-18 13:51
from __future__ import unicode_literals
import logging
from django.db import migrations
logger = logging.getLogger(__file__)
def migrate_existing_registrations_into_osf_registries(state, schema):
AbstractProvider = state.get_model('osf', '... | 834 |
3,794 | <filename>examples/protorpc/handler/handler.h<gh_stars>1000+
#ifndef HV_PROTO_RPC_HANDLER_H_
#define HV_PROTO_RPC_HANDLER_H_
#include "../router.h"
void error_response(protorpc::Response* res, int code, const std::string& message) {
res->mutable_error()->set_code(code);
res->mutable_error()->set_message(messa... | 242 |
335 | <reponame>Safal08/Hacktoberfest-1
{
"word": "Vex",
"definitions": [
"Make (someone) feel annoyed, frustrated, or worried, especially with trivial matters.",
"Be annoyed, irritated, or unhappy.",
"Cause distress to."
],
"parts-of-speech": "Verb"
} | 116 |
341 | <gh_stars>100-1000
package com.ccnode.codegenerator.service.pojo;
/**
* What always stop you is what you always believe.
* <p>
* Created by zhengjun.du on 2016/07/05 16:38
*/
public class RegisterRequest extends ServerRequest {
String license;
public String getLicense() {
return license;
}
... | 141 |
416 | package org.simpleflatmapper.datastax.test;
import com.datastax.driver.core.*;
import com.datastax.driver.core.ResultSet;
import org.junit.Test;
import org.simpleflatmapper.datastax.DatastaxMapper;
import org.simpleflatmapper.datastax.DatastaxMapperFactory;
import org.simpleflatmapper.test.beans.DbObject;
import org.s... | 1,983 |
306 | <gh_stars>100-1000
{
"files": {
"readmeSize": 803,
"testsSize": 783379,
"hasNpmIgnore": true,
"hasChangelog": true
},
"badges": [
{
"info": {
"service": "circleci",
"type": "build"
},
"urls": {
"content": "https://img.shields.io/circleci/project/github... | 836 |
575 | // 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 "content/browser/code_cache/generated_code_cache_context.h"
#include <memory>
#include "base/bind.h"
#include "base/files/file_path.h"
#include ... | 626 |
678 | <filename>iOSOpenDev/frameworks/IMCore.framework/Frameworks/IMDaemonCore.framework/Headers/IMDMessageStore.h
/**
* This header is generated by class-dump-z 0.2b.
*
* Source: /System/Library/PrivateFrameworks/IMCore.framework/Frameworks/IMDaemonCore.framework/IMDaemonCore
*/
#import <IMDaemonCore/IMDaemonCore-Struc... | 1,332 |
5,788 | /*
* 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 ... | 941 |
669 | <filename>onnxruntime/core/providers/nnapi/nnapi_builtin/builders/helper.cc
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
#include <iostream>
#include <string>
#include <vector>
#include "helper.h"
#include "core/common/safeint.h"
#include "core/common/logging/loggin... | 6,065 |
1,350 | # MIT License
#
# Copyright (C) The Adversarial Robustness Toolbox (ART) Authors 2018
#
# 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
# r... | 893 |
1,375 | // Copyright lowRISC contributors.
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
#ifndef OPENTITAN_SW_DEVICE_LIB_DIF_AUTOGEN_DIF_ALERT_HANDLER_AUTOGEN_H_
#define OPENTITAN_SW_DEVICE_LIB_DIF_AUTOGEN_DIF_ALERT_HANDLER_AUTOGEN_H_
// THIS FILE HAS BEEN ... | 2,294 |
2,921 | {
"name": "Wagerr",
"symbol": "WWGR",
"type": "ERC20",
"decimals": 8,
"description": "Tokenized version of the Wagerr",
"website": "https://www.wagerr.com",
"explorer": "https://etherscan.io/token/0xC237868a9c5729bdF3173dDDacaa336a0a5BB6e0",
"status": "active",
"id": "0xC237868a9c572... | 179 |
678 | <gh_stars>100-1000
/**
* This header is generated by class-dump-z 0.2b.
*
* Source: /System/Library/PrivateFrameworks/OfficeImport.framework/OfficeImport
*/
#import <OfficeImport/MFCocoaBrush.h>
@class NSColorStub;
__attribute__((visibility("hidden")))
@interface MFCocoaHatchBrush : MFCocoaBrush {
@private
NSCo... | 244 |
5,079 | <reponame>yetsun/hue
#------------------------------------------------------------------------------
# Copyright 2018, Oracle and/or its affiliates. All rights reserved.
#------------------------------------------------------------------------------
#--------------------------------------------------------------------... | 445 |
5,169 | <filename>Specs/RTDraggableBadge/0.1.1/RTDraggableBadge.podspec.json
{
"name": "RTDraggableBadge",
"version": "0.1.1",
"summary": "A drag to clear badge view",
"description": "This project is inspired by Mobile QQ, a drag to clear badge view.",
"homepage": "https://github.com/rickytan/RTDraggableBadge",
"sc... | 324 |
317 | /*
* Copyright (C) 2005-2020 Centre National d'Etudes Spatiales (CNES)
*
* This file is part of Orfeo Toolbox
*
* https://www.orfeo-toolbox.org/
*
* 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 ... | 650 |
14,668 | // Copyright 2021 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 "mojo/public/cpp/bindings/lib/handle_serialization.h"
#include "base/numerics/safe_conversions.h"
#include "mojo/public/cpp/bindings/lib/binding... | 1,149 |
362 | <filename>test/src/mocks/mock_nothrowallocator.cpp
#include "mock_nothrowallocator.h"
| 36 |
1,949 | /*
* Copyright (c) 2016-2016, <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 condition... | 569 |
622 | from runtime import *
'''
for loop tests
'''
def main():
a = [1,2,3]
y = 0
for x in a:
y += x
assert( y==6 )
z = ''
arr = ['a', 'b', 'c']
for v in arr:
z += v
assert( z == 'abc' )
b = False
if 'a' in arr:
b = True
assert( b == True )
s = 'hello world'
z = ''
for char in iter(s):
z += char
as... | 545 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.