blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
2
616
content_id
stringlengths
40
40
detected_licenses
listlengths
0
69
license_type
stringclasses
2 values
repo_name
stringlengths
5
118
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringlengths
4
63
visit_date
timestamp[us]
revision_date
timestamp[us]
committer_date
timestamp[us]
github_id
int64
2.91k
686M
star_events_count
int64
0
209k
fork_events_count
int64
0
110k
gha_license_id
stringclasses
23 values
gha_event_created_at
timestamp[us]
gha_created_at
timestamp[us]
gha_language
stringclasses
213 values
src_encoding
stringclasses
30 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
2
10.3M
extension
stringclasses
246 values
content
stringlengths
2
10.3M
authors
listlengths
1
1
author_id
stringlengths
0
212
0783edba12e310cd16522a7749480e2ed5a2ae59
b9e7394c681004ea0b6c54d0c7c5cd79f9d33221
/practice/prac_app/forms.py
61665cb70de4bb0cc0b0585dc20f59fd0a8fcd87
[]
no_license
Rashika233/Django-Project
f4e32bfa7473ad2816c2601acff1c9249b3964ef
92bc8dda8a987eb7594405c6fcc9693683d5568a
refs/heads/master
2023-03-03T14:43:16.159779
2021-02-11T21:47:37
2021-02-11T21:47:37
338,161,201
0
0
null
null
null
null
UTF-8
Python
false
false
281
py
# import form class from django from django import forms # import GeeksModel from models.py from .models import GeeksModel # create a ModelForm class GeeksForm(forms.ModelForm): # specify the name of model to use class Meta: model = GeeksModel fields = "__all__"
[ "rashika233" ]
rashika233
49d638d0ac51b587f37b6c70adc62984e331e32f
c06157aacc5bb1b0f93f7541be8523d8c8cc9dd8
/rgs/data/wine_quality.py
35f1ce72c2e8adf61952239cd6288c25bd3a9ff3
[]
no_license
AliD101v/ml-course-project-f19
361a5227e1b6fab7f8ede83f5d6bfdfac94b04bf
1b3bfa57c8a0c0eb9121ef29c5cb13fbf0697402
refs/heads/master
2020-08-21T08:05:35.420629
2019-12-07T06:17:13
2019-12-07T06:17:13
216,116,059
0
0
null
null
null
null
UTF-8
Python
false
false
701
py
import numpy as np import pandas as pd def load_wine_quality() : filePath_red = "C:/Users/sidha/OneDrive/Documents/ml-course-project-f19/ml-course-project-f19/data/Wine Quality/winequality-red.csv" filePath_white = "C:/Users/sidha/OneDrive/Documents/ml-course-project-f19/ml-course-project-f19/data/Wine Quality...
[ "sidhant.gupta.hsp@gmail.com" ]
sidhant.gupta.hsp@gmail.com
5b3a2b73f856ba447fc17847187efdaf01f14f1b
0a2231f4eedef4a7fda1f14d5d13846529dc7cf7
/src/tweets/migrations/0001_initial.py
8c113d2ab376bd5d15669f2a850188789433ebeb
[]
no_license
kevivr/tweetme
f8b179360a5266c7487734eb4c8c21ffaf3cc7d3
8df56fe9cd7ff04233ae6e37aa151e649c410a60
refs/heads/master
2022-11-23T01:50:01.449426
2019-12-19T20:13:41
2019-12-19T20:13:41
197,088,156
0
1
null
2022-11-20T03:07:14
2019-07-16T00:00:53
Python
UTF-8
Python
false
false
539
py
# -*- coding: utf-8 -*- # Generated by Django 1.10.8 on 2019-07-16 20:42 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Tweet'...
[ "vivek.raju@venmo.com" ]
vivek.raju@venmo.com
15f8abcda943c7118eff486ce22e593b97c7cb75
55fbc3e07511a1596c365923fc1b4b3de2705e5b
/addons/source-python/plugins/map_cycle/map_cycle.py
e3a39b55708061402bad1b2176c91c4dc4404c37
[]
no_license
Hackmastr/sp-map-cycle
5ed3ec7c2d9f5b35ffc80ded2cfbf3e5199cf8ef
af9871e19a749319d860aebe9dbf5e705ff16f6b
refs/heads/master
2021-01-24T08:09:26.811840
2016-09-25T13:39:45
2016-09-25T13:39:45
69,148,951
0
0
null
2016-09-25T07:01:58
2016-09-25T07:01:58
null
UTF-8
Python
false
false
31,568
py
from datetime import datetime from json import dump as json_dump, load as json_load from random import shuffle from time import time from warnings import warn from colors import Color from core import echo_console from cvars import ConVar from events import Event from engines.server import engine_server, global_vars f...
[ "kirill@mysnik.com" ]
kirill@mysnik.com
0d1867210ff294cb464b1787d4eb96f0ae28ac9a
a8efab6971f2c593b1b6b8779f8f95e5005af8bf
/5-15/20 王丽娟/1.py
909864f536fbf5cff6a5b509829399451acfa111
[]
no_license
xx299x/practice_pyecharts
eb5a30910e5ad33f5bd1a8a0dfa99bb4e4df8464
05fdac822b79c041ebcfc9a5e0bd1fc63fce7b2d
refs/heads/master
2022-11-16T01:57:11.361689
2020-06-17T09:06:07
2020-06-17T09:06:07
264,120,690
1
55
null
2020-06-17T09:06:08
2020-05-15T06:59:15
Jupyter Notebook
UTF-8
Python
false
false
346
py
from pyecharts.charts import Bar bar = Bar() bar.add_xaxis(["衬衫", "羊毛衫", "雪纺衫", "裤子", "高跟鞋", "袜子"]) bar.add_yaxis("商家A", [5, 20, 36, 10, 75, 90]) # render 会生成本地 HTML 文件,默认会在当前目录生成 render.html 文件 # 也可以传入路径参数,如 bar.render("mycharts.html") bar.render()
[ "wlj" ]
wlj
73ff944adf0044010ff8aff804f42bff55d30406
b007d88e6726452ffa8fe80300614f311ae5b318
/LeetCode/top_questions_from_amzaon/three_sum_closest.py
1b89843bbcb4f6c768c3269f303df3485fcee5e0
[]
no_license
jinurajan/Datastructures
ec332b12b8395f42cb769e771da3642f25ba7e7f
647fea5d2c8122468a1c018c6829b1c08717d86a
refs/heads/master
2023-07-06T14:42:55.168795
2023-07-04T13:23:22
2023-07-04T13:23:22
76,943,162
0
0
null
null
null
null
UTF-8
Python
false
false
1,809
py
""" 3Sum Closest Given an array nums of n integers and an integer target, find three integers in nums such that the sum is closest to target. Return the sum of the three integers. You may assume that each input would have exactly one solution. Example 1: Input: nums = [-1,2,1,-4], target = 1 Output: 2 Explanatio...
[ "jinu.p.r@gmail.com" ]
jinu.p.r@gmail.com
f633dbcc7eef53a854a2e141672e28f1ab37b9de
5e3ebdb7e79f0c5e3a12350a673bbf7bbfd1db9f
/uglynumbers.py
896898e77cb7b5531d0ff2e6425f199425f9f876
[]
no_license
mragankyadav/LeetCode_Solved
bc9a851881bf46413967149db1900a450e68d4d3
a7fb9e33c949b2c01454dac72a7b49ff9c5a8842
refs/heads/master
2020-01-23T21:29:21.771168
2017-01-24T00:54:48
2017-01-24T00:54:48
74,701,981
0
0
null
null
null
null
UTF-8
Python
false
false
359
py
class Solution(object): def isUgly(self, num): """ :type num: int :rtype: bool """ while num>0 and num%2==0: num/=2 while num>0 and num%3==0: num/=3 while num>0 and num%5==0: num/=5 if num==1: return True...
[ "mragank@tamu.edu" ]
mragank@tamu.edu
f0f09ab6b602a528bb64a79743ecc40eae73860b
5f789754182d84c17f6e9454f98bb8e6f2975244
/day25_reverseWordsInAString.py
25c7ee41101590ee2f5cf3203a603a92e41afac7
[]
no_license
jjcrab/code-every-day
fb0d218877bcd3a14c4ff16864a6545ddd9d8761
0a5b7af23cd8b5c3a2ede01f81d1c9e0e6bce59a
refs/heads/main
2023-07-03T12:46:53.391997
2021-08-10T05:26:34
2021-08-10T05:26:34
355,221,020
0
0
null
null
null
null
UTF-8
Python
false
false
761
py
# https: // leetcode.com/problems/reverse-words-in-a-string/ # Given an input string s, reverse the order of the words. # A word is defined as a sequence of non-space characters. The words in s will be separated by at least one space. # Return a string of the words in reverse order concatenated by a single space. # ...
[ "lily_lijj@hotmail.com" ]
lily_lijj@hotmail.com
acce580ac004eef6ef6088ce14949b4a15714965
b45af7416f42c7c74e35cfe4757c511d4fae3e1a
/read.py
621de762b2ced9b7ba6137ce7fd2b857bef1e129
[]
no_license
xzifan/stopSmoking
e25e9a48f957c00ae55761546a905cc0a98ca1e1
dbe0d704a675e581bd4ffe28fceeb6bcdfe50b54
refs/heads/master
2022-01-30T23:38:59.904859
2019-05-02T11:00:20
2019-05-02T11:00:20
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,720
py
import sqlite3 import tweepy import json import time import networkx as nx import matplotlib.pyplot as plt with open('./twitter_credentials.json') as cred_data: info = json.load(cred_data) consumer_key = info['CONSUMER_KEY'] consumer_secret = info['CONSUMER_SECRET'] access_key = info['ACCESS_KEY'] ...
[ "13607960126@139.com" ]
13607960126@139.com
952edeb51f5505fff59069d05c4f5e34a8d4ac4c
4b7d56fe3f5b2f532172b110bc1b05ae36c84468
/deprecated/MissingRuns.py
682528312a91d5847d311b94bb8894b91770d3c7
[]
no_license
digideskio/WmAgentScripts
fdfc80dc3c967c7a61b5bd7ef1f37cf0aed17761
6ead6971043fb25c3c43a667a1879370e6b3a689
refs/heads/master
2021-04-29T00:21:22.216242
2016-12-26T10:34:15
2016-12-26T10:34:15
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,801
py
#!/usr/bin/env python import urllib2, urllib, httplib, sys, re, os, json from deprecated import phedexSubscription from deprecated import dbsTest from xml.dom.minidom import getDOMImplementation from das_client import get_data das_host='https://cmsweb.cern.ch' #Return true if a run is not present in any of the output ...
[ "jbadillo@cern.ch" ]
jbadillo@cern.ch
f6f4481d578ca779d5f10316a55f8922b3002683
ef6cbc6ed0884ff22c055840d45772b29baf8258
/Lab2/Backups/interface 2.py
60398ad0737672112c110173b5b0148e3f29d4cb
[]
no_license
dsamue/DD1334Databas
a51b704c4e14705267285856f68b3406667ef5b9
76a0d737a360ab5fc4df644be51ddfa49f4df5e5
refs/heads/master
2020-03-06T15:06:18.050397
2018-03-27T07:50:41
2018-03-27T07:50:41
126,948,830
1
0
null
null
null
null
UTF-8
Python
false
false
9,099
py
#!/usr/bin/python # Lines that start as this one does are comments and have no effect on # the execution of the program. (Most added by John Folkesson to help # understand the code.) # When you import the pgdb module, all the # classes and functions in that module become available for you to # use. For example you...
[ "samuelsson87@hotmail.com" ]
samuelsson87@hotmail.com
52bd92309b601393a15a005282bf1640f7a7c6f3
87b395719cc11ce9fd1a280cd0716a31fb5b4188
/bgmi/__init__.py
fb5242968532f4778e0a916feb66e57767ad2fe4
[ "MIT" ]
permissive
awesome-archive/BGmi
5f9fde96677904807fe16cbf68f7c476223329a6
313f8fd879e9daa141e76dea195563a42bd66b81
refs/heads/master
2020-12-03T00:42:43.446389
2017-06-14T12:14:21
2017-06-14T12:14:21
null
0
0
null
null
null
null
UTF-8
Python
false
false
101
py
# coding=utf-8 __author__ = 'RicterZ' __email__ = 'ricterzheng@gmail.com' __version__ = '1.3.0-beta'
[ "ricterzheng@gmail.com" ]
ricterzheng@gmail.com
bc51cf4ac7cf98eb4abd1c542716aa14f4c63b33
a81d21f98dd558416f8731f001cb8151d8309f4f
/interviewbit/interviewbit/stringm/justified_text.py
83236e4d76250c48e0b756f398a134e2b635a76d
[]
no_license
marquesarthur/programming_problems
1128c38e65aade27e2435f7987d7ee2b328fda51
2f7df25d0d735f726b7012e4aa2417dee50526d9
refs/heads/master
2022-01-25T18:19:02.575634
2022-01-18T02:07:06
2022-01-18T02:07:06
32,213,919
2
0
null
2020-10-13T01:29:08
2015-03-14T13:44:06
Python
UTF-8
Python
false
false
2,041
py
class Solution: def justifyLines(self, lines, L): result = [] for line in lines: curr = len(" ".join(line)) if len(line) == 1: result.append(line[0] + " " * (L - curr)) else: to_all = (L - curr) // (len(line) - 1) ...
[ "marques.art@gmail.com" ]
marques.art@gmail.com
c514cf956ce40ceda2afe2b4381d34f8b7f6f3b9
f6563f98fe519b95338fe5e741b7e85dbdd74c6e
/schedule/migrations/0002_talkschedule_day_session.py
4e212d87a7c09bf11fd505e7c0e284b8e5ee75ca
[]
no_license
PyZim/pyconzim_website
103a02327cbdf64ac635a0d89ef744dff826e2ed
6a6b4b85201a53202ab8ada3fb9d7e85115437da
refs/heads/master
2021-01-20T01:54:27.346355
2018-02-10T10:38:46
2018-02-10T10:38:46
89,343,552
3
6
null
2022-03-16T06:10:04
2017-04-25T09:39:39
JavaScript
UTF-8
Python
false
false
548
py
# -*- coding: utf-8 -*- # Generated by Django 1.10.3 on 2017-07-20 21:18 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('schedule', '0001_initial'), ] operations = [ migrations.AddField( ...
[ "amakarudze@gmail.com" ]
amakarudze@gmail.com
d43289e5edc8bd631adc373c22939e8abb133a42
6fcbf5644e61cebcdb0dbd92b517418eab5b0977
/teercontroller/teercontroller/__init__.py
f161d9ee983bd101692207aab734cd95a0f325dd
[]
no_license
maraid/teercontroller
18a6ad2f4fceec10b29720e39e1634bbb73a63dd
565c582accdd79a4e4bf007b7e2114cc64b9ab07
refs/heads/master
2020-03-08T06:30:53.522765
2019-06-24T21:22:03
2019-06-24T21:22:03
127,973,594
0
1
null
null
null
null
UTF-8
Python
false
false
45
py
from PhaseController import PhaseController
[ "danielmarai@yahoo.com" ]
danielmarai@yahoo.com
ae6a31af43390beff2a2eca53b5a0ffcc2ffd36f
d13c7805aa0e2d6ea110321770a29447b062cfd3
/accounts/views.py
5f319b5c2ab6247a46ffd303cf3a59c5a31ad08b
[]
no_license
josefinafortin/ICS491_Summer2019_TeamJS
5edbfc984ea33b87cb45c3bd69f47e0cd1c66f74
b9251684d1fea0af2f1f2d60db38f332c0ddeac4
refs/heads/master
2020-06-01T16:57:59.703194
2019-06-27T19:21:53
2019-06-27T19:21:53
190,857,621
0
0
null
null
null
null
UTF-8
Python
false
false
1,477
py
from django.shortcuts import render, redirect from django.contrib.auth.forms import UserCreationForm, AuthenticationForm from django.contrib.auth import login, logout from django.contrib.auth.decorators import login_required # Create your views here. def signup_view(request): if request.method == 'POST': f...
[ "noreply@github.com" ]
josefinafortin.noreply@github.com
7c73ad30514391476c8f79a8838afba38d502606
fc716c1605d22438fbf363fedb5be56f2e8cf9ce
/training/train.py
7f4b4db6eee2f99229ca44c679c4f1b0384677f8
[]
no_license
vimiomori/graduation-thesis
db12bc574d0e6a318c8b2f2e3e4f0f5e6bb304b0
bb91baf8817e070b50c19fc259f0381512ccb0d4
refs/heads/master
2023-01-24T06:17:42.055364
2020-12-01T02:21:05
2020-12-01T02:21:05
295,306,720
0
0
null
null
null
null
UTF-8
Python
false
false
1,589
py
# -*- coding: utf-8 -*- # -*- coding: UTF-8 -*- import time import csv import pickle import sys from gensim.models import Word2Vec from evaluate import get_score def main(sg, window, size): start = time.time() print(">"*10, "Preparing corpuses", "<"*10) print("Loading 助詞あり corpus") with open('joshi_...
[ "vivian.muchen@gmail.com" ]
vivian.muchen@gmail.com
b372fec1a5affa6271d68a4e50411b92c0a41c40
6c4d230ff798de61ca7fd4d72b2a779e00506e0b
/pioneer/envs/pioneer/pioneer_env.py
41bc422a592237660428e9c0a23718c1e556a410
[ "MIT" ]
permissive
MrNikStr/pioneer
d69292bd112d39fb8bf5a286d053a913bfb929f9
0912fd7b569073721d15a3e9843f80bde6da6093
refs/heads/master
2022-11-23T16:45:55.105469
2020-07-24T15:28:41
2020-07-24T15:28:41
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,158
py
import math import os from dataclasses import dataclass from time import sleep from typing import Optional, Tuple, Dict, List import numpy as np from gym import spaces from gym.utils import seeding from pioneer.envs.bullet import BulletEnv, RenderConfig, SimulationConfig, Scene Action = np.ndarray Observation = np.n...
[ "alexander@fluence.one" ]
alexander@fluence.one
26b983bf3e2b84ea70ee0f38e0f4cf03b6302db5
c91d2b1de58ec41f0f91fe7e46f6fb952f5e9192
/time_track_weather/time_track_weather.py
55a505be3602407dcd012e4990f0a7165a47113f
[]
no_license
publicaldo/PiPlay
384e3ba494af24b396040431945918ed388f492b
cdd25ce8f1ae03830752ae0e7f2fe2f1c0539fb9
refs/heads/main
2023-05-23T12:01:17.630071
2021-02-19T08:26:13
2021-02-19T08:26:13
338,565,473
0
0
null
2023-05-02T10:03:14
2021-02-13T12:04:01
Python
UTF-8
Python
false
false
4,129
py
import sys sys.path.append("lib") # from waveshare_epd import epd4in2_V2 # pi only: import os from datetime import datetime import requests picdir = os.path.join(os.path.dirname(os.path.realpath(__file__)), "pic") icondir = os.path.join(picdir, "icon") fontdir = os.path.join(os.path.dirname(os.path.realpath(__file__))...
[ "76871019+publicaldo@users.noreply.github.com" ]
76871019+publicaldo@users.noreply.github.com
a1a2c4ef7285f0b3cfb5f92a0c22724e95a2474a
ca5afb3906fca1a9692891b23073e51b63dede5e
/NetMM/Server/Server.py
a819b47f1d04aca16e9e54d18c83e08b75ce7374
[]
no_license
hadarrabin/NetMangement-Final-version
87d44bd1b09eb86eaa5adcf341646affc6e08e3e
a0fb40d9c59284112e9120cffc18fb4e300b93f5
refs/heads/master
2021-01-01T05:10:06.213917
2016-05-29T17:00:00
2016-05-29T17:00:00
59,429,087
0
0
null
null
null
null
UTF-8
Python
false
false
10,423
py
__author__ = 'Hadar' import socket import Aes import threading from Rsa import * from Crypto import * import time import pickle from base64 import b64decode, b64encode import time, sys import struct import pyodbc # region ---------- C O N S T A N T S ----------------------------------------------------------------...
[ "hadarrabin1@gmail.com" ]
hadarrabin1@gmail.com
e2bd4e7ede37958dddd801bd523cf0e0eb2a8e41
58fdfbf96e679fe2a4d0a44528b718439d2ad9b8
/Code/example.py
32fc89bbdf938ecbb5be6ffa4c3aa2ec94e277cf
[]
no_license
HifzaZaheer96/Assessment
e687505105ed8637f68d6928af837f47948f1675
81537c6d5186aec9143bb8b9bf7d160440a3d0cf
refs/heads/master
2021-02-05T11:48:23.083774
2020-02-28T14:49:17
2020-02-28T14:49:17
243,776,746
0
0
null
null
null
null
UTF-8
Python
false
false
228
py
#!/usr/bin/env python3 def endsPy(input): for i in range(len(input)): if input[i-1] == "y" or input[i-1] == "Y" and input[i-2] == "p" or input[i-2] =="P": return True else: return False
[ "Hifza.Zaheer@academytrainee.com" ]
Hifza.Zaheer@academytrainee.com
31c00dc69228314be9ba1332f3507e82b6d983be
3211dbbffe77b4c5b768387377e0c9c71c73ecc9
/crud_project/urls.py
7edc15604bae787d97bb0f41a8d4e5e38f70c004
[]
no_license
jonndoe/blog_project
231de09c13eaf0b1c537f713853786bf28a6f2b1
a867c4faba5e6ae7039cb6b2cbd9a3fc45e4ef73
refs/heads/master
2020-09-16T10:35:54.753112
2019-11-27T01:27:56
2019-11-27T01:27:56
223,743,912
0
0
null
null
null
null
UTF-8
Python
false
false
1,246
py
"""crud_project URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.2/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-...
[ "user@mail.com" ]
user@mail.com
c2638624790408ee92cbef57b6e031ff2ab99905
23a56e0555d6b27aa444d8396ec32f9d2b678a39
/06_volmod_hd/voxelspace_02/voxelspace_02.pyde
b28db102c94e7cb852037851d713d890168ff440
[]
no_license
dtbinh/T1_python-exercises
2ce1b01bc71f8032bbe8fb4ef8f71b648dcde1c5
f4710c3dc2ba8ddb3e3e9069ab8d65df674463ab
refs/heads/master
2020-04-04T20:00:52.191601
2018-01-09T08:14:36
2018-01-09T08:14:36
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,544
pyde
add_library('peasycam') add_library('hd') def setup(): size(1200,675,P3D) cam = PeasyCam(this,500) noStroke() global dx,dy,dz dx = 500.0 dy = 400.0 dz = 300.0 b = Box(-dx/2,-dy/2,-dz/2,dx/2,dy/2,dz/2) vs = VoxelSpace() vs.construct(b,3.0) vs.setValueToAll(10000) vd ...
[ "bernhard@arch.ethz.ch" ]
bernhard@arch.ethz.ch
c6d7fb1b84cec4c11fafe72c947287afa3dc1890
eb1cc6c21c664568ecde2ecbf2af6082da3d3646
/modules/say.py
d0c6df8274e22ecf46f78b9890b8875204dfedfb
[ "BSD-3-Clause" ]
permissive
sammdot/circa
5658d6d460810a25ef41880198103e122927641d
443db2e7a91ed01756d3f1f3e404a5bdccd0ddf4
refs/heads/master
2021-01-18T21:20:19.525465
2015-11-29T18:12:32
2015-11-29T18:12:32
21,531,956
1
0
null
null
null
null
UTF-8
Python
false
false
389
py
from util.esc import unescape class SayModule: require = "cmd" def __init__(self, circa): self.circa = circa self.events = { "cmd.say": [self.say] } self.docs = { "say": "say [msg] → print the message to the current channel. Admins only." } def say(self, fr, to, msg, m): if self.circa.is_admin(m...
[ "sammii.fernandez@gmail.com" ]
sammii.fernandez@gmail.com
4bd371cf1e1980349140f12dff91949aeb2f7bc5
b416e74ea646f04b5c2ad8d21ac7b1d9c997fd20
/test/tests/configs.py
5168787a2ef7c3c678ebf623e7c453ae7ee9ff4d
[ "MIT" ]
permissive
tuanngo/openclinica_sqldatamart
03b2bf7fba42fbb573f9dd81c95911cf5ef4fcba
ecdda4208021ff5a1cb7a20036eed23bd4196af0
refs/heads/master
2020-04-17T13:51:41.369937
2016-12-07T07:41:17
2016-12-07T07:41:17
null
0
0
null
null
null
null
UTF-8
Python
false
false
119
py
db_connection = { "database": "openclinica_fdw_db", "port": "5446", "user": "postgres", "password": "password"}
[ "lindsay.stevens.au@gmail.com" ]
lindsay.stevens.au@gmail.com
4404717afb3d521661f7f093ff8c427fd868d769
0dfb55ef7e9b71c368cd792305b65406555a4852
/virtualclassroom/urls.py
b1e14c0a84ef94f5a88641ae3bc14de755701b7a
[ "MIT" ]
permissive
RavicharanN/VirtualClassroom
a6a208ca85bb3c539238fd038b354bb1fe5592fa
e5200e269e9e592db889a5db5ff7905b40f6c822
refs/heads/master
2022-12-12T23:06:07.556427
2018-04-21T11:17:17
2018-04-21T11:17:17
127,512,142
0
1
MIT
2022-12-08T00:58:28
2018-03-31T08:04:20
HTML
UTF-8
Python
false
false
847
py
"""virtualclassroom URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.11/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')...
[ "ravicharan.vsp@gmail.com" ]
ravicharan.vsp@gmail.com
77661c14f71d8a37b13661709b516a772ebaea5f
4178f2916d2da72cbb45454fbed941dcfe8f6460
/Unittest/Test_unittest.py
b8a6df1b3b9eee35df44a820028e5c1f393c0ae7
[]
no_license
maxcrup007/Selenium_Webdriver_Python
15196cb04ba5cafdc5b776c26d167f0b48fb0e14
6be7f0b9f53df1ba592957029e8a4d22e409d1c4
refs/heads/main
2023-03-24T21:04:31.976451
2021-03-22T09:16:04
2021-03-22T09:16:04
349,379,454
0
0
null
null
null
null
UTF-8
Python
false
false
379
py
from selenium import webdriver driver = webdriver.Chrome(executable_path="C:/Users/voraw/Downloads/Compressed/webdriver/chromedriver/chromedriver") class LoginTest(unittest.TestCase): def setUp(self): self.driver = webdriver.Chrome("C:/Users/voraw/Downloads/Compressed/webdriver/chromedriver/chromedriver...
[ "36732487+maxcrup007@users.noreply.github.com" ]
36732487+maxcrup007@users.noreply.github.com
55886d70e37520349e2ebf8fd1dc7f7867fb368b
9e6a965efd5a873adf642998707e383b6b596020
/algorithms/basicpython/reverse_string.py
a03bb5e5ac18648edf31748bcb842654e97e22a4
[]
no_license
anilqad/training
9069603ad0cb92e7157c138205d4075d78720b63
664fd1bf409e1d5067428ac78ef0db654df15252
refs/heads/master
2022-12-24T11:46:21.298779
2020-10-01T13:22:35
2020-10-01T13:22:35
299,314,913
0
1
null
2020-10-01T13:22:37
2020-09-28T13:18:21
Python
UTF-8
Python
false
false
84
py
s = str (input("Enter The string")) str ="" for i in s: str = i + str print(str)
[ "anilqad@gmail.com" ]
anilqad@gmail.com
c066ce8b84e9b69ee11b163314b32d9b81349686
98c6ea9c884152e8340605a706efefbea6170be5
/examples/data/Assignment_7/hllbra005/question1.py
376cf835a2a072f9e54042391b7879a687350b82
[]
no_license
MrHamdulay/csc3-capstone
479d659e1dcd28040e83ebd9e3374d0ccc0c6817
6f0fa0fa1555ceb1b0fb33f25e9694e68b6a53d2
refs/heads/master
2021-03-12T21:55:57.781339
2014-09-22T02:22:22
2014-09-22T02:22:22
22,372,174
0
0
null
null
null
null
UTF-8
Python
false
false
339
py
# get a unique list of words # HLLBRA005 # words = [] word = input ("Enter strings (end with DONE):\n") while word != "DONE": if word not in words: words.append (word) word = input ("") # print out the unique list print("") print ("Unique list:") for i in range (len(words)): p...
[ "jarr2000@gmail.com" ]
jarr2000@gmail.com
d922bc4def24bc471ce38fbb57e931510de709b8
e5606385fc77c1fbb30be223637b2b62372d6635
/tango_with_django/urls.py
bd0f1ecdf6812824d29366876704172b826d4a2a
[]
no_license
bhoj001/DJ_Test_App
6b2f116523af72a15370e303af745d7df7d7951c
a20d5ae9049a5d432ba219eb96036953c5512bf5
refs/heads/master
2020-03-24T00:25:57.714156
2018-07-25T11:29:15
2018-07-25T11:29:15
142,290,934
0
0
null
null
null
null
UTF-8
Python
false
false
186
py
from django.conf.urls import url from tango_with_django import views urlpatterns = [ url(r'^', views.index, name='index'), url(r'^index$', views.index, name='index'), ]
[ "nishantkarki305@gmail.com" ]
nishantkarki305@gmail.com
0a663d86d8ff45aa87d8f3e5065ab412e2af0191
132117ecd83e34147263e6fc00024f4b6a9bd018
/Python编程从入门到实践/第七章学习/代码实现/counting.py
8d2010c0881f0f9465e45db58606440d9e482587
[]
no_license
ZYC0515/LearnPython
eda615607bc90c08bd47c11f8e7be11c2e13a046
d4edc742070bda03d8d9017315805562274e2bed
refs/heads/master
2020-07-02T19:05:22.103153
2019-09-14T09:51:05
2019-09-14T09:51:05
201,632,934
0
0
null
null
null
null
UTF-8
Python
false
false
303
py
#counting.py current_number = 1 while current_number <= 5: print(current_number) current_number += 1 current_number = 0 while current_number < 10: current_number += 1 if current_number % 2 == 0: continue print(current_number) x = 1 while x <= 5: print(x) x += 1
[ "925129271@qq.com" ]
925129271@qq.com
59765fbeec8c7868cab3faf3851a468018eeef01
16dfaa65444248ad39b0c60cfb54f14f0d4aaa7f
/test/test_api_response_single_webhooks.py
4e395132ce1e8bfa0c3c66d1810db2cdaf42de6d
[]
no_license
mimepost/mimepost-python
3af0dfaa5dfd5b07154f3c73107bf63044198413
30f81d8c090b2dc75121a572040562c2a950c7e7
refs/heads/master
2023-02-27T10:51:01.903032
2021-02-06T15:11:11
2021-02-06T15:11:11
335,716,791
0
0
null
null
null
null
UTF-8
Python
false
false
1,158
py
# coding: utf-8 """ MimePost API Reference (Beta) MimePost API for sending email. You can find out more about MimePost at [https://mimepost.com](http://mimepost.com). For this sample, you can use the api key `special-key` to test the authorization filters. # noqa: E501 OpenAPI spec version: 0.1.0 ...
[ "tabby" ]
tabby
b1d5a07134bc21ee7bca96e110fbe440beb81f06
43f9c92b25463f443062c0f774c95f8dbe85eadd
/Lab 2/Kode/3a.py
c3c0ca8254419da97eac366d8becc5270cbddba2
[]
no_license
Jonas-Asp/FYS-KJM4710
ae7cbe9b7759ca5701c1ac7b9014962008486ea7
0c8fd31edbe5155e7e3c9f5edd8131e9be7843f8
refs/heads/master
2020-03-27T13:25:19.623133
2018-12-07T16:42:43
2018-12-07T16:42:43
146,608,410
0
0
null
null
null
null
UTF-8
Python
false
false
2,440
py
import numpy as np import matplotlib.pyplot as plt """ 1 MeV """ D = [ 3.4382E-12, 5.0641E-12, 5.0086E-12, 5.0943E-12, 4.8840E-12, 4.8216E-12, 4.8968E-12, 4.9208E-12, 4.7834E-12, 4.7082E-12, 4.7187E-12, 4.6726E-12, 4.6250E-12, 4.6771E-12, 4.5368E-12, 4.4455E-12, 4.3973E-12, 4.3873E-12, 4.4088E-12, ...
[ "42804793+Jonas-Asp@users.noreply.github.com" ]
42804793+Jonas-Asp@users.noreply.github.com
5df3eaf861df0f741a56f3b6dc909dc5acd0a2ef
a1115883ce50d35482fb5e6662ae246b7782a7aa
/migrations/versions/2018_01_06_7525fd3b67d5_.py
d4208fe23b48a12f37a18ebc9f749861a25bd764
[ "MIT" ]
permissive
viaict/viaduct
4c1252706a23f9ea83e6507ebafef2ced2288746
1faec7e123c3fae7e8dbe1a354ad27b68f2a8cef
refs/heads/develop
2021-01-25T10:17:12.802733
2018-10-13T12:53:47
2018-10-13T12:53:47
18,373,059
11
3
MIT
2020-05-20T16:44:52
2014-04-02T16:26:03
CSS
UTF-8
Python
false
false
351
py
"""empty message. Revision ID: 7525fd3b67d5 Revises: ('2de19b331017', '009352d11348') Create Date: 2018-01-06 17:16:54.405469 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = '7525fd3b67d5' down_revision = ('2de19b331017', '825dad56a2c3') def upgrade(): pa...
[ "maico.timmerman@gmail.com" ]
maico.timmerman@gmail.com
eeb887882b21b15eaf1a2b617e305409283b808e
11d0cd1983cf1c13e2929548eb946336197b6c51
/fragQueue.py
58a448b659c56a921fa88bfb01a68c9dedba9687
[]
no_license
alkerway/copylivemanifest
1e057a0f639281ad0e49af864660c6e2002b87a2
8158768faa9498cf4e0f5fddb6b28cc0ec64a6d8
refs/heads/master
2023-05-27T03:25:28.422652
2021-05-20T04:32:21
2021-05-20T04:32:21
363,857,558
0
0
null
null
null
null
UTF-8
Python
false
false
4,868
py
import threading import asyncio import httpx from downloader import Downloader from log import log downloader = Downloader() MAX_STALL_COUNT = 20 MAX_FRAG_ERROR = 10 class FragQueue: def __init__(self, outDir, finishCallback, cancelTimer): self.lastQueueIdx = -1 self.lastDownloadedIdx = -1 ...
[ "alex@walkeralex.com" ]
alex@walkeralex.com
aa4b5f9d96c012e427872cb8340f81f84ee3dbfd
b9220b5187651761693170005bf9a0348125bb43
/PythonScripts/newpasswd.py
daf60e8a455fc9964e7b5858a8e3fb5cba850f9d
[]
no_license
brainwerkz/SamplePyScripts
aa5ad53917e72accf7b2cfa2609ba769e80b30f7
a8c33d3a97e2c23108a399da09a7955fd34b3435
refs/heads/master
2021-01-21T17:03:23.653747
2017-07-23T21:47:25
2017-07-23T21:47:25
91,929,257
0
0
null
null
null
null
UTF-8
Python
false
false
318
py
from random import choice import string def GenPasswd(): chars = string.letters + string.digits for i in range(8): newpasswd = newpasswd + choice(chars) return newpasswd #def GenPasswd2(length=8, chars=string.letters + string.digits): # return ''.join([choice(chars) for i in range(length)])
[ "jrichardson@brainwerkz.com" ]
jrichardson@brainwerkz.com
23c3859286f2456ba1b7ddcb56500fe2ce1ea9d3
e2a8a70250671b12735b87e1034a24af6f28ef18
/pytorch/train_res50_8tops.py
78fe8dc2092d50f82cebd4e601195b7e75a7f571
[]
no_license
Alibhji/FrontView_to_BirdeyeView
a06ed4e9b32d4f098f87e1bc4c7774615a38b2af
df00e4b83851440422f22815f6b0bad6cc2af584
refs/heads/master
2022-04-07T19:08:25.137506
2020-03-18T07:39:20
2020-03-18T07:39:20
246,663,819
0
0
null
null
null
null
UTF-8
Python
false
false
5,575
py
# this code is written by Ali Babolhaveji # convert front view to birdeye view # Pytorch + GPU # 3/11/2020 # command : # python -W ignore train_res50_8tops.py from lib import Bkend_res50_8top from lib import Dataset_top_to_birdView from lib import train_ , validation_ import torch import torch.optim as optim impo...
[ "40876922+Alibhji@users.noreply.github.com" ]
40876922+Alibhji@users.noreply.github.com
c8631d3949aca9a9bb305346fed17b3df712cbe4
f5afad14aa82fa8fd7ab229e5fd339e9a8aa44ac
/pm4pymdl/util/parquet_importer/__init__.py
71d97d0577010df6f9b5dd42358941ece872da99
[ "MIT" ]
permissive
Javert899/pm4py-mdl
fd58df96e3853f241ca13d507a60d641e5a4cae5
24ecf77a003bcf3db7a7956459eb686f0497d12a
refs/heads/master
2021-11-12T00:34:28.034948
2021-11-05T11:25:50
2021-11-05T11:25:50
207,297,045
8
10
null
null
null
null
UTF-8
Python
false
false
74
py
from pm4pymdl.util.parquet_importer import versions, importer, parameters
[ "javert@northwood.northwood.net" ]
javert@northwood.northwood.net
82cc819f410713a9d81bc08104e554054fba9a09
f5c3297f207ca19e821722c825825fc9bba76298
/A2/q1.py
2e14e9024b98de9b9b88a79951589cbc2e9dee9a
[]
no_license
mayanksha/CS786
57032ecb01d6aa7d10b56db56d15e6bd5215782d
a0f3ba57bd084230eb16c6be0e37faf3485063e9
refs/heads/master
2020-04-27T13:24:27.602535
2019-03-10T15:02:07
2019-03-10T15:13:01
174,368,761
0
0
null
null
null
null
UTF-8
Python
false
false
4,702
py
#!/usr/bin/env python import sys import numpy as np import numpy.matlib import cv2 import matplotlib.pyplot as plt from scipy import ndimage from sklearn import cluster from sklearn.metrics import silhouette_samples, silhouette_score def build_filters(): filters = [] ksize = 10 sigma = 5.0 for thet...
[ "mayank8019@gmail.com" ]
mayank8019@gmail.com
96fed0ccccb1e58f48083f151ce872274917d221
d57040c304cbe77e5a13d3cab98b15ba2f741c41
/PCfix/migrations/0018_order_annuluseropenid.py
ea197558110f9953eaadc475ea3a8cce2e4ae6a2
[]
no_license
XQrobby/fix
1d2ce929c3e0d869bffde2cab94c174bd6eee81c
d9f86069713dce84c562312fb9805048be2af15d
refs/heads/master
2020-04-23T21:39:20.789989
2019-02-19T13:58:50
2019-02-19T13:58:50
171,101,089
0
0
null
null
null
null
UTF-8
Python
false
false
402
py
# Generated by Django 2.1.5 on 2019-01-29 11:59 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('PCfix', '0017_auto_20190129_1155'), ] operations = [ migrations.AddField( model_name='order', name='annulUserOpenid'...
[ "1260777400@qq.com" ]
1260777400@qq.com
1e21ab84e958a395cdfc22bba305321df5eea74a
cf7b827958166c8569eb58deb511cc3f07567741
/in_Python/1716 Calculate Money in Leetcode Bank.py
cf86e90ac27c7419eb082d5d8c85fe8500ec0088
[]
no_license
YangLiyli131/Leetcode2020
e4e36eb36b1983f73b0e733455b4a7953dfebe6d
20623defecf65cbc35b194d8b60d8b211816ee4f
refs/heads/master
2023-08-22T06:00:55.924112
2021-09-18T19:04:15
2021-09-18T19:04:15
251,426,203
0
0
null
null
null
null
UTF-8
Python
false
false
413
py
class Solution(object): def totalMoney(self, n): """ :type n: int :rtype: int """ res = 0 weeks = n / 7 remain = n % 7 for i in range(1, weeks+1): res += (i + i + 6) * 7 / 2 start = weeks + 1 while remain != 0: ...
[ "noreply@github.com" ]
YangLiyli131.noreply@github.com
718cfa6a8af7b62782c68f204154f3455a18b862
193e25de2add1004b9163adc369dd062b359f78e
/labs-main/lab7/Task1/informatics-tasks/3.py
82f3d11818e14ab883512593f5a1b7222e22f0c5
[]
no_license
rakhatyeskenov/Web-development-2021-spring
f56237f4d7307703f0ee4e0687036805bbee1de7
7541f694f3da8639be2e1323073d121caff87040
refs/heads/main
2023-04-02T21:14:58.412948
2021-04-14T21:52:21
2021-04-14T21:52:21
336,210,777
0
0
null
null
null
null
UTF-8
Python
false
false
49
py
n = int(input()) k = int(input()) print(k // n)
[ "noreply@github.com" ]
rakhatyeskenov.noreply@github.com
8d4a6c6c3a16885bf55b23360fa1339bbaa997e2
fefdb381958ecebf4f7b7bafe6b92721035cc9e5
/src/visualizer.py
0952d8ec0125ab45df6ccf111b174b345ea3d0c6
[]
no_license
SoICT-RA-TKV/fso_data_generator
f7b5c8927e4c9aabeecc90eeba01429082b8887b
5b241bdd4edac127f1bee10e9f28f7cdb6ef292f
refs/heads/master
2023-02-27T09:05:51.926091
2021-02-01T18:14:33
2021-02-01T18:14:33
230,081,677
0
0
null
null
null
null
UTF-8
Python
false
false
2,220
py
import json import sys from matplotlib import pyplot as plt import dict_txt import os global prefix global visualize_func def visualize_density(file): if file.split('/')[-1] != 'density.txt': return stream = open(file, 'r') mapName = stream.readline().split(' ')[0].replace('\n', '') NMap = int(stream.readline()...
[ "vuong.1998@gmail.com" ]
vuong.1998@gmail.com
25a14a49de07c42b42f9f0090194a0c59b6c028b
795963c77fd920b5ba91e9045777c2137af37285
/Python-jk/419.py
101a8f44576f1f6679406029c0c6db1dbbbe7650
[]
no_license
kedixa/LeetCode
dce74c9395d366db559302b48b0b21cd4f869119
08acab1cebfac2aed4816cf9d8186a22304488a9
refs/heads/master
2020-07-04T05:11:33.019564
2018-03-08T13:30:18
2018-03-08T13:30:18
66,902,234
1
0
null
null
null
null
UTF-8
Python
false
false
905
py
class Solution(object): def countBattleships(self, board): """ :type board: List[List[str]] :rtype: int """ count=0 last=False for i,row in enumerate(board): last=False for j,c in enumerate(row): if c=='X': ...
[ "xinwojiushiwokun@163.com" ]
xinwojiushiwokun@163.com
0064260f97e65d9800bf0c9d5c2dc45eaf5ca44f
e168a4de5e6857bb70e2b3abb5782a6b9940dcd5
/convert_data.py
ae736d95cdbfdbef91ee92cbb65b6a3b1ccb2acb
[]
no_license
cuulee/datashader_powergrid
0d96f2efb9cce8ad43d7e0fbf4e8035ef805e438
da76653982b803be05a069796f5ebba614103db8
refs/heads/main
2023-07-16T02:24:10.305312
2021-09-01T03:18:21
2021-09-01T03:18:21
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,006
py
# ========== (c) JP Hwang 28/6/21 ========== import logging import pandas as pd import numpy as np from utils import ll2en logger = logging.getLogger(__name__) root_logger = logging.getLogger() root_logger.setLevel(logging.INFO) sh = logging.StreamHandler() formatter = logging.Formatter('%(asctime)s - %(name)s - %(l...
[ "me@jphwang.com" ]
me@jphwang.com
a92c16f8a77e9889f0009e23aadbe1864b874b51
331cae3f7f22e07d436a0c6fe8607ff997c589f6
/qmhub/qmmm.py
7efe1d5fcc09e26ef20b3a97fad4b55812cdf2b1
[ "MIT", "LicenseRef-scancode-warranty-disclaimer" ]
permissive
evohringer/QMHub
b368389e8317a42705aa2da865126dc8d98390b8
e85ada102fb3500316058af51e8de1cf0ae35aac
refs/heads/master
2020-04-09T08:31:18.200601
2018-03-02T20:32:23
2018-03-02T20:32:23
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,530
py
import os import sys import numpy as np from . import embedtools from . import mmtools from . import qmtools class QMMM(object): def __init__(self, fin=None, baseDir=None, mmSoftware=None, qmCharge=None, qmMult=None, qmSoftware=None, qmEmbedNear=None, qmEmbedFar=None, ...
[ "panxl@users.noreply.github.com" ]
panxl@users.noreply.github.com
1e398ac9d85fbf1aa907335a011290c72f6e74d7
506f2babfe7000511892e843a231312110fe5d2b
/backend/noisy_fog_20154/settings.py
d5727a11b00198e2ea82f5f169abc5331e537076
[]
no_license
crowdbotics-apps/noisy-fog-20154
6ecff3404ba6c6ff7871ae65ad1a7c841ad49d6e
8ba11c1d964e8c9fc61501c0ec1e39ec965f4e3a
refs/heads/master
2022-12-10T21:28:39.843546
2020-09-09T21:40:58
2020-09-09T21:40:58
294,235,835
0
0
null
null
null
null
UTF-8
Python
false
false
5,901
py
""" Django settings for noisy_fog_20154 project. Generated by 'django-admin startproject' using Django 2.2.2. For more information on this file, see https://docs.djangoproject.com/en/2.2/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.2/ref/settings/ """ impo...
[ "team@crowdbotics.com" ]
team@crowdbotics.com
32c278c7dbcdb628504fa6dff36eef7568cc9379
80c448b985262408a05b10d2d03c38ef52947642
/django/django-kong-admin-0.4.0/kong_admin/migrations_bak/migrations/0013_auto_20160422_0058.py
24326817e1449863cd51a13008019541d2b7f903
[]
no_license
BUPT902/API
93e55a447555d3372f6c419b5dbc7425852ddaa7
66742e102f83fe2fb016389dce3b9bc72925b234
refs/heads/master
2016-09-13T16:13:28.651865
2016-06-02T01:18:30
2016-06-02T01:18:30
57,945,363
0
0
null
null
null
null
UTF-8
Python
false
false
660
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('kong_admin', '0012_auto_20160421_0758'), ] operations = [ migrations.AlterModelOptions( name='apireference', ...
[ "ximu470791413@163.com" ]
ximu470791413@163.com
340140def38bdae76f2b9b03a19b62b8b6e7d141
a30166ac71e4b1c1e07d67d07a07c99b12811005
/Algoritmos/Lista 02 - Estrutura Condicional/QUESTAO05.py
d65d568526f0ade21a943feac1ba58549e0e42d2
[]
no_license
WalterBluman/Tecnologo-ADS
3615422a36d4b3169f7534601c8bbc9abe25f1ef
cebf94e482fa0e348aeda0f66b34ca3f26a2aa27
refs/heads/master
2020-12-03T19:15:28.025905
2018-07-18T18:22:54
2018-07-18T18:22:54
null
0
0
null
null
null
null
UTF-8
Python
false
false
597
py
# -*- coding: utf-8 -*- def ordenar(n1,n2,n3): if n1<n2<n3: print(n1,n2,n3) if n3<n2<n1: print(n3,n2,n1) if n2<n1<n3: print(n2,n1,n3) if n2<n3<n1: print(n2,n3,n1) if n1<n3<n2: print(n1,n3,n2) if n3<n1<n2: print(n3,n1,n2) def main(): print("dig...
[ "sywrahgabriella@hotmail.com" ]
sywrahgabriella@hotmail.com
ba98858a633b7ec3ed95ab0a7dd9eb63ec46eb64
cd70537839d0ffea8d42666984b037e6d43328b1
/98_Validate_Binary_Search_Tree_Recursive_min_max.py
fb8aa7d1c1d67a32a3792b0ead5e209831b59f66
[]
no_license
Suyash906/Trees-1
a59a7136ed1816cb5bdcfa11a84a7614a853b765
8ab324e91ef7d51183f04b647fe6f461b1f96b1a
refs/heads/master
2022-11-09T00:49:28.993328
2020-06-27T19:31:25
2020-06-27T19:31:25
271,968,459
0
0
null
2020-06-13T08:17:10
2020-06-13T08:17:09
null
UTF-8
Python
false
false
1,325
py
# Time Complexity : O(n) [n = number of elements in preorder list] # Space Complexity : O(log n) [n = number of elements in preorder list, in other words height of tree] # Did this code successfully run on Leetcode : Yes # Any problem you faced while coding this : No # # Problem approach # 1. For any node all the nodes...
[ "suyash90682711@gmail.com" ]
suyash90682711@gmail.com
42a078875f0a2bc616bfb980fcc186c24442adb8
60326067f843ba99a39b7aa326800fad5391e966
/translate-layer/word2root/source.py
99e6ef4a9eb307ff112497e58000233ea39395e7
[]
no_license
alpham/draft
be9751c94d6806bd35a713c48e36ff0cb80cb7f4
825520a41797e764868f34497b6845a81922b0fa
refs/heads/master
2016-08-04T21:33:31.652048
2014-08-05T13:18:17
2014-08-05T13:18:17
null
0
0
null
null
null
null
UTF-8
Python
false
false
644
py
from PyQt4.QtCore import * from PyQt4.QtGui import * import sys from nltk.stem.isri import * import test_ui class test(QMainWindow,test_ui.Ui_MainWindow): def __init__(self,parent=None): self.ui = test_ui.Ui_MainWindow() QMainWindow.__init__(self,parent) self.ui.setupUi(self) self....
[ "ahmed.magdy@code95.com" ]
ahmed.magdy@code95.com
b6bf5f11fe8c566b8c422ab37b536933ef9a23a2
d5711bf1c0306a6d9e3de223f65e3eb4154eb6dd
/python/function.py
a72192ab70f31ded38d97d998d335ef0b4e8291e
[]
no_license
zyl-hub/wiki
12c369bf7a9d711d5102b0b93c7cf17966e95be6
448d4bfcae769fb34898359b89b49893f84df8f8
refs/heads/master
2023-03-14T02:00:09.081009
2021-03-03T15:00:56
2021-03-03T15:00:56
291,210,727
0
0
null
null
null
null
UTF-8
Python
false
false
541
py
import math # help(abs) def my_abs(x): if not isinstance(x, (int, float)): raise TypeError('bad operand type') if x >= 0: return x else: return -x b = my_abs(-2) # raise error # my_abs('a') print(b) # none function def nop(): pass # 返回一个tuple def move(x, y, step, angle=...
[ "1016076582@qq.com" ]
1016076582@qq.com
6168ea1002c7c18658f9118b3a9c3059ff235830
0fcf311feebd5887d9566fcd36e1095ae57ac653
/csv_output.py
8560a6e9e7411dba8c0df387f865aa8b235d231d
[]
no_license
kwask96/scrape-financial-statement
dfb8c95646cc7a2b745dc801978f1af1df569c5a
832241153da55c5c08249342251bb8454594e1a7
refs/heads/master
2023-03-18T09:40:45.251170
2017-05-17T00:56:08
2017-05-17T00:56:08
null
0
0
null
null
null
null
UTF-8
Python
false
false
861
py
import csv def to_csv (data): ''' data: (symbol: string, statement_type: string, matrix: 2d-list) return: None side effect: write "Symbol_statement_type.csv" to file system ''' symbol, statement_type, matrix = data filename = symbol + '_' + statement_type.replace(' ', '_') + '.csv' ...
[ "domingohui@gmail.com" ]
domingohui@gmail.com
f663626494fad3636baf7dca7e74d0fe4fe4fbd4
229181f4059d7f0a18baa11616b56551930f5a29
/backendGit/models/group.py
4de133e4de2479688d90d8c78fab354e94147e94
[]
no_license
antoniomanzanom/GroupFinderPublic
760690662d7a755551ea699a1a972e092f2edc1c
5ade1b0027c6f7e2279bbb77d2869bcf8e5c501f
refs/heads/master
2023-05-12T06:39:36.602481
2021-06-11T14:03:19
2021-06-11T14:03:19
375,653,281
0
0
null
null
null
null
UTF-8
Python
false
false
1,459
py
from db import db class GroupModel(db.Model): __tablename__ = 'groups' # Atributos del Usuario id = db.Column(db.Integer, primary_key=True) name = db.Column(db.String(100), unique=True) descripcion =db.Column(db.String(100), nullable=False) privado = db.Column(db.Boolean(), nullable=True) ...
[ "amanzanom98@gmail.com" ]
amanzanom98@gmail.com
c796d1cf2c8148c5af06566916762a2b44e34ab6
4a865273b94fc1c1fa70c4c8dbc34d57f3e4d602
/airflow-dag/product_category_name_translation_test.py
0179e7ee115159dd1033fecd421d685000830546
[]
no_license
edwardmartinsjr/pucminas-bia-tcc
13b9e1c05f27a0be3906a8e4f8beeafeeacf7520
f6d108c56a66d8737c72613632eacf8ab038997e
refs/heads/main
2023-03-27T21:23:52.694519
2021-03-30T21:40:29
2021-03-30T21:40:29
338,130,280
0
0
null
null
null
null
UTF-8
Python
false
false
848
py
import unittest from unittest.mock import patch, mock_open import glob from datetime import datetime import os import product_category_name_translation as task from helpers import storage # START TESTS: class Test(unittest.TestCase): db_name = os.getenv('MYSQL_NAME') table_name = 'product_category_name_transl...
[ "edwardmartinsjr@gmail.com" ]
edwardmartinsjr@gmail.com
9f172a0be7b6bf7913fb68633dc6687740df64a5
c376e2a22ff855447f444492aa064f5fb6db4df7
/github/models.py
faf395c5874f693a1894aa9cb74e23368c9a6714
[]
no_license
chriscauley/homer-test
54f0192fb7923e621f1e3a11046e4580b8d966b4
7194d7aaa08888c772dcf922d16a666a94bf6d48
refs/heads/master
2021-01-10T13:38:23.065811
2015-10-13T23:15:01
2015-10-13T23:15:01
44,202,532
0
0
null
null
null
null
UTF-8
Python
false
false
972
py
from django.conf import settings from django.db import models import requests,json GITHUB_QS = "?client_id={}&client_secret={}".format(settings.GITHUB_KEY,settings.GITHUB_SECRET) class Repository(models.Model): username = models.CharField(max_length=64) reponame = models.CharField(max_length=64) stars = models...
[ "chris@lablackey.com" ]
chris@lablackey.com
fa604d1429ac58cdead80ef403a2aedc50358742
958e14811c8460b106d58494b7f06fbf6d05a19b
/Transducer Controller/customVal.py
2cb57508b2a65ec4659dbf2848b7653d65d5174f
[]
no_license
EllangoK/Somewhat-Secret-Summer-Project
28693fbaeba9fdc6beed909277aac811041c693d
79747ed68f0288005619a2a691b5516f113399e2
refs/heads/master
2020-12-02T22:17:23.868752
2017-07-25T12:39:59
2017-07-25T12:39:59
96,108,678
6
0
null
null
null
null
UTF-8
Python
false
false
1,005
py
from tkinter import * import sys root = Tk() def customVal(str): def getCustomAmt(): global customAmt customAmt = int(E1.get()) root.destroy() submit = Button(root, text ="Submit", command = getCustomAmt) if str == "inch": label1 = Label( root, text="Custom Value in ...
[ "ellangok@bxscience.edu" ]
ellangok@bxscience.edu
bb1c785b5b1e2bf907546ba86b29d443cce9d162
6251392880ef6ef95962e76cf80b520386ef60ca
/more_ui.py
9fe68d620c56030b683d19e6722986589c043707
[]
no_license
Kartik1801/VOCA-Vocabulary-Building-Tool
207d5d3ade3f9ca96392b6d5785de6430bd337ee
f9c29b254ab9f953e7cd095cce8e2620ca50690d
refs/heads/main
2023-03-25T16:37:35.064192
2021-03-24T03:11:28
2021-03-24T03:11:28
349,098,683
0
0
null
null
null
null
UTF-8
Python
false
false
3,878
py
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'more_menu.ui' # # Created by: PyQt5 UI code generator 5.15.2 # # WARNING: Any manual changes made to this file will be lost when pyuic5 is # run again. Do not edit this file unless you know what you are doing. from PyQt5 import QtCore, Qt...
[ "kartikdhawan1801@gmail.com" ]
kartikdhawan1801@gmail.com
7ee87a0f8d74bda1e49ab34d62868a1af4f9ac09
5b78daff16dee50d3df8ffed82d155ece0ef0934
/echopy_doc.py
7f90046e0140d29d9242dc57a85ca36dca8f4298
[]
no_license
zpriddy/ZP_EchoST
9da4f78ae64cdd258354a84b7d07d934682b3ef2
2335a45c09c03238cc1e8e8fc20c8c8031a19b8d
refs/heads/master
2020-05-30T00:57:32.716491
2015-07-26T23:15:18
2015-07-26T23:15:18
39,745,746
3
3
null
null
null
null
UTF-8
Python
false
false
15,062
py
main_page=''' <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css"> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3...
[ "me@zpriddy.com" ]
me@zpriddy.com
5db951da7ed2b02188b05cf95f49228292dd84d8
968caaa224f3dba49053ccc5e968e30296813f86
/socket_client.py
c294d0304c221f8c3a0da26589422a2d7c68ad81
[]
no_license
k4is3r/kivy-chat-python
f6bf2eda0ed5c47f423b0ffac2fa9d15eee6e28a
926b45beac14b17cdf57c462f1b17051ce3971ce
refs/heads/master
2022-12-12T18:54:23.013987
2020-01-06T16:14:51
2020-01-06T16:14:51
232,650,507
0
0
null
2022-12-08T07:02:27
2020-01-08T20:16:57
Python
UTF-8
Python
false
false
1,808
py
import socket import errno from threading import Thread HEADER_LENGTH = 10 client_socket = None # Connects to the server def connect(ip, port, my_username, error_callback): global client_socket client_socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM) try: client_socket.connect(...
[ "ejwimery@gmail.com" ]
ejwimery@gmail.com
225e4818b7f85da851001d3586dfc20f0fe2992d
8211380d35f6c553a5cc8a4043144c0afe2b66a2
/loglizer/models/InvariantsMiner.py
b352da0d47836ab163b3a7dcec7df882fe458dde
[]
no_license
real-lhj/Log-Analysis-for-Anomaly-Detection
3aa88fd16b54f726cfc9017e8599d22f686d49d3
10e5d706bdc798c44cbc508b7d9fcc2e15fbfda5
refs/heads/master
2023-03-17T06:28:12.509865
2020-02-11T01:53:17
2020-02-11T01:53:17
null
0
0
null
null
null
null
UTF-8
Python
false
false
11,031
py
""" The implementation of Invariants Mining model for anomaly detection. Authors: LogPAI Team Reference: [1] Jian-Guang Lou, Qiang Fu, Shengqi Yang, Ye Xu, Jiang Li. Mining Invariants from Console Logs for System Problem Detection. USENIX Annual Technical Conference (ATC), 2010. """ import nump...
[ "davide97ls@gmail.com" ]
davide97ls@gmail.com
f5b129dfb19b7d434d24965972ae34a607146276
b31c9ec80def3ff6db8d0aaa83831e44ff4752c5
/ppc300_Score/fhq2017_ppc300_ans.py
a691f2e802ef1ceb526b40ca9888c1e6ffb3155d
[ "MIT" ]
permissive
freehackquest/2017-tasks
1cfd0d1f9b4f859124f3a61c4bfa6411cc936bdb
6f8dd3791f062664dd4d642468dad11b7024e3f6
refs/heads/master
2021-05-15T16:47:52.513738
2017-10-20T03:33:36
2017-10-20T03:33:36
107,542,583
2
0
null
null
null
null
UTF-8
Python
false
false
743
py
#!/usr/bin/env python # -*- coding: utf-8 -*- import hashlib f_in = open('ppc300.txt', 'r') f_out = open('ppc300_ans.txt', 'w') ans = 0 while 1: res = f_in.readline().split() if len(res) != 2: break n = int(res[0]) m = int(res[1]) print 'dano)', n, m res = 0 ste...
[ "mrseakg@gmail.com" ]
mrseakg@gmail.com
e6d213871acea614d96881188679c65e7d1629d2
d750e292cb7dd8c5dc82572d891b6d2355f9a6db
/PyFlow/Packages/PyflowBase/Tools/AlignTopTool.py
d8a6e2b7cb801d414d97e6894039d8b7140dae83
[ "MIT" ]
permissive
jdrese/PyFlow
68205a8f66a429891d657a00ba1e3ae91f4d5b24
3d25e95e0dacbc040ea8634ddfa723eb2d1a2a03
refs/heads/master
2020-05-26T21:39:22.358941
2019-05-23T20:16:18
2019-05-23T20:16:18
188,383,493
2
0
MIT
2019-05-24T08:27:06
2019-05-24T08:27:06
null
UTF-8
Python
false
false
695
py
from nine import str from PyFlow.UI.Tool.Tool import ShelfTool from PyFlow.Packages.PyflowBase.Tools import RESOURCES_DIR from PyFlow.Core.Common import Direction from Qt import QtGui from Qt.QtWidgets import QFileDialog class AlignTopTool(ShelfTool): """docstring for AlignTopTool.""" def __init__(self): ...
[ "shermand07@mail.ru" ]
shermand07@mail.ru
56f13ce893b3bf651f9bc4d9640eae6d032e5cc7
6abc9b7e59aa2bc77d16bf0579bc2319db4fa20c
/miniverse/core/models.py
8bd56b62ceb2078eb06c7be9d6def6cdda7541f7
[ "MIT" ]
permissive
IQSS/old-miniverse
b05823891fafd40a5b12f18894f3dff19404fe37
daabcad2fbd6cc29cc05f0091f51157e4fe9e46a
refs/heads/master
2021-01-21T03:15:54.392430
2014-06-27T16:05:55
2014-06-27T16:05:55
19,803,423
0
2
null
null
null
null
UTF-8
Python
false
false
331
py
from django.db import models class TimeStampedModel(models.Model): """ An abstract base class model that provides self-updating "created" and "modified" fields. """ created = models.DateTimeField(auto_now_add=True) modified = models.DateTimeField(auto_now=True) class Meta: abstr...
[ "raman_prasad@harvard.edu" ]
raman_prasad@harvard.edu
276e474afa999cf3c9776d1f0b6a696987d8a34f
d51b4c766661af65b4ee6e7c30f8cb4bdd8603e3
/python/algorithm/leetcode/1206.py
ef480cffa3025c1d785bc57a77654dcb02f0c3f1
[]
no_license
yanxurui/keepcoding
3e988c76b123d55b32cf7cc35fbffb12c4ccb095
d6b9f07e2d1437681fa77fee0687ea9b83cab135
refs/heads/master
2021-01-24T09:01:41.306597
2020-05-21T05:36:04
2020-05-21T05:36:04
93,400,267
1
1
null
null
null
null
UTF-8
Python
false
false
1,698
py
# https://leetcode.com/problems/design-skiplist/discuss/393713/Python-1-node-per-value-and-100 from random import random from math import log class Node: def __init__(self, val, levels): self.val = val self.levels = [None] * levels class Skiplist: def __init__(self): self.head = Node(...
[ "617080352@qq.com" ]
617080352@qq.com
0ca7092994a6088b4a2f108b3e13a5b4b5c3e963
f351e226dacfb7b7894ac39e6588c90351f54b4c
/Qshop/Shop/serdMail.py
e6479ce748613f520527c0051573116a014295a2
[]
no_license
1846515672/Web-django
a25d49d5629da58683b4ed59eb7316494c007706
941866eafa6bde2bada9ad69ce12aa36ff5a5ae2
refs/heads/master
2022-12-10T11:01:31.067823
2019-11-02T09:37:10
2019-11-02T09:37:10
219,131,697
0
0
null
2022-12-04T18:37:46
2019-11-02T09:29:31
CSS
UTF-8
Python
false
false
1,781
py
import smtplib from email.mime.text import MIMEText content = """啊哈,我来了"""#如果将plain改为html,则可以在这里添加html网址 sender = "2719929303@qq.com"#自己的qq号 recver = """ 794067332@qq.com, 876911388@qq.com, 329844268@qq.com, 1985054961@qq.com, 1502377018@qq.com, 1339566602@qq.com, 15733129082@163.com, 1693580010@qq.com, 1015174363@qq....
[ "1846515672@qq.com" ]
1846515672@qq.com
65b2c4f3dbfcc617bb3578be50327d9b46b23b94
77a79db13c04c035e5f42b136bf37de2bedec52f
/LIB/build/lib/python/discretize.py
118cf036138b2fb594d0743ccbc5e6750f233dda
[ "MIT" ]
permissive
sarthak-chakraborty/CausIL
6e71ea4091c1b5bcf7aff5469926e80fc99282a1
31e2ca0fbf9f2a6e9416020f1c8cb8a6d2371f97
refs/heads/main
2023-07-08T15:35:02.861313
2023-07-03T16:08:59
2023-07-03T16:08:59
597,629,481
8
1
null
2023-02-27T05:32:56
2023-02-05T05:50:42
Python
UTF-8
Python
false
false
10,547
py
# Contributors: Siddharth Jain, Aayush Makharia, Vineet Malik, Sourav Suman, Ayush Chauhan, Gaurav Sinha # Owned by: Adobe Corporation import pandas as pd from feature_engine import discretisers as dsc from sklearn.preprocessing import KBinsDiscretizer import sys # sys.path.append('./libraries/') from libraries.caim_te...
[ "sarthak.chakraborty@gmail.com" ]
sarthak.chakraborty@gmail.com
d2757e0e2e810e0a983f7fd5a8610b771d1ad224
cbb38d66021dcac8277ff34a67f3cf4c7d25d780
/python - 核心编程/第一章 python核心/第十二章 面向对象编程/元类(Metaclass)和__metaclass__.py
d17c8f7d75c518bb4194e1644a04454cee9a955d
[]
no_license
heqiang/PythonCore
64cb0e98fdd01148b1ff3892197f92fcd24cf6be
ff29c5746c86cf0c7853c9ffddfab44731a651c0
refs/heads/master
2022-12-31T06:07:09.609739
2020-10-12T09:01:48
2020-10-12T09:01:48
270,339,685
0
0
null
null
null
null
UTF-8
Python
false
false
2,493
py
from time import ctime from warnings import warn #元类的主要目的就是为了当创建类时能够自动地改变类。 # 拦截类的创建 # 修改类 # 返回修改之后的类 # 关于type # 1 查看对象的类型 # 动态的创建一个类 type(类名, 由父类名称组成的元组(针对继承的情况,可以为空),包含属性的字典(名称和值)) class FatBoy(object): def __init__(self): self.name="hq" # print("Boy") class FatBoss(FatBoy): ceshi=...
[ "1422127065@qq.com" ]
1422127065@qq.com
afed7ea6d061ea4ffba6ac412727824fddf76201
85aee72efca0bfa64ae14b6966e85e24880f2a0d
/setup.py
ed620d174c6f01e6dfca6cd0bbdfba8ffedbcfec
[]
no_license
Kirilliann/binospec
be285f1d9398074d5aa31dcf8db9325d10be0f25
46808832a40b8570207597ac05972331a8873ae3
refs/heads/master
2020-08-23T00:32:27.591238
2019-12-21T07:38:42
2019-12-21T07:38:42
216,507,192
0
0
null
null
null
null
UTF-8
Python
false
false
960
py
from setuptools import setup, find_packages with open('README.md') as fh: long_description = fh.read() setup( name='bino', version='0.0.1', author='Kirill Grishin', author_email='grishin@voxastro.org', description='Zeropoint calculation for MMIRS and Binospec data', long_description=long_d...
[ "grischin.ka15@physics.msu.ru" ]
grischin.ka15@physics.msu.ru
b97c353d15577f892f4c7527f443931cd60f9aa7
80ae9b5cfb45b6e9cf7873ef7c46e17e117e4019
/data/HackerRank-Regex/Positive Lookbehind.py
23e3268d2cc962de0f7fb667cc7ce7748300acd8
[]
no_license
Ritvik19/CodeBook
ef7764d89b790e902ede5802f36d5ca910d8a50e
2b4ed7938bbf156553d6ba5cba6216449528f0fc
refs/heads/master
2021-07-04T08:25:52.478719
2020-08-08T06:54:14
2020-08-08T06:54:14
138,744,302
3
0
null
null
null
null
UTF-8
Python
false
false
180
py
import re Regex_Pattern = r"(?<=[13579])\d" # Do not delete 'r'. Test_String = input() match = re.findall(Regex_Pattern, Test_String) print("Number of matches :", len(match))
[ "rastogiritvik99@gmail.com" ]
rastogiritvik99@gmail.com
b364c2ac4cc2d109f0d1e32eb825597312c92230
052faf8843a3e26d9fab5da737dfd02cb43f5592
/Pacote_Python/Ex_python_CEV/exe034.py
75ef339f8eb1f06795b7fcd0092e4b99b1539012
[]
no_license
Cica013/Exercicios-Python-CursoEmVideo
5c65ca3a8423f338b51ac82c6eab44ec5d2a2e74
d2c711bccae34e6016937e086a9f2d9126a860af
refs/heads/main
2023-04-06T01:46:31.107902
2021-04-22T00:02:53
2021-04-22T00:02:53
360,339,119
0
0
null
null
null
null
UTF-8
Python
false
false
467
py
# Escreva um programa que pergunte o salário de um funcionário e calcule o valor do seu aumento. # Para salários superiores à 1.250,00, calcule um aumento de 10% . Para inferiores ou iguais, o aumento é de 15%. salario = float(input('Digite aqui o salário do funcionário: ')) if salario > 1250: aumento = (salario * ...
[ "61808853+Cica013@users.noreply.github.com" ]
61808853+Cica013@users.noreply.github.com
e6a70c92d641c6ad953c251e533973d27eefbd52
8002e0b1b625c702ba908338721c04432a97ab04
/manage.py
d245bc3ff4a9c412bd18ad817a3278213ea823b6
[]
no_license
IKermani/OPDC-pipeline-flow-DSS
5024920a82d8245fe87b3d8b0dbe960f907a8973
04fbaf20e10d3d3d4738eed77e027225d8bf254a
refs/heads/master
2023-07-02T14:35:29.721947
2021-08-09T16:13:48
2021-08-09T16:13:48
393,700,689
2
0
null
null
null
null
UTF-8
Python
false
false
659
py
#!/usr/bin/env python """Django's command-line utility for administrative tasks.""" import os import sys def main(): """Run administrative tasks.""" os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'DSS.settings') try: from django.core.management import execute_from_command_line except ImportEr...
[ "imankermani@hotmail.com" ]
imankermani@hotmail.com
dd63fdead6db72d7ca934174cabe1223906ffcd3
7da40408c4eb36c7394d7250e939f5be984036bb
/Sandy/bst.py
f3bf61767b00f09de90ed1c0340cbf6b242c1d51
[ "MIT" ]
permissive
sandeepm96/cormen-algos
069a74539878462bb69efd8674f9c9049f4a5e43
9154f6ce9cb0c318bc0d6ecaa13676d080985cec
refs/heads/master
2021-09-15T16:01:58.156177
2018-06-06T05:42:10
2018-06-06T05:42:10
103,383,140
1
0
null
null
null
null
UTF-8
Python
false
false
2,535
py
class node: def __init__(self, key=None): self.parent = None self.key = key self.left = None self.right = None class BSTree: def __init__(self): self.root = node() def insert(self, key): if self.root.key is None: self.root.key = key else:...
[ "sandeep.mahapatra.5@gmail.com" ]
sandeep.mahapatra.5@gmail.com
60394e55fe2e034e42773605b73addddc5a8d395
f0d713996eb095bcdc701f3fab0a8110b8541cbb
/zJSF5EfPe69e9sJAc_24.py
e9113672790b3572ce048bef538b6d686bc24d89
[]
no_license
daniel-reich/turbo-robot
feda6c0523bb83ab8954b6d06302bfec5b16ebdf
a7a25c63097674c0a81675eed7e6b763785f1c41
refs/heads/main
2023-03-26T01:55:14.210264
2021-03-23T16:08:01
2021-03-23T16:08:01
350,773,815
0
0
null
null
null
null
UTF-8
Python
false
false
651
py
""" Create a function that takes a string `txt` and censors any word from a given list `lst`. The text removed must be replaced by the given character `char`. ### Examples censor_string("Today is a Wednesday!", ["Today", "a"], "-") ➞ "----- is - Wednesday!" censor_string("The cow jumped over the moon....
[ "daniel.reich@danielreichs-MacBook-Pro.local" ]
daniel.reich@danielreichs-MacBook-Pro.local
46cf2b151bf321158b142b2a57db9a0be4c9c245
9b2ce98e1fe8ce6b96bfb22cb5a37589301769c8
/Stack/stack implementation using list.py
7dba05c35cfbf3050c393c50b3f38d2b4d6a08e6
[]
no_license
hiranmayee1123/-50-days-data-structures
7126971cfca165361bfec11bb2dbb68b2efe96b9
69a009f9df56f9467b065e38f2355bc975e78fb7
refs/heads/main
2023-03-22T22:04:59.592350
2021-03-09T16:10:27
2021-03-09T16:10:27
332,808,918
5
1
null
null
null
null
UTF-8
Python
false
false
492
py
stack = [] # append() function to push # element in the stack stack.append('a') stack.append('b') stack.append('c') print('Initial stack') print(stack) # pop() fucntion to pop # element from stack in # LIFO order print('\nElements poped from stack:') print(stack.pop()) print(stack.pop()) print(s...
[ "noreply@github.com" ]
hiranmayee1123.noreply@github.com
5e6042cdbeb41a05fb3ed2bae691d2131ec9ba98
d79b228cd97f92db1ae6f4efbf554557298a0669
/main.py
96921d7dd3f6c9f9b6ca1d347d0c5c2a16a3d985
[]
no_license
pulkit-ahujaa/hacker-rank-python-certification-sample-problem
7866838def39ba895137446a4889eaac88f8d6d5
d26f9eaca41b00abb84cfc91523c02fbe4cf392c
refs/heads/master
2022-10-21T13:43:28.628555
2020-06-18T07:15:25
2020-06-18T07:15:25
273,167,795
0
0
null
null
null
null
UTF-8
Python
false
false
196
py
for x in list(range(n)): output = "" if(x % 3 == 0): output += 'Fizz' if(x % 5 == 0): output += 'Buzz' if(output == ""): output += str(x) print(output)
[ "noreply@github.com" ]
pulkit-ahujaa.noreply@github.com
4db2679dfea9ba6124b4c4d0e1f4a0644ee11321
653bf020fabf012bca253cb4d4ca3fb80c7068ab
/Cart1/Cart/Cart/views.py
053b9c11d8b9367d672c0b10cb7f59add82ad6cc
[]
no_license
ravi35767/Cart
f49c61686639f08986d8017420929e758b077d72
8b71d2c29e9dc7f5beb0a6c0455f376d4206630c
refs/heads/master
2020-12-28T11:04:00.156422
2020-02-04T20:59:03
2020-02-04T20:59:03
238,304,867
0
0
null
null
null
null
UTF-8
Python
false
false
106
py
from django.shortcuts import render def index(request): return render(request, 'Cart/cart.html')
[ "noreply@github.com" ]
ravi35767.noreply@github.com
ee895dbe07158ef23f219efc0a92b0c25a5e6c88
ac17bba2af76a55b4888c5804940aa9a219b6f8e
/JokeRecommendationNeurIPS.py
08a5a9395cdc5a331bd67ccfdc6de9024a76a344
[]
no_license
prasanna5raut/SRF_NeurIPS2020
711b4d564cfeeba9b5759c8a3f6e0a28668aac65
9ed089223cdb6995fa1974e7997e57c52d4a2de1
refs/heads/main
2023-01-05T19:25:13.362327
2020-10-22T19:53:48
2020-10-22T19:53:48
306,428,450
2
0
null
null
null
null
UTF-8
Python
false
false
12,397
py
import numpy as np import pandas as pd import matplotlib.pyplot as plt from scipy.optimize import minimize import math ################################ DEFINE Functions and classes ################################ def OLFW(T, eps): """ Online Lagragian Franke-Wolf implementation input: T (Horizon), eps ...
[ "noreply@github.com" ]
prasanna5raut.noreply@github.com
b54f9abb95e8aaaa4b220891479482a498011e59
711761b1b83677dd8d6039e9c1f20bce075fa1ab
/foodie/blog/migrations/0001_initial.py
bedfd15c9ad0dbb522566e7e5d3786c0a7027689
[]
no_license
LocalDevv/django-blog
0e531cf39d4974055ab3d00bdefc55d9e0ce3f48
49543a409731fe00850e8027938a8f24a926f1e0
refs/heads/master
2022-02-01T08:10:55.170705
2019-06-01T11:34:36
2019-06-01T11:34:36
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,395
py
# Generated by Django 2.2.1 on 2019-05-29 15:03 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] ope...
[ "45708379+officialoghene@users.noreply.github.com" ]
45708379+officialoghene@users.noreply.github.com
82ba4b4de155c3ade2f1e62045d2a96ee50d82eb
3f13f6ffa4f98b4cfbc9a64bdc4b452e16ad6098
/Xception.py
9f5155159a3bc4c510790066ac76beec460fec44
[]
no_license
c964309085/keras_applications
298a67d6e6d60a5a08b209def771ebe709c5fe93
a76e9d33707ea7091f251dffeb5be508b868ca3d
refs/heads/master
2022-12-17T08:00:03.222950
2020-09-28T22:21:12
2020-09-28T22:21:12
299,357,090
2
0
null
null
null
null
UTF-8
Python
false
false
13,412
py
# Copyright 2016 The TensorFlow Authors. 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...
[ "noreply@github.com" ]
c964309085.noreply@github.com
b383fccab7ab2ceb965b3fa18a2dc8b17bf173ef
87829066b8152bb71450827b1d0bafe0cda3efc8
/collective/googleplus/interfaces/googlepluslayerlayer.py
70d3f46a983dfaeca00365474490523f53ab9ee4
[]
no_license
toutpt/collective.googleplus
fb7c53133bfb47d90dea202f8ae3207ac44a9409
fd8aa1ad11ecb08d8f056fd77c168067da0ea589
refs/heads/master
2021-01-25T08:49:05.841177
2011-10-21T08:33:45
2011-10-21T08:33:45
2,619,033
0
0
null
null
null
null
UTF-8
Python
false
false
203
py
from zope.interface import Interface # -*- Additional Imports Here -*- class IGooglePlusLayer(Interface): """ A layer specific to this product. Is registered using browserlayer.xml """
[ "toutpt@gmail.com" ]
toutpt@gmail.com
9b988be306bff1c995b75c4e2260d7650b7d77eb
3364a394529f7e6e176914457823e23c8fd763da
/api_test.py
b5ca67ad4d2215b05d0d2eab5df8e2b224b3123e
[]
no_license
wangzj-wzj/Pipeline_obj_detection
344d0adcba88aae716a8ef4ce471b89462e55be1
bedfe37bff64b24feec6c75ab551fd4be9ff71db
refs/heads/main
2023-05-07T12:25:26.181417
2021-05-24T03:06:19
2021-05-24T03:06:19
370,206,468
0
0
null
null
null
null
UTF-8
Python
false
false
931
py
import flask, json from flask import request import retinanet.predict ''' flask: web框架,通过flask提供的装饰器@server.route()将普通函数转换为服务 登录接口,需要传url、username、passwd ''' # 创建一个服务,把当前这个python文件当做一个服务 server = flask.Flask(__name__) # server.config['JSON_AS_ASCII'] = False # @server.route()可以将普通函数转变为服务 登录接口的路径、请求方式 @server.route('/...
[ "noreply@github.com" ]
wangzj-wzj.noreply@github.com
5088979a6d1f6005908b26499cf407e91c77f10d
06c716e3c044159f117b4fdd0f1a96ee0eb97045
/src/leet/Wildcard Matching.py
50dfaf7bfcb5188bdc1e5931b3fc6b23633cd6f1
[]
no_license
sevenseablue/leetcode
9c3c41d4b02713afc32f13e7baf3bee007583d0f
2a29426be1d690b6f90bc45b437900deee46d832
refs/heads/master
2020-05-27T19:08:32.709254
2018-10-22T05:06:15
2018-10-22T05:06:15
23,282,399
0
0
null
null
null
null
UTF-8
Python
false
false
3,897
py
# -*- coding: utf-8 -*- """ __author__ = 'wangdawei' __time__ = '18-1-13 上午8:34' """ class Solution_dp: def isMatch(self, s, p): """ :type s: str :type p: str :rtype: bool """ memo = {} def dp(i, j): if (i, j) not in memo: # print...
[ "sevenseablue@gmail.com" ]
sevenseablue@gmail.com
39d9721ee7b9442a04d1995e89ae4cd4309afd24
b0ce88d2168e76086f537cf440d0b55de5171c05
/service/db/models/greetings.py
00d528355fce3b7a7b5d66b3cacf7e0e4e8c06e7
[ "MIT" ]
permissive
alixedi/python-service-template
75cfde5b09c85d730b8bcc374b54c65f0eafbe80
0b3ae27a7b7d11ce80b8f5193b360f27f09334e8
refs/heads/master
2020-04-13T19:42:12.282588
2019-01-12T23:50:09
2019-01-12T23:50:09
163,410,488
1
0
null
null
null
null
UTF-8
Python
false
false
1,264
py
from sqlalchemy import Column, Integer, String from service.db.models import Base class User(Base): __tablename__ = 'users' id = Column(Integer, primary_key=True) hello = Column(String(100)) name = Column(String(100)) def __init__(self, hello=None, name=None): """ By all means override...
[ "alixedi@gmail.com" ]
alixedi@gmail.com
b2d5cde1f50f5d1b45f3c0215213b71949c690c7
afc8d5a9b1c2dd476ea59a7211b455732806fdfd
/Configurations/VBSjjlnu/Full2018v6s5/conf_wbindeta/plot_postfit.py
5cb2d299a7f604ea098d5ad1b1439eed5d2c29c3
[]
no_license
latinos/PlotsConfigurations
6d88a5ad828dde4a7f45c68765081ed182fcda21
02417839021e2112e740607b0fb78e09b58c930f
refs/heads/master
2023-08-18T20:39:31.954943
2023-08-18T09:23:34
2023-08-18T09:23:34
39,819,875
10
63
null
2023-08-10T14:08:04
2015-07-28T07:36:50
Python
UTF-8
Python
false
false
5,003
py
# plot configuration from ROOT import TColor # groupPlot = {} # # Groups of samples to improve the plots. # If not defined, normal plots is used colors = { # https://root.cern.ch/doc/master/classTColor.html#C02 'kWhite' : 0, 'kBlack' : 1, 'kGray' : 920, 'kRed' : 632, 'kGreen' : ...
[ "davide.valsecchi@cern.ch" ]
davide.valsecchi@cern.ch
f64d93bbff877b12f837b3df1091f51081a263e3
6fb6c9e0795ebf8dd3a976a95752f8f16f2c0036
/Decision and Flow Control.py
34991a5cda6fffc69432f63c0ba6b88509318329
[]
no_license
RajatOberoi/Decision-control-and-loops
f066a281cd7fe241f398ee22b6fa4b2dc26590a0
e6d7682288514c1131d788335dd073dca1bbd67c
refs/heads/master
2020-03-27T00:10:07.728359
2018-08-21T17:59:57
2018-08-21T17:59:57
145,600,408
0
0
null
null
null
null
UTF-8
Python
false
false
3,490
py
#Ques1 x=int(input("enter any year")) if x%400==0: print("leap year",x) elif x%100==0: print("not a leap year",x) elif x%4==0: print("leap year",x) else: print("not a leap year") #Ques2 a=int(input("enter length")) b=int(input("enter breadth")) if a==b: print("dimensions are of squar...
[ "noreply@github.com" ]
RajatOberoi.noreply@github.com
acb8b42f4644ad80964e2c74884fec5737905aa5
2f635f5eee1c01b66a08c8b532d26f5f657159eb
/lib7z.py
642fcbc814629be121a308e121e480ffc8b6af69
[]
no_license
supplient/ComicExtracter
e7c4df25b8d5ce54b7b94a42a192e7307da645d8
c37ed3e93f01cb811f9a458e541faddbcbba6beb
refs/heads/master
2022-11-08T01:45:21.242812
2020-06-21T08:25:55
2020-06-21T08:25:55
268,029,082
0
0
null
null
null
null
UTF-8
Python
false
false
965
py
import subprocess def extract(path, dest_dir, pwd): args = ["7z.exe", "x", path, "-p"+pwd, "-o"+dest_dir] p = subprocess.Popen( args, stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE, ) stdout, stderr = p.communicate("S".encode("...
[ "437566830@qq.com" ]
437566830@qq.com
f084847e39dc4e454e7424936757f85acbfde69a
4f6f675fbe3c84e56de0d45b498e0d828bb5927b
/face_morph/triangulation.py
8b9b65c0a0c2ab83e3346ad97718e6c0525d91e9
[]
no_license
kevinkinking/face_morph
909bd7b1a4b73aa05662ae94fb5dc1c4afa47665
4c4d07bc15d58ee3631bf4086c5210728c10548b
refs/heads/master
2020-03-18T11:40:21.988136
2018-05-25T07:28:29
2018-05-25T07:28:29
134,685,101
0
0
null
null
null
null
UTF-8
Python
false
false
5,146
py
import cv2 import numpy as np FACE_POINTS = list(range(0, 68)) JAW_POINTS = list(range(0, 17)) LEFT_EYE_POINTS = list(range(36, 42)) LEFT_BROW_POINTS = list(range(17, 22)) MOUTH_POINTS = list(range(48,68)) NOSE_POINTS = list(range(27,36)) RIGHT_EYE_POINTS = list(range(42,48)) RIGHT_BROW_POINTS = list(range(22,27)) LE...
[ "kevin.works@qq.com" ]
kevin.works@qq.com
25b3360e42ef54932355d67e8eab36a968f5d8f0
6d9fb9a2e0890df7f79a7d2190a7e61d2f06340e
/AX.py
2b04a3e0ba4394828a0d0b48579f9bb4b6d37194
[]
no_license
d-roma/pae_sim
21f4de7496de7f7ef3b438ee0e35af3d036b2ba1
7b1ed71fb2d93cd7b93309b3ec69df61272ff97c
refs/heads/main
2023-03-19T01:27:24.828907
2021-03-18T16:15:15
2021-03-18T16:15:15
346,449,008
0
0
null
null
null
null
UTF-8
Python
false
false
4,627
py
# !/usr/bin/python3 # -*- coding: utf-8 -*- """ AX12 emulator """ from enum import Enum from collections import OrderedDict class AX_instruction(Enum): IDLE = 0x00 PING = 0x01 READ = 0x02 WRITE = 0x03 REG_WRITE = 0x04 ACTION = 0x05 RESET = 0x06 SYNC_WRITE = 0x83 END = 0xFF class ...
[ "roma@ieec.cat" ]
roma@ieec.cat
80a914b5a51c11c1fe0423656c0e64de497a65e0
eecf60acbadd375a1b65b7c69af5bc609ac0dfa6
/extract.py
25eadddc36fa4e8a76f90d5d90565ad83454fbb9
[]
no_license
zZhouzhiYing/MyObjectDetection
7ded6c1986d5f2ae4e84f5094792526d07fb5c45
01ee79202e79d795316dd8112ca18f796b5c1f17
refs/heads/master
2023-02-20T16:36:43.257141
2021-01-19T09:03:29
2021-01-19T09:03:29
327,833,538
0
0
null
null
null
null
UTF-8
Python
false
false
3,050
py
import cv2 import numpy as np import torch from torch.autograd import Variable from torchvision import models import torchvision.transforms as transforms def preprocess_image(cv2im, resize_im=True): """ Processes image for CNNs Args: PIL_img (PIL_img): Image to process resize_im (bool)...
[ "zzyzhouzhiying@outlook.com" ]
zzyzhouzhiying@outlook.com
f010fa48df7b2cb3eb4b31a07514690f9eca0a5a
0d9c8d1c28f84ed29512f331548595b947b3376f
/dev/views.py
733f49ccd0f63521c2863e2c641de84eb19193fa
[ "MIT" ]
permissive
Gerard-007/musicalpacks
88c2c4dc19201bc2633f96663e1ab2d441f63afc
ef12c7281b395268ac53247fd34c3499f7a0569a
refs/heads/master
2022-12-14T14:42:01.458533
2019-06-15T21:06:04
2019-06-15T21:06:04
181,792,220
0
0
MIT
2022-12-08T02:48:41
2019-04-17T01:12:31
CSS
UTF-8
Python
false
false
133
py
from django.http import HttpResponse from django.shortcuts import render def home(request): return render(request, 'home.html')
[ "Danchuksm@gmail.com" ]
Danchuksm@gmail.com
3a2b6efff4a7164d8281dce499ebf522a7a6164b
2df0b1b7160cd58f02190b86ae245f2f5a9d2232
/svm/dataset.py
bbaf14a03498e226d98ef6b9a4b5d7183cc3d56f
[ "Apache-2.0" ]
permissive
gareth1brown/hainesfork
1e3085f65494bc80b0516862555b1e333d81b11d
bcddc22c2a97050d8e7a07021097388d447cf914
refs/heads/master
2021-01-21T00:16:24.943605
2013-10-06T22:39:12
2013-10-06T22:39:12
13,342,607
1
0
null
null
null
null
UTF-8
Python
false
false
4,362
py
# -*- coding: utf-8 -*- # Copyright 2010 Tom SF Haines # 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 agre...
[ "gareth1.brown@googlemail.com" ]
gareth1.brown@googlemail.com
69e814af9a82875996e817500b77e867a121fbbe
ba580e5d29352f60ad02b271c121e24109b08229
/spconv/pytorch/quantization/intrinsic/quantized/__init__.py
00a9c9d79c8d54c814c44d7ce7b5bcbafc2800ad
[ "Apache-2.0" ]
permissive
traveller59/spconv
2fde12075d80b7965b0196e32e7f0585fe0f1392
125a194d895b1bc3ad6ff907bc72641548397b32
refs/heads/master
2023-09-01T15:48:18.443364
2023-04-19T14:58:31
2023-04-19T14:58:31
166,499,614
1,499
382
Apache-2.0
2023-08-28T08:17:32
2019-01-19T02:57:09
Python
UTF-8
Python
false
false
600
py
# Copyright 2022 Yan Yan # # 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, s...
[ "yanyan.sub@outlook.com" ]
yanyan.sub@outlook.com
fdb7273a878ad878f05d2831e74b42e5a755b245
1ad3234576f549f1fbebf3db26b34dfbef46e8e1
/run_seq2seq.py
c23700e4d4c85e8322bb94d8f73028c81415ad39
[ "MIT" ]
permissive
siyuzhou/GNN
9a55b1c8bf29a191483482831cbd01ac4ae4b307
9254a811851c067c1f123e45f52a713090c9ad5d
refs/heads/master
2020-03-09T09:36:04.692059
2019-09-23T18:38:45
2019-09-23T18:38:45
128,716,477
0
1
null
null
null
null
UTF-8
Python
false
false
8,656
py
import os import argparse import json import tensorflow as tf import numpy as np import gnn from gnn.modules import mlp_layers from gnn.data import load_data def seq2seq(time_segs, params, pred_steps, training=False): # timeseries shape [num_sims, time_seq_len, num_agents, ndims] num_segs, time_seg_len, num...
[ "szhou@cradle.dhcp.asu.edu" ]
szhou@cradle.dhcp.asu.edu
20c8ad99c8919ac3a6c8acd8e41a0cf8cd13242f
52317902597ea3e2ae7fcb18ec4f1404f4925bde
/Code/C7_2_twoSample.py
0ce31f0784767d41fa86563d3e8a8d8db8033785
[]
no_license
akansal1/statsintro_python
3cb7a1a3878a59c0552f3d3ad3f2e83fc36b3203
0660a0fffcfac11abfe7e6e8c19f1ba0c25e0d36
refs/heads/master
2021-01-22T00:59:23.195619
2015-08-12T12:12:44
2015-08-12T12:12:44
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,377
py
''' Comparison of two groups - Analysis of paired data - Analysis of unpaired data ''' # author: Thomas Haslwanter, date: July-2013 # Import standard packages import numpy as np import matplotlib.pyplot as plt import scipy.stats as stats # additional packages from C2_8_getdata import getData def paired_data(): ...
[ "thomas.haslwanter@alumni.ethz.ch" ]
thomas.haslwanter@alumni.ethz.ch
a46b63796813396cf5f27b0c2a94d8e2a901303f
b466a62a6b8151937212688c09b3a5704eaa7466
/Polymorphism and Abstraction - Exercise/Account.py
961264831a48307859fb29848be71048b5c377c3
[ "MIT" ]
permissive
DiyanKalaydzhiev23/OOP---Python
89efa1a08056375496278dac3af97e10876f7728
7ac424d5fb08a6bd28dc36593e45d949b3ac0cd0
refs/heads/main
2023-07-08T08:23:05.148293
2021-08-13T12:09:12
2021-08-13T12:09:12
383,723,287
2
0
null
null
null
null
UTF-8
Python
false
false
2,158
py
class Account: def __init__(self, owner, amount=0): self.owner = owner self.amount = amount self._transactions = [] def add_transaction(self, amount): if not isinstance(amount, int): raise ValueError("please use int for amount") self._transactions.append(amo...
[ "diankostadenov@gmail.com" ]
diankostadenov@gmail.com
efa63bf4d2e5243df5f84326198b1985a4e77a50
79a8789ce32ffc204e1a427f9a67102e70d90705
/utils/data.py
e53e8252225aed2027ed9fb00538e61b00c799d1
[]
no_license
jhunufernandes/kabum-flask
d4f21ef01e1ba59f7f69acd1b92a6219789d5cf1
f78046018d2f769405f05280b3a712459060774a
refs/heads/master
2022-12-22T05:14:01.372455
2020-09-24T10:08:59
2020-09-24T10:08:59
null
0
0
null
null
null
null
UTF-8
Python
false
false
523
py
import datetime import json import requests from flask import jsonify products = [ '85197', '79936', '87400' ] list_products = [] for p in products: r = requests.get( f'https://servicespub.prod.api.aws.grupokabum.com.br/descricao/v1/descricao/produto/{p}') product = json.loads(r.content)...
[ "root@impulcetto.localdomain" ]
root@impulcetto.localdomain
5b62c5a0e9de5abd365e6aa5db2e30b54f706c5c
6071739a1892d590e1c644a562f1a5eaf2e977a0
/build.py
61ad2daaa901f3ab9247aebb7cca6510d9c9aad2
[]
no_license
exit99/uni_rankings
b744edafc4da98845ea2521ea0a04cac61fd915a
41d88e92f794a06209b178b1fdc7cbaf8bb10f3e
refs/heads/master
2021-06-17T10:45:47.794385
2017-05-01T20:57:01
2017-05-01T20:57:01
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,484
py
import csv import json import ntpath import os import re import xlrd from cubes import Workspace from helper import create_table_from_csv from sqlalchemy import create_engine def build(db): datadir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "data") files = [os.path.join("data", f) for f in os...
[ "kazanski.zachary@gmail.com" ]
kazanski.zachary@gmail.com
2415ec820147927b2e048a770112efeec19fe1a3
59ee0e3756f574cb8f08fc0b99d3ac4d463f1af4
/mqttPahoTest.py
900bd2f8061004240822791f712a00c9ed24c6dc
[]
no_license
anyfini/MQTT-Test
47d6f3915cd41ae20cb036fba130d487f492294e
6d4a79ce5a56b41a40a1e9c3b8f5829ed34ce82c
refs/heads/main
2023-07-18T09:08:33.331261
2021-08-20T09:01:32
2021-08-20T09:01:32
387,198,176
0
0
null
null
null
null
UTF-8
Python
false
false
1,477
py
import paho.mqtt.client as mqtt import time def on_log(client, userdata, level, buf): print("log: " + buf) def on_connect(client, userdata, flags, rc): if rc == 0: print("connected OK") else: print("Bad connection Returned code =", rc) def on_disconnect(client, userdata, rc): if rc !=...
[ "38047116+anyfini@users.noreply.github.com" ]
38047116+anyfini@users.noreply.github.com
429c3366e4476dfc70f52fc6a8d63ee4d525913a
36349866405d0567f5ce1c73c7350d77807b5a31
/dp_primitive_calculator.py
4af550a27693576863bb0b6f56b76b0a3123a50c
[]
no_license
kajarenc/stepicAlgo2015
6397e43e145e7631711be583bc27a7d0d9a2c937
502b397387be303f666cd08c0028887b92a00880
refs/heads/master
2021-01-10T09:37:37.900645
2015-12-09T00:34:08
2015-12-09T00:34:08
45,359,382
0
0
null
null
null
null
UTF-8
Python
false
false
586
py
n = int(input()) dp = [0, 0] for i in range(2, n + 1): doubling = 100000000 trebling = 100000000 if i % 2 == 0: doubling = dp[i // 2] if i % 3 == 0: trebling = dp[i // 3] increment = dp[i - 1] dp.append(min(increment, doubling, trebling) + 1) print(dp[-1]) res = [] j = n while j ...
[ "kajarenc@gmail.com" ]
kajarenc@gmail.com