blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 281 | content_id stringlengths 40 40 | detected_licenses listlengths 0 57 | license_type stringclasses 2
values | repo_name stringlengths 6 116 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 313
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 18.2k 668M ⌀ | star_events_count int64 0 102k | fork_events_count int64 0 38.2k | gha_license_id stringclasses 17
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 107
values | src_encoding stringclasses 20
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 4 6.02M | extension stringclasses 78
values | content stringlengths 2 6.02M | authors listlengths 1 1 | author stringlengths 0 175 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
20b4d77c2d1321b4c041e3d56dfbbf3c7c3c57ec | 7037d86874af5cc30a6d04cbc330ecc1df9f09ff | /Stevens Pass Weather.py | efe35d65e305f363fcb745ea82da3382b11b7c42 | [] | no_license | hwalters361/Stevens_Pass_Weather_Infographic | 921c9ee9ff6db88d501d99cf7566c25623deb41b | aa5f07b730f5adf3c797c1ed62c86c2fb43c9868 | refs/heads/master | 2020-11-30T06:51:56.003861 | 2020-01-06T04:17:19 | 2020-01-06T04:17:19 | 230,338,195 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,565 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Fri Dec 27 13:05:54 2019
@author: hwalters
"""
CHANGE_WALLPAPER = True
import requests
from bs4 import BeautifulSoup
import os
import re
def get_page_content(url):
agent = {"User-Agent":'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_2) AppleWebKit/5... | [
"hwalters.alt@gmail.com"
] | hwalters.alt@gmail.com |
5fb5b8bd13952aead969b606c55f76af216ae318 | 29b2475e4647756078eb2772c0d6b570ace0d933 | /elmhurst_college.py | b13050c2d896a6e9d557274798e999436820fcb5 | [] | no_license | RDulepet19/Liberal-Arts-Index | a0f560b15d61940c63c8f4514d7a2a024bdfac8e | bc59811a8c0f0c27f56ebff25102977fea804260 | refs/heads/master | 2020-03-24T02:44:11.192802 | 2019-03-20T08:25:34 | 2019-03-20T08:25:34 | 142,388,394 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 24,707 | py |
# coding: utf-8
# MIT License
#
# Copyright (c) 2018 Riya Dulepet <riyadulepet123@gmail.com>
#
# Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitatio... | [
"noreply@github.com"
] | noreply@github.com |
04aaeca81365d84683d423d2113d3dca18c1ddb6 | 6451afeb63ae2be4974cab898e1f72d3d5633d72 | /gmailsync/utils.py | fc8018f7c83296daadc1a88c73cf96d850af8835 | [
"Apache-2.0"
] | permissive | albertoalcolea/gmailsync | f8fb8bd6bee3911482b6ef64f99d714682405938 | cf2c1f074c24234284e1cfc2949341df1a9899ba | refs/heads/master | 2022-05-02T22:40:46.881024 | 2022-04-14T17:08:28 | 2022-04-14T17:08:28 | 217,107,647 | 4 | 3 | null | null | null | null | UTF-8 | Python | false | false | 504 | py | import itertools
import os
def chunked(iterable, size):
it = iter(iterable)
while True:
chunk = tuple(itertools.islice(it, size))
if not chunk:
break
yield chunk
def expand_path(path):
"""
Convert relative paths to absolute paths expanding environment variables, a... | [
"albertoalcolea@gmail.com"
] | albertoalcolea@gmail.com |
0716ae0a297c478efb4cabc07dd95d1ade9b0765 | 0c85cba348e9abace4f16dfb70531c70175dac68 | /cloudroast/networking/networks/api/security_groups/test_security_groups_quotas.py | 711c5f5a1d12b995b33e7c5f496a7e31ad6fa4c0 | [
"Apache-2.0"
] | permissive | RULCSoft/cloudroast | 31157e228d1fa265f981ec82150255d4b7876af2 | 30f0e64672676c3f90b4a582fe90fac6621475b3 | refs/heads/master | 2020-04-04T12:20:59.388355 | 2018-11-02T21:32:27 | 2018-11-02T21:32:27 | 155,923,262 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,301 | py | """
Copyright 2015 Rackspace
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 writing, software
dist... | [
"leonardo.maycotte@rackspace.com"
] | leonardo.maycotte@rackspace.com |
47b06042aeb032ae4e939d3b48da59ba5b47905c | ce083128fa87ca86c65059893aa8882d088461f5 | /python/flask-webservices-labs/flask-spyne-fc20-labs/examples-fc20-labs/.venv/bin/pserve | aa6ac24579b1b2bb05f169edd556d6441a8b4c09 | [] | no_license | marcosptf/fedora | 581a446e7f81d8ae9a260eafb92814bc486ee077 | 359db63ff1fa79696b7bc803bcfa0042bff8ab44 | refs/heads/master | 2023-04-06T14:53:40.378260 | 2023-03-26T00:47:52 | 2023-03-26T00:47:52 | 26,059,824 | 6 | 5 | null | 2022-12-08T00:43:21 | 2014-11-01T18:48:56 | null | UTF-8 | Python | false | false | 325 | #!/root/NetBeansProjects/fedora/python/flask-webservices-labs/flask-spyne-fc20-labs/examples-fc20-labs/.venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from pyramid.scripts.pserve import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(mai... | [
"marcosptf@yahoo.com.br"
] | marcosptf@yahoo.com.br | |
7f7bc5dacb84f4e18c258d76fd91a9bb8cc3af3b | 54f352a242a8ad6ff5516703e91da61e08d9a9e6 | /Source Codes/CodeJamData/12/23/12.py | da0396d4cf15e8267cd6d9041247bc41bc9c3b63 | [] | 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 | 1,511 | py | # -*- coding:utf-8 -*-
import os, itertools
curr_dir = os.path.dirname(os.path.abspath(__file__))
srcfilename = os.path.join(curr_dir, 'C-large.in')
dstfilename = os.path.join(curr_dir, 'output.txt')
def solve(numbers_):
numbers = sorted(numbers_)
memory = dict((k, [k]) for k in numbers)
for r in xrange(2... | [
"kwnafi@yahoo.com"
] | kwnafi@yahoo.com |
4aff36fdb71b2bbc4fd29e2773506848f06a1fd6 | 8a7d5d67052892dd5d2a748282958f6244d963c6 | /google-cloud-sdk/lib/surface/app/domain_mappings/delete.py | 32842caf145b27ecec1a4e5410e7656b9643a037 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | KisleK/capstone | 7d1d622bd5ca4cd355302778a02dc6d32ed00c88 | fcef874f4fcef4b74ca016ca7bff92677673fded | refs/heads/master | 2021-07-04T03:29:44.888340 | 2017-07-24T16:16:33 | 2017-07-24T16:16:33 | 93,699,673 | 0 | 2 | null | 2020-07-24T22:44:28 | 2017-06-08T02:34:17 | Python | UTF-8 | Python | false | false | 1,812 | py | # Copyright 2017 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ag... | [
"kisle.kuhn1@gmail.com"
] | kisle.kuhn1@gmail.com |
a99dbfd23d95657ed987f929ac6e3d4f7fd948f8 | a64f122dd4df3e20bc3e25aca31bb11ec9d55977 | /Assignment 3/ICA.py | 507e0eba4db4d38a810c8e4fc5190d3e25708cc8 | [] | no_license | mbrine555/gatech_ML | f9de5e1e1c29e40693030fcf3dce4797339f3ada | 2a3dea874ac7710104fb891a5199afa9f3c046af | refs/heads/master | 2020-04-16T10:39:44.328425 | 2019-04-10T11:54:37 | 2019-04-10T11:54:37 | 165,512,336 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,002 | py |
#%% Imports
import pandas as pd
import numpy as np
from sklearn.preprocessing import StandardScaler
from sklearn.pipeline import Pipeline
from helpers import nn_arch, nn_reg
from sklearn.neural_network import MLPClassifier
from sklearn.model_selection import GridSearchCV
from sklearn.decomposition import FastICA
out... | [
"briner.15@osu.edu"
] | briner.15@osu.edu |
839113b7423bd08946db266c62e3e63a9519e089 | cbc5e5e32cdb04a16b3d2306f7d8dc265a86c47b | /py9/Test_Semaphore.py | 0d640709f22e835dd46ded3338e1a7783df24eac | [] | no_license | github-ygy/python_leisure | 9821bd9feb6b5f05e98fd09ed1be1be56f3f8e35 | f58ee2668771b1e334ef0a0b3e3fc7f6aacb8ccf | refs/heads/master | 2021-01-23T06:15:27.715836 | 2017-10-31T16:56:44 | 2017-10-31T16:56:44 | 102,496,812 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 440 | py | #!/usr/bin/env python
# author:ygy
import threading, time
def run(n):
semaphore.acquire() #信号量计数
print("run the thread: %s" % n)
time.sleep(1)
print("off the thread:%s" % n)
semaphore.release() #释放数量
# if __name__ == '__main__':
semaphore = threading.BoundedSemaphore(5) # 最多允许5个线程同时运行
for ... | [
"ygyworkforit@163.com"
] | ygyworkforit@163.com |
7c24816e0cc78d7f5a050e986f67e531eab4ee7b | 0f522fc0b72a4af3f58516a244e88dac8d3bb891 | /app/src/libraries/flows/__init__.py | 337fb0dec4d4cb8a2c312639f9970ac38dfe1405 | [
"MIT"
] | permissive | roguextech/ConDiNozzle | cb7434281934f5c550e50e39ea05efccf305e4c0 | c80b084570676882f4f98bb1aaed62b022dd7116 | refs/heads/main | 2023-08-10T19:12:06.471160 | 2021-09-10T20:33:12 | 2021-09-10T20:33:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 80 | py | # Flows definition package
from .flow_funcs import *
from .flow_state import *
| [
"raihaan.usman@gmail.com"
] | raihaan.usman@gmail.com |
74d2f041b4f2ac6cdb869ee1926db295164b1264 | 4b6fc63aecf127806b34998cdaef0f7342514dcd | /Stress/SIGI_Fase_1/Defensor.py | 0d84b621c51b08e4bfe546158149c1af5667da44 | [
"CC0-1.0"
] | permissive | VictorAdad/sigi-api-adad | 08365166f0443cc5f2c90fa792a63998e185f3f1 | 412511b04b420a82cf6ae5338e401b181faae022 | refs/heads/master | 2021-04-29T14:27:21.807529 | 2018-02-16T17:42:04 | 2018-02-16T17:42:04 | 121,772,079 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,978 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
from locust import HttpLocust, TaskSet, task
from requests_toolbelt import MultipartEncoder
from random import randrange
import requests
import mysql.connector
from mysql.connector import errorcode
import variables
import time
url = variables.url #cambiar formato de url... | [
"evomatik@localhost.localdomain"
] | evomatik@localhost.localdomain |
a01b737b6a71793fa94eecea6a2b5828c94e7181 | 015b726c7c6bec1869fcfdfe3a1d3f46726ec7aa | /generate.py | 64f483fa32cf2de9ebf1e1eb8a0a07873471f260 | [] | no_license | scdade/homeserver | c886eb218fc90d86a47629f6ca9127b4b28eae2e | 66a879bf99b99b3dfee175baf807efa638747cd7 | refs/heads/main | 2023-05-26T12:56:07.070056 | 2021-06-06T19:05:52 | 2021-06-06T19:05:52 | 373,921,238 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 993 | py | import binascii;
hInnerscript = open("innerscript.py",'r');
data = hInnerscript.read();
base64=binascii.b2a_base64(data.encode('ascii'));
base64=base64.decode('ascii');
base64=base64.replace("\n","");
base64=base64.replace("\r","");
module = open("17778.in.hsl",'r');
moduledata = module.read();
moduledata.encode('a... | [
"Daniel.Schmidt@jenoptik.com"
] | Daniel.Schmidt@jenoptik.com |
17aec2e9e4241eb7c8589ae7042a57c2077d973f | 209c876b1e248fd67bd156a137d961a6610f93c7 | /python/paddle/fluid/tests/unittests/xpu/test_reduce_max_op_xpu.py | 9256b135ba8d04c2c3984633b176dd0a68c66765 | [
"Apache-2.0"
] | permissive | Qengineering/Paddle | 36e0dba37d29146ebef4fba869490ecedbf4294e | 591456c69b76ee96d04b7d15dca6bb8080301f21 | refs/heads/develop | 2023-01-24T12:40:04.551345 | 2022-10-06T10:30:56 | 2022-10-06T10:30:56 | 544,837,444 | 0 | 0 | Apache-2.0 | 2022-10-03T10:12:54 | 2022-10-03T10:12:54 | null | UTF-8 | Python | false | false | 2,573 | py | # Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by app... | [
"noreply@github.com"
] | noreply@github.com |
a2996d418df380689d0ce270efb07b78628d4bc2 | 6f98d1667a5c9d55d0a74dcee77b5c3c777653a5 | /source/ma20/analysis_stock.py | 8f57162586da3109aaf4f8b18d1301f607c63bb7 | [] | no_license | llzhi001/stock_strategy | 55efec1ed95d9ba862fd71f705a5cca8ad3af751 | 237f9ccda0c806f06b99374a5680c5cb70c07899 | refs/heads/master | 2020-12-08T13:19:59.083121 | 2018-04-03T17:09:54 | 2018-04-03T17:09:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,643 | py | # coding=utf-8
'''
Created on Nov 7, 2017-12:40:31 AM
@author: yubangwei_pc
'''
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
import os
import tushare as ts
from datetime import datetime
# 考虑拟合20天均线,取导数?
m20_para = {'not_rising_days':5, #连续not_rising_days多天不上涨,说明20天均线横盘或者下跌
'cons... | [
"qiuyemingchong@163.com"
] | qiuyemingchong@163.com |
0d68ac6e207b37d788e51c89ec289b18727b302d | c22c83592571b64c3da4a3f3c4d1bbaaee50a318 | /encryption.py | ea49016c24dde788787f3a42249522bd0f17076a | [] | no_license | tt-n-walters/thebridge-week1 | eaef2887122dd4f778ab94ab3c819f1e63a1985f | 8598125af12b21794e93f09407984009c36aaf25 | refs/heads/master | 2023-06-16T14:31:45.955254 | 2021-07-09T12:14:40 | 2021-07-09T12:14:40 | 382,301,941 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 180 | py | import hashlib
password = "password1"
encoded_password = password.encode()
encrypted = hashlib.sha256(encoded_password).hexdigest()
# https://resources.nicowalters.repl.co/hash
| [
"nico.walters@techtalents.es"
] | nico.walters@techtalents.es |
d9f0bd32c021cff6d85d2b4c86f7c6a119a3be14 | 0912be54934d2ac5022c85151479a1460afcd570 | /Ch07_Code/GUI_MySQL.py | cf54d12400d1045cffa7dcdeaa05f864343ff849 | [
"MIT"
] | permissive | actuarial-tools/Python-GUI-Programming-Cookbook-Third-Edition | 6d9d155663dda4450d0b180f43bab46c24d18d09 | 8c9fc4b3bff8eeeda7f18381faf33c19e98a14fe | refs/heads/master | 2023-01-31T13:11:34.315477 | 2020-12-15T08:21:06 | 2020-12-15T08:21:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,876 | py | '''
Created on May 29, 2019
@author: Burkhard
'''
#======================
# imports
#======================
import tkinter as tk
from tkinter import ttk
from tkinter import scrolledtext
from tkinter import Menu
from tkinter import Spinbox
from Ch07_Code.ToolTip import ToolTip
from threading import Thread... | [
"noreply@github.com"
] | noreply@github.com |
0fdeff39871fc700ab63276af189ae59086ca209 | 9025fc04844a202f00e691728c87eb10906e87c3 | /Python/3/hue.py | 47ddef65c29489500d3964a4d7a381559351461c | [] | no_license | felipemarinho97/online-judge-exercices | e046e3fd951f4943c43e199f557d96f82d8ed286 | 28cff9b31431e1c1edeeba0b66689e871491ac0a | refs/heads/master | 2021-01-20T00:33:09.782364 | 2017-04-23T15:19:04 | 2017-04-23T15:19:04 | 89,148,286 | 0 | 0 | null | 2017-04-23T15:21:01 | 2017-04-23T14:34:29 | Python | UTF-8 | Python | false | false | 580 | py | # coding: utf-8
# Melhor Ataque
# Felipe Marinho (C) | 116110223 | <felipe.marinho@ccc.ufcg.edu.br>
times = int(raw_input())
lista_times = []
lista_gols = []
total_gols = 0
maior = -1
for i in range(times) :
time = raw_input()
lista_times.append(time)
gols = int(raw_input())
lista_gols.append(gols)
total_gols += ... | [
"felipevm97@gmail.com"
] | felipevm97@gmail.com |
ec27f61e3c232a3694137ddddce91e9735b3c6fe | da9328c5a135429afeeedf099df62ed8cdf7bec2 | /Train_new/urls.py | 6818ea483abdb3d87d10679c0e98ce0a6868723d | [] | no_license | dbissa94/Train_new | 1eb51e670e55ef1fc548f2dd18b1d0c7fbd483e3 | 079ecc335d39a8bbed2f561bd5a2951e4a7a67bb | refs/heads/master | 2020-03-23T15:26:55.024702 | 2018-07-20T19:23:14 | 2018-07-20T19:23:14 | 141,748,975 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 751 | py | """Train_new URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.0/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-bas... | [
"dbissa94@gmail.com"
] | dbissa94@gmail.com |
8b7cdf915356ccea4db3aa8f64482b9db8fd2025 | 0b95518353f172a0d3f53c3afb0608ab975974d2 | /login/001-kgc/001-kgc.py | cb7dc0a736c884bdb998ef386df548563724bc16 | [] | no_license | uba888/uba_python | 54b19e6483f5daacec6d2e0e5a4d9cf02ca2d7b5 | 1b63378ab86cda8221c6f7f9bad68c364874ccb6 | refs/heads/master | 2020-01-23T22:00:05.122331 | 2016-12-30T10:31:15 | 2016-12-30T10:31:15 | 74,717,680 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,812 | py | #!/usr/bin/python3
import requests
import hashlib
from scrapy import Selector
import http.cookiejar as cookielib
# 构造 Request headers
headers={'User-Agent':'Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.116 Safari/537.36'}
session=requests.session()
session.cookies =... | [
"lsqtyihui@163.com"
] | lsqtyihui@163.com |
d04192355048644b83481659d3d017166e0b80d5 | 262985ef23f8be4ccfb6f5078417369e85ca3181 | /14. DP 动态规划/213. House Robber II.py | c83436bb0b53c016863f6cf71b952a9430fef486 | [] | no_license | MaxShi007/leetcode_solutions | 4953508f4c08bc3b604dde0b9dd8ca32d947585d | c868a61f145387dbce18244774a87395744ef5bf | refs/heads/master | 2023-07-16T11:14:22.480679 | 2021-08-05T04:13:27 | 2021-08-05T04:13:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 688 | py | class Solution:
def rob(self, nums: List[int]) -> int:
if not nums:
return 0
if len(nums) == 1:
return nums[0]
if len(nums) == 3 or len(nums) == 2:
return max(nums)
pprev = nums[0]
prev = max(nums[0], nums[1])
for i in range(2, le... | [
"dongxiao.huang17@imperial.ac.uk"
] | dongxiao.huang17@imperial.ac.uk |
56c0772044ebaf46e5c5c9a019c3695e3cc61185 | ad012754c825cfa2a591507b73fc9f4e7e6ec34c | /module01_introduction/part01_helloworld/phone_book.py | 32da7f5e5d9f82940bc22e4420ceee21972cf720 | [] | no_license | noh-yujeong/Python_activity_UNIST_MGE | 4961267fe8ad7d7eed8ec20e06bea78ae6709937 | 4dd0cd776c9bab846b96f36fd7f7ffbbee61647e | refs/heads/main | 2023-06-26T05:11:54.530640 | 2021-08-01T08:31:49 | 2021-08-01T08:31:49 | 391,353,632 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,673 | py | """
Your objective is to implement a simple Phone Book.
Phone numbers are stored in a dictionary, e.g. { "Adam" : "010-0000-1111", "Alice" : "010-0011-2233"}
See the code in the main for an example of how the phone book can be used
"""
def add_contact(phone_book, name, number):
"""
This function allows to st... | [
"noreply@github.com"
] | noreply@github.com |
cc0dc75ea718364f53131f6b626ef7e2304320de | 2b05f2e5d40bd45b6db07ffd87eea55d14088499 | /experiments/reset-jobs.py | bcb44cafa670da9fc96dfab63ce4eff67ee30a8a | [] | no_license | cobeylab/pneumo-resistance | 87d10ef1dc3215fa8558b4c831fa6ce03b60a7e4 | aaff3a0ab1df6baffbd66e38eac7ef72c9367229 | refs/heads/master | 2021-01-19T20:03:41.762719 | 2017-06-06T02:40:36 | 2017-06-06T02:40:36 | 88,480,925 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,816 | py | #!/usr/bin/env python
import os
import sys
import sqlite3
def main():
os.chdir(os.path.dirname(__file__))
print('This script will remove any output files for jobs marked "running", "canceled",\nor "failed" and set their state to "waiting".')
print('Make sure no jobs or workers are running!\nAre you s... | [
"ed@edbaskerville.com"
] | ed@edbaskerville.com |
6d89e6abceea5512cfe77fb05c1b73cc7bba2fb5 | fb3f592360a422a7d5de23552daef8ae84274c4c | /setup.py | 097d58d9d4838e49a168d61839c81bc98804ca80 | [
"Apache-2.0"
] | permissive | HUMANAMUH/task-executor-py | 6e555ff9cdb91eb2d17eebb1ccc02f574b685357 | 04bb2852b8068e5b26f1df967684e2eab207a9e9 | refs/heads/master | 2021-01-12T18:25:15.894394 | 2017-06-27T02:55:42 | 2017-06-27T02:55:42 | 71,372,362 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 528 | py | from distutils.core import setup
setup(
name="humanamuh-task-executor",
version="0.10",
packages = ["task"],
py_modules="task",
author = "Earthson Lu",
author_email = "Earthson.Lu@gmail.com",
description = "task-executor for task-manager",
license = "Ap... | [
"Earthson.Lu@gmail.com"
] | Earthson.Lu@gmail.com |
2ee4f46a9c859debc928757ef69372dd72d0487c | 0cb413889b5aa3889a6c36fe8601c2c16477a1c6 | /Class/elements/__init__.py | b57d9828f3cf83caffc43260040b9ae7e6735f98 | [] | no_license | pierrickdelrieu/RunAndGun | bd77c30d0bf3a9f6ec2b1666e47f62c873521b9f | 7017103bab1c63f895c46fc29098f6c218933849 | refs/heads/master | 2022-12-29T20:11:17.325163 | 2020-10-21T07:13:56 | 2020-10-21T07:13:56 | 246,426,390 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 96 | py | from .caisse import Caisse
from .sol import Sol
from .terre import Terre
from .vide import Vide
| [
"romain.ordi@gmail.com"
] | romain.ordi@gmail.com |
ccfd104c316ff6d373be371b1562c7625f50c37c | 41f09c4f9990f8d2ce57aef92be1580f8a541656 | /show_lbiflist.py | 69778715a9ac37d8e3b06516f36e4ea83cfb6002 | [] | no_license | jebpublic/pybvccmds | d3111efe6f449c3565d3d7f1c358bdd36bc1a01a | 997eead4faebf3705a83ce63b82d853730b23fbf | refs/heads/master | 2016-09-05T18:56:52.509806 | 2015-02-25T17:41:47 | 2015-02-25T17:41:47 | 31,315,416 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,472 | py | #!/usr/bin/python
import sys
import json
import pybvc
from pybvc.netconfdev.vrouter.vrouter5600 import VRouter5600
from pybvc.common.status import STATUS
from pybvc.controller.controller import Controller
from pybvc.common.utils import load_dict_from_file
if __name__ == "__main__":
f = "cfg.yml"
d = {}
... | [
"jeb@elbrys.com"
] | jeb@elbrys.com |
305a306ddc5c1172b759669ae82019a0089a6754 | 3ce4c02aad370ef52a0466efd85cea48472c6354 | /school/Literation/whileBill.py | 3f25af0e17396772256e01952371193167b26230 | [] | no_license | renasustek/python-files | 110ac169371d3480d07a235908834e14d072f97a | 4ed64f194dbd9824742a1e20035a93f9191ab2f9 | refs/heads/master | 2020-03-11T05:16:24.877808 | 2018-04-19T20:10:24 | 2018-04-19T20:10:24 | 129,797,952 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 169 | py | bill = 0
newValue = 2
while newValue != 0:
newValue = int(input("What is price of the current amount:"))
bill = bill + newValue
print("Bill:", bill)
| [
"noreply@github.com"
] | noreply@github.com |
6bdee705a979426573bc0d836de6cc21f8c69502 | a14dd601cde67f67d0ba38dfd1362f7c0109cef1 | /graphs/past/perfect-friends.py | 84d3237c7bc95823da7474a6ccbd297330ad8192 | [] | no_license | Meaha7/dsa | d5ea1615f05dae32671af1f1c112f0c759056473 | fa80219ff8a6f4429fcf104310f4169d007af712 | refs/heads/main | 2023-09-03T18:52:41.950294 | 2021-11-05T09:14:42 | 2021-11-05T09:14:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 565 | py | from collections import defaultdict
from graphs.util import build
def dfs(graph, src, vis):
vis.add(src)
count = 1
for nbr in graph[src]:
if nbr not in vis:
count += dfs(graph, nbr, vis)
return count
def main(edges):
graph, vis = build(edges), set()
csl = []
for src i... | [
"nikhilgoyal104ah4@gmail.com"
] | nikhilgoyal104ah4@gmail.com |
e2496dd0a9cbad7734aac03566419693e16c3549 | e848d70881a776c0ced41dcaa5b4bd306546467c | /HackerEarth/basic_neaural_net_hackerearth_challenge.py | 103eafb8a65d03c782d8ee88c9d6b74b71ec33e2 | [] | no_license | yashchauhan28/deep-learning | 10796a415a812b486e6a37ea6684178cbd652438 | 30049a8a93a1aca3f79d65ad863f7686a21d4302 | refs/heads/master | 2020-03-19T10:17:07.645808 | 2018-07-11T19:15:37 | 2018-07-11T19:15:37 | 136,358,083 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,244 | py | # coding: utf-8
import os
import cv2
import pickle
import numpy as np
import pandas as pd
from tqdm import tqdm
from keras.utils import to_categorical
from keras.models import Sequential
from keras.layers import Activation,Dropout,Flatten,Dense,Convolution2D,MaxPooling2D,ZeroPadding2D
from keras.preprocessing.image imp... | [
"yashchauhan281@gmail.com"
] | yashchauhan281@gmail.com |
501d66055d8f509333e122e8e779ff86394740dc | 7fcb9a135db358f105f211be87e4842221747180 | /core/migrations/0001_initial.py | 01bdb64a8be01c3a0f0a4a5925ac4047f79a10ae | [] | no_license | MaksTresh/tinder | 5abc5d4ecbf718cf40cddb07008e6361eab84e67 | 89fb71275fce6f8a8cfda80ee0f482d6c869fcce | refs/heads/main | 2023-03-29T21:14:28.748453 | 2021-04-05T22:49:55 | 2021-04-05T22:49:55 | 354,192,844 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,927 | py | # Generated by Django 3.1.7 on 2021-03-26 18:34
from django.conf import settings
import django.contrib.auth.validators
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
import django_countries.fields
class Migration(migrations.Migration):
initial = True
... | [
"mmakstresh@gmail.com"
] | mmakstresh@gmail.com |
583f13f6a538f4ff366e33c72dbb8ea4dcdce36b | ef0bcdea7c0b60748b665a2b3873011b60193b25 | /Accuracystatistics/src2mlf.py | 77128e6f7c539a7d3a47e1ad2413bfcf35ac511f | [] | no_license | jackyzcq/pythontools | aa27007f9b8e7f6e773d3929b21585897e273615 | a2a9e9143fc8bba597c361e782f211c9b3701426 | refs/heads/master | 2021-04-03T21:58:35.022308 | 2020-12-08T04:22:41 | 2020-12-08T04:22:41 | 248,400,016 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,324 | py | #-*- coding:utf-8 -*-
import os,sys
def to_mlf(xi):
dx={
b"0":"零",
b"1":"一",
b"2":"二",
b"3":"三",
b"4":"四",
b"5":"五",
b"6":"六",
b"7":"七",
b"8":"八",
b"9":"九"
}
d=[]
eng=[]
tx=[",",".","!","(",")",",","。","!",';','、',':','?','“','”'... | [
"zhangchunqing@youxuepai.com"
] | zhangchunqing@youxuepai.com |
95f07028ed1317b33c687e3f152ed408d54accea | 0d2f636592dc12458254d793f342857298c26f12 | /11-2(tag).py | 1baa801108cd7920160b82b12b955e92548f7030 | [] | no_license | chenpc1214/test | c6b545dbe13e672f11c58464405e024394fc755b | 8610320686c499be2f5fa36ba9f11935aa6d657b | refs/heads/master | 2022-12-13T22:44:41.256315 | 2020-09-08T16:25:49 | 2020-09-08T16:25:49 | 255,796,035 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 301 | py | def mymax(n1,n2):
if n1 > n2:
print("較大值是 : ", n1)
else:
print("較大值是 : ", n2)
x1,x2 = eval(input("請輸入2個數值:"))
mymax(x1,x2)
"""自己做的
def mymax(n1,n2):
print("最大值為:",max(n1,n2))
a = input("請輸入2個數值:")
mymax(a,b)"""
| [
"kkbuger1523@gmail.com"
] | kkbuger1523@gmail.com |
20877f2d672187ee40ac2b5f963110828cccd69d | b5c0d06ad4256aff912b952995f4d62304074a85 | /week-05/day-1/cows_bulls.py | 18afb6aa629f07c55761f57f32572da41bc98ec7 | [] | no_license | greenfox-velox/annatorok | 68ad65c0c87b4c68f66bf4e261b319ae8ca2cc70 | 44eab2cf2b5355422aa878998dc1fff75484ea3f | refs/heads/master | 2020-02-26T16:41:52.065164 | 2016-07-19T13:32:07 | 2016-07-19T13:32:07 | 58,053,206 | 4 | 9 | null | null | null | null | UTF-8 | Python | false | false | 1,209 | py | # Create a class what is capable of playing exactly one game of Cows and Bulls (CAB). The player have to guess a 4 digit number. For every digit that the player guessed correctly in the correct place, they have a “cow”. For every digit the player guessed correctly in the wrong place is a “bull.”
#
# The CAB object shou... | [
"mail@annatorok.com"
] | mail@annatorok.com |
8c9bfaad4987ae8169db8f362734d87365391cd9 | df96ada5da88e4da63b2d8a2e7f45d1df7e04000 | /sp_api/api/notifications/models/destination_resource.py | 11faa729929f8dfa6c28c92cf68a3d8a833acfc5 | [
"MIT"
] | permissive | lionsdigitalsolutions/python-amazon-sp-api | d8d2330e770d2c88fa37eb8f7eca32ed51b096c4 | 7374523ebc65e2e01e37d03fc4009a44fabf2c3b | refs/heads/master | 2023-03-01T13:12:57.839135 | 2021-02-02T16:49:23 | 2021-02-02T16:49:23 | 334,256,038 | 0 | 0 | MIT | 2021-02-02T16:49:24 | 2021-01-29T20:29:42 | null | UTF-8 | Python | false | false | 4,082 | py | # coding: utf-8
"""
Selling Partner API for Notifications
The Selling Partner API for Notifications lets you subscribe to notifications that are relevant to a selling partner's business. Using this API you can create a destination to receive notifications, subscribe to notifications, delete notification subsc... | [
"info@meine-buybox.de"
] | info@meine-buybox.de |
919204b02732c69b3cdce838f4f06670d71c72c5 | 5c5e7b03c3373e6217665842f542ca89491290ff | /2015/day25.py | cb3f0bf727f854fd9f2f893b07c4884439f6ee3e | [] | no_license | incnone/AdventOfCode | 9c35214e338e176b6252e52a25a0141a01e290c8 | 29eac5d42403141fccef3c3ddbb986e01c89a593 | refs/heads/master | 2022-12-21T21:54:02.058024 | 2022-12-15T17:33:58 | 2022-12-15T17:33:58 | 229,338,789 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 616 | py | from getinput import get_input
from util import ncr
def get_idx(row, col):
if row == col == 1:
return 1
return ncr(row+col-1, 2) + col
def get_val(row, col):
mod = 33554393
rat = 252533
startval = 20151125
return startval*pow(rat, get_idx(row, col)-1, mod) % mod
def parse_input(s):... | [
"incohatus.none+git@gmail.com"
] | incohatus.none+git@gmail.com |
06cd9a6daa432a95245372b518bcf69f3ce1c6b0 | e78094417a90f42f01b6cebd4e55ac3ccd532a6c | /cuckoo/cuckoo.py | 0f8113943abb2f0d30eb7fa52eae50f2313aee0e | [] | no_license | kiranmehta1981/study | d1065b853c5dbcc8f39f1cd791bf42fcf71a07b9 | dde5770860ff6b28c8507d43d96b43c9f55f6068 | refs/heads/master | 2021-01-16T00:56:42.094138 | 2017-09-04T06:06:52 | 2017-09-04T06:06:52 | 99,986,273 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,065 | py | import hashlib
import sys
#Number of elements in hash table
if len(sys.argv) != 2 :
print "Required format: <python> <program> <size of hash table>"
sys.exit(0)
if int(sys.argv[1]) <= 0:
print "Required format: <python> <program> <size of hash table>"
sys.exit(0)
N=int(sys.argv[1])
F=[hashlib.md5, h... | [
"kiranmehta1981@gmail.com"
] | kiranmehta1981@gmail.com |
95edf831f37b676ba3fb2731a59d15664766b478 | 3c099a78896ca4b775d28fccf38c2bfdf6a1a555 | /zMiscellaneous/WebScraping/ScrapingEcommerce.py | 91e6ae08778622a1632ba801532cb50101916bff | [] | no_license | anmolparida/selenium_python | db21215837592dbafca5cced7aecb1421395ed41 | 78aec8bf34d53b19fb723a124ad13342c6ce641c | refs/heads/master | 2022-12-03T23:52:32.848674 | 2020-08-30T19:26:30 | 2020-08-30T19:26:30 | 282,207,788 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,366 | py | import requests
from bs4 import BeautifulSoup
# Getting Value from the First Page
url = 'https://scrapingclub.com/exercise/list_basic/?page=1'
response = requests.get(url)
soup = BeautifulSoup(response.text, 'lxml')
items = soup.find_all('div', class_='col-lg-4 col-md-6 mb-4')
count = 0
for i in items:
... | [
"anmolparida@gmail.com"
] | anmolparida@gmail.com |
7c322b783602c646db72f60dc13730327ca512ba | 6766380f77c8bf445c10537f186ad51d701f5b4a | /lib/click/testing.py | fe69318b06208adbe451b18be1cbe96c29cd5640 | [] | no_license | pskyp/testflask123 | 9e7b772cc3573ae079b3199797426880e0fad18f | 84814580cfe56bb0a440eaa34e75692b7cf55358 | refs/heads/master | 2020-03-18T16:38:19.952806 | 2018-05-26T16:23:43 | 2018-05-26T16:23:44 | 134,977,504 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,001 | py | import contextlib
import os
import shutil
import sys
import tempfile
from ._compat import iteritems, PY2
# If someone wants to vendor click, we want to ensure the
# correct package is discovered. Ideally we could use a
# relative import here but unfortunately Python does not
# support that.
clickpkg = sys.modules[__... | [
"pierswilcox@gmail.com"
] | pierswilcox@gmail.com |
38645d8f0380f2ed1ceb29feb80d9462dfc29c58 | 1ee674004d27b16dfc5541759c910039ccba4d8d | /src/models/crnn.py | 98552f83625c25e03ef04238b1e59fc0f04c6a00 | [
"MIT"
] | permissive | JediKnightChan/Adapting-OCR | f9dae4c2ca251fee8746a4ed88e3be1936eb847b | 0604fe573e58f3d2e918461bdccece3af8b28059 | refs/heads/master | 2023-03-26T17:19:53.677279 | 2020-08-30T07:36:30 | 2020-08-30T07:36:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,487 | py | import torch
import torch.nn as nn
import torch.nn.functional as F
import pdb
import numpy as np
import random
class BidirectionalLSTM(nn.Module):
def __init__(self, nIn, nHidden, nOut):
super(BidirectionalLSTM, self).__init__()
self.rnn = nn.LSTM(nIn, nHidden, bidirectional=True)
self.embe... | [
"aniketsinghresearch@gmail.com"
] | aniketsinghresearch@gmail.com |
a6638154b86dc17f87da395097eed3f3c4cc710c | 65e7052a6be0f0d8e168053d324bd4985724d571 | /test.py | 4e82632c1d10e769248d91071e67f954900b2188 | [] | no_license | BlockSpaceVictor/SudokuSolverKeras | ab147413b432f8ece214fee33d0d8804e29acdeb | 4da2637a5127d049d84521965e5230bb254b18dd | refs/heads/master | 2021-05-18T20:56:26.990184 | 2020-04-20T05:55:10 | 2020-04-20T05:55:10 | 251,417,023 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,359 | py | import numpy as np
import pandas as pd
import tensorflow as tf
from tensorflow import keras
from tensorflow.keras import layers
from tensorflow.keras.optimizers import SGD
import random
import matplotlib.pyplot as plt
# sudokuSmall.csv contains 150 puzzles and solutions
# sudoky.csv contains 1 million puzzles and... | [
"noreply@github.com"
] | noreply@github.com |
5bb05fab43f5353a702c4e9a5694f8f08030eda9 | c74f234dc478b49f367106b414df2473ac35b93c | /mysite/polls/urls.py | 5c7dd5797f18fd2607e2b916de5c2ac36d13007c | [] | no_license | Richiewong07/Django | 05994f552cea2cb612c6c1957a0a9a39605fdf5c | 09ac06a60c623d79bb8ecafd014ac7dbc74e8535 | refs/heads/master | 2021-04-15T14:00:00.394201 | 2018-03-24T00:34:15 | 2018-03-24T00:34:15 | 126,238,394 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 591 | py | from django.conf.urls import url
from . import views
urlpatterns = [
# r^$ MEANS DON'T ADD ANYTHING TO OUR URL
# views.index IS WHAT YOU WANT TO DISPLAY
# 127.0.0.1/polls/
url(r'^$', views.index, name="index"),
# SET QUESTION_ID TO A NUMBER
# 127.0.0.1/polls/1
url(r'^(?P<question_id>[0-9... | [
"richiewong07@yahoo.com"
] | richiewong07@yahoo.com |
4058a4aba52d9076ba294a27d437eb8344f2cdb7 | 668cc2cd1109cf1c207a57ae7decc5ae5edc9728 | /backend/users/migrations/0002_auto_20201104_1426.py | d51fe7ac08131e041c8abbbf9f79c5410e4a4133 | [] | no_license | crowdbotics-apps/logictech-22290 | 7538661024c163c16881371468f84c181d1ee93f | f17151874e1fd60a1cc81b247a5e0599421ac6e8 | refs/heads/master | 2023-01-09T21:14:45.728461 | 2020-11-04T14:30:13 | 2020-11-04T14:30:13 | 310,025,912 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 627 | py | # Generated by Django 2.2.17 on 2020-11-04 14:26
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('course', '0001_initial'),
('users', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='user',
... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
ac6e75aefd97283c37f2d48e7ab6c62e5864f6e2 | f825d4972b46adc82afa863c2b6005c7749e5877 | /hangman.py | 59c65f431f2f478101dd4adf6fd5da76a10c42de | [
"Giftware"
] | permissive | Ashu0204/Projects-in-Python | dbd565786610c0a4805f41951f52b2e1bed7b831 | b7ce4e132532fe6be2d4553dbddceccd5e6f3d1d | refs/heads/master | 2022-01-08T00:55:37.941155 | 2018-11-16T04:29:28 | 2018-11-16T04:29:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,543 | py | # Hangman game
# -----------------------------------
import string
import random
WORDLIST_FILENAME = "words.txt"
def loadWords():
"""
Returns a list of valid words. Words are strings of lowercase letters.
Depending on the size of the word list, this function may
take a while to finish.
"""
... | [
"noreply@github.com"
] | noreply@github.com |
d47d43472d31e0e542659aeb3cc520cb97087223 | 1643a5a0d1acd3bdc851718c223ba0b14bbec1c3 | /backend/rn_push_notificatio_27417/settings.py | 0f648a30594df5a74b623cf3269344d5cfcda383 | [] | no_license | crowdbotics-apps/rn-push-notificatio-27417 | 90c614ad558b2810e2b2cfe55e2dae7b97f1359e | ea9c37615be4e9e872a63d226562e4ca7bc2b6c5 | refs/heads/master | 2023-05-23T06:29:28.261563 | 2021-05-27T12:29:04 | 2021-05-27T12:29:04 | 370,993,920 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 7,141 | py | """
Django settings for rn_push_notificatio_27417 project.
Generated by 'django-admin startproject' using Django 2.2.2.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
b8fd4f4290f8a0877f2b1b3efb49106e25a3f001 | 43ab33b2f50e47f5dbe322daa03c86a99e5ee77c | /rcc/models/od_mcomplex_type_definition_method_def.py | 07a0da5592495c471d676699b1ab4f6c2e885f62 | [] | no_license | Sage-Bionetworks/rcc-client | c770432de2d2950e00f7c7bd2bac22f3a81c2061 | 57c4a621aecd3a2f3f9faaa94f53b2727992a01a | refs/heads/main | 2023-02-23T05:55:39.279352 | 2021-01-21T02:06:08 | 2021-01-21T02:06:08 | 331,486,099 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,896 | py | # coding: utf-8
"""
nPhase REST Resource
REDCap REST API v.2 # noqa: E501
The version of the OpenAPI document: 2.0
Generated by: https://openapi-generator.tech
"""
import pprint
import re # noqa: F401
import six
from rcc.configuration import Configuration
class ODMcomplexTypeDefinitionMethodD... | [
"thomas.yu@sagebase.org"
] | thomas.yu@sagebase.org |
fd09ba6957272aa078a7cf5e472d66c8d8b52ac6 | 35be35d9bdcf499b3f8ea13978cbeeccd748561a | /typeidea/blog/middleware/user_id.py | 08722a344aadcc1616ea9a53a3b8098b82a2085d | [] | no_license | mmyming/typeidea | 897a4fdf06a36584be10b5ab8c1e09cb1b40ed2d | 0a18e8220806b5abbf476df09502e89af90ab16b | refs/heads/master | 2020-06-22T17:39:55.763580 | 2019-07-31T08:56:06 | 2019-07-31T08:56:06 | 195,151,867 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 579 | py | import uuid
USER_KEY = 'uid'
TEN_YEARS = 60*60*24*365*10
class UserIDMiddleware:
def __init__(self,get_response):
self.get_response = get_response
def __call__(self, request):
uid = self.generate_uid(request)
request.uid = uid
response = self.get_response(request)
res... | [
"mmy@outlook.com"
] | mmy@outlook.com |
25d572f97c730e74b41e6c7573f86fc6bdc6bedd | 96baf02d944f9506c7da08c85a93ac57b7c0dab7 | /myvenv/Scripts/django-admin.py | ee69fa000b6b0fef61d859a2948fc4e6f4821fc2 | [] | no_license | karina1980/my-first-blog | 9dc84119d07432c261ec5180a1c519b52ec66017 | bdd7a19e96dcf9615f4f2e8675c27dc5b9a73499 | refs/heads/master | 2021-04-28T18:21:03.758632 | 2018-03-06T20:37:42 | 2018-03-06T20:37:42 | 121,870,433 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 170 | py | #!c:\users\karina funegra\djangogirls\myvenv\scripts\python.exe
from django.core import management
if __name__ == "__main__":
management.execute_from_command_line()
| [
"f_jessica@hotmail.com"
] | f_jessica@hotmail.com |
7b76e148b73b644e42f7a1abb259e77dad11fdcc | 4f4c2e5a8a71a2058069b90eb75e11b1ec80efa9 | /euler/Problem_38-Pandigital_multiples.py | 3b25e4c08a2411b5567f23fe50c40e8e254addf0 | [] | no_license | mingyyy/dataquest_projects | 20e234f1d0d3dd8be1f0202b7ed3bce172474e38 | 885ffe4338300cb9c295f37f6140c50ff3b72186 | refs/heads/master | 2022-12-11T17:25:44.053404 | 2020-01-10T09:24:28 | 2020-01-10T09:24:28 | 190,170,724 | 0 | 0 | null | 2022-12-08T05:55:21 | 2019-06-04T09:29:53 | Jupyter Notebook | UTF-8 | Python | false | false | 525 | py | """
Take the number 192 and multiply it by each of 1, 2, and 3:
By concatenating each product we get the 1 to 9 pandigital, 192384576. We will call 192384576 the concatenated product of 192 and (1,2,3)
The same can be achieved by starting with 9 and multiplying by 1, 2, 3, 4, and 5, giving the pandigital, 918273645, w... | [
"j.yanming@gmail.com"
] | j.yanming@gmail.com |
d47b3bb24581ca86d9a76530a019eaca62ae8e66 | f3b233e5053e28fa95c549017bd75a30456eb50c | /p38a_input/L2EE/2EE-2J_MD_NVT_rerun/set_4.py | 2b3fa06318de66ab34d51136748b9f7c26eaed64 | [] | no_license | AnguseZhang/Input_TI | ddf2ed40ff1c0aa24eea3275b83d4d405b50b820 | 50ada0833890be9e261c967d00948f998313cb60 | refs/heads/master | 2021-05-25T15:02:38.858785 | 2020-02-18T16:57:04 | 2020-02-18T16:57:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 742 | py | import os
dir = '/mnt/scratch/songlin3/run/p38a/L2EE/MD_NVT_rerun/ti_one-step/2EE_2J/'
filesdir = dir + 'files/'
temp_prodin = filesdir + 'temp_prod_4.in'
temp_pbs = filesdir + 'temp_4.pbs'
lambd = [ 0.00922, 0.04794, 0.11505, 0.20634, 0.31608, 0.43738, 0.56262, 0.68392, 0.79366, 0.88495, 0.95206, 0.99078]
for j in l... | [
"songlin3@msu.edu"
] | songlin3@msu.edu |
2ddc029faefc58eb0de8e0ede590a8fb248afe04 | 345c28544bbb723f8b5b5268a6dea3ced4fd92b3 | /Chapter 7 Linked Lists/doubly linked lists/doubly_linked_node_before_after.py | eaaed0233beaf31acdeef095a01265fdb5252041 | [] | no_license | devinpowers/algorithms | 28dbdb467bd2eb2aaf784135c7e9c01b4e300977 | 582b97f577e537af0b7f8b9f0eb70422b08c7d52 | refs/heads/master | 2023-03-04T14:12:56.668572 | 2021-02-20T16:26:27 | 2021-02-20T16:26:27 | 279,886,091 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,997 | py | class Node:
def __init__(self, data):
self.data = data
self.next = None
self.prev = None
class DoublyLinkedList:
def __init__(self):
self.head = None
def append(self, data):
if self.head is None:
new_node = Node(data)
new_node.prev = N... | [
"powers88@msu.edu"
] | powers88@msu.edu |
be246e0178441b890f6a27961eb8468ae6dba614 | ce33989c493ab4a5b5600c1d49ef7b20d0b34753 | /kompendie/kompendie/kap.5/5.1.py | bb2d28b5b8bf4bc3002e017137d6a30983c073ac | [] | no_license | abboliwit/kompendietoliver | 7fe28525d0f9e63914f124b9ca72fe17ce5722a4 | 0ec4fdecedf3f1ca1dd76cf4b6794ad4635f1d23 | refs/heads/master | 2020-04-27T01:33:53.893613 | 2019-05-29T20:40:56 | 2019-05-29T20:40:56 | 173,969,327 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,013 | py | class person:# en klass som sorterar varje kändis utseende
def __init__(self,name,gender, hair, eye):
self.name = name
self.gender = gender
self.hair = hair
self.eye = eye
kön = str(input("Ange Kön:"))
hår = str(input("Ange Hårfärg:"))
öga = str(input("Ange Ögonfärg:"))
... | [
"noreply@github.com"
] | noreply@github.com |
2be09fed7e8eec78dc13bb44d5549a0f769cc7a0 | c550f8aa4de6f3007515c76b9f825fcc4d89692f | /datasetinsights/data/datasets/kitti.py | 1ff9ad6e73abe98d61abbaeb626842ac8f7ac067 | [
"Apache-2.0"
] | permissive | BlairLee/dataset-insights | 7b1a0f47b9b368efd48b7ace9f887b8a9568bac3 | 892e2ed3a2facf97cfa3a883700830d959a0c49b | refs/heads/master | 2022-12-04T02:13:51.843602 | 2020-07-31T17:44:35 | 2020-07-31T17:44:35 | 284,096,108 | 1 | 0 | Apache-2.0 | 2020-07-31T17:44:50 | 2020-07-31T17:44:50 | null | UTF-8 | Python | false | false | 15,062 | py | import logging
import os
import shutil
import tempfile
import zipfile
import numpy as np
from PIL import Image
from pyquaternion import Quaternion
import datasetinsights.constants as const
from datasetinsights.data.bbox import BBox3d
from datasetinsights.storage.gcs import GCSClient
from .base import Dataset
from .n... | [
"youcyuan@unity3d.com"
] | youcyuan@unity3d.com |
e6aa223a1ba80168034eed19e3696c9f7a21ee9c | fe119edf256ad6e34b998ed762f7df38d7f8f066 | /pythonMods/outputProcessing.py | d4f19d0f994716421e13d42f41caf651f5dc7978 | [] | no_license | sdrendall/fishRegistration | 77f69a4f0b375cb7c0d577eae1bcf27479b1427f | 0fb8af9c754f71e48f7d5d3e3d70db51d5f42c62 | refs/heads/master | 2021-01-23T03:16:10.473537 | 2018-09-01T12:10:20 | 2018-09-01T12:10:20 | 19,650,316 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,184 | py | import json
from itertools import imap, chain
class StructureFinder:
"""
I find the structure in the allen brain atlas corresponding to the given trait
"""
def __init__(self, structure_data_path):
self.structureData = self._load_structure_data(structure_data_path)
def get_ids_by_acronym(... | [
"sdrendall@gmail.com"
] | sdrendall@gmail.com |
10b4c59e7f373368fe55aa0194680344776c6738 | 1471a936d29e96bdc898d1775a0c1955ebe18c94 | /flight_booking/ixigo.py | 166eb00230b23f3458cb1ef29197bfd4e972c67f | [] | no_license | krish-1409/flight_booking | 5e5a428241e4bf27ceb3216370288c980f364acd | 26603d9dd1531daa617bae1277f02260e929e64d | refs/heads/master | 2023-04-22T00:39:48.232249 | 2021-05-08T18:42:32 | 2021-05-08T18:42:32 | 365,587,219 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,045 | py | from selenium import webdriver
from bs4 import BeautifulSoup
import requests
import pprint
import time
def generate_codes(source,destination,date,all_flights):
url = 'https://www.prokerala.com/travel/airports/india/'
response = requests.get(url)
data = response.text
soup = BeautifulSoup(data,'html.par... | [
"saikrishnalanka75@gmail.com"
] | saikrishnalanka75@gmail.com |
5a7b8942440b0e09640e88480dacb3620fb95a81 | 0dc288dfaefb5d85db786269c956b8fb17e71b17 | /dungeonescape.py | 837ea6b889b487affa649ea4e45ca9f3e6281381 | [] | no_license | Mrabear79/DungeonMaster | fce10d093464c8156335049ddebde6be8bf4d1b8 | e1e362fccbb02d70058cafb12fe286f0d70ad1c3 | refs/heads/master | 2021-04-26T16:47:04.303778 | 2016-04-23T03:10:36 | 2016-04-23T03:10:36 | 56,897,775 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,313 | py | from random import randint
import time
def main():
word = "a"
sword = 5
intro()
while True:
sword, word, finished = TakeTurn(word, sword)
if finished:
break
if sword == 1:
word1 = "sword"
else:
word1 = "swords"
print("You have... | [
"mrabear79@gmail.com"
] | mrabear79@gmail.com |
cbb7090ed85b78de33bfd86918e4421a89733566 | bf1ba47a41dfb410d385b4fa8be924a8fd63a85b | /oddoreven.py | c2800a5774c2e1af5317af706b015bd30bbf9bbd | [] | no_license | balajiyogi/Balaji | 0d251636b281ff1b348e0fc21e9469c25b098e73 | e52d0e31cb541e55c92c241df20590b7cc2343a3 | refs/heads/master | 2020-07-17T09:28:20.161099 | 2020-03-19T05:38:35 | 2020-03-19T05:38:35 | 205,994,409 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 91 | py | a,b=input().split()
a=int(a)
b=int(b)
if((a+b)%2 == 0):
print("even")
else:
print("odd")
| [
"noreply@github.com"
] | noreply@github.com |
4226ca451cc47046f757ad10dee6f3eaf2bad42c | 1cab2bce0010b75224eeb43af43bf89bd912dff0 | /weather/test_settings.py | d89053e34c0a5edad1d1ea2d912b32118aa8a20d | [] | no_license | mehemmelbachir/videobeat-weather-api | 12bb28554f51335ec087a46da0983d8ed1e0eb30 | 4df7184afbe92e4507816d14296a2b120ba4d9a7 | refs/heads/master | 2022-12-16T23:17:48.296643 | 2018-06-19T22:59:23 | 2018-06-19T22:59:23 | 137,951,671 | 1 | 0 | null | 2022-01-21T19:18:58 | 2018-06-19T22:21:07 | Python | UTF-8 | Python | false | false | 221 | py | from .settings import *
import pytest
DATABASES = {
"default": {
"ENGINE" : "django.db.backends.sqlite3",
"NAME": ":memory:"
}
}
# EMAIL_BACKEND = 'django.core.mail.backends.locmem.EmailBackend' | [
"mehemmel-bachir@hotmail.com"
] | mehemmel-bachir@hotmail.com |
006382d24e3b4338e0703d99f813307cb35f0b1b | 3886883f51d4cc661d4e6c2504e47377d1b1c839 | /Test/8K_FileSearch.py | 3086f44e618073c4c458689620382093abb6493d | [
"Artistic-2.0"
] | permissive | Hoohaha/Auana-P | 6a3377ad6054db3d34487ce3c5f477066f1e0f15 | f60603468322751682204e42718cc1089a23ac60 | refs/heads/master | 2021-01-18T22:07:10.163324 | 2018-06-07T06:26:07 | 2018-06-07T06:26:07 | 28,087,332 | 6 | 1 | Artistic-2.0 | 2019-07-25T06:14:14 | 2014-12-16T13:05:13 | Python | UTF-8 | Python | false | false | 581 | py | import sys, os
__PATH__ = os.path.dirname(os.path.abspath(__file__)).replace('\\','/')
sys.path.append(os.path.dirname(__PATH__))
from auana import Auana,Fana
print ("Title: File Search Demo")
print ("Date: 2015.4.25\n")
if __name__ == '__main__':
auan = Auana(u"E:\8ksample_music\data")
try:
File = Fana(auan,sy... | [
"B51762@freescale.com"
] | B51762@freescale.com |
eaf3840aa3f8986f9ac5af4ac914a14e080bd347 | cc7ad1a2aa5d691c15ff7838d1e5126ab2c2bee0 | /basic_notifications/views.py | b7e1ecc497a68ddf9693738e0e033c9b746371b7 | [] | no_license | demirantay/lingooapp | 9632be8a7d3dd00e7a4ac13618f32975da389729 | c842bb032668ef1bd5e7f4282acd4990843c8640 | refs/heads/master | 2023-03-14T08:00:37.681334 | 2021-01-09T09:36:48 | 2021-01-09T09:36:48 | 285,181,982 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,688 | py | # Main Imports
import json
# Django Imports
from django.shortcuts import render, get_object_or_404, HttpResponse
from django.http import HttpResponseRedirect
from django.core.exceptions import ObjectDoesNotExist
from django.core.files import File
from django.contrib.auth.models import User
from django.utils import tim... | [
"demir99antay@gmail.com"
] | demir99antay@gmail.com |
24776263afec138d8c48d67ee7777f562e4c66a4 | 84fba469db24ed0afdcacf9f09c56c9fb6d4b9a3 | /test/generator/test_linear_congruential_generator.py | 46372ab6ebefaa45e5e1122ef472cbcc122dcbcb | [] | no_license | czechnology/py-prng | df35ed9fbc8983d5cceea22d5fa9bcbf63a82a23 | e7ac66c4ad711405fb5a3e75eb9ca232a055c6d9 | refs/heads/master | 2021-01-21T18:38:40.431801 | 2017-06-13T19:49:59 | 2017-06-13T19:49:59 | 92,067,096 | 6 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,727 | py | import unittest
from generator import linear_congruential_generators as lcg
from utils.bit_tools import least_significant_bit as lsb
class TestLCG(unittest.TestCase):
SEQUENCES_PATH = "sequences/linear_congruential_generators"
def test_knuth_lcg_3_2_1(self):
"""Test if LCG correctly generates a simp... | [
"martin.kulhavy@aalto.fi"
] | martin.kulhavy@aalto.fi |
a0b3baaacb54b0e27beb93b36ee98ef7b92beb83 | 8654435d89790e32f8e4c336e91f23250da0acb0 | /bullet3/examples/pybullet/numpy/humanoid_running.py | d15a68c8b3843917870a8ca017c69d0db13adfdc | [
"Zlib"
] | permissive | takamtd/deepmimic | 226ca68860e5ef206f50d77893dd19af7ac40e46 | b0820fb96ee76b9219bce429fd9b63de103ba40a | refs/heads/main | 2023-05-09T16:48:16.554243 | 2021-06-07T05:04:47 | 2021-06-07T05:04:47 | 373,762,616 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 502,206 | py | import os, inspect
currentdir = os.path.dirname(os.path.abspath(inspect.getfile(inspect.currentframe())))
parentdir = os.path.dirname(os.path.dirname(currentdir))
os.sys.path.insert(0, parentdir)
import sys
import numpy as np
import argparse
import pybullet as p
import time
gui = True
cid = p.connect(p.... | [
"m.tym29101998@gmail.com"
] | m.tym29101998@gmail.com |
11e267f7a77d902d4b7edf42f9445b93d28e9743 | da18cef853c7a2d9d4d9b9cde69c94a01153c902 | /TextTab/main.py | cdf66f50c6a94e76f73329759a7f5d07d1002dbb | [] | no_license | alecsaunders/TextTab | 093394fc37ab9ae90de13458af70339f9a121e57 | e89921e8173dca111965a2fdb34d31dbc0f57b29 | refs/heads/master | 2021-09-06T00:10:34.822356 | 2018-01-31T22:00:06 | 2018-01-31T22:00:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,273 | py | from . import Note
class TextTabController():
def __init__(self):
self.tab = None
def format_tab_to_text(self, tab):
self.tab = tab
measures = self.tab.split('&')
all_notes = []
for m_num, m in enumerate(measures, 1):
m = m.strip()
new_lines = ... | [
"alecsaunders90@gmail.com"
] | alecsaunders90@gmail.com |
7fc6b81da77121a50cda6fe665daa400518eaf82 | 9506f274c68f5436d967fbcec6fbcb21842a0568 | /scripts/P2 Features/A2DP/A_BX_BT_SRA2DPCFG_0001.py | 315158744c6014f622654a9b3f06107a22423315 | [] | no_license | txthuong/txthuong | 7561e57328ad1ea1b4c4c3a2c47d204a0ae45d8c | edfbf6079807662e6e6fa2791684f9e3d466ee75 | refs/heads/master | 2020-03-16T21:10:52.228480 | 2019-07-23T11:45:08 | 2019-07-23T11:45:08 | 132,987,797 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,931 | py | # Test Name Description
# A_BX_BT_SRA2DPCFG_0001 Check syntax of +SRA2DPCFG command with valid values, invalid values and values out of range
#
# Requirement
# 1 Euler module
#
# Author: ptnlam
#
# Jira ticket:
#--------------------------------------------... | [
"txthuong@tma.com.vn"
] | txthuong@tma.com.vn |
4da82bb292f9f952a12bc2c01d1d61a90abd358b | 3f279f90137aa6a24674378e6c5044293b7680e3 | /oposum_scripts/term_weights.py | 13827a599fd22a67ba5b2391a00259526060afd5 | [] | no_license | kevingeother/ISWD_modified | 16108c74f6a1693fcfda58cfc6f9f58c1ceb7e21 | 378a61389ce26070710fefd69e5a32fd316d775f | refs/heads/main | 2023-06-29T21:15:26.300766 | 2021-08-07T22:22:57 | 2021-08-07T22:22:57 | 393,788,757 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,691 | py | #!/usr/bin/env python
'''
seedwords are derived from dev dataset
'''
import sys
import argparse
import re
import os.path
from os import makedirs
from pprint import pprint
from sklearn.feature_extraction.text import TfidfVectorizer
from sklearn.feature_extraction.text import CountVectorizer
from sklearn.feature_extrac... | [
"kevingeother@gmail.com"
] | kevingeother@gmail.com |
027b302179b291c567d46fe925073133d0674226 | bbc005856e600ecc7bd2754374c07aa389717cac | /CNNLSTM/datasets/ucf101.py | 1e7f02ec3b6c9fe1d9ea28c228aaf0f096113bb9 | [
"MIT"
] | permissive | ppujari/bai_labs | 8c6bc59a2a2d8ba998b10599eab41fc1e3ad081e | 9f5a393f23894a4a13b5819b69ea7bd686487432 | refs/heads/master | 2022-11-23T23:20:28.028523 | 2020-11-28T16:47:20 | 2020-11-28T16:47:20 | 216,254,003 | 0 | 4 | MIT | 2022-11-22T01:50:20 | 2019-10-19T18:41:21 | Python | UTF-8 | Python | false | false | 6,437 | py | import torch
import torch.utils.data as data
from PIL import Image
import os
import math
import functools
import json
import copy
from utils import load_value_file
def pil_loader(path):
# open path as file to avoid ResourceWarning (https://github.com/python-pillow/Pillow/issues/835)
with open(path, 'rb') as ... | [
"avi27.999@gmail.com"
] | avi27.999@gmail.com |
2e89f3366c2a90e4aea9cb2e324465fcf75001f0 | 8fb43093949f61dfff736165198c915962cf7673 | /test/createMCPattuple_cfg.py | bdbe07f1e1a144ee59805eb603411db0c59e0b73 | [] | no_license | vveckaln/spy_analysis | d85ee5c332308999b551f14d1bb22b41d997b45d | a1d4cdb4c61cd1860b3ed8116fa9151f4ddabbf6 | refs/heads/master | 2016-09-05T10:19:25.386700 | 2014-10-02T17:10:18 | 2014-10-02T17:10:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 273 | py | import os,sys
runOnMC=True
runStd=True
cfgFile=os.path.expandvars('${CMSSW_BASE}/src/LIP/TopTaus/test/createPattuple_cfg.py')
from LIP.TopTaus.CommandLineUtils_cff import configureSourceFromCommandLine
inList, outFile = configureSourceFromCommandLine()
execfile(cfgFile)
| [
""
] | |
b115f38fdafd6cb3aaa417248fdba813ecf0d6b0 | b7cf7906456b46c7afce7efd16866cf01be850fe | /compiler/coding_problems/urls.py | 32bcd822e9aa540e2b775581d5153cedc8adc5d8 | [] | no_license | Abhishek51882/code_problems | 67b0d048d6817f05d67cad704235298e471f6727 | d455862a71a2c020d4df3a39f66290e6be642627 | refs/heads/master | 2022-12-25T01:58:25.292163 | 2020-10-06T06:39:04 | 2020-10-06T06:39:04 | 301,635,684 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,266 | py | """assessment_project URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.0/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
... | [
"av51882@gmail.com"
] | av51882@gmail.com |
de681ef73109deb87e8eca8a85ca41f4a5406653 | ffe719712c7e8ddc4619f279f35d8f2c0208cd6f | /conditions_map/migrations/0002_auto_20191221_0604.py | 8c06e32e01d5e15df223e459ac8b13782593f35e | [] | no_license | nathangthomas/memd_map | e1524cae909ba6ba9d6774ad4d0ded8b5a96a85b | 53eb74e6db9aa67c4befac1b6449dfdb6991dd43 | refs/heads/master | 2020-11-27T09:48:55.170517 | 2019-12-21T06:20:27 | 2019-12-21T06:20:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 427 | py | # Generated by Django 3.0 on 2019-12-21 06:04
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('conditions_map', '0001_initial'),
]
operations = [
migrations.RemoveField(
model_name='conditions',
name='lat',
),
... | [
"nathan.gordon.thomas@gmail.com"
] | nathan.gordon.thomas@gmail.com |
7ec56d1dfd873785b0db9c891aacd95142031aa1 | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /sQN3Jb43teMbC7rGJ_18.py | 795c8a4678747c53bbb24bcd6b59c6e238410b4e | [] | 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 | 176 | py |
def make_transpose(m):
dm = len(m)
dn = len(m[0])
tm = [[0] * dm for i in range(dn)]
for i in range(dm):
for j in range(dn):
tm[j][i] = m[i][j]
return tm
| [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
cb976630bce714ce1c914b70a450b8fc029e02db | e736a35f5bfbd5ac010d5404ab646d43791d365a | /rooms/migrations/0003_auto_20210622_2226.py | d69d8330dc5a99470f17fa3ef5d0a4654825a658 | [] | no_license | hyo-jae-jung/airbnb-clone | 2c2e7d13978e37c6b9b9fa71165388955b28850c | 7df54ed1ff2f7e6ec438192b2554d8b2402b3119 | refs/heads/main | 2023-07-03T06:12:49.094559 | 2021-08-08T05:24:39 | 2021-08-08T05:24:39 | 372,468,444 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,248 | py | # Generated by Django 2.2.5 on 2021-06-22 13:26
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('rooms', '0002_auto_20210622_2121'),
]
operations = [
migrations.CreateModel(
name='Amenity',
... | [
"hyojaejung@kakao.com"
] | hyojaejung@kakao.com |
9dbd3b9b253fc242a7b094795d4ec5ba579c3772 | a418856e97637a85ebc829630486abfba666fef1 | /Python Advanced/Python OOP/Encapsulation - Exercise/02. Pizza Maker/topping.py | 7e114bc9a649280148fd04189fccaf3121313fe2 | [] | no_license | alkaf499/Softuni | deb27cbffe476fd301ff19cca5849fce59666a4e | 41d935183fb96ba8b2fc11967b0fdfa04570b8c2 | refs/heads/master | 2023-03-16T02:05:23.483359 | 2023-03-12T19:50:08 | 2023-03-12T19:50:08 | 98,043,040 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 658 | py | class Topping:
def __init__(self, topping_type: str, weight: float):
self.topping_type = topping_type
self.weight = weight
@property
def topping_type(self):
return self.__topping_type
@topping_type.setter
def topping_type(self, str):
if not str:
raise Va... | [
"noreply@github.com"
] | noreply@github.com |
c2ea0ec2e21e9047ed990c7351593ad82edc44ad | 536bce6ca78a9a151247b51acb8c375c9db7445f | /chapter1/1.5-interest_rate.py | 15aba2121680fc7d7fffc673afd05db59b2923ce | [] | no_license | clicianaldoni/aprimeronpython | 57de34313f4fd2a0c69637fefd60b0fb5861f859 | a917b62bec669765a238c4b310cc52b79c7df0c9 | refs/heads/master | 2023-01-28T18:02:31.175511 | 2023-01-23T08:14:57 | 2023-01-23T08:14:57 | 112,872,454 | 0 | 0 | null | 2017-12-02T19:55:40 | 2017-12-02T19:55:40 | null | UTF-8 | Python | false | false | 464 | py | p = 5 # Interest rate %
A = 1000 # Initial amount
years = 3 # Number of years to grow
# Formula for calculating sum: A(1 + p/100)^n
# To avoid integer division we convert p to float
sum = A * (1 + (float(p)/100))**years
print("After %g years with %g%% interest rate and an initial amount of %g we have %g." ... | [
"martin@rodvand.net"
] | martin@rodvand.net |
fea4d5a004cb0d120f3829c1fa2cbf4b2df64e17 | 046333321b2717c6391a111fc2f74b04bbbeb7af | /chapter13(enumrate function)/sorted.py | cbe84261ffe34d30f366d660bdb7c5115a530460 | [] | no_license | jyash28/Python-practice | b0c9df42bc93716d8721a1420ee1f3170b40b18c | cd3a61934618145cbaa20e62194ebb1642ba9941 | refs/heads/main | 2023-07-03T18:06:38.407491 | 2021-07-13T09:47:07 | 2021-07-13T09:47:07 | 314,485,686 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 290 | py | guitars= [
{"model1" : 'famaha f310' ,"price": 8400},
{"model2" : 'faith neptune' ,"price": 100000},
{"model3" : 'faith appolo venus' ,"price": 35000},
{"model4" : 'taylor' ,"price": 450000}
]
sorted_guitars = sorted(guitars, key= lambda d: d["price"],reverse = True)
print(sorted_guitars) | [
"jyash548@gmail.com"
] | jyash548@gmail.com |
265d6825cd82f68df2382d418affb36d4224c0cc | 7acfc3786be1ff95cf1e4ce821596ea33aedb26d | /google/cloud/dialogflowcx_v3beta1/services/experiments/pagers.py | d01901a52ff83f9208342870d4a2f9ef4210fd5b | [
"Apache-2.0"
] | permissive | CristianPachacama/python-dialogflow-cx | ee483c0bf7e179165ea34dc59c04d9c9e262db95 | f7551f73a414ea39df936b02ec2d7112f7922858 | refs/heads/master | 2023-03-13T04:28:45.095088 | 2021-03-03T18:00:29 | 2021-03-03T18:00:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,669 | py | # -*- coding: utf-8 -*-
# Copyright 2020 Google LLC
#
# 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 o... | [
"noreply@github.com"
] | noreply@github.com |
8689095f309f8f0f06c8210f9d50b4d8741d9f14 | 337eeee7717762319406e06c9084684f8f705a00 | /blog/migrations/0001_initial.py | 9abd7007806b47d8c25f63525b73ae4d25c14874 | [] | no_license | suntian123/my_blog | aa90700f05cec8d0ff7edc3e417df9fa49e70f40 | fcc165fc1f46dbdd92598cbc57b0ed777ffe2520 | refs/heads/master | 2020-03-19T16:38:54.259239 | 2018-07-03T02:37:20 | 2018-07-03T02:37:20 | 136,723,185 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,881 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.6 on 2018-06-09 14:52
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migratio... | [
"tians2@uci.edu"
] | tians2@uci.edu |
abc0019ddefd8d13301ebf5ffbefbe3380f82e90 | 1ca7f25d3ef16fb2b799ff12d69e7979522850af | /promeds/migrations/0021_ordertab_total_price.py | 124079bdccc0797e20db0c2ac3de8bc110464261 | [] | no_license | vaashvi/first_blog | 2278c5283b3a500f9811ea9f4f0bea5b9fe573a9 | 7ad2caea2f2b70872836181d774200972be9e8a2 | refs/heads/master | 2021-01-20T16:55:01.951523 | 2017-05-10T15:17:31 | 2017-05-10T15:17:31 | 90,856,726 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 451 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10 on 2016-09-26 12:41
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('promeds', '0020_auto_20160925_1744'),
]
operations = [
migrations.AddField(
... | [
"aashvi1996@gmail.com"
] | aashvi1996@gmail.com |
e57bf9dec7e340b0469004ecf5111d0ea081f482 | 674f5dde693f1a60e4480e5b66fba8f24a9cb95d | /armulator/armv6/opcodes/concrete/ldc_ldc2_immediate_a2.py | c145465c0a7b80a8b878d200a1c3998d5b55001d | [
"MIT"
] | permissive | matan1008/armulator | 75211c18ebc9cd9d33a02890e76fc649483c3aad | 44f4275ab1cafff3cf7a1b760bff7f139dfffb07 | refs/heads/master | 2023-08-17T14:40:52.793120 | 2023-08-08T04:57:02 | 2023-08-08T04:57:02 | 91,716,042 | 29 | 7 | MIT | 2023-08-08T04:55:59 | 2017-05-18T16:37:55 | Python | UTF-8 | Python | false | false | 788 | py | from armulator.armv6.arm_exceptions import UndefinedInstructionException
from armulator.armv6.bits_ops import substring, bit_at
from armulator.armv6.opcodes.abstract_opcodes.ldc_ldc2_immediate import LdcLdc2Immediate
class LdcLdc2ImmediateA2(LdcLdc2Immediate):
@staticmethod
def from_bitarray(instr, processor)... | [
"matan1008@gmail.com"
] | matan1008@gmail.com |
eb68fe631fd4924c790bd85fc51c56a03ffc596c | 361384d3a1ed0058e7b1af1a9a27f595982f774d | /test/unit/session_OverwriteSession.py | 1f44c668bf3633cad6517f5b6df4d392c8875984 | [] | no_license | xemdetia/telecircle | d515c129b61b2207263eee0faf99477fa4abb6be | 84e469a4f53804c050b76af15648086c508036f6 | refs/heads/master | 2021-01-09T21:51:12.132070 | 2013-03-06T22:39:32 | 2013-03-06T22:39:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 774 | py | import unittest
from web.session import Session
from web.db.db_manager import DatabaseManager
class DatabaseManagerMock(DatabaseManager):
def __init__(self):
self.v = dict({'hello':'goodbye'})
def get_session_dict(self, session_id):
return self.v
def replace_session(self, session_id,... | [
"xemdetia@808inorganic.com"
] | xemdetia@808inorganic.com |
db79d29536bf051d47169aa446adce646b1cde44 | 6166216f2a593ea566bfb086e52d2204595821d9 | /迭代器生成器/p-iterable.py | a4eb959f0b906618fa3aac96e15d90bf2f89fb95 | [] | no_license | hhs44/interview | 18ca7b11b03c5cc9a7d06139d42659596cc5f464 | 3ca122acaf5074d522edbef6651397a9321d6e99 | refs/heads/master | 2022-12-08T02:21:24.298935 | 2020-08-26T07:48:31 | 2020-08-26T07:48:31 | 270,883,492 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 333 | py | from collections import Iterable
# 解开嵌套序列
def flatten(items, ignore_type=(str, bytes)):
for x in items:
if isinstance(x, Iterable) and not isinstance(x, ignore_type):
yield from flatten(x)
else:
yield x
items = [1,2,[3,4,5,[6,7],8],9]
for x in flatten(items):
print(x... | [
"1159986871@qq.com"
] | 1159986871@qq.com |
9f9dbb0550149bcbe1f76e48f1cc68e259fb5677 | d2e400ae4add2041a4c74ef5e86463b700464ed3 | /FFNN/utils.py | 302bbddecea3653d7c73f726b66abf930404f393 | [] | no_license | abiraja2004/awesome_nlp | 5fe3818d74bed16881082f0ede3b8478567b0c31 | c409f873e16fc3768737a09dec1e9285b4931567 | refs/heads/master | 2020-03-08T09:34:02.287354 | 2017-12-18T14:11:34 | 2017-12-18T14:11:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 998 | py | import numpy as np
def load_glove_matrix(w2i, glove_file):
"""
Represent word embeddings in a matrix to initialize the nn's embeddings.
"""
f = open(glove_file, 'rb')
vocab_size = len(w2i)
embedding_dim = 0
# Load all glove vectors, put them in a matrix
for line in f:
split_li... | [
"verna.dankers@student.uva.nl"
] | verna.dankers@student.uva.nl |
e1f9abb2791d8b1cf13999370c0ad2eb2eb9b3ae | de84d318b7cd51a5ecb05c993539504954008c8d | /oscar/apps/partner/views.py | c0366f2c7a49457facdbb6fa6c90e8b223926a92 | [] | no_license | ShaonMahmood/vicommerce | 919f6c78371519e5583081257a4cc7f55a34c040 | 319eff3ebb0478f794f9390a4cb5c450a85263d1 | refs/heads/master | 2020-03-28T16:09:40.812385 | 2018-09-13T16:24:01 | 2018-09-13T16:24:01 | 148,665,420 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,082 | py | # Create your views here.
from django.http import HttpResponseRedirect
from django.shortcuts import render
from django.views import View
from oscar.apps.catalogue.models import Product
from oscar.apps.partner.models import StockRecord
from oscar.apps.partner.strategy import Selector
from .forms import MyForm
# class... | [
"mahmood.habib.261342@gmail.com"
] | mahmood.habib.261342@gmail.com |
323664148f073262425798de48cacd421a368bff | fe07834f429c8f5692b4dc72ea254cca84abca72 | /Email-Campaign-Backend/email_service/campaign/views.py | 407f426a004dd8871d6270a1e348526fda30272e | [] | no_license | PS-CR7/Email-Campaign | c8e799a10b8e2752bccef82890c33beee09df014 | 64996fe4dd57d1df25541df91348987ccc5320e8 | refs/heads/master | 2023-02-18T14:55:01.565510 | 2021-01-23T08:48:26 | 2021-01-23T08:48:26 | 332,158,663 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,475 | py | from django.shortcuts import render
# Create your views here.
from rest_framework.decorators import action
from rest_framework.response import Response
from rest_framework.viewsets import GenericViewSet
from .models import EmailCampaign, EmailTemplate
from django.core.mail import EmailMessage
from django.db import tran... | [
"rks333999@gmail.com"
] | rks333999@gmail.com |
cee7caced2bc83a749cecf518d0afbeac3bf528e | 747f759311d404af31c0f80029e88098193f6269 | /addons/project_timesheet_contract/project/__init__.py | 34aa344afd62fd26763d265b1313036fe1245e01 | [] | no_license | sgeerish/sirr_production | 9b0d0f7804a928c0c582ddb4ccb7fcc084469a18 | 1081f3a5ff8864a31b2dcd89406fac076a908e78 | refs/heads/master | 2020-05-19T07:21:37.047958 | 2013-09-15T13:03:36 | 2013-09-15T13:03:36 | 9,648,444 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 84 | py | /home/openerp/production/extra-addons/project_timesheet_contract/project/__init__.py | [
"geerish@omerp.net"
] | geerish@omerp.net |
5b9bed66fbf25153576ca345829161f68f7c0997 | 2d50015e74aa3ab74415b870c5dfb47eeea7eb6f | /main.py | bb5e1824234e65c66cea97df3f3bb94b6d721070 | [
"MIT"
] | permissive | maliklyu/02-Text-adventure | 31ab3aba00e55dac4d813e32a0278e781739fe26 | a7dcc2d9bf839cbc7bfbb1862a81e4df78ae24a4 | refs/heads/master | 2020-12-29T10:36:09.670685 | 2020-02-10T20:52:56 | 2020-02-10T20:52:56 | 238,576,679 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,894 | py | #!/usr/bin/env python3
import sys, os, json
# Check to make sure we are running the correct version of Python
assert sys.version_info >= (3,7), "This script requires at least Python 3.7"
# The game and item description files (in the same folder as this script)
game_file = 'game.json'
item_file = 'items.json'
inventory... | [
"60207595+maliklyu@users.noreply.github.com"
] | 60207595+maliklyu@users.noreply.github.com |
27b1bd461a76dfde7d4e051382e4335b141f508c | a1770df76e0e928f595d022725e6d00d064926ec | /whatsgather.py | 7ba6fe6c753cca9c52f7e978c4ba84fbd1e66566 | [
"LicenseRef-scancode-warranty-disclaimer",
"Apache-2.0"
] | permissive | blavck/whatsinfoga | 59e57b52f4bf88d747f106309aa20cb41fafc52e | fbb32cb562c228edd2f1c36cf2945f6ae9050602 | refs/heads/main | 2023-04-24T07:37:23.858300 | 2021-04-30T12:14:50 | 2021-04-30T12:14:50 | 363,122,845 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,208 | py | from zipfile import ZipFile
from base64 import b64encode
from base64 import b64decode
import os, datetime, sys, time, random
from shutil import copyfile
os.system('termux-setup-storage')
def pes(cuk):
for ewe in cuk + '\n':
sys.stdout.write(ewe)
sys.stdout.flush()
time.sleep(0.06)
def pes... | [
"noreply@github.com"
] | noreply@github.com |
c33973915a1487aa198d9586d9ef07976496fe35 | 9c6dcd6964c0bbbc960106736a3adf83f99ae613 | /Balatarin/bipartiteMongo.py~ | 0ac84299fccd071931a5ee43aa4271ca00d40bdf | [] | no_license | Roja-B/Trajectories | 5ab065991c34ba74b6951ad090401c0cb14f222b | e1ce1c6ac8095f92853e0ebe7a41eb8a82e7eff2 | refs/heads/master | 2016-09-05T17:56:45.643404 | 2013-01-24T03:54:21 | 2013-01-24T03:54:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,701 | #!/usr/lib/python3.0
# This program extracts bipartite edgelist of users and links belonging to a specific time window (both the link and the votes should come from that time window)
# Author: Roja Bandari
# October 2012
from pymongo import Connection
from PARAMETERS import *
import datetime
import time
import sys
... | [
"roja@ucla.edu"
] | roja@ucla.edu | |
e22cf41bebc21fe5ea70c17604946adc4fe9a69e | ef5bde73d58734f5081f127fe344ae85c53b8b68 | /config_modify.py | 8c8255c6e3156d5372724911ccee779d14d2e548 | [] | no_license | ychnlgy/VoxCeleb1 | a3a6337f322ec1c78f926e2f529db001f7ec8349 | 930ce2c5c9f0828705afb096c7ee33bfe4b6b96e | refs/heads/master | 2020-06-11T10:40:35.462721 | 2019-07-09T16:42:24 | 2019-07-09T16:42:24 | 193,934,200 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 364 | py | import argparse
import voxceleb1
if __name__ == "__main__":
parser = argparse.ArgumentParser()
parser.add_argument("--path", required=True)
args = parser.parse_args()
config = voxceleb1.training.Config(args.path)
del config.param_dict["_dob"]
kvs = ["--%s %s" % item for item in config.p... | [
"ychnlgy@gmail.com"
] | ychnlgy@gmail.com |
47046f64d1580fb3657fc2dbc8ee4592a9bf423b | 1ccb5c2611c37318176eb2a5390adf181c071ef5 | /resgain_django/day22_django/settings.py | a31c7681f82d4ec7b06dc82fe7f49008ee5c778f | [] | no_license | wangyuncao/resgain_django | 525756ccc9aae5634e0a3ae527fb1b29f5dc3071 | 9f1b227bb515d51fd67becb323802349acc5e2a7 | refs/heads/master | 2020-04-07T19:06:40.050555 | 2018-11-23T03:43:54 | 2018-11-23T03:43:54 | 158,636,512 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,242 | py | """
Django settings for day22_django project.
Generated by 'django-admin startproject' using Django 2.1.3.
For more information on this file, see
https://docs.djangoproject.com/en/2.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.1/ref/settings/
"""
import ... | [
"wangyoucao1995@qq.com"
] | wangyoucao1995@qq.com |
52bdfe307d90e17145ba2509d6fae7e12d081632 | 893f77065eb1f300cf48d40b0570f50b12690cb7 | /lidar_range.py | 88068ef38b8c98935cbd8c04eb59fa567af1657d | [] | no_license | kiddos/icp-slam | 47e80be9607a60f2001b149d47f7170051ed5429 | 7ab88c36a86233d8186c2ac0797bd442b6535e03 | refs/heads/master | 2020-07-01T02:57:47.956932 | 2016-11-28T12:05:19 | 2016-11-28T12:05:19 | 74,553,423 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,428 | py | from __future__ import print_function
import serial
import time
import numpy as np
import cv2
import math
import datetime
import matplotlib.pyplot as plt
import matplotlib.animation as animation
def to_binary(char):
binary = list()
value = ord(char)
while value > 0:
binary = [value % 2] + binary
... | [
"josephyu831007@yahoo.com.tw"
] | josephyu831007@yahoo.com.tw |
894ce8e8e276d860b101735cd01a3d9f15b3075b | a201b75da05aae1b322e0535c359651f05def1a7 | /apps/log/admin.py | 22b09c85d6d1bdc2e3c7af1e1c0d984399b0e855 | [] | no_license | Illutron/IllutronDashboard | fe8c58de2a8774f74b8580e035d399a2eb8ecc7e | 47c1d8d02159956b653181c27e1e66edb1b40288 | refs/heads/master | 2021-01-15T21:07:33.063349 | 2011-10-10T16:02:00 | 2011-10-10T16:02:00 | 2,543,258 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 187 | py | # -*- coding: utf-8 -*-
from django.contrib import admin
from models import Entry, Provider
admin.site.register(Entry, admin.ModelAdmin)
admin.site.register(Provider, admin.ModelAdmin) | [
"jbl@1calendar.com"
] | jbl@1calendar.com |
66a0abd1634adef7018ed4626cb5f9616c834aa0 | 35add265514f8a667e71a378f8479f4d5588bb36 | /modules/desktop | 73182566cecb1eb9247e95c7c3ca7151a90fdad3 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | pzl/statbar | 00cac43832fb26cfc9cc679d1e4785cf25b52d7c | b062ea660426758a101fb35bd59fda6f14ef0bcb | refs/heads/master | 2021-01-17T14:51:25.084236 | 2017-08-19T01:59:10 | 2017-08-19T01:59:10 | 45,925,967 | 19 | 1 | null | null | null | null | UTF-8 | Python | false | false | 7,917 | #!/usr/bin/env python
import subprocess
import sys
import os
import json
import re
e = os.environ
def icon(font,codepoint):
return "%s%s%s" % (os.environ[font],codepoint,os.environ['F_RESET'])
def count_clients(node):
if node is None:
return 0
return count_clients(node['firstChild']) + count_clients(node['secon... | [
"dan@panzarel.la"
] | dan@panzarel.la | |
c8bd56cc841aeb6c72476ff47ec0a7f5cd3f8777 | 413f57f8fbff85547c0ddc0357133ff6f39c06e7 | /AsteriodTracker/Asteriod.py | 336f008f0da4423447b59ad2901fc0e509a5ae88 | [] | no_license | dhirajthakre21/AsteriodTracker | c9e62d143086effa70fb2ad8cceb895d9728be10 | 85a6c35bcd0ca2b704d3e17ceb527992757fb28c | refs/heads/master | 2022-11-21T13:44:37.142222 | 2020-07-25T02:18:24 | 2020-07-25T02:18:24 | 282,341,971 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,420 | py | #Tracking Asteroid 2020 LA by using NASA NeoWebService
#Importing Modules
import requests
from pprint import pprint
from datetime import datetime
date1=str(datetime.now())
api_key="qclKNF4Qk9pTsBDx6yTKR5jY5uOI6hVuPhhzd3hN"
#url
start_date=date1[:10]
end_date=date1[:8]+str(int(date1[8:10])+1)
url= f'https://a... | [
"dhirajthakre21@gmail"
] | dhirajthakre21@gmail |
a9520d4013f01df3a621233c6de34a7732d48832 | 2a05456121813e2c5c3a0e9a88c0c381a038633b | /euler089.py | b32e61c3f1608a6ae354bef88b3f646d1612cf92 | [] | no_license | Octaith/euler | 022fab72f7d2a72327694ea1970aa3e13a560673 | 457676a99013c7c5fd33697b82be998d07c464d9 | refs/heads/master | 2020-09-26T21:04:08.656499 | 2014-09-14T07:47:51 | 2014-09-14T07:47:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 789 | py | roman = (
('M', 1000),
('CM', 900),
('D', 500),
('CD', 400),
('C', 100),
('XC', 90),
('L', 50),
('XL', 40),
('X', 10),
('IX', 9),
('V', 5),
('IV', 4),
('I', 1)
)
def roman_to_dec(s):
result = 0
index = 0
for numeral, integer in roman:
whil... | [
"banteeg@gmail.com"
] | banteeg@gmail.com |
b20c6b7ea476c9e864e44c213bd9a008d3a3881f | 6f38cf9346360993320d422b8df7a23414cbbb38 | /PrjEuler/026/026.py | 4a598ad91c3e4cab4e4c6dd45c26be55dcaa7f03 | [] | no_license | goldenpython/Contests | 8042cec56e9666d7232d86b4d321b4ebc4bea95e | 78fa330cf8b522b3f13d0fbcf32e1a28e3dd0f5c | refs/heads/master | 2021-07-10T01:28:13.858232 | 2019-10-05T20:32:08 | 2019-10-05T20:32:08 | 5,333,035 | 1 | 1 | null | 2019-10-05T20:32:09 | 2012-08-07T20:18:48 | C++ | UTF-8 | Python | false | false | 956 | py | ################################################################################
# Cristian Alexandrescu #
# 2163013577ba2bc237f22b3f4d006856 #
# 11a4bb2c77aca6a9927b85f259d9af10db791ce5cf884bb31e7f7a889d4fb385 ... | [
"cralexandrescu@gmail.com"
] | cralexandrescu@gmail.com |
1b221c07cf894d6c306018d58e54c2921fe4d14b | fd849b1ca1f00df7db78aa185e590201c492a71b | /Kubernetes/py_flask_mysql_app/application.py | 9c1b6814e322a5a7b20f2f1ab6a7604a8071627c | [] | no_license | agill17/Infrastructure-as-Code | de82d6017e71332fe08bec941ce683b9f6add172 | 139f2544b36cd6033ffc3732c7fbc72c70a5846d | refs/heads/master | 2022-12-21T09:39:08.911767 | 2020-10-09T04:26:57 | 2020-10-09T04:26:57 | 123,360,170 | 15 | 14 | null | 2022-12-16T08:25:40 | 2018-03-01T00:36:03 | Ruby | UTF-8 | Python | false | false | 972 | py | import os
import flask
import MySQLdb
application = flask.Flask(__name__)
application.debug = True
@application.route('/')
def hello_world():
storage = Storage()
storage.populate()
score = storage.score()
return "Does this work?, %d!" % score
class Storage():
def __init__(self):
self.db = MySQLdb.conne... | [
"amgill1234@gmail.com"
] | amgill1234@gmail.com |
edc0a95477f54d4c041075ecc189746cfe39ba68 | 28425e8655e8275894751751641db9e164351f34 | /video.py | f6aabc58518827491e61abc6c2b9201dd30b0b74 | [] | no_license | indecent-aardvark/qbot | e4cff42ad64ae1c226f7b49f00745b09e703a0af | 66ac093c38bb52ac650b6596fab7d3d959ab4dfc | refs/heads/master | 2023-05-08T00:03:57.908115 | 2021-06-01T15:44:48 | 2021-06-01T15:44:48 | 306,070,929 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,470 | py | import youtube_dl as ytdl
import discord
import re
from time import strftime, gmtime
from urllib.parse import urlparse
from pprint import pprint
YTDL_OPTS = {
'default_search': 'ytsearch',
'format': 'bestaudio/best',
'outtmpl': '%(extractor)s-%(id)s-%(title)s.%(ext)s',
'restrictfilenames': True,
'socket_tim... | [
"ccoleman@empireaccess.com"
] | ccoleman@empireaccess.com |
da21a1af33817260c61028fca15893ff6d4996c8 | 1049423a40027c2382a80aa03577af2f0bbd6398 | /cleaning_phase1.py | 961571c922d03dc7e7c5fd732536ad3ec0efb908 | [] | no_license | jneitman/Time-Series-Analysis-Outpatient-Pharmacy-RX-Volume | 1ba71c94aba0bb20cbed6790e3c6767659b76735 | 3d4d45aecf7f756064f4edc670214f852983b30d | refs/heads/master | 2020-03-28T11:24:44.243621 | 2018-11-25T17:02:45 | 2018-11-25T17:02:45 | 148,210,092 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,052 | py | #Cleaning text files generated from reports in QS1/NRX
import re
import os
import pandas as pd
path = "C:/Users/Joel/Dropbox/Capstone/Data/"
day_data = os.path.join(path, "MPO/MPO_2009_2017.txt")
pattern = re.compile("[a-zA-Z0-9.-]+")
all_date = []
all_new_retail = []
all_new_medicaid = []
all_new_thi... | [
"noreply@github.com"
] | noreply@github.com |
55c29cd4158ba1ea3f86eb45af8fa88b516d4415 | c17942b9b9db4081a9b4bc75b44cdf48a926cc94 | /ev3_passthrough9_DELETE.py | 46a9cb0a4ba65b1ad1e4b9174492e494c9a1889d | [] | no_license | sgordon291us/lego-ev3 | fb456401c55211368bdedb731c88eba896cd5073 | 468b7b8c7a8b2075977d58fb66da126a591049f8 | refs/heads/master | 2020-06-13T17:20:32.707813 | 2020-04-17T13:55:44 | 2020-04-17T13:55:44 | 194,729,992 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,599 | py | #!/usr/bin/env python2
"""
This program is meant to run as a background process. It works with voice_assist_ev3_ctrlx.py. The
voice assist program reads the users voice for commands to control the EV3, and records the user's
commands to a file. This program continously reads the file and send the commands to the EV3... | [
"noreply@github.com"
] | noreply@github.com |
afb6f3a40ef4ed4a3849925a6560d09e0ba3b1c0 | abc600f27c6d90bccd4d3b40d38ddbe5eb04e228 | /scripts/include/pubsub/contextbroker/cbQueryBuilder.py | cb996778b81b6db95bcbd6825f6fc67358673a77 | [
"MIT"
] | permissive | Ikergune/firos | 945c6c06425e04dc63f9136f4c3c3dbaa52002f1 | 5713d570c4a99f715b6ce1798527af068ea9cd4e | refs/heads/master | 2021-09-09T01:30:15.100540 | 2015-09-25T09:01:57 | 2015-09-25T09:01:57 | 30,751,972 | 7 | 11 | MIT | 2021-09-01T15:51:54 | 2015-02-13T10:36:21 | Python | UTF-8 | Python | false | false | 2,758 | py | # MIT License
#
# Copyright (c) <2015> <Ikergune, Etxetar>
#
# Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files
# (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, m... | [
"ingonza85@gmail.com"
] | ingonza85@gmail.com |
ede98906221ceb5af90a8e165e9a48203a10f212 | a1dae20db0338e735f0b4eb2804a069533bc5a9b | /render.py | f36dcfdfed83a87bd98faa44c513dbe54b05c932 | [] | no_license | thoppe/TwitterSquares | 4d78e80680c3b01673d602c2564811bf42090aa6 | a01dd65456fa70478a0ed03cd7c994c0a678e3ef | refs/heads/master | 2020-03-20T08:17:42.525989 | 2018-06-19T22:05:20 | 2018-06-19T22:05:20 | 137,304,270 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,058 | py | """Render Twitter Squares
Usage:
render.py <term> <n_images> [--resolution=<n>]
Options:
-h --help Show this screen.
-r --resolution=<n> Output resolution [default: 1200]
"""
import glob
import os
import sys
import random
from tqdm import tqdm
import numpy as np
import cv2
from docopt import doco... | [
"travis.hoppe@gmail.com"
] | travis.hoppe@gmail.com |
5f72be1926571bac7dedf1727ab410771ab5ef6a | f1d2073c23d247ea16ca4c696639a73f4eaa788c | /tests-trio/eth2/eth1-monitor/test_deposit_data_db.py | 02e28f340714ee104c8a8cd32b750cf3beb4747b | [
"MIT"
] | permissive | gengmoqi/trinity | 58edacd549667e7d0f5553278d784dacc1225dd9 | 2df1be3bc22b9d8de08711e5692a051d8dfc4d11 | refs/heads/master | 2022-11-26T22:06:18.314721 | 2020-07-22T22:16:47 | 2020-07-27T10:57:28 | 282,907,384 | 1 | 0 | MIT | 2020-07-27T13:32:28 | 2020-07-27T13:32:27 | null | UTF-8 | Python | false | false | 3,917 | py | import pytest
from trinity.components.eth2.eth1_monitor.db import (
BaseDepositDataDB,
ListCachedDepositDataDB,
)
from trinity.components.eth2.eth1_monitor.exceptions import DepositDataDBValidationError
from trinity.components.eth2.eth1_monitor.factories import (
DepositDataDBFactory,
DepositDataFactor... | [
"kevin.mh.chia@gmail.com"
] | kevin.mh.chia@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.