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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
f993893d9a9ff45bd05d0ee1ea74bd629d2fd4ed | 8c51b635a93d1eff37e996a89d4fe731ebbcde2d | /python_base/code/day04/exercise07.py | adaf42b55aa50297d1e5c494f35c59b37c93a5f0 | [] | no_license | chang821606/storebook | acec847bbc80c06c21892ae9570bcdbcd9705af6 | 83ee5c15f923a7b8a38cb9bac9015a5c6f49a288 | refs/heads/master | 2020-08-25T07:26:44.450812 | 2019-10-23T09:23:41 | 2019-10-23T09:23:41 | 216,982,086 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 236 | py | # 练习:累加10--80之间,个位不是2,5,6的整数
sum_value = 0
for item in range(10,81):
unit = item % 10
if unit == 2 or unit == 5 or unit == 6:
continue
sum_value += item
print(sum_value)
#15:35 上课 | [
"137612497216@163.com"
] | 137612497216@163.com |
337a812f129fb54542dca1dde19841f29a9376bc | efa2114efadf57485e20fad82f26c0bdc0ca033a | /project/settings.py | 67927f384ea94cdca03d86a8d92d214a0a362ac2 | [] | no_license | chaos97/SquirrelSpotter_Django | 3ea3da569789050480ca49b26de77d5585074da8 | 6b4b0b915408f753b07d521f10ca04ac63190647 | refs/heads/master | 2023-05-01T06:33:47.871884 | 2019-12-06T21:59:40 | 2019-12-06T21:59:40 | 223,692,940 | 0 | 0 | null | 2023-04-21T20:51:38 | 2019-11-24T04:37:37 | JavaScript | UTF-8 | Python | false | false | 3,144 | py | """
Django settings for project project.
Generated by 'django-admin startproject' using Django 2.2.7.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/
"""
import os
#... | [
"572214728@qq.com"
] | 572214728@qq.com |
e7b2527e9d44eef72048f1bb2f0a78a12a668f9b | 77639380e2c33eee09179f372632bcb57d3f7e3f | /favorita/base_xgb_model.py | d550fd5b81efab514e96961f156451c648bd8a32 | [] | no_license | razmik/demand_forecast_walmart | b8f5c4aaa3cb6dccae102e4ca19f1131131a9f26 | 56292bfbeebc1d3d4962e3ee26d05be2aebd5f4c | refs/heads/master | 2023-01-22T12:30:18.129486 | 2020-08-10T10:44:12 | 2020-08-10T10:44:12 | 283,923,690 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,399 | py | """
Author: Rashmika Nawaratne
Date: 05-Aug-20 at 4:53 PM
"""
import pandas as pd
import numpy as np
from datetime import datetime
import time
import gc
from xgboost import XGBRegressor
from xgboost import Booster
import matplotlib.pyplot as plt
from favorita.load_data import Data
from favorita.evaluation import Ev... | [
"razmik89@gmail.com"
] | razmik89@gmail.com |
a3da9504f28fd24a09d5a381d01999f1ecc2ed4b | 7949f96ee7feeaa163608dbd256b0b76d1b89258 | /toontown/catalog/CatalogItemPanel.py | eec5dcc756b6e374f53146c1236fb2ebf461b5a8 | [] | no_license | xxdecryptionxx/ToontownOnline | 414619744b4c40588f9a86c8e01cb951ffe53e2d | e6c20e6ce56f2320217f2ddde8f632a63848bd6b | refs/heads/master | 2021-01-11T03:08:59.934044 | 2018-07-27T01:26:21 | 2018-07-27T01:26:21 | 71,086,644 | 8 | 10 | null | 2018-06-01T00:13:34 | 2016-10-17T00:39:41 | Python | UTF-8 | Python | false | false | 29,895 | py | # File: t (Python 2.4)
from direct.gui.DirectGui import *
from pandac.PandaModules import *
from toontown.toonbase import ToontownGlobals
from toontown.toontowngui import TTDialog
from toontown.toonbase import TTLocalizer
import CatalogItemTypes
import CatalogItem
from CatalogWallpaperItem import getAllWallpapers
from... | [
"fr1tzanatore@aol.com"
] | fr1tzanatore@aol.com |
c79c81164b271f1d1496685ba5622aac52e7171a | 2e2b87f7152d9578f4445e1a62029c78f89add05 | /pycog-master/pycog/theanotools.py | 8f0909ec63b2c887ec851c322723c1f7fcbb3798 | [
"MIT"
] | permissive | amartyap/Mitigating-Catastrophic-Forgetting-in-Biologically-Inspired-RNNs-Using-Deep-Generative-Replay | cd2d3ae4be8f5e8f5e4210da5e81688459aa8808 | 726f76f6aa9758c2df7bd717517c3871743a925e | refs/heads/main | 2023-02-26T15:27:27.277408 | 2021-02-08T00:43:58 | 2021-02-08T00:43:58 | 336,893,535 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,192 | py | """
Theano-specific functions.
"""
import numpy as np
import theano
import theano.tensor as T
#=========================================================================================
# Activation functions and some of their derivatives
#==============================================================================... | [
"noreply@github.com"
] | amartyap.noreply@github.com |
4103376dbbca20b7caa6c000a96c5304895c31f9 | e017eca53dbe0d35977546df1bb36a59915f6899 | /debugging/assert_variable.py | 8aec26cfafa0f80b02465a455cc3c785aa89bd35 | [] | no_license | clivejan/python_basic | 7d14b7335f253658f8814acbdb753a735481e377 | 773de644a87792b872e38017dcac34c1691ccc87 | refs/heads/master | 2020-12-04T17:44:24.737370 | 2020-01-09T14:43:36 | 2020-01-18T03:11:20 | 231,856,419 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 334 | py | #!/usr/bin/env python3 -O
# Assertion is used for programmer errors and
# should not use try except to handle it.
# Status well
job_title = 'DevOps'
assert job_title == "DevOps", "Tansform from SE to DevOps"
# Status wrong
job_title = 'Systems Engineer'
assert job_title == "DevOps", "Tansform from SE to DevOps"
pri... | [
"clive.jan@gmail.com"
] | clive.jan@gmail.com |
0116db3631d3d531836248a0bca1d5d46ba83d49 | 302442c32bacca6cde69184d3f2d7529361e4f3c | /cidtrsend-all/stage3-model/pytz/zoneinfo/Africa/Bujumbura.py | 76c4c7a6e44ba67e832b34d93a452c2827caf84f | [] | no_license | fucknoob/WebSemantic | 580b85563072b1c9cc1fc8755f4b09dda5a14b03 | f2b4584a994e00e76caccce167eb04ea61afa3e0 | refs/heads/master | 2021-01-19T09:41:59.135927 | 2015-02-07T02:11:23 | 2015-02-07T02:11:23 | 30,441,659 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 391 | py | '''tzinfo timezone information for Africa/Bujumbura.'''
from pytz.tzinfo import StaticTzInfo
from pytz.tzinfo import memorized_timedelta as timedelta
class Bujumbura(StaticTzInfo):
'''Africa/Bujumbura timezone definition. See datetime.tzinfo for details'''
zone = 'Africa/Bujumbura'
_utcoffset = time... | [
"learnfuzzy@gmail.com"
] | learnfuzzy@gmail.com |
2cce0f58bbafa9e5f7a2c1eccbc003d304a93de3 | 48372a9277013edb66f66624a26f5a4af2770c3b | /venv/Scripts/pip-script.py | 1c6164604ad89129d1ff06c983053dbc4a938f29 | [] | no_license | vhyu/test | a9e9374edd25bffc09d46428364487ecbbed5557 | 69a5717910dcaa493e884c66cdb1878db2aa068b | refs/heads/master | 2020-03-20T07:57:33.725580 | 2018-11-20T07:05:21 | 2018-11-20T07:05:21 | 137,295,386 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 393 | py | #!D:\pycharm_Pros\test\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==10.0.1','console_scripts','pip'
__requires__ = 'pip==10.0.1'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(
... | [
"1185895906@qq.com"
] | 1185895906@qq.com |
ab96c2674dd84ae1432b1ef67ca398aa1e033854 | 71f3ecb8fc4666fcf9a98d39caaffc2bcf1e865c | /.history/第2章/2-2/lishi_20200527235931.py | 947e75d59de12d8489b2a6b14a7c1c09b49fe148 | [
"MIT"
] | permissive | dltech-xyz/Alg_Py_Xiangjie | 03a9cac9bdb062ce7a0d5b28803b49b8da69dcf3 | 877c0f8c75bf44ef524f858a582922e9ca39bbde | refs/heads/master | 2022-10-15T02:30:21.696610 | 2020-06-10T02:35:36 | 2020-06-10T02:35:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 955 | py | #!/usr/bin/env python
# coding=utf-8
'''
@version:
@Author: steven
@Date: 2020-05-27 22:20:22
@LastEditors: steven
@LastEditTime: 2020-05-27 23:59:31
@Description:将列表的最后几项作为历史记录的过程。
'''
from _collections import deque
def search(lines, pattern, history=5):
previous_lines = deque(maxlen=history)
for line in lin... | [
"a867907127@gmail.com"
] | a867907127@gmail.com |
82c5ce7b4ebbb0b5752945713ead109a06be2960 | 16ba38ef11b82e93d3b581bbff2c21e099e014c4 | /haohaninfo/Python_Future_Sample/實單交易/90.py | dbf39a68d38224f520449600d95099dfb3431206 | [] | no_license | penguinwang96825/Auto-Trading | cb7a5addfec71f611bdd82534b90e5219d0602dd | a031a921dbc036681c5054f2c035f94499b95d2e | refs/heads/master | 2022-12-24T21:25:34.835436 | 2020-09-22T09:59:56 | 2020-09-22T09:59:56 | 292,052,986 | 2 | 5 | null | null | null | null | UTF-8 | Python | false | false | 1,692 | py | # -*- coding: UTF-8 -*-
# 載入相關套件
import sys,indicator,datetime,haohaninfo
# 券商
Broker = 'Masterlink_Future'
# 定義資料類別
Table = 'match'
# 定義商品名稱
Prod = sys.argv[1]
# 取得當天日期
Date = datetime.datetime.now().strftime("%Y%m%d")
# K棒物件
KBar = indicator.KBar(Date,'time',1)
# 定義威廉指標的週期、超買區、超賣區
WILLRPeriod = 14
Ov... | [
"penguinwang@smail.nchu.edu.tw"
] | penguinwang@smail.nchu.edu.tw |
f7556c2c0872e68f85c41540f2e3065b1dd4e43c | d3ed759fa163fd9dbf8c89f214bf098e6467ffef | /evaluate_models.py | 998e4350abe0f923666ee33cb0a7ca034fc6b173 | [] | no_license | BasdekD/adaptive-goal-setting | 83ab0191a01b1f9d133d41d2f4643efc03629bcc | 3a36abba86733f8c406d2e10b137d6d366e60ea9 | refs/heads/master | 2023-03-27T00:25:50.799358 | 2021-03-30T17:31:24 | 2021-03-30T17:31:24 | 320,591,695 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,049 | py | import utilities
import pickle
from sklearn.model_selection import KFold, GridSearchCV, train_test_split
from sklearn.pipeline import Pipeline
from matplotlib import pyplot
from sklearn.metrics import mean_absolute_error
n_per_in = 5
n_per_out = 1
X, y = utilities.get_dataset(n_per_in, n_per_out)
x_train, x_test, y_t... | [
"basdekd@gmail.com"
] | basdekd@gmail.com |
656cf5d3b96ae6e55fabe7ef867931afbe05fcec | 1712da976dcde5e618c3036a3e321abfeb9ae10e | /facefrontend.py | 510dd8662308bfeacb77d74299d6e7b9d8f14127 | [] | no_license | rasikasd/Face-Recognition | 5478ce4e4b98c94ab8a478603fa8c3b576bcfbd9 | a07ef677ba740de47a0fba5527a63d550a4cfc72 | refs/heads/master | 2022-12-25T04:41:41.531909 | 2020-10-13T14:44:58 | 2020-10-13T14:44:58 | 303,730,919 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,227 | py | # Face Recognition
# Importing the libraries
from PIL import Image
from keras.applications.vgg16 import preprocess_input
import base64
from io import BytesIO
import json
import random
import cv2
from keras.models import load_model
import numpy as np
from keras.preprocessing import image
model = load_mod... | [
"noreply@github.com"
] | rasikasd.noreply@github.com |
b8bda1432b11e5c0d7a42b0917e667b6dd531d95 | 35139f27f0164435ea4ab9d74eea0bef094fd7f5 | /game/models.py | a65ef63c6a9e215d5ac9c17ed4fb62c8229a7e44 | [
"MIT"
] | permissive | robertoassuncaofilho/break2moveapi | eeae67bd99d4d2e180715361bb120da7e04d88bb | 9261030b5806ac0b6db26518758bab2545da4d37 | refs/heads/main | 2023-03-27T11:34:11.682617 | 2021-03-18T14:04:07 | 2021-03-18T14:04:07 | 344,245,788 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,116 | py | from django.db import models
from django.core.validators import MinValueValidator, MaxValueValidator
from django.contrib.auth.models import User
CHALLENGE_TYPE_CHOICES = [('body','body'), ('eye', 'eye')]
class Challenge (models.Model):
type = models.CharField(max_length=10,choices=CHALLENGE_TYPE_CHOICES)
desc... | [
"roberto.16@gmail.com"
] | roberto.16@gmail.com |
09f31b04bd8dec149b4f477b92f1b1a0af7bcc03 | 6464d555f711d5f9903c5b8ac50b67ef6adf0335 | /audit_rest/audit_rest/client.py | 2e0f0e3173705dd56e7504ae30a34c5b61865530 | [] | no_license | markcxli/Auditing_service_for_HIL | eccc2caa5c47627d067bcd3f93d5ae6d1e466b36 | 9b36300a2b064168609407caad039908477b6231 | refs/heads/master | 2022-06-09T18:42:30.634406 | 2019-01-31T20:22:39 | 2019-01-31T20:22:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,348 | py | #!/usr/bin/env python
import sys
import os
from hil_calls import HILCLI
import SwitchCalls
class AuditClient(object):
def list_nodes(self, list_type):
response = HILCLI().list_nodes(list_type)
return response
def list_projects(self):
response = HILCLI().list_projects()
return response
def list_projec... | [
"markli@vpn-offcampus-168-122-67-34.bu.edu"
] | markli@vpn-offcampus-168-122-67-34.bu.edu |
e8cbf6ff31b09f8e7a3f1d5399007bd968c2e0c9 | 572326c2beaf2a801672e79d1759d50e8195c512 | /tests/database/contentdb_tests.py | e6dbd0ee44057b3261228cf7511dbe32c3d0029d | [] | no_license | eirikba/ebakup | 84e76939b77e5890326d387a5793b5c2ec854ff4 | 577dc175ceed90704453aa3e7db55adfcb28bc91 | refs/heads/master | 2023-01-22T06:44:23.594212 | 2023-01-15T11:36:03 | 2023-01-15T12:07:01 | 39,680,008 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,173 | py | #!/usr/bin/env python3
import datetime
import unittest
import testdata
import pyebakup.database.contentdb as contentdb
class FakeDatabase(object):
def __init__(self, tree, path):
self._tree = tree
self._path = path
class FakeTree(object):
def __init__(self):
self._files = {}
... | [
"eirik@eirikba.org"
] | eirik@eirikba.org |
41c0cf4c4c0df70bdf1820d5bad71cd39958f878 | 068845f7c38caf032df2b62fa6f4261e85295979 | /maps/send_mail.py | e30fbcc3188833700b805c9432dee94906f3475f | [] | no_license | Karthik-SIES-GST/treeplantation | 7a2852092e778725c1784600d4126cf4cbc4d5af | 1d9cbb052d417fa5c3a95fcc59ea18125b4eb6b5 | refs/heads/master | 2023-04-06T11:51:21.374443 | 2021-04-11T07:59:19 | 2021-04-11T07:59:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,716 | py | import MySQLdb
import smtplib, ssl
from email.mime.text import MIMEText
from email.mime.multipart import MIMEMultipart
from home.mysql import mysqldb
def mail_seder(receiver_email, user, event, date, place, flag):
sender_email = "treeasurenss@gmail.com"
password = 'treeasure@nss123'
message = MIMEMultipart... | [
"65714335+blackhawk005@users.noreply.github.com"
] | 65714335+blackhawk005@users.noreply.github.com |
33d501d883a85c515435da4a4643f3a84a7bcfce | 272721e2bac4fbb9ce98fef6dad6b9c195dcfa40 | /Day-10/8.py | 93759144499bb9f14404cbc868cc5cfad0ac2e52 | [] | no_license | chimnanishankar4/Logic-Building | ab0ab8fe3154659e4b020fbc0370ea52a294d623 | 45bc21e6bfc0a52ac2136221fc6571826985ac54 | refs/heads/master | 2022-10-06T04:08:03.918135 | 2020-06-08T09:47:05 | 2020-06-08T09:47:05 | 266,101,127 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 268 | py | #8.Write a NumPy program to create an array with the values 1, 7, 13, 105 and determine the size of the memory occupied by the array.
import numpy as np
array_a=np.array([1,7,13,105])
print("Original array:",array_a)
print("%d bytes:"%(array_a.size*array_a.itemsize))
| [
"chimnanishankar4@gmail.com"
] | chimnanishankar4@gmail.com |
5106152e77d060a927253686296d12540bed8155 | 2a94e60460f91c4a4b919953ef1a15de4d89166a | /argil_cb_pos_ticket/pos.py | 79525802be904af3b677e6207922930e7981aaf3 | [] | no_license | germanponce/addons_cb | de8ddee13df36cf2278edbbc495564bbff8ea29e | 858453d4f4c3e8b43d34a759b20306926f0bf63e | refs/heads/master | 2021-01-22T23:20:16.826694 | 2015-10-29T22:05:03 | 2015-10-29T22:05:03 | 41,502,521 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,265 | py | # -*- encoding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2004-2009 Tiny SPRL (<http://tiny.be>).
#
# This program is free software: you can redistribute it and/or modify
# it under the ter... | [
"german_442@hotmail.com"
] | german_442@hotmail.com |
d68ae1f08eae0ab2cde22e3ce0773e460f8d4bc6 | 37ec3ba90e8c44d60a6db9fd19ea362ee88d3314 | /accounts/migrations/0001_initial.py | a0586b67cc10ff3f3ed544f8783c04a793791aea | [] | no_license | souckkr/djangoproject-hangungmackgg | f862cedadd7c667bc65a11870dd1da9ef3cec2b8 | caa5625278f8bb8524959061ed51f135802eb7d3 | refs/heads/master | 2022-11-16T02:52:51.383735 | 2020-07-16T08:46:41 | 2020-07-16T08:46:41 | 280,101,253 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,061 | py | # Generated by Django 3.0.7 on 2020-07-06 06:16
import django.contrib.auth.models
import django.contrib.auth.validators
from django.db import migrations, models
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
dependencies = [
('auth', '0011_update_proxy_permission... | [
"souckkr@gmail.com"
] | souckkr@gmail.com |
0a97d29e2bec4a1a9d370b41f0a000614f2f24db | c3e2f56672e01590dc7dc7e184f30c2884ce5d3a | /Programs/MyPythonXII/Unit1/PyChap06/filera.py | 9500b097eee3e35d0a288c02f76d1e850d45b55f | [] | no_license | mridulrb/Basic-Python-Examples-for-Beginners | ef47e830f3cc21cee203de2a7720c7b34690e3e1 | 86b0c488de4b23b34f7424f25097afe1874222bd | refs/heads/main | 2023-01-04T09:38:35.444130 | 2020-10-18T15:59:29 | 2020-10-18T15:59:29 | 305,129,417 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 364 | py | # File name: ...\\MyPythonXII\Unit1\PyChap06\filera.py
import os
txtfile = "Friends.txt" # Text file is assigned
if os.path.isfile(txtfile):
print ("Friends names are...")
print ("-------------------")
for F in open(txtfile).read(): # Both open and read the contents
print (F, end="")
... | [
"mridurb@gmail.com"
] | mridurb@gmail.com |
7abfd9989d9f62ece57d29c9cbc1bfaadc32610f | 8d92693d2ab3d19981a79a008756cbe4d81b4eea | /Clients/Python-rAIcer-Client/NeatClient.py | 6a2d6c4f2fac109c9c5328aa37cf4bc9edcc89af | [] | no_license | MiWerner/rAIcer | c1ef9153592f59dc8a3cee5933a5c4e1ff5f30a1 | a9f930ce1f6b4e16a3d527520cd06c1188731e97 | refs/heads/master | 2020-03-12T21:29:44.193530 | 2019-02-05T13:06:25 | 2019-02-05T13:06:25 | 130,829,370 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,487 | py | import sys
sys.argv.append("--direc_dist")
sys.argv.append("--speed")
sys.argv.append("--cp_ids")
sys.argv.append("2")
sys.argv.append("--output_mode_2")
sys.argv.append("--restore_folder")
sys.argv.append("E4")
import RaicerSocket
import pygame
from Utils import S_WAIT, S_COUNTDOWN, S_RUNNING, S_FINISHED, S_CRASHED, ... | [
"franz.werner@student.uni-luebeck.de"
] | franz.werner@student.uni-luebeck.de |
fac0af8592608b6af1402e8e48927e5e60bf25e2 | 69d1a3a31ad2254fa76c64d4f199bb8b40ed5db9 | /smartystreets_python_sdk/us_reverse_geo/lookup.py | d44e52a168ca975233b87c2205839907f22d1017 | [
"Apache-2.0"
] | permissive | zackary-naas/smartystreets-python-sdk | 6807f46b19ddb891288a23a3f417902c38704731 | 0988fd4c400419e0c1d1366d56a3ba6f177e5294 | refs/heads/master | 2023-08-19T06:38:20.510727 | 2021-10-05T20:39:03 | 2021-10-05T20:39:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 459 | py | class Lookup:
def __init__(self, latitude=None, longitude=None):
"""
In addition to holding the lat/lon data for this lookup, this class also will contain the
result of the lookup after it comes back from the API.
See https://smartystreets.com/docs/cloud/us-reverse-geo-api#http-inpu... | [
"duncan@smartystreets.com"
] | duncan@smartystreets.com |
8349ebff92aca5b7c4f09f14395daad1d788a59b | 188d6557711a002d5e7c4444c788f69463017091 | /basic_test/deepcopytest2.py | 3f30240feb00f454ca81080ef5da6a8a042ad091 | [] | no_license | guozeliang/pyCode | dfd853c1f51871806e5de2e6d7e80c774602e03a | 2a6d52b20204f8adc42e48f7b99bf3a77d7abc67 | refs/heads/master | 2021-04-27T05:27:16.199978 | 2018-07-19T12:52:42 | 2018-07-19T12:52:42 | 122,597,196 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 794 | py | import copy
'''
will = ['will',28,['python','C#','javascript']]
wilber = will #对象的赋值
print(id(will))
print(will)
print([id(ele) for ele in will])
print(id(wilber))
print(wilber)
print([id(ele) for ele in wilber])
will[0] = 'wilber'
will[2].append('CSS')
print(id(will))
print(will)
print([id(ele) for ele in will])
p... | [
"932356614@qq.com"
] | 932356614@qq.com |
d01c5b9d6bf14820b60e6001294c2677de1b6eb1 | b2bfba9ad1a704453f900f46e9b9ed8bd605943a | /polls/urls.py | 26cb8beab4d227eafa90850acdac6b32bd857c8c | [] | no_license | shiv-konar/PollsWebsite | e28ad40be9b4ee4498f67687b8e8ada8e1b4c1b3 | c672bf491a03e7363d579bddd3a9184d91bed234 | refs/heads/master | 2020-12-25T06:02:25.201037 | 2016-07-11T15:05:03 | 2016-07-11T15:05:03 | 63,077,805 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 343 | py | from django.conf.urls import url
from . import views
app_name="polls"
urlpatterns = [
url("^$", views.index, name="index"),
url("^(?P<question_id>[0-9]+)/$", views.details, name="detail"),
url("^(?P<question_id>[0-9]+)/results$", views.results, name="results"),
url("^(?P<question_id>[0-9]+)/vote$", vie... | [
"shiv.konar@outlook.com"
] | shiv.konar@outlook.com |
d608f202740b1523189a09cb7912021be96cf299 | 9950d61161a2fffa03d2fe71eef33748255ab826 | /src/imdb/settings/local.py | 3b039a59a2b41ca4f694871f064a3640dee1c940 | [] | no_license | imtiaz-emu/django_imdb | 6f3530629726154b977bfd9ca3f5fd27a861b4f8 | fee1b20db0c217e176d7616498d1f389cfbfd506 | refs/heads/master | 2021-01-22T10:51:43.126526 | 2017-03-01T06:15:48 | 2017-03-01T06:15:48 | 82,047,276 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,230 | py | """Development settings and globals."""
from __future__ import absolute_import
from os.path import join, normpath
from .base import *
########## DEBUG CONFIGURATION
# See: https://docs.djangoproject.com/en/dev/ref/settings/#debug
DEBUG = True
# See: https://docs.djangoproject.com/en/dev/ref/settings/#template-deb... | [
"himtiaz@dohatec.com.bd"
] | himtiaz@dohatec.com.bd |
3f153710fe899705b2484722c43539921809e850 | 6f041cfcadc66206a00eca5eafb1378fe261d2dd | /8x26tools/tools/ramdump-parser/classfication.py | 567d76aaf367546b73bc2f923fd23689e4dae977 | [] | no_license | kalmuthu/slos | bf857aaa80c33f0a59361614702740c46fa20d01 | 7516632037f788b00e1137619b88ecca1ac66fa3 | refs/heads/master | 2021-01-18T03:38:55.509889 | 2017-02-26T15:24:34 | 2017-02-26T15:24:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,790 | py | # =======================================================
# hagisiro.py
# -------------------------------------------------------
# 2013/04/16 v0.1 Initial release by darkwood.kim
# =======================================================
import sys
import os
def process_dmesg(dmesg):
start_oops=0
end_oops=0
start_r... | [
"chungae9ri@gmail.com"
] | chungae9ri@gmail.com |
b8e7b0de85b7573829e61fafb9cd287c1173b9af | fbd5c602a612ea9e09cdd35e3a2120eac5a43ccf | /Finished/old_py/75.颜色分类.py | 7bd771f54cb7ff8dcc151c48d2e2b94a7f6bf8e8 | [] | no_license | czccc/LeetCode | 0822dffee3b6fd8a6c6e34be2525bbd65ccfa7c0 | ddeb1c473935480c97f3d7986a602ee2cb3acaa8 | refs/heads/master | 2023-09-01T18:18:45.973563 | 2023-08-27T02:44:00 | 2023-08-27T02:44:00 | 206,226,364 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,119 | py | #
# @lc app=leetcode.cn id=75 lang=python
#
# [75] 颜色分类
#
# @lc code=start
class Solution(object):
def sortColors(self, nums):
"""
:type nums: List[int]
:rtype: None Do not return anything, modify nums in-place instead.
"""
left, right = -1, len(nums)
p = 0
w... | [
"lichchchn@gmail.com"
] | lichchchn@gmail.com |
c7143bcfc57aabf16b264551d39b4e0786229945 | 11055fb57d1b9bd107185cbbfdfd0a8676d0d81d | /game/admin.py | b3ee84d1632f31a5eb8e033ad8469cf311a59893 | [] | no_license | KashinYana/hat | bc9d46ca0e813f1fedacc92b146273848f7b6ce7 | 2d325faec62f827d6f930e6956c2b6ec0ec89273 | refs/heads/master | 2021-01-10T19:47:49.511468 | 2013-05-19T08:40:15 | 2013-05-19T08:40:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 207 | py | from django.contrib import admin
from game.models import Game, Word, ReportGame, UserWord
admin.site.register(Game)
admin.site.register(Word)
admin.site.register(ReportGame)
admin.site.register(UserWord)
| [
"kashin.yana@gmail.com"
] | kashin.yana@gmail.com |
5c9dac8602f051955f5bba3b5b992bee8b05f77a | 88900156c1fc6d496e87a0c403811e30a7398cfc | /check4fsm/Communication.py | 70dd87ad40c4646164be3443114f9caeac43fce8 | [] | no_license | Totoro2205/check4fsm | 4be7b73b9331ed2d46ce119b762d67a64a4420cc | 4245b7f0babca6f5d15d1f85ee85fddc69cf0196 | refs/heads/main | 2023-08-10T07:32:22.121413 | 2021-09-20T09:28:57 | 2021-09-20T09:28:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,207 | py | #!/usr/bin/env python
from check4fsm.ProccesText import ProcessText
from check4fsm.TonalizeText import TonalText
from check4fsm.ProcessAppeal import ProcessAppeal
from check4fsm.extractAllData import ExtractData
from check4fsm import *
from natasha import Segmenter, Doc
from loguru import logger
from flask_cors impor... | [
"you@example.com"
] | you@example.com |
c8c514fc8dd83265f096c8411ddcd4366f9d850b | 42316eaeb927b3b04c9652a6d0d395477b10cad5 | /pypsrp/__init__.py | c2d9f0b37b2820868477abc2865e0bcaf2e1a526 | [
"MIT"
] | permissive | graingert/pypsrp | 7505bb2ce2946cd69e2e4749709268352fb9f02c | baf61c9d0cd68fe51bb0698e4fb6d7e7b209f503 | refs/heads/master | 2023-05-30T22:48:45.368609 | 2020-07-23T03:57:48 | 2020-07-23T03:57:48 | 285,619,356 | 0 | 0 | MIT | 2020-08-06T16:29:55 | 2020-08-06T16:29:54 | null | UTF-8 | Python | false | false | 1,073 | py | # Copyright: (c) 2018, Jordan Borean (@jborean93) <jborean93@gmail.com>
# MIT License (see LICENSE or https://opensource.org/licenses/MIT)
import json
import logging
import logging.config
import os
try:
from logging import NullHandler
except ImportError: # pragma: no cover
class NullHandler(logging.Handler):... | [
"jborean93@gmail.com"
] | jborean93@gmail.com |
da75cf735352245840ff25ebe7b8b0f2db95a437 | 0df0d6c1c53cc8667019d4f44df7fa986f08e7a8 | /Arrays/twosum_full.py | b5592ca008a4ef260d002d3ca44a27496bcf6e3e | [] | no_license | sulaimantok/Data-Structures-With-Python | c3ddac35351aa797e2d1d246b2922676d4d29d00 | 98285b16d4d915cedb05afc3418c41c619ca6386 | refs/heads/master | 2020-09-22T00:12:12.054978 | 2020-04-23T13:02:20 | 2020-04-23T13:02:20 | 224,982,137 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 897 | py | A = [-2, 1, 2, 4, 7, 11]
target = 13
# Time Complexity: O(n^2)
# Space Complexity: O(1)
def two_sum_brute_force(A, target):
for i in range(len(A)-1):
for j in range(i+1, len(A)):
if A[i] + A[j] == target:
print(A[i], A[j])
return True
return False
# Time Complexity: O(n)
# Space Complex... | [
"sulaimanniceguy@gmail.com"
] | sulaimanniceguy@gmail.com |
c34df89c9830d46f28b1d2fc7719374d907b074a | a27c13c55680e95a0cfe375dd02daae9d8e64d04 | /src/build/open_source_test.py | 3baee3f5ad690b5f27c1f8f34c6447395026505e | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | NaiveTorch/ARC | 4572ed94d01f3b237492579be4091f3874a8dfe0 | 4007a4e72f742bb50de5615b2adb7e46d569b7ed | refs/heads/master | 2021-01-22T06:38:12.078262 | 2014-10-22T15:43:28 | 2014-10-22T15:43:28 | 25,082,433 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,435 | py | #!/usr/bin/env python
# Copyright 2014 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""Tests covering open_source management"""
import open_source
import os
import unittest
_PATH_PREFIX = 'src/build/tests/open_source'... | [
"elijahtaylor@google.com"
] | elijahtaylor@google.com |
09a53f5f138f99f620cd6ce77126883840240b39 | 9c85d132b2ed8c51f021f42ed9f20652827bca45 | /source/res/scripts/client/gui/shared/gui_items/vehicle.py | 3abc3d8ff7ab639c495503159428a7e726120fa4 | [] | no_license | Mododejl/WorldOfTanks-Decompiled | 0f4063150c7148184644768b55a9104647f7e098 | cab1b318a58db1e428811c41efc3af694906ba8f | refs/heads/master | 2020-03-26T18:08:59.843847 | 2018-06-12T05:40:05 | 2018-06-12T05:40:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 52,084 | py | # Python bytecode 2.7 (decompiled from Python 2.7)
# Embedded file name: scripts/client/gui/shared/gui_items/Vehicle.py
import math
import random
from itertools import izip
from operator import itemgetter
import BigWorld
import constants
from AccountCommands import LOCK_REASON, VEHICLE_SETTINGS_FLAG
from account_shared... | [
"StranikS_Scan@mail.ru"
] | StranikS_Scan@mail.ru |
a9d8055b3ad212516084b0bb991e89c971e57587 | 51a01e2cae03e741440b4ce4ddd36178c16daead | /new/login/migrations/0004_shopcars.py | aeaa2af1fbb96f94afabc659ab81ff0199fb3a1c | [] | no_license | Zhang-LXuan/Molv | 8d2554eebc7049a3091d9b1acfc25c8c489ee927 | c1b6cbc35e1595cc83408a010bbc16cf9b6dc210 | refs/heads/main | 2023-06-24T18:05:48.785683 | 2021-07-28T13:32:07 | 2021-07-28T13:32:07 | 343,711,382 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 837 | py | # Generated by Django 3.1.1 on 2021-02-20 11:19
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('login', '0003_itrecord'),
]
operations = [
migrations.CreateModel(
name='shopcars',
fields=[
('id', ... | [
"1257037084@qq.com"
] | 1257037084@qq.com |
62cfb6b503b6ce9ea99f372bcf8a13687c42dca9 | b3b68efa404a7034f0d5a1c10b281ef721f8321a | /Scripts/simulation/conditional_layers/conditional_layer_handlers.py | 9f92448745a071c4aac20c994e6eed081d12f54c | [
"Apache-2.0"
] | permissive | velocist/TS4CheatsInfo | 62195f3333076c148b2a59f926c9fb5202f1c6fb | b59ea7e5f4bd01d3b3bd7603843d525a9c179867 | refs/heads/main | 2023-03-08T01:57:39.879485 | 2021-02-13T21:27:38 | 2021-02-13T21:27:38 | 337,543,310 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,967 | py | # uncompyle6 version 3.7.4
# Python bytecode 3.7 (3394)
# Decompiled from: Python 3.7.9 (tags/v3.7.9:13c94747c7, Aug 17 2020, 18:58:18) [MSC v.1900 64 bit (AMD64)]
# Embedded file name: T:\InGame\Gameplay\Scripts\Server\conditional_layers\conditional_layer_handlers.py
# Compiled at: 2018-05-11 22:46:41
# Size of source... | [
"cristina.caballero2406@gmail.com"
] | cristina.caballero2406@gmail.com |
78de7289058ba6cd0376717e3c054543a4765a6e | dda618067f13657f1afd04c94200711c1920ea5f | /scoop/user/util/inlines.py | fae84630c7d38141cbccae33232c7d71bd188d6d | [] | no_license | artscoop/scoop | 831c59fbde94d7d4587f4e004f3581d685083c48 | 8cef6f6e89c1990e2b25f83e54e0c3481d83b6d7 | refs/heads/master | 2020-06-17T20:09:13.722360 | 2017-07-12T01:25:20 | 2017-07-12T01:25:20 | 74,974,701 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 952 | py | # coding: utf-8
from django_inlines import inlines
from django_inlines.inlines import TemplateInline
from scoop.user.models import User
class UserInline(TemplateInline):
"""
Inline d'insertion d'utilisateur
Format : {{user id [style=link|etc.]}}
Exemple : {{user 2490 style="link"}}
"""
inline... | [
"steve.kossouho@gmail.com"
] | steve.kossouho@gmail.com |
a74b2c4c92d32f8db846368e12cf2a70c596f2a8 | e9239cdd1f03ccc299311276b8df995dc03ec137 | /buy/migrations/0001_initial.py | 3ff1ea1d36d0f856229572f291378bd01729de3d | [] | no_license | 3b3al/marketplace | 02bb9b60a8013b1c96b4f1618a87e59aced327ad | d56009af0c6389cfcd3b808fe702513c3d0ba7de | refs/heads/master | 2023-09-03T03:04:16.383146 | 2021-10-28T14:28:43 | 2021-10-28T14:28:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,767 | py | # Generated by Django 3.1.5 on 2021-06-23 21:20
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Customer'... | [
"gamaleyas@gmail.com"
] | gamaleyas@gmail.com |
bbcde66a1ba9ee74d286698425ce9b4a489d5c96 | 842296d48452463055494da9b09b49d805077c0f | /nameAge.py | ebd174764e46363a085bdb6ca4ee6427a81753d1 | [] | no_license | JamesRoth/Unit-1 | 1f3e5f79044d598708360ebff9547ab029c498b2 | 30b25874458d5c76215f139d0cbaab5876e5640a | refs/heads/master | 2021-05-11T13:43:32.897594 | 2018-01-26T13:14:51 | 2018-01-26T13:14:51 | 117,686,332 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 343 | py | #James Roth
#1/17/18
#nameAge.py - splitting and characters in a string
name=input("What is your first and last name? ")
age=int(input("What is your age? "))
firstName,lastName=name.split()
print("Your first name has ", len(firstName), "letters")
print("Your last name has ", len(lastName), "letters")
print("You will be... | [
"35492763+JamesRoth@users.noreply.github.com"
] | 35492763+JamesRoth@users.noreply.github.com |
c387bf8145f4fb230a3446850b2101b88050201a | acb8e84e3b9c987fcab341f799f41d5a5ec4d587 | /langs/8/uz4.py | eb498670c22bbeea754028188e9d8126364e9394 | [] | 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 |
132721dbb13b99666f81c07a2a6c12d61872d3b5 | 6354a9a3eb5fd920085e4f92887cdd98b8a5a0af | /level_five/basic_app/views.py | 34646c1aed286a191704a1620514501c42c24b23 | [] | no_license | ujithendrakumar/django-projects | e47d2c38535b755f8191d81fade3c79b28c3faa0 | 2c22a6acb28a966cac4076afd939eb09929e30ea | refs/heads/master | 2022-12-28T21:28:01.255828 | 2019-01-06T13:36:37 | 2019-01-06T13:36:37 | 157,509,802 | 2 | 1 | null | 2022-12-08T13:37:11 | 2018-11-14T07:38:55 | Python | UTF-8 | Python | false | false | 2,423 | py | from django.shortcuts import render,redirect
from basic_app.forms import UserForm,UserProfileInfoForm
#Login code goes here
from django.contrib.auth import login,logout,authenticate
from django.http import HttpResponseRedirect, HttpResponse
from django.urls import reverse
from django.contrib.auth.decorators import log... | [
"ujk222@gmail.com"
] | ujk222@gmail.com |
3f56e0b32438cf0782e92e5ea2de9f3379161e3d | 679cbcaa1a48c7ec9a4f38fa42d2dc06d7e7b6ef | /main.py | d5f2cef309384ff826e8e3934d2f1a1e69578595 | [] | no_license | roblivesinottawa/canada_provinces_game | cb2242845e3dd3a3902c0f416ac1a4efa485aecf | 2aa5c7236c2ac7381522b493fddf415ece9c3a87 | refs/heads/main | 2023-03-04T08:08:31.409489 | 2021-02-17T21:46:18 | 2021-02-17T21:46:18 | 339,863,158 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,000 | py | import turtle
import pandas
screen = turtle.Screen()
screen.title("Canada Provinces Game")
image = "canada_map.gif"
screen.addshape(image)
turtle.shape(image)
data = pandas.read_csv("canada_provinces.csv")
all_provinces = data.province.to_list()
guessed = []
while len(guessed) < 50:
answer = screen.textinput(ti... | [
"tech.rob@icloud.com"
] | tech.rob@icloud.com |
de432ff29979217cb022d735deddbd110e866064 | c8e96ac26c4ec9f997549056be77452d2875ed77 | /corgie/cli/merge_copy.py | 1e139dfda245cb4fd34fedee59febf8f6ae67c5f | [
"Apache-2.0"
] | permissive | seung-lab/corgie_deprecated | 7b72dc18d7443e5f6cf0ed5feb7ea595bf80b303 | 4d03ca129718b6e52f5161c1bb36fd20c78d2388 | refs/heads/master | 2023-03-15T05:09:56.847570 | 2021-03-24T19:49:26 | 2021-03-24T19:49:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,275 | py | import click
from corgie import scheduling, helpers, stack
from corgie.log import logger as corgie_logger
from corgie.layers import get_layer_types, DEFAULT_LAYER_TYPE, \
str_to_layer_type
from corgie.boundingcube import get_bcube_from_coords
from corgie.argparsers import LAYER_HELP_STR, ... | [
"noreply@github.com"
] | seung-lab.noreply@github.com |
362cabb65372ed498a9525dfcfd7c9452b03fbdc | 8cb886d37acc4ac03d83c88f91bb4991b7b4f15d | /prueba.py | 36030efd337d5a769ae35888af0ddac49776718b | [] | no_license | gsi-upm/Sensato | 35762c17733885cb95719d01157310e12578e898 | 879dbf59b93d04f58f5eac908cf835a6a52416aa | refs/heads/master | 2021-01-10T10:54:37.393690 | 2013-06-25T10:21:28 | 2013-06-25T10:21:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 274 | py | import edges
prueba = edges.make_edge ("HasPrerequisite","/c/es/navegadorON", "/c/es/tabletON","/GSI","GSI",["/GSI/u","/GSI/l"]);
print prueba['start']
prueba2 = edges.SolrEdgeWriter('/home/alopez/temp')
prueba2.write_header()
prueba2.write(prueba)
prueba2.write_footer()
| [
"al.lopezf@gmail.com"
] | al.lopezf@gmail.com |
5cdf2ebb543035deab7264327b6d2bf1585576e0 | 09d5d385fec8774f1953a5039c67ef6bd525722b | /configs/0. TGRS-sampling-balance-detector/SBNet_x101_64x4d_fpn_1x_NWPU.py | 5a1fd822a58cf1a396f9b6349ff9bc2467b83ca2 | [] | no_license | yawudede/Sampling-Balance_Multi-stage_Network | f10db07447a4f3ad583660e1f0b67ddfebba9bdb | 1b1910dc0c39f975b53a81d31489709ff75703a8 | refs/heads/master | 2023-01-30T18:17:41.711878 | 2020-12-16T03:23:42 | 2020-12-16T03:23:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,455 | py | # model settings
#--out results.pkl
#loss_cls=dict( type='FocalLoss', use_sigmoid=True, gamma=2.0, alpha=0.25, loss_weight=0.005)
model = dict(
type='CascadeRCNN',
num_stages=3,
pretrained='open-mmlab://resnext101_64x4d',
backbone=dict(
type='ResNeXt',
depth=101,
groups=64,
... | [
"noreply@github.com"
] | yawudede.noreply@github.com |
1c21321b1839dedf3e417c61d3f0cfc9eed72b12 | b3dc4a1513ac185f57437df543fc79c5453bd948 | /CSCD27/Homework/xor-base64-starter/main.py | aa440cf9c2207657e8412cb8d1fd6d83a09b6fe9 | [] | no_license | AdamRWatchorn/Old-Stuff | 4692665a353dc418cdf2f0e098d49e018549aed0 | c57f32ef64072f876a1bacc7dc7780fd6fffd8de | refs/heads/master | 2021-04-25T19:36:51.190698 | 2018-03-06T08:22:03 | 2018-03-06T08:22:03 | 124,042,208 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,849 | py | #!/usr/local/bin/python3
import os, sys, getopt
from xor64 import encrypt, decrypt
def run(mode, keyFile, outputFile, inputFile):
with open(keyFile, "r") as keyStream:
key = keyStream.read()
with open(inputFile, "r") as inputStream:
data = inputStream.read()
output = mode(k... | [
"watchor3@IITS-B473-22.utsc-labs.utoronto.ca"
] | watchor3@IITS-B473-22.utsc-labs.utoronto.ca |
decafa66e1555da2bd0f810d3799dac9343e120e | 362b2ecc6bb81a36f4d13ca8de2ac81dc5ec62c4 | /chameleon/tuner/sampler.py | 32e71175c30085796a8d0b61ecdf4c61efefdcc5 | [] | no_license | he-actlab/chameleon | 850a68325d25f03a85d05c308c4569a6061725bb | 1699894b6f8cec37af4fef0b90fd6e6441f584ae | refs/heads/master | 2023-03-27T22:34:37.621897 | 2020-03-23T07:00:48 | 2020-03-23T07:00:48 | 354,714,079 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,855 | py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | [
"bhahn221@eng.ucsd.edu"
] | bhahn221@eng.ucsd.edu |
f558116cdf1d988cf68a9f58d19c5c9af8ce0214 | 62531bce62949e0f79f55136e2d12c63f0d01cbb | /Traffic light.py | 2c00fdd656c236fe6990b164c57a2bed63323a7e | [] | no_license | icicchen/PythonGameProgramming | 7bf23b7c7bf2b1af53b564b726b6513b140a32a6 | 1d733e3c7cbccd308dd20fc05f3588a78c0b1e58 | refs/heads/master | 2020-08-03T22:42:48.051686 | 2017-05-25T01:24:26 | 2017-05-25T01:24:26 | 66,228,806 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,208 | py | import pygame as pg
import sys
from pygame.locals import *
# initialize the pygame library
pg.init()
# sets the size of the window
winSize = (800, 700)
window = pg.display.set_mode(winSize)
# title
pg.display.set_caption('Traffic light')
# The clock will be used to control how fast the screen updates
clock = pg.time.C... | [
"noreply@github.com"
] | icicchen.noreply@github.com |
6605d4e27c4cb4a040af60508ae4e17b5382aed8 | f594560136416be39c32d5ad24dc976aa2cf3674 | /mmdet/core/bbox/samplers/__init__.py | f58505b59dca744e489328a39fdabb02a893fb51 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | ShiqiYu/libfacedetection.train | bd9eb472c2599cbcb2f028fe7b51294e76868432 | dce01651d44d2880bcbf4e296ad5ef383a5a611e | refs/heads/master | 2023-07-14T02:37:02.517740 | 2023-06-12T07:42:00 | 2023-06-12T07:42:00 | 245,094,849 | 732 | 206 | Apache-2.0 | 2023-06-12T07:42:01 | 2020-03-05T07:19:23 | Python | UTF-8 | Python | false | false | 827 | py | # Copyright (c) OpenMMLab. All rights reserved.
from .base_sampler import BaseSampler
from .combined_sampler import CombinedSampler
from .instance_balanced_pos_sampler import InstanceBalancedPosSampler
from .iou_balanced_neg_sampler import IoUBalancedNegSampler
from .mask_pseudo_sampler import MaskPseudoSampler
from .m... | [
"noreply@github.com"
] | ShiqiYu.noreply@github.com |
3f51256e5c2abd6fa2c7eb93027771aa19c14c92 | c290dfb910bd64af7ad63c26c1135c4ddcd4a1a4 | /akirachix/models.py | 59e8bfc16b736ce1ecf0c8fc0d145be2f8dded9f | [] | no_license | susanawiti/Todos-endpoints | 056eca3a83998839be0932637965c222d2109b8a | 93fded1b419b64deee2f27bdab32a912dc1d9784 | refs/heads/master | 2021-04-25T23:43:22.232859 | 2017-10-17T10:52:41 | 2017-10-17T10:52:41 | 107,254,656 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 306 | py | from __future__ import unicode_literals
from django.db import models
# Create your models here.
class Post(models.Model):
userId = models.IntegerField(default= 1)
tiltle = models.CharField(default="Default Title",max_length = 200)
body= models.TextField(default='Body of post goes here')
| [
"susanawiti95@gmail.com"
] | susanawiti95@gmail.com |
61341b91bc47aff8dfd5d07dc9c6112e6972e30c | 28825a9ad777362d470b1e0ffc042aa2253d121d | /project1/setup1.py | b7f31e279f8620d5585aa0a20c352cfe2acc51a6 | [] | no_license | lacra-oloeriu/learn-python | 30c249a5340b5f752bf372a1b7991d015614770e | 5a5d5b1d74db0875b09d2a49258215116b7e73d5 | refs/heads/master | 2020-12-30T15:08:30.492589 | 2018-01-26T19:17:32 | 2018-01-26T19:17:32 | 91,110,147 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 448 | py | try:
from setuptools import setup
except ImportError:
from distutils.core import setup
config = {
'description': 'I learn python',
'author': 'Lora',
'url': 'URL to get it at.',
'download_url': 'Where to download it.',
'author_email': 'lacramioara.oloeriu@gmail.com.',
'version': '0.1',
... | [
"lacramioara.oloeriu@gmail.com"
] | lacramioara.oloeriu@gmail.com |
e8a7fc344022ebaf43a723a5788a515ef3ec03c5 | a43d2571d056f76c5c7e3ee272cfb029332bad24 | /inheritance.py | b410b2f198206703e92f2fd082447875fdf87380 | [] | no_license | TazzyG/python_random_lessons | ad3e3c5c401c3853eec04a6d80a6053d84f52d7f | 113d5b40d357996a71ea3b20b1c140c66d22114d | refs/heads/master | 2021-01-01T19:48:18.643632 | 2017-07-28T21:57:23 | 2017-07-28T21:57:23 | 98,690,526 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 917 | py | class Parent():
def __init__(self, last_name, eye_color):
print("Parent Contstructor called")
self.last_name = last_name
self.eye_color = eye_color
def show_info(self):
print("Last Name - "+self.last_name)
print("Eye Color - "+self.eye_color)
class Child(Parent):
def... | [
"laurie@friendlyroad.com"
] | laurie@friendlyroad.com |
b5fb6f6ffa25358d3c2ad5a5124d8d9e39fd8e9b | b522843a8a60f092c8c9ae80bfaab0379674dcb9 | /revisedRAS.py | c41278f958dd0721cff760cb49f27a3664b9c680 | [] | no_license | xfLee/IOtools | 5495dae91176cdceb97ee4691ec5032fbec97c9c | 0961b61a2cd1519df42f565d6563eb836b6ceb65 | refs/heads/master | 2020-07-27T11:53:06.382235 | 2019-10-26T10:42:34 | 2019-10-26T10:42:34 | 209,081,315 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,639 | py | # -*- coding: utf-8 -*-
# @Time : 2019/9/23
# @Author : github.com/xfLee
import numpy as np
class RAS(object):
def __init__(self, A0, X1, u1, v1, epsilon, revisedElements):
self.A0 = A0
self.X1 = X1
self.u1 = u1
self.v1 = v1
self.i = np.ones((1, A0.shape[0]))
se... | [
"hensherl@sina.com"
] | hensherl@sina.com |
95bd533c71288b3f5335ed21e13942f5d7a24460 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03501/s994611067.py | 15296b32c0316cdc8748c1ea5d5ad1e71546c200 | [] | 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 | 73 | py | n,a,b=map(int,raw_input().split())
if a*n <b:
print a*n
else:
print b | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
78a54771d395abae7a5403a3cdbd6b176f71da9e | d4252920cf72df6973c31dad81aacd5d9ad6d4c6 | /core_example/core_export_with_name.py | 52b36666b3edfbf02e3adaec01909a7214c30acb | [] | no_license | tnakaicode/GeomSurf | e1894acf41d09900906c8d993bb39e935e582541 | 4481180607e0854328ec2cca1a33158a4d67339a | refs/heads/master | 2023-04-08T15:23:22.513937 | 2023-03-20T04:56:19 | 2023-03-20T04:56:19 | 217,652,775 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,697 | py | import numpy as np
import sys
import time
import os
from OCC.Display.SimpleGui import init_display
from OCC.Core.gp import gp_Pnt
from OCC.Core.XSControl import XSControl_Writer, XSControl_WorkSession
from OCC.Core.XCAFApp import XCAFApp_Application
from OCC.Core.XCAFDoc import XCAFDoc_DocumentTool_ShapeTool
from OCC.... | [
"tnakaicode@gmail.com"
] | tnakaicode@gmail.com |
6fb8a316e09f23ade26ce6c74bd7240690c47841 | eb51c3ff51a1d7d6e55eb40d446657e5863b9d4b | /pokitdok/__init__.py | 70476751df74ede506a1c0845e11ef1fbcb3142d | [
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | tommyyama2020/pokitdok-python | 8be1bf6089c4b890c4a2a464a05f286c6229ab0b | d1ececfe0ea14d29cb00fcabbb145395e2b397fb | refs/heads/master | 2020-04-19T16:50:38.179735 | 2018-12-14T13:41:34 | 2018-12-14T13:41:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 415 | py | # -*- coding: utf-8 -*-
#
# Copyright (C) 2014-2018, All Rights Reserved, PokitDok, Inc.
# https://www.pokitdok.com
#
# Please see the License.txt file for more information.
# All other rights reserved.
#
from __future__ import absolute_import
__title__ = 'pokitdok'
__version__ = '2.8.0'
__author__ = 'PokitDok, Inc.'
... | [
"brian.corbin@pokitdok.com"
] | brian.corbin@pokitdok.com |
1404b6bb41fe178935afb1916f7825127a8d1301 | ad274914cac73a47cce9b90de3152b02fcf75be9 | /example_files/Ex3-5_Show_StatusBar.py | a4e973c2701781e9629c66da849bb38d438766ea | [] | no_license | limhoontaig/Pyqt5 | 014fe7953125ee845a521cad71c96728a79c169c | 7a87142fd4960eefdde3a7d9c92559e942cdbc3a | refs/heads/main | 2023-05-28T23:28:21.892599 | 2021-06-07T21:32:23 | 2021-06-07T21:32:23 | 355,725,342 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 494 | py | ## Ex 3-5. 상태바 만들기.
import sys
from PyQt5.QtWidgets import QApplication, QMainWindow
class MyApp(QMainWindow):
def __init__(self):
super().__init__()
self.initUI()
def initUI(self):
self.statusBar().showMessage('Ready to go')
self.setWindowTitle('Statusbar for who')
... | [
"limhoontaig@gmail.com"
] | limhoontaig@gmail.com |
c116261efdbfd8e7028b91803627518d781d088c | d7d2712ed98c748fda35c47c8f6ae21ea1d3b421 | /users/settings.py | 30b0ed03d895aee405e289d97f99c6386f3b049e | [] | no_license | kamral/user_models | 5bdd4bd5583b075cfef70a2b7be229575518ad97 | b75c6441be9ed51268f1370051eab3aa572ed228 | refs/heads/main | 2023-01-14T20:38:10.342545 | 2020-11-30T12:32:34 | 2020-11-30T12:32:34 | 317,218,291 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,232 | py | """
Django settings for users project.
Generated by 'django-admin startproject' using Django 2.2.13.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/
"""
import os
# ... | [
"kamral010101@gmail.com"
] | kamral010101@gmail.com |
fbbbb3dcfb6e7c05adc6803d454bc37f5120d619 | 5780a8a4da834d25e6d85cddf8364de3edcc7044 | /stp/settings.py | ad32fead9bca4892e9e2811903d1191f4039d2a2 | [] | no_license | qwad1000/stp | 37b0ce8e4c0f0c0c523f378093f7e3bd6d5915f4 | 95388a7d24deadeeb2f9be19fa4680012fb578cd | refs/heads/master | 2021-01-20T17:14:53.846194 | 2016-06-22T14:24:31 | 2016-06-22T14:24:31 | 61,167,245 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,875 | py | """
Django settings for stp project.
Generated by 'django-admin startproject' using Django 1.9.7.
For more information on this file, see
https://docs.djangoproject.com/en/1.9/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.9/ref/settings/
"""
import os
# Bui... | [
"qwad1000@ukr.net"
] | qwad1000@ukr.net |
f30c3783a1a4e4b219f87f0abc2e42095ca4b8d9 | 8b45e1eda6403f7687970feaec4aa28f9e74d8bf | /feedback/views.py | 6278cbed603bb368e324d0328d40487a60127073 | [] | no_license | git-audo/starthub | 0e560d4bef54306c6661d59964ac561614124915 | ced2ff25c6791ffc7b47e99d0abbc8684b10ff8d | refs/heads/master | 2023-01-21T20:05:30.086088 | 2020-12-02T21:01:35 | 2020-12-02T21:01:35 | 299,434,509 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 766 | py | from django.views.decorators.csrf import csrf_exempt
from django.http import HttpResponseRedirect
from django.shortcuts import render
from feedback.models import Feedback
from .forms import FeedbackForm
import datetime
@csrf_exempt
def new_feedback(request):
if request.method == 'POST':
form = FeedbackFor... | [
"gabrieleghiba@icloud.com"
] | gabrieleghiba@icloud.com |
eca1253cacfe387f0158e74e429a230886e9f470 | be354dd1537282b6066ac109aeb8c0afb3cb6d72 | /code/modelEvalUtils.py | d03c13d7cd0498858b553a9930c7b4312fab0b35 | [] | no_license | nkinnaird/GeneticVariantClassification | 8e24931fb45d8c58868962cbee763899af1571f9 | 93aafb0d03d646ee66a487b0cf235a1d49a15c64 | refs/heads/master | 2023-03-03T14:03:51.455053 | 2021-02-11T15:54:35 | 2021-02-11T15:54:35 | 333,960,096 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,336 | py | from sklearn import metrics
import matplotlib.pyplot as plt
import seaborn as sns
import numpy as np
plt.rcParams['figure.figsize'] = (8, 8)
sns.set(context='notebook', style='whitegrid', font_scale=1.2)
def printMetricsAndConfMat(y_train, y_pred, modelAbrev):
print(metrics.classification_report(y_train, y_pred)... | [
"nickkinn@bu.edu"
] | nickkinn@bu.edu |
f8f06cef7eb7f8000f785ce17005caaadfb5e2b9 | 7241ebc05ce727585224b3a98b0824f99e63627d | /tool/parser/JsonParser.py | d6539c8d86cf5900ad1f23f9402586f492b77105 | [] | no_license | mabenteng/ai-kg-neo4j | ca0cc161244229821e3b89e516fb616828823609 | 713e978ffedda7986245307cace02fb7ec240acd | refs/heads/master | 2021-10-20T03:50:43.583436 | 2019-02-25T14:25:11 | 2019-02-25T14:25:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,037 | py | # -*- coding: utf-8 -*-
# coding=utf-8
"""
create_author : zhangcl
create_time : 2018-07-01
program : *_* parse the parameter and generate cypher *_*
"""
import json
class JsonParser:
"""
Parser of request parameter.
"""
def __init__(self):
"""
initialize local variables.
... | [
"254675123@qq.com"
] | 254675123@qq.com |
bcc9f50e79bc76fc958fb5af4610f1cf265ea29f | a2dc75a80398dee58c49fa00759ac99cfefeea36 | /bluebottle/projects/migrations/0087_merge_20190130_1355.py | 705027f9fe948f888b16eb0437a1f45584ffd9db | [
"BSD-2-Clause"
] | permissive | onepercentclub/bluebottle | e38b0df2218772adf9febb8c6e25a2937889acc0 | 2b5f3562584137c8c9f5392265db1ab8ee8acf75 | refs/heads/master | 2023-08-29T14:01:50.565314 | 2023-08-24T11:18:58 | 2023-08-24T11:18:58 | 13,149,527 | 15 | 9 | BSD-3-Clause | 2023-09-13T10:46:20 | 2013-09-27T12:09:13 | Python | UTF-8 | Python | false | false | 341 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.8 on 2019-01-30 12:55
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('projects', '0086_auto_20190117_1007'),
('projects', '0086_merge_20190121_1425'),
]
... | [
"ernst@onepercentclub.com"
] | ernst@onepercentclub.com |
df3b97760d799a524bc90991a8483636f5148ebe | 6066cafe70d7c8a4f29b92c77578aa4cf8df6208 | /[Client]Praktikum 10 Kegiatan 2.py | 061abe85fba3ed5be6c2899a4e56623763d1f041 | [] | no_license | L200180183/Praktikum_Algopro | a2d74b7af6e932ee1bbe8760e70f5dc9edb60637 | bedd6cdbe12cf66189abe2b45e8e1abf854a01fd | refs/heads/master | 2020-04-01T20:55:29.795001 | 2018-12-20T14:35:14 | 2018-12-20T14:35:14 | 153,627,027 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 402 | py | import socket
hostname = 'localhost'
pesan = ''
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.connect((hostname, 50007))
print "Program komunikasi tentang server"
while pesan.lower() != 'quit':
pesan = raw_input('Command: ')
s.send(pesan)
if pesan.lower() != 'quit':
response ... | [
"noreply@github.com"
] | L200180183.noreply@github.com |
b6cc78babcc620397f669740f31cb9ac205285e7 | 122c0ce4b8709872f8ffa962708b26806a0b41ee | /PackEXEC/PackDATA/SiteVisite.py | c100515d63abbffc93840da36f960328e19c6300 | [] | no_license | Sniper099/WorkTest | de1d6729a01890706053e7c8434aac34421c59c9 | 5377f5cc7d3ed89f597be9ea0e39b8a148656737 | refs/heads/master | 2022-05-30T12:04:15.027020 | 2020-04-22T23:15:50 | 2020-04-22T23:15:50 | 256,840,217 | 0 | 3 | null | null | null | null | UTF-8 | Python | false | false | 302 | py | class SiteVisite:
Vis=['Le Musee Mohammed VI','Musee Belghazi']
def VisiteI(self):
print('------Les Sites qui proposent une visite guidee sont:------\n')
print('\t' ,self.Vis[0], 'Avec le Prix de 50DH \n \t',self.Vis[1], 'Avec le Prix de 20DH\n')
return(True)
| [
"nj.nava.99@gmail.com"
] | nj.nava.99@gmail.com |
4e9bbbac9df318146b90a29763b8c05a6ccbd41b | 73a4a91cfc4db3976266d779e859556a69a8aa73 | /The_initial_exercises/employee_info.py | 8b80bf28f9d243ca0c20b86eb6a1c329c6b797c9 | [] | no_license | fujunguo/learning_python | fe51977dd58ee55264305696f0d5ba31ce4b82ab | 8e29210e8b25f80ac08b99535385f02a6f1ff2c8 | refs/heads/master | 2021-07-09T12:41:06.698406 | 2019-06-12T05:52:04 | 2019-06-12T05:52:04 | 101,965,637 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 420 | py | class Employee():
"""docstring for Employee"""
def __init__(self, firstname, lastname, salary):
# super(Employee, self).__init__()
'''__init__方法接收名、姓、薪水三个参数'''
self.firstname = firstname
self.lastname = lastname
self.salary = salary
def give_raise(self, addtion=5000):
'''
默认将薪水增加5000
但同时也能接受其他薪水增加量
... | [
"william_0416@163.com"
] | william_0416@163.com |
ad2f2987898e888752369a1f058485c8cf258c64 | 2b416e14c109bd22bba94f88f1b46804968619d3 | /Grafy/malejace_krawedzie_najkrotsza.py | 13b9fea115fdd85cb268f0cb74a04fd86254a70f | [] | no_license | zofiagrodecka/ASD | 71ecbb5acc926b22cb31e54e7e028609cfd3f644 | fb1f2359b859effdb68ce2d409f844e7c0f239b7 | refs/heads/master | 2023-08-01T03:18:55.319931 | 2021-09-15T16:13:27 | 2021-09-15T16:13:27 | 406,815,109 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,966 | py | def parent(i):
return i // 2
def left(i):
return i * 2
def right(i):
return 2 * i + 1
def empty(k):
if k[0] == 0:
return True
else:
return False
def heapify(k, i):
l = left(i)
r = right(i)
mini = i
size = k[0]
if l <= size and k[l][1] < k[mini][1]:
... | [
"69384237+zofiagrodecka@users.noreply.github.com"
] | 69384237+zofiagrodecka@users.noreply.github.com |
b19523f9a715f2ca411b6ca4ed4c5b164df4a27a | 00dfeccd2f1b934b945ff125b7a523e05107cc3c | /ch1/problem1.9.py | 8a63503bb69a73b6604e929391e3946357da1b39 | [] | no_license | anamikasen/ctci_solutions | 2de379257b4800a700c1032421d38fd2028c53f0 | 7375f94b7c00baf9e084b70c7326878753902ddd | refs/heads/master | 2020-03-29T04:26:11.165885 | 2018-10-09T15:41:14 | 2018-10-09T15:41:14 | 149,531,502 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 313 | py | def main():
return isRotation(s1, s2)
def isRotation(s1, s2):
if len(s1)!=len(s2):
return False
else:
return isSubstring(s1, s2)
def isSubstring(s1, s2):
s1 += s1
return s1.find(s2)>-1
if __name__ == "__main__":
s1 = "body"
s2 = "dybo"
print(isRotation(s1, s2))
| [
"anamika13sen@gmail.com"
] | anamika13sen@gmail.com |
7023e5ecdc00bc0113342ae94985d9d03e3efcba | afc693a1095f99cc586770fbd5a65dd40f2d822f | /docs/conf.py | 82c0e03d8f2804c1c403a6bc1943dfa63271cb9d | [
"LicenseRef-scancode-homebrewed",
"Beerware"
] | permissive | ndkoch/ihatemoney | 974f3b75d3bc2519d3c17f492d221da9fa780236 | 51bc76ecc5e310602216fb8eaa2ede2ab43b3d00 | refs/heads/master | 2020-09-27T00:03:31.320035 | 2019-12-09T00:19:22 | 2019-12-09T00:19:22 | 226,371,920 | 0 | 2 | NOASSERTION | 2019-12-09T00:19:23 | 2019-12-06T16:48:41 | Python | UTF-8 | Python | false | false | 266 | py | # coding: utf8
import sys, os
templates_path = ["_templates"]
source_suffix = ".rst"
master_doc = "index"
project = "I hate money"
copyright = "2011, The 'I hate money' team"
version = "1.0"
release = "1.0"
exclude_patterns = ["_build"]
pygments_style = "sphinx"
| [
"alexis@notmyidea.org"
] | alexis@notmyidea.org |
57193af10c81f5ef76431078de1981e625175b91 | f0279d8dfae89c6a6830023dfa353f0963914554 | /passwordgenerator.py | 2925da8a81c6a40c06d07154b9192cd79abede10 | [] | no_license | NILESH-17/Password-Generator | 5dd69c12f8c7227a9361735343ec391900faa462 | 3045d21da1a48320e96fd622dd920c8d266118e8 | refs/heads/main | 2023-01-29T18:41:30.995151 | 2020-12-14T08:03:58 | 2020-12-14T08:03:58 | 321,275,028 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 244 | py | import random
bigletters="ABCDEFGHIJKLMNOPQRSTUVWXYZ"
smallletters='abcdefghijklmnopqrstuvwxyz'
symbol='_-,:'
numbers='123456789'
all=bigletters+smallletters+symbol+numbers
length=16
password =''.join(random.sample(all,length))
print(password)
| [
"noreply@github.com"
] | NILESH-17.noreply@github.com |
a138938f68658430a7186f241fa868fec2590e61 | 865bd5e42a4299f78c5e23b5db2bdba2d848ab1d | /Python/322.coin-change.135397822.ac.python3.py | 5e9a0619060981526f9753a831b848d95c17ab70 | [] | no_license | zhiymatt/Leetcode | 53f02834fc636bfe559393e9d98c2202b52528e1 | 3a965faee2c9b0ae507991b4d9b81ed0e4912f05 | refs/heads/master | 2020-03-09T08:57:01.796799 | 2018-05-08T22:01:38 | 2018-05-08T22:01:38 | 128,700,683 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,207 | py | #
# [322] Coin Change
#
# https://leetcode.com/problems/coin-change/description/
#
# algorithms
# Medium (26.58%)
# Total Accepted: 92.2K
# Total Submissions: 346.9K
# Testcase Example: '[1]\n0'
#
#
# You are given coins of different denominations and a total amount of money
# amount. Write a function to compute t... | [
"miylolmiy@gmail.com"
] | miylolmiy@gmail.com |
e599683e6de6a34f420ee2c585761d68a85808b2 | 62db602fe91e6ca7eb3cd877819da3d30c964c3a | /perfis/urls.py | 2abe1a9ff2e8aefe218afdd466ec59615952d986 | [] | no_license | BiancaArantes28/django-alura | 505ea2fabc0f65db477a7ccef2957b29a44652e1 | c445e342cf922102e03a6b8ff9d90ffe43d06c9e | refs/heads/master | 2021-01-20T02:12:00.718799 | 2017-05-12T18:16:26 | 2017-05-12T18:16:26 | 89,386,814 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 421 | py | from django.conf.urls import patterns, include, url
from django.contrib import admin
from perfis import views
urlpatterns = patterns('',
url(r'^$', views.index, name='index'),
url(r'perfis/(?P<perfil_id>\d+)$',views.exibir, name='exibir'),
url(r'^perfis/(?P<perfil_id>\d+)/convidar$', views.convidar , ... | [
"biancaarantes28@gmail.com"
] | biancaarantes28@gmail.com |
152b8449140b19f5fa06511d121dd6d4982fbef3 | 5fce342c9e598ac7ef2ab06047081db4d6661b9d | /python/code-festival/2014/b.py | 84db2177afeb5d4ee3d43f2be922828eec9c5434 | [] | no_license | kp047i/AtCoder | 679493203023a14a10fca22479dbeae4986d2046 | 276ad0fab8d39d5d9a1251bb2a533834124f3e77 | refs/heads/master | 2022-07-26T21:49:29.490556 | 2020-06-28T14:28:12 | 2020-06-28T14:28:12 | 208,727,698 | 0 | 0 | null | 2022-06-22T02:11:01 | 2019-09-16T06:37:50 | Python | UTF-8 | Python | false | false | 225 | py | n = input()
sum_odd = 0
sum_even = 0
for i in range(len(n)):
if i % 2:
sum_odd += int(n[i])
else:
sum_even += int(n[i])
if len(n) % 2:
print(sum_odd, sum_even)
else:
print(sum_even, sum_odd)
| [
"takayuki.miura28@gmail.com"
] | takayuki.miura28@gmail.com |
e82fc6e5d49682038fe7616476667e6a70b3b716 | 7c58d5001325296a7d331dfa64ec2bd4672bf937 | /canvas_crop/canvas_crop.py | f4dc38dd5f1401e11c97d1a656549a5a424e23fa | [] | no_license | madara-tribe/tkinter-ML-GUI | 3f2bd260bd7f04065cde7baeb9aadfe9a5c6eba4 | f8d0ed6be887be3b40d6ca8a73acb9af46a29fe6 | refs/heads/main | 2023-08-06T18:05:13.206550 | 2021-10-12T05:42:02 | 2021-10-12T05:42:02 | 404,902,483 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,290 | py | import tkinter
import tkinter.filedialog
from PIL import Image, ImageTk
class Model():
# 画像処理前か画像処理後かを指定
BEFORE = 1
AFTER = 2
def __init__(self):
# PIL画像オブジェクトを参照
self.before_image = None
self.after_image = None
# Tkinter画像オブジェクトを参照
self.before_image_tk = Non... | [
"hagiharatatsuya@hagiharatatsuyanoMacBook-Air.local"
] | hagiharatatsuya@hagiharatatsuyanoMacBook-Air.local |
ceabe5894c58bfbcbf63efe4e773e09601fdbe2f | b9bd88c0f7034acdf1c2b79c13afe537a5027460 | /cellular_modem/simcom/sim800.py | 1c5b256707fd655d72e4c9baa8449b94731284a5 | [
"MIT"
] | permissive | andreaskuster/cellular-modem | 8d769e0b27e8de7538c9561bd0051f0a44a32bb6 | a8b662b65a596f9c2ca73a42e2b8dbb39552a177 | refs/heads/master | 2020-12-26T12:50:13.456423 | 2020-04-06T21:33:38 | 2020-04-06T21:33:38 | 237,514,324 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,819 | py | #!/usr/bin/env python3
# encoding: utf-8
"""
MIT License
Copyright (c) 2020 cellular-modem, Andreas Kuster
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without ... | [
"mail@andreaskuster.ch"
] | mail@andreaskuster.ch |
59ec3812dd12a3af309dfdcc37161df0ee23d29f | 2e89ff0a41c5ae40bc420e5d298504927ceed010 | /anything/users/migrations/0001_initial.py | fdaae19b9ff03d88bd74ac05938ab739e8e817a4 | [] | no_license | darkblank/anything | 6dc676b7a099ddfce0c511db9234715a4f0ca66c | 17589f8988ed1cb6fa049962bfd3fbe57c392fba | refs/heads/master | 2020-03-11T09:40:32.608171 | 2018-05-12T09:20:27 | 2018-05-12T09:20:27 | 129,918,989 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 989 | py | # Generated by Django 2.0.3 on 2018-05-11 23:36
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='User',
fields=[
('id', models.AutoField(aut... | [
"darkblank1990@gmail.com"
] | darkblank1990@gmail.com |
e851b85d403874ebdcdf93dea55a5b22953f360c | eed034d151bea6702cd35f48e9b9440f9625d167 | /Rpi-Python_SourceCode/myUART.py | 7e8c1616a7bd6750855d2caf51d32871401cd2be | [] | no_license | MazenOsamaFarouk/ITI_GP_Smart_Meter | 17c5550be8787d26ae82857d7af9d52911ea7b5b | 2571be2edbcbb5e5a091d385e502e248ded4469e | refs/heads/main | 2023-03-23T06:44:48.778965 | 2021-03-19T17:26:48 | 2021-03-19T17:26:48 | 340,630,157 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,784 | py | # sudo stty -echo -F /dev/ttyS0 115200 command to change baudrate
# of com-port
# the -echo flag prevents the tty from sending back "echoing"
# the recieved input
import serial
import logging
logging.basicConfig(filename="meter.log", level=logging.DEBUG, format="%(asctime)s:%(levelno)s:%(message)s" )
COM_PORT = "/... | [
"mazen.osama.017@gmail.com"
] | mazen.osama.017@gmail.com |
c83ab40bba1b9903dab1492e228360c3e913ad50 | 57250f6f60d1c31bbda76fd6fa2724d0987c6833 | /contrib/spendfrom/spendfrom.py | d4b5d6a795c2031b8f71ca604f47ab988606830e | [
"MIT"
] | permissive | hivprojekt/hiv | 6ca786fa93121de2ca3d210e9e1ef2dfdde5c7f2 | 933f01e6a467a3dd9d781f2d5e23ada8c167a3bb | refs/heads/master | 2021-06-26T17:30:30.973415 | 2017-09-09T22:51:08 | 2017-09-09T22:51:08 | 102,989,492 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 10,055 | py | #!/usr/bin/env python
#
# Use the raw transactions API to spend bitcoins received on particular addresses,
# and send any change back to that same address.
#
# Example usage:
# spendfrom.py # Lists available funds
# spendfrom.py --from=ADDRESS --to=ADDRESS --amount=11.00
#
# Assumes it will talk to a bitcoind or Bit... | [
"hivdevel@yandex.ru"
] | hivdevel@yandex.ru |
03ecf964bb2cbdcb3a5662a899748372d076cd58 | 4063c54d9480e37674e5f752f65df1d8e948877b | /project_48.py | f1dd136ebe9ae7b9bb2191b9727cdc521535c5c6 | [] | no_license | RiyanMohammed/projects | 6e5842ebda3b611721c8e7f05e4b2ff1a9b62ba4 | b0e0c3a9bebcea55dc672cd7f5f2a28a2ae14a9e | refs/heads/main | 2023-08-14T15:33:37.171221 | 2021-09-24T03:08:15 | 2021-09-24T03:08:15 | 409,812,312 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,307 | py | # -*- coding: utf-8 -*-
"""Project 48
Automatically generated by Colaboratory.
Original file is located at
https://colab.research.google.com/drive/1dhKYYmtOcXqKT7p6mr6BB6ygBSxP5uBv
### Instructions
#### Activity 1: Calculate the probability of a random variable
Calculate the probability of solving 35 questions... | [
"noreply@github.com"
] | RiyanMohammed.noreply@github.com |
615bcc7e7e8afc56a8dc513da89e9d4f4faab88d | 83f78318d1a85045b0e29f3fed10e8ba3e5c107c | /throwback/root.py | a5a39de95633bd252ed2a43ca57c8e352c04ff32 | [] | no_license | kadrlica/throwback | c396d00230ec0e6ed4ce8c31ac6cd12e2ee76690 | c628acb9716aad433c49de4e2f71c54d2a0bc83e | refs/heads/master | 2020-03-24T09:33:03.127648 | 2018-08-02T15:04:00 | 2018-08-02T15:04:00 | 142,631,826 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,349 | py | #!/usr/bin/env python
"""
Generic python script.
"""
__author__ = "Alex Drlica-Wagner"
import matplotlib
from collections import OrderedDict as odict
# A modern version (v6-14-02) of the Palette from TColor...
# https://github.com/root-project/root/blob/2762a32343f57664b42558cd3af4031fe2f4f086/core/base/src/TColor.cx... | [
"kadrlica@fnal.gov"
] | kadrlica@fnal.gov |
a4ddeb30ebe9368c8a592f4757fdb8780d01cdf0 | 34301251486d79caf7d07bfacf241cec57e30c61 | /PooIII.py | b63a447d52d1802f6db177d24dba83fff8ba7637 | [] | no_license | quirogaluistomas/PythonTest | 055255551459e818c878f49666dde37c3c0eee77 | 612478923f365573b0b313907f184c439df8dad5 | refs/heads/master | 2022-12-26T12:43:17.358500 | 2020-10-15T13:44:19 | 2020-10-15T13:44:19 | 288,061,316 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,081 | py | class Vehiculos():
def __init__(self,marca,modelo):
self.marca = marca
self.modelo = modelo
self.enMarcha = False
self.acelera = False
self.frena = False
def arrancar(self):
self.enMarcha = True
def acelerar(self):
self.acelera = True
def ... | [
"quirogaluistomas@gmail.com"
] | quirogaluistomas@gmail.com |
fdccefb8b24772533cbe29a0df527b73e97df056 | 9c6546b424d51fac8f0950578014c0d6ac96b62e | /homework/CountNumber.py | 4ed08a0ad33b3f5111e82b213a43ad557a51e0bb | [] | no_license | dandan1232/pythonclass | 2661f3dd4ed4667207df8845999ab5633b850e52 | 04096c249c298e093a536f9718b142b4452c876b | refs/heads/main | 2023-08-22T02:48:27.145969 | 2021-10-21T06:49:12 | 2021-10-21T06:49:12 | 402,329,938 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 658 | py | # -*- coding: utf-8 -*-
# @Time : 2021/10/8 14:28
# @Author : Lindand
# @File : CountNumber.py
# @Description :统计字符串个数
# python 输入一行字符,分别统计出其中英文字母、空格、数字和其它字符的个数。
s = input("请输入字符串:")
alphaNum = 0
spaceNum = 0
numbers = 0
otherNum = 0
for str in s:
if str.isalpha():
alphaNum += 1
elif str.isnumer... | [
"345652127@qq.com"
] | 345652127@qq.com |
10b33dc86f16462895fcf09221b4b5715675f34a | da0728ae02ee1178bf97d976c2c589454a871742 | /apps/exam/models.py | 7d3d8dde6b38baae6e6a3b4cb75340c2959a9624 | [] | no_license | luffyliu1993/wish_lists | 9f330e12fbf0d3034ee14fdfdd0d3a582e2924d6 | 91473160b007db155a7e110088dad931d94f240a | refs/heads/master | 2020-07-03T14:17:59.999168 | 2016-11-19T08:36:28 | 2016-11-19T08:36:28 | 74,164,399 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,350 | py | from __future__ import unicode_literals
from django.db import models
import bcrypt, re
# Create your models here.
class UserManager(models.Manager):
def login(self,session,user_name,password):
messages = {'errors':[]}
if len(user_name) == 0:
messages['errors'].append('Please enter an us... | [
"zekailiu1993@gmail.com"
] | zekailiu1993@gmail.com |
dfbe47a2b098d23c9dc19dd09ea91b39f17d1ced | dd2171786e3dfb8458237af24beef7470336a046 | /scripts/tile-add-extended-cols.py | 457ae497e81a519673cd34248bebb873341389af | [
"MIT"
] | permissive | sweverett/Balrog-GalSim | d0a9401e45ef2b70efe4ed186ac13f893dadd3bc | 2e20abaff70dbe59634c9f18d87ceb75b41d63fe | refs/heads/master | 2022-08-27T22:09:06.405636 | 2022-08-09T19:18:47 | 2022-08-09T19:18:47 | 101,892,741 | 5 | 9 | MIT | 2022-08-09T19:18:48 | 2017-08-30T14:39:16 | Python | UTF-8 | Python | false | false | 5,988 | py | """
Add EXTENDED object classifier columns to Balrog outputs.
For Y3, see:
https://cdcvs.fnal.gov/redmine/projects/des-y3/wiki/Y3_Extended_Classifier_v2
"""
import numpy as np
import os
import fitsio
from argparse import ArgumentParser
parser = ArgumentParser()
parser.add_argument(
'catfile',
type=str,
h... | [
"spencerweverett@gmail.com"
] | spencerweverett@gmail.com |
8272dedd8b444e882ee9e14ac62bff2a78249d40 | ecb8dd72612b2a670235fafea53f142173f25b5e | /book.py | bcd89b4e43bccd23151a9e37f3aea86cd78d63f9 | [] | no_license | ido2267/Python_Yaniv_final | bb5f2808c6a1c908b9914067c142a614bae1de7e | 1e90d3df00b1ff71615328d822f62bc9ec9f6983 | refs/heads/master | 2020-04-23T14:35:01.173049 | 2019-02-18T07:42:04 | 2019-02-18T07:42:04 | 171,236,424 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 683 | py | class Book():
def __init__(self, bookName,writterName ,number_of_pages):
self.__bookName = bookName
self.__writterName = writterName
self.__number_of_pages = number_of_pages
def __str__(self):
return ("'{}' by {}, {} pages \n"
.format( self.__bookName,self.__wr... | [
"ido2267@gmail.com"
] | ido2267@gmail.com |
7c7591d11d06e75c548d9a4e2b88875b73d167e8 | 41409584b4381abc3dfd7db9c08d9a1bb2c0fbb5 | /OuiCheff/serializers.py | 4317c510fd03883ceacbc449d73739b502f78818 | [] | no_license | 0ndreu/cookbook | 418d25cb9cb9060eeb6f82c7e4a95bf715985c1e | b22ff0cd78414249e4912d839778d6ca7c11fd71 | refs/heads/master | 2022-12-14T21:32:15.112358 | 2019-12-10T02:09:45 | 2019-12-10T02:09:45 | 217,125,329 | 0 | 0 | null | 2022-12-11T10:35:58 | 2019-10-23T18:23:06 | Python | UTF-8 | Python | false | false | 2,580 | py | from rest_framework import serializers
from .models import *
class UserSerializer(serializers.ModelSerializer):
""""
Сериализация пользователя
"""
class Meta:
model = User
fields = ('id', 'username')
class ProductSerializer(serializers.ModelSerializer):
"""
Сериализация проду... | [
"andrey.artyushov@yandex.ru"
] | andrey.artyushov@yandex.ru |
e1fa257261bc5d47b7097ab9dcd9e881f4142e17 | 667b09b40e1d7cdb166f49b1e13b5f726758cd2f | /djangodev/lib/python2.7/site-packages/rest_framework/utils/encoders.py | adc83e574aac44169f5ad77abd9302a5782f21e5 | [
"MIT"
] | permissive | openworm/movement_validation_cloud | 5f5e1c2569948ee901f4aca574a7e07f252f99fa | f0794d4e800b6594c89c1ae3129949b19bd79ce7 | refs/heads/master | 2021-01-18T06:20:21.660679 | 2017-05-13T07:43:23 | 2017-05-13T07:43:23 | 30,842,893 | 1 | 0 | null | 2015-02-15T21:28:29 | 2015-02-15T21:28:29 | null | UTF-8 | Python | false | false | 4,549 | py | """
Helper classes for parsers.
"""
from __future__ import unicode_literals
from django.db.models.query import QuerySet
from django.utils import six, timezone
from django.utils.encoding import force_text
from django.utils.functional import Promise
from rest_framework.compat import OrderedDict
import datetime
import dec... | [
"joe.bowen@toptal.com"
] | joe.bowen@toptal.com |
cf15b9c34c3a33e2206bb3e10dadb2ed97d43d14 | 353ab54435ef77b395de476a38f5a9cc253c1b9c | /src/api/urls.py | 19cd94292ecf1e027086a7917c07dd807423903f | [] | no_license | mymacy/django-rest-template | e90d4a462a3f7518c510d15a70a6098d2b79fe33 | 58a8fcd580dd534799dbe19466374e798e6804db | refs/heads/master | 2020-03-22T09:44:07.824825 | 2018-07-05T13:56:23 | 2018-07-05T13:56:23 | 139,208,531 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,737 | py | # Urls are simply redirect the request to the right view
from django.urls import re_path, path, include
from . import views
'''
########################## Custom Email templates
'''
from djoser.email import *
from settings import BASE_DIR
import os
template_path = os.path.join(BASE_DIR, 'api/templates/email')
Act... | [
"marcelalbrink@googlemail.com"
] | marcelalbrink@googlemail.com |
1352defb4615592e809e5d9cf707e497e6f14e13 | 964774524786c8fc07031498ded56947d937ad63 | /Spark/Events/SparkEvents.py | 6d470ec2151ed5d8caa19a7954f5afde50b5ac29 | [] | no_license | cabhi/SparkGraph | 9102080242c0dea4425a96370a1dbc00ed2172a3 | bebd46196872b527dcf56d8f1757208c4a11ede9 | refs/heads/master | 2021-01-01T05:21:14.812171 | 2016-05-25T07:57:51 | 2016-05-25T07:57:51 | 59,642,587 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 990 | py | import abc
import json
class SparkEvents(object):
"""docstring for SparkEvents"""
__metaclass__ = abc.ABCMeta
@abc.abstractmethod
def getStartTime(self):
"""Returns the ingredient list."""
raise NotImplementedError
@abc.abstractmethod
def getEndTime(self):
"""Returns ... | [
"abhishek.choudhary@guavus.com"
] | abhishek.choudhary@guavus.com |
6d46122b44155acca766720a29c0b494099568c6 | cde8a46ede72a4cbd4bb19c765e590c6e2897fb1 | /mIRCColors.py | a6a06f993b9150521323ab7203dff8ef1779c3a0 | [] | no_license | dom96/nyx | 39d6b96654ea54533112c59c81e66af743b26e5b | 6d1bbd53e80fefab1de2429d4fd6d72dfc3cccf0 | refs/heads/master | 2016-09-10T10:01:35.245151 | 2013-03-06T22:34:30 | 2013-03-06T22:34:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,150 | py | #!/usr/bin/env python
"""
Nyx - A powerful IRC Client
Copyright (C) 2009 Mad Dog Software
http://maddogsoftware.co.uk - morfeusz8@yahoo.co.uk
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either v... | [
"dominikpicheta@googlemail.com"
] | dominikpicheta@googlemail.com |
5389b7b7a0af6813f7e9bc479671cd79ef29c03d | e6795a438d0d45ad590e4867fc1d674e6a1b2433 | /config.py | d97fe414d8d7f98e0a2ec4f3e3b72a69f31b2293 | [] | no_license | snagiri/ECE285_Jarvis_ProjectA | ef96e49764f1c0569ad940a7416cb7185b28f2eb | 73ae0ee9ba5c98e4160f1b0c77a2879513e66367 | refs/heads/master | 2020-06-01T20:56:21.502596 | 2019-06-10T03:06:07 | 2019-06-10T03:06:07 | 190,922,720 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,243 | py | # paths
qa_path = 'qa_path' # directory containing the question and annotation jsons
train_path = '/datasets/home/49/049/s2solomo/show_tell2/show-attend-and-tell-tensorflow/image/train2014' # directory of training images
val_path = '/datasets/home/49/049/s2solomo/show_tell2/show-attend-and-tell-tensorflow/image/val20... | [
"s2solomo@eng.ucsd.edu"
] | s2solomo@eng.ucsd.edu |
4d07a112b1fd0deef9cd0bc0d3083f52c4acf5cd | 5b24eaa4b38778a2cc794d038f074bf03a20b63e | /Previous versions/test.py | 9c19fcd447a05546e27d6bccd40e5c5b9e46e3a9 | [] | no_license | BH4/Isolation | daefb2d230397c57da9ace9ea2f833a20b1a946c | d75ae2d4baced82e80f3097a55fbec8fbbb7bedd | refs/heads/master | 2021-01-13T00:56:31.745119 | 2019-02-05T09:10:03 | 2019-02-05T09:10:03 | 48,250,932 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,417 | py |
from random import randint
from copy import deepcopy
def legal(board,pos):
if pos[0]<0 or pos[1]<0 or pos[0]>=7 or pos[1]>=7:
return False
if board[pos[0]][pos[1]]==0:
return True
return False
def neighbors(board,pos):
n=[]
moves=[(0,1),(1,0),(0,-1),(-1,0),(1,1),(-1,1),(-1,-1),(1,... | [
"brycefore4@gmail.com"
] | brycefore4@gmail.com |
b087c7766a3e59b7abbbc7a25cb66a604aded1e7 | b85c0eb247ced711b6ea1a89e2a2878160b5ab80 | /camera/renameFile.py | 042018d04b9e151bbb5c95b01feccd05ea220b6a | [] | no_license | tianhz2/glimpsecam | 188ee863d9628b9f523b2383893c8561ba36c878 | da1427b4b5ea2cac6e274b7d5b315da4026d20ba | refs/heads/master | 2020-03-25T16:47:35.261834 | 2018-08-15T03:20:55 | 2018-08-15T03:20:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 274 | py | import glob, os
def rename(path, number):
list = glob.glob(path + '/*')
filename = max(list, key=os.path.getctime)
filepath = os.path.split(filename)
os.rename(filename, filepath[0] + '/%05d' % number + filepath[1])
return filepath[0] + '/%05d' % number + filepath[1]
| [
"jungo@uw.edu"
] | jungo@uw.edu |
e1e30f6764ae84523ceb90b72bfa3d571d25b9ad | 8bb4357ce54bdcc2ac98ec81d2afa344f5a9fcab | /qq/config_helper.py | 3c4d4a66faee1fd268fd06f657c39f59ae71d1e0 | [] | no_license | pfstudio/pf_bot | 8ed1627833916982e1f6de110cc00768bfd1a036 | 562a641cb96f59f740ed1da1fcd6b8ed1fe0974a | refs/heads/master | 2023-08-21T17:21:31.282863 | 2021-06-12T07:41:02 | 2021-06-12T07:41:02 | 376,000,264 | 1 | 0 | null | 2021-06-12T07:41:02 | 2021-06-11T11:17:58 | Python | UTF-8 | Python | false | false | 1,424 | py | # coding: utf-8
import json
from const import JobType
class Config(object):
config_name = None
request_url = None
qq_group_ids = None
template = None
data = None
job_type = None
class ConfigHelper(object):
# 通用获取配置字段
@classmethod
def get_config(cls, config_type):
"""
... | [
"yangfengchang@bytedance.com"
] | yangfengchang@bytedance.com |
eaa0908d459a075a301bd9ddf74dd8ace6758a06 | 9f637e68051d422eb48224a9283a304f64dacbb5 | /ex097.py | 5385f9c355ac7c08a125a454195760704dbbd260 | [] | no_license | rodrigolnaves/CursoemVideo | 85d8ff0a815047507c3d5eef87ae18660fb2a049 | 1c420426e2edc91589081cd7bddd874dc9458284 | refs/heads/master | 2023-04-21T14:18:52.240607 | 2021-05-08T17:30:39 | 2021-05-08T17:30:39 | 365,571,616 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 180 | py | def escreva(msg):
tam = len(msg) + 4
print('~' * tam)
print(f' {msg}')
print('~' * tam)
escreva('TESTE')
escreva('ESCREVENDO UM TEXTO BEM GRANDE')
escreva('Oi')
| [
"rodrigolnaves@hotmail.com"
] | rodrigolnaves@hotmail.com |
599353cfcafe9640d4cf07b868040b04a083b255 | 8dfee92f0a6aeceabe9aec77757e9b6155388be5 | /5-1.py | cfe8185096a393f9c870f7d6d59f4841fcd1b494 | [] | no_license | MaximeGoyette/adventOfCode2020 | 6c11ba54eb82be41837c3199194a9827b5176bb9 | 2efc36f162ffed2e317158008cf506bf5ccb886c | refs/heads/master | 2021-01-04T13:53:22.744417 | 2020-12-18T18:58:16 | 2020-12-18T18:58:16 | 322,681,088 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 255 | py | data = open('5.txt').read().split('\n')
m = 0
for seat in data:
row = int(seat[:7].replace('F', '0').replace('B', '1'), 2)
col = int(seat[-3:].replace('L', '0').replace('R', '1'), 2)
_id = row*8+col
if _id > m:
m = _id
print(m)
| [
"maxime.goyette@flare.systems"
] | maxime.goyette@flare.systems |
fe9df61a2e258863b6e2aee9719643e854ebe04c | 11ff5d1651b1a3972de8d7fe369943166cb1e8dd | /lab9/backend_squares/squares/squares_app/tests/e2e/test_e2e.py | 3c2864a8f70764ecee0fdd0d4badaa97762aeee1 | [] | no_license | ilyalevushkin/computer_networks | b0eb4fa1d20a381480b6b278c01a753a98bf23ee | 3fc63850ef27779404b8d3fd054f194b78c7ee21 | refs/heads/main | 2023-05-25T11:19:06.055725 | 2021-06-16T12:58:12 | 2021-06-16T12:58:12 | 316,938,267 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,684 | py | from http import HTTPStatus
from django.test import TestCase
import os
from copy import deepcopy
import json
from django.contrib.auth.models import User
from ...models import Users, PullPlayers, Games
class GameWithPoolUserTest(TestCase):
@classmethod
def setUpTestData(cls):
#arrange
cls.pass... | [
"ilyalyov@mail.ru"
] | ilyalyov@mail.ru |
29a922186f04f76976f5e5ecca73dd93463543b9 | e0ad9016353b53372cc2129fd8e7b5518429f127 | /python/drawResolutionCFD.py | 26c77ad6da88ffb6d665d4265d7c350eb3c373b0 | [] | no_license | amartelli/iMCP_TB | 314bba87879f85d140140701c40520465514e38e | 7a90ee6f6e6007bc8998e447492d6eb89d169b25 | refs/heads/master | 2020-12-07T05:24:48.436877 | 2015-07-03T04:34:52 | 2015-07-03T04:34:52 | 38,692,771 | 0 | 0 | null | 2015-07-07T14:23:47 | 2015-07-07T14:23:47 | null | UTF-8 | Python | false | false | 771 | py | #!/usr/bin/python
import sys
import os
import commands
from commands import getstatusoutput
import datetime
import argparse
import string
if __name__ == '__main__':
os.system('./drawResolutionCFD.exe HV12')
os.system('./drawResolutionCFD.exe HV1')
os.system('./drawResolutionCFD.exe HV2')
os.system('./dr... | [
"brianza@hercules.mib.infn.it"
] | brianza@hercules.mib.infn.it |
a09adeed122ae58c69e4189c37b3aee9ca2aaeab | f5112d00a1068ea175ae4d44485b0c27970b85cb | /blog/urls.py | 5979a1bdbce68aaddcceab7df3166bb6dd481a78 | [] | no_license | nilanginexture/first-blog | 8261c15bbca1484e56c77dfe456f6e8e502f3e4e | 9a67945a1895c9a717167a32b6d254554fbf8018 | refs/heads/master | 2021-01-19T14:24:26.924701 | 2017-04-13T12:07:54 | 2017-04-13T12:07:54 | 88,159,048 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 404 | py | from django.conf.urls import url,include
from django.views.generic import ListView, DetailView
from blog.models import Post
urlpatterns = [
url(r'^$', ListView.as_view(
queryset=Post.objects.all().order_by("-date")[:25],
template_name="blog/blog.html")),
url(r'^(?P<pk>\d+)$', De... | [
"noreply@github.com"
] | nilanginexture.noreply@github.com |
38da11191a2e3dba557536e648c3a9195434ea0c | a9e200ca23b4da59cd8aa34d08d817a7810c7855 | /Sorting/Quicksort.py | 44ca7d09192d3230a666fcf1e610a82962ed4948 | [] | no_license | Abhijith250/Codes-DS | 602efbf97f0189dce55071d2346d1ea456e54fcd | 401aa68b5594a93944ac039f12fc02f3b640c1f4 | refs/heads/main | 2023-07-04T01:44:31.756165 | 2021-08-09T15:35:47 | 2021-08-09T15:35:47 | 303,723,443 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 595 | py | def partition(a,si,ei):
pivot=a[si]
c=0
for i in range(si,ei+1):
if a[i]<pivot:
c=c+1
a[si],a[si+c]=a[si+c],a[si]
index=si+c
i=si
j=ei
while i<j:
if a[i]<pivot:
i=i+1
elif a[j]>pivot:
j=j-1
else:
... | [
"noreply@github.com"
] | Abhijith250.noreply@github.com |
a646f736f2a7b33cfab0bd7bff97e2ca1026d8a6 | a83de5827c8ff594bb390fdcdf1ef5f65e6e6634 | /src/directconn/client.py | 1c2b9aad4d05b05ab52d619c3720f3ca46cb2d90 | [] | no_license | EthanBK/file_system_design | 29a7b6e8d95019fb78f2c54e3fd26d3066d38e71 | d2bea06b956bc62f90efa8163629a622f5f916d0 | refs/heads/master | 2020-05-02T10:46:32.414123 | 2019-03-20T19:14:31 | 2019-03-20T19:14:31 | 167,441,978 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 860 | py | #!/usr/bin/env python3
import os
import sys
import argparse
import rpyc
from threading import Thread
from fuse import FUSE
from fuseFunction import FuseOperation
if __name__ == "__main__":
parser = argparse.ArgumentParser(description="Distributed file system client")
parser.add_argument('-v','--virtual', req... | [
"chezhou@ucdavis.edu"
] | chezhou@ucdavis.edu |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.