max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
365 | /*
* 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 License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be use... | 1,456 |
3,002 | package com.apollographql.apollo;
import com.apollographql.apollo.api.Response;
import com.apollographql.apollo.api.Subscription;
import com.apollographql.apollo.exception.ApolloCanceledException;
import com.apollographql.apollo.exception.ApolloException;
import com.apollographql.apollo.internal.util.Cancelable;
impo... | 1,256 |
345 | # lfs imports
from lfs.checkout.settings import CHECKOUT_TYPE_ANON
from lfs.core.utils import get_default_shop
from django.conf import settings
def main(request):
"""context processor for lfs
"""
shop = get_default_shop(request)
return {
"SHOP": shop,
"ANON_ONLY": shop.checkout_type =... | 160 |
612 | <filename>parse/src/test/java/com/parse/ParseTextUtilsTest.java
/*
* Copyright (c) 2015-present, Parse, LLC.
* 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. An additional grant
* of patent rights can be foun... | 803 |
1,189 | <reponame>serkan-korkut-oss-test/opentelemetry-java
/*
* Copyright The OpenTelemetry Authors
* SPDX-License-Identifier: Apache-2.0
*/
package io.opentelemetry.sdk.resources;
import static org.assertj.core.api.Assertions.assertThat;
import io.opentelemetry.sdk.autoconfigure.OpenTelemetryResourceAutoConfiguration;
... | 266 |
359 | package com.github.thomasdarimont.keycloak.eventlistener.kafka;
import org.apache.kafka.clients.producer.KafkaProducer;
import org.apache.kafka.clients.producer.Producer;
import org.apache.kafka.clients.producer.ProducerConfig;
import org.apache.kafka.common.serialization.StringSerializer;
import java.util.Map;
impor... | 547 |
1,346 | <gh_stars>1000+
def build_version(base, branch):
version = '.'.join([str(x) for x in base])
if branch == 'master':
return version
return version + '-' + branch
| 69 |
841 | package org.jboss.resteasy.test.cdi.basic.resource;
import jakarta.ejb.Local;
import jakarta.ejb.Timeout;
import jakarta.ejb.Timer;
import jakarta.ws.rs.core.Response;
@Local
public interface OutOfBandResourceIntf {
Response scheduleTimer();
Response testTimer() throws InterruptedException;
@Timeout
voi... | 119 |
1,738 | <filename>dev/Code/Sandbox/Editor/Include/IDataBaseManager.h
/*
* 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... | 1,525 |
348 | <reponame>chamberone/Leaflet.PixiOverlay
{"nom":"Champigny-lès-Langres","circ":"1ère circonscription","dpt":"Haute-Marne","inscrits":313,"abs":144,"votants":169,"blancs":15,"nuls":10,"exp":144,"res":[{"nuance":"REM","nom":"<NAME>","voix":98},{"nuance":"LR","nom":"<NAME>","voix":46}]} | 117 |
3,976 | <gh_stars>1000+
#coding=utf-8
import os
from PIL import Image
from PIL import ImageDraw
from PIL import ImageFont
path = os.path.split(os.path.realpath(__file__))[0]
src = path+"/img.jpg"
dst = path+"/res.jpg"
s = Image.open(src)
D = ImageDraw.Draw(s)
w,h = s.size
D.text((w-100,0), u"4", font=ImageFont.truetype(os.path... | 178 |
487 | <gh_stars>100-1000
// Copyright 2017-2020 The Verible 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 ... | 1,403 |
14,425 | <filename>hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/FsShell.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 ... | 4,633 |
3,428 | <reponame>ghalimi/stdlib
{"id":"01902","group":"easy-ham-1","checksum":{"type":"MD5","value":"7911c2c7f6b6f3ca8ecf8fc35df8aa28"},"text":"From <EMAIL> Thu Sep 26 11:02:56 2002\nReturn-Path: <<EMAIL>>\nDelivered-To: y<EMAIL>ass<EMAIL>int.org\nReceived: from localhost (jalapeno [127.0.0.1])\n\tby jmason.org (Postfix) wit... | 543 |
303 | #ifndef REDROID_LIST_HDR
#define REDROID_LIST_HDR
#include <stdbool.h>
#include <stddef.h>
typedef struct list_iterator_s list_iterator_t;
typedef struct list_s list_t;
/*
* Function: list_iterator_create
* Create an iterator for a list.
*
* Parameters:
* list - The list to create an iterator of.
... | 2,209 |
1,640 | <filename>src/main/java/com/gitblit/wicket/charting/Chart.java
/*
* Copyright 2011 gitblit.com.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/lic... | 1,392 |
690 | package com.squareup.javapoet;
import com.artemis.generator.model.type.TypeDescriptor;
import java.lang.reflect.ParameterizedType;
import java.lang.reflect.Type;
import java.util.ArrayList;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
/**
* Extends JavaPoet with TypeName resolver wit... | 814 |
2,083 | <gh_stars>1000+
# test alignment feature
keys('\\\\\\\\A')
keys('\\\\\\\\a')
| 25 |
348 | <filename>docs/data/leg-t2/057/05703155.json
{"nom":"Courcelles-Chaussy","circ":"3ème circonscription","dpt":"Moselle","inscrits":2317,"abs":1450,"votants":867,"blancs":7,"nuls":62,"exp":798,"res":[{"nuance":"LR","nom":"<NAME>-<NAME>","voix":438},{"nuance":"REM","nom":"<NAME>","voix":360}]} | 122 |
630 | import pytest
from flask_monitoringdashboard.database import Endpoint, Request
@pytest.mark.parametrize('endpoint__monitor_level', [3])
def test_overview(dashboard_user, request_1, request_2, endpoint, session):
response = dashboard_user.get('dashboard/api/overview')
assert response.status_code == 200
[... | 2,978 |
14,668 | <reponame>chromium/chromium
// Copyright 2020 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "cc/metrics/dropped_frame_counter.h"
#include <vector>
#include "base/memory/raw_ptr.h"
#include "base/synchronizat... | 12,448 |
329 | """
Created on Oct 21, 2015
@author: xiao
"""
from collections import namedtuple
import numpy as np
# bbox indices
x0 = 0
y0 = 1
x1 = 2
y1 = 3
class Segment(namedtuple("Segment", ["e", "vector"])):
__slots__ = ()
@property
def length(self):
return self.vector[x0] if self.vector[x0] else self... | 2,739 |
421 | <filename>samples/snippets/cpp/VS_Snippets_Remoting/DnsPermission_Constructor/CPP/dnspermission_constructor.cpp
/*
This program demonstrates the 'Constructor' of 'DnsPermission' class.
It creates an instance of 'DnsPermission' class and checks for permission.Then it
creates a 'SecurityElement' Object* and prints it... | 889 |
918 | /*
* 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 ... | 1,316 |
988 | /**
* Copyright (C) 2011-2015 The XDocReport Team <<EMAIL>>
*
* 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
* with... | 1,627 |
640 | <reponame>ghsecuritylab/tomato_egg<filename>release/src/router/samba3/source/tests/trivial.c<gh_stars>100-1000
main()
{
exit(0);
}
| 58 |
2,868 | /*
* Copyright (c) 2017, Intel Corporation
*
* 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 conditions and the follow... | 1,639 |
1,146 | /*
* 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 ... | 6,906 |
3,182 | package de.plushnikov.intellij.plugin.inspection;
import com.intellij.codeInspection.InspectionProfileEntry;
/**
* @author <NAME>
*/
public class DiverseInspectionTest extends LombokInspectionTest {
@Override
protected String getTestDataPath() {
return TEST_DATA_INSPECTION_DIRECTORY + "/diverse";
}
@O... | 244 |
3,084 | <filename>network/wlan/WDI/COMMON/Hotspot20.h<gh_stars>1000+
#ifndef __INC_HOTSPOT20_H
#define __INC_HOTSPOT20_H
RT_STATUS
GAS_OnInitReq(
IN PADAPTER pAdapter,
IN PRT_RFD pRfd,
IN POCTET_STRING posMpdu
);
RT_STATUS
GAS_OnInitRsp(
IN PADAPTER pAdapter,
IN PRT_RFD pRfd,
IN POCTET_STRING pos... | 353 |
436 | /*
* Copyright 2003-2005 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... | 3,531 |
309 | #include <vtkActor.h>
#include <vtkAppendPolyData.h>
#include <vtkCamera.h>
#include <vtkFollower.h>
#include <vtkLinearExtrusionFilter.h>
#include <vtkNamedColors.h>
#include <vtkOutlineFilter.h>
#include <vtkPolyDataMapper.h>
#include <vtkPolyDataReader.h>
#include <vtkProperty.h>
#include <vtkRenderer.h>
#include <v... | 2,472 |
640 | <filename>books_and_notes/professional_courses/Security/sources/extra_books/Hacking:The Art of Exploitation (Second Edition)源代码/booksrc/aslr_execl_exploit.c<gh_stars>100-1000
#include <stdio.h>
#include <unistd.h>
#include <string.h>
char shellcode[]=
"\x31\xc0\x31\xdb\x31\xc9\x99\xb0\xa4\xcd\x80\x6a\x0b\x58\x51\x68"... | 456 |
1,656 | <gh_stars>1000+
/*
* Copyright 2018-2021 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unle... | 677 |
11,052 | package us.codecraft.webmagic.example;
import us.codecraft.webmagic.Site;
import us.codecraft.webmagic.model.ConsolePageModelPipeline;
import us.codecraft.webmagic.model.HasKey;
import us.codecraft.webmagic.model.OOSpider;
import us.codecraft.webmagic.model.annotation.ExtractBy;
import us.codecraft.webmagic.model.anno... | 737 |
839 | /**
* 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 m... | 2,059 |
1,821 | /*
* Copyright 2018- The Pixie 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 ag... | 1,516 |
335 | <filename>R/Ride_verb.json
{
"word": "Ride",
"definitions": [
"Sit on and control the movement of (an animal, typically a horse)",
"Travel on a horse or other animal.",
"Sit on and control (a bicycle or motorcycle)",
"Travel in or on (a vehicle) as a passenger.",
"Travel ... | 394 |
10,225 | <reponame>CraigMcDonaldCodes/quarkus<filename>independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/interceptors/defaultmethod/DefaultMethodBean.java
package io.quarkus.arc.test.interceptors.defaultmethod;
import javax.enterprise.context.ApplicationScoped;
@ApplicationScoped
@ABinding
public class DefaultM... | 181 |
1,144 | <gh_stars>1000+
package de.metas.handlingunits.storage;
/*
* #%L
* de.metas.handlingunits.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 Software Foundation, ... | 694 |
18,396 | <gh_stars>1000+
/*
* err.c
*
* error status reporting functions
*
* <NAME>
* Cisco Systems, Inc.
*/
/*
*
* Copyright(c) 2001-2017 Cisco Systems, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following condi... | 1,346 |
323 | /*
* @Copyright (c) 2018 缪聪(<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 appl... | 6,021 |
312 | <reponame>RichardRanft/Torque6<filename>src/rendering/rendering.cc
//-----------------------------------------------------------------------------
// Copyright (c) 2015 <NAME>
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "... | 6,905 |
1,119 | <filename>src/main/gui/net/sf/jailer/ui/databrowser/whereconditioneditor/WCTypeAnalyser.java
/*
* Copyright 2007 - 2021 <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
*
* ... | 22,253 |
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... | 6,122 |
798 | // Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
#include "stdafx.h"
#include "pal.h"
#include "utils.h"
int CallApplicationProcessMain(int argc, dnx::char_t* argv[], dnx::trace_writer& trace_writer);... | 563 |
368 | /**
* @file http_global.h
* @brief Http全局数据定义
* @author xiangwangfeng <<EMAIL>>
* @data 2011-4-24
* @website www.xiangwangfeng.com
*/
#pragma once
#include "global_defs.h"
const char kget[] = "GET";
const char kpost[] = "POST";
const char kaccept[] = "Accept";
const char kconnection[] = "Connecti... | 370 |
430 | /*
DISKSPD
Copyright(c) Microsoft Corporation
All rights reserved.
MIT License
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... | 41,007 |
310 | <reponame>dreeves/usesthis<filename>gear/software/w/wave.2.json
{
"name": "Wave",
"description": "An accounting and invoicing service.",
"url": "https://www.waveapps.com/"
} | 67 |
357 | /*
*
* Copyright (c) 2012-2015 VMware, 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 ... | 521 |
389 | import cv2
import os
from math import sin, cos, radians
import ctypes
import time
import pygame
def pos(gameDisplay,ge,x,y):
gameDisplay.blit(ge,(x,y))
def blush(gameDisplay,kb):
x = (scl-ix)/2
y = scb-iy
gameDisplay.blit(kb,(x,y))
pygame.display.update()
def eyeloc(gameDisplay,ey... | 2,069 |
3,227 | <gh_stars>1000+
// Copyright (c) 2000 Max-Planck-Institute Saarbruecken (Germany).
// All rights reserved.
//
// This file is part of CGAL (www.cgal.org).
//
// $URL$
// $Id$
// SPDX-License-Identifier: GPL-3.0-or-later OR LicenseRef-Commercial
//
//
// Author(s) : <NAME> <<EMAIL>>
#ifndef CGAL_PARTITION_OPT_CVX_... | 1,601 |
2,542 | <filename>src/prod/src/data/txnreplicator/loggingreplicator/StateProvider.cpp
// ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
// --------------... | 2,901 |
9,782 | <reponame>willianfonseca/presto
/*
* 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... | 331 |
1,442 | <reponame>VersiraSec/epsilon-cfw<gh_stars>1000+
#ifndef LIBA_IEEE754_H
#define LIBA_IEEE754_H
#include <stdint.h>
uint32_t ieee754man32(float x);
uint8_t ieee754exp32(float x);
uint64_t ieee754man64(double x);
uint16_t ieee754exp64(double x);
#endif
| 119 |
5,133 | <reponame>Saljack/mapstruct<gh_stars>1000+
/*
* Copyright MapStruct Authors.
*
* Licensed under the Apache License version 2.0, available at http://www.apache.org/licenses/LICENSE-2.0
*/
package org.mapstruct.ap.test.bugs._1596.dto;
import java.util.ArrayList;
import java.util.List;
/**
* Immutable implementatio... | 2,253 |
5,169 | <reponame>Gantios/Specs
{
"name": "nativebridge-ios",
"version": "0.1.1",
"summary": "The native part of a communication bridge between javascript running in a WKWebView and your app.",
"description": "When used together with its javascript counterpart, 'nativebridge', this framework enables communication betwe... | 297 |
2,177 | <reponame>yagosys/AlfredWorkflow.com
#!/usr/bin/python
# coding=UTF-8
import plistlib
import os.path
preferences = plistlib.readPlist('info.plist')
bundleid = preferences['bundleid']
cache_dir = os.path.expanduser('~/Library/Caches'
'/com.runningwithcrayons.Alfred-2'
... | 2,040 |
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 ... | 3,197 |
585 | /*
* 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,173 |
15,577 | #include <IO/WriteBufferFromString.h>
#include <IO/Operators.h>
#include <Columns/IColumn.h>
#include <Columns/ColumnNullable.h>
#include <Columns/ColumnConst.h>
#include <Core/Field.h>
namespace DB
{
String IColumn::dumpStructure() const
{
WriteBufferFromOwnString res;
res << getFamilyName() << "(size = " <... | 309 |
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.
// ------------------------------------------------------------
#pragma once
... | 5,832 |
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... | 930 |
32,544 | <filename>core-java/src/test/java/com/baeldung/regexp/datepattern/gregorian/testhelper/GregorianDateTestHelper.java
package com.baeldung.regexp.datepattern.gregorian.testhelper;
import com.baeldung.regexp.datepattern.DateMatcher;
import org.junit.Assert;
public class GregorianDateTestHelper {
private final DateM... | 1,964 |
10,876 | <filename>ports/libdisasm/vcpkg.json
{
"name": "libdisasm",
"version-string": "0.23",
"port-version": 9,
"description": "x86 Disassembler Library.",
"homepage": "https://sourceforge.net/projects/bastard",
"dependencies": [
{
"name": "vcpkg-cmake",
"host": true
}
]
}
| 130 |
454 | package com.zfy.social.plugin;
import com.zfy.social.plugin.extension.ConfigExt;
import com.zfy.social.plugin.extension.Settings;
import com.zfy.social.plugin.extension.SocialExt;
import com.zfy.social.plugin.lib.AbstractClassVisitor;
import com.zfy.social.plugin.lib.TransformX;
import com.zfy.social.plugin.lib.UtilX;... | 3,495 |
1,350 | <filename>sdk/cosmos/azure-cosmos/src/test/java/com/azure/cosmos/implementation/batch/PartitionKeyRangeServerBatchRequestTests.java<gh_stars>1000+
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
package com.azure.cosmos.implementation.batch;
import com.azure.cosmos.impl... | 2,925 |
2,199 | /*******************************************************************************
* 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/.
************************************... | 537 |
1,702 | /*
* Copyright 2019-2021 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | 948 |
541 | /**
* The contents of this file are subject to the license and copyright
* detailed in the LICENSE and NOTICE files at the root of the source
* tree and available online at
*
* http://www.dspace.org/license/
*/
package org.dspace.xmlworkflow.state.actions;
import org.dspace.xmlworkflow.state.actions.userassignme... | 328 |
2,890 | <filename>lts-core/src/main/java/com/github/ltsopensource/core/support/CrossClassLoader.java
package com.github.ltsopensource.core.support;
import com.github.ltsopensource.core.logger.Logger;
import com.github.ltsopensource.core.logger.LoggerFactory;
import java.lang.reflect.Field;
import java.util.Vector;
/**
* 用来... | 798 |
5,422 | <filename>src/share/types/operation_type.hpp
#pragma once
#include <nlohmann/json.hpp>
namespace krbn {
enum class operation_type : uint8_t {
none,
// observer -> grabber
momentary_switch_event_arrived,
observed_devices_updated,
caps_lock_state_changed,
// session_monitor -> grabber
console_user_id_chan... | 634 |
1,355 | // Copyright (c) 2018 <NAME>
//
// I am making my contributions/submissions to this project solely in my
// personal capacity and am not conveying any rights to any intellectual
// property of any third parties.
#include <pch.h>
#include <jet/grid_boundary_condition_solver2.h>
using namespace jet;
GridBoundaryCondit... | 457 |
879 | package org.zstack.simulator.consoleproxy;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpEntity;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMe... | 1,594 |
633 | <reponame>kuroyukihime0/ActSwitchAnimTool
package yellow5a5.sample.ShareDemo;
/**
* Created by Yellow5A5 on 16/9/17.
*/
public interface IShare {
void faceBookShareClick();
void twitterShareClick();
void googlePlusShareClick();
}
| 88 |
678 | <reponame>bzxy/cydia<gh_stars>100-1000
/**
* This header is generated by class-dump-z 0.2b.
*
* Source: /System/Library/PrivateFrameworks/GMM.framework/GMM
*/
#import <GMM/XXUnknownSuperclass.h>
__attribute__((visibility("hidden")))
@interface GMMSetHttpCookieResponse : XXUnknownSuperclass {
}
- (void)writeTo:(i... | 198 |
666 | import sys
sys.path.append("../../")
from appJar import gui
app=gui()
app.addCheckBox("b1")
app.addRadioButton("b1", "b1")
app.addButton("BUTTON", None)
app.setFg("pink")
app.setBg("blue")
app.go()
| 85 |
2,603 | /* ---------------------------------------------------------------------------- */
/* Atmel Microcontroller Software Support */
/* SAM Software Package License */
/* -----------------------------------------------------------------... | 5,781 |
335 | {
"word": "Grape",
"definitions": [
"A berry (typically green, purple, or black) growing in clusters on a grapevine, eaten as fruit and used in making wine.",
"Wine."
],
"parts-of-speech": "Noun"
} | 93 |
1,435 | # Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use ... | 1,751 |
1,351 | <reponame>cmcfarlen/trafficserver
/** @file
A brief file description
@section license License
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 A... | 1,417 |
1,224 | <reponame>edwardtheharris/fava
"""Parsing and computing budgets."""
import datetime
from collections import Counter
from collections import defaultdict
from typing import Dict
from typing import List
from typing import NamedTuple
from typing import Tuple
from typing import TYPE_CHECKING
from beancount.core.data import... | 2,524 |
3,097 | <filename>Wuxianda/Classes/Src/Video/Controllers/YPMoviePlayerViewController.h
//
// YPMoviePlayerViewController.h
// Wuxianda
//
// Created by 胡云鹏 on 16/5/15.
// Copyright © 2016年 michaelhuyp. All rights reserved.
// 视频播放器
#import <UIKit/UIKit.h>
#import <IJKMediaFramework/IJKMediaFramework.h>
@interface YPMovi... | 187 |
852 | <gh_stars>100-1000
#ifndef TrackAssociator_FiducialVolume_h
#define TrackAssociator_FiducialVolume_h 1
// -*- C++ -*-
//
// Package: TrackAssociator
// Class: FiducialVolume
//
/*
Description: detector active volume described by a closed cylinder with non-zero thickness.
*/
//
// Original Author: <NAME>
//... | 628 |
8,805 | // Copyright <NAME> 2002.
// 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 OPERATOR_ID_DWA2002531_HPP
# define OPERATOR_ID_DWA2002531_HPP
namespace boost { namespace python { namespace detail {
... | 620 |
3,372 | <filename>aws-java-sdk-transcribe/src/main/java/com/amazonaws/services/transcribe/model/CreateVocabularyFilterRequest.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 complia... | 9,213 |
348 | <gh_stars>100-1000
{"nom":"Crupilly","circ":"3ème circonscription","dpt":"Aisne","inscrits":43,"abs":22,"votants":21,"blancs":1,"nuls":0,"exp":20,"res":[{"nuance":"SOC","nom":"<NAME>","voix":14},{"nuance":"FN","nom":"<NAME>","voix":6}]} | 99 |
748 | <filename>app/src/main/java/com/malmstein/yahnac/views/ColorTweaker.java<gh_stars>100-1000
package com.malmstein.yahnac.views;
import android.graphics.Color;
public class ColorTweaker {
public static final float COMPONENT_MAX = 1f;
private static final int HSV_BRIGHTNESS = 2;
private static final float ... | 494 |
956 | /* SPDX-License-Identifier: BSD-3-Clause
* Copyright(c) 2019-2021 Intel Corporation
*/
#include <stdio.h>
#include <inttypes.h>
#include <rte_common.h>
#include <rte_random.h>
#include <rte_malloc.h>
#include <rte_memzone.h>
#include "iavf_type.h"
#include "iavf_prototype.h"
enum iavf_status
iavf_allocate_dma_mem... | 874 |
351 | <reponame>ccawley2011/librw<filename>src/d3d/d3d9matfx.cpp<gh_stars>100-1000
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <assert.h>
#define WITH_D3D
#include "../rwbase.h"
#include "../rwerror.h"
#include "../rwplg.h"
#include "../rwpipeline.h"
#include "../rwobjects.h"
#include "../rwanim.h"
#... | 3,172 |
456 | <filename>library.json
{
"name": "BLEPeripheral",
"version": "0.4.0",
"keywords": "BLE, bluetooth, peripheral",
"description": "Arduino library for creating custom BLE peripherals. Supports nRF8001 and nRF51822 based boards/shields.",
"repository":
{
"type": "git",
"url": "https://github.com/sandeep... | 173 |
578 | <filename>Marklight/Marklight.h
//
// Marklight
//
// Created by <NAME> on 01/01/16.
// Copyright © 2016 MacTeo. LICENSE for details.
//
#import <UIKit/UIKit.h>
//! Project version number for Marklight.
FOUNDATION_EXPORT double MarklightVersionNumber;
//! Project version string for Marklight.
FOUNDATION_EXPORT co... | 148 |
1,002 | <reponame>r2d2rigo/Win2D
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// Licensed under the MIT License. See LICENSE.txt in the project root for license information.
#pragma once
template<typename T>
class Nullable : public Microsoft::WRL::RuntimeClass<ABI::Windows::Foundation::IReference<T>>
... | 400 |
852 | #ifndef _Tracker_TrajectorySmoother_H_
#define _Tracker_TrajectorySmoother_H_
#include "TrackingTools/PatternTools/interface/Trajectory.h"
class TkCloner;
/** Interface class for trajectory smoothers,
* i.e. objects improving a Trajectory built elsewhere.
*/
class TrajectorySmoother {
public:
typedef std::vec... | 296 |
2,084 | <reponame>shreejitverma/tvm
/*
* 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,480 |
1,350 | <gh_stars>1000+
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.security.models;
import com.azure.core.annotation.Immutable;
import com.azure.core.util.logging.ClientLogger;
im... | 704 |
789 | /*-
* Copyright 2021 <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.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in wri... | 1,463 |
697 | <filename>leyou-comments/leyou-comments-service/src/main/java/com/leyou/comments/listener/CommentsListener.java
package com.leyou.comments.listener;
import com.leyou.comments.dao.CommentDao;
import com.leyou.comments.pojo.Review;
import com.leyou.comments.service.CommentService;
import com.leyou.order.vo.CommentsParam... | 1,207 |
348 | {"nom":"Le Trait","circ":"5ème circonscription","dpt":"Seine-Maritime","inscrits":3964,"abs":2335,"votants":1629,"blancs":39,"nuls":6,"exp":1584,"res":[{"nuance":"SOC","nom":"<NAME>","voix":772},{"nuance":"FN","nom":"<NAME>","voix":355},{"nuance":"LR","nom":"<NAME>","voix":211},{"nuance":"FI","nom":"Mme <NAME>","voix":... | 201 |
1,607 | <reponame>ascopes/assertj-core<filename>src/test/java/org/example/test/Throwables_getFirstStackTraceElementFromTest_Test.java<gh_stars>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
... | 1,846 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.