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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
eddc44cc0f93e2816fbaba52cbd57eaa11038425 | 7d1fe1979bccfbe78308c047d40cb50fe87e6fdf | /Data Structure and Algorithms/iterunpack.py | 5d4594b86a7d8e371d1b1ce89fb8597f184a0452 | [] | no_license | hbenr/pycookbook | ddd13ae13be94438efd20cf4376fe9fbde1da095 | 52e313eaa7b0d28f1accd7794aa323ab62647b9c | refs/heads/master | 2021-08-06T06:41:10.553534 | 2017-11-03T21:59:42 | 2017-11-03T21:59:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 576 | py | #! python3
from statistics import mean
# Use star to unpack multiple variables
def drop_first_last(grades):
_, *middle, _ = grades
print(middle)
return mean(middle)
# Specially useful with tagged tuples
def do_foo(x, y):
print('foo', x, y)
def do_bar(s):
print('bar', s)
def unpack_tagged(reco... | [
"homero.hbr@gmail.com"
] | homero.hbr@gmail.com |
a86128cb30226105923c6e41dc98e7d5f5e37ed2 | 674649dc02390c4a60b9c62b586b81d405969047 | /train_SGD.py | c4c73831851732e09a5eaf08ae3159dec8a7c794 | [] | no_license | weijiawu/Pytorch_Classification | 709513be3e019a896ef11a1739829a97bb99c9db | 7609a1d809590c1423f4ed0ee1f0d918954355a9 | refs/heads/master | 2022-12-06T00:51:26.716590 | 2020-09-01T07:38:22 | 2020-09-01T07:38:22 | 285,811,133 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,664 | py | import torch
from torch.utils import data
from torch import nn
from torch.optim import lr_scheduler
import os
import time
from tqdm import tqdm
import numpy as np
from PIL import Image, ImageDraw
import argparse
import os
import random
import torch.backends.cudnn as cudnn
from datasets.dataloader import Dateloader
from... | [
"wwj123@zju.edu.cn"
] | wwj123@zju.edu.cn |
2c654c66171126629e07bb09e90b3eaa77e578e5 | f7fa5c6da8cbde648a15ae13376d2e49f778b191 | /hintgen/display.py | 2cc5b881b7d94107f7183f286903b456edf0f2b6 | [
"MIT"
] | permissive | akonoroshi/ITAP-django | 05bee4a26ed65f3a6ba2e7cb0cb692c9af52081d | 17d690e0f4c3bbc6bb73406bcaedb673225d34e8 | refs/heads/master | 2020-12-14T01:54:31.811692 | 2020-01-29T15:08:56 | 2020-01-29T15:08:56 | 234,598,240 | 1 | 0 | MIT | 2020-01-17T17:15:39 | 2020-01-17T17:15:38 | null | UTF-8 | Python | false | false | 20,993 | py | import ast
from .tools import log
#===============================================================================
# These functions are used for displaying ASTs. printAst displays the tree,
# while printFunction displays the syntax
#===============================================================================
# TO... | [
"krivers@andrew.cmu.edu"
] | krivers@andrew.cmu.edu |
06d3ca1ff65101808264d7e631adce978fdf8578 | 4ca3a3958f19650e5861f748727cb55cdedb8841 | /hnAnalysis/analyzeUnigrams.py | d22fd39b1a74399280d4b1d84cd36f150dfa67c7 | [] | no_license | mhwalker/Projects | 6dad8c53f82713d6e1d71e3c704363a60efa7950 | fa4c66ea701b4f966e2ed561c76a286678fc1de4 | refs/heads/master | 2021-01-10T06:33:12.420141 | 2016-03-22T21:07:45 | 2016-03-22T21:07:45 | 54,507,519 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 336 | py | import simplejson as json
import operator
unifile = open("skimunigrams.json","r")
unigrams = json.load(unifile)
unifile.close()
sortedunigrams = sorted(unigrams.iteritems(), key = operator.itemgetter(1),reverse=True)
i = 0
while True:
print i,sortedunigrams[i][0],sortedunigrams[i][1]
i += 1
if sortedunigrams[i][1... | [
"matthewwalker@cdopscam003.fnal.gov"
] | matthewwalker@cdopscam003.fnal.gov |
45aa22217986347a95b741afab8a15d7af4413fe | b552dd6049a73608bac2a30248a75cf96fc270ce | /Zajecia_1/Zadanie_Domowe/sec2/zad6.py | 30eca64d43d34d48c6d61fe2e5bb2e0602a618d1 | [] | no_license | marakon/zajecia_python | 54ac1f516dd4acf0bc12f9e3ad72af1ff7287e76 | 7cf01383f0faad9f2c08f77627a9817fe9db25d2 | refs/heads/master | 2020-05-19T21:40:44.381507 | 2019-06-10T16:59:59 | 2019-06-10T16:59:59 | 185,230,982 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,308 | py | # Zadanie 6
# Zarówno lodówka, jak i winda mają wysokość, szerokość i głębokość.
# Dowiedz się, ile miejsca pozostało w windzie, gdy lodówka jest w środku.
# Załóżmy, że wymiary lodówki zawsze będą mniejsze niż windy ( jest to prawdopodobne?)
# Wejście i wyjście powinny być zrozumiałe dla użytkownika.
print("----------... | [
"mateuszosinski96@gmail.com"
] | mateuszosinski96@gmail.com |
fd5b3ff54c12e5557de206770406abd6edc0f7b5 | 81d82c13d53744f04ed1afe1fc1a7536950d34c5 | /03.Loops/while_demo.py | 6201fb230f621a972bb7eb67a5eb65ac63ecdd60 | [] | no_license | giridhersadineni/pythonsrec | 991950880dc262eecd39d533ddbd978d37780301 | 87b843a4d8a5beac4292a58c3f373f8b590a598c | refs/heads/master | 2021-12-22T04:33:22.153763 | 2021-12-08T03:06:26 | 2021-12-08T03:06:26 | 199,015,630 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 631 | py | # i=1 # initialization
# while(i<=100):
# print(i)
# i = i + 1
# else:
# print(i)
# print("Loop has ended")
name = "PYTHON"
i=0
while (i<6):
print(name[i])
i = i + 1
for character in "Python":
print(character)
for n in [1,1,435,6,5464,576,76,76,8,"Hello"]:
print(n,end="\n")
fo... | [
"giridher@hotmail.com"
] | giridher@hotmail.com |
192b0eb6591ffc8f5d377fb8b523bb5cae674a98 | 344055834858dbea4a745d5855a20b669f50b808 | /setup.py | 1823587d41de7eb5b3cf2d35d4c9ff69d081289d | [] | no_license | wd5/psh | d1fd4b4a520080626d91c9311b2d5c8a43f66535 | 33df4636dcbdb66121454214f3d684b3021e3a1e | refs/heads/master | 2021-01-16T20:06:10.882649 | 2012-12-21T08:09:55 | 2012-12-21T08:39:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,096 | py | """psh installation script."""
from __future__ import unicode_literals
from setuptools import find_packages, setup
from setuptools.command.test import test as Test
class PyTest(Test):
def finalize_options(self):
Test.finalize_options(self)
self.test_args = [ "tests" ]
self.test_suite = T... | [
"konishchev@gmail.com"
] | konishchev@gmail.com |
06bb3fc516d29ae2feb46b1894c9dc30af3fdd6b | d5215cc7c775734b1edb4dbcece77ce766866892 | /venv/bin/pip2 | 1c7d225bcdb9d1183377bb4c7031eba8c2f3905c | [] | no_license | victorevector/FischerRandom-Web | c01e4e71eca4afabb1f0a2a5b07590b046246cec | 6d72c635b529417ccbc98bbc4d338b081c0d8df0 | refs/heads/master | 2020-12-24T13:36:58.511008 | 2015-03-10T19:07:50 | 2015-03-10T19:07:50 | 31,973,724 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 264 | #!/Users/victorestebanfimbres/django_workspace/fischer_random/venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from pip import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"victorevector@gmail.com"
] | victorevector@gmail.com | |
72926195d8325cb4e33079fffa1f2b92619e47ba | bfc1b107b2ce8c664b17be7d96b93bf69aaa8665 | /lab_03_zadania/1.py | c54d527df02fc52a4eae08211442ca223127a8c4 | [] | no_license | bulwan/wizualizacja_danych | db16c97da765646a71a8a794030f8014022cbc19 | e305914105f42d22d42deb4e10a09b181534254f | refs/heads/main | 2023-05-01T07:16:23.954859 | 2021-05-26T11:59:18 | 2021-05-26T11:59:18 | 346,389,677 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 124 | py | A=[1/x for x in range(1, 11)]
B=[2 ** i for i in range(10)]
C=[x for x in B if x % 4 == 0]
print(A)
print(B)
print(C) | [
"noreply@github.com"
] | bulwan.noreply@github.com |
443156317a05eae0013f4af0a70968cd51185b81 | ef187d259d33e97c7b9ed07dfbf065cec3e41f59 | /work/atcoder/arc/arc062/D/answers/30340_oyodr.py | 109239b4bbde5980a01c2c90b87d791e6776af19 | [] | no_license | kjnh10/pcw | 847f7295ea3174490485ffe14ce4cdea0931c032 | 8f677701bce15517fb9362cc5b596644da62dca8 | refs/heads/master | 2020-03-18T09:54:23.442772 | 2018-07-19T00:26:09 | 2018-07-19T00:26:09 | 134,586,379 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 72 | py | S = input()
n_p = S.count("p")
N = len(S)
ans = N // 2 - n_p
print(ans)
| [
"kojinho10@gmail.com"
] | kojinho10@gmail.com |
868fb2901002bfd62248db1dfa59b55c9b15e74e | 8dd834ec83f1d2b1e2517514892529b8c07a9765 | /Django_platfrom/Django_platfrom/urls.py | d685ce50dcfa1232c1734448c0a57865c7696a5c | [] | no_license | LucarYang/python | f48d33a628cd02a21b1994a85b8c747d622e157d | 2afee28ceff1e1304ef7e3a5fdd4a5ea412ce912 | refs/heads/master | 2020-04-28T08:14:09.235680 | 2019-11-06T08:40:55 | 2019-11-06T08:40:55 | 175,119,420 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,293 | py | """Django_platfrom URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.1/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Cla... | [
"v.yanglu@shandagames.com"
] | v.yanglu@shandagames.com |
b9b504067996746019a5981337cfef30eb7882d5 | 5e37047149caaf5bf4543d2f6eb8ceca65ee12b2 | /Hijacked/Dico_msg_Carla.py | d4e4b1a11f239123256eaef8754d3adbf1ec0abd | [] | no_license | ilyes-annou/Hijacked | 8946f693d64964731c605955a207f9008e9d5fc3 | 7aabe4ff3b804376a9f841ff03878688b95ac847 | refs/heads/master | 2021-05-21T02:49:44.328130 | 2020-04-14T15:22:09 | 2020-04-14T15:22:09 | 252,508,647 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,006 | py | msg={"1": "C'est qui?", "2": "euuuh on s'est rencontres ou?", "3": "hmmm ca me dit rien mais tu as peut etre raison",
"4": "C'est rare de passer un bon moment avec moi haha", "5": "Beaugosse dis donc :)", "6": "HIHI", "7": "Non j'suis timide",
"8": "Je prefere qu'on apprenne a se connaitre.", "9": "bah je v... | [
"noreply@github.com"
] | ilyes-annou.noreply@github.com |
eae3bce8fa4c9de33cdba89c8eae2bff45361d49 | 8c367be1487120323533089f40a8a8884aa3e158 | /architectures/eval.py | 9addc03f794792b9e35cd4a9ee3f878714c53031 | [
"Apache-2.0"
] | permissive | readerbench/IRVIN | eeade83f57eae6d512f8e98b2c1e04812695af35 | de894da6b694699f0aa8d67967aab184dbd3e4df | refs/heads/main | 2023-07-10T11:24:14.742369 | 2021-08-20T08:21:18 | 2021-08-20T08:21:18 | 396,875,923 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,332 | py | import numpy as np
from sklearn.metrics import confusion_matrix
#File used to store function to measure performances and other features from results.
class Performance:
def precision(self, ypred, ytrue):#real pos/estim pos : 1-->everytime we estimate pos, it's pos
return np.sum(ytrue*ypred)/np.sum(y... | [
"pierre.frode_de_la_foret@mines-paristech.fr"
] | pierre.frode_de_la_foret@mines-paristech.fr |
df65af6fc345dcd9f0bacda3172e5a0908b0a872 | d6d9bc2a898bcd0dc4af44b6f432196e4358d8b7 | /python/hw02/hw02.py | 5464b221a1be2dd8d354075b6ac3825afca35f08 | [] | no_license | z80/hw | 2e287c2f835cd055f5ef531bdb094e50dd5f4bee | 1d368078372ebce445077d66792852d0864ca3c9 | refs/heads/master | 2021-01-10T19:37:14.697887 | 2015-08-02T08:59:52 | 2015-08-02T08:59:52 | 13,366,888 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,039 | py | #!/usr/bin/env python
import sys
import math
import random
import os
import flip_coins
if len(sys.argv) < 2:
print "3\nNumber of Tests\t100000\nNumber of Coins\t1000\nFlip\t10"
sys.exit(0)
#This function is a stub for your code for the coin flipping simulation, here it just returns three random values for v_... | [
"bashkirov.sergey@gmail.com"
] | bashkirov.sergey@gmail.com |
4ec77dda1f863652b8ede97e01fa33e69f3b479b | 5fc09fdf075e8384fd85b0001f232d2ea384340f | /source/Planet.py | c543a2dfd0ce47c8f42f16b5f6ac86c7baf769ef | [] | no_license | karlmitterhauser/spacesim | c9e11edcacf7061f060fa73ae2795a646e2bbc19 | 11e31ce4d7f750db4b34b4b1ffee2dec6c7dc414 | refs/heads/master | 2020-03-14T02:16:17.310841 | 2018-06-11T09:15:40 | 2018-06-11T09:15:40 | 131,395,910 | 0 | 1 | null | 2018-05-19T10:17:32 | 2018-04-28T09:38:09 | Python | UTF-8 | Python | false | false | 771 | py | '''
This is a abstract planet class.
Created on 28 Apr 2018
@author: Klaus
'''
from abc import ABC, abstractmethod
import string
import random
class Planet(ABC):
'''
There are 3 types of planets agricultur, industry and hightech
Depending on the planet types the wares have different prices
'''
de... | [
"tusch.klaus@gmail.com"
] | tusch.klaus@gmail.com |
09c72bef322c2d0a17dd270c10a22db10b174c02 | 46ed67158fcef1b37e76339de40219e7b466f98b | /t5.py | 5be6e1a1fc02eab700a00c0fcbbbad9cfabe1046 | [] | no_license | RuningBird/TensorFlow | dd0c37796efa2a0690a2ac4c63d0c26f9d725a89 | c67b192b69982ac272f4bc6f541c7918e9ba6773 | refs/heads/master | 2021-01-22T03:45:08.807663 | 2017-06-08T11:23:20 | 2017-06-08T11:23:20 | 92,401,899 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 80 | py | import tensorflow as tf
#############--------激活函数---------#############
| [
"ipowerink@outlook.com"
] | ipowerink@outlook.com |
a1865ec63daf117e572dec767df1368a078c8ae2 | 640c9480d8d9ec42ef76c5df6c29734a066edd2c | /network96.py | 9c49a4fcc9d329c14c442ea2988f06dca5fb1338 | [
"MIT"
] | permissive | nuonuoyaya/DCGAN | 28a8a53c903e8ff826ce37a1085f4b4ac8e9e6b4 | 0219db97ddf966d7a638e1be6b71bcf96fada10d | refs/heads/master | 2023-03-27T11:54:00.085204 | 2021-03-25T05:01:29 | 2021-03-25T05:01:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,366 | py | import tensorflow as tf
# 超参数(包括训练的轮数,学习率等,可以根据需要进行更改)
EPOCHS = 100
BATCH_SIZE = 128
LEARNING_RATE = 0.0002
BETA_1 = 0.5
# 根据图集的图片尺寸可以调整网络结构,但是图片不要太大,否则会造成训练时间过长。
# 定义判别器模型
def discriminator_model():
model = tf.keras.Sequential()
model.add(tf.keras.layers.Conv2D(
filters=64, # ... | [
"noreply@github.com"
] | nuonuoyaya.noreply@github.com |
0170bb41ca084d2527f7b9c2b97652ee4c794c72 | 0e1b1f5e2893070ebdcb5eb15b07b89b0f31f471 | /submodules/seqan/util/py_lib/seqan/dox/sig_parser.py | 8ba87455ea0259b6f9b67f3da6939a903f68f617 | [
"MIT",
"BSD-3-Clause"
] | permissive | sheffield-bioinformatics-core/STRique | 1a4a3e59e0ac66174ed5c9a4498d6d8bed40b54d | fd2df916847727b3484b2bbad839814043d7dbea | refs/heads/master | 2022-12-27T22:28:31.893074 | 2020-09-29T14:31:45 | 2020-09-29T14:31:45 | 296,618,760 | 0 | 0 | MIT | 2020-09-18T12:45:30 | 2020-09-18T12:45:29 | null | UTF-8 | Python | false | false | 12,109 | py | #!/usr/bin/env python2
"""Parser for the signature supported by the SeqAn Doxygen-style documentation.
"""
# TODO(holtgrew): The parser has become quite complex. Maybe using some external library for parsing is in order.
import sys
import lexer
TOKENS = (
('KWD_TEMPLATE', r'template'),
('KWD_TYPENAME', ... | [
"matthew.parker@sheffield.ac.uk"
] | matthew.parker@sheffield.ac.uk |
6918da170d57086d58de53e73ee734793ca9c647 | 5b6481da9d47221546382a0f39b73095a18f552b | /prev_ob_models/Migliore2014bulb3d/mig2birg_gloms.py | 82d643debacca3139f0f9d1e14c4dc107fc68e04 | [
"MIT"
] | permissive | JustasB/OlfactoryBulb | 26905f247bb189c7a5359c85a2707fcdeab10de1 | ab0d31f84e18d102956a6fec3196ab262fc08c39 | refs/heads/master | 2023-04-11T19:23:45.731947 | 2021-05-04T21:55:20 | 2021-05-04T21:55:20 | 150,029,110 | 7 | 2 | MIT | 2019-06-08T01:57:46 | 2018-09-23T21:59:30 | Jupyter Notebook | UTF-8 | Python | false | false | 2,818 | py | '''
Mapping between Migliore 2014 glomeruli indices and Birgiolas 2020 indices
Produced by finding the closest glomeruli pair in blender-files/ob-mig-mcs-aligned-to-gloms.blend
'''
mig2birg = {}
mig2birg[0] = 1493
mig2birg[100] = 325
mig2birg[101] = 1613
mig2birg[102] = 358
mig2birg[103] = 1403
mig2birg[104... | [
"jbirgio@gmail.com"
] | jbirgio@gmail.com |
f71d99827be90d045ef1488af88ac529bc8fcdc2 | aa622a03677b3a52890b8b8ffc13c2f57d6f14c9 | /rctk/tests/test_synced_control.py | 4e75f893ac1e6086652386acaf6bc34d7525d334 | [
"BSD-2-Clause"
] | permissive | rctk/rctk | 8c6e0796127dc4ff528c03a840e02173dc660cdf | dc8640e75179c8560ca0cd64e709fefef58d5d2a | refs/heads/master | 2020-05-19T16:52:20.687043 | 2011-09-05T13:02:36 | 2011-09-05T13:02:36 | 2,898,310 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,318 | py | from rctk.tests.base import BaseTest
from rctk.widgets.control import Control, Attribute
class TestSyncedControl(BaseTest):
def test_single_attribute(self):
class TestControl(Control):
a = Attribute("default")
t = TestControl(self.tk)
assert len(self.tk._queue) == 1
ass... | [
"github@in.m3r.nl"
] | github@in.m3r.nl |
2e7a77380201c7d92df9a72c9bdbf5361d4d0329 | f246b414cce8687d6e5d1bb77cd94132b89580a2 | /capstone/capstone/settings.py | a047facfe5fdebea0cdc34e2244ca61154a75b55 | [] | no_license | thewolfcommander/cs50-web | edbccd29b0b649852c7af73d5ecba4f51fa47ad3 | beead0967d36ef398b699601c8ebae646827556d | refs/heads/master | 2022-12-23T08:03:52.729833 | 2020-10-01T14:14:31 | 2020-10-01T14:14:31 | 300,309,278 | 2 | 2 | null | 2020-10-01T14:29:44 | 2020-10-01T14:29:42 | null | UTF-8 | Python | false | false | 3,681 | py | """
Django settings for capstone project.
Generated by 'django-admin startproject' using Django 3.1.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.1/ref/settings/
"""
from pathlib ... | [
"nstu778@aucklanduni.ac.nz"
] | nstu778@aucklanduni.ac.nz |
cd3954fece8a567c0bd6837d9914e92508b196e0 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_298/ch54_2020_09_29_22_51_12_719433.py | 030dbbeba2a0e3cf5a449b226a9408e9dc81ea74 | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 279 | py | fibonacci = []
fibonacci.append(1)
fibonacci.append(1)
def calcula_fibonacci(n):
t = 0
while t < n:
fibonacci_seguinte = fibonacci[t] + fibonacci[t+1]
fibonacci.append(fibonacci_seguinte)
t += 1
return fibonacci[:n]
print(calcula_fibonacci(n)) | [
"you@example.com"
] | you@example.com |
bd41d5569239641b7cf11f80b1f16949af7fd367 | 5756d7c546c30924a95d8de484fd1ec66d89f31f | /web/migrations/0007_auto_20201104_0111.py | 271be5007be0aca15c92bb8598b6413b9cc74743 | [] | no_license | manuguevara/MI-CAR-Django | 0e665c7f7f850263ec01be5b8752ac15201ccaf2 | 90d96f2dafc4af125e3b4c0e03ca5305ccca1646 | refs/heads/master | 2023-01-30T18:48:03.749094 | 2020-12-10T00:22:23 | 2020-12-10T00:22:23 | 300,990,125 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 423 | py | # Generated by Django 3.1.1 on 2020-11-04 04:11
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('web', '0006_insumo'),
]
operations = [
migrations.AlterField(
model_name='insumo',
name='imagen',
field=... | [
"manu.guevara@alumnos.duoc.cl"
] | manu.guevara@alumnos.duoc.cl |
19ff025373dc4fcab401bdcea7400cec9db59b81 | 73bb9421b459955af189b75fc01298fb820210c6 | /hello_you.py | 421d6598333c86ad5b0887c29346fb96cf80aeab | [] | no_license | becerra2906/python_practice_ex | 44247f5762b29b2db2e87c24834967f6d3b44941 | 2522be3a04bc1dc79e391edee0dd2bc239e56604 | refs/heads/master | 2022-12-22T12:11:07.205038 | 2020-10-02T17:14:59 | 2020-10-02T17:14:59 | 272,989,756 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 500 | py | # By Alejandro Becerra
# done as part of The Python Bible Udemy Course
#ask user a name
name = input("What's your name?: ")
#ask user for age
age = input("How old are you?: ")
#ask user for city
city = input("What city do you live in?: ")
#ask user what they enjoy
love = input("What do you love doing?: ")
#... | [
"noreply@github.com"
] | becerra2906.noreply@github.com |
d48b020a384af34542a253fd697fdca212d37b83 | a05ce7d365917c2ae6430e522381792a011d5979 | /atomtoolbox/classification.py | 0314661575a57af915ef3e05b66ea5d0493b2105 | [
"MIT"
] | permissive | eschmidt42/AtomToolBox | 9d41770e9ebf545ac6cefce5c81226c14ee024c2 | 25b80675dcaa332fc0c0d702b60ea61dfe2501a0 | refs/heads/master | 2021-09-14T21:45:57.408383 | 2018-05-20T09:15:26 | 2018-05-20T09:15:26 | 113,569,858 | 1 | 0 | null | 2018-02-10T14:37:36 | 2017-12-08T12:00:18 | null | UTF-8 | Python | false | false | 64,241 | py | import copy, os, pickle, collections, warnings
from scipy import stats, optimize
import numpy as np
from sklearn.mixture import GaussianMixture, BayesianGaussianMixture
from sklearn.cluster import KMeans
from scipy.cluster import hierarchy
from scipy import spatial
import matplotlib.pylab as plt
import matplotlib as m... | [
"11818904+eschmidt42@users.noreply.github.com"
] | 11818904+eschmidt42@users.noreply.github.com |
7775a4ca239d36b16639f56bbc191d07f9d8f049 | d93fe0484fc3b32c8fd9b33cc66cfd636a148ec4 | /AtCoder/AGC-C/037probC.py | e22e44919bb25063bbc000a6d8946f829ba4983e | [] | no_license | wattaihei/ProgrammingContest | 0d34f42f60fa6693e04c933c978527ffaddceda7 | c26de8d42790651aaee56df0956e0b206d1cceb4 | refs/heads/master | 2023-04-22T19:43:43.394907 | 2021-05-02T13:05:21 | 2021-05-02T13:05:21 | 264,400,706 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 233 | py | N = int(input())
A = list(map(int, input().split()))
B = list(map(int, input().split()))
R = [B[i]-A[i] for i in range(N)]
D = []
for i in range(N-1):
D.append(A[i-1]+A[i+1])
D.append(A[N-2]+A[0])
for i, r in enumerate(R):
| [
"wattaihei.rapyuta@gmail.com"
] | wattaihei.rapyuta@gmail.com |
7689cbd6ca525cbb5c93bcf74ecb1f44600ec7cb | b3f5913b9b466ffbcabc0feaef291fa0346caf74 | /src/Sheet_Squeeze.py | fbf721c518336ea5415f60814a18d03619ac197d | [] | no_license | boigman/Sheet_Squeeze | ce600e88d057aa00d69a7ad46a15be1e2d35b652 | c5cf73e077b441c5f90f670a2808a817b40c89d5 | refs/heads/master | 2022-04-28T16:21:59.362404 | 2020-05-06T14:03:55 | 2020-05-06T14:03:55 | 261,755,752 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,397 | py | from PIL import Image
import png
#import ntpath
#import os
import sys
import time
white_row_limit = 5
vbar_row_limit = 10
infile = sys.argv[1]
print("Input file: "+infile.replace("\\\\","\\"))
outfile=infile.replace(".png","_sqz.png")
r=png.Reader(filename=infile)
xwidth, yheight, pixels, meta = r.asDirect()
#print... | [
"Dave.Stauffer@spireenergy.com"
] | Dave.Stauffer@spireenergy.com |
80645dfd46c51e1594ab5bcf0406d091b133d28a | 6023b767f104d51288fed3e872777f4b974f083d | /6603.py | 0afb3699231152e97203bb622340a457cd869f0e | [] | no_license | andyjung2104/BOJ-source-codes | daff7b804469473b898fb58500a1c8cff542b52e | a97b5e2b4bfb6d26fac67bb94d3d259836d875d3 | refs/heads/main | 2023-07-19T02:30:13.806978 | 2021-09-13T01:03:06 | 2021-09-13T01:03:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 214 | py | from itertools import combinations
import sys
while True:
a=list(map(int,sys.stdin.readline().split()))
if a[0]==0:break
n=a.pop(0)
y=combinations(a,6)
for i in y:print(*i)
print()
| [
"noreply@github.com"
] | andyjung2104.noreply@github.com |
f531bdaa3135afa760dfda6ab0d89945b68fe682 | 139d4c998e7e06fd160792a485bfc20190c80df1 | /aliceroughdraft.py | c76922b1c92b535ed9031e1b7c5b3c4d87c1f400 | [] | no_license | MatthewSpecht/memory-game | afcb0d6e8cdf973514834e334b67c445429aee03 | dbf2f714953af499c1cc42fcbadf7712dd67fc18 | refs/heads/main | 2023-03-13T03:38:35.590864 | 2021-03-09T17:08:54 | 2021-03-09T17:08:54 | 334,207,578 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,361 | py | import tkinter as tk
from tkinter import messagebox
import random
from tkinter import PhotoImage
root = tk.Tk()
root.title("Memory Game")
# root.geometery("550x550")
# matches = [PhotoImage(file = "fruit-pictures/apple.png"),PhotoImage(file = "fruit-pictures/orange.png"),PhotoImage(file = "fruit-pictures/banana.png... | [
"720azpeng@gmail.com"
] | 720azpeng@gmail.com |
fe9e28083d4916e855a1cf96981aa7e1a10e9203 | 03c14cd6730d9c90f9ac79c516e0e0f2783a2662 | /trap_rain_water_leetcode.py | 528289d5d41e686bbbc81c822a761f31645265ef | [] | no_license | ismailej/General-Programming | 4458d70a31565331d2773207edc4df0ee69a753f | 3c5822617a4b19422be9def02d657e09cf968524 | refs/heads/master | 2021-01-10T10:19:47.717434 | 2016-05-01T13:41:07 | 2016-05-01T13:41:07 | 53,746,520 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,465 | py | class Solution(object):
def calculate(self, height, start, count, ref):
print('Reached calculate with start, end', start, count)
store = 0
#ref = height[start]
#print(ref)
i = start + 1
end = count - 1
while i <= end:
store += ref - height[i]
... | [
"ejismail@gmail.com"
] | ejismail@gmail.com |
83f27e5da39ecc5798b8676ef45a90581bb4630b | 2c02ad2867e86aadc14fa63fb6f11b380b7a38b8 | /src/draw_q.py | 5182519501edb76b5c8ac5cee6e78ed6a57cf01c | [] | no_license | xiecailang/leetcodes | 8ac61846d1b9c1b2f9d1638d8dda7f04fc47a9b7 | 49f00cd47344c3861ae8a0b25db9f0a0a0a2ae3e | refs/heads/master | 2020-03-27T19:21:18.834973 | 2018-10-30T03:33:57 | 2018-10-30T03:33:57 | 146,983,326 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,797 | py | #画家小Q
n, m = 4, 4
str_ = []
str_.append(list('YXXB'))
str_.append(list('XYGX'))
str_.append(list('XBYY'))
str_.append(list('BXXY'))
cnt = 0
def findY(i, j):
if i >=0 and i < n and j >=0 and j < m and (str_[i][j] == 'Y' or str_[i][j] == 'G'):
if str_[i][j] == 'G':
str_[i][j] = 'B'
else:... | [
"cailangxie@sina.com"
] | cailangxie@sina.com |
d554dc494835296bc0a6175544783f5452d6a9e1 | 83ecabbeea8b17a3fd9b8142062f09c76198e232 | /wso2_apim_publisherclient/models/api_object_2.py | 703f56a19f1ec2597a91ddf4689042a03983c124 | [] | no_license | junetigerlee/python-wso2-apim-publisherclient | 387f581bb48645b35f256159cce0031babd493f0 | 5e1cadeab4eb37ebc93e46b45d6d1f98f4fdfde9 | refs/heads/master | 2021-01-01T16:11:45.362270 | 2017-07-25T06:20:46 | 2017-07-25T06:20:46 | 97,783,584 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 26,626 | py | # coding: utf-8
"""
WSO2 API Manager - Publisher API
This specifies a **RESTful API** for WSO2 **API Manager** - Publisher. Please see [full swagger definition](https://raw.githubusercontent.com/wso2/carbon-apimgt/v6.0.4/components/apimgt/org.wso2.carbon.apimgt.rest.api.publisher/src/main/resources/publisher... | [
"junetigerlee@gmail.com"
] | junetigerlee@gmail.com |
78a8943f8ce2436866eaef9d626cb0df1c6b6eda | 6258769282bb5d23c0ae12064c76597014f64463 | /sorting/insertion_sort.py | 9461306d62d3b90ce11fe8b1582bbe462b4fee61 | [] | no_license | PandaMia/Python | 91c9ceb949791bc8d6d549aa69b380e5d18ea2d2 | 98a1cb0d970607b7160336c705ff9f0f4c8d1edc | refs/heads/master | 2022-11-20T00:28:49.881340 | 2020-07-12T12:51:15 | 2020-07-12T12:51:15 | 276,862,618 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 368 | py | from random import randint
def insertion_sort(array):
for i in range(1, len(array)):
spam = array[i]
j = i
while array[j - 1] > spam and j > 0:
array[j] = array[j - 1]
j -= 1
array[j] = spam
array = [randint(-10, 10) for i in range(10)]
print... | [
"noreply@github.com"
] | PandaMia.noreply@github.com |
0afbee7eba27aebba2818dd3c350919085a06630 | f6204b85b4b0662eecda8cfd77e41ef51a8e97fb | /projectpythonlaptophp/escapechar.py | c0751920dbe670df4d359ec05d254143853197b6 | [] | no_license | sergiosanchezbarradas/Udemy_Masterclass_Python | 0084e781fac9db8cca2b0dd3afec3dd69f7a3ed7 | da8fc6105a04379e4ddeaf9df782115462408153 | refs/heads/master | 2023-04-14T22:53:58.527942 | 2021-04-21T10:51:23 | 2021-04-21T10:51:23 | 336,501,693 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 441 | py | splitstring = "This string has been\nsplit over\nseveral\nlines"
print(splitstring)
tabstring = "1\t25\t3\t"
print(tabstring)
print('The pet owner said "No,no, \'e\'s uh,....he\'s resting".')
#or
print("The owner said \"No, no, 'e's uh,...he's resting\".")
print("""The owner said hmmmm "No,no...'e's \
uh...he's rest... | [
"sergio_sanchez_b@hotmail.com"
] | sergio_sanchez_b@hotmail.com |
e3dd261be5438e3b948ea7d2190b0fc491879986 | 9ba3e1a001ffa4d4a93387c8685b6e1f5b7c48dc | /code/other-sims/case4.py | b0c25dae51509b1f7b1aeb268ce5b52ffc320602 | [
"MIT",
"Apache-2.0"
] | permissive | filecoin-project/consensus | b194e8f061ab541d7e6d20d760e89705993cabdc | 8824ad5fb8948706995805692d594f6ccf199176 | refs/heads/master | 2022-03-28T21:35:04.670512 | 2020-05-29T19:40:44 | 2020-05-29T19:40:44 | 130,159,711 | 44 | 5 | NOASSERTION | 2020-03-19T02:37:58 | 2018-04-19T04:38:19 | Python | UTF-8 | Python | false | false | 1,715 | py | import numpy as np
import time
from math import floor
import multiprocessing as mp
nh=67
na=33
ntot=na+nh
heights=range(250,251,10)
e=1
p=float(e)/float(1*ntot)
sim=1000000
ec =[]
num=1
if e==1: num=77
if e==5: num=54
start_time = time.time()
# Step 1: Init multiprocessing.Pool()
pool = mp.Pool(mp.cpu_count())
... | [
"sarah8@bitbucket.org"
] | sarah8@bitbucket.org |
110a6ab2cb322a10543de21c59650d94d221ef39 | 054c0bdf2ed7db0975828355562b7b0a7bad7e5c | /myapp/home/views.py | 3b1cc4004190dd397091eceb3f851ab81243868c | [] | no_license | fbbenod/Touristy-Information-System | d8024a5d9df0712d336d18cf1a2ac5b235b3b58e | 8122a8b9f343fd952a052d2c435f914d0b82079c | refs/heads/master | 2020-07-14T19:39:20.759408 | 2019-08-31T12:16:04 | 2019-08-31T12:16:04 | 205,385,231 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,745 | py | from django.shortcuts import render
from .models import FirstContent, SecondContent,ThirdContent,Package,BodyContent1,\
BodyContent2, OurService1, OurService2,\
OurServiceImage, PopularDestination, HomeQuestion, OurPlaces, Footer
from django.views.generic import (
ListView,
DetailView
)
def index(requ... | [
"b3nodbanjara@gmail.com"
] | b3nodbanjara@gmail.com |
c576359869c6d2ae332e6910e94e31783d8ab1ec | c0d489046bc114672139873916a118a203c6f850 | /Medium/1669. Merge In Between Linked Lists.py | d226397c60258d906ee028c656b938c7f36208fd | [] | no_license | shifty049/LeetCode_Practice | 165ada14a8fd436e9068bd94d6b82b1ed312013c | ca8be179282be86450c9959fb239466d152a55e5 | refs/heads/master | 2022-05-25T16:23:05.736852 | 2022-03-29T13:48:21 | 2022-03-29T13:48:21 | 249,737,622 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 965 | py | class Solution:
def mergeInBetween(self, list1: ListNode, a: int, b: int, list2: ListNode) -> ListNode:
ix = 0
while True:
if ix == 0:
head = list1
if ix ==a-1:
lst1_head = list1
if ix == b +1:
... | [
"shifty049@gmail.com"
] | shifty049@gmail.com |
de01fe52eb92564309ff7696b0b605bb26095c8d | 9d844faeec40e4fd3dfaf7e79004831752090454 | /kaplanmeier/helpers/savefig.py | 198e47da65c7e032d87c9bf40dc11788474ffed1 | [
"MIT"
] | permissive | erdogant/kaplanmeier | 8b498218f3105d905087aef713cfeb25d69fbf43 | 97c49d7c3f7c1385b895729a3dbffc2012cd50a2 | refs/heads/master | 2023-05-23T01:28:07.905957 | 2023-05-08T20:30:12 | 2023-05-08T20:30:12 | 231,418,764 | 24 | 9 | MIT | 2022-03-10T23:54:05 | 2020-01-02T16:25:50 | Python | UTF-8 | Python | false | false | 1,668 | py | """ This function saves figures in PNG format.
A=savefig(data, <optional>)
INPUT:
data: fig object
OPTIONAL
showprogress : Boolean [0,1]
[0]: No (default)
[1]: Yes
OUTPUT
BOOLEAN
[0]: If not succesful
[1]: If succesful
DESCRIPTION
his func... | [
"erdogant@gmail.com"
] | erdogant@gmail.com |
c330eb6da60dfa3e0ce1b2b9441715280a20da9c | 12662aff12b6651a3cc046950e5ea57f60dd0a09 | /16. Numpy/Inner_and_outer.py | 0587955f2ce1d316ab30af51dbd4c7e31e925f13 | [] | no_license | basakmugdha/HackerRank-Python-Practice | 3c563d68e002c1b04dc59594f3c84070babf443a | fa41f263eb310755a1da1c9d6f2f74dc9e0329b5 | refs/heads/master | 2023-06-18T05:07:58.563967 | 2021-07-11T16:29:34 | 2021-07-11T16:29:34 | 354,798,352 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 133 | py | import numpy as np
A = np.array(input().split(), int)
B = np.array(input().split(), int)
print(np.inner(A,B))
print(np.outer(A,B))
| [
"51905437+basakmugdha@users.noreply.github.com"
] | 51905437+basakmugdha@users.noreply.github.com |
1294aa6cc306f575071bc36fb1e6ad6462da9268 | 3ae37808b1d2cee080d9dc6a8695ca822e02b9cd | /udemy/lazyprogrammer/linear-regression-python/lr_2d.py | a2682eb360002ca6324e3d34a0012e887d04d18b | [
"Apache-2.0"
] | permissive | balazssimon/ml-playground | 8dc9896a46bd468a74e0e04ba94889c009655216 | c2eba497bebc53e5a03807bdd8873c55f0ec73e1 | refs/heads/master | 2023-08-11T04:36:11.084644 | 2019-07-30T14:39:23 | 2019-07-30T14:39:23 | 65,571,533 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 492 | py | import numpy as np
import matplotlib.pyplot as plt
from mpl_toolkits.mplot3d import Axes3D
import pandas as pd
df = pd.read_csv("data_2d.csv", header=None)
X = df[[0,1]].values
y = df[2].values
w = np.linalg.solve(np.dot(X.T, X), np.dot(X.T, y))
y_hat = np.dot(X, w)
d1 = y-y_hat
d2 = y-y.mean()
SS_... | [
"balazssimon@gmail.com"
] | balazssimon@gmail.com |
0215b7bbb2f8facc2a6d7f58206630b3e43c303c | 0a7b9005e93ad0ac846568d54d52c8faef8aa53b | /Old Files/Generation V3/ball_recognition_tensorflow/object_detection/eval_util.py | c1a09ec0e5d7677971b860159ce262ee101c5217 | [] | no_license | msumccoy/robotics | 9d177710cd4e61c38fda26c0f72d8fbf25c7cfdd | 63cec377ee7efb6e2297669a91e930f415ad8a6a | refs/heads/master | 2021-12-12T16:25:33.840760 | 2021-11-12T19:20:43 | 2021-11-12T19:20:43 | 206,330,614 | 0 | 1 | null | 2021-11-12T19:20:44 | 2019-09-04T13:50:47 | Python | UTF-8 | Python | false | false | 44,765 | py | # Copyright 2017 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... | [
"54901117+wykek@users.noreply.github.com"
] | 54901117+wykek@users.noreply.github.com |
78894df958990f55a0db33727dca30b40db76d1d | 3eab5f92b07fe3a7ca0c082cd65a7a31cc00f831 | /utilities/welcome.py | e752282f2cd8783707e39b8f5dbb3b52e869b011 | [] | no_license | rodriguez-facundo/nwb-explorer | 5cc287adf8f1b4509009ce1dec4feff9aaf723a5 | 3d04605ed30cebd4ff9db4e61dc2fc2cb269aeab | refs/heads/test-branch-001 | 2020-06-17T08:31:57.555113 | 2019-07-09T00:32:20 | 2019-07-09T00:32:20 | 195,862,486 | 0 | 0 | null | 2020-10-14T12:03:37 | 2019-07-08T18:04:38 | Python | UTF-8 | Python | false | false | 1,806 | py | donkey =f'''\033[0m {'_'*(58)}
( )
( \U0001F604 Welcome to \033[36;3mNWB-Explorer\033[0m development installation )
( )
( \U0001F463 We will execute the following steps: )
( ... | [
"bruseghini.f@gmail.com"
] | bruseghini.f@gmail.com |
35d500ef398e45b60227585fdebc4d98ad493da8 | 7b1ae566c39aac0626c8c414a153895728c6d02a | /tester new.py | 0d49cccfb4fdf61a53368419e9dbdf6645ebf415 | [] | no_license | seansliu/Twitter_Filter | a3f70f10a11c6b8b935b44593152d9528e38694f | ceca0d4252e35c18dfbbca74f4cc53156cca6fc0 | refs/heads/master | 2016-09-10T19:23:30.762719 | 2013-12-15T16:23:22 | 2013-12-15T16:23:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,163 | py | import tweeter as t
def main():
# Phase 1 functions.
print 'Making tweets...'
tweets = t.make_tweets('some_tweets.txt')
tweets = tweets[0:100]
print ' Tweets made. \nAdding state and ZIP...'
t.add_geo(tweets)
print ' State and ZIP added. \nAdding sentiments...'
# Phase 2 functions.
... | [
"seanliu216@gmail.com"
] | seanliu216@gmail.com |
ba432695aa9d5c0e423720d792084fef3f477aac | c956401119e44e41f3873b4734c857eda957e2cd | /programs/templates/ma2/ma2.py | caee4b1f0edb70879bcd4be3fbabca3b25a59657 | [] | no_license | zhekunz2/c4pp | 6f689bce42215507d749b8b2be96c7f68ed8c49c | 9f8054addb48d9440662d8c8f494359846423ffd | refs/heads/master | 2020-09-24T06:17:29.866975 | 2019-12-03T17:41:25 | 2019-12-03T17:41:25 | 225,678,894 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 19,915 | py | import pyro, numpy as np, torch, pyro.distributions as dist, torch.nn as nn
from pyro.optim import Adam
import torch.distributions.constraints as constraints
from pyro.infer import SVI
if pyro.__version__ > '0.1.2': from pyro.infer import Trace_ELBO
from pyro.contrib.autoguide import *
import math
def amb(x):
ret... | [
"zhekunz2@Zhekuns-MacBook-Pro.local"
] | zhekunz2@Zhekuns-MacBook-Pro.local |
3b13833a39f9e9368ed077ab78b9898a7d50c57e | 3255eb9597c65f7b4d3c882a86a4cc8c3283f828 | /replaceText.py | 415828feebe734175adfb486cef995604e8c7ed4 | [] | no_license | bsaakash/SummerInternship2018 | c3069c94070f845e6680530027c2fcbdcf4d8f7a | fe14a2ffcd8f8ad9cdc5a046230b63db4d2b7f94 | refs/heads/master | 2020-03-21T16:00:17.999559 | 2018-08-02T00:02:37 | 2018-08-02T00:02:37 | 138,745,314 | 0 | 0 | null | 2018-07-10T14:20:26 | 2018-06-26T13:53:43 | Python | UTF-8 | Python | false | false | 1,137 | py | """ Write a python function to find and replace text in a file. This function takes three inputs - 1 string,
1 filename, and 1 number. It searches for the input string in the file, enclosed within '< >' and replaces ''
with the number passed as input. i.e., if the input string is 'var1', the filename is 'Input_File_... | [
"noreply@github.com"
] | bsaakash.noreply@github.com |
df00a7056301265671659106b1ca0ef1e1c7d558 | 2745dfc935b023f21e8f2aabe98e22ca41d2fc82 | /temp.py | 73944875cf9b6f48bde226774eff1d066ce41f32 | [] | no_license | redteamcaliber/fireEye | 5e5a78c2a6fb07ed7c29d0b467f0a3c0f3977378 | 1360ddc878dba29df3f6c0d12e8a399a08249abb | refs/heads/master | 2020-05-29T12:24:46.167705 | 2016-03-10T06:59:54 | 2016-03-10T06:59:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 757 | py | # -*-encode utf-8-*-
#post.py
import urllib,urllib2
import hmac
from test import insert_a_task
import re
import os
import random
# signature and communication
key = '123456'
msg = str(random.uniform(1,100))
sign = hmac.new(key,msg).hexdigest()
#url = 'http://localhost/test999.php'
url = 'http://wtf.thinkphp.com/inde... | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
f28f9bbd8171763ce2ea81c3645f32432618f581 | 2509b353c9180cfbdeea8e4841fb17bc8535802d | /flask_db.py | 766ad06b9973a88048582c3e95258b67566b9460 | [] | no_license | aberle/Learning-Challenges | e2d7b0917958e478e39c51f1de314fba7e6e96cc | 72b945abdc7f76cab14b440960b7e166b3086a27 | refs/heads/master | 2021-01-13T01:30:59.513710 | 2014-03-07T03:02:17 | 2014-03-07T03:02:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 559 | py | from flask import Flask
from flask.ext.sqlalchemy import SQLAlchemy
app = Flask(__name__)
app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///flask.db'
db = SQLAlchemy(app)
class User(db.Model):
id = db.Column(db.Integer, primary_key=True)
username = db.Column(db.String(80), unique=True)
email ... | [
"aberle.nick@gmail.com"
] | aberle.nick@gmail.com |
63c02af323bc75b27051e9b4e4cc7cb662253e65 | 42d9eb520b87c76fee45168ee3771bb50e705b07 | /Web_Integration/face_api/request_draw.py | 650491c32ea4935577cf47451ab352e1166c7eb4 | [] | no_license | LovepreetSingh-09/OpenCV | a6b57b1dffcad7f807edf5bd2cb05ea916aff498 | 02c1e2062287b60b13b01eb641ab834c3a3188f4 | refs/heads/master | 2022-11-06T22:23:31.234468 | 2020-07-17T19:10:24 | 2020-07-17T19:10:24 | 270,727,867 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,248 | py | import cv2
import numpy as np
import requests
from matplotlib import pyplot as plt
def show_img_with_matplotlib(color_img, title, pos):
img_RGB = color_img[:, :, ::-1]
ax = plt.subplot(1, 1, pos)
plt.imshow(img_RGB)
plt.title(title)
plt.axis('off')
FACE_DETECTION_REST_API_URL = "http://localhost:... | [
"slovepreet435@gmail.com"
] | slovepreet435@gmail.com |
3034f85c3d2b6f91c7e721a076903dfaa30112f3 | 68200741ecec49667620d1f3424852f0d7e99470 | /plugins/Snoo/flair.py | fc3ae268dd6a6f6d956212b91db4a5414eb0b501 | [] | no_license | frumiousbandersnatch/sobrieti-plugins | 30c1079f3027226465d8faec9e88d2bcbb5bdc7a | b627829c974f6cadce471e904dbbcca608158360 | refs/heads/master | 2022-05-28T10:48:30.309250 | 2022-04-16T01:57:11 | 2022-04-16T01:57:11 | 6,642,855 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,762 | py | #!/usr/bin/env python
import json
import requests
headers = {
'Accept': 'application/json',
'Content-Type': 'application/json; charset=UTF-8',
'user-agent': 'sobrietibot'
}
comment_urlpat = "https://www.reddit.com/user/{username}/comments/{subreddit}.json"
search_urlpat = "https://www.reddit.com/r/{subre... | [
"frumious.irc@gmail.com"
] | frumious.irc@gmail.com |
698a7d4dc268ac9ca974a56bd1e79774c9989ff8 | 7e15a679d37e8d8449871c8f6f3f649d05b33b36 | /web/ui_modules/__init__.py | b1c0a69df33032c18f535f065b303a88ebb878de | [] | no_license | SuprDewd/gamma | a7514aaa86790e92df481da75c283279ac7a1678 | 98b291da26d8b54959134e493a25b73234d7df63 | refs/heads/master | 2021-01-17T16:59:05.247942 | 2014-03-22T23:09:28 | 2014-03-22T23:09:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 427 | py | import os
import glob
import importlib
modules = {}
for f in glob.glob(os.path.dirname(__file__) + '/*.py'):
name = os.path.basename(f)[:-3]
if name == '__init__':
continue
module = importlib.import_module('ui_modules.' + name)
for k, v in module.__dict__.items():
if k.endswith('Modul... | [
"suprdewd@gmail.com"
] | suprdewd@gmail.com |
052e50b5a5df887c17bdbb27be56c70b493aca1b | a41c3e646114d95482a9a71713151501d3b7d090 | /Finite_fields&Signal_design/fundamental_tools/A_way_of_q_Field.py | 5ce55f3415eb07da631205677d48ccebb3964ed1 | [] | no_license | ZckFreedom/Mathworks | 574adbd81da4507724f0c4584254cbd5b6a67187 | ce76c05cd9094f7e3378be1ef7478c7cb1492f0e | refs/heads/master | 2021-08-22T02:55:09.698849 | 2020-09-25T04:12:18 | 2020-09-25T04:12:18 | 203,349,377 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,826 | py | from Polynomials_Field import *
'''
以1,θ,θ^2等为基,定义了基本运算,以及求逆等运算
'''
class Field_q:
def __init__(self, list1, h):
if not isinstance(h, PolynomialsField):
raise FieldError('定义错误')
if not h.is_irreducible():
raise FieldError('f不是不可约,不是域')
p = h.get_home()
if isinstance(list1, int):
if list1 == 0:
... | [
"zhu2010_546@163.com"
] | zhu2010_546@163.com |
43e35b37ae4cd2c1a13852accc79600fe35aabde | 88ae8695987ada722184307301e221e1ba3cc2fa | /third_party/webgl/src/resources/html5lib/src/html5lib/inputstream.py | edec132975d95602c261c56fe59183204cc70bdf | [
"LicenseRef-scancode-khronos",
"BSD-3-Clause",
"Apache-2.0",
"LGPL-2.0-or-later",
"MIT",
"GPL-1.0-or-later"
] | permissive | iridium-browser/iridium-browser | 71d9c5ff76e014e6900b825f67389ab0ccd01329 | 5ee297f53dc7f8e70183031cff62f37b0f19d25f | refs/heads/master | 2023-08-03T16:44:16.844552 | 2023-07-20T15:17:00 | 2023-07-23T16:09:30 | 220,016,632 | 341 | 40 | BSD-3-Clause | 2021-08-13T13:54:45 | 2019-11-06T14:32:31 | null | UTF-8 | Python | false | false | 27,795 | py | import codecs
import re
import types
import sys
from constants import EOF, spaceCharacters, asciiLetters, asciiUppercase
from constants import encodings, ReparseException
import utils
#Non-unicode versions of constants for use in the pre-parser
spaceCharactersBytes = frozenset([str(item) for item in spaceCharacters])... | [
"jengelh@inai.de"
] | jengelh@inai.de |
c7dfeaa97bf0eb949d1a6d2ecdeeed03f601b720 | bdb8848a5e44bc6ae6f7e8ecb0eb5a88f048c9f1 | /To_Do.py | 60ce32259f489783b59f352213508d048b101038 | [] | no_license | adiG48/TO-DO-LIST-PROGRAM-1 | 2dd4e576307bdf5d9e1578538ab25ce2cde9c102 | 9da60f1c094ce6ae2bb2ceb46a190632f64433d0 | refs/heads/main | 2023-01-30T12:23:22.428522 | 2020-12-11T10:10:25 | 2020-12-11T10:10:25 | 320,536,121 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,264 | py | import PySimpleGUI as sg
from file import file_read, file_write
fname = "Text.txt"
tasks = file_read(fname)
layout = [
[sg.Text("ToDo List")],
[sg.InputText("", key='todo_item'), sg.Button(button_text="Add", key='add_save')],
[sg.Listbox(values=tasks, size=(40, 10), key="items"), sg.Button("Del... | [
"noreply@github.com"
] | adiG48.noreply@github.com |
cae7bb386694e35e4716a59c8b4be78241ca9398 | ceca10c49f709958535004770d1688f0ee04988a | /Django/DjangoNrps/fragment/migrations/0002_auto__add_field_gene_viewable.py | 356a66fd8ae135bba78308d961f612f36d53e297 | [] | no_license | igemsoftware/Heidelberg_2013 | 13c20de982b51606367ee69f1ba71e957e2dfb87 | 85e4966d7ebf04173ae3db8d72f5b122d9a2475e | refs/heads/master | 2020-04-04T09:00:38.005070 | 2013-10-28T15:26:45 | 2013-10-28T15:26:45 | 12,770,105 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,918 | py | # -*- coding: utf-8 -*-
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding field 'Gene.viewable'
db.add_column(u'fragment_gene', 'viewable',
self.gf('dj... | [
"nikos.ignatiadis01@gmail.com"
] | nikos.ignatiadis01@gmail.com |
407c6028f97b46141f099e0a26ec293cc0b975ea | 68bf63745beb76f230fca9e23782d4e2acc91fac | /src/PidginCli/send.py | 3ad973bce1ebbaac92d799dfb7143f948b53dd03 | [
"Apache-2.0"
] | permissive | tfga/pidginCli | 4064e8756844190bdfcae4999b266b4ac22da8ce | 91f4a22d0ca7108af7ac1372de12ea22fc7de081 | refs/heads/master | 2021-12-23T04:06:51.762882 | 2020-11-02T14:34:54 | 2020-11-09T18:55:10 | 81,127,521 | 4 | 3 | Apache-2.0 | 2021-12-15T11:51:08 | 2017-02-06T20:07:28 | Python | UTF-8 | Python | false | false | 240 | py | # encoding: utf-8
from PidginCli.pidginCli import purple, account
# Send message
def send(msg, user):
conv = purple.PurpleConversationNew(1, account, user)
im = purple.PurpleConvIm(conv)
purple.PurpleConvImSend(im, msg)
| [
"thiagofga@gmail.com"
] | thiagofga@gmail.com |
b6c772dff8fac1b0e1adcfc9afe1571acbd74b5f | f1cb02057956e12c352a8df4ad935d56cb2426d5 | /LeetCode/783. Minimum Distance Between BST Nodes/Solution.py | 5ad0c386380db865bc897b2d1ac85f219bc9371c | [] | no_license | nhatsmrt/AlgorithmPractice | 191a6d816d98342d723e2ab740e9a7ac7beac4ac | f27ba208b97ed2d92b4c059848cc60f6b90ce75e | refs/heads/master | 2023-06-10T18:28:45.876046 | 2023-05-26T07:46:42 | 2023-05-26T07:47:10 | 147,932,664 | 15 | 2 | null | null | null | null | UTF-8 | Python | false | false | 634 | py | # Definition for a binary tree node.
# class TreeNode:
# def __init__(self, val=0, left=None, right=None):
# self.val = val
# self.left = left
# self.right = right
class Solution:
def minDiffInBST(self, root: TreeNode) -> int:
vals = []
self.inorder(root, vals)
r... | [
"nhatsmrt@uw.edu"
] | nhatsmrt@uw.edu |
a303ba8ab2ce0786a55da5529a6697c736cf51c8 | 3583a2f44149acc17cfd5e97f0f000b3a7ba94b8 | /025/script.py | 2589426ffe5be67e2930aad49200553aa960ff17 | [] | no_license | jmfennell/project_euler | 5561438c96b010d02aa585fcc03a6c47bdbd5a1c | 23edec8db3dcd3dad4607a6b916ac41f280d0ce2 | refs/heads/master | 2021-01-20T12:04:33.125362 | 2018-11-03T16:59:37 | 2018-11-03T16:59:37 | 20,556,964 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 334 | py | #!/usr/bin/env python3
from functools import lru_cache
from itertools import count
length = 1000
@lru_cache(maxsize=None)
def fib(i):
if i <= 2:
return i
return fib(i-1) + fib(i-2)
def main():
for i in count():
l = str(fib(i))
if len(l) == length:
print(i+1)
break
if __name__ == '__main_... | [
"j.fennell@pinbellcom.co.uk"
] | j.fennell@pinbellcom.co.uk |
1d1c44c8ffee81958006ceb271816629bba8cdcc | b5187b5ffd53a2cdc8ec6ed94effc39702c1ea31 | /loyalty_app/loyalty/doctype/staff/test_staff.py | 99156913065f175eb9514772eee1155414b32e63 | [
"MIT"
] | permissive | vignesharumainayagam/engagex-loyalty_app-backup- | 946a7f75c5ae5cce33313142a0b4e6ba29d67cb6 | 4c326c5f7b22572146f0b946d6498e85ac22a143 | refs/heads/master | 2020-03-11T18:00:14.106005 | 2018-04-19T05:36:06 | 2018-04-19T05:36:06 | 130,163,935 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 203 | py | # -*- coding: utf-8 -*-
# Copyright (c) 2018, Loyalty and Contributors
# See license.txt
from __future__ import unicode_literals
import frappe
import unittest
class TestStaff(unittest.TestCase):
pass
| [
"vigneshwaran@valiantsystems.com"
] | vigneshwaran@valiantsystems.com |
f8b2fd3a6f7e61063a3ef0e9d53bb2456ae68816 | 920baca8ee6cbd3c140cc54fada286ca7ecd20ed | /controlled_experiment/analysis_scripts/src/verification/verify_experiment.py | 78177a4ff10103156c7dba085905031b3f445ca1 | [
"MIT"
] | permissive | lesunb/jss-2022-replication-package | 79dffe25d469a5258d252214959aac5392a261da | 35e2a0fddeedb8fdb5a1b1e4ad4b7a7658e39148 | refs/heads/main | 2023-04-07T08:10:19.818820 | 2022-05-03T22:40:43 | 2022-05-03T22:40:43 | 488,244,608 | 0 | 0 | MIT | 2022-05-03T21:40:28 | 2022-05-03T14:33:21 | Jupyter Notebook | UTF-8 | Python | false | false | 886 | py | from utils import iter_map
from .verify_lab_samples_trials import check_mission_coordination
from .verify_task_execution import check_task_execution
def check_experiment(exec_code):
mc_verification = check_mission_coordination(exec_code)
mc_verification_list = []
te_verification_list = []
for tria... | [
"vicenteromeiromoraes@gmail.com"
] | vicenteromeiromoraes@gmail.com |
29b4cdb20fae1c0f6d7dae7b4c9ad88447c69b9f | 747f759311d404af31c0f80029e88098193f6269 | /addons/etl_interface/etl/lib/etl/component/transform/data_filter.py | 04246f50b258fe91bc33047f978f34bd4710ca6c | [] | no_license | sgeerish/sirr_production | 9b0d0f7804a928c0c582ddb4ccb7fcc084469a18 | 1081f3a5ff8864a31b2dcd89406fac076a908e78 | refs/heads/master | 2020-05-19T07:21:37.047958 | 2013-09-15T13:03:36 | 2013-09-15T13:03:36 | 9,648,444 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 98 | py | /home/openerp/production/extra-addons/etl_interface/etl/lib/etl/component/transform/data_filter.py | [
"geerish@omerp.net"
] | geerish@omerp.net |
2efe39c54fddd62483270bd193e7f178b12f6cc2 | f7a4cbd50e391af66b76d58994b50b6baaeb2255 | /Problem 169/problem_169.py | a94299fa9b262469c60b7449be7621a167d6af82 | [] | no_license | orralacm/LeetCode | 3754df2a220fbfa900185c5b3823d73613e462b3 | 869d539105da5af8452fa67f63bd6e408c1bf72a | refs/heads/main | 2023-08-07T19:14:44.067421 | 2021-09-16T04:48:40 | 2021-09-16T04:48:40 | 380,321,737 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 326 | py | #Given an array nums of size n, return the majority element.
nums = [2,2,1,1,1,2,2]
nums.sort()
n = 0
output = 0
for i in range (len(nums)) :
if (nums.count(nums[i]) > n) :
n = nums.count(nums[i])
print(n)
output = nums[i]
else :
continue
print(f"The majority element is: {outp... | [
"orrala@live.com.mx"
] | orrala@live.com.mx |
b249130aedf8b8dc019a2fd6eb0baf79b26eb634 | a4a016e8bc1f077707733d7f404d5612deb6b4eb | /dash/bin/runxlrd.py | 90f89fda49c01022ed296cc3fec54cac266e853b | [] | no_license | naveenkonam/my_projects | e39749e99ccc59d2f2db5edac3b4602570f51612 | 64dae9eca6a402da378759668801597208df90e5 | refs/heads/master | 2023-03-04T10:26:50.003756 | 2021-02-20T14:13:52 | 2021-02-20T14:13:52 | 323,029,307 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,320 | py | #!/home/konam/Documents/pythonsamples/dash/bin/python3
# Copyright (c) 2005-2012 Stephen John Machin, Lingfo Pty Ltd
# This script is part of the xlrd package, which is released under a
# BSD-style licence.
from __future__ import print_function
cmd_doc = """
Commands:
2rows Print the contents of first and ... | [
"naveenkonam@gmail.com"
] | naveenkonam@gmail.com |
33a102440c5c223b71051fb2300c6a994629c3cc | 0e7af30dd1cecd193b81224360011758fe153e35 | /Code/warp_testing.py | 9465f0ec968da42be821eb0a3fb0095f3895972c | [] | no_license | chittojnr/360VideoTruckCam | ad329c71db8fe5680361e3326343d5d456d48c2b | 1ffdee7dbfa2eec7e0234ce39cdec0c54aa73e87 | refs/heads/master | 2023-03-24T06:48:51.569267 | 2018-06-08T09:03:09 | 2018-06-08T09:03:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,126 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Feb 28 03:23:43 2018
@author: Etcyl
"""
# -*- coding: utf-8 -*-
# USAGE
# python realtime_stitching.py
# import the necessary packages
from imutils.video import VideoStream
import datetime
import imutils
import cv2
import numpy as np
H = np.matrix('0.7494203, 0.0063932, 11... | [
"noreply@github.com"
] | chittojnr.noreply@github.com |
724e56efe7cac39f00bc8a77242a56c6ad487a42 | 1eff1347aa8d7f36b71a4145c28d674036514d1a | /page/home.py | aeac96595c54a9fdaac66bdb97887bda1a5a4c7f | [] | no_license | laoji888/automated_testing | 84b6f8616476257eb4668756afaf7fa82b0611b9 | fcc813bda079293a5041724de36babaa2b7f9a0e | refs/heads/master | 2021-01-05T02:47:25.702181 | 2020-03-27T15:05:22 | 2020-03-27T15:05:22 | 240,850,558 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,689 | py | from selenium import webdriver
from common.ui_base import base
from time import sleep
class Home(base):
def element(self, rows):
"""
获取元素信息
:param rows: 元素信息所在的行(索引)
:return:
"""
element = self.element_info("elements/csms_elements.xlsx", 0, rows, clos=1, ty=1)
... | [
"xztlaoji@163.com"
] | xztlaoji@163.com |
171dc773c6e37191ecd6ac776dd6d79d45cc3742 | 469d509e41858c31cd06df4668b430a7fd618acd | /joonas/089.py | 97857927692755cc1d86475e83238209e20d004e | [] | no_license | joonas-yoon/ps4ct | a1d4a01da8804c72aeab56b5334d58ffe23f8913 | 2dab68e9dafc6fed33cb18c96a6c23985a17597d | refs/heads/main | 2023-07-25T07:54:51.198751 | 2021-08-30T12:22:16 | 2021-08-30T12:22:16 | 323,814,120 | 0 | 0 | null | 2021-05-20T03:31:39 | 2020-12-23T05:46:43 | C++ | UTF-8 | Python | false | false | 165 | py | def solution(n):
k = 1
a = []
while n >= k:
n -= k
a.insert(0, 2 ** ((n % (3 * k)) // k))
k *= 3
return ''.join(map(str, a))
| [
"joonas.yoon@gmail.com"
] | joonas.yoon@gmail.com |
8dcb81a59cf89ec26f6c9dd5cec4de00091d8eea | 9454c33413acdb78097f6c57dda145bbfba2d252 | /test_rpg.py | 5cc9a8a1181a5c46fbf150c2e82dee395a5ddf96 | [] | no_license | eximius8/knight-game | 43b1d5939e78ce950db0215d59183714544fcb67 | 44bba2234522cb8376707fcea2e1d942418ef509 | refs/heads/master | 2023-07-08T23:27:20.336499 | 2021-08-09T06:29:34 | 2021-08-09T06:29:34 | 384,995,550 | 0 | 0 | null | 2021-08-09T06:29:35 | 2021-07-11T16:16:34 | Python | UTF-8 | Python | false | false | 2,170 | py | import unittest
from unittest import TestCase
from unittest.mock import patch
import importlib
rpg = importlib.import_module("main")
class RpgTestCase(TestCase):
"""Юнит тест для домашнего задания 1."""
def setUp(self) -> None:
"""Начальные условия для тестов."""
self.input = ""
sel... | [
"mikhail.trunov@gmail.com"
] | mikhail.trunov@gmail.com |
350f79b305a537f68059e5788baf3ab821036519 | b888846d0c3f0451f04887a761cb823a881b3dc7 | /.py | 077cb2daaa76cdf9b20cbb8a88c85fa73ebdf7e4 | [] | no_license | bjamalbasha/dmart | 5a5373f3e793cf63338b32818d74620c1e16179b | de5c12629de0a47733dc189de7c8cd98bbb8ae58 | refs/heads/master | 2021-01-13T02:14:58.445190 | 2015-01-29T07:34:45 | 2015-01-29T07:34:45 | 30,008,104 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 35 | py | d={'a':1,'b':2,'a':3}
print d['a']
| [
"bjamalbasha121@gmail.com"
] | bjamalbasha121@gmail.com |
9bae511953f0571839bde0acc0198b67814e55d2 | 77796d2d4e1fd931ef57620ac27a97cfd30158e5 | /Python_Elasticsearch_Bulk_With_Geo.py | 03ef0769db4a06d5cedd6ba04a8b958ff20403d1 | [] | no_license | florenefeyzi/Elastic_with_python | d8ac3a0748370e1b7e498d8206f7f8629488afef | 4fbf0cf45523d7de068fb370c2fe590426ab6228 | refs/heads/master | 2023-03-20T19:21:58.306814 | 2019-05-20T07:10:49 | 2019-05-20T07:10:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,072 | py | from elasticsearch import Elasticsearch
from elasticsearch import helpers
import json
import time, datetime
import os
# es = Elasticsearch(['192.168.16.246:9200'], timeout=60, retry_on_timeout=True)
es = Elasticsearch(['192.168.2.12:9200'], timeout=60, retry_on_timeout=True)
request_body = {
"mappings":... | [
"Yu.david880@gmail.com"
] | Yu.david880@gmail.com |
4e36113442dabd353a6e1e7392f30fd0253a1c08 | dc3f5701727d5623b3cfd9f8277b08c864925b7f | /working_with_files.py | 864b7256a7aa13dd0465204c576ed8e7b2c0d767 | [] | no_license | kurskovp/cook_book | da051441d80938a471db0210d7a27e52cb2d864d | bcefb43ee8c7b9690fd275cff502303099b72202 | refs/heads/master | 2023-03-25T17:38:58.115408 | 2021-03-26T10:28:15 | 2021-03-26T10:28:15 | 351,729,777 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,302 | py |
# Задание №3
my_file1 = open('text_1.txt', 'r')
content1 = my_file1.readlines()
print(f'Количество строк в файле1 - {len(content1)}')
my_file2 = open('text_2.txt','r')
content2 = my_file2.readlines( )
print(f'Количество строк в файле2 - {len(content2)}')
my_file3 = open('text_3.txt','r')
content3 = my_file3.read... | [
"kurskovp@gmail.com"
] | kurskovp@gmail.com |
61db38c6fff5ec768e392047ba9405acbc49c1da | ebd66a708457ed11c1063bd596727a5fd8c93d02 | /Notepad++/小红书:最长不降子序列.py | 7ef7d2913239d810955011cc599e79daaa2bb7b3 | [] | no_license | lovewyy/exam | f53647b2640b6d83326c8b77393f794e08845b41 | f8e30e944110d3b21e8477769cf218879cbdd65b | refs/heads/master | 2020-07-22T03:58:49.126161 | 2019-09-24T13:23:23 | 2019-09-24T13:23:23 | 207,066,681 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 612 | py | import sys
n = int(sys.stdin.readline().strip())
a = []
for i in range(n):
line = sys.stdin.readline().strip()
a.append(list(map(int, line.split())))
def func1(a):
return a[1]
def func0(a):
return a[0]
a.sort(key = func1)
print(a)
a.sort(key = func0)
print(a)
b = []
for i in range(n):
b.appen... | [
"lxclxc@126.com"
] | lxclxc@126.com |
6dba52157f9423fcce1040d984617cb4c4384391 | 760f612846c3c1f4cf8ccff929f93f469c993974 | /IAM/req.py | 0674695629581950b765305deb5f0da3f03c4829 | [] | no_license | keni-chi/AWS | da943b740f425c9ea0decb466eee1f90fb0479c7 | cf5f89300fe29124bad6a0cfeb1b55bbb3943084 | refs/heads/master | 2022-12-13T23:47:35.043833 | 2022-12-02T14:29:08 | 2022-12-02T14:29:08 | 165,391,253 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 920 | py | import requests
import json
from aws_requests_auth.aws_auth import AWSRequestsAuth
# STSToken
response = {"Credentials": {"AccessKeyId": "XXXXXXXX"}}
credentials = response['Credentials']
# request info
aws_host = 'XXXXXXXX.execute-api.ap-northeast-1.amazonaws.com'
url = 'https://' + aws_host + '/prod/functionA-1'
b... | [
"neko9dog9access@gmail.com"
] | neko9dog9access@gmail.com |
529df2d660f2c0c964cbbcdc35d016c7da8030ef | a66b31a9de7def4de6b26ea705617fbb412dadb0 | /COVID_19 detection/BERT/run_classifier.py | cc061cad00dfd025b743d503132841b9b61160c5 | [] | no_license | PHISSTOOD/COVID-19-rummor-detection | 6e471c9ced78b9131c5cd4b868de229f67922b69 | 3cb6b1034a108d7b778bfb7c67ce659b8468a0a9 | refs/heads/master | 2022-07-21T16:56:02.822888 | 2020-05-17T15:30:38 | 2020-05-17T15:30:38 | 264,697,206 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 31,152 | py | # coding=utf-8
# Copyright 2018 The Google AI Language Team Authors.
#
# 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"
] | PHISSTOOD.noreply@github.com |
7cecbeb3415d3934da46d952c6e585cd3932209e | da3e1c0a01c290593d9f6d378a5fb41e0cf0b237 | /Scripts/remove_duplicate.py | d2c7e667179c80091759af0a9145d17611261e8b | [] | no_license | phsiao91/python_learning | 32741ae623e3d7b4ff8a0328e3ad1af596dcac81 | 216e7b22cb649aba9ea60c0cbe486b145764c692 | refs/heads/master | 2023-05-14T16:15:56.254399 | 2021-06-08T23:46:55 | 2021-06-08T23:46:55 | 332,631,639 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 161 | py | numbers = [2, 6, 16, 8, 31, 41, 24, 6, 8, 45, 21]
uniques = []
for number in numbers:
if number not in uniques:
uniques.append(number)
print(uniques) | [
"phinganhsiao@gmail.com"
] | phinganhsiao@gmail.com |
a3d53c5c1f2d259358462eef485a49d3241f9904 | c3c996a134b0ab475f363c1bf644c9b6cecec42e | /leetcode/longest_substring_no_repeats.py | d41d5a0ebef9893cd442d68e6305f6710ac8758b | [] | no_license | alexinkc/prog-problems | 7ed424a3ce7ec5cf4f653a93a30e878e6e78a643 | 81d46d742e61215b90aee6865dc57ad622ef516c | refs/heads/master | 2021-08-29T22:17:34.835624 | 2017-12-15T05:16:38 | 2017-12-15T05:16:38 | 114,326,756 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,258 | py | class Solution(object):
"""
find the longest unique character substring in the string s. time complexity: O(n)
maintain a sliding range from i to j. Assume a longest substring from s[i]..s[j].
Store each character as a key in a dict, with
its respective value being its index in the string.
For s... | [
"alexmclaurian@gmail.com"
] | alexmclaurian@gmail.com |
39d16424c56d0f0764dbf16f4320096eecf18022 | eb84cb547ce9a43c5f2c7989bba84b6d74f3529e | /python/TTT/Players/minimax.py | 5a7eb2e8c0489cc69677a4820a6625b5f2ab75b8 | [] | no_license | Keitling/algorithms | 6a92b2dde68d717c03d9b1f4e29091124ef8318e | ad38a0341a37e7576b9ca014458f4cd24a5e2f85 | refs/heads/master | 2023-08-13T22:26:43.758938 | 2021-10-15T00:39:21 | 2021-10-15T00:39:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,235 | py | """
Minimax Tic-Tac-Toe player.
"""
import sys
sys.path.append('../GameLogic')
import gamelogic as provided
name = "Minimax"
# SCORING VALUES
SCORES = {provided.PLAYERX: 1,
provided.DRAW: 0,
provided.PLAYERO: -1}
def move_mm(board, player, trials=None):
"""
Make a move on the board.
... | [
"nemesis4go10@hotmail.com"
] | nemesis4go10@hotmail.com |
9db1b1956d09e1f8786b792370c44b29fba8a2e2 | 6efdf80d8075b5d3fc95046307a23fbf0f239785 | /doc/source/conf.py | 62bf9866c6266839fd9f64e12db2f84369b40c33 | [
"Apache-2.0"
] | permissive | Wilbert-Zhang/nuclei-sdk | 2e962be3219339f5e55d84b80a2cefbccda94ce0 | 74efdfb054a5d057e12609fd7fd9368e319eb6ef | refs/heads/master | 2021-02-26T20:28:12.484593 | 2020-03-04T04:01:26 | 2020-03-04T04:02:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,243 | py | # Configuration file for the Sphinx documentation builder.
#
# This file only contains a selection of the most common options. For a full
# list see the documentation:
# https://www.sphinx-doc.org/en/master/usage/configuration.html
# -- Path setup --------------------------------------------------------------
# If ex... | [
"hqfang@nucleisys.com"
] | hqfang@nucleisys.com |
95700aac6a23dba1d2ff5e33b581cf34c47ca05d | c91085f8311d5327f7256849a573e7923a729abd | /html/0090_code/util2.py | 5eb3384c81d8112cfbc3f2640b5bf68f7ff99b45 | [] | no_license | yuichi110/www.yuichi.com-python | 59903bd76b5ef70451377839f029618f5bb4b51c | 440b11e27248bf775f30dde9b6abe0e62ea10e7a | refs/heads/master | 2020-06-16T14:31:58.465782 | 2018-03-11T11:58:41 | 2018-03-11T11:58:41 | 94,149,071 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 36 | py | def test():
print('test')
test()
| [
"yito86@gmail.com"
] | yito86@gmail.com |
21470e9f54e3cb8b265549e85b3b6baecb59c5dd | 9f25ac38773b5ccdc0247c9d43948d50e60ab97a | /content/test/gpu/gpu_tests/webcodecs_integration_test.py | 6c42350ca65144ca9068a34c2a66514213254bdc | [
"BSD-3-Clause"
] | permissive | liang0/chromium | e206553170eab7b4ac643ef7edc8cc57d4c74342 | 7a028876adcc46c7f7079f894a810ea1f511c3a7 | refs/heads/main | 2023-03-25T05:49:21.688462 | 2021-04-28T06:07:52 | 2021-04-28T06:07:52 | 362,370,889 | 1 | 0 | BSD-3-Clause | 2021-04-28T07:04:42 | 2021-04-28T07:04:41 | null | UTF-8 | Python | false | false | 2,060 | py | # Copyright 2021 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import os
import sys
import time
from gpu_tests import gpu_integration_test
from gpu_tests import path_util
data_path = os.path.join(path_util.GetChromiumS... | [
"chromium-scoped@luci-project-accounts.iam.gserviceaccount.com"
] | chromium-scoped@luci-project-accounts.iam.gserviceaccount.com |
2699df5e343f682772b4e50daf6a2313b2858c4a | 429b1905ec09b4f3b1b640c64800286bc5bdd921 | /single-server.py | d87c314e9027742938813b5869c1e067ffde6454 | [] | no_license | hariton594/web | 57bd7b3032f3a5d4463a78dbd41baf5d400be159 | 072de8178b9963a663ba6387ef4c5c21cfb91f24 | refs/heads/master | 2021-01-10T11:33:23.458248 | 2016-03-16T17:31:36 | 2016-03-16T17:31:36 | 53,646,057 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 736 | py | import socket
s = socket.socket()
s.bind(('', 2222))
s.listen(1) ... | [
"hariton_stas@mail.ru"
] | hariton_stas@mail.ru |
82c0016fbcb397cc07b5f736ecc9521a7addc969 | 1361d634b8f5eeb060b0a25dada9e0d4d584beb6 | /generate.py | 31b85138277f0773c596b736acf5955f88cd7f08 | [
"MIT"
] | permissive | overskylab/python-auth_roundcube | 5cee0fb74baf659f357d6cc6b823a07877c21718 | f3af887c6717d45f1b7c5951d2ac91434ab40454 | refs/heads/master | 2021-01-11T07:16:19.967941 | 2016-11-03T07:10:21 | 2016-11-03T07:10:21 | 72,516,549 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,188 | py | #!/usr/bin/python
from datetime import datetime, timedelta
import random, string, os
class Generate:
def __init__(self):
self.title = 'This class to generate password as your need'
def password(self, length=6, special=0):
if special == 1:
chars = string.ascii_letters + string.digi... | [
"noreply@github.com"
] | overskylab.noreply@github.com |
4af6cca770e6d93be2a6efab6853f02acf4c0b95 | 996c920adbf99c78be2848e99707ee9a0db30d97 | /gallery/urls.py | dc86b0e84b88991f852bd53bb631540612d99f3f | [] | no_license | Bella-Amandine/gallery-app | 4c991c5d4a819cbfda3fd046f01db039cee3faea | 7dfba7e8b561bb9625bc5b9116d95d3c44e53854 | refs/heads/master | 2023-02-13T15:12:53.405938 | 2021-01-02T10:54:48 | 2021-01-02T10:54:48 | 322,631,772 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 819 | py | """gallery 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')
Class-ba... | [
"bellamandy45@gmail.com"
] | bellamandy45@gmail.com |
215d165cc62da96a342ace4a7d8752e088ad51b4 | a9cf474a7a257e48258f08a73f021cf89f77adee | /samples.py | 726e142c1b0955adcd981a7a987d96fbd4e60c18 | [] | no_license | mode89/vc | eb9fab15f31241570d799d9eef5a442dd366803b | cd205cf94b48b9fa7700dd6f7cceaf31f6f975b1 | refs/heads/master | 2020-12-09T09:30:04.997810 | 2015-11-27T09:47:29 | 2015-11-27T09:47:29 | 40,854,285 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,121 | py | import glob
import numpy
import os
import wave
class Sample:
def __init__(self, path):
file = wave.open(path, "r")
frame_count = file.getnframes()
self.frames = numpy.fromstring(file.readframes(frame_count),
dtype=numpy.int16) / float(2 ** 15)
self.frame_rate = file.get... | [
"mode89@mail.ru"
] | mode89@mail.ru |
f9fd0bb6eed8ef61e24348be845175a2aa74a99f | f6b339dc252a314b8c0a87b085a9a36bdb2eac69 | /blog/migrations/0001_initial.py | d410c11e2ad2a44db5c69ee58420ce6286203a15 | [] | no_license | schaggar/django3-personal-portfolio | f44b2ddec14fe54224d50e74d89751e2b24c3ed3 | 0816a24a816efd403dabff49e5e3799c95b9bd72 | refs/heads/master | 2022-12-06T07:51:47.726949 | 2020-08-22T14:24:53 | 2020-08-22T14:24:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 582 | py | # Generated by Django 3.1 on 2020-08-20 14:48
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Blog',
fields=[
('id', models.AutoField(auto_... | [
"saravjeet.singh@hotmail.com"
] | saravjeet.singh@hotmail.com |
e5f9a83b0e3eee542832fe69f6f89ce5d6a43c19 | c4444845012bb07ce6fdd2d5aed9725e31c0577a | /all_py/newegg_web.py | 81bf8217f0a65e43ccc80c7d72f4ac834ff9e617 | [] | no_license | AzhaarMohidden/image_down_search | 307494e5c7392b26ab1fa5b46de2852a067633a9 | f6c13f0fbd8810ed1085ef0c1d1b455af33f9073 | refs/heads/master | 2020-11-29T13:15:38.485224 | 2019-12-25T15:47:26 | 2019-12-25T15:47:26 | 230,121,499 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 739 | py | from bs4 import BeautifulSoup as soup
from urllib.request import urlopen as uReq
#my_url = 'https://vk.com/video?notsafe=1&q=anal'
my_url = 'https://www.porntrex.com/categories/anal/'
uClient = uReq(my_url)
page_html =uClient.read()
uClient.close()
page_soup = soup(page_html, "html.parser")
containers = page_soup.f... | [
"azhaarm94@gmail.com"
] | azhaarm94@gmail.com |
f6b9576f5930e6d0d3d09f7be33f07e1c47f70a9 | 35859245b22aa8439e8fd2a3dcb236df91face94 | /poc1/poc_mancala_student_v3.py | 93d6ca51c3a33aa0da57dc9a061a957b7cf8b873 | [] | no_license | victory118/foc_rice | dbf7a90a1e70baf268082621c47de05e9bd37f77 | 491f794e4f452490eefd38034ecd673459a04cd1 | refs/heads/master | 2021-10-11T16:31:55.734845 | 2019-01-28T15:56:33 | 2019-01-28T15:56:33 | 146,216,912 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,962 | py | Looking for Python 3? Try py3.codeskulptor.org!
Run (Accesskey R)
Save (Accesskey S)
Download
Fresh URL
Open Local
Reset (Accesskey X)
CodeSkulptor
Docs
Demos
Viz Mode
house zero corresponds to the store and is on right
houses are number in ascending order from right to left
... | [
"victory118@gmail.com"
] | victory118@gmail.com |
517d08e9b33117c08a698c910c44b1ed079c38e7 | 3c8cf9ff96cdc77cee8620a48bda9b3e911aea78 | /testPositiveEntries.py | fde2a6a8ac93c562624cd667cd107487f18e8265 | [] | no_license | ssmoewe/BA_Python_Code | d5139593f80f048791343dfb225cc63f18250a36 | 0fa2a65c43baef1564698d810b22bcef36edc28a | refs/heads/master | 2020-03-22T10:08:27.696849 | 2018-12-10T11:30:00 | 2018-12-10T11:30:00 | 139,883,448 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 910 | py | import os
import csv
import sys
import time
directory = "C:\\Users\\Arne\\bwSyncAndShare\\Linus-BA-EDR-Data (Richard Jumar)\\EDR0006_2016_L4I_csv"
t1 = time.time()
allFiles = len([name for name in os.listdir(directory) if os.path.isfile(os.path.join(directory, name))])
iterator = 0
for filename in os.listdir(directo... | [
"linus.engler4@gmail.com"
] | linus.engler4@gmail.com |
665cb7c3db67b3b75d40dcf622a36c3a3bcc2d1b | 2da6cab107e6189bf3f29d5029525b336547d408 | /Assignment2.py | a9529df72054610d4b83f6503318769d3dd1b41b | [
"Apache-2.0"
] | permissive | DHNGUYEN68/Application-of-Deep-Neural-Network | 4e1047511c0c2ffa40b5fc6e4434829df2a20c35 | 9c609f30cb15da9fb39a3589b50cb2a3617cd946 | refs/heads/master | 2020-04-07T10:49:14.015929 | 2018-11-23T14:32:26 | 2018-11-23T14:32:26 | 158,301,613 | 0 | 0 | Apache-2.0 | 2018-11-19T23:07:15 | 2018-11-19T23:07:15 | null | UTF-8 | Python | false | false | 9,784 | py |
# coding: utf-8
# In[ ]:
import os
import sklearn
import pandas as pd
import numpy as np
import tensorflow.contrib.learn as skflow
from sklearn.cross_validation import KFold
from scipy.stats import zscore
from sklearn import metrics
from sklearn import preprocessing
from sklearn.cross_validation import KFold
from sk... | [
"henryfeng1008@126.com"
] | henryfeng1008@126.com |
9b3e9a53a8ca23b453acfac6da8baab1f428b4f3 | 9214728da797cdad0300d854113ba41c7a522f9d | /Main.py | 40305859e0d3651539c8eff04068cdcae005ba14 | [] | no_license | Muhammad-Osama31/pancake-Problem | f9fe37e990e33992426b2787ad32571ada7b8075 | 5edf50f6ad827c770e315c3f37f6b279ed22801f | refs/heads/master | 2022-07-26T05:06:23.320333 | 2020-05-16T10:51:36 | 2020-05-16T10:51:36 | 264,415,918 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 414 | py | if __name__ =='__main__':
# 0,8,7,6,5,4,3,2,1
goal = [0,1,2,4,5,6,7,8,9,10,11,12]
heuristic = Greedy(goal)
searchProblem = pankcakeproblem([10,9,4,6,3,7,12,11,,8,5,3,2,1], goal)
searchStrategy = GreedySearch(heuristic)
search = Search(searchProblem, searchStrategy)
result = search.solveProblem()
if result... | [
"noreply@github.com"
] | Muhammad-Osama31.noreply@github.com |
828f32e305d7ca3322babf7d52f911304cd842a2 | 7e160316663c37d23df9346e8390fcba5460ea00 | /Django/crud_board/board/models.py | 686a91ca6e3b02a6e62e4068db458885fd144693 | [] | no_license | calofmijuck/2018WaffleStudio | 5f96594a2c2f5764f1cfb696ab03f3bddd14b0be | 4ddc85916b6420dcd61f4ce76d5541e023b10874 | refs/heads/master | 2021-06-07T09:36:31.058129 | 2020-01-21T15:36:32 | 2020-01-21T15:36:32 | 150,717,634 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 735 | py | from django.db import models
from django.urls import reverse
# Create your models here.
class Post(models.Model):
title = models.CharField(max_length=140)
content = models.TextField()
author = models.CharField(max_length=40)
created_at = models.DateTimeField(auto_now_add=True)
modified_at = model... | [
"noreply@github.com"
] | calofmijuck.noreply@github.com |
d47b3b64babd6d4f72e784d8842b05c14bdeb686 | 3627bf10d438665c5ac1320c4d91bf69821cb6e7 | /main.py | a65b4e7332fec3dad9502ead6a6e445bd7963ffa | [
"WTFPL"
] | permissive | Johan-Mi/PingPongBot | 4dc79dab48ff1637f63300a23bf7c88e1bbdd265 | 60afe66544639de4fcb321aa48f7eb5264c7400b | refs/heads/master | 2023-01-28T20:24:24.953225 | 2020-12-07T17:30:49 | 2020-12-07T17:30:49 | 278,606,177 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 878 | py | #!/usr/bin/env python3
"""This module contains the ping pong bot, which responds to messages that
contain the word 'ping'."""
import re
import discord
client = discord.Client()
@client.event
async def on_ready():
"""Lets you know when the bot starts."""
print(f"Discord version: {discord.__version__}")
p... | [
"johanmilanov@outlook.com"
] | johanmilanov@outlook.com |
e6d69ed90a24e786c6d568dfc9b49d4cb145ac24 | d3419120a66da711887697800a0aece10a009a52 | /restapi-teach/backend/tests/cases/course2/conftest.py | e692acaa56a29d16a2ad03cc9eac896afb57bd83 | [] | no_license | zscdh1992/test | ca96f80e66d96f77883af4a4a9a067a39f6288b0 | d88d99c327bf8aaaf2fc201fcf891ce9d05b7edd | refs/heads/master | 2020-07-26T22:30:18.109138 | 2019-09-16T12:01:51 | 2019-09-16T12:01:51 | 208,784,364 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 231 | py | import pytest
@pytest.fixture(scope='package',autouse=True)
def couse2(request):
print("*** !!! couse2 setting up ***")
def teardown():
print("*** !!! couse2 tear down ***")
request.addfinalizer(teardown) | [
"1002711754@qq.com"
] | 1002711754@qq.com |
bfe37cde5dbbfe4bd88752353a379bbf9eec65f1 | eadcdcdbe46a5208f163ef22e668e42d6fff94a6 | /customSDK/servicefabric/models/setting_py3.py | 8e51284c997f5b15f33472171b6c5f679e3b6861 | [
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | yu-supersonic/service-fabric-cli | beed8c4b4d8a17a5fbcb5d0578a8e6c166dd9695 | cc2838597e7d236852c6d95e1b5c54980e0fac96 | refs/heads/master | 2023-04-11T15:04:25.213876 | 2021-02-25T19:39:23 | 2021-02-25T19:39:23 | 348,077,179 | 0 | 0 | NOASSERTION | 2021-04-07T11:33:05 | 2021-03-15T18:16:11 | null | UTF-8 | Python | false | false | 1,606 | 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 ... | [
"noreply@github.com"
] | yu-supersonic.noreply@github.com |
0efce220f61576109fdfa2a5c69ec7994cf7825b | 47aa27752421393451ebed3389b5f3a52a57577c | /src/Lib/test/test_asyncore.py | 3018cf75cb7e1dcc6ed52e4e2713c0fa26e1209a | [
"MIT"
] | permissive | NUS-ALSET/ace-react-redux-brython | e66db31046a6a3cd621e981977ed0ca9a8dddba9 | d009490263c5716a145d9691cd59bfcd5aff837a | refs/heads/master | 2021-08-08T08:59:27.632017 | 2017-11-10T01:34:18 | 2017-11-10T01:34:18 | 110,187,226 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 27,523 | py | import asyncore
import unittest
import select
import os
import socket
import sys
import time
import warnings
import errno
import struct
from test import support
from test.support import TESTFN, run_unittest, unlink, HOST, HOSTv6
from io import BytesIO
from io import StringIO
try:
import threading... | [
"chrisboesch@nus.edu.sg"
] | chrisboesch@nus.edu.sg |
53cb07a0d22ea3a2429216985c1150d2d1273144 | 09c7f9719517a2d7fee9a784276dcbc898ad8160 | /beagleBoxRasp/beagleBoxRaspCode.py | d3fef1980a63372809d9d7dad1ecae437d3b9ed6 | [] | no_license | BeagleBox/beagleBox_Eletronica | 3e89b86f8fe9be314af263d7d5fae04cc2f2e68c | 13280c9dd27873b17512d8619688f6727ca00df9 | refs/heads/master | 2021-06-18T16:43:24.277618 | 2017-07-02T18:03:32 | 2017-07-02T18:03:32 | 93,672,889 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,070 | py | # No caso eu to mandando uma mensagem "aviso" e "Desolocamento"
# pra identificar o tipo de dado que eu estou enviando,
# a questão do nivel de bateria, e da balança a agente vai pegar da propria placa,
# ou seja, vai tá disponível a todo momento, não vai vir do arduino
import RPi.GPIO as GPIO
import time
import se... | [
"hdcjuninho@gmail.com"
] | hdcjuninho@gmail.com |
8e0fb7e19066bff63db68684d7a0451e3083fed4 | e2bd9a2f5db45cee5456e7f48d7418af2d4081e4 | /DynamicProgramming/LCS/PrintSCSuperSequence.py | 2751b53c3e09578058e91ca0d5bf4d6569db1068 | [
"MIT"
] | permissive | 26tanishabanik/Interview-Coding-Questions | 9b46b9e943cc0547ea4a9d4af833f6ee24d4d616 | dfed88c7067fcfcb3c1929730464ad12389d1da6 | refs/heads/main | 2023-08-17T05:41:54.617103 | 2021-10-05T07:08:02 | 2021-10-05T07:08:02 | 413,709,370 | 1 | 0 | null | 2021-10-05T07:03:56 | 2021-10-05T07:03:55 | null | UTF-8 | Python | false | false | 1,503 | py | '''
Given two strings str1 and str2, return the shortest string that has both str1 and str2 as subsequences.
If multiple answers exist, you may return any of them.
(A string S is a subsequence of string T if deleting some number of characters from T
(possibly 0, and the characters are chosen anywhere from T) results ... | [
"mahankalisaicharan@gmail.com"
] | mahankalisaicharan@gmail.com |
5d106286401eb861ce4ca131c415bf3aa36cf860 | 2a60d6095dad452eabcbf99583421435126c2a3c | /home/migrations/0097_auto_20180911_1919.py | 411cd3b2c6c3b144769b696d28cccd5c8c702240 | [] | no_license | dentemm/healthhouse | 7aa6dd68363f6ad0c76e3aaa83d74707930e9e34 | da76f4406e9fb134ab8d94cf5f7f968523939b44 | refs/heads/master | 2023-03-19T21:08:07.136774 | 2023-03-12T19:45:23 | 2023-03-12T19:45:23 | 92,063,083 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,353 | py | # Generated by Django 2.0.7 on 2018-09-11 19:19
from django.db import migrations
import wagtail.core.blocks
import wagtail.core.fields
import wagtail.images.blocks
class Migration(migrations.Migration):
dependencies = [
('home', '0096_auto_20180911_1917'),
]
operations = [
migrations.Al... | [
"tim.claes@me.com"
] | tim.claes@me.com |
4f431509568bd27c45f52f4280cc40dcc68d86dd | 6bdb32ddbd72c4337dab12002ff05d6966538448 | /gridpack_folder/mc_request/LHEProducer/Spin-2/BulkGraviton_WW_WhadWhad/BulkGraviton_WW_WhadWhad_narrow_M4500_13TeV-madgraph_cff.py | 7e6dfa7d29a8f12fbc0e6cd0897dc8190314a5f5 | [] | no_license | cyrilbecot/DibosonBSMSignal_13TeV | 71db480de274c893ba41453025d01bfafa19e340 | d8e685c40b16cde68d25fef9af257c90bee635ba | refs/heads/master | 2021-01-11T10:17:05.447035 | 2016-08-17T13:32:12 | 2016-08-17T13:32:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 759 | py | import FWCore.ParameterSet.Config as cms
# link to cards:
# https://github.com/cms-sw/genproductions/tree/master/bin/MadGraph5_aMCatNLO/cards/production/13TeV/exo_diboson/Spin-2/BulkGraviton_WW_WhadWhad/BulkGraviton_WW_WhadWhad_narrow_M4500
externalLHEProducer = cms.EDProducer("ExternalLHEProducer",
args = cms.v... | [
"syu@cern.ch"
] | syu@cern.ch |
66f5083717011c1209ab870fbda9e2804badb4e4 | d091ab3f316066327c3daf66814803516e73be18 | /AITrans_Competition_withRainbow/memory.py | 8743ea3e7f306fa440ce1a1d2704247bba413101 | [] | no_license | lilyhpeng/AItrans-2019-MMGC | c53f1c3d6136ddd1ab248794a3a82b6b3ad972ba | d8fb03eb70be75684f1e3b0e4d31d29956269ef9 | refs/heads/master | 2023-06-08T18:09:47.515957 | 2021-06-27T07:52:57 | 2021-06-27T07:52:57 | 380,681,345 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,388 | py | from collections import namedtuple
import numpy as np
import torch
Transition = namedtuple('Transition', ('timestep', 'state', 'action', 'reward', 'nonterminal'))
blank_trans = Transition(0, torch.zeros(84, 84, dtype=torch.uint8), None, 0, False)
# Segment tree data structure where parent node values are sum/max of... | [
"peng_h30@163.com"
] | peng_h30@163.com |
8e94d6b6e9eab0ee3e5aae875fea2da1e8c09c25 | eddba20dfd883e6ac710fd7c7035a9da1a06ff96 | /dataprep/CombineEventFiles.py | c7b30741a1fe034ab6c597b869f4a893230edaff | [] | no_license | philippwindischhofer/HiggsPivoting | cc64ea6f75919c78a88ae4a182e30eb6f2669767 | c103de67d4c8358aba698ecf4b1491c05b8f6494 | refs/heads/paper | 2022-11-27T18:03:17.491300 | 2020-04-15T14:39:43 | 2020-04-15T14:39:43 | 193,477,990 | 3 | 0 | null | 2022-11-21T21:31:39 | 2019-06-24T09:46:32 | Python | UTF-8 | Python | false | false | 1,772 | py | import os, glob
from argparse import ArgumentParser
from h5add import h5add
def IsGoodEventFile(eventfile):
try:
import pandas as pd
df = pd.read_hdf(eventfile)
return True
except:
return False
def CombineEventFiles(indir, channel):
from CombineLumiFiles import IsGoodLumiF... | [
"philipp.windischhofer@cern.ch"
] | philipp.windischhofer@cern.ch |
1e380dd89f23fb303d9f546af9e4298c9b1f44de | cd784ca69d8cc3d1977cd86296052c556e7050ff | /week8/venv/bin/wheel | 8dd655b5046ec634eebcb7dc6be179fbe01c0a29 | [] | no_license | bennerl/qbb2016-answers | 15d7c67b927ecb4c175dcc8b1669e952c12cbefc | 2868aae69f1105e6aa20fdb7e99c139f3ca88e82 | refs/heads/master | 2020-12-01T16:37:42.568744 | 2016-11-28T03:12:41 | 2016-11-28T03:12:41 | 74,932,378 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 248 | #!/Users/cmdb/qbb2016-answers/week8/venv/bin/python2.7
# -*- coding: utf-8 -*-
import re
import sys
from wheel.tool import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"leif.benner@gmail.com"
] | leif.benner@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.