max_stars_count
int64
301
224k
text
stringlengths
6
1.05M
token_count
int64
3
727k
687
package io.kestra.core.endpoints; import io.micronaut.context.ApplicationContext; import io.micronaut.context.env.Environment; import io.micronaut.context.env.MapPropertySource; import io.micronaut.http.HttpRequest; import io.micronaut.http.HttpResponse; import io.micronaut.http.HttpStatus; import io.micronaut.http.Mu...
1,310
575
// Copyright 2014 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.TargetApi; import android.content.Context; import android.content.Intent; import android....
12,946
462
<reponame>cable5881/pmq<gh_stars>100-1000 package com.ppdai.infrastructure.mq.biz.dto.response; /** * @Author:wanghe02 * @Date:2019/7/5 14:36 */ public class ConsumerGroupCreateResponse extends BaseUiResponse<Void> { public ConsumerGroupCreateResponse() { super(); } public ConsumerGroupCreateRe...
154
739
import DOM class FocusWidget: def __init__(self, element): self.clickListeners = [] def addClickListener(self, listener): self.clickListeners.append(listener) def onBrowserEvent(self, event): if DOM.eventGetType(event) == Event.ONCLICK: for listener in self.clickListe...
147
2,180
package com.xiaojukeji.kafka.manager.common.entity.vo.common; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; /** * @author zengqiao * @date 20/8/26 */ @ApiModel(description = "账号角色信息") public class AccountRoleVO { @ApiModelProperty(value = "账号") private String usern...
447
1,374
<filename>core-lib/es6/src/main/java/def/dom/CharacterData.java package def.dom; @jsweet.lang.Extends({ChildNode.class}) public class CharacterData extends Node { public java.lang.String data; public double length; native public void appendData(java.lang.String arg); native public void deleteData(doubl...
310
589
package rocks.inspectit.server.dao.impl; import java.util.Date; import java.util.List; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Repository; import rocks.inspectit.server.dao.HttpTimerDataDao; import rocks.inspectit.shared.all.communication.data.HttpTimerDat...
777
316
/* * Copyright 2014 Frakbot (<NAME> and <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 l...
1,583
312
//----------------------------------------------------------------------------- // Copyright (c) 2013 GarageGames, LLC // // 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 restrictio...
1,319
937
package com.oath.cyclops.types.futurestream; import static com.oath.cyclops.types.futurestream.NullValue.NULL; import java.util.Iterator; import java.util.NoSuchElementException; import java.util.function.BiFunction; import java.util.function.Predicate; import java.util.stream.Stream; import cyclops.reactive.Reactiv...
2,114
349
<gh_stars>100-1000 /* Copyright 2018 Amazon.com, Inc. or its affiliates. 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. A copy of the License is located at http://aws.amazon.com/apache2.0/ o...
509
1,514
#include "global.h" #include "ScreenMiniMenu.h" #include "ScreenManager.h" #include "GameConstantsAndTypes.h" #include "ThemeManager.h" #include "ScreenDimensions.h" #include "GameState.h" #include "FontCharAliases.h" #include "OptionRowHandler.h" #include "PrefsManager.h" void PrepareToLoadScreen( const RString &sSc...
1,869
1,444
<reponame>amc8391/mage<gh_stars>1000+ package mage.cards.n; import mage.MageInt; import mage.cards.CardImpl; import mage.cards.CardSetInfo; import mage.constants.CardType; import mage.constants.SubType; import java.util.UUID; /** * @author TheElk801 */ public final class NyxbornMarauder extends CardImpl { pub...
329
348
<reponame>chamberone/Leaflet.PixiOverlay {"nom":"Chavanatte","dpt":"Territoire de Belfort","inscrits":136,"abs":34,"votants":102,"blancs":6,"nuls":1,"exp":95,"res":[{"panneau":"2","voix":64},{"panneau":"1","voix":31}]}
91
335
<reponame>Safal08/Hacktoberfest-1<filename>J/Jab_noun.json { "word": "Jab", "definitions": [ "A quick, sharp blow, especially with the fist.", "A hypodermic injection, especially a vaccination.", "A sharp, painful sensation or feeling." ], "parts-of-speech": "Noun" }
129
892
<gh_stars>100-1000 { "schema_version": "1.2.0", "id": "GHSA-pm2q-hpwc-7mr9", "modified": "2022-05-01T18:21:36Z", "published": "2022-05-01T18:21:36Z", "aliases": [ "CVE-2007-4234" ], "details": "Unspecified vulnerability in Camera Life before 2.6 allows remote attackers to download private photos via u...
511
9,701
from typing import Dict, Text, Any import pytest from rasa.graph_components.providers.training_tracker_provider import ( TrainingTrackerProvider, ) from rasa.engine.graph import ExecutionContext from rasa.engine.storage.resource import Resource from rasa.engine.storage.storage import ModelStorage from rasa.shared....
722
386
#include "util/tc_common.h" #include <thread> #include "gtest/gtest.h" #include "test_server.h" using namespace tars; static TC_Endpoint TEST_HOST_EP("tcp -h 127.0.0.1 -p 19089 -t 10000"); static TC_Endpoint LINE_HOST_EP("tcp -h 127.0.0.1 -p 19099 -t 10000"); static TC_Endpoint QUEUE_HOST_EP("tcp -h 127.0.0...
3,502
23,439
<gh_stars>1000+ /* * Copyright 1999-2020 Alibaba Group Holding 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 req...
463
1,016
<reponame>peter-ls/kylo<gh_stars>1000+ package com.thinkbiganalytics.kylo.nifi.teradata.tdch.core.controllerservice; /*- * #%L * kylo-nifi-teradata-tdch-core * %% * Copyright (C) 2017 - 2018 ThinkBig Analytics, a Teradata Company * %% * Licensed under the Apache License, Version 2.0 (the "License"); * you may n...
681
5,278
<gh_stars>1000+ { "name": "granim", "description": "Create fluid and interactive gradients animations with this small js library.", "main": "index.js", "authors": [ "<NAME>", "<NAME> <<EMAIL>> (http://pranay.gp)" ], "license": "MIT", "keywords": [ "gradient", "animation" ], "homepage":...
222
539
<filename>java/core/src/main/java/org/bondlib/FloatingPointHelper.java // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. package org.bondlib; /** * Provides implementations of floating-point equality and hashing that...
776
696
<reponame>hwang-pku/Strata /* * Copyright (C) 2021 - present by OpenGamma Inc. and the OpenGamma group of companies * * Please see distribution for license. */ package com.opengamma.strata.loader.csv; import static com.opengamma.strata.loader.csv.CsvLoaderColumns.BUY_SELL_FIELD; import static com.opengamma.strata....
959
488
#include <stdio.h> #include <omp.h> int main() { int i,j; // int innerreps = 100; #pragma omp parallel private(j) { // for (j=0; j<innerreps; j++) { #pragma omp for schedule(static,2) for (i=0; i<32; i++) { printf ("thread %d is executing %d \n",omp_get_thread_num(),i); // ...
199
5,250
/* 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...
2,592
540
<gh_stars>100-1000 /* ---------------------------------------------------------------------------- ** Copyright (c) 2016 <NAME>, All Rights Reserved. ** ** EnumContainer.h ** --------------------------------------------------------------------------*/ #pragma once #include "EnumBase.h" #include "Variant.h" #include...
592
4,071
<filename>xdl/ps-plus/ps-plus/client/udf.cc /* Copyright (C) 2016-2018 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 ...
1,034
628
<reponame>gaybro8777/osf.io<gh_stars>100-1000 """Delete a user to GDPR specifications python3 manage.py gdpr_delete_user guid1 Erroring deletions will be logged and skipped. """ import logging import sys from django.db import transaction from django.core.management.base import BaseCommand from osf.management.ut...
635
2,112
<filename>thrift/conformance/cpp2/AnyRef.cpp /* * Copyright (c) Facebook, Inc. and its affiliates. * * 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/license...
418
4,036
typedef enum { RED, ORANGE, YELLOW, GREEN, BLUE, INDIGO, VIOLET } colors; int f(colors c) { switch (c) { case RED: //... case GREEN: //... case BLUE: //... //wrong: does not use all enum values, and has no default } switch(c) { case RED: //... case GREEN: //... default: //correct: does n...
166
2,453
// // Generated by class-dump 3.5 (64 bit) (Debug version compiled Sep 30 2020 21:18:12). // // Copyright (C) 1997-2019 <NAME>. // #import <AppKit/NSTextField.h> @class NSAttributedString; @interface IDEFindNavigatorResultTextField : NSTextField { CDStruct_bf6d4a14 _layoutInset; } + (Class)cellClass; @prop...
184
389
/* * Copyright 2014 <NAME>, Inc. */ package gw.internal.gosu.ir.transform.expression; import gw.internal.gosu.ir.nodes.IRMethodFactory; import gw.internal.gosu.ir.nodes.IRMethodFromMethodInfo; import gw.internal.gosu.ir.transform.ExpressionTransformer; import gw.internal.gosu.ir.transform.TopLevelTransformationConte...
924
803
#include "MaterialCache.h" #include "Material.h" #include "core/oxygine.h" namespace oxygine { Material* MaterialCache::clone_(const Material& other) { MutexAutoLock alock(_lock); size_t hash; Material::compare cm; other.update(hash, cm); materials::iterator itl = _ma...
998
1,848
template<class K, class V> class Entry : public K { V mData; }; template<typename K, typename V> class nsBaseHashtable { typedef Entry<K, V> EntryType; struct EntryPtr { private: EntryType& mEntry; bool mExistingEntry; }; };
93
4,822
/* * SPDX-License-Identifier: Apache-2.0 * * The OpenSearch Contributors require contributions made to * this file be licensed under the Apache-2.0 license or a * compatible open source license. */ package org.opensearch.upgrades; import org.opensearch.Version; import org.opensearch.client.Request; import org.o...
543
324
{ "name": "myusualvm607", "id": "/subscriptions/bd81406c-6028-4037-9f03-9a3af4ff725d/resourceGroups/abiquo-eastus/providers/Microsoft.Network/networkInterfaces/myusualvm607", "etag": "W/\"01f72f0f-a12f-426a-bf9a-25d09be49cee\"", "location": "eastus", "tags": { "mycustomtag": "foobar" }, "properties": ...
1,056
888
<filename>tests/server/text_classification/test_api.py # coding=utf-8 # Copyright 2021-present, the Recognai S.L. 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://ww...
9,032
892
{ "schema_version": "1.2.0", "id": "GHSA-wgq3-h773-3ffp", "modified": "2022-02-17T00:00:43Z", "published": "2022-02-11T00:00:47Z", "aliases": [ "CVE-2022-24316" ], "details": "A CWE-665: Improper Initialization vulnerability exists that could cause information exposure when an attacker sends a special...
427
384
# Copyright 2021 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, sof...
1,056
900
<filename>droidicon/src/main/java/com/thedazzler/droidicon/typeface/IconicTypefaceHolder.java package com.thedazzler.droidicon.typeface; import java.util.HashMap; import java.util.Map; /** * Author: <NAME> (<EMAIL>), 2/3/15. */ public class IconicTypefaceHolder extends TypefaceHolder { private final Map<String...
4,187
4,857
<reponame>gvprathyusha6/hbase /** * 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, Versi...
785
302
/* * Copyright 2018 astonbitecode * 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...
619
1,012
#pragma once #include <unistd.h> #include "libpq-fe.h" #include <atomic> #include <boost/lexical_cast.hpp> #include <cassert> #include <cstring> #include <deque> #include <iostream> #include <map> #include <memory> #include <mutex> #include <optional> #include <sstream> #include <thread> #include <unordered_map> #in...
1,532
355
/* The MIT License (MIT) Copyright (c) 2021 <NAME> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publis...
1,360
454
<filename>vertx-pin/zero-crud/src/main/java/io/vertx/tp/crud/uca/input/ExcelPre.java package io.vertx.tp.crud.uca.input; import io.vertx.core.Future; import io.vertx.core.json.JsonArray; import io.vertx.core.json.JsonObject; import io.vertx.tp.crud.uca.desk.IxMod; import io.vertx.tp.error._409ModuleConflictException; ...
1,453
892
<gh_stars>100-1000 { "schema_version": "1.2.0", "id": "GHSA-wwvr-r64c-3ghh", "modified": "2022-03-17T00:02:00Z", "published": "2022-03-11T00:02:32Z", "aliases": [ "CVE-2021-33851" ], "details": "A Cross-Site Scripting (XSS) attack can cause arbitrary code (JavaScript) to run in a user’s browser while ...
495
945
/* * 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,528
719
//#include "stdafx.h" #include "Bonsai.h" using namespace EdgeML; using namespace EdgeML::Bonsai; int main() { BonsaiModel::BonsaiHyperParams hyperParam; hyperParam.problemType = ProblemFormat::multiclass; hyperParam.dataformatType = DataFormat::interfaceIngestFormat; hyperParam.normalizationType = Normaliz...
4,837
17,104
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: chat.proto package com.tencent.mars.sample.chat.proto; public final class Chat { private Chat() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistry registry) { } public interface SendMessageRequestOrBui...
25,485
1,788
package com.fingerchar.storage; import java.io.InputStream; import java.nio.file.Path; import java.util.stream.Stream; import org.springframework.core.io.Resource; public class StorageAdaptor implements Storage { @Override public void store(InputStream inputStream, long contentLength, String contentType, String k...
426
435
<gh_stars>100-1000 { "description": "Quelle structure JSON pour mon API ? Quelle syntaxe pour filtrer la\n liste via la querystring ? Comment g\u00e9rer les \u00e9critures concurrentes\n ? Et synchroniser les donn\u00e9es dans mon application cliente ?\n\nQuand nous d\u00e9veloppons un (micro)service Web, nous ...
1,229
5,169
{ "name": "UIMenuScroll", "version": "0.0.1", "summary": "UIMenuScroll creating menu how on Facebook Messenger on take photo", "authors": "AlekseyPleshkov <<EMAIL>>", "homepage": "https://github.com/AlekseyPleshkov/UIMenuScroll", "license": "MIT", "source": { "git": "https://github.com/AlekseyPleshkov...
241
679
<gh_stars>100-1000 package org.togglz.core.repository.property; import java.util.Set; /** * Manages a source of property-like values. */ public interface PropertySource { /** * Reloads the properties from the source if they have been changed since the last load. */ void reloadIfUpdated(); ...
705
547
<reponame>g2giovanni/xarray-spatial from xrspatial import bump def test_bump(): bumps = bump(20, 20) assert bumps is not None
54
638
// Copyright 2017, Additive Regularization of Topic Models. // Author: <NAME> (<EMAIL>) #include <string> #include <vector> #include <utility> #include "artm/core/protobuf_helpers.h" #include "artm/core/phi_matrix.h" #include "artm/regularizer/decorrelator_phi.h" namespace artm { namespace regularizer { bool Deco...
2,220
1,447
<filename>users-api/src/main/java/com/elgris/usersapi/configuration/SecurityConfiguration.java<gh_stars>1000+ package com.elgris.usersapi.configuration; import com.elgris.usersapi.security.JwtAuthenticationFilter; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.context.annotat...
406
2,151
// 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. #import <Cocoa/Cocoa.h> #include "base/mac/scoped_nsobject.h" #include "ui/base/ui_base_export.h" // A class that handles saving and restoring focus...
318
1,232
# Author: <NAME> # 83. Remove Duplicates from Sorted List # Given a sorted linked list, delete all duplicates such that each element appear only once. # # For example, # Given 1->1->2, return 1->2. # Given 1->1->2->3->3, return 1->2->3. # 思路,不需要删除这个Node,只需要将Pointer指向之后的一个Node就行 # 中间有个容易出错的就是,不要每次While循环,自动位移当前的Pointe...
810
453
/* * Copyright (c) 2011 <NAME> * * BSD license: * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, ...
492
328
package com.stx.xhb.dmgameapp.mvp.contract; import com.stx.core.mvp.IModel; import com.stx.core.mvp.IView; import com.stx.xhb.dmgameapp.data.entity.CommentListBean; /** * @author: xiaohaibin. * @time: 2018/2/11 * @mail:<EMAIL> * @github:https://github.com/xiaohaibin * @describe: */ public interface GetCommentL...
340
312
# Generated by Django 2.0.12 on 2019-11-25 10:29 from django.db import migrations, models import uuid class Migration(migrations.Migration): dependencies = [ ('forum', '0018_auto_20190821_1126'), ] operations = [ migrations.AlterField( model_name='priority', name...
194
625
package jtransc.jtransc.nativ; public class JTranscDNativeMixedTest { static public void main(String[] args) { JTranscReinterpretArrays.main(args); //DDynamic.global("writefln").call("Hello from DDynamic!"); } }
79
494
package com.icegreen.greenmail.imap.commands; import com.icegreen.greenmail.imap.ImapRequestLineReader; import com.icegreen.greenmail.imap.ProtocolException; /** * Created on 10/03/2016. * * @author Reda.Housni-Alaoui */ class SortCommandParser extends CommandParser { private final SearchCommandParser search...
681
410
<gh_stars>100-1000 /* SPDX-License-Identifier: BSD-2-Clause */ /******************************************************************************* * Copyright 2017-2018, Fraunhofer SIT sponsored by Infineon Technologies AG * All rights reserved. **************************************************************************...
545
1,403
package [PACKAGE]; import javafx.application.Application; import javafx.scene.Parent; import javafx.scene.Scene; import javafx.fxml.FXMLLoader; import javafx.stage.Stage; import java.util.ResourceBundle; public class [CLASS_NAME] extends Application { public static final ResourceBundle RES = ResourceBundle.getBu...
285
16,259
# 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 torch import nn class SamePad(nn.Module): def __init__(self, kernel_size, causal=False): super().__init__() if cau...
224
839
/** * 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 m...
964
3,402
<reponame>ApacheSourceCode/kylin /* * 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, Ver...
1,042
1,498
<filename>interface/khronos/ext/gl_oes_framebuffer_object.c<gh_stars>1000+ /* Copyright (c) 2012, Broadcom Europe Ltd 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 ...
1,888
399
<reponame>KirmesBude/REGoth-bs #pragma once #include "RTTIUtil.hpp" #include <scripting/ScriptObjectStorage.hpp> namespace REGoth { namespace Scripting { class RTTI_ScriptObjectStorage : public bs::RTTIType<ScriptObjectStorage, bs::IReflectable, RTTI_ScriptObjectStorage> { using UINT32 = bs:...
1,620
1,141
<reponame>smaeda-ks/twurl { "name": "twurl dev container", "dockerFile": "Dockerfile", "context": "..", "workspaceFolder": "/usr/src/app", "settings": { "terminal.integrated.shell.linux": "/bin/bash" }, "shutdownAction": "none", "extensions": [ "rebornix.Ruby" ] }
141
2,151
/* * * Copyright 2018 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...
1,649
454
<gh_stars>100-1000 from gazette.spiders.base.fecam import FecamGazetteSpider class ScPalmeiraSpider(FecamGazetteSpider): name = "sc_palmeira" FECAM_QUERY = "cod_entidade:187" TERRITORY_ID = "4212056"
97
1,605
/* * 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 ...
2,708
5,169
<filename>Specs/KRSVM/1.0.0/KRSVM.podspec.json { "name": "KRSVM", "version": "1.0.0", "summary": "KRSVM is implemented SVM of machine learning.", "description": "KRSVM is implemented Support Vector Machine (SVM) of machine learning, it current achieved SMO and RBF, Tangent, Linear these 3 kernel functions to do...
333
305
<reponame>AgesX/llvm // REQUIRES: aarch64-registered-target // RUN: %clang_cc1 -triple aarch64-none-linux-gnu -target-feature +sve -fallow-half-arguments-and-returns -S -O1 -Werror -Wall -emit-llvm -o - %s | FileCheck %s // RUN: %clang_cc1 -DSVE_OVERLOADED_FORMS -triple aarch64-none-linux-gnu -target-feature +sve -fall...
11,528
1,255
/* Copyright (c) 2009-2010 <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: * Redistributions of source code must retain the above copyright notice, this list of conditions and the...
1,684
442
<filename>hls/iperf/iperf.cpp /************************************************ Copyright (c) 2018, Systems Group, ETH Zurich. 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 sourc...
2,288
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.desktopvirtualization.models; import com.azure.resourcemanager.desktopvirtualization.fluent.models.RegistrationInfoInner; import...
359
558
package com.endava.cats.util; import io.quarkus.test.junit.QuarkusTest; import org.assertj.core.api.Assertions; import org.junit.jupiter.api.Test; import java.util.Set; @QuarkusTest class WordUtilsTest { @Test void shouldReturnAllCombinations() { String[] words = new String[]{"pet", "name", "id"}; ...
350
575
// Copyright 2020 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef NET_DNS_DNS_RESPONSE_RESULT_EXTRACTOR_H_ #define NET_DNS_DNS_RESPONSE_RESULT_EXTRACTOR_H_ #include <stdint.h> #include "net/base/net_export.h" #...
838
5,169
<reponame>Gantios/Specs { "name": "Reminder", "version": "1.0.0", "summary": "Reminder is a library that helps by managing the scheduled actions on your app.", "description": "Using Reminder for creating async actions, it will be much more easier. All actions will be scheduled on a queue that will be consumed a...
280
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 "components/history/core/browser/domain_mixing_metrics.h" #include "base/check_op.h" #include "base/containers/flat_map.h" #include "base/metric...
2,086
14,668
<filename>src/font.h /* Copyright 2013 Google Inc. All Rights Reserved. Distributed under MIT license. See file LICENSE for detail or copy at https://opensource.org/licenses/MIT */ /* Data model for a font file in sfnt format, reading and writing functions and accessors for the glyph data. */ #ifndef WOFF2_...
1,133
715
<filename>Greedy Algorithms/Activity Selection/python/activity_selection.py class Activity: def __init__(self, start, finish): self.start = start self.finish = finish def __lt__(self, other): return self.finish < other.finish def __repr__(self): return "( %s, %s )" % (se...
365
1,144
<filename>misc/services/camel/de-metas-camel-externalsystems/de-metas-camel-shopware6/src/test/resources/de/metas/camel/externalsystems/shopware6/api/JsonOrder.json<gh_stars>1000+ { "orderNumber": "orderNumber", "currencyId": "currencyId", "billingAddressId": "billingAddressId", "orderCustomer": { "email": ...
424
848
#!/usr/bin/python3 # Copyright 2020 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 agree...
3,108
11,334
{ "contexts": { "application": { "beans": { "spring.jpa-org.springframework.boot.autoconfigure.orm.jpa.JpaProperties": { "prefix": "spring.jpa", "properties": { "error": "Cannot serialize 'spring.jpa'" } }, "endpoints-org.springframework.boot...
451
2,151
// 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 "content/browser/web_package/signed_exchange_utils.h" #include "base/feature_list.h" #include "base/time/time.h" #include "base/trace_event/trac...
866
320
// Copyright (c) 2015, <NAME>. // Distributed under the BSD 2-Clause License (see LICENSE.txt for details) #include "OSD.h" #include <algorithm> #include "..\3RVX.h" #include "..\DisplayManager.h" #include "..\Error.h" #include "..\HotkeyInfo.h" #include "..\Monitor.h" OSD::OSD(LPCWSTR className, HINSTANCE hInstanc...
2,039
2,211
<reponame>gaurangkumar/crosswalk { "name": "loadAppFromManifest Test", "version": "1.0.0", "description": "Test for loadAppFromManifest", "start_url": "index.html" }
69
5,169
{ "name": "UnzipKit", "version": "1.7.2", "summary": "An Objective-C zlib wrapper for compressing and decompressing Zip files", "license": "BSD", "homepage": "https://github.com/abbeycode/UnzipKit", "authors": { "<NAME>": "<EMAIL>" }, "social_media_url": "https://twitter.com/dovfrankel", "source":...
360
502
<gh_stars>100-1000 # coding: utf-8 import os import time import libmc import slow_memcached_server import subprocess def memcached_server_ctl(cmd, port): ctl_path = os.path.join( os.path.dirname(os.path.dirname(os.path.dirname( os.path.abspath(__file__) ))), 'misc', 'memcached...
708
7,881
package com.kunminx.puremusic.data.api; /** * Create by KunMinX at 2021/6/3 */ public class APIs { public final static String BASE_URL = "https://test.com/"; }
60
310
{ "name": "RF645", "description": "A medium format film camera.", "url": "https://camerapedia.fandom.com/wiki/Bronica_RF645" }
51
1,436
''' Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. Please see LICENSE file in the project root for terms. ''' from com.yahoo.ml.caffe.CaffeOnSpark import CaffeOnSpark from com.yahoo.ml.caffe.Config import Config from com.yahoo.ml.caffe.DataSource import DataSource from pyspark.sql import...
1,004
1,380
<gh_stars>1000+ # -*- coding: utf-8 -*- """ Defines the unit tests for the :mod:`colour.volume.spectrum` module. """ import numpy as np import unittest from itertools import permutations from colour.colorimetry import (MSDS_CMFS, SPECTRAL_SHAPE_DEFAULT, SpectralShape, reshape_msds) fro...
5,388
3,227
<reponame>ffteja/cgal // Copyright (c) 2007 // GeometryFactory (France), // Utrecht University (The Netherlands), // ETH Zurich (Switzerland), // INRIA Sophia-Antipolis (France), // Max-Planck-Institute Saarbruecken (Germany), // and Tel-Aviv University (Israel). All rights reserved. // // This file is part of CGAL (ww...
1,577
737
<reponame>etnrlz/rtbkit /** periodic_utils.cc <NAME>, 4 April 2012 Copyright (c) 2012 Datacratic. All rights reserved. */ #include "periodic_utils.h" #include "jml/utils/parse_context.h" #include <boost/tuple/tuple.hpp> #include "jml/utils/exc_assert.h" using namespace std; using namespace Datacratic; nam...
3,748
3,702
/* * 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 * distribu...
1,080