blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
2
283
content_id
stringlengths
40
40
detected_licenses
listlengths
0
91
license_type
stringclasses
2 values
repo_name
stringlengths
3
135
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringlengths
4
68
visit_date
timestamp[ns]date
2015-07-25 20:53:29
2023-09-06 10:46:05
revision_date
timestamp[ns]date
1970-01-01 00:00:00
2037-05-03 13:00:00
committer_date
timestamp[ns]date
1970-01-01 00:00:00
2036-02-09 17:40:36
github_id
int64
1.61k
691M
⌀
star_events_count
int64
0
209k
fork_events_count
int64
0
110k
gha_license_id
stringclasses
24 values
gha_event_created_at
timestamp[ns]date
2012-06-03 10:21:33
2023-09-14 21:59:50
⌀
gha_created_at
timestamp[ns]date
2008-03-27 23:40:48
2023-09-13 22:40:33
⌀
gha_language
stringclasses
250 values
src_encoding
stringclasses
27 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
6
10M
extension
stringclasses
289 values
filename
stringlengths
1
218
content
stringlengths
6
10M
45f96736cd1c0fd5208cf39b8f7e03bb7863d19e
f20e965e19b749e84281cb35baea6787f815f777
/LHCb/Phys/LoKiGen/python/LoKiGen/trees.py
a58b2732a3b229d9611dde1b86f331fef04a63de
[]
no_license
marromlam/lhcb-software
f677abc9c6a27aa82a9b68c062eab587e6883906
f3a80ecab090d9ec1b33e12b987d3d743884dc24
refs/heads/master
2020-12-23T15:26:01.606128
2016-04-08T15:48:59
2016-04-08T15:48:59
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,973
py
trees.py
#!/usr/bin/env python # ============================================================================= ## @file functions.py LoKiGen/trees.py # The set of basic decorator for Tree-objects from LoKiPhys library # The file is a part of LoKi and Bender projects # # This file is a part of LoKi project - # "C++ T...
fa3e30b2a4e0cbe31deca5cdbdc673b0c713f75f
b610543247dff3c760278c2249beac8c88d264bd
/juegodecarros.py
b627f268153845981651ed90009d6bc3231757b7
[]
no_license
Zhyex/reto_tecnico
d3124dae11bbea204cfd63e9d8ddbfa7cc2b16e0
3cf833de6b14e19a8c6a144b2b84315428aa602c
refs/heads/master
2023-06-06T04:30:56.814519
2021-07-05T21:05:12
2021-07-05T21:05:12
383,262,290
0
0
null
null
null
null
UTF-8
Python
false
false
2,990
py
juegodecarros.py
# -*- coding: utf-8 -*- """ Created on Fri Jul 2 17:17:44 2021 @author: Camilo """ from random import randint from objetosjuego import * class Carro: def __init__(self,jugador,f1): self.jugador=jugador self.f1=f1 # Dist_Pistas={'Monza':4.1, # 'Bahrein':5.4, # 'Port...
f9ea14c92034e552d76f11680a3ffad56a8d48f6
8f7615603d4d923fd2cda41a2105b85b596ab4c5
/leetcode/medium/103-Binary_tree_zigzag_level.py
200937766d201f11944883b9ae16dfdbbe866b55
[ "MIT" ]
permissive
shubhamoli/solutions
e7ec922047c16cfdc10070aa5b884a278b12d8c5
5a24fdeb6e5f43b821ef0510fe3b343ddda18f22
refs/heads/master
2021-01-05T04:13:35.302613
2020-06-27T18:28:18
2020-06-27T18:28:18
240,875,585
1
0
null
null
null
null
UTF-8
Python
false
false
1,266
py
103-Binary_tree_zigzag_level.py
""" Leetcode #103 """ from typing import List from collections import defaultdict, deque # Definition for a binary tree node. class TreeNode: def __init__(self, val=0, left=None, right=None): self.val = val self.left = left self.right = right class Solution: def zigzagLevelOrde...
d9f51b1813456d351af60b5e8ee4897e871351fa
af6dcdc8243be85cfb3b0bd9f0c6921233f1dafe
/yardstick.py
81bfa19bfba0cc16d37f72f5c8b30637699403e6
[]
no_license
minkione/rf1101se-teensy
26a1769cb5ed758d352ca37daa39ccd5097924c1
0ee3eb1542db019f6fb225dfb4994ad933cac21f
refs/heads/master
2020-03-28T20:45:05.316049
2017-02-26T12:33:37
2017-02-26T12:33:37
null
0
0
null
null
null
null
UTF-8
Python
false
false
751
py
yardstick.py
from rflib import * import sys # Accessing RF registers #hex(ord(d.peek(PKTCTRL1))) def init(d): #d.setMdmModulation(MOD_ASK_OOK) d.setMdmModulation(MOD_GFSK) d.setEnableMdmManchester() d.setFreq(433000000) d.setMdmSyncMode(2) d.setMdmSyncWord(0xEEEE) d.setMdmDRate(1500) #d.makePktFLEN...
07947551ca7b0dca607c699c7f9b6f8f2a23885b
cbd1c52de6cd45208ecce076c238dfc75cebd70a
/core_test/base/test_base.py
30ef30767c7d369fcc2f4485e4fa1fe47cf0b91e
[ "Apache-2.0" ]
permissive
enterpriseih/distributed-realtime-capfaiss
2e20cad0c788c0700df948b6a46be52d91ac5b9b
3346f540b6c9d17a6be446fefa8c9b79164929d9
refs/heads/main
2023-08-16T20:30:20.807161
2020-12-11T02:50:41
2020-12-11T02:50:41
null
0
0
null
null
null
null
UTF-8
Python
false
false
647
py
test_base.py
# -*- coding: utf-8 -*- import json import numpy as np http = 'http://localhost:8088' headers = { 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.103 Safari/537.36', 'content-type': 'application/json', 'charset': 'UTF-8', } class NpEncoder(json...
b0860e71d778c63880b54bc1d4eeccf6484225bc
2598d5743f607c329b9cdfe7394f44ca7090fd76
/masky/tests/conftest.py
c9ca3a59ad2da2551f939ce20adcfa8555b97419
[]
no_license
clydewu/challenge
b2070bf87269a9fe1298754019d4e90751487484
b718e66f7a65ab8f39c56637f9db97ca77b5a6f1
refs/heads/master
2020-04-25T04:03:02.314395
2018-07-29T05:00:07
2018-07-29T05:00:07
172,497,582
0
0
null
null
null
null
UTF-8
Python
false
false
1,602
py
conftest.py
# -*- coding: utf-8 -*- import os import csv import tempfile from masky import create_app import pytest from masky.mongo_db import DEF_CONF from masky.mongo_db import KEY_DB_NAME from masky.mongo_db import get_client def pytest_addoption(parser): for conf in DEF_CONF.values(): parser.addoption('--%s' ...
2735abc9492eb1d18ded46fd3c1976b446dc3522
c4ca2cc5100a8fae39d753e515caa734bccb7ffe
/프로그래머스/level2/가장큰수.py
5f12c3edf1f6ad3372aeed5ca7a763a3a313d797
[]
no_license
chaeshee0908/BOJ-Programmers
4fe7b0897487a606e1ef2b19794b2e507fdde5e7
0dca2ed858f5d0204141fd2bec4040f9aac81646
refs/heads/master
2023-08-16T11:02:52.894308
2021-10-10T13:20:20
2021-10-10T13:20:20
388,769,874
1
0
null
null
null
null
UTF-8
Python
false
false
522
py
가장큰수.py
# 정렬 def solution(numbers): check = 0 # numbers가 0으로만 되어있을 경우 for number in numbers: if number != 0: check = 1 if check == 0: return '0' numbers = [str(number) for number in numbers] numbers.sort(key=lambda x : x*3, reverse=True) # number은 1000이하의 숫자이기 때문에 최댓값 생각해서 ...
269285911c9158407ab4178ab7afe9aa83203206
81321a4767c5b7ddc73269e2c3c697a3d1506b56
/controller.py
ba5dff60ec3cb021712eef5fc505c50961375bf8
[]
no_license
kshitij9969/DVD_Inventory_App
8918577dce4c2c653747f3e529bb28e33463d091
17bad2ed0a80f6a474a40ca16e3ecbef1de3f220
refs/heads/master
2022-11-28T09:54:17.100875
2020-08-01T07:30:35
2020-08-01T07:30:35
284,211,103
0
0
null
null
null
null
UTF-8
Python
false
false
2,400
py
controller.py
import mysql.connector db = '' def setup(): global db db = mysql.connector.connect( host='localhost', user='root', password='Mumbai@123', db='dvddb' ) def add(TITLE, STAR_NAME, YOR, GENRE): setup() global db cursor = db.cursor() query = 'INSERT INTO DVD_T...
3b27a2503fb5c151a7ea572101b6d188130f6f04
41b09292ed00efbc41a9999956a0c775b66028d0
/example.py
f3ab67e0dc4c2724fed13f25e5f7a20130e319b2
[ "MIT" ]
permissive
lixiaoyu0575/py-bwr
cbd317d2544293afd90a1c48cacab405111b6755
3552795298b343a42d38d5a33a9f302af3d1db4c
refs/heads/master
2022-01-12T08:11:29.216406
2019-07-12T15:57:10
2019-07-12T15:57:10
null
0
0
null
null
null
null
UTF-8
Python
false
false
714
py
example.py
import bwr import matplotlib.pyplot as plt import numpy as np # Read input csv file from physionet f = open("samples/1.csv", "r") lines = f.readlines() f.close() # Discard the first two lines because of header. Takes either column 1 or 2 from each lines (different signal lead) signal = np.zeros((len(lines) - 2)) for ...
ce52a33869fd751e405743f3a0c586bf3c097be8
3421875cad87894b7613d3322acec5a4cc13d46a
/Hackerrank/Maths/max_draws_to_find_a_pair.py
1f14932b151fa4726f71a1b5339f3424bf75828e
[]
no_license
ashish3x3/competitive-programming-python
2cd21a0552c03c35d4338bb674bf2bc5d711298b
6ddb05569065491006607d892001c317b1b644b1
refs/heads/master
2021-09-07T23:30:27.849279
2018-03-03T03:52:20
2018-03-03T03:52:20
80,297,913
0
0
null
null
null
null
UTF-8
Python
false
false
1,015
py
max_draws_to_find_a_pair.py
# https://www.hackerrank.com/challenges/maximum-draws ''' Jim is off to a party and is searching for a matching pair of socks. His drawer is filled with socks, each pair of a different color. In its worst case scenario, how many socks (x) should Jim remove from his drawer until he finds a matching pair? Input Format ...
af6957f297b6738c875ed0131b6a5cb688f0b200
79e1c25f3358d3027f27bc03f50d32db7754fc79
/operators.py
ab24b4303cf95bddaf225dea3d390a132f99ace1
[]
no_license
JOE-JOE-NGIGI/Python-Basics-bootcamp
616e08e5b3a5ee618541507e7ecf7f279f3768df
c29a2f4a057c2bf306df77f9afe59a70793dbcd8
refs/heads/master
2020-06-24T06:06:35.143199
2019-07-29T17:42:54
2019-07-29T17:42:54
198,873,038
0
0
null
null
null
null
UTF-8
Python
false
false
589
py
operators.py
"""Conditional operators""" """> greater than, <less than, ==equal to, != not equal to""" """Logical operators""" """or,and(All conditions have to be true) to check one or more conditional operators""" """False and False = False""" """True and False =False""" """True and true = true""" """or -at least one of the cond...
1efa3dab003fad4f92c31fa9b124332b8fd39586
b93d02777fc13f89939ea9057089c77fc8975638
/Project 5 Data Pipelines with Apache Airflow/plugins/helpers/sql_queries.py
339cd0a2e85628fb24d49164e2a220dcf77a950c
[]
no_license
saikolusu9/Udacity-Data-Engineering-Nanodegree
889ed732efdcef3ea25c9e0923b78854c0976f50
cebc064420b180d8f5a741517ca145760d1f088d
refs/heads/master
2023-08-18T12:07:30.696517
2021-10-12T03:23:05
2021-10-12T03:23:05
391,523,782
0
0
null
null
null
null
UTF-8
Python
false
false
2,903
py
sql_queries.py
class SqlQueries: songplay_table_insert = (""" INSERT INTO public.songplays ( start_time, user_id, level, song_id, artist_id, session_id, location, user_agent ) SELECT DISTINCT ...
11f817b952ad5680b2727098dd435ed90fae1bb3
403355b7b57c2a5c9f9e20f4d7c9dadbdfba69e4
/tests/vToolsTest.py
badfab35c35f28381c98d6c5b99f8f4ae580b185
[ "MIT" ]
permissive
etherwar/vtools
6ce54d563e047dc3240142f9189862c57268f76a
15503f9fe029fef8866dd05ef63409fbc7840366
refs/heads/master
2021-01-23T02:06:36.270719
2017-10-03T18:30:37
2017-10-03T18:30:37
85,967,819
0
0
null
null
null
null
UTF-8
Python
false
false
1,316
py
vToolsTest.py
from vtools import Tree, _WIDTH, _DEPTH, imgPaths import os def test_tree(): tree = Tree() tree.create_node("Harry", "harry") # root node tree.create_node("Jane", "jane", parent = "harry") tree.create_node("Bill", "bill", parent = "harry") tree.create_node("Joe", "joe", parent = "jane") tree....
54adb03f6a197578ef490ebe15b95a01f3aa832a
f996924fd6de4632ddbbcf200789969d8f44626b
/STAT8931 project/Python code/build_named_documents.py
f0d8cb0ec9961f2a4f0f639b1fc4609bcff3c1a7
[]
no_license
kinne174/MyPhdSchoolProjects
df8e1d8dc7b808057de59b79c2399c5a4544e7d4
69a90bbc854696d68955415e263f641d482be458
refs/heads/master
2022-06-22T20:39:38.204091
2020-05-12T17:08:05
2020-05-12T17:08:05
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,257
py
build_named_documents.py
from collections import namedtuple import gensim import io import os #function to collect tweets in an organized way def build_named_documents(sentiment_score_list, num_samples_wanted): directory = "Data" classifying_documents = [] SentimentDocument = namedtuple("SentimentDocument", "words t...
d3d859289559d9e321116363c27e23771e658cf0
01e4cf2f77c6ddd9064d4d1a0adbc422ca5ee80f
/Code.py
91f7838bff571c48ed1d95e26e18a62238d541a3
[]
no_license
neileshgiri/New_think_school
e346164707dce0bfe14ac8419c821acc38c7f911
72321ba67d6439b7fee91ed3468ff116b4e6515b
refs/heads/main
2023-08-24T20:39:20.790847
2021-10-31T17:49:50
2021-10-31T17:49:50
423,218,679
0
0
null
null
null
null
UTF-8
Python
false
false
1,969
py
Code.py
# Program to input a number upto 5 digits and print it in words number = ["", "One", "Two", "Three", "Four", "Five", "Six", "Seven", "Eight", "Nine"] nty = ["", "", "Twenty", "Thirty", "Fourty", "Fifty", "Sixty", "Seventy", "Eighty", "Ninty"] tens = ["Ten", "Eleven", "Twelve", "Thirteen", "Fourteen", "Fifteen", "Six...
27830abbc54ef1c3432cf07c8f871b1c1f28f536
5dff10f3f2b6a8ca7bdd38d534dc3ffd3221bc57
/jose/find_centers.py
03357e5514cf0e8da036f31b3203a0e03dd96fb6
[]
no_license
exosports/JOSE
dee24036d5a2fcca10bfe4f2175d2db99e7591b4
3e9264df0863bb02bc278e9d738e4bfff34f9e62
refs/heads/master
2022-11-16T11:50:05.882438
2020-06-25T17:57:07
2020-06-25T17:57:07
269,752,302
0
0
null
null
null
null
UTF-8
Python
false
false
2,553
py
find_centers.py
import numpy as np from scipy.optimize import curve_fit, least_squares from astropy.stats import sigma_clip from astropy.modeling import models, fitting import scipy.stats as stats import matplotlib.pyplot as plt def jose_fit(x, row, variance): pass def scipy_fit(x, row, variance): gaussian = lam...
8b282173f7a849d1922bb54421f6f6d679374d8f
b68d13b48082307b851ca68bcbd024490e3ce81e
/webApp/simulator/urls.py
92a6a4f5efbcc6b5871361f423cbc872b4ec6504
[]
no_license
kalebrod/simulador
87e2cd4d4992a88ec9d407f68d6c237afe207ff2
c690f5333104044cb95c95cdb109bf551954faca
refs/heads/master
2020-04-09T14:49:51.211221
2018-04-23T23:19:02
2018-04-23T23:19:02
160,408,485
0
0
null
2018-12-04T19:30:51
2018-12-04T19:30:50
null
UTF-8
Python
false
false
200
py
urls.py
from django.conf.urls import url from simulator.views import home, simulator, default urlpatterns = [ url(r'^$',home), url(r'index',home), url(r'simulator', simulator), url(r'default', default) ]
1b276b682d11d2be341442922b0589ce8ba9bc09
70b2b36992b3b1446f8124680fcfd38917103541
/OOP_1.py
1e5952582769b7944e0ec2342f6858027162f5f6
[]
no_license
AnantVijaySingh/Python101
f9e34d58b62970b27d6c6afa7b07d415070b9215
ed5d2ef1df2dbf54d35500999c06a9d2763f61ba
refs/heads/master
2020-07-10T23:25:22.602460
2019-09-29T18:50:34
2019-09-29T18:50:34
204,396,409
0
0
null
null
null
null
UTF-8
Python
false
false
3,412
py
OOP_1.py
class Shirt: def __init__(self, shirt_color, shirt_size, shirt_price): self._price = shirt_price self.color = shirt_color self.size = shirt_size def get_price(self): return self._price def set_price(self, new_price): self._price = new_price def get_color(self):...
36bbd528f2682f2e79e2c9203551dadfab50a8fe
c9abbbfd1ccdbdf75c5b35b28c841b6fc8165ee6
/others/GCJ2020B.py
0dd400f84bb79ac58176c4140aa11cd4cb0abdbb
[]
no_license
kanade9/kyopro
8d9b12a4da2353595836cf68066e2b425379990b
3b5d998b99603c4473dc22e62252a2dd5ba143c2
refs/heads/master
2023-04-20T15:18:37.199790
2021-05-19T17:49:16
2021-05-19T17:49:16
175,988,232
0
0
null
null
null
null
UTF-8
Python
false
false
523
py
GCJ2020B.py
t = int(input()) ans_list = [] for i in range(t): s = input() ans = "" for j in range(len(s)): if j == 0: ans += '(' * int(s[0]) ans += s[0] continue elif s[j] < s[j - 1]: ans += ')' * (int(s[j - 1]) - int(s[j])) else: a...
918f1e889973c645c1efa2e7a36855259e83f094
3b8166895cd3d0b642b0cfcaa46a4ea5f53f292d
/ecom/views.py
0a889b42d39e6ad4f7ee2f8d50ff70d860586a99
[]
no_license
Yokeshwaran95/ecommerce_api
9d5712ee7a351b3a77dd78f5a6c8396317a83cf3
3c3fc880985b0a3ed7019a0a7aeea98b0a8cb2fc
refs/heads/master
2023-04-09T03:17:31.252506
2021-04-20T03:45:17
2021-04-20T03:45:17
359,675,504
0
0
null
null
null
null
UTF-8
Python
false
false
1,562
py
views.py
from django.shortcuts import render from rest_framework.response import Response from ecom.models import Customer,Profession,DataSheet,Document from rest_framework import viewsets from ecom.serializers import (CustomerSerializer, ProfessionSerializer, DataSheetSerializer, DocumentSerializer,) from django.views.gene...
e0882a548577c10371ad6280d46a46cdcc5dd2d0
d5b9dfe7fd063f80fff1287a5ae003b3c07c0e50
/vulnspec/node/high.py
db86f94accf03ff921fc97b9a1a9e5bbdb197524
[]
no_license
jedevc/fyp
2e1de3d994a8aae0521a67f8ef0bb3efab3e51c2
4d37cc16f61af70920c36389fae0c6955b5d9551
refs/heads/master
2023-07-14T22:50:52.534355
2021-08-31T10:38:24
2021-08-31T10:38:24
305,393,270
0
0
null
null
null
null
UTF-8
Python
false
false
1,887
py
high.py
from typing import List, Optional from .base import Node, X from .expr import ExpressionNode from .stmt import StatementNode from .types import TypeNode from .value import TemplateValueNode from .visitor import Visitor class DeclarationNode(Node): def __init__( self, name: str, vartype: TypeNode, initial...
920e455ee9104a36ef6b8e821efce93342dbb72f
7a84ea20329fa457e1e5cd138cf6c8b2c674befb
/examples/reticulated_python/18.py
66f6963093e4fec62dd5e1890307461aedc8f661
[]
no_license
BenChung/GradualComparison
2063f0dac92a1d0e72f07920b8fecfe3221cdf5f
90bb3b1c95241e3cd6d435e37f314b9dfadba4f9
refs/heads/master
2021-04-12T04:24:10.260474
2018-07-25T18:45:46
2018-07-25T18:45:46
40,996,755
1
0
null
null
null
null
UTF-8
Python
false
false
239
py
18.py
class A: def foo(self:A) -> Int: return 1 class B(A): def foo(self) -> Int: return 1 class C(A): def foo(self) -> Int: return 1 def f(x:{'a' : B}): x.a class M(metaclass=Monotonic): a = B() p = M() f(p) p.a = C()
ae8457d8d8cf9f827fe6ea11f4047efaae477b55
3efc8fc4c16f28ae55c427c8ae7a0f5f2ddf7146
/bert_funcs.py
e05ef78fc862171812b10515be946caa4280063a
[]
no_license
mycimar97/mycimar_bert
523cd5d294fc5a527f88eda2bd2943128662668e
858ecabccc7ad6f74ecc39cf87714297c93c11c8
refs/heads/master
2020-07-26T09:26:10.701879
2019-10-02T08:25:53
2019-10-02T08:25:53
208,603,294
0
0
null
null
null
null
UTF-8
Python
false
false
8,424
py
bert_funcs.py
from bert import modeling import tensorflow as tf import numpy as np import itertools import pandas as pd def generate_ngram(seq, ngram = (1, 3)): g = [] for i in range(ngram[0], ngram[-1] + 1): g.extend(list(ngrams_generator(seq, i))) return g def _pad_sequence( sequence, n, pad_left...
2758c48d1517b7fe19dfb7b7507fe69244fc131d
df58b16be563e73c49cdd40f433904bffe48ae78
/main.py
71633a4babdbcfd0e7ef4843cc69ff1705bd836c
[]
no_license
LiuTai/fb-automation
1af4830ab10e35a631fe83dab96c0d7439b1d769
289c08b4cb99a9bdcaa2134fa4b12a96cd469091
refs/heads/master
2022-11-05T11:18:50.313950
2020-06-23T03:31:42
2020-06-23T03:31:42
271,205,048
0
0
null
null
null
null
UTF-8
Python
false
false
1,392
py
main.py
import argparse import sys import json from io import open from src import FBCrawler def usage(): return """ python main.py """ def arg_required(args, fields=[]): for field in fields: if not getattr(args, field): parser.print_help() sys.exit() def create_group(username, ...
324f328050f2cfbd71a445924b5d8dfbffef7af6
6581032ae3a615dc6057df1fbdc00404914eca29
/BlogApp/migrations/0004_auto_20190503_1026.py
9bd0ef9bbaf5f9b7ec46571540e4b7d33b702831
[]
no_license
samjonescode/DjangoBlog
b9d993b24747c0ef8703f3280586b8e503724b49
0d0489b54841521451e659d6d2f99a2e8ebf9c6d
refs/heads/master
2022-01-08T14:40:35.659138
2019-05-03T14:59:42
2019-05-03T14:59:42
null
0
0
null
null
null
null
UTF-8
Python
false
false
732
py
0004_auto_20190503_1026.py
# Generated by Django 2.1.7 on 2019-05-03 14:26 import datetime from django.db import migrations, models from django.utils.timezone import utc class Migration(migrations.Migration): dependencies = [ ('BlogApp', '0003_auto_20190502_1926'), ] operations = [ migrations.AlterField( ...
87dab5b393552672cf72dda85a12e1487e8a0b50
3f5dd5720897458fe74a2313d09d1638a6c27afe
/XSX_UITest/keyword/FrontDesk_Home.py
b1fc02a446b4d52abefd586eb7ad2c921b7137e3
[]
no_license
pengdaan/xux_Interface
5c6aefa435bf5c0cb9c861ec30c9453337aea469
a9dfb6c65c885354773c19b49fa3325455c75b7e
refs/heads/master
2021-01-11T20:01:03.373267
2017-09-27T07:20:19
2017-09-27T07:20:19
79,448,615
0
0
null
null
null
null
UTF-8
Python
false
false
466
py
FrontDesk_Home.py
# -*- coding: utf-8 -*- __author__ = 'leo' Spike=("xpath,//*[@id='seckill_wrap']/div[2]/div/a[1]") SmallBear_menu=('s,span.iconfont.icon-lanmu') MMLP=("xpath,//*[@id='J_gTopNav']/div/div/div/a[2]/span") FMBK=("xpath,//*[@id='J_gTopNav']/div/div/div/a[3]/span") Shopping_cart=("xpath,//*[@id='J_gTopNav']/div/div/div...
3da13ef8cd7ea141e803d9494ccd981ab1eb71ac
279415d73726427510be8d11c876742108c143f3
/CLientSIdeCCTV/main.py
958858811df58e7b718003fe2ec16b987bac43fc
[]
no_license
swipswaps/Automated-CCTV-surveillance
8693c5ec7b8b0d50a3fac0898be475f6223d27e1
921b44b2873a47f27c57087eb92a5dc62c262503
refs/heads/master
2021-09-11T01:33:21.987761
2018-04-05T19:14:07
2018-04-05T19:14:07
null
0
0
null
null
null
null
UTF-8
Python
false
false
90
py
main.py
from Detector import Frame frame = Frame("RecognizedFaces/") frame.run() frame.destroy()
e75cad572c581e7dbfc5471f8337129c3de07732
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p02615/s078293339.py
734c9c938091a3866a3b5740b8481781971d02e7
[]
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
289
py
s078293339.py
#coding:utf-8 N = int(input()) A = [int(i) for i in input().split()] A.sort(reverse = True) k = N-2 index = 1 ans = A[0] while k > 0: if k > 1: k -= 2 ans += A[index] * 2 elif k == 1: k -= 1 ans += A[index] index += 1 print("{}".format(ans))
870712304f0335e4bfb292f57cebcf143ed5657e
28f09d63d3371b34c0581e177e68d0ce6d2c7d74
/UICSpring17/CS412/spamham.py
632279a78471aff33eccb9045793aa87b4952536
[]
no_license
denisdoci/school-projects
58fd5397bc4119843abede554e49ae0195813707
fefc95f600da91f66d615d684986a83e03ea646b
refs/heads/master
2020-12-29T02:19:10.164029
2017-06-04T03:09:07
2017-06-04T03:09:07
47,003,844
0
1
null
null
null
null
UTF-8
Python
false
false
2,281
py
spamham.py
""" Octave and julia doesn't work on my mac for some reason so I did the whole program in python. I used scikit learn for most all of the bayes and score calculations """ import pandas as pd import numpy as np from sklearn.model_selection import train_test_split from sklearn.feature_extraction.text import T...
b8e9e965ba4a568fc9087d1b505876524551765d
64836a9dbd33eacbd73f8215cb1767f021bd981f
/Prototypes/Python/phasevoc.py
904266b327693d9b701b334c81f6b898074de8c9
[]
no_license
RobinSchmidt/RS-MET-Research
6f18441ac65de0e5746ffe464b292690e26c8c86
b6cb2dadc2f18dd7c2dbd775c19329edf8f30b3f
refs/heads/master
2023-08-16T18:37:11.827420
2023-08-15T19:28:10
2023-08-15T19:28:10
189,007,873
5
3
null
null
null
null
UTF-8
Python
false
false
16,012
py
phasevoc.py
""" Phase Vocoder @author: Robin Schmidt, www.rs-met.com """ from math import ceil, pi from matplotlib import pylab as plt from numpy import (zeros, linspace, sin, cos, transpose, flipud, angle, shape, conj, real, allclose, ones) from numpy.random import seed, random from numpy.fft ...
1a9755bf06d9847f3b1352eb4e42cfaa86ca66bd
961931333838aebe8bd17c30c19f3994e32d76ce
/src/leetcode/sliding_window/3. Longest Substring Without Repeating Characters.py
05c14002293e58d60de866664d7a47dbee3ca0ba
[]
no_license
MTGTsunami/LeetPython
5161f9e31dc2ab1855123c2a3a151eb6f4d889bc
f7f3839f631f08a9e5bf8a02398b940f82e43e67
refs/heads/master
2023-04-17T16:59:45.621291
2021-04-26T07:24:50
2021-04-26T07:24:50
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,453
py
3. Longest Substring Without Repeating Characters.py
""" Given a string, find the length of the longest substring without repeating characters. Example 1: Input: "abcabcbb" Output: 3 Explanation: The answer is "abc", with the length of 3. Example 2: Input: "bbbbb" Output: 1 Explanation: The answer is "b", with the length of 1. Example 3: Input: "pwwkew" Output: 3 E...
eac5ea265de8246294cc064a7e8da38edb8c0183
7f544746424fefdd2b99ec1008065e0d07eb6d40
/plot_features.py
42d4f2a6cf13043ab8781793c7aa0831f46fd929
[]
no_license
MinhHuong/NLP_project
7121886137edeb7bef617e83464558419c76e0f0
78b77571b883d5e881590a05fb2b98424aad89ca
refs/heads/master
2021-05-02T09:18:06.194753
2018-03-12T22:17:16
2018-03-12T22:17:16
120,820,889
0
1
null
null
null
null
UTF-8
Python
false
false
1,488
py
plot_features.py
# import time to find consuming steps import time start = time.time() # utility libraries import numpy as np import pandas as pd import csv # plotting stuffs import matplotlib.pyplot as plt import matplotlib.ticker as ticker import seaborn as sb end = time.time() print('Loading libraries takes %.4f s' % (end-start))...
13dcbd9574c4397ee9a5c52318da0a80f79ca0bd
7d8ca79801f2de02ba8f9e562d2ab11161e30082
/code/data/S3_connection.py
cd6b0837c52e1257734f166b7508061db6a0533f
[]
no_license
IreneYang218/Newsfeed_Product
5b413a5877b20df0210bac0be8813b5504c63051
1f5b0753f5c3d16a38a2822447d97db49f7ed9e5
refs/heads/master
2023-01-31T10:50:22.064510
2019-05-27T23:21:39
2019-05-27T23:21:39
188,917,640
2
1
null
2023-01-07T05:50:52
2019-05-27T22:45:58
Java
UTF-8
Python
false
false
808
py
S3_connection.py
from info import * import boto3 import pandas as pd import io def read_s3(folder, filename): """ Read data from S3 bucket and return dataframe. """ # write DF to string stream s3 = boto3.client('s3', aws_access_key_id=key_id, aws_secret_access_key=secret...
024c886cd86331d9b5df07642d931581b5347061
852c4902a9c9cb0998e9fc070caf0c5177e0f34b
/cutEvent_analysis.py
3186f8facd9148505d0691ea1e64505a972323df
[]
no_license
rahul-jayaram1/BetaEvent_oscilation_analysis
d33e38632dc8a9c7d00cf02a4ba558d6cc680390
7da047d44064686255454c9910213a891b6d775f
refs/heads/main
2023-02-02T07:41:30.096119
2020-12-18T19:16:32
2020-12-18T19:16:32
322,683,822
0
0
null
null
null
null
UTF-8
Python
false
false
10,111
py
cutEvent_analysis.py
from bycycle.filt import lowpass_filter from bycycle.features import compute_features from bycycle.filt import bandpass_filter from bycycle.cyclepoints import _fzerorise, _fzerofall, find_extrema import scipy as sp import numpy as np import pandas as pd import matplotlib.pyplot as plt from matplotlib import pyplot as ...
7569c93331cb2ca57e611fa25e68bdff1b7e6256
93431d8f7533d54a5bd2a66f51e7d3aafc929826
/Michigan/ass3c-6w-1 - JSON.py
faf26161e83c5897fb643d2fcbbd326bbb031968
[]
no_license
tmPolla/python
50357cdc28479bea3b313839fff2ed8c8d1c57d5
89059d9f3fc1de474a144e5f5235f7150a5208b2
refs/heads/master
2020-06-30T12:47:42.646149
2020-02-26T10:40:27
2020-02-26T10:40:27
74,370,548
0
0
null
null
null
null
UTF-8
Python
false
false
674
py
ass3c-6w-1 - JSON.py
import json import urllib urlS="http://python-data.dr-chuck.net/comments_42.json" urlA="http://python-data.dr-chuck.net/comments_335231.json" running_mode="A" if running_mode =="S": print "Enter location: ",urlS else: print "Enter location: ",urlA if running_mode =="S": url = urlS else: url = urlA uh...
43033e29b186e2b275900c06ad9d4c7b00850680
fbd0e9cc5875ef18166e390c5613b4846a4dba84
/problems/problem07c.py
d2c599b4e0cf915131c417539fe2bd7edfe3323d
[]
no_license
FranklinChen/teach-python
e24f8fce7fb869737262d80f4073c8b23cb5a898
322188b7f54c16f63b9c67132721c422ee159ff5
refs/heads/master
2020-06-04T06:40:25.826229
2015-03-20T16:56:28
2015-03-20T16:56:28
31,937,545
0
1
null
null
null
null
UTF-8
Python
false
false
205
py
problem07c.py
def all_greetings(greeting_committee, name): """Given a list of greeters who return a greeting when given a name, return a list of all the greetings performed. for name. """ return 'junk'
846770378b2b0e19ceb6b533d7e484bbf4f3e48e
84cb02b38eb2f4236bdec23fcdf3c460266089fd
/exercises_one/change_a.py
5bbba8aecfdefe82efec174a0a97f67ccd2b761e
[]
no_license
SantiM96/Primer-Proyecto
04715ecb1edd54f152b963289c5ce679a4c4aeff
011c61322fdb370f2af6bbdf4b7e0b91d4411659
refs/heads/master
2020-04-27T19:30:35.470293
2020-01-14T03:03:05
2020-01-14T03:03:05
174,621,912
0
0
null
null
null
null
UTF-8
Python
false
false
185
py
change_a.py
print("") usu_sent = input("Ingrese una oración: ") print("") list_a = ["A", "a"] mod_sent = usu_sent.replace("A", "VACA") mod_sent = mod_sent.replace("a", "VACA") print(mod_sent)
a1f7594298817cc16077f4ce339845a5f9719829
4221995b717869f977212b603a4db74295293c89
/30.py
a606baf83e9d34aad69784fecbe02efe79343dd2
[]
no_license
tjsl1124/Project-Euler
ad9ba018562d550c205043175d66d90926dc6754
cd03e96f7de37e553fcca0f26c804e1af8128d2f
refs/heads/master
2020-07-28T00:30:50.432064
2019-09-23T08:19:33
2019-09-23T08:19:33
209,255,902
0
0
null
null
null
null
UTF-8
Python
false
false
420
py
30.py
import time def test(): sum_a=0 for k in range (2,(9**5)*6): n=str(k) a = [] for i in range(0, len(n)): a.append(int(n[i:i+1])) sum_ = 0 for j in range(len(a)): sum_ += int(a[j])**5 if sum_== k : sum_a = sum_a+sum_ print(sum_a) if _...
b094e2b251cefca7733137f7b5710ce89609168d
5ccbf7c8caf55e3a36a54b9fe96601d8abddec58
/thread_test.py
6042bf50588f5fc1158c70f78ba65e9530f4eca4
[]
no_license
trumhow/c
e3421a0f3b9d96307d4f7b3b9e61d2f61e4e6f29
0d13893aab6aba46091fe0b324e44d7b68ace898
refs/heads/master
2023-03-06T05:08:40.231964
2021-02-12T05:51:15
2021-02-12T05:51:15
338,235,263
0
0
null
null
null
null
UTF-8
Python
false
false
159
py
thread_test.py
import threading def func(x): while True: print('get number', x) for i in range(8): threading.Thread(target=func, args=(i,)).start()
88e8d9452aa65ef67ec74dae86e4efca12d7afdd
3d5cfb91c1aa9ac3c58852a2ac1c50fc4ac28e8e
/Castle.py
11e077e1457f621b9596b1450939b8fc6a52ffa1
[]
no_license
Ghostmoonk/maya_python_castle
a0d07721bec898b9770fdd13b8c193e5b1d72d98
b466dd26128a82767ea13817b7f135e4438d2228
refs/heads/main
2023-02-12T07:53:58.575161
2020-12-13T20:30:24
2020-12-13T20:30:24
313,100,573
0
0
null
null
null
null
UTF-8
Python
false
false
1,730
py
Castle.py
import math as math import maya.cmds as cmds #cmds.file(f=True, new=True) from maya_python_castle.Utils.Utils import Vector3 import maya_python_castle.Utils as Utils import maya.app.general.positionAlongCurve as mayaGeneral import maya_python_castle.Doors as Doors import maya_python_castle.Towers as Towers import maya_...
caa139e0425b29cfbf941f8c3c4ffae148d72af5
216c1bca68fb432c940e8ab07a744f7905bd98d6
/library/tpls_server.py
24c38198d533dcf5306073febde583218bd81c66
[ "MIT" ]
permissive
pdinkins/node-server
409f2ed5e10505088544199267b76a38490a8abe
0e8063641a61ce4a2ce8bcdf6cf07908635fc46c
refs/heads/master
2020-03-27T06:07:31.940564
2019-01-20T09:47:54
2019-01-20T09:47:54
146,080,628
0
0
null
null
null
null
UTF-8
Python
false
false
7,733
py
tpls_server.py
# NODE $ERVER$Y$TEM ## TPLS SERVER # ''' functional implementation of the 'transport layer security sever' or tpls_server this code works for the most part when i wrote this only God and I understood it. now only God does TODO : FIX THIS ''' import logging import datetime as dt import logging import sys import soc...
803c7dffc31a61413847b1e79c756cf645fe7c45
4a23a4d3093e355090289484daa97cf94d3704f6
/src/Interview Prep/01 Strings/py_alternating_characters.py
e78b05f6db86411ff6214c727688f9b92250a765
[]
no_license
VinhMaiVy/learning-python
3a80ddc2f8327aa2450f4713d60e6bf5e2e818c7
0b90bafb2535a5119836a31399d7de726921fc63
refs/heads/master
2023-07-17T11:37:07.440901
2021-08-20T00:38:52
2021-08-20T00:38:52
279,147,017
2
0
null
null
null
null
UTF-8
Python
false
false
575
py
py_alternating_characters.py
#!/bin/python3 """ Counting on string Input: 5 AAAA BBBBB ABABABAB BABABA AAABBB Output: 3 4 0 0 4 """ import math import os import random import re import sys def alternatingCharacters(s): result = 0 pos = 0 c = s[0] while pos+1 < len(s): pos += 1 if s[pos] == c: ...
b7eea334c748e0bd5c2d0a852267f36c5f7d775e
c92575eb58d82de29ca363aff26e14f4642a8959
/app.py
2cd1374f706c700da27b91dde85d2e953eba13ec
[]
no_license
mayankDhiman/SuplSyst
30918404c3f2e6d492ba80e60c6ba6dc3a3e0369
d310a306b5dc56f5eef8975281320d0603550d9b
refs/heads/master
2022-12-16T08:42:03.261709
2019-11-19T09:15:23
2019-11-19T09:15:23
210,605,373
3
5
null
2022-11-22T04:47:27
2019-09-24T13:06:57
CSS
UTF-8
Python
false
false
309
py
app.py
from project import app, db from project.model import Result, Enrollments, Teachers, Student if __name__ == '__main__': app.run(debug=True) @app.shell_context_processor def make_shell_context(): return {'db': db, 'Student':Student, 'Result': Result, 'Teachers': Teachers, 'Enrollments': Enrollments}
6c3f9800d4e7f6fac77efd9bc7caa960e07f9ed0
cd4fd63535084f67c3cd86c0a01dc67035c9a982
/deep learning with tensorflow/day4_xor3.py
2a31082cf08002b218ff5c14d876226aeb81095c
[]
no_license
jaehwant/machine_learning_study
3366c953e074b0d245190aeefca710be985871ff
b0d435ab6683dc66a33833e2e76d403ac4ff894d
refs/heads/master
2021-09-06T00:46:28.345227
2018-02-01T02:07:33
2018-02-01T02:13:52
108,947,943
0
0
null
null
null
null
UTF-8
Python
false
false
1,368
py
day4_xor3.py
import tensorflow as tf tf.set_random_seed(777) xdata = [[0,0], [0,1], [1,0], [1,1]] ydata = [[0], [1], [1], [0]] x = tf.placeholder(tf.float32,shape=[None,2]) y = tf.placeholder(tf.float32,shape=[None,1]) # w = tf.Variable(tf.random_normal([2,1],name="weight")) ...
7e334a4498ba058702054991f9765c25ac72650c
46ee99adf99352b7879c5b2bdbb669f33549cc7c
/coin/upbit.py
b132f10c6c6767cbca86b76d088fe0dc54c869be
[]
no_license
webclinic017/TBDStructure
d85a01ec04a95a85bb82f2571b5fec898246d9f4
9b9b02088c7dcc5786f985dd17292e184b5ce6c2
refs/heads/main
2023-03-21T01:21:29.665270
2021-02-06T01:28:36
2021-02-06T01:28:36
null
0
0
null
null
null
null
UTF-8
Python
false
false
901
py
upbit.py
import ccxt class Upbit: def __init__(self, public_key=None, secret_key=None): if public_key is None and secret_key is None: self.api = ccxt.upbit({ 'apiKey': public_key, 'secret': secret_key, 'enableRateLimit': True }) else:...
096bf2339007f41b3e5c82f18d43bec276603393
84976c3140b3f0c84cd30aa77f7b5686a9d56c77
/actions.py
7c61794882ba1211b6d3e4751399b1aadb0a50c7
[]
no_license
amb181/AI_Assistant
072464fb90bebdc158b4bceb95eb5155f2724a9b
450f5b453530ed8b99baaf8aeb1066a7b75aa686
refs/heads/master
2022-10-23T10:03:48.656464
2020-06-19T21:58:27
2020-06-19T21:58:27
271,848,082
0
0
null
null
null
null
UTF-8
Python
false
false
4,911
py
actions.py
from __future__ import absolute_import from __future__ import division from __future__ import unicode_literals from typing import Any, Text, Dict, List, Union, Optional from rasa_sdk import Action, Tracker from rasa_sdk.forms import FormAction from rasa_sdk.events import SlotSet, FollowupAction, UserUttered, ActionExe...
b8c9df013022d311236f0fc45692aa4950d3fe26
aeb0c6a034fe913e851913dfc91d79bc1bc4856b
/setup.py
f9a6f9da878de3afa6c53d8f5da72c098a26b219
[]
no_license
jdodds/aspackt
50418a831768ad1708719e1aa2b2128ae3d63a29
ff59b8e0a6033257b8ef06a15c580f0d039b4a8b
refs/heads/master
2016-09-05T19:09:43.553148
2015-05-11T14:43:56
2015-05-11T14:43:56
35,418,581
0
0
null
null
null
null
UTF-8
Python
false
false
890
py
setup.py
from setuptools import setup, find_packages from codecs import open from os import path here = path.abspath(path.dirname(__file__)) setup( name='aspackt', version='1.0.2', description='Arrange rectangles while approximating an aspect ratio', url='https://github.com/jdodds/aspackt', author='Jeremia...
435e3d9a816383097e82ff1dfd6ae90fd65cb926
9f901c003abce0d6f7b051653fc7c96119e45268
/testing.py
484ad9799049fd439e8480c1b29ef0b80150b4db
[ "MIT" ]
permissive
akalinn/web
9677433dc975ed25603044645659c5a2ff00e7e0
8e7cb24bbbd5b2e7d0b3aa049350a27d844c4c45
refs/heads/master
2020-03-22T20:55:53.397106
2018-08-08T07:40:07
2018-08-08T07:40:07
140,643,360
0
0
null
null
null
null
UTF-8
Python
false
false
725
py
testing.py
def tester(): count = 0 try: correct = True; while 1: f = open("article\Article_"+str(count), 'r',encoding='utf-8') has_lines = 0 for lines in f: if has_lines == 0 and int(lines) != count: print("\n\line # is not match ... on ",str(count)) return -1; else: has...
b4cffd8acbf832dd0a508edd713cd040a91650c0
0ffc95f289b6583f999106511958373a6a4079fc
/OfficeSpace.py
faa79e7426ccb42d676081a8c3da19131a1982a7
[]
no_license
cmf3673/CS_313E_Projects
90c6f2a5d793a254dee1b9758ffd62cbfdd8684b
549c886d083a88e3b02a86bc37511411c4d04787
refs/heads/master
2023-01-21T01:17:05.191040
2020-11-30T00:44:58
2020-11-30T00:44:58
315,600,048
1
1
null
null
null
null
UTF-8
Python
false
false
4,157
py
OfficeSpace.py
## Problem: The company that you work for is moving to a larger building. # The new office is rectangular and will be subdivided into cubicles. # Your employees want to request particular positions for their cubicles. # You want to set up a system that lets them make their requests. # You have expressed the new off...
5aa436f74581b1c2a94fa53c1fd28b9014c08bf0
2740921032ba01eccd9417e67894ba6f13723a9b
/basicStudy/str_methods.py
c176f040b850849c80e1dc9b4d43c274feaa677d
[]
no_license
zhushh/PythonCode
04eabc9f63852f9b7c29aa874ccc5889ae8ba15f
03d9d56172565a7c02d023ebc0d5103bffc94448
refs/heads/master
2021-01-19T02:37:51.025337
2017-06-21T10:41:00
2017-06-21T10:41:00
43,315,950
0
1
null
2020-03-31T03:18:40
2015-09-28T17:33:08
Python
UTF-8
Python
false
false
681
py
str_methods.py
#!/usr/bin/env python # Filename: str_methods.py name = 'Swaroop' # This is a string object if name.startswith('Swa'): print 'Yes, the string starts with "Swa"' if 'a' in name: print 'Yes, it contains a string "a"' if name.find('war') != -1: print 'Yes, it contains the string "war"' name_replace = n...
ff45cc17bce3c3880ec8757d67026fd0f8cf6a80
bb2e50e9c09cce191a80ae297c0b2114bbee4bc0
/4.kp/Untitled-1.py
4e245940ec0d155aee2ba4b31f5169a1961a477d
[]
no_license
Anna123097/Pyton-Learning
9f7c1aaf7a6b2fe43dd8bfbd2a9d0a2fc4636d3f
5fb1959f85ab6f15446c5c4412f9adf2882b7da5
refs/heads/master
2022-11-29T19:12:29.210226
2020-08-07T07:40:20
2020-08-07T07:40:20
282,831,427
0
0
null
null
null
null
UTF-8
Python
false
false
175
py
Untitled-1.py
""" ?Найти все делители числа n и вывести их на экран. """ n=int(input("n= ")) for i in range(1,n+1): if(n%i==0): print(i)
70e0ead5d5f8ff4ff51076508dbe753abc91445f
79fbdf539814d288d84f90710f921be2e5df5a58
/Selection/python/ElectronExtra_cff.py
0afe0784395c9009e85a28b221a50c7cf3acee8d
[]
no_license
gourangakole/MiniTree
15e42f0d7259d01de1510c20487521776ad6035a
283faa0a2008bc1e3ef2660e9f69cff49c95b729
refs/heads/master
2021-09-28T07:36:45.382862
2018-04-18T13:09:36
2018-04-18T13:09:36
115,434,936
0
0
null
2017-12-26T15:47:04
2017-12-26T15:47:04
null
UTF-8
Python
false
false
6,529
py
ElectronExtra_cff.py
import FWCore.ParameterSet.Config as cms import copy from CommonTools.ParticleFlow.pfParticleSelection_cff import * #https://github.com/cms-sw/cmssw/blob/CMSSW_9_2_6_patchX/RecoEgamma/ElectronIdentification/python/Identification/cutBasedElectronID_Summer16_80X_V1_cff.py #from RecoEgamma.ElectronIdentification.Identific...
85d685bf623d04a2edb925632ee27bfed0974919
4ee8a2e85773722e6e5a0f446d15b63331286f0a
/Order/views.py
b1382c4c8a7d2d3ba92a7d4398d6bcb9e0e394e3
[]
no_license
natanshimeles/FoodBkEnd
05abdd3770e4989f39b1f392d5d63308a3f825a5
5ca6a79a58793eb236667020846549b34665e2f7
refs/heads/master
2023-07-02T03:06:44.841724
2021-08-13T12:40:52
2021-08-13T12:40:52
297,036,836
0
0
null
null
null
null
UTF-8
Python
false
false
34,875
py
views.py
from django.shortcuts import render from rest_framework.response import Response from rest_framework.decorators import api_view,authentication_classes, permission_classes from rest_framework import viewsets,permissions,status from .serializer import FoodSerializer,OrderSerializer,ReportSerializer,WorkingHourSerializer,...
55aa3b2dca012ba5fa7a9d784e2293aabe103bee
b7d61edc8f8168949e5096e9622ead67c3ff6a69
/models/responses/question_model.py
518726516019b5cc6fe17d1f167d2f092c40ef9a
[]
no_license
svetakorn/Datatron
d719d9a5e397e16161f1f509eafb480bd9f0358a
d3742d04be04871f5af93581e0957c4b19f5502b
refs/heads/master
2021-09-04T09:08:32.196038
2017-10-30T11:51:32
2017-10-30T11:51:32
null
0
0
null
null
null
null
UTF-8
Python
false
false
363
py
question_model.py
class QuestionModel: def __init__(self, question): self.question = question def to_reduced_object(self): keys_to_return = [] keys_to_return.append('question') return {key: getattr(self, key, None) for key in keys_to_return} def to_reduced_api_object(self): res = se...
b827566c21d64a34f5ee949217844cc87ab37316
4b93aa80436d4683d0254c4bd4b1e95c41e8c6ce
/ZenPacks/community/zenAppProfiler/migrate/CreateProfileOrganizer.py
c92c0144c8656947e3f722a9e19d9f9946c2d309
[]
no_license
j053ph4/ZenPacks.community.zenAppProfiler
984d5aa04766cc6209ee76a055ceab3373baa0bd
e41d030d67b5df8e41a40f180fa1f57656f20a03
refs/heads/master
2021-01-22T22:39:16.448979
2011-10-20T20:39:36
2011-10-20T20:39:36
2,608,336
0
1
null
null
null
null
UTF-8
Python
false
false
656
py
CreateProfileOrganizer.py
import Globals from Products.ZenModel.migrate.Migrate import * from Products.ZenModel.ZenPack import ZenPack from Products.ZenModel.ZenPack import ZenPackMigration from ZenPacks.community.zenAppProfiler.ProfileOrganizer import manage_addProfileOrganizer import logging log = logging.getLogger("zen.migrate") class Crea...
97a97c299ea11006af2e94e229d0715f04318cfd
03a7d50dc5ad7e58fcb3e4e68a20879a42c4e221
/examples/line_performance.py
43491ee16935885c90b9bd5ca040626a1f97ff54
[ "BSD-2-Clause" ]
permissive
marcdownie/pygfx
c249723dee90b12adb9d01ae95fddd893616be55
326d16e88f8c7c7f67442e086874a779d9af44ab
refs/heads/main
2023-08-26T18:28:17.676375
2021-10-16T22:01:19
2021-10-16T22:01:19
null
0
0
null
null
null
null
UTF-8
Python
false
false
876
py
line_performance.py
""" Display a line depicting a noisy signal consisting of a lot of points. """ import numpy as np import pygfx as gfx from PySide6 import QtWidgets from wgpu.gui.qt import WgpuCanvas app = QtWidgets.QApplication([]) canvas = WgpuCanvas() renderer = gfx.WgpuRenderer(canvas) scene = gfx.Scene() # todo: crank this ...
21b2d59e13cf000c6e2fdf65e02fe67cb3b4b967
7bd3c35070d40724ab21e83b4d3f5ba39e455818
/mini blog/miniblog/blog/views.py
84a24c8226d29cf8b10eb3eb5ee47deaa4808c56
[]
no_license
shatishdesai202/Django-Project-Practice
9433004de6fd72dd0cd56cb4ff7770ecded6a054
f66ee507fcf959d148627c1c2f5d587b10adc996
refs/heads/main
2023-03-12T17:14:15.823285
2021-03-07T05:32:07
2021-03-07T05:32:07
345,263,312
0
0
null
null
null
null
UTF-8
Python
false
false
4,189
py
views.py
from django.shortcuts import render, HttpResponseRedirect from django.contrib.auth.models import User, Group from django.contrib.auth import login, logout, authenticate from .forms import SignupForm, LoginForm, PostForm, ContactForm from .models import Post, Contact from django.contrib import messages def index(reque...
d269c5dbdf9a72f81a83f07fb5de0043f55e298a
94f60bdd3ab265d3d5bdb4b2aad1912e12ca3f00
/stay/views.py
36ec8dfe2e4b8d286304f385732dc7f2352d5134
[]
no_license
nadunperera/northfield_web_app
374e18ddab5d4295a49403baeeea3635040fe2a3
d59fd04793473580d54514a837704e6d8f64fde5
refs/heads/master
2022-12-08T13:17:39.398368
2019-05-23T02:17:03
2019-05-23T02:17:03
182,775,931
0
0
null
2022-12-08T05:01:17
2019-04-22T11:59:12
HTML
UTF-8
Python
false
false
1,913
py
views.py
from django.contrib.auth.mixins import LoginRequiredMixin, UserPassesTestMixin from django.views.generic import CreateView, UpdateView from .models import Stay from .forms import StayCreateUpdateForm # Create your views here. # class StayListView(LoginRequiredMixin, ListView): # model = Stay # context_object_...
f2af7b52ef4b1f215a890dc66076ce6d4858e930
ec4607ecd8842b36f6814858c0435f2b6383b5b7
/src/cryptography/__init__.py
5710590ec42e8bfa622508fe9f88fa1bbd2b46b3
[]
no_license
andress0391/pentesting
2ecac9ee9ee4b6573ca6fd9de7634e42f4cb1523
7f6a6cad95991a186166de12749cea9bcdc24d0a
refs/heads/master
2021-09-24T01:55:32.791639
2018-10-01T15:11:01
2018-10-01T15:11:01
112,255,750
0
0
null
null
null
null
UTF-8
Python
false
false
130
py
__init__.py
#!/usr/bin/python3 # -*- encoding: utf-8 -*- from .crypst_001 import * from .crypst_002 import * from .crypst_003 import * pass
3ba630b8d78913cbdf2cee00e19ed7a624c1d3f0
5c52dcef3dfc0b2793b45ae45df7357815498be4
/Azure/Образец таблицы/start.py
0c4a5834cf5b2129789fac2488e8c41f2d9f6bc1
[]
no_license
sevapopov2/Vk_friends_popularity
e0d2d81c163cc6a0490beb5b5f8bc130a29e6912
0ed6660899873f77731fecb60290881b6b3ea25c
refs/heads/master
2022-11-05T23:21:30.413983
2020-06-14T11:37:47
2020-06-14T11:37:47
272,188,230
0
0
null
null
null
null
UTF-8
Python
false
false
568
py
start.py
from azure.storage.table import TableService, Entity table_service = TableService(account_name='seva', account_key='SgbxLwWkBH4XuGebxECoXfNVG3mVM5YjOs+SWTDUSacc+3YgUmcafYXrXdz5k0HtlZQ3AuEJ1IcFtZYeGVR9Hw==') #table_service.delete_table('tasktable') #table_service.create_table('tasktable') #task = {'PartitionKey': 'ta...
ed761f466dae02234504a4f79147814f3400f7b4
b1a8e63605d78b1fc54430fcacf9f7e5dc2b4368
/프로그래머스/unrated/181929. 원소들의 곱과 합/원소들의 곱과 합.py
b856bd0ccf009b026252a7665abd4dcff84b4c5b
[]
no_license
yunieom/Study.2-Algorithm
656b2c6203e48a0f8acc394f129bd473c598977b
b55ccec367233a09f3aace8ab67b00de64e7cee2
refs/heads/main
2023-08-19T07:01:00.790162
2023-08-16T08:21:37
2023-08-16T08:21:37
309,313,561
0
0
null
null
null
null
UTF-8
Python
false
false
249
py
원소들의 곱과 합.py
def solution(num_list): multiply = 1 square = 0 for i in num_list: multiply *= i square += i if multiply > square**2: print(multiply) print(square**2) return 0 else: return 1
4634b753a6cd270ae2142e8b460ca743f3e8ea46
476c62e1a658ec8c33f6011dd6dc5b50f1f62b23
/wbia/control/wildbook_manager.py
ad216b32a9aeb7cfce55ecbfea6671525ede18a3
[ "Apache-2.0" ]
permissive
WildMeOrg/wildbook-ia
5cd6bec338a5990c61988af7d4aee122d9a1fdc2
b28af2af01f1c66024e7a4fc20a01b5bd61ca863
refs/heads/main
2023-09-01T00:02:33.010244
2023-08-28T13:36:38
2023-08-28T13:36:38
70,123,664
48
16
Apache-2.0
2023-09-01T01:41:29
2016-10-06T04:49:07
Python
UTF-8
Python
false
false
28,680
py
wildbook_manager.py
# -*- coding: utf-8 -*- """ Manages local wildbook installations. CommandLine: python -m utool.util_inspect check_module_usage --pat="wildbook_manager.py" Utils: # TODO go to http://127.0.0.1:8080/wbia/createAssetStore.jsp tail -f ~/.config/wbia/tomcat/logs/catalina.out cat ~/.config/wbia/tomcat/logs/...
50ef03e87a1f202f5fa1aab3caf5c90cf1ffe210
bf90eb648705ae72c0f9efeae314dce5e5f82b81
/2019 ChickenReallyGood/2.py
73b6a11a4a481449f74641fad30976b9698bc083
[]
no_license
ParkHyeonSeong/Algorithm
c938e73e5114df9410d0984961dd6043dc5be9aa
d3e71efc3759b5bf129aa2bae668b20101e41dec
refs/heads/master
2022-01-07T05:56:25.643389
2019-06-16T13:38:23
2019-06-16T13:38:23
129,330,746
0
0
null
null
null
null
UTF-8
Python
false
false
1,052
py
2.py
result = 5000 order = input() try : for i in range(0,11): if order.split(" ")[i] == "1": result -= 500 elif order.split(" ")[i] == "2": result -= 800 elif order.split(" ")[i] == "3": result -= 1000 except : print(result) ''' 문제 정웅이는 어머니께 5000원이라는 큰 용돈을 받아 자판기에 갔다. 자판기에는 세 개의 버튼이 있다. 1을 누르면 500원...
8053555ad7ecc4a8661daaae01e77adc060be301
edd66d836b98f2a89fad5bdbc3389bc8ca821da3
/00 - Other/warmups_conditionals.py
51dcd4f50b6c3717134401aaccacc63b39a36cbe
[]
no_license
kaiwencaiwen/IBCS
ea9fb6150340c6d71921531e147512f2065fb0d6
c3d7fa64987555ccdb530841f704980b5c46bf20
refs/heads/master
2022-10-20T12:55:08.688067
2019-08-20T09:57:38
2019-08-20T09:57:38
149,076,842
0
1
null
2022-09-30T17:58:22
2018-09-17T06:08:32
Python
UTF-8
Python
false
false
843
py
warmups_conditionals.py
# 1001 # a) there are random generators but they are still not truly random # b) yes? # c) yes, but it's very complicated and hard to measure # is it a number? numb = "2" if numb.isdigit(): print("yeah is number") else: print("no is not number") # does it contain all vowels? stri = "papepipuo" stri = stri.low...
d3e0b975cce29f9b0c6e99af6d081c00064ab76e
220d83fb83af6a9001d8166adf4909822b0c191c
/kicksensesensor/kicksense_sensor_emu.py
d8a58b8158535dd1dc123c24b98c703a0e6498a6
[]
no_license
7oas7er/kicksense
6b42471833191b53476445e36872befe4bc53827
a3d1d73b6e215c9c5d912a7931bed63ac6492dfe
refs/heads/master
2022-12-11T16:28:22.247438
2016-04-27T19:20:43
2016-04-27T19:20:43
49,965,525
1
1
null
2022-12-09T09:36:09
2016-01-19T16:19:07
Python
UTF-8
Python
false
false
2,868
py
kicksense_sensor_emu.py
# This little programm emulates sensor data generated by the RaspberriPi with the SenseHat board. import argparse import http.client as httplib, sys, time, math, json, random import datetime PROTOCOL_PREFIX_HTTPS = 'https://' PROTOCOL_PREFIX_HTTP = 'http://' DEFAULT_KICKSENSE_SERVER_URI = 'stormy-woodland-9591.heroku...
47f859ab9214f195f218819b246f8e44b6fe8d68
b1429a10ba12358c7a88240690a0a160b54e0819
/tests/test_sandbox.py
1a31425173b62203633da1f1b45f88a69a5afbba
[]
no_license
ncmd/spike
35e692485e474e9b5e8da50312840653a2841c7e
18cee7dc6993fff06273bb73550c9c36f017d299
refs/heads/master
2020-05-07T16:38:12.676244
2019-04-11T19:10:13
2019-04-11T19:10:13
180,691,674
0
0
null
2019-04-11T01:34:16
2019-04-11T01:34:15
null
UTF-8
Python
false
false
6,560
py
test_sandbox.py
from spike.model.naxsi_rules import NaxsiRules from tests import TestsThatNeedsRules try: from urlparse import urlparse except ImportError: # python3 from urllib.parse import urlparse class FlaskrTestCase(TestsThatNeedsRules): def test_sandbox_visualize(self): data = {'rule': 'MainRule "rx:^POU...
1823964e1c82b1906953ac7010bfd5743b1d58fd
0f3147a3a60a90b40ac55a799596d9fd2cc85b3c
/inference/proto/inference_service_pb2.py
21f01f19da404d1c02cbbe61dd151724c2b829b3
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
nncrystals/maskrcnn-benchmark
1146cdcbb5b2f7df774c8ed79dc44e0f73f905e0
ccd06cae1a45fb05cc52e83abadcf742d8f7113c
refs/heads/master
2020-06-28T00:16:35.815196
2019-10-26T02:33:30
2019-10-26T02:33:30
200,090,293
1
1
null
2019-08-01T17:09:50
2019-08-01T17:09:49
null
UTF-8
Python
false
true
15,708
py
inference_service_pb2.py
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: inference_service.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.pr...
660c7d81b2f8f3b7585596a18230e363bc4ab0cd
9475dbf66009fcf639e7a8f51811d9a72e37e161
/App/migrations/0009_auto_20201122_1304.py
52ada08bfa78762a45d36aac3e65599c2987c51d
[]
no_license
ferhatChala/Social-services-managment
61786c350404d5a681ea9102fd0c9f55f578f0d5
0d20355b0eed89f21f375e415986b469a218d22a
refs/heads/master
2023-02-14T02:13:58.423043
2021-01-09T19:57:18
2021-01-09T19:57:18
315,788,988
1
0
null
null
null
null
UTF-8
Python
false
false
495
py
0009_auto_20201122_1304.py
# Generated by Django 3.0.4 on 2020-11-22 12:04 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('App', '0008_auto_20201121_2255'), ] operations = [ migrations.AlterField( model_name='prime', ...
b24824977d32195860471d8f98f38ef86b6c335c
af5e307f4685a870b88b6c8da75ed0b4ee9b369e
/player.py
14e418924cec7a5926ed8b8b4355eba6ff2df7a4
[]
no_license
feesome/adventurous
4c5d0e88061429f7d08de39224163926a0498558
53fa1a8ee8e314daa0f0d8a091341da39cee99f9
refs/heads/master
2020-03-28T00:03:29.655549
2018-09-04T16:18:15
2018-09-04T16:18:15
147,371,348
0
0
null
null
null
null
UTF-8
Python
false
false
4,162
py
player.py
import items import world class Player: def __init__(self): self.inventory = [items.Brick(), items.Knife(), items.Sword(), items.Medipack(), items.Herbs(), ] self.x = ...
549ff38e80fffbc1734d0d08db396c5cdbac36a0
af9df2de87385dab1845fc2fcb15ba5b36aeb095
/main_page/migrations/0003_auto_20191221_1253.py
6e83ed528d377579d07e8394ff8ac42ecde89c24
[]
no_license
geihar/django
1a0edd80bb99088225fda29c2a8865a6040e829f
3903213a00758f78edf97eabe69a3b845c4af9f5
refs/heads/master
2021-11-26T13:24:09.701432
2020-06-28T12:40:54
2020-06-28T12:40:54
229,979,865
1
0
null
2021-09-22T18:54:46
2019-12-24T17:26:37
HTML
UTF-8
Python
false
false
1,469
py
0003_auto_20191221_1253.py
# Generated by Django 3.0 on 2019-12-21 10:53 from django.conf import settings from django.db import migrations, models import django.db.models.deletion import django.utils.timezone class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ...
e0d774c65e1a4fc78423a3eb664120b74e49a735
ab4d932b39b9795c55995d45cfb4b84ec6894b9e
/main.py
02e0b559c85119fbf05b64c09eea36f169209c6e
[ "MIT" ]
permissive
kelly1266/YouTubeMP3Downloader
68333b42203c08d256db56c8ae2183d1ed129edb
ca4d8a994347551159889ba20b28e9fc7e9c2f4a
refs/heads/master
2021-06-19T04:23:52.577460
2021-06-15T11:10:27
2021-06-15T11:10:27
218,038,479
0
0
null
2021-06-15T11:10:59
2019-10-28T12:11:13
Python
UTF-8
Python
false
false
1,295
py
main.py
from __future__ import unicode_literals import youtube_dl from pydub import AudioSegment #from pydub import AudioSegment def run_downloader(parent_dir, url, name): filepath =parent_dir+ '/' + str(name) + '.%(ext)s' ydl_opts = { 'outtmpl': filepath, 'format': 'bestaudio/best', 'postpro...
8feda58dc4c7c01cc8e99b2aff269f88e9272ca2
d617d639e1f2a5e3c53e81912336048057ef84a8
/software/ADC_readout.py
215d4a237f97c54f792c0c37075605da4a197d36
[]
no_license
newini/i2c-sitcp-firm-soft
9ff6e2378f859cce880c3cc6bccaa600e950d3db
2f83b74ebccb07e8abc444e1a24848dded3bb5f2
refs/heads/master
2023-06-27T21:30:29.437905
2017-11-07T22:13:49
2017-11-24T19:54:03
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,864
py
ADC_readout.py
#!/usr/bin/env python #--------------------------------------------------------------------- # ADC readout software by using I2C & SiTCP # Require : Python, python-tk # Modules: matplotlib, pandas # Created : 11/7/2017 by Eunchong Kim #-------------------------------------------------------------------...
d79ee7ac397510f1a18723f509cfc58ad96ef865
2eefd38b659d7d11e9e7b28ee06fc8e70ded7d64
/6. 组合数据类型/6-8. 重复元素判定续.py
507ee8ee065ac10a2441f0ac02dff25ab1bdd3dc
[]
no_license
XiaoxiaoMa95/Basic-Python
02d3a64a5a5bbb18d9058f8b2f9b8e73d179484d
be127c8efa6001365e84a79eef280c8e7801c6ed
refs/heads/master
2022-07-17T22:34:08.064745
2020-05-18T02:35:02
2020-05-18T02:35:02
264,803,340
0
0
null
null
null
null
UTF-8
Python
false
false
90
py
6-8. 重复元素判定续.py
'''利用集合的无重复性改编6-7的程序,获得一个更快更简洁的版本'''
c616e53cac556e1bdd4965bc6a5b1aa9cd1978f0
8ccf82c4a650be2d96b376e9e5c08cd81568ede7
/TD3_Self_Driving_Car/td3_sdc/ai.py
928a508ef1f832c25db2bb1774958ecb23015197
[]
no_license
joyjeni/Reinforcement_Learning
07f035f0fc6c14e72fa1fc898dede641b2b7df11
271b244b8972825e0aafa6e3e952b0bf27965038
refs/heads/master
2021-01-07T16:20:06.298070
2020-05-10T00:17:00
2020-05-10T00:17:00
241,751,595
0
0
null
null
null
null
UTF-8
Python
false
false
13,227
py
ai.py
import numpy as np import torch import torch.nn as nn import torch.nn.functional as F import os import math #define replay buffer class ReplayBuffer(object): def __init__(self, max_size=1e6): self.storage = [] self.max_size = max_size self.ptr = 0 def add(self, transition): if ...
d3db7f12d77b1b716aa3d6ab08f8d51e4a18034c
a28be7d3e8b26b2ff799ab8f8dc3d18da4b78ddd
/notes.py
3a55b5047c4cdfdb3852bd7a1c97c451a34fc599
[]
no_license
mindfirst-admin/mindfirst
d8388a601bba5525e497c3e75bd260e794db2549
e3c4b54aa5ce71698fc644373b819274a85694fc
refs/heads/master
2023-08-13T13:59:04.528022
2021-10-12T15:58:49
2021-10-12T15:58:49
414,256,799
0
0
null
null
null
null
UTF-8
Python
false
false
6,155
py
notes.py
""" # for values images from django.shortcuts import render, redirect from accounts.models import Profile from django.conf import settings from django.contrib.auth import logout from accounts.extras_ import * from user_files.models import UserFiles import glob from pathlib import Path # Create your views here. def ho...
ac233e82203a7cdd3b69227c4574bd16cb0fa473
042e18c9bad00132e0079188a5a0bbe5243d8377
/net/scraper_demo3.py
f7e71985a715a52657d434e96d4f57ba95a11756
[]
no_license
zzpwelkin/java-lession
8a56e72558c9f16ed88ac0a7140b49e8ffbd4e14
00247e5640f91156106cbed7e93dc4a1dbd2b8ec
refs/heads/master
2021-05-14T03:12:41.251509
2018-01-09T16:58:08
2018-01-09T16:58:08
116,613,319
0
0
null
null
null
null
UTF-8
Python
false
false
2,806
py
scraper_demo3.py
#-*-encoding:utf8 #!/user/bin/env jython ## # Download dangdang books listed page of {url} and write items only to fine {fname} # Command Example: jython scraper_demo2.py "http://search.dangdang.com/?key=%B4%FA%CA%FD%D3%A6%B8%C3%D5%E2%D1%F9%D1%A7&act=input" a.txt # # Note: 1. 因为python语言中没有java语言中关于synched关键字相关方面的用法, 为了...
83c30b7a6f122dfee6d3c9d6a18d25fdf89ef64c
2a1d7cef10bd4d030e7f05c2eee342099ee3affa
/lecture1class_object.py
cf33bd376483f9a2094a8667137c5f1029695379
[]
no_license
mohd-tanveer/PythonAdvance
8dc096edc75975eaa44af005c691aa15428c9254
dd4ac13a7b59cee33f94fcb5c88f52f3ffc0a6ae
refs/heads/master
2022-11-18T21:05:11.547842
2020-07-20T06:38:14
2020-07-20T06:38:14
273,145,823
0
0
null
null
null
null
UTF-8
Python
false
false
1,222
py
lecture1class_object.py
#lectrue1 '''###Oops class objects|refrence variable in python. #example of Tvs design is a class each pyhysical tv is ===>object #example of Ganpati idol market==>Mold/dye plastic company==>5 cr 5 different sizes 3 lakkhs= mold/dye based on same mold/dye we can create n number of buckets with the s...
2bfaba613fd07f917856439b2d4d794722b21590
6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4
/FPNLQWdiShE7HsFki_1.py
19d9a0fab379d68aa95ef3699d1f1624331462ed
[]
no_license
daniel-reich/ubiquitous-fiesta
26e80f0082f8589e51d359ce7953117a3da7d38c
9af2700dbe59284f5697e612491499841a6c126f
refs/heads/master
2023-04-05T06:40:37.328213
2021-04-06T20:17:44
2021-04-06T20:17:44
355,318,759
0
0
null
null
null
null
UTF-8
Python
false
false
1,893
py
FPNLQWdiShE7HsFki_1.py
from math import sin, pi inner_edge = [i * 2 * sin(pi / 8) for i in range(5)] grid = "ABCDEFGH" ​ def spider_vs_fly(spider, fly): s_radial, s_radius = spider[0], int(spider[1]) f_radial, f_radius = fly[0], int(fly[1]) s_idx = grid.index(s_radial) clockwise = 0 while grid[(s_idx + clockwise) % 8] !=...
b0965fcde5214893839120c6e24829d5fc20c293
15c34f8d9f9ee4c2486058de0182d88c3d0afeb1
/200310_Uni_data/200310 Universities.py
21094d9f26afd5e1110fa7ffd0fd5cafec4222b8
[]
no_license
Nevotii/tidytuesday
1458aca807e11e3f03f24abfdddeebc315d37251
c410779d8951ad61f03f73e68be344d5a41c26f5
refs/heads/master
2021-03-24T19:56:10.793438
2020-03-15T22:24:45
2020-03-15T22:24:45
247,561,081
0
0
null
null
null
null
UTF-8
Python
false
false
2,514
py
200310 Universities.py
#!/usr/bin/env python # coding: utf-8 # In[1]: import numpy as np import pandas as pd import altair as alt from vega_datasets import data # In[2]: #Load datasets diversity = pd.read_csv('https://raw.githubusercontent.com/rfordatascience/tidytuesday/master/data/2020/2020-03-10/diversity_school.csv') cost = pd.rea...
dd91e56ea115e7ae2e8d4165e5eec42cc32d9ef9
efde9197a0a0ea1e11113e79bce87c3ded80573e
/codeforces/equalize prices again.py
577a5ec461b7d8754941fa5e8c12f800a5828a81
[]
no_license
dkarthicks27/ML_Database
bb370366e7b4d2ad06d992778c02815304a30f2d
9f3856b1ac2aead5df4e3ef05e1800b1152f777e
refs/heads/master
2021-10-27T10:45:47.258344
2021-10-24T10:42:55
2021-10-24T10:42:55
238,627,713
0
0
null
null
null
null
UTF-8
Python
false
false
270
py
equalize prices again.py
if __name__ == '__main__': q = int(input()) for _ in range(q): n = int(input()) arr = list(map(int, input().split())) res = sum(arr) if len(set(arr)) == 1: print(arr[0]) else: print(round(res / n))
c150dfaf76c17b6847fea7340f8a6cb73432cedc
2072e5533213ab3c5e9610188d6970ff90d3b92f
/pages/inputs.py
2f9af5255ecdcf954dfad46a7a0f41d76a4bc6f7
[]
no_license
we1rd1k/For_RusFinance
e1b26047e3e490ad333e871eb8333450f874bd93
1d9a3018baf893dcd93e9bbc18268d49de9c3a2f
refs/heads/master
2022-05-29T05:17:17.083317
2020-05-06T09:52:13
2020-05-06T09:52:13
261,149,909
0
0
null
null
null
null
UTF-8
Python
false
false
307
py
inputs.py
class Inputs(): correct_login = "namethatdefinitelyfree@gmail.com" incorrect_login = "namethatdefinitelynot@gmail.com" correct_pass = "123123" incorrect_pass = "123321" class URL(): mainPage_url = "https://stepik.org/catalog" loginPage_url = "https://stepik.org/catalog?auth=login"
3bf34c47c5c617eab8eec25e5e5441d4f277d98c
cdebc281d45d12173294288333f5caf9ea9d765f
/HW08/Hawley-hw08-2.py
f81bf46384bce9379102bbab96154054b14aff4f
[]
no_license
CheeseMan1213/CSE_1310
42d63fd66e185c5fb1cd8aa5cdbdb0d2811d466a
accec6ba64a2750ff9e757cf98365199ede1a029
refs/heads/master
2020-07-04T10:27:11.314810
2019-08-15T02:45:24
2019-08-15T02:45:24
202,255,974
0
0
null
null
null
null
UTF-8
Python
false
false
3,255
py
Hawley-hw08-2.py
""" James Hawley 10-14-2013 Howmwork#8 """ ##### Functions ##### def CreateFiles(f): # recives a whole input file File1 = open("students.csv", "w") File2 = open("courses.csv", "w") UStud = [] OrderNames = [] Ordered = False UClas = [] Stud = [] Clas = [] """ This code c...
2b65fd12fd918a5b254d218be1a1a7a363afd213
c172870386e870eee9c5c3d3bd2825e5b032064e
/tetrisClass.py
d45f2c569e377c349e60c71c896ab065db99b42b
[]
no_license
sagau59/TetrisRepo
54a1b2c677dff100546fdae0486e1a20a7d64ce9
5b77add024d871f78e1e30b2849953017218f8f6
refs/heads/master
2022-04-04T00:05:21.984376
2020-02-13T03:32:41
2020-02-13T03:32:41
237,114,559
0
0
null
null
null
null
UTF-8
Python
false
false
11,090
py
tetrisClass.py
# -*- coding: utf-8 -*- """ Created on Mon Jan 13 20:52:35 2020 @author: sagau """ import numpy as np import random import math NB_ROWS = 15 NB_COLS = 10 class Tetris: def __init__(self,nb_rows=NB_ROWS,nb_cols=NB_COLS): self.nb_rows = nb_rows self.nb_cols = nb_cols self...
cfaaaef0f97ec22999891b58af9b9c066a8f6edb
af32101fd140f861458b305a1d2e24caaff73ce5
/server/modules/qr.py
c44c845436e6c57fb7cd775c225f789bb6ac4a3e
[]
no_license
TimHeideck/LUNA
f42204f50bbd487a837c413301f8b2000ced91c9
b7999ef35646c14f8b30d489aae6f5e1114593d8
refs/heads/master
2022-12-22T17:33:56.872809
2020-10-02T10:28:24
2020-10-02T10:28:24
null
0
0
null
null
null
null
UTF-8
Python
false
false
576
py
qr.py
#!/usr/bin/env python3 import urllib.request SECURE = True def isValid(text): text = text.lower() if 'qr' in text: return True else: return False def handle(text, luna, profile): luna.say('Was möchtest du in den qr-code schreiben?') # Frage den Nutzer nach Inhalt antwort = ...
6a188ee657d199d7766586ac2cd2d7a3da9c0034
0c9fc39c2ca8d9e084ccffbc4fcdf36b1fb0bb2f
/old/flask_intro1.py
4809d6b671c5f090dc83c3f5209a6dd2d0c3fb68
[]
no_license
HaiderGhufran/HaiderApps
0a34e5a0946afa2ca62892e88ce19da24163f0e1
c172323e1d0b7cc10bc479d515e86ebd98d83a23
refs/heads/master
2022-12-23T19:03:11.825216
2019-09-04T09:27:17
2019-09-04T09:27:17
206,091,772
0
0
null
2022-12-10T01:00:12
2019-09-03T14:02:49
HTML
UTF-8
Python
false
false
556
py
flask_intro1.py
from flask import Flask app = Flask(__name__) @app.route('/admin') def hello_admin(): return "Hello Admin" @app.route('/guest/<name>') def hello_guest(name): return "Hello %s as a guest" % name @app.route('/user/<name>') def hello_user(name): return "Hello %s as a user" % name # return "Hello World fr...
ab1d4d9e2b530cc775bbb8bc5c24054566424828
bcb36baf1b3d3eceffba383f72c2b5335cc7048d
/exercism/python/anagram/anagram.py
50a0a749f2e52897769895bd94068bdaea63159f
[]
no_license
paulghaddad/solve-it
0aa1400cefab783f4ea757921811668fb2c9477c
e0f72be0fca82bc0378def5499f7158bafff975b
refs/heads/master
2023-01-24T03:46:24.285793
2021-07-06T19:44:29
2021-07-06T19:44:29
200,406,482
2
0
null
2023-01-06T13:53:43
2019-08-03T18:07:53
Python
UTF-8
Python
false
false
246
py
anagram.py
def find_anagrams(word, candidates): return [candidate for candidate in candidates if _is_anagram(word, candidate)] def _is_anagram(word1, word2): return word1.lower() != word2.lower() and sorted(word1.lower()) == sorted(word2.lower())
6cb9fa8b5e54752cbdea2e1704557980809cb489
d2716b36bdba8e9b5b55c22058b6a71543281519
/perception/useless/mc_pla.py
cd601f8f5eae7a460ce9c77de985265ada15dd5f
[]
no_license
dadaxian/machinelearning
8210b76bcea11b86bcd00f00b1aa6b5e248f99ac
c9091a22c800b3dba9570049cbda5330b06bc785
refs/heads/master
2020-09-03T04:55:33.423077
2019-11-22T15:57:34
2019-11-22T15:57:34
219,391,375
1
1
null
null
null
null
UTF-8
Python
false
false
5,187
py
mc_pla.py
#coding=utf-8 import pandas as pd import numpy as np import plot as plts import matplotlib.pyplot as plt from matplotlib.lines import Line2D import numpy as np # path="D:\\fallingspace\\perceptron\\data\\simpleData\\" # data= np.loadtxt(path+"ex4x.dat") # value= np.loadtxt(path+"ex4y.dat") path="D:\\fallingspace\\per...
e10f104a6e4d95587ba956866f93acb3bff57196
51ddc5fae86c4945c4f8ef9f2ec2ebea54340971
/biopharma_scrape.py
46846874e68f23d65b616b25fd78184752c87939
[]
no_license
Rostammahabadi/Projects
c21a150a0d2c6b54e684786da640a29f217d13c2
f1e17daade2d7b72d6218104be105fde9f97f382
refs/heads/master
2021-01-06T07:41:37.219575
2020-07-12T23:44:09
2020-07-12T23:44:09
241,247,355
0
0
null
null
null
null
UTF-8
Python
false
false
2,446
py
biopharma_scrape.py
from bs4 import BeautifulSoup from urllib.request import Request, urlopen import re import pandas as pd import numpy as np cat_date=[] website = [] price=[] disease=[] stage=[] ticker=[] descriptions=[] url= "https://www.biopharmcatalyst.com/calendars/fda-calendar" response = Request(url, headers = {'User-Agent': 'Mozi...
73186cbd1ac8f45f92a6a06401796824f669d275
7a982e197b5b5241f5d642f53987c6b59b939005
/denizen/migrations/0007_auto_20180922_1802.py
92e1e2a625c67658ee1c5a6218c5c39b7e41a4a5
[]
no_license
levtlv/lev-crm
c681e06e9af826f0edd494a29e82b7ab9ef899d6
9becf49b66ca0505995d95afc449c618cefd4772
refs/heads/master
2022-12-18T14:35:40.512221
2018-09-25T18:17:51
2018-09-25T18:17:51
148,908,599
0
0
null
2020-06-05T19:14:18
2018-09-15T14:21:19
Python
UTF-8
Python
false
false
2,609
py
0007_auto_20180922_1802.py
# Generated by Django 2.1.1 on 2018-09-22 18:02 from django.db import migrations, models import django.utils.timezone class Migration(migrations.Migration): dependencies = [ ('denizen', '0006_auto_20180922_0833'), ] operations = [ migrations.AddField( model_name='denizen', ...
530e0938bc6ac6dcd52dc8669d2a2deb03d36c82
412d0f01ab87c6b1e96f5f8afc263a3c33188b2f
/runner/runs/voxel_single_agent.py
71cd8af8df948c4b72abb42a1aaaf5fcdfe02cf9
[ "MIT" ]
permissive
neevparikh/sample-factory
7e48a8b4c7d0b534642bd90d28e66677f03b715e
1b57647a231359ed6794db72bcc39b4ebb01b39e
refs/heads/master
2023-03-16T05:15:05.945225
2021-03-09T02:28:03
2021-03-09T02:28:03
290,346,928
0
0
MIT
2020-08-25T23:36:01
2020-08-25T23:36:00
null
UTF-8
Python
false
false
211
py
voxel_single_agent.py
from runner.run_description import RunDescription from runner.runs.voxel_base_experiments import EXPERIMENT_1AGENT RUN_DESCRIPTION = RunDescription('voxel_env_v115_single_v55', experiments=[EXPERIMENT_1AGENT])
773782f9fe2b30881dc6674be489a2146e49b2bb
febf4382f9b46f3ae7588365c89d2c18ae66dcf2
/main_touch.py
46ddd1bfb27edd1572dd42fe95d8844ac3f4403d
[]
no_license
JurajSt/postgis
2c13ad5abc0681361caf5b089344b41fb23ed21a
d3ff79b4d374bf49d2df7be556b18d46bf235ec5
refs/heads/master
2020-12-02T11:25:06.321883
2017-09-12T17:58:24
2017-09-12T17:58:24
96,637,434
0
0
null
null
null
null
UTF-8
Python
false
false
849
py
main_touch.py
import os import DXFtoPostgis from connectionData import * import db import intersect, Output tablesKm = db.ImportShpToPostgres(DB, pathKm, field, field1, field2) #import kat. map; dostanem zoznam importovanych Km >> bude len jedna print tablesKm files = ([name for name in os.listdir(pathCad)]) # prejde vse...
0bd0c5858fb7a949bc8c4471af0b47924ac73bb6
c53a17dc453a8e71de5661103510dbb093ab249e
/recipe/admin.py
69d9f896bb1d95e6f4e06e9a4e83783e864d1318
[]
no_license
birkoss/meal-backend
afbbfd10bc37c8b6e9f36fbad27e119140bbe197
dace6fea7e3a502ca84933cb094d5abfa0b585fa
refs/heads/master
2023-08-07T16:49:48.112589
2020-05-17T19:43:52
2020-05-17T19:43:52
264,182,979
0
0
null
2021-09-22T19:01:10
2020-05-15T12:04:01
Python
UTF-8
Python
false
false
163
py
admin.py
from django.contrib import admin from .models import Meal, MealType, Recipe admin.site.register(Meal) admin.site.register(MealType) admin.site.register(Recipe)
08cd6d6955f58f6b97c47f84cb487dfe50626ace
0d0711c5588e80995d83cfd1fa814d8031f591a6
/offer/26.py
627c888cf40b27dfca3ace3594e0ccda2f5bf577
[]
no_license
lxlscut/leecode
f215a85e42904cf40c6ff83b04ac1e0b9cd12ee0
121256d6d488869dcd19e0df3fe3142206cad6dc
refs/heads/master
2022-12-26T15:11:39.888532
2020-10-12T03:13:32
2020-10-12T03:13:32
303,265,125
0
0
null
null
null
null
UTF-8
Python
false
false
849
py
26.py
def spiralOrder(matrix): res = [] # 计算出矩阵的高于宽 height = len(matrix) width = len(matrix[0]) start_x = 0 start_y = 0 while start_x<=width and start_y<=height: for i in range(start_x, width): res.append(matrix[start_y][i]) start_y += 1 for j in range(start_y, ...
bfcbdbe79f5198ef92a3a5355ec863743ef1044c
5e0c3b2bcc48a075083d49b6ca2250b560562e8e
/src/tests/api/test_teams.py
25d2f63a2d6726ebf7cec545071b50179ef4e3e5
[ "BSD-3-Clause", "Apache-2.0" ]
permissive
NorDULaN/pretix
7c0c799751611eeacac50aeb621290a638b5e082
e2b9fe8e71f3852721a42c594047d88f5181fd29
refs/heads/master
2022-04-25T17:57:41.339915
2020-04-24T14:52:11
2020-04-24T14:52:11
258,651,866
1
0
NOASSERTION
2020-04-25T00:10:54
2020-04-25T00:10:54
null
UTF-8
Python
false
false
8,476
py
test_teams.py
import pytest from django.core import mail from django_scopes import scopes_disabled from pretix.base.models import Team, User @pytest.fixture def second_team(organizer, event): t = organizer.teams.create( name='User team', all_events=False, ) t.limit_events.add(event) return t TEST...
8c26b08a28b04142710614d52ca1e0afc6ddff02
2f2a7dfc0e4abcc9627da2efeece01c0d39bc557
/scatter.py
efddb620452092d0228d5d49cf9d77805a7a4439
[]
no_license
Akshay7019/term-projects
0b33a6acb76b2541bd8dab9600a960efb0aebdbd
5506ab5397bc903ddafaaff5f0c164aeea0663b1
refs/heads/master
2020-12-24T09:57:10.134385
2016-11-15T08:10:20
2016-11-15T08:10:20
73,252,703
0
0
null
null
null
null
UTF-8
Python
false
false
2,772
py
scatter.py
import plotly plotly.tools.set_credentials_file(username='deepikasr', api_key='htiu1pfeoz') import plotly.plotly as py import plotly.graph_objs as go file_type = ['raster_images','developer_files','page_layout_files','data_files','game_files','database_files','executable_files','encode_files','web_files','ebook_fil...
42e77095d372eab99a102a76791fbd8b9267076d
44d8042c77a8f18c03bec92b619425a0787e3ddb
/Classes/py3interm/DATA/json_read_ex.py
eed20d85518c3497368fab0ad07889b8ff05f9f0
[]
no_license
Jgoschke86/Jay
3015613770d85d9fa65620cc1d2514357569b9bb
9a3cd87a5cff35c1f2a4fd6a14949c6f3694e3e2
refs/heads/master
2023-05-26T15:49:08.681125
2023-04-28T22:16:09
2023-04-28T22:16:09
215,616,981
0
0
null
null
null
null
UTF-8
Python
false
false
295
py
json_read_ex.py
#!/usr/bin/python3 import json with open('../DATA/solar.json') as SOLAR: solar = json.load(SOLAR) for planet in solar['innerplanets']: print(planet['name']) for planet in solar['outerplanets']: print(planet['name']) for planet in solar['dwarfplanets']: print(planet['name'])
a8c322ef02d911afce90ab8d8cdf360b8901e43c
1f46ed3ca565c5963c1829a8a5ed4c68c10e4a18
/omni.py
e2f0383b2b14f18b901be3adef929a9fe3db36db
[ "MIT" ]
permissive
vongoetz/omnifocus-google-docs
663ebdbcbcd0ca12811f40922a46fe55c080943d
95d6c2ba1229d688d9a17c90e395a2af23baed0c
refs/heads/master
2022-12-29T07:12:40.077006
2020-09-27T19:22:59
2020-09-27T19:22:59
299,079,524
0
1
null
null
null
null
UTF-8
Python
false
false
2,296
py
omni.py
import os import sqlite3 from config import params from datetime import date, timedelta def get_omnifocus_tasks(): # Connect to the database locally stored db_path = params['db_path'] # Create connection to local Omnifocus DB conn = sqlite3.connect(db_path) c = conn.cursor() # Get project...
03875ae8ec6995c2daab3d0c8855d892dcd2fb3d
69a88e1619cdb5d78957c1fc0ca8d34d47543204
/loader.py
3de1eaed6b5a80bd7267b9d7932f0f1f932fb46e
[]
no_license
renatick321/smsbot
baa75de6c77b34b2ccb463f0460151bd82967e8b
f20964677cd1fb8ed25c0fb0cfb4ae3cea24ec50
refs/heads/master
2022-12-13T14:25:25.985237
2020-09-19T10:21:22
2020-09-19T10:21:22
296,840,265
0
1
null
null
null
null
UTF-8
Python
false
false
325
py
loader.py
from aiogram.contrib.fsm_storage.memory import MemoryStorage from aiogram.contrib.middlewares.logging import LoggingMiddleware from aiogram import Bot, Dispatcher, types import config bot = Bot(token=config.BOT_TOKEN, parse_mode="HTML") dp = Dispatcher(bot, storage=MemoryStorage()) dp.middleware.setup(LoggingMiddlewa...
83239e8c1c39169c00876059419be2081972d3a2
c5baf6f4433a02694e5df191531f123526bbb59e
/src/donor.py
243f4842f3772c5c9852577acba0a3d7d23203ea
[ "Apache-2.0" ]
permissive
mdfGit/streaming_percentiles
93f96a5d0f87bf7da380e57cd20a4de9f5a48349
e6f32e8303db7bf32896a06014b0036ff9334589
refs/heads/master
2021-05-02T17:14:51.521521
2018-02-13T18:25:17
2018-02-13T18:25:17
120,687,444
0
0
null
null
null
null
UTF-8
Python
false
false
325
py
donor.py
__author__ = 'maf058' class Donor: def __init__(self): self.name_zip_dict = {} self.year_recipient_dict = {} def isRepeat(self, name_zip): if name_zip not in self.name_zip_dict: self.name_zip_dict[name_zip]="value" return False else: return T...
ff659b35f3cf2b85a9255d59b739d5f6d188da3f
f9d564f1aa83eca45872dab7fbaa26dd48210d08
/huaweicloud-sdk-moderation/huaweicloudsdkmoderation/v2/model/__init__.py
5388a2d3fe2b61c78ba45e65ee4c4204071fe9aa
[ "Apache-2.0" ]
permissive
huaweicloud/huaweicloud-sdk-python-v3
cde6d849ce5b1de05ac5ebfd6153f27803837d84
f69344c1dadb79067746ddf9bfde4bddc18d5ecf
refs/heads/master
2023-09-01T19:29:43.013318
2023-08-31T08:28:59
2023-08-31T08:28:59
262,207,814
103
44
NOASSERTION
2023-06-22T14:50:48
2020-05-08T02:28:43
Python
UTF-8
Python
false
false
3,943
py
__init__.py
# coding: utf-8 from __future__ import absolute_import # import models into model package from huaweicloudsdkmoderation.v2.model.check_result_items_body import CheckResultItemsBody from huaweicloudsdkmoderation.v2.model.check_result_result_body import CheckResultResultBody from huaweicloudsdkmoderation.v2.model.check...