max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
8,772 | package org.apereo.cas.mongo;
import lombok.val;
import org.apache.commons.lang3.StringUtils;
import org.bson.BsonReader;
import org.bson.BsonTimestamp;
import org.bson.BsonWriter;
import org.bson.codecs.DecoderContext;
import org.bson.codecs.EncoderContext;
import org.bson.codecs.configuration.CodecRegistry;
import o... | 896 |
1,579 | # You need to install pyaudio to run this example
# pip install pyaudio
# When using a microphone, the AudioSource `input` parameter would be
# initialised as a queue. The pyaudio stream would be continuosly adding
# recordings to the queue, and the websocket client would be sending the
# recordings to the speech to t... | 1,260 |
22,779 | /*
* DBeaver - Universal Database Manager
* Copyright (C) 2010-2021 DBeaver Corp and others
*
* 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/LICE... | 922 |
688 | #!/usr/bin/env python3
from .goto import Goto
| 19 |
971 | package com.ucar.datalink.biz.utils.ddl;
import com.alibaba.druid.sql.SQLUtils;
import com.alibaba.druid.sql.ast.SQLStatement;
import com.alibaba.druid.sql.dialect.mysql.visitor.MySqlSchemaStatVisitor;
import com.alibaba.druid.sql.dialect.postgresql.visitor.PGSchemaStatVisitor;
import com.alibaba.druid.sql.dialect.sql... | 1,152 |
353 | <reponame>yuqi1129/chronos<filename>chronos-server/src/test/java/com/xiaomi/infra/chronos/TestChronosImplement.java
package com.xiaomi.infra.chronos;
import com.xiaomi.infra.chronos.exception.ChronosException;
import com.xiaomi.infra.chronos.exception.FatalChronosException;
import com.xiaomi.infra.chronos.zookeeper.Fa... | 1,019 |
4,465 | <filename>bridge/bindings/qjs/qjs_patch.h
/*
* Copyright (C) 2021 Alibaba Inc. All rights reserved.
* Author: <NAME>.
*/
#ifndef KRAKENBRIDGE_QJS_PATCH_H
#define KRAKENBRIDGE_QJS_PATCH_H
#include <quickjs/list.h>
#include <quickjs/quickjs.h>
struct JSString {
JSRefCountHeader header; /* must come first, 32-bit ... | 2,207 |
1,374 | <filename>core-lib/es6/src/main/java/def/dom/NavigatorID.java<gh_stars>1000+
package def.dom;
import def.js.Object;
@jsweet.lang.Interface
public abstract class NavigatorID extends def.js.Object {
public java.lang.String appName;
public java.lang.String appVersion;
public java.lang.String platform;
pu... | 174 |
3,986 | package com.xuexiang.xuidemo.fragment.expands.chart.line;
import com.github.mikephil.charting.charts.LineChart;
import com.github.mikephil.charting.components.Legend;
import com.github.mikephil.charting.data.Entry;
import com.github.mikephil.charting.data.LineData;
import com.github.mikephil.charting.data.LineDataSet;... | 1,894 |
1,418 | package aima.core.logic.common;
/**
* A runtime exception to be used to describe Lexer exceptions. In particular it
* provides information to help in identifying where in the input character
* sequence the exception occurred.
*
* @author <NAME>
*
*/
public class LexerException extends RuntimeExcepti... | 306 |
6,304 | /*
* Copyright 2021 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "modules/skunicode/src/SkUnicode_icu.h"
#define SKICU_FUNC(funcname) funcname,
// ubrk_clone added as draft in ICU69 and Android API 31 (first ICU NDK).
// ubrk_saf... | 412 |
2,406 | // Copyright (C) 2018-2021 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#pragma once
#include <memory>
#include "ngraph/ngraph_visibility.hpp"
#include "ngraph/node.hpp"
#include "openvino/op/util/op_types.hpp"
namespace ngraph {
namespace op {
using ov::op::util::is_binary_elementwise_arithmetic;
us... | 283 |
678 | /**
* This header is generated by class-dump-z 0.2b.
*
* Source: /System/Library/PrivateFrameworks/FTServices.framework/FTServices
*/
#import <FTServices/FTPushHandler.h>
#import <FTServices/APSConnectionDelegate.h>
@class APSConnection, NSData;
@interface FTEmbeddedPushHandler : FTPushHandler <APSConnectionDele... | 968 |
1,209 | <gh_stars>1000+
/*
u8g_pb.c
common procedures for the page buffer
Universal 8bit Graphics Library
Copyright (c) 2011, <EMAIL>
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
* R... | 2,036 |
1,346 | from plugin.scrobbler.core.constants import IGNORED_EVENTS
import logging
log = logging.getLogger(__name__)
class Engine(object):
handlers = {}
def __init__(self):
self.handlers = self._construct_handlers(self.handlers)
def process(self, obj, events):
for key, payload in events:
... | 1,285 |
317 | <reponame>dinisAbranches/nwchem
/*
$Id$
*/
#include <math.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include "typesf2c.h"
#include "paw_atom.h"
#include "paw_sdir.h"
#include "paw_output.h"
#include "paw_basis.h"
#include "paw_scattering.h"
#include "paw_loggrid.h"
#if defined(CRAY) || defined(... | 1,834 |
435 | <filename>web-services/client/src/test/java/datawave/user/DefaultAuthorizationsListTest.java
package datawave.user;
import java.util.Collection;
import java.util.HashMap;
import java.util.LinkedHashMap;
import java.util.Map;
import java.util.Set;
import java.util.TreeSet;
import com.google.common.collect.Sets;
import... | 3,440 |
575 | // Copyright 2020 Proyectos y Sistemas de Mantenimiento SL (eProsima).
//
// 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 re... | 924 |
348 | <gh_stars>100-1000
{"nom":"Campana","circ":"2ème circonscription","dpt":"Haute-Corse","inscrits":92,"abs":44,"votants":48,"blancs":1,"nuls":1,"exp":46,"res":[{"nuance":"REG","nom":"<NAME>","voix":32},{"nuance":"REM","nom":"<NAME>","voix":14}]} | 99 |
2,032 | # -*- coding: utf-8 -*-
# the __all__ is generated
__all__ = []
# __init__.py structure:
# common code of the package
# export interface in __all__ which contains __all__ of its sub modules
# import all from submodule em_kdata_recorder
from .em_kdata_recorder import *
from .em_kdata_recorder import __all__ as _em_kda... | 130 |
353 | #include <iostream>
#include <fstream>
#include "disassembly/flowgraph.hpp"
#include "disassembly/functionfeaturegenerator.hpp"
#include "searchbackend/functionsimhashfeaturedump.hpp"
// Writes a DOT file for a given graphlet.
void WriteFeatureDictionaryEntry(uint64_t hashA, uint64_t hashB,
const Flowgraph& graphle... | 457 |
335 | <reponame>Safal08/Hacktoberfest-1<filename>A/Acknowledgedly_adverb.json
{
"word": "Acknowledgedly",
"definitions": [
"By general, or one's own, acknowledgement; admittedly, confessedly."
],
"parts-of-speech": "Adverb"
} | 98 |
360 | /*
* Copyright (c) 2021 Huawei Technologies Co.,Ltd.
*
* openGauss is licensed under Mulan PSL v2.
* You can use this software according to the terms and conditions of the Mulan PSL v2.
* You may obtain a copy of Mulan PSL v2 at:
*
* http://license.coscl.org.cn/MulanPSL2
*
* THIS SOFTWARE IS PROVIDED ... | 986 |
2,576 | <filename>modelling/src/main/java/org/axonframework/modelling/saga/metamodel/SagaMetaModelFactory.java<gh_stars>1000+
/*
* Copyright (c) 2010-2018. Axon Framework
*
* 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 ... | 385 |
529 | <reponame>PervasiveDigital/netmf-interpreter
/* crypto/aes/aes_core.c -*- mode:C; c-file-style: "eay" -*- */
/**
* rijndael-alg-fst.c
*
* @version 3.0 (December 2000)
*
* Optimised ANSI C code for the Rijndael cipher (now AES)
*
* @author <NAME> <<EMAIL>>
* @author <NAME> <<EMAIL>>
* @author <NAME> <... | 24,597 |
799 | <reponame>diCagri/content
[
{
"configuredName": "Phishing-Suspected",
"customCategory": true,
"dbCategorizedUrls": [],
"editable": true,
"id": "CUSTOM_1",
"keywordsRetainingParentCategory": [],
"type": "URL_CATEGORY",
"urls": [],
"val": 144
}
]
| 133 |
945 | <filename>Modules/ThirdParty/VNL/src/vxl/v3p/netlib/opt/lbfgs.c<gh_stars>100-1000
/* opt/lbfgs.f -- translated by f2c (version 20050501).
You must link the resulting object file with libf2c:
on Microsoft Windows system, link with libf2c.lib;
on Linux or Unix systems, link with .../path/to/libf2c.a -l... | 32,433 |
1,290 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import re
import os
import binascii
import hashlib
import struct
from lazagne.config.module_info import ModuleInfo
from lazagne.config.crypto.pyDes import *
from lazagne.config import homes
try:
from ConfigParser import RawConfigParser # Python 2.7
except ImportErr... | 2,466 |
1,155 | <reponame>RockyMM/intellij-swagger-icon<filename>src/main/java/org/zalando/intellij/swagger/documentation/openapi/OpenApiDocumentationProvider.java<gh_stars>1000+
package org.zalando.intellij.swagger.documentation.openapi;
import com.intellij.openapi.components.ServiceManager;
import com.intellij.openapi.project.Proje... | 1,558 |
1,350 | <filename>sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/SavedSearchesImpl.java
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package co... | 3,929 |
4,013 | <gh_stars>1000+
'''
Function:
定义游戏
Author:
Charles
微信公众号:
Charles的皮卡丘
'''
import sys
import pygame
from .utils import *
from .Sprites import *
'''打砖块游戏'''
class breakoutClone():
def __init__(self, cfg, **kwargs):
pygame.init()
pygame.display.set_caption('Breakout clone —— Charles的皮卡丘')... | 3,900 |
1,121 | /*
Copyright(c) 2016-2021 <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, merge, publish, distribute, subl... | 1,095 |
335 | /*
* Copyright 2019-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 ap... | 859 |
575 | // 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 "chrome/browser/ash/arc/instance_throttle/arc_instance_throttle.h"
#include "base/logging.h"
#include "base/metrics/histogram_functions.h"
#incl... | 1,486 |
18,325 | package com.zheng.upms.server;
import com.zheng.common.base.BaseInterface;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
* 系统接口
* Created by ZhangShuzheng on 2017/6/13.
*/
public class Initialize implements BaseInterface {
private static final Logger LOGGER = LoggerFactory.getLogger(Initialize.cla... | 157 |
1,139 | s = 'Hi\nHello'
print(s)
raw_s = r'Hi\nHello'
print(raw_s)
# raw string \ escapes quotes (',") but \ remains in the result
# raw string can't be single \ or end with odd numbers of \
raw_s = r'\''
print(raw_s)
raw_s = r'ab\\'
print(raw_s)
raw_s = R'\\\"' # prefix can be 'R' or 'r'
print(raw_s)
| 132 |
2,151 | # Copyright (c) 2014 Google Inc. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
{
'targets': [
{
'target_name': 'exe',
'type': 'executable',
'dependencies': [
'subdir2/subdir.gyp:foo',
],
},
{
... | 232 |
797 | /*
The MIT License (MIT)
Copyright (c) 2015 <NAME> and Contributors
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... | 1,168 |
324 | <reponame>tormath1/jclouds
/*
* 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
... | 632 |
411 | <reponame>mmmaaaggg/pyctp_lovelylain<gh_stars>100-1000
# -*- coding: utf-8 -*-
from __future__ import absolute_import as _init
__author__ = 'lovelylain'
__version__ = '0.2.1'
__all__ = ['ApiStruct', 'MdApi', 'TraderApi']
if 0: from . import ApiStruct
class MdApi(object):
def Create(self, pszFlowPath='', bIsUsi... | 17,345 |
607 | <filename>lib/include/timer/features/f4/Timer2GpioFeature.h<gh_stars>100-1000
/*
* This file is a part of the open source stm32plus library.
* Copyright (c) 2011 to 2014 <NAME> <www.andybrown.me.uk>
* Please see website for licensing terms.
*
* THIS IS AN AUTOMATICALLY GENERATED FILE - DO NOT EDIT!
*/
#pragma on... | 3,158 |
411 | """Migration for the Submitty master database."""
import json
from pathlib import Path
def up(config, database, semester, course):
database.execute("CREATE TABLE IF NOT EXISTS queue(entry_id serial PRIMARY KEY, user_id VARCHAR(20) NOT NULL REFERENCES users(user_id), name VARCHAR (20) NOT NULL, time_in TIMESTAMP N... | 428 |
3,787 | <filename>python/fate_flow/scheduling_apps/operation_app.py
#
# Copyright 2019 The FATE 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.a... | 531 |
373 | /*-------------------------------------------------------------------------------
BARONY
File: menu.hpp
Desc: definitions and prototypes for menu.c
Copyright 2013-2016 (c) Turning Wheel LLC, all rights reserved.
See LICENSE for details.
---------------------------------------------------------------------------... | 3,554 |
380 | #include "mex.h"
#include <stdlib.h>
#include <stdio.h>
/**
* Return the decision tree node corresponding to the given value set
*
* var[n]: the attribute ids for node n
* cut[n]: the threshold value for node n
* left_child[n]: the node id of the left child of node n, 0 if node n is terminal
* right_child[n]: th... | 1,583 |
22,688 | /******************************************************************************
* Copyright 2018 The Apollo 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
... | 3,486 |
6,304 | // Copyright 2019 Google LLC.
// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
#include "tools/fiddle/examples.h"
// HASH=c204b38b3fc08914b0a634aa4eaec894
REG_FIDDLE(Image_bounds, 256, 128, false, 4) {
void draw(SkCanvas* canvas) {
SkIRect bounds = image->bounds()... | 209 |
348 | {"nom":"Roissy-en-Brie","circ":"8ème circonscription","dpt":"Seine-et-Marne","inscrits":13139,"abs":7637,"votants":5502,"blancs":97,"nuls":46,"exp":5359,"res":[{"nuance":"REM","nom":"<NAME>","voix":2052},{"nuance":"FI","nom":"Mme <NAME>","voix":819},{"nuance":"LR","nom":"Mme <NAME>","voix":650},{"nuance":"FN","nom":"Mm... | 266 |
327 | <reponame>zhuhuaiyu/pg_travel
import numpy as np
from utils.utils import *
from hparams import HyperParams as hp
from model import Actor
def get_gae(rewards, masks, values):
rewards = torch.Tensor(rewards)
masks = torch.Tensor(masks)
returns = torch.zeros_like(rewards)
advants = torch.zeros_like(rewar... | 2,461 |
441 | package com.alibaba.markovdemo.engine.stages;
public class RunQueryTemplate {
private String label;
private String dataId;
private String groupId;
public String getLabel() {
return label;
}
public void setLabel(String label) {
this.label = label;
}
public String getDataI... | 327 |
1,290 | <reponame>dfirpaul/Active-Directory-Exploitation-Cheat-Sheet-1<gh_stars>1000+
import fnmatch
import os
import subprocess
import re
import string
from lazagne.config.module_info import ModuleInfo
class IISAppPool(ModuleInfo):
def __init__(self):
ModuleInfo.__init__(self, name='iisapppool', category='sysadm... | 1,225 |
2,338 | <filename>clang-tools-extra/clang-tidy/bugprone/SuspiciousIncludeCheck.cpp
//===--- SuspiciousIncludeCheck.cpp - clang-tidy --------------------------===//
//
// 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-Ide... | 1,769 |
348 | {"nom":"<NAME>","circ":"5ème circonscription","dpt":"Côtes-d'Armor","inscrits":789,"abs":303,"votants":486,"blancs":6,"nuls":4,"exp":476,"res":[{"nuance":"REM","nom":"<NAME>","voix":192},{"nuance":"SOC","nom":"<NAME>","voix":79},{"nuance":"UDI","nom":"<NAME>","voix":61},{"nuance":"FI","nom":"Mme <NAME>","voix":53},{"nu... | 308 |
423 | <gh_stars>100-1000
params_flatmap_lateral_medial = {
"figsize": [16, 9],
"panels": [
{
"extent": [0.000, 0.200, 1.000, 0.800],
"view": {"angle": "flatmap", "surface": "flatmap"},
},
{
"extent": [0.300, 0.000, 0.200, 0.200],
"view": {
... | 4,132 |
454 | package cn.originx.migration.restore;
import cn.originx.migration.AbstractStep;
import cn.originx.migration.MigrateStep;
import io.vertx.core.Future;
import io.vertx.core.json.JsonObject;
import io.vertx.up.eon.em.Environment;
import io.vertx.up.unity.Ux;
public class RestoreAll extends AbstractStep {
private tra... | 769 |
5,169 | <reponame>ftapp/cocoapods
{
"name": "PredicateEditor",
"version": "0.9.1",
"summary": "A visual editor for dynamically creating NSPredicates to query data in your app.",
"description": "PredicateEditor allows users of your apps to dynamically create filters (in the form of NSPredicates) using an easy-to-use GUI... | 418 |
852 | #!/usr/bin/env python3
from math import *
from ROOT import TFile, TObject, TTree
from array import array
from ROOT import gDirectory
import sys
import os
from __future__ import print_function
def getGTfromDQMFile(DQMfile, RunNumber, globalTagVar):
if not os.path.isfile(DQMfile):# print "Error: file", DQMfile, "... | 488 |
315 | /***************************************************************************
Copyright (c) 2019, Xilinx, Inc.
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
1. Redistributions of source code must reta... | 16,006 |
1,168 | // Check support for GNU's "anonymous struct" extension.
//
// This is very similar to standard C++'s anonymous unions, and Clang's AST
// models them in the same way with IndirectFieldDecls in parent scopes.
//
// (Amusingly?) this testcase crashes GCC 4.8.
union U {
struct {
//- @field defines/binding StructFi... | 131 |
6,041 | package com.koushikdutta.async.callback;
public interface ValueFunction<T> {
T getValue() throws Exception;
}
| 40 |
522 | <reponame>pybee/briefcase
import os
import re
import subprocess
import unicodedata
from email.utils import parseaddr
from typing import Optional
from urllib.parse import urlparse
from cookiecutter import exceptions as cookiecutter_exceptions
from briefcase.config import is_valid_app_name, is_valid_bundle_identifier
f... | 8,084 |
743 | package pl.allegro.tech.hermes.client.metrics;
import pl.allegro.tech.hermes.client.HermesMessage;
import pl.allegro.tech.hermes.client.HermesResponse;
import pl.allegro.tech.hermes.client.MessageDeliveryListener;
import java.util.HashMap;
import java.util.Map;
import static java.util.concurrent.TimeUnit.NANOSECONDS... | 1,139 |
382 | package rpc.turbo.util;
import io.netty.buffer.ByteBuf;
public class ByteBufUtils {
public static void writeVarInt(ByteBuf byteBuf, int value) {
if (value >>> 7 == 0) {
byteBuf.writeByte((byte) value);
return;
}
if (value >>> 14 == 0) {
int newValue = (((value & 0x7F) | 0x80) << 8) | (value >>> 7);
... | 3,673 |
902 | <reponame>MrYKK/chat
package org.anychat.dao.ext;
import java.util.List;
import org.anychat.model.base.ChatGroup;
import org.anychat.model.base.ChatGroupUserCriteria;
public interface ChatGroupUserMapperExt {
List<ChatGroup> selectByExample(ChatGroupUserCriteria example);
} | 103 |
521 | <reponame>zai1208/fbc
/* get localized short DATE format */
#include "../fb.h"
#include "fb_private_intl.h"
int fb_DrvIntlGetDateFormat( char *buffer, size_t len )
{
char *pszName;
char achFormat[90];
char achOrder[3] = { 0 };
char achDayZero[2], *pszDayZero;
char achMonZero[2], *pszMonZero;
c... | 1,933 |
626 | <reponame>zoercai/opencensus-java
/*
* Copyright 2017, OpenCensus Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unles... | 864 |
439 | <gh_stars>100-1000
import org.junit.Before;
import org.junit.Ignore;
import org.junit.Test;
import static org.assertj.core.api.Assertions.assertThat;
public class AtbashTest {
private Atbash atbash;
@Before
public void setup() {
atbash = new Atbash();
}
@Test
public void testEncodeY... | 1,309 |
10,225 | package io.quarkus.runtime.configuration;
import java.lang.reflect.InvocationTargetException;
import java.util.Collections;
import org.eclipse.microprofile.config.spi.ConfigSource;
import org.eclipse.microprofile.config.spi.ConfigSourceProvider;
public class RuntimeConfigSource implements ConfigSourceProvider {
... | 356 |
3,428 | {"id":"01661","group":"easy-ham-1","checksum":{"type":"MD5","value":"1393ea887720c777d1429b07fce98ab4"},"text":"Return-Path: neale@woozle.org\nDelivery-Date: Fri Sep 6 18:13:17 2002\nFrom: <EMAIL> (Neale Pickett)\nDate: 06 Sep 2002 10:13:17 -0700\nSubject: [Spambayes] Deployment\nIn-Reply-To: <2<EMAIL>06150<EMAIL>F<EM... | 1,037 |
1,305 | <reponame>terminux/jdk1.7.0_80
/*
* Copyright (c) 2000, 2003, Oracle and/or its affiliates. All rights reserved.
* ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*/
package com.sun.corba.se.impl.dynamicany;
import org.omg.CORBA.TypeCode... | 905 |
1,275 | <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
*... | 515 |
565 | <filename>numerics/cbrt.hpp
#pragma once
namespace principia {
namespace numerics {
namespace internal_cbrt {
// Computes ∛y, correctly rounded to nearest.
double Cbrt(double y);
// Specific methods, uncorrected rounding, and the corrector function exposed
// for testing.
// See documentation/cbrt.pdf, appendix F, ... | 488 |
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 ... | 8,559 |
348 | <reponame>chamberone/Leaflet.PixiOverlay<filename>docs/data/leg-t2/082/08202003.json
{"nom":"Angeville","circ":"2ème circonscription","dpt":"Tarn-et-Garonne","inscrits":178,"abs":86,"votants":92,"blancs":9,"nuls":8,"exp":75,"res":[{"nuance":"FN","nom":"<NAME>","voix":40},{"nuance":"RDG","nom":"Mme <NAME>","voix":35}]} | 136 |
1,331 | <gh_stars>1000+
package com.metasploit.meterpreter.stdapi;
import java.io.File;
import com.metasploit.meterpreter.CommandManager;
import com.metasploit.meterpreter.command.CommandId;
import com.metasploit.meterpreter.ExtensionLoader;
/**
* Loader class to register all the stdapi commands.
*
* @author mihi
*/
pub... | 1,767 |
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,233 |
5,133 | /*
* Copyright MapStruct Authors.
*
* Licensed under the Apache License version 2.0, available at http://www.apache.org/licenses/LICENSE-2.0
*/
package org.mapstruct.ap.test.bugs._306;
import java.util.Set;
import org.mapstruct.Mapper;
import org.mapstruct.TargetType;
import org.mapstruct.factory.Mappers;
@Mappe... | 239 |
841 | <reponame>brunolmfg/resteasy
package org.jboss.resteasy.test.injection.resource;
import jakarta.annotation.PostConstruct;
import jakarta.validation.constraints.Size;
import jakarta.ws.rs.GET;
import jakarta.ws.rs.Path;
@Path("/normal")
public class PostConstructInjectionResource {
@Size(max=3)
private String s... | 186 |
716 | <filename>src/utils/timer.hpp<gh_stars>100-1000
//
// Copyright (c) 2015-2019 CNRS INRIA
//
#ifndef __pinocchio_utils_timer_hpp__
#define __pinocchio_utils_timer_hpp__
#ifdef WIN32
#include <Windows.h>
#include <stdint.h> // portable: uint64_t MSVC: __int64
int gettimeofday(struct timeval* tp, struct timezone* tzp... | 927 |
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.
package org.chromium.chrome.browser.omnibox;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.ju... | 28,306 |
11,467 | {"event_id":"7c9ae6e58f03442b9203bbdcf6ae904c","level":"error","timestamp":"2021-07-08T12:59:16Z","release":"db853d7","environment":"development","server_name":"MacBook.local","modules":{"rake":"13.0.3","concurrent-ruby":"1.1.9","i18n":"1.8.10","minitest":"5.14.4","thread_safe":"0.3.6","tzinfo":"1.2.9","uglifier":"4.2.... | 1,451 |
778 | from math import *
import numpy as np
from time import time
import matplotlib.pyplot as plt
from tqdm import tqdm
import sys
from pyevtk.hl import imageToVTK
from KratosMultiphysics.ExaquteSandboxApplication.WindGenerator.GaussianRandomField import *
from KratosMultiphysics.ExaquteSandboxApplication.WindGenerator.Cova... | 3,246 |
742 | from __future__ import division, absolute_import, print_function
from numpy.oldnumeric.mlab import *
import numpy.oldnumeric.mlab as nom
__all__ = nom.__all__
del nom
| 57 |
3,442 | /*
* Jitsi, the OpenSource Java VoIP and Instant Messaging client.
*
* Copyright @ 2015 Atlassian Pty Ltd
*
* 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.or... | 3,562 |
634 | #pragma once
#include <Windows.h>
namespace Win32
{
namespace Registry
{
void installHooks();
void setValue(HKEY key, const char* subKey, const char* valueName, DWORD value);
void unsetValue(HKEY key, const char* subKey, const char* valueName);
}
}
| 95 |
4,098 | /*
Open Asset Import Library (assimp)
----------------------------------------------------------------------
Copyright (c) 2006-2017, assimp team
All rights reserved.
Redistribution and use of this software in source and binary forms,
with or without modification, are permitted provided that the
following conditions... | 1,749 |
2,151 | <reponame>LightSun/android-study<gh_stars>1000+
// Generated from XMLParser.g4 by ANTLR 4.4
package android.databinding.parser;
import org.antlr.v4.runtime.Token;
import org.antlr.v4.runtime.misc.NotNull;
import org.antlr.v4.runtime.tree.ParseTreeListener;
/**
* This interface defines a complete listener for a parse ... | 956 |
1,168 | package cn.com.heaton.blelibrary.ble.request;
import android.bluetooth.BluetoothGattCharacteristic;
import java.util.UUID;
import cn.com.heaton.blelibrary.ble.callback.wrapper.BleWrapperCallback;
import cn.com.heaton.blelibrary.ble.callback.wrapper.ReadWrapperCallback;
import cn.com.heaton.blelibrary.ble.model.BleDe... | 725 |
520 | # Unless explicitly stated otherwise all files in this repository are licensed under the BSD-3-Clause License.
# This product includes software developed at Datadog (https://www.datadoghq.com/).
# Copyright 2015-Present Datadog, Inc
from datadog.api.resources import (
ActionAPIResource,
CreateableAPIResource,
... | 914 |
3,508 | <reponame>Luv8436/Leetcode<filename>src/main/java/com/fishercoder/solutions/_1136.java<gh_stars>1000+
package com.fishercoder.solutions;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.HashSet;
import java.util.LinkedList;
import java.util.List;
import java.util.Map;
import java.util.Queue;
impo... | 1,115 |
8,148 | #pragma once
#include "../dxvk/dxvk_device.h"
#include "../d3d10/d3d10_view_rtv.h"
#include "d3d11_device_child.h"
#include "d3d11_view.h"
namespace dxvk {
class D3D11Device;
/**
* \brief Render target view
*/
class D3D11RenderTargetView : public D3D11DeviceChild<ID3D11RenderTargetView1> {
... | 1,287 |
435 | {
"description": "- Coding a simple malware in Python. We will create a Trojan with a\n reverse shell for Windows.\n- Connecting several trojans to a botnet network via Twitter and Gmail.\n- How can we technically defend ourselves against this attack - again\n using Python.\n",
"duration": 2915,
"language"... | 236 |
347 | <reponame>hbraha/ovirt-engine
package org.ovirt.engine.core.dao;
import java.util.List;
import javax.inject.Named;
import javax.inject.Singleton;
import org.ovirt.engine.core.common.businessentities.ActionGroup;
import org.ovirt.engine.core.common.businessentities.RoleGroupMap;
import org.ovirt.engine.core.compat.Gu... | 914 |
541 | //
// UIViewController+JMCollectionView.h
// TableViewRefreshDemo
//
// Created by xiaozhu on 2017/6/29.
// Copyright © 2017年 xiaozhu. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface UIViewController (JMCollectionView)
@property (nonatomic ,strong) NSMutableArray *c_dataArray;
@end
| 111 |
920 | <filename>dragonite-proxy/src/main/java/com/vecsight/dragonite/proxy/acl/item/IPv4CIDRACLItem.java
/*
* The Dragonite Project
* -------------------------
* See the LICENSE file in the root directory for license information.
*/
package com.vecsight.dragonite.proxy.acl.item;
import com.vecsight.dragonite.proxy.acl... | 1,120 |
518 | /*
* Copyright (c) 2010-2020 OTClient <https://github.com/edubart/otclient>
*
* 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... | 592 |
1,350 | <filename>sdk/timeseriesinsights/azure-resourcemanager-timeseriesinsights/src/main/java/com/azure/resourcemanager/timeseriesinsights/implementation/EnvironmentResourceImpl.java
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Cod... | 677 |
310 | <reponame>tsukoyumi/skylicht-engine
#include "pch.h"
#include "SkylichtEngine.h"
#include "SampleNoise3D.h"
#include "GridPlane/CGridPlane.h"
#include "CSphereComponent.h"
void installApplication(const std::vector<std::string>& argv)
{
SampleNoise3D *app = new SampleNoise3D();
getApplication()->registerAppEvent("S... | 2,141 |
1,498 | <reponame>cgutman/userland
/*
Copyright (c) 2012, Broadcom Europe Ltd
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, th... | 3,206 |
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,055 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.