max_stars_count
int64
301
224k
text
stringlengths
6
1.05M
token_count
int64
3
727k
2,542
<filename>src/prod/src/api/wrappers/ComFabricChaosReportResult.cpp // ------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License (MIT). See License.txt in the repo root for license information. // -------------------------...
290
5,921
<filename>recipes/sota/2019/lm_corpus_and_PL_generation/postprocessing.py import re import string import sys import unicodedata import num2words import roman LOWER_LETTERS = set(string.ascii_lowercase) NUMBERS = set("0123456789,") ROMANS = set("IVXLCDM") ACCEPTED_LETTERS = set.union(LOWER_LETTERS, {"'"}) PUNCTUATION...
3,177
1,585
<reponame>abouteiller/ompi-aurelien /* * Copyright (C) by Argonne National Laboratory * See COPYRIGHT in top-level directory */ #include "ad_ime.h" #include "ad_ime_common.h" #include <assert.h> void ADIOI_IME_Close(ADIO_File fd, int *error_code) { static char myname[] = "ADIOI_IME_CLOSE"; int ret; ...
587
1,144
/** * */ package de.metas.email.process; import org.adempiere.service.ClientId; /* * #%L * de.metas.swat.base * %% * Copyright (C) 2015 metas GmbH * %% * 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 Sof...
1,921
358
<gh_stars>100-1000 /* * Copyright 2014 * Software Science and Technology Lab. * Department of Computer Science, Ritsumeikan University */ package org.jtool.macrorecorder.internal.recorder; import org.jtool.macrorecorder.Activator; import org.jtool.macrorecorder.recorder.Recorder; import org.jtool.macrorecorder...
3,422
365
/* Apache License, Version 2.0 */ #include "testing/testing.h" #include "BLI_math_base_safe.h" TEST(math_base, SafePowf) { EXPECT_FLOAT_EQ(safe_powf(4.0f, 3.0f), 64.0f); EXPECT_FLOAT_EQ(safe_powf(3.2f, 5.6f), 674.2793796f); EXPECT_FLOAT_EQ(safe_powf(4.0f, -2.0f), 0.0625f); EXPECT_FLOAT_EQ(safe_powf(6.0f, -3....
749
2,414
// Copyright (c) 2018 Baidu, 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 applic...
939
417
<gh_stars>100-1000 package org.springframework.data.jpa.datatables.model; import lombok.AccessLevel; import lombok.AllArgsConstructor; import lombok.Data; import lombok.NoArgsConstructor; import javax.persistence.Embeddable; @Data @AllArgsConstructor @NoArgsConstructor(access = AccessLevel.PRIVATE) @Embeddable class...
125
848
/* * Copyright 2019 Xilinx Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
8,395
465
<gh_stars>100-1000 # -*- 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....
8,626
2,293
/* op.c * * Copyright (C) 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, * 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 by <NAME> and others * * You may distribute under the terms of either the GNU General Public * License or the Artistic License, as specified in the README file. * ...
111,583
1,139
package com.journaldev.ConcurrentModificationException; import java.util.Iterator; import java.util.List; import java.util.Map; import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.CopyOnWriteArrayList; public class AvoidConcurrentModificationException { public static void main(String[] args) ...
505
2,487
<reponame>lichongbing/lswagger /* * Copyright (C) 2018 Zhejiang xiaominfo Technology CO.,LTD. * All rights reserved. * Official Web Site: http://www.xiaominfo.com. * Developer Web Site: http://open.xiaominfo.com. */ package com.github.xiaoymin.knife4j.aggre.eureka; import com.github.xiaoymin.knife4j.aggre.core.p...
323
415
<reponame>ImmanuelChavoya/launcher { "Comment": "comment -- rsa/1024 by putty mSca0DIwzWfKKJ2M", "FingerprintSHA256": "58lGdDXLCmuDugQr8Yzz+ixNewoMvGDWUTWOv6hKdFo", "FingerprintMD5": "02:d2:2a:fc:6f:22:f7:53:44:ee:cf:e2:57:65:60:19", "Type": "rsa", "Bits": 1024, "Encrypted": false, "command"...
285
348
{"nom":"Saint-Etienne-sur-Suippe","circ":"1ère circonscription","dpt":"Marne","inscrits":224,"abs":136,"votants":88,"blancs":6,"nuls":2,"exp":80,"res":[{"nuance":"DIV","nom":"<NAME>","voix":40},{"nuance":"LR","nom":"<NAME>","voix":40}]}
95
380
<reponame>trueinteractions/tint2<gh_stars>100-1000 #import <Foundation/Foundation.h> #import <Cocoa/Cocoa.h> @interface AppSchema : NSURLProtocol - (void)startLoading; - (void)stopLoading; + (BOOL)canInitWithRequest:(NSURLRequest *) request; + (NSURLRequest *)canonicalRequestForRequest:(NSURLRequest *)request; @end
114
764
<gh_stars>100-1000 #include <QStringList> #include "RequestHandler.h" class BlacklistedRequestHandler : public RequestHandler { public: BlacklistedRequestHandler(RequestHandler *next, QObject *parent = 0); virtual QNetworkReply* handleRequest( NetworkAccessManager *, QNetworkAccessManager::Opera...
208
17,275
package hudson; import org.kohsuke.accmod.Restricted; import org.kohsuke.accmod.restrictions.NoExternalUse; /** * @deprecated No longer does anything. Only here to prevent errors from old versions of tools like {@code JenkinsRule}. */ @Deprecated @Restricted(NoExternalUse.class) public class DNSMultiCast { pub...
110
2,305
<filename>nni/algorithms/compression/pytorch/quantization/observer_quantizer.py # Copyright (c) Microsoft Corporation. # Licensed under the MIT license. import logging from collections import defaultdict import torch from schema import Schema, And, Or, Optional from nni.compression.pytorch.utils.config_validation impo...
6,458
9,136
<filename>examples/Utils/b3Clock.cpp #include "b3Clock.h" template <class T> const T& b3ClockMin(const T& a, const T& b) { return a < b ? a : b; } #ifdef __CELLOS_LV2__ #include <sys/sys_time.h> #include <sys/time_util.h> #include <stdio.h> #endif #if defined(SUNOS) || defined(__SUNOS__) #include <stdio.h> #endif ...
1,973
381
package com.tngtech.jgiven.integration.spring.junit5.test; import com.tngtech.jgiven.integration.spring.junit5.config.TestSpringConfig; import org.junit.jupiter.api.Test; import org.springframework.test.context.ContextConfiguration; import com.tngtech.jgiven.integration.spring.junit5.SpringScenarioTest; @ContextConfi...
248
333
// // YSCWaveView.h // AnimationLearn // // Created by yushichao on 16/2/19. // Copyright © 2016年 yushichao. All rights reserved. // #import <UIKit/UIKit.h> typedef NS_ENUM(NSInteger, YSCWaveType) { YSCWaveTypePulse, YSCWaveTypeMovedVoice, YSCWaveTypeVoice, }; @interface YSCWaveView : UIView - (void...
183
799
{ "Blocked IP Addresses": [ "1.1.1.1" ], "Inactive Access keys": [ "<KEY>", "AKIAYDR3DU7NTAY2C3ZM" ], "Deleted Login Profiles": [ "bob-test" ] }
93
2,346
<reponame>spin-srl/traccar<filename>src/test/java/org/traccar/web/WebServerTest.java package org.traccar.web; import org.junit.Test; import javax.naming.Context; import javax.naming.InitialContext; import javax.naming.NamingException; import javax.sql.DataSource; import java.lang.reflect.Proxy; public class WebServe...
252
971
package com.ucar.datalink.writer.rdbms.load.impl; import com.ucar.datalink.biz.service.MediaSourceService; import com.ucar.datalink.biz.utils.DataLinkFactory; import com.ucar.datalink.common.errors.DatalinkException; import com.ucar.datalink.contract.log.rdbms.EventColumn; import com.ucar.datalink.contract.log.rdbms.E...
8,618
1,083
//===--- IDETypeIDs.h - IDE Type Ids ----------------------------*- C++ -*-===// // // This source file is part of the Swift.org open source project // // Copyright (c) 2019 Apple Inc. and the Swift project authors // Licensed under Apache License v2.0 with Runtime Library Exception // // See https://swift.org/LICENSE....
296
1,041
<reponame>casmir/ebean<filename>ebean-core/src/test/java/org/tests/model/onetoone/calcd/CalcDInput.java package org.tests.model.onetoone.calcd; import io.ebean.Model; import javax.persistence.*; @Entity @Table(name = "calcd_input") public class CalcDInput extends Model { @Id private Integer id; @OneToOne(opt...
301
12,679
<gh_stars>1000+ package me.zhyd.oauth.utils; import java.nio.charset.Charset; /** * @author yadong.zhang (yadong.zhang0415(a)gmail.com) * @since 1.0.0 */ public class StringUtils { public static boolean isEmpty(String str) { return null == str || str.isEmpty(); } public static boolean isNotEm...
1,096
463
<reponame>dentou/Hive2Hive package org.hive2hive.core.model; import java.io.Serializable; import java.util.Arrays; import org.hive2hive.core.security.HashUtil; /** * Holds meta data of a chunk in the DHT * * @author Seppi */ public class MetaChunk implements Serializable { private static final long serialVers...
600
1,738
<reponame>jeikabu/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 provid...
765
2,073
<reponame>thg-josh-coutinho/activemq /** * 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, Ve...
1,209
4,320
/* * Copyright (c) 2020 <NAME> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above copyright notice, this * list of conditions a...
1,266
1,652
<reponame>z131031231/x-pipe package com.ctrip.xpipe.redis.checker.healthcheck; /** * @author chen.zhu * <p> * Sep 06, 2018 */ public interface HealthCheckActionListener<T extends ActionContext, V extends HealthCheckAction> { void onAction(T t); boolean worksfor(ActionContext t); void stopWatch(V act...
115
22,779
<reponame>SubOptimal/dbeaver<filename>plugins/org.jkiss.dbeaver.ext.db2/src/org/jkiss/dbeaver/ext/db2/model/plan/DB2PlanOperator.java<gh_stars>1000+ /* * DBeaver - Universal Database Manager * Copyright (C) 2013-2015 <NAME> (<EMAIL>) * Copyright (C) 2010-2021 DBeaver Corp and others * * Licensed under the Apa...
3,258
589
package rocks.inspectit.shared.all.versioning; import org.testng.annotations.DataProvider; import org.testng.annotations.Test; import nl.jqno.equalsverifier.EqualsVerifier; import nl.jqno.equalsverifier.Warning; import rocks.inspectit.shared.all.testbase.TestBase; import rocks.inspectit.shared.all.version.InvalidVers...
453
1,014
[ "Diagnostics & Research", "Health Information Services", "Medical Instruments & Supplies" ]
38
1,780
<filename>include/cutlass/gemm/kernel/gemv.h /*************************************************************************************************** * Copyright (c) 2017-2021, NVIDIA CORPORATION. All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, are permitted * ...
3,217
4,283
/* * Copyright (c) 2008-2021, Hazelcast, 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 ...
944
435
{ "description": "Da qualche anno si parla sempre pi\u00f9 insistentemente di *Word Embedding*,\nidentificando cos\u00ec quell\u2019insieme di tecniche che tentano di modellare il\nlinguaggio umano creando una mappatura delle parole nel campo\nvettoriale. Come spesso accade per ambiti in rapido sviluppo, si \u00e8\na...
837
4,262
<reponame>rikvb/camel /* * 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 * (th...
556
623
<reponame>mamh-java/gerrit<gh_stars>100-1000 // Copyright (C) 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/LIC...
424
678
<filename>iOSOpenDev/frameworks/Preferences.framework/Headers/ProblemReportingTableView.h /** * This header is generated by class-dump-z 0.2b. * * Source: /System/Library/PrivateFrameworks/Preferences.framework/Preferences */ #import <Preferences/Preferences-Structs.h> #import <Preferences/XXUnknownSuperclass.h> ...
231
393
package com.liuscoding.springcloud.controller; import com.liuscoding.springcloud.entity.Payment; import com.liuscoding.springcloud.service.PaymentService; import com.liuscoding.springcloud.vo.CommonResult; import lombok.extern.slf4j.Slf4j; import org.springframework.beans.factory.annotation.Value; import org.springfra...
714
1,668
package org.elixir_lang.espec; import com.intellij.execution.Executor; import com.intellij.execution.configurations.RunConfiguration; import com.intellij.execution.testframework.sm.SMCustomMessagesParsing; import com.intellij.execution.testframework.sm.runner.OutputToGeneralTestEventsConverter; import com.intellij.exe...
426
1,895
package com.baomidou.mybatisplus.samples.enums.enums; import com.baomidou.mybatisplus.samples.enums.IBaseEnum; import lombok.Getter; /** * <p> * </p> * * @author yuxiaobin * @date 2019/8/29 */ @Getter public enum UserState implements IBaseEnum<Integer> { ACTIVE(1, "A"), INACTIVE(2, "I"); private ...
272
471
<reponame>tiedaoxiaotubie/rex<filename>rex/exploit/cgc_technique.py from .technique import Technique class CGCTechnique(Technique): applicable_to = ['cgc'] # only a few techniques do not generate a POV generates_pov = True def apply(self, **kwargs): ''' Applies the exploit technique ...
187
2,648
<gh_stars>1000+ # Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"). # You may not use this file except in compliance with the License. # A copy of the License is located at # # http://www.apache.org/licenses/LICENSE-2.0 # # or...
2,395
776
<gh_stars>100-1000 package act.route; /*- * #%L * ACT Framework * %% * Copyright (C) 2014 - 2017 ActFramework * %% * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://ww...
1,521
559
/** * Copyright (c) 2012-2018 Netflix, 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 requir...
4,672
1,056
<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 * ...
2,168
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.billing.implementation; import com.azure.core.annotation.ServiceClient; import com.azure.core.http.HttpHeaders; import com.azure...
7,101
683
package cn.byhieg.threadtutorial.char01; /** * Created by byhieg on 16/12/27. * Mail to <EMAIL> */ public class SleepInterruptThread extends Thread{ @Override public void run() { super.run(); try{ System.out.println("run begin"); Thread.sleep(20000000); S...
230
407
package com.alibaba.tesla.gateway.server.util; import com.alibaba.tesla.gateway.server.constants.AuthJwtConstants; import com.alibaba.tesla.gateway.server.exceptions.TeslaJwtException; import io.jsonwebtoken.Claims; import io.jsonwebtoken.JwtBuilder; import io.jsonwebtoken.Jwts; import io.jsonwebtoken.SignatureAlgori...
3,143
3,427
// // SquareCashStyleViewController.h // BLKFlexibleHeightBar Demo // // Created by <NAME> on 3/7/15. // Copyright (c) 2015 <NAME>. All rights reserved. // #import <UIKit/UIKit.h> @interface SquareCashStyleViewController : UIViewController @end
88
511
<gh_stars>100-1000 /* * * Copyright 2015 gRPC authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by appl...
450
422
// Source: https://stackoverflow.com/questions/16751445/parallelize-nested-for-loop-with-openmp #include<stdio.h> #include <stdlib.h> #include <stdio.h> #include <math.h> #define float_t float #include <time.h> #include <omp.h> // This was the original function to optimize // where the reader had issues with OpenMP n...
2,184
651
/* --------------------------------------------------------------------------- Copyright (c) 1998-2008, <NAME>, Worcester, UK. All rights reserved. LICENSE TERMS The redistribution and use of this software (with or without changes) is allowed without the payment of fees or royalties provided that: 1. source c...
574
528
<gh_stars>100-1000 #pragma once #include "brainflow_constants.h" #include "streamer.h" class StubStreamer : public Streamer { public: StubStreamer (int data_len) : Streamer (data_len) { } ~StubStreamer () { } int init_streamer () { return (int)BrainFlowExitCodes::STATUS_OK; ...
169
348
<reponame>chamberone/Leaflet.PixiOverlay {"nom":"Viella","circ":"2ème circonscription","dpt":"Hautes-Pyrénées","inscrits":72,"abs":22,"votants":50,"blancs":1,"nuls":0,"exp":49,"res":[{"nuance":"RDG","nom":"<NAME>","voix":40},{"nuance":"REM","nom":"<NAME>","voix":9}]}
114
17,104
<reponame>jonetomtom/mars // Tencent is pleased to support the open source community by making Mars available. // Copyright (C) 2017 THL A29 Limited, a Tencent company. All rights reserved. // Licensed under the MIT License (the "License"); you may not use this file except in // compliance with the License. You m...
780
4,126
// BiomeMap.cpp // Implements the cBiomeMap class representing a cCallback descendant that draws a map of biomes for the world #include "Globals.h" #include "BiomeMap.h" #include "../BiomeVisualiser/BiomeColors.h" static const unsigned char g_BMPHeader[] = { 0x42, 0x4D, 0x36, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00...
1,350
1,443
{ "copyright": "<NAME>", "url": "http://blog.lavoie.sl/", "email": "<EMAIL>", "gravatar": true, "theme": "double-windsor" }
62
769
<reponame>liamyu/tinker-manager package com.dx168.patchserver.manager.application; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.autoconfigure.web.ServerProperties; import org.springframework.boot.context.embedded...
1,564
1,383
// ============================================================================= // PROJECT CHRONO - http://projectchrono.org // // Copyright (c) 2014 projectchrono.org // All rights reserved. // // Use of this source code is governed by a BSD-style license that can be found // in the LICENSE file at the top level of t...
531
892
<filename>advisories/unreviewed/2022/04/GHSA-q9rh-f7ch-2g23/GHSA-q9rh-f7ch-2g23.json<gh_stars>100-1000 { "schema_version": "1.2.0", "id": "GHSA-q9rh-f7ch-2g23", "modified": "2022-04-30T18:17:33Z", "published": "2022-04-30T18:17:33Z", "aliases": [ "CVE-2001-1210" ], "details": "Cisco ubr900 series rout...
569
386
/** * Tencent is pleased to support the open source community by making Tars available. * * Copyright (C) 2016THL 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,124
868
<filename>ThirdParty/raft/canonical/src/tick.h<gh_stars>100-1000 /* Logic to be invoked periodically. */ #ifndef TICK_H_ #define TICK_H_ #include "../include/raft.h" /* Callback to be passed to the @raft_io implementation. It notifies us that a * certain amount of time has elapsed and will be invoked periodically. ...
126
4,625
<filename>janusgraph-core/src/main/java/org/janusgraph/graphdb/query/ResultSetIterator.java // Copyright 2017 JanusGraph 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 // // ...
902
1,319
<filename>CV/SemSegPaddleDG/src/utils/loss.py<gh_stars>1000+ # coding: utf8 import sys import paddle.fluid as fluid import numpy as np import importlib from src.utils.config import cfg def multi_cross_entropy_loss(pred1, pred2, label, num_classes=19, weight=None): # main_loss + aux_loss #pred1.shape: nchw ...
659
573
<gh_stars>100-1000 """Multi-output analysis and plotting example.""" import time import matplotlib.pyplot as plt import numpy as np from SALib.test_functions import lake_problem from SALib.test_functions import Ishigami from SALib import ProblemSpec if __name__ == '__main__': seed_val = 101 sp = ProblemSp...
509
1,585
<reponame>abouteiller/ompi-aurelien /* * Copyright (C) by Argonne National Laboratory * See COPYRIGHT in top-level directory */ #include "ad_lustre.h" /* what is the basis for this define? * what happens if there are more than 1k UUIDs? */ #define MAX_LOV_UUID_COUNT 1000 int ADIOI_LUSTRE_clear_locks(AD...
3,059
1,127
<filename>src/plugins/intel_gpu/src/kernel_selector/core/actual_kernels/range/range_kernel_selector.cpp // Copyright (C) 2018-2022 Intel Corporation // SPDX-License-Identifier: Apache-2.0 // #include "range_kernel_selector.h" #include "range_kernel_ref.h" namespace kernel_selector { namespace { class range_kernel_se...
272
416
/*! * @header MPSImageTranspose.h * @framework MetalPerformanceShaders.framework * * @copyright Copyright (c) 2015 Apple Inc. All rights reserved. * @abstract MetalPerformanceShaders transpose filters */ #ifndef MPS_MPSImageTranspose_h #define MPS_MPSImageTranspose_h #include <MetalPerformanceShaders/MPSIma...
233
4,962
<filename>byte-buddy-dep/src/test/java/net/bytebuddy/implementation/MethodAccessorFactoryAccessTypeTest.java package net.bytebuddy.implementation; import net.bytebuddy.description.modifier.Visibility; import org.junit.Test; import static org.hamcrest.CoreMatchers.is; import static org.hamcrest.MatcherAssert.assertTha...
216
1,107
<filename>_Dist/TextClassification/GenDataset.py import os import pickle import numpy as np def gen_dataset(dat_path): if not os.path.isfile(dat_path): print("\nGenerating Dataset...") folders = os.listdir("_Data") label_dic = [folder for folder in folders if os.path.isdir(os.path.join("_D...
502
371
<gh_stars>100-1000 #!/usr/bin/env python3 # 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, Vers...
566
602
<reponame>WestXu/JAQS from setuptools import setup, find_packages from jaqs import __version__ as ver import codecs import os def read(fname): return codecs.open(os.path.join(os.path.dirname(__file__), fname), 'r', encoding='utf-8').read() def readme(): with codecs.open('README.rst', 'r', encoding='utf-8') ...
685
492
<reponame>dwRchyngqxs/HOL<filename>examples/machine-code/graph/loop/example.c int g (int i) { return i * 8 + (i & 15); } void f (int *p, int x) { int i; for (i = x; i < 100; i ++) { p[i] = g (i); } } int main (void) { return 0; }
127
14,668
#!/usr/bin/env python3 # 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. import argparse import json import os import psutil import re import requests import subprocess import time def GetChromiumSrcDir(): ...
1,959
855
from starlette.routing import compile_path import typing class Route: # Modified code from Starlette routing.py: https://github.com/encode/starlette/blob/master/starlette/routing.py # Copyright © 2018, Encode OSS Ltd. All rights reserved. # You may obtain a copy of the License at: https://github.com/enco...
768
605
/* vi:set ts=8 sts=4 sw=4 noet: * * VIM - Vi IMproved by <NAME> * * Do ":help uganda" in Vim to read copying and usage conditions. * Do ":help credits" in Vim to see a list of people who contributed. */ /* * os_unixx.h -- include files that are only used in os_unix.c */ /* * Stuff for signals */ #if define...
1,058
4,054
<filename>searchcore/src/vespa/searchcore/proton/server/searchview.h<gh_stars>1000+ // Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #pragma once #include "matchview.h" #include <vespa/searchcore/proton/docsummary/isummarymanager.h> #include <vespa/searchcore/pr...
791
16,500
#include <dirent.h> #include <stdlib.h> #include <fcntl.h> DIR* opendir( const char* name ) { DIR* dir; dir = ( DIR* )malloc( sizeof( DIR ) ); if ( dir == NULL ) { return NULL; } dir->fd = open( name, O_RDONLY ); if ( dir->fd < 0 ) { free( dir ); return NULL; ...
171
623
// 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 applicable ...
972
967
<filename>Sources/Plugins/ViewBorder/UIView+ECOViewBorder.h // // UIView+ECOViewBorder.h // EchoSDK // // Created by zhanghe on 2019/8/28. // #import <Foundation/Foundation.h> #define ECHOToggleViewBorderNotification @"ECHOToggleViewBorderNotification" NS_ASSUME_NONNULL_BEGIN @interface UIView (ECOViewBorder)...
176
727
#ifndef __DES_H__ #define __DES_H__ #include <stdint.h> typedef struct DES_key_schedule { struct DES_key_stage { uint32_t h, l; } KS[16]; } DES_key_schedule; void DES_set_key(const uint8_t key[8],DES_key_schedule *ks); void DES_encrypt(uint8_t block[8],int decrypt,DES_key_schedule *ks); #endif ...
155
709
<gh_stars>100-1000 //----------------------------------------------- // // This file is part of the Siv3D Engine. // // Copyright (c) 2008-2021 <NAME> // Copyright (c) 2016-2021 OpenSiv3D Project // // Licensed under the MIT License. // //----------------------------------------------- # include <Siv3D/DLL.hpp> # inc...
3,015
814
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ #include "torchrec/inference/Exception.h" #include <memory> #include <string> #include "torchrec/...
286
1,253
import java.util.*; class Persist { public static long prod(long n){ long rem=1; while(n>0) { rem*=n%10; n=n/10; } return rem; } public static int persistence(long n) { int count=1; long x=prod(n); if(x>0&&x<9) r...
373
1,178
<filename>gs/monitor2/apps/receiver/base_receiver.py<gh_stars>1000+ # Copyright 2020 Makani Technologies 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/lic...
2,668
382
<filename>library/src/main/java/jahirfiquitiva/libs/fabsmenu/TouchDelegateGroup.java /* * Copyright (c) 2017. <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.ap...
1,171
1,382
<filename>spa/plugins/ffmpeg/ffmpeg.c /* Spa FFmpeg support * * Copyright © 2018 <NAME> * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), * to deal in the Software without restriction, including without limitati...
1,489
3,372
<filename>aws-java-sdk-datapipeline/src/main/java/com/amazonaws/services/datapipeline/model/ActivatePipelineRequest.java /* * 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 complianc...
3,373
2,338
<reponame>mkinsner/llvm # 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 """A mlir-opt kernel for Jupyter""" from .kernel import __version__
98
799
import demistomock as demisto import json import pytest from CommonServerPython import entryTypes entryTypes['warning'] = 11 bot_id: str = '9bi5353b-md6a-4458-8321-e924af433amb' tenant_id: str = 'pbae9ao6-01ql-249o-5me3-4738p3e1m941' team_id: str = '19:<EMAIL>' team_aad_id: str = '7d8efdf8-0c5a-42e3-a489-5ef5c3fc7...
27,368
785
/* * Copyright © 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 * * Unless...
3,271
887
<filename>projects/stage-1/shopizer/sm-shop/src/main/java/com/salesmanager/shop/mapper/catalog/ReadableProductAttributeMapper.java<gh_stars>100-1000 package com.salesmanager.shop.mapper.catalog; import org.apache.commons.lang3.StringUtils; import org.springframework.beans.factory.annotation.Autowired; import org.sprin...
982
3,459
<reponame>werminghoff/Provenance<filename>Cores/PicoDrive/platform/pandora/asm_utils.h void clut_line2x2(void *dest, const void *src, const unsigned short *pal, int pixels_mask); void clut_line3x2(void *dest, const void *src, const unsigned short *pal, int pixels_mask);
93
2,151
<reponame>zipated/src<gh_stars>1000+ // Copyright 2014 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "google_apis/gaia/fake_oauth2_token_service.h" #include <memory> FakeOAuth2TokenService::PendingRequest::P...
1,110
2,151
// Copyright 2014 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // SLEB128 encoder and decoder for packed relative relocations. // // Packed relocations consist of a large number of relatively small // integer values. ...
735