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 220
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 257
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
f1f9eb86896567cf61cf6a0519daf39c6107a071 | 67214cd9c88977ab92e63acd772c08782885ff3d | /201-250/209.py | 2e851c9f98ced9d7d37a285997658cef4b8b040d | [] | no_license | AaronJny/leetcode | cdf6ea3605aef6f97d5a45524fdc75a8ed1e1500 | 989b6ae678f9aa92a7400f6c67bbfedf31465315 | refs/heads/master | 2020-04-27T20:54:51.826033 | 2019-11-06T06:40:50 | 2019-11-06T06:40:50 | 174,675,641 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 620 | py | class Solution:
def minSubArrayLen(self, s: int, nums: list) -> int:
min_len = 0
if not nums:
return 0
length = len(nums)
l = 0
_sum = 0
for i in range(length):
# 如果小于,就加进去
r = i + 1
_sum += nums[i]
for j in ... | [
"Aaron__7@163.com"
] | Aaron__7@163.com |
3a83ed261321a3290a3fc74e77077b67d6eaa4d5 | 24d2a9af8e78fedf2e5f6297353015aaabeb98a1 | /hello.py | 4ee8b95099c6437bf2729d12444cd5dc09aa8c99 | [
"Apache-2.0"
] | permissive | AnastasiiaBlaha/python_workshop | d875a574da99add0c68630d6e3b844f4f8ad08f7 | 6fd0305c748a1c519fa09fcad8a5c336028c5e3e | refs/heads/master | 2020-09-19T19:46:25.112521 | 2019-11-26T20:34:12 | 2019-11-26T20:34:12 | 224,280,964 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,218 | py | #!/usr/bin/python -tt
# Copyright 2010 Google Inc.
# Licensed under the Apache License, Version 2.0
# http://www.apache.org/licenses/LICENSE-2.0
# Google's Python Class
# http://code.google.com/edu/languages/google-python-class/
"""A tiny Python program to check that Python is working.
Try running this program from t... | [
"anastasiia.blaha@gmail.com"
] | anastasiia.blaha@gmail.com |
ac6e83fc490c1b1534068dd263f2e814cae0be01 | 9f667f39977ff32a358b2c8c4aaba4d6bb6af280 | /Lista2/Questão 7.py | d17fc5502f25d231077411f7b60ecdfe3f2d536c | [] | no_license | lucasdovale/ListasCES-22 | af2159b2b87f7567784427d391d549d008445547 | abd695b53449d459169025124c4df66c251f6745 | refs/heads/main | 2023-01-07T07:08:57.163455 | 2020-11-14T22:23:19 | 2020-11-14T22:23:19 | 312,895,224 | 0 | 0 | null | 2020-11-14T22:23:21 | 2020-11-14T20:20:05 | null | UTF-8 | Python | false | false | 589 | py | # CES-22: Programação Orientada à Objeto
# Professor: Yano
# Código utilizado para Questão 7 da Lista 2 de Python
# Escrito por Lucas do Vale Bezerra, COMP-22
class Point:
def __init__(self, x=0, y=0):
self.x = x
self.y = y
def reflect_x(self):
self.y = -self.y
return (self.x,... | [
"lucasdovale.t22@gmail.com"
] | lucasdovale.t22@gmail.com |
e27dc99b272d488e3fcae2b5bc6d125b61ef2b29 | f41ed81206a072dc3a620446acca69b52e077702 | /run/runner/contentgen_runner.py | 6e17cdf859b8f471787ae6f827049ea8de52d348 | [
"MIT"
] | permissive | dngu7/honeycode | 0f56630d9ae5a472a87ade78f33bd072dbbd2a19 | d7a00408f8370f3fea8ca1a94b239f3e4d842a7d | refs/heads/master | 2023-03-23T14:37:14.916877 | 2021-03-16T07:17:46 | 2021-03-16T07:17:46 | 277,994,349 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,408 | py | import importlib.util
import logging
import os
import time
import random
import string
import pickle
import networkx as nx
import numpy as np
import torch
from tqdm import tqdm
from utils.read_config import read_config
from utils.train_helper import load_model
logger = logging.getLogger('gen')
class ContentgenRunn... | [
"5498902-dngu7@users.noreply.gitlab.com"
] | 5498902-dngu7@users.noreply.gitlab.com |
8ea7ab0c74be4393def8866136b58beee58fb199 | e1631dec3fd691cec1f7328e073418fc55c95248 | /main.py | c9578bfe3d17798bfe098ae07abc484538032078 | [] | no_license | ZumbaIdol/build-a-blog | 68003c1bc24dc4bf9ae589c05727e9800ee6079b | 4bf8ba120c3dac809e9eb8dd8b36c652b34bae7e | refs/heads/master | 2021-07-13T19:30:45.791072 | 2017-10-16T23:25:28 | 2017-10-16T23:25:28 | 106,151,985 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,301 | py | from flask import Flask, request, redirect, render_template, flash
from flask_sqlalchemy import SQLAlchemy
app = Flask(__name__)
app.config['DEBUG'] = True
app.config['SQLALCHEMY_DATABASE_URI'] = 'mysql+pymysql://build-a-blog:root@localhost:8889/build-a-blog'
db = SQLAlchemy(app)
class Blog(db.Model):
id =... | [
"david.a.foote@gmail.com"
] | david.a.foote@gmail.com |
2b07e11c085a9b0619fef61a5169fb372e93c5c9 | 8f867bdc00e7e13a926cb0a404d1713384de36ab | /김성수/프로그래머스 LV1/같은 숫자는 싫어.py | 8b2ad254c13d8e9d1f7525d42619eb4e955627bd | [] | no_license | kssgit/Meerithm | 1501c276aaf0fa8c3c9b9edd4c43abe7d24ebc8e | fa979aba09d301fe1731c0df857b461e67482533 | refs/heads/main | 2023-08-26T22:06:47.748519 | 2021-11-08T15:49:37 | 2021-11-08T15:49:37 | 378,855,521 | 0 | 2 | null | 2021-11-08T15:49:37 | 2021-06-21T08:11:31 | Java | UTF-8 | Python | false | false | 250 | py | def solution(arr):
answer = []
num = arr[0]
answer.append(num)
for i in range(1,len(arr)):
if arr[i] != num:
answer.append(arr[i])
num = arr[i]
return answer
arr = [1,1,3,3,0,1,1]
print(solution(arr)) | [
"76714467+kssgit@users.noreply.github.com"
] | 76714467+kssgit@users.noreply.github.com |
961eb495d649c9820ad86fc9b038685ac0e9f0e5 | 3ad18431b18c4847e6324155209ba5b940923dd2 | /noiseProtocol/clientNoise.py | acf6386d93d73fe43fdbc3521b7ce6d036734d89 | [] | no_license | stratumv2/stratumv2 | a3aedc31474ff228d113c797c38a505ea8ceb6a1 | 3e3c730e6d56e73b55dbf1b3647dbe5ef15afd8f | refs/heads/master | 2020-11-24T00:35:22.889702 | 2020-01-23T15:21:03 | 2020-01-23T15:21:03 | 227,884,446 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,451 | py | import socket
from noise.connection import NoiseConnection
sock = socket.socket()
sock.connect(('localhost', 2000))
# Create instance of NoiseConnection, set up to use NN handshake pattern, Curve25519 for
# elliptic curve keypair, ChaCha20Poly1305 as cipher function and SHA256 for hashing.
proto = NoiseConnection.fr... | [
"sthiagolg@gmail.com"
] | sthiagolg@gmail.com |
0488cfa80dd088af4130571c9478a61247675251 | bbfb2ab6d23629eba2dd47a007fbfbbe7b5a97b6 | /mask_detection_on_face.py | d60c52dcb5704d2ad78b67ccd588755fc5c9f88e | [] | no_license | nkrjain5/Face_mask_detection | 20a9a6edf8848b52db31ecb9432fd92e0d217647 | 0792b6a4d92730f5875e05a6e474f9e0d7b2f08b | refs/heads/master | 2022-11-22T03:43:21.649375 | 2020-07-22T13:08:27 | 2020-07-22T13:08:27 | 280,350,461 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,875 | py | import cv2
from keras.models import load_model
import numpy as np
import os
model_01=r'J:\Udemy\DL\face_mask_detection_pyimagesearch\Face_mask_detector_nkr\Model\face_mask_model_001.h5'
model_02=r'J:\Udemy\DL\face_mask_detection_pyimagesearch\Face_mask_detector_nkr\Model\face_mask_model_002_50Epochs.h5'
model_0... | [
"noreply@github.com"
] | nkrjain5.noreply@github.com |
b90f4ea8a1ded40bd96a10a5aa67dcb65cf04e94 | 163142df55ed85f75a7d22bbe37be42a15361d38 | /testGitGraph.py | cb9ac6d33ba940287fb0ff4f1689995709ffd7c6 | [] | no_license | Iskander508/JIRA-graph | c43a85f9e4b5c8e376f428dee6b16d2e3df0aaa5 | 25ca18d825839f4bd59964a214fd4474532ed0f5 | refs/heads/master | 2020-04-16T23:24:03.961562 | 2016-08-19T11:54:19 | 2016-08-19T12:35:24 | 45,353,397 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 541 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import git
import gitGraph
g = gitGraph.GitGraph(git.GIT(repositoryPath='D:\\otevrenebrno\\otevrenebrno'))
#result = g.checkout(git.Branch('master'))
#result = g.merge(git.Branch('master'))
g.add('master')
g.add('origin/document_parser')
g.add('origin/angular-leaflet-di... | [
"pavel.zarecky@seznam.cz"
] | pavel.zarecky@seznam.cz |
0f41b4c555162561f877240887369c044b1fe898 | 3d589d1c56b55fbd2b45b03564b8a9442ebf142b | /lib/src/klio/metrics/base.py | 1b50aeb1da57930cc8fba17042c72434460c2eb4 | [
"Apache-2.0"
] | permissive | spotify/klio | 1aff27412e92c9d699259e5ab1eaeb39dc3e9571 | e625565708ed846201d2e05f782c0ce585554346 | refs/heads/develop | 2023-05-25T14:33:28.348335 | 2022-03-23T20:34:09 | 2022-03-23T20:34:09 | 285,928,366 | 815 | 57 | Apache-2.0 | 2023-05-24T21:07:09 | 2020-08-07T22:02:58 | Python | UTF-8 | Python | false | false | 5,765 | py | # Copyright 2019-2020 Spotify AB
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writin... | [
"lynn@spotify.com"
] | lynn@spotify.com |
8ce7e115fc41ef8a70c24743cb6d49ce19361cf2 | 248ebd4dc0dbb675a898efac63d0c0a8ffa49ab4 | /Python/Basics/Python Exercises .Simple Calculations/USDtoBGN.py | 31b77e380f0df05d9d5631521988423cce46ff12 | [] | no_license | Karinacho/SoftUni | 002de33a947f95d2c06cf6e4b5a2d625ebe3199c | 4e0b72e4a59c7292a3bd44a36d80996e1207e054 | refs/heads/master | 2021-04-05T23:37:42.453007 | 2019-05-10T21:11:43 | 2019-05-10T21:11:43 | 125,027,319 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 73 | py | USD = float(input())
currency = USD*1.79549
print(f"{currency:.2f} BGN")
| [
"kreativen_dom@abv.bg"
] | kreativen_dom@abv.bg |
2682ec078d2d665c54515022a6840ddf88168001 | 7a1f6f1aae43b219cd34c3c9b907923fb839e6f5 | /Python/Udemy/FXTRADE/pyfxtrading/pyfxtrading/28/app/controllers/webserver.py | bbf2ff35ce8221762754b16b7b6dd096ee8484a4 | [] | no_license | amanoman/amanoman.github.io | b5afc80e0e49ed15db793e2ebf69003c05ab8ce0 | 141c928f6d1df0389859f663f6439d327d4c32d6 | refs/heads/master | 2023-05-28T07:22:09.735409 | 2021-03-31T15:00:14 | 2021-03-31T15:00:14 | 187,139,297 | 0 | 1 | null | 2023-05-22T23:37:24 | 2019-05-17T03:19:36 | Jupyter Notebook | UTF-8 | Python | false | false | 543 | py | from flask import Flask
from flask import render_template
import settings
app = Flask(__name__, template_folder='../views')
@app.teardown_appcontext
def remove_session(ex=None):
from app.models.base import Session
Session.remove()
@app.route('/')
def index():
app.logger.info('index')
return rende... | [
"amntkykblog@gmail.com"
] | amntkykblog@gmail.com |
c55373049933fb9294b6719e84950c730ff15db0 | e3c505f0c0029460c29166d5bcb5843a0a3dceaa | /supportportal/apps/loggers/models.py | 3cdf171e7a7ccd3ff84924126cec57c39c615a1a | [] | no_license | bensnyde/django-csa | 4db742abd95dec6780a39531cef268a4da5e662f | 17a341332f6908c75ce060f55a145a76c9db48f7 | refs/heads/master | 2021-01-01T19:07:33.040642 | 2014-10-22T21:43:46 | 2014-10-22T21:43:46 | 22,216,590 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,843 | py | from django.conf import settings
from django.db import models
from datetime import datetime
from django.contrib.contenttypes import generic
from django.contrib.contenttypes.models import ContentType
import json
from django.dispatch import receiver
from django.contrib.auth.signals import user_logged_in, user_logged_out
... | [
"introspectr3@gmail.com"
] | introspectr3@gmail.com |
2dd09cf0b1134b3972740048402bc6e9ee1c97be | 1ece1faa638f85c567fdb237c67340501f86f89e | /model/model_builder.py | 5bc0acb8d41370c2b1905ff26fb7f1070790eb67 | [] | no_license | seasa2016/transformer_random | 54223ee5b04a4563c7903d925436d843b8cf7f1c | e3e13c9a2ddc49558d8e991427a974848a850b9c | refs/heads/master | 2020-04-02T12:21:28.167673 | 2019-03-19T03:45:00 | 2019-03-19T03:45:00 | 154,429,913 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,030 | py | import torch
import torch.nn as nn
from torch.nn.init import xavier_uniform_,xavier_normal_
from .module.Embedding import Embedding
from .util.Logger import logger
from . import Constant
from . import transformer
def build_embedding(opt,word_dict,max_len,for_encoder=True,dtype='sum',tag=None):
if(for_encoder):
... | [
"ericet1234@gmail.com"
] | ericet1234@gmail.com |
54c39f42bb7749d582e0b83874b3e1f806019822 | 8704f40748ab2e247e16777ab0cfeaab6bacd201 | /anaconda_code/Assignment/linearAdvect.py | 6985c72a98d58f4a2367244c62e8da7898f0c033 | [] | no_license | ojp1995/Numerics_1 | e3ac8a345ebe514aefef92b5531139e613731b27 | 63eda51570f0de2bcff86ddeb8b894390e4ddb74 | refs/heads/master | 2020-03-31T13:27:55.894134 | 2018-11-21T13:54:12 | 2018-11-21T13:54:12 | 152,256,709 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,304 | py | #!/usr/bin/python3
# Outer code for setting up the linear advection problem on a uniform
# grid and calling the function to perform the linear advection and plot.
### The matplotlib package contains plotting functions ###
import matplotlib.pyplot as plt
import numpy as np
# read in all the linear advect... | [
"contact.o.j.phillips@gmail.com"
] | contact.o.j.phillips@gmail.com |
c35d5a098aa830d49c8bd31d6edc966e800e7473 | 98c70027eaa8881149ad700bc75bb9df75be3473 | /node_modules/scrypt/build/config.gypi | f0fab75f9945a3b8c7ef98c27865669a9a00d20b | [] | no_license | Fatima-yo/genevieve-bountypayment | 4f6406cad22f85bc6e123d13f5af7974950b1b49 | 5a5815628a79dc587d6c5678e3e02025d0036dc8 | refs/heads/master | 2020-03-16T03:31:53.321206 | 2018-05-07T16:49:36 | 2018-05-07T16:49:36 | 132,489,383 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,092 | gypi | # Do not edit. File was generated by node-gyp's "configure" step
{
"target_defaults": {
"cflags": [],
"default_configuration": "Release",
"defines": [],
"include_dirs": [],
"libraries": []
},
"variables": {
"asan": 0,
"coverage": "false",
"debug_devtools": "node",
"debug_http2"... | [
"marcocastiglionem@gmail.com"
] | marcocastiglionem@gmail.com |
a15f411bdebb64d8ba1c4f8098e1687a6eb1a2a8 | 7f9627073fb7b122155bca377d564af2bc431c53 | /access_to_aws/test.py | 15d1e0be0d64ff640db726535323ce373876269b | [] | no_license | Kevjolly/DataScienceProject | 3e52d60bbc42a355d956092a510057c1d10f9d76 | c80aa2ab3765ff6f9dbe3370246348f2e91c0563 | refs/heads/master | 2020-04-29T17:07:16.410394 | 2019-05-10T15:52:17 | 2019-05-10T15:52:17 | 176,287,613 | 0 | 1 | null | 2019-05-10T15:52:18 | 2019-03-18T13:05:48 | Python | UTF-8 | Python | false | false | 145 | py | from accessAPIdatabase import *
results = getBaseData("mallat", "MALLAT_TEST")
#print(results)
results = getNewData(False, 27)
#print(results)
| [
"kevjolly78@gmail.com"
] | kevjolly78@gmail.com |
3a155f5c1b2e5c5d7c96cfb5ddf83343e7bc6ea4 | 621843ab71f3cb889fd8086d6fa999fab815006b | /Gueess while.py | 125cfb09744e5a8b1c69b257bfa861ea1491bc90 | [] | no_license | Mats91/Vaja2 | bee7a92d87e817ffa0039befee407b6aa498cc71 | fcccbc8cc5b264c67d0100b0dd5aaabe5a895459 | refs/heads/master | 2020-03-12T16:45:18.809919 | 2018-04-23T16:08:47 | 2018-04-23T16:08:47 | 130,723,042 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 510 | py | secret = 22
ponovi = True
while ponovi:
guess = int(raw_input("Guess the secret number (between 1 and 30): "))
if guess == secret:
print "You guessed it - congratulations! It's number %s :)" % secret
# ponovi = False
break
else:
print "Sorry, your guess is not correct... Se... | [
"grcar.matjaz@gmail.com"
] | grcar.matjaz@gmail.com |
c13eb660a22f3919107137447a037101a0066dbd | 7e56f3f287352b6fd2d3a153202299f6c86b226a | /models/build_lr_model_tfidf_unigrams.py | 79d54443b02a1e599dfa5850ab6acc56f361c02e | [] | no_license | aschams/ImprovingYelp | f99884213a6338c0a707af5a6114dc24805fdc06 | 3f750d1c7cb824948368b712a53f5075e2b7c4d7 | refs/heads/master | 2020-07-27T00:15:10.018948 | 2019-09-16T20:26:48 | 2019-09-16T20:26:48 | 208,806,765 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,494 | py | import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
from sklearn.decomposition import TruncatedSVD
from sklearn.feature_extraction.text import TfidfVectorizer
from sklearn.feature_extraction import DictVectorizer, FeatureHasher
from sklearn.model_selection import train_test_split
from sklearn.metrics... | [
"acschams@gmail.com"
] | acschams@gmail.com |
be1ae9233870e4cb74d127c269ecafd6a6201e85 | 46b002b8af55c62689e10e0758ec8e8005893252 | /RESTful/drones/v2/urls.py | fe2db487a5dbd051ca6d3b85db3ef4960aba1ae8 | [] | no_license | DictumAcFactum/books_with_code | e2ff5f500a1b3c7298bcf64c4f26c10284ed8f08 | 327bdf2fdd1c483dad0a841fdd7b9d364a7957fc | refs/heads/master | 2023-04-05T15:25:57.974362 | 2021-04-11T08:57:14 | 2021-04-11T08:57:14 | 277,194,212 | 0 | 0 | null | 2021-04-11T08:57:47 | 2020-07-04T22:28:02 | Python | UTF-8 | Python | false | false | 1,013 | py | from django.conf.urls import url
from .. import views
from ..v2 import views as views_v2
app_name = 'drones_v2'
urlpatterns = [
url(r'^vehicle-categories/$', views.DroneCategoryList.as_view(), name=views.DroneCategoryList.name),
url(r'^vehicle-categories/(?P<pk>[0-9]+)$', views.DroneCategoryDetail.as_view(),... | [
"pinkfloydx20@gmail.com"
] | pinkfloydx20@gmail.com |
b51e6caa09f683cec6c8f09fb1aca60e73ec36f0 | 7bededcada9271d92f34da6dae7088f3faf61c02 | /pypureclient/flasharray/FA_2_25/models/resource_performance_no_id_by_array_get_response.py | dc59892d20f80e34fb26c25e0f59584a263ca562 | [
"BSD-2-Clause"
] | permissive | PureStorage-OpenConnect/py-pure-client | a5348c6a153f8c809d6e3cf734d95d6946c5f659 | 7e3c3ec1d639fb004627e94d3d63a6fdc141ae1e | refs/heads/master | 2023-09-04T10:59:03.009972 | 2023-08-25T07:40:41 | 2023-08-25T07:40:41 | 160,391,444 | 18 | 29 | BSD-2-Clause | 2023-09-08T09:08:30 | 2018-12-04T17:02:51 | Python | UTF-8 | Python | false | false | 6,240 | py | # coding: utf-8
"""
FlashArray REST API
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
OpenAPI spec version: 2.25
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re
import six
import typing
from ... | [
"noreply@github.com"
] | PureStorage-OpenConnect.noreply@github.com |
51a378f46c55b18901d1b9fae4907840619b1b56 | 752881a4f3ae95760e7645a9c610b0be3d57a188 | /ethnode/toolkit/mockproc.py | 8c023d5e2bc523a6f464deb07cb592f77bbd8ae5 | [] | no_license | AndriyKhrobak/Ethearnal | 2b57f5d8ef69348b4870c9d28671857bb7c69a35 | 29ff78b12085796bc25deb2e92abc9caacbee5f7 | refs/heads/master | 2021-05-08T23:57:03.435539 | 2018-01-22T03:35:33 | 2018-01-22T03:35:33 | 119,725,779 | 0 | 1 | null | 2018-01-31T18:23:49 | 2018-01-31T18:23:49 | null | UTF-8 | Python | false | false | 578 | py | #!/usr/bin/env python
import sys
from time import sleep
from datetime import datetime
def main(name: str, time_interval: float):
cnt = 0
while True:
cnt += 1
sys.stdout.write(datetime.now().isoformat())
sys.stdout.flush()
sleep(time_interval)
sys.stdout.write('\r')
... | [
"dobri.stoilov@gmail.com"
] | dobri.stoilov@gmail.com |
e152459956c322f9cbc51869cd7582e46c883a4f | ca77040a488fea5410449a6ae06693c64c0d3f1a | /web/ui/views/views.py | 8bf22427e4bbe80ad2a7a40c428831f5b4e2c697 | [] | no_license | patricknevindwyer/space-base-otter | 0565412db484b5bb8b2dbc4e8d3878fbd73f7b0b | ea7dd7649c172ca3e4c14b6df8b6715f55f746ba | refs/heads/master | 2021-01-19T13:42:53.229964 | 2017-08-19T21:50:45 | 2017-08-19T21:50:45 | 82,412,968 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 122 | py | from django.shortcuts import render
# Create your views here.
def index(request):
return render(request, "ping.html") | [
"patricknevindwyer@gmail.com"
] | patricknevindwyer@gmail.com |
2455804a9deef4d3443589283af4dc9f1ef5c926 | dd8227454b817ccf2ceb24b3dfd4260d4ded7a72 | /scripts/item/consume_2435694.py | 020e445c8c1b62894419c308afa2bc358e797d3f | [
"MIT"
] | permissive | Snewmy/swordie | 0dd3c17808b064c2cb2bd9576b51daf01ae5d686 | ae01ed4ec0eb20a18730e8cd209eea0b84a8dd17 | refs/heads/master | 2023-06-30T21:14:05.225798 | 2021-07-06T14:32:39 | 2021-07-06T14:32:39 | 389,497,502 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 174 | py | # Heroes Evan Damage Skin
success = sm.addDamageSkin(2435694)
if success:
sm.chat("The Heroes Evan Damage Skin has been added to your account's damage skin collection.")
| [
"vcalheirosdoc@gmail.com"
] | vcalheirosdoc@gmail.com |
26c7a8acf057a32238bd83840d9c85a9892388da | 541cb3a837c7d4a10d880f96c346adead81628f0 | /drake_modules/imgui/__init__.py | 1c026c3c50bab88c87b8243b27d851ba25c6ab04 | [] | no_license | k0rm1d/engine | ef1e9669242f89b8466481e825d7ef0bc7000304 | 3094f94190240a6642303199fc854900485fdfaf | refs/heads/master | 2021-05-12T00:56:31.941950 | 2018-02-10T14:44:47 | 2018-02-10T14:44:47 | 117,546,460 | 0 | 0 | null | 2018-02-10T14:39:34 | 2018-01-15T13:06:40 | Python | UTF-8 | Python | false | false | 2,582 | py | from .. import Module
import drake
class imgui(Module):
EXPECTED = {
"1.53": {
"headers": ["imgui.h"],
"sources": ["imgui.cpp", "imgui_draw.cpp"],
"libraries": {
"linux": ["libimgui.so", "libingui_draw.so"]
},
"others": []
}
}
def __init__(self,
vers... | [
"antony.mechin@docker.com"
] | antony.mechin@docker.com |
7b15a582c9c0112ff2f9ca9b1f7fc316751f89ce | 0cd12af8acd9233d76ca6c228d80768e7c4dc041 | /.c9/metadata/environment/~/.c9/python3/lib/python3.6/site-packages/django/conf/urls/__init__.py | 85bf3b7bc11272915701a44ff55b5f3cf8d4174d | [] | no_license | sheldon18/todo | eb700aac7be54145413901257bba6b44f7e9c21f | 1c141a2a1260dbfd9e0b6962fbe0b81e0acde005 | refs/heads/master | 2022-12-14T13:20:31.348810 | 2020-03-01T03:15:21 | 2020-03-01T03:15:21 | 244,056,042 | 0 | 0 | null | 2022-12-08T03:42:47 | 2020-02-29T23:19:36 | Python | UTF-8 | Python | false | false | 479 | py | {"filter":false,"title":"__init__.py","tooltip":"~/.c9/python3/lib/python3.6/site-packages/django/conf/urls/__init__.py","undoManager":{"mark":-1,"position":-1,"stack":[]},"ace":{"folds":[],"scrolltop":0,"scrollleft":0,"selection":{"start":{"row":12,"column":45},"end":{"row":12,"column":45},"isBackwards":false},"option... | [
"ubuntu@ip-172-31-81-27.ec2.internal"
] | ubuntu@ip-172-31-81-27.ec2.internal |
3fcf015d019f27b3041c1f8f1b06657a5c2712f3 | 13b97ffc3ba29414e19e0650682e2bfd5ce2b79a | /simplecharts.py | 37992a6518e0c74bdf60afe8c2fd065f9fcd4adb | [] | no_license | JamesFarrant/Personal-Projects | cf64918f8513cfe1f6d1fc57a661782383aa2d18 | 47309dc8b85208bbf9a517f334937eb43172b125 | refs/heads/master | 2021-01-25T05:35:32.516857 | 2017-05-29T16:11:10 | 2017-05-29T16:11:10 | 30,017,360 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 473 | py | import matplotlib.pyplot as plt
# X and Y must be the same.
x = [1, 2, 3, 4, 5]
y = [4, 7, 4, 7, 3]
# Adding a new line
y2 = [5, 3, 2, 6, 2]
# Plotting the graph and adding labels to lines
plt.plot(x, y, label='Initial Line')
plt.plot(x, y2, label='New Line')
# Labelling our axes and adding title
plt.xlabel('Plot Numb... | [
"noreply@github.com"
] | JamesFarrant.noreply@github.com |
8f67823a6192eab002fdc019bde38a401808622d | 0d5ed56bb75a3f57944dd0e06fef2cc8fde8d1c8 | /facial_landmarks_normalized_visualization_more_images.py | 971331903254710fd09d2dd1013621cbc529b7d8 | [
"MIT"
] | permissive | matejcrnac/Face_deidentification_kazemi | 378cae1310648c5e2329f0af2c03e68a7f09a6b9 | 434fff49b5a7b555bb3c56a62915fd502e0b75f9 | refs/heads/master | 2020-03-08T19:59:46.373323 | 2018-06-18T17:51:42 | 2018-06-18T17:51:42 | 128,370,343 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,361 | py | #input one image
#detect facial landmarks
#show image with detected facial landmarks
#show image with normalized facial landmarks
import cv2
import numpy as np
from FacialLandmarkDetection import *
from Database_loader import *
#Method is used to get paths for template images
def getTemplatePaths(templates_folder, ... | [
"matej.crnac@gmail.com"
] | matej.crnac@gmail.com |
0703769d9b487fad66ce7c6dc02f421d17d9732c | 6f636814e48124376fb1a649ac6758f09ecaf05b | /Final_Project/catkin_ws/devel/lib/python2.7/dist-packages/turtlebot3_msgs/srv/_SetFollowState.py | 9c1ca61ffba4d64903898e570169e1ea7b2aeff6 | [] | no_license | JiaqiaoZhang/aa274 | fbb202210f7879b917ee63e7fa15a80ecae1323c | 693e1a27cbaa8eca62a05b53cf2a487f85b6610a | refs/heads/master | 2020-08-23T18:37:17.050587 | 2020-01-29T07:28:07 | 2020-01-29T07:28:07 | 216,683,320 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,482 | py | # This Python file uses the following encoding: utf-8
"""autogenerated by genpy from turtlebot3_msgs/SetFollowStateRequest.msg. Do not edit."""
import sys
python3 = True if sys.hexversion > 0x03000000 else False
import genpy
import struct
class SetFollowStateRequest(genpy.Message):
_md5sum = "92b912c48c68248015bb32... | [
"zhangxiaoqiao@DN51t4mt.SUNet"
] | zhangxiaoqiao@DN51t4mt.SUNet |
7fbac519e7757dd9ec46321b52be8cec7d80d07a | f8614b19a8231e11a17dcdc2e3ff527bada0bf34 | /Lab Exercise 9.9.2021/problem5.py | 80f2b6023878b5bdce608fc0ca1e4dafa1a03f4b | [] | no_license | GOConnell04/Python-2021 | eff508db57884d383c296ba77f9b119f2fa35ce7 | bafd696ab1f11b22b51f4b06629d60400bf56e48 | refs/heads/main | 2023-08-05T01:59:36.580414 | 2021-09-25T13:39:15 | 2021-09-25T13:39:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 513 | py | ## Lab Exercise 9/9/2021 Problem 5
## Author:
## Converts inches to feet and inches
#get height from user, convert to int data type and store in height
#Add code here
#calculate feet and store in variable feet (use integer division)
#Add code here
#calculate inches and store in variable inches (use rema... | [
"noreply@github.com"
] | GOConnell04.noreply@github.com |
5778000492192034131651c7d7d3a99d974dfc42 | 0b3f84f8891069bde05f896515bb93fb8dfda365 | /tasks/zaj8/qs.py | 72ae14a9c8263032c9a0db9c0cdcaa007e8a03f7 | [] | no_license | tybur/pwzn | 69e9377c71f88f200262804a818237e8e978c14b | 26f322451741c30aae00c43a7e021d27e03e441a | refs/heads/master | 2021-01-14T14:28:35.402781 | 2015-04-04T12:36:33 | 2015-04-04T12:36:33 | 26,272,312 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,977 | py | def partition(list, start, end):
pivot = list[end] # Partition around the last value
bottom = start-1 # Start outside the area to be partitioned
top = end # Ditto
done = 0
while not done: ... | [
"mistrzenator@gmail.com"
] | mistrzenator@gmail.com |
12caf078872a5634ca4638aed6dbdbd7776b5062 | 6097031d8e85400214085f152164a29346d106e3 | /maxheap.py | 7e3f269c4b2365d3684fe48cdb32ec815206f9cd | [] | no_license | ekourkchi/GalaxyGroups | 2fccca4998850c0838d0c7ef949bba8b1267716a | 19e98da0015b0462133133a23915e6d633614ad3 | refs/heads/master | 2022-04-03T09:30:19.667796 | 2020-02-13T03:05:48 | 2020-02-13T03:05:48 | 112,898,380 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,137 | py | #!/home/ehsan/Ureka/Ureka/variants/common/bin/python
import numpy as np
from math import *
from copy import *
class heapNode:
key = None
ID = None
flag = False
def __init__(self, key, ID):
self.key = key
self.ID = ID
def toString(self):
print self.key, self.ID, self.flag
# ... | [
"ekourkchi@gmail.com"
] | ekourkchi@gmail.com |
16afc1318862a41cd8919b74e00d65bc4f42433a | 94314048472ca6db91c90261c84cd364c6e0f703 | /python-ml-projects/main.py | 45fe293410e55ac248d8528c6f14a7b912dee678 | [] | no_license | okeefem2/python-learning | b9dae792098aba24da19a33fb55302e3cec207a9 | 2f5f5e5805e26aa185eddacc4a21adb402e000cd | refs/heads/main | 2023-04-08T07:02:20.223769 | 2023-03-20T03:17:00 | 2023-03-20T03:17:00 | 337,278,684 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 109 | py | from boston_housing import create_and_train_model
if __name__ == '__main__':
create_and_train_model()
| [
"okeefem355@gmail.com"
] | okeefem355@gmail.com |
8232e6ec961ef965559c59a8301dda4f3979961a | ec4d4509d9ec9885f7f1461efde321f38c1df62c | /test.py | 9edc383e0f2763059d4956baff6ee529cf00868b | [] | no_license | skollhati/CLACK | d60071479c38feab871f1216affc22a84f23655f | 34b451d389785d7c38ef4a54c4e01f148f224844 | refs/heads/master | 2020-07-28T02:46:13.592736 | 2019-10-25T03:54:30 | 2019-10-25T03:54:30 | 209,284,253 | 0 | 0 | null | 2020-07-18T14:54:41 | 2019-09-18T10:45:43 | CSS | UTF-8 | Python | false | false | 1,914 | py | s1 = [4,99,2,6,7,13,88,76]
s2 = [6,88,13,4,99,2,7]
from collections import Counter
import re
s3 = 'abcdea'
s4 = 'cookoie'
s1_char_count = set(sorted(Counter(list(s3)).items()))
s2_char_count = set(sorted(Counter(list(s4)).items()))
t = [1,2]
from collections import Counter
import re
def char_count_check(s1,s2):
... | [
"df201901@gmail.com"
] | df201901@gmail.com |
4e3d52464d257688f122a23748edd43590043b89 | 7bededcada9271d92f34da6dae7088f3faf61c02 | /pypureclient/flasharray/FA_2_24/models/network_interface_neighbor_capability.py | 76ae203e5847eb8a031597b8f2d39119f564eac0 | [
"BSD-2-Clause"
] | permissive | PureStorage-OpenConnect/py-pure-client | a5348c6a153f8c809d6e3cf734d95d6946c5f659 | 7e3c3ec1d639fb004627e94d3d63a6fdc141ae1e | refs/heads/master | 2023-09-04T10:59:03.009972 | 2023-08-25T07:40:41 | 2023-08-25T07:40:41 | 160,391,444 | 18 | 29 | BSD-2-Clause | 2023-09-08T09:08:30 | 2018-12-04T17:02:51 | Python | UTF-8 | Python | false | false | 4,245 | py | # coding: utf-8
"""
FlashArray REST API
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
OpenAPI spec version: 2.24
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re
import six
import typing
from ... | [
"noreply@github.com"
] | PureStorage-OpenConnect.noreply@github.com |
dcae116535fa0ee935040906690848d5008cbce8 | b9502638bb6176120107a600aaefcffc9d43ac9f | /test_pytest/test_yml.py | 211e36a9c88ceb3c5530408f35084b0cfcbaa42f | [] | no_license | zhanglei12306/Python_Practice | ccd174c620100160439d747d3c79882104564f85 | 1e3770db673555b3e98e55fdc3a690af2d80630e | refs/heads/master | 2023-03-31T11:14:07.846445 | 2021-04-05T06:52:36 | 2021-04-05T06:52:36 | 321,687,555 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,509 | py | # @pytest.mark.parametrize("参数名",列表数据)
# 参数名:作为测试用例的参数. 字符串格式,多个参数中间用逗号隔开。
# 列表数据:一组测试数据。list格式,多组数据用元组类型,
# list的每个元素都是一个元组,元组里的每个元素和按参数顺序一一对应。
# 可以添加ids参数指定用例说明(别名)
import pytest
import yaml
# def add_fun(a, b):
# return a + b + 10
# @pytest.mark.parametrize("a, b, expected", yaml.safe_load(open("data.yml"))["da... | [
"1044570046@qq.com"
] | 1044570046@qq.com |
2ecaa0902b36455da6e55c02523cefe6bcec5bfc | e5f4c22bfae93d3d96dea1b0ed8f3e4df373243f | /test.py | f3a74709481a1e1e55a6bdc81b7b3e3e0cf3f866 | [] | no_license | MrLokans/discover_flask | 5925a2ab07480398543d51e33c8be2cf23b2c36b | 63f847409dd67725bdef754cd0041f2647dabf4e | refs/heads/master | 2021-01-10T16:25:21.767911 | 2016-03-07T05:44:17 | 2016-03-07T05:44:17 | 52,816,186 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,919 | py | import unittest
from app import app
class AppTestCase(unittest.TestCase):
def setUp(self):
self.tester = app.test_client(self)
def login(self, username, password, follow_redirects=True):
return self.tester.post('/login',
data={'username': username,
... | [
"trikster1911@gmail.com"
] | trikster1911@gmail.com |
c0d562717f5f884fa6080b1eab26a32a8dc4d8f5 | aae4175584f1402696b22b6f695dcb53faf85d7c | /photo_organize/__init__.py | 855991094fc8753944177b001ea25e844c2163b1 | [] | no_license | rthardin/photo_manager | e9ad5432c7795ad2ebf5ff60077ed807ef232961 | 605e4d68d489aa619e0c74d10bbacc725fed0fbb | refs/heads/master | 2021-01-10T04:33:53.791792 | 2017-01-08T03:29:34 | 2017-01-08T03:29:34 | 50,002,509 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 24 | py | __author__ = 'ryan-mbp'
| [
"ryan.t.hardin@gmail.com"
] | ryan.t.hardin@gmail.com |
fa4239e0b5480d4e87dbed980b75e0c6b0c42548 | 07d29263b1b9bdc9f8bc72c3f3e762eeae57dd35 | /zuowenSTN/regression_code/eval.py | 2b242101c9142798bbc8b465e9cfba404f7c270c | [] | no_license | ZuowenWang0000/BachelorThesis | f5c4a24ef01b9420b0bbf2a20611b7388e068ca8 | a50030e0c94eba3972f789b29fee473da20fed5a | refs/heads/master | 2022-02-21T23:12:23.932460 | 2019-05-10T13:23:26 | 2019-05-10T13:23:26 | 169,987,128 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,306 | py | """
Evaluation of a given checkpoint in the standard and adversarial sense. Can be
called as an infinite loop going through the checkpoints in the model directory
as they appear and evaluating them. Accuracy and average loss are printed and
added as tensorboard summaries.
"""
from __future__ import absolute_import
fro... | [
"noreply@github.com"
] | ZuowenWang0000.noreply@github.com |
b11400aaf4d36bbcbd0823c03cc8949e54aa522d | 020449fb757ec43f348f80f6d3cec93cc58933ed | /copy_db_poc.py | 8481f1407f7a76f65cb5a43cd50b21e243ea0301 | [] | no_license | Lethgir/copy-db-poc | a1818ecd9bc8c09a5ac83112968e22c40af6f316 | 8c519be132508fd037ad038ed1ffab5106001216 | refs/heads/main | 2023-08-20T05:50:54.106776 | 2021-10-14T10:24:22 | 2021-10-14T10:24:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,899 | py | #!/usr/bin/env python3
import argparse
import copy
import sys
import traceback
from uuid import uuid4
from typing import cast
import sqlalchemy
from sqlalchemy import create_engine, select, func, event
from sqlalchemy import Table, Column, Integer, String, MetaData
TABLE_PREFIX = "dbin_"
DEFAULT_BATCH_SIZE = 1000
in... | [
"120501+charlax@users.noreply.github.com"
] | 120501+charlax@users.noreply.github.com |
d7804221cd2a32518fecd25e6afce317a715027d | 09ae2652bbb0bc184757739bab936c0e367085a5 | /crypto_cli/chiper/full_vigenere.py | 86022bc6ffd732853cb4ccca63b0cf1167c43c3f | [] | no_license | ridho9/crypto-cli | 1b6d989e7c1a61a165de1c1b665cd4e332854122 | 8e3b59a83586b911baf8a1995e0da1105e430047 | refs/heads/master | 2020-12-18T21:33:37.363725 | 2020-01-27T08:59:45 | 2020-01-27T08:59:45 | 235,106,683 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,148 | py | import click
from crypto_cli.util.char import lalpha_ord, is_int_alpha
class FullVigenereChiper:
def __init__(self, square, key):
self.square = square
self.key = key
def encode(self, plain: bytes) -> bytes:
result = []
key_idx = 0
key_len = len(self.key)
for c... | [
"p.ridho@yahoo.co.id"
] | p.ridho@yahoo.co.id |
a145346bc456c2281fad96365f8d9a5af1f4cd7d | 52b5773617a1b972a905de4d692540d26ff74926 | /.history/sets_20200609191149.py | 89a07ef2d3f4c49463319f9699998f9dd296f2fc | [] | no_license | MaryanneNjeri/pythonModules | 56f54bf098ae58ea069bf33f11ae94fa8eedcabc | f4e56b1e4dda2349267af634a46f6b9df6686020 | refs/heads/master | 2022-12-16T02:59:19.896129 | 2020-09-11T12:05:22 | 2020-09-11T12:05:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,000 | py | import json
def Strings(str):
# dictionary--> key value pairs
values = {}
newArray = []
keys = []
for i in str:
newArray.append(i.split(":"))
for j in range(0,len(newArray)):
if newArray[j][0] in values:
values[j][0] =
# if... | [
"mary.jereh@gmail.com"
] | mary.jereh@gmail.com |
61d8da39d048a90ac0ae92b41a27b470e2e61157 | c583812a57f993733a566bd64ec141654e52d098 | /srcpy/sim/correlators/corrCUDA.py | 7ee13584d732d1a07d0daf5ae5d27994b363a4e7 | [] | no_license | petrbojda/NavSet_unob | f1d542c7a8aba58113c67a65c26269c72f503c0f | 6d30876d5956b4c15dbc8e5093b18fe3194f7c59 | refs/heads/master | 2021-01-23T04:28:38.762219 | 2017-09-05T12:53:16 | 2017-09-05T12:53:16 | 92,927,644 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,956 | py |
import numpy as np
import accelerate.cuda.blas as blas
import accelerate.cuda.fft as ft
from numba import cuda
def corr_td_single (x1,x2):
c_12 = blas.dot(x1,x2)
return c_12
def best_grid_size(size, tpb):
bpg = np.ceil(np.array(size, dtype=np.float) / tpb).astype(np.int).tolist()
return tuple(bpg)
... | [
"petr.bojda@email.cz"
] | petr.bojda@email.cz |
7dcdce9e010882ff0ab3f5e4f31ec84cfbf17a7b | 6721094f2fc776faf22c997bafd409f0f65a3594 | /23.py | 2a0c382ac340ed6ca1e0957aa2f71274ec4afb5e | [] | no_license | shiro-sura/homework2 | 63968e8acf1ef65cd161cc36e7d853722cde4aec | 062b903b40c3fe3c186bc7b9deb21e90e413e880 | refs/heads/master | 2020-08-04T19:52:00.925671 | 2019-10-04T14:25:56 | 2019-10-04T14:25:56 | 212,260,164 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 74 | py | x=float(input("请输入摄氏度"))
f=x*33.8
print("华氏度:",f,"F")
| [
"209322813@qq.com"
] | 209322813@qq.com |
a23ae7933fd92b9c8ac89dc6d1231bca721bf4e4 | 017f8fe77d628e5cae29d63b2298c163a4c82d13 | /pymongo/pymongo4.py | f9afbc3c621b3bfc65cc55a267d7fd3e407cfcd7 | [
"MIT"
] | permissive | TimothyDJones/learn-python | 571744b1c8be34b65868cef5859d6a634a792efa | 687239572bee5e5c94bebb6b175b3fba4d47600e | refs/heads/master | 2023-01-03T05:24:27.597861 | 2020-11-02T20:28:15 | 2020-11-02T20:28:15 | 297,409,145 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,090 | py | import pymongo
myclient = pymongo.MongoClient("mongodb://localhost:27017/")
mydb = myclient["mydatabase"]
print(myclient.list_database_names())
dblist = myclient.list_database_names()
if "mydatabase" in dblist:
print("'mydatabase' found in MongoDB!")
# Create a collection ("table")
mycol = mydb["customer"]
colli... | [
"tdjones74021@yahoo.com"
] | tdjones74021@yahoo.com |
566300c87730df77107c54db2fe5c86457bae7eb | fbbd0e93effba9478cbfcd99b0795f2cfdc3e394 | /quizsite/account/migrations/0017_delete_customuser.py | dfe5261added4c56367badde5583599fd4e95184 | [] | no_license | Sk-Md-Afridi/DjangoProject | 6a514e9a038d9b28df464e8b3b00ee2446ef89c9 | 98a2fefac05599df9899c3b7695c5c372a650306 | refs/heads/master | 2023-06-17T09:38:48.883796 | 2021-07-19T19:23:18 | 2021-07-19T19:23:18 | 383,184,012 | 1 | 1 | null | 2021-07-13T18:03:24 | 2021-07-05T15:20:05 | null | UTF-8 | Python | false | false | 299 | py | # Generated by Django 3.1.3 on 2021-07-14 13:58
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('account', '0016_auto_20210714_1913'),
]
operations = [
migrations.DeleteModel(
name='CustomUser',
),
]
| [
"skmdafridi1@gmail.com"
] | skmdafridi1@gmail.com |
8a463bda0d0c60cd4f34f3e9d156d3254165acfc | ebfcae1c5ba2997b2ac4471d5bedc3f5daffcb31 | /repos/Flask-Large-Application-Example-master/tests/views/test_pypi_packages.py | 27394594cc76c8ccde073c14c83e1f2757b0f036 | [
"MIT"
] | permissive | babiato/flaskapp1 | 84de2d0b26a54f5820d3bbe97926782ad41e005c | 530beb9e3b8516e0e93960b99521c23a523ef546 | refs/heads/master | 2023-02-26T16:36:49.760632 | 2021-02-04T09:08:40 | 2021-02-04T09:08:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,239 | py | from flask import current_app
from flask.ext.celery import CELERY_LOCK
import pytest
from redis.exceptions import LockError
from pypi_portal.extensions import db, redis
from pypi_portal.models.pypi import Package
from pypi_portal.models.redis import POLL_SIMPLE_THROTTLE
from pypi_portal.tasks import pypi
class FakeD... | [
"jinxufang@tencent.com"
] | jinxufang@tencent.com |
dfdade890a56c19a323dbc2320418057e09976e0 | 7228a01927243ff5049e44bb405bdc74d9fca2a2 | /week-03/day-2/Projects/f38.py | 3b674c09b83905a76d75d00ba4017db07494f2f5 | [] | no_license | greenfox-velox/attilakrupl | 76a61d0b2d7c014b7068b5066bcfd797d0f77a99 | 2bd567c38eff62f8b44f1d88507394ae13d61fa3 | refs/heads/master | 2021-01-17T12:38:33.374452 | 2016-10-05T14:01:51 | 2016-10-05T14:01:51 | 58,042,849 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 184 | py | numbers = [7, 5, 8, -1, 2]
def own_min(nums):
a = nums[0]
for i in nums:
if i < a:
a = i
else:
pass
print (a)
own_min(numbers) | [
"krupl.attila@gmail.com"
] | krupl.attila@gmail.com |
6e242cc43e2c7d24c5cfd1f02e749621f9366a0e | 0bfb4208bdf7fcfd75311c777e25a3b639bf566d | /backend/code/iep/auth/models.py | fb6f856736cbe2fd1a25f1dc89baf52a17eff536 | [
"Apache-2.0"
] | permissive | socek/iep | ab7833f94af739abd19f569f28de84cdcc689e95 | 793e35ca5304eef7b7dacb5dd8d486622f497759 | refs/heads/master | 2020-05-16T13:48:12.252161 | 2019-12-03T08:28:05 | 2019-12-03T08:28:05 | 183,082,207 | 0 | 0 | Apache-2.0 | 2019-12-03T08:28:07 | 2019-04-23T19:24:49 | Python | UTF-8 | Python | false | false | 1,193 | py | from bcrypt import checkpw
from bcrypt import gensalt
from bcrypt import hashpw
from iep.application.model import Model
class User(Model):
def __init__(
self,
uid,
created_at=None,
updated_at=None,
name=None,
email=None,
is_admin=None,
password=None... | [
"msocek@gmail.com"
] | msocek@gmail.com |
bcd4424dd7009abacf5f297ef813f49979cc065d | d79f9ffc7f591e68ea8d21c77779067826d56e99 | /broj priloga u korpusu_digrami.py | 59c936816aa170a4f913b494c0b48e96857b5638 | [] | no_license | sarabarac/Racunarska-lingvistika | d71d85feb9ff689bdde76f7b141e9b47d77f1259 | 93bdc70f459401061124beb6b04ece10cddde723 | refs/heads/master | 2021-07-01T16:23:03.612244 | 2018-07-10T06:33:51 | 2018-07-10T06:33:51 | 95,882,954 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,566 | py | # -*- coding: utf-8 -*-
brojPriloga = 0
prilozi = ["ovde", "tamo", "tu", "desno", "negde"]
korpus = "Ovde mi je baš lepo. Džunglu ne volim. Ne bih volela da sam tamo. Moje mesto je tu. Tu se osećam kao da sam kod kuće. Stavila sam svoju šoljicu kafe desno, e baš tu."
tokeniziraniKorpus = korpus.split(" ")
for ... | [
"noreply@github.com"
] | sarabarac.noreply@github.com |
82a5c3789f9497439c17e5f06dbdcd28f55a29eb | 41b5734f0cbda8b16ff96538cda95ec3f4d92649 | /bin/add_video_tags.py | 8ffad81f71f1b40437c79ba734ac4244bd0b2181 | [
"Apache-2.0"
] | permissive | pkolachi/acl-anthology | e255b0d118a17fd6ad092718ecd576628b518682 | e6e71f88c9894f49deaf128e295bfd543669bafc | refs/heads/master | 2021-12-21T15:44:01.520790 | 2021-12-19T01:07:20 | 2021-12-19T01:07:20 | 196,833,109 | 0 | 0 | null | 2019-07-14T12:20:42 | 2019-07-14T12:20:42 | null | UTF-8 | Python | false | false | 3,357 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# Copyright 2020 Namratha Urs <namrathaurs@my.unt.edu>
#
# 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/... | [
"noreply@github.com"
] | pkolachi.noreply@github.com |
60c738119f59b161bc7c88e74ff2f6c9ae41ba36 | 504ec1cd9116713ee28e7a599554ce406812b529 | /TEXTBASEDGAME.py | e56d278f41affb281d19fc3370793e7ccb598f43 | [] | no_license | 2019osbjoh/adventure-game | ef0a38b648ee82f6ff79808b69c983a575dd79b4 | 88dc4e8da1dedf0e50c77a75fc34bc3cbda96553 | refs/heads/master | 2020-09-05T09:23:24.366961 | 2019-11-06T22:04:59 | 2019-11-06T22:04:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,385 | py | import random
import keyboard
import sys, os # Used to check operating system and clear the shell
# Prints out an array line by line
def printMap(j, MAP):
for i in MAP:
print(MAP[j][0])
j = j + 1
def waitForKey():
keyboard.wait('esc')
# Clears Screen (should work on Windows and OSX)
def clearScreen(operati... | [
"john.osborne151@gmail.com"
] | john.osborne151@gmail.com |
5628a03d0676455161dcd1c5b40a6e2fb286b378 | fcd85b221c4bcbd03a65e6a48100909dd89e1622 | /math_functions/triangle_func.py | c7cde2a144f15efbfe31259a51184e7d27ea9904 | [] | no_license | FireHo57/Python_Euler | f1d171b9279bc1428ef13e57e2a4b48babc405f1 | a31c2faee2ef42f054debd2ab31d2b019360d618 | refs/heads/master | 2021-09-14T17:37:16.813217 | 2018-05-16T19:49:02 | 2018-05-16T19:49:02 | 104,935,443 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 386 | py | def get_nth_triangle(limit):
return sum( range(1,limit) )
def get_n_triangles(limit):
triangles=[]
total=0
for x in range(1, limit+1):
total+=x
triangles.append(total)
return triangles
if __name__=="__main__":
print('Nth triangle number: {}'.format(get_nth_triangle(10)))
... | [
"charlie_haddock@hotmail.co.uk"
] | charlie_haddock@hotmail.co.uk |
f77ffc69cb16459c8138b3e8578323ac411365e2 | f07a42f652f46106dee4749277d41c302e2b7406 | /Data Set/bug-fixing-4/5644d97cc5014e18b14799feeb9b354d528a6489-<test_invalid_interfaces>-bug.py | 88bcd68511e3ab151bad7e95439f0d409610e661 | [] | no_license | wsgan001/PyFPattern | e0fe06341cc5d51b3ad0fe29b84098d140ed54d1 | cc347e32745f99c0cd95e79a18ddacc4574d7faa | refs/heads/main | 2023-08-25T23:48:26.112133 | 2021-10-23T14:11:22 | 2021-10-23T14:11:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 303 | py | def test_invalid_interfaces(self):
event = self.create_sample_event(platform='invalid-interfaces')
self.browser.get('/{}/{}/issues/{}/'.format(self.org.slug, self.project.slug, event.group.id))
self.browser.wait_until('.entries')
self.browser.snapshot('issue details invalid interfaces') | [
"dg1732004@smail.nju.edu.cn"
] | dg1732004@smail.nju.edu.cn |
cc2f26de6d45f12fbb7681f41bb1b6e37790fcb8 | e68a19d1c4e0febcf2d5e9fb8663c38b5648b592 | /trace/fault_tolerance/trace_parser_mulit.py | f536612ded76a7db89868fa25ebd03b28363c430 | [] | no_license | nsdi2017-ddn/ddn | 60261bb3964708f865412b428793508e262b4806 | 46e7ae06097c79f87e96c4d220a7669a70b07f63 | refs/heads/master | 2021-05-03T19:16:55.022536 | 2016-12-01T16:18:31 | 2016-12-01T16:18:31 | 69,271,348 | 18 | 7 | null | null | null | null | UTF-8 | Python | false | false | 6,033 | py | #!/usr/bin/python
# parse the trace and test
#
# Author: Shijie Sun
# Email: septimus145@gmail.com
# Sept, 2016
import time
import threading
import urllib
import urllib2
import Queue
import sys
import random
from itertools import izip
TIMEOUT = 3 # timeout restriction for requests
UPDATE_DELAY = 2 # delay ti... | [
"junchenjiang@Junchens-MacBook-Pro-2.local"
] | junchenjiang@Junchens-MacBook-Pro-2.local |
209a7ce101cdd36f27ca12065507ae893c043ec7 | 23f8e15047e2303bbc0ef6d7db93286f629f139a | /src/Legacy/ruscorpora_tagging/semantics.py | 674fbe46dee2c13c15db5c8ef260d64b38f7c5d0 | [] | no_license | russian-national-corpus/preprocessing | 988a0616f3082ae3eeb63f573635f4888c4e5eb1 | 4b6a5a9f822d0d7a1d16baaf72795f888add5f23 | refs/heads/master | 2021-06-13T00:14:44.104132 | 2019-10-03T20:38:34 | 2019-10-03T20:38:34 | 165,403,637 | 2 | 0 | null | 2021-03-26T13:45:33 | 2019-01-12T15:32:47 | Python | UTF-8 | Python | false | false | 11,295 | py | # -*- Encoding: utf-8 -*-
# All rights belong to Non-commercial Partnership "Russian National Corpus"
# http://ruscorpora.ru
import sys
import os
import xml.sax
import codecs
import re
import time
from modules import common
import global_trash
ignored_columns = ["ex", "dc"]
feature_token_re = re.compile("^[a-z0-9_... | [
"vyshkant@gmail.com"
] | vyshkant@gmail.com |
25b7e0b318af75980c433cbe77c201b9aa7f1f9e | dbffb070dca3931f2321b3ff4782f5e0ab012cd3 | /client.py | 616275b9cd989c2f4cb5e53bb9ffb25002659932 | [] | no_license | maryam-542/Project-Module-1 | fb63b0130301734c8ef6c81337e0c9eb602c1bd4 | 93ce823aa59b091c18c9f73d388f54502b4dde28 | refs/heads/master | 2016-09-13T23:16:51.804065 | 2016-05-26T17:30:54 | 2016-05-26T17:30:54 | 59,131,380 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 382 | py | from socket import *
from threading import Thread
import sys
HOST = 'localhost'
PORT = 8888
ADDR = (HOST, PORT)
Sock = socket(AF_INET, SOCK_STREAM)
Sock.connect(ADDR)
def recv():
while True:
data = Sock.recv(1024)
if not data: sys.exit(0)
print data
Thread(target=recv).start()
while True:... | [
"bsef14m542@pucit.edu.pk"
] | bsef14m542@pucit.edu.pk |
e084317ce402363aaaa6cec53d9f2e5eb9ef4784 | 6c33729791ce32fc034c93e3108aa36b04d0d356 | /menu/migrations/0005_abooutusmodel.py | b502c5f6ef4a1c5139331db27426b1da75eaf394 | [] | no_license | Kaimkilwa/routefinder_website | d4e30a8bcffcc2b36bf7599d60d8c1a31fda4e0a | 3b122e7f3ed86a6b300e0337771d817da24148db | refs/heads/master | 2020-09-16T09:04:39.672707 | 2019-11-24T09:48:17 | 2019-11-24T09:48:17 | 223,720,951 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,012 | py | # Generated by Django 2.2.6 on 2019-10-25 16:56
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('menu', '0004_categories_description'),
]
operations = [
migrations.CreateModel(
name='AbooutUsModel',
fields=[
... | [
"55236785+Kaimkilwa@users.noreply.github.com"
] | 55236785+Kaimkilwa@users.noreply.github.com |
462c27d14b829bf7308de41e30694fe80d248358 | c22f3b1b0ecfd28101be280ecbad037fe9f2196a | /boagent/utils/MyGO.py | d85930d671de6e47a1bc58772a7d95162ff08774 | [] | no_license | 5atouristspot/Botasky | ab3625da4088afeca159e9eddaae6263e99064ab | 996b1e83cf6f3d2eb6ab726d2d3ee252faed91a7 | refs/heads/master | 2020-03-16T15:08:58.475593 | 2019-04-10T02:55:36 | 2019-04-10T02:55:36 | 132,729,895 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 6,852 | py | #! /usr/bin/python2.7
# -*- coding: utf-8 -*-
"""
Created on 2017-4-05
@module: MyGO
@used: ssh to server
"""
import paramiko
from MyLOG import MyLog
from botasky.utils.MyFILE import project_abdir, recursiveSearchFile
logConfig = recursiveSearchFile(project_abdir, '*logConfig.ini')[0]
mylog = MyL... | [
"1204207658@qq.com"
] | 1204207658@qq.com |
a921fe8b1f0c63d2290abf91aefc289205f29ead | 6024cf204c8e14553dca0e37f699aa08d963404a | /checkout/models.py | 754be2799fec355e3103da68d5a800213d40f0bc | [] | no_license | Code-Institute-Submissions/Nourish-and-Lift | 5f2c141e604f8d87fcb07bd7f61766456535bab3 | 8998b75b18c0f697cc6caff7d586bf5fb06ce519 | refs/heads/main | 2023-07-16T04:49:39.718323 | 2021-08-29T08:33:53 | 2021-08-29T08:33:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,623 | py | import uuid
from django.db import models
from django.db.models import Sum
from django.conf import settings
from django_countries.fields import CountryField
from products.models import Product
from profiles.models import UserProfile
class Order(models.Model):
order_number = models.CharField(max_length=32, null=... | [
"hdhillon478@gmail.com"
] | hdhillon478@gmail.com |
bb4d3c4ffba8b3fdd9dae18528199a1e9560a1a0 | 43ede7b8fb546c00804c0ef94501f6e48ba170d6 | /Cursos Python/Python 3 - Solyd/Orientacao_a_objeto.py | e902f0d109aa9feef7f8a68a9651bc74a65cd1bb | [] | no_license | bopopescu/Python-13 | db407d17252473e78e705e563cfee4dbd316c6b9 | c8bef500f2d3e4a63d850f96dfa219eff2ecebda | refs/heads/master | 2022-11-22T16:24:08.490879 | 2020-06-11T14:22:24 | 2020-06-11T14:22:24 | 281,830,055 | 0 | 0 | null | 2020-07-23T02:26:31 | 2020-07-23T02:26:30 | null | UTF-8 | Python | false | false | 1,339 | py | class Cliente:
def __init__(self, nome, cpf, idade):
self.__nome = nome
self.__cpf = cpf
self.__idade = idade
def dados_cliente(self):
return {'nome': self.__nome,
'cpf': self.__cpf,
'idade': self.__idade}
class Conta(Cliente):
def __init__(... | [
"ofc.erickson@gmail.com"
] | ofc.erickson@gmail.com |
62a702a14533fbce06d8c0f429a40f79d961bd69 | 86e46e40112015487bf4eef9990e68574c2f8cb1 | /DLSecurity/test_SR.py | c6ae20ea6d9a5e987b305622c3993c0ed1d56c63 | [] | no_license | AkshayGadre/M2019 | a938318a57968db814677cb957e116b188077c23 | 7aabc44562629d1c12ad43eab25e58a0994d1763 | refs/heads/master | 2020-05-30T14:07:50.881587 | 2019-06-01T22:52:00 | 2019-06-01T22:52:00 | 189,782,292 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 680 | py | data = []
labels = []
data_dim = 2048
mem_units = 21
sampleL = (data_dim/2)*mem_units
num_classes = get_data(data, labels, mem_units, sampleL)
# load json and create model
json_file = open('model.json', 'r')
loaded_model_json = json_file.read()
json_file.close()
loaded_model = model_from_json(loaded_model_json)... | [
"noreply@github.com"
] | AkshayGadre.noreply@github.com |
ccf9a734c56a27aad1c7b63e96282803ea84b5a4 | f07a42f652f46106dee4749277d41c302e2b7406 | /Data Set/bug-fixing-5/f1dbf6292b80b7cc67661707e7f1d8b5b0a06eb5-<check_params>-bug.py | b748d6d0116f380fc5635eaf4ef57ebc08f34ef9 | [] | no_license | wsgan001/PyFPattern | e0fe06341cc5d51b3ad0fe29b84098d140ed54d1 | cc347e32745f99c0cd95e79a18ddacc4574d7faa | refs/heads/main | 2023-08-25T23:48:26.112133 | 2021-10-23T14:11:22 | 2021-10-23T14:11:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 761 | py | def check_params(self):
'Check all input params'
if (not self.key_id.isdigit()):
self.module.fail_json(msg='Error: key_id is not digit.')
if ((int(self.key_id) < 1) or (int(self.key_id) > 4294967295)):
self.module.fail_json(msg='Error: The length of key_id is between 1 and 4294967295.')
... | [
"dg1732004@smail.nju.edu.cn"
] | dg1732004@smail.nju.edu.cn |
3140c1a44243603fd2dff8d0323632226ab72742 | 6d1c82eee36aa2e6efc8d702e70b176982e6124b | /maple/adapters/http.py | 58bb0276be35f468bfe784b327cb9416cc68d5a0 | [
"MIT"
] | permissive | akand074/maplepy | bd42e194df531831ab297c230db74b9706a210db | 7c99570fb107b099cfe917b1fec0a9c4d975a2db | refs/heads/master | 2021-05-07T18:15:38.213665 | 2018-02-11T21:25:02 | 2018-02-11T21:25:02 | 108,761,905 | 2 | 0 | MIT | 2018-02-11T21:25:03 | 2017-10-29T18:55:34 | Python | UTF-8 | Python | false | false | 346 | py |
class HttpAdapter(object):
def schema(self, schema):
raise NotImplementedError()
def query(self, query_string, params={}):
raise NotImplementedError()
def mutation(self, mutate_string, params={}):
raise NotImplementedError()
def execute(self, query, variables={}):
ra... | [
"noreply@github.com"
] | akand074.noreply@github.com |
dfdfdc73b69afa83125300340f0252cfe3100d38 | a127d0feb3bcf4f2581f385bb24f2b789c771c9c | /10syo/95_2.py | 0a1ea7e35fd38d9a0daad78a923622656306fdf5 | [] | no_license | NgoVanDau/nlp100knock | 01383e4cc5a1470508744668103b9ea1a238b892 | 3ef63c0d2dfb55c0e6a31aced645f284325a98a5 | refs/heads/master | 2023-03-22T13:19:23.932429 | 2018-08-05T05:27:11 | 2018-08-05T05:27:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 994 | py | fname_input = 'combined_out.tab'
class Data:
def __init__(self, human_score, my_score):
self.human_score = human_score
self.my_score = my_score
def __repr__(self):
return 'Data%s' % repr(self.__dict__)
# データ配列作成
with open(fname_input) as data_file:
def read_data():
for lin... | [
"kota.k.1132.pda@gmail.com"
] | kota.k.1132.pda@gmail.com |
796965104f9a8b405aea58339305c0e917d2c247 | 7aae3051a7d08a280f7adc55b4b984bc48c87db3 | /vehicle/admins/vehicle_model_admin.py | ba26d4ec5f9adf2698da8711bc9fa8bd44e5b5a4 | [] | no_license | ohahlev/ahlev-django-vehicle | d087375e3b49cda9253a776f79e4531bbf0a686d | 51895c200b40be7a298a4054ba2d8945df6a84d0 | refs/heads/master | 2020-11-30T07:00:12.441028 | 2020-01-21T01:25:48 | 2020-01-21T01:25:48 | 230,340,642 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,253 | py | from django.utils.html import format_html
from django.contrib import admin
from imagekit import ImageSpec
from imagekit.admin import AdminThumbnail
from imagekit.processors import ResizeToFill
from imagekit.cachefiles import ImageCacheFile
from ..models.vehicle_model import VehicleModel
from .widgets import AdminSmalle... | [
"ohahlev@gmail.com"
] | ohahlev@gmail.com |
804e51dfde50f67856b882d399fdc55f06b50df1 | ef064aed21874b178aaac515a741c078aa0aaf53 | /tests/__init__.py | 4e8bb2e23aa1c148756a7e0133be24c53b528d63 | [
"MIT"
] | permissive | fotonauts/fwissr-python | 0649d970fdf807b74753a512eb75f1fa6cd4ddad | 4314aa53ca45b4534cd312f6343a88596b4416d4 | refs/heads/master | 2021-06-06T06:38:14.332173 | 2013-12-05T09:28:18 | 2013-12-05T09:28:18 | 13,952,600 | 0 | 0 | MIT | 2021-03-25T21:42:00 | 2013-10-29T10:20:28 | Python | UTF-8 | Python | false | false | 147 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import sys
if sys.version_info < (2, 7):
import unittest2 as unittest
else:
import unittest
| [
"oct@fotonauts.com"
] | oct@fotonauts.com |
7d19f4be3e65d55621b576d2306fd4eb58e60381 | 015ce35e6344d1726173594ae509dfc1ca6f856d | /2-basics/Study basics/loops.py | 7ce93a431733e32e961c8476c4ae0d1bd2085bee | [] | no_license | ayman-elkassas/Python-Notebooks | 4af80df75c15a6ac3049450b3920d500fef0e581 | 26a8265f458c40ac22965d55722f32a650851683 | refs/heads/master | 2023-04-03T19:12:17.707673 | 2021-04-10T21:32:37 | 2021-04-10T21:32:37 | 356,699,690 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 120 | py | count=5
while count>99:
print("yes")
count-=1
else:
print("if")
for letter in "python":
print(letter)
| [
"aymanelkassas88@gmail.com"
] | aymanelkassas88@gmail.com |
6408769016157138b15691bb9158e5695f16d725 | 58bbaa2cd1af8dbd2f862708a0da7f4b3e7246b8 | /Yerma/pymongo/createcol.py | 530039b05bae261d060c4323f7544b3b916aee17 | [] | no_license | Yermito/PPEND | 7a087243fa578fa0b50541da160a11d2b73dcbc3 | 7c59fec6a3aaaab5c022d46fcc97b201f4bbf84c | refs/heads/master | 2022-05-28T17:36:16.310690 | 2020-05-01T17:45:33 | 2020-05-01T17:45:33 | 260,516,396 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 189 | py | import pymongo
myclient = pymongo.MongoClient('localhost:27017')
mydatabase = myclient["university"]
mycollection = mydatabase["fit"]
print(mydatabase.list_collection_names())
| [
"noreply@github.com"
] | Yermito.noreply@github.com |
19ef56453f855c29a72eaa6c8c52e2ca967e6a36 | f8e8e365c9cf58b61d72655bc2340baeaed5baff | /Leetcode/Python Solutions/Binary Search/ValidPerfectSquare.py | c4e8a70a8beb4c70db11315cbe222321332ff181 | [
"MIT"
] | permissive | Mostofa-Najmus-Sakib/Applied-Algorithm | 39a69f6b9ed113efe4a420d19cad79e0aa317637 | bc656fd655617407856e0ce45b68585fa81c5035 | refs/heads/master | 2023-08-31T19:54:34.242559 | 2021-11-05T03:43:35 | 2021-11-05T03:43:35 | 412,263,430 | 0 | 0 | MIT | 2021-09-30T23:45:29 | 2021-09-30T23:45:25 | null | UTF-8 | Python | false | false | 898 | py | """
LeetCode Problem 367. Valid Perfect Square
Link: https://leetcode.com/problems/valid-perfect-square/
Written by: Mostofa Adib Shakib
Language: Python
Observation:
1) Number less than 2 will always form perfect squares so return True.
2) The number will always be in the first half of the array. Hence, we can disca... | [
"adibshakib@gmail.com"
] | adibshakib@gmail.com |
bad677f019fc4d7992e5229966f842dcccd1035b | 028884b062038e1b948f879a7c62664b5aeccdfc | /python_ZED_VA/positional_tracking_to_CSVfile.py | 37597a1c0ffe49c64e6c30d2cab72f82c59289ad | [] | no_license | VirginiaPan/BeachMapping | d3728437297f9aedcf0b60fe247fb10c03bcd242 | 9a46859593ccdca7ea59ff0602eb39cbb109769c | refs/heads/master | 2020-06-08T04:06:29.625552 | 2019-07-11T18:00:13 | 2019-07-11T18:00:13 | 193,154,434 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,688 | py |
import pyzed.sl as sl
def main():
# Create a Camera object
zed = sl.Camera()
# Create a InitParameters object and set configuration parameters
init_params = sl.InitParameters()
init_params.camera_resolution = sl.RESOLUTION.RESOLUTION_HD720 # Use HD720 video mode (default fps: 60)
# Use a rig... | [
"vgp4@duke.edu"
] | vgp4@duke.edu |
8606168f73fe5c873daa5e66d25d6624afb096ad | e5266a20d3e610cf3fcfb75610d309ab386e1282 | /AppFPBajo/migrations/0003_filtro_butterworth.py | 7a2bde7406f4877a57297925679f9b5803fc10fa | [] | no_license | slopezrap/FiltrosUPNA | 5105736b990aeff29f70661f756a10f43b253535 | 206d8a35f8c13b4a9255b51030d9c6478571cadd | refs/heads/master | 2020-03-16T00:52:15.875277 | 2018-07-05T16:49:01 | 2018-07-05T16:49:01 | 130,229,172 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,015 | py | # Generated by Django 2.0.4 on 2018-05-31 10:04
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('AppFPBajo', '0002_auto_20180531_1039'),
]
operations = [
migrations.CreateModel(
name='Filtro_Butterworth',
fields=[... | [
"Sergio.LopezRapado@EURS.EY.NET"
] | Sergio.LopezRapado@EURS.EY.NET |
2ab1dae99d3aab2a0201b1a098c67d8853ed4631 | 28a681ed25b767620f0a21580ddd4e057ccfed98 | /gate_camera.py | d5cfac49697c354726f074ca03b4e4e6b53d200c | [
"MIT"
] | permissive | sid1689/parking_lot_gate_final | 761cb4d473876e92a6ff9527263f4a7249d0d306 | d097c811aee706f23f1f1c83d130aa8e6654c7a8 | refs/heads/main | 2023-08-01T20:56:59.795965 | 2021-10-02T17:01:52 | 2021-10-02T17:01:52 | 412,719,427 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 583 | py | from parking_camera import ParkingCamera
class GateCamera(ParkingCamera):
"""
Represents a camera at a gate.
"""
def __init__(self, camera_address):
super().__init__(camera_address)
@property
def _gate_open(self):
return not self._can_take_picture
@_gate_open.setter
def _gate_open(self, value):
self... | [
"sid_artaalmeida@hotmail.com"
] | sid_artaalmeida@hotmail.com |
0064553534fc3e9fda5bdb33418d7c997c5bf69e | 4198532417feb21d023d7ba525a74555186b3e89 | /trailscraper/collection_utils.py | 6a4329c59d41b866968966a11c7760b32a2d22e9 | [
"Apache-2.0"
] | permissive | flosell/trailscraper | 375207753c668c78e166381e7e086d1adb950482 | b9edb1483ca8e9ce6ac8540a63334c37abd6242d | refs/heads/master | 2023-09-04T07:27:52.593647 | 2023-09-04T01:34:25 | 2023-09-04T01:40:20 | 112,079,872 | 726 | 32 | Apache-2.0 | 2023-09-11T01:57:25 | 2017-11-26T12:15:52 | Python | UTF-8 | Python | false | false | 305 | py | """Functions to help with collections"""
import collections
def consume(iterator):
"""Consume the whole iterator to trigger side effects; does not return anything"""
# Inspired by this: https://docs.python.org/3/library/itertools.html#itertools-recipes
collections.deque(iterator, maxlen=0)
| [
"florian.sellmayr@gmail.com"
] | florian.sellmayr@gmail.com |
220a336a1a4b55acfe67c77f5f2cae1589985e1e | 830225393fad2b53d1592a87973074a9c5cced02 | /build/rbcar_common/rbcar_description/catkin_generated/pkg.installspace.context.pc.py | 729bbf05e9ea062319bef7ae2bfa82f0ecf55f75 | [] | no_license | gtziafas/rbcar_workspace | 24e69c30a62b919d78ca88d04dedff25209893b1 | c64e2c4a19df800b28826a62133d8fd0da3674c0 | refs/heads/master | 2021-06-09T15:53:53.751753 | 2021-05-31T12:29:27 | 2021-05-31T12:29:27 | 131,979,435 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 378 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "".split(';') if "" != "" else []
PROJECT_CATKIN_DEPENDS = "".replace(';', ' ')
PKG_CONFIG_LIBRARIES_WITH_PREFIX = "".split(';') if "" != "" else []
PROJECT_NAME = "rbcar_description"
PROJECT_SPACE_DIR ... | [
"noreply@github.com"
] | gtziafas.noreply@github.com |
1d97790987ac8d1d3091fc2896c5f47f49471e9b | e24da5964925d5b32f76b0aa4d671018b4a2c5be | /cride/circles/models/memberships.py | 467e5178d49feb9277b9f8b4780d46490ada2345 | [
"MIT"
] | permissive | valot3/Cride-API | 9b50db986cd27b42b22679b2d1a806653b7e4348 | a9e201942e6eecd479f575733e93ff73e6df573d | refs/heads/master | 2023-08-20T12:53:27.220691 | 2021-09-14T23:34:15 | 2021-09-14T23:34:15 | 406,551,309 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,495 | py | """Membership model."""
#Django
from django.db import models
#Project
from cride.utils.models import CRideModel
class Membership(CRideModel):
"""Membership model.
A membership model is the table that holds the relationship between a user and a circle.
"""
user = models.ForeignKey('users.User'... | [
"valen.blanco.2004@hotmail.com"
] | valen.blanco.2004@hotmail.com |
02d24060c8e2ae54ffa980ef62fec59464614b83 | da45d1ca420ee93a4c40d2be4e6a62c59925c72c | /python/test/robotics/robots/test_aizek_robot.py | 762a62c43066111c1b4efc3c47792ee03f79d31f | [
"MIT"
] | permissive | asydorchuk/robotics | dd2fe8cd7f593c842f467f67d4fc597202a3926b | 678fb7e879326380c5bd9795d81beb21efe4d30c | refs/heads/master | 2021-01-20T02:19:28.741221 | 2015-06-02T22:14:05 | 2015-06-02T22:14:05 | 12,576,225 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,809 | py | import math
import mock
import unittest
from robotics.robots.aizek_robot import AizekRobot
class TestAizekRobot(unittest.TestCase):
ROBOT_WHEEL_RADIUS = 0.025
ROBOT_WHEEL_DISTANCE = 0.1
def setUp(self):
self.lmotor = mock.Mock()
self.rmotor = mock.Mock()
self.wencoder = mock.Mock... | [
"sydorchuk.andriy@gmail.com"
] | sydorchuk.andriy@gmail.com |
b25b89b0209466c2429a890c6abb637fb33ab2bb | 5c90661aedf5f830b672ad979c781c3a9f693e9f | /image/sample3.py | b91308ef7d15c24bcbfaf948dfd18a2e5d835135 | [] | no_license | Sylphy0052/PyGame_Sample | b3312ba0c731d46c002fc03e90e5612be03b7396 | 0cf971556b950e1b50014b473ebf8fbcae72c57a | refs/heads/master | 2020-04-14T19:33:12.073567 | 2019-03-17T08:49:27 | 2019-03-17T08:49:27 | 164,062,093 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 952 | py | import pygame
from pygame.locals import *
import sys
SCREEN_SIZE = (640, 480)
def load_image(filename, colorkey=None):
try:
image = pygame.image.load(filename)
except (pygame.error, message):
print("Cannot load image: {}".format(filename))
raise (SystemExit, message)
image = image.... | [
"ma17099@shibaura-it.ac.jp"
] | ma17099@shibaura-it.ac.jp |
f19df9ac7447b0432efdfecf90c9cd14f076163d | b5502ea9580e882a1c530f6e5914ce090e2d00a6 | /experiment/CASSANDRA/cassandra/pylib/cqlshlib/cqlhandling.py | a0917b3b4600c267134b92c852710b626c279689 | [
"Apache-2.0",
"BSD-3-Clause",
"LicenseRef-scancode-public-domain"
] | permissive | Lingzhi-Ouyang/Almost-Strong-Consistency-Cassandra | a3fb54a8c35805a6810532719d7a8da99998f997 | 2b9aa8e78e134fc8811ea6caff3daca1f4a92936 | refs/heads/master | 2021-07-09T01:13:04.424482 | 2020-11-03T03:12:13 | 2020-11-03T03:12:13 | 205,116,322 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 13,310 | py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may ... | [
"lingzhi.ouyang@outlook.com"
] | lingzhi.ouyang@outlook.com |
ed0466956305c5f5e6955a737d43b2039c8f0fc5 | 2a54e8d6ed124c64abb9e075cc5524bb859ba0fa | /.history/4-functional-programming/7-list-comprehension_20200422222427.py | 81d606e197ec10031073a3db9b3879a25cb59bc1 | [] | no_license | CaptainStorm21/Python-Foundation | 01b5fbaf7a913506518cf22e0339dd948e65cea1 | a385adeda74f43dd7fb2d99d326b0be23db25024 | refs/heads/master | 2021-05-23T01:29:18.885239 | 2020-04-23T19:18:06 | 2020-04-23T19:18:06 | 253,171,611 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 346 | py | #list, set, dicitonary
my_list = []
for char in 'HELLO':
my_list.append(char)
print(my_list)
dict_list = [char for char in 'good morning']
print(dict_list)
num_list = [num for num in range (0, 100)]
print(num_list)
print("divide by 3 with no remainder")
num_list3 = [num for num in range (0, 100) if(nu... | [
"tikana4@yahoo.com"
] | tikana4@yahoo.com |
cbe0bee2021ee9e00108c613fe4a09506fe21021 | 5bad7ccd38b4ad78ed8ef09d84ca060b1686208e | /test/test_nutrient.py | a4fb8db63120a4015d342621eec2b3c5c16076ab | [
"Apache-2.0"
] | permissive | HallaApp/python-client | 6862ffbd7bdf3a0c2b8b255beb7f2a3f7004db0d | 326d796952cb99951f46bdf29c06798405dd78ce | refs/heads/master | 2023-03-22T19:16:02.251439 | 2021-03-17T21:49:18 | 2021-03-17T21:49:18 | 348,852,707 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,405 | py | # coding: utf-8
"""
Halla I/O
<p><strong>Getting Started:</strong></p> <ol type=\"1\"> <li><p>Obtain Credentials (Please Contact Halla to Obtain Credentials):</p> <ol type=\"a\"> <li><p><strong>'serviceAccount'</strong>: Add your Service Account in the <strong>header</strong> for all API requests to the Halla... | [
"ospgospg@gmail.com"
] | ospgospg@gmail.com |
760838f1d87ce31ef4b3b11e4015e744328df7c6 | f265a8d47a3b9ff21dfbd3a14405f8021c51c692 | /DocumentFiltering/naivebayes.py | 3136d8e7a8636886480bca4462d4293be4e8d2e5 | [] | no_license | fengxianyun/ji_ti_zhi_hui | a0f7ca5c04daa6d605d7e785e8d07de63e46e73a | c4548ec106e398bdb574c181a19e6afba6450258 | refs/heads/master | 2021-03-12T20:05:13.633604 | 2015-09-30T01:57:45 | 2015-09-30T01:57:45 | 42,382,038 | 0 | 0 | null | null | null | null | GB18030 | Python | false | false | 1,197 | py | #coding:gbk
'''
Created on 2015年9月2日
@author: fxy
'''
#朴素贝叶斯分类器
import docclass
class naivebayes(docclass.classifier):
def docprob(self,item,category):
features=self.getfeatures(item)
#将所有特征的概率相乘
p=1.0
for feature in features:
p*=self.weightedProb(feature, categ... | [
"937002565@qq.com"
] | 937002565@qq.com |
c75f2a6a359a2b27092edb7aed9fe3b1166980a2 | 47e3f13ce4e42fc157db6580154acd3e9a7169d7 | /activejob/activejob/jobs/migrations/0001_initial.py | 87ebbdc0cf0ff645d03df89b5ce118469f0786c9 | [] | no_license | dreadkopp/activejob_bootstrap | d266c15565f1371cd9c271de093c9570e0511231 | 8bcdb73f1f95265a06a8e9c751113ccf0cce67eb | refs/heads/master | 2020-12-30T13:40:19.351153 | 2017-08-22T15:48:28 | 2017-08-22T15:48:28 | 91,242,018 | 0 | 1 | null | 2017-08-22T15:48:29 | 2017-05-14T12:30:55 | Python | UTF-8 | Python | false | false | 2,801 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.1 on 2017-05-18 18:30
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.Crea... | [
"dm@xanadu.dd.activ-job.intra"
] | dm@xanadu.dd.activ-job.intra |
0b9a8f51986a637727d2c4861dd3a0598f490b2f | 1522508ace6f366e17f6df3f36b09cc4042757c7 | /src/main/webapp/python/faceAverage.py | febc5a42aa20f6c56cfb7659fad4bbea1c18d101 | [] | no_license | webstorage119/AverageFaceServer2.0 | 022a9d6faf9487e463d6d0a47fc31b50c0a0afb3 | 6e9a985a665edae92b98af1a5c2ca3b60ad33852 | refs/heads/master | 2021-06-07T21:11:16.326668 | 2016-09-27T14:15:32 | 2016-09-27T14:15:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,185 | py | #!/usr/bin/env python
# coding=utf-8
# Copyright (c) 2016 Satya Mallick <spmallick@learnopencv.com>
# All rights reserved. No warranty, explicit or implicit, provided.
import os
import sys
import cv2
import dlib
import numpy as np
import math
from skimage import io
import time
path = sys.argv[1]
# Read points fro... | [
"simoncherry@sina.com"
] | simoncherry@sina.com |
baa4949892d605c13b56159e9f3b000b491bc3e4 | 7ba34d8a6eaed1ccc4efb043060a4b8415c47b1d | /netdev/vendors/alcatel/alcatel_aos.py | cb2db396a24d53fc11c48975244eebad4226c885 | [
"Apache-2.0"
] | permissive | ixjx/netdev | 8b9da831dd5e45855ee65ce0552c0039ecff285b | cd30593c233c92e301cdaca97798ec71668ab78d | refs/heads/master | 2023-07-04T08:04:58.243607 | 2021-07-28T09:32:11 | 2021-07-28T09:32:11 | 295,272,213 | 0 | 0 | Apache-2.0 | 2020-09-14T01:27:07 | 2020-09-14T01:27:06 | null | UTF-8 | Python | false | false | 1,242 | py | from netdev.vendors.base import BaseDevice
from netdev.logger import logger
import asyncio
import re
class AlcatelAOS(BaseDevice):
"""Class for working with Alcatel AOS"""
async def _read_until_prompt_or_pattern(self, pattern="", re_flags=0):
"""Read until either self.base_pattern or pattern is detec... | [
"ericorain@hotmail.com"
] | ericorain@hotmail.com |
4ce16e2eaacf769eca66aff6d2b31bc0a779050b | 749fa5a348def37a142ba15b3665ff1525c50321 | /image_reseize.py | 3950f4384ad5affa810deba01159b28e57484366 | [] | no_license | rahmakaichi1/Object_Detection | 163bd5ed19fa6e8ae9704d093c216734142c80a8 | aecd6346cf5baf94e1ecac0c4df42d1c5a254d4e | refs/heads/master | 2022-10-31T04:25:18.713807 | 2019-08-23T12:19:23 | 2019-08-23T12:19:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 619 | py |
directory ="/content/Tensorflow_object_detector/workspace/training_OD/images/jpg"
for file_name in os.listdir(directory):
print("Processing %s" % file_name)
image = Image.open(os.path.join(directory, file_name))
new_dimensions = (224, 224)
output = image.resize(new_dimensions, Image.ANTIALIAS)
folder = ... | [
"rahma.akaichi@ensi-uma.tn"
] | rahma.akaichi@ensi-uma.tn |
6ff08466a1384f6af041270b3190c0fffa2b4e7f | f0801ad1a4e4097a7026cca8767e88fe74036ea7 | /main/migrations/backup/0003_auto_20170218_0804.py | a79bd7966d057587a348b1ba3e8ac2458e8413f0 | [] | no_license | meadhikari/django-crm | 4ca446e020f07c50286a4d6debb5ecbf275abb39 | 944319ed0ead8aa1911b8ba2d66b390411972f35 | refs/heads/master | 2021-01-19T13:42:17.014964 | 2017-02-18T19:32:39 | 2017-02-18T19:32:41 | 82,411,094 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,849 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2017-02-18 08:04
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('main', '0002_auto_20170218_0748'),
]
operations = [
migrations.AddField(
... | [
"salik.adhikari@gmail.com"
] | salik.adhikari@gmail.com |
80e6680172774c8afdd21f6cabff10d713655524 | bbed39c1514e1f8014aa68a3ac59233c726de48a | /cnn_v2.py | 3ef86cdf73ee0f955ddb5a250259df46e48fc17e | [] | no_license | GodzSom/few-shot-segmentation | 37a04ebfe95f04c75e107c1586a4795763b144fa | 7f8e404a1da337e1bccee6cc2f278c998c7b27f7 | refs/heads/master | 2023-04-10T12:29:47.584839 | 2021-04-19T08:47:50 | 2021-04-19T08:47:50 | 281,317,436 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,128 | py | import torch, os, torchvision
import torch.nn.functional as F
from torch.utils.data import TensorDataset
from PIL import Image
import numpy as np
from tqdm import tqdm
import matplotlib.pyplot as plt
from torch.utils.tensorboard import SummaryWriter
from stylegan import z_sample
from nethook import InstrumentedModel
fr... | [
"noreply@github.com"
] | GodzSom.noreply@github.com |
280d6693da1ac1395f21a1816d99169a91c8a6d6 | f653dcf96b79a0b43650a1fb00146c8089c46e02 | /23.py | a2c9eb2011fe8e74e9f8d01133962b8f94d7174c | [] | no_license | nishtha-rokde/DSA | 7877e72bc562902555df33d00f67f6f69d1bcbfa | 38741c121ef9a6731a53b0023327e44bc8e3e3f3 | refs/heads/main | 2023-01-01T13:43:13.544150 | 2020-10-24T17:05:31 | 2020-10-24T17:05:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 464 | py | def arr_sum(arr,sum):
arr.sort()
start = 0
end = len(arr) - 1
list = []
count = 0
while start < end:
if (arr[start] + arr[end]) < sum:
start +=1
elif (arr[start] + arr[end]) > sum:
end -= 1
elif (arr[start] + arr[end]) == sum:
list.appe... | [
"nishtharokde@gmail.com"
] | nishtharokde@gmail.com |
bdd9bde6ac4d525d029a7f01e0a25d1437f68c1d | a5e50ee7c94feae560ac169064f9af67197071c7 | /Chatroom/chat/routing.py | 2d68790ba0f1bfadb80d827cbca5a93e2e12a469 | [] | no_license | AmaanNaikwadi/Public-Chatroom1 | 0683bb314459f89e03ab426dbc46ec402c49b183 | 1d44de92923be2c6715cec5b5d1c9a821d9928f8 | refs/heads/master | 2023-06-22T08:30:41.843079 | 2021-07-24T18:06:06 | 2021-07-24T18:06:06 | 383,660,103 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 410 | py | from django.urls import re_path
from . import consumers
from channels.routing import ProtocolTypeRouter, URLRouter
from channels.auth import AuthMiddlewareStack
websocket_urlpatterns = [
re_path(r'ws/chat/', consumers.ChatRoomConsumer.as_asgi()),
re_path(r'ws/(?P<group_name>\w+)/$', consumers.GroupChatConsumer... | [
"amaannaikwadi@gmail.com"
] | amaannaikwadi@gmail.com |
8b13f1478a12075ef8ff3736fa85e9679d78bfa6 | 85594f78a0bb3d790e08f3805add72d9bb2a6ab8 | /Codes/keyboard_teleop.py | 7b7ac8fc989140c87ad4a79e2e8fde86c02987c5 | [] | no_license | PatilVrush/TAL-BRABO-ROS-CONTROL | b5c8e89210a6eb7cbb746744e11a06cadedf4377 | 9e8a573c52d9b4454ace9b47d4d2af9501146b73 | refs/heads/master | 2020-09-04T01:53:28.765498 | 2019-12-13T23:24:22 | 2019-12-13T23:24:22 | 219,633,050 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,004 | py | #!/usr/bin/env python
# license removed for brevity
import rospy
import serial
import struct
import math
import time
import pygame, time
from pygame.locals import *
pygame.init()
screen = pygame.display.set_mode((640, 480))
pygame.display.set_caption('Pygame Keyboard Test')
pygame.mouse.set_visible(0)
pygame.key.set_... | [
"noreply@github.com"
] | PatilVrush.noreply@github.com |
0daf65ce49a311fdb34c04109af046ccda6c1f28 | 9a50b0a97c5caf12bcfc7fff8cee0b72326e2fc2 | /worksheet_12a.py | 70813069bc0a715121589f75df5b471280599008 | [] | no_license | seannydududu/schoolproject | e3e88dd695f7a2633201f6542ec0eab7c05508d5 | 4388e63a52fd452b01ae90e39990ad486c8419f4 | refs/heads/main | 2023-05-26T21:38:52.296951 | 2021-06-08T05:33:40 | 2021-06-08T05:33:40 | 374,891,284 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,490 | py | #Question 1
def qn1():
name = input("Enter your name:")
index = input("Enter your index number:")
class_name = input("Enter your class:")
print("Hi, I am {} from class {} and my index number is {}.\nNice to meet you.".format(name,class_name,index))
#Question3
def qn3():
counter = 0
total = 0
... | [
"progamer12323432@gmail.com"
] | progamer12323432@gmail.com |
b2b5ff0bd1ab1d7aed0a02913cc5eba5962ed9e5 | af4edde514d5e4b1823ebd77b4df3d18c4165047 | /parsl/tests/test_sites/test_CC-IN2P3/cc_in2p3.py | 568b9db60c01cf60e4caf43c2efa02f3f8b1e5f4 | [
"Apache-2.0"
] | permissive | kylechard/parsl | 5f48d51f06631248b7885cee165c1b11a5881cff | 1080cc17e0c42f877cab18d1452bb6a2bc4c40b7 | refs/heads/master | 2020-12-30T09:26:39.786962 | 2018-03-29T18:08:30 | 2018-03-29T18:08:30 | 100,407,921 | 0 | 0 | null | 2018-03-29T01:27:15 | 2017-08-15T18:40:47 | Python | UTF-8 | Python | false | false | 22 | py | ../configs/cc_in2p3.py | [
"ybabuji@cca009.in2p3.fr"
] | ybabuji@cca009.in2p3.fr |
2cd12e80087b56b034e20a935df8bd724ed19e13 | b277ca06cb0c33635e31928a3643c85f67623af4 | /buildenv/lib/python3.5/site-packages/sphinx/ext/mathjax.py | 7fb3b17ad61bc87381b6d2036ece930c89f04dce | [
"LicenseRef-scancode-public-domain",
"CC-BY-4.0"
] | permissive | angrycaptain19/container-camp | a3e5c9b9f130776c842032148fcdba094bc0da8f | b0b14fe30aee310cb3775c1491d5b6304173936b | refs/heads/master | 2023-03-12T18:04:13.700249 | 2021-03-01T23:02:30 | 2021-03-01T23:02:30 | 343,728,529 | 0 | 0 | NOASSERTION | 2021-03-02T10:30:35 | 2021-03-02T10:07:11 | null | UTF-8 | Python | false | false | 3,258 | py | # -*- coding: utf-8 -*-
"""
sphinx.ext.mathjax
~~~~~~~~~~~~~~~~~~
Allow `MathJax <http://mathjax.org/>`_ to be used to display math in
Sphinx's HTML writer -- requires the MathJax JavaScript library on your
webserver/computer.
:copyright: Copyright 2007-2018 by the Sphinx team, see AUTHORS.
... | [
"mmsprinkle@gmail.com"
] | mmsprinkle@gmail.com |
c252ebbcecd170aa13eef5bf53383465b4098786 | b88c7f892b4ec97a1bfecc1ca15b4014f3d9257e | /nasbench_asr/training/tf/datasets/text_encoder.py | 98262f2021b219d8e35726114ba0fa17da044327 | [
"Apache-2.0"
] | permissive | akhauriyash/nb-asr | 66b0d1dcf5c769763bb2945c130e17756c523164 | 8889f37081ebbde253da1589d13fe3bc9ccd9ef8 | refs/heads/main | 2023-06-23T05:20:41.390868 | 2021-07-22T20:50:51 | 2021-07-22T20:50:51 | 388,593,693 | 0 | 0 | Apache-2.0 | 2021-07-22T20:50:18 | 2021-07-22T20:50:17 | null | UTF-8 | Python | false | false | 1,829 | py | # pylint: skip-file
from nasbench_asr.quiet_tensorflow import tensorflow as tf
from .phoneme_encoder import PhonemeEncoder
def get_utf8_valid_sentence(sentence):
return sentence.numpy()
def get_corpus_generator(ds):
for _, sentence in ds:
yield get_utf8_valid_sentence(sentence)
def get_encoded_... | [
"l.dudziak@samsung.com"
] | l.dudziak@samsung.com |
fb93ec9ad172b75595a7d1dbfe69925d43ebec3b | 6b4346ab5d8e3cc5d1857ecb5fbc7160b9002566 | /backend/src/logbug.py | f4c49d4d8c705191ec2e8af6e99c4c45cc4cdedb | [] | no_license | theballkyo/SDN-handmade | eb582eb0aa3e23e40107dfea8d9e30e03bf4ded5 | bba04cf24220cef378a458b87b62af8fe09c2411 | refs/heads/master | 2021-01-22T13:22:28.830473 | 2018-01-28T02:58:16 | 2018-01-28T02:58:16 | 100,669,008 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,721 | py | # import pprint
import logging
import logging.handlers
import struct
# import readline
from datetime import datetime
try:
import readline
except ImportError:
import pyreadline as readline
class LogBugHandler(logging.Handler):
def __init__(self):
logging.Handler.__init__(self)
def emit(self,... | [
"theball_kyo@hotmail.com"
] | theball_kyo@hotmail.com |
3ea14480eea3e779545c922160ad1ab5bcf348fd | aa0c7a133f4aae575e526a9e0dd392626f217fff | /build_bipartites_train.py | 6c5ce23ccc8d6fc9ddc2e0ff94b300c7b181d1cb | [
"Apache-2.0"
] | permissive | jodsche/BachPropagate | 526472f8649c33d7f2a61f1ed102dfbdd4b4efbb | 0bb0054d182c954bad6f002189285991fa62daa2 | refs/heads/master | 2023-05-15T06:10:39.227227 | 2018-07-04T15:22:06 | 2018-07-04T15:22:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,591 | py | import itertools as it
import sys
import json
import re
import collections
import os
from utils import write_to_pickle
path = 'data/raw'
bipartite_path = 'data/bipartite_challenge'
# Generate BiPartites and save as Objects.
filenames = os.listdir(path)
count = 0
AllDataPidTitleBipartite = {}
AllDataPidTrackListBip... | [
"t.iofciu@mytaxi.com"
] | t.iofciu@mytaxi.com |
49dc43df0df8a4ad400a6dcaf0937a7ba4713c34 | 3c1c9d89ef6a2324fbd439d88a79fa45fca58b43 | /VAEs/refer-multi-vaes/main_fonts_betavae.py | bfc3927b375871430156711dd905a94337d09044 | [
"MIT",
"Python-2.0"
] | permissive | charlesxin97/fonts_interpolation | 746e4802c229267a246a0163016cfe395cc2e2bc | e4b9cea37778c4fb370a2849cbe31fe058920681 | refs/heads/master | 2022-12-15T20:08:46.347162 | 2020-09-21T22:04:41 | 2020-09-21T22:04:41 | 297,469,614 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,305 | py | import argparse
import logging
import sys
import os
from configparser import ConfigParser
from torch import optim
from disvae import init_specific_model, Trainer, Evaluator
from disvae.utils.modelIO import save_model, load_model, load_metadata
from disvae.models.losses import LOSSES, RECON_DIST, get_loss_f
from disva... | [
"845992541@qq.com"
] | 845992541@qq.com |
ba97794c6bdae848bc13d24f3bde25199dd1f016 | 3b65a1502d0e2847079f2fcd8e81b644e752072b | /venv/Lib/site-packages/doc/conf.py | c7beb206c93e200ae770294205bc0d686fc021d4 | [] | no_license | triplew86-cl/ontology_demo | 109436558e76a731b2cf6741f6e25cf9b4ca83ee | e780052c79e717d1259b6849d964d80680bf7261 | refs/heads/master | 2022-10-21T03:46:32.838250 | 2019-03-21T05:41:30 | 2019-03-21T05:41:30 | 176,867,270 | 0 | 1 | null | 2022-10-17T22:49:19 | 2019-03-21T04:02:19 | Python | UTF-8 | Python | false | false | 7,608 | py | # -*- coding: utf-8 -*-
#
# azure-storage-python documentation build configuration file, created by
# sphinx-quickstart on Fri Jun 27 15:42:45 2014.
#
# This file is execfile()d with the current directory set to its
# containing dir.
#
# Note that not all possible configuration values are present in this
# autogenerate... | [
"wenwenwang@crimsonlogic.com"
] | wenwenwang@crimsonlogic.com |
08f5bd7c3e007ee5cc2828e16065a3548eafdfe4 | a0194ea7a08913847c2cfc3a9c5262816b188c5d | /TVGL/exampleTVGL.py | 0c825edbcd9c70961845ea16edd6a7497c5e9f28 | [] | no_license | aboomer07/HighDimensional_TVGL | 39f93c832c22589c807e535903d0ab58deda9bea | 1db3ab011fb8a61bb861c8663ca37f74067cb9e6 | refs/heads/master | 2023-08-16T00:28:02.529881 | 2021-10-08T22:14:12 | 2021-10-08T22:14:12 | 411,791,968 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 367 | py | from TVGL import *
import numpy as np
Cov = np.array([[5, 1], [1, 7]])
data = np.random.multivariate_normal(np.zeros(2), Cov, 50)
data = np.genfromtxt('PaperCode/Datasets/finance.csv', delimiter=',')
data = data[0:30,0:10]
lamb = 2.5
beta = 12
lengthOfSlice = 10
thetaSet = TVGL(data, lengthOfSlice, lamb, beta, index... | [
"aboomer07@gmail.com"
] | aboomer07@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.