max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
18,325 | <gh_stars>1000+
package com.zheng.pay.rpc.api;
import com.zheng.common.base.BaseServiceMock;
import com.zheng.pay.dao.mapper.PayInOrderDetailMapper;
import com.zheng.pay.dao.model.PayInOrderDetail;
import com.zheng.pay.dao.model.PayInOrderDetailExample;
/**
* 降级实现PayInOrderDetailService接口
* Created by shuzheng on 201... | 195 |
381 | package com.grouter.demo.activity;
import android.os.Bundle;
import androidx.annotation.Nullable;
import androidx.appcompat.app.AppCompatActivity;
import com.grouter.GRouter;
import com.grouter.RouterActivity;
@RouterActivity(value = "settings/about_us,about_us",exported = false)
public class AboutUsActivity extends... | 192 |
751 | #!/usr/bin/env python3
# Copyright (c) 2021 Graphiant, Inc.
import unittest
from framework import VppTestCase, VppTestRunner
from vpp_policer import VppPolicer, PolicerAction
# Default for the tests is 10s of "Green" packets at 8Mbps, ie. 10M bytes.
# The policer helper CLI "sends" 500 byte packets, so default is 20... | 2,254 |
1,444 | package mage.filter.common;
import mage.constants.SubType;
import mage.constants.TargetController;
import mage.filter.FilterPermanent;
/**
*
* @author TheElk801
*/
public class FilterTeamPermanent extends FilterPermanent {
public FilterTeamPermanent() {
this("permanent your team controls");
}
... | 291 |
318 | <filename>include/sp_lev.h<gh_stars>100-1000
/* SCCS Id: @(#)sp_lev.h 3.4 1996/05/08 */
/* Copyright (c) 1989 by <NAME> */
/* NetHack may be freely redistributed. See license for details. */
#ifndef SP_LEV_H
#define SP_LEV_H
/* wall directions */
#define W_NORTH 1
#define W_SOUTH 2
#define W_EAST 4
#defin... | 1,788 |
852 | <reponame>ckamtsikis/cmssw
import FWCore.ParameterSet.Config as cms
def create_genmatch(process, inputs,
distance=0.3
):
producer = process.hgc3DClusterGenMatchSelector.clone(
dR = cms.double(distance),
src = cms.InputTag('{}:HGCalBackendLayer2Processor3DClustering'.format(i... | 165 |
4,129 | <gh_stars>1000+
package android.webkit;
public abstract class WebViewDatabase {
}
| 25 |
335 | /*
*
* Written by <NAME> <<EMAIL>>
*
* This example code is in the Public Domain (or CC0 licensed, at your option.)
* Unless required by applicable law or agreed to in writing, this
* software is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
* CONDITIONS OF ANY KIND, either express or implied.
*
*/
#in... | 3,049 |
1,346 | <reponame>morehouse/fuzzer-test-suite
// Copyright 2016 Google Inc. All Rights Reserved.
// Licensed under the Apache License, Version 2.0 (the "License");
#include <stdint.h>
#include <stdlib.h>
#include <string>
#include <arpa/nameser.h>
#include <ares.h>
extern "C" int LLVMFuzzerTestOneInput(const uint8_t *Data, s... | 212 |
763 | {
"class": "org.batfish.question.ospfarea.OspfAreaConfigurationQuestion",
"differential": false,
"nodes": "${nodes}",
"instance": {
"description": "Returns configuration parameters of OSPF areas.",
"longDescription": "Returns information about all OSPF areas defined across the network.",... | 373 |
5,269 | /*
* Copyright (c) 2020, <NAME> and/or its affiliates. All rights reserved.
*
* This software is licensed under the Apache License, Version 2.0 (the
* "License") as published by the Apache Software Foundation.
*
* You may not use this file except in compliance with the License. You may
* obtain a ... | 1,706 |
2,151 | // Copyright (c) 2012 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 "net/proxy_resolution/proxy_info.h"
#include "net/proxy_resolution/proxy_retry_info.h"
namespace net {
ProxyInfo::ProxyInfo() : did_bypass... | 896 |
701 | <gh_stars>100-1000
# ##### BEGIN MIT LICENSE BLOCK #####
# Copyright (C) 2012 by <NAME>
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the ... | 2,109 |
8,629 | #pragma once
#include <Processors/Formats/Impl/JSONColumnsBlockOutputFormat.h>
namespace DB
{
/* Format JSONColumnsWithMetadata outputs all data as a single block in the next format:
* {
* "meta":
* [
* {
* "name": "name1",
* "type": "type1"
* },
* {
* ... | 747 |
1,083 | #ifndef NODE_KIND
#define NODE_KIND(NAME, EXTERNAL_NAME)
#endif
#ifndef NODE_ANNOTATION
#define NODE_ANNOTATION(NAME)
#endif
#ifndef NODE_ANNOTATION_CHANGE_KIND
#define NODE_ANNOTATION_CHANGE_KIND(NAME) NODE_ANNOTATION(NAME)
#endif
#ifndef KEY
#define KEY(NAME)
#endif
#ifndef KEY_STRING
#define KEY_STRING(NAME, EXT... | 2,853 |
312 | <gh_stars>100-1000
/*******************************************************************************
* Copyright (c) 2015 Eclipse RDF4J contributors, Aduna, and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Distribution License v1.0
* w... | 2,982 |
615 | /**
* @file probing.h
* @author <NAME>
*
* All files in META are dual-licensed under the MIT and NCSA licenses. For more
* details, consult the file LICENSE.mit and LICENSE.ncsa in the root of the
* project.
*/
#ifndef META_HASHING_PROBING_H_
#define META_HASHING_PROBING_H_
#include <cstddef>
#include <cstdint... | 1,761 |
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.
// This file has been auto-generated by code_generator_v8.py.
// DO NOT MODIFY!
// This file has been generated from the Jinja2 template in
// third_part... | 552 |
438 | <reponame>Pocoyo-dev/Discord-Bot
{
"DESCRIPTION": "Débannir un membre",
"USAGE": "unban <ID_utilisateur> [motif]",
"NO_ONE": "Il n'y a personne a débannir.",
"SUCCESS": "*<@{{USER}}> n'est plus banni*.",
"MISSING": "Aucun utilisateur banni avec cet ID : {{ID}}."
}
| 128 |
1,056 | <filename>ide/spi.debugger.ui/src/org/netbeans/modules/debugger/ui/actions/ViewActions.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,384 |
707 | <gh_stars>100-1000
// Copyright (c) FIRST and other WPILib contributors.
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
#pragma once
#include <array>
#include "Eigen/Core"
#include "units/time.h"
namespace frc {
/**
... | 381 |
22,688 | /******************************************************************************
* Copyright 2018 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
... | 571 |
815 | <filename>LuaNode_Esp32/LuaNode32/components/free80211/free80211.c
#include "esp_system.h"
int8_t ieee80211_freedom_output(uint32_t *ifx, uint8_t *buffer, uint16_t len);
extern void* g_wifi_menuconfig;
uint32_t zeros[64] = { 0x00000000 };
/*
* ieee80211_freedom_output returns -4 if value at addr [content of register... | 607 |
5,166 | <reponame>gabehollombe-aws/aws-doc-sdk-examples
// snippet-sourcedescription:[rekognition-image-java-detect-text.java demonstrates how to detect text in an image loaded from an S3 Bucket.]
// snippet-service:[rekognition]
// snippet-keyword:[Java]
// snippet-sourcesyntax:[java]
// snippet-keyword:[Amazon Rekognition... | 1,255 |
1,553 | from functools import wraps
import sys
import Queue
def exception_catcher(fn):
""" Catch exceptions raised by the decorated function.
Call check() to raise any caught exceptions.
"""
exceptions = Queue.Queue()
@wraps(fn)
def wrapped(*args, **kwargs):
try:
ret = fn(*args... | 309 |
5,169 | {
"name": "ScribaSDK",
"version": "1.6",
"summary": "An iOS SDK to enable apps to access all the functionality of the Scriba stylus, a radical new stylus design for mobile devices",
"description": "To allow third-party developers to integrate the unique features of the Scriba stylus\ninto their applications, we... | 343 |
5,460 | from urllib.parse import urlparse
def region_from_applicationautoscaling_url(url):
domain = urlparse(url).netloc
if "." in domain:
return domain.split(".")[1]
else:
return "us-east-1"
| 88 |
764 | {"symbol": "VEE","address": "0x340D2bdE5Eb28c1eed91B2f790723E3B160613B7","overview":{"en": ""},"email": "","website": "https://blockv.io/","state": "NORMAL","links": {"blog": "https://medium.com/@blockv_io","twitter": "https://twitter.com/blockv_io","telegram": "https://t.me/block_v","github": "https://github.com/BLOCK... | 134 |
964 | // Copyright 2020 Google LLC
//
// 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 ... | 1,194 |
1,584 | <reponame>ddugovic/julius4<filename>gramtools/nextword/wtoken.c
/*
* Copyright (c) 1991-2013 Kawahara Lab., Kyoto University
* Copyright (c) 2000-2005 Shikano Lab., Nara Institute of Science and Technology
* Copyright (c) 2005-2013 Julius project team, Nagoya Institute of Technology
* All rights reserved
*/
#incl... | 1,719 |
841 | <reponame>brunolmfg/resteasy
package org.jboss.resteasy.test.core.basic;
import org.jboss.arquillian.container.test.api.Deployment;
import org.jboss.arquillian.container.test.api.RunAsClient;
import org.jboss.arquillian.junit.Arquillian;
import org.jboss.resteasy.test.core.basic.resource.ApplicationConfig;
impor... | 1,267 |
348 | <reponame>chamberone/Leaflet.PixiOverlay
{"nom":"Saint-Martin-en-Bresse","circ":"4ème circonscription","dpt":"Saône-et-Loire","inscrits":1522,"abs":894,"votants":628,"blancs":57,"nuls":33,"exp":538,"res":[{"nuance":"SOC","nom":"<NAME>","voix":277},{"nuance":"REM","nom":"<NAME>","voix":261}]} | 122 |
749 | package com.openxu.hkchart.base;
import android.content.Intent;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import com.openxu.cview.TitleLayout;
import com.openxu.hkchart.R;
import com.openxu.utils.StatusBarUtil;
import androidx.annotation.Nu... | 862 |
363 | # -*- coding: utf-8 -*-
'''
Functions for daemonizing and otherwise modifying running processes
'''
import os
import time
import signal
import logging
import io
import sys
import hubblestack.defaults.exitcodes
import hubblestack.utils.files
log = logging.getLogger(__name__)
# pylint: disable=import-error
HAS_PSUTIL... | 1,732 |
2,389 | package io.kubernetes.client.openapi.models;
import java.lang.Deprecated;
import io.kubernetes.client.fluent.BaseFluent;
import java.lang.Object;
import java.lang.String;
import java.lang.Boolean;
/**
* Generated
*/
public class V1PersistentVolumeClaimVolumeSourceFluentImpl<A extends io.kubernetes.client.openapi... | 747 |
1,351 | from hashlib import sha256
def hash(x):
return sha256(x).digest()
| 29 |
1,962 | package com.bolingcavalry.customizeimport;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
public class CustomizeimportApplication {
public static void main(String[] args) {
SpringApplication.run(Customizeimpor... | 101 |
973 | {
"name": "angular-ui-router",
"description": "State-based routing for AngularJS",
"peerDependencies": {
"angular": ">1.2 <2.0"
},
"main": "release/angular-ui-router.js",
"typings": "commonjs/ng1.d.ts"
}
| 94 |
646 | package com.dimple.project.log.service.impl;
import com.dimple.common.utils.ConvertUtils;
import com.dimple.common.utils.SecurityUtils;
import com.dimple.project.log.mapper.QuartzJobLogMapper;
import com.dimple.project.log.service.QuartzJobLogService;
import com.dimple.project.log.domain.QuartzJobLog;
import org.sprin... | 554 |
489 | <filename>include/openspace/interaction/action.h
/*****************************************************************************************
* *
* OpenSpace ... | 1,597 |
2,757 | /** @file
Recommended GUID to be used in the Vendor Hardware device path nodes that
identify qemu ramfb devices.
Copyright (C) 2018, Red Hat, Inc.
This program and the accompanying materials are licensed and made available
under the terms and conditions of the BSD License that accompanies this
dis... | 303 |
1,411 | <reponame>mrpool404/cloudsplaining<gh_stars>1000+
"""Scan multiple AWS accounts via AssumeRole"""
import logging
import os
import json
from pathlib import Path
from typing import Dict, Any, Optional, List
import yaml
import click
from click_option_group import optgroup
from cloudsplaining.shared.constants import EXCLU... | 3,596 |
348 | {"nom":"Forbach","circ":"6ème circonscription","dpt":"Moselle","inscrits":13675,"abs":9128,"votants":4547,"blancs":51,"nuls":22,"exp":4474,"res":[{"nuance":"REM","nom":"<NAME>","voix":1081},{"nuance":"FN","nom":"<NAME>","voix":966},{"nuance":"DVD","nom":"<NAME>","voix":566},{"nuance":"LR","nom":"M. <NAME>","voix":544},... | 363 |
14,668 | <reponame>zealoussnow/chromium<filename>tools/metrics/histograms/presubmit_bad_message_reasons.py
# 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.
"""Check to see if the various BadMessage enums in histogra... | 681 |
335 | {
"word": "Whimper",
"definitions": [
"Make a series of low, feeble sounds expressive of fear, pain, or unhappiness.",
"Say something in a low, feeble voice that expresses fear, pain, or unhappiness."
],
"parts-of-speech": "Verb"
} | 98 |
2,293 | <filename>CMSIS/NN/Tests/UnitTest/TestCases/TestData/svdf_3/input_sequence_data.h<gh_stars>1000+
// Generated by generate_test_data.py using TFL version 2.6.0 as reference.
#pragma once
#include <stdint.h>
const q7_t svdf_3_input_sequence[40] = {-64, -83, 38, 1, 119, -124, -53, -63, 52, -23, -22, -122, -79, -22,
... | 304 |
2,226 | /*
ffplaydummy.cpp - Implementation file for the dummy ffplay class.
Revision 0
Notes:
-
2021/09/29 - <NAME>
*/
#include "ffplaydummy.h"
// Disable NymphLogger.
#define NO_NYMPH_LOGGER = 1
#include <Poco/NumberFormatter.h>
#ifndef NO_NYMPH_LOGGER
#include <nymph/nymph_logger.h>
#endif
// Static ... | 2,505 |
4,891 | /*
*
* This file is part of the open-source SeetaFace engine, which includes three modules:
* SeetaFace Detection, SeetaFace Alignment, and SeetaFace Identification.
*
* This file is part of the SeetaFace Identification module, containing codes implementing the
* face identification method described in the follow... | 1,612 |
418 | <filename>DescriptorTables/DescriptorTables/DescriptorTables.cpp
// DescriptorTables.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include <stdlib.h>
#include <Windows.h>
#include <intrin.h>
int main()
{
#ifdef _WIN64
unsigned char idtr[10] = { 0 };
__sidt(idtr);
unsigned long... | 1,053 |
846 | import glob
import os
import random
import semver
import shutil
import termcolor
from git import Repo
def print_info(data):
print(termcolor.colored(data, "cyan"))
def print_success(data):
print(termcolor.colored(data, "green"))
def print_warning(data):
print(termcolor.colored(data,... | 3,313 |
4,283 | <reponame>larrydiamond/hazelcast<gh_stars>1000+
/*
* Copyright (c) 2008-2021, Hazelcast, Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache... | 3,081 |
627 | import copy
import json
import pytest
from indy_common.authorize import auth_map
from indy_common.authorize.auth_actions import ADD_PREFIX, EDIT_PREFIX
from indy_common.authorize.auth_constraints import IDENTITY_OWNER, AuthConstraint
from indy_common.constants import REVOC_REG_ENTRY, PREV_ACCUM, VALUE, CRED_DEF_ID, R... | 3,790 |
897 | <filename>C/dp/maximum_sum_increasing_subsequence.c
// C program to implement Maximum Sum Increasing Subsequence
/*
In this problem, given an array we have to find the maximum sum an increasing subsequence of that array can make.
This problem is a slight modification to the Longest Increasing subsequence problem.
The p... | 841 |
450 | <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
... | 2,822 |
342 | <reponame>youmengme/wechaty-test
{
"name": "codesandbox-wechaty-getting-started",
"version": "0.5.1",
"description": "Wechaty is a Conversational SDK for Chatbot Makers",
"type": "module",
"engines": {
"node": ">=16"
},
"scripts": {
"gotty": "bash -x install-gotty.sh",
"start": "npm install &&... | 531 |
577 | <gh_stars>100-1000
# Copyright 2021 Kyoto University (<NAME>)
# Apache 2.0 (http://www.apache.org/licenses/LICENSE-2.0)
"""Monotonic attention in MoChA at training time."""
import logging
import torch
logger = logging.getLogger(__name__)
def parallel_monotonic_attention(e_ma, aw_prev, trigger_points, eps, noise_... | 1,829 |
301 | <reponame>saleguas/context_menu
import inspect
import sys
import os
import platform
# Need to append all the python subdirectories because Python doesn't recognize them
sys.path.append(os.path.abspath(os.path.dirname(__file__)))
# Import the necessary library depending on the OS
if platform.system() == 'Linux':
... | 2,009 |
398 | package io.joyrpc.example.spring;
/*-
* #%L
* joyrpc
* %%
* Copyright (C) 2019 joyrpc.io
* %%
* 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/L... | 401 |
304 | /*
* Copyright 2019-2021 CloudNetService team & contributors
*
* 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... | 1,080 |
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 ... | 1,367 |
1,350 | <filename>sdk/databricks/azure-resourcemanager-databricks/src/main/java/com/azure/resourcemanager/databricks/fluent/VNetPeeringsClient.java
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resou... | 3,584 |
494 | package com.netflix.astyanax.serializers;
import java.nio.ByteBuffer;
import junit.framework.Assert;
import org.junit.Test;
public class SerializerPackageImplTest {
@Test
public void test() {
SerializerPackageImpl serializers = new SerializerPackageImpl();
try {
serializers.setColumnType("CompositeType(UTF... | 467 |
14,668 | <filename>storage/browser/file_system/memory_file_stream_writer_unittest.cc
// 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 "storage/browser/file_system/memory_file_stream_writer.h"
#include <... | 1,115 |
1,433 | //-----------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
//
// Tool: AllJoynCodeGenerator.exe
//
// This tool is located... | 293 |
451 | <reponame>kikislater/micmac
template <class Obj> Pt2dr TypeFPRIM<Obj>::operator() (const Obj & tq) const {return tq.GetPt2dr();}
template <class Obj> Pt2dr TypeFPRIMHomol<Obj>::operator() (const Obj & tq) const {return tq.GetPt2drHomol();}
//////////////////////////////////////////////////////////////////////////////... | 523 |
329 | <reponame>camelspeed/couchnode
/* -*- Mode: C; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */
/*
* Copyright 2010-2020 Couchbase, 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 c... | 1,167 |
66,635 | # coding: utf-8
from __future__ import unicode_literals
import re
from .common import InfoExtractor
from ..utils import (
compat_str,
float_or_none,
int_or_none,
smuggle_url,
str_or_none,
try_get,
)
class STVPlayerIE(InfoExtractor):
IE_NAME = 'stv:player'
_VALID_URL = r'https?://play... | 1,709 |
2,053 | package scouter.agent.util;
/**
* @author <NAME> (<EMAIL>) on 2016. 1. 26.
*/
public interface ILeakableObject {
public void close();
}
| 50 |
3,181 | /*
* SPDX-FileCopyrightText: 2020, microG Project Team
* SPDX-License-Identifier: Apache-2.0
*/
package com.google.firebase.auth.api.internal;
import org.microg.safeparcel.AutoSafeParcelable;
import java.util.ArrayList;
import java.util.List;
public class CreateAuthUriResponse extends AutoSafeParcelable {
@F... | 264 |
743 | <filename>hermes-consumers/src/main/java/pl/allegro/tech/hermes/consumers/supervisor/workload/FlatBinaryConsumerAssignmentRegistry.java
package pl.allegro.tech.hermes.consumers.supervisor.workload;
import com.google.common.collect.Sets;
import org.apache.curator.framework.CuratorFramework;
import org.slf4j.Logger;
imp... | 1,212 |
337 | <filename>compiler/ir/serialization.common/src/org/jetbrains/kotlin/backend/common/serialization/proto/KotlinIr.java<gh_stars>100-1000
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: compiler/ir/serialization.common/src/KotlinIr.proto
package org.jetbrains.kotlin.backend.common.serialization.pro... | 197 |
634 | /****************************************************************
* 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... | 1,382 |
1,031 | // Copyright (C) 2018-2019 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#pragma once
#include <string>
#include <vector>
#include <gflags/gflags.h>
#include <iostream>
static const char help_message[] = "Print a usage message.";
static const char video_message[] = "Required for video or image files in... | 4,029 |
713 | <reponame>franz1981/infinispan<filename>server/memcached/src/main/java/org/infinispan/server/memcached/LifecycleCallbacks.java
package org.infinispan.server.memcached;
import org.infinispan.configuration.global.GlobalConfiguration;
import org.infinispan.factories.GlobalComponentRegistry;
import org.infinispan.factorie... | 433 |
2,053 | <filename>librtp/payload/rtp-mp4a-latm-pack.c<gh_stars>1000+
/// RFC3016 RTP Payload Format for MPEG-4 Audio/Visual Streams
/// RFC6416 RTP Payload Format for MPEG-4 Audio/Visual Streams
///
/// MPEG-4 Audio streams MUST be formatted LATM (Lowoverhead
/// MPEG-4 Audio Transport Multiplex)[14496 - 3] streams, and the
//... | 1,776 |
637 | /*
* Microsoft JDBC Driver for SQL Server Copyright(c) Microsoft Corporation All rights reserved. This program is made
* available under the terms of the MIT License. See the LICENSE file in the project root for more information.
*/
package com.microsoft.sqlserver.testframework.sqlType;
import java.sql.Clob;
... | 453 |
3,102 | <reponame>clayne/DirectXShaderCompiler<filename>tools/clang/test/Preprocessor/macro_arg_directive.h
// Support header for macro_arg_directive.c
int n;
struct S {
int k;
};
void g(int);
| 74 |
348 | {"nom":"Huêtre","circ":"2ème circonscription","dpt":"Loiret","inscrits":200,"abs":95,"votants":105,"blancs":3,"nuls":0,"exp":102,"res":[{"nuance":"LR","nom":"<NAME>","voix":72},{"nuance":"REM","nom":"<NAME>","voix":30}]} | 89 |
666 | import sys
sys.path.append("../../")
def changed(widg):
print(widg, "changed")
def change(widg):
if widg == "SCALE":
app.setScale("a", 50, app.getCheckBox(widg))
elif widg == "OB":
app.changeOptionBox("a", ["- Fruits -", "Apple", "Orange",
"Pear", "kiwi", "- Pets -", "Dogs"... | 708 |
13,846 | <reponame>legistek/AspNetCore<filename>src/Servers/IIS/AspNetCoreModuleV2/CommonLib/StdWrapper.cpp
// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
#include "stdafx.h"
#include "StdWrapper.h"
#include "exceptions.h"
#... | 1,990 |
366 | <filename>blockchain-part1/src/main/java/cn/merryyou/blockchain/util/JsonUtil.java
package cn.merryyou.blockchain.util;
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
/**
* Created on 2018/1/17.
*
* @author zlf
* @since 1.0
*/
public class JsonUtil {
public static String toJson(Object objec... | 206 |
677 | <reponame>polo-language/ohc
/*
* Copyright (C) 2014 <NAME>, Koeln, Germany, robert-stupp.de
*
* 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/li... | 419 |
898 | <filename>test/source/tests/executor_tests/manual_executor_tests.cpp
#include "concurrencpp/concurrencpp.h"
#include "infra/tester.h"
#include "infra/assertions.h"
#include "utils/object_observer.h"
#include "utils/test_generators.h"
#include "utils/executor_shutdowner.h"
namespace concurrencpp::tests {
void test... | 22,171 |
2,381 | package com.github.dockerjava.api.model;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import javax.annotation.Nonnull;
import java.util.HashMap;
import java.util.Map;
/**
* @since 1.24
*/
public enum EventType {
CONFIG("config"),
/**
* @since ... | 474 |
4,050 | /*
* Copyright 2021 LinkedIn Corp.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to i... | 1,113 |
1,018 | """
Transform Excel work sheet into GAMS code to perform endo exo operations and change variable levels.
"""
import os
import sys
import pandas as pd
import xlwings as xw
def main():
# Read execution paremeters
workbook_path = os.path.abspath(sys.argv[1])
assert os.path.splitext(workbook_path)[1].lower()... | 1,391 |
474 | <gh_stars>100-1000
#import <Foundation/Foundation.h>
#import "SLGPUImageOutput.h"
@interface SLGPUImageFilterPipeline : NSObject
{
NSString *stringValue;
}
@property (strong) NSMutableArray *filters;
@property (strong) SLGPUImageOutput *input;
@property (strong) id <SLGPUImageInput> output;
- (id)initWithOrdere... | 411 |
612 | <filename>tf/model.py<gh_stars>100-1000
import tensorflow as tf
import sys
def positional_embedding(pos_seq, inv_freq, bsz=None):
sinusoid_inp = tf.einsum('i,j->ij', pos_seq, inv_freq)
pos_emb = tf.concat([tf.sin(sinusoid_inp), tf.cos(sinusoid_inp)], -1)
if bsz is not None:
return tf.tile(pos_emb[... | 19,117 |
2,109 | <filename>Tools/JohnTheRipper-bleeding-jumbo/src/vncpcap2john.c
/* vncpcap2john utility (modified VNCcrack) written in March of 2012
* by <NAME>. vncpcap2john processes input TightVNC/RealVNC pcap
* dump files into a format suitable for use with JtR. Works for all
* versions (3.3, 3.7 and 3.8) of RFB protocol.
*
*... | 3,975 |
3,287 | # --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------... | 6,192 |
343 | <filename>syzygy/testing/laa.h
// Copyright 2015 Google Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
/... | 681 |
1,511 | {
"model_version": "4.0.0",
"group_id": "io.github.subiyacryolite",
"artifact_id": "jds",
"version": "3.0.1",
"classifier": null,
"packaging": "jar",
"parent": {},
"name": "Jenesis Data Store",
"description": "A dynamic, cross platform, high performance, ORM data-mapper. Designed to assist in rapid de... | 984 |
848 | /*
* 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 applicable law or agreed to ... | 5,393 |
1,163 | # Copyright DataStax, 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 agreed to in writing, softwa... | 1,021 |
533 | <reponame>baajur/Anakin
/* Copyright (c) 2019 Anakin Authors, Inc. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
... | 13,064 |
1,863 | <gh_stars>1000+
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
// * Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
// * Redist... | 1,200 |
381 | import gc
from rpython.rlib.rweaklist import RWeakListMixin, INITIAL_SIZE
class A(object):
pass
def test_simple():
a1 = A(); a2 = A()
wlist = RWeakListMixin(); wlist.initialize()
i = wlist.add_handle(a1)
assert i == INITIAL_SIZE - 1
i = wlist.reserve_next_handle_index()
assert i == INITI... | 755 |
875 | <gh_stars>100-1000
package com.jeecg.p3.system.service;
import java.util.List;
import org.jeecgframework.p3.core.utils.common.PageList;
import org.jeecgframework.p3.core.utils.common.PageQuery;
import com.jeecg.p3.system.entity.JwSystemActTxt;
/**
* 描述:</b>JwSystemActTxtService<br>
* @author:junfeng.zhou
* @since... | 457 |
13,885 | <reponame>N500/filament
/*
* 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/LICENSE-2.0
*
... | 777 |
72,551 | // This file serves as a sanity check to ensure that the header is parseable
// from C and that no C++ code has sneaked in.
#include "swift-c/DependencyScan/DependencyScan.h"
typedef swiftscan_module_details_t _check_module_details_exists;
| 77 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.