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
e85cd56e5368b28da135182c0292f190d20e364c
8cdad42543eb9d6a3c3a9ddf5a3d768a09aef78d
/lesson4/RNN/MNIST/6_1_multiplayers.py
b9eab7b44f18abeb2f2c123f57b2ab3bf2a2b1cd
[]
no_license
SoulDuck/Edu_DL
b81b4ac871864440210b109c7fc76c7cc2c54391
3ab10fa147bb6282517a413a5c2c465f0277cebe
refs/heads/master
2022-11-27T08:18:39.676980
2019-03-17T14:44:27
2019-03-17T14:44:27
155,827,188
0
1
null
2022-11-01T20:28:40
2018-11-02T07:04:08
Jupyter Notebook
UTF-8
Python
false
false
3,063
py
import tensorflow as tf from tensorflow.examples.tutorials.mnist import input_data import time import numpy as np # download MNIST Data mnist = input_data.read_data_sets('MNIST_data', one_hot=True) """ Multilayer 을 구축합니다. 구현 조건 1. RNN 층을 Multilayer 층을 4개 만들고 2. 첫번째 층에는 dropout state 층에 keep prob 을 0.3 줍니다. (n_untis...
[ "plznw4me@naver.com" ]
plznw4me@naver.com
aeae064481125527d5e95ee27fb7b904674f4f5f
aa923eadae72811514bcbad7e2e2cbcde7a0462f
/local_celery/celery_dir/update_account.py
9c681711729dbe02ee6368dd681de7a41f2119bb
[]
no_license
niuyb/cloudcc_api
b7a099c533b111df57c86ab55972b882c9de2a51
c2f34ad6c613ab91e67af196dd9a9ea1af82cd8b
refs/heads/master
2023-03-27T20:57:01.914378
2021-03-25T07:41:02
2021-03-25T07:41:02
322,498,310
0
1
null
null
null
null
UTF-8
Python
false
false
4,127
py
#!/usr/bin/env python # encoding: utf-8 # 作者:Ksar4 # 日期:2021/1/20 18:01 # 工具:PyCharm # Python版本:3.7.0 from datetime import datetime import pandas as pd from local_celery.celery_dir import celery_app from local_celery.celery_dir.celery_utils import inster_sql from public.utils import engine, date_ms, list_to_sql_string,...
[ "niuyubin@yqzbw.com" ]
niuyubin@yqzbw.com
e057b6136ed9b4687a848af38704e59de519f6f6
7e11a563876a05771152448c8c80cf262f3bbc40
/python1基础/day04/Code/day04lianxi4.py
fb2c171eded34210e90ea2ab8e01341e8e1a20fa
[]
no_license
qiujiandeng/-
ee8eb1c828177c9796b3a1bda547aa036c19914d
bb376535ff9f2fe23828bee32efb1d9010aa38e6
refs/heads/master
2020-05-25T11:56:39.471770
2019-05-21T07:52:22
2019-05-21T07:52:22
187,779,234
0
0
null
null
null
null
UTF-8
Python
false
false
805
py
# 4.写一个程序,输入一个开始的整数存于begin变量中 #   输入一个结束的整数,存于end变量中 #   打印从 begin 到 end(不包含end)的每个打印整数, #   打印在一行内, #   如: #  请输入:8 #  请输入:20 # 打印: # 8 9 10 11 12 ...... 19 # 附加思考: # 如何实现每5个打印在一行内,打印多行? # 提示:多家一个变量来记录打印的个数?? begin = int(input("请输入一个开始整数:")) ...
[ "961167272@qq.com" ]
961167272@qq.com
ed4ac4518d340e112fd35e61ae8194e9e776f862
1254f553b70353c6d4ee85c2497db23ebb7903f2
/swagger_client/models/controller_service_referencing_components_entity.py
153fcb422548bd83960788aa2a0b501b4a15b098
[ "Apache-2.0" ]
permissive
tspannhw/nifi-python-swagger-client
05137bd2ad36706f323621ab2510abb124ce9bf9
0cc73d31a1143c3fa73237fd3d4702a7c3c5b3b1
refs/heads/master
2021-01-20T02:24:36.484855
2017-08-24T12:52:46
2017-08-24T12:52:46
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,412
py
# coding: utf-8 """ NiFi Rest Api The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, ...
[ "dchaffey@hortonworks.com" ]
dchaffey@hortonworks.com
20ea77f788de5bbe93c8de01c326f72c4f087a0e
be0f3dfbaa2fa3d8bbe59229aef3212d032e7dd1
/Gauss_v45r9/Gen/DecFiles/options/14103033.py
6ed006b374215b2db311570ac420669f3d427337
[]
no_license
Sally27/backup_cmtuser_full
34782102ed23c6335c48650a6eaa901137355d00
8924bebb935b96d438ce85b384cfc132d9af90f6
refs/heads/master
2020-05-21T09:27:04.370765
2018-12-12T14:41:07
2018-12-12T14:41:07
185,989,173
0
0
null
null
null
null
UTF-8
Python
false
false
737
py
# file /home/hep/ss4314/cmtuser/Gauss_v45r9/Gen/DecFiles/options/14103033.py generated: Fri, 27 Mar 2015 16:10:02 # # Event Type: 14103033 # # ASCII decay Descriptor: [B_c+ -> K+ K- K+]cc # from Configurables import Generation Generation().EventType = 14103033 Generation().SampleGenerationTool = "Special" from Configur...
[ "slavomirastefkova@b2pcx39016.desy.de" ]
slavomirastefkova@b2pcx39016.desy.de
f0773c3d85b5a68ed5568aeae406a4e410ea48db
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p02679/s800126290.py
c905aef7741a59ad331416877b29e332a536e6b9
[]
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
971
py
from collections import defaultdict from itertools import groupby, accumulate, product, permutations, combinations from math import gcd def reduction(x,y): g = gcd(x,y) return abs(x)//g,abs(y)//g def solve(): mod = 10**9+7 dplus = defaultdict(lambda: 0) dminus = defaultdict(lambda: 0) N = int(...
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
8c27719420176713c08a64f849712e87957bfab1
aa553e801b4bb57d1814b5c16adfdf5218140f23
/o.py
a3ae0764d56ac3e0ac8543eb79018cefc6abade3
[ "MIT" ]
permissive
Ashokkommi0001/Python-Patterns-Alphabets-Lower_case
9e8c5ea5dc41a676f30df83e9641ce572390257c
f394fb9982cc379e8cb7046d6768e6b5387c52ca
refs/heads/main
2023-03-07T08:33:09.451650
2021-02-26T18:22:14
2021-02-26T18:22:14
342,663,342
0
0
null
null
null
null
UTF-8
Python
false
false
277
py
def o(): for row in range(7): for col in range(5): if ((col==0 or col==4) and (row!=0 and row!=6)) or (col>0 and col<4) and (row==0 or row==6): print("*",end=" ") else: print(end=" ") print()
[ "noreply@github.com" ]
Ashokkommi0001.noreply@github.com
742924069ec330596c8aaf7d1a0ce43e819a5789
ec07f53ae1f38ef1b68a3588b73c451aa7576ec7
/testing/kfctl/kf_is_ready_test.py
c72b6d91c14328353df471fdd053b5842ca33125
[ "Apache-2.0" ]
permissive
yangtaokm/kubeflow
dda5e2cc927394fc4404e61f5752ee6dad2f236d
065bb6b025db5c87d11db7d1c74247596589dc91
refs/heads/master
2020-06-06T03:56:15.041962
2019-06-19T01:53:18
2019-06-19T01:53:18
192,631,327
0
0
Apache-2.0
2019-06-19T00:41:45
2019-06-19T00:41:44
null
UTF-8
Python
false
false
2,683
py
import datetime import logging import os import subprocess import tempfile import uuid from retrying import retry import pytest from kubeflow.testing import util from testing import deploy_utils def test_kf_is_ready(namespace, use_basic_auth, use_istio): """Test that Kubeflow was successfully deployed. Args: ...
[ "k8s-ci-robot@users.noreply.github.com" ]
k8s-ci-robot@users.noreply.github.com
8354f076aae30212dfec4e79547f4b09f4c31496
ce68e6f989ebf72becce3638dc920fc60edec45c
/SWEA/D1/2029.py
e0019f33535fe789c5fbf59ddbcec2fc6f3be5c6
[]
no_license
hyeinkim1305/Algorithm
103513e502241a619a60e6663ed8346e5c574ebc
93541b01fab0a6ceb6f9dd06a7c049c8b57d94f9
refs/heads/master
2023-05-09T19:07:58.280912
2021-06-10T01:51:29
2021-06-10T01:51:29
330,079,859
0
0
null
null
null
null
UTF-8
Python
false
false
156
py
n = int(input()) for i in range(n): m = list(map(int,input().split())) s = m[0] // m[1] ss = m[0] % m[1] print('#{} {} {}'.format(i+1,s,ss))
[ "haileyyy1305@gmail.com" ]
haileyyy1305@gmail.com
e1ba2403cf68faa11bb4c2fc5410853726d89095
d0b7942c4566d2b113eb4922fc97407a9ee72026
/backend/chat/migrations/0001_initial.py
190879587f8d8ef12ccd9c78ba15f72be4503bca
[]
no_license
crowdbotics-apps/test-app-23834
04767ba8d6891aa51a5a85973a8538e6b963ea4b
4caec0016097cd41b4e27a8380d1a8dc63603a6c
refs/heads/master
2023-02-12T22:51:22.743405
2021-01-14T03:07:08
2021-01-14T03:07:08
329,491,873
0
0
null
null
null
null
UTF-8
Python
false
false
4,805
py
# Generated by Django 2.2.17 on 2021-01-14 03:06 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ('chat_user_profile', '0001_initial'), ] operations = [ migrations.CreateModel( ...
[ "team@crowdbotics.com" ]
team@crowdbotics.com
ac9d7ee63cddfbfe5cd22d3148dc38b0efebc416
2b975d1d5635255202db1ef7899adc8b881a219d
/blog/urls.py
7e829e89b53aead69351ea535ed6917e4b2db26c
[]
no_license
skafis/blogAPI
a53a938b33d115144a72180787db29915099f6f3
29ce63849937c73e76eead820ed82fa8aabf38d2
refs/heads/master
2020-06-12T23:13:42.416845
2016-12-05T12:12:45
2016-12-05T12:12:45
75,479,617
0
0
null
null
null
null
UTF-8
Python
false
false
821
py
"""blog URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.9/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home') Class-based ...
[ "franciskipchumba5@gmail.com" ]
franciskipchumba5@gmail.com
8046c037395b5b3db076a8a0a23d819939bc0a6e
12eee0afe2d436760ae49089fdb83236d55c048f
/CreateApplications/pyweek/beneath_the_ice/src/resources.py
21e2115111f77db71d285a8e3c62e2d5276ba1bc
[ "CC-BY-3.0" ]
permissive
Asher-1/pythonGames
43993745be8e1ba5e29bfd55e0ed5ca30e15e3c1
99228d5c5648ab12c7f26d31048dba8ef583dcea
refs/heads/master
2020-04-09T05:12:41.808156
2019-05-04T15:38:19
2019-05-04T15:38:19
160,055,760
2
0
null
null
null
null
UTF-8
Python
false
false
33,401
py
#!/usr/bin/python """ resources.py - Load all resource data once """ import os, sys import pygame from pygame.locals import * class InitLevelData(object): def __init__(self, filepath): f = open(filepath, "r") self.map_size = [int(i) for i in f.readline().split()] # (w, h) self.m...
[ "ludahai19@163.com" ]
ludahai19@163.com
9560adee9b3a55756e747eaa1780ae195f491252
750473b9909dd29cc61f87f505860c690b918b6e
/src/zope/authentication/tests/utils.py
c5e404447a82fe78177ac137641f5be632a9f6de
[ "ZPL-2.1" ]
permissive
jean/zope.authentication
c07991890dcf3fb0cb3e9d07af072512a8ce910f
db7f23f02c65146aa1b4dc12b56fabf2ed170f7f
refs/heads/master
2021-01-18T13:26:08.701822
2015-04-02T16:39:30
2015-04-02T16:39:30
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,941
py
############################################################################## # # Copyright (c) 2009 Zope Foundation and Contributors. # All Rights Reserved. # # This software is subject to the provisions of the Zope Public License, # Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution. # THIS SOF...
[ "tseaver@palladion.com" ]
tseaver@palladion.com
6eb7851c45ab360af6b04e2f5b9d6e456c2c38b9
a4949df03443cdecf602b0a238e370be3a540248
/experiments/experiment_1/database/citations/esfahani2011a.py
efde3be7a1baba4d1fe83b32a7d78a956b21dd1d
[ "MIT" ]
permissive
gems-uff/hybrid-strategies
b13d4c60dd68c430eb344e056bdc751a4c5980ff
1d37ed72270e901db36f6b5ae6ebb03ba734f2e1
refs/heads/master
2021-03-27T16:14:59.715371
2019-06-19T19:29:16
2019-06-19T19:29:16
109,733,311
2
2
null
null
null
null
UTF-8
Python
false
false
3,278
py
# coding: utf-8 from snowballing.models import * from snowballing import dbindex dbindex.last_citation_file = dbindex.this_file(__file__) from ..work.y1996 import kaplan1996a from ..work.y1996 import kaplan1996c from ..work.y1996 import brinkkemper1996a from ..work.y1997 import yu1997a from ..work.y1999 import martins...
[ "ericamourao@gmail.com" ]
ericamourao@gmail.com
01e74c620099334d2311d8df9fbaa7db89be7b7b
ce6c8e0e3a986af3fe3c347a4af16f1ca337f82c
/2.add-two-numbers.py
968c2ad4b90afe76212279e6ccfef191ac465aa6
[]
no_license
chenjienan/python-leetcode
dc098373ae7f73dd502d7747888a37a3bd0820cb
90c000c3be70727cde4f7494fbbb1c425bfd3da4
refs/heads/master
2020-04-28T20:46:50.395260
2020-02-12T18:48:01
2020-02-12T18:48:01
175,556,339
16
3
null
null
null
null
UTF-8
Python
false
false
1,042
py
# collected # @lc app=leetcode id=2 lang=python # # [2] Add Two Numbers # # Definition for singly-linked list. # class ListNode(object): # def __init__(self, x): # self.val = x # self.next = None class Solution(object): def addTwoNumbers(self, l1, l2): """ :type l1: ListNode ...
[ "chenjienan2009@gmail.com" ]
chenjienan2009@gmail.com
11d29b9282cde6fd847934479f7477fc1c9122b5
4fca17a3dbc3e74ba7e46bd7869eb6d138e4c422
/_1825_Finding_MK_Average.py
9f9749e48f56a8a32f8dc3d34c8f61bc34404cec
[]
no_license
mingweihe/leetcode
a2cfee0e004627b817a3c0321bb9c74128f8c1a7
edff905f63ab95cdd40447b27a9c449c9cefec37
refs/heads/master
2021-06-19T07:46:46.897952
2021-05-02T05:13:17
2021-05-02T05:13:17
205,740,338
3
0
null
null
null
null
UTF-8
Python
false
false
1,537
py
#!/usr/bin/python3 from sortedcontainers import SortedList from collections import deque class MKAverage: def __init__(self, m: int, k: int): self.m, self.k = m, k self.sl = SortedList() self.dq = deque() self.total = 0 self.ksmall = 0 self.klarge = 0 de...
[ "hemingwei2017@gmail.com" ]
hemingwei2017@gmail.com
6dffa89d189a7cff3b5c1dddbf3172349ee361ce
90fb55320c81259cb199b9a8900e11b2ba63da4f
/204/pomodoro.py
f2838f6ffa98d3df17dd3a8dbc8d0fb2a6618581
[]
no_license
pogross/bitesofpy
f9bd8ada790d56952026a938b1a34c20562fdd38
801f878f997544382e0d8650fa6b6b1b09fa5b81
refs/heads/master
2020-05-19T07:31:44.556896
2020-01-26T12:48:28
2020-01-26T12:48:28
184,899,394
1
1
null
null
null
null
UTF-8
Python
false
false
2,979
py
import asyncio import time from typing import Union # ONE_MIN = 60 # FIVE_MIN = ONE_MIN * 5 # TWENTY_FIVE_MIN = ONE_MIN * 25 # THIRTY_MIN = ONE_MIN * 30 # HOUR = ONE_MIN * 60 # CURRENT_SESSION = 1 ONE_MIN = 0.006 FIVE_MIN = ONE_MIN * 0.0005 TWENTY_FIVE_MIN = ONE_MIN * 0.0025 THIRTY_MIN = ONE_MIN * 0.003 HOUR = ONE_MI...
[ "p.gross@tu-bs.de" ]
p.gross@tu-bs.de
34344342be4435b12ec82165cbe42e23e8a12c45
926621c29eb55046f9f59750db09bdb24ed3078e
/lib/googlecloudsdk/core/http.py
a7e082dbc140468ccfa023b437658c244df4c9e5
[ "LicenseRef-scancode-unknown-license-reference", "Apache-2.0" ]
permissive
bopopescu/SDK
525d9b29fb2e901aa79697c9dcdf5ddd852859ab
e6d9aaee2456f706d1d86e8ec2a41d146e33550d
refs/heads/master
2022-11-22T18:24:13.464605
2016-05-18T16:53:30
2016-05-18T16:53:30
282,322,505
0
0
NOASSERTION
2020-07-24T21:52:25
2020-07-24T21:52:24
null
UTF-8
Python
false
false
10,313
py
# Copyright 2013 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ag...
[ "richarddewalhalla@gmail.com" ]
richarddewalhalla@gmail.com
2c011e7b6518c9693a3b9fff8f864a89e1c5ba3c
cbee7b36c10c9716c20de66363ae8cc07061e5e8
/job_1/1849769.out/article.py
650fa13e20a77248539f87546593c1c65617d7f3
[ "MIT" ]
permissive
alexfmsu/lomonosov_task_tracker
bcdea94c7c805e1e32e773f88200ca1bc0021fb7
690f1f04f6f78d3be3a79973a4921d11c150e12a
refs/heads/master
2020-03-16T09:55:29.910877
2020-03-15T19:09:10
2020-03-15T19:09:10
132,625,683
0
1
null
null
null
null
UTF-8
Python
false
false
3,863
py
# --------------------------------------------------------------------------------------------------------------------- # TC_Lindblad # import matplotlib # import matplotlib.pyplot as plt import matplotlib.pyplot as plt import matplotlib from PyQuantum.Common.STR import * import numpy as np from PyQuantum.PlotBuilder.P...
[ "alexfmsu@mail.ru" ]
alexfmsu@mail.ru
5a6e2cc8c0c5665a0ac8c18ecec13dbf21b611e5
1c78f644375ab532fad399c406ca02157f25a4cb
/parsers-generators/nx2t3d.py
935917016fa8b52f032c3c4e5032d5f6eaa1f884
[]
no_license
jiahao-shen/SDN-TE-SR-tools
015d16539ed35be578172320acb65202be231713
a02af01fed2f116861dc03650e5de578a6ef5581
refs/heads/master
2020-04-07T16:27:52.591741
2018-12-17T09:23:09
2018-12-17T09:23:09
158,524,766
0
0
null
null
null
null
UTF-8
Python
false
false
7,525
py
####################################################################################################### # nx2t3d.py # # Copyright (C) 2015 Pier Luigi Ventre - (Consortium GARR and University of Rome "Tor Vergata") # Copyright (C) 2015 Stefano Salsano - (CNIT and University of Rome "Tor Vergata") # www.garr.it - www.uni...
[ "you@example.com" ]
you@example.com
482f47e922d98cd69d63577ce64b04bda294bc0b
b1571f4ee376d789b8094777fd81c4fb47a89cf1
/AtCoder/本番/ABC/ABC181/D.py
e6da8a83b803465438a610e825c5c319b39997c0
[]
no_license
hiroyaonoe/Competitive-programming
e49e43f8853602ba73e658cab423bd91ebbe9286
2949e10eec3a38498bedb57ea41a2491916bab1c
refs/heads/master
2021-06-23T21:56:33.232931
2021-05-30T15:27:31
2021-05-30T15:27:31
225,863,783
2
0
null
2020-06-14T17:54:28
2019-12-04T12:37:24
Python
UTF-8
Python
false
false
416
py
from collections import Counter as cnt sss=input() ss=cnt(list(sss)) i=0 l=min(len(sss),3) while i<10**l: if sss==i: print("Yes") exit() s=ss.copy() ok=True si=str(i).zfill(l) for j in range(l): lit=si[j] if s[lit]>0: s[lit]-=1 else: ...
[ "onoehiroya@gmail.com" ]
onoehiroya@gmail.com
604ecd8e558508196c5a4e4320c8cb367c9d758c
82716ba41cf74d2edd4ef44a4c153ac7db6ba82a
/day7.py
ec304c5e5447fb35a522b200d330d3ccc51be813
[]
no_license
bomcon123456/30Days_Leetcode
124c5115363bd78aebd1241b1dccca381ff6eaf0
a89bae9fe2bdb016813f84493c15d5a11efc57ce
refs/heads/master
2021-05-23T08:13:37.151970
2020-04-30T15:08:08
2020-04-30T15:08:08
253,192,250
0
0
null
null
null
null
UTF-8
Python
false
false
221
py
import collections class Solution: def countElements(self, arr: List[int]) -> int: s = set(arr) res = 0 for num in arr: if num+1 in s: res += 1 return res
[ "bomcon123456@gmail.com" ]
bomcon123456@gmail.com
7f9ffb4541dbe1a67b3250109b06e3ebe11ef643
924bb4c23e50dd83da5504d91c2c7d272a76501d
/grabbit/frames/datatypes.py
e83d15122cbec651ec2c229585960e2010dd6bdc
[]
no_license
ekimekim/grabbit
6e997cc4cb3375022fc2bb665661245d83c4f533
cec9609f638babd7afedde33df2c384adc61d9a3
refs/heads/master
2020-06-08T07:57:21.875890
2015-02-18T17:40:25
2015-02-18T17:40:58
18,460,011
1
0
null
2014-07-30T10:04:19
2014-04-05T04:34:57
Python
UTF-8
Python
false
false
9,104
py
import struct import math from grabbit.common import classproperty from common import eat class DataType(object): def __init__(self, value): """Simple data types may wish to not override this and use value directly. Data types with multiple values may wish to set their own attributes, and simply use self.value...
[ "mikelang3000@gmail.com" ]
mikelang3000@gmail.com
456c970bbf3617a39e988c8c34f508a39a4cfe26
f9632d4a822f6525a007598a1f67757ac9891749
/rakuten/playground/map_reduce.py
e3ff7c8e88105487c347d11760ba5360ce4aed4c
[]
no_license
rpryzant/marketing
ab055a5ae02ed287cb5a763d3e937efa72d057df
9f463da0a2e7c9c48951e793d95534963cd19721
refs/heads/master
2021-09-07T01:20:31.720381
2018-02-14T22:13:40
2018-02-14T22:13:40
116,716,301
1
0
null
null
null
null
UTF-8
Python
false
false
1,225
py
""" my janky version of map reduce """ import glob from tqdm import tqdm import multiprocessing import os from joblib import Parallel, delayed def mapreduce( map_fn, # takes a path, returns something reduce_fn, # takes a list of mapper outputs, returns a reduced string input_filename='', # input file...
[ "rapigan@gmail.com" ]
rapigan@gmail.com
7bd82b50721a0d02ad3d4b48b4660d7d5e790e92
96e8165c97db032bd5a548421fc73d9c939a2c7b
/texttestlib/default/gtkgui/version_control/bzr.py
9013274161a5ab654cf15d2170d0599f20617f42
[]
no_license
jprk/texttest
678469c8043256edff026ffacc9f07da28e2d449
c2eca1828df53f33e8b85535e3d6bbefe26a36cd
refs/heads/master
2020-09-25T01:36:23.921986
2019-08-29T10:22:55
2019-08-29T10:22:55
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,653
py
import vcs_independent, datetime, time, os class BzrInterface(vcs_independent.VersionControlInterface): def __init__(self, controlDir): warningStates = [ "Modified", "Removed", "Added", "Renamed" ] errorStates = [ "Unknown", "Conflicts", "Kind changed" ] vcs_independent.VersionControlInte...
[ "geoff.bache@jeppesen.com" ]
geoff.bache@jeppesen.com
35abf60cb64b905529c05fa7d3976ff06e9e696a
f92fd5ba7ec30729dada169f7684e2edf565c139
/test/case/mapsetting/TestMapSetting_adjustmap.py
eee602975c50e69586fda20ab90fec51fa68cd94
[]
no_license
rico-o/autoTest
6ea0c83ab3ef60bf8ee13d00f61995d3357f4c37
6ca03420faf1b0523a567eed11a8212796ee3d35
refs/heads/master
2022-03-30T14:34:55.787787
2020-02-08T11:46:23
2020-02-08T11:46:23
218,439,831
0
0
null
null
null
null
UTF-8
Python
false
false
762
py
import unittest from test.pages.MapSettingPage import * class Test_adjustmap(unittest.TestCase): """校准——点取""" @classmethod # 类方法 def setUpClass(cls): cls.setting = MapSettingPage() def test_adjustmap(self): self.setting.login() self.setting.iframe1() self.setting.base...
[ "53588251+rico-o@users.noreply.github.com" ]
53588251+rico-o@users.noreply.github.com
e1394f9d7ec15287ca35efde8d98eb461cc26cc8
344b654cbb8b13d683bcd2cacf522c983287a5fe
/Tkinter_module/Frame.py
b40e98edddcb22afff549c2f0929a2173a753156
[]
no_license
tchaitanya2288/pyproject01
d869522584ab498008e67e81c209472ab20685c2
565660b73039db6f0e9ed986504c2f96ba674f9c
refs/heads/master
2020-03-15T13:18:21.480443
2018-06-19T18:44:47
2018-06-19T18:44:47
132,163,324
0
0
null
null
null
null
UTF-8
Python
false
false
532
py
# !/usr/bin/python3 from tkinter import * root = Tk() root.geometry("500x500") frame = Frame(root) frame.pack() bottomframe = Frame(root) bottomframe.pack( side = BOTTOM ) redbutton = Button(frame, text="Red", fg="red") redbutton.pack( side = LEFT) greenbutton = Button(frame, text="Green", fg="green") greenbutton.p...
[ "tchaitanya.2288@gmail.com" ]
tchaitanya.2288@gmail.com
a608bc4d59199b74c9ced80831a48a59f78cbaef
ab621c65fc91f5194c4032d68e750efaa5f85682
/account_subscription_enhanced/models/__init__.py
202bbba4ee1e23715f252ccdd98c0624672a1e21
[]
no_license
pabi2/pb2_addons
a1ca010002849b125dd89bd3d60a54cd9b9cdeef
e8c21082c187f4639373b29a7a0905d069d770f2
refs/heads/master
2021-06-04T19:38:53.048882
2020-11-25T03:18:24
2020-11-25T03:18:24
95,765,121
6
15
null
2022-10-06T04:28:27
2017-06-29T10:08:49
Python
UTF-8
Python
false
false
78
py
# -*- coding: utf-8 -*- from . import account from . import account_move_line
[ "kittiu@gmail.com" ]
kittiu@gmail.com
67b1ca0997f13807405ccc9e2c3d82facb2e4635
33f1c49920201e21adaf794c826148d0330db4a1
/python/stack_queue_hash_heap/128_hash_function.py
a8563647bc5669c1addadbdc6a1584ff1fcc5170
[]
no_license
zsmountain/lintcode
18767289566ccef84f9b32fbf50f16b2a4bf3b21
09e53dbcf3b3dc2b51dfb343bf77799632efd219
refs/heads/master
2020-04-04T21:35:07.740575
2019-03-16T20:43:31
2019-03-16T20:43:31
156,291,884
0
0
null
null
null
null
UTF-8
Python
false
false
1,625
py
''' In data structure Hash, hash function is used to convert a string(or any other type) into an integer smaller than hash size and bigger or equal to zero. The objective of designing a hash function is to "hash" the key as unreasonable as possible. A good hash function can avoid collision as less as possible. A widely...
[ "zsmountain27@gmail.com" ]
zsmountain27@gmail.com
d5bf564b6bb62b4110996a59525a1720f5fcbc20
c8a9d66efb29a9a5d5a42b74c252eeb91f20e2f8
/survae/transforms/bijections/functional/mixtures/params.py
446142104e6cd2140655a6668d8d380fac8ce6d2
[ "MIT" ]
permissive
alisiahkoohi/survae_flows
60ebfa86506f4139ce1fd9508e9c1e0dbdd1bdff
e1747b05524c7ab540a211ed360ab3e67bc3e96d
refs/heads/master
2022-12-19T15:18:42.587276
2020-09-17T12:34:51
2020-09-17T12:34:51
290,247,391
1
0
MIT
2020-08-25T15:08:02
2020-08-25T15:08:01
null
UTF-8
Python
false
false
378
py
import torch def get_mixture_params(params, num_mixtures): '''Get parameters for mixture transforms.''' assert params.shape[-1] == 3 * num_mixtures unnormalized_weights = params[..., :num_mixtures] means = params[..., num_mixtures:2*num_mixtures] log_scales = params[..., 2*num_mixtures:3*num_mixt...
[ "didrik.nielsen@gmail.com" ]
didrik.nielsen@gmail.com
b15c13d8e73089d0ac359a444d51151d659f63f1
236ded75aefcf965c582538f1b56d21b161cd3c5
/scpki/testDir/callct659.py
ee80afc5d14d36072613265b1f7fe98d38c3f724
[]
no_license
rogerioita/ICPChain
7fc1c7c5df289ed31fd2ad71cee400eac3d253cb
87f2b001f5297396be6cb3aa9dd0c42236587038
refs/heads/master
2023-03-10T20:57:49.479052
2021-02-16T16:27:23
2021-02-16T16:27:23
336,806,143
0
0
null
null
null
null
UTF-8
Python
false
false
60
py
#!/usr/bin/env python import os os.system('node ct659.js')
[ "rogerio.santos@ga.ita.br" ]
rogerio.santos@ga.ita.br
d684fc0a9c5c2d4c8809419680c87185e41b1d73
7e594c1a7cd470834b38320e5d7c0f5930be034f
/tests/mega/leads/test_types.py
6beb0846e60495ba35962dbe343427fed9fd6a60
[]
no_license
iuvLuyonghao/api_test
5dabcc016438e278689a976940d5d11bfd0e1785
6e874b5caa10a6afd22fbef546151002e8960937
refs/heads/master
2022-12-22T14:04:39.673280
2020-09-24T02:00:47
2020-09-24T02:00:47
292,821,056
0
0
null
null
null
null
UTF-8
Python
false
false
1,054
py
# -*- coding: utf-8 -*- import unittest, warnings from apis.mega.leads.leads import LeadsClient from apis.mega.login.login import Login from config import services from data import DataCenter as D, load_local_data from os.path import join, abspath file = abspath(join(__file__, "../../test.json")) load_local_data(data...
[ "842072252@qq.com" ]
842072252@qq.com
ad707b0ce82a14b73bef40f61c530787d700a7fb
c3ab6a98d7289162f0420a85d987d4770d6e3677
/tsp_solvers.py
097adbfc418574f88e095aa781255000869bf9ee
[]
no_license
Yamp/algomost_test
32b9aba29bb49217a132101c7faf67a7778539df
b2e56b28d7a82f15a641e6ca9468e761051a328f
refs/heads/master
2021-01-04T05:12:07.387485
2020-02-14T01:49:45
2020-02-14T01:49:45
240,402,082
0
0
null
null
null
null
UTF-8
Python
false
false
567
py
from time import time import numpy as np from concorde_adapter import solve_concorde from lkh_adapter import solve_lkh def solve_tsp_lkh(matrix): return solve_lkh(matrix) def solve_tsp_concorde(matrix): return solve_concorde(matrix) def solve_tsp(matrix, solver): """ Решаем обычного коммивояжера """ ...
[ "yampolskiydv@gmail.com" ]
yampolskiydv@gmail.com
9ebfccb4a7d5c32ba83a8e9effb9c5db618d0923
b7f3edb5b7c62174bed808079c3b21fb9ea51d52
/third_party/blink/web_tests/external/wpt/webdriver/tests/take_screenshot/screenshot.py
ca6e0272637d6b43413a733725299655858b4367
[ "LGPL-2.0-or-later", "GPL-1.0-or-later", "MIT", "Apache-2.0", "LicenseRef-scancode-warranty-disclaimer", "LGPL-2.1-only", "GPL-2.0-only", "LGPL-2.0-only", "BSD-2-Clause", "LicenseRef-scancode-other-copyleft", "BSD-3-Clause" ]
permissive
otcshare/chromium-src
26a7372773b53b236784c51677c566dc0ad839e4
64bee65c921db7e78e25d08f1e98da2668b57be5
refs/heads/webml
2023-03-21T03:20:15.377034
2020-11-16T01:40:14
2020-11-16T01:40:14
209,262,645
18
21
BSD-3-Clause
2023-03-23T06:20:07
2019-09-18T08:52:07
null
UTF-8
Python
false
false
724
py
from tests.support.asserts import assert_error, assert_png, assert_success from tests.support.image import png_dimensions from tests.support.inline import inline from . import viewport_dimensions def take_screenshot(session): return session.transport.send( "GET", "session/{session_id}/screenshot".format(...
[ "commit-bot@chromium.org" ]
commit-bot@chromium.org
41f75322770c83120e01c89ef152b8021d26f6fe
5e7d0921887469c651faf90ecfcf3736d4802f6b
/seiichi/chapter08/75.py
7561cbcf86b1e89e03eea62c906dd139abab7d4e
[]
no_license
tmu-nlp/100knock2021
5e4029f2ee330fa95269740d7bd372be533d125d
0a9f8150588648fbd86d51b4c9168acf3e45ed98
refs/heads/main
2023-07-03T14:00:08.604762
2021-08-05T09:23:16
2021-08-05T09:23:16
359,641,037
10
1
null
2021-08-05T09:22:25
2021-04-20T00:57:21
Jupyter Notebook
UTF-8
Python
false
false
2,101
py
from torch.utils.data import TensorDataset, DataLoader import torch import numpy as np import matplotlib.pyplot as plt X_train = np.loadtxt('./data/X_train.txt', delimiter=' ') X_train = torch.tensor(X_train, dtype=torch.float32) W = torch.randn(300, 4) softmax = torch.nn.Softmax(dim=1) y_train = np.loadtxt('./data/y...
[ "d35inou108@gmail.com" ]
d35inou108@gmail.com
6cdf0d738f8994463632bd51fc828ebe8c231afe
c4702d1a06640555829b367852138cc93ba4a161
/dym_eksport_import/models/eksport_import.py
7686bdfa2161d13ed98297faacd909faee5d3309
[]
no_license
Rizalimami/dym
0ecadf9c049b22ebfebf92e4eab6eaad17dd3e26
af1bcf7b77a3212bc8a8a0e41e6042a134587ed4
refs/heads/master
2020-04-08T10:56:43.605698
2018-11-27T06:44:08
2018-11-27T06:44:08
159,287,876
0
2
null
null
null
null
UTF-8
Python
false
false
47,895
py
import csv import time import base64 import tempfile from datetime import datetime, timedelta import StringIO import cStringIO from dateutil import parser from openerp.osv import fields, osv from openerp.tools.translate import _ from openerp import SUPERUSER_ID from lxml import etree class EksportImport(osv.osv_memory...
[ "rizal@portcities.net" ]
rizal@portcities.net
976afe5e70ce56385d2a5187d8838593177b451e
2a8a12ee952dcd33edefdb8966a3b575b70b3b25
/MeiDuo/meiduo_mall/meiduo_mall/apps/oauth/constants.py
ceee94f858842322572cd3da9e2f171265c69377
[]
no_license
okada8/python
288e964aa6fd324fa65569d69e8d58ad51753a63
ebce77d4ce724676e95aba85da293471f8f41cef
refs/heads/master
2022-12-02T07:15:42.795504
2019-06-13T00:28:15
2019-06-13T00:28:15
177,994,227
3
1
null
2022-11-22T03:52:30
2019-03-27T12:53:51
Python
UTF-8
Python
false
false
68
py
#生成qq登陆的token有效期: s SAVE_QQ_USER_TOKEN_EXPIRES=600
[ "1141912008@qq.com" ]
1141912008@qq.com
83e39604954d24622bf9f0aa4b81f00a9bbad677
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03031/s563389178.py
eaa5339f9220392d323d7815ec2893fe6b8ff52b
[]
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
244
py
N,M=map(int,input().split()) k=[list(map(int,input().split())) for _ in range(M)] *p,=map(int,input().split()) t=0 a=0 for i in range(2 ** N): t=sum(1 for j in range(M) if sum(1 for h in k[j][1:] if i>>(h-1)&1)%2==p[j]) if t==M:a+=1 print(a)
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
09ee955b7fd69217e447323b8a5341bad5b46017
6e3b8a04a074c30cf4fc43abe7a208f772df795b
/Basic Syntax, Conditional Statements and Loops/func2.py
5e1d3b4f5c319fb4009a713f4cacf85a2efc215c
[]
no_license
majurski/Softuni_Fundamentals
dc0808fdaab942896eebfb208fb6b291df797752
bf53a9efdcb45eb911624ab86d762a6281391fb8
refs/heads/master
2022-11-29T06:06:06.287984
2020-08-10T19:36:18
2020-08-10T19:36:18
null
0
0
null
null
null
null
UTF-8
Python
false
false
85
py
n = 1234 arr = [0] * 10 for i in range(len(str(n))): n = str(n) print(n[i])
[ "noreply@github.com" ]
majurski.noreply@github.com
ae9a1627a9c60eea833ad14b14c5f8f65a9804e4
2a91a64f5464c48fb56bd2f0e01668737d4eafa9
/google-cloud-sdk/lib/googlecloudsdk/third_party/apis/workflows/v1alpha1/workflows_v1alpha1_client.py
019de12056b3565d758541d052701e812bac0eb6
[ "LicenseRef-scancode-unknown-license-reference", "Apache-2.0" ]
permissive
salewski/google-cloud-sdk
8513faf8c2f5b9180361efb567c4cfb9986d1e21
060174026ac068b6442b6c58bedf5adc7bc549cb
refs/heads/master
2023-08-16T09:44:57.948620
2021-10-05T00:00:00
2021-10-05T16:15:40
417,465,521
0
0
null
null
null
null
UTF-8
Python
false
false
16,465
py
"""Generated client library for workflows version v1alpha1.""" # NOTE: This file is autogenerated and should not be edited by hand. from __future__ import absolute_import from apitools.base.py import base_api from googlecloudsdk.third_party.apis.workflows.v1alpha1 import workflows_v1alpha1_messages as messages clas...
[ "gcloud@google.com" ]
gcloud@google.com
f6cbfc7d5a4b5f26b68f9a1033cfa33c2f93cfec
c34e592dd799f08d9a6123042247d1de1a39a7e8
/yanghuisanjiao_new.py
fd97dd29e9bad3cfa2f47c63de74c6a5b271c9e4
[]
no_license
chenglinguang/python_algorithm
0dcf27ae9bb8c967df13fcc88dc121b586bf201f
6a271478292996dad954a80592e7e44bef4d758b
refs/heads/master
2021-01-17T20:01:14.696172
2016-09-21T06:25:05
2016-09-21T06:25:05
61,439,082
0
0
null
null
null
null
UTF-8
Python
false
false
312
py
#!/usr/bin/env python3 #-*-encoding:utf-8-*- #[1] #[1,1] #[1,2,1] #[1,3,3,1] def getTriangle(n): N=[1] if n==1: print(N) while(n-1): N.append(0) N=[N[i-1]+N[i] for i in range(len(N))] print(N) n=n-1 if __name__=="__main__": getTriangle(5)
[ "clg19881220@163.com" ]
clg19881220@163.com
4a26e7b7d4713b603f80adf6f8451847ac4ba0d3
e1841bd6fcbd3393c47c6c08a136c6e8f6592528
/a3c.py
319ef21e1a3224d6a1214fbda4dd3bf06550d514
[ "Apache-2.0" ]
permissive
ml-lab/async_deep_reinforce
6bc6a904cba41ef9546b2982240673ea5644c129
a99c73760273cdeb31eb81ef07407901d8211895
refs/heads/master
2020-12-14T09:43:19.862051
2016-04-27T15:43:21
2016-04-27T15:43:21
57,276,036
1
0
null
2016-04-28T06:17:44
2016-04-28T06:17:44
null
UTF-8
Python
false
false
3,355
py
# -*- coding: utf-8 -*- import tensorflow as tf import threading import numpy as np import signal import random import math import os from game_ac_network import GameACNetwork from a3c_training_thread import A3CTrainingThread from rmsprop_applier import RMSPropApplier from constants import ACTION_SIZE from constants...
[ "miyoshi@narr.jp" ]
miyoshi@narr.jp
5aa6204cfc381ad1e28ec49b0dfeeb17d59be3e6
f3b233e5053e28fa95c549017bd75a30456eb50c
/mcl1_input/L35/35-34_MD_NVT_rerun/set_7.py
5189b8adb0a79e3e248485d10d8c0255addf9a38
[]
no_license
AnguseZhang/Input_TI
ddf2ed40ff1c0aa24eea3275b83d4d405b50b820
50ada0833890be9e261c967d00948f998313cb60
refs/heads/master
2021-05-25T15:02:38.858785
2020-02-18T16:57:04
2020-02-18T16:57:04
null
0
0
null
null
null
null
UTF-8
Python
false
false
740
py
import os dir = '/mnt/scratch/songlin3/run/mcl1/L35/MD_NVT_rerun/ti_one-step/35_34/' filesdir = dir + 'files/' temp_prodin = filesdir + 'temp_prod_7.in' temp_pbs = filesdir + 'temp_7.pbs' lambd = [ 0.00922, 0.04794, 0.11505, 0.20634, 0.31608, 0.43738, 0.56262, 0.68392, 0.79366, 0.88495, 0.95206, 0.99078] for j in lam...
[ "songlin3@msu.edu" ]
songlin3@msu.edu
71443ee6e899b2216ae3d42c36aff8a9968f1c1b
9adc810b07f7172a7d0341f0b38088b4f5829cf4
/experiments/murtaza/ddpg/ddpg_normalized_pendulum.py
328111584642a3354208825497b01708f18ac674
[ "MIT" ]
permissive
Asap7772/railrl_evalsawyer
7ee9358b5277b9ddf2468f0c6d28beb92a5a0879
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
refs/heads/main
2023-05-29T10:00:50.126508
2021-06-18T03:08:12
2021-06-18T03:08:12
375,810,557
1
0
null
null
null
null
UTF-8
Python
false
false
1,009
py
""" Exampling of running DDPG on Double Pendulum. """ from rlkit.envs.env_utils import gym_env from rlkit.exploration_strategies.ou_strategy import OUStrategy from rlkit.launchers.launcher_util import run_experiment from rlkit.qfunctions.nn_qfunction import FeedForwardCritic from rlkit.tf.ddpg import DDPG from rlkit.tf...
[ "alexanderkhazatsky@gmail.com" ]
alexanderkhazatsky@gmail.com
9302b2c10729a0395131c728772478c4a51aa514
f38853208f45bfbd12513bb0f1f21d5aade7fd95
/foundation/blseg/model/unet/unet.py
bce845cd7818f7a5e21b3ef64c5fc9d9fdd575c6
[]
no_license
ArronHZG/segmentation-pytorch
3c5c38c06e3b8dcfab261193d04cd018d9766ebe
ea334e44c774fe7c1fa4d6371f9c10e23f179edb
refs/heads/master
2022-11-22T05:10:22.650051
2020-07-28T17:59:51
2020-07-28T17:59:51
197,342,075
14
3
null
null
null
null
UTF-8
Python
false
false
3,413
py
# cython: language_level=3 import torch from torch import nn from ...backbone.utils import conv3x3 from ..base import SegBaseModule from .utils import DownBlock, UpBlock, UpConv, ModernUpBlock, ModernUpConv class UNet(SegBaseModule): def __init__(self, num_classes=1): super(UNet, self).__init__(num_class...
[ "hou.zg@foxmail.com" ]
hou.zg@foxmail.com
c7340454ab1f2dd29e793c55b0dda3d64f59877f
4ba5c0fa1ef6a1673b1b43899285df205c9bc64d
/algorithms/search/binary.py
7535896865677f8b679f0da27bebcff909c4523b
[ "MIT" ]
permissive
aiden0z/snippets
90f86507b7989b3c4efdd0551835a5849c899534
671cbb00865363af437ad4df06020a793cadada9
refs/heads/master
2023-01-23T14:16:57.779722
2022-11-21T14:57:58
2022-11-21T14:57:58
43,037,323
0
0
MIT
2023-01-20T22:37:57
2015-09-24T01:33:33
Python
UTF-8
Python
false
false
1,521
py
import random from typing import List class BinarySearch: def sort(self, array: List): new = array[:] self._quick_sort(new, 0, len(array) - 1) return new def _quick_sort(self, array: List, low: int, high: int): if low < high: pi = self._partition(array, low, high)...
[ "aiden0xz@gmail.com" ]
aiden0xz@gmail.com
06b23b324211ff9c5e426cce13b2d9ae591b7ca1
e67bd40ae85e09f832773b825bed6c43a6ba1f54
/pp_show.py
b98e87d553926db11fc838f424bd64bc156fdd5b
[ "LicenseRef-scancode-warranty-disclaimer", "LicenseRef-scancode-mit-taylor-variant" ]
permissive
KenT2/pipresents-beep
e00a516041edce05c09893c859096faeded29e90
0b1c008097bc1679966ba5fbf8f2ed150bb21fd3
refs/heads/master
2023-08-05T03:23:26.881544
2023-07-28T15:47:54
2023-07-28T15:47:54
140,758,841
56
18
NOASSERTION
2021-04-27T08:13:27
2018-07-12T19:57:02
Python
UTF-8
Python
false
false
39,888
py
#2/1/2016 add write_stats function import os import copy from tkinter import NW from PIL import Image from PIL import ImageTk from pp_showmanager import ShowManager from pp_timeofday import TimeOfDay from pp_imageplayer import ImagePlayer from pp_videoplayer import VideoPlayer from pp_vlcplayer import VLCPlayer from...
[ "ken@jksthompson.plus.com" ]
ken@jksthompson.plus.com
6c4c777ebcedfba91ef9b32c72a63da3d66104ea
1c8ea05ed65d76ab0e7bf8e642e0573e34d880ab
/BOJ/startlink.py
11937952d383f4248cab723bb58d0f962eeb9b8f
[]
no_license
PARKJUHONG123/turbo-doodle
1d259c88544d5e52ed375f119792363f5c1b4377
6b073281236af50949042c1a6b269752037cb829
refs/heads/master
2023-01-14T13:41:58.299164
2020-11-23T12:12:30
2020-11-23T12:12:30
259,669,738
0
0
null
null
null
null
UTF-8
Python
false
false
630
py
import sys from collections import deque F, S, G, U, D = map(int, sys.stdin.readline().split()) def bfs(): visited = [False for _ in range(F + 1)] queue = deque() queue.append([S, 0]) while queue: s, count = queue.popleft() if s == G: return count u, d = s + U, s -...
[ "corallines@naver.com" ]
corallines@naver.com
3eed9c74a2bd792e1ff78cd29060cab31641896f
8af2110423ab02a643631f0417bf9ccf7765fa71
/febraban/cnab240/statement/__init__.py
07c3095bd0e284800333717fccabbac04f34fb4a
[ "MIT" ]
permissive
erpbrasil/febraban-python
bfa63d1afe082599a772c0ba298ad7cbf289b57f
79812f5b4eae5aa8a2a0dd399f7d8c945eb05572
refs/heads/master
2023-08-13T10:54:34.600150
2021-03-01T00:15:16
2021-03-01T00:15:16
301,696,758
4
2
MIT
2022-10-16T15:29:08
2020-10-06T10:57:45
Python
UTF-8
Python
false
false
36
py
from .parser import StatementParser
[ "mileo@kmee.com.br" ]
mileo@kmee.com.br
317359c9f8e43e1cb131011728de7413780544e2
1be54b04e512ce623250f6e096f82fc9a43da4b3
/tests/api2/ftp.py
22e501963621b1d4db7e3872be3fa85394cf5124
[ "BSD-3-Clause" ]
permissive
mathias-stjernholm/freenas
011bd99439a7332e9e41557ade41b8388d7ede0b
9fdb26e4ab35d9f397c99158ba022d5ebf066321
refs/heads/master
2020-03-27T22:44:05.158227
2018-09-03T15:25:18
2018-09-03T15:29:41
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,425
py
#!/usr/bin/env python3.6 # Author: Eric Turgeon # License: BSD # Location for tests into REST API 2.0 of FreeNAS import sys import os apifolder = os.getcwd() sys.path.append(apifolder) from functions import PUT, GET, POST # , RC_TEST # from auto_config import ip def test_01_Configuring_ftp(): payload = {"clie...
[ "ericturgeon.bsd@gmail.com" ]
ericturgeon.bsd@gmail.com
630c63d8645e7a6f4be179eccdd96e6d2c87e678
ac1bbabc7c1b3149711c416dd8b5f5969a0dbd04
/Python OOP/testing/cat_tests.py
fc90d40dd79e3b884b3beeb4faa1eb5d7ebcd163
[]
no_license
AssiaHristova/SoftUni-Software-Engineering
9e904221e50cad5b6c7953c81bc8b3b23c1e8d24
d4910098ed5aa19770d30a7d9cdf49f9aeaea165
refs/heads/main
2023-07-04T04:47:00.524677
2021-08-08T23:31:51
2021-08-08T23:31:51
324,847,727
1
0
null
2021-08-08T23:31:52
2020-12-27T20:58:01
Python
UTF-8
Python
false
false
1,446
py
class Cat: def __init__(self, name): self.name = name self.fed = False self.sleepy = False self.size = 0 def eat(self): if self.fed: raise Exception('Already fed.') self.fed = True self.sleepy = True self.size += 1 def sleep(self): if not self.fed: raise Excepti...
[ "assiaphristova@gmail.com" ]
assiaphristova@gmail.com
54c556cd9ce1858766f85affdb5f984a96b137fb
fd4375f30ae974a4bbab0d24054b9e883ebe07f7
/vowel.py
31bb379cb5c4a3c21d2643841e7a87486bca2e2d
[]
no_license
EsaikaniL/python
fe451167df79ae3a0b82fb00300e7c2da9c35f37
e3d8ec1983a257aec26b79a669da7abedcd9985b
refs/heads/master
2020-04-17T11:12:16.152565
2019-01-20T04:40:19
2019-01-20T04:40:19
166,531,578
0
0
null
2019-01-19T09:53:37
2019-01-19T09:53:37
null
UTF-8
Python
false
false
168
py
s=str(raw_input()) if(s=='a'or s=='e'or s=='i'or s=='o'or s=='u' or s=='A' or s=='E' or s=='I' or s=='O' or s=='U'): print("vowel") else: print("constant")
[ "noreply@github.com" ]
EsaikaniL.noreply@github.com
c789db5432bc44fc982f8af52ea81be68232753e
b7759a32cfe3d93d0fdf8afadf73aac687563c0d
/virtual/bin/easy_install
cd3bd2b4a9df8a66fe6c191e7cfa551935a9ac0f
[]
no_license
CollinsMuiruri/Galla-Pics
5aa39e309a918599b1f59eeda07a3557714ea3bc
2cfbc613edac15290ffd14c689594309c70ab997
refs/heads/master
2020-03-16T02:55:14.767404
2018-05-07T15:08:47
2018-05-07T15:08:47
132,475,911
0
0
null
null
null
null
UTF-8
Python
false
false
280
#!/home/collins/Documents/Django/Gallapics/virtual/bin/python3.6 # -*- coding: utf-8 -*- import re import sys from setuptools.command.easy_install import main if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) sys.exit(main())
[ "wanyekicollins@gmail.com" ]
wanyekicollins@gmail.com
f6aa42d99a6aab07f15918e95cd02021497f229c
781e2692049e87a4256320c76e82a19be257a05d
/all_data/exercism_data/python/matrix/a36d3e4c871b4756addce4d668b54d16.py
2b5faa62b11559e2a2fa0f16c4e6d8dd0e29379a
[]
no_license
itsolutionscorp/AutoStyle-Clustering
54bde86fe6dbad35b568b38cfcb14c5ffaab51b0
be0e2f635a7558f56c61bc0b36c6146b01d1e6e6
refs/heads/master
2020-12-11T07:27:19.291038
2016-03-16T03:18:00
2016-03-16T03:18:42
59,454,921
4
0
null
2016-05-23T05:40:56
2016-05-23T05:40:56
null
UTF-8
Python
false
false
367
py
# -*- coding: utf-8 -*- class Matrix: def __init__(self, matrix: str): self.rows = [[int(elem) for elem in row.strip().split(' ')] for row in matrix.split('\n')] self.columns = self._transpose(self.rows) def _transpose(self, xs: list) -> li...
[ "rrc@berkeley.edu" ]
rrc@berkeley.edu
5af25699fa82751fe7b482d21c2598cf3742ba29
b0c88350eadcbbeab3d9ebb5ea3a2efccc7d95e9
/classicalml/zscorenorm/generatesplits_zscorenorm.py
9999943512d715112af308cbf2622640c081d2be
[]
no_license
ysuter/brats20-survivalprediction
853d821c61b91e35f7bf23a1ca1f7295b1ef3ee1
388053b789ccf388bc9a29bf94a672d2da973a5c
refs/heads/main
2023-04-16T15:48:35.486293
2021-04-30T17:11:24
2021-04-30T17:11:24
316,608,244
1
0
null
null
null
null
UTF-8
Python
false
false
3,421
py
#!/usr/bin/env python3 import json import numpy as np import pandas as pd from sklearn.model_selection import StratifiedKFold from sklearn.preprocessing import StandardScaler def survival_classencoding(survarr: np.array, classboundaries: list): if len(classboundaries) == 1: survival_classes = [0 if elem ...
[ "noreply@github.com" ]
ysuter.noreply@github.com
018424ffb2e2ffec284f492eb255d85644850c15
0a9949a7dbe5f7d70028b22779b3821c62eb6510
/static/flight_price_analysis_qunar/model/price_model.py
4b68edef1b0b9100acc7350de04c68ffc46e0d2b
[]
no_license
744996162/warehouse
ed34f251addb9438a783945b6eed5eabe18ef5a2
3efd299a59a0703a1a092c58a6f7dc2564b92e4d
refs/heads/master
2020-06-04T22:10:14.727156
2015-07-03T09:40:09
2015-07-03T09:40:09
35,603,929
0
0
null
null
null
null
UTF-8
Python
false
false
1,423
py
#ecoding=utf-8 __author__ = 'zhangchao' import pickle import jsonpickle import json # { # 航班号:fn("GS7569") # 航空公司编号:accode("GS") # 起飞城市:org("BJS") # 到达城市:dst("SHA") # 起飞机场:departureairportcode("PEK") # 到达机场:"arrivingairportcode"("SHA") # 机票渠道:src("ctrip","qunaer") # 飞机日期:date("20151113") # 数据采集时间:cdate("20150204") # 飞机...
[ "744996162@qq.com" ]
744996162@qq.com
5660e1290528c866b82c0abfb86d7f5a61ed20d4
a109ba6106c834c60b0bec79306191b93faa2a5a
/lambdas/cs301/lambda_function.py
e1356e9eabacca5eb664badb0eb9e2f01db809a6
[]
no_license
goutham7r/caraza-harter-com
411776da60facd609cd673e960cb4a63bf5c78f9
77ae81be9a517d7352342bd5d48ee3b22b19ae8f
refs/heads/master
2020-03-28T03:11:22.114439
2018-09-06T01:06:00
2018-09-06T01:06:00
147,626,065
0
0
null
2018-09-06T06:11:58
2018-09-06T06:11:58
null
UTF-8
Python
false
false
896
py
import json, urllib, boto3, botocore, base64, time, traceback, random, string from collections import defaultdict as ddict from lambda_framework import * from clicker import * from projects import * from roster import * def lambda_handler(event, context): # identify user try: user = get_user(event) ...
[ "tylerharter@gmail.com" ]
tylerharter@gmail.com
8c96869313151b7505d0768446f27ca9359d8784
189c67305760ddef33fecd0bc86ea3f180a675bd
/programs/trimTei3.py
c9ac8274f5776c941b2186751e15841ad27ffe14
[ "MIT" ]
permissive
CLARIAH/wp6-missieven
5fd860492eb5b5fc38acaa792477c9368ec78558
e92cee483ebe23d45660f08b7fe19393f6111bba
refs/heads/master
2023-04-16T00:54:26.974941
2023-04-11T17:16:54
2023-04-11T17:16:54
292,204,502
1
0
null
null
null
null
UTF-8
Python
false
false
107,932
py
import re import collections from distill import MONTH_DETECT_PAT from lib import ( REPORT_DIR, WHITE_RE, LT, GT, AMP, ADD_LB_ELEMENTS, applyCorrections, docSummary, summarize, ) corpusPre = None trimDocBefore = None trimDocPrep = None trimDocPost = None STAGE = 3 REP = f"{REPORT_...
[ "dirk.roorda@dans.knaw.nl" ]
dirk.roorda@dans.knaw.nl
b298964322546492e1f8d270f317215acf35cd66
b45b73760417054dbc83f4a776ccc6d86b3c845b
/mmcv/docs/conf.py
aefdbce53034b105875986942c02f6955ce9fec1
[ "Apache-2.0" ]
permissive
JialeCao001/PSTR
e43843cb1a0af7c4b63926e43003d5574737dd58
36c0d181ecf4d1084d432a89c4be16b04aaec096
refs/heads/main
2023-05-23T22:17:08.147828
2023-04-16T14:43:06
2023-04-16T14:43:06
478,934,464
36
12
null
null
null
null
UTF-8
Python
false
false
9,599
py
# # Configuration file for the Sphinx documentation builder. # # This file does only contain a selection of the most common options. For a # full list see the documentation: # http://www.sphinx-doc.org/en/master/config # -- Path setup -------------------------------------------------------------- # If extensions (or ...
[ "connor@tju.edu.cn" ]
connor@tju.edu.cn
ae578b5ab21402dc12d2bdde3d1a0deffc8c4e8e
156610bd0cd85ce3356b30718198d54c77dbb2ad
/first_contact/asgi.py
623e3b9cafa6ad18c1c0b571d14a9f7fc0fd124e
[]
no_license
kob22/first_contact
29470fd1c82465706f29925bea0388c9163a9243
f6721250f4edba19e275638e20dfffceb5ac7341
refs/heads/master
2022-10-10T10:07:53.849460
2020-06-03T10:01:48
2020-06-03T10:01:48
269,052,424
0
0
null
null
null
null
UTF-8
Python
false
false
403
py
""" ASGI config for first_contact project. It exposes the ASGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.0/howto/deployment/asgi/ """ import os from django.core.asgi import get_asgi_application os.environ.setdefault('DJANGO...
[ "kob2222@gmail.com" ]
kob2222@gmail.com
ee82ac7f44a660f21f2cbb2af2694163ff229f53
9743d5fd24822f79c156ad112229e25adb9ed6f6
/xai/brain/wordbase/nouns/_reclaimed.py
4657327364f92f2ccda0fc8c7ae1a2624d2b5a13
[ "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
247
py
from xai.brain.wordbase.nouns._reclaim import _RECLAIM #calss header class _RECLAIMED(_RECLAIM, ): def __init__(self,): _RECLAIM.__init__(self) self.name = "RECLAIMED" self.specie = 'nouns' self.basic = "reclaim" self.jsondata = {}
[ "xingwang1991@gmail.com" ]
xingwang1991@gmail.com
dd160615747b0bf0ca02bc282e38f0dbdc49aba6
f1b8f0a0c44fbdb9d270415f6b4edb1672a234dd
/cocubes.py
0ab26aa707ec3affb80e7aa43324b354f67b5751
[]
no_license
devika4365/programs_i_done
2df10890fb55e893eb572aab6cf09e673a0438ef
e09f6ac6c0f1281b7ee9c21a5d1faff999a7a8ec
refs/heads/main
2023-04-06T02:45:04.492005
2021-04-07T15:59:31
2021-04-07T15:59:31
355,602,355
0
0
null
null
null
null
UTF-8
Python
false
false
173
py
def f(u,s): if (u[0]+u[1])<=s: return u[0]*u[1] else: return 0 s=int(input()) u=list(map(int,input().split())) u.sort() d= f(u,s) print(d)
[ "noreply@github.com" ]
devika4365.noreply@github.com
8fd7fce13c02aec4020acc3aa1a89a59998c6560
de9f373f4cf54e05a90e6d212f33f6a01b606dda
/bcbio/structural/regions.py
64814b88f327e8d34f56c2e6fa0ad0f26e374b80
[ "MIT" ]
permissive
gandalfone/bcbio-nextgen
3b882e6d2720ad4ee6f2e524da3d4d0d8d14c6fe
113ab514bd6ebe5bcafd6fd7e5c284a43bec246d
refs/heads/master
2021-05-05T09:51:32.570167
2018-01-17T17:52:40
2018-01-17T17:52:40
null
0
0
null
null
null
null
UTF-8
Python
false
false
17,394
py
"""Subset the genome into standard sets of regions surrounding transcripts. Provides a central place to bin the genome into smaller transcript-based regions for structural variant calling and prioritization. """ import collections import itertools import math import operator import os import numpy as np import pybedt...
[ "chapmanb@50mail.com" ]
chapmanb@50mail.com
da14d1241eeea407c238d7688aa27ae4a5113861
9b9a02657812ea0cb47db0ae411196f0e81c5152
/repoData/tuttle-django-schemata/allPythonContent.py
9d566bd206abcc35b27ff856d5a2b83fef6ad934
[]
no_license
aCoffeeYin/pyreco
cb42db94a3a5fc134356c9a2a738a063d0898572
0ac6653219c2701c13c508c5c4fc9bc3437eea06
refs/heads/master
2020-12-14T14:10:05.763693
2016-06-27T05:15:15
2016-06-27T05:15:15
null
0
0
null
null
null
null
UTF-8
Python
false
false
16,659
py
__FILENAME__ = manage_schemata from django.conf import settings from django.core.management.base import BaseCommand from django.db import connection, transaction from django_schemata.postgresql_backend.base import _check_identifier class Command(BaseCommand): help = "Manages the postgresql schemata." ...
[ "dyangUCI@github.com" ]
dyangUCI@github.com
71fa08ac8bee53e595287f2f8d1769be778fd380
19ee165c252970294333e203728020cdcae550b3
/agc011/agc011_b/20200511230007.py
f524f3039cccc1eb90241313cf39628700715e24
[]
no_license
autumncolors11/atc_submits
4528c700e488d530f9cdde3a4198f36b30c3d35e
6f9689b6d7de45fd4e44ad118e4e3531bb8dac4d
refs/heads/master
2022-11-28T17:59:55.750896
2020-08-09T14:10:05
2020-08-09T14:10:05
258,122,955
0
0
null
null
null
null
UTF-8
Python
false
false
1,470
py
import sys sys.setrecursionlimit(10**6) from math import floor,ceil,sqrt,factorial,log from heapq import heappop, heappush, heappushpop from collections import Counter,defaultdict,deque from itertools import accumulate,permutations,combinations,product,combinations_with_replacement from bisect import bisect_left,...
[ "biomimetics500tour@gmail.com" ]
biomimetics500tour@gmail.com
7bd723fb99482e92fb235239234bafa3d0da556c
ab4f74d127bfc89813ee359bb9c779eca5426ddc
/script/label_image.runfiles/org_tensorflow/tensorflow/contrib/distributions/python/ops/bijectors/gumbel.py
5724a6186abfa3f0fa415fd79151db39f3bf2d60
[ "MIT" ]
permissive
harshit-jain-git/ImageNET
cdfd5a340b62862ad8d1cc3b9a0f30cccc481744
1cd4c2b70917e4709ce75422c0205fe3735a1b01
refs/heads/master
2022-12-11T12:47:46.795376
2017-12-19T05:47:26
2017-12-19T05:47:26
null
0
0
null
null
null
null
UTF-8
Python
false
false
109
py
/home/co/Documents/ImageClassifier/tensorflow/tensorflow/contrib/distributions/python/ops/bijectors/gumbel.py
[ "harshitjain1371999@gmail.com" ]
harshitjain1371999@gmail.com
b77e0a7e1e8dec3cde6ff9be389746f16a613f47
1adf3684e8a87160b72eeebd3d9b04df36813cf1
/statsmodels/imputation/bayes_mi.py
44a2140d31cf47b6c91bbc82d41dc9bf3c2aafc9
[ "BSD-3-Clause" ]
permissive
mayank1729/statsmodels
a3a335f3a2a17f58618b99deca6706df27b9713d
989bd4454f6fb0aad93c9706968f6d8cd228eed6
refs/heads/master
2020-03-12T06:53:51.052496
2018-04-21T13:18:43
2018-04-21T13:18:43
null
0
0
null
null
null
null
UTF-8
Python
false
false
11,645
py
import numpy as np from statsmodels.base.model import LikelihoodModelResults class BayesGaussMI(object): """ BayesGaussMI uses a Gaussian model to impute multivariate data. The approach is Bayesian. The goal is to sample from the joint distribution of the mean vector, covariance matrix, and missing ...
[ "kshedden@umich.edu" ]
kshedden@umich.edu
c66a0d5ea65daec85d2acac30005cc7c654e15e7
bc00bdc08d76c8be38c51b1f1caeced2a4668592
/abjad_demo/env/lib/python3.6/site-packages/abjad/core/__init__.py
a544bf1e8bf74b4cd8aca11e247dc92badc0a99c
[]
no_license
gsy/gmajor
769afd6e87f6712e4059f3f779f41932cbca962d
7f5f20a19494256615fbaaa840b2a0bbbf6e311f
refs/heads/master
2023-02-08T07:00:44.479895
2019-05-20T13:58:03
2019-05-20T13:58:03
161,866,236
0
0
null
2023-02-02T06:26:34
2018-12-15T03:32:48
Scheme
UTF-8
Python
false
false
1,319
py
""" Abjad's core component classes: notes, rests, chords, tuplets, measures, containers and contexts. """ from .Component import Component from .Container import Container from .GraceContainer import GraceContainer from .AcciaccaturaContainer import AcciaccaturaContainer from .AfterGraceContainer import AfterGraceCont...
[ "chenxuanguang@chuangxin.com" ]
chenxuanguang@chuangxin.com
341036c25d5af2411d6845b4936532f12711b43a
5912193767e3cf4109cf9ecec77951915ffcd061
/base/rl_issue_browser_open.py
4d6482404f9992e1352aaf6bd0a4127f69b91e69
[ "MIT" ]
permissive
tosher/Redlime
7ade4087bd58a8e33ddd2c89906f64a699f3987d
daee3356e9a28a7be9b0fd9d725c09ab53ebe450
refs/heads/master
2021-01-23T21:33:22.478923
2018-11-10T20:43:09
2018-11-10T20:43:09
37,025,122
12
4
null
2017-08-31T16:33:05
2015-06-07T17:18:20
Python
UTF-8
Python
false
false
741
py
#!/usr/bin/env python\n # -*- coding: utf-8 -*- import webbrowser # import sublime import sublime_plugin from . import utils class RedlimeGoRedmineCommand(sublime_plugin.TextCommand): def run(self, edit): issue_id = self.view.settings().get('issue_id', None) if issue_id: url = '%s/iss...
[ "to.tosher@gmail.com" ]
to.tosher@gmail.com
c05261cfc4b9cdeb100eab44adfb615d8319974d
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p02963/s279883388.py
5e592d6ce83fac50e0fcc8a45d0649a33c043fbd
[]
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
143
py
from math import * s=int(input()) x1=ceil(sqrt(s)) if x1>10**9: x1-=1 y2=ceil(s/x1) if y2>10**9: y2-=1 x2=x1*y2-s print(0,0,x1,1,x2,y2)
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
11f36fb6e2f1f30340687d0187f2883000a7d506
1dacbf90eeb384455ab84a8cf63d16e2c9680a90
/lib/python2.7/site-packages/qtpy/QtTest.py
0f9116022347a02ea13a98853c3f5637d9614d2d
[ "Python-2.0", "Apache-2.0", "BSD-3-Clause", "LicenseRef-scancode-unknown" ]
permissive
wangyum/Anaconda
ac7229b21815dd92b0bd1c8b7ec4e85c013b8994
2c9002f16bb5c265e0d14f4a2314c86eeaa35cb6
refs/heads/master
2022-10-21T15:14:23.464126
2022-10-05T12:10:31
2022-10-05T12:10:31
76,526,728
11
10
Apache-2.0
2022-10-05T12:10:32
2016-12-15T05:26:12
Python
UTF-8
Python
false
false
954
py
# -*- coding: utf-8 -*- # # Copyright © 2014-2015 Colin Duquesnoy # Copyright © 2009- The Spyder Developmet Team # # Licensed under the terms of the MIT License # (see LICENSE.txt for details) """ Provides QtTest and functions .. warning:: PySide is not supported here, that's why there is not unit tests running wi...
[ "wgyumg@mgail.com" ]
wgyumg@mgail.com
605c20e941632384101698989840e8e57beaf478
2699b6508febc0fddde5520c5498000746eee775
/imgproc/geom_split.py
47574800ee0bd042904364dcdd187f4eb89e5a91
[ "LicenseRef-scancode-warranty-disclaimer" ]
no_license
DREAM-ODA-OS/tools
e1c71ddb65c255dc291a1e10778b461f32e1b017
66090fc9c39b35b4ef439d4dfe26ac1349d9c5f2
refs/heads/master
2021-01-19T02:13:59.489229
2017-11-18T10:27:25
2017-11-18T10:27:25
18,381,247
0
0
null
null
null
null
UTF-8
Python
false
false
7,050
py
#!/usr/bin/env python #------------------------------------------------------------------------------ # # Suggest splitting of the geometry to smaller rectangular blocks # # # Author: Martin Paces <martin.paces@eox.at> # #------------------------------------------------------------------------------- # Copyright (C) 2...
[ "martin.paces@eox.at" ]
martin.paces@eox.at
df79c3d5042124802eb231b6ae15ed13fe1b3bf9
a3bfa26c023e5e6217b381e25d8d616cdcd6e3ee
/msc/shop/migrations/0004_order.py
6f738448ba7d59c6d75361c188d5762bb13fca7f
[]
no_license
ojhadibyanshu92/my_awesomecart
41dce8d7b57160d905c4c3d9c0c88164c6ba4b0d
b74de8e0a9a0e005f1e3ca3935ebc1b3c60b481e
refs/heads/master
2020-07-04T19:34:47.161936
2019-08-14T16:52:47
2019-08-14T16:52:47
202,368,537
0
0
null
null
null
null
UTF-8
Python
false
false
884
py
# Generated by Django 2.0.5 on 2019-07-13 06:02 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('shop', '0003_contact'), ] operations = [ migrations.CreateModel( name='Order', fields=[ ('order_id',...
[ "sai@gmail.com" ]
sai@gmail.com
f9180010f6cff316dbc786841e27e46a6565ee75
ec1059f4ccea10deb2cb8fd7f9458700a5e6ca4c
/venv/Lib/site-packages/examples/abc/abc.py
27b729065b826f202b83ec26b36e758c735da946
[ "MIT", "Apache-2.0" ]
permissive
shivam675/Quantum-CERN
b60c697a3a7ad836b3653ee9ce3875a6eafae3ba
ce02d9198d9f5a1aa828482fea9b213a725b56bb
refs/heads/main
2023-01-06T20:07:15.994294
2020-11-13T10:01:38
2020-11-13T10:01:38
330,435,191
1
0
MIT
2021-01-17T16:29:26
2021-01-17T16:29:25
null
UTF-8
Python
false
false
747
py
#!/usr/bin/python # # What's the minimum value for: # # ABC # ------- # A+B+C # # From http://www.umassd.edu/mathcontest/abc.cfm # from constraint import Problem def solve(): problem = Problem() problem.addVariables("abc", range(1, 10)) problem.getSolutions() minvalue = 999 / (9 * 3)...
[ "vinfinitysailor@gmail.com" ]
vinfinitysailor@gmail.com
6edd178f9bf61ce3eac84d0198dc74e6b891734c
74f0c966d09786f447ad60bf837ea342cb405874
/neutron/plugins/common/constants.py
65a0fb3e55db95f4b01caaeff764212ec9cdec61
[ "Apache-2.0" ]
permissive
mrwukang/neutron
ad354d19a6ba4ec9a92b4e54d02cf1bbfd66e47e
ebdb2ad1213eaf09c6a3f061a94ff4453c3e7506
refs/heads/master
2020-04-11T18:24:09.601969
2019-01-02T15:42:05
2019-01-02T15:42:05
161,997,228
1
0
null
null
null
null
UTF-8
Python
false
false
2,066
py
# Copyright 2012 OpenStack Foundation. # 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 req...
[ "wukangmr@163.com" ]
wukangmr@163.com
ac2e7ac56ba8b1e425e6469aee56950fb953c604
5c335469a9198d61e2095293d06ce78e781726d0
/python/Semester 2/Tutorials/Tutorial 07/heapify.py
4c1b761a36b744566e7e0bd2a49531ea33d31211
[]
no_license
LaurenceGA/programmingProjects
5e203b450d11bff9cdb652661934ec3f797a6860
1fe3ea9a89be4c32cd68dd46da7a842b933c438b
refs/heads/master
2021-01-15T10:59:09.890932
2017-06-18T11:20:28
2017-06-18T11:20:28
36,592,569
1
1
null
null
null
null
UTF-8
Python
false
false
1,712
py
import random # Set up some Python Lists # <List creation reduced in size> shortlist = [0] + [random.randrange(0, 1000) for i in range(100)] longlist = [0] + [random.randrange(0, 10000) for i in range(10000)] superlonglist = [0] + [random.randrange(0, 1000000) for i in range(1000000)] def shiftdown(alist, j): sw...
[ "lorryarmstrong@gmail.com" ]
lorryarmstrong@gmail.com
321b5728100c986eaf738e26c6fbbb2d18727d20
d3efc82dfa61fb82e47c82d52c838b38b076084c
/Autocase_Result/TSZLMM/YW_TSZLMM_SZXJ_110.py
c4acee91dbb733e71013b5492546cc65ed540266
[]
no_license
nantongzyg/xtp_test
58ce9f328f62a3ea5904e6ed907a169ef2df9258
ca9ab5cee03d7a2f457a95fb0f4762013caa5f9f
refs/heads/master
2022-11-30T08:57:45.345460
2020-07-30T01:43:30
2020-07-30T01:43:30
280,388,441
0
0
null
null
null
null
UTF-8
Python
false
false
3,751
py
#!/usr/bin/python # -*- encoding: utf-8 -*- import sys sys.path.append("/home/yhl2/workspace/xtp_test/xtp/api") from xtp_test_case import * sys.path.append("/home/yhl2/workspace/xtp_test/service") from mainService import * from QueryStkPriceQty import * from log import * sys.path.append("/home/yhl2/workspace/xtp_test/m...
[ "418033945@qq.com" ]
418033945@qq.com
b754a02e84c5ba5f90204373e5f1110e57ba6819
a46a241888e09847ad8449de4ccef112d5928381
/0x0F-python-object_relational_mapping/2-my_filter_states.py
75f102d0148ba555ae55ecb8acba0d3e9becf209
[]
no_license
maleksal/holbertonschool-higher_level_programming
166ba33b30003debc021068b19c1d6e5cb3ab45d
08388ea7a18da21d3bb2ccba586984c166a7b7ec
refs/heads/master
2022-12-24T05:53:50.660730
2020-09-22T19:08:34
2020-09-22T19:08:34
259,385,998
1
0
null
null
null
null
UTF-8
Python
false
false
660
py
#!/usr/bin/python3 """ task 2 """ if __name__ == "__main__": import MySQLdb as mysql from sys import argv as args # assign args to variables mysql_username = args[1] mysql_password = args[2] db_name = args[3] argument = args[4] # connect to Mysql server database = mysql.connect( ...
[ "malek.salem.14@gmail.com" ]
malek.salem.14@gmail.com
177d689742046a6956991a1f385b60ba98eb3e3a
3a4f14d6638bc0c12c129ed73c6c3543437203df
/src/morphforge/core/mgrs/locmgr.py
be4a621350e058f8ced78e87b29dc9eeb117b8f1
[ "BSD-2-Clause" ]
permissive
unidesigner/morphforge
ef04ccb3877f069a0feea72eb1b44c97930dac44
510cd86549b2c2fb19296da2d4408ed8091fb962
refs/heads/master
2021-01-15T22:34:28.795355
2012-04-05T08:55:12
2012-04-05T08:55:12
null
0
0
null
null
null
null
UTF-8
Python
false
false
9,227
py
#------------------------------------------------------------------------------- # Copyright (c) 2012 Michael Hull. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # - Redistributions of sourc...
[ "mikehulluk@googlemail.com" ]
mikehulluk@googlemail.com
236c6f577b7717e29a6f4c63e89a6f83779c6932
f1a8e308c76866e2fba20401e6f1d5842dd60c46
/Algorithms and Data Structures Practice/LeetCode Questions/Trees/104. Maximum Depth of Binary Tree.py
0bd42e9d4544e097edead8adf4e719f232d9348d
[]
no_license
harman666666/Algorithms-Data-Structures-and-Design
6e5da0c1f701e7dfc7b045ecd1209463131d3fc7
483f0c93faca8ccaf038b77ebe2fa712f6b0c6bc
refs/heads/master
2021-07-14T10:11:27.588838
2021-07-07T01:47:42
2021-07-07T01:47:42
101,330,760
3
1
null
2018-10-15T04:52:07
2017-08-24T19:32:03
Python
UTF-8
Python
false
false
2,316
py
''' Given a binary tree, find its maximum depth. The maximum depth is the number of nodes along the longest path from the root node down to the farthest leaf node. ''' # Definition for a binary tree node. # class TreeNode(object): # def __init__(self, x): # self.val = x # self.left = None # ...
[ "harman.j.singh@hotmail.com" ]
harman.j.singh@hotmail.com
2d19f817c9950a712afbe90ca2aa086ea3d7c783
f2b3394a26ccfcd3680c3c094367d50339ad350b
/step8/palladium-config.py
d08c1b9efa9e29e989bdd0f7643a6be9ba6a9ca2
[]
no_license
naturalvision/tut-productive-ml
e4f6f7fb4dfb66aa37af7000c7640ca2b66b77ca
f0188b3e9dc47377b4e7696aae82d93a87adbe44
refs/heads/master
2023-06-25T03:24:43.385191
2019-12-11T13:05:01
2019-12-11T13:05:01
169,724,560
2
1
null
2023-06-09T12:10:32
2019-02-08T11:23:51
HTML
UTF-8
Python
false
false
1,267
py
{ 'dataset_loader_train': { '__factory__': 'palladium.dataset.CSV', 'path': '../step1/iris.data', 'names': [ 'sepal length', 'sepal width', 'petal length', 'petal width', 'species', ], 'target_column': 'species', ...
[ "daniel.nouri@gmail.com" ]
daniel.nouri@gmail.com
1617ad90bb2257091be24cb5ec9b6ab1832beb69
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03478/s264068566.py
f3c03f23788cefc5f4fc83864cd88afdb56f325f
[]
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
194
py
n, a, b = map(int, input().split()) ans = 0 for i in range(1, n+1): s = 0 for j in range(5): m = 10**j s += (i // m) % 10 if a <= s <= b: ans += i print(ans)
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
00b35104acd17eb37e20c5590f6572398a6e6be2
e7669caf1a4ce9053bb720bcfa2d85a4ee35ea65
/jade/basic/filters/DataFilter.py
c0c5b074d7d4cab2a5b763bbeab257dfd0e678c6
[ "BSD-3-Clause" ]
permissive
SchiefLab/Jade
f81190321df061f8317db869a64a7b87a13d664a
791d26892aacf21bca733aa9c1c6ea3f2be51958
refs/heads/master
2023-01-10T15:14:08.431470
2018-11-07T17:11:02
2018-11-07T17:11:02
41,381,258
7
2
NOASSERTION
2022-12-26T20:35:53
2015-08-25T18:39:20
Python
UTF-8
Python
false
false
472
py
class DataFilter: """ Class for storing filter information - such as not equal to values or cutoffs. Used to create custom queries for data. """ def __init__(self, name, type = "boolean"): self.name = name self.type = type self.required_tables = [] self.required_wher...
[ "jadolfbr@gmail.com" ]
jadolfbr@gmail.com
93ff3ae5a23bed40386cb098ff452cb4e9ab39a7
82ffae21bc27e91643bcc344c89d2684b1105e56
/evaluation/calibration.py
a3d5bc894e48b54f75c21b77514c6e8b6fe397a5
[]
no_license
liuchongwei/IB-INN
4f4df0a0f9295fa4d9cc900170d1b7b59217dd7e
440b75d5fbafec75842b18c9e7b6f03a8d76d16d
refs/heads/master
2023-04-08T11:51:39.745227
2021-04-15T17:25:30
2021-04-15T17:25:30
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,869
py
import numpy as np import torch import matplotlib matplotlib.use('Agg') import matplotlib.pyplot as plt def calibration_curve(model, data): pred = [] gt = [] correct_pred = [] max_pred = [] with torch.no_grad(): for x, l in data.test_loader: x, y = x.cuda(), data.onehot(l.cuda...
[ "lynton.ardizzone@iwr.uni-heidelberg.de" ]
lynton.ardizzone@iwr.uni-heidelberg.de
1824b0db9f4f3b2ac8fd33106ca013c8b1a155ad
898f8bb99295370187d90becf4437484de5bd175
/curriculum/admin.py
d31a8441cb5fc08246669827da5d9667aa9e0769
[]
no_license
babor99/sms
7fb800b564f4aade0f5104e16da680a7b0456920
d9d812f47b852d64a25334dc34efa984542468f3
refs/heads/main
2023-03-14T23:16:14.608273
2021-03-05T15:14:12
2021-03-05T15:14:12
344,840,951
0
0
null
null
null
null
UTF-8
Python
false
false
151
py
from django.contrib import admin from .models import * # Register your models here. admin.site.register([Standard, Subject, Lesson, Comment, Reply])
[ "islambabor947@gmail.com" ]
islambabor947@gmail.com
2689a29c57908255d8cefbebeb9c9d65bad4852c
68970799cb5d5adb3bef6958cbd60d20a2fd6b11
/urls.py
a2b8477100352e9e342f2bcc95b84e3db2667cea
[]
no_license
rgaudin/olga
8f645719776f17306974c7e5e5f7543180e1d663
9598c38b2a38e60a228156d9a73cb119a34f859e
refs/heads/master
2021-03-12T20:36:09.524565
2011-02-16T15:03:42
2011-02-16T15:03:42
1,373,412
0
0
null
null
null
null
UTF-8
Python
false
false
225
py
from django.conf.urls.defaults import * from django.contrib import admin admin.autodiscover() urlpatterns = patterns('', (r'^/?', include('scan.urls')), # django admin (r'^admin/', include(admin.site.urls)), )
[ "rgaudin@gmail.com" ]
rgaudin@gmail.com
3ced8b9eb58cd34771b54cd65554b70af4897c20
0f9a97d48a9f0179bcf1e3d80c08340096eb561e
/ДЗ-1. Арифметика/A. Дележ яблок-1.py
a10d2da42f67f38b6de89a9a43e4b8db3f49d6f0
[]
no_license
dmitryokh/python
96d8ec8c3f2d3428b90d510a1003aecf102b13d0
8efe761412779bed9a7516832d3152843088fa43
refs/heads/master
2020-04-24T03:08:42.865813
2019-02-20T11:41:52
2019-02-20T11:41:52
171,661,235
0
0
null
null
null
null
UTF-8
Python
false
false
55
py
a = int(input()) b = int(input()) c = b // a print(c)
[ "noreply@github.com" ]
dmitryokh.noreply@github.com
ec8e3d9b3f7d474d5a0de8a4c6249aef5e6a2b87
11e87c33ea7e97ac0826b27e1ccdaaf4d901431c
/examples/jax/mnist_classifier_fromscratch.py
10ff534c25f8703404a556c6c3def3dc394b5fdd
[ "MIT" ]
permissive
nagyist/deepx
3632cfd6ad64afcfe5af4faa2e8a14682051ab3c
07470e7a579a63427de1d5ff90b9fd00d3f54b61
refs/heads/master
2022-12-26T16:18:12.456053
2019-05-16T03:23:36
2019-05-16T03:23:36
85,385,719
0
0
MIT
2022-12-17T12:19:27
2017-03-18T08:06:49
Python
UTF-8
Python
false
false
3,774
py
# Copyright 2018 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
[ "sharad.vikram@gmail.com" ]
sharad.vikram@gmail.com
b3d96996ce2dc83a4c192568cbf0cc2fd9713796
05caf48bd067c050666026b75686f23d02327378
/490.the-maze.py
ff7e251702783116ec0ad6db79da19f0c396dc9f
[ "MIT" ]
permissive
elfgzp/Leetcode
3b6fa307c699fd5a1ba5ea88988c324c33a83eb7
964c6574d310a9a6c486bf638487fd2f72b83b3f
refs/heads/master
2023-08-21T23:11:38.265884
2020-10-17T11:55:45
2020-10-17T11:55:45
168,635,331
3
0
MIT
2023-07-21T03:50:43
2019-02-01T03:14:49
Python
UTF-8
Python
false
false
1,085
py
from collections import deque class Solution: di = [(-1, 0), (0, 1), (1, 0), (0, -1)] def hasPath(self, maze: List[List[int]], start: List[int], destination: List[int]) -> bool: start = tuple(start) queue = deque([start]) visited = {start} rows = len(maze) cols =...
[ "741424975@qq.com" ]
741424975@qq.com
58d4f19b3769525728ccf359cf2b2f554d88ff84
05505023def581aa0f6f9f518ec1b4efed2c4fd1
/Section 1/Section1/Video4_collections_6_comprehensions_set.py
470b4f01e54f143523c3eb07ba361911addf9bc2
[ "MIT" ]
permissive
PacktPublishing/-Python-By-Example
103f8413b57156a899a323f4f05e3a44ad11c00d
8f543afa07e190676d80bbb24bb2f5a1db44788d
refs/heads/master
2021-06-17T15:23:24.576640
2021-01-15T06:53:51
2021-01-15T06:53:51
134,667,649
9
6
null
null
null
null
UTF-8
Python
false
false
651
py
''' Created on Mar 31, 2018 @author: Burkhard A. Meier ''' # list of inventory with different upper and lower case strings inventory = ['car 1', 'CAR 2', 'tree', 'CAR 1', 'tomato PlAnt', 'bucket', 'BUCKET'] print(inventory) # list using for loop inventory_cap = [] for item in inventory: inventory_cap.append(...
[ "meghb@packtpub.com" ]
meghb@packtpub.com
d39f7999e9bafecd54ed6ef876507b5a06a09d8b
b638be5fd8ed665329203c531b1e179ae379e5f1
/lovehate/urls.py
b78516f381330bde9467714e01229d3e023bb258
[]
no_license
dengshilong/lovehate
9837199be8eac63fe3959499497c0ed390bbcb29
fd09f6057436b70c190ca9111fd9d40b30d3bc15
refs/heads/master
2021-01-12T11:08:30.937754
2016-11-26T09:18:34
2016-11-26T09:18:34
72,846,105
0
0
null
null
null
null
UTF-8
Python
false
false
1,364
py
"""server URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.10/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home') Class-bas...
[ "dengshilong1988@gmail.com" ]
dengshilong1988@gmail.com
bfeac1ccc9dcb251d5d3987fa930d606fdd2f6a5
74e73f4752235d70bc6cb8bcc187b9f00de9e5f5
/lcdtest.py
df37be1b3f231a9d8b137fa9d05f0e58b7466eac
[ "MIT" ]
permissive
vtt-info/Micropython-scheduler
a7bdb0faad6d7d1d5b5f6b48ca8051b88abaae42
6642a75af1c6688f7dd5e36efb6ae2e6762b00ec
refs/heads/master
2020-05-18T12:30:22.290356
2017-12-19T10:03:57
2017-12-19T10:03:57
184,410,748
2
0
null
2019-05-01T12:08:27
2019-05-01T12:08:27
null
UTF-8
Python
false
false
1,320
py
# lcdtest.py Demo/test program for MicroPython scheduler with attached LCD display # Author: Peter Hinch # Copyright Peter Hinch 2016 Released under the MIT license # Display must use the Hitachi HD44780 controller. This demo assumes a 16*2 character unit. import pyb from usched import Sched from lcdthread import LCD,...
[ "peter@hinch.me.uk" ]
peter@hinch.me.uk
a16ae511a27ab97f27c2cb367aea6cac9b9505cb
eebacbc58a1c99fb6e32f8cd56cac6e18947d3e7
/1.python_foundation/3.Use_list_and_tuple.py
a31ee22e0d62a0efe73cf4e428e3b83fe27f746e
[]
no_license
fzingithub/LearnPythonFromLiao
ad7f959d7e667a464f2b9a6b1cedfd0f08baaf8e
fcb0f2e7f905aca253b3986c4a1ceab6b82b7cae
refs/heads/master
2020-03-29T19:37:32.831341
2018-09-27T10:39:11
2018-09-27T10:39:11
150,273,212
0
0
null
null
null
null
UTF-8
Python
false
false
1,384
py
# -*- coding: utf-8 -*- """ Spyder Editor This is a temporary script file. """ #list and tuple 有序集合 #list 列表 classmate = [['frala','zhanglu'],'huasheng','xiakui'] print (classmate) print (len(classmate)) #3 print (classmate[0]) #索引定位 从0开始 print (classmate[0][1]) #看成二维 print (classmate[-1]) #索引-1直接获取最后...
[ "1194585271@qq.com" ]
1194585271@qq.com
169a4f28bc6dfa7f8fe0957c38200cc96bab2bc0
60b1f668808de2b82c2fcb62b07b45bb165219f2
/test/test_contact_inside_base_bulk.py
d0dfafa3814339d2e13e3072c18127e95a3cee09
[]
no_license
andersonmiguel/Egoi
6d37bf7a3a7555e764f7a6e792b3ef1c68fe8e20
b5f59f9b33ea94e170f4e7e26c6a37a78d2874c2
refs/heads/master
2022-06-21T07:18:44.920786
2020-05-04T17:29:02
2020-05-04T17:29:02
261,250,618
0
0
null
null
null
null
UTF-8
Python
false
false
3,381
py
# coding: utf-8 """ APIv3 (Beta) # Introduction Just a quick peek!!! This is our new version of API. Remember, it is not stable yet!!! But we invite you play with it and give us your feedback ;) # Getting Started E-goi can be integrated with many environments and programming languages via our REST API. We'v...
[ "integrations@e-goi.com" ]
integrations@e-goi.com
935e6aa85c72956205e0633af8e6fa5a596995e9
633d0b9205fd2eb051a3ee3f5356f456d60a7ecd
/lib/version.py
1bb2aabee25614a9bbc7efef7c210a3c9aa0e7d3
[ "Apache-2.0" ]
permissive
pombredanne/amara
7ac6fd8d67ef709bbe85b2d35ddd721c2c8837f7
09e9b472e9d189f460197dba3f8aaefc0d4571f7
refs/heads/master
2020-12-29T02:54:45.551601
2011-08-15T02:29:26
2011-08-15T02:29:26
null
0
0
null
null
null
null
UTF-8
Python
false
false
33
py
version_info = ('2', '0', '0a6')
[ "uche@ogbuji.net" ]
uche@ogbuji.net
c63c521fc9a9f716039ed4482ff1908f4beae31c
abb42b23d14f65e79732d73ac20aa041eb7e18e3
/compute_objective_th.py
9f2838c31dbbf08a536d31f544434a202c2d5b18
[]
no_license
leemengwei/Old-stuff-wrf
68387d5b2d43ab3de4bbfc067cf450fb80656fb4
c70ecb057231751f86db505f0d4450a0210b97e3
refs/heads/master
2021-09-14T17:30:24.395192
2018-05-16T17:41:21
2018-05-16T17:41:21
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,899
py
#Import defs from plot_basemap.py then compute objective function. import numpy as np from plot_basemap import WRF from plot_basemap import get_TS from plot_basemap import platform_judge from plot_basemap import get_speed_pressure_seq from plot_basemap import get_seq_error from plot_basemap import get_rain_obs_x_y_z fr...
[ "1099366685@qq.com" ]
1099366685@qq.com
248e8763ccdb762cad0f06f1474b2bac394f393d
8c691edc6613848fa826a20614d63b6a5c1b2fd7
/some_logic/interview/subject_system/admin.py
4fac5c6c26a6d6fed55f67f93f26d0873d774bb6
[]
no_license
bufubaoni/antitools
7b693e4be79b78e04816440fba72eb154cb34097
dd0b45ca6b9b5d27b61959c99a2bacde81ed6f12
refs/heads/master
2020-09-15T01:21:42.930811
2020-09-02T13:17:44
2020-09-02T13:17:44
66,334,289
24
25
null
2017-03-20T03:02:15
2016-08-23T04:55:37
Python
UTF-8
Python
false
false
362
py
from django.contrib import admin from subject_system.models import (Student, Subject, SubjectTime, Teacher, RelationStudentSubject) admin.site.register(Student) admin.site.register(Subject) admin.site.register(SubjectTime) admin.site.register(Teacher) admin.site.register(RelationStud...
[ "bufubaoni@163.com" ]
bufubaoni@163.com
1090cc0e0c584b0d34a46844ac707e87a5f1ffbe
f7807474bde9df6038d945567f58b7b128d36119
/zuoye2/templates_module/bk_fta_solutions/base.html.py
1347e68b98cdca9378ce3d34c32ef9a834848b9b
[]
no_license
mycyzs/fine
083014e6f06ed717c5952be384d92227358613de
629dad317f45eda20d57b702b8278a6c62b094a8
refs/heads/master
2022-09-29T08:01:55.515570
2019-06-18T13:18:50
2019-06-18T13:18:50
192,542,228
0
0
null
2022-09-16T18:03:34
2019-06-18T13:07:55
CSS
UTF-8
Python
false
false
15,484
py
# -*- coding:utf-8 -*- from mako import runtime, filters, cache UNDEFINED = runtime.UNDEFINED STOP_RENDERING = runtime.STOP_RENDERING __M_dict_builtin = dict __M_locals_builtin = locals _magic_number = 10 _modified_time = 1558925182.164 _enable_loop = True _template_filename = u'C:/Users/lenovo/Desktop/kaoshi/zuoye2/cw...
[ "mycyzs@163.com" ]
mycyzs@163.com
c786d902558d48c64079a81c5b988622e99d3a8e
b6345c4aea6a98a3aed9a2e99fb425ea535f4e80
/19.remove-nth-node-from-end-of-list.py
caac64238415a24a9d24317a3c9d808dbc2f8ffd
[]
no_license
ranbix666/leetcode-1
b94d256af9ddb9f1403891ed3229474fca92bea1
351b4d97db5afdaaa77d90deb24f5b16010d9fb5
refs/heads/master
2022-12-31T05:07:53.529302
2020-10-21T00:49:31
2020-10-21T00:49:31
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,460
py
# # @lc app=leetcode id=19 lang=python # # [19] Remove Nth Node From End of List # # https://leetcode.com/problems/remove-nth-node-from-end-of-list/description/ # # algorithms # Medium (34.50%) # Likes: 2144 # Dislikes: 160 # Total Accepted: 451.9K # Total Submissions: 1.3M # Testcase Example: '[1,2,3,4,5]\n2' #...
[ "you@example.com" ]
you@example.com
abafc256b31d15f7df84715295eceb13e78437ad
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p02960/s442330547.py
9dd44bded2f73eda157ee9c7d552a46831473b25
[]
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
335
py
S = input() mod = 10 ** 9 + 7 dp = [0] * 13 dp[0] = 1 for s in S: d = [0] * 13 if s == '?': for i in range(13): for j in range(10): d[(10*i + j) % 13] += dp[i] else: for i in range(13): d[(10*i + int(s)) % 13] += dp[i] dp = [x % mod for x in d] pri...
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com