max_stars_count
int64
301
224k
text
stringlengths
6
1.05M
token_count
int64
3
727k
1,056
/* * 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 ...
4,120
679
<gh_stars>100-1000 /************************************************************** * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF license...
834
2,143
package com.tngtech.archunit.testutil; import java.io.File; import java.io.IOException; import java.nio.charset.Charset; import java.util.ArrayList; import java.util.HashSet; import java.util.LinkedList; import java.util.List; import java.util.Set; import com.google.common.collect.Lists; import org.junit.rules.Extern...
1,905
1,738
/* * All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or * its licensors. * * For complete copyright and license terms please see the LICENSE at the root of this * distribution (the "License"). All use of this software is governed by the License, * or, if provided, by the license below or t...
816
12,278
// Copyright 2017 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...
2,844
1,150
<filename>android-frontia/frontia/src/main/java/moe/studio/frontia/core/PluginLoader.java /* * Copyright (c) 2016 <NAME> (<EMAIL>) */ package moe.studio.frontia.core; import android.support.annotation.NonNull; import moe.studio.frontia.ext.PluginError; /** * 插件加载器 */ public interface PluginLoader { /** ...
744
450
# The MIT License # # Copyright (C) 2009 <NAME> # # Copyright (C) 2008-2009 Abilisoft Ltd. # # # 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 limitat...
2,765
3,101
/* * 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,102
4,772
<filename>jpa/deferred/src/main/java/example/repo/Customer508Repository.java package example.repo; import example.model.Customer508; import java.util.List; import org.springframework.data.repository.CrudRepository; public interface Customer508Repository extends CrudRepository<Customer508, Long> { List<Customer508...
110
1,738
/* * All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or * its licensors. * * For complete copyright and license terms please see the LICENSE at the root of this * distribution (the "License"). All use of this software is governed by the License, * or, if provided, by the license below or t...
996
1,988
<gh_stars>1000+ /* * (C) 2011,2017 <NAME> * * Botan is released under the Simplified BSD License (see license.txt) */ #include <botan/nist_keywrap.h> #include <botan/block_cipher.h> #include <botan/internal/loadstor.h> #include <botan/exceptn.h> namespace Botan { namespace { std::vector<uint8_t> raw_nist_key_wrap(c...
2,569
1,069
<reponame>Leopere/django-th # coding: utf-8 import arrow import datetime from django.conf import settings from django_th.tests.test_main import MainTest from pocket import Pocket from th_pocket.forms import PocketProviderForm, PocketConsumerForm from th_pocket.models import Pocket as PocketModel from th_pocket.my_po...
2,148
952
<reponame>samisouabni/Main { "version": "1.21.0", "description": "A Powerline style prompt for your shell", "homepage": "https://github.com/justjanne/powerline-go", "license": "GPL-3.0-or-later", "architecture": { "64bit": { "url": "https://github.com/justjanne/powerline-g...
427
2,742
<filename>javamelody-swing/src/main/java/net/bull/javamelody/swing/table/TablePopupMenu.java<gh_stars>1000+ /* * Copyright 2008-2019 by <NAME> * * This file is part of Java Melody. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with t...
1,430
414
package com.github.irshulx.wysiwyg.Utilities; import android.text.Editable; import android.text.SpannableStringBuilder; import android.view.View; import android.view.inputmethod.BaseInputConnection; import android.widget.TextView; /** * Created by mkallingal on 1/17/2016. */ class MyInputConnection extends BaseInpu...
367
3,055
/* Fontname: -B&H-Lucida-Bold-I-Normal-Sans-14-100-100-100-P-90-ISO10646-1 Copyright: Copyright <NAME> 1986, 1985. Glyphs: 191/723 BBX Build Mode: 0 */ const uint8_t u8g2_font_luBIS10_tf[3328] U8G2_FONT_SECTION("u8g2_font_luBIS10_tf") = "\277\0\3\3\4\4\5\5\5\32\17\367\375\12\375\12\375\2\3\4Y\14\343 \5\0\60V...
6,017
7,217
<gh_stars>1000+ package org.xutils.http.app; import android.text.TextUtils; import android.webkit.URLUtil; import org.xutils.http.HttpMethod; import org.xutils.http.RequestParams; import org.xutils.http.request.HttpRequest; import org.xutils.http.request.UriRequest; public class DefaultRedirectHandler implements Red...
1,109
7,482
#ifndef __RASPI4_H__ #define __RASPI4_H__ #include <rthw.h> #define __REG32(x) (*((volatile unsigned int *)(x))) //base address #define PER_BASE (0xFE000000) //gpio offset #define GPIO_BASE_OFFSET (0x00200000) //pl011 offset #define PL011_UART_BASE_OFFSET (0x00201000) //pactl c...
2,791
530
#define CLASS_REGION 0 #define CLASS_AVATAR 1 #define CLASS_AMULET 2 #define CLASS_GHOST 3 #define CLASS_ATM 4 #define CLASS_GAME_PIECE 5 #define CLASS_BAG 6 #define CLASS_BALL 7 #define CLASS_BOOK 10 #define CLASS_BOOMERANG 11 #define CLASS_BOTTLE 12 #define CLASS_BOX 13 #define CLASS_CLUB 16 #define CLASS_COMPASS 17 ...
998
373
<reponame>kschu91/pyoidc #!/usr/bin/env python from urllib.parse import parse_qs from urllib.parse import urlencode from urllib.parse import urlparse import argparse import importlib import json import logging from jwkest.jws import alg2keytype from mako.lookup import TemplateLookup from requests import ConnectionErr...
10,471
521
<reponame>Fimbure/icebox-1<filename>third_party/virtualbox/src/VBox/Runtime/r3/darwin/rtProcInitExePath-darwin.cpp /* $Id: rtProcInitExePath-darwin.cpp $ */ /** @file * IPRT - rtProcInitName, Darwin. */ /* * Copyright (C) 2006-2017 Oracle Corporation * * This file is part of VirtualBox Open Source Edition (OSE), ...
909
880
/****************************************************************************** * Copyright (c) 2009-2018, <NAME> and individual contributors. * 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,923
3,156
import unittest from dbt.exceptions import ConnectionException from dbt.clients.registry import _get_with_retries class testRegistryGetRequestException(unittest.TestCase): def test_registry_request_error_catching(self): # using non routable IP to test connection error logic in the _get_with_retries functi...
136
312
<reponame>leoyey/reveno package org.reveno.atp.acceptance.tests; import org.junit.Assert; import org.junit.Test; import org.reveno.atp.acceptance.api.commands.CreateNewAccountCommand; import org.reveno.atp.acceptance.api.commands.NewOrderCommand; import org.reveno.atp.acceptance.api.events.AccountCreatedEvent; import ...
4,398
313
/* * Copyright 2018 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 t...
1,317
3,200
/** * Copyright 2020 Huawei Technologies Co., Ltd * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law...
718
17,703
#include "source/common/tcp_proxy/upstream.h" #include "envoy/upstream/cluster_manager.h" #include "source/common/http/codec_client.h" #include "source/common/http/codes.h" #include "source/common/http/header_map_impl.h" #include "source/common/http/headers.h" #include "source/common/http/utility.h" #include "source/...
4,660
881
<reponame>faizol/restinio template< typename C > const C * is_base64_char_lut() { static constexpr C table[] = { // 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 0x10...
5,695
1,056
<filename>ide/schema2beans/test/unit/data/TestDupInternalNames.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 ASF licenses this file * t...
861
419
<filename>thirdparty/win/miracl/miracl_osmt/source/cardano.cpp /* Solving cubic x^3+AX+B using Cardano's formula */ /* cl /O2 /GX cardona.cpp zzn2.cpp zzn.cpp big.cpp miracl.lib */ #include <iostream> #include <ctime> #include "zzn2.h" using namespace std; Miracl precision(50,0); // // Shanks method modified to fin...
1,747
305
<filename>aat/core/order_book/base.py from abc import ABC, abstractmethod from typing import Dict, Iterator, List, Optional, Tuple, Union from .price_level import PriceLevelRO from ..data import Order from ...config import Side class OrderBookBase(ABC): @abstractmethod def reset(self) -> None: pass ...
546
587
<filename>src/lib/OpenEXR/ImfRgbaFile.h // // SPDX-License-Identifier: BSD-3-Clause // Copyright (c) Contributors to the OpenEXR Project. // #ifndef INCLUDED_IMF_RGBA_FILE_H #define INCLUDED_IMF_RGBA_FILE_H //----------------------------------------------------------------------------- // // Simplified RGBA image I/O...
5,506
435
<reponame>luigidcsoares/psychec<filename>cnippet/wrapper/Python/Singleton.py # ----------------------------------------------------------------------------- # Copyright (c) 2017 <NAME> (<EMAIL>) # # All rights reserved. Unauthorized copying of this file, through any # medium, is strictly prohibited. # # This software i...
242
1,080
<gh_stars>1000+ #------------------------------------------------------------------------------ # Copyright (c) 2019, Nucleic Development Team. # # Distributed under the terms of the Modified BSD License. # # The full license is in the file LICENSE, distributed with this software. #-------------------------------------...
1,216
454
package io.vertx.tp.modular.id; import cn.vertxup.atom.domain.tables.pojos.MJoin; import io.vertx.tp.atom.modeling.element.DataMatrix; import io.vertx.tp.atom.refine.Ao; import io.vertx.up.commune.Record; import java.util.Set; import java.util.concurrent.ConcurrentMap; import java.util.stream.Collectors; abstract cl...
336
1,847
// Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. #include <windows.h> namespace krabs { /** <summary> * Converts std::wstring argument to std::string using UTF-8 codepage * Returns empty string if tr...
413
1,350
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. package com.azure.spring.servicebus.stream.binder; import com.azure.messaging.servicebus.models.ServiceBusReceiveMode; import com.azure.spring.integration.servicebus.ServiceBusClientConfig; import com.azure.spring.serviceb...
1,891
21,274
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved from .vertex_direct_embedder import VertexDirectEmbedder from .vertex_feature_embedder import VertexFeatureEmbedder from .embedder import Embedder
61
743
""" Export module """ import os import os.path import sqlite3 import sys import regex as re # pylint: disable=E0611 # Defined at runtime from .index import Index class Export: """ Exports database rows into a text file line-by-line. """ @staticmethod def stream(dbfile, output): """ ...
854
6,215
# # Copyright (c) 2021 Airbyte, Inc., all rights reserved. # import logging from pprint import pprint # %% import requests logging.basicConfig(level=logging.DEBUG) # %% specification = { "client_id": "REPLACE_ME", "secret": "REPLACE_ME", "start_date": "2021-06-01T00:00:00+00:00", "end_date": "2021-0...
953
582
<reponame>martinChenZ/spring-boot-demo<filename>leetcode/src/main/java/com/easy/leetcode/Sub96.java package com.easy.leetcode; /* 96. 不同的二叉搜索树 给定一个整数 n,求以 1 ... n 为节点组成的二叉搜索树有多少种? 示例: 输入: 3 输出: 5 解释: 给定 n = 3, 一共有 5 种不同结构的二叉搜索树: 1 3 3 2 1 \ / / / \ \ 3 2 ...
962
5,169
{ "name": "Graphs", "version": "0.1.1", "summary": "Charts view generater", "description": "Light weight charts view generater for iOS. Written in Swift.", "homepage": "https://github.com/recruit-mtl/Graphs", "license": { "type": "MIT", "file": "LICENSE.md" }, "authors": { "kokoro": "<EMAIL>...
245
2,123
require_extension('D'); require_fp; WRITE_RD(f64_le(f64(FRS1), f64(FRS2))); set_fp_exceptions;
47
9,136
/* Copyright (c) 2011 <NAME> (kmamou at gmail dot com) 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 of condi...
1,168
852
<filename>RecoJets/JetPlusTracks/python/ZSPJetCorrections332_cff.py import FWCore.ParameterSet.Config as cms # Modules # # Define the producers of corrected jet collections for each algorithm. # ZSPJetCorJetIcone5 = cms.EDProducer("CaloJetProducer", src = cms.InputTag("iterativeCone5CaloJets"), tagName = c...
636
12,366
// 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 of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
1,811
485
/* * Copyright 2016 Quora, 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...
320
605
<reponame>yuriykoch/llvm<filename>libcxx/test/std/utilities/memory/specialized.algorithms/uninitialized.fill.n/ranges_uninitialized_fill_n.pass.cpp //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See ...
1,367
624
import pytest import six import os import shutil import tempfile import time from verta._internal_utils.importer import get_tensorflow_major_version @pytest.mark.tensorflow class TestKeras: def test_sequential_api(self, experiment_run): verta_integrations_keras = pytest.importorskip("verta.integrations...
7,644
6,278
from pythonforandroid.recipe import CompiledComponentsPythonRecipe class UJsonRecipe(CompiledComponentsPythonRecipe): version = '1.35' url = 'https://pypi.python.org/packages/source/u/ujson/ujson-{version}.tar.gz' depends = [] recipe = UJsonRecipe()
94
4,054
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. package com.yahoo.vespa.clustercontroller.core.status; import com.yahoo.vespa.clustercontroller.core.ContentCluster; import com.yahoo.vespa.clustercontroller.core.FleetControllerOptions; /** * @author <NAME> */ ...
142
518
package io.sdb.common.entity.kuaidi100; import com.thoughtworks.xstream.XStream; public class TaskResponse { private static XStream xstream; private Boolean result; private String returnCode; private String message; public Boolean getResult() { return result; } public void setResult(Boolean result) { thi...
440
401
<filename>app/src/main/java/com/zwh/mvparms/eyepetizer/di/component/AuthorDetailComponent.java<gh_stars>100-1000 package com.zwh.mvparms.eyepetizer.di.component; import com.jess.arms.di.scope.ActivityScope; import dagger.Component; import com.jess.arms.di.component.AppComponent; import com.zwh.mvparms.eyepetizer.di...
211
2,945
// Copyright 2012,2013 <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 a...
690
638
<filename>examples/unixdomainsock/server.py from __future__ import print_function import os import Pyro4 @Pyro4.expose class Thingy(object): def message(self, arg): print("Message received:", arg) return "Roger!" if os.path.exists("example_unix.sock"): os.remove("example_unix.sock") with P...
195
513
#include <u.h> #include <ds/ds.h> #include <cc/cc.h> #include <mem/mem.h> static void expr(Node *); static void stmt(Node *); static void store(CTy *); char *intargregs[] = {"rdi", "rsi", "rdx", "rcx", "r8", "r9"}; int stackoffset; Vec *pendingdata; static FILE *o; void emitinit(FILE *out) { o = out; pen...
9,742
528
<reponame>SisMaker/jiffy<filename>c_src/doubles.cc<gh_stars>100-1000 #include "double-conversion/double-conversion.h" #define BEGIN_C extern "C" { #define END_C } namespace dc = double_conversion; BEGIN_C int double_to_shortest(unsigned char* buf, size_t size, size_t* len, double val) { int flags = dc::Double...
390
3,710
<reponame>rozhuk-im/opentoonz #pragma once #include <traster.h> namespace TScannerUtil { /* copia un rettangolo da rin a rout, * specchiandolo orizzontalmente se mirror e' dispari, * e poi ruotandolo del multiplo di novanta gradi specificato * da ninety in senso antiorario * */ void copyRGBBufferToTRaster32(un...
650
2,690
<gh_stars>1000+ # Copyright 2016 ClusterHQ Inc. See LICENSE file for details. from zope.interface import implementer from twisted.internet.defer import succeed from twisted.internet.task import Clock from flocker.testtools import TestCase from benchmark._interfaces import IRequest from benchmark.scenarios._request...
699
305
# Copyright 2020 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
4,240
1,522
<reponame>akung0324/mtools<filename>mtools/mloginfo/sections/rs_state_section.py from .base_section import BaseSection from mtools.util import OrderedDict from mtools.util.print_table import print_table class RsStateSection(BaseSection): """ RsStateSection class. This section determines if there were any...
713
1,975
<filename>pycls/models/blocks.py #!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. """Common model blocks.""" import numpy as np import torch import torch.nn as nn fro...
4,165
2,151
<gh_stars>1000+ /* * Copyright (C) 2014 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...
1,737
2,151
// 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 com.android.webview.chromium; import android.annotation.SuppressLint; import android.support.annotation.NonNull; import android.support.annotatio...
3,298
3,189
// // Generated by class-dump 3.5 (64 bit). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>. // #import "NSObject.h" #import "DTXBlockCompressor.h" @class NSString; @interface DTXBlockCompressorLibCompression : NSObject <DTXBlockCompressor> { // Error parsing type: AQ, name: ...
338
9,425
import pytest import salt.config import salt.output.highstate as highstate @pytest.fixture def configure_loader_modules(): minion_opts = salt.config.DEFAULT_MINION_OPTS.copy() minion_opts.update({"color": False, "state_output_pct": True}) return {highstate: {"__opts__": minion_opts}} @pytest.mark.parame...
3,476
5,169
{ "name": "SwiftEvent", "version": "1.0.1", "summary": "A Event of Swift.", "description": "It is a marquee view used on iOS, which implement by Swift.", "homepage": "https://github.com/Dada7357/SwiftEvent", "license": "MIT", "authors": { "dada7357": "<EMAIL>" }, "platforms": { "ios": "8.0" ...
244
373
<gh_stars>100-1000 /** @file Register names for PCH PCI-E root port devices Conventions: - Register definition format: Prefix_[GenerationName]_[ComponentName]_SubsystemName_RegisterSpace_RegisterName - Prefix: Definitions beginning with "R_" are registers Definitions beginning with "B_" a...
17,754
953
/*! @file @brief WSHインタフェースオブジェクト基本クラス @date 2009.10.29 syat CWSH.cppから切り出し */ /* Copyright (C) 2002, 鬼, genta Copyright (C) 2003, FILE Copyright (C) 2004, genta Copyright (C) 2005, FILE, zenryaku Copyright (C) 2009, syat Copyright (C) 2018-2021, Sakura Editor Organization This software is provided 'as-is',...
2,487
1,257
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT license. import torch import torch.nn as nn import torch.nn.functional as F from torch.autograd import Variable import numpy as np from block_zoo.BaseLayer import BaseLayer, BaseConf from utils.DocInherit import DocInherit class L...
2,155
335
<reponame>Safal08/Hacktoberfest-1<gh_stars>100-1000 { "word": "Superimposition", "definitions": [ "The action of placing or laying one thing over another, typically so that both are still evident." ], "parts-of-speech": "Noun" }
97
318
package com.wapchief.jpushim.greendao.model; import org.greenrobot.greendao.annotation.Entity; import org.greenrobot.greendao.annotation.Generated; import org.greenrobot.greendao.annotation.Id; /** * Created by Wu on 2017/5/8 0008 下午 2:32. * 描述:基础类 */ @Entity public class User { @Id(autoincrement = true) p...
279
2,177
<reponame>TheIdhem/cruise-control /* * Copyright 2021 LinkedIn Corp. Licensed under the BSD 2-Clause License (the "License"). See License in the project root for license information. */ package com.linkedin.kafka.cruisecontrol.detector; import com.linkedin.kafka.cruisecontrol.KafkaCruiseControlUtils; import com.lin...
4,264
1,303
/* * Tencent is pleased to support the open source community by making TBase available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * * TBase is licensed under the BSD 3-Clause License, except for the third-party component listed below. * * A copy of the BSD 3-Clause Li...
4,300
5,169
<filename>Specs/5/0/7/EnergyBar/0.1.1/EnergyBar.podspec.json { "name": "EnergyBar", "version": "0.1.1", "summary": "Simeple Message bar like Android's SnackBar", "description": "Simeple Message bar like Android's SnackBar", "homepage": "https://github.com/Koosj/EnergyBar", "license": { "type": "MIT" }...
233
733
import pytest import random import os import numpy as np import torch class CustomCommandLineOption(object): """An object for storing command line options parsed by pytest. Since `pytest.config` global object is deprecated and removed in version 5.0, this class is made to work as a store of command line ...
610
1,676
package sdk.chat.profile.pictures; import android.app.AlertDialog; import android.os.Bundle; import android.view.Menu; import android.view.MenuItem; import android.view.View; import android.widget.GridLayout; import android.widget.ImageView; import android.widget.LinearLayout; import android.widget.Toast; import andr...
3,908
1,145
<reponame>foss4/pontoon import pytest from pontoon.base.tests import ProjectFactory, ProjectLocaleFactory from pontoon.base.models import Project, ProjectLocale @pytest.fixture def public_project(): yield ProjectFactory.create(visibility=Project.Visibility.PUBLIC) @pytest.fixture def private_project(): yiel...
723
354
/*------------------------------------------------------------------------- * drawElements Quality Program OpenGL ES 3.0 Module * ------------------------------------------------- * * Copyright 2014 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not ...
9,022
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. package org.chromium.chrome.browser.contextualsearch; import androidx.annotation.IntDef; import org.chromium.base.metrics.RecordHistogram; import java....
2,754
778
<filename>kratos/tests/cpp_tests/utilities/test_sparse_matrix_mutiplication_utilities.cpp<gh_stars>100-1000 // | / | // ' / __| _` | __| _ \ __| // . \ | ( | | ( |\__ ` // _|\_\_| \__,_|\__|\___/ ____/ // Multi-Physics // // License: BSD License // Kratos d...
1,058
848
<reponame>bluetiger9/Vitis-AI # # 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 applicab...
498
7,604
/* --------------------------------------------------------------------------- Open Asset Import Library (assimp) --------------------------------------------------------------------------- Copyright (c) 2006-2021, assimp team All rights reserved. Redistribution and use of this software in source and binary forms, w...
1,220
1,042
/******************************************************************************** * ReactPhysics3D physics library, http://www.reactphysics3d.com * * Copyright (c) 2010-2020 <NAME> * ********************************************************************************* *...
3,457
1,538
package com.spinytech.macore.router; import android.content.Context; import android.text.TextUtils; import com.spinytech.macore.tools.Logger; import com.spinytech.macore.tools.ProcessUtil; import org.json.JSONException; import org.json.JSONObject; import java.io.UnsupportedEncodingException; import java.net.URLDeco...
6,186
2,151
<filename>ios/chrome/browser/browsing_data/browsing_data_remover_observer.h // Copyright 2018 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef IOS_CHROME_BROWSER_BROWSING_DATA_BROWSING_DATA_REMOVER_OBSERVER_H_ #de...
439
5,169
{ "name": "Modality", "version": "0.0.1", "authors": { "<NAME>": "<EMAIL>" }, "summary": "View focused transitions library. (Modals and other custom transitions)", "homepage": "https://github.com/kevinwl02/Modality.git", "license": { "type": "MIT", "file": "LICENSE" }, "platforms": { "...
243
32,544
package com.baeldung.rpc.finagle; import com.twitter.finagle.Http; import com.twitter.finagle.Service; import com.twitter.finagle.http.Method; import com.twitter.finagle.http.Request; import com.twitter.finagle.http.Response; import com.twitter.util.Await; import com.twitter.util.Future; import org.junit.Test; import ...
545
419
/** * @file lv_refr.h * */ #ifndef LV_REFR_H #define LV_REFR_H #ifdef __cplusplus extern "C" { #endif /********************* * INCLUDES *********************/ #include "lv_obj.h" #include <stdbool.h> /********************* * DEFINES *********************/ /********************** * TYPEDEFS...
611
2,542
<filename>src/prod/src/Management/HttpTransport/ClientRequest.GetResponseBodyAsyncOperation.cpp // ------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License (MIT). See License.txt in the repo root for license information....
1,918
353
#pragma once #include <torch/types.h> #include <c10/util/Exception.h> #include <chrono> #include <condition_variable> #include <cstddef> #include <mutex> #include <queue> namespace torch { namespace data { namespace detail { /// A basic locked, blocking MPMC queue. /// /// Every `push` and `pop` ...
942
631
/* * Copyright 2018 <NAME>. 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 ...
559
310
<reponame>dreeves/usesthis { "name": "blueSky", "description": "A reverb pedal.", "url": "https://www.strymon.net/products/bluesky/" }
58
3,227
#include <CGAL/Exact_predicates_inexact_constructions_kernel.h> #include <CGAL/Constrained_Delaunay_triangulation_2.h> #include <CGAL/Delaunay_mesh_face_base_2.h> #include <CGAL/Delaunay_mesh_size_criteria_2.h> #include <CGAL/Delaunay_mesher_2.h> #include <CGAL/Triangulation_face_base_with_info_2.h> #include <CGAL/Pol...
1,001
1,244
<reponame>caiohamamura/libcxx<gh_stars>1000+ //===----------------------------------------------------------------------===// // // The LLVM Compiler Infrastructure // // This file is dual licensed under the MIT and the University of Illinois Open // Source Licenses. See LICENSE.TXT for details. // ...
217
399
/* * Copyright 2012 <NAME>. All rights reserved. * * * Redistribution and use in source and binary forms, with or without modification, are * permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above copyright notice, this list of * conditions...
1,351
391
#!/usr/bin/python3 import numpy as np import matplotlib.pyplot as plt from mseg_semantic.utils.confusion_matrix_utils import plot_confusion_matrix class ConfusionMatrixRenderer(): def __init__(self, save_folder, class_names, dataset_name): """ """ self.save_folder = save_folder s...
904
531
<reponame>zosimovaa/10-steps-to-become-a-data-scientist def check_missing_data(df): flag=df.isna().sum().any() if flag==True: total = df.isnull().sum() percent = (df.isnull().sum())/(df.isnull().count()*100) output = pd.concat([total, percent], axis=1, keys=['Total', 'Percent']) ...
291
340
<reponame>lgorenstein/hpc-container-maker """ MILC 7.8.1 Contents: Ubuntu 16.04 CUDA version 10.2 GNU compilers (upstream) OFED (upstream) OpenMPI version 3.1.4 QUDA version 0.8.0 """ # pylint: disable=invalid-name, undefined-variable, used-before-assignment # pylama: ignore=E0602 gpu_arch = USERARG.get('...
2,264
313
from module.utils import COLORS page_1 =f''' {COLORS.GNSL} ⠀⠀⠀⢀⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⡀ _ _ ⠀⠀⠀⡏⢢⡁⠂⠤⣀⣀⣀⣀⣀ ⠤⠐⢈⡔⢹ ___ ___(_)_ __ | |_ ___ __ _ _ __ ⠀⠀⠀⢿⡀⠙⠆⠀⠉⠀⠀⠀⠀⠉⠀⠰⠋⢀⡿ / _ \/ __| | '_ \| __...
5,435