max_stars_count
int64
301
224k
text
stringlengths
6
1.05M
token_count
int64
3
727k
2,151
<reponame>zipated/src # 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 ...
1,295
809
/** * @file * @brief * * @date 21.06.10 * @author <NAME> */ void arch_init(void) { } void arch_idle(void) { } void arch_shutdown(void) { while (1); }
78
319
<reponame>Celebrate-future/openimaj /** * Copyright 2011 The University of Southampton, Yahoo Inc., and the * individual contributors. 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,049
1,538
// 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...
2,581
2,674
<gh_stars>1000+ // Copyright (c) 2018 Microsoft Corporation // Licensed under the MIT license. // Author: <NAME> <<EMAIL>> #ifndef INTERACTION_SHELL_HPP #define INTERACTION_SHELL_HPP #include <stdlib.h> // free #include <stddef.h> // size_t, ptrdiff_t #include "ebm_native.h" #include "logging.h" #include "zones.h" ...
1,224
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.analytics.synapse.accesscontrol.models; import com.azure.core.annotation.Fluent; import com.fasterxml.jackson.annotation.JsonProperty; import ja...
654
1,457
# Copyright The PyTorch Lightning team. # # 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 i...
315
2,605
import pyjokes from colorama import Fore from plugin import plugin, require @require(network=True) @plugin('joke') def joke(jarvis, s): """Tells a random joke""" joke = pyjokes.get_joke() jarvis.say(joke, Fore.BLUE)
86
1,053
<filename>tos/chips/cortex/m3/sam3/timer/rtthardware.h /** * Copyright (c) 2009 The Regents of the University of California. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * - Redistribu...
1,006
1,444
<filename>Mage.Sets/src/mage/sets/SanDiegoComicCon2015.java<gh_stars>1000+ package mage.sets; import mage.cards.ExpansionSet; import mage.constants.Rarity; import mage.constants.SetType; /** * https://scryfall.com/sets/ps15 */ public class SanDiegoComicCon2015 extends ExpansionSet { private static final SanDie...
743
1,694
// // Generated by class-dump 3.5 (64 bit) (Debug version compiled Sep 17 2017 16:24:48). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2015 by <NAME>. // #import <objc/NSObject.h> @class NSString; @interface WCPayFaceHBQRCodeInfo : NSObject { unsigned int _totalNum; NSString *_sendId;...
277
348
{"nom":"Ville-sur-Terre","circ":"1ère circonscription","dpt":"Aube","inscrits":102,"abs":31,"votants":71,"blancs":0,"nuls":0,"exp":71,"res":[{"nuance":"LR","nom":"<NAME>","voix":31},{"nuance":"FN","nom":"<NAME>","voix":22},{"nuance":"REM","nom":"<NAME>","voix":18}]}
107
372
/* * 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 distributed under t...
1,275
3,212
/* * 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 ...
621
647
/* * Copyright 2015 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/licenses/LICENSE-2.0 * * Unless required by applicable l...
1,014
2,227
<gh_stars>1000+ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/deploymentTemplate.json#", "contentVersion": "1.0.0.0", "parameters": { "workspaceName": { "type": "string" }, "location": { "type": "string" } }, "resources": [ { "type": "Microsoft.Oper...
1,614
2,728
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
1,284
2,151
/* * 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...
4,735
5,169
<gh_stars>1000+ { "name": "HMBannerView", "version": "0.0.1", "summary": "A BannerView with HMBannerView.", "description": "A Simple BannerView To iOS Application", "homepage": "https://github.com/happyer-lwl/HMBannerView.git", "license": "MIT", "authors": { "happyer-lwl": "<EMAIL>" }, "platforms"...
245
2,206
<gh_stars>1000+ /* * ****************************************************************************** * * * * * * 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. * * ...
561
887
package org.javers.core.metamodel.scanner; /** * Facade for PropertyScanner and ClassAnnotationScanner * @author bartosz.walacik */ public class ClassScanner { private final PropertyScanner propertyScanner; private final ClassAnnotationsScanner classAnnotationsScanner; public ClassScanner(PropertyScan...
245
339
import os, torch, cv2, re import numpy as np from PIL import Image import torch.nn.functional as F import torchvision.transforms as T from scipy.spatial.transform import Rotation as R # Misc img2mse = lambda x, y : torch.mean((x - y) ** 2) mse2psnr = lambda x : -10. * torch.log(x) / torch.log(torch.Tensor([10.])) t...
13,015
1,473
<filename>Core/src/org/sleuthkit/autopsy/discovery/ui/SwingWorkerSearchContext.java /* * Autopsy * * Copyright 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 Lice...
450
1,144
<filename>openwrt/package/utils/adbd/src/crash_reporter/kernel_collector_test.cc /* * Copyright (C) 2012 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 ...
15,557
3,799
/* * Copyright 2019 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applica...
903
14,668
<reponame>zealoussnow/chromium // 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. { "key": "<KEY>", "manifest_version": 2, "name": "Test mediaPerceptionPrivate API's MediaPerceptionDetection event lis...
168
1,652
package com.ctrip.xpipe.redis.console.model; import com.ctrip.xpipe.exception.XpipeRuntimeException; import com.ctrip.xpipe.redis.console.service.DcService; import java.util.Map; public interface DcIdNameMapper { String getName(long id); long getId(String name); public class DefaultMapper implements D...
738
429
/** * SPDX-License-Identifier: BSD-2-Clause-Patent */ package io.daos.fs.hadoop.contract; import io.daos.fs.hadoop.DaosFSFactory; import org.apache.hadoop.conf.Configuration; import org.apache.hadoop.fs.FSDataInputStream; import org.apache.hadoop.fs.FileSystem; import org.apache.hadoop.fs.Path; import org.apache.ha...
450
365
#include "testing/testing.h" extern "C" { #include <libavcodec/avcodec.h> #include <libavutil/log.h> } namespace { bool test_vcodec(AVCodec *codec, AVPixelFormat pixelformat) { av_log_set_level(AV_LOG_QUIET); bool result = false; if (codec) { AVCodecContext *ctx = avcodec_alloc_context3(codec); if (ctx...
2,303
3,294
<gh_stars>1000+ // This is a part of the Microsoft Foundation Classes C++ library. // Copyright (C) Microsoft Corporation // All rights reserved. // // This source code is only intended as a supplement to the // Microsoft Foundation Classes Reference and related // electronic documentation provided with the library. //...
2,577
933
/* * 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/LICENSE-2.0 * * Unless required by app...
4,151
7,956
<filename>spyder/plugins/completion/providers/snippets/conftabs.py # -*- coding: utf-8 -*- # # Copyright © Spyder Project Contributors # Licensed under the terms of the MIT License # (see spyder/__init__.py for details) """ Text snippets configuration tabs. """ # Standard library imports import copy import os.path as...
4,155
5,169
{ "name": "TestPersonXZX", "version": "0.0.1", "summary": "TestPersonXZX summary", "description": "TestPersonXZX 测试私有库,demo xxxxxxx", "homepage": "https://github.com/iOSxzx/TestPerson", "license": "MIT", "authors": { "xzx": "<EMAIL>" }, "source": { "git": "https://github.com/iOSxzx/TestPerson....
260
2,564
<reponame>WakeHao/CainCamera // // Created by admin on 2018/9/7. // #ifndef CAINCAMERA_COMMON_H #define CAINCAMERA_COMMON_H #ifdef __cplusplus extern "C" { #endif // 最小值 #define min(x,y) ((x) <= (y) ? (x) : (y)) // 最大值 #define max(x,y) ((x) >= (y) ? (x) : (y)) // 限定 0 ~ 255之间 #define clamp(x) ((x) > 255 ? 255 : (x...
345
5,451
<reponame>iwpnd/folium from branca.element import MacroElement from folium.elements import JSCSSMixin from folium.utilities import parse_options from jinja2 import Template class Geocoder(JSCSSMixin, MacroElement): """A simple geocoder for Leaflet that by default uses OSM/Nominatim. Please respect the Nomi...
833
585
<reponame>madrob/solr<filename>solr/core/src/java/org/apache/solr/search/LuceneQParser.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 ...
679
694
<filename>qt_ritual/test_assets/moqt/moqt_core/QVector.cpp #include "QVector.h"
34
335
<filename>C/Countryside_noun.json { "word": "Countryside", "definitions": [ "The land and scenery of a rural area.", "The inhabitants of countryside areas." ], "parts-of-speech": "Noun" }
89
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 * ...
1,379
1,194
<gh_stars>1000+ { "resourceType": "CodeSystem", "id": "unknown-content-code", "meta": { "lastUpdated": "2019-11-01T09:29:23.356+11:00" }, "text": { "status": "generated", "div": "\u003cdiv xmlns\u003d\"http://www.w3.org/1999/xhtml\"\u003e\u003ch2\u003eUnknownContentCode\u003c/h2\u003e\u003cdiv\u00...
1,597
1,408
/* * Copyright (c) 2016 - 2020, Broadcom * * SPDX-License-Identifier: BSD-3-Clause */ #ifndef TIMER_SYNC_H #define TIMER_SYNC_H void brcm_timer_sync_init(void); #endif
76
1,645
<filename>client/java-client/src/test/java/io/seldon/client/test/js/BaseJavascriptTest.java<gh_stars>1000+ /* * Seldon -- open source prediction engine * ======================================= * Copyright 2011-2015 Seldon Technologies Ltd and Rummble Ltd (http://www.seldon.io/) * *********************************...
2,469
4,348
<filename>MediaRouter/RouteProvider/app/src/main/java/com/commonsware/android/mrp/DemoRouteProvider.java /*** Copyright (c) 2014 CommonsWare, 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 ...
1,149
1,253
<gh_stars>1000+ class LinkedListNode(object): def __init__(self, value): self.value = value self.nextnode = None def cycle_check(node): marker1 = marker2 = node while marker2 != None and marker2.nextnode != None: marker1 = marker1.nextnode marker2 = ...
399
1,467
#set( $symbol_pound = '#' ) #set( $symbol_dollar = '$' ) #set( $symbol_escape = '\' ) package ${package}; import static org.junit.jupiter.api.Assertions.assertEquals; import org.junit.jupiter.api.Test; public class ${handlerClassName}Test { @Test public void handleRequest_shouldReturnConstantValue() { ...
181
852
import FWCore.ParameterSet.Config as cms # # Take muon alignment corrections from Frontier # from CondCore.DBCommon.CondDBSetup_cfi import * muonAlignment = cms.ESSource("PoolDBESSource", CondDBSetup, toGet = cms.VPSet(cms.PSet( record = cms.string('DTAlignmentRcd'), tag = cms.string('DTIdealG...
467
678
<reponame>bzxy/cydia<filename>iOSOpenDev/frameworks/WebCore.framework/Headers/DOMCSSImportRule.h /** * This header is generated by class-dump-z 0.2b. * * Source: /System/Library/PrivateFrameworks/WebCore.framework/WebCore */ #import <WebCore/DOMCSSRule.h> @class DOMCSSStyleSheet, NSString, DOMMediaList; __attrib...
292
12,718
<filename>lib/libc/wasi/libc-top-half/musl/src/math/i386/sqrt.c #include "libm.h" double sqrt(double x) { union ldshape ux; unsigned fpsr; __asm__ ("fsqrt; fnstsw %%ax": "=t"(ux.f), "=a"(fpsr) : "0"(x)); if ((ux.i.m & 0x7ff) != 0x400) return (double)ux.f; /* Rounding to double would have encountered an exact ha...
220
335
<filename>I/Inaction_noun.json { "word": "Inaction", "definitions": [ "Lack of action where some is expected or appropriate." ], "parts-of-speech": "Noun" }
76
1,085
<reponame>luxms/dremio-oss /* * Copyright (C) 2017-2019 Dremio Corporation * * 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 * * Unle...
704
460
<gh_stars>100-1000 /******************************************************************************* * Copyright 2015 <NAME>, <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 * * ...
541
310
<gh_stars>100-1000 package com.orhanobut.logger.helper; import android.support.annotation.Nullable; /** * @author Kale * @date 2017/9/28 * * 针对log进行样式的处理 */ public abstract class AbsLogFormatter { private LogDelegate delegate; void setDelegate(LogDelegate delegate) { this.delegate = delegate; ...
644
1,338
/* * Copyright 2009-2010 Haiku Inc. All rights reserved. * Distributed under the terms of the MIT License. */ #ifndef OPENGL_VIEW_H #define OPENGL_VIEW_H #include <GroupView.h> #define MENU_AUTO_MESSAGE 'auto' #define MENU_SWRAST_MESSAGE 'swrt' #define MENU_SWPIPE_MESSAGE 'swpi' #define MENU_SWLLVM_MESSAGE 'swll...
192
4,297
<reponame>InterestingLab/dolphinscheduler<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...
976
1,179
<gh_stars>1000+ // // SQRLShipItLauncher.h // Squirrel // // Created by <NAME> on 2013-08-12. // Copyright (c) 2013 GitHub. All rights reserved. // #import <Foundation/Foundation.h> @class RACSignal; // The domain for errors originating within SQRLShipItLauncher. extern NSString * const SQRLShipItLauncherErrorDo...
327
776
<reponame>CrossLee/actframework package test; import act.db.jpa.JPADao; import javax.persistence.*; @Entity public class User { @Id @GeneratedValue(strategy = GenerationType.IDENTITY) public Integer id; public String name; public static class Dao extends JPADao<Integer, User> { } }
115
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...
895
4,812
//===- LinkDiagnosticInfo.h -------------------------------------*- C++ -*-===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===---------------------------...
243
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" using nam...
398
1,587
package io.reflectoring.objectmother; import java.util.List; import lombok.Builder; import lombok.Data; @Data @Builder class Invoice { private long id; private Address address; private List<InvoiceItem> items; }
74
415
<gh_stars>100-1000 /****************************************************************************** This source code accompanies the Journal of Graphics Tools paper: "Fast Ray-Axis Aligned Bounding Box Overlap Tests With Pluecker Coordinates" by <NAME> and <NAME> Department of Computer Science, University of C...
180
371
<reponame>vinooganesh/concourse /* * 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 r...
1,372
897
/* Infix, postfix and prefix are three different but equivalent notations of writing algebraic expressions. In postfix notation, operators follow their operands. In prefix notation, operators precede their operands. In this program, the user inputs a postfix expression and the prefix notation for that given ...
1,093
2,206
/* * * Copyright (c) 2006-2020, Speedment, 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 requi...
313
953
<reponame>savek-cc/dependency-track<gh_stars>100-1000 /* * This file is part of Dependency-Track. * * 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/L...
3,419
318
#include <H5pubconf.h> #if !defined(H5_SOMETHING) || !H5_SOMETHING #error "flag is not defined" #endif int main() {}
55
2,322
<filename>tests/unit/cartography/intel/aws/test_iam.py<gh_stars>1000+ from cartography.intel.aws import iam SINGLE_STATEMENT = { "Resource": "*", "Action": "*", } # Example principal field in an AWS policy statement # see: https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_principal....
472
1,299
/* * 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 ...
2,217
322
<gh_stars>100-1000 import enum import json import time from typing import List import requests from bs4 import BeautifulSoup from steampy import guard from steampy.exceptions import ConfirmationExpected from steampy.login import InvalidCredentials class Confirmation: def __init__(self, _id, data_confid, data_ke...
2,123
510
""" .. codeauthor:: <NAME> <<EMAIL>> """ from enum import Enum from typing import Optional, Type import dataproperty from pathvalidate import replace_symbol from tabledata._core import TableData def quote_datetime_formatter(value) -> str: return f'"{value.strftime(dataproperty.DefaultValue.DATETIME_FORMAT):s}"'...
1,076
416
<reponame>ljz663/tencentcloud-sdk-java /* * Copyright (c) 2017-2018 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...
6,110
480
<gh_stars>100-1000 /* * Copyright [2013-2021], Alibaba Group Holding Limited * * 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...
3,521
711
/* * Copyright 2015 JBoss 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 i...
691
6,663
#!/usr/bin/env python """N-body benchmark from the Computer Language Benchmarks Game. This is intended to support Unladen Swallow's perf.py. Accordingly, it has been modified from the Shootout version: - Accept standard Unladen Swallow benchmark options. - Run report_energy()/advance() in a loop. - Reimplement iterto...
2,492
471
import json import math import warnings from collections import namedtuple from datetime import datetime from importlib import import_module from django.conf import settings from django.http import Http404 from django.utils.translation import ugettext as _ import pytz from memoized import memoized from dimagi.utils....
6,335
5,535
//--------------------------------------------------------------------------- // Greenplum Database // Copyright (c) 2020 VMware, Inc. // // @filename: // CXformLeftJoin2RightJoin.h // // @doc: // Transform left outer join to right outer join //------------------------------------------------------------------------...
501
376
// Copyright (C) 2020 <NAME> // This file is part of the "Nazara Engine - Utility module" // For conditions of distribution and use, see copyright notice in Config.hpp #include <Nazara/Utility/Skeleton.hpp> #include <Nazara/Utility/Joint.hpp> #include <unordered_map> #include <Nazara/Utility/Debug.hpp> namespace Nz {...
2,931
1,174
package com.vlonjatg.sample.progressactivity; import android.content.Intent; import android.os.Bundle; import android.support.v7.app.AppCompatActivity; import android.support.v7.widget.Toolbar; import android.view.View; public class MainActivity extends AppCompatActivity { Toolbar toolbar; @Override pro...
571
1,338
<gh_stars>1000+ /* * Copyright 2006, Haiku. * Distributed under the terms of the MIT License. * * Authors: * <NAME> <<EMAIL>> */ #include "StyleContainer.h" #include <stdio.h> #include <string.h> #include <OS.h> #include "Style.h" #ifdef ICON_O_MATIC StyleContainerListener::StyleContainerListener() {} Style...
1,365
407
/** * Copyright 2011 The Apache Software Foundation * * 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...
12,497
312
<reponame>winnit-myself/Wifie /* encoding.h * Copyright (C) 2004-2007,2014, Parrot Foundation. * Overview: * This is the header for the generic encoding functions * Data Structure and Algorithms: * History: * Notes: * References: */ #ifndef PARROT_ENCODING_H_GUARD #define PARROT_ENCODING_H_GUARD #in...
2,689
760
<reponame>andrematosfundao/selenide package integration; import com.codeborne.selenide.Configuration; import com.codeborne.selenide.ex.TimeoutException; import com.codeborne.selenide.logevents.EventsCollector; import com.codeborne.selenide.logevents.LogEvent; import com.codeborne.selenide.logevents.SelenideLogger; imp...
2,569
613
package mezz.jei.gui.ingredients; import com.google.common.base.Preconditions; import com.google.common.collect.ImmutableList; import mezz.jei.api.recipe.IRecipeManager; import mezz.jei.api.recipe.category.IRecipeCategory; import mezz.jei.gui.Focus; import mezz.jei.gui.recipes.FocusedRecipes; import javax.annotation....
991
782
// Copyright (c) 2017 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, pub...
744
1,475
/* * 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 ...
534
1,104
/** * 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...
4,011
1,013
"""! @brief Examples of usage utils. @authors <NAME> (<EMAIL>) @date 2014-2020 @copyright BSD-3-Clause """ import pyclustering.tests as utils; from pyclustering.cluster.agglomerative import agglomerative; from pyclustering.samples.definitions import SIMPLE_SAMPLES; import matplotlib.pyplot as plt; ...
3,817
2,542
<reponame>gridgentoo/ServiceFabricAzure // ------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License (MIT). See License.txt in the repo root for license information. // ----------------------------------------------------...
1,098
835
# THIS FILE IS AUTO-GENERATED. DO NOT EDIT from verta._swagger.base_type import BaseType class UacListRolesResponse(BaseType): def __init__(self, roles=None): required = { "roles": False, } self.roles = roles for k, v in required.items(): if self[k] is None and v: raise ValueErro...
234
416
/* * Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 ...
2,419
419
#ifndef STDLIB_H #define STDLIB_H #ifdef __cplusplus extern "C" { #endif #include "stdbool.h" #include "stdint.h" #include "stddef.h" #include "limits.h" #include "sdk_init.h" #include "ctype.h" /* Standard atoi() function. Work as the libc one. */ int atoi(const char *s); #define atol CSDK_FUNC(...
698
347
<gh_stars>100-1000 package org.ovirt.engine.core.common.config; public final class ConfigCommon { public static final String defaultConfigurationVersion = "general"; }
49
1,443
<reponame>cssence/mit-license { "copyright": "<NAME>", "url": "http://ryan.allred.xyz", "email": "<EMAIL>", "format": "txt" }
60
311
package org.javacs.debug.proto; /** Arguments for 'variables' request. */ public class VariablesArguments { /** The Variable reference. */ public long variablesReference; /** * Optional filter to limit the child variables to either named or indexed. If ommited, both types are fetched. * 'indexed'...
207
562
<gh_stars>100-1000 import os import sys def get_python_version(): v = sys.version_info return f"{v.major}.{v.minor}.{v.micro}" PYTHON_VERSION = get_python_version() PROJECT_ROOT = os.path.abspath(os.path.join(os.path.dirname(__file__), os.pardir))
111
397
// // ConnectionModule.h // sample-conference-videochat // // Created by Injoit on 06.10.2020. // Copyright © 2020 QuickBlox Team. All rights reserved. // #import <Foundation/Foundation.h> NS_ASSUME_NONNULL_BEGIN typedef void(^AuthorizationAction)(void); typedef void(^ConnectionAction)(void); typedef void(^Disco...
678
809
/* * ---------------------------------------------------------------------------- * “THE COFFEEWARE LICENSE” (Revision 1): * <<EMAIL>> wrote this file. As long as you retain this notice you * can do whatever you want with this stuff. If we meet some day, and you think * this stuff is worth it, you can buy me a coffee i...
4,369
772
<gh_stars>100-1000 # Copyright 2020 The FedLearner 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 ...
2,230
2,151
// 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. package org.chromium.chrome.browser.media.router.cast; import static org.mockito.ArgumentMatchers.any; import static org.mockito.Mockito.doAnswer; import...
2,673
451
import sys import imp from recipyCommon.config import option_set from recipyCommon.utils import recursive_find_module class PatchImporter(object): """A class that handles finding modules, importing them and calling a `patch` method. This class is not designed to be used itself - instead, subclasses ...
733