blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 281 | content_id stringlengths 40 40 | detected_licenses sequencelengths 0 57 | license_type stringclasses 2
values | repo_name stringlengths 6 116 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 313
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 18.2k 668M ⌀ | star_events_count int64 0 102k | fork_events_count int64 0 38.2k | gha_license_id stringclasses 17
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 107
values | src_encoding stringclasses 20
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 4 6.02M | extension stringclasses 78
values | content stringlengths 2 6.02M | authors sequencelengths 1 1 | author stringlengths 0 175 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
6b40a94b9d1873941b7d43f3eaef484e9ecd0b37 | 1504f499c2985a5ea0abdc974ebd04a2c5e82ae3 | /equalities/genPB_diag_spec.py | 81ba447eb9aff969cb01a7f0b8cc1fadb12e911c | [] | no_license | vliew/nonlinear | 658b0eb4040ec4879a0316c21c25b4641053a0fb | 74e36a20adf9b6ead88f482f61eb786f88c09965 | refs/heads/master | 2022-07-29T13:20:04.350000 | 2020-08-30T03:50:17 | 2020-08-30T03:50:17 | 287,128,574 | 0 | 1 | null | 2020-08-30T03:50:19 | 2020-08-12T22:35:15 | Python | UTF-8 | Python | false | false | 2,179 | py | from circuits_pb import *
import sys
import os
def writeDIAG_SPEC(numBits, greater_than=True):
# Map from columns to the constraints on those columns.
# We will fill col_constraints with the full set of constraints.
# Constraints in column -1 will always be included.
col_constraints = {}
for i in r... | [
"vliew@cs.washington.edu"
] | vliew@cs.washington.edu |
dbdefdabc3655301bdbe56e2f119a6047094282f | c0ea00e5744464c25e608c0274735424661aabf0 | /V3_TAD_CALLER_NOR_RAW/with_CTCF/Simple_Compare_CTCF.py | e62d742b8bbefee87b54a65094f5b3623ceff818 | [] | no_license | yang714/TAD_Thesis | 8441578454d1416c30a90e1981ec38292fded0c7 | b0d5a018557a3444ac291c80424543e58a98fa35 | refs/heads/master | 2020-07-15T07:23:20.180000 | 2019-08-31T08:13:21 | 2019-08-31T08:13:21 | 205,511,679 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 144 | py | from keras.models import load_model
import matplotlib.pyplot as plt
from keras.utils import np_utils
import numpy as np
import pandas as pd
| [
"ceerr714@gmail.com"
] | ceerr714@gmail.com |
39eb7173cdd5f6dbd364ee7286d195fa1117b8d4 | 8431b28994b082c1be46acf5f9bd3ed0bf9f5d1c | /init.py | 1deb9dcf4b02e770425e533ffde994713cce27f9 | [] | no_license | rochSmets/pywi | ac26fcaf0140de4f72cea4819e3a1d2c41ee3fad | 144589b071de170d42963c657c2c67211fa0d312 | refs/heads/master | 2021-03-29T10:53:53.734000 | 2020-09-08T12:18:53 | 2020-09-08T12:18:53 | 247,947,655 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,130 | py | #!/opt/local/bin/python
# encoding: utf-8
import numpy as np
import matplotlib.pyplot as plt
class CondInit(object):
def __init__(self, domsize,ncells):
self.L = domsize
self.ncells = ncells
self.resize(domsize,ncells)
def resize(self,domsize,ncells):
dl0 = domsiz... | [
"roch.smets@gmail.com"
] | roch.smets@gmail.com |
2cf1cde00eea109a46c3e5983b4906feef72866f | f0856e60a095ce99ec3497b3f27567803056ac60 | /keras2/keras66_gradient2.py | 0e0d0cc1f27912ef32b11753f760a7606dd315f8 | [] | no_license | hjuju/TF_Study-HAN | dcbac17ce8b8885f5fb7d7f554230c2948fda9ac | c0faf98380e7f220868ddf83a9aaacaa4ebd2c2a | refs/heads/main | 2023-09-04T09:13:33.212000 | 2021-10-27T08:00:49 | 2021-10-27T08:00:49 | 384,371,952 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 479 | py | import numpy as np
import matplotlib.pyplot as plt
f = lambda x: x**2 - 4 * x + 6
gradient = lambda x: 2*x - 4 # f 미분 -> 미분한 값이 0이 되는 지점이 가장 낮은지점 -> 우리가 찾는 지점
x0 = 0.0
MaxIter = 20
learning_rate = 0.25
print("step\tx\tf(x)")
print("{:02d}\t{:6.5f}\t{:6.5f}".format(0, x0, f(x0)))
for i in range(MaxIter):
x1 = x0... | [
"tkackeowjs@naver.com"
] | tkackeowjs@naver.com |
492c142cb1d23510b7a9f1d4f7229fdbf87f824a | 76357a33888662ee16fd90cebf83521d952ba9c1 | /stringpattern/strpattern9.py | 6933820726f14879329b7dee3d0e80d1dfa59788 | [] | no_license | mukesh25/python-mukesh-codes | 10c287ea2e566c55539b925e765c38f05964d84f | 819f289418b7d41c17e52fc7a749d2c89ea7f9ca | refs/heads/master | 2022-12-18T03:30:06.917000 | 2020-09-18T04:19:44 | 2020-09-18T04:19:44 | 296,227,647 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 461 | py | #Assume input string contains only alphabet symblols and diits.
#write a program to sort characters of the string, first alphabet symblols followed by digits?
# input = 'B4A1D3'
# output = 'ABD134'
s = input('enter some alphanumeric String to sort: ')
alphabets = []
digits = []
for ch in s:
if ch.isalpha():
alph... | [
"poddarm85@gmail.com"
] | poddarm85@gmail.com |
6885e4c483c0399abfd20154156beeadf8b508af | d048a865519b5f944e1430c6181d00399c979d9c | /gallery/gallery/urls.py | f765f9c8680d91d33f2171654643694a2b0f21ad | [] | no_license | jithinvijayan007/PaceWisdom- | 5f84261c4ba7f51e25c8c21074b48214a24cb6d2 | 1ba00814a757edb327923afcaf20fe04652efa0e | refs/heads/master | 2023-03-06T04:00:21.729000 | 2021-02-21T18:56:54 | 2021-02-21T18:56:54 | 340,974,786 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 835 | py | """gallery URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.0/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-based... | [
"jithinvijayan007@gmail.com"
] | jithinvijayan007@gmail.com |
cef0da0725eb5e86efd05782852d6e6134a53ab6 | 6a87bb89a8e34d911eceee2c0f6072b3e6533ba2 | /exercise/stats.py | 0236ffaa8d25187c605050ae6181e198d507876f | [] | no_license | 1baikai/python_knowledge | 1d78ea8c45e58e7f86cc42f0d2691809e1364dca | f26b41874618622e709990110c65830d81d334cf | refs/heads/master | 2020-03-30T00:43:42.833000 | 2018-09-27T07:10:07 | 2018-09-27T07:10:07 | 150,540,602 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 482 | py | # stats.py
def median(L):
L.sort()
print(L)
a=L.count(L)
if a % 2 ==0:
x=(L[a/2]+L[(a/2)+1])/2
print (x)
else:
x=(L[(a+1)/2])
print (x)
L=[1,2,3,4,5,6,7,8,9,10,12,11,15,34,6,3,5,6,6]
median(L)
# def mode(L):
# d={}
# for i in L:
# if i not in ... | [
"1026956497@qq.com"
] | 1026956497@qq.com |
0fb9f41fc4b217aaea3c263afdd6301cfd1d06a3 | 06cd8cb6ecfd10359b86127bf8f5204c3d6a860c | /umich/python_for_everybody/python_web_data/web_week2.py | a4962d0e81c55728ebf7fab7cca477fc76a34699 | [] | no_license | nikmuhammadnaim/coursera | 8254c33cec834551f72460c5e1c75810bd94c5d8 | 9a150350b685fcb236e40bcf7372c4adfa16ce80 | refs/heads/master | 2020-05-16T03:33:51.346000 | 2019-11-08T08:39:56 | 2019-11-08T08:39:56 | 182,729,747 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 470 | py | import re
# We have to solve for actual_file
sample_file = 'data/regex_sum_42.txt'
actual_file = 'data/regex_sum_233803.txt'
with open(sample_file) as content:
sample_answer = re.findall('[0-9]+', content.read())
print('Sample answer: {:,}'.format(sum([int(ans) for ans in sample_answer])))
with open(actual_file... | [
"niknaim24@gmail.com"
] | niknaim24@gmail.com |
f6fece3b5719a65008ae0fbe700a817b469a7a51 | e7eff96df8160d3c238bf38068c99c7b8bd3005b | /norman/web/frontend/crops.py | 08fa8b6415e718d05231de41cdbcfc0273dddb39 | [] | no_license | sumansai14/norman | 62c3760b47f15bb474786ac045efad5aff757b95 | 43a8c4e53830d57eb552c3ecb98bf2926c9d0457 | refs/heads/master | 2021-03-16T07:57:17.076000 | 2017-05-23T07:36:37 | 2017-05-23T07:36:37 | 92,188,183 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 170 | py | from norman.web.frontend.base import BaseAuthTemplateView
class OrganizationCropsListView(BaseAuthTemplateView):
template_name = 'norman/organization/crops_list.html'
| [
"suman.sai14@gmail.com"
] | suman.sai14@gmail.com |
c77425f40fa7658865f28037d68da947fb7f1d5f | 0b23337b3c1d310712d7e8bfebef6f8237cc7ec8 | /Assignment5/problem1.py | 8e95b6f88cd15145ef956aa06a7ae0ff3e59eb07 | [] | no_license | PierreAlexisRoy/Phys512PARoy | bd5721911078c44401920fd45828e4d455060073 | 52560d7bf4071f2fbbc86a69ebddcd4f69e4cc24 | refs/heads/master | 2020-07-27T13:55:35.714000 | 2019-12-08T22:38:01 | 2019-12-08T22:38:01 | 209,114,336 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,678 | py | # Pierre-Alexis Roy
# 260775494
# Phys512 - Problem Set 5 - Q1
#--------------------------------------------------
import numpy as np
from matplotlib import pyplot as plt
from potential import boundCond, true_pot
from numerical import Ax
# In this problem, we have a charge cylindrical conductor, held at
# a potentia... | [
"pierre-alexis_roy@hotmail.ca"
] | pierre-alexis_roy@hotmail.ca |
27f8f09695592ba88a397e2f6ad8643602214b9a | 40f3df53f36624d066d606743fd3f155e3d650f2 | /09fizzbuzz.py | 854e259a6391bf3dc67b756943451a5873dcabea | [] | no_license | hunsoo0823/python_study | b72f348074f8d384279a86bcd27bd924632dc5ff | b30394c8abb20a0204eda64140596962d60676cd | refs/heads/master | 2023-05-05T11:28:57.465000 | 2021-05-23T10:01:29 | 2021-05-23T10:01:29 | 288,706,779 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 286 | py | """
1. 3의 배수 Fizz
2. 5의 배수 Buzz
3. 15의 배수 Fizz,Buzz
"""
def fizzBuzz(i):
if i%15 == 0:
print("FizzBuzz")
elif i%5 == 0:
print("Buzz")
elif i%3 == 0:
print("Fizz")
else:
print(i)
for i in range(1,100+1):
fizzBuzz(i) | [
"hunsoo0823@naver.com"
] | hunsoo0823@naver.com |
c5c7f71bfb61f86110b05a007c1a8ff026418970 | 5fe2c3e946bbae8c8aef3cac07cce8652a0e4404 | /accounts/views.py | 420829c11c0539562a0f0b511f27a4ec27580886 | [] | no_license | neilduncan/learning-django | 1ec72f1f1a90863ca1f843e4739336074e3af855 | 631e8621d3bffc4ea4c886bcaed25626d893e10b | refs/heads/master | 2020-03-26T17:10:48.959000 | 2018-08-23T16:19:17 | 2018-08-23T16:19:17 | 145,145,977 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 466 | py | from django.contrib.auth import login as auth_login
from django.shortcuts import render, redirect
from .forms import SignUpForm
def signup(request):
if request.method == 'POST':
form = SignUpForm(request.POST)
if form.is_valid():
user = form.save()
auth_login(reques... | [
"neilduncan1234@gmail.com"
] | neilduncan1234@gmail.com |
2fb88f1edc531e4764e6982e5c963b89eb59aaf7 | acc04607c4f4f4b0b044b1bea521ca92e0930041 | /bin/show_config.py | 103195121414b190b04b745bc91c07aa48c88128 | [] | no_license | TangoJP/npctransport | c8c6587cd8ee16b2a9f6fd87e98cf1a6a8f8dba0 | 40bc9e2e0b4dc1df72b6d22000269d494d8f4f69 | refs/heads/master | 2020-03-27T22:08:00.779000 | 2013-04-24T00:01:19 | 2013-04-24T00:01:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 156 | py | #!/usr/bin/python
from IMP.npctransport import *
import sys
f=open(sys.argv[1], "rb")
config= Configuration()
config.ParseFromString(f.read())
print config
| [
"drussel@gmail.com"
] | drussel@gmail.com |
05ee03d0fc92901d67b69090b7700728099ddbf5 | 48bb7b034ddac0858c649765530f028c15bb79de | /intelligence_agency/intelligence_agency/spiders/cia.py | 8cd6aeb1b40f276a735c3c38c57501262eef2be8 | [] | no_license | eduardoromeror9/ProyectoScrapy | 1abb59ed52206563dcf00bc7799fb6e84a320b56 | dca7680bc808760b3eb19d129b15101d5e598799 | refs/heads/master | 2023-03-12T21:57:20.089000 | 2021-03-02T11:31:03 | 2021-03-02T11:31:03 | 343,748,935 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,451 | py | import scrapy
# XPath expreciones links, titulos y cuerpo.
# Links = //a[starts-with(@href, collection) and (parent::h3|parent::h2)]/@href
# Title = //h1[@class="documentFirstHeading"]/text()
# Paragraph = //div[@class="field-item even"]//p[not(@class)]/text()
class SpiderCIA(scrapy.Spider): # Atributos del Spider: ... | [
"eduardoromeror9@outlook.com"
] | eduardoromeror9@outlook.com |
faf3e290df2bf5118bd59fc332e9197ab6822b2c | 29d37bcb67068025a0044d4fe7c54aa07689b89b | /shop/urls.py | 410c584c3bbbed4ec94ab2de925dd72e958687e5 | [] | no_license | leonardorlopez-zz/djangoClase7 | 27b0876601cbd389ad2eeac3beb8f29ff2276655 | 376a1ae692bde1997e3a627c481772bc99085270 | refs/heads/main | 2023-02-06T13:16:35.186000 | 2020-12-29T18:47:24 | 2020-12-29T18:47:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 170 | py | from django.urls import path
from . import views
urlpatterns = [
path("", views.index, name="index"),
path("contacto", views.contacto, name="contacto"),
] | [
"leonardorlopez@hotmail.com"
] | leonardorlopez@hotmail.com |
83bf3dd50c32c33346cf5fe78a82a70c576a848e | 1e9c83938491e8bc5826e4468979aca29a1efa0e | /stripe.py | 810b933ad0b796d194ff688d658d911e299f8d5d | [] | no_license | crimzon96/markio-snippets | 75065cd9a9e1563b6c8b10481c686d87114928ec | c91c97bbff48afde453b3f7ac70ddd4b3120147c | refs/heads/main | 2023-01-06T02:02:40.639000 | 2020-11-06T10:28:24 | 2020-11-06T10:28:24 | 310,308,488 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,189 | py | def stripe_create_payout(vendor, amount, currency):
# Request payout for connected account ( Seller )
Transaction = apps.get_model("marketplace", "Transaction")
Payout = apps.get_model("marketplace", "Payout")
stripe_amount = stripe_convert_application_to_stripe_amount(amount)
fee = stripe_convert_s... | [
"crimsonmedia96@gmail.com"
] | crimsonmedia96@gmail.com |
48cd42cf70cd98648276cce423fd29d9850f9d0a | f2ab8ccda7203dd37d61facb9978cf74b781c7f1 | /tests/apps.py | 863cf58e139c91b4d865bed2d8a46b94a061f588 | [
"MIT"
] | permissive | Apkawa/easy-thumbnails-admin | 1991137224dcd117520b2c114d4012daf803776e | 9d7a38f215cdac53a663b00f1d4ff3a3c2a54eb4 | refs/heads/master | 2021-01-01T15:47:34.334000 | 2017-11-23T10:38:09 | 2017-11-23T10:38:09 | 97,703,157 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 274 | py | try:
from django.apps import AppConfig
except ImportError:
# Early Django versions import everything in test, avoid the failure due to
# AppConfig only existing in 1.7+
AppConfig = object
class TestConfig(AppConfig):
name = 'tests'
label = 'tests'
| [
"apkawa@gmail.com"
] | apkawa@gmail.com |
fb2c64c0218df858e821204c4c485f29f4b33c74 | e0527bce5c53a196752d3a16adf50cb60754de5f | /10-How to Stop Programs Crashing Demos/3-is_square.py | 8bf01fcece7fa35279f95d25ece62fa140398965 | [] | no_license | ARWA-ALraddadi/python-tutorial-for-beginners | ddeb657f419fbc176bea273bc9fb6b88d1894191 | 21cedfc47871ca4d25c2382464c60ab0a2121205 | refs/heads/master | 2023-06-30T20:24:30.688000 | 2021-08-08T08:22:29 | 2021-08-08T08:22:29 | 193,094,651 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,066 | py | ################################################################
##
## As a demonstration of a function which applies defensive
## programming in different ways, consider a predicate
## which is intended to return True if a given natural
## number (i.e., a non-negative integer) is a square of
## another natu... | [
"noreply@github.com"
] | noreply@github.com |
bde86714c9e9dcc484f3f18212f3921c491fe222 | e50ba4cc303d4165bef9e2917103c084cfbe0e07 | /rating_app/migrations/0016_auto_20201129_1156.py | 25f2b5ff3130d55f5d492b5c185861041cf00086 | [
"MIT"
] | permissive | Antony-me/Ratemyapp | 09049fce54d3a3ed2b256970e7840d20942e8c84 | e547fea82439a3e4f83aa78bf16f93b1ea9ab00b | refs/heads/main | 2023-01-28T16:52:58.635000 | 2020-12-01T16:49:07 | 2020-12-01T16:49:07 | 316,425,507 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 477 | py | # Generated by Django 3.1.3 on 2020-11-29 11:56
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('rating_app', '0015_profilemerch'),
]
operations = [
migrations.AlterField(
model_name='profilem... | [
"antonymunyasia993@gmail.com"
] | antonymunyasia993@gmail.com |
8163546f2fecc94e106eccfc43d3314cb39e1bbd | 26594819e61d1a5f290bb579c5326adbfcce0373 | /training/config.py | 25dc1f6c9a640b11046d9c9ff42d75afc367f761 | [] | no_license | overminder/fyp | 50ba90987fbfc5788d4021d943eebb2027adea45 | a9fe79a5a04589ee1866981c68ff8404cc7efeba | refs/heads/master | 2021-01-23T06:26:37.631000 | 2012-05-15T07:19:32 | 2012-05-15T07:19:32 | 1,816,661 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 94 | py | from util import local_path
def get_database_path():
return local_path('store.sqlite3')
| [
"p90eri@gmail.com"
] | p90eri@gmail.com |
1ee177ef1e0fb91c84caaab0b1cb15bebb0cf5c5 | ff240973859bbcfb24ff6225dd1a3cc67a475be2 | /eventFinderApp/filters.py | 46f0810f55ace99d445e13ef0bced37443a21f94 | [] | no_license | jojo-baker/eventfinda-app | 53c97b35b9ecf82bacf3f6115a927283fe76cec4 | ad027101a34a2a2878463047913e96f90e1d4d56 | refs/heads/master | 2022-12-06T01:17:19.584000 | 2019-10-05T04:21:20 | 2019-10-05T04:21:20 | 206,299,470 | 0 | 1 | null | 2022-11-22T04:16:58 | 2019-09-04T11:05:17 | Python | UTF-8 | Python | false | false | 446 | py | import django_filters
from .models import Event
from django.contrib.auth.models import Group
from django import forms
from django.forms import ModelForm, SplitDateTimeField
from django.contrib.admin import widgets
class EventFilter(django_filters.FilterSet):
start_time = SplitDateTimeField(widget=widgets.AdminSpli... | [
"“jo.alice.baker@gmail.com”"
] | “jo.alice.baker@gmail.com” |
fd73e43fd23cb6b607c875f26459c5aa8d8c3e71 | d3d61e9b8cbdd82015ac64ad25f227603f80bd0b | /academy/urls.py | 60337c0b3cc8513ac88985021ae283cd61c13d79 | [] | no_license | Arnastria/icl-academy | e1304bd5df4172483f841c8054e59854a9cc9dff | 0cf1f11a27f16283cbfae8f856769494fbc84ab3 | refs/heads/master | 2023-07-14T05:49:22.845000 | 2021-08-15T14:41:30 | 2021-08-15T14:41:30 | 396,381,971 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 284 | py | from django.urls import path
from . import views
urlpatterns = [
path('dashboard/', views.dashboard),
path('login/', views.login_me),
path('logout/', views.logout_me),
path('form-registration/', views.form_registration),
path('', views.landing, name='index'),
]
| [
"arnas.bgr@gmail.com"
] | arnas.bgr@gmail.com |
b99009f7ab3b4c4fc853d63389cf5996c75ea71c | 745d6b6ef2d232034490b0ed31589c5177523fa2 | /eipl_predicates/libs/semantic.py | d7cbb7593d4e1303321aa417578a18c384874ac8 | [] | no_license | fruether/SLEProject | 7df62a5106d8ad2ddc57f18ddde9b27ec591e9f0 | 115e3baf3e1859f78fb70322429628f07dc14f66 | refs/heads/master | 2021-01-10T11:07:12.131000 | 2016-03-28T12:34:26 | 2016-03-28T12:34:26 | 48,611,916 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 957 | py | __author__ = 'freddy'
scope_stack = []
node_context = {}
import libs.variables
def remove_scope():
global scope_stack
scope_stack.pop()
def add_scope(name):
global scope_stack
scope_stack.append(name)
def get_current_scope():
global scope_stack
return scope_stack[-1]
def init():
globa... | [
"freddy@frederiks-mbp.speedport_w_724v_09011603_00_018"
] | freddy@frederiks-mbp.speedport_w_724v_09011603_00_018 |
3e64fdee6716480ab6e525d0604b8efbd0d713d9 | 0bced66ce58044abd34fff545b3ff24dd6fc9913 | /02-python-programming/02-04-reusable-classes/tests/q4.py | 02fb8bafb7ac38d490cc4fa947d2eb1c20d1b186 | [] | no_license | prof-couch/comp205-dist | 7d7d5431a6bb60df01bbdf576560bb45516eb4c9 | 3065331db16766d0e529696416a069c2f6d61e61 | refs/heads/master | 2020-07-18T23:36:10.604000 | 2019-12-12T15:32:59 | 2019-12-12T15:32:59 | 206,334,869 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 804 | py | test = {
'name': 'Question 4',
'points': 1,
'suites': [
{
'cases': [
{
'code': r"""
>>> type(purchases) # doctest:+NORMALIZE_WHITESPACE
<class '__main__.Purchases'>
>>> type(purchases.purchases)
<class 'list'>
>>> print(purchases.purcha... | [
"singhj@github.com"
] | singhj@github.com |
d88a957215bb44619a5082930830ded1ee446583 | 7f8aadda02ec803d35c2daa67edfd536f9663251 | /decotest.py | 742fb835e9dd7c1a70dd0ba807ca1ec0858546b4 | [] | no_license | s-tefan/python-exercises | df75c4387562db57b2ad27250b1abe7a5872f332 | a6b69775a2b4c9fe9b7d00881630209b16e9b111 | refs/heads/master | 2023-01-20T02:09:19.814000 | 2023-01-08T14:35:27 | 2023-01-08T14:35:27 | 147,692,645 | 0 | 0 | null | 2018-09-07T14:36:41 | 2018-09-06T15:13:07 | Python | UTF-8 | Python | false | false | 289 | py | def my_decorator(func):
def mupp():
print("Start!")
func()
print("Mål!")
return mupp
def sägnåt():
print("Raj!")
sägnåt()
sägnåt = my_decorator(sägnåt)
sägnåt()
@my_decorator
def sägnåtannat():
print("Nåt annat!")
sägnåtannat()
| [
"github@k-son.se"
] | github@k-son.se |
7bbfd94accf83c65ae4546356bccb460b15a900e | b8ea631aae5d132c7b0236684d5f7c12d3c222be | /Library/Graph/Dijkstra_heapq.py | 6164198b7fcd573492928ce2f82d98e051b23864 | [] | no_license | Ryushi-tech/card3 | 68c429313142e58d4722a1cd5a4acc4ab39ca41f | 883636b2f518e38343a12816c5c641b60a87c098 | refs/heads/master | 2021-07-05T22:46:33.089000 | 2020-12-12T15:31:00 | 2020-12-12T15:31:00 | 209,176,836 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 708 | py | import heapq
def dijkstra(s):
q = []
dist[s] = 0
heapq.heappush(q, [0, s])
while q:
p, v = heapq.heappop(q)
if dist[v] < p:
continue
for i, x in g[v]:
if dist[i] > dist[v] + x:
dist[i] = dist[v] + x
heapq.heappush(q, [dist... | [
"mryrys@gmail.com"
] | mryrys@gmail.com |
6d951fcf28c05693f6c5c9e9643b5d7a6ac3a2ca | 3c6ca5ce1f6a5bc120d05f31ba643083cccc9e70 | /Origani/asgi.py | 3552392274b3f7ed16c9e86f4dd46cdd15fdc357 | [] | no_license | Mounir-Bennacer/ecommerce | efa3ca9482a5cbd36bd9f4ef787b6c79fc040160 | 2041a20d5932980b5818e12c059ae15ff65837a9 | refs/heads/master | 2022-12-10T12:54:45.582000 | 2020-08-30T17:39:47 | 2020-08-30T17:39:47 | 291,323,794 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 391 | py | """
ASGI config for Origani project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO_SETTI... | [
"benphaoris@gmail.com"
] | benphaoris@gmail.com |
d44bbb217114c0831167824d694d57c29ab86665 | e3f3f911019ac126d01c056eafc7c3183107a5af | /Traffic Sign Detection/all_signs_combined/src/predict.py | 19ed9a428015b625610be9930dfee35938fb451b | [] | no_license | uncctrafficsigndetection/Traffic-Sign-Detection | 595258766f865c4b3c628b002d7b93a774168a9b | 3ff4be52357f4b6340fef94124f8c835ab66fd8a | refs/heads/master | 2020-04-09T20:28:33.910000 | 2018-12-05T21:29:50 | 2018-12-05T21:29:50 | 160,574,509 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 959 | py | import numpy as np
import time
from sample_model import Model
from data_loader import data_loader
from generator import Generator
checkpoint_dir='tf_data/sample_model'
X='C:/Users/Karthick/Desktop/cvproject/data/5/00000_00000.ppmspeed_2_.ppm'
M = Model(mode = 'test')
yhat = M.predict(X = X, checkpoint_dir... | [
"noreply@github.com"
] | noreply@github.com |
64bc916865d2f533eb5dc449e459d972c3969181 | 4f6ba562b491fbb49194b20b707e25005e1640de | /AMTTA.py | cf6bff4e58eb9aa1c41df2aecf37715f1a14c1e4 | [] | no_license | royson/AMT | 3a38f1eb09100b485125c3fef53933ef550d04d4 | 5ef03d78a657177f5281cf76391b05128fe4fb92 | refs/heads/master | 2021-08-30T18:27:39.895000 | 2017-12-19T01:05:49 | 2017-12-19T01:05:49 | 114,703,130 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,997 | py | # AMT's Traffic Analysis Only.
# Royson Lee - 25 Jun 2017
#! /usr/bin/env python2.7
from scapy.all import *
try:
from scapy.layers.ssl_tls import *
except ImportError:
from scapy_ssl_tls.ssl_tls import *
from netfilterqueue import NetfilterQueue
import sys
import struct
import ssl
import time
datasize = {}
l... | [
"de.lee14@imperial.ac.uk"
] | de.lee14@imperial.ac.uk |
92d58b3f75523be1e3fc4fa915f34a24e9720189 | 91992db8c28646f0aae3393e8bbe0af66c0144ea | /ejercicios python-1/suma de matrices.py | cc1b9cf09bdbd74fcc4d8a4b70bad6709c117760 | [] | no_license | Pato38/EDI | 626e33247c4e8850dc29dfe55af45b7f0fbad2ee | 04f244c3b859f2c2a566c3670f21fb9f606d18ab | refs/heads/master | 2021-07-16T16:07:42.499000 | 2020-07-23T15:05:16 | 2020-07-23T15:05:16 | 194,303,248 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,040 | py | #Se desea saber si la suma de todas las posiciones de la matriz m_1
#es igual a la suma de todas las posiciones de la matriz m_2
#se sabe q ambas son de 8x10 y contiene nros reales en el intervalo 0-100
#considerando dos digitos decimales. Imprimir un msje apropiado e informe la
#situación.Analizar y contestar:
#a)que... | [
"patriciapiccadaci@gmail.com"
] | patriciapiccadaci@gmail.com |
eed58a6b703faab6b504f4b3a66b4de43ae04f0a | e75521f26a9a6fdbd0b9dbe396b14a5f3c1af305 | /src/repositories/word_classifier_repository.py | 10cf90739a261923161b283cb2b1127ab1de82cd | [] | no_license | Ap3lsin4k/words-as-part-of-speech | 2636edb87d309d44d3d18add14aadd13f7810507 | e7f35d56d65a8f5033498f650265cadbd742a9de | refs/heads/master | 2023-01-31T19:01:11.007000 | 2020-12-15T10:57:20 | 2020-12-15T10:57:20 | 320,807,979 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,258 | py | from bookmark_entity import Bookmark
from language_entity import LanguageEntity
from repositories.dictionary_surfer_common import DictionarySurferRepository
class WordClassifierRepository(DictionarySurferRepository):
def __init__(self, dictionary_entity: LanguageEntity):
super().__init__(dictionary_entit... | [
"andrii.fedorko01@gmail.com"
] | andrii.fedorko01@gmail.com |
ad225d31a7a7b3884219fcb3b66eb59f5d1ed90a | 6bb951740f6f82ad6458a9ccc53e08d857cef2da | /setup.py | 995fea61ed14bd92f66c92c3b6395be121ed1e4f | [] | no_license | abdusco/pictools | fefc243ea476b1531e193f6ad18e64e435d0d83d | 00cf22e6df1cc85ff497742367de6a1b71f508b4 | refs/heads/master | 2022-11-27T15:27:13.342000 | 2019-06-02T09:31:34 | 2019-06-02T09:31:34 | 136,924,655 | 1 | 0 | null | 2022-11-22T02:49:06 | 2018-06-11T12:41:11 | Python | UTF-8 | Python | false | false | 342 | py | from setuptools import setup, find_packages
with open('requirements.txt') as f:
required = f.readlines()
setup(
name='pictools',
version='0.1',
packages=find_packages(),
include_package_data=True,
install_requires=required,
entry_points='''
[console_scripts]
pictools=pictoo... | [
"sssmmt@gmail.com"
] | sssmmt@gmail.com |
826e3ace59be293f7511e153eab6277f15af6600 | 11338e8dd7cd5d13ae263fb8a3ec4226d5fe05bb | /demo/medusa/auth_handler.py | 40b5737a026c6df658b29499398106bdf7573477 | [
"LicenseRef-scancode-warranty-disclaimer",
"LicenseRef-scancode-mit-old-style",
"LicenseRef-scancode-unknown-license-reference",
"BSD-3-Clause"
] | permissive | balabit-deps/balabit-os-6-m2crypto | 35156453bab88fbfa23a1910483973fc33abaab1 | 10194787e9e541f9970aab739bbe2beae8c1bc2e | refs/heads/master | 2021-03-16T07:54:51.324000 | 2015-12-12T03:31:33 | 2016-10-27T16:27:28 | 124,134,661 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,537 | py | # -*- Mode: Python; tab-width: 4 -*-
#
# Author: Sam Rushing <rushing@nightmare.com>
# Copyright 1996-2000 by Sam Rushing
# All Rights Reserved.
#
# support for 'basic' authenticaion.
import base64
import hashlib
import re
import string
import time
import counter
import default_handler... | [
"testbot@balabit.hu"
] | testbot@balabit.hu |
af5ee455cb7393efd56233ca1556032ce3b6435c | 4c68778814b938d91d184749b50940549439c0f3 | /scheme/fields/time.py | fe6e0bb58b391be8c8074c6fe7792ac82fede471 | [
"LicenseRef-scancode-warranty-disclaimer",
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | jordanm/scheme | 96a747258ce68de756ffe7996b37c3e8747a740c | 5a87e24b35bb2f80b474273bf2e5c5fd563214e0 | refs/heads/master | 2021-01-17T05:48:51.479000 | 2020-01-20T16:03:28 | 2020-01-20T16:03:28 | 32,604,302 | 8 | 4 | NOASSERTION | 2020-01-20T16:03:29 | 2015-03-20T20:05:12 | Python | UTF-8 | Python | false | false | 3,174 | py | from __future__ import absolute_import
from datetime import time
from time import strptime
from scheme.exceptions import *
from scheme.field import *
__all__ = ('Time',)
class Time(Field):
"""A field for time values."""
basetype = 'time'
equivalent = time
parameters = {'maximum': None, 'minimum': N... | [
"mccoy.jordan@gmail.com"
] | mccoy.jordan@gmail.com |
81b4f20e477ab12da83b102307af3b041965f606 | ae4bbc0548754a505d9874d20cacaad92e48c576 | /basic/ep9_oop/warriors.py | 3c56ea8a0bf8c355fa7f4053265af2b2c49298e1 | [] | no_license | ramanathanaspires/learn-python | 7bc50c5022861ea4eba23480ba58f3e66c24f9eb | bb42cffb20ab363610dd6d667ed2c072f88c322c | refs/heads/master | 2021-05-05T11:33:17.038000 | 2018-01-09T22:05:20 | 2018-01-09T22:05:20 | 118,204,801 | 0 | 1 | null | 2018-01-20T03:27:30 | 2018-01-20T03:27:30 | null | UTF-8 | Python | false | false | 1,683 | py | import math
import random
# Warrior & Battle Class
class Warrior:
"""docstring for Warrior"""
def __init__(self, name="Warrior", health=0, atkMax=0, blockMax=0):
self.name = name
self.health = health
self.atkMax = atkMax
self.blockMax = blockMax
def attack(self):
... | [
"thepiratedeveloper@gmail.com"
] | thepiratedeveloper@gmail.com |
4fa5743d2a701a36134841c68c75c4fe672e5784 | 3d46ecb6d6d85d8d2240f1a320d2f23573e60dc7 | /tests/gcD_test.py | 843bc3d9d325cbbb2b54d5aabfb4b43c6c097147 | [] | no_license | yangcyself/BYSJ02 | 6d77a4669342086dc5b7a8140460f79d9eb8e2cb | b6486c3d8e4a190a21005ca80643cfcfd30fb724 | refs/heads/master | 2022-11-15T23:58:09.626000 | 2020-07-02T08:41:34 | 2020-07-02T08:41:34 | 254,871,090 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,366 | py | """
Test of the dynamics under the holonomic constraint of the ground contact constraints
Compare the dstate and the torque
However, this is not very accurate, But the error may be caused by the PD in the constraint of the dynamic
"""
import sys
sys.path.append(".")
import globalParameters as GP
GP.DT = 1e-3
from ... | [
"13520183356@139.com"
] | 13520183356@139.com |
948e7570c22e3a814efc70ef208bb5769a7b3ba1 | f2568af5aacdb3045f8dd20ec2fd91e395ba57d1 | /createmylvm.py | a2bcdb8ebcc803398d9d04adf65faf10eb88ceef | [] | no_license | shubhambhardwaj007/lvm-automation | e93d9efe61e9951710dc5ee6579ef01d139304e3 | e446f794fc05d1f3dac8e152d428cfc9657b817e | refs/heads/master | 2023-03-26T02:07:51.421000 | 2021-03-27T19:51:46 | 2021-03-27T19:51:46 | 352,161,993 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,070 | py |
import subprocess
def createmylv():
print(subprocess.getoutput('lsblk'))
device = input("Choose the devices for PV separated by space in between : ").split(" ")
for i in device:
pvcreate = subprocess.getstatusoutput("pvcreate {0}".format(i))
if pvcreate[0] == 0:
print("{0} pv cr... | [
"noreply@github.com"
] | noreply@github.com |
25d047f5bab2356e2de9bbf4f65e65e5247371f2 | dd4bb65cf9f1f0b2820e95b3780080f149f4bf8d | /tmp/available_task_pc_match.py | fc5541576e8fc8ddeef64aac8fabe49d7211b426 | [] | no_license | sa615153/form_data_test_css | 184569e9aa76e51fd12b44f18f80ad1ea48a94c6 | f8fee0b54839c8f0b7a9fd6a5e84db21e36d8b14 | refs/heads/master | 2021-01-12T12:42:47.249000 | 2017-01-20T10:09:33 | 2017-01-20T10:09:33 | 69,649,983 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,402 | py | # -*- coding: utf-8 -*-
from database import Session
from flask_restful import reqparse
from flask_restful import abort
from flask_restful import Resource
from flask_restful import fields
from flask_restful import marshal_with
from qa_api.models import MajorTask
from qa_api.models import Machine
from qa_api.models i... | [
"sa615153@mail.ustc.edu.cn"
] | sa615153@mail.ustc.edu.cn |
afe8e5aa19c0bea3a0e13f554987ea075ac9105d | c899829ec2aa4fe528d530a3dd3c77937e04d25e | /BigO/GoogleInterviewExample.py | 8789a9d19c94d85c10710bcc66235cb99380c2b9 | [] | no_license | DavidKNam/DataStructuresAndAlgorithms | aaa57eb44c998776c23a2b75124bba9c886d30f9 | 47554493b3f8325341832cf66db693139f0370da | refs/heads/master | 2023-02-10T05:54:55.702000 | 2021-01-08T05:43:24 | 2021-01-08T05:43:24 | 325,725,412 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 231 | py | def findPairSum(array, sum):
pair_set = set()
for value in array:
if value in pair_set:
return True
else:
pair_set.add(sum - value)
return False
print(findPairSum([1,2,4,4], 8)) | [
"david.kt.nam@gmail.com"
] | david.kt.nam@gmail.com |
8c3d403ab50c13348610501913946d6eef005ba4 | b7ff0463dc6d69a3d9d3ad12321741c182317551 | /microsoft.py | bb8fc7c59c4921a252b919a8a9ecfcc5d3f09e11 | [] | no_license | ranahaani/msstream-dl | 506408b972b704e89cbb0280723a04818f74f369 | c051e654675134c9a76668e7dc859273c9d59334 | refs/heads/master | 2023-01-06T17:04:20.979000 | 2020-10-27T12:28:03 | 2020-10-27T12:28:03 | 303,945,063 | 9 | 4 | null | 2020-11-17T09:24:26 | 2020-10-14T08:04:56 | JavaScript | UTF-8 | Python | false | false | 1,475 | py | import os
import sys
import getopt
from scripts.handler import Downloader
from pathlib import Path, PurePath
def main():
options = getopt.getopt(sys.argv[1:], '', ['username=', 'video='])
username_arg = None
video_arg = None
errs = False
for opt, arg in options[0]:
if opt in '--username':... | [
"ranahaani@gmail.com"
] | ranahaani@gmail.com |
c7e2d80388cbe425136e01a06bdb2ea24fa604c6 | 9e988c0dfbea15cd23a3de860cb0c88c3dcdbd97 | /sdBs/AllRun/sdssj9-10_163557.64+341427.0/sdB_sdssj9-10_163557.64+341427.0_coadd.py | 39e21f206956741881cd664d37e0bb5ecdba667f | [] | no_license | tboudreaux/SummerSTScICode | 73b2e5839b10c0bf733808f4316d34be91c5a3bd | 4dd1ffbb09e0a599257d21872f9d62b5420028b0 | refs/heads/master | 2021-01-20T18:07:44.723000 | 2016-08-08T16:49:53 | 2016-08-08T16:49:53 | 65,221,159 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 498 | py | from gPhoton.gMap import gMap
def main():
gMap(band="NUV", skypos=[248.990167,34.240833], skyrange=[0.0333333333333,0.0333333333333], stepsz = 30., cntfile="/data2/fleming/GPHOTON_OUTPUT/LIGHTCURVES/sdBs/sdB_sdssj9-10_163557.64+341427.0/sdB_sdssj9-10_163557.64+341427.0_movie_count.fits", cntcoaddfile="/data2/fleming/... | [
"thomas@boudreauxmail.com"
] | thomas@boudreauxmail.com |
5424727597a003990a354a598d2d89c6bffb0de9 | 8a8b5528b7748f101fb928538485b247a6686b88 | /unidad 1/bichos - Proyecto 1/generacionProcesos.py | c035fbd5e116daf420213b8699bd6fbe285f0ef5 | [] | no_license | DanielVldz/tbd_PedroVillaCasas | ab3fe594264f0d9f083545791c546f4dabb16619 | 1e2ea81b187b89d594d3777bac2eb919339c6a4c | refs/heads/master | 2022-03-23T13:07:42.811000 | 2019-12-12T14:45:50 | 2019-12-12T14:45:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,755 | py | import random
import names
def obtenerEmpleo():
empleos = ["Intel", "Oracle", "Microsoft", "AMD", "VolksWagen", "Ley", "Soriana", "Wal-Mart", "Sam's Club", "Universidad autónoma de Sinaloa", "Instituto Tecnológico de Culiacán", "Farmacias Similares", "Taquería el güero", "Farmacias GI", "Delia Barraza", "Burger King"... | [
"aristeomontoya98@gmail.com"
] | aristeomontoya98@gmail.com |
3aa12a0346cfb567a5fa45ab2f0e54d742a93c46 | c078294763f3b12ee9eb4d646b1dec988f261597 | /c-tools/phase-averages/collision-freq/plt/collision_freq.py | fa5abeac4e910d28621d89949011486fc1696bf1 | [
"Apache-2.0"
] | permissive | dwille/bbtools | a2d224456f87ace17863042a96a210fac564a11d | a5b366862d6543c7c6cc1e36b7c1e46b9f55339e | refs/heads/master | 2021-01-17T04:08:05.395000 | 2018-04-06T11:55:59 | 2018-04-06T11:55:59 | 41,551,749 | 0 | 1 | null | 2016-03-03T15:59:41 | 2015-08-28T14:30:39 | Matlab | UTF-8 | Python | false | false | 2,718 | py | #!/usr/bin/env python2
from setup import *
# Sims that we have data for
simdirs = glob.glob(datadir)
nsims = int(len(simdirs))
# Data arrays -- [rho, nparts]
data = np.empty([rho_star.size, nparts.size])
data.fill(np.nan)
# Pull data
for cc, currdir in enumerate(simdirs):
# Pull data, cut out first time step
tim... | [
"daniel.p.willen@gmail.com"
] | daniel.p.willen@gmail.com |
f82a7850addf3773f1ce92a89e4d51f96cf3f763 | 487ce91881032c1de16e35ed8bc187d6034205f7 | /codes/CodeJamCrawler/16_0_2_neat/16_0_2_tkdkop_pancake.py | 259ec04a68548d92ceed7f438162fc6b46baa760 | [] | no_license | DaHuO/Supergraph | 9cd26d8c5a081803015d93cf5f2674009e92ef7e | c88059dc66297af577ad2b8afa4e0ac0ad622915 | refs/heads/master | 2021-06-14T16:07:52.405000 | 2016-08-21T13:39:13 | 2016-08-21T13:39:13 | 49,829,508 | 2 | 0 | null | 2021-03-19T21:55:46 | 2016-01-17T18:23:00 | Python | UTF-8 | Python | false | false | 286 | py | #!/usr/bin/env python
import sys
import itertools
m = sys.stdin.readline()
i = 0
for line in sys.stdin.readlines():
line = line.strip()
i += 1
out_str = "Case #%d: " % i
line += '+'
k = itertools.groupby(line)
out_str += str(len(list(k))-1)
print out_str
| [
"[dhuo@tcd.ie]"
] | [dhuo@tcd.ie] |
cdaec89a7ecfa4ae8042bf31ac073b89b8a58072 | a3387fbcc918acb55d289ffb61b9fb603203dc11 | /Puzzles/2022-01/01_22_balanced_days.py | 924f5189761f280c72866b5565b743883fbda28e | [] | no_license | fbhs-cs/purdys-puzzles | 13e970ff909ff2e093b3b9d9777faac47c099913 | 1cf3f9c52677843fad781e46304e1485a91aae58 | refs/heads/master | 2023-08-17T06:28:06.659000 | 2023-08-09T14:45:43 | 2023-08-09T14:45:43 | 212,085,565 | 4 | 3 | null | null | null | null | UTF-8 | Python | false | false | 1,069 | py | from math import ceil
def is_balanced(num):
n = str(num)
first = n[:ceil(len(n)/2)]
last = n[len(n)//2:]
#print(first,last)
if sum([int(x) for x in first]) == sum([int(x) for x in last]):
return True
else:
return False
def count_balanced(n):
count = 0
for i ... | [
"cpurdy@flourbluffschools.net"
] | cpurdy@flourbluffschools.net |
f866bc12b8b1b500c309053924dcf816c46f9f05 | 5ed5b3f7db4cdc904f8a16085941cb28b3fef6c8 | /chat.py | d37ebe6ed9f825bf69ac5906f43d02fd76e0f1be | [] | no_license | kylejava/PythonChatroom | bf7b30fcb46c6c178cd3c8703a3c76d8f2c2325c | 502ea55604c6861deb8f4305cbda75d9e0f500b5 | refs/heads/main | 2023-04-09T01:14:37.880000 | 2021-04-25T03:24:31 | 2021-04-25T03:24:31 | 360,782,415 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 226 | py | from socket import *
serverName = 'localhost'
serverPort = 20000
server = socket(AF_INET, SOCK_DGRAM)
server.bind(('' , serverPort))
while True:
message, clientAddress = server.recvfrom(2048)
print(message.decode())
| [
"kyleedwardgjava@gmail.com"
] | kyleedwardgjava@gmail.com |
32c66a3d65f250e18cdd2c4b1e3227858be2d60a | 093ae3137ffdb8b7f2f4d0687208515cfc0512b6 | /month02/day15/exercise02.py | 10cb6283cd153fcb503e608b72c0e877bddf84e3 | [
"Apache-2.0"
] | permissive | Dante9527-A/study | afde3f85ad8f0b3a974d1b2e82c8b431ac62f847 | f23f098c708bad42e29b601a57a93309901db3a9 | refs/heads/main | 2023-02-27T19:02:55.390000 | 2021-02-01T10:38:08 | 2021-02-01T10:38:08 | 334,914,137 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 674 | py | from socket import *
from threading import Thread
import sys
HOST = "0.0.0.0"
PORT = 8888
ADDR = (HOST,PORT)
def handle(connfd):
while True:
data = connfd.recv(1024)
if not data:
break
print(data.decode())
connfd.close()
def main():
tcp_socket = socket()
tcp_socket... | [
"840521254@qq.com"
] | 840521254@qq.com |
39eff650d6cf8bd49b8a7a3e3ca0386f60b71f8a | 6de05800f20f2b883f3dfb2acf359ea10c860f4c | /8_stack & queue/hard/772. Basic Calculator III.py | 60bbdc48b1c97a820c8df37c61534aedfb2730b3 | [] | no_license | Jerrydepon/LeetCode | 8d505608efeeb98ca81f9a72af278853e52c408a | 93c4712779d3631adca1f40004f2ed9ee4fad766 | refs/heads/master | 2020-05-25T19:24:28.415000 | 2019-10-26T23:39:49 | 2019-10-26T23:39:49 | 187,950,378 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,980 | py | # using two stacks, operation & nums
# mind how to check precedence
# mind '-' after '('
class Solution:
def calculate(self, s: str) -> int:
def operation(op, second, first):
if op == '+':
return first + second
elif op == '-':
return first - second
... | [
"jerry2285@yahoo.com.tw"
] | jerry2285@yahoo.com.tw |
4723c6f7c093e3989d133cebab10e0c13bf512a0 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03997/s926418877.py | acd277945016fcae9d48adcc8806653b1aeeec5f | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763000 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 58 | py | a,b,c,d=eval('['+'int(input()),'*3+'0]');print((a+b)*c//2) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
9567422e1472a65046cf8160b1bdae8fbcf7dcd3 | 080c13cd91a073457bd9eddc2a3d13fc2e0e56ae | /MY_REPOS/awesome-4-new-developers/tensorflow-master/tensorflow/python/types/internal.py | c56c7aa6d7790b4c36d248603f2282e60af08a39 | [
"Apache-2.0"
] | permissive | Portfolio-Projects42/UsefulResourceRepo2.0 | 1dccc8961a09347f124d3ed7c27c6d73b9806189 | 75b1e23c757845b5f1894ebe53551a1cf759c6a3 | refs/heads/master | 2023-08-04T12:23:48.862000 | 2021-09-15T12:51:35 | 2021-09-15T12:51:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,129 | py | # Copyright 2020 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... | [
"bryan.guner@gmail.com"
] | bryan.guner@gmail.com |
8e72e5d4714aeb1364c05856f35fbcf2ab342394 | 02eace51e56520b743e7cc33826bb1c28b96de0e | /src/utils/model.py | 034d11a74bd934bc96e4a2bb3db4ad9c770a3b1d | [] | no_license | nomanalahi/abstractive_and_extractive_text_summary | 172b8e96654b333bacab76ae802b2ee67927e616 | d7f580daa6866951e5e57a063cefed8672e00a9f | refs/heads/master | 2023-05-12T08:00:41.591000 | 2021-06-05T16:24:16 | 2021-06-05T16:24:16 | 374,160,141 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 71 | py | from pydantic import BaseModel
class Text(BaseModel):
article: str | [
"Noman@Users-MacBook-Pro-2.local"
] | Noman@Users-MacBook-Pro-2.local |
79e962b40ea02701d83a67b9e3a523ea362ce52e | f811f10c2d7808f8a5b7192e4b519f679f8db30c | /FreshData/com/mario/v160Sp1/ValidateColumn.py | a382be3cfa08b39d545a1f0021b7c6a74070d091 | [] | no_license | greenetdw/python-item | 0b1be9ced4b61dc31f81c6df9df8e506d52d30d6 | ba77cc6d555be73cb51d547f010c786820c87e00 | refs/heads/master | 2020-04-07T16:20:31.052000 | 2018-11-21T09:47:02 | 2018-11-21T09:47:02 | 158,525,133 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,241 | py | # -*- coding: UTF-8 -*-
from com.mario.utils.MysqlUtil import MysqlUtil
from com.mario.utils.common import getcitys
#检验表的字段名是否存在
def validateColumnExists(tableName, colunmName):
sql = "SELECT count(*) FROM information_schema.columns WHERE table_schema='assacs' AND table_name = '%s' AND column_name = '%s';" % (tabl... | [
"470277363@qq.com"
] | 470277363@qq.com |
03836c530d5c92497a2237b4a6a42a4ffbe8e4ab | 31f0f37b0c11fddc6a482857215b62d27c36328a | /Fashi/shopkeeper/models.py | 3d08745e93a0c42b5b6a693610aee2d3f1b6a290 | [] | no_license | Priyanshu1012/E-commerce-platform | b25afc1f229788b1375a3bcfaefb01bf167113df | 811251d32f59875e8cfdbaf333938e982c7bcf36 | refs/heads/main | 2023-03-17T10:18:15.433000 | 2021-03-18T04:26:56 | 2021-03-18T04:26:56 | 302,699,084 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,200 | py | from django.db import models
class Items(models.Model):
id = models.AutoField(primary_key=True)
name = models.CharField(max_length=50)
type = models.CharField(max_length=30)
price = models.DecimalField(max_digits=10, decimal_places=2)
image = models.ImageField(upload_to='static/images')
# Create y... | [
"priyanshu.khandelwal.19cs@bmu.edu.in"
] | priyanshu.khandelwal.19cs@bmu.edu.in |
91781778b2e281bd6402914cfd6ee441e7a46194 | fe17c327916695ca3f21c0f9bb85396237be3125 | /DSA_in_python/DSA_BST.py | a8068494dc2cb5cb28703d631d7f490f052d2915 | [] | no_license | tanmay6414/Python | d222255f3b4e60b42c7bed7613f11ef449ebc00e | 54659aebe0ed15f722cd469d10a42cea82f6c7f6 | refs/heads/master | 2021-07-12T18:26:59.590000 | 2020-08-20T08:15:11 | 2020-08-20T08:15:11 | 195,175,648 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,732 | py | class Node:
def __init__(self,value):
self.left = None
self.right = None
self.value = value
class BST:
def __init__(self):
self.root = None
def insert( self, node, value):
# If the tree is empty, return a new node
if node is None:
return Node(value)... | [
"noreply@github.com"
] | noreply@github.com |
abc2e14c55f8110ca3d0bc1403c2b44d4e5fe36e | 026fee65b95206995baf1565f486ab4ed7f7cef9 | /userprofiles/admin.py | 89683d76fdacc00428bfbad69cc1e019d3f01b5e | [] | no_license | santhoshpkumar/pinclone | e8460aab355ebf3e5559d44127d7ccad22667747 | 8bf641df9a4999797731d1d2fb4ff3d78d717e10 | refs/heads/master | 2020-04-03T09:39:27.269000 | 2018-10-08T10:51:51 | 2018-10-08T10:51:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 225 | py | from django.contrib import admin
from .models import Profile
# Register your models here.
@admin.register(Profile)
class ProfileAdmin(admin.ModelAdmin):
list_display = ('user', 'bio', 'website', 'birth_date')
| [
"undefined.hlo.o@gmail.com"
] | undefined.hlo.o@gmail.com |
fa3538d1032825a3792e7d729ca58f30e8f9c1f9 | 509b32366f32ce874f059df63809bb7d423dc611 | /main.py | ffcdd30f1294d626c47aeacd96169aaee94f20c2 | [
"MIT"
] | permissive | k4cg/Rezeptionistin | 3d775eda66bf53ffb4749da49a75906ce1e65aef | 0b0142d225a02b05b34074898c6e1d6a00005d9f | refs/heads/master | 2021-01-17T02:05:21.096000 | 2019-04-20T21:54:34 | 2019-04-20T21:54:34 | 35,680,115 | 5 | 12 | MIT | 2018-12-24T08:08:08 | 2015-05-15T14:58:51 | Python | UTF-8 | Python | false | false | 318 | py | #!/usr/bin/env python2.7
# -*- coding: utf-8 -*-
import sys
import logging
from rezeptionistin import Rezeptionistin
reload(sys)
sys.setdefaultencoding("utf-8")
# start logging
logging.basicConfig(level=logging.DEBUG)
if sys.hexversion > 0x03000000:
raw_input = input
# run bot
bot = Rezeptionistin()
bot.run()
| [
"armin@webhippie.de"
] | armin@webhippie.de |
808ac7632e66327e3f8d1fe634dab41d619f065e | 786de89be635eb21295070a6a3452f3a7fe6712c | /CorAna/tags/V00-00-04/src/ConfigParametersCorAna.py | 8baf5f326ca6758d621cc3f9f8cf43ac75c28720 | [] | no_license | connectthefuture/psdmrepo | 85267cfe8d54564f99e17035efe931077c8f7a37 | f32870a987a7493e7bf0f0a5c1712a5a030ef199 | refs/heads/master | 2021-01-13T03:26:35.494000 | 2015-09-03T22:22:11 | 2015-09-03T22:22:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 31,606 | py | #--------------------------------------------------------------------------
# File and Version Information:
# $Id$
#
# Description:
# Module ConfigParametersCorAna...
#
#------------------------------------------------------------------------
"""Is intended as a storage for configuration parameters for CorAna projec... | [
"dubrovin@SLAC.STANFORD.EDU@b967ad99-d558-0410-b138-e0f6c56caec7"
] | dubrovin@SLAC.STANFORD.EDU@b967ad99-d558-0410-b138-e0f6c56caec7 |
becaebfd57de87517f83fb188ffe1860ee44300a | f08c79663074bfd104135e1347f3228b29620d24 | /csrt.py | 6da5c8ba236a0d1428f0aadc2f3e058f81921930 | [] | no_license | battcheeks/Computer-Vision | 140e3d0a3b20cba637b275dc6d7ebc5f413a2e31 | ffa8f277312fc4553e25db09a6f53a107d7f4d41 | refs/heads/master | 2022-11-10T19:33:31.721000 | 2020-06-27T09:54:15 | 2020-06-27T09:54:15 | 275,339,008 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,146 | py | from imutils.video import VideoStream
from imutils.video import FPS
import argparse
import imutils
import time
import cv2
global a,b
ap = argparse.ArgumentParser()
ap.add_argument("-v", "--video", type=str,
help="path to input video file")
ap.add_argument("-t", "--tracker", type=str, default="kcf",
help="OpenCV obje... | [
"noreply@github.com"
] | noreply@github.com |
6af1cf3dba6a860a982c23e4ab2694e620cdd26b | ea0d5f7bdd8d9874f3c14f46b01046aabda72192 | /old-tests/getnet/services/payments/credit/test_integration.py | 4b700574b8b941393b6479a83ceb23dbb30ebf93 | [
"MIT"
] | permissive | ramon/getnet-py | e948de02d0b0909905b84f7b43fa28343d124ff5 | 21daec202fe48d6ec051bf37e0c4760af8bbf25a | refs/heads/master | 2023-02-20T15:30:44.441000 | 2020-09-11T18:47:33 | 2021-02-22T16:21:02 | 201,107,637 | 1 | 4 | MIT | 2023-02-08T00:28:21 | 2019-08-07T18:38:02 | Python | UTF-8 | Python | false | false | 4,570 | py | # import os
# import unittest
#
# from vcr_unittest import VCRTestCase
#
# import getnet
# from getnet.errors.business_error import BusinessError
# from getnet.services.payments import Order, Customer
# from getnet.services.payments.credit import Service, Card, Credit
# from getnet.services.payments.credit.credit_cance... | [
"ramongsoares@gmail.com"
] | ramongsoares@gmail.com |
a596a614510d11ede4340b4695cea0deb8bad9bc | 1b7da2f11e509828476e21ca665279602de7b509 | /portal/users/views.py | 9f0eafe0a150452c6d1f3b231cf0664a25cd79c7 | [] | no_license | rosenene/oap | 922f3955e4f3a583e6829eed0d518f2c7f806d58 | 32598b7d6c9d6677c889258f21752878ad30d0a5 | refs/heads/master | 2022-04-26T20:31:37.850000 | 2020-04-16T07:47:19 | 2020-04-16T07:47:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,149 | py | from django.contrib import messages
from django.contrib.auth import get_user_model
from django.contrib.auth.mixins import LoginRequiredMixin
from django.urls import reverse
from django.utils.translation import ugettext_lazy as _
from django.views.generic import DetailView, RedirectView, UpdateView
from django.shortcuts... | [
"marijani.hussein@eganet.com"
] | marijani.hussein@eganet.com |
aa746aaa44faf8a380306ce14dd173cda14750ab | e4002b074bc95ecbd9b0fab187f74fcc5672b3e0 | /hatemap/settings.py | b97eb25712931d26c700bfe4621ceed6d3b2c9c7 | [] | no_license | ackaraosman/hatemap | 4e22996116f97c3764a6366ac97b2b423780c600 | dfd4d7803664c928e5d831c910ac564d20a6dc4f | refs/heads/master | 2021-05-04T10:41:44.010000 | 2015-06-07T23:30:39 | 2015-06-07T23:30:39 | 54,372,895 | 0 | 0 | null | 2020-10-13T08:54:10 | 2016-03-21T08:45:08 | Python | UTF-8 | Python | false | false | 2,099 | py | """
Django settings for hatemap project.
For more information on this file, see
https://docs.djangoproject.com/en/1.7/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.7/ref/settings/
"""
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
im... | [
"ackaraosman@gmail.com"
] | ackaraosman@gmail.com |
7642072e77aebda4174a74cfe093db22e6377af7 | 7bd0954e956993df19d833810f9d71b60e2ebb9a | /phasor/utilities/ipynb/hdf.py | b9f7e5b1add89064ffd726859cfe27d4415619ec | [
"Apache-2.0"
] | permissive | aa158/phasor | 5ee0cec4f816b88b0a8ac298c330ed48458ec3f2 | fe86dc6dec3740d4b6be6b88d8eef8566e2aa78d | refs/heads/master | 2021-10-22T09:48:18.556000 | 2019-03-09T18:56:05 | 2019-03-09T18:56:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 169 | py | # -*- coding: utf-8 -*-
"""
"""
from __future__ import division, print_function, unicode_literals
import h5py
from declarative.bunch.hdf_deep_bunch import HDFDeepBunch
| [
"Lee.McCuller@gmail.com"
] | Lee.McCuller@gmail.com |
28e7dee0700c6fe42c004b939fcaa2b9ff69d27e | eb64b799ff1d7ef3a244bf8e6f9f4e9118d5cfcd | /homeassistant/components/trafikverket_weatherstation/const.py | 7bb53dc5356a0b8a392104982912658806275659 | [
"Apache-2.0"
] | permissive | JeffLIrion/home-assistant | 53966b81b5d5816679f12fc761f79e8777c738d6 | 8f4ec89be6c2505d8a59eee44de335abe308ac9f | refs/heads/dev | 2023-08-22T09:42:02.399000 | 2022-02-16T01:26:13 | 2022-02-16T01:26:13 | 136,679,169 | 5 | 2 | Apache-2.0 | 2023-09-13T06:59:25 | 2018-06-09T00:58:35 | Python | UTF-8 | Python | false | false | 466 | py | """Adds constants for Trafikverket Weather integration."""
from homeassistant.const import Platform
DOMAIN = "trafikverket_weatherstation"
CONF_STATION = "station"
PLATFORMS = [Platform.SENSOR]
ATTRIBUTION = "Data provided by Trafikverket"
ATTR_MEASURE_TIME = "measure_time"
ATTR_ACTIVE = "active"
NONE_IS_ZERO_SENSORS... | [
"noreply@github.com"
] | noreply@github.com |
b4e4fbd8a910e521ad48ba68625cf1104803eb67 | 231c2facba148ca42aa8bbdc2b9f2f8555b98be3 | /tasks/urls.py | 16a6793d9ea2abc70367eb999711ff1ccc4238fb | [] | no_license | SVDileepKumar/taskapplication | 0d3e24904ca09254a0e2fbf22da999b46812177c | 3070182f8c8c6f0dd25c1234d67b1ea2246eafac | refs/heads/master | 2021-01-20T22:34:15.766000 | 2016-08-14T22:45:19 | 2016-08-14T22:45:19 | 65,689,559 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 429 | py | from django.conf.urls import url
from . import views
from django.contrib.auth.views import login, logout
urlpatterns = [
url(r'^$', views.index, name='index'),
url(r'^search/$', views.search, name='search'),
url(r'^task/addsubtasks$', views.addsubtask, name='addsubtask'),
url(r'^task/(?P<id>.+)$', view... | [
"dileep20121994@gmail.com"
] | dileep20121994@gmail.com |
96a5bb4ad4380aa447a2da36fa9b1bf172bcfe6d | 2d575cd9beed6840de0ca787134354bb2511e44f | /evaluation/word_analogy.py | 4922f90149011a3e74d8cac37b49e58ff513e778 | [] | no_license | truythu169/snml-skip-gram | b949fdb35c6ed89364a8253025f41c7df85f4e7e | 02ff190a256724cbd5b656d7ea1cb235abb08863 | refs/heads/master | 2023-04-16T13:55:17.409000 | 2020-06-18T09:52:44 | 2020-06-18T09:52:44 | 210,846,786 | 1 | 0 | null | 2023-03-24T22:09:21 | 2019-09-25T13:03:20 | Python | UTF-8 | Python | false | false | 5,072 | py | from utils.embedding import Embedding
import numpy as np
from sklearn.metrics.pairwise import cosine_similarity
from statistics import mean
class WordAnalogy:
def __init__(self, filename='datasets/word_analogy/google_analogy.txt'):
with open(filename, "r") as f:
L = f.read().splitlines()
... | [
"hungpt169@gmail.com"
] | hungpt169@gmail.com |
ed520aeb8ea0f5db10a956ac573a6e155f2ceac4 | 14487e74a1cb67ca75e17271cc57df607a86ecae | /ingenius/urls.py | 54cbf1dbe299995d38b68abe311ede4782f2088c | [] | no_license | Naveenaidu/TEDxPESITBSC-Registration_System | e14f5f9e8f8a18e90c95c4b6b8da1876ead08e47 | 69631730c58bac2351978e7ef59e5a37bfaff696 | refs/heads/master | 2020-04-03T20:01:41.466000 | 2018-04-06T18:26:59 | 2018-04-06T18:26:59 | 155,544,689 | 0 | 0 | null | 2018-10-31T11:15:41 | 2018-10-31T11:15:40 | null | UTF-8 | Python | false | false | 1,347 | py | """ingenius URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.8/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Class-ba... | [
"harshavamsi096@gmail.com"
] | harshavamsi096@gmail.com |
End of preview. Expand in Data Studio
README.md exists but content is empty.
- Downloads last month
- 9