max_stars_count
int64
301
224k
text
stringlengths
6
1.05M
token_count
int64
3
727k
384
package yifeiyuan.practice.practicedemos.itemtouchhelper; import android.graphics.Canvas; import android.graphics.Rect; import android.support.v7.widget.RecyclerView; import android.support.v7.widget.helper.ItemTouchHelper; import android.util.Log; import android.view.View; /** * Created by alanchen on 15/7/30. */ ...
1,076
1,473
<gh_stars>1000+ /* * Autopsy Forensic Browser * * Copyright 2020-2021 Basis Technology Corp. * Contact: carrier <at> sleuthkit <dot> 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 of the License a...
1,206
631
<reponame>hengwei-chan/nn_vis_network_visualization<gh_stars>100-1000 from math import sin, cos, radians, asin, degrees, acos import numpy as np import pyrr from pyrr import Vector3, Matrix44, vector, vector3 from utility.types import CameraPose, CAMERA_POSE_POSITION def look_at(position: Vector3, target: Vector3, ...
3,138
348
<reponame>chamberone/Leaflet.PixiOverlay {"nom":"Saint-Benoist-sur-Mer","circ":"2ème circonscription","dpt":"Vendée","inscrits":415,"abs":202,"votants":213,"blancs":15,"nuls":7,"exp":191,"res":[{"nuance":"MDM","nom":"Mme <NAME>","voix":111},{"nuance":"LR","nom":"Mme <NAME>","voix":80}]}
119
16,989
<filename>src/test/java/com/google/devtools/build/lib/shell/FutureConsumptionTest.java // Copyright 2015 The Bazel 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 Licen...
1,216
2,219
<filename>net/http/http_proxy_client_socket.cc // 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 "net/http/http_proxy_client_socket.h" #include <memory> #include <utility> #include "base/bi...
6,372
793
"""Settings for default priors, families, etc. in Bambi.""" from .defaults import get_default_prior, get_builtin_family __all__ = ["get_default_prior", "get_builtin_family"]
59
794
package github.tornaco.android.thanos.process; import java.util.List; import github.tornaco.android.thanos.core.app.RunningServiceInfoCompat; import github.tornaco.android.thanos.core.pm.AppInfo; import github.tornaco.android.thanos.core.process.ProcessRecord; import util.PinyinComparatorUtils; public class ProcessM...
775
14,668
// Protocol Buffers - Google's data interchange format // Copyright 2008 Google Inc. All rights reserved. // https://developers.google.com/protocol-buffers/ // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // met: // // ...
1,640
1,817
package test.org.springdoc.api.app6.controllers; import java.util.List; import io.swagger.v3.oas.annotations.Operation; import io.swagger.v3.oas.annotations.Parameter; import io.swagger.v3.oas.annotations.responses.ApiResponse; import io.swagger.v3.oas.annotations.tags.Tag; import org.springframework.web.bind.annota...
321
1,489
package me.ele.amigo.compat; import java.lang.reflect.InvocationTargetException; import me.ele.amigo.reflect.MethodUtils; public class SingletonCompat { private static Class sClass; public static Class Class() throws ClassNotFoundException { if (sClass == null) { sClass = Class.forName(...
401
1,963
<gh_stars>1000+ /* ******************************************************************************* * Copyright (c) 2020-2021, STMicroelectronics * All rights reserved. * * This software component is licensed by ST under BSD 3-Clause license, * the "License"; You may not use this file except in compliance with the...
4,337
568
package com.fincatto.documentofiscal.nfe400.classes.nota; import java.math.BigDecimal; import org.junit.Assert; import org.junit.Test; import com.fincatto.documentofiscal.nfe400.classes.NFNotaInfoItemModalidadeBCICMSST; import com.fincatto.documentofiscal.nfe400.classes.NFNotaSituacaoOperacionalSimplesNacional; impo...
5,117
5,865
/* * Copyright 2021 ThoughtWorks, 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 agr...
4,288
892
<gh_stars>100-1000 { "schema_version": "1.2.0", "id": "GHSA-h2r3-ppvc-pvwh", "modified": "2022-05-13T01:14:03Z", "published": "2022-05-13T01:14:03Z", "aliases": [ "CVE-2014-5194" ], "details": "Static code injection vulnerability in admin/admin.php in Sphider 1.3.6 allows remote authenticated users to...
429
4,342
<filename>rx/core/observable/marbles.py from typing import List, Tuple, Optional, Mapping import re import threading from datetime import datetime, timedelta from rx import Observable from rx.core import notification from rx.disposable import CompositeDisposable, Disposable from rx.scheduler import NewThreadScheduler ...
3,563
678
<filename>iOSOpenDev/frameworks/WebCore.framework/Headers/WebCore-Structs.h /** * This header is generated by class-dump-z 0.2b. * * Source: /System/Library/PrivateFrameworks/WebCore.framework/WebCore */ typedef struct FrameDestructionObserver FrameDestructionObserver; template<> struct HashTable<WebCore::FrameDe...
20,787
679
/************************************************************** * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to y...
4,693
4,262
/* * 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 ...
1,051
764
{"symbol": "$TRDL","address": "0x297D33e17e61C2Ddd812389C2105193f8348188a","overview":{"en": "Strudel Finance bridges BTC from the Bitcoin Blockchain to the Ethereum Blockchain without any counterparty risk. Doing so, the project reduces systemic risk in the Ethereum ecosystem and provides an alternative approach to so...
188
569
/* * Copyright 2015 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 or agreed to ...
7,892
418
package com.jpardogo.android.flabbylistview; import android.app.ListActivity; import android.support.v7.app.ActionBarActivity; import android.os.Bundle; import android.view.Menu; import android.view.MenuItem; import android.widget.ArrayAdapter; import java.util.ArrayList; import java.util.List; public class MainAct...
646
1,960
<gh_stars>1000+ import os import sys sys.path.append(os.path.dirname(os.path.dirname(os.path.dirname(__file__)))) import pytest from rl_coach.spaces import DiscreteActionSpace, BoxActionSpace from rl_coach.exploration_policies.additive_noise import AdditiveNoise from rl_coach.schedules import LinearSchedule import nu...
547
27,066
package com.xkcoding.oauth.entity; import lombok.Data; import org.springframework.security.core.GrantedAuthority; import org.springframework.security.oauth2.provider.ClientDetails; import org.springframework.security.oauth2.provider.client.BaseClientDetails; import javax.persistence.*; import java.util.*; import java...
2,259
2,329
<reponame>alimate/spring-loaded<filename>testdata/src/main/java/reflection/classmodifiers/ClassTarget.java package reflection.classmodifiers; public class ClassTarget { }
53
425
<reponame>neilcarpenter/codedoodles { "name": "particle-stream", "author": { "name": "zadvorsky", "github": "zadvorsky", "website": "http://www.zadvorsky.com", "twitter": "zadvorsky" }, "description": "THREE.js shader based animation system", "tags": [ "three....
296
1,473
<reponame>awesome-archive/recompiler #pragma once namespace platform { } // platform
31
1,045
<reponame>ironmussa/Optimus from abc import abstractmethod from functools import reduce from optimus.helpers.columns import parse_columns, name_col from optimus.helpers.core import val_to_list from optimus.helpers.raiseit import RaiseIt from optimus.infer import is_dict from optimus.engines.base.columns import BaseCo...
1,495
678
<gh_stars>100-1000 /** * This header is generated by class-dump-z 0.2b. * * Source: /System/Library/PrivateFrameworks/PhotoLibraryServices.framework/PhotoLibraryServices */ #import <PhotoLibraryServices/PLPhotoBakedThumbnailsDelegate.h> #import <PhotoLibraryServices/PhotoLibraryServices-Structs.h> #import <PhotoLi...
584
454
<gh_stars>100-1000 package io.vertx.up.uca.jooq; import io.vertx.core.Future; import io.vertx.core.json.JsonObject; import io.vertx.up.eon.Values; import org.jooq.Query; import org.jooq.UpdateConditionStep; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import java.util.Objects; /** * @...
1,330
385
<filename>autodl/nas_201_api/api_201.py ##################################################### # Copyright (c) <NAME> [GitHub D-X-Y], 2019.08 # ############################################################################################ # NAS-Bench-201: Extending the Scope of Reproducible Neural Architecture Search, ICL...
6,323
551
<filename>Server/Source/Sandbox.cpp /* * Copyright (c) 2021 <NAME> * Licensed under MIT (https://github.com/apohl79/audiogridder/blob/master/COPYING) * * Author: <NAME> */ #include "Sandbox.hpp" #include "Server.hpp" namespace e47 { SandboxPeer::SandboxPeer(Server& server) : LogTagDelegate(&server), m_server(se...
960
653
<gh_stars>100-1000 // RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple %s -o %t.out // RUN: %RUN_ON_HOST %t.out //==---- host_image_accessor_read.cpp - SYCL host image accessor check ----==// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for lic...
1,536
777
// Copyright (c) 2013 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "media/audio/mac/audio_device_listener_mac.h" #include <CoreAudio/AudioHardware.h> #include <memory> #include "base/bind.h" #include "base...
1,065
1,545
/** * 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...
395
575
// 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. #include "components/media_router/browser/media_router_dialog_controller.h" #include <utility> #include "base/no_destructor.h" #include "components/medi...
1,490
1,293
<reponame>qkum/mentalist<gh_stars>1000+ import mentalist.controller mentalist.controller.main()
33
4,716
<reponame>meramsey/xonsh """Test module xonsh/cli_utils.py""" from xonsh import cli_utils def func_with_doc(param: str, multi: str) -> str: """func doc multi-line Parameters ---------- param param doc multi param doc multi line Returns ------- str ...
606
2,179
<filename>shardingsphere-mode/shardingsphere-mode-type/shardingsphere-cluster-mode/shardingsphere-cluster-mode-repository/shardingsphere-cluster-mode-repository-provider/shardingsphere-cluster-mode-repository-zookeeper-curator/src/main/java/org/apache/shardingsphere/mode/repository/cluster/zookeeper/listener/SessionCon...
1,207
5,169
<gh_stars>1000+ { "name": "Bootstrap", "version": "0.1.5", "summary": "Bootstrap is a library for Robusta.", "description": "Bootstrap is a library for Robusta Bootstrap is a library for Robusta.", "homepage": "https://gitlab.com/apptech/Bootstrap", "license": { "type": "Robusta", "file": "LICENSE" ...
223
356
<filename>pypy3.7/module/_multiprocess/test/test_ztranslation.py from pypy.objspace.fake.checkmodule import checkmodule def test_checkmodule(): checkmodule('_multiprocess')
63
3,139
/* * Copyright (c) 2009-2021 jMonkeyEngine * 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 ...
1,368
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. #include "third_party/blink/renderer/modules/gamepad/gamepad_pose.h" namespace blink { namespace { DOMFloat32Array* VecToFloat32Array(const device::Gam...
685
1,511
<gh_stars>1000+ /* * gzlog.c * Copyright (C) 2004, 2008 <NAME>, all rights reserved * For conditions of distribution and use, see copyright notice in gzlog.h * version 2.0, 25 Apr 2008 */
61
1,760
<gh_stars>1000+ /* ID: bqi3431 PROG: palsquare LANG: C++11 */ #include <iostream> #include <fstream> #include <vector> #include <ext/pb_ds/assoc_container.hpp> #include <ext/pb_ds/tree_policy.hpp> using namespace std; using namespace __gnu_pbds; typedef long long ll; typedef vector<int> vi; typedef pair<int, int> ...
591
1,455
/* * Copyright 2016-2021 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...
8,859
872
#!/usr/bin/python3 """ Given a sorted array, two integers k and x, find the k closest elements to x in the array. The result should also be sorted in ascending order. If there is a tie, the smaller elements are always preferred. Example 1: Input: [1,2,3,4,5], k=4, x=3 Output: [1,2,3,4] Example 2: Input: [1,2,3,4,5], k...
1,100
868
<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 "L...
5,256
542
{ "api_id": "cloudresourcemanager.googleapis.com", "client_documentation": "https://googleapis.dev/ruby/google-cloud-resource_manager-v3/latest", "distribution_name": "google-cloud-resource_manager-v3", "language": "ruby", "name": "cloudresourcemanager", "name_pretty": "Resource Manager V3 API",...
356
1,013
/*! @authors <NAME> (<EMAIL>) @date 2014-2020 @copyright BSD-3-Clause */ #pragma once #include <pyclustering/cluster/cluster_data.hpp> namespace pyclustering { namespace clst { using somsc_data = cluster_data; } }
125
2,206
/* ****************************************************************************** * * * This program and the accompanying materials are made available under the * terms of the Apache License, Version 2.0 which is available at * https://www.apache.org/licenses/LICENSE-2.0. * * See the NOTICE file distributed wit...
3,352
463
/* * redpen: a text inspection tool * Copyright (c) 2014-2015 Recruit Technologies Co., Ltd. and contributors * (see CONTRIBUTORS.md) * <p> * 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 a...
6,368
1,208
<filename>current_data.py import pandas as pd import os import re import time import requests import numpy as np from tqdm import tqdm from utils import data_string_to_float # The path to your fundamental data statspath = "intraQuarter/_KeyStats/" # These are the features that will be parsed features = [ # Valuation...
2,036
2,199
/* * Copyright (c) 2016—2021 <NAME> and individual 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 require...
1,322
1,986
#include <esp_partition.h> const char *partitionSubtypeToString(esp_partition_subtype_t subtype) { switch(subtype) { case ESP_PARTITION_SUBTYPE_APP_FACTORY: return "APP_FACTORY"; case ESP_PARTITION_SUBTYPE_APP_OTA_0: return "APP_OTA_0"; case ESP_PARTITION_SUBTYPE_APP_OTA_1: return "APP_OTA_1"; case ESP_PART...
748
362
#include "labor.h" #include <QSettings> Labor::Labor(QSettings &s, QObject *parent) : QObject(parent) , name(s.value("name", "UNKNOWN LABOR").toString()) , labor_id(s.value("id", -1).toInt()) , skill_id(s.value("skill", -1).toInt()) , requires_equipment(s.value("requires_equipment", false).toBool(...
305
739
{ "name": "<NAME>", "img": "https://avatars1.githubusercontent.com/u/39929494?v=4", "email":"", "links": { "website": "https://amberpittman.com", "linkedin": "https://www.linkedin.com/in/amber-pittman/", "github": "https://github.com/Amber-Pittman" }, "jobTitle": "Software Developer", "locatio...
169
14,425
<reponame>bzhaoopenstack/hadoop<gh_stars>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 Apac...
578
421
//<snippet1> // Example for the Math::E field. using namespace System; // Approximate E with a power series. void CalcPowerSeries() { double factorial = 1.0; double PS = 0.0; // Stop iterating when the series converges, // and prevent a runaway process. for ( int n = 0; n < 999 && Math...
1,329
448
/* Given an unsorted array on integers, find the length of its largest sub-sequence such that it is increasing at first and then decreasing and the number of elements in increasing and decreasing parts should be the same. Example: Input: 1 2 3 2 1 4 5 6 7 19 15 12 10 9 Output: 9 Explanation: Longest Increasing and D...
688
2,542
<reponame>gridgentoo/ServiceFabricAzure<filename>src/prod/src/Reliability/Failover/common/FailoverManagerId.cpp // ------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License (MIT). See License.txt in the repo root for lice...
603
1,816
<reponame>dancernetworks/open-vm-tools<gh_stars>1000+ /********************************************************* * Copyright (C) 1998-2021 VMware, Inc. All rights reserved. * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU Lesser General Public License as publi...
31,436
1,056
<filename>enterprise/web.beans/test/unit/src/org/netbeans/modules/web/beans/xdm/model/SyncUpdateTest.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 owner...
1,478
7,464
<reponame>mz1999/vjtools package com.vip.vjtools.vjmap.utils; public class FormatUtils { private static final long BYTE_UNIT_KILO = 1024; private static final long BYTE_UNIT_MEGA = BYTE_UNIT_KILO * 1024; private static final long BYTE_UNIT_GIGA = BYTE_UNIT_MEGA * 1024; private static final long BYTE_UNIT_TERA = B...
430
321
import tweetrel tweetrel.send_tweet()
13
789
""" utils.py Contains some useful functions for creating models """ from __future__ import absolute_import, division, print_function import numpy as np import os import pickle import random import tensorflow as tf import tensorflow.contrib.slim as slim import threading import concurrent.futures import init_...
2,707
963
<gh_stars>100-1000 package com.vladmihalcea.book.hpjp.hibernate.query.hierarchical; /** * @author <NAME> */ public enum Status { APPROVED, PENDING }
72
997
#include "transpose.h" /* This file is for matrix transposition */ extern void PQCLEAN_MCELIECE348864_AVX_transpose_64x64_asm(uint64_t *); extern void PQCLEAN_MCELIECE348864_AVX_transpose_64x256_sp_asm(vec256 *); void PQCLEAN_MCELIECE348864_AVX_transpose_64x64(uint64_t *in) { PQCLEAN_MCELIECE348864_AVX_transp...
236
2,542
// ------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License (MIT). See License.txt in the repo root for license information. // ------------------------------------------------------------ #include "stdafx.h" namespace...
1,340
714
<reponame>moonrisewarrior/dwitter # -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('dwitter', '0013_auto_20170305_1830'), ] operations = [ migrations.AlterField( ...
290
1,848
<filename>tests/headers/const_array.h extern const int foo[1]; extern int bar[1];
30
327
/* * LinuxNetwork.cpp * * Author: ROBOTIS * */ #include <iostream> #include <string.h> #include <errno.h> #include <fcntl.h> #include <sstream> #include "LinuxNetwork.h" using namespace Robot; using namespace std; LinuxSocket::LinuxSocket() : m_sock ( -1 ) { memset ( &m_addr, 0, sizeof ( m_addr ) ); ...
2,678
335
{ "word": "Forerunner", "definitions": [ "A person or thing that precedes the coming or development of someone or something else.", "A sign or warning of something to come.", "An advance messenger." ], "parts-of-speech": "Noun" }
100
2,829
<gh_stars>1000+ # Copyright 2020 Alibaba Group Holding Limited. 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 # # Unl...
1,861
11,094
from HelperClass2.NeuralNet_2_2 import * from HelperClass2.Visualizer_1_1 import * from torch.utils.data import TensorDataset, DataLoader import numpy as np import matplotlib.pyplot as plt import torch.nn as nn import torch.nn.functional as F import torch from torch.optim import Adam import torch.nn.init as init import...
1,421
1,646
package com.litesuits.orm.db.model; import com.litesuits.orm.db.enums.AssignType; import java.lang.reflect.Field; /** * 主键 * * @author mty * @date 2013-6-9上午1:09:33 */ public class Primarykey extends Property { private static final long serialVersionUID = 2304252505493855513L; public A...
353
1,375
import unittest from nose.tools import (assert_raises) from sknn.nn import NeuralNetwork as NN class TestAbstractNeuralNetwork(unittest.TestCase): def test_SetupRaisesException(self): assert_raises(NotImplementedError, NN, layers=[])
85
4,036
import sys # name:xfail_foo def xfail_foo(): print('xfail_foo') # name:xfail_bar def xfail_bar(): print('xfail_bar') def xfail_baz(): print('xfail_baz') # name:xfail_lambda xfail_lambda = lambda: print('xfail_lambda') if len(sys.argv) >= 2 and not sys.argv[1] in ['0', 'False', 'false']: func = xfai...
310
634
<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. Th...
1,853
790
<filename>google/appengine/_internal/graphy/bar_chart.py<gh_stars>100-1000 #!/usr/bin/python2.4 # # Copyright 2008 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://...
2,147
3,102
// NeedsGNUInlineAsm.h
11
1,968
/* win32: audio output for Windows 32bit copyright ?-2007 by the mpg123 project - free software under the terms of the LGPL 2.1 see COPYING and AUTHORS files in distribution or http://mpg123.org initially written (as it seems) by <NAME> rewrite of basic functionality for callback-less and properly ringbuffered o...
2,588
831
/* * Copyright (C) 2016 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...
1,666
335
/* * 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 * * Unless required by ap...
1,221
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.resourcemanager.avs.fluent.models; import com.azure.core.annotation.Immutable; import com.azure.core.util.logging.ClientLogger; ...
639
1,808
#include "commandline/ValidatorOption.h" #include "commandline/Parser.h" using namespace commandline; bool ValidatorOption::validate(Parser & parser, QString & value) { if (parser.isSet(*this) || !defaultValues().empty()) { int pos = 0; validator->fixup(value); return validator->validate(value, pos) == QValid...
185
480
#include <iostream> #include <string> #include <algorithm> using namespace std; template <typename It> It remove_multi_whitespace(It it, It end_it) { return unique(it, end_it, [](const auto &a, const auto &b) { return isspace(a) && isspace(b); }); } int main() { string s {"fooo bar \t ba...
203
3,428
{"id":"01082","group":"easy-ham-1","checksum":{"type":"MD5","value":"39917c590e0204c5de0142acd3fb3d08"},"text":"From <EMAIL> Mon Sep 9 18:01:26 2002\nReturn-Path: <<EMAIL>>\nDelivered-To: yyyy@localhost.spamassassin.taint.org\nReceived: from localhost (jalapeno [127.0.0.1])\n\tby jmason.org (Postfix) with ESMTP id D0...
1,551
713
package org.infinispan.commons.test.skip; /** * Operating system family. * * Technically Solaris is UNIX, but for test purposes we are classifying it as a separate family. * * @since 9.2 */ public enum OS { UNIX, WINDOWS, SOLARIS, LINUX; public static OS getCurrentOs() { String os = System.getProper...
245
6,036
<gh_stars>1000+ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. #include "core/platform/env.h" #include <fstream> #include "gtest/gtest.h" #include "core/common/path_string.h" #include "test/util/include/asserts.h" namespace onnxruntime { namespace test { TEST(Platf...
351
938
<filename>src/main/resources/assets/tconstruct/book/encyclopedia/en_us/defense/protection/turtle_shell.json { "modifier_id": "tconstruct:turtle_shell", "text": [ { "text": "Grants +8% resistance when underwater. Caps at 80% across the whole set, or 10 levels." }, { "text": "Increases swim sp...
182
501
<reponame>siklu/mina-sshd /* * 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 ...
1,248
1,968
<filename>platform/android/ndk/Rtt_AndroidEventSound.cpp<gh_stars>1000+ ////////////////////////////////////////////////////////////////////////////// // // This file is part of the Corona game engine. // For overview and more information on licensing please refer to README.md // Home page: https://github.com/coronala...
566
778
#include "Math3D.h" float4 float4::operator-(float4 v1) { float4 r; r.x = x-v1.x; r.y = y-v1.y; r.z = z-v1.z; r.w = w-v1.w; return r; } float4 float4::operator+(float4 v1) { float4 r; r.x = x+v1.x; r.y = y+v1.y; r.z = z+v1.z; r.w = w+v1.w; return r; ...
3,463
769
<gh_stars>100-1000 # 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 from __future__ import annotations import mlir.ir as ir from typing import Dict, Tuple, Union # ...
882
432
<reponame>lambdaxymox/DragonFlyBSD /*- * Copyright (c) 2009, Sun Microsystems, Inc. * 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 ...
1,291
841
/* * Copyright (c) 2016 <NAME> * Copyright (c) 2013-2016 the Civetweb developers * Copyright (c) 2004-2013 <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...
2,034
799
<filename>Packs/F5/Integrations/F5_ASM/test_data/list_xml_profile.json<gh_stars>100-1000 { "_kind": "tm:asm:policies:xml-profiles:xml-profilecollectionstate", "selfLink": "https://localhost/mgmt/tm/asm/policies/0000/xml-profiles?ver=15.1.0", "totalItems": 1, "items": [ { "defenseAttributes": { ...
830
880
<gh_stars>100-1000 /** * Copyright 2019 <NAME> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law...
509
8,027
package com.example.xcompile; public class Baz { public String banana() { return Bar.banana(); } }
38