max_stars_count
int64
301
224k
text
stringlengths
6
1.05M
token_count
int64
3
727k
480
/* * Copyright [2013-2021], Alibaba Group Holding Limited * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
2,082
1,672
import os, sys, argparse from os import listdir from os.path import isfile, join from os import walk from dd_client import DD from annoy import AnnoyIndex import shelve import cv2 parser = argparse.ArgumentParser() parser.add_argument("--index",help="repository of images to be indexed") parser.add_argument("--index-ba...
2,001
1,025
//================================================================================== // Copyright (c) 2016 , Advanced Micro Devices, Inc. All rights reserved. // /// \author AMD Developer Tools Team /// \file afHTMLUtils.h /// //================================================================================== #ifnde...
359
2,661
<reponame>ezeeyahoo/earthenterprise<filename>earth_enterprise/src/fusion/gst/vectorquery/QuadSelector.cpp // Copyright 2017 Google Inc. // Copyright 2020 The Open GEE Contributors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. //...
3,375
743
<gh_stars>100-1000 package io.adaptivecards.adaptivecardssample.CustomObjects.Actions; import android.app.Activity; import android.content.Context; import android.graphics.PorterDuff; import androidx.fragment.app.FragmentManager; import android.view.ViewGroup; import android.widget.Button; import org.json.JSONExcepti...
1,890
331
<filename>src/main/java/org/fordes/subview/entity/DTO/SearchDTO.java package org.fordes.subview.entity.DTO; import lombok.Data; import lombok.experimental.Accessors; import org.springframework.beans.factory.annotation.Value; /** * @author fordes on 2021/3/5 */ @Data @Accessors(chain = true) public class SearchDTO {...
167
1,208
import random import pytest from aws_lambda_powertools.shared.cache_dict import LRUDict MAX_CACHE_ITEMS = 50 PREFILL_CACHE_ITEMS = 50 @pytest.fixture def populated_cache(): cache_dict = LRUDict(max_items=MAX_CACHE_ITEMS, **{f"key_{i}": f"val_{i}" for i in range(0, PREFILL_CACHE_ITEMS)}) return cache_dict ...
890
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,010
1,405
package com.network.android.monitor.observer; import android.database.ContentObserver; import com.network.e.a.a; final class d extends ContentObserver { /* renamed from: a reason: collision with root package name */ final /* synthetic */ a f89a; final /* synthetic */ a b; /* JADX INFO: super call m...
222
418
from typing import Dict, Optional, Tuple, Union import torch from torch.distributions import Uniform from kornia.augmentation.random_generator.base import RandomGeneratorBase from kornia.augmentation.utils import _adapted_rsampling, _adapted_uniform, _common_param_check, _joint_range_check from kornia.geometry.bbox i...
10,874
488
<filename>quantlib/termstructures/volatility/api.py<gh_stars>100-1000 from .equityfx.black_constant_vol import BlackConstantVol from .equityfx.black_variance_curve import BlackVarianceCurve from .equityfx.black_variance_surface import BlackVarianceSurface from .volatilitytype import VolatilityType from .swaption.swapti...
136
3,527
package com.github.promeg.pinyinhelper; import com.github.prome.tinypinyin.jmh.FullDiffDict; import net.sourceforge.pinyin4j.PinyinHelper; import net.sourceforge.pinyin4j.format.HanyuPinyinCaseType; import net.sourceforge.pinyin4j.format.HanyuPinyinOutputFormat; import net.sourceforge.pinyin4j.format.HanyuPinyinToneT...
764
2,576
/* * 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 a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law ...
786
309
# -*- coding: utf-8 -*- """ The AdBandits bandit algorithm, mixing Thompson Sampling and BayesUCB. - Reference: [AdBandit: A New Algorithm For Multi-Armed Bandits, F.S.Truzzi, <NAME>, A.H.R.Costa, F.G.Cozman](http://sites.poli.usp.br/p/fabio.cozman/Publications/Article/truzzi-silva-costa-cozman-eniac2013.pdf) - Code i...
2,125
791
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> #include <fcntl.h> #include <sys/mman.h> #include <GL/gl.h> #include <zbuffer.h> #include <soso.h> #ifndef M_PI # define M_PI 3.14159265 #endif int __errno = 0; /* * Draw a gear wheel. You'll probably want to call this function when *...
4,175
2,023
<reponame>tdiprima/code<filename>recipes/Python/577283_Decorator_expose_local_variables_functiafter/recipe-577283.py import new import byteplay as bp import inspect def persistent_locals(f): """Function decorator to expose local variables after execution. Modify the function such that, at the exit of the func...
1,535
2,996
<reponame>opl-/Terasology<gh_stars>1000+ // Copyright 2021 The Terasology Foundation // SPDX-License-Identifier: Apache-2.0 package org.terasology.engine.logic.players.event; import org.terasology.engine.entitySystem.event.Event; import org.terasology.engine.network.ServerEvent; @ServerEvent public class RespawnRequ...
111
722
//MIT License // //Copyright (c) 2017 <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, pub...
4,429
314
<reponame>kolinkrewinkel/Multiplex // // Generated by class-dump 3.5 (64 bit). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>. // #import "CDStructures.h" #import "DVTDocumentLocation-Protocol.h" @interface DVTDocumentLocation (IDESourceControlDocumentLocationAdditions) + (id)file...
215
332
/* * Copyright 2013 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 * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applica...
820
678
/** * This header is generated by class-dump-z 0.2b. * * Source: /System/Library/PrivateFrameworks/OfficeImport.framework/OfficeImport */ #import <OfficeImport/OfficeImport-Structs.h> #import <OfficeImport/MFPath.h> @class NSBezierPathStub; __attribute__((visibility("hidden"))) @interface MFCocoaPath : MFPath { ...
491
317
// // refract/dsd/Utils.h // librefract // // Created by <NAME> on 07/11/2017 // Copyright (c) 2017 Apiary Inc. All rights reserved. // #ifndef REFRACT_DSD_UTILS_H #define REFRACT_DSD_UTILS_H #include <memory> namespace refract { namespace utils { template <typename Container> void move_b...
314
1,253
<reponame>avi-pal/al-go-rithms #include<iostream> #include<stack> using namespace std; bool isbalanced(char* a){ stack<char> s; for(int i=0;a[i]!='\0';i++){ char ch=a[i]; switch(ch){ case '(': case '{': case '[': s.push(ch); break; case ')': if(!s.empty() && s.top()=='('){ s.pop(); br...
550
485
<reponame>bookdash/BookdashAndroidApp<filename>app/src/main/java/org/bookdash/android/presentation/main/MainActivity.java package org.bookdash.android.presentation.main; import android.content.ActivityNotFoundException; import android.content.Intent; import android.net.Uri; import android.os.Bundle; import android.tex...
3,683
679
<reponame>Grosskopf/openoffice /************************************************************** * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The...
3,519
882
<reponame>gigliovale/h2o import unittest, random, sys, time sys.path.extend(['.','..','../..','py']) import h2o, h2o_cmd, h2o_rf, h2o_import as h2i, h2o_util paramDict = { # 2 new 'destination_key': ['model_keyA', '012345', '__hello'], 'cols': [None, None, None, None, None, '0,1,2,3,4,5,6,7,8','C1,C2,C3,C4...
1,865
12,278
<reponame>randolphwong/mcsema //===----------------------------------------------------------------------===// // // The LLVM Compiler Infrastructure // // This file is dual licensed under the MIT and the University of Illinois Open // Source Licenses. See LICENSE.TXT for details. // //===----------...
298
339
<filename>nextgen/bcbio/__init__.py """Blue collar bioinformatics main module. """ __import__('pkg_resources').declare_namespace(__name__)
48
2,816
//===----------------------------------------------------------------------===// // DuckDB // // duckdb/common/types/hash.hpp // // //===----------------------------------------------------------------------===// #pragma once #include "duckdb/common/common.hpp" #include "duckdb/common/types.hp...
470
2,917
// // DynamicColorTvOs.h // DynamicColorTvOs // // Created by <NAME> on 15/01/2017. // Copyright © 2017 <NAME>. All rights reserved. // #import <UIKit/UIKit.h> //! Project version number for DynamicColorTvOs. FOUNDATION_EXPORT double DynamicColorTvOsVersionNumber; //! Project version string for DynamicColorTvOs....
163
575
// Copyright 2015 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "third_party/blink/renderer/core/dom/flat_tree_traversal.h" #include <memory> #include "testing/gtest/include/gtest/gtest.h" #include "third_par...
11,734
489
<reponame>zjzh/wharfee<gh_stars>100-1000 # -*- coding: utf-8 -*- from __future__ import unicode_literals from __future__ import print_function """ Helpers to connect to docker. """ import sys # make sure docker-py client API class according to docker-py version from docker import version_info as docker_version_info ...
518
348
<gh_stars>100-1000 {"nom":"Fismes","circ":"2ème circonscription","dpt":"Marne","inscrits":3957,"abs":2556,"votants":1401,"blancs":136,"nuls":73,"exp":1192,"res":[{"nuance":"LR","nom":"<NAME>","voix":605},{"nuance":"REM","nom":"<NAME>","voix":587}]}
101
543
<reponame>texus/TGUI ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // // TGUI - Texus' Graphical User Interface // Copyright (C) 2012-2021 <NAME> (<EMAIL>) // // This software is provided 'as-is', without any express or implied warranty...
1,036
6,197
package com.kickstarter.libs.utils; import com.kickstarter.libs.Range; import junit.framework.TestCase; import java.util.Arrays; import java.util.Collections; import java.util.List; public final class RangeUtilsTest extends TestCase { public void testRanges() { final List<Integer> xs = Arrays.asList(1, 3, 4,...
626
13,057
<reponame>joeshannon/mockito /* * Copyright (c) 2017 Mockito contributors * This program is made available under the terms of the MIT License. */ package org.mockitousage.junitrule; import static org.junit.Assert.assertEquals; import static org.mockito.BDDMockito.given; import static org.mockito.BDDMockito.willRetu...
4,058
1,168
/** * The MIT License * Copyright © 2010 JmxTrans team * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, mo...
4,313
1,658
/* * Copyright (C) 2018-2022 Chatopera Inc, <https://www.chatopera.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 * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless requ...
563
1,130
<reponame>domesticmouse/SmallerC<filename>v0100/tests/chars.c /* How to compile for DOS (all mode(l)s: tiny/.COM, small/.EXE, huge/.EXE, unreal/.EXE, 32-bit DPMI/.EXE): smlrcc -dost chars.c -o charsdt.com smlrcc -doss chars.c -o charsds.exe smlrcc -dosh chars.c -o charsdh.exe smlrcc -dosu chars.c -o c...
4,128
9,225
import pytest from _pytest.stash import Stash from _pytest.stash import StashKey def test_stash() -> None: stash = Stash() assert len(stash) == 0 assert not stash key1 = StashKey[str]() key2 = StashKey[int]() # Basic functionality - single key. assert key1 not in stash stash[key1] =...
742
369
/* * Copyright © 2018 <NAME>, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to i...
3,896
8,772
package org.apereo.cas.pm; import org.apereo.cas.pm.impl.history.PasswordHistoryEntity; import org.springframework.core.Ordered; import java.util.Collection; /** * This is {@link PasswordHistoryService}. * * @author <NAME> * @since 6.1.0 */ public interface PasswordHistoryService extends Ordered { @Overri...
470
2,151
<gh_stars>1000+ // 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 "services/preferences/unittest_common.h" namespace prefs { PrefStoreObserverMock::PrefStoreObserverMock() {} PrefStoreObserverM...
265
13,648
import bench def test(num): for i in iter(range(num // 20)): enumerate([1, 2], 1) bench.run(test)
51
832
<filename>CDDStoreDemo/CDDStoreDemo/Classes/BeautyShop(美店)/Main/View/Cell/DCBeautyHotTopicCell.h<gh_stars>100-1000 // // DCBeautyHotTopicCell.h // CDDStoreDemo // // Created by 陈甸甸 on 2017/12/7. // Copyright © 2017年 RocketsChen. All rights reserved. // #import <UIKit/UIKit.h> @class DCBeautyHotItem; @interface DC...
182
1,220
package cn.enilu.flash.wrapper; import cn.enilu.flash.service.system.impl.ConstantFactory; import cn.enilu.flash.warpper.BaseControllerWrapper; import java.util.Map; /** * descript * * @Author enilu * @Date 2021/7/25 2:20 * @Version 1.0 */ public class TaskWrapper extends BaseControllerWrapper { public Tas...
228
956
<reponame>ajitkhaparde/trex-core /* SPDX-License-Identifier: BSD-3-Clause * Copyright(c) 2017 Cavium, Inc */ #ifndef __OCTEONTX_POOL_LOGS_H__ #define __OCTEONTX_POOL_LOGS_H__ #include <rte_debug.h> #define FPAVF_LOG(level, fmt, args...) \ rte_log(RTE_LOG_ ## level, octeontx_logtype_fpavf,\ "%s() line %u: " fmt...
342
66,762
<filename>src/ci/docker/scripts/qemu-bare-bones-addentropy.c #include <assert.h> #include <stdint.h> #include <sys/ioctl.h> #include <stdio.h> #include <unistd.h> #include <fcntl.h> #include <linux/random.h> #define N 2048 struct entropy { int ent_count; int size; unsigned char data[N]; }; int main() { struc...
276
5,169
{ "name": "JBLoginDataCommands", "version": "0.1.1", "summary": "Some protocols for formalizing the login process of an login view.", "description": "Some protocols for formalizing the login process of an login view (have a look at JBLoginView).", "homepage": "https://github.com/barteljan/JBLoginDataCommands"...
315
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 ...
4,246
3,428
<reponame>ghalimi/stdlib {"id":"00234","group":"spam-2","checksum":{"type":"MD5","value":"64c94421011e896adab852386cd314d8"},"text":"From <EMAIL> Wed Jul 3 12:07:51 2002\nReturn-Path: <<EMAIL>>\nDelivered-To: <EMAIL>inc.com\nReceived: from localhost (localhost [127.0.0.1])\n\tby phobos.labs.netnoteinc.com (Postfix on...
877
13,162
#include "Operators.h" namespace IR { const char* getOpcodeName(Opcode opcode) { switch(opcode) { #define VISIT_OPCODE(encoding,name,nameString,Imm,...) case Opcode::name: return nameString; ENUM_OPERATORS(VISIT_OPCODE) #undef VISIT_OPCODE default: return "unknown"; }; } }
125
2,151
<reponame>zipated/src { "name": "content_utility", "display_name": "Content (utility process)", "interface_provider_specs": { "service_manager:connector": { "provides": { "browser": [ "content.mojom.Child", "content.mojom.ChildControl", "content.mojom.ChildHistogram...
665
371
{ "name": "relative-deps", "version": "1.0.5", "description": "Installs local dependencies for optimal developer experience", "main": "index.js", "scripts": { "test": "echo \"Error: no test specified\" && exit 1" }, "bin": { "relative-deps": "./cli.js" }, "repository": { "type": "git", ...
424
312
/******************************************************************************* * Copyright (c) 2015 Eclipse RDF4J contributors, Aduna, and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Distribution License v1.0 * which accompanies th...
228
692
from collections import namedtuple import torch from torch.nn import Conv2d, BatchNorm2d, PReLU, ReLU, Sigmoid, MaxPool2d, AdaptiveAvgPool2d, Sequential, Module, Linear import torch.nn.functional as F """ ArcFace implementation from [TreB1eN](https://github.com/TreB1eN/InsightFace_Pytorch) """ class Flatten(Module):...
2,378
360
import torch import torch.nn.functional as F from lietorch import SE3, Sim3 MIN_DEPTH = 0.1 def extract_intrinsics(intrinsics): return intrinsics[...,None,None,:].unbind(dim=-1) def iproj(disps, intrinsics): """ pinhole camera inverse projection """ ht, wd = disps.shape[2:] fx, fy, cx, cy = extract_...
1,733
450
<reponame>OpenHFT/Chronicle-Core /* * Copyright 2016-2020 chronicle.software * * https://chronicle.software * * 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.apach...
1,457
964
<gh_stars>100-1000 [ { "queryName": "IAM Audit Not Properly Configured", "severity": "HIGH", "line": 3 }, { "queryName": "IAM Audit Not Properly Configured", "severity": "HIGH", "line": 9 }, { "queryName": "IAM Audit Not Properly Configured", "severity": "HIGH", "line": 19 ...
189
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...
963
1,900
/* * Copyright Terracotta, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
1,253
456
#include <ospray/ospray.h> #include <iostream> int main(int argc, char* argv[]) { if (ospInit() != OSP_NO_ERROR) { std::cout << "Could not initialize ospray" << std::endl; return 0; } ospShutdown(); return 0; }
123
1,607
<filename>src/test/java/org/assertj/core/internal/strings/Strings_assertContainsAnyOf_Test.java /* * 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...
1,359
12,711
{"type":"tag","loc":{"start":{"line":1,"column":1},"filename":"/cases/escape-chars.pug","end":{"line":1,"column":7}},"val":"script"} {"type":"dot","loc":{"start":{"line":1,"column":7},"filename":"/cases/escape-chars.pug","end":{"line":1,"column":8}}} {"type":"start-pipeless-text","loc":{"start":{"line":1,"column":8},"f...
270
711
<reponame>jingetiema2100/MicroCommunity<gh_stars>100-1000 package com.java110.order.smo.impl; import com.alibaba.fastjson.JSONArray; import com.alibaba.fastjson.JSONObject; import com.java110.core.client.RestTemplate; import com.java110.core.factory.GenerateCodeFactory; import com.java110.dto.order.OrderDto; import co...
6,232
369
<reponame>zuxqoj/cdap<filename>cdap-common/src/main/java/io/cdap/cdap/gateway/handlers/ConfigService.java /* * Copyright © 2015 <NAME>, 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 ...
892
6,180
import unittest import pytest import numpy import cupy from cupy import testing class TestPiecewise(unittest.TestCase): @testing.for_all_dtypes() @testing.numpy_cupy_array_equal() def test_piecewise(self, xp, dtype): x = xp.linspace(2.5, 12.5, 6, dtype=dtype) condlist = [x < 0, x >= 0, ...
2,131
1,433
{ "schemaVersion": 1, "id": "fabric-tool-attribute-api-v1-testmod", "name": "Fabric Tool Attribute API (v1) Test Mod", "version": "1.0.0", "environment": "*", "license": "Apache-2.0", "depends": { "fabric-tool-attribute-api-v1": "*" }, "entrypoints": { "main": [ "net.fabricmc.fabric.test...
165
461
<filename>11-Binary-Tree/2-Importance/0236-lowest-common-ancestor-of-a-binary-tree/src/Trie2.java public class Trie2 { private Node root; private class Node { private Node[] next; private boolean isWord; public Node() { // word 和 prefix 仅由小写英文字母组成 next = new No...
945
3,428
<gh_stars>1000+ {"id":"00231","group":"easy-ham-1","checksum":{"type":"MD5","value":"b295668c907d5f4d50f8e9db78ae5714"},"text":"From <EMAIL> Wed Aug 28 13:45:01 2002\nReturn-Path: <<EMAIL>>\nDelivered-To: zzzz<EMAIL>.netnoteinc.com\nReceived: from localhost (localhost [127.0.0.1])\n\tby phobos.labs.netnoteinc.com (Pos...
1,274
3,804
//------------------------------------------------------------------------------ /* This file is part of rippled: https://github.com/ripple/rippled Copyright 2020 Ripple Labs Inc. Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, p...
4,995
1,364
<filename>src/kilim/examples/Group.java /* Copyright (c) 2006, <NAME> * * You may distribute this software under the terms of the license * specified in the file "License" */ package kilim.examples; import kilim.Pausable; import kilim.Task; import kilim.TaskGroup; public class Group { public static void mai...
316
14,668
<filename>tools/android/push_apps_to_background/src/org/chromium/push_apps_to_background/PushAppsToBackgroundActivity.java // Copyright 2016 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.push_apps_...
225
636
# demonstrate how to use PyMOL's atom pick "events" in a Wizard # Note: To pick an atom or bond, you need to use the button mouse actions "PkAt" # or "PkTB" respectively. By default, the "PkTB" is not available in the # default 3-Button Viewing mode, but it can be used in the 3-Button Editing # mod...
1,018
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" namespace...
1,246
415
/************************************************ ** framebufferObject.cpp ** ** --------------------- ** ** ** ** This is the frame-work for general purpose ** ** initialization of a framebuffer object, ** ** as specified in...
3,475
375
/* * * Copyright 2018 <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 law or agreed to in wri...
430
348
<gh_stars>100-1000 {"nom":"Verzy","circ":"3ème circonscription","dpt":"Marne","inscrits":802,"abs":425,"votants":377,"blancs":5,"nuls":0,"exp":372,"res":[{"nuance":"REM","nom":"<NAME>","voix":149},{"nuance":"LR","nom":"Mme <NAME>","voix":76},{"nuance":"FN","nom":"<NAME>","voix":60},{"nuance":"FI","nom":"M. <NAME>","voi...
258
2,087
from PyQt5.QtGui import * from PyQt5.QtWidgets import * from PyQt5.QtCore import * from MainWindow import Ui_MainWindow from datetime import datetime import json import os import sys import requests from urllib.parse import urlencode OPENWEATHERMAP_API_KEY = os.environ.get('OPENWEATHERMAP_API_KEY') """ Get an API k...
1,815
572
from datetime import datetime from peewee import ( SqliteDatabase, Model, TextField, ForeignKeyField, DateTimeField, IntegerField ) db = SqliteDatabase('notas.db') class BaseModel(Model): class Meta: database = db class Pessoa(BaseModel): nome = TextField() email = TextField(unique=Tru...
323
3,631
<reponame>kostola/drools /* * Copyright (c) 2020. 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. * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or...
1,203
1,026
import math import numpy as np import torch from hivemind.compression.base import CompressionBase, CompressionInfo from hivemind.proto import runtime_pb2 class Float16Compression(CompressionBase): compression_type = runtime_pb2.CompressionType.FLOAT16 FP16_MIN, FP16_MAX = torch.finfo(torch.float16).min, tor...
1,755
1,781
<filename>src/chapter1/section4/Exercise14_4Sum.java package chapter1.section4; import edu.princeton.cs.algs4.StdOut; import java.util.*; /** * Created by <NAME> on 9/29/16. */ public class Exercise14_4Sum { public static void main(String[] args) { // Method 1 StdOut.println("Method 1"); ...
2,341
11,356
/* * Copyright 2010-2017 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 "license" fil...
874
377
#ifndef PRECOMPILED_FOR_PLUGIN_H #define PRECOMPILED_FOR_PLUGIN_H #include <iostream> #include <vector> #include <memory> #include <string> #include <map> #include <functional> using namespace std; #endif
82
939
<reponame>srihari-humbarwadi/neural-structured-learning /*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 https://www.apache.org/licenses/LICENSE-2.0 Unless required...
1,753
448
<gh_stars>100-1000 // // Created by SuperMan on 2020/10/19. // #include <utils/Android/FindClass.h> #include <utils/Android/NewStringUTF.h> #include <utils/Android/NewByteArray.h> #include <utils/Android/NewLinkedList.h> #include "JEncryptionInfo.h" jclass jEncryptionInfo_class = nullptr; jmethodID jEncryptionInfo_in...
2,125
322
/* This file was automatically generated by CasADi. The CasADi copyright holders make no ownership claim of its contents. */ #ifdef __cplusplus extern "C" { #endif #ifndef casadi_real #define casadi_real double #endif #ifndef casadi_int #define casadi_int int #endif int position(const casadi_real** arg, casadi_re...
311
342
/* * Copyright 1999-2019 Alibaba Group Holding 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.org/licenses/LICENSE-2.0 * * Unless required by applicab...
1,794
377
<reponame>gburd/Kundera /******************************************************************************* * * Copyright 2012 Impetus Infotech. * * * * 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...
1,636
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...
670
1,799
<reponame>sidharta/cucumber-jvm<gh_stars>1000+ package io.cucumber.core.runner; import io.cucumber.core.stepexpression.ExpressionArgument; import io.cucumber.plugin.event.Argument; import java.util.ArrayList; import java.util.Collection; import java.util.List; import java.util.stream.Collectors; final class Definiti...
1,055
2,644
#pragma once #define __NVIC_PRIO_BITS 3 #define DEFIRQ(x) x##_IRQn, typedef enum { Reset_IRQn = -15, NonMaskableInt_IRQn = -14, HardFault_IRQn = -13, MemoryManagement_IRQn = -12, BusFault_IRQn = -11, UsageFault_IRQn = -10, SVCall_IRQn = -5, DebugMonitor_IRQn = -4, PendSV_IRQn = ...
220
2,360
# Copyright 2013-2021 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * class RProcessx(RPackage): """Execute and Control System Processes Tools to run system proc...
903
465
<gh_stars>100-1000 /* * Copyright (c) 2018 Uber Technologies, Inc. * 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, cop...
4,104
319
<reponame>Celebrate-future/openimaj /** * Copyright (c) 2011, The University of Southampton and the individual contributors. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * * Redistr...
813
3,428
<reponame>ghalimi/stdlib {"id":"00220","group":"easy-ham-2","checksum":{"type":"MD5","value":"c07529e1ed4db87e5f59922634b6c2ec"},"text":"From <EMAIL> Fri Aug 2 09:46:04 2002\nReturn-Path: <<EMAIL>>\nDelivered-To: y<EMAIL>.netnoteinc.com\nReceived: from localhost (localhost [127.0.0.1])\n\tby phobos.labs.netnoteinc.co...
1,449
3,084
<reponame>ixjf/Windows-driver-samples /***************************************************************************** * * imagefilter.cpp * * Copyright (c) 2003 Microsoft Corporation. All Rights Reserved. * * DESCRIPTION: * * Contains implementation of Image Processing Filer with "filtering stream"....
33,167
2,805
<filename>ckan/views/dashboard.py # encoding: utf-8 import logging from flask import Blueprint import ckan.lib.base as base import ckan.lib.helpers as h import ckan.logic as logic import ckan.model as model from ckan.common import _, g, request from ckan.views.user import _extra_template_variables log = logging.getL...
2,194
584
/****************************************************************************** * * This file is provided under a dual BSD/GPLv2 license. When using or * redistributing this file, you may do so under either license. * * GPL LICENSE SUMMARY * * Copyright(c) 2012 - 2014 Intel Corporation. All rights reserv...
2,970