blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 112 | license_type stringclasses 2
values | repo_name stringlengths 5 115 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 777
values | visit_date timestamp[us]date 2015-08-06 10:31:46 2023-09-06 10:44:38 | revision_date timestamp[us]date 1970-01-01 02:38:32 2037-05-03 13:00:00 | committer_date timestamp[us]date 1970-01-01 02:38:32 2023-09-06 01:08:06 | github_id int64 4.92k 681M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 22
values | gha_event_created_at timestamp[us]date 2012-06-04 01:52:49 2023-09-14 21:59:50 ⌀ | gha_created_at timestamp[us]date 2008-05-22 07:58:19 2023-08-21 12:35:19 ⌀ | gha_language stringclasses 149
values | src_encoding stringclasses 26
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 3 10.2M | extension stringclasses 188
values | content stringlengths 3 10.2M | authors listlengths 1 1 | author_id stringlengths 1 132 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ebda7187c990755ed5402fe5d8d27ea22d320b99 | a84b99ce26f86a467df95b3ef2b57dd15cb1b49e | /boston_housing_v1.py | 3422493d35a3c0ff7bae1422e2c0fc0720a5c705 | [] | no_license | yanqinghao/KerasDL | 3ea6246495bc01bda5792a7146ad4519088375dc | 853f2872fff600fdd62d882d52d6dd6f82200cd8 | refs/heads/master | 2020-03-28T14:07:10.799496 | 2019-05-20T06:17:51 | 2019-05-20T06:17:51 | 148,458,453 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,120 | py | import ptvsd
# Allow other computers to attach to ptvsd at this IP address and port.
ptvsd.enable_attach(address=('10.122.24.46', 3000), redirect_output=True)
# Pause the program until a remote debugger is attached
ptvsd.wait_for_attach()
import ssl
ssl._create_default_https_context = ssl._create_unverified_context... | [
"187280967@qq.com"
] | 187280967@qq.com |
1467080cc60312b2af114571aaf42827195feca1 | 0fccee4c738449f5e0a8f52ea5acabf51db0e910 | /genfragments/EightTeV/LQ/LQToCMu_M_800_TuneZ2star_8TeV_pythia6_cff.py | 1e0c27817afa82ce4cc3f09aea6c3fd1520590fb | [] | no_license | cms-sw/genproductions | f308ffaf3586c19b29853db40e6d662e937940ff | dd3d3a3826343d4f75ec36b4662b6e9ff1f270f4 | refs/heads/master | 2023-08-30T17:26:02.581596 | 2023-08-29T14:53:43 | 2023-08-29T14:53:43 | 11,424,867 | 69 | 987 | null | 2023-09-14T12:41:28 | 2013-07-15T14:18:33 | Python | UTF-8 | Python | false | false | 1,777 | py | import FWCore.ParameterSet.Config as cms
source = cms.Source("EmptySource")
from Configuration.Generator.PythiaUEZ2starSettings_cfi import *
generator = cms.EDFilter("Pythia6GeneratorFilter",
pythiaHepMCVerbosity = cms.untracked.bool(False),
maxEventsToPrint = cms.untracked.int32(0),
pythiaPylistVerbosity... | [
"sha1-45889d0b422ced4b08fb223eae59c585c331ccec@cern.ch"
] | sha1-45889d0b422ced4b08fb223eae59c585c331ccec@cern.ch |
32d68d090c8a27cb436b9d09c1bee0e8e9633b49 | d4a78a9099884c1e1c203f7e5b78b844de053ff7 | /tensorflow/contrib/boosted_trees/estimator_batch/estimator_test.py | ee052ac60387d8f993e4942dd7dff39e191dd3a4 | [
"Apache-2.0"
] | permissive | pint1022/tensorflow | b4b7632c0f833135a0bb37ab5a939a6c1ec51ef6 | ab1f872bbcf7749112f76a7f9ba17406e8fbbf4e | refs/heads/master | 2020-04-15T00:16:48.132100 | 2019-02-05T17:48:11 | 2019-02-05T17:48:11 | 164,233,910 | 2 | 2 | Apache-2.0 | 2019-01-05T16:53:25 | 2019-01-05T16:53:25 | null | UTF-8 | Python | false | false | 31,748 | py | # Copyright 2017 The TensorFlow 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 applica... | [
"gardener@tensorflow.org"
] | gardener@tensorflow.org |
c9d58c17e864ab025f0a150793e137ea2d21d2f7 | 009628e385aca8552dad5c1c5cba018ca6e5954d | /scripts/cazalsconnolling | 63c09a69565fefe3cdc31f78c056fdc17bca2aa8 | [] | no_license | csrocha/python-mtk | 565ebcfeb668a6409d48135bf081321d8121b263 | c3ba520f55c2e204feb6b98251abcb046e51c6cd | refs/heads/main | 2023-01-12T02:46:44.457520 | 2020-11-17T20:20:59 | 2020-11-17T20:20:59 | 313,939,251 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,092 | #!/usr/bin/python
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
import sys, os
import os.path as path
from math import copysign
from numpy import array, zeros, arange, float, abs, argmax, all
from numpy import ndenumerate,round, dot, outer, arccos, pi, nan
from numpy.linalg import det, norm
from mt... | [
"cristian.rocha@moldeo.coop"
] | cristian.rocha@moldeo.coop | |
c4166f9d26df53b1e991a74fb3dd41c6032084d8 | 75c903567168c968ceb8ff780ff9b7c596620655 | /tests.py | cce6586afa285416561ed2d27e0ae3797ce08c31 | [
"MIT"
] | permissive | AxelVoitier/streams | 5f09e109c3743746e597f93d1bc13c0970c16f1e | 7624472790f33a1a268697cec3173224c60af74b | refs/heads/master | 2021-01-15T23:07:31.112439 | 2014-04-06T09:52:46 | 2014-04-06T09:52:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,234 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
###############################################################################
from itertools import chain
from operator import mul
from random import shuffle
try:
from cdecimal import Decimal
except ImportError:
from decimal import Decimal
try:
from unitt... | [
"nineseconds@yandex.ru"
] | nineseconds@yandex.ru |
b2514650358f9f9158ce3d6cff20a73195fa8295 | c18bdb1abf3bb9be1997a568e2260850c11137ab | /lib/tinyusb/hw/mcu/microchip/samd/asf4/tools/update_from_atmel_start.py | 0ef2a04c372b36a6d8f7d128ead7f5776f2a39e1 | [
"MIT"
] | permissive | diybitcoinhardware/micropython | a730026ad7fa4e3cff4cb5ed14dd6b3f1fb54734 | 6bdf1b69162b673d48042ccd021f9efa019091fa | refs/heads/master | 2022-11-23T04:42:47.976301 | 2022-11-07T14:25:09 | 2022-11-07T14:25:28 | 182,322,508 | 4 | 4 | MIT | 2022-10-16T11:47:28 | 2019-04-19T20:34:49 | C | UTF-8 | Python | false | false | 2,514 | py | import requests
import zipfile
import os.path
import shutil
import os
import os.path
import sys
import subprocess
if not subprocess.check_output(['git', 'rev-parse', '--show-toplevel'], universal_newlines=True).strip() == os.getcwd():
print('Please run "{}" from the top directory in the asf4 repo.'.format(sys.argv... | [
"snigirev.stepan@gmail.com"
] | snigirev.stepan@gmail.com |
eb41704997bf530667ea55f44b8a1c784eaeb6b5 | 871454bb6203d26f93c144cb8604e5c6276ab94b | /auth/demo/serializers.py | eae85b34749d46389279c7317dc7fb45f67302a9 | [] | no_license | netology-code/DJ_code | 1b13a51b7f85c1f35dcfb2b2d010fe2ded7eb297 | a9b657aa6e2d9b3a9f4f4c4c120bb30e8802c042 | refs/heads/master | 2023-06-20T11:35:44.791530 | 2021-07-25T14:41:21 | 2021-07-25T14:41:21 | 388,563,577 | 3 | 44 | null | null | null | null | UTF-8 | Python | false | false | 254 | py | from rest_framework import serializers
from demo.models import Adv
class AdvSerializer(serializers.ModelSerializer):
class Meta:
model = Adv
fields = ['id', 'user', 'text', 'created_at', 'open']
read_only_fields = ['user',] | [
"oz.sasha.ivanov@gmail.com"
] | oz.sasha.ivanov@gmail.com |
56f1c883e8021be17c0479ddf05c910dcebf5f12 | 48e124e97cc776feb0ad6d17b9ef1dfa24e2e474 | /sdk/python/pulumi_azure_native/compute/virtual_machine.py | dbc0cf23804156f5474f9678ad015327f98ecc81 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | bpkgoud/pulumi-azure-native | 0817502630062efbc35134410c4a784b61a4736d | a3215fe1b87fba69294f248017b1591767c2b96c | refs/heads/master | 2023-08-29T22:39:49.984212 | 2021-11-15T12:43:41 | 2021-11-15T12:43:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 62,321 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from .. import _utilities
from... | [
"noreply@github.com"
] | bpkgoud.noreply@github.com |
2b21d1be3b1a32f23cc147e1cc53f5d752653ca1 | 7d096568677660790479d87c22b47aae838ef96b | /stubs-legacy/System/Text/__init__.py | 740ee3c117f9b4b8520efecb912e7b6b83d5b0bd | [
"MIT"
] | permissive | NISystemsEngineering/rfmx-pythonnet | 30adbdd5660b0d755957f35b68a4c2f60065800c | cd4f90a88a37ed043df880972cb55dfe18883bb7 | refs/heads/master | 2023-02-04T00:39:41.107043 | 2023-02-01T21:58:50 | 2023-02-01T21:58:50 | 191,603,578 | 7 | 5 | MIT | 2023-02-01T21:58:52 | 2019-06-12T16:02:32 | Python | UTF-8 | Python | false | false | 139,587 | py | # encoding: utf-8
# module System.Text calls itself Text
# from mscorlib,Version=4.0.0.0,Culture=neutral,PublicKeyToken=b77a5c561934e089,System,Version=4.0.0.0,Culture=neutral,PublicKeyToken=b77a5c561934e089
# by generator 1.145
""" NamespaceTracker represent a CLS namespace. """
# no imports
# no functions
# ... | [
"sean.moore@ni.com"
] | sean.moore@ni.com |
e98cfae6341abe6f37c3f1a0a2427707d096ce33 | fb54704d4a6f9475f42b85d8c470e3425b37dcae | /medium/ex723.py | 72d622c13c82343615c20230acd3754aceafcd33 | [] | no_license | ziyuan-shen/leetcode_algorithm_python_solution | b2784071a94b04e687fd536b57e8d5a9ec1a4c05 | 920b65db80031fad45d495431eda8d3fb4ef06e5 | refs/heads/master | 2021-06-27T05:19:47.774044 | 2021-02-04T09:47:30 | 2021-02-04T09:47:30 | 210,991,299 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,893 | py | class Solution:
def crush(self, board):
for r in range(self.nrow):
p1 = 0
p2 = 1
while p2 < self.ncol - 1:
val = abs(board[r][p1])
while p2 < self.ncol and abs(board[r][p2]) == val:
p2 += 1
if p2 - p1 > 2... | [
"ziyuan.shen@duke.edu"
] | ziyuan.shen@duke.edu |
a0f7d764e965e2a2a6b2307b6cffc09c9e55114e | b167407960a3b69b16752590def1a62b297a4b0c | /tools/project-creator/Python2.6.6/Lib/test/test_timeout.py | 48fdc0108adcd87a0723272de8ee9ff835c08394 | [
"MIT"
] | permissive | xcode1986/nineck.ca | 543d1be2066e88a7db3745b483f61daedf5f378a | 637dfec24407d220bb745beacebea4a375bfd78f | refs/heads/master | 2020-04-15T14:48:08.551821 | 2019-01-15T07:36:06 | 2019-01-15T07:36:06 | 164,768,581 | 1 | 1 | MIT | 2019-01-15T08:30:27 | 2019-01-09T02:09:21 | C++ | UTF-8 | Python | false | false | 7,061 | py | """Unit tests for socket timeout feature."""
import unittest
from test import test_support
# This requires the 'network' resource as given on the regrtest command line.
skip_expected = not test_support.is_resource_enabled('network')
import time
import socket
class CreationTestCase(unittest.TestCase):
... | [
"278688386@qq.com"
] | 278688386@qq.com |
ea2aa046e4ada2f0e7f4f8eabf7b353f0795682a | 98c6ea9c884152e8340605a706efefbea6170be5 | /examples/data/Assignment_3/mtledn001/question1.py | d2992358e9f1fd6e7a51fafadabd786f4caafacd | [] | no_license | MrHamdulay/csc3-capstone | 479d659e1dcd28040e83ebd9e3374d0ccc0c6817 | 6f0fa0fa1555ceb1b0fb33f25e9694e68b6a53d2 | refs/heads/master | 2021-03-12T21:55:57.781339 | 2014-09-22T02:22:22 | 2014-09-22T02:22:22 | 22,372,174 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 183 | py | # Draw a rectangle
h = eval(input('Enter the height of the rectangle:\n'))
w= eval(input('Enter the width of the rectangle:\n'))
for i in range(1,h+1):
print("*"*w)
| [
"jarr2000@gmail.com"
] | jarr2000@gmail.com |
a8f1dd9db7c0ce138615ac6844de319aaa5c692f | dec29f40788478f73798f23b79ca892b3121150a | /apps/product/migrations/0006_product_featured.py | 239bba971c32d72c05c0f20fc7113bd3b3a59639 | [] | no_license | RonaldTheodoro/django-ecommerce | 2c661e6f3ae0154ecb7a8e25183875da8c27d14f | 9097049107e5a7ab52474aa89fe40f02689fb24a | refs/heads/master | 2021-05-06T02:08:51.166682 | 2017-12-17T00:32:03 | 2017-12-17T00:32:03 | 114,499,259 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 454 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.7 on 2017-11-30 11:31
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('product', '0005_auto_20171119_1838'),
]
operations = [
migrations.AddField(... | [
"ronald.silva4@fatec.sp.gov.br"
] | ronald.silva4@fatec.sp.gov.br |
52a14bcf8d67657749c1e9d1a0a544f03ad604c3 | 6644e20a38f22b2b0842981b9b4855fb08bb0113 | /exer706.py | d303559ba7fbd7a9ddd388a86fe41bc3f199b33d | [
"MIT"
] | permissive | profnssorg/valmorMantelli1 | 506acb35243aeea24701d70e369280f064a3024e | a9a42218b54da208e834f333aa5242d14639b28b | refs/heads/master | 2020-04-11T13:55:03.354177 | 2019-01-18T20:28:33 | 2019-01-18T20:28:33 | 161,834,724 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 941 | py | ###Titulo: Leitor de string
###Função: Este programa lê três strings e substitui na primeira os caracteres da segunda e terceira
###Autor: Valmor Mantelli Jr.
###Data: 08/01/2019
###Versão: 0.0.13
# Declaração de variáveis
f = ""
s = ""
t = ""
x = ""
p = ""
y = 0
#Entrada de dados
f = input("Digite a primeira... | [
"noreply@github.com"
] | profnssorg.noreply@github.com |
e88c2e150d4d4d9f1fee48c6f67a8495f4ed9ccc | d2cb388a385598489e36817afb15502596780dc2 | /hedgehog/test_bayes_net.py | 4ac37b9ca124ff2baad63ef64502765f00f3f245 | [
"MIT"
] | permissive | dormanh/hedgehog | 2ab5bd0fe58e8e8d4fb6410946a532c4a5d09f7c | 6ebb6fad04dcae810e16768cfc90e6a12bbc5cd4 | refs/heads/master | 2023-03-13T05:45:42.648064 | 2021-02-28T13:49:20 | 2021-02-28T13:49:20 | 343,113,432 | 0 | 0 | MIT | 2021-02-28T13:34:20 | 2021-02-28T13:34:19 | null | UTF-8 | Python | false | false | 3,524 | py | import copy
import importlib
import inspect
import math
import random
import numpy as np
import pandas as pd
import pytest
import hedgehog as hh
def check_partial_fit(bn):
"""Checks that partial_fit produces the same result as fit."""
bn_partial = copy.deepcopy(bn)
# Fit the parameters of the first BN... | [
"maxhalford25@gmail.com"
] | maxhalford25@gmail.com |
065879523e20eb090c83b185d34a52dad01e6602 | c71799bd4e86b8354588e395396e559df867843b | /utility/utility_env.py | 07867072760d3dfc04b871d842687612217b90a6 | [] | no_license | jacob-heglund/capture-the-flag | ab564c6f271dd2bb2bc07dd4660eb0798f5480f4 | 99423e6606fa4f32358df91f83d69b39c68c6593 | refs/heads/master | 2020-09-06T20:03:17.997672 | 2019-11-08T19:37:31 | 2019-11-08T19:37:31 | 220,535,046 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,781 | py | import numpy as np
import gym_cap.envs.const as CONST
UNKNOWN = CONST.UNKNOWN # -1
TEAM1_BG = CONST.TEAM1_BACKGROUND # 0
TEAM2_BG = CONST.TEAM2_BACKGROUND # 1
TEAM1_AG = CONST.TEAM1_UGV # 2
TEAM1_UAV= CONST.TEAM1_UAV # 3
TEAM2_AG = CONST.TEAM2_UGV # 4
TEAM2_UAV= CONST.TEAM2_UAV # ... | [
"jheglun2@illinois.edu"
] | jheglun2@illinois.edu |
6a61a4502a0334d46da5be716ffb38dbcc31975f | 583fdb9f37dea28ada24e335f1e44ba6cf587770 | /860 柠檬水找零.py | 109ef98e4711690d86ba8fbc1ce323e5179e55a1 | [] | no_license | Ford-z/LeetCode | 8c4c30eeaa3d8f02b24c8d0058c60f09c3a6debe | 88eeca3780b4dc77efce4f14d317ed1c872cf650 | refs/heads/master | 2021-11-21T00:51:05.314084 | 2021-09-16T15:45:18 | 2021-09-16T15:45:18 | 194,425,542 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,596 | py | #在柠檬水摊上,每一杯柠檬水的售价为 5 美元。
#顾客排队购买你的产品,(按账单 bills 支付的顺序)一次购买一杯。
#每位顾客只买一杯柠檬水,然后向你付 5 美元、10 美元或 20 美元。你必须给每个顾客正确找零,也就是说净交易是每位顾客向你支付 5 美元。
#注意,一开始你手头没有任何零钱。
#如果你能给每位顾客正确找零,返回 true ,否则返回 false 。
#来源:力扣(LeetCode)
#链接:https://leetcode-cn.com/problems/lemonade-change
#著作权归领扣网络所有。商业转载请联系官方授权,非商业转载请注明出处。
class Solution:
def... | [
"noreply@github.com"
] | Ford-z.noreply@github.com |
1c6da6f5d8052821f26f42065a6f5aaba410456d | dec494542217437afa7f38e8703328b25b183cb8 | /39.py | c80519dded9c7ba9b7dd4286c678e9a42e4168c1 | [] | no_license | Transi-ent/LeetcodeSolver | ee44c9c4d5bce9f11c079c5b27b4b967790cb5cd | a89e19753666657a6f15c1be589b9b2dbd4b6c84 | refs/heads/master | 2021-04-16T20:37:34.710175 | 2021-02-24T03:51:43 | 2021-02-24T03:51:43 | 249,383,432 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,483 | py | class Solution:
"""
回溯法。枝叶粗大,
"""
def combinationSum(self, candidates: list, target: int) -> list:
s = set()
res = self.findCombnt(candidates, target, 0, [],[],s)
print(res)
return res
def findCombnt(self, nums: list, target: int, index: int,
tmpli... | [
"1305113016@qq.com"
] | 1305113016@qq.com |
3a6b487f57c857ad7468ca3079d6f2dcc05ee7d9 | dd31ec8f3f979b0339cf686ce9094def03ef003a | /almoxarifado/admin.py | 439d557537488c4abfc4866aa38d2ec5b78db9fc | [
"MIT"
] | permissive | rvmoura96/projeto-almoxarifado | 872bb945b4057bdbf108776e2101e9966a23f4de | 4ca5e5d00f449a940f7c601479bb3fe14c54f012 | refs/heads/master | 2022-11-11T07:45:33.475443 | 2017-11-21T21:13:19 | 2017-11-21T21:13:19 | 106,044,249 | 1 | 1 | MIT | 2022-10-26T05:02:32 | 2017-10-06T19:48:08 | Python | UTF-8 | Python | false | false | 322 | py | from django.contrib import admin
from .models import Equipamento, Item, Tipo, TipoItens, Modelo, Fabricante
# Register your models here.
admin.site.register(Tipo)
admin.site.register(TipoItens)
admin.site.register(Modelo)
admin.site.register(Fabricante)
admin.site.register(Equipamento)
admin.site.register(Ite... | [
"rvmoura.96@gmail.com"
] | rvmoura.96@gmail.com |
ff9ef6987c579208033a4e26c738b75647883f52 | bb81b9c70f204e636560dc969b68c1654e24cb77 | /tests/i2b2modeltests/metadatatests/test_modifier_dimension.py | 8b6124f32a4a8cc9d09f52c4faf5c4d17e173218 | [
"Apache-2.0"
] | permissive | BD2KOnFHIR/i2b2model | 8f526225498ccfadddeb180e76d644f1098a4041 | 566be446f4b8691f8d82d5d04b7635248aba6041 | refs/heads/master | 2021-04-27T20:52:59.357953 | 2020-04-14T17:01:02 | 2020-04-14T17:01:02 | 122,386,895 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,433 | py | import unittest
from collections import OrderedDict
from datetime import datetime
from dynprops import as_dict, clear
from i2b2model.shared.i2b2core import I2B2Core
from i2b2model.testingutils.base_test_case import BaseTestCase
class ModifierDimensionTestCase(BaseTestCase):
def setUp(self):
clear(I2B2Co... | [
"solbrig.harold@mayo.edu"
] | solbrig.harold@mayo.edu |
dbc9ed063bb15f5e00d2bafe49c707761c1595fe | e58e59ed72562454750c87556bf44d7a4bae5065 | /pymontecarlo_casino2/expander.py | da2650a680f18028b0b14a523f6e6077d26b8430 | [
"Apache-2.0"
] | permissive | tomyanmmx/pymontecarlo-casino2 | 587c67bc32217a5eb23583f58a6a88511f3c69e2 | d1c7eb761ccbde745fe858caf9490e87b13347d5 | refs/heads/master | 2021-05-07T22:59:52.396739 | 2017-09-10T14:22:59 | 2017-09-10T14:22:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 309 | py | """"""
# Standard library modules.
# Third party modules.
# Local modules.
from pymontecarlo.options.program.expander import Expander, expand_to_single
# Globals and constants variables.
class Casino2Expander(Expander):
def expand_analyses(self, analyses):
return expand_to_single(analyses)
| [
"philippe.pinard@gmail.com"
] | philippe.pinard@gmail.com |
22da037eb35ae20878e8e83e233f08cc4cad5413 | 51a37b7108f2f69a1377d98f714711af3c32d0df | /src/leetcode/P430.py | 2e1a4f1b681e32e310db002cc62a8f5a002e90be | [] | no_license | stupidchen/leetcode | 1dd2683ba4b1c0382e9263547d6c623e4979a806 | 72d172ea25777980a49439042dbc39448fcad73d | refs/heads/master | 2022-03-14T21:15:47.263954 | 2022-02-27T15:33:15 | 2022-02-27T15:33:15 | 55,680,865 | 7 | 1 | null | null | null | null | UTF-8 | Python | false | false | 729 | py | """
# Definition for a Node.
class Node:
def __init__(self, val, prev, next, child):
self.val = val
self.prev = prev
self.next = next
self.child = child
"""
def tail(node):
if node is None:
return None
t = node
while t.next is not None:
t = t.next
re... | [
"stupidchen@foxmail.com"
] | stupidchen@foxmail.com |
a7e12fe087d3ae0a715b5abdef52d114f3c2ff4f | 6452098273ff0555d3edf349ed800958cf89b7d8 | /Posts/posts/migrations/0003_auto_20190626_1200.py | 6fb96575c2c8114c2c9aa2295368ad35fb88895a | [] | no_license | karthik018/DjangoPractice | 8a530ec90d6efd7cc9c7122743bc647d6274b736 | 041e1144e8b6153f5f8c0d5a367472f1e68a9dc6 | refs/heads/master | 2020-06-11T08:07:59.201541 | 2019-06-27T08:54:42 | 2019-06-27T08:54:42 | 193,900,339 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 503 | py | # Generated by Django 2.2.2 on 2019-06-26 12:00
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('posts', '0002_auto_20190626_1134'),
]
operations = [
migrations.AlterField(
model_name='comment... | [
"thinkcreative01karthik@gmail.com"
] | thinkcreative01karthik@gmail.com |
db4718b5c11abc46048e756487f6714698f41805 | 20674c17d815214bf66b75be686bb8a45c0f5914 | /version1/415_Add_Strings.py | abfc1fed5d4ddd31c6b7d8e9156cb801b0847556 | [] | no_license | moontree/leetcode | e7b670969fe20785b15aae82996875fd66de1b08 | f2bf9b13508cd01c8f383789569e55a438f77202 | refs/heads/master | 2021-05-20T20:36:45.615420 | 2020-04-02T09:15:26 | 2020-04-02T09:15:26 | 252,408,563 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,058 | py | """
Given two non-negative integers num1 and num2 represented as string, return the sum of num1 and num2.
Note:
The length of both num1 and num2 is < 5100.
Both num1 and num2 contains only digits 0-9.
Both num1 and num2 does not contain any leading zero.
You must not use any built-in BigInteger library or convert the... | [
"zhangchao@zhangchaodeMacBook-Pro.local"
] | zhangchao@zhangchaodeMacBook-Pro.local |
b5e0e9c943a15be5ba40d7ff9c3c755ac2c3a131 | 7748d76ac2557477733c245189a5510e793c965a | /5 - Django/Amadon/apps/amadon/views.py | 9c08620dd6db4778c4a77f3047aef83137c8ccee | [] | no_license | ectom/Coding-Dojo-Python-Stack | 9798fd0c452389d485d343659eed7132c61b9055 | 07d2d48e966f4210627a1a11d561f1d28e8a9982 | refs/heads/master | 2021-06-27T22:59:40.794253 | 2017-09-15T09:54:40 | 2017-09-15T09:54:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,034 | py | from django.shortcuts import render, HttpResponse, redirect
def index(request):
try:
request.session['data']
request.session['total_price'] = 0
request.session['total_quantity'] = 0
except:
request.session['data'] = []
return render(request, 'amadon/index.html')
def process... | [
"etom579@gmail.com"
] | etom579@gmail.com |
7934d26cf2260f368ab8d2c022c0b804c116afe7 | acb8acdc1233c248694edbae0092ddfcd46baf52 | /tests/test_dev.py | d45529c4fe3e59423f4ec7d7a35cb4b7573d5d29 | [
"MIT"
] | permissive | tomhamiltonstubber/harrier | c1173dde726b412223a3d867a4184de54060ff79 | f581aa5478cfecb6e9c58c7544584636f868a0c2 | refs/heads/master | 2020-03-21T18:29:25.966509 | 2019-02-19T17:10:56 | 2019-02-19T17:10:56 | 138,894,743 | 0 | 0 | null | 2018-06-27T14:42:50 | 2018-06-27T14:42:50 | null | UTF-8 | Python | false | false | 11,661 | py | import asyncio
from pathlib import Path
from pytest_toolbox import gettree, mktree
from watchgod import Change
import harrier.dev
from harrier.config import Config
from harrier.dev import HarrierWatcher
from harrier.main import dev
class MockServer:
def __init__(self, *args, **kwargs):
pass
async d... | [
"s@muelcolvin.com"
] | s@muelcolvin.com |
5e4a349d5502380c981d7f17a2242bfa4f4745a3 | b7ad21dc8a2bf3459f8f65c7c2df944f168b9086 | /regression_tests/bugs/78484.py | fcfaf180b6266f5d2fdf43038e46c5cdbba6e362 | [] | no_license | italiangrid/WMS-Test-Suite | ee99651cdacbd18ec202ba3d62d6c1aeb02ab405 | 0c72c8a868c671691eae55800e906d55d9b5de0d | refs/heads/master | 2016-09-03T06:28:05.953113 | 2013-11-25T13:29:30 | 2013-11-25T13:29:30 | 3,335,842 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,897 | py | #
# Bug: 78484
# Title: [ YAIM_WMS ] Multiple parameter configuration added in condor_config.local
# Link: https://savannah.cern.ch/bugs/?78484
#
#
import logging
from libutils.Exceptions import *
def run(utils):
bug='78484'
logging.info("Start regression test for bug %s"%(bug))
logging.warning("To ve... | [
"akretsis@ceid.upatras.gr"
] | akretsis@ceid.upatras.gr |
9ba4a6fbe3c9770a2d39f5f306cacdcfab42f357 | 65cf5e4c6d016a2dd7ddde139d3e65a94fbed9df | /dashboard/config.py | 8916d314290706a3487747ff48734f46805a359b | [
"MIT"
] | permissive | rodriguesfas/ipm | afd188884556cb2f32a685abd64ec3d570af7f6c | 596382123c3d45bde6410672692d1f59ec2d734a | refs/heads/master | 2022-10-04T17:28:14.468166 | 2020-06-03T06:09:56 | 2020-06-03T06:09:56 | 193,582,056 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 126 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# Enable Flask's debugging features. Should be False in production
DEBUG = True | [
"franciscosouzaacer@gmail.com"
] | franciscosouzaacer@gmail.com |
253068a67dcd85f578e3f01e7400efd2cdf1f67e | f2149869f6b2d12ce0fe68cecaf3b7c63dc6d3d8 | /src/paramCube.py | b41e2345df0684e08dc9287533832617e552a305 | [] | no_license | mclaughlin6464/HODEmulator | 35946bb55ead0427970dece32110a5932018d561 | 97a86c6c74cc49689478dde3155ab7a4c89f7c91 | refs/heads/master | 2020-04-05T14:09:05.870165 | 2016-08-31T00:56:44 | 2016-08-31T00:56:44 | 55,720,418 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,599 | py | # This module is similar to testSeveralSteps, but with an increase in scale.
#@Author Sean McLaughlin
import numpy as np
from time import time
from os import path
from itertools import izip
import argparse
from myCats import cat_dict
from allCorrFunc import loadHaloAndModel, popAndCorr, RBINS, MIN_PTCL
from doBatchCa... | [
"mclaughlin6464@gmail.com"
] | mclaughlin6464@gmail.com |
565266b855d7039287e4042a28519c553237365d | 0c5ab5c69ed77ed9a0613e4cefd3fc1b418ceef6 | /FinalProject/WordSeg/SylMap.py | 060d497164e78364b3b7d61ee8d8eeef063be86f | [] | no_license | Neil-Do/HUS-Python | 00831eb1121690f76752867ccfdcb8bd98973af6 | 630849717bb27b99a9ddfb33ae479485ebb032d4 | refs/heads/master | 2020-09-13T10:54:50.523791 | 2020-01-17T06:53:43 | 2020-01-17T06:53:43 | 222,749,058 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 320 | py | class SylMap():
def __init__(self):
sylMapDataFile = open("../data/VNsyl.txt", 'r')
size_ = sylMapDataFile.readline()
self.syl_ = set(syllabel.strip() for syllabel in sylMapDataFile)
sylMapDataFile.close()
def isVNESE(self, token):
return token in self.syl_
# da test
| [
"dotatthanhk60@gmail.com"
] | dotatthanhk60@gmail.com |
01c70cd54c7ba983dca24fdedac9503fe11c80ca | cc26a1bbae6af3dec61fd27e44484e01da21d36e | /Scientific Expedition/Sum by Type/mission.py | 7577f5f610a89a6c3cd896fe72c83b758d036bf5 | [] | no_license | ofisser86/py-check-io | 6bacef0783987e49f3bf28b9bea74e59e4ebb184 | 70469deea240f03199072f2dd28d6819815a2624 | refs/heads/master | 2023-02-02T09:32:53.934629 | 2020-12-16T13:44:51 | 2020-12-16T13:44:51 | 309,277,316 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 731 | py | from typing import Tuple
def sum_by_types(items: list) -> Tuple[str, int]:
# your code here
return "".join([i for i in items if type(i) is str]), sum([i for i in items if type(i) is int])
if __name__ == '__main__':
print("Example:")
print(sum_by_types([]))
# These "asserts" are used for self-ch... | [
"ofisser86@gmail.com"
] | ofisser86@gmail.com |
196450c05cebf762582c46904661852744c4960a | d200a54adcec3a254a909b9689f925c1614f6fb1 | /backend/core/urls.py | 6a071e60621875e2de757a1a6ad7a79bb286993f | [] | no_license | shusaku-ishikawa/binance | 1bbe7f4aaf32c0ade4f67da7a4c1972f414bfa19 | 60bad0848fa4f4666e2476117a79ee8452326ed1 | refs/heads/master | 2022-01-27T01:35:24.038917 | 2019-11-30T12:42:36 | 2019-11-30T12:42:36 | 204,909,653 | 0 | 1 | null | 2022-01-15T05:20:54 | 2019-08-28T10:50:13 | JavaScript | UTF-8 | Python | false | false | 137 | py | from django.contrib import admin
from django.urls import path
app_name = 'core'
urlpatterns = [
path('admin/', admin.site.urls),
]
| [
"ishikawasyuusaku@gmail.com"
] | ishikawasyuusaku@gmail.com |
5accaf4c31a7171c179ad37e1672b2d39ccb1637 | 10874b503afbe8a244e7ece543455e300b3b10d9 | /models/dalle_small/DALLE-pytorch/dalle_pytorch/attention.py | 6a1180cf11ae178ca8ec13bf72c1d13615dd416c | [
"MIT"
] | permissive | j-min/DallEval | 6f67c2d2c2edb412864118fc7e777c7ddfc0c9bb | e4148183ce2b1a592f193cb4c70c839606a7048d | refs/heads/main | 2023-05-22T13:36:37.828483 | 2022-11-15T00:59:07 | 2022-11-15T00:59:07 | 454,800,820 | 113 | 7 | MIT | 2022-12-21T01:27:58 | 2022-02-02T14:12:12 | Jupyter Notebook | UTF-8 | Python | false | false | 12,834 | py | from inspect import isfunction
from math import ceil
import torch
from torch import nn, einsum
import torch.nn.functional as F
from einops import rearrange, repeat
# helpers
def exists(val):
return val is not None
def uniq(arr):
return{el: True for el in arr}.keys()
def default(val, d):
if exists(val):... | [
"heythisischo@gmail.com"
] | heythisischo@gmail.com |
2685be9bebb71c12c8a3a6a0c4af0206ea9d012b | ff7ed554b920bf1871e0e8991e4aa1fb5084f152 | /src/scoring/scorer.py | db30a09dca5aec826b5b5fc8c0f9583ce8c5213c | [
"BSD-3-Clause"
] | permissive | uw-bionlp/ards | 68bfec52c4b2c2a4b4878acf089709cb1ddebddb | e9fc27f7034cc6b54f0ccdba4a58377948cf0258 | refs/heads/main | 2023-04-04T19:48:41.375668 | 2021-04-15T01:05:25 | 2021-04-15T01:05:25 | 358,041,546 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,695 | py | import logging
import os
from collections import OrderedDict, Counter
import pandas as pd
class Scorer(object):
def __init__(self):
pass
def compare(self, T, P):
return None
def combine(self, dfs):
return None
def fit(self, T, P, params=None, path=None):
'''
... | [
"ndobb@uw.edu"
] | ndobb@uw.edu |
cb3db768dc1343418cd45430123426146f56856c | a838d4bed14d5df5314000b41f8318c4ebe0974e | /sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/operations/_deployment_operations_operations.py | a410f6846b1f4e88ddb19e928e3938e34985065a | [
"MIT",
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later"
] | permissive | scbedd/azure-sdk-for-python | ee7cbd6a8725ddd4a6edfde5f40a2a589808daea | cc8bdfceb23e5ae9f78323edc2a4e66e348bb17a | refs/heads/master | 2023-09-01T08:38:56.188954 | 2021-06-17T22:52:28 | 2021-06-17T22:52:28 | 159,568,218 | 2 | 0 | MIT | 2019-08-11T21:16:01 | 2018-11-28T21:34:49 | Python | UTF-8 | Python | false | false | 9,224 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | [
"noreply@github.com"
] | scbedd.noreply@github.com |
07650116b243fdcdc1d07d9421308b6cee3c708e | c4af67db4c523d20f2d55aef90ba77db1fb53c38 | /PlonePAS/pas.py | 64c88fe9034587bc6f6eee27b0ac545a42c18253 | [] | no_license | dtgit/dtedu | e59b16612d7d9ea064026bf80a44657082ef45a3 | d787885fe7ed0de6f9e40e9b05d852a0e9d60677 | refs/heads/master | 2020-04-06T05:22:50.025074 | 2009-04-08T20:13:20 | 2009-04-08T20:13:20 | 171,351 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,706 | py | ##############################################################################
#
# PlonePAS - Adapt PluggableAuthService for use in Plone
# Copyright (C) 2005 Enfold Systems, Kapil Thangavelu, et al
#
# This software is subject to the provisions of the Zope Public License,
# Version 2.1 (ZPL). A copy of the ZPL should... | [
"ron@domU-12-31-39-02-65-03.compute-1.internal"
] | ron@domU-12-31-39-02-65-03.compute-1.internal |
a48fc7b47b8c888ac0173f2c85b6eee2778b957f | eac7f7b96ebce1351dc6b50e45f1fcfa0f930dbb | /python/graphscope/interactive/query.py | b848c3c4251f27b449d1ffbb815dab5ff5b304e6 | [
"Apache-2.0"
] | permissive | Jancd/GraphScope | 82bc43e02717fc3df1811ccfb73f476649b709fa | e162f11886dc49d68038836b665aa5381cea8d24 | refs/heads/main | 2023-01-31T18:40:06.995923 | 2020-12-15T01:24:12 | 2020-12-15T01:24:12 | 321,543,831 | 1 | 0 | Apache-2.0 | 2020-12-15T03:39:00 | 2020-12-15T03:38:59 | null | UTF-8 | Python | false | false | 5,129 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# Copyright 2020 Alibaba Group Holding 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... | [
"linzhu.ht@alibaba-inc.com"
] | linzhu.ht@alibaba-inc.com |
ed4062b3b9dba0e71e56a70a329d543dd325663d | 4f0ceccea62d3c909af88a7e3f5e1d063ed94b2e | /1368_Minimum Cost to Make at Least One Valid Path in a Grid.py | 8406191983ad2ec32fef45f5613be51ea9b98894 | [] | no_license | 0as1s/leetcode | d19c2ec4f96666a03227871b9b21b26adcd6b3b4 | c82d375f8d9d4feeaba243eb5c990c1ba3ec73d2 | refs/heads/master | 2021-05-09T21:30:35.378394 | 2021-02-01T15:37:37 | 2021-02-01T15:37:37 | 118,729,125 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,661 | py | def minCost(self, grid: List[List[int]]) -> int:
if not grid or not grid[0]:
return True
m, n = len(grid), len(grid[0])
directions = [[0,0],[0,1],[0,-1],[1,0],[-1,0]]
q = deque([(0,0,0)])
visit = set()
visit.add((0,0))
while q:
cx, cy, dis = q.popleft()
if cx == m-1 and cy == n-1:
return dis
vis... | [
"still_crazy@qq.com"
] | still_crazy@qq.com |
82613acce0ae9f7f5f98b7e788444a5660de8c5c | 52b5773617a1b972a905de4d692540d26ff74926 | /.history/goatLatin_20200803094226.py | 95977408a574cf0cbbe7838b30f3c6531d9dfa24 | [] | no_license | MaryanneNjeri/pythonModules | 56f54bf098ae58ea069bf33f11ae94fa8eedcabc | f4e56b1e4dda2349267af634a46f6b9df6686020 | refs/heads/master | 2022-12-16T02:59:19.896129 | 2020-09-11T12:05:22 | 2020-09-11T12:05:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 353 | py | def goalLatin(S):
vowels = {'a','e','i','o','u'}
S = S.split(" ")
count = 1
for i in range(len(S)):
begin = 'a'
newWord = ""
if S[i][0] in vowels:
begin = begin * count
newWord += S[i] + "ma" + begin
else:
begin = begin * count
... | [
"mary.jereh@gmail.com"
] | mary.jereh@gmail.com |
1ce1c226b036e66a4128c738fb794ba8a6a298eb | 5a52ccea88f90dd4f1acc2819997fce0dd5ffb7d | /alipay/aop/api/domain/UnitedVoucherDigest.py | 215bbce60af562cae3f1e47b250b8e73ca0210bc | [
"Apache-2.0"
] | permissive | alipay/alipay-sdk-python-all | 8bd20882852ffeb70a6e929038bf88ff1d1eff1c | 1fad300587c9e7e099747305ba9077d4cd7afde9 | refs/heads/master | 2023-08-27T21:35:01.778771 | 2023-08-23T07:12:26 | 2023-08-23T07:12:26 | 133,338,689 | 247 | 70 | Apache-2.0 | 2023-04-25T04:54:02 | 2018-05-14T09:40:54 | Python | UTF-8 | Python | false | false | 5,157 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.constant.ParamConstants import *
class UnitedVoucherDigest(object):
def __init__(self):
self._budget_close = None
self._ceiling_amount = None
self._discount_type = None
self._from_amount = None
... | [
"jishupei.jsp@alibaba-inc.com"
] | jishupei.jsp@alibaba-inc.com |
c8be4275c567f1b45a9c30be24e70d5c9f86cb5f | bc441bb06b8948288f110af63feda4e798f30225 | /terraform_sdk/model/inspection/metric_group_pb2.pyi | 744283cf0fc142859439410d535c139cf855a348 | [
"Apache-2.0"
] | permissive | easyopsapis/easyops-api-python | 23204f8846a332c30f5f3ff627bf220940137b6b | adf6e3bad33fa6266b5fa0a449dd4ac42f8447d0 | refs/heads/master | 2020-06-26T23:38:27.308803 | 2020-06-16T07:25:41 | 2020-06-16T07:25:41 | 199,773,131 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,951 | pyi | # @generated by generate_proto_mypy_stubs.py. Do not edit!
import sys
from google.protobuf.descriptor import (
Descriptor as google___protobuf___descriptor___Descriptor,
)
from google.protobuf.internal.containers import (
RepeatedCompositeFieldContainer as google___protobuf___internal___containers___RepeatedC... | [
"service@easyops.cn"
] | service@easyops.cn |
811d4b3ee04b7828cbc1c09b26fa4f53da40ae09 | 2b28814e50b036a17afb26cd56accdacb6f38854 | /src/api/migrations/0001_initial.py | c91b14a01d4a3367c1fbda7671980d2c60cc7a76 | [
"BSD-2-Clause"
] | permissive | Financial-Times/bullet-train-api | c6660965ca5e8f956b7666bde35b5f64bf18f773 | a54e0df1c85ff353c1b5c3056ea3e3e4d1fc7006 | refs/heads/master | 2023-08-03T16:31:06.503907 | 2021-02-10T09:29:35 | 2021-02-10T09:29:35 | 170,123,292 | 1 | 1 | BSD-3-Clause | 2019-10-01T16:26:51 | 2019-02-11T12:14:35 | Python | UTF-8 | Python | false | false | 4,536 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.1 on 2017-04-20 12:59
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import uuid
class Migration(migrations.Migration):
initial = True
dependencies = [
... | [
"matthewe@solidstategroup.com"
] | matthewe@solidstategroup.com |
60ea8faede03779356d2fbe48b62b1b293086d76 | 1c0175a77bb5edb1a9d2f9ea795cf15b42e5c5c2 | /hackbright.py | 93d596be219ac559ef29f834e8d4ef8136720d13 | [] | no_license | jengrace/project-tracker-flask2 | 89fb53a03c0e07a4c25c3ff45be424c03b7e78d2 | 49125d272537d2dbb8259e2b9b94f8816a3a7d26 | refs/heads/master | 2021-04-30T07:00:24.470001 | 2017-01-25T21:03:10 | 2017-01-25T21:03:10 | 79,973,913 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,368 | py | """Hackbright Project Tracker.
A front-end for a database that allows users to work with students, class
projects, and the grades students receive in class projects.
"""
from flask import Flask
from flask_sqlalchemy import SQLAlchemy
db = SQLAlchemy()
def connect_to_db(app):
"""Connect the database to our Flas... | [
"no-reply@hackbrightacademy.com"
] | no-reply@hackbrightacademy.com |
b96c46eaaad9c98e4ed8795b32c1d40b44d14a6a | 200239bfd98b1bdf4bf19f9aa96007aaada3887d | /ax/core/trial.py | d8e8a130ff8fabcf8927e6711e2e44c19364891e | [
"MIT"
] | permissive | cristicmf/Ax | 18cad5a5ea944f03a4e1ae771036dc8e59369996 | c940dd0ad3a7d01eec7d68f0e51de8b019a19615 | refs/heads/master | 2023-04-29T18:30:19.444123 | 2021-05-13T15:56:03 | 2021-05-13T15:57:02 | 367,475,333 | 0 | 0 | MIT | 2021-05-14T21:00:00 | 2021-05-14T20:43:22 | null | UTF-8 | Python | false | false | 8,740 | py | #!/usr/bin/env python3
# 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 __future__ import annotations
from typing import TYPE_CHECKING, Dict, List, Optional
from ax.core.arm import Arm... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
c9923efa24c881279a13f57397a90a6c1b858295 | a00ed711e3e08b50ad6e91cc07a2cddc4a1de5ea | /scripts/ci/pre_commit/pre_commit_check_2_2_compatibility.py | d4fe0ea78d24abc8a7965ec863bd16283ce84c71 | [
"Apache-2.0",
"BSD-3-Clause",
"MIT"
] | permissive | ishiis/airflow | 4305794e36b611d01f49e3f2401be3dc49782670 | 292440d54f4db84aaf0c5a98cf5fcf34303f2fa8 | refs/heads/master | 2022-07-30T00:51:28.806940 | 2022-07-14T12:07:11 | 2022-07-14T12:07:11 | 209,801,072 | 1 | 0 | Apache-2.0 | 2019-09-20T13:47:26 | 2019-09-20T13:47:26 | null | UTF-8 | Python | false | false | 4,803 | py | #!/usr/bin/env python
# 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
# "Li... | [
"noreply@github.com"
] | ishiis.noreply@github.com |
28643ece960fbdb5ec5bf2ab0ecc38b9f974345c | b8fd7e01a7069a0666eb2fe21991753fd5ff7860 | /Python Language/Stack/3 . top.py | 89b10fca7acd6e331210a9db5f36ac8f9bed3454 | [] | no_license | Jafoor/Leet-Code-Solved-Problems | 0b6be0f3c82b1bc13c0c484782db65601cefa7b8 | 935e5679e04bf6f9c9d8a0bdf8b204923a2bc7a5 | refs/heads/master | 2023-07-02T13:38:59.690783 | 2021-07-19T16:20:48 | 2021-07-19T16:20:48 | 256,105,425 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 571 | py | class Stack:
#declearing stack
def __init__(self):
self.stack = []
#pushing values
def push(self, data):
self.stack.append(data)
#pop element from Stack
def pop(self):
if len(self.stack) <= 0:
return ("No elemennt to pop")
else:
return s... | [
"abujafor.cse11@gmai.com"
] | abujafor.cse11@gmai.com |
e5e2f907488bbd1e533f57e90d04fbf9ca1a94e9 | 33ce95a46bad431fb9acde07f10f472c43533824 | /functions_advanced_exercise/keyword_argument_length.py | 8521f0728b213aa0197f75f270a97e0e6e220239 | [] | no_license | ivan-yosifov88/python_advanced | 91dead1a44771a46e85cecdfc6b02e11c0cb4d91 | 21830aabc87eb28eb32bf3c070bf202b4740f628 | refs/heads/main | 2023-06-29T21:31:30.285019 | 2021-06-23T20:31:36 | 2021-06-23T20:31:36 | 342,571,734 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 148 | py | def kwargs_length(**kwargs):
return len(kwargs)
dictionary = {'name': 'Peter', 'age': 25, 'baba': 'Peter'}
print(kwargs_length(**dictionary))
| [
"ivan.yosifov88gmail.com"
] | ivan.yosifov88gmail.com |
e902eec2088a110c55e9d2063a8d882bcd34f49d | 0c021e881a2d5507f2dd0600a7bc36fa2b8de112 | /turtlecircle.py | 31d3b56a4add57cb27afc03411115accd4f46ccf | [] | no_license | Techsrijan/girlspolytechnic | 016299f28d808f7628693dec555642463862a537 | 0eb136632dd37c1e65ac290509ed166144e8d2a0 | refs/heads/main | 2023-02-03T20:40:30.474711 | 2020-12-16T10:22:59 | 2020-12-16T10:22:59 | 307,243,788 | 0 | 6 | null | null | null | null | UTF-8 | Python | false | false | 385 | py | from turtle import *
import time
t=Turtle()
s=Screen()
s.title("Circle Example")
s.setup(800,600)
'''t.circle(50) # anticlockwise
t.circle((-100))
t.up()
t.forward(200)
t.down()
t.pencolor("red")
t.circle(300)
'''
t.circle(50)
t.up()
t.goto(-100,-100)
t.down()
t.circle(50)
t.undo()
t.reset()
time.sleep(2)
t.write("Thi... | [
"aswanibtech@gmail.com"
] | aswanibtech@gmail.com |
1e75f91cfeb5d9ec5f124aa4adcddf060fb9624d | 2329ba07662331526c508e16512eb8c194c2d0c8 | /src/measurement/area/imperial.py | 6b26952f153010fe609458008baeca02b9c31ad8 | [] | no_license | patricknevindwyer/Converto | 9265e2c6a7af88f6d2a767baed78ce8e95b83215 | 8b9a874a63a8fefde3149d8f6c28c338cc20f09f | refs/heads/master | 2020-05-18T19:58:49.335100 | 2010-12-03T13:40:40 | 2010-12-03T13:40:40 | 1,091,854 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 254 | py | '''
Created on Dec 3, 2010
@author: patricknevindwyer
Imperial measurements of Area.
'''
from measurement.bases import Area
square_feet = Area(
toBaseUnit = 0.09290304,
fromBaseUnit = 10.7639104,
suffixes = ('square foot', 'square feet')
) | [
"patricknevindwyer@gmail.com"
] | patricknevindwyer@gmail.com |
879cdf55ca3f1f61547f825cbd91ff885eb084e1 | 2734b77a68f6d7e22e8b823418ad1c59fe1a34af | /opengever/dossier/content_deleter.py | a165f1f965b4eda76e04acabca72a444e73e2129 | [] | no_license | 4teamwork/opengever.core | 5963660f5f131bc12fd0a5898f1d7c8f24a5e2b1 | a01bec6c00d203c21a1b0449f8d489d0033c02b7 | refs/heads/master | 2023-08-30T23:11:27.914905 | 2023-08-25T14:27:15 | 2023-08-25T14:27:15 | 9,788,097 | 19 | 8 | null | 2023-09-14T13:28:56 | 2013-05-01T08:28:16 | Python | UTF-8 | Python | false | false | 707 | py | from opengever.base.browser.folder_buttons_availability import FolderButtonsAvailabilityView
from opengever.base.content_deleter import BaseContentDeleter
from opengever.dossier.behaviors.dossier import IDossierMarker
from zExceptions import Forbidden
from zope.component import adapter
@adapter(IDossierMarker)
class ... | [
"e.schmutz@4teamwork.ch"
] | e.schmutz@4teamwork.ch |
a01f9443c22e4e22c3db6a462ca1c40ad91e0bd4 | d85fbcf9199a46d7ce43537a6b333e381fd1b868 | /argo/workflows/dsl/__about__.py | eb032ad16c682ac31874759e105c26fd5d1f1c5c | [
"Python-2.0",
"Apache-2.0"
] | permissive | binarycrayon/argo-python-dsl | 78af89ab6a4e522a0bd9b1a28124ce687d544cef | 0eb6fcf1c0901c842dd280d8c052981b5b3378ce | refs/heads/master | 2021-02-13T15:35:52.177954 | 2020-03-08T07:41:46 | 2020-03-08T07:41:46 | 244,710,162 | 0 | 0 | Apache-2.0 | 2020-03-03T18:22:47 | 2020-03-03T18:22:47 | null | UTF-8 | Python | false | false | 500 | py | """About this package."""
__all__ = [
"__title__",
"__summary__",
"__uri__",
"__version__",
"__author__",
"__email__",
"__license__",
"__copyright__",
]
__title__ = "argo-workflows-dsl"
__summary__ = "DSL for Argo Workflows"
__uri__ = "https://github.com/CermakM/argo-python-dsl"
__ver... | [
"macermak@redhat.com"
] | macermak@redhat.com |
a13ba3403a954a805e8bc586f2179587ed19b562 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02843/s696796090.py | 05e70395147aa3317b5c278c07796ed013434575 | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 348 | py | X = int(input())
price = [100,101,102,103,104,105]
dp = [[0]*100001 for _ in range(6)]
dp[0][0] = 1
for i in range(100,100001):
dp[0][i] = dp[0][i-100]
for i in range(1,6):
for j in range(price[i]):
dp[i][j] = dp[i-1][j]
for j in range(price[i],100001):
dp[i][j] = max(dp[i-1][j],dp[i][j-p... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
b7c2ba1ef562df11e19607089e595bbc069c386f | 19f05c91b991f38eca19275bfcb8a2a27000bb45 | /makahiki/apps/components/activities/migrations/0009_populate_slug_data.py | 049b4d883d7525c8fda6839f54a537b4397486ae | [] | no_license | keokilee/makahiki | 9c40576c73fef2bf11dc22194dbabf98f5e67e64 | 783db33ed0b38fb4dccc371c426265f7028a2d13 | refs/heads/master | 2020-04-30T03:44:52.309826 | 2012-03-17T01:36:19 | 2012-03-17T01:36:19 | 543,870 | 2 | 3 | null | null | null | null | UTF-8 | Python | false | false | 13,754 | py | # encoding: utf-8
import datetime
from south.db import db
from south.v2 import DataMigration
from django.db import models
from django.template.defaultfilters import slugify
class Migration(DataMigration):
def forwards(self, orm):
"Write your forwards methods here."
for base in orm.ActivityBase.ob... | [
"keoki.lee@gmail.com"
] | keoki.lee@gmail.com |
b0ae8f4bfb739eb24ac9fc0d06617715c46a65d9 | e84020108a7037d8d4867d95fada1b72cbcbcd25 | /src/chattisgarh/fto/processFTOStatus.py | d660f4fc16006a208a39e4abc60bff1a449ef8b8 | [] | no_license | rajesh241/libtech | 8384316051a2e8c2d4a925cd43216b855b82e4d9 | 0105e717357a3626106028adae9bf162a7f93fbf | refs/heads/master | 2022-12-10T03:09:00.048841 | 2020-06-14T09:39:04 | 2020-06-14T09:39:04 | 24,629,538 | 1 | 1 | null | 2022-12-08T02:26:11 | 2014-09-30T07:57:45 | Python | UTF-8 | Python | false | false | 3,182 | py | import csv
from bs4 import BeautifulSoup
import requests
import MySQLdb
import time
import re
import os
import sys
fileDir=os.path.dirname(os.path.abspath(__file__))
sys.path.insert(0, fileDir+'/../../includes/')
from settings import dbhost,dbuser,dbpasswd,sid,token
from globalSettings import datadir
#Error File Defina... | [
"togoli@gmail.com"
] | togoli@gmail.com |
2ff21a4006685c10124c9e5389c38c0bf6df8a09 | e315a4bb8847dd9a0ba6c4e1f4ebc21d8bbbfb4c | /classifier.py | d6aeaf40fb118dbed807891db2946d96afdcbcdf | [] | no_license | marco-willi/camtrap_classifier | 464f1ad60eaf275fa4dbe077396639a7192d9ab6 | 10363c18382b86560bfc6c202183ecfd77d4e079 | refs/heads/master | 2021-05-08T06:52:23.074452 | 2017-12-01T07:13:04 | 2017-12-01T07:13:04 | 106,642,628 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,695 | py | """
Class to provide a Classifier for applying a model on images
- takes a folder/folders with images, a model, and model configs as input
"""
import os
from keras.models import load_model
from keras.preprocessing.image import ImageDataGenerator
from collections import OrderedDict
import numpy as np
import pandas as pd... | [
"will5448@umn.edu"
] | will5448@umn.edu |
04231d91e5d33e957c15c28892b7716bb60a70c1 | 895dfeb5c6af5e8c66772491d164e9d5b57d4302 | /Courses/Full_Stack_Foundations/restaurant_raw/webserver.py | 7fa49de6ca38602236c51866bf2598078cc5b8a0 | [] | no_license | JPGITHUB1519/FSND-Udacity | 753747aac6b727ac7a0e98d95059127bf8a3690d | a7acb4df6ff3b2216da5749e7087b0e254ed80cd | refs/heads/master | 2020-12-30T12:11:21.051853 | 2017-10-05T02:30:22 | 2017-10-05T02:30:22 | 91,410,311 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,540 | py | import os
import cgi
from BaseHTTPServer import BaseHTTPRequestHandler, HTTPServer
from jinja2 import Environment, FileSystemLoader, select_autoescape
from sqlalchemy import create_engine
from sqlalchemy.orm import sessionmaker
from database_setup import Base, Restaurant, MenuItem
### jinja config
config = {
"directo... | [
"juanpedro1519@gmail.com"
] | juanpedro1519@gmail.com |
1aa3752c58335a1b8cb63f5ca192c48180bc3889 | d554b1aa8b70fddf81da8988b4aaa43788fede88 | /5 - Notebooks e Data/1 - Análises numéricas/Arquivos David/Atualizados/logDicas-master/data/2019-1/222/users/4062/codes/1845_2220.py | 3d32d34040dc707ac31d11f0735accdb07b48017 | [] | no_license | JosephLevinthal/Research-projects | a3bc3ca3b09faad16f5cce5949a2279cf14742ba | 60d5fd6eb864a5181f4321e7a992812f3c2139f9 | refs/heads/master | 2022-07-31T06:43:02.686109 | 2020-05-23T00:24:26 | 2020-05-23T00:24:26 | 266,199,309 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 131 | py | from numpy import *
m= array(eval(input("Pagamentos: ")))
l = shape(m)[0]
c = shape(m)[1]
for i in range(l):
print(max(m[i, :])) | [
"jvlo@icomp.ufam.edu.br"
] | jvlo@icomp.ufam.edu.br |
21a347c147a0776a230dc184af319b1643c6a013 | 4b758ca583d2a58d4d711381405e024109a0f08f | /dali/test/python/test_operator_random_resized_crop.py | 483d481dbf53a927fd48e58f3eff3b31bc9c649c | [
"Apache-2.0",
"LicenseRef-scancode-free-unknown"
] | permissive | ConnectionMaster/DALI | 76ff07b2fa3f62490b059088c88ade7570130ff4 | 6b90519d2c209d705e8912a5f00b71a018aeaa52 | refs/heads/master | 2023-04-14T13:04:57.520421 | 2021-01-22T16:34:31 | 2021-01-22T16:34:31 | 187,683,855 | 1 | 1 | Apache-2.0 | 2023-04-03T23:45:28 | 2019-05-20T17:18:56 | C++ | UTF-8 | Python | false | false | 6,577 | py | import nvidia.dali as dali
import nvidia.dali.fn as fn
import numpy as np
import test_utils
def close(a, b):
return abs(a - b) < 1e-5 or abs(a - b) < abs(a) + abs(b) * 1e-6
def analyze_frame(image, channel_dim):
def pixel(x, y):
return image[:, y, x] if channel_dim == 0 else image[y, x, :]
x0, y0,... | [
"noreply@github.com"
] | ConnectionMaster.noreply@github.com |
2e71d123768a4baaceb7cf78751643f3bc645473 | eb8855df9efcaafe7be3c33ac6a9eba09190a802 | /article/migrations/0002_articlepost_total_views.py | 1afe206df23165b96a38b7402b009dcd70fbdaca | [] | no_license | demo112/Bloging_new | 4441b32cde519b8aa6e5fd04a30af09a2e2cbe46 | ab8fbf0e33dd91413a707491bfce3e46d4d021c9 | refs/heads/master | 2020-04-30T00:52:41.741959 | 2019-03-28T00:08:28 | 2019-03-28T00:08:28 | 176,513,462 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 389 | py | # Generated by Django 2.1.7 on 2019-03-22 19:55
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('article', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='articlepost',
name='total_views',
... | [
"huafengdongji@hotmail.com"
] | huafengdongji@hotmail.com |
f359d2d972956ca7e1c4ea94324273fa95da5ccf | 6bcffc29218f2a5459cac1f20f4eada0430abea4 | /pacioli/database/sql_views.py | 4458f0f649d4847ab93f46470e6cda941c927f7e | [
"BSD-2-Clause"
] | permissive | mantach86/pacioli | 8091c053440384e2bf8f4241d50da181b7dbc031 | 4a66ed80b1e3408e19d81e0ce7cfa46e477f489e | refs/heads/master | 2020-07-24T18:41:35.146089 | 2017-04-21T15:15:46 | 2017-04-21T15:15:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,441 | py | from pacioli.models import db
def create_all():
create_ofx_views()
create_trial_balances_trigger_function()
create_amazon_views()
create_bookkeeping_views()
create_mappings_views()
def create_trial_balances_trigger_function():
db.engine.execute("""
CREATE OR REPLACE FUNCTION
bookke... | [
"pierre@rochard.org"
] | pierre@rochard.org |
44c5dbbc3246735c0cdeeccde1162967ba8c658e | f768ddba19c7bc7664ae581daeef5fe2f650a539 | /post/post.py | ddb481a99e2e6e443b0f580bbc720d0f68fac4c2 | [] | no_license | douwings/pythonWork | 36ac2ba32a721ed6d9af62a9168eee12a61891af | 70f84eb179e12cc36b521fdb9a2573a14a300d23 | refs/heads/master | 2022-12-23T18:41:50.560391 | 2020-09-28T06:20:36 | 2020-09-28T06:20:36 | 273,136,705 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,047 | py | # -*- coding=utf-8 -*-
import urllib.request
import urllib.parse
import ssl
import json
import time
def postsendsms():
ssl._create_default_https_context = ssl._create_unverified_context
sendsmspost_url = 'http://172.16.2.111:3000/v1/login_by_wx'
t = time.time()
sendsmsheaders = {
# 'Conte... | [
"1020763068@qq.com"
] | 1020763068@qq.com |
736aecf523f7137ffba1df7104167bee096698f0 | 035ec6f79bb70374a54d6b491b34114fcc9f0e24 | /wtDigiTwin/fast/fastlinfiles.py | 0b796235f81f0435db9e1ae181eee4b64a327b49 | [
"MIT"
] | permissive | deyh2020/wtDigiTwin | b8b8d8f0a0ca73a6e7dddba0e3b6457a7551a9da | 2c1e965ab5fdca10e67b0db9ef87837f5abebc02 | refs/heads/master | 2023-07-14T07:23:28.628625 | 2021-07-26T15:12:22 | 2021-07-26T15:12:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,700 | py | import numpy as np
import pickle
import glob
import os
import weio
class FASTPeriodicOP(object):
""" Class for a set of *.lin files, all assumed to be for the same periodic operating point"""
def __init__(self,prefix,nLin=None):
if nLin is None:
linfiles= glob.glob(prefix + '*.*.lin')
... | [
"elmanuelito.github@gmail.com"
] | elmanuelito.github@gmail.com |
b6076b5e720e510264d359984df649983226d155 | bac5ecb5eef06dfe76b9b7bff80faee7485c67dd | /.history/django_vuejs_tutorial/django_vuejs/dataiku/admin_20200829045700.py | 95c85e8343b24f314b19ffb3176a56a4567e185b | [] | no_license | MChrys/dataiku | fb1e48401d544cbcc5a80a0a27668dc9d2d196e5 | 6091b24f565224260a89246e29c0a1cbb72f58ed | refs/heads/master | 2022-12-16T11:06:13.896643 | 2020-09-12T19:03:51 | 2020-09-12T19:03:51 | 293,287,620 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 430 | py | from django.contrib import admin
# Register your models here.
from .models import QCM, Answer, Task, Dataiku_account, Operation, Session, Question, Run, Posibility
admin.site.register(Task)
admin.site.register(Dataiku_account)
admin.site.register(Operation)
admin.site.register(Session)
admin.site.register(Question)
a... | [
"cbeltran@umanis.com"
] | cbeltran@umanis.com |
7b7c17e361f20416c6b1ac8296418c9a8ec75d00 | cba8f623e613cfb0cdba73fb373bec68f7bbfdcb | /ABC085D.py | 9802bdf40462578e6247674b1b8a473147a6a75d | [] | no_license | bonoron/Atcoder | 7d0af77a12b40ce2bdebf5ab5a76462629a03ea5 | e8c0d1ed7d113a0ea23e30d20e8d9993ba1430fa | refs/heads/master | 2022-12-24T20:00:32.702741 | 2020-09-24T07:03:48 | 2020-09-24T07:03:48 | 271,685,972 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 293 | py | n,h=map(int,input().split())
A=list(tuple(map(int,input().split())) for i in range(n))
A,B=zip(*A)
a=max(A)
count=0
for i in sorted(B)[::-1]:
if h<=0:break
elif i>=a:
count +=1
h -=i
if h>0:
if h%a==0:count +=h//a
else:count +=h//a+1
print(count) | [
"noreply@github.com"
] | bonoron.noreply@github.com |
76078cb90de2d17011da5b083945e6a4c92670c6 | a0b27e1a3a17ce9ec21bea460ba75b9d72564e33 | /ublog/routes.py | 3975864270044f0b4cf884b72d3cc09e93b704b2 | [] | no_license | florije1988/ublog | f662bc0dadf0fb244af054db2ca1a491b0454827 | a94fd3a52a9898b8e89020a7b8754e52ea00d664 | refs/heads/master | 2020-12-24T20:25:02.679572 | 2016-05-09T09:39:50 | 2016-05-09T09:39:50 | 58,360,735 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,758 | py | # -*- coding: utf-8 -*-
__author__ = 'florije'
from ublog import app
from flask import render_template, request, flash, session, url_for, redirect
from forms import ContactForm, SignupForm, SigninForm
from flask_mail import Message, Mail
from models import db, User
mail = Mail()
@app.route('/')
def home():
retu... | [
"florije1988@gmail.com"
] | florije1988@gmail.com |
d2d869abcf663c008f157d716357b792152c0431 | 3a891a79be468621aae43defd9a5516f9763f36e | /desktop/core/ext-py/tablib-0.10.0/tablib/packages/openpyxl3/shared/date_time.py | 8a58cd098dcb8ffa0bdc3773c76a3d882c73d5c1 | [
"Apache-2.0",
"LicenseRef-scancode-public-domain",
"BSD-2-Clause",
"BSD-Advertising-Acknowledgement",
"MIT"
] | permissive | oyorooms/hue | b53eb87f805063a90f957fd2e1733f21406269aa | 4082346ef8d5e6a8365b05752be41186840dc868 | refs/heads/master | 2020-04-15T20:31:56.931218 | 2019-01-09T19:02:21 | 2019-01-09T19:05:36 | 164,998,117 | 4 | 2 | Apache-2.0 | 2019-01-10T05:47:36 | 2019-01-10T05:47:36 | null | UTF-8 | Python | false | false | 5,931 | py | # file openpyxl/shared/date_time.py
# Copyright (c) 2010 openpyxl
#
# 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... | [
"abraham@elmahrek.com"
] | abraham@elmahrek.com |
526d6589db2b272ca5cfba55a28b5a4fb0d708f3 | 09e57dd1374713f06b70d7b37a580130d9bbab0d | /data/p3BR/R1/benchmark/startQiskit_noisy429.py | 001320894098c4a3b7a6c5fabdd40cc8775b5332 | [
"BSD-3-Clause"
] | permissive | UCLA-SEAL/QDiff | ad53650034897abb5941e74539e3aee8edb600ab | d968cbc47fe926b7f88b4adf10490f1edd6f8819 | refs/heads/main | 2023-08-05T04:52:24.961998 | 2021-09-19T02:56:16 | 2021-09-19T02:56:16 | 405,159,939 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,395 | py | # qubit number=3
# total number=77
import numpy as np
from qiskit import QuantumCircuit, execute, Aer, QuantumRegister, ClassicalRegister, transpile, BasicAer, IBMQ
from qiskit.visualization import plot_histogram
from typing import *
from pprint import pprint
from math import log2
from collections import Counter
from... | [
"wangjiyuan123@yeah.net"
] | wangjiyuan123@yeah.net |
91a0878a1d095da6cac81f085ca9349ddc24f247 | 203fd0a2a91ee063736d11b069e11026c4184ec5 | /tools/test_files/all_17_or_less/cm152a_212.py | 8f2b7e168fbe23ea1f74ee042adbb48bfd761ae9 | [
"Apache-2.0"
] | permissive | Astlaan/OpenQL | 19b35200775367e6f11d1756e9495c1883a1c531 | 1b60d5784d439e6c19e662b570114aa1b3045d38 | refs/heads/develop | 2020-09-01T02:56:37.906564 | 2019-11-15T15:43:55 | 2019-11-15T15:43:55 | 181,012,110 | 0 | 0 | NOASSERTION | 2019-04-12T13:18:51 | 2019-04-12T13:18:51 | null | UTF-8 | Python | false | false | 27,978 | py | from openql import openql as ql
import os
import argparse
def circuit(config_file, new_scheduler='yes', scheduler='ASAP', uniform_sched= 'no', sched_commute = 'yes', mapper='base', moves='no', maptiebreak='random', initial_placement='no', output_dir_name='test_output', optimize='no', measurement=True, log_level='LOG_W... | [
"diogovalada.7@tecnico.ulisboa.pt"
] | diogovalada.7@tecnico.ulisboa.pt |
f5d5c94e264e9b416f9e321c6f92c2a627772d05 | 9b265894d94a46f91ca20aab4fb5ece5d635dd16 | /LPAv/Trabalho 9 - Python/questao1.py | 5fe445972f602478bf68c2a4d9cdbae5b266bf31 | [] | no_license | JosephLevinthal/LPAv | fad4499ec294b3bbec82f73c9989fcf602f65d79 | 73ecf1cb39b550b13be558b80cbd97701ea34fa0 | refs/heads/master | 2021-09-16T11:08:07.828030 | 2018-06-20T02:56:42 | 2018-06-20T02:56:42 | 130,502,754 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 214 | py | import re
stringDeEntrada = input()
while (stringDeEntrada != "####"):
if (re.match("^([0-9]{7,7}-[0-9])$", stringDeEntrada)):
print("SIM")
else:
print("NAO")
stringDeEntrada = input()
| [
"jvlo@icomp.ufam.edu.br"
] | jvlo@icomp.ufam.edu.br |
faa7bd06c204447f3804c32070026adf782a82f3 | 45243d7b7412814b8cb43fefdf088099e0c93419 | /src/user/migrations/0007_user_uid.py | 090e72b9c2445055597e04d4b1cb18f3a2b3feab | [] | no_license | AlexanderNevarko/drec_stud_site | e08e621c54bdd145709913d4a69c8f089475fcad | 4e176a77bf5b4a20e57e1379581713a6fa6d2d21 | refs/heads/master | 2020-09-21T07:55:46.820999 | 2019-01-14T20:22:50 | 2019-01-14T20:22:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 496 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.3 on 2017-09-04 12:42
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('user', '0006_auto_20170809_1308'),
]
operations = [
migrations.AddField(
... | [
"makaleks@live.ru"
] | makaleks@live.ru |
54e37c4b81fec916c8fc8cd7108b3e190dcd4ace | f00699824a8c5def54421ee3cf836ec2cd15d957 | /3/django_1703_day3/app01/urls.py | e7561509abebc6e85ef5e6b1b8c19ae0201bd4be | [] | no_license | ZhiqiWu/student_manage | 9171d78c32d6900b08de9034b9a2f50c9e24d0b8 | da12ebaf4e9d6357cd9f832144ed756a55510433 | refs/heads/master | 2023-03-29T04:56:09.486061 | 2020-01-24T08:11:50 | 2020-01-24T08:11:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 177 | py | from django.conf.urls import include, url
import views
urlpatterns = [
url(r'^$', views.index),
url(r'^zhale/$', views.zhale),
url(r'^tpl/$', views.tpl),
]
| [
"1049939190@qq.com"
] | 1049939190@qq.com |
2366786f7a3b2ce29c4d743b0ba81791a2013a84 | 3a570384a3fa9c4c7979d33b182556e1c637e9eb | /anwmisc/anw-pyui/Packages/pyui/renderers/unseen.py | 1caadb76f8f683700fdcc1917514579e56fa470d | [] | no_license | colshag/ANW | 56a028af5042db92b5ead641dc542fcb4533344e | 46948d8d18a0639185dd4ffcffde126914991553 | refs/heads/master | 2020-03-27T00:22:49.409109 | 2018-10-27T06:37:04 | 2018-10-27T06:37:04 | 145,618,125 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 20,479 | py | import PyUnseen
from msgs import *
import pyui.locals
from pyui.renderer3d import Renderer3DBase
from pyui.desktop import getDesktop
messageMap = \
[
WM_KEYDOWN,
WM_KEYUP,
WM_CHAR,
WM_MOUSEMOVE,
WM_LBUTTONDOWN,
WM_LBUTTONUP,
WM_LBUTTONDBLCLK,
WM_RBUTTONDOWN,
WM_RBUTTONUP,
... | [
"colshag@gmail.com"
] | colshag@gmail.com |
8b50c33b2267b1a35cc4a73a591c173d6eea2280 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/otherforms/_revues.py | f49493dcdf30e1cce36d2723a65a559d1a24960d | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 218 | py |
#calss header
class _REVUES():
def __init__(self,):
self.name = "REVUES"
self.definitions = revue
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.basic = ['revue']
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
60847a2a95c5d716ddfcd9d539af72449d1f0591 | aa49120740b051eed9b7199340b371a9831c3050 | /greaterTree.py | 3e539eb3cf0e2a93dd98c58dad666501da74daf5 | [] | no_license | ashutosh-narkar/LeetCode | cd8d75389e1ab730b34ecd860b317b331b1dfa97 | b62862b90886f85c33271b881ac1365871731dcc | refs/heads/master | 2021-05-07T08:37:42.536436 | 2017-11-22T05:18:23 | 2017-11-22T05:18:23 | 109,366,819 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,593 | py | #!/usr/bin/env python
'''
Given a Binary Search Tree (BST), convert it to a Greater Tree such that every key of the original BST is changed
to the original key plus sum of all keys greater than the original key in BST.
Example:
Input: The root of a Binary Search Tree like this:
5
/ \
... | [
"ashutosh.narkar@one.verizon.com"
] | ashutosh.narkar@one.verizon.com |
8a8112c98a32850524e2e947da26f64c30ef2ae3 | 57359cfa7158b284ca5061710a7fe233c76d9cd7 | /utils3d/bbox3d_ops.py | 4228ef72a8e7125eb80c031504550a988641d131 | [
"MIT"
] | permissive | zhuhaipeng-byte/Automatic-As-built-Reconstruction | 5d0cd5b993cb5c273fc1e133651e11c548e795dc | a3d4642f76beb572fdaf37fb832704fa88d054ab | refs/heads/master | 2022-05-27T18:15:34.801783 | 2020-04-10T12:12:27 | 2020-04-10T12:12:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 52,969 | py | # xyz Nov 2018
import numpy as np
import os,sys
import open3d
import numba
import time
BASE_DIR = os.path.dirname(os.path.abspath(__file__))
ROOT_DIR = os.path.dirname(BASE_DIR)
sys.path.append(BASE_DIR)
sys.path.append(ROOT_DIR)
from open3d_util import draw_cus, gen_animation
from geometric_util import Rz as geo_Rz,... | [
"buaaxyz@yeah.net"
] | buaaxyz@yeah.net |
cdc220273a6eb070856db02eee22e9766e3d7d72 | 45c142c3e3dc8d3211a86c77385ecfdd10d28fb9 | /dstore/engine/procedures/mi_RestoreDefaultValues_Ad_pb2.py | c4d2eabded23befbbf6f8898c1164f8aef205f9d | [] | no_license | dstore-io/dstore-sdk-python | 945d64995c8892af18fab26c90117245abec64a4 | 8494d12ac77c3c3cc6dd59026407ef514ad179fc | refs/heads/master | 2020-06-14T13:07:08.181547 | 2017-01-26T11:19:39 | 2017-01-26T11:19:39 | 75,177,794 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | true | 12,973 | py | # Generated by the protocol buffer compiler. DO NOT EDIT!
# source: dstore/engine/procedures/mi_RestoreDefaultValues_Ad.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from... | [
"b.dolkemeier@dbap.de"
] | b.dolkemeier@dbap.de |
7f18193d0a006abf5e133bd1826ca925772415d9 | a4ea525e226d6c401fdb87a6e9adfdc5d07e6020 | /src/azure-cli/azure/cli/command_modules/marketplaceordering/manual/custom.py | c3d4d03fbbc01f38de3e9be67de777584acd4f5b | [
"MIT",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"GPL-1.0-or-later",
"MPL-2.0",
"LGPL-2.1-only",
"Apache-2.0",
"LGPL-2.1-or-later",
"BSD-2-Clause"
] | permissive | Azure/azure-cli | 13340eeca2e288e66e84d393fa1c8a93d46c8686 | a40fd14ad0b6e89720a2e58d4d9be3a6ce1535ca | refs/heads/dev | 2023-08-17T06:25:37.431463 | 2023-08-17T06:00:10 | 2023-08-17T06:00:10 | 51,040,886 | 4,018 | 3,310 | MIT | 2023-09-14T11:11:05 | 2016-02-04T00:21:51 | Python | UTF-8 | Python | false | false | 1,754 | py | # --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incor... | [
"noreply@github.com"
] | Azure.noreply@github.com |
36678e9ffcaa6862ab6d1a86c3294802fe005f96 | 1a1e4f0f525ebe080dcd74b7e5e8c33477eab6b8 | /backend/dating/api/v1/viewsets.py | 86fd6380f5c9628e9208d847b9a0a804ff8898db | [] | no_license | crowdbotics-apps/homedesign-20669 | 0b1e65aa4f169dd9f54cbbb9d6c4af38057b7efe | 0623f0d613cdc057079a799fccfe05db9c51ca73 | refs/heads/master | 2022-12-31T18:34:29.656171 | 2020-09-25T07:55:18 | 2020-09-25T07:55:18 | 298,505,595 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,095 | py | from rest_framework import authentication
from dating.models import Setting, Profile, Inbox, Dislike, Match, UserPhoto, Like
from .serializers import (
SettingSerializer,
ProfileSerializer,
InboxSerializer,
DislikeSerializer,
MatchSerializer,
UserPhotoSerializer,
LikeSerializer,
)
from rest_... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
fde9ceaca4cd01c3520936f567cc4c0b9da7ea2f | 6a7058009587e78b5c758ff783410325ad7c2a4b | /leet/stack/removeDuplicates.py | 7b454b38480b649f7012a1ba584510296d51d6df | [
"Apache-2.0"
] | permissive | stacykutyepov/python-cp-cheatsheet | 8b96b76403c501f5579befd07b3c4a4c69fe914e | a00a57e1b36433648d1cace331e15ff276cef189 | refs/heads/master | 2023-07-16T13:26:35.130763 | 2021-08-30T11:23:39 | 2021-08-30T11:23:39 | 401,442,535 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 499 | py | """
time: n
space: n
Remove All Adjacent Duplicates in String II
"""
class Solution:
def removeDuplicates(self, s: str, k: int) -> str:
stk = []
for c in s:
if stk and stk[-1][0] == c:
stk[-1][1] += 1
if stk[-1][1] >= k:
stk.po... | [
"peterrlamar@gmail.com"
] | peterrlamar@gmail.com |
5e70dd92d37b33cee451a79110869edc240504ee | 40b182f143fa034051fbfc80dc1bc77b204fdb89 | /fft_2d.py | 26fca42cbe8257f3a225e76e740aa65f3a6ab6f1 | [] | no_license | phaustin/fft_2d | 02ab6707cbbb1c3fcd836c4e9a6323b4439bed2a | a891669e2c70c70a87efa9b254e9103ec3d93af5 | refs/heads/master | 2016-09-06T10:51:35.568580 | 2014-02-11T06:52:04 | 2014-02-11T06:52:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,875 | py | from __future__ import division
from netCDF4 import Dataset
import numpy as np
import math
from scipy import fftpack
from matplotlib import pyplot as plt
#plt.switch_backend('Agg') #batch
plt.switch_backend('MacOSX') #interactive
test=Dataset('a17.nc')
tau=test.variables['tau'][:2000,:2000]
nn = tau.shape[0] #... | [
"paustin@eos.ubc.ca"
] | paustin@eos.ubc.ca |
9beb2f007c5b1a2e985d1eb9cac90a3c7c0cb488 | 04b1803adb6653ecb7cb827c4f4aa616afacf629 | /build/android/gyp/dex.py | 9c551b9e78ce988f1b931a84bb34deb6a64e2c9a | [
"BSD-3-Clause"
] | permissive | Samsung/Castanets | 240d9338e097b75b3f669604315b06f7cf129d64 | 4896f732fc747dfdcfcbac3d442f2d2d42df264a | refs/heads/castanets_76_dev | 2023-08-31T09:01:04.744346 | 2021-07-30T04:56:25 | 2021-08-11T05:45:21 | 125,484,161 | 58 | 49 | BSD-3-Clause | 2022-10-16T19:31:26 | 2018-03-16T08:07:37 | null | UTF-8 | Python | false | false | 14,446 | py | #!/usr/bin/env python
#
# Copyright 2013 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import json
import logging
import optparse
import os
import re
import shutil
import sys
import tempfile
import zipfile
from util imp... | [
"sunny.nam@samsung.com"
] | sunny.nam@samsung.com |
6398727d41745a5f48c6ccd6952f2945d5814a3f | 8a1200f2bd0bf25a264c065da896d1806e45155a | /packages/ply-9999.py | 591b952a924da74d2703d4d6bcf134dbd272ecc0 | [] | no_license | mhulsman/enhance | fac908eca561749ab99ea708f19f37eaceabf6c5 | 761234a263e4962a8e10026ce143c1ea0e7e8728 | refs/heads/master | 2021-01-18T23:40:56.252953 | 2016-09-29T13:04:48 | 2016-09-29T13:04:48 | 1,520,086 | 3 | 4 | null | null | null | null | UTF-8 | Python | false | false | 97 | py | from package import *
class ply(EasyInstallPackage):
dependencies = ["setuptools","python"]
| [
"m.hulsman@tudelft.nl"
] | m.hulsman@tudelft.nl |
d22177499c618ff254b7d77a4adadebd0fbc9c16 | 82ccbe6f52a89e0acd1b88cd3de6c2c434bcef6c | /lib/PanGenomeAPI/fetch_summary/main.py | 64197ada34555c2089d05a55099c48806cd693d0 | [
"MIT"
] | permissive | kbaseapps/PanGenomeAPI | e51da942cb61f4341824e7b296fa2b694b7deda6 | 52dfc557279824f3b1c3b0a537528ccfaee39ab1 | refs/heads/master | 2021-07-20T04:30:31.032517 | 2021-02-23T22:45:09 | 2021-02-23T22:45:09 | 89,646,247 | 0 | 3 | MIT | 2021-02-23T22:45:09 | 2017-04-27T22:42:41 | Python | UTF-8 | Python | false | false | 7,818 | py | """
Fetch and construct summary data for previewing a pangenome.
"""
from installed_clients.WorkspaceClient import Workspace as Workspace
def fetch_pangenome_summary(
pangenome_ref: str,
workspace_url: str,
token: str) -> dict:
"""
Construct a summary data object for a single pangenome... | [
"jayrbolton@gmail.com"
] | jayrbolton@gmail.com |
cc15ab4da0e3d63290d555da764c4651e5b116d5 | 2368797b51548c0f6393d63bf4973898ac99d528 | /strings/easy/q443.py | dfc657c4a91311384a0c289c38920c173469005f | [] | no_license | pengzhefu/LeetCodePython | 595887d1625666962e7e959ffa148580f9b89ada | 59eff778a5fd5cff3b5b6b88c6c7e76dd213dfb0 | refs/heads/master | 2021-06-08T19:44:52.487031 | 2021-06-01T15:44:29 | 2021-06-01T15:44:29 | 175,763,155 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,906 | py | # -*- coding: utf-8 -*-
"""
Created on Tue Apr 30 23:39:02 2019
@author: pengz
"""
'''
Given an array of characters, compress it in-place.
The length after compression must always be smaller than or equal to the original array.
Every element of the array should be a character (not int) of length 1.
After you are d... | [
"32311379+pengzhefu@users.noreply.github.com"
] | 32311379+pengzhefu@users.noreply.github.com |
b2cec81969bcdc94b01c28fdb7df0ad7d85d7cf4 | df1d49839642d5dd9d3232e550b448ff813b298e | /virtual/bin/pip3.6 | 3a0c125f493e9d8db29bb7bb6bbde2795be44256 | [] | no_license | vincentmuya/Tech | 86e486044eb968b25cb53edf003acde391936900 | 239dbab12a6f6324eec4c55223c331a3871375aa | refs/heads/master | 2023-01-05T17:16:48.434239 | 2020-10-29T15:23:20 | 2020-10-29T15:23:20 | 308,339,499 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 270 | 6 | #!/home/v1nc3n7/Documents/Projects/Projects/blog/virtual/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from pip._internal.cli.main import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"vincentmuya13@gmail.com"
] | vincentmuya13@gmail.com |
f666310032f38377abc0fdb0dbaf6d4e6c3a9267 | 853d4cec42071b76a80be38c58ffe0fbf9b9dc34 | /venv/Lib/site-packages/pandas/core/arrays/datetimes.py | 047ee2e0330a5d47eec67d4f0aa99bef673c04a4 | [] | no_license | msainTesting/TwitterAnalysis | 5e1646dbf40badf887a86e125ef30a9edaa622a4 | b1204346508ba3e3922a52380ead5a8f7079726b | refs/heads/main | 2023-08-28T08:29:28.924620 | 2021-11-04T12:36:30 | 2021-11-04T12:36:30 | 424,242,582 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 79,063 | py | from datetime import datetime, time, timedelta
import textwrap
from typing import Union
import warnings
import numpy as np
from pytz import utc
from pandas._libs import lib, tslib
from pandas._libs.tslibs import (
NaT,
Timestamp,
ccalendar,
conversion,
fields,
iNaT,
normali... | [
"msaineti@icloud.com"
] | msaineti@icloud.com |
e963b984443ec4d68c597960486998c74e5281de | be6e135014a7553b8f13b99435369e3d53b58585 | /course_python/Python/student_oop.py | 43d9d213d2b47e37a632402e8d7e6afe58f5f69c | [] | no_license | ankitsoni5/python | a5555a6371e12b170703b8c16a4e8aab5988a373 | a5fcf618a476cb1745095f038b9118ce724c0b7e | refs/heads/master | 2020-09-10T23:35:45.001477 | 2019-11-23T13:41:37 | 2019-11-23T13:41:37 | 221,866,000 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,290 | py | from com.ankit.collage.student import Student
#s1 = Student() #student object
#internally
# 1. get address - 4001 Student Object
# 2. Student : __init__(4001)
print(Student.count) # it will give the number of count of object created of Student class.
s1 = Student('Abhishek', 'Male', 1, 90)
#internally
# 1. ... | [
"apple@Apples-MacBook-Pro.local"
] | apple@Apples-MacBook-Pro.local |
3f9a0b1d182a5ddd38813da6721ae1a290403895 | b4bc5fb10b0d498cb0d3e5ee2ce3473b10b553e5 | /fast_transformers/recurrent/attention/self_attention/adamax_attention.py | 1cac02af4c80484f39d1bc654fd0d6ccdea11efe | [] | no_license | minhtannguyen/momentum-transformer-code-submission | 2f0005028ab7e32957612f642330acd802bded8e | 68b11ce5564a8212cd91cb2093b457a00d511046 | refs/heads/master | 2023-05-31T19:20:57.380490 | 2021-06-04T15:08:26 | 2021-06-04T15:08:26 | 373,784,396 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,429 | py | """Implement the causally masked linear attention as a recurrent model."""
import torch
from torch.nn import Module
from ....attention_registry import RecurrentAttentionRegistry, Optional, Float, Int, \
Callable, EventDispatcherInstance
from ....events import EventDispatcher
from ....feature_maps import elu_featu... | [
"mn15@rice.edu"
] | mn15@rice.edu |
c3d6c4f46612b7f7c5ec6f9758883ee9cf8a0f4a | d051f3fe9fda31b72fa0ddce67aa1f4293c7c37c | /infer/local_gibbs_move.py | e8d91c772ccb38d12b759ff202759798f9ddefa4 | [
"BSD-3-Clause"
] | permissive | davmre/sigvisa | 4e535215b6623310d8f5da64258f6fa9a378f9fd | 91a1f163b8f3a258dfb78d88a07f2a11da41bd04 | refs/heads/master | 2021-03-24T10:24:52.307389 | 2018-01-05T19:33:23 | 2018-01-05T19:33:23 | 2,321,239 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,990 | py | import numpy as np
from sigvisa.models.distributions import PiecewiseLinear
from sigvisa.utils.array import index_to_time, time_to_index
"""
Methods to propose a param value from a piecewise linear approximation
to the Gibbs conditional. This can be based on either the full model
posterior (proxylp_full) or a cheap ... | [
"dmoore@cs.berkeley.edu"
] | dmoore@cs.berkeley.edu |
33e0ba3e0a69e34cf7ebd41107f6f66e2889c636 | c9293ab68d0235a1830a3634a41a5b65b4eb5d6a | /Lessons/Section-03/lesson_0087/main.py | 525fed4f815ccabfb1476b840d227c9ecfdc9c6d | [] | no_license | lipegomes/python-django-udemy-studies | 4f836497ee10ece7ee5b40af1b636bb1c03deb75 | 938fa6a05f9505b8eaf6e7e6bc1c5e199b670432 | refs/heads/master | 2023-01-07T01:22:16.855346 | 2020-11-03T13:49:54 | 2020-11-03T13:49:54 | 283,852,942 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,200 | py | """
Faça uma lista de tarefas com as seguintes opções:
- Adicionar uma tarefa
- Listar tarefas
- Opção de desfazer (a5 cada vez que chamarmos, desfaz a última ação)
- Opção de refazer (a cada vez que chamarmos. refaz a última ação)
"""
def show_op(todo_list):
print()
print("Tarefas: ")
pri... | [
"fgdl.py91@gmail.com"
] | fgdl.py91@gmail.com |
a6967f5aeb2b2541339e96e0ff361039c1c4a1ef | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_5753053697277952_1/Python/wiz4rd/solve.py | 71ffac888475eabb0c81b27c4c0114a8c34376e6 | [] | no_license | alexandraback/datacollection | 0bc67a9ace00abbc843f4912562f3a064992e0e9 | 076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf | refs/heads/master | 2021-01-24T18:27:24.417992 | 2017-05-23T09:23:38 | 2017-05-23T09:23:38 | 84,313,442 | 2 | 4 | null | null | null | null | UTF-8 | Python | false | false | 1,255 | py | # http://code.google.com/codejam/contest/4314486/dashboard#s=p0
from collections import defaultdict
from re import match
from numpy import array, argsort
from time import sleep
from numpy.linalg import matrix_rank
def biggest(a,N): return argsort(a)[::-1][:N]
def absolute(ls): s = int(sum(ls)/2);return any(e>s... | [
"alexandra1.back@gmail.com"
] | alexandra1.back@gmail.com |
4620c177df3478e05cc6d84a76cbc7bc79c80768 | 7ce479cac0a14d924159db9c784e3325b8f0bce7 | /schemaorgschemas/Thing/Intangible/StructuredValue/PriceSpecification/PaymentChargeSpecification/__init__.py | cd82c29e455e399753f86c2537f0d702dd8cd6b2 | [] | no_license | EvelineAndreea/AGRe | 1f0c27237eb047a60bbcfb8d73e3157035406409 | b952125896a82741f6617c259dd4060954583180 | refs/heads/master | 2020-04-08T16:08:11.517166 | 2018-11-28T07:15:56 | 2018-11-28T07:15:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,227 | py | # -*- coding: utf-8 -*-
from schemaorgschemas.Thing import potentialActionProp, descriptionProp, sameAsProp, imageProp, urlProp, mainEntityOfPageProp, additionalTypeProp, alternateNameProp, nameProp
from schemaorgschemas.Thing.Intangible.StructuredValue.PriceSpecification import validFromProp, priceCurrencyProp, priceP... | [
"mihai.nechita95@gmail.com"
] | mihai.nechita95@gmail.com |
2ddc5ca7f522f8159ec1ca17599d40bf2c4eca88 | 912c4445e7041869d1c8535a493b78d7ee35424b | /status/api/tests.py | fc4d45246e3fead061e60c2bd54215da6084c563 | [] | no_license | maltezc/Udemy-DjangoRestAPI | 3f243ec97ea5e8e9d6ddc2005986b6a05aa11097 | de6f885cf0cddaf22fb6fd72d18fc805b9ce48d2 | refs/heads/master | 2022-12-14T06:04:43.011691 | 2018-08-05T01:10:17 | 2018-08-05T01:10:17 | 140,590,753 | 0 | 0 | null | 2022-11-22T02:48:04 | 2018-07-11T14:56:08 | Python | UTF-8 | Python | false | false | 7,199 | py | import os
import shutil # shell utility method
import tempfile
from PIL import Image # pip install pillow
from django.urls import reverse
from rest_framework import status
from rest_framework.reverse import reverse as api_reverse
from rest_framework.test import APITestCase
from django.contrib.auth import get_user_model... | [
"cflux.maltez@live.com"
] | cflux.maltez@live.com |
918ad7bb0117b30c6486fbc80d1fd1b193eca18c | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_393/ch118_2020_10_04_20_23_11_549205.py | 0e12279bb35457c3ba0953ad701ea15292ec51a7 | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 187 | py | import math
def reflexao_total_interna(n1,n2,teta2):
y= math.radians((((n1/n2)*math.sin(math.radians(teta2)))))
if y > 1:
return True
else:
return False
| [
"you@example.com"
] | you@example.com |
04d560051f784a7adef1e2450c98a8917ecc9863 | 297efd4afeb46c0b56d9a975d76665caef213acc | /src/multiplicity/migrations/0044_referencespacelocation_active.py | c685d927bce6613caf9aa25e774e3ac226361258 | [
"MIT"
] | permissive | metabolism-of-cities/metabolism-of-cities-platform-v3 | 67716c3daae86a0fe527c18aef26ce29e069cbcc | c754d3b1b401906a21640b8eacb6b724a448b31c | refs/heads/master | 2022-12-06T22:56:22.207853 | 2020-08-25T09:53:51 | 2020-08-25T09:53:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 422 | py | # Generated by Django 2.1.3 on 2019-03-04 07:33
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('multiplicity', '0043_auto_20190209_1723'),
]
operations = [
migrations.AddField(
model_name='referencespacelocation',
... | [
"paul@penguinprotocols.com"
] | paul@penguinprotocols.com |
a02e962f1c5d82a41e748de8fb1d38b119166c0c | 2f557f60fc609c03fbb42badf2c4f41ef2e60227 | /CondTools/Ecal/python/copyTrivialAlignEB_cfg.py | c690529c0fa086e7e9df506f16670a72c30d21b9 | [
"Apache-2.0"
] | permissive | CMS-TMTT/cmssw | 91d70fc40a7110832a2ceb2dc08c15b5a299bd3b | 80cb3a25c0d63594fe6455b837f7c3cbe3cf42d7 | refs/heads/TMTT_1060 | 2020-03-24T07:49:39.440996 | 2020-03-04T17:21:36 | 2020-03-04T17:21:36 | 142,576,342 | 3 | 5 | Apache-2.0 | 2019-12-05T21:16:34 | 2018-07-27T12:48:13 | C++ | UTF-8 | Python | false | false | 1,416 | py | import FWCore.ParameterSet.Config as cms
process = cms.Process("TEST")
process.load("CalibCalorimetry.EcalTrivialCondModules.EcalTrivialCondRetriever_cfi")
process.load("CondCore.DBCommon.CondDBCommon_cfi")
#process.CondDBCommon.connect = 'oracle://cms_orcoff_prep/CMS_COND_ECAL'
#process.CondDBCommon.DBParameters.aut... | [
"giulio.eulisse@gmail.com"
] | giulio.eulisse@gmail.com |
3c7381700dd51e46681693cb02fba56bbe79e2f3 | cea30aead7f0b529ee072c1bcab2896777e1408d | /PreprocessingCropsData/venv/Lib/site-packages/mpl_toolkits/tests/__init__.py | d5bd2047c484dceb46dbd677b7d1236edf7ab7ae | [] | no_license | pgj9702/FarmSolution | 3730ab3ca983b335ed48a60935c5fa6e3983cbb1 | a8cacc45b8519e79b51ab65b9539a01f5006e64f | refs/heads/master | 2023-03-30T15:41:10.312044 | 2021-03-31T08:47:23 | 2021-03-31T08:47:23 | 334,019,778 | 0 | 1 | null | 2021-02-22T09:32:57 | 2021-01-29T02:52:46 | Python | UTF-8 | Python | false | false | 375 | py | from pathlib import Path
# Check that the test directories exist
if not (Path(__file__).parent / "baseline_images").exists():
raise IOError(
'The baseline image directory does not exist. '
'This is most likely because the test area_data is not installed. '
'You may need to install matplotl... | [
"cao147147@naver.com"
] | cao147147@naver.com |
603882c35d1658fbb70d32cc0a4adab196eec5d2 | 531c47c15b97cbcb263ec86821d7f258c81c0aaf | /sdk/network/azure-mgmt-network/azure/mgmt/network/v2019_04_01/operations/_express_route_circuits_operations.py | aa23a5fe60e0f1801b53387edc44271fb622cf79 | [
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later",
"MIT"
] | permissive | YijunXieMS/azure-sdk-for-python | be364d3b88204fd3c7d223df23756386ff7a3361 | f779de8e53dbec033f98f976284e6d9491fd60b3 | refs/heads/master | 2021-07-15T18:06:28.748507 | 2020-09-04T15:48:52 | 2020-09-04T15:48:52 | 205,457,088 | 1 | 2 | MIT | 2020-06-16T16:38:15 | 2019-08-30T21:08:55 | Python | UTF-8 | Python | false | false | 52,312 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | [
"noreply@github.com"
] | YijunXieMS.noreply@github.com |
1b5e747a4b2642018e32c6e08f4f4180972ecebd | abfff8ab3162f7003b51d3fdcc7897684d2d4e54 | /c_py_extention/Lib/site-packages/pip/_vendor/urllib3/response.py | 5502a119973864003bf66c8602b91f684a84c7cb | [] | no_license | RedKnite5/Junk | 972dc24c99fe30400ab35e77bb4b69abe9076190 | 93b5bb4b6138518724528770cf56ea1df10e95b4 | refs/heads/master | 2023-04-10T07:25:14.968070 | 2023-04-04T04:19:42 | 2023-04-04T04:19:42 | 143,909,118 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 29,042 | py | from __future__ import absolute_import
from contextlib import contextmanager
import zlib
import io
import logging
from socket import timeout as SocketTimeout
from socket import error as SocketError
try:
import brotli
except ImportError:
brotli = None
from ._collections import HTTPHeaderDict
from... | [
"mr.awesome10000@gmail.com"
] | mr.awesome10000@gmail.com |
5bdcc6cf975d1c91609041403c71ecffcb959e0c | 62def70e2d802375b1ad28b0ac85fee2010ee0a9 | /displays/ws2801/rainbow.py | f9bd668f5edc1adab7f890ed626b53de332c52fb | [] | no_license | MarkAYoder/BeagleBoard-exercises | c48028b6e919d8c04dedfd2040a133c760f0f567 | 2fab7c7f7aa09bf101168dfb279e690bc43a6514 | refs/heads/master | 2023-07-22T08:06:19.482358 | 2023-07-12T19:24:51 | 2023-07-12T19:24:51 | 5,111,513 | 48 | 41 | null | 2021-07-29T18:02:29 | 2012-07-19T15:07:14 | JavaScript | UTF-8 | Python | false | false | 1,091 | py | #!/usr/bin/env python
import time
import math
import sys
from LedStrip_WS2801 import LedStrip_WS2801
amp = 10
f = 10
shift = 3
def fillAll(ledStrip, color, sleep):
for i in range(0, ledStrip.nLeds):
ledStrip.setPixel(i, color)
ledStrip.update()
def rainbow(ledStrip, nrOfleds):
phase = 0
skip ... | [
"Mark.A.Yoder@Rose-Hulman.edu"
] | Mark.A.Yoder@Rose-Hulman.edu |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.