max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
16,989 | <reponame>jobechoi/bazel
// Copyright 2017 The Bazel 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
//
/... | 840 |
32,544 | <filename>core-java-modules/core-java-collections-maps-4/src/test/java/com/baeldung/maps/CoordinateKeyUnitTest.java
package com.baeldung.maps;
import org.junit.jupiter.api.Tag;
import org.junit.jupiter.api.Test;
import java.awt.*;
import java.util.HashMap;
import java.util.Map;
import static org.junit.jupiter.api.As... | 1,180 |
533 | <filename>saber/funcs/impl/x86/mkldnn_helper.cpp
#include "anakin_config.h"
#ifndef USE_SGX
#include "saber/funcs/impl/x86/mkldnn_helper.h"
namespace anakin{
namespace saber{
mkldnn_mem_format get_mkldnn_format(LayoutType layout){
switch (layout){
case Layout_NCHW:
return mkldnn_mem_format... | 1,585 |
1,756 | <filename>mailcore2/src/java/native/com_libmailcore_IMAPMessagePart.h
/* DO NOT EDIT THIS FILE - it is machine generated */
#include <jni.h>
/* Header for class com_libmailcore_IMAPMessagePart */
#ifndef _Included_com_libmailcore_IMAPMessagePart
#define _Included_com_libmailcore_IMAPMessagePart
#ifdef __cplusplus
exte... | 379 |
410 | package de.codewhite.jmet.exceptions;
/**
* Created by kaimatt.
*/
public class InitException extends Exception {
public InitException() {
super();
}
public InitException(String message) {
super(message);
}
public InitException(String message, Throwable cause) {
super(me... | 213 |
721 | package crazypants.enderio.base.item.darksteel.upgrade.anvil;
import java.util.List;
import javax.annotation.Nonnull;
import com.enderio.core.common.util.NNList;
import com.enderio.core.common.util.NullHelper;
import crazypants.enderio.api.upgrades.IDarkSteelUpgrade;
import crazypants.enderio.api.upgrades.IRule;
im... | 895 |
1,006 | /****************************************************************************
* net/devif/devif_iobsend.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 regarding copyright ownersh... | 645 |
2,921 | <gh_stars>1000+
{
"name": "BankSocial",
"website": "https://www.banksocial.io",
"description": "BankSocial is your gateway to a full range of banking services using blockchain technology available globally.",
"explorer": "https://etherscan.io/token/0x0AF55d5fF28A3269d69B98680Fd034f115dd53Ac",
"type"... | 333 |
351 | import numpy as np
from ..pakbase import Package
from ..utils import Util2d, Util3d
class ModflowBct(Package):
"""
Block centered transport package class for MODFLOW-USG
"""
def __init__(
self,
model,
itrnsp=1,
ibctcb=0,
mcomp=1,
ic_ibound_flg=1,
... | 2,812 |
634 | <gh_stars>100-1000
/*
* Copyright 2000-2013 JetBrains s.r.o.
*
* 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... | 489 |
312 | /*******************************************************************************
* Copyright (c) 2020 Eclipse RDF4J contributors.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Distribution License v1.0
* which accompanies this distribution, an... | 2,814 |
3,655 | <filename>paddlex/paddleseg/models/backbones/resnet_vd.py<gh_stars>1000+
# copyright (c) 2020 PaddlePaddle Authors. All Rights Reserve.
#
# 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
#
# ... | 6,183 |
604 | # Copyright 2011 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# unless required by applicable law or a... | 732 |
2,297 | <gh_stars>1000+
// Created by <NAME> on 26/02/2017.
// Copyright wuxudong
//
#ifndef RNBarLineChartManagerBridge_h
#define RNBarLineChartManagerBridge_h
#define EXPORT_BAR_LINE_CHART_BASE_PROPERTIES \
EXPORT_Y_AXIS_CHART_BASE_PROPERTIES \
RCT_EXPORT_VIEW_PROPERTY(drawGridBackground, BOOL) \
RCT_EXPORT_VIEW_PROPERTY... | 931 |
14,668 | <filename>src/base/containers/span_rust.h
// 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 BASE_CONTAINERS_SPAN_RUST_H_
#define BASE_CONTAINERS_SPAN_RUST_H_
#include <stdint.h>
#include "base/c... | 244 |
460 | <filename>norminette/tests/lexer/files/ok_test_18.c
struct bitfield {
unsigned x: 3;
};
void foo() {
int a[2];
int i;
const int j;
struct bitfield bf;
a;
i;
j;
bf.x;
foo;
i = 4;
bf.x = 4;
&a;
&i;
&j;
&foo;
}
| 130 |
879 | package org.zstack.test.kvm;
import org.junit.Before;
import org.junit.Test;
import org.zstack.core.cloudbus.CloudBus;
import org.zstack.core.componentloader.ComponentLoader;
import org.zstack.core.db.DatabaseFacade;
import org.zstack.header.configuration.InstanceOfferingInventory;
import org.zstack.header.identity.Se... | 1,206 |
450 | /*
* Copyright 2016-2020 chronicle.software
*
* https://chronicle.software
*
* 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
*
* ... | 1,031 |
520 | <filename>wrappers/Modelica/src/solvermap.cpp
#include "solvermap.h"
#include "basesolver.h"
#include "testsolver.h"
#if (FLUIDPROP == 1)
#include "fluidpropsolver.h"
#endif // FLUIDPROP == 1
#if (COOLPROP == 1)
#include "coolpropsolver.h"
#endif // COOLPROP == 1
//! Get a specific solver
/*!
This function return... | 752 |
14,668 | <filename>components/safe_browsing/core/browser/db/fake_database_manager.cc
// 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 "components/safe_browsing/core/browser/db/fake_database_manager.h"
n... | 1,308 |
2,996 | // Copyright 2021 The Terasology Foundation
// SPDX-License-Identifier: Apache-2.0
package org.terasology.engine.core;
/**
* An interface for subscribers to engine state changes
*/
@FunctionalInterface
public interface StateChangeSubscriber {
void onStateChange();
}
| 76 |
348 | <reponame>chamberone/Leaflet.PixiOverlay
{"nom":"Vorly","circ":"3ème circonscription","dpt":"Cher","inscrits":195,"abs":118,"votants":77,"blancs":2,"nuls":6,"exp":69,"res":[{"nuance":"SOC","nom":"M. <NAME>","voix":36},{"nuance":"REM","nom":"M. <NAME>","voix":33}]} | 112 |
1,540 | # Copyright (c) 2021 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 appli... | 3,268 |
726 | package org.landy.delegate.leader;
/**
* Created by Tom on 2018/3/14.
*/
public interface ITarget {
public void doing(String command);
}
| 49 |
14,668 | <reponame>zealoussnow/chromium
// Copyright 2019 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 UI_VIEWS_ACCESSIBILITY_VIEWS_UTILITIES_AURA_H_
#define UI_VIEWS_ACCESSIBILITY_VIEWS_UTILITIES_AURA_H_
namespace au... | 233 |
348 | <reponame>chamberone/Leaflet.PixiOverlay<gh_stars>100-1000
{"nom":"Sandillon","circ":"3ème circonscription","dpt":"Loiret","inscrits":3153,"abs":1411,"votants":1742,"blancs":25,"nuls":14,"exp":1703,"res":[{"nuance":"REM","nom":"Mme <NAME>","voix":748},{"nuance":"LR","nom":"M. <NAME>","voix":348},{"nuance":"FN","nom":"M... | 285 |
777 | <gh_stars>100-1000
/*
* Copyright (C) 2013 Google Inc. 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, th... | 1,208 |
311 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright (c) 2012-2019 Snowflake Computing Inc. All rights reserved.
#
from logging import getLogger
from snowflake.connector.converter_snowsql import SnowflakeConverterSnowSQL
logger = getLogger(__name__)
ConverterSnowSQL = SnowflakeConverterSnowSQL
def test_benc... | 660 |
425 | <reponame>AdityaKane2001/MaskTextSpotter<filename>maskrcnn_benchmark/utils/logging.py<gh_stars>100-1000
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
# modified by <NAME>
import logging
import os
import sys
from tensorboardX import SummaryWriter
def setup_logger(name, save_dir, distributed_... | 547 |
763 | <reponame>zabrewer/batfish
/*
* Note: We obtained permission from the author of Javabdd, <NAME>, to use
* the library with Batfish under the MIT license. The email exchange is included
* in LICENSE.email file.
*
* MIT License
*
* Copyright (c) 2013-2017 <NAME>
*
* Permission is hereby granted, free of charge, ... | 1,121 |
2,144 | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you... | 2,159 |
3,589 | package picocli;
import org.junit.Ignore;
import org.junit.Rule;
import org.junit.Test;
import org.junit.contrib.java.lang.system.ProvideSystemProperty;
import org.junit.contrib.java.lang.system.RestoreSystemProperties;
import org.junit.rules.TestRule;
import picocli.CommandLine.Command;
import picocli.CommandLine.Mis... | 10,262 |
852 | <gh_stars>100-1000
#include "TGLViewer.h"
#include "TEveManager.h"
#include "Fireworks/Core/interface/FWEventAnnotation.h"
#include "Fireworks/Core/interface/FWGUIManager.h"
#include "Fireworks/Core/interface/BuilderUtils.h"
#include "Fireworks/Core/interface/FWConfiguration.h"
#include "DataFormats/FWLite/interface/... | 982 |
1,172 | // Copyright (C) 2008 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 of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed t... | 597 |
352 | <reponame>sivanag1974/t-vault
package com.tmobile.cso.vault.api.model;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.io.Serializable;
public class SSLCertMetadataResponse implements Serializable {
private static final long serialVersionUID = -3967795703312263611L;
@JsonProperty("data")... | 415 |
365 | <reponame>groupon/grox<filename>grox-core-rx2/src/main/java/com/groupon/grox/rxjava2/StoreOnSubscribe.java
/*
* Copyright (c) 2017, Groupon, 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 Lic... | 513 |
2,783 | <filename>website/i18n/en.json
{
"_comment": "This file is auto-generated by write-translations.js",
"localized-strings": {
"next": "Next",
"previous": "Previous",
"tagline": "A minimal WebAssembly virtual DOM to build C++ SPA",
"boolean-attributes": "Boolean Attributes",
"cpp": "cpp",
"chil... | 596 |
338 | <gh_stars>100-1000
package io.grpc.grpcswagger.store;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
import com.google.common.collect.ImmutableMap;
/**
* @author <NAME>
* @date 2019-08-24
*/
public class MapStorage<K, V> implements BaseStorage<K, V> {
private final Map<K, V> map = new Co... | 353 |
2,706 | <reponame>MatPoliquin/retro
/* Copyright (c) 2013-2015 <NAME>
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#pragma once
#include "Override.h"
#include <QMa... | 1,019 |
575 | <filename>chrome/android/javatests/src/org/chromium/chrome/browser/multiwindow/MultiWindowTestHelper.java
// Copyright 2017 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package org.chromium.chrome.browser.multiwindow;... | 2,528 |
6,717 | // $Id: QuadDemo.java,v 1.8 1999/12/16 02:10:05 gjb Exp $
//
// Cassowary Incremental Constraint Solver
// Original Smalltalk Implementation by <NAME>
// This Java Implementation by <NAME>, <<EMAIL>>
// http://www.cs.washington.edu/homes/gjb
// (c) 1998, 1999 <NAME>, <NAME>, and <NAME>.
// See ../../LICENSE for legal... | 4,015 |
632 | <filename>app/src/test/java/me/vickychijwani/spectre/testing/EventBusRule.java<gh_stars>100-1000
package me.vickychijwani.spectre.testing;
import org.junit.rules.TestRule;
import org.junit.runner.Description;
import org.junit.runners.model.Statement;
import me.vickychijwani.spectre.event.BusProvider;
public class Ev... | 264 |
1,085 | /*
* Copyright (C) 2017-2019 Dremio Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable l... | 3,215 |
665 | <filename>testing/serial_procedure_test.py<gh_stars>100-1000
#
# serial_procedure_test.py
# mldb.ai inc, 2015
# this file is part of mldb. copyright 2015 mldb.ai inc. all rights reserved.
#
import time
from functools import reduce
from mldb import mldb, MldbUnitTest, ResponseException
class SerialProcedureTest(MldbUn... | 886 |
357 | /*
* Copyright (c) 2012-2015 VMware, Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy
* of the License at http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ... | 386 |
1,210 | /*
Copyright 2005-2007 Adobe Systems Incorporated
Use, modification and distribution are subject to 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).
See http://opensource.adobe.com/gil for most recent version inclu... | 1,068 |
1,056 | <filename>enterprise/j2ee.dd/test/unit/src/org/netbeans/modules/j2ee/dd/api/web/DDApiTest.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 ownership. The ... | 6,684 |
311 | <filename>dd-java-agent/instrumentation/spring-rabbit/src/test/java/rabbit/Receiver.java
package rabbit;
import datadog.trace.api.Trace;
import datadog.trace.bootstrap.instrumentation.api.AgentTracer;
import java.util.concurrent.CountDownLatch;
import org.springframework.stereotype.Component;
@Component
public class ... | 187 |
2,341 | #
# Copyright 2016 Cluster Labs, 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 ... | 1,020 |
373 | package com.xxx.zookeeper;
import java.io.IOException;
import org.apache.zookeeper.CreateMode;
import org.apache.zookeeper.KeeperException;
import org.apache.zookeeper.WatchedEvent;
import org.apache.zookeeper.Watcher;
import org.apache.zookeeper.ZooDefs;
import org.apache.zookeeper.ZooKeeper;
/**
* Created by W510... | 407 |
497 | package com.tubb.smrv.demo.normal;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import com.tubb.smrv.demo.R;
import com.tubb.smrv.demo.rv.RvMainActivity;
public class NormalMainActivity extends Activity {
@Override
protected void onCreate(Bu... | 296 |
3,897 | /* mbed Microcontroller Library
* Copyright (c) 2006-2020 ARM Limited
* SPDX-License-Identifier: Apache-2.0
*
* 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.o... | 619 |
5,169 | {
"name": "PusherSwiftC",
"version": "8.0.3",
"summary": "A Pusher client library in Swift",
"homepage": "https://github.com/SuaMusica/pusher-websocket-swift",
"license": "MIT",
"authors": {
"<NAME>": "<EMAIL>"
},
"source": {
"git": "https://github.com/SuaMusica/pusher-websocket-swift.git",
... | 306 |
575 | <filename>remoting/host/desktop_resizer_ozone.cc
// 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 "remoting/host/desktop_resizer_ozone.h"
#include "build/build_config.h"
namespace remoting {
... | 401 |
1,209 | /*
graphics_test.c
>>> PLEASE UNCOMMENT DISPLAY TYPE IN THE MAIN PROCEDURE <<<
ARM U8glib Example
Universal 8bit Graphics Library
Copyright (c) 2013, <EMAIL>
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the... | 4,150 |
1,587 | package io.reflectoring.resilience4j.retry.services.failures;
import java.util.Random;
public class FailHalfTheTime implements PotentialFailure {
Random random = new Random();
int times;
int failedCount;
public FailHalfTheTime(int times) {
this.times = times;
}
@Override
public v... | 229 |
2,663 | <filename>Projects/Foundations/Schemas/Docs-Nodes/T/Trading/Trading-Engine/trading-engine.json
{
"type": "Trading Engine",
"definition": {
"text": "The trading engine hierarchy is the data structure used by the trading bot to keep runtime information highly accessible and exposed to others.",
"t... | 1,300 |
3,645 | <reponame>huyu0415/FFmpeg<filename>ffmpeg-3.2.5/libavutil/tests/aes.c
/*
* This file is part of FFmpeg.
*
* FFmpeg is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the Licen... | 2,214 |
397 | #ifndef _AVL_H
#define _AVL_H
#include<stdio.h>
#include<stdlib.h>
#include<math.h>
#define max(a,b) (a>b?a:b)
typedef struct treenode* ptn;
typedef ptn AVL;
struct treenode {
int h;
int data;
ptn Left;
ptn Right;
};
int height(AVL a);
void update(AVL a);
AVL CreateAVL(int x);
AVL bal... | 246 |
506 | #pragma once
#include <iostream>
enum egc_result_t
{
k_EGCResultOK = 0,
k_EGCResultNoMessage = 1, // There is no message in the queue
k_EGCResultBufferTooSmall = 2, // The buffer is too small for the requested message
k_EGCResultNotLoggedOn = 3, // The client is not logged onto Steam
k_EGCR... | 861 |
713 | package org.infinispan.stream;
import org.infinispan.CacheCollection;
import org.infinispan.CacheStream;
import org.infinispan.configuration.cache.CacheMode;
import org.infinispan.test.fwk.InCacheMode;
import org.testng.annotations.Test;
/**
* Verifies stream tests work when stream is parallel with parallel distribu... | 213 |
357 | <filename>vmidentity/rest/core/client/src/main/java/com/vmware/identity/rest/core/client/exceptions/GeneralRequestException.java<gh_stars>100-1000
/*
* Copyright (c) 2012-2015 VMware, Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except... | 772 |
504 | import asyncio
from time import time
import pytest
from slack_sdk.signature import SignatureVerifier
from slack_sdk.web.async_client import AsyncWebClient
from slack_bolt.app.async_app import AsyncApp
from slack_bolt.request.async_request import AsyncBoltRequest
from tests.mock_web_api_server import (
setup_mock_... | 952 |
1,139 | <filename>CoreJavaProjects/CoreJavaExamples/src/com/journaldev/design/Shape.java
package com.journaldev.design;
public interface Shape{
//only public, static and final modifiers
//implicitly final
String LABLE="Shape";
//interface methods are implicitly abstract and public
void draw();
double getArea();
}
| 96 |
1,183 | <reponame>liux-pro/blinker-js
{
"name": "example",
"version": "1.0.0",
"lockfileVersion": 1,
"requires": true,
"dependencies": {
"@dropb/diskinfo": {
"version": "2.0.0",
"resolved": "https://registry.npm.taobao.org/@dropb/diskinfo/download/@dropb/diskinfo-2.0.0.tgz",
"integrity": "sha1-u... | 295 |
407 | <reponame>iuskye/SREWorks
package com.alibaba.sreworks.other.server.params;
import lombok.Data;
@Data
public class SreworksFileCreateRequestParam {
private String category;
private String name;
private String alias;
private String fileId;
private String type;
private String description;
... | 258 |
2,494 | <filename>deps/mozjs/src/gdb/mozilla/jsval.py
# Pretty-printers for SpiderMonkey jsvals.
import gdb
import gdb.types
import mozilla.prettyprinters
from mozilla.prettyprinters import pretty_printer, ptr_pretty_printer
# Forget any printers from previous loads of this module.
mozilla.prettyprinters.clear_module_printer... | 3,630 |
575 | <reponame>iridium-browser/iridium-browser<gh_stars>100-1000
// Copyright 2019 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 "weblayer/browser/download_callback_proxy.h"
#include "base/android/jni_string.h"
#i... | 1,941 |
5,169 | <reponame>Gantios/Specs<filename>Specs/3/2/7/FFSafeKit/0.5.0/FFSafeKit.podspec.json
{
"name": "FFSafeKit",
"version": "0.5.0",
"summary": "Using NSArray, NSMutableArray, NSDictionary, NSMutableDictionary, NSMutableString safely.",
"description": "Now using NSArray, NSMutableArray, NSDictionary, NSMutableDiction... | 364 |
5,169 | <reponame>Ray0218/Specs<filename>Specs/MSTwitterSplashScreen/1.0.5/MSTwitterSplashScreen.podspec.json<gh_stars>1000+
{
"name": "MSTwitterSplashScreen",
"version": "1.0.5",
"summary": "Simple animation of splash screen like in Twitter App for iOS 7 & 8",
"homepage": "https://github.com/mateuszszklarek/MSTwitterS... | 314 |
831 | /*
* 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/licenses/LICENSE-2.0
*
* Unless required by app... | 1,794 |
679 | /**************************************************************
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to y... | 957 |
3,934 | # This sample tests various "literal math" binary and unary operations that
# are applied when all operands are literal types with the same associated
# class.
from typing import Literal
def func1(a: Literal[1, 2], b: Literal[0, 4], c: Literal[3, 4]):
c1 = a * b + c
reveal_type(c1, expected_text="Literal[3, ... | 1,305 |
1,116 | /*********************************************************************
* Software License Agreement (BSD License)
*
* Copyright (c) 2018 Pilz GmbH & Co. KG
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following c... | 5,136 |
1,511 | <reponame>bingchunjin/1806_SDK
/*
* This is from the Android Project,
* Repository: https://android.googlesource.com/platform/system/core
* File: libsparse/sparse_format.h
* Commit: <PASSWORD>
* Copyright (C) 2010 The Android Open Source Project
*
* SPDX-License-Identifier: BSD-3-Clause
*/
#ifndef _LIBSPARSE_S... | 719 |
3,358 | <reponame>jiangjiali/QuantLib<filename>ql/models/marketmodels/callability/triggeredswapexercise.hpp<gh_stars>1000+
/* -*- mode: c++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
Copyright (C) 2006 StatPro Italia srl
This file is part of QuantLib, a free-software/open-source library
for financia... | 963 |
5,169 | {
"name": "YGCVideoToolbox",
"version": "0.2.0",
"summary": "A collection of video edit tool",
"description": "A collection of video edit tool.make you slow motion, resize, crop, repeat video easily.",
"homepage": "https://github.com/zangqilong198812/YGCVideoToolbox",
"license": {
"type": "MIT",
"fi... | 320 |
1,455 | /**
* Dedicated support package for Redis hashes. Provides mapping of objects to hashes/maps (and vice versa).
*/
@org.springframework.lang.NonNullApi
@org.springframework.lang.NonNullFields
package org.springframework.data.redis.hash;
| 68 |
3,702 | <gh_stars>1000+
// Copyright (c) YugaByte, Inc.
package com.yugabyte.yw.commissioner;
@FunctionalInterface
public interface IUpgradeTaskWrapper {
void run();
}
| 58 |
778 | // KRATOS ___| | | |
// \___ \ __| __| | | __| __| | | __| _` | |
// | | | | | ( | | | | ( | |
// _____/ \__|_| \__,_|\___|\__|\__,_|_| \__,_|_| MECHANICS
//
// License: BSD License
// license: structural_mechanics_applic... | 2,477 |
333 | package com.alipay.api.response;
import com.alipay.api.internal.mapping.ApiField;
import com.alipay.api.AlipayResponse;
/**
* ALIPAY API: alipay.commerce.transport.veh.order.refund response.
*
* @author <NAME>
* @since 1.0, 2021-06-05 22:16:25
*/
public class AlipayCommerceTransportVehOrderRefundRe... | 513 |
348 | package com.netflix.raigad.defaultimpl;
import com.google.common.io.Files;
import com.netflix.raigad.configuration.FakeConfiguration;
import com.netflix.raigad.configuration.IConfiguration;
import org.junit.Before;
import org.junit.Test;
import java.io.File;
import java.io.IOException;
public class TestStandardTuner... | 291 |
2,344 | <reponame>atiasn/novel<gh_stars>1000+
#!/usr/bin/env python
"""
Created by howie.hu at 2018/10/17.
"""
import asyncio
import random
from ruia import Request
from owllook.config import CONFIG
async def get_proxy_ip(valid: int = 1) -> str:
# random_server = ['http://0.0.0.0:8662/']
proxy_server = CONFIG.REM... | 402 |
2,724 | <reponame>piejanssens/openui5<gh_stars>1000+
{
"sap.app": {
"id": "sap.ui.core.sample.ControllerExtension",
"applicationVersion": {
"version": "1.0.0"
}
},
"sap.ui5": {
"rootView": {
"viewName": "sap.ui.core.sample.ControllerExtension.Main",
"type": "XML",
"async": true,
"id": "main"
},
"d... | 367 |
565 | <reponame>emesz761/JniHelpers
/*
* Copyright (c) 2014 Spotify AB
*
* 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 ... | 1,139 |
1,290 | <filename>Z - Tool Box/LaZagne/Windows/lazagne/softwares/memory/libkeepass/common.py
# -*- coding: utf-8 -*-
import base64
import codecs
import io
import struct
from xml.etree import ElementTree
from .crypto import sha256
try:
file_types = (file, io.IOBase)
except NameError:
file_types = (io.IOBase,)
# file... | 3,975 |
575 | // 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.
#ifndef CHROME_BROWSER_UI_ASH_CHROME_LAUNCHER_PREFS_H_
#define CHROME_BROWSER_UI_ASH_CHROME_LAUNCHER_PREFS_H_
#include <vector>
#include "ash/public... | 935 |
1,473 | <reponame>ljmf00/autopsy
/*
* Autopsy Forensic Browser
*
* Copyright 2014 Basis Technology Corp.
* Contact: carrier <at> sleuthkit <dot> 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 the Licen... | 1,190 |
615 | <reponame>Lolik111/meta<gh_stars>100-1000
/**
* @file hash.h
* @author <NAME>
*
* All files in META are dual-licensed under the MIT and NCSA licenses. For more
* details, consult the file LICENSE.mit and LICENSE.ncsa in the root of the
* project.
*/
#ifndef META_HASHING_HASH_H_
#define META_HASHING_HASH_H_
#in... | 3,832 |
318 | package xyz.msws.nope.checks.packet;
import java.util.HashMap;
import java.util.Map;
import java.util.UUID;
import javax.naming.OperationNotSupportedException;
import org.bukkit.Bukkit;
import org.bukkit.entity.Player;
import org.bukkit.event.Listener;
import org.bukkit.scheduler.BukkitRunnable;
import com.compheni... | 1,254 |
1,123 | <reponame>AdmondGuo/kolo-lang<filename>external/mlsql-sql-profiler/src/main/java/tech/mlsql/tool/ZOrderingBytesUtil.java<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 informati... | 5,274 |
9,680 | <reponame>dutxubo/nni
from .base_mutator import BaseMutator
from .base_trainer import BaseTrainer
from .fixed import apply_fixed_architecture
from .mutables import Mutable, LayerChoice, InputChoice
from .mutator import Mutator
from .trainer import Trainer
| 77 |
4,002 | <filename>src/main/java/me/zeroX150/cornos/etc/render/Notification.java
/*
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Project: Cornos
# File: Notification
# Created by constantin at 12:53, Apr 05 2021
PLEASE READ THE COPYRIGHT NOTICE IN THE PROJECT ROOT, IF EXISTENT
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@... | 376 |
339 | <gh_stars>100-1000
{
"integrationFolder": "test/",
"testFiles": "**/**/*.spec.ts",
"screenshotOnRunFailure": false,
"video": false
}
| 56 |
3,269 | // Time: O(n)
// Space: O(h)
/**
* Definition for a binary tree node.
* struct TreeNode {
* int val;
* TreeNode *left;
* TreeNode *right;
* TreeNode(int x) : val(x), left(NULL), right(NULL) {}
* };
*/
class Solution {
public:
TreeNode* lcaDeepestLeaves(TreeNode* root) {
return lcaD... | 407 |
1,350 | <filename>sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/HubIpConfigurationPropertiesFormatInner.java<gh_stars>1000+
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRes... | 1,772 |
679 | <filename>main/editeng/inc/editeng/eerdll.hxx
/**************************************************************
*
* 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 ... | 503 |
2,151 | <filename>net/third_party/quic/platform/api/quic_ip_address_family.h
// Copyright (c) 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.
#ifndef NET_THIRD_PARTY_QUIC_PLATFORM_API_QUIC_IP_ADDRESS_FAMILY_H_
#define NET_T... | 250 |
480 | /*
* Copyright [2013-2021], Alibaba Group Holding Limited
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | 3,574 |
310 | <reponame>dreeves/usesthis
{
"name": "<NAME>",
"description": "A CNC machine.",
"url": "https://carbide3d.com/shapeoko/"
}
| 55 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.