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
dfc4f1546e396f096141ac3c4bee2450af2b669a
acb8e84e3b9c987fcab341f799f41d5a5ec4d587
/langs/3/g8a.py
11499735584b852d0a13bce338767c285daba558
[]
no_license
G4te-Keep3r/HowdyHackers
46bfad63eafe5ac515da363e1c75fa6f4b9bca32
fb6d391aaecb60ab5c4650d4ae2ddd599fd85db2
refs/heads/master
2020-08-01T12:08:10.782018
2016-11-13T20:45:50
2016-11-13T20:45:50
73,624,224
0
1
null
null
null
null
UTF-8
Python
false
false
486
py
import sys def printFunction(lineRemaining): if lineRemaining[0] == '"' and lineRemaining[-1] == '"': if len(lineRemaining) > 2: #data to print lineRemaining = lineRemaining[1:-1] print ' '.join(lineRemaining) else: print def main(fileName): with open(fileName) as f: for line in f: ...
[ "juliettaylorswift@gmail.com" ]
juliettaylorswift@gmail.com
e27e505b242abbc44118e208376585d51e5d259e
30901ce0c3cde3bfddf86a1c608f7cc5b66c1ad3
/strings/countSubstrOcc.py
834b21c4f30e08210094dabcc11331e8dd82ac88
[]
no_license
cmjagtap/Algorithms_and_DS
6393174f98b0a36def32f1477169fb4a19f14725
bf0a28ff14899736e759b4b54ecc8488e68620c7
refs/heads/master
2022-12-24T19:47:59.032440
2020-10-03T11:17:09
2020-10-03T11:17:09
106,392,516
4
4
null
2020-10-03T11:17:10
2017-10-10T08:53:16
Python
UTF-8
Python
false
false
230
py
def countSubsrt(string,substr): if not string or substr: return else: count=0 for x in range(len(string)-len(substr)+1): if string[x:x+len(substr)]==substr: count+=1 return count print countSubsrt("ABCDCDC","CDC")
[ "cm@localhost.localdomain" ]
cm@localhost.localdomain
ef7cd0920f2e278aba3e2db414cde1d44540c646
0f5b27728c01bb531420c7034c64b494d6de2ed9
/it support (bilkhu)/string example.py
9f0925a0a07fd2169de56552192ef159298ef94a
[]
no_license
yyashpatell/Yash_Patel_8736546_assignment1
381a8326a49ee126bbbc130bf20f03ce8710dc49
2b10c21479c6a44bca71225705f786ec7482846f
refs/heads/master
2023-08-07T23:48:32.776700
2021-09-30T22:49:33
2021-09-30T22:49:33
412,244,606
0
0
null
null
null
null
UTF-8
Python
false
false
173
py
print("hey, i'm in prog1738!") print('hey, i'"'"'m in prog1738') print("the boy answered the phone and said 'hello'") print('the boy answered the phone and said "wassu???"')
[ "ypatel6546@conestogac.on.ca" ]
ypatel6546@conestogac.on.ca
50256ff811a8aaa5aee27dac8716a46b7f987649
d4df22e6a071f856c21b3f69f01700ab97ac2a9a
/cart/migrations/0006_course_description.py
ac1738a77095caf4120822713b1164982e904433
[]
no_license
piertf14/ShoppingCart
3ed94d13e21edc707c1a85f0c819dd1871dc0b67
3b73ef80697e90b56835f412199b062ad83f2176
refs/heads/master
2021-07-04T11:32:04.442095
2017-09-21T21:18:36
2017-09-21T21:18:36
104,398,778
0
0
null
null
null
null
UTF-8
Python
false
false
490
py
# -*- coding: utf-8 -*- # Generated by Django 1.11.5 on 2017-09-21 06:30 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('cart', '0005_purchase'), ] operations = [ migrations.AddField( ...
[ "piertf14@gmail.com" ]
piertf14@gmail.com
b786b5944461efd9f93d33544a2347172abdcee2
6c369e62615f671dc986960d043b09c4f86ed61c
/tests/hazmat/primitives/test_serialization.py
b19990e0a8a2b08dd8fb0576a34dca8699ee6c9a
[ "Apache-2.0" ]
permissive
MyTemp/cryptography
35b849d682fa277ebab002b61a8449c49b7cf3d4
0a31a2360fb2fc0d193ef56fdd41c924253c39c5
refs/heads/master
2021-01-17T22:29:18.605484
2014-05-31T11:14:29
2014-05-31T11:14:29
null
0
0
null
null
null
null
UTF-8
Python
false
false
20,656
py
# 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 # distributed under the...
[ "alexs@prol.etari.at" ]
alexs@prol.etari.at
4b7416db5190f66373667db866ac5cd76aec2d14
1592b1fb69eb6c39467d3ae7a6a2bfb2cae515a1
/main.py
f8e93421ceb24f04da6a3cfd1e6ceae917430761
[]
no_license
Kamol774/Uz-imlo-bot
c9863aadf15a14d0eb90fe612c637188efa6334a
0d11b98005e46710e5859c6c7b4507a63d3bfbec
refs/heads/main
2023-06-30T09:01:43.991908
2021-08-01T15:38:37
2021-08-01T15:38:37
390,967,859
0
0
null
null
null
null
UTF-8
Python
false
false
1,822
py
import logging from aiogram import Bot, Dispatcher, executor, types from checkword import checkWord from transliterate import to_cyrillic from settings.local_settings import TELEGRAM_TOKEN API_TOKEN = TELEGRAM_TOKEN # Configure logging logging.basicConfig(level=logging.INFO) # Initialize bot and dispatcher bot = Bot...
[ "chust1222@gmail.com" ]
chust1222@gmail.com
ce17ba947ceaaed20a98be882c51cdfbaa210504
6d5d564496ed28280976d9b32329467761c29055
/build/simple_arm/catkin_generated/pkg.installspace.context.pc.py
3a1354f84a49edda8f4b7bb652c62c6915c75042
[]
no_license
claudius96/Udacity-White_ball-tracking-using-openCv
7d3de04a78123b7a9997d54445d685e927772657
e7defd89286478efb3b9ed1a914403cf4fabb9eb
refs/heads/master
2023-04-02T02:29:42.299651
2021-04-09T14:15:06
2021-04-09T14:15:06
356,294,213
0
0
null
null
null
null
UTF-8
Python
false
false
480
py
# generated from catkin/cmake/template/pkg.context.pc.in CATKIN_PACKAGE_PREFIX = "" PROJECT_PKG_CONFIG_INCLUDE_DIRS = "/home/robond/workspace/catkin_ws/install/include".split(';') if "/home/robond/workspace/catkin_ws/install/include" != "" else [] PROJECT_CATKIN_DEPENDS = "".replace(';', ' ') PKG_CONFIG_LIBRARIES_WITH_...
[ "claudiusmuzimba4@gmail.com" ]
claudiusmuzimba4@gmail.com
d263b08f7c598cd58f9fde23de084f6c4c2f8e7c
3ca7f62630204be88d2280b9e60b5fecafdd4344
/Test_task/Task_win.py
114f518e88c58a9ecbe9231e474cf2110b407184
[]
no_license
joinmm/Pycharm_python35
bcee04adfa79da362df5478ac561ad616a1bb828
eb66901d7936203f70ed2b1811fcd186c690b71f
refs/heads/master
2022-01-22T05:49:27.725192
2018-10-31T06:01:34
2018-10-31T06:01:34
null
0
0
null
null
null
null
UTF-8
Python
false
false
16,544
py
# -*- coding: utf-8 -*- from PyQt5.QtCore import * from PyQt5.QtGui import * from PyQt5.QtWidgets import * import sys import os import time import Task import analysis_cfg_fox import analysis_cfg_china #import QDesktopServices import k_mapping from CommonUtil import RBCommon as CLASS_COMMON_UTIL class k_Taskwindow(Ta...
[ "superdkk@gmail.com" ]
superdkk@gmail.com
c945d1ab3b59d516b883b0730daa41751640c90e
95fcf7ebe0fa31d93a5792ec2970096840be2fa0
/synthesize_forcing.py
52c7e92d9cc3cc5c9b704f2dfc79ab793e35eef9
[]
no_license
alphaparrot/rossby-blocking
d40036ff46a590cff115bca5cd65dae20b3872ca
a04beb0ff406f92002cd572387bc1ab23ccf5c48
refs/heads/master
2020-03-20T02:28:15.805933
2018-07-10T21:29:32
2018-07-10T21:29:32
137,114,260
0
0
null
2018-06-15T20:32:15
2018-06-12T18:48:57
Jupyter Notebook
UTF-8
Python
false
false
2,663
py
import numpy as np import matplotlib.pyplot as plt # Block Shape: (time, xwidth, twidth, phase, (xcoord,tcoord)) (the last only for onsets) if __name__=="__main__": nblocks = np.zeros((5,10,5,20)) starts = np.zeros((5,10,5,20,2),dtype=object) avgdelays = np.zeros((5,10,5,20)) stddelays = np.zeros((5,1...
[ "paradise@astro.utoronto.ca" ]
paradise@astro.utoronto.ca
e4a95cd7e79a23db19fd4e93a195f3590509cd82
7f8f49e77c3d71531688c41e5147c75257a661f6
/scripts/mpl_stylesheet.py
83c9301c5800b94fbc18c7a6f8a4e2ab988f1ced
[]
no_license
francosimonetti/trans-eqtl-pipeline
4ef83e007ee9d4e5aeb8650b30e4684b4150d6e8
877b835d832649056cd80cbb7feeedcebebcfb69
refs/heads/master
2023-06-19T18:40:55.354166
2021-03-02T20:34:29
2021-03-02T20:34:29
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,144
py
import matplotlib from matplotlib import cycler ## Resources from: ## https://matplotlib.org/users/customizing.html ## How to change color and plot styles? ## https://matplotlib.org/users/dflt_style_changes.html ## matplotlib.rcParams[] = def banskt_presentation(black = '#333333', linewidth = 2, ticksize = 8, fonts...
[ "bnrj.saikat@gmail.com" ]
bnrj.saikat@gmail.com
b9ef7513d975f6f3934eb64e4ba5f77cd2bc2cc3
949b9431703c6034db55546c5acc7313ffbe65dc
/text/machine_comprehension/gpt-2/GPT2-export.py
7bc18b8b6b1ff9c2c9a51090f1c78807f1c8f8b9
[ "Apache-2.0", "MIT" ]
permissive
kurzacz/models
0df394738108a794d0a2841008595dea6ca679ba
2286df0a137f25f1ffc6a62033909f47ae708292
refs/heads/master
2020-09-12T12:01:30.484128
2019-11-18T10:26:53
2019-11-18T10:26:53
222,418,739
0
0
MIT
2019-11-18T10:09:12
2019-11-18T10:09:12
null
UTF-8
Python
false
false
4,024
py
import torch import onnxruntime from onnx import numpy_helper from transformers import GPT2Model, GPT2Tokenizer import numpy as np import os # Model | Tokenizer | Pretrained weights shortcut MODELS = [ (GPT2Model, GPT2Tokenizer, 'gpt2'), ] data_dir = 'test_data_set_0' def save_tensor_...
[ "ebarsoum@gmail.com" ]
ebarsoum@gmail.com
043c7cb250bb9bce8c1d1805de62e82af2a2de32
0f20c328c316a3154f07ac0b766a9f69a08b5885
/11.2 Employee.py
4b6fc716c448b898a93bc18b2155457d7b7ff135
[]
no_license
JKapple/Fall-2018-PRG-105-Ch.11.2
3bb0de7b00160d5f32fbe21db950d034ecf71ae7
f082b87455c591c401622f080005cdf530a07fed
refs/heads/master
2020-04-04T08:38:17.228602
2018-11-01T23:34:18
2018-11-01T23:34:18
155,788,253
0
0
null
null
null
null
UTF-8
Python
false
false
722
py
#import ProductionWorker class Person: def __init__(self, first, last): self.firstname = first self.lastname = last def Name(self): return self.firstname + " " + self.lastname class Employee(Person): def __init__(self, first, last, staffnum): Person.__init_...
[ "noreply@github.com" ]
noreply@github.com
beba7761e3c9f91219f06b74b9cbab4211c96b1e
4148260054c2cf4605dacb8bdef3605c82eca470
/temboo/Library/YouTube/GetVideoData.py
251023437876e0043e127d825dfedaf39bd70dca
[]
no_license
wimsy/actuarize-web
0f23d5f00afe3d36d430621cdb497d2e64998416
5f43af3019da6fb08cafeec9ff0a89df5196b864
refs/heads/master
2021-03-12T19:38:21.887681
2012-12-19T01:13:50
2012-12-19T01:13:50
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,892
py
# -*- coding: utf-8 -*- ############################################################################### # # GetVideoData # Retrieve information about a single video using its ID. # # Python version 2.6 # ############################################################################### from temboo.core.choreography impo...
[ "mike.wimsatt@gmail.com" ]
mike.wimsatt@gmail.com
dafb8f07ede898aeb31fe2583639fd6ad6cafbb4
97002db176e9d65d8bbe5d036d959f90a2ba7577
/my_work/day4/day4_xml1.py
ad1c92283ab01a19746a89d0b58ce86aa30007f7
[]
no_license
asomu/wc_study
e77273885bfbb0dc52eb837f7c2c0370c74baae0
8a62844bf50895ecd4ede1b7480c5b3d43fc7bde
refs/heads/main
2023-03-12T13:07:22.805949
2021-03-03T02:30:11
2021-03-03T02:30:11
342,505,861
1
0
null
null
null
null
UTF-8
Python
false
false
221
py
from bs4 import BeautifulSoup as BS with open('books.xml','r', encoding='utf-8') as file: book_xml = file.read() bsObj = BS(book_xml, 'lxml') for book_infor in bsObj.findAll('author'): print(book_infor.text)
[ "asomu34@gmail.com" ]
asomu34@gmail.com
8bc4198785572801be0e33bd3d272e583af48ee1
1f5dc6ce24fdf4557456e3cd6775142338043d9c
/active_reward_learning/envs/reward_model_mean_wrapper.py
35a2121067a6bf1dea06a214f4b3b56acc0f21ba
[ "MIT" ]
permissive
david-lindner/idrl
7c747211fc38e0478b26d254206ddef70d3dac64
54cfad330b0598ad4f6621796f2411644e50a6ba
refs/heads/main
2023-09-02T11:20:23.120737
2021-11-16T17:31:33
2021-11-16T17:31:33
421,450,567
13
0
null
null
null
null
UTF-8
Python
false
false
2,208
py
from types import SimpleNamespace from typing import Dict, Tuple, Union import gym import numpy as np class RewardModelMeanWrapper(gym.RewardWrapper): def __init__(self, env: gym.Env, reward_model, debug=False, normalize=False): self.reward_model = reward_model self.debug = debug self.nor...
[ "dev@davidlindner.me" ]
dev@davidlindner.me
87b1dfad526d13c87d36c656f69dc17a42896b7a
966280ab617298a3ced79bc60189b301c795067a
/Arrays/849_Maximize_Distance_to_Closest_Person.py
a0995f69ead8954fb648b5097c491a25f7386fab
[]
no_license
Rishabhh/LeetCode-Solutions
c0382e5ba5b77832322c992418f697f42213620f
2536744423ee9dc7da30e739eb0bca521c216f00
refs/heads/master
2020-06-10T02:37:42.103289
2019-05-29T06:38:02
2019-05-29T06:38:02
null
0
0
null
null
null
null
UTF-8
Python
false
false
920
py
class Solution: def maxDistToClosest(self, seats): """ :type seats: List[int] :rtype: int """ temp = [] MIN_ = -sys.maxsize MAX_ = sys.maxsize left_closest, right_closest = -1, -1 for ii, seat in enumerate(seats): if seat == 1: ...
[ "weihewang2012@gmail.com" ]
weihewang2012@gmail.com
866351e374d769181a981dde5a2f87ff560106ac
fa05677836c6c4a63982100ce1e532e87b30591f
/code_wars_exercises/printing_functions.py
a1733015264fdef078583120f0a021f7cfa7fd84
[]
no_license
normyp/exercises
c462058b083a8314cb476190e4538b43dc30a8f0
a29df42395f4dc3480848588bd5c3121289a27a3
refs/heads/master
2022-09-10T03:05:09.867579
2020-06-02T13:49:45
2020-06-02T13:49:45
268,561,628
0
0
null
null
null
null
UTF-8
Python
false
false
136
py
def build_profile(first, last, **user_info): user_info['first_name'] = first user_info['last_name'] = last return user_info
[ "pm.normington@gmail.com" ]
pm.normington@gmail.com
eda8c524d4c6b4d821958ab7f84e61966f823696
5e64687740ff4e2a36cd0bc4cd84872e0b741eeb
/pizzatoppings.py
a1c2a7543d16702c30ce6935e2a558baded6e3c1
[]
no_license
dnwigley/Python-Crash-Course
283ae646a40c2167323dbbbd95189d93c7118e38
dda8bc182a52c86ebc66e56e7afa5e38e0485036
refs/heads/master
2021-07-05T04:22:47.431762
2017-09-28T14:45:05
2017-09-28T14:45:05
105,158,809
0
0
null
2017-09-28T14:41:38
2017-09-28T14:29:53
null
UTF-8
Python
false
false
252
py
#pizzatoppings.py prompt ="\nEnter a pizza topping: " prompt += "\nEnter 'quit' to end the program. " message ="" while message != 'quit' : message = input(prompt) if message != 'quit': print("\n I will add " + message + " to your pizza")
[ "noreply@github.com" ]
noreply@github.com
dfba586c2a011d27b80bba53f2dc9fe6a14d159b
87df7e59319712cb98ec69abb3e2930fd6993a2c
/biometrics_integration/models/hr_employee.py
6c700ad03aadfda2a29f8dad622497e54def2c1b
[]
no_license
HarshalBhoir/Assemble_Pro_Addons
81e5e9aa59b8ab8261a6907b0401ca05686c8838
cb6fc00b9b2899cf25086a5d6c62fdc20189908f
refs/heads/master
2021-09-03T15:52:23.408919
2018-01-10T06:55:09
2018-01-10T06:55:09
116,918,732
0
2
null
null
null
null
UTF-8
Python
false
false
2,526
py
from openerp import models, fields, api, tools, _ import datetime import time from datetime import timedelta,datetime class hr_employee_extension(models.Model): _inherit = 'hr.employee' emp_code = fields.Char(string="Employee Code") @api.multi def emp_attendance_fetcher(self, attendance_list, att_date, in_mach...
[ "harshalvbhoir@gmail.com" ]
harshalvbhoir@gmail.com
ca060d431ce4e334cad99929de7472c6c324e35b
5a5a0de0cdfd6f82f31e37842a90599ed3d68051
/src/16/16-3/stringlistmodel.py
4da07a3f1ec417cc076ccb03e38784bb873753e9
[]
no_license
my-rds-store/pyqt_fast_learn
9b4cc0f588db97b59b1c932c0bdc8487a2a339f3
08c9032b6da801aea861ca9410439707f183d933
refs/heads/master
2021-01-22T04:04:47.797540
2017-09-05T16:28:40
2017-09-05T16:28:40
102,262,914
0
0
null
null
null
null
UTF-8
Python
false
false
1,340
py
#!/usr/bin/env python #coding=utf-8 from PyQt4.QtCore import QAbstractListModel, QStringList, QModelIndex, QVariant, Qt, QString class StringListModel(QAbstractListModel): def __init__(self,stringList,parent = None): super(StringListModel, self).__init__(parent) self.stringList = QString...
[ "jxm_zn@163.com" ]
jxm_zn@163.com
8aebd3d9350d13ebe1d45739e7f4d2ffb25ef335
6ad0c6d25259b38d79008c4582a88fad74102622
/idscrape.py
7b3d5cbce1793ae9337c56ab755d922812ea2397
[]
no_license
starteddfr/roblox-id-scraper
c0b13cb3eba58fddb12230953d411d31263ea15e
bd21c7708e6ad39c871af8197b00c327972ea6e6
refs/heads/main
2023-04-28T23:27:11.477427
2021-05-19T19:05:21
2021-05-19T19:05:21
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,279
py
import ctypes import random, requests from threading import Thread, Lock, active_count threadc = 100 clear_file = False exclude_banned = True if clear_file: open('usernames.txt', 'w') lock = Lock() usernames = [] proxies = open('proxies.txt','r').read().splitlines() proxies = [{'https':'http://'+pr...
[ "noreply@github.com" ]
noreply@github.com
551c1c5228055ae169504de27b1936ec43584ef8
26ccbb3eae69580404fa86419c77ffefdab98bdf
/please_pass_the_coded_messages/try.py
fd299e6b86cf592c48eb8259cf2e1f7d16969c21
[]
no_license
rickjohnson2020/google-foobar
7dd18ac78c829af94f8b1f9ca1d1ccfd87137a19
02cac951e670f7269deaecbcd47231dc09bb6611
refs/heads/master
2023-06-17T06:20:09.835416
2021-07-20T01:53:49
2021-07-20T01:53:49
387,633,613
0
0
null
null
null
null
UTF-8
Python
false
false
1,024
py
from itertools import permutations # L = [3, 1, 4, 1] # L = [0, 1, 2] # answer = permutations(L, 4) # print(answer) # print("---------") # for tup in answer: # print(tup) # print(type(tup)) # print("------") # mapped_list = list(map(str, tup)) # print(mapped_list) # print("------") # co...
[ "eriksontokyo2020@gmail.com" ]
eriksontokyo2020@gmail.com
b78c7c28e816d3bb7fd61d6036d3e641b76ea5f7
da02e661ff44eb7937de8add086e35affa54c38a
/src/app/main.py
3abee080e697b448ef631d3065f29d064a8acda0
[ "MIT" ]
permissive
MayD524/App_Timer
837c50d4a404ae751c5f9ef2f57b1ff9cbbf8f94
aebe528f345796e44c847a61943ade20a6a8dfd9
refs/heads/main
2023-07-01T02:10:06.539487
2021-08-05T21:36:01
2021-08-05T21:36:01
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,777
py
#!/usr/bin/env python3 """ Name: App Timer Authors: Cross, Sweden Date: 8/1/2021 Description: Gets a counter for all currently running apps version: 0.1.5 """ from datetime import datetime import psutil import time import UPL import os __version__ = "0.1.4" def get_seconds(current:...
[ "noreply@github.com" ]
noreply@github.com
8e85af494d715931add18952e7aa8151c2ef454b
60e0118dff67a98c5ffd250b1c0361ea638376fd
/Ranker/model.py
b0c45a414cb503f600661e7da679c5c5a9149bb7
[]
no_license
san-ag/Smart-Reader-2
4f5768c660073df3d6e975e51353ec581079aefe
4f96469f553526091f52d9d555dcde525b74eb30
refs/heads/master
2021-01-22T21:58:36.730915
2016-05-03T23:13:53
2016-05-03T23:13:53
57,143,121
0
0
null
null
null
null
UTF-8
Python
false
false
4,185
py
from _collections import defaultdict import featureExtraction as FE from copy import deepcopy import os import sys def readFile(f): context_question_list = [] with open(f,"r") as fle: for line in fle: line = line.rstrip('\n') if line=="": ...
[ "sanchit.ag89@gmail.com" ]
sanchit.ag89@gmail.com
9e364fe7c9378298374f78d0f5533f5be9285466
ecab049c0784e61b05fd9c76320cc7b330a63a73
/Adversarial Games/connect4.py
95224c8b6814908093c5bdfca9641f0cfa79dc41
[]
no_license
Praj390/CPSC6420_Artificial_Intelligence
50ea2440c3e46b1baed3a6d0706e70b41eb61255
8257a50fab73a909a9791521bf097a7a11291e2f
refs/heads/main
2023-01-29T18:53:32.057094
2020-12-12T15:26:53
2020-12-12T15:26:53
306,147,373
0
0
null
null
null
null
UTF-8
Python
false
false
14,476
py
# connect4.py # --------- # Licensing Information: You are free to use or extend these projects for # educational purposes provided that (1) you do not distribute or publish # solutions, (2) you retain this notice, and (3) you provide clear # attribution to Clemson University and the authors. # # Authors: Pei Xu (pei...
[ "pvaskar@clemson.edu" ]
pvaskar@clemson.edu
85a2b2902a1e175b97830e261df7cd8c175b0d21
2c7bc54bca9877ca9b88e79889939c128682a21f
/lang_spider/sync_spider.py
43e582fdc78d993f006ec3d4d28c262f4af06b48
[ "MIT" ]
permissive
langgithub/LangSpider
b7c1072c1a9deb00b41fdf84740f37dd73f87130
fecd1298e606a09195c4f0fb72bc5c6b3a058900
refs/heads/master
2022-11-27T08:16:18.237538
2020-08-03T03:04:35
2020-08-03T03:04:35
271,466,128
1
1
null
null
null
null
UTF-8
Python
false
false
6,191
py
#!/usr/bin/env python3 # -*- coding:utf-8 -*- # author:yuanlang # creat_time: 2020/6/16 上午10:26 # file: sync_spider.py import time import requests import threading import urllib3 from enum import Enum from abc import abstractmethod from lang_spider.common.logger import logger from lang_spider.web_http import Request...
[ "yuanlang@bigsfintech.com" ]
yuanlang@bigsfintech.com
41488b15ef2a5ae137a594116f285f89aa73eb73
0801b08fa631ce6225104439abfe6a04aae58d97
/read_write_csv.py
1901a2ff5f95472d62695db87e68d566afd2f9a1
[]
no_license
xikunqu/read_write_file
aa4a7b9ddb1b48cd6429a6957cbb537f53fc06d9
46000bb5ba9c1138a6cfcbf6c865eae5282ec9f4
refs/heads/master
2020-03-23T23:32:37.807799
2018-07-25T03:09:00
2018-07-25T03:09:00
142,240,774
0
0
null
null
null
null
UTF-8
Python
false
false
1,043
py
''' 说明: 读取csv文件 ''' ''' csv文件格式如下: name,password 张三,000000 李四,000000 ''' import csv,os from path_file import datapath file_name=os.path.join(datapath,'test.csv') file_name2=os.path.join(datapath,'write.csv') class CSVRead_Write(object): '''CSV文件''' def __init__(self,filename): i...
[ "quxikun7825@sina.com" ]
quxikun7825@sina.com
98635d4fc5f53515fc9a84f85e75df945ff982b5
9d0d3b7de45213b285856b85c0045166524826aa
/pymorphy2/tokenizers.py
57806fb35350349c44c49a7111887a34b1e6c623
[]
no_license
albedium/pymorphy2
b9b41eacef6c3d12464a513f76e71e64ece125ee
174662e229535cba7ae06360d14d41c943175b3a
refs/heads/master
2021-01-14T11:49:19.806721
2015-05-02T21:06:20
2015-05-02T21:06:20
null
0
0
null
null
null
null
UTF-8
Python
false
false
290
py
# -*- coding: utf-8 -*- import re GROUPING_SPACE_REGEX = re.compile('([^\w_-]|[+])', re.UNICODE) def simple_word_tokenize(text, _split=GROUPING_SPACE_REGEX.split): """ Split text into tokens. Don't split by a hyphen. """ return [t for t in _split(text) if t and not t.isspace()]
[ "kmike84@gmail.com" ]
kmike84@gmail.com
1c68d7607689845ec5dc5ce08997e7145cfc3051
4f108466fc060e4af4ff8687b899adaf7eef0997
/lect1_ws/launch_foxy.py
cac2ac5f2883d7f4191fee13451dff277ecbe907
[]
no_license
ankhrobotics/ros2_course
c53409943535d62b23230ce5c27c3bceea7e4ea9
0486921ed9bb35b4ff2fc2ecd46b5efc47f0e1e4
refs/heads/master
2022-12-19T20:06:44.109137
2020-09-08T00:12:23
2020-09-08T00:12:23
276,918,522
3
1
null
null
null
null
UTF-8
Python
false
false
433
py
from launch import LaunchDescription from launch_ros.actions import Node def generate_launch_description(): return LaunchDescription([ Node( package='camera_opencv', node_executable='camera', ), Node( package='object_detection', executable='d...
[ "ibrahim.essam1995@gmail.com" ]
ibrahim.essam1995@gmail.com
dd125b8544c340e4fe96247b96ff472597474b1a
8f463cf135d9700b5bb10e34f96d6d14fa0d5285
/Action.py
7171df5881343e44370a006eddf4a42bd5bef47c
[]
no_license
bcartign/DataLab-MAIF-Google-Home
3298ebf04150db84efa1668f8f7b9d501d863b4f
9186885cfaf365c68d83d724ffbe62b5a760ab63
refs/heads/master
2022-08-04T04:22:24.970212
2020-05-29T20:48:27
2020-05-29T20:48:27
143,320,485
0
0
null
2022-06-21T21:23:19
2018-08-02T16:36:40
Python
UTF-8
Python
false
false
10,004
py
# MAIF DataLab Bruno CARTIGNY # 02.08.18 - ajout API v2 # -*- coding: utf-8 -*- import Utilitaire as util from fuzzywuzzy import fuzz from fuzzywuzzy import process DEBUG = True class ActionV2(): """ Classe pour traiter les actions des intents venant de DialogFlow v2 Quiz - nouvelle questio...
[ "bruno.cartigny@maif.fr" ]
bruno.cartigny@maif.fr
52261d342e614435f55e2603a9afba68ca74ec2a
9f760efe9f29e1a6275897491a26717066009366
/raet/test/test_resend.py
fff4d770daf03816762c6fd548e94c28b5f7eca8
[ "Apache-2.0" ]
permissive
KennethWilke/raet
ba2e79dfcbd831bff8e34d9d69f9c4490c233d03
9e0aa33e1c75c9ff4c3843094c62806a22ea98bc
refs/heads/master
2020-12-26T03:33:14.493683
2014-04-25T00:56:41
2014-04-25T00:56:41
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,454
py
# -*- coding: utf-8 -*- ''' Tests to try out stacking. Potentially ephemeral ''' # pylint: skip-file import os import time from ioflo.base.odicting import odict from ioflo.base.aiding import Timer, StoreTimer from ioflo.base import storing from ioflo.base.consoling import getConsole console = getConsole() from s...
[ "smith.samuel.m@gmail.com" ]
smith.samuel.m@gmail.com
79af21c6789df38c4df51dd869cad8e90527d590
d914b649c0e5dbbdbf24d3954d5a2f2ef7db47d3
/chapter3/ass3.1.py
1bfa05dea1a8c3ba2a1b63233f81caef08a8a804
[]
no_license
pratikpwr/Getting-Started-With-Python
68184ebb2dae3bf820be64ed75180979464a08fd
0d4e9ac9c3450d79c995f6b52bf38c5a077a28a9
refs/heads/master
2022-12-27T11:29:23.157120
2020-10-10T16:19:30
2020-10-10T16:19:30
302,937,569
0
0
null
null
null
null
UTF-8
Python
false
false
931
py
# Write a program to prompt the user for hours and rate per hour # using input to compute gross pay. Pay the hourly rate for the # hours up to 40 and 1.5 times the hourly rate for all hours # worked above 40 hours. Use 45 hours and a rate of 10.50 per hour # to test the program (the pay should be 498.75). You should us...
[ "pratiksatishpawar@gmail.com" ]
pratiksatishpawar@gmail.com
ba495bc4537e74364c62eaf2b8ca4f16db06ad9e
915c35417fdce139fe5fe753a1030e5387438f1b
/music_library/music_library/urls.py
837c5090043dc019d4b21268d8edf13f42dd5bcc
[]
no_license
matthewkeplinger/music_library
c5e4919554c635c8e63f20f904c7db23ee86a708
ac9fe0f73b8e06a2e862bb82e4ea4e85e0ae78db
refs/heads/main
2023-08-11T02:57:22.912932
2021-09-10T17:00:50
2021-09-10T17:00:50
402,534,947
0
0
null
null
null
null
UTF-8
Python
false
false
800
py
"""music_library URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/3.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...
[ "matthew.keplinger85@gmail.com" ]
matthew.keplinger85@gmail.com
8d99b8dccb727163a990e504be4846c20b9e56b0
75dc309a4367de57993535a171541362ab296fcc
/programming_languages/python/websockets/server.py
a3da7867eb5893ef48b1ea3d0d5629808c50f7de
[]
no_license
Jollyhrothgar/learning
0b8273207683ccf093e4604e298c7791c276e464
b06a91f49c0f87ace78049c3921b4332f485ebcb
refs/heads/main
2022-06-29T22:59:56.199004
2021-08-09T17:18:55
2021-08-09T17:18:55
74,937,473
4
2
null
2022-06-22T03:35:44
2016-11-28T04:32:05
Jupyter Notebook
UTF-8
Python
false
false
1,692
py
import socket import threading # AF_INET -> TCP/IP # SOCK_STREAM -> Make a stream, vs discrete file server_socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM) # Every server must live on a PORT, every process has a unique PORT. # bind chooeses the port HOSTNAME = '0.0.0.0' #socket.gethostname() PORT = 7252 ser...
[ "michael.beaumier@gmail.com" ]
michael.beaumier@gmail.com
57c88811564948b7722125c6c0d4fb97522586aa
7c964cd93343ac704ac3d9c82c977a0cd0a672e7
/listing/migrations/0001_initial.py
de9a37a83efcd5555bca0d1c47a762b2a37abb1c
[]
no_license
praekelt/jmbo-listing
be32bd43225ccf6de2c530e46c54dcac6b3c6a46
91a9e369a67cccef38d125e16272e01187c0ef1c
refs/heads/master
2020-04-19T10:31:51.345676
2017-08-30T12:20:30
2017-08-30T12:20:30
66,532,006
0
0
null
null
null
null
UTF-8
Python
false
false
5,099
py
# -*- coding: utf-8 -*- # Generated by Django 1.9.6 on 2016-08-25 07:21 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ('jmbo', '0003_auto_20160530_1247'), ...
[ "hedleyroos@gmail.com" ]
hedleyroos@gmail.com
6da80345434d5204e5432d5d0404818ffab152e5
94d84f59b76d834bfa7e4ac2faf4456eb011e950
/sample_CreateBodyGroup/BodiesGroupFactry.py
c9e652f737c27779ef5c22d6c0f646ab31d43aea
[ "MIT" ]
permissive
kantoku-code/sample_CreateBodyGroup
1aa6e02146c60814f39e3eb9a84c1c507fa9baf1
ca050f8064ed18896553ad8f726bead586bb0c1e
refs/heads/main
2023-01-30T21:57:55.899397
2020-12-04T01:12:37
2020-12-04T01:12:37
318,095,384
2
0
null
null
null
null
UTF-8
Python
false
false
8,141
py
#Fusion360API Python BodiesGroupFactry ver0.0.1 #Author-kantoku #Description-Support the creation of BodiessGroups. import adsk.core import adsk.fusion import json import neu_server import neu_modeling _app = adsk.core.Application.cast(None) # component extension methods def isRoot(self :adsk.fusion.Component) -> bo...
[ "kandennti@hotmail.com" ]
kandennti@hotmail.com
82f293330e2f00f23d6cdd1f09631911a8bccbfe
b25a7a823fa416c8ee80cab6ab95929ee6624354
/scraping/migrations/0018_remove_employee_vacancy.py
834059d8835125e14c2a7ede71facaec3a426b3b
[ "CC-BY-3.0" ]
permissive
HoloborodkoBohdan/work4sharingPy
4bdd8f982e4e77e10ddbe58591df30be966fe75d
4c443b2a4509c8b2db588156fdd0e889c06bb7be
refs/heads/master
2022-06-11T10:26:58.177191
2020-05-04T19:54:49
2020-05-04T19:54:49
256,495,621
1
0
null
2020-04-18T13:28:50
2020-04-17T12:23:07
Python
UTF-8
Python
false
false
332
py
# Generated by Django 3.0.5 on 2020-05-03 14:36 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('scraping', '0017_auto_20200503_1429'), ] operations = [ migrations.RemoveField( model_name='employee', name='vacancy', ...
[ "holoborodko.bohdan@gmail.com" ]
holoborodko.bohdan@gmail.com
61a9e62f8400d2563b30eacdf9f0a5ca39ead552
ccf0715842fb3f19e95a2746a06912a772b73297
/Rock Paper Scissor.py
b89cb76a847cc374cb9a4a67892d88ad3068019e
[]
no_license
SankalpJoshi2910/Simple-Python-Projects
f4b3df20d648f08d0406774bf7a9608c5ba4cd2f
acbcf25d1394cc21ad09d670575e282f53ee2d99
refs/heads/master
2020-06-17T13:24:24.598262
2019-07-22T21:29:13
2019-07-22T21:29:13
195,937,943
0
0
null
null
null
null
UTF-8
Python
false
false
1,832
py
#Rock Paper Scissor print("***Rock Paper Scissors***") import random import string string.letters='rps' #print(random.choice(string.letters)) wanna_play=input("\n Want to Play (y/n) : ") if wanna_play=="y": while wanna_play=="y": user_choice=input("\nRock(r) Paper(p) Scissors(s) : ") c...
[ "noreply@github.com" ]
noreply@github.com
0bec2f7061f7ba4867aa5cd9f2d6fef5c98221d6
815ebf39424d3943bb252a1cf5dec1f8b0a02d44
/2_Cube/2_1_cube.py
7a39d93bfb0948cc825e99bf9f9dc2c72cd4001f
[ "MIT" ]
permissive
akshaybabloo/Python-opengl-notes
432349609a76bc5758cf5a83428982165c87c345
555b31f4ed6e9aa29c6ce11e9b9e50ce505b85d6
refs/heads/master
2021-01-19T06:14:57.683150
2015-07-26T20:59:49
2015-07-26T20:59:49
39,411,895
1
0
null
null
null
null
UTF-8
Python
false
false
1,098
py
import pygame from pygame.locals import * from OpenGL.GL import * from OpenGL.GLU import * vertices = ( (1, -1, -1), (1, 1, -1), (-1, 1, -1), (-1, -1, -1), (1, -1, 1), (1, 1, 1), (-1, -1, 1), (-1, 1, 1) ) edges = ( (0, 1), (0, 3), (0, 4), (2, 1), (2, 3), (2, 7), (6, 3), (6, 4), (6, 7), (5, 1), (5,...
[ "akshaybabloo@gmail.com" ]
akshaybabloo@gmail.com
3b57edfe545881fccfea9a871d223f56cffa25bd
0263e511b29dde94d833bec1e5a2a95b8c29f8b0
/TIMBER/Utilities/TrigTester.py
dc4383688da44e30736433d761ac15ba56d772b0
[]
no_license
jialin-guo1/TIMBER
f4907466e39281385c153be5372d266543908a0d
448b6063234632ef0239e4cd42c15a98ab497501
refs/heads/master
2023-01-08T18:03:54.917039
2020-11-05T14:22:32
2020-11-05T14:22:32
null
0
0
null
null
null
null
UTF-8
Python
false
false
11,272
py
##################################################################################################### # Name: TrigTester.py # # Author: Lucas Corcodilos # # Date: 1/2/20...
[ "lac352@scarletmail.rutgers.edu" ]
lac352@scarletmail.rutgers.edu
7a68ffc0d7b0cd1e7c054433b73f16892e8bf5ba
4f6dcd1be6748bb2989174094f9672ae8bbc0215
/change_master
a060a5abc75475f943320428129987f2d7f77253
[]
no_license
baijiu1/python-mysql-replication
dc661bff9dfc80a9ecceb0e11bac5cc468590fa8
846340fed935e0e896bf33d7e9070b8b95b62e36
refs/heads/master
2020-09-13T04:40:48.364854
2019-11-25T03:22:28
2019-11-25T03:22:28
222,656,957
0
0
null
null
null
null
UTF-8
Python
false
false
3,315
#!/usr/bin/env python3 # -*- coding: UTF-8 -*- import pymysql import os import re replica_user = "replica" replica_pass = "xxxxx" #复制用户的密码 master_user = slave_user = 'root' master_port = slave_port = 3307 master_pass = slave_pass = 'xxxxx' #root用户的密码 check_master_ip = "cat /etc/hosts|grep 'master-0'|awk 'END{...
[ "noreply@github.com" ]
noreply@github.com
9970bdc6d139a4de2ffe6edfe933ebe791804b02
08024f21c1319d54ea3e524edf08e614eb0960bc
/old code/DoubanClient/douban_top250_demoV2.py
f8981b23e5671add044a5d515fc708ec6da8dc8e
[]
no_license
beforeuwait/webCrawl
08dd5375da93f511672d746c64ef42cf5b25449c
dc30ed7ef00f077894cfc0c2555f9dddb22c3537
refs/heads/master
2020-06-23T02:16:40.828657
2017-06-15T02:59:05
2017-06-15T02:59:05
74,671,539
0
1
null
null
null
null
UTF-8
Python
false
false
2,672
py
# -*- coding:utf8 -*- import requests from lxml import etree import pymongo class DoubanClient(): def __init__(self): object.__init__(self) self.url = 'http://movie.douban.com/top250' self.headers = { 'User-Agent': 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML,...
[ "forme.wjw@aliyun.com" ]
forme.wjw@aliyun.com
f61a6463a6f221f0e7287f612ce68dd259a00e05
1e2f874a24d2fc216bd3a2efcedba3578df7a7d1
/config/settings.py
379baccd0c7cf637db495f95b0f4fc5bd719c19a
[]
no_license
tuphiftech/channels
94466b38743fab2410b88bca3eb6275bdab3c3b0
ccc9f17e5672732c51e82a4b86091de1ef484552
refs/heads/main
2023-08-07T04:20:35.029073
2021-10-11T10:17:52
2021-10-11T10:17:52
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,673
py
""" Django settings for config project. Generated by 'django-admin startproject' using Django 3.2.8. For more information on this file, see https://docs.djangoproject.com/en/3.2/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.2/ref/settings/ """ from pathlib ...
[ "tupa@ftech.ai" ]
tupa@ftech.ai
339abc4f028a0a65d15b39f546ab2a0fa4beafd3
58e5e46b7e213e55f0f6e2a003b0a4ecfb261673
/filtered_contenttypes/fields.py
9bf1d2a7db8be61de7e3fa94d65a104ae86a4352
[ "MIT" ]
permissive
pombredanne/djorm-ext-filtered-contenttypes
3b334d89c08c74b898b8e27ae82581cbbd59013d
ad15e35d0242259182d72db8ae61455b2bc833fa
refs/heads/master
2021-01-17T22:59:42.608934
2014-10-26T09:02:37
2014-10-26T09:02:37
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,677
py
# -*- encoding: utf-8 -*- from django.contrib.contenttypes.fields import GenericForeignKey from django.db.models import Lookup from django.contrib.contenttypes.models import ContentType from django.db.models.lookups import RegisterLookupMixin from django.db.models.query import QuerySet from django.utils.itercompat imp...
[ "michal.dtz@gmail.com" ]
michal.dtz@gmail.com
331374d17a19b00b5864790dc97df9e203e9b168
a07bc83e38926141b34dec5bc54322ce52045d7a
/Chapter 18/Chapter 18.2.py
bf6e5d82f38c3a06efa0c5fdaf490b6e33807a41
[]
no_license
Exploit89/PyQt-Learning
b44856a6e404d1cd6b610119f8e18bffa3a3cc1a
80ea407a746aa6a00137edd6482c50be9223d774
refs/heads/master
2023-04-17T10:13:52.950689
2021-05-06T04:22:21
2021-05-06T04:22:21
321,938,659
0
0
null
null
null
null
UTF-8
Python
false
false
3,856
py
# Глава 18.2 Указание типа окна """ QWidget - окно по умолчанию. (свернуть, закрыть, заголовок, меню и т.д.) setWindowFlags() - метод для указания другого типа окна. или flags - как параметр в конструкторе класса QWidget. Формат метода: setWindowFlags(<Тип окна>) В параметре <Тип окна> можно указать следующие атрибут...
[ "khudajbergenov89@gmail.com" ]
khudajbergenov89@gmail.com
a943d4d0152eac60671d88862ad057df96206c55
9c63f6d39a6085674ab42d1488476d0299f39ec9
/Python/LC_Minesweeper.py
7fce4305e14c974fcd536afc78f77ee3cbc38f62
[]
no_license
vijayjag-repo/LeetCode
2237e3117e7e902f5ac5c02bfb5fbe45af7242d4
0a5f47e272f6ba31e3f0ff4d78bf6e3f4063c789
refs/heads/master
2022-11-14T17:46:10.847858
2022-11-08T10:28:30
2022-11-08T10:28:30
163,639,628
1
0
null
null
null
null
UTF-8
Python
false
false
1,589
py
class Solution(object): def updateBoard(self, board, click): """ :type board: List[List[str]] :type click: List[int] :rtype: List[List[str]] Approach: You're given click, which corresponds to a particular coordinate within the board. If this ...
[ "noreply@github.com" ]
noreply@github.com
1f48ce3aa62ece3db3e57b1134cb2ab81a563424
1c655b13e159ec064968d74297fb3e994a1fa3f7
/0x00-python_variable_annotations/main/100-main.py
3163850ec41e7e25a085e95403fb340a6a58ad05
[]
no_license
Faith-qa/alx-backend-python
886672663a8206afa47ce877331deef97802512c
1eb5ad2cbc2d2bfa4dc911901417797d160d3645
refs/heads/master
2023-08-16T07:21:55.127802
2021-09-21T09:50:49
2021-09-21T09:50:49
388,657,895
0
0
null
null
null
null
UTF-8
Python
false
false
146
py
#!/usr/bin/env python3 safe_first_element = __import__('100-safe_first_element').safe_first_element print(safe_first_element.__annotations__)
[ "atienofaith12@gmail.com" ]
atienofaith12@gmail.com
ff6af04706daacf32c78ad33e94466af43186202
61cb083d5d3c70d3ea1c66e4bae341c20c8e38b4
/accounts/migrations/0007_auto_20190827_0050.py
89703acd856462b1ddf5729e73c3da0661535cb8
[]
no_license
Fabricourt/villacare
1c60aab2f76096d1ae4b773508fe6eb437763555
983e512eace01b4dee23c98cc54fcb7fdbd90987
refs/heads/master
2022-11-28T11:15:18.530739
2019-09-05T03:30:03
2019-09-05T03:30:03
205,774,903
0
0
null
2022-11-22T03:16:03
2019-09-02T04:09:48
CSS
UTF-8
Python
false
false
1,017
py
# Generated by Django 2.1.5 on 2019-08-26 21:50 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('accounts', '0006_auto_20190827_0035'), ] operations = [ migrations.RenameField( model_name='account', old_name='tota...
[ "mfalme2030@gmail.com" ]
mfalme2030@gmail.com
da40e814e71cbb5479e3a9c51339a9ffee12cd0e
054b3f42d3e8d9bd69c830d640e607adabcfd7a6
/baekjoon/토마토.py
3cebbb1cb3705dfc84c3c629c98fea427eed931b
[]
no_license
IKKIM00/algorithms
25a9a7d8faac3e37fb47b3c244d6ff3abf9c323d
421e8059a557444332e3ce2930258e70c4f69f8f
refs/heads/master
2022-10-22T11:18:29.672395
2022-10-18T15:19:14
2022-10-18T15:19:14
233,968,226
1
0
null
null
null
null
UTF-8
Python
false
false
1,113
py
import sys from collections import deque input = sys.stdin.readline m, n, h = map(int, input().split()) arr = [] for i in range(h): temp = [] for j in range(n): temp.append(list(map(int, input().split()))) arr.append(temp) dx = [-1, 1, 0, 0, 0, 0] dy = [0, 0, -1, 1, 0, 0] dh = [0, 0, 0, 0, 1, -1] ...
[ "kimjennifer0429@gmail.com" ]
kimjennifer0429@gmail.com
478a778eb1d1f3ea1eecbf94d8a4f9c63685cdde
75f0a59e3063ed6da7d76a0ca11a05702ad4b119
/arrage_vaildstop_dropout.py
d97cc475abd1daf35c0d429c59d6c03c6eb28a88
[]
no_license
paulpaul91/deeplearing
8ff676fbeb359fbfd8120bca2611d2907a713a96
452906e251a0d1cf39e9cfa4377629d963b86fbd
refs/heads/master
2021-07-21T20:20:39.936977
2017-10-31T15:28:00
2017-10-31T15:28:00
109,008,903
0
0
null
null
null
null
UTF-8
Python
false
false
11,007
py
#!/usr/bin/python # -*- coding: utf-8 -*- import os import shutil def reorg_cifar10_data(data_dir, label_file, train_dir, test_dir, input_dir, valid_ratio): # 读取训练数据标签。 with open(os.path.join(data_dir, label_file), 'r') as f: # 跳过文件头行(栏名称)。 lines = f.readlines()[1:] tokens = [l.rstrip()...
[ "453790411@qq.com" ]
453790411@qq.com
5170e127180a5729392f1e8ca6124c8b0411eb14
810aff57dc2d88785594545e7d93b30ded8df427
/Lab_1 (Bike Parking)/Parking.py
cce44d1ae8dc47f847a85d060a08007b3ea7f429
[]
no_license
NicolasB2/Python_Workshops
68ca212c5eea1a0c5f579621fe247de702057297
c7fa3cd75c388baad3c06fc3ea66cd0a6ee90c15
refs/heads/master
2022-04-18T11:11:03.041645
2020-04-10T06:20:07
2020-04-10T06:20:07
177,817,646
0
0
null
null
null
null
UTF-8
Python
false
false
483
py
from Employee import * class Parking: def __init__(self, name, bikes, latitude, longitude): self.name = name self.bikes = bikes self.latitude = latitude self.longitude = longitude self.employee = None def num_bikes(self): return self.bikes def add_bike(sel...
[ "nikobiober@gmail.com" ]
nikobiober@gmail.com
3659bd20dff05e3843f0e513a207c6e3ef09f4c6
e26a5d55a219da7a5fb2e691a7fe2adb1683543d
/tensortrade/features/feature_pipeline.py
e158740f1584f1ea90839b7c4e01681617605b4d
[ "Apache-2.0" ]
permissive
MildlyOffensive/tensortrade
e02dbcbec07597292de91eaa375b8af9ae305194
9fe223c1ff0d58428e9e88d4d287570e24ee1ae4
refs/heads/master
2022-04-06T21:48:35.380231
2019-10-24T18:17:02
2019-10-24T18:17:02
282,754,798
1
1
Apache-2.0
2020-07-27T00:05:44
2020-07-27T00:05:43
null
UTF-8
Python
false
false
3,842
py
# Copyright 2019 The TensorTrade Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
[ "adamjking3@gmail.com" ]
adamjking3@gmail.com
d3d370c1942cf81a6f6d1906d861274ed7ed42c9
ff7a356f5331fbeb6f7e3aca8d404ca3ced2e1dc
/projectgenerator/utils/qgis_utils.py
142739c3e9d8db98daa99e8da297054105365bd0
[]
no_license
m-kuhn/projectgenerator
9552d4bbad9559f53f7780d69987af1939403a0d
cf8b6ee97f32f6976945ded538e061b19254af71
refs/heads/master
2020-03-14T01:52:16.258279
2018-04-28T07:28:03
2018-04-28T07:28:03
131,386,557
0
0
null
2018-04-28T07:47:23
2018-04-28T07:47:23
null
UTF-8
Python
false
false
3,816
py
# -*- coding: utf-8 -*- """ /*************************************************************************** begin : 05/03/18 git sha : :%H$ copyright : (C) 2018 by Germán Carrillo (BSF-Swissphoto) email : gcarrillo@linuxmail.org ***********...
[ "gcarrillo@linuxmail.org" ]
gcarrillo@linuxmail.org
c4f1c7d70a0eba1bc21e41951c7785b942049f0d
1903a8ae27fa93da2685571404bb555d02887d24
/site_functions/migrations/0030_article_revision.py
8f00fe82e07d1f84e95153e59821c3e08450f026
[]
no_license
FACTOSolution/sippan3
38fb8ad0e855a1ebe9a8786b4ba3d222fbff7a6d
030f0a572d0bccb25bae146c57ac2d9784051f2d
refs/heads/master
2021-08-28T14:46:50.768928
2017-12-12T13:37:20
2017-12-12T13:37:20
103,276,180
0
2
null
null
null
null
UTF-8
Python
false
false
473
py
# -*- coding: utf-8 -*- # Generated by Django 1.11 on 2017-09-21 00:16 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('site_functions', '0029_auto_20170919_2335'), ] operations = [ migrations.AddF...
[ "vinicius.pablo.18@gmail.com" ]
vinicius.pablo.18@gmail.com
6bc4712a408931d1d70de7a57ddbeb26fe3f3711
9090891381288020394023eb413db57c643a3037
/문제39.py
6a53359de133f28615828cefaf02da12b3ff1d64
[]
no_license
won-hyw/CodingTest
896e3ef9ba9194a594db53b081de3f855ee8fb65
3b0508d41b11bce5c5015720fde6b5296a100f3f
refs/heads/master
2023-07-25T01:34:52.802868
2021-09-05T16:40:27
2021-09-05T16:40:27
365,872,501
0
0
null
null
null
null
UTF-8
Python
false
false
473
py
#다음과 같이 import를 사용할 수 있습니다. #import math def solution(height): #여기에 코드를 작성해주세요. count = 0 return count #아래는 테스트케이스 출력을 해보기 위한 코드입니다. height = [[3, 6, 2, 8], [7, 3, 4, 2], [8, 6, 7, 3], [5, 3, 2, 9]] ret = solution(height) #[실행] 버튼을 누르면 출력 값을 볼 수 있습니다. print("solution 함수의 반환 값은", ret, "입니다.") ...
[ "noreply@github.com" ]
noreply@github.com
7bce10547e86cb208ba7dd46c6b16e54c7b6528f
5301f6a0c1a84690fe43e8a7506e5a75b93f68e5
/examples/model_comparision/iris_test.py
56e1d2f376b8fa1096caa678ce06ed351fcd6ecb
[]
no_license
gungoren/ml_lecture_notes
7b08c81fa113680649ddb02b2aedffc6422bfbac
24944fb8e5ccbbb741df9cf4512fea1a0a203c98
refs/heads/master
2020-06-28T21:51:13.668536
2020-02-12T16:01:01
2020-02-12T16:01:01
200,351,395
0
0
null
null
null
null
UTF-8
Python
false
false
2,501
py
# # # Mehmet Güngören (mehmetgungoren@lyrebirdstudio.net) # # import sys import pandas as pd import matplotlib.pyplot as pyplot from pandas.plotting import scatter_matrix from sklearn import datasets from sklearn import model_selection from sklearn.linear_model import LogisticRegression from sklearn.discriminant_analys...
[ "mehmetgungoren@lyrebirdstudio.net" ]
mehmetgungoren@lyrebirdstudio.net
f4342daeb939ca4561554ef1dbb83de6b0ace017
f6c6085c34ac6e1b494ff039cd0173b47cc9c6c4
/byceps/services/user_badge/transfer/models.py
42e439d39bb717540a0ec59220198242e23a10c4
[ "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
FakoorCo/byceps
971042f598a12c00465b0c3a714f4ac7dbdc9d5b
11290b154b83f5ac3a9530fb6cd752b3d7a3989b
refs/heads/main
2023-01-23T18:53:59.930267
2020-11-30T01:09:20
2020-11-30T01:09:50
null
0
0
null
null
null
null
UTF-8
Python
false
false
822
py
""" byceps.services.user_badge.transfer.models ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :Copyright: 2006-2020 Jochen Kupperschmidt :License: Revised BSD (see `LICENSE` file for details) """ from dataclasses import dataclass from datetime import datetime from typing import NewType from uuid import UUID from ....typ...
[ "homework@nwsnet.de" ]
homework@nwsnet.de
8b3a9f8d41c95596a2d0155ffd77742d0649d2e1
21d7a6d0566b07dc4103a97be1c91e05e6784128
/spotter/migrations/0001_initial.py
b883325ca7ffe8723abf4440c2e66a707fc1ef5d
[]
no_license
simonw/squirrelspotter
60c28dfcf3851676a37457db6e28704f2dfdcdf2
4d56e3843b6de9caf23f180b0cee19f4cd0a6b73
refs/heads/master
2021-03-19T18:09:02.960853
2012-09-25T14:56:44
2012-09-25T14:56:44
5,900,675
2
0
null
null
null
null
UTF-8
Python
false
false
3,879
py
# -*- coding: utf-8 -*- import datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Adding model 'Spotter' db.create_table('spotter_spotter', ( ('id', self.gf('django.db.models.f...
[ "simon@lanyrd.com" ]
simon@lanyrd.com
5138a5080041c314e95e4396819d98a985dc844b
c1e032d75acd66b66780d7a0fb3268356e10a12b
/remote_access/test_cisco_ios_cli_telnet.py
f120e58f8e241d76a7d026f5acba74ace56d18a0
[]
no_license
stevelorenz/programming-playground
67943f4c6755f91f2e66db314fbfc1255acab8c3
967d5dca9fa77bb25e62c938a20306bbeeef46f6
refs/heads/master
2023-08-17T02:36:26.207405
2023-08-15T09:08:52
2023-08-15T09:08:52
248,804,146
4
0
null
null
null
null
UTF-8
Python
false
false
1,591
py
#!python3 import telnetlib import unittest import getpass import time # IMPORTANT: This server is only accessible inside the Cisco internal network !!! SERVER_IP = "10.74.56.76" SERVER_PORT = 3016 LOGIN_IS_REQUIRED = True DEFAULT_USER = "admin" class TestSDWANAsyncModule(unittest.TestCase): """Test SDWAN Async ...
[ "zuoxiang@cisco.com" ]
zuoxiang@cisco.com
783d46725c6644b0cd76135fb1f7bd6a64861b49
a5a4df2e862f764ecb05fbe0ed0ee614c81db3fb
/migrations/versions/8217ceff2625_.py
e1493e29d8fa04e7b1035fb141296d71288b1baf
[]
no_license
NotYourTypicalDeveloper/project-04
db05bd11130fa50588293c997790df621b8e73eb
56590027cae02e8861a40d142f16fe2f8857f256
refs/heads/master
2023-04-29T18:32:31.636950
2019-04-16T18:27:52
2019-04-16T18:27:52
null
0
0
null
null
null
null
UTF-8
Python
false
false
648
py
"""empty message Revision ID: 8217ceff2625 Revises: df75d208f739 Create Date: 2018-11-14 15:08:56.853692 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = '8217ceff2625' down_revision = 'df75d208f739' branch_labels = None depends_on = None def upgrade(): # ...
[ "carolineho1983@yahoo.fr" ]
carolineho1983@yahoo.fr
e9d07ff6850c1730288a14bf9cc0497fec815047
95b4f677ebc82ccc31dffbef38991056698beee5
/venv/bin/easy_install
e4fdcbfd5052f28530a877c4ea73755205bb0a95
[]
no_license
omeralierdemir/machinelearning
b897d0597a294082ab67ad758040d6c75bc0fd10
33a1ea67f678d6aed1bb05fda2f96f1098958cbb
refs/heads/master
2020-05-22T06:25:50.314272
2019-07-19T10:30:06
2019-07-19T10:30:06
186,252,814
0
1
null
null
null
null
UTF-8
Python
false
false
449
#!/home/efl4tun/PycharmProjects/MachineLearning/venv/bin/python # EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==39.1.0','console_scripts','easy_install' __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\.pyw?|\.e...
[ "o.erdemir1997@gmail.com" ]
o.erdemir1997@gmail.com
62c981c00314261d8871eb133fca9bbfe75f467b
1700908d2f824207856df939b260ad78ffb8e8cf
/BABYAPP/app.py
f8ea55f477f50e245f24fd4ddab765bf4fec9d55
[ "MIT" ]
permissive
alekslovesdata/Babbies
319c52a7d660045ed9598f23957815052b0cc2f7
3774cda279da365f9a26bfdabd3b1250e02c49a2
refs/heads/master
2020-09-14T05:52:41.577750
2019-11-21T02:27:51
2019-11-21T02:27:51
223,039,111
0
0
MIT
2019-11-20T22:27:58
2019-11-20T22:27:57
null
UTF-8
Python
false
false
1,549
py
from decouple import config from flask import Flask, render_template, request from .models import Name, DB def create_app(): app = Flask (__name__) #config to database app.config['SQLALCHEMY_DATABASE_URI'] = "sqlite:///db.sqlite3" app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///baby_names_database...
[ "alekslovesdata@users.noreply.github.com" ]
alekslovesdata@users.noreply.github.com
348940e392a4bfa8cbd62fb6a434869f9e9f56d9
feba0822906bc306aacd1ba07254f9d85f7195db
/week 5/MoneyChange.py
391778b6abe4d8c365e88c4d8f9df1e2c14a983f
[]
no_license
Pratyaksh7/Algorithmic-Toolbox
0d535d652a5619c8d1c1e8b602ab8b1cf4e12eb7
2153a37426a510e9232d3b3cdd01a2d624eee83f
refs/heads/master
2022-12-03T21:57:53.699507
2020-08-24T07:49:59
2020-08-24T07:49:59
281,179,714
0
0
null
null
null
null
UTF-8
Python
false
false
361
py
# using python3 def minCoins(n, Coins): maxCoin = max(Coins) dic = {1: 1, 2: 2, 3: 1, 4: 1} if n > 4: if n % maxCoin == 0: print(n // 4) elif n % maxCoin == 1 or n % maxCoin == 2 or n % maxCoin == 3: print((n // 4) + 1) else: print(dic[n]) n = int(input(...
[ "pratyakshgupta7@gmail.com" ]
pratyakshgupta7@gmail.com
73b616df8769a6f24bacabc7a8bfc4dbcc75a7bb
def1b22a757d7bf046d2c1a2d3548ae58bdd677a
/helpers/validate.py
038e4c5b6f6af6f4663e1c468bd29d9562a0c9f6
[]
no_license
GabrielKuka/WallStreetBets-Analyser
ff5faf5cd07407de492a9baffa2e9daa6241fb35
23e4fbae7cee6c5b84f31ac07739824346dd0063
refs/heads/main
2023-08-24T03:01:33.794159
2021-10-10T17:05:10
2021-10-10T17:05:10
null
0
0
null
null
null
null
UTF-8
Python
false
false
180
py
import re class Validate(object): @staticmethod def is_ticker_valid(ticker): pattern = re.compile("^\$[a-zA-Z]{1,5}$") return bool(pattern.match(ticker))
[ "gabrie.kuka@gmail.com" ]
gabrie.kuka@gmail.com
6c32e35bd711b0391725f3959ab4d3aa654ee111
7117862ecbccf811b8c9f476d328c0c91db15b48
/Config/local_settings.py
6e9e9080547256775543884280c4888d7dfb2d77
[]
no_license
turamant/Profile
330e968ffe797fd7759269a3c804b82388a5838e
a7c32f22b11e93f1264aaa9d7b72aaf497acff65
refs/heads/main
2023-04-08T15:50:40.052101
2021-04-26T19:50:55
2021-04-26T19:50:55
361,712,435
0
0
null
null
null
null
UTF-8
Python
false
false
251
py
# SECURITY WARNING: keep the secret key used in production secret! SECRET_KEY = 'django-insecure-gy^s)i8g=3i46ypvnrk-j_x+@s4^y&1*fd%$-2$dnc=#4(vxek' # SECURITY WARNING: don't run with debug turned on in production! DEBUG = True ALLOWED_HOSTS = ['*']
[ "tur1amant@gmail.com" ]
tur1amant@gmail.com
e9366eed7731ce07553a55dad6d58631c46ffb50
2e6da5e88442e8f3633d14edead260cb6c7384df
/src/entities.py
a142a993260c7331fa02167121947a6d80eeca2b
[]
no_license
andrea-lascola/tornado-chat
3a6b34c99eb250574292a512d3d763f333874400
e222571de95ac1a6e10d6d1156451be3c2264d32
refs/heads/master
2021-09-16T20:09:05.795743
2018-06-24T11:15:54
2018-06-24T11:15:54
112,529,084
2
0
null
null
null
null
UTF-8
Python
false
false
1,967
py
# -*- coding: utf-8 -*- from __future__ import absolute_import, print_function, division, unicode_literals import datetime from utils import ellipsize class Message(object): message = None date = None user = None channel = None def __init__(self, message, date, user, channel): self.date...
[ "andrea.lascola@deustechnology.com" ]
andrea.lascola@deustechnology.com
dfbc21cfbb02215158bd703567250ba1539cd548
8c339f9b8c9c3edbbc668bf69e773ece2f27fc84
/PowerfulDivision.py
f2b09d0c6822d498e7c40921b1ec13623096c6c3
[]
no_license
saptarsi96/Codes
8828b1da724a6daf2905ef720c5d7a0c8db65ab7
52fd11265eec9de9ccbff88a68fa7d33950170db
refs/heads/master
2021-06-17T02:30:56.081683
2021-03-09T03:23:30
2021-03-09T03:23:30
170,972,612
1
0
null
null
null
null
UTF-8
Python
false
false
262
py
def division_value(): a, b = list(map(int, input().split())) for i in range(a, b + 1): if i % a == 0 and b % i == 0: print(i) return print(-1) t = int(input()) for _ in range(t): division_value()
[ "noreply@github.com" ]
noreply@github.com
ec22a156d3c9287499019a6a37d7ad52401e6b2f
cb4902406f4271394c352bfc49ac4a0e8931d5dc
/backend/home/migrations/0002_load_initial_data.py
3c22b9d08248db69bd7856d4286b1ed72cc5dd2c
[]
no_license
crowdbotics-apps/yourtb-21307
492e2eec85e8a562d71f67a7c99ed64ba915ce5e
ce93c74f6bb21bceca6abdca6bb4c4e46bd5e7cb
refs/heads/master
2022-12-29T23:02:15.003469
2020-10-09T19:27:13
2020-10-09T19:27:13
302,735,020
0
0
null
null
null
null
UTF-8
Python
false
false
1,278
py
from django.db import migrations def create_customtext(apps, schema_editor): CustomText = apps.get_model("home", "CustomText") customtext_title = "Yourtb" CustomText.objects.create(title=customtext_title) def create_homepage(apps, schema_editor): HomePage = apps.get_model("home", "HomePage") ho...
[ "team@crowdbotics.com" ]
team@crowdbotics.com
0fdd53ce109190ebf3a54c0d600c862e05a3d87f
dce81c23995aa1740dc09f83f5b820798a3b63b2
/plugin/vim_tools.py
6d17e85c2ca58930b0f2e6d80fb2550ccbe3cabb
[]
no_license
Arslan-Z/sdf2urdf
0bb37391e1dcdfeb678258cc35c6f3ad353b3778
2dd3ea50cb5bfbcda0413ca8b16b2cf7cef8e155
refs/heads/master
2022-05-27T21:24:45.391187
2018-01-18T15:08:51
2018-01-18T15:08:51
null
0
0
null
null
null
null
UTF-8
Python
false
false
879
py
import vim def get_selected_text(): buf = vim.current.buffer (lnum1, col1) = buf.mark('<') (lnum2, col2) = buf.mark('>') lines = vim.eval('getline({}, {})'.format(lnum1, lnum2)) lines[0] = lines[0][col1:] lines[-1] = lines[-1][:col2] return "\n".join(lines) def replace_selected_text(ne...
[ "gknsolak@gmail.com" ]
gknsolak@gmail.com
c197169b1fe0db36ee4806ee5c240aecbae681a7
a4e2a2cf04f6106422b79cbdb1be09f6713c839d
/wpsblog/wpsblog/urls/posts.py
6257f8cc63808b44272b8c8f50bc0d5e8e5272fa
[]
no_license
samkugji/wps_blog
69ead73517c08f3241c013b861dca85196038939
1cb79d11ed0e7af8596b4a2040ea1799a1fe5786
refs/heads/develop
2020-04-16T02:24:29.586770
2016-09-05T17:03:38
2016-09-05T17:03:38
59,463,604
2
0
null
2016-09-05T17:03:39
2016-05-23T08:01:22
Python
UTF-8
Python
false
false
940
py
from django.conf.urls import url from wpsblog.views.posts import * urlpatterns = [ url(r'^$', PostListView.as_view(), name="list"), url(r'^new/$', new, name="new"), url(r'^create/$', PostCreateView.as_view(), name="create"), url(r'^(?P<pk>\d+)/$', PostDetailView.as_view(), name="detail"), url(r'^...
[ "samkugji@gmail.com" ]
samkugji@gmail.com
fec67afa75427002e7412504017c1e42f1bf4f13
33272e66f0f5e9c41be41987344044ba58510645
/sources/lnr.py
5a473484f9d695ccd0c4292accf05717a5f891f0
[ "MIT" ]
permissive
lunakoly/TuringMachineConstructor
11f8cb94879823cb2afdd520ae22a41fc76997cd
66849214b41adc806d27db5257684772c5ec19e8
refs/heads/master
2021-01-04T19:26:02.187546
2020-02-15T22:37:50
2020-02-15T22:37:50
240,728,267
1
0
null
null
null
null
UTF-8
Python
false
false
1,812
py
# Copyright (C) 2020 luna_koly # # This file defines an LNRMachine - the one # that describes it's movement via 'l', 'n', and 'r' # step symbols (in a particular TM simulator). # # LNRMachine contains several commonly used # complex transition building methods within the # LNRState. from turing import State ANY = N...
[ "lunyak.kolya@mail.ru" ]
lunyak.kolya@mail.ru
0773a29be0bc12b8cc66121f44e9d509da72efd0
8d3bf0abf41dfb59845c0a4ed30bd66793874fd6
/app/recipes/migrations/0001_initial.py
6a3216adc22c3b554d5febf64819746e68eb4f7d
[]
no_license
pranavpsv/recipeApp
7464603d8928bcc6acd008c9d162d115c9ae3578
5e841e369cec21a77bed9db42243423204acd064
refs/heads/main
2023-07-15T23:45:08.396138
2021-08-13T22:29:51
2021-08-13T22:29:51
null
0
0
null
null
null
null
UTF-8
Python
false
false
979
py
# Generated by Django 3.2.3 on 2021-07-01 21:14 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Cuisine', fields=[ ('cuisin...
[ "denis.o.shapiro@gmail.com" ]
denis.o.shapiro@gmail.com
85b677073b978e1a1e96f9476bddd23f1161e61b
9b5e5ad3100166d3c426e90471bcadb6dd47d0e7
/scripts/make_img_with_depth.py
d97d5c34c78c6a538847541e2edda97461e4027d
[ "MIT" ]
permissive
kuper7/image2reverb
299875fd8268a43e34ce6947d0ffb9e4f0cda642
f855f49d50e7e0d7830e114cc46d54a711e4d5f2
refs/heads/main
2023-08-25T17:56:05.539040
2021-10-12T17:28:39
2021-10-12T17:28:39
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,774
py
import sys sys.path.append("../") import os import argparse import numpy import torch import matplotlib from matplotlib import pyplot from model.data_loader import CreateDataLoader from model.networks import Encoder def main(): args = argparse.ArgumentParser().parse_args() args.resize_or_crop = "scale_width_a...
[ "nikhilsinghmus@gmail.com" ]
nikhilsinghmus@gmail.com
07f54ec71547a3e51709d7e739fbfba36e1b4b55
eee858d6c86af3e3fbe7afbc3345b9496b1865b1
/python-cookbook/postgresql/create_table.py
0504c1bf8dce66909982edfc1f1938ffd4cc21a3
[]
no_license
navbharti/java
4dc18a05632620ee3fdd7c46b14759edad9cce1b
29cba0f6747d13637affdddef2518f58c99a54a1
refs/heads/master
2022-10-23T22:25:46.882036
2022-10-09T08:42:21
2022-10-09T08:42:21
23,495,598
0
0
null
null
null
null
UTF-8
Python
false
false
851
py
''' Created on Oct 18, 2014 @author: rajni ''' import psycopg2 conn = psycopg2.connect(database="navbharti", user="postgres", password="postgresql123#", host="127.0.0.1", port="5432") print "Opened database successfully" #source: http://www.tutorialspoint.com/postgresql/postgresql_python.htm #Create a Table '''Follo...
[ "nav.bharti@gmail.com" ]
nav.bharti@gmail.com
1910e394b1fd159b47966b7e55ceba4720f58a59
9b0d9576fa8a10fad740ef6c3b15816b11155dfe
/MongoUtil.py
18df0a83c7ba2720362683ff70a79b26a35215fb
[]
no_license
arttay/20Percent
4289b10f467dcd3372827ec6e409f42e3d4cd8ea
0b0d4602104715bcd252edd91cff94c6f55d2355
refs/heads/master
2023-02-04T02:11:57.461508
2020-12-20T01:56:32
2020-12-20T01:56:32
322,974,269
0
0
null
null
null
null
UTF-8
Python
false
false
156
py
from pymongo import MongoClient class MongoUtility: def connect(self): client = MongoClient('localhost', 27017) db = client.TT collection = db.sales
[ "49754518@34363bd01f04.hq.target.com" ]
49754518@34363bd01f04.hq.target.com
69779ecd0bdff0a191719ca497311778dd85797f
0bee0f12d7ed1c270119b585ac7346700acd1db4
/laser_width/first_position/10_mm/pyroot_analyse.py
307ca581fc96de4447d28890e82d3b8bd3952a22
[ "MIT" ]
permissive
beckstev/purdue_laser_box
28b66da972d8510b4e2a31f9e9c2fe93e2673b59
aa4fbf2f3cf6a43fea0a8939d2b22005ffae9bc0
refs/heads/master
2020-03-21T18:27:20.461511
2019-01-23T21:57:01
2019-01-23T21:57:01
138,892,560
0
0
null
null
null
null
UTF-8
Python
false
false
9,499
py
import ROOT as root import numpy as np import time import uncertainties.unumpy as unp from uncertainties import ufloat from uncertainties.unumpy import nominal_values as noms from uncertainties.unumpy import std_devs as stds from uncertainties import correlated_values from array import array import os ##############...
[ "beckstev@web.de" ]
beckstev@web.de
2251bd0596fef0cc59024f46c703c269498e42fb
6efea9a9ad59b35d9624cd96778b7b7fdc9b4f24
/uploads/core/migrations/0001_initial.py
aea8ef2e2c40f015a6b3d580e991e630843d8218
[]
no_license
dtoropineiro/shapefile-postgis-integration
3a6baeb2a2091c93fb4605cd6f85c193542dff57
cd478fef38a4081da3ada58ec6059fb9fd63f71e
refs/heads/master
2023-08-15T13:55:12.454210
2020-05-06T01:37:44
2020-05-06T01:37:44
260,699,424
0
0
null
2021-09-22T18:57:50
2020-05-02T14:02:52
Python
UTF-8
Python
false
false
710
py
# -*- coding: utf-8 -*- # Generated by Django 1.9.8 on 2016-08-01 08:14 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Shapefi...
[ "dtoropineiro@gmail.com" ]
dtoropineiro@gmail.com
b0b02be87b301c41e6e994a3a54566a7e9bb3ff8
eeba2884fc21f32ca87006cbda71d131219026f4
/mean.py
b77003104454eb1d18c5f42808e30c86e47b7b17
[]
no_license
lagerhardt/means
0322fd5d372e4a07b41917524864a85c6abeb41c
46d8440c81943e66f04183d6c8b144f2d52c136e
refs/heads/master
2021-01-10T08:02:58.518055
2015-06-05T22:25:00
2015-06-05T22:25:00
36,957,911
0
0
null
null
null
null
UTF-8
Python
false
false
601
py
def mean(num_list): for il in num_list: if isinstance(il,complex): return NotImplemented try: return sum(num_list)/len(num_list) except ZeroDivisionError as detail : msg = "The algebraic mean of an empty list is undefined." msg += "Please provide a list of numbers...
[ "lagerhardt@gmail.com" ]
lagerhardt@gmail.com
77c0c93c4a90b01889249f9cfed034a98cab8afa
7047c109b3ca58cf8f208a34f8f5ca9f16ddbe62
/tutor_tasks/most_freq_word.py
2f890a952538cf2172c8297e7b14f32d71ef9829
[]
no_license
VladyslavPodrazhanskyi/First_repl
07080e0a2f9d9247ab788c04221c3a1055217b94
ebc77d45c36e4b1777493b0bd1cfceda6e3cfd5a
refs/heads/master
2020-12-03T19:32:41.437390
2020-02-29T18:03:19
2020-02-29T18:03:19
231,454,264
0
0
null
null
null
null
UTF-8
Python
false
false
1,009
py
# Дан текст: в первой строке задано число строк, далее идут сами строки. # Выведите слово, которое в этом тексте встречается чаще всего. # Если таких слов несколько, выведите то, которое меньше в лексикографическом порядке # # First solution # words = [] # freq_dict = dict() # for _ in range(int(input())): # curre...
[ "49364023+VladyslavPodrazhanskyi@users.noreply.github.com" ]
49364023+VladyslavPodrazhanskyi@users.noreply.github.com
28d7fb669130604a91782022243584c673fb5003
cd75c7984ee18ffc073de11aab6bac62db836315
/rest_api/api/migrations/0001_initial.py
ea4439bc0524191f2034114de6c2eba5acf16e9a
[]
no_license
tej1996nitrr/UsersDjango
7b118dd9e5bcc0a7c39bbc47b3a13f514a3d3099
c545db14769269d845a1691f4d8f5a5e07566754
refs/heads/master
2022-12-15T02:51:45.109251
2020-04-01T13:24:25
2020-04-01T13:24:25
249,545,659
0
0
null
2022-12-08T03:57:42
2020-03-23T21:15:16
Python
UTF-8
Python
false
false
1,195
py
# Generated by Django 3.0.4 on 2020-03-27 08:57 from django.db import migrations, models import django.utils.timezone class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='CategoryModel', fields=[ ...
[ "tejaskanikdaley1996@gmail.com" ]
tejaskanikdaley1996@gmail.com
6516bc4be2215238fd85f80bb4344aa48e19a481
71f8b0625f9f23dafdaa987f4a059942e91004ab
/model_evaluation/production_consumption.py
b4999f17a18cccbf489e77de0d5c858cda51517c
[]
no_license
maureencarey/paradigm
f6458ed5974f00f9654686d179b273456535be2d
cb5f234a819788ec9b827b89beeea3e00aafd458
refs/heads/master
2023-07-20T21:35:44.650647
2022-02-03T15:09:33
2022-02-03T15:09:33
160,858,734
2
3
null
2023-07-20T10:43:27
2018-12-07T18:04:06
HTML
UTF-8
Python
false
false
3,609
py
import cobra import os import pandas as pd import glob from cobra.core import Gene, Metabolite, Reaction from datetime import datetime import sys sys.path.append(os.path.abspath("/home/mac9jc/paradigm/")) import helper_functions as hf day = datetime.now().strftime('%d_%m_%Y') ##### get what mets are produced or consu...
[ "maureen.carey@mac.com" ]
maureen.carey@mac.com
a72041422365410638048952660ce910236126dd
8b6c27ff9e849be746157860f35b64a37d62b9c0
/Basic in Python/Module/TypeOfMethod.py
959812a513ffb667994821ab5b4a402fd1fef060
[]
no_license
gnamankumar/python
842522aa6b27c39abdd17d0debaad1e9c4ae841c
9f0e74376ba941fd0914af53500403c229a6125e
refs/heads/master
2022-12-20T02:06:50.854359
2020-10-19T18:13:39
2020-10-19T18:13:39
270,379,874
0
0
null
null
null
null
UTF-8
Python
false
false
320
py
class student: school = 'Naman' def __init__(self,m1,m2,m3): self.m1=m1 self.m2=m2 self.m3=m3 def avg(self): return(self.m1+self.m2+self.m3)/3 s1=student(25,25,65) s2=student(2,2,2) print(s1.avg()) print(s2.avg())
[ "noreply@github.com" ]
noreply@github.com
1e762209b0566e78340a436280d555aaef5cc908
1809b3acd87fb2e62b5dcd0db1d30e555264f61f
/Movies/domainmodel/watchlist.py
9eea9008b39038fe2607d199d1060dec2d957dd3
[]
no_license
jailukanna/235-A3
ff5421797411fd4536f8f4f5bac03a723fe88a4d
d8e2ab9920228be776f7b29e10a74bb5f24ed332
refs/heads/master
2023-01-04T14:49:16.132991
2020-10-29T22:26:51
2020-10-29T22:26:51
null
0
0
null
null
null
null
UTF-8
Python
false
false
62
py
from domainmodel.movie import Movie class WatchList: pass
[ "ob124.oliver@gmail.com" ]
ob124.oliver@gmail.com
5d24d704be600c3f0154a1c3d3ba2b29fde962ff
07cba98c56613f65943c5a9322f17ec7961f8d38
/squat_counter/__v_1/multi_threading/worker.py
eb91f164255a33da894c22c5c3f5451699187689
[]
no_license
hothienlac/squat-counter
3c25ac9db1c5e106af724144cae24f4438531bb5
bbc1585873a82fb516150ebaddee4bb06f510a1c
refs/heads/main
2023-03-21T01:26:45.036505
2021-03-16T13:34:33
2021-03-16T13:34:33
null
0
0
null
null
null
null
UTF-8
Python
false
false
378
py
import threading import queue class Worker(threading.Thread): def __init__(self, jobs, *args, **kwargs): self.jobs = jobs super().__init__(*args, **kwargs) def run(self): while True: try: work = self.jobs.get(timeout=3) except queue.Empty...
[ "37287300+hothienlac@users.noreply.github.com" ]
37287300+hothienlac@users.noreply.github.com
a42257176f81c60904748622b2a1a667aa841581
4c3abc66b5a0aba7832f59ef5d26b8bb1346998d
/blog/models.py
1e84410b2e3f4bfd8c5c5907220626e85e6a4685
[]
no_license
kasattejaswi/djangogirls
a86095b08ba426c54ba251efbd55f67add35689b
9f26cb5d0ecaa39e2159022488e03d8c63890338
refs/heads/master
2020-08-26T18:49:56.219518
2019-10-23T16:55:57
2019-10-23T16:55:57
217,109,077
0
0
null
null
null
null
UTF-8
Python
false
false
548
py
from django.db import models from django.conf import settings from django.utils import timezone class Post(models.Model): author = models.ForeignKey(settings.AUTH_USER_MODEL, on_delete=models.CASCADE) title = models.CharField(max_length=200) text = models.TextField() created_date = models.DateTimeFiel...
[ "kasattejasvi@gmail.com" ]
kasattejasvi@gmail.com
4e367ddddbbfbb29f2db546d7c4f82dd7d02fecd
54f0473c1f689fb49486077ad19af658824f0e2d
/test/myScripts/crab/grid_170524/grid/crab_ZJ_ptsqmin4_tune27/inputs/PSetDump.py
dfa06ad7591c138608147b455639accca9607559
[]
no_license
kjpena/VptGenAnalysis
b80ee60d9e82950deafc009674749a287c327741
09df2f50347573eda2f0f14a92bae0760114f6c3
refs/heads/master
2021-01-20T00:28:28.212463
2017-08-17T15:27:21
2017-08-17T15:27:21
83,793,800
0
0
null
2017-04-11T12:32:14
2017-03-03T11:59:18
Python
UTF-8
Python
false
false
961,437
py
import FWCore.ParameterSet.Config as cms process = cms.Process("GEN") process.source = cms.Source("PoolSource", fileNames = cms.untracked.vstring('/store/cmst3/user/psilva/Wmass/Wminusj/seed_9_pwgevents.lhe'), inputCommands = cms.untracked.vstring('keep *') ) process.AODEventContent = cms.PSet( compressio...
[ "karla.pena@cern.ch" ]
karla.pena@cern.ch
ce47790ae674971f06b1c62b7beef51211bf1142
a7c48ebde9ceb5477404f53c568df52a8a26f79a
/crawl_demo/url_manager.py
f0a3fbe8bbe7f235f9f8d9ddb638c11674cfe543
[]
no_license
oo363636/project
8bea97ad6f0d5b62916ebedd861dfde3ca411a5b
e5e9033efa772e48d0d118c05fde5bc134fae392
refs/heads/master
2023-01-25T03:27:33.178769
2020-12-04T07:50:58
2020-12-04T07:50:58
297,020,260
0
0
null
null
null
null
UTF-8
Python
false
false
945
py
class UrlManager: def __init__(self): self.old_urls = set() self.new_urls = set() # 向管理器添加url def add_new_url(self, url): if url is None: return if url not in self.new_urls and url not in self.old_urls: self.new_urls.add(url) # 向管理器添加...
[ "noreply@github.com" ]
noreply@github.com
d8ac7dbd544e75aa6e93408cab924c49ff306ac1
d491c11dc87a955c95a4e14a2feea19fe1fa859e
/python/Arcade/Python/P15FeebackReview.py
77f7ef9557afa7896637dc067567d08a73208df9
[]
no_license
Vagacoder/Codesignal
0f6ea791b25716cad7c46ab7df73679fb18a9882
87eaf44555603dd5b8cf221fbcbae5421ae20727
refs/heads/master
2023-07-16T04:18:44.780821
2021-08-15T18:41:16
2021-08-15T18:41:16
294,745,195
1
0
null
null
null
null
UTF-8
Python
false
false
2,975
py
# # * Python 15, Feedback Review # * Easy # * You've launched a revolutionary service not long ago, and were busy improving # * it for the last couple of months. When you finally decided that the service # * is perfect, you remembered that you created a feedbacks page long time ago, # * which you never checked out ...
[ "qiruihu@gmail.com" ]
qiruihu@gmail.com
606fdd47f7284d566eb8d39fa34234c4df844e16
81dcfebf342aedc32e5d3f182b4a2401810067de
/djadmin2_sb/templatetags/sb_tags.py
656f275533cb8c9eccbf8808c001843b56d6b219
[]
no_license
pablovg2/django-admin2-sb
6e827e6fbc51265d602a0eb27c7f585ad4321254
d7b657ef786d38c7ed940cc532f12c8cfe1811f7
refs/heads/master
2021-01-15T23:41:17.221972
2013-11-29T14:19:33
2013-11-29T14:19:33
null
0
0
null
null
null
null
UTF-8
Python
false
false
353
py
from django import template from django.conf import settings import djadmin2 directory = getattr(settings, 'ADMIN2_THEME_DIRECTORY', 'djadmin2_sb') register = template.Library() @register.inclusion_tag(directory + '/menu.html') def menu(permissions): ctx = djadmin2.default.get_index_kwargs() ctx['permission...
[ "tyrion.mx@gmail.com" ]
tyrion.mx@gmail.com
8bfae8d09d2c6cb4ff1a5cce566dad3e7cbe52ed
e23a4f57ce5474d468258e5e63b9e23fb6011188
/125_algorithms/_exercises/templates/_algorithms_challenges/pybites/intermediate/259_v2/test_reverse_complement.py
8306e1e9cc6d840d6832bd8d3e4d29db696d1bb5
[]
no_license
syurskyi/Python_Topics
52851ecce000cb751a3b986408efe32f0b4c0835
be331826b490b73f0a176e6abed86ef68ff2dd2b
refs/heads/master
2023-06-08T19:29:16.214395
2023-05-29T17:09:11
2023-05-29T17:09:11
220,583,118
3
2
null
2023-02-16T03:08:10
2019-11-09T02:58:47
Python
UTF-8
Python
false
false
7,946
py
# _______ p__ # # _______ ? # # # Table copied from # # http://arep.med.harvard.edu/labgc/adnan/projects/Utilities/revcomp.html # # Note that this table is different from the simple table in the template # # This table includes additional rules which are used in more advanced # # reverse complement generators. Please e...
[ "sergejyurskyj@yahoo.com" ]
sergejyurskyj@yahoo.com
c33fc2a76e8c4b83f93a1cd559409530862a887c
747e60bcc778075ec8c60b85b67dadf539b20912
/test/pynrn/test_py2nrnstring.py
51804fbcc0ae9cf328c92a6c5c1f307225c7e889
[ "BSD-3-Clause" ]
permissive
errord/nrn
3c27bf1960b7974c8e2cd948211cb33a29844611
259e6344e2212fc6ab6031b3fe657e2ac7375808
refs/heads/master
2023-05-15T03:42:12.332870
2021-06-09T19:45:23
2021-06-09T19:45:23
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,010
py
from neuron import h from neuron.expect_hocerr import expect_hocerr, expect_err, set_quiet import sys quiet = True uni = 'ab\xe0' def checking(s): if not quiet: print("CHECKING: " + s) class Foo: # for testing section name errors when full cell.section name has unicode chars. def __init__(self, name): se...
[ "noreply@github.com" ]
noreply@github.com
1828365c858c244c99da9e8b9f9c398715808098
cd3fffd356af19c4896a2e9062f9356ab844e421
/backend/tests/test_db.py
a46825c4b9ce20c5b1a15181bc165c03b8c7c501
[]
no_license
phaunos/phaunos
0357603cb082d9bb5dc87eaae4d4cb966cf2b6c1
46c1cbce308d4e0f7c66940a6044d9fcb8b26765
refs/heads/master
2020-04-19T05:44:29.442692
2019-04-08T13:19:14
2019-04-08T13:19:14
null
0
0
null
null
null
null
UTF-8
Python
false
false
565
py
import pytest from phaunos import create_app from phaunos.models import db from phaunos.phaunos.models import TagSet @pytest.fixture(scope='module') def test_app(): app = create_app(testing=True) with app.app_context(): yield app @pytest.fixture(scope='module') def test_db(test_app): db.drop_all...
[ "julien.ricard@gmail.com" ]
julien.ricard@gmail.com
5d80521ae3b75120771e8dc54eec1e42421884e0
63eef3c9b12be04626d9421571de99430698dd9a
/photo_stats.py
74d8be7621c57e5f81ec1e717a4122b108cba3da
[]
no_license
HL-Nya/photo_stats_generator
7c69fee4da55c7b29e083476dafb469dd8fb8e81
69cdf449075a221141a409401b33a05423e94ca3
refs/heads/main
2023-08-24T11:50:22.466788
2021-10-04T23:14:54
2021-10-04T23:14:54
413,604,817
0
0
null
null
null
null
UTF-8
Python
false
false
1,677
py
import exifread import os import sys def photo_stats(root_dir, file_formats): count = 0 result_dict = { "EXIF LensModel":{}, "Image Model": {}, "Image Make": {}, "Image Software": {}, "EXIF ExposureTime":{}, "EXIF FNumber":{}, "EXIF ISOSpeedRatings":{}, "EXIF Fo...
[ "noreply@github.com" ]
noreply@github.com
147027e78c585ffbc62132cb0116bc6522c71e71
8a5669848a675c367e6a58d57dd25f15bf8bb2a5
/examples/classification/01_functional_style_metric.py
5a90f22f4be00cb4891772d18054d28865e4af4d
[ "GPL-1.0-or-later", "GPL-3.0-only" ]
permissive
thieu1995/permetrics
a6c74150e6f03d2e62ad762dc7fe1fa7d03c5d84
85b0f3a750bdebc5ade0422e6be7343d90d3cb98
refs/heads/master
2023-08-17T14:00:03.705206
2023-08-12T15:23:53
2023-08-12T15:23:53
280,617,738
30
8
Apache-2.0
2022-06-27T04:03:30
2020-07-18T08:47:17
Python
UTF-8
Python
false
false
1,692
py
#!/usr/bin/env python # Created by "Thieu" at 11:36, 25/03/2022 ----------% # Email: nguyenthieu2102@gmail.com % # Github: https://github.com/thieu1995 % ...
[ "nguyenthieu2102@gmail.com" ]
nguyenthieu2102@gmail.com
f58bbd698e54f7c6f06529eaa95a5f754ba13f53
47ab4099f902f353a36ddf450798d9eff6dadf4a
/deep_reference_parser/split.py
425924ec1e07b68880591d092b9b4a82eb1cad0e
[ "MIT" ]
permissive
wellcometrust/deep_reference_parser
7a85dcd083140dc7352d4038fcd24bde9dcc1373
b58e4616f4de9bfe18ab41e90f696f80ab876245
refs/heads/master
2023-08-03T21:27:32.280620
2020-10-06T17:27:38
2020-10-06T17:27:38
238,455,738
20
1
MIT
2023-07-25T15:44:50
2020-02-05T13:23:14
Python
UTF-8
Python
false
false
6,989
py
#!/usr/bin/env python3 # coding: utf-8 """ Run predictions from a pre-trained model """ import itertools import json import os import en_core_web_sm import plac import spacy import wasabi import warnings with warnings.catch_warnings(): warnings.filterwarnings("ignore", category=DeprecationWarning) from dee...
[ "matthew.a.upson@gmail.com" ]
matthew.a.upson@gmail.com
f4cd681d7022d51d6c996a82e8b22f278d3d8f88
34548104ae25886505a681971a7a55e11046a213
/facenet/train_softmax.py
67fb73713b8236a209cc17fad3e3b13c1fead756
[]
no_license
classnalytic/classnalytic-ML
37b5b20c9ad57dab7a3d3128bc42bcb4d21dea15
e78e87883978e7c415f03931136e40346da6cabc
refs/heads/master
2020-03-22T19:44:10.523444
2019-02-08T14:05:45
2019-02-08T14:05:45
140,547,359
2
1
null
null
null
null
UTF-8
Python
false
false
32,919
py
"""Training a face recognizer with TensorFlow using softmax cross entropy loss""" from __future__ import absolute_import from __future__ import division from __future__ import print_function from datetime import datetime import os.path import time import sys import random import tensorflow as tf import numpy as np im...
[ "wiput.pootong@gmail.com" ]
wiput.pootong@gmail.com
15f07c37f32f06d8789176d5e73aed36498319bf
16157a6df18b1c521b27fff8a6f73aa4a3438e16
/MainFolder/Components/Htp/Parameters/chordRoot.py
5d00dfe14e3a48b1549644af25f6d9c1b5160e4d
[]
no_license
JZamboni/CDTsizing
b743f6bba94b82c19937a35c1951612f7efd79e7
a2e56e8fe6b95feccf5325913e80e68a72590f42
refs/heads/master
2020-12-24T21:22:06.153891
2016-05-31T09:42:45
2016-05-31T09:44:10
59,601,345
0
0
null
null
null
null
UTF-8
Python
false
false
473
py
from MainFolder.Core.Parameter import parameter class chordRoot(parameter): ''' Horizontal tail plane root chord :Unit: [m] ''' ################################################################################################### # EOFEOFEOFEOFEOFEOFEOFEOFEOFEOFEOFEOFEOFEOFEOFEOFEOFEO...
[ "mancio.am93@gmail.com" ]
mancio.am93@gmail.com
1e748bcd33d6fe1bf140ccdb45cb963a56a7eaaa
55c552b03a07dcfa2d621b198aa8664d6ba76b9a
/Algorithm/BOJ/13300_방 배정_b2/13300.py
1f760d8e2112fd870232bb7889e148e0582076d3
[]
no_license
LastCow9000/Algorithms
5874f1523202c10864bdd8bb26960953e80bb5c0
738d7e1b37f95c6a1b88c99eaf2bc663b5f1cf71
refs/heads/master
2023-08-31T12:18:45.533380
2021-11-07T13:24:32
2021-11-07T13:24:32
338,107,899
0
1
null
null
null
null
UTF-8
Python
false
false
723
py
# boj 13300 방 배정 b2 # https://www.acmicpc.net/problem/13300 import math N, K = map(int, input().split()) count_studentMen = [0] * 7 # 6학년까지 ex. 1학년은 1번인덱스를 사용 count_studentWomen = [0] * 7 res = 0 for i in range(N): S, Y = map(int, input().split()) # S성별 Y학년 if S == 0: # 여자라면 count_studentWomen[Y] +...
[ "sys19912002@hanmail.net" ]
sys19912002@hanmail.net
7da2463819780728570d1189aaee79f3c166abcd
105295db34a0b1d7e45499a0911d5e08765f73fe
/bss_crm_phonenumbers/bss_crm_phonenumbers_lead.py
6f883104bb98d0af3b7e5f736ef87bd53fbffae0
[ "Apache-2.0" ]
permissive
kossovo/phonenumbers-addons
5f31e99fa3a09372ed2d92aafc9cda98b9bad657
a9e664471e8c38f97b5c42068c547e4c2f3f7045
refs/heads/master
2021-01-02T08:19:30.027868
2014-11-05T12:11:10
2014-11-05T12:11:10
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,473
py
# -*- coding: utf-8 -*- ############################################################################## # # OpenERP, Open Source Management Solution # Copyright (C) 2012-2013 Bluestar Solutions Sàrl (<http://www.blues2.ch>). # # This program is free software: you can redistribute it and/or modify # it un...
[ "clovis@anybox.fr" ]
clovis@anybox.fr
181f76e340182b7aa739d80648b2c5700a66f192
4293fc33172627a391cbb3e27c4344822921182a
/quicksort.py
2e15a755f985488a72cd9d6b9e0965043ab8fd71
[]
no_license
Judice/algorithms
1a4dedacb6e964461fafa4cbb489e0595c2682df
5b9b66748d432199539d7e48448dbf43352f78dc
refs/heads/master
2020-08-03T16:53:18.591887
2017-02-01T14:31:20
2017-02-01T14:31:20
73,541,083
0
0
null
null
null
null
UTF-8
Python
false
false
309
py
# coding=utf-8 def quicksort(nums): less = [] greater = [] if len(nums) <= 1: # 必须考虑等于0 return nums n = nums.pop() for i in nums: if i <= n: less.append(i) else: greater.append(i) return quicksort(less)+[n]+quicksort(greater)
[ "eciduj@gmail.com" ]
eciduj@gmail.com