blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 213
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 246
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
dc6654c8b29354bae2c8124eca17c8df897b3151 | 4169f7c1917f6c5176bbe4102ec913c221b03221 | /cases/squirrel.py | cbaf0b42768b6995148ea0ca63e2e9db5226c39e | [] | no_license | kolun4ik/hight_sch_prog | e68a92797274a1779493d550965e6a988495ca40 | 8f7b8281767b06a328d2bbde479f80f8d61f9af5 | refs/heads/master | 2021-01-05T08:43:22.959298 | 2020-02-27T17:23:28 | 2020-02-27T17:23:28 | 240,959,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 553 | py | #!/usr/bin/env python3
def squirrel(N):
"""Function return first number of factorial(N)"""
def factorial(num):
"""Recursive calculate factorial N"""
if type(num) == int and num >= 0:
result = lambda num: result(num - 1) * num if num > 0 else 1
return result(num)
... | [
"11_ka@rambler.ru"
] | 11_ka@rambler.ru |
b767ca2840715076e2f253752baa84e527c57070 | 48644eee6f07514617d539d4c029988f183bccd4 | /source/DB/DB.py | e8e093b5b952d0b144d238dd2aefae948c97d5f3 | [] | no_license | maksiplus19/db_coursework_client | ad2895fb5b59d05be0005676c248189b47727582 | dd6e1a5e04ff16a70d438ea0cc4eb6382cbd457e | refs/heads/master | 2020-09-05T11:21:02.235094 | 2019-11-10T11:52:58 | 2019-11-10T11:52:58 | 220,088,693 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,366 | py | import hashlib
from typing import List
from PyQt5.QtSql import QSqlDatabase, QSqlQuery, QSqlTableModel
from PyQt5.QtWidgets import QMessageBox
from source.Show import Show, Episode
def get_hash(password: str):
return hashlib.new('sha256', bytes(password, 'utf8')).hexdigest()
class DB:
def __init__(self):
... | [
"Niklvitoz1"
] | Niklvitoz1 |
cad61e5b6b55ee980d989c5409aed0a212af4692 | 2e45b85f471c2e934b66ac7a6e15706c18c67dd0 | /main/urls.py | d587b41cbdde1f22e80c17e6098f0ac20bc0bbf5 | [] | no_license | atmaniali/RestFrameWorkTuto | 6d6ad59f0894edb9052d2bd0eb8688431373f1ea | 3489fa1f7d173da5018926ba3311eb2d7fd9fad3 | refs/heads/master | 2023-07-18T06:59:34.987217 | 2021-08-27T13:24:47 | 2021-08-27T13:24:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 51 | py | from django.urls import path
urlpatterns = [
] | [
"atmaniali97@gmail.com"
] | atmaniali97@gmail.com |
5282140cec29c877becb1961b4e358217fbf6af4 | c18b8b690a97ccc43072a890a28ba0011aa82a52 | /algorithm/剑指Offer/Offer06-从尾到头打印链表.py | ee8166ff12c28c11bd6e0c5e05ec21cccfadeb9b | [] | no_license | sudorm1023/job-interview-task | 8a6ad070384721e47c1b9737dbf29c4658fadc73 | a3f5ab4bb1dc54ebee193978bf9be45c3aef6742 | refs/heads/main | 2023-08-11T07:18:57.704588 | 2021-09-12T03:32:54 | 2021-09-12T03:32:54 | 404,328,723 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 431 | py | #!/usr/bin/env python3
from typing import List
# Definition for singly-linked list.
class ListNode:
def __init__(self, x):
self.val = x
self.next = None
class Solution:
def reversePrint(self, head: ListNode) -> List[int]:
ans = []
if not head:
return ans
... | [
"80558239+hackerAlice@users.noreply.github.com"
] | 80558239+hackerAlice@users.noreply.github.com |
b6f2c338259b8cd9f5e1b6e090f07dd7beb40b72 | 49c4844fc19c65e29e56cb8d66c97edcd5482988 | /python/basics/km_to_miles.py | 9962245006b48eb3cd2e268a71f1f492a31e0f42 | [] | no_license | Rufito-ruf/training | cac7b4a2f3f9667fd8eea7aa3d2fa2e016c160a8 | 0b6c5f7909ed719b987b23c6f8f73e5aba8b86fb | refs/heads/main | 2023-04-29T11:54:40.280508 | 2021-05-18T10:55:54 | 2021-05-18T10:55:54 | 367,260,567 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 116 | py | km = float(input("Kilometers: "))
miles = km * 0.62137
print("{0} kilometers equal {1} miles".format(km, miles))
| [
"Rufito.ruf@gmail.com"
] | Rufito.ruf@gmail.com |
238bfddaa63aa0992234f5a8de11ff5951340c3c | 0b8932d66a5143102afa9e19012829a972e2995a | /hrwros/hrwros_week1/scripts/week1_assignment2.py | 79ff15343bafa4e734305d248c0248a33551fabe | [] | no_license | ROSDevoloper/DelftX_ROS1x_hrwros | 90deb7008f4712e03eb3ab62e532105b2c3e929c | e3423187cc90a121acebedd67a40f5653096804f | refs/heads/master | 2023-04-26T01:56:37.273250 | 2021-05-16T07:10:22 | 2021-05-16T07:10:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,548 | py | #! /usr/bin/env python
# Assignment 2 for Week1: In this assignment you will subscribe to the topic that
# publishes information on the box height in metres and use the metres_to_feet
# service to convert this height in metres to height in feet.
import rospy
from hrwros_msgs.msg import BoxHeightInformation
from hrwro... | [
"jamie.chen@aeolusbot.com"
] | jamie.chen@aeolusbot.com |
348c0a3cf29d7a0c94ef69ca24c2aa07df6e742e | 38db17d0795115fae6df48d96a983a606157c5e4 | /reagent/workflow/model_managers/model_based/cross_entropy_method.py | 6a64c6d17eaf10d77dd20503225aa3cbff10db59 | [
"BSD-3-Clause"
] | permissive | OregonWebSells/ReAgent | d1bbfb5716bb6824695ea7eca29259cfde98df5e | 866f91785ca86db32fb67744aa063fe77791ff21 | refs/heads/master | 2022-11-15T06:32:53.355397 | 2020-07-07T20:08:57 | 2020-07-07T20:10:30 | 278,593,186 | 1 | 0 | BSD-3-Clause | 2020-07-10T09:26:16 | 2020-07-10T09:26:15 | null | UTF-8 | Python | false | false | 5,465 | py | #!/usr/bin/env python3
import logging
import numpy as np
import reagent.types as rlt
import torch
from reagent.core.dataclasses import dataclass, field
from reagent.gym.policies.policy import Policy
from reagent.models.cem_planner import CEMPlannerNetwork
from reagent.parameters import CEMTrainerParameters, param_has... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
f6579424ab22a4963654f518a1dc73dd8a3f66cb | 3862752149b2d83ff329941f8e4a1a9fb758b94f | /python/fundamentals/insertion_sort.py | be5a04001e05b3d3b873c62110c2751ece6406b9 | [] | no_license | g-chance/python_stack | 847f4b62208d8f3094d01518d12d8dea9805e0ae | b3bd9c0beae2cedfbd0b4052ec6ae7e2b5c8c7ef | refs/heads/main | 2022-12-26T04:09:09.671484 | 2020-10-15T19:56:47 | 2020-10-15T19:56:47 | 304,432,982 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 389 | py | def insertionSort(myList):
for i in range(0,len(myList)):
min = myList[i]
newminindex = -1
for j in range(i,-1,-1):
if myList[j] > min:
newminindex = j
if newminindex != -1:
temp = myList[i]
myList.pop(i)
myList.insert(n... | [
"ge.chance@gmail.com"
] | ge.chance@gmail.com |
64061a6517b985e5687fd1c9a8a8932facf5b93b | b32c6fb15b01afb9dae3ae6be9d5bf50d7f427ed | /Meta-RL/test.py | e6103d67a74fb15d8b6318d3964443e8ee3ffa40 | [] | no_license | harshp96/Project_RL | 73b4416684d2b6b067f806552834e756cbc54d05 | 23adf5918968ca04a3333b01a2180d84eefa7138 | refs/heads/master | 2022-07-05T01:00:48.259854 | 2020-05-15T20:42:43 | 2020-05-15T20:42:43 | 261,724,748 | 0 | 0 | null | 2020-05-06T10:23:57 | 2020-05-06T10:23:56 | null | UTF-8 | Python | false | false | 835 | py | import numpy as np
import os
import time
import gym
from collections import deque
import tensorflow as tf
import tensorflow.keras as K
from Agent import *
import sys
ENV_NAME = sys.argv[1]
TRAIN_ITERATIONS = 5000
MAX_EPISODE_LENGTH = 1000
TRAJECTORY_BUFFER_SIZE = 32
BATCH_SIZE = 16
RENDER_EVERY = 1
WEIGHT_FILE = sys.... | [
"vinay.rp.36@gmail.com"
] | vinay.rp.36@gmail.com |
f71899c4f0598fbd6fc8c252ba0db5ffe919aea3 | fed7697f8be852f836240215ae732fdeb85bde6f | /model/PhoneticModel.py | 79065e1f8a97339cff21cb5d07cc160dc6412e06 | [] | no_license | luckyBoy93/bar_poem | 1243c45f4448e94746f5d14717ae10a37d94dfa5 | 0dc533383a1c45771a6016d2235c9afc387be37a | refs/heads/master | 2020-01-23T21:18:03.661921 | 2016-11-23T10:50:54 | 2016-11-23T10:50:54 | 74,567,478 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,923 | py | # -*- coding: utf-8 -*-
class PhoneticModel(object):
vowels_sound = [u'и', u'ы', u'у', u'э', u'о', u'а']
vowels_special = [u"я", u"е", u"ё", u"ю"]
vowels = [u'и', u'ы', u'у', u'э', u'о', u'а', u"я", u"е", u"ё", u"ю"]
consonants_sound = [u'б', u'в', u'г', u'д', u'з', u'к', u'л', u'м', u'н', u'п', u'р', u... | [
"matveysodboev@gmal.com"
] | matveysodboev@gmal.com |
37f730abf76b5898a30f9f8b016882fccd6ab098 | 6dc543432268082fb86b27f1911530db2e1e9961 | /lesson9_step2.py | ed101d6fa553de5fd3990a09da83488a05d9a691 | [] | no_license | VorobevaViktoria/stepik--auto-tests-course | c56d277088b26d055c0924fcd5d5814051f06217 | f0cdc5fd1b855da0c3131a83431c17b3e8e35796 | refs/heads/main | 2023-05-28T07:42:36.841079 | 2021-06-21T16:42:33 | 2021-06-21T16:42:33 | 378,983,425 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 878 | py | from selenium import webdriver
import time
import math
try:
link = "http://suninjuly.github.io/redirect_accept.html"
browser = webdriver.Chrome()
browser.get(link)
button = browser.find_element_by_css_selector("button")
button.click()
browser.switch_to_window(browser.window_handl... | [
"vivoro.696@gmail.com"
] | vivoro.696@gmail.com |
0c29784495c76d2827c28b6d5c88023bfda7ec39 | facb8b9155a569b09ba66aefc22564a5bf9cd319 | /wp2/merra_scripts/02_preprocessing/merraLagScripts/575-tideGauge.py | b6c542ea053416d9f5768343d1851f8784ac2689 | [] | no_license | moinabyssinia/modeling-global-storm-surges | 13e69faa8f45a1244a964c5de4e2a5a6c95b2128 | 6e385b2a5f0867df8ceabd155e17ba876779c1bd | refs/heads/master | 2023-06-09T00:40:39.319465 | 2021-06-25T21:00:44 | 2021-06-25T21:00:44 | 229,080,191 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,772 | py | # -*- coding: utf-8 -*-
"""
Created on Tue Mar 31 17:12:23 2020
****************************************************
Load predictors & predictands + predictor importance
****************************************************
@author: Michael Tadesse
"""
#import packages
import os
import pandas as pd
import datetime a... | [
"michaelg.tadesse@gmail.com"
] | michaelg.tadesse@gmail.com |
e1de3d2c58fc1b2abff7cc9a52e569f48ba4e842 | d90d6cc85a4dad85bb2ba0e2637ee6acc0289d8a | /collab/migrations/0001_initial.py | 5c8dd4f30d7f4980564cd615a74a2357a8565faf | [] | no_license | bo-boka/tech-collab | 181607c0a64a50b406e17691b76a5660b7f93a60 | b06dde37ca24f60050bee1f48a02ac8e5bf2b3c0 | refs/heads/master | 2023-08-18T10:34:24.753240 | 2021-10-22T04:18:35 | 2021-10-22T04:18:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,205 | py | # Generated by Django 3.2.5 on 2021-10-12 20:43
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
import taggit.managers
class Migration(migrations.Migration):
initial = True
dependencies = [
('taggit', '0003_tagg... | [
"boka.sarah@gmail.com"
] | boka.sarah@gmail.com |
b6605148601741c129622e449e20884a81e6f769 | ef7a5e1445706482a0e20d2632f6cd3d0e279031 | /amy/extrequests/migrations/0009_auto_20190811_0611.py | 433fd03ac13af69f58a2cd1789b62ec40bdc378f | [
"MIT"
] | permissive | pbanaszkiewicz/amy | 7bf054463f4ecfa217cc9e52a7927d22d32bcd84 | f97631b2f3dd8e8f502e90bdb04dd72f048d4837 | refs/heads/develop | 2022-11-17T18:56:18.975192 | 2022-11-03T23:19:41 | 2022-11-03T23:19:41 | 28,005,098 | 0 | 3 | MIT | 2018-03-20T18:48:55 | 2014-12-14T19:25:22 | Python | UTF-8 | Python | false | false | 918 | py | # Generated by Django 2.1.7 on 2019-08-11 06:11
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('extrequests', '0008_auto_20190809_1004'),
]
operations = [
migrations.AlterField(
model_name='selforganizedsubmission',
... | [
"piotr@banaszkiewicz.org"
] | piotr@banaszkiewicz.org |
b0cccf46779814b4c6e76577118d9a1e6946bfbb | e2cef159954890d47f121b3a55a39f9f419db29b | /backend/datatypes/exceptions/data.py | 3a63ac113f46670da7aa948a2edc3ff380f395e7 | [] | no_license | lzw1012/Quantative-Trading-Strategy-Platform | 02b6ef565b6adde5a8e7772af62559bc8b4a4304 | b1feedb2636abdecb12840c6c048b21ed104dd20 | refs/heads/master | 2022-12-07T16:13:09.409933 | 2020-09-06T01:31:14 | 2020-09-06T01:31:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 225 | py | class DataRetrievalException(Exception):
def __init__(self, message: str, error: Exception):
super().__init__(message)
self.raw_errors = error
def get_raw_error(self):
return self.raw_errors
| [
"bennyhwanggggg@users.noreply.github.com"
] | bennyhwanggggg@users.noreply.github.com |
05127bab5e7cd5aa5e5c401e742b3599156bec9d | f07a42f652f46106dee4749277d41c302e2b7406 | /Data Set/bug-fixing-2/c5d3454cb2cfc1eec30d29e2caa92e9c4e0409a5-<_create_new_token>-fix.py | 3c6067738e66f81caaf8a9285d6cae4afb3dee19 | [] | no_license | wsgan001/PyFPattern | e0fe06341cc5d51b3ad0fe29b84098d140ed54d1 | cc347e32745f99c0cd95e79a18ddacc4574d7faa | refs/heads/main | 2023-08-25T23:48:26.112133 | 2021-10-23T14:11:22 | 2021-10-23T14:11:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 241 | py |
def _create_new_token(self):
token = ApiToken.objects.create(user=self.user, application=self.application, scope_list=self.sentry_app.scope_list, expires_at=token_expiration())
self.install.update(api_token=token)
return token
| [
"dg1732004@smail.nju.edu.cn"
] | dg1732004@smail.nju.edu.cn |
99601b2bd2f842e0cef8328fd3aff516c46ff2f5 | 6569bebdb6ff518bf93f925f23801606ff9082a2 | /oreilly/python2/examples/chapter13/minmax.py | 36973c0c7f1b09a9d67f50f650928b28431d0853 | [] | no_license | qiupq/LearnPython | bede6346f46d6669907867f13b8ce25c86254cde | f7f072d5f92d8135f1318a7a20fcffe3caf730ec | refs/heads/master | 2020-06-12T07:59:52.815020 | 2019-07-24T09:29:56 | 2019-07-24T09:29:56 | 194,238,183 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 317 | py | def minmax(test, *args):
res = args[0]
for arg in args[1:]:
if test(arg, res):
res = arg
return res
def lessthan(x, y): return x < y # see also: lambda
def grtrthan(x, y): return x > y
print minmax(lessthan, 4, 2, 1, 5, 6, 3)
print minmax(grtrthan, 4, 2, 1, 5, 6, 3)
| [
"qq@163.com"
] | qq@163.com |
a7a2c63f1cc5696f3d2e59c1b82e802b6dc26aa4 | 8f4663bde3e89ed7a08c82018306d8005c3ed2dc | /Moduller/Soru_1/modulCiro.py | d76d1b4e727cc9d4c8c799cf3d15055479c2d4cb | [] | no_license | hukumrancelik/Proglamlama | 73016890ddac94fe8bb316b58a11e2212c4bb997 | bdcda07ebb32f22ddb1b75ffcf82b550ed604f63 | refs/heads/master | 2021-01-25T14:26:37.340072 | 2018-04-26T18:32:14 | 2018-04-26T18:32:14 | 123,696,854 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 381 | py | def kar (gelir,gider):
global isletmeKar
isletmeKar=gelir-gider
return isletmeKar
def ciro (tc,tcs):
global adamCiro
adamCiro=tc/tcs
return adamCiro
gelir=int(input("Geliri Giriniz:"))
gider=int(input("Gideri Giriniz:"))
tc=int(input("Toplam Ciro:"))
tcs=int(input("Toplam ... | [
"noreply@github.com"
] | hukumrancelik.noreply@github.com |
8d00a5d3590acea8d2d79962351af52512841d1a | 69cb4546efba1f081a949821d62b97a0b3c158f9 | /Traveling-Salesman-Problem/Python_regulating_81.py | 7730ce7417f3c4711b0bf1feed0bc5b513fa2716 | [] | no_license | bikashkundu-99/projects | 4311878b7fa516c60d59eb457066ce0010b09a4b | 67e377e5409872ca7e12d3f98e0ffb55f331c743 | refs/heads/main | 2023-01-06T06:55:17.931293 | 2020-11-05T11:54:34 | 2020-11-05T11:54:34 | 310,283,550 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,505 | py | #Importing libraries
import pandas as pd
import numpy as np
import scipy as sci
import seaborn as sns
import matplotlib.pyplot as plt
#%matplotlib inline
import os, sys
print(os.getcwd()) # current working directory
output_file = pd.read_csv('OutputCities.csv',sep=';',header=0)
distance = pd.read_csv("T... | [
"noreply@github.com"
] | bikashkundu-99.noreply@github.com |
99b4413a055447c8b32e78f741812715f4083232 | 9385dc6ce2dfcef6ea2a87afa2251df7f930f1ab | /src/disparity.py | 3c8b41226220e20fb7595518d504b6eee7e86440 | [
"MIT"
] | permissive | andyfangdz/turtlebot_tracking | 1a9635f200c47eec49500af8652013b97d8c2227 | eb1a4411262f2d7fc2da3f4a5a32cc2067141b99 | refs/heads/master | 2020-12-31T04:42:46.972423 | 2016-04-27T21:01:57 | 2016-04-27T21:01:57 | 57,240,200 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,194 | py | import numpy as np
import cv2
from matplotlib import pyplot as plt
import video
#imgL = cv2.imread('tsukuba_l.png',0)
#imgR = cv2.imread('tsukuba_r.png',0)
#!/usr/bin/env python
import numpy as np
import cv2
ply_header = '''ply
format ascii 1.0
element vertex %(vert_num)d
property float x
property float y
propert... | [
"turtlebot@turtlebot.(none)"
] | turtlebot@turtlebot.(none) |
fa3e6c8bef1e11080fd9322682808e0380829d0e | a3fbd9e063ef8491d0432caefdd9da9d810350e0 | /LightHouse_Simulation_2.py | 2d0a1424de12eda690bfb3c1bb1ffe21be8e6e21 | [] | no_license | unJASON/EKFLocolization | 0505970a61756621abb7118720dcba54a65cf2d3 | fb1e6a45efe95aa81f850973ad50e3d99e389258 | refs/heads/master | 2022-09-05T20:04:28.760407 | 2020-06-01T11:51:34 | 2020-06-01T11:51:34 | 261,731,735 | 0 | 0 | null | 2020-05-06T10:58:49 | 2020-05-06T10:58:48 | null | UTF-8 | Python | false | false | 5,970 | py | import numpy as np
import matplotlib.pyplot as plt
import matplotlib.animation as animation
import mpl_toolkits.mplot3d.axes3d as p3
from light_house_create import dataCreate
from SwarmEKF2 import swarmEKF
show_animation = True
np.random.seed(16) # seed the random number generator for reproducibility
border = {"xmin"... | [
"2693017973@qq.com"
] | 2693017973@qq.com |
fbe692e5e7973fbeafde0b6f60f935a1d502ce4f | e204428f6f7dad0ff48eee1192f99db6650c5b75 | /desafios/ex050.py | d65316e6f23f307518a6b98a8dc382bbb1b3378c | [] | no_license | jhonatarios/curso-em-video-python | 9375054db0bdd798fb1e36377f9bda9c294f0724 | 2057114bef8522dbddca602e091df1e6333d29f9 | refs/heads/main | 2023-03-21T19:03:46.897730 | 2021-03-15T22:05:33 | 2021-03-15T22:05:33 | 322,444,229 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 195 | py | s = 0
ct = 0
for c in range(1, 7):
num = int(input("Digite um numero: "))
if num % 2 == 0:
s += num
ct += 1
print(f"A soma dos {ct} numeros pares sao de {s}")
| [
"noreply@github.com"
] | jhonatarios.noreply@github.com |
622bd96bfeec39eee2c82f831a0cca205e65261e | 7d84f1af14f8c30eeaa07d5f36542d93e03a4097 | /module2/shelve_test.py | 5906662ed5b18a66a6a55655be4574666f9f92ec | [] | no_license | crazy-heng/study | 5ab50a73c4ce51593e493e8ecee2e591d2200a9e | 034f7a5d63f278a4ac4678ed18ee63413a102757 | refs/heads/master | 2020-04-01T01:26:07.564735 | 2018-09-17T16:01:47 | 2018-09-17T16:01:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 298 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import shelve
f = shelve.open("shelve_test") # 打开一个文件存多个pickle序列化
names = ["alex", "rain", "test"]
info = {'name': 'alex', 'age': 22}
f["names"] = names # 持久化列表
f['info_dic'] = info
print(f["names"])
f.close()
| [
"fanhk@126.com"
] | fanhk@126.com |
5337e58e084f5e16d09483a58c895265af1990b4 | de658b734a22f7ea4294fab96706f3631193d6d4 | /week4/tower_of_hanoi.py | b0e179ef11d3955074445317d4802bc86784249e | [] | no_license | chenchienlin/Algorithmic-Toolbox | ed89f638ddfb31c6848ab1329d1e945efb66db15 | 6a534f2e03691239b654112413f47cfa04228ad5 | refs/heads/main | 2023-08-17T13:24:36.316338 | 2021-10-12T14:03:45 | 2021-10-12T14:03:45 | 376,751,097 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 340 | py | import logging
logging.basicConfig(level=logging.DEBUG)
LOGGER = logging.getLogger()
def tower_of_hanoi(n, src, dist, temp):
if n > 0:
tower_of_hanoi(n-1, src, temp, dist)
LOGGER.info(f'Moved disk {n} from {src} to {dist}')
tower_of_hanoi(n-1, temp, dist, src)
tower_of_hanoi(n=3, src='A',... | [
"x91003502@gmail.com"
] | x91003502@gmail.com |
6cbffd5154a78f534ce188a06d305f6500d1f83c | c9e95974e3f3320f2da36ba23403d46e00ac884d | /projects/mars/model_classes/StarshipUnfilteredWaterStorage.py | 522b7245bb1ae90e4fac5ff9605087164a02c68d | [
"MIT"
] | permissive | ModelFlow/modelflow | 877ff8d80ab2987b0572bebcf3753ae0942a5ae2 | c2b720b2da8bb17462baff5c00bbe942644474b0 | refs/heads/master | 2023-07-12T17:22:49.540043 | 2021-08-26T03:51:26 | 2021-08-26T03:51:26 | 280,748,869 | 8 | 0 | MIT | 2021-08-18T19:48:57 | 2020-07-18T22:17:52 | Python | UTF-8 | Python | false | false | 529 | py | class StarshipUnfilteredWaterStorage:
name = "StarshipUnfilteredWaterStorage"
params = []
states = [
{
"key": "unfiltered_water",
"label": "",
"units": "kg",
"private": False,
"value": 0,
"confidence": 0,
"notes": ""... | [
"1890491+adamraudonis@users.noreply.github.com"
] | 1890491+adamraudonis@users.noreply.github.com |
54b8b389d5f08e4c1a30532f1f7ececf6b4eb42c | 20e7b2997f4dd90ec4cea01124d70ee5bcf9b58f | /server/prodeagle/counter.py | 111cf99e0bfdfb5150c404631c55a58361f41a50 | [] | no_license | baden/gps-maps27 | 77f87738984d3c711697bdbb380eeb039a1096eb | defe2925e6b35da5df6b546fd15e645d10d1a5b4 | refs/heads/master | 2021-03-12T23:52:22.735079 | 2014-01-29T12:31:20 | 2014-01-29T12:31:20 | 32,263,820 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,232 | py | #!/usr/bin/env python
#
# Copyright 2011 MiuMeet AG.
#
# 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 o... | [
"baden.i.ua@gmail.com@cd201f0b-5521-6f96-0748-8efd02dae0ad"
] | baden.i.ua@gmail.com@cd201f0b-5521-6f96-0748-8efd02dae0ad |
9eb7947fa8d2ab6df2fb73bb055c5d33355a2efd | 54f41c4020ce0f3159dd044618b57843310fe070 | /drivers/plot_astrometric_excess.py | cfe353d09871004823d322b6cd6a4dd5286f4248 | [
"MIT"
] | permissive | lgbouma/billy | f8205ce64667c3495ecbf3032629acc7395798a8 | aa70e55c61085464945a49c806a2f96911f35706 | refs/heads/master | 2023-08-06T16:04:46.733163 | 2021-09-17T23:15:13 | 2021-09-17T23:15:13 | 247,311,434 | 0 | 1 | null | 2020-05-19T23:04:02 | 2020-03-14T16:22:55 | TeX | UTF-8 | Python | false | false | 337 | py | import os
import billy.plotting as bp
from billy import __path__
RESULTSDIR = os.path.join(os.path.dirname(__path__[0]), 'results')
PLOTDIR = os.path.join(RESULTSDIR, 'cluster_membership')
bp.plot_astrometric_excess(PLOTDIR, ruwe=0)
bp.plot_astrometric_excess(PLOTDIR, ruwe=1)
bp.plot_astrometric_excess(PLOTDIR, ruwe=... | [
"bouma.luke@gmail.com"
] | bouma.luke@gmail.com |
6499cbe189f6bc6f6c2beb875d3039bb2e298254 | e83429984b5139df15d3930f3c4a00a168c662e8 | /decision_tree/decision_tree_train.py | 93f707c535779fd0de50af1623c0d78747ecc8e1 | [] | no_license | matrharr/machine-learning-p1 | 39ac2590ea73d1a1126ee66706f569e1c4c5a5ba | 2dece5beafc077c56b55cac793bc2e4e0639d851 | refs/heads/master | 2023-03-08T18:07:11.241338 | 2021-02-26T17:48:26 | 2021-02-26T17:48:26 | 341,056,294 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,744 | py | import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
from sklearn.tree import DecisionTreeClassifier
from sklearn import tree
from sklearn.model_selection import GridSearchCV
'''
pruning
gini vs info gain
'''
PARAMS = {
'criterion': ['gini', 'entropy'],
'splitter': ['best', 'random'],
... | [
"mattharris@Matts-MBP.attlocal.net"
] | mattharris@Matts-MBP.attlocal.net |
1529e0f00fa252921c2bbb2fe6186fb75e878075 | b6a7a849593c654868c9683578d907b0d73c6ef0 | /firstpython.py | 435e303da45fa50a85a8877aeb566d0f433f0da5 | [] | no_license | WahomeMaina/datasciencetestrepo | 75047954d993d1622ebb6f7bb2b0860cc93206c2 | c4a756521120f01d8c0d1bedec5570f0d18b46e8 | refs/heads/main | 2023-07-02T22:28:53.604012 | 2021-07-31T05:59:54 | 2021-07-31T05:59:54 | 391,266,376 | 0 | 0 | null | 2021-07-31T05:59:55 | 2021-07-31T05:43:48 | Python | UTF-8 | Python | false | false | 57 | py | #Display the output
print("I'll make it no matter what")
| [
"noreply@github.com"
] | WahomeMaina.noreply@github.com |
2c2719323ff0fc13537815774525f1408082b83b | ef881eab7a9948ca21a9275dd257602bb7344ee4 | /rkenv/lib/python3.6/tokenize.py | 3a5c7e5d320adcdabcc1490c40950b4c956e4f94 | [] | no_license | acanto95/Catgram | 220edb8ffe9c65cdc68ba2f5f1e18678a058dcf4 | f3ba541d0890ec95082c5beabf27b8c924a937de | refs/heads/master | 2022-08-08T09:22:33.088782 | 2019-06-01T22:54:22 | 2019-06-01T22:54:22 | 189,781,259 | 1 | 1 | null | 2022-06-22T07:12:41 | 2019-06-01T22:01:54 | Python | UTF-8 | Python | false | false | 47 | py | /home/canto/anaconda3/lib/python3.6/tokenize.py | [
"acanto95@bitbucket.org"
] | acanto95@bitbucket.org |
8b4a96a1fa7674f5d06160f3b06ac5d582ce22c2 | f304605383eb6b367ff9c44df827fa28068aeea1 | /Project 1/trilocate.py | bca7726b3f76bb7e2582838f8695a25e9f3dd814 | [] | no_license | cbadami/CSC-842 | 5c1ca7ed1de347e448955bd0e2103a563d2996be | 3790c6bdbde6e1657ae834e143b924d511a15648 | refs/heads/master | 2020-05-27T03:02:21.448474 | 2019-07-21T02:10:45 | 2019-07-21T02:10:45 | 188,459,663 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,642 | py |
# Author: Charles Badami
# Date: 5/23/19
# Program Name: trilocate.py
'''
Description/Purpose: This program reads in a file of comma-separated records,
representing triangulation data from three cellular base stations
(longitude, latitude, radius to target device based on signal strength)
measured at a certain point ... | [
"cbadami@nwmissouri.edu"
] | cbadami@nwmissouri.edu |
9b1527fb43a9d9e90cd494a22c11a2404f600900 | dbf885d7b65f9af2c5b1f5b9e4c51823de853ce6 | /pdf_decanter/alpha.py | ba2822c34d7a34f76b949d01e28631e067241b88 | [
"Apache-2.0"
] | permissive | hmeine/pdfdecanter | b3d10cf7c7e05bb87dab2acbacc21df5123f3054 | d33f8c577b3afcc6152f8d6af44b4bb746b6bd06 | refs/heads/master | 2021-01-18T15:22:01.030028 | 2019-03-13T10:52:49 | 2019-03-13T10:52:49 | 4,405,884 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,250 | py | # Copyright 2012-2014 Hans Meine <hans_meine@gmx.net>
#
# 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 applicabl... | [
"hans_meine@gmx.net"
] | hans_meine@gmx.net |
b0fd4265dbd1053b842f096f183b9d5a8d9253c2 | 5c3d99e7abe8b846d8c01b42af6127d68bfca71e | /cifar10.py | 4a5ce4075350c136d7211c1f23d9508bafe7b34a | [] | no_license | suta0001/tbi-mice-detection | 0ce6ac1e12ecafee931746fdf8b4f357e0e5da23 | a5d5a31f5ddd46cbca5a2f5ec3b13d020e4e82e5 | refs/heads/master | 2022-07-04T03:27:38.490365 | 2020-10-11T21:27:55 | 2020-10-11T21:27:55 | 180,941,851 | 1 | 0 | null | 2022-06-16T23:30:19 | 2019-04-12T06:10:40 | Python | UTF-8 | Python | false | false | 14,724 | py | # Copyright 2015 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | [
"sutandia@tigger-mbp1.local"
] | sutandia@tigger-mbp1.local |
8e0afcf06732e2ab66c09d4b9601d665cc031875 | 6f1034b17b49f373a41ecf3a5a8923fb4948992b | /docs/user_guide/operation/scripts/examples/argus/extraction/jan/CO2Analysis.py | 994a75deb969550f3862563df6298f042c9c22f2 | [
"Apache-2.0"
] | permissive | NMGRL/pychron | a6ec1854488e74eb5d3ff53eee8537ecf98a6e2f | 8cfc8085393ace2aee6b98d36bfd6fba0bcb41c6 | refs/heads/main | 2023-08-30T07:00:34.121528 | 2023-06-12T17:43:25 | 2023-06-12T17:43:25 | 14,438,041 | 38 | 28 | Apache-2.0 | 2023-08-09T22:47:17 | 2013-11-15T23:46:10 | Python | UTF-8 | Python | false | false | 2,167 | py | """
"""
def main(do_cleanup=True, degas=False):
set_motor('beam',beam_diameter)
accum = 0
if analysis_type=='blank':
info('is blank. not heating')
'''
sleep cumulative time to account for blank
during a multiple position analysis
'''
close(description='Microb... | [
"jirhiker@gmail.com"
] | jirhiker@gmail.com |
aa14adc12aeaa5034c2d7cd473bd877685d7fde1 | 8acffb8c4ddca5bfef910e58d3faa0e4de83fce8 | /ml-flask/Lib/site-packages/sklearn/cross_decomposition/tests/test_pls.py | b0544ed25038f3e63e4e89c778518e7c2f2b3b61 | [
"MIT"
] | permissive | YaminiHP/SimilitudeApp | 8cbde52caec3c19d5fa73508fc005f38f79b8418 | 005c59894d8788c97be16ec420c0a43aaec99b80 | refs/heads/master | 2023-06-27T00:03:00.404080 | 2021-07-25T17:51:27 | 2021-07-25T17:51:27 | 389,390,951 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 130 | py | version https://git-lfs.github.com/spec/v1
oid sha256:3d406cccd42fe36d7d2cdbf50adf5dac408ba8d41546fac7b174b4383836bf2d
size 20584
| [
"yamprakash130@gmail.com"
] | yamprakash130@gmail.com |
4ad1ceee00203feb6c0899b508840cd4964e4d01 | 0e8c2cb2822166f5175f2f811e2275d348abc73c | /create_real_to_fake_dataset_mixed.py | a9af663af84b6f1855dbabab84737cf29157d289 | [] | no_license | kittyyinhui/detect_deep_fake | 0904d4df74110075b6adaaae8e25718a58d45f13 | 9a8c14cd38038fbe46057866249e011bcb03b840 | refs/heads/master | 2022-02-25T18:45:25.215111 | 2019-10-15T21:16:16 | 2019-10-15T21:16:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,219 | py | import os
import glob
import random
import shutil
import math as m
from sklearn.model_selection import train_test_split
IMAGES_PER_CLASS = 10000
subsets = ['train', 'val', 'test']
subsets_prop = [0.05, 0.2, 0.75]
ds1_path_train = '/media/jcneves/DATASETS/100K_FAKE/byimg_alignedlib_0.3/'
ds1_path_test = '/media/jcnev... | [
"joao_crn@hotmail.com"
] | joao_crn@hotmail.com |
3847b9c40874b7611323d85de6b794c53ac36b9a | d37984382cbeb4e41b979ae1831235a0858bf483 | /XBlock Integration Files/xdjangobb/xblock/bin/pbr | 8f4ce226b2cea235ec1cf64baba10813047cf38e | [
"MIT"
] | permissive | DANCEcollaborative/forum-xblock | e62f4a612c070c6d1ac6060f1661de37a9dd1c8c | fe8a062b4e45966a5faa5282d85799be479ec28a | refs/heads/master | 2021-05-04T09:47:25.126546 | 2020-01-27T16:31:38 | 2020-01-27T16:31:38 | 47,434,223 | 7 | 0 | null | null | null | null | UTF-8 | Python | false | false | 261 | #!/home/akashb/dev-stuff/XBlock/xblock-djangobb/xblock/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from pbr.cmd.main import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"sreecharan93@gmail.com"
] | sreecharan93@gmail.com | |
181d3cd17e58e13f5559de14189f02d9aac71b2f | 7974d2761b73ea9ceb47d7036418cea93e85f56c | /src/raspberry/Webserver/externals/notification/test_notificationsender.py | 81acd7d7a3385ca7b7bc28185acbf606b1e15321 | [] | no_license | fongie/FlowerPower | 8ed933f46fc5a7f7e69c009f7ff129da00fe44fc | 69243cfc4ad7269470231f57ff050382d890b8e0 | refs/heads/master | 2021-04-12T06:00:15.645671 | 2018-05-30T07:12:49 | 2018-05-30T07:12:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 349 | py | import pytest
from .notificationsender import NotificationSender
def test_sendNotification():
n = NotificationSender(1, "flowerpowerkth@gmail.com")
assert n.sendDrynessNotification(533) == True
def test_sendWateringNotification():
n = NotificationSender(1, "flowerpowerkth@gmail.com")
assert n.sendWa... | [
"mkorlinge@hotmail.com"
] | mkorlinge@hotmail.com |
ada46cbaf56a84d5767d7967feeffc133d1a64f6 | a136a55c87565d564f15838073762efca09e90c2 | /1x5condition_pivot/process_omop.py | 8cfeb34ea97ef6fd7c4d6f309cf8451e0d99f8a9 | [] | no_license | yy6linda/synthetic_EHR_data | c9c327aedf46c482d0b501ef6836c0fc7242857b | c72e25b82ef6d648b63233043751bb0398e7b4c0 | refs/heads/master | 2020-05-24T04:05:06.173064 | 2020-03-29T18:45:55 | 2020-03-29T18:45:55 | 187,085,747 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,982 | py | import sys
import _pickle as pickle
import numpy as np
from datetime import datetime
import csv
'''this takes in two condition_occurrence.csv files respectively for alive
and deceased patients and outputs two matrices for the two cohort.
The output matrix doesn't have headers nor column index'''
if __name__ == '__main... | [
"yy6linda@gmail.com"
] | yy6linda@gmail.com |
224ba3d8ce19e43d06f7731760ffd3185fa30a80 | 782de1b97644773691934d4668e37ccf37c81708 | /docs/source/conf.py | 6d91a3c2803a9b3f4f921bc162741d682e716967 | [
"MIT"
] | permissive | cssd2019/trafficjam | d2b92eadae1d7cb4e1e1ef6492f614a628a429ec | aeb17a456ead5d5b76cb8449e3e054a641bd3eef | refs/heads/master | 2021-12-01T00:49:09.008481 | 2019-03-14T12:31:05 | 2019-03-14T12:31:05 | 174,993,413 | 2 | 1 | MIT | 2021-11-17T18:06:19 | 2019-03-11T12:15:42 | Python | UTF-8 | Python | false | false | 5,718 | py | # -*- coding: utf-8 -*-
#
# Configuration file for the Sphinx documentation builder.
#
# This file does only contain a selection of the most common options. For a
# full list see the documentation:
# http://www.sphinx-doc.org/en/master/config
# -- Path setup ------------------------------------------------------------... | [
"c.m.jones@dur.ac.uk"
] | c.m.jones@dur.ac.uk |
956561ff3b37b66a21027676f8da8935b4ca8f81 | 2d3ce0f749d04b66a07c8d97b5663f89e01a4321 | /movie/urls.py | 63123de7c2929ad462cf48d71511ebb2138e275c | [] | no_license | timdvd/Django_movies | 1e7b057bf020c06a4932452313905e92af2af87a | bdbdf43d05986ed6b53cf0f4b284f7aa9018cd6e | refs/heads/main | 2023-04-13T19:46:57.036602 | 2021-04-16T12:15:46 | 2021-04-16T12:15:46 | 335,655,761 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 546 | py | from django.urls import path, include
from .views import MovieSlugView, MovieListView, FilterMoviesView, AddStarRating, SearchListView, movieComment
urlpatterns = [
path('', MovieListView.as_view(), name='home'),
path('filter/', FilterMoviesView.as_view(), name='filter'),
path("add-rating/", AddStarRating.... | [
"artemsabadash4@gmail.com"
] | artemsabadash4@gmail.com |
84e9f0c78b55827ad2ec651e35b65bf45d5e280b | e09092b96eb5b9297d21bd2cb66d21a1017630a5 | /tinkoff/investments/model/operations.py | 6f54717a252fa009a293d6789671d7c3e0cab139 | [
"Apache-2.0"
] | permissive | zcoder/tinkoff-api | 70af3ea422cb19934fcd6c0659a077dd5be24112 | 362f73a64e16fa4da87e7f1a59d290037108252d | refs/heads/master | 2021-02-22T18:47:00.835488 | 2020-03-09T16:32:52 | 2020-03-09T16:32:52 | 245,382,676 | 0 | 0 | Apache-2.0 | 2020-03-20T18:43:10 | 2020-03-06T09:46:23 | Python | UTF-8 | Python | false | false | 1,979 | py | from dataclasses import dataclass
from enum import Enum
from typing import List, Optional
from tinkoff.investments.model.base import (
BaseModel,
ISODateTime,
MoneyAmount,
Currency,
FigiName,
InstrumentType,
)
OperationID = str
TradeID = str
class OperationStatus(Enum):
DONE = 'Done'
... | [
"fatal1ty.rnd@gmail.com"
] | fatal1ty.rnd@gmail.com |
37d0b92cb46a7e7b7f5100eabf0c733065b3cab5 | 1141c0c420f0c57dd31ae28a82bea29557a235d4 | /crustcrawler_gazebo/scripts/pick_and_place.py | cd46dbcafcd05aff520567e5022cf341232cb2c2 | [] | no_license | bluetronics-India/crustcrawler | bdac92236e5de28dcc227742d63beaedbf0b58a4 | 18ed43fef4507101447f7c5968b8bc1c24949a39 | refs/heads/master | 2020-03-18T04:08:51.724588 | 2018-02-27T17:26:50 | 2018-02-27T17:26:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,945 | py | #!/usr/bin/env python
import rospy
from moveit_commander import RobotCommander, PlanningSceneInterface
from moveit_commander import roscpp_initialize, roscpp_shutdown
from actionlib import SimpleActionClient, GoalStatus
from geometry_msgs.msg import Pose, PoseStamped, PoseArray, Quaternion
from moveit_msgs.msg impo... | [
"ghanimmukhtar@gmail.com"
] | ghanimmukhtar@gmail.com |
67022d884040ac0bea1e479ccba8c4beed336dff | 0667af1539008f9c6c0dcde2d3f50e8bbccf97f3 | /source/rttov_test/profile-datasets-py/div52_zen30deg/049.py | 014b3e6b8fe6e2eda40e57e97cf86c2fc8d20d1e | [
"LicenseRef-scancode-unknown-license-reference",
"BSD-3-Clause"
] | permissive | bucricket/projectMAScorrection | bc6b90f07c34bf3e922225b2c7bd680955f901ed | 89489026c8e247ec7c364e537798e766331fe569 | refs/heads/master | 2021-01-22T03:54:21.557485 | 2019-03-10T01:47:32 | 2019-03-10T01:47:32 | 81,468,938 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,426 | py | """
Profile ../profile-datasets-py/div52_zen30deg/049.py
file automaticaly created by prof_gen.py script
"""
self["ID"] = "../profile-datasets-py/div52_zen30deg/049.py"
self["Q"] = numpy.array([ 1.607768, 4.908026, 6.733366, 6.729941, 5.497174,
6.103365, 6.266938, 6.73851 , ... | [
"bucricket@gmail.com"
] | bucricket@gmail.com |
c185feffbf83d2dc23be9133e83ddf70b12a619d | 968104eadb9ee676a907ac97b6950f52c0186850 | /clairvoyance/apps.py | 9e8ce3925a4585d4461610597d93a3f59bf7ccc4 | [] | no_license | CasacoVermelho/Tiresias | 3193ceb66cc8c3f9f2631517d88506c42cd793d9 | 0a71278ebc2659d8c9c34272215c7a56c6cf4cee | refs/heads/master | 2022-11-29T18:43:02.596161 | 2020-07-23T02:19:17 | 2020-07-23T02:19:17 | 236,080,355 | 0 | 0 | null | 2022-11-22T05:16:34 | 2020-01-24T20:44:43 | JavaScript | UTF-8 | Python | false | false | 99 | py | from django.apps import AppConfig
class ClairvoyanceConfig(AppConfig):
name = 'clairvoyance'
| [
"alexandrebmjr@gmail.com"
] | alexandrebmjr@gmail.com |
21b690382ed272ee0d80a05bc289a485d453263f | f98fbc26f8e68d1e35ac1317b8eaa1dffe61a3c6 | /resources/item.py | 2f72f7cd283cbc74583dbc9c9988d77a0236ffe7 | [] | no_license | latfamt/stores-rest-api-test | cbac8b767abe2d7245d8c3b21c467941da8dfa4e | f5d510b06a5727eb43db0059f350a641f4b44f62 | refs/heads/master | 2020-03-10T00:01:16.259573 | 2018-04-11T11:29:28 | 2018-04-11T11:29:28 | 129,072,029 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,865 | py | from flask_restful import Resource, reqparse
from flask_jwt import jwt_required
from models.item import ItemModel
# noinspection PyMethodMayBeStatic
class Item(Resource):
parser = reqparse.RequestParser()
parser.add_argument('price',
type=float,
required=True,
... | [
"spirina@bradburylab.com"
] | spirina@bradburylab.com |
5e4c077b8c07fb81f995271c73fec4e20eae5052 | ee3e0a69093e82deff1bddf607f6ce0dde372c48 | /BOJ/Greedy/BOJ_1931.py | a9e899115d8fd8f195ea833774f17eecb63e34a7 | [] | no_license | cndqjacndqja/algorithm_python | 202f9990ea367629aecdd14304201eb6fa2aa37e | 843269cdf8fb9d4c215c92a97fc2d007a8f96699 | refs/heads/master | 2023-06-24T08:12:29.639424 | 2021-07-24T05:08:46 | 2021-07-24T05:08:46 | 255,552,956 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 302 | py | n = int(input())
data = []
for _ in range(n):
data.append(list(map(int, input().split())))
data.sort(key=lambda x: x[0])
data.sort(key=lambda x: x[1])
time = data[0][1]
count = 1
for i in range(1, len(data)):
if data[i][0] >= time:
count += 1
time = data[i][1]
print(count)
| [
"cndqjacndqja@naver.com"
] | cndqjacndqja@naver.com |
e58b7a43eb61bde822062cc463c22bece162affd | 5ece3476103a28ead61ada84c9de11e18266a44c | /day19.py | d44bff46503ac2079730004441cff59472239c80 | [] | no_license | BenjiKCF/Codewars | 4950b134d9be1cec131ecfe3a2ac277dd35b7daf | 7c5cd51ce0ba81a7013731bed29c2f849b5dd875 | refs/heads/master | 2021-01-21T08:02:28.923264 | 2018-10-09T08:16:17 | 2018-10-09T08:16:17 | 83,334,242 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,304 | py | s = "abcd\nefgh\nijkl\nmnop"
print s + '\n'
def diag_1_sym(s):
splited = s.split('\n')
matelem = len(splited) #4
elemlen = len(splited[0]) #4
diag = [''.join ([splited[i][j] for i in range(matelem)]) + '\n' for j in range(matelem)]
last = diag[-1][:-1]
diag.pop()
diag.append(last)
... | [
"noreply@github.com"
] | BenjiKCF.noreply@github.com |
e29a580539d21683bfcdc0617b8abd960098f9f3 | 7bf4d85808daf8ee3c36ea08ae989a24855cb900 | /api/views/driver_views.py | 42a3231ecfafc62f5c120893d8f5ffd10c35411a | [
"BSD-3-Clause"
] | permissive | newtonjain/hacktheplanet | 4dc4d8c0ef9551c73ab7d2371fb3a83850216f70 | c93f9afcc3fc435ee4646a294397120ed9a41f15 | refs/heads/master | 2016-09-05T10:43:08.881129 | 2015-09-25T06:24:12 | 2015-09-25T06:24:12 | 40,760,284 | 5 | 1 | null | 2015-09-16T23:38:59 | 2015-08-15T13:11:22 | JavaScript | UTF-8 | Python | false | false | 1,052 | py | from rest_framework.generics import (
RetrieveUpdateDestroyAPIView,
ListCreateAPIView
)
from django.http import Http404
from bmw.models import Driver
from api.serializers import drivers
class DriverListCreateView(ListCreateAPIView):
serializer_class = drivers.DriverSerializer
queryset = Driver.object... | [
"moteygo@gmail.com"
] | moteygo@gmail.com |
eca4a497a33c98b58d02ea6d3bfc5cf0f95e71b9 | db6e64b04c0965e577034773b38a1039a264afbf | /source/schedule/migrations/0013_nbareddit_created.py | 0bfb26b14cb289f74cc62fcdd2ba4db76a14d804 | [] | no_license | suizo12/hs17-bkuehnis | 264bdc53e7e8fb3da00a1ff7271318649b20ff66 | 7cab2071cd798072ef1bc0f934b97b3ed8ccc1d3 | refs/heads/master | 2023-01-05T21:47:12.623324 | 2017-12-31T16:58:43 | 2017-12-31T16:58:43 | 102,214,689 | 0 | 0 | null | 2022-12-27T14:57:59 | 2017-09-02T18:07:11 | JavaScript | UTF-8 | Python | false | false | 478 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.6 on 2017-11-29 19:12
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('schedule', '0012_nbareddit'),
]
operations = [
migrations.AddField(
... | [
"benjaminkuehnis@Benjamins-MacBook-Pro.local"
] | benjaminkuehnis@Benjamins-MacBook-Pro.local |
cf93fbd876708c4e349b036a5b95d404569516b0 | ad5864ed68f520e0737915aee4bf721835374ca9 | /products/models.py | 3f96c4313d6e5496534f0506a289d15d631eb752 | [] | no_license | birtasu/shop | 076ba6a77a29d773e4f1d7013d83891fd65d2408 | 5d22b20781363e16b2e763dfb9c3a55b84086bab | refs/heads/master | 2022-12-05T08:50:16.121544 | 2020-08-24T19:15:01 | 2020-08-24T19:15:01 | 290,011,965 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,190 | py | from django.db import models
class Product(models.Model):
name = models.CharField(max_length=64, blank=True, null=True, default=None)
description = models.TextField(blank=True, null=True, default=None)
price = models.DecimalField(max_digits=10, decimal_places=2, default=0)
is_active = models.BooleanFie... | [
"birt.asu@gmail.com"
] | birt.asu@gmail.com |
32c077badc2f7d9512e3a68206522eb2f284bfe4 | 50ffc2724864d30e3b658e3f811cac513c91769f | /oops.py | daae0365b8f57d2603afca0227d5fba9a7e59fd0 | [] | no_license | sreekripa/core2 | bd71486f3e4185dbcecdb830255d06d6cb7ee983 | 6eed9dae2ef0cb72309d5982e728649444ea1b10 | refs/heads/master | 2023-05-04T11:15:47.786904 | 2021-05-20T12:33:20 | 2021-05-20T12:33:20 | 369,200,852 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 315 | py | class student:
def __init__(self,name,mark):
self.name=name
self.mark=mark
def getdata(self):
self.name=input("enter the name")
self.mark=input("enter the mark")
def putdata(self):
print(self.name,"\n",self.mark)
obj=student('','')
obj.getdata()
obj.putdata()
| [
"kripas1990@gmail.com"
] | kripas1990@gmail.com |
33db89fb0758dcdce2642c390cefa673200abdec | bd455e366e474682faf738b536f4c30f7dc28277 | /rayvision_sync/tests/__init__.py | 145df2799f231756a0a34e96e04e1042b1d3ce5e | [
"Apache-2.0"
] | permissive | renderbus/rayvision_sync | a21018bb279a82457ba4a976648e66bf93795e23 | 0ddc138f2eef62349385fde2222d1045cc4cd59c | refs/heads/master | 2023-05-25T06:20:51.679338 | 2021-08-03T10:40:56 | 2021-08-03T10:40:56 | 221,392,908 | 1 | 1 | Apache-2.0 | 2023-05-22T23:20:33 | 2019-11-13T06:55:49 | Python | UTF-8 | Python | false | false | 37 | py | # -*- coding: utf-8 -*-
"""Tests."""
| [
"ding625yutao@163.com"
] | ding625yutao@163.com |
4633fff12c40bec683d0fca712a2a69bd0bdda3e | 53ec961695a5663f5b42dd6e5289b8d1dd7e35e1 | /robber.py | 49c9477181c9c6119024da2b983cacddb0c292e5 | [] | no_license | fchikwekwe/InterviewPrep | a5ab4123142d1f46e3223348a31ad96d03fd6716 | dce45d87dbc55fa2a55435d0feec9e907d622135 | refs/heads/master | 2020-04-13T19:52:51.022675 | 2019-07-24T18:13:17 | 2019-07-24T18:13:17 | 163,414,755 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,159 | py | """
The thief has found himself a new place for his thievery again. There is only one entrance to this area, called the "root." Besides the root, each house has one and only one parent house. After a tour, the smart thief realized that "all houses in this place forms a binary tree". It will automatically contact the po... | [
"faithchikwekwe01@gmail.com"
] | faithchikwekwe01@gmail.com |
4724acadc22fed4801330a23b3851fd883c4a845 | b565eb043002c89f4d6d667069e14ab28083b76e | /Working with MongoDB/range_queries.py | 94b428e1ce8087356e562e0607b46a0a10f101be | [] | no_license | jreiher2003/Data-Wrangling-with-MongoDB | 002a240e7a350d2cfc3514c89bc7f42c435fe5eb | 95b46f30421dbfc11298aaafbca04829b58e1212 | refs/heads/master | 2021-01-10T22:05:47.907618 | 2015-05-23T20:19:34 | 2015-05-23T20:19:34 | 35,671,850 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 791 | py | from pymongo import MongoClient
from pprint import pprint
from datetime import datetime
client = MongoClient("mongodb://localhost:27017")
db = client.uda
def find():
# returns pop between 250k and 500k
# query = {"populationTotal": {"$gt": 250000, "$lte": 500000}}
# returns all city names that start with the let... | [
"jeffreiher@gmail.com"
] | jeffreiher@gmail.com |
229f9e9e7a5fcbf9280d61fe89ad3345a29a70b6 | 009e3b3bc22b2cb9d2b24740a97470691fc5c449 | /AlexeiSorokin/views.py | 14b0e7e151aa9541f073a735c0c791bb1aadc77e | [] | no_license | ivanm11/codeSamples | e925cec66119621ac6c59315c8dc859b74076790 | 40016f4a5a38408fbe433f9859b45ea25fb9f96a | refs/heads/master | 2021-01-23T11:33:47.219705 | 2017-06-02T09:37:15 | 2017-06-02T09:37:15 | 93,149,950 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,416 | py | import datetime
import time
import io
import csv
from rest_framework import generics, permissions, status
from rest_framework.authentication import SessionAuthentication
from rest_framework_jwt.authentication import JSONWebTokenAuthentication
from rest_framework_jwt.serializers import JSONWebTokenSerializer, RefreshJS... | [
"ivan@coretech.io"
] | ivan@coretech.io |
9849284726b176e10ef02919e1e5ca3f027e480b | 9fb7a51b32282541435111de70ef905a77463852 | /string/14_longest_common_prefix.py | 9bec8bda7a409a1c5094a40b6fea24ff00488db8 | [] | no_license | dlin94/leetcode | 874b9213e72e7baa8b75c8de8bc24afb253f3fbd | 8e0ce1c4321125dc67813c2543dd7e21eefe38b1 | refs/heads/master | 2021-01-18T22:23:58.744203 | 2017-04-05T19:59:08 | 2017-04-05T19:59:08 | 87,051,753 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 723 | py | class Solution(object):
def longestCommonPrefix(self, strs):
"""
:type strs: List[str]
:rtype: str
"""
if strs == []:
return ""
min = None
for string in strs:
if min == None:
min = len(string)
else:
... | [
"devin.c.lin.94@gmail.com"
] | devin.c.lin.94@gmail.com |
f88b58cb39682671a044c1c50e1980bf7b0a26a3 | acc4b52e9eb1012fba5e90de36ca29c1077e1df1 | /HackerRank_Puzzles/collections-counter.py | db30732e2dfe073e9c2d829c2ae83e34a671ea57 | [] | no_license | catomania/Random-late-night-time-wasters | 41182d7d19a97fcc453915b45daf71fef1dc410e | 7a0d83cca294b0c7232b9999f10773ffca45a760 | refs/heads/master | 2021-01-17T14:09:37.180173 | 2016-03-07T06:54:25 | 2016-03-07T06:54:25 | 41,021,346 | 0 | 0 | null | 2015-08-23T07:18:08 | 2015-08-19T08:04:53 | Python | UTF-8 | Python | false | false | 709 | py | # https://www.hackerrank.com/challenges/collections-counter
# where can I use Counter?
from collections import Counter
number_of_shoes = int(raw_input())
shoe_sizes = list(map(int, raw_input().split(" ")))
customers = int(raw_input())
money_earned = []
for x in range(0, customers):
size, price = map(int, raw_i... | [
"catomania@users.noreply.github.com"
] | catomania@users.noreply.github.com |
624701b78801d3a93b864bc83b98ba77a6f100c5 | 1a669b7b1311a44b168f4a43dfe67963e017d181 | /Simon_discuss_01/Simon_discuss_01_1.py | ab84e1a05d03335552b5b1e921fa8a5477f42a0d | [] | no_license | JumiHsu/HeadFirst_python | 4a52433000b2ca2292742a0902ad65b51e6a4cbe | 110ce5f639f23ed525f41500f33890d354bbcac3 | refs/heads/master | 2020-04-01T18:26:05.011410 | 2019-05-31T10:23:58 | 2019-05-31T10:24:04 | 153,492,193 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,776 | py | import random
import math
A=[]
B=[]
# #先隨機抽一個N N落在[1,100000]內,令N1=100000
# #A的長度在100000以內
# #A的每個元素會落在[0,10000]內,令N2=10000
# # ====================================================================
# # 想辦法生出一個長度隨機<N1,元素值隨機但必<N2 的A向量
# # ====================================================================
# N1=8 #10... | [
"scm80507211@gmail.com"
] | scm80507211@gmail.com |
576542d6ea686ab041697d184c8f9e89051dccf3 | 237d8320c3222b53f1a101d9ee1519626b90359c | /run.py | 4a2145e43472222aed958cec46485aff15714140 | [] | no_license | berni-pl/test10 | d29d445676611a06f301b146895e4f5b3d906fac | cef2c0fe70239100a2b41347571cba4690487c2c | refs/heads/master | 2022-12-27T00:40:14.900751 | 2020-10-08T08:46:50 | 2020-10-08T08:46:50 | 302,276,558 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 119 | py | from app import app
from db import db
db.init_app(app)
@app.before_first_request
def create_tables():
db.create_all() | [
"bernard.wojcik@orange.com"
] | bernard.wojcik@orange.com |
2e39a57194aa25779d2d48153df0c71e8707d7a7 | e9d6619469178eb01e9c3c21c3551496465bbf52 | /postgres_tutorial/update_vendor.py | 245ea3c811bde05080240f5edeec930586713461 | [] | no_license | jojoprison/OSP_parser | f4787b91979bf83c0b907d1ce9963c8da07e3f1a | 671ee942e238f2f1bc75a6da1c8ffa26dd102085 | refs/heads/master | 2023-02-23T16:13:03.353300 | 2020-08-04T08:46:35 | 2020-08-04T08:46:35 | 282,286,184 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 800 | py | import psycopg2
from postgres_tutorial import config
def update_vendor(vendor_id, vendor_name):
""" update vendor name based on the vendor id """
sql = """
UPDATE vendors
SET vendor_name = %s
WHERE vendor_id = %s
"""
conn = None
updated_rows = 0
try:
params = co... | [
"egyabig2@gmail.com"
] | egyabig2@gmail.com |
d7df173677d16a737e72b21039c5e416a2a8aac4 | f1614f3531701a29a33d90c31ab9dd6211c60c6b | /test/menu_sun_integration/handlers/test_dequeue_order_brf_handler.py | b0b9d80b5b6946e5e623a62ea39f57dd5a4f585e | [] | no_license | pfpacheco/menu-sun-api | 8a1e11543b65db91d606b2f3098847e3cc5f2092 | 9bf2885f219b8f75d39e26fd61bebcaddcd2528b | refs/heads/master | 2022-12-29T13:59:11.644409 | 2020-10-16T03:41:54 | 2020-10-16T03:41:54 | 304,511,679 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,207 | py | import pytest
import responses
import json
import os
from mock import patch
from menu_sun_api.application.order_service import OrderService
from menu_sun_api.domain.model.order.order import OrderStatusType
from menu_sun_api.domain.model.order.order_repository import OrderRepository
from menu_sun_api.domain.model.selle... | [
"pfpacheco@gmail.com"
] | pfpacheco@gmail.com |
72f34ff1c55d46a4f0a287f128cdd5471cfef0eb | 9b59c5ce1b57b8bd066fcee4b55c821893bc50fb | /balloon_learning_environment/env/gym.py | 11a1d2a8f067924755b1bb004f5652117e69edcd | [
"Apache-2.0"
] | permissive | google/balloon-learning-environment | b485c62bab04ce8308ed8de3358d4303e601cf18 | 72082feccf404e5bf946e513e4f6c0ae8fb279ad | refs/heads/master | 2023-08-31T04:41:02.819901 | 2022-12-19T17:14:38 | 2022-12-19T17:18:57 | 418,619,484 | 108 | 14 | Apache-2.0 | 2023-08-16T23:21:29 | 2021-10-18T18:20:09 | Python | UTF-8 | Python | false | false | 1,787 | py | # coding=utf-8
# Copyright 2022 The Balloon Learning Environment 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 require... | [
"joshgreaves@google.com"
] | joshgreaves@google.com |
1d5e2354f5745da2b2c4a57982568842e198e1bc | f9bbee3557056875b323369e9f8408bf173274de | /top/api/rest/OpenimChatlogsGetRequest.py | 45d22536235d895066739c3d40d7d49e760346c7 | [
"MIT"
] | permissive | Akagi201/pycsc | 9655ff334c0911c94027adc7dcfc4eb7b79286b6 | fb3fb2613e65604a38761c866f910db335298f80 | refs/heads/master | 2016-09-06T17:02:32.368648 | 2015-09-18T08:36:32 | 2015-09-18T08:36:32 | 42,708,583 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 409 | py | '''
Created by auto_sdk on 2015.09.11
'''
from top.api.base import RestApi
class OpenimChatlogsGetRequest(RestApi):
def __init__(self,domain='gw.api.taobao.com',port=80):
RestApi.__init__(self,domain, port)
self.begin = None
self.count = None
self.end = None
self.next_key = None
self.user1 = Non... | [
"akagi201@gmail.com"
] | akagi201@gmail.com |
518a2ae9072026482b6974fb55a3ad79a336c96e | 42017610bcda1e52f65a0ad922281b4ac186e817 | /account/mixins.py | e3ad9cb030f44a9328e4c2f0774b0a092775b5b7 | [] | no_license | AmirRezaNasir/juylamish | 04a9dfad7139acbdde93668b77ee4852c1d9e20e | 2e3b24446904c5d0c7511cf528db7887be980859 | refs/heads/master | 2023-02-25T07:35:46.619449 | 2021-02-02T07:31:26 | 2021-02-02T07:31:26 | 335,049,307 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,583 | py | from django.http import Http404
from django.shortcuts import get_object_or_404, redirect
from blog.models import Article
class FieldsMixin():
def dispatch(self, request, *args, **kwargs):
self.fields = [
"title", "slug", "category",
"description", "thumbnail", "publish",
"is_special", "status",
]
if re... | [
"AmirRezaNasiri830@gmail.com"
] | AmirRezaNasiri830@gmail.com |
2a36feee1ef45f6fc4a9241269d207a45aaf7b8e | 56c5c7ac9ac16a22d540ffe5dad5288f063dd7c2 | /run_raster2file.py | 3257ff07092e4141b8c4959084f8b6c131f99257 | [] | no_license | multimap-geoservice/mapscript_publisher | 5566523c989f788f19133d7e4715b15b41596868 | bc8c0b632cf48788bfedd9f0f375eba882b97813 | refs/heads/master | 2021-07-04T11:41:10.095827 | 2019-10-03T12:33:56 | 2019-10-03T12:33:56 | 173,811,037 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 753 | py | # -*- coding: utf-8 -*-
# encoding: utf-8
import os, sys
from map_pub import BuildMapRes, PubMapWEB
if __name__ == "__main__":
"""
script_name db_host
"""
mapjsonfile = "./maps/raster2file.json"
db_host = sys.argv[1]
debug_path = "{}/GIS/mapserver/debug".format(os.environ["HOME"])
# b... | [
"old_bay@mail.ru"
] | old_bay@mail.ru |
93e50eefc2234eec196602851b35aeefcc71aaf7 | 0839b96b6f5642deb307430838528886d39a216d | /lightbbs/models/role.py | 8523442dd3fbeddacd8d15051d3845900dd285ff | [] | no_license | duwen135/lightbbs | e76636f44e437e45be82ccc66f6b441716b644df | 798d846b57b8470ec2f6702abf9683a3fece22f2 | refs/heads/master | 2022-10-01T16:43:56.073984 | 2019-12-20T15:23:13 | 2019-12-20T15:23:13 | 120,587,207 | 1 | 0 | null | 2022-09-16T17:45:48 | 2018-02-07T08:38:04 | HTML | UTF-8 | Python | false | false | 1,395 | py | # -*- coding:utf-8 -*-
__author__ = 'duwen'
from lightbbs import db
class Permission:
FOLLOW = 0x01
COMMENT = 0x02
WRITE_ARTICLES = 0x04
MODERATE_COMMENTS = 0x08
ADMINISTER = 0x80
class Role(db.Model):
__tablename__ = 'lb_roles'
id = db.Column(db.Integer, primary_key=True)
role_name ... | [
"duwen135@163.com"
] | duwen135@163.com |
5539adec8f877ecb9ac9cc5c4e3ad33124241453 | 679b58480bd1907f179233b10684ca4ce963d689 | /Advanced Algorithms and Complexity/Programming-Assignment-2/diet/diet.py | 7e0e535b49bcba815b7491e516bf4a28a0a76f80 | [] | no_license | romandadkov/Data-Structures-and-Algorithms | 1eaca22a67c4b0a306123f8b92d8a08f761ea59b | a5cae8bd765a404be270403ba08462e2b16988a3 | refs/heads/main | 2023-06-04T02:11:05.303454 | 2021-06-27T09:36:54 | 2021-06-27T09:36:54 | 355,097,636 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,328 | py | # python3
from sys import stdin
import itertools
import copy
EPS = 1e-18
PRECISION = 18
class Position:
def __init__(self, row, col):
self.row = row
self.col = col
def SelectPivotElement(pivot, a, used_rows):
while pivot.row < len(a) and (used_rows[pivot.row] or a[pivot.row][pivot.col] == 0... | [
"r.dadkov@gmail.com"
] | r.dadkov@gmail.com |
6559b442e05fe8a5d03fa1a64d5212a1da67aaa6 | 467f9e8d2181c6cfba59afc4c596e328fa1ddbbc | /api/account_serializers.py | e444315e61ac2edc45a134b47cb87b72041bfb11 | [] | no_license | jphalis/oby | 40af213349d7d68e748d34b25c14653876874110 | 20d4b43f7918c98044f82e7bdb9c34dcc10a7994 | refs/heads/master | 2021-05-21T11:13:58.612908 | 2016-06-15T22:05:20 | 2016-06-15T22:05:20 | 36,603,721 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,560 | py | from rest_framework import serializers
from rest_framework.reverse import reverse as api_reverse
from accounts.models import Advertiser, Follower, MyUser
from photos.models import Photo
from .photo_serializers import PhotoSerializer
class FollowerCreateSerializer(serializers.ModelSerializer):
user = serializers.... | [
"jphalisnj@gmail.com"
] | jphalisnj@gmail.com |
d9837f06f45adda0950e7aa3239b9d6903b7d8cb | 48dffe77dd08813fe644d5130ff49a5a8b3d2bb6 | /venv/Scripts/futurize-script.py | 4353467a399ddd5449b17e602580add419bc19ba | [] | no_license | mattdickers/MFD | e62b5ea0db1e1e10c451a850bc378d977bf4d097 | 374b0bd07ae28ca64d7909f29a0309abac54de2f | refs/heads/master | 2022-02-08T08:51:54.845939 | 2019-08-15T16:51:21 | 2019-08-15T16:51:21 | 188,462,548 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 418 | py | #!C:\Users\mattd\Desktop\MFD\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'future==0.17.1','console_scripts','futurize'
__requires__ = 'future==0.17.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]... | [
"mattdickers@gmail.com"
] | mattdickers@gmail.com |
262247848853b2f40335bfbbd91c6fde6c4a696a | 54e1a6322d37e264b95f7b59d60480c23fda545e | /book_rating_api/wsgi.py | e2b9ceeb95f6a7968150b697988cefabf8eb99ce | [] | no_license | Last-dreamer/Book-Rating-App | 269777c50f3c4fc11bb11b56bdcc9caecfa650c0 | 80d14e1e56b1d44abf7e9e1861d042cbc5ce01c5 | refs/heads/master | 2022-06-28T20:13:12.028725 | 2020-05-10T21:52:03 | 2020-05-10T21:52:03 | 261,874,418 | 1 | 0 | null | 2020-05-10T21:52:05 | 2020-05-06T20:44:05 | Python | UTF-8 | Python | false | false | 408 | py | """
WSGI config for book_rating_api project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJA... | [
"asim0000.ak@gmail.com"
] | asim0000.ak@gmail.com |
406d38cb6672ca784d26ca77fb9a5119682d990f | d720345cabe437161ec2060ab53dbc8b3a93c9ae | /myapp/urls.py | adac4dce0e4adba0f1c8cbc8e44b1749319e9af7 | [] | no_license | azmanabdlh/django-auth-code | 5cef46b33f0d61c8b8fe7868830ac3767ad51973 | 15502069f9a45b4421fe4e22fdfdf01ee9c83b8b | refs/heads/master | 2023-03-17T18:56:26.589536 | 2021-03-05T08:37:48 | 2021-03-05T08:46:38 | 344,747,874 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 296 | py | from django.contrib import admin
from django.urls import path, include
from django.views.generic import TemplateView
urlpatterns = [
path('admin/', admin.site.urls),
path('', TemplateView.as_view(template_name = 'index.html')),
# module apps
path('', include('account.urls'))
]
| [
"azmanabdlh@yahoo.com"
] | azmanabdlh@yahoo.com |
6065ba5b60f210b815ce57b5b1d263bbaaf0bca0 | 0722ff43cd5b64d619122beecf1eee1d56d9fdc3 | /blog/forms.py | 7f4b95cb524f64f8336f997f1a7cb4bcb8111c56 | [] | no_license | ttaerrim/studyCRUDfirstweek | cee9d2638cdbbc940f9e70179ace2c70ae89b8de | 46ac70b48c814b184960539972bcba5b9e85e2b8 | refs/heads/master | 2022-12-10T12:12:58.557801 | 2019-07-24T07:14:25 | 2019-07-24T07:14:25 | 195,625,277 | 0 | 0 | null | 2022-12-08T05:55:17 | 2019-07-07T07:59:07 | JavaScript | UTF-8 | Python | false | false | 443 | py | from django import forms
from .models import Blog, Comment
class BlogForm(forms.ModelForm):
class Meta:
model = Blog
fields = ['title', 'body']
class CommentForm(forms.ModelForm):
#text = forms.TextInput(label='댓글')
class Meta :
model = Comment
fields = ['text']
def ... | [
"ltr0121@naver.com"
] | ltr0121@naver.com |
2ab83f6e57a277e5962dea39ecf1dacb75b86a2e | f2cb9b54e51e693e1a1f1c1b327b5b40038a8fbe | /src/bin/shipyard_airflow/tests/unit/control/conftest.py | 7f5b0100c9300d2eb866dd8ceba3d8f0359325cb | [
"Apache-2.0"
] | permissive | airshipit/shipyard | 869b0c6d331e5b2d1c15145aee73397184290900 | 81066ae98fe2afd3a9c8c5c8556e9438ac47d5a2 | refs/heads/master | 2023-08-31T11:46:13.662886 | 2023-07-01T06:42:55 | 2023-08-30T16:04:47 | 133,844,902 | 6 | 2 | Apache-2.0 | 2023-09-12T19:09:02 | 2018-05-17T17:07:36 | Python | UTF-8 | Python | false | false | 1,006 | py | # Copyright 2017 AT&T Intellectual Property. All other rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required... | [
"bryan.strassner@gmail.com"
] | bryan.strassner@gmail.com |
e386497fed6b4e99ed16997d4577350cdf94eeb4 | 67a7c314fc99d9cd7a677fcb6bc2b6dfa20a9cff | /spambayes-1.0.4/Outlook2000/oastats.py | c1d415965921fde205934bc289d41cf5bd1794ce | [
"LicenseRef-scancode-unknown-license-reference",
"Python-2.0"
] | permissive | Xodarap/Eipi | 7ebbb9fd861fdb411c1e273ea5d2a088aa579930 | d30997a737912e38316c198531f7cb9c5693c313 | refs/heads/master | 2016-09-11T06:28:01.333832 | 2011-05-03T15:35:20 | 2011-05-03T15:35:20 | 1,367,645 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,625 | py | # oastats.py - Outlook Addin Stats
class Stats:
def __init__(self, config):
self.config = config
self.Reset()
def Reset(self):
self.num_ham = self.num_spam = self.num_unsure = 0
self.num_deleted_spam = self.num_deleted_spam_fn = 0
self.num_recovered_good = self... | [
"eipi@mybox.(none)"
] | eipi@mybox.(none) |
0753ae28da11b2b3e2b4b95791fe1e45d45f59fc | b4b3106c36558bb65ff865cf192003895c2ff25d | /ros_bag_utils/bag2video/bag2video_16bit.py | 38fe20e2c2e135b3b5b21eed7c7d628921313442 | [
"BSD-3-Clause"
] | permissive | HenryZh47/my_utils | fd19ff2638d0784ebb74bd4259b6df8154378432 | d21c49d862451b186168b3fb8a4583e07f4705e8 | refs/heads/main | 2023-05-31T07:36:49.256747 | 2021-05-27T03:42:36 | 2021-05-27T03:42:36 | 300,409,839 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,001 | py | #!/usr/bin/env python
from __future__ import division
import rosbag, rospy, numpy as np
import sys, os, cv2, glob
from itertools import izip, repeat
import argparse
# try to find cv_bridge:
try:
from cv_bridge import CvBridge
except ImportError:
# assume we are on an older ROS version, and try loading the dum... | [
"hzhang0407@gmail.com"
] | hzhang0407@gmail.com |
38a627238172ddbc69005395e86535c3845cf197 | 62c78c7289d6c94ffa959c40e9a24dd83a4f6037 | /shops/admin.py | a410ba2f0ec7aae22ea6f232b7434e9bb2cdefc5 | [] | no_license | geelweb/geodjango-tests | d41f808b0ac79dbc5167e6a07a0c655065c8dcd3 | ec24cef70de1f7d7c832f5c3a22c1ed9f1ed2132 | refs/heads/master | 2021-01-22T03:13:33.957737 | 2014-05-05T19:10:01 | 2014-05-05T19:10:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 119 | py | from django.contrib import admin
from shops.models import Shop
# Register your models here.
admin.site.register(Shop)
| [
"guillaume@geelweb.org"
] | guillaume@geelweb.org |
c84323a5316bab0165f80ee04c6a1fe80ae335b6 | 4a5f11b55e23999a82b62f5c72b44e9a36d24f63 | /simplemooc/core/views.py | 4cd3e744a004ade4daddc01dec6fba412395974c | [] | no_license | diogo-alves/simplemooc | dca62bfcb2ea6357a551a5760778537f083b675c | cfec59f99888e4e23d41f020ff06bfdf39f70203 | refs/heads/master | 2022-05-10T10:32:18.686313 | 2019-06-04T19:30:43 | 2019-06-04T19:30:43 | 190,260,470 | 0 | 0 | null | 2022-04-22T21:34:44 | 2019-06-04T18:46:43 | Python | UTF-8 | Python | false | false | 192 | py | from django.shortcuts import render
def home(request):
return render(request, 'home.html', {"usuario": "Diogo Alves"})
def contact(request):
return render(request, 'contact.html')
| [
"diogo.alves.ti@gmail.com"
] | diogo.alves.ti@gmail.com |
4ffd9449006d47387e59278291b5f49950c2c0b0 | 3f4b535e537666b669b4cfbfca05c7529d2fb631 | /Algorithms/distinct_letters.py | f013f1888b567699951ea216cd4316e4f20be4e5 | [] | no_license | iliachigogidze/Python | ded0a78a1751a536fcdf1fd864fc296ef52f6164 | 6db759b3ee4f4b866421b2cb3a775b7aec32b0c9 | refs/heads/master | 2020-04-09T08:15:07.107069 | 2019-03-11T10:35:23 | 2019-03-11T10:35:23 | 160,187,366 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 430 | py | '''
17. Given list of distinct letters, generate all possible words so that each letter is used only once per word.
Example: ['b', 'a', 'c'] -> abc acb bac bca cab cba
'''
def perms(s):
if(len(s)==1):
return [s]
result=[]
for i,v in enumerate(s):
print('i: ',i, ' || v: ',v)
... | [
"iliachigogidze@gmail.com"
] | iliachigogidze@gmail.com |
8cc8bfbdb6d67331445fce9890576672e1983a43 | 227b20dbbd9b8270910029e4158f501fee0ca677 | /applications/models/trade_pool.py | 95cd1e63700be18d2611cdfc13fc7042735dbb28 | [] | no_license | mattguozhijun/flsk_nft | 3bc926cff868a5501d101e42ab45780cbd5440e9 | 66518feab1ea353585bace3c511595e9a77e80ff | refs/heads/master | 2023-08-24T08:59:39.003627 | 2021-10-26T04:17:26 | 2021-10-26T04:17:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,104 | py | # -*- coding: utf-8 -*-
# @Time : 2021/10/22 10:30 上午
# @Author : HL
# @Email : 1277078753@qq.com
# @Describe :
import datetime
from applications.extensions import db
class TradePool(db.Model):
__tablename__ = 'trade_pool'
id = db.Column(db.Integer, primary_key=True)
ico_id = db.Column(db.Integer, db.Fore... | [
"906897944@qq.com"
] | 906897944@qq.com |
8c02f8221d5f8f8346963f364be23909f8d5991a | 960eee7be3078f96e75ecd7f1997a32cef9f12fd | /models/model_ops.py | 427a69aac36c37d85ebfc66005b4e37f6bece736 | [
"MIT"
] | permissive | wslc1314/atec_nlp_sim | 0c7c24aeee5ae13a8d0f7824fd0c557044fae495 | 6294295a76a65e8535f31d295088f195ba0eadf1 | refs/heads/master | 2020-03-25T14:48:25.027882 | 2018-12-17T09:29:37 | 2018-12-17T09:29:37 | 143,865,917 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 13,472 | py | import tensorflow as tf
def entry_stop_gradients(target, mask):
mask_h = 1-mask
mask = tf.cast(mask, dtype=target.dtype)
mask_h = tf.cast(mask_h, dtype=target.dtype)
return tf.stop_gradient(mask_h * target) + mask * target
def embedded(X,embeddings,oov_mask,trainable,scope="embedded",reuse=False):
... | [
"lichen25@360buyad.local"
] | lichen25@360buyad.local |
28cab5cfa39e380d081e71684ff12c838c04ba2f | caab7b34857d090a3c0031665b9b87ada076e459 | /src/lab0/client.py | 57118035ff4763b299679c13a51ccea758c62f06 | [] | no_license | PeyWn/tddd25-dist-sys | eeac81e0a4d99ed10e08b73679578e3d09e7558b | 69519d05da783df94e1d7aaa86fdcd6ed135cab2 | refs/heads/master | 2023-03-16T13:25:55.890120 | 2020-03-09T08:26:26 | 2020-03-09T08:26:26 | 348,323,881 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,286 | py | #!/usr/bin/env python3
# -----------------------------------------------------------------------------
# Distributed Systems (TDDD25)
# -----------------------------------------------------------------------------
# Author: Sergiu Rafiliu (sergiu.rafiliu@liu.se)
# Modified: 24 July 2013
#
# Copyright 2012 Linkoping Un... | [
"bjohv276@student.liu.se"
] | bjohv276@student.liu.se |
c0e5467451825393d6fb9a5612e6e63b9b4bec71 | 097408c75211e529d5ed64efea9549485a5103e7 | /extjs_lib/old/form.py | 313d96e3a444cbe1af0a7164291a28902b48a7b3 | [] | no_license | chrislyon/django-test-extjs | bcec59a0df9b991d104f6d77fbdab025abfcb74e | 66f5a54ad9120fc28e90a349fdc020442728c816 | refs/heads/master | 2021-01-22T18:18:27.440734 | 2013-11-17T16:49:50 | 2013-11-17T16:49:50 | 33,318,337 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,892 | py |
### ------------------
### FORMULAIRE EXTJS
### ------------------
import sys
from django.utils import simplejson
class ExtForm(object):
"""
La classe pour les formulaires
"""
def __init__(self):
self.titre = "TITRE A CHANGER"
self.width = 600
self.height = 300
self.bo... | [
"chris.lyon.tech@gmail.com"
] | chris.lyon.tech@gmail.com |
fcf261b32e262a1295f13a98fe44e0389cecd98f | ac064be78dccedb03809c389dd3c66ce9b1a3fad | /main.py | 3e94185dd2addb2f3ed6ef36b07bfd53986b2acb | [] | no_license | ltell/Tip-Percentages-by-Party-Size | ae73570683a02355df6834f3602d4d2da7c9b368 | 5c8c0ab4dc462f47d1fba2c3dd82bab6fbabe97c | refs/heads/master | 2022-11-12T19:36:16.674188 | 2020-07-07T20:47:33 | 2020-07-07T20:47:33 | 277,919,023 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,075 | py | import csv
import numpy as np
import matplotlib.pyplot as plt
with open("tips.csv", "r") as file:
data = csv.reader(file,delimiter=",")
headers = next(data)
data_list = list(data)
data_numpy = np.array(data_list)
size = data_numpy[:,6]
# select every row (:), and grabbing index position 1. CSV file is string ... | [
"replituser@example.com"
] | replituser@example.com |
8acb9e120c24d78cdb056a635da218f8c9670a05 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/otherforms/_humanest.py | 48d7b67f12286175e2622199076e17231ea435b7 | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 222 | py |
#calss header
class _HUMANEST():
def __init__(self,):
self.name = "HUMANEST"
self.definitions = human
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.basic = ['human']
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
ccd957c3ecb292462a57712a6ed5c108ee2d01bd | 1f0a9aa8cbe2c558fd2751eec29930ce86018f10 | /twonicornweb/views/ss.py | 4050a0cb868d90b00a66dd30e5b50e67e334f521 | [
"Apache-2.0"
] | permissive | UnblockedByOps/twonicorn | 26c7cda2b1f1365b32fbd771c79bf9d210d2033f | 7e02f9a4de132856c41b539ec1e0483a74cbe9d5 | refs/heads/master | 2021-06-16T18:03:04.279144 | 2017-04-12T23:28:21 | 2017-05-12T20:24:44 | 32,044,752 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 24,692 | py | # Copyright 2015 CityGrid Media, LLC
#
# 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 t... | [
"Aaron.Bandt@citygridmedia.com"
] | Aaron.Bandt@citygridmedia.com |
c7a5d62ff9c478f7430982313345c1f0adb82459 | 494406a733bc460244d8da5888ef461cce0a36ce | /task31.py | 6a7f71cd5aa40830b3cab1407c3ddc112cc43f9c | [] | no_license | kanatnadyrbekov/Ch1Part2-Task-31 | 8dcb398ddf6b64e4dc7f6005cc0313b5146b8e05 | 8bbc0d3dbd39d08e2cdfecc302d6e32bd2f94ff3 | refs/heads/master | 2020-12-02T01:42:31.539140 | 2019-12-30T04:23:46 | 2019-12-30T04:23:46 | 230,846,949 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 470 | py | # Напишите функцию которая подсчитает количество строк, слов и букв в текстовом
# файле.
text = """Hello my name is Kanat, and I study in Maker's course
mjdbvzjk zkjvasukz ksbvzu ubvu jbvab ajbvuzb """
string = text.count("\n")
print(f"Text has: {string + 1} string")
words = ' '
a = text.count(words)+1
print(f"Text has... | [
"kanatnadyrbekov@gmail.com"
] | kanatnadyrbekov@gmail.com |
a931d3ef8ecc32157ed01a1bf0210f341b359d6a | b19c38f4864d1cd451ab8215680835ae13e323fb | /12_integer_to_roman/test.py | 2e2413643637d76d084242c585bcc27c494fc882 | [] | no_license | sh00tg0a1/leet | df412e62b949166e63ce1fec86e8dc3304b1de44 | 849c1f216dd912e28be35f9579f69975fa7410f9 | refs/heads/master | 2020-04-09T17:59:16.426779 | 2019-09-17T08:31:53 | 2019-09-17T08:31:53 | 160,498,095 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 536 | py | import time
from s import Solution
class test(object):
def setUp(self):
self.s = Solution()
def tearDown(self):
pass
def test_solution(self):
assert(self.s.intToRoman(3) == 'III')
def test_solution2(self):
assert(self.s.intToRoman(4) == 'IV')
def test_solution3(... | [
"chenxiao911@gmail.com"
] | chenxiao911@gmail.com |
0f1be9d33b908108f06481fb69e1756a026d8b88 | f989c2238e3e39862f700e2f0c9a5a0ffab86dc9 | /CodeFights/functionsComposition.py | 66cbf8af3582b250c26de017300eea2d0a773e62 | [
"MIT"
] | permissive | makramjandar/Test_Code | 8000b6dee8d16f02accd0326c6e1b8397b0e33b3 | 798efc9fc668ef021736a6d9699ef4713cf8b718 | refs/heads/master | 2020-09-28T21:33:07.390772 | 2018-06-13T15:26:30 | 2018-06-13T15:26:30 | 226,869,864 | 1 | 0 | MIT | 2019-12-09T12:48:05 | 2019-12-09T12:48:04 | null | UTF-8 | Python | false | false | 1,063 | py | #!/usr/local/bin/python
# Code Fights Functions Composition Problem
from functools import reduce
import math
def compose(functions):
return reduce(lambda f, g: lambda x: f(g(x)), functions, lambda x: x)
def functionsComposition(functions, x):
return compose(map(eval, functions))(x)
def main():
tests ... | [
"heather.kusmierz@gmail.com"
] | heather.kusmierz@gmail.com |
1dd53163bf9d9e727e7d119c3407a993fc43a627 | 4781d9293b59a5072647bb179195b143c60621bd | /백준/7568_덩치/venv/Scripts/pip-script.py | e089de8832fd2f720f059695debffe5d3ee13f54 | [] | no_license | chriskwon96/Algorithm_codes | bf98131f66ca9c091fe63db68b220527800069c9 | edb7b803370e87493dad4a38ee858bb7bb3fd31d | refs/heads/master | 2023-08-15T18:48:26.809864 | 2021-10-12T13:43:21 | 2021-10-12T13:43:21 | 387,803,476 | 0 | 0 | null | null | null | null | WINDOWS-1252 | Python | false | false | 428 | py | #!C:\Users\ATIV\Desktop\my_work\¹éÁØ\7568_µ¢Ä¡\venv\Scripts\python.exe -x
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==19.0.3','console_scripts','pip'
__requires__ = 'pip==19.0.3'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', s... | [
"chriskwon96@naver.com"
] | chriskwon96@naver.com |
867e9b01f0b93683e393cc04db7c18c19e6997d1 | dd95ca2932da4670aa05ff9548dfd0262bd88a38 | /clinte/models.py | af91fb4f02f34ced1c456a5547a1a1c6aa648485 | [] | no_license | kenedycpd/Desafio-Preco-Certo | b61e219b8b9801dfd395ea6f331dc3776f8a02b4 | 0889112cace4f0f721dcd28fe9d4795da7d8dcc7 | refs/heads/master | 2021-09-23T16:07:51.839861 | 2020-02-05T01:16:41 | 2020-02-05T01:16:41 | 238,100,346 | 0 | 0 | null | 2021-09-22T18:31:28 | 2020-02-04T01:46:07 | Python | UTF-8 | Python | false | false | 238 | py | from django.db import models
# Modelo Cliente.
class Cliente(models.Model):
nome = models.CharField('Nome', max_length=50)
class Meta:
verbose_name = 'Cliente'
verbose_name_plural = 'Clientes'
def __str__(self):
return self.nome | [
"kenedycelestino89@gmail.com"
] | kenedycelestino89@gmail.com |
d51da34c53710f07861163e9b07028efe0fca5a5 | 67a9cf0184b8f641bf0cd193d32dd6b9c2dbf204 | /docs/methods_str/problems_strings/problem_strs_add_input.py | 804372ca7518ac022286489373b14208c6fa2a2d | [] | no_license | ruslan-rv-ua/python-starter | b37c95b2568d3429c2b514d5820804e9d646044c | d09da86530c1f49f4bdaa8c2d4f760eec757809c | refs/heads/master | 2021-10-23T21:34:25.014741 | 2021-10-16T06:01:49 | 2021-10-16T06:01:49 | 225,604,511 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 395 | py | '''
Напишіть програму яка виконує наступне:
1. Просить користувача ввести два цілих числа розділивши їх пробілом
2. Виводить суму цих чисел
Пам'ятайте:
1. отримали вхідні дані
2. обчислили результат
3. вивели результат
'''
| [
"ruslan.rv.ua@gmail.com"
] | ruslan.rv.ua@gmail.com |
fb5213e655f9d6ec263226ab1a221b04f63e7d96 | 84bc04ff957602c7db6694ad684ede501ed9fcfc | /proficia/__init__.py | 10c80e4f7d7bc4f824a5803a3af10eb1032e537a | [
"MIT"
] | permissive | endlesslupita/proficia | e9434e62aa0872599e2f05f31063f2ca3ccb9ef9 | b93aceacc94c0cd9caa23855031d74d55f849417 | refs/heads/master | 2020-04-05T00:44:09.924354 | 2015-09-25T23:29:04 | 2015-09-25T23:29:04 | 42,262,803 | 0 | 1 | null | 2015-09-11T17:07:45 | 2015-09-10T18:28:47 | JavaScript | UTF-8 | Python | false | false | 341 | py | # -*- coding: utf-8 -*-
__about__ = """
In addition to what is provided by the "zero" project, this project
provides thorough integration with django-user-accounts, adding
comprehensive account management functionality. It is a foundation
suitable for most sites that have user accounts.
"""
default_app_config = "prof... | [
"endlesslupita@gmail.com"
] | endlesslupita@gmail.com |
4a9ee219d59b7f6d34dfc5f888c702d025c5b5ec | 60db9eff105a36b1420f8d8ef7b0a2b8572163b9 | /hackerrank/n_numbers.py | e1c5061ba2bebf9c0d9f49f57a4bf10ccff05133 | [] | no_license | kruglov-dmitry/algos_playground | 8773521b8a9f75b02e612bee3b59b71fd2da60e8 | e62afe9a57e99948c286fd24000d4afca1771615 | refs/heads/master | 2020-04-08T02:04:24.798522 | 2020-02-23T21:26:51 | 2020-02-23T21:26:51 | 158,921,524 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 587 | py | #
# Given a number N put all elements from 1 to N in array in following order
# 1,3, ..., 4, 2
# Time: O(N)
# Space: O(1)
#
def n_numbers(N):
if N < 1:
return []
res = [0] * N
prev = 0
for idx in xrange(N//2):
res[idx] = prev + 1
res[N - 1 - idx] = res[idx] + 1
... | [
"kruglov.dima@gmail.com"
] | kruglov.dima@gmail.com |
5879635f7e37f488cf8a5f9cc3dc537e7512d206 | 0083ad7bde53f273b1dfe5fd59fed7c5d5bed3a8 | /connectcare/mysite/forms.py | 8915a3425a18b00cb461039fa124de7ab347df7f | [] | no_license | SanjanaKrishnam/RBAC-Authorization | 122e209ab9da5efa7a0188f352785ec6129c4a7e | ecbf359c23677db5104a29e4f3658a600cfe3607 | refs/heads/master | 2020-05-18T02:18:48.974707 | 2019-04-29T17:16:31 | 2019-04-29T17:16:31 | 184,112,344 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 448 | py | from django import forms
class UserRegistrationForm(forms.Form):
username = forms.CharField(
required = True,
label = 'Username',
max_length = 32
)
email = forms.CharField(
required = True,
label = 'Email-id',
max_length = 32,
)
password = forms.CharFi... | [
"sanjana.krishnam@gmail.com"
] | sanjana.krishnam@gmail.com |
08dce837f091ba40378cd153987804f1b9320781 | fc9de122ad97e3eb8c12f60fe83a79925a96ed4b | /pipeline.py | 4415c23a1d087d40e85fc2d97214418ff0f66ebd | [] | no_license | Rajrup/Pose-Estimation | 435891d590d5ec1a97ba161d30950234d4cfce71 | 67c09b4e8bc96efcf1b3318c705bf822a542a08a | refs/heads/main | 2023-07-20T02:45:59.218734 | 2021-08-31T08:56:56 | 2021-08-31T08:56:56 | 401,631,077 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,419 | py | import cv2
from module_pose.pose_openpose_tf import PoseOpenpose
from module_pose.pose_recognition_tf import PoseRecognition
input_file = "./images/exercise.avi"
output_file = "./images/exercise_pose.mp4"
in_reader = cv2.VideoCapture(input_file)
frame_height = int(in_reader.get(cv2.CAP_PROP_FRAME_HEIGHT))
frame_widt... | [
"rajrup.withbestwishes@gmail.com"
] | rajrup.withbestwishes@gmail.com |
a81a539af0ad008720cc26dbebc755db65aeb05b | 423fce12c428d5b47972263b985def5fe7afefb3 | /builtins/bins-modules/this/caesar-cipher-lowercase.py | caf699c4cf5848487a3dfec29085551c621406ec | [] | no_license | AmigaTi/Python3Learning | 58ed70dc4924c40e9154221cb983650cadbcb073 | 6a5c2dd8be903edc533292ecf50a0d94db2b4729 | refs/heads/master | 2021-09-22T13:56:09.215887 | 2018-09-10T17:49:19 | 2018-09-10T17:49:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,376 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
import string
'''
凯撒密码属于替换密码的一种,替换密码就是指用一个别的字母来替换当前的字母。
比如我和对方约定一个替换表: l -> h,o -> a,v -> t,然后我发送love给对方,对方按照对照表就知道我发送的其实是hate。
凯撒密码使用的是将正常的 26 个英文字母进行移位替换,通常设定 shift 值为 3,相当于 a -> d,b -> e,c -> f...
'''
lowercase = string.ascii_lowercase
def substitution(text, key_table... | [
"shellever@163.com"
] | shellever@163.com |
b6c5f2b49e0ef9d7cbfc4d3caa13a6c45a620e0d | 1b01dec8c454337232a6cf1046412ec98269fe5d | /examples/arangodb_aio_example.py | 562078912099c5ecc0e6027526c17df12952ee60 | [
"BSD-3-Clause"
] | permissive | lietu/shylock | d38710220306af1e4fac638b2d24df8a8fdc3801 | 5ada3cb4bf75e2395fadb19f68ceff5ff92e6a65 | refs/heads/master | 2023-08-09T06:58:47.653545 | 2023-03-05T16:27:30 | 2023-03-05T16:27:30 | 243,951,853 | 5 | 8 | NOASSERTION | 2023-07-25T21:10:23 | 2020-02-29T10:55:05 | Python | UTF-8 | Python | false | false | 1,603 | py | import asyncio
from time import time
from aioarangodb import ArangoClient
from shylock import AsyncLock as Lock
from shylock import ShylockAioArangoDBBackend, configure
HOSTS = "http://localhost:8529"
USERNAME = "root"
PASSWORD = ""
async def main():
print("Start")
client = ArangoClient(hosts=HOSTS)
d... | [
"janne.enberg@lietu.net"
] | janne.enberg@lietu.net |
73d1f2135a51c15de594eb6f04e0c740bff20dfd | a3edbba6d69c34ad73b48fae5b23033d7fd35aee | /util/utilurlparse.py | a0443a788b903c9886413dbc03c88f17ea58f227 | [] | no_license | a2un/crawlpy | 6b13f5dc6113d545c97bb92235323692f0c52691 | 8dc364dd077907e0e9c6333c09f07ca0bad9dd71 | refs/heads/master | 2020-03-07T06:32:07.834101 | 2018-03-29T17:40:15 | 2018-03-29T17:40:15 | 127,325,249 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 86 | py | from urlparse import urlparse
def gethostname(url):
return urlparse(url).hostname | [
"encodedgeek@gmail.com"
] | encodedgeek@gmail.com |
badaad01eda5e27db0d00c551aa4d65aa0102f15 | 4bd5e2c5eb12750099438b736f1f8b2236f1eea8 | /stockscraper2/stockscraper2/items.py | b839cd24ba69bdc25c71dbf9881f4d19751f87b0 | [] | no_license | z2sonee/stock_scrapy | 68df05ed7cc0658a9bf33f748f850a3919259777 | 8b2ece6fd3c2858f0e7e429bd954508726e8bc8c | refs/heads/main | 2023-03-08T17:49:54.959095 | 2021-02-25T07:36:58 | 2021-02-25T07:36:58 | 342,159,017 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 372 | py | # Define here the models for your scraped items
#
# See documentation in:
# https://docs.scrapy.org/en/latest/topics/items.html
import scrapy
class Stockscraper2Item(scrapy.Item):
read_time = scrapy.Field()
stock_volume = scrapy.Field()
now_price = scrapy.Field()
max_price = scrapy.Field()
min_pri... | [
"noreply@github.com"
] | z2sonee.noreply@github.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.