max_stars_count
int64
301
224k
text
stringlengths
6
1.05M
token_count
int64
3
727k
3,055
/* Fontname: open_iconic_embedded_8x Copyright: https://github.com/iconic/open-iconic, SIL OPEN FONT LICENSE Glyphs: 17/17 BBX Build Mode: 0 */ const uint8_t u8g2_font_open_iconic_embedded_8x_t[1934] U8G2_FONT_SECTION("u8g2_font_open_iconic_embedded_8x_t") = "\21\0\6\6\7\7\6\5\10@@\0\0@\0@\0\0F\0\0\7q@F@\30\...
3,459
1,405
<filename>sample4/recompiled_java/sources/org/apache/commons/httpclient/methods/FileRequestEntity.java<gh_stars>1000+ package org.apache.commons.httpclient.methods; import java.io.File; import java.io.FileInputStream; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; public class Fi...
690
8,633
import pytest pytest.importorskip("redis")
17
416
<reponame>Zi0P4tch0/sdks // // ARSCNPlaneGeometry.h // ARKit // // Copyright © 2016-2020 Apple Inc. All rights reserved. // #import <Foundation/Foundation.h> #import <SceneKit/SCNGeometry.h> @protocol MTLDevice; @class ARPlaneGeometry; NS_ASSUME_NONNULL_BEGIN /** A SceneKit geometry representing a plane. */ AP...
284
2,338
//===--- ADRRelaxationPass.cpp --------------------------------------------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
855
332
package io.github.quickmsg.core.protocol; import io.github.quickmsg.common.ack.Ack; import io.github.quickmsg.common.channel.MqttChannel; import io.github.quickmsg.common.context.ReceiveContext; import io.github.quickmsg.common.message.SmqttMessage; import io.github.quickmsg.common.protocol.Protocol; import io.netty.h...
678
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. package org.chromium.components.content_capture; import org.chromium.components.content_capture.PlatformSession.PlatformSessionData; /** * The task to ...
381
2,296
<reponame>lefty71/open-nsynth-super /* Copyright 2016 Google 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 Unless required b...
918
488
// gb0006.cc // another permissive issue enum State { goodbit }; template <class T> void f(State &e) { e |= goodbit; }
49
430
# Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
1,437
1,840
/** * Copyright Pravega Authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to...
20,529
4,054
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. package com.yahoo.vespa.athenz.identityprovider.client; import com.yahoo.security.SignatureUtils; import com.yahoo.vespa.athenz.api.AthenzService; import com.yahoo.vespa.athenz.identityprovider.api.IdentityType; im...
1,658
662
<filename>alibaba-rsocket-core/src/main/java/com/alibaba/rsocket/metadata/ServiceRegistryMetadata.java package com.alibaba.rsocket.metadata; import com.alibaba.rsocket.ServiceLocator; import com.alibaba.rsocket.encoding.JsonUtils; import com.fasterxml.jackson.annotation.JsonIgnore; import io.netty.buffer.ByteBuf; impo...
901
713
<reponame>alionkun/LightCTR_commented<filename>LightCTR/distribut/ring_collect.h // // ring_collect.h // LightCTR // // Created by SongKuangshi on 2017/12/7. // Copyright © 2017 SongKuangshi. All rights reserved. // #ifndef ring_collect_h #define ring_collect_h #include "dist_machine_abst.h" #include <vector> #in...
6,495
337
from common import * import pytest def test_preserve_int64(ds_local): ds = ds_local assert np.array(ds[['ints']], dtype=np.int64).dtype.kind == 'i', "expected int type precision" assert np.array(ds[['ints']], dtype=np.int64)[0][0] == -2**62-1, "lost precision" def test_safe_casting(ds_local): ds = ds...
322
810
<reponame>MuhammadZeeshan34/feast # For some reason patch releases with Semantic Release are tagged as "pre-release" on GitHub. This script # removes the "pre-release" tag from the release. import os import sys import requests USAGE = f"Usage: python {sys.argv[0]} [--help] | version_being_released (e.g., v0.19.1)]" ...
858
1,338
/* * Copyright 2014-2020 Haiku, Inc. * Distributed under the terms of the MIT License. */ #ifndef FILE_TEST_H #define FILE_TEST_H #include <Url.h> #include <TestCase.h> #include <TestSuite.h> #include <cppunit/TestSuite.h> #include <tools/cppunit/ThreadedTestCase.h> #include "TestServer.h" class FileTest : p...
179
1,041
package io.ebeaninternal.server.deploy; import io.ebean.bean.EntityBean; import io.ebean.bean.PersistenceContext; import io.ebean.core.type.DataReader; import io.ebeaninternal.server.query.SqlJoinType; import java.sql.SQLException; /** * Local interface to handle Embedded, Reference and Reference Exported * cases....
916
965
<reponame>bobbrow/cpp-docs<gh_stars>100-1000 CCirc myCirc; myCirc.SubclassDlgItem(IDC_CIRCCTRL2, this); // ... use myCirc ... myCirc.UnsubclassWindow();
65
372
<reponame>yoshi-code-bot/google-api-java-client-services /* * 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 ...
998
409
<reponame>JensUweUlrich/seqan // ========================================================================== // NGS: Regions of Interest Analysis // ========================================================================== // Copyright (c) 2012-2018, <NAME>, Institut Pasteur // All rights reserved. //...
6,060
1,333
package org.xujin.moss.client.config; import org.springframework.boot.autoconfigure.condition.ConditionalOnBean; import org.springframework.context.annotation.Bean; import org.xujin.moss.client.eureka.EurekaAutoRegistrationCustomizer; @ConditionalOnBean(name = "org.springframework.cloud.netflix.eureka.EurekaInstanceC...
175
841
package org.jboss.resteasy.test.cdi.validation.resource; import org.jboss.logging.Logger; import jakarta.enterprise.context.RequestScoped; import jakarta.ws.rs.core.Response; @RequestScoped public class SubResourceImpl implements SubResource { static boolean methodEntered; private static final Logger LOG = Logg...
193
1,918
<reponame>beliaev-maksim/pyaedt<filename>pyaedt/third_party/ironpython/plumbum/path/__init__.py<gh_stars>1000+ # -*- coding: utf-8 -*- from plumbum.path.base import FSUser, Path, RelativePath from plumbum.path.local import LocalPath, LocalWorkdir from plumbum.path.remote import RemotePath, RemoteWorkdir from plumbum.pa...
130
852
import FWCore.ParameterSet.Config as cms process = cms.Process('RECO2') process.load("FWCore.MessageLogger.MessageLogger_cfi") process.MessageLogger.cerr.FwkReport.reportEvery = 100 # import of standard configurations process.load('Configuration/StandardSequences/Geometry_cff') process.load('Configuration/StandardS...
1,101
343
<reponame>yang-xiansen/drp<filename>src/main/java/com/originspark/drp/models/projects/costs/AbstractCost.java package com.originspark.drp.models.projects.costs; import java.math.BigDecimal; import java.text.SimpleDateFormat; import java.util.Date; import javax.persistence.Column; import javax.persistence.MappedSuperc...
1,340
629
#! /usr/bin/env python """ Learning Series: Network Programmability Basics Module: Network Device APIs Lesson: NX-API Part 2 Author: <NAME> <<EMAIL>> sbx_setup.py Deploy baseline configuration for the lesson: - Add 3 VLANs to the Switch Configuration """ __author__ = "<NAME>" __author_email__ = "<EMAIL>" __copyright_...
548
676
<filename>app/src/main/java/com/alorma/github/ui/activity/WelcomeActivity.java<gh_stars>100-1000 package com.alorma.github.ui.activity; import android.accounts.AccountAuthenticatorActivity; import android.app.Activity; import android.content.Intent; import android.os.Build; import android.os.Bundle; import android.sup...
1,955
1,652
<reponame>MrTutao/x-pipe<filename>redis/redis-meta/src/main/java/com/ctrip/xpipe/redis/meta/server/crdt/replication/PeerMasterAdjustJobFactory.java<gh_stars>1000+ package com.ctrip.xpipe.redis.meta.server.crdt.replication; import com.ctrip.xpipe.redis.meta.server.job.PeerMasterAdjustJob; public interface PeerMasterAd...
155
4,640
/* * 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 ...
1,712
574
/* * Copyright 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://www.apache.org/licenses/LICENSE-2.0...
1,477
2,112
/** * Autogenerated by Thrift for src/module.thrift * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @nocommit */ #pragma once #include <thrift/lib/cpp2/gen/module_data_h.h> #include "thrift/compiler/test/fixtures/mcpp2-compare/gen-cpp2/module_types.h" namespace apache { namesp...
2,409
348
{"nom":"Montsoreau","circ":"4ème circonscription","dpt":"Maine-et-Loire","inscrits":346,"abs":144,"votants":202,"blancs":0,"nuls":4,"exp":198,"res":[{"nuance":"REM","nom":"Mme <NAME>","voix":81},{"nuance":"UDI","nom":"<NAME>","voix":31},{"nuance":"FN","nom":"M. <NAME>","voix":23},{"nuance":"FI","nom":"Mme <NAME>","voix...
299
1,531
// Copyright (C) 2000 - 2012 <NAME> // All rights reserved. // // This file is part of The Grinder software distribution. Refer to // the file LICENSE which is part of The Grinder distribution for // licensing details. The Grinder distribution is available on the // Internet at http://grinder.sourceforge.net/ // // THI...
5,065
971
<gh_stars>100-1000 package com.ucar.datalink.writer.es.client.rest.utils; import com.alibaba.fastjson.JSONObject; public class JsonUtil { public static Object getValueByPath(JSONObject obj, String path) { String[] keys = path.split("/"); Object tem = obj; for(String key : keys) { if(tem instance...
188
1,338
<reponame>Kirishikesan/haiku /* * Copyright 2006, Haiku Inc. All rights reserved. * Distributed under the terms of the MIT License. * * Authors: * <NAME> <<EMAIL>> */ #ifndef EHCI_HARDWARE_H #define EHCI_HARDWARE_H // Host Controller Capability Registers (EHCI Spec 2.2) #define EHCI_CAPLENGTH 0x00 // Capabi...
6,150
9,136
#ifndef GYROSCOPIC_SETUP_H #define GYROSCOPIC_SETUP_H class CommonExampleInterface* GyroscopicCreateFunc(struct CommonExampleOptions& options); #endif //GYROSCOPIC_SETUP_H
69
520
<filename>dev/Tickets/1758.py import numpy as np import random import CoolProp.CoolProp as CP import time random.seed("coolprop_test") p = 101325 # 1 atmosphere T = np.random.uniform(120, 400, 10000) + 273.15 # Random points from 120 to 400 deg C, gas phase only # Make sure the objects exist and create tables if ne...
650
2,023
<reponame>tdiprima/code class Immutable(object): """An immutable class. """ _mutable = False def __setattr__(self, name,value): if self._mutable or name == '_mutable': super(Immutable,self).__setattr__(name,value) else: raise TypeError("Can't modify immutabl...
659
2,392
<reponame>MelvinG24/dust3d<gh_stars>1000+ // Copyright (c) 2010 GeometryFactory (France). // All rights reserved. // // This file is part of CGAL (www.cgal.org) // // $URL: https://github.com/CGAL/cgal/blob/v5.1/Intersections_3/include/CGAL/Intersections_3/Sphere_3_Triangle_3.h $ // $Id: Sphere_3_Triangle_3.h 52164b1 2...
377
461
public class Solution2 { public TreeNode bstFromPreorder(int[] preorder) { int len = preorder.length; if (len == 0) { return null; } return dfs(preorder, 0, len - 1); } /** * 根据 preorder 的子区间 [left..right] 构建二叉树 * * @param preorder * @param l...
870
766
<filename>src/main/java/org/snaker/engine/access/QueryFilter.java<gh_stars>100-1000 /* Copyright 2013-2015 www.snakerflow.com. * * 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 * * ht...
2,715
10,287
# Copyright 2019 The Sonnet 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 l...
1,539
542
<gh_stars>100-1000 /* * Copyright ©2018 vbill.cn. * <p> * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by appli...
1,119
519
<gh_stars>100-1000 /* * Copyright 2018 The GraphicsFuzz Project 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...
279
435
{ "copyright_text": null, "description": "This talk presents the concepts and design principles behind new\nlearning modules for teaching undergraduate engineering students to use\nPython to learn. Find the modules at:\nhttps://github.com/engineersCode/EngComp \u2014 I aim to start a community of\neducators sharing...
431
364
package com.linkedin.dagli.assorted; import com.linkedin.dagli.dag.DAG; import com.linkedin.dagli.dag.DAG1x1; import com.linkedin.dagli.distribution.MostLikelyLabelFromDistribution; import com.linkedin.dagli.liblinear.LiblinearClassification; import com.linkedin.dagli.embedding.classification.Embedded; import com.link...
1,490
30,023
<gh_stars>1000+ { "config": { "step": { "user": { "description": "To find your API key, open the Tautulli webpage and navigate to Settings and then to Web interface. The API key will be at the bottom of that page.\n\nExample of the URL: ```http://192.168.0.10:8181``` with 8181 being the default port...
563
448
<reponame>kaymes/terracotta<filename>tests/drivers/test_sqlite_remote.py """SQLite-remote driver specific tests. Tests that apply to all drivers go to test_drivers.py. """ import os import time import uuid import tempfile from pathlib import Path import pytest boto3 = pytest.importorskip('boto3') moto = pytest.impo...
1,955
1,405
package com.lenovo.lps.sus.control; import android.view.View; /* loaded from: classes.dex */ class x implements View.OnClickListener { final /* synthetic */ SUSCustdefNotificationActivity a; /* JADX INFO: Access modifiers changed from: package-private */ public x(SUSCustdefNotificationActivity sUSCustdefN...
259
1,475
<filename>geode-assembly/src/integrationTest/java/org/apache/geode/tools/pulse/PulseSecurityConfigCustomProfileTest.java<gh_stars>1000+ /* * Licensed to the Apache Software Foundation (ASF) under one or more contributor license * agreements. See the NOTICE file distributed with this work for additional information re...
1,193
14,668
// Copyright 2020 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. // // This variant of the keyframe effect model performs additional processing // for computed keyframes. The algorithm for constructing keyframes for a CS...
620
971
#include "common/graph.h" #include "test_util/test_harness.h" namespace noisepage { using common::Graph; class GraphTest : public TerrierTest {}; // ---------------------------------------------------------------------------- // Test Utilities // --------------------------------------------------------------------...
1,788
3,474
// // Generated by class-dump 3.5 (64 bit). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>. // #import "NSObject.h" @class NSObject<OS_dispatch_queue>, NSPredicate, NSString, NSTimer, XCTNSPredicateExpectation; @interface _XCTNSPredicateExpectationImplementation : NSObject { ...
352
750
from jasmin.tools.singleton import Singleton from jasmin.tools.stats import Stats class HttpAPIStatistics(Stats): """HTTP API statistics holder""" def __init__(self, api_id): self.api_id = api_id self.init() def init(self): self._stats = { 'created_at': 0, ...
541
678
<reponame>bzxy/cydia /** * This header is generated by class-dump-z 0.2b. * * Source: /System/Library/PrivateFrameworks/iAdCore.framework/iAdCore */ #import <iAdCore/XXUnknownSuperclass.h> @class NSMutableArray; @interface ADResourceDownloader : XXUnknownSuperclass { @private unsigned _maxConcurrency; // 4 = 0x...
710
10,225
<filename>independent-projects/resteasy-reactive/common/processor/src/main/java/org/jboss/resteasy/reactive/common/processor/AdditionalWriters.java package org.jboss.resteasy.reactive.common.processor; public class AdditionalWriters extends AdditionalReaderWriterCommon { }
77
3,477
<gh_stars>1000+ // Copyright Microsoft and Project Verona Contributors. // SPDX-License-Identifier: MIT /** * This benchmark is for testing performance of the scheduling code. * * There are n cowns, each executing m writes to a large statically allocated * array of memory. Each cown performs c behaviours....
1,086
310
<filename>exercises/concept/boutique-inventory/.meta/config.json { "blurb": "Learn advanced enumeration functionality by preparing your online fashion boutique for its big annual sale.", "authors": ["iHiD"], "files": { "solution": ["boutique_inventory.rb"], "test": ["boutique_inventory_test.rb"], "exe...
122
377
<filename>pyattck/mobile/mitigation.py from .mobileattckobject import MobileAttckObject class MobileAttckMitigation(MobileAttckObject): """Mobile MITRE ATT&CK Mitigation object. A child class of MobileAttckObject Creates objects which have been categorized as potential mitigations Example: ...
1,518
334
# -*- coding: utf-8 -*- # Copyright (c) 2015 Ericsson AB # # 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 ...
4,320
375
<reponame>matthew-reynolds/ros_control /////////////////////////////////////////////////////////////////////////////// // Copyright (C) 2012, hiDOF INC. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are met: // * Redistri...
1,034
10,225
package io.quarkus.reactivemessaging.http.runtime.serializers; import java.util.ArrayList; import java.util.Collections; import java.util.Comparator; import java.util.HashMap; import java.util.List; import java.util.Map; import org.jboss.logging.Logger; /** * a base superclass for a SerializerFactory that is genera...
1,128
348
{"nom":"Bligny","circ":"2ème circonscription","dpt":"Marne","inscrits":100,"abs":45,"votants":55,"blancs":11,"nuls":1,"exp":43,"res":[{"nuance":"LR","nom":"Mme <NAME>","voix":22},{"nuance":"REM","nom":"Mme <NAME>","voix":21}]}
92
7,936
{"states":[{"state":{"state_id":"AN","state_name":"Andaman and Nicobar Island (UT)"}},{"state":{"state_id":"AP","state_name":"Andhra Pradesh"}},{"state":{"state_id":"AR","state_name":"Arunachal Pradesh"}},{"state":{"state_id":"AS","state_name":"Assam"}},{"state":{"state_id":"BR","state_name":"Bihar"}},{"state":{"state_...
669
665
#import <Cocoa/Cocoa.h> #import "xadmaster.h" #define XADResourceForkData @"XADResourceForkData" #define XADFinderFlags @"XADFinderFlags" typedef enum { XADAbort,XADRetry,XADSkip,XADOverwrite,XADRename, } XADAction; typedef xadERROR XADError; @class XADArchivePipe,UniversalDetector; @interface XADArchive:NSObject...
2,063
5,169
<gh_stars>1000+ { "name": "HelloTrello", "version": "0.3.0", "summary": "A Swift library to interact with the Trello API", "description": "HelloTrello is a simple Swift API to interact with the Trello API. It uses auth-tokens and currenly only supports basic GET requests.", "homepage": "https://github.com/liv...
334
6,098
<reponame>ahmedengu/h2o-3 import water.udf.CFunc2 as Func class TestCFunc2(Func): """ Compute sum of actual + predict """ def apply(self, rowActual, rowPredict): return sum(rowActual.readDoubles()) + sum(rowPredict.readDoubles())
107
2,838
<gh_stars>1000+ /** * Copyright (c) Glow Contributors. See CONTRIBUTORS file. * * 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 * * U...
6,652
473
<gh_stars>100-1000 /* * Copyright (C) <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, mod...
3,022
887
<reponame>qiyanz/neuropod {"node_name_mapping": {"y": "some_namespace/in_y:0", "x": "some_namespace/in_x:0", "out": "some_namespace/out:0"}, "init_op_names": {}}
73
482
package io.cattle.platform.servicediscovery.api.util; import io.cattle.platform.allocator.service.AllocationHelper; import io.cattle.platform.archaius.util.ArchaiusUtil; import io.cattle.platform.core.addon.InServiceUpgradeStrategy; import io.cattle.platform.core.addon.InstanceHealthCheck; import io.cattle.platform.co...
10,214
5,939
package com.twitter.finagle; import java.net.InetSocketAddress; import java.util.HashMap; import java.util.Map; import org.junit.Assert; import org.junit.Test; public class AddressCompilationTest { @Test public void testInet() { InetSocketAddress ia = new InetSocketAddress(0); Address a = Addresses.new...
248
435
<filename>warehouse/query-core/src/main/java/datawave/core/iterators/ColumnQualifierRangeIterator.java package datawave.core.iterators; import java.io.IOException; import org.apache.accumulo.core.data.Key; import org.apache.accumulo.core.data.Range; import org.apache.accumulo.core.data.Value; import org.apache.accumu...
1,341
1,273
<filename>src/main/java/org/broadinstitute/hellbender/cmdline/PicardCommandLineProgram.java package org.broadinstitute.hellbender.cmdline; import htsjdk.samtools.*; import htsjdk.samtools.util.BlockCompressedOutputStream; import htsjdk.samtools.util.BlockCompressedStreamConstants; import org.broadinstitute.barclay.arg...
1,588
13,709
package com.reactnativenavigation.utils; import android.os.Build; import android.view.View; import java.util.concurrent.atomic.AtomicInteger; public class CompatUtils { private static final AtomicInteger viewId = new AtomicInteger(1); public static int generateViewId() { if (Build.VERSION.SDK_INT >= Build.VERSI...
267
435
{ "copyright_text": "Creative Commons Attribution license (reuse allowed)", "description": "Se presenta una aplicaci\u00f3n para el almacenamiento, an\u00e1lisis, y visualizaci\u00f3n interactiva de datos heterog\u00e9neos pertenecientes al biobanco de la Patagonia (proyecto RAICES), basado en herramientas libres c...
1,333
626
<reponame>yjt98765/qsharp-compiler<filename>examples/QIR/JITCompilation/qir-jit.py<gh_stars>100-1000 import sys, platform import llvmlite.binding as llvm from ctypes import CFUNCTYPE linux_runtime_libs = ["build/libMicrosoft.Quantum.Qir.Runtime.so", "build/libMicrosoft.Quantum.Qir.QSharp.Core.so"...
876
365
# -*- coding: utf-8 -*- from benedict.serializers import JSONSerializer import unittest class json_serializer_test_case(unittest.TestCase): def test_decode_json(self): # TODO pass def test_encode_json(self): # TODO pass
120
2,023
def main(): while True: try: string = raw_input('What numbers should I average? ') words = string.split() numbers = map(float, words) average = sum(numbers) / len(numbers) print 'The average is', average raw_input('Press enter to quit.\...
216
1,144
/****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * * This program is free software, you can redistribute it and/or modify it * ...
2,094
303
/* * Copyright 2009 Weaver authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed...
333
301
# This script shows the usage of binary message types # It demonstrates the low level interaction (also suitable for uControlers) to do a https POST in order to send data from the device to the Cloud # all configuration settings come from config.py try: import config except ImportError: print("Please copy template-c...
561
367
from enum import Enum from typing import Optional from pydantic import BaseModel, Field, validator class PolicyStoreTypes(Enum): OPA = "OPA" MOCK = "MOCK" class PolicyStoreDetails(BaseModel): """ represents a policy store endpoint - contains the policy store's: - location (url) - type - ...
372
1,532
<reponame>charles-l/pyinfra from .client import SSHClient # noqa: F401
28
713
package org.infinispan.stream; import org.infinispan.configuration.cache.ConfigurationBuilder; import org.infinispan.configuration.cache.StorageType; import org.testng.annotations.Test; /** * @author <NAME> */ @Test(groups = "functional", testName = "streams.SimpleStreamOffHeapTest") public class SimpleStreamOffHea...
163
707
// Copyright (c) FIRST and other WPILib contributors. // Open Source Software; you can modify and/or share it under the terms of // the WPILib BSD license file in the root directory of this project. #include <string_view> #include <wpi/SmallString.h> #include <wpi/StringExtras.h> #include <wpi/raw_ostream.h> #includ...
299
420
<filename>Code-Sleep-Python/speech-to-text/stt.py<gh_stars>100-1000 import speech_recognition as sr r = sr.Recognizer() flag = 1 while flag=1: with sr.Microphone() as source: print("Say something... ") audio = r.listen(source) try: print("Google thinks you said: {}".format(r.recog...
223
15,577
<filename>src/Functions/FunctionsStringHash.cpp #include <Functions/FunctionsStringHash.h> #include <Functions/ExtractString.h> #include <Functions/FunctionFactory.h> #include <Functions/FunctionsHashing.h> #include <Common/PODArray.h> #include <Core/Defines.h> #include <functional> #include <tuple> #include <vector...
11,115
431
<reponame>lucianoconforto/CPPWebFramework /* Copyright 2017 <NAME> and <NAME> Distributed under MIT license, or public domain if desired and recognized in your jurisdiction. See file LICENSE for detail. */ #include <cwf/cppwebapplication.h> #include <controllers/bmicontroller.h> int main(int argc, char ...
202
764
{"symbol": "ELI","address": "0xc7C03B8a3FC5719066E185ea616e87B88eba44a3","overview":{"en": ""},"email": "<EMAIL>","website": "https://www.eligma.io/","state": "NORMAL","links": {"blog": "https://medium.com/eligma-blog","twitter": "https://twitter.com/eligmacom?lang=en","telegram": "https://t.me/eligma","github": "https...
134
1,063
from django.contrib import admin from . models import CyclecountModeDayModel admin.site.register(CyclecountModeDayModel)
34
313
<gh_stars>100-1000 # Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. from libcst.codemod.commands.noop import NOOPCommand from libcst.testing.utils import UnitTest from fixit.cli.args import g...
342
1,603
<filename>metadata-ingestion/tests/unit/test_transform_dataset.py import re from typing import Any, Dict, List, MutableSequence, Optional, Union from unittest import mock from uuid import uuid4 import pytest import datahub.emitter.mce_builder as builder import datahub.metadata.schema_classes as models import tests.te...
24,568
302
//////////////////////////////////////////////////////////////////////////////////////////////////// // This file is part of CosmoScout VR // // and may be used under the terms of the MIT license. See the LICENSE file for details. // // ...
1,010
887
<filename>Sources/App/Classes/Headers/TVCAppearance.h<gh_stars>100-1000 /* ********************************************************************* * _____ _ _ * |_ _|____ _| |_ _ _ __ _| | * | |/ _ \ \/ / __| | | |/ _` | | * ...
1,675
1,350
<filename>sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesGetSamples.java<gh_stars>1000+ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // Code generated by Micros...
463
348
<gh_stars>100-1000 {"nom":"Valdrôme","circ":"3ème circonscription","dpt":"Drôme","inscrits":132,"abs":62,"votants":70,"blancs":16,"nuls":1,"exp":53,"res":[{"nuance":"REM","nom":"<NAME>","voix":40},{"nuance":"LR","nom":"<NAME>","voix":13}]}
100
1,723
<filename>lib/os/os_string.hpp<gh_stars>1000+ /************************************************************************** * * Copyright 2011 <NAME> * All Rights Reserved. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "So...
4,349
1,162
<reponame>civitaspo/digdag package io.digdag.client.api; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import org.immutables.value.Value; @Value.Immutable @JsonDeserialize(as = ImmutableRestVersionCheckResult.class) public interface RestVersionCheckResult { String getServerVersion(); bool...
173