max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
312 | <reponame>awujek/lldpd<gh_stars>100-1000
/* -*- mode: c; c-file-style: "openbsd" -*- */
/*
* Copyright (c) 2015 <NAME> <<EMAIL>>
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permissi... | 11,620 |
852 | # Start with a skeleton process which gets imported with the following line
from PhysicsTools.PatAlgos.patTemplate_cfg import *
# Load the standard PAT config
process.load( "PhysicsTools.PatAlgos.patSequences_cff" )
# Load the exercise config
process.load( "PhysicsTools.PatExamples.mcMatch_cfi" ) # The file to modify... | 507 |
3,861 | <reponame>crazyinsanejames/CloverBootloader<gh_stars>1000+
/*
* refit/scan/securebootkeys.h
*
* Copyright (c) 2006-2010 <NAME>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Re... | 29,675 |
4,756 | /*
* Copyright (C) 2015 The Libphonenumber 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 la... | 751 |
8,027 | <reponame>Unknoob/buck
/*
* 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
*
* Un... | 821 |
7,482 | /*
* @ : Copyright (c) 2021 Phytium Information Technology, Inc.
*
* SPDX-License-Identifier: Apache-2.0.
*
* @Date: 2021-04-05 22:15:53
* @LastEditTime: 2021-05-25 16:45:36
* @Description: Description of file
* @Modify History:
* * * Ver Who Date Changes
* * ----- ------ -------- ---... | 9,404 |
1,652 | <filename>redis/redis-core/src/main/java/com/ctrip/xpipe/redis/core/proxy/endpoint/SelectOneCycle.java
package com.ctrip.xpipe.redis.core.proxy.endpoint;
/**
* @author chen.zhu
* <p>
* Jun 01, 2018
*/
public class SelectOneCycle implements SelectStrategy {
private ProxyEndpointSelector selector;
public S... | 196 |
536 | <reponame>Chinalijian/ACGN2D3D
//
// UMSocialWarterMarkConfig.h
// testWatermarkImage
//
// Created by 张军华 on 16/12/23.
// Copyright © 2016年 张军华. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#import <CoreGraphics/CoreGraphics.h>
@class UMSocialStringWarterMarkConfig;
@class UM... | 5,034 |
777 | <filename>chrome/browser/ui/cocoa/autofill/autofill_tooltip_controller.h
// Copyright 2013 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.
#ifndef CHROME_BROWSER_UI_COCOA_AUTOFILL_AUTOFILL_TOOLTIP_CONTROLLER_H_
#define C... | 499 |
9,959 | <filename>test/pretty/resource/after/ExoticJava.java
import static java.lang.String.*;
import java.io.*;
class ExoticJava<V> {
public <T> ExoticJava(T genericsInConstructor, V genericsInType) {
System.out.println(new <String>ExoticJava<Integer>("Hello", 5));
}
public void test() {
int x = 5;
int[] y = {10};
... | 509 |
36,552 | //
// Copyright 2015 gRPC authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed t... | 3,478 |
4,054 | // Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#include <vespa/log/log.h>
LOG_SETUP("component_test");
#include <vespa/vespalib/testkit/testapp.h>
#include <vespa/vespalib/util/exceptions.h>
#include <vespa/vespalib/component/version.h>
#include <vespa/vespalib... | 2,831 |
1,179 | <filename>kernel/src/ext_t.hpp
/// @copyright
/// Copyright (C) 2020 Assured Information Security, Inc.
///
/// @copyright
/// 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 restri... | 35,938 |
335 | <reponame>Safal08/Hacktoberfest-1<gh_stars>100-1000
{
"word": "Farewell",
"definitions": [
"Mark the departure or retirement of (someone) with a ceremony or party."
],
"parts-of-speech": "Verb"
} | 93 |
14,668 | <reponame>zealoussnow/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 "components/offline_items_collection/core/update_delta.h"
namespace offline_items_collection {
// static
absl::o... | 304 |
4,041 | /*
* Copyright 2019 Web3 Labs Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in w... | 534 |
468 | #define GLI_INCLUDE_GL_ARB_SPARSE_BUFFER
enum Mask_Access {
GL_SPARSE_STORAGE_BIT_ARB = 0x0400,
};
enum Main {
GL_SPARSE_BUFFER_PAGE_SIZE_ARB = 0x82F8,
};
void glBufferPageCommitmentARB(GLenum[Main] target, GLintptr offset, GLsizeiptr size, GLboolean commit);
void glNamedBufferPageCommitment... | 199 |
679 | <gh_stars>100-1000
/**************************************************************
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF license... | 1,636 |
4,756 | // Copyright 2020 The MACE 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 by appl... | 2,070 |
848 | <gh_stars>100-1000
/*
* Copyright 2019 Xilinx Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicabl... | 7,904 |
575 | // Copyright 2018 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package org.chromium.chrome.browser.browserservices;
import android.os.SystemClock;
import org.chromium.base.metrics.RecordHistogram;
import org.chromiu... | 1,108 |
416 | <filename>iPhoneOS14.2.sdk/System/Library/Frameworks/PDFKit.framework/Headers/PDFActionRemoteGoTo.h<gh_stars>100-1000
//
// PDFActionRemoteGoTo.h
// Copyright © 2019 Apple. All rights reserved.
//
// PDFActionRemoteGoTo is an interaction event tied with an annotation. This action
// is the same action type as PDFAc... | 487 |
521 | <gh_stars>100-1000
/**
* @file include/retdec/config/doxygen.h
* @brief Doxygen documentation of the config namespace.
* @copyright (c) 2017 Avast Software, licensed under the MIT license
*/
// As there is no better place to comment this namespace, we do this in the
// present file.
/**
@namespace config A libra... | 3,031 |
903 | <reponame>dyzmapl/BumpTop
#include "../../src/gui/dialogs/qinputdialog.h"
| 35 |
779 | <filename>vpx_dsp/x86/highbd_convolve_avx2.c
/*
* Copyright (c) 2017 The WebM 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 fo... | 28,604 |
2,151 | <filename>third_party/blink/renderer/core/css/properties/longhands/scroll_snap_type_custom.cc
// Copyright 2017 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "third_party/blink/renderer/core/css/properties/lon... | 750 |
348 | <filename>docs/data/leg-t1/078/07802406.json
{"nom":"Milon-la-Chapelle","circ":"2ème circonscription","dpt":"Yvelines","inscrits":260,"abs":104,"votants":156,"blancs":0,"nuls":0,"exp":156,"res":[{"nuance":"REM","nom":"<NAME>","voix":66},{"nuance":"LR","nom":"<NAME>","voix":54},{"nuance":"ECO","nom":"<NAME>","voix":7},{... | 386 |
879 | <filename>sdk/src/main/java/org/zstack/sdk/UpdateVCenterResult.java
package org.zstack.sdk;
import org.zstack.sdk.VCenterInventory;
public class UpdateVCenterResult {
public VCenterInventory inventory;
public void setInventory(VCenterInventory inventory) {
this.inventory = inventory;
}
public ... | 144 |
2,231 | <reponame>hakoptak/defold<gh_stars>1000+
// Copyright 2020 The Defold Foundation
// Licensed under the Defold License version 1.0 (the "License"); you may not use
// this file except in compliance with the License.
//
// You may obtain a copy of the License, together with FAQs at
// https://www.defold.com/license
//
//... | 7,148 |
323 | <gh_stars>100-1000
package cn.huanzi.qch.springbootsecurity.sysshortcutmenu.service;
import cn.huanzi.qch.springbootsecurity.common.pojo.Result;
import cn.huanzi.qch.springbootsecurity.common.service.CommonServiceImpl;
import cn.huanzi.qch.springbootsecurity.sysshortcutmenu.pojo.SysShortcutMenu;
import cn.huanzi.qch.s... | 451 |
855 | from django.conf.urls import include
from django.urls import path
from django.contrib import admin
from organizations.backends.modeled import ModelInvitation
from test_accounts.models import Account
admin.autodiscover()
app_name = "test_accounts"
urlpatterns = [
path(
"register/",
include(
... | 173 |
1,338 | <gh_stars>1000+
/*
* Copyright 2011-2013, <NAME>, <EMAIL>.
* Distributed under the terms of the MIT License.
*/
#include <stdlib.h>
#include "Protocol.h"
#include "Response.h"
#include "argv.h"
struct cmd_entry {
const char* name;
void (*func)(int argc, char **argv);
const char* help;
};
static void do_h... | 2,780 |
2,504 | //*********************************************************
//
// Copyright (c) Microsoft. All rights reserved.
// This code is licensed under the MIT License (MIT).
// THIS CODE IS PROVIDED *AS IS* WITHOUT WARRANTY OF
// ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY
// IMPLIED WARRANTIES OF FITNESS FOR A PA... | 1,633 |
922 | <reponame>clementpoiret/sparseml
# neuralmagic: no copyright
# flake8: noqa
# fmt: off
# isort: skip_file
#!/usr/bin/env python
# coding=utf-8
# Copyright (c) 2021 - present / Neuralmagic, Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in... | 2,333 |
4,054 | // Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.vespa.hosted.controller.maintenance;
import com.yahoo.vespa.hosted.controller.ApplicationController;
import com.yahoo.vespa.hosted.controller.Controller;
import com.yahoo.vespa.hosted.controller.I... | 1,499 |
34,430 | <filename>library/src/main/java/com/bumptech/glide/load/model/StreamEncoder.java
package com.bumptech.glide.load.model;
import android.util.Log;
import androidx.annotation.NonNull;
import com.bumptech.glide.load.Encoder;
import com.bumptech.glide.load.Options;
import com.bumptech.glide.load.engine.bitmap_recycle.Array... | 644 |
3,670 | # Copyright 2020 The TensorFlow Probability 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 o... | 29,873 |
394 | <reponame>fanghaocong/GitlHEVCAnalyzer
#include "refreshscreencommand.h"
#include "model/modellocator.h"
#include <QPixmap>
RefreshScreenCommand::RefreshScreenCommand(QObject *parent) :
GitlAbstractCommand(parent)
{
}
bool RefreshScreenCommand::execute( GitlCommandParameter& rcInputArg, GitlCommandParame... | 456 |
585 | <filename>caffe2/python/layers/add_bias.py
# Copyright (c) 2016-present, Facebook, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# ... | 851 |
460 | <reponame>MarianMacik/thorntail
package org.wildfly.swarm.msc.test;
import org.jboss.msc.service.ServiceActivator;
import org.jboss.msc.service.ServiceActivatorContext;
import org.jboss.msc.service.ServiceName;
import org.jboss.msc.service.ServiceRegistryException;
import org.jboss.msc.service.ServiceTarget;
import or... | 280 |
559 | <filename>embed/examples/fm-radio.c
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <luaradio.h>
const char *script_template =
"local frequency = %f\n"
"return radio.CompositeBlock():connect("
" radio.RtlSdrSource(frequency - 250e3, 1102500),"
" radio.TunerBlock(-250e3, 200e3... | 684 |
543 | <reponame>gbaasch/Gnu-RL<gh_stars>100-1000
#!/usr/bin/env python3
import argparse
import torch
from torch.autograd import Function, Variable
import torch.nn.functional as F
from torch import nn
from torch.nn.parameter import Parameter
import numpy as np
import os
from mpc import mpc, util
from mpc.mpc import GradM... | 1,426 |
769 | #include "gl/mesh.h"
#include "gl/shaderProgram.h"
#include "gl/renderState.h"
#include "gl/hardware.h"
#include "gl/glError.h"
#include "platform.h"
#include "log.h"
namespace Tangram {
MeshBase::MeshBase() {
m_drawMode = GL_TRIANGLES;
m_hint = GL_STATIC_DRAW;
m_glVertexBuffer = 0;
m_glIndexBuffer =... | 3,319 |
427 | /** Handling for borrow expression nodes
* @file
*
* This source file is part of the Cone Programming Language C compiler
* See Copyright Notice in conec.h
*/
#include "../ir.h"
#include <assert.h>
// Inject a typed, borrowed node on some node (expected to be an lval)
void borrowMutRef(INode **nodep, INode* type... | 2,237 |
319 | package me.aartikov.alligator.helpers;
import android.app.Activity;
import android.content.Intent;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.fragment.app.DialogFragment;
import androidx.fragment.app.Fragment;
import me.aartikov.alligator.ActivityResult;
import me.aartik... | 1,976 |
579 | <reponame>agnesnatasya/Be-Tree
#ifdef ERPC_INFINIBAND
#include "ib_transport.h"
namespace erpc {
// Packets that are the first packet in their MsgBuffer use one DMA, and may
// be inlined. Packets that are not the first packet use two DMAs, and are never
// inlined for simplicity.
void IBTransport::tx_burst(const tx... | 2,683 |
335 | <filename>B/Biopsy_verb.json
{
"word": "Biopsy",
"definitions": [
"Conduct a biopsy on (tissue removed from a living body)"
],
"parts-of-speech": "Verb"
} | 81 |
679 | <reponame>IzaakBirch/togglz
package org.togglz.core.util;
import org.junit.jupiter.api.Test;
import org.togglz.core.Feature;
import org.togglz.core.annotation.EnabledByDefault;
import org.togglz.core.annotation.FeatureGroup;
import org.togglz.core.annotation.Label;
import java.lang.annotation.*;
import java.util.List... | 1,278 |
387 | /*
* Copyright (C) 2014, United States Government, as represented by the
* Administrator of the National Aeronautics and Space Administration.
* All rights reserved.
*
* The Java Pathfinder core (jpf-core) platform is licensed under the
* Apache License, Version 2.0 (the "License"); you may not use this file exce... | 2,136 |
378 | <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 "... | 1,683 |
1,755 | /*=========================================================================
Program: Visualization Toolkit
Module: vtkXdmfHeavyData.cxx
Copyright (c) <NAME>, <NAME>, <NAME>
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
This software is distributed WIT... | 22,140 |
2,344 | <gh_stars>1000+
#!/usr/bin/env python
"""
Created by howie.hu at 30/03/2018.
"""
import time
from pprint import pprint
from ruia import Spider, Item, TextField, AttrField
from ruia_ua import middleware as ua_middleware
from owllook.database.mongodb import MotorBase
class HYNovelInfoItem(Item):
"""
定义继承自it... | 1,834 |
388 | <filename>Source/CesiumRuntime/Public/CesiumMetadataUtilityBlueprintLibrary.h
#pragma once
#include "CesiumMetadataFeatureTable.h"
#include "CesiumMetadataGenericValue.h"
#include "CesiumMetadataPrimitive.h"
#include "Containers/UnrealString.h"
#include "Kismet/BlueprintFunctionLibrary.h"
#include "UObject/ObjectMacro... | 761 |
8,428 | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: proto/core/node/common/service/object_search_message.proto
"""Generated protocol buffer code."""
# third party
from google.protobuf import descriptor as _descriptor
from google.protobuf import descriptor_pool as _descriptor_poo... | 1,195 |
579 | /*
* Copyright (c) 2020-2021 Valve Corporation
* Copyright (c) 2020-2021 LunarG, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0... | 3,253 |
578 | <filename>cachelib/compact_cache/CCacheVariableLruBucket.h
/*
* 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.apac... | 13,705 |
3,395 | <reponame>MitchellTesla/datasets<filename>datasets/elkarhizketak/elkarhizketak.py
# Copyright 2020 The HuggingFace Datasets Authors and the current dataset script contributor.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may... | 3,440 |
575 | <reponame>sarang-apps/darshan_browser
#!/usr/bin/env vpython
# Copyright 2018 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.
import json
import os
import shutil
import tempfile
import unittest
from core import path_util
... | 4,867 |
5,169 | <gh_stars>1000+
{
"name": "DataManager",
"version": "0.2.0",
"summary": "DataManager is a small utility class that helps you manage Core Data.",
"description": "DataManager takes care of Core Data boilerplate code for you. It handles setting up the Core Data stack with support for asynchronous saves. It also in... | 275 |
356 | <gh_stars>100-1000
/* Detection of cycle or loop in a Singly linked list
Their may exist a node in a linked list which may point to another node present already in
the linked list before it, this leads to formation of loop in the linked list.
Solution: We use hare and tortoise algorithm to solve the problem. We mainta... | 808 |
4,224 | /****************************************************************************
*
* Copyright (c) 2015-2021 PX4 Development Team. 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. Red... | 2,281 |
977 | <filename>src/realm/util/network_ssl.cpp
#include <cstring>
#include <mutex>
#include <realm/string_data.hpp>
#include <realm/util/cf_str.hpp>
#include <realm/util/features.h>
#include <realm/util/network_ssl.hpp>
#if REALM_HAVE_OPENSSL
#ifdef _WIN32
#include <Windows.h>
#else
#include <pthread.h>
#endif
#include <op... | 20,074 |
348 | {"nom":"Vernou-la-Celle-sur-Seine","circ":"3ème circonscription","dpt":"Seine-et-Marne","inscrits":2067,"abs":1325,"votants":742,"blancs":51,"nuls":8,"exp":683,"res":[{"nuance":"UDI","nom":"<NAME>","voix":471},{"nuance":"FN","nom":"<NAME>","voix":212}]} | 107 |
388 | # Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.
from abc import ABC, abstractmethod
class ChannelProvider(ABC):
"""
ChannelProvider interface. This interface allows Bots to provide their own
implementation for the configuration parameters to connect to a Bot.... | 205 |
965 | BOOL CExampleView::OnPreparePrinting(CPrintInfo* pInfo)
{
//The document has 2 pages.
pInfo->SetMaxPage(2);
return CView::DoPreparePrinting(pInfo);
} | 61 |
318 | /* SCCS Id: @(#)zap.c 3.4 2003/08/24 */
/* Copyright (c) <NAME>, Amsterdam, 1985. */
/* NetHack may be freely redistributed. See license for details. */
#include "hack.h"
/* Disintegration rays have special treatment; corpses are never left.
* But the routine which calculates the damage is separate from the routine... | 51,688 |
2,542 | // ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
// ------------------------------------------------------------
#pragma once
#include "stdafx... | 2,577 |
578 | <filename>src/infra/Cpp20.h
#ifdef TWO_MODULES
#include <infra/Config.h>
#include <cassert>
#include <stdint.h>
#include <cfloat>
#include <climits>
//#include <cmath>
#include <ctime>
#include <cstring>
#include <cstdio>
#include <cstdlib>
#endif
| 108 |
348 | {"nom":"Crempigny-Bonneguête","dpt":"Haute-Savoie","inscrits":215,"abs":41,"votants":174,"blancs":16,"nuls":4,"exp":154,"res":[{"panneau":"1","voix":82},{"panneau":"2","voix":72}]} | 79 |
1,581 | <gh_stars>1000+
//
// UIScrollView+ADKPullToRefreshView.h
// AppDevKit
//
// Created by <NAME> on 12/23/13.
// Copyright © 2013, Yahoo Inc.
// Licensed under the terms of the BSD License.
// Please see the LICENSE file in the project root for terms.
//
#import <UIKit/UIKit.h>
@class ADKPullToRefreshContentView;... | 1,134 |
701 | <reponame>Keyboard-Slayer/brutal<filename>sources/libs/brutal/math/flow.h
#pragma once
#include <brutal/math/rect.h>
typedef enum
{
M_FLOW_LEFT_TO_RIGHT,
M_FLOW_RIGHT_TO_LEFT,
M_FLOW_TOP_TO_BOTTOM,
M_FLOW_BOTTOM_TO_TOP,
} MFlow;
MFlow m_flow_relative(MFlow parent, MFlow child);
MVec2 m_flow_to_vec(M... | 556 |
307 | <filename>code/graphics/tmapper.h<gh_stars>100-1000
/*
* Copyright (C) Volition, Inc. 1999. All rights reserved.
*
* All source code herein is the property of Volition, Inc. You may not sell
* or otherwise commercially exploit the source or things you created based on the
* source.
*
*/
#ifndef _TMAPPER_H
... | 1,903 |
558 | package skadistats.clarity.processor.sendtables;
import it.unimi.dsi.fastutil.ints.IntOpenHashSet;
import it.unimi.dsi.fastutil.ints.IntSet;
import org.slf4j.Logger;
import skadistats.clarity.io.s2.Field;
import skadistats.clarity.io.s2.FieldType;
import skadistats.clarity.io.s2.S2DTClass;
import skadistats.clarity.io... | 6,476 |
422 | #!/usr/bin/env python
from __future__ import division
import htpc, cherrypy, logging, xmlrpclib, base64
from cherrypy.lib.auth2 import require, member_of
from htpc.helpers import serve_template, fix_basepath, striphttp
class RTorrent(object):
def __init__(self):
self.logger = logging.getLogger('modules.rt... | 3,556 |
679 | <gh_stars>100-1000
/**************************************************************
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF license... | 14,734 |
45,293 | <reponame>Mu-L/kotlin
/* ----------------------------------------------------------------------------
Copyright (c) 2018-2020 Microsoft Research, <NAME>
This is free software; you can redistribute it and/or modify it under the
terms of the MIT license. A copy of the license can be found in the file
"licenses/third_part... | 1,424 |
3,094 | """
Implementation of SVM using cvxopt package. Implementation uses
soft margin and I've defined linear, polynomial and gaussian kernels.
To understand the theory (which is a bit challenging) I recommend reading the following:
http://cs229.stanford.edu/notes/cs229-notes3.pdf
https://www.youtube.com/playlist?list=PLoR... | 1,421 |
782 | <reponame>gatordevin/BoofCV
/*
* Copyright (c) 2020, <NAME>. All Rights Reserved.
*
* This file is part of BoofCV (http://boofcv.org).
*
* 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
... | 546 |
478 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
#include "pch.h"
#include "AdaptiveContainerStyleDefinition.h"
#include "AdaptiveContainerStylesDefinition.h"
#include "AdaptiveContainerStylesDefinition.g.cpp"
namespace winrt::AdaptiveCards::Rendering::Uwp::implementation... | 334 |
2,053 | package scouter.agent.counter.task;
import scouter.agent.Configure;
import scouter.agent.Logger;
import scouter.agent.counter.CounterBasket;
import scouter.agent.counter.anotation.Counter;
import scouter.agent.counter.jmx.LazyPlatformMBeanServer;
import scouter.lang.TimeTypeEnum;
import scouter.lang.pack.PerfCounterPa... | 865 |
333 | from rpython.jit.backend.llsupport.test.ztranslation_test import TranslationTestCallAssembler
import sys
# On Windows, this test crashes obscurely, but only if compiled with
# Boehm, not if run with no GC at all. So for now we'll assume it is
# really a Boehm bug, or maybe a Boehm-on-Windows-specific issue, and
# sk... | 157 |
1,006 | /****************************************************************************
* libs/libc/pwd/lib_getpwbuf.c
*
* 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 owne... | 1,033 |
743 | package pl.allegro.tech.hermes.domain.filtering.chain;
import pl.allegro.tech.hermes.domain.filtering.FilterableMessage;
import pl.allegro.tech.hermes.domain.filtering.MessageFilter;
import java.util.ArrayList;
import java.util.List;
public final class FilterChain {
private final List<MessageFilter> messageFilte... | 368 |
14,668 | <reponame>chromium/chromium<filename>content/browser/aggregation_service/aggregatable_report.h
// 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.
#ifndef CONTENT_BROWSER_AGGREGATION_SERVICE_AGGREGATABLE_RE... | 3,027 |
598 | //
// This file is subject to the terms and conditions defined in
// file 'LICENSE.md', which is part of this source code package.
//
@import CoreLocation;
@import MapKit;
BOOL MKCoordinateRegionIntersectsRegion(MKCoordinateRegion region1, MKCoordinateRegion region2);
BOOL MKCoordinateRegionContainsCoordinate(MKCoord... | 137 |
771 | <reponame>revolunet/tiny-helpers
{
"name": "flexulator",
"desc": "Understand how the flexbox spacing formula works right in the browser",
"url": "https://www.flexulator.com",
"tags": [
"CSS"
],
"maintainers": [
"telagraphic"
],
"addedAt": "2020-02-28"
}
| 112 |
311 | <reponame>thunlp/THUTag<gh_stars>100-1000
package org.thunlp.tagsuggest.train;
import java.io.File;
import java.io.IOException;
import java.util.Arrays;
import java.util.HashSet;
import java.util.Properties;
import java.util.Set;
import java.util.logging.Logger;
import org.apache.lucene.analysis.WhitespaceAnalyzer;
i... | 1,804 |
348 | <filename>docs/data/leg-t2/034/03404091.json
{"nom":"<NAME>","circ":"4ème circonscription","dpt":"Hérault","inscrits":76,"abs":34,"votants":42,"blancs":3,"nuls":0,"exp":39,"res":[{"nuance":"REM","nom":"<NAME>","voix":32},{"nuance":"FN","nom":"<NAME>","voix":7}]} | 111 |
30,023 | <gh_stars>1000+
"""Tests for the IFTTT component."""
| 20 |
348 | <gh_stars>100-1000
{"nom":"Aube","circ":"3ème circonscription","dpt":"Moselle","inscrits":188,"abs":82,"votants":106,"blancs":8,"nuls":3,"exp":95,"res":[{"nuance":"LR","nom":"<NAME>","voix":70},{"nuance":"REM","nom":"<NAME>","voix":25}]} | 98 |
5,169 | {
"name": "Alau.me",
"version": "2.1.1",
"summary": "Add referral tracking to your app on the App Store. Create unique download links to track clicks and actual installs.",
"description": "[Alau.me](http://alau.me) is an iOS App Referral Tracking API. It allows you to create short referral links pointing to you... | 490 |
335 | {
"word": "Septuagenarian",
"definitions": [
"A person who is between 70 and 79 years old."
],
"parts-of-speech": "Noun"
} | 65 |
333 |
/************************************************************/
/*** C header subsection: operations on LowLevelTypes ***/
#include <string.h>
/* used by rpython.rlib.rstack */
#define OP_STACK_CURRENT(r) r = (Signed)&r
#define OP_RAW_MALLOC(size, zero, result) { \
if (zero) ... | 2,992 |
5,821 | <gh_stars>1000+
from metaflow_test import MetaflowTest, ExpectationFailed, steps
class MergeArtifactsTest(MetaflowTest):
PRIORITY = 1
@steps(0, ['start'])
def start(self):
self.non_modified_passdown = 'a'
self.modified_to_same_value = 'b'
self.manual_merge_required = 'c'
se... | 1,101 |
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.cdn.models;
import com.azure.core.annotation.Immutable;
import com.azure.core.util.logging.ClientLogger;
import ... | 1,518 |
390 | {"dependencies":{},"fastboot":{"appName":"fastboot-app","config":{"fastboot-app":{"APP":{"autoboot":false,"name":"fastboot-app","version":"0.0.0+fcd8aedb"},"EmberENV":{"EXTEND_PROTOTYPES":{"Date":false},"FEATURES":{},"_APPLICATION_TEMPLATE_WRAPPER":false,"_DEFAULT_ASYNC_OBSERVERS":true,"_JQUERY_INTEGRATION":false,"_TEM... | 235 |
1,240 | <gh_stars>1000+
// RadarScroller.h
// XXP
//
// Created by <NAME> on Mon Feb 17 2003.
#import <Foundation/Foundation.h>
@interface RadarScroller : NSScroller {
NSMutableDictionary *I_marks;
float I_maxHeight;
}
- (void)setMaxHeight:(int)maxHeight;
- (void)setMarkFor:(NSString *)aIdentifier withColor:(NS... | 174 |
5,730 | package org.ansj.recognition.impl;
import org.ansj.domain.Term;
import org.ansj.splitWord.analysis.NlpAnalysis;
import org.junit.Assert;
import org.junit.Test;
import java.util.ArrayList;
import java.util.List;
/**
* 词性识别测试
*
* @author Ansj
*
*/
public class NatureRecognitionTest {
@Test
public void test() ... | 632 |
445 | /////////////////////////////////////////////////////////////////////////
// $Id: sse_move.cc,v 1.95 2008/08/16 12:19:30 sshwarts Exp $
/////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2003 <NAME>
// Written by <NAME> [sshwarts at sourceforge net]
//
// This libr... | 21,866 |
335 | /*
* Sndmix.cpp
* -----------
* Purpose: Pattern playback, effect processing
* Notes : (currently none)
* Authors: <NAME>
* OpenMPT Devs
* The OpenMPT source code is released under the BSD license. Read LICENSE for more details.
*/
#include "stdafx.h"
#include "Sndfile.h"
#include "MixerLoops.h"
#i... | 39,259 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.