max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
681 | <filename>FeatureFlagsCo.Experiments/redismq/redis_health_check.py
import logging
from azure_service_bus.insight_utils import get_insight_logger
from config.config_handling import get_config_value
from experiment.health_check import HealthCheck
engine = get_config_value('general', 'engine')
if engine == 'azure' or e... | 649 |
594 | <reponame>Skycoder42/QtAutoUpdater
#include "qmlupdateinfomodel.h"
using namespace QtAutoUpdater;
QmlUpdateInfoModel::QmlUpdateInfoModel(QObject *parent) :
QAbstractListModel{parent}
{}
int QmlUpdateInfoModel::rowCount(const QModelIndex &parent) const
{
Q_ASSERT(checkIndex(parent, CheckIndexOption::DoNotUseParent))... | 542 |
1,454 | #!/usr/bin/env python3
import os
import sys
import unittest
import unittest.mock
sys.path.insert(
0, os.path.abspath(os.path.join(os.path.dirname(os.path.dirname(__file__)), ".."))
)
import core.python.utils
from core.python.utils import (
extract_cgid_from_dir_name,
ip_address_or_range_is_valid,
nor... | 5,204 |
780 | package com.codeborne.selenide;
import javax.annotation.CheckReturnValue;
import javax.annotation.Nonnull;
import javax.annotation.ParametersAreNonnullByDefault;
/**
* Authentication schemes.
*
* @see <a href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Authentication#Authentication_schemes">Web HTTP referen... | 246 |
930 | # -*- coding: utf-8 -*-
# Generated by Django 1.11.10 on 2018-03-23 16:30
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('humans', '0010_auto_20170... | 618 |
716 | <gh_stars>100-1000
/*
* 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
*
*/
/********************************************************
FIXME: get rid of this "impor... | 5,225 |
8,323 | from sympy.physics.units.systems.mks import MKS
from sympy.physics.units.systems.mksa import MKSA
from sympy.physics.units.systems.natural import natural
from sympy.physics.units.systems.si import SI
__all__ = ['MKS', 'MKSA', 'natural', 'SI']
| 89 |
501 | <reponame>mortenwh/django-userena
from django.utils import translation
from django.core.exceptions import ObjectDoesNotExist
from django.conf import settings
from userena import settings as userena_settings
from userena.compat import SiteProfileNotAvailable
from userena.utils import get_user_profile
class UserenaLoc... | 528 |
379 | <reponame>oimchat/oim-fx
package com.oim.core.common.box;
import java.util.HashMap;
import java.util.Map;
/**
* @author: XiaHui
* @date: 2017年5月26日 下午3:05:58
*/
public class DictionaryBox {
static Map<String,Map<String,String>> map=new HashMap<String,Map<String,String>>();
static{
}
// public static String ... | 192 |
9,866 | <reponame>hzhangse/codis<gh_stars>1000+
#define REDIS_GIT_SHA1 "0a557843"
#define REDIS_GIT_DIRTY "0"
#define REDIS_BUILD_ID "spinlock.bej.corp.google.com-1508934765"
| 81 |
348 | <gh_stars>100-1000
{"nom":"Saint-Florent","circ":"1ère circonscription","dpt":"Haute-Corse","inscrits":1500,"abs":560,"votants":940,"blancs":47,"nuls":8,"exp":885,"res":[{"nuance":"REG","nom":"<NAME>","voix":565},{"nuance":"LR","nom":"<NAME>","voix":320}]} | 101 |
650 | import time
t_start = time.time()
import os
import sys
import tempfile
import shutil
from argparse import Namespace
from pathlib import Path
import cog
import dlib
import numpy as np
import torch
import torchvision.transforms as transforms
from torchvision import utils
from PIL import Image
sys.path.insert(0, "/co... | 3,044 |
1,587 | /**
*
*/
package io.pratik.healthcheck.usersignup;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
/**
* @author <NAME>
*
*/
@Data
@Builder
@Entity
@NoArgsConstructor
@Table(name="USERS")
p... | 288 |
878 | <filename>src/wtf/socket.h
// Axel '0vercl0k' Souchet - November 6 2020
#pragma once
#include "backend.h"
#include "globals.h"
#include "platform.h"
#include "tsl/robin_set.h"
#include "yas/serialize.hpp"
#include "yas/std_types.hpp"
#include <fmt/format.h>
#include <optional>
#include <span>
#include <string>
#ifdef ... | 1,323 |
5,169 | <filename>Specs/7/e/3/OguryAds/2.3.4/OguryAds.podspec.json
{
"description": "Ogury Ads SDK.",
"vendored_frameworks": "OguryAds/OguryAds.xcframework",
"frameworks": [
"AdSupport",
"SystemConfiguration",
"UIKit"
],
"version": "2.3.4",
"default_subspecs": [
"OMID"
],
"weak_frameworks": "Cor... | 504 |
785 | <filename>servicetalk-concurrent-api/src/test/java/io/servicetalk/concurrent/api/publisher/PubCompletableOrErrorTest.java
/*
* Copyright © 2020-2021 Apple Inc. and the ServiceTalk project authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance wit... | 900 |
370 | <filename>datetime/src/test/java/com/fasterxml/jackson/datatype/jsr310/key/PeriodAsKeyTest.java
package com.fasterxml.jackson.datatype.jsr310.key;
import java.time.Period;
import java.util.Map;
import com.fasterxml.jackson.core.type.TypeReference;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterx... | 739 |
3,083 | // Copyright 2011-2016 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... | 596 |
348 | {"nom":"Baliros","circ":"2ème circonscription","dpt":"Pyrénées-Atlantiques","inscrits":371,"abs":196,"votants":175,"blancs":11,"nuls":5,"exp":159,"res":[{"nuance":"MDM","nom":"<NAME>","voix":86},{"nuance":"SOC","nom":"<NAME>","voix":73}]} | 97 |
3,799 | <filename>camera/camera-core/src/main/java/androidx/camera/core/DisplayOrientedMeteringPointFactory.java
/*
* Copyright 2019 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... | 2,700 |
2,577 | <reponame>mdsarfarazalam840/camunda-bpm-platform<filename>model-api/cmmn-model/src/main/java/org/camunda/bpm/model/cmmn/impl/instance/CriterionImpl.java<gh_stars>1000+
/*
* Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH
* under one or more contributor license agreements. See the NOTICE file
... | 1,018 |
361 | <gh_stars>100-1000
from .E_tracker import EssTracker
from .pnp_tracker import PnpTracker | 30 |
1,660 | package com.zcy.ghost.vivideo.model.http.api;
import com.zcy.ghost.vivideo.model.bean.GankHttpResponse;
import com.zcy.ghost.vivideo.model.bean.GankItemBean;
import java.util.List;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.GET;
import retrofit2.http.POST;
import retrofit2.http.Path;
import retrofi... | 288 |
2,863 | <reponame>vjlamp/spock<filename>spock-core/src/main/java/org/spockframework/util/SpockReleaseInfo.java
/*
* Copyright 2009 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 o... | 754 |
400 | package org.ofdrw.core.basicType;
/**
* 点坐标,以格分割,前者为 x值,后者为 y值,可以是整数或浮点数
* <p>
* 示例:
* <code>0 0</code>
* <p>
* ————《GB/T 33190-2016》 表 2 基本数据类型
*/
public class ST_Pos extends STBase {
/**
* X坐标
* <p>
* 从左 到 右
*/
private Double x = 0d;
/**
* y坐标
* <p>
* 从上 到 下
... | 827 |
429 | <filename>klinelib/src/main/java/com/vinsonguo/klinelib/model/MACD.java
package com.vinsonguo.klinelib.model;
import java.util.ArrayList;
import java.util.List;
public class MACD {
private List<Double> DEAs;
private List<Double> DIFs;
private List<Double> MACDs;
/**
* 得到MACD数据
*
* @p... | 1,090 |
326 | <reponame>bihell/Dice
package com.bihell.dice.framework.core.validator;
import com.bihell.dice.framework.core.validator.constraints.Phone;
import javax.validation.ConstraintValidator;
import javax.validation.ConstraintValidatorContext;
import java.util.regex.Pattern;
/**
* 自定义手机号码验证注解实现类 todo
*/
public class Phone... | 292 |
382 | /*
* 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.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... | 385 |
1,590 | {
"parameters": {
"api-version": "2018-02-01"
},
"responses": {
"200": {
"headers": {},
"body": {
"value": [
{
"name": "Microsoft.DomainRegistration/domains/Read",
"display": {
"provider": "Microsoft Domains",
"resource": "D... | 1,839 |
1,162 | package io.digdag.standards.command;
import com.fasterxml.jackson.databind.node.ObjectNode;
import com.google.inject.Inject;
import io.digdag.commons.ThrowablesUtil;
import io.digdag.spi.CommandExecutor;
import io.digdag.spi.CommandContext;
import io.digdag.spi.CommandRequest;
import io.digdag.spi.CommandLogger;
impor... | 764 |
909 | <reponame>Kukulin13013/navigation
package com.dji.sdk.sample.internal.audiohandler;
public class MediaRecorderOptions {
private Builder mBuilder;
private MediaRecorderOptions(Builder builder) {
mBuilder = builder;
}
public int getAudioSamplingRate() {
return mBuilder.mAudioSamplingRat... | 580 |
3,705 | <reponame>zjzh/chainer<filename>examples/text_classification/run_text_classifier.py
#!/usr/bin/env python
import argparse
import json
import sys
import chainer
import numpy
import nets
import nlp_utils
def setup_model(device, model_setup):
sys.stderr.write(json.dumps(args.__dict__, indent=2) + '\n')
setup =... | 1,835 |
1,224 | /*
Copyright (C) 2018 <NAME>. - All Rights Reserved
* You may use, distribute and modify this code under the
* terms of the MIT license.
* You should have received a copy of the MIT license with
* this file. If not visit https://opensource.org/licenses/MIT
*/
#include "local_optimizer.hpp"
#include <cmath>
#includ... | 1,543 |
11,356 | <gh_stars>1000+
///////////////////////////////////////////////////////////////////////////////
// rolling_mean.hpp
// Copyright (C) 2008 <NAME>.
// Copyright (C) 2012 <NAME> (Integricom).
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.bo... | 2,330 |
451 | //
// MKBDoubleInvocationHandler.h
// MockingbirdFramework
//
// Created by typealias on 7/19/21.
//
#import "MKBInvocationHandler.h"
NS_ASSUME_NONNULL_BEGIN
@interface MKBDoubleInvocationHandler : MKBInvocationHandler
@end
NS_ASSUME_NONNULL_END
| 97 |
1,480 | {
"name": "TypeScript Website codespace",
"dockerFile": "Dockerfile",
// Set *default* container specific settings.json values on container create.
"settings": {
"terminal.integrated.shell.linux": "/bin/bash"
},
"forwardPorts": [8000],
// Use 'postCreateCommand' to run commands after the container ... | 121 |
325 |
#include "LostModification.hpp"
// #include "LostModification2.hpp" // <jet_tag: lost_mod:2>
int lostModificationGetValue()
{
return 12; // <jet_tag: lost_mod:1>
// return lostModificationGetAnotherValue(); // <jet_tag: lost_mod:2>
}
| 94 |
2,151 | // Copyright (c) 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include <algorithm>
#include <sstream>
#include "build/build_config.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "tools/gn/ninja_actio... | 6,458 |
971 | package com.ucar.datalink.biz.dal;
import com.ucar.datalink.domain.worker.WorkerJvmStateInfo;
import org.apache.ibatis.annotations.Param;
import java.util.Date;
import java.util.List;
/**
* Created by sqq on 2018/1/19.
*/
public interface WorkerJvmStateDAO {
Integer insert(WorkerJvmStateInfo jvmMonitorInfo);
... | 206 |
2,073 | <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 "Lic... | 1,939 |
1,711 | # Copyright 2015-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 agreed to in writin... | 3,215 |
3,731 | <reponame>cclauss/lux
import pytest
import pandas as pd
import psycopg2
import lux
@pytest.fixture(scope="session")
def global_var():
connection = psycopg2.connect("host=localhost dbname=postgres user=postgres password=<PASSWORD>")
lux.config.set_SQL_connection(connection)
url = "https://github.com/lux-o... | 498 |
3,371 | <gh_stars>1000+
package com.beloo.widget.chipslayoutmanager.layouter.criteria;
import com.beloo.widget.chipslayoutmanager.layouter.AbstractLayouter;
abstract class FinishingCriteriaDecorator implements IFinishingCriteria {
private IFinishingCriteria finishingCriteria;
FinishingCriteriaDecorator(IFinishingCr... | 186 |
1,444 | <gh_stars>1000+
package mage.cards.m;
import java.util.UUID;
import mage.abilities.effects.common.PutLibraryIntoGraveTargetEffect;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import mage.target.common.TargetOpponent;
/**
*
* @author North
*/
public final class MindSc... | 325 |
428 | <reponame>cping/LGame
/**
* Copyright 2008 - 2019 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 of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* U... | 1,183 |
623 | /*
* Copyright 2018 The StartupOS 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or... | 618 |
32,544 | package com.baeldung.boot.services.impl;
import com.baeldung.boot.daos.IBarCrudRepository;
import com.baeldung.boot.domain.Bar;
import com.baeldung.boot.services.IBarService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Page;
import org.springframework.data.rep... | 301 |
1,204 | /*
* Copyright 2015 <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 applicable law or agree... | 542 |
1,056 | <filename>java/java.navigation/src/org/netbeans/modules/java/navigation/ClassMemberNavigatorJavaSourceFactory.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 copyri... | 1,231 |
763 | <gh_stars>100-1000
package org.batfish.specifier;
import static org.hamcrest.Matchers.allOf;
import static org.hamcrest.Matchers.hasItem;
import java.util.Collection;
import java.util.Set;
import org.batfish.datamodel.IpSpace;
import org.batfish.specifier.IpSpaceAssignment.Entry;
import org.batfish.specifier.IpSpaceA... | 456 |
703 | #pragma once
#include <RendererCore/Pipeline/Renderer.h>
class ezMeshRenderData;
struct ezPerInstanceData;
/// \brief Implements rendering of static meshes
class EZ_RENDERERCORE_DLL ezMeshRenderer : public ezRenderer
{
EZ_ADD_DYNAMIC_REFLECTION(ezMeshRenderer, ezRenderer);
EZ_DISALLOW_COPY_AND_ASSIGN(ezMeshRende... | 372 |
2,151 | // Copyright 2017 PDFium 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 "core/fxcodec/gif/cfx_gifcontext.h"
#include "core/fxcrt/unowned_ptr.h"
#include "testing/gtest/include/gtest/gtest.h"
class CFX_GifContextForTest : ... | 5,055 |
354 | #ifndef _GLSLONGSTRESSTESTUTIL_HPP
#define _GLSLONGSTRESSTESTUTIL_HPP
/*-------------------------------------------------------------------------
* drawElements Quality Program OpenGL (ES) Module
* -----------------------------------------------
*
* Copyright 2014 The Android Open Source Project
*
* Licensed unde... | 671 |
2,757 | /** @file
Provides services for SMM Memory Operation.
The SMM Mem Library provides function for checking if buffer is outside SMRAM and valid.
It also provides functions for copy data from SMRAM to non-SMRAM, from non-SMRAM to SMRAM,
from non-SMRAM to non-SMRAM, or set data in non-SMRAM.
Copyright (c... | 1,801 |
322 | <reponame>Fostereee/Transformer-MM-Explainability
#!/usr/bin/env python3 -u
# Copyright (c) Facebook, Inc. and its affiliates.
import argparse
import logging
import random
import typing
import torch
from VisualBERT.mmf.common.registry import registry
from VisualBERT.mmf.utils.build import build_config, build_trainer
f... | 1,673 |
1,444 |
package org.mage.test.multiplayer;
import mage.constants.PhaseStep;
import mage.constants.Zone;
import org.junit.Test;
import org.mage.test.serverside.base.CardTestMultiPlayerBase;
/**
*
* @author LevelX2
*/
public class PrimordialTest extends CardTestMultiPlayerBase {
/**
* Tests Primordial cards with ... | 2,220 |
348 | <gh_stars>100-1000
{"nom":"Saint-Julien-de-Toursac","dpt":"Cantal","inscrits":120,"abs":18,"votants":102,"blancs":11,"nuls":5,"exp":86,"res":[{"panneau":"1","voix":73},{"panneau":"2","voix":13}]} | 84 |
849 | #!/usr/bin/env python3
"""
Copyright 2020 The Magma Authors.
This source code is licensed under the BSD-style license found in the
LICENSE file in the root directory of this source tree.
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BAS... | 5,182 |
6,931 | #!/usr/bin/env python
# coding: utf-8
# DO NOT EDIT
# Autogenerated from the notebook stl_decomposition.ipynb.
# Edit the notebook and then sync the output with this file.
#
# flake8: noqa
# DO NOT EDIT
# # Seasonal-Trend decomposition using LOESS (STL)
#
# This note book illustrates the use of `STL` to decompose a t... | 5,190 |
5,169 | <reponame>Gantios/Specs
{
"name": "FollowApps",
"version": "5.1.2-beta",
"summary": "FollowApps SDK for analytics on iOS.",
"description": "Transform your mobile presence into mobile profits by optimizing your mobile apps to acquire new customers and grow revenue.",
"homepage": "http://www.followanalytics.com... | 552 |
4,812 | <filename>llvm/lib/Target/Lanai/MCTargetDesc/LanaiMCExpr.cpp
//===-- LanaiMCExpr.cpp - Lanai specific MC expression classes ------------===//
//
// 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: Apach... | 738 |
553 | {
"url": "/marker-locations?teamId=5bb51100585ada29401ee9c5&streamId=5c05ab736f6e2b29beae5942&commitHash=4c62fa5ba1431d5202e0aea30a37a7ed6075ade9",
"response": {
"markerLocations": {}
}
} | 98 |
373 | <reponame>linkingtd/UniAuth<gh_stars>100-1000
package com.dianrong.common.uniauth.server.support.tree;
import com.dianrong.common.uniauth.common.cons.AppConstants;
/**
* 定义树结构的类型.
*/
public enum TreeType {
/**
* 普通的树关系.
*/
NORMAL(AppConstants.GRP_ROOT),
/**
* 组织关系树关系.
*/
ORGANIZATION(AppConstan... | 242 |
5,169 | <reponame>Gantios/Specs
{
"name": "SYImageColorTools",
"version": "0.1.3",
"license": "Custom",
"summary": "It s always a hassle to get pixel information of an UIImage. Let s remedy that",
"homepage": "https://github.com/dvkch/SYImageColorTools",
"authors": {
"<NAME>": "<EMAIL>"
},
"source": {
"... | 338 |
783 | #include "wave.h"
int NUM_OF_CU = 0;
ComputeUnit allCUs[MAX_NUM_OF_CU];
Wavefront lastSchldWavefront;
Resources toSchedule[MAX_WFS_IN_TEST];
Resources workgroups[MAX_WFS_IN_TEST];
int maxWorkgroup = 0;
int currWorkgroup = 0;
int maxToSch = -1;
int curToSch = 0;
int lastStartCU = -1;
int wg2cu[MAX... | 9,107 |
426 | <filename>IfcPlusPlus/src/ifcpp/IFC4/lib/IfcDerivedUnitElement.cpp
/* Code generated by IfcQuery EXPRESS generator, www.ifcquery.com */
#include <sstream>
#include <limits>
#include "ifcpp/model/AttributeObject.h"
#include "ifcpp/model/BuildingException.h"
#include "ifcpp/model/BuildingGuid.h"
#include "ifcpp/r... | 946 |
1,844 | /*
* Copyright 2010-2013 Ning, Inc.
*
* Ning licenses this file to you 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... | 701 |
7,886 | /*
* Copyright (c) Meta Platforms, Inc. and 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 appl... | 677 |
5,250 | /* 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
* distribut... | 1,421 |
369 | <filename>FreeRTOSv10.4.1/FreeRTOS/Demo/CORTEX_A9_Cyclone_V_SoC_DK/Altera_Code/HardwareLibrary/include/alt_interrupt_common.h
/******************************************************************************
*
* Copyright 2013 Altera Corporation. All Rights Reserved.
*
* Redistribution and use in source and binary forms... | 10,351 |
5,169 | <gh_stars>1000+
{
"name": "SwiftNatsNueve",
"version": "5.0.0",
"swift_versions": "5.0",
"summary": "A Swift client for the NATS messaging system.",
"description": "Swift 5.0 client for NATS, the cloud native messaging system. https://nats.io",
"homepage": "https://github.com/mrsnow-git/SwiftNats",
"licen... | 321 |
1,851 | //
// VROARAnchor.h
// ViroKit
//
// Created by <NAME> on 6/6/17.
// Copyright © 2017 Viro Media. All rights reserved.
//
// 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 res... | 1,633 |
308 | /*
* Automatically generated by genbuiltins.py, do not edit!
*/
#include "duk_internal.h"
#if defined(DUK_USE_ASSERTIONS)
#define DUK__REFCINIT(refc) 0 /*h_assert_refcount*/, (refc) /*actual*/
#else
#define DUK__REFCINIT(refc) (refc) /*actual*/
#endif
#if defined(DUK_USE_ROM_STRINGS)
#error ROM support not enable... | 31,227 |
5,169 | <reponame>Gantios/Specs
{
"name": "PHLCheckbox",
"version": "1.0.1",
"summary": "Checkbox para iOS criado a partir de um UIButton.",
"description": "Checkbox desenvolvido a partir de um UIButton. Sem utilizar imagens ou frameworks de terceiros. Usando apenas uma fonte customizada.",
"homepage": "https://githu... | 669 |
1,502 | <reponame>otreblan/libtree
int c();
int b() {
return c();
}
| 32 |
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
... | 892 |
945 | /*
* 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 ... | 3,117 |
1,799 | package io.cucumber.compatibility.minimal;
import io.cucumber.java.en.Given;
import static org.junit.jupiter.api.Assertions.assertEquals;
public class Minimal {
@Given("I have {int} cukes in my belly")
public void I_have_int_cukes_in_my_belly(int cukeCount) {
assertEquals(42, cukeCount);
}
}
| 130 |
365 | """
Only works for 'basic type' properties (bool, int and float)!
Multi-dimensional arrays (like array of vectors) will be flattened into seq.
"""
collection.foreach_get(attr, some_seq)
# Python equivalent
for i in range(len(seq)):
some_seq[i] = getattr(collection[i], attr)
| 89 |
1,025 | <filename>CodeXL/Components/GpuDebugging/AMDTProcessDebugger/src/pdLoadedModulesManager.cpp
//==================================================================================
// Copyright (c) 2016 , Advanced Micro Devices, Inc. All rights reserved.
//
/// \author AMD Developer Tools Team
/// \file pdLoadedModulesMan... | 3,697 |
790 | from admin_scripts.complex_app.models.bar import Bar
| 15 |
4,392 | <filename>l2param.h
#ifndef GEMV_PARAM_H
#define GEMV_PARAM_H
#ifdef movsd
#undef movsd
#endif
#undef movapd
#define movapd movaps
#ifdef ATHLON
#define ALIGNED_ACCESS
#define MOVUPS_A movaps
#define MOVUPS_XL movaps
#define MOVUPS_XS movaps
#define MOVUPS_YL movaps
#define MOVUPS_YS movaps
#define PREFETCH prefetc... | 1,984 |
1,694 | //
// Generated by class-dump 3.5 (64 bit) (Debug version compiled Sep 17 2017 16:24:48).
//
// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2015 by <NAME>.
//
#import <objc/NSObject.h>
@class NSString;
@interface WNFileInfo : NSObject
{
NSString *filePath;
NSString *_fileTitle;
}
@propert... | 209 |
5,937 | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
/**************************************************************************
* module: UTIL.C
*
*
* utility modul... | 470 |
3,223 | <reponame>kouvel/corert<filename>src/Native/ObjWriter/debugInfo/codeView/codeViewTypeBuilder.h<gh_stars>1000+
//===---- codeViewTypeBuilder.h ---------------------------------*- C++ -*-===//
//
// type builder is used to convert .Net types into CodeView descriptors.
//
// Licensed to the .NET Foundation under one or mo... | 837 |
1,555 | <gh_stars>1000+
MIR_item_t create_mir_func_with_loop (MIR_context_t ctx, MIR_module_t *m) {
MIR_item_t func;
MIR_label_t fin, cont;
MIR_reg_t ARG1, R2;
MIR_type_t res_type;
if (m != NULL) *m = MIR_new_module (ctx, "m");
res_type = MIR_T_I64;
func = MIR_new_func (ctx, "loop", 1, &res_type, 1, MIR_T_I64, "... | 811 |
335 | <filename>H/Hubris_noun.json
{
"word": "Hubris",
"definitions": [
"Excessive pride or self-confidence.",
"(in Greek tragedy) excessive pride towards or defiance of the gods, leading to nemesis."
],
"parts-of-speech": "Noun"
} | 100 |
985 | <gh_stars>100-1000
package com.github.zxh.classpy.classfile.attribute;
/*
EnclosingMethod_attribute {
u2 attribute_name_index;
u4 attribute_length;
u2 class_index;
u2 method_index;
}
*/
public class EnclosingMethodAttribute extends AttributeInfo {
{
u2cp("class_index");
... | 160 |
1,510 | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | 772 |
678 | /**
* This header is generated by class-dump-z 0.2b.
*
* Source: /System/Library/PrivateFrameworks/ScreenReaderOutputServer.framework/ScreenReaderOutputServer
*/
#import <ScreenReaderOutputServer/XXUnknownSuperclass.h>
@class NSMutableDictionary, NSMutableArray;
// iOSOpenDev: wrapped with define check (since oc... | 638 |
32,544 | <reponame>DBatOWL/tutorials<gh_stars>1000+
package com.baeldung.composite.repository;
import com.baeldung.composite.BookApplication;
import com.baeldung.composite.entity.Book;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import org.junit.jupiter.api.AfterEach;
import org.junit.jupiter.api.Be... | 689 |
3,861 | /** @file
This PPI is installed by the platform PEIM to designate that a recovery boot
is in progress.
Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
@par Revision Reference:
This PPI is introduced in PI Version 1.0.
**/
#i... | 282 |
743 | /*
* This file is part of Pebble.
*
* Copyright (c) 2014 by <NAME>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
package com.mitchellbosecke.pebble;
import com.mitchellbosecke.pebble.error.PebbleException;
import com.mitchellbos... | 1,790 |
448 | <gh_stars>100-1000
class Solution {
public:
// we will use kadane's algorithm
int maxSubArray(vector<int>& nums) {
int max_sum = INT_MIN;
int current_sum = 0;
for(int i=0;i<nums.size();i++){
current_sum += nums[i];
max_sum = max(max_sum, current_sum);
... | 203 |
852 | //
// This class provide the data structure for the
// ROC DAC parameters
//
// At this point I do not see a reason to make an
// abstract layer for this code.
//
#include "CalibFormats/SiPixelObjects/interface/PixelROCDACSettings.h"
#include "CalibFormats/SiPixelObjects/interface/PixelDACNames.h"
#include <fstream>
#... | 15,571 |
14,668 | <reponame>zealoussnow/chromium
// Copyright (c) 2010 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_COCOA_APPLESCRIPT_CONSTANTS_APPLESCRIPT_H_
#define CHROME_BROWSER_UI_COCOA_APPLESCRIPT_CONSTA... | 350 |
2,118 | // Copyright (c) 2006-2018 <NAME>
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE or copy at http://www.boost.org/LICENSE_1_0.txt)
#include "test_skiplist_hp.h"
#include <cds/container/skip_list_map_hp.h>
namespace {
namespace cc = cds::container;
typedef cd... | 473 |
1,244 |
#ifndef sodium_utils_H
#define sodium_utils_H
#include <stddef.h>
#include "export.h"
#ifdef __cplusplus
extern "C" {
#endif
#ifndef SODIUM_C99
# if defined(__cplusplus) || !defined(__STDC_VERSION__) || __STDC_VERSION__ < 199901L
# define SODIUM_C99(X)
# else
# define SODIUM_C99(X) X
# endif
#endif
SODIUM_EXPOR... | 1,410 |
6,140 | # encoding=utf-8
import warnings
from collections import OrderedDict
from airtest.core.android.touch_methods.minitouch import Minitouch
from airtest.core.android.touch_methods.maxtouch import Maxtouch
from airtest.core.android.constant import TOUCH_METHOD
from airtest.utils.logger import get_logger
LOGGING = get_logg... | 2,993 |
799 | from CommonServerPython import *
''' IMPORTS '''
import urllib.parse
import urllib3
from typing import List, Dict, Any, Tuple, Union, Callable
# Disable insecure warnings
urllib3.disable_warnings()
''' CONSTANTS '''
MESSAGES: Dict[str, str] = {
'TEST_FAILED_ERROR': 'Test connectivity failed. Check the configur... | 4,598 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.