max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
427 | """
Regression test for <rdar://problem/8981098>:
The expression parser's type search only looks in the current compilation unit for types.
"""
from __future__ import print_function
import lldb
from lldbsuite.test.decorators import *
from lldbsuite.test.lldbtest import *
from lldbsuite.test import lldbutil
class ... | 522 |
2,691 | <reponame>Thumbscrew/florisboard
/*
* Copyright (C) 2021 <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 ... | 1,067 |
704 | <gh_stars>100-1000
import k3d
import numpy as np
import pytest
from .plot_compare import *
vertices = [
-10.0, -15.0, 0.0,
-10.0, 5.0, 0.0,
10.0, 5.0, 0.0,
-10.0, -15.0, 0.0,
10.0, -15.0, 0.0,
-10.0, 5.0, 0.0,
0.0, 15.0, 0.0,
10.0, 5.0, 0.0,
10.0, -15.0, 0.0
]
colors = [
0xff,
... | 1,706 |
884 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
package com.microsoft.commondatamodel.objectmodel.samples;
import com.microsoft.commondatamodel.objectmodel.utilities.StringUtils;
import org.testng.SkipExceptio... | 314 |
1,197 | <gh_stars>1000+
/**
* A package containing a number of useful utility methods.
*/
package org.controlsfx.tools; | 36 |
324 | """
A collection of classes implementing various data loading techniques.
"""
import operator
import os.path
import threading
import queue
from functools import reduce
from typing import List
from vergeml.io import Sample
from vergeml.utils import SPLITS
from vergeml.cache import MemoryCache, SerializedFileCache
cl... | 5,552 |
2,151 | // Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef IOS_CRONET_CRONET_CONSUMER_CRONET_CONSUMER_VIEW_CONTROLLER_H_
#define IOS_CRONET_CRONET_CONSUMER_CRONET_CONSUMER_VIEW_CONTROLLER_H_
#import <Foun... | 203 |
322 | /* This file was automatically generated by CasADi.
The CasADi copyright holders make no ownership claim of its contents. */
#ifdef __cplusplus
extern "C" {
#endif
/* How to prefix internal symbols */
#ifdef CODEGEN_PREFIX
#define NAMESPACE_CONCAT(NS, ID) _NAMESPACE_CONCAT(NS, ID)
#define _NAMESPACE_CONCAT(NS, ... | 1,314 |
2,496 | package org.jivesoftware.util;
import java.util.UUID;
import org.junit.Test;
import static org.hamcrest.Matchers.is;
import static org.hamcrest.Matchers.not;
import static org.junit.Assert.*;
public class AesEncryptorTest {
@Test
public void testEncryptionUsingDefaultKey() {
String test = UUID.rando... | 1,046 |
521 | /**
* @file tests/llvmir2hll/llvm/llvmir2bir_converters/new_llvmir2bir_converter/llvm_value_converter_tests/llvm_fcmp_converter_tests.cpp
* @brief Tests for the @c llvm_fcmp_converter module.
* @copyright (c) 2017 Avast Software, licensed under the MIT license
*/
#include <memory>
#include <gtest/gtest.h>
#include <l... | 5,509 |
8,865 | #ifndef __LIB_R_H
#define __LIB_R_H
namespace lib {
namespace R {
namespace attr {
enum {
attr1 = 0x02010000, // default
};
}
namespace style {
enum {
Theme = 0x02020000, // default
};
}
} // namespace R
} // namespace lib
#endif // __LIB_R_H
| 144 |
17,769 | from .parser_factory import create_parser
| 11 |
338 | <reponame>ayumi-cloud/browscap
{
"Denver TAD-70112": {
"type": "tablet",
"properties": {
"Device_Name": "TAD-70112",
"Device_Code_Name": "TAD-70112",
"Device_Maker": "DENVER ELECTRONICS A/S",
"Device_Pointing_Method": "touchscreen",
"Device_Brand_Name": "Denver"
},
"stand... | 577 |
1,466 | /**
* Copyright 2004-present, Facebook, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law ... | 1,730 |
656 | <gh_stars>100-1000
import os
import os.path
import socket
import sys
if len(sys.argv) != 2 or sys.argv[1] not in ('top', 'bot', 'left', 'right'):
print >> sys.stderr, 'Usage: growto (top | bot | left | right)'
sys.exit(1)
direction = sys.argv[1]
sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM)
disp = ... | 776 |
983 | <reponame>DaoCalendar/similarity<gh_stars>100-1000
package org.xm;
/**
* @author xuming
*/
public class BaseDemo {
public static void main(String[] args) {
System.out.println("首次编译运行...");
double result = Similarity.cilinSimilarity("电动车","自行车");
System.out.println(result);
}
}
| 150 |
413 | <filename>application/pages/modplatform/atlauncher/AtlListModel.h<gh_stars>100-1000
#pragma once
#include <QAbstractListModel>
#include "net/NetJob.h"
#include <QIcon>
#include <modplatform/atlauncher/ATLPackIndex.h>
namespace Atl {
typedef QMap<QString, QIcon> LogoMap;
typedef std::function<void(QString)> LogoCall... | 439 |
1,056 | <reponame>timfel/netbeans
/*
* 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.... | 2,553 |
381 | <gh_stars>100-1000
from pypy.conftest import pytest_configure as _configure
def pytest_configure(config):
_configure(config)
# When using pytester plugin, we need these settings:
config.option.runpytest = 'subprocess'
config.option.assertmode = 'rewrite'
| 97 |
507 | <reponame>mjuenema/python-terrascript
# terrascript/rollbar/r.py
# Automatically generated by tools/makecode.py ()
import warnings
warnings.warn(
"using the 'legacy layout' is deprecated", DeprecationWarning, stacklevel=2
)
import terrascript
class rollbar_pagerduty_integration(terrascript.Resource):
pass
... | 240 |
1,960 | <filename>rl_coach/agents/td3_exp_agent.py
#
# Copyright (c) 2019 Intel Corporation
#
# 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
#
# Unl... | 8,170 |
319 | #include "KnownUnknownClassPair.h"
namespace Metadata {
const KnownUnknownClassPair& KnownUnknownClassPair::EmptyValue() {
static const KnownUnknownClassPair emptyValue;
return emptyValue;
}
const KnownUnknownClassPair& KnownUnknownClassPair::DeletedValue() {
static const KnownUnknownClassPair deletedValu... | 121 |
379 | # Copyright (c) 2020 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 appli... | 2,500 |
637 | <reponame>quintype/ios-qtauth
/*
* Copyright (C) 2017 Twitter, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless req... | 790 |
301 | /******************************************************************
*
* Copyright 2016 Samsung Electronics 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://... | 15,719 |
450 | /*-------------------------------------------------------------------------
*
* smgrtype.c
* storage manager type
*
* Portions Copyright (c) 1996-2009, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
*
* IDENTIFICATION
* $PostgreSQL: pgsql/src/b... | 629 |
831 | <gh_stars>100-1000
/*
* Copyright (C) 2016 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unl... | 673 |
5,535 | //---------------------------------------------------------------------------
// Greenplum Database
// Copyright (C) 2012 EMC Corp.
//
// @filename:
// CXformSemiJoinSemiJoinSwap.h
//
// @doc:
// Swap two cascaded semi-joins
//---------------------------------------------------------------------------
#ifndef GPOPT_C... | 576 |
1,371 | <filename>service/route53domains/generated.json
{
"dependencies": {
"github.com/aws/aws-sdk-go-v2": "v1.4.0",
"github.com/aws/smithy-go": "v1.4.0"
},
"files": [
"api_client.go",
"api_op_AcceptDomainTransferFromAnotherAwsAccount.go",
"api_op_CancelDomainTransferToAnoth... | 934 |
922 | //
// KeyValuesPopoverViewController.h
// MacSVGPlugin
//
// Created by <NAME> on 10/12/13.
// Copyright (c) 2013 ArkPhone LLC. All rights reserved.
//
#import <Cocoa/Cocoa.h>
@class MacSVGPlugin;
@class KeySplinesView;
@interface KeyValuesPopoverViewController : NSViewController <NSComboBoxDelegate, NSTableView... | 341 |
634 | <reponame>halotroop2288/consulo<gh_stars>100-1000
/*
* Copyright 2000-2014 JetBrains s.r.o.
*
* 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... | 1,193 |
312 | package org.reveno.atp.acceptance.handlers;
import org.reveno.atp.acceptance.api.commands.CreateNewAccountCommand;
import org.reveno.atp.acceptance.api.commands.NewOrderCommand;
import org.reveno.atp.acceptance.api.transactions.AcceptOrder;
import org.reveno.atp.acceptance.api.transactions.CreateAccount;
import org.re... | 1,112 |
554 | package com.brandongogetap.stickyheaders;
import androidx.recyclerview.widget.RecyclerView;
import android.view.ViewGroup;
interface ViewRetriever {
RecyclerView.ViewHolder getViewHolderForPosition(int headerPositionToShow);
final class RecyclerViewRetriever implements ViewRetriever {
private final... | 449 |
312 | /*
* This file is part of <NAME> Ripper password cracker,
* Copyright (c) 1996-2001,2006,2013 by Solar Designer
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted.
*
* There's ABSOLUTELY NO WARRANTY, express or implied.
*/
/*
* Signal handling.
*/
#ifndef _J... | 453 |
335 | <reponame>Safal08/Hacktoberfest-1
{
"word": "Newel",
"definitions": [
"The central supporting pillar of a spiral or winding staircase.",
"A post at the head or foot of a flight of stairs, supporting a handrail."
],
"parts-of-speech": "Noun"
} | 107 |
831 | <filename>src/test/java/org/takes/tk/TkCorsTest.java<gh_stars>100-1000
/*
* The MIT License (MIT)
*
* Copyright (c) 2014-2019 <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 w... | 1,674 |
1,269 | /*
This file is part of the iText (R) project.
Copyright (c) 1998-2021 iText Group NV
Authors: iText Software.
This program is offered under a commercial and under the AGPL license.
For commercial licensing, contact us at https://itextpdf.com/sales. For AGPL licensing, see below.
AGPL licensi... | 2,143 |
903 | /*
* Copyright 2015 <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 law or agreed to in wr... | 482 |
563 | #include <stdio.h>
#ifdef __cplusplus
#error This file mustn't be compiled as C++
#endif
void hello_c(void)
{
printf("Hello from C code!\n");
}
| 61 |
504 | <filename>src/MyHealth.Web/project.json<gh_stars>100-1000
{
"authors": [
"Microsoft"
],
"description": "HealthClinic.biz",
"version": "1.0.0-*",
"compilationOptions": {
"warningsAsErrors": true
},
"webroot": "wwwroot",
"userSecretsId": "aspnet5-MyHealth.Web-17953c6e-be46... | 1,492 |
575 | <reponame>Ron423c/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.
#ifndef CHROME_BROWSER_UI_ANDROID_INFOBARS_GROUPED_PERMISSION_INFOBAR_H_
#define CHROME_BROWSER_UI_ANDROID_INFOBARS_GROUPED_PER... | 397 |
428 | <reponame>cping/LGame<filename>Java/old/Canvas_ver/src/org/loon/framework/android/game/core/geom/RoundRectangle2D.java
/*
* Copyright 1997-2006 Sun Microsystems, Inc. All Rights Reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or ... | 3,721 |
743 | <reponame>lurch/python-gpiozero
from gpiozero import MotionSensor, LED
from signal import pause
pir = MotionSensor(4)
led = LED(16)
pir.when_motion = led.on
pir.when_no_motion = led.off
pause()
| 72 |
12,278 | <gh_stars>1000+
// udt_conversion_example.cpp --------------------------------------------------------//
// Copyright <NAME> 2013
// Distributed under the Boost Software License, Version 1.0.
// http://www.boost.org/LICENSE_1_0.txt
//------------------------------------------------------------------------------... | 950 |
2,594 | /*
* Copyright (C) 2018 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | 6,590 |
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.config.DragoniteSocketParameters;
import com.vecsight.dragonite.sdk.cryptor.PacketCryptor;
import com.vecsig... | 4,927 |
603 | <reponame>cswarth/whylogs
"""
"""
import pandas as pd
from whylogs.core.datasetprofile import dataframe_profile
if __name__ == "__main__":
df = pd.read_csv("data/lending-club-accepted-10.csv")
profile = dataframe_profile(df, name="lending_club")
summary = profile.to_summary()
| 113 |
543 | /**
* Copyright 2016 Twitter. 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... | 1,536 |
580 | // https://leetcode.com/problems/how-many-numbers-are-smaller-than-the-current-number/
class Solution {
public:
vector<int> smallerNumbersThanCurrent(vector<int>& nums) {
// Create solution vector
vector<int>solution;
int counter, current_number;
for(int i=0; i< nums.size(); i++)
... | 379 |
451 | // File Automatically generated by eLiSe
#include "StdAfx.h"
#include "cGen2DBundleAtRot_Deg0.h"
cGen2DBundleAtRot_Deg0::cGen2DBundleAtRot_Deg0():
cElCompiledFonc(2)
{
AddIntRef (cIncIntervale("CX",3,4));
AddIntRef (cIncIntervale("CY",4,5));
AddIntRef (cIncIntervale("Tmp_PTer",0,3));
Close(false);
}
... | 1,234 |
623 | #include "Tests.h"
#include "../Include/Common.h"
#include "../Util/Utils.h"
#include "../Hooks/PageHook.h"
#include "../Hooks/SyscallHook.h"
ULONG64 calls1 = 0, calls2 = 0;
PVOID g_NtClose = NULL;
typedef NTSTATUS( *pfnNtClose )(HANDLE);
NTSTATUS hkNtClose( HANDLE handle )
{
calls1++;
return ((pfnNtClose)g_... | 1,628 |
1,627 | package net.querz.mcaselector.changer;
import net.querz.mcaselector.io.mca.ChunkData;
import net.querz.mcaselector.version.VersionController;
public class DeleteEntitiesField extends Field<Boolean> {
public DeleteEntitiesField() {
super(FieldType.DELETE_ENTITIES);
}
@Override
public Boolean getOldValue(ChunkD... | 275 |
1,806 | # Copyright 2021 Pants project contributors (see CONTRIBUTORS.md).
# Licensed under the Apache License, Version 2.0 (see LICENSE).
from __future__ import annotations
import os
import shlex
import textwrap
from dataclasses import dataclass
from typing import ClassVar, Iterable
from pants.core.util_rules import extern... | 3,308 |
335 | <reponame>Safal08/Hacktoberfest-1
{
"word": "Litigation",
"definitions": [
"the process of legal action",
"legal proceedings; indictment"
],
"parts-of-speech": "Noun"
}
| 91 |
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 "chrome/common/importer/mock_importer_bridge.h"
MockImporterBridge::MockImporterBridge() {}
MockImporterBridge::~MockImporterBridge() {}
| 94 |
575 | // Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "base/files/file_util.h"
#include <dirent.h>
#include <errno.h>
#include <fcntl.h>
#include <libgen.h>
#include <limits.h>
#include <stddef.... | 16,649 |
1,232 | package com.creditease.dbus.heartbeat.distributed.errors;
public class HeartbeatException extends RuntimeException {
private final static long serialVersionUID = 1L;
public HeartbeatException(String message, Throwable cause) {
super(message, cause);
}
public HeartbeatException(String message... | 171 |
5,079 | <reponame>Yurzs/boto
# Copyright (c) 2013 <NAME> http://www.corsis.com/
#
# 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... | 1,122 |
2,845 | <gh_stars>1000+
#ifndef ZEPHYR
#define ZEPHYR
#endif
#ifndef PJON_ZEPHYR_SEPARATE_DEFINITION
#define PJON_ZEPHYR_SEPARATE_DEFINITION
#endif
#include "PJON_ZEPHYR_Interface.h"
#include <sys/ring_buffer.h>
#include <devicetree.h>
#include <drivers/gpio.h>
#include <drivers/uart.h>
#include <logging/log.h>
#inc... | 1,321 |
1,053 | import sys
import binascii
import struct
import surf
import ppp4py.hdlc
import ppp4py.protocol.base
surf = surf.Device()
framer = ppp4py.hdlc.HDLCforPPP()
pppd = ppp4py.PPP(framer=framer)
import pppprint
pppprint.PppPrintProtocol(pppd)
bad_protocol = 5
bad_information = 0x12345678
pkt = framer.framePacket(struct.pa... | 621 |
373 | <reponame>heatd/edk2-platforms<filename>Platform/Intel/WhitleyOpenBoardPkg/Include/Ppi/UbaCfgDb.h
/** @file
uba central config database PPI
@copyright
Copyright 2012 - 2021 Intel Corporation. <BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#ifndef _UBA_CONFIG_DATABASE_PPI_H_
#define _UBA_CONF... | 2,500 |
1,025 | <gh_stars>1000+
package com.baidu.unbiz.fluentvalidator.util;
/**
* Determines an output value based on an input value.
*
* @author zhangxu
*/
public interface Function<F, T> {
/**
* Returns the result of applying this function to {@code input}.
*/
T apply(F input);
}
| 108 |
4,617 | /*
* This file is generated by jOOQ.
*/
package org.jooq.meta.h2.information_schema;
import org.jooq.ForeignKey;
import org.jooq.Record;
import org.jooq.TableField;
import org.jooq.UniqueKey;
import org.jooq.impl.DSL;
import org.jooq.impl.Internal;
import org.jooq.meta.h2.information_schema.tables.Constraints;
impo... | 1,360 |
370 | package com.fastasyncworldedit.core.extension.factory.parser.pattern;
import com.sk89q.worldedit.WorldEdit;
import com.sk89q.worldedit.math.noise.VoronoiNoise;
public class VoronoiPatternParser extends NoisePatternParser {
private static final String VORONOI_NAME = "voronoi";
/**
* Create a new voronoi... | 197 |
348 | {"nom":"Sainte-Eulalie","circ":"4ème circonscription","dpt":"Gironde","inscrits":3277,"abs":1487,"votants":1790,"blancs":16,"nuls":7,"exp":1767,"res":[{"nuance":"UDI","nom":"<NAME>","voix":714},{"nuance":"REM","nom":"<NAME>","voix":393},{"nuance":"FN","nom":"M. <NAME>","voix":193},{"nuance":"FI","nom":"Mme <NAME>","voi... | 282 |
684 | <filename>modules/activiti-json-converter/src/test/java/org/activiti/editor/language/NotExecutableConverterTest.java<gh_stars>100-1000
package org.activiti.editor.language;
import static org.junit.Assert.assertEquals;
import org.activiti.bpmn.model.BpmnModel;
import org.junit.Test;
public class NotExecutableConverte... | 357 |
309 | <gh_stars>100-1000
import vtk.vtkNativeLibrary;
import vtk.vtkRenderWindow;
import vtk.vtkRenderWindowInteractor;
import vtk.vtkRenderer;
import vtk.vtkActor;
import vtk.vtkNamedColors;
import vtk.vtkPolyDataMapper;
import vtk.vtkSuperquadric;
import vtk.vtkSampleFunction;
import vtk.vtkContourFilter;
import vtk.vtkOut... | 1,235 |
3,348 | /**
* 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... | 3,659 |
388 | <reponame>sekikn/amazon-kinesis-producer
/*
* Copyright 2019 Amazon.com, Inc. 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. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LI... | 2,454 |
392 | <filename>src/main/java/org/ojalgo/type/BusinessObject.java
/*
* Copyright 1997-2021 Optimatika
*
* 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 l... | 844 |
6,989 | #include "stdafx.h"
#include "ib_buffers.h"
namespace NNetliba_v12 {
}
| 35 |
868 | <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 "L... | 928 |
16,461 | <reponame>ahmadtech199/expo
#import <AVFoundation/AVFoundation.h>
#import <UIKit/UIKit.h>
#import <ABI41_0_0EXCamera/ABI41_0_0EXCameraManager.h>
#import <ABI41_0_0UMCore/ABI41_0_0UMModuleRegistry.h>
#import <ABI41_0_0UMCore/ABI41_0_0UMAppLifecycleListener.h>
#import <ABI41_0_0UMCameraInterface/ABI41_0_0UMCameraInterfac... | 1,607 |
1,205 | """
This module contains a collection of graph theory routines used mainly
to reorder matrices for iterative steady state solvers.
"""
__all__ = ['graph_degree', 'column_permutation', 'breadth_first_search',
'reverse_cuthill_mckee', 'maximum_bipartite_matching',
'weighted_bipartite_matching']
im... | 3,069 |
335 | <reponame>mrslezak/Engine
/*
Copyright (C) 2016 Quaternion Risk Management Ltd
All rights reserved.
This file is part of ORE, a free-software/open-source library
for transparent pricing and risk analysis - http://opensourcerisk.org
ORE is free software: you can redistribute it and/or modify it
under the terms o... | 1,845 |
394 | package net.earthcomputer.multiconnect.protocols.v1_8.mixin;
import net.earthcomputer.multiconnect.api.Protocols;
import net.earthcomputer.multiconnect.impl.ConnectionInfo;
import net.minecraft.entity.player.PlayerInventory;
import net.minecraft.util.collection.DefaultedList;
import org.spongepowered.asm.mixin.Mixin;
... | 733 |
3,372 | /*
* Copyright 2016-2021 Amazon.com, Inc. or its affiliates. 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. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "licen... | 19,042 |
348 | <reponame>chamberone/Leaflet.PixiOverlay<filename>docs/data/leg-t1/079/07902276.json
{"nom":"Saint-Martin-de-Saint-Maixent","circ":"2ème circonscription","dpt":"Deux-Sèvres","inscrits":784,"abs":397,"votants":387,"blancs":9,"nuls":2,"exp":376,"res":[{"nuance":"REM","nom":"Mme <NAME>","voix":135},{"nuance":"SOC","nom":"... | 254 |
543 | /*
* Copyright (c) 1999, 2020, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free ... | 4,652 |
738 | from django.conf.urls import url
from . import views
urlpatterns = [
url(r'^list/$', views.screenshots_listing, name='crits-screenshots-views-screenshots_listing'),
url(r'^list/(?P<option>\S+)/$', views.screenshots_listing, name='crits-screenshots-views-screenshots_listing'),
url(r'^add/$', views.add_new_... | 361 |
852 | import FWCore.ParameterSet.Config as cms
from HLTrigger.HLTfilters.hltHighLevel_cfi import hltHighLevel
hcalfilter = hltHighLevel.clone(
TriggerResultsTag = cms.InputTag('TriggerResults'),
HLTPaths = cms.vstring('user_step' )
)
hcalfilterSeq = cms.Sequence( hcalfilter )
| 113 |
1,647 | import unittest
from pythran.tests import TestFromDir
import os
class TestGWebb(TestFromDir):
path = os.path.join(os.path.dirname(__file__),"g webb")
TestGWebb.populate(TestGWebb)
if __name__ == '__main__':
unittest.main()
| 95 |
892 | <filename>advisories/unreviewed/2022/05/GHSA-8hx4-6cm8-3q7v/GHSA-8hx4-6cm8-3q7v.json
{
"schema_version": "1.2.0",
"id": "GHSA-8hx4-6cm8-3q7v",
"modified": "2022-05-01T17:42:47Z",
"published": "2022-05-01T17:42:47Z",
"aliases": [
"CVE-2007-0263"
],
"details": "Unspecified vulnerability in Total Command... | 490 |
318 | #ifndef ENTT_META_TEMPLATE_HPP
#define ENTT_META_TEMPLATE_HPP
#include "../core/type_traits.hpp"
namespace entt {
/*! @brief Utility class to disambiguate class templates. */
template<template<typename...> typename>
struct meta_class_template_tag {};
/**
* @brief General purpose traits class for generating met... | 257 |
1,251 | import unicodedata
alphabet = {}
with open("pos.dict.utf8") as f:
for line in f:
token = line.split("\t")[0]
for a in token:
alphabet[a]=1
def is_useful(input_string, normalized_input):
if input_string in alphabet:
return True
for t in normalized_input:
if t i... | 596 |
2,497 | <gh_stars>1000+
package eta.runtime.storage;
import java.util.List;
import static eta.runtime.util.Report.*;
public class BlockStats {
long startAddress;
int capability;
boolean direct;
List<Span> spans;
public BlockStats(long startAddress, int capability, boolean direct, List<Span> spans) {
... | 617 |
7,482 | <filename>bsp/loongson/ls2kdev/drivers/ata/fis.h
/*
* Copyright (c) 2006-2020, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
* Date Author Notes
* 2020-08-19 lizhirui porting to ls2k
*/
#ifndef __FIS_H__
#define __FIS_H__
/*
* Register - Host to Dev... | 1,577 |
812 | package edu.stanford.nlp.sempre.tables.features;
import java.util.concurrent.ExecutionException;
import com.google.common.cache.*;
import edu.stanford.nlp.sempre.*;
/**
* Information about the headword of the utterance.
*
* Examples:
* - Which person is the fastest? ==> (which, person)
* - Who is the fastest p... | 1,401 |
6,058 | <gh_stars>1000+
# -*- coding: utf-8 -*-
# Copyright (c) 2013, <NAME>
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# * Redistributions of source code must retain the above copyright
# notice, this list of... | 10,048 |
732 | /*
* Copyright 1994-2009 <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 law or agreed to in w... | 2,033 |
2,177 | <gh_stars>1000+
/*
* Copyright 2020 LinkedIn Corp. Licensed under the BSD 2-Clause License (the "License"). See License in the project root for license information.
*/
package com.linkedin.kafka.cruisecontrol.detector;
import com.linkedin.kafka.cruisecontrol.KafkaCruiseControl;
import java.time.Duration;
import jav... | 397 |
348 | <filename>CoreSecurity/src/au/gov/asd/tac/constellation/security/proxy/ConstellationHttpProxySelector.java
/*
* Copyright 2010-2021 Australian Signals Directorate
*
* 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 ... | 3,243 |
1,027 | <reponame>ganesh-k13/gc
#ifndef __LOG_H__
#define __LOG_H__
#include <stdio.h>
#define LOGLEVEL LOGLEVEL_DEBUG
enum {
LOGLEVEL_CRITICAL,
LOGLEVEL_WARNING,
LOGLEVEL_INFO,
LOGLEVEL_DEBUG,
LOGLEVEL_NONE
};
extern const char* log_level_strings[];
#define log(level, fmt, ...) \
do { if (level <=... | 342 |
627 | /* Copyright 2016 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.
*
* Charger profile override for fast charging
*/
#include "charger_profile_override.h"
#include "console.h"
#include "ec_commands.h"
#include "util... | 2,169 |
369 | /*
* Copyright © 2016 <NAME>, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to i... | 863 |
1,821 | <reponame>hangqiu/pixie
/*
* Copyright 2018- The Pixie 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... | 827 |
1,779 | //
// Copyright 2019 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to ... | 4,233 |
2,151 | //===----------------------------------------------------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is dual licensed under the MIT and the University of Illinois Open
// Source Licenses. See LICENSE.TXT for details.
//
//===----------------------------------------... | 167 |
5,169 | <reponame>Gantios/Specs
{
"name": "EasyMap",
"version": "0.0.1",
"summary": "A framework for easily working with MapKit.",
"description": "EasyMap is a wrapper for MapKit to make it veyr simple to work with. It strips away the\ncomplexity and simply allows you to work with locations and the map view.",
"homep... | 277 |
563 | <filename>madl/core/src/main/java/com/gentics/madl/traversal/WrappedTraversalResultImpl.java<gh_stars>100-1000
package com.gentics.madl.traversal;
import java.util.Iterator;
import com.gentics.mesh.madl.frame.ElementFrame;
public class WrappedTraversalResultImpl<T extends ElementFrame> extends AbstractWrappedTravers... | 215 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.