max_stars_count
int64
301
224k
text
stringlengths
6
1.05M
token_count
int64
3
727k
3,380
# coding=utf-8 # Copyright 2021 The TensorFlow Datasets 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...
405
312
<reponame>Fruit-Pi/mpp /* * * Copyright 2015 Rockchip Electronics Co. LTD * * 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...
934
5,169
{ "name": "RevenueXBeta", "version": "0.1.0", "summary": "Subscription and purchase tracking system", "description": "Secure, reliable, and free to use in-app purchase server. Build and manage your app business without having to maintain purchase infrastructure.", "homepage": "https://bitbucket.org/mobilextur...
346
1,443
<gh_stars>1000+ { "copyright": "<NAME>, http://psykzz.co.uk", "url": "http://psykzz.co.uk", "email": "<EMAIL>", "format": "txt", "theme": "black-beauty", "gravatar": true }
84
965
<gh_stars>100-1000 // This example uses the CWnd::IsWindowVisible() function to // determine if a dialog box is visible. If it is not, it calls // CWnd::ShowWindow with the SW_SHOWNORMAL command. void CMainFrame::DisplayModeless() { if(!m_Modeless.IsWindowVisible()) { m_Modeless.ShowWindow(SW_SHOWNORMAL); ...
221
370
/** @file tcpclient.h * @brief Open a TCP connection to a server. */ /* Copyright (C) 2007,2008,2010 <NAME> * * 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 2 of the * Li...
404
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...
785
833
<reponame>gozdal/cloudflare-blog #include <fcntl.h> #include <getopt.h> #include <linux/netlink.h> #include <stdint.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <sys/socket.h> #include <unistd.h> #include "common.h" struct state { int one_run; int verbose; int dump; int no_kcov; int net...
3,138
1,088
<reponame>hgroll/tikzplotlib<gh_stars>1000+ def plot(): import numpy as np from matplotlib import pyplot as plt fig = plt.figure() an = np.linspace(0, 2 * np.pi, 10) plt.subplot(221) plt.plot(3 * np.cos(an), 3 * np.sin(an)) plt.title("not equal, looks like ellipse", fontsize=10) plt....
451
14,425
<filename>hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/security/authorize/TestDefaultImpersonationProvider.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 informatio...
1,214
763
<reponame>zabrewer/batfish package org.batfish.datamodel.questions; import com.fasterxml.jackson.annotation.JsonProperty; import javax.annotation.Nullable; import javax.annotation.ParametersAreNonnullByDefault; import org.batfish.common.BfConsts; /** Settings for field of complex {@link org.batfish.datamodel.question...
317
706
<gh_stars>100-1000 from __future__ import print_function, division import torch import torch.nn as nn class mfcc_encoder(nn.Module): def __init__(self, norm_layer=nn.BatchNorm2d): super(mfcc_encoder, self).__init__() use_bias = norm_layer == nn.InstanceNorm2d self.relu = nn.LeakyReLU(0.2, ...
1,490
923
// Ouzel by <NAME> #ifndef OUZEL_PLATFORM_COCOA_WINDOW_HPP #define OUZEL_PLATFORM_COCOA_WINDOW_HPP #ifdef __OBJC__ # import <Cocoa/Cocoa.h> typedef NSWindow* NSWindowPtr; #else # include <objc/NSObjCRuntime.h> using NSWindowPtr = id; #endif namespace ouzel::platform::cocoa { class Window final { public...
179
679
<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 license...
6,086
380
<filename>Java/Algorithms/Math/CelToFh.java class CelToFh{ public static void main(String[] args) { int cel = 32; System.out.println((int)(cel*(1.8))+32); } }
71
826
<reponame>zwh930712/densenet.pytorch # From https://gist.github.com/apaszke/01aae7a0494c55af6242f06fad1f8b70 from graphviz import Digraph from torch.autograd import Variable def save(fname, creator): dot = Digraph(comment='LRP', node_attr={'style': 'filled', 'shape': 'box'}) #, 'fillcolor': 'li...
448
678
/* struct::tree - critcl - layer 1 declarations * (a) Data structures. */ #ifndef _DS_H #define _DS_H 1 #include "tcl.h" /* Forward declarations of references to trees & nodes. */ typedef struct T* TPtr; typedef struct TN* TNPtr; /* Node structure. */ typedef struct TN { /* Node identity / handle */ ...
909
720
<reponame>stephanenicolas/dependency-analysis-android-gradle-plugin package com.seattleshelter.core.di; import java.lang.System; @kotlin.Metadata(mv = {1, 1, 15}, bv = {1, 0, 3}, k = 1, d1 = {"\u0000\n\n\u0002\u0018\u0002\n\u0002\u0010\u001b\n\u0000\b\u0087\u0002\u0018\u00002\u00020\u0001B\u0000\u00a8\u0006\u0002"}, ...
356
832
<filename>app/src/main/assets/api/superman_vs_batman/gallery/3.json<gh_stars>100-1000 [ { "image": "http://batmanvsuperman.dccomics.com/images/gallery/img21.jpg" }, { "image": "http://batmanvsuperman.dccomics.com/images/gallery/img22.jpg" } ]
112
689
"""Anomaly Map Generator for the STFPM model implementation.""" # Copyright (C) 2020 Intel 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/LICE...
1,439
3,102
<filename>clang/test/Analysis/Inputs/system-header-simulator-for-nullability-cxx.h #pragma clang system_header struct S { ~S(){} }; void foo() { S s; }
66
1,111
<reponame>immujahidkhan/Android-ActionItemBadge package com.mikepenz.actionitembadge.library.utils; import android.annotation.SuppressLint; import android.content.Context; import android.graphics.drawable.Drawable; import android.view.View; import static android.util.TypedValue.COMPLEX_UNIT_DIP; import static android...
401
411
<gh_stars>100-1000 """ Migration for the Submitty system. adds submitty admin json """ from pathlib import Path import shutil import json import os def up(config): submitty_admin_filename = str(Path(config.submitty['submitty_install_dir'], 'config', 'submitty_admin.json')) if not os.path.isfile(submitty_admin_...
318
348
<gh_stars>100-1000 {"nom":"Saint-Gervais-la-Forêt","circ":"1ère circonscription","dpt":"Loir-et-Cher","inscrits":2649,"abs":1241,"votants":1408,"blancs":11,"nuls":10,"exp":1387,"res":[{"nuance":"MDM","nom":"<NAME>","voix":555},{"nuance":"SOC","nom":"M. <NAME>","voix":185},{"nuance":"FI","nom":"Mme <NAME>","voix":160},{...
280
405
<gh_stars>100-1000 from .australia import ( Australia, AustralianCapitalTerritory, NewSouthWales, NorthernTerritory, Queensland, SouthAustralia, Tasmania, Hobart, Victoria, WesternAustralia ) from .marshall_islands import MarshallIslands from .new_zealand import NewZealand __al...
253
892
{ "schema_version": "1.2.0", "id": "GHSA-p4fq-7p56-g8v4", "modified": "2022-05-01T17:41:38Z", "published": "2022-05-01T17:41:38Z", "aliases": [ "CVE-2007-0083" ], "details": "Cross-site scripting (XSS) vulnerability in Nuked Klan 1.7 and earlier allows remote attackers to inject arbitrary web script o...
514
1,248
{ "name": "replicatedFrom", "typeName": "array<AtlasServer>", "cardinality": "SET", "isIndexable": false, "isOptional": true, "isUnique": false, "options": { "isSoftReference": "true" } }
84
892
{ "schema_version": "1.2.0", "id": "GHSA-7vw4-jppr-mcc9", "modified": "2022-05-01T07:22:34Z", "published": "2022-05-01T07:22:34Z", "aliases": [ "CVE-2006-4865" ], "details": "<NAME> PhpQuiz allows remote attackers to obtain sensitive information via a direct request to cfgphpquiz/install.php and other...
379
335
<reponame>Safal08/Hacktoberfest-1<gh_stars>100-1000 { "word": "Vair", "definitions": [ "Fur obtained from a variety of red squirrel, used in the 13th and 14th centuries as a trimming or lining for garments.", "Fur represented by interlocking rows of shield-shaped or bell-shaped figures which are...
145
1,463
<reponame>aaye/OpenSubdiv // // Copyright 2013 Pixar // // Licensed under the Apache License, Version 2.0 (the "Apache License") // with the following modification; you may not use this file except in // compliance with the Apache License and the following modification to it: // Section 6. Trademarks. is dele...
1,681
852
<filename>Configuration/Eras/python/Modifier_phase2_GE0_cff.py import FWCore.ParameterSet.Config as cms phase2_GE0 = cms.Modifier()
51
310
<gh_stars>100-1000 { "name": "<NAME>", "description": "A 3D rendering and animation tool.", "url": "https://www.daz3d.com/get_studio" }
58
1,056
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
4,700
463
<gh_stars>100-1000 # Copyright (c) 2021 <NAME> <<EMAIL>> # Copyright (c) 2021 <NAME> <<EMAIL>> # Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html # For details: https://github.com/PyCQA/pylint/blob/master/LICENSE import astroid from pylint.checkers import BaseChecker from pylint.checker...
858
7,158
// This file is part of OpenCV project. // It is subject to the license terms in the LICENSE file found in the top-level directory // of this distribution and at http://opencv.org/license.html. #include "test_precomp.hpp" static void initTrackingTests() { const char* extraTestDataPath = #ifdef WINRT NULL; ...
219
12,278
<filename>libs/coroutine/performance/cycle_i386.hpp // Copyright <NAME> 2009. // 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 CYCLE_I386_H #define CYCLE_I386_H #include <algorithm>...
866
360
<gh_stars>100-1000 /*------------------------------------------------------------------------- * * pgut.h * * Portions Copyright (c) 2020 Huawei Technologies Co.,Ltd. * Portions Copyright (c) 2009-2013, NIPPON TELEGRAPH AND TELEPHONE CORPORATION * Portions Copyright (c) 2017-2019, Postgres Professional * *-----...
1,780
3,673
#include "common.hpp" #include <fcntl.h> #include <sys/types.h> #include <unistd.h> #include <posix/fd_map.hpp> static off_t sys_lseek(int fd, off_t offset, int whence) { if(auto* fildes = FD_map::_get(fd); fildes) return fildes->lseek(offset, whence); return -EBADF; } static off_t sys__llseek(unsigned int ...
432
343
// Copyright 2013 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 required by applicable...
902
638
{ // Consultez https://go.microsoft.com/fwlink/?LinkId=733558 // pour voir la documentation sur le format de tasks.json "version": "2.0.0", "tasks": [ { "type": "haxe", "args": "active configuration", "group": { "kind": "build", "isDefault": true } } ] }
124
852
#ifndef CondTools_L1Trigger_L1CondDBPayloadWriter_h #define CondTools_L1Trigger_L1CondDBPayloadWriter_h // -*- C++ -*- // // Package: L1Trigger // Class : L1CondDBPayloadWriter // /**\class L1CondDBPayloadWriter L1CondDBPayloadWriter.h CondTools/L1Trigger/interface/L1CondDBPayloadWriter.h Description: <one l...
642
1,102
<reponame>johny-c/ViZDoom<filename>src/vizdoom/src/g_hexen/a_bishop.cpp<gh_stars>1000+ /* #include "actor.h" #include "info.h" #include "p_local.h" #include "s_sound.h" #include "a_action.h" #include "m_random.h" #include "a_hexenglobal.h" #include "thingdef/thingdef.h" */ static FRandom pr_boom ("BishopBoo...
1,845
310
/* !@ MIT License Copyright (c) 2020 Skylicht Technology CO., LTD 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...
887
1,350
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. package com.azure.cosmos.implementation.caches; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import reactor.core.publisher.Mono; import java.util.Optional; import java.util.concurrent.Callable; class AsyncLazy...
742
10,723
<filename>demo/src/main/java/me/yokeyword/sample/demo_wechat/event/StartBrotherEvent.java<gh_stars>1000+ package me.yokeyword.sample.demo_wechat.event; import me.yokeyword.fragmentation.SupportFragment; /** * Created by YoKeyword on 16/6/30. */ public class StartBrotherEvent { public SupportFragment targetFragm...
159
1,179
// SPDX-License-Identifier: BSD-2-Clause /* * Copyright (c) 2021, EPAM Systems */ #include <assert.h> #include <kernel/panic.h> #include <mm/core_memprot.h> #include <mm/core_mmu.h> #include "rcar.h" #include "romapi.h" static int get_api_table_index(void) { /* * Depending on SoC type and version, there are 4 po...
1,754
335
{ "word": "Unusual", "definitions": [ "Not habitually or commonly occurring or done.", "Remarkable or interesting because different from or better than others." ], "parts-of-speech": "Adjective" }
83
332
<filename>pyhdb/protocol/headers.py # Copyright 2014, 2015 SAP SE. # # 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 appli...
1,809
3,170
<reponame>elix22/AtomicGameEngine /* Copyright The kNet 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 requir...
1,067
772
{ "published": true, "title": "Satisfaction Survey for Code.org's CS Fundamentals Intro Professional Development Workshop", "pages": [ { "name": "page1", "elements": [ { "type": "html", "name": "intro_text", "html": "<p><strong>Well done, you've completed the ...
2,025
5,169
<reponame>Gantios/Specs<filename>Specs/7/8/d/WAMSimpleDataSource/0.1.1/WAMSimpleDataSource.podspec.json<gh_stars>1000+ { "name": "WAMSimpleDataSource", "version": "0.1.1", "summary": "An easier way to create readable static table view data source", "homepage": "https://github.com/WAMaker/WAMSimpleDataSource", ...
282
575
// Copyright 2017 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/browser/safe_browsing/chrome_cleaner/chrome_cleaner_fetcher_win.h" #include "base/base_paths.h" #include "base/bind.h" #include "base/ca...
1,421
778
<reponame>lkusch/Kratos import KratosMultiphysics import KratosMultiphysics.FluidDynamicsApplication as KratosFluid def Factory(settings, Model): if(type(settings) != KratosMultiphysics.Parameters): raise Exception("expected input shall be a Parameters object, encapsulating a json string") # Backwards...
429
1,755
<gh_stars>1000+ /*========================================================================= Program: Visualization Toolkit Module: vtkPExodusIIReader.h Copyright (c) <NAME>, <NAME>, <NAME> All rights reserved. See Copyright.txt or http://www.kitware.com/Copyright.htm for details. This software is...
1,876
776
"""Tests for the violations.Error class.""" import pytest import collections import textwrap from pydocstyle.violations import Error MockDefinition = collections.namedtuple('MockDefinition', ['source', 'start']) def test_message_without_context(): """Test a simple error message without parameters.""" error...
693
1,763
<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. * See the NOTICE file ...
2,240
2,151
/* * * Copyright 2016 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 applicable law or agree...
6,747
1,338
<gh_stars>1000+ /* * Copyright 2011, <NAME>, <EMAIL>. * Copyright 2008, <NAME>, <EMAIL>. * This file may be used under the terms of the MIT License. */ #ifndef INODE_H #define INODE_H #include <fs_cache.h> #include <lock.h> #include <string.h> #include "ext2.h" #include "Volume.h" //#define TRACE_EXT2 #ifdef T...
3,112
897
<filename>C/math/Noble_Integer.c /*An integer x is said to be Noble given an array if the number of integers greater than x are equal to x. If noble integer is not found output is -1. */ #include <stdio.h> int nobleint(int *, int); int main() { int num, i, k, arr[1000], arr2[1000], m; printf("Enter the number of el...
438
10,225
package io.quarkus.it.mongodb.panache.transaction; import org.bson.codecs.pojo.annotations.BsonId; import io.quarkus.mongodb.panache.MongoEntity; import io.quarkus.mongodb.panache.PanacheMongoEntityBase; @MongoEntity(database = "transaction-person") public class TransactionPerson extends PanacheMongoEntityBase { ...
148
438
<gh_stars>100-1000 #define EIGEN_USE_THREADS #include "flow_warp.h" #include "tensorflow/core/framework/op_kernel.h" #include "tensorflow/core/framework/register_types.h" #include "tensorflow/core/framework/types.h" #include "tensorflow/core/platform/types.h" namespace tensorflow { typedef Eigen::GpuDevice GPUDevice;...
808
930
# Directory Tree Generator import os import argparse def realname(path, root=None): if root is not None: path = os.path.join(root, path) result = os.path.basename(path) if os.path.islink(path): realpath = os.readlink(path) result = '%s -> %s' % (os.path.basename(path), realpath) ...
696
451
/*Header-MicMac-eLiSe-25/06/2007 MicMac : Multi Image Correspondances par Methodes Automatiques de Correlation eLiSe : ELements of an Image Software Environnement www.micmac.ign.fr Copyright : Institut Geographique National Author : <NAME> Contributors : <NAME>, <NAME>. [1] <NAME>, <NAM...
6,138
3,140
<filename>tests/attr/test_kernel_shap.py #!/usr/bin/env python3 import io import unittest import unittest.mock from typing import Any, Callable, List, Tuple, Union import torch from captum._utils.typing import BaselineType, TensorOrTupleOfTensorsGeneric from captum.attr._core.kernel_shap import KernelShap from tests....
7,437
575
// Copyright 2017 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/browser/safe_browsing/chrome_cleaner/chrome_cleaner_navigation_util_win.h" #include "chrome/browser/safe_browsing/chrome_cleaner/srt_fie...
663
23,901
<reponame>deepneuralmachine/google-research # coding=utf-8 # Copyright 2021 The Google Research 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...
1,726
2,494
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*- * vim: set ts=8 sts=4 et sw=4 tw=99: */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. *...
1,001
407
<gh_stars>100-1000 package com.alibaba.tesla.appmanager.trait.plugin; import com.alibaba.fastjson.JSONObject; import com.alibaba.tesla.appmanager.common.exception.AppErrorCode; import com.alibaba.tesla.appmanager.common.exception.AppException; import com.alibaba.tesla.appmanager.domain.core.WorkloadResource; import co...
5,586
708
<reponame>sigfox/pkgcloud {"server":{"name":"test-reboot","image":112,"flavor":1,"flavorId":1,"imageId":112,"personality":[]}}
47
755
<filename>rxgroups-annotation-test/src/test/resources/AutoTaggableObserver_Pass_All_CustomTag.java<gh_stars>100-1000 package test; import com.airbnb.rxgroups.AutoResubscribe; import com.airbnb.rxgroups.AutoTag; import com.airbnb.rxgroups.AutoTaggableObserverImpl; public class AutoTaggableObserver_Pass_All_CustomTag {...
199
1,014
{ "EYP.F": { "short_name": "EYDAP S.A. INH EO 0,6", "long_name": "Athens Water Supply and Sewerage Company S.A.", "summary": "Athens Water Supply and Sewerage Company S.A., together with its subsidiaries, engages in the water supply and refinement, and sewerage and waste management acti...
508
1,501
<reponame>osterwood/litex #include <assert.h> #include <stdio.h> #include <stdlib.h> #include <stdint.h> #include <string.h> #include "error.h" #include <event2/listener.h> #include <event2/util.h> #include <event2/event.h> #include <json-c/json.h> #include <zlib.h> #include "tapcfg.h" #include "modules.h" // -------...
14,051
912
# -*- coding: utf-8 -*- ''' # Copyright (c) 2015 Microsoft 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 us...
1,903
791
#ifndef KEYMAP_H #define KEYMAP_H #include "common.h" typedef enum KeyModifier { KM_LeftShift = 1, KM_RightShift = 2, KM_Ctrl = 4, KM_Alt = 8 } KeyModifier; enum { KEY_LEFTSHIFT = 0x2A, KEY_RIGHTSHIFT = 0x36, KEY_CTRL = 0x1D, KEY_ALT = 0x38, KEY_CAPSLOCK = 0x3A, KEY_F1 = 0x3B,...
704
865
from django.contrib.auth.models import AbstractUser from django.db import models from django.db.models.signals import post_save from api.utils.db_functions import make_uuid class User(AbstractUser): roles = [] id = models.UUIDField( primary_key=True, help_text="ID of user", default=ma...
387
589
// // Copyright (c) 2019 Advanced Micro Devices, Inc. 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 /...
1,564
631
{ "manifestVersion": 1.0, "id": "vss-services-beatpulse-gate", "name": "Xabaril BeatPulse Release Gate", "publisher": "luisfraile", "version": "1.0.1", "public": true, "description": "VSTS BeatPulse extensions.", "categories": ["Build and release"], "Tags": ["BeatPulse", "Liveness", "Release", "Relea...
536
9,425
<gh_stars>1000+ import logging import os import pytest import salt.serializers.json as jsonserializer import salt.serializers.msgpack as msgpackserializer import salt.serializers.plist as plistserializer import salt.serializers.python as pythonserializer import salt.serializers.yaml as yamlserializer import salt.state...
2,540
310
{ "name": "<NAME>", "description": "The Jammy Dodger is the best-tasting shot that will ever grace your mouth. You won't be grimacing when you knock this one back!", "github": "CalumChamberlain", "ingredients": [ { "quantity": "3 quarters", "measure": "shot", ...
479
504
#include <stdio.h> #include <stdlib.h> #include <string.h> int main(int argc,char *argv[]) { char *buf = NULL; char *p,*label,*proc; size_t len = 0; unsigned short seg,seg_valid; unsigned short ofs; int nread = 0; FILE *f = fopen(argv[1], "r"); ...
1,087
343
class InvokeDynamicTest { interface InterfaceTest { public String callee(String name); } public static void main(String[] args) { InterfaceTest it = v -> { return "Hello" + v; }; System.out.println(it.callee(" World!")); } }
111
450
from pychecker2.Check import Check from pychecker2.Check import Warning from pychecker2 import symbols from pychecker2.util import * from compiler.misc import mangle from compiler import ast, walk _ignorable = {} for ignore in ['repr', 'dict', 'class', 'doc', 'str']: _ignorable['__%s__' % ignore] = 1 class GetDe...
6,881
1,676
package sdk.chat.core.handlers; import java.util.Map; import io.reactivex.Completable; import sdk.chat.core.dao.Message; import sdk.chat.core.push.BroadcastHandler; /** * Created by SimonSmiley-Andrews on 01/05/2017. */ public interface PushHandler { Completable subscribeToPushChannel(String channel); Co...
196
2,483
<filename>sqflite/android/src/main/java/com/tekartik/sqflite/operation/BatchOperation.java package com.tekartik.sqflite.operation; import java.util.HashMap; import java.util.List; import java.util.Map; import io.flutter.plugin.common.MethodChannel; import static com.tekartik.sqflite.Constant.PARAM_ERROR; import stat...
1,226
1,056
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
9,538
17,104
/* Copyright <NAME> 2008-2015 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_PREDEF_OS_LINUX_H #define BOOST_PREDEF_OS_LINUX_H #include <boost/predef/version_number.h> #include <boost/predef/make.h> /...
479
364
<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 * (...
2,137
7,137
package io.onedev.server.entitymanager; import java.util.List; import java.util.Map; import io.onedev.server.model.Agent; import io.onedev.server.model.AgentAttribute; import io.onedev.server.persistence.dao.EntityManager; public interface AgentAttributeManager extends EntityManager<AgentAttribute> { List<String>...
124
45,293
<gh_stars>1000+ /* * Copyright 2010-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ #include "Memory.h" #include "MemoryPrivate.hpp" #include "Exceptions.h" #include "ExtraObjectData.hpp" #include "Freezing.hpp" #include "GC.hpp" #incl...
7,104
2,219
<filename>src/third_party/nasm/travis/nasm-t.py #!/usr/bin/python3 import subprocess import argparse import difflib import filecmp import fnmatch import json import sys import re import os fmtr_class = argparse.ArgumentDefaultsHelpFormatter parser = argparse.ArgumentParser(prog = 'nasm-t.py', ...
6,740
1,874
<filename>nova/compute/provider_config.py # 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 la...
8,910
313
/* * Copyright 2018 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 * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed t...
1,525
818
/* * Copyright 2021 Red Hat, Inc. and/or its affiliates. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by a...
2,336
333
/* ** EPITECH PROJECT, 2021 ** RANSOM_H_ ** File description: ** ransom */ #ifndef RANSOM_H_ #define RANSOM_H_ #include <string.h> #include <stdio.h> #include <stdlib.h> #include <dirent.h> #include <sodium.h> #include <sys/types.h> #include <dirent.h> #include <unistd.h> #include <pwd.h> #include <stdbool.h> #inclu...
1,144
474
package com.thinkkeep.videolib.di.component; import android.content.Context; import com.thinkkeep.videolib.api.EvilsLiveStreamer; import com.thinkkeep.videolib.di.modules.CameraModule; import dagger.Component; /** * Created by jason on 17/2/27. */ @Component(modules = CameraModule.class) public interface CameraCo...
239
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 ...
804
418
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Generated from FHIR 4.0.0-a53ec6ee1b (http://hl7.org/fhir/StructureDefinition/SubstanceNucleicAcid) on 2019-05-07. # 2019, SMART Health IT. from . import domainresource class SubstanceNucleicAcid(domainresource.DomainResource): """ Nucleic acids are defined by ...
4,216
365
<reponame>yellingviv/incubator-spot # # 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...
968
823
<gh_stars>100-1000 import pickle import clickhouse_driver.errors as err def picklable(o): picked = pickle.loads(pickle.dumps(o)) assert repr(o) == repr(picked) assert str(o) == str(picked) def test_exception_picklable(): picklable(err.Error('foo')) picklable(err.Error(message='foo')) pickl...
170
432
<reponame>lambdaxymox/DragonFlyBSD /* * Copyright (c) 1998-2002 <NAME>, Universita` di Pisa * Portions Copyright (c) 2000 Akamba Corp. * 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....
5,730