max_stars_count
int64
301
224k
text
stringlengths
6
1.05M
token_count
int64
3
727k
634
<filename>modules/base/external-service-impl/src/main/java/com/intellij/internal/statistic/updater/StatisticsSendManager.java /* * Copyright 2000-2012 JetBrains s.r.o. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may ob...
1,736
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 UI_DISPLAY_TYPES_GAMMA_RAMP_RGB_ENTRY_H_ #define UI_DISPLAY_TYPES_GAMMA_RAMP_RGB_ENTRY_H_ #include <stdint.h> #include "ui/display/types/display...
226
1,093
/* * Copyright 2014-2019 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...
688
4,868
/* Copyright (c) 2018. The YARA Authors. All Rights Reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the followi...
2,643
683
<reponame>laurit/opentelemetry-java-instrumentation<filename>instrumentation-api-annotation-support/src/main/java/io/opentelemetry/instrumentation/api/annotation/support/AnnotationReflectionHelper.java /* * Copyright The OpenTelemetry Authors * SPDX-License-Identifier: Apache-2.0 */ package io.opentelemetry.instrum...
1,189
3,182
package de.plushnikov.constructor; import lombok.AccessLevel; import lombok.Getter; import lombok.RequiredArgsConstructor; @RequiredArgsConstructor(access = AccessLevel.PACKAGE) public enum EnumConstructor { A(1), B(2); @Getter private final int x; }
90
1,738
<reponame>BadDevCode/lumberyard /* * All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or * its licensors. * * For complete copyright and license terms please see the LICENSE at the root of this * distribution (the "License"). All use of this software is governed by the License, * or, if pro...
5,098
301
package com.sap.iot.starterkit.cert; import java.io.Closeable; import java.io.IOException; import java.io.InputStream; import java.security.KeyPair; import java.security.KeyStoreException; import java.security.cert.Certificate; import java.util.Collections; import java.util.Properties; import java.util.Random; import ...
2,927
879
package org.zstack.test.deployer; import org.zstack.test.ApiSenderException; import org.zstack.test.deployer.schema.DeployerConfig; import java.util.List; public interface BackupStorageDeployer<T> extends AbstractDeployer<T> { void deploy(List<T> backupStorages, DeployerConfig config, Deployer deployer) throws A...
112
335
<filename>SeeedOLED.h /* * SeeedOLED.h * SSD130x OLED Driver Library * * Copyright (c) 2011 seeed technology inc. * Author : <NAME> * Create Time : Dec 2011 * Change Log : * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Pu...
1,122
777
// 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. #include "content/public/browser/devtools_agent_host.h" #include "content/public/browser/devtools_manager_delegate.h" namespace content { void DevToolsM...
432
2,727
/* * Copyright (C) 2017 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
411
2,568
{ "MathWorks": { "domain": "mathworks.com", "url": "https://www.mathworks.com/", "tfa": [ "sms", "email", "totp" ], "documentation": "https://www.mathworks.com/mw_account/two_step_verification/frequently-asked-questions.html", "keywords": [ "other" ] } }
152
852
#include "CondFormats/EcalObjects/interface/EcalDAQTowerStatus.h"
24
2,338
// RUN: %clang_cc1 -triple x86_64-linux-pc -fsyntax-only -verify -fexceptions -fcxx-exceptions %s -std=c++17 // Note that this test depends on the size of long-long to be different from // int, so it specifies a triple. using FourShorts = short __attribute__((__vector_size__(8))); using TwoInts = int __attribute__((__...
3,824
779
<gh_stars>100-1000 /* * Copyright (c) 2018 The WebM project authors. All Rights Reserved. * * Use of this source code is governed by a BSD-style license * that can be found in the LICENSE file in the root of the source * tree. An additional intellectual property rights grant can be found * in the file PATENT...
20,978
782
<reponame>TheBricktop/BoofCV<gh_stars>100-1000 /* * Copyright (c) 2021, <NAME>. All Rights Reserved. * * This file is part of BoofCV (http://boofcv.org). * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy ...
628
348
{"nom":"Naours","circ":"1ère circonscription","dpt":"Somme","inscrits":984,"abs":549,"votants":435,"blancs":17,"nuls":14,"exp":404,"res":[{"nuance":"FI","nom":"<NAME>","voix":213},{"nuance":"REM","nom":"M. <NAME>","voix":191}]}
90
1,442
<reponame>VersiraSec/epsilon-cfw<gh_stars>1000+ #ifndef CALCULATION_ADDITIONAL_OUTPUTS_LIST_CONTROLLER_H #define CALCULATION_ADDITIONAL_OUTPUTS_LIST_CONTROLLER_H #include <apps/i18n.h> #include <escher/expression_table_cell_with_message.h> #include <escher/memoized_list_view_data_source.h> #include <escher/selectable_...
600
1,405
package com.lenovo.safecenter.antivirus.views; import android.content.Context; import android.content.DialogInterface; import android.os.Bundle; import android.os.Handler; import android.os.Message; import android.util.Log; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; im...
3,407
571
package camelinaction; import org.apache.camel.test.spring.CamelSpringTestSupport; import org.apache.camel.util.StringHelper; import org.junit.Test; import org.springframework.context.support.AbstractApplicationContext; import org.springframework.context.support.ClassPathXmlApplicationContext; public class SpringOrde...
671
1,652
package com.ctrip.xpipe.redis.meta.server.rest; import com.ctrip.xpipe.api.codec.Codec; import com.ctrip.xpipe.redis.meta.server.AbstractMetaServerTest; import com.ctrip.xpipe.rest.ForwardType; import org.junit.Assert; import org.junit.Test; /** * @author wenchao.meng * * Aug 3, 2016 */ public class ForwardInfo...
255
56,632
<reponame>nowireless/opencv<filename>modules/dnn/misc/tensorflow/function.pb.cc // Generated by the protocol buffer compiler. DO NOT EDIT! // source: function.proto #include "function.pb.h" #include <algorithm> #include <google/protobuf/io/coded_stream.h> #include <google/protobuf/extension_set.h> #include <google/...
21,092
12,718
/** * This file has no copyright assigned and is placed in the Public Domain. * This file is part of the mingw-w64 runtime package. * No warranty is given; refer to the file DISCLAIMER.PD within this package. */ #ifndef __INC_MANIPULATIONS__ #define __INC_MANIPULATIONS__ typedef enum _MANIPULATION_PROCESSOR_MANIPU...
268
1,248
# Generated by Django 3.2.2 on 2021-05-23 13:22 import django.db.models.deletion from django.db import migrations, models import pretix.helpers.countries class Migration(migrations.Migration): dependencies = [ ('pretixbase', '0195_auto_20210622_1457'), ] operations = [ migrations.AddFi...
780
667
/** * Tencent is pleased to support the open source community by making Tseer available. * * Copyright (C) 2018 THL A29 Limited, a Tencent company. All rights reserved. * * Licensed under the BSD 3-Clause License (the "License"); you may not use this file except * in compliance with the License. You may obtain a...
2,027
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.confluent.implementation; import com.azure.core.http.rest.PagedIterable; import com.azure.core.http.rest.Response; import com.az...
1,022
2,338
if (N >= 1) { S1(0); if (N == 1) { for (int c1 = 0; c1 < M; c1 += 1) S2(0, c1); S3(0); for (int c1 = 0; c1 < M; c1 += 1) S4(0, c1); S10(0); S5(0); } else { for (int c1 = 0; c1 < M; c1 += 1) S2(0, c1); S3(0); for (int c1 = 0; c1 < M; c1 += 1) S4(0, c1); S...
801
15,633
#pragma once #include "kull_m_rpc.h" #include "../kull_m_samlib.h" #define PACINFO_TYPE_LOGON_INFO 0x00000001 #define PACINFO_TYPE_CREDENTIALS_INFO 0x00000002 #define PACINFO_TYPE_CHECKSUM_SRV 0x00000006 #define PACINFO_TYPE_CHECKSUM_KDC 0x00000007 #define PACINFO_TYPE_CNAME_TINFO 0x0000000a #define PACINFO_...
2,070
531
<reponame>skn123/vexcl<filename>vexcl/sparse/csr.hpp #ifndef VEXCL_SPARSE_CSR_HPP #define VEXCL_SPARSE_CSR_HPP /* The MIT License Copyright (c) 2012-2018 <NAME> <<EMAIL>> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"),...
3,469
603
<filename>venv/Lib/site-packages/pandas/tests/resample/test_deprecated.py from datetime import datetime, timedelta import numpy as np import pytest import pandas as pd from pandas import DataFrame, Series import pandas._testing as tm from pandas.core.indexes.datetimes import date_range from pandas.core.indexes.period...
4,352
315
package com.nvlad.yii2support.common; import org.jetbrains.annotations.NotNull; /** * Created by oleg on 06.04.2017. */ public class VirtualProperty { private String name; private String type; private String comment; private String prevColumn; public String getName() { return name; ...
893
852
<filename>Geometry/HcalEventSetup/test/runTestHcalDDDGeometry_cfg.py import FWCore.ParameterSet.Config as cms process = cms.Process("GeometryTest") process.load("Geometry.CMSCommonData.hcalOnlyGeometryXML_cfi") process.load("Geometry.HcalEventSetup.hcalTopologyIdeal_cfi") #process.load("Configuration.StandardSequenc...
633
777
<filename>chrome/browser/chromeos/ui/request_pin_view.cc // 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. #include "chrome/browser/chromeos/ui/request_pin_view.h" #include <stddef.h> #include "base/bin...
3,302
335
<gh_stars>100-1000 { "word": "Myelofibrosis", "definitions": [ "Progressive fibrosis of the bone marrow, typically associated with pancytopenia and with myeloid metaplasia in other organs." ], "parts-of-speech": "Noun" }
93
465
# -*- coding: utf8 -*- # Copyright (c) 2017-2021 THL A29 Limited, a Tencent company. 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...
458
2,564
// // Created by CainHuang on 2020-02-25. // #ifndef VIDEOPLAY_H #define VIDEOPLAY_H #include "../AVMediaHeader.h" class VideoProvider { public: virtual ~VideoProvider() = default; virtual int onVideoProvide(uint8_t *buffer, int width, int height, AVPixelFormat format = AV_PIX_FMT_RGBA) = 0; }; class Video...
521
335
{ "word": "Consolidation", "definitions": [ "The action or process of making something stronger or more solid.", "The action or process of combining a number of things into a single more effective or coherent whole.", "The action or process of combining a number of financial accounts or ...
125
441
<reponame>mrdziuban/basex package org.basex.query.func.archive; import static org.basex.query.QueryError.*; import java.io.*; import java.nio.file.*; import java.util.*; import org.basex.io.out.*; import org.basex.query.*; import org.basex.query.value.item.*; import org.basex.query.value.seq.*; import org.basex.util...
370
573
/* * This software is licensed under the terms of the MIT License. * See COPYING for further information. * --- * Copyright (c) 2011-2019, <NAME> <<EMAIL>>. * Copyright (c) 2012-2019, <NAME> <<EMAIL>>. */ #include "taisei.h" #include "dialog.h" #include "global.h" #include "portrait.h" void dialog_init(Dialog ...
4,297
2,338
<filename>clang/unittests/Index/IndexTests.cpp //===--- IndexTests.cpp - Test indexing actions -----------------*- C++ -*-===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLV...
6,216
1,311
// SPDX-FileCopyrightText: 2021 <NAME> // SPDX-License-Identifier: MIT #pragma once namespace JPH { /// The constant \f$\pi\f$ #define JPH_PI 3.14159265358979323846f /// Convert a value from degrees to radians inline constexpr float DegreesToRadians(float inV) { return inV * (JPH_PI / 180.0f); } /// Convert...
1,297
763
<reponame>pranavbj-amzn/batfish package org.batfish.bddreachability; import static org.batfish.bddreachability.EdgeMatchers.edge; import static org.batfish.bddreachability.TransitionMatchers.mapsBackward; import static org.batfish.bddreachability.TransitionMatchers.mapsForward; import static org.hamcrest.MatcherAssert...
1,605
652
<gh_stars>100-1000 from pandas.core.frame import DataFrame as DataMatrix
23
335
#include <torch/torch.h> // CUDA forward declarations int ChamferDistanceKernelLauncher( const int b, const int n, const float* xyz, const int m, const float* xyz2, float* result, int* result_i, float* result2, int* result2_i); int ChamferDistanceGradKernelLauncher( const int b, co...
3,596
340
<gh_stars>100-1000 # Concord # # Copyright (c) 2019 VMware, Inc. All Rights Reserved. # # This product is licensed to you under the Apache 2.0 license (the "License"). # You may not use this product except in compliance with the Apache 2.0 License. # # This product may include a number of subcomponents with separate co...
4,470
2,564
// // Created by CainHuang on 2019/3/14. // #ifndef NODETYPE_H #define NODETYPE_H /** * 渲染结点类型 */ typedef enum RenderNodeType { NODE_NONE = -1, // 未知结点 NODE_INPUT = 0, // 输入结点 NODE_BEAUTY = 1, // 美颜结点 NODE_FACE = 2, // 美型结点 NODE_MAKEUP = 3, // 彩妆结点 NODE_FILTER = 4, // 滤...
345
307
<filename>worksheet-to-text-files/sheetToTextFile.py #! python3 # sheetToTextFile.py # Author: <NAME> # Source: Automate the Boring stuff with python Ch. 12 Project import os import openpyxl def toTextFiles(filename): """writes column data in worksheet into text files Args: filename (str): name of...
302
347
<reponame>jihwahn1018/ovirt-engine package org.ovirt.engine.core.common.businessentities; /** * Indicates if the business entity is managed by ovirt-engine or is it being managed by an external provider. */ public interface Managed { default boolean isManaged() { return true; } }
99
504
<reponame>steakknife/pcgeos /*********************************************************************** * * Copyright (c) Geoworks 1992 -- All Rights Reserved * * PROJECT: PCGEOS * MODULE: ffile.ldf * FILE: extern.h * * AUTHOR: <NAME> : Apr 20, 1992 * * DESCRIPTION: * This file holds declar...
265
713
package org.infinispan.server.configuration.security; import java.util.ArrayList; import java.util.List; import java.util.stream.Collectors; import org.infinispan.commons.configuration.Builder; /** * @since 10.0 */ public class ServerIdentitiesConfigurationBuilder implements Builder<ServerIdentitiesConfiguration> ...
595
892
{ "schema_version": "1.2.0", "id": "GHSA-q44v-89pv-h73p", "modified": "2022-05-13T01:12:13Z", "published": "2022-05-13T01:12:13Z", "aliases": [ "CVE-2016-2090" ], "details": "Off-by-one vulnerability in the fgetwln function in libbsd before 0.8.2 allows attackers to have unspecified impact via unknown...
969
1,615
<reponame>jackwiy/MLN /* * Copyright (C) 2010 ZXing 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...
793
2,958
package com.blade.kit.json; import java.lang.reflect.Type; /** * @author biezhi * @date 2017/12/15 */ public interface JsonSupport { String toString(Object data); <T> T formJson(String json, Type cls); }
83
3,716
package com.mpush.netty.http; import io.netty.channel.ChannelHandler; import io.netty.channel.ChannelHandlerContext; import io.netty.channel.ChannelInboundHandlerAdapter; import io.netty.handler.codec.http.*; import io.netty.util.IllegalReferenceCountException; import io.netty.util.ReferenceCountUtil; import org.slf4j...
2,350
32,544
package com.baeldung.persistence.service; import static org.apache.commons.lang3.RandomStringUtils.randomAlphabetic; import static org.hamcrest.Matchers.greaterThan; import static org.junit.Assert.assertThat; import javax.persistence.EntityManager; import javax.persistence.PersistenceContext; import javax.persistence...
1,243
310
module org.seasar.doma.processor { requires java.compiler; requires org.seasar.doma.core; }
35
1,198
/* Copyright 2017-2019 Google Inc. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed t...
12,804
7,258
<gh_stars>1000+ from __future__ import annotations from typing import TYPE_CHECKING from cleo.helpers import option from poetry.core.packages.dependency_group import MAIN_GROUP from poetry.console.commands.env_command import EnvCommand if TYPE_CHECKING: from cleo.io.inputs.option import Option from poetry....
1,757
32,544
<gh_stars>1000+ package com.baeldung.properties; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.boot.builder.SpringApplicationBuilder; @SpringBootApplication public class ExternalPropertyFileLoader { @...
159
359
import pandas as pd from google.cloud import bigquery from learntools.core import * # Setup (2.42s on Kaggle) client = bigquery.Client() # (1) WhichCountries first_query = """ SELECT country FROM `bigquery-public-data.openaq.global_air_quality` WHERE unit = "ppm" ...
1,809
449
<reponame>sufalroy/rtm //////////////////////////////////////////////////////////////////////////////// // The MIT License (MIT) // // Copyright (c) 2018 <NAME> & Animation Compression Library contributors // Copyright (c) 2018 <NAME> & Realtime Math contributors // // Permission is hereby granted, free of charge, to a...
7,179
392
# ============================================ __author__ = "<NAME>" __maintainer__ = "<NAME>" # ============================================ import os from torch.utils import data import numpy as np import xml.etree.ElementTree as ET from PIL import Image VOC_CLASS_LIST = ['__background__', 'aerop...
1,910
4,438
<gh_stars>1000+ // // LNInterpolable.h // // Created by <NAME> on 01/10/2016. // Copyright © 2016 <NAME>. All rights reserved. // #import <Foundation/Foundation.h> NS_ASSUME_NONNULL_BEGIN NS_SWIFT_NAME(InterpolationBehavior) typedef const NSString* LNInterpolationBehavior CF_STRING_ENUM; /** Interpolate using t...
443
1,144
<filename>backend/de.metas.adempiere.adempiere/base/src/main/java-gen/org/compiere/model/X_AD_Workflow_Access.java /** Generated Model - DO NOT CHANGE */ package org.compiere.model; import java.sql.ResultSet; import java.util.Properties; /** Generated Model for AD_Workflow_Access * @author Adempiere (generated) *...
1,753
868
<reponame>assens/activemq-artemis /* * 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, Versio...
1,286
3,799
/* * Copyright 2019 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applica...
33,565
653
<gh_stars>100-1000 //==---------------- backend.hpp - SYCL PI backends ------------------------==// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===--------...
3,875
743
from gpiozero import Energenie, TimeOfDay from datetime import time from signal import pause lamp = Energenie(1) daytime = TimeOfDay(time(8), time(20)) daytime.when_activated = lamp.on daytime.when_deactivated = lamp.off pause()
81
785
/* * Copyright © 2018-2019, 2021 Apple Inc. and the ServiceTalk project 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 * * U...
546
1,658
<filename>memtable/concurrent_hashduallist_rep.h #pragma once #ifndef ROCKSDB_LITE #include <list> #include "monitoring/instrumented_mutex.h" #include "rocksdb/memtablerep.h" #include "rocksdb/slice_transform.h" #include "rocksdb/terark_namespace.h" namespace TERARKDB_NAMESPACE { class ConcurrentHashDualListReqFacto...
1,352
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 MEDIA_PARSERS_MEDIA_PARSERS_EXPORT_H_ #define MEDIA_PARSERS_MEDIA_PARSERS_EXPORT_H_ #include "base/component_export.h" #define MEDIA_PARSERS_EXP...
152
1,160
# ---------------------------------------------------------------------------- # pyglet # Copyright (c) 2006-2008 <NAME> # Copyright (c) 2008-2021 pyglet contributors # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following c...
2,799
1,350
<gh_stars>1000+ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. package com.azure.communication.chat.implementation.models; import com.azure.core.annotation.Immutable; import com.fasterxml.jackson.annotation.Js...
876
1,405
<reponame>jarekankowski/pegasus_spyware package com.network.android.monitor.observer; import android.content.Context; import android.database.ContentObserver; import com.network.android.c.a.a; /* access modifiers changed from: package-private */ public final class o extends ContentObserver { /* renamed from: a ...
312
488
<gh_stars>100-1000 static int fn1() { return 0; } int fn2() { return 0; } int normal_var; static int static_var;
55
32,544
package com.baeldung.springintegration.controllers; import java.util.ArrayList; import java.util.List; import javax.annotation.PostConstruct; import javax.el.ELContextEvent; import javax.el.ELContextListener; import javax.faces.bean.ManagedBean; import javax.faces.bean.ViewScoped; @ManagedBean(name = "helloPFBean") ...
1,021
30,785
package jadx.tests.integration.deobf.a; import java.util.Collections; import org.junit.jupiter.api.Test; import jadx.tests.api.IntegrationTest; import static jadx.tests.api.utils.assertj.JadxAssertions.assertThat; public class TestNegativeRenameCondition extends IntegrationTest { public static class TestCls { ...
360
4,036
# For django 2.x and 3.x class View: pass
21
1,817
/* * * * Copyright 2019-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 *...
714
471
import uuid from django.test import SimpleTestCase, TestCase from sqlagg import SumWhen from casexml.apps.case.mock import CaseBlock from casexml.apps.case.util import post_case_blocks from corehq.apps.userreports import tasks from corehq.apps.userreports.app_manager.helpers import clean_table_name from corehq.apps...
8,839
2,392
/** * \file * * \author <NAME> * * \copyright Copyright (C) 2013-2020 <NAME> * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your opt...
1,507
3,200
<gh_stars>1000+ /** * Copyright 2019 Huawei Technologies Co., Ltd * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required b...
477
335
{ "word": "Glib", "definitions": [ "(of words or a speaker) fluent but insincere and shallow." ], "parts-of-speech": "Adjective" }
67
1,602
<gh_stars>1000+ /* * Copyright 2020-2021 Hewlett Packard Enterprise Development LP * Copyright 2004-2019 Cray Inc. * Other additional copyright holders may be indicated within. * * The entirety of this work is licensed under the Apache License, * Version 2.0 (the "License"); you may not use this file except * in...
21,691
778
// KRATOS ___| | | | // \___ \ __| __| | | __| __| | | __| _` | | // | | | | | ( | | | | ( | | // _____/ \__|_| \__,_|\___|\__|\__,_|_| \__,_|_| MECHANICS // // License: BSD License // license: structural_mechanics_applic...
3,526
1,826
<gh_stars>1000+ package com.vladsch.flexmark.util.format.options;
25
490
<reponame>EricLina/attn2d<gh_stars>100-1000 import os.path as osp import numpy as np import re def get_dal(ctxs, src_len): # tau = arg min_t {g(t) = src_len} prev_gtbis = 0 dal = 0 hyp_len = len(ctxs) gamma = hyp_len / src_len for t, gt in enumerate(ctxs): if t: gtbis = max...
3,094
445
/* * keyraw.h -- raw key and signature access and conversion - OpenSSL * * Copyright (c) 2005-2008, NLnet Labs. All rights reserved. * * See LICENSE for the license. * */ /** * \file * * raw key and signature access and conversion * * Since those functions heavily rely op cryptographic operations, * this ...
185
745
from .oauth import BaseOAuth2 class EventbriteOAuth2(BaseOAuth2): """Eventbrite OAuth2 authentication backend""" name = 'eventbrite' AUTHORIZATION_URL = 'https://www.eventbrite.com/oauth/authorize' ACCESS_TOKEN_URL = 'https://www.eventbrite.com/oauth/token' METADATA_URL = 'https://www.eventbriteap...
439
809
<gh_stars>100-1000 /** * @file * @brief Implements Lego NXT Bluetooth driver. * * @date 24.02.11 * @author <NAME> */ #include <stdint.h> #include <string.h> #include <unistd.h> #include <assert.h> #include <hal/system.h> #include <kernel/time/ktime.h> #include <drivers/at91sam7s256.h> #include <drivers/pins.h> ...
2,655
3,084
<filename>usb/UcmCxUcsi/UcmNotifications.h /*++ Copyright (c) Microsoft Corporation. All rights reserved. Module Name: UcmNotifications.h Abstract: Interface to notify UcmCx of events. Environment: Kernel-mode only. --*/ #pragma once // // There is only enough space for 4 PDOs i...
1,082
348
<reponame>arjunkhunti-crest/security_content """ Published in response to CVE-2021-44228, this playbook is meant to be launched by log4j_investigate. In this playbook, the risk from an exploited host can be mitigated by optionally deleting malicious files from the hosts, blocking outbound network connections from the h...
4,208
463
<gh_stars>100-1000 package cc.redpen.validator.sentence; import cc.redpen.validator.DictionaryValidator; /** * Base class for Validators using the spelling dictionary. */ public abstract class SpellingDictionaryValidator extends DictionaryValidator { public SpellingDictionaryValidator() { super(WORD_LIST_LOWE...
111
312
<reponame>neonkingfr/MIDImonster #include "midimonster.h" MM_PLUGIN_API int init(); static int winmidi_configure(char* option, char* value); static int winmidi_configure_instance(instance* inst, char* option, char* value); static int winmidi_instance(instance* inst); static channel* winmidi_channel(instance* inst, cha...
582
732
<filename>lisp-kernel/plsym.c /* * Copyright 1994-2009 <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 ap...
1,446
387
/** * @section License * * The MIT License (MIT) * * Copyright (c) 2017, <NAME>, barth-dev.de * * 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 with...
5,582
1,517
<gh_stars>1000+ /* * Copyright 2015, Yahoo Inc. * Copyrights licensed under the Apache 2.0 License. * See the accompanying LICENSE file for terms. */ package com.yahoo.squidb.annotations; import java.lang.annotation.ElementType; import java.lang.annotation.Target; /** * A model spec for generating a model that s...
497
12,252
/* * Copyright 2016 Red Hat, Inc. and/or its affiliates * and other contributors as indicated by the @author tags. * * 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...
948
852
<reponame>ckamtsikis/cmssw<filename>DQM/CSCMonitorModule/python/test/csc_dqm_sourceclient-rawfile_cfg.py import FWCore.ParameterSet.Config as cms process = cms.Process("CSCDQM") #------------------------------------------------- # DQM Module Configuration #------------------------------------------------- process.lo...
3,390