max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
721 | /**
* This file is part of the "clip" project
* Copyright (c) 2018 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the Licen... | 589 |
12,366 | <filename>tests/ios/in-tree-vendor-prebuilt-deps/Pods/Tink/Frameworks/Tink.framework/Headers/TINKAllConfig.h<gh_stars>1000+
/**
* Copyright 2017 Google 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... | 522 |
427 | <reponame>ryoon/rustc-1.19.0<filename>src/compiler-rt/lib/scudo/scudo_utils.h
//===-- scudo_utils.h -------------------------------------------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TX... | 564 |
751 | <gh_stars>100-1000
package okreplay;
import java.net.InetAddress;
import java.net.UnknownHostException;
import java.util.Arrays;
import java.util.Collection;
class Network {
static Collection<String> getLocalAddresses() {
try {
InetAddress local = InetAddress.getLocalHost();
return Arrays.asList(loc... | 179 |
322 | #!/usr/bin/env python
"""
Copyright (c) 2006-2017 sqlmap developers (http://sqlmap.org/)
See the file 'doc/COPYING' for copying permission
"""
import os
import string
from lib.core.enums import PRIORITY
from lib.core.common import singleTimeWarnMessage
__priority__ = PRIORITY.LOW
def dependencies():
singleTime... | 638 |
892 | {
"schema_version": "1.2.0",
"id": "GHSA-2wp2-chmh-r934",
"modified": "2022-05-13T01:19:23Z",
"published": "2022-05-13T01:19:23Z",
"aliases": [
"CVE-2018-17142"
],
"details": "The html package (aka x/net/html) through 2018-09-17 in Go mishandles <math><template><mo><template>, leading to a \"panic: ru... | 612 |
476 | /*
* 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,293 |
985 | <reponame>kastiglione/zld
int bar;
| 18 |
483 | <gh_stars>100-1000
class Solution {
public:
string ReverseSentence(string str) {
auto size = str.size();
if (size==0) return "";
int mark = 0;
str += ' ';
for (int i = 0;i<size+1;i++){
if (str[i] == ' '){
ReverseWord(str,mark,i-1);
... | 362 |
416 | <filename>test/compile_failure_tests/packing/material.cpp
// This file is distributed under the MIT license.
// See the LICENSE file for details.
#include <visionaray/array.h>
#include <visionaray/material.h>
using namespace visionaray;
// Material type to check
#if defined MATERIAL_MATTE
template <typename T>
... | 534 |
1,319 | # Copyright (c) 2019 PaddlePaddle Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by app... | 7,589 |
513 | <reponame>igit-cn/zeus-iot<filename>zeus-core/src/main/java/com/zmops/iot/core/auth/exception/enums/AuthExceptionEnum.java
package com.zmops.iot.core.auth.exception.enums;
import com.zmops.iot.model.exception.AbstractBaseExceptionEnum;
import lombok.Getter;
/**
* 认证失败的异常枚举
*
* @author fengshuonan
*/
@Getter
publi... | 641 |
816 | /*
* Copyright 2016-2020 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unles... | 992 |
933 | <reponame>android-risc-v/external_perfetto
/*
* Copyright (C) 2018 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.org/licens... | 1,879 |
910 | <reponame>ThePreviousOne/SVG-Android<filename>docs/action/java/ic_alarm.java
package com.github.megatronking.svg.iconlibs;
import android.content.Context;
import android.graphics.Canvas;
import android.graphics.ColorFilter;
import android.graphics.Paint;
import com.github.megatronking.svg.support.SVGRenderer;
... | 1,749 |
5,535 | <reponame>reshke/gpdb
//---------------------------------------------------------------------------
// Greenplum Database
// Copyright (C) 2012 EMC Corp.
//
// @filename:
// CRangeTest.h
//
// @doc:
// Test for ranges
//---------------------------------------------------------------------------
#ifndef GPOPT_CRangeTe... | 599 |
318 | /**
* @file libnatpmp.h Interface to NAT-PMP Client library
*
* Copyright (C) 2010 <NAME>
*/
enum {
NATPMP_VERSION = 0,
NATPMP_PORT = 5351,
};
enum natpmp_op {
NATPMP_OP_EXTERNAL = 0,
NATPMP_OP_MAPPING_UDP = 1,
NATPMP_OP_MAPPING_TCP = 2,
};
enum natpmp_result {
NATPMP_SUCCESS = 0,
NATPM... | 533 |
707 | <reponame>shueja-personal/allwpilib<filename>cscore/src/main/native/include/cscore_cv.h
// Copyright (c) FIRST and other WPILib contributors.
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
#ifndef CSCORE_CSCORE_CV_H_
#def... | 2,397 |
398 | <reponame>zhanghqgit/joyrpc<filename>joyrpc-plugin/joyrpc-codec/joyrpc-serialization-protostuff/src/main/java/io/joyrpc/codec/serialization/protostuff/schema/ZonedDateTimeSchema.java
package io.joyrpc.codec.serialization.protostuff.schema;
/*-
* #%L
* joyrpc
* %%
* Copyright (C) 2019 joyrpc.io
* %%
* Licensed un... | 1,816 |
1,457 | //
// S1Sequencer.hpp
// AudioKitSynthOne
//
// Created by AudioKit Contributors on 3/06/19.
// Copyright © 2019 AudioKit. All rights reserved.
//
#include <array>
#include <atomic>
#include <functional>
#include <list>
#include <vector>
#import "Foundation/Foundation.h"
#import "S1AudioUnit.h"
#import "S1Paramete... | 665 |
4,054 | <filename>vdslib/src/main/java/com/yahoo/vdslib/state/NodeType.java
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.vdslib.state;
public enum NodeType {
STORAGE("storage"),
DISTRIBUTOR("distributor");
private final String serialize... | 369 |
480 | # domain management
#
# Copyright <NAME> 2009
# Copyright <NAME> 2009
# Copyright <NAME> 2007-2012
# Copyright <NAME> 2011
# Copyright <NAME> <<EMAIL>> 2011
# Copyright <NAME> 2008
# Copyright <NAME> 2012
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Pu... | 29,234 |
425 | import pytest
import numpy as np
from PythonLinearNonlinearControl.models.two_wheeled import TwoWheeledModel
from PythonLinearNonlinearControl.configs.two_wheeled \
import TwoWheeledConfigModule
class TestTwoWheeledModel():
"""
"""
def test_step(self):
config = TwoWheeledConfigModule()
... | 1,711 |
458 | package ghidra.app.cmd.data.rtti;
import java.util.List;
import ghidra.program.model.address.Address;
import ghidra.program.model.data.DataType;
import ghidra.program.model.listing.Function;
public interface GnuVtable extends Vtable {
public static final String PURE_VIRTUAL_FUNCTION_NAME = "__cxa_pure_virtual";
... | 425 |
14,668 | // Copyright (c) 2012 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 "base/sequence_checker_impl.h"
#include <utility>
#include "base/check.h"
#include "base/debug/stack_trace.h"
#include "base/memory/ptr_uti... | 1,149 |
819 | <reponame>yidao620c/core-algorithm<filename>algorithms/ch02sort/m08_radix_sort.py
#!/usr/bin/env python
# -*- encoding: utf-8 -*-
# 基数排序
"""
Topic: sample
Desc : 基数排序
有时需要对记录的几个关键字分别排序,比如用三个关键字年、月、日对日期排序。
可以用基数排序,用一种稳定排序算法(比如计数排序)对这些信息进行三次排序:
优先级从低到高,权重从低到高。
"""
def radixSort(A, digit,... | 931 |
465 | /*
* Copyright (c) 2018 Uber Technologies, Inc.
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
* documentation files (the "Software"), to deal in the Software without restriction, including without limitation the
* rights to use, copy, modify, merge, p... | 1,396 |
1,117 | <filename>phxrpc/http/http_msg_handler_factory.h<gh_stars>1000+
/*
Tencent is pleased to support the open source community by making
PhxRPC available.
Copyright (C) 2016 THL A29 Limited, a Tencent company.
All rights reserved.
Licensed under the BSD 3-Clause License (the "License"); you may
not use this file except in... | 325 |
320 | /*
* emudore, Commodore 64 emulator
* Copyright (c) 2016, <NAME> <<EMAIL>>
*
* 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 ... | 1,053 |
777 | <reponame>google-ar/chromium<gh_stars>100-1000
// Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "mash/task_viewer/task_viewer.h"
#include <stddef.h>
#include <stdint.h>
#include "base/bind.h"
... | 4,618 |
348 | <reponame>chamberone/Leaflet.PixiOverlay
{"nom":"Sabadel-Latronquière","circ":"2ème circonscription","dpt":"Lot","inscrits":86,"abs":29,"votants":57,"blancs":6,"nuls":3,"exp":48,"res":[{"nuance":"REM","nom":"<NAME>","voix":25},{"nuance":"SOC","nom":"<NAME>","voix":23}]} | 112 |
5,342 | <reponame>suryatmodulus/lepton<gh_stars>1000+
#ifndef _WIN32
void fork_serve();
#endif
| 39 |
377 | import diffrax
import jax
import jax.numpy as jnp
import jax.random as jrandom
import pytest
@pytest.mark.parametrize(
"stepsize_controller",
(diffrax.ConstantStepSize(), diffrax.PIDController(rtol=1e-3, atol=1e-6)),
)
def test_vmap_y0(stepsize_controller):
t0 = 0
t1 = 1
dt0 = 0.1
key = jrand... | 1,954 |
306 | #ifndef QFOBJECT_H
#define QFOBJECT_H
#include <QObject>
#include <QQmlListProperty>
/// QFObject provides an QtObject with default children property to hold nested items
class QFObject : public QObject
{
Q_OBJECT
Q_PROPERTY(QQmlListProperty<QObject> children READ children)
Q_CLASSINFO("DefaultProperty",... | 188 |
653 | <filename>src/test/java/se/michaelthelin/spotify/requests/data/library/GetUsersSavedShowsRequestTest.java
package se.michaelthelin.spotify.requests.data.library;
import org.apache.hc.core5.http.ParseException;
import org.junit.Assert;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.runners.M... | 903 |
4,403 | package cn.hutool.poi.excel.cell.setters;
import cn.hutool.poi.excel.cell.CellSetter;
import org.apache.poi.ss.usermodel.Cell;
import java.time.Instant;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.time.temporal.TemporalAccessor;
import java.util.Date;
/**
* {@link TemporalAccessor} 值单元格设... | 352 |
892 | {
"schema_version": "1.2.0",
"id": "GHSA-c8f9-q937-86mv",
"modified": "2022-05-01T02:22:37Z",
"published": "2022-05-01T02:22:37Z",
"aliases": [
"CVE-2005-3923"
],
"details": "NetObjects Fusion 9 (NOF9) allows remote attackers to obtain sensitive information, including passwords, by downloading the _ve... | 465 |
931 | <gh_stars>100-1000
// 7X7
// Problem Description
// CODU is solving a 7x7 sudoku. Help him in solving the unique Sudoku.
// Rules are as follows
// 1. There are 7 regions coloured differently. Each region must have a single occurrence of numbers between range [1, 7].
// 2. Regions don't have a fix shape and it can c... | 644 |
4,842 | <reponame>justStarNew/gpmall
package com.gpmall.search.dto;
import lombok.Data;
import java.io.Serializable;
import java.math.BigDecimal;
/**
* 腾讯课堂搜索【咕泡学院】
* 官网:www.gupaoedu.com
* 风骚的Mic 老师
* create-date: 2019/7/24-19:08
*/
@Data
public class ProductDto implements Serializable {
private static final long ... | 224 |
9,680 | # Copyright (c) Microsoft Corporation.
# Licensed under the MIT license.
import os
API_ROOT_URL = '/api/v1/nni-pai'
BASE_URL = 'http://{}'
LOG_DIR = os.environ['NNI_OUTPUT_DIR']
NNI_PLATFORM = os.environ['NNI_PLATFORM']
STDOUT_FULL_PATH = os.path.join(LOG_DIR, 'stdout')
STDERR_FULL_PATH = os.path.join(LOG_DIR, '... | 270 |
1,163 | <reponame>kintel/iree
// Copyright 2019 The IREE Authors
//
// Licensed 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
#ifndef IREE_COMPILER_DIALECT_VM_IR_VMFUNCENCODER_H_
#define IREE_COMPILER_... | 969 |
386 | <filename>test/IECoreImage/SummedAreaOpTest.py
##########################################################################
#
# Copyright (c) 2008, Image Engine Design Inc. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the follow... | 773 |
14,425 | /**
* 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... | 11,395 |
1,264 | package org.springframework.data.mongodb.core.index;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;
@Document
public class SampleEntity {
@Id String id;
@Indexed String prop;
}
| 79 |
338 | package com.camnter.reduce.dependency.packaging.plugin.host;
import dalvik.system.DexClassLoader;
/**
* @author CaMnter
*/
public class PluginClassloader extends DexClassLoader {
public PluginClassloader(String dexPath, String optimizedDirectory, String librarySearchPath, ClassLoader parent) {
super(d... | 165 |
1,014 | {
"WUF1V.HE": {
"short_name": "Wulff Group Plc",
"long_name": "Wulff-Yhti\u00f6<NAME>",
"summary": "Wulff-Yhti\u00c3\u00b6t Oyj, together with its subsidiaries, sells and markets workplace products, catering solutions, facility management products, cleaning supplies, office and IT suppli... | 564 |
571 | # Copyright (c) 2016 - 2018 Dell Inc. or its subsidiaries.
# 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
#
# Unles... | 40,777 |
848 | /*
* Copyright 2019 Xilinx 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 ... | 1,501 |
2,453 | <reponame>haozhiyu1990/XVim2
//
// Generated by class-dump 3.5 (64 bit) (Debug version compiled Sep 30 2020 21:18:12).
//
// Copyright (C) 1997-2019 <NAME>.
//
#import <swiftCore/_TtCs12_SwiftObject.h>
@class DVTDocumentLocation, MISSING_TYPE, NSDictionary, NSString, NSURL;
@interface _TtCC6IDEKit13IDEEditorCor... | 403 |
15,577 | <gh_stars>1000+
#if __has_include(<mysql.h>)
#include <mysql.h>
#else
#include <mysql/mysql.h>
#endif
#include <mysqlxx/Connection.h>
#include <mysqlxx/ResultBase.h>
namespace mysqlxx
{
ResultBase::ResultBase(MYSQL_RES * res_, Connection * conn_, const Query * query_) : res(res_), conn(conn_), query(query_)
{
f... | 264 |
1,069 | <gh_stars>1000+
# -*- coding: utf-8 -*-
from django.db import models
class Services(models.Model):
"""
Main class for Services
"""
name = models.CharField(max_length=255)
status = models.BooleanField(default=False)
description = models.CharField(max_length=255)
class Meta:
ap... | 182 |
763 | package org.batfish.representation.juniper;
import static org.junit.Assert.assertEquals;
import org.batfish.datamodel.HeaderSpace;
import org.batfish.datamodel.IpWildcard;
import org.batfish.datamodel.TraceElement;
import org.batfish.datamodel.acl.MatchHeaderSpace;
import org.junit.Test;
/** Test for {@link FwFromSo... | 338 |
5,169 | <reponame>Gantios/Specs<filename>Specs/b/3/7/MOA-Swift/0.1.2/MOA-Swift.podspec.json
{
"name": "MOA-Swift",
"version": "0.1.2",
"summary": "Swift Boilerplate code and building blocks for Module Oriented Architecture (MOA)",
"description": "Module Oriented Architecture (MOA) is a principle of building the client ... | 419 |
372 | /*
* 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 ... | 797 |
1,125 | /*
* Licensed to Elasticsearch under one or more contributor
* license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright
* ownership. Elasticsearch licenses this file to you under
* the Apache License, Version 2.0 (the "License"); you may
* not use this fi... | 1,519 |
1,337 | <filename>modules/web/src/com/haulmont/cuba/web/gui/components/WebSuggestionPickerField.java
/*
* Copyright (c) 2008-2017 Haulmont.
*
* 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
*
* ... | 4,374 |
434 | <filename>gcc_bugs.cpp
/*
g++ --version:
g++ (Ubuntu 10 - 20200416 - 0ubuntu1~18.04) 10.0.1 20200416 (experimental)[master revision 3c3f12e2a76:dcee354ce56:44b326839d864fc10c459916abcc97f35a9ac3de]
Copyright(C) 2020 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.There is N... | 1,220 |
1,120 | <filename>spec/fixtures/fixtures/more_files/Empty.h
//
// Empty.h
// fixtures
//
// Created by <NAME> on 27.10.14.
// Copyright (c) 2014 marklarr. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface Empty : NSObject
@end
| 91 |
5,169 | <gh_stars>1000+
{
"name": "DZMemo",
"version": "0.1.0",
"summary": "backup a value for an instance, then recover it",
"description": "backup a value for an instance, then recover it, using the memo design pattern",
"homepage": "https://github.com/yishuiliunian/DZMemo",
"license": "MIT",
"authors": {
"... | 273 |
310 | {
"name": "AF-S VR Zoom-NIKKOR 24-120mm f/3.5-5.6G IF-ED",
"description": "A zoom lens.",
"url": "https://www.nikonusa.com/en/nikon-products/product/camera-lenses/af-s-vr-zoom-nikkor-24-120mm-f%252f3.5-5.6g-if-ed.html"
} | 113 |
4,389 | <reponame>mcinp/Sequel-Ace<filename>complexity/2.2.0/models.json
[{"Name":"C Header","Bytes":22057,"CodeBytes":0,"Lines":608,"Code":182,"Comment":356,"Blank":70,"Complexity":0,"Count":11,"WeightedComplexity":0,"Files":[]},{"Name":"Objective C","Bytes":83920,"CodeBytes":0,"Lines":2702,"Code":1783,"Comment":470,"Blank":4... | 146 |
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 "content/browser/metrics/histograms_monitor.h"
#include "base/metrics/histogram_macros.h"
#include "base/metrics/statistics_recorder.h"
#include... | 909 |
2,023 | <reponame>tdiprima/code<filename>recipes/Python/440477_Writes_logfiles_and_keep_backups/recipe-440477.py<gh_stars>1000+
""" logger.py
This module is responsible for controlling the action logging for the
application.
"""
"""
Author: <NAME>
"""
##
#Imports
###################################################... | 4,168 |
397 | //
// Storage.h
// sample-custom_objects
//
// Created by Quickblox Team on 6/10/15.
// Copyright (c) 2015 QuickBlox. All rights reserved.
//
#import <Foundation/Foundation.h>
#define kMovieClassName @"Movie"
@interface Storage : NSObject
@property (nonatomic, strong) NSMutableArray *moviesList;
+ (instancetyp... | 119 |
301 | '''
/******************************************************************
*
* Copyright 2018 Samsung Electronics All Rights Reserved.
*
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* htt... | 4,492 |
382 | <gh_stars>100-1000
//
// Created by 安炳旭 on 2020-01-26.
//
#include <vector>
#include <iostream>
#include <map>
using namespace std;
int MoreThanHalfNum_Solution(vector<int> numbers) {
int size = numbers.size() / 2;
sort(numbers.begin(), numbers.end());//排序
for (int i = 0; i + size < numbers.size(); i++)... | 388 |
335 | {
"word": "Oversimplify",
"definitions": [
"Simplify (something) so much that a distorted impression of it is given."
],
"parts-of-speech": "Verb"
} | 71 |
734 | <reponame>adamnemecek/tracktion_engine
/*
,--. ,--. ,--. ,--.
,-' '-.,--.--.,--,--.,---.| |,-.,-' '-.`--' ,---. ,--,--, Copyright 2018
'-. .-'| .--' ,-. | .--'| /'-. .-',--.| .-. || \ Tracktion Software
| | | | \ '-' \ `--.| \ \ | | | |' '-' '| || ... | 1,809 |
534 | package rb.popview;
import android.graphics.Bitmap;
import android.graphics.Rect;
import java.util.Random;
/**
* Created by rb on 20/6/16.
*/
public class Particle {
int color;
Random random;
float radius;
float randSpeed;
float initialX;
float initialY;
float x;
float y;
float alpha;
public void advanc... | 446 |
462 | /**********************************************************************
*
* GEOS - Geometry Engine Open Source
* http://geos.osgeo.org
*
* Copyright (C) 2005-2006 Refractions Research Inc.
* Copyright (C) 2001-2002 Vivid Solutions Inc.
*
* This is free software; you can redistribute and/or modify it under
* th... | 788 |
316 | package com.mapbox.mapboxsdk.http;
import android.util.Log;
import com.mapbox.mapboxsdk.log.Logger;
import static com.mapbox.mapboxsdk.http.HttpRequest.CONNECTION_ERROR;
import static com.mapbox.mapboxsdk.http.HttpRequest.TEMPORARY_ERROR;
public class HttpLogger {
private static final String TAG = "Mbgl-HttpRequ... | 367 |
5,169 | {
"name": "AYRegistry",
"version": "0.1.2",
"summary": "DI in 100 lines of code!",
"description": "Simple dependency injection container for your needs",
"homepage": "https://github.com/andjash/AYRegistry",
"license": {
"type": "MIT",
"file": "LICENSE"
},
"authors": {
"andjash": "<EMAIL>"
... | 229 |
5,169 | {
"name": "Esolang",
"version": "0.0.1",
"license": "MIT",
"summary": "Esoteric programming language interpreter writen in swift",
"homepage": "https://github.com/nutcrack/esolang",
"authors": {
"nutcrack": "<EMAIL>"
},
"source": {
"git": "https://github.com/nutcrack/esolang.git",
"tag": "0.... | 176 |
1,444 | <gh_stars>1000+
package mage.cards.w;
import java.util.UUID;
import mage.abilities.Ability;
import mage.abilities.common.BeginningOfUpkeepTriggeredAbility;
import mage.abilities.common.SimpleActivatedAbility;
import mage.abilities.costs.common.SacrificeSourceCost;
import mage.abilities.dynamicvalue.common.CountersSou... | 748 |
410 | #ifndef CARYLL_INCLUDE_TABLE_VHEA_H
#define CARYLL_INCLUDE_TABLE_VHEA_H
#include "table-common.h"
typedef struct {
f16dot16 version;
int16_t ascent;
int16_t descent;
int16_t lineGap;
int16_t advanceHeightMax;
int16_t minTop;
int16_t minBottom;
int16_t yMaxExtent;
int16_t caretSlopeRise;
int16_t caretSlopeRu... | 259 |
538 | <reponame>e16din/AndroidBucket<filename>src/com/wangjie/androidbucket/customviews/horizontialmenu/OnHoriMenuItemListener.java
package com.wangjie.androidbucket.customviews.horizontialmenu;
import android.view.View;
/**
* Created by wangjie on 14-5-5.
*/
public interface OnHoriMenuItemListener{
public abstract ... | 123 |
1,708 | #pragma once
#include "pe32_64.h"
inline bool load_imports(BYTE* image, PIMAGE_NT_HEADERS nt)
{
IMAGE_DATA_DIRECTORY importsDirectory = nt->OptionalHeader.DataDirectory[IMAGE_DIRECTORY_ENTRY_IMPORT];
if (importsDirectory.VirtualAddress == 0) {
return false;
}
PIMAGE_IMPORT_DESCRIPTOR importDesc... | 831 |
539 | /*
* Copyright (c) 2015, EURECOM (www.eurecom.fr)
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice,
* this list ... | 5,152 |
523 | package com.dalimao.verificationcodeinput;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Log;
import com.dalimao.corelibrary.VerificationCodeInput;
public class MainActivity extends AppCompatActivity {
private static final String TAG = "MainActivity";
@Over... | 309 |
335 | <reponame>tsbohc/ProjectE
package moze_intel.projecte.api.nbt;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* Represents that this class should be loaded as an {@link INBTProcessor)}
*/
@Target(El... | 364 |
460 | #ifndef WebCore_FWD_TypeTraits_h
#define WebCore_FWD_TypeTraits_h
#include <JavaScriptCore/TypeTraits.h>
#endif
| 51 |
3,181 | /*
* SPDX-FileCopyrightText: 2016, microG Project Team
* SPDX-License-Identifier: Apache-2.0 AND CC-BY-4.0
* Notice: Portions of this file are reproduced from work created and shared by Google and used
* according to terms described in the Creative Commons 4.0 Attribution License.
* See https://dev... | 263 |
474 | <gh_stars>100-1000
//
// TuSDKMediaAssetExtractorAudioSync.h
// TuSDKVideo
//
// Created by sprint on 21/08/2018.
// Copyright © 2018 TuSDK. All rights reserved.
//
#import <AVFoundation/AVFoundation.h>
#import "TuSDKMediaExtractorSync.h"
#import "TuSDKMediaTimelineAssetExtractor.h"
#import "TuSDKMediaAssetTimelin... | 385 |
311 | import static datadog.trace.bootstrap.instrumentation.api.AgentTracer.activeScope;
import datadog.trace.api.Trace;
import java.util.concurrent.CompletableFuture;
import java.util.concurrent.ExecutionException;
import java.util.concurrent.Executor;
import java.util.stream.IntStream;
import java.util.stream.Stream;
pub... | 813 |
7,482 | /**
******************************************************************************
* @file tae32f53xx_ll_sysctrl.h
* @author MCD Application Team
* @brief Header file for SYSCTRL LL module.
*
******************************************************************************
* @attention
*
* <h2><cen... | 53,908 |
348 | {"nom":"Aumeville-Lestre","dpt":"Manche","inscrits":96,"abs":18,"votants":78,"blancs":9,"nuls":2,"exp":67,"res":[{"panneau":"2","voix":36},{"panneau":"1","voix":31}]} | 72 |
513 | <reponame>dumpmemory/state-spaces<gh_stars>100-1000
""" The core RNN cell architecture of the HiPPO-RNN from the original HiPPO paper. """
import torch
import torch.nn as nn
import torch.nn.functional as F
import math
import numpy as np
from scipy import signal
from scipy import linalg as la
from src.models.sequence.... | 4,611 |
333 | //
// MCFireworksButton.h
// MCFireworksButton
//
// Created by <NAME> on 17/3/14.
// Copyright (c) 2014 <NAME>. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface MCFireworksButton : UIButton
@property (strong, nonatomic) UIImage *particleImage;
@property (assign, nonatomic) CGFloat particleScale;
@prop... | 176 |
403 | #ifndef VKPP_APPEND_HH
#define VKPP_APPEND_HH
#include <vector>
namespace vkpp {
template<typename T> // Super simple way to append values to vector
void append(const std::vector<T>& values, std::vector<T>& target) {
target.insert(target.end(), values.begin(), values.end());
}
template<typena... | 173 |
463 | <gh_stars>100-1000
/*
* Copyright (c) 2006 JMockit developers
* This file is subject to the terms of the MIT license (see LICENSE.txt).
*/
package mockit.internal.reflection;
import java.lang.reflect.*;
import javax.annotation.*;
import static mockit.internal.util.Utilities.ensureThatMemberIsAccessible;
public fi... | 554 |
1,223 | /*
Copyright 2016 Nidium Inc. All rights reserved.
Use of this source code is governed by a MIT license
that can be found in the LICENSE file.
*/
#include "Binding/JSAudioContext.h"
#include "Binding/JSAudioNode.h"
#include "Binding/JSConsole.h"
#include "Core/Utils.h"
#include "AV/Audio.h"
#include "Frontend... | 8,263 |
1,162 | <gh_stars>1000+
package org.nesc.ec.bigdata.cache;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
/**
* @author lg99
* expire map
*/
public class ExpireMap {
private static final Map<String, Object> CACHE_MAP = new ConcurrentHashMap<>();
/** expire time for Maps.key or Maps.values*/
... | 939 |
346 | <reponame>rhyep/Python_tutorials
def is_prime(x):
n = 2
Prime = False
if x <2:
Prime = False
else:
while n < x:
if x % n == 0:
Prime = False
break
else:
n +=1
Prime = True
else:
P... | 215 |
1,731 | <reponame>frafra/pdm
import re
from typing import Any, Tuple, Union, cast, overload
from pdm._types import Literal
from pdm.exceptions import InvalidPyVersion
VersionBit = Union[int, Literal["*"]]
class Version:
"""A loosely semantic version implementation that allows '*' in version part.
This class is des... | 1,730 |
2,151 | <reponame>zipated/src
/*
* Copyright (C) 2000 <NAME> (<EMAIL>)
* (C) 2000 <NAME> (<EMAIL>)
* (C) 2000 <NAME> <EMAIL>)
* (C) 2004 <NAME> (<EMAIL>)
* Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights
* reserved.
* Copyright (C) 2009 Google Inc. All rights re... | 2,517 |
26,879 | <filename>butterknife-integration-test/src/androidTest/java/com/example/butterknife/functional/OnItemClickTest.java
package com.example.butterknife.functional;
import android.content.Context;
import android.view.View;
import android.view.ViewGroup;
import android.widget.AbsSpinner;
import android.widget.AdapterView;
i... | 3,382 |
3,428 | <reponame>ghalimi/stdlib
{"id":"00899","group":"easy-ham-2","checksum":{"type":"MD5","value":"ebda16f739e9e222b56d0c71ca51b82f"},"text":"From <EMAIL> Fri Jul 26 04:42:10 2002\nReturn-Path: <<EMAIL>>\nDelivered-To: yyyy@<EMAIL>.netnoteinc.com\nReceived: from localhost (localhost [127.0.0.1])\n\tby phobos.labs.netnotein... | 1,186 |
333 | {
"name": "com.dukechiang.dcet.numeric",
"displayName": "DCET.Numeric",
"version": "6.0.1",
"unity": "2018.1",
"description": "DCET的介绍:\nDCET是一个开源的游戏客户端(基于unity3d)服务端双端框架,服务端是使用C# .net core开发的分布式游戏服务端,其特点是开发效率高,性能强,双端共享逻辑代码,客户端服务端热更机制完善,同时支持可靠udp tcp websocket协议,支持服务端3D recast寻路等等\n\nDCET的功能:\n1.可用V... | 5,719 |
415 | <filename>todoapp/todos/tests.py
import json
from django.contrib.auth.models import User
from django.urls import reverse
from rest_framework.authtoken.models import Token
from rest_framework.test import APITestCase
from todos.models import Todo
from todos.serializers import TodoSerializer
class TodoListCreateAPIView... | 1,676 |
4,054 | <filename>eval/src/vespa/eval/eval/value_cache/constant_tensor_loader.h
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#pragma once
#include "constant_value.h"
#include <vespa/vespalib/stllike/string.h>
namespace vespalib {
namespace eval {
/**
* A Constant... | 260 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.