max_stars_count
int64
301
224k
text
stringlengths
6
1.05M
token_count
int64
3
727k
312
<reponame>yanaspaula/rdf4j /******************************************************************************* * Copyright (c) 2019 Eclipse RDF4J contributors. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Distribution License v1.0 * which accomp...
2,075
60,067
<filename>caffe2/operators/space_batch_op.cc #include "caffe2/operators/space_batch_op.h" namespace caffe2 { REGISTER_CPU_OPERATOR(SpaceToBatch, SpaceToBatchOp<CPUContext>); OPERATOR_SCHEMA(SpaceToBatch).NumInputs(1).NumOutputs(1).SetDoc(R"DOC( Zero-pads and then rearranges (permutes) blocks of spatial data into batc...
1,485
1,830
/* * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH under * one or more contributor license agreements. See the NOTICE file distributed * with this work for additional information regarding copyright ownership. * Licensed under the Zeebe Community License 1.1. You may not use this file * ...
1,206
4,224
<reponame>lgarciaos/Firmware<gh_stars>1000+ #! /usr/bin/env python3 import serial, time import subprocess from subprocess import call, Popen from argparse import ArgumentParser import re import sys import datetime import serial.tools.list_ports as list_ports import tempfile COLOR_RED = "\x1b[31m" COLOR_GREEN = "\...
1,644
1,144
package de.metas.order.payment_reservation; import de.metas.common.util.time.SystemTime; import org.adempiere.exceptions.AdempiereException; import org.adempiere.service.ClientId; import org.compiere.model.I_C_Order; import org.springframework.stereotype.Service; import de.metas.bpartner.BPartnerContactId; import de....
1,418
849
package milkman.ui.plugin; import javafx.scene.control.Tab; import milkman.domain.RequestContainer; import milkman.domain.ResponseContainer; import java.util.Optional; /** * editor UI for a specific request aspect */ public interface RequestAspectEditor { /** * returns the tab with UI elements to edit the a...
214
1,359
package com.kalessil.phpStorm.phpInspectionsEA.classes; import com.kalessil.phpStorm.phpInspectionsEA.PhpCodeInsightFixtureTestCase; import com.kalessil.phpStorm.phpInspectionsEA.inspectors.semanticalAnalysis.classes.CallableMethodValidityInspector; final public class CallableMethodValidityInspectorTest extends PhpCo...
218
678
<gh_stars>100-1000 /** * This header is generated by class-dump-z 0.2b. * * Source: /System/Library/PrivateFrameworks/TextInput.framework/TextInput */ #import <TextInput/TIWordSearchOperation.h> @interface TIWordSearchOperationCancelLastAcceptedCandidate : TIWordSearchOperation { } - (id)initWithTIWordSearchObj:...
163
2,023
# HtmlMail python class # Compose HTML mails from URLs or local files with all images included # # Author: <NAME> <<EMAIL>> import sys, os, urllib2, urlparse from email.MIMEText import MIMEText from email.MIMEImage import MIMEImage from email.MIMEMultipart import MIMEMultipart import email, re class HtmlMail: def __...
1,200
8,092
# 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 not u...
605
403
/* * 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 ...
3,268
359
{ "name": "docserver", "version": "1.0.0", "description": "socket server for realtime doc sharing system", "main": "app.js", "scripts": { "test": "echo \"Error: no test specified\" && exit 1", "start": "node src/app.js" }, "author": "<NAME>", "license": "ISC", "devDependencies": { "@types/...
173
2,035
<reponame>irvingzhang0512/tinyflow // Copyright (c) 2016 by Contributors // implementation of common tensor operators #include <tinyflow/base.h> #include <dmlc/parameter.h> #include <nnvm/op_attr_types.h> #include <cmath> #include <utility> #include "./op_util.h" namespace tinyflow { // shape given the ZeroParam usin...
6,879
1,163
// Copyright 2021 The IREE Authors // // Licensed 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 #ifndef IREE_RUNTIME_SESSION_H_ #define IREE_RUNTIME_SESSION_H_ #include <stdint.h> #include "i...
2,781
811
<reponame>rizalgowandy/gubernator<gh_stars>100-1000 # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! """Client and server classes corresponding to protobuf-defined services.""" import grpc import peers_pb2 as peers__pb2 class PeersV1Stub(object): """NOTE: For use by gubernator peers only ...
1,889
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.authorization.implementation; import com.azure.core.annotation.BodyParam; import com.azure.core.annotation.Delet...
47,368
1,778
/* * Copyright (c) 2014-2018 Cesanta Software Limited * 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,042
690
<gh_stars>100-1000 package demo; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.cloud.stream.annotation.EnableBinding; import org.springframework.cloud.stre...
440
778
/** * 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...
3,152
14,668
<gh_stars>1000+ // Copyright 2014 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "extensions/browser/computed_hashes.h" #include "base/base64.h" #include "base/files/file_path.h" #include "base/files/scoped_tem...
3,476
519
package com.yz.common.web.springmvc.interceptor; import com.alibaba.fastjson.JSON; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.web.servlet.HandlerInterceptor; import org.springframework.web.servlet.ModelAndView; import javax.servlet.http.HttpServletRequest; import javax.servlet...
516
346
#ifndef SOUND_CONTROL_H #define SOUND_CONTROL_H #include "JA2Types.h" #include "Random.h" #include <string_theory/string> #define FARLEFT 0 #define LEFTSIDE 48 #define MIDDLE 64 #define MIDDLEPAN 64 #define RIGHTSIDE 80 #define FARRIGHT 127 #define LOWVOLUME 25 #define BTNVOLUME 40 #define MIDVOLUME 65 #define H...
9,121
1,603
{ "error": { "code": 404, "message": "Discovery document not found for API service: container.googleapis.com format: rest version: v1alpha1", "status": "NOT_FOUND" } }
69
1,738
/* * All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or * its licensors. * * For complete copyright and license terms please see the LICENSE at the root of this * distribution (the "License"). All use of this software is governed by the License, * or, if provided, by the license below or t...
901
820
<reponame>datumbox/datumbox-framework<gh_stars>100-1000 /** * Copyright (C) 2013-2020 <NAME> <<EMAIL>> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/lic...
2,893
310
{ "name": "Barograph (iOS)", "description": "A barometer and altimeter app.", "url": "https://itunes.apple.com/us/app/barograph-barometer-altimeter/id926055907" }
62
348
{"nom":"Cevins","circ":"2ème circonscription","dpt":"Savoie","inscrits":574,"abs":394,"votants":180,"blancs":19,"nuls":4,"exp":157,"res":[{"nuance":"LR","nom":"<NAME>","voix":87},{"nuance":"DIV","nom":"<NAME>","voix":70}]}
89
1,531
<gh_stars>1000+ /** * Copyright 2012-2015 <NAME> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable l...
607
421
<reponame>majdal/tasking-manager """empty message Revision ID: 84c793a951b2 Revises: 7<PASSWORD> Create Date: 2019-11-12 20:04:46.065237 """ from alembic import op import sqlalchemy as sa from datetime import datetime # revision identifiers, used by Alembic. revision = "84c793a951b2" down_revision = "29097876c7e6" ...
1,001
1,408
<gh_stars>1000+ def test_readme(): # Tests that the readme code snippet doesn't fail from presidio_anonymizer import AnonymizerEngine from presidio_anonymizer.entities import RecognizerResult, OperatorConfig # Initialize the engine with logger. engine = AnonymizerEngine() # Invoke the anonymiz...
568
2,143
/* * Copyright 2014-2022 TNG Technology Consulting GmbH * * 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 appl...
586
1,561
<filename>tests/soter/nist-sts/src/cephes.c #include <stdio.h> #include <math.h> #include "../include/cephes.h" static const double rel_error = 1E-12; double MACHEP = 1.11022302462515654042E-16; // 2**-53 double MAXLOG = 7.09782712893383996732224E2; // log(MAXNUM) double MAXNUM = 1.7976931348623158E308; //...
3,525
607
/* * This file is a part of the open source stm32plus library. * Copyright (c) 2011,2012,2013 <NAME> <www.andybrown.me.uk> * Please see website for licensing terms. */ #pragma once // ensure the MCU series is correct #ifndef STM32PLUS_F0 #error This class can only be used with the STM32F0 series #endif...
712
1,414
#!/usr/bin/env python from .elmo import Embedder import logging logger = logging.getLogger('elmoformanylangs') # if the client application hasn't set the log level, we set it # ourselves to INFO if logger.level == 0: logger.setLevel(logging.INFO) log_handler = logging.StreamHandler() log_formatter = logging.For...
220
7,272
package com.kunal.backtracking; import java.util.Arrays; public class AllPaths { public static void main(String[] args) { boolean[][] board = { {true, true, true}, {true, true, true}, {true, true, true} }; int[][] path = new int[board.length]...
1,280
2,206
/** * Comparators provided by the Runtime Field module. */ package com.speedment.runtime.field.comparator;
30
3,274
package com.ql.util.express.match; /** * 匹配类型 * @author xuannan * */ public interface INodeType { public String getName(); public INodeTypeManager getManager(); public QLPatternNode getPatternNode(); }
79
343
from benchmark import Benchmark modules = ['numpy','Numeric','numarray'] b = Benchmark(modules,runs=3,reps=100) N = 10000 b.title = 'Sorting %d elements' % N b['numarray'] = ('a=np.array(None,shape=%d,typecode="i");a.sort()'%N,'') b['numpy'] = ('a=np.empty(shape=%d, dtype="i");a.sort()'%N,'') b['Numeric'] = ('a=np.em...
513
3,494
<reponame>rsh/Cinder-Emscripten<gh_stars>1000+ /* * This audio sample firstly makes use of the audio::DelayNode, but also demonstrates some more complex methods of control, * like feedback and controlling an audio::Param with other audio::Node's. * * author: <NAME> (2014) */ #include "cinder/app/App.h" #include "...
2,668
1,273
<reponame>sunboy0523/gatk package org.broadinstitute.hellbender.utils; import org.broadinstitute.hellbender.GATKBaseTest; import org.testng.Assert; import org.testng.annotations.Test; import java.io.ByteArrayOutputStream; import java.io.IOException; import java.io.PrintStream; public class IGVUtilsUnitTest extends G...
544
8,523
<filename>tests/models/test_queryparams.py import pytest import httpx @pytest.mark.parametrize( "source", [ "a=123&a=456&b=789", {"a": ["123", "456"], "b": 789}, {"a": ("123", "456"), "b": 789}, [("a", "123"), ("a", "456"), ("b", "789")], (("a", "123"), ("a", "456"), (...
1,605
841
/* * Copyright 2019 Red Hat, Inc. and/or its affiliates. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
532
348
{"nom":"Cambron","circ":"1ère circonscription","dpt":"Somme","inscrits":612,"abs":253,"votants":359,"blancs":19,"nuls":2,"exp":338,"res":[{"nuance":"REM","nom":"<NAME>","voix":102},{"nuance":"LR","nom":"M. <NAME>","voix":77},{"nuance":"FN","nom":"<NAME>","voix":64},{"nuance":"FI","nom":"M. <NAME>","voix":52},{"nuance":...
251
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. // ------------------------------------------------------------ #include "stdafx.h" #include <...
1,938
324
/* * 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,025
4,071
<reponame>Ru-Xiang/x-deeplearning /* Copyright (C) 2016-2018 Alibaba Group Holding Limited Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless req...
3,168
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,446
507
<reponame>mjuenema/python-terrascript # terrascript/data/invidian/libvirt.py # Automatically generated by tools/makecode.py (24-Sep-2021 15:21:04 UTC) import terrascript class libvirt_network_dns_host_template(terrascript.Data): pass class libvirt_network_dns_srv_template(terrascript.Data): pass class lib...
204
14,668
// Copyright 2021 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 "media/gpu/vaapi/test/vp8_decoder.h" #include <va/va.h> #include <memory> #include "media/filters/ivf_parser.h" #include "media/gpu/vaapi/test/...
7,325
1,453
//------------------------------------------------------------------------------------------------------- // Copyright (C) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE.txt file in the project root for full license information. //---------------------------------------------------------...
9,308
1,003
/* Copyright (c) 2017-2020 <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, ...
917
590
package com.camnter.easycountdowntextureview.demo; import android.os.Bundle; import android.support.annotation.Nullable; import android.support.v7.app.AppCompatActivity; import android.util.Log; import android.view.View; import com.camnter.easycountdowntextureview.EasyCountDownTextureView; /** * Description:SettingA...
1,176
742
<reponame>kuro-channel/knowledge-1<gh_stars>100-1000 package org.support.project.knowledge.entity; import org.support.project.knowledge.entity.gen.GenTokensEntity; import java.util.List; import java.util.Map; import org.support.project.common.bean.ValidateError; import org.support.project.di.Container; import org.su...
367
1,466
{ "/admin.js": "/admin.js", "/global.min.js": "/global.min.js", "/easemob.min.js": "/easemob.min.js" }
58
335
<filename>dlint/linters/bad_hashlib_use.py #!/usr/bin/env python from __future__ import ( absolute_import, division, print_function, unicode_literals, ) from .helpers import bad_module_attribute_use class BadHashlibUseLinter(bad_module_attribute_use.BadModuleAttributeUseLinter): """This linter l...
310
1,198
<reponame>dherbst/lullaby<gh_stars>1000+ /* Copyright 2017-2019 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 Unle...
3,125
11,094
a = "1" a = a + 2 print(a)
16
2,872
<filename>Ryven/packages/auto_generated/mimetypes/nodes.py from NENV import * import mimetypes class NodeBase(Node): pass class _Default_Mime_Types_Node(NodeBase): """ """ title = '_default_mime_types' type_ = 'mimetypes' init_inputs = [ ] init_outputs = [ Nod...
2,411
4,224
<filename>src/drivers/optical_flow/paw3902/PAW3902.hpp<gh_stars>1000+ /**************************************************************************** * * Copyright (c) 2019 PX4 Development Team. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitte...
1,745
5,169
{ "name": "LYPaymentField", "version": "1.2.2", "summary": "可以定制密码支付框或使用已经封装好的UI.You can customize the password payment box or use the already encapsulated controls.", "homepage": "https://github.com/cityleaf/LYPaymentField", "license": "MIT", "authors": { "cityleaf": "<EMAIL>" }, "platforms": { ...
256
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...
560
3,227
<reponame>ffteja/cgal<filename>Stream_support/include/CGAL/IO/Istream_iterator.h // Copyright (c) 1997 // Utrecht University (The Netherlands), // ETH Zurich (Switzerland), // INRIA Sophia-Antipolis (France), // Max-Planck-Institute Saarbruecken (Germany), // and Tel-Aviv University (Israel). All rights reserved. // /...
1,040
497
<gh_stars>100-1000 // // Copyright (c) 2008-2014 the Urho3D project. // // 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 u...
4,697
308
<reponame>yusufcakal/Modular-Architecture-Hexagonal-Demo-Project package com.hexagonaldemo.ticketapi.ticket.event; import com.hexagonaldemo.ticketapi.common.model.Event; import com.hexagonaldemo.ticketapi.common.util.CurrentTimeFactory; import com.hexagonaldemo.ticketapi.payment.model.Payment; import com.hexagonaldemo...
535
343
/* $Id$ $Revision$ */ /* vim:set shiftwidth=4 ts=8: */ /************************************************************************* * Copyright (c) 2011 AT&T Intellectual Property * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1....
267
5,169
{ "name": "SBugly", "version": "0.0.1", "summary": "I am bugly summary.", "homepage": "http://gitlab.xingmentech.com/alita/sdkunit/sbugly.git", "license": { "type": "MIT", "file": "LICENSE" }, "authors": { "<NAME>": "<EMAIL>" }, "platforms": { "ios": "9.0" }, "source": { "git":...
276
349
# import waitGPU # import setGPU # waitGPU.wait(utilization=20, available_memory=10000, interval=60) # waitGPU.wait(gpu_ids=[1,3], utilization=20, available_memory=10000, interval=60) import torch import torch.nn as nn import torch.optim as optim import torch.nn.functional as F from torch.autograd import Variable impo...
669
346
<reponame>ja8zyjits/universe { "images": { "icon-small": "https://downloads.mesosphere.com/assets/universe/000/redis-icon-small.png", "icon-medium": "https://downloads.mesosphere.com/assets/universe/000/redis-icon-medium.png", "icon-large": "https://downloads.mesosphere.com/assets/universe/000/redis-icon-...
233
15,947
<reponame>ChaseKnowlden/airflow # 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 ...
4,699
856
package org.lionsoul.jcseg.test; import java.io.IOException; import java.io.StringReader; import org.lionsoul.jcseg.sentence.Sentence; import org.lionsoul.jcseg.sentence.SentenceSeg; /** * sentence seg test program * * @author chenxin<<EMAIL>> */ public class SentenceSegTest { public static void main(Strin...
811
2,989
package com.linkedin.databus.core; /* * * Copyright 2013 LinkedIn Corp. All rights reserved * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENS...
15,174
3,372
/* * Copyright 2016-2021 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://aws.amazon.com/apache2.0 * * or in the "licen...
2,731
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...
4,032
1,144
package de.metas.handlingunits.attribute; /* * #%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 version...
615
2,984
<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 "Lic...
4,269
27,296
// Copyright (c) 2012 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 NW_APP_PROTOCOL_HANDLER_H_ #define NW_APP_PROTOCOL_HANDLER_H_ #include "base/basictypes.h" #include "base/compiler_specific.h" #include "base...
348
356
<reponame>dilanbhalla/security-advisories<filename>ecosystem/i18next/325.json { "id": 325, "created_at": "2017-03-14", "updated_at": "2017-03-14", "title": "Cross-Site Scripting", "author": { "name": "<NAME>", "website": null, "username": null }, "module_name": "i18next", "publish_date": "20...
512
449
<filename>trilinear_c/src/trilinear.h int trilinear_forward(THFloatTensor * lut, THFloatTensor * image, THFloatTensor * output, int lut_dim, int shift, float binsize, int width, int height, int batch); int trilinear_backward(THFloatTensor * image, THFloatTensor * image_grad, THFloatTensor * lut_g...
176
1,711
/** * */ package org.squirrelframework.foundation.fsm; import static org.junit.Assert.assertEquals; import java.util.concurrent.CyclicBarrier; import org.junit.Test; import org.squirrelframework.foundation.fsm.annotation.StateMachineParameters; import org.squirrelframework.foundation.fsm.impl.AbstractUntypedState...
3,141
14,668
<gh_stars>1000+ // 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. #include "gpu/vulkan/vulkan_image.h" #include "base/logging.h" #include "build/build_config.h" #include "gpu/config/gpu_info_collector.h"...
3,235
1,299
<gh_stars>1000+ /* * Copyright 2016 Netflix, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable...
1,091
1,144
/***************************************************************************** ** ** Name: app_wav.c ** ** Description: WAV file related functions ** ** Copyright (c) 2009-2012, Broadcom Corp., All Rights Reserved. ** Broadcom Bluetooth Core. Proprietary and confidential. ** ***************************...
9,004
5,788
/* * 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 ...
596
550
package com.qiniu.rtc.service; import com.qiniu.common.QiniuException; import com.qiniu.http.Response; import com.qiniu.rtc.model.AppParam; import com.qiniu.util.Auth; public class AppService extends AbstractService { /** * 初始化 * * @param auth */ public AppService(Auth auth) { supe...
1,212
308
<filename>OpenEdXMobile/src/main/java/org/edx/mobile/base/RuntimeApplication.java package org.edx.mobile.base; /** * Put any custom application configuration here. * This file will not be edited by edX unless absolutely necessary. */ public class RuntimeApplication extends MainApplication { @Override publi...
133
455
<reponame>gromit1811/network-lab<gh_stars>100-1000 #!/usr/bin/env python3 """Execute a bunch of HTTP requests using provided source/destinations and log the result. Should be run with a list of source/destination tuples as arguments. For example:: ./httprequests.py \ 203.0.113.105:38447,203.0.113.15:80 \...
954
2,151
<reponame>zipated/src<filename>components/cryptauth/remote_device.h<gh_stars>1000+ // Copyright 2014 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef COMPONENTS_CRYPTAUTH_REMOTE_DEVICE_H_ #define COMPONENTS_CRYPTA...
692
1,695
/* * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distribut...
1,877
619
/* * Author: <NAME> <<EMAIL>> * Copyright (c) 2016 Intel Corporation. * * This program and the accompanying materials are made available under the * terms of the The MIT License which is available at * https://opensource.org/licenses/MIT. * * SPDX-License-Identifier: MIT */ import upm_bh1750.BH1750; public c...
423
530
/* * Copyright (c) 2018, Oracle and/or its affiliates. All rights reserved. * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * The contents of this file are subject to the terms of either the Universal Permissive License * v 1.0 as shown at http://oss.oracle.com/licenses/upl * * or the follo...
1,337
906
<reponame>xiejiachen/CDial-GPT<filename>od/utils/data_utils.py import pickle import json def load_pkl(path): with open(path, 'rb') as f: data = pickle.load(f) return data def load_txt(path): with open(path, encoding='UTF-8', errors='ignore') as f: data = [i.strip() for i in f.readlines()...
308
841
/* * Copyright 2021 Red Hat, Inc. and/or its affiliates. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
1,436
3,212
<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 "Lic...
726
1,665
<reponame>amnaabbassi/shapash """ Summarize Module """ import warnings import numpy as np import pandas as pd from pandas.core.common import flatten from sklearn.manifold import TSNE from shapash.utils.transform import get_features_transform_mapping def summarize_el(dataframe, mask, prefix): """ Compute a sum...
3,442
1,478
<reponame>greytao/incubator-seatunnel /* * Copyright (C) 2011-2012 Typesafe Inc. <http://typesafe.com> */ package org.apache.seatunnel.shade.com.typesafe.config.impl; import org.apache.seatunnel.shade.com.typesafe.config.ConfigException; import org.apache.seatunnel.shade.com.typesafe.config.ConfigObject; import o...
9,579
778
<reponame>qiongqiong-wu/XPush /* * Copyright (C) 2019 xuexiangjys(<EMAIL>) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Un...
3,403
2,441
<reponame>mananpal1997/pyston # JIT compiles a new function def test_jit_func(): g = {} exec("def f(x): x", g) for i in range(1000): g["f"](i) for i in range(1000): test_jit_func()
97
693
<reponame>Shahzeena/DragRecyclerView package alessandro.draganddrop.model; /** * Created by Alessandro on 12/01/2016. */ public class Item { private int idImage; private String name,description; public Item(int idImage, String name, String description) { this.idImage = idImage; this.name...
320
20,996
{ "index": 41, "lineNumber": 1, "column": 42, "message": "Error: Line 1: Postfix increment/decrement may not have eval or arguments operand in strict mode" }
63
480
<filename>ck/repo/module/package/template-git-soft-customize.py # # Automatically generated # import os ############################################################################## # setup environment def setup(i): s='' cus=i['customize'] env=i['env'] fp=cus.get('full_path','') ...
319