max_stars_count
int64
301
224k
text
stringlengths
6
1.05M
token_count
int64
3
727k
2,151
// Copyright 2010 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 "cc/layers/picture_image_layer.h" #include <stddef.h> #include "cc/base/math_util.h" #include "cc/layers/picture_layer_impl.h" #include "cc/pai...
1,282
736
<reponame>bigbrobro/C3<gh_stars>100-1000 #pragma once #include <string_view> #include <type_traits> #include <utility> #include <functional> #include <array> #include <vector> #include <tuple> #ifndef OBF # define OBF(x) x #endif // !OBF namespace FSecure::Utils { /// Prevents compiler from optimizing out call. //...
4,146
403
/* * Copyright (c) 2017, MegaEase * 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 ap...
1,016
1,253
<gh_stars>1000+ { "http://simon.html5.org/test/validator/html4/unquoted-attr.html": [ { "firstColumn": 144, "firstLine": 1, "lastColumn": 154, "lastLine": 1, "message": "Non-name character in an unquoted attribute value. (This is an HTML4-only error.)" } ] }
140
335
<gh_stars>100-1000 { "word": "Taxis", "definitions": [ "The restoration of displaced bones or organs by manual pressure alone.", "A motion or orientation of a cell, organism, or part in response to an external stimulus.", "The systematic arrangement of linguistic units (phonemes, morphem...
137
350
package com.zfdang.touchhelper.ui.home; import android.Manifest; import android.content.Context; import android.content.Intent; import android.content.pm.PackageManager; import android.content.pm.ResolveInfo; import android.graphics.drawable.Drawable; import android.net.Uri; import android.os.Build; import android.os....
2,212
333
/** * Copyright (c) 2009 Carnegie Mellon University. * 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...
736
82,518
# Copyright 2021 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,996
2,996
// Copyright 2021 The Terasology Foundation // SPDX-License-Identifier: Apache-2.0 package org.terasology.editor.ui; import org.lwjgl.opengl.awt.AWTGLCanvas; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import javax.swing.JLabel; import javax.swing.JPanel; import javax.swing.SwingConstants; import java.aw...
432
518
<filename>manifests/definitions/36.json { "name": "Amplitude", "category": "Marketing & Analytics", "start_url": "https://analytics.amplitude.com", "icons": [ { "src": "https://cdn.filestackcontent.com/ScHlH8UTXmkA1JqqNe8l", "platform": "browserx" } ], "theme_color": "#00A7CF", "scope"...
175
12,278
/////////////////////////////////////////////////////////////////////////////// // Copyright 2011 <NAME>. Distributed under the Boost // Software License, Version 1.0. (See accompanying file // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) #ifndef BOOST_MATH_BIG_NUM_BASE_HPP #define BOOST_MATH_BI...
23,469
690
package com.artemis.utils; /** * A non-modifiable intbag. */ public interface ImmutableIntBag<E> { /** * Returns the element at the specified position in Bag. * * @param index index of the element to return * @return the element at the specified position in bag */ int get(int inde...
287
4,262
<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 Apache License, Version 2.0 * (the "Lic...
1,068
1,851
// Copyright © 2016 <NAME>. All rights reserved. // // Permission is hereby granted, free of charge, to any person obtaining // a copy of this software and associated documentation files (the // "Software"), to deal in the Software without restriction, including // without limitation the rights to use, copy, modif...
3,265
2,231
// Copyright 2020 The Defold Foundation // Licensed under the Defold License version 1.0 (the "License"); you may not use // this file except in compliance with the License. // // You may obtain a copy of the License, together with FAQs at // https://www.defold.com/license // // Unless required by applicable law or agr...
14,105
310
<gh_stars>100-1000 { "name": "FlashDevelop", "description": "A free, open source ActionScript/Flex IDE.", "url": "http://www.flashdevelop.org/" }
54
676
package core; public class GithubEnterprise implements ApiClient { private String url; public GithubEnterprise(String url) { if (url == null) { throw new NullPointerException(); } if (url.isEmpty()) { throw new IllegalArgumentException(); } if (url.startsWith("http://")) { u...
462
937
<gh_stars>100-1000 package cyclops.data.talk; import org.junit.Test; import java.util.ArrayList; import java.util.Collections; import java.util.List; public class UnmodifiableTest { int CORE_USER = 0; public void unmod(){ List<Integer> list = new ArrayList<>(); list.add(10); list.add...
235
1,467
/* * Copyright 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 * * or in the "license" file ...
602
744
/* Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this f...
5,474
581
<reponame>flix-/phasar int foo(int a, int b) { return a + b; } int bar(int a, int b) { return a * a; } int (*f) (int, int) = nullptr; int main() { int result; f = &foo; result = f(1, 2); f = &bar; result = f(3, 4); return 0; }
122
411
<filename>ssseg/modules/backbones/vit.py ''' Function: Implementation of ViT Author: <NAME> ''' import os import math import torch import torch.nn as nn import torch.nn.functional as F import torch.utils.model_zoo as model_zoo import torch.utils.checkpoint as checkpoint from .bricks import BuildNormalization, B...
5,973
1,851
<filename>glm/glm/gtc/vec1.inl /// @ref gtc_vec1 /// @file glm/gtc/vec1.inl
44
1,056
<filename>java/java.editor.base/test/unit/data/org/netbeans/modules/java/editor/base/semantic/data/MemberSelect.java package test; import javax.swing.text.Document; public class MemberSelect { private javax.swing.text.Document getDocument(javax.swing.text.Document doc) { javax.swing.text.Document d =...
207
476
/* * 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...
1,738
327
<reponame>Meteo-Concept/cpp-driver /* Copyright (c) DataStax, 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 applica...
1,337
777
<gh_stars>100-1000 // Copyright 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. #ifndef IOS_CHROME_BROWSER_TABS_TAB_H_ #define IOS_CHROME_BROWSER_TABS_TAB_H_ #import <UIKit/UIKit.h> #include <memory> #include <vec...
4,286
13,006
/******************************************************************************* * Copyright (c) 2015-2018 Skymind, Inc. * * 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. * *...
3,868
325
<filename>group-function/command.c /* (C) 2009-2021, <NAME>, Harlingen, The Netherlands. This file is part of CANboat. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/li...
1,835
3,058
<reponame>Mercesa/The-Forge ///* // * Copyright (c) 2018-2021 The Forge Interactive Inc. // * // * This file is part of The-Forge // * (see https://github.com/ConfettiFX/The-Forge). // * // * Licensed to the Apache Software Foundation (ASF) under one // * or more contributor license agreements. See the NOTICE file // ...
8,210
413
<reponame>CatKang/zeppelin // Copyright 2017 Qihoo // // 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 applicabl...
1,110
707
// Copyright (c) FIRST and other WPILib contributors. // Open Source Software; you can modify and/or share it under the terms of // the WPILib BSD license file in the root directory of this project. package edu.wpi.first.networktables; /** Network table data types. */ public enum NetworkTableType { kUnassigned(0), ...
509
399
<filename>src/main/java/org/cryptocoinpartners/schema/SpecificOrderFactory.java package org.cryptocoinpartners.schema; import javax.annotation.Nullable; import org.joda.time.Instant; public interface SpecificOrderFactory { //SpecificOrder create(Instant time, Market market, BigDecimal volume, String comment); ...
502
604
<filename>tests/function_tests.c #include "../src/std_includes.h" #include "../src/matrix.h" #include "../src/function.h" int main(){ // test sigmoid float k; for (k = -10.0; k < 30.0; k += 2){ assert(sigmoidFunc(k) >= 0 && sigmoidFunc(k) <= 1); } // test relu for (k = -10.0; k < 30.0;...
454
14,668
<filename>chrome/browser/privacy_budget/identifiability_study_group_settings_unittest.cc // 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 "chrome/browser/privacy_budget/identifiability_study_gro...
630
14,443
<gh_stars>1000+ /* * Copyright 2020 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 requ...
666
675
<gh_stars>100-1000 /* * Copyright 2019 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 License at * * http://www.apache.org/licenses/LICENSE-2.0 * * U...
767
794
<reponame>xxoolm/Thanox-1<filename>android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/util/function/BiPredicate.java package github.tornaco.android.thanos.core.util.function; public interface BiPredicate<T, U> { boolean test(T var1, U var2); }
100
634
<filename>platform/platform-api/src/com/intellij/openapi/actionSystem/Constraints.java /* * Copyright 2000-2009 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 obtain a copy of the License at * * htt...
594
14,886
// Tencent is pleased to support the open source community by making ncnn available. // // Copyright (C) 2021 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 copy ...
8,213
386
from canvasapi.canvas_object import CanvasObject class PairingCode(CanvasObject): def __str__(self): return "{} - {}".format(self.user_id, self.code)
61
372
<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,478
6,992
<filename>web/src/main/java/org/springframework/security/web/server/header/CrossOriginOpenerPolicyServerHttpHeadersWriter.java /* * Copyright 2002-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 Licens...
780
488
<reponame>maurizioabba/rose /* * Copyright (c) 2007 <NAME> University. * All rights reserved. * Permission to use this software and its documentation for any purpose is hereby granted, * provided that the above copyright notice appear and that both that copyright notice and * this permission notice appear in supp...
1,146
6,098
<reponame>ahmedengu/h2o-3 from builtins import range import sys, os sys.path.insert(1,"../../") import h2o from tests import pyunit_utils from h2o.estimators.pca import H2OPrincipalComponentAnalysisEstimator def pca_mojo(): h2o.remove_all() NTESTROWS = 200 # number of test dataset rows df = pyunit_utils...
814
1,531
package com.sleekbyte.tailor.listeners.whitespace; import com.sleekbyte.tailor.antlr.SwiftBaseListener; import com.sleekbyte.tailor.antlr.SwiftParser; import com.sleekbyte.tailor.antlr.SwiftParser.ClosureParameterClauseContext; import com.sleekbyte.tailor.antlr.SwiftParser.FunctionNameContext; import com.sleekbyte.tai...
1,229
2,109
<filename>src/opnsense/scripts/interfaces/list_sockstat.py #!/usr/local/bin/python3 """ Copyright (c) 2020 <NAME> <<EMAIL>> 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. Redist...
1,160
3,372
/* * Copyright 2016-2021 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 * * or in the "licen...
13,333
1,338
<reponame>Kirishikesan/haiku /* * Copyright (C) 1999-2000 Free Software Foundation, Inc. * This file is part of the GNU LIBICONV Library. * * The GNU LIBICONV Library is free software; you can redistribute it * and/or modify it under the terms of the GNU Library General Public * License as published by the Free S...
36,645
666
<filename>scca-rest/src/main/java/com/didispace/scca/rest/config/SccaErrorAttributes.java package com.didispace.scca.rest.config; import org.springframework.boot.autoconfigure.web.DefaultErrorAttributes; import org.springframework.stereotype.Component; import org.springframework.web.context.request.RequestAttributes; ...
286
494
<filename>astyanax-cql/src/main/java/com/netflix/astyanax/cql/JavaDriverConnectionPoolMonitorImpl.java /** * Copyright 2013 Netflix, 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 ...
3,272
343
class JarCallerTest { public static void main(String[] args) { new JarCalleeTest("TEST"); } }
51
473
<filename>src/core/global.c<gh_stars>100-1000 /* Copyright (c) 2009-2016, <NAME> All rights reserved. This file is part of Elemental and is under the BSD 2-Clause License, which can be found in the LICENSE file in the root directory, or at http://opensource.org/licenses/BSD-2-Clause */ #include <El-li...
148
407
package com.alibaba.tesla.appmanager.domain.req.deploy; import com.alibaba.tesla.appmanager.common.BaseRequest; import lombok.AllArgsConstructor; import lombok.Data; import lombok.NoArgsConstructor; import lombok.experimental.SuperBuilder; import java.util.ArrayList; import java.util.List; /** * 拉取 Deploy App 部署工单的...
571
1,780
<reponame>myAccountgithub952/seata-samples package io.seata.samples.tcc.dubbo.starter; import io.seata.samples.jit.AbstractStarter; import io.seata.samples.jit.ApplicationKeeper; import org.springframework.context.support.ClassPathXmlApplicationContext; /** * The type Dubbo tcc provider starter. * * @author zhangse...
286
6,034
<filename>product-service-project/product-service-app/src/main/java/cn/iocoder/mall/productservice/service/attr/bo/ProductAttrValueListQueryBO.java package cn.iocoder.mall.productservice.service.attr.bo; import lombok.Data; import lombok.experimental.Accessors; import java.util.List; /** * 商品规格值的列表查询条件 BO */ @Data...
266
371
/* * Copyright (c) 2013-2021 Cinchapi 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...
723
473
<filename>src/blas_like/level2/Trsv/LN.hpp /* Copyright (c) 2009-2016, <NAME> All rights reserved. This file is part of Elemental and is under the BSD 2-Clause License, which can be found in the LICENSE file in the root directory, or at http://opensource.org/licenses/BSD-2-Clause */ namespace El { na...
2,087
643
<gh_stars>100-1000 /* Copyright © 2011 MLstate This file is part of Opa. Opa is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License, version 3, as published by the Free Software Foundation. Opa is distributed in the hope that it wil...
1,005
348
{"nom":"Saint-Martin-Terressus","circ":"1ère circonscription","dpt":"Haute-Vienne","inscrits":405,"abs":197,"votants":208,"blancs":3,"nuls":17,"exp":188,"res":[{"nuance":"FI","nom":"<NAME>","voix":103},{"nuance":"REM","nom":"Mme <NAME>","voix":85}]}
96
1,220
{"AW":"Aruba","AF":"Afghanistan","AO":"Anngolaa","AI":"Anguilla","AX":"Åland Islands","AL":"Albaniya","AD":"Anndoora","AE":"United Arab Emirates","AR":"Argentina","AM":"Armaaniya","AS":"American Samoa","AQ":"Antarctica","TF":"French Southern Territories","AG":"Antigua and Barbuda","AU":"Australia","AT":"Otiris","AZ":"A...
1,651
807
<gh_stars>100-1000 /* * Copyright 2018 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 require...
1,512
1,253
<gh_stars>1000+ import math # The code below calculates N-th fibonacci number by O(1) # Such speed is achieved by using the Binet's formula which is # fib(n) = (phi^n - psi^n) / sqrt(5) # where # phi = (1 + sqrt(5)) / 2 and psi = (1 - sqrt(5)) / 2 # But in code we compute fib(n) as # fib(n) = round(phi^n) / sqrt(5) # ...
253
852
#ifndef RKAdaptiveSolver_H #define RKAdaptiveSolver_H #include "FWCore/Utilities/interface/Visibility.h" #include "RKSolver.h" // // A Variable Order Runge-Kutta Method for Initial Value Problems with ... // www.elegio.it/mc2/rk/doc/p201-cash-karp.pdf template <typename T, template <typename, int> class StepWithPrec,...
378
1,773
/* * The MIT License * * Copyright (c) 2009-2021 PrimeTek * * 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...
1,244
1,562
/************************************************************************* * * Copyright 2019 Realm 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/lice...
1,142
879
<filename>test/src/test/java/org/zstack/test/tag/TestQemuAgentSystemTag.java package org.zstack.test.tag; import junit.framework.Assert; import org.junit.Before; import org.junit.Test; import org.zstack.core.cloudbus.CloudBus; import org.zstack.core.componentloader.ComponentLoader; import org.zstack.core.db.DatabaseFa...
2,416
452
#include "dsp.h" #include "formantosc.h" #include <math.h> using namespace daisysp; void FormantOscillator::Init(float sample_rate) { carrier_phase_ = 0.0f; formant_phase_ = 0.0f; next_sample_ = 0.0f; carrier_frequency_ = 0.0f; formant_frequency_ = 100.f; phase_shift_ = 0.0f; sam...
1,116
1,449
#include "monitor-table-model.h" #include <QIcon> #include <QStringList> #include <QtMath> #include <QVariant> #include <utility> #include "monitoring-center.h" #include "models/monitor.h" #include "models/monitor-manager.h" #include "models/site.h" MonitorTableModel::MonitorTableModel(MonitorManager *monitorManager,...
1,941
1,251
<filename>blingfirecompile.library/src/FASubstRules2Regexp.cpp /** * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. */ #include "blingfire-compile_src_pch.h" #include "FAConfig.h" #include "FASubstRules2Regexp.h" #include "FARegexpTree.h" #include "FATagSet.h"...
6,712
531
/* Copyright 2007 nVidia, Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software...
806
804
<gh_stars>100-1000 package com.liyu.fakeweather.widgets; import android.os.Bundle; import android.support.annotation.Nullable; import android.support.v4.app.DialogFragment; import android.text.TextUtils; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget....
642
1,125
/* * Licensed to Elasticsearch under one or more contributor * license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright * ownership. Elasticsearch licenses this file to you under * the Apache License, Version 2.0 (the "License"); you may * not use this fi...
1,772
13,648
def gen(): yield 1 yield 2 yield 3 yield 4 def gen2(): yield -1 print((yield from gen())) yield 10 yield 11 g = gen2() print(next(g)) print(next(g)) g.close() try: print(next(g)) except StopIteration: print("StopIteration") # Now variation of same test, but with leaf generato...
882
374
<gh_stars>100-1000 ! Copyright 1998-2019 Lawrence Livermore National Security, LLC and other ! HYPRE Project Developers. See the top-level COPYRIGHT file for details. ! ! SPDX-License-Identifier: (Apache-2.0 OR MIT) ! -*- fortran -*- !************************************************************************...
487
474
<filename>android/videolib/src/main/cpp/native-lib.h // // Created by jason on 17/1/11. // #ifndef ANDROID_NATIVE_LIB_H #define ANDROID_NATIVE_LIB_H #include "jni.h" extern "C"{ jstring Java_com_thinkkeep_videolib_jni_EvilsLiveJni_testJni(JNIEnv* env, jobject instance); JNIEXPORT void JNICALL Java_...
1,030
577
# Copyright 2021 Kyoto University (<NAME>) # Apache 2.0 (http://www.apache.org/licenses/LICENSE-2.0) """Chunkwise attention in MoChA at training time.""" import logging import torch import torch.nn.functional as F logger = logging.getLogger(__name__) def soft_chunkwise_attention(alpha, u, mask, chunk_size, H_ca,...
1,592
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...
943
3,263
<gh_stars>1000+ #import <React/RCTViewManager.h> @interface AROpaqueImageViewManager : RCTViewManager @end
41
5,903
<reponame>zhouguangping/pentaho-kettle /*! * Copyright (C) 2017 by <NAME> : http://www.pentaho.com * * 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...
644
318
/* Copyright 2017 <NAME> <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 at <p> http://www.apache.org/licenses/LICENSE-2.0 <p> Unless required by applicable law or agreed to in wri...
5,031
2,338
int f(); int g() { return f(); }
14
12,366
// Copyright 2017 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 in...
1,200
746
{ "env": { "node": true }, "parserOptions": { "ecmaVersion": 6, "sourceType": "script" }, "plugins": ["eslint-plugin", "node", "prettier"], "extends": [ "eslint:recommended", "plugin:eslint-plugin/recommended", "plugin:node/recommended", "plugin:prettier/recommended" ], "rule...
298
640
/***************************************************************************** To be the apostrophe which changed "Impossible" into "I'm possible"! POC code of chapter 5.6 in book "Vulnerability Exploit and Analysis Technique" file name : bindshell.c author : failwest date : 2006.12.11 descriptio...
3,581
372
<reponame>Iniyethawe2/google-api-java-client-services /* * 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...
2,198
370
# -*- coding: UTF-8 -*- from past.builtins import basestring import json, datetime from .common import Formatter, Events, Position, ContextButton, Options3d, ResetZoomButton, DrillUpButton, Labels, \ Marker, Point, States, Tooltip, Title, JSfunction, MapObject, ColorObject, CSSObject, SVGObject, \ CommonObject,...
6,392
421
#using <System.dll> #using <System.Drawing.dll> #using <System.Windows.Forms.dll> #using <mscorlib.dll> using namespace System; using namespace System::Windows::Forms; using namespace System::Security::Permissions; namespace FontDialogOverride_cs { /// <summary> /// Summary description for FontDialo...
1,018
916
import struct import ModernGL from PyQt5 import QtOpenGL, QtWidgets class QGLControllerWidget(QtOpenGL.QGLWidget): def __init__(self): fmt = QtOpenGL.QGLFormat() fmt.setVersion(3, 3) fmt.setProfile(QtOpenGL.QGLFormat.CoreProfile) fmt.setSampleBuffers(True) super(QGLControl...
958
1,374
<gh_stars>1000+ /* * JSweet transpiler - http://www.jsweet.org * Copyright (C) 2015 CINCHEO SAS <<EMAIL>> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 3 of the License,...
46,621
303
#include <math.h> #ifndef HEADER_SGSCRIPT_H # define HEADER_SGSCRIPT_H <sgscript.h> #endif #include HEADER_SGSCRIPT_H #ifndef HEADER_SGS_UTIL_H # define HEADER_SGS_UTIL_H <sgs_util.h> #endif #include HEADER_SGS_UTIL_H /* disables trailing commas and other possibly useful things */ #define STRICT_JSON static void...
6,174
3,012
<reponame>akhakimo/edk2<filename>MdePkg/Include/Library/SmmLib.h /** @file Library class name: SmmLib SMM Library Services that abstracts both S/W SMI generation and detection. Copyright (c) 2007 - 2018, Intel Corporation. All rights reserved.<BR> SPDX-License-Identifier: BSD-2-Clause-Patent **/ #...
622
429
/** * (C) Copyright 2017-2021 Intel Corporation. * * SPDX-License-Identifier: BSD-2-Clause-Patent */ /** * rebuild: rebuild RPC protocol Definitions * * This is naturally shared by both dc_pool and ds_pool. The in and out data * structures must be absent of any compiler-generated paddings. */ #ifndef __REBUI...
1,307
903
/* * Copyright 2020 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 * * or in the "license" ...
1,196
1,132
<gh_stars>1000+ [ { "self": "https://issues.apache.org/jira/rest/api/2/resolution/1", "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, { "self": "https://issues.apache.org/jira/rest/api/2/resolution/2", "id": "2", "description": ...
1,683
28,056
package com.alibaba.fastjson.serializer; /** * @since 1.2.9 * */ public interface ContextValueFilter extends SerializeFilter { Object process(BeanContext context, Object object, String name, Object value); }
63
718
<gh_stars>100-1000 package j2html.tags; import j2html.Config; import j2html.attributes.Attribute; import j2html.rendering.TagBuilder; import j2html.rendering.FlatHtml; import j2html.rendering.HtmlBuilder; import j2html.rendering.IndentedHtml; import java.io.IOException; import java.util.ArrayList; import java.util.Li...
2,025
852
<gh_stars>100-1000 #include "DQM/HcalCommon/interface/ElectronicsMap.h" #include <iomanip> namespace hcaldqm { namespace electronicsmap { void ElectronicsMap::initialize(HcalElectronicsMap const *emap, ElectronicsMapType etype /*=fHcalElectronicsMap*/) { _etype = etype; _emap = emap; // if we a...
3,311
777
/* * Copyright (C) 2013 Google 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 copyright * notice, this list of conditio...
891
372
<gh_stars>100-1000 /* * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software ...
2,164