blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
2
616
content_id
stringlengths
40
40
detected_licenses
listlengths
0
69
license_type
stringclasses
2 values
repo_name
stringlengths
5
118
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringlengths
4
63
visit_date
timestamp[us]
revision_date
timestamp[us]
committer_date
timestamp[us]
github_id
int64
2.91k
686M
star_events_count
int64
0
209k
fork_events_count
int64
0
110k
gha_license_id
stringclasses
23 values
gha_event_created_at
timestamp[us]
gha_created_at
timestamp[us]
gha_language
stringclasses
213 values
src_encoding
stringclasses
30 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
2
10.3M
extension
stringclasses
246 values
content
stringlengths
2
10.3M
authors
listlengths
1
1
author_id
stringlengths
0
212
56f1c883e8021be17c0479ddf05c910dcebf5f12
48e124e97cc776feb0ad6d17b9ef1dfa24e2e474
/sdk/python/pulumi_azure_native/compute/virtual_machine.py
dbc0cf23804156f5474f9678ad015327f98ecc81
[ "BSD-3-Clause", "Apache-2.0" ]
permissive
bpkgoud/pulumi-azure-native
0817502630062efbc35134410c4a784b61a4736d
a3215fe1b87fba69294f248017b1591767c2b96c
refs/heads/master
2023-08-29T22:39:49.984212
2021-11-15T12:43:41
2021-11-15T12:43:41
null
0
0
null
null
null
null
UTF-8
Python
false
false
62,321
py
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from .. import _utilities from...
[ "noreply@github.com" ]
bpkgoud.noreply@github.com
b83c0bf1980c39b0880fdc0f3f37a0e32f6fec7d
e00dda386747efa92083bdd8bb2e8d4445655a93
/second_stage/爬虫.py
5a80c57c4a19e38499563223add746a426744505
[]
no_license
shenlinli3/python_learn
6047e4e5bb3f34051d9436386974a5c98515651f
4d1586ed220b1cb2e2a715b34dfaafe5a1a7ed50
refs/heads/master
2023-05-02T17:35:48.267583
2021-05-23T13:13:03
2021-05-23T13:13:03
369,990,796
0
0
null
null
null
null
UTF-8
Python
false
false
1,902
py
# -*- coding: utf-8 -*- """ @Time : 2021/05/21 19:20 @Author : shenlinli """ import requests import re import threading import time if __name__ == '__main__': # print(len(list01)) # print(list01[len(list01)-1]) def get_content(head_html,list_): # tmp = [] # i = 0 ...
[ "shenlinli3@163.com" ]
shenlinli3@163.com
78e4d6e8879b9564aec075ff7b4915458fce4c85
9650a6dbb9ed3190f5596175197709a014d143fb
/app/student/routes.py
09080cdd63c0073a923bd0cbba1545bb7acff6d4
[]
no_license
nvhoan69/classsurvey
463530552a4fa392bcbf08c08f8f3e570027fc23
1f13564c95ecbb408ac511a75b12f2fd0576f8fa
refs/heads/master
2020-04-07T12:33:49.989026
2018-12-27T03:25:37
2018-12-27T03:25:37
158,372,314
0
0
null
null
null
null
UTF-8
Python
false
false
288
py
from app.student import blueprint from flask import render_template from flask_login import login_required from app.base.helpers import requires_access_level @blueprint.route('/') @login_required @requires_access_level('student') def index(): return render_template('student.html')
[ "boy98tx@gmail.com" ]
boy98tx@gmail.com
e98cfae6341abe6f37c3f1a0a2427707d096ce33
fb54704d4a6f9475f42b85d8c470e3425b37dcae
/medium/ex723.py
72d622c13c82343615c20230acd3754aceafcd33
[]
no_license
ziyuan-shen/leetcode_algorithm_python_solution
b2784071a94b04e687fd536b57e8d5a9ec1a4c05
920b65db80031fad45d495431eda8d3fb4ef06e5
refs/heads/master
2021-06-27T05:19:47.774044
2021-02-04T09:47:30
2021-02-04T09:47:30
210,991,299
2
0
null
null
null
null
UTF-8
Python
false
false
1,893
py
class Solution: def crush(self, board): for r in range(self.nrow): p1 = 0 p2 = 1 while p2 < self.ncol - 1: val = abs(board[r][p1]) while p2 < self.ncol and abs(board[r][p2]) == val: p2 += 1 if p2 - p1 > 2...
[ "ziyuan.shen@duke.edu" ]
ziyuan.shen@duke.edu
2b21d1be3b1a32f23cc147e1cc53f5d752653ca1
7d096568677660790479d87c22b47aae838ef96b
/stubs-legacy/System/Text/__init__.py
740ee3c117f9b4b8520efecb912e7b6b83d5b0bd
[ "MIT" ]
permissive
NISystemsEngineering/rfmx-pythonnet
30adbdd5660b0d755957f35b68a4c2f60065800c
cd4f90a88a37ed043df880972cb55dfe18883bb7
refs/heads/master
2023-02-04T00:39:41.107043
2023-02-01T21:58:50
2023-02-01T21:58:50
191,603,578
7
5
MIT
2023-02-01T21:58:52
2019-06-12T16:02:32
Python
UTF-8
Python
false
false
139,587
py
# encoding: utf-8 # module System.Text calls itself Text # from mscorlib,Version=4.0.0.0,Culture=neutral,PublicKeyToken=b77a5c561934e089,System,Version=4.0.0.0,Culture=neutral,PublicKeyToken=b77a5c561934e089 # by generator 1.145 """ NamespaceTracker represent a CLS namespace. """ # no imports # no functions # ...
[ "sean.moore@ni.com" ]
sean.moore@ni.com
eb41704997bf530667ea55f44b8a1c784eaeb6b5
871454bb6203d26f93c144cb8604e5c6276ab94b
/auth/demo/serializers.py
eae85b34749d46389279c7317dc7fb45f67302a9
[]
no_license
netology-code/DJ_code
1b13a51b7f85c1f35dcfb2b2d010fe2ded7eb297
a9b657aa6e2d9b3a9f4f4c4c120bb30e8802c042
refs/heads/master
2023-06-20T11:35:44.791530
2021-07-25T14:41:21
2021-07-25T14:41:21
388,563,577
3
44
null
null
null
null
UTF-8
Python
false
false
254
py
from rest_framework import serializers from demo.models import Adv class AdvSerializer(serializers.ModelSerializer): class Meta: model = Adv fields = ['id', 'user', 'text', 'created_at', 'open'] read_only_fields = ['user',]
[ "oz.sasha.ivanov@gmail.com" ]
oz.sasha.ivanov@gmail.com
a0f7d764e965e2a2a6b2307b6cffc09c9e55114e
b167407960a3b69b16752590def1a62b297a4b0c
/tools/project-creator/Python2.6.6/Lib/test/test_timeout.py
48fdc0108adcd87a0723272de8ee9ff835c08394
[ "MIT" ]
permissive
xcode1986/nineck.ca
543d1be2066e88a7db3745b483f61daedf5f378a
637dfec24407d220bb745beacebea4a375bfd78f
refs/heads/master
2020-04-15T14:48:08.551821
2019-01-15T07:36:06
2019-01-15T07:36:06
164,768,581
1
1
MIT
2019-01-15T08:30:27
2019-01-09T02:09:21
C++
UTF-8
Python
false
false
7,061
py
"""Unit tests for socket timeout feature.""" import unittest from test import test_support # This requires the 'network' resource as given on the regrtest command line. skip_expected = not test_support.is_resource_enabled('network') import time import socket class CreationTestCase(unittest.TestCase): ...
[ "278688386@qq.com" ]
278688386@qq.com
cc5975ce2fe8ed7d1317b4a0746ef95a8ea0ff6a
ca65de008f386a09872029b8da2f70954a4ab0b6
/pod_cr_to_jira/pod_sunset.py
92fdd26a580288edd49e4b228529c3c9e500d816
[]
no_license
KevinJMcGrath/CloudFunction-SFDCtoJIRA
0dbab8ff2001e627e008f80669ebe89bea31e262
cef2dccbeaf93e37a66e319840ab91513f6dd59f
refs/heads/master
2023-05-24T19:19:41.535166
2019-12-05T20:00:59
2019-12-05T20:00:59
221,784,923
0
0
null
2023-05-01T21:16:33
2019-11-14T20:53:00
Python
UTF-8
Python
false
false
425
py
import sfdc_data class Sunset2JIRA(sfdc_data.POD_ChangeRequest): def __init__(self, inbound_json, pod_data): super().__init__(inbound_json, pod_data) def get_description(self): pass def get_sre_service_catalog(self): return "14840" # Pod sunset def build_jira_tree_sunset_pod(...
[ "kevinmcgr@gmail.com" ]
kevinmcgr@gmail.com
20e4571064a0dca967d5b425fe4fcb10d3139d26
bbedd09faaec5be15aeeac918c2768d530773167
/devel/github-cli.watch.py
0b9cf7d8175335c172f9354db87bb5006f6c0c01
[]
no_license
pmiess/apps.0install.net
86110be0e4d5ea72ea7643676a9d784822e44e8b
637df1b289cc29830a0dd8158d83ae4e0739f13f
refs/heads/master
2021-07-13T11:04:27.598221
2021-02-20T08:03:17
2021-02-20T08:03:17
230,488,084
1
0
null
2019-12-27T17:41:49
2019-12-27T17:41:48
null
UTF-8
Python
false
false
302
py
import sys, os sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), '..'))) from github import releases releases = [{ 'version': release['tag_name'].strip('v'), 'released': release['published_at'][0:10] } for release in releases('cli/cli') if not release['prerelease']]
[ "bastian@eicher.net" ]
bastian@eicher.net
970ae72a1bff7a527d6201408d4040ea5d6d4ef7
11b1e5c1542bd6c160562bcf80090f88edf80606
/learning_logs/models.py
461c9a29683928dc87d0ef3e3a1a54bc7d3f754c
[]
no_license
clipklop/learning-log
b41fec2d99cc2d6d0a60263fdce0616ad61fe6d0
19d148da77db0acdd057d0ceac965768a234bc7f
refs/heads/main
2023-04-23T23:09:42.168350
2021-05-10T21:35:38
2021-05-10T21:35:38
355,488,685
0
0
null
null
null
null
UTF-8
Python
false
false
834
py
from django.contrib.auth.models import User from django.db import models class Topic(models.Model): """A topic the user is learning about.""" text = models.CharField(max_length=200) date_added = models.DateTimeField(auto_now_add=True) owner = models.ForeignKey(User, on_delete=models.CASCADE) def...
[ "mishayartsev@gmail.com" ]
mishayartsev@gmail.com
8a75284ae8a12edc15e07c5ea68562b0c8a4b9ca
a8befc6d4f8f490557a980cc48412209b27f8a1b
/sortnew.py
206d33ebcaa64f2c47d58859cb6a8a2c87b29987
[]
no_license
Artimeo/ObjectTracker
3aba52fead664c8440e7eb5e5cbf861bfc6b28c3
db5c72afd294946484fd2ce50d259dcdcdf629ee
refs/heads/master
2020-07-30T08:30:41.406750
2020-06-28T03:40:46
2020-06-28T03:40:46
210,156,044
0
1
null
2019-12-12T21:29:19
2019-09-22T13:56:36
Python
UTF-8
Python
false
false
10,429
py
""" SORT: A Simple, Online and Realtime Tracker Copyright (C) 2016 Alex Bewley alex@dynamicdetection.com This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the Li...
[ "artemvb98@mail.ru" ]
artemvb98@mail.ru
cc136bbd8dbc3a90976b3a10a49b70b30674f481
42a7abc31b447d1bfa5db19d5e047c475a00ca81
/kattis/notamused/notamused.py
0ae49903e7493da97a4cc2c36b69f2ca38bdce94
[]
no_license
jonathantsang/CompetitiveProgramming
f01f3727e49e03038a981871f29234fccfac0e7c
05d49ca91ac2a4d414dbb38b01266962ce68f34a
refs/heads/master
2022-12-12T11:52:13.327425
2022-12-07T20:37:37
2022-12-07T20:37:37
121,400,994
2
0
null
2020-10-08T19:24:10
2018-02-13T15:43:07
Python
UTF-8
Python
false
false
991
py
import sys day = 1 first = True for line in sys.stdin: if line == "OPEN\n": if not first: pass print("") amt = {} # name -> amt entered = {} # name -> entered line = sys.stdin.readline() while line != "CLOSE\n": dir, name, tim...
[ "noreply@github.com" ]
jonathantsang.noreply@github.com
f28a75ab4606d2a42c72e2d094abbc51f676e3ce
c013967c706af596ef75c066623b5db5efdcd730
/Numpy/3_NumPy_Array_Indexing.py
d506889f609f49e640b761226be41017c016cf93
[]
no_license
sayeed007/PythonProgramming
7140277f421cf82b36a742dcad823a7f6b40571e
8fff7c2e47fba1143b1fcb29bbebad24ebb67566
refs/heads/master
2023-05-05T12:39:40.303345
2021-05-24T07:01:15
2021-05-24T07:01:15
369,391,597
0
0
null
null
null
null
UTF-8
Python
false
false
556
py
import numpy as np #Accessing 1-D Array arr = np.array([1, 2, 3, 4]) print('\n2nd element of the array: ',arr[1]) #Accessing 2-D Array arr = np.array([[1,2,3,4,5], [6,7,8,9,10]]) print('\n2nd element on 1st dim: ', arr[0, 1]) print('\n5th element on 2nd dim: ', arr[1, 4]) #Access 3-D Arrays arr = np.array([[[1, 2, 3...
[ "sayeedhossenb@gmail.com" ]
sayeedhossenb@gmail.com
abb45129376c8aff09878de6bb77aa4cf1604221
d1f32ec9b972c38951939978f12b3ad20db6a96c
/tests/sentry/api/endpoints/test_project_release_token.py
bf7405afdb234397c4020f78be36bcd22a603b53
[ "BSD-2-Clause" ]
permissive
domyhero/sentry
b69f4a4fec38d6ed7adc199f24a866528e92b87e
a418072946ebd2933724945e1ea2a833cf4c9b94
refs/heads/master
2021-01-01T16:21:44.227712
2017-07-19T22:32:00
2017-07-19T22:48:39
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,106
py
# -*- coding: utf-8 -*- from __future__ import absolute_import from django.core.urlresolvers import reverse from sentry.models import ProjectOption from sentry.testutils import APITestCase class ReleaseTokenGetTest(APITestCase): def test_simple(self): project = self.create_project( name='fo...
[ "noreply@github.com" ]
domyhero.noreply@github.com
586245e4da8640e6db51aa6f0662bd5539ff44b8
46b01e5fabde9907a6da6b381432b7160d8b5d6a
/djangonautics/articles/migrations/0001_initial.py
0c627be97343529d36981d7850572e3d1b88781a
[]
no_license
pankaj4653/DropPage
e279bb126cac7608e927bdb8a20e61c6371c0d57
71ace501db3046d304f07b72f0af3e989b84de7f
refs/heads/master
2022-06-05T08:27:33.681276
2020-05-04T15:24:24
2020-05-04T15:24:24
259,105,033
0
0
null
null
null
null
UTF-8
Python
false
false
1,077
py
# -*- coding: utf-8 -*- # Generated by Django 1.11.29 on 2020-04-23 16:18 from __future__ import unicode_literals from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ migrati...
[ "pankaj.k4653@gmail.com" ]
pankaj.k4653@gmail.com
e54468d3299a995c569031590c557b334fde451e
da73b2400c3626a1b83c7f4113ca12bf750c360b
/mariannaFervenza/assignments/treesBFS/lc117/lc117.py
3359e1daa927b62a9fd2ff9528f82e1b971bbc4f
[]
no_license
iamserda/cuny-ttp-algo-summer2021
963240259c3d63d3135d3aec22bfd6f59c71224f
2dc2f43b1c3a9e4e2e122892ed07d24401a7e92e
refs/heads/main
2023-06-04T18:21:09.575343
2021-06-27T16:56:18
2021-06-27T16:56:18
372,972,421
1
0
null
2021-06-01T22:06:29
2021-06-01T22:06:28
null
UTF-8
Python
false
false
1,314
py
# Problem Statement # # Given a binary tree, connect each node with its level order successor. The last node of each level should point to a null node. from __future__ import print_function class TreeNode: def __init__(self, val): self.val = val self.left, self.right, self.next = None, None, Non...
[ "48258007+mariannauf@users.noreply.github.com" ]
48258007+mariannauf@users.noreply.github.com
63503e99898647b7c9dd67c1021672bf573a4b73
2ca69435ba9e35b02134c34bb13a5b9bc9762611
/Testing.py
64c7e05c28462e23a140ff04f99ecf412552e6c9
[]
no_license
gauraviitp/python-programs
40219921e61811461a26dfa57ee95852576b3439
e378a1af212b5fba11d871821ea7aeea95e0e061
refs/heads/master
2021-11-13T06:57:32.390172
2021-10-24T21:29:47
2021-10-24T21:29:47
248,015,194
0
0
null
null
null
null
UTF-8
Python
false
false
1,393
py
import unittest import parameterized class Person: def __init__(self, firstName, lastName): self._firstName = firstName self._lastName = lastName @property def FirstName(self): return self._firstName @FirstName.setter def FirstName(self, value): self._firstName =...
[ "cgauraviitp@gmail.com" ]
cgauraviitp@gmail.com
e4389b0ae6b1aae3657f515aeabd857613ee7d5a
4aa261722f6dd3b4e6143c8e215bd4710eb54cc2
/game_state.py
8c7df9c68ff70472c8644b07a26a63218538156d
[]
no_license
anhngml/DeepRL
16836eaad0c277b95bd1a68f8df4e6bbb1da5901
7f79f3addc5550b561d6ae22ce9411cc81d45ade
refs/heads/master
2020-03-06T23:25:25.663417
2018-04-13T02:37:54
2018-04-13T02:37:54
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,356
py
# -*- coding: utf-8 -*- import sys import game.mygym as gym from constants import VISUAL from constants import ACTION_SIZE class GameState(object): def __init__(self, rand_seed, display=False, no_op_max=7): self.env = gym.make(visual=VISUAL, game='MatWorld') self.state_size = self.env.observation_...
[ "nv.anh@outlook.com" ]
nv.anh@outlook.com
9b5aaab85a6431eabfdbc4712d724754b352aab9
5278d00837e48593439de44d4065fcc061b49658
/old_versions/Trial_8/main_machine.py
35c0742c12901172bc69948638d522ae419642a2
[]
no_license
alamhanz/cows_and_bulls_project
572c5b5e042789ef56ef56e572e33f363e755c10
1fcd0479865f7de33a2de490bb2f6fdb236e14e4
refs/heads/master
2021-12-21T18:41:47.958593
2021-12-18T00:38:48
2021-12-18T00:38:48
79,702,677
0
0
null
null
null
null
UTF-8
Python
false
false
6,608
py
import pandas as pd import math import numpy as np from itertools import permutations as permut import random def data_val(pri,pos,co): dv=pd.DataFrame({'element':pos.index,'pos_prob':pos.values}) dv['pri_prob']=dv.element.apply(lambda x : np.product(pri[list(x)].values)) # dv.to_csv('data_value_'+str(co)+'.csv') ...
[ "alamhanz@gmail.com" ]
alamhanz@gmail.com
9a95408ddb99dba57f390ebdd1dcd71f030f7998
9ffb003a9211e49e7497223c96fcd9ed8a5889df
/random_music_play_feature.py
623809aa9923937eb1f3285b2a0dea4ee715d384
[]
no_license
hero-007/J.A.R.V.I.S---Intelligent-Personnel-Assistance
14f006d7bf773dec7009bd53f7190845baab8d40
a64917c719986626bdf1297288ab006968646cfd
refs/heads/master
2021-05-13T13:52:02.328747
2020-02-17T06:01:45
2020-02-17T06:01:45
116,721,083
2
2
null
null
null
null
UTF-8
Python
false
false
317
py
""" This module is used to play a random music file from the selected directory when user ask to play a random song """ import os import random as ran import webbrowser as wb def play_random_music(): song_list = os.listdir('E:\\Music') i = ran.choice(song_list) wb.open('E:\\Music\\'+i) return
[ "akhil1998tiwari@gmail.com" ]
akhil1998tiwari@gmail.com
1e1a748b19f0731d23e5fced0230d6c28117b9d0
0ffd9743f764fd77fbe57feb9bc80689ed367757
/FDP/aula3/notafp.py
39cd22dd69ab4ecdf1ebf9bce2562947a1b1d5f9
[]
no_license
joanaritacouto/fdpython
7df5528fc2a57fd654ffbb5cad5460c49fb0ff65
41904318a363668e944864009fa7dec8ea1e6522
refs/heads/master
2021-05-13T13:55:27.847342
2018-01-08T20:23:46
2018-01-08T20:23:46
116,722,018
0
0
null
null
null
null
UTF-8
Python
false
false
221
py
x= float( input('API: ')) y= float( input('ATP: ')) z= float( input('EP: ')) n= 0.30*x + 0.30*y + 0.40*z print('nota a fundamentos de programação', n) if n >= 9.5: print ('aprovado') else: print ('reprovado')
[ "joanaritacouto@ua.pt" ]
joanaritacouto@ua.pt
ed0bc2b1e24ae94e6ff2082c9187ea5f0ebfa45d
052638edbfb9e135060cefa1f56dc33d2e30acfd
/com/swordfall/trade/us/UstockDaily.py
cfa7391d3ff248e52c1da553ce01b64518bd3ff5
[]
no_license
gadoid/optiontrade
ed95ce6d06a3d6dd0c251df32b8c5439e18530c0
7d9e5ea0b1424a199718cb79071dbc363cc1748a
refs/heads/master
2022-11-21T07:57:51.280175
2020-07-26T15:50:17
2020-07-26T15:50:17
null
0
0
null
null
null
null
UTF-8
Python
false
false
108
py
import akshare as ak stok_us_daily_df = ak.stock_us_daily(symbol="GOOG", adjust="") print(stok_us_daily_df)
[ "2506597416@qq.com" ]
2506597416@qq.com
867d5159714fc1bdfe4936c0d762e1d80f98b05e
39de5d8fa676e5b8373ae21c3cc04a4e6271b2a3
/OpenCv/9- Color detection.py
eaf026ec852b875a84aafd14a26eea3987b6f8ce
[]
no_license
ENG-MohamedEssam/Python-Image-processing-
bbe198aed50e8c532aa34702730efb2e761b67c1
7755090daccbb8160d4e2b54ded51b0e40fe645b
refs/heads/main
2023-08-15T05:28:30.378897
2021-09-29T22:52:47
2021-09-29T22:52:47
411,848,926
1
0
null
null
null
null
UTF-8
Python
false
false
1,909
py
import cv2 import numpy as np def empty(a): # it does nothing pass path = "D:/Deep Learning/OpenCv/cards.jpg" cv2.namedWindow("TrackBars") # creating new window by the name track bars cv2.resizeWindow("TrackBars",640,240) # initialize window for resizing ( must be the same name ) cv2.createTrackbar("Hue Mi...
[ "noreply@github.com" ]
ENG-MohamedEssam.noreply@github.com
795ce022a7581a0756870eed38d850db7139a756
1a03c112ad5d75647074ee262575ca5a45614514
/pharmacy-cybo-com-spider/drug_store/drug_store/utils_drug_store_au/urls_cleaning_script.py
f2f6557c002efc468faea83f084bd91614e92c26
[]
no_license
mtaziz/scrapy-example-spiders
405da3df8f5ead1755e42a063ad58a4dfac1070b
7b5abe94826daf4af871201e42594c9be8e98bf8
refs/heads/master
2021-01-10T06:47:39.813405
2016-03-20T08:31:36
2016-03-20T08:31:36
54,181,548
0
0
null
null
null
null
UTF-8
Python
false
false
3,692
py
#!/usr/bin/env python import os import sys # from utils_drug_store_au import urls import csv import csv with open('urls-cleaned.csv','w') as csvfile: csvReaderData = csv.reader(csvfile) header = csvReaderData.next() linkIndex = header.index("store_url") empty_list = [] for row in csvReaderData: stor...
[ "mdtariqaziz@gmail.com" ]
mdtariqaziz@gmail.com
f2eb89ab89f782e5de8856cfe928f3c9726c943b
bbf1bab74002e3d5cfa087f49bdf27d1c71bf722
/model_train_VGG.py
6db097a87d8fb9b8fb29712d6a1c1019c6c0e813
[ "MIT" ]
permissive
terryli710/SIIM-ACR-Pneumothorax-Classification
2318cb73630503b9866453b7f50b9cfa7571b98b
8b278a9885b71c919d7064b2df42863b53f7adf3
refs/heads/master
2022-11-17T23:28:04.978983
2020-07-06T19:27:55
2020-07-06T19:27:55
260,593,753
0
1
MIT
2020-05-18T16:42:44
2020-05-02T01:42:52
Jupyter Notebook
UTF-8
Python
false
false
2,297
py
import numpy as np import pandas as pd import tensorflow as tf from imblearn.under_sampling import RandomUnderSampler from sklearn.model_selection import train_test_split from sklearn.preprocessing import OneHotEncoder from sklearn.metrics import confusion_matrix from tensorflow.keras.applications import VGG16, Incepti...
[ "terryli710@users.noreply.github.com" ]
terryli710@users.noreply.github.com
8ded604c3a0a577d34a89c7a8f45ef45a66e6596
c1fe6cf0dc4e86d32cd0825eace7aa499f2a2cdd
/stepik/algorithms_course/greedy/huffman/naive_encoding.py
6e51c079cc2980e927db0d9548dc0290f5757593
[]
no_license
eridanletalis/Python
ff53aff90bddf72bb16a6de6be518457823d03ef
dbef23d1a4242a437334411bf5a657cc9d6ea0b6
refs/heads/master
2022-01-29T19:34:45.205834
2019-07-24T19:39:45
2019-07-24T19:39:45
null
0
0
null
null
null
null
UTF-8
Python
false
false
809
py
def set_code(symbol, level, d): if level == 0: d[symbol] = '0' elif level < len(d.keys()) - 1: d[symbol] = '1' * level + '0' else: d[symbol] = '1' * level def get_symb_codes(s): d = {} symb_count = [] for i in s: if not d.get(i): d[i] = 1 el...
[ "vaikusssttark@gmail.com" ]
vaikusssttark@gmail.com
c5fecb5038b9d59752653477be97a8b421e32895
f69565187e60a66a2228f17e00a48c03861477bf
/11/remote_proxy/gumball_machine.py
862ada0ea001ecf19fd1f5dca70a7000bbaef134
[]
no_license
luoshizhi/design_pattern_python
c196e209cc9c57e124342706691a65ee49ed0d13
1d4e4f1fda176fd77935df168fcae47b12ec7377
refs/heads/master
2020-11-24T18:47:47.089110
2019-05-14T05:06:51
2019-05-14T05:06:51
null
0
0
null
null
null
null
UTF-8
Python
false
false
353
py
class GumballMachine(object): def __init__(self, count, location=''): self.count = count self.location = location self.state = 'Init' def get_report(self): report = dict() report['count'] = self.count report['location'] = self.location report['state'] = ...
[ "kailizhu@KailideMacBook-Pro.local" ]
kailizhu@KailideMacBook-Pro.local
ea2aa046e4ada2f0e7f4f8eabf7b353f0795682a
98c6ea9c884152e8340605a706efefbea6170be5
/examples/data/Assignment_3/mtledn001/question1.py
d2992358e9f1fd6e7a51fafadabd786f4caafacd
[]
no_license
MrHamdulay/csc3-capstone
479d659e1dcd28040e83ebd9e3374d0ccc0c6817
6f0fa0fa1555ceb1b0fb33f25e9694e68b6a53d2
refs/heads/master
2021-03-12T21:55:57.781339
2014-09-22T02:22:22
2014-09-22T02:22:22
22,372,174
0
0
null
null
null
null
UTF-8
Python
false
false
183
py
# Draw a rectangle h = eval(input('Enter the height of the rectangle:\n')) w= eval(input('Enter the width of the rectangle:\n')) for i in range(1,h+1): print("*"*w)
[ "jarr2000@gmail.com" ]
jarr2000@gmail.com
005513c5d355e246e99ab9ef78a2c5bd27647d5f
f0d39a5f4fbc032a7a64fe732a775f3a4524eae9
/articles/migrations/0001_initial.py
9e0e2cf328ce1cfb529952f82efce6c1a6d95ebc
[]
no_license
tatum-kang/django_orm_crud
e4de2d6df251112272324160120936a5ccbe65aa
1be1df24fda7f4c455d97f4cbc8ce6c167a4c61d
refs/heads/master
2023-04-27T12:05:37.477712
2019-09-11T00:10:59
2019-09-11T00:10:59
null
0
0
null
null
null
null
UTF-8
Python
false
false
609
py
# Generated by Django 2.2.4 on 2019-08-21 07:58 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Article', fields=[ ('id', models.AutoField(...
[ "heewkk@gmail.com" ]
heewkk@gmail.com
b8edec83cac5655dfa82d92a6846f7dd8dad93bd
706d9d1531fdb1eed611000d60b391421fec68b6
/halker/wsgi.py
42774f80cabc04cbfb2f1f68d2b42a5cdb459c9a
[]
no_license
xhuang0305/halker
0c4be93dfa4690312d9132b1a3db88665c145cba
8a31f63efdd84d5d1ccaf62e6e8a2d7130bb0c9c
refs/heads/master
2021-01-21T23:20:15.276510
2017-06-26T06:28:54
2017-06-26T06:28:54
95,226,157
0
0
null
null
null
null
UTF-8
Python
false
false
390
py
""" WSGI config for halker project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/1.11/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault("DJANGO_SETTI...
[ "13366865475@163.com" ]
13366865475@163.com
839c40ab38b010f46d4212c50bea2d8e27bd9408
aa336590a6ca731efa94a27ed8199e32fec61694
/visual/controls.py
7983ca9c63924d3a24c7995373729494a4446e98
[]
no_license
Incatec/visual
a9d5ce73ec869abab5c639f0d850885088f74c42
b6ea1862442c866a018d90bae4d606380b6f334d
refs/heads/master
2021-05-05T16:35:02.961947
2017-09-12T08:28:28
2017-09-12T08:28:28
103,243,417
0
0
null
null
null
null
UTF-8
Python
false
false
18,622
py
from visual import * __all__ = visual._fix_symbols( globals() ) + [ 'controls','button','toggle','slider','menu'] # Bruce Sherwood, March 2002 # Import this module to create buttons, toggle switches, sliders, and pull-down menus. # See test routine at end of this module for an example of how to use controls. las...
[ "jleuven@denc.nl" ]
jleuven@denc.nl
52a14bcf8d67657749c1e9d1a0a544f03ad604c3
6644e20a38f22b2b0842981b9b4855fb08bb0113
/exer706.py
d303559ba7fbd7a9ddd388a86fe41bc3f199b33d
[ "MIT" ]
permissive
profnssorg/valmorMantelli1
506acb35243aeea24701d70e369280f064a3024e
a9a42218b54da208e834f333aa5242d14639b28b
refs/heads/master
2020-04-11T13:55:03.354177
2019-01-18T20:28:33
2019-01-18T20:28:33
161,834,724
0
0
null
null
null
null
UTF-8
Python
false
false
941
py
###Titulo: Leitor de string ###Função: Este programa lê três strings e substitui na primeira os caracteres da segunda e terceira ###Autor: Valmor Mantelli Jr. ###Data: 08/01/2019 ###Versão: 0.0.13 # Declaração de variáveis f = "" s = "" t = "" x = "" p = "" y = 0 #Entrada de dados f = input("Digite a primeira...
[ "noreply@github.com" ]
profnssorg.noreply@github.com
bf9ac676fda8c12247e11d42f280ef24ad960328
18138fb7c6a5dbd0433c55e73a3854f135532735
/venv/Scripts/django-admin.py
bf96f86d8ef3fa0c807365ba6041fd4c5756ab25
[]
no_license
sushmoyr/DjangoTestSite
ab463d657790b3503214b615204b5cabca777de8
cf974b151e2055213c9f560e9562e92a21d61048
refs/heads/master
2023-03-30T07:38:34.822321
2021-03-13T20:33:31
2021-03-13T20:33:31
345,980,370
0
0
null
null
null
null
UTF-8
Python
false
false
703
py
#!D:\Projects\PycharmProjects\DjangoTestSite\venv\Scripts\python.exe # When the django-admin.py deprecation ends, remove this script. import warnings from django.core import management try: from django.utils.deprecation import RemovedInDjango40Warning except ImportError: raise ImportError( 'django-adm...
[ "sushmoyr@gmail.com" ]
sushmoyr@gmail.com
a168446768f131657e4f5d8eb57bc9596b851165
e8534ad155c67cc2250f090c11cd8640e3a9e220
/dags/oranges/touch.py
4e4aeac8210c5873c415085010e2f0fa7b1520e2
[ "Apache-2.0" ]
permissive
noelmcloughlin/airflow-dags
323cd3beec7034d9289c459779052544c7095f54
a12f76846d5cbd7497066e6e87f01987c6913eda
refs/heads/master
2023-07-23T12:38:34.661335
2021-08-27T16:23:09
2021-08-27T17:24:49
null
0
0
null
null
null
null
UTF-8
Python
false
false
711
py
from datetime import timedelta from airflow import DAG from airflow.operators.bash import BashOperator from airflow.utils.dates import days_ago args = { 'owner': 'airflow', } with DAG( dag_id='touch_oranges', default_args=args, schedule_interval='0 0 * * *', start_date=days_ago(2), ...
[ "nmcloughlin@gbetechnologies.com" ]
nmcloughlin@gbetechnologies.com
630d633e54bde08603ff18ad244d1a51ed359ea7
9cabab3a1e28df6008dd8f9d8a67e17aa72688b9
/src/21.py
344d94c7795f1d1599245165c9beadf15ff9c884
[ "MIT" ]
permissive
mmehas/advent_of_code_2020
00877f344dc7e5ba7c107277251d22ada717e1eb
945db49ead8595e32ec37515605cb14b9f2d21d8
refs/heads/main
2023-02-10T23:41:54.695468
2020-12-28T06:16:26
2020-12-28T06:16:26
324,465,621
0
0
null
null
null
null
UTF-8
Python
false
false
1,366
py
from collections import defaultdict from sys import stdin stdin = open("input.txt", "r") product_cnt = defaultdict(int) all_products = set() solution = dict() ing2p = dict() for line in stdin: products, ingredients = line.replace(')', '').split('(contains') products = list(map(str.strip, products.split())) ...
[ "mishka.okunev@gmail.com" ]
mishka.okunev@gmail.com
e88c2e150d4d4d9f1fee48c6f67a8495f4ed9ccc
d2cb388a385598489e36817afb15502596780dc2
/hedgehog/test_bayes_net.py
4ac37b9ca124ff2baad63ef64502765f00f3f245
[ "MIT" ]
permissive
dormanh/hedgehog
2ab5bd0fe58e8e8d4fb6410946a532c4a5d09f7c
6ebb6fad04dcae810e16768cfc90e6a12bbc5cd4
refs/heads/master
2023-03-13T05:45:42.648064
2021-02-28T13:49:20
2021-02-28T13:49:20
343,113,432
0
0
MIT
2021-02-28T13:34:20
2021-02-28T13:34:19
null
UTF-8
Python
false
false
3,524
py
import copy import importlib import inspect import math import random import numpy as np import pandas as pd import pytest import hedgehog as hh def check_partial_fit(bn): """Checks that partial_fit produces the same result as fit.""" bn_partial = copy.deepcopy(bn) # Fit the parameters of the first BN...
[ "maxhalford25@gmail.com" ]
maxhalford25@gmail.com
654be840bdab7182e31af5f158101d2dbe2f1fc4
0eb6287d0b528ac05b280dd809c400d10c7405b2
/FCSApp/admin.py
0ae4222ed45535ba2c121d3b99ce3b97313e6437
[]
no_license
Tushar25022001/FriendRecommendationSystem
8a7f948529e03f1b1956f8344e48cf821157fb0b
92efe9265cd379ed671f704e1e30d360c19fbb75
refs/heads/master
2023-08-18T08:32:38.803086
2021-09-28T19:51:42
2021-09-28T19:51:42
411,267,294
0
0
null
null
null
null
UTF-8
Python
false
false
173
py
from django.contrib import admin from .models import Customer,FriendRelation admin.site.register(Customer) admin.site.register(FriendRelation) # Register your models here.
[ "tushar25022001@gmail.com" ]
tushar25022001@gmail.com
bcd143bd74bd9fb5b9f3899d44fd4936f321c139
bbc1b8bc5d86b57411b9cc3383ae353fb6975600
/migrations/versions/adb2e3b44f54_.py
227934f73295565ee9ebcb7ac8cccee20e10bb92
[]
no_license
aliasxu/MyFlasky
7eed55fb6e9056b54c5ea837d4f127a1cb421899
7db415050fe0636bfee7f7429ac3a836c0406683
refs/heads/master
2021-01-23T03:05:08.148732
2017-03-30T08:24:06
2017-03-30T08:24:06
86,047,822
3
1
null
null
null
null
UTF-8
Python
false
false
1,299
py
"""empty message Revision ID: adb2e3b44f54 Revises: 1aa9121dfa83 Create Date: 2017-03-29 11:13:42.072000 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = 'adb2e3b44f54' down_revision = '1aa9121dfa83' branch_labels = None depends_on = None def upgrade(): # ...
[ "1632789143@qq.com" ]
1632789143@qq.com
c449d624c14a8cf8af4cb4f3ff485b83ca328ebe
a69d407de902fab04d69d2411c0c8cd373f3a337
/NLP_classification/multi30k/reformat_multi30k.py
024a7f32266681048184a23568d4fa9087e77243
[ "Apache-2.0" ]
permissive
matejgrcic/outlier-exposure
60d8840b9ca18eba565ae0daf843ba0c6ebd456d
ad2b964d6a37d9fb2e08272cb2df023f181bf5c5
refs/heads/master
2022-06-19T22:49:28.411957
2020-05-08T17:12:43
2020-05-08T17:12:43
262,251,013
0
0
Apache-2.0
2020-05-08T07:02:17
2020-05-08T07:02:16
null
UTF-8
Python
false
false
875
py
import numpy as np import nltk.data import os import csv train_path = './orig_data/train.en' test_path = './orig_data/val.en' def reformat(in_path, out_path): with open(in_path, 'r') as f: lines = f.readlines() new_lines = [] for i in range(len(lines)): new_line = lines[i].rstrip('\n') new_line = " 's "....
[ "noreply@github.com" ]
matejgrcic.noreply@github.com
a8f1dd9db7c0ce138615ac6844de319aaa5c692f
dec29f40788478f73798f23b79ca892b3121150a
/apps/product/migrations/0006_product_featured.py
239bba971c32d72c05c0f20fc7113bd3b3a59639
[]
no_license
RonaldTheodoro/django-ecommerce
2c661e6f3ae0154ecb7a8e25183875da8c27d14f
9097049107e5a7ab52474aa89fe40f02689fb24a
refs/heads/master
2021-05-06T02:08:51.166682
2017-12-17T00:32:03
2017-12-17T00:32:03
114,499,259
0
0
null
null
null
null
UTF-8
Python
false
false
454
py
# -*- coding: utf-8 -*- # Generated by Django 1.11.7 on 2017-11-30 11:31 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('product', '0005_auto_20171119_1838'), ] operations = [ migrations.AddField(...
[ "ronald.silva4@fatec.sp.gov.br" ]
ronald.silva4@fatec.sp.gov.br
0149c8199d73dfbd790740712790067e4c134056
b2e02e11d544109976cc6b5bc4bcc8ca6e03aedd
/src/kgx/ecommerce/oscar/methods.py
b1ea5be0b8e92d77f87526f9b65b66ee1ad233f2
[]
no_license
gramedia-digital-nusantara/kgx-client
70eebf3063a80439781c12a891045a81f6aeef3f
7af31addc219f72bb5e896af9da85e77cd516f25
refs/heads/master
2023-05-27T11:12:31.386738
2019-01-06T15:43:04
2019-01-06T15:43:04
152,007,273
0
1
null
2023-05-22T21:35:24
2018-10-08T02:26:42
Python
UTF-8
Python
false
false
1,731
py
from math import ceil from django.conf import settings from django.utils.translation import ugettext_lazy as _ from oscar.apps.address.models import UserAddress from oscar.apps.basket.abstract_models import AbstractBasket, AbstractLine from oscar.apps.catalogue.models import ProductClass from oscar.apps.shipping.metho...
[ "derek.curtis@gramedia.digital" ]
derek.curtis@gramedia.digital
3a6b487f57c857ad7468ca3079d6f2dcc05ee7d9
dd31ec8f3f979b0339cf686ce9094def03ef003a
/almoxarifado/admin.py
439d557537488c4abfc4866aa38d2ec5b78db9fc
[ "MIT" ]
permissive
rvmoura96/projeto-almoxarifado
872bb945b4057bdbf108776e2101e9966a23f4de
4ca5e5d00f449a940f7c601479bb3fe14c54f012
refs/heads/master
2022-11-11T07:45:33.475443
2017-11-21T21:13:19
2017-11-21T21:13:19
106,044,249
1
1
MIT
2022-10-26T05:02:32
2017-10-06T19:48:08
Python
UTF-8
Python
false
false
322
py
from django.contrib import admin from .models import Equipamento, Item, Tipo, TipoItens, Modelo, Fabricante # Register your models here. admin.site.register(Tipo) admin.site.register(TipoItens) admin.site.register(Modelo) admin.site.register(Fabricante) admin.site.register(Equipamento) admin.site.register(Ite...
[ "rvmoura.96@gmail.com" ]
rvmoura.96@gmail.com
1c6da6f5d8052821f26f42065a6f5aaba410456d
dec494542217437afa7f38e8703328b25b183cb8
/39.py
c80519dded9c7ba9b7dd4286c678e9a42e4168c1
[]
no_license
Transi-ent/LeetcodeSolver
ee44c9c4d5bce9f11c079c5b27b4b967790cb5cd
a89e19753666657a6f15c1be589b9b2dbd4b6c84
refs/heads/master
2021-04-16T20:37:34.710175
2021-02-24T03:51:43
2021-02-24T03:51:43
249,383,432
1
0
null
null
null
null
UTF-8
Python
false
false
2,483
py
class Solution: """ 回溯法。枝叶粗大, """ def combinationSum(self, candidates: list, target: int) -> list: s = set() res = self.findCombnt(candidates, target, 0, [],[],s) print(res) return res def findCombnt(self, nums: list, target: int, index: int, tmpli...
[ "1305113016@qq.com" ]
1305113016@qq.com
6a5ce55369c418ce3a1852bdde9a2e9d585b80e5
7fca91eef7bfd0f7609d61854fe67a178cd199ff
/stepik/chapter 9/9-3.py
8e6be61efe03f387f49cc3c59b501dd91e47d39b
[]
no_license
achen2289/UCLA-CS-CM122
5e4bfc8cf9660ac01735aeb0d866896510e2037e
d19047ff6c8c3949978b9f8d659f057aeba48e11
refs/heads/main
2023-05-28T15:48:06.804935
2021-06-13T00:22:33
2021-06-13T00:22:33
376,405,641
1
0
null
null
null
null
UTF-8
Python
false
false
4,102
py
class trie_node: def __init__(self, id): self.children = {} self.valid = False self.id = id self.label = None class mod_trie_node: def __init__(self, idx): self.children = {} self.valid = False self.idx = idx class Trie: def __init__(self): s...
[ "noreply@github.com" ]
achen2289.noreply@github.com
065879523e20eb090c83b185d34a52dad01e6602
c71799bd4e86b8354588e395396e559df867843b
/utility/utility_env.py
07867072760d3dfc04b871d842687612217b90a6
[]
no_license
jacob-heglund/capture-the-flag
ab564c6f271dd2bb2bc07dd4660eb0798f5480f4
99423e6606fa4f32358df91f83d69b39c68c6593
refs/heads/master
2020-09-06T20:03:17.997672
2019-11-08T19:37:31
2019-11-08T19:37:31
220,535,046
0
0
null
null
null
null
UTF-8
Python
false
false
5,781
py
import numpy as np import gym_cap.envs.const as CONST UNKNOWN = CONST.UNKNOWN # -1 TEAM1_BG = CONST.TEAM1_BACKGROUND # 0 TEAM2_BG = CONST.TEAM2_BACKGROUND # 1 TEAM1_AG = CONST.TEAM1_UGV # 2 TEAM1_UAV= CONST.TEAM1_UAV # 3 TEAM2_AG = CONST.TEAM2_UGV # 4 TEAM2_UAV= CONST.TEAM2_UAV # ...
[ "jheglun2@illinois.edu" ]
jheglun2@illinois.edu
2475f6bc2e6b47210a4a54eaecfbb0ea764e424f
a364e6bc5a84dfa03d6d077362d286e4e2a887d4
/app/admin.py
971513a223b1aa2d9ddd2d4d97eb483cfec887e3
[]
no_license
snapbuy/fast-shop
67552261ed0e5068dc384ad3ee1da1478863d3e7
22c4b17677629dade5052bd34431411edcbe7f84
refs/heads/master
2023-08-12T00:51:20.203056
2021-10-02T01:32:45
2021-10-02T01:32:45
null
0
0
null
null
null
null
UTF-8
Python
false
false
940
py
from django.contrib import admin from app import models as m from django_summernote.admin import SummernoteModelAdmin from django.contrib.admin import AdminSite from django.utils.translation import ugettext_lazy admin.site.site_header = "FastShop Admin" admin.site.site_title = "FastShop Admin Powered By Django" admin...
[ "shlee@madup.com" ]
shlee@madup.com
ff9ef6987c579208033a4e26c738b75647883f52
bb81b9c70f204e636560dc969b68c1654e24cb77
/tests/i2b2modeltests/metadatatests/test_modifier_dimension.py
8b6124f32a4a8cc9d09f52c4faf5c4d17e173218
[ "Apache-2.0" ]
permissive
BD2KOnFHIR/i2b2model
8f526225498ccfadddeb180e76d644f1098a4041
566be446f4b8691f8d82d5d04b7635248aba6041
refs/heads/master
2021-04-27T20:52:59.357953
2020-04-14T17:01:02
2020-04-14T17:01:02
122,386,895
1
0
null
null
null
null
UTF-8
Python
false
false
1,433
py
import unittest from collections import OrderedDict from datetime import datetime from dynprops import as_dict, clear from i2b2model.shared.i2b2core import I2B2Core from i2b2model.testingutils.base_test_case import BaseTestCase class ModifierDimensionTestCase(BaseTestCase): def setUp(self): clear(I2B2Co...
[ "solbrig.harold@mayo.edu" ]
solbrig.harold@mayo.edu
dbc9ed063bb15f5e00d2bafe49c707761c1595fe
e58e59ed72562454750c87556bf44d7a4bae5065
/pymontecarlo_casino2/expander.py
da2650a680f18028b0b14a523f6e6077d26b8430
[ "Apache-2.0" ]
permissive
tomyanmmx/pymontecarlo-casino2
587c67bc32217a5eb23583f58a6a88511f3c69e2
d1c7eb761ccbde745fe858caf9490e87b13347d5
refs/heads/master
2021-05-07T22:59:52.396739
2017-09-10T14:22:59
2017-09-10T14:22:59
null
0
0
null
null
null
null
UTF-8
Python
false
false
309
py
"""""" # Standard library modules. # Third party modules. # Local modules. from pymontecarlo.options.program.expander import Expander, expand_to_single # Globals and constants variables. class Casino2Expander(Expander): def expand_analyses(self, analyses): return expand_to_single(analyses)
[ "philippe.pinard@gmail.com" ]
philippe.pinard@gmail.com
4c5d9963af068ce7fb91779b9e9724c1d77112a0
e5d9270399d254104875b1b26ae8fa06e917fa45
/lesson2.2_step8.py
62482df9f5a8d168709a114afe65265e0497c398
[]
no_license
yusipov-timur/stepik---auto-tests-course
6cb6f8922c6369c23a36d269bfb93f27468d490e
6a198a10fa497ab594c8262627b5a387e65e46a6
refs/heads/master
2020-08-01T16:11:13.004243
2019-09-26T10:22:10
2019-09-26T10:22:10
211,042,720
0
0
null
null
null
null
UTF-8
Python
false
false
1,331
py
from selenium import webdriver import time import os try: link = "http://suninjuly.github.io/file_input.html" browser = webdriver.Chrome() browser.get(link) # Ваш код, который заполняет обязательные поля first_name = browser.find_element_by_name("firstname") first_name.send_keys("Firstname")...
[ "timur.yusipov@sap.com" ]
timur.yusipov@sap.com
63cda23cabcc2394c1e65a11723778f74011bf2d
4b347182bfe16f5cfbf2591efb995c61b7843195
/Python/django/practice/rest_middleware_example/blog/urls.py
7525e909b422dd4ade992234d54c491d1d0ef5d2
[]
no_license
boraseoksoon/DailyCommit
8ae5b623fc2ed6d34e92c79fcc566b6ac1b91ceb
d27a8979e8a2819171566bdef93a490b7d1d5efc
refs/heads/master
2021-07-03T16:25:04.654934
2019-09-02T10:26:45
2019-09-02T10:26:45
70,724,431
0
0
null
2021-06-10T20:03:31
2016-10-12T17:31:54
Swift
UTF-8
Python
false
false
212
py
from django.conf.urls import url from . import views urlpatterns = [ url(r'^post.json$', views.post_list), url(r'^recent_posts.json$', views.recent_post_list), url(r'^articles.json$', views.article_list), ]
[ "boraseoksoon@gmail.com" ]
boraseoksoon@gmail.com
9a664dcaffc7baeaa44d26d8b2ced508f8f3e4a2
b2076a80fccd6d9c1067fc33dbe25c4ef1561f02
/code/lib/termio.py
c931ca399b566d4af669c5abd52f45aa34ad32dc
[ "MIT" ]
permissive
beboxos/Circuitpython-termio-lib
89ca1e08bae010224bcabd3132a70f2ac10c4c99
df5280d0344c15484719900f839e594938c66ed2
refs/heads/main
2023-09-05T18:24:06.936354
2021-11-17T15:50:11
2021-11-17T15:50:11
428,961,371
1
0
null
null
null
null
UTF-8
Python
false
false
1,340
py
""" Simple terminal io lib for circuitpython by BeBoX (c) """ def cls(): print(chr(27)+"[2J") def printat(x,y,text): print(chr(27)+"["+str(y)+";"+str(x)+"H", end="") print(text, end="") def rect(x,y,width,height,char): if char == "": printat(x,y,"+"+"-"*(width-2)+"+") e...
[ "33153857+beboxos@users.noreply.github.com" ]
33153857+beboxos@users.noreply.github.com
c0d2b48b53bf556ec3f32b2473cb3bea98aeef9e
a968729d238008ba96b031acbb74c19bfa66da2d
/lab5/lab/example.py
ed39dac2c2ed754bf63dacfd9337b87469ba3fa7
[]
no_license
ISINth/Labs-HW
10d3b1e37247b676a4874c52b921c14cdbedff19
28bda5b566847bf6a3f541c5217eeacb75c9d9b2
refs/heads/master
2021-01-22T02:48:40.031228
2017-01-23T01:36:01
2017-01-23T01:36:01
68,293,960
0
0
null
null
null
null
UTF-8
Python
false
false
297
py
posts = [ { 'id': i, 'title': 'Name {}'.format(i), 'description': 'Short description for {}. Description seems to be very long.'.format(i), 'text': 'Full text for {}'.format(i) } for i in range(1, 4) ] posts_dict = {val.get('id'): val for val in posts}
[ "nikser96@mail.ru" ]
nikser96@mail.ru
5579016820327a74fee55aaeb00dcfc22e42c1ed
ec7b97577c56e4ee19ec3d584238b7b3ce1607bb
/programs/NN_1k/mkbatch_1d.py
4028f20bc6359f6dfead703b8c94daa1bce20f30
[]
no_license
toufu66/IEEE_WH_WIP
76f052679155ede8dad296360e4c6cbd4cd98c19
4b1ff38ad1d33a372ccbfea794fc27572e1e3381
refs/heads/master
2020-05-17T13:29:06.422301
2019-05-12T19:34:54
2019-05-12T19:34:54
183,736,654
0
0
null
null
null
null
UTF-8
Python
false
false
1,822
py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Tue Mar 12 22:43:46 2019 @author: masahiro """ import open_csv_ as opcsv import numpy as np import random import pickle as pkl #fft_tap=128#model_vgg_3_400_velo_row_128 fft_tap=1024 #fft_tap=512 #fft_tap=256#model_vgg_3_400_velo_row_1 #fft_tap=768#model_...
[ "noreply@github.com" ]
toufu66.noreply@github.com
9dc6d850e2f39e26177c09b48890df1ca3d29301
2058b076dac12686dd8bc0982d4f6c2e245405ed
/Homework 2/Homework 2 Part 2 question 2.py
747d439bf13b53d7387ce9a5a4a6340ffb495daa
[]
no_license
Popeyesxs/Risk-Management-Indictor-evaluation
47b05d7747267f16cd93d5d37ba558064c03e24d
9d578a238ff43764f6b7e34fddeaa0619340fe9e
refs/heads/main
2023-01-23T11:14:39.688408
2020-11-23T21:24:12
2020-11-23T21:24:12
315,443,430
0
0
null
null
null
null
UTF-8
Python
false
false
3,598
py
import pandas as pd import numpy as np import math def EWMA(mu,covariance,lamda,theta,log_return): """ :param mu_delta: the initial mean :param covariance_Delta: the initial variance :param lamda :param theta :param log_return: log return rate :return: the estimation of mean and variance ...
[ "noreply@github.com" ]
Popeyesxs.noreply@github.com
6a61a4502a0334d46da5be716ffb38dbcc31975f
583fdb9f37dea28ada24e335f1e44ba6cf587770
/860 柠檬水找零.py
109ef98e4711690d86ba8fbc1ce323e5179e55a1
[]
no_license
Ford-z/LeetCode
8c4c30eeaa3d8f02b24c8d0058c60f09c3a6debe
88eeca3780b4dc77efce4f14d317ed1c872cf650
refs/heads/master
2021-11-21T00:51:05.314084
2021-09-16T15:45:18
2021-09-16T15:45:18
194,425,542
1
0
null
null
null
null
UTF-8
Python
false
false
1,596
py
#在柠檬水摊上,每一杯柠檬水的售价为 5 美元。 #顾客排队购买你的产品,(按账单 bills 支付的顺序)一次购买一杯。 #每位顾客只买一杯柠檬水,然后向你付 5 美元、10 美元或 20 美元。你必须给每个顾客正确找零,也就是说净交易是每位顾客向你支付 5 美元。 #注意,一开始你手头没有任何零钱。 #如果你能给每位顾客正确找零,返回 true ,否则返回 false 。 #来源:力扣(LeetCode) #链接:https://leetcode-cn.com/problems/lemonade-change #著作权归领扣网络所有。商业转载请联系官方授权,非商业转载请注明出处。 class Solution: def...
[ "noreply@github.com" ]
Ford-z.noreply@github.com
284d97ef80ce19b3ff5477e454e25c5758075fff
f614e8567f9458e298c651d0be166da9fc72b4bf
/Students/Sean/Django/urlShortener/url/admin.py
d144a4a38ffe0716fb20c96692bc22d7e591c87f
[]
no_license
PdxCodeGuild/class_Binary_Beasts
458c5be00b7bce3bb4ac9b7ab485c47f72be4294
b1298cb5d74513873f82be4ed37676f8b0de93dd
refs/heads/master
2023-06-28T07:05:21.703491
2021-07-29T03:44:09
2021-07-29T03:44:09
344,980,863
4
4
null
null
null
null
UTF-8
Python
false
false
120
py
from django.contrib import admin from .models import LinkInfo # Register your models here. admin.site.register(LinkInfo)
[ "seanwilcox@comcast.net" ]
seanwilcox@comcast.net
0d57b0e1dc5cb0ef84338ee67bcbd9ca4949e903
699ef860f89067c7b26565f9fd3dda8723ea5ddb
/people.py
9ccc9ec80e5bf3de9f22030e2dd46be88f4fa00e
[]
no_license
undind/python-simple-api
bfb31a9594aae34ec4363a243a315fadd70ae426
747e2cacfde371c9071cbf7fcada993447ceb8b6
refs/heads/master
2020-09-25T06:57:33.571368
2019-12-13T16:30:56
2019-12-13T16:30:56
225,943,581
0
0
null
null
null
null
UTF-8
Python
false
false
4,178
py
from flask import abort, make_response from config import db from models import Person, PersonSchema, Note # Create a handler for our read (GET) people def read_all(): """ This function responds to a request for /api/people with the complete lists of people :return: json string of list of peop...
[ "flyker777@yandex.ru" ]
flyker777@yandex.ru
660affebbe1fdac66a22ad0a189dbadda57e9695
fb2e56c583f0890f932728cbd810f54c865ef206
/api.py
3016e725f1839a4ef40923504e54640261773e6a
[]
no_license
tobinjo/Running-Through-Heroku-with-My-Woes
2550675258fa58332b99e760c58438d08bb22185
d23d9cff791d1b840e22ed2ec3265c09b625d3f0
refs/heads/master
2016-09-06T15:38:35.932116
2015-09-02T17:35:01
2015-09-02T17:35:01
41,769,747
0
0
null
null
null
null
UTF-8
Python
false
false
40
py
import json import time import requests
[ "serranic@users.noreply.github.com" ]
serranic@users.noreply.github.com
a738e262d375bfe52b43bb58d736c50175aa2efb
273aab7cc32165f1eec6f3c19bcdd795df55e442
/test_app45/__manifest__.py
ce5da640f0a65ef8989e309b48af3266c00de290
[]
no_license
jorv-odoo/leroyaumedelafrite
19131f2cc82627f6038c283c90cdc591041fb54b
aea3551be994a7d97ae5ad2462298ad24ec3a135
refs/heads/master
2023-07-13T11:17:41.156249
2021-07-20T13:34:19
2021-07-20T13:34:19
null
0
0
null
null
null
null
UTF-8
Python
false
false
914
py
# -*- coding: utf-8 -*- { 'name': "testApp45", 'summary': """ Short (1 phrase/line) summary of the module's purpose, used as subtitle on modules listing or apps.openerp.com""", 'description': """ Long description of module's purpose """, 'author': "My Company", 'websit...
[ "jev@odoo.com" ]
jev@odoo.com
95062e6b9979dfb54e0b36882d20b7cba36cacb9
0844577f7843bc9fe234c282c72e6aee904a5937
/arc_beam/__init__.py
db139f7444a7ea04a3f2e0ac1fd8c02b58700d7c
[]
no_license
cda-group/frontends
145e4ab8127304c5ec80cf9730194a54250bab9d
fa16b63368e32a94263f2831335381ad456c2103
refs/heads/master
2020-06-18T16:17:11.600377
2019-08-23T13:05:43
2019-08-23T13:05:43
196,361,674
2
0
null
null
null
null
UTF-8
Python
false
false
180
py
from .coders import * from .io import * from .pipeline import Pipeline from .transforms.core import * from .transforms.ptransform import PTransform from .pvalue import PCollection
[ "klasseg@kth.se" ]
klasseg@kth.se
22da037eb35ae20878e8e83e233f08cc4cad5413
51a37b7108f2f69a1377d98f714711af3c32d0df
/src/leetcode/P430.py
2e1a4f1b681e32e310db002cc62a8f5a002e90be
[]
no_license
stupidchen/leetcode
1dd2683ba4b1c0382e9263547d6c623e4979a806
72d172ea25777980a49439042dbc39448fcad73d
refs/heads/master
2022-03-14T21:15:47.263954
2022-02-27T15:33:15
2022-02-27T15:33:15
55,680,865
7
1
null
null
null
null
UTF-8
Python
false
false
729
py
""" # Definition for a Node. class Node: def __init__(self, val, prev, next, child): self.val = val self.prev = prev self.next = next self.child = child """ def tail(node): if node is None: return None t = node while t.next is not None: t = t.next re...
[ "stupidchen@foxmail.com" ]
stupidchen@foxmail.com
d9ca74f35b43099fb5c6fce2a9302de0026d8b25
4d6b709c06850fb13f0a465a4c7bdbffcc6b1775
/RestaurantShare/RestaurantShare/urls.py
ae636b61fb8ed7db4098c7e975ccbdc428616383
[]
no_license
twer4774/RestaurantShareWithDjango
53ecbdb3e1e9e64f6858c45a6829db16781b5e5f
1c4083f1f44fdcad2771b202f8a53d5fb89139d6
refs/heads/master
2022-11-30T15:45:40.541378
2020-08-19T09:10:51
2020-08-19T09:10:51
281,615,310
0
0
null
null
null
null
UTF-8
Python
false
false
855
py
"""RestaurantShare URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/3.0/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Cla...
[ "twer4774@gmail.com" ]
twer4774@gmail.com
2b5a09b26c0f0b096b0fa013ecddb446e8334c00
af259f7f39994ab2732ba51c92c0e31fea157e91
/videogpt/layers/attention/attention_ops.py
17a8653f3a4b3ad95dc872cd08a08e7c62821103
[]
no_license
pointoflight/samplevq
aaf42a2d5d51aaa665239ac62b27916ea01d6c0c
d8d87abcb3e03a7dd36744afbd5c423d6a46c5ae
refs/heads/master
2023-06-17T13:38:43.625641
2021-07-14T23:21:54
2021-07-14T23:21:54
386,098,666
0
0
null
null
null
null
UTF-8
Python
false
false
710
py
import numpy as np import torch import torch.nn.functional as F # Moved here to prevent circular imports def scaled_dot_product_attention(q, k, v, mask=None, attn_dropout=0., training=True): # Performs attention over the second to last dimension dn # (b, n_head, d1, ..., dn, d) attn = torch.matmul(q, k.t...
[ "f20180209@goa.bits-pilani.ac.in" ]
f20180209@goa.bits-pilani.ac.in
6caaa198e6f7c88ba6fb84080ff32c56e9c7c898
0f7b8a609d89dd06a89c4ca946d02ac08a1471a9
/Blogs/migrations/0002_post_img_url.py
420001c2b0deb4be3814efbdd08612e3096b8c2f
[]
no_license
Datson-bit/WeCast
fc7156f90875aebe7fce07ab8de69b3fc001858b
ea4c0b85489220880a9b2b396d3e3ef2485168dd
refs/heads/master
2022-12-12T09:40:14.995023
2020-09-03T20:34:58
2020-09-03T20:34:58
293,353,039
0
0
null
null
null
null
UTF-8
Python
false
false
432
py
# Generated by Django 3.0 on 2020-08-28 00:34 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('Blogs', '0001_initial'), ] operations = [ migrations.AddField( model_name='post', name='img_url', field=mo...
[ "datonayomide@gmail.com" ]
datonayomide@gmail.com
41454b2e2cab5ecf63ebf612903409e8999d8a5b
b3a5151d8bd2fcff8ca067e1c4dc321f777daf6b
/Task_8/Exceptions.py
1dd194d440d425f36e351699678cc27ad3ad221a
[]
no_license
abakums/OOP_Python
6d6f598cfb8b0ee7a8af9baebbe4b282145167c2
27bb46536109823be4cfd632d153f8edfcc4083a
refs/heads/master
2023-02-15T09:34:56.584073
2020-12-24T19:09:52
2020-12-24T19:09:52
295,959,591
0
0
null
null
null
null
UTF-8
Python
false
false
1,186
py
class WrongWeightException(Exception): """Класс исключения, который отвечает за отлавливание ошибок некорректного ввода веса бойца""" def __init__(self, text, weight): self.text = text self.wrong_weight = weight def __str__(self): return self.text class WrongDischargeException(Ex...
[ "abakumovs882@gmail.com" ]
abakumovs882@gmail.com
81a7bad1d362f14311ff7dc7a8668bf96569f854
714fe3af2ff9054c79dc9b6e09269fa8aec2c4ad
/09.8.py
b8f649f35d6c89e319228859170051ae990a9d94
[]
no_license
perinm/ThinkPython
be57860d216b343e117c8ee30f29cf2b02ac6b43
b66e35bb336ef69926599f2889707932f5ee0f32
refs/heads/master
2021-07-19T06:06:58.552870
2020-06-02T01:52:42
2020-06-02T01:52:42
166,502,150
0
0
null
null
null
null
UTF-8
Python
false
false
327
py
#funcao que verifica palindromo def palin(i,comeco,tam): s=str(i)[comeco:comeco+tam] return s==s[::-1] #funcao que compara 4 casos def check(i): return (palin(i,2,4) and palin(i+1,1,5) and palin(i+2,1,4) and palin(i+3,0,6)) #testando todos os numeros for i in range(100000,999996): if(check(i)): p...
[ "noreply@github.com" ]
perinm.noreply@github.com
db4718b5c11abc46048e756487f6714698f41805
20674c17d815214bf66b75be686bb8a45c0f5914
/version1/415_Add_Strings.py
abfc1fed5d4ddd31c6b7d8e9156cb801b0847556
[]
no_license
moontree/leetcode
e7b670969fe20785b15aae82996875fd66de1b08
f2bf9b13508cd01c8f383789569e55a438f77202
refs/heads/master
2021-05-20T20:36:45.615420
2020-04-02T09:15:26
2020-04-02T09:15:26
252,408,563
1
0
null
null
null
null
UTF-8
Python
false
false
1,058
py
""" Given two non-negative integers num1 and num2 represented as string, return the sum of num1 and num2. Note: The length of both num1 and num2 is < 5100. Both num1 and num2 contains only digits 0-9. Both num1 and num2 does not contain any leading zero. You must not use any built-in BigInteger library or convert the...
[ "zhangchao@zhangchaodeMacBook-Pro.local" ]
zhangchao@zhangchaodeMacBook-Pro.local
8d49d28a8571e3f03a4228285c32835fc0f40561
49fcc06d40b470e1fe362929d86d4249b083ca18
/Inheritance/single_inheritance.py
809fe0f2ceaf2b1a6eafe94badae36f3c9fddc1c
[]
no_license
getmenova/pyPalace
bad80a9be75bb5090113c93802bd37e5907f1fe9
9cb03cf7136150f474d24ba2bce8350bcfecdfa4
refs/heads/master
2020-03-16T02:53:25.316251
2018-06-13T08:07:36
2018-06-13T08:07:36
132,475,144
1
0
null
null
null
null
UTF-8
Python
false
false
508
py
class Apple: manufacturer = "Apple Inc" contact_web_site = "www.apple.com/contact" def contact_details(self): print('To contact us, log on to ',self.contact_web_site) class MacBook(Apple): def __init__(self): self.yearOfManufacture = 201* def manufacture_details(self): ...
[ "micski@gmail.com" ]
micski@gmail.com
2ef47aa73718d2bb30bf9a9ffbaecbc4cdacfef8
e330efed0776557ada29bde67ec27d9da22d31a4
/gulishop/apps/operations/models.py
6ad9c6336aa29a2ff4c378fdb4eea15a8bfa56ce
[]
no_license
scarecrowcxc/DjangoProject
b73946b56a0c8ea4f071d6a6272d473308b9a563
b0223d0d87ce68d36ba3c1847531fcd6805b826e
refs/heads/master
2020-04-16T13:22:53.949344
2019-01-24T02:24:48
2019-01-24T02:24:48
165,624,516
0
0
null
null
null
null
UTF-8
Python
false
false
2,200
py
from django.db import models from users.models import UserProfile from goods.models import Goods from datetime import datetime # Create your models here. class UserFav(models.Model): user = models.ForeignKey(UserProfile, verbose_name='所属用户') goods = models.ForeignKey(Goods, verbose_name='所属商品') add_time =...
[ "scarecrow_cxc@hotmail.com" ]
scarecrow_cxc@hotmail.com
3b1b65ebc6517ea8d6aa544a69078e153bd9705e
426559440c583184ebe3282e111b9933472aa398
/.venv/bin/bpdb
07153fd0affbd4ebc30812a14892d63ec4da8d4b
[]
no_license
proofGu/Botster76
b55ef5de71c52136a07c26316351b9739999d6e2
cf86f010cbaf0ede0b1edc11806946a2167d7ecd
refs/heads/main
2023-03-06T22:05:44.362133
2021-02-24T14:45:45
2021-02-24T14:45:45
341,929,667
0
0
null
null
null
null
UTF-8
Python
false
false
228
#!/home/hp/IT/NG2/tb_geek/.venv/bin/python3 # -*- coding: utf-8 -*- import re import sys from bpdb import main if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) sys.exit(main())
[ "g.a.a.guskov@gmail.com" ]
g.a.a.guskov@gmail.com
b5e0e9c943a15be5ba40d7ff9c3c755ac2c3a131
7748d76ac2557477733c245189a5510e793c965a
/5 - Django/Amadon/apps/amadon/views.py
9c08620dd6db4778c4a77f3047aef83137c8ccee
[]
no_license
ectom/Coding-Dojo-Python-Stack
9798fd0c452389d485d343659eed7132c61b9055
07d2d48e966f4210627a1a11d561f1d28e8a9982
refs/heads/master
2021-06-27T22:59:40.794253
2017-09-15T09:54:40
2017-09-15T09:54:40
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,034
py
from django.shortcuts import render, HttpResponse, redirect def index(request): try: request.session['data'] request.session['total_price'] = 0 request.session['total_quantity'] = 0 except: request.session['data'] = [] return render(request, 'amadon/index.html') def process...
[ "etom579@gmail.com" ]
etom579@gmail.com
3425c2f7cdeb2df4384116d1aa6ea33bed59becf
4189462af0f9fd746ca1c7eafd5d076d169fa98a
/projeto-1/backend/dojo/dojo/schema.py
546563fcb6d3dee95ce37669e46a0ef8e4dcd51c
[]
no_license
caiolopes/django-dojo
cc62fdb482f74387670fc3f157f21122761c84fe
a4a3cf3b32c97844d850ca4ef5c099deae9d4d53
refs/heads/master
2020-08-29T22:12:57.256555
2019-11-12T16:35:53
2019-11-12T16:35:53
218,187,008
2
0
null
null
null
null
UTF-8
Python
false
false
1,208
py
import graphene from graphene_django import DjangoObjectType from core.models import Joke class JokeNode1(graphene.ObjectType): text = graphene.String() @classmethod def from_joke_model(cls, joke): return cls(text=joke.text) class JokeNode2(DjangoObjectType): class Meta: model = Jok...
[ "caio.lopes@loggi.com" ]
caio.lopes@loggi.com
d69676a726537b4d3d65d11d17e87facc1f3ed70
ddd8f90dff8f29975f6458222d41581a5cba9dd8
/jukebox/tests/test_sample.py
f16d169ddd77fb44f1f6b94b3093b9dc5c0838f0
[ "LicenseRef-scancode-proprietary-license", "LicenseRef-scancode-warranty-disclaimer" ]
permissive
pukkapies/jukebox
dfb4be1cc31ffa519bffd6c1fc8c1577b32393da
5184212c4c9fb165a95b5aa3295529947507bc2f
refs/heads/master
2023-04-28T11:05:50.103889
2021-05-14T14:14:13
2021-05-14T14:14:13
260,883,175
0
0
MIT
2020-05-03T10:35:12
2020-05-03T10:35:11
null
UTF-8
Python
false
false
5,750
py
import torch as t import numpy as np from jukebox.sample import sample_level from jukebox.utils.torch_utils import assert_shape from jukebox.hparams import Hyperparams def repeat(x, n, dim): if dim == -1: dim = len(x.shape) - 1 return x.reshape(int(np.prod(x.shape[:dim+1])), 1, int(np.prod(x.shape[dim+...
[ "prafullasd@gmail.com" ]
prafullasd@gmail.com
8e0101cd5e21603a821033801ec237a7d9370e6a
e93d9b0153861e3b829a0614b97261c4da19f3ee
/products/migrations/0003_auto_20200203_1123.py
1f108dbbddc9a11639ede4065973548bddd0ab67
[]
no_license
Code-Institute-Submissions/Ecommerce-Project-1
b0cec95930c2c0a12c0169240cb0e72fa7db9266
11e296a81f7c2a5a09ba2b493181431ce8e05225
refs/heads/master
2021-02-04T06:53:27.793238
2020-02-27T23:06:39
2020-02-27T23:06:39
null
0
0
null
null
null
null
UTF-8
Python
false
false
516
py
# -*- coding: utf-8 -*- # Generated by Django 1.11.24 on 2020-02-03 11:23 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('products', '0002_product_size'), ] operations = [ migrations.AlterField( ...
[ "chrisoconnor904@yahoo.com.au" ]
chrisoconnor904@yahoo.com.au
9c6be235c8f224f341e4ec87b10f3e8938b19791
4f6f4eb8d5e66032744e8678cf01ff5e0fd0a77b
/src/room.py
db83977a4224275605db30bc1c570ce5cc5255c8
[]
no_license
athinagouseti/TDD_Python-Week_02_Day_5_HW
8e01e4223dd4de216a8d4045e2b55642b52d15df
1bcb3a989b7f2a5786dcb81eef33ff5042a60b44
refs/heads/main
2023-07-31T05:16:59.722534
2021-09-11T12:01:05
2021-09-11T12:01:05
null
0
0
null
null
null
null
UTF-8
Python
false
false
860
py
class Room: def __init__(self,capacity): self.songs = [] self.guests = [] self.capacity = capacity self.bar_tab = [] def total_guests(self): return len(self.guests) def check_in_guest(self, guest): if len(self.guests) < 4: self.guests.append...
[ "athina.gouseti@outlook.com" ]
athina.gouseti@outlook.com
830ad89a6397ebecb5843b3db8bc79501fe09a72
0e092c1a9a49b4b0af370b8fee2374318045141b
/tests/test_fib.py
e31445680e5841e3129f1432af2915d9d5562d6e
[]
no_license
BarberAlec/Common-Interview-Questions
3ed56e1a8feb173bf73d21811474fa732ead82a7
eaf903f9c5778126c6c64734e08a06c8cd51a5be
refs/heads/master
2023-07-07T06:45:10.452520
2021-08-03T08:29:33
2021-08-03T08:29:33
268,522,761
0
1
null
2021-08-03T08:29:34
2020-06-01T12:59:10
Python
UTF-8
Python
false
false
1,964
py
"""Run tests on fibonacci functions""" from unittest import TestCase from fib_questions import Fib class TestFibonacci(TestCase): """ Run all methods prefixed with 'test' """ def setUp(self) -> None: """ This is called _before_ each test """ self.fib_term...
[ "trewr@tcd.ie" ]
trewr@tcd.ie
5634680d9a0063ca342cde1a05a6a66753a9fdbf
7160b7374f883a6146e4e82877a1be554239b72a
/compendium.py
a5809db45031532db78fba092c1421ad5cea220b
[]
no_license
MarcBackwinkel/Compendium
63d1e3b7ade3a7716a57b86360dbe25144ac80a6
d41aa10ef38027190f92836b62c97563fbf70d2d
refs/heads/master
2020-05-02T16:30:41.720743
2019-04-05T11:12:40
2019-04-05T11:12:40
178,070,802
0
0
null
null
null
null
UTF-8
Python
false
false
1,937
py
### Chapter1. The way of the program #The first program print("Hello World") #Hello World print("Hello","World") #Hello World print("no line break",end="") 43+2 #47 84/2 #42.0 6^2 #4 (XOR: 00000110 ^ 00000010 = 00000100) #Values and t...
[ "marc.backwinkel@gmail.com" ]
marc.backwinkel@gmail.com
bb9f3dab73525d2df44fbbfb84a92f1d17d70ad3
eb30c6c321e76754d841adff6f819096717b55e5
/comments_crawler/spiders/GossipLankaSinhalaCrawler.py
8d4a4ede46a1ec5e9ab1ef3867acbff79e325c58
[]
no_license
LahiruSen/News_Comments_Crawler
c105883070583d6ba435b2ba0b7223a4d44eb9b0
4d340bf05ecc19d840e319490476c7a2fd857730
refs/heads/master
2022-04-24T00:22:01.501294
2020-04-20T18:11:35
2020-04-20T18:11:35
257,365,638
1
0
null
null
null
null
UTF-8
Python
false
false
1,766
py
import scrapy import json from pathlib import Path from random import randrange from scrapy.shell import inspect_response from scrapy import Request class GossipLankaSinhalaCrawler(scrapy.Spider): name = "GossipLankaSinhalaCrawler" data = {} data['news'] = [] start_urls = [ 'https://www.gossi...
[ "lahiru.16@cse.mrt.ac.lk" ]
lahiru.16@cse.mrt.ac.lk
a68e8879bfce28ed8c8c10e9c7c06f731398218b
fe53d71b24b77e6329984483c41f2169ff2bb0b4
/ClassifierProject/ClassifierProject/wsgi.py
e02b7315cd514d873a646d0634c05277b74df7af
[]
no_license
XaZdarova/Classifier
82263053cbf04b358277ae6f8e4d9ed7cef48bd2
b1855d311ca16c63ec4c6764f22937e0b1432a6c
refs/heads/master
2023-02-12T17:53:40.376314
2020-12-25T22:05:13
2020-12-25T22:05:13
295,558,361
0
0
null
null
null
null
UTF-8
Python
false
false
1,156
py
""" WSGI config for ClassifierProject project. This module contains the WSGI application used by Django's development server and any production WSGI deployments. It should expose a module-level variable named ``application``. Django's ``runserver`` and ``runfcgi`` commands discover this application via the ``WSGI_APPL...
[ "trajandnt@gmail.com" ]
trajandnt@gmail.com
9ba4a6fbe3c9770a2d39f5f306cacdcfab42f357
65cf5e4c6d016a2dd7ddde139d3e65a94fbed9df
/dashboard/config.py
8916d314290706a3487747ff48734f46805a359b
[ "MIT" ]
permissive
rodriguesfas/ipm
afd188884556cb2f32a685abd64ec3d570af7f6c
596382123c3d45bde6410672692d1f59ec2d734a
refs/heads/master
2022-10-04T17:28:14.468166
2020-06-03T06:09:56
2020-06-03T06:09:56
193,582,056
0
0
null
null
null
null
UTF-8
Python
false
false
126
py
#!/usr/bin/env python # -*- coding: utf-8 -*- # Enable Flask's debugging features. Should be False in production DEBUG = True
[ "franciscosouzaacer@gmail.com" ]
franciscosouzaacer@gmail.com
253068a67dcd85f578e3f01e7400efd2cdf1f67e
f2149869f6b2d12ce0fe68cecaf3b7c63dc6d3d8
/src/paramCube.py
b41e2345df0684e08dc9287533832617e552a305
[]
no_license
mclaughlin6464/HODEmulator
35946bb55ead0427970dece32110a5932018d561
97a86c6c74cc49689478dde3155ab7a4c89f7c91
refs/heads/master
2020-04-05T14:09:05.870165
2016-08-31T00:56:44
2016-08-31T00:56:44
55,720,418
0
0
null
null
null
null
UTF-8
Python
false
false
7,599
py
# This module is similar to testSeveralSteps, but with an increase in scale. #@Author Sean McLaughlin import numpy as np from time import time from os import path from itertools import izip import argparse from myCats import cat_dict from allCorrFunc import loadHaloAndModel, popAndCorr, RBINS, MIN_PTCL from doBatchCa...
[ "mclaughlin6464@gmail.com" ]
mclaughlin6464@gmail.com
4ba31d9b1c0f2b4a69f7f10416fb26370e8f6eb8
ed30b38ea04d6ad3c393419a55dcbdae42509bc6
/Python/DImgP_2022/Ch02/image_info.py
332106eb26ff7b22561d27d1bba682c0caa3d920
[]
no_license
mjking77/mj_house
06d28bab2447e186ad60dca3dfeb9b6ed9d6355e
052028c56bf51489ec368737948707878cb66f1a
refs/heads/master
2022-02-28T00:22:45.776836
2022-02-05T13:14:00
2022-02-05T13:14:00
97,787,996
0
0
null
null
null
null
UTF-8
Python
false
false
287
py
import numpy as np import cv2 filename = input( "Please enter filename: " ) img = cv2.imread( filename, -1 ) nr, nc = img.shape[:2] print( "Number of Rows =", nr ) print( "Number of Columns =", nc ) if img.ndim != 3: print( "Gray-Level Image" ) else: print( "Color Image" )
[ "noreply@github.com" ]
mjking77.noreply@github.com
e0c3188ea32e726f9fab62a73d85a968f98aab1f
66f063359b50da488c7df2931a1264678abb71d5
/superlists/settings.py
9fd1e50fde31595561be1738ddbed80c93cdbc9d
[]
no_license
Rai0Catodic0/tdd
67e06a42e53874e83b21007ec73f62ac4fefaf37
d9b7cc8615a29d79907f7f635c334d972e524bf9
refs/heads/main
2023-07-06T12:58:37.249723
2021-07-22T21:36:19
2021-07-22T21:36:19
339,484,214
0
0
null
null
null
null
UTF-8
Python
false
false
3,439
py
""" Django settings for superlists project. Generated by 'django-admin startproject' using Django 1.11.29. For more information on this file, see https://docs.djangoproject.com/en/1.11/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.11/ref/settings/ """ impor...
[ "gabriel.lima.luz@hotmail.com" ]
gabriel.lima.luz@hotmail.com
4a0d7baac1e325fd4391afae02e674366e5a757f
41085514cba12e66563053bbcc7ebc0a84db7274
/test3.py
cc42a1129d373c265cce3c522cc28d6f9e1844b3
[]
no_license
Momo-2000/The_battle_Warriors
6f6c0bb399840f38fdcab1c81a8f91284357f102
264310f817166419c59e4aa3a41626fff5c06a6a
refs/heads/master
2023-04-28T10:35:45.217922
2021-05-13T06:21:41
2021-05-13T06:21:41
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,240
py
import importlib class Warrior: def __init__(self): self.health = 50 self.defense = 0 self.attack = 5 @property def is_alive(self): return self.health > 0 class Knight(Warrior): def __init__(self): self.attack = 7 self.defense = 0 self.health ...
[ "2597986912@qq.com" ]
2597986912@qq.com
fbbf23bd7ff02c5c2eb7c987398ce753b6b41f50
a722b1313de877a3367fe3742af5de6bfe3b0c5f
/config.py
0fd24cb15e5c8ffd76195ae1f56e8d708b244d2e
[]
no_license
APicebar/LuoguBot
66689ceb7d046ce52e1d61fff722bf3aa7df233d
edfdf3b8852cfdbfe11767b46baf08ff8d798d48
refs/heads/master
2023-01-08T21:01:01.481144
2020-11-12T11:07:55
2020-11-12T11:07:55
256,976,985
5
1
null
null
null
null
UTF-8
Python
false
false
127
py
from nonebot.default_config import * SUPERUSERS = {912370623} COMMAND_START = {'!', '!'} HOST = '0.0.0.0' PORT = 8080
[ "912370623@qq.com" ]
912370623@qq.com
7fb765cc72c0b037db4f1c4126ca5e25a856994e
e2181e9439866cbf1455fdff66e4e27879eb034e
/src_my/config/parse_ips.py
6db519e8f5a692cee7f537c4b12e0cf788d7c03e
[]
no_license
lineCode/game_server-1
3fb841d3a4973d47e9c2692bbf9b1e440c499e5d
d9178ee8a0a504e5873bee3616d323056c9c9764
refs/heads/master
2020-05-19T08:01:02.835874
2019-05-03T11:10:57
2019-05-03T11:10:57
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,927
py
# !/usr/bin/python # -*- coding: UTF-8 -*- import csv,codecs import os import sys import re reload(sys) sys.setdefaultencoding('utf-8') # common function def format_ip(ip): ip_list = [] for i in ip.split('.'): if int(i) < 10: ip_list.append('00' + i) ...
[ "kilen@localhost.localdomain" ]
kilen@localhost.localdomain
6a55d5307f68934056db6745b26110dba2b4919c
8be001a4bdccc45f91d0ed197034be765eccc6cc
/Week4- Good_programming_practice/7_Testing_and_debugging/Exercise_integerdivision.py
a71ca66860fbd1be9d8057de8792891925be4165
[]
no_license
padma-lang/MITx1.0
e16da919969e6aa32b0ffeeb4fa66dd7470ca380
87e49c91792893da01a0e71c0f00cbfb6ba37c83
refs/heads/main
2023-07-01T18:39:14.727433
2021-08-06T19:10:36
2021-08-06T19:10:36
393,474,755
0
0
null
null
null
null
UTF-8
Python
false
false
386
py
# -*- coding: utf-8 -*- """ Created on Mon Jul 5 22:49:15 2021 @author: SRI """ def integerDivision(x, a): """ x: a non-negative integer argument a: a positive integer argument returns: integer, the integer division of x divided by a. """ count =0 while x >= a: count += 1 ...
[ "pamidip@hotmail.com" ]
pamidip@hotmail.com
a121b27011186c362be26328c4543ad00f0d8982
9e764a1c39b06ffc5a52ee027d43bf7eb46bfebf
/python_uiautomator/android_device_driver.py
fe853bccd7c3aff9ba7f824ac874b319d3c1fabf
[ "Apache-2.0" ]
permissive
amaganito/android-uiconductor
e56e0d96bc6988620b61b3e8431856d86508b1ae
d7006fbbd26c7ed1d7ce9f41e9cc1d4d019a076b
refs/heads/master
2021-06-13T18:16:19.666136
2021-05-03T22:06:56
2021-05-03T22:06:56
179,199,888
2
0
Apache-2.0
2019-04-03T03:02:47
2019-04-03T03:02:46
null
UTF-8
Python
false
false
14,598
py
#!/usr/bin/python # # Copyright 2021 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 # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ag...
[ "tccyp@google.com" ]
tccyp@google.com
243a3ce8c4ebd250782e2fea77ee5be3589a62a5
37a75d90fb5487e40b382ea78386b4ac0c7108ff
/__test__/test_api.py
fcfa654c7862e75dcc995a8a1547e438e7af4e74
[]
no_license
PureAppCrystal/analysis_fb
8b7535677a1317482b83ac54d970a18a47877dcf
410ab25cf9d947fbc6a0837d0efdb9d05d15d26e
refs/heads/master
2021-05-15T13:46:49.775511
2017-10-17T06:45:16
2017-10-17T06:45:16
107,228,518
0
0
null
null
null
null
UTF-8
Python
false
false
405
py
from analysis_fb.collection.api import api # url = api.fb_gen_url(pagename='jtbcnews', a=1, b=2, no=3, token='abc' ) # print(url) # print(api.fb_name_to_id('jtbcnews')) # api.fb_fetch_posts('jtbcnews', '2017-08-01', '2017-10-12') # api.fb_fetch_posts(api.fb_name_to_id('chosun'), '2017-01-01', '2017-10-12') for po...
[ "purecrystar@gmail.com" ]
purecrystar@gmail.com
7934d26cf2260f368ab8d2c022c0b804c116afe7
acb8acdc1233c248694edbae0092ddfcd46baf52
/tests/test_dev.py
d45529c4fe3e59423f4ec7d7a35cb4b7573d5d29
[ "MIT" ]
permissive
tomhamiltonstubber/harrier
c1173dde726b412223a3d867a4184de54060ff79
f581aa5478cfecb6e9c58c7544584636f868a0c2
refs/heads/master
2020-03-21T18:29:25.966509
2019-02-19T17:10:56
2019-02-19T17:10:56
138,894,743
0
0
null
2018-06-27T14:42:50
2018-06-27T14:42:50
null
UTF-8
Python
false
false
11,661
py
import asyncio from pathlib import Path from pytest_toolbox import gettree, mktree from watchgod import Change import harrier.dev from harrier.config import Config from harrier.dev import HarrierWatcher from harrier.main import dev class MockServer: def __init__(self, *args, **kwargs): pass async d...
[ "s@muelcolvin.com" ]
s@muelcolvin.com
5e4a349d5502380c981d7f17a2242bfa4f4745a3
b7ad21dc8a2bf3459f8f65c7c2df944f168b9086
/regression_tests/bugs/78484.py
fcfaf180b6266f5d2fdf43038e46c5cdbba6e362
[]
no_license
italiangrid/WMS-Test-Suite
ee99651cdacbd18ec202ba3d62d6c1aeb02ab405
0c72c8a868c671691eae55800e906d55d9b5de0d
refs/heads/master
2016-09-03T06:28:05.953113
2013-11-25T13:29:30
2013-11-25T13:29:30
3,335,842
0
0
null
null
null
null
UTF-8
Python
false
false
1,897
py
# # Bug: 78484 # Title: [ YAIM_WMS ] Multiple parameter configuration added in condor_config.local # Link: https://savannah.cern.ch/bugs/?78484 # # import logging from libutils.Exceptions import * def run(utils): bug='78484' logging.info("Start regression test for bug %s"%(bug)) logging.warning("To ve...
[ "akretsis@ceid.upatras.gr" ]
akretsis@ceid.upatras.gr
78db5687ec2489651eb51ac69dab6379b7875eba
e7196fd6e0fc1cab8ffc0417fca30947f673f774
/web/tools/MysqlBase.py
818c88eb53e093f1f863ee3dda8593efdc430906
[ "Apache-2.0" ]
permissive
maxis1314/pyutils
6298dc054bd9585e33179755b10e7723713ee053
7e0666c650209155b3da186d09c54cf14825df1e
refs/heads/master
2020-12-23T20:30:09.406487
2017-07-06T10:11:36
2017-07-06T10:11:36
92,569,049
2
0
null
null
null
null
UTF-8
Python
false
false
2,038
py
#-*- encoding:UTF-8 -*- import urllib2 import re import StringIO import gzip import logging import sqlite3 import logutils import urllib import sys import MySQLdb reload(sys) sys.setdefaultencoding('utf8') class MysqlBase: def __init__(self,dbname): self.conn=None self.reconn=True self.db...
[ "maxis1314@163.com" ]
maxis1314@163.com
6d2204fecb5b552d5a2681ae77bc2fd41ebc03da
7ab7d64890a67c8c3931cb96dd49bb065e5fe63e
/python/grpc_client/grpc_cla_test.py
469e0754c5f1259b90e09f5b0cb53ce8624d193c
[ "Apache-2.0" ]
permissive
gitgoready/rpcz
f57c1a90e981a9be530edc552a81058f04b6ac1e
3c33d095e07a5fddd659805c1d351ab54a0d774d
refs/heads/master
2021-01-13T13:19:20.638404
2017-04-11T12:40:37
2017-04-11T12:40:37
78,593,686
0
1
null
2017-01-11T02:10:36
2017-01-11T02:10:36
null
UTF-8
Python
false
false
1,435
py
import dqmvoassetallocationservice_pb2_grpc import dqmvoassetallocationservice_pb2 import grpc import dqvector_pb2 as dqvector__pb2 import dqmatrix_pb2 as dqmatrix__pb2 import time def run(): # creds = grpc.ssl_channel_credentials(grpc.ssl); # creds = grpc.ssl_channel_credentials(open('py.pem').read())#,open('se...
[ "goready@163.com" ]
goready@163.com
a7e12fe087d3ae0a715b5abdef52d114f3c2ff4f
6452098273ff0555d3edf349ed800958cf89b7d8
/Posts/posts/migrations/0003_auto_20190626_1200.py
6fb96575c2c8114c2c9aa2295368ad35fb88895a
[]
no_license
karthik018/DjangoPractice
8a530ec90d6efd7cc9c7122743bc647d6274b736
041e1144e8b6153f5f8c0d5a367472f1e68a9dc6
refs/heads/master
2020-06-11T08:07:59.201541
2019-06-27T08:54:42
2019-06-27T08:54:42
193,900,339
0
0
null
null
null
null
UTF-8
Python
false
false
503
py
# Generated by Django 2.2.2 on 2019-06-26 12:00 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('posts', '0002_auto_20190626_1134'), ] operations = [ migrations.AlterField( model_name='comment...
[ "thinkcreative01karthik@gmail.com" ]
thinkcreative01karthik@gmail.com
815d2c9bd5f867c88c5e37522b09ec2d831d45d3
bb578afbbdf7638c99778945cbee1c6193f17419
/Convolutional_Neural_Network/DataGenarator/image_car.py
e8dde5a4c783bba2bc40da8134a2cc3e59f91238
[]
no_license
sauravk90/deep-learning
555d72e8ee8072e89119d8339d4d998e303a59e8
9bdeab36397b2f207df2c460f7ff2f5c0f995abe
refs/heads/master
2020-04-24T21:58:21.031402
2019-02-25T04:15:16
2019-02-25T04:15:16
172,296,081
0
0
null
null
null
null
UTF-8
Python
false
false
363
py
from google_images_download import google_images_download #importing the library response = google_images_download.googleimagesdownload() # class instantiation arguments = {"keywords":"Car","limit":2000, "print_urls":True, "chromedriver":"chromedriver.exe"} paths = response.download(arguments) print(paths) #print...
[ "saurav.kumar90@hotmail.com" ]
saurav.kumar90@hotmail.com
a67b8d63048fb60de0dfd223615a53ceeea3ebf9
2f216013655cdf8af72fb3c63489de332024afd9
/test.py
9e1e1d700d157f160f7b4490df1641950c0eaae2
[]
no_license
seqprav/5thMarch2019
d2006ef2ad8c67dee1b0a5c467dd58ce3506284c
031d570c31cab8b6c4490cce1a7948d9e48acf8c
refs/heads/master
2020-04-26T21:41:54.878217
2019-03-05T01:47:11
2019-03-05T01:47:11
173,849,251
0
0
null
null
null
null
UTF-8
Python
false
false
838
py
# Starting work on dev branch import csv import pprint from datetime import datetime def convert2ampm(time24: str) -> str: return datetime.strptime(time24, '%H:%M').strftime('%I:%M%p') with open('buzzers.csv') as data: ignore = data.readline() flights = {} for line in data: k, v = line.stri...
[ "seqprav@gmail.com" ]
seqprav@gmail.com
17c54202b854547913d55696fa30b1fe27ccdcf1
c318eaa3c4063a3fd87c773cb6d242056c180135
/test2.py
c09be70711390a6b9809b62586a25cecd3f63d16
[]
no_license
mimisn/rootwindow
c44849d637a041c33866667ed2b3c0cb2fd41c51
08b4719ab820afe59d6616edd445f265a0213e4e
refs/heads/master
2023-09-01T11:53:39.371183
2019-07-21T02:35:12
2019-07-21T02:35:12
198,003,443
0
0
null
2023-07-22T11:24:27
2019-07-21T02:34:21
Python
UTF-8
Python
false
false
1,949
py
from PyQt5 import QtWidgets class MyWindow(QtWidgets.QWidget): def __init__(self): super().__init__() self.setWindowTitle('PyQt5布局示例') # 开始: wlayout = QtWidgets.QHBoxLayout() # 全局布局(1个):水平 hlayout = QtWidgets.QHBoxLayout() # 局部布局(4个):水平、竖直、网格、表单 vlayout = QtWid...
[ "mimisn@163.com" ]
mimisn@163.com
12d804ac9c133638c8215ad476514b39abde353a
ed687d059804912238b4b62f742aa1d8957f7d59
/env/bin/wheel
18a17580f2fa2e6059da7bac7063e45d50a75633
[]
no_license
skieason/python-django-assessment
8b352ecd76e9bbade2dfbc6e41adec2a9a7b1172
cae4dca183943a851d0e28ecdbf86c06273761d8
refs/heads/master
2022-10-07T06:38:31.123476
2020-06-10T21:51:45
2020-06-10T21:51:45
269,227,219
0
0
null
2020-06-04T00:55:53
2020-06-04T00:55:53
null
UTF-8
Python
false
false
289
#!/Users/philliam/Documents/_development/scalar_case_study/python-django-assessment/env/bin/python # -*- coding: utf-8 -*- import re import sys from wheel.tool import main if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) sys.exit(main())
[ "philvarnerlp9@gmail.com" ]
philvarnerlp9@gmail.com
01c70cd54c7ba983dca24fdedac9503fe11c80ca
cc26a1bbae6af3dec61fd27e44484e01da21d36e
/Scientific Expedition/Sum by Type/mission.py
7577f5f610a89a6c3cd896fe72c83b758d036bf5
[]
no_license
ofisser86/py-check-io
6bacef0783987e49f3bf28b9bea74e59e4ebb184
70469deea240f03199072f2dd28d6819815a2624
refs/heads/master
2023-02-02T09:32:53.934629
2020-12-16T13:44:51
2020-12-16T13:44:51
309,277,316
1
0
null
null
null
null
UTF-8
Python
false
false
731
py
from typing import Tuple def sum_by_types(items: list) -> Tuple[str, int]: # your code here return "".join([i for i in items if type(i) is str]), sum([i for i in items if type(i) is int]) if __name__ == '__main__': print("Example:") print(sum_by_types([])) # These "asserts" are used for self-ch...
[ "ofisser86@gmail.com" ]
ofisser86@gmail.com
5accaf4c31a7171c179ad37e1672b2d39ccb1637
10874b503afbe8a244e7ece543455e300b3b10d9
/models/dalle_small/DALLE-pytorch/dalle_pytorch/attention.py
6a1180cf11ae178ca8ec13bf72c1d13615dd416c
[ "MIT" ]
permissive
j-min/DallEval
6f67c2d2c2edb412864118fc7e777c7ddfc0c9bb
e4148183ce2b1a592f193cb4c70c839606a7048d
refs/heads/main
2023-05-22T13:36:37.828483
2022-11-15T00:59:07
2022-11-15T00:59:07
454,800,820
113
7
MIT
2022-12-21T01:27:58
2022-02-02T14:12:12
Jupyter Notebook
UTF-8
Python
false
false
12,834
py
from inspect import isfunction from math import ceil import torch from torch import nn, einsum import torch.nn.functional as F from einops import rearrange, repeat # helpers def exists(val): return val is not None def uniq(arr): return{el: True for el in arr}.keys() def default(val, d): if exists(val):...
[ "heythisischo@gmail.com" ]
heythisischo@gmail.com