max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
1,134 | <gh_stars>1000+
# -*- coding: utf-8 -*-
import os
import torch
from huggingface_hub import hf_hub_url, cached_download
MODELS = {
'unet_effnetb5': dict(
encoder_name='efficientnet-b5',
repo_id='sberbank-ai/rudalle-Emojich',
filename='pytorch_model_v2.bin',
classes=2,
),
}
de... | 573 |
575 | <reponame>iridium-browser/iridium-browser
// Copyright 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_BROWSER_CHROMEOS_POWER_IDLE_ACTION_WARNING_DIALOG_VIEW_H_
#define CHROME_BROWSER_CHROMEOS_POWER_I... | 505 |
3,336 | <gh_stars>1000+
{
"properties": {
"type": "AzureBlob",
"typeProperties": {
"folderPath": "entitylogs/entitylogs.csv",
"format": {
"type": "TextFormat"
}
},
"linkedServiceName": {
"referenceName": "foo1",
"type": "LinkedServiceReference"
}
}
}
| 146 |
5,208 | <reponame>NilsRenaud/vert.x
/*
* Copyright (c) 2011-2019 Contributors to the Eclipse Foundation
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License 2.0 which is available at
* http://www.eclipse.org/legal/epl-2.0, or the Apache License, Version 2.0
* ... | 325 |
14,668 | // Copyright 2019 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "third_party/blink/renderer/modules/content_index/content_index_event.h"
#include "third_party/blink/renderer/bindings/modules/v8/v8_extendable_... | 311 |
2,329 | /*
* Copyright 2010-2012 VMware and 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicabl... | 8,755 |
2,612 | import sublime
from .common import all_headings
from ..view import MdeTextCommand
class MdeGotoNextHeadingCommand(MdeTextCommand):
def run(self, edit, same_level=True):
view = self.view
headings = tuple(all_headings(view))
new_sel = []
for sel in view.sel():
section_le... | 1,223 |
443 | <filename>async/performance/libcoro/main.cpp
#include <sys/time.h>
#include <stdio.h>
#include <async/Fiber.h>
#include <async/Application.h>
#define CORO_ASM 1
extern "C" {
#include <async/fiber/libcoro/coro.h>
}
coro_context* testContext = (coro_context*)malloc(sizeof(coro_context));
coro_context* mainCont... | 522 |
1,022 | <reponame>CxZMoE/oto
/*
* Copyright 2019 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
*
* Unles... | 767 |
335 | <reponame>Safal08/Hacktoberfest-1<filename>B/Bab_noun.json<gh_stars>100-1000
{
"word": "Bab",
"definitions": [
"A baby or young child.",
"Used as a friendly form of address."
],
"parts-of-speech": "Noun"
} | 112 |
3,651 | package com.orientechnologies.orient.server.distributed.operation;
import com.orientechnologies.common.log.OLogManager;
import com.orientechnologies.orient.core.command.OCommandDistributedReplicateRequest;
import com.orientechnologies.orient.core.config.OGlobalConfiguration;
import com.orientechnologies.orient.core.db... | 1,950 |
521 | <gh_stars>100-1000
# Copyright (c) 2001, Stanford University
# All rights reserved.
#
# See the file LICENSE.txt for information on redistributing this software.
from __future__ import print_function
import sys
import apiutil
apiutil.CopyrightDef()
#print "LIBRARY VBoxOGL"
#print "DESCRIPTION \"\"" - warning LNK401... | 4,130 |
302 | from __future__ import division
import os
os.environ['TF_CPP_MIN_LOG_LEVEL'] = '2'
import sys
from shutil import copyfile
# tf
import numpy as np
import tensorflow as tf
import torch
# save result
import face_alignment
import cv2
import PIL.Image as pil
import matplotlib.pyplot as plt
import trimesh
# path
_curr_pa... | 5,142 |
678 | {
"name": "frida-gadget-ios",
"version": "0.0.0",
"description": "Gadget for iOS",
"main": "index.js",
"scripts": {
"install": "node download.js"
},
"repository": {
"type": "git",
"url": "git+https://github.com/frida/frida.git"
},
"keywords": [
"instrumentation",
"hooking",
"io... | 240 |
1,299 | /*
* 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 ... | 4,374 |
316 | """
Install Python wrappers to Clang:
conda install -c conda-forge python-clang
"""
from clang.cindex import Index, CursorKind, TypeKind
import sys
sys.path.append("../..")
from lfortran.asr import asr
from lfortran.asr.asr_check import verify_asr
from lfortran.asr.asr_to_ast import asr_to_ast
from lfortran.ast.a... | 901 |
2,094 | ////////////////////////////////////////////////////////////////////////////////////////////////////
//
// Project: Embedded Learning Library (ELL)
// File: ModelOptimizerOptions.h (model)
// Authors: <NAME>
//
////////////////////////////////////////////////////////////////////////////////////////////////////... | 1,830 |
455 | <reponame>wasimakh2/keras-text
from token_model import TokenModelFactory
from sentence_model import SentenceModelFactory
from sequence_encoders import *
| 43 |
3,227 |
/*!
\ingroup PkgKernelDKernelConcept
\cgalConcept
\cgalRefines `AdaptableFunctor` (with one argument)
*/
class Kernel_d::Construct_max_vertex_d {
public:
/// \name Operations
/// A model of this concept must provide:
/// @{
/*!
returns the lexicographically largest vertex of `ib`.
*/
Kernel_d::Point_d operator()(c... | 134 |
1,033 | package graphql.kickstart.autoconfigure.annotations.test.error.multiple.subscription;
import graphql.kickstart.annotations.GraphQLQueryResolver;
@GraphQLQueryResolver
public class TestQuery {}
| 56 |
1,143 | package com.twitter.common.io;
import java.io.File;
import java.io.IOException;
import com.google.common.io.Files;
import com.google.common.testing.TearDown;
import com.google.common.testing.junit4.JUnitAsserts;
import com.google.common.testing.junit4.TearDownTestCase;
import org.junit.Before;
import org.junit.Test;... | 1,052 |
438 | /*
* Copyright (C) 2017 Haoge
*
* 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... | 1,040 |
7,409 | # Generated by Django 3.0.6 on 2020-08-22 18:04
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("posthog", "0080_update_dashboard_funnel_filters"),
]
operations = [
migrations.AddField(model_name="person", name="is_identified", field=mod... | 134 |
2,542 | // ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
// ------------------------------------------------------------
#pragma once
namespace Servic... | 464 |
1,664 | <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 information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* ... | 4,432 |
1,350 | <filename>sdk/databricks/azure-resourcemanager-databricks/src/main/java/com/azure/resourcemanager/databricks/models/PrivateEndpointConnections.java
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azu... | 2,260 |
1,131 | //
// 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 ... | 618 |
1,210 | <filename>Sieve-of-Eratosthenes.cpp
#include <cstdio>
#include <cstring>
#define MAX 100
using namespace std;
bool isprime[MAX + 1];
int main()
{
memset(isprime, true, sizeof(isprime));
for (int i = 2; i * i <= MAX; i++)
{
if (isprime[i] == true)
{
for (int j = i * i; j <= MAX; j += i)
{
isprime[j]... | 225 |
347 | package org.ovirt.engine.core.common.validation;
import static org.hamcrest.CoreMatchers.is;
import static org.hamcrest.MatcherAssert.assertThat;
import java.util.Set;
import javax.validation.ConstraintViolation;
import javax.validation.Validation;
import javax.validation.Validator;
import org.junit.jupiter.api.Tes... | 635 |
1,337 | /*
* Copyright (c) 2008-2019 Haulmont. All rights reserved.
* Use is subject to license terms, see http://www.cuba-platform.com/commercial-software-license for details.
*/
package com.haulmont.cuba.core.global;
import org.apache.commons.lang3.LocaleUtils;
import org.apache.commons.lang3.StringUtils;
import java.u... | 546 |
852 | <filename>CondFormats/EcalObjects/src/T_EventSetup_EcalDCSTowerStatus.cc
// user include files
#include "CondFormats/EcalObjects/interface/EcalDCSTowerStatus.h"
#include "FWCore/Utilities/interface/typelookup.h"
TYPELOOKUP_DATA_REG(EcalDCSTowerStatus);
| 95 |
407 | //
// BNDBindingListViewController.h
// BINDPlugin
//
// Created by <NAME> on 29/11/2014.
// Copyright (c) 2014 <NAME>. All rights reserved.
//
#import <Cocoa/Cocoa.h>
#import "BIND.h"
@interface BNDBindingListViewController : BNDViewController
+ (instancetype)presentWithXIBURL:(NSURL *)xibURL;
@end
| 120 |
404 | <reponame>techkey/PTVS<gh_stars>100-1000
import sys
print(sys.version_info[:2])
| 35 |
66,635 | # coding: utf-8
from __future__ import unicode_literals
import random
import re
import string
import time
from .common import InfoExtractor
from ..utils import (
ExtractorError,
get_element_by_class,
js_to_json,
str_or_none,
strip_jsonp,
)
class YoukuIE(InfoExtractor):
IE_NAME = 'youku'
... | 6,257 |
623 | <gh_stars>100-1000
package com.netease.nim.uikit.support.glide;
import android.content.Context;
import android.graphics.Bitmap;
import android.text.TextUtils;
import com.bumptech.glide.Glide;
import com.bumptech.glide.request.RequestOptions;
import com.netease.nim.uikit.api.NimUIKit;
import com.netease.nim.uikit.comm... | 2,138 |
745 | {
"project":"continuable",
"target":"continuable.hpp",
"sources":[
"include/continuable/continuable.hpp"
],
"include_paths":[
"include",
"dep/function2/function2/include"
]
}
| 93 |
1,481 | package apoc;
import apoc.load.Jdbc;
import apoc.util.Util;
import org.neo4j.annotations.service.ServiceProvider;
import org.neo4j.internal.helpers.collection.Iterators;
import org.neo4j.kernel.extension.ExtensionFactory;
import org.neo4j.kernel.extension.ExtensionType;
import org.neo4j.kernel.extension.context.Extens... | 710 |
839 | /**
* 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 m... | 1,527 |
17,085 | # Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by app... | 873 |
731 | <gh_stars>100-1000
import struct
from unittest import mock
import pytest
from aiokafka.record.legacy_records import (
LegacyRecordBatch, LegacyRecordBatchBuilder
)
from aiokafka.errors import CorruptRecordException
@pytest.mark.parametrize("magic", [0, 1])
@pytest.mark.parametrize("key,value,checksum", [
(b"... | 3,675 |
825 | #pragma once
#include "RegistryKey.h"
struct Hive {
std::wstring Key;
std::wstring Path;
};
struct RegistryItem {
CString Name;
mutable CString Value;
mutable DWORD Type;
mutable DWORD Size{ 0 };
FILETIME TimeStamp{};
bool Key : 1 { false };
};
struct RemoteRegistry {
HKEY hLocal, hUsers;
CString Computer... | 1,028 |
1,463 | //
// Copyright 2013 Pixar
//
// Licensed under the Apache License, Version 2.0 (the "Apache License")
// with the following modification; you may not use this file except in
// compliance with the Apache License and the following modification to it:
// Section 6. Trademarks. is deleted and replaced with:
//
... | 1,464 |
5,964 | /*
* Copyright (C) 2013 Google Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditio... | 1,288 |
2,659 | /*
* Copyright 2021 4Paradigm
*
* 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,031 |
1,093 | /*
* Copyright 2016-2020 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | 513 |
1,738 | <filename>dev/Gems/Vegetation/Code/Source/Editor/EditorBlockerComponent.h
/*
* 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 softwar... | 583 |
335 | {
"word": "Manoeuvre",
"definitions": [
"Move skilfully or carefully.",
"Carefully guide or manipulate (someone or something) in order to achieve an end.",
"Manipulate a situation to achieve an end."
],
"parts-of-speech": "Verb"
} | 105 |
371 | package com.liorkn.elasticsearch;
import com.liorkn.elasticsearch.plugin.VectorScoringPlugin;
import org.apache.commons.io.FileUtils;
import org.elasticsearch.client.Client;
import org.elasticsearch.common.settings.Settings;
import org.elasticsearch.http.BindHttpException;
import org.elasticsearch.index.reindex.Reinde... | 1,645 |
371 | <gh_stars>100-1000
# -*- coding: utf-8 -*-
"""
test_django-watchman
------------
Tests for `django-watchman` decorators module.
"""
from __future__ import unicode_literals
import logging
import unittest
from django.urls import reverse
from django.test.client import Client
from unittest import mock
from watchman ... | 2,423 |
1,144 | <filename>hardware/bt/ampak/btusb/src/btusb_lite_l2c.c
/*
*
* btusb_lite_l2c.c
*
*
*
* Copyright (C) 2011-2013 Broadcom Corporation.
*
*
*
* This software is licensed under the terms of the GNU General Public License,
* version 2, as published by the Free Software Foundation (the "GPL"), and may
* be copied... | 3,967 |
519 | /*
* Copyright (c) 2020 Morwenn
* SPDX-License-Identifier: MIT
*/
#include <cmath>
// Simple statistics functions
template<typename Iterable>
auto average(const Iterable& values)
-> double
{
double avg = 0.0;
for (auto value : values) {
avg += value / double(values.size());
}
return avg... | 231 |
460 | #include "../../../src/script/bridge/qscriptglobalobject_p.h"
| 23 |
646 | /*
Copyright (c) 2017 TOSHIBA Digital Solutions Corporation
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation, either version 3 of the
License, or (at your option) any later version.
This... | 4,162 |
1,802 | // Copyright 2015 <NAME>.
//
// Author: <NAME> (<EMAIL>)
//
// 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, mo... | 1,403 |
1,372 | <filename>libs/system/include/mrpt/system/crc.h
/* +------------------------------------------------------------------------+
| Mobile Robot Programming Toolkit (MRPT) |
| https://www.mrpt.org/ |
| ... | 652 |
541 | <reponame>michelcareau/DSpace
/**
* The contents of this file are subject to the license and copyright
* detailed in the LICENSE and NOTICE files at the root of the source
* tree and available online at
*
* http://www.dspace.org/license/
*/
package org.dspace.app.rest.matcher;
import static com.jayway.jsonpath.m... | 1,188 |
1,131 | // 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... | 1,520 |
2,161 | <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 information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* ... | 1,277 |
852 | import FWCore.ParameterSet.Config as cms
process = cms.Process("GeometryInfo")
# minimum of logs
process.MessageLogger = cms.Service("MessageLogger",
cerr = cms.untracked.PSet(
enable = cms.untracked.bool(False)
),
cout = cms.untracked.PSet(
enable = cms.untracked.bool(True),
thresh... | 628 |
1,444 | <filename>Mage/src/main/java/mage/abilities/effects/common/continuous/BecomesCreatureAttachedWithActivatedAbilityOrSpellEffect.java
package mage.abilities.effects.common.continuous;
import mage.abilities.Ability;
import mage.abilities.effects.OneShotEffect;
import mage.constants.Duration;
import mage.constants.Outcome... | 664 |
543 | <reponame>SaratAdiraj/Bytecoder
/*
* Copyright (c) 2018, 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 on... | 3,414 |
307 | <filename>code/lab/dialogs/weapon_classes.cpp
#include "lab/dialogs/weapon_classes.h"
#include "lab/labv2_internal.h"
#include "weapon/weapon.h"
void changeWeapon(Tree* caller) {
auto class_index = caller->GetSelectedItem()->GetData();
getLabManager()->changeDisplayedObject(LabMode::Weapon, class_index);
}
void We... | 824 |
376 | package net.zhuoweizhang.boardwalk;
import android.app.*;
import android.content.*;
import android.os.*;
import java.util.*;
public class NerdyStuffActivity extends Activity {
protected void onCreate(Bundle icicle) {
super.onCreate(icicle);
}
public static class Bench {
public long lastMillis = 0;
public v... | 175 |
3,765 | <gh_stars>1000+
/**
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.java.metrics;
import net.sourceforge.pmd.lang.ast.Node;
import net.sourceforge.pmd.lang.metrics.AbstractMetric;
/**
* Base class for metrics. Metric objects encapsulate the compu... | 171 |
1,197 | /**
* Copyright (c) 2015, 2021, ControlsFX
* 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 ... | 2,150 |
992 | /* -*- Mode: C++; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */
/*
* Copyright 2010 Couchbase, 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
*
* h... | 1,759 |
3,539 | <filename>lib/drivers/led/led-gpio.c
/*
* Generic GPIO led
*
* Copyright (C) 2019 - 2020 <NAME> <<EMAIL>>
*
* 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, includi... | 1,414 |
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... | 6,301 |
1,473 | /*
* Copyright 2016 Naver Corp.
*
* 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 ... | 779 |
2,338 | <reponame>medismailben/llvm-project
//===----------------------------------------------------------------------===//
//
// 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... | 249 |
914 | <filename>app/src/main/java/io/github/kexanie/mathviewtest/MainActivity.java
package io.github.kexanie.mathviewtest;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.Menu;
import android.view.MenuItem;
import android.widget.Toast;
import io.github.kexanie.library.MathView... | 1,885 |
1,824 | <reponame>LouisRenWeiWei/BlockCanaryEx
//copy form javassist
package com.letv.sarrsdesktop.blockcanaryex;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStream;
import java.net.MalformedURLException;
import java.net.URL;
impor... | 628 |
3,680 | <filename>pxr/base/gf/wrapRange3d.cpp<gh_stars>1000+
//
// Copyright 2016 Pixar
//
// Licensed under the Apache License, Version 2.0 (the "Apache License")
// with the following modification; you may not use this file except in
// compliance with the Apache License and the following modification to it:
// Section 6. Tr... | 2,278 |
378 | <reponame>puneethps/tomee
/*
* 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
*... | 729 |
45,293 | {
"1": {
"pos": {
"1": [
{
"specVersion": "0.1-544",
"casesNumber": 3,
"description": "Primary constructor for nested class with mutable property constructor parameter",
"path": "compiler/tests-spec/testData/diagnostics/linked/declarations/classifier-declarati... | 747 |
357 | <gh_stars>100-1000
/*
*
* Copyright (c) 2012-2015 VMware, Inc. 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
*
... | 1,473 |
421 | <reponame>hamarb123/dotnet-api-docs<filename>samples/snippets/cpp/VS_Snippets_CLR/CodeStatementCollectionExample/CPP/class1.cpp
#using <System.dll>
using namespace System;
using namespace System::CodeDom;
namespace CodeStatementCollectionExample
{
public ref class Class1
{
public:
Class1(){}
... | 1,226 |
1,504 | <gh_stars>1000+
import socket
from itchatmp.exceptions import EnvironmentError
PYCRYPTO_WARNING = '''
pycrypto is not installed correctly.
* You may choose to install cryptography instead
* If you are using OSX or linux
- you may uninstall and reinstall it use sudo
* If you are using Windows
- you m... | 509 |
959 | package com.andreabaccega.formedittextvalidator;
public class AlphaValidator extends RegexpValidator {
public AlphaValidator(String message) {
super(message, "[A-z\u00C0-\u00ff \\./-\\?]*");
}
}
| 83 |
4,375 | <filename>txlcn-tc/src/main/java/com/codingapi/txlcn/tc/event/transaction/TransactionEventContext.java
package com.codingapi.txlcn.tc.event.transaction;
import com.codingapi.txlcn.tc.info.TransactionInfo;
import java.util.List;
public class TransactionEventContext implements TransactionEventListener {
private Li... | 531 |
776 | <reponame>Diffblue-benchmarks/actframework
package act.cli;
/*-
* #%L
* ACT Framework
* %%
* Copyright (C) 2014 - 2017 ActFramework
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at... | 1,080 |
1,073 | <reponame>Cwc-Test/CpcdosOS2.1<filename>CONTRIB/LLVM/src/lib/Tg/NVPTX/MCTargetDesc/NVPTXBaseInfo.h
//===-- NVPTXBaseInfo.h - Top-level definitions for NVPTX -------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// Li... | 1,577 |
407 | package com.alibaba.tesla.appmanager.server.service.rtappinstance;
import com.alibaba.tesla.appmanager.common.pagination.Pagination;
import com.alibaba.tesla.appmanager.server.repository.condition.RtAppInstanceHistoryQueryCondition;
import com.alibaba.tesla.appmanager.server.repository.condition.RtAppInstanceQueryCond... | 1,447 |
626 | <filename>core/src/test/java/org/jsmart/zerocode/core/engine/assertion/FieldAssertionMatcherTest.java<gh_stars>100-1000
package org.jsmart.zerocode.core.engine.assertion;
import org.junit.Before;
import org.junit.Test;
import static org.hamcrest.CoreMatchers.is;
import static org.hamcrest.MatcherAssert.assertThat;
p... | 422 |
1,144 | package de.metas.handlingunits.attributes.impl;
/*
* #%L
* de.metas.handlingunits.base
* %%
* Copyright (C) 2015 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 v... | 1,812 |
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.mediaservices;
import com.azure.core.util.Context;
/** Samples for Transforms Get. */
public final class Transf... | 268 |
3,459 | class EmuRealSyncher
{
public:
EmuRealSyncher();
~EmuRealSyncher()
{
}
void SetEmuClock(int64 EmuClock_arg);
bool NeedFrameSkip(void);
void Sync();
void AddEmuTime(const int64 zetime, bool frame_end = true);
void SetETtoRT(void);
private:
int64 EmuClock;
int64 EmuTime;
int64 ForcedCatchupTH;
int64... | 162 |
474 |
#ifndef __EVILS_LIVE_API_H__
#define __EVILS_LIVE_API_H__
#ifdef __cplusplus
extern "C" {
#endif
int evils_live_init();
/* */
int evils_live_create_push_stream(int protocol);
/* push stream parameters */
int evils_live_stream_config(int index, int width, int height, int framerate, int bitrate, bool forcedI);
/* p... | 340 |
2,151 | /*
* Copyright 2018 The WebRTC Project Authors. All rights reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All contributing ... | 1,067 |
334 | def macro(name):
'''
Jinja2 macro list column formatter.
:param name:
Macro name in the current template
'''
def inner(view, context, model, column):
m = context.resolve(name)
if not m:
return m
return m(model=model, column=column)
retu... | 148 |
326 | <filename>setup.py<gh_stars>100-1000
from distutils.core import setup
setup(name='zss',
version='1.2.0',
description='Tree edit distance using the Zhang Shasha algorithm',
author='<NAME>',
author_email='<EMAIL>',
url='https://www.github.com/timtadh/zhang-shasha',
packages=['zss'],
... | 166 |
984 | //
// NSURL+ThemeFiles.h
// Motif
//
// Created by <NAME> on 3/6/15.
// Copyright (c) 2015 <NAME>. All rights reserved.
//
#import <Foundation/Foundation.h>
NS_ASSUME_NONNULL_BEGIN
@interface NSURL (ThemeFiles)
/**
The theme name derived from this URL, if there is one.
*/
@property (nonatomic, readonly, nulla... | 581 |
1,172 | <reponame>michaelfig/caja
// Copyright (C) 2005 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 ... | 1,254 |
4,603 | from rockstar import RockStar
boo_code = 'print "Hello World!"'
rock_it_bro = RockStar(days=400, file_name='helloworld.boo', code=boo_code)
rock_it_bro.make_me_a_rockstar()
| 69 |
679 | <reponame>Grosskopf/openoffice
/**************************************************************
*
* 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... | 855 |
1,331 | <reponame>fergonaut/metasploit-payloads
/*!
* @file python_main.c
* @brief Entry point and intialisation definitions for the python extension.
*/
#include "common.h"
#include "common_metapi.h"
// Required so that use of the API works.
MetApi* met_api = NULL;
#define REFLECTIVEDLLINJECTION_CUSTOM_DLLMAIN
#define RD... | 1,197 |
312 | // Copyright <NAME> 2015
#include "dispatch/blob.hpp"
#include "composite/connectable.hpp"
#include "composite/graph/copy.hpp"
#include "composite/vectorize.hpp"
namespace purine {
typedef vector<Blob*> B;
Connectable::Connectable(int rank, int device)
: Graph(rank, device) {
}
Connectable::~Connectable() {}
c... | 557 |
66,985 | <reponame>techAi007/spring-boot
/*
* Copyright 2012-2020 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENS... | 516 |
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 ... | 5,955 |
1,682 | /*
Copyright (c) 2012 LinkedIn Corp.
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... | 5,588 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.