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
a8fb8b7d2ef9c77e84d3db0979bea97eff6d25ce
753c8b96d240f6470a29dcfe10ab7cfe0172bea6
/access_control/models/invitation_redirect_url.py
450c771b95db00a9e10706c355c0436130ee6078
[ "BSD-3-Clause" ]
permissive
girleffect/core-authentication-service
a939eaa28ccec72f91b32782053cf7b43001fd61
1e020370e4fe3f1b915da9604389727979746c9b
refs/heads/develop
2022-11-26T06:57:55.971369
2019-08-26T12:33:15
2019-08-26T12:33:15
112,724,628
1
1
BSD-3-Clause
2022-11-22T02:18:13
2017-12-01T10:01:56
Python
UTF-8
Python
false
false
6,526
py
# coding: utf-8 """ Access Control API # The Access Control API ## Overview The Access Control API is an API exposed to other core components. It uses an API Key in an HTTP header to perform authentication and authorisation. Most of the API calls facilitates CRUD of the entities defined in the Access Contro...
[ "cobus.carstens@gmail.com" ]
cobus.carstens@gmail.com
c390f5a8d986b417eed69079315e9a8f43c7be41
b7620d0f1a90390224c8ab71774b9c906ab3e8e9
/aliyun-python-sdk-dcdn/aliyunsdkdcdn/request/v20180115/DescribeDcdnWafPolicyRequest.py
afab104eee7eb7db4f2d8eef7ec682231552e4e9
[ "Apache-2.0" ]
permissive
YaoYinYing/aliyun-openapi-python-sdk
e9c62940baee1a35b9ec4a9fbd1e4eb0aaf93b2f
e9a93cc94bd8290d1b1a391a9cb0fad2e6c64627
refs/heads/master
2022-10-17T16:39:04.515562
2022-10-10T15:18:34
2022-10-10T15:18:34
117,057,304
0
0
null
2018-01-11T06:03:02
2018-01-11T06:03:01
null
UTF-8
Python
false
false
1,624
py
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
[ "sdk-team@alibabacloud.com" ]
sdk-team@alibabacloud.com
796d4c8e26f061c44a8ae74cd3e5f847f5d9ae33
3a1fea0fdd27baa6b63941f71b29eb04061678c6
/src/ch08/instructions/references/Anewarray.py
c800161d30a29da261102a1d0525cafcddd835ce
[]
no_license
sumerzhang/JVMByPython
56a7a896e43b7a5020559c0740ebe61d608a9f2a
1554cf62f47a2c6eb10fe09c7216518416bb65bc
refs/heads/master
2022-12-02T17:21:11.020486
2020-08-18T06:57:10
2020-08-18T06:57:10
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,078
py
#!/usr/bin/env python # encoding: utf-8 """ @author: HuRuiFeng @file: Anewarray.py @time: 2019/9/17 21:18 @desc: anewarray指令用来创建引用类型数组,需要两个操作数。 第一个操作数是uint16索引,来自字节码。通过这个索引可以从当前类的运行时常量池中找到一个类符号引用,解析这个符号引用就可以得到数组元素的类。 第二个操作数是数组长度,从操作数栈中弹出。 """ from ch08.instructions.base.Instruction import Index16Instruction class ANE...
[ "huruifeng1202@163.com" ]
huruifeng1202@163.com
994555769a9d693e422ce57ed23e88324509528f
f9714e6d66f1f36dcf605cef385f7eb2dbff6d30
/src/unmt.py
6fbd4f8dffa5070d0cd7563f6f00d72ff56bb785
[ "Apache-2.0" ]
permissive
aoboturov/UNMT
563914e64acbc804f1e55a3b8d85628a3c6ba328
5e7cc6adea715c0c90c6f4842878d8adca5a6c5c
refs/heads/master
2021-05-02T02:59:17.194124
2018-02-10T13:03:39
2018-02-10T13:03:39
120,890,160
0
0
null
2018-02-09T10:10:21
2018-02-09T10:10:21
null
UTF-8
Python
false
false
8,903
py
import torch import torch.nn as nn import torch.nn.functional as F from torch.autograd import Variable from src.models import EncoderRNN, Generator, AttnDecoderRNN class Discriminator(nn.Module): def __init__(self, max_length, encoder_hidden_size, hidden_size=1024, n_layers=3, activation=F.leaky_relu): s...
[ "phoenixilya@gmail.com" ]
phoenixilya@gmail.com
4f077360587db60dfe5e8af22285f863991c51ca
34de2b3ef4a2478fc6a03ea3b5990dd267d20d2d
/Python/science/integration/newprac/newprac.py
502840fb6d493c538ebf240548e5e943b56e2697
[ "MIT" ]
permissive
bhishanpdl/Programming
d4310f86e1d9ac35483191526710caa25b5f138e
9654c253c598405a22cc96dfa1497406c0bd0990
refs/heads/master
2020-03-26T06:19:01.588451
2019-08-21T18:09:59
2019-08-21T18:09:59
69,140,073
0
1
null
null
null
null
UTF-8
Python
false
false
3,121
py
# cmd: python newprac.py midp.txt F3V range2.txt output.txt import sys import csv w1 = [] w2 = [] fil1 = sys.argv[1] fil2 = sys.argv[2] textfile = sys.argv[4] midf = open(fil1, 'r') num = 0 col1 = [] col2 = [] for line in midf: part1 = line.split() val1 = part1[0] val2 = part1[1] col1.append(val1)...
[ "bhishantryphysics@gmail.com" ]
bhishantryphysics@gmail.com
f549e91d1caf8480598bcc83fbda8514b2418c74
de24f83a5e3768a2638ebcf13cbe717e75740168
/moodledata/vpl_data/84/usersdata/247/52399/submittedfiles/lista1.py
7a510463fb10fc10b44b6415712ccd082d65d668
[]
no_license
rafaelperazzo/programacao-web
95643423a35c44613b0f64bed05bd34780fe2436
170dd5440afb9ee68a973f3de13a99aa4c735d79
refs/heads/master
2021-01-12T14:06:25.773146
2017-12-22T16:05:45
2017-12-22T16:05:45
69,566,344
0
0
null
null
null
null
UTF-8
Python
false
false
362
py
n=int(input('digite: ')) lista=[ ] for i in range(1,n+1,): valor=int(input('d: ')) lista.append(valor) somap=0 somai=0 contp=0 conti=0 for i in range(0,len(lista),1): if lista[i]/2==0: somap=somap+lista[i] contp=contp+1 else: somai=somai+lista[i] conti=conti+1 print(somai...
[ "rafael.mota@ufca.edu.br" ]
rafael.mota@ufca.edu.br
c8653a2a37c86795353a4e72741e89d137677d5d
36bb3dc3dacec82a840ab0a7db906cf4126a16d3
/app/valid_dataset.py
22245bb27672e48773e2ab918e4cc85b5b151a62
[ "MIT" ]
permissive
HiroakiMikami/python-introductory-qa
adf3a06f3598d7c3dd1bc2ee7af06c9dffb13d8d
6035a7927528c086c83b8e7f5119690b1275cf5a
refs/heads/main
2023-01-24T00:21:26.823280
2020-12-05T06:38:13
2020-12-05T06:38:13
312,926,596
0
0
null
null
null
null
UTF-8
Python
false
false
1,057
py
import torch import os import csv from mlprogram import Environment class ValidDataset(torch.utils.data.Dataset): def __init__(self): path = os.path.dirname(__file__) path = os.path.join(path, "..", "data", "test_dataset.csv") samples = [] with open(path) as file: reade...
[ "hiroaki8270+github@gmail.com" ]
hiroaki8270+github@gmail.com
725e80cbedf93e6497c5653c26ccb9b6873866db
dca653bb975528bd1b8ab2547f6ef4f48e15b7b7
/branches/SOC2008_CallbackExceptions/demo/PopupWindow.py
f765fc0186db5534f8b44564e4d4ddbd8caf7bf3
[]
no_license
czxxjtu/wxPython-1
51ca2f62ff6c01722e50742d1813f4be378c0517
6a7473c258ea4105f44e31d140ea5c0ae6bc46d8
refs/heads/master
2021-01-15T12:09:59.328778
2015-01-05T20:55:10
2015-01-05T20:55:10
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,370
py
# # 11/30/2003 - Jeff Grimmett (grimmtooth@softhome.net) # # o Some issues with the listbox example; I tried correcting # it but it's still not working the way it should. Commented # out for now, as I found it. # import wx #--------------------------------------------------------------------------- class Test...
[ "RD@c3d73ce0-8a6f-49c7-b76d-6d57e0e08775" ]
RD@c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
228945f5c7bf5695ad281965d472502b553d24e8
c43c88015f9498aed5f3b5a339d245c31781444e
/Free/l10n_by_doc/models/sale.py
d4ab0685f84e18015926a6ae9a4965087418ce36
[]
no_license
mulaudzicalvin/perpul
65106d41d5197fea17628ac1a7fa7e581d29d75e
00e3a5ee1771d2e09a48460ca23c2e9c2ef507d6
refs/heads/master
2020-03-09T18:39:33.131420
2018-02-05T05:17:36
2018-02-05T05:17:36
null
0
0
null
null
null
null
UTF-8
Python
false
false
628
py
# -*- coding: utf-8 -*- ############################################################################## # # Perpul # Copyright (C) 2016 CodUP (<http://codup.com>). # ############################################################################## from flectra import api, fields, models class SaleOrder(models.Model...
[ "daniel.podvesker@perpul.co" ]
daniel.podvesker@perpul.co
aee883e7d9670304874e3bc3815cd82a01023420
1ac8235de5ef8245ad054f8d2f98214d58988ab1
/data/sampler.py
00fa697362f692e79d813eada9a5f02600c0afe9
[]
no_license
PeterZs/APB2FaceV2
9d34ffa1930bf4a35db2d2e7ae9ea426cde07ca6
8d1555cca6ec42bf71a08efd650798ff1cf4c2c3
refs/heads/main
2023-07-31T10:45:51.599937
2021-10-07T13:05:23
2021-10-07T13:05:23
null
0
0
null
null
null
null
UTF-8
Python
false
false
991
py
import random import collections from torch.utils.data import sampler class VCSampler(sampler.Sampler): def __init__(self, data_source, batch_id, batch_img): super(VCSampler, self).__init__(data_source) self.data_source = data_source self.batch_id = batch_id self.batch_img = batch_...
[ "186368@zju.edu.cn" ]
186368@zju.edu.cn
b26f62ea35718ac1c58ac5f1ce1e37f5c3f7a227
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p02841/s135120433.py
142915155efa4e47b6ba59020b73d69d4a71c840
[]
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
125
py
a, _ = map(int, input().split()) c, d = map(int, input().split()) if a != c and d == 1: print("1") else: print("0")
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
f9075befcb9a4f8a9ed9b19a9f19746bbf0c6cc3
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p04020/s963096814.py
812784b2277da72559caf22172ee39675e8c15ec
[]
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
659
py
N = int(input()) A = [int(input()) for _ in range(N)] def counter(ar): count = 0 for i in range(N): # print(i, ar, count) if i > 0: c = min(ar[i - 1], ar[i]) ar[i - 1] -= c ar[i] -= c count += c c = ar[i] // 2 ar[i] -= c * 2 ...
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
398b8d9d83daef1b5959f0c14817a2044b675bb2
59c1a80321c400890e4d7fea7d67f78052b8b40e
/mysite/settings.py
c6fb4fc900173b314655b47a33d90f3f2468adee
[]
no_license
retyto/my-first-blog
614a718f19f737f45a8bbfbd014a6f4871b57fe4
17bd8c9c9b010f9e9bb99c5e00132ed07a12af6c
refs/heads/master
2023-01-22T04:54:30.566012
2020-11-18T09:52:08
2020-11-18T09:52:08
313,868,610
0
0
null
null
null
null
UTF-8
Python
false
false
3,190
py
""" Django settings for mysite project. Generated by 'django-admin startproject' using Django 2.0.13. For more information on this file, see https://docs.djangoproject.com/en/2.0/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.0/ref/settings/ """ import os #...
[ "you@example.com" ]
you@example.com
1f70875a32f848ccd044a4a1e37eab6876bee4a3
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03031/s085078582.py
326513142192494c13d6b4174f6fdd648ef3aefd
[]
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
725
py
n,m = map(int,input().split()) l = [] for i in range(1 << n): tmp = str(bin(i))[2:] l.append(tmp.zfill(n)) K = [list(map(int,input().split())) for _ in range(m)] P = list(map(int,input().split())) #print(P) ans = 0 #print("----") for i in range(len(l)): #スイッチの状態l[i] #付いている電球のリストO O = [] for j in...
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
552ee4b5707a9436a4d93a3725e90a1a8a775a1d
41f548fc3052d4cd3a94e3171a0e2120705ed760
/forum/forum/settings.py
2ea99cea1ce5ee9f25fd6aa11c09360ecfd636b1
[]
no_license
SuperShen9/Scrapy
806f972bcd05d85bf02349c5ee7711af550c8568
cbe141f697596d5a384bb968d7343194236a541f
refs/heads/master
2021-01-19T13:04:19.957911
2018-06-27T23:47:21
2018-06-27T23:47:21
88,060,453
0
0
null
null
null
null
UTF-8
Python
false
false
3,319
py
""" Django settings for forum project. Generated by 'django-admin startproject' using Django 1.10. For more information on this file, see https://docs.djangoproject.com/en/1.10/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.10/ref/settings/ """ import os fro...
[ "675153178@qq.com" ]
675153178@qq.com
90e8e9113517f1909a6825df0620cff2d994c698
58afefdde86346760bea40690b1675c6639c8b84
/leetcode/minimum-difficulty-of-a-job-schedule/390932639.py
5067110d923ca30e60194b46fa8b8faa3aa7054d
[]
no_license
ausaki/data_structures_and_algorithms
aaa563f713cbab3c34a9465039d52b853f95548e
4f5f5124534bd4423356a5f5572b8a39b7828d80
refs/heads/master
2021-06-21T10:44:44.549601
2021-04-06T11:30:21
2021-04-06T11:30:21
201,942,771
1
0
null
null
null
null
UTF-8
Python
false
false
976
py
# title: minimum-difficulty-of-a-job-schedule # detail: https://leetcode.com/submissions/detail/390932639/ # datetime: Fri Sep 4 21:57:54 2020 # runtime: 796 ms # memory: 15.2 MB class Solution: def minDifficulty(self, jobDifficulty: List[int], d: int) -> int: n = len(jobDifficulty) M = 1e6 ...
[ "ljm51689@gmail.com" ]
ljm51689@gmail.com
b61ac55197810430738dc27986b54de491ccfee1
cbf97ae0ce36a836b226f69da0b1fca6f6134c34
/star-for-loop.py
2bddd827222ef327ba05f7d4d137b2398dd3e0bb
[]
no_license
habibor144369/turtle-python-programe
c1aff0529d50f88bb39b42c8001f54df448b7549
a134454ab55860384a0a770b785e413b0b185238
refs/heads/main
2023-01-31T23:55:53.932158
2020-12-14T13:51:27
2020-12-14T13:51:27
321,362,042
1
0
null
null
null
null
UTF-8
Python
false
false
385
py
# star art using for loop with turtle....by user input--- import turtle num1 = int(input("Enter your first value type 200 : ")) num2 = int(input("Enter your second value type 144 : ")) turtle.color('blue') turtle.shape('turtle') turtle.speed(2) for i in range(5): turtle.forward(num1) turtle.right(num2) turtl...
[ "you@example.com" ]
you@example.com
79408ca262c1cb8588aaff4d4a87a5dfdbe30991
3044d26f03f23e8e8c5fcec57b78bfffe0fa0bd3
/case/test1.py
37df9b2b5b9da91c09719fc090b00b3bbd8ee562
[]
no_license
tian848-tim/trunk
de50a153c8cab3c81c79c523256a6f1b4c2f049d
cd52afdd003f094056dc2ea877c823a38e6a26fd
refs/heads/master
2022-11-20T06:43:35.540105
2020-07-20T07:48:26
2020-07-20T07:48:26
281,048,661
0
0
null
null
null
null
UTF-8
Python
false
false
12,968
py
''' 测试用例标题:费用支付测试 测试场景:费用支付流程测试 创建者:Tom 修改者:Tim 创建日期:2018-7-25 最后修改日期:2018-11-14 输入数据:供应商:搭瓦家具公司,审批流程各个角色账号 输出数据:无 ''' # -*- coding: utf-8 -*- import sys,os curPath = os.path.abspath(os.path.dirname(__file__)) rootPath = os.path.split(curPath)[0] #sys.path.append(rootPath) import unittest from cgitb import text imp...
[ "tim.long@Newaim01.com" ]
tim.long@Newaim01.com
c36e833ff388ab62b86ecedb9081a923583f7391
3c1c447bb1de89094dcd3cb2e85b227d3d6aa2fb
/lesson3/3.py
5a8d107084ff21fe9c90cbefd87483bc0a831780
[]
no_license
kirigaikabuto/Python13Lessons
ebd9431314fc4ab8bd470cfe137dfc60000b90a0
6ab8390fd1cc0aac87d373cb1a50d2c9b4405391
refs/heads/main
2023-06-03T00:29:36.791865
2021-06-15T15:17:29
2021-06-15T15:17:29
314,754,425
0
0
null
null
null
null
UTF-8
Python
false
false
635
py
number1 = int(input("введите первое число:")) number2 = int(input("введите второе число:")) number3 = int(input("введите третье число:")) maxi = 0 mini = 0 if number1 > number2 and number1 > number3: maxi = number1 elif number2 > number1 and number2 > number3: maxi = number2 else: maxi = number3 if number1...
[ "ytleugazy@dar.kz" ]
ytleugazy@dar.kz
b973ad0d85de120b46a6a38bd6d4b660e214a560
d8edd97f8f8dea3f9f02da6c40d331682bb43113
/networks919.py
be1d78c2c3bcec430f779cdc235ffb84a9862c06
[]
no_license
mdubouch/noise-gan
bdd5b2fff3aff70d5f464150443d51c2192eeafd
639859ec4a2aa809d17eb6998a5a7d217559888a
refs/heads/master
2023-07-15T09:37:57.631656
2021-08-27T11:02:45
2021-08-27T11:02:45
284,072,311
0
0
null
null
null
null
UTF-8
Python
false
false
7,879
py
import torch import torch.nn as nn import torch.nn.functional as F import numpy as np __version__ = 205 # Number of wires in the CDC n_wires = 3606 # Number of continuous features (E, t, dca) n_features = 3 geom_dim = 4 def wire_hook(grad): print('wg %.2e %.2e' % (grad.abs().mean().item(), grad.std().item())) ...
[ "m.dubouchet18@imperial.ac.uk" ]
m.dubouchet18@imperial.ac.uk
d974632bbb2b5c1ea13ce0f0c7293ef6926399a7
c05b8a2e45fdb096ed47c388bea07203b11314f5
/rst_lsp/sphinx_ext/main.py
ee48d47b96721c4ea3a2269b99a5a98124d214d8
[ "MIT" ]
permissive
farisachugthai/rst-language-server
d08e479553d9cce0e8103ee8882e4c77df48d6a9
d62303089e1e314cb21538d7b97824522173354a
refs/heads/master
2022-08-23T22:42:12.827471
2020-05-24T19:27:41
2020-05-24T19:27:41
266,609,298
0
0
null
2020-05-24T19:21:07
2020-05-24T19:21:06
null
UTF-8
Python
false
false
10,560
py
"""Module for building a mapping of document/line/character to RST elements. This modules contains `sphinx_env`, which is a context manager, that allows sphinx to be initialised, outside of the command-line. """ from contextlib import contextmanager import copy from io import StringIO from importlib import import_mod...
[ "chrisj_sewell@hotmail.com" ]
chrisj_sewell@hotmail.com
c0d7a9630867aa04c07bf46e7b3040f28e0d9d21
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p02689/s274095061.py
ce287ee27ff39e3009841ac7248b4345e253e74d
[]
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
557
py
n, m = map(int,input().split()) lst = list(map(int,input().split())) lst2 = [] for i in range(n): lst3 = [lst[i]] lst2.append(lst3) for i in range(m): a, b = map(int,input().split()) a = a - 1 b = b - 1 lst2[a].append(lst2[b][0]) lst2[b].append(lst2[a][0]) ans = 0 for i in range(n): x ...
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
e5a5e9a54dfdf3f3489f0a0b4f59ae3865cb7d10
15f321878face2af9317363c5f6de1e5ddd9b749
/solutions_python/Problem_135/4058.py
2d215bf919d62abf8b7391deac4d51a1ed680c96
[]
no_license
dr-dos-ok/Code_Jam_Webscraper
c06fd59870842664cd79c41eb460a09553e1c80a
26a35bf114a3aa30fc4c677ef069d95f41665cc0
refs/heads/master
2020-04-06T08:17:40.938460
2018-10-14T10:12:47
2018-10-14T10:12:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,075
py
# -*- encoding: utf-8 -*- """ Google Code Jam 2014 QR A : Magic Trick """ import numpy as np import sys import ipdb with open(sys.argv[1], 'r') as f: tc_input = f.readlines() raw_input = lambda: tc_input.pop(0) T = int(raw_input()) #print("input : {} test cases".format(T)) def tc(): guess1 = int(raw_input...
[ "miliar1732@gmail.com" ]
miliar1732@gmail.com
91a0d538e6875f05c5abc4ddac0c438e18e79e09
18caf0718520c8c9e57d083606867231629c83b7
/August/190812_01.py
e31c318bd89d7fbd729d2e8308e8d1a08ebc8e6e
[]
no_license
GyuReeKim/Algorithm
b1adedb1ddf9e25c8b0925c55b14867eb2746669
514d6c3ca5b96d728605f12c8793aeb61ba1183d
refs/heads/master
2020-07-03T11:43:05.683077
2019-08-27T05:58:13
2019-08-27T05:58:13
201,894,515
0
0
null
null
null
null
UTF-8
Python
false
false
222
py
# 2072번 test = int(input()) for t in range(test): number = list(map(int, input().split())) result = 0 for num in number: if num % 2: result += num print('#{0} {1}'.format(t+1, result))
[ "starkim96@naver.com" ]
starkim96@naver.com
a6c0edd13cec3bb21db4942ee09c9be02e29e163
9829fef375374a3887326fa3ac814914c2db63a5
/datasets.py
4c7ac4310a19848d106c7956bf97f7696251e601
[]
no_license
fuchami/scene_detection_pytorch
bf78a19011176112e6a0dd4bc9462c9302d20008
2befe163a7d78674ebdb4ec7c22e6d50c609214f
refs/heads/master
2022-04-07T02:06:16.345739
2020-02-20T06:54:43
2020-02-20T06:54:43
216,630,900
0
0
null
null
null
null
UTF-8
Python
false
false
19,808
py
# coding:utf-8 import numpy as np import pandas as pd import os, sys, glob, csv from sklearn.preprocessing import scale from PIL import Image import torch from torch.utils.data import Dataset from torch.utils.data.sampler import BatchSampler from torchvision import transforms class SiameseMulti(Dataset): def __in...
[ "famichiki.yuuki@gmail.com" ]
famichiki.yuuki@gmail.com
2f65716e78d063dc8abd187fa89339ef1a73c650
4500172cf203b078bd1826062821af16018747ee
/project/rent/migrations/0048_auto__add_field_memberrentalplan_restored_from_history__chg_field_memb.py
c30c37125576a1c6c9e0850e34c98a7ed048b491
[]
no_license
chrisblythe812/gamemine
726ad338279a80676eee9693a6ecc6bfca5eaf13
7c3acc39a24c38ae2ee06b71104a24cfbbde8453
refs/heads/master
2020-04-05T22:53:46.622902
2012-01-26T00:50:28
2012-01-26T00:50:28
3,269,945
1
0
null
null
null
null
UTF-8
Python
false
false
40,183
py
# encoding: utf-8 import datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Adding field 'MemberRentalPlan.restored_from_history' db.add_column('rent_memberrentalplan', 'restored_f...
[ "christopher.ratha@gmail.com" ]
christopher.ratha@gmail.com
f048c21cdb9e9d7f408c1b701bcc5697908e4167
8de51c7cc961541d1296cd83cc5f7014908742ea
/greedy/02.py
0c92558eedee309c6406e9bd7f88f013cc0cc835
[]
no_license
Nahui068/python-codingTest
115ab827acfe0129606402d0d762274ef79b9bf2
4d1728cae015417b37a2d555b9d51d9dab58f606
refs/heads/master
2023-02-24T07:06:30.756843
2021-02-04T06:34:11
2021-02-04T06:34:11
335,841,475
0
0
null
null
null
null
UTF-8
Python
false
false
341
py
n,m,k = map(int,input().split()) num = list(map(int,input().split())) num.sort() # 오름차순 정렬 first = num[n-1] # 가장 큰 수 저장 second = num[n-2] # 두번째로 큰 수 저장 sum = 0 while True: for i in range(k): if(m<=0): break sum+=first m-=1 if(m<=0): break sum+=second m-=1 print(sum)
[ "replituser@example.com" ]
replituser@example.com
61cc09801b8492233e759a3adab67a58f03f6cdb
c48ce45d9b7ab5008c297a9eb5750537389433fa
/src/docker_remote/client/__init__.py
c6e84f26b171dd4ed66c1b10af127939128065d5
[ "MIT" ]
permissive
ilayshp/docker-remote
e03c9a09fd1b07c472d47cd558d9e2264b6efc00
9b9bf1587e87c576bd4b4f34dab5d83ba572d443
refs/heads/master
2020-04-28T13:29:01.721244
2019-01-13T21:39:56
2019-01-13T21:39:56
null
0
0
null
null
null
null
UTF-8
Python
false
false
9,996
py
# The MIT License (MIT) # # Copyright (c) 2018 Niklas Rosenstein # # 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,...
[ "rosensteinniklas@gmail.com" ]
rosensteinniklas@gmail.com
a3561fc35c2ee09eeca88d20467b85411ec9861c
ef30bc9d1f3efbc8cb4f8641968e5bbd4046322a
/computer/rc_driver2.py
a0a25a49f271a410462dac2f973f5cf398058382
[ "BSD-2-Clause" ]
permissive
wupanhao/self-driving-car
d8459685a5a0276df181100ac4fc8fcaca8c2bfd
4f5a03699ef939d6f469ba98cc32adbdc27f8213
refs/heads/master
2020-04-03T15:43:13.611174
2018-11-21T12:19:15
2018-11-21T12:19:15
155,374,141
0
1
null
null
null
null
UTF-8
Python
false
false
6,522
py
__author__ = 'zhengwang' import sys import threading import socketserver import numpy as np from model import NeuralNetwork from rc_driver_helper2 import * # distance data measured by ultrasonic sensor sensor_data = None class SensorDataHandler(socketserver.BaseRequestHandler): data = " " def handle(sel...
[ "wupanhao@qq.com" ]
wupanhao@qq.com
377a477984ad2a01881e08775d22e0b3bc08913d
db903a5e99712d1f45e1d45c4d77537f811ae569
/src/python/pants/core/register.py
0d11c691c8e5c6138153cffde8fd64d37922ed6c
[ "Apache-2.0" ]
permissive
Hirni-Meshram2/pants
777db8ea67c1fc66de46f0ab374ba4fff8597357
e802d62cc68176aa66947a939c771b01f47d5425
refs/heads/main
2023-05-01T09:23:10.973766
2021-05-19T08:24:50
2021-05-19T08:24:50
366,021,656
0
2
Apache-2.0
2021-05-10T11:38:07
2021-05-10T11:38:06
null
UTF-8
Python
false
false
1,582
py
# Copyright 2020 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). """Core rules for Pants to operate correctly. These are always activated and cannot be disabled. """ from pants.core.goals import fmt, lint, package, repl, run, tailor, test, typecheck f...
[ "noreply@github.com" ]
Hirni-Meshram2.noreply@github.com
48976756443a772d8b15fbf4cdbc8598a3ae3fd7
fa38f67a6f5296ba64de8d771492f9db230cf5ed
/set.py
62aa4881e65a8480cf73c015f87993d953c23e57
[]
no_license
traffaillac/traf-kattis
5ebc2b0411c9f27da5d9080c269ad0add227a79c
1b6bfdad48f3fab31902d85ed48b1bd0a8f44d0f
refs/heads/master
2023-08-16T21:44:56.885553
2023-08-12T15:04:43
2023-08-12T15:04:43
236,475,020
0
0
null
null
null
null
UTF-8
Python
false
false
531
py
cards = [] for _ in range(4): cards.extend(input().split()) nosets = True for i, c in enumerate(cards): for j in range(i+1, len(cards)): d = cards[j] for k in range(j+1, len(cards)): e = cards[k] if (c[0]==d[0]==e[0] or c[0]!=d[0]!=e[0] and c[0]!=e[0]) and \ (c[1]==d[1]==e[1] or c[1]!=d[1]!=e[1] and c[1...
[ "traf@kth.se" ]
traf@kth.se
349761a521749e881c2bfe7b95049eb0f21e7e93
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p02819/s252754906.py
1fe0391f976d0ee47beb965427f7ddd28ea46252
[]
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
616
py
a = int(input()) import math def is_prime(x): if x < 2: return False # 2未満に素数はない if x == 2 or x == 3 or x == 5: return True # 2,3,5は素数 if x % 2 == 0 or x % 3 == 0 or x % 5 == 0: return False # 2,3,5の倍数は合成数 # ためし割り: 疑似素数(2でも3でも5でも割り切れない数字)で次々に割っていく prime = 7 step = 4 while prime <= math.sqr...
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
1271da36c3afc2cc2a404ab0eb400556d1bfe93b
85a9ffeccb64f6159adbd164ff98edf4ac315e33
/pysnmp/Juniper-PPP-MIB.py
dab4005064efcf4be411b0aeb7666e06bd11af1d
[ "Apache-2.0" ]
permissive
agustinhenze/mibs.snmplabs.com
5d7d5d4da84424c5f5a1ed2752f5043ae00019fb
1fc5c07860542b89212f4c8ab807057d9a9206c7
refs/heads/master
2020-12-26T12:41:41.132395
2019-08-16T15:51:41
2019-08-16T15:53:57
237,512,469
0
0
Apache-2.0
2020-01-31T20:41:36
2020-01-31T20:41:35
null
UTF-8
Python
false
false
135,041
py
# # PySNMP MIB module Juniper-PPP-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/Juniper-PPP-MIB # Produced by pysmi-0.3.4 at Mon Apr 29 19:53:00 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27...
[ "dcwangmit01@gmail.com" ]
dcwangmit01@gmail.com
13acd62b1f994f9998b67c23f28493abbf4bc51e
9eba644685c123c4e25fce7046e24f767a8b1a48
/pyfrid/management/commands/project/newcmd.py
7bdf9f0279c3114dc0498d016264838c824f3a2d
[]
no_license
pyfrid/pyfrid-base
1365f25895e611e4f909c8684c8cc808b56ef19f
e1329cf70be3ddba94c835775c77286e62e290e9
refs/heads/master
2021-01-01T15:30:56.824405
2012-07-25T08:01:43
2012-07-25T08:01:43
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,269
py
# Copyright 2012 Denis Korolkov # # 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 t...
[ "pyfrid@gmail.com" ]
pyfrid@gmail.com
1d32896d3bdfdbe1a6af90a5b262ee5656c4e555
0653de38458ee74f7ddb24804fb4e70bebbf46b1
/manage.py
ec325d3fb86a79eb87f1d336f69af7a16af58986
[]
no_license
RogerMendez/cedounefco
88fa2a6ddea492af6e002a7c26585a0d9f843440
b45ebbee40c3ad95f7b775f6132d0d54f7a8614e
refs/heads/master
2021-09-04T04:21:16.701640
2018-01-15T19:06:19
2018-01-15T19:06:19
116,993,752
0
0
null
null
null
null
UTF-8
Python
false
false
542
py
#!/usr/bin/env python import os import sys if __name__ == "__main__": os.environ.setdefault("DJANGO_SETTINGS_MODULE", "cedounefco.settings") try: from django.core.management import execute_from_command_line except ImportError as exc: raise ImportError( "Couldn't import Django. A...
[ "Roger.Mendez.R@gmail.com" ]
Roger.Mendez.R@gmail.com
155290fd7cc1ad1bf1328b6d285ec560d46c4d96
1a435a6d1e8b3d5ad9b09d21e93bf11394c9e63b
/pretrained-model/smith/preprocessing_smith.py
b1381f2135dc72e902e65742414b3d1c82d8c76d
[ "MIT" ]
permissive
lantip/Malaya
e3475ead91476df786e39de0f7680996c29fc641
48332f400691151f5c5059ee9a51d92003b75142
refs/heads/master
2021-09-22T17:19:17.286068
2021-09-15T04:22:47
2021-09-15T04:22:47
242,688,565
0
0
MIT
2020-02-24T08:56:24
2020-02-24T08:56:23
null
UTF-8
Python
false
false
24,951
py
# coding=utf-8 # Copyright 2021 The Google Research 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 applicab...
[ "husein.zol05@gmail.com" ]
husein.zol05@gmail.com
f2cac1848028c293a7b8741c8a2abd7a27db3a1a
5308d3624036fb27ca158b520d2c59b643f8bf32
/tests/test_config_value.py
8f3144c42f0553cacf932ffd09e280bb6b77eb20
[ "BSD-3-Clause", "BSD-2-Clause" ]
permissive
kernsuite-debian/galsim
bfacc7f665e35595189c03b164e61809c2943cc5
1515537b429fb3337d5c1090f9161f0fb223f2a0
refs/heads/master
2022-11-06T21:22:51.794046
2018-08-29T18:51:56
2018-08-29T18:51:56
82,295,722
0
1
NOASSERTION
2022-10-19T06:05:05
2017-02-17T12:33:53
Python
UTF-8
Python
false
false
76,994
py
# Copyright (c) 2012-2018 by the GalSim developers team on GitHub # https://github.com/GalSim-developers # # This file is part of GalSim: The modular galaxy image simulation toolkit. # https://github.com/GalSim-developers/GalSim # # GalSim is free software: redistribution and use in source and binary forms, # with or w...
[ "gijs@pythonic.nl" ]
gijs@pythonic.nl
a4b848a56ed6dbb41c6a361f5b53f701a7c2903a
20d8a89124008c96fa59225926ce39f113522daa
/Nov2019/VBS/WWjj_ss_pol_hadronic/2016/fake.py
6a1d491afc80bdc4698dd4ebd7068287c3ab537f
[]
no_license
MiT-HEP/MCProduction
113a132a2ff440e13225be518ff8d52b0136e1eb
df019d7a15717a9eafd9502f2a310023dcd584f5
refs/heads/master
2022-05-06T20:25:34.372363
2022-04-12T11:55:15
2022-04-12T11:55:15
37,586,559
5
7
null
2015-08-24T11:13:58
2015-06-17T09:45:12
Python
UTF-8
Python
false
false
9,815
py
# Auto generated configuration file # using: # Revision: 1.19 # Source: /local/reps/CMSSW/CMSSW/Configuration/Applications/python/ConfigBuilder.py,v # with command line options: step1 --filein file:step3.root --fileout file:step4.root --mc --eventcontent MINIAODSIM --runUnscheduled --datatier MINIAODSIM --conditions...
[ "andrea.marini@cern.ch" ]
andrea.marini@cern.ch
19f98f67b964a7b640c17558bfaf5ecef48263e1
d5735851b605e8960ca321c0e332c7ed810f3e6d
/Python/files/searchRange.py
2330106c4ca96e087c9e15e83aa2cb749710e1ce
[]
no_license
pyj4104/LeetCode-Practice
6ed0cffd3605be6e187bedeb99e3b4b430604913
6a7d033bfd687ad2a0d79ac6a7f50ace1625f631
refs/heads/master
2023-03-12T00:23:50.913239
2021-02-25T03:38:11
2021-02-25T03:38:11
306,699,384
0
0
null
null
null
null
UTF-8
Python
false
false
830
py
class Solution: def searchRange(self, nums: [int], target: int) -> [int]: if not nums: return [-1, -1] if len(nums) == 1: if nums[0] == target: return [0,0] else: return [-1,-1] def condition(mid: int, retVal: [int], indexToRemember: int): if nums[mid] == target: retVal[ind...
[ "pyj4104@hotmail.com" ]
pyj4104@hotmail.com
536fc41c48f9b68e05cfa26805fb8790b242b953
5ec6e98503d20c6e6531f55b015d0908a3fc3760
/python/src/euler/exercises/ex0025.py
53d14c751956b8f4c08781a95f14a43ef29a8b74
[]
no_license
abingham/project_euler
64a4d8cb1049464b30f00a8d8bc03b6e7895e94c
b2ac07e054be1e03ec44de6610bce9439e57a34d
refs/heads/master
2021-01-21T23:20:50.269244
2019-01-12T08:16:45
2019-01-12T08:16:45
10,052,846
0
0
null
null
null
null
UTF-8
Python
false
false
639
py
""" The Fibonacci sequence is defined by the recurrence relation: Fn = Fn−1 + Fn−2, where F1 = 1 and F2 = 1. Hence the first 12 terms will be: F1 = 1 F2 = 1 F3 = 2 F4 = 3 F5 = 5 F6 = 8 F7 = 13 F8 = 21 F9 = 34 F10 = 55 F11 = 89 F12 = 144 The 12th term, F12, is the first term to contain three digits. What is the index...
[ "austin.bingham@gmail.com" ]
austin.bingham@gmail.com
c73e8e78e5f0f60b6cc3d6f189ed228e8adb8cd5
4781d9293b59a5072647bb179195b143c60621bd
/프로그래머스/여행경로/test.py
177ada6616e93eb8f23a172231d6c6551f638098
[]
no_license
chriskwon96/Algorithm_codes
bf98131f66ca9c091fe63db68b220527800069c9
edb7b803370e87493dad4a38ee858bb7bb3fd31d
refs/heads/master
2023-08-15T18:48:26.809864
2021-10-12T13:43:21
2021-10-12T13:43:21
387,803,476
0
0
null
null
null
null
UTF-8
Python
false
false
139
py
# t = [["ICN", "JFK"], ["HND", "IAD"], ["JFK", "HND"]] # # # t.sort(key= lambda x: x[1]) # # print(t) a = ["a", "b"] b = ["c"] print(a+b)
[ "chriskwon96@naver.com" ]
chriskwon96@naver.com
7e658bf8f905fc207cb3fcb1445242b74bb75f2b
bbc0815f4a697600689375e9aff778a6e059637c
/test_socketserver.py
0b76393db76ac8d0dde9c84655e62d2dfd49b5d0
[]
no_license
OlyaUl/socket
dbb9e12767f082f25855cd4896030968b7090a6a
c0ec9cfe15fc3d8793c8e42e27b524432e8619d5
refs/heads/master
2021-07-08T23:00:44.976315
2017-09-28T13:59:02
2017-09-28T13:59:02
105,138,149
0
0
null
null
null
null
UTF-8
Python
false
false
723
py
#! env bin/python # codding = utf-8 import socketserver # class MyHandler(socketserver.BaseRequestHandler): class MyHandler(socketserver.StreamRequestHandler): # class MyHandler(socketserver.ThreadingMixIn, socketserver.TCPServer): - no working def handle(self): # при подкл клиента print(self.client_add...
[ "johndoe@example.com" ]
johndoe@example.com
e83265bc62ecfe189816567a21ae82159e9fb6f0
aa4b80cf7e7ac0028d0c7f67ade982d9b740a38b
/python/list/sort.py
6a0495baa06b45a676169a55c25bc5c84ff59a33
[]
no_license
ratularora/python_code
9ac82492b8dc2e0bc2d96ba6df6fdc9f8752d322
ddce847ba338a41b0b2fea8a36d49a61aa0a5b13
refs/heads/master
2021-01-19T04:34:22.038909
2017-09-27T08:14:45
2017-09-27T08:14:45
84,435,244
2
0
null
null
null
null
UTF-8
Python
false
false
82
py
aList = [123, 'xyz', 'zara', 'abc', 'xyz']; aList.sort(); print "List : ", aList
[ "arora.ratul@gmail.com" ]
arora.ratul@gmail.com
597f7566dbb9a65f2d7c2dcc8822fa20c9cd2a10
aa4024b6a846d2f6032a9b79a89d2e29b67d0e49
/GM2AUTOSAR_MM/collapse_rules/models/move_one_input_repeated_direct_match_diff_rules_MDL.py
12afe9a3b57af798a7e7369224ea190f126db2e2
[ "MIT" ]
permissive
levilucio/SyVOLT
41311743d23fdb0b569300df464709c4954b8300
0f88827a653f2e9d3bb7b839a5253e74d48379dc
refs/heads/master
2023-08-11T22:14:01.998341
2023-07-21T13:33:36
2023-07-21T13:33:36
36,246,850
3
2
MIT
2023-07-21T13:33:39
2015-05-25T18:15:26
Python
UTF-8
Python
false
false
32,361
py
""" __move_one_input_repeated_direct_match_diff_rules_MDL.py_____________________________________________________ Automatically generated AToM3 Model File (Do not modify directly) Author: levi Modified: Wed Aug 21 13:13:43 2013 ___________________________________________________________________________________________...
[ "levi" ]
levi
62fff1a28c3ed6bacfa91af3689825ca06692ee9
7030c780db36c7d8efedb1152cf945a3cc248fdb
/python/cuml/benchmark/automated/dask/conftest.py
4e406ed5a60ed2b49f5176d52aac5183dc21c6bd
[ "Apache-2.0" ]
permissive
rapidsai/cuml
546af8151fd2ee0f737cc4e62386d4b0ede74f3d
7d86042b8de06bc8acce632230fe5821bd36c17d
refs/heads/branch-23.10
2023-08-30T19:17:41.816373
2023-08-28T13:23:15
2023-08-28T13:23:15
152,616,802
3,615
569
Apache-2.0
2023-09-14T00:21:52
2018-10-11T15:45:35
C++
UTF-8
Python
false
false
1,690
py
# # Copyright (c) 2021-2023, NVIDIA CORPORATION. # # 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 ag...
[ "noreply@github.com" ]
rapidsai.noreply@github.com
9f0696229b4b7e16413570f05a7527c7b9f63037
47a3a59288792f654309bfc9ceb6cbfa890720ef
/ramda/symmetric_difference_with_test.py
ee111b4cfdf45147e72b564173979915c648b420
[ "MIT" ]
permissive
jakobkolb/ramda.py
9531d32b9036908df09107d2cc19c04bf9544564
982b2172f4bb95b9a5b09eff8077362d6f2f0920
refs/heads/master
2023-06-23T00:46:24.347144
2021-02-01T16:47:51
2021-02-01T16:48:25
388,051,418
0
0
MIT
2021-07-21T16:31:45
2021-07-21T08:40:22
null
UTF-8
Python
false
false
337
py
from ramda import * from ramda.private.asserts import * eq_a = eq_by(prop("a")) l1 = [{"a": 1}, {"a": 2}, {"a": 3}, {"a": 4}] l2 = [{"a": 3}, {"a": 4}, {"a": 5}, {"a": 6}] def symmetric_difference_with_test(): assert_equal( symmetric_difference_with(eq_a, l1, l2), [{"a": 1}, {"a": 2}, {"a": 5}, ...
[ "slava.ganzin@gmail.com" ]
slava.ganzin@gmail.com
2afc2cca77227f0f8b08ea769da6af062d7ee83d
c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c
/cases/synthetic/sieve-big-8866.py
247b6c1758f378e624a1e101968886f4dd1441e3
[]
no_license
Virtlink/ccbench-chocopy
c3f7f6af6349aff6503196f727ef89f210a1eac8
c7efae43bf32696ee2b2ee781bdfe4f7730dec3f
refs/heads/main
2023-04-07T15:07:12.464038
2022-02-03T15:42:39
2022-02-03T15:42:39
451,969,776
0
0
null
null
null
null
UTF-8
Python
false
false
31,762
py
# A resizable list of integers class Vector(object): items: [int] = None size: int = 0 def __init__(self:"Vector"): self.items = [0] # Returns current capacity def capacity(self:"Vector") -> int: return len(self.items) # Increases capacity of vector by one element def incr...
[ "647530+Virtlink@users.noreply.github.com" ]
647530+Virtlink@users.noreply.github.com
11d29a160e4cf1a0ed1468ae2d52c4a22b384b6d
17acb8e20f9a24b16ce3651302fc2d7fc7b887a6
/test/programytest/storage/asserts/store/assert_denormals.py
69b8759e56ba8ce09df6b4135c836a569fcbd33e
[ "MIT" ]
permissive
cen-ai/program-y
91052fdc11aec0f60311e3429895fac489d8ce54
a753667638147544c54dbebd9f1c8f9ae7f2159e
refs/heads/master
2020-03-22T15:11:07.896885
2018-10-15T22:13:58
2018-10-15T22:13:58
140,234,173
5
5
NOASSERTION
2019-01-03T09:09:07
2018-07-09T05:11:08
Python
UTF-8
Python
false
false
705
py
import unittest import re import os import os.path from programy.mappings.denormal import DenormalCollection class DenormalStoreAsserts(unittest.TestCase): def assert_upload_from_file(self, store): denormal_collection = DenormalCollection() store.upload_from_file(os.path.dirname(__file__) + os...
[ "edguy@eguy.org" ]
edguy@eguy.org
8e7264bd2a84391d707a6246b51f823ef9707a0c
f0d713996eb095bcdc701f3fab0a8110b8541cbb
/6CGomPbu3dK536PH2_17.py
27f13d0539ea212854da0286de565a92547ab1db
[]
no_license
daniel-reich/turbo-robot
feda6c0523bb83ab8954b6d06302bfec5b16ebdf
a7a25c63097674c0a81675eed7e6b763785f1c41
refs/heads/main
2023-03-26T01:55:14.210264
2021-03-23T16:08:01
2021-03-23T16:08:01
350,773,815
0
0
null
null
null
null
UTF-8
Python
false
false
550
py
""" Create a function that takes in a list and returns a list of the accumulating sum. ### Examples accumulating_list([1, 2, 3, 4]) ➞ [1, 3, 6, 10] # [1, 3, 6, 10] can be written as [1, 1 + 2, 1 + 2 + 3, 1 + 2 + 3 + 4] accumulating_list([1, 5, 7]) ➞ [1, 6, 13] accumulating_list([1, 0, 1, 0...
[ "daniel.reich@danielreichs-MacBook-Pro.local" ]
daniel.reich@danielreichs-MacBook-Pro.local
d7c9010f10bd7c7e91f7c8b5e7e792d9750c4da7
5ecfa1bf82a7a9fcb542f5063e0ef1c439e0607d
/chapter_13/mnist_cnn_exp2C.py
03e96d9ac5feac8d922808c1ba4ea8a2bab56b65
[ "MIT" ]
permissive
alexiewx/PracticalDeepLearningPython
54256e1e973d30d4290ae9346ee2d314ab6f59c8
7466bac89e6e8e1e491dcacc5172598a05920d79
refs/heads/main
2023-08-30T22:39:04.848840
2021-10-24T17:47:39
2021-10-24T17:47:39
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,246
py
from __future__ import print_function import keras from keras.datasets import mnist from keras.models import Sequential from keras.layers import Dense, Dropout, Flatten from keras.layers import Conv2D, MaxPooling2D, Activation from keras import backend as K import time N = 1024 batch_size = 8 num_classes = 10 epochs ...
[ "oneelkruns@hotmail.com" ]
oneelkruns@hotmail.com
85547d25e57049d7553782dda262b1f9f0027fd3
09d92619e732c8bab40eb4d820a82be34ab79980
/Config/scheduler_job.py
85b0e824b3993c17becb94765a2ae9c9fbf8c929
[]
no_license
Hanlen520/pythonApi
48d0373759f41c96a12db5a566524ce006faaa11
4d9005604b51f243204f93098e9b01b2edfb487e
refs/heads/master
2022-09-05T02:05:55.528195
2020-03-26T06:32:18
2020-03-26T06:32:18
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,233
py
# -*- coding:utf-8 -*- class Config(object): # 监听出错的任务 @staticmethod def my_listener(event): if event.exception: print('任务出错了!!!!!!') else: print('任务照常运行......') JOBS = [ { 'id': 'job_test1', # 任务的唯一id 'func': 'Config.schedu...
[ "feixiaochun@daihoubang.com" ]
feixiaochun@daihoubang.com
9c918a66b4de885d0b2075fd4c569f6c2254afcf
3222a9f99dc04eae93442f27a49259f2c74320a9
/experiments/examples/example_pbt_server.py
7ddd0352f346adf7d875d771979cdaa19f0763f8
[ "MIT" ]
permissive
Light-Reflection/uninas
55a754c997b6d7a48aa6ee93fc4f1211c9a35740
b5727308b48b2fe399cc9b5d5732f3f5fd913b35
refs/heads/main
2023-02-20T11:48:06.815664
2021-01-25T09:42:43
2021-01-25T09:42:43
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,723
py
from uninas.main import Main """ hosting a Population-based-training (PBT) server """ args = { # the task is to profile "cls_task": "PbtServerTask", "{cls_task}.save_dir": "{path_tmp}/pbt_server/", "{cls_task}.save_del_old": True, "{cls_task}.is_test_run": False, # this path must match the o...
[ "kevin.laube@uni-tuebingen.de" ]
kevin.laube@uni-tuebingen.de
fcaf60161dcf1ae6e2c634a9aa156248eb167b61
53fab060fa262e5d5026e0807d93c75fb81e67b9
/backup/user_362/ch36_2019_09_02_19_50_50_251651.py
ce6a9d77138a810724b3d3c6edbaabd139670aee
[]
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
219
py
def eh_primo(numero): if numero == 2: return True elif numero < 2: return False n = 3 while n < numero: if numero % n == 0: return False n += 2 return True
[ "you@example.com" ]
you@example.com
ca8948aac45ca2cbe1edc61555d3484be0357ffb
c3145ee041d4d3e0cf26ec260d9409da8e8b160a
/ask_a_librarian/migrations/0030_auto_20160912_1354.py
7ffd072d166bbb406b6ac89ae69f4950d950511c
[]
no_license
jlundell-bot/library_website
0b7cab541d3cf69dd97c7c8350e21315e9155798
59a5e48adf28ecbc43c7be145f9ec386b1066313
refs/heads/master
2021-06-21T14:16:57.542644
2017-08-18T15:51:44
2017-08-18T19:37:00
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,782
py
# -*- coding: utf-8 -*- # Generated by Django 1.9.7 on 2016-09-12 18:54 from __future__ import unicode_literals import base.models from django.db import migrations import wagtail.contrib.table_block.blocks import wagtail.wagtailcore.blocks import wagtail.wagtailcore.fields import wagtail.wagtaildocs.blocks import wagt...
[ "jej@moss.lib.uchicago.edu" ]
jej@moss.lib.uchicago.edu
de8ebd0a8f30a3399de2f0da3a25cc913837304c
7d406f258fb0023d8af653c8640925ea16b0d655
/example/commands/ex_dockerfile.py
93a8fdb56fd1c3529dc6adffd397143566a6a838
[]
no_license
volitilov/Docker_learn
d0923b8434132203112077de2de9ef1c66972a60
458132701554d2b63513d5840cf0a233314b487c
refs/heads/master
2023-04-16T02:15:06.284505
2023-04-01T05:39:55
2023-04-01T05:39:55
148,593,986
0
0
null
null
null
null
UTF-8
Python
false
false
4,121
py
# ex_dockerfile.py # Примеры Dockerfile # ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: # Version: 0.0.1 FROM ubuntu:14.04 MAINTAINER volitilov <volitilov@gmail.com> RUN apt-get update RUN apt-get install -y nginx RUN echo 'Hi, I am in your container' \ >/usr/share/nginx/html/inde...
[ "volitilov@gmail.com" ]
volitilov@gmail.com
e8894ddcac3dc078d3c3452f32f30ab6e0bdf94f
6ecff67d6103ddbd787f78c35182722b83b8a37e
/백준/Python/알고파/자료구조/1927(최소 힙).py
a1282a6c19a2cc6b40448250826b128ff14a19e0
[]
no_license
jsungmin6/Algorithm
9ef2339aa00921e7df756a8dff569954a008c118
bc1ea9de9f7ba3f1aa6616ebef8719540d72e0bf
refs/heads/master
2023-05-27T06:24:16.123307
2021-06-11T09:22:21
2021-06-11T09:22:21
259,299,624
0
0
null
null
null
null
UTF-8
Python
false
false
265
py
import heapq import sys input = sys.stdin.readline heap=[] N=int(input()) for _ in range(N): i = int(input()) if i==0: if not heap: print(0) else: print(heapq.heappop(heap)) else: heapq.heappush(heap,i)
[ "jsungmin506@gmail.com" ]
jsungmin506@gmail.com
f4743e8522712cee5f64916ef6c4f92e542a4171
f57f13fe778a1e275911270c09c8b0de10f631ba
/python-backend/sls_hack/model/gps_tracker.py
1b6481dd098118cb3daa1c3447e8118a053169ce
[ "MIT" ]
permissive
MacHu-GWU/2019-nyc-serverless-conf-hackathon
687952a4abda30fe15cfc8806a53bdc3142f7971
bae32526043590bc025ebad97333c5a897fc32df
refs/heads/master
2020-08-05T19:04:39.597438
2019-10-07T23:44:51
2019-10-07T23:44:51
212,668,537
0
1
null
null
null
null
UTF-8
Python
false
false
1,678
py
# -*- coding: utf-8 -*- import os from pynamodb.models import Model from pynamodb.attributes import UnicodeAttribute, NumberAttribute from sls_hack.app_config_init import app_config if not app_config.is_aws_lambda_runtime(): os.environ["AWS_DEFAULT_PROFILE"] = app_config.AWS_PROFILE_FOR_DEPLOY.get_value() class...
[ "husanhe@gmail.com" ]
husanhe@gmail.com
2f8e0e02e42890c568d99871908cc23f1f2cc686
3fe05954c5ea090438d3b9965fc2ca092bae51c2
/classs.py
69537b4c48d094f7cac12d8302556b7c8071420e
[]
no_license
imrajashish/python-prog
35c92837d6f3e9bbe318bcc816b10a4f3091e85e
77765899fa2a01debc304cd45d1d7cc905e86847
refs/heads/master
2023-02-08T00:18:34.155935
2021-01-03T13:45:47
2021-01-03T13:45:47
294,126,287
0
0
null
null
null
null
UTF-8
Python
false
false
875
py
#Write a Python program to check if the letters of a given string can be rearranged so that two characters that are adjacent to each other are different using Heap queue algorithm. import heapq from collections import Counter def reorganizeString(S): ctr = Counter(S) heap = [(-value, key) for key, value in ctr....
[ "imrajashish07@gmail.com" ]
imrajashish07@gmail.com
91dd27b159c61af03a749cbcbf3f8e1db577a50d
2136701f48ad131084b331039d864f85988cf451
/spider/.svn/pristine/91/91dd27b159c61af03a749cbcbf3f8e1db577a50d.svn-base
5d194f5bb614d682b0f76222addb0a0f0c215db0
[]
no_license
cuiyulin77/other
9d374a47d482f1c3f9ef0f3ac4429487643b04b9
c00cafaf7607452966fa523c4d0b04edb7f153e6
refs/heads/master
2020-05-18T04:24:26.095929
2019-04-30T06:37:53
2019-04-30T06:37:53
184,169,488
0
0
null
null
null
null
UTF-8
Python
false
false
3,279
# coding=utf-8 import pymysql import requests import re import json import time import hashlib from lxml import etree headers={ 'User-Agent':'Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.84 Safari/537.36' } # url_start = 'http://feed.mix.sina.com.cn/api/roll/get?...
[ "494658565@qq.com" ]
494658565@qq.com
164d3a86254fb2261603c7267c8757daa1dc68dd
78f3fe4a148c86ce9b80411a3433a49ccfdc02dd
/2016/02/sanders-trump-anger-20160208/graphic_config.py
4a1c1f1444436616ff9df53b308c7316b40d61f8
[]
no_license
nprapps/graphics-archive
54cfc4d4d670aca4d71839d70f23a8bf645c692f
fe92cd061730496cb95c9df8fa624505c3b291f8
refs/heads/master
2023-03-04T11:35:36.413216
2023-02-26T23:26:48
2023-02-26T23:26:48
22,472,848
16
7
null
null
null
null
UTF-8
Python
false
false
305
py
#!/usr/bin/env python import base_filters COPY_GOOGLE_DOC_KEY = '1eZbdE-8aeUzmDCp-j0BhZgYp5Lu29Bpl8VhVgtokWnI' USE_ASSETS = False # Use these variables to override the default cache timeouts for this graphic # DEFAULT_MAX_AGE = 20 # ASSETS_MAX_AGE = 300 JINJA_FILTER_FUNCTIONS = base_filters.FILTERS
[ "ahurt@npr.org" ]
ahurt@npr.org
97f3cbd3cd5ec434f84ee662fd5536d92b087b0b
0964d4873bd5f521a27d7702eb3ea9ddd47daa8e
/NextSteps/decorators.py
53d3dbfbabd6b3e78ccf031ff2ff7ce23253cde4
[]
no_license
ShekharTayade/NextSteps
778d978cc4bb2b682c96b040de5d4e895af7d58c
05e9848edab32abb9e73b75a50ab40d3839c8044
refs/heads/master
2022-11-28T00:08:12.042782
2019-09-16T03:56:01
2019-09-16T03:56:01
120,585,102
1
0
null
2022-11-22T02:14:37
2018-02-07T08:19:40
JavaScript
UTF-8
Python
false
false
1,714
py
from django.core.exceptions import PermissionDenied from NextSteps.models import UserAccount from django.utils import timezone def subscription_active(function): def wrap(request, *args, **kwargs): valid_subs = False accnt = UserAccount.objects.filter(User__username=request.user) ...
[ "shekhart@hotmail.com" ]
shekhart@hotmail.com
9a3c53287d15faeadbd1869bcb0e31309ea68159
741333ced9ea1b326997dc031e5de27529bad04a
/glue_vispy_viewers/extern/vispy/scene/widgets/anchor.py
cf0056098a0b49041772b6a2cc685f5d9e53f913
[ "BSD-2-Clause", "BSD-3-Clause" ]
permissive
jzuhone/glue-vispy-viewers
f1b7f506d3263c4b0c2f4032d4940b931b2c1ada
d940705f4ba95f8d7a9a74d37fb68c71080b490a
refs/heads/master
2020-06-20T19:10:02.866527
2019-06-24T11:40:39
2019-06-24T11:40:39
197,217,964
0
0
BSD-2-Clause
2019-07-16T15:14:53
2019-07-16T15:14:52
null
UTF-8
Python
false
false
874
py
from ..node import Node class Anchor(Node): """ Anchor is a node derives parts of its transform from some other coordinate system in the scene. The purpose is to allow children of an Anchor to draw using a position (and optionally rotation) specified by one coordinate system, and scaling/ pro...
[ "thomas.robitaille@gmail.com" ]
thomas.robitaille@gmail.com
396abc8b2d806cd5b922843355557ab671bc61fe
a5ad207961fddfb0bab8c7471b6f91b69865e0fc
/app/agis/modules/agiscore/db/region_academica.py
bd70dda36ebcec505782bad46379ff0486deda98
[ "LicenseRef-scancode-public-domain" ]
permissive
yotech/agis
b2465fc340e366fbe0267c4000bb0ae728386399
4abbecd175337d4942ac133847ce8fc870670571
refs/heads/master
2020-12-15T09:10:58.076323
2016-05-10T14:36:54
2016-05-10T14:36:54
32,155,630
0
2
null
2016-05-10T14:36:54
2015-03-13T12:52:01
Python
UTF-8
Python
false
false
2,287
py
#!/usr/bin/env python # -*- coding: utf-8 -*- from gluon import * from agiscore import tools ID_PROTEGIDO = '85a03a88-4c3e-449c-9376-3f848acb96e1' def obtener_provincias(region): """ Dada una región academica retornar el conjunto de las provincias que la conforman """ db = current.db query = ((db....
[ "ybenitezf@gmail.com" ]
ybenitezf@gmail.com
37c0f21f974eaa4c9a4ea1b10a39dce29ab280cb
fd9ed0d07348a855dc4b13a3761f9459345a0998
/udiskie/__init__.py
2be66424326cbc417bfb21e584083054c4d7173d
[ "MIT" ]
permissive
dattebayorob/udiskie
bfd5dd67d0a766969d950ab41fb551dddfd0f64a
e853bccae14849543d7915bf616f3b1622484182
refs/heads/master
2020-04-26T10:59:59.527069
2019-02-21T14:49:20
2019-02-21T14:52:38
null
0
0
null
null
null
null
UTF-8
Python
false
false
395
py
__title__ = 'udiskie' __version__ = '1.7.7' __summary__ = 'Removable disk automounter for udisks' __uri__ = 'https://github.com/coldfix/udiskie' __author__ = 'Byron Clark' __author_email__ = 'byron@theclarkfamily.name' __maintainer__ = 'Thomas Gläßle' __maintainer_email__ = 't_glaessle@gmx.de' __license__ = 'MIT' __...
[ "t_glaessle@gmx.de" ]
t_glaessle@gmx.de
696f05d8a25a275021c23e6876e6ad955eeadb1d
9e28200b71d43de1e122a964e88f1b547bfde465
/question_leetcode/565_2.py
f078802c2a3d067dff5699f16f784247dec06d1d
[]
no_license
paul0920/leetcode
6f8a7086eefd3e9bccae83752ef41cbfee1acaea
474886c5c43a6192db2708e664663542c2e39548
refs/heads/master
2023-08-19T14:10:10.494355
2021-09-16T20:26:50
2021-09-16T20:26:50
290,560,326
1
0
null
null
null
null
UTF-8
Python
false
false
369
py
nums = [5, 4, 0, 3, 1, 6, 2] seen = [0] * len(nums) def finding(arr, idx, t): print seen, idx if seen[idx]: print "FIND", seen, idx return 0 else: seen[idx] = 1 return finding(arr, arr[idx], t) + 1 curr_max = 0 for i in range(len(nums)): curr_max = max(curr_max, f...
[ "39969716+paul0920@users.noreply.github.com" ]
39969716+paul0920@users.noreply.github.com
ae302873c39e12567b344b2ae338550b39e0f3d9
49bd1d8c96a3dbcd95780b83f35848cdb491dbe6
/collective/js/contentflow/tests.py
8eacce0c3a1ba202b9de4269d6f8a4f9725f5363
[]
no_license
collective/collective.js.contentflow
f1ecd22f149b98ced0962b84e56888fb5b247e46
39b6caaea21d6fedbd55fd0e1b1e78c67c88fa87
refs/heads/master
2023-06-29T18:03:03.833738
2012-05-09T20:31:40
2012-05-09T20:31:40
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,526
py
import unittest from zope.testing import doctestunit from zope.component import testing from Testing import ZopeTestCase as ztc from Products.Five import zcml from Products.Five import fiveconfigure from Products.PloneTestCase import PloneTestCase as ptc from Products.PloneTestCase.layer import PloneSite ptc.setupPlo...
[ "vangheem@gmail.com" ]
vangheem@gmail.com
cc2e3c03c3e9e909fc05738ede818753908dcac5
80502d898ad01a6043add30def0e99b853b49bb8
/shop/models.py
9780e580dfc611b708d5cb8e76a09b5866a253ed
[]
no_license
sadirahman/e-comarce-online-shop
ea1a01473ea8ba54573e7d6d19129aa223270a21
e2146e61cce44535e05deb24e609116dd690dec0
refs/heads/master
2020-04-20T21:48:39.081071
2019-02-04T19:35:53
2019-02-04T19:35:53
169,119,941
0
0
null
null
null
null
UTF-8
Python
false
false
1,403
py
from django.db import models from django.urls import reverse # Create your models here. class Category(models.Model): name = models.CharField(max_length=200, db_index=True) slug = models.SlugField(max_length=200,db_index=True,unique=True) class Meta: ordering = ('name',) verbose_name = 'c...
[ "42184120+sadirahman@users.noreply.github.com" ]
42184120+sadirahman@users.noreply.github.com
47d9cff21ccba0023f87eb046130284ec111b0ab
f0d9ba8456cdad2b2fa711fa8975b41da7af1784
/worms/vis/__init__.py
6359f7bebe118dc875348db4aae921372f6cab8d
[ "Apache-2.0" ]
permissive
willsheffler/worms
f1d893d4f06b421abdd4d1e526b43c2e132e19a2
27993e33a43474d647ecd8277b210d4206858f0b
refs/heads/master
2023-04-08T01:18:33.656774
2022-06-09T20:04:55
2022-06-09T20:04:55
118,678,808
6
5
NOASSERTION
2021-10-05T22:28:24
2018-01-23T22:30:45
Python
UTF-8
Python
false
false
45
py
from .vis_pymol import * from .plot import *
[ "willsheffler@gmail.com" ]
willsheffler@gmail.com
b369de53e8ac6c72091f36545e798024751b8705
d8d3f61fa0536e6a2b7ca6731e0af1ddcee76091
/examples/create_shipment.py
c6996ab34cc334cb83080693f981f55efdfe1473
[ "BSD-3-Clause" ]
permissive
oliverseal/python-fedex
a575bc3d1823dc46b0a71f5235ad862e70beaa8c
0113df390c6f03ee20ebc3a5ab8c8de2149b8afe
refs/heads/master
2021-01-18T07:18:47.994971
2014-08-03T16:47:14
2014-08-03T16:47:14
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,164
py
#!/usr/bin/env python """ This example shows how to create shipments. The variables populated below represents the minimum required values. You will need to fill all of these, or risk seeing a SchemaValidationError exception thrown. Near the bottom of the module, you'll see some different ways to handle the label data...
[ "gtaylor@duointeractive.com" ]
gtaylor@duointeractive.com
02527958b514f9f673b4e547c9eeaa13991930bd
fe0017ae33385d7a2857d0aa39fa8861b40c8a88
/env/lib/python3.8/site-packages/sklearn/ensemble/_voting.py
f25b0bdeb542e7d092d2c89fd2f986a2eef7d3c6
[]
no_license
enriquemoncerrat/frasesback
eec60cc7f078f9d24d155713ca8aa86f401c61bf
e2c77f839c77f54e08a2f0930880cf423e66165b
refs/heads/main
2023-01-03T23:21:05.968846
2020-10-18T21:20:27
2020-10-18T21:20:27
305,198,286
0
0
null
null
null
null
UTF-8
Python
false
false
17,501
py
""" Soft Voting/Majority Rule classifier and Voting regressor. This module contains: - A Soft Voting/Majority Rule classifier for classification estimators. - A Voting regressor for regression estimators. """ # Authors: Sebastian Raschka <se.raschka@gmail.com>, # Gilles Louppe <g.louppe@gmail.com>, # ...
[ "enriquemoncerrat@gmail.com" ]
enriquemoncerrat@gmail.com
89bf9d182dc140beaa3fb68cf8f5cd05300f30dc
694d57c3e512ce916269411b51adef23532420cd
/python/chapter-2/lab5-rlist-5.py
d184d409bf1eeb280b0978c1c385ace8fd99a8f4
[]
no_license
clovery410/mycode
5541c3a99962d7949832a0859f18819f118edfba
e12025e754547d18d5bb50a9dbe5e725fd03fd9c
refs/heads/master
2021-05-16T02:46:47.996748
2017-05-10T23:43:50
2017-05-10T23:43:50
39,235,141
1
1
null
null
null
null
UTF-8
Python
false
false
576
py
empty_rlist = None def rlist(first, rest=empty_rlist): return (first, rest) def first(rlist): return rlist[0] def rest(rlist): return rlist[1] def tup_to_rlist(tup): """Converts a tuple to an rlist. >>> tup = (1, 2, 3, 4) >>> r = tup_to_rlist(tup) >>> first(r) 1 >>> first(rest(r...
[ "admin@admins-MacBook-Air.local" ]
admin@admins-MacBook-Air.local
46b9a86a213bb7944e140b7904e3c10f29762d25
ed5e4b4c769e852afe1d50edf6ec684376113a8e
/MSD/plot_msd_per_param.py
67d93b03348a9056e0584c532bc838c02e74fd78
[]
no_license
BingoNate/Cells_Other
488d2bfbc3abbb074f8a7662894fa6dc84b0f2fa
7b14003a68191fce66407f433844b7989cb37d7c
refs/heads/master
2021-06-18T12:45:49.055166
2017-07-03T15:05:24
2017-07-03T15:05:24
104,757,557
2
0
null
null
null
null
UTF-8
Python
false
false
5,430
py
""" Plot mean square displacement per parameter""" ### example command line arguments: ### -e=1.0 -f=0.5 ### -fl=/local/duman/SIMULATIONS/Cells_in_LAMMPS/density_0.8/ ### -sb=/usr/users/iff_th2/duman/Cells_in_LAMMPS/PLOTS/ ### -sf=MSD ######################################################...
[ "ozer.duman@gmail.com" ]
ozer.duman@gmail.com
c14ef5e808590c9d5b2412dd6e91dede0648d1c0
1a1a36fb99cf25d2522d5dadc9b5d816bb81ffff
/objects/tags/MainCanvas.py
5297f3d0445f59ad45ecfefed4c16c54a284f802
[]
no_license
arkimede/pysynfig
cae74eeca153f7c412cf6642a2092a9ee6948692
3bc46a34c275d44a69521afd63af2884e2187c51
refs/heads/master
2021-05-04T11:03:03.412344
2018-07-29T14:00:12
2018-07-29T14:00:12
52,307,112
0
0
null
null
null
null
UTF-8
Python
false
false
2,506
py
class MainCanvas: def __init__(self): self.id = None self.guid = None self.version = None self.width = None self.height = None self.xres = None self.yres = None self.fps = None self.start_time = None self.begin_time = None self...
[ "a.caristia@gmail.com" ]
a.caristia@gmail.com
333d962ced6bbf3ab54abfad56e7cfc14852626d
f49c5411409d0fc3b7246e8413622025f3c90e33
/stats_extractor.py
1aba01da53c4ec829e4ab3ced3f3d42f6a25fa37
[ "MIT" ]
permissive
diegojromerolopez/pystats-trello
2f8573c4de0a7dc730dcc2c1ed5d7e716816eb04
958e33a689573335d36c73dddd4198694feaf203
refs/heads/master
2021-01-17T13:00:04.060494
2016-06-18T14:25:08
2016-06-18T14:25:08
56,274,873
2
0
null
null
null
null
UTF-8
Python
false
false
1,748
py
# -*- coding: utf-8 -*- import os import sys import re import settings from auth.connector import TrelloConnector from stats import summary from stats.trelloboardconfiguration import TrelloBoardConfiguration def extract_stats(configuration_file_path): """ Extract stats for a given configuration file that de...
[ "diegojromerolopez@gmail.com" ]
diegojromerolopez@gmail.com
8699b8959f04374dfd7751d73b52cb04f5100538
0817832c530124253747be6787d4d5aba7c1e05b
/shop/recommender.py
05a3058c005999b8b8a23ef3956ffa3786a9736f
[]
no_license
juliofelipe/myshop
76e058b780e2399c52e368e727d45ee455f3f790
7b495dab30e5755f73dcb92f5294bf1eec405844
refs/heads/master
2022-12-05T00:12:59.552063
2020-08-30T20:13:26
2020-08-30T20:13:26
291,237,976
0
0
null
null
null
null
UTF-8
Python
false
false
2,353
py
import redis from django.conf import settings from .models import Product # connect to redis r = redis.StrictRedis(host=settings.REDIS_HOST, port=settings.REDIS_PORT, db=settings.REDIS_DB) class Recommender(object): def get_product_key(self, id): return f'prod...
[ "julio.felipe@casaldev.com.br" ]
julio.felipe@casaldev.com.br
a219b0c57a761e795040e5020509aedc2d26b6ef
cf3fb51ba514342d68f665a6f5f99ba6797d1a6e
/python/helpers/typeshed/stubs/redis/redis/backoff.pyi
d10aaabb39871cb586b606ef335ef16586d69ab1
[ "Apache-2.0", "MIT" ]
permissive
jinsihou19/intellij-community
dd3c24ea088c47fd103878ae607c82d0937528a5
55cb0396e166a3f4e114a59e9357d2e390a6dd96
refs/heads/master
2022-12-21T01:10:57.801114
2022-12-14T13:59:08
2022-12-14T15:07:45
192,350,885
0
0
Apache-2.0
2022-06-13T08:14:31
2019-06-17T13:19:01
null
UTF-8
Python
false
false
892
pyi
from abc import ABC, abstractmethod class AbstractBackoff(ABC): def reset(self): ... @abstractmethod def compute(self, failures): ... class ConstantBackoff(AbstractBackoff): def __init__(self, backoff) -> None: ... def compute(self, failures): ... class NoBackoff(ConstantBackoff): def __init_...
[ "intellij-monorepo-bot-no-reply@jetbrains.com" ]
intellij-monorepo-bot-no-reply@jetbrains.com
3707cc1a94ce7a50b287284d19767745887ee2a0
6efdee46507c2f2d05e4986c963f189a1e754e9b
/ex53.py
3506a5f3028d4d33467621b2875b753528e6274b
[]
no_license
SachinPitale/Python
b0d2d08f6f12bdce8a30ba9e9c370d3415721168
6889527b4b04e394feedcd6516e0298cccb6c5ee
refs/heads/master
2020-07-26T05:59:46.325528
2019-09-15T07:26:24
2019-09-15T07:26:24
208,557,473
0
0
null
null
null
null
UTF-8
Python
false
false
406
py
#dictonay a = {'a':1,'b':2,'c':3} print a #add or change the item from dict a['d'] = 4 print a a['d'] = 12 print a #remove item of dict del a['c'] print a #get the len of dict lenth = len(a) print lenth #check membership in dict if "b" in a: print "b is present" if "c" not in a: print "c is not pre...
[ "sachinpitale22@gmail.com" ]
sachinpitale22@gmail.com
880e68bf1396a56192d033653e0af762d2f20604
8355bc4e1ad1a863124c1d80d4a00b28ef587b48
/tests/test_diffeq/test_perturbed/test_scipy_wrapper/test_wrapped_scipy_cases.py
5050dbc9587636aa85bb6a54fa463127b929f261
[ "MIT" ]
permissive
probabilistic-numerics/probnum
af62f04253a08da71174e5c1b7d733deb1914eee
af410278783069542610d16b10ba12d2940a05a6
refs/heads/main
2023-08-31T05:12:08.877238
2023-06-19T20:34:15
2023-06-19T20:34:15
218,856,084
384
56
MIT
2023-09-10T18:52:24
2019-10-31T20:29:11
Python
UTF-8
Python
false
false
1,278
py
import numpy as np import pytest from scipy.integrate._ivp import rk from probnum import diffeq import probnum.problems.zoo.diffeq as diffeq_zoo _ADAPTIVE_STEPS = diffeq.stepsize.AdaptiveSteps(atol=1e-4, rtol=1e-4, firststep=0.1) _CONSTANT_STEPS = diffeq.stepsize.ConstantSteps(0.1) def setup_solver(y0, ode, steprul...
[ "noreply@github.com" ]
probabilistic-numerics.noreply@github.com
8f6b874e1b91590591f2f525c644160ca000db6f
7b315bbe8c85ce05e6c51112e985ae1b392d83f5
/Datetime/__init__.py
2ca49c898c4b5219819fd0e88b3b57a62514f8ff
[]
no_license
Cica013/aprendendoPython
e9f993b1b144e294a338a53f2bc36673d3cd00a6
9c964f2322e3d52b39a811aceec64b169bab4e10
refs/heads/main
2023-08-10T20:12:47.640239
2021-10-06T21:01:19
2021-10-06T21:01:19
385,755,818
0
0
null
null
null
null
UTF-8
Python
false
false
649
py
# https://docs.python.org/3.0/library/datetime.html from datetime import datetime, timedelta from locale import setlocale, LC_ALL from calendar import mdays # strptime(str, fmt) # .strftime(fmt) # timestamp() # from .timestamp() # data = datetime.fromtimestamp(1631569996.0) # print(data.strftime('%d/%m/%Y %H:%M:%S')) ...
[ "61808853+Cica013@users.noreply.github.com" ]
61808853+Cica013@users.noreply.github.com
1be5c3da76dc408fdcf7744e363400908b1bd019
967da2175b4b935c5d3e2efc4cbf5fda5ae9a8db
/migrations/versions/2d5fd3e4cac8_remove_passwords.py
e3ce50578b6f10fa26ed8dbcaf228003a0695920
[]
no_license
danjac/photoapp
d20bb09c7da9e98882c991eb8844953a228ba3f3
32827b97d3978963d1e8a55f767c0848391015fa
refs/heads/master
2020-12-24T14:53:01.380262
2012-10-09T22:48:50
2012-10-09T22:48:50
null
0
0
null
null
null
null
UTF-8
Python
false
false
739
py
"""Remove passwords Revision ID: 2d5fd3e4cac8 Revises: 44a70fa979b Create Date: 2012-09-20 12:03:33.030164 """ # revision identifiers, used by Alembic. revision = '2d5fd3e4cac8' down_revision = '44a70fa979b' from alembic import op import sqlalchemy as sa def upgrade(): ### commands auto generated by Alembic -...
[ "danjac354@gmail.com" ]
danjac354@gmail.com
4fe8382357bcc0fe11ca62235950cb482c6b34e3
b306aab9dcea2dd83dda700bc9f7b9f1a32cff3a
/CAIL2020/hyfl/data/test.py
9c6ee7cf3b236c3c6bc876bf7e5039f7667bed14
[ "Apache-2.0" ]
permissive
Tulpen/CAIL
d6ca9981c7ea2603ae61675ba330a9614cd9398d
c4cfa98ab4ecedbce34a7a5a186830486047540c
refs/heads/master
2023-04-23T20:07:56.774530
2021-04-16T13:18:36
2021-04-16T13:18:36
null
0
0
null
null
null
null
UTF-8
Python
false
false
291
py
import re import pandas pattern = re.compile('[A-Z]') def match(line): if pattern.match(line): return True return False df = pandas.read_csv('category.csv') df['supreme'] = df['id'].map(match) df = df[df['supreme']==True] df.to_csv("supreme.csv",index=False) print('FIN')
[ "bangtech@sina.com" ]
bangtech@sina.com
7a80a74619d46435a85b2aa58750bb0fa1e1d03a
cfcd117378664e4bea080b3c1011a25a575b3d51
/hawc/apps/vocab/migrations/0006_require_uid.py
432ea0f717801b3048e734133d1f2bb3f8de501e
[ "MIT" ]
permissive
shapiromatron/hawc
9d3a625da54d336334da4576bd5dac6915c18d4f
51177c6fb9354cd028f7099fc10d83b1051fd50d
refs/heads/main
2023-08-03T13:04:23.836537
2023-08-01T18:39:16
2023-08-01T18:39:16
25,273,569
25
15
NOASSERTION
2023-09-14T17:03:48
2014-10-15T21:06:33
Python
UTF-8
Python
false
false
709
py
from django.db import migrations, models def set_fake_default(apps, schema_editor): Term = apps.get_model("vocab", "Term") terms = [] for term in Term.objects.filter(uid__isnull=True): term.uid = term.id terms.append(term) if terms: Term.objects.bulk_update(terms, ["uid"]) cl...
[ "noreply@github.com" ]
shapiromatron.noreply@github.com
ae1723c5dc94b0aeb9ed3a7199dd6fa04fc61090
5ae7254459c64c296a588d202481b84ce5cd9abd
/mazepuzzlebox/createbox/views.py
4e15c1ae20f8e2c99c29482d9d32819a4a2d42e4
[]
no_license
matttest/mazepuzzlebox
55eaa9936a0f6b51d1d814830b81cfad2b06a000
b333b28651af2cb8ddb6975afeeddff1f1dcd292
refs/heads/master
2020-12-30T18:38:06.027921
2012-02-06T16:23:41
2012-02-06T16:23:41
3,368,397
0
0
null
null
null
null
UTF-8
Python
false
false
3,708
py
# Create your views here. from django.core.paginator import Paginator, EmptyPage, PageNotAnInteger from django.http import HttpResponse, HttpResponseRedirect, Http404 from django.core.urlresolvers import reverse from django.shortcuts import render_to_response from django.template import RequestContext from django.conf ...
[ "matt@mattvenn.net" ]
matt@mattvenn.net
ab219f905da79ac7b02d0b28cd40e9f5e73a87ed
2412ab2a7fdefe1d165a6ec63292fdbe965c5131
/locatemRNAFragToGenome-parralize.py
65f65351e7de339970322fd2740df85d4202be71
[]
no_license
cfc424/NGS
e7651d9cbd1309821f5251c3ab3c9c7ba9e19352
a7fd0631adc7365d358e49f407e2ebe796163443
refs/heads/master
2023-03-21T14:36:05.877307
2019-11-13T01:09:13
2019-11-13T01:09:13
null
0
0
null
null
null
null
UTF-8
Python
false
false
13,236
py
#!/usr/bin/env python # -*- coding: utf-8 -*- #from __future__ import division, with_statement ''' Copyright 2013, 陈同 (chentong_biology@163.com). =========================================================== ''' __author__ = 'chentong & ct586[9]' __author_email__ = 'chentong_biology@163.com' #==========================...
[ "chentong_biology@163.com" ]
chentong_biology@163.com
b26ee1eb2e73550cc2da31016276e955b9997b98
7f53f509222f7e4b1ca8137bb31cf2edc5f64e80
/splitrang.py
72ec96800fca9d9ae5ab3f5ee1eac71a1e5c2fc0
[]
no_license
wahid999/Pythonforbegainer
f61c7567c37b3d4103b5550a6975f78c960763f8
794fd9471ff95eac52ae42d8548526c09df23bbd
refs/heads/main
2023-07-11T22:31:31.435440
2021-08-16T17:18:35
2021-08-16T17:18:35
399,344,206
0
0
null
null
null
null
UTF-8
Python
false
false
213
py
import os os.system('clear') #************** Strings **************** #------------->CANCATINATINATION--------> name = 'Wahid Hussain' greetings = 'hello, My name is ' + name print (greetings.split(" ")[4:])
[ "wahidhussainturi@gmail.com" ]
wahidhussainturi@gmail.com
3dd25c9356ea6b5d6e2e17b77388b6d1f08da9bd
27f6c33ad3f0240e64aad809d4bd57af3ecda498
/BeautifulSoupEx/File/path_ex03.py
7d6d1fa559712e0372a16c8da31cb19c1bb712b4
[]
no_license
bigdata202005/PythonProject
26ce3c0ed3e47cd727606455e6ca95561907dbe4
4e0377fdb86db294483fb7a347429bf299e44ce5
refs/heads/main
2023-01-08T01:48:22.271143
2020-11-06T05:15:22
2020-11-06T05:15:22
310,498,085
0
0
null
null
null
null
UTF-8
Python
false
false
314
py
import os # os 내의 디렉토리 정보를 조회하거나 디렉토리 내의 정보 조회 print(os.getcwd()) print(os.path.curdir) print(os.path.dirname(os.getcwd())) # 디렉토리 os.chdir('..') print(os.getcwd()) #os.mkdir('./test') os.chdir('./test') print(os.getcwd()) os.chdir('..') print(os.getcwd())
[ "bigdata202005@gmail.com" ]
bigdata202005@gmail.com
61954adf63059a57442495631e62a0ede1f12e1e
a650167bd87d6bf27cfc690b509ebb6e28452d1a
/coolisf/dao/__init__.py
210f2ea5b840e354788db6b7cb648df42890090a
[ "MIT" ]
permissive
coderboy24x7/intsem.fx
02c7fc57043d8d982b5ffaac7f5324a7c7c40178
4a59ea40e05d686ae5d077eff22ff1248d61c1e8
refs/heads/main
2023-04-27T07:11:57.424432
2021-05-13T16:41:30
2021-05-13T16:41:30
null
0
0
null
null
null
null
UTF-8
Python
false
false
357
py
# -*- coding: utf-8 -*- ''' CoolISF Data Access Package ''' # This code is a part of coolisf library: https://github.com/letuananh/intsem.fx # :copyright: (c) 2014 Le Tuan Anh <tuananh.ke@gmail.com> # :license: MIT, see LICENSE for more details. from .corpus import CorpusDAOSQLite from .tsdb import read_tsdb __all_...
[ "tuananh.ke@gmail.com" ]
tuananh.ke@gmail.com
d6b14e3dcb5cea233f2d15b5802934c0b7a58794
382f4acfd565be4aedb07c694e8daa489ff3e70a
/eveutil2/bin/coalitions.py
2c67fd529d4ee39a5dbe58e160397ace68123fc8
[]
no_license
electusmatari/legacy
913c5a9f68074d1fa793b0e3ff76fd3f9c3f481e
9266e955398a0c8279b82b8347a85d9186a455da
refs/heads/master
2021-01-22T05:24:13.935562
2013-09-29T11:44:19
2013-09-29T11:44:19
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,779
py
#!/usr/bin/env python import re import sys import evelib.api as api def main(): headline_rx = re.compile(r'^\* ([^(]*)(?: \(.*\))?$') entity_rx = re.compile(r'^- ([^<[]*)(?: ([<[].*[]>]))?(?: \(.*\))?$') last_headline = None output = [] totalsize = 0 for line in sys.stdin: line = line...
[ "forcer@forcix.cx" ]
forcer@forcix.cx
972591c766b039598e85023cabd7afcc764c96c2
4cfbaf097d0732905c69c704fc940d18e56e09eb
/deep_learning_from_scratch2/common/functions.py
bdb99ba768945c710dcfa37ccf33f87c61337c79
[ "MIT" ]
permissive
koukyo1994/pattern_recognition
c79e1221da47e93483b6bcbe427c9438733c636c
0bf835b98baa66cdb78aa46c677b8de91790a767
refs/heads/master
2018-12-18T09:26:13.809507
2018-11-17T14:18:19
2018-11-17T14:18:19
116,372,076
0
0
null
null
null
null
UTF-8
Python
false
false
549
py
import numpy as np def softmax(x): if x.ndims == 1: x = x - np.max(x) x = np.exp(x) / np.sum(np.exp(x)) elif x.ndims == 2: x = x - x.max(axis=1, keepdims=True) x = np.exp(x) x /= x.max(axis=1, keepdims=True) return x def cross_entropy_error(y, t): if y.ndims =...
[ "arabiannight1994@yahoo.co.jp" ]
arabiannight1994@yahoo.co.jp
a91dfbe1101870cc535fdc88464b5a87e6786459
6499d0b71b19fd4416bfd74fa9fd88e3d0b0618a
/king_phisher/client/tabs/campaign.py
46a87c9dfb46e8dd152bc61ecaabed8119d4f21a
[ "BSD-3-Clause" ]
permissive
Meatballs1/king-phisher
dfb0a539a2d0455113b40698f7151521774addb1
a16b1de055260f6f33d8c1fd0765bd06ffb733c2
refs/heads/master
2020-05-20T17:55:30.441239
2015-10-15T19:21:22
2015-10-15T19:21:22
null
0
0
null
null
null
null
UTF-8
Python
false
false
20,449
py
#!/usr/bin/env python # -*- coding: utf-8 -*- # # king_phisher/client/tabs/campaign.py # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redistributions of source code must retain the above copyright # not...
[ "zeroSteiner@gmail.com" ]
zeroSteiner@gmail.com
8c7950551da123d8be5264e406c40f0778e51a57
42c48f3178a48b4a2a0aded547770027bf976350
/google/ads/google_ads/v6/proto/services/ad_group_label_service_pb2.py
85bcbb728b11bb65a6e0978aeb9b086c712e038c
[ "Apache-2.0" ]
permissive
fiboknacky/google-ads-python
e989464a85f28baca1f28d133994c73759e8b4d6
a5b6cede64f4d9912ae6ad26927a54e40448c9fe
refs/heads/master
2021-08-07T20:18:48.618563
2020-12-11T09:21:29
2020-12-11T09:21:29
229,712,514
0
0
Apache-2.0
2019-12-23T08:44:49
2019-12-23T08:44:49
null
UTF-8
Python
false
true
18,928
py
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/ads/googleads_v6/proto/services/ad_group_label_service.proto from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection fr...
[ "noreply@github.com" ]
fiboknacky.noreply@github.com
d2d2bd3d5e48bd0197b527fd2d86d46543717dc6
620d21623a300821e2a195eed5434bac67fb4dca
/abb_experimental_ws/build/rosserial_client/catkin_generated/pkg.installspace.context.pc.py
1637009b5e756ec63d51aad7b372bc002b2fae8c
[]
no_license
yazici/Robarch-dev
bb63c04bd2e62386e7c1215bf5b116ccd763c455
9f8db4c418db3fc80454200cb6625cc2b2151382
refs/heads/master
2020-05-21T02:32:06.765535
2018-09-07T15:50:26
2018-09-07T15:50:26
null
0
0
null
null
null
null
UTF-8
Python
false
false
415
py
# generated from catkin/cmake/template/pkg.context.pc.in CATKIN_PACKAGE_PREFIX = "" PROJECT_PKG_CONFIG_INCLUDE_DIRS = "".split(';') if "" != "" else [] PROJECT_CATKIN_DEPENDS = "".replace(';', ' ') PKG_CONFIG_LIBRARIES_WITH_PREFIX = "".split(';') if "" != "" else [] PROJECT_NAME = "rosserial_client" PROJECT_SPACE_DIR =...
[ "email.jrv@gmail.com" ]
email.jrv@gmail.com
eee4622a2fd9f22f107306a93a0ca27139a98acb
91a9f5a7afb398f4238527708cbc155dc972cbfa
/scratch/b/y2017/temp2_.py
716c0a649c7078b8f84301a76365555aa65a5546
[]
no_license
bddmodelcar/kzpy3.2
cd6f9bf6b7b8b920c79b4ee36c2592b992ae4332
b044b26649b19b240bd580feca20424a237374b1
refs/heads/master
2021-01-19T21:01:58.687712
2017-08-23T22:39:56
2017-08-23T22:39:56
101,243,308
0
1
null
2017-08-24T02:04:50
2017-08-24T02:04:50
null
UTF-8
Python
false
false
1,155
py
def zp(d,depth,range_lst):#,max_depth_lst): sorted_keys = sorted(d.keys()) this_range = range_lst[0] if type(this_range) == int: if this_range == -1: this_range = [0,len(sorted_keys)] elif this_range == -2: this_range = [0,len(sorted_keys)] range_lst = range_lst + [-2] else: this_range = ...
[ "karlzipser@berkeley.edu" ]
karlzipser@berkeley.edu
d5aa8080c515ec1987b0ac6c3c6e923d550dc038
2f125ed5e70c9a093aea3a84619be399b758670f
/cl_ex_cesm/figure_produce/time_series/f_time_series_plus_range_EI.py
475bdf55c961f1fe7ed823e9ef9c30a45314a584
[]
no_license
Lyna2022/python
58fd96361808e3c204cf963915350d0a2ef09c98
ac528d6038d5c9abf8160eca33f37606028adf94
refs/heads/master
2022-01-27T17:14:14.192347
2018-08-30T09:02:04
2018-08-30T09:02:04
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,594
py
''' # precipitation extremes prep_att_ref = {'rx5day':[],'r99p':[],'sdii':[],'cwd':[]} prep_att_dic = {'rx5day':[],'r99p':[],'sdii':[],'cwd':[]} prep_att_list=['rx5day','r99p','sdii','cwd'] prep_unit_dic = {'rx1day':'Mm', 'rx5day':'Mm', 'sdii':'Mm/day', 'r10':'Days', 'r20':'Days', 'rnm':'Days', 'cdd':'Days','cwd...
[ "s1667168@burn.geos.ed.ac.uk" ]
s1667168@burn.geos.ed.ac.uk
23e4fcb41f8e5b329dba116e15d6e671bdeb2760
7f73a273b5c55ccbb506c4b7069132555389d11c
/.idea/spark-warehouse/spark-streaming/test/tmp1.py
2e323547e1707dfaaa65aeef14d5ce52ca7d2ce1
[]
no_license
lfforai/zd_project
a8d5e278aeaa2709f798a1cdc16457762d2498d0
751c66c395520989a36a6ec272f7e9ce5c2d8c08
refs/heads/master
2021-09-09T12:55:16.917968
2018-03-16T09:44:51
2018-03-16T09:44:51
108,788,113
0
0
null
null
null
null
UTF-8
Python
false
false
4,602
py
import numpy as np def normal_probability(y,n=10000,p=0.95,gpu_num="0"): #用反复逼近的方式迭代求最接近最大值的 import numpy as np import tensorflow as tf # with tf.device("/gpu:"+str(gpu_num)): #y_in=tf.placeholder(dtype=tf.float32,shape=(None)) print(y) def normal_probability_density(y_in,x_t): ...
[ "18073072@qq.com" ]
18073072@qq.com
a6c13e2c7eb0b76260d5a1cbf12cdaecbf83ae37
f07a42f652f46106dee4749277d41c302e2b7406
/Data Set/bug-fixing-2/0d5390a9194e9b27aee2c8df979ea66584dc0315-<ensure>-fix.py
e8457a1c7c51303c71fd583f1f8f87c5a9f5b9a6
[]
no_license
wsgan001/PyFPattern
e0fe06341cc5d51b3ad0fe29b84098d140ed54d1
cc347e32745f99c0cd95e79a18ddacc4574d7faa
refs/heads/main
2023-08-25T23:48:26.112133
2021-10-23T14:11:22
2021-10-23T14:11:22
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,164
py
def ensure(self, repoq): pkgs = self.names if ((not self.names) and self.autoremove): pkgs = [] self.state = 'absent' if (self.conf_file and os.path.exists(self.conf_file)): self.yum_basecmd += ['-c', self.conf_file] if repoq: repoq += ['-c', self.conf_file] if self...
[ "dg1732004@smail.nju.edu.cn" ]
dg1732004@smail.nju.edu.cn
c7f5fffbd6b76ce76bf5d1b8f7a762564b9467ec
6b2a8dd202fdce77c971c412717e305e1caaac51
/solutions_5769900270288896_1/Python/dvolgyes/solution.py
e3ac878085042f1145a5755a8a2f0519c2dfae9c
[]
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
2,891
py
#!/usr/bin/python import sys import numpy as np # http://www.numpy.org/ import scipy # http://scipy.org/ import networkx as nx # https://networkx.github.io/ import sympy # http://www.sympy.org import itertools import operator import string T = int(sys.stdin.readline()) def reverse(x): re...
[ "eewestman@gmail.com" ]
eewestman@gmail.com
9d156ec60581b115291310b78d389bd0f9abf39c
00ce396b445915c4185a9b6354a7c8003240d9cd
/django-demos/prover/prover/settings.py
610a45c42ab29d35bd3cd604f3b48b77bb82272a
[]
no_license
wongxinjie/python-snippets
625fde176df65a0aeccd8aa120de535c6b5d754f
53f60c45d28481b963a2c6b08f6a1e75d737d8e0
refs/heads/master
2022-11-14T12:33:27.828245
2019-06-27T04:42:07
2019-06-27T04:42:07
157,308,832
0
0
null
2022-09-23T22:13:05
2018-11-13T02:35:08
Python
UTF-8
Python
false
false
3,209
py
""" Django settings for prover project. Generated by 'django-admin startproject' using Django 1.10.5. For more information on this file, see https://docs.djangoproject.com/en/1.10/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.10/ref/settings/ """ import os ...
[ "wongxinjierun@gmail.com" ]
wongxinjierun@gmail.com
16a4e4c93a9dddcf7e5733186bc15e3d46a295fc
f3cb4d9761dbdbbf2a94b02421d0a01c82a0a978
/roverlay/setupscript/baseenv.py
eb057647cefeabfac50c1f22ee0d91ffd7c65471
[]
no_license
dywisor/roverlay
49d54356eaeddbedbfd7fe1de7cd53a69d297533
815bc74db18c14807ea4098babeb0253f331bab3
refs/heads/master
2020-04-06T00:22:18.771374
2015-02-18T02:16:56
2015-02-18T02:16:56
15,910,094
0
0
null
null
null
null
UTF-8
Python
false
false
2,216
py
# R overlay -- setup script, base env # -*- coding: utf-8 -*- # Copyright (C) 2013 André Erdmann <dywi@mailerd.de> # Distributed under the terms of the GNU General Public License; # either version 2 of the License, or (at your option) any later version. class SetupSubEnvironment ( object ): NEEDS_CONFIG_TREE = Fal...
[ "dywi@mailerd.de" ]
dywi@mailerd.de
adc2f4a9e2fc24ff86dde2eb44ed3ab35e393292
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03359/s100110945.py
48ff81c0af9a8fc079d181ec8c613beb152b6c42
[]
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
154
py
def solve(): a, b = map(int, input().split()) if b >= a: print(a) else: print(a - 1) if __name__ == "__main__": solve()
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com