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
4e22cc3763d08c7ae1a60ca5ea80a8b664c0da55
97279089ff9eae2aa14e21d20ced4abeafa6cf10
/app/migrations/0005_personel.py
5ec1ddbd9dae1d46b48eb8c21db57932a6255765
[ "MIT" ]
permissive
dj4n60/Mayor_Office
46487b3367de32d707abeb8e7cd102ee92839bb6
43218be0f7b53d8a93f77d61f115e61f27c24f81
refs/heads/master
2022-12-29T00:44:20.058731
2020-10-05T17:09:51
2020-10-05T17:09:51
null
0
0
null
null
null
null
UTF-8
Python
false
false
785
py
0005_personel.py
# Generated by Django 3.1.1 on 2020-09-18 10:05 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('app', '0004_auto_20200916_1421'), ] operations = [ migrations.CreateModel( name='personel', fields=[ ...
6ee09d292c133e9875a80724215f04db51b92d5c
6c231a97241f7c83b14c6fdd8e083e0ec948da4c
/trakt.py
fe2332d5606a5bd7ede2224ff87e2ef8e4cc9058
[]
no_license
juniorkrvl/trakttv-to-tvshowtime
38154d3292f113e014328cac4fc81dd4a2953ef6
997898740a9e8c2349e1c5a8b8e73622a044bb59
refs/heads/master
2021-08-28T02:30:14.030246
2017-12-11T03:36:40
2017-12-11T03:36:40
113,808,270
0
0
null
null
null
null
UTF-8
Python
false
false
3,667
py
trakt.py
import requests, json, urllib, sys, time, ConfigParser from datetime import datetime, timedelta class Trakt(object): def is_token_valid(self): parser = ConfigParser.ConfigParser() parser.read('config.ini') valid = False access_token = parser.get('trakt','access_token') ...
11687f0bf1b082c22d356d6c6265247952bfe86b
1089d317354a7829c53128892d2c19b4e9a5d23f
/wings/wings_main/migrations/0002_auto_20160421_0404.py
d4452236eed6206d689cbb3a2e46949bbb5b419c
[]
no_license
ccnmtl/wings
c17dc7b529b1c2cc5657b1805e588abcbccacde1
21c07dad3fe0d00c1554e38ec7941d16a8021d5e
refs/heads/master
2021-03-22T01:29:36.285215
2017-01-17T09:51:02
2017-01-17T09:51:21
26,318,925
1
0
null
2017-01-16T10:09:46
2014-11-07T12:30:52
JavaScript
UTF-8
Python
false
false
527
py
0002_auto_20160421_0404.py
# flake8: noqa # -*- coding: utf-8 -*- # Generated by Django 1.9.5 on 2016-04-21 04:04 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('wings_main', '0001_initial'), ] operations = [ migrations.Alt...
3c0f6f05433b5d657a42af53d0f4268b9369af0c
630132026888a681ff20700a8121ac6c7a904a1b
/Desafios/59MenuOpções.py
78e6e5db71f2c8ff88e3a4a88ae2a8c5302ec5ff
[]
no_license
YannTorres/Python-mundo1e2
a8158d6ea51b06276667e8d554d2a417822065d5
73b6615343d90bd1921a2940da5e18de8be04e33
refs/heads/main
2023-08-15T17:30:39.623357
2021-10-09T20:26:27
2021-10-09T20:26:27
415,414,113
1
0
null
null
null
null
UTF-8
Python
false
false
1,235
py
59MenuOpções.py
from time import sleep n1 = int(input('Qual o primeiro valor: ')) n2 = int(input('Qual o segundo valor: ')) escolha = 0 while escolha != 5: print('''[1] Somar [2] Multiplicar [3] Maior número [4] Novos números [5] Sair do programa''') escolha = int(input('Digite a opção: ')) if escolha == 1: ...
352c21f253577c87aa9a1b4d3223d0f8db9132b0
50948d4cb10dcb1cc9bc0355918478fb2841322a
/azure-mgmt-media/azure/mgmt/media/models/streaming_entity_scale_unit.py
4f74310062f346f8ef54c1f67fdd997ef21acf7b
[ "MIT" ]
permissive
xiafu-msft/azure-sdk-for-python
de9cd680b39962702b629a8e94726bb4ab261594
4d9560cfd519ee60667f3cc2f5295a58c18625db
refs/heads/master
2023-08-12T20:36:24.284497
2019-05-22T00:55:16
2019-05-22T00:55:16
187,986,993
1
0
MIT
2020-10-02T01:17:02
2019-05-22T07:33:46
Python
UTF-8
Python
false
false
937
py
streaming_entity_scale_unit.py
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes ...
d932b24e154d80f1e103cde9c520dd48a03b881e
0b64db8dc1c65c4fb4f2cd2250ce30ee8ab1a560
/Baekjoon/알고리즘별/브루트포스 알고리즘/2309.py
3ecbb7286c1d731b700ef4ad00366acf6a92c400
[]
no_license
kho903/python_algorithms
f3f09f23cfa0d1a1a1d74905f129b70cfc07d1e6
54fb0dae7cf8480b3361a2900c0e60eeacd60cfd
refs/heads/master
2023-07-11T11:39:25.549774
2021-08-13T10:48:09
2021-08-13T10:48:09
339,713,241
0
0
null
null
null
null
UTF-8
Python
false
false
280
py
2309.py
n = [] for _ in range(9): n.append(int(input())) s = sum(n) a = 0 b = 0 n.sort() for i in range(9): for j in range(i + 1, 9): if s - n[i] - n[j] == 100: a, b = i, j break for i in range(9): if i != a and i != b: print(n[i])
5704e85f55f3ddc07eeb6fcaaaa510cff98c2596
2a740dad2442bd141cc3103e3b9885fa74f5ec46
/Automatic Updation of Catalog Information/changeImage.py
474ff3b287aa62bae4ff4b780ea3c4a693c38e89
[]
no_license
Kouraj123/Google-IT-Automation-with-Python
24a3900792acad4a3f16c1a18d2027822f388940
c478aba1e40cc0a06230dc8c88446e1d77eae06b
refs/heads/main
2023-07-04T10:13:03.357035
2021-05-20T05:00:32
2021-05-20T05:00:32
314,593,374
2
0
null
2021-08-12T09:07:59
2020-11-20T15:28:15
Python
UTF-8
Python
false
false
427
py
changeImage.py
#!/usr/bin/env python3 from PIL import Image import os for file in os.listdir("/home/student-02-b6e027a30c35/supplier-data/images"): if file.find("LICENSE")<0 and file.find("README")<0: im=Image.open("/home/student-02-b6e027a30c35/supplier-data/images/"+file).convert("RGB") ...
246f8f6c07829c11bb87d2654911338dafb27d7c
ebd9c249d446d809abc9a0f3e4593f34922a1b93
/leetcode/787_cheapest_flights_within_k_stops.py
1f5a2885a1961f3493f710d0da99801ca12d6aaa
[]
no_license
jaychsu/algorithm
ac7a9dc7366f58c635a68bc46bf1640d2f5ff16d
91892fd64281d96b8a9d5c0d57b938c314ae71be
refs/heads/master
2023-05-11T00:40:39.237813
2022-09-14T07:43:12
2022-09-14T07:43:12
106,277,156
143
39
null
2022-09-14T07:43:13
2017-10-09T11:51:48
Python
UTF-8
Python
false
false
1,563
py
787_cheapest_flights_within_k_stops.py
class Solution: def findCheapestPrice(self, n, flights, src, dst, K): """ :type n: int :type flights: List[List[int]] :type src: int :type dst: int :type K: int :rtype: int """ min_cost = [float('inf')] * n # the minimum cost to get to node ...
37018d96bd0452bf667e96218e21c39e83eac9c0
2c82ca64a960b031fe0d5667711c91ce9528c405
/Queue.py
3735851cc2946c32dea41fec81533b0b5ad6e67a
[]
no_license
crain9412/pyalgos
a2802a024b3d7c2a5e7cfd82bc1ea18b4360584f
e9691fea304283c2f245ca9b1e4680997c8f851e
refs/heads/master
2020-09-12T01:25:28.537157
2019-11-29T18:13:43
2019-11-29T18:13:43
222,254,981
0
0
null
null
null
null
UTF-8
Python
false
false
1,629
py
Queue.py
"""Queue with a doubly linked list implementation for O(1) queue and dequeue""" class Queue: def __init__(self): self.head = None self.tail = None def __str__(self): current = self.head list_string = "" while current is not None: if current.get_next() is n...
9076a4bd6325954a80f98b1735d7e0976be4e317
a02bccc8442f48f0f82247374206a672af50115f
/清明/作业1.py
e1f44a54701fd5b5cf0ada439e0db3acbeafaaf9
[]
no_license
200504225/1803
c2391c74e5c6b86343c6711fe5a58300aac488d9
009ff2e80c8553bc3fe8f1be328b7e2c053974ea
refs/heads/master
2021-04-15T18:03:20.543851
2018-04-26T02:49:16
2018-04-26T02:49:16
126,918,240
0
0
null
null
null
null
UTF-8
Python
false
false
86
py
作业1.py
k =0 for i in range(1,5001): if i%35 == 0: print(i) k+=1 print("一共%d个"%k)
adadaf51081fa29a796b09100427a2d7918a3fe5
314b07fd6d9c332c42ca1756f3964c10992b3992
/app.py
3fcbea5511806c5ce69ab3d30ca177631d2c677c
[]
no_license
smartinternz02/SPS-10040-Personal-Expense-Tracker
d409686d17c7f592079af26641517501769d891a
9d121aa3402827fd73d804801d8f5e70bd4077c3
refs/heads/main
2023-04-30T07:51:33.565005
2021-05-28T14:52:49
2021-05-28T14:52:49
360,248,730
0
0
null
null
null
null
UTF-8
Python
false
false
7,042
py
app.py
from flask import Flask,render_template,request,redirect,session from flaskext.mysql import MySQL from sendgrid import SendGridAPIClient from sendgrid.helpers.mail import Mail mysql = MySQL() app = Flask(__name__) app.secret_key="hello" app.config['MYSQL_DATABASE_USER']='N2xPXoMdDK' app.config['MYSQL_DATA...
69f6438afed4956cd03058ed250f7d760aa07d23
20cbeeaa3ed3c4b6d4cfc0dffd7ad43319937f1a
/Module19/02_geography/main.py
0e2e0494ae9d4016a59a0b9a3c2adacdc6ee9f53
[]
no_license
Crank68/python_basic
665941d979b7b47cacd9677247b3dc5fbb0d63f6
9e58d4da68f629599f5d6229d6371bdf8a44bafb
refs/heads/master
2023-07-12T00:47:25.512098
2021-08-11T09:17:15
2021-08-11T09:17:15
397,529,992
0
0
null
null
null
null
UTF-8
Python
false
false
511
py
main.py
country = {} country_count = int(input('Кол-во стран: ')) for number in range(1, country_count + 1): text = input(str(number) + ' страна: ').split() country.update({city: text[0] for city in text[1:]}) for count in range(1, 4): city = input(f'{count} город: ') result = country.get(city) if result ...
e5f2ed99317c77522a06a9a54d36235bbbf04b8c
f39eed8eba55efbb1bdb1520add41e154fab5982
/bin/install
c985f539b74ca73e4499fabaa11761587702117c
[]
no_license
glynnforrest/salt-box
00e810dba95af964163acce059a9afc67f7b54d2
4447d73e0d8080c89f2e4209a4868ad90b3c54c0
refs/heads/master
2021-01-18T23:18:28.268949
2018-08-19T11:41:13
2018-08-19T11:45:52
27,883,067
1
0
null
null
null
null
UTF-8
Python
false
false
1,986
install
#!/usr/bin/env python import os from sys import platform from distutils.spawn import find_executable from subprocess import call def create_minion_config(): print("Create a salt-minion config pointing to the salt-box repo? (y/n): ") choice = raw_input() if choice.lower() == 'y': print("Creating /e...
e6e4c0d0f23b3b86a4f684824173823a09daeb0b
5a81d16cf8c331c037121d3f6513866bf607334e
/gui/handlers/tests/test_datawidgethandler.py
ca913c6046fd87dcf6e4c434ab085842d776a0c8
[]
no_license
yshao/weathergit
671a05faca5fb1259eb83bef4e14e5585aecda81
8c0d1b3d02757c5f089ed9b4b92fe8f5217b4f9f
refs/heads/master
2021-01-25T08:38:37.270459
2015-03-18T03:40:42
2015-03-18T03:40:42
26,833,103
0
0
null
null
null
null
UTF-8
Python
false
false
663
py
test_datawidgethandler.py
import unittest from gui.handlers.datawidgethandler import datawidgetHandler __company__ = 'Boulder Environmental Sciences and Technology' __project__ = '' __author__ = 'Y. Shao' __created__ = '1/21/2015' '10:07 AM' class test_handler(unittest.TestCase,datawidgetHandler): "" def setUp(self): "" ...
90b53dc5b342ae2e3a611918b77b58eeec9bc445
ff8fdd81374d78eca5ec7acdf83d728fc4d6219e
/sudoku.py
60ee615a824e127ae86c7c2a35b58cf06459fbcc
[]
no_license
timongll/SudokuSolver
ac51a91341574d1fa006c838d644d36ae930b218
b32f62a351f05cadfc0d4e758a949d5b685fed1f
refs/heads/master
2022-12-09T00:16:58.982562
2020-09-09T19:09:08
2020-09-09T19:09:08
294,204,556
0
0
null
null
null
null
UTF-8
Python
false
false
2,128
py
sudoku.py
#Steps #1 create board #2 find first 0 square from left to right then down done #3 check available numbers for that square #4 insert first number in square #5 repeat #2 | if doesnt work, insert next number| #if no numbers left, go back to previous square board = [[1, 0, 0, 0, 8, 4, 0, 0, 0], [0, 0, 0, 1, 0, 0,...
5699ac3e796da9bea85fb2a62b94393275d72cae
07be725001ac63daa106b9389ab9e6ac101e972f
/python/process/mpiLock.py
ca40d4f35332f242d3472730f1c1d81642a50bf7
[]
no_license
chenhaoenen/FCTest
3d125d7fde26f05eb2cd74f69e48b00071426595
2b014fa0004e75e6ae609072f79508f165159d03
refs/heads/master
2023-01-22T03:12:00.246552
2020-11-23T02:57:25
2020-11-23T02:57:25
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,446
py
mpiLock.py
# -*- coding: utf-8 -*- #------------------------------------------------------------------------------- # Author: chenhao # Date: 2020-08-23 # Description: #------------------------------------------------------------------------------- from mpi4py import MPI com = MPI.COMM_WORLD rank = com.rank print('my rank in...
87b20d24f22a30f3f34bb9a90a8a7f8245a471db
18525d30da8072d7200bf0e9d64daccb7bf35ad3
/pi_thrift/client.py
162d6094dd019170c59ae160cd126548d7430492
[ "MIT" ]
permissive
singmiya/RPC
75bc25dea1e273e08f6efccf0a78f52c1d023bb7
9b41fa512ad2d6f4aed56c1a714464daad050b8e
refs/heads/master
2020-03-21T09:02:59.425233
2018-06-24T13:48:28
2018-06-24T13:48:28
138,381,201
1
0
null
null
null
null
UTF-8
Python
false
false
732
py
client.py
#!/usr/bin/python # -*- coding: utf-8 -*- import sys from thrift.protocol import TCompactProtocol from thrift.transport import TSocket, TTransport from pi.PiService import Client, PiRequest, IllegalArgument if __name__ == '__main__': sock = TSocket.TSocket('127.0.0.1', 8080) transport = TTransport.TBuffered...
9c9c81f16689999937e98bb0264c39f7dbd3c878
fe7ffdf625e969cde05eaddfa9122a322e5172c5
/siamese/data_helper.py
1fc493c2d49a20072dda03f5c499be17f0b85490
[]
no_license
zouxiaoyuonly/siamese_dssm
53d5189340a6ffefceed48d5ddcb3a22b349eeca
f339341a79bcf1a08bef8610c4f727bb4173131d
refs/heads/master
2021-10-08T02:22:00.843423
2018-12-06T12:06:49
2018-12-06T12:06:49
null
0
0
null
null
null
null
UTF-8
Python
false
false
8,033
py
data_helper.py
# -*- coding:utf-8 -*- """ 应用于Siamese LSTM的data util 输入文本为清洗好的文本,格式为 seq1_token1 seq1_token2 seq1_token2 ... seq1_tokenN\tseq2_token1 seq2_token2 seq2_token3 ... seq2_tokenN\tlabel 文本1与文本2以及label用"\t"隔开 文本之间的token使用空格" "隔开 label为0或1表示相似与不相似 """ import os import pickle import numpy as np import collections from sklearn...
bce3bd9704c1b21f2654cf90a3e455db06993569
5e3c1647f81958de67a79fb6b266d8c7a71cc785
/emoji/views.py
9e9a39ee41a50478aa4508b4dfc44bbe78c51a7e
[ "MIT" ]
permissive
gaqzi/django-emoji
38ad353ac6c56d670422a86217fb4f0fb7fadc80
e9cef5ed9baa00da8ee79a5cfb51aacde462bdff
refs/heads/master
2022-10-06T15:51:57.010540
2019-10-02T03:34:30
2021-02-05T14:12:41
9,909,990
95
22
MIT
2022-12-11T23:41:49
2013-05-07T11:06:58
Python
UTF-8
Python
false
false
301
py
views.py
import json from django.http import HttpResponse from django.views.generic import View from . import Emoji class EmojiJSONListView(View): def get(self, request, *args, **kwargs): return HttpResponse(json.dumps(dict(Emoji)), content_type='application/json')
7649fb8619bb93a0a980caad038895d205ecc135
01ab29cf9d5bf518430507c52bc5ed0effa46fae
/app_sdk/walkoff_app_sdk/common/async_logger.py
795a49ad7aefd1202f86b4967a576949df3e6156
[ "CC0-1.0" ]
permissive
frikky/WALKOFF
825d2288709d18427166f73635f4e3b559b9fd0f
46fdfee7e10bfb18b4e62ec9ff508cae1e32ed82
refs/heads/1.0.0-alpha.1
2022-11-25T18:17:32.828256
2019-05-10T16:45:38
2019-05-10T16:45:38
185,967,174
15
3
NOASSERTION
2022-12-02T10:20:17
2019-05-10T10:14:34
Python
UTF-8
Python
false
false
9,211
py
async_logger.py
import logging import asyncio import sys import warnings from logging import StreamHandler, DEBUG, INFO, ERROR, WARNING, CRITICAL, raiseExceptions class AsyncHandler(StreamHandler): """ An async wrapper around logging.StreamHandler for async log streams like Redis PUB/SUB""" def __init__(self, stream=None, lo...
7e0a78f1e70ab44a1848a3b225c68e58c78b6f52
a3371b2b062f7ecf36ee16d0f5e9ef803ecc83c5
/tests/d.py
e60913cd3002a38f34c9deffd6b12aa52a15cd65
[]
no_license
Helirray/pythonProject1
e3d88f216ec68791c2f56c0f8fb1e96dd4a38f0a
7fc52981dfef1f571a992b9550aedcad83fcf0c9
refs/heads/master
2023-08-18T20:53:15.394380
2021-10-12T07:54:51
2021-10-12T07:54:51
387,743,225
0
0
null
null
null
null
UTF-8
Python
false
false
226
py
d.py
with open("input.txt", "r") as input_file: with open("output.txt", "w") as output_file: for i, line in enumerate(input_file, 1): output_file.write( "{}) {}".format(i, line) )
e4690780830334463b6e648bf503c5fefbc91646
9868872fa7fa9f8383088ee19839862feaa2c7a1
/malha/tests.py
c5f19ed81e87dc40ec523bb4cd10009e560d4bf5
[]
no_license
dgtechfactory/comfortbus-web
f4cf4ac708ec744fda4aa2d607058b117a8dd660
8607f311c304b99157850c549a34dabc424e5fef
refs/heads/master
2022-12-22T04:46:35.400485
2016-07-05T18:49:49
2016-07-05T18:49:49
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,090
py
tests.py
# -*- coding: utf-8 -*- from django.test import TestCase from malha.tasks import populate_linha from malha.models import Linha # Create your tests here. class LinhaTest(TestCase): def setUp(self): self.nome_temp = u"Linha Ficticia que com certeza não existe" self.pk_temp = 1 def test_popul...
e700f9ed2990e0d87798efc1cf0ab1289703716f
3bac70d340f327c5d993b6f5f678cc90c7dda3d6
/auction_api/requirements/base.txt.py
ac9b7c4abe18c1d385af565b5948e28f22310270
[]
no_license
salta-kozbagarova/diploma-api
3835f7c8d49462c58874618330b7b75cec64f4ad
04166bd1be9132ff3b53cc74d08d837dc3d920c6
refs/heads/master
2023-01-09T01:15:18.028721
2018-06-16T14:45:54
2018-06-16T14:45:54
118,411,954
0
0
null
2022-12-26T20:36:32
2018-01-22T05:44:34
Python
UTF-8
Python
false
false
787
py
base.txt.py
X XXXXX XXXXX XXXXXX XX XXXXXXX XXXXXXX XXXXXXXX XX XXXXXXX XXXX X XXXX XXXXXX XXX XXXXXXXX X XXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX X XXXXXXXX XXX XX XXXXXX XXXXX XXXXXXXXXXXXX X XXXXXXXXXXXX XXXXXX XXXXXXXXXXXXXX X XXXXX XXXX X XXXXXXXXXXXXX XXXXXXXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXXX X XXXXX XXXXXXXXX...
24d14bf4431d6f4e44f513ac80cfdecdbc7452b1
516e6bd849ab9969a7b579933b386224496126fa
/app/admin/__init__.py
d680c69e9f5051805432e1268b6f8a36c0658ed7
[]
no_license
stamaimer/CrawlerProxyService
c8864421d7b1071ac71392b2dadf93a84aab24ed
80ca9afd57e04be7bff0c84e6d35f0282209fcac
refs/heads/master
2020-06-12T13:23:15.655756
2018-03-25T07:58:06
2018-03-25T07:58:06
75,814,296
0
0
null
null
null
null
UTF-8
Python
false
false
492
py
__init__.py
# -*- coding: utf-8 -*- """ CrawlerProxyService.app.admin ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ stamaimer 12/07/16 """ from flask_admin import Admin from flask_admin.contrib.sqla import ModelView from app.model import db from app.model.proxy_ip import ProxyIP from app.model.proxy_site import ProxySite admin...
a854bd9cf9b198da2c1c2ad4d4994b44c5362e78
a67a0334716cd977e0acb1e4d0b26dd5fb2939dc
/2019/aoc2019/day11.py
f247267c0480f464cf71db68f66cb7f8faea7b2b
[]
no_license
ErlendHaa/advent
5cc5fb549a83ba93bf241ec8f0e7df1f0400fd59
68c71fdcce71ac38bdfd03dda59792e85f608254
refs/heads/master
2021-12-27T17:56:31.667028
2021-12-21T09:40:18
2021-12-21T09:40:18
225,401,813
0
1
null
2020-12-15T07:53:20
2019-12-02T15:03:58
Python
UTF-8
Python
false
false
1,865
py
day11.py
from collections import deque from collections import defaultdict from os import system from time import sleep from . import helpers import numpy as np def parse(path): with open(path, mode='r') as f: return [int(x) for x in f.readline().split(',')] BLACK, WHITE = 0, 1 LEFT,RIGHT, UP, DOWN = 0, 1, 3, 4 ...
4555211bd52f4ae68c7987582b7f07cb2cff91d1
3516574463d0613df0e6c09a9b147fb5fa6eb67e
/addsignup.py
dea56f958f95edef408fde98dc5daa7d06e4d11c
[]
no_license
ydproject/aoa
316b1c21556282b37c4f358561b37ccdada2dd75
e366ef811d2cac84849fdd0a1166dbd11fd055a6
refs/heads/master
2020-03-23T05:29:37.669664
2018-08-27T15:35:47
2018-08-27T15:35:47
141,147,202
0
0
null
null
null
null
UTF-8
Python
false
false
6,129
py
addsignup.py
# -*- coding: utf-8 -*- from PyQt4 import QtCore, QtGui import sys from util import * from log import INFO, ERROR class AddSignUp(QtGui.QWidget): def __init__(self, object=None): super(AddSignUp, self).__init__() self.faWindows = object frame = QtGui.QFrame(self) #编辑控件 fo...
994d81d36b2a855285cf9dc91f6edf3616d40dac
59976302a73b91a4e539428ec09cc6e419fb77ec
/TP_8_Listas/TP2_EJ7.py
3a789f76fce074b84af787760f779e916d934e62
[]
no_license
aguscoppe/ejercicios-python
5f8e839cb4cb7d789555c30e1de37da7308f01b5
cc001b520225e623a577ea6fce63c49eeee4803b
refs/heads/master
2023-01-13T07:08:16.203962
2020-11-16T21:42:21
2020-11-16T21:42:21
302,476,723
0
0
null
null
null
null
UTF-8
Python
false
false
288
py
TP2_EJ7.py
def intercalarListas(lista1, lista2): x = 0 for i in range(len(lista1) + len(lista2)): if i % 2 != 0: lista1.insert(i, lista2[x:x+1]) x += 1 lista1 = [8, 1, 3] lista2 = [5, 9, 7] intercalarListas(lista1, lista2) print(lista1)
d50f1ae6260b4cb4da8c26d4e06fa15cdd47eca3
ad11eaa104b655761fec1b13abbc961687d4f122
/secured/tradier.py
74ef49b8c20651c8928cb847e8d7e45c6e0a3970
[]
no_license
konradbender/finance-project
f21fc139897a939e37901b7bdabc3f05413e1405
0cc5b98421265a47c8e4fd12b46fa41cb59678ac
refs/heads/master
2023-07-20T07:44:55.133823
2023-07-10T17:18:51
2023-07-10T17:18:51
350,985,164
0
0
null
null
null
null
UTF-8
Python
false
false
12
py
tradier.py
my_token =
c3fef448c7d6dd83b425b28d5f198cc252b2ed91
b0aa9a49077e514b6997dc1405069434970239ec
/Evil or Odious.py
9794e75e1f5fa9953aef4b4ec6378e1c2987f376
[]
no_license
Katarzyna-Bak/Coding-exercises
3cadde05f845b0b1a52ae22dcea82e61644f52da
5309e5b3fe662d28afda6969a1988dadda8e67c3
refs/heads/main
2023-08-17T08:38:04.812286
2021-10-07T16:04:47
2021-10-07T16:04:47
401,006,543
0
0
null
null
null
null
UTF-8
Python
false
false
669
py
Evil or Odious.py
""" The number n is Evil if it has an even number of 1's in its binary representation. The first few Evil numbers: 3, 5, 6, 9, 10, 12, 15, 17, 18, 20 The number n is Odious if it has an odd number of 1's in its binary representation. The first few Odious numbers: 1, 2, 4, 7, 8, 11, 13, 14, 16, 19 You have to...
ee5d3299390494048784c7b7a7d593e2c05eba67
269eee3d61d4552883e8f8e0adf12185c1a90a75
/login.py
f17ef612cb0379b6ce2507d6acb3ae9f7885db05
[]
no_license
psahire/Git-Tutorial-Devops
b81167be370e0681397d619607f6933f4f85a1bf
feef2342a97ebe775ccf7606311ffe5fda1b3825
refs/heads/master
2021-07-10T16:11:34.855494
2020-11-22T06:41:11
2020-11-22T06:41:11
212,203,479
0
0
null
null
null
null
UTF-8
Python
false
false
765
py
login.py
import pyodbc import pandas as pd conn = pyodbc.connect(r'Driver={SQL Server};' r'Server=DESKTOP-D63SI5E\TESTSQLSERVER;' r'Database=SSISPractice;' r'Trusted_Connection=yes;') curr = conn.cursor() curr.execute('select * from customers') data1 = ...
6efa3680f91a71506a1e6969852c9b48fe10697c
8f2f88d0ef63898baec34abada273b912050a616
/dna.py
3448abe0a30e151dfc5ef641b847ba939f701c25
[]
no_license
dvanatta/Rosalind
27f4ac087cbf8064f0ed29881195bc4748e772c3
0617c1cf55ab2028d896e72b6ac830d439a16555
refs/heads/master
2020-12-25T18:20:01.776157
2017-02-22T00:20:47
2017-02-22T00:20:47
24,433,016
0
0
null
null
null
null
UTF-8
Python
false
false
21,288
py
dna.py
""" Functions for bioinformatics analysis DKV 9/2014 https://github.com/dvanatta/Rosalind Notes ----- Focus on functions which take dna string as input Use each rosalind problem as a unit test case for these functions TODO ---- Move tables to separate file or global variales Could refactor all of this to use real 2D ...
cf1c422068b054beb16c29ee44e4f9ebd9607d94
9b2ef0b58cfa73f8beba7c1c6b5b5d6b2670d321
/tees/Detectors/Detector.py
1ff976dce6f53edfc4738dfa2362e08b2e92f734
[ "MIT" ]
permissive
sbnlp/2017BioNLPEvaluation
0ea3a953d4371dd6bd2bfdb8b8a18f6000725885
79c4a556fe48a204c95fdc0ee388d1bd9829e515
refs/heads/master
2023-07-21T23:41:52.035592
2020-05-09T18:37:19
2020-05-09T18:37:19
92,707,593
2
0
MIT
2023-07-06T21:08:48
2017-05-29T04:52:15
Python
UTF-8
Python
false
false
10,859
py
Detector.py
""" The base class for the object oriented interface. """ import sys, os import shutil import itertools import tempfile sys.path.append(os.path.dirname(os.path.abspath(__file__))+"/..") from Core.Model import Model from StepSelector import StepSelector from StructureAnalyzer import StructureAnalyzer import Utils.Parame...
ab30dea4126adb628721e7da7c7a5afd028ac994
f6f1659bf7710f5e72430d21061332607b3911f8
/0x15-api/3-dictionary_of_list_of_dictionaries.py
51903ad6a8478cac5e26da5d24117b8352273357
[]
no_license
cmdelcarmen/holberton-system_engineering-devops
22ea73d7ac6527250b77be960e79ce6ee055e83d
4fdc679621a8b41018168ea7ac99bfeaa8d27635
refs/heads/main
2023-08-14T09:56:49.840029
2021-10-08T02:37:36
2021-10-08T02:37:36
333,446,519
0
0
null
null
null
null
UTF-8
Python
false
false
885
py
3-dictionary_of_list_of_dictionaries.py
#!/usr/bin/python3 ''' Using what you did in the task #0, extend your Python script to export data in the JSON format. ''' import json import requests if __name__ == "__main__": emp_dict = {} for emp in requests.get( 'https://jsonplaceholder.typicode.com/users').json(): ...
d31ccbb339cfe37ed880dbeb79e2a082e27f0b84
c06a572c9b96e5c6893b74bb4492022a60c33590
/hooklogonehotforlstmautoencoder.py
a084437ccd85f992cc34672907d4254188726aed
[]
no_license
pups1108/malawareclassification
5167055e989c7c7b56205d8474a94984dbb1d455
5ae8b0755e453f79c0ce4f55c3f9747c36f25bb8
refs/heads/master
2020-03-07T21:13:13.863000
2018-04-17T05:56:44
2018-04-17T05:56:44
127,720,749
0
0
null
null
null
null
UTF-8
Python
false
false
6,259
py
hooklogonehotforlstmautoencoder.py
import os import traceback from pandas import read_csv from pandas import DataFrame import numpy as np dir = "/Users/user/Desktop/hooklog" def gothrougheveryfile(dir): # go through every csv and concat to one csv this part has move to concatallcsv i = 0 filenamelist = list() for subdir in os.listdir(di...
c4b34a860d62699601b79a5499ce4f595fa33f64
14580ebe951982656618c0f5c97430f908ecd149
/roll_engine/models/deployments.py
e8d3feae334c32c419ef815dbbdde2d24a7f496a
[ "Apache-2.0" ]
permissive
ctripcorp/tars
c123f9f79aaa58d1f1f08b18924dc02e49107f16
d7954fccaf1a17901f22d844d84c5663a3d79c11
refs/heads/master
2023-08-30T09:16:49.297300
2018-08-15T16:14:20
2018-08-15T16:14:20
76,854,141
396
170
Apache-2.0
2022-02-12T03:07:11
2016-12-19T10:53:19
JavaScript
UTF-8
Python
false
false
8,164
py
deployments.py
from __future__ import absolute_import from celery.utils.log import get_task_logger from roll_engine import constants as _ from roll_engine.exceptions import (ActionNotAllowed, ActionNotExist, MetaMissing, DeploymentError) from roll_engine.fsm import FSMixin, FortFSMixin from roll_...
3ec9fd32971a10e8a403fb9006dcf39af3579e4e
75896903a1dc67f84673393ee20fc21065693b7a
/PythonFirst/generate.py
8ef933106b79ebf2afe937742d0740274da52930
[]
no_license
zooee/PyDevtest1
dcd1fd73193a8205bdaa3f373319ddf52f1a5393
abbf035ecf950b41b84996f8644ecfb00aec3dd0
refs/heads/master
2021-01-17T05:09:45.299378
2016-08-01T09:01:23
2016-08-01T09:01:23
64,647,586
1
0
null
null
null
null
UTF-8
Python
false
false
1,732
py
generate.py
#encoding:utf-8 ''' Created on 2016年3月28日 @author: Administrator ''' #L = [x * x for x in range(10)] #print L #g = (x * x for x in range(10)) #print g #print g.next() #for n in g: # print n def fib(max): n = 0 a, b = 0, 1 while n < max: print b a, b = b, a + b ...
60282f507835d98802bdbfbb4f94036cd1d96779
9b06dd37c490c1a5a107129e75299680d4b36e71
/vaeseq/util.py
a98ee277369950231a63dae375b005a2a7bd18e1
[ "Apache-2.0" ]
permissive
ghas-results/vae-seq
5962c0fc5b84c03bfad666242190c54c1ca00fb6
0a1bace02c6bac6ab991ab8203a203d3061615ec
refs/heads/master
2023-08-26T17:17:20.558233
2018-03-23T05:23:52
2018-03-23T05:23:52
null
0
0
null
null
null
null
UTF-8
Python
false
false
10,431
py
util.py
# Copyright 2018 Google, Inc., # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writin...
cbfbeb909fbf235397c52a0c4fb32507cd1ca423
953d977d770a4bf486b30b59e95ad6e267bbea10
/src/3_model/minlp/old/attempt-4/subproblem.py
8d5c62a4c9efd7cb3d8bcf53bceaa1723044a57a
[ "MIT" ]
permissive
akxen/rep-gep
a4a3adb9bb085497e1b8e90913666eb7b452c593
ed470cd60ecba110e228ce54b8c471cb9cb0256d
refs/heads/master
2023-04-12T21:26:02.797180
2020-12-22T07:55:22
2020-12-22T07:55:22
180,694,769
1
0
MIT
2022-12-08T06:21:22
2019-04-11T01:57:06
Python
UTF-8
Python
false
false
4,864
py
subproblem.py
"""Classes used to construct investment planning subproblem""" import time import pickle import logging from collections import OrderedDict from pyomo.environ import * from pyomo.util.infeasible import log_infeasible_constraints from data import ModelData from components import CommonComponents class...
ae12714ca6663597ea5c2a10e9139a9e584ec366
1c55f850b24a70787e8d5960db6da2fe7a1a7b3f
/ita.es/init.py
30113323da106e1ec255e769b108a3442853c97d
[]
no_license
mmngreco/aguathon_2019
90b082e33c0831a96aa1390cc969559a5c8e8eeb
95bc627e648ef07d2ab6275ee81b4f5b05307f20
refs/heads/master
2020-04-26T00:40:51.637185
2019-10-03T16:41:14
2019-10-03T16:41:14
173,186,010
0
0
null
null
null
null
UTF-8
Python
false
false
310
py
init.py
"""Initialize.""" from pathlib import Path FILE_DIR = Path(__file__).parents[0].absolute().expanduser() ASSETS_DIR = FILE_DIR MODELS_DIR = ASSETS_DIR FIG_DIR = ASSETS_DIR DATA_DIR = ASSETS_DIR IN_FILE = DATA_DIR / "ENTRADA" / "datos.csv" OUT_FILE = DATA_DIR / "SALIDA" / "resultados.csv" LOG_DIR = ASSETS_DIR
47209ae6cffb104d21243799920c2cef8662da02
cb30156b13887b317920681d810d27bae8432dfe
/app/landing/urls.py
0a9244bc859e1b83ff6a025b13b081c6e8255ab7
[]
no_license
Goobs/proto
a6f72c74e5cd7957a09e55295e7d87a1a2238fb6
a6db9fdf151e9e96af76bba6dc9de584944585de
refs/heads/master
2016-09-06T16:19:42.028063
2014-10-22T05:32:34
2014-10-22T05:32:34
null
0
0
null
null
null
null
UTF-8
Python
false
false
300
py
urls.py
# -*- coding: utf-8 -*- from django.conf.urls import patterns, include, url from django.views.generic import TemplateView from .views import * urlpatterns = patterns( '', url(r'^$', IndexView.as_view(), name='index'), url(r'^subscribe/?$', SubscribeView.as_view(), name='subscribe'), )
75c38188e3281b22ef52f675bc6f38286beff512
28a70ead818d179fb6d9609c7c0a529aa886746a
/sample5.py
7b00be95d5ec2db2a7065bc9577276c9d16aee3b
[]
no_license
pranavpatil004/sentiment_analisys
3a4444b9a8cf5451ec4e9d0a083056e6402c2462
fc58748ae9e098db47bf69372cb5c41ff526106d
refs/heads/master
2021-06-29T02:26:24.568078
2017-09-15T11:42:33
2017-09-15T11:42:33
103,350,115
0
0
null
null
null
null
UTF-8
Python
false
false
702
py
sample5.py
import xlwt from xlrd import open_workbook target_column = 0 # This example only has 1 column, and it is 0 indexed book = open_workbook('voc.xlsx') sheet = book.sheets()[0] data = [sheet.row_values(i) for i in xrange(sheet.nrows)] labels = data[0] # Don't sort our headers data = data[1:] # Data begins on t...
92d698526a502192f8290def22952347edd20056
8c94d4b94c2c9f0fad17051220a559789ad2aea6
/extractor/utils.py
a2eb892a6b61a5428c0a04f6c4f404a725ef2243
[]
no_license
Lucas-Rufino/Information-Retrieval-System-for-TV-Series
1334a286bb0e244179b8d2c1a4590254032a71a7
62854cf01124fb13a8f525a46d391b89d6f62f45
refs/heads/master
2021-04-12T11:06:00.349693
2018-07-05T16:21:05
2018-07-05T16:21:05
126,422,054
4
1
null
2018-07-07T20:08:56
2018-03-23T02:29:19
JavaScript
UTF-8
Python
false
false
914
py
utils.py
from bs4 import BeautifulSoup as bs import re import json as js import requests as rq def visible(element): if element.parent.name in ['style', 'script', 'html', 'head', 'title']: return False elif re.match('<!--.*-->', str(element)): return False elif re.match('\n', str(element)): return False el...
d819aef8f44c2d623e59fe335faa70250d3c3e57
1fa3fcbd6a3dc99a872b7c6d72c8faa75ed35e6a
/src/main.py
aa9a9c8d732f886e9803719645a18b2dd0a5d88b
[]
no_license
Mgraciaverdura/reviews_NLP
7908a2fe40f99f68867e8c925e46bb846d9c2d02
df1925b83a72a2cf3d4ccbe5824ad372809b006c
refs/heads/master
2020-07-22T16:17:48.217197
2019-09-09T10:54:12
2019-09-09T10:54:12
207,257,917
0
0
null
null
null
null
UTF-8
Python
false
false
5,431
py
main.py
from functions import spacy_tokenizer, get_titles_from_cluster, get_df_from_cluster import pandas as pd import nltk nltk.download('vader_lexicon') from nltk.sentiment.vader import SentimentIntensityAnalyzer import matplotlib.pyplot as plt from matplotlib.ticker import FuncFormatter import numpy as np import string impo...
3b25fc3eddb2c946b1986bfc115d4de61e22925a
6e432b51822e19b13a2fe2e342a914c61733df2d
/poppy/models.py
71f49c778952da52d568080d40fc079c6ac9678c
[]
no_license
AlphaTechnic/poppy_project_mvp_backend
0ea61eccb9cfe7bc5a528372bf9629d3fe8c174f
9bd27127db24aba80fa9fccbf4c60f5fe842b4b7
refs/heads/master
2023-06-23T16:36:57.367402
2021-07-20T08:27:20
2021-07-20T08:27:20
327,976,333
0
0
null
null
null
null
UTF-8
Python
false
false
4,898
py
models.py
from django.db import models from django.utils import timezone from django.conf import settings from multiselectfield import MultiSelectField from django_better_admin_arrayfield.models.fields import ArrayField class PetOwner(models.Model): user = models.OneToOneField(settings.AUTH_USER_MODEL, on_delete=models.CAS...
1cb87c050817b9e9fbe8d371f8780ec05ca3eec1
d9d9dd2489504b96fdef80130ef9287963f5d68c
/tests/test_orientation.py
8cb7acdaa78a4a8cca53e8d9b5307b4f70568670
[ "MIT" ]
permissive
josuemtzmo/trackeddy
128b3b9a6ef99bbdc9034d415342d340fbfabd94
de8624aa865941bd0dab38575de3dbf99a512c38
refs/heads/Trackeddy-V1.0
2023-05-22T16:42:28.670748
2021-09-12T05:49:44
2021-09-12T05:49:44
98,275,350
46
18
MIT
2021-09-12T05:49:45
2017-07-25T07:04:31
Python
UTF-8
Python
false
false
4,096
py
test_orientation.py
################################ ## Set diagnostics to True ## ## If you want display the ## ## Tracking process. ## ################################ diagnostics=False ################################# ## Import packages ## ################################# import sys from trackeddy.tracki...
3279c9d1f175e91151e68164b90d7422fd20c532
14785185463e6528d4651d42dcfef95b602a570f
/forms/login.py
e94ac823202fcbc00b394fb47a04db19a4238a50
[]
no_license
anabgiacometti/attendance
b6231921edcf414c44b2575500938f3bdb506a41
64b9d5dbbb307fc379c67ac4fbaf289f84df4a09
refs/heads/master
2022-09-26T12:51:35.892864
2020-04-24T18:20:32
2020-04-24T18:20:32
244,242,516
0
0
null
2022-09-16T18:18:54
2020-03-01T23:49:17
HTML
UTF-8
Python
false
false
388
py
login.py
from flask_wtf import FlaskForm from wtforms import StringField, PasswordField from wtforms.validators import InputRequired, Email from wtforms.fields.html5 import EmailField class LoginForm(FlaskForm): username = StringField('Usuário', validators=[InputRequired('Preencha este campo.')]) password = PasswordF...
0d7d16f34a6382ba535684c78c9a9f79e3de1789
03178d92f30fd9c835c2252dd06d98419ce1c12b
/tools/ci_build/upload_python_package_to_pypi.py
708f13a464217ea44e82b689ed45e831d913a453
[ "MIT", "LicenseRef-scancode-generic-cla" ]
permissive
QPC-database/torch-ort
9e53d8005222129ae86d63bf8bfbeb79b69d5443
a9ea703000cda4f28424be0dfcf1a0ed304580ad
refs/heads/main
2023-05-31T21:59:15.502843
2021-07-01T17:34:12
2021-07-01T17:34:12
383,518,838
1
0
MIT
2021-07-06T15:38:18
2021-07-06T15:38:17
null
UTF-8
Python
false
false
926
py
upload_python_package_to_pypi.py
#!/usr/bin/env python3 # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. import sys import argparse import subprocess if __name__ == "__main__": parser = argparse.ArgumentParser(description="Upload python whl to azure storage.") parser.add_argument("--python_wheel...
54be94b911020aabb8e9416fd8a1714941522fa4
4aff164e23719385fd52328a36f4c565370e0cae
/0x0B-python-input_output/6-load_from_json_file.py
4656e027d480d53a23c19e980cead30d6f5c4416
[]
no_license
candiepih/alx-higher_level_programming
cab2387bb1c196b3c6dd596342251bd94289ac55
41b3d0f352cdaef1494712b68db16cf219c484b4
refs/heads/main
2023-07-31T12:16:22.255816
2021-09-22T14:38:11
2021-09-22T14:38:11
361,658,488
2
0
null
null
null
null
UTF-8
Python
false
false
248
py
6-load_from_json_file.py
#!/usr/bin/python3 """Contains functions that handle json""" import json def load_from_json_file(filename): """Returns deserialized data from file""" with open(filename, encoding="utf-8") as f: data = json.load(f) return data
73959a04c79648cbb31c9c5ca8781a2b36936b41
65cf3b41b6c074fbec9a121241ae436de6624d21
/extractGUI.py
621732965f68b9c2e36fceb1028b2a4c9143ac8f
[]
no_license
houxcnj/orderDetailParsing
3c4be4896b27087f5325e1c5751d283b3174897c
6e2f824aef30c281ac8662c66e52ebe78890e502
refs/heads/master
2020-04-16T02:12:46.238506
2016-12-07T20:03:43
2016-12-07T20:03:43
62,611,306
0
0
null
null
null
null
UTF-8
Python
false
false
5,511
py
extractGUI.py
from Tkinter import * import tkMessageBox class Application(Frame): def createOrder(self): lines = self.Input.get("1.0", "end-1c") lines = lines.encode("utf-8").split("\n") print lines order = {} order['orderID'] = "" order['name'] = "" ...
876e7f131745823aea47faf586696c5a7e8f0660
843cededacd936b8906003ebc0ddc086d67e9406
/lang_frequency.py
fb3672038cfd80b2206dd0ab26d08c4d80dcb7b9
[]
no_license
MontyNum/5_lang_frequency
55800b6e5ecb47799211083c47ee4abbd320e889
beed0c8db02faaf10d4ce9b1bc495bce2eac4fbb
refs/heads/master
2021-01-13T03:28:10.280936
2017-01-28T16:41:07
2017-01-28T16:41:07
77,540,041
0
0
null
2016-12-28T14:50:15
2016-12-28T14:50:15
null
UTF-8
Python
false
false
1,327
py
lang_frequency.py
import chardet import re import os def load_data(file_path): if not os.path.exists(file_path): return None encoding = detect_encoding(file_path) with open(file_path, 'r', encoding=encoding) as file_handler: return (file_handler.read()).lower() def detect_encoding(file_path): with o...
ea69bfbe0b28ed302462a7bd6348472f97b40fb5
7804b8a69725285e88966a703b9e233dcbcb44ed
/chapter-15/15-5.py
dac1c6d5f362b6ab278a405789ef6d2f9f5983d5
[]
no_license
armut/thinkcs-solutions
8d219386237b9d743847e78c51bcccc64320259f
345cc885aa0d5afb3ab6ad61ab36b2e83a3c1a39
refs/heads/master
2021-01-19T00:27:32.678849
2016-07-25T08:37:22
2016-07-25T08:37:22
61,331,096
0
0
null
null
null
null
UTF-8
Python
false
false
1,640
py
15-5.py
# exercise 15.2 class Point: """ Point class represents and manipulates x, y coords. """ def __init__(self, x=0, y=0): """ Create a new point at the origin. """ self.x = x self.y = y def distance_from_origin(self): """ Compute my distance from the origin. """ r...
822329757c18fa7cb49d944b9a5708fd3b10db5d
bfa91382338008fbdc3514e3196c6c2a72c16915
/BIOSPolicytoCSVPython.py
b9ee202145ceda9c071e05e1fabd8c02c1a7a9e2
[]
no_license
vishwajeeth1988/BIOS-Policy-Settings-Changes
45cd80a2b3bb4487717efdea8876a56f834e43ef
d8ae0a4fed053b3da1e90272144bb07389b2a5dc
refs/heads/main
2023-03-19T06:39:30.679840
2023-03-10T16:20:40
2023-03-10T16:20:40
311,710,200
1
0
null
null
null
null
UTF-8
Python
false
false
3,302
py
BIOSPolicytoCSVPython.py
import csv import json import requests import pandas as pd from intersight_auth import IntersightAuth #Creating Authorization # AUTH = IntersightAuth( secret_key_filename='SecretKey.txt', #insert secret key as a file with the name SecretKey.txt api_key_id= '5df2c79d7564612d30bb2223/5df2c7877564612d30b...
35252968d644dad6b3e9e2696a5020ec7faf06a1
201356e09fb6dd82d36ed5b93b08a29482b68fb2
/HD - SD/Task 6/Homework/TicTacToe.py
9486d02828fe2e80375e8e065a93db6a8ec956ce
[]
no_license
M45t3rJ4ck/Py-Code
5971bad5304ea3d06c1cdbd065941271c33e4254
32063d149824eb22163ea462937e4c26917a8b14
refs/heads/master
2020-04-08T05:03:44.772327
2018-11-26T06:41:03
2018-11-26T06:41:03
159,044,079
1
0
null
null
null
null
UTF-8
Python
false
false
4,468
py
TicTacToe.py
#################################################################################### # ======================== # Part 2: Tic-tac-toe # ======================== # In this task you will be writing a simple game of tic-tac-toe. # You should expect to find this exercise more challenging than Part 1. # Please write docstr...
e3cc4667c7ac140f0b38b978184f777a8affe015
bb1b30777ad1a621fcde4fee5b44df028793124b
/day11.py
25f9e3cafded1b00578d715e9a3f2702c42ae34e
[]
no_license
dflss/advent-of-code-2020
49d357a1d91d5038a28dbb677f32f07340c1f5e9
e833a8178b89d3b77514b93bbac239a100c24ae4
refs/heads/main
2023-02-21T21:21:54.113627
2021-01-27T19:14:51
2021-01-27T19:14:51
318,607,108
1
0
null
null
null
null
UTF-8
Python
false
false
5,561
py
day11.py
import copy def parse_input_file(): with open("day11_data.txt", "r") as file: return [[n for n in line.strip()] for line in file] def gen_adjacent(matrix_2d, row, col): row_num = len(matrix_2d) col_num = len(matrix_2d[0]) for r in [-1, 0, 1]: for c in [-1, 0, 1]: if r == ...
056bdf77d79cf339fa666bca76392e6cad8c9724
90c22e7aad5034b60e25d1585b155606e7c29022
/Encryption.py
b1562cfd71e3b5faa71a3e30d58b1cb4b80cf7a3
[]
no_license
pro-whitehatjr/Pro-C228-Project
f661a7835b0764be3e39fa9a6b963d2dcd1a56e2
2a238be2e5654296b1af75a8bbb8300c6a09d82b
refs/heads/main
2023-08-26T07:25:20.103643
2021-10-14T03:56:26
2021-10-14T03:56:26
416,981,741
0
1
null
null
null
null
UTF-8
Python
false
false
1,416
py
Encryption.py
import wave song = wave.open("song.wav", mode='rb') frame_bytes = bytearray(list(song.readframes(song.getnframes()))) string =input ("Enter your Message ") #string = string + int((len(frame_bytes)-(len(string)*8*8))/8) *'#' #bits = list(map(int, ''.join([bin(ord(i)).lstrip('0b').rjust(8,'0') for i in string]...
3af31f2cf4dd7979bc448408c3f2e671dadad745
f27fb5db67a9d15ec7641c58e815db543c229424
/ProgrammersApi/apps/programmers/admin.py
92e0de4b1509dd22652f457529cf15f0f33ec2e9
[ "MIT" ]
permissive
hopgausi/DJangoRestFramework
27b6479bb435d1a4dcd095f3d17cc7717555f9c2
5ce7177e46b1f66a39c137642aba5f5ed21d2155
refs/heads/main
2022-12-30T11:19:40.622738
2020-10-19T15:36:50
2020-10-19T15:36:50
305,426,478
0
0
null
null
null
null
UTF-8
Python
false
false
244
py
admin.py
from django.contrib import admin from apps.programmers.models import Programmer, Company, Language # Registering Models to be viewed in admin dashboard admin.site.register(Programmer) admin.site.register(Company) admin.site.register(Language)
75e629d125040d58d029b4c72e08037ac5a2f520
9c431170e7c6e4cb6889a132619186086ac648e3
/setup.py
c57bf557a4dbb3c9a788171b3c5aee1f612a7671
[]
no_license
coco-project/common
41a87e8be672db3ef0c0e32d98a4a76d3d537331
a6703e7e1c999f7e027846b29bc5280f54cee1ee
refs/heads/master
2021-01-17T23:56:09.587923
2015-10-07T19:07:14
2015-10-07T19:07:14
42,890,133
0
1
null
null
null
null
UTF-8
Python
false
false
388
py
setup.py
from setuptools import setup, find_packages setup( name="coco-common", description="Common package for various stuff shared across multiple coco packages.", version="0.0.1", packages=find_packages('src'), package_dir={'': 'src'}, namespace_packages=['coco'], install_requires=[ 'coco...
8a81cbe57b2d77b13f5d21349bb37914f03f5f3d
c0fd33f8f994278470b4d69d1381b5e66d350b1b
/prooaddons/oschool/reports/registration_recipt/report_registration_recipt.py
1b37ce8e7bcfa0b8b6401fbace87fa485809e1ae
[]
no_license
wissemsh/prooaddons
d25fff096b1b5cfea74d0bc51e7a3b80f3163ccb
a5e9f95c59be058aead30e1c6de867ed36354e6a
refs/heads/master
2021-01-10T02:21:25.308009
2016-02-16T08:28:22
2016-02-16T08:28:22
51,768,494
0
3
null
null
null
null
UTF-8
Python
false
false
2,305
py
report_registration_recipt.py
# -*- coding: utf-8 -*- import time from openerp.osv import osv from datetime import date,datetime from openerp.tools.translate import _ from openerp.report import report_sxw from openerp import SUPERUSER_ID import datetime from openerp.addons.wct_tools import amount_to_text import logging _logger = logging.getLogg...
4bfb860110d13487d09f7e20b692b663076abb9b
6cb40fd63563697cb31c364cd5e5534348eb7936
/address_matching.py
720528e4c6989a54e2437de92e50cd66e9010a18
[]
no_license
daguar/address-matching
7baf951a2707e3723b4e38b4771a6841d1b42eee
e7ff2693c8f7ef74591de5ae72a37c4e0d3d2d8f
refs/heads/master
2020-12-25T06:46:02.268479
2014-05-27T15:39:34
2014-05-27T15:39:34
null
0
0
null
null
null
null
UTF-8
Python
false
false
9,665
py
address_matching.py
#!/usr/bin/python # -*- coding: utf-8 -*- """ This code demonstrates how to use dedupe with a comma separated values (CSV) file. All operations are performed in memory, so will run very quickly on datasets up to ~10,000 rows. We start with a CSV file containing our messy data. In this example, it is listings of early ...
0244e94b7669761665812ff9c1aeaa69e4d85c38
5330918e825f8d373d3907962ba28215182389c3
/CMGTools/Common/python/countingSequences_cff.py
e3ffe0d8ad5970c8c92850196993785cd3824738
[]
no_license
perrozzi/cmg-cmssw
31103a7179222c7aa94f65e83d090a5cf2748e27
1f4cfd936da3a6ca78f25959a41620925c4907ca
refs/heads/CMG_PAT_V5_18_from-CMSSW_5_3_22
2021-01-16T23:15:58.556441
2017-05-11T22:43:15
2017-05-11T22:43:15
13,272,641
1
0
null
2017-05-11T22:43:16
2013-10-02T14:05:21
C++
UTF-8
Python
false
false
1,003
py
countingSequences_cff.py
import FWCore.ParameterSet.Config as cms #Create a sequebnce that saves an event counter in the Run Info #We can use it later to monitor the cut selection and to make #event weight in MC from DQMServices.Core.DQM_cfg import * from DQMServices.Components.DQMEnvironment_cfi import * from DQMServices.Components.MEtoEDMC...
b92c7b3d13c68ee52c0a9c45bae0e08b39c25f24
2471389880e0c0410c1d26150abda8401d5245b9
/Py programming/Py 96.py
7fea24649dba5f57f87e43a64a2ee6f3516b6ab7
[]
no_license
grehidel/Python
002116d260f6ad6331fa09a70c242abcbc9da30f
3455f48d3b4cd57cc91c790abba959ff3174c75a
refs/heads/master
2020-03-22T02:25:05.944691
2018-07-16T01:10:54
2018-07-16T01:10:54
139,369,075
0
0
null
null
null
null
UTF-8
Python
false
false
66
py
Py 96.py
def pure_function(x,y): temp=x+2*y return temp/(2*x+y)
08c15324b8db1ce0feb6c51f88fe5af903096879
2905c3ab3479ffe98dbb6314fdc42b2f4e0544ae
/tests/models/event.py
f47e9abbee62db7beb91075edd0f707dc2fadad6
[]
no_license
Tickee/BLM
5db80bd44b6ed6c915e34fb9ba86a6baf227eab8
e2caf36ac1e67427a59e2fe031cb59ea28dfab95
refs/heads/master
2020-04-06T06:54:38.875785
2015-02-10T16:23:10
2015-02-10T16:23:10
30,460,637
0
1
null
null
null
null
UTF-8
Python
false
false
2,288
py
event.py
from tickee import logic from tickee.db.models.event import Event import sqlahelper import tests import tickee.exceptions as ex Session = sqlahelper.get_session() am = logic.AccountManager() vm = logic.VenueManager() tm = logic.TicketManager() em = logic.EventManager() om = logic.OrderManager() class CreateEventTest...
59152deaa7ec80e69e387c0099ff649d4711275b
92f3ec8f9bd7a1479ec5060e75d4ef7feb3d00d0
/repository/repo_alumno.py
0caf91277ee1094f73a56f3ccac5f78ed0b18e15
[]
no_license
LuisOre24/sistema_escolar_nosql
ac5ab434d01786f3b51e246da997bcb3b7b8737d
6f9e453498b7b6dae54240ea7ab849867db870e2
refs/heads/master
2023-05-07T10:58:01.395674
2021-05-24T03:25:25
2021-05-24T03:25:25
370,215,460
0
0
null
null
null
null
UTF-8
Python
false
false
3,826
py
repo_alumno.py
from bson.objectid import ObjectId from pymongo import collection from config.connection import Connection class AlumnoRepo: def __init__(self): self.conn = Connection('test') self.collection = 'alumnos' def all_alumnos(self): try: records = self.conn.get_all(self.collecti...
0fff36d779187a2a2fde1f3e9741d277963d2d98
5c58587ebfbf56192b3dc6ed6f43bc002c8e2cff
/core/migrations/0060_merge_20180829_1107.py
b5676333eb4fa8ccaccbf9d4ad80994365d02d8d
[]
no_license
hossamelneily/nexchange
fb9a812cfc72ac00b90cf64d6669a8129c2d2d4b
6d69274cd3808989abe2f5276feb772d1f0fa8b4
refs/heads/release
2022-12-13T09:20:47.297943
2019-02-12T08:20:34
2019-02-12T08:20:34
210,064,740
1
2
null
2022-12-09T00:54:01
2019-09-21T23:19:34
Python
UTF-8
Python
false
false
267
py
0060_merge_20180829_1107.py
# Generated by Django 2.0.7 on 2018-08-29 11:07 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('core', '0059_auto_20180829_1100'), ('core', '0056_auto_20180822_0908'), ] operations = [ ]
b1fa83415de8acaa7c3c812ad32ec4b2329e44b6
b333dc607a2f1556f6a8adb6d16dc88fa8a30c8b
/portal/apps/inplaceeditform/tag_utils.py
e146c10df663cb27408689336acbf846da7bf8fc
[ "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
hernan0216/utopia-cms
6558f8f600620c042dd79c7d2edf18fb77caebb8
48b48ef9acf8e3d0eb7d52601a122a01da82075c
refs/heads/main
2023-02-06T10:31:35.525180
2020-12-15T17:43:28
2020-12-15T17:43:28
321,775,279
1
0
BSD-3-Clause
2020-12-15T19:59:17
2020-12-15T19:59:16
null
UTF-8
Python
false
false
2,740
py
tag_utils.py
from django import template from django.utils.encoding import smart_str from django.template.loader import render_to_string def parse_args_kwargs(parser, token): """ Parse uniformly args and kwargs from a templatetag Usage:: For parsing a template like this: {% footag my_contents,height=10,...
1315f20f1e43f815629233248ffb23a95c955c48
0a842e9fb182018c0e9feb7d9a93accf5a53d65e
/train.py
bc075be1ed8b9dc29022e9f92c77e3f1c6417d62
[]
no_license
lucerax/Breast-Cancer-Assistant
d5bd81325c35a7307f764b4e332047c055937e41
5935bdf67120da97efbf3771264c461545168d18
refs/heads/master
2022-12-10T16:26:26.316605
2020-08-31T07:13:13
2020-08-31T07:13:13
290,248,711
0
0
null
null
null
null
UTF-8
Python
false
false
805
py
train.py
""" Created on Sat May 30 13:37:31 2020 @author: aniru """ from model import * from keras.callbacks import ModelCheckpoint, ReduceLROnPlateau from keras.models import load_model checkpoint_path = "train_ckpt/cp.ckpt" cp_callback = ModelCheckpoint( filepath = checkpoint_path, save_best_only = True, save_w...
c291966b3c7f31037dc8d86a78a08a52d34f4234
d725a55e12b6b42f403a67181b49c2d2bec83116
/Geo-Plotting.py
4742a0ebb2a095bb05e6d76aab2a7e02ea98adff
[]
no_license
Ritvik19/Snippy
b362b4047b046fc1a848b8d25113cacd1f3001a1
ed2ea05fbad1448de18ee286a37185d978680613
refs/heads/master
2022-12-09T22:41:59.427005
2022-12-03T08:32:14
2022-12-03T08:32:14
178,004,074
1
1
null
2019-10-18T17:52:22
2019-03-27T13:50:16
HTML
UTF-8
Python
false
false
536
py
Geo-Plotting.py
import plotly.graph_objs as go data = dict( type="choropleth", locations=["India", "Russia", "Australia"], locationmode="country names", colorscale="Portland", z=[1.0, 2.0, 3.0], colorbar={"title": "Colorbar Title"}, ) layout = dict(geo={"scope": "world"}) fig = go.Figure(data=[data], layout=...
52336d8bf5a2766637fbbcfc0e1dfc7035d3570b
297de347413c6356b283203bd8b2135aa1dc4ae3
/1.py
c9e8dc2c5400b167d7ef3a08d80a6dec35642885
[]
no_license
Divisekara/Hackstat-first-round
4d1264220f03da0c7e38fc4858cd611e54e61290
92294b635b1d7230dd889e04d6850ea923839668
refs/heads/master
2022-07-14T12:10:59.311348
2020-05-13T01:45:51
2020-05-13T01:45:51
263,497,344
0
0
null
null
null
null
UTF-8
Python
false
false
71
py
1.py
handle=open("sample_submisison.csv",'r') for i in handle: print i
0f143e08cf52e647eb7db33ae14f28a025012f5e
82fce9aae9e855a73f4e92d750e6a8df2ef877a5
/Lab/venv/lib/python3.8/site-packages/OpenGL/raw/EGL/NV/system_time.py
f278d9a3f8fec34e15adf0b373e533323d332281
[]
no_license
BartoszRudnik/GK
1294f7708902e867dacd7da591b9f2e741bfe9e5
6dc09184a3af07143b9729e42a6f62f13da50128
refs/heads/main
2023-02-20T19:02:12.408974
2021-01-22T10:51:14
2021-01-22T10:51:14
307,847,589
0
0
null
null
null
null
UTF-8
Python
false
false
536
py
system_time.py
'''Autogenerated by xml_generate script, do not edit!''' from OpenGL import platform as _p # End users want this... from OpenGL.raw.EGL import _errors # Code generation uses this from OpenGL.raw.EGL import _types as _cs _EXTENSION_NAME = 'EGL_NV_system_time' def _f(function): return _p.createFunction(function, _...
cab62c8d546455d0bac6856f243590a31877ca42
c866305e86b9ed147feb0a9befde63927d7ff897
/gp.py
fbb230b8de16f1043676b197a468d17962ef8925
[]
no_license
kazucmpt/GaussianProcess
dc9be7ec5b853fcf0f4907b18334bcd6a19dc0f0
deccc391f7d078e83a7f31cabbb80a1f9118e6f7
refs/heads/master
2020-05-04T21:43:28.656320
2019-04-10T11:18:51
2019-04-10T11:18:51
179,486,185
2
0
null
null
null
null
UTF-8
Python
false
false
3,138
py
gp.py
import numpy as np import matplotlib.pyplot as plt import math import dataset xmin = -7 xmax = 5 noise_level = 0.1 class GaussianProcess: def __init__(self, theta1, theta2, theta3): # thetax are used in rbf kernel elements self.theta1 = theta1 self.theta2 = theta2 self.theta3 = theta3 self.xtrain = None ...
52ca1ba84d66611e2e97de540405000fba0cd6e7
d654dd987149794244ce0b8c63554f4cffee92f3
/tests/test_core.py
fc221ecf854db25541bb393c032328b705bf981d
[ "LicenseRef-scancode-unknown-license-reference", "BSD-3-Clause" ]
permissive
geowurster/pyin
809179894073a4edf6618f3440c5b20dc1603f4b
5c5173bfcebb318148cf100d2945370ee571c54d
refs/heads/master
2021-10-28T20:56:54.822330
2019-05-21T04:19:24
2019-05-21T04:19:24
30,080,373
5
0
NOASSERTION
2019-05-21T04:19:26
2015-01-30T16:27:06
Python
UTF-8
Python
false
false
1,055
py
test_core.py
""" Unittests for: pyin.core """ import sys import pytest import pyin.core import tests._test_module def test_single_expr(): result = list(pyin.core.pmap("20 <= line <= 80", range(100))) assert len(result) == len(list(range(20, 81))) for item in result: assert 20 <= item <= 80 def test_with_...
9f0b707b928923f0d67f22d2f819d9c58c64c6ef
02f9942c1701d937289a45d253ef1b71185d81cd
/flexitext/parser/classes/__init__.py
8c03c42d17f351cf06e2d8f5a10bfefe63c0e0b2
[ "MIT" ]
permissive
sidney1994/flexitext
319bda3985ad64f88b3aed0b5d9273b32408f9ae
e50d193250c52b0935998851018bef7d1f83acb7
refs/heads/main
2023-08-14T02:59:19.517973
2021-09-23T13:00:51
2021-09-23T13:00:51
null
0
0
null
null
null
null
UTF-8
Python
false
false
123
py
__init__.py
from .scanner import Scanner from .parser import Parser from .token import Token __all__ = ["Scanner", "Parser", "Token"]
9d98ffe2827be514ea4998b600d6f416da100abc
9fb2a869576708f7a861d5d1cb905d5a758ccf27
/fabfile.py
4f630fce98572efde64af15e107f91b6125e7958
[]
no_license
philippbosch/newmediology
81758ed7a6aa38f0d74720f4b13d460b58b26792
9db05baf70b99edab20d59f33225e93423f12c95
refs/heads/master
2021-01-10T19:23:03.868272
2012-02-25T19:07:23
2012-02-25T19:07:23
24,798,480
1
0
null
null
null
null
UTF-8
Python
true
false
1,151
py
fabfile.py
import os.path from fabric.api import env, local, prompt env.project_name = os.path.basename(os.path.dirname(os.path.abspath(__file__))) env.user_name = env.project_name env.production = False env.server_flavor = None # ENVIRONMENTS def staging(): """Deploy on staging server""" env.branch = "develop" e...
d8d254a7a8f981696733dbd26ebe341696d72dae
c37f8de740f54f9d291f710f17b5787af43d5b8a
/Intro_ML_3.py
de2a427c7f1b7e30189c6b3935709b9b8d1fe7f1
[]
no_license
fedegott/Intro_Machine_Learning
ac27bdd80c1aa467073c8e92fa5de0176e74a561
f8b47bd4adf3e8a24f76230cb67869165a08e5b3
refs/heads/master
2020-03-07T12:22:33.834837
2018-09-03T20:23:24
2018-09-03T20:23:24
127,475,617
0
0
null
null
null
null
UTF-8
Python
false
false
3,518
py
Intro_ML_3.py
from sklearn import datasets import numpy as np import matplotlib.pyplot as plt from sklearn.neighbors import KNeighborsClassifier # WHAT IS sklearn.neighbors? why from 'skelearn.neighbors import *' also works from sklearn.linear_model import LinearRegression from sklearn.linear_model import LogisticRegression from sk...
79f5be3395829deecb8e1ed675b2e1573a5ad710
b666cd82bb53918aaaad676e6c9ee543844f64f3
/eclinic/user_registration/views.py
6356fbc78d39257b9b42a3e056c6d075620f2749
[ "MIT" ]
permissive
koallen/e-clinic-server
1fca649350aa14ca6349b1a44d84d938fef44225
05c69503243ffcb79debed923dc947fe9b072017
refs/heads/master
2020-05-30T08:41:41.902021
2016-10-17T15:45:32
2016-10-17T15:45:32
66,369,495
0
1
null
null
null
null
UTF-8
Python
false
false
1,972
py
views.py
from rest_framework.views import APIView from rest_framework.response import Response from rest_framework import status from .serializers import UserRegistrationSerializer from .serializers import DoctorRegistrationSerializer from .serializers import PatientRegistrationSerializer from .models import Doctor class User...
e9d1a55e2e060e6d3748ad4975fe1167a44d705e
4eb4bb2740ac38b1fbbb06ece6f4513f4651d3e7
/laptops/migrations/0003_auto_20190620_1419.py
2be33a94f0f981d324c4149bbedee66c82cb5367
[]
no_license
vjthevision/ShoppingWebsite
72fa7637b46cf01b07b7be95b2c2aa2dbcd8ca76
8da78aff01573466f54c9927958701d8a81be26a
refs/heads/master
2020-06-14T14:39:46.518511
2019-07-03T10:17:16
2019-07-03T10:17:16
195,029,647
0
0
null
null
null
null
UTF-8
Python
false
false
561
py
0003_auto_20190620_1419.py
# Generated by Django 2.2.2 on 2019-06-20 08:49 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('laptops', '0002_auto_20190619_1714'), ] operations = [ migrations.AlterField( model_name='laptop', name='image', ...
489db266d9ff7129eadc4ce34fa81b80527c174f
9abc2f4fbf1b31b5a56507437b4a8d9c3f3db7e6
/discounts/migrations/0001_initial.py
42880e03e6fae66d425e55459ffb8341f6d3adf9
[]
no_license
odbalogun/ticketr
e9fe8461d66dabe395f0e1af8fbecc67dbb16e97
94f24c82f407f861f1614a151feb3fdd62b283e5
refs/heads/master
2022-11-30T22:40:30.931160
2019-08-09T14:34:38
2019-08-09T14:34:38
188,833,600
0
0
null
2022-11-22T03:50:30
2019-05-27T11:50:07
Python
UTF-8
Python
false
false
1,408
py
0001_initial.py
# Generated by Django 2.2.1 on 2019-05-07 01:00 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] ope...
0889b49b6108b6bad4fe9e81835a0b830b1f1494
9967df8604a09455595dc17117b085a97c41c036
/WriteUCResults.py
5bc82b4f3953c13d70151e2ec089854266dd2d80
[]
no_license
puttak/StorageCode
735791eba2952ef9d18dc497c652178f40718114
8b67d9609d1b9afe72fc2041e37b430959b96975
refs/heads/master
2021-08-14T11:34:13.832894
2017-11-15T14:37:09
2017-11-15T14:37:09
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,667
py
WriteUCResults.py
#Michael Craig #November 16, 2016 from AuxFuncs import write2dListToCSV import os ########### WRITE HOURLY RESULTS BY PLANT ###################################### def writeHourlyResultsByPlant(genByPlant,regUpByPlant,regDownByPlant,flexByPlant,contByPlant, turnonByPlant,turnoff...
59b1cc90a0e4db1a0633dac0fa9af5b6423c9745
dd59119bc2fc708f838f2893f99cae9342d60d4f
/users/migrations/0007_auto_20181218_2321.py
d9c2276696c566b7a0f5ba83385992375c7de22e
[]
no_license
henokali1/fans-webportal
5a216a5d64f528a38e038930607fc79489158b2f
0d075147df5c8997a9d40a718439b714b779a0cc
refs/heads/master
2021-06-04T12:07:10.812651
2020-01-08T05:24:46
2020-01-08T05:24:46
162,245,380
0
0
null
2021-06-01T23:47:34
2018-12-18T07:05:56
HTML
UTF-8
Python
false
false
408
py
0007_auto_20181218_2321.py
# Generated by Django 2.1.4 on 2018-12-19 07:21 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('users', '0006_alldepartments'), ] operations = [ migrations.AlterField( model_name='setupuserprofile', name='page_ac...
e6fc5a30a6da6bc41c2e3d50c670cc3a9413ac52
070681998ab58c51203e43ee8fd3ad9ec0437863
/cartoframes/data/observatory/enrichment/enrichment.py
cfcfa4dc862238c7296decd0e5209df0bcf2a3fd
[ "BSD-3-Clause" ]
permissive
CartoDB/cartoframes
3d454ec83f9a8f900485acc580223e1c72ade0f3
1f56b75f512da62b7ecd1c07e1021b8552158907
refs/heads/develop
2023-03-17T02:07:30.655628
2023-02-08T13:21:19
2023-02-08T13:21:19
83,072,729
248
72
BSD-3-Clause
2023-03-09T11:05:09
2017-02-24T18:51:47
Python
UTF-8
Python
false
false
14,317
py
enrichment.py
from .enrichment_service import EnrichmentService, AGGREGATION_DEFAULT GEOM_TYPE_POINTS = 'points' GEOM_TYPE_POLYGONS = 'polygons' class Enrichment(EnrichmentService): """This is the main class to enrich your own data with data from the `Data Observatory <https://carto.com/platform/location-data-streams/>`__...
304378ce7498de5ca2877cdc6762cfd82d0c4ef9
17cff29f2f237261251a4a45d4ed1cedb23159b3
/baseline/run_train.py
d86e7bdea368e6413271053499a4d2ceb6f4b4af
[]
no_license
tyistyler/Chinese_Casrel_model
22e3944407aa1c1fb26317681366d9407812e590
6ef25528554ca183c3e5b4bacb0a61437a3caddd
refs/heads/master
2023-08-21T11:00:43.485884
2021-10-26T09:09:15
2021-10-26T09:09:15
421,324,332
2
0
null
null
null
null
UTF-8
Python
false
false
1,106
py
run_train.py
import os os.system("python train.py --dataset GY --batch_size 8 --rel_num 2 " "--lr 1e-5 --bar 0.05 ") # os.system("python train.py --dataset GY --batch_size 8 --rel_num 2 " # "--lr 1e-5 --bar 0.1 ") # # os.system("python train.py --dataset GY --batch_size 8 --rel_num 2 " # "--lr 1e-5 -...
99104339e35a9b7d65bb4be56e2395d1f51c9e82
913d22cf09d5e6cde0e66e11215794b7e64b92b6
/users_1.py
b78b185ede0dd070af15ee82a2dc78c285a4e506
[]
no_license
chenp0088/git
94beb31b6c90fe477ad3764fe73f3f1807ed4999
0a9782ca00d3d217fc7989e0bb5107d3f49066c2
refs/heads/master
2020-03-25T21:04:41.439874
2019-06-15T00:43:10
2019-06-15T00:43:10
144,158,352
0
0
null
null
null
null
UTF-8
Python
false
false
375
py
users_1.py
users=['admin','root','peter','psla','seare'] for user in users: print("Hello "+user+'.') if user=='admin': print("Hello "+user+','"would you like to see a status report?") else: print("Hello Eric,thank you for logging in again") if user=='': print("We need to find some users!") else: ...
5509b31098beff211cc0d74a129e5dc3abaa7308
2c7f78217b1a6a6aa8693f8899ddf0e3494c55ca
/Q9.py
6765d13313d438c431deecf9e8f3d0e8b3d6d7cf
[]
no_license
RendyDivian/Modularization
c05ccb93eff5a95d1ea3e25e4032505a865b30da
c52484ed37bdfc7af154909153b6d5a941ba5333
refs/heads/main
2022-12-31T07:39:12.006672
2020-10-20T13:27:00
2020-10-20T13:27:00
305,716,043
0
0
null
null
null
null
UTF-8
Python
false
false
352
py
Q9.py
def filter_long_words(lwords,n): x = [] for i in lwords: if len(i) > n: x.append(i) else: pass return x if __name__ == '__main__': words = list(input("Write a list of words: ").split(",")) search = int(input("Words longer than: ")) print(filte...
76f88abb03699f861500432ffa9b5cba6af5e16b
c287230c92842f3ce655c4265c42997056eef52f
/optimization/optimization.py
8f933a83cab071b9e3f563cf77720fd71d1c0bad
[ "MIT" ]
permissive
yanak/clustering
aa40efc3d16f2a89b6c2dd70451e887c4ae23e06
69d3f5189a63a2d1b6264c3f40649780c5b87943
refs/heads/master
2021-01-14T13:20:54.506349
2014-04-12T06:41:36
2014-04-12T06:41:36
17,138,411
1
0
null
null
null
null
UTF-8
Python
false
false
249
py
optimization.py
import time import random import math people = [('Seymour', 'BOS'), ('Franny', 'DAL'), ('Zooey', 'CAK'), ('Walt', 'MIA'), ('Buddy', 'ORD'), ('Les', 'OMA')] # ニューヨークのラガーディア空港 destination='LGA'
f9bbd75ab82ee4081ba38d3f8141cecb440a8d2c
b9685b460c7ba60453b5124acc9fe85c391c317f
/module/protocol/network/messages/IgnoredAddedMessage.py
a60cd24a3e6cce8a695be2af0ead68323161a77e
[]
no_license
pylden/MITM
6a429bb0d3a26f1a9dfb34eea5d9a589dc7eac05
59ec79afdf5e02680b80fb46c614faaca77173e5
refs/heads/master
2021-03-12T15:07:48.453018
2020-12-11T10:36:37
2020-12-11T10:36:37
246,628,789
0
0
null
null
null
null
UTF-8
Python
false
false
418
py
IgnoredAddedMessage.py
from module.protocol.network.messages.NetworkMessage import NetworkMessage class IgnoredAddedMessage(NetworkMessage): def __init__(self, buffer_reader, len_type, length, count=None): NetworkMessage.__init__(self, buffer_reader, len_type, length, count) self.id = 2861 self.ignoreAdded = {"t...
11eafbd971633a3e70ad5abe84ea1a6686a6571e
3041bae29f270042affc41bd8fe9fd0226835006
/ASII_OAuth_Server/website/mailer.py
f15d54694eb40146057e9f5d5abaf9935786ee80
[ "MIT" ]
permissive
radumarinoiu/ASII-API
c33a5d9a1d0586d585d1d16f4a634828311338ee
5e5c29e1f97da39d02591444e22dee940971c508
refs/heads/master
2022-12-04T10:57:05.654686
2020-08-22T13:15:04
2020-08-22T13:15:04
226,083,514
0
0
MIT
2020-05-09T20:43:20
2019-12-05T11:11:54
Python
UTF-8
Python
false
false
52
py
mailer.py
from flask_mail import Mail, Message mail = Mail()
5586bb75b0604759e44708fd7d2c0e2aa49147cd
c17dde920a2f27234b78df2dc6afba5ae4471c7e
/chall10/gbudau.py
66bb7326acd812f3dc6ff01c1acb273fb05c1570
[]
no_license
42madrid/remote-challs
dc5098822c5967501c1c6315288f137f8b27e853
055ad4ab3306da9f967221930b5a2eb6bc89e419
refs/heads/master
2021-05-18T14:13:59.177904
2020-06-02T12:10:58
2020-06-02T12:10:58
251,276,085
20
105
null
2020-06-08T09:25:06
2020-03-30T10:47:37
C
UTF-8
Python
false
false
4,026
py
gbudau.py
#!/usr/bin/env python3 import fileinput import sys import curses.ascii POSITION = "ABCDEFG" TEAMS = [1, 2] NOT_CONNECTED = 3 CONNECTED = 4 ROWS = 6 COLUMNS = 7 def init_board(): board = [[0] * COLUMNS for i in range(COLUMNS)] return(board) def valid_input(action): if not action or len(action) < 3 or act...
ed074c4e520d20a9754cbde7939035076c04fd83
54f352a242a8ad6ff5516703e91da61e08d9a9e6
/Source Codes/AtCoder/arc057/A/4760308.py
70934d3cb7bb6fc54f01a74ca387eff4b4b97d02
[]
no_license
Kawser-nerd/CLCDSA
5cbd8a4c3f65173e4e8e0d7ed845574c4770c3eb
aee32551795763b54acb26856ab239370cac4e75
refs/heads/master
2022-02-09T11:08:56.588303
2022-01-26T18:53:40
2022-01-26T18:53:40
211,783,197
23
9
null
null
null
null
UTF-8
Python
false
false
182
py
4760308.py
a,k=[int(i) for i in input().split()] if k==0: print(2*(10**12)-a) else: ans=a cnt=0 while ans<2*(10**12): cnt+=1 ans+=ans*k+1 print(cnt)
7070fd282b94f7c8cfc1a790c2e6357328064cd2
df3a96607226f5dc31ada9256f98cfb84042f959
/gym_duane/wrappers/wrappers.py
352e0736c82bde5d8aa17cc4c46f399a5cee3adc
[]
no_license
DuaneNielsen/duanes-gym
2f3520a1642006dd440ed61549ef3c55585a0b1e
80087d4fd3da3f5830dca050f7993094baae60a7
refs/heads/master
2020-04-18T00:43:20.179110
2019-07-31T00:54:36
2019-07-31T00:54:36
167,088,443
0
0
null
null
null
null
UTF-8
Python
false
false
3,169
py
wrappers.py
import pickle import numpy as np import gym from gym.spaces import Box from gym.wrappers import TimeLimit import torch class LookAhead(gym.Wrapper): def __init__(self, env): super().__init__(env) self.step_tuple = None def reset(self): o = self.env.reset() self.step_tuple = ...
e7019fe1b7433a3bf81cd463a999efb82b8c9f48
3bb7691f74409cad5cd78762c1fa3ae7026b7bc9
/setup.py
f600d8a857143265bae2ab8da480a3934cc37af8
[ "Apache-2.0" ]
permissive
pcaston/wheels
e08d476c12cab73d8481b5b7bccc353ef003f1d1
e1bad47ad0701c877cd54a0d833ed624040b85fb
refs/heads/main
2023-04-05T02:00:13.394162
2021-04-26T05:04:04
2021-04-26T05:04:04
361,619,882
0
0
Apache-2.0
2021-04-26T04:44:23
2021-04-26T04:44:23
null
UTF-8
Python
false
false
990
py
setup.py
from setuptools import setup VERSION = "v1.0.2" setup( name="builder", version=VERSION, license="Apache License 2.0", author="The Open Peer Power Authors", author_email="hello@openpeerpower.io", url="https://openpeerpower.io/", description="Opp.io wheels builder form Open Peer Power.", ...
fb040eef1e699261d042aa3a040113e5ac7ec72f
ebc5c820a363f6481608bc15469b8c1792f76307
/210207_yahoo.py
0590128bf857a38e534c4ecdbeaabf184539fd78
[]
no_license
5junPrj/stockProject
82a7b2a35270c5c20c4eaee08e3a3487f889bf69
7b49b689c05cc3d2360cf1d5dcb3852e543c6655
refs/heads/main
2023-03-04T01:23:18.216959
2021-02-15T05:54:24
2021-02-15T05:54:24
335,149,564
0
2
null
2021-02-03T12:45:25
2021-02-02T02:51:44
Python
UTF-8
Python
false
false
1,539
py
210207_yahoo.py
import time import datetime import pandas as pd from selenium import webdriver from bs4 import BeautifulSoup def yahooFinanceCrawler(URL): driver = webdriver.Chrome(executable_path='/Users/LHY/PycharmProjects/stockPrj/chromedriver') driver.get(url=URL) SCROLL_PAUSE_SEC = 3 last_height = driver.execute...
c2885af2797ce8835c4be5ee7d94d1b425a3ea0e
3015157bc971c089b834b85399a53c6c96193633
/preprocess.py
7a35ecbec79692e80ff302013eb2974a6fd85441
[]
no_license
jmishra17/imageProc
d9bde1b43dff12e845ef02d6a3174d76155527a4
b3798be5d1f40d05ffac1298f7505f76964b048a
refs/heads/master
2021-01-01T17:58:22.954168
2013-08-06T04:29:29
2013-08-06T04:29:29
null
0
0
null
null
null
null
UTF-8
Python
false
false
16,680
py
preprocess.py
''' Deep Hathi, Abhishek Mishra CSE 415, Autumn 2012 Final Project Image Pre-processing functions for feature extraction''' from JythonPixelMathInterface import * import math WIDTH = 200 HEIGHT = 200 def imscale(wn): # scales individual window to consistent WIDTH-by-HEIGHT window wn2 = pmNewImage(...
c65f294b0e97a91cb559607e0e932498ffd912f2
9be4163665d4bfbd3685a9bdd4df8ad9a5630079
/Build_tree.py
ed0c68534acf483a98fcb5515cf1e6b047eb57e2
[]
no_license
GarethTucker/Decision_tree
d8d757d4afc2991493d914d165a25da557a151e0
27d5f85abcc17279be77b738b2a10821c40cc789
refs/heads/master
2021-01-10T17:24:50.465074
2016-04-03T10:15:49
2016-04-03T10:15:49
55,324,383
0
0
null
null
null
null
UTF-8
Python
false
false
5,066
py
Build_tree.py
from Node import Node import copy class Tree (object): def __init__(self, data): self.results = data.test_list[0] data.test_list = data.test_list[1:] data.training_list = data.training_list[1:] attributes = data.training_list[0] instances = data.training_list[1:] ...
73d69bb9f2b7f01edd9c175112a502cf057716e7
adb3b5ac9cd0c33d40f90709224eb88accbd2676
/notes/forms.py
2f0e77d33f9717dadd9beabef314bc49e93a1900
[]
no_license
shriya-hireholi/notesapp
efbae9671d4852e08b1537e705094c9cd55d065b
09e10233414576c0afcde72c17796730ef66b1e1
refs/heads/master
2023-06-26T23:26:39.615467
2020-09-22T11:12:52
2020-09-22T11:12:52
389,508,490
0
0
null
null
null
null
UTF-8
Python
false
false
3,251
py
forms.py
from flask_wtf import FlaskForm from wtforms import ( StringField, SubmitField, TextAreaField, PasswordField, BooleanField) from wtforms.validators import ( DataRequired, Length, Email, EqualTo, ValidationError) from notes.models import Users, Notebook from flask_login import current...
91d1daa9bb97006218e4c7237764e810d941d197
1806a340ec0e78ceae9bfead8bab37800a5e4765
/ocropus/utilities/extract-includes
94063252274b2672d46dcf20db14fb8f7bea3201
[ "Apache-2.0" ]
permissive
jkrall/ocropus
6fc862eb43d62f80529c14283ffbece26c8e71d8
ac3cf67b7df925813b4c01dc7c02acda19c72775
refs/heads/master
2016-09-05T13:59:16.046621
2010-03-27T08:56:32
2010-03-27T08:56:32
581,605
13
11
null
null
null
null
UTF-8
Python
false
false
1,374
extract-includes
#!/usr/bin/python import sys,os,re,string,os.path,glob if not os.path.isdir("ocroscript") and os.path.isdir("ocr-layout"): sys.stderr.write("must run this script from the top directory of ocropus") sys.exit(1) dirs = {} edges = [] files = glob.glob("*/*.h") + glob.glob("*/*.cc") for file in files: dir =...
4890b56facaa57a0f4c8dd7a8f3764957f76b007
5575e9b6e07f5fadc126e496b1176cb541f07bce
/test/sort/bucket_sort_test.py
88b55ee1dce2c454376720be5b547dd3d26207c6
[]
no_license
scottberke/algorithms
1d7cf6bd85386d19e8171ab17b4d0e5e3a526ff4
933e5db88fc0a19eeb8f78b0e7857cb3ab6a1048
refs/heads/master
2021-04-30T05:53:35.789307
2018-07-07T19:08:15
2018-07-07T19:08:15
121,428,580
0
0
null
null
null
null
UTF-8
Python
false
false
807
py
bucket_sort_test.py
import unittest import random from algorithms.sort.bucket_sort import * class BucketSortTest(unittest.TestCase): def test_bucket_sort_simple_even(self): arr = [4, 3, 2, 1] arr_copy = arr[::] arr_copy.sort() self.assertEqual( bucket_sort(arr), arr_copy ...
3d54f64d03beb7e5d67a35f46f8a8b6effad5b75
c0cbd41ac9745f5d378ee9363e7bac7860f9deac
/ui_Sales_DB_Detail.py
ef2bd591bbe776a070642c34d0fb4181c795225f
[]
no_license
richmanwang/TosoFrame
adce9860ae66f569ec4b1bc470054f9667211c66
200d27d137f604e08e1e2d794f973018416c8bc4
refs/heads/master
2021-01-22T22:13:28.748294
2018-02-26T02:47:15
2018-02-26T02:47:15
85,520,891
0
0
null
null
null
null
UTF-8
Python
false
false
21,634
py
ui_Sales_DB_Detail.py
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'D:\TosoProgram\TosoFrame\TosoFrame\res_Sales\Sales_DB_Detail.ui' # # Created by: PyQt4 UI code generator 4.11.4 # # WARNING! All changes made in this file will be lost! from PyQt4 import QtCore, QtGui try: _fromUtf8 = QtCore.QString.fr...
d3a155034c256a591a9f42c8a9b4559530dfe6e9
184d8b600b66ceed4e065878447fd3b99d137a48
/SRT/lib/procedure/x_sbr_main_heatmap.py
7bde9da7b6a78432f86efa61a9dee3ffd398152c
[ "CC-BY-NC-4.0", "MIT" ]
permissive
arnoldjair/landmark-detection
10d45bcdfbb469a3f59fb7d3916fe508fc0b150f
1ad9db7d94397d81898f6f7c05abe76806d3d85e
refs/heads/master
2023-03-07T20:06:57.594994
2021-02-15T02:56:49
2021-02-15T02:57:44
261,280,519
0
0
MIT
2020-05-04T19:48:14
2020-05-04T19:48:13
null
UTF-8
Python
false
false
8,335
py
x_sbr_main_heatmap.py
# Copyright (c) Facebook, Inc. and its affiliates. # All rights reserved. # # This source code is licensed under the license found in the # LICENSE file in the root directory of this source tree. # import time, os, sys, torch, copy, numbers from pathlib import Path import numpy as np # private lib from xvision import E...
409494815efadb80445cad1f5ee5e72a283b4178
75dcb56e318688499bdab789262839e7f58bd4f6
/_algorithms_challenges/leetcode/LeetcodePythonProject/leetcode_0351_0400/LeetCode369_PlusOneLinkedList.py
5598b04d7c893a022e83b83e5345bf858cfa1a2a
[]
no_license
syurskyi/Algorithms_and_Data_Structure
9a1f358577e51e89c862d0f93f373b7f20ddd261
929dde1723fb2f54870c8a9badc80fc23e8400d3
refs/heads/master
2023-02-22T17:55:55.453535
2022-12-23T03:15:00
2022-12-23T03:15:00
226,243,987
4
1
null
2023-02-07T21:01:45
2019-12-06T04:14:10
Jupyter Notebook
UTF-8
Python
false
false
958
py
LeetCode369_PlusOneLinkedList.py
''' Created on Mar 29, 2017 @author: MT ''' # Definition for singly-linked list. class ListNode(object): def __init__(self, x): self.val = x self.next = None class Solution(object): def plusOne(self, head): if not head: return ListNode(1) newHead = self.reverse(head) c...
2b6a07941e9caa619eed42df2bf564eaf1594a68
0ce955a125f729b6dff17c4a507162c8b86e4812
/leetcode_2018/239_sliding_window_maximum.py
8316bde3a864c4a6bcf22669e42ccce2d5e97213
[]
no_license
changediyasunny/Challenges
f1b1f0fda490c53bfe8de4648c29b501ec7180a1
df2ce669049ca040631dc6cc05cf5b5e8d2cc376
refs/heads/master
2021-01-10T13:29:53.137452
2019-10-10T05:19:39
2019-10-10T05:19:39
52,062,048
0
0
null
null
null
null
UTF-8
Python
false
false
1,382
py
239_sliding_window_maximum.py
""" 239. Sliding Window Maximum Given an array nums, there is a sliding window of size k which is moving from the very left of the array to the very right. You can only see the k numbers in the window. Each time the sliding window moves right by one position. Return the max sliding window. Example: Input: nums = [1,...