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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
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.688800 | 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"
] | ARWA-ALraddadi.noreply@github.com |
faf3e290df2bf5118bd59fc332e9197ab6822b2c | 29d37bcb67068025a0044d4fe7c54aa07689b89b | /shop/urls.py | 410c584c3bbbed4ec94ab2de925dd72e958687e5 | [] | no_license | leonardorlopez-zz/djangoClase7 | 27b0876601cbd389ad2eeac3beb8f29ff2276655 | 376a1ae692bde1997e3a627c481772bc99085270 | refs/heads/main | 2023-02-06T13:16:35.186791 | 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 |
ad225d31a7a7b3884219fcb3b66eb59f5d1ed90a | 6bb951740f6f82ad6458a9ccc53e08d857cef2da | /setup.py | 995fea61ed14bd92f66c92c3b6395be121ed1e4f | [] | no_license | abdusco/pictools | fefc243ea476b1531e193f6ad18e64e435d0d83d | 00cf22e6df1cc85ff497742367de6a1b71f508b4 | refs/heads/master | 2022-11-27T15:27:13.342825 | 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 |
8163546f2fecc94e106eccfc43d3314cb39e1bbd | 26594819e61d1a5f290bb579c5326adbfcce0373 | /training/config.py | 25dc1f6c9a640b11046d9c9ff42d75afc367f761 | [] | no_license | overminder/fyp | 50ba90987fbfc5788d4021d943eebb2027adea45 | a9fe79a5a04589ee1866981c68ff8404cc7efeba | refs/heads/master | 2021-01-23T06:26:37.631250 | 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 |
948e7570c22e3a814efc70ef208bb5769a7b3ba1 | f2568af5aacdb3045f8dd20ec2fd91e395ba57d1 | /createmylvm.py | a2bcdb8ebcc803398d9d04adf65faf10eb88ceef | [] | no_license | shubhambhardwaj007/lvm-automation | e93d9efe61e9951710dc5ee6579ef01d139304e3 | e446f794fc05d1f3dac8e152d428cfc9657b817e | refs/heads/master | 2023-03-26T02:07:51.421192 | 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"
] | shubhambhardwaj007.noreply@github.com |
d88a957215bb44619a5082930830ded1ee446583 | 7f8aadda02ec803d35c2daa67edfd536f9663251 | /decotest.py | 742fb835e9dd7c1a70dd0ba807ca1ec0858546b4 | [] | no_license | s-tefan/python-exercises | df75c4387562db57b2ad27250b1abe7a5872f332 | a6b69775a2b4c9fe9b7d00881630209b16e9b111 | refs/heads/master | 2023-01-20T02:09:19.814742 | 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 |
2cf1cde00eea109a46c3e5983b4906feef72866f | f0856e60a095ce99ec3497b3f27567803056ac60 | /keras2/keras66_gradient2.py | 0e0d0cc1f27912ef32b11753f760a7606dd315f8 | [] | no_license | hjuju/TF_Study-HAN | dcbac17ce8b8885f5fb7d7f554230c2948fda9ac | c0faf98380e7f220868ddf83a9aaacaa4ebd2c2a | refs/heads/main | 2023-09-04T09:13:33.212258 | 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 |
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.635646 | 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 |
b99009f7ab3b4c4fc853d63389cf5996c75ea71c | 745d6b6ef2d232034490b0ed31589c5177523fa2 | /eipl_predicates/libs/semantic.py | d7cbb7593d4e1303321aa417578a18c384874ac8 | [] | no_license | fruether/SLEProject | 7df62a5106d8ad2ddc57f18ddde9b27ec591e9f0 | 115e3baf3e1859f78fb70322429628f07dc14f66 | refs/heads/master | 2021-01-10T11:07:12.131624 | 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 |
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.346908 | 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 |
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.910961 | 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"
] | uncctrafficsigndetection.noreply@github.com |
f6fece3b5719a65008ae0fbe700a817b469a7a51 | e7eff96df8160d3c238bf38068c99c7b8bd3005b | /norman/web/frontend/crops.py | 08fa8b6415e718d05231de41cdbcfc0273dddb39 | [] | no_license | sumansai14/norman | 62c3760b47f15bb474786ac045efad5aff757b95 | 43a8c4e53830d57eb552c3ecb98bf2926c9d0457 | refs/heads/master | 2021-03-16T07:57:17.076408 | 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 |
27f8f09695592ba88a397e2f6ad8643602214b9a | 40f3df53f36624d066d606743fd3f155e3d650f2 | /09fizzbuzz.py | 854e259a6391bf3dc67b756943451a5873dcabea | [] | no_license | hunsoo0823/python_study | b72f348074f8d384279a86bcd27bd924632dc5ff | b30394c8abb20a0204eda64140596962d60676cd | refs/heads/master | 2023-05-05T11:28:57.465830 | 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 |
92d58b3f75523be1e3fc4fa915f34a24e9720189 | 91992db8c28646f0aae3393e8bbe0af66c0144ea | /ejercicios python-1/suma de matrices.py | cc1b9cf09bdbd74fcc4d8a4b70bad6709c117760 | [] | no_license | Pato38/EDI | 626e33247c4e8850dc29dfe55af45b7f0fbad2ee | 04f244c3b859f2c2a566c3670f21fb9f606d18ab | refs/heads/master | 2021-07-16T16:07:42.499775 | 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 |
cef0da0725eb5e86efd05782852d6e6134a53ab6 | 6a87bb89a8e34d911eceee2c0f6072b3e6533ba2 | /exercise/stats.py | 0236ffaa8d25187c605050ae6181e198d507876f | [] | no_license | 1baikai/python_knowledge | 1d78ea8c45e58e7f86cc42f0d2691809e1364dca | f26b41874618622e709990110c65830d81d334cf | refs/heads/master | 2020-03-30T00:43:42.833665 | 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 |
81b4f20e477ab12da83b102307af3b041965f606 | ae4bbc0548754a505d9874d20cacaad92e48c576 | /basic/ep9_oop/warriors.py | 3c56ea8a0bf8c355fa7f4053265af2b2c49298e1 | [] | no_license | ramanathanaspires/learn-python | 7bc50c5022861ea4eba23480ba58f3e66c24f9eb | bb42cffb20ab363610dd6d667ed2c072f88c322c | refs/heads/master | 2021-05-05T11:33:17.038891 | 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 |
492c142cb1d23510b7a9f1d4f7229fdbf87f824a | 76357a33888662ee16fd90cebf83521d952ba9c1 | /stringpattern/strpattern9.py | 6933820726f14879329b7dee3d0e80d1dfa59788 | [] | no_license | mukesh25/python-mukesh-codes | 10c287ea2e566c55539b925e765c38f05964d84f | 819f289418b7d41c17e52fc7a749d2c89ea7f9ca | refs/heads/master | 2022-12-18T03:30:06.917785 | 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 |
1ee177ef1e0fb91c84caaab0b1cb15bebb0cf5c5 | ff240973859bbcfb24ff6225dd1a3cc67a475be2 | /eventFinderApp/filters.py | 46f0810f55ace99d445e13ef0bced37443a21f94 | [] | no_license | jojo-baker/eventfinda-app | 53c97b35b9ecf82bacf3f6115a927283fe76cec4 | ad027101a34a2a2878463047913e96f90e1d4d56 | refs/heads/master | 2022-12-06T01:17:19.584689 | 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” |
afe8e5aa19c0bea3a0e13f554987ea075ac9105d | c899829ec2aa4fe528d530a3dd3c77937e04d25e | /BigO/GoogleInterviewExample.py | 8789a9d19c94d85c10710bcc66235cb99380c2b9 | [] | no_license | DavidKNam/DataStructuresAndAlgorithms | aaa57eb44c998776c23a2b75124bba9c886d30f9 | 47554493b3f8325341832cf66db693139f0370da | refs/heads/master | 2023-02-10T05:54:55.702221 | 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 |
fd73e43fd23cb6b607c875f26459c5aa8d8c3e71 | d3d61e9b8cbdd82015ac64ad25f227603f80bd0b | /academy/urls.py | 60337c0b3cc8513ac88985021ae283cd61c13d79 | [] | no_license | Arnastria/icl-academy | e1304bd5df4172483f841c8054e59854a9cc9dff | 0cf1f11a27f16283cbfae8f856769494fbc84ab3 | refs/heads/master | 2023-07-14T05:49:22.845966 | 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 |
6b40a94b9d1873941b7d43f3eaef484e9ecd0b37 | 1504f499c2985a5ea0abdc974ebd04a2c5e82ae3 | /equalities/genPB_diag_spec.py | 81ba447eb9aff969cb01a7f0b8cc1fadb12e911c | [] | no_license | vliew/nonlinear | 658b0eb4040ec4879a0316c21c25b4641053a0fb | 74e36a20adf9b6ead88f482f61eb786f88c09965 | refs/heads/master | 2022-07-29T13:20:04.350417 | 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 |
c5c7f71bfb61f86110b05a007c1a8ff026418970 | 5fe2c3e946bbae8c8aef3cac07cce8652a0e4404 | /accounts/views.py | 420829c11c0539562a0f0b511f27a4ec27580886 | [] | no_license | neilduncan/learning-django | 1ec72f1f1a90863ca1f843e4739336074e3af855 | 631e8621d3bffc4ea4c886bcaed25626d893e10b | refs/heads/master | 2020-03-26T17:10:48.959673 | 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 |
05ee03d0fc92901d67b69090b7700728099ddbf5 | 48bb7b034ddac0858c649765530f028c15bb79de | /intelligence_agency/intelligence_agency/spiders/cia.py | 8cd6aeb1b40f276a735c3c38c57501262eef2be8 | [] | no_license | eduardoromeror9/ProyectoScrapy | 1abb59ed52206563dcf00bc7799fb6e84a320b56 | dca7680bc808760b3eb19d129b15101d5e598799 | refs/heads/master | 2023-03-12T21:57:20.089169 | 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 |
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.395250 | 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 |
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.479427 | 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 |
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.811588 | 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 |
4fa5743d2a701a36134841c68c75c4fe672e5784 | 3d46ecb6d6d85d8d2240f1a320d2f23573e60dc7 | /tests/gcD_test.py | 843bc3d9d325cbbb2b54d5aabfb4b43c6c097147 | [] | no_license | yangcyself/BYSJ02 | 6d77a4669342086dc5b7a8140460f79d9eb8e2cb | b6486c3d8e4a190a21005ca80643cfcfd30fb724 | refs/heads/master | 2022-11-15T23:58:09.626089 | 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 |
c77425f40fa7658865f28037d68da947fb7f1d5f | 0b23337b3c1d310712d7e8bfebef6f8237cc7ec8 | /Assignment5/problem1.py | 8e95b6f88cd15145ef956aa06a7ae0ff3e59eb07 | [] | no_license | PierreAlexisRoy/Phys512PARoy | bd5721911078c44401920fd45828e4d455060073 | 52560d7bf4071f2fbbc86a69ebddcd4f69e4cc24 | refs/heads/master | 2020-07-27T13:55:35.714245 | 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 |
7bbfd94accf83c65ae4546356bccb460b15a900e | b8ea631aae5d132c7b0236684d5f7c12d3c222be | /Library/Graph/Dijkstra_heapq.py | 6164198b7fcd573492928ce2f82d98e051b23864 | [] | no_license | Ryushi-tech/card3 | 68c429313142e58d4722a1cd5a4acc4ab39ca41f | 883636b2f518e38343a12816c5c641b60a87c098 | refs/heads/master | 2021-07-05T22:46:33.089945 | 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 |
48cd42cf70cd98648276cce423fd29d9850f9d0a | f2ab8ccda7203dd37d61facb9978cf74b781c7f1 | /tests/apps.py | 863cf58e139c91b4d865bed2d8a46b94a061f588 | [
"MIT"
] | permissive | Apkawa/easy-thumbnails-admin | 1991137224dcd117520b2c114d4012daf803776e | 9d7a38f215cdac53a663b00f1d4ff3a3c2a54eb4 | refs/heads/master | 2021-01-01T15:47:34.334792 | 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 |
6885e4c483c0399abfd20154156beeadf8b508af | d048a865519b5f944e1430c6181d00399c979d9c | /gallery/gallery/urls.py | f765f9c8680d91d33f2171654643694a2b0f21ad | [] | no_license | jithinvijayan007/PaceWisdom- | 5f84261c4ba7f51e25c8c21074b48214a24cb6d2 | 1ba00814a757edb327923afcaf20fe04652efa0e | refs/heads/master | 2023-03-06T04:00:21.729404 | 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 |
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.604657 | 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 |
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.007917 | 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 |
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.180843 | 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 |
6d951fcf28c05693f6c5c9e9643b5d7a6ac3a2ca | 3c6ca5ce1f6a5bc120d05f31ba643083cccc9e70 | /Origani/asgi.py | 3552392274b3f7ed16c9e86f4dd46cdd15fdc357 | [] | no_license | Mounir-Bennacer/ecommerce | efa3ca9482a5cbd36bd9f4ef787b6c79fc040160 | 2041a20d5932980b5818e12c059ae15ff65837a9 | refs/heads/master | 2022-12-10T12:54:45.582358 | 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 |
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.324933 | 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 |
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.723496 | 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 |
8c3d403ab50c13348610501913946d6eef005ba4 | b7ff0463dc6d69a3d9d3ad12321741c182317551 | /microsoft.py | bb8fc7c59c4921a252b919a8a9ecfcc5d3f09e11 | [] | no_license | ranahaani/msstream-dl | 506408b972b704e89cbb0280723a04818f74f369 | c051e654675134c9a76668e7dc859273c9d59334 | refs/heads/master | 2023-01-06T17:04:20.979135 | 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 |
2fb88f1edc531e4764e6982e5c963b89eb59aaf7 | acc04607c4f4f4b0b044b1bea521ca92e0930041 | /bin/show_config.py | 103195121414b190b04b745bc91c07aa48c88128 | [] | no_license | TangoJP/npctransport | c8c6587cd8ee16b2a9f6fd87e98cf1a6a8f8dba0 | 40bc9e2e0b4dc1df72b6d22000269d494d8f4f69 | refs/heads/master | 2020-03-27T22:08:00.779328 | 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 |
64bc916865d2f533eb5dc449e459d972c3969181 | 4f6ba562b491fbb49194b20b707e25005e1640de | /AMTTA.py | cf6bff4e58eb9aa1c41df2aecf37715f1a14c1e4 | [] | no_license | royson/AMT | 3a38f1eb09100b485125c3fef53933ef550d04d4 | 5ef03d78a657177f5281cf76391b05128fe4fb92 | refs/heads/master | 2021-08-30T18:27:39.895011 | 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 |
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.249558 | 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 |
83bf3dd50c32c33346cf5fe78a82a70c576a848e | 1e9c83938491e8bc5826e4468979aca29a1efa0e | /stripe.py | 810b933ad0b796d194ff688d658d911e299f8d5d | [] | no_license | crimzon96/markio-snippets | 75065cd9a9e1563b6c8b10481c686d87114928ec | c91c97bbff48afde453b3f7ac70ddd4b3120147c | refs/heads/main | 2023-01-06T02:02:40.639240 | 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 |
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.405091 | 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] |
32c66a3d65f250e18cdd2c4b1e3227858be2d60a | 093ae3137ffdb8b7f2f4d0687208515cfc0512b6 | /month02/day15/exercise02.py | 10cb6283cd153fcb503e608b72c0e877bddf84e3 | [
"Apache-2.0"
] | permissive | Dante9527-A/study | afde3f85ad8f0b3a974d1b2e82c8b431ac62f847 | f23f098c708bad42e29b601a57a93309901db3a9 | refs/heads/main | 2023-02-27T19:02:55.390962 | 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 |
39eb7173cdd5f6dbd364ee7286d195fa1117b8d4 | 8431b28994b082c1be46acf5f9bd3ed0bf9f5d1c | /init.py | 1deb9dcf4b02e770425e533ffde994713cce27f9 | [] | no_license | rochSmets/pywi | ac26fcaf0140de4f72cea4819e3a1d2c41ee3fad | 144589b071de170d42963c657c2c67211fa0d312 | refs/heads/master | 2021-03-29T10:53:53.734344 | 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 |
f866bc12b8b1b500c309053924dcf816c46f9f05 | 5ed5b3f7db4cdc904f8a16085941cb28b3fef6c8 | /chat.py | d37ebe6ed9f825bf69ac5906f43d02fd76e0f1be | [] | no_license | kylejava/PythonChatroom | bf7b30fcb46c6c178cd3c8703a3c76d8f2c2325c | 502ea55604c6861deb8f4305cbda75d9e0f500b5 | refs/heads/main | 2023-04-09T01:14:37.880496 | 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 |
79e962b40ea02701d83a67b9e3a523ea362ce52e | f811f10c2d7808f8a5b7192e4b519f679f8db30c | /FreshData/com/mario/v160Sp1/ValidateColumn.py | a382be3cfa08b39d545a1f0021b7c6a74070d091 | [] | no_license | greenetdw/python-item | 0b1be9ced4b61dc31f81c6df9df8e506d52d30d6 | ba77cc6d555be73cb51d547f010c786820c87e00 | refs/heads/master | 2020-04-07T16:20:31.052209 | 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 |
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.591020 | 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 |
4723c6f7c093e3989d133cebab10e0c13bf512a0 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03997/s926418877.py | acd277945016fcae9d48adcc8806653b1aeeec5f | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 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 |
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.659751 | 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 |
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.862451 | 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 |
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.399277 | 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"
] | JeffLIrion.noreply@github.com |
fa3538d1032825a3792e7d729ca58f30e8f9c1f9 | 509b32366f32ce874f059df63809bb7d423dc611 | /main.py | ffcdd30f1294d626c47aeacd96169aaee94f20c2 | [
"MIT"
] | permissive | k4cg/Rezeptionistin | 3d775eda66bf53ffb4749da49a75906ce1e65aef | 0b0142d225a02b05b34074898c6e1d6a00005d9f | refs/heads/master | 2021-01-17T02:05:21.096015 | 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 |
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.415969 | 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 |
b4e4fbd8a910e521ad48ba68625cf1104803eb67 | 231c2facba148ca42aa8bbdc2b9f2f8555b98be3 | /tasks/urls.py | 16a6793d9ea2abc70367eb999711ff1ccc4238fb | [] | no_license | SVDileepKumar/taskapplication | 0d3e24904ca09254a0e2fbf22da999b46812177c | 3070182f8c8c6f0dd25c1234d67b1ea2246eafac | refs/heads/master | 2021-01-20T22:34:15.766198 | 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 |
becaebfd57de87517f83fb188ffe1860ee44300a | f08c79663074bfd104135e1347f3228b29620d24 | /csrt.py | 6da5c8ba236a0d1428f0aadc2f3e058f81921930 | [] | no_license | battcheeks/Computer-Vision | 140e3d0a3b20cba637b275dc6d7ebc5f413a2e31 | ffa8f277312fc4553e25db09a6f53a107d7f4d41 | refs/heads/master | 2022-11-10T19:33:31.721963 | 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"
] | battcheeks.noreply@github.com |
91781778b2e281bd6402914cfd6ee441e7a46194 | fe17c327916695ca3f21c0f9bb85396237be3125 | /DSA_in_python/DSA_BST.py | a8068494dc2cb5cb28703d631d7f490f052d2915 | [] | no_license | tanmay6414/Python | d222255f3b4e60b42c7bed7613f11ef449ebc00e | 54659aebe0ed15f722cd469d10a42cea82f6c7f6 | refs/heads/master | 2021-07-12T18:26:59.590813 | 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"
] | tanmay6414.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.441202 | 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 |
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.494026 | 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 |
a596a614510d11ede4340b4695cea0deb8bad9bc | 1b7da2f11e509828476e21ca665279602de7b509 | /portal/users/views.py | 9f0eafe0a150452c6d1f3b231cf0664a25cd79c7 | [] | no_license | rosenene/oap | 922f3955e4f3a583e6829eed0d518f2c7f806d58 | 32598b7d6c9d6677c889258f21752878ad30d0a5 | refs/heads/master | 2022-04-26T20:31:37.850145 | 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 |
d2e87a92532b10bf361c5d37cdd5fe4f539f0bad | 2ffdb504df70b5bb80c9153b36a44aaa69bc75a5 | /flock/apps.py | 40f89336f10f1540746cf47016db55696992fa53 | [] | no_license | LiamDGray/xerocraft-django | 6101893e1157ae7627e2a9c9bb95e8d6c8423468 | 52bf553a79ffea3f7ad23405cec231dea3c889a9 | refs/heads/master | 2020-03-21T17:07:45.906991 | 2018-06-29T01:24:48 | 2018-06-29T01:24:48 | 138,814,812 | 0 | 0 | null | 2018-06-29T01:18:51 | 2018-06-27T01:43:38 | Python | UTF-8 | Python | false | false | 261 | py | from django.apps import AppConfig
class FlockAppConfig(AppConfig):
name = 'flock'
isready = False
def ready(self):
if self.isready:
return
else:
self.isready = True
import flock.signals.handlers | [
"AdrianBoyko@gmail.com"
] | AdrianBoyko@gmail.com |
03836c530d5c92497a2237b4a6a42a4ffbe8e4ab | 31f0f37b0c11fddc6a482857215b62d27c36328a | /Fashi/shopkeeper/models.py | 3d08745e93a0c42b5b6a693610aee2d3f1b6a290 | [] | no_license | Priyanshu1012/E-commerce-platform | b25afc1f229788b1375a3bcfaefb01bf167113df | 811251d32f59875e8cfdbaf333938e982c7bcf36 | refs/heads/main | 2023-03-17T10:18:15.433600 | 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 |
f6254d023de7431ce2d8903bbd1ccd076fa395cd | 707aee3cf3bf97c3d1145ad588f9bcdcf7075df5 | /week6/linear_regression_with_tensorboard.py | 6ac2ff2077d2c579daf2954b0752f9bf0271b4a5 | [] | no_license | zerogau/dl_cv_tensorflow_10weeks | abce18a738a0dc2b960cda9e911443989da3cae1 | b912a3556ab117e76dd109e951e7bf8c6b1a5c37 | refs/heads/master | 2022-08-27T06:21:03.849544 | 2019-08-28T13:27:50 | 2019-08-28T13:27:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,916 | py | # -*- coding: utf-8 -*-
import tensorflow as tf
# 선형회귀 모델(Wx + b)을 정의합니다.
W = tf.Variable(tf.random_normal([1]), name="W")
b = tf.Variable(tf.random_normal([1]), name="b")
x = tf.placeholder(tf.float32, name="x")
linear_model = W*x + b
# 찹값을 위한 플레이스홀더를 정의합니다.
y = tf.placeholder(tf.float32, name="y")
# 손실 함수를 정의합... | [
"jinhoyang@snu.ac.kr"
] | jinhoyang@snu.ac.kr |
240135e87c6497ec19f3de5c47566288c7affbd8 | c1f40215bd8e7c2423e56422018de94bb9daaa09 | /venv/lib/python3.7/site-packages/korean_lunar_calendar/__init__.py | cbda134cde1cf4417fbcaa80daceeda4d52fcd27 | [
"MIT"
] | permissive | vchiapaikeo/prophet | e05fc1854fed35387449e6a11f89f03187f344a1 | e8c250ca7bfffc280baa7dabc80a2c2d1f72c6a7 | refs/heads/master | 2022-04-22T04:49:09.716851 | 2020-04-18T15:21:18 | 2020-04-18T15:21:18 | 256,718,973 | 0 | 0 | MIT | 2020-04-18T14:34:53 | 2020-04-18T09:53:39 | Python | UTF-8 | Python | false | false | 115 | py | from .korean_lunar_calendar import KoreanLunarCalendar
__version__ = '0.2.1'
__all__ = [ 'KoreanLunarCalendar' ]
| [
"vchiapaikeo@etsy.com"
] | vchiapaikeo@etsy.com |
d3e3b20b1ce012f78bbc61c3eb7dc31075d016ca | c9094a4ed256260bc026514a00f93f0b09a5d60c | /tests/components/accuweather/test_system_health.py | 749f516e44c748caf05503460e8a72ec34d085d3 | [
"Apache-2.0"
] | permissive | turbokongen/home-assistant | 824bc4704906ec0057f3ebd6d92788e096431f56 | 4ab0151fb1cbefb31def23ba850e197da0a5027f | refs/heads/dev | 2023-03-12T05:49:44.508713 | 2021-02-17T14:06:16 | 2021-02-17T14:06:16 | 50,231,140 | 4 | 1 | Apache-2.0 | 2023-02-22T06:14:30 | 2016-01-23T08:55:09 | Python | UTF-8 | Python | false | false | 1,785 | py | """Test AccuWeather system health."""
import asyncio
from unittest.mock import Mock
from aiohttp import ClientError
from homeassistant.components.accuweather.const import COORDINATOR, DOMAIN
from homeassistant.setup import async_setup_component
from tests.common import get_system_health_info
async def test_accuwea... | [
"noreply@github.com"
] | turbokongen.noreply@github.com |
2396434007ca4e61f613256865c907cbaf5c7513 | 0c774fe9c419a40212613970e3a3b454e30b0cd5 | /habitat/tasks/nav/nav_task.py | b0737e4d6b2c5107ead755159111044b09f4a9cd | [
"MIT"
] | permissive | hsouporto/habitat-api | 4080136278f67551965e1b4d26ddaeb3efc10a0c | 9c52b6a78786f37d78f540caa8f6ed9d61a2ec6e | refs/heads/master | 2021-10-20T13:14:43.770486 | 2019-02-26T06:56:19 | 2019-02-27T07:22:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,883 | py | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates.
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
from typing import Any, List, Optional, Type
import habitat
import numpy as np
from gym import spaces
from habitat.conf... | [
"abhishekkadiyan@gmail.com"
] | abhishekkadiyan@gmail.com |
1b32ea37e4c7f6126f63d235f5bc196330d2dc7e | d94b6845aeeb412aac6850b70e22628bc84d1d6d | /dimensions_of_motion/geometry.py | d7a317cb08a95e69785f8cd0af032ae5db8a1f29 | [
"CC-BY-4.0",
"Apache-2.0"
] | permissive | ishine/google-research | 541aea114a68ced68736340e037fc0f8257d1ea2 | c1ae273841592fce4c993bf35cdd0a6424e73da4 | refs/heads/master | 2023-06-08T23:02:25.502203 | 2023-05-31T01:00:56 | 2023-05-31T01:06:45 | 242,478,569 | 0 | 0 | Apache-2.0 | 2020-06-23T01:55:11 | 2020-02-23T07:59:42 | Jupyter Notebook | UTF-8 | Python | false | false | 7,466 | py | # coding=utf-8
# Copyright 2023 The Google Research Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicab... | [
"copybara-worker@google.com"
] | copybara-worker@google.com |
8320743766681fb6216634bf66a0136b8a9e19cf | 9fe646e011269454ef6219fb7d87159df02b8555 | /strings/anagram.py | 7f462b75c5c58a54cdeac7dc405397e4f2805774 | [] | no_license | shreyas-selvaraj/geeks_for_geeks_problems | 34fe9b01cebf6be35bd3d3ba9802478ff256c928 | a3d244494df86ba26bad0576469dc936ea027100 | refs/heads/master | 2022-11-28T22:01:08.851558 | 2020-07-29T11:59:15 | 2020-07-29T11:59:15 | 283,486,919 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 545 | py | #add characters for first into hashtable
#go through second string, then either delete from second string or decrement hashtable
def isAnagram(str1, str2):
d = {}
for char in str1:
if char in d.keys():
d[char] += 1
else:
d[char] = 1
for char in str2:
if char in d.keys():
d[char] -= 1
else:
retur... | [
"shreeachari@gmail.com"
] | shreeachari@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.556091 | 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 |
0f1635b44d0e45fa5a033f4ffd633e66ef241110 | 2e8a05666d97c059500258fce9d88c59b9d55e40 | /DSA-II/Lab1 - Intro Python/q4.py | 73d95365f86221ab0c5a279cc498c7b9927c840f | [] | no_license | aksh555/IT-Labs | b1d3128a0e685389ac0bf6fe522af77f8187da66 | f14e8f94e5fa9a1083e00d2b66bf48bb9596d051 | refs/heads/main | 2023-07-10T03:01:58.244079 | 2021-08-09T11:16:11 | 2021-08-09T11:16:11 | 317,137,908 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 480 | py | def bub(lis):
n = len(lis)
for i in range(n):
for j in range(n-i-1):
if(lis[j] > lis[j+1]):
lis[j],lis[j+1] = lis[j+1],lis[j]
print(lis)
def sel(lis):
n = len(lis)
for i in range(n):
for j in range(i+1, n):
if(lis[i] > lis[j]):
lis[i],lis[j] = lis[j],lis[i]
print(lis)
def main():
n = int(inpu... | [
"akshblr555@gmail.com"
] | akshblr555@gmail.com |
267f5e570bff6ec85a0e60de98259cea7422da0e | edb37da2fd2d2f048df119db96a6de58fc816ddb | /jumpserver-0.4/zrd/my_blog/article/views.py | 0634c5361e1cf968ac0e81b87ea55908e18fa6b5 | [] | no_license | cucy/2017 | 88f1aa2e8df945162d8259918cf61a138a3422cf | 33bcdd5c9e0717521544e3ea41ade10fbb325c4f | refs/heads/master | 2020-05-21T15:31:39.935733 | 2017-07-10T11:04:29 | 2017-07-10T11:04:29 | 84,629,639 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,766 | py | # coding:utf-8
from django.shortcuts import render
from django.shortcuts import render_to_response
# Create your views here.
from django.http import HttpResponse
from models import SSHInfo
# Create your views here.
try:
from ConfigParser import ConfigParser
except:
from configparser import ConfigParser
try:
... | [
"292016176@qq.com"
] | 292016176@qq.com |
279593dcda5a4a08ad35a32f2ac454368e4ba63e | 364b764562715c22220e7c4bfdd1b1b090460c42 | /BackEnd/main3.py | e1e76d0e0c26a0a8c2d4eb267559b8c1e53544e1 | [] | no_license | AadSah/bona-fide | a36eaaf72a71d0cefb0ccf8e5ee6a4c7c369a632 | c07ad0b24ce8b9c84feeda93384a64572f816e08 | refs/heads/master | 2020-04-27T18:27:39.065598 | 2019-09-18T14:54:33 | 2019-09-18T14:54:33 | 171,000,162 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,789 | py | #plag-check using first 3 urls...accurate but slow a bit...
import getURL3
import webSearch
import comparefuzzy
content = open("MyTestFile.txt","r+") #user data importing...
matched = open("matchedSources.txt","w+") #to write the matched sources or urls...
highlight = open("highlightedText.txt","w+") #to write the tex... | [
"aadarsh.sahoo.99@gmail.com"
] | aadarsh.sahoo.99@gmail.com |
7b210b9bf6bb67cf1658eacd862c0112692debfb | 71ffa1fbccd5a7066a2523f2b4d15ead2fbd5238 | /Lab07/Bai07/hello.py | 9d01f07e04fc999368caf0fdc1bd2a143e7e0c8b | [] | no_license | TanLinh15/LTPythonNC | 98bab968f1fa782540e2c344c6d8c9932491475d | 890c756a1466262d294a5a21882a8fc0fb187607 | refs/heads/main | 2023-09-03T10:52:33.447781 | 2021-11-10T02:09:20 | 2021-11-10T02:09:20 | 406,348,063 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 239 | py | from flask import render_template, Flask
app = Flask(__name__)
@app.route('/hello')
@app.route('/hello/<name>')
def index(name=None):
return render_template('hello.html', name=name)
if __name__ == '__main__':
app.run(port=5000) | [
"tanlinh15@gmail.com"
] | tanlinh15@gmail.com |
abc2e14c55f8110ca3d0bc1403c2b44d4e5fe36e | 026fee65b95206995baf1565f486ab4ed7f7cef9 | /userprofiles/admin.py | 89683d76fdacc00428bfbad69cc1e019d3f01b5e | [] | no_license | santhoshpkumar/pinclone | e8460aab355ebf3e5559d44127d7ccad22667747 | 8bf641df9a4999797731d1d2fb4ff3d78d717e10 | refs/heads/master | 2020-04-03T09:39:27.269726 | 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 |
f1cf6c44e0320547db577c64e785fe3b377a1617 | 4d35236510781f6ebf1171383617771be460dc2c | /airModelWeb.py | ae802a92308b6c42be326cc36f4dc0da060f5a73 | [] | no_license | jhwujialing/guizhouemergencymodels | 3b9f81a645d6e587659280fd65828d6d65220502 | 49efe6e82c19a9f5957fe24a6ad373fae8d1a7e1 | refs/heads/master | 2022-10-03T21:24:34.044754 | 2020-06-09T03:06:11 | 2020-06-09T03:06:11 | 270,889,961 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,572 | py | from flask import Flask
from flask import request
import json
import numpy as np
from airModels import ContinuousModel
from concurrent.futures import ThreadPoolExecutor
import math
import requests
import time
executor = ThreadPoolExecutor(1)
app = Flask(__name__)
@app.route('/continuousModel', methods=['... | [
"jhwujialing@126.com"
] | jhwujialing@126.com |
ed520aeb8ea0f5db10a956ac573a6e155f2ceac4 | 14487e74a1cb67ca75e17271cc57df607a86ecae | /ingenius/urls.py | 54cbf1dbe299995d38b68abe311ede4782f2088c | [] | no_license | Naveenaidu/TEDxPESITBSC-Registration_System | e14f5f9e8f8a18e90c95c4b6b8da1876ead08e47 | 69631730c58bac2351978e7ef59e5a37bfaff696 | refs/heads/master | 2020-04-03T20:01:41.466969 | 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 |
96a5bb4ad4380aa447a2da36fa9b1bf172bcfe6d | 2d575cd9beed6840de0ca787134354bb2511e44f | /evaluation/word_analogy.py | 4922f90149011a3e74d8cac37b49e58ff513e778 | [] | no_license | truythu169/snml-skip-gram | b949fdb35c6ed89364a8253025f41c7df85f4e7e | 02ff190a256724cbd5b656d7ea1cb235abb08863 | refs/heads/master | 2023-04-16T13:55:17.409637 | 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 |
aa746aaa44faf8a380306ce14dd173cda14750ab | e4002b074bc95ecbd9b0fab187f74fcc5672b3e0 | /hatemap/settings.py | b97eb25712931d26c700bfe4621ceed6d3b2c9c7 | [] | no_license | ackaraosman/hatemap | 4e22996116f97c3764a6366ac97b2b423780c600 | dfd4d7803664c928e5d831c910ac564d20a6dc4f | refs/heads/master | 2021-05-04T10:41:44.010473 | 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 |
a2795103476b0cc82d3855d67eddad1199119d5d | 22295cda10cf11472fee987093e0b245f6f96ef3 | /common/2016astr/figure_movement_vs_sound_modulation.py | 3d8696a961cb42e4f03be4d3cf8699449ce1acb2 | [] | no_license | sjara/jaratest | aecb9e3bcc1ff91db35e7cd551c0f4f3da0b690a | 09bf2c76bd5bf45191a2c37c14171ae1e8902c4b | refs/heads/master | 2023-08-11T09:55:17.684814 | 2023-08-03T22:03:31 | 2023-08-03T22:03:31 | 63,100,718 | 2 | 5 | null | 2023-04-11T18:14:08 | 2016-07-11T20:43:04 | Python | UTF-8 | Python | false | false | 176 | py | '''
Script to make a scatter plot of movement modulation index vs modulation index of sound response by choice, for psychometric curve mice and switching mice separately.
'''
| [
"lan.guo14@gmail.com"
] | lan.guo14@gmail.com |
d93ed6d435424c5b9304063f5b394607269e8293 | 31de2bb140c9e4c5cf4ec505a2524afaa211da4c | /74_is_strong_number.py | e7a6f2f118b1bd68db169d8063af992a9d999952 | [] | no_license | Vidhi23Chauhan/akademize_grofers_python | d785a6dbd8007cb383cb9ce622f0c69976a07e14 | ca9f653e19ac64be49e7730ab16c1fd404f235e6 | refs/heads/main | 2023-04-05T07:19:07.328267 | 2021-04-14T10:31:09 | 2021-04-14T10:31:09 | 351,513,920 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 772 | py | def get_factorial(n):
fact = 1
for i in range(n, 0, -1):
fact = fact * i
return fact
def is_strong(n):
i = n
sum = 0
while i > 0:
rem = i % 10
sum += get_factorial(rem)
i //= 10 # same as i = i // 10
return n == sum
def main():
print("Is Strong numbe... | [
"vidhi23chauhan@gmail.com"
] | vidhi23chauhan@gmail.com |
a5235c799186a4e9446f729d5748ae459dd5f73e | 4870960bc25aa9264d3ead399f1662bda3880e19 | /Create_video.py | cdf7329a51f8592ae582ad5bbc39b6293f031836 | [] | no_license | Megapixel-code/Video-maker-with-Reddit | 5fff90a2241298044c8c567dcc39fc4e60218285 | 0f69670fce22e0de652448ee59236dfad29aee7b | refs/heads/main | 2023-03-21T02:47:58.804567 | 2021-03-06T09:44:39 | 2021-03-06T09:44:39 | 344,571,437 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,952 | py | import glob
import os
import praw
import requests
import shutil
import json
import moviepy.editor as mp
import moviepy.video as mpv
import moviepy.video.fx.all as vfx
from gtts import gTTS
from PIL import Image, ImageDraw, ImageFont
from unidecode import unidecode
from os.path import isfile, join
def d... | [
"noreply@github.com"
] | Megapixel-code.noreply@github.com |
7f23a7ced3ebf5f2daafcf14a80021056b5c0d75 | 477fa324ca50a5ea7e3094bc1e42d02fa25c19d4 | /train_diff_layer/train_1layer.py | bed8bf45e17c66e597129bc2897a3b0f61f061a8 | [] | no_license | coldwindx/HetGraphAE | cfcf21f26a8904268082c113224f5218586818bb | f0e0853da9a07bea0f4eb70a41534716d26d4d06 | refs/heads/master | 2023-08-23T16:10:23.354443 | 2021-10-13T02:26:51 | 2021-10-13T02:26:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,140 | py | import torch
import torch.optim as optim
import torch.nn.functional as F
import numpy as np
import random
import scipy.sparse as sp
from construct_sub_graph import sub_graph
from model.encoder import EncoderAtten1Layer
from model.decoder_feature import DNN as DecoderFeature
print('开始训练')
execAdj = sp.load_npz('trainDa... | [
"50976791+carefreehzq@users.noreply.github.com"
] | 50976791+carefreehzq@users.noreply.github.com |
9fccada480118eb7f3986aa4174be26962a8b93a | 71d757af0de13c7f4a0fa39578c3abea3451372b | /learning/backup_gagd.py | bd15cb8ec9b5986b6f791dbfb99a3abbfeb18f86 | [] | no_license | bh0085/compbio | 039421d04317ae878f222d6448144be88aa95f69 | 95bc24ea34346ff4b9a120e317d08518277f268c | refs/heads/master | 2021-03-12T19:57:22.421467 | 2013-02-05T16:45:37 | 2013-02-05T16:45:37 | 947,034 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,841 | py | from pyfann import libfann as fann
class MyFANN():
def __init__(self,xdat,ydat,idxs):
if shape(xdat)[0] != shape(ydat)[0]:
raise Exception('dimension mismatch b/w x, y')
nt = len(xdat)
ny = shape(ydat)[1]
nx = shape(xdat)[1]
num_input = nx;
num_... | [
"bh0085@31-34-1.wireless.csail.mit.edu"
] | bh0085@31-34-1.wireless.csail.mit.edu |
934da6a4eebd005c15e84c6a79e859acb2d7892c | 47ed25486436dbce4b9bac62dba1f83bad884b27 | /models/feed.py | d6c9fff250f844a68542944238c7416fe544bd26 | [] | no_license | hackerrithm/Quasar | 376f5e79bbc6eb9e0d4e2996f5b4656daff775be | d843ed8085af3ce91a81de5bfa2642275fc1811e | refs/heads/master | 2021-01-24T11:23:39.875005 | 2016-10-07T16:48:31 | 2016-10-07T16:48:31 | 70,228,394 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 53 | py | class feed(object):
"""description of class"""
| [
"kemargalloway@gmail.com"
] | kemargalloway@gmail.com |
6c67dfbe348126447354bd125a22c8c109b0ab15 | a6bd7d3c2dfd6f22b22b7390a2230651e1f3febd | /1.py | 412b8d7720f095722caac5fb02499d4d2a29fbb3 | [] | no_license | NicolasQueiroga/Resolucao_PF_DesSoft--2020.1 | 5c9e8b8a19045763c5af1e32426fa4e2c1891096 | fcafa170b0cec6dcaa658c3c72746d51ed8acc88 | refs/heads/master | 2022-11-06T14:15:31.544152 | 2020-06-22T21:02:12 | 2020-06-22T21:02:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 648 | py | with open('criptografado.txt', 'r') as arquivo:
conteudo = arquivo.readlines()
for i in conteudo:
i = i.strip()
letra = [char for char in i]
for e in range(len(letra)):
if letra[e] == 's':
letra[e] = 'z'
elif letra[e] == 'a':
letra... | [
"noreply@github.com"
] | NicolasQueiroga.noreply@github.com |
f54d7f9ceffb65a98b2f18defa7ce00de08c4646 | 67e0bd533c87144d0b3dccc37172a482bc853805 | /usermgmt/migrations/0001_initial.py | 68a227aae35ae167f9bc7308c2371681df0a357d | [] | no_license | jndinh/assignment2_backend | 2d0fbea3d02d4414c0dd481fb02e9a3a29c10f24 | 694bbe8c7ac7c1c22aaafa5a1a7dcb80d14a7bd5 | refs/heads/master | 2022-12-11T18:37:15.611109 | 2018-05-03T00:22:39 | 2018-05-03T00:22:39 | 129,988,708 | 0 | 0 | null | 2022-12-08T00:45:00 | 2018-04-18T01:58:16 | Python | UTF-8 | Python | false | false | 830 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.6 on 2018-04-18 01:31
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='User',... | [
"dinh2@umbc.com"
] | dinh2@umbc.com |
cf4869a008091dac50e4e6d07bded0da84f85bb3 | 2bcf18252fa9144ece3e824834ac0e117ad0bdf3 | /zpt/trunk/site-packages/zpt/_pytz/zoneinfo/Asia/Ulan_Bator.py | 23ee14fe6b126706fac6097086cd541788e4110c | [
"MIT",
"ZPL-2.1"
] | permissive | chadwhitacre/public | 32f65ba8e35d38c69ed4d0edd333283a239c5e1d | 0c67fd7ec8bce1d8c56c7ff3506f31a99362b502 | refs/heads/master | 2021-05-10T14:32:03.016683 | 2010-05-13T18:24:20 | 2010-05-13T18:24:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,011 | py | '''tzinfo timezone information for Asia/Ulan_Bator.'''
from zpt._pytz.tzinfo import DstTzInfo
from zpt._pytz.tzinfo import memorized_datetime as d
from zpt._pytz.tzinfo import memorized_ttinfo as i
class Ulan_Bator(DstTzInfo):
'''Asia/Ulan_Bator timezone definition. See datetime.tzinfo for details'''
zone = '... | [
"chad@zetaweb.com"
] | chad@zetaweb.com |
0d4c7f4d593f7dd6202682d0b22e198ebfd53434 | 80ae5df6106e16f22c423ab4319170d103951599 | /pyKairosDB/tests/test_graphite_style_read.py | 2b132206e3903b5bf99bb5ab6ed38b3ae804e773 | [
"Apache-2.0"
] | permissive | justmedude/pyKairosDB | d096dd074a770f7dd5b247de115d50e5250d7eaa | 4c17f551a3e8daf0fa407c8362f6da0f7343784f | refs/heads/master | 2021-01-18T07:30:03.642998 | 2020-06-07T17:23:20 | 2020-06-07T17:23:20 | 33,954,605 | 0 | 0 | NOASSERTION | 2020-06-07T17:23:22 | 2015-04-14T20:14:21 | Python | UTF-8 | Python | false | false | 802 | py | #!/usr/bin/env python
import time
import pyKairosDB
from pyKairosDB import util as util
from pyKairosDB import graphite
# use this after the following read test has settled:
# ipython pyKairosDB/tests/test_graphite_write.py test.bar.baz
# ipython pyKairosDB/tests/test_graphite_write.py test.bar.bar
# ipython pyKairo... | [
"pn@knewton.com"
] | pn@knewton.com |
1505fa6f68042b2c947fc0d69cb9a44f0e2ec8bf | b4b2cb10ecfbe0f62615e750aad140b2e57c727d | /rc_board/recipes/migrations/0001_initial.py | efb029ecaec4bf0ba6fb42e15896c688f4969998 | [] | no_license | apustovitin/rb | 8694a7d5167a1c9180c175d3442222c1bda7691e | 2150ab15e03f63e321f5acd3f98e3605e8e554bf | refs/heads/main | 2023-08-28T20:03:13.603134 | 2021-11-01T00:23:32 | 2021-11-01T00:23:32 | 417,274,548 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,258 | py | # Generated by Django 3.2.8 on 2021-10-14 19:03
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Category',
fields=[
... | [
"apustovitin@gmail.com"
] | apustovitin@gmail.com |
5bc3f6bce2c26a92d231ccc40f81cff77b91934c | dfdb41c035447ac085f6b650e2179dc46ea45a5c | /aiohttp_socks/core_socks/_proxy_sync.py | 4f4e1765eb868b71e3a102675abd45518a14e59c | [
"Apache-2.0"
] | permissive | maemo-leste-extras/aiohttp-socks | d7391acc2df9654531f9f2510f1ffc1793312ad9 | 4771b8bc73bd85f41a158600171b931de8e0c414 | refs/heads/master | 2023-03-05T20:30:15.237710 | 2020-09-24T06:44:00 | 2020-09-24T06:44:00 | 335,752,625 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,379 | py | import socket
from ._types import ProxyType
from ._errors import ProxyConnectionError, ProxyTimeoutError
from ._helpers import parse_proxy_url
from ._stream_sync import SyncSocketStream
from ._proto_socks5_sync import Socks5Proto
from ._proto_http_sync import HttpProto
from ._proto_socks4_sync import Socks4Proto
DEF... | [
"piotr@debian.org"
] | piotr@debian.org |
1b406b2dc38004db14248af19fb7f7be9b8e7f6c | 487ce91881032c1de16e35ed8bc187d6034205f7 | /codes/BuildLinks1.10/test_input/CJ_16_1/16_1_1_FreeTShirt_a.py | 0207b362ff64f55d6e7a49f758c368374d2c5dc1 | [] | no_license | DaHuO/Supergraph | 9cd26d8c5a081803015d93cf5f2674009e92ef7e | c88059dc66297af577ad2b8afa4e0ac0ad622915 | refs/heads/master | 2021-06-14T16:07:52.405091 | 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 | 404 | py | def argmax(s):
z = max(s)
return [(idx, c) for idx, c in enumerate(s) if c == z]
def last(s):
if len(s) <= 1:
return s
return max([s[idx]+last(s[:idx])+s[idx+1:] for idx, c in argmax(s)])
fw = open('a-o', 'w')
for idx, line in enumerate(open('A-small-i')):
if idx == 0:
continue
... | [
"[dhuo@tcd.ie]"
] | [dhuo@tcd.ie] |
ef5a7badcd93c97e6745d7e0e52875269113aa69 | dd73504f6cde1581db1c6526dfc8ae55fb9a5658 | /wageshare_summary_cleaned_market.py | 27d233cceeebdc3df3e81b489f2e729ea354cecc | [] | no_license | jabramsky/jabramsky.github.io | efafa07d2918240b527a28ac0cb96eac66536e20 | e771b4df00722e47118e73e2cf61b6333fa00646 | refs/heads/master | 2021-01-22T02:53:32.324009 | 2017-05-02T04:05:15 | 2017-05-02T04:05:15 | 81,079,781 | 0 | 0 | null | 2017-05-02T04:05:16 | 2017-02-06T11:20:59 | HTML | UTF-8 | Python | false | false | 1,324 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Apr 19 15:11:55 2017
@author: User
"""
import pandas as pd
import matplotlib.pyplot as plt
import statsmodels.formula.api as smf
data = pd.read_csv('timeseries_nototals.csv')
data.head()
exc_inds = (94, 95, 96)
for i in exc_inds:
exc_data = data[(data['NUMBER'] != i)]... | [
"joshua.abramsky13@gmail.com"
] | joshua.abramsky13@gmail.com |
8732c9af3fea83ea57fa51e58d56b098749760f6 | 6561baa7ca68875e62fbf2d20c7887e4aadebe9f | /tests/cds_test_20_sf_ukmo.py | efa292077e335becd6970c33d7b3c44900ea5f35 | [
"Apache-2.0"
] | permissive | EXWEXs/cfgrib | 9057c9e5abbc38a32f113f832f1506988839ee82 | 8a1727af2c3bbcf2e17f250dfafcb4cc4e959354 | refs/heads/master | 2020-04-01T15:44:45.140700 | 2018-10-14T14:39:13 | 2018-10-14T14:39:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,089 | py |
import pytest
import cfgrib
import cdscommon
TEST_FILES = {
'seasonal-original-single-levels-ukmo': [
'seasonal-original-single-levels',
{
'originating_centre': 'ukmo',
'variable': 'maximum_2m_temperature_in_the_last_24_hours',
'year': '2018',
'mo... | [
"a.amici@bopen.eu"
] | a.amici@bopen.eu |
85ef73de5c1fceffd5aff452e2b9902d1718602f | 5ca6730fa1178582d5f5875155f340ec0f406294 | /practice_problem-16.py | 44785ae4df282d5b7cc6f83173866d825eb41375 | [] | no_license | MahadiRahman262523/Python_Code_Part-1 | 9740d5ead27209d69af4497eea410f2faef50ff3 | e2f08e3d0564a003400743ae6050fd687c280639 | refs/heads/main | 2023-07-25T09:10:53.649082 | 2021-09-05T19:39:14 | 2021-09-05T19:39:14 | 403,396,706 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 135 | py | # Write a program to count the number of zeros in the following tuple:
# a = (7,0,8,0,0,9)
a = (7,0,8,0,0,9)
print(a.count(0)) | [
"noreply@github.com"
] | MahadiRahman262523.noreply@github.com |
8689b6823245a63ca4d654d51b9574331fa99dd9 | 7dcc175cae0cb34d8281dad566a2be4b9253224e | /Assignment2/Logistic Regression/logistic_regression.py | d3919204db3edda3e086488ffa9474886bd99c6a | [] | no_license | pratyushbanerjee/ml-assignment | 48e07b1765e822a4ecd71238584eb4b2acf83f0c | aa198cd92604b70b662bf7a8ba050d142027611b | refs/heads/master | 2022-11-26T09:20:18.118273 | 2020-08-05T21:25:40 | 2020-08-05T21:25:40 | 285,405,592 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,590 | py | #L Regression
#importing libraries
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
import random
import statistics
#importing the dataset
image_detection=pd.read_csv('data_banknote_authentication_excel.csv')
#splitting the data into testing and training data
test=image_detection.sam... | [
"pratyushbanerjee1@gmail.com"
] | pratyushbanerjee1@gmail.com |
5e0bde2a16193651c22bf50efd429a326bf6f474 | 6b564e24a99b2d2c6a384d8674974f10ef9461d5 | /iptv_proxy/providers/crystalclear/data_model.py | 53c6ad0d72865ecf54ed3413a6d9df1d667e4c12 | [
"MIT"
] | permissive | Onemars/IPTVProxy | 1c1421c6962c1f7cf4cef90d8a2c98e98f5ded25 | 06d5472f49ecaa7eafb90832a1c9ac85a09cd268 | refs/heads/master | 2020-05-24T14:34:48.486177 | 2019-05-17T14:17:21 | 2019-05-17T14:17:21 | 187,311,948 | 1 | 0 | null | 2019-05-18T03:58:48 | 2019-05-18T03:58:47 | null | UTF-8 | Python | false | false | 6,858 | py | import logging
from sqlalchemy import Column
from sqlalchemy import Index
from sqlalchemy import Integer
from sqlalchemy import LargeBinary
from sqlalchemy import String
from sqlalchemy.ext.hybrid import hybrid_property
from iptv_proxy.data_model import DateTimeUTC
from iptv_proxy.providers.crystalclear.constants imp... | [
"sherif.fanous@gmail.com"
] | sherif.fanous@gmail.com |
c2c880cdc9c3dc7f4534b7d285264499ff277426 | b406b4cf62616d3c6c0001cd57f5d28c2e09224e | /electronics/migrations/0028_auto_20210615_1442.py | ff731a43d0439f459de28fcc039260635fa53371 | [] | no_license | thefhtamim/Study-Material | 6284c85c717de2068f6a6c70428c4e1414ab76f4 | 15d4ee0da02f52677ab95b708c0cd1607eb52936 | refs/heads/main | 2023-07-26T10:28:59.916360 | 2021-09-10T19:02:33 | 2021-09-10T19:02:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 738 | py | # Generated by Django 3.1 on 2021-06-15 09:12
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('electronics', '0027_auto_20210615_0130'),
]
operations = [
migrations.AddField(
model_name='classnotes',
name='uploade... | [
"kedardalvi2001@gmail.com"
] | kedardalvi2001@gmail.com |
58787a0990221af1de4438a921cad4f347ef9aae | 9b9367781065c789868f65e43342f5bc3ecf1c57 | /utils/solver.py | ddea201cafd17b4cac3738b92ac34c7480471c97 | [] | no_license | sbleblanc/pgm_project | 2e91983047a93add6bb17d1355277d6b35645543 | 272532a90f144fbd485d4608d07aeb5765665da2 | refs/heads/master | 2020-04-04T03:48:37.952140 | 2018-12-20T04:01:14 | 2018-12-20T04:01:14 | 155,726,879 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 446 | py | import numpy as np
@np.vectorize
def inverse_solver(f, y, a, b, tol=1e-5):
"""
return x s.t. f(x) = y
this solver assume that f is monotonically increasing inside [a, b] and that x is in [a, b].
It will do dichotomic search until it find x s.t. |f(x) - y| <= tol
"""
x = (a+b)/2
_y = f(x)
... | [
"duchesneau.mathieu@gmail.com"
] | duchesneau.mathieu@gmail.com |
9847fe6297be8aa31e49a6137243226ace453b50 | be55e8a4859a57e0758d88f1d05d69a08b8355ed | /sports_app/views.py | 83f734c4930f5a896e59c4537fb6742cc66d0ec6 | [] | no_license | akyker20/sports_app | 5acfa4762dd565a48f805f38e23d287a41506490 | cda41d463ad4e1e6232d4c69633b806c9af93146 | refs/heads/master | 2021-01-17T00:04:51.475090 | 2015-05-27T07:01:56 | 2015-05-27T07:01:56 | 35,401,754 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,109 | py | from django.shortcuts import render
from sports_app.forms import AuthenticateForm, AthleteCreationForm
from django.contrib.auth.decorators import login_required
from django.contrib.auth import login, authenticate, logout
from django.http import HttpResponse
from django.shortcuts import render, redirect
from datetime im... | [
"amk66@duke.edu"
] | amk66@duke.edu |
87476fc48dcc81c8407d184dc2ba254400452b87 | c5389783a234bc755571f84e619ac296cff4aa4b | /views.py | f9c5a4ac7104989c4e658990236b9aeb89d4533d | [] | no_license | abhishekmajhi42/the_weather_app | 0f5381b2f832077334bb6597c2f55eca6c4b7709 | e52cf4a218c0464fbe542cf47a94b70aa103a796 | refs/heads/master | 2022-12-24T09:08:56.809596 | 2020-09-27T17:15:26 | 2020-09-27T17:15:26 | 299,080,529 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 862 | py | from django.shortcuts import render
import requests
# Create your views here.
from weatherapp.forms import CityForm
from weatherapp.models import City
def index(request):
url='http://api.openweathermap.org/data/2.5/weather?q={}&units=imperial&appid=271d1234d3f497eed5b1d80a07b3fcd1'
if request.metho... | [
"noreply@github.com"
] | abhishekmajhi42.noreply@github.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.