max_stars_count
int64
301
224k
text
stringlengths
6
1.05M
token_count
int64
3
727k
14,564
/* * (C) 2019-present Alibaba Group Holding Limited. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation. */ package com.alibaba.datax.plugin.reader.gdbreader.model; import org.ap...
600
482
<reponame>jmrapp1/TerraLegion package com.jmrapp.terralegion.game.utils; import java.util.HashMap; import java.util.Iterator; import java.util.Map.Entry; import com.badlogic.gdx.utils.Array; import com.jmrapp.terralegion.game.world.block.BlockManager; import com.jmrapp.terralegion.game.world.block.BlockProperties; im...
4,348
1,016
/** * */ package com.thinkbiganalytics.nifi.core.api.metadata; /*- * #%L * kylo-nifi-core-service-api * %% * Copyright (C) 2017 - 2018 ThinkBig Analytics * %% * 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...
638
985
int tent; int foo() { return tent; }
15
414
<reponame>andrewzolotukhin/rockpack { "name": "react-app", "version": "1.0.0", "scripts": { "start": "cross-env NODE_ENV=development node build", "analyzer": "cross-env NODE_ENV=development node build --analyzer", "analyzer:prod": "cross-env NODE_ENV=production node build --analyzer", "build": "cr...
186
2,287
<filename>v2ex-iOS/Controllers/V2LoginViewController.h<gh_stars>1000+ // // V2LoginViewController.h // v2ex-iOS // // Created by Singro on 4/7/14. // Copyright (c) 2014 Singro. All rights reserved. // #import <UIKit/UIKit.h> @interface V2LoginViewController : UIViewController @end
111
6,036
#include "dummy_provider.h" #include "core/framework/kernel_registry.h" #include "core/framework/compute_capability.h" namespace onnxruntime { namespace test { std::shared_ptr<KernelRegistry> DummyExecutionProvider::GetKernelRegistry() const { static std::shared_ptr<KernelRegistry> kernel_registry = std::make_shar...
142
3,428
{"id":"01195","group":"spam-2","checksum":{"type":"MD5","value":"2e0668d1365c631aa09d21c813ce013f"},"text":"From <EMAIL> Tue Jul 30 19:11:42 2002\nReturn-Path: <<EMAIL>>\nDelivered-To: yyyy@localhost.netnoteinc.com\nReceived: from localhost (localhost [127.0.0.1])\n\tby phobos.labs.netnoteinc.com (Postfix) with ESMTP ...
880
4,508
<reponame>fatt92/KeepingYouAwake { "date": "2014-11-23 11:00:00", "file_url": "https://github.com/newmarcel/KeepingYouAwake/releases/download/1.2/KeepingYouAwake-1.2.zip", "file_length": 1516803, "file_version": "120", "file_short_version": "1.2" }
122
2,406
<gh_stars>1000+ # Copyright (C) 2018-2021 Intel Corporation # SPDX-License-Identifier: Apache-2.0 import os if 'MO_ROOT' in os.environ: mo_bin = os.environ['MO_ROOT'] if not os.path.exists(mo_bin): raise EnvironmentError( "Environment variable MO_ROOT points to non existing path {}".forma...
349
378
<gh_stars>100-1000 /* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "...
5,806
840
# -*- coding: utf-8 -*- import unittest import oss2 import os import sys import time import copy import tempfile from mock import patch from functools import partial from oss2.compat import to_unicode from .common import * class SizedFileAdapterForMock(object): def __init__(self, file_object, size, content_len...
11,424
343
from torch.nn import functional as F from magnet.nodes.functional import activations, losses, metrics dimensional_function = lambda f_list, *args, **kwargs: f_list[len(args[0].size()) - 3](*args, **kwargs) adaptive_avg_pool = lambda x, output_size: dimensional_function([F.adaptive_avg_pool1d, F.adaptive_avg_pool2d, ...
199
1,056
<filename>ide/db/src/org/netbeans/modules/db/explorer/dlg/CreateTableDialog.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 t...
10,565
1,056
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
1,304
1,936
#ifndef MAP_RESOURCES_RESOURCE_LOADER_H_ #define MAP_RESOURCES_RESOURCE_LOADER_H_ #include <string> #include "map-resources/resource-cache.h" #include "map-resources/resource-common.h" namespace backend { class ResourceLoader { public: ResourceLoader() {} void migrateResource( const ResourceId& id, cons...
1,429
646
<reponame>Amine-El-Ghaoual/griddb /* Copyright (c) 2017 TOSHIBA Digital Solutions Corporation This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your...
691
862
<reponame>harryfallows/atlasdb<filename>atlasdb-api/src/main/java/com/palantir/atlasdb/transaction/api/GetRangesQuery.java /* * (c) Copyright 2020 Palantir Technologies Inc. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with...
615
486
<reponame>bfourie/msix-packaging // // Copyright (C) 2019 Microsoft. All rights reserved. // See LICENSE file in the project root for full license information. // #include "msixtest_int.hpp" #include "FileHelpers.hpp" #include "catch.hpp" #include <memory> #include <algorithm> #include <string> #include...
2,929
1,511
#ifndef lint static char copyright[] = "$Id$ Copyright (c) 1998-2000 The Internet Software Consortium. All rights reserved.\n"; #endif /* not lint */
46
1,143
from __future__ import absolute_import from pex.pex import *
17
3,459
<gh_stars>1000+ class Interface { public: void video_scanline(uint16_t *data, unsigned line, unsigned width, unsigned height, bool interlace, bool field); void audio_sample(uint16_t l_sample, uint16_t r_sample); void input_poll(); int16_t input_poll(bool port, unsigned device, unsigned index, unsigned id); };
100
5,169
{ "name": "BulletinBoard", "version": "5.0.0-rc.1", "summary": "Generate and Display Bottom Card Interfaces for iOS", "description": "BulletinBoard is an iOS library that generates and manages contextual cards displayed at the bottom of the screen. It is especially well suited for quick user interactions such a...
412
782
// Copyright (c) 2020 Intel Corporation // // 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, publ...
481
435
#!/usr/bin/env python # Copyright 2014 <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 ...
1,917
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 "mojo/public/cpp/base/file_mojom_traits.h" #include "base/files/file.h" namespace mojo { mojo::PlatformHandle StructTraits<mojo_base::mojom::Fi...
260
1,247
{ "author": "Microsoft", "name": "<NAME>", "description": "A file used to configure Web Application settings", "postActions/open-file/description": "Opens web.config in the editor" }
58
8,273
/** * Copyright (c) 1999-2011, Ecole des Mines de Nantes All rights reserved. Redistribution and use in * source and binary forms, with or without modification, are permitted provided that the following * conditions are met: * * <p>* Redistributions of source code must retain the above copyright notice, this list ...
1,283
2,860
/* * Copyright (C) Lightbend Inc. <https://www.lightbend.com> */ package com.lightbend.lagom.internal.spi; import java.util.List; /** * This class can be implemented by a Play ApplicationLoader to allow tooling to detect services and * their ACLs. */ public interface ServiceDiscovery { List<ServiceDescriptio...
107
1,821
/* * Copyright 2018- The Pixie 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 ag...
3,352
419
/* * Copyright (C) 2015-2018 Alibaba Group Holding Limited */ #ifndef COMMON_H #define COMMON_H #include <stdio.h> #define TFormat_printf(...) \ do { \ printf("\e[0;32m%s@line%d:\t", __FUNCTION__, __LINE__); \ printf(__VA_ARGS__); ...
268
937
package com.oath.cyclops.closures.mutable; import static org.hamcrest.Matchers.equalTo; import static org.hamcrest.Matchers.is; import static org.hamcrest.Matchers.not; import static org.junit.Assert.assertThat; import java.util.function.BiFunction; import java.util.function.Function; import java.util.stream.Stream; ...
1,115
2,111
/* * nvbio * Copyright (c) 2011-2014, NVIDIA CORPORATION. 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,...
1,069
575
<reponame>sarang-apps/darshan_browser<gh_stars>100-1000 // Copyright 2018 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef COMPONENTS_SYNC_DRIVER_SYNC_AUTH_UTIL_H_ #define COMPONENTS_SYNC_DRIVER_SYNC_AUTH_UTIL_H_ ...
370
892
<filename>advisories/unreviewed/2022/05/GHSA-7q4q-c7wp-55p8/GHSA-7q4q-c7wp-55p8.json { "schema_version": "1.2.0", "id": "GHSA-7q4q-c7wp-55p8", "modified": "2022-05-13T01:01:42Z", "published": "2022-05-13T01:01:42Z", "aliases": [ "CVE-2018-4059" ], "details": "An exploitable unsafe default configuratio...
526
12,252
package org.keycloak.testsuite.page; /** * * @author tkyjovsk */ public interface PageWithLogOutAction { public void logOut(); }
60
524
<filename>gui.shared/local_peer/local_peer.cpp #include "stdafx.h" #include "local_peer.h" #include "../qt_overload.h" #include <QtNetwork/QLocalSocket> #include <QtNetwork/QLocalServer> using msglen_t = quint32; namespace { constexpr std::chrono::milliseconds answerTimeout = std::chrono::seconds(2); const Q...
4,289
2,683
{ "$schema": "../../../node_modules/@delon/abc/onboarding/schema.json", "maskClosable": false, "items": [ { "selectors": ".alain-default__nav li .alain-default__nav-item", "title": "Click here to switch to shrink main menu", "lightStyle": "background-color: rgba(255, 255, 255, 0.2)" }, ...
285
763
{ "class": "org.batfish.question.initialization.ConversionStatusQuestion", "differential": false, "instance": { "description": "Displays vendor independent conversion status.", "instanceName": "viConversionStatus", "longDescription": "For each node in a snapshot, returns the vendor i...
158
32,544
<reponame>DBatOWL/tutorials package com.baeldung.repositoryvsdaopattern; import java.util.List; public interface TweetDao { List<Tweet> fetchTweets(String email); }
71
2,151
<reponame>zipated/src<filename>content/test/url_loader_interceptor_test.cc // 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 "content/public/test/url_loader_interceptor.h" #include "base/command_...
1,995
483
package org.dizitart.no2.exceptions; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertNull; import org.junit.Test; public class MigrationExceptionTest { @Test public void testConstructor() { MigrationException actualMigrationException = new MigrationException("An erro...
261
778
<gh_stars>100-1000 {"webui.enable": false, "executorMemory": "6G", "executorCount": 0, "driverMemory": "100G", "partitionSize": "32MB", "runTimeMemory": "64MB", "inputSplitSize": "64MB", "useLLVMOptimizer": true, "optimizer.nullValueOptimization": false, "csv.selectionPushdown": true, "optimizer.generateParser": false,...
134
308
/* * Copyright(c) 2018 Intel Corporation * SPDX - License - Identifier: BSD - 2 - Clause - Patent */ #ifndef EbTransforms_AVX2_h #define EbTransforms_AVX2_h #include "EbDefinitions.h" #ifdef __cplusplus extern "C" { #endif void QuantizeInvQuantize8x8_AVX2_INTRIN( EB_S16 *coeff, const EB_U32 coeffStrid...
1,773
8,747
<reponame>lovyan03/esp-idf /* * SPDX-FileCopyrightText: 2015-2021 Espressif Systems (Shanghai) CO LTD * * SPDX-License-Identifier: Apache-2.0 */ #ifndef _HTTP_BASIC_AUTH_H_ #define _HTTP_BASIC_AUTH_H_ /** * HTTP Digest authentication data */ typedef struct { char *method; /*!< Request method, example...
643
392
<filename>scripts/cloud-inits/cloudInitToCustomData/cloudInitToCustomData.py #!/usr/bin/env python3 '''genonline.py - Python 3 version of AnHowe's script to package a cloud-init.txt script into an Azure Resource Manage template format. goal: "commandToExecute": "[variables('jumpboxWindowsCustomScript')] "''' imp...
513
14,668
// Copyright 2021 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "ash/quick_pair/message_stream/message_stream_lookup.h" #include <memory> #include "ash/quick_pair/common/logging.h" #include "ash/quick_pair/m...
2,437
1,584
<gh_stars>1000+ /** * @file mfcc-core.c * * <JA> * @brief MFCC 特徴量の計算 * * ここでは,窓をかけて取り出された音声波形データから MFCC 特徴量を * 算出するコア関数が納められています. * </JA> * * <EN> * @brief Compute MFCC parameter vectors * * These are core functions to compute MFCC vectors from windowed speech data. * </EN> * * @author <NAME> *...
8,722
956
<reponame>timgates42/trex-core<gh_stars>100-1000 /* SPDX-License-Identifier: BSD-3-Clause * Copyright(c) 2018 Intel Corporation */ #include "e1000_logs.h" /* declared as extern in e1000_logs.h */ int e1000_logtype_init; int e1000_logtype_driver; #ifdef RTE_LIBRTE_E1000_DEBUG_RX int e1000_logtype_rx; #endif #ifdef ...
687
5,169
<reponame>Gantios/Specs<filename>Specs/2/6/6/monkc/1.0.2/monkc.podspec.json { "name": "monkc", "version": "1.0.2", "summary": "a toolkit for OOP programming in C language", "description": "Monk-C, is a toolkit for OOP programming use pure C (static library). the aim of Monk-C is to support OOP in pure C with so...
393
435
{ "copyright_text": "Standard YouTube License", "description": "The state of PyPy\n\nRonan Lamy\n\nPyPy is a fast and highly-compatible alternative implementation of Python. Its just-in-time compiler, backed by a state-of-the art garbage collector, allow it to run pure-Python(2) code on average 7 times faster than ...
358
190,993
/* Copyright 2016 The TensorFlow 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/licenses/LICENSE-2.0 Unless required by applicable law or a...
1,749
2,111
<filename>algorithms/src/LocalizationAndMapping/registration_localization/fast_gicp/thirdparty/nvbio/nvbio/basic/packedstream_inl.h<gh_stars>1000+ /* * nvbio * Copyright (c) 2011-2014, NVIDIA CORPORATION. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, a...
26,326
2,690
<reponame>PushyamiKaveti/kalibr namespace aslam { template<int D> Keypoint<D>::Keypoint() : KeypointBase(), _measurement(measurement_t::Zero()), _inverseMeasurementCovariance(inverse_covariance_t::Identity()), _landmark(NULL), _backProjection(NULL), _octave(0), _traceId(0) { } ...
3,508
1,914
{ "name": "BootstrapOnlyTheme", "author": "shop<EMAIL>", "views": [ "@MockStorefront", "@Plugins", "@BootstrapOnlyTheme" ], "style": [ "app/storefront/src/scss/overrides.scss", "@StorefrontBootstrap", "app/storefront/src/scss/base.scss" ], "script": [ "@MockStorefront", "ap...
194
558
/* SPDX-License-Identifier: Apache-2.0 */ /* * Copyright (C) 2021 Micron Technology, Inc. All rights reserved. */ #include <dirent.h> #include <hse_util/event_counter.h> #include <hse_util/hse_err.h> #include <hse_util/logging.h> #include "mpool_internal.h" #include "mclass.h" #include "mdc.h" #include "mdc_file....
5,028
418
/* MIT License Copyright (c) 2019 Advanced Micro Devices, Inc. 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, m...
3,774
2,702
/* * Copyright (C) 2015 Square, 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 agre...
971
934
<reponame>kmmao/frpMgr<gh_stars>100-1000 package com.jeesite.modules.frp.enums; public enum ClientType { WEB(1, "web穿透"), SSH(2, "ssh登录"), RDP(3, "远程登录"), FILE(4, "目录文件"); public final Integer value; public final String desc; private ClientType(Integer value, String desc) { this...
239
464
package com.codezjx.andlinker; interface ICallback extends android.os.IInterface { /** * Local-side IPC implementation stub class. */ abstract class Stub extends android.os.Binder implements ICallback { private static final String DESCRIPTOR = "com.codezjx.alinker.ICallback"; /** ...
2,207
502
#ifndef _WavTapENGINE_HPP #define _WavTapENGINE_HPP #include <IOKit/audio/IOAudioEngine.h> #include "WavTapDevice.hpp" class WavTapEngine : public IOAudioEngine { OSDeclareDefaultStructors(WavTapEngine); UInt32 mBufferSize; void *mBuffer; float *mThruBuffer; IOAudioStream *outputStream; IOAudioStream *inp...
468
423
import re from tempfile import TemporaryDirectory import pytest from aqt.archives import TargetConfig from aqt.exceptions import UpdaterError from aqt.helper import Settings from aqt.updater import Updater @pytest.fixture(autouse=True) def setup_settings(): Settings.load_settings() @pytest.mark.parametrize( ...
1,105
496
#ifndef SIMIT_LOWER_TENSOR_UTILS_H #define SIMIT_LOWER_TENSOR_UTILS_H #include <vector> #include "ir.h" using namespace std; namespace simit { namespace ir { /// Rewrite a statement looped over a block of size `blockSize`, substituting /// induction variables appropriately. Stmt rewriteToBlocked(Stmt stmt, vector<...
129
438
<reponame>Pocoyo-dev/Discord-Bot { "DESCRIPTION": "ʇsᴉlʎɐld ɐ ǝʇǝlǝp", "USAGE": "p-delete <ǝɯɐu ʇsᴉlʎɐld>", "MISSING": "˙{{TITLE}} :ǝɯɐu ǝɥʇ ʎq ʇsᴉlʎɐld ɐ puᴉɟ ʇ,uplnoƆ", "SUCCESS": "Successfully deleted {{TITLE}}." }
169
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.logic.fluent; import com.azure.core.annotation.ReturnType; import com.azure.core.annotation.ServiceMethod; import com.azure.core...
653
790
<gh_stars>100-1000 """ Tests for defer() and only(). """ from django.db import models class Secondary(models.Model): first = models.CharField(max_length=50) second = models.CharField(max_length=50) class Primary(models.Model): name = models.CharField(max_length=50) value = models.CharField(max_lengt...
192
2,151
/* * Copyright (c) 2018 The WebRTC 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 PATENTS. All contribut...
320
190,993
<filename>tensorflow/compiler/xla/service/gpu/tests/gemm_broadcast_folding_rewrite_test.cc<gh_stars>1000+ /* Copyright 2019 The TensorFlow 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...
1,528
1,273
# Copyright (C) 2019 <NAME>, <NAME>, <NAME>, <NAME>, <NAME>, <NAME>, Fudan University # # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "License"); you may not use this file except in...
1,042
2,151
// Copyright 2016 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef SERVICES_UI_DISPLAY_VIEWPORT_METRICS_H_ #define SERVICES_UI_DISPLAY_VIEWPORT_METRICS_H_ #include <string> #include "ui/gfx/geometry/rect.h" nam...
349
819
#!/usr/bin/env python # -*- encoding: utf-8 -*- """ Topic: 动态规划O(n)时间内实现fibonacci数列 Desc : """ def dynamic_fibo(n): r = [1, 1] for i in range(2, n): r.append(r[i - 2] + r[i - 1]) return r if __name__ == '__main__': print(dynamic_fibo(10))
157
678
/** * This header is generated by class-dump-z 0.2b. * * Source: /System/Library/PrivateFrameworks/AppStoreUI.framework/AppStoreUI */ #import <AppStoreUI/XXUnknownSuperclass.h> @interface ASApplicationPageCellConfiguration : XXUnknownSuperclass { float _labelColumnWidth; // 60 = 0x3c } @property(assign, nonatom...
294
878
#! /usr/bin/env python import sys import os import csv import json from pandashells.lib import config_lib import numpy as np import pandas as pd ENCODING = 'utf-8' # silly function to aid in test mocking def open_file(in_file, *args, **kwargs): # pragma no cover return open(in_file, *args, **kwargs) def ge...
2,164
764
package io.eventuate.local.java.spring.autoconfigure.crud; import io.eventuate.javaclient.spring.common.crud.EventuateCommonCrudConfiguration; import io.eventuate.local.java.spring.jdbc.crud.EventuateLocalCrudConfiguration; import org.springframework.context.annotation.Configuration; import org.springframework.context...
141
6,717
//****************************************************************************** // // Copyright (c) 2015 Microsoft Corporation. All rights reserved. // // This code is licensed under the MIT License (MIT). // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LI...
765
1,729
from . import cli, aws, gcp, local
14
565
{ "name": "<NAME>", "type": "community", "bio": "An student-run open source community focusing on project based learning.", "avatar": "https://github.com/CeruleanCodersComm.png", "links": [ { "name": "Join our GitHub Organisation", "url": "https://github.com/CeruleanCodersComm", "icon": ...
195
1,953
<reponame>moskauerst/grails-core<gh_stars>1000+ /* * Copyright 2004-2005 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 * * http://www.apache.org/...
2,507
8,027
/* * 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/licenses/LICENSE-2.0 * * Unless required by applic...
4,003
1,056
<filename>enterprise/web.jsf/src/org/netbeans/modules/web/jsf/impl/facesmodel/ValidatorImpl.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. Th...
1,905
1,093
<filename>spring-integration-core/src/test/java/org/springframework/integration/dispatcher/BroadcastingDispatcherTests.java /* * Copyright 2002-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. ...
4,492
1,175
from Crypto.Util.number import * from pwn import * def _encrypt(message): r.recvuntil("choice: ") r.sendline("1") r.recvuntil("encrypt (in hex): ") r.sendline(message.encode("hex")) ct = r.recvline().strip()[37:].decode("hex") r.recvline() r.recvline() return ct def extractmod_eknown(_...
635
10,340
/* * Licensed to Elasticsearch B.V. under one or more contributor * license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright * ownership. Elasticsearch B.V. licenses this file to you under * the Apache License, Version 2.0 (the "License"); you may * not u...
2,396
14,668
// 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. #ifndef ASH_LOGIN_UI_VIEWS_UTILS_H_ #define ASH_LOGIN_UI_VIEWS_UTILS_H_ #include "ash/ash_export.h" #include "ash/style/ash_color_provider.h" #include "t...
1,102
788
/* * Copyright (C) 2016 to the original 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 * * Un...
655
7,409
<reponame>dorucioclea/posthog from django.db import models from posthog.models.team import Team from posthog.models.utils import sane_repr class EventProperty(models.Model): team: models.ForeignKey = models.ForeignKey(Team, on_delete=models.CASCADE) event: models.CharField = models.CharField(max_length=400, ...
334
1,444
package mage.cards.k; import java.util.UUID; import mage.MageInt; import mage.abilities.Ability; import mage.abilities.common.EndOfCombatTriggeredAbility; import mage.abilities.effects.common.DestroyAllEffect; import mage.cards.CardImpl; import mage.cards.CardSetInfo; import mage.constants.CardType; import mage.const...
607
677
// // Created by chen on 19/04/2018. // #ifndef ANDROID_RICH_TEXT_H #define ANDROID_RICH_TEXT_H #include "render/label.h" #include <map> #include "render/render_object.h" namespace lynx { class RichText : public Label { public: RichText(jscore::ThreadManager *manager, const char *tag_name, uint64_t id, ...
204
831
<reponame>phpc0de/idea-android /* * 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...
789
363
# -*- encoding: utf-8 -*- """ String type comparator used to match Strings Comparators are used by Audit module to compare module output with the expected result In FDG-connector, comparators might also be used with FDG String comparator exposes various commands: - "match" comparator: type: string ...
1,032
2,044
<gh_stars>1000+ /* * Copyright (C) 2015 Neo Visionaries 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...
5,093
1,074
# ----------------------------------------------------------------------------- # Copyright (c) 2009-2016 <NAME>. All rights reserved. # Distributed under the (new) BSD License. # ----------------------------------------------------------------------------- from glumpy import app from glumpy.graphics.text import FontMa...
679
12,366
<reponame>Matir/tink // Copyright 2020 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable...
3,737
10,225
package io.quarkus.it.jpa.h2; import javax.persistence.Entity; @Entity public class IndividualCustomer extends Customer { String firstname; String surname; }
57
8,217
import asyncio import time async def _say_hi(): print(f'[{time.time()}] Hi!') async def app(scope, receive, send): await send( { 'type': 'http.response.start', 'status': 200, 'headers': [ [b'content-type', b'application/json'], ], ...
290
679
<filename>main/dbaccess/source/ui/inc/QueryViewSwitch.hxx /************************************************************** * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regardin...
1,171
427
<filename>SymbolExtractorAndRenamer/lldb/packages/Python/lldbsuite/test/functionalities/signal/TestSendSignal.py """Test that lldb command 'process signal SIGUSR1' to send a signal to the inferior works.""" from __future__ import print_function import os import time import signal import lldb from lldbsuite.test.dec...
1,854
1,178
<filename>linux-x86/host/x86_64-linux-glibc2.11-4.8/sysroot/usr/include/linux/netfilter/xt_DSCP.h<gh_stars>1000+ /* x_tables module for setting the IPv4/IPv6 DSCP field * * (C) 2002 <NAME> <<EMAIL>> * based on ipt_FTOS.c (C) 2000 by <NAME> <<EMAIL>> * This software is distributed under GNU GPL v2, 1991 * * See RF...
309
1,560
# Copyright 2019 The TensorFlow 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/licenses/LICENSE-2.0 # # Unless required by applica...
2,049
2,151
/* * Copyright (c) 2016, Alliance for Open Media. All rights reserved * * This source code is subject to the terms of the BSD 2 Clause License and * the Alliance for Open Media Patent License 1.0. If the BSD 2 Clause License * was not distributed with this source code in the LICENSE file, you can * obtain it at w...
9,354