max_stars_count
int64
301
224k
text
stringlengths
6
1.05M
token_count
int64
3
727k
398
/* Copyright 2013 Twitter, 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 writing, software distr...
233
623
<filename>Tools/IGCSInjector/IGCSInjector/CDataFile.h // // CDataFile Class Implementation // // The purpose of this class is to provide a simple, full featured means to // store persistent data to a text file. It uses a simple key/value paradigm // to achieve this. The class can read/write to standard Windows .ini f...
3,136
660
package quick.pager.shop.constants; /** * redis缓存key * * @author siguiyang */ public interface PlatformRedisKeys { }
48
809
<reponame>nikitavlaev/embox<filename>src/cmds/shell/diag_shell/console/screen.c<gh_stars>100-1000 /** * @file * * @date 28.02.09 * @author <NAME> */ #include "screen.h" #include "cmdline.h" #include <stddef.h> SCREEN * screen_init(SCREEN *this, SCREEN_IO *io) { if (this == NULL || io == NULL) { return NULL; ...
187
2,023
<filename>recipes/Python/525484_Convenience_class_algorithm/recipe-525484.py<gh_stars>1000+ """classes for timing during development by <NAME>, 070722 """ from time import clock, time #--- timer decorator ----------------------------------- class Timer(object): def __init__(self, f): self.__f=f s...
1,734
1,781
package org.nico.ratel.landlords.helper; import java.util.ArrayList; import java.util.Arrays; import java.util.Collections; import java.util.Comparator; import java.util.HashSet; import java.util.List; import java.util.Set; import org.nico.ratel.landlords.entity.Poker; import org.nico.ratel.landlords.entity.PokerSell...
8,652
1,041
package org.tests.o2m.lazy; import javax.persistence.*; import java.util.ArrayList; import java.util.List; @Entity @Table(name = "oml_bar") public class OmlBar { @Id private Long id; @OneToMany(mappedBy = "bar", cascade = CascadeType.ALL) private List<OmlFoo> fooList = new ArrayList<OmlFoo>(); public Lon...
225
1,144
/* * #%L * de.metas.async * %% * Copyright (C) 2021 metas GmbH * %% * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as * published by the Free Software Foundation, either version 2 of the * License, or (at your option) any later vers...
513
3,227
<reponame>ffteja/cgal namespace CGAL { /*! \ingroup PkgTriangulation3TraitsClasses \deprecated The class is deprecated since \cgal 4.10, as the weighted point and the function objects for weighted points are part of the concept `Kernel`. The class is kept for backward compatibility, but ignores the template paramete...
244
2,023
#!/usr/bin/env python # -*- coding: utf8 -*- __version__ = '$Id: binclock_bcd_curses.py 780 2010-10-19 10:33:34Z mn $' # binary clock, bcd version # author: <NAME> import sys import time import curses def bin_old(n): """bin() that works with Python 2.4""" if n < 1: return '0' result = [] while n: if n % 2: ...
805
14,668
// 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. #include "base/one_shot_event.h" #include "chrome/browser/extensions/extension_browsertest.h" #include "content/public/test/browser_test.h" #include "exte...
795
678
<filename>WeChat-Headers/MMAlbum.h // // Generated by class-dump 3.5 (64 bit). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>. // #import "MMObject.h" #import "NSCopying.h" @interface MMAlbum : MMObject <NSCopying> { } - (id)copyWithZone:(struct _NSZone *)arg1; - (id)lastAssetWi...
341
1,495
<filename>python/lesson02/solution/hello.py<gh_stars>1000+ import sys import time from lib.tracing import init_tracer def say_hello(hello_to): with tracer.start_active_span('say-hello') as scope: scope.span.set_tag('hello-to', hello_to) hello_str = format_string(hello_to) print_hello(hello_...
372
348
{"nom":"Romain-aux-Bois","circ":"4ème circonscription","dpt":"Vosges","inscrits":46,"abs":12,"votants":34,"blancs":1,"nuls":2,"exp":31,"res":[{"nuance":"LR","nom":"<NAME>","voix":21},{"nuance":"SOC","nom":"<NAME>","voix":10}]}
94
348
{"nom":"<NAME>","circ":"4ème circonscription","dpt":"Loire","inscrits":4802,"abs":3490,"votants":1312,"blancs":132,"nuls":62,"exp":1118,"res":[{"nuance":"REM","nom":"<NAME>","voix":639},{"nuance":"LR","nom":"<NAME>","voix":479}]}
93
5,169
<reponame>Gantios/Specs<filename>Specs/6/a/c/SCTE35/1.0.5/SCTE35.podspec.json { "name": "SCTE35", "version": "1.0.5", "summary": "SCTE Library for Swift.", "description": "Converts hex strings and base64 strings into SCTE 35 Objects per the specifications at https://www.scte.org/SCTEDocs/Standards/SCTE%2035%202...
425
1,851
// // VROIKRig.h // ViroRenderer // // Copyright © 2018 <NAME>. 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 lim...
2,964
5,169
{ "name": "ZJChangFont", "version": "0.0.1", "summary": "A changed font on view", "description": "It is a changed font on view , which implement by Objective-C", "homepage": "https://github.com/zhangjikuan/ZJChangFont", "license": "MIT", "authors": { "zhangjikuan": "<EMAIL>" }, "platforms": { ...
242
14,668
// 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. #include <cups/cups.h> #include <map> #include <string> #include <utility> #include "base/bind.h" #include "base/containers/contains.h" #include "base/g...
1,896
559
<filename>core/src/main/java/com/netflix/msl/util/NullAuthenticationUtils.java /** * Copyright (c) 2016 Netflix, 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 ...
810
348
<reponame>chamberone/Leaflet.PixiOverlay {"nom":"Langoëlan","circ":"6ème circonscription","dpt":"Morbihan","inscrits":270,"abs":116,"votants":154,"blancs":16,"nuls":11,"exp":127,"res":[{"nuance":"UDI","nom":"<NAME>","voix":68},{"nuance":"REM","nom":"<NAME>","voix":59}]}
111
2,209
# test_multibytecodec_support.py # Common Unittest Routines for CJK codecs # import codecs import os import re import sys import unittest from httplib import HTTPException from test import test_support from StringIO import StringIO class TestBase: encoding = '' # codec name codec = None #...
7,986
801
<filename>tests/layers/test_reshape.py import numpy as np from neupy import layers from neupy.utils import asfloat, tf_utils from neupy.exceptions import LayerConnectionError from base import BaseTestCase class ReshapeLayerTestCase(BaseTestCase): def test_reshape_layer_1d_shape(self): x = np.random.rand...
2,428
335
{ "word": "Category", "definitions": [ "A class or division of people or things regarded as having particular shared characteristics.", "Each of a possibly exhaustive set of classes among which all things might be distributed.", "Each of the a priori conceptions applied by the mind to se...
115
14,668
<reponame>zealoussnow/chromium // 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 CHROMECAST_GRAPHICS_CAST_TOUCH_ACTIVITY_OBSERVER_H_ #define CHROMECAST_GRAPHICS_CAST_TOUCH_ACTIVITY_OBSERVER_H_ na...
262
3,787
{ "federatedml.transfer_variable.transfer_class.sample_transfer_variable.SampleTransferVariable": { "sample_ids": { "src": [ "guest" ], "dst": [ "host" ] } } }
106
669
<gh_stars>100-1000 #include "mlasi.h" #include <altivec.h> template <typename OutputType> void MLASCALL MlasQuantizeLinearVSX( const float* Input, OutputType* Output, size_t N, float Scale, OutputType ZeroPoint ) { // Workaround for bad GCC warning that Scale is set but not used. MLAS_U...
1,817
522
<reponame>konny0311/algorithms-nutshell-2ed<gh_stars>100-1000 package algs.chapter2.table2; import java.text.DecimalFormat; import java.text.NumberFormat; /** * Java Example of Bisection method for root-finding. * * * Java implementation of Bisection method that also shows the binary digits * of the resulting...
535
866
<filename>src/main/java/brickhouse/udf/collect/LastIndexUDF.java<gh_stars>100-1000 package brickhouse.udf.collect; /** * Copyright 2012 Klout, 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 Li...
966
3,670
# Copyright 2020 The TensorFlow Probability Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
5,051
1,144
package de.metas.vertical.healthcare_ch.forum_datenaustausch_ch.invoice_xversion.request.model.payload.body.service; import lombok.Builder; import lombok.NonNull; import lombok.Value; import java.math.BigDecimal; import de.metas.vertical.healthcare_ch.forum_datenaustausch_ch.invoice_xversion.request.model.payload.bo...
697
435
package datawave.webservice.query.dashboard; import java.util.Date; import java.util.Objects; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; /** * Data object used for the metrics dashboard. */ @XmlAccessorType(XmlAccessType.FIELD) public final class DashboardSumma...
3,268
6,098
package water; /** * Created by tomas on 11/5/16. * Interface to be used by LocalMR. * */ public abstract class MrFun<T extends MrFun<T>> extends Iced<T> { protected abstract void map(int id); protected void reduce(T t) {} protected MrFun<T> makeCopy() { return clone(); } }
99
825
<gh_stars>100-1000 // // HMCanvasViewInterface.h // Hummer // // Created by litianhao on 2021/7/28. // #import <Foundation/Foundation.h> NS_ASSUME_NONNULL_BEGIN @protocol HMCanvasViewInterface <NSObject> @property (nonatomic , assign) CGFloat lineWidth ; @property (nonatomic , strong) UIColor *lineColor ; @pro...
563
372
<reponame>mjhopkins/google-api-java-client-services<gh_stars>100-1000 /* * 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 b...
1,379
1,350
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. package com.azure.resourcemanager.machinelearningservices.models; import com.azure.core.util.ExpandableStringEnum; import com.fasterxml.jackson.annotation.JsonCre...
353
332
<filename>native/CefDownloadItemCallback_N.cpp // Copyright (c) 2014 The Chromium Embedded Framework 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 "CefDownloadItemCallback_N.h" #include "include/cef_download_handler.h" #in...
1,135
4,140
<filename>ql/src/java/org/apache/hadoop/hive/ql/exec/ListSinkOperator.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 fi...
1,292
511
/* * * Copyright 2015 gRPC authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agree...
11,851
348
<gh_stars>100-1000 {"nom":"Liévans","circ":"2ème circonscription","dpt":"Haute-Saône","inscrits":108,"abs":47,"votants":61,"blancs":7,"nuls":3,"exp":51,"res":[{"nuance":"REM","nom":"<NAME>","voix":32},{"nuance":"FN","nom":"M. <NAME>","voix":19}]}
104
890
<reponame>andreasunterhuber/owt-server<filename>source/agent/sip/sipIn/AudioFrameConstructorWrapper.cc // Copyright (C) <2019> Intel Corporation // // SPDX-License-Identifier: Apache-2.0 #ifndef BUILDING_NODE_EXTENSION #define BUILDING_NODE_EXTENSION #endif #include "AudioFrameConstructorWrapper.h" #include "../../ad...
1,243
4,538
/* * Copyright (C) 2015-2017 Alibaba Group Holding Limited * * */ #include <stdio.h> #include <stdlib.h> #include <string.h> #include "aos/kernel.h" #include "ulog/ulog.h" #include "sensor_drv_api.h" #include "sensor_hal.h" #define NSA_REG_SPI_I2C 0x00 #define NSA_REG_WHO_AM_I 0x01 #define NSA_REG_ACC_X_LSB 0x0...
6,403
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 ...
1,752
421
//<snippet00> using namespace System; using namespace System::IO; ref class App { public: static void Main() { // Specify the directory you want to manipulate. String^ path = "c:\\"; String^ searchPattern = "c*"; DirectoryInfo^ di = gcnew DirectoryInfo(path); ...
568
942
<reponame>evilwizardington/hackazon<gh_stars>100-1000 package com.ntobjectives.hackazon.activity; import android.content.Intent; import android.content.SharedPreferences; import android.os.Bundle; import android.preference.PreferenceManager; import android.support.annotation.NonNull; import android.util.Log; i...
2,646
474
package org.javacord.core.entity.message.embed; import com.fasterxml.jackson.databind.JsonNode; import org.apache.logging.log4j.Logger; import org.javacord.api.entity.message.embed.Embed; import org.javacord.api.entity.message.embed.EmbedAuthor; import org.javacord.api.entity.message.embed.EmbedField; import org.javac...
1,764
384
<reponame>mengmengliu1998/qd-3dt<filename>qd3dt/models/detectrackers/tracker/motion_lstm.py<gh_stars>100-1000 import argparse import time import multiprocessing import os.path as osp import pickle from os import mkdir from pyquaternion import Quaternion from tqdm import tqdm import numpy as np import torch import torc...
21,924
337
<reponame>qussarah/declare<filename>j2k/testData/fileOrElement/strings/escapedDollar.java public class A { private String dollar1 = "$a"; private String dollar2 = "$A"; private String dollar3 = "${s}"; private String dollar4 = "$$"; }
90
664
package com.badlogic.ashley.utils; import org.junit.Assert; import org.junit.Test; public class BagTest { @Test public void testSet(){ final Bag<String> bag = new Bag<String>(); bag.add("a"); bag.add("b"); bag.add("c"); Assert.assertEquals(3, bag.size()); bag.set(1, "d"); Assert.assertEquals(3, b...
166
772
<reponame>Hsy-Intel/fedlearner<gh_stars>100-1000 # Copyright 2021 The FedLearner 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/li...
1,187
1,338
/* * Copyright 2015, <NAME>. All rights reserved. * Distributed under the terms of the MIT License. */ #ifndef _MEDIA_CLIENT_NODE_H #define _MEDIA_CLIENT_NODE_H #include <BufferConsumer.h> #include <BufferProducer.h> #include <Controllable.h> #include <MediaDefs.h> #include <MediaEventLooper.h> namespace BPriva...
1,696
348
<gh_stars>100-1000 {"nom":"Liederschiedt","dpt":"Moselle","inscrits":78,"abs":23,"votants":55,"blancs":4,"nuls":3,"exp":48,"res":[{"panneau":"1","voix":42},{"panneau":"2","voix":6}]}
81
1,826
package com.vladsch.flexmark.util.ast; /** * To be implemented by nodes marking their text as not for attachment by attributes */ public interface DoNotAttributeDecorate { }
47
12,887
<gh_stars>1000+ package com.zhisheng.common.schemas; import org.apache.flink.api.common.typeinfo.TypeInformation; import org.apache.flink.shaded.jackson2.com.fasterxml.jackson.databind.ObjectMapper; import org.apache.flink.shaded.jackson2.com.fasterxml.jackson.databind.node.ObjectNode; import org.apache.flink.streamin...
913
643
<reponame>abhijitsri007/LoginRegister<filename>java-examples/java-core/src/main/java/com/hellokoding/java/collections/StringSortDescendingByStringBuilder.java<gh_stars>100-1000 package com.hellokoding.java.collections; import java.util.Arrays; public class StringSortDescendingByStringBuilder { static String sortA...
306
580
// DynaMix // Copyright (c) 2013-2016 <NAME>, <NAME> // // Distributed under the MIT Software License // See accompanying file LICENSE.txt or copy at // https://opensource.org/licenses/MIT // #include "executable_pch.hpp" #include "exe_mixin.hpp" #include "../dynlib/dynlib_messages.hpp" using namespace std; void exe_...
276
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...
354
880
#include <stdio.h> #include <stdlib.h> #include <getopt.h> #include <string.h> #include "i2c.h" #include "IO2.h" IO2 io2(0x21); int main () { long int i; io2.pinMode(io2.GPIO0 | io2.GPIO1, io2.IN); io2.setPullpin(io2.GPIO0 | io2.GPIO1, io2.OFF); while (1) { // read ...
494
2,372
// // 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, this list of conditions and the following disclaimer. // * Redistributions in bin...
1,290
692
/** * Kinesis Video TLS */ #define LOG_CLASS "TLS_openssl" #include "../Include_i.h" STATUS createTlsSession(PTlsSessionCallbacks pCallbacks, PTlsSession* ppTlsSession) { ENTERS(); STATUS retStatus = STATUS_SUCCESS; PTlsSession pTlsSession = NULL; CHK(ppTlsSession != NULL && pCallbacks != NULL, STAT...
3,526
337
#ifndef INCLUDE_PARSEOBJECTS_H_ #define INCLUDE_PARSEOBJECTS_H_ #include "common.h" typedef enum { eDatetimeParsed = 0x01, eTemperatureParsed = 0x02, eDescriptionParsed = 0x04, eIconParsed = 0x08, eRainsnowParsed = 0x10, eWeatherAllParsed = eDatetimeParsed | ...
446
317
package com.googlecode.totallylazy.transducers; import java.util.Iterator; import static com.googlecode.totallylazy.transducers.State.Stop; public class IteratorSender<A> implements Sender<A> { private final Iterator<? extends A> iterator; public IteratorSender(Iterator<? extends A> iterator) {this.iterator...
259
538
#include "stdafx.h" #include "resource.h" #include "HexView.h" #include "VGMFileTreeView.h" #include "ItemTreeView.h" //#include "MainFrm.h" #include "WinVGMRoot.h" CVGMFileTreeView VGMFilesView; CVGMFileTreeView::CVGMFileTreeView() { } BOOL CVGMFileTreeView::PreTranslateMessage(MSG* pMsg) { if(pMsg) { if((pMsg...
3,362
3,325
<gh_stars>1000+ /* * Copyright (c) 2016-present, RxJava Contributors. * * 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 req...
2,019
575
// 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. #include "chrome/browser/ui/tabs/existing_tab_group_sub_menu_model.h" #include "base/metrics/user_metrics.h" #include "base/metrics/user_metrics_action.h...
1,764
474
<filename>javacord-core/src/main/java/org/javacord/core/entity/server/invite/InviteBuilderDelegateImpl.java package org.javacord.core.entity.server.invite; import com.fasterxml.jackson.databind.node.JsonNodeFactory; import org.javacord.api.entity.channel.ServerChannel; import org.javacord.api.entity.server.invite.Invi...
1,171
1,538
<filename>src/exitfunc.c /* ______ ___ ___ * /\ _ \ /\_ \ /\_ \ * \ \ \L\ \\//\ \ \//\ \ __ __ _ __ ___ * \ \ __ \ \ \ \ \ \ \ /'__`\ /'_ `\/\`'__\/ __`\ * \ \ \/\ \ \_\ \_ \_\ \_/\ __//\ \L\ \ \ \//\ \L\ \ * \ \_\ \_\/\____\/\____\ \____\ ...
1,095
14,668
<reponame>zealoussnow/chromium<filename>chrome/installer/setup/setup_util_unittest.h<gh_stars>1000+ // Copyright 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. #ifndef CHROME_INSTALLER_SETUP_SETUP_UTIL_UNITTEST_H_ ...
318
488
<reponame>maurizioabba/rose // t0118.cc // test getImplicitConversion // copied from stdconv.h enum StandardConversion { SC_IDENTITY = 0x00, // types are identical // conversion group 1 (comes first) SC_LVAL_TO_RVAL = 0x01, // 4.1: int& -> int SC_ARRAY_TO_PTR = 0x02, // 4.2: char[] -> char* ...
3,479
1,475
/* * 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 may not ...
467
17,703
<reponame>dcillera/envoy #include "source/extensions/filters/http/compressor/config.h" #include "test/extensions/filters/http/compressor/mock_compressor_library.pb.h" #include "test/mocks/server/factory_context.h" #include "gtest/gtest.h" namespace Envoy { namespace Extensions { namespace HttpFilters { namespace Com...
509
3,074
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. import numpy as np import argparse import os import re import tensorflow as tf import time import glob from azureml.core import Run from utils import load_data from tensorflow.keras import Model, layers # Create TF Model. ...
2,760
523
package io.github.droidkaigi.confsched2017.util; import android.app.Application; public class FpsMeasureUtil { private FpsMeasureUtil() { } public static void play(Application application) { // no-op. } public static void finish() { // no-op. } }
116
2,221
/* * 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 ...
353
2,151
<reponame>zipated/src // 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. #include "components/password_manager/core/browser/hsts_query.h" #include "base/bind.h" #include "base/location.h" #include "base/ta...
449
466
//--------------------------------------------------------------------------- // Greenplum Database // Copyright (C) 2011 Greenplum, Inc. // // @filename: // CIdGenerator.h // // @doc: // Class providing methods for a ULONG counter // // @owner: // // // @test: // //---------------------------------------------------...
243
381
<reponame>AriVuolas/helix package org.apache.helix.model; /* * 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 und...
1,746
535
/**\mainpage * Copyright (C) 2017 - 2019 Bosch Sensortec GmbH * * 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, this list of conditions a...
768
3,702
// Copyright (c) YugaByte, 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 writ...
861
16,259
<gh_stars>1000+ # 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. from .block_pair_dataset import BlockPairDataset from .masked_lm_dataset import MaskedLMDataset from .masked_lm_dictionary imp...
166
4,996
import base64 from typing import List, TYPE_CHECKING, Union, Optional from binascii import hexlify from itertools import chain from lbry.error import ResolveCensoredError from lbry.schema.types.v2.result_pb2 import Outputs as OutputsMessage from lbry.schema.types.v2.result_pb2 import Error as ErrorMessage if TYPE_CHEC...
4,666
14,668
<reponame>zealoussnow/chromium // Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "remoting/host/audio_silence_detector.h" #include <stdint.h> #include "base/cxx17_backports.h" #include "tes...
824
350
package ar.rulosoft.mimanganu.componentes; import android.content.ClipData; import android.content.ClipboardManager; import android.content.Context; import android.graphics.Bitmap; import android.util.AttributeSet; import android.view.LayoutInflater; import android.view.View; import android.widget.ImageView; import an...
1,882
6,557
<gh_stars>1000+ { "buttonLabel": "Zobrazit doporučení", "countAnnouncement": "K dispozici {optionCount, plural, one {je # možnost} other {jsou/je # možnosti/-í}}.", "focusAnnouncement": "{isGroupChange, select, true {Zadaná skupina „{groupTitle}“ {groupCount, plural, one {s # možností} other {se # možnostmi}}. } ...
192
602
# encoding: UTF-8 """ Basic data types, classes and models for trade. """ from .tradeapi import TradeApi from .backtest import AlphaBacktestInstance, EventBacktestInstance from .portfoliomanager import PortfolioManager from .livetrade import EventLiveTradeInstance, AlphaLiveTradeInstance from .strategy import Strateg...
257
843
<filename>src/olympia/blocklist/serializers.py from rest_framework import serializers from olympia.api.fields import OutgoingURLField, TranslationSerializerField from .models import Block class BlockSerializer(serializers.ModelSerializer): addon_name = TranslationSerializerField(source='addon.name') url = O...
276
5,169
<gh_stars>1000+ { "name": "VOKBenkode", "version": "0.2.0", "summary": "An Objective-C library for encoding/decoding objects using Bencoding.", "homepage": "https://github.com/vokalinteractive/VOKBenkode", "license": { "type": "MIT", "file": "LICENSE" }, "authors": { "<NAME>": "<EMAIL>" }, ...
243
1,880
<gh_stars>1000+ // Copyright 2016 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...
3,591
560
// Copyright (c) 2020 by <NAME>. All rights reserved. // Copyright (c) 2021 by Apex.AI 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.apach...
1,301
375
package hudson.plugins.git; import java.util.ArrayList; import java.util.Arrays; import static hudson.plugins.git.GitChangeSet.TRUNCATE_LIMIT; import static org.hamcrest.MatcherAssert.*; import static org.hamcrest.Matchers.*; import static org.junit.Assert.assertNull; import static org.junit.Assert.assertEquals; impor...
5,748
1,091
// // RMGalleryCollectionViewCell.h // HeapInspectorExample // // Created by <NAME> on 12/11/14. // Copyright (c) 2014 tapwork. All rights reserved. // #import <UIKit/UIKit.h> @interface RMGalleryCollectionViewCell : UICollectionViewCell @property (nonatomic, readonly) UIImageView *imageView; @end
108
1,760
<gh_stars>1000+ // 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. // PersistentSampleMap implements HistogramSamples interface. It is used // by the SparseHistogram class to store samples in persistent me...
1,391
353
#ifndef CAFFE2_OPERATORS_TOP_K_H_ #define CAFFE2_OPERATORS_TOP_K_H_ #include "caffe2/core/logging.h" #include "caffe2/core/operator.h" #include "caffe2/utils/math.h" namespace caffe2 { template <typename T, class Context> class TopKOp : public Operator<Context> { public: USE_OPERATOR_CONTEXT_FUNCTIONS...
497
4,538
/* * Copyright (C) 2015-2020 Alibaba Group Holding Limited */ #ifndef WDT_HAL_H #define WDT_HAL_H #ifdef __cplusplus extern "C" { #endif #include "plat_types.h" enum HAL_WDT_ID_T { HAL_WDT_ID_0 = 0, HAL_WDT_ID_NUM, }; enum HAL_WDT_EVENT_T { HAL_WDT_EVENT_FIRE = 0, }; #define HAL_WDT_YES 1 #define HAL...
393
7,482
/** ****************************************************************************** * @file tae32f53xx_ll_dma.h * @author MCD Application Team * @brief Header file for DMA LL module. * ****************************************************************************** * @attention * * <h2><center>&cop...
18,619
903
<reponame>FranciscoShi/FAutoTest<filename>fastAutoTest/core/common/errormsgmanager.py # -*- coding: utf-8 -*- ''' Tencent is pleased to support the open source community by making FAutoTest available. Copyright (C) 2018 THL A29 Limited, a Tencent company. All rights reserved. Licensed under the BSD 3-Clause License (th...
2,533
335
<reponame>Safal08/Hacktoberfest-1<filename>M/Misadventure_noun.json { "word": "Misadventure", "definitions": [ "Death caused by a person accidentally while performing a legal act without negligence or intent to harm.", "An unfortunate incident; a mishap." ], "parts-of-speech": "Noun" }
118
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...
9,520
590
<filename>src/include/vfs/fat/fat-control.h #ifndef __FAT_CONTROL_H__ #define __FAT_CONTROL_H__ #ifdef __cplusplus extern "C" { #endif #include <vfs/fat/fat.h> #define FAT_TABLE_CACHE_SIZE (32) /* * Information about a "mounted" FAT filesystem */ struct fatfs_control_t { /* FAT boot sector */ struct fat_bootsec...
916
777
// 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 COMPONENTS_METRICS_LEAK_DETECTOR_LEAK_ANALYZER_H_ #define COMPONENTS_METRICS_LEAK_DETECTOR_LEAK_ANALYZER_H_ #include <stdint.h> #include <map> #...
1,012