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
6e1aa88b726678e7f8b9712a1ce89865aa0879a7
98819f2bd523a159a5ea820f76f1705879048b32
/osb-proxy/editPOIexec
781f1de029acd8cff60eec463b1f255a790500dd
[]
no_license
cboehme/mappa-mercia
97f9bcf11b4950772acf28c0f5fb0d14c2dee008
6a63007587d54c9771c71e707b734495b3041cdf
refs/heads/master
2023-07-19T04:43:12.884620
2021-09-09T11:55:08
2021-09-09T11:55:08
305,172,339
0
0
null
null
null
null
UTF-8
Python
false
false
832
#!/usr/bin/env python import MySQLdb import cgi import re def main(): print "Content-type: text/html\n" form = cgi.FieldStorage() values = {} values["id"] = form.getfirst("id", "") values["text"] = form.getfirst("text", "") # Check that parameters have a valid format: if not re.match(r"^\d+$", values["id"]):...
[ "christoph@b3e.net" ]
christoph@b3e.net
308b48444a600edc33da2bb114ac11b915fe08b0
07009e377963302aaebb44861d1e96c4de359b7c
/maio/management/commands/maio_getimages.py
cb4597b04599b7b0001a3706b628a8d80a9e8bc4
[ "MIT" ]
permissive
jonmsawyer/maio_old
3489307ecb02b54317ec7e88554b0acb973434ec
3670d0fe2a4e9173ac3d02fe7b629f563e935894
refs/heads/master
2021-06-21T09:00:18.703397
2017-07-08T20:54:06
2017-07-08T20:54:06
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,306
py
import os import sys import hashlib import magic from PIL import Image from django.core.management.base import CommandError import django.db.utils from maio_core.models import File from maio.management.commands._base import MaioBaseCommand class Command(MaioBaseCommand): args = '<None>' help = 'Generates a ...
[ "jon@jonmsawyer.com" ]
jon@jonmsawyer.com
dfa597d173fb2935cab5373869ba275323196172
7b1119c13af2a2c165d860123499ea1eba02b0f2
/Own Implementation Final/activation.py
932da22c017c53272c91e249e28f8fab421cee30
[]
no_license
mohamed-minawi/RNN
232adf641b9037357d680ff968d18e87d41bfdab
bfc452a650153967189139c51ed289a70e14b5ad
refs/heads/master
2020-03-22T13:10:43.867256
2018-07-07T14:13:54
2018-07-07T14:13:54
140,088,891
0
0
null
null
null
null
UTF-8
Python
false
false
410
py
import numpy as np class Sigmoid: def forward(self, x): return 1.0 / (1.0 + np.exp(-x)) def backward(self, x, top_diff): output = self.forward(x) return (1.0 - output) * output * top_diff class Tanh: def forward(self, x): return np.tanh(x) def backward(self, x, top_di...
[ "mohamed-minawi@aucegypt.edu" ]
mohamed-minawi@aucegypt.edu
3230985ef9f2fafe228c5e3b1cd89a0fefb064cb
d5c8ca88c643492b95ca57e972b76bcc56aac251
/maker/l18n_maker/mktrans.py
9400be853f3388d9df62420c264846f9177cdd52
[ "MIT" ]
permissive
olopost/l18n
b8462e6cd5eed0293e9e18cde23c850bc8553514
c6ef71a94f32537d5c072b493b94d35ee06d9bf4
refs/heads/master
2020-03-19T16:14:17.737843
2018-06-09T09:12:34
2018-06-09T09:12:34
136,706,924
0
0
null
null
null
null
UTF-8
Python
false
false
9,664
py
import os import codecs from collections import defaultdict from datetime import datetime from copy import deepcopy import re from itertools import chain import pytz import polib import six from lxml import etree as ET from .compat import configparser from .settings import LOCALES, PO_PATH, PY_PATH from .helpers impo...
[ "samuel@meyn.fr" ]
samuel@meyn.fr
4c746a134c722966896c1d1fd737f5e6b1e8bd09
dfa0f11043ea0848526ec069efb644c715fdf67c
/AppiumGS V0.1/Logic/Base.py
56aa7b37c92af587130eff1f7d26f1213518471f
[]
no_license
shaonianshaonian/appiumyaml
81f4578863019ed07a9010c1232d3ed4f7d6bb12
0e00e8dc34ce7d8a0e6b83371b02a564bb89f4fb
refs/heads/master
2020-12-30T11:28:02.398290
2017-05-23T02:21:02
2017-05-23T02:21:02
91,561,834
0
0
null
null
null
null
UTF-8
Python
false
false
4,168
py
__author__ = 'shaonianshaonian' from appium import webdriver from selenium.webdriver.support.ui import WebDriverWait import time class Base: driver = None desired_caps = {} desired_caps['platformName'] = 'Android' desired_caps['platformVersion'] = '5.1' desired_caps['deviceName'] = '192.168.12.101...
[ "953577962@qq.com" ]
953577962@qq.com
f889324acec930ae67fcd208eae5a87585845cd0
2cda9caaa7a0f070139e39cae13744b11e0066ec
/Day5Class/NSAEncoder3.py
61b8b4c2abf814d71896f4ba16966cabb79187de
[]
no_license
sc137/WASTC_Programming_Concepts_Python
68df4e5cf016c56c571cc2ef51f1919e6140bf4d
3f8d2ed614d04087e2211fa7a603c1b5a1e12c79
refs/heads/master
2021-01-19T00:31:29.481577
2016-07-05T19:05:35
2016-07-05T19:05:35
61,576,736
1
1
null
2016-06-24T20:54:59
2016-06-20T20:06:01
Python
UTF-8
Python
false
false
729
py
# version 1.0 fin = open('input.txt') fout = open('output.txt', 'w') encoded = [] decoded = [] while True: sOld = fin.readline() sNew = "" if len(sOld) == 0:break for i in range(len(sOld)): sNew = chr(ord(sOld[i]) - 1) encoded[len(encoded):] = [sNew] # Inserts at the end i +=...
[ "sales@dansid.com" ]
sales@dansid.com
7586bcfb03e48fa8291c02cce4d8609e56263346
b7303814936202841acc710b793c7f9fc26ef6d9
/project-job-insights/src/jobs.py
49c761de2c98f1c4af8e0a3976d9187bccdfd63f
[]
no_license
victor-felipe-code/projetos_trybe
4027aaa77f12180b051aea032fa4ef75ed7e9084
8e9d8c4a716321ab6b14eadd3de371326bbaf06a
refs/heads/master
2023-08-16T21:57:42.994317
2021-09-27T19:08:08
2021-09-27T19:08:08
null
0
0
null
null
null
null
UTF-8
Python
false
false
820
py
import csv from typing import List def read(path: str) -> List[dict]: """Reads a file from a given path and returns its contents Parameters ---------- path : str Full path to file Returns ------- list List of rows as dicts """ # esse cรณdigo estava com algum comp...
[ "victorfelipeoliveira1@gmail.com" ]
victorfelipeoliveira1@gmail.com
3250c742e18eed7ddfe5a22d65db4e60f3926cbe
4039fa476687096b4cc6e931da6e81bc2f5f136b
/guestbook/migrations/0001_initial.py
818ec5376f6f2966eb42ad91719a4eeaa23caa4e
[]
no_license
Kuzzmich/broomtrade
469073625d0e880640641defd939759639399009
93f82de850e8b9148adfd89f2158fb575d6cb73f
refs/heads/master
2020-03-08T20:19:34.258706
2018-06-07T12:45:31
2018-06-07T12:45:31
128,379,107
0
0
null
null
null
null
UTF-8
Python
false
false
973
py
# Generated by Django 2.0 on 2018-04-11 09:18 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Guestbook', fields=[ ('id', models.AutoField(...
[ "kramin.alexey@gmail.com" ]
kramin.alexey@gmail.com
a92459e9e8ae533390d8cd2ec5542ac8dbe5714e
7e9977bbf988fe2136529640afb08460cce833bc
/HeroRegistrationProj/manage.py
c117eea3936972ec247c0372ef508f7c1c854c19
[ "Apache-2.0" ]
permissive
cs-fullstack-2019-spring/django-fields-widgets-cw-itayanna
b8c761376f89fd0c8b4d2fead46b5dc75a7194df
7702fe9b541dfaf5ac0458729bcdacd538b6c232
refs/heads/master
2020-04-27T13:24:13.427170
2019-03-12T14:37:11
2019-03-12T14:37:11
174,368,562
0
0
null
null
null
null
UTF-8
Python
false
false
552
py
#!/usr/bin/env python import os import sys if __name__ == "__main__": os.environ.setdefault("DJANGO_SETTINGS_MODULE", "HeroRegistrationProj.settings") try: from django.core.management import execute_from_command_line except ImportError as exc: raise ImportError( "Couldn't import...
[ "icage97@gmail.com" ]
icage97@gmail.com
744c28d6995722779eb62143a829e3a0342ff3aa
600879a175c0d077ffdc7f06b630517eedc712c7
/parser.py
950b7c097dd191064002d04fe052056881e4a763
[]
no_license
lebahoang/cooking-chatbot
7a41ae5275f81c1bc5f09d4a751abcbc66774be2
36c2dd74d29aa9f1e28a399651e36c65fbb4c06d
refs/heads/master
2021-01-20T15:09:47.185166
2017-05-15T04:19:33
2017-05-15T04:19:33
90,725,178
0
0
null
null
null
null
UTF-8
Python
false
false
3,376
py
import os import functools import bson import optparse import pykka import time import Discusscooking import Crutils class DiscussActor(pykka.ThreadingActor): def __init__(self): super(DiscussActor, self).__init__() self.posts = [] self.site = Discusscooking.Discusscooking(runPreConfig=False) def pars...
[ "hoang.le@zinio.com" ]
hoang.le@zinio.com
07a63215fea749792f50a56c355479e76e5b0bc7
d180a90cdf7a3fb49117652ad437fdea8718b0cd
/clipped_linear.py
939f7d3efcf9ba1fff5eb58c311d2dfd5dc4c2c6
[]
no_license
parap1uie-s/Co-Adaptive-Mixed-Precision-CNNs
31d08048cda2114919afd470321ddec2ec31e49e
3ea45558bc18f22b4b33b5127b9c349187440898
refs/heads/master
2020-11-23T19:10:30.879703
2019-12-16T10:22:33
2019-12-16T10:22:33
227,783,568
1
0
null
null
null
null
UTF-8
Python
false
false
10,513
py
# # Copyright (c) 2018 Intel Corporation # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
[ "shangfangxin@ShangFangxin.local" ]
shangfangxin@ShangFangxin.local
1994b2ed70e786f28ee1b7718183c2fd83e2f3a8
4f0195aa9a3a161f898bc85d7081792875ee096b
/test.py
c7f90cb17921659789c931821ed2354cde89e761
[ "Apache-2.0" ]
permissive
dheeraj135/Flow-Free-Solver
141b789b0048493d6fff3a3fe380ccfcb5024979
325d377f9e0786105e64a893d91491a85abe38a5
refs/heads/main
2023-01-29T02:14:33.054486
2020-12-10T19:14:44
2020-12-10T19:14:44
319,928,400
0
0
null
null
null
null
UTF-8
Python
false
false
207
py
from z3 import * def solve(phi): s = Solver() s.add(phi) r = s.check() if r==sat: print("sat") m = s.model() print(m) else: print("unsat") solve(phi)
[ "dhirajyadav135@gmail.com" ]
dhirajyadav135@gmail.com
64e6e5f1b7535a036a951d60f63e3f0d13603ffd
40bb50de9c868dc8ac23c426a9f8386ac463d18f
/src3/dataset.py
531220c9f7bc8d384f2bf3385cfe0eab2309274d
[]
no_license
durbin-164/Bengali_Ai
8dcfd23e96a2c446315a542eb00528c6c468b384
36beb6da1bc04a4e4e83082dd080290f06bad161
refs/heads/master
2022-04-08T03:49:22.689816
2020-03-12T16:09:00
2020-03-12T16:09:00
242,517,152
0
0
null
null
null
null
UTF-8
Python
false
false
2,474
py
import pandas as pd import joblib from PIL import Image import albumentations import numpy as np import torch class BengliDatasetTrain: def __init__(self, folds, img_height, img_width, mean, std): df = pd.read_csv('../input/train_folds.csv') df = df[['image_id', 'grapheme_root','vowel_diacritic', ...
[ "masud.rana@infolytx.com" ]
masud.rana@infolytx.com
10f5ab79003ff1e2cbfd7c31754b890b1ab31a6d
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03283/s440786665.py
fe6e5bf6654473cf6b9ff410adac87f56d2c24dd
[]
no_license
Aasthaengg/IBMdataset
7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901
f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8
refs/heads/main
2023-04-22T10:22:44.763102
2021-05-13T17:27:22
2021-05-13T17:27:22
367,112,348
0
0
null
null
null
null
UTF-8
Python
false
false
1,237
py
class BIT: def __init__(self, n): self.n = n self.bit = [0]*(self.n+1) # 1-indexed def init(self, init_val): for i, v in enumerate(init_val): self.add(i, v) def add(self, i, x): # i: 0-indexed i += 1 # to 1-indexed while i <= self.n: ...
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
e08be3ba1cb5e7385ca2ee43f750efd00c3a8623
ecc3dd38ed577fe3d8eff65ab36e9123a3f9f48f
/Clustering/AngelCalvoTask1.py
1fc98490623b243d5c08b59c18963223cb5b1514
[]
no_license
AngelCalvoGrande/MachineLearningTechniques
813299c394a805d5c422b9e1d426ffc0c4bdcfde
ac124af84581888fb73a64e263c865db3d42145a
refs/heads/master
2020-08-09T06:40:46.469766
2020-01-31T22:35:20
2020-01-31T22:35:20
214,023,834
0
0
null
null
null
null
UTF-8
Python
false
false
3,639
py
# -*- coding: utf-8 -*- """ Editor de Spyder Este es un archivo temporal """ import pandas as pd from mpl_toolkits.mplot3d import Axes3D #0 . Load the data # read the csv df = pd.read_csv("T2.csv") # list the columns list(df) # print number of rows and columns print (df.shape) # 1. Filtering # 1.1 Filter rows...
[ "noreply@github.com" ]
AngelCalvoGrande.noreply@github.com
a4739e6b7b3fa154e27241a940dfcb81a0f52890
3ce0e97886f4ab528470653991aebbde29b0c4eb
/catalog/tests/test_models.py
f4f4e9c867427250fc2d128bed151587bc0de567
[]
no_license
ahashim01/django-locallibrary
5f4ef97c964e4a3a44aa936d687039a0e20300f7
d661336e8a258a9959918d0a070ada509e3c49e9
refs/heads/main
2023-06-25T21:53:51.898114
2021-07-23T14:42:14
2021-07-23T14:42:14
388,821,839
0
0
null
2021-07-23T14:42:15
2021-07-23T14:06:11
Python
UTF-8
Python
false
false
1,356
py
from django.test import TestCase from catalog.models import Author # Create your tests here. class AuthorModelTest(TestCase): @classmethod def setUpTestData(cls): # Set up non-modified objects used by all test methods Author.objects.create(first_name='Big', last_name='Bob') def test_first_...
[ "ahmedalaahashem01@gmail.com" ]
ahmedalaahashem01@gmail.com
885ab0e81a4c8b85a9a027b63a65dd41a961590c
63eae9dff408b3b8e3fa22fcfcbb012b025854bf
/shop/templatetags/app_filters.py
a440fed183a07d8b1b47772206ced7f0bffbd742
[]
no_license
adityasam1994/dlw
2fe88858ea80e1d04cd3c9349ecdbcf41f24bb30
e0bc5a0b8f52e1deaa655d3d95d4860285a059bb
refs/heads/master
2020-08-09T03:40:31.143100
2019-10-16T09:51:16
2019-10-16T10:00:07
213,988,198
0
0
null
null
null
null
UTF-8
Python
false
false
6,382
py
from django import template from django.template.defaultfilters import stringfilter import datetime from django.utils import timezone register = template.Library() @register.filter(name='getimage') @stringfilter def getimage(string): from shop.models import Image im = Image.objects.filter(product_id=int(strin...
[ "adityanath1994@outlook.com" ]
adityanath1994@outlook.com
bbf927c655fcaa281080a77ef766b9c16e906256
907edfeeccf9a11cbc8dbe7d104cbaa9d561baf1
/Algorithms/Embedding/2. Density Text/Error Diffusion/Density Sierra.py
813557e39c97ed85203207fcc6ea9d7b0da55ba0
[]
no_license
JGPreston/Final-year-project
c31076e006f3d20505d4e12501ebb281c822e10e
f46e932bc6fcf22f242c332dc52dd2a05da2a239
refs/heads/master
2023-08-17T19:40:29.165112
2021-10-10T16:59:06
2021-10-10T16:59:06
415,642,079
0
0
null
null
null
null
UTF-8
Python
false
false
10,682
py
from PIL import Image import time import numpy as np import binascii import os import traceback import re import statistics import collections import matplotlib.pyplot as plt from collections import Counter #Excel import openpyxl #Add path to directory import sys sys.path.append("../../../Analysis/PSNR+SSIM/") from...
[ "32721120+JPreston-1@users.noreply.github.com" ]
32721120+JPreston-1@users.noreply.github.com
3a12ef11cb456aa1655cff4b35934ba431905c60
f09e98bf5de6f6c49df2dbeea93bd09f4b3b902f
/google-cloud-sdk/lib/surface/kms/__init__.py
0d7325c69d646db4cfbaff6358f3574909329d0a
[ "LicenseRef-scancode-unknown-license-reference", "Apache-2.0" ]
permissive
Peterfeng100/notepal
75bfaa806e24d85189bd2d09d3cb091944dc97e6
d5ba3fb4a06516fec4a4ae3bd64a9db55f36cfcd
refs/heads/master
2021-07-08T22:57:17.407571
2019-01-22T19:06:01
2019-01-22T19:06:01
166,490,067
4
1
null
2020-07-25T04:37:35
2019-01-19T00:37:04
Python
UTF-8
Python
false
false
1,892
py
# -*- coding: utf-8 -*- # # Copyright 2017 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requir...
[ "kevinhk.zhang@mail.utoronto.ca" ]
kevinhk.zhang@mail.utoronto.ca
7e0d640376e63f86e98bb1d374db75fba481468c
98db4a1bb76ec58a5c42996a0e571c75913f40d6
/exercise32.py
e702477a06deb0f09b706a2fd825a02dc267d8e9
[]
no_license
YoChen3086/PythonPractice
f26479e1c5c9494a20b47425336469101aded53b
cea760699fc9e55106d562b1d63f547190ac98b5
refs/heads/master
2020-05-13T22:31:38.652864
2019-04-16T10:37:04
2019-04-16T10:37:04
181,668,304
0
0
null
null
null
null
UTF-8
Python
false
false
114
py
# ้ข˜็›ฎ๏ผš # ๆŒ‰็›ธๅ็š„้กบๅบ่พ“ๅ‡บๅˆ—่กจ็š„ๅ€ผใ€‚ a = ['one', 'two', 'three'] for i in a[::-1]: print (i)
[ "d87487575107@gmail.com" ]
d87487575107@gmail.com
d8391906f8bb05e5ab2dfe59b8402466d2ee2299
c937ffde5434414f9ca37d8efa82a8419a8b5ff7
/scikitlearn-tensorflow/bin/jupyter-migrate
9b54c32c8528612148809c6baa8e148a1ef7c0d7
[ "MIT" ]
permissive
mscienski/ScikitLearn-Tensorflow
97c45f0bdcb95342ba18560e9f752ec5406fe91f
9a10686c08e3b4cf0afe1da8f3a29e67148b6e51
refs/heads/master
2021-05-08T07:14:58.896983
2017-11-24T20:17:43
2017-11-24T20:17:43
106,726,721
0
0
null
2017-11-24T20:17:44
2017-10-12T17:52:30
null
UTF-8
Python
false
false
293
#!/Users/michalscienski/code/ScikitLearn-Tensorflow/scikitlearn-tensorflow/bin/python3.6 # -*- coding: utf-8 -*- import re import sys from jupyter_core.migrate import main if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) sys.exit(main())
[ "michalscienski@workfront.com" ]
michalscienski@workfront.com
59126b8ece1459e9fd42f05f6d93addec62fcf95
8698757521458c2061494258886e5d3cdfa6ff11
/word_embeddings/test/cross_validation_similarity.py
d138d4f193b83f117eac6f5e0a6ce69b794d605a
[ "MIT" ]
permissive
ricvo/argo
546c91e84d618c4bc1bb79a6bc7cba01dca56d57
a10c33346803239db8a64c104db7f22ec4e05bef
refs/heads/master
2023-02-25T01:45:26.412280
2020-07-05T22:55:35
2020-07-05T22:55:35
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,995
py
# export LC_ALL=en_US.UTF-8. import pickle from core.measures import evaluate_similarity_on_reverse_split import numpy as np import pandas as pd import argparse import os def evaluate_cross_sim_and_org(dictionary, dataset, i_split, dataset_split, method, couples_data, ntop=1, cvcorrs={}): p, I_inv, DV, I_norm, I...
[ "volpi@rist.ro" ]
volpi@rist.ro
2f418c58a6958c6e075720c48b9b2b0d5305095f
41ee6c4358b09979a4a4373933752b04ebba2025
/TP7/rl/cellular.py
2f282439f5c0a9ef57ce550b0e1b8090c50269e8
[]
no_license
sromany/Apprentissage
897e3ec9df797fa171512e15d35f4aa12ea145f0
a9233aa6fb5c2e42c3da5c4a0df6d49be2554057
refs/heads/master
2021-06-13T00:44:14.898081
2017-03-07T11:55:44
2017-03-07T11:55:44
null
0
0
null
null
null
null
UTF-8
Python
false
false
19,852
py
# coding=utf-8 import random import sys neighbourSynonyms = ('neighbours', 'neighbors', 'neighbour', 'neighbor') class Cell: def __getattr__(self, key): if key in neighbourSynonyms: pts = [self.world.getPointInDirection( self.x, self.y, dir) for dir in range(self....
[ "sromany@a-018833.ups.u-psud.fr" ]
sromany@a-018833.ups.u-psud.fr
b7a67705b4d88255bfb2c97fac26bb30ee8d70cf
d3ee2dea9d3eac84d6309eb522ea72c21819a04d
/Aula 05. Laรงo/calcula_serie.py
dc9d5f16d951b0eba494d900e87d0ee8764cbd75
[]
no_license
ArthurCisotto/insper.dessoft
477faf97f6a340c06deb68c9838cd5da9b943e15
22b13b1b39141cfad6f3f57fc919fc02eddc1ee7
refs/heads/master
2023-07-05T03:06:13.542442
2021-09-01T11:41:46
2021-09-01T11:41:46
350,466,788
0
0
null
null
null
null
UTF-8
Python
false
false
107
py
def calcula_serie(a,b,n): soma = 0 for i in range(n): soma += 1/(a**(i*b)) return soma
[ "noreply@github.com" ]
ArthurCisotto.noreply@github.com
9e2f3cbeefa98d81d8846f8b703e92cee46224ea
8a707aacc9ecd999cb2a996f91a718ce02f6205c
/leetcode/CourseScheduleII.py
ede26c794c3d4748b777773929ba2f90dfd46583
[]
no_license
seeyarh/interview-prep
e074f68f1c1c05b9ab0911f30b13dad69c7bbfb8
1af5f79ed9dcf334d2758e14a9c08e7880246a4f
refs/heads/master
2022-03-13T12:26:59.441211
2019-11-14T19:35:31
2019-11-14T19:35:31
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,644
py
''' There are a total of n courses you have to take, labeled from 0 to n-1. Some courses may have prerequisites, for example to take course 0 you have to first take course 1, which is expressed as a pair: [0,1] Given the total number of courses and a list of prerequisite pairs, return the ordering of courses you shou...
[ "collinsrhuffiii@gmail.com" ]
collinsrhuffiii@gmail.com
f3c25f57d7876d36705ee82b523352c7672cfbce
fd082e303f509d91b14d1a73304f58c9a8fdf1d6
/street_parking_reservation/parking_reservations/migrations/0002_auto_20201207_1839.py
1c1dea3006a1256259306e60f17d5bfdf7b8ea64
[]
no_license
mihirsn/street-parking
27f1fc930ad32cfc41c73ecae067c36112ac84db
8cb3b8c0ca97bd48974bc3f4e889a143ae4716e9
refs/heads/main
2023-01-29T09:42:48.777284
2020-12-14T05:15:04
2020-12-14T05:15:04
318,709,448
0
0
null
null
null
null
UTF-8
Python
false
false
718
py
# Generated by Django 2.2 on 2020-12-07 18:39 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('parking_reservations', '0001_initial'), ] operations = [ migrations.AddField( model_name='parkingspot', name='status',...
[ "mihir_naik@ymail.com" ]
mihir_naik@ymail.com
9366aeb52a075956515f6961f7209386098247ca
c6e8a4de46bfd8c355a4c443310594ce87ef9672
/src/drift_plot.py
55160aab7a8936f3cf3f21f0c11a20ca064b95c6
[]
no_license
nuin/popgene.s2js
c9fac3df6803924fdcfce69506fa9e1d42da5852
c66389f4d3bbd728cc6eae4a49f0ff8cf86794bf
refs/heads/master
2023-02-25T20:48:43.147810
2021-01-27T02:33:10
2021-01-27T02:33:10
332,580,228
0
0
null
2021-01-27T02:33:11
2021-01-24T23:31:20
Python
UTF-8
Python
false
false
1,520
py
# Paulo Nuin Jan 2021 import altair as alt import pandas as pd import numpy as np def plot_graph(json_file): """ :return: """ dataframe = pd.read_json(json_file) dataframe.index.name = 'x' dataframe = dataframe.reset_index().melt('x', var_name='category', value_name='y') nearest = alt....
[ "nuin@genedrift.org" ]
nuin@genedrift.org
2177c8bb67a563ce7dca172e126b7d7032796c68
e27e5ef945ca30d50456ee366c662820dce4aee9
/multiagent-particle-envs-master/multiagent/rendering.py
a80414a8b30c146d2a01f83f3f6a607be4f51ee7
[ "MIT" ]
permissive
S4ltedF1sh/oodl-project
399b862f49cc8180a0bfbd38e6998079096d5093
b2a5f6e6e4d537fa2ce2cb2e1ceaf9d4bb300948
refs/heads/master
2023-01-21T13:10:07.820772
2020-11-30T12:51:08
2020-11-30T12:51:08
317,222,022
0
0
null
null
null
null
UTF-8
Python
false
false
11,149
py
""" 2D rendering framework """ from __future__ import division import os import six import sys if "Apple" in sys.version: if 'DYLD_FALLBACK_LIBRARY_PATH' in os.environ: os.environ['DYLD_FALLBACK_LIBRARY_PATH'] += ':/usr/lib' # (JDS 2016/04/15): avoid bug on Anaconda 2.3.0 / Yosemite #from gym.util...
[ "minhvu.pham@stud.tu-darmstadt.de" ]
minhvu.pham@stud.tu-darmstadt.de
2738586937ed37c650c08c83414758db6e9f901a
d411824122cd250cd2c95302cf339426b0ee2ec6
/ProblemSets/ProblemSet6/ps6.py
477bbf3422d89b07b9dbb56c3e82d0c90c1812b0
[]
no_license
paulwithap/MITx6.00x
da86e3b2fc5ec2d27655c451e68f05a7ab1066c5
f34f59e0017a0a521e3b8779b236ea3532cc3581
refs/heads/master
2016-09-03T07:36:08.597909
2013-04-22T03:25:29
2013-04-22T03:25:29
null
0
0
null
null
null
null
UTF-8
Python
false
false
9,508
py
# 6.00x Problem Set 6 # RSS Feed Filter import feedparser import string import time from project_util import translate_html from Tkinter import * #----------------------------------------------------------------------- # # Problem Set 6 #====================== # Code for retrieving and parsing RSS feeds # Do not ch...
[ "pjaworski27@gmail.com" ]
pjaworski27@gmail.com
68b7e0edc2cb15f4a5795fc8fe8fd3ace39dfb3b
cde5600114cb9f1bbed0fc2ab387aac4f9a18c63
/version.py
c8a2ef09f70534b9f3fa18d844c784c4abb7eb18
[ "BSD-3-Clause" ]
permissive
RebeccaRrr/iVisDesigner
3a6416946a39d6c4256b43754f14fa0e55340aa6
35435dc168d281de923cec5fcd1f21aa7380137a
refs/heads/master
2020-03-22T10:39:51.288870
2018-02-16T22:31:05
2018-02-16T22:31:05
null
0
0
null
null
null
null
UTF-8
Python
false
false
101
py
import commands IV_version = "0.10alpha" IV_rev = commands.getoutput("git rev-parse --short HEAD")
[ "donghao.ren@gmail.com" ]
donghao.ren@gmail.com
389998e0016dfb745d0865cb2c25a7640c42ec89
d4c1e34a07eebeaf1bce82ad860404373816caab
/loadXMLUI.py
b6a77755d6942c646d721508327777dd01384160
[]
no_license
GiedreJursh/animation_importer-exporter_anim-blend
f245424d549b763400fe58bccb5146f4687d4422
8d0db13f054ad8257a98cf3dfa5da92449b12d46
refs/heads/master
2021-03-08T01:22:09.142790
2020-04-15T09:34:04
2020-04-15T09:34:04
246,308,669
1
0
null
null
null
null
UTF-8
Python
false
false
27,444
py
#============================================================================== # Namn: Giedre Jursenaite ================ # Datum: 2018-12-04 ================ #============================================================================...
[ "noreply@github.com" ]
GiedreJursh.noreply@github.com
218dd255791efaf0be22ffbadcd7b8aeb15ea68e
133572e4bbe59a79a3cad64fa0de0500ca0d4a58
/uri/1025.py
444cba9e48b35aef76b9b4a2573942f1caae62b5
[]
no_license
leandro-hbs/python-solutions
b8b74da52f466d613a62b480492cc1438db24eac
b3fa69b8f8d08610ddc6cb5b0114798e53d67c3d
refs/heads/master
2023-05-14T14:59:19.901397
2023-04-25T16:32:52
2023-04-25T16:32:52
225,023,995
0
1
null
2020-01-11T12:16:39
2019-11-30T14:26:21
Python
UTF-8
Python
false
false
739
py
from bisect import bisect_left def binary_search(array, item): i = (bisect_left(array, item)) return i+1 if i < len(array) and array[i] == item else -1 cont = 1 while True: num, con = list(map(int,input().split())) if num == 0 and con == 0: break marmores = [] print('CASE# {}:'.format(...
[ "leandro.batista@academico.ifpb.edu.br" ]
leandro.batista@academico.ifpb.edu.br
eb2a25ca1f321ccb18995a48ed60df38daeb05c7
7f3c09b2707fcd4f55ec1acccf94193e88b9ae33
/coffee maachine/ipython.py
a776d4efcc3a367f63552710692050d76bf9956a
[]
no_license
regod10/my-python-projects
6f8f632d94087bc4a6376a5c3b96a1d0ebcaebec
83462a5357c0d79e23024419912d113dcb003847
refs/heads/main
2023-04-28T23:18:13.582599
2023-04-24T23:36:02
2023-04-24T23:36:02
311,811,168
0
0
null
null
null
null
UTF-8
Python
false
false
7,390
py
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> <html><head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta name="qrichtext" content="1" /><style type="text/css"> p, li { white-space: pre-wrap; } </style></head><body style=" font-family:'C...
[ "noreply@github.com" ]
regod10.noreply@github.com
c9ea3706505e328d29c39892eea7aa6120d23b0d
c7aa86fc206ccdb91e89295704dd068892bda6f6
/util.py
9856587d7cdf0a52208fddc7d94f7018d3b5b3f8
[]
no_license
ritobanrc/cryptopals
f2bb031f07de172f1f2735feae79a8f21dbc4e75
61c84db90516a915a24f4421d1216b4d2723579a
refs/heads/master
2020-03-16T13:08:49.489344
2020-01-22T02:09:09
2020-01-22T02:09:09
132,682,310
0
0
null
2018-05-09T21:52:21
2018-05-09T00:59:52
Python
UTF-8
Python
false
false
911
py
#!/usr/bin/env python3 import binascii import os import sys from math import ceil def block_print(): sys.stdout = open(os.devnull, 'w') def enable_print(): sys.stdout = sys.__stdout__ def print_split_blocks_b64(text): print(b'|'.join([binascii.b2a_base64(text)[16*i:16*i+16] for i in range(0, ceil(len(...
[ "ritobanrc@gmail.com" ]
ritobanrc@gmail.com
06f6074a20ddfa9793849de924eb5aac5f61a5bf
eddd90b807cff770b678f090b8fd9b32a9ced05e
/Madrid/July2022/smurf-busters/Interface/django_project/app/main/views.py
7692a0a1eb625206913ad61b5eaf2cb0ac40ad62
[ "MIT" ]
permissive
SaturdaysAI/Projects
ba26768c20ffb4a3f3c6bc26dd5dd71ee5065fdf
99ab19f7896bc30cf059244962a7da318d4672bf
refs/heads/master
2023-03-11T05:27:52.837311
2022-11-25T22:36:24
2022-11-25T22:36:24
188,530,455
35
36
MIT
2023-03-03T01:41:24
2019-05-25T06:41:09
Jupyter Notebook
UTF-8
Python
false
false
963
py
import json import os from django.shortcuts import render, HttpResponse from django.http import JsonResponse from django.contrib import messages from django.urls import reverse from django.http import HttpResponseRedirect import hashlib from functools import wraps import logging import copy from django.template.load...
[ "noreply@github.com" ]
SaturdaysAI.noreply@github.com
85555f604a4c7310411f4bc0868e6122dbbf2275
03c3d78a80093cc27e421e758d27ac1ab88af28c
/dactyl/filter_link_replacement.py
5f6e2dcc1869720e6d3cb42c72415ab5ab825824
[ "MIT" ]
permissive
rippleclone/dactyl
aff6d244ea5a75422617924501f0f2661fffa33e
4672bfb4d351657791dd7bb4e216437509db587d
refs/heads/master
2021-04-28T08:30:27.724928
2018-02-17T01:26:09
2018-02-17T01:26:09
null
0
0
null
null
null
null
UTF-8
Python
false
false
8,074
py
################################################################################ ## Substitute Links filter ## ## Author: Rome Reginelli ## ## Copyright: Ripple Labs, Inc. 2017 ...
[ "mduo13@gmail.com" ]
mduo13@gmail.com
61ed638564f28791b24b7cd7c21897b32fe62fd0
c93080264201fe6d0c84a79ae435022981d8ccf6
/panoptic/panoptic/doctype/facial_recognition_system/facial_recognition_system.py
85576d855955e672d0df3ef2428a5befc108e3a5
[ "MIT" ]
permissive
wisharya/panoptic
100e733e9aad33d087851fc4ea9bd064e81954f2
7c9a0eeb6bd5d9032087ccb7c805a3e65a357ba8
refs/heads/master
2023-07-09T14:20:45.377441
2021-08-25T06:58:45
2021-08-25T06:58:45
null
0
0
null
null
null
null
UTF-8
Python
false
false
289
py
# -*- coding: utf-8 -*- # Copyright (c) 2020, Internet Freedom Foundation and contributors # For license information, please see license.txt from __future__ import unicode_literals # import frappe from frappe.model.document import Document class FacialRecognitionSystem(Document): pass
[ "scm.mymail@gmail.com" ]
scm.mymail@gmail.com
174fab88159917da005df7f544b51c6f69f9d901
ef9ded4c36f812aafab8f9dcbe049bd7220da347
/sum.py
006d995e0efdb733a5c0a8084790e3560fc77475
[]
no_license
willhyper/python_cuda_numba
4bc0fd6dd0513979c64a0a05906aea63683752c1
324c6916b4a4b98cc76eee638206bad0fe452a4d
refs/heads/master
2020-04-05T09:21:42.398129
2018-11-08T18:55:57
2018-11-08T18:55:57
156,752,469
0
0
null
null
null
null
UTF-8
Python
false
false
695
py
#! /usr/bin/env python import numpy as np from numba import vectorize import time N = 1_000_000_000 @vectorize(['int16(int16, int16)'], target='cuda') def vec_sum(a, b): return a + b def sum(a, b): return a + b def main(): A = np.ones(N, dtype=np.int16) B = np.ones(N, dtype=np.int16) ...
[ "chchen@chchen-7250.adcorp.kla-tencor.com" ]
chchen@chchen-7250.adcorp.kla-tencor.com
fbd24af153c52662384f7d7d5b93abab23dda9e1
2e126d8779c6d0123252a483611c035742d626da
/features/steps/obj_file_steps.py
1f380d23f706082ecf1274f4922061e65d15220b
[ "MIT" ]
permissive
natehouk/ray-tracer
1c250f624e202f9c17b120ac651efa672025a603
293eee036148e45b533431d13c3b6e375b4ca224
refs/heads/master
2023-03-01T03:53:22.824037
2021-02-14T09:42:23
2021-02-14T09:42:23
323,396,893
0
0
null
null
null
null
UTF-8
Python
false
false
3,715
py
from behave import * from parser import parse_obj_file, obj_to_group from tuple import point @given(u'gibberish โ† a file containing') def step_impl(context): context.gibberish = context.text @when(u'parser โ† parse_obj_file(gibberish)') def step_impl(context): context.parser = parse_obj_file(context.gibberish...
[ "nate.houk@gmail.com" ]
nate.houk@gmail.com
fae2741b274219369d600210ca0936e5d0a71661
2e66469b5a1856bbc12b7038eab53c9e5b7f858e
/smoothing.py
85d4ba71011ee69cb49f01a1b1c4b3b7a5c75092
[ "MIT" ]
permissive
elaina03/Edge-preserving-Multiscale-Image-Decomposition-based-on-Local-Extrema
62ec7eec62f17ea0d111e73f805a3ce99b852767
4304be64b44adb6b6a75f2ed2e2fd142e1f3a3ce
refs/heads/main
2023-03-07T10:09:35.709817
2021-02-16T03:41:06
2021-02-16T03:41:06
335,565,250
0
0
null
null
null
null
UTF-8
Python
false
false
5,481
py
import numpy as np from scipy.sparse import csc_matrix from scipy.sparse.linalg import splu import cv2 import sys def getColorExact(localExtrema, ntscIm): [n,m,d] = ntscIm.shape imgSize = n*m nI = np.zeros(ntscIm.shape, dtype=ntscIm.dtype) nI[...,0] = ntscIm[...,0] indsM = np.arange(imgSize).reshap...
[ "ellie931492@gmail.com" ]
ellie931492@gmail.com
d46560cbc49c27ce3492bf33bcef835f61989a6b
d9edec82527fc8b0c98e1288f2161e496b984722
/Regex_Sheet.py
7fcc29c3ef753384a4ae43da3aeea8c8b325f9ab
[ "MIT" ]
permissive
HeyIamJames/PyGames
d8f1dfd13565945ac75959bc4a80a582f7efc8ed
ce2d667b0318a4c663933b2fce842d191f54bdc1
refs/heads/master
2020-05-21T23:34:07.415205
2018-06-21T06:26:48
2018-06-21T06:26:48
31,036,158
1
0
null
null
null
null
UTF-8
Python
false
false
408
py
#cheet sheet = https://www.debuggex.com/cheatsheet/regex/python #return all ints of len 6 import re re.findall(r"\D(\d{6})\D", s) #include 6+ only len 6 = /([\W\w])\d{6} #only 6 ^\D*\d{15}\D*$ #how to replace char re.sub('[d]', ' ', x) >>> str = "h3110 23 cat 444.4 rabbit 11 2 dog" >>> [int(s) for s in str.split...
[ "noreply@github.com" ]
HeyIamJames.noreply@github.com
aff2e3d4a8b31eea14b1f27deb841c7f6fd6b5ff
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03139/s434904278.py
34502437335082bac61aadf38d8e30ed218dbb86
[]
no_license
Aasthaengg/IBMdataset
7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901
f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8
refs/heads/main
2023-04-22T10:22:44.763102
2021-05-13T17:27:22
2021-05-13T17:27:22
367,112,348
0
0
null
null
null
null
UTF-8
Python
false
false
87
py
n,a,b = map(int,input().split(' ')) print("{0} {1}".format(min(a,b),max(a + b - n,0)))
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
7703835a5b63c8526596eae2677539171409e3de
78b4cb19770cf6cba794fcf336b0ab6f6c753e2e
/SRC/product/migrations/0014_product_prddescountprice.py
550e0b9de019beeae3ec169787d499fb87251d7e
[]
no_license
medoosh79/Souq
b10be70342135585d068754246db16653bc7be31
c01f84baee39c36def433bb3630e5bae8ce7e789
refs/heads/main
2023-04-01T06:11:22.250284
2021-04-09T22:55:00
2021-04-09T22:55:00
356,405,474
0
0
null
null
null
null
UTF-8
Python
false
false
501
py
# Generated by Django 3.1.7 on 2021-04-04 19:02 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('product', '0013_auto_20210404_2136'), ] operations = [ migrations.AddField( model_name='product', name='PrdDescountP...
[ "72854950+medoosh79@users.noreply.github.com" ]
72854950+medoosh79@users.noreply.github.com
1f6f414e833dcc2b69dc8ab9d2d28c1f6300c4d7
77c798d834efecff43bcb6d598e5d9a0370953ea
/store/urls.py
963dfb667e86e79d6e41f00311c49cf399f5a4d2
[]
no_license
Mohaned-Elfeky/Django_ecommerce
2bd206eebb3853efde8cd445aec009f0e272fbfb
d816ecd3eb84fc2549e70b0f1581b8a0eb32856d
refs/heads/master
2023-06-16T09:37:35.733354
2021-07-13T14:15:54
2021-07-13T14:15:54
329,772,838
0
0
null
null
null
null
UTF-8
Python
false
false
637
py
from django.contrib import admin from django.urls import path,include from . import views urlpatterns = [ path('',views.store,name="home"), path('cart/',views.cart,name="cart"), path('store/',views.store,name="store"), path('checkout/',views.checkout,name="checkout"), path('update_cart/',view...
[ "Mohanedhassan1999@gmail.com" ]
Mohanedhassan1999@gmail.com
b6064297dc58373f1ca18c6ddfb0b8c37d01e841
0a39aeb1ca9e124c818c86b55e169620aef74716
/WithFlask/project.py
b29eaaa9c71b3cfc8498357900740f04c21b3c91
[]
no_license
muhammet-mucahit/FullStack-Exercises
72ffadd17d6df5ccd198568db5511c0678e28907
01699ab6cf86b6d7dd71a9c0462813a0da43e36a
refs/heads/master
2020-03-11T21:41:00.639683
2018-04-19T21:05:44
2018-04-19T21:05:44
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,002
py
from flask import Flask, render_template, request, redirect, url_for, flash, jsonify from sqlalchemy import create_engine from sqlalchemy.orm import sessionmaker from database_setup import Base, Restaurant, MenuItem app = Flask(__name__) # Create session and connect to DB engine = create_engine('sqlite:///restaurantm...
[ "mucahitaktepe@gmail.com" ]
mucahitaktepe@gmail.com
8564fae4ea4edaef15f390a4f927ccfa825c49e8
f45cc0049cd6c3a2b25de0e9bbc80c25c113a356
/LeetCode/ๆœบๅ™จๅญฆไน (ML)/plot_feature_transformation.py
c4a45b398f7482bac992a174a2f4a2381777a1fa
[]
no_license
yiming1012/MyLeetCode
4a387d024969bfd1cdccd4f581051a6e4104891a
e43ee86c5a8cdb808da09b4b6138e10275abadb5
refs/heads/master
2023-06-17T06:43:13.854862
2021-07-15T08:54:07
2021-07-15T08:54:07
261,663,876
2
0
null
null
null
null
UTF-8
Python
false
false
5,090
py
""" =============================================== Feature transformations with ensembles of trees =============================================== Transform your features into a higher dimensional, sparse space. Then train a linear model on these features. First fit an ensemble of trees (totally random trees, a rand...
[ "1129079384@qq.com" ]
1129079384@qq.com
542c19bcd75dbf4dbe3ce07f321301a0984f87a2
4600b1a9aa934ed67abae370c5e167d0b93f02f3
/TTP/Exfiltration/data_encryption.py
190876cc5dab40ada90b505c06c4b83c818d8e27
[]
no_license
nallamuthu/RedTeam
c9141c6c5f4d0de1299dce5b9690294f1db4bde7
6f312b528263711c3fe9bd7c20b43d5dc49b3204
refs/heads/master
2021-04-11T12:53:05.205022
2020-07-04T08:27:20
2020-07-04T08:27:20
249,022,755
0
0
null
null
null
null
UTF-8
Python
false
false
4,727
py
import pyAesCrypt from Crypto.Cipher import AES import base64 import hashlib from Crypto.Cipher import AES from Crypto import Random from arc4 import ARC4 from itertools import * import sys from cryptography.fernet import Fernet ''' def write_key(): def load_key(): def decrypt_file_fernet(filename, key): def encrypt_...
[ "nallamuthu.92@gmail.com" ]
nallamuthu.92@gmail.com
5788b3bbab2f799f304dbe17c00bef1aea0c7b18
9fdf64c2d07762cc71e99c9659437ec2f827975a
/Loop 9.py
ce131db5f2b98f65925fbe6aa8f646af548f3f79
[]
no_license
Kome7a/automatebsp-tasks
bb72c41f0a678e67a377a7062150f5aed2e50cf1
583839d0c7e18a9cb189ba43049e59f25a3e2335
refs/heads/master
2022-04-24T20:09:05.867104
2020-04-23T12:15:59
2020-04-23T12:15:59
257,557,437
0
0
null
null
null
null
UTF-8
Python
false
false
98
py
for i in range(0, 5): print("*") for b in range(0, 5): b += 1 print(i, b)
[ "e.kontilov@gmail.com" ]
e.kontilov@gmail.com
a8ff9045b8723ec30df50533cea07324a8e8def4
6d92d6ce638b59ff1250ce39a55e672f905a0de0
/analysis/utils.py
1be344f004368d1331c60d6b98ab24be0e88ebde
[]
no_license
SaGagnon/gecode-5-extension
df3a17c3ef243a00facf9e96396cf096ee381b16
513b95f7b7996f69e7ea45191a44d68cfdedb823
refs/heads/master
2021-09-06T14:41:14.305373
2018-02-07T17:19:54
2018-02-07T17:19:54
92,327,692
0
0
null
null
null
null
UTF-8
Python
false
false
5,434
py
#%load /home/sam/gecode-5.0.0-extension/analysis/utils.py #%%writefile /home/sam/gecode-5.0.0-extension/analysis/utils.py from sklearn.linear_model import LogisticRegressionCV import math import numpy as np import matplotlib.pyplot as plt from matplotlib.backends.backend_pdf import PdfPages import seaborn as sns impor...
[ "samuel.gagnon92@gmail.com" ]
samuel.gagnon92@gmail.com
71227b941e2809759abccb685f70469423fba4e5
431a1f738b1edfba7dad8d10a6b7520d51d917cb
/Samples/UserSamples/2017/xH_Differential_Reco/xH_NJETS_0_Config.py
4e0a6fdf11273f15866df7c41142cd35efb04132
[]
no_license
aloeliger/DatacardCreator
5ce702e46fbb77e843b44d8fe088c2645a4a8f66
5c7e890276a5be079ed3b677a471c1dcadcba52d
refs/heads/master
2022-02-26T19:52:30.563747
2022-02-16T20:24:48
2022-02-16T20:24:48
215,602,523
0
1
null
null
null
null
UTF-8
Python
false
false
2,623
py
from Samples.SampleDefinition import Sample from Samples.Uncertainties.UserUncertainties.TES import TESUncertainty from Samples.Uncertainties.UserUncertainties.Signal_JES_17 import JES17Uncertainty from Samples.Uncertainties.UserUncertainties.JER import JERUncertainty from Samples.Uncertainties.UserUncertainties.MetRec...
[ "aloelige@cern.ch" ]
aloelige@cern.ch
f3097de81d59a4155e526536d2ae31e634e087bb
ddaa20f2ff0aaed4c6beeba888c4213405fdd586
/pypi_server/timeit.py
fe647520cadd0075e0453b61ab33572b87994218
[ "MIT" ]
permissive
mosquito/pypi-server
689fb84dd0cc56a70c7bfa6157b8defa76d774d8
825571aae6fd17616e404ad8a9b72ef791a4fc46
refs/heads/master
2023-08-17T14:17:50.177008
2021-11-14T17:11:52
2021-11-14T17:11:52
47,583,364
129
58
MIT
2021-11-14T17:11:53
2015-12-07T22:30:53
Python
UTF-8
Python
false
false
899
py
# encoding: utf-8 import logging from functools import wraps from time import time from concurrent.futures import Future log = logging.getLogger(__name__) def timeit(func): def log_result(start_time): log.debug( 'Time of execution function "%s": %0.6f', ".".join(filter( ...
[ "me@mosquito.su" ]
me@mosquito.su
8e01f44ae69c477fb05ba33df3c1be93d5e4bbc7
a390bd7c0b1cf19f255913c03ad8c0231a0ea635
/scrapy/Tencent/Tencent/untils/osdemo.py
ae208923f96b397ed7bc40b8b1532cbc8e136311
[]
no_license
ChangfengHU/bigdata_notes
d03c736f29bc55f33b17c626b09de0a2fdcd5a17
67cbf66d83b2f1a7b182afa375069df237ca7506
refs/heads/master
2020-04-14T23:55:02.408530
2019-02-02T16:23:54
2019-02-02T16:23:54
164,221,283
0
0
null
null
null
null
UTF-8
Python
false
false
86
py
#encoding: utf-8 import os path=os.path.dirname(os.path.dirname(__file__)) print(path)
[ "faker_322@outlook.com" ]
faker_322@outlook.com
e60b1bbebff2af542d443aeaabf3effd9c727c2e
27fdb210daacc29a7031c2f8e0e2cf28f6e78e48
/objects/_train_det.py
9c568c8923d1d3bd1c61f75dcd6f9eba09120ab7
[]
no_license
cubefreaker/webautomation
e79774bef554ce3b5796d3deefec3f41ea34ff69
be86def2540ef72d84ca2a0281ac4e5f53b738ca
refs/heads/master
2021-06-13T00:46:47.216292
2019-03-28T07:19:32
2019-03-28T07:19:32
178,146,195
0
0
null
2021-06-01T23:32:36
2019-03-28T07:06:41
Python
UTF-8
Python
false
false
11,242
py
import time import names import datetime import random, string from selenium import webdriver from selenium.webdriver.common.by import By from selenium.webdriver.common.keys import Keys from selenium.common.exceptions import NoSuchElementException, StaleElementReferenceException, ElementNotVisibleException from seleniu...
[ "hamzah_habibi@rocketmail.com" ]
hamzah_habibi@rocketmail.com
cb713521b660e4f2441b52912c4a2d4572fefc08
d205918a6d47e8e3303fd105083c6cbdf94da3ad
/handOnRaspi/2servo.py
6ff5ee06810ebb0ebd3a5d3caad10d2ad2821818
[ "MIT" ]
permissive
tfrere/robot-repo
08bf0080a6b262243a526aa7ef496277d4b7f2b2
66220f604991540f7d23148c524d41d775add263
refs/heads/master
2022-12-04T13:10:30.080067
2022-11-23T20:22:34
2022-11-23T20:22:34
33,684,746
0
0
null
null
null
null
UTF-8
Python
false
false
548
py
from Tkinter import * import time from RIPO import PWM for i = 0 ; i ++ ; i < 2: servo[i] = PWM.Servo() servo[0] = GPIO.PWM(17, 100); servo[1] = GPIO.PWM(18, 100); class App: def __init__(self, master): frame = Frame(master) frame.pack() scale = Scale(frame, from_=0, to=180, orient=HORIZONTAL, command=self....
[ "tfrere" ]
tfrere
0e57035ef99cbd34871be4fba11fd76ce12ba2a4
6d15bb2fdf7459e6fa738c5d99bff2c3c4c77bb5
/five.py
fcadeac61986435a0ea293f4b25dc7f2544b3a4d
[]
no_license
roziana-rdrgs/Python
84427b44138c3eaa30578465c02156a402db9427
829136a7fc0596a17d236b7b1bddc2b54459576e
refs/heads/master
2020-07-04T04:02:15.838316
2019-08-19T14:21:07
2019-08-19T14:21:07
202,148,896
2
0
null
null
null
null
UTF-8
Python
false
false
376
py
'''Escreva um algoritmo que armazene 20 valores em uma estrutura composta. Em seguida, troque o primeiro elemento com o รบltimo, o segundo com o penรบltimo, o terceiro com o antepenรบltimo e assim sucessivamente. Mostre os valores depois da troca.''' list_one = [] for i in range(0,20): list_one.append(i) p...
[ "noreply@github.com" ]
roziana-rdrgs.noreply@github.com
58eb34d13830641c05a389e7f32d562c587efb98
e79fb97c06e3a75bd0cf6135fbbd6c1ac08492cb
/cnn/vgg16net.py
1c14e72e799125617b2cdc37f77caf322527616b
[ "MIT" ]
permissive
nocotan/chainer-examples
b1021e98654a6d377cc4669c7cedd57bca4f692d
d2b736231c6a6c2ba1effa3ddeb90770d7e020d9
refs/heads/master
2021-09-11T12:42:31.612581
2018-04-07T05:40:22
2018-04-07T05:40:22
78,973,921
13
3
null
null
null
null
UTF-8
Python
false
false
2,288
py
# -*- coding: utf-8 -*- import chainer import chainer.functions as F import chainer.links as L class VGG16Net(chainer.Chain): def __init__(self, num_class, train=True): super(VGG16Net, self).__init__() with self.init_scope(): self.conv1=L.Convolution2D(None, 64, 3, stride=1, pad=1) ...
[ "noconoco.lib@gmail.com" ]
noconoco.lib@gmail.com
85cda000e47e6c1d9a565c3a66425d714c4f4005
4f799c12c6e2a64d37e946f82caa3df60b941448
/Basic Syntax and Commands/ex9.py
733508cdfdb503734f2f950a2b7a58b15596cdf5
[]
no_license
madhur3u/Python3
09725ac0ae702ce577806b7bebd885687d234415
49411964c405075817b02ba4d09d404908725dbe
refs/heads/main
2023-09-06T04:21:04.583582
2021-11-01T11:42:37
2021-11-01T11:42:37
402,317,485
0
0
null
null
null
null
UTF-8
Python
false
false
246
py
#use of \n and triple quotes in print print('A\nB\nC\nD\nE\n') #\n start a newline print('''Hello this can also be used rather than \\n it will print as we write in code''') # rather than single we can also use triple quotes """ like this """
[ "noreply@github.com" ]
madhur3u.noreply@github.com
06e6cc27001cefebe085879ad2f6c4cf3e09a305
19ef57b9fdca2c082add5191e5b623a4c25a1ffb
/Xml.py
40a0cabbcaa308af4255a8876d4afe4c8db8e87f
[]
no_license
Sniper970119/Spider
3ee7fc0f789bd14de10111aede4e6f8b58769ccf
d729a18b7000fe0e1bd9ca266206fa32d4fdc9ba
refs/heads/master
2020-03-23T18:25:11.467156
2018-08-09T11:58:07
2018-08-09T11:58:07
141,907,508
2
0
null
null
null
null
UTF-8
Python
false
false
11,691
py
# -*- coding:utf-8 -*- from lxml import etree from bs4 import BeautifulSoup import re from pyquery import PyQuery as pq # xml test -> tostring # html = etree.parse('test.xml', etree.HTMLParser()) # result = etree.tostring(html) # print(result.decode('utf-8')) # xml test -> all # html = etree.parse('test.xml', etree....
[ "30463691+Sniper970119@users.noreply.github.com" ]
30463691+Sniper970119@users.noreply.github.com
6f5fc191e7adbbfba9fe72f95be2821fb8e2cd90
384eb64b746b4e5e3d49c495bcc66925f81085cf
/contacts/views.py
a52c2c90673bc0246acc73f3cceb0d4edb4e434d
[]
no_license
julianodesenv/python-schedule
c650e87f4257ca929e7af4f7250c375a676436bb
e3727a80dc42df3c269100d4234be9d89c3a95cb
refs/heads/master
2023-08-15T16:03:11.637381
2021-10-21T19:24:35
2021-10-21T19:24:35
419,715,672
0
0
null
null
null
null
UTF-8
Python
false
false
1,631
py
from django.shortcuts import render, get_object_or_404, redirect from django.http import Http404 from django.core.paginator import Paginator from django.db.models import Q, Value from django.db.models.functions import Concat from .models import Contact from django.contrib import messages def index(request): conta...
[ "julianodesenv@gmail.com" ]
julianodesenv@gmail.com
60d6e65af9f944e832c385a6b61c4c17b8af6a39
ca251e4375fcb48f12448d9cc096a2e3d1302859
/scraper/course.py
7f36a2ef443b0b5a81e6111b68256da2ce43bac4
[]
no_license
kejinlu/itunesu-scraper
0ebaebc67713d67d5fb7900dc9546dc20b44cb6e
db755e840324807a49a6d0e1960e613aece0129a
refs/heads/master
2021-01-10T08:49:21.178384
2015-10-29T09:23:09
2015-10-29T09:23:09
45,172,663
0
0
null
null
null
null
UTF-8
Python
false
false
1,032
py
from urllib.request import urlopen from urllib.parse import urlparse from bs4 import BeautifulSoup __author__ = 'Luke' class Course: def __init__(self, url): html = urlopen(url) bs_html = BeautifulSoup(html.read(), "html.parser") self.title = bs_html.select_one("#title > div.left > h1").g...
[ "kejinlu@gmail.com" ]
kejinlu@gmail.com
299affddd531b4f31bf702683ad0a1283bef8bcd
fd49e917e314c28dd7ad1aeea38f4d92adc3f616
/Padding_with_Edge_Values/MNIST_Network_Stretch_Compress_Resize.py
522589e3b892e636baf19ee0e8426f6472d50bac
[]
no_license
pulindur/MNIST_Image-processing
0a6297b4a11fe56d98f797218691c475588e4056
763fdf2e37976e5f4a6a717d7037ac9bbd74fe6b
refs/heads/master
2021-01-21T11:00:25.060937
2017-05-18T19:04:14
2017-05-18T19:04:14
91,719,616
0
0
null
null
null
null
UTF-8
Python
false
false
2,740
py
'''Trains a simple convnet on the MNIST dataset. Gets to 99.25% test accuracy after 12 epochs (there is still a lot of margin for parameter tuning). 16 seconds per epoch on a GRID K520 GPU. ''' from __future__ import print_function import keras from keras.datasets import mnist from keras.models import Sequential from...
[ "noreply@github.com" ]
pulindur.noreply@github.com
3325a09516701a4aa7c221f51bc6de2bc3ee490e
eae2ad130311853fb1e90b05312840e72f607da6
/05_Scale_Factor.py
5f878b107257b6adabaa1d70be88660a29b6d6b2
[]
no_license
DCUniverse1990/01_Recipes
aedceb870517198ca17892b9a083803b02e28d62
52ce3ded879770fb266ec21090158c9acd08d06f
refs/heads/master
2020-12-27T22:11:39.213183
2020-03-17T21:42:26
2020-03-17T21:42:26
238,078,722
0
0
null
null
null
null
UTF-8
Python
false
false
2,452
py
# Ingredients list # # Number Checking Function def num_check(question): error = "please enter a number that is more than zero" valid = False while not valid: response = (input(question)) if response.lower() == "xxx": return "xxx" else: try: ...
[ "51687475+DCUniverse1990@users.noreply.github.com" ]
51687475+DCUniverse1990@users.noreply.github.com
a527639510ff821b91fe8501552ad4cc17f1ed59
ff90ae8bdd9dbefb29f7345a221039b4e967f8d3
/sign/views_if.py
009b03d8450f69d9c3b92d3430426807f07b0860
[]
no_license
long3ck/guest
ad5bd10b4d9914677bf186ea574a540e2d47744c
5e43099de0fa43fa1c4622c3c5cc11f3f49a8a51
refs/heads/master
2020-12-02T07:54:51.267221
2017-07-10T06:50:52
2017-07-10T06:50:52
85,649,805
0
0
null
null
null
null
UTF-8
Python
false
false
7,591
py
#coding=utf-8 __author__ = 'Chenkun' __date__ = '2017/06/16 14:47' import time from django.http import JsonResponse from sign.models import Event, Guest from django.db.utils import IntegrityError from django.core.exceptions import ValidationError, ObjectDoesNotExist # ๆทปๅŠ ๅ‘ๅธƒไผšๆŽฅๅฃ def add_event(request): eid = reque...
[ "long3ck@qq.com" ]
long3ck@qq.com
1a2055c82f8b2b3d858e86a5931e89220f739c3f
c3a84a07539c33040376f2c1e140b1a1041f719e
/wagtail-stubs/users/utils.pyi
6e8f3c6034fd36111d79271ece10284a95e4e72c
[]
no_license
tm-kn/tmp-wagtail-stubs
cc1a4434b7142cb91bf42efb7daad006c4a7dbf4
23ac96406610b87b2e7751bc18f0ccd27f17eb44
refs/heads/master
2023-01-20T14:41:33.962460
2020-11-30T23:15:38
2020-11-30T23:15:38
317,332,280
0
0
null
null
null
null
UTF-8
Python
false
false
293
pyi
from typing import Any from wagtail.core.compat import AUTH_USER_APP_LABEL as AUTH_USER_APP_LABEL, AUTH_USER_MODEL_NAME as AUTH_USER_MODEL_NAME delete_user_perm: Any def user_can_delete_user(current_user: Any, user_to_delete: Any): ... def get_gravatar_url(email: Any, size: int = ...): ...
[ "hi@tmkn.org" ]
hi@tmkn.org
5832177f7caf30f5ebbf643fdb28c66b5706991a
6774b2eddc2d530a4d1a802f42ce81693bf8063d
/keplerian_classical_orbital_elements.py
5bedeaea0d7adf571b0e5147c49c1b39d2c8f989
[ "MIT" ]
permissive
jasonody/orbital-mechanics
eb8dbc240f868e851a2cc93e4fc407b982bc1fb0
abe50da66c1598d1c31f6f3a4faf313e6cdebc7c
refs/heads/master
2022-11-06T17:54:25.750415
2020-06-25T03:32:34
2020-06-25T03:32:34
270,379,729
0
0
null
null
null
null
UTF-8
Python
false
false
1,181
py
import planetary_data as pd import tools as t from OrbitPropagatorKep import OrbitPropagator as OP tspan = 3600 * 24 * 1.0 dt = 10.0 cb = pd.earth if __name__ == '__main__': # coes: a (pd radius + average of perigee and apogee), e (eccentricity), i (inclination), ta (true anomoly), aop (arguement of perigee), raan...
[ "jasonody@users.noreply.github.com" ]
jasonody@users.noreply.github.com
eec13eec5d10278982bc45147f08f50b093ed311
dabc981714dd9297e811355fbb2f9f9a45c2281f
/board/views/_update_prices_form_save_view.py
f93a6b11355db636b1b5013068e659924677e47b
[]
no_license
pmisters/django-code-example
4c9c8c7edb174875ae4df4d32ae73b0897fc2333
745ac9d0c89d8ee44885cc862882d6c4d13993a0
refs/heads/master
2023-01-07T11:55:55.670943
2020-11-14T11:14:19
2020-11-14T11:14:19
312,801,074
0
0
null
null
null
null
UTF-8
Python
false
false
3,001
py
import datetime import re from typing import Any, Dict, TYPE_CHECKING from django import http from django.views.generic import View from board.permissions import Permissions from board.usecases import UpdateReservationPrices from board.value_objects import ReservationErrors, ReservationUpdateEvent from common import ...
[ "pavel@knigun.com" ]
pavel@knigun.com
5832f7a40e054803e89e8aa6ce8edfbd875d9c18
0b6e079d5b24a49cad884d229c30af18b60a295c
/learning/unique_elements.py
ca50f046851145c855be3da42676d17b189c0ed5
[]
no_license
ldocao/dataiku_census
c1b2bb362652250cad874eec9cdc3d5f50dd4a89
ef9547cd1ae9b83119b56c0645751f2b5c2a5e82
refs/heads/master
2021-01-10T09:17:26.316478
2015-10-02T14:38:29
2015-10-02T14:38:29
43,143,691
0
0
null
2015-09-30T15:38:58
2015-09-25T13:25:10
Python
UTF-8
Python
false
false
1,322
py
import numpy as np import pandas as pd import load_data as ld import feature_engineering as feat import ipdb import matplotlib.pyplot as plt from constants import PREDICTION_COLNAME import utils training_file = "../data/census_income_learn.csv" metadata_file = "../data/census_income_metadata.txt" def unique_elemen...
[ "ldocao@gmail.com" ]
ldocao@gmail.com
09bcf995025392e1643a1fa07ce77a9170e3ef38
f1c9912377f94746fcc9066ae401cb52142122cb
/ABC081A-Placing_Marbles.py
471510dc6cf50f539c26be402964e1042d37759a
[]
no_license
kkashieng/AtCoder_Beginners_Selection
e5aea5c5374d30520129dec97056c4d59ff4b08e
5929abc8e9dd880c8d1fcbccf2cd7a65a9052bfc
refs/heads/master
2023-05-12T14:52:22.600301
2021-05-29T02:57:12
2021-05-29T02:57:21
370,271,648
0
0
null
null
null
null
UTF-8
Python
false
false
110
py
input_str = input() s1 = int(input_str[0]) s2 = int(input_str[1]) s3 = int(input_str[2]) print(s1 + s2 + s3)
[ "kkashi.engineer@gmail.com" ]
kkashi.engineer@gmail.com
70af007d7f7ce4b7ee0a57b362e9ffa3749b1eb9
f0d713996eb095bcdc701f3fab0a8110b8541cbb
/pAFxfge35bT3zj4Bs_24.py
fbbbfecf880247970104edc5a6cad8636470e2df
[]
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
643
py
""" Write a function that accepts `base` (decimal), `height` (decimal) and `shape` ("triangle", "parallelogram") as input and calculates the area of that shape. ### Examples area_shape(2, 3, "triangle") โžž 3 area_shape(8, 6, "parallelogram") โžž 48 area_shape(2.9, 1.3, "parallelogram") โžž 3.77 #...
[ "daniel.reich@danielreichs-MacBook-Pro.local" ]
daniel.reich@danielreichs-MacBook-Pro.local
e3a39fc46f0ee31bcf4cbf6f4eef75379c9eb87e
8242f7c33e37db242a6a839cccd6a48b79ddbfa9
/erase/main.py
71861978925ebc25fc1531a3c889e94202072e29
[]
no_license
elitan/open-kattis
d2be23868f3be6613bcbf4e9381a30f283199082
7bec84b054c639ed3d534671bfc0f57dee289d27
refs/heads/master
2021-01-17T08:51:46.340776
2016-10-10T19:17:52
2016-10-10T19:17:52
65,326,686
0
0
null
null
null
null
UTF-8
Python
false
false
400
py
import fileinput import sys n = int(raw_input()) # we dont need this one s_1 = map(int, list(raw_input().rstrip())) s_2 = map(int, list(raw_input().rstrip())) zero = (0 + n) % 2 one = (1 + n) % 2 converter = {0: zero, 1: one} c = 0 s_len = len(s_1) while c < s_len: if converter[s_1[c]] != s_2[c]: print...
[ "johan@eliasson.me" ]
johan@eliasson.me
e1192f20c1443a8b2576b6617f3bfc99a1cfd2ed
ece9d19165e8f8c4f302b94cd19c577c3618f819
/collegelist1/urls.py
fa083cdb980eaa07757e7e7831a128926d8a7fa9
[]
no_license
shreya3232/python_collegelist
82ab1fcccee6cf213b6cc286833b9a4674292039
2ddaf2e65d65fd3e5a3490b57550081209bac1e8
refs/heads/master
2023-06-01T11:26:01.764270
2021-06-27T12:24:17
2021-06-27T12:24:17
380,731,997
0
0
null
null
null
null
UTF-8
Python
false
false
163
py
from django.contrib import admin from django.urls import path, include urlpatterns =[ path('admin/', admin.site.urls), path('', include('polls.urls')) ]
[ "shreyasgowda2345@gmail.com" ]
shreyasgowda2345@gmail.com
ef5c21aa5d3669148a72593a4b8121792c545794
ca61417d925ce53b83d0767224d58cd3b2da57cc
/detector_api.py
a1487f12909e4d75a8b79e58ae62ed90c5899267
[ "Apache-2.0" ]
permissive
qilei123/mmdetection_rop
423ed5e63a84c8eeba1cb823b14d16ed906289f8
cbdbb2b521c94c2f3eeebb2f2069663199f679bc
refs/heads/master
2020-05-09T23:38:28.969119
2019-08-20T03:21:07
2019-08-20T03:21:07
181,505,837
0
0
null
null
null
null
UTF-8
Python
false
false
9,210
py
# -*- coding:utf-8 -*- import json import argparse import mmcv from mmcv.runner import load_checkpoint from mmdet.models import build_detector from mmdet.apis import inference_detector, show_result, show_single_category_result import cv2 import glob import os import time import matplotlib.pyplot as plt import numpy as...
[ "qileimail123@gmail.com" ]
qileimail123@gmail.com
d441dd65e1ae7d648ca833ebfdc5cc1f7de0ed35
05566ffcd009af2e862d531bd299e2e363d104a3
/havi_task/settings.py
6f5b267ddba9aff826948b30f7fffef106e5810c
[]
no_license
dhruv970331/havi_task
97d996704853297ccc3edff5e90688ba0351e6f9
621ee4d188af5d2ab45d857ae2cfcbd016fab0c5
refs/heads/master
2022-09-07T22:42:01.681728
2020-05-21T18:44:33
2020-05-21T18:44:33
265,439,384
0
0
null
null
null
null
UTF-8
Python
false
false
3,365
py
""" Django settings for havi_task project. Generated by 'django-admin startproject' using Django 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/ """ import os #...
[ "dhruvesh.malhotra@botreetechnologies.com" ]
dhruvesh.malhotra@botreetechnologies.com
eaddacbc2a44c1225dfdff93ef10b03dbe73735a
50bd857f8869e76b1bb086e227a0eb2195e2a0ad
/2020/๊ฐ•์˜/06-ํƒ์ƒ‰/์ƒˆ.py
7c85df30ebf162f9fbea8e3b48a920ba04d1199f
[]
no_license
imacoolgirlyo/Algorithm
0c64ad0286056ab53e2ae673e400be290d7490c6
9cfa897bb9eb8733b442b0f1d55a7d8ece8b8091
refs/heads/master
2022-12-07T12:20:06.167375
2022-12-02T14:10:06
2022-12-02T14:10:06
234,060,720
1
0
null
null
null
null
UTF-8
Python
false
false
193
py
N = int(input()) rest = N K = 1 result = 0 while rest > 0: if K > rest: K = 1 rest = rest-K # 14-1, 13-2, 11-3 , 8-4, 4-1 , 3-2, 1-1 K += 1 result += 1 print(result)
[ "tjrud1438@naver.com" ]
tjrud1438@naver.com
6a64acaaeff4af395c3f83589d246735caccd6a5
b147cae100a830c0a026c1677fde8bf43eb641df
/reactdjango/frontend/urls.py
e2475b5e0938049d78b77b6aa4b5f3086f36accb
[]
no_license
wlawt/lead_manager
382c6d0344778d2897df547397527b2d2dc01a60
2968773b0d929d0ebcd2dffd719e712601594546
refs/heads/master
2023-01-23T07:56:38.411678
2021-04-10T00:09:29
2021-04-10T00:09:29
206,666,216
0
0
null
2023-01-07T09:25:14
2019-09-05T22:16:18
JavaScript
UTF-8
Python
false
false
138
py
from django.urls import path from . import views urlspatterns = [ path("", views.index) # The views.py index method we just created ]
[ "horizon.william14@gmail.com" ]
horizon.william14@gmail.com
f6596548b7fa5559711759789d920ec0d921df4d
c30d4f174a28aac495463f44b496811ee0c21265
/python/testData/inspections/PyChainedComparisonsInspectionWithConstantInTheMiddle/test.py
528cf139bbeb40defe6d8ab5676c7da1bb0c5e48
[ "Apache-2.0" ]
permissive
sarvex/intellij-community
cbbf08642231783c5b46ef2d55a29441341a03b3
8b8c21f445550bd72662e159ae715e9d944ba140
refs/heads/master
2023-05-14T14:32:51.014859
2023-05-01T06:59:21
2023-05-01T06:59:21
32,571,446
0
0
Apache-2.0
2023-05-01T06:59:22
2015-03-20T08:16:17
Java
UTF-8
Python
false
false
51
py
# PY-16397 x, y = 2, 3 if x > 0 and y < 0: pass
[ "valentina.kiryushkina@jetbrains.com" ]
valentina.kiryushkina@jetbrains.com
8dfed265be1c06ea8f35ebbd00266dfe63dac901
78ddf555db358f9683db00bf49b3d1a45cd998a9
/forum/migrations/0021_chatmessage_sort.py
d75812cc0e448e53e140658de19f30fed144c366
[]
no_license
azeez010/AfriconnForum
9e0aa7a6abb40f20ac0739b9cadc75da89e91110
1b597850208c3caef474b9412bdf02dfefd1a30b
refs/heads/master
2022-12-19T12:49:09.389062
2020-09-19T14:40:48
2020-09-19T14:40:48
298,311,404
0
0
null
null
null
null
UTF-8
Python
false
false
385
py
# Generated by Django 3.0.6 on 2020-08-11 18:08 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('forum', '0020_members_description'), ] operations = [ migrations.AddField( model_name='chatmessage', name='sort', ...
[ "dataslid@gmail.com" ]
dataslid@gmail.com
8e9763cb78dec4a5b44a07cf246af0b20cd8087e
cf5b2850dc9794eb0fc11826da4fd3ea6c22e9b1
/xlsxwriter/test/worksheet/test_write_sheet_views2.py
e53240875a8168457b6d934d3a2a907b87e127ae
[ "BSD-2-Clause" ]
permissive
glasah/XlsxWriter
bcf74b43b9c114e45e1a3dd679b5ab49ee20a0ec
1e8aaeb03000dc2f294ccb89b33806ac40dabc13
refs/heads/main
2023-09-05T03:03:53.857387
2021-11-01T07:35:46
2021-11-01T07:35:46
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,446
py
############################################################################### # # Tests for XlsxWriter. # # SPDX-License-Identifier: BSD-2-Clause # Copyright (c), 2013-2021, John McNamara, jmcnamara@cpan.org # import unittest from io import StringIO from ...worksheet import Worksheet class TestWriteSheetViews(unit...
[ "jmcnamara@cpan.org" ]
jmcnamara@cpan.org
5ecce4c7bc6f82cb036331ca45fb67166154c4e5
bbe53d0171efbc78ca43f409b4a5235df51f36fa
/learning/djangoLearning/django-start/mysite/dev_settings.py
24dea2919335488abf7ac20fb0a273ed26c2b821
[]
no_license
brianwang/gftop
2758ec93e326ba5e801af48f951c73b5761bb25d
12a48eafb5114da325515fce4b97e744638e6faf
refs/heads/master
2021-01-12T08:16:43.816679
2012-12-12T16:25:29
2012-12-12T16:25:29
null
0
0
null
null
null
null
UTF-8
Python
false
false
784
py
from os import getcwd MYSITE_BASE_DIR = getcwd() DEBUG = True TEMPLATE_DEBUG = DEBUG SUPER_USER_NAME = 'admin' SUPER_USER_EMAIL = 'admin@test.com' SUPER_USER_PASSWORD = 'admin' SITE_URL = '127.0.0.1:8000' SITE_NAME = 'MySite' DATABASE_ENGINE = 'sqlite3' # 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' o...
[ "gaofeitop@0700f6e2-4af4-11de-a39b-05eb13f3dc65" ]
gaofeitop@0700f6e2-4af4-11de-a39b-05eb13f3dc65
9f8d3ee17be567dc042a06d5bb1c4b7c7da85158
cfdc0ace0ca25048d72e952481ca2a4efc01052e
/Synthetic_Unsup.py
975cf05f77cb0238626b3c164157ab12a90d9893
[]
no_license
cmimlg/CBMDWHA
418291efd928e62831bec4961fac88d5992b2927
13c9667d033262acc080ce0a2d8a01af5c66bd7a
refs/heads/master
2021-09-05T21:12:59.987983
2018-01-31T02:48:35
2018-01-31T02:48:35
119,619,950
0
0
null
null
null
null
UTF-8
Python
false
false
11,873
py
from time import time import numpy as np import matplotlib.pyplot as plt import matplotlib.colors as colors from itertools import cycle import pandas as pd from sklearn.decomposition import IncrementalPCA from sklearn.cluster import DBSCAN import os import logging from sklearn import metrics from sklearn.cluster impor...
[ "noreply@github.com" ]
cmimlg.noreply@github.com
76659e18cdb1432d1c91a30be7eeb85f667e9f96
2befb6f2a5f1fbbd5340093db43a198abdd5f53b
/pythonProject/FBVPermission/FBVPermission/settings.py
a64ea42a4ed445c5878381f3f08aa7ccabac8eb3
[]
no_license
JanardanPandey/RestAPI
1956d3529782d18ef2118961f6286e3213665aad
654933a4d9687076a00c6f4c57fc3dfee1a2c567
refs/heads/master
2023-06-14T07:02:31.702000
2021-07-02T07:50:59
2021-07-02T07:50:59
382,357,537
0
0
null
null
null
null
UTF-8
Python
false
false
3,298
py
""" Django settings for FBVPermission project. Generated by 'django-admin startproject' using Django 3.2.3. For more information on this file, see https://docs.djangoproject.com/en/3.2/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.2/ref/settings/ """ from p...
[ "janardanpandey0510@gmail.com" ]
janardanpandey0510@gmail.com
cda213adb638250573fe948b2e2f4b4dddf419bd
22415d4998b30ba01ba249463b19f051110feff0
/fileserver/shared.py
97d9e07d5b2b77f7fdc1247820ffa850511c56d3
[]
no_license
dimchat/station-py
9fcc0a3f2ef4383cc7da521db0ed9eee2f9ccfad
64966a06aa10640f4f5af4327bd74d5db6467fe0
refs/heads/master
2023-08-20T21:56:07.313923
2023-08-13T06:35:21
2023-08-13T06:35:21
158,835,688
11
5
null
null
null
null
UTF-8
Python
false
false
5,596
py
# -*- coding: utf-8 -*- # ============================================================================== # MIT License # # Copyright (c) 2022 Albert Moky # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in ...
[ "albert.moky@gmail.com" ]
albert.moky@gmail.com
67320410f535ebde71ef2996dbb812f555810d7e
3550b8f2069f2f00d702012db6bd3c880a74abb8
/Homework-2/get_job.py
8751bc83269951ea5523596d827321f2f6630126
[]
no_license
Donfa1con/PythonHse
9bb2482b00a22ca561becca10b0eeba43bd0cb8e
550edb788f2295a8020924409f5ccf9cc059d590
refs/heads/master
2020-03-27T19:14:46.957525
2018-09-01T07:17:07
2018-09-01T07:17:07
146,975,326
2
0
null
null
null
null
UTF-8
Python
false
false
673
py
import requests import json from help_function import record_to_file api_key = '???' def load_data_from_url(method, api_key): headers = { 'X-Api-App-Id' : api_key } url = 'https://api.superjob.ru/2.0/%s' % method params = { 'town' : 4, 'count' : 100, 'catalo...
[ "diziganshin@inbox.ru" ]
diziganshin@inbox.ru
00250e3d95d0f109cc7852e32d0a437133ebdc65
2c0377022f0d11df517b2addc00925f5763e7494
/main.py
1bdd1f2943d4caa8bee59db1f7c106d2e54b0050
[ "MIT" ]
permissive
Sagu12/TextSummarizer
7ecc1731abeb68baa1420cff0bef9f04824ae440
3c0f1f1c50f28c787eaf14f9c181a65dfd4af567
refs/heads/main
2023-02-09T14:50:43.199347
2021-01-07T09:37:10
2021-01-07T09:37:10
327,564,948
1
0
null
null
null
null
UTF-8
Python
false
false
1,998
py
from flask import Flask, render_template,request import requests from bs4 import BeautifulSoup import nltk import pandas as pd #https://www.youtube.com/watch?v=h8fE_G9a_Oo app = Flask(__name__) def get_wiki_content(url): req_obj = requests.get(url) text = req_obj.text soup = BeautifulSoup(t...
[ "noreply@github.com" ]
Sagu12.noreply@github.com
695ea8c157f1aaf3380cd1020e37aa6fa63cde66
4540da66e67c3e8908f4aeedd49f2efdec21d110
/python/animate.py
2542b92183bf3c74ab3e98e552fc8cae4198eb33
[ "MIT" ]
permissive
mayghalV/planets-sim
6d2e7163955efe4b0cc006372e792b37ca24b560
7b52aa1804663d0764b6389783183a62a0655daa
refs/heads/master
2022-11-30T00:25:54.527513
2020-07-28T07:32:28
2020-07-28T07:32:28
275,545,186
0
0
MIT
2020-07-06T07:22:27
2020-06-28T08:53:27
Rust
UTF-8
Python
false
false
3,119
py
""" Note to update planet_sim.pyd: 1. run 'cargo build --release 2. (on Windows) Copy target/release/planet_sim.dll to python/ 3. Rename the extension .dll to .pyd """ from typing import Dict, List, Tuple import numpy as np import planet_sim import matplotlib.pyplot as plt import matplotlib.animation as an...
[ "mayghalvijapura@live.co.uk" ]
mayghalvijapura@live.co.uk
7ef164e5244b594ae4e7f8f84113336ddbcda4e7
a22da75b98315c688c84c87436aaf99eee67e9b7
/visual_bar.py
ab7f3e4f5b3b0d54cbe6c270ad3a26270eae0d54
[]
no_license
ArtemisWang/AutomaticVideoClipAndMixing
57f08c9e30f4b5ce3ea88f1e6c0cb44490f09759
9679360cc110d4c9fab1596ee95c56e4e19f7a05
refs/heads/master
2021-10-24T18:23:03.817925
2019-03-27T10:49:01
2019-03-27T10:49:01
177,972,242
5
1
null
null
null
null
UTF-8
Python
false
false
1,611
py
# -*- coding: utf-8 -*- import matplotlib.pyplot as plt name_list = ['0.2', '0.4', '0.6', '0.8'] num_list = [0.0161, 0.009, 0.0089, 0.0135] ## p1 num_list1 = [0.0037, 0.0065, 0.0054, 0.0065] num_list2 = [0.0247, 0.0151, 0.0133, 0.0199] ## p2 num_list3 = [0.0025, 0.0033, 0.0033, 0.0033] num_list4 = [0.0197, 0.011, 0.0...
[ "noreply@github.com" ]
ArtemisWang.noreply@github.com
f0e31d42a89688c442c70186387712ca2f1e8ca3
2dc30a70bd995f1038d8a6f200de25a775153a82
/accepted_codes/UJ-3685166-src.py
2310f943b7fc3082373e7c6f6f2194642c799395
[]
no_license
pratyush-nigam/spoj-stuff
ba57d37cf6cdaebf43202c2131f8ce806c5d416b
0a6871ace91cd0dea67195127919ebb6c1817078
refs/heads/master
2020-06-01T04:16:16.183256
2013-04-07T06:26:35
2013-04-07T06:26:35
null
0
0
null
null
null
null
UTF-8
Python
false
false
269
py
import sys def fun(): s=raw_input() a,b=(int(i) for i in s.split(' ')) flag=0 if(a==0): if(b==0): flag=1 while(flag!=1): print a**b s=raw_input() a,b=(int(i) for i in s.split(' ')) flag=0 if(a==0): if(b==0): flag=1 return 0 fun() sys.exit(0)
[ "pratyush.nigam@gmail.com" ]
pratyush.nigam@gmail.com
8b7029f0ee977278cae4cbb89fb2abc357a8cf00
8cc4229dccec92c4143159bbbd567008095a2b27
/backend/appengine/categoria/categoria_model.py
7c2a5f1ab530b8dca88eb8ed10becc0c656f109f
[]
no_license
SamaraCardoso27/Projeto
138f65a04f467bc4d7e71c236ff20bd30a5867b0
5269785c3cc023328d46e12b3b0373dd9d553d0f
refs/heads/master
2016-09-01T22:01:34.408630
2015-04-19T18:56:02
2015-04-19T18:56:02
30,780,889
0
0
null
null
null
null
UTF-8
Python
false
false
696
py
# -*- coding: utf-8 -*- from __future__ import absolute_import, unicode_literals from google.appengine.ext import ndb from google.appengine.ext.db import IntegerProperty from gaeforms.base import Form, StringField, IntegerField from gaeforms.ndb.form import ModelForm class Categoria(ndb.Model): nome=ndb.StringPro...
[ "samaracardosodossantos@gmail.com" ]
samaracardosodossantos@gmail.com
63ecfb627b54627f1864d4e3a644988f45674628
ebdd36e75bccc8c3f80e231b4b0409c2cceaea20
/UPTEES/Detectors/StructureAnalyzer.py
85f3374061f394ac23c202d43077c89987f2de19
[]
no_license
MaximumEntropy/UPSITE
c9865dd675fe8dfd821de9d6af84aa74f224605d
77b29ce00c3e0b35d566b6935871e4dda184ec79
refs/heads/master
2021-01-10T16:19:42.139505
2015-10-28T07:32:02
2015-10-28T07:32:02
45,011,844
0
0
null
null
null
null
UTF-8
Python
false
false
36,234
py
#from Detector import Detector import sys, os sys.path.append(os.path.dirname(os.path.abspath(__file__))+"/..") import Utils.ElementTreeUtils as ETUtils from collections import defaultdict import types class StructureAnalyzer(): def __init__(self, defaultFileNameInModel="structure.txt"): self.modelFileName...
[ "sandeeps@andrew.cmu.edu" ]
sandeeps@andrew.cmu.edu
f76e89dc0176bd78e18083cf96494132976542a0
fb38630bcb0e8d1acd8bdf559d6b19b3008122c7
/1024.py
155a7a07bd35104229c06ad7c99890d3f205affc
[ "MIT" ]
permissive
ossfile/1024-web-crawler
de14f4c2146fd9097a46da22d9e957054efc32bb
83f939a53a921c49fbbacb5c5b8000c88b1da858
refs/heads/master
2022-04-03T12:46:56.238010
2019-12-25T03:33:24
2019-12-25T03:33:24
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,535
py
import requests import re import os from lxml import etree try: flag=1 while flag<=270: base_url='https://t66y.com/' page_url='https://t66y.com/thread0806.php?fid=16&search=&page='+str(flag) get=requests.get(page_url) article_url=re.findall(r'<h3><a href="(.*)" target="_blank" id...
[ "lzhengycy@outlook.com" ]
lzhengycy@outlook.com
dc42acc3aeb1dbbb67aad2c35d110995714ba7eb
8d943e4a4af2a08653988dba7f6a342eea113e9c
/awspy/ecs/__init__.py
650f3cb335dd9ab6f2d98703cb6cd2618adb43a3
[ "MIT" ]
permissive
ScholarPack/awspy
1d7b7b2b427334590fac4d67a73a4b1ad575fdec
750e38c5f3914dc4bb9d4536fad6a1af5c2bc4a7
refs/heads/main
2023-06-17T00:11:27.934590
2021-07-16T12:25:20
2021-07-16T12:25:20
385,636,223
0
0
MIT
2021-07-16T12:25:21
2021-07-13T14:40:03
Python
UTF-8
Python
false
false
29
py
from .fargate import Fargate
[ "joe@scholarpack.com" ]
joe@scholarpack.com
ee4d0edf66d7a8c4ddce1c673e56b805bace6794
039c5187dd45b8dd2c960c1570369d6eb11eae83
/soufang/config.py
efd983939f003ba81021d15df92d8a15a3eca8df
[]
no_license
huazhicai/spider
5636951c1e0db4dc7b205cacfe8e881a08ff2015
d72ce471b0388d6d594853120c8e8f93694015a6
refs/heads/master
2021-07-24T23:01:15.124742
2017-11-04T09:05:46
2017-11-04T09:05:46
107,860,473
1
0
null
null
null
null
UTF-8
Python
false
false
7,411
py
# ็ˆฌๅ–ๆˆฟๅคฉไธ‹็š„ๆฅผ็›˜็š„่ฏ„่ฎบ # ่Žทๅ–ๅŸŽๅธ‚ๅ็งฐ import re import requests from bs4 import BeautifulSoup def get_city(): url = 'http://www.fang.com/SoufunFamily.htm' html_content = requests.get(url) # <a href="http://gaoling.fang.com/" target="_blank">้ซ˜้™ต</a> pattern = re.compile(r'<a href="http://(\w+)\.fang\.com/" target="...
[ "936844218@qq.com" ]
936844218@qq.com
9a12029623af66c700d989ba7253121601a4f6d5
2d27444b26de173ed1b7454f72d102050c7a6b07
/Tuples/tuples04.py
bfb1b4cb89f5c12608af7a77689cf38b9a60a51a
[]
no_license
imrishuroy/Python-Projects
6b93454dcb30c307aece07d611855f8b718fb8e8
f15a0e7da702a30618658ce4f4650807daaae759
refs/heads/master
2023-04-17T04:33:38.889592
2021-05-08T08:35:09
2021-05-08T08:35:09
335,221,000
0
0
null
null
null
null
UTF-8
Python
false
false
140
py
# Tuples and Dictionary d = dict() d['Rishu'] = 91 d['Prince'] = 100 for k , v in d.items(): print(k,v) tups = d.items() print(tups)
[ "rishukumar.prince@gmail.com" ]
rishukumar.prince@gmail.com
c8145d6c24dc99f140a89cac5e485e16c2be0d30
805b939113372eeed5b9597a75993f853bb1cdac
/ๆ•ฐๆฎๆŒ–ๆŽ˜/test039.py
f0e6c69bb0a150c844728c786d932aee7510f7b7
[]
no_license
840614476/my_test
0fa9961656ad5c032c8f6396ea84991640ae722d
7a86c47305824c4163579864d70da7a3c30cb0d4
refs/heads/master
2020-07-30T07:35:22.445181
2019-09-24T09:20:24
2019-09-24T09:20:24
206,029,524
0
0
null
null
null
null
UTF-8
Python
false
false
491
py
#!/usr/bin/env python # -*- coding:utf-8 -*- # author:TBH time:2019/9/10 import jieba.analyse import jieba.posseg #ๆ›ดๆ”น่ฏ้ข‘ # text = "ๆˆ‘ๅ–œๆฌขไธŠๆตทไธœๆ–นๆ˜Ž็ " #jieba.add_word("ไธŠๆตทไธœๆ–น", freq=700) ci_1 = jieba.cut(text) for item in ci_1: print(item) print("") #ๅˆ†ๆžๅ…ณ้”ฎ่ฏ # text2 = "ๆˆ‘ๅ–œๆฌขไธŠๆตทไธœๆ–นๆ˜Ž็ " tag = jieba.analyse.extract_tags(text2, 3)...
[ "840614476@qq.com" ]
840614476@qq.com
e6cfad498bd1578ed61cc72f6ff9f0afede40cf4
c651ea919f24fcf51cbe27d1c336b9324fda74e6
/crypto/500-john-pollard/solve.py
b84ac8258c6a01329b9083966cb61303ce369c20
[]
no_license
paiv/picoctf2019
31f611b21bcab0d1c84fd3cb246c7dd58f6949df
90b1db56ac8c5b47ec6159d45c8decd6b90d06d5
refs/heads/master
2020-08-11T03:38:55.580861
2019-10-11T20:48:44
2019-10-11T20:48:44
214,483,178
1
0
null
null
null
null
UTF-8
Python
false
false
385
py
#!/usr/bin/env python from Crypto.PublicKey import RSA from Crypto.Util.number import inverse as modinv def solve(): N = 4966306421059967 P = 73176001 Q = 67867967 E = 65537 assert N == P * Q D = modinv(E, (P - 1) * (Q - 1)) key = RSA.construct((N, E, D, P, Q)) return key.exportKey()....
[ "pavels.code@gmail.com" ]
pavels.code@gmail.com
618f83793b61456aa8298f3a72b371b921d7f30a
293db74378eb425d54ae2ea4735d442d594cc0b8
/myapp/migrations/0004_auto_20160517_0559.py
665ada23577a4d573d90b4f6498924033b5b5e4e
[]
no_license
ajithkjames/contactsmanager
6c5944ee126411db71bcb43a274a6de92c5c236d
c546e4fd53e835d85f66aef0890f9a46e945d275
refs/heads/master
2020-07-03T00:33:56.353982
2016-11-19T12:48:18
2016-11-19T12:48:18
74,207,861
0
0
null
null
null
null
UTF-8
Python
false
false
601
py
# -*- coding: utf-8 -*- # Generated by Django 1.9.6 on 2016-05-17 05:59 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('myapp', '0003_members_contact_member'), ] operations = [ migrations.RemoveFi...
[ "you@example.com" ]
you@example.com
bf74aa88f5156a86b04175d222bc82650995a74d
a72402e6bfa6b06812d530443baa296f53355cc0
/clos_get_dhcp_ip.py
74082f6a065ed52862e9cd0f9efb1d2333013951
[]
no_license
robertdigital/virtual-router-with-qemu
41ac1061b36fa592d67668d4e708d93e0b6156fe
a34b53d0e2110abb42b393693e40fd8bb8080f4e
refs/heads/master
2020-12-27T20:23:59.334606
2019-05-10T13:48:58
2019-05-10T13:48:58
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,059
py
#!/usr/bin/env python import os import json import sys #dhcp_table file contain all IP and macaddress in <ip> <mac> format per line. #cat upload/* > dhcp_table.txt output_dir = "clos_test" dhcp_file = output_dir+"/dhcp_table.txt" clos_file = output_dir+"/nodes.with.vm.json" def read_json_file(filename): F = ope...
[ "rendo.aw@gmail.com" ]
rendo.aw@gmail.com
696df3b6530b6d357c43a5714c1244e091b7a965
5a27d00e32e5be596b38eb6b2b735b2c94536513
/codechef/SSEC2/hack_it.py
3996933223a3c9dadf9bec3ab1e87a59a8b25ae4
[]
no_license
vishk95/Challenges
dc29d28fce4ced044ce60874eb53c0713adb2558
047798af14a8b47608da975b1b578bee9736e7c7
refs/heads/main
2023-03-08T23:16:34.571460
2021-03-05T12:42:25
2021-03-05T12:42:25
336,181,123
0
0
null
null
null
null
UTF-8
Python
false
false
341
py
def correction(i): res = "" for digit in range(len(i)): i[digit] = str(int(i[digit]) - 2) print(int(res.join(i))) if __name__ == '__main__': n = int(input().strip()) passwords = [] for _ in range(n): passwords.append(list(input().strip())) for i in passwords: ...
[ "vishalat1994@gmail.com" ]
vishalat1994@gmail.com
5407f917a3df1126560376f7fd4e574c2a9a703d
1e198980ecce4ff1e5e08d71d4127c9be19e6296
/syntax/operator.py
92155c9e9ebc0712debd2c71753d20cf2483301a
[]
no_license
rheehot/python101
a2af8bb47dd5ecd792f262379e86cafaf04b3313
a8be8b6796ea2b5375aeb7455a8715059ed44410
refs/heads/master
2023-02-20T18:36:17.105974
2021-01-26T18:03:13
2021-01-26T18:03:13
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,239
py
# ํŒŒ์ด์ฌ์€ 7๊ฐœ์˜ ์—ฐ์‚ฐ์ž๋ฅผ ์ง€์›ํ•œ๋‹ค. # ์‚ฐ์ˆ ์—ฐ์‚ฐ์ž # 1) ์‚ฌ์น™์—ฐ์‚ฐ์ž : + - * /(์ง„์งœ ๋‚˜๋ˆ„๊ธฐ) # 2) ์ œ๊ณฑ : ** # 3) ๋‚˜๋จธ์ง€ : % # 4) // : ๋ชซ print(3 ** 4) # 3์˜ 4์Šน print(5 % 2) # 1 print(5 / 2) # 2.5 print(5 // 2) # 1 # ๋น„๊ต์—ฐ์‚ฐ์ž(๊ด€๊ณ„์—ฐ์‚ฐ์ž) # == != < > <= >= # ๋น„๊ต์— ์˜ํ•œ True / False ๊ฐ’ ๋ฐ˜ํ™˜ # ํ• ๋‹น์—ฐ์‚ฐ์ž # ๋ณ€์ˆ˜์— ๊ฐ’์„ ํ• ๋‹นํ•˜๊ธฐ ์œ„ํ•ด์„œ ์‚ฌ์šฉ # = += -= *= /= %= //= # ์‚ฐ์ˆ ์—ฐ์‚ฐ์ž๋ฅผ ๋ชจ๋‘ = ์„ ๋ถ™์—ฌ์„œ ํ• ๋‹น์—ฐ์‚ฐ...
[ "jjanmo07@hanmail.net" ]
jjanmo07@hanmail.net
cd17da2be8e61707740541225e6128d3129b4caf
7401d6ec2bf31b2235ba7a4504514689af796d21
/tests/base_test.py
c9a4d54bc4cfc6721ba863c4bc64b8d09d9830ba
[ "MIT", "LicenseRef-scancode-warranty-disclaimer" ]
permissive
AbySagar/Twilio-flask-test-1
278df2d792b3a1c587a1e566a1e46ec8a53b3ff8
4d7f7f3837e4a7cbd17457c79e703ea17c1f16f8
refs/heads/master
2021-08-10T12:19:48.124403
2020-03-21T17:22:15
2020-03-21T17:22:15
249,019,053
0
0
MIT
2021-04-20T19:27:04
2020-03-21T16:47:12
Python
UTF-8
Python
false
false
550
py
import unittest from models.appointment import Appointment class BaseTest(unittest.TestCase): def setUp(self): from reminders import app, db self.app = app self.db = db self.celery = app.celery() self.test_client = app.flask_app.test_client() self.app.flask_app.conf...
[ "jsantos@stackbuilders.com" ]
jsantos@stackbuilders.com