max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
1,647 | #ifndef PYTHONIC_BUILTIN_OPEN_HPP
#define PYTHONIC_BUILTIN_OPEN_HPP
#include "pythonic/include/builtins/open.hpp"
#include "pythonic/types/file.hpp"
#include "pythonic/types/str.hpp"
#include "pythonic/utils/functor.hpp"
PYTHONIC_NS_BEGIN
namespace builtins
{
types::file open(types::str const &filename, types::s... | 177 |
381 | <filename>jgiven-core/src/test/java/com/tngtech/jgiven/report/ReportGeneratorArgumentTest.java
package com.tngtech.jgiven.report;
import java.io.File;
import com.tngtech.jgiven.report.asciidoc.AsciiDocReportConfig;
import com.tngtech.jgiven.report.asciidoc.AsciiDocReportGenerator;
import org.assertj.core.api.Assertio... | 328 |
453 | <gh_stars>100-1000
/* Various stuff for the sparclet processor.
This file is in the public domain. */
#ifndef _MACHINE_SPARCLET_H_
#define _MACHINE_SPARCLET_H_
#ifdef __sparclet__
/* sparclet scan instruction */
extern __inline__ int
scan (int a, int b)
{
int res;
__asm__ ("scan %1,%2,%0" : "=r" (res) : "r... | 260 |
1,353 | /*
* Copyright (c) 2011, <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, this
* list of conditions and... | 1,744 |
4,303 | #include <cassert>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <set>
#include <string>
std::set<std::string> done;
void dump_header(const std::string &header) {
if (done.find(header) != done.end()) {
return;
}
done.insert(header);
if (header.find("runtime_i... | 1,447 |
678 | /**
* This header is generated by class-dump-z 0.2b.
*
* Source: /System/Library/PrivateFrameworks/ScreenReaderCore.framework/ScreenReaderCore
*/
#import <ScreenReaderCore/ScreenReaderCore-Structs.h>
#import <ScreenReaderCore/XXUnknownSuperclass.h>
@interface SCRCStackQueue : XXUnknownSuperclass {
SCRCStackNode... | 395 |
325 | <gh_stars>100-1000
/**
* Copyright 2020 <NAME>
* <p>
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License.
* <p>
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unless required by appli... | 1,149 |
675 | #pragma once
#include <string>
#include "engine/core/base/echo_def.h"
namespace Echo
{
// remember call trace stack
i32 StackTrace(void **callstack, i32 maxStackDepth);
// get trace info
std::string StackTraceDesc(void **callstack, int maxStackDepth, int stackDepth, int skip = 1);
}
| 112 |
930 | package com.uwsoft.editor.view.ui.dialog;
import com.badlogic.gdx.scenes.scene2d.InputEvent;
import com.badlogic.gdx.scenes.scene2d.utils.ClickListener;
import com.badlogic.gdx.utils.Align;
import com.commons.UIDraggablePanel;
import com.kotcrab.vis.ui.widget.*;
import com.uwsoft.editor.Overlap2DFacade;
import com.uws... | 1,305 |
1,383 | <reponame>Benatti1991/chrono
// =============================================================================
// PROJECT CHRONO - http://projectchrono.org
//
// Copyright (c) 2014 projectchrono.org
// All rights reserved.
//
// Use of this source code is governed by a BSD-style license that can be found
// in the LICEN... | 463 |
4,474 | package com.lcodecore.tkrefreshlayout.processor;
/**
* Created by lcodecore on 2017/3/3.
*/
public interface IAnimOverScroll {
void animOverScrollTop(float vy, int computeTimes);
void animOverScrollBottom(float vy, int computeTimes);
}
| 83 |
1,350 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
package com.microsoft.azure.keyvault.cryptography.test;
import static org.junit.Assert.assertArrayEquals;
import static org.junit.Assert.fail;
import java.security.Provider;
import org.junit.After;
import org.junit.After... | 12,126 |
348 | <filename>docs/data/leg-t1/077/07704182.json
{"nom":"<NAME>","circ":"4ème circonscription","dpt":"Seine-et-Marne","inscrits":2424,"abs":1298,"votants":1126,"blancs":20,"nuls":6,"exp":1100,"res":[{"nuance":"LR","nom":"<NAME>","voix":372},{"nuance":"REM","nom":"M. <NAME>","voix":273},{"nuance":"FN","nom":"<NAME>","voix":... | 265 |
574 | <reponame>gmarques33/android-junit5
package de.mannodermaus.app;
import static org.junit.jupiter.api.Assertions.assertNotNull;
import org.junit.jupiter.api.Test;
import java.io.InputStream;
class AndroidTest {
@Test
void test() {
InputStream is = getClass().getResourceAsStream("/com/android/tools/test_config... | 133 |
1,444 | <filename>Mage.Sets/src/mage/cards/p/PhantomSteed.java<gh_stars>1000+
package mage.cards.p;
import mage.MageInt;
import mage.abilities.Ability;
import mage.abilities.common.AttacksTriggeredAbility;
import mage.abilities.common.EntersBattlefieldTriggeredAbility;
import mage.abilities.common.delayed.AtTheEndOfCombatDela... | 1,659 |
713 | <filename>core/src/test/java/org/infinispan/util/ThreadLocalLeakTest.java
package org.infinispan.util;
import static org.testng.AssertJUnit.assertEquals;
import static org.testng.AssertJUnit.assertSame;
import java.io.File;
import java.lang.ref.Reference;
import java.lang.reflect.Array;
import java.lang.reflect.Field... | 2,718 |
1,405 | <reponame>jarekankowski/pegasus_spyware
package com.network.a;
import android.content.ContentResolver;
import android.content.Context;
import android.database.Cursor;
import android.net.Uri;
import android.os.Build;
import android.os.Handler;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.T... | 2,080 |
6,989 | """
To ensure compatibility from Python ``2.7`` - ``3.x``, a module has been
created. Clearly there is huge need to use conforming syntax.
"""
import errno
import sys
import os
import re
import pkgutil
import warnings
import inspect
import subprocess
try:
import importlib
except ImportError:
pass
is_py3 = sys.... | 8,089 |
975 | <reponame>parth-couture-ai/RecommenderSystems
#coding: utf-8
'''
Author: <NAME>
Contact: <EMAIL>
'''
import tensorflow as tf
import argparse
import numpy as np
import sys
import time
import math
from .utils import *
from .model import *
from .sampler import *
parser = argparse.ArgumentParser(description='Sequential ... | 2,927 |
331 | <reponame>FreddieV4/DailyProgrammerChallenges<gh_stars>100-1000
#Solution by https://github.com/Ouss4
from math import ceil
year = int(input("Enter year: "))
print("Centry : {}".format(ceil(year/100)))
print("Leap Year: {}".format("Yes" if (year % 400 == 0 or (year % 4 == 0 and year % 100 != 0)) else "No"))
| 114 |
335 | <gh_stars>100-1000
{
"word": "Stepdaughter",
"definitions": [
"A daughter of one's husband or wife by a previous marriage."
],
"parts-of-speech": "Noun"
} | 74 |
4,812 | //===- NativeTypeArray.cpp - info about arrays ------------------*- C++ -*-===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===---------------------------... | 979 |
3,513 | <reponame>jrekoske/jrekoske.github.io<gh_stars>1000+
/*
Copyright 2018 <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
https://www.apache.org/licenses/LICENSE-2.0
Unless required b... | 782 |
32,544 | package com.baeldung;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springfra... | 261 |
399 | <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
# "Licen... | 2,500 |
743 | <reponame>TheRakeshPurohit/flutter-embedded-linux<gh_stars>100-1000
// Copyright 2021 Sony Corporation. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "flutter/shell/platform/linux_embedded/vsync_waiter.h"
#include <cassert>
#incl... | 592 |
412 | /*******************************************************************\
Module: Statement List Type Helper
Author: <NAME>, <EMAIL>
\*******************************************************************/
/// \file
/// Statement List Type Helper
#ifndef CPROVER_STATEMENT_LIST_CONVERTERS_STATEMENT_LIST_TYPES_H
#define CP... | 354 |
14,668 | <reponame>zealoussnow/chromium<gh_stars>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.
package org.chromium.components.media_router;
import com.google.android.gms.cast.MediaInfo;
import com.goog... | 1,541 |
493 | package com.jdh.microcraft.item;
import com.jdh.microcraft.gfx.Color;
import com.jdh.microcraft.item.resource.ItemIngot;
import com.jdh.microcraft.item.resource.ItemOre;
public class Metal {
public static final Metal GOLD =
new Metal("GOLD",4, 5,
441, Color.get(221, 331, 441, 553));
public... | 467 |
1,780 | <filename>core/src/platform/Linux/fonttool.cpp
#include "FontTool.hpp"
#include "utils.hpp"
#include "argh.h"
#include <codecvt>
#include <ft2build.h>
#include <iostream>
#include <locale>
#include <memory>
#include FT_FREETYPE_H
using NSFontTool::TypefaceLoader;
using NSFontTool::TypefaceProvider;
using NSFontTool::T... | 1,444 |
496 | <filename>source/lexbor/core/in.h
/*
* Copyright (C) 2018 <NAME>
*
* Author: <NAME> <<EMAIL>>
*/
#ifndef LEXBOR_IN_H
#define LEXBOR_IN_H
#ifdef __cplusplus
extern "C" {
#endif
#include "lexbor/core/base.h"
#include "lexbor/core/dobject.h"
typedef struct lexbor_in_node lexbor_in_node_t;
typedef int lexbor_in_op... | 1,759 |
732 | {
"year":"1 jaro|:count jaroj",
"y":"1 jaro|:count jaroj",
"month":"1 monato|:count monatoj",
"m":"1 monato|:count monatoj",
"week":"1 semajno|:count semajnoj",
"w":"1 semajno|:count semajnoj",
"day":"1 tago|:count tagoj",
"d":"1 tago|:count tagoj",
"hour":"1 horo|:count horoj",
... | 301 |
852 | #include "RecoEgamma/EgammaMCTools/interface/PhotonMCTruthFinder.h"
#include "RecoEgamma/EgammaMCTools/interface/PhotonMCTruth.h"
#include "RecoEgamma/EgammaMCTools/interface/ElectronMCTruth.h"
//
//
#include "SimDataFormats/CrossingFrame/interface/CrossingFrame.h"
#include "SimDataFormats/CrossingFrame/interface/MixCo... | 9,723 |
637 | /*
* The MIT License
*
* Copyright 2014 <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, ... | 4,736 |
907 | package org.jbox2d.testbed.tests;
import org.jbox2d.collision.shapes.CircleShape;
import org.jbox2d.collision.shapes.EdgeShape;
import org.jbox2d.collision.shapes.PolygonShape;
import org.jbox2d.common.Vec2;
import org.jbox2d.dynamics.Body;
import org.jbox2d.dynamics.BodyDef;
import org.jbox2d.dynamics.BodyType;
impor... | 1,269 |
3,631 | /*
* Copyright 2017 Red Hat, Inc. and/or its affiliates.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ap... | 850 |
911 | <reponame>buketkonuk/pythondotorg
import datetime
from django.utils import timezone
from django.test import TestCase
from ..utils import (
seconds_resolution, minutes_resolution, timedelta_nice_repr, timedelta_parse,
)
class EventsUtilsTests(TestCase):
def test_seconds_resolution(self):
now = timezo... | 2,299 |
5,169 | {
"name": "ObjectiveHAL",
"version": "1.0.0",
"license": {
"type": "MIT",
"file": "LICENSE"
},
"homepage": "https://github.com/ObjectiveHAL/ObjectiveHAL",
"summary": "Objective-C implementation of the JSON Hypertext Application Language.",
"authors": {
"<NAME>": "<EMAIL>",
"<NAME>": "<EMAI... | 367 |
445 | from matplotlib import docstring, transforms
from matplotlib.offsetbox import (AnchoredOffsetbox, AuxTransformBox,
DrawingArea, TextArea, VPacker)
from matplotlib.patches import (Rectangle, Ellipse, ArrowStyle,
FancyArrowPatch, PathPatch)
from matplotlib... | 10,332 |
488 | import pydiffvg
import torch
import skimage
import numpy as np
import matplotlib.pyplot as plt
# Use GPU if available
pydiffvg.set_use_gpu(torch.cuda.is_available())
canvas_width, canvas_height = 256, 256
num_control_points = torch.tensor([1])
points = torch.tensor([[ 50.0, 30.0], # base
[125.... | 1,355 |
370 | <filename>worldedit-bukkit/adapters/adapter-1_18/src/main/java/com/sk89q/worldedit/bukkit/adapter/impl/fawe/v1_18_R1/PaperweightStarlightRelighterFactory.java
package com.sk89q.worldedit.bukkit.adapter.impl.fawe.v1_18_R1;
import com.fastasyncworldedit.core.extent.processor.lighting.NullRelighter;
import com.fastasyncw... | 463 |
679 | <filename>main/sfx2/source/bastyp/frmhtmlw.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
* regarding copyright... | 6,426 |
624 | #!/usr/bin/python
# This script creates a clone of a remote repository in local memory,
# then adds a single file and pushes the result back.
#
# Example usage:
# python examples/memoryrepo.py git+ssh://github.com/jelmer/testrepo
import stat
import sys
from dulwich import porcelain
from dulwich.objects import Blob
f... | 390 |
8,980 | {"articles":[{"id":"AB1C61AC-02EF-46A4-A16C-AD65A4D6289F","datePosted":"2020-05-03T08:00:34-07:00","expirationDate":"2020-06-23T17:22:28-07:00","localizations":{"eng":{"id":"10096D7C-06AB-4036-9387-3A65141AC350","summaryComponents":[{"flexibleSpacer":0.3960468521,"id":"9BF051B6-8879-409D-B6F6-54D1F4C7E7CC","modifiers":... | 796 |
746 | package in.srain.cube.views.loadmore;
import android.content.Context;
import android.util.AttributeSet;
import android.view.View;
import android.widget.AbsListView;
import android.widget.ListView;
/**
* @author huqiu.lhq
*/
public class LoadMoreListViewContainer extends LoadMoreContainerBase {
private ListView... | 326 |
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 ... | 667 |
14,668 | // 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 "chrome/browser/ui/android/autofill/card_name_fix_flow_view_android.h"
#include "chrome/android/chrome_jni_headers/AutofillNameFixFlowBridge_jni... | 1,167 |
679 | /**************************************************************
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to y... | 1,093 |
362 | // Copyright (c) 2018-2020, <NAME>. For more information see 'LICENSE'
#include "WindowSDL2.h"
#include "framework/Vulkan/VulkanSurface.h"
#include "stl/Containers/Singleton.h"
#ifdef FG_ENABLE_SDL2
# include "SDL_syswm.h"
namespace FGC
{
namespace {
struct SDL2Instance
{
uint refCounter = 0;
bool initialized... | 6,772 |
1,373 | # 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 app... | 1,416 |
317 | #ifndef __AIXMLElement__
#define __AIXMLElement__
/*
* Name: AIXMLNodeRef.h
* $Revision: 1 $
* Author:
* Date:
* Purpose: Adobe Illustrator XML node suite.
*
* ADOBE SYSTEMS INCORPORATED
* Copyright 1986-2007 Adobe Systems Incorporated.
* All rights reserved.
*
* NOTICE: Adobe perm... | 7,530 |
1,738 | <filename>dev/Code/Sandbox/Editor/AI/GenerateSpawners.cpp
/*
* All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or
* its licensors.
*
* For complete copyright and license terms please see the LICENSE at the root of this
* distribution (the "License"). All use of this software is governed by... | 5,004 |
1,756 | /* DO NOT EDIT THIS FILE - it is machine generated */
#include <jni.h>
/* Header for class com_libmailcore_SMTPSendWithDataOperation */
#ifndef _Included_com_libmailcore_SMTPSendWithDataOperation
#define _Included_com_libmailcore_SMTPSendWithDataOperation
#ifdef __cplusplus
extern "C" {
#endif
#undef com_libmailcore_S... | 156 |
435 | package org.uma.jmetal.algorithm.multiobjective.moead;
import org.uma.jmetal.algorithm.multiobjective.moead.util.MOEADUtils;
import org.uma.jmetal.operator.crossover.CrossoverOperator;
import org.uma.jmetal.operator.crossover.impl.DifferentialEvolutionCrossover;
import org.uma.jmetal.operator.mutation.MutationOperator... | 4,787 |
1,025 | <filename>CodeXL/Components/ShaderAnalyzer/AMDTKernelAnalyzer/src/kaProjectSettingsExtension.cpp
//------------------------------ kaProjectSettingsExtension.h ------------------------------
// TinyXml:
#include <tinyxml.h>
// QT:
#include <QtWidgets>
// Infra:
#include <AMDTBaseTools/Include/gtAssert.h>
#include <AM... | 4,421 |
620 | //
// PiwigoAlbumData.h
// piwigo
//
// Created by <NAME> on 1/24/15.
// Copyright (c) 2015 bakercrew. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "PiwigoImageData.h"
typedef enum {
ImageListOrderId,
ImageListOrderFileName,
ImageListOrderName,
ImageListOrderDate
} ImageListOrder;
@class... | 556 |
1,853 | #define INSIGHTS_USE_TEMPLATE
#include <cstddef>
#include <type_traits>
namespace details {
template<class T>
struct remove_reference { typedef T type; };
template<class T>
struct remove_reference<T&> { typedef T type; };
template<class T>
struct remove_reference<T&&> { typedef T type; };
templat... | 421 |
1,484 | <reponame>dspalmer99/anchore-engine<filename>tests/data/test_data_env/feeds/vulnerabilities/ol:7/2017-07-28T01:09:14.566549.json
[{"Vulnerability": {"Severity": "High", "NamespaceName": "oracle:7", "FixedIn": [{"VersionFormat": "rpm", "NamespaceName": "oracle:7", "Version": "0:3.8.13-118.19.3.el7uek", "Name": "kernel-u... | 572 |
347 | package org.ovirt.engine.core.common.action;
import java.io.Serializable;
import org.ovirt.engine.core.compat.Guid;
public class RemoveUnregisteredEntityParameters extends ActionParametersBase implements Serializable {
private static final long serialVersionUID = -149288206548640151L;
private Guid storagePo... | 448 |
2,695 | // Copyright (C) 2013 Massachusetts Institute of Technology, Lincoln Laboratory
// License: Boost Software License See LICENSE.txt for the full license.
// Authors: <NAME> (<EMAIL>)
#ifndef MIT_LL_TOTAL_WoRD_FEATURE_EXTRACTOR_H_
#define MIT_LL_TOTAL_WoRD_FEATURE_EXTRACTOR_H_
#include <map>
#include "word_morphology_... | 3,874 |
634 | <gh_stars>100-1000
/*
* Copyright 2000-2009 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.0
*
* Unless required by app... | 610 |
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 required by ap... | 5,741 |
3,189 | <filename>bp/src/PrivateHeaders/CoreSimulator/NSString-SIMCPUType.h
//
// Generated by class-dump 3.5 (64 bit).
//
// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>.
//
@import Foundation;
@interface NSString (SIMCPUType)
+ (id)sim_stringForCPUType:(int)arg1;
- (int)sim_cpuType;
@end
| 128 |
1,115 | """ Testing for util.py """
import pathlib
from unittest import mock
import pytest
from quilt3 import util
# Constants
TEST_YAML = """
# This is an arbitrary comment solely for the purposes of testing.
c: the speed of light
d: a programming language that almost mattered
# Another arbitrary comment.
... | 1,163 |
634 | """
Simple styling used for matplotlib figures
"""
from matplotlib import pyplot as plt
# Configuration settings to help visibility on small screen / prints
plt.rcParams['xtick.labelsize'] = 20
plt.rcParams['ytick.labelsize'] = 20
plt.rcParams['figure.titlesize'] = 15
plt.rcParams['font.size'] = 20
plt.rcParams['axes... | 445 |
4,962 | <filename>byte-buddy-dep/src/test/java/net/bytebuddy/matcher/VisibilityMatcherTest.java
package net.bytebuddy.matcher;
import net.bytebuddy.description.ByteCodeElement;
import net.bytebuddy.description.type.TypeDescription;
import org.junit.Test;
import org.mockito.Mock;
import static org.hamcrest.CoreMatchers.is;
im... | 552 |
335 | <gh_stars>100-1000
{
"word": "Exploration",
"definitions": [
"The action of exploring an unfamiliar area.",
"The action of searching an area for natural resources.",
"Thorough examination of a subject."
],
"parts-of-speech": "Noun"
} | 104 |
4,879 | <reponame>kudlav/organicmaps
package com.mapswithme.maps.base;
public interface NoConnectionListener
{
void onNoConnectionError();
}
| 43 |
1,346 | <reponame>disrupted/Trakttv.bundle
from oem_framework.models.core.base import BaseMapping, BaseMedia, Model
from oem_framework.models.core.registry import ModelRegistry
| 54 |
766 | <reponame>data-man/libfsm<gh_stars>100-1000
/* generated */
#include "class.h"
static const struct range ranges[] = {
{ 0x0000UL, 0x0040UL },
{ 0x005BUL, 0x0060UL },
{ 0x007BUL, 0x00A9UL },
{ 0x00ABUL, 0x00B9UL },
{ 0x00BBUL, 0x00BFUL },
{ 0x00D7UL, 0x00D7UL },
{ 0x00F7UL, 0x00F7UL },
{ 0x02B9UL, 0x02DFUL },
... | 3,015 |
1,133 | /**
*
* PixelFlow | Copyright (C) 2016 <NAME> - http://thomasdiewald.com
*
* A Processing/Java library for high performance GPU-Computing (GLSL).
* MIT License: https://opensource.org/licenses/MIT
*
*/
package OpticalFlow.OpticalFlow_ExportPFM.Demo_OpticalFlowMovie_PFM;
import java.io.File;
import java.io.... | 3,961 |
994 | /*++
Copyright (c) Microsoft. All rights reserved.
Module Name:
FxTypes.h
Abstract:
This defines the memory tags for the frameworks objects
Author:
Revision History:
--*/
#ifndef _FXTYPES_H
#define _FXTYPES_H
//
// Might be expanded to a ULONG if we need the storage
//
typedef USHORT WDFTYPE;
en... | 2,786 |
1,975 | <reponame>r3yn0ld4/omaha
// Copyright 2007-2010 Google 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 ... | 9,866 |
348 | <filename>docs/data/leg-t1/058/05801232.json
{"nom":"Saint-Benin-d'Azy","circ":"1ère circonscription","dpt":"Nièvre","inscrits":946,"abs":426,"votants":520,"blancs":13,"nuls":1,"exp":506,"res":[{"nuance":"REM","nom":"Mme <NAME>","voix":213},{"nuance":"FN","nom":"Mme <NAME>","voix":84},{"nuance":"UDI","nom":"M. <NAME>",... | 359 |
1,664 | <reponame>liupengpop/ambari<filename>ambari-server/src/main/java/org/apache/ambari/server/controller/ViewInstanceRequest.java<gh_stars>1000+
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional infor... | 2,310 |
2,151 | <filename>third_party/feed/src/src/test/java/com/google/android/libraries/feed/api/scope/FeedStreamScopeTest.java<gh_stars>1000+
// Copyright 2018 The Feed 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... | 2,015 |
511 | #!/usr/bin/python
###########################################################################
#
# Copyright (c) 2017 The Chromium Authors. All rights reserved.
# Copyright 2017 Samsung Electronics All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except... | 3,754 |
852 | #ifndef GaussianZBeamSpotFilter_h
#define GaussianZBeamSpotFilter_h
// Filter to select events with a gaussian Z beam spot shape
// narrower than the original one
// system include files
// user include files
#include "FWCore/Framework/interface/Frameworkfwd.h"
#include "FWCore/Framework/interface/EDFilter.h"
#inclu... | 300 |
9,717 | <gh_stars>1000+
{
"url": "https://github.com/hubro/tree-sitter-yang",
"rev": "8e9d175982afcefa3dac8ca20d40d1643accd2bd",
"date": "2021-07-29T23:07:25+02:00",
"path": "/nix/store/ark7nssjv3jzy1kw9anlma7li5k9zpnb-tree-sitter-yang",
"sha256": "044q9fikaxnrcrnfwc7cfjnwdg6v7jb6rg7mj556iryv0bkv48s1",
"fetchLFS": ... | 215 |
460 | <gh_stars>100-1000
#define ICE_P(x) (sizeof(int) == sizeof(*(1 ? ((void*)((x) * 0l)) : (int*)1)))
int is_a_constant = ICE_P(4);
int is_not_a_constant = ICE_P(is_a_constant);
| 85 |
352 | #include "Atm_controller.hpp"
const char Atm_controller::relOps[8] = "0=!<>-+";
Atm_controller& Atm_controller::begin( bool initialState /* = false */ ) {
// clang-format off
const static state_t state_table[] PROGMEM = {
/* ON_ENTER ON_LOOP ON_EXIT EVT_ON EVT_OFF EVT_INPUT ELSE */
/* ... | 2,461 |
460 | <gh_stars>100-1000
/*
* Copyright 2015-2018 Red Hat, Inc, and individual contributors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.... | 336 |
689 | <filename>test/gtest/ucp/test_ucp_tls.cc<gh_stars>100-1000
/**
* Copyright (C) Mellanox Technologies Ltd. 2001-2021. ALL RIGHTS RESERVED.
*
* See file LICENSE for terms.
*/
#include "ucp_test.h"
#include <ucp/core/ucp_context.h>
class test_ucp_tl : public test_ucp_context {
};
UCS_TEST_P(test_ucp_tl, check_ucp_... | 220 |
335 | <filename>G/Geothermal_adjective.json
{
"word": "Geothermal",
"definitions": [
"Relating to or produced by the internal heat of the earth."
],
"parts-of-speech": "Adjective"
} | 80 |
3,194 | /**
* Copyright (c) 2011-2021, <NAME> 詹波 (<EMAIL>).
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required b... | 882 |
3,274 | package com.ql.util.express.test;
import com.ql.util.express.DefaultContext;
import com.ql.util.express.ExpressRunner;
import org.junit.Assert;
import org.junit.Test;
public class PreloadExpressTest {
@Test
public void preloadExpress() throws Exception {
ExpressRunner runner = new ExpressRunner()... | 335 |
13,006 | /*******************************************************************************
* Copyright (c) 2015-2019 Skymind, Inc.
*
* This program and the accompanying materials are made available under the
* terms of the Apache License, Version 2.0 which is available at
* https://www.apache.org/licenses/LICENSE-2.0.
*
*... | 820 |
1,136 | <filename>utils/__init__.py
from .calculate_score import get_score
from .optimizer import get_optimizer | 32 |
534 | package mekanism.common.upgrade;
import mekanism.common.inventory.slot.BinInventorySlot;
public class BinUpgradeData implements IUpgradeData {
public final boolean redstone;
public final BinInventorySlot binSlot;
public BinUpgradeData(boolean redstone, BinInventorySlot binSlot) {
this.redstone =... | 125 |
12,718 | /*===---- mmintrin.h - Implementation of MMX intrinsics on PowerPC ---------===
*
* Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
* See https://llvm.org/LICENSE.txt for license information.
* SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
*
*===----------------------------... | 19,653 |
675 | <reponame>blico/intellij
/*
* Copyright 2017 The Bazel 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
... | 788 |
22,426 | <gh_stars>1000+
from .hashtable import *
from .separate_chaining_hashtable import *
from .word_pattern import *
from .is_isomorphic import *
from .is_anagram import *
from .longest_palindromic_subsequence import *
| 69 |
3,252 | # Copyright (c) Facebook, Inc. and its affiliates.
__all__ = ["BaseTrainer"]
from .base_trainer import BaseTrainer
| 36 |
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 GPU_IPC_SERVICE_GPU_MEMORY_BUFFER_FACTORY_IO_SURFACE_H_
#define GPU_IPC_SERVICE_GPU_MEMORY_BUFFER_FACTORY_IO_SURFACE_H_
#include <utility>
#incl... | 1,220 |
416 | <filename>contrib/depends/SDKs/MacOSX10.11.sdk/System/Library/Frameworks/GameplayKit.framework/Versions/A/Headers/GKGoal.h<gh_stars>100-1000
//
// GKGoal.h
// GameLogic
//
// Copyright © 2015 Apple. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "GameplayKitBase.h"
NS_ASSUME_NONNULL_BEGIN
@clas... | 1,247 |
5,169 | <gh_stars>1000+
{
"name": "Log4swift",
"version": "0.9.0",
"summary": "A looging library written in swift.",
"description": " Log4swift is a logging library similar in philosophy to log4j.\n It is meant to be :\n\n * very simple to use for simple cases\n ... | 480 |
892 | <filename>advisories/unreviewed/2022/04/GHSA-9fvr-m6jg-h4hx/GHSA-9fvr-m6jg-h4hx.json<gh_stars>100-1000
{
"schema_version": "1.2.0",
"id": "GHSA-9fvr-m6jg-h4hx",
"modified": "2022-04-22T00:00:58Z",
"published": "2022-04-15T00:00:42Z",
"aliases": [
"CVE-2022-22182"
],
"details": "A Cross-site Scripting ... | 761 |
2,389 | <filename>util/src/main/java/io/kubernetes/client/util/Streams.java
/*
Copyright 2020 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.... | 570 |
2,941 | <gh_stars>1000+
package com.amazonaws.cdk.examples;
import software.amazon.awscdk.core.*;
import software.amazon.awscdk.services.ec2.Vpc;
import software.amazon.awscdk.services.ec2.VpcProps;
import software.amazon.awscdk.services.ecs.Cluster;
import software.amazon.awscdk.services.ecs.ClusterProps;
import software.ama... | 743 |
1,830 | <reponame>thirteen13Floor/zeebe
/*
* Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH under
* one or more contributor license agreements. See the NOTICE file distributed
* with this work for additional information regarding copyright ownership.
* Licensed under the Zeebe Community License 1.... | 900 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.