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
220 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
257 values
content
stringlengths
2
10.3M
authors
listlengths
1
1
author_id
stringlengths
0
212
97f54bfaf9957347fb4254fc70ebbe9c10c2fb2f
03e4331a8d5c107f7cc1d814215ed1547ba6a0f0
/xTool/models/models.py
315e176f675bac1087ca7cd370482d941f7dd775
[ "MIT", "BSD-3-Clause", "Apache-2.0", "BSD-2-Clause" ]
permissive
KqSMea8/xTool
ba61a4f56e2e5ddda7caaf429cfb452be06a65c6
eade656ca77347d2c05e66a3d680e236c8779683
refs/heads/master
2020-04-11T19:01:29.673695
2018-12-16T16:15:50
2018-12-16T16:15:50
null
0
0
null
null
null
null
UTF-8
Python
false
false
807
py
#coding: utf-8 from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals from future.standard_library import install_aliases from builtins import str from builtins import object, bytes import dill from urllib.parse import url...
[ "jinyinqiao@gmail.com" ]
jinyinqiao@gmail.com
ced414a621cd118c2763f7acf3b292e0b3e15b21
234ed1b2c5b070dc0263e7e065c1f6b82d8a7c88
/new_code/ui_activities/course_planner_components/course_information_window.py
de7acecaa4370033a7ebf6d79f52ccb93ebe53c3
[]
no_license
Mossaka/grabbing_UCSD_courses
8dec226ecdd42689d84740f456fa6ca9b670b228
88065dfa4f535d8f3d0ed3ca0a78ab22bec30cc1
refs/heads/master
2021-01-19T04:45:05.363362
2017-09-07T15:04:27
2017-09-07T15:04:27
87,393,494
1
1
null
2017-07-18T03:54:14
2017-04-06T06:20:27
Python
UTF-8
Python
false
false
1,027
py
import tkinter as tk class ShowInfo: def __init__(self, upper, course_ID, connector): self.info_level = tk.Toplevel(upper) self.info_level.title("More Info about {}".format(course_ID)) self.info_level.geometry() self.info_level.resizable(0, 0) self.info_level.bind('<Escape>...
[ "jiz417@ucsd.edu" ]
jiz417@ucsd.edu
8123f8b823863a2cdfac01616013fec780ac3e16
ef4a1748a5bfb5d02f29390d6a66f4a01643401c
/algorithm/2_algo/strting_search.py
cd08c5997becfb887981008a564f5f0a36907fff
[]
no_license
websvey1/TIL
aa86c1b31d3efc177df45503d705b3e58b800f8e
189e797ba44e2fd22a033d1024633f9e0128d5cf
refs/heads/master
2023-01-12T10:23:45.677578
2019-12-09T07:26:59
2019-12-09T07:26:59
162,102,142
0
1
null
2022-12-11T16:31:08
2018-12-17T08:57:58
Python
UTF-8
Python
false
false
667
py
import sys, time start = time.time() sys.stdin = open("./tc/strting_search.txt","r") T = int(input()) for tc in range(1,T+1): data = input() all = input() ############# 쉬운버전 ############3 0.0초 result = 5 if data in all: result = 1 else: result = 0 ###############3 어렵 #####...
[ "websvey1@gmail.com" ]
websvey1@gmail.com
ec0697a587adfde770bd0982ff82827775e2cf74
5729a58d778cb2937960ffd381f81a42a92e7b17
/python/0067.py
89b75831148f283c91e990c09b0693abe572f80a
[]
no_license
morizyun/aoj-ruby-python
af62e59e42bc1533aa953ea540a409bc2b31b8cb
296ab281328751f6fa4975d3cafd8a9db1d98f94
refs/heads/master
2020-05-18T18:08:19.189754
2017-07-09T07:54:02
2017-07-09T07:54:02
18,957,701
2
1
null
null
null
null
UTF-8
Python
false
false
632
py
def get_map(): map = [] while True: try: tmp = list(raw_input()) if len(tmp) != 12: break map.append(tmp) except: break return map def remove_island(x, y, map): map[x][y] = 0 move = [[1, 0], [0, 1], [-1, 0], [0, -1]] for i, j in move: if 0 <= x + i <= 11 and 0 <= y + j <...
[ "merii.ken@gmail.com" ]
merii.ken@gmail.com
bd090aca89d155016d194168fac8a7c7b8509f17
ea393959886a5cd13da4539d634f2ca0bbcd06a2
/82.py
7ccff9c2594f1e475a361dff197c8395f4f63aba
[]
no_license
zhangchizju2012/LeetCode
f605f35b82f16282559af71e4e61ec2629a90ebc
0c4c38849309124121b03cc0b4bf39071b5d1c8c
refs/heads/master
2020-04-05T12:12:14.810639
2018-08-09T10:24:52
2018-08-09T10:24:52
81,021,830
7
1
null
null
null
null
UTF-8
Python
false
false
1,013
py
#!/usr/bin/env python2 # -*- coding: utf-8 -*- """ Created on Wed Mar 15 01:07:11 2017 @author: zhangchi """ # Definition for singly-linked list. class ListNode(object): def __init__(self, x): self.val = x self.next = None class Solution(object): def deleteDuplicates(self, head): """ ...
[ "zhangchizju2012@zju.edu.cn" ]
zhangchizju2012@zju.edu.cn
5ef1396f75bbdc52a5d18f9d2ba0ba151107189a
5e22c8508a766a6c163f6ab40575db35f02ed31a
/Project-4/job_search.py
0d4e2123d22905cf1336850620c75079cb4cdfb8
[]
no_license
anita-data/GA-Projects
e263dec7b8d090a2ef0c909cf28a933bae2ac333
3d0c27bbd5a4f375470504ba630f8f895a703aae
refs/heads/main
2023-04-06T18:44:31.336714
2021-04-18T11:09:18
2021-04-18T11:09:18
358,546,555
0
0
null
null
null
null
UTF-8
Python
false
false
1,479
py
import scrapy class SeekSpider(scrapy.Spider): name = "job_search" allowed_domains = ["seek.com.au"] start_urls = ['https://www.seek.com.au/data-science-jobs/in-All-Australia'] def parse(self, response): print('-----------------') print('I just visited :' + response.url) pr...
[ "noreply@github.com" ]
anita-data.noreply@github.com
1f052585d22d982aad068374350cb10be20972f4
5a438b6f246981fde6d6c3cb63db16bd495e503f
/Gullabi
3ebec2c9d475e947aef45773c26d6653c923a63c
[]
no_license
gullabi1/PAKISTAN
ee47a128ba786bff4b7ffafb1fc4cb06497d693a
19aee80cbb742e0865bc386eb5f00bb0f607e32f
refs/heads/master
2022-11-21T13:39:33.593672
2020-07-26T17:09:52
2020-07-26T17:09:52
282,677,103
0
0
null
null
null
null
UTF-8
Python
false
false
18,854
#!/usr/bin/python2 #coding=utf-8 import os,sys,time,datetime,random,hashlib,re,threading,json,urllib,cookielib,requests,mechanize from multiprocessing.pool import ThreadPool from requests.exceptions import ConnectionError from mechanize import Browser reload(sys) sys.setdefaultencoding('utf8') br = mechanize.Browse...
[ "noreply@github.com" ]
gullabi1.noreply@github.com
0101c439286a2a128d794b2c3fc87af2270da6b3
30a8da946a7cacc12450c2bc251c10ad00132c64
/mysite/urls.py
5d953fd3f6e5694e12257040e4a35b3bfd581406
[]
no_license
proavinashthakur/python-django
11e61c6676ffca86919f743f3bdc7110f33f8a13
7c892f2b159a843de82d9115025229787ec5b370
refs/heads/master
2020-05-09T23:42:31.069886
2019-04-15T15:09:22
2019-04-15T15:09:22
181,510,277
0
0
null
null
null
null
UTF-8
Python
false
false
163
py
from django.contrib import admin from django.urls import include, path urlpatterns = [ path('polls/', include('polls.urls')), path('', admin.site.urls), ]
[ "proavinashthathur@gmail.com" ]
proavinashthathur@gmail.com
67545b2050a0a9a4e4595f07aeedbc7bf6d89031
5945903ff7b3c0be799d8b228aa96309e8d6b68a
/PTA_AL_1011.py
ccbd0a00df6ca36344b78bfa9460a3742a7ea3c2
[]
no_license
freesan44/LeetCode
44fd01fa37e2d7e729ae947da2350b1649c163ae
2ed9f1955c527d43fe1a02e5bebf5a6f981ef388
refs/heads/master
2021-12-07T20:07:02.308097
2021-11-01T23:58:11
2021-11-01T23:58:11
245,178,582
0
0
null
null
null
null
UTF-8
Python
false
false
542
py
inputList = [] for _ in range(3): inputData = list(map(float,input().split())) # inputData = list(map(float, "1.1 2.5 1.7".split())) inputList.append(inputData) retList = [] res = 1 for i in inputList: maxVal = max(i) indexVal = i.index(maxVal) if indexVal == 0: retList.append("W") e...
[ "freesan44@163.com" ]
freesan44@163.com
35e7366e76f6e50c77b6fa3fcf1065b6905128ef
05780fe9a74b116832611a35fce38fa24b4d4ffc
/madgraph/madgraph_binaries/models/taudecay_UFO/__init__.py
3c9f65445319ce87b7af17ac5a5968bbe0ceae11
[]
no_license
cesarotti/Dark-Photons
d810658190297528470abe757c4a678075ef48f6
c6dce1df70c660555bf039a78765e4efbffb4877
refs/heads/master
2021-01-22T19:26:13.892225
2015-01-28T05:43:20
2015-01-28T05:49:54
20,692,647
2
2
null
null
null
null
UTF-8
Python
false
false
893
py
import particles import couplings import lorentz import parameters import vertices import coupling_orders import write_param_card import propagators all_particles = particles.all_particles all_vertices = vertices.all_vertices all_couplings = couplings.all_couplings all_lorentz = lorentz.all_lorentz all_parameters = ...
[ "eyvind.niklasson@gmail.com" ]
eyvind.niklasson@gmail.com
071cf340c23a15c39e29549b47c35d45036859f0
551ef0567aca428a535775d3949f5d9670c0d29c
/abc/173/d/main.py
17b7c7ad3e7efd9f8db31585e1d42505e573aa4d
[]
no_license
komo-fr/AtCoder
7451a9402466ce8d487d0c521128732061c647df
c916889294cb12f21e74254de43b3e17e1b354bc
refs/heads/master
2023-07-22T07:05:52.955188
2023-03-01T14:22:16
2023-03-01T14:22:16
213,109,943
0
0
null
2023-07-06T22:01:28
2019-10-06T04:44:49
Python
UTF-8
Python
false
false
370
py
#!/usr/bin/env python3 from collections import deque N = int(input().split()[0]) a_list = list(map(int, input().split())) a_list = sorted(a_list, reverse=True) c_list = a_list[: (N + 1) // 2] if len(c_list) == 1: ans = c_list[0] elif N % 2 == 0: ans = c_list[0] + sum(c_list[1:]) * 2 else: ans = c_list[0]...
[ "komo.mdrms@gmail.com" ]
komo.mdrms@gmail.com
f0e29bbe13f62a6f3b132755b006dc05eec22ad3
45b6f06f0dca5f8eb0331b496af8f945e27367b3
/core/migrations/0001_initial.py
f0aaf491bf7d04f5d019b5b7a847a692cbef6dab
[]
no_license
roman-timoshenko/shold-rest
5d0c7b90a15cc66392d3c45fdfd6d176f6f57aaf
29c155f2aa19410cf048c2361e7f9444a9714fcf
refs/heads/master
2020-04-27T05:41:25.709733
2014-12-01T20:38:28
2014-12-01T20:38:28
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,713
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ] operations = [ migrations.CreateModel( name='Region', fields=[ ('id', models.AutoField(verbo...
[ "rootboss@gmail.com" ]
rootboss@gmail.com
fe9f5ac55217dfc033c9cc3c4fd89943726640c8
614e01d08c8bb5adbe4d263d9dba04688502a12f
/toggl_driver/commands/start_timer.py
fe1b1ed883f441770071e74e3ae2ab9cf118f09e
[ "MIT" ]
permissive
cloew/TogglDriver
28b2b2ebd396d08000fc92e0013f15722975ae06
7b0528710e7686690a88a22cf5cca1f3ac55ebbf
refs/heads/master
2021-01-10T13:05:58.759515
2015-10-01T03:43:52
2015-10-01T03:43:52
43,025,616
0
0
null
null
null
null
UTF-8
Python
false
false
750
py
from ..args import OptionalProjectArg from ..config import GlobalConfig from kao_command.args import Arg, BareWords class StartTimer: """ Represents a command to start the Toggl Timer """ description = "Start the Toggl Timer" args = [Arg('description', nargs='+', provider=BareWords), ...
[ "cloew123@gmail.com" ]
cloew123@gmail.com
cc17135e622350d97b56cf2a70cdf6c25951c579
8e132f71b1b63d5972a347f8d1677dcd9a100837
/django_project/users/views.py
0bda1b00548aeef2285cc7242a86536a6e4666f1
[]
no_license
Wooodzu/portfolio2021
e1620a47f73ff9d1b93d5d3c47d3f9828ae6c0e8
1fd053018ccc20739c3faf60c5ff33ba155dccd7
refs/heads/main
2023-06-25T23:14:45.953993
2021-07-12T13:44:22
2021-07-12T13:44:22
381,327,108
0
0
null
null
null
null
UTF-8
Python
false
false
1,399
py
from django.shortcuts import render, redirect from django.contrib import messages from .forms import UserRegisterFrom, UserUpdateForm, ProfileUpdateForm from django.contrib.auth.decorators import login_required def register(request): if request.method == 'POST': form = UserRegisterFrom(request.POST) ...
[ "artur199933@gmail.com" ]
artur199933@gmail.com
ca4f2fb7a024febb083b52ed05ba2c569bfa2a7f
493166a9d5ce0286f19164b061ad442f94dee62e
/old/BattleShip.py
e064c16d53c5ae0328af6821821255503e30de17
[]
no_license
mcdwayne/PublicDocs
f9d8539b4d9b536b885a28ec1430a65a5feb49e0
a1d1a934dc07e350b4f3b8faab10cc24094bccc4
refs/heads/master
2021-07-24T12:58:37.787253
2020-12-23T14:45:33
2020-12-23T14:46:13
96,465,763
0
0
null
2018-10-06T18:27:25
2017-07-06T19:37:33
Python
UTF-8
Python
false
false
1,477
py
from random import randint #create the board board = [] for x in range(4): board.append(["O"] * 5) #function for printing the board in a clean way def print_board(board): for row in board: print " ".join(row) #Begin the game print "Let's play Battleship!" print_board(board) #Set where the computer's ...
[ "1dwayne.mcdaniel@gmail.com" ]
1dwayne.mcdaniel@gmail.com
61b3cf3373d26befd371f164e12e5ca2f09ab031
e4624ec8193c7da963f31498fc92ea63227eb25a
/app/resource/user/user_info.py
dd67b2d873a4bd7728ef7d74de68f836bcbfa377
[ "MIT" ]
permissive
150619/Practice_news_A
5e6a3059fa0ca3985e185cbd53f61f0ed9de87c9
2f01e5f90dcc67041abcb54270484a6d42a5557b
refs/heads/main
2023-02-16T12:39:37.271434
2021-01-10T11:35:30
2021-01-10T11:35:30
null
0
0
null
null
null
null
UTF-8
Python
false
false
731
py
from flask_restful import Resource from common.utils.decorators import login_required class UserInfoResource(Resource): method_decorators = {'get': [login_required]} def get(self): # 找到已登录用户的id from flask import g user_id = g.user_id from common.models.user import User ...
[ "73057041+150619@users.noreply.github.com" ]
73057041+150619@users.noreply.github.com
5a67766465e0814c91167f402e4f1c1c79f8948e
db9c366fa675bfabcc85d13841078d473e355bc3
/string/Valid_Palindrome.py
39a684079988104c2a5a6de0949a0e1daf959790
[]
no_license
laihoward/leetcode_practice
7d7121e34e470354c738213ea166df86e59b2264
ddb7939c7333c66ab2e0c909f8d445d1d8327b33
refs/heads/master
2023-07-14T12:31:58.454907
2021-08-27T05:24:29
2021-08-27T05:24:29
377,393,671
0
0
null
null
null
null
UTF-8
Python
false
false
936
py
class Solution(object): def isPalindrome(self, s): slist = [] for i in s: if i.isalnum(): slist.append(i.lower()) l = len(slist) print(l//2) for i in range(0,l//2): if slist[i]!=slist[l-1-i]: return False return ...
[ "howardlai30425@gmail.com" ]
howardlai30425@gmail.com
a498b47d7f945fc88750e331b4a303c556793f1d
443a7c76a528d864463f631773fe352024fdaeac
/media.py
21b47b3e153524651a7a82e1977e3f2d19e58031
[]
no_license
jlyden/movies
24c996f9a94cb516b03696180ce2822fb4137e19
5dd2ec0a91d447681095e4cfe6a541714697bf55
refs/heads/master
2021-01-10T09:49:19.961235
2016-04-25T23:28:35
2016-04-25T23:28:35
43,646,741
0
0
null
null
null
null
UTF-8
Python
false
false
657
py
# needed for show_trailer() import webbrowser class Movie(): # class __doc__ """This class provides a way to store movie related information""" # class variable VALID_RATINGS = ["G", "PG", "PG-13", "R"] # constructor def __init__(self, movie_title, movie_storyline, poster_image, ...
[ "jlyden1@alumni.nd.edu" ]
jlyden1@alumni.nd.edu
d825ddb6b8070997553f9d0296ff9d3bbd6e2f30
684474c94982c0e4bf9bf2f183a616d28e1cb718
/tornato_base_frame/tornato_application.py
d43e9158917eed8421a59e7e149004e25ceff1fc
[]
no_license
YuzhuoMa816/Yuzhuo_Tornado_baseframe
9156c5fe6fc5b5902670927340ff31290d890f4b
7ebee850b8465db89c3b6446ba44f588dc6d9999
refs/heads/master
2023-08-22T05:09:55.636035
2021-09-30T05:42:37
2021-09-30T05:42:37
411,901,117
0
0
null
null
null
null
UTF-8
Python
false
false
285
py
import tornado.web from views import index import tornato_config class Application(tornado.web.Application): def __init__(self): handlers = [ (r'/', index.IndexHandler), ] super(Application, self).__init__(handlers, **tornato_config.settings)
[ "71178309+YuzhuoMa816@users.noreply.github.com" ]
71178309+YuzhuoMa816@users.noreply.github.com
aad091992484971b4abdae987643107c3b501e90
262a17e18dcfdb5bf95590b30c959029edf4352b
/facility_info/routers/instruments.py
e16acbb2bb19613cb60c5536085e23d67947e3fb
[ "BSD-3-Clause" ]
permissive
JunAishima/facility-info
eab86156038dc31e0140a1589012baa186555bde
4ea11e5920ae85b6343e33eb820a538004f0cab3
refs/heads/master
2023-01-02T21:13:08.842457
2020-10-09T18:26:54
2020-10-09T18:26:54
295,758,380
0
0
BSD-3-Clause
2020-10-02T18:28:25
2020-09-15T14:43:30
Python
UTF-8
Python
false
false
1,101
py
from fastapi import APIRouter, HTTPException instruments = {'1':{'port':'2ID', 'nickname':'SIX', 'instrument_id':1, 'emergency_contact':1, 'beamline_staff':[2,3,4], 'beamline phone numbers':[1602]}, '2':{'port':'3ID', 'nickname':'HXN', 'instrument_id':2, 'emergency_contact':2, 'beamline_staff':[1,3,4], ...
[ "jaishima@bnl.gov" ]
jaishima@bnl.gov
a4ea8aef58307c7fd9f4806033d86e69851e27ae
d7e80b224cb21838be3308d16bd502727f77eecb
/leetcood_problems/110-balanced-Tree.py
f48531f7a5b4f6e3b8fbceadedde9e4acf9e54cd
[]
no_license
erdeq-upenn/datascience
cfe2bfc2bbbd5656783201e37c92eafc7b87764c
3b1fb449c13c341aeced6c368eb0ec0f0d8a904c
refs/heads/master
2021-07-11T06:26:24.256786
2020-06-14T01:52:12
2020-06-14T01:52:12
162,773,484
0
0
null
null
null
null
UTF-8
Python
false
false
1,196
py
# Definition for a binary tree node. # class TreeNode(object): # def __init__(self, x): # self.val = x # self.left = None # self.right = None class Solution(object): #def hight(self,root): # if root == None: # return 0 # return max(self.hight(root.left),self.hight(...
[ "31527345+erdeq-upenn@users.noreply.github.com" ]
31527345+erdeq-upenn@users.noreply.github.com
93042cdae27f560677fe72b23e03692a92bba34e
e49c005551937e31464c2f546e97e9e89e35c49c
/02.Scripts/NCBI_Genome_Downloader.py
65f45439d00124702a872873896f6c4aa00dbb29
[]
no_license
cruizperez/Bioinformatic_Tools
7283588e4d8b91bd33be6be18d4b79faa9ce150c
91c75b2b36a6a1b62e00cffd285c4183ee87f67a
refs/heads/master
2023-04-30T21:27:49.963193
2021-05-19T04:23:34
2021-05-19T04:23:34
173,467,371
2
0
null
null
null
null
UTF-8
Python
false
false
2,193
py
#!/usr/bin/env python """ ######################################################################## # Author: Carlos Ruiz, cruizperez3@gatech.edu # Intitution: Georgia Institute of Technology # https://github.com/cruizperez/ # Version: 1.0 # Date: 07 Nov 2019 # Description: Downloads multiple genomes fr...
[ "30295020+cruizperez@users.noreply.github.com" ]
30295020+cruizperez@users.noreply.github.com
bcb1548eaff70ab7970362c482e0a054b23840d0
775fdec8dd3d959560450fec3cf17c82a79e3f61
/apps/user_login/views.py
75b7d126f265a28fa96c48312207d196e04a6e1f
[]
no_license
HarmsA/Dojo_Ninja
f2ff9833ea1b7707bed567ab869d1a645f8694a4
23ce11de538e600fccf64ac3c28348ca7bf38422
refs/heads/master
2020-04-09T03:13:10.591710
2018-12-02T18:27:29
2018-12-02T18:27:29
159,974,181
0
0
null
null
null
null
UTF-8
Python
false
false
126
py
from django.shortcuts import render, HttpResponse # Create your views here. def index(request): return HttpResponse('hi')
[ "harms2a@gmail.com" ]
harms2a@gmail.com
95df1ccae68346a5ae7a648bbaf1f8ab1f06dad7
d78d18eeb2033606537058e66740e3c43d62134b
/purchase/controllers/catalog.py
e964682dc01d63de79e67ca2d5bd1e2c15d1d1db
[]
no_license
saguitarius/Purchase
ea65ef5b004251a4fdf430b0bd6103ef23df22b4
8e687f37a02c4e89735400704e764475de0472c7
refs/heads/master
2020-08-28T00:24:08.733321
2011-05-30T17:38:56
2011-05-30T17:38:56
1,403,771
0
0
null
null
null
null
UTF-8
Python
false
false
14,273
py
## -*- coding: utf-8 -*- import logging from pylons import request, response, session, tmpl_context as c, url from pylons.controllers.util import abort, redirect from purchase.lib.base import BaseController, render import purchase.lib.helpers as h from purchase.lib import auth from authkit.users.sqlalchemy_driver ...
[ "saguitarius@gmail.com" ]
saguitarius@gmail.com
296ece0c83bf4b271b0778cc6df19c0aaee9ec6d
6f7555588e481e24c052604d59cc82d1f79b9f82
/mysite/polls/polls_test/test01.py
81fb67b37bc0dc2ed64c11f2cb4984f36966c539
[]
no_license
zzb15997937197/django-study
dd708c92418277a7e2b2b34393f63e6b95d78d1d
20b3ef21e73680552bee583374671bd8c7fc0b4f
refs/heads/master
2023-01-05T22:11:53.514591
2020-11-06T00:29:40
2020-11-06T00:29:40
285,442,079
0
0
null
null
null
null
UTF-8
Python
false
false
442
py
# 生成器 data = [1, 2, 3, 3, 4] for i in range(10, -1, -1): print(i) # 生成器,返回的结果为一个集合,集合里的元素是无序不重复的。 a = {x for x in data if x not in [4]} print(a) # def f1(data): # for i in data: # yield data[i] # # # for c in f1(data): # print(c) t1 = (1, 2, 3) t2 = (1, 2) print(t1 + t2) print(t1[1]) # 判断列表是否为空(...
[ "zhangzhengbing@huayin.com" ]
zhangzhengbing@huayin.com
21007a2cbcde589ceabb5c374744d08a16256342
94dd67c3dda4cbc0b9dd04c3a9d65953f922afcb
/utils/test-resources/python-files/some_other_script.py
4c9a21552ef7b781db02bcff654db0875812b0da
[]
no_license
saeedsiddik/mllint
ba259dc7a6bf98b3b22f09951229f7a8b6136d05
498dedd8a47571b17648f9347a2c00b92020b6f6
refs/heads/main
2023-04-30T07:45:24.474072
2021-05-28T21:14:01
2021-05-28T21:14:01
null
0
0
null
null
null
null
UTF-8
Python
false
false
24
py
print("something")
[ "bart@vanoort.is" ]
bart@vanoort.is
9a77046a8b02899002884bdbcb8f4b15478e20c2
eff7effdc4ada534be1c76ca83ac026ace4f4c05
/leetcode/242.py
715f3b2f70d33cf3920ab152d51059243bef0a29
[]
no_license
ceuity/algorithm
470951d9fe77de3b0b28ae06f8224cf8a619d5b5
dd28a842709ae00c3793741e411f2cb8e5086fda
refs/heads/master
2023-06-20T11:32:56.994859
2021-07-19T20:31:07
2021-07-19T20:31:07
279,136,037
1
0
null
null
null
null
UTF-8
Python
false
false
521
py
from collections import Counter # 48ms class Solution: def isAnagram(self, s: str, t: str) -> bool: if sorted(s) == sorted(t): return True else: return False # 32ms class Solution: def isAnagram(self, s: str, t: str) -> bool: if Counter(s) == Counte...
[ "everland7942@gmail.com" ]
everland7942@gmail.com
3adadf9d0a7cf055b3e864a876187d3d5e847789
58f38f1d69d4bfc650ad18e0045c36ae29c9d84a
/Django基础部分代码/chapter04/orm_lookup_demo/manage.py
ffb9c5d178fd47e763791ff1172e7f8d84831441
[]
no_license
zjf201811/DjangoWebProject
0670c61b89387901089bf67cf2423d9341f69913
fab15784fb326ba4517951e180418ea54de03afe
refs/heads/master
2020-04-18T12:03:08.798484
2019-05-06T03:59:46
2019-05-06T03:59:46
167,522,193
3
1
null
null
null
null
UTF-8
Python
false
false
547
py
#!/usr/bin/env python import os import sys if __name__ == "__main__": os.environ.setdefault("DJANGO_SETTINGS_MODULE", "orm_lookup_demo.settings") try: from django.core.management import execute_from_command_line except ImportError as exc: raise ImportError( "Couldn't import Djan...
[ "thor201105@163.com" ]
thor201105@163.com
11a2932a8b8e0ad8ab3477cd1dd0d81b66ea3912
9775d287deb7fb82c1408d0be25bae920fd32676
/reducer.py
2851b6f1fd9d151dedb955ab3e42389bdd934340
[]
no_license
pallyjoel/Final_Project
3be2c18dc0f5a5d6a139429c30ad28921b4a0351
76ef67ea97e412857e6c9e688535c9adfdb8f7c0
refs/heads/master
2016-09-06T06:27:35.927778
2015-08-05T03:18:47
2015-08-05T03:18:47
22,735,501
0
0
null
null
null
null
UTF-8
Python
false
false
728
py
import logging import csv, sys reader=csv.reader(sys.stdin,delimiter='\t') entries = 0 days = 0 old_key = None with open("output.csv", 'w') as master_file: master_file.write( '{0},{1}\n'.format('Day', 'Avg_Hourly_Entries')) for row in reader: data = str(row).strip().split(',') if len(data) !=2 or data[1][4:-3]...
[ "pallyjoel@gmail.com" ]
pallyjoel@gmail.com
7c5d2d23bc243408c2cc2678b42f0f0f589019e4
2d74104aaa132896a65ea0032951eee5d4c97840
/chemman/floor_map/apps.py
a55b9d94eeb570eacc258399a39914b0a100a76f
[]
no_license
Whitie/ChemManager
6e228e8713f9dfeca21adbd3e9a65c8871a822bc
d40792361527219514b1b4cc03718ea7c2a92777
refs/heads/master
2023-06-09T09:29:41.626087
2022-12-14T13:29:44
2022-12-14T13:29:44
189,994,861
0
0
null
2023-04-21T21:40:13
2019-06-03T11:47:23
Python
UTF-8
Python
false
false
92
py
from django.apps import AppConfig class FloorMapConfig(AppConfig): name = 'floor_map'
[ "weimann.th@yahoo.com" ]
weimann.th@yahoo.com
912853260f856dde1edb561a497c0406a6f7d555
090346874ffd62b4daf7e1690e9cccc305971382
/binder/postBuild
cbfb1fa03f60f9874efe649863e55d3a35c446d5
[ "BSD-3-Clause" ]
permissive
Alalalalaki/jupyterlab_white_theme
8fe5dd01bfb2d01b56199398550f2b5e9a52bee4
97ccb32b3455d2c46e63160960a91ac8c3c4f2b0
refs/heads/main
2023-07-12T17:34:50.797518
2021-08-28T17:35:00
2021-08-28T17:35:00
400,616,518
0
0
null
null
null
null
UTF-8
Python
false
false
1,272
#!/usr/bin/env python3 """ perform a development install of jupyterlab_white_theme On Binder, this will run _after_ the environment has been fully created from the environment.yml in this directory. This script should also run locally on Linux/MacOS/Windows: python3 binder/postBuild """ import su...
[ "harlan.zhu@gmail.com" ]
harlan.zhu@gmail.com
f422fb2aa8b196a101d648ac90b7f4ec7ad9cf68
cdb8ec47700aa47b3a665096a1d5f036cfec2710
/posts/models.py
c501aeae7278b98889535c63732df134863461ee
[]
no_license
FarhoodHS/MyBlog_new
d93e09497e96da5400bd8673f90ab6912947725a
20e8155be5f3eaedd88ae4896531e8363f74cc16
refs/heads/master
2023-05-01T20:07:09.968211
2020-03-17T19:29:50
2020-03-17T19:29:50
239,857,090
0
0
null
2023-04-21T20:48:41
2020-02-11T20:24:43
HTML
UTF-8
Python
false
false
1,887
py
from django.db import models from django.urls import reverse from django.db.models.signals import pre_save from django.utils.text import slugify from django.utils import timezone from Blog.settings import AUTH_USER_MODEL def upload_location(instance, filename): return f"{instance.slug}/{filename}" class PostMan...
[ "farhood.1995.hosseinzadeh@gmail.com" ]
farhood.1995.hosseinzadeh@gmail.com
f538831424ed0a5b0992c4e0f3cf9a8d0fa12010
40cbe470faef9d6a17d85a32bacaae9c306504cd
/geom_subscriber.py
e72f5343626881907098bb5a60f4731cf12000b8
[]
no_license
yunzc/wam_arm
3885982d78a33f4c098dd1c619a795823a661328
a27bbda65e1889e5e0a435e3e5933e118dde3a5e
refs/heads/master
2020-07-20T05:56:09.834848
2016-11-14T19:30:33
2016-11-14T19:30:33
73,739,711
0
0
null
null
null
null
UTF-8
Python
false
false
911
py
import rospy from geometry_msgs.msg import Pose def callback(data): global geom_data geom_data = {} geom_data['position'] = [data.position.x,data.position.y,data.position.z] geom_data['orientation'] = [data.orientation.x, data.orientation.y, data.orientation.z, data.orientation.w] def listener(): ...
[ "noreply@github.com" ]
yunzc.noreply@github.com
e299bc6c617e9a532f45ffbcce445d97239ace0b
141af477d95db2aa40eb7909f81779eb709df4ec
/Chapter11-Dictionaries/Ex11.1.py
eb1d67ec163e9ff1061bc365b222056080eaeaa4
[]
no_license
inwk6312fall2019/dss-Tarang97
37f63c717666307ce36e95661c0e6267ad31d338
dfe8154c32dbc1f258fcdf647d60e0b97a725684
refs/heads/master
2020-07-30T01:02:27.656871
2019-09-22T23:22:32
2019-09-22T23:22:32
210,027,796
0
0
null
2019-09-22T05:01:57
2019-09-21T17:36:46
Python
UTF-8
Python
false
false
662
py
# Write a function that reads the words in words.txt and stores them as keys in a # dictionary. It doesn’t matter what the values are. Then you can use the # in operator as a fast way to check whether a string is in the dictionary. def words_in_dictionary(): word_list = dict() fin = open('words.txt') ...
[ "noreply@github.com" ]
inwk6312fall2019.noreply@github.com
3f064d90d711bb1e3e36cfcf8b1413ed9f5c99d1
115e824300c16053071700bc624359dffa8dbf34
/GUI/control_widget.py
7c7022c64bdfc408c1a6f0f2386ff6b1b688b8c8
[]
no_license
DuseobSong/CCTV_project
295bdfea6651bd0b5608da232b41ebf26f4d0fa6
151362b00fc8494d88e9221b0e4dc0f7f11ba022
refs/heads/master
2023-05-24T19:09:51.396711
2021-05-27T11:07:17
2021-05-27T11:07:17
365,710,311
0
0
null
null
null
null
UTF-8
Python
false
false
9,964
py
''' Button groups function : turn on/off several camera == Button Layout == interval_h1 width2 interval_h2 \ / / ================================\\ ------- | width1 |----|--|-------| || i...
[ "duseob.song@outlook.kr" ]
duseob.song@outlook.kr
af19d7f2a60fa59c218d57ed62c778d40750e96c
cd43ea8410c38735038d66cb12266ad6aff8ceb6
/forms.py
32f313cc11612370a6cc411b95d28fa2067f55b9
[]
no_license
malinichandran/flask-feedback
f74cfe87482155bbe6a0a8e644ad94ba4de205b2
3a2a1eb0f7f1b140d25c7fe60637cd6391a96d4f
refs/heads/master
2023-04-02T15:31:24.484535
2021-04-02T00:00:19
2021-04-02T00:00:19
353,855,678
0
0
null
null
null
null
UTF-8
Python
false
false
955
py
from flask_wtf import FlaskForm from wtforms import StringField, PasswordField from wtforms.validators import InputRequired class UserForm(FlaskForm): """User Registration Form""" username = StringField("Username", validators=[InputRequired()]) password = PasswordField("Password", validators=[InputRequired...
[ "malinichandran@Malinis-MacBook-Air.local" ]
malinichandran@Malinis-MacBook-Air.local
2da010a994603596628ceff6366bd62638a2f44b
1c6a8bc04a051239a0a12519f58066c71e36597d
/API/restApi/urls.py
5a4637fcae5642bf7d7ac4ecf773c97d9b240067
[]
no_license
Irfanwani/AppDev
90fa0f0e05ceb32dc879b14c6af40785a9e567ca
1d5f8e09029ad2b49cbc7c3a4af6cbff4eb55116
refs/heads/master
2023-04-26T16:40:48.441275
2021-05-08T13:27:21
2021-05-08T13:27:21
364,173,584
0
0
null
null
null
null
UTF-8
Python
false
false
481
py
from django.urls import path, include from . import views from rest_framework.routers import DefaultRouter router = DefaultRouter() router.register('articles', views.ArticleViewSet, basename='articles') urlpatterns = [ path('api/', include(router.urls)) # path('articles/', views.ArticleList.as_view()), # ...
[ "irfanwani347@gmail.com" ]
irfanwani347@gmail.com
2d740379b638a22df79119c84d3b7dddf824aa09
4ef80242cf22a1ccd0d7a2042476b5b6ac1eb03e
/build/lib/scadparser/ScadModel.py
c00db947830a69e33733ad984fc06ea2a68a7bc0
[]
no_license
rblack42/ScadParser
71081adb99ec03e78bc78b4101562b7fa1bab134
a9cc10b23c6515a53065dfb58b23881d0145f88d
refs/heads/master
2023-07-11T03:51:53.434534
2021-08-27T02:03:37
2021-08-27T02:03:37
397,718,873
0
0
null
null
null
null
UTF-8
Python
false
false
1,172
py
from __future__ import annotations import os import tatsu from tatsu.ast import AST symbol_table = {} def store(id, val): symbol_table[id] = val def lookup(id): if not id in symbol_table: return id else: return symbol_table[id] class ScadSemantics(object): def include(self, ast): ...
[ "roie.black@gmail.com" ]
roie.black@gmail.com
4e5c2182e548c13c2a86d5375448e7719ceebe95
b066191ce947eb7ca4acebd021070ee46eae4d05
/backend/apiserver/helpers/exceptions.py
c977d50f6ade3ffe4c7206fea11617847827a345
[]
no_license
friendlywhales/lineup-web
17624b8c17678eb1abd380fa603d5559ece83115
ed06227b14a57791449a4c134c5a0955fc5b9f27
refs/heads/master
2022-12-04T20:08:13.482782
2020-09-01T07:59:49
2020-09-01T07:59:49
291,615,047
0
0
null
null
null
null
UTF-8
Python
false
false
270
py
from django.utils.translation import ugettext as _ from rest_framework.exceptions import ValidationError class FrozenPostError(ValidationError): default_detail = _('삭제 가능 기한을 지나 삭제할 수 없습니다.') default_code = 'denied-deletion'
[ "sooeun@gmail.com" ]
sooeun@gmail.com
23aa4bfce5b269d5f1ccfec27f806a8adf56799d
33e50bf5f64225248b895568891f81948056176a
/poly/views/treatment.py
409f40d6a6eaa4be1571e686df54c2d279bd891a
[]
no_license
furkankapukaya/PolyClinic
09a25dc555d47d032a2e60f2af384a357dcfc20c
ce6650c10dc6e875f1221bdc7083847eb54ebd0c
refs/heads/master
2022-04-29T17:49:14.323390
2018-05-23T07:27:36
2018-05-23T07:27:36
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,410
py
from django.http import JsonResponse from django.shortcuts import render, redirect from django.views.generic import * from django.urls import reverse_lazy from poly.forms.treatment import TreatmentForm from poly.models import Treatment, Clinic, Appointment, Doctor, Patient def treatment_json(request): data = [] ...
[ "hcancakici@gmail.com" ]
hcancakici@gmail.com
04fa7019c63fdbc39ed76380e913d742f176299f
a5dc0e0450ebb601a03af02de2da019f2ddc458b
/1.py
e4eea03141143148e511c76b3fedf9e0bedbc558
[]
no_license
Bondarev2020/infa_2019_Bondarev2020
b570d65037f85c83fdc90c54cddd9d220c71fa7b
464ddfebc56bb64dad30b0f414edd9a1da0212b1
refs/heads/master
2021-01-09T00:04:05.038990
2020-04-04T16:13:31
2020-04-04T16:13:31
242,182,162
0
0
null
null
null
null
UTF-8
Python
false
false
770
py
def change_possibilities_bottom_up(amount, denominations): ways_of_doing_n_cents = [0] * (amount + 1) ways_of_doing_n_cents[0] = 1 for coin in denominations: for higher_amount in range(coin, amount + 1): print(coin) print('higher_amount=', higher_amount) ...
[ "noreply@github.com" ]
Bondarev2020.noreply@github.com
949038ebdf9753e56dcfe9c20bd188ff885222d8
6814d3633affbacefa6510ec26d8d8198e4d7d08
/models.py
18ee00802e91b484c00c5ed33fc1b843988b71c8
[]
no_license
mariocamaraneto/SkyHub
ee9ce395ac5a75d080299f1bb3caf87c1a467988
be43fcae3758cc59c5b80700eab7b82b209a7cd5
refs/heads/master
2022-12-14T13:05:21.257729
2017-06-07T06:48:45
2017-06-07T06:48:45
93,587,439
0
0
null
2022-11-22T01:46:16
2017-06-07T03:15:03
Python
UTF-8
Python
false
false
174
py
from db import db class Photo(db.Document): url = db.StringField() path_large = db.StringField() path_medium = db.StringField() path_small = db.StringField()
[ "mariocamaraneto@gmail.com" ]
mariocamaraneto@gmail.com
1a1cc183e8a106d2a1e6d43af03309ad1e706ec3
d31e060d2e47ea84621e7985acaa762cb0b5a9d1
/0x08-python-more_classes/0-rectangle.py
82429b5a46296ee88505b92d3832108ae33b7655
[]
no_license
auraPasmin/holbertonschool-higher_level_programming
3db265a0c37ce20497a15734619b0eb82d63260d
62e1786ac6ee0f8045dd4e310cdd4b990c5b1470
refs/heads/master
2020-09-28T23:24:56.341216
2020-06-05T04:35:04
2020-06-05T04:35:04
226,890,615
1
0
null
null
null
null
UTF-8
Python
false
false
129
py
#!/usr/bin/python3 """ Write an empty class Rectangle that defines a rectangle:""" class Rectangle: """ pass """ pass
[ "1288@holbertonschool.com" ]
1288@holbertonschool.com
1336f3318039f4e42291a2201c124b0de8197265
1c4c8b04ce6b956d473bb6abc0f5c7550a38abf2
/main/urls.py
51c76ed9ea8079962937ddea384da018153cc583
[]
no_license
MaximSungmo/pysite
bc580e62d84f985db70b262e0beb5d0fe04494c6
7d10426a46f48ebf0b9dbe125cb1a3bc0f5d73de
refs/heads/master
2020-06-07T02:11:25.895885
2019-06-24T11:07:31
2019-06-24T11:07:31
192,898,677
1
0
null
null
null
null
UTF-8
Python
false
false
779
py
"""python_ch3 URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.2/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-ba...
[ "ksm5318@naver.com" ]
ksm5318@naver.com
5296e19942d244285d13d5f6cb17242a9191235c
79120c8033b595a6d9ff44fe541b85a66a742d01
/scraper/electives.py
898238d1ca4a666bf08568c4c8d295eb35b1d3ff
[]
no_license
amitra93/DARS-Digest
0059fa593c68c04e939576f0ead1367838f4148c
c1340668961318ab63e29b1d07ea2a89f15dd58c
refs/heads/master
2020-05-16T11:29:41.987355
2013-06-30T22:50:57
2013-06-30T22:50:57
null
0
0
null
null
null
null
UTF-8
Python
false
false
796
py
import MySQLdb db = MySQLdb.connect(host="engr-cpanel-mysql.engr.illinois.edu", # your host, usually localhost user="darsfordummies_x", # your username passwd="XGonGive", # your password db="darsfordummies_dars") # name of the data base cur = db.cursor()...
[ "amitra93@gmail.com" ]
amitra93@gmail.com
0fda81459bc7dbbfdfd31cc6ad3c19fa455a756f
19ebf2faa5f7d4baf4151e350dd22b88f625c44b
/confirmed_users.py
2b8e8a7a913d25c29c891e8188bec791fef50f04
[]
no_license
20145208/PyCharm_test
e6108d41d497ffd16822814e093b707f8df59ba7
a09679b6e471e3659a29822001f83a924867fb0f
refs/heads/master
2022-10-22T14:38:07.977634
2020-06-18T13:55:02
2020-06-18T13:55:02
269,376,634
0
0
null
null
null
null
UTF-8
Python
false
false
1,908
py
# @Time : 2020/6/4 0004 22:10 # @Author: CaiYe # @File : confirmed_users.py def con_users(): unconfirmed_users = ['alice', 'brian', 'candace'] confirmed_users = [] while unconfirmed_users: current_users = unconfirmed_users.pop() print("Verifying user: " + current_users.title()) ...
[ "177315815@qq.com" ]
177315815@qq.com
11a2702023957a734b9bdaa5b56342d72e3e0d9b
01fff6a4d726582262f6c4334894515ce9aee382
/Test/Measurements/GHZ.py
145acf852f186381ccff3d2c9f8f50d446f68537
[]
no_license
FredericSauv/QuantumSimulation
e10160550dd0b501c523031e74cfc427bcb53c23
0be68edfa33fb570d52e31be1d0b277a611b9ba4
refs/heads/master
2021-06-07T08:38:02.867027
2020-10-16T10:17:11
2020-10-16T10:17:11
130,664,275
0
0
null
null
null
null
UTF-8
Python
false
false
5,460
py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Tue Aug 6 20:42:34 2019 @author: fred """ import qutip as qt import numpy as np import matplotlib.pyplot as plt from functools import reduce import utilities as ut ############ Init, utility zero = qt.qubits.qubit_states(1,[0]) one = qt.qubits.qubit_sta...
[ "frederic.sauv@gmail.com" ]
frederic.sauv@gmail.com
763e098f46526ffc53d82bdb059e237202c22748
61b12f799e6f6caef26875c128b46de9f43f5ea4
/venv/bin/django-admin
b62fc8e5ef3b3912872744a1e957566c9d68332c
[]
no_license
raymondethan/shoppinglist
fd8cb6f5944afca09a8bbf3b58ee3925c3b72ab5
5ace94236e65afc25eacc8c1d87bb3ae0344cb4c
refs/heads/master
2021-01-10T20:38:58.438157
2015-06-06T18:17:04
2015-06-06T18:17:04
35,457,926
0
0
null
null
null
null
UTF-8
Python
false
false
306
#!/Users/jonr/Documents/Ethan/shoppinglist/venv/bin/python # -*- coding: utf-8 -*- import re import sys from django.core.management import execute_from_command_line if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) sys.exit(execute_from_command_line())
[ "jonr@new-host.home" ]
jonr@new-host.home
f5652e43484283b338bb4c520e99d2d2437cec4e
a7645e386f7975a39ec79adc9748b87884fcb5cc
/socket_factory.py
8b9eaea6f357f9176268517c2d9a0dab3d1d0e0a
[]
no_license
snjdck/PythonCode
343e84dc2967ce70b657b678d03a1996f35ffd9d
f0703c534fadadda6ee804059bd6ddf4f9976579
refs/heads/master
2021-01-01T17:05:11.482774
2015-06-03T07:32:29
2015-06-03T07:32:29
10,338,777
0
0
null
null
null
null
UTF-8
Python
false
false
286
py
import socket def create_client(ip, port): sock = socket.socket() sock.connect((ip, port)) return sock def create_server(ip, port): sock = socket.socket() sock.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1) sock.bind((ip, port)) sock.listen(5) return sock
[ "shao_kai@qq.com" ]
shao_kai@qq.com
67145f23dd23fff18a42410689e3e97390749427
de4d3ba52b0792695813549f9b3401c3c7ff5d12
/computervision/predictGrowth.py
c59408064bbb2ecc0ed2ae33b44beede050f6e27
[ "MIT" ]
permissive
OurFourthRodeo/Photo-Synthesis
f7d275d67fec14f40c9ad4ebb766951caacfb51f
314ebcfbed0adb2d95e927c410242b48e86720bd
refs/heads/main
2023-01-31T03:16:38.581955
2020-12-11T03:27:34
2020-12-11T03:27:34
305,520,546
1
0
null
null
null
null
UTF-8
Python
false
false
3,140
py
import numpy as np import logging from matplotlib import pyplot as plt import os import sys import json import tensorflow as tf import cv2 ##------------------------------------------------------------------------------------------------ ## Global Variables ##--------------------------------------------------...
[ "jasona99@outlook.com" ]
jasona99@outlook.com
77d2e492ca8fc9fa2ef3a42bf16a2aef6dbe8259
bb96f517535a25f2f2617c6f711cc4f0933692a1
/pickle_tester/pickler.py
a8cd9eb2eba9ea8290eb136521c12c36dbd6dd08
[]
no_license
davpayne/Thinkful
746de19dcdd2d5e13a35fbc62add38d3cfd1779f
f03707bf6b50d5743f750b2b2198975401389c84
refs/heads/master
2020-03-29T15:46:25.955508
2014-03-09T19:57:16
2014-03-09T19:57:16
null
0
0
null
null
null
null
UTF-8
Python
false
false
221
py
import sys import pickle def list_pickler(a_list, path): fil = open(path, 'wb') pickle.dump(a_list, fil) fil.close() def unpickler(path): fil = open(path, 'rb') b_list = pickle.load(fil) fil.close() return b_list
[ "dpayne162@gmail.com" ]
dpayne162@gmail.com
a79b90083990c4ddff918a7d0b71d0f301ea6b07
47813000cf80dbf4ae9bdc81d1cdb5f8986023a4
/models/tiny/resnet.py
a61ff890565444487b983e3b89f08dbed4b16e1c
[]
no_license
w5yang/bone-project
fa72b4085f6f99bf7d64f853df8d9665c132456d
47049ed08abdc51c52fde5c0056423c1aaec2235
refs/heads/master
2023-02-24T05:45:44.833294
2021-01-27T08:12:45
2021-01-27T08:12:45
307,283,494
0
0
null
null
null
null
UTF-8
Python
false
false
5,842
py
from __future__ import absolute_import """ Source for CIFAR models: https://github.com/bearpaw/pytorch-classification by user "bearpaw" Notes: - Network names have been edited to make it consistent with pytorch-torchvision and cadene imagenet models """ """Resnet for 32x32 dataset. Ported form https://github.com/f...
[ "yangwenbin@whu.edu.cn" ]
yangwenbin@whu.edu.cn
bbc92ccd5d682422acb5a8364021fb0f1838bea1
3ec32f5aba8624125918adad5cfbc174d698526d
/test/functional/zmq_test.py
3a7b77bc01b67f696e4585ac2662d14f1115b421
[ "MIT" ]
permissive
aixinwang/atc
b51b85bd91956657d70b72ca128d30132754269e
9f0b53af19735ce0d6a5a6feed6733a51f109019
refs/heads/master
2021-04-03T06:48:24.497048
2018-03-14T04:53:58
2018-03-14T04:59:04
125,152,414
0
0
null
null
null
null
UTF-8
Python
false
false
4,297
py
#!/usr/bin/env python3 # Copyright (c) 2015-2016 The Ai the coins developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test the ZMQ API.""" import configparser import os import struct from test_framework.test_framework im...
[ "your_email@youremail.com" ]
your_email@youremail.com
458dfdce4a2733781ab1f8fdbde70e547d6feec7
15da37c85e9e7b7ff5c88aa9debf9cf604e6d1bf
/data-science/bin/jupyter-kernel
902ee1dcaa588d6310a62932cec80298609c6651
[ "Apache-2.0" ]
permissive
alejandrozorita/Python-Big-data
cb45d6e041cfde6eff694454cad104965fe12f0d
8d9f777caec8a77ee0ad7c8f23e68d13cc77221a
refs/heads/master
2020-03-07T15:00:49.576110
2018-04-08T17:06:48
2018-04-08T17:06:48
127,542,352
0
0
null
null
null
null
UTF-8
Python
false
false
286
#!/Applications/MAMP/htdocs/Python/Python-Big-data/data-science/bin/python3.6 # -*- coding: utf-8 -*- import re import sys from jupyter_client.kernelapp import main if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) sys.exit(main())
[ "alejandro.zorita@medssocial.com" ]
alejandro.zorita@medssocial.com
0d9d84e3b4df268835c47267e9345d14af8f3da3
a6912b5120608203d245024b2a8d3a0b1766595f
/students/KyleCreek/lesson06/assignment/src/good_perf.py
ee0fe8ec9724366c514e90e9bba07e7d2e087f23
[]
no_license
KyleCreek/Python220A_2019
a66a3eb14332e60fd73da00b3691d33630245885
b61e0fb05576b3e3dd7fcc0c73885d6b7d5d2593
refs/heads/master
2020-05-04T19:42:17.155894
2019-06-10T01:14:30
2019-06-10T01:14:30
179,404,089
0
0
null
2019-04-04T02:09:49
2019-04-04T02:09:49
null
UTF-8
Python
false
false
2,323
py
""" #----------------------------- # # Title: good_perf.py # Desc: Revisions to poor_perf.py # Change Log: (Who, When, What) KCreek, 5/14/2018, Finalized Script # ----------------------------- # """ import csv import datetime import logging # Set Up Logger logging.basicConfig(level=logging.DEBUG) def analyze(filena...
[ "Kyle.A.Creek@gmail.com" ]
Kyle.A.Creek@gmail.com
205d1f4dc6e69a3c928c5cb54ea44d579e471935
b5096738be18bf771365185b7d341a687090924b
/ics/lesson4/problem_set_optional/converting_second.py
73115dc588917559282692d5a021b1a4800c926f
[]
no_license
shgtkshruch/udacity
7809dc8852d7657207062503e2159d40897357d6
5cf1ff017fe08294018945976d54a193ccc129b4
refs/heads/master
2020-05-03T23:35:51.986344
2014-07-02T00:58:27
2014-07-02T00:58:27
19,366,551
7
1
null
null
null
null
UTF-8
Python
false
false
1,319
py
# Write a procedure, convert_seconds, which takes as input a non-negative # number of seconds and returns a string of the form # '<integer> hours, <integer> minutes, <number> seconds' but # where if <integer> is 1 for the number of hours or minutes, # then it should be hour/minute. Further, <number> may be an intege...
[ "shgtk.shruch@gmail.com" ]
shgtk.shruch@gmail.com
c56444664cf3333a301f0884510b0044d4904ce6
d612a06eec26d98d8dc6666202b8e6745d4d0e8d
/cmatrixtester/indexcreator.py
3cefd9eb10a670fdd2d8297c6726ffc72d333817
[]
no_license
usman64/Document_Classification
f666d3c25040fd0711b296b1d5d64a33a6b818fb
1873bf7a5d43073d534770087a9ac7a48b402a72
refs/heads/master
2022-03-06T23:34:53.904598
2019-08-04T15:56:11
2019-08-04T15:56:11
195,414,932
0
0
null
null
null
null
UTF-8
Python
false
false
1,438
py
# make an in index of all the templates/images along with their paths and their respective classification (true) # path filename class import os import shutil import time count = 0 start_time = time.time() parentPath = 'wkdir' #change this to desired folder path print('1 for template index creation') #can change this...
[ "noreply@github.com" ]
usman64.noreply@github.com
9738125e28cf1c9de83533eb096c8762262e5edb
b8b3dcf89ac1df5ab348a85d9bd360b68ca3389e
/scrape/urls.py
70a536405bd40d4a4cfe6babde5245c9f995b6d0
[]
no_license
griggz/democratizer
eaa5d44889127c75e50118c54597114e13efb993
0633282933ea1a67c1ac0e685714b6b0435b8ad2
refs/heads/master
2022-02-28T22:45:38.220324
2019-09-23T23:51:57
2019-10-10T00:36:53
208,864,119
1
0
null
null
null
null
UTF-8
Python
false
false
500
py
from django.urls import re_path, path from . import views app_name = 'scrape-api' urlpatterns = [ path('yelp', views.ScrapeListCreateAPIView.as_view(), name='yelp-list-create'), re_path(r'^yelp/(?P<slug>[\w-]+)/$', views.ScrapeDetailAPIView.as_view(), name='yelp_detail'), path('indeed', views....
[ "grigswa@gmail.com" ]
grigswa@gmail.com
5a90946ba66382708baa565dac613ce90965d81f
69bdd5f89421fb81e74e1c8ba1b8ab8fc41c8a25
/plotly_to_gif.py
2e0f46545399df5bc00334e3b88e64cf67f10f18
[]
no_license
satoshi-teji/plotly_to_gif
e1f0aaef761b83b3bdb53d70a8d538eb5d2d71eb
ee58624d19900f3446c2cf51dbd499243335618d
refs/heads/master
2023-02-26T04:10:53.958058
2021-01-28T20:24:41
2021-01-28T20:24:41
333,897,948
0
0
null
null
null
null
UTF-8
Python
false
false
1,280
py
from PIL import Image import plotly.graph_objects as go import io import numpy as np import pandas as pd class Converter: def __init__(self, layout=go.Layout()): self.layout = layout self.images = [] def to_gif(self, ts_data, changing_index=False, indexes=np.array([])): data_type = ty...
[ "te.sato1030@gmail.com" ]
te.sato1030@gmail.com
1755ca056d41648fe5b3aac113eda6a31d225032
49457014fcb1295afe446e1f492bfd93d6a2c02b
/django_project/settings.py
e01246cf8dba1b1ee11f1978cfd5c24bfed9f293
[]
no_license
jatinkumar0/Project-1
a4a5654a8a5f2951c3d33db8f6dde9bcf687acc8
fce17d3b1578533457642723492bd2baf1fe1883
refs/heads/main
2023-06-07T01:40:08.926537
2021-07-08T09:59:58
2021-07-08T09:59:58
326,420,913
0
0
null
null
null
null
UTF-8
Python
false
false
3,095
py
""" Django settings for djp project. Generated by 'django-admin startproject' using Django 3.1.6. For more information on this file, see https://docs.djangoproject.com/en/3.1/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.1/ref/settings/ """ from pathlib imp...
[ "ec2-user@ip-172-31-0-46.ap-south-1.compute.internal" ]
ec2-user@ip-172-31-0-46.ap-south-1.compute.internal
420507f01bf945d4e26787b3a4f118ddd1f40cb2
776d7a10616aac4913e02c8999bb7e10c4748c8c
/tests/conftest.py
2a741bb3be832cba82d55abf91241b201f310e02
[ "Apache-2.0" ]
permissive
acv-auctions/manifold
57277506a5d8c517196d40b7f3c345c8d3732507
b798b0dd6c2f96395d47f700fd2ed0451b80331b
refs/heads/master
2021-03-27T12:55:42.015027
2019-01-15T20:12:16
2019-01-15T20:12:16
123,957,712
2
0
Apache-2.0
2019-01-15T18:37:51
2018-03-05T17:59:51
Python
UTF-8
Python
false
false
827
py
""" Copyright 2018 ACV Auctions Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software di...
[ "starner.daniel5@gmail.com" ]
starner.daniel5@gmail.com
cce7342a42c8684ddbf949892ee53711e6b54f11
52f26888973c4e5ee23dbac68d3fbd536e616652
/octoprint_yonotifier/__init__.py
14b8ee9fc360fc8de52a5e7306081912d80082be
[]
no_license
josephgeis/OctoPrint-YoNotifications
802c43e22c64ae086b1ba16fe1ccb1d3cdf1131d
c939b38ccdfbf0bfb934ecabe1035233fd355488
refs/heads/master
2022-01-10T14:37:26.280231
2019-05-27T07:24:22
2019-05-27T07:24:22
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,727
py
# coding=utf-8 from __future__ import absolute_import # (Don't forget to remove me) # This is a basic skeleton for your plugin's __init__.py. You probably want to adjust the class name of your plugin # as well as the plugin mixins it's subclassing from. This is really just a basic skeleton to get you started, # defini...
[ "juniorrubyist@gmail.com" ]
juniorrubyist@gmail.com
b7175444a24d6feb9f6c5f2e06b70705b249d4a6
babe794f1efd974e7f2a289b644891ad9f572bee
/hechuang/order/admin.py
288b2f8a6475164dfb0b6e99367e7f46e837d620
[ "MIT" ]
permissive
VirtualBookStore/hechuang_backend
6137fc9e3e4e5092a910c07a7737135c1465bf07
421bdeca90eb174b117e8bd8ac0f4cb002461dcd
refs/heads/master
2023-06-07T04:17:33.342808
2021-06-28T07:28:26
2021-06-28T07:28:26
325,348,792
0
0
null
null
null
null
UTF-8
Python
false
false
135
py
from django.contrib import admin from order.models import Order @admin.register(Order) class OrderAdmin(admin.ModelAdmin): pass
[ "rand1925@outlook.com" ]
rand1925@outlook.com
8de9252cb023d9bc76e4587f3bb887d814af3d7c
18468f11a0b2e63ea6ee97566b3e8c3d9cc40f6b
/0_brincando.py
abb2f344044c9b3e3553234d0b61b342ce5c6e8b
[]
no_license
gutaors/ToolBox
931b85477a167d3f7e5173ded20e4210b248e8e8
b6a3d9468e998e17b03d3c1fefdbeda78f902ef3
refs/heads/main
2022-11-05T13:52:52.018223
2022-10-24T04:04:38
2022-10-24T04:04:38
136,492,251
0
0
null
null
null
null
UTF-8
Python
false
false
31,083
py
# --- # jupyter: # jupytext: # formats: ipynb,py:light # text_representation: # extension: .py # format_name: light # format_version: '1.5' # jupytext_version: 1.13.8 # kernelspec: # display_name: Python 3 (ipykernel) # language: python # name: python3 # --- # ### mostra...
[ "gutaors@gmail.com" ]
gutaors@gmail.com
7f802e323fd498a28e7d5eabd0de2d8e12535b04
0d11209671cdefa7791a9775f16820f57b603ce8
/store/views/contact.py
ebafc1723297e16ae96b6fe2a1cc5f5955538a7f
[]
no_license
RektInator/webstore-python
d4e02d0e790e07201c14b946185a9c3a82ce1e61
c366e6a19ca96438da0c4c3db73a77854ef0c6b5
refs/heads/master
2021-03-27T18:20:35.303448
2018-01-17T13:53:24
2018-01-17T13:53:24
null
0
0
null
null
null
null
UTF-8
Python
false
false
273
py
from django.http import HttpResponse from django.shortcuts import render from django.template import loader from django.template.context import RequestContext from . import renderer def contact(request): return renderer.RenderWithContext(request, 'store/contact.html')
[ "0929380@hr.nl" ]
0929380@hr.nl
d1d879e6edfda7cc8eacaeed847c2ffabd08f673
c09cf7d51edc9b9b769c3ec5344f114678e9b6fb
/ecommerce/sales.py
8c8c4ff107392ad7a2db3d1b2b673e542cba7121
[]
no_license
asadsid95/CodeWithMosh
21852fe9324eed79246e1d2fb0c2c8e9b11b7305
5791ff644186aaa0e705f2780e24c312aa02860c
refs/heads/main
2023-07-15T19:52:18.661866
2021-08-12T00:49:18
2021-08-12T00:49:18
393,736,435
0
0
null
null
null
null
UTF-8
Python
false
false
111
py
def calc_tax4(): print('this function is in \'sales\' module, inside of \'ecommerce\' package.') pass
[ "38368758+asadsid95@users.noreply.github.com" ]
38368758+asadsid95@users.noreply.github.com
6e07ce4368cf52e75c822a991a574494f9378a4d
f2575444e57696b83ce6dcec40ad515b56a1b3a9
/Algorithms/Implementation/JumpingOnTheCloudsRevisited.py
6ac69a0db82d7aeb16eaa9fcb0a6ad2d256bdec5
[]
no_license
abhi10010/Hackerrank-Solutions
046487d79fc5bf84b4df5ef2117578d29cb19243
da2a57b8ebfcc330d94d104c1755b8c62a9e3e65
refs/heads/master
2021-07-24T09:41:49.995295
2020-07-12T09:31:58
2020-07-12T09:31:58
195,647,097
4
0
null
null
null
null
UTF-8
Python
false
false
346
py
import math import os import random import re import sys . def jumpingOnClouds(c, k): e=100 for i in range(0,len(c),k): if c[i]==0: e-=1 else: e-=3 if i>=len(c) and c[0]==0: e-=1 break if i>len(c) and c[0]==1: e-=3 ...
[ "noreply@github.com" ]
abhi10010.noreply@github.com
4687b44e6de343e51dd559e06e829299c7675cf5
99e8ae654abe1aa3995d4a6252ddc14e1b247413
/Python_Demo/WEEK_EIGHT/TKinterDemo5.py
1331b3d30af2fe5eef68512b4a5ad02a83b1bd56
[]
no_license
l516q582/pythondemo
fc6e9054ec4ac78d58d6bc75b5ccba796947396d
dbe3ee4e7bb7d6be5f0264adb666867be99d1069
refs/heads/master
2021-09-16T20:15:22.015411
2018-06-23T03:00:56
2018-06-23T03:00:56
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,179
py
from graphics import * def convert(inputPart): celsius = eval(inputPart.getText())#输入转换 fahrenheit = 9.0/5.0 * celsius + 32 return fahrenheit def colorChange(win, inputPart): cnum = eval(inputPart.getText()) weight = cnum / 100.0 newcolor = color_rgb(int(255*weight), int(66+150*(1-weight)), in...
[ "1558319437@qq.com" ]
1558319437@qq.com
4ed8c6acd675d417daccb464aa6770a050037a26
011e932c48456ba8015cd45e326fd9b5df2758bd
/python_db/query_data.py
8b430c6ff3024dd89d753a3cd252d53344aa12d1
[]
no_license
JasminSantana/Patterns-Design
f3e05d735f3ce2018638ad81f9f4ba9aa8633489
27429085e22eb4357402575d36eefc1dca9c7dab
refs/heads/master
2021-08-20T10:52:20.145097
2017-11-29T00:17:04
2017-11-29T00:17:04
111,817,968
0
0
null
null
null
null
UTF-8
Python
false
false
878
py
from config import config import psycopg2 """"Author: Santana Mares Jasmin gmail: sant.mar.1997@gmail.com """ def get_vendors(): """ query data from the vendors table """ conn = None try: params = config() conn = psycopg2.connect(**params) cur = conn.cursor()...
[ "noreply@github.com" ]
JasminSantana.noreply@github.com
a933f81155bab2489d7505fd0f8dce1a748f177e
78fd344f54042c706aa1db9937af0f451a858f47
/academics/migrations/0030_alter_quizgrades_timetaken.py
ec3a1939ff3c5a77df190e96b4e7a528c6a16c60
[]
no_license
Aniketvyas/inhouse
2ca8b29777798ad3268fbaeb83e93eeca750d996
908a7368587f562d32c4968da6e7b629332c6265
refs/heads/master
2023-07-03T09:11:56.688054
2021-08-11T12:15:30
2021-08-11T12:15:30
393,966,782
0
0
null
null
null
null
UTF-8
Python
false
false
424
py
# Generated by Django 3.2 on 2021-07-12 11:44 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('academics', '0029_assignment_assignmenttype'), ] operations = [ migrations.AlterField( model_name='quizgrades', name='...
[ "vyasaniket6@gmail.com" ]
vyasaniket6@gmail.com
49f1a41f9ba2b58896b0eb4e7a76d13dbb45c2a1
551b75f52d28c0b5c8944d808a361470e2602654
/huaweicloud-sdk-vpc/huaweicloudsdkvpc/v2/model/neutron_list_security_group_rules_request.py
c2fd8e52b4af1f422cfe563c56bf84d24458f81d
[ "Apache-2.0" ]
permissive
wuchen-huawei/huaweicloud-sdk-python-v3
9d6597ce8ab666a9a297b3d936aeb85c55cf5877
3683d703f4320edb2b8516f36f16d485cff08fc2
refs/heads/master
2023-05-08T21:32:31.920300
2021-05-26T08:54:18
2021-05-26T08:54:18
370,898,764
0
0
NOASSERTION
2021-05-26T03:50:07
2021-05-26T03:50:07
null
UTF-8
Python
false
false
13,621
py
# coding: utf-8 import pprint import re import six class NeutronListSecurityGroupRulesRequest: """ Attributes: openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name ...
[ "hwcloudsdk@huawei.com" ]
hwcloudsdk@huawei.com
741baa3c2159776bce0691d2b37c1db0a5367f42
481ccd9a3589e83593c46a64d03e657c6457d0f0
/function_keys.py
23ea001ea6708ece3256473b07d73f296c65226e
[]
no_license
izikandrw/codebyvoice
e9deca5ec166015b9aaff07b8ea9610f68107ed1
b8384b56b00e39aa50713fea26c82f764898ac32
refs/heads/master
2021-01-20T12:58:32.777642
2018-05-01T03:23:50
2018-05-01T03:23:50
90,434,126
0
0
null
null
null
null
UTF-8
Python
false
false
256
py
map = { 'F one': 'f1', 'F two': 'f2', 'F three': 'f3', 'F four': 'f4', 'F five': 'f5', 'F six': 'f6', 'F seven': 'f7', 'F eight': 'f8', 'F nine': 'f9', 'F ten': 'f10', 'F eleven': 'f11', 'F twelve': 'f12', }
[ "isaac.stennett@gmail.com" ]
isaac.stennett@gmail.com
164e025c757cbef908707f5219e2c665aaa5261b
be84495751737bbf0a8b7d8db2fb737cbd9c297c
/sdl/tests/sdl/rnd_test.py
bd5ccfdfe9baac2abbb86c6b90739265c39087ae
[]
no_license
mario007/renmas
5e38ff66cffb27b3edc59e95b7cf88906ccc03c9
bfb4e1defc88eb514e58bdff7082d722fc885e64
refs/heads/master
2021-01-10T21:29:35.019792
2014-08-17T19:11:51
2014-08-17T19:11:51
1,688,798
1
0
null
null
null
null
UTF-8
Python
false
false
724
py
import unittest from tdasm import Runtime from sdl.vector import Vector2, Vector3, Vector4 from sdl.shader import Shader from sdl.args import IntArg, FloatArg, Vec2Arg, Vec3Arg, Vec4Arg code = """ p1 = rand_int() p2 = random() p3 = random2() p4 = random3() p5 = random4() """ p1 = IntArg('p1', 333) p2 = FloatArg('p2',...
[ "mvidov@yahoo.com" ]
mvidov@yahoo.com
2c163b01d88f546a5fc61e0aa38f9a7dda79d688
b0c8de1f780ae9a12a7f1290774391d2c6fe73b6
/16-Tekstbestanden/Hittegolven.py
91cdec93e16d6004e0840785bf7f8a2d4f4cf359
[]
no_license
MichielFeys/Informatica5
65f161f8263a442a4191428516ecab5d0f754066
a8db06fe52532b7046c0ab3ecea22a4e222b086c
refs/heads/master
2021-07-01T14:48:22.667840
2019-05-08T17:50:24
2019-05-08T17:50:24
147,636,999
0
0
null
null
null
null
UTF-8
Python
false
false
507
py
temp = [28, 19, 26, 27, 23, 23, 25, 27, 30, 32, 25, 28] lijnen = [] aantal_25_plus = 0 aantal_30_plus = 0 hittegolven = 0 for i in range(len(temp)): if aantal_25_plus >= 5 and aantal_30_plus >= 2: hittegolven += 1 aantal_30_plus = 0 aantal_25_plus = 0 if temp[i] >= 30: aantal_30...
[ "43027811+MichielFeys@users.noreply.github.com" ]
43027811+MichielFeys@users.noreply.github.com
c6872feee88fe1b197782ffe58764561cf3b2807
9f78c2bfadd1e87d779a786e7cd0952b6fbc96f1
/common/models/log/AppErrorLog.py
918ff63b12f1ffc3cbcf7a180a16e09a55e0cc6a
[]
no_license
Erick-LONG/order
08393ed9b315cf2c6af5e2b9bfd6917605fe8d94
4b853403c9c949b3ecbe2766ec77750557cf11fc
refs/heads/master
2022-11-11T09:32:53.570524
2020-06-30T09:20:18
2020-06-30T09:20:18
262,786,005
0
0
null
null
null
null
UTF-8
Python
false
false
544
py
# coding: utf-8 from application import db class AppErrorLog(db.Model): __tablename__ = 'app_error_log' id = db.Column(db.Integer, primary_key=True) referer_url = db.Column(db.String(255), nullable=False, server_default=db.FetchedValue()) target_url = db.Column(db.String(255), nullable=False, server_...
[ "834424581@qq.com" ]
834424581@qq.com
fa108bd7530e8565ffc888194f3b2bc13e59a4a5
b56eaf7a603cbb850be11dbbed2c33b954dedbcb
/distar/envs/other/alphastar_statistics.py
f2c414f241ad9e9546fba1cdbf7a88c0f1c3aa70
[ "Apache-2.0" ]
permissive
LFhase/DI-star
2887d9c5dd8bfaa629e0171504b05ac70fdc356f
09d507c412235a2f0cf9c0b3485ec9ed15fb6421
refs/heads/main
2023-06-20T20:05:01.378611
2021-07-09T16:26:18
2021-07-09T16:26:18
384,499,311
1
0
Apache-2.0
2021-07-09T16:50:29
2021-07-09T16:50:28
null
UTF-8
Python
false
false
20,962
py
import copy import os import logging import numpy as np import torch from ctools.pysc2.lib.action_dict import GENERAL_ACTION_INFO_MASK from ctools.pysc2.lib.static_data import NUM_BEGIN_ACTIONS, NUM_UNIT_BUILD_ACTIONS, NUM_EFFECT_ACTIONS, NUM_RESEARCH_ACTIONS, \ UNIT_BUILD_ACTIONS_REORDER_ARRAY, EFFECT_ACTIONS_RE...
[ "opendilab@gmail.com" ]
opendilab@gmail.com
75a863a592f82faf0099f420daadea5edbe253db
074655fbb70dc7dad1807597efa267abb0fb3500
/desafios/desafio-106.py
a3efcfa39014af63e7cdc60e9f066c83e8da1fb4
[]
no_license
rodrigojgrande/python-mundo
bfa57ff12c537084aeeb5469451e13e74c6fb9f1
d482c84d5c6ae8cfec79317b85390e17ede17f58
refs/heads/master
2023-04-23T08:22:45.251817
2021-05-19T13:08:21
2021-05-19T13:08:21
351,783,397
1
0
null
null
null
null
UTF-8
Python
false
false
1,157
py
#Exercício Python 106: Faça um mini-sistema que utilize o Interactive Help do Python. O usuário vai digitar o comando e o manual vai aparecer. Quando o usuário digitar a palavra ‘FIM’, o programa se encerrará. Importante: use cores. from time import sleep cor = ('\033[m', # 0 - sem cores '\033[0;30;41m', ...
[ "rodrigojgrande@gmail.com" ]
rodrigojgrande@gmail.com
efc52d8b10f9081ff6a555ce6d84839a77e88f05
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p02973/s843936905.py
1546a742a043329f3c3d9e840dbeb8dda98ec3c7
[]
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
272
py
from bisect import bisect_right def main(): inf=float("inf") n=int(input()) alst=[int(input()) for _ in range(n)] work=[inf]*n for i in range(n-1,-1,-1): j=bisect_right(work,alst[i]) work[j]=alst[i] print(n-work.count(inf)) main()
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
7f5a4fc0ed1fefe04e9275015cc32f1b1f2c2e50
1cfc2e726cf5efccae42fe292dd0b6570705c524
/Python/Application2/main.py
21889393d04dd31419a302a47f6c75b30e2ed43c
[]
no_license
PatiVioleta/PythonApplication
3007d096d0af23a380c0e862f965109e5484c57d
983a0c1ce4f8b8df975be2c7960fd97325de77b7
refs/heads/master
2020-04-28T15:05:12.838831
2019-03-13T06:25:29
2019-03-13T06:25:29
175,359,445
0
0
null
null
null
null
UTF-8
Python
false
false
1,955
py
''' Created on Nov 12, 2017 @author: PATI ''' from repository.repositoryStudent import inMemoryRepository from repository.repositoryMaterie import inMemoryRepositoryD from repository.repositoryNota import inMemoryRepositoryN from repository.repositoryMaterie2 import disciplinaFileRepository from repository.repositoryN...
[ "48491987+PatiVioleta@users.noreply.github.com" ]
48491987+PatiVioleta@users.noreply.github.com
fed845857259de02555dffb668df2ec6e074306e
a168a9af6ab99cdee546ccfa7c7a0cc2ad16b20e
/Programmers/Level1/strange_sort(jpt)/strange_sort.py
d83f21cc4047d4829dc2d9ee563ea357790cf4cb
[]
no_license
BakJungHwan/Exer_algorithm
e6a0d2281d5901893566bc18cb5cf8c06b4f703b
aca66fc9b1e16677cd5772e6c8b76cf32d2a5664
refs/heads/master
2021-09-10T09:11:47.662041
2018-01-31T02:06:44
2018-01-31T02:06:44
114,535,444
0
0
null
null
null
null
UTF-8
Python
false
false
168
py
def strange_sort(strings, n): def helper(str_ele): return str_ele[n]; return sorted(strings,key=helper) print( strange_sort(["sun", "bed", "car"], 1) )
[ "Ace.DataSC.Bak@gmail.com" ]
Ace.DataSC.Bak@gmail.com
9771c5d379236811cc2517b042004d5534af8a1a
d73e252c9618ef7fad2434ab0c2f6cc51fe5aa8a
/Gestion location.py
8f2ab09856cb47c8af7f2ad87c3e1265d02a241b
[]
no_license
HaticeKara/Location
883d199ee64b65c50341f56d50f73bc0f3232bee
e57e2173049d2744df6b3b9267edc388c442dea9
refs/heads/master
2023-03-14T03:47:33.423032
2021-03-05T08:14:21
2021-03-05T08:14:21
344,445,771
0
0
null
null
null
null
UTF-8
Python
false
false
4,680
py
import mysql.connector mydb = mysql.connector.connect( host="localhost", user="hatice", password="Plmoplmo14*", database="baseloc" ) print(mydb) mycursor = mydb.cursor() # partie création et insertions : mycursor.execute("CREATE TABLE Loyer (id_loyer int not null auto_increment primary key,type_logement...
[ "hakara]msn.com" ]
hakara]msn.com
332db90717d18029d34aa1bbca1ce2d43fdd2a1d
e495c3f9227d790f3c08a56c357f2a95c167ec9c
/zerojudge.tw/a780.py
5d40bbaa97c9b43d36b1a9634123d570ef876590
[]
no_license
InfiniteWing/Solves
84d894d66588693c73ec1dcaebe3b8b148e1d224
a0f8f09fac5e462d7d12a23ccd8414bd5ff8ffad
refs/heads/master
2021-10-11T00:17:37.367776
2019-01-19T15:07:54
2019-01-19T15:07:54
103,742,356
0
0
null
null
null
null
UTF-8
Python
false
false
361
py
def main(): while True: try: s = input() except EOFError: break o, e, a = float(s.split()[0]),float(s.split()[1]),float(s.split()[2]) if(o == 0 and e == 0 and a == 0): break m = o / e f = a / m print('{0:.2f}'.format(round(m...
[ "sars6608@gmail.com" ]
sars6608@gmail.com
abd5ee70aab65729e8f7fa743256471068ff8cf4
4d6975caece0acdc793a41e8bc6d700d8c2fec9a
/leetcode/856.consecutive-numbers-sum/856.consecutive-numbers-sum.py
e7d78eaedc4dc18c9eedb0691612ac16db60e37b
[]
no_license
guiconti/workout
36a3923f2381d6e7023e127100409b3a2e7e4ccb
5162d14cd64b720351eb30161283e8727cfcf376
refs/heads/master
2021-08-03T10:32:02.108714
2021-07-26T04:38:14
2021-07-26T04:38:14
221,025,113
0
0
null
null
null
null
UTF-8
Python
false
false
76
py
class Solution: def consecutiveNumbersSum(self, N: int) -> int:
[ "guibasconti@gmail.com" ]
guibasconti@gmail.com
8ce3cb6f85f98312fde277abfd989b11fe282013
09afc89edb1603e37cd49a0d97b18a461b7696fa
/wagerautobet.py
10fc15d3d93a293bd814d5382ae79d86c3208eda
[]
no_license
reddyn12/pkt-bet
16fd7f226a1fe4b244083e3d6c815a3e5a849902
208b582225e62fc36b4e12fb2df78edf44202d75
refs/heads/master
2023-02-23T14:54:45.904556
2021-02-01T02:28:41
2021-02-01T02:28:41
323,974,554
0
0
null
null
null
null
UTF-8
Python
false
false
600
py
from selenium import webdriver from selenium.webdriver.common.keys import Keys import time driver=webdriver.Chrome("/Users/Nikhil/Downloads/chromedriver") driver.get('https://wagerwizard.ag/') time.sleep(2) user_box=driver.find_element_by_id("txtAccessOfCode") user_box.send_keys("Kz41") time.sleep(2) pass_box=driver....
[ "nikhilr.ssm@gmail.com" ]
nikhilr.ssm@gmail.com
69e57198777982b5a461544089472acaae42c23c
9ca67006b6acce29177eac92d85276a4e78c2850
/movies/models.py
0a90621849a9688f0a664b1aa86abb62cbb2a870
[]
no_license
0hhanum/aws-django-test
7768eec543d5929bb2688e47820229c0d29206dd
6fb174ef85c5f58a6271b43345612e3451122671
refs/heads/master
2023-04-05T20:49:18.922987
2021-05-10T08:26:23
2021-05-10T08:26:23
365,737,812
0
0
null
null
null
null
UTF-8
Python
false
false
796
py
from django.urls import reverse from django.db import models from core.models import CoreModel class Movie(CoreModel): """ Movie Model """ title = models.CharField(max_length=120) year = models.IntegerField() cover_image = models.ImageField(null=True, blank=True) rating = models.IntegerField() category =...
[ "rntls123@naver.com" ]
rntls123@naver.com
1aaa54ad05b3cb3d5181af19c6399f9c7a1ad31f
48cd2164e9e071916c5888b25b7a9a3f74ab051d
/nba_analysis/stats/migrations/0007_auto_20150722_1700.py
3be3b7ee02b30af0213694bfdf7feb1824c3dd66
[]
no_license
Sandy4321/django_nba_stats
02f46d4b8d76390ebac9d39d381c0509eb13928b
c64ddd77303db32a5693e84c969f9e2562b5b428
refs/heads/master
2020-12-03T10:27:03.630464
2015-10-16T01:45:37
2015-10-16T01:45:37
null
0
0
null
null
null
null
UTF-8
Python
false
false
415
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('stats', '0006_player2015averagestat'), ] operations = [ migrations.AlterModelOptions( name='player2015averagesta...
[ "fredthekid@gmail.com" ]
fredthekid@gmail.com
c9313da804d7aecf76a596bfe962fe97f0c0b7ee
807724d44167e401085ce57c7346ee6351d0cc71
/__init__.py
de452d475b232ab89ee51274d3e6b9f1e09a7a1c
[]
no_license
jurecuhalev/pykpk
86cf885986071bf7853c78d5e3cdc6cb08939e99
037c0c95ad233d4b06912c210cdc0abf2e9bef7c
refs/heads/master
2022-03-09T04:39:39.621174
2012-12-26T01:36:10
2012-12-26T01:36:10
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,843
py
### # # Library for parsing http://supervizor.kpk-rs.si/ # Author: Jure Cuhalev - firstname @ lastname .com # # Released under the MIT License (MIT) import requests from urllib import urlencode import json from lxml import etree from lxml.html.soupparser import fromstring from lxml.cssselect import CSSSelector URL = ...
[ "gandalfar@gmail.com" ]
gandalfar@gmail.com
3461114ef7de35dac3442a2a0f612ee8e6fdf335
df8427979988ccfe085066faa350f4faa57ec1a9
/train.py
0580ef01a8f3b41d6f9f9b5737677dea49f8ae31
[]
no_license
xuelanglv/disaster-project
c47c35e4f000f66c558e082dd0869f1ce48f3cf2
c2575b279300ffc3db9a3235c44d5a2155931159
refs/heads/master
2020-06-05T14:34:49.933586
2014-12-08T06:12:06
2014-12-08T06:12:06
null
0
0
null
null
null
null
GB18030
Python
false
false
5,145
py
# -*- coding: cp936 -*- """ Created on Thu Oct 09 22:22:43 2014 @author: shuaiyi """ import sys import numpy as np import matplotlib.pyplot as plt from numpy.random import shuffle from sklearn.svm import LinearSVC, SVC # svm from sklearn.cross_validation import train_test_split # 把训练样本分成训练和测试两部分 from skl...
[ "shuaiyigis@gmail.com" ]
shuaiyigis@gmail.com
1e4fc798c9b1eea9a2fed8e6da85272fae6dbde1
88aa6628ebe431628947a55b5f42eceb0472c210
/lmnet/lmnet/datasets/ytfaces.py
89d0dfe17f75e080c972a5a41c7b37fb2c4fb791
[ "Apache-2.0" ]
permissive
hadusam/blueoil
fa907aa94f764580948f3fb75381c6b82214e14b
ce8fc406126d98f68c9ff648d67e2bc85a9312d1
refs/heads/master
2021-06-19T15:14:59.173807
2020-02-05T03:18:02
2020-02-05T03:18:02
153,714,765
0
0
Apache-2.0
2020-01-07T02:08:50
2018-10-19T02:22:21
Python
UTF-8
Python
false
false
3,025
py
# -*- coding: utf-8 -*- # Copyright 2018 The Blueoil Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unles...
[ "noreply@github.com" ]
hadusam.noreply@github.com
d8f453cbc8d6faf8544ab9e6c7c8f3f69eca3db6
f445450ac693b466ca20b42f1ac82071d32dd991
/generated_tempdir_2019_09_15_163300/generated_part007491.py
e36cb723cb2eaeafc9ed54508427de7131e5b47c
[]
no_license
Upabjojr/rubi_generated
76e43cbafe70b4e1516fb761cabd9e5257691374
cd35e9e51722b04fb159ada3d5811d62a423e429
refs/heads/master
2020-07-25T17:26:19.227918
2019-09-15T15:41:48
2019-09-15T15:41:48
208,357,412
4
1
null
null
null
null
UTF-8
Python
false
false
1,598
py
from sympy.abc import * from matchpy.matching.many_to_one import CommutativeMatcher from matchpy import * from matchpy.utils import VariableWithCount from collections import deque from multiset import Multiset from sympy.integrals.rubi.constraints import * from sympy.integrals.rubi.utility_function import * from sympy....
[ "franz.bonazzi@gmail.com" ]
franz.bonazzi@gmail.com
7894bc2a90641898792873857f43f1459e677cc3
8017e94a8b1f1a0c0016e4012c75cdef93bfcb7d
/option_value.py
ab2ec040f771dd5dee6a12ad4120f51e740e3a93
[]
no_license
cashpw/ibkr_utilities
5ea23fc47b5c129d51ae33b081167cbb9bb67adc
9f83e1167b28c143552930d0eac44a0e07eb407a
refs/heads/master
2022-11-04T07:30:47.871721
2020-04-21T16:26:02
2020-04-21T16:26:02
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,248
py
from typing import Callable from decimal import Decimal, ROUND_HALF_DOWN from ibkr_utilities.util.is_call import is_call def calc_put_value(underlying_price: Decimal, strike_price: Decimal, multiplier: int) -> Decimal: if underlying_price >= strike_price: return 0 value = Decimal((strike_price - under...
[ "cashbweaver@gmail.com" ]
cashbweaver@gmail.com
3a5679953ae1a0710355aaaecad60b3d96b36686
dcf69d10c5719411a26be62feeaf29aadc86b825
/Python/python_5.py
db4a4a0f16e06058ac59dfcab8964daa87663f54
[]
no_license
nivarpG/Python-Assignments-1x
19b0b3411960a3f5e1aa31482b85666ee9aa05c1
eca3c2342cacdba97d3470c994177943d4c5c50b
refs/heads/master
2021-05-11T18:39:52.701021
2018-01-17T12:45:34
2018-01-17T12:45:34
117,834,822
0
0
null
null
null
null
UTF-8
Python
false
false
596
py
a) #program to print command line argument #the Python sys module provides access to any command-line arguments via the sys.argv import sys #sys.argv is the list of command line arguments print 'Argument List:' , str(sys.argv) b) #program to print biggest of three numbers via command line arguments import...
[ "noreply@github.com" ]
nivarpG.noreply@github.com
e646e840415066474e090129909b4fa89a674716
334d0a4652c44d0c313e11b6dcf8fb89829c6dbe
/checkov/terraform/checks/provider/bridgecrew/credentials.py
fac41da6ae3817889168443670a4b19c7c89d1ea
[ "Apache-2.0" ]
permissive
schosterbarak/checkov
4131e03b88ae91d82b2fa211f17e370a6f881157
ea6d697de4de2083c8f6a7aa9ceceffd6b621b58
refs/heads/master
2022-05-22T18:12:40.994315
2022-04-28T07:44:05
2022-04-28T07:59:17
233,451,426
0
0
Apache-2.0
2020-03-23T12:12:23
2020-01-12T20:07:15
Python
UTF-8
Python
false
false
1,157
py
import re from typing import Dict, List, Any from checkov.common.models.enums import CheckResult, CheckCategories from checkov.terraform.checks.provider.base_check import BaseProviderCheck from checkov.common.models.consts import bridgecrew_token_pattern class BridgecrewCredentials(BaseProviderCheck): def __init...
[ "noreply@github.com" ]
schosterbarak.noreply@github.com
790377a01ed8013816dd8017e8c4cb12a44b62f3
d5e82604646b200673d9f9e57a4ba0f3b35c3516
/pybb_extensions/pluggable/models.py
9359c94f44284c64002d653591bea0e3e8f5272b
[]
no_license
zalew/pybbm-extensions
7cd7d5ada4d6f809713f469ab7cb46f9e7952c66
3b5c1f63d21bfbdf659f49dae76ce81faf3ad7d9
refs/heads/master
2020-12-24T13:21:04.035156
2013-07-18T12:37:09
2013-07-18T12:37:09
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,376
py
#!/usr/bin/python # -*- coding: utf-8 -*- from django.contrib.auth.models import User from django.contrib.contenttypes import generic from django.contrib.contenttypes.models import ContentType from django.db import models from django.db.models.manager import Manager from django.db.models.signals import post_save from p...
[ "zalew7@gmail.com" ]
zalew7@gmail.com
ae4464db52561375bbc87b0547ef21940050cf28
3295017d73103cb573616858db368f66d7c1c439
/NAOmark_Detection.py
6c8330609d9d4c3a6305b410b43461e514c415d9
[]
no_license
SV1609/Master-Thesis
876b240342eff0e602207988a3bfcb04b33f1ea4
054d13844fdf16000e5c075507362504a7d67f82
refs/heads/master
2022-04-17T04:27:51.150332
2020-04-13T09:53:42
2020-04-13T09:53:42
255,286,537
1
0
null
null
null
null
UTF-8
Python
false
false
4,727
py
#! /usr/bin/env python # -*- encoding: UTF-8 -*- """Example: Demonstrates a way to localize the robot with ALLandMarkDetection""" import qi import time import sys import argparse import math import almath class LandmarkDetector(object): """ We first instantiate a proxy to the ALLandMarkDetect...
[ "noreply@github.com" ]
SV1609.noreply@github.com
2dbe042275ad6bd1719cdfe946a9871dca51c1d0
41efbf79b5dc76a05b70a3e6e7c43e566df8feaf
/workbook_performance_checks.py
8577c3b8857574bcdbcf7bca67df050a4c9863b8
[]
no_license
kesireddyr/TabValidate
73ba105069220ebaced3c37d1ff768cc169cc68e
a242c9b22bd64f95418b79d69518046976a14b4e
refs/heads/master
2023-08-11T10:59:17.659406
2020-03-03T17:24:46
2020-03-03T17:24:46
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,173
py
import argparse import getpass import logging import time from urllib.parse import quote import tableauserverclient as TSC import yaml def main(): parser = argparse.ArgumentParser(description='Access to config.yml file') parser.add_argument('--config-file', '-c', default='config.yml', ...
[ "christian.silva.r@gmail.com" ]
christian.silva.r@gmail.com
dc37ceb19cda10dcf2dedb5eb532af1094506b77
dc4088c4a7dd12de8c92b792aed260a91391d699
/OPR2/models.py
a49b1ea8348203ac34272025f2262e28aefcfed9
[]
no_license
JustinD1/Public-Management-Metrics-Overhaul
ffb2fc3d531baf616cd721adaf0d38df0cab82ec
62b5204043376f320231e0130f7f881ce1d6f17d
refs/heads/main
2023-08-17T13:05:28.195742
2021-09-20T16:19:15
2021-09-20T16:19:15
408,504,288
0
0
null
null
null
null
UTF-8
Python
false
false
1,749
py
from django.core.validators import validate_comma_separated_integer_list from django.db import models from home.models import StoreSave, FileDate class Document(models.Model): def __str__(self): return self.description description = models.CharField(max_length=255) document = models.FileField(up...
[ "35259451+JustinD1@users.noreply.github.com" ]
35259451+JustinD1@users.noreply.github.com
d8a89d664f950a89c1900d9eef3be5616186ecbd
25aa59eb559afa5aeeb4347c053f493a7e4fd9f2
/batfight.py
50022c456ab425373390fb7b13dbc52d966dd492
[]
no_license
Nacrova/pythondemo
da2ccea78b0b29406cf639d4b85f83c3ac5376e2
e621859e3d4b4269b56060b48c2a95c48b134672
refs/heads/master
2020-03-20T22:18:41.530855
2018-06-22T19:44:53
2018-06-22T19:44:53
137,790,945
0
0
null
null
null
null
UTF-8
Python
false
false
556
py
print("You are fighting a Giant bat!") move = raw_input("Please make your move:") if move == "attack": print("You hit the bat and it screeches loudly, but does next to nothing but hurt your ears.") if move == "block": print("You try to block the bat's bite, but to no effect. You bleed out hours later.") if ...
[ "noah.swingle@gmail.com" ]
noah.swingle@gmail.com
3f11f6e753f742c91c330b4722f942811c63b180
4c413f3787e66155d90a3cdce87b6527b7dae459
/app/flask_sqlite.py
b36b4dfdc058055d05334bff7c7dc96e8ad989c1
[]
no_license
priyanshukumarcs049/flask
61b0339c9dd5afc62625d35b3b42902383d95402
5d6828d87cd648d050fec78465bcb8e607d1530e
refs/heads/master
2020-04-01T10:05:38.901968
2018-10-17T12:08:05
2018-10-17T12:08:05
153,102,409
0
0
null
null
null
null
UTF-8
Python
false
false
1,284
py
from flask import Flask, render_template, request import sqlite3 as sql app = Flask(__name__) @app.route('/') def home(): return render_template('home.html') @app.route('/enternew') def new_student(): return render_template('student.html') @app.route('/addrec',methods = ['POST', 'GET']) def addrec(): if req...
[ "noreply@github.com" ]
priyanshukumarcs049.noreply@github.com
a1abbcb23714badaf42e7155343c0630d731aa58
0ca0ceea2a50b8a0e2c17be73718be268b42838f
/utils/helpers.py
5ebf9a2b69ea8ee63844c1cffdad00b0ffac39d0
[]
no_license
hshaheucleia/web-demo
3089795bf501bd04981b9e216d2f7b0e4f5dd0d3
db42a74aa35745f5f582b5af36ac001b2ea52fcf
refs/heads/master
2021-01-10T20:40:13.761926
2013-09-02T14:34:32
2013-09-02T14:34:32
null
0
0
null
null
null
null
UTF-8
Python
false
false
634
py
import datetime import decimal import httplib import math import re import sys import urllib, urllib2 from xml.etree import ElementTree from django.conf import settings from django.core.mail import mail_admins, EmailMultiAlternatives from django.utils import simplejson from django.template.loader import render_to_str...
[ "harsh.shah@taxiforsure.com" ]
harsh.shah@taxiforsure.com