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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
64e74f09acb1c02d8d5aca312d0252015ccc78c5 | c1fef10413ef963abd192b6f47fd37ecd76bd22f | /source/infra/cassandra/eg_insert_gg_table3.py | e0acab1ad839b98a8c38389a2d45b5ac9aed6ffa | [] | no_license | ggopalan42/neutrino | 1793e957f770b6ca5ccd561ecd4951beb849a9b6 | 28b1c7df5bf89fa7a8834e74965607c0c283e3f4 | refs/heads/master | 2021-03-27T11:08:36.118422 | 2019-12-20T00:07:55 | 2019-12-20T00:07:55 | 123,050,068 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,639 | py | #! /usr/bin/env python
# Note: This script is primarily for testing insertion into a table
import os
import sys
import logging
from cassandra.cluster import Cluster
# Set logging level
logging.basicConfig(level=logging.INFO)
# Constants
HOSTNAME = '127.0.0.1' # Localhost. Later move this to a config
SYSTEM_KS... | [
"giridhara.gopalan@hpe.com"
] | giridhara.gopalan@hpe.com |
990724591460f6a3454e06b1a3df500f07f90241 | 58ee1dc37b57e0b4f06cf383c6a9e0654f490150 | /python-tflearn-git/lilac.py | 5214cab05f245eed7f14892fa3df205c85351b16 | [] | no_license | MikeyBaldinger/arch4edu | f3af87ef3a8d4cd78fde7e0ef75658c17dbe8c06 | c1775bf7fe0ffc87f3c8b4109fb1e8acde12a430 | refs/heads/master | 2022-12-23T16:40:55.513537 | 2020-09-28T21:00:59 | 2020-09-28T21:00:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 346 | py | #!/usr/bin/env python3
from lilaclib import *
maintainers = [{'github': 'petronny', 'email': 'Jingbei Li <i@jingbei.li>'}]
update_on = [{'aur': None}, {'github': 'tflearn/tflearn'}, {'alias': 'python'}]
build_prefix = 'extra-x86_64'
pre_build = aur_pre_build
post_build = aur_post_build
if __name__ == '__main__':
... | [
"i@jingbei.li"
] | i@jingbei.li |
9184a3cf90f6c87efee880a5df6da85bea92dc7a | ca0ff73a182fb8daf1478dba04683a5d0c205680 | /Spring/RabbitMQ_in_Depth/CH06/6.1 Direct Exchange.py | 3aea11462e4592c82025cd53d840b48dc2aef0d2 | [] | no_license | DawningTiger/Studio | 3db6c8f3e56600201947ffd0f652c76f663f328b | 0472979ea13ddb5d3a836bc9fc7dbd5d8f710c24 | refs/heads/master | 2023-04-27T18:28:05.502124 | 2019-11-07T05:53:11 | 2019-11-07T05:53:11 | 91,751,549 | 3 | 0 | null | 2023-04-21T20:39:53 | 2017-05-19T01:10:45 | HTML | UTF-8 | Python | false | false | 253 | py | import rabbitpy
with rabbitpy.Connection() as connection:
with connection.channel() as channel:
exchange = rabbitpy.Exchange(channel, 'direct-example',
exchange_type='direct')
exchange.declare()
| [
"410758267@qq.com"
] | 410758267@qq.com |
1e174980b1b3e5a79f067cb43d9213b69a797af2 | 6d2bcf254d7a24f5862e0ab964a2224d092f22ab | /chap2/12.py | 730a1f6bc018a784fb7312c661ccb58e9ddb7937 | [] | no_license | Hirochon/nlp-100-nock | c97b2bf2ee9fbb66eee592701b96c7ac5024311a | 2a73e0c5f0b99227d6a9393d9691f8ec2a0e80f8 | refs/heads/main | 2023-08-29T13:44:54.185605 | 2021-11-07T17:48:13 | 2021-11-07T17:48:13 | 424,612,836 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 466 | py | import subprocess
# !cut -f 1 ./popular-names.txt > ./col1_chk.txt
# !cat ./col1_chk.txt | head -n 5
res = subprocess.check_output(["cut", "-f", "1", "../public/popular-names.txt"])
decodedRes = res.decode()
with open("../public/col1_chk.txt", "w") as f:
f.write(decodedRes)
res2 = subprocess.check_output(["cut"... | [
"heacet43@gmail.com"
] | heacet43@gmail.com |
db5ed44277df8a9a1505f2c6cd8133d9978cf85d | 9f487f679ef9cf9399058fa92f682a4f425e90d5 | /2014/pico-ctf/master-challenge/fancy_cache/exploit.py | 80ca9099c4d48c3071c00e862b1730391a09f912 | [
"MIT"
] | permissive | zachriggle/pwntools-write-ups | 20693babacc4a58f32d403f538f20bd133d36588 | b81859e61c05dc80e8209b8a024a7c6b9691f1b3 | refs/heads/master | 2021-01-17T22:43:20.415143 | 2015-03-14T18:11:19 | 2015-03-14T18:11:19 | 22,653,774 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,075 | py | #!/usr/bin/python
from pwn import *
import socket
import telnetlib
"""
The original client has a pack4/unpack4 method that takes a 32 bit integer
and returns a 4 byte string representing the number in little endian.
With pwntools you have already access to the standard struct.pack and struct.unpack
functions as well a... | [
"simospar@gmail.com"
] | simospar@gmail.com |
3ca0f0f9c4cc6b4dfa80991dd9bbeb1c6b3a23a9 | bb5ddd4543e790a78764af3b775ee23a1842cde2 | /scripts/valhalla_build_extract | 259634bf2522a16d08dd45b38f14db5bb6c57ed0 | [
"MIT"
] | permissive | molind/valhalla | ee8fcd88eb2b546af8381ab015e25a06063c0847 | 52f869ea2cc192ab31e9d5e75170cab29694059c | refs/heads/master | 2022-09-20T20:38:17.346015 | 2022-09-14T17:48:39 | 2022-09-14T17:48:39 | 84,201,422 | 0 | 0 | null | 2017-03-07T13:20:31 | 2017-03-07T13:20:31 | null | UTF-8 | Python | false | false | 7,488 | #!/usr/bin/env python3
import argparse
import ctypes
from io import BytesIO
import json
import logging
import os
from pathlib import Path
import struct
import sys
import tarfile
from tarfile import BLOCKSIZE
from time import time
from typing import List, Tuple
# "<" prefix means little-endian and no alignment
# order... | [
"noreply@github.com"
] | molind.noreply@github.com | |
9edb6fb910255cf29713ca49bd8f2e57d1186ea7 | a5aa3e80fe2e97cc9de3d42be873fdf468a68968 | /a10_openstack_lib/resources/a10_scaling_group.py | 312cd817ddd0ea9bc95f2784cacf72012e30ba03 | [
"Apache-2.0"
] | permissive | Cedev/a10-openstack-lib | 60911420f781db99f9d7456be5c4c707985c3c2d | 23c6a5ae2cfaeb5bb950e96be3a79c3b0e014247 | refs/heads/master | 2020-04-05T22:53:54.765410 | 2016-06-07T23:02:01 | 2016-06-07T23:02:01 | 61,076,970 | 0 | 0 | null | 2016-06-13T23:41:50 | 2016-06-13T23:41:49 | Python | UTF-8 | Python | false | false | 12,633 | py | # Copyright (C) 2016 A10 Networks Inc. All rights reserved.
EXTENSION = 'a10-scaling-group'
SERVICE = "A10_SCALING_GROUP"
SCALING_GROUPS = 'a10_scaling_groups'
SCALING_GROUP = 'a10_scaling_group'
SCALING_GROUP_WORKERS = 'a10_scaling_group_workers'
SCALING_GROUP_WORKER = 'a10_scaling_group_worker'
SCALING_POLICIES ... | [
"doug@parksidesoftware.com"
] | doug@parksidesoftware.com |
d419a8ab94fbec9063ce80b6bb673d0e9abb7763 | 4e518317ee5b13a24c613fdc1451c88dc89d5fcc | /Fibonacci.py | ea3432eb276d7b7a1bf8c1d95f58120e05e63105 | [] | no_license | nourkhaled/Python | ab7ac8db937463749cabbb8a87f2c4b9c7c6b56f | 83d363b8e1ff1ca0325925a8e4f25403d9d90591 | refs/heads/master | 2020-06-20T02:04:58.872215 | 2019-07-17T13:10:35 | 2019-07-17T13:10:47 | 196,953,780 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 508 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Jul 17 10:23:38 2019
@author: IST
"""
def fibonacci (eleNum):
i= 1
if eleNum == 0 :
fib = []
elif eleNum ==1 :
fib =[1]
elif eleNum ==2:
fib = [1,1]
elif eleNum > 2:
fib = [1,1]
while i < eleNum - 1:
fib.append(... | [
"Nourhan.khaled@istnetworks.com"
] | Nourhan.khaled@istnetworks.com |
10d2b852e2f224d780d3d3948914efb1963d11e2 | 4c05c92b6020d0e61a6a110b7562b86a256fc962 | /Turtle Magic.py | 08bbe144a0e10b500e4a1d59011b5ce512e606ad | [] | no_license | Aaron250907/PythonCourse1 | 9bd93696973720c262d49e26be453d3b54e240fd | 43fa7de48333ce953f7c3436cc77b9930e2142de | refs/heads/main | 2023-03-14T03:27:06.844190 | 2021-02-20T09:15:53 | 2021-02-20T09:15:53 | 340,611,355 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 215 | py | import turtle
colors = ['red', 'blue','green', 'yellow', 'purple', 'orange']
t = turtle.Pen()
turtle.bgcolor('black')
for x in range(360):
t.pencolor(colors[x%6])
t.width(x/100 + 1)
t.forward(x)
t.left(59) | [
"noreply@github.com"
] | Aaron250907.noreply@github.com |
ec6fcf93cc3d0262a6b7b598ec122b19591057aa | f217883abc9daffecdafec5794068a5ca6adb905 | /MathOperationsP5.py | 00acbad3dd8e167bf09f55a7b3f12b6cf98a3bff | [] | no_license | DamianVega/P1.HelloWorld | 693592cd4175118afcf34790958d3751f156ce21 | 9a636ac31e54481e6fcefe5e3ab7c2d0799d8003 | refs/heads/master | 2020-04-05T01:22:45.045323 | 2019-05-13T18:47:50 | 2019-05-13T18:47:50 | 156,433,921 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 561 | py | a = 25
b = 10
c = 7
# Adding
print("Display the sum of:",a,"+",c,"=",a+c)
# Subtracting
print("Display the difference of:",a,"-",c,"=",a-c)
# Multiplying
print("Display the multiplication of:",a,"*",c,"=",a*c)
# Division
print("Display the division of:",a,"/",c,"=",a/c)
# Integer Division
print("Display the... | [
"noreply@github.com"
] | DamianVega.noreply@github.com |
720ea0442ba601347f0f785738e5a5cf39923cf8 | b4692ccd9b46fb661a70575f88fbc7de50a08eee | /test.py | 01008d40647fedaff9cfc0ac8e9b7105f8cea04d | [] | no_license | 18516264210/MachineLearning | 20383fae121c0abb0f86dd9e614074dce63b4eb5 | c0d60f24bfe75788a1b59ce1918d692f0e5c46d9 | refs/heads/master | 2021-04-04T01:43:25.870375 | 2020-03-19T04:56:21 | 2020-03-19T04:56:21 | 248,413,950 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 103 | py |
from printff import Printf
if __name__=="__main__":
p = Printf("zhang","19")
p.new_print() | [
"bestjinyi@163.com"
] | bestjinyi@163.com |
8a87063d5cbebd2f8d469e9c7340e405764fc3b7 | 2c995ab8f04f8129372809c10242ea723aac86ef | /FirstTest/Scener.py | 3c5af0f90e8c7030c2b2bea8c9fc66d481daed97 | [] | no_license | ulmoDK/GymMatManimVideos | 002f6a26855a02d69cfc86d6472170dc78fd95d5 | defa85cfc4432807d9addbc82d3d9bd1333180ce | refs/heads/master | 2022-11-26T07:34:00.262388 | 2020-07-21T19:53:17 | 2020-07-21T19:53:17 | 281,488,472 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,200 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Mar 18 21:28:25 2020
@author: ulmo
"""
import manimlib
from manimlib.imports import *
"""
def set_background(self):
background = Rectangle(
width = FRAME_WIDTH,
height = FRAME_HEIGHT,
stroke_width = 0,
fill_color = "#3E746F",
fill_opacity = 1)
sel... | [
"ulrichamortensen@gmail.com"
] | ulrichamortensen@gmail.com |
1fcc808e5c396da1120452e56d1413f1fbbc350a | 66735869ad5468454f96f4dd5fd4dc2df29ec1c3 | /netParams.py | d7b85a0a5c5171186ab9852d8aae2035cdffa262 | [] | no_license | joewgraham/spinalcord | 6b4f98c92105fc8fe5c3184450123f1e85ff7834 | 0e8956280a80a355372ffef0a01e839d1789e2a4 | refs/heads/master | 2022-11-24T13:27:45.482318 | 2020-07-23T03:36:19 | 2020-07-23T03:36:19 | 281,727,379 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,825 | py | from netpyne import specs, sim
try:
from __main__ import cfg
except:
from cfg import cfg
netParams = specs.NetParams()
netParams.propVelocity = 100.0 # propagation velocity (um/ms)
netParams.probLengthConst = 100 # length constant for conn probability (um)
netParams.defaultThreshold = cfg.defaultT... | [
"joe.w.graham@gmail.com"
] | joe.w.graham@gmail.com |
e5e03b4381e41a2e2b390040d6116fa7769744d3 | 2bb5f179db740ab6335fa1c221a80995857ad43a | /Unit1/Exercises/WeekendProjectTTeller/app/view.py | d11bad232a4166bf61f79a42a501e3ca08e89f1c | [] | no_license | acrainier1/BytePhase1 | 77cecce542012218317b8840b8ad74688bd9150c | 6c1db7fd5569540dcd7c4ba6932e25d2a709ac15 | refs/heads/master | 2020-08-27T11:32:35.189211 | 2019-11-22T00:19:10 | 2019-11-22T00:19:10 | 217,352,349 | 0 | 0 | null | 2019-10-24T17:11:16 | 2019-10-24T17:11:16 | null | UTF-8 | Python | false | false | 1,165 | py |
def print_login_menu():
print("""Welcome to Terminal Teller!:
1) create account
2) log in ... | [
"carteradams@protonmail.com"
] | carteradams@protonmail.com |
850985fddff858e55bfd488b48ba7aff47e39da6 | fbf73800e27f66960f677a284c2771e66708973b | /subreview_lib/classicreviewdecisionpage.py | dfbc360e28ba50b5a16d59e1c83ece7bce6d2c65 | [
"MIT"
] | permissive | allankellynet/mimas | 94140a341693d4729b3cdf5ea94ef2f7e550aad6 | 10025d43bba9e84f502a266760786842e7158a05 | refs/heads/master | 2022-05-30T21:35:06.083902 | 2020-02-27T14:04:27 | 2020-02-27T14:04:27 | 235,146,506 | 0 | 0 | MIT | 2022-05-25T04:56:13 | 2020-01-20T16:30:39 | Python | UTF-8 | Python | false | false | 3,568 | py | #-----------------------------------------------------
# Mimas: conference submission and review system
# (c) Allan Kelly 2016-2020 http://www.allankelly.net
# Licensed under MIT License, see LICENSE file
# -----------------------------------------------------
# System imports
# Google imports
import logging
from go... | [
"allan@allankelly.net"
] | allan@allankelly.net |
34e6d9bd427d80013aeb40dfba6f4734f2d186e4 | e6bc1f55371786dad70313eb468a3ccf6000edaf | /Datasets/py-if-else/Correct/076.py | 2c07f238adcfd70b429c52cda3509dc1a5eb15ba | [] | no_license | prateksha/Source-Code-Similarity-Measurement | 9da92e3b22c372ed6ea54d8b6ab2c5921e8c41c0 | fb371b837917794d260a219a1ca09c46a5b15962 | refs/heads/master | 2023-01-04T07:49:25.138827 | 2020-10-25T14:43:57 | 2020-10-25T14:43:57 | 285,744,963 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 178 | py | #!/bin/python3
import sys
N = int(input().strip())
if(N%2==0) :
if (N<5 or N>20):
print('Not Weird')
else :
print ("Weird")
else :
print ("Weird") | [
"pratekshau@gmail.com"
] | pratekshau@gmail.com |
2f043528a38c9588efa20f5f3d70aeed5298c733 | 6ff5e37147419b5ed5ee43a6654bf2bc8d6f5779 | /printTree.py | ebc7c00a98b0ea95dfa91e3bcf56708872eafcf8 | [] | no_license | ashageorgesj/LeetCode | 982fcdf5265ce98c02a27a7b55ff4273c4875dcd | afb8c8fbfa3f3a08d70c4fa12ab82bcb601bbb2d | refs/heads/master | 2021-05-21T04:19:45.314378 | 2021-02-05T07:13:58 | 2021-02-05T07:13:58 | 252,539,269 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,332 | py | from typing import List
class Node:
def __init__(self,val="",children=[]):
self.val = val
self.children = []
class Solution:
def findHierarchy(array:List[List[str]]):
# Find top level parent:
top = set()
children = []
mydict = {}
#print(array)
for member in array:
#print(membe... | [
"ashageor@gmail.com"
] | ashageor@gmail.com |
ba7772ef5a0bdda86060a572f050496c9ed99e11 | bc6704ee95819dd8f0547b69c6edf3a4300a7667 | /ML/DeepModel.py | c4603653b531386bc72a7f9f34dd7ca8d68a3123 | [] | no_license | zhangzhenyu13/CreditPredict | 09e25cbcc6ec6742861f781fc09eb49cff02a4db | 26dba961f1c576c4a0158a4ef0bf01d30f79d351 | refs/heads/master | 2021-07-07T22:18:49.043396 | 2017-10-04T13:54:31 | 2017-10-04T13:54:31 | 105,357,395 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,152 | py | #coding: utf-8
import tensorflow as tf
import time
import xml.dom.minidom as xmlparser
from LoadData.SelectRelativeAttrs import *
from LoadData.StrEncoder import *
from LoadData.fillStrategy import *
#load net structure from file
def readnetStructure(inDim,outDim):
print("netWorks Structure")
w = {}
b = {}... | [
"zhangzhenyu13@outlook.com"
] | zhangzhenyu13@outlook.com |
4455e765ccd95b4a89c68bf96e906b8007962abf | 0acc2088392251ee40b3a187c4eb5d7bb3a7dfa5 | /dj8amjuly/mtopro/mtoapp/migrations/0001_initial.py | c15e6bab7d701f4e57b729d1212e94e183bccc5c | [] | no_license | devopstools2016/python_django_repo | 5747a54cb3ba89285323ba4b93b7ba22f5a29f5d | ccd61f990eb28639943829e7008982b60a8ed40e | refs/heads/master | 2020-07-25T07:02:04.512779 | 2019-09-13T06:41:50 | 2019-09-13T06:41:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,099 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
]
operations = [
migrations.CreateModel(
name='Course',
fields=[
('id', models.AutoField(verbo... | [
"rathaiahmca@gmail.com"
] | rathaiahmca@gmail.com |
204330cf331d9714e480ff6aed9841c350a88aa2 | d9effdca7fcaf3ec7d5568d69476c181e7aa05cc | /00_scripts/06_04_bulkMoist.py | 5cc2100b448f587e4d337addf635652d5a0d1c8a | [] | no_license | Potopoles/MScTh | cac1013dea0d9935efa1bd5b6a30a7f339f3c9ac | 7fdd5b769fe9416c056f8b8003b8466547d9f71c | refs/heads/master | 2021-07-10T14:16:47.636015 | 2020-06-25T10:43:48 | 2020-06-25T10:43:48 | 151,584,506 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,504 | py | def plotVertProf(var_vP, varNCO, ax, meta):
zvals = varNCO.dims['altitude'].vals
zvals = np.expand_dims(zvals, 0)
zvals = np.repeat(zvals,len(subSpaceInds['diurnal']),axis=0)
PLOT = ax.plot(np.transpose(var_vP), np.transpose(zvals))
ax.axvline(x=0, color=(0.5,0.5,0.5), linestyle='-', linewidth=1)
... | [
"Christoph.Heim@meteoswiss.ch"
] | Christoph.Heim@meteoswiss.ch |
b80e6678bdec542511a639a79632f094d5382c60 | a0e94248c539b087342ccab59c4edef99e3c8f80 | /main.py | 8e6c2bc875f89f44d1f588841bf44309051404ff | [] | no_license | Pawanpathak4/spychat | 6389d40cd03ad6c9771f74ae17f086a4cd5729bc | bbf95dba45923f329bb3eb91f11948304831aaf2 | refs/heads/master | 2020-03-09T09:33:12.074066 | 2018-04-09T05:11:24 | 2018-04-09T05:11:24 | 128,715,363 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,716 | py | ############spychat5555########
def entry():
name = raw_input("What's your spy name??")
if len(name) > 0:
print("Yay, the name is good.")
salutation = raw_input("What would be your spy salutation, Mr. ,Mrs or Ms.")
full_name = salutation + " " + name
print("Alright " + full_n... | [
"pawanpathak32@gmail.com"
] | pawanpathak32@gmail.com |
f8d452fb3157f7facf9a23c27cb5b31e1d5c8b91 | b96b7ba35f4bac232f195adcd50a63433d88880a | /tracking.py | dadf9bf1fe598c50351e4ea8903010bcb508ca93 | [] | no_license | meexwaal/MarkOffProcessor | 72c54178b56b0dc22ebf6491de5488cb7dc16a1b | 7c2f88d8328c104626056efa202851248dc17eaa | refs/heads/master | 2021-09-04T17:56:19.169067 | 2018-01-20T20:59:48 | 2018-01-20T20:59:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18 | py | opencv/tracking.py | [
"maximusjohnsonus@gmail.com"
] | maximusjohnsonus@gmail.com |
54073a0a96169761ca6e309c1f572aa135b71df0 | 682319f56c17e949bab0d6e418838d33977dd760 | /RP/search_element.py | 6bddc659f268253cf4d1a9296c7704a8a0a4f81b | [] | no_license | DilipBDabahde/PythonExample | 8eb70773a783b1f4b6cf6d7fbd2dc1302af8aa1b | 669762a8d9ee81ce79416d74a4b6af1e2fb63865 | refs/heads/master | 2020-08-23T01:05:44.788080 | 2020-07-25T21:59:52 | 2020-07-25T21:59:52 | 216,511,985 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,431 | py | '''
.Write a program which accept N numbers from user and store it into List. Accept one another number from user and
return frequency of that number from List.
input: Num of elements: 12
input Elements: 5 8 6 8 5 9 3 7 2 21 1 5
Element to search = 5
output: Freq of search element is: 3
'''
def search_El... | [
"noreply@github.com"
] | DilipBDabahde.noreply@github.com |
fdfc672d12f9c86098112c591150ba65cb65eadc | f9e379b6183376699a270cf90a1472d3d20da3e0 | /travel/apps/cities/urls.py | 9312df2242babfe28b56b7428ea77380a5f15522 | [] | no_license | tuxubaev17/Travel | d60627a8d111a30bbdc98027c278d8b616630131 | a885b3b5ebddf0f20e2f68d6279561a91f74028b | refs/heads/master | 2023-04-29T07:30:46.586047 | 2020-01-19T08:22:33 | 2020-01-19T08:22:33 | 226,667,476 | 0 | 0 | null | 2023-04-21T20:43:45 | 2019-12-08T12:54:48 | Python | UTF-8 | Python | false | false | 480 | py | from django.urls import path
from .views import (home, CityDetailView, CityCreateView,
CityUpdateView, CityDeleteView)
app_name = "city"
urlpatterns = [
path('', home, name='home'),
path('detail/<int:pk>/', CityDetailView.as_view(), name='detail'),
path('add/', CityCreateView.as_view()... | [
"tuxubaev17@mail.com"
] | tuxubaev17@mail.com |
07ae406d8c86434e6d9828f79c80cc7113e9e530 | 647d9874e51e617ed351aeff9954e4c7318af6d8 | /attendance/get_data.py | c47ab87db19774cbf6f5059697d76c3e223dbefa | [] | no_license | technophilic/vityBot | 99c33a550503e1b590417c12627420c649ebd5b0 | 6f7a5a43a85bd7da5fd46e3154b46a1cc9b9e296 | refs/heads/master | 2021-01-01T17:08:35.251511 | 2017-07-21T16:35:21 | 2017-07-21T16:35:21 | 98,008,802 | 0 | 0 | null | 2017-07-22T05:19:07 | 2017-07-22T05:19:07 | null | UTF-8 | Python | false | false | 942 | py | import requests
base = 'https://myffcs.in:10443/campus/vellore/'
login = '/login/'
personal_details = '/personalDetails/'
edu_details = '/educationalDetails/'
exam_schedule = '/examSchedule/'
messages = '/messages/'
refresh = '/refresh/'
class LoginError(Exception):
def __init__(self):
self.message = 'Er... | [
"surya.thiru001@gmail.com"
] | surya.thiru001@gmail.com |
3628f604b1aba3e9e2c220706799292b5ac0944b | d79a6dc4bef743e2cd503a8c05b64a00476f6a32 | /02_01/begin/readInData.py | e4589d9d5658e2d3778d4a91d5efa18e13dc163d | [] | no_license | thuhuong262hd/scripting_for_tester | 2e5aa8cad9e97e4557d69d70de3406545e8839da | 1b5fed9468e5518f2cba9391f7166547d93524b3 | refs/heads/master | 2023-03-22T01:19:32.130118 | 2021-03-11T06:59:56 | 2021-03-11T06:59:56 | 342,200,119 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 823 | py | import csv
#final desired format
# - Charts [["Test Name",<diff from avg>]]
# - spreadsheet [["Test Name",<current run time>]]
timing_data = []
with open('TestTimingData.csv') as csv_file:
file_reader = csv.reader(csv_file)
for row in file_reader:
timing_data.append(row)
column_chart_data... | [
"huong.nguyen@notabasement.com"
] | huong.nguyen@notabasement.com |
e340f9127368c9c920a416442cc21904b4e04a23 | 598db6374c25eba964b4c3cc7fc03b3dfdfad92e | /fitting.py | 2ed3493a200dc19c0d37771ebc2487ff27907179 | [
"MIT"
] | permissive | yyuuliang/toolbox | 3e8a83464495ceab05c4bc1821b65a6cddf00205 | 9da907fd1a73c3694e5b4fcfb052fc3d5fb1fc42 | refs/heads/master | 2020-06-28T04:29:20.026980 | 2019-08-08T01:09:56 | 2019-08-08T01:09:56 | 200,143,016 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,680 | py |
import numpy as np
from matplotlib import pyplot as plt
from sklearn import linear_model, datasets
n_samples = 10
n_outliers = 3
X, y, coef = datasets.make_regression(n_samples=n_samples, n_features=1,
n_informative=1, noise=10,
coef=True,... | [
"notus.li@gmail.com"
] | notus.li@gmail.com |
19991d7f0056982ff6ebada00d7bad44c64016e4 | c9ea085c1d74d4f989a72f7e5d1f59433ef31dd9 | /mopidy_bookmarks/controllers/bookmarks.py | 335828023e4b919a80d6b1cacc26e8ca9d26ac2a | [
"Apache-2.0"
] | permissive | sapristi/mopidy-bookmarks | 08c615ae094846e9c89a4d9ede5a204599ca1f2b | 9babcc94b5099a86063e87830ce1026056c77747 | refs/heads/master | 2022-11-26T14:01:48.861863 | 2020-07-31T15:06:58 | 2020-07-31T15:06:58 | 276,175,116 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,724 | py | import logging
import pykka
import time
from peewee import (
Model,
SqliteDatabase,
IntegerField,
DoesNotExist,
)
from mopidy import models
from .generic import LTextField, JsonField, LimitError
logger = logging.getLogger(__name__)
class BookmarksController(pykka.ThreadingActor):
def __init__(s... | [
"megabigfoutoir@gmail.com"
] | megabigfoutoir@gmail.com |
d3a3564a7a3dfa3476aed8c37bc0eefe96e862bd | b54f9fb585648e4fe0b8ca727f42c97a6c1486fd | /variability/varModels.py | 5006e96121da25ab9e80c656b99ff8bf870894bf | [] | no_license | tribeiro/SMAPS | 46a36ab3fd74e35d97d9b43d5d80d88d9581b9da | b1e8dd9444e7fcbc7a82ab30941bab224b5ae600 | refs/heads/master | 2021-01-22T22:35:09.228649 | 2014-05-08T11:19:47 | 2014-05-08T11:19:47 | 19,570,868 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,107 | py |
import numpy as np
###################################################################################################
def ecbinary(time,period,ecduration,depth):
'''
Simulate eclipsing binary.
'''
phase = time / period
cycle = np.ceil(phase)
phase = phase - cycle
mask = np.bitwise_and(phase > -ecduratio... | [
"tiago.astro@gmail.com"
] | tiago.astro@gmail.com |
dd458bd298118cd4b80b586051dd3b742d78573a | 9f2eb69625bd0204f2e7d39b56592c92afe5e07b | /photos/migrations/0001_initial.py | 2c41e42421a2c744469a9ed886ba1d026feb09e9 | [] | no_license | Cris123m/machtecBeta | f8b426a0f996b189a8595ef179639facf77c0056 | 7c01653d5876c34974e0e8b6beb8e93da86604c8 | refs/heads/master | 2020-09-06T23:11:45.904167 | 2020-03-09T00:22:45 | 2020-03-09T00:22:45 | 220,584,788 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,195 | py | # Generated by Django 2.2.6 on 2019-11-08 23:32
import ckeditor.fields
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Photo',
fields=[
('i... | [
"cristofer123mach@gmail.com"
] | cristofer123mach@gmail.com |
7acf5941940c678da4795277f2ddd08749ad98a3 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03192/s975847643.py | 0b87008f474274d7ec53b07ee4ec58d374c6d871 | [] | 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 | 163 | py | n = int(input())
li = []
while n > 0:
li.append(n%10)
n //= 10
li.reverse()
ans = 0
for i in range(len(li)):
if li[i] == 2:
ans += 1
print(ans) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
29b9663bb72f21946ffdb20c501c498e7c0cfee6 | f2e09eea7c995df2cac15f16ae5eeb79b6fc748c | /odmltools/info.py | cda1f635ddc615fb0e6c0b291916d4bb2d05c164 | [
"BSD-2-Clause"
] | permissive | mpsonntag/odmltools | 676d829212ababd3ea3eb3396f25d0df8f3a4373 | 87e67fc737fbad2bd9866d529d47abbc2b7115d1 | refs/heads/master | 2021-07-13T07:54:23.214505 | 2021-06-21T18:11:19 | 2021-06-21T18:11:19 | 221,953,387 | 0 | 0 | null | 2019-11-15T15:40:14 | 2019-11-15T15:40:14 | null | UTF-8 | Python | false | false | 357 | py | import os
import json
INSTALL_PATH = os.path.dirname(__file__)
with open(os.path.join(INSTALL_PATH, "info.json")) as infofile:
infodict = json.load(infofile)
VERSION = infodict["VERSION"]
AUTHOR = infodict["AUTHOR"]
COPYRIGHT = infodict["COPYRIGHT"]
CONTACT = infodict["CONTACT"]
HOMEPAGE = infodict["HOMEPAGE"]
C... | [
"michael.p.sonntag@gmail.com"
] | michael.p.sonntag@gmail.com |
9e427939fee2e4d3f52f2a70e6743b49bcc4d34e | cc2fcc1a0c5ea9789f98ec97614d7b25b03ba101 | /st2tests/integration/mistral/test_errors.py | 3280859646406164d582cf4022c8c414ea41ca1f | [
"Apache-2.0"
] | permissive | Junsheng-Wu/st2 | 6451808da7de84798641882ca202c3d1688f8ba8 | c3cdf657f7008095f3c68b4132b9fe76d2f52d81 | refs/heads/master | 2022-04-30T21:32:44.039258 | 2020-03-03T07:03:57 | 2020-03-03T07:03:57 | 244,301,363 | 0 | 0 | Apache-2.0 | 2022-03-29T22:04:26 | 2020-03-02T06:53:58 | Python | UTF-8 | Python | false | false | 6,469 | py | # Licensed to the StackStorm, Inc ('StackStorm') under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use th... | [
"wei.ying@easystack.cn"
] | wei.ying@easystack.cn |
f47af696b45f0c254f382aef43afc297fd83e423 | 93ec296ce03189e48e52069ca8e5e35fd3765bbc | /build/lib/bitex/api/rest.py | f50a37da2ae6b0c2abeea6af1f34e02f46062e36 | [
"MIT"
] | permissive | zhumzhu/bitex | b3be658fc97f313462efc9b1b21670c2622afa5c | 11d8f96ee7346fe5a3648d8b58377e41a956b67b | refs/heads/master | 2021-01-18T17:24:53.330001 | 2017-03-23T10:51:16 | 2017-03-23T10:51:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 19,370 | py | """
Contains all API Client sub-classes, which store exchange specific details
and feature the respective exchanges authentication method (sign()).
"""
# Import Built-ins
import logging
import json
import hashlib
import hmac
import base64
import time
import urllib
import urllib.parse
# Import Third-Party
from requests... | [
"23okrs35+github@mykolab.com"
] | 23okrs35+github@mykolab.com |
5694f828530a430b4aca5569f67e50d0baf88575 | aff694b019806db8f8cd66fd205f9049351bb10c | /bin/wheel | e54d9f83eb92ea97085a22f82f854bd08e745464 | [] | no_license | mikilabarda/my-first-blog | 3885d08f87e9c3f05da7000b9e60d29f3895efd3 | 7e1476fa75e6db95bfe8685ad43a233777166071 | refs/heads/master | 2021-05-30T19:25:38.022284 | 2016-03-20T05:31:16 | 2016-03-20T05:31:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 233 | #!/Users/Miki/Desktop/env/bin/python2.7
# -*- coding: utf-8 -*-
import re
import sys
from wheel.tool import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"you@example.com"
] | you@example.com | |
9ba77a93b34b31c7c184176444d94a568deb7688 | e4d4149a717d08979953983fa78fea46df63d13d | /Week5/Day1/XP.py | 2c661c7abdf2c8897ce0f26c7fbce353061e2d6f | [] | no_license | fayblash/DI_Bootcamp | 72fd75497a2484d19c779775c49e4306e602d10f | a4e8f62e338df5d5671fd088afa575ea2e290837 | refs/heads/main | 2023-05-05T20:55:31.513558 | 2021-05-27T06:48:40 | 2021-05-27T06:48:40 | 354,818,813 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,863 | py | # # Exercise 1: Cats
# # Instructions
# # Using this class
# class Cat:
# def __init__(self, name, age):
# self.name = name
# self.age = age
# def oldest_cat(cat_list):
# oldest_current=cat_list[0]
# for cat in cat_list:
# if cat.age>oldest_current.age:
# oldest_current... | [
"fayblash@gmail.com"
] | fayblash@gmail.com |
3940101563b49cd1e017efdcfc68a4f8c102c21f | 1c38baab22de9208565613ea52a468b08111295e | /node_modules/ac-koa/node_modules/ac-node/node_modules/mongodb/node_modules/kerberos/build/config.gypi | efc738040e02514e98dd5eea7ae9a38acbeca620 | [
"Apache-2.0"
] | permissive | mrschaff/hipchat-translate | 62d4665dd8ffb7249f632e6fa56ea5a0b04014e1 | 0f56a22c4d072fc09317cda30b25de64d5eac997 | refs/heads/master | 2021-01-10T06:48:54.198569 | 2016-04-04T20:45:02 | 2016-04-04T20:45:02 | 54,481,859 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,753 | gypi | # Do not edit. File was generated by node-gyp's "configure" step
{
"target_defaults": {
"cflags": [],
"default_configuration": "Release",
"defines": [],
"include_dirs": [],
"libraries": []
},
"variables": {
"clang": 0,
"gcc_version": 48,
"host_arch": "x64",
"icu_data_file": "ic... | [
"pietroschaff@gmail.com"
] | pietroschaff@gmail.com |
e24d433767d920ff680b986ff07f6b0f6fe496bf | 61863803f0e010020f0a7ff0210e86809b94e965 | /day4/raspberrypi-codes/button-led/button-interfacing.py | f80e1efdafda5babfe46df5d4ca91093836b7735 | [] | no_license | maddydevgits/bitspilani-hyd-iot-bootcamp | 1aa23d4584bddec188996da60ab58675c30b1f3a | 44c64caaf247360252f6d9d9ccf868b1bc5a218e | refs/heads/main | 2023-06-23T23:41:00.534483 | 2021-07-30T16:24:10 | 2021-07-30T16:24:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 323 | py | # sudo python3 rpi-button-led.py
import RPi.GPIO as GPIO
GPIO.setmode(GPIO.BCM)
GPIO.setup(2, GPIO.IN) # BUTTON (OC - 1, CC - 0)
GPIO.setup(21, GPIO.OUT) # LED (0 - ON, 1 - OFF)
while True: # Infinite Loop
if GPIO.input(2): # reading the data from GPIO2
GPIO.output(21,1) # OFF
else:
GPIO.output(21,0) # ... | [
"noreply@github.com"
] | maddydevgits.noreply@github.com |
c02c67a431312e3b0710cf872c3477faeee8222e | f21ea752700b3afa0729bfa6520ab1c6702e6189 | /tools/graph_bag/scripts/poses.py | c92f7140d19b516cf9465625ffc36620dbebdbad | [
"BSD-3-Clause",
"LGPL-2.0-or-later",
"LicenseRef-scancode-philippe-de-muyter",
"MIT",
"MPL-2.0",
"MPL-1.0",
"LGPL-2.1-or-later",
"Apache-2.0",
"LGPL-2.1-only",
"LicenseRef-scancode-other-copyleft",
"LicenseRef-scancode-proprietary-license",
"LGPL-3.0-only",
"CC-BY-NC-4.0",
"GPL-3.0-only",
... | permissive | SemaSandbox/astrobee | 01594a46c80d8730be6f5ef753b44ab67a178f1d | e09fba15f241ce044e9b66d19a4767b547c2b720 | refs/heads/master | 2023-07-17T00:21:03.560819 | 2021-07-22T18:46:14 | 2021-07-22T18:46:14 | 391,620,249 | 1 | 0 | Apache-2.0 | 2021-08-01T17:12:56 | 2021-08-01T12:24:35 | null | UTF-8 | Python | false | false | 1,806 | py | #!/usr/bin/python
#
# Copyright (c) 2017, United States Government, as represented by the
# Administrator of the National Aeronautics and Space Administration.
#
# All rights reserved.
#
# The Astrobee platform is licensed under the Apache License, Version 2.0
# (the "License"); you may not use this file except in comp... | [
"noreply@github.com"
] | SemaSandbox.noreply@github.com |
49314760024407a296f238dd33047174c356b49e | 30447f52275d988d57ab224ae5e70919ce4f7cad | /game.py | 89729dc928baef50512b9ee824f38145af01f68c | [
"MIT"
] | permissive | EMCain/boats-game | d452698f8293e2fb4560f25e6c1193e41be0d751 | 98d7f68ab53d0fdb7c5f8ea38b1ff76f6f701ff9 | refs/heads/master | 2021-01-10T19:31:59.606871 | 2015-07-23T21:33:53 | 2015-07-23T21:33:53 | 39,591,046 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,709 | py | # This is a text based game that involves moving between interconnected boats.
# It's basically a trading sequence game; you're talking to characters to determine what they want, so you can help them and they can give you something you need to continue. It's my first Python program. I hope you like it!
# This game w... | [
"emilymargaretcain@gmail.com"
] | emilymargaretcain@gmail.com |
d923a0a51782d5961b136ff66825a74783eacae5 | d7f4a9f8a525e03fa8811c4a6f4b945dda79adb4 | /deep-learning-course/numerical-stability.py | c3162d2c4b8a73fd12ffe438aa1acce62867ec65 | [] | no_license | sebastianmontero/tensorflow | 3caffb968a403898deb39505041db8b0ce318ca4 | d02be076a03460dd38afa8ccadebbc4afff8ee22 | refs/heads/master | 2020-03-17T03:10:24.959450 | 2018-07-25T09:47:00 | 2018-07-25T09:47:00 | 133,223,575 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 63 | py | a = 1
for i in range(1000000):
a += .000001
a-= 1
print(a) | [
"smontero@mightywizards.com"
] | smontero@mightywizards.com |
e3399daf37f287b2f7c0b62e55f30e6611bf5d97 | 0f89043a9e7caac53bc76cd359d704d5cfaef3db | /main/migrations/0044_remove_tag_resources.py | eaef56cf0970beb2e07945c8e6a10d9b814acaf4 | [] | no_license | sirodoht/knowhub | f704d987f6c800717c2dba7b811d05b0d85801fd | 4c242a9f1bc14a11fbf799119b19d79c4201ba2d | refs/heads/master | 2022-03-05T15:28:55.539951 | 2019-11-18T18:33:42 | 2019-11-18T18:33:42 | 134,064,221 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 258 | py | # Generated by Django 2.1 on 2018-08-27 13:24
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [("main", "0043_auto_20180826_0050")]
operations = [migrations.RemoveField(model_name="tag", name="resources")]
| [
"theodorekeloglou@gmail.com"
] | theodorekeloglou@gmail.com |
098cf31e7e9c93028c892ae06068757816c156b8 | bc777bb292712419ffb683aeb07136c9ab68e11e | /src/common/calculate_accuracy.py | 07b9e0120d2cacadb77e65d4fc5078a482f0efc1 | [] | no_license | andrea-w/470project | b292f1c2e26e295fd3a7b3ce5cb0c4ec16d16d1c | 2460a293460fc53df6ea8ed133eca857a6fefe94 | refs/heads/master | 2023-07-23T20:41:54.281914 | 2019-08-02T09:53:56 | 2019-08-02T09:53:56 | 197,472,360 | 0 | 0 | null | 2023-07-06T21:39:30 | 2019-07-17T22:33:09 | Python | UTF-8 | Python | false | false | 2,676 | py | """
Creates new pandas DataFrame for each candidate, consisting of candidate's id and
the candidate's Mean Squared Error (MSE) in predicting test scores.
The fitness function consists of Mean Squared Error values in candidate's accuracy
in predicting scores. An additional column is inserted into the DataFrame with th... | [
"andrea.k.williams7@gmail.com"
] | andrea.k.williams7@gmail.com |
a42b36533d30b55a373753a69a88bc7ce88e7753 | c669f6041162d10f286cb2e04aa4163e6b37f951 | /l0qh4/repository/config_repository.py | a049fdea241ceb2ac175b74380e59f0575b7569a | [] | no_license | locnguyenvu/l0qh4 | 5096802263f4f5557d2576a2b3e00530b8743cc3 | fb1fc62dd12471c35f9d89b339fab4a52605f914 | refs/heads/master | 2023-01-09T16:50:55.418470 | 2020-11-07T04:22:56 | 2020-11-07T04:22:56 | 288,906,651 | 0 | 0 | null | 2020-11-07T04:22:57 | 2020-08-20T04:32:29 | Python | UTF-8 | Python | false | false | 164 | py | from .orm_model.config import Config
from ..shared.repository import Repository
class ConfigRepository(Repository):
ormclass = Config
domainclass = None
| [
"loc.nguyenvu@tiki.vn"
] | loc.nguyenvu@tiki.vn |
4fcd282d60d9e4ac0828e7919689e02b66cd375e | b27f7fcd08a64b4b3ae323c2c11fc3b0df41f323 | /EXECUTABLES/FINALES/Graphing_PDA_mesh.py | 5d6d61fb5e3eb1ade1656a5bf8c2263e6539eccf | [] | no_license | juancotrino/Drought-analysis-functions | ec584e143510817aa81e265d2aac1ca19195f941 | 9a35a343232987bcbeea922ae3393d1103846aa5 | refs/heads/master | 2023-07-16T01:27:51.512523 | 2021-08-17T19:45:08 | 2021-08-17T19:45:08 | 388,537,670 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 779 | py | # -*- coding: utf-8 -*-
"""
Created on Sat Nov 21 19:04:33 2020
@author: juan.cotrino
"""
from Hapi.datagraphing import ColorMeshPDAGraphing
analysis = "NCDA"
variables = ['runoff', 'soil_moisture']
percentiles = [60, 65, 70, 75, 80, 85, 90, 95]
main_path = "E:/JC_FA_TESIS/"
dst_path = main_path + "Datos/Images/"
... | [
"54945848+juancotrino@users.noreply.github.com"
] | 54945848+juancotrino@users.noreply.github.com |
a9fe63f7d3ec967b0984566e83707772eedadfb5 | f07a42f652f46106dee4749277d41c302e2b7406 | /Data Set/bug-fixing-5/765188917950a2d371982a81fa142747ea65f14a-<binned_statistic_2d>-bug.py | 37399820742f3945f3f54302e29aeac36416da57 | [] | no_license | wsgan001/PyFPattern | e0fe06341cc5d51b3ad0fe29b84098d140ed54d1 | cc347e32745f99c0cd95e79a18ddacc4574d7faa | refs/heads/main | 2023-08-25T23:48:26.112133 | 2021-10-23T14:11:22 | 2021-10-23T14:11:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,928 | py | def binned_statistic_2d(x, y, values, statistic='mean', bins=10, range=None, expand_binnumbers=False):
"\n Compute a bidimensional binned statistic for one or more sets of data.\n\n This is a generalization of a histogram2d function. A histogram divides\n the space into bins, and returns the count of the ... | [
"dg1732004@smail.nju.edu.cn"
] | dg1732004@smail.nju.edu.cn |
3257da756aabaa07ff821be59ed27b2379fb07f9 | b70657d1f96de8a267cb14a80fd4eb8df56d479f | /screaper_language_model/application/application.py | 6f78ce85467368f264f3647a9de1ff2790b26248 | [] | no_license | yenicelik/screaper | 8ea7e6064f85907edb9ee0261054d35bf1a38758 | de1f194b1dde3b0815e87ddbf5f1906badaf02a6 | refs/heads/main | 2023-04-23T19:10:13.800691 | 2021-05-11T21:13:36 | 2021-05-11T21:13:36 | 316,816,684 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,902 | py | """
Runs the Flask application
"""
import time
from flask import Flask, jsonify
from flask import request
from screaper_language_model.language_models.bert_multilang_ner import model_ner
application = Flask(__name__)
@application.route('/')
def healthcheckpoint():
return 'Multilingual BERT model up and runn... | [
"david.yenicelik@gmail.com"
] | david.yenicelik@gmail.com |
8845672ea92d7bddefee80d4f9a40864a8f36823 | bb198232df12a1adb9e8a6164ff2a403bf3107cf | /cookie-monster/MonsterBrowser.py | da21df7b654d09e613e51a1984046a21401e3364 | [] | no_license | vanello/wifi-arsenal | 9eb79a43dfdd73d3ead1ccd5d2caf9bad9e327ee | 1ca4c5a472687f8f017222893f09a970652e9a51 | refs/heads/master | 2021-01-16T22:00:37.657041 | 2015-09-03T03:40:43 | 2015-09-03T03:40:43 | 42,060,303 | 1 | 0 | null | 2015-09-07T15:24:11 | 2015-09-07T15:24:11 | null | UTF-8 | Python | false | false | 3,179 | py | from PyQt4.QtCore import *
from PyQt4.QtGui import *
from PyQt4.QtWebKit import *
from PyQt4.QtNetwork import *
import getopt
import sys
import re
class MyBrowser(QWebView):
def __init__(self,father=None):
super(MyBrowser, self).__init__(father)
self.page().setLinkDelegationPolicy(QWebPage.Delegat... | [
"oleg.kupreev@gmail.com"
] | oleg.kupreev@gmail.com |
4dc5f5ab20f58f3e95d3b45ee001dd6316e8658c | 0641f003eb983c95fa8f4577e8894e69f107aa0e | /backend/apps/shop/migrations/0001_initial.py | e157aa70a4695cc81665981ece99b1d18c4cdb7a | [] | no_license | davidkwan95/bri2016-backend | d61929086d5a46849477a6b6c93c002c221340ad | f33b9e2b3b5526385949bcb5e987ad7933016de1 | refs/heads/master | 2020-05-29T08:40:41.982377 | 2016-10-01T00:12:46 | 2016-10-01T00:12:46 | 69,886,136 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,707 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.1 on 2016-09-30 23:18
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migratio... | [
"davidkwan95@gmail.com"
] | davidkwan95@gmail.com |
52b36ccf3da23038a20396094e5100821ad733d3 | 825c1e78ec108bbec59cba3cfc6e0e2bf4a92ca8 | /hello-world/hello_world.py | 73acacf6bb2ee2b0166e64c4a7bdbfd9cdd90a4c | [
"Unlicense"
] | permissive | pierrebeaucamp/Exercism-Python | 52984866b9e552bc801da8ff7c77584bd28c1b4b | 910b764c6726e9f131fb3a394c70d9b5bb167be9 | refs/heads/master | 2021-01-10T06:16:18.262702 | 2016-01-11T02:00:08 | 2016-01-11T02:00:08 | 46,693,124 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 80 | py | def hello(name=''):
return "Hello, %s!" % (name if name != '' else "World")
| [
"mail@pierrebeaucamp.com"
] | mail@pierrebeaucamp.com |
5d8d85274d87f8f1d5474e429a79a01b31ce45a4 | 2e40c66b0fd702b55f94044cc4150bd0626fea57 | /dict.py | f05951365d5d6cd77d4ca818b9fdfec7717a5492 | [] | no_license | ramanuj760/PythonProject | 20b527f585b954819c0df75b303787e21d38deee | 3bd25757eaf29f5da46b1252ece5495aaae01670 | refs/heads/master | 2021-07-08T02:02:43.064020 | 2020-10-01T09:35:27 | 2020-10-01T09:35:27 | 191,696,547 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 415 | py | """write a python program to guess number between 1 to 9"""
print("welcome in guess number")
import random
a= random.randint(1,20)
for i in range(9):
b = int(input("enter a value"))
if b<a:
print("user value is small value")
elif b>a:
print(" user value is greater values ")
else:
break
print("val... | [
"ramanujgupta760@gmail.com"
] | ramanujgupta760@gmail.com |
fbb4019fa4789ab13854b2af3d2fa7780bbb329c | dd57fad95738d367c061d7881f8ab0d8dd60583c | /manage.py | 5061e823075a792df7c5af5d2cbd1860b72fc163 | [
"MIT"
] | permissive | Zhaoyanzhang/-myflasky | e590f3d1f3af67d6bba7de4912b33c26e95cd9c1 | bfbd101574953762cb3d36de03e70868317eee1d | refs/heads/master | 2021-01-19T13:38:58.082291 | 2017-11-28T15:12:29 | 2017-11-28T15:12:29 | 100,850,762 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 827 | py | #!/usr/bin/env python
import os
from app import create_app, db
from app.models import User, Role,Post,Follow,Permission,Comment
from flask_script import Manager, Shell
from flask_migrate import Migrate, MigrateCommand
app = create_app(os.getenv('FLASK_CONFIG') or 'default')
manager = Manager(app)
migrate = Migrate(app... | [
"459257668@qq.com"
] | 459257668@qq.com |
b50ab0437bdeb0851adabcf7abdab17632f1e3ef | 82b495a208ebdeb71314961021fbfe767de57820 | /chapter-06/temperature.py | 6c3619f4fe12c91df242c2a86240bd498aa1abd1 | [
"MIT"
] | permissive | krastin/pp-cs3.0 | 7c860794332e598aa74278972d5daa16853094f6 | 502be9aac2d84215db176864e443c219e5e26591 | refs/heads/master | 2020-05-28T02:23:58.131428 | 2019-11-13T13:06:08 | 2019-11-13T13:06:08 | 188,853,205 | 0 | 0 | MIT | 2019-11-13T13:06:09 | 2019-05-27T13:56:41 | Python | UTF-8 | Python | false | false | 469 | py | def convert_to_celsius(fahrenheit: float) -> float:
"""Return the number of Celsius degrees equivalent to fahrenheit
degrees.
>>> convert_to_celsius(75)
23.88888888888889
"""
return (fahrenheit - 32.0) * 5.0 / 9.0
def above_freezing(celsius: float) -> bool:
"""Return true if the temper... | [
"krastin@hashicorp.com"
] | krastin@hashicorp.com |
410f5cd2e5627cc13742a86d900883f68c5f4db4 | d0d023eab4b597460403f6378dbe3f4c0e35f106 | /break循环.py | 3e9f7a168c386b19c304d0cb3d89d2829d86dad0 | [] | no_license | UUtest/learnstone | ad99eb59785c670fb9d054a628b0f752b3b74914 | 17104b31aaf2b078bf2d002e6cb65d9ad3fe177e | refs/heads/master | 2021-01-19T10:57:14.897766 | 2018-06-25T11:33:10 | 2018-06-25T11:33:10 | 87,921,652 | 0 | 0 | null | 2017-04-16T14:14:07 | 2017-04-11T10:33:08 | null | UTF-8 | Python | false | false | 88 | py | n = 1
while n <= 100:
if n>10:
break
print(n)
n = n +1
print('END')
| [
"zhengdao.li@ele.me"
] | zhengdao.li@ele.me |
38af0a8f4ec7b286afc5854b6b8d7664edf331e0 | f4df9e53f984f293786fa3b890ab15f8c20abefd | /Django/beltreview/beltreview/urls.py | 7767d39b40ce4346388762908fc3bc5c218872b4 | [] | no_license | Chiefautoparts/Python_Party | bd0fbac9ea003f92be0f97d6f1d8f8d51c98a1b8 | 3d81052c51f14d5fc5dbd25317d23b891e766d8e | refs/heads/master | 2021-01-25T07:55:05.218262 | 2017-06-30T04:44:18 | 2017-06-30T04:44:18 | 93,680,027 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 767 | py | """beltreview URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.11/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... | [
"chiefautoparts@outlook.com"
] | chiefautoparts@outlook.com |
03806ebeea1b9df25cd60918f7afec18ceff218d | d83d4914df570d6e22a5f6ff94d8fb8870f50d17 | /tests/query.py | f7ce98f11f1328cd3d46bcf71bbbf3db692b64d2 | [] | no_license | upton/amondawa | 73d6ea749fe1955559c0db5b32d497b54f4c88aa | 3fe3d4f5cb9312b3a8e113bd5b856d58dbc0ec0a | refs/heads/master | 2021-01-21T01:06:35.836652 | 2014-02-06T06:04:05 | 2014-02-06T06:04:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,220 | py | # Copyright (c) 2013 Daniel Gardner
# All rights reserved.
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights to use, copy, modif... | [
"dgardner01@gmail.com"
] | dgardner01@gmail.com |
2ccf6e8187ca4ba55a24f1a28a9bc20379fa6251 | 397b0edb50c3838b6ee48822a1d2d0fcb645c1e2 | /utils/rehelper.py | 6626e15faaa0ebb8994c94bf3eb67cfdd62a9771 | [] | no_license | RonDen/spider-snippet | b3b935ca6e408abff1356b04dc75c4542b025c79 | 8d4b5bc2fea89fe3f595a5453c4abdb9b5ce44b8 | refs/heads/main | 2023-04-10T19:50:17.946004 | 2021-04-27T13:51:36 | 2021-04-27T13:51:36 | 362,125,388 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 123 | py | import re
_pattern = re.compile(r'\d+')
def reg_int(s: str):
res = _pattern.search(s)
return int(res.group(0))
| [
"3391131052@qq.com"
] | 3391131052@qq.com |
f1ae87159224252ac7dcbb0ad74eeb40808963a0 | 65ca44041d7925372120cdbcb8e08fa7c507c035 | /example/full/forward.py | e8b84cb61724f820ba54468d11347fd7c35a7e1f | [
"MIT"
] | permissive | lujung/python-spresso | faef8d092f2bde56ed318d52770d8cf38762ad2d | 32e0229abe9e18bbbe487184645d66ed1ed95a05 | refs/heads/master | 2021-01-21T06:30:45.630091 | 2017-03-01T20:01:26 | 2017-03-01T20:01:26 | 83,245,282 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 744 | py | import logging
from wsgiref.simple_server import make_server
from spresso.controller.application import Application
from spresso.controller.grant.authentication.core import \
ForwardAuthenticationGrant
from spresso.controller.grant.authentication.config.forward import \
Forward
from spresso.controller.web.wsgi... | [
"s4lujung@uni-trier.de"
] | s4lujung@uni-trier.de |
f3313107a5ffaa63d4869e3c442c991acd8d8d1c | 94eac0de3c2459edff4bc86a4a14dc73c8178a8e | /dag 2/Day 2 Exercise 2.2/buggy/dicegame/runner.py | 0d08a8dd7074327fff5aad2012400f8ab83cc50c | [
"MIT"
] | permissive | U-Wik/my_repository | 650b57b7c734d055a383937f39abf17ca53cd282 | 6598e3b4878b1171827ea48729c2853c5c687fb0 | refs/heads/main | 2023-03-10T04:32:19.034363 | 2021-02-28T18:07:46 | 2021-02-28T18:07:46 | 339,459,117 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,149 | py | from .die import Die
from .utils import i_just_throw_an_exception
class GameRunner:
def __init__(self):
self.reset()
def reset(self):
self.round = 1
self.wins = 0
self.loses = 0
def answer(self):
total = 0
for die in self.dice:
total =... | [
"79148270+U-Wik@users.noreply.github.com"
] | 79148270+U-Wik@users.noreply.github.com |
4ea466b0e7f19e3d00272633e1cbbf7a91c65dba | 695182479b8dd493e038ac704caf0d440fab007c | /module_fundamental/m004_type_data_string.py | 833d41a62968bf795ee86dc13d8b618aae44a3dd | [] | no_license | algokelvin-373/PythonFundamental | 61dd395f7300d5d7e2f9f3963e3ac2c563e6e003 | eb2b29be75f69146addb952feb8b537099c1e09f | refs/heads/master | 2023-06-17T02:38:29.114093 | 2021-06-19T15:08:36 | 2021-06-19T15:08:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 455 | py | print("Basic Type Data -> String")
a = "Hello, I am Kelvin. I'm ready to learn Python Programming"
print("Value a = ", a, ", type = ", type(a)) # 'str' is String
# String version 1
b = "Hello, I am Kelvin. " \
"I'm ready to learn Python " \
"Programming"
print("Value b = ", b, ", type = ", type(b))
# Strin... | [
"kelvin373.ht@gmail.com"
] | kelvin373.ht@gmail.com |
b60ad7df385f84596c6a0c1000ac89426cc71844 | ad0e939dd2ed5c772b19658eecd90954c33eeb22 | /region/p_regions/tests/test_azp_simulated_annealing.py | d09fddd2b727678e86800bb58457e3edfd671ecb | [
"BSD-3-Clause"
] | permissive | yogabonito/region | b0697cf150fe6cd7986fb0281686c50626bad090 | 725e7e1f8cd01e5bb175803e3649d019a0e4f443 | refs/heads/master | 2021-01-21T15:23:03.717624 | 2018-04-04T14:05:43 | 2018-04-04T14:05:43 | 95,353,704 | 0 | 0 | null | 2017-06-25T10:45:16 | 2017-06-25T10:45:16 | null | UTF-8 | Python | false | false | 5,993 | py | import networkx as nx
from region.p_regions.azp import AZPSimulatedAnnealing
from region.tests.util import region_list_from_array, compare_region_lists
from region.util import dataframe_to_dict
from .data import adj, neighbors_dict, gdf, graph, w, \
attr, attr_dict, attr_str, double_attr_str, \
... | [
"aleksandar.karakas@student.tugraz.at"
] | aleksandar.karakas@student.tugraz.at |
3e71b79db3247270ca6a277a25362246fb8b342c | d43272ae0c112f84041d22e1012e4d31a869fbf3 | /news/models.py | c6d89836c3f2d9463a175f2656a94faae77aeb41 | [] | no_license | abhishek1404/my-first-blog | 82309c26d42d0684ed03e7c1aeca13b13e3b13e5 | 5b1a8f2daeb58e38585198b7eed9ae5bb6dba894 | refs/heads/master | 2021-01-10T14:49:49.525900 | 2016-02-21T08:37:47 | 2016-02-21T08:37:47 | 43,903,212 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 648 | py | from django.db import models
from django.utils import timezone
# Create your models here.
class Post(models.Model):
"an Article pusted on by any user"
title = models.TextField(blank=True)
author = models.TextField(blank=True)
created = models.DateTimeField(auto_now_add=True)
tags = models.ManyToManyField('Tag', ... | [
"abhishek.ranjan@inmobi.com"
] | abhishek.ranjan@inmobi.com |
d6ee5dc1abe1d518d68ca2e2446b88515339d72a | 92cec18f145b71403d4c5511084a0da5fdeca9fb | /tests/test_bem_filesystem.py | 14ce83ae0635b4f6c0f08f8a41a49b1b55f6bac2 | [] | no_license | Zed-chi/bem_fs | 12b320861c5984df0a222a6f4548f30a3de2a78d | a013e4d31eddd343d35a5edb3f99ef36535c73d4 | refs/heads/master | 2022-11-06T17:16:05.292183 | 2020-06-30T05:22:42 | 2020-06-30T05:22:42 | 275,676,651 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 95 | py | from bem_filesystem import __version__
def test_version():
assert __version__ == "0.1.0"
| [
"zed-chi@mail.ru"
] | zed-chi@mail.ru |
a12343947c99a0584b18996596487918113884d1 | 255e19ddc1bcde0d3d4fe70e01cec9bb724979c9 | /all-gists/1360455/snippet.py | ff62eb5f770ed285b9b8fdc6e6f331c6b6e4e651 | [
"MIT"
] | permissive | gistable/gistable | 26c1e909928ec463026811f69b61619b62f14721 | 665d39a2bd82543d5196555f0801ef8fd4a3ee48 | refs/heads/master | 2023-02-17T21:33:55.558398 | 2023-02-11T18:20:10 | 2023-02-11T18:20:10 | 119,861,038 | 76 | 19 | null | 2020-07-26T03:14:55 | 2018-02-01T16:19:24 | Python | UTF-8 | Python | false | false | 3,727 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
# Done under Visual Studio 2010 using the excelent Python Tools for Visual Studio
# http://pytools.codeplex.com/
#
# Article on ideas vs execution at: http://blog.databigbang.com/ideas-and-execution-magic-chart/
import urllib2
import json
from datetime import datetime
from ti... | [
"gistshub@gmail.com"
] | gistshub@gmail.com |
d523298006de9cd021dfd6518d5dd86da298417b | 0ec88af9399ca8312cb408cb9b0344dd1c2fecee | /Program.py | 1538fea83915ee30f36b5d4e21e1aa2fe799dcb5 | [] | no_license | griselda-c/simulador-so-unqui | fad43e67b27897c6b65751b2654e4b5fe635ba79 | 970ab15a66e577d3ad304fcb89d4a79641653c3c | refs/heads/master | 2020-05-20T03:07:15.701394 | 2013-12-15T18:09:21 | 2013-12-15T18:09:21 | 32,224,746 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 277 | py |
class Program:
def __init__(self, nombre):
self.instrucciones = []
self.nombre = nombre
def addInstruction(self, instruccion):
self.instrucciones.append(instruccion)
def getCantInst(self):
return len(self.instrucciones) | [
"gil.maricruz@gmail.com@b104a250-5576-1979-6155-f292f37a00f3"
] | gil.maricruz@gmail.com@b104a250-5576-1979-6155-f292f37a00f3 |
23c0dd25543411644e979a4ed4368b85c6f49098 | 4dbaea97b6b6ba4f94f8996b60734888b163f69a | /LeetCode/8.py | 15f59ed2df0e448995c3a574ba4fa386c04f4725 | [] | no_license | Ph0en1xGSeek/ACM | 099954dedfccd6e87767acb5d39780d04932fc63 | b6730843ab0455ac72b857c0dff1094df0ae40f5 | refs/heads/master | 2022-10-25T09:15:41.614817 | 2022-10-04T12:17:11 | 2022-10-04T12:17:11 | 63,936,497 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 671 | py | class Solution(object):
def myAtoi(self, str):
"""
:type str: str
:rtype: int
"""
import re
minus = 1
if len(str) == 0:
return 0
str = str.strip()
i = 0
while i < len(str):
if i == 0 and (str[i] == '-' or str[i] ... | [
"54panguosheng@gmail.com"
] | 54panguosheng@gmail.com |
60ac5b982c6ac4f885ed6ab7e93cac1fc67dca17 | f0b03d244e9183e84d93330ae9fa9670d8177424 | /simple_posts_posts/models.py | bd3fda25076257523a4565caea220ca2a055bc71 | [] | no_license | humble9706/facebook | 6ad73e5bacd4bf9e891247ecebdd0dbfbca6277a | 65ef792e70d63c69ccde30656250c5f886ff3e1e | refs/heads/master | 2020-04-19T01:53:29.455771 | 2019-01-28T02:58:47 | 2019-01-28T02:58:47 | 167,885,058 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,709 | py | from django.db import models
from django.conf import settings
from django.utils.text import slugify
from django.urls import reverse
class Post(models.Model):
author = models.ForeignKey(
settings.AUTH_USER_MODEL, on_delete=models.CASCADE, related_name='posts')
date = models.DateTimeField(auto_now_add=T... | [
"toborehumble1997@gmail.com"
] | toborehumble1997@gmail.com |
65db9b7872898345eee84550ab79aa3f9bbe16ab | 6ed034d0a5e239d7b0c528b287451409ffb4a494 | /mmpose/datasets/samplers/__init__.py | da09effaf20fefe1a102277672b98db7d884f002 | [
"Apache-2.0"
] | permissive | ViTAE-Transformer/ViTPose | 8f9462bd5bc2fb3e66de31ca1d03e5a9135cb2bf | d5216452796c90c6bc29f5c5ec0bdba94366768a | refs/heads/main | 2023-05-23T16:32:22.359076 | 2023-03-01T06:42:22 | 2023-03-01T06:42:22 | 485,999,907 | 869 | 132 | Apache-2.0 | 2023-03-01T06:42:24 | 2022-04-27T01:09:19 | Python | UTF-8 | Python | false | false | 134 | py | # Copyright (c) OpenMMLab. All rights reserved.
from .distributed_sampler import DistributedSampler
__all__ = ['DistributedSampler']
| [
"annblessus@gmail.com"
] | annblessus@gmail.com |
90e3d98c642160749d50467ed3d5a92d56c97b3c | 461a9e33aa76cd6f82f7e5ff23a1fafdc9d76e68 | /apps/departamentos/models.py | e2db1ee50345f31cf5aff78650fd3680a27c2844 | [] | no_license | alex7alves/Gestao_rh | 9bea77a62ca22701555465dd291ee8322da95e16 | 83d7f65cdf1a253cc59e24306874a0d0139ef2ca | refs/heads/master | 2020-08-02T13:52:28.041087 | 2019-10-10T18:37:39 | 2019-10-10T18:37:39 | 211,376,157 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 195 | py | from django.db import models
class Departamento(models.Model):
nome = models.CharField(max_length=200, help_text='Nome do departamento')
def __str__(self):
return self.nome
| [
"alex7alves10@hotmail.com"
] | alex7alves10@hotmail.com |
41a05bf8566a0aaa78cd2a68971c5772b4e0c361 | 71fdffc6f4ed975d042073691960e554a2b76be0 | /Air Brush.py | 70ba0981586c27589e54a2deafc7f5fdb5bf4eca | [] | no_license | BhavyaShah1234/MyWholeImageProcessingFolder | 1abe4f1f35625daf5b0e532c4e285267cf90719e | fa8af03537c576c1c3661eb57a7346ab0db24f56 | refs/heads/main | 2023-04-05T00:25:24.932163 | 2021-04-08T07:04:04 | 2021-04-08T07:04:04 | 355,788,297 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,121 | py | import cv2
import numpy as np
frame_width = 800
frame_height = 600
brightness = 150
web_cam = cv2.VideoCapture(0)
web_cam.set(3, frame_width)
web_cam.set(4, frame_height)
web_cam.set(10, brightness)
my_colors = [[5, 107, 0, 19, 255, 255],
[133, 56, 0, 159, 156, 255],
[57, 76, 0,... | [
"noreply@github.com"
] | BhavyaShah1234.noreply@github.com |
052d38a9978790d336591664f52e5c60fcab85f1 | eb24f4e5ef940e6c1d1c45a9dcce4d78bb88e6a2 | /bin/info | ea8acf20e49bf7d7cce9770f4ad2b6c7b0ce3013 | [
"MIT"
] | permissive | eukaryote/knowhow | f7f8674a00f235a85945e51c4a3bc785e8db35e2 | 276439680e4075300d8001cae4f03d199f473991 | refs/heads/master | 2021-03-12T20:16:42.675120 | 2018-07-14T17:23:45 | 2018-07-14T17:23:45 | 19,190,738 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,317 | #!/usr/bin/env python
# vim: set ft=python: fileencoding=utf8
"""Show information about the knowhow index.
Usage:
info
info -h | --help
Options:
-h --help Show this screen.
"""
from __future__ import absolute_import
from __future__ import print_function
from __future__ import unicode_literals
from... | [
"sapientdust+github@gmail.com"
] | sapientdust+github@gmail.com | |
663eb729df9fd31227930e3361b2418b2f4d6d5c | 89cb1736c052c6ecd4028a57d23a92252427bce4 | /game_of_thrones_EDA.py | bb0faf9ce6d8c23cb057a8f8ad5be870eb543f44 | [] | no_license | lucascmbarros/game_of_thrones_dataset | 889c1b4c8e0edba280dac459896390ef2ad94891 | a8febe918998e490502fa5903904c2583c37f829 | refs/heads/master | 2020-05-04T06:25:48.268120 | 2019-04-08T01:25:50 | 2019-04-08T01:25:50 | 179,005,703 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,128 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Mar 20 16:26:49 2019
@author: lucas.barros
Assignment 2: Game of Thrones predictions
"""
#################################
# Basic libraries
#################################
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
import seaborn as sns
#####... | [
"noreply@github.com"
] | lucascmbarros.noreply@github.com |
5430ad132d8586b098a6dbb7f055a06b6339da62 | e1db880dc68e16b6947cc6920643245ae37a7cdd | /Kinematics/Forward_and_Inverse_kinematic.py | 187e10f8e6fefc64613f3d5a05bb2568be1964c6 | [] | no_license | zhezhou1993/Germian_Spp2 | 872ceddd7c8e60a452c23dd5b940e693b2dc5223 | 22c269c3368cc60a8ed0fde5a20d036231d0c337 | refs/heads/master | 2020-12-07T15:38:43.352777 | 2015-12-15T05:43:14 | 2015-12-15T05:43:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,655 | py | __author__ = 'germain'
'''The code is developed to control the stepper motor for SPP2 project IK testing'''
#Import severl libraries
from ctypes import *
import sys
from time import sleep
#Phidget specific imports
from Phidgets.PhidgetException import PhidgetErrorCodes, PhidgetException
from Phidgets.Events.Events imp... | [
"zhemingzhou1993@gmail.com"
] | zhemingzhou1993@gmail.com |
db1fb4aa9d6bf0b1533d816eb6bf74d058a13110 | c4c9ba3dbde9a318204e49a77de38a07d2961a8b | /simpleserver.py | cac0fa3df5788b2e520c2599a72b5f991ac5f9ed | [] | no_license | kkingsbe/RealMultiplayer | 9db5b1ddd4f718ce68f889cc725755974f9e1dcf | e6c3540dfa214612ae1c73e208acd1c7858f0a48 | refs/heads/master | 2020-04-22T13:47:25.468029 | 2019-02-13T02:03:36 | 2019-02-13T02:03:36 | 170,421,728 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 498 | py | import socket
TCP_IP = socket.gethostname()
TCP_PORT = 5005
BUFFER_SIZE = 20 # Normally 1024, but we want fast response
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.bind((TCP_IP, TCP_PORT))
s.listen(1)
conn1, addr = s.accept()
conn2, addr2 = s.accept()
print('Connection address:', addr)
print('Connectio... | [
"kkingsbe@gmail.com"
] | kkingsbe@gmail.com |
2fa3661ab59e5734ac5281fdfa08bbe6a00af969 | 91a65c33d13725771923de5cb54a70d10fe41733 | /companies/migrations/0005_permission_permission_role.py | 39c1b9385b8db1d7df3fc6f00765a6274bc9c7d5 | [] | no_license | georgid/Curation_Users | abdd87185a01f70b0c398cffa6aabbf05f4dc2fb | 847d4c7994cef02e0db6e7690fcb022ed0d64dff | refs/heads/master | 2022-05-18T01:31:55.049727 | 2019-06-14T13:25:09 | 2019-06-14T13:25:09 | 191,642,065 | 0 | 0 | null | 2022-04-22T21:32:37 | 2019-06-12T20:45:57 | Python | UTF-8 | Python | false | false | 1,316 | py | # Generated by Django 2.2.2 on 2019-06-12 16:11
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('companies', '0004_user_company_role'),
]
operations = [
migrations.CreateModel(
name='Permissio... | [
"georgi.dzhambazov@upf.edu"
] | georgi.dzhambazov@upf.edu |
db9a51144909d05cfba1634f7a1f9dcf311d3051 | 574d762df232da167fead513b45ef5a60c2de76c | /OperationsA/MyFunctions/Interpolations/newt.py | 98a112b40cc844281f4205f03558358c18bac887 | [] | no_license | yogabbagabb/PythonProjects | e703012952327b15e304756e07640b09a4480054 | 8bc1af491bd63fff78906efe1e8e65d4bbcc8ac1 | refs/heads/master | 2021-01-10T01:10:07.730718 | 2017-02-09T14:05:36 | 2017-02-09T14:05:36 | 45,813,242 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 809 | py | '''
Created on Jan 20, 2016
@author: ahanagrawal
'''
'''
A two dimensional interpolation scheme that uses newton's divided difference
approach
The one dimensional matrix passed should contain all evaluations of
f(x) for all x of interest
'''
def makeCoefficients(a, x):
length = len(a)
for k in ... | [
"aahanagrawal123@gmail.com"
] | aahanagrawal123@gmail.com |
25ddfc25649e4f32fa7aca616751c0df603fbaa6 | d0705ffafbb53129bce83520e4a07362e1be8ff5 | /Auswertungskript.py | 0124a46447ab11271a7b82487a3337b99e0c2e8e | [] | no_license | rasefix/Semi-Stuff | 9d97bdb02bf052dc3fe210042e0cca1bad175fcf | f65556860971a90b8f8d4627fbea18fb057a14c5 | refs/heads/main | 2023-03-23T07:13:57.807010 | 2021-03-16T14:33:33 | 2021-03-16T14:33:33 | 348,387,474 | 0 | 0 | null | 2021-03-16T14:54:37 | 2021-03-16T14:54:35 | null | UTF-8 | Python | false | false | 489 | py | import openpyxl
a=0
b=2
while a==0:
temp=int(input("Temperatur:"))
konz=int(input("Konzentration:"))
if konz==5:
a=1
print("Messvorgang abgeschlossen")
else:
fileXLSX = openpyxl.load_workbook("Auswertung.xlsx")
sheet = fileXLSX["Tabelle1"]
sh... | [
"noreply@github.com"
] | rasefix.noreply@github.com |
cd5d5b7af45e4e5c60a22b93e77ccd89fdd61255 | 5c24336c033b5dd02f1022f9da3f0aee670c5b2f | /MATLAB Installed/BIDS_resources/P032_EX2/Code/ElenaPreviewFinal.py | bb55e5c402ef3364ccbf855c98da957eda11c730 | [
"CC0-1.0"
] | permissive | JohnTyCa/The-SPN-Catalogue | ab29e39ad42a1793f38448ac018dcf4918935013 | 75e729f867c275433b68807bc3f2228c57a3ccac | refs/heads/main | 2023-08-30T06:31:35.726302 | 2022-05-16T14:17:39 | 2022-05-16T14:17:39 | 321,381,577 | 2 | 0 | CC0-1.0 | 2022-05-16T14:17:40 | 2020-12-14T14:56:49 | Python | UTF-8 | Python | false | false | 14,562 | py | from numpy import * #many different maths functions
from numpy.random import * #maths randomisation functions
import math, numpy, random
import numpy as np
from psychopy import gui, visual, core, data, event, clock, sound
import os # handy system and path functions
import visualExtra
import serial, time
#ser = serial... | [
"hljtyson@liverpool.ac.uk"
] | hljtyson@liverpool.ac.uk |
40f876fcc02752f5a490da1b62c9a5389df9746a | ef7984977e3470081339df3bee9105c16c79421d | /p1/app/__init__.py | 949fc65c867b0efb44713cc4f4d5a5fad74f89a9 | [] | no_license | stevenhughes08/PiBlog | d145d29f91161c401ce29da344159e8b2bd36264 | 9c93083d9bff4fe69116886d5c6d19ee917ec0a3 | refs/heads/master | 2020-12-01T15:53:38.627025 | 2020-01-03T03:06:57 | 2020-01-03T03:06:57 | 230,689,194 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 261 | py | from flask import Flask
from config import Config
from flask_sqlalchemy import SQLAlchemy
from flask_migrate import Migrate
app = Flask(__name__)
app.config.from_object(Config)
db = SQLAlchemy(app)
migrate = Migrate(app, db)
from app import routes, models
| [
"stevenhughes08@gmail.com"
] | stevenhughes08@gmail.com |
3aadb545d1e1259b22bd9d6ea8c2d056aa0dfaf5 | 8360a692a74be829cdbfd1d32a62f32633fe5c58 | /assignments/mydecrypt.py | 57555ca7fb04d5bb9b42122a5e1fd5f0b685a695 | [] | no_license | SimonJinaphant/Programming-11-Python | ef3fbd004d916ae161d8fda31f20a7ac4088b193 | 97c056f47ac598e703bc5dc4078966760770f232 | refs/heads/master | 2016-09-05T14:07:39.697568 | 2014-08-28T21:10:44 | 2014-08-28T21:10:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 460 | py | from sys import argv
with open(argv[1],'r') as f:
encrypted_data = [encoded.decode('utf-8')[:-1] for encoded in f.readlines()]
uncrypted_data = []
for s, sentence in enumerate(encrypted_data):
uncrypted_data.append(list())
for i, letter in enumerate(sentence):
#print letter
uncrypted_data[s].append(unichr((ord... | [
"symon.jin@gmail.com"
] | symon.jin@gmail.com |
fd95d5fbefacb5b37e09b549986f43d521ae44a2 | 21fec19cb8f74885cf8b59e7b07d1cd659735f6c | /chapter_8/dlg-custom.py | b1338fb1bb4b149b6737cc31b65a691d7ecc67ba | [
"MIT"
] | permissive | bimri/programming_python | ec77e875b9393179fdfb6cbc792b3babbdf7efbe | ba52ccd18b9b4e6c5387bf4032f381ae816b5e77 | refs/heads/master | 2023-09-02T12:21:11.898011 | 2021-10-26T22:32:34 | 2021-10-26T22:32:34 | 394,783,307 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,298 | py | "Custom Dialogs"
'''
Custom dialogs support arbitrary interfaces, but they are also the most complicated to
program. Even so, there’s not much to it—simply create a pop-up window as a
Toplevel with attached widgets, and arrange a callback handler to fetch user inputs
entered in the dialog (if any) and to destroy the wi... | [
"bimri@outlook.com"
] | bimri@outlook.com |
06e0a0b0461ac2a9d3ce0c4a8a28f8a13dbfd295 | bbf82010b3dab5ba35331d15166750818bf22b37 | /experiment_1.py | 70a1cb22e4e88318831113a5ff0c125ad123d8e0 | [] | no_license | seregichevks/Diploma-Instacart-Market-Basket-Analysis | 889d068fd5be1c48c3fcbc7d7e58af1b771d58b9 | 3771add03e2d488df8fb8fdb19a9785be7bfc7cd | refs/heads/master | 2023-07-05T07:46:34.480429 | 2021-08-24T04:57:02 | 2021-08-24T04:57:02 | 399,338,596 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 42 | py | print('Hello world')
print('Hello world')
| [
"seregichevks@yandex.ru"
] | seregichevks@yandex.ru |
1f29a592c39022e79242a176b8638f31728d0fba | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_207/190.py | 4ea85e66ef60f663dfa02f1f700dbd13bd15454c | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,505 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from heapq import *
def read_ints():
return list(map(int, input().split()))
def solve(t):
N, r, o, y, g, b, v = read_ints()
if r == g != 0:
if o or y or b or v:
print('Case #{}: IMPOSSIBLE'.format(t))
else:
print('Case #... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
7249e9e066e96a76e820a257252789e68f35d811 | 3c8155ad1e44047b17231358d8a4f0df0ea8bfee | /Code/xNNs_Code_030_CIFAR_ResNetV2b.py | 1ed9a7c92cdb9d168304a3fb8a457b460a1ba12e | [] | no_license | nambiarvijay/UT-Dallas-CS-6301-CNNs | 91aab77f34797cdaa9e4aa216fc5c3daea8ea1e5 | d14039133cac9555e2e885fedd8e68c172a01623 | refs/heads/master | 2020-09-28T05:15:16.783852 | 2019-12-05T03:50:55 | 2019-12-05T03:50:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 22,352 | py | ################################################################################
#
# xNNs_Code_030_CIFAR_ResNetV2b.py
#
# DESCRIPTION
#
# TensorFlow image classification using CIFAR using a ResNetV2 based encoder
# with 2x the number of channels per layer relative to the ResNetV2 implemented
# in xNNs_Code_030... | [
"arthurredfern@gmail.com"
] | arthurredfern@gmail.com |
3c095e405dc9ba2dd6771525f204117aed97ec9e | 01d2b2d99391c07c9e0bb3e2ce86db436c79f31b | /sgav/cars/forms.py | 133a63b1c44a702e9b1b75f37e60185849aa2ae4 | [] | no_license | daynaoliveira/sgav | 40b17b63fb58ac50f6aeed05de6ea75b0726caa0 | c4eae79cbe57737196d1af8197e878594655a797 | refs/heads/main | 2023-08-11T18:04:32.397912 | 2021-09-23T13:51:02 | 2021-09-23T13:51:02 | 358,619,279 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 244 | py | from django import forms
from django.db import models
from django.db.models import fields
from .models import Car
class CarForm(forms.ModelForm):
class Meta:
model = Car
fields = ('marca', 'modelo', 'placa', 'ano', 'cor')
| [
"nah.olliiver.p@gmail.com"
] | nah.olliiver.p@gmail.com |
6f93021be2e728eb052b23276ba667565f0f0bb7 | 872ea32f551c803ac497a38667dc272965246561 | /tensorflow_transform/gaussianization.py | 320acb6f67fcda13b616b72cb43fb36c878774ab | [
"Apache-2.0"
] | permissive | tensorflow/transform | 5c4d74c15e7a13ef0901816dfe35b0901d6cb1da | d2bfc2640137324dcad7f7be365e6c851c01f4e9 | refs/heads/master | 2023-08-31T21:54:54.222760 | 2023-08-15T22:45:45 | 2023-08-15T22:46:20 | 81,509,390 | 1,030 | 267 | Apache-2.0 | 2023-08-11T22:57:56 | 2017-02-10T00:36:53 | Python | UTF-8 | Python | false | false | 13,792 | py | # Copyright 2020 Google Inc. 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 applicable law or a... | [
"tensorflow-extended-team@google.com"
] | tensorflow-extended-team@google.com |
e1532be4269f8b27ab7e841cbb3e5b0bc6319f50 | 3fe4fad8082c8102d0700c95375248e5a08d83b7 | /venv/Scripts/easy_install-script.py | 6369f54400da4bdf1782e963bd194216674f451f | [] | no_license | marvelmagnum/lehavre | 8c1cba6a640aa018af8071a446b5ec780c809480 | 9bbbf0c0d253e29aabdb179ddbda917cb23f44a2 | refs/heads/master | 2021-06-14T12:12:17.816414 | 2021-02-24T23:01:01 | 2021-02-24T23:01:01 | 154,767,698 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 451 | py | #!"D:\Projects\PyCharm Projects\Le Havre\venv\Scripts\python.exe"
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==39.1.0','console_scripts','easy_install'
__requires__ = 'setuptools==39.1.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\... | [
"marvel_magnum@yahoo.com"
] | marvel_magnum@yahoo.com |
d56af36783dc15d48fb3fb5238e7be00ed6cda35 | ca76a15c1ecdeb848683bc3b58e849f08a639b8b | /src/main/scala/com/ww/sparksql/statproject/datasource/GenNetAccessLog.py | c5d9e3d08533fb4dd4cac13046179474e607e25b | [] | no_license | l838224553/Spark | b8bd422f5fa9f0554fdba6646b8ca8659ce0600c | 45046eec63c04062590e5e03cdfffb6ed968d8ef | refs/heads/master | 2022-07-22T09:14:30.984045 | 2020-05-14T08:34:23 | 2020-05-14T08:34:23 | 261,978,226 | 0 | 0 | null | 2020-05-07T11:14:24 | 2020-05-07T07:18:22 | null | UTF-8 | Python | false | false | 2,840 | py | #!/usr/bin/python
# -*- coding: UTF-8 -*-
import random
from random import randint
import time
__author__ = "wwcom123"
# 【数据流--1】:数据源
# 为后面统计结果观察验证方便,只生成某个月,某几天的数据
month = ["DEC"]
day = list(range(24, 27, 1))
hour = list(range(10, 24, 1))
minute_second = list(range(10, 60, 1))
# 4位IPV4地址范围
ip_slices = list(range(... | [
"wwcom614@qq.com"
] | wwcom614@qq.com |
743de3c696a558a9760587dc5f60b5a9a95f1bec | f5c4c04eb97875edea44ad3fa2fa07dcd40b031b | /tic-tac-toe/TicTacBoard.py | 426ef67c996a3cd66218dea548e62dda50f6297e | [
"MIT"
] | permissive | gurjaspalbedi/reinforcement-learning | 62a4ce688e12a514cfe2b4790343bafd3c21502b | fcdd2b27500012f62cd0199614cfe71d2669e350 | refs/heads/master | 2020-04-17T19:46:17.875657 | 2019-02-19T02:07:21 | 2019-02-19T02:07:21 | 166,877,829 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 931 | py | import numpy as np
class TicTacBoard:
def __init__(self, board_size: int):
"""Initializing the board with size of the board
Parameters
----------
board_size : int
Size of the board
"""
self.board_size = board_size
def print_boar... | [
"gurjaspal.bedi@gmail.com"
] | gurjaspal.bedi@gmail.com |
1ced0778202d32bf5b35354803964d6939afc6ea | 9ac35a2327ca9fddcf55077be58a1babffd23bdd | /cadence/tests/test_errors.py | 6921b0a8d11e06f2d032e6cc1b4e6d0ef653cd7c | [
"MIT"
] | permissive | meetchandan/cadence-python | f1eb987c135f620607a62495096a89494216d847 | cfd7a48e6da7c289c9ae0c29c94d12d2b05986e4 | refs/heads/master | 2022-12-14T12:46:32.364375 | 2020-09-16T15:50:55 | 2020-09-16T15:50:55 | 260,763,097 | 1 | 0 | MIT | 2020-09-16T15:48:14 | 2020-05-02T19:47:56 | Python | UTF-8 | Python | false | false | 1,347 | py | from unittest import TestCase
from cadence.errors import find_error, InternalServiceError, WorkflowExecutionAlreadyStartedError
from cadence.thrift import cadence_thrift
class TestError(TestCase):
def setUp(self) -> None:
self.internalServiceError = cadence_thrift.shared.InternalServiceError("ERROR")
... | [
"firdaus.halim@gmail.com"
] | firdaus.halim@gmail.com |
90a7d506005f37668732ce2fbb68a6b27cd2b486 | f2e02a00604fcb52b7992535ad4e87f5368cb4a7 | /Entrega 6/INV_LLENAS.py | 5819f2385238e7dbbc66f1949998e6c7aef89e39 | [] | no_license | RobertoVergaraC/MCOC2021-P0 | 10cfdd36d703fe15d7ff765fdd1a44d379f4303a | c382cf2c158d5eb62a20708c58e1acdff3be1820 | refs/heads/main | 2023-07-14T20:38:47.824249 | 2021-09-02T23:24:05 | 2021-09-02T23:24:05 | 392,005,950 | 0 | 0 | null | 2021-08-02T15:43:35 | 2021-08-02T15:43:34 | null | UTF-8 | Python | false | false | 1,467 | py | from time import perf_counter
from numpy import zeros, logspace
from numpy import half, single, double, longdouble
from scipy.linalg import inv
def laplaciana(N, dtype):
A = zeros((N,N), dtype = dtype)
for i in range(N):
A[i,i] = 2
for j in range(max(0,i-2),i):
if abs(i - j) == 1:
A[i,j] = -1
A[j,i] =... | [
"ravergara@miuandes.cl"
] | ravergara@miuandes.cl |
965030f98fd33df2b8b068d3b56296d7ed67e5ce | 4fe81fa43d484334fd4045ab854c60935d423c07 | /auth/resources/list_all_users.py | d4aacec33dad4640ab1434ad7c84c076e3fb9cfb | [] | no_license | krish9191/Auth_process | 7fdf5bf2504f2cb8bbd6266f3d542e2f3206a711 | cf35e49b6e43f8ac13e487aad3df795ee1ccb89b | refs/heads/master | 2023-06-30T03:15:28.962742 | 2021-08-08T09:10:25 | 2021-08-08T09:10:25 | 361,009,473 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 220 | py | from auth.manager import list_users
from flask_restful import Resource
from decorators import admin_required
class UsersList(Resource):
@classmethod
@admin_required
def get(cls):
return list_users() | [
"krishnatiwari9191@gmail.com"
] | krishnatiwari9191@gmail.com |
6f15b015cc568d504c63e07a6f239f77a6181e82 | 9127f61210d9dfc011cdd7159d1a61573d1c5f0f | /BUCEALoginner/bucea_loginner.py | e55b2459ebea19847a30cab0e5943cc813c88455 | [] | no_license | YuhangJi/daily | 1a69c97736fb8d060e7a992701a5f25cbbe41564 | 23a3f761e2293e7ac77140a7e7b31b6274fee866 | refs/heads/master | 2023-02-06T05:16:46.582895 | 2020-04-19T22:45:50 | 2020-04-19T22:45:50 | 256,724,517 | 0 | 0 | null | 2021-01-02T01:48:30 | 2020-04-18T10:24:24 | Python | UTF-8 | Python | false | false | 7,802 | py | # -*- coding: utf-8 -*-
import time
import random
import argparse
import urllib.error
import urllib.parse
import urllib.request
import http.cookiejar
class BuceaLoginner:
"""
2020年4月18日
"""
url_dict = {"get_url": "http://10.1.1.131:903/srun_portal_pc.php?ac_id=1&",
"post_url": "http:/... | [
"723110150@qq.com"
] | 723110150@qq.com |
a6cb9926ae305eeb61a1736944a2a2d904e853d9 | dd6385ef2b1ab63c7142d0a6c317c57aa1865b24 | /Estimating_the_root.py | 6820d4a098c5d9f08327d3f34e859cf7bdd3cfe2 | [] | no_license | sam505/Roots-of-all-Positive-Numbers | 1d43cbaf8cf2fc0bfd7276f7b0abf449b8f4c0e6 | ff99fa1f63912883ed7d90958f5baf0187c42105 | refs/heads/master | 2022-07-15T21:12:41.658937 | 2020-05-13T10:50:35 | 2020-05-13T10:50:35 | 263,601,539 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,022 | py | number = input("Enter the number to get the square root: ")
root = input("Enter the root you want to get: ")
number = int(number)
root = int(root)
estimate = 0
solution = 1
solution_one = 1
while (solution <= 0 and solution_one <= 0) or (solution >= 0 and solution_one >= 0):
estimate += 1
solution = ((estimate... | [
"noreply@github.com"
] | sam505.noreply@github.com |
d06381214dffd354dcc274beac64acf7506eacb1 | 5cdac410e331d90aba43cb84f6c2e5df27e45067 | /20191024_01.py | 5925477a286ab0c96bf0274f7e156166944a04b2 | [] | no_license | IngvarRed/circle_python_2019 | 2aef1c4a48636eda74dd66ff53434a3aa2ba615d | 4056536dee250a961ef6c4b18564c3088c5e990c | refs/heads/master | 2020-08-05T16:53:54.660536 | 2020-01-10T00:01:51 | 2020-01-10T00:01:51 | 212,623,059 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 173 | py | # 2d index
matrix = []
for i in range(5):
matriy = []
for j in range(5):
matriy.append(i + j)
matrix.append(matriy)
print(matrix)
print(matrix[2][4])
| [
"igor.bilinskyy@gmail.com"
] | igor.bilinskyy@gmail.com |
81ffe4f0c99da01a74045b38ea2219a0ae603926 | c9c1280de0467b66c346211eaedc2065b6633e4f | /request/forms.py | 8e0d0e25875872132cf37e7432788c2de89575c1 | [] | no_license | myklll/ehub | 1d4cdba50617d7b8ecd848285fa57e589db716cb | 8d697afe125cdd7e85fce8116fc86a2e216d48d4 | refs/heads/master | 2021-10-07T10:02:16.838681 | 2016-05-07T07:41:04 | 2016-05-07T07:41:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 628 | py | from django import forms
from django.forms.models import inlineformset_factory
from .models import Request
from inquiry.models import *
class RequestForm(forms.ModelForm):
class Meta:
model = Request
exclude = ("listing","owner",)
#event = forms.ModelChoiceField(queryset=Inquiry.objects.filter(owner=kwargs.po... | [
"adeyerimichael@gmail.com"
] | adeyerimichael@gmail.com |
47dd4b0d0b97967cfa1f6829d045d33383c9b932 | 96796bca1f00c5af89c695ff51691e977fda262c | /myEnvironments/multipleApps/multipleApps/urls.py | 1e1daa59868f00d10f30a34bb8adb6c29c2d563a | [] | no_license | LexiPearl/Python-Projects | 5be7ecb11ff7e332daf7b92d23e183511b67444c | c76ce5611d8abd8dfcdea24051cbdfe705a98ffd | refs/heads/master | 2021-01-19T11:35:50.624237 | 2017-04-28T04:13:13 | 2017-04-28T04:13:13 | 87,978,405 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 913 | py | """multipleApps URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.10/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')
Cla... | [
"lexipearl91@gmail.com"
] | lexipearl91@gmail.com |
f7c737ab5e9d924e1b8a4a35509a8b3f94a95ce0 | faf757527d9ba073da7bceeb74055eac2e980295 | /APKHelper.py | 3a761e2a9837600eb6fa362495ca1d8b6c9f97be | [] | no_license | bx-lr/android_static_dynamic_apk_test | e86832e7ab46c56361344ba316fb77da69e6d81e | 98017e470f9d7f97e4c0ce82c91a03a76d67e14d | refs/heads/master | 2022-04-26T07:54:42.756345 | 2020-04-22T16:16:21 | 2020-04-22T16:16:21 | 257,955,191 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,262 | py | #!/usr/bin/python
'''
Load APK into Database
'''
from DatabaseHelper import DBHelper
from StringIO import StringIO
import zipfile
import base64
import os
import traceback
class APKHelper():
def __init__(self, path):
self.path = path
self.db = None
self.emu = None
self.adb = None
self.load()
def load(sel... | [
"jmitchell@accuvant.com"
] | jmitchell@accuvant.com |
004458cf3c40d7c96286fba9e9405e34a77ca100 | 94a3acf9fd3ab4406787929d6266076191534455 | /Exams/Midterm/Midterm Submission/Question1.py | c5ef6b123609d265e2a5216543729f9c9b777928 | [] | no_license | brandon-rowe/Python | fec4c3fec2fb9a6b37ead3db9fc2a3c3173be194 | c405cefc02a25db4d3fdf3643383a47097a3e5ea | refs/heads/master | 2023-05-25T16:32:46.829690 | 2023-04-06T01:49:23 | 2023-04-06T01:49:23 | 171,032,591 | 0 | 2 | null | 2023-05-23T04:12:39 | 2019-02-16T17:42:59 | HTML | UTF-8 | Python | false | false | 459 | py | # Change Counter
def main():
_change = int(input("Please enter an amount between 0-99: "))
_quarters = _change//25
_change = _change%25
_dimes = _change//10
_change = _change%10
_nickels = _change//5
_change = _change%5
_pennies = _change//1
pri... | [
"browe47@gmail.com"
] | browe47@gmail.com |
f9c962a39baa75c624eed77ea4bb3ed83b1d85ba | 4851d160a423b4a65e81a75d5b4de5218de958ee | /Number Format.py | 63d6f6c7b330bb5a08ff5f80773c51da98bf8514 | [] | no_license | LarisaOvchinnikova/python_codewars | 519508e5626303dcead5ecb839c6d9b53cb3c764 | 5399f4be17e4972e61be74831703a82ce9badffd | refs/heads/master | 2023-05-05T14:52:02.100435 | 2021-05-25T18:36:51 | 2021-05-25T18:36:51 | 319,399,343 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 273 | py | # https://www.codewars.com/kata/565c4e1303a0a006d7000127
def number_format(n):
sign = "" if n >=0 else "-"
n = str(abs(n))
if len(n) <= 3: return sign+n
s = []
while len(n)>0:
s.append(n[-3:])
n = n[:-3]
return sign+",".join(s[::-1]) | [
"larisaplantation@gmail.com"
] | larisaplantation@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.