max_stars_count
int64
301
224k
text
stringlengths
6
1.05M
token_count
int64
3
727k
370
<filename>src/video_rxtx/h264_rtp.cpp /** * @file video_rxtx/h264_rtp.cpp * @author <NAME> <<EMAIL>> * @author <NAME> <<EMAIL>> * @author <NAME> <<EMAIL>> * @author <NAME> <<EMAIL>> */ /* * Copyright (c) 2013-2014 Fundació i2CAT, Internet I Innovació Digital a Catalunya * Copyright (c) 2013-2014 CESNE...
2,450
770
// Copyright (C) 2015 The Regents of the University of California (Regents). // 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...
3,050
4,083
import cv2 import numpy as np from unittest import TestCase, main from frigate.util import get_yuv_crop, copy_yuv_to_position class TestCopyYuvToPosition(TestCase): def setUp(self): self.source_frame_bgr = np.zeros((400, 800, 3), np.uint8) self.source_frame_bgr[:] = (0, 0, 255) self.source...
1,192
526
<reponame>rychagova/egeria /* SPDX-License-Identifier: Apache-2.0 */ /* Copyright Contributors to the ODPi Egeria project. */ package org.odpi.openmetadata.accessservices.governanceprogram.properties; import com.fasterxml.jackson.annotation.JsonAutoDetect; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; ...
1,681
1,170
<gh_stars>1000+ // // VHTabVCBackgroundView.h // VHGithubNotifier // // Created by viktorhuang on 2016/12/26. // Copyright © 2016年 黄伟平. All rights reserved. // @interface VHTabVCBackgroundView : NSControl @property (nonatomic, assign) CGFloat arrowWidth; @property (nonatomic, assign) CGFloat arrowHeight; @propert...
199
771
{ "name": "Browser Default Styles", "desc": "Search elements, filter engines, find browser default styles", "url": "https://browserdefaultstyles.com/", "tags": [ "CSS", "HTML" ], "maintainers": [ "UncaughtTypeError" ], "addedAt": "2020-02-04" }
104
600
/* * OpenBOR - http://www.LavaLit.com * ----------------------------------------------------------------------- * Licensed under the BSD license, see LICENSE in OpenBOR root for details. * * Copyright (c) 2004 - 2011 OpenBOR Team */ #include "xboxport.h" #include "video.h" #include "vga.h" static int screen_w, ...
296
348
<gh_stars>100-1000 {"nom":"Béganne","circ":"4ème circonscription","dpt":"Morbihan","inscrits":1144,"abs":580,"votants":564,"blancs":8,"nuls":4,"exp":552,"res":[{"nuance":"REM","nom":"<NAME>","voix":257},{"nuance":"LR","nom":"Mme <NAME>","voix":104},{"nuance":"FI","nom":"Mme <NAME>","voix":75},{"nuance":"FN","nom":"Mme ...
269
335
{ "word": "Decadent", "definitions": [ "A person who is luxuriously self-indulgent.", "A member of a group of late 19th-century French and English poets associated with the Aesthetic Movement." ], "parts-of-speech": "Noun" }
97
572
""" Parte 1 """ import threading print(threading.active_count()) # Retorna a contagem das threads print(threading.enumerate()) # Retonar uma iterável das threads """ parte 2 """ import threading print(threading.enumerate()[0].name) # Nome da thread print(threading.enumerate()[0].is_alive()) # Stado da thread """...
773
2,564
// // Created by CainHuang on 2019/8/17. // #include "YuvData.h" YuvData::YuvData() : dataY(nullptr), dataU(nullptr), dataV(nullptr), lineSizeY(0), lineSizeU(0), lineSizeV(0), width(0), height(0) { } YuvData::YuvData(int width, int height) : dataY(new uint8_t[width * height...
1,020
14,668
// Copyright 2021 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef COMPONENTS_VIZ_SERVICE_PERFORMANCE_HINT_UTILS_H_ #define COMPONENTS_VIZ_SERVICE_PERFORMANCE_HINT_UTILS_H_ #include <vector> #include "base/conta...
345
450
<reponame>serpent7776/reckless<gh_stars>100-1000 /* This file is part of reckless logging * Copyright 2015-2020 <NAME> <<EMAIL>> * * 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...
1,356
369
/* * Copyright © 2019 <NAME>, 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 i...
452
1,077
<filename>anime_downloader/sites/animefreak.py<gh_stars>1000+ import re from anime_downloader.sites.anime import Anime, AnimeEpisode, SearchResult from anime_downloader.sites.exceptions import NotFoundError from anime_downloader.sites import helpers class AnimeFreak(Anime, sitename='animefreak'): sitename = 'ani...
1,005
7,113
/* * Copyright (C) 2010-2101 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 ...
2,742
589
// // Copyright (c) 2017-2018 Advanced Micro Devices, Inc. All rights reserved. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rig...
2,260
2,728
<filename>sdk/servicebus/azure-servicebus/azure/servicebus/management/_handle_response_error.py # -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root...
307
15,337
# Generated by Django 3.2.5 on 2021-07-26 14:51 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ("site", "0032_gift_card_settings"), ] operations = [ migrations.AddField( model_name="sitesettings", name="reserve_st...
280
2,742
<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 the License. * You may obtain a copy of the License at * * http://www.apache.org/li...
6,336
8,772
package org.apereo.cas.authentication; import org.junit.jupiter.api.Tag; import org.junit.jupiter.api.Test; import static org.junit.jupiter.api.Assertions.*; /** * This is {@link DefaultAuthenticationResultBuilderFactoryTests}. * * @author <NAME> * @since 6.4.0 */ @Tag("Authentication") public class DefaultAuth...
165
1,014
<filename>Database/Equities/Countries/Thailand/Industries/Insurance Brokers.json { "ASN.BK": { "short_name": "ASN BROKER PUBLIC COMPANY LIMIT", "long_name": "ASN Broker Public Company Limited", "summary": "ASN Broker Public Company Limited, together with its subsidiaries, provides insura...
1,081
6,989
<filename>contrib/libs/cblas/cblas_interface/idamaxsub.c /* ./idamaxsub.f -- translated by f2c (version 20100827). You must link the resulting object file with libf2c: on Microsoft Windows system, link with libf2c.lib; on Linux or Unix systems, link with .../path/to/libf2c.a -lm or, if you install libf2c.a in a s...
399
473
//#The following is a list of quotes from the American Film Institute's 100 Years... 100 Movie Quotes. The quotes were retrieved from Wikipedia <http://en.wikipedia.org/wiki/AFI's_100_Years...100_Movie_Quotes>. A few truncations were made so the sentences fit into 64 characters. Also we only used the first 50 quotes in...
626
961
#include <stdio.h> #include <time.h> #include <roaring/portability.h> #include <roaring/containers/array.h> #include <roaring/containers/bitset.h> #include <roaring/containers/run.h> #include <roaring/containers/mixed_equal.h> #include "benchmark.h" #include "random.h" int32_t array_container_get_nruns(const array_con...
980
1,779
// // Copyright 2019 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to ...
1,181
2,118
// Copyright (c) 2006-2018 <NAME> // // Distributed under the Boost Software License, Version 1.0. (See accompanying // file LICENSE or copy at http://www.boost.org/LICENSE_1_0.txt) #include <type_traits> #include <cds/opt/options.h> // Value options namespace { template <int Val> struct int_opt { st...
2,702
9,782
/* * 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,469
4,537
<filename>src/master/framework.cpp // 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, Vers...
7,757
2,659
/* * Copyright 2021 4Paradigm * * 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 w...
697
348
{"nom":"Pontlevoy","circ":"1ère circonscription","dpt":"Loir-et-Cher","inscrits":1185,"abs":584,"votants":601,"blancs":41,"nuls":12,"exp":548,"res":[{"nuance":"MDM","nom":"<NAME>","voix":331},{"nuance":"FN","nom":"<NAME>","voix":217}]}
94
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...
755
66,985
/* * Copyright 2012-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 * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by a...
650
5,703
package springfox.test.contract.swagger.models; import java.util.List; //From stack overflow answer https://stackoverflow.com/a/10518009 public class ExampleListWrapper { private List<Example> exampleList; public List<Example> getExampleList() { return exampleList; } public void setExampleList(List<Exam...
117
2,151
<reponame>zipated/src /* * Copyright 2016 The Chromium OS 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 <stddef.h> #include <stdio.h> #include "drv.h" #include "gbm.h" uint64_t gbm_convert_usage(uint32_t usage) { u...
630
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...
3,105
711
package com.java110.fee.bmo.feeReceiptDetail; import com.java110.po.feeReceiptDetail.FeeReceiptDetailPo; import org.springframework.http.ResponseEntity; public interface ISaveFeeReceiptDetailBMO { /** * 添加收据明细 * add by wuxw * @param feeReceiptDetailPo * @return */ ResponseEntity<Stri...
169
1,457
# Copyright The PyTorch Lightning team. # # 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 i...
987
342
<filename>test/test_httpclient.py """ pykube.http unittests """ import copy import logging import pykube from . import TestCase BASE_CONFIG = { "clusters": [ { "name": "test-cluster", "cluster": { "server": "http://localhost:8080", } } ], ...
2,008
369
{ "disable_persistent_config": true, "logging": { "console": { "log_keys": ["*"] } }, "databases": { "db": { "server": "couchbase://localhost", "username": "username", "password": "password", "bucket": "default", "users": { "GUEST": { "disabled": false, "admin_cha...
465
1,006
/**************************************************************************** * arch/arm/src/tiva/cc13xx/cc13xx_enableclks.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 regardin...
880
1,338
<reponame>Kirishikesan/haiku /* * Copyright 2010, Haiku, Inc. All Rights Reserved. * Distributed under the terms of the MIT License. */ #ifndef _NETWORK_ROSTER_H #define _NETWORK_ROSTER_H #include <Locker.h> #include <NetworkNotifications.h> #include <ObjectList.h> class BMessenger; class BNetworkInterface; struc...
525
2,132
<reponame>HedgehogCode/javacpp-presets // Targeted by JavaCPP version 1.5.7-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.cuda.cudart; import java.nio.*; import org.bytedeco.javacpp.*; import org.bytedeco.javacpp.annotation.*; import static org.bytedeco.javacpp.presets.javacpp.*; import static org.bytedeco.c...
882
694
<reponame>Dave360-crypto/android-vts /* * Copyright (C) 2012 by <NAME> (http://xgouchet.fr, <EMAIL>) MIT Licence / Expat * * 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, *...
1,466
10,192
<filename>akka-cluster-sharding-typed/src/test/java/jdocs/akka/cluster/sharding/typed/ShardingReplyCompileOnlyTest.java /* * Copyright (C) 2018-2021 Lightbend Inc. <https://www.lightbend.com> */ package jdocs.akka.cluster.sharding.typed; import akka.actor.typed.Behavior; import akka.actor.typed.javadsl.AbstractBeha...
939
651
#include <stdlib.h> #include <string.h> #include <math.h> #include <napi.h> #include <uv.h> #include <get-uv-event-loop-napi.h> using namespace Napi; #undef SYMBOL_EXPORT #ifdef _WIN32 # define SYMBOL_EXPORT __declspec(dllexport) #else # define SYMBOL_EXPORT __attribute__((visibility("default"))) #endif /* * Export...
2,703
748
<filename>pytorch_translate/research/tune_ensemble_weights/tune_model_weights.py #!/usr/bin/env python3 import itertools import numpy as np import pandas as pd from fairseq import options from pytorch_translate import generate from pytorch_translate.constants import CHECKPOINT_PATHS_DELIMITER def add_tune_args(pars...
966
448
// // AbrBufferRefererData.h // apsara_player // // Created by shiping.csp on 2018/11/1. // #ifndef AbrBufferRefererData_h #define AbrBufferRefererData_h #include <stdio.h> #include "AbrRefererData.h" class AbrBufferRefererData : public AbrRefererData { public: AbrBufferRefererData(void* playerPtr); virtu...
259
6,210
/* * 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,990
711
package com.java110.intf.demo; import com.java110.config.feign.FeignConfiguration; import com.java110.dto.demo.DemoDto; import org.springframework.cloud.openfeign.FeignClient; import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestMapping; import org.springfra...
540
30,785
<gh_stars>1000+ package jadx.tests.integration.synchronize; import org.junit.jupiter.api.Test; import jadx.tests.api.SmaliTest; import static jadx.tests.api.utils.assertj.JadxAssertions.assertThat; public class TestNestedSynchronize extends SmaliTest { // @formatter:off /* public final void test() { Object ...
237
1,144
/****************************************************************************** * * Copyright(c) 2015 - 2018 Realtek Corporation. * * This program is free software; you can redistribute it and/or modify it * under the terms of version 2 of the GNU General Public License as * published by the Free Software Foundat...
53,631
2,422
<reponame>SharpKoi/Kashgari # encoding: utf-8 # author: BrikerMan # contact: <EMAIL> # blog: https://eliyar.biz # file: macros.py # time: 12:37 下午 import os from pathlib import Path from typing import Dict DATA_PATH = os.path.join(str(Path.home()), '.kashgari') Path(DATA_PATH).mkdir(exist_ok=True, parents=True) ...
241
639
<reponame>lynex/nnfusion // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. /** * \brief Profiler::CudaRuntime for creating a Compiler to profile the kernel * \author wenxh */ #pragma once #include "binary_utils.hpp" #include "profiling_runtime.hpp" namespace nnfusion { namespace profi...
694
371
<gh_stars>100-1000 from pathlib import Path import pytest from cibuildwheel.options import ConfigOptionError, OptionsReader, _dig_first PYPROJECT_1 = """ [tool.cibuildwheel] build = "cp39*" environment = {THING = "OTHER", FOO="BAR"} test-command = "pyproject" test-requires = "something" test-extras = ["one", "two"]...
3,916
2,583
from arm.logicnode.arm_nodes import * class RpMSAANode(ArmLogicTreeNode): """Sets the MSAA quality.""" bl_idname = 'LNRpMSAANode' bl_label = 'Set MSAA Quality' arm_version = 1 property0: HaxeEnumProperty( 'property0', items = [('1', '1', '1'), ('2', '2', '2'), ...
357
868
<reponame>phamleduy04/lavaplayer package com.sedmelluq.discord.lavaplayer.filter; /** * A PCM filter which must be able to correctly process all representations of PCM input data, as specified by the * methods of the interfaces it extends. */ public interface UniversalPcmAudioFilter extends ShortPcmAudioFilter, Spl...
103
678
<reponame>RockerHX/FishChat<gh_stars>100-1000 // // Generated by class-dump 3.5 (64 bit). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>. // #import "WXSearchJSLogicImpl.h" #import "UIWebViewDelegate.h" #import "WASearchResultLogicCallbackWrapDelegate.h" @class FTSWebSearchMgr, N...
1,124
14,668
<filename>services/video_capture/broadcasting_receiver.h<gh_stars>1000+ // 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 SERVICES_VIDEO_CAPTURE_BROADCASTING_RECEIVER_H_ #define SERVICES_VIDEO_CAP...
2,412
21,573
{ "workbench.colorCustomizations": { "terminal.foreground": "#bbc2cf", "terminal.background": "#282c34", "terminal.ansiBlack": "#000000", "terminal.ansiBlue": "#a9a1e1", "terminal.ansiCyan": "#51afef", "terminal.ansiGreen": "#98be65", "terminal.ansiMagenta": "...
459
778
<filename>shared/test/common/libult/debug_settings_reader_creator.cpp /* * Copyright (C) 2018-2021 Intel Corporation * * SPDX-License-Identifier: MIT * */ #include "shared/source/utilities/debug_settings_reader_creator.h" namespace NEO { std::unique_ptr<SettingsReader> SettingsReaderCreator::create(const std::st...
140
2,151
// Copyright 2015 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef CONTENT_RENDERER_PEPPER_PEPPER_PLUGIN_INSTANCE_METRICS_H_ #define CONTENT_RENDERER_PEPPER_PEPPER_PLUGIN_INSTANCE_METRICS_H_ namespace content { ...
209
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 in writi...
597
577
package org.fluentlenium.core.wait; /** * Control interface for fluent wait. */ public interface AwaitControl { /** * wait for an asynchronous call * * @return FluentWait element */ FluentWait await(); }
84
1,253
/* N Queens backtracking algorithm * For more information: * https://www.hackerearth.com/practice/basic-programming/recursion/recursion-and-backtracking/tutorial/ */ #include <string.h> #include <stdbool.h> #include <stdio.h> #define N (100) /* maximum number of N for 2D array */ /* Return true if position (x, y)...
918
339
<gh_stars>100-1000 package Backpropagation.Algorithm; class Connection { private double weight = 0; private double bestWeight = 0; private double prevDeltaWeight = 0; // for momentum private double deltaWeight = 0; final Neuron leftNeuron; static int counter = 0; final int id; // auto incr...
382
3,039
../../../CocoaAsyncSocket/Source/RunLoop/AsyncUdpSocket.h
20
578
import unittest from mock import MagicMock, patch, call from tests.tools.client.fixtures import topic_metadata from kafka.tools.client import Client from kafka.tools.configuration import ClientConfiguration from kafka.tools.exceptions import ConfigurationError, ConnectionError from kafka.tools.models.broker import Br...
1,576
616
<filename>tests/test_in_lieu_days.py # -*- coding: utf-8 -*- import unittest import chinese_calendar class InLieuTests(unittest.TestCase): def test_in_lieu_should_be_holiday(self): self.assertTrue(all(chinese_calendar.is_holiday(_) for _ in chinese_calendar.in_lieu_days)) def test_in_lieu_should_equ...
802
582
<filename>tests/com.archimatetool.editor.tests/src/com/archimatetool/editor/model/impl/ByteArrayStorageTests.java /** * This program and the accompanying materials * are made available under the terms of the License * which accompanies this distribution in the file LICENSE.txt */ package com.archimatetool.edit...
2,063
759
/* * Copyright 2019 <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 agreed to in wr...
697
713
<gh_stars>100-1000 class Solution(object): def licenseKeyFormatting(self, S, K): """ :type S: str :type K: int :rtype: str """ S = ''.join(S.split('-')).upper() reminder = K if len(S) % K == 0 else len(S) % K currentIdx = reminder resultS = S[:...
288
14,668
// 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 CHROME_BROWSER_SHARING_CLICK_TO_CALL_CLICK_TO_CALL_METRICS_H_ #define CHROME_BROWSER_SHARING_CLICK_TO_CALL_CLICK_TO_CALL_METRICS_H_ namespace con...
585
327
package com.honvay.cola.cloud.auth.client.service.impl; import com.honvay.cola.cloud.auth.client.entity.Client; import com.honvay.cola.cloud.auth.client.service.ClientService; import com.honvay.cola.cloud.framework.base.service.impl.BaseServiceImpl; import org.springframework.stereotype.Service; /** * <p> * OAuth2客...
182
3,673
<gh_stars>1000+ #pragma once #include "dns.hpp" #include <net/addr.hpp> namespace net::dns { struct Record { std::string name; Record_type rtype; Class rclass; uint32_t ttl; uint16_t data_len; std::string rdata; Record() = default; int parse(const char* reader, cons...
331
3,765
<reponame>zhangxinngang/pmd /** * BSD-style license; for more info see http://pmd.sourceforge.net/license.html */ package net.sourceforge.pmd.util.database; import java.io.File; import java.io.IOException; import java.io.InputStream; import java.nio.file.Files; import java.nio.file.NoSuchFileException; import java....
6,134
839
from baserow.contrib.database.fields.models import Field from baserow.core.exceptions import ( InstanceTypeDoesNotExist, InstanceTypeAlreadyRegistered, ) class FieldTypeAlreadyRegistered(InstanceTypeAlreadyRegistered): pass class FieldTypeDoesNotExist(InstanceTypeDoesNotExist): pass class FieldNot...
1,106
678
<gh_stars>100-1000 /** * This header is generated by class-dump-z 0.2b. * * Source: /System/Library/PrivateFrameworks/ChatKit.framework/ChatKit */ #import <ChatKit/CKBalloonView.h> #import <ChatKit/ChatKit-Structs.h> @class UIImage; @interface CKImageBalloonView : CKBalloonView { UIImage *_img; // 96 = 0x60 UI...
402
506
// https://cses.fi/problemset/task/1652/ #include <bits/stdc++.h> using namespace std; using vi = vector<int>; using vvi = vector<vi>; int main() { ios::sync_with_stdio(0), cin.tie(0); int n, q, w, x, y, z; cin >> n >> q; vvi a(n + 1, vi(n + 1)); for (int i = 1; i <= n; i++) { string s; cin >> s; ...
293
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 ...
703
1,278
<reponame>RomanVolak/treesheets // Copyright 2014 <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 // // U...
1,045
2,023
# ReportLab PDF library must be already installed from reportlab.pdfgen import canvas from reportlab.pdfbase import pdfmetrics # Create a new canvas for cyrillic.pdf file c = canvas.Canvas('cyrillic.pdf') # fname - the font file name without extension fname = 'a010013l' # faceName - view a010013l.AFM file as a plain...
1,292
3,050
package com.brianway.webporter.data; public class RawInput<T> extends DataFlow<T> { public int getLeftCount() { return queue.size(); } public T poll() { return queue.poll(); } }
88
585
# Copyright (c) 2016-present, Facebook, 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...
1,265
325
<reponame>hongshui3000/sof // SPDX-License-Identifier: BSD-3-Clause // // Copyright(c) 2020 Google LLC. All rights reserved. // // Author: <NAME> <<EMAIL>> #include <stdint.h> #include <sof/audio/component.h> #include <sof/audio/format.h> #include <sof/audio/dcblock/dcblock.h> /** * * Genereric processing function....
1,534
3,307
<filename>dynet/nodes-linalg.cc #include "dynet/tensor-eigen.h" #include "dynet/nodes-linalg.h" #include "dynet/nodes-impl-macros.h" #include "dynet/except.h" using namespace std; namespace dynet { // ************* Transpose ************* #ifndef __CUDACC__ string Transpose::as_string(const vector<string>& arg_nam...
3,311
2,151
// Copyright (c) 2013 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "ppapi/cpp/private/video_destination_private.h" #include "ppapi/c/pp_errors.h" #include "ppapi/c/private/ppb_video_destination_private.h" #i...
916
2,151
<reponame>zipated/src /* Error handling in libdwfl. Copyright (C) 2005-2010 Red Hat, Inc. This file is part of elfutils. This file is free software; you can redistribute it and/or modify it under the terms of either * the GNU Lesser General Public License as published by the Free Software Foun...
1,370
7,739
import pytest from ludwig.constants import COMBINED, LOSS from ludwig.features.category_feature import CategoryOutputFeature from ludwig.features.feature_utils import LudwigFeatureDict from ludwig.utils import trainer_utils from ludwig.utils.metric_utils import TrainerMetric def test_progress_tracker_empty(): ou...
1,441
463
<reponame>pblew/jmockit1 package integrationTests; public final class ClassNotExercised { public boolean doSomething(int i, String s) { if (i > 0) { System.out.println(s); } return s.length() > 0; } }
108
335
{ "word": "Unclassified", "definitions": [ "Not arranged in or assigned to classes or categories.", "(of a road) not classified according to the overall system of road numbering.", "Denoting a university degree without honours.", "(of a grade in an examination) denoting a fail.",...
145
777
<reponame>google-ar/chromium // Copyright 2016 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef UI_VIEWS_CONTROLS_FOCUS_RING_H_ #define UI_VIEWS_CONTROLS_FOCUS_RING_H_ #include "base/optional.h" #include "ui/nati...
518
1,867
<filename>src/main/java/net/glowstone/net/message/play/game/SignEditorMessage.java package net.glowstone.net.message.play.game; import com.flowpowered.network.Message; import lombok.Data; @Data public final class SignEditorMessage implements Message { private final int x; private final int y; private fin...
109
778
/* * Copyright (C) 2019 xuexiangjys(<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 required by applicable la...
2,959
341
<filename>PNAS/genotypes.py from collections import namedtuple Genotype = namedtuple('Genotype', 'normal normal_concat reduce reduce_concat') PNASNet = Genotype( normal = [ ('sep_conv_5x5', 0), ('max_pool_3x3', 0), ('sep_conv_7x7', 1), ('max_pool_3x3', 1), ('sep_conv_5x5', 1), ('sep_conv_3x3...
409
4,002
package me.zeroX150.cornos.mixin.packet; import me.zeroX150.cornos.Cornos; import me.zeroX150.cornos.features.module.ModuleRegistry; import me.zeroX150.cornos.features.module.impl.external.MemeSFX; import net.minecraft.network.listener.ClientPlayPacketListener; import net.minecraft.network.packet.s2c.play.ExplosionS2C...
450
2,698
<reponame>suman-somu/pslab-android package io.pslab.others; import android.Manifest; import android.app.Activity; import android.content.pm.PackageManager; import androidx.core.app.ActivityCompat; import androidx.core.content.ContextCompat; import java.util.ArrayList; import java.util.List; /** * Created by Padmal ...
1,535
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...
1,404
471
from functools import wraps from django.http import HttpResponseBadRequest, HttpResponseForbidden from corehq.apps.linked_domain.dbaccessors import get_upstream_domain_link from corehq.apps.linked_domain.util import can_access_linked_domains REMOTE_REQUESTER_HEADER = 'HTTP_HQ_REMOTE_REQUESTER' def require_access_t...
473
45,293
package test; public interface StringConcatenationInParam { public @interface Anno { String value(); } @Anno("he" + "l" + "lo") public static class Class { } }
72