blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
3
281
content_id
stringlengths
40
40
detected_licenses
listlengths
0
57
license_type
stringclasses
2 values
repo_name
stringlengths
6
116
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringclasses
313 values
visit_date
timestamp[us]
revision_date
timestamp[us]
committer_date
timestamp[us]
github_id
int64
18.2k
668M
star_events_count
int64
0
102k
fork_events_count
int64
0
38.2k
gha_license_id
stringclasses
17 values
gha_event_created_at
timestamp[us]
gha_created_at
timestamp[us]
gha_language
stringclasses
107 values
src_encoding
stringclasses
20 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
4
6.02M
extension
stringclasses
78 values
content
stringlengths
2
6.02M
authors
listlengths
1
1
author
stringlengths
0
175
a197ac4698e3bb1b02f0a8c5e9289226906c2a6b
7cd546d267a94c7556256efbc83926a019a36f67
/django/smartcity/vagent/hook.py
001d6419d5e7ee98347e5a14ee7260464280a81f
[ "MIT" ]
permissive
nvitha/Smart-Cities
56f73b3c15046d3094e5fa86e3c5fb7068e6cfae
9a4cb29b143956bb73789e4af2619cde681393be
refs/heads/master
2021-01-13T12:28:25.503488
2016-11-27T23:54:33
2016-11-27T23:54:33
72,601,971
0
0
null
null
null
null
UTF-8
Python
false
false
1,604
py
import sys import os import subprocess def start_thrash_test(): process = subprocess.Popen(['python', '/var/www/html/smartcity/smartcity/vagent/start_thrash.py'], env={'PYTHONPATH': os.pathsep.join(sys.path)}) error = process.communicate(process) def stop_thrash_test(): process = subprocess.Popen(['pyth...
[ "chaneym@gmail.com" ]
chaneym@gmail.com
e56b6730405d8d0e649b85d1c9f105c9d5e64842
c986e105443bdda38dd732d194b174953e182ccb
/compare/migrations/0002_favorite.py
3f6cdef809855a5ba1d8479877759f7172c7040d
[]
no_license
yujifunfunfun/django-compare-price
08045f9476703a5fd01b7e3439829b98171f8a78
5f8fc77595032ce2d6ed42a3626c0241e1e62f6d
refs/heads/master
2023-06-05T11:26:54.311971
2021-07-02T00:28:44
2021-07-02T00:28:44
379,186,775
0
0
null
null
null
null
UTF-8
Python
false
false
748
py
# Generated by Django 3.2.4 on 2021-06-23 06:32 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('compare', '0001_initial'), ] operations = [ migrations.CreateModel( name='Favorite', fields=[ ('id',...
[ "yuji_tozuka@ydktechs.co.jp" ]
yuji_tozuka@ydktechs.co.jp
fd7d229621c66ffd6a7ebdf6880af5d34b8f6d9a
bf10231754c95afd40d15b859f31b6157e1d991d
/Conversores a flotante.py
2372562d67d2de753418adaf194ee28d043af7dd
[]
no_license
smith-sanchez/validadores_en_python
de7849b0f6dde93fff6c8a2db53070f60d101688
8dab14429c1e2c5345cddeabff5e10269b6dc6e9
refs/heads/master
2020-09-06T22:10:59.153382
2019-11-09T01:12:27
2019-11-09T01:12:27
null
0
0
null
null
null
null
UTF-8
Python
false
false
828
py
#Convertir el entero 43 a flotante x=43 a=float(x) print(a, type(a)) #Convertir el entero 1453 a flotante x=1453 b=float(x) print(b, type(b)) #Convertir el entero 4685 a flotante x=4685 y=float(x) print(y, type(y)) #convertir la cadena 1128 a flotante x="1128" c=float(x) print(c, type(c)) #Conve...
[ "noreply@github.com" ]
noreply@github.com
054213ffc18acf10a234385eb68944b43427d2df
ec9db570c61883ab4d90590b23440cd0265b422c
/Vector.py
2cfb07b7b4342138607004c8fea65795c7d13b82
[]
no_license
ayberk200/proje
290a2bc00970f18536dc2311a46a7ae6b9fd3de1
ce0a50ee02562d91b360d82cfad03f3368eeb099
refs/heads/master
2021-01-19T13:03:35.185844
2012-06-04T10:17:30
2012-06-04T10:17:30
4,545,609
1
0
null
null
null
null
UTF-8
Python
false
false
1,546
py
import math from calculation import * class Vector: def __init__( self, angle, magnitude): self.__angle = (angle+360)%360 self.__magnitude = magnitude def get_angle(self): return self.__angle def get_magnitude(self): return self.__magnitude def set_angle(self,angle):...
[ "ayberkcatar@hotmail.com" ]
ayberkcatar@hotmail.com
3da9bf06cce2f032a956fb4b1cb4e9aa21c6b8da
c3af9e045eb9ecd55402db149685635f86663d8b
/plugins/db_storage.py
84d8f90d0991cae1e98252e0aff58216378b65ba
[]
no_license
weilian1977/tangiblepy
74c08937f895396242abec4d8ff79d85fba7148a
e9f8056d521c5c47a85fa44669745bf0355da0d6
refs/heads/main
2023-06-16T11:09:11.730983
2021-07-04T13:39:33
2021-07-04T13:39:33
null
0
0
null
null
null
null
UTF-8
Python
false
false
315
py
import pluggy from loguru import logger from TinnyStore import PermanentStore hookimpl = pluggy.HookimplMarker('ampy2') @hookimpl def get_db_store(config, datatype): db_filename = config.store['db_filename'] db_store = PermanentStore(db_filename=db_filename,datatype=datatype) config.store[datatype] = db_store
[ "hasanhack89@gmail.com" ]
hasanhack89@gmail.com
7f3c94e9aece9c680a4b14b2a7672da1e1df9c0c
ad14c14ba3250351003a011e6027f88211e0cd29
/accounts/forms.py
4ced072ad2bb00cce8873ea9d5fe9668c838e7dc
[]
no_license
dli24/Auction-Charity
4817072dfa89aa54e1efeddd359bc270347fcd24
6b0cd3546f3ce5d2a9738b864323a2bdd3aa391e
refs/heads/master
2023-04-30T14:32:39.635587
2019-06-10T16:23:09
2019-06-10T16:23:09
189,348,349
0
0
null
2023-04-21T20:36:24
2019-05-30T05:00:17
Python
UTF-8
Python
false
false
181
py
from django import forms from .models import Profile class ProfileForm(forms.ModelForm): class Meta: model = Profile fields = ('bio', 'picture','creditcard')
[ "dli24@buffalo.edu" ]
dli24@buffalo.edu
89cc3e066b920ac394aa72aac8dc832ae47544b6
6fcb761638bafb113207a557d3cf2f03525442d0
/mobile_project/mobile_project/wsgi.py
b9a76fe7592b4b3a56db428ae1cf0f08e538873d
[]
no_license
trangmoon309/mobile-api-django
12b8b4033eecf7d44a9ef513ba4ae4dca3f7a2c9
e1df00672bc1a70d668aebf399e542921326b29f
refs/heads/main
2023-07-03T09:58:08.068210
2021-07-05T15:56:46
2021-07-05T15:56:46
368,846,454
0
0
null
null
null
null
UTF-8
Python
false
false
405
py
""" WSGI config for mobile_project 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/3.1/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault('DJANG...
[ "tranghnp@greenglobal.vn" ]
tranghnp@greenglobal.vn
6f74300459bdb8c3034bf25056de7b2fba8f6361
41162da46e547f307f4f964cc0f35070b0faee6c
/d11/p1fast.py
1e7ff79fe81095ff35781a844f07b477c87e2d48
[]
no_license
lpchambers/aoc20
d696eb41e7342e5150131d232162c78b6963d045
068d5ed293956ba048213998d311e1536013d02f
refs/heads/main
2023-02-03T23:58:02.717146
2020-12-25T05:19:02
2020-12-25T05:19:02
318,979,068
0
0
null
null
null
null
UTF-8
Python
false
false
1,198
py
#!/usr/bin/python3 with open('input') as f: lines = [x.strip() for x in f.readlines()] # lines = """L.LL.LL.LL # LLLLLLL.LL # L.L.L..L.. # LLLL.LL.LL # L.LL.LL.LL # L.LLLLL.LL # ..L.L..... # LLLLLLLLLL # L.LLLLLL.L # L.LLLLL.LL""".splitlines() empty = set() occ = set() for rix, row in enumerate(lines): for ...
[ "lchambers@barrukka.au.boeing.com" ]
lchambers@barrukka.au.boeing.com
780352d72181bf550978615068022bcd6a8c8189
643c1132ac737dcaa68b887ee77155883a762329
/static_frame/core/index_auto.py
034e2af0da3c4bf524906972bdb89548aec3fffb
[ "MIT" ]
permissive
flexatone/static-frame
baa071ce61143baabba9b6cd6bae453757ce861b
b41ff788c651ee9fe7006a2404a615c09034a3b6
refs/heads/master
2020-08-28T05:06:46.000715
2019-10-24T16:34:16
2019-10-24T16:34:16
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,403
py
import typing as tp # from static_frame.core.index_base import IndexBase from static_frame.core.index import Index # from static_frame.core.index_hierarchy import IndexHierarchy from static_frame.core.index import IndexGO from static_frame.core.util import IndexConstructor from static_frame.core.util import DTYP...
[ "ariza@flexatone.com" ]
ariza@flexatone.com
e2f95965a7e29da94724dd80ff83e894d2a77927
a875495c32524d1f7b05f07337f54df52de2aad0
/algo/clustering.py
6bc5b199bbb559d716d424618a3629e094646459
[ "Apache-2.0" ]
permissive
adrianopls/GRIPy-X
a43188e1ffda37f9f668133f47c3e90589325753
21c7fa1f32f8dbb0a5dff93c2bac5acf1f9181ca
refs/heads/master
2021-07-01T16:57:16.094069
2021-03-09T19:29:23
2021-03-09T19:29:23
218,369,555
1
1
Apache-2.0
2019-10-30T18:13:12
2019-10-29T19:41:01
Python
UTF-8
Python
false
false
2,962
py
# -*- coding: utf-8 -*- import numpy as np from sklearn.cluster import KMeans from sklearn.mixture import GMM from sklearn.preprocessing import scale from sklearn import metrics def locate_nans(data): return np.sum(np.isnan(data), axis=1, dtype=bool) def reorder_clusters(clusters, centers, covars=None): n...
[ "adrianopaulo@gmail.com" ]
adrianopaulo@gmail.com
12d3fed73e37e5e9e59556cf369f0593ca6170b4
5cd4ddfb9a929337fc3c48ee3af6cf973fd6c539
/eSSP/__init__.py
f8effba76e1a17a61c1ed7cbcdf2a8599d6218e3
[]
no_license
smontoya/eSSP_P3
c77724e4c19b5b57ce2e11cc0e0b3a8cb91704be
a1733e1d6637f12354b18af0934bcdea7c56117b
refs/heads/master
2021-01-13T13:14:52.913414
2016-11-03T04:23:58
2016-11-03T04:23:58
72,707,679
0
0
null
null
null
null
UTF-8
Python
false
false
22
py
from eSSP import eSSP
[ "schneider@blinkenlichts.net" ]
schneider@blinkenlichts.net
f1ed1e674e834203088f1ed3f035050f5a400868
6aa7e203f278b9d1fd01244e740d5c944cc7c3d3
/docs/build
257c7678eb2f52275843d2e5a3c2f2434f7b1bcb
[ "Apache-2.0", "BSD-3-Clause", "MIT", "Python-2.0" ]
permissive
laserpedro/airflow
83fc991d91749550b151c81876d9e7864bff3946
a28afa8172489e41ecf7c381674a0cb91de850ff
refs/heads/master
2023-01-02T04:55:34.030935
2020-10-24T15:55:11
2020-10-24T15:55:11
285,867,990
1
0
Apache-2.0
2020-08-07T15:56:49
2020-08-07T15:56:49
null
UTF-8
Python
false
false
19,712
#!/usr/bin/env python # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "Li...
[ "noreply@github.com" ]
noreply@github.com
6caba05b745acaca0586217a7965b37eb0d0a36f
cac0b393997799f049e1dd47708ac45b13becbff
/exercicio30.py
9b5b7a8a623eac3ab5a1bbd69c8583e096a10cae
[]
no_license
victorhugo33/infosatc-lp-avaliativo-01
0cc7abfa30cc7e1b595ed88cb3f62290861f7d9b
09e780003cbc21afc12b818c70f7c8775efadbc7
refs/heads/master
2022-12-08T04:24:12.783217
2020-08-31T19:47:38
2020-08-31T19:47:38
291,775,472
0
0
null
null
null
null
UTF-8
Python
false
false
1,060
py
def conversão ( valor_real , cotacao_dolar ): return valor_real * cotacao_dolar def userInput (): def verificationFloat ( valor_real , cotacao_dolar ): verificação = False tente : valor_real = float ( valor_real ) cotacao_dolar = float ( cotacao_dolar ) ...
[ "noreply@github.com" ]
noreply@github.com
6c6b92be69dae51b2f5d2845518c3defea495abe
6adc166c33bdada82f7509301e25d1c451852d24
/log/log_config.py
3fb9c0d9f12ce15977115f4fc21f827713b9fd2f
[]
no_license
liushiwen555/unified_management_platform_backend
ab0a92f38be7f68bc1d3c4570560ea89bf8fcb07
ae1ade20044b59de1e29288fcd61ba0b71d92be3
refs/heads/master
2023-06-25T22:45:24.669052
2021-07-27T01:08:24
2021-07-27T01:08:24
389,808,950
0
1
null
null
null
null
UTF-8
Python
false
false
1,172
py
from log.log_content import log_config """ LOG_CONFIG_DICT结构为: LOG_CONFIG_DICT{ URL_NAME:{ HTTP_METHOD: 生成log的类 } } """ LOG_CONFIG_DICT = log_config.get_config() class ModelLog(object): def __init__(self): self.conf_dict = LOG_CONFIG_DICT def log(self, request,...
[ "1599932996@qq.com" ]
1599932996@qq.com
b0629394abb4bc1fca15b22b03658e2e3db5dbaf
89a90707983bdd1ae253f7c59cd4b7543c9eda7e
/programming_python/Dbase/Sql/dumpdb.py
5f9388d122656adc52dde04932b87d1bff4696fb
[]
no_license
timothyshull/python_reference_code
692a7c29608cadfd46a6cc409a000023e95b9458
f3e2205dd070fd3210316f5f470d371950945028
refs/heads/master
2021-01-22T20:44:07.018811
2017-03-17T19:17:22
2017-03-17T19:17:22
85,346,735
0
0
null
null
null
null
UTF-8
Python
false
false
1,284
py
""" display table contents as raw tuples, or formatted with field names command-line usage: dumpdb.py dbname? table? [-] (dash=formatted display) """ def showformat(recs, sept=('-' * 40)): print(len(recs), 'records') print(sept) for rec in recs: maxkey = max(len(key) for key in rec) # m...
[ "timothyshull@gmail.com" ]
timothyshull@gmail.com
80755680b89c9c8b9bac69b7cbd1aeff219a9986
fa068d01659d04e15129da9079f4d6808b81c876
/grad-cam/guided_back_propagation.py
d4d537471832c78b183207bff999bfec12b4ae85
[ "Apache-2.0" ]
permissive
Gaotrees/DR-Grading
22466cc8e561eac0cffeba9f30eb921a15419746
a2b17356d128ed4783c1019999066ffc4fc76c32
refs/heads/master
2022-12-02T22:30:39.369282
2020-08-19T12:56:13
2020-08-19T12:56:13
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,238
py
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Time : 2020/7/6 12:47 # @Author : JackyLUO # @E-mail : lingluo@stumail.neu.edu.cn # @Site : # @File : guided_back_propagation.py # @Software: PyCharm import torch from torch import nn import numpy as np class GuidedBackPropagation(object): def __init_...
[ "1790053122@qq.com" ]
1790053122@qq.com
527c3c53f68f3c19ce6a1248f51bd4c41b7c30a8
430f090de6dffbcc1b7639f74e460e620772494f
/LabTest/Q1/lt1.py
de049dca207819b4f5894dc899efda8f509afc7c
[]
no_license
SoeKhant/SoeKhant
d520d093adcdd641d1f7332b36c140c5b7e78d1f
9b69db9ab2c1d267c54bd0fd02b3c7d4cd7577bd
refs/heads/master
2020-04-26T03:23:16.862736
2019-03-03T10:56:17
2019-03-03T10:56:17
173,265,429
0
0
null
null
null
null
UTF-8
Python
false
false
349
py
# Name: Soe Khant # Section: G2 # lt1.py # TODO: Fill up this function # Returns: an integer (the product of all integers between i and j (including i and excluding j)) # Inputs: i and j are two integers. you can assume that j will always be bigger than i def get_product(i, j): product=1 for i in range(i,j): ...
[ "soe.khant.2017@sis.smu.edu.sg" ]
soe.khant.2017@sis.smu.edu.sg
1a42382a808af796b3d6117a9680091d99d8e481
799a020248e23041ee20929316f633a930a66637
/doc/examples/simple.py
dfb10e50482a3d3c195e37cc4c9e98e46e618a43
[ "MIT" ]
permissive
stpremkumar/watchdog
57cfc00330bed7ecc937961a7d69603b44da3538
17543613292f25c9fe03a0ea39ad7988d0a9bb16
refs/heads/master
2021-01-17T10:00:00.281353
2010-11-19T07:53:55
2010-11-19T07:53:55
null
0
0
null
null
null
null
UTF-8
Python
false
false
823
py
import sys import time from watchdog import Observer, FileSystemEventHandler import logging logging.basicConfig(level=logging.DEBUG) class MyEventHandler(FileSystemEventHandler): def catch_all_handler(self, event): logging.debug(event) def on_moved(self, event): self.catch_all_handler(event)...
[ "gora.khargosh@gmail.com" ]
gora.khargosh@gmail.com
8bd5ea84bb92ea9f58653e632d75b52bae561aeb
821350c63f23af43cdd4d32d8ad34f6c02f95402
/id_number_detector/id_num_sub.py
d75d9b820be74a1c50b6e00b944bb10a7aa3e645
[]
no_license
naseef139/Robot-Assistant-Dev-Bank
533f13309f719215e90009646e53fc274065459d
37b957f48f0200ffafaf7a4299eec32d97abe456
refs/heads/master
2023-04-03T08:30:20.228847
2021-04-14T19:10:10
2021-04-14T19:10:10
265,094,814
0
0
null
null
null
null
UTF-8
Python
false
false
605
py
#!/usr/bin/env python import pyttsx3 import rospy from rospy_tutorials.msg import Floats from rospy.numpy_msg import numpy_msg from std_msgs.msg import String import re def callback(data): no= data.data print("######## recieved ############") if no: print(no) engine = pyttsx3.init(...
[ "60naseef2@gmail.com" ]
60naseef2@gmail.com
81fee573198964b7d82b9a96b67a5d08fae8c1ca
3263a9c98a2da11ab992451940e38dd802788dd2
/convert-simple-text.py
64f71f5c6bd6c339a2c127bf526e218c750e3a3a
[ "Apache-2.0" ]
permissive
aicfe/kys-resource-to-epub
d9c2d4742e135984ce121af02f206d5eeeb1608a
b808bb3a057bc8a65e809f5a52ef5c8f7d986fff
refs/heads/master
2020-12-30T10:11:58.938519
2017-08-03T13:59:10
2017-08-03T13:59:10
99,238,035
0
0
null
null
null
null
UTF-8
Python
false
false
3,784
py
# -*- coding: utf-8 -*- import json import mysql.connector import os import re import uuid from ebooklib import epub output_dir = os.getcwdu() + '/build' oid = '100100010007' sections = ('','首页','小喇叭','识字通','资料城','推荐网址','作者简介','课文学习','拓展资源','习作园地','背景知识','音频材料','教学资料','<!-- 备用 -->','阅读方法指导','文本探究','拓展阅读','拓展写作','主题...
[ "longxianghe@gmail.com" ]
longxianghe@gmail.com
d34ce367d13c8e2590f2eb19acd96940f9d4aa23
05fcc81d90ba87955e6d0a28b16e3d09946dbbac
/app.py
d2d31327be817faf21073f3a90c9d04b74302d21
[]
no_license
Chaitanya4000/LoanAmountPrediction
a2e4809d9eaad9a272f4ab9934d7f041aed1bc6d
6de357119b1fb543fa03cb294ff05a58eb1c6923
refs/heads/main
2023-02-06T14:41:54.636184
2021-01-01T11:16:36
2021-01-01T11:16:36
325,964,199
0
0
null
null
null
null
UTF-8
Python
false
false
903
py
import pickle import os from flask import Flask, request, jsonify app = Flask(__name__) try: modelpath = os.path.join(os.getcwd(),'Model/Regressor') with open(modelpath, 'rb') as f: model = pickle.load(f) print(modelpath,'This was success') except Exception as e: print(str(e)) ...
[ "noreply@github.com" ]
noreply@github.com
880d01f91b79c5bae80d1fbcc5492413031f7d76
5f86944bdf1b810a84c63adc6ed01bbb48d2c59a
/kubernetes/test/test_v1_service_status.py
1ce1ef5f3c6c9bd4502827d24bfdea8989ba9849
[ "Apache-2.0" ]
permissive
m4ttshaw/client-python
384c721ba57b7ccc824d5eca25834d0288b211e2
4eac56a8b65d56eb23d738ceb90d3afb6dbd96c1
refs/heads/master
2021-01-13T06:05:51.564765
2017-06-21T08:31:03
2017-06-21T08:31:03
null
0
0
null
null
null
null
UTF-8
Python
false
false
859
py
# coding: utf-8 """ Kubernetes No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) OpenAPI spec version: v1.6.5 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import os import sys im...
[ "mehdy@google.com" ]
mehdy@google.com
2630abbdd53c1fc1ab734fcfcc1a981f0a351e73
8bbe2351bbd157a46ccf8530cde4e4cc7b0bd3b7
/trashed_20170508/evan/Entropy.py
ed75ce66a6a3b227a188a9ff686da63efd021400
[]
no_license
airuibel/py_code
8dc98d71e79a4c0f785ad5cf81b2ca2073061ebf
1da9a9dcd37475dd14bab6ae58bca1e2dff4c251
refs/heads/master
2020-06-18T03:47:43.754204
2018-03-20T09:31:00
2018-03-20T09:31:00
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,366
py
from __future__ import division __author__ = 'Victor Ruiz, vmr11@pitt.edu' import pandas as pd import numpy as np from math import log import random def entropy(data_classes, base=2): ''' Computes the entropy of a set of labels (class instantiations) :param base: logarithm base for computation :para...
[ "l" ]
l
af73c60d36aefec8b5af8ad2808fa6cfd39e2542
7dcd840d896eccb1bed7868fda88973b1382ed94
/setup.py
7556608d1336b1fabc9185e643f28c41ec147e28
[ "MIT" ]
permissive
Keita1/pycrunchbase
18a341eca43e9d8a3f62e2c82026050b05fe9701
d172577d979899ca7cf0f97caa1f079476906a0c
refs/heads/master
2020-12-25T23:36:20.860263
2015-10-21T02:50:59
2015-10-21T02:50:59
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,791
py
#!/usr/bin/env python # -*- encoding: utf-8 -*- from __future__ import absolute_import, print_function import io import os import re from glob import glob from os.path import basename from os.path import dirname from os.path import join from os.path import relpath from os.path import splitext from setuptools import f...
[ "ngzhian@gmail.com" ]
ngzhian@gmail.com
809a7ea6292ef0a395dcd468f3351660ac0a0696
7b35443f990d7db368989eaf40ef179928dff4f6
/pizza/migrations/0002_auto_20201119_0901.py
e7e4e16da9ed7426cf67df8374112a23ac7897b8
[]
no_license
Md-Mahmudur-Reza/learning_form
1ff85513b51c5176ddf0a77132405491f2335301
a185bd0ed00c950e61e128e9fdf85168a9cb143c
refs/heads/master
2023-04-09T22:24:03.252021
2021-04-21T13:06:29
2021-04-21T13:06:29
360,173,443
0
0
null
null
null
null
UTF-8
Python
false
false
492
py
# Generated by Django 3.1.3 on 2020-11-19 03:01 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('pizza', '0001_initial'), ] operations = [ migrations.RenameField( model_name='pizza', old_name='topper1', new_na...
[ "mahmudreza27@gmail.com" ]
mahmudreza27@gmail.com
cb19a76f0dc79e5c6eef8b1ce54a6046b9adb65a
686784af2274a7c16b02e2cbc0b85ca4d5e5c5aa
/src/signalflowgrapher/commands/remove_node_command.py
5298893fc289b920e88f4797e2f50bc4144e21cb
[ "Artistic-2.0", "LicenseRef-scancode-free-unknown" ]
permissive
naaeef/signalflowgrapher
58c0114ff008f4039a5596420004f7df96e669c6
0ac3b4a8f11830e5cd7665264ab4e723b5ddaad9
refs/heads/master
2022-12-19T00:15:16.855351
2020-09-17T07:51:28
2020-09-17T07:51:28
297,249,314
0
0
Artistic-2.0
2020-09-21T06:32:19
2020-09-21T06:32:18
null
UTF-8
Python
false
false
465
py
from signalflowgrapher.commands.command_handler import Command from signalflowgrapher.model.model import ObservableGraph, PositionedNode class RemoveNodeCommand(Command): def __init__(self, graph: ObservableGraph, node: PositionedNode): self.__graph = graph self.__node = node def undo(self): ...
[ "hanspeter.schmid@fhnw.ch" ]
hanspeter.schmid@fhnw.ch
a23cb99657d46e59cb75d90e4615de8c730929e5
49d55a12fe666bbcff0cfd287afa256fa2a750b9
/atm.py
767eba305fe083cf8a002725b1a584b88cf4ade6
[]
no_license
Subhanshi-Rawat/ATM-Simulator
8531eef4a4e4258ef1c4f94ef7232c8c21217cfe
a8b818cacbc7bdf45a09d20bcc547132eb55fd2c
refs/heads/master
2023-01-24T21:22:46.627233
2020-11-28T16:09:59
2020-11-28T16:09:59
316,770,502
0
0
null
null
null
null
UTF-8
Python
false
false
24,121
py
import tkinter as tk import time current_balance = 1000 class SampleApp(tk.Tk): def __init__(self, *args, **kwargs): tk.Tk.__init__(self, *args, **kwargs) self.shared_data = {'Balance':tk.IntVar()} container = tk.Frame(self) container.pack(side="top", fill="both", expand=True) ...
[ "subhanshirawat@gmail.com" ]
subhanshirawat@gmail.com
efb130842b20f8c95ca97f2d81031cbe9346efee
dc3470c8801fe9bc3e9a67454e4460035c3ac50b
/main/serializers.py
ae7212f7dbeb344a861b62d7b561d5cd5312c5c3
[]
no_license
sh-mykola/Useriko
da63554a6d86856f261ec1911763faee4aaad114
2116d15ed5afac980d788950d1e68b3ecf324152
refs/heads/main
2023-02-10T08:36:27.448821
2021-01-09T17:05:22
2021-01-09T17:05:22
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,260
py
from rest_framework import serializers from .models import Account, AccountGroup class AccountSerializer(serializers.ModelSerializer): group_name = serializers.CharField(source='group.name', read_only=True) class Meta: model = Account extra_kwargs = { "username": { ...
[ "sheredko.mykola@gmail.com" ]
sheredko.mykola@gmail.com
5d81f00e6ed97d46ea3a1c80d7a52c23666db239
91b2fb1fb6df216f2e365c3366bab66a567fc70d
/Week08/每日一题/342. 4的幂.py
90f118bb6733e9b684bf6a93850ca73ef1b6af84
[]
no_license
hrz123/algorithm010
d17aee642f03f607a7984beb099eec18f2de1c8e
817911d4282d2e226518b3533dff28282a91b3d4
refs/heads/master
2022-12-20T14:09:26.365781
2020-10-11T04:15:57
2020-10-11T04:15:57
270,178,423
1
0
null
2020-06-07T03:21:09
2020-06-07T03:21:09
null
UTF-8
Python
false
false
2,606
py
# 342. 4的幂.py # 1. 暴力解,不解释 # 2. 暴力解法+预计算 # 我们知道输入的整数是32位整数x<2**31-1的,因此我们最大的4的幂次是15 # 所以我们总共有0-15 16种可能性 # 3.大于0且log2后是一个偶数 # 4.位操作:4的幂,二进制位都在1,3,5等位置,00000001, 00000100, 00010000 # 而只是2的幂,二进制都在2,4,6等位置 # 135位置的16进制为0x55555555 32位表示,246的16进制为0xaaaaaaaa,位与上其中一个等于0或1 # 5. 位操作判断是2的幂,对3的余数为1的是4的幂,为2的话是2的幂 class ...
[ "2403076194@qq.com" ]
2403076194@qq.com
61e6a684a690d8fb136817724faa22d67e50f160
ab072b9c47d3940f1d0fe5920b8c5a27f00c78cb
/python/euler6.py
de420b76e83a926f36112c2b0ea4dfbb6d84f668
[]
no_license
fxdgear/project_euler
d1ee19790dbb05c52758f92e95ca0ca8eccfe118
16eff0c8b53f56ccdf3ab6bc18b580f4173f0818
refs/heads/master
2020-06-04T05:44:08.434958
2011-12-05T05:48:28
2011-12-05T05:48:28
1,170,047
0
0
null
null
null
null
UTF-8
Python
false
false
529
py
""" The sum of the squares of the first ten natural numbers is, 1^2 + 2^2 + ... + 10^2 = 385 The square of the sum of the first ten natural numbers is, (1 + 2 + ... + 10)^2 = 55^2 = 3025 Hence the difference between the sum of the squares of the first ten natural numbers and the square of the sum is 3025 385 = 2640...
[ "nick.lang@gmail.com" ]
nick.lang@gmail.com
6acfe4859c1a085f1429a2e3fbc748dd10b5e434
27fdf2c4ee65215a1974bf65705d749fc09f9413
/Competition/venv/Scripts/easy_install-script.py
1a14410a275f05d02435ed504061e33ace8cb535
[]
no_license
jh2674/Guilty-or-Not-Guilty-Prediction-Competition
2fb4e5e202c7d27996db35f7aa915bf6de7722d7
8a02af4cce848be43ea463a12322357fde77add4
refs/heads/master
2020-05-18T01:10:53.305234
2019-05-11T18:26:57
2019-05-11T18:26:57
184,081,819
0
0
null
null
null
null
UTF-8
Python
false
false
452
py
#!"C:\Users\Jie Huang\Desktop\Competition\venv\Scripts\python.exe" # EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==40.8.0','console_scripts','easy_install' __requires__ = 'setuptools==40.8.0' import re import sys from pkg_resources import load_entry_point if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|...
[ "jh2674@cornell.edu" ]
jh2674@cornell.edu
81a42ccdd857bad5f3dc6eb2f2b2d73362e6ce9e
09fd456a6552f42c124c148978289fae1af2d5c3
/Array/1380.py
1060e1504031b93129f5620c6c68d483b799b102
[]
no_license
hoang-ng/LeetCode
60b4e68cbcf54cbe763d1f98a70f52e628ab32fb
5407c6d858bfa43325363503c31134e560522be3
refs/heads/master
2021-04-10T11:34:35.310374
2020-07-28T10:22:05
2020-07-28T10:22:05
248,932,393
0
0
null
null
null
null
UTF-8
Python
false
false
1,332
py
# 1380. Lucky Numbers in a Matrix # Given a m * n matrix of distinct numbers, return all lucky numbers in the matrix in any order. # A lucky number is an element of the matrix such that it is the minimum element in its row and maximum in its column. # Example 1: # Input: matrix = [[3,7,8],[9,11,13],[15,16,17]] # Outp...
[ "hoang2109@gmail.com" ]
hoang2109@gmail.com
650ea352afa0c99dffddc30cab36a760378d64c3
9895003ec85446e2e774be34ef58f3be12accf81
/game04.py
40b6bfba65e9e1916e181365c607f173b13d292c
[]
no_license
qiangnz/SpaceWarGame
c0d1e4c8a49ded8e0c18090dbc002ecf33011816
edc97c6770f73d8081250ec18aa90121e3093a97
refs/heads/master
2023-08-26T14:07:40.294018
2021-10-13T10:59:35
2021-10-13T10:59:35
416,698,077
0
0
null
null
null
null
UTF-8
Python
false
false
2,350
py
import pygame import random FPS=60 WIDTH=500 HEIGHT=600 BLACK=(0,0,0) WHITE=(255,255,255) RED=(255,0,0) GREEN=(0,255,0) YELLOW=(255,255,0) # Game Init and Create Window pygame.init() screen=pygame.display.set_mode((WIDTH,HEIGHT)) pygame.display.set_caption("My First Game") clock=pygame.time.Clock() class Player(pyg...
[ "qiang.z@outlook.com" ]
qiang.z@outlook.com
5dbac350ad3b1f22e60bdf795cf1f210f6a184fd
b40d5e679c289a041f1562b68c3fdf4a1129a8c8
/gender_classification/data_processing/gender.py
fc3db7d53ad779c59f28b47500d04ee52a7df92b
[]
no_license
JUNGSUNWOO/NeuralNetworkClass
7cb1980f26a8a75d983efbf8e17b97d058d5a533
e833c7eb716cc2b8c4f101a9558eb529667d5646
refs/heads/main
2023-02-23T16:12:12.447051
2021-01-19T07:28:24
2021-01-19T07:28:24
315,470,509
0
0
null
null
null
null
UTF-8
Python
false
false
2,608
py
# Importing dependencies import pandas as pd import numpy as np import cv2 import os from sklearn.model_selection import train_test_split # Loading the data meta = pd.read_csv('meta.csv') # Deleting the age column as we dont need it meta = meta.drop(['age'], axis=1) # Spliting the dataset into train and test set D_t...
[ "tjsdn970924@naver.com" ]
tjsdn970924@naver.com
a9b57132d2463d5a1544bb28dc24c79e9975f645
bb33e6be8316f35decbb2b81badf2b6dcf7df515
/source/res/scripts/client/gui/Scaleform/daapi/view/meta/FalloutTankCarouselMeta.py
7f535a3045bd53b0a9708717d041352cc1658195
[]
no_license
StranikS-Scan/WorldOfTanks-Decompiled
999c9567de38c32c760ab72c21c00ea7bc20990c
d2fe9c195825ececc728e87a02983908b7ea9199
refs/heads/1.18
2023-08-25T17:39:27.718097
2022-09-22T06:49:44
2022-09-22T06:49:44
148,696,315
103
39
null
2022-09-14T17:50:03
2018-09-13T20:49:11
Python
UTF-8
Python
false
false
812
py
# Python bytecode 2.7 (decompiled from Python 2.7) # Embedded file name: scripts/client/gui/Scaleform/daapi/view/meta/FalloutTankCarouselMeta.py from gui.Scaleform.daapi.view.lobby.hangar.carousels.basic.tank_carousel import TankCarousel class FalloutTankCarouselMeta(TankCarousel): def changeVehicle(self, id): ...
[ "StranikS_Scan@mail.ru" ]
StranikS_Scan@mail.ru
a9aad64fb57421b8f7e7a43d86947cd04c03456d
888b33376bb332878fc8dfaf9f6e561946a826df
/src/misc/testaddict.py
e465415f8d995b165ed379d7fe24a1df6b30f67e
[ "Apache-2.0" ]
permissive
dice-project/DICE-Monitoring
b3f181a8815abf762596b680ef08bf09605e3641
0b00fc766ba88033487d0f603c0e2af7568b615d
refs/heads/master
2021-01-20T15:39:22.590544
2017-12-07T09:53:57
2017-12-07T09:53:57
60,150,444
1
1
Apache-2.0
2018-10-01T04:34:02
2016-06-01T06:15:03
Python
UTF-8
Python
false
false
2,197
py
from addict import Dict queryBody= { 'size': 100, 'sort': { '@timestamp': 'desc' }, 'query': { 'filtered': { 'query': { 'query_string': { 'query': 'hostname:\"dice.cdh5.s4.internal\" AND serviceType:\"dfs\"', 'analyze_wildcard': True } }, 'filter': ...
[ "juhasz_gabriel@yahoo.com" ]
juhasz_gabriel@yahoo.com
0e6f26851cc89602abdccb802d2ded211b79b8dd
80e6a8eccc8ac6ce77e4ba5f9ff594698590f3a9
/Learning_libraries/Simpy_/mafs.py
833b160bd2cc90e45f8fdebc35ead5679e4230a2
[]
no_license
rjremillard/Coding-from-A-Level
1de6cf6f6c8bcf9a873d0444b2201413121fe762
3ccef7600a7b4e6e47a6bebc51fb38b127b602fc
refs/heads/master
2023-05-23T21:52:15.259180
2021-06-14T18:18:37
2021-06-14T18:18:37
null
0
0
null
null
null
null
UTF-8
Python
false
false
310
py
import numpy MAX_CASHIERS = 10 MAX_SERVERS = 10 MAX_USHERS = 10 MAX_CUSTOMERS = 453 times = [] for cashiers in range(1, MAX_CASHIERS): for servers in range(1, MAX_SERVERS): for ushers in range(1, MAX_USHERS): times.append(((cashiers, servers, ushers), calc(cashiers, servers, ushers))) print(times)
[ "64492350+Reddersc022@users.noreply.github.com" ]
64492350+Reddersc022@users.noreply.github.com
09eace5fc569969dfa9339e4f36a92150b13e001
f4aa554cb461f93ee76a431ce0898d93d72b40fd
/Semana 4/most_frequent/occurrence.py
bce6e535b61fd265f3236b344162bd57fc3d9cc8
[ "MIT" ]
permissive
juandausa/CompetitiveProgrammingCoreSkills
7235e98a05497b8ee511de50fac4f385d3f9fa04
1ef0d902b6c05afba4b44c34ade87c376187fd1d
refs/heads/master
2021-03-27T22:17:09.875259
2020-03-27T13:55:39
2020-03-27T13:55:39
247,812,295
0
0
null
null
null
null
UTF-8
Python
false
false
796
py
from collections import Counter import operator class Occurrence: def __init__(self, character=None, occurrence=None): if (not character is None): self.occurrences = dict({character: occurrence}) else: self.occurrences = dict() def add(self, other_occurrence...
[ "juandausa@gmail.com" ]
juandausa@gmail.com
51552b53e473647d753209308acd61c16079fd59
ccb8d0a0ce94d0a8b01714d8ddf4889b621208f0
/VisEval_tool/VisEval/readWrite.py
dcc3a4c1df4d617599eeac435b4f2edd73f599dc
[]
no_license
santoshboina1993/VisEval_Metric_Viewer
d67a523d15e4b5f53c5e2daacb7f8b7dc1e4273f
3144353a861198a577bfcd3f5e0833371b7cb18f
refs/heads/master
2022-03-08T19:18:33.990704
2019-11-24T23:37:08
2019-11-24T23:37:08
260,196,922
1
0
null
2020-04-30T11:47:18
2020-04-30T11:47:17
null
UTF-8
Python
false
false
343
py
# -*- coding: utf-8 -*- """@author: david, Date Fri Jan 22 17:17:38 2016""" def readFile(fileIn): # Open a file in read mode fi = open(fileIn, "r") lines = fi.readlines() fi.close() return lines def writeFile(outList, fileOut): fo = open(fileOut, "w") for line in outList: fo.wri...
[ "l1ng5ter75@hotmail.com" ]
l1ng5ter75@hotmail.com
38c425f9ef9fd30233908ad04ee273e8a3743edb
b15326227712a1c1324de0d2e8a88a9073df6be1
/gimp_plugin/semestralkaLBP.py
5e7c0439273e1b9ce152b529915b35a6c9ebfd93
[]
no_license
svickpet/BI-PGA
51d1b6f1a1715aeeea3e221e69a17412ea5c2a2a
fb7871b70cea2feddb4adedf5d5cb9dd3bd2fc17
refs/heads/master
2020-06-03T04:01:48.074487
2019-06-11T18:45:57
2019-06-11T18:45:57
191,430,571
0
0
null
null
null
null
UTF-8
Python
false
false
5,750
py
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import print_function import gimp, gimpplugin, math, array from gimpenums import * pdb = gimp.pdb import gtk, gimpui, gimpcolor from gimpshelf import shelf import numpy as np class lbp_plugin(gimpplugin.plugin): shelfkey = "lbp_plugin" default_gradi...
[ "petule.svickova@seznam.cz" ]
petule.svickova@seznam.cz
cd8dbe19a67e8ef7bed57e61394fe2abd45dd9cc
c48221dbd1335701178a8b4bfadd22b16fa168fd
/tests/example_app/admin.py
3bc84c5af51a76dbe4fa83ca91d69cf12bbdce1f
[ "BSD-2-Clause" ]
permissive
prokaktus/django-meta
e92e9c45239993e4d6b350083a84c1d98a01f515
21e740f083ea32b150ad012c3bc7941ed920de20
refs/heads/develop
2020-04-05T14:35:42.801057
2017-05-06T12:26:17
2017-05-06T12:26:17
94,702,571
1
0
null
2017-06-18T17:31:16
2017-06-18T17:31:16
null
UTF-8
Python
false
false
185
py
# -*- coding: utf-8 -*- from __future__ import absolute_import, print_function, unicode_literals from django.contrib import admin from .models import Post admin.site.register(Post)
[ "i.spalletti@nephila.it" ]
i.spalletti@nephila.it
ad39f09b7874e552aa32a908630a17b34bcdcd25
9b722ca41671eb2cea19bac5126d0920639261bd
/.history/app_20201130150055.py
a316d9ebab63b4be424a874dca4efbd8ca1abc4d
[]
no_license
thawalk/db_flask_server
7928fd481f99d30bdccc60d97f02db78324cfdbe
cd55f1c9bf84c734457ee02d9f64a6833e295fad
refs/heads/master
2023-01-25T02:40:19.097457
2020-12-06T07:45:50
2020-12-06T07:45:50
314,229,480
0
0
null
null
null
null
UTF-8
Python
false
false
10,928
py
import json import pymongo from flask import Flask, jsonify, url_for, request, redirect,Response,Request import pymongo from bson.json_util import dumps import mysql.connector from werkzeug.serving import run_simple import os from dotenv import load_dotenv import datetime import time from flask_cors import CORS import ...
[ "akmal_hakim_teo@hotmail.com" ]
akmal_hakim_teo@hotmail.com
e2b8e855db9448e5dc41f8545f0571ae8baf5419
6444622ad4a150993955a0c8fe260bae1af7f8ce
/djangoenv/lib/python2.7/site-packages/django/conf/global_settings.py
35255ffe5295aaf95f5516e907739800d49c5501
[]
no_license
jeremyrich/Lesson_RestAPI_jeremy
ca965ef017c53f919c0bf97a4a23841818e246f9
a44263e45b1cc1ba812059f6984c0f5be25cd234
refs/heads/master
2020-04-25T23:13:47.237188
2019-03-22T09:26:58
2019-03-22T09:26:58
173,138,073
0
0
null
2019-03-22T09:26:59
2019-02-28T15:34:19
Python
UTF-8
Python
false
false
22,077
py
# -*- coding: utf-8 -*- """ Default Django settings. Override these with settings in the module pointed to by the DJANGO_SETTINGS_MODULE environment variable. """ from __future__ import unicode_literals # This is defined here as a do-nothing function because we can't import # django.utils.translation -- that module d...
[ "jeremyrich@free.fr" ]
jeremyrich@free.fr
9e68d817092c1413ed7430f33286466d5bdee3d3
dd23172faf24eb14111310e6f863e2605cc7c9c0
/ocrpack/trainer.py
3e8139373e35bbc5321ddf44d44aa4eef7be848c
[]
no_license
povilasb/ocr-pack
acce98698ebd31fd51593c91e6ff29b8873966cc
c9fa52da9231f700209ac9125d283a923955eb42
refs/heads/master
2021-06-27T17:02:26.902000
2017-09-18T17:17:29
2017-09-18T17:17:29
103,389,242
0
1
null
null
null
null
UTF-8
Python
false
false
911
py
"""Trains character classifier. Classifier is permanently stored to disk so that could be reloaded when prediction operations are needed. """ import click from . import ml @click.command() @click.option('-i', '--input-dir', 'input_dir', type=str, default='labelled-chars', show_default=True, ...
[ "balciunas90@gmail.com" ]
balciunas90@gmail.com
2675e04e9ec0304af407ebc46bb92310c45b9168
995b52d2d38436f038020628ef6d67b8cb62ecc7
/pyngsqc/converter.py
8dce1f171f1f3da75a2c63498ca1807fdbdadf1b
[]
no_license
fw1121/pyNGSQC
4ccd09920aad2eea334207bca5435d5d96873d4e
1d9de6c97790c7c7c1b10a68073608831acd4d3e
refs/heads/master
2021-01-22T12:53:08.837901
2013-06-17T05:21:27
2013-06-17T05:21:27
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,713
py
# -*- coding: utf-8 *-* # Copyright 2012 Kevin Murray # 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 License, or #(at your option) any later version. # This program is ...
[ "k.d.murray.91@gmail.com" ]
k.d.murray.91@gmail.com
d7faddb18b208f7cd7037d1f594e9fd278ae6766
b70d6c5b5a32b890e992609b3ac59da849daccdd
/migrations/versions/a24d05ddbd76_.py
ec243bf3e2441b20befc78264896f7f5a90770e1
[]
no_license
xvoyage/fk2017
d1c1c25516a7638b7644e4d587118b20d08ea976
ee50c04f77700e603e73201465b88553aed106fe
refs/heads/master
2021-07-13T20:04:35.119645
2017-10-11T09:55:58
2017-10-11T09:55:58
104,310,834
0
0
null
null
null
null
UTF-8
Python
false
false
1,299
py
"""empty message Revision ID: a24d05ddbd76 Revises: 857c90eb0750 Create Date: 2017-10-10 15:47:10.955000 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = 'a24d05ddbd76' down_revision = '857c90eb0750' branch_labels = None depends_on = None def upgrade(): # ...
[ "304035020@qq.com" ]
304035020@qq.com
630833e15b9eeef2c27c89289997599fd9ec2ebd
9eb5d1e0c0809e07b9c84ecc145643d6366d3dd9
/18.py
f66797eda517d2a51ea120fcfb742a57a47405e6
[]
no_license
simhu610/aoc2017
ed56644fbc322ce1e4849c11ade01a9c0d0ecc3e
039ca6517b236990b6b7770f958082608f5df6a7
refs/heads/master
2021-08-31T23:36:35.723610
2017-12-23T13:52:29
2017-12-23T13:52:29
115,043,537
0
0
null
null
null
null
UTF-8
Python
false
false
2,377
py
x = open("18").readlines() I = [] for line in x: l = line.split() I.append({'instr': l[0], 'reg': l[1]}) if len(l) == 3: I[-1]['val'] = l[2] print I regs = [{'p': 0}, {'p': 1}] for reg in regs: reg['a'] = 0 reg['b'] = 0 reg['i'] = 0 reg['f'] = 0 pointer = [0, 0] q = [[], []] res...
[ "simonhugoson@hotmail.com" ]
simonhugoson@hotmail.com
ea5eb2198bd1f37303dca89cfec5567c76483eff
3a9f8d21fd8f37cc6bf7ba6ca4a0b2cf1ef3fdf8
/src/joy_teleop.py
acdde2b4729a4f83193a0d0e7234aece109a1984
[]
no_license
patilnabhi/nuric_wheelchair_model_02
6ba82b40ba2f9b4f69daebed593b2946004631cc
1afb80a170b5d5bbc2b8d2a53d81d7054d5a8a2c
refs/heads/master
2021-08-26T07:37:59.250334
2021-08-03T17:52:36
2021-08-03T17:52:36
65,569,259
2
2
null
null
null
null
UTF-8
Python
false
false
803
py
#!/usr/bin/env python import rospy import sys from geometry_msgs.msg import Twist from sensor_msgs.msg import Joy class JoyTeleop: def __init__(self): rospy.init_node('joy_teleop') self.joy_cmd = Twist() #Setup subscriber self.joy = rospy.Subscriber('joy', Joy, self.joy_callback) # Setup publisher self....
[ "patilnabhi@gmail.com" ]
patilnabhi@gmail.com
e43eb0e76c24d34b94fcfec790dc38539bab4d0f
0e10ddf7a6addf11602013c9919b064de91d74ff
/robot_randomsearch_base.py
cfd13912b61a29a5b9b9357f80b4100a282e583c
[]
no_license
JulienAndres/L3_3I025_Projet2
a450df4d88662c28ffb36b8e84fb2a2b9171aa93
3e08789bb407cf67abb1d233ad830aa7ac7b6fe3
refs/heads/master
2021-01-22T08:39:24.198858
2017-05-27T23:57:16
2017-05-27T23:57:16
92,628,343
0
1
null
null
null
null
UTF-8
Python
false
false
10,195
py
#!/usr/bin/env python # -*- coding: utf-8 -*- # # multirobot.py # Contact (ce fichier uniquement): nicolas.bredeche(at)upmc.fr # # Description: # Template pour robotique evolutionniste simple # Ce code utilise pySpriteWorld, développé par Yann Chevaleyre (U. Paris 13) # # Dépendances: # Python 2.x # Matplotl...
[ "julienandres06@gmail.com" ]
julienandres06@gmail.com
19fc196e7122e621e167fc7eeeec4b3aa4748833
e58bc28581f74c907f2941fd0ab7fcc236d428a4
/prac_01/electric_bill.py
f7ce64fdb7e1a55c7e44ec1b4f053d9bab6ca686
[]
no_license
ChrisRyan64/CP1404_Programming
1016c66bff0f277b27e304d51ea777528c8bf993
613dd187f4341275af7fe55eaf7dfece45114bef
refs/heads/master
2021-01-18T21:06:55.452972
2017-10-05T02:55:10
2017-10-05T02:55:10
100,553,952
0
0
null
2017-08-31T02:56:16
2017-08-17T02:44:34
Python
UTF-8
Python
false
false
324
py
print("Electric Bill Simulator") cents_per_kWh = int(input("Enter cents/kWh: ")) daily_kWh_use = float(input("Enter daily use in kWh: ")) billing_period_days = int(input("Enter number of billing days: ")) total_bill = (cents_per_kWh * daily_kWh_use * billing_period_days) / 100 print("Your estimated bill is: $", total_b...
[ "christopher.ryan1@my.jcu.edu.au" ]
christopher.ryan1@my.jcu.edu.au
9c00a55da54a1aa9ae8da3bb53b06cff5b34d90f
7a7cdd3b3615042de71df3e0f7c7f201015a6ba5
/week4/lesson2/CalBMIv3.py
6df81ae728e59b4ff22fc2099c4eab23c5ca988e
[]
no_license
xiaolinian/myCodeAboutCourse_PythonFundamental
93520cbd9de3267c3cd82897a7c5d4c56d752f4f
b430d033c425a3740911e305003162c0ae7026a2
refs/heads/master
2020-04-29T01:14:47.680617
2019-03-15T03:16:13
2019-03-15T03:16:13
175,723,809
0
0
null
null
null
null
UTF-8
Python
false
false
518
py
#CalBMIv3.py height,weight = eval(input("请输入身高(米)和体重(公斤)[逗号隔开]:")) bmi = weight / pow(height,2) if bmi < 18.5: who,nat = "偏瘦","偏瘦" elif 18.5 <= bmi < 24: who,nat = "正常","正常" elif 24 <= bmi <25: who,nat = "正常","偏胖" elif 25 <= bmi <28: who,nat = "偏胖","偏胖" elif 28 <= bmi <30: who,nat = "偏胖","肥胖" else: ...
[ "470700329@qq.com" ]
470700329@qq.com
0407d31083889e6da55ffb9375086bca87cc39fb
ade200a6b38f97b8ceb176a927b992f86afff1cc
/tests/test-eventparser.py
28b31bcce99da2ded79e902493b9b487581bb073
[]
no_license
ryanmcf10/game-engine
426ab1eb9547f1a4710f460827923a8a8a42ac11
4a98613ae9289ff7ade7cf1d293ca1439723c3aa
refs/heads/master
2021-01-13T04:54:20.273986
2017-03-01T21:02:16
2017-03-01T21:02:16
81,133,490
0
0
null
null
null
null
UTF-8
Python
false
false
3,421
py
#allow loading module from parent directory import sys sys.path.insert(0, '..') #import test framework and module to be tested import unittest import eventparser as ep #import constants from pygame.locals import * from actions import * class EventParserTestCase(unittest.TestCase): def test_returns_correct_actio...
[ "ryanmcf10@gmail.com" ]
ryanmcf10@gmail.com
d00fb5ea4c6bd2c0d3b6ee9b94878f6a31180277
ba7ad4bb1adac8672b1736b49581ca687ae3b1e1
/compileOnSave.py
d139aadd2bd12c24c125dae0b2c905881aebc9a4
[ "Apache-2.0" ]
permissive
pjbonestroo/PagedList
ba058858e46fb344907877387a2d6f59d6ca0011
e4f560492be9d9b898f86cc92135b181895bf1a3
refs/heads/master
2021-10-11T07:27:26.732287
2019-01-23T08:32:48
2019-01-23T08:32:48
114,462,239
9
2
null
null
null
null
UTF-8
Python
false
false
2,252
py
import logging import os import shutil import subprocess import sys import time from pathlib import Path from watchdog.events import FileSystemEventHandler from watchdog.observers import Observer moduleName = 'pagedList' def executeFile(filename): try: p = subprocess.Popen(args="cmd.exe /k", stdin=subpro...
[ "pbonestroo@vmi-group.com" ]
pbonestroo@vmi-group.com
ad89c8e382b1c38b9391b759b079250c4d515a85
406d22ab6264dbc9148963e34a7f26353943bcf6
/coursedashboards/views/api/introduction.py
555cff6f081cc1a6c663785291287be6b606282d
[ "Apache-2.0" ]
permissive
uw-it-aca/course-dashboards
92645899dceb923d92e90ec2f2adee514702babc
df471680c82c10297268d92d8f4bef017ecd389a
refs/heads/main
2023-05-25T02:24:30.590626
2023-05-22T21:51:14
2023-05-22T21:51:14
89,730,384
1
0
Apache-2.0
2023-09-06T17:18:19
2017-04-28T17:43:50
Python
UTF-8
Python
false
false
1,124
py
# Copyright 2023 UW-IT, University of Washington # SPDX-License-Identifier: Apache-2.0 from django.http import JsonResponse from rest_framework.views import APIView from rest_framework.permissions import IsAuthenticated from rest_framework.exceptions import PermissionDenied from coursedashboards.dao.user import get_cu...
[ "mikes@washington.edu" ]
mikes@washington.edu
0fffdfcf4e1ec8477a77939f528d77ad467a4a16
fd25231975acd147e04dc3ed3627c92cb1a4f86c
/FlaskAPI/vir_env/lib/python3.7/site-packages/scipy/sparse/bsr.py
f86c448e1d216ac11586184af2d1e5370407136f
[]
no_license
sumitkutty/Flight-Price-Prediction
832a2802a3367e655b46d3b44f073d917abd2320
d974a8b75fbcbfa42f11703602af3e45a3f08b3c
refs/heads/master
2022-12-25T07:13:06.375888
2020-10-08T18:46:44
2020-10-08T18:46:44
302,366,725
0
0
null
null
null
null
UTF-8
Python
false
false
130
py
version https://git-lfs.github.com/spec/v1 oid sha256:ef0f9bb9c9a9bd37389ba380aa25a50d381d571eaa83888b4205f2d207020fc5 size 24882
[ "sumitkutty37@gmail.com" ]
sumitkutty37@gmail.com
02329856eb9b95320a71ce4e62ffae943a94a4e3
99a7300001efdd976064acb6cf79f98652af2da4
/Lesson_3/Decorators.py
dc28b1887ec84587021c3cf9ff696024dc04f10f
[]
no_license
AntonKulik1980/itea_october
895b2cf9b0b62b232e3c584747d306d9897621cd
060d8446cf2b1e850afe649f2bf24a7bbc249f8b
refs/heads/main
2023-02-01T03:39:18.888164
2020-12-07T10:10:09
2020-12-07T10:10:09
312,997,197
0
0
null
null
null
null
UTF-8
Python
false
false
586
py
from symbol import decorator from functools import wraps def decorartor(number=3): def actual_decorartor(func): @wraps(func) def wrapper(*name): print('-'* number) result = func(*name) print('-' * number) return result ...
[ "40906825+AntonKulik1980@users.noreply.github.com" ]
40906825+AntonKulik1980@users.noreply.github.com
99918be1b62fdfc038d9158c5a5abf93a769ada7
d8d74d9cdc8b7e2118a9d10d43a4868760d81c14
/refreshOnEdit.py
c24eeeabd794137657fb316a1b11f90a104a5806
[]
no_license
johnfn/rpg2d
87379b05fe8744ed7bcc96023e3713e2e6c4af7d
56fa0182636338f8f5c058676e2a04b28fb9494b
refs/heads/master
2021-01-10T21:15:46.194650
2010-09-19T23:04:15
2010-09-19T23:04:15
890,962
1
0
null
null
null
null
UTF-8
Python
false
false
1,033
py
import os import sys import time import subprocess import fnmatch file = sys.argv[1] rootpath = os.getcwd() files = {} refreshTime = 1 if file == "": print "Usage: python refreshOnEdit.py YourFile.py" exit(0) #parse directories def getLastModified(): filesdir = {} pattern = "*.*" for root, dirs,...
[ "johnfn@gmail.com" ]
johnfn@gmail.com
6fcdbce9aa6b59173f1a2d362ec0a0ff702048a5
d1590021cb64d76623c5804d36cab12c24f1cb1a
/2019/day_3/exercise_2.py
a50aab21cc55ad23e13b17e6617809307f3a0a32
[]
no_license
evroon/adventofcode
697bff2650cfef2cc96e02aa303a539bfc74e4bd
ceffd754b2723dd3f7141eb754ab4384590e8a14
refs/heads/master
2022-12-13T12:53:45.298040
2022-12-06T21:32:09
2022-12-06T21:32:09
159,942,333
1
0
null
2022-11-09T18:13:25
2018-12-01T12:28:25
C++
UTF-8
Python
false
false
815
py
import numpy as np def simulate(route): pos = 0 + 0j headings = { "U": 0 + 1j, "D": 0 - 1j, "L": -1 + 0j, "R": 1 + 0j, } history = np.zeros(len(route) * 999, dtype=complex) c = 0 for i, instruction in enumerate(route): for j in range(int(instruction[1...
[ "erik.vroon22@gmail.com" ]
erik.vroon22@gmail.com
f6bf3e88fd1c16c5ee4d22b5e78e8f477c1a0711
f086da74d8d15607211da6d5543726668f231f81
/welcomeAdmin.py
ed272d0442828fb791bb6b10fd8c7f88cb69efa9
[]
no_license
hardik-dadhich/Sentiment_analysis_desktopApp
f0fd3be42eb984ed79a2b925a4f0c03e9be3b50b
8ca88aa7bb559a2be126546bb8b6e151a4b826c8
refs/heads/master
2021-09-26T18:59:45.732079
2018-11-01T12:36:49
2018-11-01T12:36:49
null
0
0
null
null
null
null
UTF-8
Python
false
false
27,495
py
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'welcomeAdmin.ui' # # Created by: PyQt5 UI code generator 5.11.2 # # WARNING! All changes made in this file will be lost! from PyQt5 import QtCore, QtGui, QtWidgets import ibm_db from PyQt5.QtCore import QModelIndex from graph import * impor...
[ "dadhichhardik26@gmail.com" ]
dadhichhardik26@gmail.com
833d561784650c3042758da38b0fd297bc726793
a160fba91565090eab047fd49f70435acd540df1
/superset/migrations/versions/3c3ffe173e4f_add_sql_string_to_table.py
f6bc3df1938b3c26808c2e55f5789e14123c20db
[ "Apache-2.0", "BSD-3-Clause", "CC-BY-4.0", "BSD-2-Clause", "MIT" ]
permissive
121981/incubator-superset
9ea1f7b53d4c55ad9c5f2a26b433cfc08277943e
6079161210d2d2924986db61935137a4bf6a4c52
refs/heads/master
2021-06-22T02:24:22.460698
2021-02-11T08:08:25
2021-02-11T08:08:25
195,168,099
6
0
Apache-2.0
2021-02-23T03:15:54
2019-07-04T04:22:02
JavaScript
UTF-8
Python
false
false
1,197
py
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
[ "noreply@github.com" ]
noreply@github.com
9f43d32df7240c716b554e6cff6c613012be2ce6
e59e404cab8e8690d93c1bfabdcfb84164c865f8
/bin/miaLab_sliceViewer.py
6582ac51cf6dfc68e74b47342d872395905d7fec
[ "Apache-2.0" ]
permissive
BasilFinn/MIALab
8b383b307882def6266b148d5269d4213500db93
862f4fae2fc7e1bdf8128b12727e20fa129864a1
refs/heads/master
2020-08-07T08:30:26.687633
2020-01-04T16:30:12
2020-01-04T16:30:12
213,372,793
0
0
Apache-2.0
2019-10-07T12:05:41
2019-10-07T12:05:41
null
UTF-8
Python
false
false
1,666
py
import matplotlib.pyplot as plt import SimpleITK as sitk def remove_keymap_conflicts(new_keys_set): for prop in plt.rcParams: if prop.startswith('keymap.'): keys = plt.rcParams[prop] remove_list = set(keys) & new_keys_set for key in remove_list: keys.rem...
[ "simon.salzmann1993@gmail.com" ]
simon.salzmann1993@gmail.com
3161a5cd27238b9cfa5bc819abae49d5b6fca114
36785c0893ab1e2c81c6a03305f42459776a84e0
/ambra_sdk/service/entrypoints/order.py
f2e0fe900a88d10a1589a4cb0442c3d0b940b6d2
[ "Apache-2.0" ]
permissive
dicomgrid/sdk-python
06589f87f33850bd15e6e99fb683bada6492775f
2618e682d38339439340d86080e8bc6ee6cf21b5
refs/heads/master
2022-08-28T14:50:35.864012
2022-08-22T12:36:50
2022-08-22T12:36:50
253,867,502
11
6
Apache-2.0
2022-04-13T10:06:38
2020-04-07T17:36:56
HTML
UTF-8
Python
false
false
259
py
from ambra_sdk.service.entrypoints.generated.order import \ AsyncOrder as GAsyncOrder from ambra_sdk.service.entrypoints.generated.order import Order as GOrder class Order(GOrder): """Order.""" class AsyncOrder(GAsyncOrder): """AsyncOrder."""
[ "akapustin@ambrahealth.com" ]
akapustin@ambrahealth.com
14b8cf5bcb6c0b1e597f07ebf4e1d258d05c0022
fd27691b17cb70b81bd75bdcfec539e445d48673
/sample_probs.py
08e4e72366b97b9b841b43fd02f9ab49ea18cc41
[]
no_license
philipvipe/Vehicle-Route-Finding
de9067f8eb3023d688bd7f6a80f32d48134c5fad
532c34de3dc5809cecd950513e5306bdf73cdc35
refs/heads/master
2022-08-06T20:54:16.231456
2020-05-25T01:31:40
2020-05-25T01:31:40
266,656,452
0
0
null
null
null
null
UTF-8
Python
false
false
4,641
py
""" Test problems for Project 1 -- Dana Nau, Sept. 13, 2018 Here's a list of all the test problems in this file, given roughly in increasing order of difficulty: [rect20a, rect20b, rect20c, rect20d, rect20e, rect50, wall8a, wall8b, \ lhook16, rhook16a, rhook16b, spiral16, spiral24, pdes30, pdes30b, \ rectwall...
[ "philipvipe@gmail.com" ]
philipvipe@gmail.com
7d6a4cc109b5d6cb6f5261467563d82d6409b8f3
2f237b751d2a7aa19aa378ead0c4794db0bfb430
/ccr/testcase/test_capstone.py
d50b8e3bfd8af00c3f0d4c65eb7431f72bedc8c2
[ "MIT" ]
permissive
TouwaErioH/x86-sok
88bcbb078c00dc9a25df4d0df99aba3eed163d39
6c689fcad64b1156faed3f0cb7a68a9cdb751d0f
refs/heads/master
2023-08-14T04:37:13.249729
2021-09-25T04:21:46
2021-09-25T04:21:46
null
0
0
null
null
null
null
UTF-8
Python
false
false
759
py
import capstoneCallback from capstone import * md = Cs(CS_ARCH_X86, CS_MODE_64) md.skipdata_setup = (".unhandled", capstoneCallback.mycallback, None) md.skipdata = True md.detail = True CODE=b'\x0f\x01\xee\x34\x12\xff\x00\x00\x00\x00\x00' current_addr = 0x1000 offset = 0 while True: disasm_result = md.disasm(CODE, ...
[ "1131252124@qq.com" ]
1131252124@qq.com
12cc05c20f3247fe9feb7cf013212f1d51afd693
3f33cc309d07b54541b3499f87e00fb91b5d727a
/tests/test_pdfx.py
436192d67099f84867581961150e63540919e0bb
[]
no_license
UsmanGorsii/pdfx_new
f5d02c202108832b33c8bb16c9f371a8b34edb83
c7dc94e8649f1203003a0e762980612cc7a72f5a
refs/heads/master
2021-01-08T12:25:24.121396
2020-02-23T13:36:36
2020-02-23T13:36:36
242,026,773
0
0
null
null
null
null
UTF-8
Python
false
false
911
py
from __future__ import absolute_import, division, print_function import os import pdfx import pytest curdir = os.path.dirname(os.path.realpath(__file__)) def test_all(): with pytest.raises(pdfx.exceptions.FileNotFoundError): pdfx.PDFx("asd") with pytest.raises(pdfx.exceptions.DownloadError): ...
[ "uch441@gmail.com" ]
uch441@gmail.com
b866c9d98d721c2e46b53ade178d935ac345b7f0
20564b667fe6a9fa7c75e9b20e2f0446ec3440c8
/venv/bin/pip3
27feb6ae67391b30f70bc833820ae9d3ff02bf94
[]
no_license
prashantpandey9/Covid19-India-tracker
a7e544264df92df7c790e5745ef70b69fc39263a
03df61342dffd12520f5f4172f879e35e9e6fa85
refs/heads/master
2023-08-14T00:36:19.974705
2021-02-27T11:16:49
2021-02-27T11:16:49
258,137,688
7
3
null
2021-09-22T19:02:07
2020-04-23T08:14:55
Python
UTF-8
Python
false
false
255
#!/home/prashant/my_project/covid_19/venv/bin/python # -*- coding: utf-8 -*- import re import sys from pip._internal.cli.main import main if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) sys.exit(main())
[ "prashantpandey94551@gmail.com" ]
prashantpandey94551@gmail.com
292962a7927ee0f929aabb9fe0be5ecd3be3f178
7b9c271f351b20d46a3e35ce667e5a0ce60e0ced
/political_map/political_map/settings.py
83d1a1aa031022721efbce02f95729a77d156179
[]
no_license
du-phan/Political_map
b75696c8cfaf1aed37ccd3a546c39e3b46cfb77f
048fbfbdd8e7dd9daecf2e523c174108b321ce3b
refs/heads/master
2021-01-01T04:44:38.100332
2016-04-24T15:33:07
2016-04-24T15:33:07
56,689,158
0
0
null
null
null
null
UTF-8
Python
false
false
3,568
py
""" Django settings for political_map project. Generated by 'django-admin startproject' using Django 1.9.5. For more information on this file, see https://docs.djangoproject.com/en/1.9/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.9/ref/settings/ """ import...
[ "DuPhan@Mac-8.local" ]
DuPhan@Mac-8.local
1eb052cdf8d57fdefe4f94fb7ea2e5335aae8b0f
6e827dbd83abfa617e353fec21cd3b8ef00dab3c
/blog/migrations/0001_initial.py
ec877a0d435fc4ce1628658a01ec0a44efc705f9
[]
no_license
arjunsunil/my-first-blog
baca48559b3ea5d36b5c7ee0317b26e36c91cbe5
b7d2a7b80698ef1570fdc4edafe5f520215f18e3
refs/heads/master
2021-01-13T15:18:20.942630
2017-01-13T18:07:13
2017-01-13T18:07:13
76,426,912
0
0
null
null
null
null
UTF-8
Python
false
false
1,051
py
# -*- coding: utf-8 -*- # Generated by Django 1.9.12 on 2016-12-14 04:41 from __future__ import unicode_literals from django.conf import settings from django.db import migrations, models import django.db.models.deletion import django.utils.timezone class Migration(migrations.Migration): initial = True depe...
[ "arjunwebdesigner4@gmail.com" ]
arjunwebdesigner4@gmail.com
e70cc83d4699e48838463a4edc698ce27795f9f8
2ec6e1aaec183df34661ef2e0e5798067fddb8e8
/sampleapp/urls.py
ec7c5f73821c529df61303eea56e398b6f8e42ad
[]
no_license
Rahulvarma161/sampleproject
dbf50ec895f404c00c90939872bd148d468a20f0
1fc5a4531251bfe730b720a00932c6ef8851419a
refs/heads/main
2023-02-11T02:08:01.146859
2021-01-05T17:01:12
2021-01-05T17:01:12
327,052,200
0
0
null
null
null
null
UTF-8
Python
false
false
389
py
from django.urls import path, include from . import views,uploadexcel urlpatterns = [ #path('admin/', admin.site.urls), path('',views.category_form,name='category_form'), path('subcategoryajax/',views.subcategoryajax,name='subcategoryajax'), path('save/',views.category_form,name='category_form...
[ "noreply@github.com" ]
noreply@github.com
7ab7d3da6f5e65c941f5e4d0e490a5d2d9e78da1
e105881671fabdf85fe7efb1b6c2df2d10329da7
/20210202_DQN_Atari/1_Start/pongDqnAgent.py
274e14f3eba2cced207d5b925c8cb293a91c3738
[]
no_license
cedricmoullet/CAS_AI_2020_2021
18a6a74a0b223bb0adc40479a8e830feddba1864
14ac16172f2c2c8fcea46a077c33cb2afc4ac370
refs/heads/main
2023-04-06T16:19:25.786664
2021-04-06T12:37:06
2021-04-06T12:37:06
312,962,217
0
1
null
null
null
null
UTF-8
Python
false
false
4,991
py
import collections import os import random from typing import Deque import gym import numpy as np from pongDqn import DQN #from pongDqnWrappers import make_env PROJECT_PATH = os.path.abspath("C:/Users/iljar/PycharmProjects/DQN_Atari") MODELS_PATH = os.path.join(PROJECT_PATH, "models") MODEL_PATH = os.path.join(MODE...
[ "cedric.moullet@gmail.com" ]
cedric.moullet@gmail.com
99a71c7b9e27e3157cd4de85ab83cc05e523d4bc
d902ac93fbff644ca2868d5836a9f476f3cd91fd
/wq_csv/util.py
6bbe34d6c95cb08f37c53383ded1fea23ec6d5ee
[]
no_license
NMWDI/WDIExtractors
5b3c2ad3562449ba6c3c2467284c9cd3e046837f
2da9aa7a1bd53d58ff7479f4507fffbc15b3bbb2
refs/heads/master
2022-12-24T17:19:35.998182
2020-10-02T19:22:48
2020-10-02T19:22:48
265,703,372
0
0
null
null
null
null
UTF-8
Python
false
false
5,162
py
# =============================================================================== # Copyright 2020 ross # # 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...
[ "jirhiker@gmail.com" ]
jirhiker@gmail.com
0d9e5d6d6dec506894b0fa1478908cbddb25ce17
b826b25fd9847d204e7673afe60df7a016729b93
/test_sentences.py
584919ccc9405e4be5b9134eca6df54688993776
[]
no_license
qbenji99/CSE111
4fc6a5d86f9c7b17c8a2b037b1e5ba832dbcc877
b86b5f703381703521e2e21d482c48deb15c167e
refs/heads/master
2023-06-02T12:20:20.673319
2021-06-21T18:07:07
2021-06-21T18:07:07
377,975,135
1
0
null
null
null
null
UTF-8
Python
false
false
3,439
py
""" Programmer: Ben Quiñones Task: Begin to write and troubleshoot a program that automatically generates English sentences. Purpose: Prove that you can write and troubleshoot a program that contains multiple functions. """ from sentences import get_determiner, get_noun, get_verb, get_prepositional, get_preposition_phr...
[ "86082540+qbenji99@users.noreply.github.com" ]
86082540+qbenji99@users.noreply.github.com
52ae4d06c6ea081fe31c3eb4a94c5798f765df19
69a6007a2188a269cea1dd7a6672cd2672cb2d89
/IK_Python/Lesson_3/Task_6.py
2a8ae3baf17681a31d489f24ca443b2fcabe8cd2
[]
no_license
Shagen-Madunts/geekbrains
169c298766a8a3d457ec782f39b66fce94d13b18
e842f2db59983cc5fbf947ef105e9605573b334d
refs/heads/master
2020-12-19T12:42:32.760659
2020-08-05T05:31:16
2020-08-05T05:31:16
235,736,390
0
0
null
2020-07-13T00:00:41
2020-01-23T06:25:43
Jupyter Notebook
UTF-8
Python
false
false
948
py
""" В одномерном массиве найти сумму элементов, находящихся между минимальным и максимальным элементами. Сами минимальный и максимальный элементы в сумму не включать """ import random num_list = list(set([random.randint(-20, 20) for _ in range(0, 20)])) print(f"Массив: {num_list}") maximum, ind_max = 0, 0 minimum, in...
[ "shagen.madunts@mail.ru" ]
shagen.madunts@mail.ru
924386522c5d07ec5638838b0316cf743d0eefff
a29743cc4120413f97725187ee9bdbf910f26b30
/Assignment_01_DP/assignment_01_dp.py
0f96d80a9f2746b7d8dfe075261e96333851d1dc
[]
no_license
RickyRiko305/computer-intelligence
d2eb2a547c2d99210ed7205ac0b287d98e1a5675
0ae469750663e58db77fd6a6d5d889b48fe4e581
refs/heads/master
2020-12-03T16:16:45.563349
2020-02-07T10:56:50
2020-02-07T10:56:50
231,386,699
1
0
null
null
null
null
UTF-8
Python
false
false
2,014
py
from environment_mdp import MDP from agent_knowledge_dp import Agent from graphics import GraphicsHandler import transition_graph import numpy as np def expected_value(state, action, agent): """Computes the expected value of the current state""" expected_value = 0 gamma = agent.gamma() """ Your code here Useful ...
[ "pranaymunda.pm@gmail.com" ]
pranaymunda.pm@gmail.com
b97a23d35436ccdb358d9de65e2a83757e116ee4
7d6d9fc3db70ac1683b9aa9d66ea62ffe49640c9
/69.x-的平方根.py
d5ed1e3822da32b3a859f369318a2979e1597889
[]
no_license
xuzhongpeng/algorithm_execute
fe47b9f561945929e3dc4acea958187a8ff1977c
7837089d3e5537bb20b248184b6d8e1388a4f584
refs/heads/main
2023-06-02T06:09:01.135972
2021-06-27T11:37:50
2021-06-27T11:37:50
367,826,952
2
0
null
null
null
null
UTF-8
Python
false
false
469
py
# # @lc app=leetcode.cn id=69 lang=python3 # # [69] x 的平方根 # # @lc code=start class Solution: def mySqrt(self, x: int) -> int: def f(n, m): mid = (n+m)//2 k = mid * mid if k <= x and (mid+1) * (mid+1) > x: return mid elif k < x: ...
[ "1452754335@qq.com" ]
1452754335@qq.com
82fde47bcccb2574a9c879629c3a0413e56f98e4
8ee920495fe287dd64bd0166b1e45c817d508f5f
/setup.py
5d2f58c48c270932285118c4745f75f08caccaed
[ "Apache-2.0" ]
permissive
scls19fr/email-verif
557e067b4e1efe2e85584b8e46f5342ebdf6027e
3f9815a278d13260b87e6c2877c5890b6c87deed
refs/heads/master
2021-01-10T04:07:42.311988
2015-12-21T13:30:49
2015-12-21T13:30:49
47,811,667
1
0
null
null
null
null
UTF-8
Python
false
false
4,362
py
#!/usr/bin/env python # -*- coding: utf-8 -*- from setuptools import setup, find_packages # Always prefer setuptools over distutils from codecs import open # To use a consistent encoding from os import path import io NAME = 'email-verif' filename = "email_verif/version.py" with open(filename) as f: exec(f.read(...
[ "s.celles@gmail.com" ]
s.celles@gmail.com
e7dd50038045402789fd4833f0e15af91e3d1359
f17c3d3f6db9e05fcef3d0578d3c9fa412253888
/django/mysite3/bookstore/urls.py
f42624b0ea4ca0d4a1b1ad3a8404634f68418f92
[]
no_license
hayden2020/gitprotect
1789b4605bd4ee5c54b8dbfc4b000630afd33139
3f7efc34d2ba89823fac19af33c9a9c0aebd1225
refs/heads/master
2022-12-10T04:44:13.464958
2020-08-23T14:39:06
2020-08-23T14:39:06
275,585,989
0
0
null
null
null
null
UTF-8
Python
false
false
133
py
# file: bookstore/urls.py from django.conf.urls import url from . import views urlpatterns=[ url(r'^add_book',views.add_view), ]
[ "1345608604@qq.com" ]
1345608604@qq.com
38c664a5f633c233fdbe24e57b1a41e9ed27b39a
74b97e20b06a58ada94278f82ce511403fcddf21
/test/scenarios/synapse/output/extflatten/src/synapse/azext_synapse/vendored_sdks/synapse/aio/operations/_sql_pool_vulnerability_assessment_operations.py
4f82fc427e879b6c9c0ea7004f96261f2bbff7a8
[ "LicenseRef-scancode-generic-cla", "MIT" ]
permissive
Azure/autorest.az
b171eb495efdb815dc051dface3800c3e5e35b8e
64f403a5fe74be28e46a90b6b77f8d2bc9a12baf
refs/heads/master
2023-09-01T13:22:21.784354
2022-11-01T02:34:12
2022-11-01T02:34:12
226,059,721
24
17
MIT
2023-02-08T00:46:07
2019-12-05T09:04:00
Python
UTF-8
Python
false
false
18,864
py
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
[ "noreply@github.com" ]
noreply@github.com
b19a50d89f969f2035f16e878696bbe18c4c2dae
73f51f2f39dbfcaa588e8e8bc3618e798d0ad589
/Task2G.py
6febf9def3c47cf91cbdbe17c3f4c35b728978b4
[ "MIT" ]
permissive
TobyBoyne/flood-warning-system
7b81e776203a96d028ab54b7c4352920d820c0e2
13ba8e8b2a16820df38e4c49da58eac4ebe320ad
refs/heads/master
2021-02-28T00:09:44.017877
2020-03-20T23:57:27
2020-03-20T23:57:27
245,646,505
0
0
null
null
null
null
UTF-8
Python
false
false
3,233
py
import datetime from floodsystem.analysis import projected_level_after_dt from floodsystem.datafetcher import fetch_measure_levels from floodsystem.stationdata import build_station_list, update_water_levels from floodsystem.flood import stations_level_over_threshold from floodsystem.geo import towns_with_station def...
[ "tobyboyne@gmail,.com" ]
tobyboyne@gmail,.com
5fe94dd742e397216c12fc049caff4e7652775c9
e4b52bd79c3a2fdf64f1927ddd04c87fa401fed8
/payment/urls.py
2820da4a3a46f6797cedac83fc552fdaa925cc12
[]
no_license
ObsidianRock/shop
8e1051efb298c65d6803fe76be07f222c19d60dd
2a6613f28de3d577288653afc6b1a470fcde6a89
refs/heads/master
2021-01-19T10:01:26.797821
2017-04-13T16:02:34
2017-04-13T16:02:34
87,817,222
0
0
null
null
null
null
UTF-8
Python
false
false
320
py
from django.conf.urls import url from . import views from django.utils.translation import gettext_lazy as _ urlpatterns = [ url(_(r'^process/$'), views.payment_process, name='process'), url(_(r'^done/$'), views.payment_done, name='done'), url(_(r'^canceled/$'), views.payment_canceled, name='canceled') ]
[ "ObsidianRock@users.noreply.github.com" ]
ObsidianRock@users.noreply.github.com
54f4a480d8c01ce5d7b1aa5e4b8ab7f31dfd0da8
ad5494244bb4d0d92df8178d96b99b949f9ee04c
/hashing/models.py
10ed2e0c8732c4953087615021d57659be2234d1
[]
no_license
razyesh/Hash-gen-SHA256
14dbf86fab593bccec9997ec087535ee02995a6c
5cf91114962e048893c910832460f6984d787a38
refs/heads/master
2021-09-26T11:38:28.819734
2020-04-03T19:00:57
2020-04-03T19:00:57
252,815,271
0
0
null
2021-09-22T18:49:48
2020-04-03T18:56:29
Python
UTF-8
Python
false
false
156
py
from django.db import models # Create your models here. class Hash(models.Model): text = models.TextField() hash = models.CharField(max_length=64)
[ "pudasainirajesh504@gmail.com" ]
pudasainirajesh504@gmail.com
cc61e458ed5a04393da3cd7b9db0bb29888625d9
507258a53eb58725355e4a3b134c070c207d0d1d
/example_file.py
1c0fbb912a733a0c878dc1dcb2d1add0fc2356e8
[]
no_license
Teldrin89/testing_dash_canvas
e6f80a73c547f1eb8185cfa5c8f2fb0df396c548
274c5ee1d3607df52a2e324ed1963509b1f07fb9
refs/heads/master
2022-11-16T02:31:20.980087
2020-07-07T22:28:34
2020-07-07T22:28:34
271,750,161
0
0
null
null
null
null
UTF-8
Python
false
false
1,976
py
# -*- coding: utf-8 -*- import dash import dash_core_components as dcc import dash_html_components as html import dash_canvas as dc from dash.dependencies import Input, Output, State import vtk_python_script as vps from flask import send_file # import vtk asset_style = ['assets/style.css'] js_script = [ {'src': 'h...
[ "lukasz.cieslak69@gmail.com" ]
lukasz.cieslak69@gmail.com
f1edcc212aeec708773bf7017f06a97004619fa2
883232d5e003b53a932b953fbc2805783ab6f085
/api/views.py
e16961d1a5dd09454fc3b71bd3e708d6f0419991
[]
no_license
alicavusoglu/personnel-service-optimizer
7e1765731228eb3e3d4b86cfa81aee2c52977420
d815986975e4b39d88ee79f02639a8e37b9c04ac
refs/heads/master
2020-03-21T09:17:21.467509
2018-06-23T20:55:58
2018-06-23T20:55:58
138,392,372
0
0
null
null
null
null
UTF-8
Python
false
false
3,238
py
from api.models import Personnel,WaitingPoint,WaitingPersonnel from api.serializers import PersonnelSerializer,WaitingPointSerializer,WaitingPersonnelSerializer from rest_framework import mixins from rest_framework import generics class PersonnelList(mixins.ListModelMixin, mixins.CreateModelMixin, ...
[ "alicavusoglu@alis-Mac.local" ]
alicavusoglu@alis-Mac.local
f44da31d8d22eaf8c1fdd79c955083d2de960e5d
e18206321ddb3b2d45b9b18c4ce7a814560b144a
/mmaction/core/runner/clover_runner.py
8e11a7bfbc53d4ed63be9ec3258d9de2807bbef2
[ "Apache-2.0" ]
permissive
LeeYN-43/Clover
f9b8e54cf8863ebdff617c8e5a33dc077975184f
fa05f2ed846c74ddd349294a3128869e5e9f261d
refs/heads/main
2023-05-23T05:06:49.310416
2023-02-15T12:43:18
2023-02-15T12:43:18
513,244,832
38
1
null
null
null
null
UTF-8
Python
false
false
6,442
py
from itertools import zip_longest import time import torch from tqdm import tqdm from mmcv.runner.builder import RUNNERS import warnings import mmcv from mmcv.runner import get_host_info from .epoch_based_runner import TimerEpochBasedRunner @RUNNERS.register_module() class MyEpochBasedRunner(TimerEpochBasedRunner): ...
[ "liyinan1998@126.com" ]
liyinan1998@126.com
08908dc28dd7cf341f6ea270068a43f62b729a14
cfb1df5ffaa50fd0065812b1534a3a1e76cb02b3
/ALGORITMO/ANISSA-INTER/DB/dBInsert.py
6e721730927b0fef5de46a61243e08d5d750214e
[]
no_license
PabloBlanco10/TFG
e2d8a03d45d2102f77ec8bdb805fe795aceb7b64
22288841739ddc5e4dcb53389853544a52fd1cde
refs/heads/master
2021-01-12T18:08:25.243978
2018-03-01T18:43:15
2018-03-01T18:43:15
71,329,818
0
0
null
null
null
null
UTF-8
Python
false
false
34,397
py
from Exception.exception import GenException from Features import imageFeaturesC from PRNU.prnu import * import multiprocessing from multiprocessing import Lock import time from Features import ColorFeat from Features import IQMFeat from Features.ScanVsCamera_SVM import scanVsCamera from PRNU import prnu from Feature...
[ "pabblanc@ucm.es" ]
pabblanc@ucm.es
57895863065f914aab45070167a5407a01d68969
9743d5fd24822f79c156ad112229e25adb9ed6f6
/xai/brain/wordbase/nouns/_hashish.py
6f095d1a7cb0b473df03c662bf7368e60180a1e3
[ "MIT" ]
permissive
cash2one/xai
de7adad1758f50dd6786bf0111e71a903f039b64
e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6
refs/heads/master
2021-01-19T12:33:54.964379
2017-01-28T02:00:50
2017-01-28T02:00:50
null
0
0
null
null
null
null
UTF-8
Python
false
false
364
py
#calss header class _HASHISH(): def __init__(self,): self.name = "HASHISH" self.definitions = [u'a drug, illegal in many countries, made from the cannabis plant and usually smoked'] self.parents = [] self.childen = [] self.properties = [] self.jsondata = {} self.specie = 'nouns' def run(self, ob...
[ "xingwang1991@gmail.com" ]
xingwang1991@gmail.com
a0e0cbb952d644055d7067607b01dca7c47b067b
5d94598a3bcab9175026322a81af5eff15aff136
/cgi-bin/form.py
cbcc44f82151af46bddd65085a33e693a520bdd8
[]
no_license
beninghton/python-web-server
539fc702db9be7f533c9a0e039cb59e72f5fbeb4
caad7bf187921a37f6615fbd9f2e2a218afe0cbb
refs/heads/master
2022-06-02T21:10:48.387478
2022-05-10T03:55:11
2022-05-10T03:55:11
82,265,188
0
0
null
null
null
null
UTF-8
Python
false
false
2,481
py
#!/usr/bin/env python3 import cgi import html import os import http.cookies import sys cookie = http.cookies.SimpleCookie(os.environ.get("HTTP_COOKIE")) name = cookie.get("name") form = cgi.FieldStorage() text = form.getfirst("TEXT", "не задано") text = html.escape(text) if text=="не задано": sys.exit() def ...
[ "beninghton6@gmail.com" ]
beninghton6@gmail.com
b7c9a84631bbbec9aa62a18bcaf966da16b1cb66
6e0400fbfd5ed18b42cdfbb927eeea4b11be3728
/glapi/parse-gl-spec.py
228013cb158405f700fc171d257055258888365a
[]
no_license
stereotype441/mesa-tools
f27c0c308349f53ea87402dc366889cdd5b16e0b
adf9a81a5036134c1d1c6e15bd50d4075617e1f7
refs/heads/master
2016-09-06T08:25:14.477247
2014-02-05T16:51:48
2014-02-05T16:51:48
1,784,727
1
0
null
null
null
null
UTF-8
Python
false
false
32,579
py
import json import os import re PROCEDURE_NAME_REGEXP = re.compile('[a-zA-Z_]([a-zA-Z0-9_]|{[a-z0-9, ]+})*') EXPANDO_REGEXP = re.compile('{[a-z0-9, ]+}') EXPANDO_EXPRESSIONS = { '{i,f,d}': 'ifd', '{fd}': 'fd', '{ubusui}': ('ub', 'us', 'ui'), '{1234}': '1234', '{bsifd}': 'bsifd', '{if}': 'if'...
[ "stereotype441@gmail.com" ]
stereotype441@gmail.com
51c08ebb03360bdcc1f5d7c67915aa2050845a6a
f6389551732440b009761cfbe1a286de7ae493d4
/models/aaes/lat_saae.py
50edca0d08b0bb939228230658dfa54f1e12e4d8
[ "MIT" ]
permissive
pth1993/MolGen-BiAAE
20fb0aaea88ff530e28acbeb5b37cb46d5bfe552
71a2df2c0d7ed5d775a560e66da029ce63b46007
refs/heads/master
2022-11-23T13:23:53.142338
2020-07-17T13:56:03
2020-07-17T13:56:03
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,320
py
# proposed model implementation import torch from torch import nn import pytorch_lightning as pl import sys sys.path.append('..') from networks import MnistCNNDecoder, ExprDiffDecoder, ConditionedDecoder, RNNEncoder, FinetunedEncoder from networks import MnistCNNEncoder, ExprDiffEncoder, JointEncoder, RNNDecoder, Fi...
[ "kuznetsov@insilicomedicine.com" ]
kuznetsov@insilicomedicine.com
124b991bf20678aec48f046524169ba544a9180b
00a7ba6b6d682189d0aeec6fe253631e5c218d68
/Stukjes code/Willem/netwerkGUI/humanCanvas.py
cda4745fc451a905b0fb0aa887b02d3dd1af491b
[]
no_license
WillemDendauw/Ingenieursproject
fc5b4d98ef01633c1902238b89bdf9b5a0a70253
43054706c1c5b9578c6960a5aba8ac6d7ad06c7d
refs/heads/master
2022-04-23T19:37:26.141330
2020-04-24T09:53:32
2020-04-24T09:53:32
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,315
py
import sys from PyQt5.QtWidgets import * from PyQt5.QtGui import * class humanCanvas(QWidget): def __init__(self,parent=None): super().__init__(parent=parent) def __main__(self): pass def paintEvent(self,event): """ Hier tekenen we een simpele vorm van een netwerk die de ...
[ "willem.dendauw@ugent.be" ]
willem.dendauw@ugent.be
44f7c1f1653eef2d9810177fd5c0991bfdcaa707
812b07a5c8fcac52f0dc3293cb61dda422eb426e
/scrapy-mysql-practice/shiyanlou/items.py
137399db7b3dff47a1ed270f3098a53af371d9bd
[]
no_license
Jasonjiang27/loutest
de5f344a1faab17965c945f94fe713d5acf7c05f
50fa3e3d779604fd91aff38638ccd79664112067
refs/heads/master
2020-03-18T04:07:01.233966
2018-06-16T00:15:01
2018-06-16T00:15:01
134,270,142
0
0
null
null
null
null
UTF-8
Python
false
false
400
py
# -*- coding: utf-8 -*- # Define here the models for your scraped items # # See documentation in: # http://doc.scrapy.org/en/latest/topics/items.html import scrapy class CourseItem(scrapy.Item): # define the fields for your item here like: # name = scrapy.Field() name = scrapy.Field() description = ...
[ "jiangyz1991@163.com" ]
jiangyz1991@163.com
6d973be950be6bc9b69e133990048c21f62bfd1c
24ad8c367fd5c35344235b371a774836e7b25d89
/cs224d/q3_word2vec.py
06574d433de21bc86f220e6eef1010dc86e517e2
[]
no_license
imzwz/tensor
aa03848deec224134a298c1de010c7518f5a3878
c1c40840da1c917a009e423a87cd7b9d9c84e232
refs/heads/master
2021-06-16T10:11:28.697561
2017-05-17T13:31:54
2017-05-17T13:31:54
75,176,807
0
0
null
null
null
null
UTF-8
Python
false
false
4,497
py
import numpy as np import random from q1_softmax import softmax from q2_sigmoid import sigmoid,sigmoid_grad from q2_gradcheck import gradcheck_naive def normalizeRows(x): N = x.shape[0] x /= np.sqrt(np.sum(x**2, axis=1)).reshape((N,1)) + 1e-30 return x def test_normalize_rows(): print("Testing normal...
[ "iamzwz3@gmail.com" ]
iamzwz3@gmail.com
196a7d3700530cf459ab672120d0ffb207717998
c2d5055a7b292d18facce55d975ff8f9a19b5c39
/examples/list_uarts.py
cbacc1f1a56b6a6c280b9dcd6a600aa50896ddb8
[ "MIT" ]
permissive
playi/Adafruit_Python_BluefruitLE
11f6c268436ebf1eb554fdfcf3a58eac0d01816e
928669aff263b6602365ecfea2a1efe1950c111c
refs/heads/master
2021-04-18T07:20:13.684162
2018-06-04T18:04:26
2018-06-04T18:04:26
126,250,975
2
3
MIT
2018-08-01T20:06:52
2018-03-21T23:04:06
Python
UTF-8
Python
false
false
2,515
py
# Search for BLE UART devices and list all that are found. # Author: Tony DiCola import atexit import time import Adafruit_BluefruitLE from Adafruit_BluefruitLE.services import UART # Get the BLE provider for the current platform. ble = Adafruit_BluefruitLE.get_provider() # Main function implements the program log...
[ "tony@tonydicola.com" ]
tony@tonydicola.com
4347fd3f9f1e73f233bd6d59079c7d778d8ffa81
e9c55d7a1dc751edc6b68d7b5050939882c21c50
/DjangoWebProject1/app/tasks.py
51d5d262e6c1c3833a2a488dd52e10518a06a4db
[]
no_license
Gpesado/SAL
c80e52794afc9fd313cb7e797437f07c0188016e
9609616413811e122a654ad377754356f8d54229
refs/heads/master
2020-04-09T21:20:07.807161
2018-12-06T01:34:03
2018-12-06T01:34:03
160,598,955
1
0
null
2018-12-06T01:05:53
2018-12-06T01:05:53
null
UTF-8
Python
false
false
1,073
py
from celery import task from django.core.mail import send_mail from celery.utils.log import get_task_logger from app.models import * logger = get_task_logger(__name__) def send_mail_relevador(x, y, z): send_mail( y, z, 'enjeidevelopment@gmail.com', [x], fail_silently=False, ) @task() def add...
[ "nicolas.dibiase22@gmail.com" ]
nicolas.dibiase22@gmail.com
61f25521a8ac9bb244b7920b6aad006c7e980101
04fcaa42f982bc6c8de1d3a28e83007a5b8b000d
/tests/tests_indiv_jobs/test_ooziejob.py
31743f67165d76004d2470b532d5a8319dbf825d
[ "BSD-3-Clause" ]
permissive
tadinve/naga
26622416db7ff81a256a2f51daac0769763ed711
52a789ff79cc20aa999f7bb731a1c3cc3acc27fa
refs/heads/main
2023-08-12T22:45:19.876256
2021-09-24T02:15:42
2021-09-24T02:15:42
389,231,528
0
0
null
null
null
null
UTF-8
Python
false
false
1,583
py
from ctm_python_client.jobs.hadoop.oozie import OozieJob import os from ctm_python_client.core.bmc_control_m import CmJobFlow from ctm_python_client.session.session import Session BASE_PATH = os.path.abspath(os.path.dirname(__file__)) with open(BASE_PATH + "/.secrets", "r") as fp: ctm_uri = fp.readline().strip() ...
[ "vtadinad@bmc.com" ]
vtadinad@bmc.com
686a7c28d34120f42bfb11661654c6bea21a609c
1411020b6a022950b00dee130331ea3eb274606f
/caesar.py
2b7d4ce212283a0a2452e2d070e32665a4cf4624
[]
no_license
patricklc/web-caesar
27b69c6376bfcbbff02c91f7561fd79bfa1e926e
687471509f834da8dea911763676ae380537389b
refs/heads/master
2021-01-11T17:20:50.607388
2017-01-22T23:48:55
2017-01-22T23:48:55
79,754,052
0
0
null
null
null
null
UTF-8
Python
false
false
640
py
def alphabet_position(letter): high = "ABCDEFGHIJKLMNOPQRSTUVWXYZ" low = "abcdefghijklmnopqrstuvwxyz" if letter in high: return high.index(letter) if letter in low: return low.index(letter) def rotate_character(char, rot): high = "ABCDEFGHIJKLMNOPQRSTUVWXYZ" low = "abcdefghijklm...
[ "pjsy8c@gmail.com" ]
pjsy8c@gmail.com
45ca14286552ee8f22ba7cedd000a0d31ec6ecc3
4217a324d33a87a298788ecabc0529098a8d36b5
/170-facebook-medium.py
1163a039487c9b00731156e99a1ea20ef9edc2e2
[]
no_license
sarveswara-rao/daily-coding-problem
29a02923926b1bcd1d932335444b40c586dcfb40
bb98f85b3a4cdc5a91e40328766b96f928a58116
refs/heads/master
2020-08-04T08:36:16.494313
2019-10-16T17:30:41
2019-10-16T17:30:41
212,075,416
0
0
null
null
null
null
UTF-8
Python
false
false
1,100
py
"""Given a start word, an end word, and a dictionary of valid words, find the shortest transformation sequence from start to end such that only one letter is changed at each step of the sequence, and each transformed word exists in the dictionary. If there is no possible transformation, return null. Each word in ...
[ "sarveswararao.cs@yahoo.com" ]
sarveswararao.cs@yahoo.com
bac9e31bc6490db62a29283f281db93f9dc82fa1
6c4512f4546b0cf8b958a9bbe699176f59a9a153
/projects/permissions/documents.py
76c0629608c5fcc3e560fbb6c6d0e74da9239bb9
[ "MIT" ]
permissive
kle/kaavapino
dfa5f529255c3f7fa2fb12a00f1c7c377db3b81f
44b28c25e447ae3b186657a9179af83d939462df
refs/heads/master
2022-09-24T13:55:25.409140
2019-01-31T12:27:12
2019-01-31T12:27:12
null
0
0
null
null
null
null
UTF-8
Python
false
false
324
py
from rest_framework import permissions class DocumentPermissions(permissions.BasePermission): def has_permission(self, request, view): project = view.get_project() user = request.user if project.user == user or user.is_administrative_personnel(): return True return Fa...
[ "frank.wickstrom@anders.fi" ]
frank.wickstrom@anders.fi
43da3e1c7749bf5136e67a1d635f11768193218b
33b906deda6699c5db010a504d077b5c2c0eba7c
/intergration_test/report_lab_test/paragraph/paragraph_test.py
f64383f87fd1c8118c8f705610e650f70c7abf7d
[]
no_license
sourabhgupta90/testing_frame
e51db6b439396d3d08ffaad39041729ba335dcb5
0115e8012b678ef8a8fda7d5b90027c914f98df3
refs/heads/master
2021-01-22T11:47:48.281101
2014-06-19T06:12:23
2014-06-19T06:12:23
11,904,181
0
0
null
null
null
null
UTF-8
Python
false
false
1,565
py
from reportlab.lib import colors from reportlab.lib.enums import TA_JUSTIFY, TA_RIGHT, TA_CENTER, TA_LEFT from reportlab.lib.pagesizes import letter, landscape from reportlab.platypus import PageTemplate, Frame, NextPageTemplate, BaseDocTemplate, SimpleDocTemplate, Paragraph, Spacer, Image, Table, TableStyle, PageBreak...
[ "sourabh5588gupta@gmail.com" ]
sourabh5588gupta@gmail.com
e833208dcd45d5d49648783096abd6b20764be62
cb3e6f0a746075a3b60517afb8932ae9a5d309e3
/library_checkout/models/library_checkout.py
f767e5cd267e2a1cc5f3b20675009147e181c069
[]
no_license
vidtsin/Library-Book-Odoo-12-
aaf554a7e316bdcae7e25af6c96e5a4ad6cd41ca
5d8d52923f1708e59c0498cfb7a29158f2275bf6
refs/heads/master
2020-08-23T06:36:41.902245
2019-07-12T09:54:21
2019-07-12T09:54:21
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,080
py
from odoo import api, exceptions, fields, models, _ class Checkout(models.Model): _name = 'library.checkout' _description = 'Checkout Request' _inherit = ['mail.thread', 'mail.activity.mixin'] @api.multi def name_get(self): names = [] for rec in self: name = '%s/%s' % ...
[ "thanhduyeny1@gmail.com" ]
thanhduyeny1@gmail.com