max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
841 | <filename>jbpm-services/jbpm-kie-services/src/test/java/org/jbpm/kie/services/test/ProcessServiceWithEntitiesTest.java
/*
* Copyright 2017 Red Hat, Inc. and/or its affiliates.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* Yo... | 2,564 |
669 | <reponame>mszhanyi/onnxruntime<filename>tools/ci_build/github/apple/package_assembly_utils.py
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.
import enum
import json
import os
import pathlib
import re
import shutil
from typing import Dict, List
_script_dir = pathlib.Path(... | 1,348 |
1,253 | #include<bits/stdc++.h>
using namespace std;
vector<int> adj[100000];
stack<int> st;
bool vis[1000000];
void dfs(int a)
{
vis[a]=1;
for (int i = 0; i < adj[a].size(); i++) {
int v=adj[a][i];
if(vis[v]) continue;
vis[v]=1;
dfs(v);
}
st.push(a);
}
int main()
{
int n;
cin>>n;
for(int i=0;i<n-... | 282 |
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 ... | 967 |
572 | <reponame>BrendaH/django-machina
"""
Forum tracking models
=====================
This module defines models provided by the ``forum_tracking`` application.
"""
from machina.apps.forum_tracking.abstract_models import (
AbstractForumReadTrack, AbstractTopicReadTrack
)
from machina.core.db.models import... | 134 |
677 | <filename>introcore/include/lixfastread.h<gh_stars>100-1000
/*
* Copyright (c) 2020 Bitdefender
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef _LIXFASTREAD_H_
#define _LIXFASTREAD_H_
#include "introcore.h"
INTSTATUS
IntLixFsrInitMap(
_In_ QWORD Gva
);
void
IntLixFsrUninitMap(
void
);
INTSTATUS
... | 212 |
5,305 | <reponame>tanishiking/dotty
public class Test {
public static void main(String[] args) {
C<String> c = new C<String>();
scala.collection.Iterable<String> ls = c.tail();
}
}
| 68 |
32,544 | package com.baeldung.reactive.functional;
import com.baeldung.webflux.Employee;
import com.baeldung.webflux.EmployeeRepository;
import org.junit.FixMethodOrder;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.MethodSorters;
import org.springframework.beans.factory.annotation.Autowired;... | 1,222 |
351 | package me.ele.dna.finder;
import android.text.TextUtils;
import java.lang.reflect.Method;
import java.lang.reflect.Modifier;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import me.ele.dna.model.MethodInfo;
import me.ele.dna.util.DnaUtils;
public abstract class BaseDnaFinder {
pro... | 1,714 |
1,179 | <filename>src/wnetcaps.c
/********************************************************************
WNetCaps.c
Returns net status
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the MIT License.
********************************************************************/
#includ... | 1,483 |
613 | <filename>Code-Code/Clone-detection-BigCloneBench/evaluator/evaluator.py
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT license.
import logging
import sys
from sklearn.metrics import recall_score,precision_score,f1_score
def read_answers(filename):
answers={}
with open(filename) as f:
... | 757 |
667 | <filename>api/cplus/src/lb.cpp
/**
* Tencent is pleased to support the open source community by making Tseer available.
*
* Copyright (C) 2018 THL A29 Limited, a Tencent company. All rights reserved.
*
* Licensed under the BSD 3-Clause License (the "License"); you may not use this file except
* in compliance wit... | 518 |
14,668 | <reponame>zealoussnow/chromium
// Copyright 2016 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/media/router/mojo/media_route_provider_util_win.h"
#include "base/bind.h"
#include "base/files/fi... | 589 |
45,293 | package verification.kt33972japi;
public class InheritTheJApi33972 {
public void overrideMe(String s, int i, Double aDouble) {
}
}
| 49 |
637 | <reponame>Nekoer/uncle-novel<filename>app/src/main/java/com/unclezs/novel/app/main/views/components/cell/TagsTableCell.java
package com.unclezs.novel.app.main.views.components.cell;
import cn.hutool.core.util.StrUtil;
import com.unclezs.novel.app.framework.components.Tag;
import javafx.scene.control.TableCell;
import ... | 536 |
526 | /* SPDX-License-Identifier: Apache-2.0 */
/* Copyright Contributors to the ODPi Egeria project. */
package org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.typedefs;
import com.fasterxml.jackson.annotation.JsonAutoDetect;
import com.fasterxml.jackson.annotation.JsonIgnoreP... | 3,164 |
1,040 | <reponame>Ybalrid/orbiter<filename>Src/Celbody/Vsop87/Uranus/Uranus.cpp
// Copyright (c) <NAME>
// Licensed under the MIT License
#define ORBITER_MODULE
#include "Uranus.h"
// ======================================================================
// class Uranus: implementation
// ===================================... | 442 |
372 | <gh_stars>100-1000
package org.sunger.net.app;
import android.app.Application;
import com.facebook.drawee.backends.pipeline.Fresco;
import com.squareup.okhttp.OkHttpClient;
import org.sunger.net.config.ImagePipelineConfigFactory;
import org.sunger.net.entity.OauthUserEntity;
import org.sunger.net.support.okhttp.OkHt... | 638 |
543 | <gh_stars>100-1000
/*
* Copyright 2019 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable l... | 558 |
348 | {"nom":"Dannemarie-sur-Crète","circ":"1ère circonscription","dpt":"Doubs","inscrits":876,"abs":333,"votants":543,"blancs":9,"nuls":1,"exp":533,"res":[{"nuance":"REM","nom":"Mme <NAME>","voix":156},{"nuance":"SOC","nom":"Mme <NAME>","voix":110},{"nuance":"DVD","nom":"M. <NAME>","voix":65},{"nuance":"FN","nom":"Mme <NAME... | 282 |
3,102 | <reponame>medismailben/llvm-project
// RUN: %clang_cc1 %s -emit-llvm -o - | FileCheck %s
void *test1() {
// CHECK: call i8* @llvm.returnaddress
return __builtin_return_address(1);
}
void *test2() {
// CHECK: call i8* @llvm.frameaddress
return __builtin_frame_address(0);
}
| 119 |
2,133 | <reponame>uavosky/uavosky-qgroundcontrol<filename>src/QtLocationPlugin/qtlocation/include/QtLocation/5.5.1/QtLocation/private/qgeomaptype_p.h
#include "../../../../../src/location/maps/qgeomaptype_p.h"
| 84 |
1,144 | <reponame>dram/metasfresh
package org.adempiere.mm.attributes.api;
/*
* #%L
* de.metas.handlingunits.base
* %%
* Copyright (C) 2015 metas GmbH
* %%
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as
* published by the Free Software F... | 741 |
1,405 | package com.network.android.roomTap;
import android.content.Context;
import com.network.android.c.a.a;
/* access modifiers changed from: package-private */
public final class e implements Runnable {
/* renamed from: a reason: collision with root package name */
final /* synthetic */ Context f118a;
e(Co... | 267 |
738 | <reponame>zhquake/hudi<filename>hudi-flink-datasource/hudi-flink1.14.x/src/main/java/org/apache/hudi/adapter/Utils.java<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 informat... | 620 |
461 | <filename>03-Basic-Sorting/Insertion-Sort/src/ShellSort1.java
import java.util.Arrays;
public class ShellSort1 {
/**
* 希尔排序(shell sort)1:增量每次除以 2 递减
* @param arr
*/
public void sort(int[] arr) {
int len = arr.length;
int delta = len / 2;
while (delta >= 1) {
... | 692 |
562 | import os
import subprocess
try:
VERSION = __import__("pkg_resources").get_distribution("freight").version
except Exception:
VERSION = "unknown"
def _get_git_revision(path):
try:
r = subprocess.check_output("git rev-parse HEAD", cwd=path, shell=True)
except Exception:
return None
... | 364 |
2,542 | <reponame>vishnuk007/service-fabric
//------------------------------------------------------------
// Copyright (c) 2012 Microsoft Corporation. All rights reserved.
//------------------------------------------------------------
#define BOOST_TEST_DYN_LINK
#define BOOST_TEST_MODULE KtlLoggerTest
#include <boost/test/u... | 2,356 |
605 | // RUN: rm -rf %t.idx
// RUN: %clang_cc1 %s -index-store-path %t.idx
// RUN: c-index-test core -print-record %t.idx | FileCheck %s
// RUN: rm -rf %t.idx.ignore
// RUN: %clang_cc1 %s -index-store-path %t.idx.ignore -index-ignore-macros
// RUN: c-index-test core -print-record %t.idx.ignore | FileCheck %s -check-prefix D... | 700 |
385 | import numpy as np
from vectorhub.encoders.text.tfhub import USETransformer2Vec
from ....test_utils import assert_encoder_works
def test_labse_encode():
"""
Testing for USE encode
"""
import tensorflow as tf
encoder = USETransformer2Vec()
assert_encoder_works(encoder, vector_length=1024, data_t... | 177 |
411 | <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,373 |
778 | <filename>modAionImpl/test/org/aion/zero/impl/vm/TransactionExecutorTest.java
/*
* Copyright (c) 2017-2018 Aion foundation.
*
* This file is part of the aion network project.
*
* The aion network project is free software: you can redistribute it
* and/or modify it under the terms of the GNU General Pu... | 6,948 |
852 | <filename>DQM/HLTEvF/python/HLTObjectsMonitor_EGM_cfi.py
import FWCore.ParameterSet.Config as cms
egmObjects = cms.VPSet(
cms.PSet(
pathNAME = cms.string("HLT_DoubleEle33_CaloIdL_MW"),
moduleNAME = cms.string("hltDiEle33CaloIdLMWPMS2UnseededFilter"),
label = cms.string("unseede... | 36,889 |
30,023 | """Constants for the elmax-cloud integration."""
from homeassistant.const import Platform
DOMAIN = "elmax"
CONF_ELMAX_USERNAME = "username"
CONF_ELMAX_PASSWORD = "password"
CONF_ELMAX_PANEL_ID = "panel_id"
CONF_ELMAX_PANEL_PIN = "panel_pin"
CONF_ELMAX_PANEL_NAME = "panel_name"
CONF_CONFIG_ENTRY_ID = "config_entry_id"... | 186 |
30,023 | """Support for DSMR Reader through MQTT."""
from __future__ import annotations
from homeassistant.components import mqtt
from homeassistant.components.sensor import SensorEntity
from homeassistant.core import HomeAssistant, callback
from homeassistant.helpers.entity_platform import AddEntitiesCallback
from homeassista... | 646 |
731 | <gh_stars>100-1000
#ifndef _GUID_DEFINITION_HPP
#define _GUID_DEFINITION_HPP
#include <initguid.h>
// Actually, we should link uuid library, but we define only the necessary GUID here
// to avoid causing the multiple definition with the explicit GUID of wxWidgets.
// You can refer the well-known GUID.
// https://www.... | 280 |
898 | <filename>heroic-component/src/main/java/com/spotify/heroic/shell/protocol/MessageBuilder.java
/*
* Copyright (c) 2019 Spotify AB.
*
* 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
*... | 1,163 |
839 | <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,498 |
318 | package org.neo4j.ogm.domain.autoindex;
import org.neo4j.ogm.annotation.Id;
import org.neo4j.ogm.annotation.RelationshipEntity;
/**
* @author <NAME>
*/
@RelationshipEntity(type = "SAME_TYPE")
public class RelationshipEntityWithSameType1 {
@Id
private Long id;
}
| 106 |
719 | version https://git-lfs.github.com/spec/v1
oid sha256:0db39a84fc660f0b9f0411d0c47ee64e2edeec7bc16cac8de33186471c67135d
size 8308
| 66 |
504 | /***********************************************************************
*
* Copyright (c) Berkeley Softworks 1989 -- All Rights Reserved
*
* PROJECT: PCGEOS
* MODULE: Swat -- X11 interface, common definitions
* FILE: x11.h
*
* AUTHOR: <NAME>: Jul 18, 1989
*
* REVISION HISTORY:
* Date Name De... | 528 |
852 | <reponame>ckamtsikis/cmssw
import FWCore.ParameterSet.Config as cms
from DQMServices.Core.DQMEDAnalyzer import DQMEDAnalyzer
ecalPreshowerRecoSummary = DQMEDAnalyzer('ESRecoSummary',
prefixME = cms.untracked.string('EcalPreshower'),
superClusterCollection_EE = cms.InputTag("correctedMulti5x5SuperClustersWi... | 244 |
335 | <reponame>zhouruqin/MaskNet
import torch
import torch.nn as nn
import torch.nn.functional as F
def rmseOnFeatures(feature_difference):
# |feature_difference| should be 0
gt = torch.zeros_like(feature_difference)
return torch.nn.functional.mse_loss(feature_difference, gt, size_average=False)
class RMSEFeaturesLoss... | 167 |
1,127 | <reponame>ryanloney/openvino-1
// Copyright (C) 2018-2022 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <time.h>
#include <string.h>
#include <errno.h>
#include <ctype.h>
#include <sys/stat.h>
#if (defined(_WIN32) || defined(_WIN64) )
#i... | 10,831 |
4,036 | <reponame>vadi2/codeql<filename>cpp/ql/test/library-tests/pointsto/new-virtual/test.cpp
class MyClassBase
{
public:
virtual void method(int *ptr)
{
*ptr = 1;
}
int a;
};
class MyClass : public MyClassBase
{
virtual void method(int *ptr)
{
*ptr = 2;
}
};
void myFunction()
{
MyClassBase *ptr1 = new MyCla... | 183 |
749 | <reponame>richardsheridan/anyio
from abc import abstractmethod
from typing import Optional
from ._resources import AsyncResource
from ._streams import ByteReceiveStream, ByteSendStream
class Process(AsyncResource):
"""An asynchronous version of :class:`subprocess.Popen`."""
@abstractmethod
async def wai... | 800 |
980 | <filename>samples/main/java/org/jcodec/samples/mux/AVCMP4Demux.java
package org.jcodec.samples.mux;
import java.io.File;
/**
* This class is part of JCodec ( www.jcodec.org ) This software is distributed
* under FreeBSD License
*
* @author The JCodec project
*
*/
public class AVCMP4Demux {
public static vo... | 289 |
368 | /*
Plugin-SDK (Grand Theft Auto 3) source file
Authors: GTA Community. See more here
https://github.com/DK22Pac/plugin-sdk
Do not delete this comment block. Respect others' work!
*/
#include "CBaseModelInfo.h"
PLUGIN_SOURCE_FILE
int ctor_addr_o(CBaseModelInfo, void(ModelInfoType)) = ADDRESS_BY_VERSION... | 2,122 |
406 | <reponame>maximbaz/Hauk
package info.varden.hauk.http;
import android.content.Context;
import android.location.Location;
import android.util.Base64;
import java.nio.charset.StandardCharsets;
import java.security.SecureRandom;
import javax.crypto.Cipher;
import info.varden.hauk.Constants;
import info.varden.hauk.R;
... | 2,536 |
1,754 | /*
* Copyright 2018 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicabl... | 370 |
645 | <reponame>xuantan/viewfinder
// Copyright 2012 Viewfinder. All rights reserved.
// Author: <NAME>.
#import "AppState.h"
#import "ContactManager.h"
#import "DayTable.h"
#import "EpisodeTable.h"
#import "FullTextIndex.h"
#import "LazyStaticPtr.h"
#import "LocationUtils.h"
#import "NetworkQueue.h"
#import "PlacemarkHisto... | 19,833 |
2,659 | <filename>cases/function/spark/generate_yaml_case.py<gh_stars>1000+
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# Copyright 2021 4Paradigm
#
# 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
#... | 2,672 |
322 | <filename>experimental/broken_examples/mass_spring_partial_tightening.c
/*
* This file is part of acados.
*
* acados is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version... | 9,716 |
1,510 | /*
* 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,142 |
1,909 | <reponame>state303/spring-batch<gh_stars>1000+
/*
* Copyright 2006-2018 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apac... | 1,214 |
2,151 | # (c) 2005 <NAME> and contributors; written for Paste
# (http://pythonpaste.org)
# Licensed under the MIT license:
# http://www.opensource.org/licenses/mit-license.php
"""
Routines for testing WSGI applications.
"""
from webtest.app import TestApp
from webtest.app import TestRequest
from webtest.app import TestRespons... | 185 |
4,047 | extern "C" int foo(void);
int main(void) {
return foo() != 42;
}
| 31 |
679 | /**************************************************************
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to y... | 1,602 |
1,444 | <reponame>GabrielSturtevant/mage
package mage.cards.d;
import java.util.UUID;
import mage.abilities.Ability;
import mage.abilities.LoyaltyAbility;
import mage.abilities.common.PlaneswalkerEntersWithLoyaltyCountersAbility;
import mage.abilities.effects.Effect;
import mage.abilities.effects.OneShotEffect;
import mage.a... | 2,101 |
495 | <reponame>marlon-br/media-for-mobile
/*
* Copyright 2014-2016 Media for Mobile
*
* 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... | 1,750 |
1,118 | <gh_stars>1000+
{"deu":{"common":"Vatikanstadt","official":"Staat Vatikanstadt"},"fin":{"common":"Vatikaani","official":"Vatikaanin kaupunkivaltio"},"fra":{"common":"Cité du Vatican","official":"Cité du Vatican"},"hrv":{"common":"Vatikan","official":"Vatikan"},"ita":{"common":"Città del Vaticano","official":"Città del ... | 244 |
312 | <reponame>Fruit-Pi/mpp
/*
* Copyright 2015 Rockchip Electronics Co. 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... | 622 |
377 | # Copyright 2021 The ByT5 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 to in wri... | 965 |
625 | <reponame>DataSketches/sketches-core
/*
* 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,... | 6,528 |
892 | <filename>advisories/github-reviewed/2022/01/GHSA-x9r5-jxvq-4387/GHSA-x9r5-jxvq-4387.json
{
"schema_version": "1.2.0",
"id": "GHSA-x9r5-jxvq-4387",
"modified": "2022-01-06T19:18:42Z",
"published": "2022-01-06T22:48:56Z",
"aliases": [
"CVE-2021-43862"
],
"summary": "Self XSS on user input in jquery.ter... | 1,281 |
731 | #include "bind/syscmd/source.hpp"
#include "bind/binded_func.hpp"
#include "entry.hpp"
#include "err_logger.hpp"
#include "g_maps.hpp"
#include "g_params.hpp"
#include "key/char_logger.hpp"
#include "mode.hpp"
#include "opt/vcmdline.hpp"
#include "parser/bindings_parser.hpp"
#include "parser/rc_parser.hpp"
... | 3,590 |
368 | #include "pch.h"
#include "MainWindow.xaml.h"
#if __has_include("MainWindow.g.cpp")
#include "MainWindow.g.cpp"
#endif
using namespace winrt;
using namespace Microsoft::UI::Xaml;
using namespace AuthoringTest;
namespace winrt::AuthoringWinUITest::implementation
{
std::wstring GetLastCustomButtonStrin... | 644 |
571 | package de.gurkenlabs.litiengine.graphics;
public enum StaticShadowType {
DOWN,
DOWNLEFT,
DOWNRIGHT,
LEFT,
LEFTDOWN,
LEFTRIGHT,
NONE,
NOOFFSET,
RIGHT,
RIGHTDOWN,
RIGHTLEFT;
public static StaticShadowType get(final String mapObjectType) {
if (mapObjectType == null || mapObje... | 237 |
1,056 | <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
* ... | 953 |
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,163 |
2,208 | #!/usr/bin/env python
#########################################################################
# Reinforcement Learning with PGPE on the ShipSteering Environment
#
# Requirements: pylab (for plotting only). If not available, comment the
# last 3 lines out
# Author: <NAME>, <EMAIL>
#####################################... | 869 |
493 | <filename>src/com/jdh/microcraft/gui/PlayerInventoryMenu.java
package com.jdh.microcraft.gui;
import com.jdh.microcraft.Global;
import com.jdh.microcraft.entity.EntityPlayer;
import com.jdh.microcraft.gui.crafting.InventoryCraftingMenu;
import com.jdh.microcraft.item.ItemStack;
import com.jdh.microcraft.item.armor.*;
... | 1,611 |
545 | <reponame>rofl0r/pspsdk<gh_stars>100-1000
/*
* PSP Software Development Kit - https://github.com/pspdev
* -----------------------------------------------------------------------
* Licensed under the BSD license, see LICENSE in PSPSDK root for details.
*
* Copyright (c) 2005 <NAME>
*/
#include "guInternal.h"
voi... | 174 |
32,544 | package com.baeldung.charencoding.controller;
import org.junit.jupiter.api.Test;
import org.springframework.mock.web.MockFilterChain;
import org.springframework.mock.web.MockHttpServletRequest;
import org.springframework.mock.web.MockHttpServletResponse;
import org.springframework.web.filter.CharacterEncodingFilter;
... | 422 |
432 | /*
* Copyright 2018 <NAME>, <EMAIL>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or ... | 1,005 |
1,030 | {
"if": {
"field": "type",
"equals": "Microsoft.Batch/batchAccounts"
},
"then": {
"effect": "AuditIfNotExists",
"details": {
"type": "Microsoft.Insights/alertRules",
"existenceScope": "Subscription",
"existenceCondition": {
"allOf": [
{
... | 468 |
527 | // Copyright (C) 2020-2021 <NAME> <<EMAIL>>
// This file is subject to the license terms in the LICENSE file
// found in the top-level directory of this distribution.
#ifndef LEXY_DSL_WHITESPACE_HPP_INCLUDED
#define LEXY_DSL_WHITESPACE_HPP_INCLUDED
#include <lexy/action/base.hpp>
#include <lexy/dsl/base.hpp>
#include... | 4,296 |
653 | //==---------- persistent_device_code_cache.cpp -----------------*- C++-*---==//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===---------------------------... | 5,093 |
1,016 | package com.thinkbiganalytics.kylo.nifi.teradata.tdch.api;
/*-
* #%L
* nifi-teradata-tdch-api
* %%
* Copyright (C) 2017 - 2018 ThinkBig Analytics, a Teradata Company
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You m... | 987 |
545 | #include <vector>
#include <iostream>
void printVecInt(const std::vector<int>::iterator bg,
const std::vector<int>::iterator ed) {
#ifndef NDEBUG
std::cout << "In function: " << __func__ << ", "
<< "Vector size: " << ed - bg << std::endl;
#endif
if (bg == ed)
return;
std::cout <<... | 230 |
455 | package netflix.karyon.examples.hellonoss.common;
import io.netty.buffer.ByteBuf;
import io.reactivex.netty.protocol.http.server.HttpServerRequest;
import io.reactivex.netty.protocol.http.server.HttpServerResponse;
import netflix.karyon.transport.interceptor.DuplexInterceptor;
import org.slf4j.Logger;
import org.slf4j... | 410 |
1,244 | #include <string.h>
#include <locale.h>
char *strerror_l(int err, locale_t l)
{
return strerror(err);
}
| 48 |
350 | package ar.rulosoft.mimanganu.utils;
import android.annotation.TargetApi;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.net.ConnectivityManager;
import android.net.Network;
import android.net.NetworkInfo... | 4,107 |
1,604 | package java.security.cert;
import java.util.ArrayList;
import java.util.Collection;
/**
* Parameters used as input for the Collection <code>CertStore</code>
* algorithm.<br />
* <br />
* This class is used to provide necessary configuration parameters
* to implementations of the Collection <code>CertStore</code... | 1,409 |
571 | package camelinaction;
import org.apache.camel.builder.RouteBuilder;
import org.apache.camel.spring.Main;
/**
* A Camel Router
*/
public class MyRouteBuilder extends RouteBuilder {
/**
* A main() so we can easily run these routing rules in our IDE
*/
public static void main(String... args) throws... | 283 |
381 | <reponame>cmeier76/JGiven<filename>jgiven-tests/src/main/java/com/tngtech/jgiven/tags/FeatureDuration.java
package com.tngtech.jgiven.tags;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import com.tngtech.jgiven.annotation.IsTag;
@FeatureCore
@IsTag( name = "Duration", descripti... | 154 |
344 | from imap_tools import MailBox
# get size of message and attachments
with MailBox('imap.my.ru').login('acc', 'pwd', 'INBOX') as mailbox:
for msg in mailbox.fetch():
print(msg.date_str, msg.subject)
print('-- RFC822.SIZE message size', msg.size_rfc822)
print('-- bytes size', msg.size) # wil... | 197 |
627 | /* Copyright 2017 The Chromium OS 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 __CROS_EC_TOUCHPAD_H
#define __CROS_EC_TOUCHPAD_H
void touchpad_interrupt(enum gpio_signal signal);
/* Reset the touchpad, mainly used to... | 128 |
917 | package dev.ahamed.mva.sample.view.widget;
import android.content.Context;
import android.support.annotation.Nullable;
import android.util.AttributeSet;
import android.widget.FrameLayout;
public class BottomBar extends FrameLayout {
public BottomBar(Context context) {
super(context);
setInsetsListener();
... | 293 |
1,673 | <reponame>C-Chads/cc65
/*****************************************************************************/
/* */
/* _vic2.h */
/* ... | 5,473 |
347 | <reponame>hbraha/ovirt-engine
package org.ovirt.engine.ui.webadmin.section.main.presenter.tab.disk;
import org.ovirt.engine.core.common.businessentities.StorageDomain;
import org.ovirt.engine.core.common.businessentities.storage.Disk;
import org.ovirt.engine.ui.common.presenter.AbstractSubTabPresenter;
import org.ovir... | 746 |
1,882 | __version__ = "0.11.1"
from supervised.automl import AutoML
| 23 |
843 | #!/usr/bin/env python
import uuid
# Generate build id for Dockerfile.deploy
print('BUILD_ID = "%s"' % uuid.uuid4())
| 45 |
2,293 | <gh_stars>1000+
/*****************************************************************************
* *
* This file is part of the BeanShell Java Scripting distribution. *
* Documentation and updates may be found at http://www.beanshell.... | 1,949 |
764 | {
"symbol": "EBTC",
"account_name": "bitpietokens",
"overview": {
"en": "EBTC is the mapping of Bitcoin on the EOS network, anchoring the BTC in 1:1, and is accepted in both directions by the cross-chain gateway operated by Bitpie."
},
"website": "https://eosstablecoin.com/"
} | 114 |
4,054 | // Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#pragma once
#include <vespa/searchlib/fef/blueprint.h>
#include <vespa/vespalib/util/priority_queue.h>
namespace search::features {
//----------------------------------------------------------------------------... | 1,193 |
981 | #if !(defined(GO) && defined(GOM) && defined(GO2) && defined(DATA))
#error Meh....
#endif
//GO(_dsa_generate_dss_g,
//GO(dsa_generate_dss_keypair,
//GO(_dsa_generate_dss_pq,
//GO(_dsa_validate_dss_g,
//GO(_dsa_validate_dss_pq,
//GO(gnutls_aead_cipher_decrypt,
//GO(gnutls_aead_cipher_deinit,
//GO(gnutls_aead_cip... | 21,373 |
481 | <reponame>alpv95/MemeProject
def DankGrammar(sentence):
#given a input list of strings, joins them in a grammatically correct fashion
#outputs a single string, the final joined sentence
final = sentence[0]
for i,word in enumerate(sentence[1:]):
if final[-1] != ',' and final[-1] != '.' and final[... | 1,736 |
403 | <reponame>kthoms/code
package com.camunda.consulting.openapi.client.handler;
import com.camunda.consulting.openapi.client.handler.ApiClient;
import com.camunda.consulting.openapi.client.model.BatchDto;
import com.camunda.consulting.openapi.client.model.CompleteExternalTaskDto;
import com.camunda.consulting.openapi.cl... | 29,730 |
1,550 | <reponame>digitalLumberjack/EmulationStation
#pragma once
#include "resources/TextureResource.h"
struct NSVGimage;
class SVGResource : public TextureResource
{
public:
virtual ~SVGResource();
virtual void unload(std::shared_ptr<ResourceManager>& rm) override;
virtual void initFromMemory(const char* image, size... | 202 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.