max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
3,651 | package com.orientechnologies.orient.distributed.impl.structural.submit;
import java.io.DataInput;
import java.io.DataOutput;
import java.io.IOException;
public interface OStructuralSubmitResponse {
void serialize(DataOutput output) throws IOException;
void deserialize(DataInput input) throws IOException;
int... | 97 |
335 | <reponame>mrslezak/Engine<filename>OREData/ored/configuration/iborfallbackconfig.cpp
/*
Copyright (C) 2021 Quaternion Risk Management Ltd
All rights reserved.
This file is part of ORE, a free-software/open-source library
for transparent pricing and risk analysis - http://opensourcerisk.org
ORE is free software: ... | 7,127 |
679 | <reponame>denisgotthans/togglz
package org.togglz.spring.activation;
import java.util.ArrayList;
import java.util.List;
import org.springframework.context.ApplicationContext;
import org.togglz.core.activation.AbstractTokenizedActivationStrategy;
import org.togglz.core.activation.Parameter;
import org.togglz.core.activ... | 1,281 |
601 | package com.java3y.austin.stream.utils;
import com.java3y.austin.stream.callback.RedisPipelineCallBack;
import com.java3y.austin.stream.constants.AustinFlinkConstant;
import io.lettuce.core.LettuceFutures;
import io.lettuce.core.RedisClient;
import io.lettuce.core.RedisFuture;
import io.lettuce.core.RedisURI;
import i... | 696 |
446 | /* ========================================
* PurestAir - PurestAir.h
* Copyright (c) 2016 airwindows, All rights reserved
* ======================================== */
#ifndef __PurestAir_H
#include "PurestAir.h"
#endif
void PurestAir::processReplacing(float **inputs, float **outputs, VstInt32 sampleFrames)
{
... | 3,072 |
14,668 | // 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.
#include "device/bluetooth/bluetooth_pairing_winrt.h"
#include <utility>
#include "base/bind.h"
#include "base/logging.h"
#include "base/strings/string_... | 4,728 |
3,212 | <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 copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "Lic... | 656 |
648 | <gh_stars>100-1000
{"resourceType":"SearchParameter","id":"Immunization-vaccine-code","url":"http://hl7.org/fhir/SearchParameter/Immunization-vaccine-code","name":"vaccine-code","publisher":"Health Level Seven International (Public Health and Emergency Response)","contact":[{"telecom":[{"system":"other","value":"http:/... | 195 |
8,772 | package org.apereo.cas.notifications.push;
import org.apereo.cas.authentication.principal.Principal;
import org.springframework.core.Ordered;
import java.util.Map;
/**
* This is {@link NotificationSender}.
*
* @author <NAME>
* @since 6.3.0
*/
@FunctionalInterface
public interface NotificationSender extends Ord... | 380 |
629 | <gh_stars>100-1000
/*
* Copyright (c) 2017-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
#pragma once
#include <unordered_map>
#include "flags.h"
#include "module.h"
#include "state.h"
#include "unitsinfo.... | 1,420 |
471 | package org.plantuml.idea.grammar;
import com.intellij.lang.refactoring.NamesValidator;
import com.intellij.openapi.project.Project;
import org.jetbrains.annotations.NotNull;
import static org.apache.commons.lang.StringUtils.containsNone;
public class PumlNamesValidator implements NamesValidator {
@Override
... | 308 |
568 | package com.novoda.simonsaysandroidthings;
import android.app.Activity;
import android.os.Bundle;
import android.widget.TextView;
import com.google.android.things.pio.PeripheralManagerService;
import com.google.firebase.database.DataSnapshot;
import com.google.firebase.database.DatabaseError;
import com.google.fireba... | 1,534 |
566 | <filename>args4j/test/org/kohsuke/args4j/ExplicitBooleanOptionTest.java
package org.kohsuke.args4j;
import org.kohsuke.args4j.ExplicitBooleanOptionTest.BooleanOptionHolder;
import org.kohsuke.args4j.spi.ExplicitBooleanOptionHandler;
public class ExplicitBooleanOptionTest extends Args4JTestBase<BooleanOptionHolder> {
... | 1,504 |
703 | #include <GameEngine/GameEnginePCH.h>
#include <GameEngine/VisualScript/VisualScriptInstance.h>
#include <GameEngine/VisualScript/VisualScriptNode.h>
// clang-format off
EZ_BEGIN_DYNAMIC_REFLECTED_TYPE(ezVisualScriptNode, 1, ezRTTINoAllocator)
EZ_END_DYNAMIC_REFLECTED_TYPE;
// clang-format on
ezVisualScriptNode::ezV... | 1,896 |
518 | {
"name": "<NAME>",
"category": "Task & Project Management",
"start_url": "https://www.pivotaltracker.com/signin",
"icons": [
{
"src": "https://cdn.filestackcontent.com/BNGXjp8iQjGjJu7vvUJm",
"platform": "browserx"
}
],
"theme_color": "#ED7D1A",
"scope": "https://www.pivotaltracker.com... | 170 |
11,094 | <gh_stars>1000+
import numpy as np
import matplotlib.pyplot as plt
from pathlib import Path
import math
from torch.utils.data import TensorDataset, DataLoader
from HelperClass.NeuralNet_1_2 import *
from HelperClass.Visualizer_1_0 import *
from Level2_ShowMultipleResult import ShowData
import torch.nn as nn
import torc... | 1,557 |
578 | <reponame>GerHobbelt/CacheLib
/*
* 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
... | 1,229 |
771 | <reponame>noitcudni/tiny-helpers<filename>helpers/regular-expresssions-101.json
{
"name": "regular expresssions 101",
"url": "https://regex101.com/",
"desc": "Learn, build, & test Regular Expressions",
"tags": [
"Regular Expressions"
],
"maintainers": [
"firasdib"
],
"addedAt": "2019-12-29"
}
| 131 |
356 | <reponame>hardeepnagi/java-util
package com.cedarsoftware.util;
import org.junit.Assert;
import org.junit.Test;
import java.lang.reflect.Constructor;
import java.lang.reflect.Modifier;
import java.net.InetAddress;
/**
* useful InetAddress Utilities
*
* @author <NAME>
* <br>
* Copyright (c) Cedar... | 681 |
5,169 | {
"name": "CategorySpecDemo",
"version": "0.0.1",
"summary": "A short description of CategorySpecDemo.",
"description": "这是一个分类的podspec的demo测试",
"homepage": "https://github.com/MrLuanJX/CategoryDemo",
"authors": {
"luanjinxin": "<EMAIL>"
},
"platforms": {
"ios": "9.0"
},
"source": {
"git... | 248 |
1,844 | /*
* Copyright 2010-2013 Ning, Inc.
* Copyright 2014-2018 Groupon, Inc
* Copyright 2014-2018 The Billing Project, LLC
*
* The Billing Project licenses this file to you 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 cop... | 15,942 |
763 | <reponame>zabrewer/batfish<filename>projects/batfish/src/main/java/org/batfish/representation/cisco_nxos/RouteDistinguisherOrAuto.java
package org.batfish.representation.cisco_nxos;
import java.io.Serializable;
import java.util.Objects;
import javax.annotation.Nonnull;
import javax.annotation.Nullable;
import org.batf... | 531 |
878 | <gh_stars>100-1000
package com.lfk.justweengine.drawable.Button;
import android.graphics.Color;
import android.graphics.Paint;
import android.graphics.Point;
import android.graphics.Rect;
import android.renderscript.Float2;
import com.lfk.justweengine.engine.Engine;
import com.lfk.justweengine.utils.tools.DisplayUtil... | 2,014 |
1,741 | from .shim import *
from .util import get_dpi_scale
import logging
logger = logging.getLogger("Lighthouse.Qt.WaitBox")
#--------------------------------------------------------------------------
# Qt WaitBox
#--------------------------------------------------------------------------
class WaitBox(QtWidgets.QDialog):... | 1,282 |
852 | /*
* GoldenPatternBase.cpp
*
* Created on: Oct 3, 2017
* Author: kbunkow
*/
#include "L1Trigger/L1TMuonOverlapPhase1/interface/Omtf/GoldenPatternBase.h"
#include "FWCore/MessageLogger/interface/MessageLogger.h"
#include <iomanip>
std::ostream& operator<<(std::ostream& out, const Key& o) {
out << "Key_" ... | 2,548 |
804 | package com.example.abner.stickerdemo.view;
import android.app.Dialog;
import android.content.Context;
import android.os.Handler;
import android.text.Editable;
import android.text.TextUtils;
import android.text.TextWatcher;
import android.view.KeyEvent;
import android.view.View;
import android.view.inputmethod.EditorI... | 2,313 |
377 | # PYAF_URL="http://pyaf.herokuapp.com/model"
PYAF_URL="http://0.0.0.0:8081/model"
def test_heroku_pyaf(data):
url = PYAF_URL
header = {"Content-Type":"application/json"}
import httplib2
http = httplib2.Http()
response, send = http.request(url, "POST", headers=header, body=data)
content = resp... | 410 |
1,916 | /* -------------------------------------------------------------------------- *
* Simbody(tm) *
* -------------------------------------------------------------------------- *
* This is part of the SimTK biosimulation toolkit originating from *
... | 10,794 |
377 | #pragma once
#ifndef DEBUG_SVGTESTPAGEHANDLER_H
#define DEBUG_SVGTESTPAGEHANDLER_H
//------------------------------------------------------------------------------
/**
@class Debug::SvgTestPageHandler
A HTTP test page handler to test SVG rendering functionality.
@copyright
(C) 2008 Radon Labs ... | 330 |
1,019 | /*
* Copyright 2016 The Cartographer 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... | 549 |
5,964 | <filename>third_party/WebKit/Source/core/plugins/testing/DictionaryPluginPlaceholder.h
// Copyright 2014 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 DictionaryPluginPlaceholder_h
#define DictionaryPluginPlace... | 636 |
488 | /*******************************************************************************
* Copyright 2012 University of Southern California
*
* 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
*
... | 442 |
2,151 | // 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.
#ifndef CHROME_BROWSER_VR_ELEMENTS_LASER_H_
#define CHROME_BROWSER_VR_ELEMENTS_LASER_H_
#include "chrome/browser/vr/elements/ui_element.h"
#include "chro... | 561 |
539 | # Copyright 2018-2021 Xanadu Quantum Technologies Inc.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or... | 1,436 |
377 | #include "Exception.h"
MPFD::Exception::Exception(const std::string& error) {
Error = error;
}
MPFD::Exception::Exception(const MPFD::Exception& orig) {
if (&orig != this) {
Error = orig.Error;
}
}
const std::string& MPFD::Exception::GetError() const {
return Error;
} | 110 |
8,805 | {
"name": "react-native-geolocation",
"version": "2.0.2",
"summary": "React Native Geolocation Module for iOS and Android",
"license": "MIT",
"authors": "React Native Community",
"homepage": "https://github.com/react-native-community/react-native-geolocation#README.md",
"platforms": {
"ios": "9.0"
}... | 216 |
345 | <gh_stars>100-1000
import tensorflow as tf
import sonnet as snt
# from sonnet.python.modules.base import AbstractModule
# from sonnet.python.modules.basic import Linear as snt.Linear
# from sonnet.python.modules.gated_rnn import LSTM as snt.LSTM
# from sonnet.python.modules.basic_rnn import DeepRNN as snt.DeepRNN
# fro... | 1,533 |
1,414 | /*---------------------------------------------------------------------------
//
// 3 Band EQ :)
//
// EQ.H - Header file for 3 band EQ
//
// (c) <NAME> / Etanza Systems / 2K6
//
// Shouts / Loves / Moans = etanza at lycos dot co dot uk
//
// This work is hereby placed in the public doma... | 623 |
315 | package no.nordicsemi.android.mesh.transport;
import no.nordicsemi.android.mesh.opcodes.ConfigMessageOpCodes;
/**
* Creates the ConfigDefaultTtlGet message.
*/
@SuppressWarnings("unused")
public class ConfigDefaultTtlGet extends ConfigMessage {
private static final String TAG = ConfigDefaultTtlGet.class.getSi... | 270 |
1,503 | <filename>greykite/tests/sklearn/uncertainty/test_base_uncertainty_model.py
import pandas as pd
import pytest
from greykite.sklearn.uncertainty.base_uncertainty_model import BaseUncertaintyModel
from greykite.sklearn.uncertainty.uncertainty_methods import UncertaintyMethodEnum
@pytest.fixture
def uncertainty_dict():... | 466 |
348 | {"nom":"Podensac","circ":"9ème circonscription","dpt":"Gironde","inscrits":1975,"abs":1002,"votants":973,"blancs":10,"nuls":5,"exp":958,"res":[{"nuance":"MDM","nom":"Mme <NAME>","voix":296},{"nuance":"SOC","nom":"M. <NAME>","voix":187},{"nuance":"FI","nom":"<NAME>","voix":153},{"nuance":"FN","nom":"Mme <NAME>","voix":1... | 299 |
909 | public class InstanceMethod {
public boolean <caret>foo(int i) {
return i == 0;
}
public void test() {
foo(1)
}
} | 52 |
850 | <gh_stars>100-1000
import unittest
from .utils import adjust, cleanse_java, cleanse_python, TranspileTestCase
class AdjustTests(unittest.TestCase):
def assertEqualOutput(self, actual, expected):
self.assertEqual(adjust(actual), adjust(expected))
def test_adjust(self):
"Test input can be stri... | 6,264 |
364 | <reponame>mbw-ahc/hapi-fhir
package ca.uhn.fhir.rest.api;
/*
* #%L
* HAPI FHIR - Core Library
* %%
* Copyright (C) 2014 - 2021 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 copy of the... | 762 |
4,036 | package typeaccesses;
public class Arrays {
String[] ss;
java.util.List<String>[] sls;
} | 34 |
30,023 | <filename>homeassistant/components/uscis/__init__.py
"""The uscis component."""
| 28 |
1,247 | package org.seckill.api.service;
import org.seckill.entity.Goods;
import java.io.Serializable;
import java.util.List;
/**
*
* @author heng
* @date 2017/1/7
*/
public interface GoodsService {
/**
* @param goodsId
* @param bytes
*/
void uploadGoodsPhoto(long goodsId, byte[] bytes);
/**... | 192 |
14,668 | {
"name": "options_ui with chrome_style in manifest v3",
"description": "Tests that specifying chrome_style=true is invalid for manifest v3",
"version": "1",
"manifest_version": 3,
"options_ui": {
"page": "options.html",
"chrome_style": true
}
}
| 95 |
348 | <reponame>chamberone/Leaflet.PixiOverlay
{"nom":"Saint-Aigulin","circ":"4ème circonscription","dpt":"Charente-Maritime","inscrits":1578,"abs":887,"votants":691,"blancs":48,"nuls":24,"exp":619,"res":[{"nuance":"LR","nom":"<NAME>","voix":350},{"nuance":"REM","nom":"<NAME>","voix":269}]} | 115 |
553 | package com.muses.taoshop.item.entity;
import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.springframewor... | 577 |
677 | <reponame>InfiniteSynthesis/lynx-native
#ifndef LYNX_LEPUS_MATH_API_H_
#define LYNX_LEPUS_MATH_API_H_
#include <time.h>
namespace lepus {
Value Sin(Context* context) {
Value* arg = context->GetParam(1);
if(arg->type_ != Value_Number){
return Value();
}
return Value(... | 2,356 |
337 | <filename>challenges/platformids.py
platforms = {
"UA": "usaco.org",
"CC": "codechef.com",
"EOL":"e-olimp.com",
"CH24": "ch24.org",
"HR": "hackerrank.com",
"HE": "hackerearth.com",
"ICPC": "icfpcontest.org",
"GCJ": "google.com/codejam",
"DE24": "deadline24.pl",
"IOI": "stats.ioinformatics.org",... | 368 |
1,444 |
package mage.cards.d;
import mage.abilities.Ability;
import mage.abilities.dynamicvalue.common.ManacostVariableValue;
import mage.abilities.effects.Effect;
import mage.abilities.effects.common.DamageTargetControllerEffect;
import mage.abilities.effects.common.DestroyTargetEffect;
import mage.cards.CardImpl;
import ma... | 719 |
846 | <filename>components/dynamic-icon/component.json<gh_stars>100-1000
{
"component": "dynamic-icon",
"status": "prod",
"display-name": "Dynamic Icon",
"classKey": "DynamicIcon",
"SLDS-component-path": "/components/dynamic-icon",
"site-stories": [
{
"heading": "Ellie",
"path": "/__examples__/ellie.jsx"
},
... | 372 |
5,169 | <gh_stars>1000+
{
"name": "BecmPod",
"version": "0.1.0",
"summary": "BecmPod.",
"description": "Pod Becm",
"homepage": "https://github.com/grupobecm/BecmPod.git",
"license": {
"type": "MIT",
"file": "LICENSE"
},
"authors": {
"vadue": "<EMAIL>"
},
"source": {
"git": "https://github.co... | 238 |
1,042 | /*
* Copyright (c) scott.cgi All Rights Reserved.
*
* This source code belongs to project Mojoc, which is a pure C Game Engine hosted on GitHub.
* The Mojoc Game Engine is licensed under the MIT License, and will continue to be iterated with coding passion.
*
* License : https://github.com/scottcgi/Mojoc/blob/ma... | 3,891 |
1,491 | import unittest
import os
import mock
import torchtext
from seq2seq.dataset import SourceField, TargetField
from seq2seq.trainer import SupervisedTrainer
class TestSupervisedTrainer(unittest.TestCase):
def setUp(self):
test_path = os.path.dirname(os.path.realpath(__file__))
src = SourceField()
... | 810 |
658 | #include <stdint.h>
#include <stddef.h>
#include <tinf/tinf.h>
__attribute__((noreturn))
void entry(uint8_t *compressed_stage2, size_t stage2_size, uint8_t boot_drive, int pxe) {
// The decompressor should decompress compressed_stage2 to address 0x8000.
uint8_t *dest = (uint8_t *)0x8000;
tinf_gzip_uncompr... | 361 |
1,681 | # -*- coding: utf-8 -*-
"""
=============================
Using describe to evaluate the integrity of your visualization
=============================
The downside to using dimensionality reduction to visualize your data is that
some variance will likely be removed. To help get a sense for the integrity of your low
di... | 181 |
342 | /*
* Copyright 2009,2015-2016 BitMover, Inc
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law o... | 4,739 |
648 | <filename>spec/hl7.fhir.core/1.0.2/package/SearchParameter-Condition-onset-info.json
{"resourceType":"SearchParameter","id":"Condition-onset-info","url":"http://hl7.org/fhir/SearchParameter/Condition-onset-info","name":"onset-info","publisher":"Health Level Seven International (Patient Care)","contact":[{"telecom":[{"s... | 260 |
452 | <reponame>umautobots/pytorch_wavelets
# coding: utf-8
h0, g0, h1, g1 = level1('near_sym_a', True)
h0 = np.array([[0, -.05, 0.25, 0.5, 0.25, -0.05, 0]]).T
g1 = np.array([[0 -.05, -.25, .6, -.25, -.05, 0]]).T
h0 *= 1/np.sqrt(np.sum(h0**2))
h1 *= 1/np.sqrt(np.sum(h1**2))
g0 *= 1/np.sqrt(np.sum(g0**2))
g1 *= 1/np.sqrt(np.s... | 502 |
778 | // KRATOS ___| | | |
// \___ \ __| __| | | __| __| | | __| _` | |
// | | | | | ( | | | | ( | |
// _____/ \__|_| \__,_|\___|\__|\__,_|_| \__,_|_| MECHANICS
//
// License: BSD License
// license: structural_mechanics_applic... | 5,549 |
1,405 | package com.lenovo.safecenter.HealthCheck;
public interface HealthCheckCallback {
void onFinished(int i);
void onOneItemProcess(HealthItemResult healthItemResult);
void onProgressChanged(int i);
void onResult(HealthItemResult healthItemResult);
void onScoreChanged(int i);
void onStarted(in... | 136 |
1,350 | <reponame>Shashi-rk/azure-sdk-for-java<filename>sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/fluent/HcxEnterpriseSitesClient.java
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
... | 2,406 |
2,255 | // Copyright (C) 2006-2010, Rapid7, Inc
// All rights reserved.
//
// 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 ... | 1,267 |
348 | {"nom":"Serra-di-Ferro","circ":"2ème circonscription","dpt":"Corse-du-Sud","inscrits":514,"abs":145,"votants":369,"blancs":8,"nuls":0,"exp":361,"res":[{"nuance":"LR","nom":"<NAME>","voix":192},{"nuance":"REG","nom":"<NAME>","voix":169}]} | 97 |
7,194 | <gh_stars>1000+
{
"type": "none",
"comment": "Updating outdated fixtures now that makeStyles no longer supports functions.",
"packageName": "@fluentui/make-styles-webpack-loader",
"email": "<EMAIL>",
"dependentChangeType": "none"
}
| 80 |
454 | <filename>c/pahelix/toolkit/linear_rna/linear_rna/utils/energy_parameter.cpp
#include "utils/energy_parameter.h"
double g_lxc37 = 107.856;
int g_ml_intern37 = -90;
int g_ml_closing37 = 930;
int g_ml_base37 = 0;
int g_max_ninio = 300;
int g_ninio37 = 60;
int g_terminal_au37 = 50; // lhuang: outermost pair is AU or GU;... | 10,496 |
610 | <reponame>niunno/leanback-showcase
/*
* Copyright (C) 2017 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICEN... | 1,549 |
3,428 | {"id":"00937","group":"easy-ham-1","checksum":{"type":"MD5","value":"1442bfa30552275d60548860104339c3"},"text":"From <EMAIL> Wed Aug 28 10:51:16 2002\nReturn-Path: <<EMAIL>>\nDelivered-To: yyyy<EMAIL>.netnoteinc.com\nReceived: from localhost (localhost [127.0.0.1])\n\tby phobos.labs.netnoteinc.com (Postfix) with ESMTP... | 1,278 |
476 | #include <stdbool.h>
#include <stdio.h>
#include <xtables.h>
#include <linux/netfilter/xt_mark.h>
struct xt_mark_info {
unsigned long mark, mask;
uint8_t invert;
};
enum {
O_MARK = 0,
};
static void mark_mt_help(void)
{
printf(
"mark match options:\n"
"[!] --mark value[/mask] Match nfmark value with optional ... | 1,372 |
323 | <reponame>dparalen/libsolv
int read_installed_debian(struct repoinfo *cinfo);
void commit_transactionelement_debian(Pool *pool, Id type, Id p, FILE *fp);
| 54 |
379 | <filename>src/vcfprimers.cpp
/*
vcflib C++ library for parsing and manipulating VCF files
Copyright © 2010-2020 <NAME>
Copyright © 2020 <NAME>
This software is published under the MIT License. See the LICENSE file.
*/
#include "Variant.h"
#include "split.h"
#include "Fasta.h"
#include <getopt.h>... | 2,183 |
4,973 | # set empty string to the third column to use the first section title to document title
latex_documents = [
('index', 'test.tex', '', 'Sphinx', 'report')
]
| 50 |
464 | <reponame>mmvanheusden/ForgeHax
package dev.fiki.forgehax.main.mods.player;
import dev.fiki.forgehax.api.cmd.flag.EnumFlag;
import dev.fiki.forgehax.api.cmd.settings.BooleanSetting;
import dev.fiki.forgehax.api.cmd.settings.IntegerSetting;
import dev.fiki.forgehax.api.event.SubscribeListener;
import dev.fiki.forgehax.... | 3,689 |
997 | <reponame>mkannwischer/PQClean<gh_stars>100-1000
#ifndef _RAINBOW_BLAS_H_
#define _RAINBOW_BLAS_H_
/// @file rainbow_blas.h
/// @brief Defining the functions used in rainbow.c acconding to the definitions in rainbow_config.h
///
/// Defining the functions used in rainbow.c acconding to the definitions in rainbow_confi... | 710 |
12,252 | <gh_stars>1000+
/*
* Copyright 2019 Red Hat, Inc. and/or its affiliates
* and other contributors as indicated by the @author tags.
*
* 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,083 |
743 | <filename>guacamole/src/main/java/org/apache/guacamole/tunnel/StreamInterceptingFilter.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 ASF... | 2,534 |
5,250 | <reponame>jiandiao/flowable-engine
/* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed t... | 1,159 |
3,269 | # Time: O(n)
# Space: O(n)
class UndirectedGraphNode(object):
def __init__(self, x):
self.label = x
self.neighbors = []
class Solution(object):
# @param node, a undirected graph node
# @return a undirected graph node
def cloneGraph(self, node):
if node is None:
ret... | 412 |
398 | package com.ruiyun.example;
import java.io.IOException;
import java.lang.reflect.Method;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import com.ruiyun.jvppeteer.core.browser.Browser;
import com.ruiyun.jvppeteer.core.browser.BrowserFetcher;
import com.ruiyun.jvppeteer.core.page.P... | 485 |
665 | /*
* 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")... | 3,067 |
434 | #pragma once
#include "Base/Mesh.h"
#include "Base/Texture2D.h"
#include <string>
class Model
{
public:
Model(std::string name);
~Model();
void Update();
void SetupMeshOnGPU();
void UploadToGPU();
void Render();
glm::vec3 position = glm::vec3(0.0f);
glm::vec3 rotation = glm::vec3(0.0f);
glm::vec3 scale = ... | 225 |
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.avs.models;
import com.azure.core.util.ExpandableStringEnum;
import com.fasterxml.jackson.annotation.JsonCreator... | 442 |
756 | <reponame>jonfung-scale/jonfung-httpcomponents-client
/*
* ====================================================================
* 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
* regar... | 1,955 |
3,212 | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | 2,054 |
2,499 | <filename>qmq-backup/src/main/java/qunar/tc/qmq/backup/store/impl/HBaseRecordStore.java
/*
* Copyright 2018 Qunar, 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://w... | 4,952 |
318 | <reponame>dicristina/baresip
/**
* @file ui.c User Interface
*
* Copyright (C) 2010 <NAME>
*/
#include <string.h>
#include <re.h>
#include <baresip.h>
#include "core.h"
static int stdout_handler(const char *p, size_t size, void *arg)
{
(void)arg;
if (1 != fwrite(p, size, 1, stdout))
return ENOMEM;
return ... | 1,743 |
11,356 | <gh_stars>1000+
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: SoundAnalysisPreprocessing.proto
#ifndef PROTOBUF_SoundAnalysisPreprocessing_2eproto__INCLUDED
#define PROTOBUF_SoundAnalysisPreprocessing_2eproto__INCLUDED
#include <string>
#include <google/protobuf/stubs/common.h>
#if GOOGLE_P... | 3,801 |
591 | from typing import Iterator, Dict
class Offset2ID:
def __init__(self, ids=None):
self.ids = ids or []
def get_id(self, idx):
return self.ids[idx]
def append(self, data):
self.ids.append(data)
def extend(self, data):
self.ids.extend(data)
def update(self, positio... | 608 |
2,842 | <gh_stars>1000+
{
"name": "@wasm/arc_js",
"description": "",
"version": "1.0.0",
"scripts": {
"build": "gulp --gulpfile ./build.ts"
},
"devDependencies": {
},
"wasmStudio": {
"name": "ARCH JavaScript Project",
"description": "# ARCH JavaScript Project\n\nThis project comes with a small examp... | 156 |
331 | // Copyright © 2018 ChaiShushan <<EMAIL>>.
// License: https://creativecommons.org/licenses/by-nc-sa/4.0/
#include <stdio.h>
struct Int {
int Twice() {
const int* p = (int*)(this);
return (*p) * 2;
}
};
int main() {
int x = 42;
int v = ((Int*)(&x))->Twice();
printf("%d\n", v);
return 0;
}
| 138 |
777 | // Copyright 2014 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 IOS_WEB_PUBLIC_WEBUI_WEB_UI_IOS_CONTROLLER_FACTORY_H_
#define IOS_WEB_PUBLIC_WEBUI_WEB_UI_IOS_CONTROLLER_FACTORY_H_
#include "ios/web/public/webu... | 371 |
3,614 | package com.central.oauth.service.impl;
import com.central.oauth.service.ZltUserDetailsService;
import lombok.Setter;
import org.springframework.beans.factory.InitializingBean;
import org.springframework.security.core.Authentication;
import org.springframework.security.core.userdetails.*;
import org.springframework.se... | 720 |
370 | #define ZINT
#include <../Source/umf_garbage_collection.c>
| 22 |
701 |
#ifndef _Demo_Tutorial_SMAAGameState_H_
#define _Demo_Tutorial_SMAAGameState_H_
#include "OgrePrerequisites.h"
#include "TutorialGameState.h"
#include "OgreMesh2.h"
namespace Demo
{
class Tutorial_SMAAGameState : public TutorialGameState
{
private:
Ogre::SceneNode *mSceneNode[16];
Ogre::SceneNode ... | 266 |
313 | from common import *
# TODO: when introducing new encoder/decoder this needs to be updated consider
# using GRAPH.DEBUG command to be able to get this data
keys = {
b'x': b'\x07\x81\x82\xb6\xa9\x85\xd6\xadh\n\x05\x02x\x00\x02\x1e\x02\x00\x02\x01\x02\x00\x02\x03\x02\x01\x05\x02v\x00\x02\x01\x02\x00\x05\x02N\x00\x02... | 2,707 |
3,285 | <gh_stars>1000+
/*
Copyright 2020 The OneFlow 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 applic... | 1,345 |
725 | <reponame>vexofp/hyperion
// STL includes
#include <cstring>
#include <cstdio>
#include <iostream>
// hyperion local includes
#include "LedDeviceAmbiLed.h"
LedDeviceAmbiLed::LedDeviceAmbiLed(const std::string& outputDevice, const unsigned baudrate, int delayAfterConnect_ms) :
LedRs232Device(outputDevice, baudrate, d... | 446 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.