max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
359 | /*
* Copyright (C) 2020-2021, Xilinx Inc - All rights reserved
* Xilinx Runtime (XRT) Experimental APIs
*
* 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/licen... | 8,402 |
319 | <reponame>ajmadsen/magnum<filename>magnum/common/nova.py
# Copyright 2019 Catalyst Cloud 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/license... | 443 |
494 | /*
* 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 ... | 8,646 |
521 | /* $Id: getrawsock.c $ */
/** @file
* Obtain raw-sockets from a server when debugging unprivileged.
*/
/*
* Copyright (C) 2013-2017 Oracle Corporation
*
* This file is part of VirtualBox Open Source Edition (OSE), as
* available from http://www.virtualbox.org. This file is free software;
* you can redistribute ... | 1,845 |
930 | <reponame>ansi88/weixin4j<gh_stars>100-1000
package com.foxinmy.weixin4j.mp.test;
import java.util.List;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
import com.foxinmy.weixin4j.exception.WeixinException;
import com.foxinmy.weixin4j.http.weixin.ApiResult;
import com.foxinmy.weixin4j.mp.ap... | 953 |
466 | #pragma once
#include <glad/glad.h>
#include <GLFW/glfw3.h>
#include <camera.h>
#include <iostream>
class Window
{
public:
//initializer
Window(int& success, unsigned int SCR_WIDTH = 1600, unsigned int SCR_HEIGHT = 900, std::string name = "TerrainEngine OpenGL");
~Window();
GLFWwindow * w;
GLFWwindow * getWind... | 491 |
1,279 | import json
def get_queue_policy(queue_url, sqs_client):
result = sqs_client.get_queue_attributes(QueueUrl=queue_url, AttributeNames=["Policy"])
policy_document = result["Attributes"]["Policy"]
policy = json.loads(policy_document)
return policy["Statement"]
def get_function_versions(function_name, l... | 267 |
6,044 | <reponame>hantwister/CrackMapExec<gh_stars>1000+
from impacket.smb3structs import FILE_READ_DATA, FILE_WRITE_DATA
class RemoteFile:
def __init__(self, smbConnection, fileName, share='ADMIN$', access = FILE_READ_DATA | FILE_WRITE_DATA ):
self.__smbConnection = smbConnection
self.__share = share
... | 645 |
12,718 | #include "stdio_impl.h"
#include <stdio_ext.h>
size_t __freadahead(FILE *f)
{
return f->rend ? f->rend - f->rpos : 0;
}
const char *__freadptr(FILE *f, size_t *sizep)
{
if (f->rpos == f->rend) return 0;
*sizep = f->rend - f->rpos;
return (const char *)f->rpos;
}
void __freadptrinc(FILE *f, size_t inc)
{
f->rpos... | 187 |
448 | <filename>src/server/src/main/java/io/cassandrareaper/storage/cassandra/MultiIpPerNodeAddressTranslator.java<gh_stars>100-1000
/*
* Copyright 2019-2019 The Last Pickle Ltd
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You... | 796 |
1,831 | <filename>logdevice/common/ThriftCommonStructConverter.h<gh_stars>1000+
/**
* Copyright (c) 2017-present, Facebook, Inc. and its 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.
*/
#pragma once
#... | 589 |
2,151 | #include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include "brl_checks.h"
int
main(int argc, char **argv)
{
int result = 0;
const char* txt = "Fussball-Vereinigung";
const char* table = "inpos_match_replace.ctb";
const char* brl = "FUSSBALL-V7EINIGUNG";
const int inpos[] = {0,1,2,3,4,5,6,7,8,9,... | 212 |
879 | package com.bookstore.dto;
public record AuthorDto(String name, int age) {}
| 25 |
575 | <reponame>jason-fox/Fast-RTPS
// Copyright 2020 Proyectos y Sistemas de Mantenimiento SL (eProsima).
//
// 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/licens... | 567 |
5,169 | {
"name": "C0T0",
"version": "0.2.1",
"summary": "HTTP networking library.",
"description": "HTTP networking library written in Swift.",
"homepage": "https://github.com/tooploox/C0T0",
"license": "MIT",
"authors": {
"TPLX iOS team": "<EMAIL>"
},
"platforms": {
"ios": "10.0"
},
"source": {
... | 208 |
922 | <filename>reports/graphs/__init__.py<gh_stars>100-1000
from .bmi_change import bmi_change # NOQA
from .diaperchange_amounts import diaperchange_amounts # NOQA
from .diaperchange_lifetimes import diaperchange_lifetimes # NOQA
from .diaperchange_types import diaperchange_types # NOQA
from .feeding_amounts import feed... | 253 |
655 | <reponame>lookingatstarts/bulbasaur<gh_stars>100-1000
package com.tmall.pokemon.bulbasaur.persist.domain;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
public class ParticipationDOExample {
protected String orderByClause;
protected boolean distinct;
protected List<Criteria> o... | 11,236 |
632 | /************************************************************************
Modifications Copyright 2017-2019 eBay Inc.
Author/Developer(s): <NAME>
Original Copyright:
See URL: https://github.com/datatechnology/cornerstone
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except ... | 429 |
2,542 | <gh_stars>1000+
// ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
// ------------------------------------------------------------
#include "Comm... | 1,232 |
1,133 | <filename>components/isceobj/IsceProc/runUnwrapSnaphu.py
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# Copyright 2014 California Institute of Technology. ALL RIGHTS RESERVED.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in c... | 1,792 |
623 | <filename>java/com/google/gerrit/acceptance/testsuite/change/FileContentBuilder.java
// 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
... | 987 |
4,054 | // Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#include <vespa/vespalib/testkit/test_kit.h>
#include <vespa/eval/eval/function.h>
#include <vespa/searchlib/features/max_reduce_prod_join_replacer.h>
#include <vespa/searchlib/features/rankingexpression/feature_n... | 1,955 |
348 | <reponame>chamberone/Leaflet.PixiOverlay<gh_stars>100-1000
{"nom":"Vauchoux","circ":"1ère circonscription","dpt":"Haute-Saône","inscrits":91,"abs":42,"votants":49,"blancs":7,"nuls":8,"exp":34,"res":[{"nuance":"REM","nom":"Mme <NAME>","voix":22},{"nuance":"FN","nom":"Mme <NAME>","voix":12}]} | 123 |
335 | <reponame>Safal08/Hacktoberfest-1
{
"word": "Oversupply",
"definitions": [
"Supply with too much or too many."
],
"parts-of-speech": "Verb"
} | 80 |
4,339 | /*
* 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 ... | 684 |
852 | <gh_stars>100-1000
// -*- C++ -*-
//
// Package: Core
// Class : FWModelExpressionSelector
//
// Implementation:
// <Notes on implementation>
//
// Original Author: <NAME>
// Created: Wed Jan 23 10:37:22 EST 2008
//
// system include files
#include <sstream>
#include "TClass.h"
#include "FWCore/... | 1,150 |
1,780 | //
// REDateTimeItem.h
// RETableViewManager
//
// Copyright (c) 2013 <NAME> (https://github.com/romaonthego)
//
// 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, includ... | 959 |
542 | from decimal import Decimal
from hummingbot.connector.in_flight_order_base import InFlightOrderBase
from hummingbot.core.data_type.common import OrderType, TradeType
class MexcInFlightOrder(InFlightOrderBase):
def __init__(self,
client_order_id: str,
exchange_order_id: str,
... | 735 |
476 | /*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distribut... | 814 |
367 | <reponame>Ryan-rsm-McKenzie/m.css
/// @file
/// A file
/// A typedef
typedef int Typedef;
//! An enum
enum Enum {
Value, //!< A brief description
Another, /**< A detailed description */
/**
* @brief A brief description
*
* And a detailed one as well.
*/
Last
};
| 133 |
348 | {"nom":"Saint-Paul-et-Valmalle","circ":"4ème circonscription","dpt":"Hérault","inscrits":871,"abs":541,"votants":330,"blancs":35,"nuls":11,"exp":284,"res":[{"nuance":"REM","nom":"<NAME>","voix":181},{"nuance":"FN","nom":"<NAME>","voix":103}]} | 98 |
348 | <reponame>chamberone/Leaflet.PixiOverlay<filename>docs/data/leg-t2/029/02905075.json
{"nom":"Guipavas","circ":"5ème circonscription","dpt":"Finistère","inscrits":10793,"abs":5781,"votants":5012,"blancs":386,"nuls":118,"exp":4508,"res":[{"nuance":"REM","nom":"<NAME>","voix":2676},{"nuance":"DVD","nom":"M. <NAME>","voix"... | 137 |
686 | /* BSD 3-Clause License
*
* Copyright © 2008-2021, Jice and the libtcod contributors.
* 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 ... | 1,204 |
455 | // Copyright (c) 2020-2021 HexHacking Team
//
// 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, p... | 1,026 |
372 | <filename>lwadtool/libadtool/set.c
/*
* Copyright © BeyondTrust Software 2004 - 2019
* 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.apach... | 2,049 |
4,526 |
#include <cstring>
#include <stdexcept>
#include "common.hpp"
class TestHandler114 : public osmium::handler::Handler {
public:
TestHandler114() :
osmium::handler::Handler() {
}
void way(const osmium::Way& way) const {
if (way.id() == 114800) {
REQUIRE(way.version() == 1);
... | 642 |
476 | // Copyright 2013 <NAME>
// Distributed under Boost license
#ifdef __linux__
#define BOOST_TEST_DYN_LINK
#endif
#include <boost/test/unit_test.hpp>
#include <sstream>
#include <vector>
#include <utility>
#include <ctime>
#include <jsoncons/json.hpp>
#include <jsoncons/detail/heap_only_string.hpp>
using namespace jso... | 494 |
348 | {"nom":"Marles-sur-Canche","circ":"4ème circonscription","dpt":"Pas-de-Calais","inscrits":238,"abs":102,"votants":136,"blancs":8,"nuls":4,"exp":124,"res":[{"nuance":"REM","nom":"<NAME>","voix":65},{"nuance":"LR","nom":"<NAME>","voix":59}]} | 98 |
14,668 | // 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.
package org.chromium.components.content_capture;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
import static org... | 1,530 |
392 | /*******************************************************************************
* Copyright (c) 2015
*
* 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 withou... | 594 |
1,615 | <filename>MLN-Android/mlnservics/src/main/java/com/immomo/mls/global/LVConfig.java<gh_stars>1000+
/**
* Created by MomoLuaNative.
* Copyright (c) 2019, Momo Group. All rights reserved.
*
* This source code is licensed under the MIT.
* For the full copyright and license information,please view the LICENSE file... | 456 |
418 | <reponame>UnifiQ/FEMFX<filename>amd_femfx/inc/FEMFXRigidBodyState.h
/*
MIT License
Copyright (c) 2019 Advanced Micro Devices, Inc.
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 restrict... | 982 |
336 | <gh_stars>100-1000
#include "Ext_Flash.c"
#include <stdint.h>
#include <stdbool.h>
#include "library/STM32F10x_StdPeriph_Driver/inc/misc.h"
#include "lcd.h"
#ifdef DISABLE_USB
void __USB_Istr(void) {}
void __CTR_HP(void) {}
#endif
extern void (* g_pfnVectors[76])(void);
extern uint32_t gGpioStatusCode;
extern uint32_... | 5,787 |
3,269 | # Time: O(n)
# Space: O(h)
class Node(object):
def __init__(self, val, children):
self.val = val
self.children = children
class Solution(object):
def maxDepth(self, root):
"""
:type root: Node
:rtype: int
"""
if not root:
return 0
d... | 217 |
831 | <reponame>qq1056779951/android<gh_stars>100-1000
/*
* 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/... | 1,062 |
337 | <gh_stars>100-1000
//file
package demo;
class Test {
Test(int i) {
}
void test() {
byte b = 10;
new Test(b);
}
} | 60 |
393 | <filename>diffusion/models/models.py
from . import cc12m_1, danbooru_128, imagenet_128, wikiart_128, wikiart_256, yfcc_1, yfcc_2
models = {
'cc12m_1': cc12m_1.CC12M1Model,
'cc12m_1_cfg': cc12m_1.CC12M1Model,
'danbooru_128': danbooru_128.Danbooru128Model,
'imagenet_128': imagenet_128.ImageNet128Model,
... | 277 |
10,225 | <filename>extensions/vault/runtime/src/main/java/io/quarkus/vault/pki/CRLData.java
package io.quarkus.vault.pki;
import java.security.cert.CRLException;
import java.security.cert.X509CRL;
public interface CRLData {
/**
* Format of {@link #getData()} property.
*/
DataFormat getFormat();
/**
... | 826 |
1,148 | #include<stdio.h>
#include<conio.h>
void main()
{
int a,b;
clrscr();
printf("Enter the first element: ");
scanf("%d",&a);
printf("Enter the second element: ");
scanf("%d",&b);
a=a+b;
b=a-b;
a=a-b;
printf("Element after swapping: \n");
printf("First element is %d",a);
printf("Second element is %d",b);
}
/*Swapping of ... | 241 |
2,216 | <gh_stars>1000+
# Copyright (c) OpenMMLab. All rights reserved.
import mmcv
import numpy as np
import torch
from os import path as osp
from mmdet3d.core.bbox import DepthInstance3DBoxes
from mmdet3d.datasets.pipelines import Compose
def test_scannet_pipeline():
class_names = ('cabinet', 'bed', 'chair', 'sofa', '... | 6,831 |
471 | from django.core.management import BaseCommand
class Command(BaseCommand):
"""
Set cleanliness flags for a domain, or for all domains
"""
def add_arguments(self, parser):
parser.add_argument(
'domain',
nargs='?',
)
parser.add_argument(
'--fo... | 403 |
3,102 | <filename>clang/test/Analysis/diagnostics/dtors.cpp
// RUN: %clang_analyze_cc1 -std=c++14 -w -analyzer-checker=core,cplusplus -analyzer-output=text -verify %s
namespace no_crash_on_delete_dtor {
// We were crashing when producing diagnostics for this code, but not for the
// report that it currently emits. Instead, St... | 504 |
1,738 | /*
* 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 provided, by the license below or t... | 426 |
488 | #ifndef MRSH_GETOPT_H
#define MRSH_GETOPT_H
extern char *_mrsh_optarg;
extern int _mrsh_opterr, _mrsh_optind, _mrsh_optopt;
int _mrsh_getopt(int argc, char * const argv[], const char *optstring);
#endif
| 96 |
675 | #include "box2d_shape_circle.h"
#include "box2d_module.h"
namespace Echo
{
Box2DShapeCircle::Box2DShapeCircle()
{
}
Box2DShapeCircle::~Box2DShapeCircle()
{
}
void Box2DShapeCircle::bindMethods()
{
CLASS_BIND_METHOD(Box2DShapeCircle, getRadius);
CLASS_BIND_METHOD(Box2DShapeCircle, setRadius);
CLASS_REG... | 452 |
5,168 | /**
* \file src/core/include/megbrain/utils/json.h
* MegEngine is Licensed under the Apache License, Version 2.0 (the "License")
*
* Copyright (c) 2014-2021 Megvii Inc. All rights reserved.
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on a... | 2,030 |
348 | {"nom":"Saint-Eloi","circ":"1ère circonscription","dpt":"Creuse","inscrits":167,"abs":72,"votants":95,"blancs":19,"nuls":4,"exp":72,"res":[{"nuance":"REM","nom":"<NAME>","voix":52},{"nuance":"LR","nom":"<NAME>","voix":20}]} | 89 |
434 | <reponame>HungMingWu/librf<gh_stars>100-1000
#pragma once
#if ASIO_VERSION >= 101200
#include "asio_task_1.12.0.inl"
#else
#include "asio_task_1.10.0.inl"
#endif
| 83 |
724 | /* register invoke and init handler.
*/
#include "echo_handler.h"
#include "entrypoint.h"
using namespace Aliyun::FC::Handlers;
void SetInvokeAndInitHander()
{
CustomRuntimeHandler::httpHandler = new EchoHttpHandler();
} | 70 |
1,831 | /**
* Copyright (c) 2017-present, Facebook, Inc. and its 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.
*/
#pragma once
#include "logdevice/common/Request.h"
#include "logdevice/common/protocol... | 312 |
311 | package org.thunlp.tagsuggest.dataset;
import java.io.File;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import java.util.Random;
import java.util.logging.Logger;
import org.apache.hadoop.fs.Path;
import org.apache.hadoop.io.Text;
import org.apache.hadoop.m... | 2,492 |
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... | 1,694 |
1,118 |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <traildb.h>
int main(int argc, char **argv)
{
const char *fields[] = {"username", "action"};
tdb_error err;
tdb_cons* cons = tdb_cons_init();
if ((err = tdb_cons_open(cons, "tiny", fields, 2))){
printf("Opening TrailDB const... | 1,185 |
684 | <gh_stars>100-1000
/* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, so... | 764 |
461 | from scapy.all import arpcachepoison, conf
import ipaddress
conf.verb = 0
def arpoison(target1, target2, interval=5):
try:
ipaddress.ip_address(target1)
ipaddress.ip_address(target2)
except ValueError:
print("Bad IP address")
return 1
arpcachepoison(target1, target2, inte... | 151 |
411 | class Get {
int get(int a[], int j) {
for(int i = 0; i < 4; i++) a[i] = i;
return a[j];
}
}
| 67 |
3,978 | <filename>XCL-Charts-demo/src/com/demo/xclcharts/MainActivity.java
/**
* Copyright 2014 XCL-Charts
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/lice... | 3,392 |
432 | /*
* Copyright 2019 <NAME>, <EMAIL>
*
* 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 ... | 603 |
384 | /*
* This file is part of the GROMACS molecular simulation package.
*
* Copyright (c) 2020,2021, by the GROMACS development team, led by
* <NAME>, <NAME>, <NAME>, and <NAME>,
* and including many others, as listed in the AUTHORS file in the
* top-level source directory and at http://www.gromacs.org.
*
* GROMACS... | 1,486 |
868 | <gh_stars>100-1000
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "L... | 2,245 |
3,372 | /*
* Copyright 2016-2021 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
* the License. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "licen... | 2,210 |
677 | package io.qyi.e5.github.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
/**
* <p>
*
* </p>
*
* @author 落叶
* @since 2020-02-24
... | 379 |
348 | {"nom":"Sinnamary","circ":"2ème circonscription","dpt":"Guyane","inscrits":1951,"abs":1282,"votants":669,"blancs":20,"nuls":5,"exp":644,"res":[{"nuance":"REG","nom":"<NAME>","voix":513},{"nuance":"REM","nom":"<NAME>","voix":131}]} | 91 |
909 | <reponame>tanyeun/JavaCodeInterview
import org.junit.Test;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
import static org.junit.Assert.assertEquals;
public class SearchMazeTest {
private final Boolean w = true;
private final Boolean b = false;
private List<Tuple> expect... | 1,756 |
1,056 | <filename>ide/editor.macros/src/org/netbeans/modules/editor/macros/storage/ui/MacrosPanelController.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 owners... | 1,144 |
938 | <filename>rabbit-base/src/main/java/com/susion/rabbit/base/entities/RabbitReportInfo.java
package com.susion.rabbit.base.entities;
import com.google.gson.annotations.SerializedName;
import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Id;
import java.util.Objects;
import org.g... | 1,262 |
1,217 | <reponame>lishaojiang/GameEngineFromScratch<filename>Framework/Interface/Interface.hpp
#pragma once
#define _Interface_ class
#define _inherits_ public
#define _implements_ public
| 59 |
312 | /*******************************************************************************
* Copyright (c) 2015 Eclipse RDF4J contributors, Aduna, and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Distribution License v1.0
* which accompanies th... | 319 |
679 | <filename>main/extensions/source/bibliography/bibcont.cxx
/**************************************************************
*
* 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
* regardin... | 2,503 |
1,450 | from pdb import set_trace as T
import numpy as np
import time
from kivy.uix.widget import Widget
from kivy.config import Config
rad = 80
sz = 500
pi = 3.14159265
class Transform(Widget):
def __init__(self, **kwargs):
super().__init__(**kwargs)
self.zoom = Zoom()
self.pan = Pan('left'... | 2,248 |
49,076 | <reponame>nicchagil/spring-framework<filename>spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/method/annotation/ServletRequestDataBinderFactory.java
/*
* Copyright 2002-2017 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this fil... | 601 |
337 | from manga_py.provider import Provider
from .helpers.std import Std
class MangaHubIo(Provider, Std):
_api = 'https://api.mghubcdn.com/graphql'
_cdn = 'https://img.mghubcdn.com/file/imghub/'
def get_chapter_index(self) -> str:
chapter = self.chapter
return self.re.search(r'/chapter/[^/]+/\... | 726 |
4,047 | #!/usr/bin/env python3
# SPDX-License-Identifier: Apache-2.0
# Copyright © 2021 Intel Corproation
import argparse
import shutil
def main() -> None:
parser = argparse.ArgumentParser()
parser.add_argument('src')
parser.add_argument('dest')
args = parser.parse_args()
shutil.copy(args.src, args.dest)... | 135 |
661 | f = 'apolonia.txt'
with open(f, 'r') as _f:
source = _f.read()
print(source.split('\n'))
| 46 |
404 | // Copyright (c) 2013-2019 K Team. All Rights Reserved.
package org.kframework.backend.java.kil;
import java.util.Iterator;
import java.util.List;
import java.util.stream.Stream;
import org.kframework.backend.java.symbolic.Transformer;
import org.kframework.backend.java.symbolic.Visitor;
import org.kframework.backend... | 2,370 |
625 | package javatest.nio;
import com.jtransc.charset.ModifiedUtf8;
import java.io.IOException;
import java.util.Arrays;
import java.util.Objects;
public class ModifiedUtf8Test {
static public void main(String[] args) throws IOException {
System.out.println("ModifiedUtf8Test.main:");
expect(new byte[]{0, 5, 104, 101... | 492 |
511 | //******************************************************************
//
// Copyright 2016 Samsung Electronics All Rights Reserved.
//
//-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance... | 2,657 |
2,151 | <reponame>zipated/src
# Copyright 2015 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
from code import Code
from model import PropertyType
from datetime import datetime
LICENSE = """// Copyright %s The Chromium Authors.... | 2,907 |
516 | <reponame>zzwlstarby/parity
/*
* Copyright 2014 Parity 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 ... | 998 |
2,663 | {
"topic": "Frequently Asked Questions",
"pageNumber": "2",
"type": "How does the system handle changes to trading system during live trading?",
"definition": {
"text": "You need to restart the Trading Session and sometimes the Task in order for the Bot to get the new definitions.",
"upd... | 341 |
455 | <reponame>openrefactory/cassandra
/*
* 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,305 |
364 | <reponame>jasonfeihe/BitFunnel
// The MIT License (MIT)
// Copyright (c) 2016, Microsoft
// 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... | 1,226 |
14,668 | <reponame>chromium/chromium
// Copyright 2019 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "media/fuchsia/cdm/service/fuchsia_cdm_manager.h"
#include <fuchsia/media/drm/cpp/fidl.h>
#include <lib/fidl/cpp/bin... | 5,609 |
1,418 | <reponame>ririripley/recipes<filename>java/pdf/com/chenshuo/pdf/PdfHack.java<gh_stars>1000+
package com.chenshuo.pdf;
import java.io.FileOutputStream;
import com.itextpdf.text.Document;
import com.itextpdf.text.PageSize;
import com.itextpdf.text.Rectangle;
import com.itextpdf.text.pdf.PdfContentByte;
import com.itext... | 2,668 |
5,169 | {
"name": "NetworkClient",
"version": "0.0.17",
"license": {
"type": "MIT",
"text": " MIT License\n\nCopyright (c) 2019 <NAME>\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Softwar... | 681 |
2,813 | <reponame>fernandes-natanael/jabref
package org.jabref.gui.maintable;
import java.util.HashMap;
import java.util.Map;
import javax.swing.undo.UndoManager;
import javafx.scene.Node;
import org.jabref.gui.externalfiletype.ExternalFileType;
import org.jabref.gui.externalfiletype.ExternalFileTypes;
import org.jabref.gu... | 1,869 |
3,680 | #!/pxrpythonsubst
#
# Copyright 2017 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 deleted and replaced with:
#
... | 1,322 |
1,144 | {
"priceSystemName": "TestPriceSystem",
"priceListName": "TestPriceList",
"pricePrecision": "3",
"currency": "CHF",
"country": "Switzerland"
} | 66 |
9,959 | class WithOnStatic {
@lombok.With static boolean foo;
@lombok.With static int bar;
}
| 32 |
14,668 | // Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "device/bluetooth/test/mock_bluetooth_advertisement.h"
namespace device {
MockBluetoothAdvertisement::MockBluetoothAdvertisement() = default;
... | 195 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.