max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
3,102 | // RUN: %clang_cc1 -fsyntax-only -verify %s
// expected-no-diagnostics
extern "C" { extern "C++" { template<class C> C x(); } }
| 54 |
1,447 | package com.kofigyan.stateprogressbarsample;
import android.app.Activity;
import android.support.v4.content.ContextCompat;
import android.view.Menu;
import android.view.MenuItem;
import android.widget.Toast;
import com.kofigyan.stateprogressbar.StateProgressBar;
import com.kofigyan.stateprogressbar.components.StateIt... | 1,382 |
356 | <filename>examples/eigenstate solver examples/2D_harmonic_oscillator_magneticfield.py
import numpy as np
from qmsolve import Hamiltonian, SingleParticle, init_visualization, Å, T , eV
#======================================================================================================================================... | 594 |
1,546 | <gh_stars>1000+
/////////////////////////////////////////////////////////////////////////////////////////////////
//
// Tencent is pleased to support the open source community by making libpag available.
//
// Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
//
// Licensed under the Apache... | 1,605 |
4,036 | namespace stmtexpr {
class C {
public:
C(int x);
~C();
};
void f(int b) {
int i;
if (({
C c(1);
b;
}))
2;
else
;
}
void g(int b) {
void *ptr;
int i;
lab:
ptr = &&lab;
goto *({
C c(3);
p... | 232 |
423 | <reponame>haducloc/appslandia-plum
// The MIT License (MIT)
// Copyright © 2015 AppsLandia. All rights reserved.
// 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, inclu... | 848 |
424 | #ifndef TENSOR_POST_META_H
#define TENSOR_POST_META_H
#include "Fastor/tensor/Tensor.h"
#include "Fastor/tensor_algebra/indicial.h"
namespace Fastor {
/* Classify/specialise Tensor<primitive> as primitive if needed.
This specialisation hurts the performance of some specialised
kernels like matmul/norm/LU/inv th... | 3,940 |
1,968 | <gh_stars>1000+
//////////////////////////////////////////////////////////////////////////////
//
// This file is part of the Corona game engine.
// For overview and more information on licensing please refer to README.md
// Home page: https://github.com/coronalabs/corona
// Contact: <EMAIL>
//
///////////////////////... | 3,602 |
755 | <reponame>N500/WindowsTemplateStudio
{
"author": "Microsoft",
"name": "Background Task",
"description": "Aggiungi un'attività in background in-process per eseguire il codice anche quando l'app non è in primo piano.",
"identity": "wts.Feat.BackgroundTask"
} | 94 |
593 | <filename>runner/src/main/java/org/ananas/runner/steprunner/jdbc/mysql/MySQLDialect.java
package org.ananas.runner.steprunner.jdbc.mysql;
import org.ananas.runner.steprunner.jdbc.JDBCDriver;
import org.ananas.runner.steprunner.jdbc.SQLDialect;
import org.apache.beam.sdk.schemas.Schema;
public class MySQLDialect imple... | 880 |
1,968 | <reponame>agramonte/corona<filename>platform/mac/CoronaCards/CoronaView.h<gh_stars>1000+
//////////////////////////////////////////////////////////////////////////////
//
// This file is part of the Corona game engine.
// For overview and more information on licensing please refer to README.md
// Home page: https://gi... | 722 |
511 | /****************************************************************************
* include/tinyara/bluetooth/bt_core.h
* Bluetooth subsystem core APIs.
*
* Copyright (C) 2018 <NAME>. All rights reserved.
* Author: <NAME> <<EMAIL>>
*
* Ported from the Intel/Zephyr arduino101_firmware_source-v1.tar package
* whe... | 2,247 |
605 | """ Tests SBType.IsTypeComplete on C++ types. """
import lldb
from lldbsuite.test.decorators import *
from lldbsuite.test.lldbtest import *
from lldbsuite.test import lldbutil
class TestCase(TestBase):
mydir = TestBase.compute_mydir(__file__)
def assertComplete(self, typename):
""" Asserts that the... | 1,270 |
4,538 | <reponame>wstong999/AliOS-Things
/*
* Copyright (C) 2015-2021 Alibaba Group Holding Limited
*/
#include "ucloud_ai_common.h"
#include "ulog/ulog.h"
#if AOS_COMP_CLI
#include "aos/cli.h"
#endif
#define TAG "uclud_ai_example"
#define LOG printf
static void ucloud_ai_comp_example(int argc, char **argv)
{
int mode... | 2,503 |
1,615 | /**
* Created by MomoLuaNative.
* Copyright (c) 2019, Momo Group. All rights reserved.
*
* This source code is licensed under the MIT.
* For the full copyright and license information,please view the LICENSE file in the root directory of this source tree.
*/
package com.immomo.mls.fun.ui;
import android.co... | 854 |
1,346 | <filename>dao-gen-core/src/main/java/com/ctrip/platform/dal/daogen/enums/DbModeTypeEnum.java
package com.ctrip.platform.dal.daogen.enums;
public enum DbModeTypeEnum {
Cluster(0, "dalcluster"),
Titan(1, "titankey"),
No(2, "no");
DbModeTypeEnum(int code, String des) {
this.code = code;
t... | 289 |
18,965 | /*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
#pragma once
#include <jni.h>
namespace facebook {
/**
* Instructs the JNI environment to throw an exception.
*
* @param pEnv... | 1,335 |
575 | <reponame>zealoussnow/chromium<gh_stars>100-1000
// 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.
#ifndef CONTENT_BROWSER_ANDROID_SELECT_POPUP_H_
#define CONTENT_BROWSER_ANDROID_SELECT_POPUP_H_
#include... | 771 |
14,668 | import os
from wptserve.utils import isomorphic_encode
filename = os.path.basename(isomorphic_encode(__file__))
def main(request, response):
if request.method == u'POST':
return 302, [(b'Location', b'./%s?redirect' % filename)], b''
return [(b'Content-Type', b'text/plain')], request.request_path
| 116 |
372 | <gh_stars>100-1000
/*
*
* (c) Copyright 1991 OPEN SOFTWARE FOUNDATION, INC.
* (c) Copyright 1991 HEWLETT-PACKARD COMPANY
* (c) Copyright 1991 DIGITAL EQUIPMENT CORPORATION
* To anyone who acknowledges that this file is provided "AS IS"
* without any express or implied warranty:
* permission to u... | 1,107 |
661 | <gh_stars>100-1000
package com.desmond.squarecamera;
import android.Manifest;
import android.app.Activity;
import android.content.Intent;
import android.content.res.Configuration;
import android.graphics.Bitmap;
import android.graphics.Matrix;
import android.graphics.drawable.BitmapDrawable;
import android.net.Uri;
i... | 1,910 |
2,354 | // This file is part of AsmJit project <https://asmjit.com>
//
// See asmjit.h or LICENSE.md for license and copyright information
// SPDX-License-Identifier: Zlib
#ifndef ASMJIT_X86_X86RAPASS_P_H_INCLUDED
#define ASMJIT_X86_X86RAPASS_P_H_INCLUDED
#include "../core/api-config.h"
#ifndef ASMJIT_NO_COMPILER
#include "... | 915 |
1,144 | <reponame>gokhanForesight/metasfresh<filename>backend/de.metas.payment.esr/src/main/java-gen/de/metas/payment/esr/model/I_ESR_ImportFile.java
package de.metas.payment.esr.model;
import java.math.BigDecimal;
import javax.annotation.Nullable;
import org.adempiere.model.ModelColumn;
/** Generated Interface for ESR_Impor... | 3,788 |
76,518 | #include "pch.h"
#include "CppUnitTest.h"
#include <keyboardmanager/KeyboardManagerEditorLibrary/ShortcutErrorType.h>
#include <keyboardmanager/common/Helpers.h>
#include <common/interop/keyboard_layout.h>
#include <keyboardmanager/KeyboardManagerEditorLibrary/EditorHelpers.h>
using namespace Microsoft::VisualStudio::... | 4,877 |
356 | <gh_stars>100-1000
package com.zjb.loader.view;
import android.content.Context;
import android.util.AttributeSet;
import android.view.View;
import android.view.animation.AlphaAnimation;
import android.view.animation.LinearInterpolator;
import android.widget.ImageSwitcher;
import android.widget.ImageView;
import androi... | 810 |
2,151 | <reponame>zipated/src
// 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.
#ifndef CHROME_BROWSER_CHROMEOS_LOGIN_SCREEN_MANAGER_H_
#define CHROME_BROWSER_CHROMEOS_LOGIN_SCREEN_MANAGER_H_
#include <map>
... | 487 |
1,338 | <gh_stars>1000+
/*
* Copyright 2003-2008, Haiku.
* Distributed under the terms of the MIT License.
*
* Authors:
* <NAME> <<EMAIL>>
*/
/*
* inspired by the NewOS floppy driver
* http://www.newos.org/cgi-bin/fileDownLoad.cgi?FSPC=//depot/newos/kernel/addons/dev/arch/i386/floppy/floppy.c&REV=6
* related docs:
... | 6,998 |
353 | <reponame>ptfrwrd/Apache_Flink_Lab_3
/*
* Copyright 2017 data Artisans GmbH, 2019 Ververica GmbH
*
* 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... | 532 |
373 | <reponame>linkingtd/UniAuth
package com.dianrong.common.uniauth.common.server.cxf.propset;
import com.dianrong.common.uniauth.common.server.cxf.client.ClientFilterSingleton;
import com.dianrong.common.uniauth.common.server.cxf.client.HeaderProducer;
import com.dianrong.common.uniauth.common.server.cxf.server.HeaderCon... | 794 |
1,078 | fname='h:\\tmp.reg'
import win32api, win32con, win32security, ntsecuritycon, pywintypes,os
## regsave will not overwrite a file
if os.path.isfile(fname):
os.remove(fname)
new_privs = ((win32security.LookupPrivilegeValue('',ntsecuritycon.SE_SECURITY_NAME),win32con.SE_PRIVILEGE_ENABLED),
(win32security... | 658 |
348 | <gh_stars>100-1000
{"nom":"Terranjou","circ":"4ème circonscription","dpt":"Maine-et-Loire","inscrits":2741,"abs":1661,"votants":1080,"blancs":117,"nuls":28,"exp":935,"res":[{"nuance":"REM","nom":"<NAME>","voix":549},{"nuance":"UDI","nom":"<NAME>","voix":386}]} | 107 |
778 | <filename>applications/CompressiblePotentialFlowApplication/python_scripts/define_wake_process_2d.py
import KratosMultiphysics
import KratosMultiphysics.CompressiblePotentialFlowApplication as CPFApp
import math
def Factory(settings, Model):
if(not isinstance(settings, KratosMultiphysics.Parameters)):
rais... | 5,449 |
1,477 | # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved
#
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree.
from __future__ import absolute_import, division, print_function, unicode_literals
| 72 |
2,338 | <gh_stars>1000+
// NOTE: Assertions have been autogenerated by utils/update_cc_test_checks.py
// REQUIRES: riscv-registered-target
// RUN: %clang_cc1 -triple riscv64 -target-feature +experimental-v -disable-O0-optnone -emit-llvm %s -o - | opt -S -mem2reg | FileCheck --check-prefix=CHECK-RV64 %s
#include <riscv_vector.... | 1,641 |
311 | package datadog.trace.bootstrap.instrumentation.java.concurrent;
import java.util.concurrent.AbstractExecutorService;
import java.util.concurrent.Executor;
import java.util.concurrent.RunnableFuture;
/** Advice placeholder representing a call to {@link AbstractExecutorService#newTaskFor}. */
public final class NewTas... | 197 |
14,668 | // 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 "third_party/blink/renderer/platform/wtf/text/string_view.h"
#include <unicode/utf16.h>
#include "third_party/blink/renderer/platform/wtf/text/... | 3,829 |
460 | package com.tasly.product.core;
import com.tasly.product.core.api.ProductService;
import org.springframework.web.bind.annotation.RestController;
/**
* Created by dulei on 18/1/9.
*/
@RestController
public class ProductServiceImpl implements ProductService {
}
| 84 |
451 | <reponame>kikislater/micmac<filename>applis/Traj_AJ/Traj_AJ_Match.cpp
/*Header-MicMac-eLiSe-25/06/2007
MicMac : Multi Image Correspondances par Methodes Automatiques de Correlation
eLiSe : ELements of an Image Software Environnement
www.micmac.ign.fr
Copyright : Institut Geographique National
... | 10,635 |
4,002 | <gh_stars>1000+
package me.zeroX150.cornos.gui.screen;
import com.lukflug.panelstudio.CollapsibleContainer;
import com.lukflug.panelstudio.DraggableContainer;
import com.lukflug.panelstudio.FixedComponent;
import com.lukflug.panelstudio.SettingsAnimation;
import com.lukflug.panelstudio.mc16.MinecraftGUI;
import com.lu... | 8,434 |
3,390 | <reponame>Noahhoetger2001/test-infra
# Copyright 2016 The Kubernetes 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 req... | 2,449 |
4,054 | <reponame>Anlon-Burke/vespa<gh_stars>1000+
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#include "symbol_table.h"
#include <vespa/vespalib/stllike/hash_map.hpp>
namespace vespalib::slime {
SymbolTable::SymbolTable(size_t expectedNumSymbols) :
_symbols(3... | 445 |
575 | <reponame>Ron423c/chromium<filename>chrome/browser/extensions/api/terminal/crostini_startup_status_unittest.cc<gh_stars>100-1000
// 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 "chrome/browser/... | 1,034 |
920 | /*
* The Dragonite Project
* -------------------------
* See the LICENSE file in the root directory for license information.
*/
package com.vecsight.dragonite.sdk.socket;
import com.vecsight.dragonite.sdk.exception.ConnectionNotAliveException;
import com.vecsight.dragonite.sdk.exception.IncorrectSizeException;
i... | 2,082 |
1,483 | /*
* Copyright Lealone Database Group.
* Licensed under the Server Side Public License, v 1.
* Initial Developer: zhh
*/
package org.lealone.db.async;
import java.util.concurrent.ScheduledFuture;
import java.util.concurrent.TimeUnit;
import java.util.concurrent.atomic.AtomicInteger;
public class AsyncTaskHandlerF... | 392 |
1,989 | <reponame>baoqt2/practical-machine-learning-with-python
# coding: utf-8
"""
Created on Mon May 17 00:00:00 2017
@author: DIP
"""
# # Import necessary dependencies and settings
# In[1]:
import pandas as pd
import numpy as np
import re
import nltk
# # Sample corpus of text documents
# In[2]:
corpus = ['The sky i... | 2,401 |
370 | <filename>src/main/java/com/vitco/app/importer/CCVxlImporter.java
package com.vitco.app.importer;
import com.vitco.app.importer.dataStatic.CCVxlStatic;
import com.vitco.app.util.file.FileIn;
import com.vitco.app.util.file.RandomAccessFileIn;
import java.io.File;
import java.io.IOException;
/**
* Voxel Importer for ... | 2,665 |
6,478 | <filename>spring-cloud-alibaba-starters/spring-cloud-starter-alibaba-nacos-discovery/src/main/java/com/alibaba/cloud/nacos/balancer/NacosBalancer.java
/*
* Copyright 2013-2018 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in co... | 760 |
1,639 | #include<bits/stdc++.h>
using namespace std;
const int N = 3e5 + 9, mod = 998244353;
struct base {
double x, y;
base() { x = y = 0; }
base(double x, double y): x(x), y(y) { }
};
inline base operator + (base a, base b) { return base(a.x + b.x, a.y + b.y); }
inline base operator - (base a, base b) { re... | 4,744 |
443 | <filename>include/nty_buffer.h
/*
* MIT License
*
* Copyright (c) [2018] [WangBoJing]
* 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 ... | 3,822 |
1,041 | <gh_stars>1000+
package io.ebean.config;
/**
* Configuration for transaction profiling.
*/
public class ProfilingConfig {
/**
* When true transaction profiling is enabled.
*/
private boolean enabled;
/**
* Set true for verbose mode.
*/
private boolean verbose;
/**
* The minimum transactio... | 1,095 |
387 | #include "pch.h"
#include "resource.h"
#include "InstallServiceDlg.h"
#include "DialogHelper.h"
const WinSys::ServiceInstallParams& CInstallServiceDlg::GetInstallParams() const {
return m_InstallParams;
}
LRESULT CInstallServiceDlg::OnInitDialog(UINT, WPARAM, LPARAM, BOOL&) {
DialogHelper::AdjustOKCancelButtons(thi... | 1,650 |
10,225 | package io.quarkus.vertx.graphql.it;
import io.quarkus.test.junit.NativeImageTest;
@NativeImageTest
class VertxGraphqlIT extends VertxGraphqlTest {
}
| 57 |
1,089 | package org.zalando.logbook;
import java.util.Arrays;
import java.util.List;
import java.util.Set;
import java.util.function.Function;
import org.apache.commons.lang3.StringUtils;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.params.ParameterizedTest;
import org.junit.jupiter.params.provider.CsvSource;
... | 1,450 |
1,109 | # -*- coding: utf-8 -*-
from datetime import datetime, timedelta
import subprocess
from cdecimal import Decimal
from sqlalchemy import and_, func, select
from twisted.internet import defer
from twisted.internet.defer import inlineCallbacks
from twisted.internet.task import LoopingCall
from twisted.python import log
f... | 1,593 |
1,353 | <gh_stars>1000+
/*
* Copyright (c) 2008, <NAME>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* * Redistributions of source code must retain the above copyright
* notice,... | 17,616 |
1,556 | <filename>python-stdlib/json/test_json.py<gh_stars>1000+
import json
inp = ["foo", {"bar": ("baz", None, 1, 2)}]
print(inp)
s = json.dumps(inp)
print(s)
outp = json.loads(s)
print(outp)
# Doesn't work because JSON doesn't have tuples
# assert inp == outp
| 108 |
945 | /* ----------------------------------------------------------------------------
@COPYRIGHT :
Copyright 1993,1994,1995 <NAME>,
McConnell Brain Imaging Centre,
Montreal Neurological Institute, McGill University.
Permission to use, copy, modify, and distribute this
... | 24,947 |
835 | <gh_stars>100-1000
# THIS FILE IS AUTO-GENERATED. DO NOT EDIT
from verta._swagger.base_type import BaseType
class VersioningBlobExpanded(BaseType):
def __init__(self, path=None, blob=None):
required = {
"path": False,
"blob": False,
}
self.path = path
self.blob = blob
for k, v in req... | 305 |
4,994 | <reponame>GitHubRepoDescription/tiny-dnn
/*
Copyright (c) 2013, <NAME> and the respective contributors
All rights reserved.
Use of this source code is governed by a BSD-style license that can be found
in the LICENSE file.
*/
#include "tiny_dnn/tiny_dnn.h"
using namespace tiny_dnn;
int main(int argc,... | 301 |
368 | //
// DDSeqNoManager.h
// Duoduo
//
// Created by 独嘉 on 14-5-7.
// Copyright (c) 2014年 zuoye. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface DDSeqNoManager : NSObject
+ (instancetype)instance;
- (uint32_t)seqNo;
@end
| 108 |
1,144 | <reponame>shivammmmm/querybook<filename>querybook/server/lib/data_doc/data_cell.py
from lib.config import get_config_value
cell_types = get_config_value("datadoc.cell_types")
def get_valid_meta(input_vals, valid_vals, default_vals=None):
if input_vals is None:
return default_vals
if not check_type_m... | 1,405 |
4,224 | /****************************************************************************
*
* Copyright (C) 2018 PX4 Development Team. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistri... | 3,343 |
1,537 | # Copyright (c) 2016, Xilinx, Inc.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# 1. Redistributions of source code must retain the above copyright notice,
# this list of con... | 5,767 |
14,668 | // 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 "chrome/browser/download/download_offline_content_provider_factory.h"
#include <string>
#include "base/memory/singleton.h"
#include "build/buil... | 768 |
3,269 | <gh_stars>1000+
#include "common/Levenstein.h"
#include "common/common.h"
#include <vector>
using namespace std;
int sorbet::Levenstein::distance(string_view s1, string_view s2, int bound) noexcept {
if (s1.data() == s2.data() && s1.size() == s2.size()) {
return 0;
}
// A mildly tweaked version fr... | 546 |
5,169 | {
"name": "AFNetworkings",
"version": "0.0.7",
"summary": "It is a transition animation asset.",
"description": "AFNetworkings is a delightful networking library for iOS, macOS, watchOS, and tvOS. It's built on top of the Foundation URL Loading System, extending the powerful high-level networking abstractions b... | 382 |
868 | // Copyright (C) 2020 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 with the License. You may obtain a copy of the
// License at
//
// https://opensource.org/licenses/BSD-3-Clause
//
// Unless req... | 2,395 |
713 | <gh_stars>100-1000
package org.infinispan.server.hotrod.test;
import java.util.Collection;
import org.infinispan.server.hotrod.ServerAddress;
/**
* @author wburns
* @since 9.0
*/
public abstract class AbstractTestTopologyAwareResponse {
public final int topologyId;
public final Collection<ServerAddress> mem... | 163 |
2,706 | <gh_stars>1000+
/* Copyright (c) 2013-2015 <NAME>
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#ifndef GUI_MENU_H
#define GUI_MENU_H
#include <mgba-util/com... | 518 |
580 | // DynaMix
// Copyright (c) 2013-2019 <NAME>, <NAME>
//
// Distributed under the MIT Software License
// See accompanying file LICENSE.txt or copy at
// https://opensource.org/licenses/MIT
//
#include <iostream>
#include <dynamix/dynamix.hpp>
using namespace std;
//[allocators_global
/*`
DynaMix allows you to set cus... | 3,658 |
1,605 | /*****************************************************************************
*
* 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 th... | 917 |
335 | """Tests for the path filter."""
import unittest
import mock
from grow.routing import path_filter
class PathFilterTestCase(unittest.TestCase):
"""Test the routes."""
def setUp(self):
self.filter = path_filter.PathFilter()
def test_filter_defaults(self):
"""Default filters work."""
... | 1,496 |
2,829 | /* Copyright 2020 Alibaba Group Holding Limited. 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 applicable law o... | 5,243 |
357 | /*
PsychToolbox3/Source/Common/PsychCellGlue.h
AUTHORS:
<EMAIL> awi
<EMAIL> mk
PLATFORMS: All
PROJECTS: All
HISTORY:
12/17/03 awi wrote it.
DESCRIPTION:
PsychStructGlue defines abstracted functions to create cell arrays passed
between the calling environmen... | 379 |
1,261 | <reponame>luizoti/toga
import sys
import os
import subprocess
import platform
from pathlib import Path
import toga
from toga.style import Pack
from toga.constants import COLUMN
examples_dir = Path(__file__).parents[3]
class ExampleExamplesOverviewApp(toga.App):
# Button callback functions
def run(self, widg... | 1,655 |
4,392 | <gh_stars>1000+
#include <stdio.h>
#include <string.h>
#include "cblas.h"
#include "cblas_test.h"
int cblas_ok, cblas_lerr, cblas_info;
int link_xerbla=TRUE;
char *cblas_rout;
#ifdef F77_Char
void F77_xerbla(F77_Char F77_srname, void *vinfo);
#else
void F77_xerbla(char *srname, void *vinfo);
#endif
void chkxer(void)... | 18,699 |
511 | <filename>node_modules/grpc/deps/grpc/src/core/ext/filters/client_channel/subchannel_index.h
/*
*
* Copyright 2016 gRPC authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* ... | 1,056 |
679 | <filename>main/bridges/test/java_uno/equals/testequals.cxx
/**************************************************************
*
* 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
* regardi... | 3,349 |
348 | <reponame>chamberone/Leaflet.PixiOverlay
{"nom":"Combres-sous-les-Côtes","circ":"2ème circonscription","dpt":"Meuse","inscrits":95,"abs":42,"votants":53,"blancs":6,"nuls":1,"exp":46,"res":[{"nuance":"REM","nom":"<NAME>","voix":36},{"nuance":"FN","nom":"<NAME>","voix":10}]} | 115 |
4,646 | <reponame>Recaust/Launcher3<filename>src/com/android/launcher3/compat/ShortcutConfigActivityInfo.java<gh_stars>1000+
/*
* 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 m... | 2,056 |
435 | <reponame>Montana/datawave<gh_stars>100-1000
package datawave.edge.util;
import com.google.protobuf.InvalidProtocolBufferException;
import datawave.edge.protobuf.EdgeData;
import datawave.edge.protobuf.EdgeData.EdgeValue.Builder;
import org.apache.accumulo.core.data.Value;
import org.apache.commons.lang.StringUtils;
... | 8,702 |
1,449 | <reponame>westgoten/anvil
package trikita.anvil.gridlayout.v7;
import android.support.v7.widget.GridLayout;
import android.util.Printer;
import android.view.View;
import java.lang.Boolean;
import java.lang.Integer;
import java.lang.Object;
import java.lang.String;
import java.lang.Void;
import trikita.anvil.Anvil;
imp... | 1,352 |
348 | {"nom":"Orban","circ":"1ère circonscription","dpt":"Tarn","inscrits":273,"abs":117,"votants":156,"blancs":16,"nuls":3,"exp":137,"res":[{"nuance":"DVD","nom":"<NAME>","voix":101},{"nuance":"FN","nom":"M. <NAME>","voix":36}]} | 88 |
1,742 | <reponame>sim-wangyan/x7<filename>demo/src/main/java/x7/codetemplate/ScheduleTemplate.java
package x7.codetemplate;
import java.util.concurrent.Callable;
public interface ScheduleTemplate {
boolean schedule(Class scheduleClazz, Callable<Boolean> callable);
}
| 100 |
9,734 | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | 451 |
335 | <filename>B/Biogeography_noun.json
{
"word": "Biogeography",
"definitions": [
"The branch of biology that deals with the geographical distribution of plants and animals."
],
"parts-of-speech": "Noun"
} | 82 |
4,857 | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with this
* work for additional information regarding copyright ownership. The ASF
* licenses this file to you under the Apache License, Version 2.0 (the
* "License"); you may n... | 7,599 |
344 | <filename>src/utils/TimeUtils.hpp
#ifndef CHATOPERA_UTILS_TIME_FUNCTS_H
#define CHATOPERA_UTILS_TIME_FUNCTS_H
#include <cstdio>
#include <ctime>
#include <string>
/**
* 获得当前时间
* 符合MySQL Timestamp
*/
inline std::string GetCurrentTimestampFormatted() {
std::time_t rawtime;
std::tm* timeinfo;
char buffer [80];
... | 225 |
1,602 | /*
* Copyright © 2009 CNRS
* Copyright © 2009-2017 Inria. All rights reserved.
* Copyright © 2009, 2011 <NAME>
* Copyright © 2011 Cisco Systems, Inc. All rights reserved.
* See COPYING in top-level directory.
*/
/* The configuration file */
#ifndef HWLOC_DEBUG_H
#define HWLOC_DEBUG_H
#include <private/autoge... | 897 |
327 | package de.fhpotsdam.unfolding.examples.marker.cluster;
import processing.core.PApplet;
import de.fhpotsdam.unfolding.UnfoldingMap;
import de.fhpotsdam.unfolding.geo.Location;
import de.fhpotsdam.unfolding.marker.Marker;
import de.fhpotsdam.unfolding.marker.MarkerManager;
import de.fhpotsdam.unfolding.marker.SimplePoi... | 1,144 |
778 | from __future__ import print_function, absolute_import, division # makes KratosMultiphysics backward compatible with python 2.6 and 2.7
# Importing the Kratos Library
import KratosMultiphysics
# Importing the base class
from KratosMultiphysics.ParticleMechanicsApplication.mpm_implicit_dynamic_solver import MPMImplic... | 297 |
3,393 | <filename>deps/str-starts-with/package.json<gh_stars>1000+
{
"name": "str-starts-with",
"version": "0.0.3",
"repo": "stephenmathieson/str-starts-with.c",
"description": "Check if a string starts with another string",
"keywords": [ "string" ],
"license": "MIT",
"src": [
"src/str-starts-with.c",
"sr... | 150 |
642 | <gh_stars>100-1000
package com.jeesuite.zuul.model;
import java.util.List;
public class GrantPermParam {
private Integer roleId;
private List<PermissionItem> items;
public Integer getRoleId() {
return roleId;
}
public void setRoleId(Integer roleId) {
this.roleId = roleId;
}
public List<PermissionItem> g... | 163 |
348 | {"nom":"Massals","circ":"1ère circonscription","dpt":"Tarn","inscrits":121,"abs":42,"votants":79,"blancs":8,"nuls":9,"exp":62,"res":[{"nuance":"DVD","nom":"M. <NAME>","voix":49},{"nuance":"FN","nom":"M. <NAME>","voix":13}]} | 90 |
310 | {
"name": "Comics (iOS)",
"description": "A comic viewer and store app.",
"url": "https://itunes.apple.com/us/app/comics/id303491945"
} | 54 |
777 | <filename>third_party/WebKit/Source/platform/network/NetworkUtils.cpp
// 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 "platform/network/NetworkUtils.h"
#include "components/mime_util/mime_util... | 1,132 |
2,270 | /*
==============================================================================
This file is part of the JUCE examples.
Copyright (c) 2020 - Raw Material Software Limited
The code included in this file is provided under the terms of the ISC license
http://www.isc.org/downloads/software-support-... | 5,226 |
317 | <reponame>philippQubit/hbase-indexer
/*
* Copyright 2013 NGDATA nv
*
* 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 requi... | 1,679 |
852 | <filename>CondFormats/HcalObjects/interface/HcalInterpolatedPulse.h
#ifndef CondFormats_HcalObjects_HcalInterpolatedPulse_h_
#define CondFormats_HcalObjects_HcalInterpolatedPulse_h_
#include "CondFormats/HcalObjects/interface/InterpolatedPulse.h"
// Use some number which is sufficient to simulate at least 13
// 25 ns... | 185 |
1,338 | /*
* Copyright 2006, Haiku.
* Distributed under the terms of the MIT License.
*
* Authors:
* <NAME> <<EMAIL>>
*/
#include "PropertyEditorView.h"
#include <stdio.h>
#include "Property.h"
#include "PropertyItemView.h"
// constructor
PropertyEditorView::PropertyEditorView()
: BView(BRect(0.0, 0.0, 10.0, 10.0),... | 664 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.