max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
1,062 | <reponame>larkov/MailTrackerBlocker<filename>MailHeaders/Catalina/MailFW/MFSearchableIndexBasicQueryResultProcessor.h
//
// Generated by class-dump 3.5b1 (64 bit) (Debug version compiled Dec 3 2019 19:59:57).
//
// Copyright (C) 1997-2019 <NAME>.
//
#import <objc/NSObject.h>
#import <MailFW/MFSearchableIndexQue... | 434 |
537 | <gh_stars>100-1000
import pytest
from turbodbc import connect
from helpers import for_one_database, get_credentials
"""
Test optional features mentioned in PEP-249 "behave" as specified
"""
@for_one_database
def test_callproc_unsupported(dsn, configuration):
cursor = connect(dsn, **get_credentials(configuratio... | 207 |
1,799 | // Copyright (c) 2019 PaddlePaddle Authors. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required... | 1,277 |
27,074 | <reponame>luzhongqiu/d2l-zh<filename>static/post_latex/main.py
import os
import re
import regex
import sys
def _unnumber_chaps_and_secs(lines):
def _startswith_unnumbered(l):
UNNUMBERED = {'\\section{Summary',
'\\section{Exercise',
'\\section{Exercises'
... | 1,883 |
556 | <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
... | 686 |
9,782 | <filename>presto-main/src/main/java/com/facebook/presto/cost/UnnestStatsRule.java
/*
* 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
*
... | 1,481 |
739 | <reponame>Vertver/Crinkler
#pragma once
#include <vector>
#include <string>
#include "../Compressor/ModelList.h"
#include "Hunk.h"
#include "HunkList.h"
#include "ExplicitHunkSorter.h"
enum ReuseType {
REUSE_OFF, REUSE_WRITE, REUSE_IMPROVE, REUSE_STABLE
};
static const char *ReuseTypeName(ReuseType m... | 562 |
25,151 | <reponame>TamsilAmani/selenium
// Licensed to the Software Freedom Conservancy (SFC) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The SFC licenses this file
// to you under the Apache License, Versio... | 948 |
1,442 | #ifndef LIBA_ALLOCA_H
#define LIBA_ALLOCA_H
#define alloca(size) __builtin_alloca(size)
#endif
| 46 |
1,072 | /*
* Copyright 2016 Freelander
*
* 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 agr... | 795 |
2,706 | /* Copyright (c) 2013-2016 <NAME>
*
* 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/. */
#include "OverrideView.h"
#include <QPushButton>
#include "ConfigController.... | 3,617 |
22,688 | /******************************************************************************
* Copyright 2020 The Apollo Authors. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
... | 1,253 |
445 | #ifndef MULTIVERSO_KV_TABLE_H_
#define MULTIVERSO_KV_TABLE_H_
#include <unordered_map>
#include <vector>
#include "multiverso/multiverso.h"
#include "multiverso/table_interface.h"
#include "multiverso/util/log.h"
namespace multiverso {
template <typename Key, typename Val>
struct KVTableOption;
// A distributed sh... | 1,631 |
1,194 | package ca.uhn.fhir.cql.dstu3.evaluation;
/*-
* #%L
* HAPI FHIR JPA Server - Clinical Quality Language
* %%
* Copyright (C) 2014 - 2022 Smile CDR, 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 co... | 1,185 |
3,294 | // This is a part of the Microsoft Foundation Classes C++ library.
// Copyright (C) Microsoft Corporation
// All rights reserved.
//
// This source code is only intended as a supplement to the
// Microsoft Foundation Classes Reference and related
// electronic documentation provided with the library.
// See these sourc... | 791 |
1,576 | package org.commonmark.internal.inline;
import org.commonmark.node.SourceSpan;
import org.commonmark.parser.SourceLine;
import org.commonmark.parser.SourceLines;
import org.junit.Test;
import java.util.Arrays;
import java.util.Collections;
import static org.junit.Assert.*;
public class ScannerTest {
@Test
... | 2,412 |
396 | package com.mapbox.turf;
import com.mapbox.geojson.Feature;
import com.mapbox.geojson.FeatureCollection;
import com.mapbox.geojson.GeoJson;
import com.mapbox.geojson.Point;
/**
* Also called Assertions, these methods enforce expectations of a certain type or calculate various
* shapes from given points.
*
* @see ... | 1,448 |
322 | <gh_stars>100-1000
#pragma once
#include <database.h>
#include <widgets.h>
#include <QSettings>
/** Settings UI namespace. */
/*namespace Ui {
class Settings;
}*/
/** Settings class.
* Class to handle the settings section of the launcher
*/
class Settings : public QWidget
{
Q_OBJECT
public:
explicit Sett... | 297 |
1,694 | <gh_stars>1000+
//
// Generated by class-dump 3.5 (64 bit) (Debug version compiled Sep 17 2017 16:24:48).
//
// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2015 by <NAME>.
//
#import <objc/NSObject.h>
#import "IRemoteControlCheckExt-Protocol.h"
@interface MMMusicPlayerSessionMgr : NSObject <IRemot... | 349 |
359 | // Copyright Xilinx, Inc 2014-2016
// Author: <NAME>
// Register definition for the APPMGMT
#ifndef __AWSMGMT_CW_H__
#define __AWSMGMT_CW_H__
#define OCL_CTLR_OFFSET 0x000000
#define AXI_GATE_OFFSET 0x030000
#define AXI_GATE_OFFSET_READ 0x030008
#define FEATURE_ID 0x031000
... | 584 |
1,174 | <reponame>RANGERERIC2/EMV-NFC-Paycard-Enrollment<gh_stars>1000+
package com.github.devnied.emvnfccard.utils;
import java.text.SimpleDateFormat;
import org.fest.assertions.Assertions;
import org.junit.Test;
import com.github.devnied.emvnfccard.model.EmvTrack1;
import com.github.devnied.emvnfccard.model.EmvTrack2;
imp... | 3,626 |
574 | <reponame>virtualpathum/collect
package org.odk.collect.android.adapters;
import androidx.annotation.NonNull;
import androidx.fragment.app.Fragment;
import androidx.fragment.app.FragmentActivity;
import androidx.viewpager2.adapter.FragmentStateAdapter;
import org.odk.collect.android.fragments.BlankFormListFragment;
i... | 501 |
5,207 | <reponame>radekg/kratos<gh_stars>1000+
{
"keys": [
{
"use": "sig",
"kty": "RSA",
"kid": "a2aa9739-d753-4a0d-87ee-61f101050277",
"alg": "RS256",
"n": "<KEY>",
"e": "AQAB",
"d": "<KEY>",
"p": "<KEY>",
"q": "<KEY>",
"dp": "<KEY>",
"dq": "<KEY>",
... | 219 |
14,668 | <reponame>zealoussnow/chromium
// Copyright 2016 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 <utility>
#include "base/test/task_environment.h"
#include "build/build_config.h"
#include "mojo/public/cpp/bindi... | 4,757 |
1,083 | /*
* 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,105 |
544 | <filename>examples/tween_example.py
import pygame as pg
from itertools import cycle
import pytweening as tween
WHITE = (255, 255, 255)
BLACK = (0, 0, 0)
RED = (255, 0, 0)
GREEN = (0, 255, 0)
BLUE = (0, 0, 255)
YELLOW = (255, 255, 0)
LIGHTGREY = (40, 40, 40)
tween_func = cycle([tween.easeInSine, tween.easeOutSine, twe... | 1,500 |
10,225 | package io.quarkus.it.mongodb.rest.data.panache;
import javax.enterprise.context.ApplicationScoped;
import javax.inject.Inject;
import javax.ws.rs.Consumes;
import javax.ws.rs.DELETE;
import javax.ws.rs.POST;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;
@ApplicationScoped
@... | 452 |
686 | <filename>green/test/test_junit.py
from __future__ import unicode_literals
from green.config import default_args
from green.output import GreenStream
from green.junit import JUnitXML, JUnitDialect, Verdict
from green.result import GreenTestResult, BaseTestResult, ProtoTest, proto_error
from io import StringIO
from s... | 4,864 |
12,718 | /* NSObjCRuntime.h
Copyright (c) 1994-2012, Apple Inc. All rights reserved.
*/
#ifndef _OBJC_NSOBJCRUNTIME_H_
#define _OBJC_NSOBJCRUNTIME_H_
#include <TargetConditionals.h>
#include <objc/objc.h>
#if __LP64__ || 0 || NS_BUILD_32_LIKE_64
typedef long NSInteger;
typedef unsigned long NSUInteger;
#else
typedef int NSI... | 289 |
502 | <reponame>thliang01/arena
package com.github.kubeflow.arena.model.nodes;
import com.alibaba.fastjson.JSON;
public class GPUShareNodeDevice {
private String id;
private double allocatedGPUMemory;
private double totalGPUMemory;
public String getId() {
return id;
}
public void setId(Str... | 325 |
1,652 | package com.ctrip.xpipe.redis.console.service.impl;
import com.ctrip.xpipe.endpoint.HostPort;
import com.ctrip.xpipe.redis.checker.healthcheck.actions.ping.PingService;
import com.google.common.collect.Maps;
import java.util.Map;
/**
* @author lishanglin
* date 2021/3/17
*/
public class ConsoleCachedPingService i... | 306 |
334 | // Pedra, Papel, Tesoura, Lagarto e Spock
/* Pedra-papel-tesoura-lagarto-Spock é uma expansão do clássico método de
seleção em jogo de pedra-papel-tesoura. Atua sob o mesmo princípio básico,
mas inclui outras duas armas adicionais: o lagarto (formado pela mão igual a
uma boca de fantoche) e Spock (formada pela saudaçã... | 1,751 |
679 | <reponame>Grosskopf/openoffice
/**************************************************************
*
* 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... | 2,889 |
1,144 | package de.metas.invoicecandidate.api.impl;
/*
* #%L
* de.metas.swat.base
* %%
* Copyright (C) 2015 metas GmbH
* %%
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as
* published by the Free Software Foundation, either version 2 of t... | 1,693 |
7,089 | from setuptools import setup
setup(
name="requires_requires_capitalized",
version="1.0",
install_requires=["requires_Capitalized==0.1"],
)
| 54 |
2,338 | // RUN: %check_clang_tidy %s bugprone-not-null-terminated-result %t -- \
// RUN: -- -std=c11 -I %S/Inputs/bugprone-not-null-terminated-result
#include "not-null-terminated-result-c.h"
#define __STDC_LIB_EXT1__ 1
#define __STDC_WANT_LIB_EXT1__ 1
//===-------------------------------------------------------------------... | 1,739 |
7,073 | <filename>atest/testdata/keywords/library/with/dots/in/name/__init__.py
class name:
def get_keyword_names(self):
return ['No dots in keyword name in library with dots in name',
'Dots.in.name.in.a.library.with.dots.in.name',
'Multiple...dots . . in . a............row.in.a.lib... | 256 |
5,169 | {
"name": "KQNetworkManager",
"version": "0.1.1",
"summary": "KQNetworkManager is for network calls.",
"description": "'KQNetworkManager is for network calls.'",
"homepage": "https://github.com/MKQasim/KQNetworkManager.git",
"license": {
"type": "MIT",
"file": "LICENSE"
},
"authors": {
"<NAM... | 260 |
4,868 | package com.cf.chat.service;
import com.cf.chat.domain.CfUserMessage;
import com.cf.chat.domain.CfUserMessageVo;
import com.cf.chat.domain.Message;
import com.cf.framework.domain.ucenter.ext.UserBasicInfo;
import io.netty.channel.Channel;
import org.springframework.stereotype.Service;
import org.springframework.transa... | 1,003 |
386 | package com.github.unclecatmyself.bootstrap.channel.protocol;
import java.util.Map;
/**
* 消息返回
* Created by MySelf on 2018/11/23.
*/
public interface Response {
/**
* 登录成功返回信息
* @return {@link Map} Json
*/
Map<String,String> loginSuccess();
/**
* 登录失败返回信息
* @return {@link Ma... | 677 |
319 | import torch
from torch import nn
from typing import Dict, List, Tuple
from ptgnn.neuralmodels.gnn.messagepassing.abstractmessagepassing import AbstractMessagePassingLayer
class _ResidualOriginLayer(AbstractMessagePassingLayer):
def __init__(self, input_dim: int, target_layer):
super().__init__()
... | 2,035 |
314 | //
// ZJStarsView.h
// ZJCommitListDemo
//
// Created by 邓志坚 on 2017/12/10.
// Copyright © 2017年 邓志坚. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface ZJStarsView : UIView
// 星级分数
@property(nonatomic, copy) NSString *starCount;
@end
| 123 |
2,828 | <filename>curator-framework/src/main/java/org/apache/curator/framework/schema/SchemaBuilder.java<gh_stars>1000+
/**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyrigh... | 1,493 |
348 | <reponame>chamberone/Leaflet.PixiOverlay<gh_stars>100-1000
{"nom":"Brétigny","circ":"6ème circonscription","dpt":"Oise","inscrits":278,"abs":141,"votants":137,"blancs":5,"nuls":3,"exp":129,"res":[{"nuance":"FN","nom":"<NAME>","voix":70},{"nuance":"REM","nom":"<NAME>","voix":59}]} | 116 |
4,129 | package com.didiglobal.booster.instrument;
import java.util.Collection;
import java.util.List;
import java.util.concurrent.AbstractExecutorService;
import java.util.concurrent.Callable;
import java.util.concurrent.ExecutionException;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
i... | 4,160 |
3,765 | <filename>pmd-core/src/main/java/net/sourceforge/pmd/cache/CachedRuleMapper.java
/**
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.cache;
import java.util.HashMap;
import java.util.Map;
import net.sourceforge.pmd.Rule;
import net.sourceforge.pmd.RuleS... | 589 |
332 | /*
* Copyright 2013-2014 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 applica... | 771 |
6,989 | #pragma once
#include <catboost/libs/data/data_provider.h>
#include <catboost/private/libs/options/restrictions.h>
#include <util/generic/fwd.h>
#include <util/generic/vector.h>
class TFold;
struct TSplitNode;
struct TNonSymmetricTreeStructure;
class TOnlineCtrBase;
namespace NPar {
class ILocalExecutor;
}
v... | 508 |
851 | /*
* Copyright (c) 2018 The WebRTC project authors. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All contribut... | 2,457 |
381 | from rpython.conftest import option
from rpython.flowspace.objspace import build_flow
from rpython.flowspace.model import Variable
from rpython.flowspace.generator import (
make_generator_entry_graph, get_variable_names)
from rpython.translator.simplify import join_blocks
# _______________________________________... | 1,694 |
313 | //
// YBLBriberyItemCell.h
// 手机云采
//
// Created by 乔同新 on 2017/7/25.
// Copyright © 2017年 乔同新. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "YBLBriberyItemView.h"
@interface YBLBriberyItemCell : UITableViewCell
@property (nonatomic, strong) YBLBriberyItemView *briberyMoenyView;
@end
| 143 |
416 | <filename>src/main/java/com/tencentcloudapi/pds/v20210701/PdsErrorCode.java
package com.tencentcloudapi.pds.v20210701;
public enum PdsErrorCode {
// 内部错误。
INTERNALERROR("InternalError"),
// 服务超时。
INTERNALERROR_SERVICETIMEOUT("InternalError.ServiceTimeout"),
// 参数错误。
INVALIDPARAMET... | 625 |
892 | {
"schema_version": "1.2.0",
"id": "GHSA-vp74-83h5-6967",
"modified": "2022-04-29T03:00:54Z",
"published": "2022-04-29T03:00:54Z",
"aliases": [
"CVE-2004-2154"
],
"details": "CUPS before 1.1.21rc1 treats a Location directive in cupsd.conf as case sensitive, which allows attackers to bypass intended AC... | 695 |
342 | """Functions reused within command-line implementations."""
import logging
import sys
from skgenome import tabio
from .cnary import CopyNumArray as CNA
def read_cna(infile, sample_id=None, meta=None):
"""Read a CNVkit file (.cnn, .cnr, .cns) to create a CopyNumArray object."""
return tabio.read(infile, into... | 1,715 |
1,131 | // 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... | 492 |
724 | from . import image_cls, rand
| 10 |
19,046 | /*
* Copyright (c) Facebook, Inc. and 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 applic... | 850 |
1,302 | /* Copyright (c) 2019 The node-webrtc project authors. All rights reserved.
*
* Use of this source code is governed by a BSD-style license that can be found
* in the LICENSE.md file in the root of the source tree. All contributing
* project authors may be found in the AUTHORS file in the root of the source
* tree.... | 2,455 |
660 | package quick.pager.shop.service.impl;
import cn.hutool.core.util.IdUtil;
import com.alibaba.fastjson.JSON;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import java.util.List;
import java.util.Objects;
import java.util.stream.Collectors;
import java.util.stream.Stream;
import org.apache.co... | 6,791 |
1,703 | <reponame>giuliolovisotto/YOLOv3_TensorFlow
# coding: utf-8
# This script is used to remove the optimizer parameters in the saved checkpoint files.
# These parameters are useless in the forward process.
# Removing them will shrink the checkpoint size a lot.
import sys
sys.path.append('..')
import os
import tensorfl... | 347 |
1,575 | <reponame>mfkiwl/mujoco
# Copyright 2022 DeepMind Technologies Limited
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required b... | 2,259 |
1,751 | <filename>rapidoid-http-server/src/main/java/org/rapidoid/http/impl/lowlevel/HttpIO.java
/*-
* #%L
* rapidoid-http-server
* %%
* Copyright (C) 2014 - 2020 <NAME> and contributors
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the Licen... | 1,280 |
474 | <filename>javacord-core/src/main/java/org/javacord/core/interaction/InteractionImmediateResponseBuilderImpl.java<gh_stars>100-1000
package org.javacord.core.interaction;
import org.javacord.api.interaction.InteractionBase;
import org.javacord.api.interaction.callback.InteractionImmediateResponseBuilder;
import org.jav... | 580 |
9,724 | <reponame>albertobarri/idk<gh_stars>1000+
/*
* Copyright 2020 The Emscripten Authors. All rights reserved.
* Emscripten is available under two separate licenses, the MIT license and the
* University of Illinois/NCSA Open Source License. Both these licenses can be
* found in the LICENSE file.
*/
#include <tmmintr... | 1,512 |
5,937 | <reponame>txlos/wpf
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
//+----------------------------------------------------------------------------
//
//
// Abst... | 2,476 |
918 | /*
* 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)
*
* Copyright (c) 2009 <NAME>
* Copyright (c) 2012 <NAME>
* Copyright (c) 2014 <NAME>
*/
/*!
* \file atomic/detail/ops_windows.hpp
*
* This header cont... | 3,055 |
990 | #
# 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 us... | 683 |
9,681 | from django.shortcuts import render, HttpResponse
from django.contrib.gis.geos import Point
from django.contrib.gis.measure import D
from django.contrib.gis.db.models.functions import Distance
from django.contrib.gis.db.models import Union
from .models import Collection, Collection2
# Create your views here.
def vuln... | 335 |
1,338 | #include <fcntl.h>
#include <stdio.h>
#include <stdint.h>
#include <unistd.h>
uint8_t sector[512];
int main(int argc, char **argv)
{
int fd, i;
uint16_t sum;
uint8_t *p = sector;
fd = open(argv[1], O_RDWR);
if (fd < 0) {
return 1;
}
if (read(fd, sector, 512-2) < 512-2) {
perror("read");
return 1;
}
for... | 329 |
6,989 | <filename>contrib/libs/linuxvdso/interface.cpp
#include "interface.h"
#include "original/vdso_support.h"
#ifdef HAVE_VDSO_SUPPORT
size_t NVdso::Enumerate(TSymbol* s, size_t len) {
if (!len) {
return 0;
}
base::VDSOSupport vdso;
if (!vdso.IsPresent()) {
return 0;
}
size_t n =... | 457 |
4,013 | from checkov.terraform.checks.data.base_registry import Registry
data_registry = Registry()
| 28 |
369 | #
#
#
from __future__ import absolute_import, division, print_function, \
unicode_literals
from os import path
from os.path import dirname, isfile
from unittest import TestCase
from octodns.provider.etc_hosts import EtcHostsProvider
from octodns.provider.plan import Plan
from octodns.record import Record
from oc... | 3,139 |
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,223 |
839 | #include "Polycode.h"
#include "PolycodeView.h"
#include "PolycodeLinuxPlayer.h"
int main(int argc, char *argv[]) {
PolycodeView *view = new PolycodeView("Polycode Player");
if(argc < 2) {
printf("Filename required!\n");
return 1;
}
PolycodeLinuxPlayer *player = new PolycodeLinuxPlayer(view, argv[1], false, tr... | 147 |
1,615 | <filename>MLN-Android/mmui/src/main/jni/bridge/mmui_vm_auto_fill.c
/**
* Created by MomoLuaNative.
* Copyright (c) 2020, 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 in the root directory of this sourc... | 1,279 |
346 | <filename>src/game/Utils/Multi_Language_Graphic_Utils.h<gh_stars>100-1000
#include "GameRes.h"
| 39 |
778 | <reponame>lkusch/Kratos
//
// Project Name: KratosConstitutiveModelsApplication $
// Created by: $Author: JMCarbonell $
// Last modified by: $Co-Author: $
// Date: $Date: April 2017 $
// Revision: $Revision: ... | 1,399 |
460 | <filename>trunk/win/Source/Includes/QtIncludes/src/3rdparty/webkit/WebCore/ForwardingHeaders/wtf/FastMalloc.h
#ifndef WebCore_FWD_FastMalloc_h
#define WebCore_FWD_FastMalloc_h
#include <JavaScriptCore/FastMalloc.h>
#endif
| 92 |
476 | <filename>presto-spi/src/main/java/io/prestosql/spi/expression/FieldDereference.java
/*
* 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
... | 474 |
2,210 | /*
* Copyright 2020-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... | 1,327 |
302 | /*
Simple DirectMedia Layer
Copyright (C) 1997-2020 <NAME> <<EMAIL>>
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
Permission is granted to anyone to use this software for any ... | 5,071 |
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,072 |
879 | <reponame>qianfei11/zstack
package org.zstack.header.identity.role;
import javax.persistence.metamodel.SingularAttribute;
import javax.persistence.metamodel.StaticMetamodel;
@StaticMetamodel(SystemRoleVO.class)
public class SystemRoleVO_ extends RoleVO_ {
public static SingularAttribute<SystemRoleVO, SystemRoleTy... | 118 |
1,772 | import logging
from django.contrib import messages
from django.contrib.auth.decorators import user_passes_test
from django.db.models.deletion import RestrictedError
from django.urls import reverse
from django.http import HttpResponseRedirect
from django.shortcuts import render, get_object_or_404
from django.contrib.adm... | 8,035 |
10,225 | <reponame>Markus-Schwer/quarkus
package io.quarkus.it.kafka.codecs;
import java.util.ArrayList;
import java.util.List;
import io.quarkus.kafka.client.serialization.JsonbDeserializer;
public class PersonListDeserializer extends JsonbDeserializer<List<Person>> {
public PersonListDeserializer() {
super(new ... | 153 |
556 | <gh_stars>100-1000
/*
* Hacker Disassembler Engine 64 C
* Copyright (c) 2008-2009, <NAME>.
* All rights reserved.
*
*/
#include "stdafx.h"
#if defined(_M_X64) || defined(__x86_64__)
#pragma warning(push, 0)
#pragma warning(disable: 4701 4706 26451)
#include "hde64.h"
#include "table64.h"
unsigned int hde64_di... | 6,317 |
1,882 | """
widget.py
-------------
A widget which can visualize trimesh.Scene objects in a glooey window.
Check out an example in `examples/widget.py`
"""
import glooey
import numpy as np
import pyglet
from pyglet import gl
from .. import rendering
from .trackball import Trackball
from .windowed import geometry_hash
from .... | 4,454 |
679 | <filename>main/package/qa/storages/RegressionTest_125919.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
* rega... | 1,822 |
822 | package com.zlm.hp.widget;
import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.drawable.GradientDrawable;
import android.util.AttributeSet;
import android.view.View;
import android.widget.RelativeLayout;
import android.widget.TextView;
/**
* @Descrip... | 1,093 |
416 | //
// UNNotificationContent.h
// UserNotifications
//
// Copyright © 2015 Apple Inc. All rights reserved.
//
#import <Foundation/Foundation.h>
@class UNNotificationAttachment;
@class UNNotificationSound;
NS_ASSUME_NONNULL_BEGIN
__IOS_AVAILABLE(10.0) __TVOS_AVAILABLE(10.0) __WATCHOS_AVAILABLE(3.0)
@interface UNNo... | 1,353 |
369 | //*******************************************************************************
// Provides Functions to Initialize the UCS/FLL and clock sources
// File: hal_ucs.c
//
// Texas Instruments
//
// Version 1.2
// 11/24/09
//
// V1.0 Initial Version
// V1.1 Added timeout function
// V1.1 Added pa... | 1,521 |
348 | <gh_stars>100-1000
{"nom":"Caluire-et-Cuire","circ":"5ème circonscription","dpt":"Rhône","inscrits":31732,"abs":15534,"votants":16198,"blancs":95,"nuls":21,"exp":16082,"res":[{"nuance":"REM","nom":"Mme <NAME>","voix":6969},{"nuance":"LR","nom":"<NAME>","voix":4564},{"nuance":"FI","nom":"Mme <NAME>","voix":1487},{"nuanc... | 310 |
455 | <gh_stars>100-1000
#pragma once
#include <vector>
#include <typeinfo>
#include "../Entity.h"
#include "../Logger.h"
#include "../Context.h"
#include "../Components/TransformComponent.h"
#include "../AI/Pathfinding/PathFindManager.h"
#include "../Helpers/HashTag.h"
#include "../Graphics/Color.h"
namespace st... | 1,671 |
5,651 | <gh_stars>1000+
import sys
import collections
Result = collections.namedtuple('Result', 'total average')
def adder():
total = 0
count = 0
while True:
term = yield
try:
term = float(term)
except (ValueError, TypeError):
break
else:
total +... | 448 |
808 | <reponame>stjordanis/symengine
#include <iostream>
#include <chrono>
#include <cstdlib>
#include <iomanip>
#include "symengine/ntheory.h"
#include <symengine/mul.h>
#include <symengine/integer.h>
#include <symengine/basic.h>
#include "symengine/constants.h"
#include <symengine/add.h>
#include <symengine/pow.h>
#includ... | 1,501 |
591 | <reponame>turesnake/tprPixelGames
/*
* ======================= BoolBitMap.h =======================
* -- tpr --
* CREATE -- 2019.02.03
* MODIFY --
* ----------------------------------------------------------
* ... | 1,419 |
388 | // -*- mode:java; encoding:utf-8 -*-
// vim:set fileencoding=utf-8:
// @homepage@
package example;
import java.awt.*;
import java.awt.event.MouseEvent;
import javax.swing.*;
import javax.swing.event.MouseInputAdapter;
import javax.swing.event.MouseInputListener;
public final class MainPanel extends JPanel {
privat... | 1,328 |
396 | package me.everything.providers.sample.fragments;
import android.widget.TextView;
import me.everything.providers.android.media.Artist;
import me.everything.providers.android.media.MediaProvider;
import me.everything.providers.core.Data;
import me.everything.providers.sample.base.GetCursorTask;
/**
* Created by srom... | 454 |
1,040 | <reponame>titanomachy/flight
/*
* Integrates the 3d stereo data (from LCM) and the IMU data (from LCM)
* and generates an obstacle map. Then uses that map with a trajectory
* library for control.
*
* Author: <NAME>, <<EMAIL>> 2013-2015
*
*/
#include "stereo-imu-obstacles.hpp"
#define PUBLISH_MAP_TO_STEREO_AT_... | 2,252 |
21,274 | <filename>tools/deploy/torchscript_mask_rcnn.cpp
// Copyright (c) Facebook, Inc. and its affiliates.
// @lint-ignore-every CLANGTIDY
// This is an example code that demonstrates how to run inference
// with a torchscript format Mask R-CNN model exported by ./export_model.py
// using export method=tracing, caffe2_tracin... | 2,556 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.