max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
433 | package ir.smartdevelop.eram.showcaseview;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import smartdevelop.ir.eram.showcaseviewlib.GuideView;
import smartdevelop.ir.eram.showcaseviewlib.config.DismissType;
import smartdevelop.ir.eram.showcaseviewlib.config.Grav... | 1,669 |
1,354 | /**
* @file usbhw_SAM3U.h
* @brief
*
* DAPLink Interface Firmware
* Copyright (c) 2009-2016, ARM Limited, All Rights Reserved
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may
* not use this file except in compliance with the License.
* You... | 602 |
402 | <reponame>aira/android-speech<filename>speech/src/main/java/net/gotev/speech/TextToSpeechCallback.java
package net.gotev.speech;
/**
* Contains the methods which are called to notify text to speech progress status.
*
* @author <NAME>
*/
public interface TextToSpeechCallback {
void onStart();
void onComplet... | 113 |
831 | // Copyright 2000-2021 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package org.jetbrains.android.maven;
import com.intellij.openapi.components.PersistentStateComponent;
import com.intellij.openapi.components.State;
import com.intellij.openapi.co... | 1,986 |
1,346 | package com.huanchengfly.tieba.post.activities;
import android.os.Bundle;
import com.huanchengfly.tieba.post.utils.TiebaUtil;
import me.imid.swipebacklayout.lib.app.SwipeBackActivity;
public class OKSignActivity extends SwipeBackActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
... | 160 |
3,181 | /*
* SPDX-FileCopyrightText: 2016, microG Project Team
* SPDX-License-Identifier: Apache-2.0
* Notice: Portions of this file are reproduced from work created and shared by Google and used
* according to terms described in the Creative Commons 4.0 Attribution License.
* See https://developers.google... | 465 |
778 | // | / |
// ' / __| _` | __| _ \ __|
// . \ | ( | | ( |\__ `
// _|\_\_| \__,_|\__|\___/ ____/
// Multi-Physics
//
// License: BSD License
// Kratos default license: kratos/license.txt
//
// Main authors: <NAME>
//
#if !defined(KRATOS_COND_NUMBER_UTILIT... | 2,790 |
675 | <filename>firefly/management/commands/stopservice.py
#coding:utf8
'''
Created on 2013-8-11
@author: lan (www.9miao.com)
'''
import urllib,sys
def execute(*args):
"""
"""
if not args:
masterport =9998
hostname = "localhost"
else:
if len(args)>1:
hostname = args[0]
... | 364 |
1,844 | <reponame>gomez-javier-github/killbill<gh_stars>1000+
/*
* Copyright 2014-2017 Groupon, Inc
* Copyright 2014-2017 The Billing Project, LLC
*
* The Billing Project licenses this file to you under the Apache License, version 2.0
* (the "License"); you may not use this file except in compliance with the
* License. ... | 595 |
2,151 | <filename>third_party/android_tools/sdk/sources/android-25/android/telephony/SignalStrength.java
/*
* Copyright (C) 2012 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 ... | 16,979 |
2,144 | /**
* 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... | 716 |
348 | {"nom":"Arbusigny","circ":"3ème circonscription","dpt":"Haute-Savoie","inscrits":789,"abs":422,"votants":367,"blancs":1,"nuls":1,"exp":365,"res":[{"nuance":"REM","nom":"M. <NAME>","voix":127},{"nuance":"FN","nom":"Mme <NAME>","voix":77},{"nuance":"LR","nom":"<NAME>","voix":69},{"nuance":"FI","nom":"M. <NAME>","voix":41... | 241 |
344 | package pl.droidsonroids.jspoon;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNull;
import java.math.BigDecimal;
import java.util.List;
import org.junit.Before;
import org.junit.Test;
import pl.droidsonroids.jspoon.annotation.Selector;
public class FieldInheritanceTest {
p... | 1,162 |
412 | <reponame>danielbobbert/android-maven-plugin
/*
* Copyright (C) 2014 simpligility technologies 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/licen... | 990 |
477 | <gh_stars>100-1000
//
// HKWMentionsCreationStateMachine.h
// Hakawai
//
// Copyright (c) 2014 LinkedIn Corp. 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://ww... | 1,653 |
340 | <reponame>rasky/cen64
//
// os/posix/cpuid.c
//
// Functions for calling cpuid on x86.
//
// This file is subject to the terms and conditions defined in
// 'LICENSE', which is part of this source code package.
//
#include "os/cpuid.h"
void cen64_cpuid(uint32_t eax, uint32_t ecx, struct cen64_cpuid_t *cpuid) {
__asm... | 372 |
348 | {"nom":"Sérézin-de-la-Tour","circ":"10ème circonscription","dpt":"Isère","inscrits":744,"abs":396,"votants":348,"blancs":19,"nuls":4,"exp":325,"res":[{"nuance":"REM","nom":"<NAME>","voix":209},{"nuance":"FN","nom":"<NAME>","voix":116}]} | 96 |
365 | <gh_stars>100-1000
"""
Basic Object Operations Example
+++++++++++++++++++++++++++++++
This script demonstrates basic operations on object like creating new
object, placing it into a view layer, selecting it and making it active.
"""
import bpy
view_layer = bpy.context.view_layer
# Create new light datablock.
light... | 258 |
1,144 | /*
* #%L
* de.metas.handlingunits.base
* %%
* Copyright (C) 2021 metas GmbH
* %%
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as
* published by the Free Software Foundation, either version 2 of the
* License, or (at your option) a... | 2,316 |
9,782 | /*
* 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 writing, software
* distribut... | 309 |
760 | <reponame>F43nd1r/chaos-monkey-spring-boot
package de.codecentric.spring.boot.chaos.monkey.configuration.toggles;
import static org.junit.jupiter.api.Assertions.*;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
class DefaultChaosTogglesTest {
private DefaultChaosToggles sut;
@Befor... | 202 |
16,989 | <gh_stars>1000+
// 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
//
// Unless ... | 1,331 |
619 | /*
* Author: <NAME> <<EMAIL>>
* Copyright (c) 2017 Intel Corporation.
*
* The MIT License
*
* This program and the accompanying materials are made available under the
* terms of the The MIT License which is available at
* https://opensource.org/licenses/MIT.
*
* SPDX-License-Identifier: MIT
*/
#pragma once
... | 22,071 |
385 | class Debugger {
public:
// ...
/**
* @brief Write frame capture into a file
* @param filename Filename to write the output into. Format is
* autodetected from the extension, supported formats are `*.png`
* and `*.jpg`.
* @param format ... | 384 |
539 | """
Copyright 2022 The Magma Authors.
This source code is licensed under the BSD-style license found in the
LICENSE file in the root directory of this source tree.
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES O... | 1,252 |
3,765 | /**
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.plsql.ast;
import org.junit.Assert;
import org.junit.Test;
import net.sourceforge.pmd.lang.plsql.AbstractPLSQLParserTst;
public class CreateTableTest extends AbstractPLSQLParserTst {
@Test
... | 344 |
4,639 | <reponame>QueoLda/django-oscar
from oscar.apps.dashboard.models import * # noqa
| 33 |
1,336 | /*
* 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 ... | 550 |
1,935 | package shortbread;
import android.app.Activity;
import android.app.Application;
import android.os.Bundle;
import androidx.annotation.NonNull;
class SimpleActivityLifecycleCallbacks implements Application.ActivityLifecycleCallbacks {
@Override
public void onActivityCreated(@NonNull final Activity activity, ... | 288 |
12,278 | <gh_stars>1000+
// Boost.Units - A C++ library for zero-overhead dimensional analysis and
// unit/quantity manipulation and conversion
//
// Copyright (C) 2003-2008 <NAME>
// Copyright (C) 2008 <NAME>
//
// Distributed under the Boost Software License, Version 1.0. (See
// accompanying file LICENSE_1_0.txt or copy at
/... | 523 |
1,921 | def merge_overlaps(intervals):
interval_starts, interval_ends = set(), set()
for start, end in intervals:
interval_starts.add(start)
interval_ends.add(end)
min_start = min(interval_starts)
max_end = max(interval_ends)
current_active = 0
instant_statuses = list([current_active])
... | 502 |
453 | <reponame>The0x539/wasp<filename>libc/newlib/libm/machine/spu/s_fabs.c
#include <math.h>
#include "headers/fabs.h"
double fabs(double x)
{
return _fabs(x);
}
| 80 |
712 | package com.github.kongchen.swagger.docgen;
/**
* @author bratwurzt
*/
public class ResponseMessageOverride {
private int code;
private String message;
private Example example;
public int getCode() {
return code;
}
public void setCode(int code) {
this.code = code;
}
... | 447 |
515 | # Copyright (c) 2011-2021, <NAME>
# License: MIT License
from typing import (
TYPE_CHECKING,
Iterable,
Iterator,
Union,
Sequence,
List,
cast,
)
from ezdxf.lldxf.const import (
DXFStructureError,
DXFBlockInUseError,
DXFTableEntryError,
DXFKeyError,
)
from ezdxf.lldxf import co... | 7,428 |
454 | import json
from datetime import date, datetime, timedelta
import scrapy
from gazette.items import Gazette
from gazette.spiders.base import BaseGazetteSpider
class RsCanoasSpider(BaseGazetteSpider):
TERRITORY_ID = "4304606"
BASE_URL = "https://sistemas.canoas.rs.gov.br/domc/api"
name = "rs_canoas"
s... | 800 |
14,668 | <reponame>karoyqiu/crashpad
// Copyright 2017 The Crashpad 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... | 810 |
376 | <reponame>MassimilianoCaruso/DockerSecurityPlayground
{"networkList":[],"canvasJSON":"<mxGraphModel>\n <root>\n <mxCell id=\"0\"/>\n <mxCell id=\"1\" parent=\"0\"/>\n <mxCell id=\"element_0\" value=\"<h5 id="toptitle" class="no-selection" style="margin:0px;">element_0</h... | 1,047 |
307 | // 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, including without limitation the rights
... | 711 |
480 | <reponame>weicao/galaxysql
/*
* Copyright [2013-2021], Alibaba Group Holding Limited
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
... | 1,200 |
1,306 | <reponame>CanPisces/DexHunter<filename>art/runtime/entrypoints/portable/portable_throw_entrypoints.cc<gh_stars>1000+
/*
* Copyright (C) 2012 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,068 |
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... | 2,495 |
2,496 | /******************************************************************************
* Qwt Widget Library
* Copyright (C) 1997 <NAME>
* Copyright (C) 2002 <NAME>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the Qwt License, Version 1.0
**************************... | 2,748 |
1,040 | /*==========================================================================
*
* Copyright (C) 1995-1999 Microsoft Corporation. All Rights Reserved.
*
* File: color.cpp
*
***************************************************************************/
#include <d3drmwin.h>
#include "viewer.h"
#include <windows.h>
... | 1,552 |
190,993 | /* Copyright 2018 The TensorFlow Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or a... | 476 |
4,879 | <reponame>smartyw/organicmaps
#import <Foundation/Foundation.h>
@class MWMBookmark;
@class MWMTrack;
NS_ASSUME_NONNULL_BEGIN
NS_SWIFT_NAME(BookmarksSection)
@interface MWMBookmarksSection : NSObject
@property(nonatomic, readonly) NSString *sectionName;
@property(nonatomic, readonly, nullable) NSArray<MWMBookmark *>... | 252 |
342 | /*
* Copyright (c) 2012-2016 <NAME>
* Distributed under the GNU GPL v2 with additional terms. For full terms see the file doc/LICENSE.txt
*/
package de.blinkt.openvpn.api;
import android.os.Parcel;
import android.os.Parcelable;
public class APIVpnProfile implements Parcelable {
public static final Parcelable.C... | 663 |
310 | <filename>Projects/Irrlicht/Include/EMaterialTypes.h
// Copyright (C) 2002-2012 <NAME>
// This file is part of the "Irrlicht Engine".
// For conditions of distribution and use, see copyright notice in irrlicht.h
#ifndef __E_MATERIAL_TYPES_H_INCLUDED__
#define __E_MATERIAL_TYPES_H_INCLUDED__
namespace irr
{
namespace ... | 903 |
8,772 | <reponame>dgusoff/cas
package org.apereo.cas.support.claims;
import org.apereo.cas.ws.idp.WSFederationConstants;
import lombok.Getter;
import lombok.RequiredArgsConstructor;
import lombok.SneakyThrows;
import lombok.extern.slf4j.Slf4j;
import lombok.val;
import org.apache.commons.lang3.StringUtils;
import org.apache.... | 1,017 |
1,127 | <filename>src/tests/functional/inference_engine/transformations/control_flow/unroll_tensor_iterator_test.cpp
// Copyright (C) 2018-2022 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#include <gtest/gtest.h>
#include "common_test_utils/test_common.hpp"
#include <string>
#include <memory>
#include <queue>... | 14,637 |
619 | /**
* This file is part of ORB-SLAM2.
*
* Copyright (C) 2014-2016 <NAME> <raulmur at unizar dot es> (University of Zaragoza)
* For more information see <https://github.com/raulmur/ORB_SLAM2>
*
* ORB-SLAM2 is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as p... | 1,056 |
348 | {"nom":"Duault","circ":"4ème circonscription","dpt":"Côtes-d'Armor","inscrits":265,"abs":110,"votants":155,"blancs":5,"nuls":4,"exp":146,"res":[{"nuance":"SOC","nom":"<NAME>","voix":78},{"nuance":"REM","nom":"<NAME>","voix":68}]} | 93 |
903 | #include "../../src/gui/embedded/qkbddriverfactory_qws.h"
| 26 |
387 | <gh_stars>100-1000
#ifndef __SETTIMER__H
#define __SETTIMER__H
#include "lock.h"
#include "carControl.h"
volatile int interruptCounter;
int totalInterruptCounter;
int timeCount = 0;
hw_timer_t * timer = NULL;
portMUX_TYPE timerMux = portMUX_INITIALIZER_UNLOCKED;
void IRAM_ATTR onTimer() {
portENTER_CRITICAL_ISR... | 480 |
3,027 | #!/usr/bin/env python
import sys
import asyncio
import logging
import unittest
import conf
from os.path import join, realpath
from hummingbot.connector.exchange.hitbtc.hitbtc_user_stream_tracker import HitbtcUserStreamTracker
from hummingbot.connector.exchange.hitbtc.hitbtc_auth import HitbtcAuth
from hummingbot.core... | 551 |
6,660 | <filename>office-plugin/windows-office/program/wizards/text/TextFieldHandler.py
#
# This file is part of the LibreOffice project.
#
# 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... | 1,996 |
310 | <reponame>dreeves/usesthis
{
"name": "Hexels",
"description": "A pixel image editor.",
"url": "https://www.marmoset.co/hexels"
} | 57 |
326 | <reponame>bihell/Dice<filename>dice-server/blog/src/main/java/com/bihell/dice/blog/model/system/Log.java
package com.bihell.dice.blog.model.system;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;
impo... | 483 |
1,144 | <reponame>dram/metasfresh
/**
* Contains logic related to the generation and handling of <code>DocumentNo</code>s.
*/
package de.metas.document.sequence; | 47 |
5,798 | # Copyright 2018 Google LLC. 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 or a... | 4,916 |
1,175 | <gh_stars>1000+
# This file was *autogenerated* from the file server.sage
from sage.all_cmdline import * # import sage library
_sage_const_3 = Integer(3); _sage_const_2 = Integer(2); _sage_const_1 = Integer(1); _sage_const_200 = Integer(200); _sage_const_5 = Integer(5); _sage_const_4 = Integer(4); _sage_const_8192 ... | 2,693 |
319 | //
// ObjCSimpleTypes.h
// NativeScript
//
// Created by <NAME> on 10/16/14.
// Copyright (c) 2014 Telerik. All rights reserved.
//
#ifndef __NativeScript__ObjCSimpleTypes__
#define __NativeScript__ObjCSimpleTypes__
#include "FFIType.h"
namespace NativeScript {
extern const FFITypeMethodTable objCInstancetypeTyp... | 193 |
1,350 | <gh_stars>1000+
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.datafactory.models;
import com.azure.core.annotation.Fluent;
import com.azure.core.util.logging.ClientLogger;
im... | 1,295 |
692 | import os
import shutil
from pathlib import Path
HOME = Path.home()
RESOURCES_PATH = os.path.join(HOME, '.qt_material')
########################################################################
class ResourseGenerator:
""""""
# ----------------------------------------------------------------------
def __... | 1,097 |
4,646 | <reponame>Recaust/Launcher3
/*
* 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 may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
... | 3,255 |
1,473 | <reponame>ljmf00/autopsy<gh_stars>1000+
/*
* Central Repository
*
* Copyright 2020 Basis Technology Corp.
* Contact: carrier <at> sleuthkit <dot> org
*
* 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 ... | 3,522 |
407 | <gh_stars>100-1000
package com.alibaba.tesla.authproxy.web;
import com.alibaba.tesla.authproxy.BaseController;
import com.alibaba.tesla.authproxy.model.AppDO;
import com.alibaba.tesla.authproxy.model.AppExtDO;
import com.alibaba.tesla.authproxy.service.AppExtService;
import com.alibaba.tesla.authproxy.service.TeslaApp... | 1,425 |
561 | <filename>python/GafferImageUI/LUTUI.py
##########################################################################
#
# Copyright (c) 2015, Image Engine Design Inc. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following con... | 1,068 |
7,471 | <reponame>BadSugar/DearPyGui<filename>DearPyGui/src/ui/AppItems/fonts/mvFontRangeHint.h
#pragma once
#include "mvItemRegistry.h"
namespace Marvel {
class mvFontRangeHint : public mvAppItem
{
public:
explicit mvFontRangeHint(mvUUID uuid);
void draw(ImDrawList* drawlist, float x, float y... | 244 |
16,761 | <filename>spring-cloud-alibaba-starters/spring-cloud-starter-alibaba-nacos-discovery/src/main/java/com/alibaba/cloud/nacos/NacosServiceManager.java<gh_stars>1000+
/*
* Copyright 2013-2018 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file ... | 1,495 |
14,668 | // Copyright 2017 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/modules/background_fetch/background_fetch_manager.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_... | 2,593 |
1,144 | <reponame>dram/metasfresh<filename>backend/de.metas.servicerepair.webui/src/main/java/de/metas/servicerepair/customerreturns/process/HUsToReturnViewBasedProcess.java<gh_stars>1000+
/*
* #%L
* de.metas.servicerepair.webui
* %%
* Copyright (C) 2021 metas GmbH
* %%
* This program is free software: you can redistribu... | 771 |
369 | /* ---------------------------------------------------------------------------- */
/* Atmel Microcontroller Software Support */
/* SAM Software Package License */
/* --------------------------------------------------------------------... | 33,267 |
677 | // Copyright 2017 The Lynx Authors. All rights reserved.
#include "base/string/string_number_convert.h"
#include "gtest/gtest.h"
namespace base{
TEST(StringNumberConvertTest, StringToDoubleTest) {
double num1 = 0;
EXPECT_TRUE(StringToDouble("123.456", num1));
EXPECT_EQ(123.456, num1);
EXPECT_FALSE(Strin... | 369 |
501 | #!/usr/bin/env python
#
# Author: <NAME> <<EMAIL>>
#
from pyscf import gto
from pyscf import scf
from pyscf import soscf
'''
Second order SCF algorithm by decorating the scf object with .newton method.
Second order SCF method need orthonormal orbitals and the corresponding
occupancy as the initial guess.
'''
mol = ... | 908 |
3,882 | """Tests for constant_folding.py."""
import textwrap
from pytype import blocks
from pytype import config
from pytype import constant_folding
from pytype import context
from pytype import errors
from pytype import load_pytd
from pytype import state as frame_state
from pytype.abstract import abstract
from pytype.pyc im... | 6,292 |
971 | from ..util.common import expect_command
from ..util.test_server import TestServer
from . import constants
class TestOLTPBench(TestServer):
"""
TestOLTPBench will build OLTPBench in the pre-suite.
All other behavior is identical to TestServer.
"""
def __init__(self, args):
super().__init_... | 558 |
346 | # Copyright 2017 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 applicable law or agreed to in writing,... | 3,271 |
2,494 | <gh_stars>1000+
/* 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/. */
/*
* pkix_pl_httpdefaultclient.h
*
* HTTPDefaultClient Object Type Definition
*
*/
#ifndef _P... | 1,743 |
787 | {
"blurb": "Search a file for lines matching a regular expression pattern. Return the line number and contents of each matching line.",
"authors": [
"ZapAnton"
],
"contributors": [
"AndrewKvalheim",
"coriolinus",
"cwhakes",
"efx",
"ErikSchierboom",
"k33nice",
"lutostag",
"pet... | 298 |
782 | <reponame>VickyZengg/MediaSDK
/******************************************************************************\
Copyright (c) 2017-2019, Intel Corporation
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,594 |
475 | [
{
"outputFile": "babel/file1.js",
"inputFile": "babel/file1.jsx",
"includeInProject": true,
"options": {
"sourceMap": true
}
}
] | 80 |
310 | package com.ilscipio.scipio.ce.webapp.ftl.template;
import java.io.IOException;
import java.io.StringWriter;
import java.io.Writer;
import java.util.HashMap;
import java.util.Map;
import org.ofbiz.base.util.Debug;
import org.ofbiz.base.util.collections.MapStack;
import org.ofbiz.base.util.collections.RenderMapStack;
... | 7,485 |
317 | /*
$Id$
Hartree.c - 6/9/95
author - <NAME>
This file contains a routine for finding the hartree
potential and energy of a density n = rho_up+rho_down, defined on
a log grid.
*/
#include <stdio.h>
#include "loggrid.h"
#include "pred_cor.h"
#include "hartree.h"
/******************... | 1,341 |
12,718 | <gh_stars>1000+
/**
* This file is part of the mingw-w64 runtime package.
* No warranty is given; refer to the file DISCLAIMER within this package.
*/
#ifndef __FLTUSER_H__
#define __FLTUSER_H__
#include <winapifamily.h>
#include <sdkddkver.h>
#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)
#include <fltus... | 1,973 |
322 | <reponame>qingwen220/incubator-eagle
/*
* 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, Ver... | 1,033 |
30,785 | package jadx.api;
import java.util.Map;
import jadx.api.impl.SimpleCodeInfo;
public interface ICodeInfo {
ICodeInfo EMPTY = new SimpleCodeInfo("");
String getCodeStr();
Map<Integer, Integer> getLineMapping();
Map<CodePosition, Object> getAnnotations();
}
| 89 |
1,510 | <reponame>julien-faye/drill
/*
* 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 ... | 990 |
8,437 | {
"expression": ["is-supported-script", ["get", "x"]],
"description": "'is-supported-script' always returns true when run without global context providing an 'isSupportedScript' function (as in the expression tests). The 'is-supported-script' render tests provide the necessary global context and exercise the functi... | 263 |
675 | #include "qgraphics_connect_item.h"
#ifdef ECHO_EDITOR_MODE
namespace Procedural
{
QGraphicsConnectItem::QGraphicsConnectItem()
: QGraphicsPathItem()
{
setZValue(-10.f);
}
QGraphicsConnectItem::~QGraphicsConnectItem()
{
}
void QGraphicsConnectItem::set(const QPointF& startPos, const QPo... | 939 |
669 | from .calibrate import CalibraterBase, CalibrationDataReader, CalibrationMethod, MinMaxCalibrater, create_calibrator
from .qdq_quantizer import QDQQuantizer
from .quant_utils import QuantFormat, QuantType, write_calibration_table
from .quantize import QuantizationMode, quantize_dynamic, quantize_static
| 88 |
2,443 | /*
* 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 ... | 866 |
312 | <filename>src/gui/guiTypes_Binding.h
//-----------------------------------------------------------------------------
// Copyright (c) 2013 GarageGames, LLC
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to
// de... | 4,954 |
839 | {
"resources":{
"includes":[
{"pattern":"\\QMETA-INF/cxf/bus-extensions.txt\\E"},
{"pattern":"\\QMETA-INF/io.netty.versions.properties\\E"},
{"pattern":"\\QMETA-INF/mailcap.default\\E"},
{"pattern":"\\QMETA-INF/services/javax.xml.bind.JAXBContextFactory\\E"},
{"pattern":"\\QMETA-INF/services... | 1,319 |
5,964 |
/*
* Copyright 2006 The Android Open Source Project
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#ifndef SkSVGRadialGradient_DEFINED
#define SkSVGRadialGradient_DEFINED
#include "SkSVGGradient.h"
class SkSVGRadialGradient : public SkSVGGradient {
... | 254 |
5,169 | {
"name": "ProxicloudSDK",
"version": "1.0.3",
"summary": "This SDK enables a plethora of proximity-based functionalities. Communicate , advertise and analyze with proxi.cloud",
"description": "This SDK enables a plethora of proximity-based functionalities. Communicate , advertise and analyze with proxi.cloud",... | 522 |
1,104 | <gh_stars>1000+
package com.alipay.tiansuan.solrplugin;
import org.apache.lucene.index.IndexReader;
import org.apache.lucene.index.Term;
import org.apache.lucene.search.FilteredTermEnum;
import org.apache.lucene.search.MultiTermQuery;
import org.apache.lucene.util.ToStringUtils;
import java.io.IOException;
import java... | 1,061 |
6,497 | package com.sohu.cache.task.constant;
/**
* Created by chenshi on 2020/5/18.
*/
public enum MachineSyncEnum {
NO_CHANGE(0, "不执行同步任务"),
SYNC_EXECUTING(4, "同步任务执行中..."),
SYNC_SUCCESS(1, "同步任务成功"),
SYNC_ABORT(2, "同步任务中断"),
SYNC_ERROR(3, "同步任务异常");
private int value;
private String desc;
... | 293 |
543 | package com.riiablo.engine.server.event;
import com.artemis.annotations.EntityId;
import net.mostlyoriginal.api.event.common.Event;
public class NpcInteractionEvent implements Event {
@EntityId
public int entityId;
@EntityId
public int npcId;
public static NpcInteractionEvent obatin(int entityId, int npc... | 159 |
3,428 | {"id":"00407","group":"spam-1","checksum":{"type":"MD5","value":"7a447442b07fa08de0b69e907ce3ca53"},"text":"From <EMAIL> Sat Sep 21 14:40:49 2002\nReturn-Path: <<EMAIL>>\nDelivered-To: zzzz@localhost.spamassassin.taint.org\nReceived: from localhost (jalapeno [127.0.0.1])\n\tby zzzzason.org (Postfix) with ESMTP id 9093... | 1,352 |
2,206 | /*
* ******************************************************************************
* *
* *
* * 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.
* *
* * See the NO... | 2,940 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.