blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
3
281
content_id
stringlengths
40
40
detected_licenses
listlengths
0
57
license_type
stringclasses
2 values
repo_name
stringlengths
6
116
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringclasses
313 values
visit_date
timestamp[us]
revision_date
timestamp[us]
committer_date
timestamp[us]
github_id
int64
18.2k
668M
⌀
star_events_count
int64
0
102k
fork_events_count
int64
0
38.2k
gha_license_id
stringclasses
17 values
gha_event_created_at
timestamp[us]
gha_created_at
timestamp[us]
gha_language
stringclasses
107 values
src_encoding
stringclasses
20 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
4
6.02M
extension
stringclasses
78 values
content
stringlengths
2
6.02M
authors
listlengths
1
1
author
stringlengths
0
175
2849c83bfd9f44bd48abd9be2c20409367d65edf
d300cac273e62b058c503d38de8ed6fc622e4806
/main.py
ef5316d2ae45c587156ab72d697d4fdea947440d
[]
no_license
MichalMatuskaDCA/Udemy_Lesson_4_4
f83e32d98e43f095d626d3618c36c21c6d6eb771
7c9376d12d032820a9b87c3e3e60f226f27bca17
refs/heads/master
2023-08-11T12:32:37.301570
2021-10-10T17:35:35
2021-10-10T17:35:35
415,650,073
0
0
null
null
null
null
UTF-8
Python
false
false
883
py
import random rock = ''' _______ ---' ____) (_____) (_____) (____) ---.__(___) ''' paper = ''' _______ ---' ____)____ ______) _______) _______) ---.__________) ''' scissors = ''' _______ ---' ____)____ ______) __________) (____) -...
[ "88484448+MichalMatuskaDCA@users.noreply.github.com" ]
88484448+MichalMatuskaDCA@users.noreply.github.com
c780e1290022738f2784cc181bb9b35646860418
315145ec1f997da0ac2dcedc221285b9a8aae3a9
/2016/get_tweetid_boundary.py
91f38626644492392eded816ed26277cf40cc24c
[]
no_license
lukuang/2016-rts
55cc7f942ad674c325e1e906246873016e3b9678
bfe8c57711aa3243419ff4c0487e971eee667aa6
refs/heads/master
2021-01-19T04:21:53.707708
2019-01-03T23:14:46
2019-01-03T23:14:46
61,137,503
1
0
null
null
null
null
UTF-8
Python
false
false
1,432
py
""" generate tweet boundary for each day """ import os import json import sys import re import argparse import codecs import subprocess def get_tweet_id(output): for line in output.split("\n"): tweetid_finder = re.search("<DOCNO>(\d+)",line) if tweetid_finder: return tweetid_finder.gr...
[ "lukuang1989@gmail.com" ]
lukuang1989@gmail.com
0dd9e07ae664f33d68262510d66a66f049b3a4ec
8d45234a9b4af2e6ac09b66f460f59a393a66dc7
/train.py
67e4d0c0beaf31fda44e2d5fbdd5ce71c19cf83e
[]
no_license
Dilipchauhan1998/IrisSpoofDetection
ba4d2f7fe1bd7169e517623d67338feb0b180baf
8c3add08323600b8e5daeda5eae0497bfd8bec80
refs/heads/master
2022-11-19T14:01:02.922536
2020-07-15T07:12:23
2020-07-15T07:12:23
279,776,374
0
0
null
null
null
null
UTF-8
Python
false
false
6,285
py
# set the matplotlib backend so figures can be saved in the background import matplotlib matplotlib.use("Agg") import matplotlib.pyplot as plt import numpy as np import argparse import torch from torch import nn from torch import optim import torch.nn.functional as F from torchvision import datasets, transforms, model...
[ "adilipchauhan013@gmail.com" ]
adilipchauhan013@gmail.com
484932b2584a92629dfb5af13608264e37cf192e
3b8ea489dcf2eea47c37156527a2727221e216f3
/virtual/lib/python3.6/site-packages/gunicorn/__init__.py
0edcf51907fe1909fae903ba27d6f143406cb4ac
[ "MIT" ]
permissive
toelapiut/unsplash
d57ec93825ebae7107aea43823b1acbe4e5493f6
a93a694bef7214c64d248e20f3a6b904b463672d
refs/heads/master
2021-08-31T14:49:31.383197
2017-12-21T19:07:11
2017-12-21T19:07:11
111,072,300
5
0
MIT
2017-12-21T19:07:12
2017-11-17T07:31:39
Python
UTF-8
Python
false
false
255
py
# -*- coding: utf-8 - # # This file is part of gunicorn released under the MIT license. # See the NOTICE for more information. version_info = (19, 7, 1) __version__ = ".".join([str(v) for v in version_info]) SERVER_SOFTWARE = "gunicorn/%s" % __version__
[ "toelapiut7@gmail.com" ]
toelapiut7@gmail.com
5d5e7975589078a1c68ef75b0d69e436143b003d
169b5030807c38e6b55fd8fa767fa1836737e899
/AmapFunctions/WeatherInformation.py
8f28811b0fd162b643dc71754e2d0d2f5b88ae28
[ "MIT" ]
permissive
Gaoyifei1011/AmapProgram
88a5ff5b2d337c94b3db6dff7f51c74d2142bf21
d45a27abf9f508d922f37abc34f00da6d0aab4a0
refs/heads/main
2023-04-30T13:53:28.303296
2021-05-20T02:31:08
2021-05-20T02:31:08
368,448,437
3
1
null
null
null
null
UTF-8
Python
false
false
42,865
py
# -*- coding:utf-8 -*- # 导入的库 import datetime import inspect import json import time import requests from SelfExpection.CustomExpection import CustomExpection from SelfExpection.OfficialException import OfficialException from logrecord.WriteLog import WriteLog class WeatherInformation: """ C...
[ "363301617@qq.com" ]
363301617@qq.com
68eaf539f92c8bc535b626e446a437473f6ea8ca
43f709324c1d94b5f5693dd2ce8d3ff7ffdef85f
/spider.py
6fa4c201abf0141151236b0d397318d13148d9d8
[]
no_license
Mitch-Tyrer/link_scraper
c5a23ac5ee20dfff72a61f538d413bf557d88a02
531dd925dd98ff503d1fae6b5d33ec19ab0dfb6c
refs/heads/main
2023-07-15T09:10:16.698581
2021-08-23T18:33:04
2021-08-23T18:33:04
399,208,277
0
0
null
null
null
null
UTF-8
Python
false
false
2,032
py
import requests from bs4 import BeautifulSoup as bs import pprint #website = 'http://www.example.com' website = input("What webiste do you want to scrape? Include the 'http://' :") # Headers required for HTTPS requests headers = {'User-Agent' : "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, li...
[ "mltcinematography@gmail.com" ]
mltcinematography@gmail.com
a6d208145323baa89e72b808134c0bb0705d4cdb
ddeeba4b7efadea4fc8d760e0b1a2528caac8f54
/demulti_bamfile.py
35503de331a61f3eeaa9ebf4e562c454882a0443
[]
no_license
klprint/scpython
56e7f14097c1f6c1ec2f50e71114b86c4868a029
bef547ac5026034aa1776893f2a00881de6d9e89
refs/heads/master
2021-07-18T23:11:54.379053
2017-10-25T14:38:37
2017-10-25T14:38:37
108,283,170
0
0
null
null
null
null
UTF-8
Python
false
false
3,151
py
import subprocess import re import os # def myrun(cmd): # """from http://blog.kagesenshi.org/2008/02/teeing-python-subprocesspopen-output.html # """ # p = subprocess.Popen(cmd, shell=True, stdout=subprocess.PIPE, stderr=subprocess.STDOUT) # stdout = [] # while True: # line = p.stdout.readli...
[ "kevin.leiss@protonmail.com" ]
kevin.leiss@protonmail.com
56cf62ca743025d0e79cf92b27a890e00237ac08
44a9474c82ba42edb49231be785c1b764c33075a
/sabrtooth/__init__.py
2c53eb868577dd2665d432433fdf8f27dda7884c
[ "MIT" ]
permissive
abrt/sABRTooth-python
d79dfb9c24d133e7e6e060dc0b3c147156cdd6d9
cfd374f9f5c9661788a71999b82d65f41d000903
refs/heads/master
2020-09-20T08:38:32.234952
2020-04-16T12:50:21
2020-04-16T12:50:21
224,425,969
0
0
MIT
2020-03-25T10:11:02
2019-11-27T12:28:30
Python
UTF-8
Python
false
false
2,462
py
# -*- coding: UTF-8 -*- # Copyright (c) 2020 Red Hat, Inc. # # 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 the Software without restriction, including without limitation the rights # to use, copy, modi...
[ "ekulik@redhat.com" ]
ekulik@redhat.com
bf676537a89da5673703b3507daf8b5d7be47720
161d96f4b16e1cc7e473f12b7070aa9f5615e28e
/iternal/discord/cogs/admin/debug.py
d348403298838515aca40e1a29a7ddeae2b6b833
[]
no_license
pikoUsername/prison-bot
be717d4d64eb18d922bf808bb9d48db659269318
c6b8df54e71a4f0fc0fa1568d9da070a290d43da
refs/heads/master
2023-04-02T18:46:52.034934
2021-04-13T05:07:41
2021-04-13T05:07:41
345,583,521
0
0
null
null
null
null
UTF-8
Python
false
false
1,744
py
from discord.ext import commands as commands from discord import Embed as Embed from .utils import log as log from iternal.discord.loader import _ as __, proj_root as proj_root from iternal.store.prison import Prison as Prison class Debugger(commands.Cog, name='pantry | Кладовка'): """ Использвать для того ч...
[ "galymzhan.amantaj@gmail.com" ]
galymzhan.amantaj@gmail.com
3d4989955c3a21bd3c3ebe99f4dde8342cbb62f6
268424c19feb5c4b6a3f53d901a7f8560556dd24
/configs/recognition/tsm_custom/tsm_r50_1x1x8_20e_customdataset_fight_rgb320.py
451f8a285b9193cef155fc2167ee465d552754e6
[ "Apache-2.0" ]
permissive
ZJU-lishuang/mmaction2
b1ec4f395934071e8efd7c851bd43b21ecae2bea
dc46505319968eff0123eb5abb811969042377c5
refs/heads/master
2023-06-02T21:33:18.043709
2021-03-29T01:45:53
2021-03-29T01:45:53
334,845,651
3
0
Apache-2.0
2021-06-04T01:15:29
2021-02-01T05:54:35
Python
UTF-8
Python
false
false
3,709
py
_base_ = [ '../../_base_/models/tsm_r50.py', '../../_base_/schedules/sgd_tsm_50e.py', '../../_base_/default_runtime.py' ] # model settings model = dict(backbone=dict(pretrained='weight/resnet50-19c8e357.pth'),cls_head=dict(num_classes=2)) load_from = "weight/tsm_r50_256p_1x1x8_50e_kinetics400_rgb_20200726-02078...
[ "qqlishuang@gmail.com" ]
qqlishuang@gmail.com
064c47c344a4c113a40b9dfe3e8c77cca1f181ac
415a8a4315e6331b2a157de8a1429fe0562729f8
/python/matplotlib/axisSciNotation.py
72ae2b7e657fd9d1a2ed94320b673af0cd30a29a
[]
no_license
alfaceor/programming-examples
784690dd1104e4adbdf958e4163b3b462f635881
abea970a54cfab0eacc5280ae62383495e9e6eeb
refs/heads/master
2022-05-04T23:14:30.503114
2022-04-29T10:11:45
2022-04-29T10:11:45
36,015,541
0
0
null
null
null
null
UTF-8
Python
false
false
1,197
py
#!/usr/bin/python import numpy as np import matplotlib.pyplot as plt import matplotlib.ticker as mtick ###### BEGIN PLOT DECORATION VARIABLES font = {'family' : 'normal', 'weight' : 'bold', 'size' : 18} plt.rc('font', **font) plt.rc('text', usetex=True) ###### END PLOT DECORATION VARIABLES XX = n...
[ "alfaceor" ]
alfaceor
b0132e7d6bf28a3f4ff57c19ebd0a268df7aa5a9
3d40920955a7079bbe9a0912f4eee5465c5c5930
/src/min_cost_matcher.py
ccfba688af47aa12126455985a8d7bf9686b21de
[ "MIT" ]
permissive
shamir0xe/Image-Generator
2457525c7f400efb2a8aa9bacaeaedc8bc94ad3d
94e3546811af0e8bb2ad935949b65a798e37b7e9
refs/heads/main
2023-03-03T14:49:23.564210
2021-02-08T03:26:06
2021-02-08T03:26:06
336,615,927
0
0
null
null
null
null
UTF-8
Python
false
false
1,527
py
import operator import math from ..libs.PythonLibrary.algorithms import MinCostFlow from ..libs.PythonLibrary.utils import debug_text class MinCostMatcher: INF = int(1e9) def __init__(self, image_rgbs, frame_rgbs, properties={}): self.max_same_picture = self.INF if 'max_same_picture' in proper...
[ "shamir0xe@gmail.com" ]
shamir0xe@gmail.com
be6bd616616a52b562bc53847e4c1cb1e4670890
1036acb858e1b283afbcfbec2827917860187241
/blog_login_page/views.py
5e316bb55b1e27339c49e24234acf049783097e0
[]
no_license
Mrtopuh/little_blog
6195cb00db22b9e9927322614aa406d8c2f3a972
fa5798ac449954c2a864b429148e07d36fa8a4c5
refs/heads/master
2020-05-23T14:23:48.017929
2019-05-17T12:34:15
2019-05-17T12:34:15
186,801,742
0
0
null
null
null
null
UTF-8
Python
false
false
433
py
from django.views.generic import ListView, DetailView from blog_login_page.models import Post from django.http import HttpResponse class PostsListView(ListView): # представление в виде списка model = Post # модель для представления class PostDetailView(DetailView): # детализированное предста...
[ "42946352+Mrtopuh@users.noreply.github.com" ]
42946352+Mrtopuh@users.noreply.github.com
2b811bc4a558ca355bc8465310d5280b36813baf
8ee8fe3c2acea497a85428bfb3dfde19e58b2bc3
/test-examples/issue_673_reproduce.py
aa8cc0108c7bfb6feebd605779c329efcf6936d2
[ "BSD-3-Clause" ]
permissive
sofroniewn/image-demos
a6e46f08fd4ce621aa96d6b6378b50f63ac2b381
2eeeb23f34a47798ae7be0987182724ee3799eb8
refs/heads/master
2022-11-02T23:50:23.098830
2022-10-30T04:38:19
2022-10-30T04:38:19
179,378,745
11
1
null
null
null
null
UTF-8
Python
false
false
729
py
""" Test adding 4D followed by 5D image layers to the viewer Intially only 2 sliders should be present, then a third slider should be created. """ import numpy as np from skimage import data, measure import napari import scipy.ndimage as ndi image = data.binary_blobs(128, n_dim=3) verts, faces, normals, values = ( ...
[ "sofroniewn@gmail.com" ]
sofroniewn@gmail.com
70c492254671249aa90570f68bfbfbe8beffdd49
8fd7ecad72eb84d3cbab62dc65b8c86f5c4aa3d1
/light_malware.py
ae5bebbeb7784993b47772615e6dc86b8dcddc1b
[ "MIT" ]
permissive
burakim/Sensory-Channel-Malware-For-Raspberry-Pi
b4a6e15def16b9ef0c64b9984c853614780c09b5
099df3b3260d7e6af4cbfbac863628e3e6448426
refs/heads/master
2020-03-22T17:21:40.345950
2018-07-10T07:16:45
2018-07-10T07:16:45
140,390,753
0
0
null
null
null
null
UTF-8
Python
false
false
769
py
import RPi.GPIO as GPIO import os GPIO.setmode(GPIO.BCM) GPIO.setup(4,GPIO.IN) control1 = False control2 = False control3 = False control4 = False while True: if GPIO.input(4) == True and control1 == False: control1 = True print "passed 1" if GPIO.input(4) == False and ...
[ "h.burakyesilyurt@gmail.com" ]
h.burakyesilyurt@gmail.com
25d4974c987bc8c7e1e6927238232a065b71c043
ae1fccbabebaa6c63c714a1499062cf67e59df96
/0011/0011.py
bb41bb6b90e4cbf8fb4a77037b600ea198d36fb5
[]
no_license
tiny656/show-me-the-code
58f764260713ee9493b0d08318c93bffe181e671
e39f06e14760ab2f4ab41485f770ee40eaf7b5c6
refs/heads/master
2021-03-30T20:39:42.037638
2017-12-19T12:46:42
2017-12-19T12:46:42
27,226,298
3
1
null
2017-12-19T12:46:43
2014-11-27T13:23:09
Python
UTF-8
Python
false
false
348
py
# coding: utf-8 mask_word= [u'北京', u'程序员', u'公务员', u'领导', u'牛比', u'牛逼', u'你娘', u'你妈', 'love', 'sex', 'jiangge'] def input_check(inp): for m in mask_word: if m in inp.decode('gbk'): return 'Freedom' return 'Human Rights' if __name__ == '__main__': print input_check(raw_input())
[ "tiny656@foxmail.com" ]
tiny656@foxmail.com
172587e49722bc2f1738411ddc13aa3b67bd0f51
b242a81ef67962f9be61091aaec16fbf2ab04d8b
/numsereies.py
3c788ba1bbd02b9a55996956fbda81c5c522c521
[]
no_license
NITHISH2104/Python-Problem-Solving
aa27e999aa6762d48316f8dbc0a4aaeb7dea8cc5
7e25db86b0a6727a115f370fb7167f4f9a29b496
refs/heads/master
2020-12-22T20:19:54.253415
2020-01-29T08:53:53
2020-01-29T08:53:53
236,921,375
0
0
null
null
null
null
UTF-8
Python
false
false
172
py
def term(n): return n *(n + 1) / 2 n =int(input("ENTER THE LAST SEQUENCE")) print (term(n)) '''output ENTER THE LAST SEQUENCE:4 10 '''
[ "noreply@github.com" ]
noreply@github.com
dc2a0ba8f72cdf3c2ef58c57c87d4ef22ca7882e
93e5c0a664269cc1312e1ad15ec7c312734b862c
/tests/conftest.py
ece469c248ab085a398b8ea330bb245090e215e8
[]
no_license
NSowtril/botanic
86afdedb6074f96646849c6d43045601ffc74d4b
06c25f05b1a1b7dac9a4eb37457236f2d6d8e12d
refs/heads/master
2020-04-01T08:33:49.558204
2018-11-03T11:10:48
2018-11-03T11:10:48
153,036,506
0
0
null
null
null
null
UTF-8
Python
false
false
1,458
py
import os import tempfile import pytest from botanic_website import create_app from botanic_website.db import get_db, init_db with open(os.path.join(os.path.dirname(__file__), 'data.sql'), 'rb') as f: _data_sql = f.read().decode('utf8') @pytest.fixture def app(): db_fd, db_path = tempfile.mkstemp() # 创建并打开...
[ "409998481@qq.com" ]
409998481@qq.com
bc0025f51a8fa5c3464837cb6f3e5d3482510b35
bbf2869f2ea67bc3b85314fb88e3385dbaa3512c
/hamming_code.py
44153ffff2c65073fa40d572bf345f9c66026910
[]
no_license
saikishore222/solving-hamming-Code
48c9f4cb5da9d9afb266fb14929210aaadc769ff
d99e37639b5ca7e3f966a5bfb81030784dbd15f2
refs/heads/main
2023-02-04T09:54:07.036209
2020-12-27T04:02:32
2020-12-27T04:02:32
316,659,290
0
0
null
null
null
null
UTF-8
Python
false
false
17,569
py
from tkinter import * from tkinter import messagebox root=Tk() root.title("Hamming Code") root.geometry('500x450') root.configure(bg="#11f18e") root.resizable(0,0) def error_solution(msg_data,v): global label5,root3 root3=Tk() root3.title("Error Detection Solution") root3.geometry('1000x700')...
[ "noreply@github.com" ]
noreply@github.com
d5816c72272ef41e166a07c37299ed5213ec1c76
8335a82a72c27884e814d02347e50f2347d92e11
/CPL-python/src/classes/Sentence.py
5fefcd9a4a7cd02dcf3533b0c9e6bf4b6c15e5f4
[]
no_license
kburaya/NELL
798136a01a15d199bd231145bcee32a9b4620f16
e277c4c6b29e64119b996c9571157560d882108d
refs/heads/master
2021-01-20T18:24:08.451256
2016-11-07T16:33:42
2016-11-07T16:33:42
71,546,648
0
1
null
2017-01-02T14:52:27
2016-10-21T08:38:43
Python
UTF-8
Python
false
false
1,061
py
import nltk from SimpleWord import SimpleWord class Sentence: words = list() string = '' def __init__(self, sentence, morph): if sentence == None: return self.string = sentence words = nltk.word_tokenize(sentence) self.words = list() for word in words: ...
[ "ksu.nyaka@gmail.com" ]
ksu.nyaka@gmail.com
709fdd855b433692b630272fea99fc8a75efd2d7
384c656bc90c49a32a3accdbf251080617589116
/configs/deformable_detr/deformable_detr_twostage_refine_r50_dp0_mqs_lft_dim2048_16x2_36e_coco.py
b3177326a9414ce03f920f987e777c22f4e0fe3e
[ "Apache-2.0" ]
permissive
HDETR/H-Deformable-DETR-mmdet
b69d03c719c518738f831af3d64270f98f0fe2b2
8c8836c1754ea70b9e0731c8defab5c3f3b2df6f
refs/heads/mmdetection
2023-05-23T12:33:30.685399
2023-01-14T13:16:51
2023-01-14T13:16:51
521,166,627
33
3
Apache-2.0
2022-12-03T07:21:19
2022-08-04T07:27:01
Python
UTF-8
Python
false
false
7,494
py
_base_ = ["../_base_/datasets/coco_detection.py", "../_base_/default_runtime.py"] model = dict( type="DeformableDETR", backbone=dict( type="ResNet", depth=50, num_stages=4, out_indices=(1, 2, 3), frozen_stages=-1, norm_cfg=dict(type="BN", requires_grad=False), ...
[ "jiading.biz@outlook.com" ]
jiading.biz@outlook.com
548b27946f87ef8704f9fc1a9ba223e08c830efa
6a3af6fe669b2e17db1fa7d0751cbc4e04948079
/fn_icdx/tests/test_icdx_helper.py
9b02b54530b75dba078fdc5e236bea2fe5278b8f
[ "MIT" ]
permissive
jjfallete/resilient-community-apps
5f0a728fe0be958acc44d982bf0289959f84aa20
2e3c4b6102555517bad22bf87fa4a06341714166
refs/heads/master
2022-04-17T13:20:36.961976
2020-04-13T07:03:54
2020-04-13T07:03:54
169,295,943
1
0
MIT
2020-04-13T07:03:56
2019-02-05T19:06:57
Python
UTF-8
Python
false
false
5,963
py
# -*- coding: utf-8 -*- # (c) Copyright IBM Corp. 2010, 2018. All Rights Reserved. """Tests using pytest_resilient_circuits""" from __future__ import print_function import pytest from fn_icdx.util.helper import ICDXHelper class TestIcdxUtilitiesHelper: """ Tests for the helper class""" @pytest.mark.parametr...
[ "brianwal@us.ibm.com" ]
brianwal@us.ibm.com
677afc8e9b4fedb3137341367891adad32492c94
00fc70953dd85f2699fc80cd7c59e9c472cbb90e
/test/test_retention_metadata.py
841367183a76561a116775360f9a0f8cb528dae3
[ "MIT" ]
permissive
solidgoldbomb/python-harbor
89b270caaa6ac450245753c0a3a13af3ff96c142
4a12789a9712cc101abd3f8d32464bc8a474e0a4
refs/heads/main
2023-02-25T20:22:19.137094
2021-02-01T11:58:24
2021-02-01T11:58:24
null
0
0
null
null
null
null
UTF-8
Python
false
false
880
py
# coding: utf-8 """ Harbor API These APIs provide services for manipulating Harbor project. # noqa: E501 OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import unittest import harbor from harbor.models.rete...
[ "angeiv.zhang@gmail.com" ]
angeiv.zhang@gmail.com
e23cef4d95c6b88e1fab868a2b9aeb07de613b5c
360bc88ccf0725fe255b363492d5fbb264610142
/step3/seq2.py
f6997b3006230230602d444c99aa8ae7fdcbbdfd
[]
no_license
IsaacYouKorea/dovelet
115deba7b16174edfd17233d03b3be6d5b334b0d
942603f34b275b422cd3d6150cb2f0caafac85bd
refs/heads/master
2020-12-05T08:18:10.750799
2020-02-03T04:52:55
2020-02-03T04:52:55
232,055,591
1
0
null
null
null
null
UTF-8
Python
false
false
107
py
#seq2 a = int(input()) for i in range(1, a + 1, 1): print("%d..%d %d" %(1, i, sum(range(1, i + 1, 1))))
[ "isaac_you@mhand.net" ]
isaac_you@mhand.net
1b2d28b012a3ae9806e7d4ee05e0969f02935089
ed9e1b622dad6b559cd0fe6fa23d6a27f857dc7f
/galsim/deprecated/gsobject_ring.py
6a44668976b265c701e31f9d701d4287480961e9
[ "BSD-3-Clause", "BSD-2-Clause" ]
permissive
ajwheeler/GalSim
40d6f8c64789b601ed2547eefed05f1577592613
cf0ef33e5f83da1b13a0617d362d8357056d6f22
refs/heads/master
2021-01-22T06:14:31.486159
2017-04-20T01:20:20
2017-04-20T01:20:20
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,029
py
# Copyright (c) 2012-2017 by the GalSim developers team on GitHub # https://github.com/GalSim-developers # # This file is part of GalSim: The modular galaxy image simulation toolkit. # https://github.com/GalSim-developers/GalSim # # GalSim is free software: redistribution and use in source and binary forms, # with or w...
[ "michael@jarvis.net" ]
michael@jarvis.net
3764b9148dbd8cb4dad26e48fcba0f5658d2a8c6
fb5c44282cee565d0ea108c2c3d1a0bd958b526a
/intrinio_sdk/models/api_response_crypto_book.py
67e9c10b0a430795bb3ce9e84dcb6dc19cd59634
[]
no_license
shahkevaln/python-sdk
21d204b6e5d659d965e79e2a3bdce26fd7d96a56
a7eed11e49676d1e279c7a576f13f187dcf4ece4
refs/heads/master
2020-05-07T20:50:12.917589
2019-04-10T20:25:34
2019-04-10T20:25:34
null
0
0
null
null
null
null
UTF-8
Python
false
false
11,843
py
# coding: utf-8 """ Intrinio API Welcome to the Intrinio API! Through our Financial Data Marketplace, we offer a wide selection of financial data feed APIs sourced by our own proprietary processes as well as from many data vendors. For a complete API request / response reference please view the [Intrinio API ...
[ "kgmilerdev@gmail.com" ]
kgmilerdev@gmail.com
90663da182e01ddfb0c83322092e1fc938744a3d
ebb9a85a7380543f1f8638d66803827198e0dca2
/zone_insert.py
0eb9d2e7a1566bbefd89468df86b0e14229ca86b
[]
no_license
barryirwin/bind-parser
8dd12c609946b0d5b61b23c64445f99eec489ef9
4d3884a0009e98a7421473b55e5fc76e492fa5f2
refs/heads/master
2021-01-20T06:22:59.813973
2016-05-16T00:22:39
2016-05-16T00:22:39
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,865
py
#!/usr/bin/python '''Script for reading zonefile and inserting it's data into PostgreSQL database or exporting as sql file''' OUT_TO_FILE=False #OUT_TO_FILE=True DBNAME='bind' DBUSER='postgres' DBHOST='/run/postgresql' DBPASS='Rrhw4h98GB8G' from zone_parser import read_file import psycopg2 import sys class Cur(): ...
[ "vonabarak@agava.com" ]
vonabarak@agava.com
ac92d3a33d7ec88f1eaf679785c2bac3d5567f53
63198596545040660c21966233219619ee2d27e0
/source/routes.py
6c26c2d8fc57346a25dbbca5bba88fa8d82a00bb
[]
no_license
CarlosDevlpr/FlaskBlog
1f2e10b5fab151d5c4749630cdb70567a9449a70
5530751a2e35df74bb8fa17a04396a69e8323b11
refs/heads/main
2023-08-18T16:33:05.543150
2021-10-20T19:47:53
2021-10-20T19:47:53
419,466,693
0
0
null
null
null
null
UTF-8
Python
false
false
5,796
py
from flask import render_template, redirect, request, url_for, flash, abort from source import app, database, bcrypt from source.forms import FormLogin, FormCriarConta, FormEditarPerfil, FormCriarPost from source.models import Usuario, Post from flask_login import login_user, logout_user, current_user, login_required i...
[ "78228463+CarlosDevlpr@users.noreply.github.com" ]
78228463+CarlosDevlpr@users.noreply.github.com
a1a70d3b122ddbe41c7677983806a28e4eeed340
0b60be2c526149603fcbd3f1a40545ed5d6ed1fc
/uiautomator2/exceptions.py
c5cc3d53d859bec09c096e8a1a9a6578010f23ac
[ "MIT" ]
permissive
levixie/uiautomator2
6f2d4eb1bd1e416dc6ad8a0e50f56dd2f1344530
7fa465601d747aad5c673d603486ad2145b9e860
refs/heads/master
2020-05-20T20:55:13.068591
2019-06-23T23:03:57
2019-06-23T23:03:57
185,751,403
0
0
MIT
2019-06-23T23:03:58
2019-05-09T07:46:01
Python
UTF-8
Python
false
false
1,802
py
# coding: utf-8 # # class ATXError(Exception): # pass class UiaError(Exception): pass class ConnectError(UiaError): pass class XPathElementNotFoundError(UiaError): pass class GatewayError(UiaError): def __init__(self, response, description): self.response = response self.des...
[ "codeskyblue@gmail.com" ]
codeskyblue@gmail.com
ce44746305caf14f548504aabed8981a5a647916
1259a0292d817afa3ee0064d94f7ad6c340281e8
/jeopardy/urls.py
c4b33292aa0ce06abf610993effc56f2c57d4cca
[]
no_license
stsummers95/JParty
2a7a9b85f8251c6b369c02b21e33733395f6a154
b8a83ea924f8aec221c0a9753b3169b245f8d952
refs/heads/master
2020-09-27T22:42:40.047856
2020-01-19T00:00:57
2020-01-19T00:00:57
226,627,352
0
0
null
null
null
null
UTF-8
Python
false
false
844
py
"""jeopardy 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-b...
[ "stephenleesummers@gmail.com" ]
stephenleesummers@gmail.com
cd5e1c539e668186ff5d48747b32ff0bbdfbdc37
e50ba73a33c20579c911d47310ea212e40c25b4c
/xcodeproj/pbxobject.py
7444d9cb4cd1a40b69e908c0e62bcd126b4116c5
[ "MIT", "LicenseRef-scancode-generic-cla" ]
permissive
brokaw/xcodeproj
168cd0851a9fc6331087e6b04ca2a9c3a59584a9
fb98660efe0f40fd82fec1d9d395a9286f66a2a8
refs/heads/main
2023-03-06T03:24:58.006082
2021-02-11T18:11:57
2021-02-11T18:11:57
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,497
py
"""PBX object types""" from typing import Any, Callable, cast, Dict import deserialize @deserialize.allow_unhandled("isa") @deserialize.downcast_field("isa") @deserialize.allow_downcast_fallback() @deserialize.ignore("objects_ref") @deserialize.ignore("project_ref") class PBXObject: """Base class for an object ...
[ "dalemy@microsoft.com" ]
dalemy@microsoft.com
c126690977c665444e45d5d8999070b0b7f77662
f14b11fdbc4e0695ae2b93fd2798fe569bff5c90
/ODA/welcome/views.py
2fb058f794266d65b5771233768e283da45c8f31
[]
no_license
VishwanthSetty/ODA
b1042357880bbd4029d98f7210669fb573d3d9ff
bc98bbc478fbe1870406cf9a09e579cf94817bc7
refs/heads/master
2020-04-06T20:23:10.852704
2018-11-15T20:44:52
2018-11-15T20:44:52
null
0
0
null
null
null
null
UTF-8
Python
false
false
257
py
from django.shortcuts import render from django.http import HttpResponse # Create your views here. def front_page(request): return render(request, 'welcome/main_page.html') def doctor_page(request): return render(request, 'welcome/doc_log.html')
[ "nikhil.sampangi@gmail.com" ]
nikhil.sampangi@gmail.com
36a144965c4bb6563e225c7952ef2dcb1868ab71
b9022c3d2a463ca3f363b09ee5c387a76fa10fbd
/abc029b.py
82ea3b373a5f42cfaede47fb7738b4ce580a32e6
[]
no_license
galileo15640215/atcoder
1371c90bbed185327cd5c3ce32516b5306889db8
27f17573589a43e5ac479e8df048ba461b942b83
refs/heads/master
2021-07-20T14:19:29.361693
2021-07-11T14:34:56
2021-07-11T14:34:56
194,278,891
0
0
null
null
null
null
UTF-8
Python
false
false
101
py
S = [input() for i in range(12)] a=0 for i in range(12): if 'r' in S[i] : a+=1 print(a)
[ "ktaishiro1227@gmail.com" ]
ktaishiro1227@gmail.com
13ecdc3abf138774ecd6ae0a21a5abc0bc3c11a0
a321652061fd5c389490030f898a0191a35f21c3
/managers/operatorsTranscribe/metadata_filegenerator.py
d22dd980ee14d63ef5b5c619fa7a92e2f3597a43
[ "BSD-3-Clause" ]
permissive
cerebunit/cerebmodels
5c4b1485e68d078988ff7057385309a26e05415a
316d69d7aed7a0292ce93c7fea20473e48cfce60
refs/heads/master
2023-02-18T06:45:08.716877
2022-07-18T11:34:13
2022-07-18T11:34:13
139,698,484
0
1
BSD-3-Clause
2023-02-10T21:20:07
2018-07-04T09:15:24
AMPL
UTF-8
Python
false
false
7,147
py
# ~/managers/operatorsTranscribe/metadata_filegenerator.py import platform import uuid import time from datetime import datetime from dateutil.tz import tzlocal class FileGenerator(object): """ **Available Methods:** +---------------------------------+----------------------------------+ | Method name ...
[ "neuralgraphs@gmail.com" ]
neuralgraphs@gmail.com
baf9573ca2f941897d6acbcc4494adf983d03598
8ca1df39d6128233ce95428bcc016ecd2c739be5
/python/TwoPointer/ArmyClothes.py
0b81223abf17c2da57211976c3cec92d6cb92f20
[]
no_license
trqminh/cp-code
f1cb88cb4bf52e9099fd9bfe4490b5aaf26c3cfc
1d9c8e4a75aa2bbc53d8311d9917e1d01bafec73
refs/heads/master
2022-01-12T03:02:33.508084
2019-06-12T17:18:04
2019-06-12T17:18:04
null
0
0
null
null
null
null
UTF-8
Python
false
false
438
py
#http://codeforces.com/problemset/problem/161/A def inp(): return map(int, input().split()) n,m,x,y = inp() a=list(inp()) b=list(inp()) res = list() i,j = 0,0 while ((i < n) & (j < m)): if (b[j] < a[i] - x): j+=1 elif (b[j] > a[i] + y): i+=1 else: res.append([...
[ "1612374@student.hcmus.edu.vn" ]
1612374@student.hcmus.edu.vn
16cdffcad21b4bc71e0565d3267cf02835f08a15
0f5dbae8f99c444c74f14375b36366ca6a989abb
/anagrams.py
4832498d12faa5e336b2f17568516777bf41212c
[]
no_license
ButcherC/Anagrams
9714af864e652ad9e7817f973c65107aace822a1
65f8a6be90e641ff7b0ddc4868db8a2634499c3b
refs/heads/master
2022-11-10T05:52:18.962047
2020-06-22T22:11:19
2020-06-22T22:11:19
274,248,350
0
0
null
null
null
null
UTF-8
Python
false
false
5,172
py
# anagrams.py import sys import random import itertools # must use command-line arguments # no command line agrs, length of sys.argv is 1 (sys.argv[0]) # pick a random 6 letter word from dictionary # ugly and inefficient but it works. with open("words.txt") as f: wordList = [line.strip() for line in f] threeL = []...
[ "noreply@github.com" ]
noreply@github.com
9d492d34a91b9b6a2adaf147e43b85fd5e1810c3
6bf7149077f539ab599db1f717c93aca82724512
/static-and-class_metods/movie-world/customer.py
3aed9a54bd7db6ed12a7a149c4e8651417f97feb
[]
no_license
KalinHar/OOP-Python-SoftUni
8b53e8b734b364878c5372525c4249fdd32f0899
9787eea7ab5101e887ed4aaeb0a8b3b80efcfdd7
refs/heads/master
2023-07-09T08:15:59.765422
2021-08-16T06:01:08
2021-08-16T06:01:19
380,813,294
0
1
null
null
null
null
UTF-8
Python
false
false
361
py
class Customer: def __init__(self, name, age, id): self.name = name self.age = age self.id = id self.rented_dvds = [] def __repr__(self): return f"{self.id}: {self.name} of age {self.age} has {len(self.rented_dvds)} " \ f"rented DVD's ({', '.join([dvd.fami...
[ "kalix@abv.bg" ]
kalix@abv.bg
f0368f012166bc5829c26ba576c8790429d678ce
19f768bdd91d4da24894d7ea1f658464f1fa0a6c
/virtual/bin/pylint
e984d866158be54dda6b4595db4129e2381a9060
[ "MIT" ]
permissive
zecollokaris/personal-blog
8cde84b440afe6778fd8201e66d3cd49c418c856
e6b86c5dae0e53276aa0a9b2dfffc1aa94cf84b8
refs/heads/master
2020-03-12T01:08:51.714507
2018-05-10T21:22:59
2018-05-10T21:22:59
130,209,871
0
0
null
null
null
null
UTF-8
Python
false
false
264
#!/home/karis/Desktop/personal-blog-project/virtual/bin/python # -*- coding: utf-8 -*- import re import sys from pylint import run_pylint if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) sys.exit(run_pylint())
[ "collo.kariss@gmail.com" ]
collo.kariss@gmail.com
1dbb98d148048ec2e2de0094f8d07478d4ee3599
c69a88e1851c3ecb913cb3f8f5aeeb7d65bacedd
/tests/__init__.py
6e7d2aec5f015a73d85b22001c1124628e34f7d8
[ "MIT" ]
permissive
hay-kot/autoalchemy
946a1d32467331441cca0ca839574a6e8a952e09
7310a4ca8bbe2d33d65c1105fbd80f8011d84b0f
refs/heads/main
2023-08-26T08:27:37.778199
2021-11-01T03:00:22
2021-11-01T03:00:22
423,316,692
1
0
null
null
null
null
UTF-8
Python
false
false
42
py
"""Unit test package for auto-alchemy."""
[ "hay-kot@pm.me" ]
hay-kot@pm.me
af7cd741dec4b171f3c5290f7260d7ae32c23b6d
08ca1aa404e9d9d919dc6664329559234356a417
/AsisFinals2017/Mary_Morton/exploit.py
e32e838f4cb149a744befab1f18157628053b80b
[]
no_license
pengking/ctf
d4fe2da8c79b6d9b79a0ea1ee5c238633053da1b
955c353304d995f4614aaacf0418524739298c94
refs/heads/master
2022-03-29T19:53:31.540287
2019-12-30T21:08:51
2019-12-30T21:08:51
null
0
0
null
null
null
null
UTF-8
Python
false
false
802
py
#First import pwntools from pwn import * #Establish the remote connection target = remote('146.185.132.36', 19153) #Establish the address for the ROP chain gadget0 = 0x400ab3 cat_adr = 0x400b30 sys_adr = 0x4006a0 #Recieve and print out the opening text print target.recvuntil("Exit the battle") #Execute the format s...
[ "noreply@github.com" ]
noreply@github.com
7daa1626ce270d36c8e098edfa7bc5e864565334
5853da64a828af16afecc5294b41bb498d4e2111
/3-6.py
7fa8e5bcb5bae3a64e4e3d1fc9b9d0ed48e78138
[]
no_license
cappuccinooo/python20210203
59a65dcdbf40412af45776c442fa3a1d1d1015f2
0a571691f339519e01e99fa65c9da8a76c886be0
refs/heads/main
2023-02-28T10:43:17.563543
2021-02-03T08:59:23
2021-02-03T08:59:23
335,563,773
0
0
null
null
null
null
UTF-8
Python
false
false
757
py
math = list() total = 0 avg = 0 n = input('how many people in this class') n = int(n) for i in range(n): name = input('please input the name') score = input('please input the score') score = int(score) oneperson = list() oneperson.append(name) oneperson.append(score) ...
[ "noreply@github.com" ]
noreply@github.com
2440de879ac63d7220e51232564d85c0b8d174a4
0817d9f21b19d28ff0ab70dda75442a2caa6dd14
/lab1/Obertynska4.py
06f16a5d1f573a8d46180e34e887e55a91151a31
[]
no_license
fsiody/MOwNiT
d616c03a48685068a091055041dedbc32cc61dbd
a2b4ec72abd732346c813855bda3eea867a59098
refs/heads/master
2022-11-17T12:28:34.056632
2020-07-15T23:57:42
2020-07-15T23:57:42
178,751,156
0
0
null
null
null
null
UTF-8
Python
false
false
658
py
import matplotlib.pyplot as plt import numpy as np nMax=200 def foo(x0,r,n): if n==0 : a=r*x0-r*x0*x0 n+=1 while n<nMax: a = r * a - r * a * a n+=1 if(n>nMax-10): xs.append(a) _, ax = plt.subplots() x0 = np.float32(0.2) r=rMin=np.float32(...
[ "noreply@github.com" ]
noreply@github.com
612e4046c2b04611ab064a8a0fe288fe15a90726
d3ba33088e5d34eaccff205f30b4515b9f598dcf
/vpr2swcs/macroblk_generation/frame/rasp30a_frame7.py
85c86292e55c1b0dcdee19a0ecbbb50a2450a304
[]
no_license
woodjamesdee/rasp30
d707e480bf116ce278cf4b37b73de9d076e5ede1
7f9251e3ec8d8a6ef827b09009b08d575254bd2e
refs/heads/master
2020-04-21T14:35:45.199183
2019-05-20T18:58:42
2019-05-20T18:58:42
169,640,192
1
0
null
null
null
null
UTF-8
Python
false
false
845
py
self.dev_types =['fgota']*1 +['ota_buf']*1+['ota']*1+['cap']*1+['nfet']*1+['pfet']*1+['tgate']*1+['nmirror']*1+['c4_sp']*1+['gnd_out']*1+['vdd_out']*1+['in2in_x1']*1+['in2in_x6']*1+['lpf']*1+['nfet_i2v']*1+['pfet_i2v']*1+['i2v_pfet_gatefgota']*1+['mismatch_meas']*1+['mmap_local_swc']*1+['ramp_fe']*1+['hhneuron']*1+['...
[ "ms.m.d.collins@gmail.com" ]
ms.m.d.collins@gmail.com
0d6cd32beb8ee9f9fe8377575c1d2286f9d66e27
d6f8e958fb8493408742ad4ed0eeb087add075ba
/Other-Python-Related-Files/COMP9021/COMP9021_Quizzes/quiz_2.py
1d1839854a168d4e7f8f8def7886c1a95d89609a
[]
no_license
goya1020/UNSW-Assignments
b6f3e1778eb71dae60b9706c15962505de452d35
c56d06201ed4bb68d11f055d1d980e8538ed0367
refs/heads/master
2022-12-28T16:43:45.437907
2018-09-28T07:12:32
2018-09-28T07:12:32
183,410,445
0
1
null
2022-12-19T06:00:06
2019-04-25T10:18:00
Python
UTF-8
Python
false
false
2,016
py
# Implements a function to encode a single strictly positive natural number that in base 2, # reads as b_1 ... b_n, as b_1b_1 ... b_nb_n, and to encode a sequence of strictly positive # natural numbers N_1 ... N_k with k >= 2 as N_1* 0 ... 0 N_k* where for all 0 < i <= k, # N_i* is the encoding of N_i. # Implements a f...
[ "noreply@github.com" ]
noreply@github.com
bdc8891fa9754d6a88a31b22a34e0d3fbb425a84
2d4380518d9c591b6b6c09ea51e28a34381fc80c
/CIM16/IEC61970/Informative/InfLoadControl/LoadShedFunction.py
026cb4a998ab4aeff40560258328b4003d84f7c7
[ "MIT" ]
permissive
fran-jo/PyCIM
355e36ae14d1b64b01e752c5acd5395bf88cd949
de942633d966bdf2bd76d680ecb20517fc873281
refs/heads/master
2021-01-20T03:00:41.186556
2017-09-19T14:15:33
2017-09-19T14:15:33
89,480,767
0
1
null
2017-04-26T12:57:44
2017-04-26T12:57:44
null
UTF-8
Python
false
false
2,090
py
# Copyright (C) 2010-2011 Richard Lincoln # # 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 the Software without restriction, including without limitation the # rights to use, copy, modify, merge, publish...
[ "fran_jo@hotmail.com" ]
fran_jo@hotmail.com
fe0f156cdefc1b9ab28c747ac372aab473cf5ce1
721226b57b1c5b826294b5af57fd5d20f3f0d2e9
/model.py
70e2e1b46daa1b9bb0301bd539e55f8652ee8dd3
[]
no_license
priya170807/Heroku-demo
4ec7e28e9d93c9df25f1c17f5bcb487ec417c007
65fb686637784844f01035404a73cb52156c7170
refs/heads/master
2023-03-23T20:25:52.213517
2021-03-23T22:27:00
2021-03-23T22:27:00
289,343,355
0
0
null
null
null
null
UTF-8
Python
false
false
1,592
py
import pandas as pd import numpy as np import pickle import gzip from sklearn.pipeline import Pipeline from sklearn.preprocessing import StandardScaler from sklearn.model_selection import train_test_split from sklearn.model_selection import GridSearchCV from sklearn.ensemble import RandomForestRegressor xls ...
[ "noreply@github.com" ]
noreply@github.com
6c841352dbb94b4126ee04d96805bfdcf5a3c51d
125d50578a86756db70d4fef4024c9688c92ccea
/matching.py
034b01b5a9ee1df69ef09ca9bc3d9ec5598e9509
[]
no_license
ForeverPs/tuxiangpeizhun
fcded228675d1686ed85326f2fa0a2ae59840385
9d239c64d1fe7c4ca187273eed2cbcd4f3fa2c43
refs/heads/master
2020-04-26T15:44:56.587445
2019-03-04T02:02:07
2019-03-04T02:02:07
173,656,053
1
0
null
2019-03-04T01:59:09
2019-03-04T01:59:09
null
UTF-8
Python
false
false
1,609
py
import cv2 import numpy as np import matplotlib.pyplot as plt class Point_matching(object): def __init__(self): self.fixed = cv2.imread('Image A.jpg',cv2.IMREAD_GRAYSCALE) self.moving = cv2.imread('Image B.jpg',cv2.IMREAD_GRAYSCALE) def get_point(self): plt.figure('Point Matching') plt.subplo...
[ "noreply@github.com" ]
noreply@github.com
6decd7a44b88980b1b2eb4cf82a52ae9b74c63df
4c499782655f8e929a5dd6b39d6c5d378fcfd7bd
/2_7_grid.py
4c2dab664014608b73819477edbe701451b3cf3f
[]
no_license
IanCBrown/practice_questions
53a3fd66bee807f6e30e6d57632966f146c704c9
838b94c26cd3c26b76c3908277944a3b5f9bc7c7
refs/heads/master
2021-08-06T07:14:57.237709
2020-04-16T05:03:33
2020-04-16T05:03:33
149,521,025
1
0
null
null
null
null
UTF-8
Python
false
false
1,705
py
from __future__ import absolute_import import sys grid = [] def bfs(grid, n, m): visited = [] q = [(0,0)] while q: node = q.pop(0) if node[0] == n and node[1] == m: visited.append(node) return visited if node not in visited: visited.append(node)...
[ "icb0004@auburn.edu" ]
icb0004@auburn.edu
4e0bc29234e62335e066b8a392b97cc2934a47c9
aa265a052c9c5e71079a2cb3870492f14b1d6876
/main.py
1b5e7ac88b9114aebf62cda1da79fdaaad3e871b
[]
no_license
deverso/bot_project
d02dc5e5c8739e3242a1548592d6b8c492388ddd
a73f9fd3e0e9f86786fe818fee861a7a54e27cd1
refs/heads/master
2021-05-18T17:00:37.435345
2020-03-30T16:19:14
2020-03-30T16:19:14
251,328,608
0
0
null
null
null
null
UTF-8
Python
false
false
1,499
py
from Tkinter import Tk, Label, Button import time, threading from pynput.keyboard import Key, Controller class BotProject: DANCE_INTERVAL = 300 Keyboard = None def __init__(self, master): self.master = master self.mount_window(master) self.Keyboard = Controller() def mount_window(self, master): ...
[ "danilo.deverso@dafiti.com.br" ]
danilo.deverso@dafiti.com.br
ac446262bd459d8a9612dd00f6674affb8c4478d
fb8cd8c2563c2b6f0d8f762cca12b0a15dfe6436
/Utils/Monthly_implementation.py
86d074fccaa50c8f4a7068e03cec8fdf381886b0
[]
no_license
Rabona17/UCSD_Data_Cleaning_Contest
b0f63177cc0a32ba53ac9881bf1d11097b0c9cd9
1326a005b55a2a775aecf9ff7c7dc5f40f920f2f
refs/heads/master
2020-04-27T09:29:56.451803
2019-03-20T05:23:50
2019-03-20T05:23:50
174,216,992
4
0
null
null
null
null
UTF-8
Python
false
false
1,371
py
import numpy as np import pandas as pd from sklearn.preprocessing import Imputer class CleanerMonthly: """ This class is for fill nan values of a column using the mean value of a certain month of that column. For instance, to fillna for temperature in 2001-11-01 at wsnm a, we use the mean temp at ...
[ "noreply@github.com" ]
noreply@github.com
084cf3ae3127d288335e02fb5b6c15c79e02e050
5f25e5286c1a63c46576d698e281fa87cdc07dbc
/ws-python/ex034.py
376764f5caffee93e2602923ad19b8643db51a9b
[ "MIT" ]
permissive
DerickSilva/Python
f4880309637e3dbc1604fb8055924ffc854beb9a
8e81c6fe403e3321f18d2767f0bdfc818b180fd2
refs/heads/master
2023-04-28T23:06:30.727284
2021-05-12T18:40:30
2021-05-12T18:40:30
265,644,710
0
0
null
null
null
null
UTF-8
Python
false
false
259
py
salario = float(input('Digite o salario R$ ')) if salario > 1250: novoSalario = salario + (salario * 10 / 100) else: novoSalario = salario + (salario * 15 / 100) print(f'O funcionario que ganhava R${salario:.2f} passa a ganhar R${novoSalario:.2f}')
[ "30443385+DerickSilva@users.noreply.github.com" ]
30443385+DerickSilva@users.noreply.github.com
3dfd4a8bd9a59a2b270836633bd304fd002ef2a4
378408bf9615bdee03f6bb9f65373a4c713ff0bd
/fairseq/trainer.py
3b307470247279f21e779e344b2eeac59deaca3b
[ "MIT" ]
permissive
strategist922/fairseq-apollo
cea5c770b85d12d061113abd716b1f6140f79f24
e2e54749e3d660b51682a1a7b65ee764dba95f65
refs/heads/master
2023-07-28T04:46:16.052924
2021-07-28T23:31:34
2021-07-28T23:31:34
null
0
0
null
null
null
null
UTF-8
Python
false
false
39,580
py
# Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. """ Train a network across multiple GPUs. """ import contextlib from itertools import chain import logging import sys import time from typing...
[ "max@Xuezhes-MacBook-Pro.local" ]
max@Xuezhes-MacBook-Pro.local
48bb7ed7893b417a26e81fcaeb305e4a7913e632
fb177eadad80a37eb46c9e0a8e720df08704e10e
/apps/algorithm.py
674e448b41168299c151218bb60e41db22b3cf35
[]
no_license
naufalwj/Customer-Term-Deposit-Subscriptions-Predictions
67df68ae4cb8cab41095988559beb2e6329bc66c
cdbcb96d009be289ec21a4ca9a22830ac9de0a60
refs/heads/master
2023-08-23T20:30:30.932401
2021-10-16T13:54:20
2021-10-16T13:54:20
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,235
py
import numpy as np import pandas as pd from sklearn.model_selection import cross_val_score, GridSearchCV, train_test_split from sklearn.preprocessing import OrdinalEncoder, MinMaxScaler, StandardScaler df.drop_duplicates(keep='first', inplace=True) df_cats = df.select_dtypes(include=['object']).copy() for i in df_cat...
[ "achmadnaufal123@gmail.com" ]
achmadnaufal123@gmail.com
3a47e787257a1f8b3fbcc3880d90676b667d57cd
e67f65b46e01d20e0669ac21651fdfbabf99a65a
/6d-twoQuests/6d-dp.py
ebfdb8a23d8fe1113fb049987e79a56bdd486c96
[]
no_license
kellydingzx/gsa-revise
2325f2d9f42170c9d46882ab2a46996e977bd7f5
16a79ed5776b44fb1e97d5c79cc07becf2c5f7e3
refs/heads/master
2022-12-28T20:06:39.188288
2020-10-19T07:22:05
2020-10-19T07:22:05
305,292,803
0
0
null
null
null
null
UTF-8
Python
false
false
1,055
py
def solution(a, b): dp = [[[0,0] for j in range(2003)] for i in range(2003)] dp[0][0][0] = 100000000 dp[0][0][1] = 100000000 dp[0][1][0] = a[0] dp[0][1][1] = 100000000 dp[1][0][1] = b[0] dp[1][0][0] = 100000000 for i in range(2,len(a)+1): dp[0][i][0] = dp[0][i-1][0] + abs...
[ "zixuanding0515@outlook.com" ]
zixuanding0515@outlook.com
2e2f2e788991442885aa5dcc4b902641703a4dcd
2d9f3686a75cea7ae64616020054ed663c497451
/lab/lab11/lab11_extra.py
ac847df9c5c6f37c789db60c9461ef51eb6c0a12
[]
no_license
leonlyu1996/Berkeley-CS61A
fa7b92665f1cded80383c2a43dc6849dd07ec877
417cdd9fc8cd86d58e9fb2157fad6a64e7b3ab39
refs/heads/master
2021-06-17T03:18:13.603163
2017-06-01T15:19:09
2017-06-01T15:19:09
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,548
py
# Extra Questions # Q8 def scale(s, k): """Yield elements of the iterable s scaled by a number k. >>> s = scale([1, 5, 2], 5) >>> type(s) <class 'generator'> >>> list(s) [5, 25, 10] >>> m = scale(naturals(), 2) >>> [next(m) for _ in range(5)] [2, 4, 6, 8, 10] """ "*** YOUR...
[ "zmkoo000@gmail.com" ]
zmkoo000@gmail.com
c227554a1f48abf4ce05d9d0b46bc3a3308ee863
443a3a4fd4a53a3dd900b86037a526951bc929a2
/tests/test_hgvs_location.py
298c9f1ecfc1f0d44392d8a89307b7dbe2a22492
[ "Apache-2.0" ]
permissive
imaurer/hgvs
224a48de4628ebf5c6e3687122ac99261499c0b6
b53b033609bd51bf1af96e8c7fbecc3bdd1fdf3c
refs/heads/master
2021-01-22T23:05:48.777440
2017-03-16T12:20:16
2017-03-16T12:20:16
null
0
0
null
null
null
null
UTF-8
Python
false
false
9,444
py
# -*- coding: utf-8 -*- from __future__ import absolute_import, division, print_function, unicode_literals import unittest from nose.plugins.attrib import attr from hgvs.exceptions import HGVSError, HGVSUnsupportedOperationError import hgvs.location import hgvs.parser @attr(tags=["quick", "models"]) class Test_Sim...
[ "reecehart@gmail.com" ]
reecehart@gmail.com
181036d9c4bf9e273527186c12e885e0d4fa9785
5716abe9c6724473b3a68e59fafc1314f7cfdd93
/hw1_perceptron/v2/main.py
a8a6425f8f9746dbdc5574494dd40b4bf063b671
[]
no_license
ioanasitaru/Neural-Networks
f1ded39b50dc5f1dbdc60232f98adb76e3287b25
e1b0fffe0e893fcaa4eaeb821013105f6b7c4d9f
refs/heads/master
2020-05-18T03:38:41.801851
2019-05-02T21:36:53
2019-05-02T21:37:48
184,149,960
1
0
null
null
null
null
UTF-8
Python
false
false
2,077
py
import gzip import pickle import numpy def load_data(): f = gzip.open('mnist.pkl.gz', 'rb') training_set, validation_set, test_set = pickle.load(f, encoding='latin1') f.close() return training_set, test_set def activation(z): if z > 0: return 1 return 0 def classify_instance(instan...
[ "ioasitaru@yahoo.com" ]
ioasitaru@yahoo.com
51eb1b6d1a6e3950c1398036cfcf890178f83c33
d0c7829ead5d807cbf3c098fc686a4aeed40c7f4
/traveldash/gtfs/load.py
a1ce0c271083547c68fc981aafff8144eeaefc08
[ "BSD-3-Clause" ]
permissive
rcoup/traveldash
a51c707efd4b4d1784568d66b1a51bad7db0860d
4f2eafa5050d46d80c18130cc6271b358ebb3e83
refs/heads/master
2020-04-06T07:40:40.574862
2014-05-23T22:36:22
2014-05-23T22:36:22
20,116,048
1
1
null
null
null
null
UTF-8
Python
false
false
2,100
py
#!/usr/bin/env python import tempfile import shutil import zipfile import logging from optparse import OptionParser from django.db import transaction from traveldash.gtfs.models import * L = logging.getLogger("traveldash.gtfs.load") def main(): parser = OptionParser() parser.add_option("--source", action=...
[ "robert@coup.net.nz" ]
robert@coup.net.nz
97f2b7fc974fd31f932b8119a1893c6cdcfbf035
55a273347cb103fe2b2704cb9653956956d0dd34
/code/tmp_rtrip/encodings/cp1257.py
f99bc227bb34ce2c00c56c2c65c9741d841809b6
[ "MIT" ]
permissive
emilyemorehouse/ast-and-me
4af1bc74fc967ea69ac1aed92664f6428acabe6a
3f58117512e125e1ecbe3c72f2f0d26adb80b7b3
refs/heads/master
2022-11-18T03:50:36.505882
2018-05-12T17:53:44
2018-05-12T17:53:44
115,035,148
25
1
MIT
2022-11-04T11:36:43
2017-12-21T18:27:19
Python
UTF-8
Python
false
false
1,767
py
""" Python Character Mapping Codec cp1257 generated from 'MAPPINGS/VENDORS/MICSFT/WINDOWS/CP1257.TXT' with gencodec.py. """ import codecs class Codec(codecs.Codec): def encode(self, input, errors='strict'): return codecs.charmap_encode(input, errors, encoding_table) def decode(self, input, errors='...
[ "emily@cuttlesoft.com" ]
emily@cuttlesoft.com
18699baa2b53b4d935aef6371d15f2869a630709
ca6f93b0c7d8028ca30fbd5f740e710c16dfd336
/inputlisttuples.py
7e0549acc002c232ea645f8b800a10d5331acca0
[]
no_license
hansrajdeshpande18/geeksforgeeksorg-repo
9866e6400dda5bd5b25791754d123418a558d142
73ae16656f41c7ec0f507c82ce61bf5c789fd53a
refs/heads/main
2023-08-06T13:04:08.713319
2021-10-06T20:11:06
2021-10-06T20:11:06
352,192,304
0
0
null
null
null
null
UTF-8
Python
false
false
159
py
values = (input("Please enter some values separated with comas:")) list =values.split(",") tuple = tuple(list) print('list: ',list) print('tuple :', tuple)
[ "noreply@github.com" ]
noreply@github.com
d5f4d29347c456ec52bdadb8f13514ad97906fab
d26e65898eafee6c92cb9ea37fb6de2bfcfd0273
/restapi/router.py
bcedc652da4056f19a5e06de54db509ea6db0777
[]
no_license
shawon100/django-restapi-crud
f8a56fd47a2a8c264298051e1ac7b32b7a17b820
2b9774c405a31014b10ea0ebf8e1b871c9a77404
refs/heads/master
2020-12-01T08:44:05.905081
2019-12-28T10:31:13
2019-12-28T10:31:13
230,594,316
0
0
null
null
null
null
UTF-8
Python
false
false
157
py
from projectapi.viewsets import EmployeeViewset from rest_framework import routers router=routers.DefaultRouter() router.register('values',EmployeeViewset)
[ "shawonashadullah@gmail.com" ]
shawonashadullah@gmail.com
1aa1d8f1c9306a967a05aec17ac853a65f50d8e1
9445aefd52142eed91681426dbe992ac65c2588e
/jwt_auth/settings.py
537a713d38c0c9500bb22dcf0c72c2c1432c8068
[]
no_license
bufpal/jwt_auth
b4e7f3792e3e6c202cef406c72a42652a7bc1208
8e8c26047c8ee51eaf5ba1384eb5f25130a7e624
refs/heads/master
2020-03-27T17:02:09.942823
2018-09-07T07:59:32
2018-09-07T07:59:32
146,824,826
0
0
null
null
null
null
UTF-8
Python
false
false
3,940
py
from django.conf import settings import datetime from datetime import timedelta import os # Build paths inside the project like this: os.path.join(BASE_DIR, ...) BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) # Quick-start development settings - unsuitable for production # See https://docs.dj...
[ "ben@Bens-MacBook-Pro.local" ]
ben@Bens-MacBook-Pro.local
bd201788e0146f0e88c8b0839977dbc464dbc549
8cb2222a23d4a85569cba64d56c33d89ae5a4d40
/Discord Moderation Bot/config.py
308155a36cd062e6a2e6f494aba35eb86b0617c5
[]
no_license
shubhayu-64/SPRINT-python
269871870eb1935af2151bcb0450ed086139ffe6
e14d538d313dfcfc52c57f1ffcc28f2b55991abe
refs/heads/main
2023-06-24T07:54:12.040960
2021-07-21T09:47:53
2021-07-21T09:47:53
388,010,420
0
0
null
2021-07-21T09:47:54
2021-07-21T05:59:34
Python
UTF-8
Python
false
false
92
py
token = "T0RZM01qazVOelE1TkRNNE5UVTBNVE0wLllQZkYxUS5vcFozRFl2NWgwTVFzVDFmdURjcWRja1FNN1k="
[ "majumdarshubhayu@gmail.com" ]
majumdarshubhayu@gmail.com
22cb62d6a620a572b8dae5c71cf8706a1b27de51
204758856e0cd0f435b9947030c2c6ed63edbe6d
/build/lib/affiliate/models.py
fad0db0f2fc82f5927d54ac348b59af5001fab8a
[ "BSD-2-Clause" ]
permissive
bobby-didcoding/django-track-affiliate
41d12b19dc800fe3d70fb41993ed7b3dc0b8f212
f3c36cb91cb73261a6ae69e29b63e1bfd234b788
refs/heads/main
2023-05-08T07:33:36.697458
2021-06-02T13:34:43
2021-06-02T13:34:43
373,179,672
1
0
null
null
null
null
UTF-8
Python
false
false
4,834
py
from django.contrib.auth.signals import user_logged_in from django.utils import timezone from django.db import models from django.contrib.auth.models import User from django.contrib.sessions.models import Session from django.db.models.signals import post_save from datetime import datetime, date, time, timedelta from dj...
[ "80459294+bobby-didcoding@users.noreply.github.com" ]
80459294+bobby-didcoding@users.noreply.github.com
dc1aa7622fcedf5563002975a154f33506630497
88f1858e65312b178c3e77e2ba43de1d3ddf7dd4
/class5-test1.py
944796610a93cc1c7eb83b56c6d120fbf85f74d0
[]
no_license
hanglomo/Jia-s-python
b99043cdc92f400e5cdeb77e8e719f9bed1cec25
51866769542efec36577d8be201a9c2e67487165
refs/heads/main
2023-04-12T23:22:55.754523
2021-04-24T04:32:13
2021-04-24T04:32:13
348,543,229
0
0
null
null
null
null
UTF-8
Python
false
false
950
py
#网吧智能判断系统 age=int(input("年龄")) if age>=18: print("可以进网吧") else: print("不可以进") #成绩判断 a=int(input("成绩")) b=int(input("成绩")) if a==100 and b==100: print("去迪士尼") else: print("在家里写作业") #成绩判断 a=int(input("成绩")) b=int(input("成绩")) if a==100 or b==100: ...
[ "noreply@github.com" ]
noreply@github.com
60d12787d9225d840f110f11528e20bbfdaeba2b
0ed1212b761e2db2fb73a5d21d3e29f1e3253caf
/models/GRU/rnn_model.py
3144bfe6b27687a37e14fe1f44346c60e0c0a2ae
[ "MIT" ]
permissive
wiekern/GenderPerformance
b509157ccc71f80b612a3c9dced1c0bba34aa07e
d69d90a3f0284fb9f547f716eb8a8707d0a18e03
refs/heads/master
2020-08-15T08:40:07.008884
2020-02-27T23:15:19
2020-02-27T23:15:19
215,310,191
0
0
null
null
null
null
UTF-8
Python
false
false
8,337
py
# simple one layer RNN model.... # use preprocess.py for pre-processing tasks.. # improve on this import torch import torch.nn as nn from torch import optim import torch.nn.functional as F import random import numpy as np import string device = torch.device("cuda:0" if torch.cuda.is_available() else "cpu") #prepro...
[ "yafei.yan@hotmail.com" ]
yafei.yan@hotmail.com
6de616f5a01ce10bd75e11e8106544feaba5f690
6c3fb7bac16974dab41baac65757dd6b5cf1e705
/medusa/config.py
aeff16a58a119fd8a9d4e7c45c2bbd52e3f4dd76
[]
no_license
MinaPecheux/Medusa
3776e1a55089669179c071fe5f02f47215ddf5e6
b9c2905091fa26db1235813faf017a2341015661
refs/heads/master
2022-07-26T12:38:42.817167
2020-05-16T14:59:31
2020-05-16T14:59:31
262,655,304
0
0
null
null
null
null
UTF-8
Python
false
false
3,177
py
# Copyright 2020 Mina Pêcheux (mina.pecheux@gmail.com) # --------------------------- # Distributed under the MIT License: # ================================== # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # ...
[ "mina.pecheux@gmail.com" ]
mina.pecheux@gmail.com
cff6911a30320c0e916ef582ab4652791fb96ef3
3b07edf0cd5c546a09ef79fd93ebfd2b04e162e1
/data/ebs-ai-basic/2/2/05.py
09b0cd80cc813b63c21f1f472eb40eb13a01d637
[]
no_license
neverlish/Learned
603b41f7c6ba3cf4e5eea162f501fc42f8326aa3
47f9160c2e516c8b4d1692f1f7dbf200f1cadbb6
refs/heads/master
2023-06-24T06:03:35.848932
2023-06-10T11:38:53
2023-06-10T11:38:53
78,947,372
8
1
null
2023-09-14T05:26:47
2017-01-14T15:12:57
Jupyter Notebook
UTF-8
Python
false
false
2,670
py
# 행렬의 차이를 이용해서 두 이미지 표현하기 import turtle import numpy as np pixelSize = 10 def putPixel(x, y, pSize, pCol): turtle.penup() turtle.goto(x*pSize, (-1)*y*pSize) turtle.pendown() turtle.begin_fill() turtle.fillcolor(pCol) turtle.setheading(45) turtle.circle(pSize/2, steps=4) turtle.end_fi...
[ "noreply@github.com" ]
noreply@github.com
f24731559272d33e0e93f81633c033db54db9791
41f1440a9b35ae4f77ceecf22a505926d861c91c
/Data Structures/Disjoint_Set_Union.py
4b9cb02e236218838b886d92285c1803e8dccb17
[]
no_license
kabeer27/PyTemplates
7a6ac5e78799de15024508eb00e85fe23f99f3b2
3169b3b12c9ee627c6e5b485cd13147a7c628106
refs/heads/master
2020-07-26T12:42:12.453928
2020-07-25T09:08:48
2020-07-25T09:08:48
208,647,312
0
0
null
null
null
null
UTF-8
Python
false
false
729
py
class DSU: def __init__ (self,n): self.parent=list(range(n)) self.size=[1]*n self.count_sets=n def find(self,u): to_update=[] while u!=self.parent[u]: to_update.append(u) u=self.parent[u] for v in to_update: self.parent[v]=...
[ "kabeer.205@gmail.com" ]
kabeer.205@gmail.com
1ed43674c86b36c829fca7df75e9ff6d9d0800b3
2759f67661f43ca38615d492968580511b33b0ed
/2-Medium/1143. Longest Common Subsequence/Recursive.py
885f589688f1bf236677e85df48c39fd66639be4
[]
no_license
hyj1116/LeetCode-HYJ
fec979c2ca1867e927e98ad2c62d295183787c42
d1b51b43a61d596a2c36ba9991267f3b4ecdc98b
refs/heads/master
2022-10-05T09:43:40.582496
2022-09-24T12:21:03
2022-09-24T12:21:03
207,345,104
0
0
null
null
null
null
UTF-8
Python
false
false
919
py
# https://leetcode.com/problems/longest-common-subsequence/ import functools class Solution: def longestCommonSubsequence(self, text1, text2): @functools.lru_cache(None) def helper(i, j): if i >= len(text1) or j >= len(text2): return 0 if text1[i] == text2[j...
[ "hyj1116@gmail.com" ]
hyj1116@gmail.com
421f13513977b78406a5a5dbed3fb4ec6c32c160
811d7a1c31776d3fa3167f4f84af67c2f75e39de
/flightR/fapp/migrations/0003_auto_20210510_1752.py
cb16bd40dae45c740d4dccd97c7691cc563dc914
[]
no_license
Ashishmarathe01/FlightReservation-Using-DRF
86edf44ce63b65c46b970993f7e7a46bc82da05a
f9d880b97bf495eb14cca9a57c0c45d5f5be1b4a
refs/heads/master
2023-04-18T21:51:49.281808
2021-05-11T06:47:31
2021-05-11T06:47:31
366,282,600
0
0
null
null
null
null
UTF-8
Python
false
false
413
py
# Generated by Django 3.0.7 on 2021-05-10 12:22 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('fapp', '0002_auto_20210510_1735'), ] operations = [ migrations.AlterField( model_name='flight', name='departureCity'...
[ "maratheashish01@gmail.com" ]
maratheashish01@gmail.com
87ea8efb7076d210da8faaf220c1197c97519945
a9bd335b3948d707a6785490e132d59e375c7242
/Problem 101 - 200/P107.py
a61e07fcfa2ee8db5f4498938d386c14f1f48737
[]
no_license
xzguy/LeetCode
cc52f5329843bb2f692cea131c20b629af910bab
54d99f5e54391ea6ed467e2b5c984848a918dc2a
refs/heads/main
2023-03-25T17:50:50.173621
2021-03-28T16:06:03
2021-03-28T16:06:03
331,409,968
0
0
null
null
null
null
UTF-8
Python
false
false
1,302
py
class TreeNode: def __init__(self, val=0, left=None, right=None): self.val = val self.left = left self.right = right class Solution: def levelOrderBottom(self, root: TreeNode) -> [[int]]: if not root: return [] queue = [root] res = [] while qu...
[ "xuzhou.guy@gmai" ]
xuzhou.guy@gmai
4d7128e1848b65dbcfc95770e62a47980627bd14
a463f5858c663199b6f6e38d9b2dc93e9a9ae730
/problem/2003/00_200316/4522_세상의모든팰린드롬.py
e11adf0825d5dc9730b7dab4969ef9b58acbd159
[]
no_license
do-park/swexpertacademy
4993f79e3a73697ecdc71e0f654306466626b00b
7cbbb0957ce5191cb44cd35094da5b0d29783e49
refs/heads/master
2020-12-22T19:26:35.257666
2020-10-19T02:02:32
2020-10-19T02:02:32
236,907,286
0
0
null
null
null
null
UTF-8
Python
false
false
400
py
for tc in range(1, int(input()) + 1): flag = ['Not exist', 'Exist'] f = 1 string = list(map(str, input())) for i in range(0, len(string) // 2): if string[i] != string[len(string) - i - 1]: if string[i] == '?' or string[len(string) - i - 1] == '?': continue ...
[ "dohee.pa@gmail.com" ]
dohee.pa@gmail.com
472b920f68639de99b0836015a0910e8657d9219
33a5f42ffd4381295d560c40b61d7fa3d9624ba5
/lecture4/okpy-tests/exercise-4_7.py
4a386c6be09997bf033cefc2286a9fb57df5a698
[]
no_license
acse-zy521/introduction-to-python
099bfeca57932233757e35de2cc3234cd8df11dc
69279856961c9de0ac0af982ab7109c19ff78231
refs/heads/main
2023-08-18T09:27:58.098618
2021-10-08T15:49:34
2021-10-08T15:49:34
414,732,530
0
0
null
null
null
null
UTF-8
Python
false
false
990
py
test = { 'name': 'question 4.7', 'points': 1, 'suites': [ { 'cases': [ { 'code': r""" >>> account.balance == 250 True """, 'hidden': False, ...
[ "m.beg@imperial.ac.uk" ]
m.beg@imperial.ac.uk
928dbc652113a86438b7bcb76930a23a5e959f09
616adffcf1888155d4500c82fc6e48263e748438
/Bulk Name Change/TkinterExample.py
98c1ee3f549fb885319cbd7bb1fc7f86f0e385c6
[]
no_license
HTM-ell/FullStacksProject1
18d4806279879c91896d56b7ef84d61a7679aa4d
2e31258c22dd3317954bdb25bde31d08efb351eb
refs/heads/master
2021-01-22T22:45:42.978799
2015-05-28T14:01:13
2015-05-28T14:01:13
35,617,725
0
0
null
2015-05-23T04:29:49
2015-05-14T15:03:14
Python
UTF-8
Python
false
false
2,805
py
import Tkinter, Tkconstants, tkFileDialog class TkFileDialogExample(Tkinter.Frame): def __init__(self, root): Tkinter.Frame.__init__(self, root) # options for buttons button_opt = {'fill': Tkconstants.BOTH, 'padx': 5, 'pady': 5} # define buttons Tkinter.Button(self, text='askopenfile', comman...
[ "elliott.e.foster@gmail.com" ]
elliott.e.foster@gmail.com
b75b9502611d777be4e28df9b4d22d401448b0ab
0df3999560ae4418946fba9342e0e2eeb68f1596
/Smart_Car/Line_following/lab3_odometry.py
a1ed5a9bffcb93304f803ada672b3a9a0a770d8d
[]
no_license
cnrkddn/Portfolio
f68a2be83ac6953f09fdccee238af0aeab712492
07ce8b29e0099c2a3c5c32b91e75ddb802ca0b35
refs/heads/master
2023-04-09T08:29:33.414105
2021-04-29T22:44:37
2021-04-29T22:44:37
208,366,591
0
0
null
null
null
null
UTF-8
Python
false
false
1,765
py
#!/usr/bin/env python3 import robot as rob import time def main(): robot = rob.Robot() print("BAttery:" + str(robot.get_robot_battery())) robot.stop() powPairs = [[30, 20], [20, 30], [-30, 0]] for index in range(len(powPairs)): powers = powPairs[index] ...
[ "noreply@github.com" ]
noreply@github.com
13db32346a8b3c301741fa25c1fc58e76821a4c5
41284a81ab1a066e8be5a382dc111db8b5cfda09
/permisos/models.py
79bd570a5ef61a9e4d4218a78399a82434d2f096
[]
no_license
Carloslancheros1993/tarea2Python
66810c7cb4d393a0dab957acb67d1c18ab8eef3b
f7cacf22d8b32a317450be8258fa6581dbb517c3
refs/heads/master
2023-04-10T13:06:26.006303
2021-04-22T14:53:56
2021-04-22T14:53:56
357,636,335
0
0
null
null
null
null
UTF-8
Python
false
false
320
py
from django.db import models from empleados.models import Empleado class Permiso(models.Model): nombre = models.CharField(max_length=200, default="tipo de incapacidad") empleado = models.ForeignKey( Empleado, related_name='permisos', on_delete=models.SET_NULL, null=True )
[ "u2204240@unimilitar.edu.co" ]
u2204240@unimilitar.edu.co
b328148513b730d327ef00347c479d77d7017b81
26d846c4cb9b54d9cbf688ef4244aaa274f485cd
/vision/nodes/ball_detect
cb520dec384bf3b88b3859a855fd2d788b13a8df
[ "MIT" ]
permissive
SuryaKannan/robotics_design_project
2b9ea55ab013a43372b81d251c136422e9cd9227
a7e85ea61e6f37891d92e2cd314ebed6b8fe5c0b
refs/heads/main
2023-08-21T04:59:14.691799
2021-10-16T06:09:13
2021-10-16T06:09:13
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,848
#!/usr/bin/env python2 from sensor_msgs.msg import Image from std_msgs.msg import Float32 import rospy from cv_bridge import CvBridge from cv_bridge import CvBridge, CvBridgeError import cv2 import numpy as np class Detect(): def __init__(self): rospy.init_node("ball_detect") rospy.Subscriber("/j...
[ "surya.kannan@icloud.com" ]
surya.kannan@icloud.com
2de7632b2cec709461789845c72f54b7a876f6c8
9f5da594fcfbcc202a812be8a3298be68ef71d66
/day_8/problem_2.py
30d0685eb7fc1dc7cbcd1a443220390c6ce1ee4e
[]
no_license
rkc98/Python_100_days_challenge
0b907c0b2dd876782381fba653b0d70896b413c0
8c9516584837cfe1a67d1eeee2a365a569e215b1
refs/heads/master
2023-06-30T04:44:48.199450
2021-08-03T12:14:05
2021-08-03T12:14:05
388,395,519
0
0
null
null
null
null
UTF-8
Python
false
false
1,777
py
alphabet = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z'] direction = input("Type 'encode' to encrypt, ty...
[ "rkc.98@outlook.com" ]
rkc.98@outlook.com
27b37bf0078833ddd742896f7ae469af11ff3007
070df59deedbf4f456926f4725f7fd7d6dd69f65
/exercises/matrix.py
5883a9175972bca42275766a976bbfec7d3fc026
[]
no_license
fege/Exercises
239586db69ef80ef3a84a71d5bb97175b8ec2e47
8362dabeca795c210e4a6c195666d214684b9d19
refs/heads/master
2021-01-18T21:57:07.855711
2015-05-12T08:12:03
2015-05-12T08:12:03
5,353,889
0
0
null
null
null
null
UTF-8
Python
false
false
1,396
py
'''A matrix can be represented as a list of lists (rows and columns). Use the comprehensions to describe the identity matrix (the one with all 0s but the 1s on the diagonal) of given size. Use the comprehensions to describe a square matrix filled with the first n*n integers. Write a function to transpose a generic ma...
[ "fege85@gmail.com" ]
fege85@gmail.com
126edf0dfd6f13aaf4264a0c958fa5bfb24abf14
3519ac756c0f3806c4b9b19dd3708a68b30c1560
/mnist/softmax_regression.py
59f24872e1aee2b6809c0f86fdff237e7f5e502d
[]
no_license
isavita/Tensorflow
38fc4fcdf2a2358774ba12a46d78e557a276af82
ab5994a1c2c2eb8262fc7ac09cdcf82da57a52bc
refs/heads/master
2020-06-14T12:39:47.816617
2017-01-18T22:32:29
2017-01-18T22:32:29
75,023,914
0
0
null
null
null
null
UTF-8
Python
false
false
943
py
from tensorflow.examples.tutorials.mnist import input_data mnist = input_data.read_data_sets("MNIST_DATA/", one_hot=True) import tensorflow as tf x = tf.placeholder(tf.float32, [None, 784]) W = tf.Variable(tf.zeros([784, 10])) b = tf.Variable(tf.zeros([10])) y = tf.nn.softmax(tf.matmul(x, W) + b) y_ = tf.placeholder...
[ "isavitaisa@gmail.com" ]
isavitaisa@gmail.com
f96f89d9b4a367edb8f8dbf294ee4d21024402b0
283464882733bf4fb9d98c74f46279e98cfd20f9
/calenguay/events/views.py
20e252ce8b369cbac61b1125d1ab5f7e54873b6a
[]
no_license
mariocesar/calenguay
8647734f3fdf3fdeacca44f493b7128be9de54f0
f1759a2a0c35bfc82976b36d7cea65e10a81f572
refs/heads/master
2021-09-25T11:43:08.339647
2020-03-24T22:55:57
2020-03-24T22:55:57
249,537,405
0
0
null
2021-09-22T18:46:55
2020-03-23T20:30:14
Python
UTF-8
Python
false
false
1,560
py
from django import forms from django.contrib import messages from django.core.exceptions import ValidationError from django.core.mail import message from django.shortcuts import get_object_or_404, redirect, render from calenguay.events.models import Category, Event, EventType def landing(request): categories = C...
[ "mariocesar.c50@gmail.com" ]
mariocesar.c50@gmail.com
8aefb0884aeec07500f70bb238b221cef9a1b21b
cbd2eee46663fad5b5375b13c8c21b1b06eb4c6b
/python_test/except.py
a006780e3fc9b3e0aafc7e7df11473ee0268902a
[]
no_license
1026237416/Python
ef474ee40d7efcd6dabb6fb0ecba81b4dcfc7e14
ffa8f9ffb8bfec114b0ca46295db05c4213c4c30
refs/heads/master
2021-07-05T00:57:00.456886
2019-04-26T10:13:46
2019-04-26T10:13:46
114,510,323
0
0
null
null
null
null
UTF-8
Python
false
false
300
py
s=raw_input("Please input your age:") if s == "": raise Exception("Input must no be empty.") try: i = int(s) except ValueError: print "Could not convert data to an integer." except: print "Unknow exception!" else: print "You are %d"%i, "years old" finally: print "Goodbye"
[ "1026237416@qq.com" ]
1026237416@qq.com
685d28bfa9e1eb45751d8c9d23b8b43af4ef8eb2
57fc459bef7d52a6110e7bc0af1319b235c74e6e
/src/find_project/pipelines/data_science/nodes.py
f62d0808e72141c701c70dd454f681c2fc35ce86
[]
no_license
WaylonWalker/find-project-0165
acd35f7cf25e96292551c153b5a75280f995c335
fccb00fad9428f400e570e7e03cc2d3a83c2111b
refs/heads/main
2022-12-24T22:17:59.091230
2020-10-12T16:44:53
2020-10-12T16:44:53
303,454,573
0
0
null
null
null
null
UTF-8
Python
false
false
4,548
py
# Copyright 2020 QuantumBlack Visual Analytics Limited # # 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 # # THE SOFTWARE IS PROVIDED "AS IS",...
[ "waylon@waylonwalker.com" ]
waylon@waylonwalker.com
48710e200ed825af32b3f9c20c0a3b1df97979d4
7030af307165db851b7e0f826dac248a347c33e9
/venv/bin/easy_install
607d4e39a4c1ee345754bb3fe7e5d9b3d7b85259
[]
no_license
kian79/django-blog-project
8f1e0ffbfef24fe210211c1c970c2ca05c3b3522
e5f9d23091b017ad5643fdc424c276ec461f54c1
refs/heads/master
2020-08-28T12:12:26.123003
2019-10-28T19:40:56
2019-10-28T19:40:56
217,695,760
1
0
null
null
null
null
UTF-8
Python
false
false
445
#!/home/kiankr/PycharmProjects/Blog_project/venv/bin/python # EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==40.8.0','console_scripts','easy_install' __requires__ = 'setuptools==40.8.0' import re import sys from pkg_resources import load_entry_point if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?...
[ "kiankr79@gmail.com" ]
kiankr79@gmail.com
f73bb0415d498fc5ccba4b74357ab352a3acfbd5
b1aaf7d98c90d2fec833f7a197ec8b807fcbcba1
/samples/client/petstore/python-experimental/petstore_api/models/child_dog.py
450e6983fca5580e71272a9a680de3ecf71fdbed
[ "Apache-2.0" ]
permissive
infinacle/openapi-generator
544441bce51b4970e26eacfdf3a5eee235255b19
9f51bc19b802def95a47ef6daba80247c1dabf9a
refs/heads/master
2020-07-18T11:18:14.251075
2020-03-16T05:44:22
2020-03-16T05:44:22
206,235,129
0
1
Apache-2.0
2019-09-04T05:00:45
2019-09-04T05:00:44
null
UTF-8
Python
false
false
5,720
py
# coding: utf-8 """ OpenAPI Petstore This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech """ ...
[ "james.schubert@gmail.com" ]
james.schubert@gmail.com
98b5bc5c8b46589262257c617a744a4d546bdf4f
de54aae0476164a18b11381d06c7293a86893076
/accounts/forms.py
36a8cef559463c439e07ae3f5c6d7984e17cceb0
[]
no_license
arjun828207/CoustmerRelationManagement
0be97cd67c8553e52ed9a3071a81139c121e4599
a4ab2d14fa4ec21625107391b1006560a4b0fa6a
refs/heads/master
2023-02-24T14:01:53.402334
2021-02-01T06:37:00
2021-02-01T06:37:00
322,649,518
1
0
null
null
null
null
UTF-8
Python
false
false
190
py
from django.forms import ModelForm from .models import Order class OrderForm(ModelForm): class Meta: model=Order fields='__all__' #fields=['customer', 'orfder']
[ "arjun_bp@rediffmail.com" ]
arjun_bp@rediffmail.com
11760f1318e177e116ea6b38016655f5095e36a9
cdb642ff9e1b2a1f2291d5bd2f3d9e7b91f170e3
/ex19.py
1fed039f76ae868ca1242036e317e8d0af697152
[]
no_license
ipop07/Py
fb7f69a6484024ba0e7837ad1f255916dc543d95
9cb7cc7a9daecc71d7df2c87e1a06c35414ae310
refs/heads/master
2021-01-12T02:18:16.779691
2017-03-22T18:34:43
2017-03-22T18:34:43
78,498,560
0
1
null
null
null
null
UTF-8
Python
false
false
881
py
#ex19 #https://learnpythonthehardway.org/book/ex19.html def cheese_and_crackers(cheese_count, boxes_of_crackers): print "You have %d cheeses!" % cheese_count print "You have %d boxes of crackers!" % boxes_of_crackers print "Man thats enough for a party!" print "Get a blanket. \n" print "We can just g...
[ "ipop07@gmail.com" ]
ipop07@gmail.com
1dd8bdd14d661670b6c8fefa7039e907d5c112bc
e32ee307e4c59cc18f9dea18d797784a1b23148f
/removing the longest palindrome from it..py
6f68218a0b80234c2729e290897466feffb27853
[]
no_license
GuhanSGCIT/SGCIT
f4ab44346186d45129c74cbad466c6614f9f0f08
8b2e5ccf693384aa22aa9d57f39b63e4659f6261
refs/heads/master
2020-07-11T05:47:54.033120
2020-07-07T05:02:41
2020-07-07T05:02:41
204,459,836
0
0
null
null
null
null
UTF-8
Python
false
false
1,287
py
# Python 3 implementation to find # minimum number of deletions # to make a string palindromic # Returns the length of # the longest palindromic # subsequence in 'str' def lps(str): n = len(str) # Create a table to store # results of subproblems L = [[0 for x in range(n)]for y in range(n)] ...
[ "noreply@github.com" ]
noreply@github.com
e21bfb48b786aff188b42058a5985d33f25d148d
dba1d2881b9435c7d556c4ac96ae65796d6e6629
/venv/Scripts/easy_install-3.6-script.py
74000389bd3997cfa6e46c149aa579c486018682
[]
no_license
CocoTheHacker/Useless-Pentest-Tools
0554e18c6716b1e38b7f3a04e1d247fcd269e65f
5f47a4cde13547020549acb89b290276da6621e2
refs/heads/master
2020-03-21T19:08:36.705083
2018-09-04T01:10:18
2018-09-04T01:10:18
138,931,846
1
1
null
null
null
null
UTF-8
Python
false
false
460
py
#!C:\Users\smile\PycharmProjects\HackerMan\venv\Scripts\python.exe # EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==39.1.0','console_scripts','easy_install-3.6' __requires__ = 'setuptools==39.1.0' import re import sys from pkg_resources import load_entry_point if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.p...
[ "candocanadian@outlook.com" ]
candocanadian@outlook.com
49606bc5d3a8da0cae3a8792f1f6867089dfb5f2
f9d3ee7b3b203d23f9ef2c95055e1d26bfddd74b
/nn/embedding/embedding.py
29d3ea957df9c0aae268444adcd8460d4784fb39
[ "MIT" ]
permissive
kefirski/amt
ec4b1d4f2bb9a0103c82ef3c09357894272b44f4
6dcca5743ea8750a740c569181ec6998352ef784
refs/heads/master
2021-05-12T19:26:27.756474
2018-01-14T19:56:24
2018-01-14T19:56:24
117,093,089
28
2
null
null
null
null
UTF-8
Python
false
false
2,362
py
from math import sqrt import numpy as np import torch as t import torch.nn as nn from gensim.models.keyedvectors import KeyedVectors from torch.autograd import Variable class Embeddings(nn.Module): def __init__(self, path, vocab_size, max_len, h_size): super(Embeddings, self).__init__() self.voc...
[ "olavursky@gmail.com" ]
olavursky@gmail.com
df62cdb2f8e3b3b4b00f8e54290e270e940e7491
dfef060b2db0d29a6ccf312de98e0ffbf298ec25
/artists_alboums.py
670ef424b2423cdea83a66d2343a516fe8757d11
[]
no_license
AmirMehdiHosseini/Ali-Sorena-Alboums
c5ff30a206f9a4c85a1b04cf146485914716eaad
ca38daae130570783821eff57a594054f2fb111e
refs/heads/main
2023-07-16T22:04:51.796846
2021-09-01T17:54:36
2021-09-01T17:54:36
402,858,683
2
0
null
null
null
null
UTF-8
Python
false
false
7,930
py
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'artists_alboums.ui' # # Created by: PyQt5 UI code generator 5.15.4 # # WARNING: Any manual changes made to this file will be lost when pyuic5 is # run again. Do not edit this file unless you know what you are doing. from PyQt5 import QtCo...
[ "amirhoseynimahdi1382@gmail.com" ]
amirhoseynimahdi1382@gmail.com
0845d1f075a7811404b355d17f30f0b0df9abc6c
045cb1a5638c3575296f83471758dc09a8065725
/addons/whatsapp_live/__manifest__.py
38438a168cf3acf2f7b5d8951b7acb880a863574
[]
no_license
marionumza/saas
7236842b0db98d1a0d0c3c88df32d268509629cb
148dd95d991a348ebbaff9396759a7dd1fe6e101
refs/heads/main
2023-03-27T14:08:57.121601
2021-03-20T07:59:08
2021-03-20T07:59:08
null
0
0
null
null
null
null
UTF-8
Python
false
false
699
py
# -*- coding: utf-8 -*- # Copyright 2019 GTICA C.A. - Ing Henry Vivas { 'name': 'Whatsapp Connect Chat Live', 'summary': 'Marketing, Sale, connect Chat Whatsapp live for your business', 'version': '13.0.1.0.0', 'category': 'Website', 'author': 'Harpiya Software Technologies', 'support': 'info@h...
[ "yasir@harpiya.com" ]
yasir@harpiya.com
8a67bdc1d77e3fadc6856f44c49ef340a6f4c618
1ab5623e2ab599ca46c8535e337aedb8f7b6702c
/multiagent/scenarios/debug_sparse.py
5362eee0717799f3020f727c234248cb2377bcf3
[ "MIT" ]
permissive
sebLopezCot/multiagent-particle-envs
777b8be9b80a40a3ae7272575f226bcbf0bc4a57
47e14d89a3a24d57b8278494ccb435c74a496ebe
refs/heads/master
2020-04-13T13:22:44.590464
2018-10-15T02:15:26
2018-10-15T02:15:26
163,227,936
0
0
MIT
2018-12-27T00:16:08
2018-12-27T00:16:08
null
UTF-8
Python
false
false
6,669
py
import numpy as np from multiagent.core import World, Agent, Landmark, Goal from multiagent.scenario import BaseScenario class Scenario(BaseScenario): def make_world(self, num_agents=1, collide=True): world = World() # set any world properties first world.dim_c = 2 num_agents = nu...
[ "dkkim93@mit.edu" ]
dkkim93@mit.edu
623be1eccf107caa6df1c56c775d46b6a527b69b
67a1f3b605cbd251bee18f3b62228196d17363ba
/content/assets/hots-duration/source/make_graphs.py
b49105eb845a43b4b38a82c098dbc9134e214a85
[]
no_license
narfdotpl/narf.pl
195e06516ebd1cace2bd07e823470553fa76e607
320cf835466ccc90db278bf0ea64fc30f06fcaf1
refs/heads/master
2023-09-03T15:46:06.278382
2023-07-11T19:30:44
2023-07-11T19:44:42
10,423,994
14
7
null
2023-05-02T20:13:47
2013-06-01T15:11:36
Python
UTF-8
Python
false
false
6,112
py
from dataclasses import dataclass from typing import List import math import os import statistics from geometry import Point from svg import Circle, Polygon, Polyline, Stroke, SVG import colors CURRENT_DIR = os.path.dirname(os.path.realpath(__file__)) GRAPHS_DIR = os.path.join(CURRENT_DIR, 'graphs') @dataclass ...
[ "hello@narf.pl" ]
hello@narf.pl
c591d9e2ae285b90d501c2f2a778c270f54180f0
35e033e0f73cb19a8e57e80a3d45b0cedd7d7a45
/sorting.py
07711053d58bc4d84d6e4b802a9e57ce36ceae1a
[]
no_license
sd333414/Sorting-Algorithms
9411e3b8daf519e3b7a7abb06e6bb25f464d2bfc
e2395ee4437ec3ddbcf2cccad0e8e0f51fc363fd
refs/heads/master
2020-07-29T03:48:42.135575
2016-11-14T08:46:24
2016-11-14T08:46:24
73,683,892
0
0
null
null
null
null
UTF-8
Python
false
false
7,938
py
import flask import time app = flask.Flask(__name__) @app.route('/sort', methods=['GET', 'POST']) def sort(): def bubbleSort(UnsortedList): print(str(UnsortedList)) html="""<div style="width:100%" align="center"><h1>Bubble Sort, Quick Sort, Selection Sort and Insertion Sort</h1><f...
[ "noreply@github.com" ]
noreply@github.com
4bcaa3376d450b8aa1c54c76e3908d3796c1edd3
68bfd128be73ab94ce3b2084585d2957376477d5
/use_cos_loss/data_process.py
b71008b8eac28d7d60168c393e09fd653501c2c9
[]
no_license
SunnyangBoy/Table_Derection
88ceaab3c5f9f8b5ca5d62b7cdb8bffe6e5520b0
35eb4d48858f5aaabe4e46602b169acf67aca2d0
refs/heads/master
2022-10-21T08:20:22.546040
2020-06-17T15:46:30
2020-06-17T15:46:30
273,015,655
1
0
null
null
null
null
UTF-8
Python
false
false
4,758
py
import cv2 import numpy as np import os import math def avg_count(img): sum_r = 0 sum_g = 0 sum_b = 0 for i in range(10): for j in range(10): sum_r += img[i][j][0] sum_g += img[i][j][1] sum_b += img[i][j][2] return sum_r/100, sum_g/100, sum_b/100 def av...
[ "ubuntu@localhost.localdomain" ]
ubuntu@localhost.localdomain
72a887179abec28f878b941bf6eebd47148f646c
264d5db665a175076f023576a9339e12af31405b
/collective/templateengines/tests/base_test.py
6336a00dfad73e9bf4ff0a1cc428e41aa92f8b31
[]
no_license
barseghyanartur/collective.templateengines
5d95dd50be7181cc99d85eff4a4dc06baf629193
16b8f2716e76c073a9716c07aac4c1300a19231f
refs/heads/master
2021-01-17T18:44:45.625521
2013-05-07T10:50:54
2013-05-07T10:50:54
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,494
py
""" Implement few generic tests which can be run against all test cases. """ __author__ = "Mikko Ohtamaa <mikko@redinnovation.com>" __copyright__ = "2008 Red Innovation Oy" __license__ = "3-Clause BSD" import unittest from collective.templateengines.utils import DictionaryContext, dump_messages from collectiv...
[ "miohtama@db7f04ef-aaf3-0310-a811-c281ed44c4ad" ]
miohtama@db7f04ef-aaf3-0310-a811-c281ed44c4ad
796339c3d2823a9cfd5a24e26446e0c3589c81fc
635aee2df4d27283de58cd6abe2717638cdef2a1
/Django_L/orm_operate/orm_operate/wsgi.py
d9ccbb458236798ec5b7bf834ae0b1f69c7f64cb
[]
no_license
Rainlv/LearnCodeRepo
bf469953deeadac00a288c596dee43ff5fa0f46e
7bebb43d726e24c74f105a38d3f72d03b22c89fc
refs/heads/master
2023-06-16T14:22:02.844026
2021-07-16T06:36:33
2021-07-16T06:36:33
386,536,156
0
0
null
null
null
null
UTF-8
Python
false
false
399
py
""" WSGI config for orm_operate project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/2.1/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault('DJANGO_S...
[ "610253199@qq.com" ]
610253199@qq.com
32d562966f971043fc0b2072d5ace086c72fe63a
0afd22acee523695c9b5682256b6c6406488ff78
/src/__init__.py
599ce32e0ca5e44f55c31550b3b6baad6f6132bd
[ "MIT" ]
permissive
AndersBennedsgaard/RESTful-Kubernetes-project
d52b732c072458b53342a9db02ac020f632329c9
7562ba9fd197d0d8fc36aeea02d1cfc17cd4d731
refs/heads/main
2023-02-19T00:05:57.540752
2021-01-18T12:31:46
2021-01-18T12:31:46
325,029,412
0
0
null
null
null
null
UTF-8
Python
false
false
1,037
py
from flask import Flask from flask_restful import Api from src.logger import log from src.resources import Item, ShoppingList from src.db import init_db def create_app(testing=False): app = Flask(__name__) if testing: app.config["SQLALCHEMY_DATABASE_URI"] = "sqlite:///data/test.db" app.config[...
[ "abbennedsgaard@gmail.com" ]
abbennedsgaard@gmail.com