max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
436 | <gh_stars>100-1000
// Copyright 2018 Schibsted Marketplaces Products & Technology As
//
// 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
... | 803 |
583 | #include <memory>
#include "base_test.hpp"
#include "utils/assert.hpp"
#include "concurrency/transaction_context.hpp"
#include "expression/expression_functional.hpp"
#include "expression/pqp_column_expression.hpp"
#include "hyrise.hpp"
#include "operators/get_table.hpp"
#include "operators/maintenance/create_table.hp... | 2,927 |
4,845 | package cn.dev33.satoken.context.model;
/**
* [存储器] 包装类
* <p> 在 Request作用域里: 存值、取值
* @author kong
*
*/
public interface SaStorage {
/**
* 获取底层源对象
* @return see note
*/
public Object getSource();
/**
* 在 [Request作用域] 里写入一个值
* @param key 键
* @param value 值
*/
public void set(String key, Obj... | 317 |
594 | <gh_stars>100-1000
#pragma once
#include <Engine/Material/BSDF.h>
#include <Engine/Material/GGX.h>
namespace Ubpa {
class BSDF_FrostedGlass : public BSDF {
public:
BSDF_FrostedGlass(const rgbf& colorFactor = rgbf(1.f), float roughnessFactor = 1.f, float ior = 1.5f)
: colorFactor(colorFactor), roughnessFactor(r... | 609 |
423 | // {{{ MIT License
// Copyright 2017 <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
// rights to use, copy, modify, merge, p... | 1,621 |
6,304 | <reponame>mohad12211/skia
/*
* Copyright 2012 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#ifndef BenchLogger_DEFINED
#define BenchLogger_DEFINED
#include <stdio.h>
#include "include/core/SkString.h"
#include "include/core/SkTypes.h"
cla... | 765 |
6,098 | <reponame>ahmedengu/h2o-3
package water.rapids.ast.prims.matrix;
import hex.DMatrix;
import water.fvec.Frame;
import water.rapids.Env;
import water.rapids.vals.ValFrame;
import water.rapids.ast.AstPrimitive;
import water.rapids.ast.AstRoot;
/**
* Matrix multiplication
*/
public class AstMMult extends AstPrimitive {... | 303 |
611 | // DejaLu
// Copyright (c) 2015 <NAME>. All rights reserved.
#ifndef dejalu_DJLSingleton_h
#define dejalu_DJLSingleton_h
#define DJLSINGLETON(className) \
static className * singleton = nil; \
static dispatch_once_t onceToken; \
dispatch_once(&onceToken, ^{ \
singleton = [[className alloc] init]; \
}); \
... | 129 |
988 | //------------------------------------------------------------------------------
// GB_assign_zombie.h: definitions for GB_assign_zombie* functions
//------------------------------------------------------------------------------
// SuiteSparse:GraphBLAS, <NAME>, (c) 2017-2021, All Rights Reserved.
// SPDX-License-Iden... | 678 |
1,444 | <gh_stars>1000+
package mage.cards.d;
import java.util.UUID;
import mage.abilities.Ability;
import mage.abilities.DelayedTriggeredAbility;
import mage.abilities.common.BeginningOfUpkeepTriggeredAbility;
import mage.abilities.common.delayed.AtTheBeginOfNextEndStepDelayedTriggeredAbility;
import mage.abilities.effects.... | 1,415 |
5,871 | <filename>src/passes/OnceReduction.cpp
/*
* Copyright 2021 WebAssembly Community Group participants
*
* 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/licens... | 5,811 |
764 | <reponame>freeunion1possible/sia-gateway
/*-
* <<
* sag
* ==
* Copyright (C) 2019 sia
* ==
* 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/LIC... | 2,338 |
4,716 | from xonsh.completers.man import complete_from_man
from xonsh.completers.path import complete_dir
from xonsh.completers.tools import contextual_command_completer_for
from xonsh.parsers.completion_context import (
CompletionContext,
CommandContext,
)
@contextual_command_completer_for("cd")
def complete_cd(comm... | 327 |
475 | // Copyright (c) 2015-2016 <NAME>
// License: Academic Free License ("AFL") v. 3.0
// AFL License page: http://opensource.org/licenses/AFL-3.0
// http://vittorioromeo.info | <EMAIL>
#pragma once
#include <ecst/config.hpp>
#include <boost/hana.hpp>
ECST_NAMESPACE
{
/// @brief Alias for the `boost::hana` namespace... | 275 |
2,151 | // 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 "ash/system/toast/toast_manager.h"
#include "ash/screen_util.h"
#include "ash/shelf/shelf.h"
#include "ash/shelf/shelf_constants.h"
#include "as... | 3,910 |
428 | /*
** 2012 June 2
**
** The author disclaims copyright to this source code. In place of
** a legal notice, here is a blessing:
** May you do good and not evil.
** May you find forgiveness for yourself and forgive others.
** May you share freely, never taking more than you give.
*/
package inf... | 671 |
335 | <reponame>Safal08/Hacktoberfest-1<gh_stars>100-1000
{
"word": "Kibble",
"definitions": [
"Grind or chop (beans, grain, etc.) coarsely."
],
"parts-of-speech": "Verb"
} | 91 |
379 | <reponame>3090559154/oim-im-api-tools
package com.onlyxiahui.im.message;
/**
* @author Only
* @date 2016-05-19 04:11:12
*/
public class Head {
private String key;
private String name;
private String action;
private String method;
private String version;
private long time;
public static final String code_fa... | 390 |
674 | //
// Enum.hpp
// Clock Signal
//
// Created by <NAME> on 17/02/2020.
// Copyright © 2020 <NAME>. All rights reserved.
//
#ifndef Enum_hpp
#define Enum_hpp
#include <algorithm>
#include <cctype>
#include <string>
#include <typeindex>
#include <typeinfo>
#include <vector>
#include <unordered_map>
namespace Reflec... | 1,986 |
769 | //
// MapViewController.h
//
// Created by <NAME> on 10/12/16.
// Copyright © 2016 <NAME>. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "TangramMap/TangramMap.h"
@interface MapViewController : UIViewController <TGMapViewDelegate, TGRecognizerDelegate>
- (void)mapView:(nonnull TGMapView *)mapView didLoa... | 393 |
6,684 | {
"pagination": {
"DescribeBackups": {
"input_token": "NextToken",
"output_token": "NextToken",
"limit_key": "MaxResults"
},
"DescribeClusters": {
"input_token": "NextToken",
"output_token": "NextToken",
"limit_key": "MaxResults"
},
"ListTags": {
"input_to... | 196 |
373 | package net.finmath.montecarlo.interestrate.products.components;
import java.util.SortedMap;
import java.util.TreeMap;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;
import net.finmath.montecarlo.interestrate.models.FundingCapacity;
import net.finmath.montecarlo.interestrate.models.Fundi... | 769 |
1,253 | package it.cosenonjaviste.daggermock.subcomponenterror;
import org.junit.Test;
import it.cosenonjaviste.daggermock.DaggerMockRule;
import static org.assertj.core.api.Assertions.assertThat;
import static org.junit.Assert.fail;
public class SubComponentErrorTest {
String s = "BBBB";
Integer i = 1;
Long... | 419 |
5,169 | <reponame>Gantios/Specs
{
"name": "ZYThumbnailTableView",
"version": "0.2.1",
"summary": "A TableView not only the thumbnail Cell and it can be expanded.",
"description": "You can use panGesture let the tableviewCell(thumbanil) expanded, expand topView or Bottom which DIY by youself.\nand you can congure the ta... | 310 |
570 | <reponame>pnwamk/souffle
/*
* Souffle - A Datalog Compiler
* Copyright (c) 2020 The Souffle Developers. All rights reserved
* Licensed under the Universal Permissive License v 1.0 as shown at:
* - https://opensource.org/licenses/UPL
* - <souffle root>/licenses/SOUFFLE-UPL.txt
*/
/********************************... | 1,256 |
1,163 | <reponame>qingyunqu/iree
// Copyright 2019 The IREE Authors
//
// Licensed 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
#include "iree/compiler/Dialect/Shape/IR/ShapeOps.h"
#include "iree/com... | 2,361 |
436 | """
This model defines our core SQLite database interface.
"""
from __future__ import annotations
import sqlite3
class Database:
"""Proxy class to access sqlite3.connect method."""
def __init__(self, *args, **kwargs) -> None:
self.args = args
self.kwargs = kwargs
self._connection: s... | 679 |
1,582 | //
// ECDeviceGeneric.hpp
// SMCSuperIO
//
// Copyright © 2021 vit9696. All rights reserved.
//
#ifndef ECDeviceGeneric_hpp
#define ECDeviceGeneric_hpp
#include "SuperIODevice.hpp"
#include "ECDevice.hpp"
namespace EC {
class ECDeviceGeneric : public ECDevice {
const char *modelName {"Generic EC"};
IORegist... | 520 |
1,004 | <reponame>Andrew-Chen-Wang/asgiref
import asyncio
import socket as sock
from functools import partial
import pytest
from asgiref.server import StatelessServer
async def sock_recvfrom(sock, n):
while True:
try:
return sock.recvfrom(n)
except BlockingIOError:
await asyncio.... | 1,946 |
825 | <reponame>jiangkang/Hummer<filename>android/hummer-core/src/main/jni/qjs/hummer/HummerRecycler.cpp
#include <map>
#include "HummerJNI.h"
#include "QuickJSCache.h"
#include "HummerRecycler.h"
static std::map<long, jobject> HUMMER_RECYCLER_MAP;
static jmethodID HUMMER_RECYCLER_INVOKE_ID = nullptr;
extern "C"
JNIEXPORT ... | 524 |
852 | import FWCore.ParameterSet.Config as cms
cleanPatPhotons = cms.EDProducer("PATPhotonCleaner",
## Input collection of Photons
src = cms.InputTag("selectedPatPhotons"),
# preselection (any string-based cut for pat::Photon)
preselection = cms.string(''),
# overlap checking configurables
checkOve... | 377 |
439 | enum Relationship {
EQUAL, SUBLIST, SUPERLIST, UNEQUAL
}
| 25 |
12,252 | <filename>testsuite/performance/tests/src/main/java/org/keycloak/performance/dataset/attr/StringListAttribute.java<gh_stars>1000+
package org.keycloak.performance.dataset.attr;
import org.keycloak.performance.dataset.Entity;
/**
*
* @author tkyjovsk
* @param <PE> owner entity
*/
public class StringListAttribute<P... | 208 |
1,170 | <reponame>Nightonke/Gitee
//
// VHSecureTextField.h
// VHGithubNotifier
//
// Created by viktorhuang on 2017/2/25.
// Copyright © 2017年 黄伟平. All rights reserved.
//
@class VHSecureTextField;
@protocol VHSecureTextFieldDelegate <NSObject>
@required
- (void)onSecureTextFieldEnterButtonClicked:(VHSecureTextField *)... | 178 |
351 | import subprocess
import os
ROOT = os.path.dirname(os.path.abspath(__file__)) + "/../../bin"
def test_tools():
"""
Checks everything that is in /bin/
and tries to run it
"""
if os.path.isdir(ROOT):
for _file in os.listdir(ROOT):
print(_file)
if os.path.isfile(os.p... | 200 |
964 | #
# Plex - Transition Maps
#
# This version represents state sets direcly as dicts
# for speed.
#
from copy import copy
import string
from sys import maxint
from types import TupleType
class TransitionMap:
"""
A TransitionMap maps an input event to a set of states.
An input event is one of: a range of cha... | 2,787 |
453 | <gh_stars>100-1000
#include "headers/powd2.h"
static __inline double _pow(double x, double y)
{
return spu_extract(_powd2(spu_promote(x, 0), spu_promote(y, 0)), 0);
}
| 78 |
882 | package water;
import jsr166y.CountedCompleter;
import jsr166y.ForkJoinPool;
import jsr166y.ForkJoinTask;
import jsr166y.RecursiveAction;
import water.H2O.H2OCountedCompleter;
import water.api.DocGen;
import water.fvec.Vec;
import water.util.Log;
import water.util.Utils;
import java.util.Arrays;
import java.util.Rand... | 4,223 |
2,453 | //
// Generated by class-dump 3.5 (64 bit) (Debug version compiled Sep 30 2020 21:18:12).
//
// Copyright (C) 1997-2019 <NAME>.
//
#import <Foundation/NSKeyedArchiver.h>
@interface NSKeyedArchiver (DVTKeyedArchiverAdditions)
+ (id)dvt_archivedDataWithSecureRootObject:(id)arg1 error:(id *)arg2;
+ (id)dvt_archiveD... | 138 |
458 | <gh_stars>100-1000
/* DO NOT EDIT THIS FILE - it is machine generated */
#include <jni.h>
/* Header for class com_mousebird_maply_ParticleSystem */
#ifndef _Included_com_mousebird_maply_ParticleSystem
#define _Included_com_mousebird_maply_ParticleSystem
#ifdef __cplusplus
extern "C" {
#endif
/*
* Class: com_mouse... | 2,172 |
1,374 | <filename>core-lib/es6/src/main/java/def/js/ProxyConstructor.java
package def.js;
@jsweet.lang.Interface
public abstract class ProxyConstructor extends def.js.Object {
native public <T> Revocable<T> revocable(T target, ProxyHandler<T> handler);
public <T> ProxyConstructor(T target, ProxyHandler<T> handler){}
... | 204 |
711 | <gh_stars>100-1000
package com.java110.utils.util;
import com.alibaba.fastjson.JSONObject;
import junit.framework.TestCase;
import java.lang.reflect.InvocationTargetException;
import java.util.Date;
import java.util.HashMap;
import java.util.Map;
public class BeanConvertUtilTest extends TestCase {
/**
* bea... | 1,107 |
335 | {
"word": "Junk",
"definitions": [
"Old or discarded articles that are considered useless or of little value.",
"Worthless writing, talk, or ideas.",
"A person's belongings.",
"Junk bonds.",
"Heroin.",
"The lump of oily fibrous tissue in a sperm whale's head, cont... | 165 |
373 | /** @file
Copyright (c) 2020 <NAME> <<EMAIL>>
Copyright (c) 2020, ARM Limited. All rights reserved.
Copyright (c) 2020 <NAME> <<EMAIL>>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#ifndef BCM_GENET_DXE_H__
#define BCM_GENET_DXE_H__
#include <Uefi.h>
#include <Library/UefiLib.h>
#include... | 8,880 |
680 | # Copyright 2015 The TensorFlow 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 applica... | 2,650 |
778 | import KratosMultiphysics as KM
import KratosMultiphysics.KratosUnittest as KratosUnittest
class TestPoint(KratosUnittest.TestCase):
def test_point_constructor_with_kratos_array(self):
coords = [1.0, -2.5, 3.3]
arr = KM.Array3(coords)
point = KM.Point(arr)
self.assertAlmostEqual(p... | 378 |
346 | <filename>scripts/demo_datasets.py
import logging
from open3d.ml.datasets import (SemanticKITTI, ParisLille3D, Semantic3D, S3DIS,
Toronto3D)
import argparse
import numpy as np
def parse_args():
parser = argparse.ArgumentParser(description='Read from datasets')
parser.add_argume... | 1,293 |
2,023 | <reponame>tdiprima/code
import os
import re
from urllib2 import urlopen
base_url_qacandrot = "https://qacand.sflab.ondemand.com/sf-version.properties"
base_url_qapatch = "http://qapatch.successfactors.com/sf-version.properties"
base_url_qacand = "http://qacand.successfactors.com/sf-version.properties"
# get test envi... | 1,030 |
836 | <filename>espresso/web/java/androidx/test/espresso/web/model/ModelCodec.java
/*
* Copyright (C) 2015 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
*
*... | 4,779 |
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 ... | 888 |
3,553 | <filename>lib/onigmo/enc/iso_8859.h
#define SHARP_s 0xdf
| 28 |
535 | <reponame>Nemo157/mynewt-core
/*
* string.h
*/
#ifndef _STRING_H
#define _STRING_H
#include <klibc/extern.h>
#include <stddef.h>
#ifdef __cplusplus
extern "C" {
#endif
__extern void *memccpy(void *, const void *, int, size_t);
__extern void *memchr(const void *, int, size_t);
__extern void *memrchr(const void *, ... | 893 |
733 | /** @file
@brief Fake header to allow GHOST 4.09 use with MSVC 2005
@date 2012
@author
<NAME>
<<EMAIL>> and <<EMAIL>>
http://academic.cleardefinition.com/
Iowa State University Virtual Reality Applications Center
Human-Computer Interaction Graduate Program
*/
// Copyright 2012, Iowa State University
// SPDX-L... | 116 |
2,151 | <filename>net/filter/filter_source_stream_unittest.cc
// 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 <algorithm>
#include <string>
#include "base/bind.h"
#include "base/callback.h"
#include "... | 8,142 |
348 | {"nom":"Saint-Pierre-lès-Franqueville","dpt":"Aisne","inscrits":45,"abs":4,"votants":41,"blancs":2,"nuls":3,"exp":36,"res":[{"panneau":"1","voix":18},{"panneau":"2","voix":18}]} | 77 |
2,151 | // 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 "components/password_manager/core/browser/form_parsing/ios_form_parser.h"
#include "base/strings/string16.h"
#include "base/strings/string_numbe... | 8,116 |
2,151 | /*
* Copyright (c) 2012 The Native Client Authors. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
/*
* Simple fault injection test.
*/
#include <stdio.h>
#include <stdlib.h>
#include <errno.h>
#include "native_client/src/include/port... | 1,221 |
30,023 | """Test the Steamist config flow."""
import asyncio
from unittest.mock import patch
import pytest
from homeassistant import config_entries
from homeassistant.components import dhcp
from homeassistant.components.steamist.const import DOMAIN
from homeassistant.const import CONF_DEVICE, CONF_HOST
from homeassistant.core... | 6,063 |
17,085 | # Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by ap... | 1,548 |
4,054 | // Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#pragma once
#include "status-callback.h"
#include "peer-check.h"
namespace config::sentinel {
/**
* Handles a checkConnectivity request by making an outgoing
* ping request. When the ping finishes, fills an ... | 187 |
641 | // AT32UC3A0128 CPU configuration
#ifndef __CPU_AT32UC3A0128_H__
#define __CPU_AT32UC3A0128_H__
#include "board.h"
#include "stacks.h"
#include "platform_ints.h"
#include "sdramc.h"
// Number of resources (0 if not available/not implemented)
#define NUM_PIO 4
#define NUM_SPI 6
#define NUM... | 688 |
1,755 | <filename>Filters/Core/Testing/Cxx/TestDelaunay2DMeshes.cxx
/*=========================================================================
Program: Visualization Toolkit
Module: TestDelaunay2DMeshes.cxx
Copyright (c) <NAME>, <NAME>, <NAME>
All rights reserved.
See Copyright.txt or http://www.kitware.com/C... | 2,408 |
1,455 | /*
* Copyright 2018-2021 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | 1,100 |
45,293 | public enum Enum {
A,
B,
C
} | 24 |
416 | <reponame>ljz663/tencentcloud-sdk-java<gh_stars>100-1000
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. 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 Licens... | 3,009 |
14,668 | <reponame>zealoussnow/chromium
// Copyright 2020 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 "ash/public/cpp/clipboard_image_model_factory.h"
namespace ash {
namespace {
ClipboardImageModelFactory* g_inst... | 232 |
364 | <gh_stars>100-1000
package ca.uhn.fhir.jpa.search.reindex;
/*-
* #%L
* HAPI FHIR Storage api
* %%
* 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 ... | 550 |
777 | <reponame>Sun-Joong/aifh
/*
* Artificial Intelligence for Humans
* Volume 2: Nature Inspired Algorithms
* Java Version
* http://www.aifh.org
* http://www.jeffheaton.com
*
* Code repository:
* https://github.com/jeffheaton/aifh
*
* Copyright 2014 by <NAME>
*
* Licensed under the Apache License, Version 2.0 (... | 3,961 |
5,169 | <reponame>morizotter/Specs
{
"name": "QBFlatButton",
"version": "1.1",
"summary": "Flat-Style Button",
"homepage": "https://github.com/questbeat/QBFlatButton",
"license": "MIT",
"authors": {
"questbeat": "<EMAIL>"
},
"platforms": {
"ios": "6.0"
},
"source": {
"git": "https://github.com/q... | 196 |
401 | /*
* Hedgewars, a free turn based strategy game
* Copyright (c) 2004-2019 <NAME> <<EMAIL>>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; version 2 of the License
*
* This program is ... | 638 |
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... | 3,145 |
335 | <gh_stars>100-1000
{
"word": "Phrase",
"definitions": [
"Put into a particular form of words.",
"Divide (music) into phrases in a particular way, especially in performance."
],
"parts-of-speech": "Verb"
} | 94 |
595 | <filename>src/sdk_src/platform_config.h<gh_stars>100-1000
#ifndef __PLATFORM_CONFIG_H_
#define __PLATFORM_CONFIG_H_
#endif
| 56 |
746 |
package jp.mixi.assignment.actionbar;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
public class Actionbar2Activity extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.lay... | 122 |
5,169 | <gh_stars>1000+
{
"name": "CECManager",
"version": "0.9.9.1.1",
"summary": "Gerenciamento de experiência de usuário",
"homepage": "http://cinnecta.com/",
"authors": {
"<NAME>": "<EMAIL>"
},
"license": {
"type": "Copyright",
"text": "Copyright Cinnecta do Brasil LTDA. All Rights Reserved."
},... | 257 |
348 | {"nom":"Villers-aux-Vents","circ":"1ère circonscription","dpt":"Meuse","inscrits":110,"abs":39,"votants":71,"blancs":5,"nuls":1,"exp":65,"res":[{"nuance":"UDI","nom":"<NAME>","voix":40},{"nuance":"REM","nom":"<NAME>","voix":25}]} | 92 |
2,217 | #!/usr/bin/env python
from __future__ import print_function
import warnings
import sys
def main(argv):
if len(argv) != 2:
exit(64)
with open(argv[1]) as fp:
contents = fp.read()
exitcode = 0
syntax_err = None
with warnings.catch_warnings(record=True) as wc:
try:
... | 567 |
675 | <reponame>bigplayszn/nCine<filename>tests/apptest_clones.h
#ifndef CLASS_MYEVENTHANDLER
#define CLASS_MYEVENTHANDLER
#include <ncine/IAppEventHandler.h>
#include <ncine/IInputEventHandler.h>
#include <ncine/TimeStamp.h>
#include <nctl/UniquePtr.h>
namespace ncine {
class AppConfiguration;
class Texture;
class Sprite... | 574 |
381 | <reponame>joyrun/ActivityRouter
package router.activity;
import com.grouter.compiler.ActivityModel;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileReader;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
public class ActivitySourceFi... | 1,352 |
570 | package com.hx.curtain.drawer.nineoldandroids.view;
import android.view.View;
import static com.hx.curtain.drawer.nineoldandroids.view.animation.AnimatorProxy.NEEDS_PROXY;
import static com.hx.curtain.drawer.nineoldandroids.view.animation.AnimatorProxy.wrap;
public final class ViewHelper {
private ViewHelper() {... | 3,770 |
642 | #include "RootRef.h"
#include "Frontend.h"
using namespace MaximCompiler;
RootRef::RootRef(void *handle) : handle(handle) {}
void RootRef::addSocket(MaximCompiler::VarType vartype) {
MaximFrontend::maxim_build_root_socket(get(), vartype.release());
}
| 93 |
1,350 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.devtestlabs.implementation;
import com.azure.core.http.rest.PagedIterable;
import com.azure.core.http.rest.Response;
import com.... | 1,970 |
990 | '''
Given n pairs of parentheses, write a function to generate all combinations of well-formed parentheses.
For example, given n = 3, a solution set is:
[
"((()))",
"(()())",
"(())()",
"()(())",
"()()()"
]
'''
class Solution(object):
def generateParenthesis(self, n):
"""
:type... | 336 |
12,252 | package org.keycloak.testsuite.util;
import org.subethamail.smtp.MessageContext;
import org.subethamail.smtp.MessageHandler;
import org.subethamail.smtp.MessageHandlerFactory;
import org.subethamail.smtp.RejectException;
import javax.mail.MessagingException;
import javax.mail.Session;
import javax.mail.internet.MimeM... | 1,039 |
488 | // 7.3.3h.cc
// turn on overloading
int dummy(); // line 4
void ddummy() { __testOverload(dummy(), 4); }
asm("collectLookupResults f=18 g=19 x=10");
namespace A {
int x; // line 10
}
namespace B {
int i;
struct g { };
struct x { };
void f(int);
void f(double); ... | 500 |
28,056 | <filename>src/main/java/com/alibaba/fastjson/support/spring/annotation/FastJsonView.java
package com.alibaba.fastjson.support.spring.annotation;
import java.lang.annotation.*;
/**
* <pre>
* 一个放置到 {@link org.springframework.stereotype.Controller Controller}方法上的注解.
* 设置返回对象针对某个类需要排除或者包括的字段
* 例如:
* <code>@Fast... | 309 |
5,169 | <filename>Specs/JxbPhotoView_Swift/1.1/JxbPhotoView_Swift.podspec.json<gh_stars>1000+
{
"name": "JxbPhotoView_Swift",
"version": "1.1",
"license": "MIT",
"summary": "A photo library viewer in Swift",
"homepage": "http://www.jxb.name",
"authors": {
"Peter": "<EMAIL>"
},
"source": {
"git": "https:... | 250 |
619 | <filename>tests/unit/test_task_sets.py
import unittest
from rlbench.tasks import (FS10_V1, FS25_V1, FS50_V1, FS95_V1, MT15_V1,
MT30_V1, MT55_V1, MT100_V1)
FS_V1 = [
(FS10_V1, 10, 5),
(FS25_V1, 25, 5),
(FS50_V1, 50, 5),
(FS95_V1, 95, 5)]
MT_V1 = [
(MT15_V1, 15),
(MT3... | 669 |
1,178 | <reponame>leozz37/makani
/*
* Copyright 2020 Makani Technologies 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 re... | 523 |
805 | <filename>lib/source/gainput/pad/GainputInputDevicePadMac.cpp
#include <gainput/gainput.h>
#ifdef GAINPUT_PLATFORM_MAC
#include "GainputInputDevicePadImpl.h"
#include <gainput/GainputInputDeltaState.h>
#include <gainput/GainputHelpers.h>
#include <gainput/GainputLog.h>
#include "GainputInputDevicePadMac.h"
#import... | 5,384 |
480 | /*
* Copyright [2013-2021], Alibaba Group Holding Limited
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | 1,696 |
2,151 | <gh_stars>1000+
/* Find debugging and symbol information for a module in libdwfl.
Copyright (C) 2005-2013 Red Hat, Inc.
This file is part of elfutils.
This file is free software; you can redistribute it and/or modify
it under the terms of either
* the GNU Lesser General Public License as published by... | 3,748 |
892 | {
"schema_version": "1.2.0",
"id": "GHSA-w8h3-vpfx-2ggc",
"modified": "2022-05-01T07:04:10Z",
"published": "2022-05-01T07:04:10Z",
"aliases": [
"CVE-2006-2942"
],
"details": "TWiki 4.0.0, 4.0.1, and 4.0.2 allows remote attackers to gain Twiki administrator privileges via a TWiki.TWikiRegistration form... | 740 |
892 | {
"schema_version": "1.2.0",
"id": "GHSA-p6hh-9ppc-p972",
"modified": "2022-05-13T01:52:11Z",
"published": "2022-05-13T01:52:11Z",
"aliases": [
"CVE-2018-3126"
],
"details": "Vulnerability in the Oracle Retail Xstore Point of Service component of Oracle Retail Applications (subcomponent: Xenvironment)... | 583 |
467 | <filename>davinci.html/WebContent/metadata/html/iframe_oam.json
{
"id": "http://www.w3.org/html/iframe",
"name": "html.iframe",
"spec": "1.0",
"version": "1.0",
"property": {
"name": {
"datatype": "string",
},
"src": {
"datatype": "string",
"format": "url",
},
"alt": {
"datatype": "string",
... | 310 |
807 | ///usr/bin/env jbang "$0" "$@" ; exit $?
//REPOS jitpack
// Using jitpack to get latest dev version of karate to be able
// to use the just added fork() methods to test clis.
// see https://github.com/intuit/karate/issues/1191
////DEPS com.github.intuit.karate:karate-netty:develop-SNAPSHOT
//DEPS com.github.intuit.kara... | 225 |
2,453 | <filename>XVim2/XcodeHeader/IDEKit/IDENoteExplorationContext.h
//
// Generated by class-dump 3.5 (64 bit) (Debug version compiled Sep 30 2020 21:18:12).
//
// Copyright (C) 1997-2019 <NAME>.
//
#import <IDEKit/IDEExplorationContext.h>
@protocol IDENoteAnnotationExplorableItem;
@interface IDENoteExplorationConte... | 210 |
1,259 | <gh_stars>1000+
import logging
from custom_auth.oauth.exceptions import GithubError
logger = logging.getLogger(__name__)
def convert_response_data_to_dictionary(text: str) -> dict:
try:
response_data = {}
for key, value in [param.split("=") for param in text.split("&")]:
response_dat... | 276 |
1,296 | /**
* @file MInputStreamAdapter.h
* @brief Adapter to use managed input streams on the SDK
*
* (c) 2013-2014 by Mega Limited, Auckland, New Zealand
*
* This file is part of the MEGA SDK - Client Access Engine.
*
* Applications using the MEGA API must present a valid application key
* and comply with the the rules set f... | 398 |
541 | /**
* The contents of this file are subject to the license and copyright
* detailed in the LICENSE and NOTICE files at the root of the source
* tree and available online at
*
* http://www.dspace.org/license/
*/
package org.dspace.sword2;
import org.dspace.content.Item;
import org.dspace.core.Context;
import org.... | 346 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.