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
220 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
257 values
content
stringlengths
2
10.3M
authors
listlengths
1
1
author_id
stringlengths
0
212
44743649534d60a91cc3986c48b9fcb6f15d46bd
30d61ce0b728f31a830db6b6b1954a32551990b2
/src/gui_config/custom/util.py
52c871fa4478b9296be8335390e061416b42f78d
[ "MIT" ]
permissive
hgiesel/anki_set_randomizer
6755dc8489b703887c55a5427bbbdab858f58a65
1a9a22480eb6c0e7f421dc08d36d14920e43dd3e
refs/heads/master
2022-08-24T05:45:13.339132
2020-01-15T17:04:26
2020-01-30T13:56:50
197,258,760
5
0
MIT
2022-07-20T17:28:42
2019-07-16T19:56:27
JavaScript
UTF-8
Python
false
false
90
py
def mapTruthValueToIcon(b): if b: return '✓' else: return '✗'
[ "hengiesel@gmail.com" ]
hengiesel@gmail.com
2f2d2f98b445b7c273a6c0c3b80e0ecc367e2b89
e77d6b3dcc1deb5c7d22eaba6fb00dbc33d0e5ac
/scripts/check-specs.py
16ae37cdb22e56b738e9d406ee80311f3678a753
[ "MIT" ]
permissive
troycurtisjr/portingdb
a6a4d30b78eefacdfe0abb1a0a5be59fb6f5d7be
6c5cf2b82551f4e40fc03d56e5f65d1dd2030d43
refs/heads/master
2021-07-06T19:56:27.646021
2017-09-22T14:39:49
2017-09-22T14:40:33
105,333,401
1
0
null
2017-09-30T02:11:26
2017-09-30T02:11:26
null
UTF-8
Python
false
false
5,099
py
#! /usr/bin/env python3 """Get number of specs which are also used for rhel. Check how many spec files among Fedora packages with naming issues are cross platform, meaning that the same spec file is also used for rhel/epel. This check is pretty naive and gives just general information. It checks spec files for using ...
[ "ishcherb@redhat.com" ]
ishcherb@redhat.com
3c5b287ba292013072af0952810ed48c30cfb9e9
95341c85a8a116dba0d77644360ccfb346ceeb80
/src/api-engine/api/routes/node/serializers.py
9d954df567d1319bff4f28d77173fa89c21c0968
[ "Apache-2.0", "CC-BY-4.0" ]
permissive
kuochunchang/cello
109204905a6be17c47b6aa3268ee4bbfeadce43a
1f778cea3a2021aabadd48e41cdd69ed1f8e979c
refs/heads/master
2020-06-03T05:42:43.108481
2019-05-28T13:45:05
2019-05-28T13:45:05
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,661
py
# # SPDX-License-Identifier: Apache-2.0 # import logging from rest_framework import serializers from api.common.enums import ( Operation, NetworkType, FabricNodeType, FabricVersions, HostType, ) from api.common.serializers import PageQuerySerializer from api.models import Node LOG = logging.getLog...
[ "hightall@me.com" ]
hightall@me.com
596fbd0f3ba50656e01ae10f54ce925cb0d45bc4
70a9b6201ed77235929f4561bfaf2baf20decd3e
/SelfStudy[Python]/Learn_Python/basics/changing_case_in_strings.py
868b21704acd79a9f869cb7e466cb355c335b939
[]
no_license
Troys-Code/Coding
4cb4fce0a7e79dbdf18828e4d32974f58789098d
5b8ee557e7fc2d1ee321c66ebedc596f72fa4bad
refs/heads/master
2023-07-14T14:03:22.789272
2021-08-25T00:22:05
2021-08-25T00:22:05
343,971,313
0
0
null
null
null
null
UTF-8
Python
false
false
619
py
name = "troy schultz" print(name.title()) # Prints Each First Letter In The String As Capitals print(name.upper()) # Prints With All Characters Lower Case print(name.lower()) # Prints With All Characters Upper Case # .lower() and .upper() are useful for user inputs to validate user input with less variations # Troy ...
[ "41653822+Troys-Code@users.noreply.github.com" ]
41653822+Troys-Code@users.noreply.github.com
96e111c9b79508abc86ab994ca72482efa2082de
0db3ffb5060fd0d4a7e1ee59ab1a5f6766f35c11
/4_Feature matching/code/4.6_KNN.py
b286eeff295cbf5749c3387ee1b852e1e517719a
[]
no_license
maibobo/Learn-cv
c525b780f0ce61d0906525dd51902aeab1ba8d75
928c6dae9c12427d1ae6dab7837657b68098f935
refs/heads/master
2020-06-14T10:36:25.655934
2019-07-03T12:50:44
2019-07-03T12:50:44
194,983,444
0
1
null
null
null
null
UTF-8
Python
false
false
1,340
py
# -*- coding:utf-8 -*- import os import cv2 import numpy as np ''' 使用KNN即K近邻算法进行特征匹配 ORB算法 ''' img1 = cv2.imread('orb1.jpg',0) #测试图像img1 # img1 = cv2.cvtColor(img1, cv2.COLOR_BGR2GRAY) img2 = cv2.imread('orb2.jpg',0) ##训练图像img2 # img2 = cv2.cvtColor(img2, cv2.COLOR_BGR2GRAY) orb = cv2.ORB_create...
[ "42796626+maibobo@users.noreply.github.com" ]
42796626+maibobo@users.noreply.github.com
0418b38156676b0628df4bd411124a771259d66b
3d2cf0037809d77f110a1383df4c42c68614487f
/graphs.py
57b3b1613cca1ca7ddd95f281503e5497f7d49f7
[]
no_license
zackbrienza/fantasy-football
469b0a6895a6227ff6c6019cd7748765860dba5a
d483f319292cc596052c08f9ec56902db861bc8b
refs/heads/master
2021-09-05T17:05:24.018307
2018-01-29T21:29:13
2018-01-29T21:29:13
109,536,608
0
0
null
null
null
null
UTF-8
Python
false
false
4,472
py
#Scott Dickson #1/3/2018 #Implementations of various graph algorithms #All take an adjacency list of size n^2 where n is #the number of vertices in the graph from Queue import Queue #Try to find a path fromt the start node to the end node #If found return a list of edges. Nil will be returned if #a path cannot be fou...
[ "sdd48@cornell.edu" ]
sdd48@cornell.edu
020359ee2e96f27dfb8106427a0cac3ff587cb41
f7e511e0dc14d2b23d2bbc1c7023d1efd346829a
/rocon_smartthings_bridge/setup.py
aeb49db35e53c3477c0c68ca0f7000b82d8e1551
[]
no_license
robotics-in-concert/rocon_devices
1f6ffd0968a0cc565a1992b8423e5a497dbd3440
614a190cb9f531c3db83c3e3e4650e8a0971c8c1
refs/heads/develop
2021-01-10T21:06:25.738755
2015-07-28T08:29:35
2015-07-28T08:29:35
18,580,058
10
11
null
2018-02-19T22:24:08
2014-04-09T00:40:15
Python
UTF-8
Python
false
false
233
py
#!/usr/bin/env python from distutils.core import setup from catkin_pkg.python_setup import generate_distutils_setup d = generate_distutils_setup( packages=['rocon_smartthings_bridge'], package_dir={'': 'src'}, ) setup(**d)
[ "jihoonlee.in@gmail.com" ]
jihoonlee.in@gmail.com
5e93c1c35118d3f32a43a70d453bab1653d00a3c
1e9c4294652b0f4699d85516afd54fb5697b4800
/python_exam/0803/mnist_cnn02.py
13b66b9af78378cf5592a9f8e0ee4e3c7dc36b17
[]
no_license
mgh3326/GyeonggiBigDataSpecialist
89c9fbf01036b35efca509ed3f74b9784e44ed19
29192a66df0913c6d9b525436772c8fd51a013ac
refs/heads/master
2023-04-06T07:09:09.057634
2019-06-20T23:35:33
2019-06-20T23:35:33
138,550,772
3
2
null
2023-03-24T22:43:06
2018-06-25T06:10:59
Jupyter Notebook
UTF-8
Python
false
false
4,430
py
# -*- coding: utf-8 -*- """ ml_day4 (2018.08.02) """ from tensorflow.examples.tutorials.mnist import input_data mnist = input_data.read_data_sets('./MNIST_data', one_hot=True) import tensorflow as tf sess = tf.InteractiveSession() x = tf.placeholder(tf.float32, shape=[None, 784]) y_ = tf.placeholder(tf.float32, sha...
[ "mgh3326@naver.com" ]
mgh3326@naver.com
a1a897e0a9c3bc5db171865931e925f1a2a52b18
8195596a47e5d47ec78b585d5ed4b1a9583f61f7
/app.py
1611a2b6eae0dd07fc9bf0c583d9d41aeb8e9ddf
[]
no_license
acoustically/EchoetServer
8f5b92a9dff31c2177f0e9b6b700ad257e478447
454b90105c87dba04ca3fcfb74466211def94ab7
refs/heads/master
2021-07-20T12:03:32.073197
2017-10-29T00:04:20
2017-10-29T00:04:20
108,533,779
0
1
null
2017-10-28T09:48:45
2017-10-27T10:40:26
Python
UTF-8
Python
false
false
858
py
from flask import Flask, request, jsonify, render_template from src.routes.daily_eat import daily_eat from src.routes.user import user from src.routes.food import food from src.routes.user_body import user_body app = Flask(__name__) app.register_blueprint(user, url_prefix="/user") app.register_blueprint(daily_eat, ur...
[ "ubuntu@ip-172-31-8-104.ap-northeast-2.compute.internal" ]
ubuntu@ip-172-31-8-104.ap-northeast-2.compute.internal
d920e855764cded63171a613b96a14801d525791
66932bac8dfdc4c107705e44294409fa1dd05f62
/venv/bin/django-admin
8f3f9f0a350610a30f5cdad40f7ccf0ef27a27d9
[]
no_license
jatia/django
6572d474738aade008930e7210ef0e4ca1c739be
20a97ce78755fb65dd551cf92f8322316ab39984
refs/heads/master
2021-09-07T03:39:02.119441
2018-02-15T15:24:11
2018-02-15T15:24:11
117,251,942
0
0
null
null
null
null
UTF-8
Python
false
false
296
#!/home/jatia/workspace/django/venv/bin/python3 # -*- coding: utf-8 -*- import re import sys from django.core.management import execute_from_command_line if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) sys.exit(execute_from_command_line())
[ "julissa.atia@gmail.com" ]
julissa.atia@gmail.com
26accc85bb295eeec34334972d717689820a06f2
1c822c0d49d7b67b0896c066958148a7b0731924
/Basic_Concepts_of_String_Manipulation/First_day!.py
d6cff37297cfcb07407b916cacdfdf68deaf9adc
[ "MIT" ]
permissive
RKiddle/python_reg_expressions
7e13a16475476c88543fde6dc55b53ec2fccbe37
9e89c1c59677ffa19a4c64a37e92bbea33fad88e
refs/heads/master
2020-06-23T00:34:07.027628
2019-10-27T14:51:32
2019-10-27T14:51:32
198,446,754
0
0
null
null
null
null
UTF-8
Python
false
false
264
py
# Find characters in movie variable length_string = len(movie) # Convert to string to_string = str(length_string) # Predefined variable statement = "Number of characters in this review:" # Concatenate strings and print result print(statement + " " + to_string)
[ "noreply@github.com" ]
RKiddle.noreply@github.com
8d929af30fecbb516a27705d9275e005f0984c4c
e9c43b9df16d171b46e9a28b0862c2ad4619b832
/apc1000x.py
a444e29e92d4f2a11e61ce0ed6f3551a9a78e7b4
[]
no_license
Interra-seven/Zabbix-ex
5e4b16f38f6d6eae92d76f5e02ac227aaa3c1975
058c69c93c684c807ee827e1e5a6c26fdec6fa9d
refs/heads/master
2020-03-23T09:58:32.964830
2019-02-12T12:01:01
2019-02-12T12:01:01
141,418,269
0
0
null
null
null
null
UTF-8
Python
false
false
1,045
py
#!/usr/bin/env python # -*- coding: utf-8 -*- import sys import telnetlib import re import time fin_lst = [] rgx_chg = re.compile('Battery charge[ ]+: ([0-9.]+)') rgx_ld = re.compile('Load[ ]+: ([0-9.]+)') rgx_vac = re.compile('Input voltage[ ]+: ([0-9.]+)') if len(sys.argv) == 2: tln = telnetlib.Telnet(sys.argv[...
[ "root@zabbix.interra.ru" ]
root@zabbix.interra.ru
c10b64b68a73422fbdf6966007bc2b99cc7da702
633088a6c9f0248585b1e90d7857f57a76776906
/aspire-assembly-app.py
4d462da48dc35542cd63ba9b4105e0bb135aed5d
[ "Unlicense" ]
permissive
wmfgrey/assembly
12e351b846247a55fcea692fa8b9a04898252888
db72d2b09064447807ff37b678124e649ee704e2
refs/heads/master
2020-04-09T18:25:02.802949
2018-12-05T12:00:58
2018-12-05T12:00:58
160,511,488
0
0
null
null
null
null
UTF-8
Python
false
false
21,524
py
# Aspire Assembly Registration App # Will Grey # 23/11/2018 import base64 import sqlite3 from tkinter import * import datetime import hashlib import csv class Db(): def __init__(self): self.openDb() self.db.execute("""CREATE TABLE IF NOT EXISTS students ...
[ "noreply@github.com" ]
wmfgrey.noreply@github.com
7d1a9e35199da075a9e9b47dafc3b51e1f1c0ba8
2804432fba5a4fe639d07a207bb01f71e03d9189
/test/cts/tool/CTSConverter/src/nn/specs/V1_2/argmax_1.mod.py
6dc7430affa11a4f7cdba79b73c20f98a03f615b
[ "Apache-2.0", "BSD-3-Clause" ]
permissive
intel/webml-polyfill
5685299e1b6d91a010c5e057685bf010d5646e4f
bd014955c5bcc9dc5465aea06721072f45ab4a75
refs/heads/master
2023-09-01T17:30:55.961667
2023-04-14T01:18:47
2023-04-14T01:18:47
126,892,425
168
75
Apache-2.0
2023-04-14T05:16:41
2018-03-26T21:31:32
Python
UTF-8
Python
false
false
1,025
py
# # Copyright (C) 2018 The Android Open Source Project # # 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 la...
[ "yanx.cui@intel.com" ]
yanx.cui@intel.com
206a46545ce7b3d6a02d574422bf55d6230e4d5b
657a0e7550540657f97ac3f7563054eb4da93651
/Boilermake2018/Lib/site-packages/twitter/__init__.py
c6e433f8e7a51315a4d2a247a08873855fb5ce5c
[ "LicenseRef-scancode-unknown-license-reference", "CC0-1.0" ]
permissive
TejPatel98/voice_your_professional_email
faf4d2c104e12be61184638913ebe298893c5b37
9cc48f7bcd6576a6962711755e5d5d485832128c
refs/heads/master
2022-10-15T03:48:27.767445
2019-04-03T16:56:55
2019-04-03T16:56:55
179,291,180
0
1
CC0-1.0
2022-10-09T13:00:52
2019-04-03T13:01:50
Python
UTF-8
Python
false
false
2,139
py
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright 2007-2018 The Python-Twitter Developers # # 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/LICE...
[ "tpa244@uky.edu" ]
tpa244@uky.edu
c2c5a3bd5bc7aa5c6d90f990321bbb6815626975
46d7bf2d5cfad08ef1301d3b3f54ddf07161df7d
/Jame.py
8020a30c227104ba8eaad48c373ef4c16ff7d026
[]
no_license
SanMuShen/Hobby
6c498cba0091d8c7b7e31b543791a3711bcb2a16
fe132108e4f593e87cf3f533adddd840e2a8de84
refs/heads/master
2020-03-30T00:46:09.771239
2018-09-27T03:53:17
2018-09-27T03:53:17
150,542,929
0
0
null
null
null
null
UTF-8
Python
false
false
48
py
#!/usr/bin/python3 print('你好啊!带土')
[ "yaxu@tedu.cn" ]
yaxu@tedu.cn
3a5f62f6abb917dc1564d007536613a243d9b2b7
6e3dc22393206ffd334fe5510a11e7b914475ab9
/tp1 Funciones/ej1.py
72fd526e4e2fdcf03d442ee8ac2a33e8456ee0c0
[]
no_license
Rodrigo00909/pythonfacultad1
b9d3baf91818daf94bf7eb0a03f514e26a02953b
39af8d9e9f285c0ce338e49edd7d2e2380e60c49
refs/heads/main
2023-02-26T08:01:32.664894
2021-02-05T00:55:07
2021-02-05T00:55:07
332,917,011
0
0
null
null
null
null
UTF-8
Python
false
false
2,139
py
# 1. Desarrollar una función que reciba tres números positivos y devuelva el mayor de # los tres, sólo si éste es único (mayor estricto). En caso de no existir el mayor estricto devolver -1. # No utilizar operadores lógicos (and, or, not). Desarrollar también un programa para ingresar los tres valores, invocar a la ...
[ "noreply@github.com" ]
Rodrigo00909.noreply@github.com
8de02a0c1735cdd7cd60394002e7404d4a42b5d8
c1291afe09bbee423442db59c5054023a8ec3fc9
/seqan/util/py_lib/seqan/auto_build.py
9d2a8936607b6440c2c1fcb8977ac149549b184b
[ "BSD-3-Clause" ]
permissive
xp3i4/linear
ae9e2053cf6021a37a8636c0ec93f75dd91faba8
10b5c152b6760b00ec948bdb7af1065c356f2b54
refs/heads/main
2023-04-15T03:56:42.432451
2023-01-15T03:43:22
2023-01-15T03:43:22
457,251,654
2
1
null
null
null
null
UTF-8
Python
false
false
24,743
py
#!/usr/bin/env python """ Automatic building of SeqAn apps and releases. """ from __future__ import print_function import subprocess import optparse import os.path import re import sys import shutil import tempfile # The git command to use. GIT_BINARY='git' # The CMake command to use. CMAKE_BINARY='cmake' # The def...
[ "cxpan@zedat.fu-berlin.de" ]
cxpan@zedat.fu-berlin.de
04967a4ffe67416e91dcdfacea1e59d437e7c886
28e7f0429e011a7be3da7fe2e1c5ee4cb0a5c4a9
/profilepage/migrations/0009_hearts.py
4e196d4d50dd5aeb05d8e8cc40a1ae160b7af8b9
[]
no_license
Code-Institute-Submissions/adam181189-FriendsDiscovery_JulyResub
ff0c60e2c1d24898895984f3e308635c5b04237b
c0f21e633d84e49047b00ce5a42e9fe8b57801f5
refs/heads/master
2023-06-20T03:34:13.537413
2021-07-17T21:17:25
2021-07-17T21:17:25
388,078,281
0
0
null
null
null
null
UTF-8
Python
false
false
1,016
py
# Generated by Django 3.2.3 on 2021-05-22 21:03 from django.conf import settings from django.db import migrations, models import django.db.models.deletion import django.utils.timezone class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ...
[ "adam181189@gmail.com" ]
adam181189@gmail.com
ffb7f84314f3ce3965341cd0c04f5b5ec5d3771a
fe3e0d0a779ef7e4b4088dcb3ee56d89f669ac8d
/day03/pm/q5.py
9715cbda6cc7d2189c01b95690cfd91332e07b47
[]
no_license
sgmpy/quizzes
c6d389916ec5c75ae2dbf3de51a250352bdf9a8f
714b25969f79bb9744e1b4fb1fbe93d987e59f62
refs/heads/master
2020-04-12T07:07:47.710557
2018-12-20T14:42:10
2018-12-20T14:42:10
162,357,831
0
1
null
null
null
null
UTF-8
Python
false
false
382
py
''' 문제 5. 표준 입력으로 물품 가격 여러 개가 문자열 한 줄로 입력되고, 각 가격은 ;(세미콜론)으로 구분되어 있습니다. 입력된 가격을 높은 가격순으로 출력하는 프로그램을 만드세요. # 입력 예시: 300000;20000;10000 ''' prices = input('물품 가격을 입력하세요: ') # 아래에 코드를 작성해 주세요.
[ "no.water.in.the.house@gmail.com" ]
no.water.in.the.house@gmail.com
12c59a6154a461bf8059070f15b4a4dea294ecf4
e6abe4aca3994c9f98bedb561a522505caff4b7e
/mblog/migrations/0002_auto_20170901_1708.py
d674f72376381be696a04490fe048c76d4c8748f
[]
no_license
has727/newBlog
093d9f93ed0b78d7de76c7f39f8d99e4831c0970
37073ece4c648e136500d727423226cebdf4841e
refs/heads/master
2021-01-21T12:30:48.474803
2017-09-01T09:56:07
2017-09-01T09:56:07
102,074,996
0
0
null
null
null
null
UTF-8
Python
false
false
805
py
# -*- coding: utf-8 -*- # Generated by Django 1.11.4 on 2017-09-01 09:08 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): dependencies = [ migrations.swappable_depende...
[ "has727@outlook.com" ]
has727@outlook.com
5b51126a4fd9d20c0b17017409aed3f5df7dac5d
add47f91c68d6a7f0b1d8f60455594aba7dcf61c
/scripts/main.py
73887ba21d067dfb0229ea09f68947c9aa194428
[]
no_license
thejusp/BurnLaptop
7991a3abcafafb783eeb3019d3403f94158feb95
0dda109d3d2971b15bba02fe65d8d962971f1f72
refs/heads/master
2021-06-26T01:50:09.513248
2021-04-14T14:25:14
2021-04-14T14:25:14
226,454,013
0
0
null
null
null
null
UTF-8
Python
false
false
9,382
py
#!/usr/bin/env python import numpy as np import datastructure as ds import scipy.stats as ss from astropy.table import Table import matplotlib.pyplot as plt datastructure = ds.DataStructure() # Note: Software Sequences # [ G1 , G2 , G3 , G4 , G5 ] # [ SVG, WOT, TSR, PTN, COW] A_G1 = [datastructure.SVG.A.temperatu...
[ "thejus@lionsbot.com" ]
thejus@lionsbot.com
09dbe557b734959de714b524c4c6d01b5e629ece
40f68e2d7bf25fe6621a35f547f83fd003398c11
/MShop/views.py
eff3df95af950cce74a484274f89e0e0b4db7ad9
[]
no_license
DelaCerna-WebDev2/TasaShop
91fc5c8828ef88fe0a7d5be4f71a9da91d804e20
c3c30bdc11f85b071281b3658151647a4115b647
refs/heads/main
2023-05-09T08:39:01.236809
2021-06-04T00:44:28
2021-06-04T00:44:28
373,036,235
0
0
null
null
null
null
UTF-8
Python
false
false
571
py
from django.shortcuts import render from .models import * def shop(request): products = Product.objects.all() cont = {'products': products} return render(request, 'shop.html', cont) def cart(request): if request.user.is_authenticated: customer = request.user.customer order, created = Order.objects.get_or_cre...
[ "sharalyn.delacerna@gsfe.tupcavite.edu.ph" ]
sharalyn.delacerna@gsfe.tupcavite.edu.ph
b8fe7ae8b85c3bcd71ac6f2dae28c73ba24a674b
d7016f69993570a1c55974582cda899ff70907ec
/sdk/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2019_04_01/aio/operations/_registries_operations.py
96c7dd2ba66633f991630f8e2ddcd4c222a39f8a
[ "MIT", "LicenseRef-scancode-generic-cla", "LGPL-2.1-or-later" ]
permissive
kurtzeborn/azure-sdk-for-python
51ca636ad26ca51bc0c9e6865332781787e6f882
b23e71b289c71f179b9cf9b8c75b1922833a542a
refs/heads/main
2023-03-21T14:19:50.299852
2023-02-15T13:30:47
2023-02-15T13:30:47
157,927,277
0
0
MIT
2022-07-19T08:05:23
2018-11-16T22:15:30
Python
UTF-8
Python
false
false
10,664
py
# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRe...
[ "noreply@github.com" ]
kurtzeborn.noreply@github.com
d3a7e0ce6c8f1bf4acb2acb0c1a2ea60044ca6ad
b2d36c05e9eb5b7ea3ec4f4eba682703d536e137
/hclass.py
ce761b75ecc1affb275fb34928f1051fd01db5e2
[]
no_license
z-positive/drweb
52d72df835b3c5c9f376b53907c371990db99818
2506b2ae4aca1bd46cec9ee750225114d75ca4b4
refs/heads/master
2020-04-01T17:44:44.829721
2018-10-29T07:52:02
2018-10-29T07:52:02
153,447,845
0
0
null
null
null
null
UTF-8
Python
false
false
1,413
py
class Handle: objects = {} def __init__(self, query): self.elements = query.split(' ') self.router(self.elements[0]) print(self.objects) def router(self, action): if action == 'SET': self.objects[self.elements[1]] = self.elements[2] ...
[ "noreply@github.com" ]
z-positive.noreply@github.com
80e3880492a040c298690f13180e5e63662152df
8be5db190392dc87ab24584b0a3518329320ac8a
/fid/utils/printing.py
52d7c24a2a6bb66ac8d592439d8545e4c9749234
[ "MIT" ]
permissive
jma100/SPADE_eval
6eccead21879bf5195e82d2dfb45ca79c2599de3
73ae45e79a7296651e9ea4091bffaf5b154d15ec
refs/heads/master
2020-09-25T23:31:00.828438
2019-12-05T17:53:40
2019-12-05T17:53:40
226,113,754
0
0
null
null
null
null
UTF-8
Python
false
false
503
py
import torch # TODO: add zero padded int def format_str_one(v, float_prec=6): if isinstance(v, torch.Tensor) and v.numel() == 1: v = v.item() if isinstance(v, float): return ('{:.' + str(float_prec) + 'f}').format(v) return str(v) def format_str(*args, format_opts={}, **kwargs): ss =...
[ "jingweim@visiongpu22.csail.mit.edu" ]
jingweim@visiongpu22.csail.mit.edu
f8550d69577aae249382d041cd32bcab3d3c55fb
b87dbd94e7ec70aab888dfeeb23bcfedc5bc22a8
/TCP/2/upload.py
914662f389e3af1cd2d122f2ed3a0e55c305c021
[]
no_license
CostSiwasit/305445-Network
105d93b5f8feb828ca7eb221c45b3e53555866dd
ac809c655b7cc269dbe736e00669e1ec4fab3ad3
refs/heads/master
2021-05-09T19:11:04.100812
2018-01-23T16:05:12
2018-01-23T16:05:12
118,633,296
0
0
null
null
null
null
UTF-8
Python
false
false
623
py
import sys import socket import os TCP_IP = "127.0.0.1" TCP_PORT = 5007 FILE_NAME = 'IMG_001.jpg' print "TCP target IP:", TCP_IP print "TCP target port:", TCP_PORT print "Image:", FILE_NAME sock = socket.socket(socket.AF_INET,socket.SOCK_STREAM) sock.bind((TCP_IP,TCP_PORT)) sock.listen(10) while 1: data,addr ...
[ "noreply@github.com" ]
CostSiwasit.noreply@github.com
7f3bb8b0f3ee8e09d8543a0fad022eb658cbf932
002bc333a1cbd4c629037d4cc0162844a29e342d
/book1/ch06/stack.py
1a974f0deff0709865c9e38f1f0ee5f41c0dd5c1
[ "MIT" ]
permissive
dragancvetic/py_training
4c23a15e53852b2ce0eb48619757b1fe94648d67
f27fa021e630fa16882a0438e009a73e11d9515b
refs/heads/master
2016-08-05T11:06:21.816033
2015-08-23T20:57:57
2015-08-23T20:57:57
41,202,745
0
0
null
null
null
null
UTF-8
Python
false
false
975
py
#!/usr/bin/env python ''' An example of using list as a text stack ''' stack=[] def pushit(): stack.append(raw_input('Enter new string: ').strip()) def popit(): if len(stack) == 0: print "There is nothing in stack" else: stack.pop() print 'Removed [', 'stack.pop()', ']' def views...
[ "dragan.m.cvetic@gmail.com" ]
dragan.m.cvetic@gmail.com
3eb870c63aff20c6821a235a064079297001494b
2289bc6c6307753839d128782d6feac16881b568
/svn/errors.py
56ae0b721705c81f719a70b9d372d872f28d82b2
[]
no_license
IARI/asp_grader
2fca4c6f7b55a483ee9e21f8759af241316e814c
35bd20b4f49dbe470be5952de4fc7e834828acca
refs/heads/master
2021-01-10T17:47:01.092880
2016-04-13T13:37:42
2016-04-13T13:37:42
55,492,782
0
0
null
null
null
null
UTF-8
Python
false
false
10,788
py
from enum import IntEnum import types class SVNError(ValueError): def __init__(self, message, returncode, cmd): super().__init__(message) self.message = message self.svn_errcode = None self.returncode = returncode self.cmd = cmd def __str__(self): return "Comma...
[ "jjarecki@mruecker-desktop" ]
jjarecki@mruecker-desktop
d3f0507bedcb7480314209d9473afa6749e406ff
e1f8bb28b022720445debea589c9cf091103a303
/doc/sphinxext/mock_gui_toolkits.py
097a3409b16793df0a2333fa9b2e06ab2289e15a
[]
no_license
demotu/matplotlib
e5a4e6c7047373b3ead918c40c97f93eb09c562d
1662e05278ecaea064b9149c4fcb15df9f337862
refs/heads/master
2021-01-22T00:06:39.310427
2018-06-12T20:38:12
2018-06-12T20:38:12
24,751,842
1
0
null
2018-06-12T20:38:13
2014-10-03T08:38:36
Python
UTF-8
Python
false
false
6,886
py
import sys from unittest.mock import MagicMock class MyCairoCffi(MagicMock): pass class MyPyQt4(MagicMock): class QtGui(object): # PyQt4.QtGui public classes. # Generated with # textwrap.fill([name for name in dir(PyQt4.QtGui) # if isinstance(getattr(PyQt4.QtGu...
[ "anntzer.lee@gmail.com" ]
anntzer.lee@gmail.com
4816cdf55b4591eae540be22cb3795910608a838
cf0ae24e1df5e38c0952d5b1eb73799df92b67dd
/user_group/urls.py
24ae4f995ba232e7ca465df886e4ca99411d0f56
[]
no_license
gunarevuri/User_Specific_Roles
8b3f7656261b9a577ba1feb25b6e887a0aa19586
b679fc2e481cf0204d8fe3447a83ec7bae6627ad
refs/heads/master
2022-11-30T15:27:30.847116
2020-08-16T14:21:15
2020-08-16T14:21:15
287,444,982
2
0
null
null
null
null
UTF-8
Python
false
false
2,675
py
from django.contrib import admin from django.urls import path from app import views from django.contrib.auth import views as auth_views from rest_framework_jwt.views import obtain_jwt_token, verify_jwt_token, refresh_jwt_token urlpatterns = [ path('admin/', admin.site.urls), path('', views.home, name='home'), pat...
[ "gunarevuri@gmail.com" ]
gunarevuri@gmail.com
22ee7ccbcbad29146f0ad48648691bdaa31a3adc
97db95833780dad8537a647a7ff90d0e2eeec686
/forcefields/alkanes/propane/TRAPPE2FESST_2.0.py
f4e1a6c1fc7b4a0f5bbf761a591f06571fb51549
[]
no_license
chr218/TRAPPE_ff_FEASST
3c21460f8f353bb0a72a2664d156b32c508ba7eb
afcf7717b11c62f61e39b8285b0ea3053ac215ec
refs/heads/main
2022-12-31T23:03:38.624039
2020-10-23T05:27:22
2020-10-23T05:27:22
305,815,123
0
0
null
null
null
null
UTF-8
Python
false
false
11,146
py
# -*- coding: utf-8 -*- """ Spyder Editor The purpose of this code is to convert the parameters taken from Siepmann's website (TRAPPE-UA) into FEASST readible input files. The input files are restrcited to rigid molecules. Author: Christopher Rzepa email: cvr5246@gmail.com """ import numpy as np import time import s...
[ "chr218@sol.cc.lehigh.edu" ]
chr218@sol.cc.lehigh.edu
3763a13d4467d60994b0eaf0d4b6f867b09314da
7760d9cddd00041afa308c739fd3de23800c14c6
/urls.py
8a34fd657d1dc7da3b829174179b5a434ec7f866
[]
no_license
IanJames2/LogandReg_Python
01a9ebd3ad14c9237c37c8010f7523eb43d68b56
02fb6d520b173e5ff6af67ff520e7b5dfaeed0f4
refs/heads/main
2023-04-19T07:28:26.376232
2021-04-29T16:23:55
2021-04-29T16:23:55
362,627,131
1
0
null
null
null
null
UTF-8
Python
false
false
313
py
from django.urls import path from . import views urlpatterns = [ path('', views.index), path('login', views.login), path('users', views.register), path('addmovie', views.movie_input), path('movie_added', views.added_movie), path('logout', views.logout) ] #dashboard = success
[ "noreply@github.com" ]
IanJames2.noreply@github.com
6a4675054e6b1622b80d37ae794ec9fbb98e9ef6
bdd2bbef297d6edd3d335c48ab89955925d331d5
/encyclopedia/urls.py
5f0ded8610846862e5b0f87a8029d45d825b1c9c
[]
no_license
michelle2014/CS50W-Wiki
424569bb1e2fd7c83fa7ff2a98c51821bcfc04fb
0301e48db06720b0419c5939816a9be345dff9b0
refs/heads/master
2023-07-28T05:05:42.512177
2021-09-05T05:33:06
2021-09-05T05:33:06
327,516,261
2
1
null
null
null
null
UTF-8
Python
false
false
312
py
from django.urls import path from . import views urlpatterns = [ path("", views.index, name="index"), path("create", views.create, name="create"), path("edit/<str:title>", views.edit, name="edit"), path("search", views.search, name="search"), path("<str:title>", views.entry, name="entry") ]
[ "michelle.transbetter@gmail.com" ]
michelle.transbetter@gmail.com
c7432b46e7815589e67b5f13126792906baa874b
711756b796d68035dc6a39060515200d1d37a274
/output_cog_tags/optimized_659.py
2a149860964006fc23b9d40cde8de4ed76a7020a
[]
no_license
batxes/exocyst_scripts
8b109c279c93dd68c1d55ed64ad3cca93e3c95ca
a6c487d5053b9b67db22c59865e4ef2417e53030
refs/heads/master
2020-06-16T20:16:24.840725
2016-11-30T16:23:16
2016-11-30T16:23:16
75,075,164
0
0
null
null
null
null
UTF-8
Python
false
false
4,583
py
import _surface import chimera try: import chimera.runCommand except: pass from VolumePath import markerset as ms try: from VolumePath import Marker_Set, Link new_marker_set=Marker_Set except: from VolumePath import volume_path_dialog d= volume_path_dialog(True) new_marker_set= d.new_marker_set marker_set...
[ "batxes@gmail.com" ]
batxes@gmail.com
a7a105f0306eb834baeef78f4a9c96a64ce5032b
3df5a2ff77403c077199853c0fa7afe49c290568
/python/smache/exceptions.py
bf0ce2c7caa4d87bf4aeae1138233f7fdab0a001
[]
no_license
bruce2008github/smache
d3370b494b411790e17088014c40347838aaf97b
be34b7370ef946a01293dd8e539bf976d25cf4f4
refs/heads/master
2021-01-18T21:00:07.097570
2011-01-03T16:59:47
2011-01-03T16:59:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
167
py
#!/usr/bin/env python class SmacheException(Exception): pass class ConfigException(SmacheException): pass class BackendException(SmacheException): pass
[ "amscanne@adin-ubuntu-dev.(none)" ]
amscanne@adin-ubuntu-dev.(none)
27a2b8233ca588d5ce1b4954241ac87f2ee31b23
99e44f844d78de330391f2b17bbf2e293bf24b1b
/pytorch/tools/autograd/nested_dict.py
e1e09814199153aa94647c2246c983b2ba3ea303
[ "BSD-3-Clause", "LicenseRef-scancode-generic-cla", "Apache-2.0", "BSD-2-Clause", "MIT" ]
permissive
raghavnauhria/whatmt
be10d57bcd6134dd5714d0c4058abd56a1b35a13
c20483a437c82936cb0fb8080925e37b9c4bba87
refs/heads/master
2022-12-04T05:39:24.601698
2019-07-22T09:43:30
2019-07-22T09:43:30
193,026,689
0
1
MIT
2022-11-28T17:50:19
2019-06-21T03:48:20
C++
UTF-8
Python
false
false
581
py
# TODO: refactor nested_dict into common library with ATen class nested_dict(object): """ A nested dict is a dictionary with a parent. If key lookup fails, it recursively continues into the parent. Writes always happen to the top level dict. """ def __init__(self, base, parent): self....
[ "rnauhria@gmail.com" ]
rnauhria@gmail.com
5a28b6bebb2edcf6d7af16184dc4db6fd1d2ef8e
66e9207731dad5cefcf54ddad80607c269409d7b
/csv_creation1/new/csv_format.py
ddde3fdedbe59f1bc3791478426ecdef48bc1c69
[]
no_license
PawarKishori/Alignment1
2949df14734680264e0597c764086060e61ae704
d824957037b7a0c585d9751485e485e3b9f20679
refs/heads/master
2020-05-24T16:36:22.745901
2020-01-21T07:41:03
2020-01-21T07:41:03
187,359,528
0
0
null
null
null
null
UTF-8
Python
false
false
15,345
py
import csv import re log=open('file_missing_log','a') flag=0 flag4=0 flag5=0 flag6=0 flag7=0 flag8=0 flag9=0 flagg=0 flag10=0 flag11=0 flag12=0 flag13=0 try: f=open("word.dat",'r').readlines() n=len(f)-1 except: flag=1 log.write("E_id_word_dictionary.dat not found\n") try: f4=open("parser_alignmen...
[ "saumya@anu" ]
saumya@anu
0f02c25f0dcf3729964ffb43624483cced191392
903e81d4f5c9a6067df4df987213478ed16f67f6
/Bike_Rental_System/BikeRental.py
ec33d4e7220dd8014455b40ec6150c2968e774cc
[]
no_license
imdadhaq/Oop-Bike-Rental-System
d873a8e3dc874f79939f89f51838648dab4b2494
3a85703524b54e011dec9219aaedda3a46a1e038
refs/heads/main
2023-07-08T22:38:53.096250
2021-08-09T15:41:13
2021-08-09T15:41:13
394,348,132
0
0
null
null
null
null
UTF-8
Python
false
false
4,204
py
import datetime class BikeRental: # initialize stock def __init__(self, stock=0): self.stock = stock # Display the Bikes are currently available def displaystock(self): print("We have Currently {} bikes avaiable to rent ".format(self.stock)) return self.stock # Rent bike ...
[ "imdadhaque2210@gmail.com" ]
imdadhaque2210@gmail.com
b0e2004c44bed1e345528f2bcf3f3a675e16cb6e
ccbfc3dcc7fdd7b1cf245cadbc1b73f555ba1912
/.pybuilder/plugins/cpython-3.6.9.final.0/bin/flake8
85ae548865b7e6570e57b01064285b6ebd58e6ab
[]
no_license
dwalke22/cs3280Project5
028b4655b7d3433a018838052ac2bd34ad9665d1
b73187ad348afa6f8c3164a28e5b3caff2c8420b
refs/heads/master
2023-01-19T22:35:42.196076
2020-12-02T18:40:58
2020-12-02T18:40:58
316,641,730
0
0
null
null
null
null
UTF-8
Python
false
false
288
#!/home/dwalke22/Desktop/cs3280Project5/.pybuilder/plugins/cpython-3.6.9.final.0/bin/python3 # -*- coding: utf-8 -*- import re import sys from flake8.main.cli import main if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) sys.exit(main())
[ "dwalke22@cs3280-vm10.uwg.westga.edu" ]
dwalke22@cs3280-vm10.uwg.westga.edu
1633bb7068e1cd41998909fb9a5009c900e1c856
9bd7cb46c2628003d200e1865740f50f7ebdd538
/BuildWord.py
02d30f40613eeabcbf0fe41cd0f1a2bfc3a021f9
[]
no_license
ScoobyLuffyDoo/Hang-Man-Python
7c96861d552c116b1fc52cb30cff1469babe26fc
06491ccccb5226919c0d0a166ad2b3da5ef2b7c1
refs/heads/master
2023-07-27T01:00:41.002870
2021-09-06T12:37:22
2021-09-06T12:37:22
318,529,835
0
0
null
null
null
null
UTF-8
Python
false
false
394
py
import requests import random import json # Retrives a random word form random word generator def get_randomWord(): url = "https://randomwordgenerator.com/json/words_ws.json" response = requests.request("GET",url) return_results = response.json() randomNumber= random.randint(1,3256) randomWord = r...
[ "jc.smal626@gmail.com" ]
jc.smal626@gmail.com
21b9c22f7f7d443ed421bf0db7af633c519aeda9
3849a67138f907e9336a2bfceda43057cb28e916
/utilities/manual_augmentation.py
d06b3640c64897a6712c6f77502e0fe7bf17448d
[]
no_license
wallacelibrary/OCR-Handwriting
ccb47bdc8f58e5f4514fb47831e76a5404d9c2e7
a02b9982c9db7fa3c193dec07d808762da4e1b74
refs/heads/master
2022-05-08T13:02:44.403883
2019-08-16T18:37:55
2019-08-16T18:37:55
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,684
py
# -*- coding: utf-8 -*- """ Created on Tue Jul 16 09:55:22 2019 @author: matth """ root_dir = r'C:\Users\matth\Documents\GitHub\OCR-Handwriting\bin\src\testing\convnet-smallset-ocr-test3\testing-data\original-sets' from scipy import ndarray import random import skimage as sk from skimage import transform from skimag...
[ "32942111+mattlm0831@users.noreply.github.com" ]
32942111+mattlm0831@users.noreply.github.com
12d4cddcaf7218ea7fe7c363f8c5fb94f5bcd2e0
1688311b1287e9d38e27a44388f50568d9e07ea2
/blog/migrations/0007_auto_20190722_1243.py
8f8bf2ccf0851b2052ef4963725ead7c1d81589d
[]
no_license
Leeheejin1/teamprjt
e7e606b9411fde1b772f02ac27350304085a545a
8d3ab815b143597f6c2d4e912ef8a1549abb516d
refs/heads/master
2022-12-12T11:54:48.500322
2019-07-25T06:33:24
2019-07-25T06:33:24
198,760,424
0
0
null
2022-12-08T05:55:41
2019-07-25T05:00:13
JavaScript
UTF-8
Python
false
false
1,129
py
# Generated by Django 2.2 on 2019-07-22 03:43 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('blog', '0006_auto_20190531_1715'), ] operations = [ migrations.AlterField( ...
[ "dlgmlwls3133@naver.com" ]
dlgmlwls3133@naver.com
46c542c9c5dd88deb06d9cc8b2a7920ee17809fd
08642798431f3dda1cf0529acb4435c9f38f3140
/tests/RunTest.py
10fb7c0152f524d5994ef0b3c873b5e8aca326b9
[ "MIT" ]
permissive
dsoon/pseudonaja
13bb11938d7c9483a42351624a802b97468190ca
2c94ba82efaae9bdf2b3f80d4f31b35b467c7d93
refs/heads/master
2023-08-26T18:27:58.365955
2021-10-20T12:29:32
2021-10-20T12:29:32
356,291,608
1
1
MIT
2021-10-20T11:27:33
2021-04-09T14:04:21
Python
UTF-8
Python
false
false
1,695
py
import sys, os sys.path += ['pseudonaja'] print(os.getcwd()) import pseudonaja.c.PInterpreter as pscint import json class RunTest: class Keyboard: def __init__(self, inputs): self.lines = inputs self.count = -1 def readline(self): self.count += 1 ...
[ "david.soon@outlook.com" ]
david.soon@outlook.com
5b9cb8a7ad424b8d939c86755a3ddeb0eb9efb65
209d360630262aaf2a8e600fe7efb6107fbba4f2
/python-app-basic/connect2redis.py
b5cc60a8f4c7c407ef43e3def7e4e9823acac2d4
[]
no_license
hemantdindi/redis-sentinel-docker-swarm
1f1bdc9797b56a4f9f777d6ffb677cd714cdfea2
bc7f5b9a5ebc9893223ead41770495b3c27e95f4
refs/heads/master
2022-10-21T20:21:10.736119
2020-06-13T12:46:53
2020-06-13T12:46:53
271,963,964
5
3
null
null
null
null
UTF-8
Python
false
false
503
py
from redis.sentinel import Sentinel import redis #sentinel = Sentinel([('node01', 26379),('node02',26379),('node03',26379)],password='F9HaeCD6df24nLpn',socket_timeout=0.5) sentinel = Sentinel([('redis-sentinel', 26379)],password='7cBEcwf6mV36Rx3S',socket_timeout=0.5) host, port = sentinel.discover_master('redis-cache')...
[ "hemantdindi@users.noreply.github.com" ]
hemantdindi@users.noreply.github.com
99286b2ac35687ea7459db1976eefff58c6ac283
3a3c7ab7d9cadfc5610888e07dbb9d6eaaf8aa01
/scripts/OpenFOAM/generateBodyOBJFile.py
b2dfdaab64702e895cf9fb115ccd64fdb7f598dc
[ "MIT" ]
permissive
cubayang/snake
7e430e8bcbf4acf99c007e5c1a646e0e6f45280c
f78844235f4d9b815b53a707f276dd634bce7a07
refs/heads/master
2021-01-17T20:24:27.359901
2016-08-18T00:34:18
2016-08-18T00:34:18
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,641
py
# file: generateBodyOBJFile.py # author: Olivier Mesnard (mesnardo@gwu.edu) # brief: Convert input coordinates file into a OBJ file. import os import argparse from snake.openfoam import OBJFile from snake import miscellaneous def parse_command_line(): """Parses the command-line.""" print('[info] parsing comman...
[ "mesnardo@gwu.edu" ]
mesnardo@gwu.edu
1e3d9cea7ebe335cd86c44fb107dd4becb2b36f5
34e07a5a711c52c4b0aabd353ec0bf06e93edfa7
/feature_importance.py
7a51ff2481d6fd8b081d410038b07c0c76613c0d
[]
no_license
Tools-Demo/PR_CodeSmells
bc769c2ea1b3de6c37da8990c4b65b8efd557255
81c8f1574fb66c44e8f68da652c2febb61e5fd48
refs/heads/main
2023-07-19T23:41:07.128083
2023-07-12T07:46:25
2023-07-12T07:46:25
390,305,788
0
1
null
null
null
null
UTF-8
Python
false
false
2,653
py
# Calculate Feature importance # random forest for feature importance on a classification problem import pandas as pd from sklearn.datasets import make_regression from sklearn.ensemble import RandomForestClassifier from matplotlib import pyplot import seaborn as sns import matplotlib.pyplot as plt df = pd.r...
[ "noreply@github.com" ]
Tools-Demo.noreply@github.com
51a5de5a76db69817407b3251044c8d8f122a59f
264f392530710b287ac54f40ea805638c6348cc3
/scripts/run_tabular_bayes_dice.py
3326a3f91fd93e0b96222614b928658af9ee75ab
[ "Apache-2.0" ]
permissive
google-research/dice_rl
b26dd2231b0a664f11e0ede08d8209a4ace1cd2f
6551950608ad0472ddf6e8f4075f51793c9d2763
refs/heads/master
2023-08-06T21:35:15.690175
2023-01-30T19:26:12
2023-01-30T19:27:38
285,369,787
106
14
Apache-2.0
2023-01-30T19:27:44
2020-08-05T18:15:53
Python
UTF-8
Python
false
false
6,480
py
# Copyright 2020 Google LLC. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
[ "copybara-worker@google.com" ]
copybara-worker@google.com
1de610a31728f101b5dad9f241a84f4d1262e52b
66a262fe264882adfdd45c2e7507988f4b4f1954
/2019-INSomnihack-teaser/onewrite/onewrite.py
542e338c812fa4b11b4966f9f2f8cd5fd6f203e6
[]
no_license
Nepire/Pwn-Collection
1b5bfb6a5a6171da0ccae970caf16d39507d54b4
3a63710e66683c117918fc716079acdafd010010
refs/heads/master
2020-03-15T23:50:05.645571
2019-03-11T06:46:23
2019-03-11T06:46:23
132,401,669
0
0
null
2019-01-26T15:37:05
2018-05-07T03:22:03
Python
UTF-8
Python
false
false
5,436
py
#! /usr/bin/env python # -*- coding: utf-8 -*- # Author = nepire # # Distributed under terms of the MIT license. from pwn import* context(os='linux',arch='amd64',log_level='debug') n = process('./onewrite') #n = remote('onewrite.teaser.insomnihack.ch',1337) elf = ELF('./onewrite') def leak_stack(): n.recvuntil('>'...
[ "3066574695@qq.com" ]
3066574695@qq.com
4771d33f450e1a572a88312fad7e53a8ee9587d5
288710df36e1fc95f34a8b550ab7c26e59067af7
/Naming_Service_Project /server.py
e9b2be55068be83ec6d834e82be73c9564bfc808
[]
no_license
nadrane/LearnC
0b0f25cdf89f20292d402d60a785a51a6e06062f
9f0d67c0ee66111052d20e8e029307317c5891bc
refs/heads/master
2020-04-10T19:08:06.423197
2015-03-04T15:22:14
2015-03-04T15:22:14
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,566
py
import socket import threading import signal MAX_RECEIVE_LENGTH = 2048 class StoppableThread(threading.Thread): """Thread class with a stop() method. The thread itself has to check regularly for the stopped() condition.""" def __init__(self, *args, **kwargs): super(StoppableThread, self).__init__...
[ "nicholasdrane@gmail.com" ]
nicholasdrane@gmail.com
ceabc15d9478f8383faa3bce689875d157882138
56d3afdc5307ddaad2281d75ebeecf6ad499cf3a
/tic_tac_toe.py
501e6ec6e4b1685fea2de71408f0de0c2d10405e
[]
no_license
ianbrayoni/tictactoe
5cb64ee19b48cb7c901ae86accdc84ca527311ce
ed2563db15d7b791b7f0c32e87d1751a26030445
refs/heads/master
2022-12-10T07:51:59.910314
2020-01-28T18:25:17
2020-01-28T18:25:17
161,775,273
3
0
null
2022-12-08T03:30:57
2018-12-14T11:25:04
Python
UTF-8
Python
false
false
6,972
py
import random X = "x" O = "o" EMPTY = " " NUM_BOARD_POSITIONS = 9 WINNING_POSITIONS = ( (1, 2, 3), (4, 5, 6), (7, 8, 9), (1, 4, 7), (2, 5, 8), (3, 6, 9), (3, 5, 7), (1, 5, 9), ) def create_board(str_board): """ Convert string representation of the tictactoe board into a list ...
[ "ian.baraza@jumo.world" ]
ian.baraza@jumo.world
27be5fc47a6b530183918059c4a5da41219fe0ae
fb382bb253b1d3ef50009421d2fe266824d10a84
/peach/handlers/flask/api.py
c981210b320d105119d7df9d5cd12d61661200e5
[ "MIT" ]
permissive
craigpmc/peach
e29f260fa03cf35214f5a7347846e25958c72d54
503a0b00ed1562e8d619c5c6f4ca5be6c1d17339
refs/heads/master
2020-03-26T06:56:12.993223
2017-05-13T23:01:54
2017-05-13T23:01:54
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,762
py
import flask_restful from flask import Blueprint, jsonify, make_response from peach.rest.base_api import ApiFactory, ApiException class FlaskApiFactory(ApiFactory): def _build_api(self, app, api_def): api_blueprint = Blueprint(api_def.name, api_def.name, url_prefix=api_def.prefix) api_blueprint.c...
[ "seba@localhost.localdomain" ]
seba@localhost.localdomain
9a30a5346928151a8854ade6050e0044f260903c
443ac26b4484b30512022ad3d11a1479e2a274c1
/lexer_rules.py
76d9e18bfa263517de30c5653b34e6ab66d791e8
[]
no_license
eduardpii/Lexer_Parser
5f98ae0a109828c96a50d4d4e519a5dae5f5d4f7
2eecb62f91a3ecdba5b742d897f4db9c288f38c8
refs/heads/master
2020-03-17T11:21:35.031988
2018-05-15T20:12:44
2018-05-15T20:12:44
133,548,506
0
0
null
null
null
null
UTF-8
Python
false
false
697
py
import sys import re import ply.lex as lex tokens = ['NUMBER','PLUS','TIMES','LPAREN','RPAREN','MINUS','DIVIDE' ] t_ignore = ' \t\n' t_PLUS = r"\+" t_TIMES = r"\*" t_LPAREN = r"\(" t_RPAREN = r"\)" t_MINUS = r"-" t_DIVIDE = r"/" def t_NUMBER(token): r"[1-9][0-9]*" token.value = int(token.value) return t...
[ "noreply@github.com" ]
eduardpii.noreply@github.com
191c02bf89080200ebe8e1069aea04fcdc50c317
0c9918f2e14ea5f63f6780ddcb24ae38fd98d1e7
/sha.py
aaa1d6155e4148af04137a197c272ddf99954b5f
[]
no_license
oguzpamuk/oguzpamuk.com
73889fc4b7439f83bab23b7604de4792fcf661f6
a99d1e862f89b9be850b6beb25bef50a9ce4a163
refs/heads/master
2020-05-23T08:05:23.585172
2016-11-12T13:02:08
2016-11-12T13:02:08
69,728,060
0
0
null
null
null
null
UTF-8
Python
false
false
932
py
#!/usr/bin/python # -*- coding: utf-8 -*- ''' Author : Oguz Pamuk Date : 12.11.2016 ''' import hashlib def getSHA1ValueForString(plaintext): instance = hashlib.sha1() instance.update(plaintext) return instance.hexdigest() def getSHA224ValueForString(plaintext): instance = hashlib.sha224() instance.update(p...
[ "oguzcanpamuk@gmail.com" ]
oguzcanpamuk@gmail.com
6a589c3f2246fe20b2c1aa3620a55f667b64a3d0
6d57d900dd04fbc8bc06da1570b91bf110d2b46a
/coins.py
b5c9765e9cd35e410a720eac2bc19e54b2849753
[]
no_license
seilcho7/week_1-python
3644d25bc3921ad6e5a545e991df5edef3811030
71f620c00d09a975c3f5a3f53a56327b30ed64ea
refs/heads/master
2020-04-24T00:37:09.136987
2019-02-20T00:15:25
2019-02-20T00:15:25
null
0
0
null
null
null
null
UTF-8
Python
false
false
253
py
coins = 0 no_stop = True while no_stop: print("You have %d coins." % (coins)) ask_coins = input("Do you want another? ") if ask_coins == "yes": coins = coins + 1 elif ask_coins =="no": print("Bye") stop = False
[ "seilcho7@hotmail.com" ]
seilcho7@hotmail.com
a412224fa7b20001afa3b1a7ae02d7fa57aef086
64cd387bd26410d072571d579ff3791e8729e8ef
/modeling/attention.py
71d12c40f14544d8f03e214d51fa04b65bd512bb
[ "Apache-2.0" ]
permissive
xdeng7/scale-aware_da
41f064022f61a47bb31c20b511886318803765ac
c69066524b4d234441081d587d0afc45fa2f585d
refs/heads/main
2023-03-11T19:24:29.304387
2021-03-04T01:53:43
2021-03-04T01:53:43
311,015,579
18
2
null
null
null
null
UTF-8
Python
false
false
3,059
py
from torch import nn import torch class CALayer(nn.Module): def __init__(self, channel, reduction=16): super(CALayer, self).__init__() self.avg_pool = nn.AdaptiveAvgPool2d(1) self.conv_du = nn.Sequential( nn.Conv2d(channel, channel // reduction,1, bias=False), nn.Re...
[ "noreply@github.com" ]
xdeng7.noreply@github.com
df2805ded0f8ca965205b075e6a84753cff47e12
b2fb3c44c67eb61c41465996c24c094071c457cc
/LeetCode/print_words_vertically.py
3027e23f1272d85cbab87a94fe941c5d21586733
[]
no_license
zelzhan/Challenges-and-contests
8edd3a2f07a0538903dc885c86e15f02783821c5
e7df9b37ad1130d37f3efbf0114d06b6f3b4a4f1
refs/heads/master
2022-12-28T23:16:30.807040
2020-10-13T10:09:22
2020-10-13T10:09:22
118,697,222
0
0
null
null
null
null
UTF-8
Python
false
false
928
py
from collections import defaultdict class Solution: def printVertically(self, s: str) -> List[str]: s = s.split(" ") hashtable = defaultdict(int) for i, string in enumerate(s): hashtable[i] = len(string) max_length = max(hashtable.values()) ...
[ "noreply@github.com" ]
zelzhan.noreply@github.com
77c7c60572f8a72ca13834fc8673b3b32542bf3a
1347c41e3957ce7c9c1d10b25f0fd20a3e450b36
/labs/ex03/template/costs.py
14a3696f00ecc9c86c42a022aaa204b6b578ff7d
[]
no_license
hmoreau94/ML_course
a8f93e95c2ba0234a5ed5825c4e45038b548ada8
ced2268f571f8f1481a9353902b20f54f311aaa7
refs/heads/master
2021-01-11T06:21:03.044575
2016-10-12T13:38:07
2016-10-12T13:38:07
70,158,204
0
0
null
2016-10-06T13:47:43
2016-10-06T13:47:41
Jupyter Notebook
UTF-8
Python
false
false
494
py
# -*- coding: utf-8 -*- """a function used to compute the cost.""" import numpy as np def compute_cost_mae(y, tx, w): """calculate the cost. you can calculate the cost by mae. """ e = np.absolute(y - np.dot(tx,w)) toReturn = (np.sum(e) / y.shape[0]) return toReturn def compute_cost_mse(y, tx...
[ "moreauhugo@me.com" ]
moreauhugo@me.com
820aed6c6cda925ce81e6dcae90fc907ee2f0393
905d9f4b94a1b198b29cfd7f347a847471ef92b1
/core/authentication.py
c95893727c638455d2864f7e48b3e0f41b38252a
[]
no_license
prixite/backend-template
8addd6d38c2ecce92aaf8225c75e1eab00c802eb
ca0676eae35c507a6b51abeff04fc2bf430bccde
refs/heads/master
2023-06-11T03:08:55.462576
2021-07-03T09:07:36
2021-07-03T09:07:36
379,807,726
4
0
null
null
null
null
UTF-8
Python
false
false
130
py
from rest_framework import authentication class TokenAuthentication(authentication.TokenAuthentication): keyword = 'Bearer'
[ "umair.waheed@gmail.com" ]
umair.waheed@gmail.com
dfabe356284d91b7abe48701e4cb31e026728bd1
e8d719fe45dfbff9cbbc4ed872832cec6cabaca6
/307_Range_Sum_Query_Mutable_TLE.py
09a96706fa016fe861dd7404e808a7fa4a7d89a3
[]
no_license
nlfox/leetcode
64f4f48d7f4be6df0542e51cc7037df40bf184a3
d61363f99de3d591ebc8cd94f62544a31a026d55
refs/heads/master
2020-12-21T01:43:01.792899
2016-11-14T23:10:12
2016-11-14T23:10:12
56,680,839
2
0
null
2016-05-17T17:16:37
2016-04-20T11:19:58
Python
UTF-8
Python
false
false
1,088
py
class NumArray(object): def __init__(self, nums): """ initialize your data structure here. :type nums: List[int] """ self.nums = nums self.len = len(nums) self.d = [] last = 0 for i in nums: self.d.append(last) last += i...
[ "nlfox@msn.cn" ]
nlfox@msn.cn
20defbd45e630ebdc24a72142a0151dac547f4f5
df97a91911f59afea36aef2269e5842b2fedd170
/fabfile.py
4f2c0c5198d5ab4b254fa84df26c0ff71f532881
[]
no_license
TheLens/demolitions
9944003abdbadaacce9b5310a65f44b7054a070c
fc1fffc9ea61205b008eb4f04f8d9699aaf1ef27
refs/heads/master
2021-01-16T22:28:46.106695
2015-09-04T16:34:14
2015-09-04T16:34:14
39,971,839
2
0
null
null
null
null
UTF-8
Python
true
false
6,406
py
# -*- coding: utf-8 -*- ''' Methods for deploying to S3. ''' from fabric.api import local from scripts import PROJECT_DIR def minify(): '''Minify static assets.''' minify_js() minify_css() def minify_js(): '''Minify JS files.''' js_dir = '%s/demolitions/static/js' % PROJECT_DIR local( ...
[ "thomasjthoren@gmail.com" ]
thomasjthoren@gmail.com
585d43a1a1ba55b36a4a4fb310dc1ec619374015
884b78b9bdc19200cae87e532fa6458a92def273
/tk_test.py
a352191428c86b270ef587da27db1795e78280cc
[]
no_license
andermic/cousins
78bd68bf630c003ab21dfb110b3684615fbc0489
980f5a3ac50bb3f4847c1d02e5f74c97f9f8c5eb
refs/heads/master
2016-09-16T15:57:18.053704
2015-01-19T15:26:55
2015-01-19T15:26:55
7,281,208
1
0
null
null
null
null
UTF-8
Python
false
false
655
py
#! /usr/bin/python from Tkinter import * class MyApp: def __init__(self, parent): self.parent = parent self.f1 = Frame(parent) self.f1.pack() self.b1 = Button(self.f1, text='click', bg='blue') self.b1.pack(side=LEFT) self.b1.bind('<Button-1>', self.b1_left_click) self.b1.bind('<Return>', self.b1_left_...
[ "ptolemy777@gmail.com" ]
ptolemy777@gmail.com
7e1eb1cb818f46327bce95c194898ef7c0b8d4ae
adfc039a4fa6550068b659db2169995b23b88ffa
/staticJsonRead1.py
cd860a781fa914d006a1fe290d4facff538ebb71
[]
no_license
nitinawathare/EVDExperimentSetup
b1928bc4a740618503830cff153c6853e802a41f
cd7289ba75a5bdc25c46d89203ed7bb314ac3b50
refs/heads/master
2022-05-12T18:26:08.991695
2019-11-14T07:40:30
2019-11-14T07:40:30
186,911,557
0
0
null
null
null
null
UTF-8
Python
false
false
161
py
import json, ast from pprint import pprint with open('/home/ubuntu/gitRepoEVD/.ethereum1/static-nodes.json') as fopen: data = json.load(fopen) print(data[0])
[ "nitinawathare14@gmail.com" ]
nitinawathare14@gmail.com
dec104f1556217e5f8b811392f81bac47904cebd
1ffdf1e2a3a32bf617d9f11d27c9eac129161b19
/Dataset_second.py
acea8db9cc5c0114d92e4286a7c0c9beceb1ec44
[]
no_license
cjj1234/Document_layout_analysis
8f7d27fc3a8d82d78c4cfd9abcd162fd5ee97e3a
a35231516bc17e047c670a0ba514a0bb02ac43d8
refs/heads/master
2021-01-08T20:03:43.582642
2020-02-16T09:50:16
2020-02-16T09:50:16
242,129,323
1
0
null
2020-02-21T12:01:06
2020-02-21T12:01:05
null
UTF-8
Python
false
false
3,544
py
import os import cv2 import numpy as np from augmentation import Augmentation from torch.utils.data import Dataset class ModelDataset(Dataset): def __init__(self, base_path='./Data', train=True): super(ModelDataset, self).__init__() # parameters # TODO add config file self.BLUR = 0...
[ "jameslimers@gmail.com" ]
jameslimers@gmail.com
6e35f494ebe7c070ad17b73bbe9ec7029e8c0f99
2a2d5458160bbec34bb1be7c53dde620d293d818
/cheb.py
16bb696a1ba5e9e9e3fb947666bd05bcc8764fb1
[]
no_license
dowoncha/Mathematics
bf4eeb490e77e53f70abc2671524aefbbf7a9a60
948e1f5e8cbe76f564e35ea1dc34b665d6bf5208
refs/heads/master
2020-06-20T11:47:03.158869
2016-11-27T19:36:37
2016-11-27T19:36:37
74,867,268
0
0
null
null
null
null
UTF-8
Python
false
false
218
py
from numpy import polynomial as P if __name__ == "__main__": p = P.Polynomial([1, -1.0/2, -1.0/8, -3.0/24, -15.0/384, -165.0/3840]) print p c = p.convert(kind=P.Chebyshev) print c print c.basis(3)
[ "dowoncha@live.unc.edu" ]
dowoncha@live.unc.edu
36052de6dd45ad86930ea87779a2ffd46de82b96
28a78bf095125a1202842225c2d7512079017a02
/argorithm/2884_re.py
35e05cb9fef74bc98182ae9affe95a92feff041a
[]
no_license
sunyeongchoi/sydsyd_challenge
d322451a82c63b05097d44ee3b9fc4492645e204
93dd250e96b91f50215a61a3b5913a523f074445
refs/heads/master
2023-05-25T00:57:58.651494
2023-05-18T01:43:00
2023-05-18T01:43:00
293,253,085
2
0
null
null
null
null
UTF-8
Python
false
false
126
py
H, M = map(int, input().split()) if M >= 45: print(H, M-45) else: if H == 0: H = 24 print(H-1, (60+M)-45)
[ "sn0716@naver.com" ]
sn0716@naver.com
6176d91067bf9468cfb74bf2abd4928f761a1d47
b635e833bd8078b567551c9df97012860ef23c4a
/src/boxplots.py
ea095fd4766f7b3097f621015dbf0e455954c544
[]
no_license
pebonte/AAindex
f94a58c8dc2dfff3d67e8a428f67c32e69571aa8
8aaed01f73f63dab49ae99a5f5a2a02fb0cf5729
refs/heads/master
2020-04-15T05:09:30.108528
2019-01-11T08:54:01
2019-01-11T08:54:01
164,410,963
0
0
null
null
null
null
UTF-8
Python
false
false
2,778
py
#! /usr/bin/env python3 import glob from aaindex_processing import (retrieve_values_aaindex, retrieve_loop_data, make_dataframe_from_aaindex_data, make_aaindex_boxplots_by_family) ''' Script that create boxplots and produc...
[ "pierreemmanuel.bonte@gmail.com" ]
pierreemmanuel.bonte@gmail.com
22425d8ae6d33997675bb88ca7f2f42436dcf5c9
071ccc8d8eeb9983824d61c740c5476c59dbdc88
/app.py
e15da6bf3a4e9937978f75220e7051cc27fbe63d
[]
no_license
dewizdumb/SQLAlchemy
d2aaa0c617f95264acc23b3ea152b0cb6a62d194
8075fb8ef9ed8ccbd4a8cb7735477ac577f55254
refs/heads/master
2020-07-22T03:08:02.736484
2019-09-29T07:07:42
2019-09-29T07:07:42
207,056,497
0
0
null
null
null
null
UTF-8
Python
false
false
4,613
py
from flask import Flask , jsonify import sqlalchemy from sqlalchemy import create_engine, func from sqlalchemy.orm import Session from sqlalchemy.ext.automap import automap_base import datetime as dt from sqlalchemy.orm import scoped_session, sessionmaker ############################################# # Database Setup ...
[ "dewizdumb@gmail.com" ]
dewizdumb@gmail.com
f9d41e644050b1e8ccffbcfc55ed36679fc061d4
54e406e685c0f78d1cd8d88a0107428729296d1c
/Who装配/member_test.py
5aa320b6fb8246f9eecdda8d60d5f140151d5ccb
[]
no_license
Kate-Lin/who_is_who
9ce656fae6910854cad69533669c41e658c530d5
420901819197ee18879d025fa07d8bb9c1e676df
refs/heads/master
2020-09-24T01:40:20.379241
2019-12-08T09:06:25
2019-12-08T09:06:25
225,631,851
0
0
null
null
null
null
UTF-8
Python
false
false
3,030
py
#! /usr/bin/env python #coded by Lin Shen, 20190513 ######################################### #import modules needed import os import rospy from geometry_msgs.msg import PoseStamped from std_msgs.msg import String,Int16 import tf import tf2_ros from sound_play.libsoundplay import SoundClient import sys import freenect...
[ "oncwnuLedn4TbGotWjICLQETNKDk@git.weixin.qq.com" ]
oncwnuLedn4TbGotWjICLQETNKDk@git.weixin.qq.com
3a36a2d2375d06055ac1d8512208165b78fe37aa
3e52ad548b7138b3d83310a5375cc8a3c5886580
/AI-ML/Supervised/ANN/Classification/artificial_neural_network.py
af13fae9193126525f062251d9509be5d3717d28
[]
no_license
alexal9/AI-ML
8ccdd05daac9c465ad7c2cdf35939d33266cdd1e
ce43619702ac6af95378eaaafb555405aba9452f
refs/heads/master
2022-11-23T02:35:44.335615
2020-07-28T08:39:57
2020-07-28T08:39:57
283,151,355
0
0
null
null
null
null
UTF-8
Python
false
false
4,057
py
# Artificial Neural Network # Importing the libraries import numpy as np import pandas as pd import tensorflow as tf print(tf.__version__) # Part 1 - Data Preprocessing # Importing the dataset dataset = pd.read_csv('Churn_Modelling.csv') X = dataset.iloc[:, 3:-1].values y = dataset.iloc[:, -1].values print(X) print(...
[ "noreply@github.com" ]
alexal9.noreply@github.com
0d31c01c1720c23342929252c36a87159a44e0d6
ddc619da476d90bb0099a556114eedb1f93379e2
/dateandtime.py
509bf529027a9558e128ddafb35b2965f1da28d2
[]
no_license
akshunive/My-sanddunes
a54a8a288262a8b2cc5d762cadca79160f949305
9f9f6734fdb99b46e10925682b8dc76b70627b01
refs/heads/master
2021-01-20T18:19:58.768886
2016-08-07T14:09:20
2016-08-07T14:09:20
65,136,033
0
0
null
null
null
null
UTF-8
Python
false
false
93
py
#to print the date and time of the system now import datetime print datetime.datetime.now()
[ "noreply@github.com" ]
akshunive.noreply@github.com
aa8118a8fbf2bd888e4917357eff53df4984fcfb
e5ce97f343b2617cce0396ebcfa3b9af70601393
/lale/search/search_space.py
dd7406b30be41bbe8bb4af33119a2a8df40b3eed
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
kant/lale
c29f4be10ac7e36e0342b67cae26368381f0a3a1
972b4284775f1c2dfa8d1692381fdb0ddd1cfafe
refs/heads/master
2020-07-01T09:46:53.848785
2019-08-07T16:30:56
2019-08-07T16:30:56
201,133,071
0
0
Apache-2.0
2019-08-07T21:51:57
2019-08-07T21:51:57
null
UTF-8
Python
false
false
4,657
py
# Copyright 2019 IBM Corporation # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
[ "kakate@us.ibm.com" ]
kakate@us.ibm.com
1fc8429f96e9d5bb07215d6eee4e8caf868fceb5
1e92bf05112d6dd00a71940e81265c06522f9280
/3. Arrays/3Sum.py
35707403f2b8d48a7f2a328066ebabce3c4810e9
[]
no_license
bhasin85/Teachable
cd54c2b71c152bd679edef9475720309c247ff26
d77a9ac0515942c0d7944d026dc974ab7036b71d
refs/heads/master
2023-01-21T23:28:05.251596
2020-06-23T09:40:19
2020-06-23T09:40:19
258,916,313
0
0
null
null
null
null
UTF-8
Python
false
false
1,153
py
# i 0 # p1 0 # p2 # [-4,-1,-1, 0, 1, 2] 6 # [-2,0,1,1,2] # [-2,] class Solution: def threeSum(self, nums: List[int]) -> List[List[int]]: nums.sort() #print("Sorted {}".format(str(nums))) size = len(nums) result = set() for i in range(size): ta...
[ "noreply@github.com" ]
bhasin85.noreply@github.com
e6d2396b1679238553cf86553f1d2cbe848c4b65
b8c4ef9ccab22717ab97ab2fb100614d962a5820
/src/test/python/com/skalicky/python/interviewpuzzles/test_find_all_concatenated_words_in_dictionary.py
31250fe2c29509af0bab7db00e4be68e00a269b3
[]
no_license
Sandeep8447/interview_puzzles
1d6c8e05f106c8d5c4c412a9f304cb118fcc90f4
a3c1158fe70ed239f8548ace8d1443a431b644c8
refs/heads/master
2023-09-02T21:39:32.747747
2021-10-30T11:56:57
2021-10-30T11:56:57
422,867,683
0
0
null
2021-10-30T11:56:58
2021-10-30T11:55:17
null
UTF-8
Python
false
false
1,397
py
from unittest import TestCase from src.main.python.com.skalicky.python.interviewpuzzles.find_all_concatenated_words_in_dictionary import Solution class TestSolution(TestCase): def test_find_all_concatenated_words_in_dictionary__when_input_contains_words_of_same_length__then_output_is_empty( self): ...
[ "skalicky.tomas@gmail.com" ]
skalicky.tomas@gmail.com
e21bbef8a9afa0ae7bab88d6245d993fc2a30213
1608bb10acd691eed6927cd27b98f9d5d6f5fbeb
/nodes/trainers.py
66059b1c90bc92ec85526f65b71768b561299bba
[]
no_license
FiveRAge/speech
85591d6420205496f40bb6d6e8f4ea7584a459a8
22a34093bfe5483c11da55d30b50051eab4ce52c
refs/heads/master
2020-04-05T03:36:46.816787
2018-11-07T09:35:04
2018-11-07T09:35:04
156,521,013
0
0
null
null
null
null
UTF-8
Python
false
false
3,825
py
# -*- coding: utf-8 -*- import os from threading import Thread, Semaphore from chatterbot.conversation import Response from chatterbot.trainers import ListTrainer from openpyxl import load_workbook class SpeechTrainer(ListTrainer): def __init__(self, storage, **kwargs): super().__init__(storage, **kwarg...
[ "noreply@github.com" ]
FiveRAge.noreply@github.com
58ff279f7975147898d053677c3a180603ba4691
b46c205f1c1c9cb53632987869afd05f2997bad8
/setup.py
6f08483129f5fcfadc91af15b9545fb04c5bad1f
[]
no_license
mohitRohatgi/easy21
33e3dd1648fd07264f513a452adee25669ce87c2
95683027124ef05fa2f8e072b3450ef8f9972383
refs/heads/master
2021-04-12T07:48:46.776583
2017-06-19T15:39:13
2017-06-19T15:39:13
94,510,770
0
0
null
null
null
null
UTF-8
Python
false
false
160
py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Thu Jun 15 19:38:57 2017 @author: m0r00ds """ here = os.path.dirname(os.path.abspath(__file__))
[ "mohit.rohatgi@walmart.com" ]
mohit.rohatgi@walmart.com
be9add49d0aeacb6d7afb2c253e3af21d0d744e8
4b0abab9cccec5789c9f5453c542a8567d448459
/main.py
aac3ce2162ca9a2cc9cd57d8746ab8afb35878fe
[]
no_license
aastha2008/Aastha-test-1
9a88f801b220704b837f945af8038e6a24b9a05a
28b4601ae016122f7bafbe564294ab11094b2fc9
refs/heads/master
2023-02-22T14:05:30.394348
2021-01-14T23:47:35
2021-01-14T23:47:35
329,761,917
0
0
null
null
null
null
UTF-8
Python
false
false
45
py
print("hello world") x=20 y=5 m=x+y print(m)
[ "109658@eesd.org" ]
109658@eesd.org
6f6e441bbde59763d7fe65221a6f86714e769020
2082cd57fa2325a508af5f10bd00e8eca059bc09
/src/geometry/manifolds/translation_algebra.py
67b1958cc3594e112a9cdeb471c3976addf27f7f
[]
no_license
efernandez/geometry
98e5894a83acaa32eefb2187374d4c34801a5600
ec7fa1308224f3d156c54495bc4b05ce47a41004
refs/heads/master
2021-01-18T16:51:13.964917
2014-11-04T14:03:59
2014-11-04T14:03:59
36,390,891
0
1
null
2015-05-27T19:35:14
2015-05-27T19:35:14
null
UTF-8
Python
false
false
1,237
py
from . import MatrixLieAlgebra from .. import extract_pieces, combine_pieces from contracts import contract import numpy as np class tran(MatrixLieAlgebra): ''' lie algebra for translation ''' @contract(n="1|2|3") def __init__(self, n): MatrixLieAlgebra.__init__(self, n + 1, di...
[ "andrea@cds.caltech.edu" ]
andrea@cds.caltech.edu
25f5f4bc546237c9a21c8f825aa2abee0b5e3640
9f2762e8cdb020715034ef73023d3fd82e544b91
/PROJECTS/p002/PSEF_SCRIPTS/mult_cfg.py
f36b5c813f315e15146e18c4e045642d54fc82d5
[ "Apache-2.0" ]
permissive
nihole/PSEFABRIC
ade9ecf305f5974dc48520576e7e75d522d00cf9
366461ab86f99665bf310425c6ce05a216343ec9
refs/heads/master
2020-04-04T21:36:53.427341
2019-05-30T22:52:13
2019-05-30T22:52:13
156,292,904
9
3
null
null
null
null
UTF-8
Python
false
false
1,965
py
###################################### # # # 5. # # configuration encapsulator # # layer # # # ###################################### ''' Three purpose...
[ "nihole" ]
nihole
546e8f3fe2ac890b2ad0e6c2249cd2e0ec0a27ed
c4c20c4c7653da52249dac4d9ced3ffcbcb2c299
/aidooit_access_point/migrations/0002_aidooitaccesspoint_address.py
2969a68765ae5b7b7748cbc2949a9d5d57913c8e
[]
no_license
rejamen/aidooit
4ebccdba65b07da29f13273c474dd45ddd78968d
31361307b70175d4e00ef4f7bbbb320ab7779551
refs/heads/master
2022-05-02T09:25:14.812540
2019-09-09T10:34:30
2019-09-09T10:34:30
191,284,990
1
0
null
null
null
null
UTF-8
Python
false
false
448
py
# Generated by Django 2.2.4 on 2019-09-08 03:43 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('aidooit_access_point', '0001_initial'), ] operations = [ migrations.AddField( model_name='aidooitaccesspoint', name=...
[ "rejamen@gmail.com" ]
rejamen@gmail.com
39206d2358730cbaaafc66c76aafc84382af746a
6a62bd2c79536d7392fc49d0e8bda279aef512b2
/conditionals/cond3.py
67ff55bdd4dc20daeb2b3401764e18b9d6e70b05
[]
no_license
codecachet/examples
7df7257627ff831ec3cac19f1fabd03c2b66933d
5bd697307144f38b03abd7ffa350f11b5e79f102
refs/heads/master
2020-04-13T13:17:24.074184
2019-04-28T22:08:20
2019-04-28T22:08:20
163,225,625
0
0
null
null
null
null
UTF-8
Python
false
false
182
py
def loop1(max): n = 0 x = 0 while n <= max: x += n n += 1 return x def addthem(): max = 6 n = loop1(max) print(f'result={n}') addthem()
[ "david@codecachet.org" ]
david@codecachet.org
ef617912f64bce4020083b3e65bcb5438a6b7fb4
345c6cf82eb242ef7b863af8eecd459f85c89940
/test_19_mvsemicolon.py
fd4e4015c392bc29277176fd59d54a3c2c459c85
[]
no_license
718970079816800/PythonStudy
9fe0e4644c9724ced69f732c953702b893d83baf
320eaca1ffe4dd1139aef41b4ec278ef395b3649
refs/heads/master
2021-07-16T21:57:40.055244
2020-05-09T12:14:59
2020-05-09T12:14:59
148,250,383
0
0
null
null
null
null
UTF-8
Python
false
false
366
py
import os import os.path import shutil pathDir = 'F:\\Data\\OtherTxt\\' os.chdir(pathDir) files = os.listdir(pathDir) for f in files: print f with open(f, 'r') as g: firstline = g.readline() if len(firstline.split(';')) == 2: pass else: shutil.copy(...
[ "noreply@github.com" ]
718970079816800.noreply@github.com
3e85724e61a95926d3f6ed12b671f971c38975c6
e3c85bc726710672a073b43ae855422fc0f8f5e4
/intro-regresstion-data.py
317c88c5c5e1392d3e1da8e62825b7266f70d2c4
[]
no_license
MyLearing/ML
45cbf8ff8a58f12d53348e72e302d6c943498a5c
65b8b265a9e9156734c16c193e5b6dcdd0385c3a
refs/heads/master
2020-03-27T11:04:37.212308
2018-10-20T06:29:42
2018-10-20T06:29:42
146,463,445
0
0
null
null
null
null
UTF-8
Python
false
false
1,184
py
import pandas as pd import quandl, math import numpy as np from sklearn import preprocessing, cross_validation, svm from sklearn.linear_model import LinearRegression df = quandl.get('WIKI/GOOGL') # print(df.head()) df = df[['Adj. Open', 'Adj. High', 'Adj. Low', 'Adj. Close', 'Adj. Volume']] print('-'*100) print(df.hea...
[ "teerapat12345678@gmail.com" ]
teerapat12345678@gmail.com
187d5e4a2c3a6f4bda7055934dce787d7d1d0339
53fab060fa262e5d5026e0807d93c75fb81e67b9
/backup/user_352/ch6_2020_03_04_10_31_08_746058.py
c84cfa947f1fae70b02bc0450ea33744f1c14660
[]
no_license
gabriellaec/desoft-analise-exercicios
b77c6999424c5ce7e44086a12589a0ad43d6adca
01940ab0897aa6005764fc220b900e4d6161d36b
refs/heads/main
2023-01-31T17:19:42.050628
2020-12-16T05:21:31
2020-12-16T05:21:31
306,735,108
0
0
null
null
null
null
UTF-8
Python
false
false
107
py
def celsius_para_fahrenheit(fahrenheit,celsius): fahrenheit=(celsius*9)/5+32 return fahrenheit
[ "you@example.com" ]
you@example.com
7ae4fc95910cd188fb054270ab173da3971e5b01
3d36b8608ad38c0c913d8fcff55b8715fbe83cbd
/rsd_lib/resources/v2_3/storage_service/storage_pool.py
4412ac37b740c9fc63284296eff8624e985f1403
[ "Apache-2.0" ]
permissive
linericyang/rsd-lib
b6d728a68ff203b261e8da98a46b4c21c0059abd
898d2be08a1efcbdf72b0ba267f283f1386779bf
refs/heads/master
2020-04-09T15:57:37.596369
2018-12-04T09:11:33
2018-12-04T09:11:53
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,913
py
# Copyright 2018 Intel, 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 a...
[ "lin.a.yang@intel.com" ]
lin.a.yang@intel.com
37879211d77b9b1040a5740a3343467cdd3d662d
c282727ef1ccb490beb62c4f56f4f2cbbb7b32c4
/src/management_console/ListManagementConsole.py
d612c92520a4942f8348ab3a06e2a806b0afbb32
[ "Apache-2.0" ]
permissive
kastellanos/HmcRestClient
64f5baf52ac6dff3dd221d6b815f652e1278a723
fa8a88a3cb7ecb6e241ff48b8c0dc3f99c3c38f3
refs/heads/master
2021-01-15T22:09:47.770432
2016-07-12T14:17:11
2016-07-12T14:17:11
62,428,157
0
0
null
2016-07-02T01:24:05
2016-07-02T01:24:04
null
UTF-8
Python
false
false
3,317
py
# Copyright 2015, 2016 IBM Corp. # # 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 require...
[ "niraj.shah@in.ibm.com" ]
niraj.shah@in.ibm.com
fc4843dbe74e0b7bedb04ad7a110695dcc7c14bd
9e08a89c02e737f8371b6d0c16bc8c64484fd07f
/assignments/assignment11/definitions.py
fee7455dda5e352a6ac670b5aac1aae50145f674
[]
no_license
gatlinL/csce204
c0ecab2c8efd25dc428d591aaeb43ca5c0f589cd
f86959b09a67c20eac1a96b5737929fc491f83fe
refs/heads/main
2023-04-20T19:36:31.183034
2021-05-05T03:25:52
2021-05-05T03:25:52
329,712,974
0
0
null
null
null
null
UTF-8
Python
false
false
1,033
py
# Author: Gatlin Lawson def getDictionary(): dictionary = {} with open("assignments/assignment11/words.txt") as file: for line in file: data = line.split(':') word = data[0].strip() wordDef = data[1].strip() dictionary[word] = wordDef re...
[ "noreply@github.com" ]
gatlinL.noreply@github.com
2cc09c81e60862cf246d6b8773beb89d120f3c54
532e337751c44b89e68f0022966d6295116928a9
/client/tests/filesystem_test.py
9c7e531de3f22e663c3dd4952f1d1023c288e5c0
[ "MIT" ]
permissive
laashub-soa/pyre-check
8f1a2717888a22c15a7f6608e0d732e62fa060f9
cc1a1b5c1007bf3e0e52e7f8b04c8e8fc365db44
refs/heads/master
2022-04-13T12:12:46.317095
2020-04-11T03:39:21
2020-04-11T03:41:49
null
0
0
null
null
null
null
UTF-8
Python
false
false
24,467
py
# Copyright (c) 2016-present, Facebook, Inc. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. # pyre-unsafe import errno import fcntl import os import pathlib # noqa import subprocess import tempfile import unittest from contextlib import c...
[ "facebook-github-bot@users.noreply.github.com" ]
facebook-github-bot@users.noreply.github.com
9d32ed2f9dd6961c4e4fca230d3d5833e4ae41b2
b50bb3f3094adc3e08cfa6193d11668f921d9057
/cinema/models/__init__.py
5a5e004aa7ec9f16fa6345b3edd66ba467eaf23b
[ "BSD-3-Clause" ]
permissive
juliotrigo/restfulwebapi
d5b35956dea067b54185f836ff3e0208117d9387
1d97c1f23320e158f264dc265f8fb554debbc9c4
refs/heads/master
2016-09-06T08:07:38.552442
2014-02-16T15:39:43
2014-02-16T15:39:43
null
0
0
null
null
null
null
UTF-8
Python
false
false
322
py
# -*- coding: utf-8 -*- """cinema models.""" from __future__ import unicode_literals from cinema.models.film import Film from cinema.models.film import OrderedFilm from cinema.models.director import Director from cinema.models.director import FilmDirector __all__ = ['Film', 'OrderedFilm', 'Director', 'FilmDirector'...
[ "juliotrigocom@gmail.com" ]
juliotrigocom@gmail.com
137dfeec2dbbe9c5d924c0adec0e07bf2eac64d4
77aa89620bb2773100082e268f07fa0b8b80b4f1
/scripts/get_previews.py
458874472e92114f471550b6cf65d66d9d28e396
[]
no_license
d-alvear/Analyzing-Music-by-Decade
40f771f9bdd6a7c8119966530fb0f444eae47828
adc5b1e5c2bb288700de0abdc72ffe636e71876a
refs/heads/main
2023-01-20T23:27:53.577018
2020-12-03T18:13:04
2020-12-03T18:13:04
308,172,475
0
0
null
null
null
null
UTF-8
Python
false
false
717
py
import pandas as pd import numpy as np import requests from IPython.display import clear_output def get_mp3(track_id, url): '''A function that takes an mp3 url, and writes it to the local directory "/tmp"''' doc = requests.get(url) with open(f'C:/Users/deand/Documents/Repositories/Music-Analysis/data/previews/t...
[ "deandraalvear@gmail.com" ]
deandraalvear@gmail.com
2cd95fd2f36e95c2f5317974b9ce2f58a79cf559
3f44f32ad6cd51076f32fe7b6c7c06c06c0b4219
/delete_all_runway_containers.py
9749bb06e68af4e6d3ced3bee076bc8407451a2e
[ "Apache-2.0" ]
permissive
matthewoliver/runway
b2316ea4e2fd4454b15a44da355bbd141b5b8853
e675a36f3156d24268cae196b97c3a6a4a54c355
refs/heads/master
2020-04-06T04:04:10.392226
2017-02-26T02:04:19
2017-02-26T02:04:19
83,061,068
0
0
null
2017-02-24T16:28:48
2017-02-24T16:28:48
null
UTF-8
Python
false
false
2,231
py
#!/usr/bin/env python3 # do lxc list --format=json swift-runway # ...and delete them # while it would be cool if this worked, it doesn't and the docs are bad # https://linuxcontainers.org/lxc/documentation/#python # import lxc # for defined in (True, False): # for active in (True, False): # x = lxc.list_...
[ "me@not.mn" ]
me@not.mn
39437032dd7ce969ba97304c78120010116c1c0e
6addd46151c72418179601f8a2acae82df698e1b
/lib/Pool.py
923e947c213202af48897e10f02261a169f8be22
[]
no_license
chocciibuster/Polaroid_Chatbot
ce783d995a7dd991079a3b4f50acd77e2d8b08d7
c30d390d5a5670974c92ae516678f2a14939dd8f
refs/heads/main
2023-05-05T09:55:19.244745
2021-05-21T15:19:03
2021-05-21T15:19:03
369,216,534
0
0
null
null
null
null
UTF-8
Python
false
false
311
py
from Member import Member class Pool: def __init__(self, members): self.members = members self.goal = 100000 * len(members) self.balance = 0 self.status = 0 def addMembers(self, members): pass def removeMembers(self, members): pass
[ "75527948+chocciibuster@users.noreply.github.com" ]
75527948+chocciibuster@users.noreply.github.com
006d5216c55a276b30c61478f4da189fc81ca037
7bf287e00b35f50afa70e8585f41d1db543d98f2
/Medium/FindLeavesOfBinaryTree.py
c914ab48ab422fd2ee73e77c175d3f5a5d0fe9c8
[]
no_license
mangalagb/Leetcode
eac611453de07ffc635265e98c39b46255cf76c6
fcf6c3d5d60d13706950247d8a2327adc5faf17e
refs/heads/master
2022-05-14T23:16:28.007044
2022-04-29T19:33:24
2022-04-29T19:33:24
158,616,622
0
0
null
null
null
null
UTF-8
Python
false
false
2,011
py
# #Given the root of a binary tree, collect a tree's nodes as if you were doing this: # # Collect all the leaf nodes. # Remove all the leaf nodes. # Repeat until the tree is empty. # Definition for a binary tree node. class TreeNode(object): def __init__(self, val=0, left=None, right=None): self.v...
[ "mangalagb@gmail.com" ]
mangalagb@gmail.com
d2894ba6e632b91ec3412e5b44336eb0e03154d2
fec261e7717769078dd0044b3ac19e509ff65afa
/python/sort/selection_sort.py
bb4e47579b4fa5b22a4eeda18c29a39cc587698f
[]
no_license
ne7ermore/playground
af94854c6da01b43b1e10ea891129a749ea9d807
072406e562e0d33c650ba01bf9ebfbe593f55d5c
refs/heads/master
2021-06-02T13:19:34.110406
2020-05-28T10:49:12
2020-05-28T10:49:12
108,945,081
7
1
null
null
null
null
UTF-8
Python
false
false
532
py
def selection_sort(arr): for i in range(len(arr)): cor_index = i for j in range(i, len(arr)): if arr[j] < arr[cor_index]: cor_index = j arr[i], arr[cor_index] = arr[cor_index], arr[i] return arr if __name__ == "__main__": arr = [10, 20, 5, 9, 3, 8, 12, ...
[ "422618856@qq.com" ]
422618856@qq.com
a26cff623a0c12894aafb69e2e6e8b6698bf3b5d
fa22e83863d60858e2386c2ae0923d065886000a
/src/layers/beam_search.py
4809e633b60c4e2909d7b6a6b3a859896bad75ac
[ "MIT" ]
permissive
NoSyu/VHUCM
aa96e9b4720425973888a743c3d2154feec4a234
3fab78f1b0cced8d9b2a2d5b6f3d6f1021ce9a93
refs/heads/master
2023-06-10T00:50:32.803670
2021-07-02T00:55:55
2021-07-02T00:55:55
203,309,770
9
0
MIT
2020-02-02T08:20:22
2019-08-20T06:02:07
Python
UTF-8
Python
false
false
3,140
py
import torch from utils import EOS_ID class Beam(object): def __init__(self, batch_size, hidden_size, vocab_size, beam_size, max_unroll, batch_position): """Beam class for beam search""" self.batch_size = batch_size self.hidden_size = hidden_size self.vocab_size = vocab_size ...
[ "dongdm@gmail.com" ]
dongdm@gmail.com
9f545374f3e824e1a09b563f38393ee37958d084
3311b2bfb870b0e1f697be885db76aa6535baeb8
/note/basic/02_字串與變數/test_str_08.py
521763cd4d1f7961a5e1bd1aff8488195f807715
[]
no_license
rogers228/Learn_python
8f06ceceb553f47f59a2c6fe1f4dd5edc10a8079
494ef61545bc946e2ba105483b662beba204c263
refs/heads/master
2023-08-31T01:56:32.607799
2023-08-30T01:23:49
2023-08-30T01:23:49
245,773,918
0
0
null
null
null
null
UTF-8
Python
false
false
24
py
a = 5 * 6 print(str(a))
[ "61651257+rogers228@users.noreply.github.com" ]
61651257+rogers228@users.noreply.github.com
4c3ae1e23e39da011a0e61b665f565854ae2ca1c
21bd2c7eabec557e6f1581cdaed4b05e1a753a91
/monkeymemorytest/testmonkey/learning/subpackage2/__init__.py
937df6fba34220fbe421c89a132c42808bde67df
[]
no_license
flyingfishercn/tools
f7e80770a375347b3a1f57fdbc49eab1e6c6fd08
0c4edd815dcc324fd1058432bb3f030b4d29fb46
refs/heads/master
2021-01-15T18:03:47.128479
2014-11-05T03:21:56
2014-11-05T03:21:56
11,115,854
1
2
null
null
null
null
UTF-8
Python
false
false
343
py
#!/usr/bin/python # -*- coding: utf-8 -*- #created by zhiquan.huang on 13-12-28 at 下午10:11 #Pls contact flyingfishercn@gmail.com or huangzq@oppo.com #Software Engineer #Product Software Department #Guangdong OPPO Mobile Telecommunications Corp.,Ltd #Gaoxin park South District 1st Road shenzhen, China print("p...
[ "flyingfishercn@gmail.com" ]
flyingfishercn@gmail.com
0c33e1adf91e821cc7a08e50d950cf95850b1690
0bfa5e1771cc0d52689571bf523ca410813d138b
/News/venv/Scripts/pip3.7-script.py
c1d053c902a9ceead2d980164bf6e23c23a0e639
[]
no_license
dndgus482/Sorticle
a00179255ab9f89ac868c47fb39daec3b6f32faa
8041cd8b67ce53b02a7cfc1f862a43090e69382c
refs/heads/master
2022-11-06T22:37:15.796927
2020-06-18T08:10:33
2020-06-18T08:10:33
254,592,249
0
0
null
null
null
null
UTF-8
Python
false
false
414
py
#!C:\Users\hablo\PycharmProjects\News\venv\Scripts\python.exe # EASY-INSTALL-ENTRY-SCRIPT: 'pip==19.0.3','console_scripts','pip3.7' __requires__ = 'pip==19.0.3' import re import sys from pkg_resources import load_entry_point if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0...
[ "chengeying1025@gmail.com" ]
chengeying1025@gmail.com
bc871b75ba4a48cd1baa270703581d5d3cbdfaaf
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p02646/s014246720.py
f54f26a26b36440b0006e25566aa3480de114870
[]
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
410
py
import sys A,V = map(int, input().split()) B,W = map(int, input().split()) T = int(input()) #これO(1)で解けそう。 # スピードが同じ or 逃げる方のスピードが速いと無理 if V <= W: print("NO") sys.exit() # 鬼の方がスピードが速い場合で場合訳 distance_AB = abs(A-B) speed_AB = abs(V-W) if speed_AB * T >= distance_AB: print("YES") else: print("NO")
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
b35629b13b4288e9f2d3b4ff7f9c2a7af9103d2b
2d055595705582784624c6bde5abf1b3854b34a9
/tweets/mixins.py
e35d46e2850f0171dca2e7dc62983077149c37d8
[]
no_license
Anubhav722/twitter_clone
fc36568cb6b32ce1942923ffcf55ebcce714e53f
f76190b8f5f3ac8dfad87d35b2650c5285e5082b
refs/heads/master
2021-05-01T08:25:42.857828
2017-02-07T14:32:09
2017-02-07T14:32:09
79,710,309
0
0
null
null
null
null
UTF-8
Python
false
false
823
py
from django import forms from django.forms.utils import ErrorList class FormUserNeededMixin(object): def form_valid(self, form): if self.request.user.is_authenticated(): form.instance.user = self.request.user return super(FormUserNeededMixin, self).form_valid(form) else: ...
[ "anubhavs286@gmail.com" ]
anubhavs286@gmail.com