blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 213
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 246
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
942fb16d6341d7adf7dec90c86062803d46ebb56 | db053c220094368ecb784fbe62375378c97457c2 | /92.reverse-linked-list-ii.py | 01812dfd90c75c46be6106a88de76827a53e89a1 | [] | no_license | thegamingcoder/leetcode | 8c16e7ac9bda3e34ba15955671a91ad072e87d94 | 131facec0a0c70d319982e78e772ed1cb94bc461 | refs/heads/master | 2020-03-22T14:51:45.246495 | 2018-07-09T00:00:06 | 2018-07-09T00:00:06 | 140,211,147 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 784 | py | #
# [92] Reverse Linked List II
#
# https://leetcode.com/problems/reverse-linked-list-ii/description/
#
# algorithms
# Medium (31.88%)
# Total Accepted: 145.3K
# Total Submissions: 455.9K
# Testcase Example: '[1,2,3,4,5]\n2\n4'
#
# Reverse a linked list from position m to n. Do it in one-pass.
#
# Note: 1 ≤ m ≤ n ... | [
"sharanbale@yahoo-inc.com"
] | sharanbale@yahoo-inc.com |
bfade84c7b493bcab41c4221d0fc05519244a152 | b6c6e953712ff95b483c475e688578bdc293be73 | /MachineLearning/ML_practice/Linear.py | 75d6d9ad659a7309cee9dea63b830397b5345bee | [] | no_license | KyeoRaeHan/Keras | 626bdd91e07a80f59594de79d3de99825e0eb8bf | af897fd40be120da3e1a644b8e8090daf84282ee | refs/heads/master | 2020-12-18T18:26:50.753930 | 2020-04-16T13:24:07 | 2020-04-16T13:24:07 | 235,484,072 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 950 | py | from sklearn.datasets import load_boston
from sklearn.model_selection import train_test_split
#1. 데이터
boston = load_boston()
x = boston.data
y = boston.target
x_train, x_test, y_train, y_test = train_test_split(x,y, train_size=0.8, shuffle=True)
#2. 모델구성
from sklearn.linear_model import LinearRegression, Ridge, L... | [
"noreply@github.com"
] | KyeoRaeHan.noreply@github.com |
a2924202df9c988563097e576728e5b857311863 | 876a6375f05527db1b40dee12cb8ef4c6f735d76 | /crypto_trade/wsgi.py | 3fae8d48af61ea0ff4ff89f142a96074db0b8603 | [] | no_license | DominicOrga/Crypto-Scanner | 3c8bfa42188f647da7de1bdf54d12a4bb8815cbe | ca64e35c1b11af1dfcc64264b1201b18390943e7 | refs/heads/master | 2021-08-24T13:46:36.989511 | 2017-12-10T02:41:19 | 2017-12-10T02:41:19 | 110,096,252 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 402 | py | """
WSGI config for crypto_trade project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO... | [
"dominicorga@gmail.com"
] | dominicorga@gmail.com |
5e7986d733821f07a27f6413a44d69a408225431 | bce3c7830ef39bc057eb8c8dc2568445273c4dfd | /inventory/urls.py | 561ff1204ea3e75ddca3dd4e0524d2b238410ff9 | [] | no_license | nazoana/django | c973aa4f9e160dcc0a16cd826f52e0243238cde0 | 7e6c0acb48b2fe8fd1ea5a9a2d15ca11a7326bd5 | refs/heads/master | 2020-04-06T10:35:05.571814 | 2013-04-17T05:31:45 | 2013-04-17T05:31:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 839 | py | from django.conf.urls import patterns, include, url
# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()
urlpatterns = patterns('inventory.views',
url(r'^$', 'index', name='index'),
url(r'^display_meta/$', 'display_meta'),
url(r'^search/$', 'search', na... | [
"mkhan@mercycorps.org"
] | mkhan@mercycorps.org |
5cb2d367405b1d78b0470ad600c89b7d3f16d4f3 | d9f149f79453b1832eabb10ef0784d02fb1509d5 | /battleship.py | f25aa3f83318b4bfeef846d0c160d957e5f6f1bc | [] | no_license | Mix-Anik/simple-battleship | ed2e3d79c51ae467923da76b4ef4e7fb5c971e5f | 01cf4b5a53b9736a8f39afd7cb957691865dce47 | refs/heads/master | 2022-11-22T05:42:59.056634 | 2020-06-23T06:45:34 | 2020-06-23T06:45:34 | 274,307,920 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 21,143 | py | from tkinter import *
from easygui import *
import random
import time as ti
from datetime import datetime, timedelta
import sys
#Main game function
#Основная функция
def battleship():
root_1 = Tk()
root_2 = Tk()
root_3 = Tk()
root_1.title("Battleship(Your Canvas)")
root_2.title("Battleship(Opponent... | [
"xxmixanikxx@gmail.com"
] | xxmixanikxx@gmail.com |
9b10c0a4c7d4f1af8edd8df82150e7b68f045c5b | 2daaf77c340f41eb45628cd700273af70976dc6b | /Desafios.Sebas/Desafio8.py | ff11d6a7adf4db5259fcd673da7446c917396de4 | [] | no_license | felipekamada/Desafios.Python | d7556f58e9de7050d02a95f5f9ec61727458ec10 | 1ed672446f36158a9cbf2b0beb1af6994e1862fe | refs/heads/master | 2020-03-13T21:38:38.904179 | 2018-04-27T14:11:26 | 2018-04-27T14:11:26 | 131,300,640 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 175 | py | def posicaomaior (lista):
posicao = None
for i in range(len(lista)):
if (posicao is None):
posicao = i
elif lista[i] > lista[posicao]:
posicao = i
return posicao
| [
"pinguim@localhost.localdomain"
] | pinguim@localhost.localdomain |
f5ab01384bf8dd64bf55f4d40cb0aa6c2a6d85e7 | 25d7359728cc0aeafa2d2948674e2ddc1cedb30e | /ПП/pygame/Занятие 2/Таня/4.py | 6e6041f2c19dc624010064365ba83d22e095bbbb | [] | no_license | HandliClub/exam | 7c6395ecfbdc17b1645df5dc1a25c4be7358c0ab | 3af5ed18c7e3d503c1cbc219dc5a9bedf40e1f47 | refs/heads/main | 2023-01-20T00:41:02.164654 | 2020-11-23T15:00:31 | 2020-11-23T15:00:31 | 312,018,487 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 895 | py | import math
import pygame
def f_graph(x1):
y1 = x1*2+b
return (y1)
a = -10
b = 10
grModeX = 800
grModeY = 600
pygame.init()
screen = pygame.display.set_mode ( [grModeX, grModeY] , pygame.FULLSCREEN)
sx = grModeX/(b - a)
h = 1/sx
xmid = grModeX // 2
ymid = grModeY // 2
x = a
max... | [
"noreply@github.com"
] | HandliClub.noreply@github.com |
9db9077c9ec0baf2471ff526f739a35f2080b53a | 954308736f14ae605a57d205722968bead2e84d3 | /notebooks/202102/abc116_c.py | 372a55754ee9ac251d6196e266cfc4648e03367d | [] | no_license | ko-taro/atcoder | b8f79a8aa6835363b2be23ba54fee5581e6b45f6 | 4babaf23b2cb2e5c6cb8ebe279ec23bd750a8d4b | refs/heads/master | 2023-03-17T04:47:27.048776 | 2021-03-09T07:36:01 | 2021-03-09T07:36:01 | 299,477,072 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 810 | py | # %%
N = int(input())
h = list(map(int, input().split()))
count = 0
def searchl(h):
for k in range(len(h)):
if h[k] != 0:
return k
return None
while True:
k0 = searchl(h)
if k0 is None:
break
for k in range(k0, len(h)):
if h[k] != 0:
h[k] -= 1
... | [
"gjirvko@gmail.com"
] | gjirvko@gmail.com |
bb5b2593a5ba2b2708e6d2abc6730843785df221 | 07bc29f350ae83174988c193cdf57e7a69a696f6 | /函数 定义及调用.py | 5c2d37f181514994f07bcf00a973a3f8b4e2623c | [] | no_license | LuckyDoge67/Freshman | 2d767c1fad56d167cb2fc29978a191370aa4c72f | 522c95c95d43751cd6bf4093b1696fd2f34f86d4 | refs/heads/master | 2023-03-24T17:34:56.079641 | 2021-03-24T13:52:37 | 2021-03-24T13:52:37 | 350,716,444 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 282 | py | """
file :函数 定义及调用.py
date :2021.03.21
author :Lucky
desc :
"""
# 定义函数
def printme(str):
"""打印任何传入的字符串"""
print(str)
return
# 调用函数
printme("我要调用用户自定义函数")
printme("再次调用同一函数")
| [
"xiaoleqi@mail2.gdut.edu.cn"
] | xiaoleqi@mail2.gdut.edu.cn |
103461d9c8c8d86360e5486f227af2f04a8ac31b | b6d7bfd22a4c2f2abfaad8d1fbedbdb2bf84f63b | /Compound.py | 185ed92e69487dbaf9ea2ba9784caa23757a3e20 | [] | no_license | KingJMS1/Chemistry-Application-Rework | efec5a69a4eefb2773d358ddd8c20c906738d0fa | 89c4d60e5c50435053f49b750e0271d9f188126b | refs/heads/main | 2023-03-26T16:03:04.660962 | 2021-03-25T03:26:25 | 2021-03-25T03:26:25 | 350,921,161 | 0 | 0 | null | 2021-03-25T01:01:02 | 2021-03-24T02:26:50 | Python | UTF-8 | Python | false | false | 2,337 | py | from re import findall, split
_nums = ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9']
class Compound(dict):
def __init__(self, formula, /, charge=None):
dict.__init__(self)
if charge is not None:
self.charge = charge
else:
self.charge = 0
if type(formu... | [
"1kingjms@gmail.com"
] | 1kingjms@gmail.com |
ff55be07371ca609d7952abaff8d081428a1ee5b | c56d2198676ad30698b2440f1f42ed9e718189be | /flask/ml/cleaned/search_engine.py | b049bcf0b73d053ce5c3c87f4ebb4f5176aab5c1 | [] | no_license | v15hv4/DSSE | 8930e3036c7a386f2fff69fc9991cb648940b799 | 173bc142e07d92358250c6ed04c4f26bc6f54896 | refs/heads/master | 2022-12-30T12:30:18.405347 | 2020-10-18T18:07:15 | 2020-10-18T18:23:19 | 304,982,324 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,693 | py | #!/usr/bin/env python
# coding: utf-8
# In[1]:
import os
from nltk.corpus import wordnet as wn
from nltk.corpus import stopwords
# In[2]:
def best_file(keyword):
top = os.getcwd()
dir_names = []
for subdir, dirs, files in os.walk(r"./ml/cleaned/"):
for diry in dirs:
dir_names.appe... | [
"vishva2912@gmail.com"
] | vishva2912@gmail.com |
c7bcdd9ccab6d6a8dc700cc14c076283c89fd687 | 610e824dea04cdbeac2a18d905787b3322317bab | /main.py | 14d37b6c74da6453c487b4a4abbd49d14a72ea2c | [] | no_license | iam-smjamilsagar/Auto-React-in-Facebook | 6181d363de5921fe0a254aaf359109051a9bb0c7 | a0481ce23e154234e30b0a95f7fcdca97abb169b | refs/heads/main | 2023-03-17T08:56:43.897309 | 2021-03-09T19:53:21 | 2021-03-09T19:53:21 | 346,094,511 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 783 | py | # PyAutoGUI lets Python control the mouse and keyboard,
# and other GUI automation tasks. For Windows, macOS,
# and Linux, on Python 3 and 2.
import pyautogui
# to take some break we need time
import time
# to make of our mouse point safe need to use pyautogui.FAILSAFE = False
pyautogui.FAILSAFE = False
# we use ran... | [
"s.m.jamil.sagar1111@gmail.com"
] | s.m.jamil.sagar1111@gmail.com |
9cef2cb858bb265be3acaa61853f2d3e1822f724 | 095df4be4cd98ec4fff9af6406ffecbdc1e26c18 | /Python/6_Django/time_display_assignment/apps/timedisplay/views.py | c305632ade4e76a8141155c16cdb381d64cd5a8f | [] | no_license | michaelAmused/CodingDojo | 3af333f8d6c5e5a7af048c2edd635e9702d03feb | 00c70b2f09731ea4cb468258df879473c18d7a40 | refs/heads/master | 2021-01-20T12:42:33.650174 | 2017-07-25T15:55:04 | 2017-07-25T15:55:04 | 90,399,767 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 348 | py | from django.shortcuts import render, HttpResponse
import datetime
# Create your views here.
def index(request):
context = {
"date":datetime.datetime.now().strftime("%B %d, %Y"),
"tme":datetime.datetime.now().strftime("%I:%M%p")
}
print context
return render(request, 'timedis... | [
"mobrien601@gmail.com"
] | mobrien601@gmail.com |
1a46cbfc9df402f268c96e648ec29920d56b4f7d | 3cbffdd5b040ac0eb7b85d5d8c125cc0f62724ac | /ArbolB.py | 416d5c32f519ae6d378530a6d5f3e535dc08c573 | [] | no_license | Elchuzo/ProyectoJunio2017_201404130 | ecc4f85424c05ba3a32c7545c20a0f0f2290d37d | 766815722e0c112a8d7dbf560a08a8c9659857c5 | refs/heads/master | 2020-08-30T10:29:20.887515 | 2017-07-18T06:21:48 | 2017-07-18T06:21:48 | 94,389,866 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 23,274 | py | import gc
from graphviz import Digraph
#clase para pruebas
class Dato(object):
def __init__(self,numero,x):
self.x=x
self.numero=numero
def __str__(self):
a = ' x: ' + str(self.x)
b = ' n: ' + str(self.numero)
cadena = a + "\\n" + b
return cadena
... | [
"oagmoa@gmail.com"
] | oagmoa@gmail.com |
f7be58452a813250d4677c722ef62885ad4f1574 | 2ce1ce91911b573e5ec31f867be55bcb938c12ca | /test.py | 0c227ee9b68814682b6bb6c5b27a94761025ceb5 | [] | no_license | sivannaa55/ML_Pipeline_Ins_Fraud | 7e29128ecbda54760311316ed5ed44bc458bb063 | e33ba981a6d1ec3c60290bdae4e9c153f3a77250 | refs/heads/main | 2023-04-30T05:43:09.420830 | 2021-06-02T03:59:48 | 2021-06-02T03:59:48 | 372,609,176 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,067 | py | from wsgiref import simple_server
from flask import Flask, request
from flask import Response
import os
from flask_cors import CORS, cross_origin
from prediction_Validation_Insertion import pred_validation
from trainingModel import trainModel
from training_Validation_Insertion import train_validation
import fla... | [
"shivaabhisheka@MacBook-Pro.local"
] | shivaabhisheka@MacBook-Pro.local |
d4e0da1819ff44bdfec950133ed2006b9d0271cf | dae5e94787c5efd3c6ae4e029ad48a7cc584ba4b | /FaceRecognitionPoets/FaceRecognitionEmbedding/FaceRecognition/FaceRecognition.py | 1768c14291b47fc4b8a5df9facd8124bb4084d0f | [] | no_license | dzmitryyermalovich/courseWork | babd0e92c34a74cbad805b38df007c0fffeb58c0 | 4650e48711a0027afa8170b377ee9c5fa4fbe46f | refs/heads/master | 2023-05-11T08:53:14.007949 | 2021-05-28T18:44:19 | 2021-05-28T18:44:19 | 362,907,355 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,205 | py | import numpy as np
from keras import models
def get_embedding(model, face_pixels):
face_pixels = face_pixels.astype('float32')
mean, std = face_pixels.mean(), face_pixels.std()
face_pixels = (face_pixels - mean) / std
samples = np.expand_dims(face_pixels, axis=0)
yhat = model.predict(samples)
retu... | [
"ermolovichdima22@gmail.com"
] | ermolovichdima22@gmail.com |
67abc3132d03b33312a73634d58904e58b4b4a78 | a5ee5dc866051c95e0209263c7b66117fb07cd1d | /administrator/urls.py | eb021c49364a58cb8fdadc64f7edbacab7f99764 | [] | no_license | pierceoneill/vuejsdjango | 2d10cba126992b2c09e33b067162dc0b10e6e86a | 2aab90c8f819919287f00ab7abcb3743cfe4af71 | refs/heads/master | 2023-07-12T20:57:45.715066 | 2021-08-13T21:18:36 | 2021-08-13T21:18:36 | 395,795,691 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 456 | py | from django.urls import path, include
from .views import AmbassadorAPIView, ProductGenericAPIView, LinkAPIView, OrderAPIView
urlpatterns = [
path('', include('common.urls')),
path('ambassadors', AmbassadorAPIView.as_view()),
path('products', ProductGenericAPIView.as_view()),
path('products/<str:pk>', ... | [
"pierceoneillky@gmail.com"
] | pierceoneillky@gmail.com |
a1a3b1bf42eacc7a8ea19519baec4dec166a12c8 | 650917768b3dbe0ed6083738af4d417a0ab094c9 | /sec5.2-comparsion-of-quantum-memory-parameters/cavity_vs_fidelity.py | 03e5bb1aa01958770798f1044f6ee739e6e75e52 | [] | no_license | ashwanikrrsinha/Chicago-metropolitan-quantum-network | 76056e36f89e3b1a30e338c67a530f5c44fc42d2 | 1198cd2dd46fee104c20a9e3c93375981ae4c9f5 | refs/heads/master | 2022-12-30T07:13:34.997814 | 2020-10-11T00:10:07 | 2020-10-11T00:10:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 302 | py | def get_fidelity_by_efficiency(C: int):
"""
C: the cavity cooperativity
50 <= C <= 500
"""
gama = 14
gama_star = 32
delta_omega = 0
gama_prime = (C+1)*gama
tau = gama_prime + 2*gama_star
F_e = 0.5 * (1 + gama_prime**2 / (tau**2 + delta_omega**2))
return F_e
| [
"xiaoliang@feynman.mcs.anl.gov"
] | xiaoliang@feynman.mcs.anl.gov |
b4a6d9690191186bed46ae21b7b28f1d1f3ce812 | f8b74a198fd79a20b85015257ad1c6bf2bf626d3 | /lib/lib_filtro.py | 326fa51c55dff2d98d9678af8071dd00e7d617f0 | [] | no_license | lzac/Cazzaniga | 702f9b108a617a62d79d3f9ad3a237b10d81b1ed | a0f696a9e474ca6e76e7ab27ef2325e51d500298 | refs/heads/master | 2016-09-06T15:59:21.552615 | 2014-09-19T19:49:18 | 2014-09-19T19:49:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,918 | py | # -*- coding: utf-8 -*-
import wx
from wx import xrc
from sqlalchemy import *
from sqlalchemy.orm import *
from sqlalchemy.orm import sessionmaker
from moduli import *
import lib_sql as lib_sql
import lib_function as lib
import lib_menu as menu
import lib_global as g
import lib_sql as libsql
import my... | [
"luca.tecnosphera@gmail.com"
] | luca.tecnosphera@gmail.com |
8890f620ef394c5a2aea87c024a250bf32fe4885 | a67635ddcdb8ee6c9dbc19f335696c871bdaa774 | /spatial/prcltbl_deletefields.py | baa2440ba6bca5c0734c595f9c5e6c5e5cb5b24a | [] | no_license | psrc/parcels | f99ef31eef1c399d9bd6456fbc35fb38e4376f0d | b9088e5aa69e854013e0f1ee94a48c114383b773 | refs/heads/master | 2023-01-12T08:14:35.252624 | 2020-11-19T18:23:13 | 2020-11-19T18:23:13 | 74,080,148 | 0 | 0 | null | 2020-11-19T18:23:14 | 2016-11-18T00:38:20 | Python | UTF-8 | Python | false | false | 1,185 | py | # This script will delete selected shapefile fields (containing words: 'OBJECT*', 'Shape_*', and '*area*'). Run before spatial joins script.
# Import system modules
import arcpy, os, time
start = time.time()
# Environment inputs
counties = ['Kitsap', 'Pierce', 'Snohomish', 'King']
shp0 = ['kitptfnl15testCopy.shp',... | [
"cyyllam@gmail.com"
] | cyyllam@gmail.com |
674b0a7991768af96255c795dd3126b23dd92600 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_172/ch87_2020_04_29_11_23_49_782896.py | b473d466d2bfc573a99a1bf4c984260fa1ce298e | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 190 | py | with open('churras.txt', 'r') as arquivo:
conteudo = arquivo.readlines()
y = 0
for item in conteudo:
x = item.split(',')
y = y + x[1]*x[2]
print (y)
| [
"you@example.com"
] | you@example.com |
131fa69d7c88902d3272e686e559688f3e1406f6 | 5c7f2ff956b1fd1477d56486e239b6e661a08efd | /reinforcement_learning/0x00-q_learning/3-q_learning.py | 38289878256043dd1d61c99f45447b4db0addd4e | [] | no_license | diego0096/holbertonschool-machine_learning | 60c5f40e185df04d02d9887d966542e85a981896 | 64b8984846c2b2b88bbf11125b55b482c7b74eea | refs/heads/master | 2023-04-02T01:27:59.263397 | 2021-04-02T21:33:51 | 2021-04-02T21:33:51 | 279,229,931 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,253 | py | #!/usr/bin/env python3
"""3-q_learning.py"""
import numpy as np
epsilon_greedy = __import__('2-epsilon_greedy').epsilon_greedy
def train(env, Q, episodes=5000, max_steps=100, alpha=0.1,
gamma=0.99, epsilon=1, min_epsilon=0.1, epsilon_decay=0.05):
"""function that performs Q-learning"""
total_rewar... | [
"dfqz93@hotmail.com"
] | dfqz93@hotmail.com |
25a115ac2ed7f5a2cae20b819f3d0d0d7c73959f | a50e906945260351f43d57e014081bcdef5b65a4 | /collections/ansible_collections/fortinet/fortios/plugins/modules/fortios_system_3g_modem_custom.py | bfa0a35321a02ba247ba88189f58c418996fe034 | [] | no_license | alhamdubello/evpn-ipsec-dci-ansible | 210cb31f4710bb55dc6d2443a590f3eb65545cf5 | 2dcc7c915167cd3b25ef3651f2119d54a18efdff | refs/heads/main | 2023-06-08T10:42:35.939341 | 2021-06-28T09:52:45 | 2021-06-28T09:52:45 | 380,860,067 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,173 | py | #!/usr/bin/python
from __future__ import (absolute_import, division, print_function)
# Copyright 2019-2020 Fortinet, Inc.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of th... | [
"a.u.bello@bham.ac.uk"
] | a.u.bello@bham.ac.uk |
460a1b1f34cea2825871b51874207f025531b2bb | fc81552769485d851d8a1bc4dd82b71507b2400e | /hw2_q4.py | bb3931996e2d49a0ac5241fa4ace58045973b043 | [] | no_license | axgao1/introprogramming_fall2017 | 51e63447e93f5500ae4d08d22e5dc9289758fb2a | 2118549909a756efc3245d8fdbe6c0dbec6a65a0 | refs/heads/master | 2021-04-26T21:54:09.375959 | 2018-03-07T03:52:34 | 2018-03-07T03:52:34 | 124,173,959 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,814 | py | #!/usr/bin/env python
long_number = '''1334689116556462941882035808943573171674164401363769460864490234588978262666944913475783756741523897245184207879400801772948519107022172112703850995250828017643114989532341638256433902974862681950869909550724964438670365005594138770568327987006988181115098238786559343074732216472... | [
"noreply@github.com"
] | axgao1.noreply@github.com |
cc5d04ed49a9f671eae60b2370a24d9759652ee3 | f0881c9733727602d138b145ae21fe5a04cfdc4e | /discite_app/services/achievement_services.py | 0f6149eeb3241ef439737fe6642cc0606e423798 | [] | no_license | pbartkowicz/discite | 18b52accea227d241af9386f7ac3c4434aa951f5 | 2d094d5a56286c43ce664d146f45ee4c2b0da23d | refs/heads/main | 2023-02-23T06:34:35.611446 | 2021-01-26T18:48:47 | 2021-01-26T18:48:47 | 318,822,643 | 0 | 0 | null | 2021-01-24T13:54:15 | 2020-12-05T15:31:31 | Vue | UTF-8 | Python | false | false | 1,762 | py | from discite_app.models import Achievement, UserAchievement
def update_user_solve_achievements(test_result, user):
current_user_achievements = user.userachievement_set.all()
# SOLVE ONE TEST ACHIEVEMENT
solve_test_achievement = Achievement.objects.get(key='SOLVE_TEST')
if not any(solve_test_achievemen... | [
"filip.raszka3@gmail.com"
] | filip.raszka3@gmail.com |
64b6cae8c29f3f130d5d1c34a4736b4e0a0a91e6 | ee370b3bc056bd8c3cab1fa1e05642267d03f8c7 | /scrape_idaho_covid_data.py | a021e2497b9fa4df3f6d39981d951af7b1767f36 | [] | no_license | timspencer/idaho_covid_dashboard_scraper | 713e5f62f071d21b282f8930b175291b1f23de92 | 0feed0e242293e955c72970b6ed550c183580d0f | refs/heads/main | 2023-01-08T18:58:01.199287 | 2020-11-15T17:57:18 | 2020-11-15T17:57:18 | 302,999,637 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,213 | py | #!/usr/bin/env python3
#
# This script downloads the data from the specified sheet and subsheet on the
# Idaho COVID-19 Data dashboard. It is kinda fragile, in that all this session
# and view ID stuff is totally undocumented by the tableau people in any way
# that I was able to find, so if they change their system, i... | [
"tspencer@hungry.com"
] | tspencer@hungry.com |
7281d23d02e3de9896dd3690adde741d708c1fe7 | 1b60b5c4d2a873b643dbd04fb77504d596237ba2 | /runtests.py | d8b2a28529b2ecfaaa4faf76e40c0f1029086034 | [
"BSD-3-Clause"
] | permissive | amolm-cuelogic/django-charsleft-widget | 32d832c90c9d269efd5877e83983c78a2ff5a0db | bbe0196c597c7b25f51d204acb10d05ab348d703 | refs/heads/master | 2021-01-22T19:09:15.856856 | 2016-10-14T08:15:51 | 2016-10-14T08:15:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,855 | py | #!/usr/bin/env python
import sys
from os import path
import django
from django.conf import settings, global_settings
from django.core.management import execute_from_command_line
if not settings.configured:
BASE_DIR = path.dirname(path.realpath(__file__))
settings.configure(
DEBUG = False,
T... | [
"basil.shubin@gmail.com"
] | basil.shubin@gmail.com |
a4e291834a035910169cf5c8fa887a2feef65ec6 | 7b13e6acb2a1f26936462ed795ee4508b4088042 | /算法题目/算法题目/二分查找/LeetCode69求开方.py | cdee55e6ed01d6470cb969ad904f4d20d55e2c37 | [] | no_license | guojia60180/algorithm | ed2b0fd63108f30cd596390e64ae659666d1c2c6 | ea81ff2722c7c350be5e1f0cd6d4290d366f2988 | refs/heads/master | 2020-04-19T08:25:55.110548 | 2019-05-13T13:29:39 | 2019-05-13T13:29:39 | 168,076,375 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 410 | py | #Author guo
class Solution:
def mySqrt(self, x):
# if x==1:
# return 1
# if not x:
# return 0
l = 0
r = x
while l <= r:
mid = (l + r) // 2
if mid * mid <= x < (mid + 1) * (mid + 1):
return mid
elif m... | [
"44565715+guojia60180@users.noreply.github.com"
] | 44565715+guojia60180@users.noreply.github.com |
af369b0e1c00e429888f5c4b9d51fe871a48ccab | 0c2c2fdc7d3f658453ea51547c5a8ecd18e2589b | /playcards.py | b630733f7f68b4f8030c4d4140869f3bb260a22a | [] | no_license | law-lee/runestone | 5b4ba14a9fd41c792e90bb1b06390fbaead92162 | e98d3eba0d5975eb30bd99f154c4066624a83040 | refs/heads/master | 2020-03-19T13:24:17.593248 | 2018-06-09T05:05:43 | 2018-06-09T05:05:43 | 136,577,828 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,659 | py | import random
class Card(object):
"""represents a standard playing card."""
suit_names = ["Clubs", "Diamonds", "Hearts", "Spades"]
rank_names = [None, "Ace", "2", "3", "4", "5", "6", "7",
"8", "9", "10", "Jack", "Queen", "King"]
def __init__(self, suit=0, rank=2):
self.suit... | [
"liliangwei@liliangwei-PC.HDDOMAIN.CN"
] | liliangwei@liliangwei-PC.HDDOMAIN.CN |
acbc151d7b384b7d09b14aef7407e39844b2cb9e | a55d515cf59f4ee898892fbf358c327ff53bce96 | /djangodialogs/auth/urls.py | b76c9847559dc83f03b63bbafd5035c1a6a268a5 | [] | no_license | furious-luke/django-dialogs | 859a3c30970f0a40813f828a0e0909cf5de29d24 | 142b5075910c940091a1f58a69d5192f74c10f9c | refs/heads/master | 2016-09-05T17:23:22.244282 | 2012-03-14T04:24:59 | 2012-03-14T04:24:59 | 1,964,463 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 183 | py | from django.conf.urls.defaults import *
from views import *
urlpatterns = patterns('',
url(r'^accounts/login/ajax/$', login),
url(r'^accounts/register/ajax/$', register),
)
| [
"furious.luke@gmail.com"
] | furious.luke@gmail.com |
74e9e43553f58b3728817e45fa27970e20971f7b | bdb4bbbffddb590dc5724578c43029aeb8dabf7d | /hexConverter/__init__.py | b84af2dae466ca83c41622b7d1c7c8ad2356246f | [] | no_license | cmgrass/hexConverter | ff2efac210bbc451b32706dd2596f53f1dd2da7b | 947df87d5535140c3b04ce23aedb2f467050246f | refs/heads/master | 2021-06-29T02:03:42.109052 | 2017-09-17T23:59:17 | 2017-09-17T23:59:17 | 103,870,880 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 44 | py | def HexConvert(val):
print '0x%x' % val
| [
"C.grass@live.com"
] | C.grass@live.com |
772d2710213f53600f2da917a56490ae3251092a | 7e5a7171eb3e97d9d18b928092f94142e5cb51e3 | /system/t06_publish/snapshot.py | 5fac3d2521971707f55d158fddf4f02dda5f9e6d | [
"MIT"
] | permissive | sbadia/aptly | e67ef68c15bad196b6723644113179a8495277fb | 5d16cf06cf23b5a70b0d375fcc1a43eaa7053071 | refs/heads/master | 2020-12-28T19:24:16.093595 | 2015-02-04T22:49:29 | 2015-02-04T22:49:29 | 28,808,010 | 1 | 0 | null | 2015-01-05T10:27:37 | 2015-01-05T10:27:37 | null | UTF-8 | Python | false | false | 40,731 | py | import os
import hashlib
import inspect
from lib import BaseTest
def strip_processor(output):
return "\n".join([l for l in output.split("\n") if not l.startswith(' ') and not l.startswith('Date:')])
def sorted_processor(output):
return "\n".join(sorted(output.split("\n")))
class PublishSnapshot1Test(BaseT... | [
"Smirnov.Andrey@gmail.com"
] | Smirnov.Andrey@gmail.com |
316e260667a39e7b8480c89172aa2e5bf61a1ff9 | dd4622390bb7122db37a889e647f28004a265ccd | /1806101049马原涛/deepLearn/tensorflow2.0_note/page_11.py | a3b37a421fd7bd09d84a7304aa170f7f621111d9 | [] | no_license | gschen/where2go-python-test | c8adaa095aa8a095401f98c7b3f8f17c72d0532d | eb9e6011b8d33fa45a6b1ef853affd01a296db21 | refs/heads/master | 2022-12-13T19:45:09.874691 | 2020-10-15T13:12:52 | 2020-10-15T13:12:52 | 211,591,156 | 4 | 1 | null | 2022-12-05T07:46:12 | 2019-09-29T02:35:00 | Python | UTF-8 | Python | false | false | 1,744 | py | #张量限辐:根据值裁剪/限制值的范围
import tensorflow as tf
'''
clip_by_value
relu
clip_by_norm
gradient clipping
'''
'''
maximum(x,a)与minimum(x,a)
1.maximum(x,a)
a作为最大值,x比a小就返回a,x比a大就返回x本身
2.minimum(x,a)
a作为最小值,x比a大就返回a,x比a小就返回x本身
'''
x=tf.range(10)
tf.maximum(x,2)#返回[2,2,2,3,4,5,6,7,8,9]
t... | [
"1176632450@qq.com"
] | 1176632450@qq.com |
f187c4f9e4a70c77058ac6755fffd676318f4f3a | 8c1214774275b25437f8dfe45006aa69d9a253fc | /virtualhome/dataset_utils/add_preconds.py | 6101f37083a05ad29db958511682a5a4b1d3939e | [
"MIT"
] | permissive | xavierpuigf/virtualhome | e47155099f8ea29fcd9641a1284fc0fa45485052 | 1d9ac2307dbb09d87e75046722336449e141039e | refs/heads/master | 2023-08-04T03:04:57.667756 | 2023-07-24T07:03:42 | 2023-07-24T07:03:42 | 177,614,859 | 297 | 56 | MIT | 2023-07-25T21:53:22 | 2019-03-25T15:34:12 | Python | UTF-8 | Python | false | false | 15,780 | py | # Processes all the scripts
# Same as the backup version but without grabbed precond
import glob
import numpy as np
import os
import json
from augmentation_utils import *
dump_preconds = False
rooms = [x.lower() for x in [
'Kitchen',
'Bathroom',
'Living_Room',
'Dining_Room',
'Be... | [
"xavierpuigf@gmail.com"
] | xavierpuigf@gmail.com |
59a1e330b6010ea7f9244a5e054033f6f1259b00 | da2f667ac9002d9bfb6023ae8eb4c64481eafac0 | /elementarz/test_wait_for_google.py | ea94d4c878b6b16a30ac0aa8d083c0c30c1c1732 | [] | no_license | Adamuss1990/selenium_wsb | 95323ee85b32dedb60b0efecfa8888d6e8db8ea8 | 1572b6fe17a67085444fca78a45ea5cf7ac7dd35 | refs/heads/master | 2020-04-29T11:38:11.970078 | 2019-03-17T13:30:45 | 2019-03-17T13:30:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,694 | py | # -*- coding: utf-8 -*-
import unittest
from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
class GoogleCheck(unittest.TestCase):
def setUp(self):
self.driver =... | [
"karol.kolanski@wsb.wroclaw.pl"
] | karol.kolanski@wsb.wroclaw.pl |
a3853c891ca016a85276919f21c11e6ea1299f0e | 490f5e517942f529ddc8c1e0d421a208ff1ca29b | /02_code/listinstance2.py | c198804a387d5ef0f574c63f87e3a85e035230d8 | [] | no_license | emnglang/py-lab | facdc464a8c84b90f06b5cb639315981c0b4ba8d | bc3566da81e0b2cfa9ce563ffc198d35294971a1 | refs/heads/master | 2020-03-25T15:10:42.856062 | 2018-08-24T14:54:33 | 2018-08-24T14:54:33 | 143,869,343 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 772 | py | #!python
# File listinstance.py (2.X + 3.X)
class ListInstance:
"""
Mix-in class that provides a formatted print() or str() of instances via
inheritance of __str__ coded here; displays instance attrs only; self is
instance of lowest class; __X names avoid clashing with client's attrs
"""
de... | [
"linja1688@gmail.com"
] | linja1688@gmail.com |
4c6f6c224597b05b7e7ca61fee80f16589525350 | 248cf77b8a24b3b35e658d81b4c9cb8c450c2ca4 | /cryptex/streamers/bitbay/__init__.py | cdb4ef4c0f13d264b7f1b3ca9447113e54d3cb0b | [] | no_license | Reynaldo61/cryptex | fee1e124f544a049a74775fab4540cfd89d405df | deb34a449bdeb4e26009ef21035383ecf463cb3e | refs/heads/master | 2020-09-09T21:04:44.855833 | 2018-03-04T17:41:32 | 2018-03-04T17:41:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 245 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
from .bitbay import BitbayBase as base
from .wrapper import BitbayWrapper as wrapper
from .streamer import BitbayStreamer as streamer
__version__ = 0.1
__exchange__ = "bitbay"
__method__ = "rest"
| [
"ran@aroussi.com"
] | ran@aroussi.com |
370b46fe1d4c9bcfcec74e25e30f244d58dced4a | bba0f3b2829bd0e3bb4212b8479315131ef9f525 | /lib/python3.7/genericpath.py | 3d01fc9fcaf0f1933edd93b21f889adb0065bf17 | [
"MIT"
] | permissive | haveaqiupill/sugar-for-leo-bot | f5fca2d4c854821f1ec7c226b07c7a75c828a085 | 114d35c39d416c59c8e544d2aa6ed914711d59dc | refs/heads/master | 2022-11-06T08:46:52.685369 | 2020-06-12T12:53:58 | 2020-06-12T12:53:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 57 | py | /Users/qiujingying/anaconda3/lib/python3.7/genericpath.py | [
"e0323887@u.nus.edu"
] | e0323887@u.nus.edu |
5628e326c354f7cd3c1d230e5e6e83140c249278 | a40950330ea44c2721f35aeeab8f3a0a11846b68 | /INTERACTION1/DRIVER/Interaction/PumpsStation/Liquid/_OneSensor.py | b7ac8d7e289207ed76be73e90b0fa19808b3bab0 | [] | no_license | huang443765159/kai | 7726bcad4e204629edb453aeabcc97242af7132b | 0d66ae4da5a6973e24e1e512fd0df32335e710c5 | refs/heads/master | 2023-03-06T23:13:59.600011 | 2023-03-04T06:14:12 | 2023-03-04T06:14:12 | 233,500,005 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,567 | py | import time
import random
import pigpio
import threading
BAUD = 9600
class OneSensor(object):
def __init__(self, pi, sid, rx_pin, tx_pin, data_cb):
self._pi = pi
self._sid = sid
self._rx_pin = rx_pin
self._tx_pin = tx_pin
self._data_cb = data_cb
# PI
self.... | [
"443765159@qq.com"
] | 443765159@qq.com |
3be4c0307380ce8483986ba777308a5710af9df8 | 537cc3cd397900596be19e424d4eed8f57e611ea | /Basic/List/greatest.py | 546f7cf9170d30e8f76b4ddb75a8633f68c29e1a | [] | no_license | kushal200/python | d6dca96fc452d80181bcc0620e0889095e158d06 | 11d88936c3eacec10d2c717263b7a99f1ed270a1 | refs/heads/main | 2023-08-22T05:09:59.981135 | 2021-10-21T03:10:23 | 2021-10-21T03:10:23 | 405,541,327 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 232 | py | num = [3, 4, 5, 7, 8]
number = int(input("Enter any number: "))
print("list: " + str(num))
count = 0
for i in num:
if i > number:
count += 1
print("numbers greater than {0} are : {1}".format(str(number), str(count)))
| [
"kushal.shresth2057@gmal.com"
] | kushal.shresth2057@gmal.com |
eacab20918d79ac5d79f76307ea5cd4283e90349 | 0b76e4db1f08f2d6d7b9379a884c2075f6e258c3 | /w10/G3/demo/demo/urls.py | 6a76c0435cad61a73f5dc7da4dae78ad382bcce9 | [] | no_license | bobur554396/WD2020Spring | 244ec8b491f297646d1d37f1feeb3767b68b9180 | 2b833c9043701ebaa4d122f717c8465af8fd5677 | refs/heads/master | 2020-12-26T19:01:46.605344 | 2020-04-18T05:33:42 | 2020-04-18T05:33:42 | 237,606,624 | 1 | 6 | null | null | null | null | UTF-8 | Python | false | false | 837 | py | """demo URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.1/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-based vi... | [
"bobur.muhsimbaev@gmail.com"
] | bobur.muhsimbaev@gmail.com |
0a11483653658555e980813887cb6245c822bad2 | 27abd3317e08ab18bbb2747ebc18b307f43ef21b | /scripts/phyghtmap/configUtil.py | c5c9f12071fd17f06e3d7de77c10a4f8781554e9 | [
"MIT"
] | permissive | hiddewie/map-it | 21a5e28f89ed15431e109650161ace66d95a5f20 | b4cdf4491cbbf942ca6428be3d9fb2832ad54235 | refs/heads/master | 2023-08-17T03:51:22.302259 | 2023-08-09T17:18:32 | 2023-08-09T17:18:32 | 207,376,465 | 33 | 6 | MIT | 2023-07-30T20:08:07 | 2019-09-09T18:24:25 | Python | UTF-8 | Python | false | false | 2,196 | py | # -*- encoding: utf-8 -*-
__author__ = "Adrian Dempwolff (phyghtmap@aldw.de)"
__version__ = "2.23"
__copyright__ = "Copyright (c) 2009-2021 Adrian Dempwolff"
__license__ = "GPLv2+"
import base64
class Config(object):
def __init__(self, filename):
self.filename = filename
self.parse()
self.needsWrite = False
... | [
"hidde@hiddewieringa.nl"
] | hidde@hiddewieringa.nl |
790f68275e8eb8ce99be019271310ed7b17a6600 | a2c056026fbee859e67a507edbdc6379c0fb49b1 | /python_203.py | 9b6b903882a20cc876d02026912c85137c6d0dea | [] | no_license | FahimArman/python_crush_course | 0c964aa70243acaccc07db2423a3e8d5b623a984 | 32849b607953f0d5c3beb1eccad8dcf6f57e3de4 | refs/heads/master | 2022-11-23T20:23:28.544126 | 2020-07-26T02:05:50 | 2020-07-26T02:05:50 | 281,237,972 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 202 | py | filename = 'alice.txt'
try:
with open(filename) as f_object:
contents = f_object.read()
except FileNotFoundError:
print("sorry, the file" + filename + "does not exist in the directory.")
| [
"fahim.3761@gmail.com"
] | fahim.3761@gmail.com |
288c6e2ffe13d3b10a13c1f48e108c7897279053 | 0f16e04dcf947ccfde5e9de10a636cf441c1779a | /Visualizations/plot_generations.py | bc91d2a84141c492f58f43e2a2990c3876f51a44 | [] | no_license | williampiat3/GeneticAlgorithm | 54b56c8c0727012d50af35c4cda6a5558064a18b | a1a923a4d431484ca723e8f5a1274ee341ce0d24 | refs/heads/master | 2020-12-05T16:57:50.712658 | 2020-11-09T23:01:55 | 2020-11-09T23:01:55 | 232,181,288 | 5 | 2 | null | null | null | null | UTF-8 | Python | false | false | 5,273 | py | import matplotlib.pyplot as plt
import numpy as np
import pickle
from mpl_toolkits.mplot3d import Axes3D
from matplotlib import cm
#Function to load a pickle file that contains the population and the hyperparameter space
def load_pop(path):
with open(path,'rb') as pickle_file:
hparams=pickle.load(pickle_file)
pop... | [
"william.piat3@gmail.com"
] | william.piat3@gmail.com |
9270913e1aadb398181db8d611389d88ac63f6ee | cd393b90982621a73283f46f36303d1cdc6beed6 | /DocumentManager/urls.py | a81494b4cd5bde882d8c88d4d9cebfdca385b574 | [] | no_license | Srija0202/DocumentManager | a9b81176992b6f8fd4e2d5f48fdb86c633a82ad2 | cb9abd9b5b0a9e895ef71f3af8af3e7e7c2da113 | refs/heads/main | 2023-02-21T19:49:18.630428 | 2021-01-24T16:47:28 | 2021-01-24T16:47:28 | 332,500,299 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 807 | py | """DocumentManager 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')
Cla... | [
"srija.viji02@gmail.com"
] | srija.viji02@gmail.com |
4292449526eca1cdb51ab7201eebc5dc056a46dd | b4f0b6275dd9eed8a767c567b01cc19520ae381b | /Chapter2 基于线程的并行/4_线程同步问题/4_1_使用Lock.py | 51bd264c340790be66f52ea59ef163bccc852922 | [] | no_license | frostime/LearnParallelInPython | f4d86cfbe8aa7a0e04c288f6ef092b7159c4d7d9 | b833af4271f115eae36f97dbc79b9dc8d7034ed4 | refs/heads/master | 2020-05-03T14:46:15.190698 | 2019-03-31T13:00:04 | 2019-03-31T13:00:04 | 178,686,878 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,096 | py | # -*- coding: utf-8 -*-
# pylint: disable=global-statement
"""
使用Lock来完成线程同步问题:
假定有一个资源: x = 0. 有两个线程分别对它进行加一和减一的操作
分别来看一看在使用和不使用Lock两种情况下的结果.
这里由于比较简单,暂时不涉及死锁的问题
原书中的代码看不出效果,所以稍微改动了一下,变成了:
temp = shared_resouce
time.sleep(SLEEP)
shared_resouce = temp ± 1
这样更能模拟出大规模IO操作中容易出现的问题
"""
import threading as td
import time... | [
"frostime@qq.com"
] | frostime@qq.com |
1f4fefd569b9180b8e55732f31e5b4c4049adc52 | 1b1f99277e696fb6ef63455fc8d2eadef7062af5 | /server/quiz/quiz_app/serializers.py | 3784a02a36ef8f75814f6e28455bf0156de7e722 | [] | no_license | jsdelivrbot/drf-redux-quiz | aa3ac06428cf4c0531209887e6ad99293c30dacb | 618c42323e569255198499a24541bc35bce3a975 | refs/heads/master | 2020-04-10T10:27:35.544972 | 2018-12-08T18:47:16 | 2018-12-08T18:47:16 | 160,967,200 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 329 | py | from django.conf.urls import url, include
from django.contrib.auth.models import User
from rest_framework import routers, serializers, viewsets
from .models import Question
class QuestionSerializer(serializers.HyperlinkedModelSerializer):
class Meta:
model = Question
fields = ('id', 'question', '... | [
"eswarmavuru1607@gmail.com"
] | eswarmavuru1607@gmail.com |
67cf67841c5e1908a4086e5b9737233c7076141c | 2698b0148191078f36efe266c3572d9f30724255 | /sharedslides.py | d49c4cdff40d8d397bccf9a8082771f798ea1678 | [] | no_license | sugar-activities/4196-activity | 8c81dc6c0aa0c7e7fd8bd08da79c5a1279d7d400 | 8eaefd6bc6429694e2d765b70f5bdd42b1a5286a | refs/heads/master | 2021-01-19T23:15:28.535962 | 2017-04-21T05:45:34 | 2017-04-21T05:45:34 | 88,937,828 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,085 | py | # -*- mode:python; tab-width:4; indent-tabs-mode:nil; -*-
# sharedslides.py
#
# Class that performs all work relating to the sharing of slide decks and ink.
# Kris Plunkett <kp86@cs.washington.edu>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public ... | [
"ignacio@sugarlabs.org"
] | ignacio@sugarlabs.org |
5d3bcc63abc0c9968c618acbbfdc663fb12925ce | 2ee18091d6d3c6503b84bb02c34b8d3513263897 | /workflow/models/svm.py | 95b7e83f8bf865c297f90b9dc1335e7b48e0b751 | [] | no_license | ml-in-programming/stan | 4aec0c2b50aa862afbaaf71f6092e5fb011db82c | 5b65947498d2fc2d570f35e11721b1a2ed3cd029 | refs/heads/master | 2021-09-20T17:31:40.569564 | 2018-08-13T13:47:13 | 2018-08-13T13:47:13 | 106,922,764 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,973 | py | from sklearn.svm import SVC
from sklearn.svm import LinearSVC
from sklearn.metrics import make_scorer, accuracy_score
from sklearn.model_selection import GridSearchCV
def train_svm_clf(x_train, y_train, x_test, y_test):
print("Start training...")
# Choose the type of classifier.
clf = SVC()
# Choose... | [
"msicar.ot.on.yas@gmail.com"
] | msicar.ot.on.yas@gmail.com |
eaa4e8f591c41e60286a0c91ba2bf9b61edbe54d | 9c974edd8b0b733fb0eceeca6929bfc7053016e3 | /49.py | 15846455f882b377ac8ea420eae6ec6cef84c175 | [] | no_license | MaoYuwei/leetcode | df8ce2fdf73dffe737624f8d37a0f9263df87770 | 69478ccbf3323689cd22c3e64f39da642fe137d6 | refs/heads/master | 2020-03-22T07:40:35.530814 | 2019-08-02T03:12:31 | 2019-08-02T03:12:31 | 139,717,041 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 609 | py | class Solution(object):
def groupAnagrams(self, strs):
"""
:type strs: List[str]
:rtype: List[List[str]]
"""
dict = {}
for i in range(len(strs)):
s = strs[i]
key = ''.join(sorted(s))
if key in dict.keys():
dict[key]... | [
"maoyuwei@nuaa.edu.cn"
] | maoyuwei@nuaa.edu.cn |
889709af18dc59d4c67bae68a48dedd5af5c7e18 | 6a395d86aea2ce64550dc4afa5342c70db9c5285 | /location/loc-2-scripts/for_dataset/omit_side_and_bottom_loc-2.py | 3723e59038009aa06d418200191bc9933c5d7218 | [] | no_license | ba-san/Crowd-Analysis-with-CNN | 58b29350157216d61d61724dce5b93dc38a6f101 | f54045e7df3fd976ea9e398a8201700edc7d74be | refs/heads/master | 2021-06-23T08:20:59.706285 | 2021-03-16T18:13:15 | 2021-03-16T18:13:15 | 207,199,794 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,016 | py | import os
import cv2
import glob
from tqdm import tqdm
import pandas as pd
from joblib import Parallel, delayed
csv_path = glob.glob('./csv/*/*.csv')
def cropping(csv):
#for csv in csv_path:
df = pd.read_csv(csv, index_col=0)
bar = tqdm(desc = "Processing", total = int(len(df)/2), leave = False)
for i in range(int... | [
"ohbadai_ybb_ne_jp@yahoo.co.jp"
] | ohbadai_ybb_ne_jp@yahoo.co.jp |
60413c7f96d539ba2b325c06b0678d2f48db7667 | 1fe8d4133981e53e88abf633046060b56fae883e | /venv/lib/python3.8/site-packages/scipy/fft/setup.py | f0d5dade992f334540d4759fc4100bb1c8bdaf3c | [] | no_license | Akira331/flask-cifar10 | 6c49db8485038731ce67d23f0972b9574746c7a7 | 283e7a2867c77d4b6aba7aea9013bf241d35d76c | refs/heads/master | 2023-06-14T16:35:06.384755 | 2021-07-05T14:09:15 | 2021-07-05T14:09:15 | 382,864,970 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 128 | py | version https://git-lfs.github.com/spec/v1
oid sha256:f32208914b4d7de0ea26596a8be64ef729f4cc5799cd04da84cd8f639c4796de
size 448
| [
"business030301@gmail.com"
] | business030301@gmail.com |
6b822a81c52ad1a954af151406c8f6fad2de0bae | 2940f5416082dadd9c646cd9a46d2d0a99883efb | /venv/Lib/site-packages/networkx/testing/__init__.py | 884ac83d194f33d3597f6095678a2801e2c8fecc | [
"MIT"
] | permissive | tpike3/SugarScape | 4813e4fefbfb0a701f5913d74f045fd0eaed1942 | 39efe4007fba2b12b75c72f7795827a1f74d640b | refs/heads/main | 2021-06-20T03:55:46.288721 | 2021-01-20T17:06:35 | 2021-01-20T17:06:35 | 168,583,530 | 11 | 3 | MIT | 2021-01-20T17:19:53 | 2019-01-31T19:29:40 | Jupyter Notebook | UTF-8 | Python | false | false | 75 | py | from networkx.testing.utils import *
from networkx.testing.test import run
| [
"tpike3@gmu.edu"
] | tpike3@gmu.edu |
c0c27f1dda42e945520422a61f8a8788302aa29a | 797c9b0f08c71e51b94487f756e94c972735a70c | /liquipy/changeset.py | 07d0b73ef4fad4dc1abb0d94d9a062938f5e8681 | [
"Apache-2.0"
] | permissive | vitaly-krugl/liquipy | 00a3e560a9a7ab4b0622ec503ea10ed9cbe5e10f | 6c67b8ff7385d1c9690c2e04406bae0fe31d4664 | refs/heads/master | 2021-01-21T15:58:15.525429 | 2013-09-24T21:02:20 | 2013-09-24T21:02:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,535 | py | # Copyright 2013 Numenta
# 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, softwar... | [
"mtaylor@numenta.com"
] | mtaylor@numenta.com |
8771e36f51004266086b21d7edf120173a58c025 | 3126399ab1199165808c95bad89910362a45909d | /Python/LógicaProgramaçãoAlgoritmos/CifraVogais.py | 69ba28445fad17d2aaab4aa73db3877d1c64330a | [] | no_license | castrofj/CourseCodes | 6555c5ee0ddb3e8859f1c09f073de59727fb785c | f28bd1e32473d586f4ab77f4b7605630cb243a00 | refs/heads/master | 2023-08-25T11:57:19.950161 | 2021-10-20T22:34:35 | 2021-10-20T22:34:35 | 408,246,682 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 680 | py |
# DECLARAÇÃO DE VARIÁVEIS
dicionario_cifra = {"A":"@","E":"&","I":"!","O":"#","U":"*"}
nome_lista = [] #lista onde irá cada caracter (consoante ou vogal encriptada).
# solicitação de dados do usuário. Variável guarda o dado em caixa alta.
nome = input("Digite um nome: ").upper()
# verifica se letra existe no dicion... | [
"fercastro@Fernandos-MacBook-Pro.local"
] | fercastro@Fernandos-MacBook-Pro.local |
9878d3c9a999c0400483bcbfa4d971045bccf1c9 | 95d3a7022a17ba5d98458fb24f375a7c7077bcdc | /bad_robot/urls.py | 85e17e1bc67595cbc8a07b356b3e98207e000373 | [] | no_license | luhu888/badmintonRobotSite | 565bd90621a7eccae16a8ddba3be0a29c4652bf6 | a3f17b07f902197c6beddcd347b4700001c5606b | refs/heads/master | 2022-12-11T04:38:05.033827 | 2019-08-05T16:23:06 | 2019-08-05T16:23:06 | 193,890,775 | 0 | 0 | null | 2022-12-08T05:18:13 | 2019-06-26T11:24:48 | Python | UTF-8 | Python | false | false | 816 | py | from django.urls import path, include
from rest_framework import routers
from rest_framework_jwt.views import obtain_jwt_token
import datetime
from bad_robot import views
JWT_AUTH = {
'JWT_EXPIRATION_DELTA': datetime.timedelta(days=7),
'JWT_AUTH_HEADER_PREFIX': 'JWT',
}
route = routers.DefaultRouter()
# # 注册... | [
"1012587869@qq.com"
] | 1012587869@qq.com |
3d331f23d39592b87f8fc2da3b412f8d427776ee | 7bfda985eb2ad12e07612440b02db56ad815ae0a | /MySpider02/MySpider02/items.py | 48c296899a7f6a40de91f5e9e370cff790dd0f3b | [
"MIT"
] | permissive | Piyuyang/scrapy_practice | a77e49de61aa45752b8d472f9ff17ac6a8b7c395 | ddcd1a6e2a50bd418b458bdd7cf6bb6f4326ce6d | refs/heads/master | 2020-07-14T21:46:52.921080 | 2019-08-30T15:48:05 | 2019-08-30T15:48:05 | 205,410,092 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 406 | py | # -*- coding: utf-8 -*-
# Define here the models for your scraped items
#
# See documentation in:
# https://doc.scrapy.org/en/latest/topics/items.html
import scrapy
class Myspider02Item(scrapy.Item):
title = scrapy.Field() # 标题
href = scrapy.Field() # 链接
source = scrapy.Field() # 来源
pub_time = sc... | [
"pi_yuyang@163.com"
] | pi_yuyang@163.com |
0aead1b7e6494a724e7a0ce66a4461f0a7b0941c | 473b31f1f55f744e8f4227f4a6ea66ae75967d74 | /products/admin.py | 1478848603595abf01fb04bf03b62e524aa1b7b0 | [] | no_license | sampanna-lg/django-lighthouse | 6be01f2c8c7cba589aad154c78909d53246051f4 | 3d6c11095d1a81bab1b956b3ca0a33ce917a33a0 | refs/heads/master | 2022-12-27T14:37:02.769169 | 2020-10-13T10:59:25 | 2020-10-13T10:59:25 | 302,867,309 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,036 | py | from django.contrib import admin
from .models import Category, Product, Brand, Sub_Cat, Comment
class ProductAdmin(admin.ModelAdmin):
list_display = ('id', 'title', 'category', 'price', 'is_published', 'is_topselling','is_new')
list_editable = ('is_published', 'is_topselling', 'is_new' )
list_display_link... | [
"nsiwansh@gmail.com"
] | nsiwansh@gmail.com |
f91174c1662823ff91bef85a8e785e5e53198137 | 860fdc0a26a0c715e2b2544e2bbc474c2dd8669c | /timaverkefni/6-1.py | ead5c4c1174e49fe200b5e61a57bd4bff1c8a5bf | [] | no_license | Thorarinng/prog_01_kaflaverkefni | 0d7ebd3f5e6e503bd2c9041b718d6c43fa791792 | 39bd88bc82533e2bbfa35bea266735b0f13296f8 | refs/heads/master | 2020-04-01T14:35:44.952844 | 2018-10-16T12:01:40 | 2018-10-16T12:01:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 144 | py | # s = input("Input a string: ")
# print("{} {} {}".format(s[:1],'', s[-1]))
s = input("Input a string: ")
print("{} {}".format(s[:1], s[-1])) | [
"futomatik@gmail.com"
] | futomatik@gmail.com |
2f2f262f12cc55c8617cf3c83d6e386c3164b136 | 44558c3c48bd0de06cb4bc4b69b48285afc05457 | /division.py | 08519144eb722f03c836dc719dbcb504288757a6 | [] | no_license | sai-hardik/basic_python_programs | 3146881ccbe4c364da82e507f098122ab9b933d6 | 24310790cbfd1dea5c6355e6c31f71ceb85e06f1 | refs/heads/main | 2023-02-11T04:56:20.311758 | 2021-01-06T13:59:13 | 2021-01-06T13:59:13 | 327,323,637 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 219 | py | # -*- coding: utf-8 -*-
"""
Created on Thu Nov 12 10:47:06 2020
@author: babut
"""
num1 = int(input("enter num 1:"))
num2 = int(input("enter num 2:"))
result = num1 / num2
print(num1,"/ ",num2,"=",result)
| [
"noreply@github.com"
] | sai-hardik.noreply@github.com |
a3e4ee41e561ef8abd0f4c96f80857d31f2980d3 | 9e988c0dfbea15cd23a3de860cb0c88c3dcdbd97 | /sdBs/AllRun/sdssj_031858.28+002325.7/sdB_sdssj_031858.28+002325.7_lc.py | 015e2ab508983a3ff321694093bcee12e4301b9c | [] | no_license | tboudreaux/SummerSTScICode | 73b2e5839b10c0bf733808f4316d34be91c5a3bd | 4dd1ffbb09e0a599257d21872f9d62b5420028b0 | refs/heads/master | 2021-01-20T18:07:44.723496 | 2016-08-08T16:49:53 | 2016-08-08T16:49:53 | 65,221,159 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 369 | py | from gPhoton.gAperture import gAperture
def main():
gAperture(band="NUV", skypos=[49.742833,0.390472], stepsz=30., csvfile="/data2/fleming/GPHOTON_OUTPU/LIGHTCURVES/sdBs/sdB_sdssj_031858.28+002325.7/sdB_sdssj_031858.28+002325.7_lc.csv", maxgap=1000., overwrite=True, radius=0.00555556, annulus=[0.005972227,0.0103888972... | [
"thomas@boudreauxmail.com"
] | thomas@boudreauxmail.com |
0aba7fff0c8775fcabe8cbedc1b02a547850e4eb | a0f218eafbc459f9ba6603219a8d18366c79453a | /Filip/GTSRB/CNN_3/Testcases3/testcase2.py | f5dd7cf717ce6b830d92eeebfda23333344a9d0d | [] | no_license | PerJNilsson/Deep-learning-image-recognition | 634d48976bae16ec6e07e21c7f00e6fd979d6f67 | 28b4e267996f5f37f09a6eb4d6b26b464c263b5a | refs/heads/master | 2022-12-05T22:12:00.229546 | 2018-05-07T07:58:07 | 2018-05-07T07:58:07 | 118,593,152 | 4 | 2 | null | 2022-11-29T12:02:48 | 2018-01-23T10:12:50 | Python | UTF-8 | Python | false | false | 2,241 | py | import keras
from keras.layers import Dense, Flatten
from keras.layers import Conv2D, MaxPooling2D
from keras.models import Sequential
from keras.layers import Dropout
from keras.layers import BatchNormalization
from keras.callbacks import EarlyStopping
# C^2(5) P C^2(3) P
# Dropout on layer: FC layers
# Batch normali... | [
"filhei@student.chalmers.se"
] | filhei@student.chalmers.se |
0ae2c51036b1147568f7ce504c648297bc59a034 | 7319ee9d719e90c22faec4732f039329e436bbad | /doc/source/conf.py | 8b019dd16c202c81f4586c4c3a31b077da271e66 | [
"MIT"
] | permissive | zhaolewen/py-sec-xbrl | 35369d6b2cbef2b1732e1ead204be351de2b8187 | 809fc5bc25f9c62dc86e4afbefe6534689c0f136 | refs/heads/master | 2022-09-14T19:41:28.177670 | 2020-05-22T08:36:42 | 2020-05-22T08:36:42 | 262,821,525 | 15 | 5 | null | null | null | null | UTF-8 | Python | false | false | 1,935 | py | # Configuration file for the Sphinx documentation builder.
#
# This file only contains a selection of the most common options. For a full
# list see the documentation:
# https://www.sphinx-doc.org/en/master/usage/configuration.html
# -- Path setup --------------------------------------------------------------
# If ex... | [
"zhaolewen@gmail.com"
] | zhaolewen@gmail.com |
12dbd5d5a41c10682e924f65483ba46360422405 | 96010193c9566b2ffbb5c2d1f31bd31c6bd979e3 | /utils.py | bb85de30e26196b13e95b4ab960ed088b33e2fc5 | [
"MIT"
] | permissive | dlitvak/CarND-Vehicle-Detection | 1953d92c528a062027a20c8a4d55beee51b0ce70 | f51f00d6ab0235b9fc716aaa0150135e1c63d4ed | refs/heads/master | 2020-03-20T22:14:39.711030 | 2018-06-22T20:07:49 | 2018-06-22T20:07:49 | 137,787,674 | 0 | 0 | null | 2018-06-18T17:58:30 | 2018-06-18T17:58:29 | null | UTF-8 | Python | false | false | 6,143 | py | import numpy as np
import cv2
import matplotlib.image as mpimg
from skimage.feature import hog
def convert_color(image, conv_color_space='YCrCb'):
cvt_image = image
if conv_color_space == 'HSV':
cvt_image = cv2.cvtColor(image, cv2.COLOR_RGB2HSV)
elif conv_color_space == 'LUV':
cvt_image = c... | [
"dlitvak@tibco.com"
] | dlitvak@tibco.com |
050aae1d22e05be18511299981ff041cd44f1347 | 235addaddb72166804a1dc996d6971b28da5166a | /websites/mykart/mykart/settings.py | 1693bad7973bfbc878b832ec64eee79e5d169a1f | [] | no_license | alokdeka/Django | 03992a2b041b8cbe3ee097cda13dcb02cc688a0d | 6b749c66f306c57131bafaf07bf78cbc371975d1 | refs/heads/master | 2023-07-19T11:17:09.027448 | 2020-04-30T15:58:50 | 2020-04-30T15:58:50 | 255,738,242 | 0 | 0 | null | 2021-09-22T18:53:24 | 2020-04-14T22:08:18 | Python | UTF-8 | Python | false | false | 3,231 | py | """
Django settings for mykart project.
Generated by 'django-admin startproject' using Django 2.2.3.
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/
"""
import os
# ... | [
"work.deka.alok@gmail.com"
] | work.deka.alok@gmail.com |
313b916eceb943438635892f19c8c8346d695a15 | 68c9b0fae3e746ca7680e6eb9813939782df7833 | /day10/main.py | c030b9cabd12c745f0b1f220ea77b59954ee6b66 | [] | no_license | hannah-eichelsdoerfer/100DaysofPython | 87865e96e4484cb0b79561cb57a707537f3f916a | bd1f2b49879e54ce6bf9a3f746d377af25ab3e73 | refs/heads/main | 2023-06-30T06:48:40.455837 | 2021-07-28T17:43:21 | 2021-07-28T17:43:21 | 379,217,802 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,232 | py | # Day 10 Project - Calculator
from os import system, name
def clear():
# for windows
if name == 'nt':
_ = system('cls')
# for mac and linux(here, os.name is 'posix')
else:
_ = system('clear')
from art import logo
print(logo)
def add(a, b):
return a + b
def subtract(a, b):
return a - b
... | [
"hannaheichelsdoerfer@gmail.com"
] | hannaheichelsdoerfer@gmail.com |
5574e174a75d3d6408a03e88c167f8b4c8eff1ff | 43c32d6791349d91ee99d50330717e413f95b667 | /FactoryMethod/python-source/routers/FourRouter.py | acb655eeea7f0ffe341cfe665da4b7c7d55e6832 | [] | no_license | akhtyamovpavel/PatternsCollection | 17d0f26b486f065fc38fc9297844d454711b687c | 9165d5bc7c50494adaf1b0dce40b08bfdd41d87c | refs/heads/master | 2023-04-02T20:06:18.635096 | 2023-03-21T19:38:02 | 2023-03-21T19:38:02 | 171,413,700 | 42 | 44 | null | 2021-10-31T18:44:25 | 2019-02-19T05:51:52 | C++ | UTF-8 | Python | false | false | 184 | py | from routers import Router
from routes import Route
from routes.FourRoute import FourRoute
class FourRouter(Router):
def create_route(self) -> Route:
return FourRoute()
| [
"akhtyamovpavel@gmail.com"
] | akhtyamovpavel@gmail.com |
27ea5d9ee615c2727ec11f2710fc2f03b5a30bfc | 7d9d3d5ce2ac19221163d54a94c025993db0af4f | /autotest/ogr/ogr_dxf.py | 2222aacac9eb29e918c8f8f18981e317beeaa58a | [
"MIT"
] | permissive | dcgull/gdal | 5408adad77d001db32173bba547b447220b5e9a2 | a5e2a7b54db955bd061ebfc6d69aa2dd752b120c | refs/heads/master | 2020-04-03T13:30:40.013172 | 2013-10-11T12:07:57 | 2013-10-11T12:07:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 47,233 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
###############################################################################
# $Id: ogr_dxf.py 26354 2013-08-21 15:28:27Z rouault $
#
# Project: GDAL/OGR Test Suite
# Purpose: Test OGR DXF driver functionality.
# Author: Frank Warmerdam <warmerdam@pobox.com>
#
#####... | [
"gerard.choinka@ambrosys.de"
] | gerard.choinka@ambrosys.de |
37d6f988a200dc46a67310f1d35ed4b3cdc5d949 | 853d4cec42071b76a80be38c58ffe0fbf9b9dc34 | /venv/Lib/site-packages/nltk/chat/iesha.py | 225e8202b10289cc992b3c089c98d1784db5c7ee | [] | no_license | msainTesting/TwitterAnalysis | 5e1646dbf40badf887a86e125ef30a9edaa622a4 | b1204346508ba3e3922a52380ead5a8f7079726b | refs/heads/main | 2023-08-28T08:29:28.924620 | 2021-11-04T12:36:30 | 2021-11-04T12:36:30 | 424,242,582 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,402 | py | # Natural Language Toolkit: Teen Chatbot
#
# Copyright (C) 2001-2021 NLTK Project
# Author: Selina Dennis <sjmd@csse.unimelb.edu.au>
# URL: <http://nltk.org/>
# For license information, see LICENSE.TXT
"""
This chatbot is a tongue-in-cheek take on the average teen
anime junky that frequents YahooMessenger or ... | [
"msaineti@icloud.com"
] | msaineti@icloud.com |
5a487a26879f6aef02288a3f522012a975112c4a | 23f3349e8b50f0cb3e461bbd65c1ea8dec792d0b | /2_semestr/root_lab/interface.py | 9c21e776032cb563c2c6682525e1917c650a39a8 | [] | no_license | JacobLutin/Python_bmstu | d17866dbab0e74f0f9d600c4dbd9d53eb5c5b7be | 66fd8679de7556978b9cd1e9fd8646a8d7d6daa8 | refs/heads/master | 2020-05-29T14:40:09.310602 | 2017-03-27T05:18:58 | 2017-03-27T05:18:58 | 64,742,311 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,756 | py | from methods import *
from draw import *
def getParams():
print("Введите следующие значения")
print()
a = float(input("Введите значение a: "))
b = float(input("Введите значение b: "))
h = float(input("Введите шаг h: "))
eps = float(input("Введите точность (эпсилон): "))
n = int(input("Вв... | [
"jacoblutin@MacBook-Pro-Jacob.local"
] | jacoblutin@MacBook-Pro-Jacob.local |
90815c37e766074cf9db7ecbac549253c6bff499 | 28fcd2c169c0887c87f0076e11c5b3047b622939 | /settings.py | e5719dc3666ba47589354addb5e137a641735c41 | [] | no_license | mstumberger/Crossbar-boilerplate | 80fb70c0fceeb806a0b717db762bc7219300295e | 1369e96a513f30435c751e1119f9ea5636818ad8 | refs/heads/master | 2020-03-20T15:26:26.267001 | 2018-07-09T20:09:38 | 2018-07-09T20:09:38 | 137,513,271 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,682 | py | import os
BASE_DIR = os.path.dirname(os.path.abspath(__file__))
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True
ALLOWED_HOSTS = ['*']
INSTALLED_APPS = (
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django... | [
"marko.stumberger@gmail.com"
] | marko.stumberger@gmail.com |
5c96b24cce307e12e0ca9c44917eeb453918a858 | 399fb29d8525b6d7ac298783675d0d56e37bcac7 | /python/ray/tune/execution/ray_trial_executor.py | 0a31e063f80879f2b1c36e393477920c460d3aa7 | [
"MIT",
"BSD-3-Clause",
"Apache-2.0"
] | permissive | AmeerHajAli/ray | 40c9aebe0da59e9bcd70303d981bfe6b65007991 | 1ffd032f5f793d8817217a040f0f636f9372cd56 | refs/heads/master | 2023-03-28T10:50:09.186561 | 2023-03-24T23:08:08 | 2023-03-24T23:08:08 | 175,129,851 | 1 | 0 | Apache-2.0 | 2019-03-12T03:39:16 | 2019-03-12T03:39:14 | null | UTF-8 | Python | false | false | 49,716 | py | # coding: utf-8
import copy
import logging
import os
import random
import time
import traceback
from collections import deque
from enum import Enum
from functools import partial
from typing import Callable, Dict, Iterable, Optional, Set, Union
import ray
from ray.actor import ActorHandle
from ray.air import Checkpoint... | [
"noreply@github.com"
] | AmeerHajAli.noreply@github.com |
735542c9d7d6fe94936ae57c61165068255a64a5 | c42f1b44c1f276e5eb37a1a2a356c2a519181a28 | /58/sol.py | 141f26d7c21434f77cf65eba9bd2a9dbe945e5d9 | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | vreinharz/project_euler | 11e90df94d9d33365121435bd1a6ed56e96faad8 | f284590082cf40a39e2982ddd70a5f32f714819b | refs/heads/master | 2016-09-11T09:21:27.790287 | 2014-11-19T03:47:49 | 2014-11-19T03:47:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,551 | py | from pprint import pprint
from math import fsum, ceil
import sys
def is_prime(x):
if x == 1:
return False
if x % 2 == 0:
return False
for j in range(3, int(ceil(x**0.5))+1):
if x % j == 0:
return False
return True
def ratio_dag(d, before):
nb = fsum(1 for x in d... | [
"vreinharz@gmail.com"
] | vreinharz@gmail.com |
86adb1787001ba825359a5cd0be9f3a8ed3d2c2a | c13f0ee4dab40a39c31383c6411b48f76774fdfd | /sistemaAsistencia/wsgi.py | 1d9db80abd00c9d2556a9f60473e4f8118095b41 | [] | no_license | AbrahamSaa/adsi | 545f027a61b3144af1e74e8aaa8f855bfc058ff7 | 10bf2a0bd10b08b2deac7a8cffc2d6460281eeaf | refs/heads/master | 2021-08-28T09:39:40.442787 | 2017-12-11T21:49:41 | 2017-12-11T21:49:41 | 113,237,246 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 412 | py | """
WSGI config for sistemaAsistencia project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("D... | [
"Abraham"
] | Abraham |
3f8eab609fb86b64c0f7235b89cf0f1c2a559438 | 6ea261a92786825ce366201e7d7d8dd9efdbbb26 | /portal/app/core/views/base.py | eea8326853a57661e94252cfaf402284765d0170 | [] | no_license | tanzy831/powernet | 2d7e3c8af4147d36320fe5ba691541dbeb042c40 | 28db3c742d1b0e3480d08ed517b923cba3e1a664 | refs/heads/master | 2020-04-11T09:25:33.495162 | 2018-12-12T02:09:33 | 2018-12-12T02:09:33 | 161,677,140 | 0 | 0 | null | 2018-12-13T18:07:58 | 2018-12-13T18:07:57 | null | UTF-8 | Python | false | false | 3,171 | py | import json
from django.shortcuts import render
from app.models import Home, Device
from rest_framework.authtoken.models import Token
from app.api.v1.endpoint.home import HomeSerializer
from app.api.v1.endpoint.device import DeviceSerializer
from django.contrib.auth.decorators import login_required
@login_required
de... | [
"jonathan@rhumbix.com"
] | jonathan@rhumbix.com |
85a17047bc108250cf945819caff9c91c8ad3cf9 | 4142b8c513d87361da196631f7edd82f11465abb | /python/1263A.py | b8918a15dc5cdc4a97064bbcc7dad5e27403ed25 | [] | no_license | npkhanhh/codeforces | b52b66780426682ea1a3d72c66aedbe6dc71d7fe | 107acd623b0e99ef0a635dfce3e87041347e36df | refs/heads/master | 2022-02-08T17:01:01.731524 | 2022-02-07T10:29:52 | 2022-02-07T10:29:52 | 228,027,631 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 170 | py |
n = int(input())
for _ in range(n):
a, b, c = sorted(list(map(int, input().split())))
if a + b >= c:
print(int((a+b+c)/2))
else:
print(a+b)
| [
"npkhanh93@gmail.com"
] | npkhanh93@gmail.com |
74d8a11fc9df07567058ed3e34f2de8eb3f18d54 | fcdb430384f00a39a936b46eae5606c9ec339b15 | /pentai/run_ai.py | 3ac6bb7608270e981abd3d943d83fb1dc94a1077 | [
"MIT"
] | permissive | cropleyb/pentai | 78a03161d26eb5cdd7b0f023b782b3bf9352456a | bbd32864cabce9ba5cb1051fa9d78d69c8feb5e5 | refs/heads/master | 2020-04-16T16:13:53.640001 | 2014-12-10T07:54:05 | 2014-12-10T07:54:05 | 24,712,772 | 8 | 1 | null | 2016-06-04T08:01:48 | 2014-10-02T08:59:04 | Python | UTF-8 | Python | false | false | 10,233 | py | #!/usr/bin/env python
'''
from guppy import hpy
h = hpy()
h.setref()
'''
import pentai.base.rules as r_m
import pentai.base.game as g_m
import time
from pentai.ai.ai_player import *
#from pentai.db.evaluator import *
from pentai.db.ai_factory import *
from pentai.db.openings_book import *
from pentai.db.games_mgr im... | [
"cropleyb@yahoo.com.au"
] | cropleyb@yahoo.com.au |
6284ac6837cd1258e98d0c17dd4b125e0698cde9 | bc32a53cfebc7c03987ed44492ed8afb79aed5a3 | /customers/management/commands/generate_purchases.py | c2b3220e7ef021aca32af2aadbcce1d5bd7d9792 | [
"MIT"
] | permissive | jeremy886/bookstore | abe537df821d3d2b873c166965aac2a01e0d5914 | d220efcc21b95942d14fae672da746b1abcaf750 | refs/heads/master | 2020-03-20T19:42:04.639190 | 2017-05-12T19:07:39 | 2017-05-12T19:07:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 852 | py | from django.core.management.base import BaseCommand, CommandError
import factory
from ...factories import PurchaseFactory
from ...models import Purchase
class Command(BaseCommand):
help = 'Generate N-number Purchases'
def add_arguments(self, parser):
parser.add_argument('num', nargs='?', default=10... | [
"kenneth@gigantuan.net"
] | kenneth@gigantuan.net |
7b1636f793ce13189a19838755b171395bfddac0 | fb69cbeaa964052b318a026531bc09db8ecb2c61 | /service/api/interfaces.py | 4544dca18351afe679c915bebb0dfb4f34d7ea0a | [
"MIT"
] | permissive | stvgt/interfaces | 077d835c11f4eba5122766854037c3010a6ea0b7 | 813e58304f2bdc0333b015bf5a15f8a46cfb9073 | refs/heads/master | 2022-12-10T13:27:31.288133 | 2019-08-24T19:16:02 | 2019-08-24T19:19:05 | 194,733,052 | 0 | 0 | MIT | 2022-12-08T05:50:20 | 2019-07-01T19:39:18 | Python | UTF-8 | Python | false | false | 2,364 | py | import json
from dataclasses import asdict
import yaml
from flask import request
from flask_restplus import Namespace, Resource, abort
from jsonschema import ValidationError
from werkzeug.datastructures import FileStorage
from service.database import db_connection
from service.database.queries import (
get_compon... | [
"s.voigt@posteo.de"
] | s.voigt@posteo.de |
6d4c342943a36cbc73c3e96e062a082e56c15181 | aa853a9094fff4b6e9b0ddc7469be29ad5f0f811 | /poi_stock_account_consolidate/models/__init__.py | 646eda432c164d20562a02dbbb872636bba80b21 | [] | no_license | blue-connect/illuminati | 40a13e1ebeaceee39f17caa360f79e8deeaebf58 | 6682e60630064641474ddb2d8cbc520e30f64832 | refs/heads/master | 2022-01-06T00:55:58.465611 | 2018-11-24T04:30:03 | 2018-11-24T04:30:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,049 | py | ##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2004-2009 Tiny SPRL (<http://tiny.be>).
# Copyright (C) 2010-2012 OpenERP s.a. (<http://openerp.com>).
#
# This program is free software: you can redistribute it and/or... | [
"yori.quisbert@poiesisconsulting.com"
] | yori.quisbert@poiesisconsulting.com |
ca1be42514d3cf0cd7dd055208df6e2fb2b5309b | bbeecb7cff56a96c580709b425823cde53f21621 | /msw/spots/north_america/nova_scotia.py | 7d3025323b4dad586bac40ff88083a92701a9107 | [] | no_license | hhubbell/python-msw | f8a2ef8628d545b3d57a5e54468222177dc47b37 | 5df38db1dc7b3239a6d00e0516f2942077f97099 | refs/heads/master | 2020-04-05T23:46:21.209888 | 2015-06-16T01:36:43 | 2015-06-16T01:36:43 | 37,476,303 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 142 | py | LAWRENCETOWN = 342
WESTERN_HEAD = 343
POINT_MICHAUD = 758
COW_BAY = 786
SUMMERVILLE = 788
MARTINIQUE_BEACH = 814
NOVA_SCOTIA_HURRICANE = 1096
| [
"hhubbell@uvm.edu"
] | hhubbell@uvm.edu |
45e8a9ce23db31e8bffc2db20e4031eff14e986a | ebb2a06a025b3c25443b2287c7c9b130cad5b5f1 | /unsourced/scrape.py | e9a26d03bd11897e45f1248ad095f5c358f6b1c8 | [] | no_license | bcampbell/unsourced | b587d423e2422ad2e5060263404b062df2941dbe | 4e0b418a957bbac9c7d3358425cdf11bcd436388 | refs/heads/master | 2021-01-23T12:20:54.033881 | 2014-02-18T08:43:25 | 2014-02-18T08:43:25 | 2,531,708 | 0 | 1 | null | 2012-10-04T01:14:19 | 2011-10-07T10:18:04 | Python | UTF-8 | Python | false | false | 2,037 | py | import urllib
import collections
import json
import datetime
from unsourced import util,analyser,highlight
from unsourced.forms import EnterArticleForm
from unsourced.models import Article,ArticleURL,Action
class Status:
""" status codes returned by scrapomat """
SUCCESS = 0
NET_ERROR = 1
BAD_REQ = ... | [
"ben@scumways.com"
] | ben@scumways.com |
b583f8756e2031e3b01beb734e64fdfc0770f0c3 | ab19c3757766f00c7414aa10641f8c7e6321375d | /40.py | 7ef3408fe4ce923ea05c074a96da77db063a15e7 | [] | no_license | HHariHHaran/python-programming | 2c70ff0c4b24ae48b8096075a29ffc0edfe1ef00 | c2db869e352d7ee22d499dd772f5cb2285b2822f | refs/heads/master | 2020-04-19T09:19:56.918989 | 2019-01-22T09:50:28 | 2019-01-22T09:50:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 310 | py | n11 = 0
n12 = 1
count = 0
nterms=int(input("n"))
if nterms <= 0:
print("Positive integer")
elif nterms == 1:
print("Fibonacci sequence upto",nterms,":")
print(n11)
else:
print("Fibonacci sequence upto",nterms,":")
while count < nterms:
print(n11,end=' ')
nth = n11 + n12
n11 = n12
n12 = nth
count += 1
| [
"noreply@github.com"
] | HHariHHaran.noreply@github.com |
c58b4d207d4d32981afa83816a9438a77d9b595b | 2e32375b85206795db2a8df05b3360496dc787af | /attackhp.py | 3a40e5c84d58fc80459c337eff195f532b766ac2 | [] | no_license | dldeshpande/MyFirstPython | 32e90e8c692210478380532f7a20804b8244964b | ebafd04f40ed77542aafa48c2517d7641a35bf6c | refs/heads/Python | 2020-03-08T19:10:22.295954 | 2018-04-18T06:44:18 | 2018-04-18T06:44:18 | 128,340,556 | 0 | 0 | null | 2018-04-18T06:44:19 | 2018-04-06T05:05:15 | Python | UTF-8 | Python | false | false | 459 | py | import random
playerhp = 360
attackhpl = 60
attackhp = 80
while playerhp > 0:
dmg = random.randrange(attackhpl, attackhp)
playerhp = playerhp - dmg
if playerhp <= 30 :
playerhp = 30
continue
print("Enenmy strike for: ", dmg ,"Damage point. current hp", playerhp)
if ... | [
"dldeshpande@gmail.com"
] | dldeshpande@gmail.com |
a826c0f1e7fe5b90d614afd6e1fce8a42e8d8fd7 | 07902fac259097801f4f453211493ccc8dee812e | /ncclient/_version.py | bc44d9c5ce40973a3ce20e4fa946b2277422cefe | [
"Apache-2.0"
] | permissive | CiscoDevNet/ncclient | 285064128f0e66346a715a6bcb835d735ac732ae | ab705fbe5eb7cae23e96e0682273fc9c2ed61739 | refs/heads/master | 2021-08-01T17:26:47.892633 | 2021-07-27T17:29:24 | 2021-07-27T17:29:24 | 96,571,148 | 9 | 7 | Apache-2.0 | 2021-01-19T13:21:19 | 2017-07-07T19:40:19 | Python | UTF-8 | Python | false | false | 18,456 | py |
# This file helps to compute a version number in source trees obtained from
# git-archive tarball (such as those provided by githubs download-from-tag
# feature). Distribution tarballs (built by setup.py sdist) and build
# directories (produced by setup.py build) will contain a much shorter file
# that just contains t... | [
"noreply@github.com"
] | CiscoDevNet.noreply@github.com |
7aa2805538eddcb1843537e50ec41c897b3902f6 | c3b47e1b7b1be1107cab434cbc26039502dcf9a3 | /PROJECT/PSIT/HKT_pass_2013.py | b965395080e66cafb5398f68fdff33a153c4bfda | [
"MIT"
] | permissive | crimsonreaper/Project_PSIT61 | 07f2b8e9b7a0138b72e08ffdbb371510b626e9f1 | f4b67ba9f6e478df5484016137a3b61c640c4ffc | refs/heads/master | 2020-04-11T07:57:25.722993 | 2018-12-17T11:36:06 | 2018-12-17T11:36:06 | 161,627,514 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,206 | py | """THAILAND AIR TRAFFIC STATISTIC ANALYSIS"""
def all_data():
"""Return list from fetch data csv"""
import csv
import pygal as pg
main_data = csv.reader(open('airtrafficstats.csv', newline=''))
main_data = [row for row in main_data]
hkt = []
for i in main_data:
if i[0] =... | [
"61070008@kmitl.ac.th"
] | 61070008@kmitl.ac.th |
3ce4d7eb9f4afd1ba7e3f3212c556c8841249200 | 4917775ea477f12c0c29bfb0ef77189bb2e602cd | /prpe/prpe6/prpe.py | 404fcb6ed6607f0ba794fc289340e29785893bfc | [
"MIT"
] | permissive | smaint/PRPE-Translator | cd3ce7e49a4e98d77e289a20413b373a05e15afd | 3d4f12feeccaf1458069a8969bc6c55c4fbd4443 | refs/heads/main | 2023-06-09T05:09:49.470182 | 2021-06-17T01:25:25 | 2021-06-17T01:25:25 | 376,365,044 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 61,189 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
# Author: Jānis Zuters
# PRPE technical version 6
#=============================================================================
import sys
from collections import Counter
from copy import deepcopy
from numpy import argmin
goodroots = Counter()
badroots = {}... | [
"noreply@github.com"
] | smaint.noreply@github.com |
60b50a0b818f5893266076d10b34884b3c010070 | e89050540c024b750dee8971f2a850bd761b0e7c | /test/test.py | 83b0046d2fc40ebb8cc212e0b7ffaf43f4047093 | [] | no_license | wataru-sasa/lesson-flask | 6e59c0eaef8714966aa4e7137dc1ca42530cd040 | 5026258bd4948727ec7429cdfddcd783a025dfae | refs/heads/main | 2023-01-21T07:34:27.259141 | 2020-12-06T08:05:49 | 2020-12-06T08:05:49 | 318,982,035 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,333 | py | # print('Hello World')
# print('Hello World'.upper())
# print('Hello World'.lower())
# x= "Hello World"
# print(x)
# x.upper()
# x= x.upper()
# print(x)
# print(["Hello"])
# print(type(["Hello"]))
# print(["a","b",1,2])
# x = ["a","b","c",[1,2,3]]
# print(x[3][1])
# print(x[-1])
# print(x[0:2])
# x[1] = "d"
# print(... | [
"make.it.sskwtr.40@gmail.com"
] | make.it.sskwtr.40@gmail.com |
5c5b4e283559db0b607779e73d531b6dba39f937 | d66993b0383ee7a97c9d5fe761269a3cb8e67e22 | /Ejercicios/POO_Listas.py | 63a2dd591e2cff1c2b2819cdc5c99362c94d6104 | [] | no_license | rramosaveros/CursoPythonCisco | 09828e3d8190490c0dc30861ae241f5222e108d6 | 1508e67873adfcf31b8c78d3f5cb2a0572dfeb1c | refs/heads/master | 2023-06-27T12:07:52.652780 | 2021-08-01T14:19:19 | 2021-08-01T14:19:19 | 391,647,026 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 83 | py | lst = []
for x in range(10):
lst.append(1 if x % 2 == 0 else 0)
print(lst) | [
"ramoslenin32@gmail.com"
] | ramoslenin32@gmail.com |
cfd3d5f4f9fcc6162de1f2a40575115b79e78764 | 20cbd7a6b383dbd810daccc08415c0564919f198 | /utils.py | 2d10bb5a9ff03b46060cd880ae47903737b258d8 | [] | no_license | dserbano/kmeans-movielens | 6df446f7775856d7121231296139d751c27d4bd7 | 77ea71210a3e79714dff9377d0509b8508ec9673 | refs/heads/master | 2023-03-05T02:47:24.285061 | 2021-02-06T01:06:52 | 2021-02-06T01:06:52 | 336,424,478 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,895 | py | import csv, time, sys, math, os
csv.field_size_limit(100000000)
def jaccard_similarity(list1:list, list2:list):
intersection = len(list(set(list1).intersection(list2)))
union = (len(list1) + len(list2)) - intersection
return 1 - float(intersection) / union
def cosine_similarity(v1, v2):
sumxx, sumxy,... | [
"32792904+askdanserbanoiu@users.noreply.github.com"
] | 32792904+askdanserbanoiu@users.noreply.github.com |
002abb4b218c704330153d2871a2e030ba3f98a9 | dd72634cd837b0b9dea6d33b0fdfdf028e9ef5f5 | /treeExplore.py | a76a5dff1cd65982d20f1c9f1b81bcf60823bc9b | [] | no_license | Tinamilee/naive_bayes | fbce00a1eb75290ba971285cf055641fbf4fad99 | 931155cafc15c777ad7a04856a31215638c44365 | refs/heads/master | 2020-06-04T15:29:04.248592 | 2019-06-15T13:33:47 | 2019-06-15T13:33:47 | 192,082,094 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,434 | py | # TkInter widgets used to build tree explorer GUI
# Code for Integrating Matplotlib and TkInter
from tkinter import *
# root = Tk()
# myLabel = Label(root, text="Hello World")
# myLabel.grid()
# root.mainloop()
from numpy import *
import matplotlib
matplotlib.use('TkAgg')
from matplotlib.backends.backend_tkagg import ... | [
"1737367547@qq.com"
] | 1737367547@qq.com |
5ba9339108ff98cf84f285a6aa932d06e49e2e54 | a367503d647df1babdf3c1149755c098dc11e39c | /PrincessAdventure/Arrow_rain.py | 01892096dc9c97f41c96fb0e9de935625c56f964 | [] | no_license | Aebeloe/Pygame | fb18adddc62f1ba28289421f28557fbac608902a | dab6ab02b6b6679be90862cffdd7b97f83f524d3 | refs/heads/master | 2021-01-13T17:05:13.949333 | 2015-12-23T11:59:48 | 2015-12-23T11:59:48 | 46,858,623 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,261 | py | import Arrow
import pygame
import Variables as variables
import Health
class Arrow_rain():
def __init__(self, game_instance):
self.all_arrows = pygame.sprite.Group()
self.all_health = pygame.sprite.Group()
self.all_enemies = pygame.sprite.Group()
self.all_red_dots = pygame.sprite.Gr... | [
"madmad12@student.aau.dk"
] | madmad12@student.aau.dk |
4a64027eb5dbc8f9bd6f10bcfd965feadf5b4710 | f7e2e4f6a704ff2ecf93ff72f03faa6b4e1a228b | /models/account_payment_term.py | 63fdc6e573824407b5251f31404ef2ae59c59040 | [] | no_license | marclebrun/ml_cash_discount | a110b71e56412f9dda0345da2bd3b455abdf3083 | 1d6e563801361457e0a24029b61ad2ef43e62ba0 | refs/heads/master | 2023-01-04T22:45:58.222175 | 2020-11-08T07:37:58 | 2020-11-08T07:37:58 | 282,465,780 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 571 | py | # -*- coding: utf-8 -*-
from odoo import api, fields, models, _
class AccountPaymentTerm(models.Model):
_inherit = "account.payment.term"
cd_percent = fields.Float(
string = "Discount (%)"
)
cd_delay = fields.Integer(
string = "Discount delay (days)"
)
cd_include_tax = field... | [
"marclebrun2@gmail.com"
] | marclebrun2@gmail.com |
b4d12f8108d42dca2e7d0365fc7ed27eeb797ae7 | 8101f16e9a8edb5faf291b67775eb25ae0670330 | /pyenv.3.6/bin/wheel | bf185a4712978e3c2a73e3a89dd6cb2bef136fe4 | [] | no_license | mannyhappenings/interview | 656f935b94f899d586f3f06798fb1e9023927bb2 | 1e4471e78c6e79494b94222d66b5451f622bc83e | refs/heads/master | 2020-12-14T08:41:05.742749 | 2020-02-04T04:05:58 | 2020-02-04T04:05:58 | 234,689,164 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 239 | #!/data/git/interview/pyenv.3.6/bin/python3.6
# -*- coding: utf-8 -*-
import re
import sys
from wheel.cli import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"manishsharma004@yahoo.com"
] | manishsharma004@yahoo.com | |
f4753fa393f3037911d74ceac68317c790dbd1c9 | 6016c3f324c9466c1dbcd333dc66e9c532ca1eed | /wiktionary/__init__.py | 254ce9412e1e9ae8dcd97c79b30fa98f5a3d8459 | [] | no_license | therealvidem/Cogs | 7f1da46b02a216d1e4d0081274256f54d9502a61 | bf0558bb606c3b03816f2fdd3ccc27f28aa42e54 | refs/heads/master | 2023-04-17T01:15:32.653886 | 2023-04-10T07:12:36 | 2023-04-10T07:12:36 | 67,955,156 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 85 | py |
from .wiktionary import Wiktionary
def setup(bot):
bot.add_cog(Wiktionary(bot)) | [
"superninario@gmail.com"
] | superninario@gmail.com |
81e42fc296b652fd8fd06add7fbc81f454a79daf | d220ae894e40f20fb70ef60aa24e29edefbab364 | /Python Scripts/script_1_prepare_inputs.py | 12ded98a0355769df670e652c55f275a381960bf | [] | no_license | aronmandrella/classification-of-percussive-sounds-using-convolution-neural-networks | 3c6ae41d107b8f8a34d6a4f274553a2e1f637ce0 | b4c7542279e33ab0316b34f01373fbe5a906a159 | refs/heads/main | 2023-01-23T23:30:54.205007 | 2020-11-28T10:39:43 | 2020-11-28T10:39:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,711 | py | # SKRYPT GENERUJĄCY RÓŻNE WYKRESY UŻYTE W PRACY
import config
from pymodules.audiohelpers import *
from pymodules.utilities import *
import numpy as np
import matplotlib
import matplotlib.pyplot as plt
import soundfile as sf
import librosa
import librosa.display
from timeit import default_timer as timer
import time
fr... | [
"aron.mandrella@gmail.com"
] | aron.mandrella@gmail.com |
ce0ad4e94dbeaf7a9f235aef5fbd62c5295e3b07 | d56d707d47b28cedd37f49f46495499eb0ff235a | /base/migrations/0034_student_profile_pic.py | 09debb172755d771a823f5c944ee6b59562ac38d | [] | no_license | ishitagupta2505/YourMentor | bef0ce0a1f990ffc1290a0ac3243cc9de8ced734 | 4d7fea8d95a9132ef885a291d0ddb8f3c0e3a72c | refs/heads/master | 2023-05-31T02:58:47.504224 | 2021-06-16T08:18:42 | 2021-06-16T08:18:42 | 306,419,187 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 410 | py | # Generated by Django 3.1.3 on 2020-11-29 17:11
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('base', '0033_auto_20201119_2223'),
]
operations = [
migrations.AddField(
model_name='student',
name='profile_pic',
... | [
"ishita2kbti@gmail.com"
] | ishita2kbti@gmail.com |
c1989b8cf05642cfad143f3ee2fed78a0be3270f | 8351a1b162da27c9c5793cf1ac9eb735b334eb69 | /general/80. Remove Duplicates from Sorted Array II.py | 5be16290786ee4e9f04eada6c7c719fbd33e33d8 | [] | no_license | puneet1024/Algorithms | af5762e53dab91f4bb38433da703485bdd3648a0 | 893dedfc3e47c3b6c823e54d8ff9193dedbc5678 | refs/heads/master | 2020-03-29T15:21:10.594266 | 2018-10-07T07:31:13 | 2018-10-07T07:31:13 | 150,058,687 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 611 | py | class Solution:
def removeDuplicates(self, nums):
"""
:type nums: List[int]
:rtype: int
"""
leni = len(nums)
if leni == 0:
return 0
if leni == 1:
return 1
j = 0 #to store index of next unique element
for i in r... | [
"puneetbhushan24@gmail.com"
] | puneetbhushan24@gmail.com |
694f060123f0e502d4c225ca02c02ac04a529737 | 249cbea53ddfda9cd66486eb197dec8957ab2358 | /python/paddle/fluid/tests/unittests/test_static_save_load_large.py | 08413d711be55b0b7072b3d2dfd0dc5efdeb8462 | [
"Apache-2.0"
] | permissive | Yelrose/Paddle | 107df9433cad73d88227674deda29c6fa2115730 | c670503220cf8df898f3195d81debde7dcc22ad1 | refs/heads/develop | 2023-04-08T19:18:29.498548 | 2021-03-24T12:11:41 | 2021-03-24T12:11:41 | 185,934,762 | 1 | 0 | Apache-2.0 | 2021-12-15T06:36:37 | 2019-05-10T06:52:58 | Python | UTF-8 | Python | false | false | 4,012 | py | # Copyright (c) 2021 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"
] | Yelrose.noreply@github.com |
f404316472bc8104bb2812ba039e0dd0f54ed07e | adbedf9626c52748aa048f2b17c18d25262b4d56 | /robot_framework_message_queue/build/lib/MessageQueue/MessageQueue.py | ac1ace0da6944b8ec8340417a2d56aaf98fb71ea | [] | no_license | sanjitroy1992/robot_framework_custom_libraries | 3ef91ea6d4705215f86c83d276d67ce7c5af673a | e5fde8f428a4d46d5cacb2c5369f9c59529f5c91 | refs/heads/master | 2022-11-06T09:11:02.148601 | 2020-06-29T09:35:46 | 2020-06-29T09:35:46 | 274,330,471 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,554 | py | try:
import pymqi
flag = True
except:
flag = False
from stompest.config import StompConfig
from stompest.sync import Stomp
import os
class MessageQueue(object):
ROBOT_LIBRARY_SCOPE = 'GLOBAL'
def _ibm_queue_configure(self, host, port,queue_manager, channel):
""" To configure IBM Queue"""
... | [
"sanjit.roy@finastra.com"
] | sanjit.roy@finastra.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.