blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 281 | content_id stringlengths 40 40 | detected_licenses listlengths 0 57 | license_type stringclasses 2
values | repo_name stringlengths 6 116 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 313
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 18.2k 668M ⌀ | star_events_count int64 0 102k | fork_events_count int64 0 38.2k | gha_license_id stringclasses 17
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 107
values | src_encoding stringclasses 20
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 4 6.02M | extension stringclasses 78
values | content stringlengths 2 6.02M | authors listlengths 1 1 | author stringlengths 0 175 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
c80c3163743251fc4dffe91d06ffd8cc59782e83 | f3221f253fc1d81fa2a3158d4effc0bb6ca7cbef | /analytics/Foodanalysis.py | 19d2f5a1394a2a16853eb0bf778bf08a0eed8429 | [
"MIT"
] | permissive | LucSkyvvalker/DAV33-KI2018 | 3688cb57c618e24a880e616699c17574718d299f | ebf107e4036811c87d37a31f42489eec6acd313f | refs/heads/master | 2020-03-19T06:22:27.365261 | 2018-06-28T20:43:53 | 2018-06-28T20:43:53 | 136,013,766 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,742 | py | import pandas as pd
data = pd.read_csv("dataset.csv")
import math
import numpy as np
import matplotlib.pyplot as plt
#Print alle landen en zoek naar NaN
countries = []
def printCountries():
counter = 0
for country in data.adm_name: #voor 4000 zit er nan bij????
if country not in countries:
... | [
"d.c.hamerslag@gmail.com"
] | d.c.hamerslag@gmail.com |
53baf2ce6537dae2e7836d7e6d29ed0f61f48ba0 | b670f178a2cfaa76bfb009001d5acdc023de1ace | /comments.py | aae6629a27ee41d1ea20bec9a016b86b4760cec2 | [] | no_license | Vindicus/travelogcommunity | 69ab105a4ff68c44e2ce3f8211008e4928619af5 | d269f2f46d5da4c033a6629d46153e59f823166d | refs/heads/master | 2021-01-17T20:33:15.774202 | 2017-04-09T19:10:27 | 2017-04-09T19:10:27 | 63,030,134 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 352 | py | from google.appengine.ext import db
class CommentPost(db.Model):
'''Stores multiple user comments'''
comment = db.TextProperty(required=True)
user_id = db.StringProperty(required=True)
by_user_name = db.StringProperty(required=True)
by_post = db.StringProperty(required=True)
last_created = db.... | [
"pyang1016@gmail.com"
] | pyang1016@gmail.com |
d6089ece5a331a3f95b88e6bb87bca5905e94793 | e22e29441d0dc3f9502ed0a267537790b1f96d83 | /raspTest.py | 9f317de82fa282184a38a5746b54eee018a7b76e | [] | no_license | mikok42/raspberry | 96ca3eead5fafdd9ab6a88e56390a42550129e58 | 9d34a84c43e28258d6ae5c327306cb5c2a17ecd8 | refs/heads/main | 2023-05-13T19:06:58.454494 | 2021-06-07T10:28:44 | 2021-06-07T10:28:44 | 352,417,922 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 147 | py | from gpiozero import LED
from time import sleep
ledGreen = LED(17)
while True:
ledGreen.on()
sleep(2)
ledGreen.off()
| [
"noreply@github.com"
] | noreply@github.com |
b411d6639d424c0df207e821d89d7cb31c47e2b7 | 37e3177dbfbfe40538cba5bf126fc854ec2af4e3 | /main_train_scratch.py | a55ffb869e68a2d56219b37d7e978c6f9833603d | [] | no_license | prakharg24/spatialnet | ec120ed63e293100001f1a01e9a04c59d26f3c13 | ec2a5e54fc57e7b7640cd214fb00068fb2fc56f2 | refs/heads/master | 2022-12-11T14:21:45.763044 | 2020-09-14T12:26:39 | 2020-09-14T12:26:39 | 288,200,076 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,926 | py | # Copyright (c) Facebook, Inc. and its affiliates.
# All rights reserved.
#
# This source code is licensed under the license found in the
# LICENSE file in the root directory of this source tree.
#
import os
import sys
import uuid
from pathlib import Path
from imnet_train_scratch import TrainerConfig, ClusterConfig, Tr... | [
"prakhargannu@gmail.com"
] | prakhargannu@gmail.com |
e5650352529320fb1a14581e31b4252e2e3f18ec | 1e802e5947d46476f6ae9748875471978f3eeba9 | /Comparativa Python/Ejercicio1-Array.py | c4b26215e21b238f17511bb19d9b29a63fe31ed4 | [] | no_license | erjimrio/Curso-CPP | c2b6cc6812f07970a44631ae0057ed30ebb01793 | c0d88a3e43bf2bde8fbc1deadba9047f1e5ec197 | refs/heads/master | 2022-11-12T06:52:36.374303 | 2020-07-01T02:15:03 | 2020-07-01T02:15:03 | 265,691,666 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 242 | py | # 1. Escribe un programa que defina un vector de números y calcule la suma de
# sus elementos
numeros = [1, 2, 3, 4, 5]
sumatoria = 0
n = len(numeros)
for i in range(n):
sumatoria += numeros[i]
print('La sumatoria es: ', sumatoria)
| [
"th.jimenez.erick@gmail.com"
] | th.jimenez.erick@gmail.com |
71f98b5c6f7a6e09c70a177a86d013d601ea80b4 | 8f1137592d670ce134821106f736e231b03ead87 | /mmdet/models/backbones/__init__.py | bed1d549993cacc78bc9d11bcb4b03efddd934ac | [
"MIT"
] | permissive | mousecpn/DMC-Domain-Generalization-for-Underwater-Object-Detection | fa426c834fa2a5cd2fe98c50dd4dfeda64fcdc79 | 133797cfb7553557fb81a37e3c99c88154a13765 | refs/heads/master | 2023-05-23T16:49:34.795363 | 2023-02-13T02:23:31 | 2023-02-13T02:23:31 | 501,597,077 | 16 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,070 | py | # Copyright (c) OpenMMLab. All rights reserved.
from .csp_darknet import CSPDarknet
from .darknet import Darknet
from .detectors_resnet import DetectoRS_ResNet
from .detectors_resnext import DetectoRS_ResNeXt
from .hourglass import HourglassNet
from .hrnet import HRNet
from .mobilenet_v2 import MobileNetV2
from .pvt im... | [
"609731730@qq.com"
] | 609731730@qq.com |
16d8100524a88213ea1f5bc75c171af5c8285170 | bde88ab372edf4fafaf1da80798c5fd9451d69eb | /Homework 5/Solution/samiullah_kashif_part-b.py | a1a416480e9ff73472ca42bc52c2e5ddf9ed444b | [] | no_license | Samulk/Foundations-of-Data-Management | 927992096476b10558a37b14e04d1c25f2da9f6c | 78561c7db7bd9fb3431088d69ad61656dda45e04 | refs/heads/master | 2021-01-13T10:27:27.190137 | 2016-12-18T02:14:22 | 2016-12-18T02:14:22 | 76,758,121 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 909 | py | import sys
from pyspark import SparkContext
from operator import add
sc1 = SparkContext(appName="inf551")
lines1 = sc1.textFile('person.txt')
people_in_los_angeles = lines1.map(lambda x: x.split(',')).filter(lambda x: "los angeles" in x[2])
final_answer1 = people_in_los_angeles.map(lambda x: x[0]).map(lambda y: (y,... | [
"samiullah.kashif@gmail.com"
] | samiullah.kashif@gmail.com |
38819c42e72505077e33cc451ccc4db54d23a02e | d07a701c271f5ab22657eba28bd4deae09bf5282 | /021419/run.py | 6b96694554bb1757a0b02a8885bc888f86776e61 | [] | no_license | jondreich/CS390 | bc255e9b003b9a8f27d8e513ba67336666595780 | 5cc834fc6fa9efc47bf9780e21dfe80834258892 | refs/heads/master | 2020-04-27T12:54:46.017366 | 2019-03-07T13:28:48 | 2019-03-07T13:30:53 | 174,348,889 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 490 | py | import numpy as np
import cv2
kernel_sharpening = np.array([[-1,-1,-1], [-1, 9.1,-1], [-1,-1,-1]])
cap0 = cv2.VideoCapture(0)
#cap0.set(3, 160)
#cap0.set(4, 160)
while(True):
ret, frame = cap0.read()
gray = cv2.cvtColor(frame, cv2.COLOR_BGR2GRAY)
sharp = cv2.filter2D(gray, -1, kernel_sharpening)
edge... | [
"jondreich@gmail.com"
] | jondreich@gmail.com |
9eb0eefa8a96b1ade59c85a7d02aab823056e1af | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/119/usersdata/239/27344/submittedfiles/al1.py | 6c815196c1dc7bc1a3f761f112f9ee81f7fa36b9 | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 298 | py | # -*- coding: utf-8 -*-
print("Programa de conversão de temperatura: °C -> °F")#Nome de apresentação do aplicativo
print("")
C = float(input("Digite a temperatura em °C:"))#Declarando a entrada
F = ((9*C)+160)/5#Processamento
print("O valor em °F é: %.2f"%F)#Linha para apresentar a saída
| [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
2009e68446ff47577af913c6d5c713536141102d | 6f478c4e2f36bcee5f7a3335477bb143f7c73277 | /journeys/apps.py | af33a41fd1be74847fdc26ba4691de96682791d1 | [] | no_license | romanof-zz/trjn | 279b59e3cf669bc9a80f7f2e9e2b242e46246618 | c7434cbeb080141fa0fd3d00f6603e01224de39d | refs/heads/master | 2022-12-14T17:49:43.559323 | 2019-03-08T23:07:02 | 2019-03-08T23:07:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 156 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.apps import AppConfig
class JourneysConfig(AppConfig):
name = 'journeys'
| [
"romanovs@amazon.com"
] | romanovs@amazon.com |
baa75e68dcebaf6cf33bf7e5a1d7afcc5712992d | 3dde7ed023f2fb7b4ad3996894e82a72794565ad | /src/vlab/wsgi.py | 9b12854ff0223a07d96b0480e52b79f93f7371e4 | [] | no_license | harshit37/vlab | 9fc038ca24757ba402949c592153c1e51010fa75 | 7e400dd7089cb9512bd01ddb7b07e1882a14809f | refs/heads/main | 2023-05-01T19:44:22.973221 | 2021-05-14T18:44:40 | 2021-05-14T18:44:40 | 366,010,794 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 401 | py | """
WSGI config for vlab 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/3.0/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJ... | [
"root@Dell-PC.localdomain"
] | root@Dell-PC.localdomain |
df33dbddfe5f025d12da4aa78811d329e641f749 | fc9f8c57c8b272a020c08dcc5d89c4dc5d99b51a | /tests/app/preheat_default_kernel_env_test.py | 031327112084014dd27575ba77853f4c7c2b2fe9 | [
"BSD-3-Clause"
] | permissive | azjps/voila | 3d78e5a9f4223e5393acfecb004aca4c1d44798f | 7090eb3e30c0c4aa25c2b7d5d2d45e8de1333b3b | refs/heads/master | 2023-01-10T13:34:07.621985 | 2022-12-13T09:21:10 | 2022-12-13T09:21:10 | 191,795,906 | 0 | 0 | NOASSERTION | 2019-06-13T16:15:39 | 2019-06-13T16:15:39 | null | UTF-8 | Python | false | false | 816 | py | import asyncio
import os
import pytest
@pytest.fixture()
def voila_args_extra():
return ['--VoilaKernelManager.default_env_variables={"FOO": "BAR"}']
@pytest.fixture
def preheat_mode():
return True
@pytest.fixture
def voila_notebook(notebook_directory):
return os.path.join(notebook_directory, 'prehea... | [
"noreply@github.com"
] | noreply@github.com |
d0f753d2a8be20ef8fd60993a5117e1ad9ed3bfe | 1d928c3f90d4a0a9a3919a804597aa0a4aab19a3 | /python/zulip/2016/12/forms.py | b2be52e7bd7ffa58c1133a0a90f5faa3a8bbd5a4 | [] | no_license | rosoareslv/SED99 | d8b2ff5811e7f0ffc59be066a5a0349a92cbb845 | a062c118f12b93172e31e8ca115ce3f871b64461 | refs/heads/main | 2023-02-22T21:59:02.703005 | 2021-01-28T19:40:51 | 2021-01-28T19:40:51 | 306,497,459 | 1 | 1 | null | 2020-11-24T20:56:18 | 2020-10-23T01:18:07 | null | UTF-8 | Python | false | false | 9,035 | py | from __future__ import absolute_import
from django import forms
from django.conf import settings
from django.contrib.auth.forms import SetPasswordForm, AuthenticationForm, \
PasswordResetForm
from django.core.exceptions import ValidationError
from django.core.urlresolvers import reverse
from django.db.models.query... | [
"rodrigosoaresilva@gmail.com"
] | rodrigosoaresilva@gmail.com |
830d8c59bf47b1048d8b1d700b51cb5640443319 | 821aa06f828a2e93575bf1608ce8ec843a0f7f0f | /funGreeting_edb.py | b9ffdaffcd2092008783f22300a0f31c695fef0d | [] | no_license | ebakan/Intro-to-Computer-Programming | 7d5fdfff9c7fe0af03e0fdaa3ecdefff152250dc | 563485e53e5955296c50bce07987d49655002244 | refs/heads/master | 2016-09-06T17:40:36.771560 | 2012-03-14T02:30:14 | 2012-03-14T02:30:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 630 | py | #funasg1
#ebakan
class funGreet():
def __init__(self):
self.displayHeader()
self.displayGreeting(raw_input("What is your name?"), raw_input("What school are you from?"))
def displayHeader(self):
print("Welcome to the Function Greeter Program!\nCoded by Eric Bakan")
def displa... | [
"eric@ebakan.com"
] | eric@ebakan.com |
4efc0a904ac7c35d38dba7b810801ea1f7677b41 | 61a1b8f20c0f7649c29d117039e495e189d487e9 | /core/migrations/0002_persona.py | 129895a378b03a4757c60308cc26da12571ba9a6 | [] | no_license | eld13g0/Proyecto4 | be8b48d4992139aeb07333b3c00a5f0a6039dc1a | fd8b2aeae730e763fb159b0cb32302440e76aa77 | refs/heads/main | 2023-06-12T08:50:05.843386 | 2021-07-09T02:25:18 | 2021-07-09T02:25:18 | 384,275,240 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 628 | py | # Generated by Django 3.1.2 on 2021-06-18 16:07
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('core', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='Persona',
fields=[
... | [
"noreply@github.com"
] | noreply@github.com |
f7f03f9ab067b900edb1140a80ef05cc10d8b9a3 | d5b36e1cb82e89e96212c3851e938aafca77d564 | /home/migrations/0001_initial.py | 2d19d57ec5f618162694b8499a9abcc2869584c3 | [] | no_license | Take413/TMH_proj | ca30cc4d7675ad685be9c99f7c2b6514fab3ff20 | 41aec30176c2bc7cb371c5b071d045427faee010 | refs/heads/master | 2022-04-15T10:28:21.974426 | 2020-04-14T09:41:24 | 2020-04-14T09:41:24 | 255,382,392 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,832 | py | <<<<<<< HEAD
# Generated by Django 2.2.3 on 2020-04-12 13:32
=======
# Generated by Django 2.1.5 on 2020-04-13 11:39
>>>>>>> b0cfd62566f3807f99e8db9398a4c59c88900782
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
... | [
"2431069g@student.gla.ac.uk"
] | 2431069g@student.gla.ac.uk |
604e82a8fb21fcffb76f0cbe7b7c8f835f798804 | 46595ed0e3943d30a149c3599f11f8e2e604f968 | /ver1_0/openassembly/pirate_consensus/views.py | 104bd6746eb55fa6ab42cf854c4cda2209afa18e | [] | no_license | W3SS/Open-Assembly | 7242f823c33849883168d1963c8dcb6901cb76c0 | e9679ff5e7ae9881fa5781d763288ed2f40b014d | refs/heads/master | 2021-05-08T15:34:32.943969 | 2012-12-11T20:37:32 | 2012-12-11T20:37:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,869 | py | # Create your views here.
from django.http import HttpResponse
import simplejson
import datetime
from pirate_consensus.models import ConfirmRankedVote, RankedVote, Consensus
def set_ranked_vote(request):
if not request.user.is_authenticated() or not request.user.is_active:
return HttpResponse(simplejson.d... | [
"fragro@gmail.com"
] | fragro@gmail.com |
15a5ee2f021f98c73d4991fdcb38c52403b9d3b6 | b547fe288bdaebe229fd89cf517fb73b219e06a7 | /reporting_project/urls.py | c5a750b12bd3146496fae0b998140a404e87c141 | [] | no_license | JHM-git/report_dashboard | 0c9a1e812a13aa5218d6d28ef99d9faeb7b8a1f2 | 4795713edb3def47d644b144d25d6d7aae0bc1c7 | refs/heads/main | 2023-01-30T00:17:47.694041 | 2020-12-09T17:31:09 | 2020-12-09T17:31:09 | 319,941,140 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 810 | py | """reporting_project URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.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')
C... | [
"heikki.makela@gmail.com"
] | heikki.makela@gmail.com |
147dad446bccacfb0bb5b91786201bf7e62b269e | b6573404e1b312c5c2b6d6c7b698e31e870cb2d3 | /Merge-Arrays.py | 931ae1fab183b230659860d22e6f487d5ede4975 | [] | no_license | NishaGoyal-1/dsa | 2d8ddf13e4b6df04a5c81be5aa2da7b5f00b8c48 | 2d3c17d4e4bce47732e238efff407e730a2be049 | refs/heads/master | 2022-09-05T17:04:15.737003 | 2020-05-30T12:03:03 | 2020-05-30T12:03:03 | 262,239,876 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,344 | py | def mergeArrays(arr1, arr2, n1, n2):
arr3 =[None] * (n1 + n2)
i = 0
j = 0
k = 0
#Traverse both array
while i < n1 and j < n2:
#Check if current element of first array is smaller than current element of second array.
#If yes, store first array element and increment fir... | [
"noreply@github.com"
] | noreply@github.com |
2593bdebb2bad49ae10e0cbba39532f8cabb3802 | a146840274b4c686ff9fef2159a428f4615fcec7 | /apps/departamentos/views.py | 96d3f8ae45ace03304c9eca62cdf9796af464721 | [] | no_license | diego-peresr13/gestao_rh2 | 70c2b62280b8166b3a323ee3ee0af4de85444bc5 | 3fdc8e3ef70115d7b19829145cab3193aca402a6 | refs/heads/master | 2020-06-12T12:11:29.105837 | 2019-08-08T02:45:32 | 2019-08-08T02:45:32 | 194,295,016 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,133 | py | from django.contrib.auth.mixins import LoginRequiredMixin
from django.urls import reverse_lazy, reverse
from django.views.generic import ListView, DetailView
from django.views.generic.edit import CreateView, DeleteView, UpdateView
from . import models
class DepartamentoListView(LoginRequiredMixin, ListView):
conte... | [
"diego_peresr13@hotmail.com"
] | diego_peresr13@hotmail.com |
f18e2900ad229eb69539225ff1271712780b26b1 | d3efc82dfa61fb82e47c82d52c838b38b076084c | /Autocase_Result/Quote18/HQ_18_042.py | 4520798521b4e456949b24bbd5c72a4af4a40a7b | [] | no_license | nantongzyg/xtp_test | 58ce9f328f62a3ea5904e6ed907a169ef2df9258 | ca9ab5cee03d7a2f457a95fb0f4762013caa5f9f | refs/heads/master | 2022-11-30T08:57:45.345460 | 2020-07-30T01:43:30 | 2020-07-30T01:43:30 | 280,388,441 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,258 | py | #!/usr/bin/python
# -*- encoding: utf-8 -*-
import time
import sys
sys.path.append("/home/yhl2/workspace/xtp_test/xtp/api")
from xtp_test_case import *
sys.path.append("/home/yhl2/workspace/xtp_test/service")
from log import *
class HQ_18_042(xtp_test_case):
def subMarketData(self, Api, stk_info, case_name, rs_ex... | [
"418033945@qq.com"
] | 418033945@qq.com |
aa49d86c34cb6af174c81aed810cf64c87dfa51a | 5b1cd15a172e5a458f60506c76c8a303656f6a4c | /test/quantization/test_workflow_module.py | 5e0b3e2db6d66e8d8540246746bd4ef2e7dce193 | [
"BSD-2-Clause",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"Apache-2.0"
] | permissive | georgeSkoumas/pytorch | 8350b446968a3dc6ed0eccacdffafae60bc1d17b | d39cb84f1fffbb9a1b909be7b203e673c046cca1 | refs/heads/master | 2022-12-01T21:53:49.847675 | 2020-08-13T12:11:44 | 2020-08-13T12:14:21 | 287,285,967 | 1 | 0 | NOASSERTION | 2020-08-13T13:21:15 | 2020-08-13T13:21:15 | null | UTF-8 | Python | false | false | 69,044 | py | # Torch
import torch
from torch.quantization import (
MinMaxObserver,
PerChannelMinMaxObserver,
MovingAverageMinMaxObserver,
MovingAveragePerChannelMinMaxObserver,
MinMaxDynamicQuantObserver,
HistogramObserver,
RecordingObserver,
FakeQuantize,
default_debug_qconfig,
default_obser... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
b650ce40f2448c5bb65139c22519be4c58cbe7dc | 2af9c17cf29a9bba3f3e714c861e8f89ee5fc488 | /python code/HR33_itertools_product.py | f9633579a94bd1807b00e7a86ee8e8966bd4a1e5 | [] | no_license | Binay28/Binay-s_Code | 9df3315bf9433d62a3b2228ea3f87be93917e5b3 | 7e05c39a753fab79a4518119d41953827dba10c9 | refs/heads/master | 2022-11-18T16:00:19.325948 | 2020-07-16T12:16:38 | 2020-07-16T12:16:38 | 198,006,791 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 182 | py | from itertools import product
A=list(map(int,input().split()))
B=list(map(int,input().split()))
print(*product(A,B))
#product(A, B) returns the same as ((x,y) for x in A for y in B)
| [
"45505267+Binay28@users.noreply.github.com"
] | 45505267+Binay28@users.noreply.github.com |
058384b59e30522de87ae1f0a3b05a247b264dd1 | c0ba52c370f3c41471308588d49ae75f975d9b49 | /qa/rpc-tests/addressindex.py | bf539ced19ceecddb492dd85fbce51b93697576f | [
"MIT"
] | permissive | mirzaei-ce/core-aghilbit | 7f318a7487675ef7a38280d7b19284c3227cea52 | 4a4ce7b0da3fe01246f300a6809cda68d0708ef6 | refs/heads/master | 2021-07-12T08:21:29.796955 | 2017-10-16T16:56:05 | 2017-10-16T16:56:05 | 107,156,816 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,755 | py | #!/usr/bin/env python2
# Copyright (c) 2014-2015 The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
#
# Test addressindex generation and fetching
#
import time
from test_framework.test_framework import Ag... | [
"mirzaei@ce.sharif.edu"
] | mirzaei@ce.sharif.edu |
548e6b996617ab7253f3a41fa7c7838b9df2aad1 | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /qeyinsjZHCPEddbfe_3.py | 101cca3e7846d04b82b150f8b95efd2e70cbf0e5 | [] | no_license | daniel-reich/ubiquitous-fiesta | 26e80f0082f8589e51d359ce7953117a3da7d38c | 9af2700dbe59284f5697e612491499841a6c126f | refs/heads/master | 2023-04-05T06:40:37.328213 | 2021-04-06T20:17:44 | 2021-04-06T20:17:44 | 355,318,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 136 | py |
def dice_game(lst):
result = [0 if x == y else x + y for x, y in lst]
if 0 in result:
return 0
else:
return sum(result)
| [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
2a316749c36357ca81becf32c53988e94e88336e | 7608a4c0e2252f53aa632e89b9dcab94ad195391 | /crop/migrations/0017_auto_20190303_0540.py | e45961af9eedfc2aad653b1d3e7918ec6a888d36 | [] | no_license | gokulacko/agri | 505369099aab4098e8adcfee3ec2d9708be59d4e | 604bde1f3583456fcd6a1d83122e77cd688a9cad | refs/heads/master | 2020-04-30T16:29:14.225155 | 2019-04-03T13:53:17 | 2019-04-03T13:53:17 | 176,949,516 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 488 | py | # Generated by Django 2.1.3 on 2019-03-03 05:40
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('crop', '0016_auto_20190303_0533'),
]
operations = [
migrations.AlterField(
model_name='product'... | [
"gokulakrishna@admins-MacBook-Pro-6.local"
] | gokulakrishna@admins-MacBook-Pro-6.local |
735d9569094b48a1a43aa0a6385db04c3775a9d5 | 29b5345df054c92fd7bdc116d5ddd326c024f4e3 | /tensorflow/contrib/bayesflow/python/ops/monte_carlo.py | dbfa3611ba0962322f06e5219c7feb2b6087cd24 | [
"Apache-2.0"
] | permissive | RMORIOKA/tensorflow | 13beebfd9a7a64e32e52933f08fe1387b1147876 | 6886eb9c73940fd3b4dfadc3d6964ae9aa71eef6 | refs/heads/master | 2022-11-01T01:41:42.914151 | 2016-11-18T16:20:41 | 2016-11-18T16:20:41 | 74,143,763 | 0 | 1 | Apache-2.0 | 2022-10-08T00:42:05 | 2016-11-18T15:50:00 | C++ | UTF-8 | Python | false | false | 11,628 | py | # Copyright 2016 The TensorFlow 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 applica... | [
"gardener@tensorflow.org"
] | gardener@tensorflow.org |
c37cb05688ccdeea25fe5d255f1d34394edb80a0 | c3ffe75b1299a27a89f50c47b8db7c2cc44f46cf | /Lab1/Lesson 3 test 1.py | b12f525bcd8bd5256ccf61c8980e0cad645dbb00 | [] | no_license | LeonidKhlynov/StructureProgramming | c5595af28e7e9692245efc914a354894ad3cb405 | f301e32835c017ac593274f563dad50d7465b82a | refs/heads/master | 2021-01-22T20:03:00.354172 | 2017-05-10T13:45:46 | 2017-05-10T13:45:46 | 85,278,300 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 121 | py | import math
print("Test 1")
y = float(input("Enter y: "))
a = ((0.214 * y**5) + 1)
F = 2 * math.sin(a)
print("F: ", F)
| [
"leonidkhlynov@yandex.ru"
] | leonidkhlynov@yandex.ru |
5fb6a7293a2fc8a9c091977cb5ed1a079ccfc081 | 53ee9b3ba19d5e0d8c1c9620f6c94f0ff07c5786 | /hospital/models.py | ce3ce52f3cbea70a8ce7142da34d379ae4263761 | [] | no_license | Siddharth-N-Vora/Online-clinic | 96a3bd6de225660a86c83a74ff8ed3567d2a0a58 | 0235a0762f9c18b54b26238b086ab58641f7e8f0 | refs/heads/master | 2022-05-23T15:40:00.494966 | 2020-05-02T03:26:36 | 2020-05-02T03:26:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,653 | py | from datetime import datetime
from itsdangerous import TimedJSONWebSignatureSerializer as Serializer
from hospital import db, login_manager, app
from flask_login import UserMixin
@login_manager.user_loader
def load_user(user_id):
return User.query.get(int(user_id))
class User(db.Model, UserMixin):
id = db.C... | [
"soumyajit660@gmail.com"
] | soumyajit660@gmail.com |
2f3c2ca3fb5d133860d6eaefc05aeecc231445e5 | e19c2f8770fba0c0cb8819a870a05021502a2397 | /rads/config/xml_parsers.py | 6fdfd41c1cc764f550b269895e67d66ef2a9923d | [
"Python-2.0",
"MIT"
] | permissive | ccarocean/pyrads | abb605318f8bde764919edc32cabca62928ac2b0 | fec1cfccbdafb7e372b66a76132c59f3d2a6beb3 | refs/heads/master | 2020-04-04T11:18:12.820595 | 2020-01-10T01:51:28 | 2020-01-10T01:51:28 | 155,885,973 | 2 | 1 | MIT | 2020-03-07T09:43:24 | 2018-11-02T15:31:38 | Python | UTF-8 | Python | false | false | 28,022 | py | """Parser combinators for reading XML files.
This module is heavily based on PEGTL_, a parser combinator library for C++.
.. _PEGTL: https://github.com/taocpp/PEGTL
Exceptions
----------
============================== ===========================================
Name Description
========... | [
"mrshannon.aerospace@gmail.com"
] | mrshannon.aerospace@gmail.com |
52d55eaa96a718f0192d07bd30328853a449ba83 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02419/s944531801.py | 0470606a21cac3803c17734548ec73c240969efd | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 131 | py | W=raw_input()
T=[]
while 1:
x=raw_input()
if x=="END_OF_TEXT": break
T+=[v.lower() for v in x.split()]
print T.count(W) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
3d2e78b2d30c8a2eee930cb3be4e17f829e4d05a | 28f4b7982365876f307cf73748f2071677ecd765 | /百度百科-国家一级博物馆/main.py | e924e62c8a327db3c5ead884fc6aa017fc2b8016 | [] | no_license | wlj961012/MuseumData | 52ce434d075a75e4a06efc309e2f5688ccf3654d | e55a1607ea8e707d6da388d365982262e328ecf3 | refs/heads/master | 2020-03-19T05:05:16.768277 | 2018-06-03T11:51:10 | 2018-06-03T11:51:10 | 135,898,542 | 10 | 0 | null | null | null | null | UTF-8 | Python | false | false | 73 | py | from scrapy import cmdline
cmdline.execute("scrapy crawl Spider".split()) | [
"1322912751@qq.com"
] | 1322912751@qq.com |
401ea7654d97cd0ab22c44afcd660f0682f4a47e | 5e1fb5cddeb3fa6d786d13cddc336295d26bc738 | /myvenv/bin/django-admin.py | cec30ac112cf6955dda286e3240fc9b90fe2d7f2 | [] | no_license | GiovanaThais/cbv | d40d6c24237e12371aed90855ed171bb54e7a493 | 8ce386d971e89268a6b88a3795b144be64c4da7d | refs/heads/main | 2023-05-02T06:11:32.671153 | 2021-06-01T17:45:11 | 2021-06-01T17:45:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 669 | py | #!/home/ma9/cbv/myvenv/bin/python3
# When the django-admin.py deprecation ends, remove this script.
import warnings
from django.core import management
try:
from django.utils.deprecation import RemovedInDjango40Warning
except ImportError:
raise ImportError(
'django-admin.py was deprecated in Django 3.1... | [
"giovana.carvalho@ma9.com.br"
] | giovana.carvalho@ma9.com.br |
92d1ce2682291f87502f9b07e85c89d83e54e5ae | af80a908c7483f19ed686963785323f1cd979def | /morphTargetInterp.py | 2f4078d85f5e9e3a1003e26ea4b12705aee60d5d | [] | no_license | jyl6932/EMobot | 7692a611e5495447a94771057873f8cd458560df | d17228782b5ddcca45b12b5fea7c1e2713919d95 | refs/heads/master | 2022-11-17T07:23:55.130138 | 2020-07-06T07:55:19 | 2020-07-06T07:55:19 | 268,279,331 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,865 | py | import os
from morphTargetCore import MorphTargetCore
from utilities.vector import Vector
class MorphTargetInterp(object):
def __init__(self):
self._morphTargets = []
def addMorpTarget(self, morphTarget, vecParamAtTarget):
self._morphTargets.append((morphTarget, vecParamAtTarget))
def ... | [
"noreply@github.com"
] | noreply@github.com |
cb46ae5444a9a5539ef48de62a55bd113557e5ad | eddaa0d595b8009476cba2bdf8daaeecca7e1a5e | /labs/ciag/geometryczny.py | 507567fdbccfae113e172ce53a0d70de8fc02cd0 | [] | no_license | paulina0127/wizualizacja_danych | 77c464df17751629fad851947207bacb145d35e9 | 7da4fb454510368992727dba45c5d3ccb04e5041 | refs/heads/master | 2023-08-31T11:52:59.504325 | 2021-10-14T14:05:21 | 2021-10-14T14:05:21 | 342,284,789 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 327 | py | def n_ty_wyraz(a_1, n, q):
wyraz = a_1 * (q ** (n-1))
return wyraz
def suma(a_1, n, q):
if q == 1:
suma = a_1 * n
else:
suma = a_1 * ((1 - q ** n) / (1 - q))
return suma
def srodkowy_wyraz(x, z):
y = x * z
for i in range(y):
if i * i == y:
y = i
re... | [
"paulina.hryciuk@student.uwm.edu.pl"
] | paulina.hryciuk@student.uwm.edu.pl |
ebca989f950cca9a7073c3d4049d1d7ab1225ef4 | 225eff0d083538a40fd4cb6a7449dd17c5bec551 | /DB.py | 7934e6064b58a529a738427105d4e41bd9c35fc7 | [] | no_license | xDannyCRx/Daniel | cddcf172e88616941c2a442df5e5c86b5608fc0d | 5e0e41a9b8b0213474133507da8f21cbe9d6464c | refs/heads/master | 2020-07-09T05:24:39.026919 | 2019-11-01T02:53:17 | 2019-11-01T02:53:17 | 203,892,353 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 248 | py | import sqlite3
conn=sqlite3.connect('user.db')
c=conn.cursor()
c.execute('CREATE TABLE user(name text, age integer)')
c.execute('INSERT INTO user VALUES("user A" , 42)')
conn.commit()
c.execute('SELECT * FROM user')
print(c.fetchall())
conn.close() | [
"jdaz25@gmail.com"
] | jdaz25@gmail.com |
a7eba54eb9ba45403360224de1d834dc9ad32f8e | a5e5604f8777e670d104f39d31a4db2ab2e9baa1 | /Intersection_of_linkedlist.py | a3e926109535c25d2513cb72da423b49ea441413 | [] | no_license | Srijans01/competitive-programing | aa6d9776589cb00c8890c4f217c454c0be8bb34e | bff33e1f3aa5a389ea5ef8290438535a858d5cb2 | refs/heads/master | 2020-09-12T20:02:45.076932 | 2019-12-04T15:21:47 | 2019-12-04T15:21:47 | 222,536,846 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,008 | py | # Definition for singly-linked list.
# class ListNode:
# def __init__(self, x):
# self.val = x
# self.next = None
class Solution:
def getIntersectionNode(self, headA: ListNode, headB: ListNode) -> ListNode:
if not headA:
return None
if not headB:
return N... | [
"noreply@github.com"
] | noreply@github.com |
b6130cee6cd7b99fff8de78986b766acefcfa552 | 264dec43c5cf285dce458717405eb9c7a9ad0861 | /covid/social/models.py | c282e1b50cca4787eb47ea6f915a91fe3c7c8e42 | [] | no_license | nikhiljoshi858/covid-19-care | 5bdff08566886c5c3914fb30a0000ac9d58ff29e | 243a29b74a2c77e65f7532f9d537f01da5d379c4 | refs/heads/master | 2023-04-18T15:24:58.527993 | 2021-04-25T07:50:49 | 2021-04-25T07:50:49 | 274,865,677 | 0 | 0 | null | 2020-07-06T13:42:11 | 2020-06-25T08:28:04 | Python | UTF-8 | Python | false | false | 488 | py | # Project Name: COVID-19 Care: Face Mask and Social Distancing Detection using Deep Learning
# Author List: Generated by Django
# Filename: models.py
# Functions: No functions.
# Global Variables: NA
from django.db import models
# Create your models here.
class Video(models.Model):
... | [
"nikhiljoshi858@gmail.com"
] | nikhiljoshi858@gmail.com |
b59366bd46c06c6efcc22809831e340be85e10bb | 975b2d421d3661e6770b601929d5f11d981d8985 | /msgraph/generated/permission_grants/get_available_extension_properties/get_available_extension_properties_request_builder.py | 61f786d7858f9af54cc299e80542ba910539ec7d | [
"MIT"
] | permissive | microsoftgraph/msgraph-sdk-python | a7c551b85daadeebf76ec4ae12668664ea639b42 | 27de7ccbe688d7614b2f6bde0fdbcda4bc5cc949 | refs/heads/main | 2023-09-03T21:45:27.989672 | 2023-08-31T06:22:18 | 2023-08-31T06:22:18 | 534,665,999 | 135 | 18 | MIT | 2023-09-14T11:04:11 | 2022-09-09T14:00:17 | Python | UTF-8 | Python | false | false | 4,917 | py | from __future__ import annotations
from dataclasses import dataclass, field
from kiota_abstractions.base_request_builder import BaseRequestBuilder
from kiota_abstractions.get_path_parameters import get_path_parameters
from kiota_abstractions.method import Method
from kiota_abstractions.request_adapter import RequestAda... | [
"GraphTooling@service.microsoft.com"
] | GraphTooling@service.microsoft.com |
ca6b07c2087856017fb5024d0104bb4db95a5698 | d0727bb52fd4ce042c4765ecdecf56be890844e6 | /play/views.py | d536a7ff26c3ae350b683df2af2d599953c19b2c | [] | no_license | CCCherie/music | 17299bfc0d9f9ca98d55eb098a0d820e99d72256 | bc62dfd90c5c8e715f1eca1ba9b22800f0935179 | refs/heads/master | 2022-12-14T17:10:51.247299 | 2020-09-10T02:56:15 | 2020-09-10T02:56:15 | 289,820,835 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,110 | py | from django.shortcuts import render
from django.http import StreamingHttpResponse
from index.models import *
# Create your views here.
def playView(request,song_id):
# 热搜歌曲
search_song = Dynamic.objects.select_related('song').order_by('dynamic_search').all()[:6]
# 歌曲信息
song_info = Song.objects.get(son... | [
"oncwnuOi7HJQE33kg5xi26NV4E0U@git.weixin.qq.com"
] | oncwnuOi7HJQE33kg5xi26NV4E0U@git.weixin.qq.com |
c8e514cf6371ba34c6915c2a4fa7d98162c04ef5 | 387ad3775fad21d2d8ffa3c84683d9205b6e697d | /testsuite/trunk/epath/set_ep_loc_012.py | 78a9160027aee4ca102953bb975b8d0cbcdb9901 | [] | no_license | kodiyalashetty/test_iot | 916088ceecffc17d2b6a78d49f7ea0bbd0a6d0b7 | 0ae3c2ea6081778e1005c40a9a3f6d4404a08797 | refs/heads/master | 2020-03-22T11:53:21.204497 | 2018-03-09T01:43:41 | 2018-03-09T01:43:41 | 140,002,491 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,928 | py | #!/usr/bin/env python
"""
(C) Copyright IBM Corp. 2008
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. This
file and program are licensed under a BSD style license. See
the Copy... | [
"suntrupth@a44bbd40-eb13-0410-a9b2-f80f2f72fa26"
] | suntrupth@a44bbd40-eb13-0410-a9b2-f80f2f72fa26 |
908c817b8884df04b0e6932ea2935b5568e5053a | 14fb48c362c972b6ee1dedf46608d8b67ba1ebe9 | /PhoenixGeoPy/__init__.py | bca30a26dc106ad82ab3653846e87ade821d4893 | [
"MIT"
] | permissive | efrainlav/PhoenixGeoPy | d0ce4f083d39c2b837ae83852554b47ce6c5115c | 857b1aa84b21448f34b9e9e255040c464ce2003d | refs/heads/main | 2023-08-13T20:53:38.501497 | 2021-09-15T04:08:17 | 2021-09-15T04:11:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 21 | py | __all__ = ["Reader"]
| [
"jtorres@phoenix-geophysics.com"
] | jtorres@phoenix-geophysics.com |
37864e9edb8d03122d76b91a7277fa519c020491 | 96a0a8324212f17f328f10cf288b2bbb154096cc | /XXX/run.py | ee4f97d591d3da5c5c0a4244e3bc31a853510377 | [] | no_license | OLakrari/MySQL_Flask_Redis_Docker_Project | 33853b034ecd5609684c4f6d59b463906f0af910 | 3b4bbb3219113a69b1c036216af32a3a4afdc9ff | refs/heads/master | 2022-12-22T18:18:07.353605 | 2020-09-14T14:36:10 | 2020-09-14T14:36:10 | 295,436,330 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 110 | py |
from backend import backend
if __name__ == '__main__' :
backend.run(debug= True, port=5000, host='0.0.0.0') | [
"olakrari@gmail.com"
] | olakrari@gmail.com |
1a3a3c6ea9c88feb681c593685a6697d0e85dbce | bd243ad9744f6451b3a61ccec07abf307a57879e | /firms/migrations/0001_initial.py | 41de7da88bb1488f9d57ab7d707d088000b831a3 | [] | no_license | ulopax/UKVCfirms | e0a8ffe58be0cabdcf6cae0b2beaf5ab6ac502c2 | 7c22be900f7bc9bb5d71cb44a27cdc398a91518a | refs/heads/master | 2022-12-11T12:09:42.766867 | 2019-03-29T09:31:51 | 2019-03-29T09:31:51 | 178,375,001 | 0 | 0 | null | 2022-12-08T04:58:08 | 2019-03-29T09:29:43 | Python | UTF-8 | Python | false | false | 2,839 | py | # Generated by Django 2.1.7 on 2019-03-26 17:36
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Employee',
fields=[
... | [
"joseritch45@gmail.com"
] | joseritch45@gmail.com |
cecbc064f3df2356025ec792fed1dff36809e81a | 4f59ac4703e687ad1b6ce2ea5e5464db573da07a | /icubam/db/migrator.py | 3ea18dbe245ddaf182dc8b3e8eadf6f731bc2a48 | [
"Apache-2.0",
"LicenseRef-scancode-free-unknown"
] | permissive | maximedenes/icubam | b6cfa840ee2d79a175661d2a0f968256c9330cd9 | 0a4095cfa08d78058e70aa52891051d0694fdd36 | refs/heads/master | 2022-04-24T23:21:17.054516 | 2020-04-11T18:16:57 | 2020-04-11T18:16:57 | 254,974,548 | 0 | 0 | Apache-2.0 | 2020-04-11T23:37:56 | 2020-04-11T23:37:55 | null | UTF-8 | Python | false | false | 1,654 | py | from absl import logging
from datetime import datetime
from icubam.db import store
import sqlite3
class Migrator:
"""Migration from old db to new db.
It has to be by name because it seems we cannot set ids directly in store.
"""
def __init__(self, config):
self.config = config
db_factory = store.crea... | [
"oliviert@google.com"
] | oliviert@google.com |
e8c93b3bff98eec21daac42e50cb8227ff08ee41 | 6c2fc1c682c3381bc5d85ed2a815177282c4ebc8 | /supriya/ugens/SpecFlatness.py | 59dd8a2090f6838dd94536f3c52f8497e274fe34 | [
"MIT"
] | permissive | tchiwinpiti/supriya | afcd78cfa8b4bd15719040d8dfc78a951747acd7 | 45ac58be902637208d057937905ff035a6e8d24b | refs/heads/master | 2020-03-16T01:26:48.877045 | 2018-04-27T01:32:39 | 2018-04-27T01:32:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,136 | py | from supriya.synthdefs.CalculationRate import CalculationRate
from supriya.ugens.UGen import UGen
class SpecFlatness(UGen):
"""
A spectral flatness measure.
::
>>> source = supriya.ugens.SoundIn.ar(bus=0)
>>> pv_chain = supriya.ugens.FFT(source=source)
>>> spec_flatness = supriya... | [
"noreply@github.com"
] | noreply@github.com |
8110ddd0dde5af6e6d8fb80a917983c1ae137518 | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /hoxv8zaQJNMWJqnt3_1.py | 111f3aa56f45f561eaf1e5c385c12cc977867642 | [] | no_license | daniel-reich/ubiquitous-fiesta | 26e80f0082f8589e51d359ce7953117a3da7d38c | 9af2700dbe59284f5697e612491499841a6c126f | refs/heads/master | 2023-04-05T06:40:37.328213 | 2021-04-06T20:17:44 | 2021-04-06T20:17:44 | 355,318,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 159 | py |
def is_heteromecic(n,i = 0):
if n == i * (i + 1):
return True
if n < i * (i +1):
return False
i+=1
return is_heteromecic(n, i)
| [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
9cc9c4d4900a4129a9dd8224765831f0490e6095 | a6e5ad8f3f75f10359c05d819b2fc9b57c2ee1b6 | /dns/dns_xfs_002.py | 02ba0fe170454090a459d7cedbabe8b9c02bdca3 | [] | no_license | brnkorn/MBA_IMPACTA | df3da36f4dee3ebc4a8bff687a01fa2386aa73b7 | 6954b391cae5a926fa2d962ae15f58a6e1c0c66c | refs/heads/main | 2023-08-22T06:09:16.355405 | 2021-09-23T01:34:40 | 2021-09-23T01:34:40 | 402,221,845 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 364 | py | #!/usr/bin/python
import dns.query
import dns.zone
domain = 'yellow.dojo'
target = 'ns.yellow.dojo'
try:
transfzone = dns.zone.from_xfr(dns.query.xfr(target, domain))
for _machines in transfzone:
print ('[ + ] - ', str(_machines) + '.' + domain )
except:
print('[!] - Nao foi possivel fazerf a ... | [
"root@battosai.yellow.dojo"
] | root@battosai.yellow.dojo |
6aa1f799d8cdf92cbfda9711ee694ed0ecd267e2 | 0e5291307525916f95faecaaa175fd7839eddbf8 | /SySeVR_docker/docker_build/home/SySeVR/softdir/py2neo-py2neo-2.0/py2neo/cypher/error/statement.py | 19371dfd068bcd4aaa7ad8d7961ad47c00199321 | [
"Apache-2.0"
] | permissive | SySeVR/SySeVR | 9d7df721ac4964c4746e18938b4383e4a8142cc8 | 5e195d0bc63a76a298b65c9c3460fed0ee3082c7 | refs/heads/master | 2022-06-16T22:17:21.117906 | 2021-10-29T08:59:23 | 2021-10-29T08:59:23 | 141,377,750 | 255 | 125 | null | 2022-06-05T03:02:06 | 2018-07-18T03:45:49 | HTML | UTF-8 | Python | false | false | 2,214 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright 2011-2014, Nigel Small
#
# 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... | [
"CGDdataset@126.com"
] | CGDdataset@126.com |
ee2bd73b5cb0bc2730c1b2a2ab9ffd4b266fe88d | 0dafcb7034e9293fe66e8f2ab48d5cd598a50189 | /backend/login/forms.py | 0c9b5966dc3bc4510b8ce5546dfda76385b9e487 | [] | no_license | Chandrakoushik/DBMS-PROJECT | 371aa4a02224fb1558081587f0c94957613512b8 | 3ab8ce8e33b5f78b5365bbb6c543d669a01c694d | refs/heads/master | 2023-04-21T06:07:10.637682 | 2021-04-29T11:56:20 | 2021-04-29T11:56:20 | 335,965,370 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 349 | py | from django import forms
from .models import User
from django.contrib.auth.forms import UserCreationForm
class UserRegisterForm(UserCreationForm):
email = forms.EmailField()
number = forms.CharField(max_length=10, required=True)
class Meta:
model = User
fields = ['username', 'email','numb... | [
"rocklohithreddy@gmail.com"
] | rocklohithreddy@gmail.com |
017d9dea36304f626cf27fe304726b3a9e6a64a1 | 83ddf8718b8846dbb487a3bb2888be1de80a832a | /GUI/Tour/dlg1.pyw | 21fadde90bdc4bec868032fdbaa8e2c9f98303d9 | [] | no_license | jiaqi072594/Python_Elementary | ed8914f8fbdba5cf73dca7ac4f763e8675b291fa | 5e812ac2ebeb5e1b4bba3f0b77f2eed8943e235e | refs/heads/master | 2023-02-02T11:09:04.969151 | 2020-12-20T14:15:43 | 2020-12-20T14:15:43 | 111,979,373 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 443 | pyw | # -*- coding: utf-8 -*-
from tkinter import*
from tkinter.messagebox import*
def callback():
if askyesno('Verify', 'Do you really wangt to quit?'):
showwarning('Yes', 'Quit not yet implemented')
else:
showinfo('No', 'Quit has been cancelled')
errmsg = 'Sorry, no Spam allowed!'
Button(text='Qui... | [
"568891066@qq.com"
] | 568891066@qq.com |
b257b9fbad4c6e99eb47fc7e4b63508036ae8fe7 | 6257b3d146ecff251aabb4dc78cf66bc69d2ab31 | /component/struts/struts2016.py | 980725069fe7fafe8cd96a756da7fe407fcc2015 | [
"MIT"
] | permissive | bigbigx/PocCollect | 39549107f01d313656b451bafe7657cb8c61f410 | 6b0f438e6e6005bd0adbdf3bcc97a2d808c6f9ea | refs/heads/master | 2021-06-04T15:48:04.790219 | 2021-04-06T11:24:54 | 2021-04-06T11:24:54 | 63,687,713 | 0 | 0 | MIT | 2021-04-06T11:24:55 | 2016-07-19T11:19:43 | Python | UTF-8 | Python | false | false | 2,355 | py | #!/usr/bin/env python
# encoding: utf-8
from t import T
import requests
class P(T):
def __init__(self):
T.__init__(self)
keywords=['struts']
def verify(self,head='',context='',ip='',port='',productname={},keywords='',hackinfo=''):
target_url=''
target_url = 'http://' + ip + ':' ... | [
"nanshihui@qq.com"
] | nanshihui@qq.com |
17ca38843edb8b4672e8f653c45f1cec4881a059 | f7ff0b17e010abb7a2545e6583b8210959861a10 | /jupytext/version.py | aafb0cd4af6aefaa1dcb2cfdbae7b1294f5092d0 | [
"MIT"
] | permissive | IanEdington/jupytext | d0b7f61c69ad003eea5fd77283a1b47f689351d3 | bc1b15935e096c280b6630f45e65c331f04f7d9c | refs/heads/master | 2022-11-06T19:51:17.822602 | 2020-06-23T20:59:08 | 2020-06-25T12:37:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 59 | py | """Jupytext's version number"""
__version__ = "1.5.1-dev"
| [
"marc.wouts@gmail.com"
] | marc.wouts@gmail.com |
0a1045f155f346fcd6be4db7820ecffde97a490b | eef285b8c4530a7dc1187e08292bf246e3732915 | /chat_project/chat_backend/chat_backend/user/admin.py | 24c2b5b4d4948b6624de91964a94edf55e80a494 | [] | no_license | wlgud0402/making_projects | 32ba45817e48c3d21b174c823177d96af10d9a20 | 6d86d09c61eb70339423f33d6e42ca0cdff391a6 | refs/heads/master | 2023-03-21T09:45:25.600251 | 2021-03-22T13:02:26 | 2021-03-22T13:02:26 | 338,810,583 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 255 | py | from django.contrib import admin
from .models import User
# Register your models here.
# admin.site.register(User)
@admin.register(User)
class UserAdmin(admin.ModelAdmin):
list_display = ('email', 'nickname', 'user_type', 'room_id', 'created_at',)
| [
"wlgudrlgus@naver.com"
] | wlgudrlgus@naver.com |
92e1a090a2a1f42a8330525bc7e26796b8ddcdea | a0f15bbc3275aa034be964db1a6baab5faca48bc | /Ljudvolym.py | b0210bfa85de45eaec068ef72c7928721343d49a | [] | no_license | Tinuviel/TV | 3a22ecd743f95fdf381179f86f024d799dd5a0a4 | f05429599c3a3bd6d7bebd0f8474553e078c017a | refs/heads/master | 2021-01-11T18:53:41.045746 | 2017-01-21T14:28:32 | 2017-01-21T14:28:32 | null | 0 | 0 | null | null | null | null | WINDOWS-1250 | Python | false | false | 206 | py | # Lovisa Colérus
# 2015
class Ljudvolym ()
def sank_volym(volym):
volym = volym-1
#spara i fil
def hoj_volym(volym):
volym = volym+1
#spara i fil | [
"noreply@github.com"
] | noreply@github.com |
8782d6c16c6fc756e0b531485ce039997c1553d3 | 4a794f355682d94b0afc44228b2ee21453def257 | /compare_images.py | 734cd974a3f3ab813ea49a50544f26b31cd31e97 | [] | no_license | s6rapala/compare_images | 5d08e7e0911faf1395373af5465aef323d4427af | f9f0f0de6c18494be9712114bf64e659dfc33de6 | refs/heads/master | 2020-05-14T15:44:28.844250 | 2019-04-17T09:31:04 | 2019-04-17T09:31:04 | 181,859,993 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,894 | py | from skimage import measure
import matplotlib.pyplot as plt
import numpy as np
import cv2
def mse(imageA, imageB):
err = np.sum((imageA.astype("float") - imageB.astype("float")) ** 2)
err /= float(imageA.shape[0] * imageA.shape[1])
# return the MSE, the lower the error, the more "similar"
# the two images are
r... | [
"s6rapala@uni-bonn.de"
] | s6rapala@uni-bonn.de |
47b04d2d80feb5127bc8adf80fc4b115083c28e9 | 5e4bd1983f95225973fa291adc7c155dd21cc1ad | /UdfTransformation.py | c70b26e20127303e627b3d67a611d3dca56f18f1 | [] | no_license | mazharfarhan/ApacheSpark | b8b6a1ee9801bdd24a072fdf13d8a588d1e19de3 | f86f12302d58f0dfcdbd73df0eeb3464bd0ea79a | refs/heads/master | 2020-07-19T10:32:01.630927 | 2016-12-31T00:18:29 | 2016-12-31T00:18:29 | 67,913,688 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 441 | py | from pyspark.sql.types import IntegerType
df = sqlContext.createDataFrame(data,['name', 'age'])
# create a user defined transformation that returns the double of integer value.
doubled = udf(lamda s: s*2, Integer())
df2 = df.select(df.name, doubled(df.age).alias('age'))
#Transformation to get age that is greater than... | [
"noreply@github.com"
] | noreply@github.com |
0f192532bd81f24d246bff4f135f9e2a7957a83f | 924f182dc57d2f3f42eeabd5905ca4f285d48512 | /problem07.py | 77ebd24c9475cc899b9f270e70da49eadb48843a | [] | no_license | djawlths3/python_practice1 | d8347d331c6da2a42b0e8d954e298547638b0432 | aac578a18ecbb7413db4f5d1da8d62a8dc2c39fe | refs/heads/master | 2020-06-03T09:59:19.389728 | 2019-06-12T08:23:48 | 2019-06-12T08:23:48 | 191,529,235 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 452 | py | # 문제1. 키보드에서 5개의 정수를 입력 받아 리스트에 저장하고 평균을 구하는 프로그램을 작성하시오
def isnumber(no):
try:
int(no)
return int(no)
except ValueError:
print('정수가 아닙니다')
exit(0)
number = []
for i in range(0,5):
number.append(input('수를 입력하세요: '))
number[i] = isnumber(number[i])
print('평균: ',sum(numb... | [
"djawlths4@naver.com"
] | djawlths4@naver.com |
0f1e8d654180ed087a607fa168fc07cde9f41e24 | f200c1e43616fac4b9ecab1ffd78cc24ba6b232c | /hostal_Donaclarita/Web/migrations/0007_comedor_servicio.py | 85827d40e2e613d0f68f7c29216756ef1e9a928d | [] | no_license | ELTIOGUTS/Portafolio_2021_Hostal_Dona_Clarita_iteracion_3 | 50b3fe83f50cf67dab7ed939331a01fc8bbf0189 | 309c3e9706b493d54ead93e8f53768807fb744dd | refs/heads/main | 2023-06-26T14:17:49.026235 | 2021-07-20T00:01:32 | 2021-07-20T00:01:32 | 387,569,057 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,162 | py | # Generated by Django 3.1.4 on 2021-05-31 21:18
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('Web', '0006_cliente_empleado_empresa_huesped_proveedor'),
]
operations = [
migrations.CreateModel(
... | [
"ni.bastiasm@alumnos.duoc.cl"
] | ni.bastiasm@alumnos.duoc.cl |
fc640f075da0fcf9819403be4b04d1407e50c871 | 3ad93762eb1e787965217a39fc258d0c4e03ec56 | /Create_dataset_from_webcam.py | 54214b9b201f4d86eb236c77741f91b4a19039d6 | [] | no_license | saivarun123/Face-recognition | 0f35498b4f11e3003934c8fe8567a056059ae1b2 | eddced4ca8c52d2c5552e107607db0f00338bb35 | refs/heads/master | 2022-09-12T13:44:47.836093 | 2020-06-03T04:51:47 | 2020-06-03T04:51:47 | 268,992,162 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 548 | py | import cv2
import sys
import os
cpt = 0
vidStream = cv2.VideoCapture(0)
while True:
ret, frame = vidStream.read() # read frame and return code.
cv2.imshow("test window", frame) # show image in window
cv2.imwrite(r'C:\Users\saivarun\Desktop\face recognition\data_sets_img\1\image%04i.jpg' %cpt... | [
"noreply@github.com"
] | noreply@github.com |
444054fc36f9652d815045a0147ef271e91ab668 | 04b53a66b7a66f57d78b1023557df0a649d0ad52 | /datajob_tests/stepfunctions/stepfunctions_workflow_test.py | 2a6dfb802b9bf38f98ed504d343c6ad9d433a9bd | [
"Apache-2.0"
] | permissive | ivankeller/datajob | 9db1faf73f73241938667a389fbe11892744ab6d | b26935e8d136e966335b535d083a912ea1dd7b5e | refs/heads/main | 2023-06-03T06:00:37.825568 | 2020-12-12T21:39:04 | 2020-12-12T21:39:04 | 320,934,262 | 0 | 0 | Apache-2.0 | 2020-12-12T22:11:01 | 2020-12-12T22:11:01 | null | UTF-8 | Python | false | false | 2,536 | py | import unittest
from moto import mock_stepfunctions
from stepfunctions.steps.compute import GlueStartJobRunStep
from stepfunctions.steps.states import Parallel
from datajob.datajob_stack import DataJobStack
from datajob.stepfunctions import stepfunctions_workflow
from datajob.stepfunctions.stepfunctions_workflow impo... | [
"vclaes1986@gmail.com"
] | vclaes1986@gmail.com |
348fef1e68986f0746dabe1077c0e2b70ec3a559 | 5b0fe6a7d20fff6176626fd9967a567efea1ddaa | /src/paiza/S/saitankyori.py | 1b0cfe7d4aaaa009c7c0cc95cc6df4fc87a96941 | [] | no_license | yk-amarly-20/atcoder_python | 10eb6ad73c0b9596f5ac58cb11dfb9b790dcc221 | 367bee26321a378f43868d44cb5a5faf7d6ed841 | refs/heads/main | 2023-03-05T14:04:27.101750 | 2021-02-22T12:53:48 | 2021-02-22T12:53:48 | 305,570,140 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 978 | py | from collections import deque
def main():
n, m = list(map(int, input().split()))
maze = []
sx, sy, gx, gy = -1, -1, -1, -1
for i in range(m):
# まず入力を処理しながらsを探す
x = input().split()
if "s" in x:
sx, sy = x.index("s"), i
elif "g" in x:
gx, gy = x.in... | [
"y.k.83600260@icloud.com"
] | y.k.83600260@icloud.com |
7a94075b2ee2d8e1d2a513b48f66bde748ea09f5 | 68e03845de7ac9308fb978df5946b9a27a56e6e4 | /siaod4/main.py | 5ba8b5764677618ff3c348431cbb322d5b22cb88 | [] | no_license | liquidgoo/siaod | 591da7c95f3652af0a791fe0157c0010feafce69 | aff352fb7fce212dc8b9ff04fdd6865d4b053229 | refs/heads/master | 2023-01-23T01:16:50.434996 | 2020-12-01T17:03:17 | 2020-12-01T17:03:17 | 297,756,372 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,090 | py | prior = {None: -1, '(': 0, ')': 1, '+': 2, '-': 2, '*': 3, '/': 3, '^': 4}
def main():
expression = input("Введите выражение:")
print(toPostfix(expression))
print(toPrefix(expression))
def toPostfix(expression):
stack = Stack()
rank = 0
parentheses = 0
prefix = ''
for c... | [
"noreply@github.com"
] | noreply@github.com |
6e2a83713ae7ab63558f5e4186fec998fdc107b6 | ea8288db3ba2ecd83e9544e390a9d1f7844bb732 | /build/turtlesim_cleaner/catkin_generated/pkg.installspace.context.pc.py | a7a491f0b8ecdd5368f7c8f53d20010068f2722f | [] | no_license | mathiasmantelli/catkin_robot_cleaner | 6282a43056fce02bb649c33f2def52e41d18867c | b1d19c3a86deb594e6311e64b4f4093fc89a74fe | refs/heads/master | 2022-12-15T10:17:35.334609 | 2020-09-22T02:50:54 | 2020-09-22T02:50:54 | 289,719,511 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 482 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "".split(';') if "" != "" else []
PROJECT_CATKIN_DEPENDS = "roscpp;rospy;std_msgs;geometry_msgs;message_runtime".replace(';', ' ')
PKG_CONFIG_LIBRARIES_WITH_PREFIX = "-lturtlesim_cleaner".split(';') if ... | [
"mathiasfassini@gmail.com"
] | mathiasfassini@gmail.com |
fb9c8d9e81f669ed52a6bc7053f97b58a8decccb | ca0b0b6f1fa7943aeedcc1ccd6f1613ee3359b5b | /RaspberryPi/DS4Controller/src/test.py | 8e88993e1518c30de6901741e761a1c5c02ab618 | [] | no_license | AndreTeixeira1998/RC-Car-With-Vision-Tracking | 185dfb0e502addf1c8e2f3b72dd7e902e4a98550 | 41ab20e3542581c0b4fbf0eae87f500154e4ada8 | refs/heads/master | 2021-05-31T22:37:44.220489 | 2016-06-13T20:40:46 | 2016-06-13T20:40:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,375 | py | # file: test.py
# This is an example of how this module is used in a python script.
# For further understanding please visit the documentation.
import controller
me = controller.newController()
while(me.active):
if(controller.getAxisDown(controller.AXIS_R2)):
print("R2=%d" % controller.getAxisValue(cont... | [
"reevmich@my.dom.edu"
] | reevmich@my.dom.edu |
4feed03705899d5cd4c4f3bae24b531d77fa15a3 | 68eae6c0b8b4b4f3f5be265888f6e8e1bd67ecb9 | /twitter2/wsgi.py | d1bb047d89535bde35e71c01261e11b6b6942804 | [] | no_license | AdelSamsakova/Hakaton_Django_templates- | 2e48e75a9e1247d25b982558748c7543c16cbd5d | c6c2b6eacc53390cd2432029d215a52bd47e055d | refs/heads/master | 2023-04-18T08:26:16.183085 | 2021-04-28T02:58:35 | 2021-04-28T02:58:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 393 | py | """
WSGI config for twitter2 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/3.1/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SETT... | [
"adel.samsakova@gmail.com"
] | adel.samsakova@gmail.com |
18b2c55eadbd92a669c723bece524f58044dcc68 | 47696eb911ab29d6157ae54f058256595e39056b | /accounts/forms.py | 94346a2a3326939a9810cfacf52f40e16891ac02 | [] | no_license | kingofhawks/greenbuilding | 9aaa4195d08abf61cafaa33040bef9e2d0000699 | 7a9d876cca2306f483f6e76386aec861c3778437 | refs/heads/master | 2022-08-15T07:04:34.342410 | 2016-11-21T08:52:57 | 2016-11-21T08:52:57 | 20,910,655 | 2 | 2 | null | 2022-07-07T04:15:54 | 2014-06-17T04:51:30 | HTML | UTF-8 | Python | false | false | 4,038 | py | from __future__ import unicode_literals
from django.contrib.auth import authenticate
from django.contrib.auth.models import User
from django.contrib.auth.tokens import default_token_generator
from django.db.models import Q
from django.db.models.manager import Manager
from django import forms
from django.utils.http impo... | [
"kingofhawks@qq.com"
] | kingofhawks@qq.com |
11942764d3444e239ed6702bca9c874ab630237e | f41bd639f249ef6029e310bee84c6ef03f5d6f19 | /databundles/partitions.py | b4ecea0136dac5ddfa498ccb0c0969a76a298626 | [] | no_license | kball/databundles | 5e3d478c1977a0481d77131dd573c8f199e2c95d | 142f20705c8be6cb136adef3a94c8fa7b7119b88 | refs/heads/master | 2021-01-21T03:30:32.822333 | 2014-01-23T23:57:57 | 2014-01-23T23:57:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,722 | py | """Access classess and identity for partitions.
Copyright (c) 2013 Clarinova. This file is licensed under the terms of the
Revised BSD License, included in this distribution as LICENSE.txt
"""
import os
from partition import PartitionIdentity
from sqlalchemy.orm.exc import NoResultFound
class Partitions(object):
... | [
"eric@clarinova.com"
] | eric@clarinova.com |
772aef0217325a062deb667b0ab699f6e3d38d6e | 706a8735e7848a8b639c274f7752fedab95ea285 | /preprocessing/frame_extraction.py | 2a48a77b65372c469ddf4f44b9ca5ffc9ec2af1a | [
"MIT"
] | permissive | MrChenFeng/Project-Template | 78a41b378d437463f2792a1c787ae63a5af3d12f | 42a335c6abb710bbae6407cbb0ca461533bc12f9 | refs/heads/master | 2022-11-22T06:21:49.795119 | 2020-06-29T23:49:10 | 2020-06-29T23:49:10 | 260,780,268 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,230 | py | import os
import cv2
from tqdm import tqdm
def video_to_frames(video_path, frame_path):
"""
For each videos, extract frames and save to frame dirs
"""
if not os.path.isdir(frame_path):
os.mkdir(frame_path)
files = os.listdir(video_path)
for i in tqdm(files):
a_path = os.path.joi... | [
"fackie520@126.com"
] | fackie520@126.com |
81e88acd9e002529a29c7b2b38077b57923836c6 | bdf71f97f54038188d86be2aa289972126b26b8a | /ejercicio2/orders/urls.py | c8fefbc234979869069570379c65619e005b04af | [] | no_license | guidobonomini/bigbox-test-2 | 448e562b546c0594681941669bf0cec03ded0955 | 91805e003ff989e253a40d20f299c7f552288606 | refs/heads/master | 2020-12-25T14:23:14.838501 | 2016-08-17T20:10:07 | 2016-08-17T20:10:07 | 65,937,365 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 562 | py | from django.conf.urls import url
from . import views
app_name = 'orders'
urlpatterns = [
#Main Menu url
url(r'^$', views.IndexView.as_view(), name='index'),
#Order Completed Grouped By Month
url(r'^ordersPerMonth/$', views.OrdersCompletedMonthView.as_view(), name='ordersPerMonth'),
#Average Orders ... | [
"noreply@github.com"
] | noreply@github.com |
5df7bbb123a2779a847aa9762e9a98f01c792d2e | ce55c319f5a78b69fefc63595d433864a2e531b5 | /前端+数据分析/套接字/闭包.py | 3471e3e269632f386dfa8ff19ab2bb59ac4d02c1 | [] | no_license | Suijng/1809_data | a072c875e8746190e3b715e53f1afe3323f4666b | 45f8a57089f5c30ccc1a3cddb03b76dc95355417 | refs/heads/master | 2022-12-21T12:38:30.458291 | 2019-09-27T01:14:41 | 2019-09-27T01:14:41 | 211,207,071 | 0 | 0 | null | 2022-11-22T03:16:18 | 2019-09-27T00:55:21 | HTML | UTF-8 | Python | false | false | 89 | py | x = 300
def test1():
x = 200
def test2():
global x
print('--1--') | [
"1627765913@qq.com"
] | 1627765913@qq.com |
a81fb81b960fc04f18e1042929aa6c944cfb1007 | 8acffb8c4ddca5bfef910e58d3faa0e4de83fce8 | /ml-flask/Lib/site-packages/networkx/algorithms/flow/capacityscaling.py | 9a6a5c7270f10e7645babe83c8286a14cb73b66f | [
"MIT"
] | permissive | YaminiHP/SimilitudeApp | 8cbde52caec3c19d5fa73508fc005f38f79b8418 | 005c59894d8788c97be16ec420c0a43aaec99b80 | refs/heads/master | 2023-06-27T00:03:00.404080 | 2021-07-25T17:51:27 | 2021-07-25T17:51:27 | 389,390,951 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 130 | py | version https://git-lfs.github.com/spec/v1
oid sha256:0ba80a661465f023b9da7444cd18a123358f4112509665b5d25721a9fb176ec0
size 14535
| [
"yamprakash130@gmail.com"
] | yamprakash130@gmail.com |
9a5a4eca0b88603df1e80b86e1a589de0bb6501d | c5b46dd5123b6227daa3a650437c537dbcca6dfa | /start_selling/migrations/0007_auto_20180424_1148.py | 0455d3e9caadbcacb5320f7a978f1ef499473f18 | [] | no_license | csmick/AddingInsightToInventory | 389304c6615bdfd4821d5081915c9d8ba5661bb2 | e3f31326838fa5a2ffa2eb00987a78ae72a8d993 | refs/heads/master | 2020-03-11T10:15:52.998456 | 2018-05-11T04:43:12 | 2018-05-11T04:43:12 | 129,937,693 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 379 | py | # Generated by Django 2.0.4 on 2018-04-24 16:48
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('start_selling', '0006_item_unit'),
]
operations = [
migrations.AlterField(
model_name='item',
name='unit',
... | [
"camerondsmick@gmail.com"
] | camerondsmick@gmail.com |
99c92f661e0967ecdc850d67697e844149cfc550 | f902740f2bdb0472bbbb890340e3c04c023e40d0 | /capone/tests/migrations/0001_initial.py | e174873ad48a1cc3f9de6749f1bada32a521625a | [
"MIT"
] | permissive | ctk3b/capone | 3be553c9999ff0012fe0f9780d05601fbc7a6352 | 3e88ad7c5d1668c01461f63d927e2136fbd1c415 | refs/heads/master | 2021-04-27T11:17:29.304601 | 2018-01-08T20:32:43 | 2018-01-08T20:32:43 | 122,558,108 | 0 | 1 | null | 2018-02-23T01:33:40 | 2018-02-23T01:33:40 | null | UTF-8 | Python | false | false | 1,250 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
from decimal import Decimal
class Migration(migrations.Migration):
dependencies = [
]
operations = [
migrations.CreateModel(
name='CreditCardTransaction',
fields=[
... | [
"hunter@counsyl.com"
] | hunter@counsyl.com |
576e761485b9b3fbcdc1ce8d9b9405d34e242c90 | a1ad2715e306fd4e7eaeda5348e00e1a363e7884 | /leetcode/concepts.py/houserobber2.py | d7ea4c294868b76061a7f6960164e761560f91cc | [] | no_license | MayankMaheshwar/DS-and-Algo-solving | cef54a800b3e8a070a707f97b4f30fccaa17d5c6 | ac6ea8f880920242a55d40c747368d68cb6f7534 | refs/heads/master | 2022-12-07T07:55:08.380505 | 2022-12-05T09:32:14 | 2022-12-05T09:32:14 | 237,103,468 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 431 | py | def robberse(self, nums):
def simple_rob(nums, i, j):
rob, not_rob = 0, 0
for idx in range(i, j):
num = nums[idx]
rob, not_rob = not_rob + num, max(rob, not_rob)
return max(rob, not_rob)
if not nums:
return 0
elif len(nums) == 1:
retu... | [
"mayank.maheshwari625@gmail.com"
] | mayank.maheshwari625@gmail.com |
03c5e284066da9d303f45f391c6d39151fb59a4b | 6be2b9c3a7dcc95ed04ce8a5af912014833b769a | /app/main/views.py | 7bd0437c264b1feb1213cb896371a4b80751cd1f | [
"MIT"
] | permissive | MaryMbugua/Newshighlighttwo | 05219428c9e568122cb59f7a2ea90b758edf8c76 | 143fd75b7c0e36a48e25240ff150d10781c77470 | refs/heads/master | 2020-03-08T19:47:28.086076 | 2018-04-23T08:50:25 | 2018-04-23T08:50:25 | 128,363,872 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,157 | py | from flask import render_template,request,redirect,url_for
from . import main
from ..requests import get_sources,get_articles
from ..models import Newsarticle,Newssources
#views
@main.route('/')
def index():
'''
view root page function that returns the index page and its data
'''
title = 'Home - Welco... | [
"marymbugua.nm@gmail.com"
] | marymbugua.nm@gmail.com |
547e14a84fc8778fc11f680ffebcb79a540ec9df | e40e45e60e6282c3d7492285a5a562d48534694b | /urllib01.py | 4eafe74dcf2ff1f2e6b4ddaec9a483fa9563bf14 | [] | no_license | I-love-programming/Python | a54ac2be791908b2e9ebcda998b6d4fd15e60ae6 | 9678e06da13dd1ffb5a4e6bd0e0ace5de684ed51 | refs/heads/master | 2020-03-29T08:39:27.174781 | 2018-09-21T07:57:20 | 2018-09-21T07:57:20 | 146,417,518 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 198 | py | import urllib.request
#import urllib.parse
#import urllib.error
img = urllib.request.urlopen('http://data.pr4e.org/cover.jpg').read()
fhand = open('cover.jpg', 'wb')
fhand.write(img)
fhand.close()
| [
"42766819+I-love-programming@users.noreply.github.com"
] | 42766819+I-love-programming@users.noreply.github.com |
20d917cc3797264665aded7c8f354ca5a5d613dc | db64dead17cc3c774eb1f93fc943088fef3a1bb5 | /coffee/migrations/0005_auto_20211013_1854.py | af59756f30370c497d53865cfcc4598508e1bce5 | [] | no_license | kylehorton33/coffee-roasts | 9563f3754c877b278d5994471fe70f2c778832ac | 68ec6d44fb696a73d4fe4f82471ba8f50393c68c | refs/heads/main | 2023-08-22T19:41:03.315300 | 2021-10-19T20:40:44 | 2021-10-19T20:40:44 | 416,456,279 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,123 | py | # Generated by Django 3.2.8 on 2021-10-13 18:54
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('coffee', '0004_auto_20211013_1835'),
]
operations = [
migrations.RenameField(
model_name='bean',
old_name='origin_co... | [
"kylehorton33@gmail.com"
] | kylehorton33@gmail.com |
46ce7d4c4512f5c123463e221c4a945c749451d6 | 86e96cb7f7b0af76f234cfbdd625ab1d02157838 | /PortScanner.py | 1409127a09ce6d0c4cb4e5dd20ec08e76ee5ee7c | [] | no_license | VishalDhiman0/MutithreadedPythonPortScanner | 3f85359de854426ba911c77f1cdb41d5137570b3 | e5a7183a8773b5a1ce86dbaa6aabd54d49064431 | refs/heads/master | 2020-12-22T06:52:08.848424 | 2019-12-27T14:38:04 | 2019-12-27T14:38:04 | 236,702,744 | 1 | 0 | null | 2020-01-28T09:50:42 | 2020-01-28T09:50:41 | null | UTF-8 | Python | false | false | 601 | py | import threading as t
import socket
import sys
import time
IP = sys.argv[1]
FOR_EACH_THREAD = int(sys.argv[2])
PORT_START = int(sys.argv[3])
PORT_END = int(sys.argv[4])
def isOpen(lPort, uPort):
for port in range(lPort, uPort + 1):
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
try:
... | [
"manuver@Manuvers-MacBook-Air.local"
] | manuver@Manuvers-MacBook-Air.local |
1eac7efa4730d1fd399e09dc9b10763562ca5e44 | a04c9fa0cf8cb1c963118ec47c4ba85b23d9b25b | /proxy/ykt_proxy/data_transfer/module_managers/hnit_manager.py | da7c63ef29cf682db53295388c4c2f6f36fd5a51 | [] | no_license | idnu11/ykt_oracle | 08a2df5b58211f951326ad6229d9de1ecc254869 | 77ecdf210ca797aae88ad784434e16edbddc84e1 | refs/heads/master | 2023-05-29T23:21:11.918260 | 2020-08-27T06:53:03 | 2020-08-27T06:53:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,522 | py | # -*- coding:utf-8 -*-
from data_transfer.data_proxy_utils import OracleTransferHandler
from data_transfer.utils.common_tools import cal_md5
from data_transfer.utils.datetime_utils import get_now_datetime_str, FORMAT_DATE_WITHOUT_SEPARATOR
def get_db_client():
"""
数据库连接
"""
db_client = OracleTransferH... | [
"fwp@myhost.local"
] | fwp@myhost.local |
0a6a030632d96082c93c2189ddaa06a476cd147f | 76debae75055e0e4dc6e87c4c13c21ab5b7d8ae8 | /settings.py | 995e7304c00d05c21cdf8a28add5f03f818aa7ed | [] | no_license | leoribeiro/projeto | 5c57f95a2da46c573067b76ed4e062f5a784d543 | 89003f98a12bfba9070807cd9b687aa7172d99b7 | refs/heads/master | 2016-09-06T03:35:13.676228 | 2011-07-01T22:08:33 | 2011-07-01T22:08:33 | 1,985,690 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,299 | py | # Django settings for projeto project.
DEBUG = False
TEMPLATE_DEBUG = DEBUG
import os
PROJECT_DIR = os.path.dirname(os.path.abspath(__file__))
ADMINS = (
# ('Your Name', 'your_email@example.com'),
)
MANAGERS = ADMINS
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3', # Add 'postgre... | [
"leonardofribeiro@gmail.com"
] | leonardofribeiro@gmail.com |
196a8d28085738fdda38ea2f078b8fb542ec2300 | 189c99816118ac6334fb65f1ef611c71eb756ead | /0x08-python-more_classes/6-rectangle.py | 76a2c927a7745e18c819895c16ccb3f69c5e9f0f | [] | no_license | MadmanSilver/holbertonschool-higher_level_programming | 4d51e308636ccc37271869dd830f700d8201948e | 09e47b319d9bd674519b13263a74822198d5932c | refs/heads/master | 2022-12-18T23:40:37.862157 | 2020-09-25T02:41:01 | 2020-09-25T02:41:01 | 259,349,627 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,083 | py | #!/usr/bin/python3
""" Contains the Rectangle class. """
class Rectangle:
""" Defines a rectangle. """
number_of_instances = 0
def __init__(self, width=0, height=0):
""" Sets up the rectangle instance. """
self.width = width
self.height = height
Rectangle.number_of_instan... | [
"silverwolf4350@gmail.com"
] | silverwolf4350@gmail.com |
36053cd4f7052d2c49e814e7fa74cecc9dae5487 | 86372d9b452e2d52d54697c4016c76e86fa997bb | /MSHacks.py | 86550423b9f0d1075348e76daebec8e61474d2c8 | [] | no_license | ROOT-HAWK/hackbmu_skynet | 5ed35111bec93e6e07d9f8d9b5f0f5651e0f001c | 2a3fa6fd6774a6072928dbee585ccc1fbe645a7a | refs/heads/master | 2020-05-31T01:45:20.701998 | 2019-02-05T16:31:57 | 2019-02-05T16:31:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,295 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Fri Aug 31 15:30:03 2018
@author: error404
"""
#Importing Datasets
import os
import numpy
import pickle
import pefile
import pandas as pd
from sklearn.preprocessing import LabelEncoder
from sklearn.model_selection import train_test_split
from sklearn.prep... | [
"noreply@github.com"
] | noreply@github.com |
b2c43755d584abbfdc3f2ca41751ee80d8ce4d96 | 1b6fc1c648ad16e318ca5929d00e0aca3dad94e2 | /Complex_function.py | 7783c04b315b3d220e4bed7d27ae16cb676ba891 | [
"BSD-3-Clause"
] | permissive | MichaelDoron/HINT | d0d3a5c561641f2632700a6678b3a84b99138cc4 | cdad501498420f721de4eb15b856a0f255fa3671 | refs/heads/master | 2020-04-20T16:11:13.863911 | 2019-07-28T17:40:40 | 2019-07-28T17:40:40 | 168,951,521 | 3 | 2 | null | null | null | null | UTF-8 | Python | false | false | 4,780 | py | #!/usr/bin/python
import cPickle as pickle
import itertools
import pandas as pd
import numpy as np
from scoop import futures
sort_key = lambda x : int(x[1:])
feature_names = sorted(['X{}'.format(ind) for ind in range(1, 10 + 1)], key=sort_key)
m = len(feature_names)
feature_pairs = sorted([sorted(pair) for pair in ... | [
"noreply@github.com"
] | noreply@github.com |
66039776640621b22deac67a2d6893965f4e054e | c996e6d363c2995edf78416a8447fb7141468b84 | /Alabama/item.py | 8decf67594ef17665a9a111a877fa0b09606c309 | [] | no_license | sghavami/WIP | 319815eb8a6ac3f73b01454ecd111170e280bf0b | 6d2383155d7417ecc100c4353fa580fefdbe2e2c | refs/heads/master | 2020-12-02T06:35:39.590709 | 2018-08-28T18:47:47 | 2018-08-28T18:47:47 | 69,872,306 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,040 | py | #XAPATHS
# Name: //*[@id="ctl00_ContentPlaceHolder1_Label1"]/div[1]/div[2]/span
# Facility: //*[@id="ctl00_ContentPlaceHolder1_Label1"]/div[2]/div[2]/span
# Status: //*[@id="ctl00_ContentPlaceHolder1_Label1"]/text()[1]
# Contact: //*[@id="ctl00_ContentPlaceHolder1_Label1"]/b[2]
# Phone: //... | [
"sghavami@americanprogress.org"
] | sghavami@americanprogress.org |
a07dc17d278f6324e4c84ae179a611491324b249 | 67498651fbfdf8625f81d32fd667f4de66526b7d | /manage.py | 9c3aaad4276c9e7aee2e90dca42e6846bb8860e2 | [] | no_license | alex0625/DjangoTeamwork2 | 82026371e985a426212934fa6849ec827e7cac30 | d208558ad424da5171856f4a93ed86090642d79c | refs/heads/master | 2022-11-11T23:23:30.637452 | 2020-01-07T14:47:58 | 2020-01-07T14:47:58 | 228,132,254 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 629 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'TeamWork2.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise Impo... | [
"alex860625@gmail.com"
] | alex860625@gmail.com |
df63142551978c88059177b1d9436f20f2a1e63b | e89980fb0f0ddd6b5b036797862e65a0c2a92296 | /predict.py | db23c234d59de76594af12225c6b55509a944ac3 | [
"MIT"
] | permissive | 582751489/Evaluation_for_PDTR | 641864eb18ba72fc2cc7acff3d5d2b2c91b70702 | 80e80928f609cc3ceece4bf98a997fadd9de5ba9 | refs/heads/master | 2023-01-02T16:46:14.271241 | 2020-10-29T16:07:45 | 2020-10-29T16:07:45 | 308,378,476 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,001 | py | from __future__ import division, print_function, absolute_import
import sys
#sys.path.remove('/opt/ros/kinetic/lib/python2.7/dist-packages')
import os
import datetime
from timeit import time
import warnings
import cv2
import numpy as np
import argparse
from PIL import Image
from yolo import YOLO
from collec... | [
"noreply@github.com"
] | noreply@github.com |
501843045088323f3dfc761ee024a82a9844d11d | 908e429f6653179c2bce7545c4554ac94769a21f | /python/easy/sets.py | d50bf759bce68c5f1ce29de53a77e5db2f662eee | [] | no_license | transeos/hackerrank | 80a98d0309eec3c27b3c6b2f7f289919f281314e | fea574ea3a818d4069947cf1eb93c0ac498d1171 | refs/heads/master | 2022-07-02T03:59:24.348850 | 2022-06-11T16:26:07 | 2022-06-11T16:26:07 | 186,157,157 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 610 | py | #!/usr/bin/python3
# -*- Python -*-
#
#*****************************************************************
#
# hackerrank: https://www.hackerrank.com/challenges/py-introduction-to-sets/problem
#
# WARRANTY:
# Use all material in this file at your own risk.
#
# Created by Hiranmoy Basak on 18/05/18.
#
#****************... | [
"hiranmoy.iitkgp@gmail.com"
] | hiranmoy.iitkgp@gmail.com |
7b20925826ff9ba3d246049a7dcdd545accfb149 | 59fdc0df43f1c80443c3c9a467823041a138e3d1 | /examples/bert.py | 355014443939bb628407e7fa48b6777bd5724fd3 | [
"Apache-2.0"
] | permissive | Bonjuor-zyx/OCGGS | b82db29bc55d976879089617481b03b13f88ecc9 | 7b4c361732f05afa73ede40f44c9adcfc493d81f | refs/heads/master | 2022-12-10T06:51:34.747830 | 2020-09-06T14:39:14 | 2020-09-06T14:39:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,967 | py | import taso as ts
import onnx
import os
import argparse
import re
seq_length = 64
hidden_dims = 1024
def attention(graph, input, heads):
d_model = input.dim(1)
d_k = d_model // heads
assert input.dim(1) % heads == 0
weights = list()
for i in range(3):
weights.append(graph.ne... | [
"noreply@github.com"
] | noreply@github.com |
1dcdc38f52c6481fe3d5d63ffbe9bdd3a0e7c1c2 | b4dc803ccb6c712c919bb3c47802f662003f11a6 | /autocutpy/test/get_path.py | 2ed97d906e04fa85c32d1827078bc5d320ebcc69 | [
"MIT"
] | permissive | MagicManLearnProgramming/autocutpy-project | e4a7e6e010ed0f760c6f5ea71466402ca21fbf61 | e84a19096c40c046d7e979e109c460e64192eb0a | refs/heads/master | 2021-01-11T15:59:42.225430 | 2017-02-14T04:43:08 | 2017-02-14T04:43:08 | 79,980,264 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 852 | py | #! /usr/bin/env python
# coding=utf-8
import cgi
header = "Content-Type: text/html\n\n"
formhtml = """<HTML><HEAD><TITLE>get path demo</TITLE></HEAD>
<FORM ACTION="get_path.py">
<BODY><H3>GET PATH</H3>
<B>Enter your path</B>
<INPUT TYPE=hidden NAME=action VALUE=edit>
<INPUT TYPE=text NAME=path VALUE="NEW... | [
"noreply@github.com"
] | noreply@github.com |
9ca4e6daf4d57f0cb0f0fb019fd8973e213c3d55 | 57e34560c481ec2064c17802533c1c9ef758b6c4 | /长度最小的子数组/solution2.py | 4aedca433eed10d3ffe403f29daa4f007707e84d | [] | no_license | jackwzx/leetcode | ef9ce357d4255c8bf9df13005bc27603a068b52c | 5ae32fd6908c7ad6ab2db692cde3d7b47352c7c1 | refs/heads/master | 2020-09-28T19:54:57.422058 | 2020-05-05T12:12:04 | 2020-05-05T12:12:04 | 226,851,548 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 575 | py | #!/usr/bin/env python
limit = 7
class Solution(object):
@staticmethod
def answer(nums):
l_sum = 0
j = 0
ans = float("inf")
for i in range(len(nums)):
while j < len(nums) and l_sum < limit:
l_sum += nums[j]
j += 1
if l_su... | [
"jackwangliang@didichuxing.com"
] | jackwangliang@didichuxing.com |
d8a5369ec3577bc1d777e5e160eec363318beb90 | 273f078af780f248963735794ffbfd9d955115ea | /test playground.py | 734f5a4708de64bdb1a21f17663d3db9eb5aff1b | [] | no_license | schwartz89/webscraper | 0dbc3725736988b913abb9209f8e4dffc2f2dece | f519e266af3849dabd37109c6db7945ca633dc78 | refs/heads/master | 2021-05-21T15:47:58.047532 | 2020-04-24T10:59:44 | 2020-04-24T10:59:44 | 252,702,855 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,061 | py | x = "harry"
print("x is: " + str(x))
print("x is this type: " + str(type(x)))
# if isinstance(x, list):
# print("it's a list of this many names: ")
# for i in x:
# print('*')
# if isinstance(x, tuple):
# print("it's a tuple of this many names: ")
# for i in x:
# print('*')
# if isinstan... | [
"jonnie_schwartz@hotmail.com"
] | jonnie_schwartz@hotmail.com |
5c9ed82d594bead685e6848961262bb548579afa | 6b49b624a5111e7b828c4e962b467437d0550f32 | /src/zen/tests/memlist.py | e9e5c518b2786de615ffe32bd6a18fd73d45050a | [
"BSD-3-Clause"
] | permissive | markditsworth/zenlib | a3b9b9671d87cf7ca8caeef871c6ae50a5e54dff | c384d613963f6eed8ddfddc08c0ef4a64cf21897 | refs/heads/master | 2020-05-01T02:53:01.033049 | 2019-03-31T03:23:08 | 2019-03-31T03:23:08 | 177,231,151 | 0 | 0 | null | 2019-03-23T01:42:29 | 2019-03-23T01:42:29 | null | UTF-8 | Python | false | false | 2,709 | py | import zen
import zen.io.memlist as memlist
import unittest
import os
import os.path as path
import tempfile
class MemListTestCase(unittest.TestCase):
def test_write_compact_undirected(self):
G = zen.Graph()
G.add_nodes(5)
e1 = G.add_edge_(0,1)
G.add_edge_(1,2)
# this should succeed
fd,fname = tempfil... | [
"druths@networkdynamics.org"
] | druths@networkdynamics.org |
48d2d6fd3e3dad528adee8a78106f0789fea8382 | bcf56ed799b0ff57f224dd2b9be7b4865db8b415 | /Advancedjiandaoshitoubu.py | 3168a81847e959bf780a381ba3723f5edcec5854 | [] | no_license | Edward517/First-Python-Game | 11863f74efa37f5d4cde6a926fe778b1dd2e0553 | 2396a815e7bfdd8c244e60745e34f8f111f57f27 | refs/heads/main | 2023-02-15T13:12:47.372305 | 2021-01-15T04:27:18 | 2021-01-15T04:27:18 | 329,806,166 | 0 | 0 | null | 2021-01-15T04:24:25 | 2021-01-15T04:13:38 | null | UTF-8 | Python | false | false | 1,819 | py | import random
class Player:
def __init__(self,name,age,hand):
hands=["Fist","Scissors","Paper"]
self.name=name
self.age=age
self.hand=hands[hand]
class Hero(Player):
def __init__(self,name,gender,age,hand):
super().__init__(name,age,hand)
self.gender... | [
"noreply@github.com"
] | noreply@github.com |
181a25b998b188559a7c17997e8ce525d68a3cf4 | f4b60f5e49baf60976987946c20a8ebca4880602 | /lib/python2.7/site-packages/acimodel-1.3_2j-py2.7.egg/cobra/modelimpl/fv/aeppconfissues.py | c23c2662a913b2fdb31f332c39cb53a959687641 | [] | no_license | cqbomb/qytang_aci | 12e508d54d9f774b537c33563762e694783d6ba8 | a7fab9d6cda7fadcc995672e55c0ef7e7187696e | refs/heads/master | 2022-12-21T13:30:05.240231 | 2018-12-04T01:46:53 | 2018-12-04T01:46:53 | 159,911,666 | 0 | 0 | null | 2022-12-07T23:53:02 | 2018-12-01T05:17:50 | Python | UTF-8 | Python | false | false | 6,453 | py | # coding=UTF-8
# **********************************************************************
# Copyright (c) 2013-2016 Cisco Systems, Inc. All rights reserved
# written by zen warriors, do not modify!
# **********************************************************************
from cobra.mit.meta import ClassMeta
from cobra.m... | [
"collinsctk@qytang.com"
] | collinsctk@qytang.com |
2fff2263e6d6daa94ca502daa94ca3db8a804eea | c00a11780cbc4bcce5487d24475887d70b3972b7 | /1_Vectors/14_HermitianTranspose.py | 73730d678e9fd1dfeba413f95db734fff53372d5 | [] | no_license | rajputsher/LinearAlgebra | 1305261a8795a598bf470b375f0d8da128f6366c | a377a9070f6dfe1033fc98529e8c89ba12772d6d | refs/heads/master | 2023-04-19T22:43:41.045075 | 2021-05-11T13:59:06 | 2021-05-11T13:59:06 | 327,656,008 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 487 | py | import numpy as np
# create a complex number
z = np.complex(3,4)
# magnitude
print("magnitude: ",np.linalg.norm(z) )
# by transpose?
print("by transpose: ", np.transpose(z)*z )
# by Hermitian transpose
print("by hermitian transpose: ", np.transpose(z.conjugate())*z )
# complex vector
v = np.array( [ 3, 4j, 5+2j, ... | [
"shersingh72@gmail.com"
] | shersingh72@gmail.com |
abd67ca206bbbefe8db51c4120f1011c9b6a16a1 | bc441bb06b8948288f110af63feda4e798f30225 | /webshell_sdk/model/collector_service/alias_metric_with_one_original_metric_pb2.py | 4cb5fc609cbe47718128bc79d754b117d6e91800 | [
"Apache-2.0"
] | permissive | easyopsapis/easyops-api-python | 23204f8846a332c30f5f3ff627bf220940137b6b | adf6e3bad33fa6266b5fa0a449dd4ac42f8447d0 | refs/heads/master | 2020-06-26T23:38:27.308803 | 2020-06-16T07:25:41 | 2020-06-16T07:25:41 | 199,773,131 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | true | 9,177 | py | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: alias_metric_with_one_original_metric.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _me... | [
"service@easyops.cn"
] | service@easyops.cn |
a43037cecd02109ee36ed4c1779054b038cdbf8b | c9cb8301f2171fd1faa260e83e0ec410860bcb61 | /recognize.py | f6a576ab5055f8028a0af170fa99d3e140333bdb | [] | no_license | joshinakul/ISeeU | 564c0fb64bf8fe9893b7e6afa1920527c83dd5be | b6d7da9f6231dd46036178ac1e4e849be1fe42be | refs/heads/master | 2021-10-21T13:58:50.432696 | 2019-03-04T10:31:24 | 2019-03-04T10:31:24 | 126,091,542 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,322 | py | import cv2
import sqlite3 as s
cap = cv2.VideoCapture(0)
# Create the haar cascade
faceCascade = cv2.CascadeClassifier("myfacehaarcascade.xml")
model = cv2.face.LBPHFaceRecognizer_create()
model.read('recognizer/trainer.yml')
font=cv2.FONT_HERSHEY_DUPLEX
path="dataSet"
def getProfile(idx):
con = s.connect('d... | [
"nakulj3010@outlook.com"
] | nakulj3010@outlook.com |
4c87daaf33ed1f8a0257390a20d434d3aa90dc2d | a986593d1e75cb1f306ca4375c3b794f4c5a7837 | /only_map.py | 4bbcbec74806ece836b71dff445c889604e23cec | [] | no_license | whumashuai/variable_classification | c224a772b2d93b09fd14477b6daae3deb3d2823d | 1203143c8827a81f0f810e8eb20fa6ab6891c062 | refs/heads/master | 2021-04-12T02:45:10.932791 | 2018-09-10T04:58:13 | 2018-09-10T04:58:13 | 120,773,748 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 545 | py | import random
in_path = r"E:\variable_classification\variable_classification\data3\no_list_template_short.txt"
out_path = r"E:\variable_classification\variable_classification\data3\no_list_template_short_map.txt"
with open(in_path, 'r') as in_file, open(out_path, 'w') as out_file:
for line in in_file:
sep ... | [
"wust_mashuai@163.com"
] | wust_mashuai@163.com |
48bdd806d6f2d9d939665e3fb46fd04520155043 | 3caa6b8ee1d6916368a060b39e5513f520cd0153 | /D-13CornersDetection.py | 79c3f9d7c8a8e9214d1d41b06f7b3496e6846a8c | [] | no_license | olcaycoban/ImageProcessing | 68326ea4c23f8cded823977d7a0edb18a687f229 | 2105184c7d792e2c9e59018f0a3d062e67eda79a | refs/heads/master | 2020-08-28T01:16:55.783678 | 2020-01-31T23:19:48 | 2020-01-31T23:19:48 | 217,544,539 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 346 | py | import cv2
import numpy as np
img=cv2.imread('images/Shapes.png')
gray=cv2.cvtColor(img,cv2.COLOR_BGR2GRAY)
gray=np.float32(gray)
corners=cv2.goodFeaturesToTrack(gray,300,0.001,10)
corners=np.int0(corners)
for corner in corners:
x,y=corner.ravel()
cv2.circle(img,(x,y),3,255,-1)
cv2.imshow('Cor... | [
"noreply@github.com"
] | noreply@github.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.