blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 213
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 246
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
d1165753cc97997fada28074b3e3231c3cbb3a47 | a16d3c43e455298c371ff853e14acd8eea1db8fd | /test/test_orf.py | 076e7f901505901fbbf9ffffac9035415f7ede1c | [] | no_license | TyloRoberts/fosvis | a17eebe9dc29a589ac38c902bf1b06841b0a9e53 | 992535b2799dc04334b7be97f81b64e986dcd0cf | refs/heads/master | 2023-02-19T00:38:36.931003 | 2021-01-21T22:19:05 | 2021-01-21T22:19:05 | 316,780,812 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,175 | py | from fosvis import orf
import unittest
from Bio.Seq import Seq
from Bio.SeqRecord import SeqRecord
import filecmp
import os
import pandas as pd
from pandas.testing import assert_frame_equal
import difflib
# Done
class test_run_prodigal(unittest.TestCase):
"""
Checks that prodigal creates both output files
... | [
"troberts@shamwow.microbiology.ubc.ca"
] | troberts@shamwow.microbiology.ubc.ca |
ef16a7892614d638cd0b989921e2c479a82bda61 | 3ef70fe63acaa665e2b163f30f1abd0a592231c1 | /stackoverflow/venv/lib/python3.6/site-packages/pip-19.0.3-py3.6.egg/pip/_vendor/requests/api.py | abada96d4627a52bf0f6040ee2e08b0eff32c77c | [
"MIT"
] | permissive | wistbean/learn_python3_spider | 14914b63691ac032955ba1adc29ad64976d80e15 | 40861791ec4ed3bbd14b07875af25cc740f76920 | refs/heads/master | 2023-08-16T05:42:27.208302 | 2023-03-30T17:03:58 | 2023-03-30T17:03:58 | 179,152,420 | 14,403 | 3,556 | MIT | 2022-05-20T14:08:34 | 2019-04-02T20:19:54 | Python | UTF-8 | Python | false | false | 6,253 | py | # -*- coding: utf-8 -*-
"""
requests.api
~~~~~~~~~~~~
This module implements the Requests API.
:copyright: (c) 2012 by Kenneth Reitz.
:license: Apache2, see LICENSE for more details.
"""
from . import sessions
def request(method, url, **kwargs):
"""Constructs and sends a :class:`Request <Request>`.
:para... | [
"354142480@qq.com"
] | 354142480@qq.com |
041645ad029ae1da78cd282c6980c9e489f5b47e | 59cdb8b3995ee5938dc4710e32f29ac273410265 | /_archive/nosepoke_code/_old/cuedtaste_abu3.py | ca2954d2612ada74593f061d92279ad1919ac11a | [] | no_license | abuzarmahmood/firing_space_plot | 15ff667fada8f4e985a6a6c6f31261b72b0f4b60 | 9fe925d9b443fda96d8e23d6d2d2d2aa60b08f15 | refs/heads/master | 2023-07-25T01:39:31.942434 | 2023-07-15T14:24:38 | 2023-07-15T14:24:38 | 139,602,984 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,345 | py | """
Code to ONLY CONTROL cue and RESPOND to nosepoke
No recording --> Leave that to Intan Board
"""
from threading import Thread, Lock
import time
import RPi.GPIO as GPIO
import datetime
import numpy as np
class nosepoke_task:
"""
- Class to run nosepoke task
- Stores main variables and performs appropri... | [
"abuzarmahmood@gmail.com"
] | abuzarmahmood@gmail.com |
434e4fc8b768aec3a7aa946368fc48bff819ef15 | 2ee1d66a04cac94aeb5a69642ab317553efce6fd | /data/prep_review.py | 633d0e071777aedd0dc489bf1bee737651e73665 | [] | no_license | tysonmcleod/LDSA-Project | fd4eccfaf248eacb1bf6f0e01d502e0db25bf16a | 9fc96b98324b1e3bb1e63fbbf0594243e51306ba | refs/heads/master | 2020-05-24T15:42:25.802172 | 2019-06-02T14:48:53 | 2019-06-02T14:48:53 | 187,337,782 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 487 | py | lines = []
count = 0
with open("./yelp_academic_dataset_review.json", "r", encoding="utf-8") as reader:
while count <= 1000000:
lines.append(reader.readline())
count += 1
with open("./yelp_academic_dataset_review.json", "r", encoding="utf-8") as reader:
for i, l in enumerate(reader):
... | [
"moritz.eck@gmail.com"
] | moritz.eck@gmail.com |
74b88d61b79bd5ebc7c8ea4b42c60bfc7ba59bc5 | 130a98632d2ab4c171503b79e455b7aa27a1dda4 | /models/official/utils/flags/_conventions.py | b6f248b443a689f82770c2a725791ec76dc46591 | [
"Apache-2.0",
"MIT"
] | permissive | aboerzel/German_License_Plate_Recognition | d7fc0314295f5cf0c9d7ae9c93a795e3ef1c5787 | 6fc53292b1d3ce3c0340ce724c2c11c77e663d27 | refs/heads/master | 2023-01-30T18:08:37.339542 | 2023-01-07T07:41:36 | 2023-01-07T07:41:36 | 245,586,430 | 34 | 12 | MIT | 2023-01-07T07:41:37 | 2020-03-07T07:16:51 | Python | UTF-8 | Python | false | false | 1,808 | py | # Copyright 2018 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... | [
"andreas.boerzel@gmx.de"
] | andreas.boerzel@gmx.de |
c798854445e4d463535272b78fde8fdc4951b180 | 3ef4c564b437e37d4139b2c64e46a6c223991dfe | /mchgenalg/__init__.py | 34cce566e2f810607f63d53e5c18d16bc5f07e3d | [
"MIT"
] | permissive | TshepoMK/python-genetic-algorithm | c981ba42b9f23c9d8702fcc26b80549daaab97fc | 3388fa8c09960ddcd4f79e0bd3c9cc355713c76a | refs/heads/master | 2020-05-15T07:40:58.391946 | 2017-01-11T14:29:11 | 2017-01-11T14:29:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 69 | py | from .genalg import GeneticAlgorithm
__all__ = ["GeneticAlgorithm"]
| [
"chovanecm@gmail.com"
] | chovanecm@gmail.com |
a08261dfb20e2f5f2b1ccac1c04c7469f46f54e4 | 25ebec4dd05334b63d62e238ccaa1700fdb7dcc4 | /Arase/PWE/DeleteDate.py | 54b02b15eff997334804e5fcbe1ec03e7b387862 | [
"MIT"
] | permissive | mattkjames7/Arase | 2513416f0211f82a75d6b963fc8d6ea081dbc4f0 | 996167be35a13bbb1fdddfbe75e3a06d124b1d25 | refs/heads/master | 2023-04-07T03:54:59.407811 | 2021-05-20T12:03:50 | 2021-05-20T12:03:50 | 187,637,689 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 613 | py | import numpy as np
from ..Tools.Downloading._DeleteDate import _DeleteDate
from .. import Globals
def DeleteDate(Date,subcomp,L,prod,Confirm=True):
'''
delete all of the files from a given date
'''
if subcomp == 'hfa' and L == 3:
idxfname = Globals.DataPath + 'PWE/Index-L{:01d}-{:s}.dat'.format(L,subcomp)
da... | [
"mattkjames7@gmail.com"
] | mattkjames7@gmail.com |
0ca1c1b2b6d4a5a92a1cf44d6e0600fa459c73fa | 78f43f8bd07ae0fc91738a63cd7bbca08ae26066 | /leetcode/interval/merge_interval.py | 9f4a681237c817d9390d7cf79195feeb3effddb0 | [] | no_license | hanrick2000/LeetcodePy | 2f3a841f696005e8f0bf4cd33fe586f97173731f | b24fb0e7403606127d26f91ff86ddf8d2b071318 | refs/heads/master | 2022-04-14T01:34:05.044542 | 2020-04-12T06:11:29 | 2020-04-12T06:11:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,315 | py | from leetcode.interval.interval import Interval
class Solution(object):
def merge(self, intervals):
"""
:type intervals: List[Interval]
:rtype: List[Interval]
"""
if len(intervals) <= 1:
return intervals
def overlap(l1, l2):
"""
... | [
"dofu@ebay.com"
] | dofu@ebay.com |
929c50e581ba266a4e5e97563ad0a5e617df9c5d | c7f1e28d23032ef0aeaeb12a8c295e31fbae9577 | /Cap3_ListsAndFunctions/SearchList.py | 90a4a1da876f3d2d991cc467a59ff2713f1e9228 | [] | no_license | fabiomeendes/nanocourses-python | cd9358dc970fe1b8cbeb40f7610908bd094b9571 | b4c237cc04e5531dbc52338f8045b7039c5a1983 | refs/heads/master | 2020-08-06T10:16:43.308402 | 2019-10-06T21:59:05 | 2019-10-06T21:59:05 | 212,940,133 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 427 | py | boyfriends = []
girlfriends = []
answer = "S"
while answer == "S":
boyfriends.append(input("Boyfriend: "))
girlfriends.append(input("Girlfriend: "))
answer = input("Type \"S\" to continue: ").upper()
search = input("\nType the person name to search: ")
for i in range(0, len(boyfriends)):
if search ==... | [
"fabio.camillo@3xsolutions.com.br"
] | fabio.camillo@3xsolutions.com.br |
b459688eeae1fbbe8dd66b3c76bfa9b38f047c97 | 3e8b539cc1fb1c1b10cb703576447b6dc7c74f35 | /Aufgabe 1/News Agent/logic.py | a39d762921d906ce098f4f4e9cc7496f931cbc98 | [] | no_license | s3fagawaakaderkingvomhinterhof/Intelligente-Agenten | b363f16cd12339a1f7644fe5ac27746c4f29fefd | e9bba8a3c47f28de8fc86e1bec720b69d77a62fd | refs/heads/master | 2022-12-25T03:05:12.393254 | 2020-09-16T08:51:58 | 2020-09-16T08:51:58 | 293,719,737 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,631 | py |
# Newsagent
# functions for web-requests
from bs4 import BeautifulSoup
import requests
def get_departments():
url = 'https://www.sueddeutsche.de/'
response = requests.get(url)
text = response.text
soup = BeautifulSoup(text, features="html.parser")
departments = soup.find('ul', class_='department... | [
"falkogawantka@gmail.com"
] | falkogawantka@gmail.com |
df73e373c3adc0dcd365dadb07488bcb0261b1f2 | 9c1f5d8c6c7ace605c79c92f3591685520227744 | /controller.py | 90bb4262ff0f03531390c46ad815276f5e062c96 | [
"MIT"
] | permissive | churnikov/ev3_thinkers | 91d14b2827401b80fba72e64afb26d95c9f7bc4e | 3ad322c198e8625df30b0870402486c2e6151d72 | refs/heads/master | 2021-10-28T20:07:00.586810 | 2019-04-24T22:04:13 | 2019-04-24T22:04:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 496 | py | from ev3dev import ev3
left_wheel = ev3.MediumMotor('outA')
right_wheel = ev3.MediumMotor('outB')
infra_sensor = ev3.InfraredSensor('in1')
touch_sensor = ev3.TouchSensor('in2')
def forward():
left_wheel.run_forever(speed_sp=500)
right_wheel.run_forever(speed_sp=500)
def turn():
left_wheel.run_forever(sp... | [
"nikita@chur.ru"
] | nikita@chur.ru |
f01c7a44eccbf92d7cc1e3ecbafa94dc41b95918 | 8e24e8bba2dd476f9fe612226d24891ef81429b7 | /geeksforgeeks/python/easy/8_15.py | 86dea0108cdf7dbb420de013fbc38390cad29623 | [] | no_license | qmnguyenw/python_py4e | fb56c6dc91c49149031a11ca52c9037dc80d5dcf | 84f37412bd43a3b357a17df9ff8811eba16bba6e | refs/heads/master | 2023-06-01T07:58:13.996965 | 2021-06-15T08:39:26 | 2021-06-15T08:39:26 | 349,059,725 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 6,388 | py | Python – Reading last N lines of a file
**Prerequisite:** Read a file line-by-line in Python
Given a text file _fname_ , a number _N_ , the task is to read the last N
lines of the file.
As we know, Python provides multiple in-built features and modules for
handling files. Let’s discuss different ways to... | [
"qmnguyenw@gmail.com"
] | qmnguyenw@gmail.com |
2fce1969b734f3e2b2136a553945aa976d01ea51 | 61fec9a443a5642e94acd80c5c87b88dd85736f2 | /flask_app.py | a0d69efd586d5cad85f41f487958d97805cd4003 | [
"MIT"
] | permissive | MarekCichy/pt-br-classifier | b09bf66b154d68449ee81ba8e25dd27a3e645ae4 | 03119cea5032876f146d1ae15edbc70a4d63e985 | refs/heads/master | 2023-01-05T19:51:57.754040 | 2022-12-22T12:10:14 | 2022-12-22T12:10:14 | 203,243,733 | 5 | 2 | null | 2019-08-19T20:32:49 | 2019-08-19T20:15:20 | null | UTF-8 | Python | false | false | 855 | py | from flask import Flask, jsonify,request
from flask_cors import CORS
from joblib import load
#specific path for PythonAnywhere
classifier = load('/home/Mariankowlak/mysite/ptclassifier.joblib')
app = Flask(__name__)
CORS(app, resources={r"/*": {"origins": "*"}})
@app.route('/')
def hello_world():
return 'Hello f... | [
"noreply@github.com"
] | MarekCichy.noreply@github.com |
40930966a5c734365861cae377dd68f45b0e6228 | 063624e5447f1094ec8ad822f28ab1449eff1164 | /hello_world1.py | 7ebabdee709fcf18498e33cf39311f508bf5321d | [] | no_license | binnyjoseph/hello_world1 | 05d528295fca33acab71bf741a03ba9a716bc421 | c3d659b41e3c15a5504764a957c7a1f2ef884ec7 | refs/heads/master | 2021-01-19T04:34:15.099842 | 2017-03-09T11:48:05 | 2017-03-09T11:48:05 | 84,435,087 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 61 | py | ''' Program to display hello world '''
print("hello world")
| [
"noreply@github.com"
] | binnyjoseph.noreply@github.com |
7b48d917637fb4d2a301c58da1464aef2f61fbe6 | 244ecfc2017a48c70b74556be8c188e7a4815848 | /res/scripts/client/tmpconsolecmds.py | 0c0a4a16136a52bf97658edd60418a96123dc691 | [] | no_license | webiumsk/WOT-0.9.12 | c1e1259411ba1e6c7b02cd6408b731419d3174e5 | 5be5fd9186f335e7bae88c9761c378ff5fbf5351 | refs/heads/master | 2021-01-10T01:38:36.523788 | 2015-11-18T11:33:37 | 2015-11-18T11:33:37 | 46,414,438 | 1 | 0 | null | null | null | null | WINDOWS-1250 | Python | false | false | 2,405 | py | # 2015.11.18 11:51:09 Střední Evropa (běžný čas)
# Embedded file name: scripts/client/TmpConsoleCmds.py
import BigWorld
from debug_utils import *
class LanServers:
def search(self):
BigWorld.serverDiscovery.searching = 1
def stop(self):
BigWorld.serverDiscovery.searching = 0
def show(sel... | [
"info@webium.sk"
] | info@webium.sk |
7462ddc18040dea7befbfec456a283e9e675ed43 | dfb66cf39f46c46fbe3eeff1c00520a714c06015 | /Greatest common divisor.py | 270e6353f2386f1fbb97ac9e7ad5301ff18c4173 | [] | no_license | AianaG/Codewars | f507ed4174b59f753186f9d811874d6f0329ffec | 87e82a7d94bff7c094ea04b9aebb71a9268c5a9b | refs/heads/master | 2023-04-27T00:40:48.477876 | 2021-04-25T13:29:27 | 2021-04-25T13:29:27 | 356,896,660 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 88 | py | def mygcd(x, y):
if x == 0:
return y
else:
return mygcd(y%x, x)
| [
"goyal.aiana@gmail.com"
] | goyal.aiana@gmail.com |
75a852c590cbe00aed287ba19facddf4787f8cde | 5e73b4cfe286b0e4227433cde20e59f99ad88fc1 | /service/views.py | a1a989343c4b7b549a578ea70fc997e282089343 | [] | no_license | CLUTCH-ANKIT/Saptshrungi | e3d836cbc882fe2addc2f770d42f02a89003fb3d | 90a04b9160beaa1b8042e46280ab983c85daadbe | refs/heads/master | 2020-12-05T21:13:50.886893 | 2019-12-10T07:08:35 | 2019-12-10T07:08:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,356 | py | from django.shortcuts import render
from .models import Service
from .forms import AddServiceForm
from django.views import generic
from django.http import JsonResponse
from django.urls import reverse_lazy
from django.core import serializers
def addService(request):
if request.method=='POST':
form=AddServiceForm(req... | [
"rushichaudhari26@gmail.com"
] | rushichaudhari26@gmail.com |
253c252323546c2c2ba8c96b8da35b95ab07cd45 | 028b9dd96124abe8e61a52d68ea23b7bdbc46c1a | /test_poly.py | 91e7056214ae792dfe3c309e350beadb63eed124 | [] | no_license | dooglius/CSC253-shouldworkthistime | 37951ae4465095783ae71bd2c0e99d35fda884d0 | 9e329c555e2f05514cc565abe3101b6670e2c0be | refs/heads/master | 2020-05-12T15:12:31.288842 | 2014-12-13T04:34:08 | 2014-12-13T04:34:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,485 | py | import generic
import time
import numpy
def func(x):
return 10*x*x*x*x*x+4*x*x*x*x+x*x*x-20*x*x+3;
def manual(list):
for i in xrange(len(list)):
list[i] = func(list[i])
num = 1000000
arr = [0.0+x for x in range(0,num)]
n1 = numpy.array(arr,numpy.double);
n2 = numpy.array(arr,numpy.double);
n3 = numpy.array(arr,... | [
"dooglius@localhost.localdomain"
] | dooglius@localhost.localdomain |
f219968595f1bddf561f797e9fca77bb9a5dd7bd | d9d4c42185d8520b56d3f6b146886e2db9756123 | /scripts/get_classical_swine_seqs.py | e732e1685e0bd6ab41ceb240e713b31e6f9990cf | [] | no_license | rasilab/machkovech_2018 | 5863be8431f066af4880546af1f9109e0407d505 | 4c8e76ba38c8020d90f53fbaa8964b3d48ccf6ad | refs/heads/master | 2021-08-07T21:46:44.576527 | 2020-03-30T15:30:52 | 2020-03-30T15:30:52 | 133,700,172 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 6,456 | py | """Parses classical swine H1N1 genes.
Gets the PB2, PA, NP, M1, M2, NS1, and NS2 coding
sequences descended of classical swine H1N1 virus.
These sequences are aligned to the 1918 virus, with
gaps relative to this strain stripped away.
Classical swine viruses are defined on the basis that they are
H1N1 viruses from ... | [
"hmachkov@fhcrc.org"
] | hmachkov@fhcrc.org |
3f2ab7df5f4f7fc432c79ef2ed7a0604e20a3ceb | e3afad642b98f0c6cdda91b550c080f7cd6fdf4c | /epi/10-binary-trees-15-bst/BinaryTreeNode.py | dcca3a3d0241a37beb165c28593cec5c1728f1ca | [] | no_license | danielcodes/practice-problems | 50e7ceb71305f69eafcd50c1507f9aa8829a8a2c | b06dfaed6b71e5a86dc43940fb15bc2e7f07903f | refs/heads/master | 2020-04-12T06:19:25.552398 | 2016-11-30T02:13:06 | 2016-11-30T02:13:06 | 65,409,287 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 466 | py |
# module for binary trees
class Node:
def __init__(self, value, left=None, right=None):
self.value = value
self.left = left
self.right = right
self.parent = None
def printInOrder(root):
nodes = []
printInOrderUtil(root, nodes)
return nodes
def printInOrderUtil(root... | [
"daniel_1118@hotmail.com"
] | daniel_1118@hotmail.com |
eea4911c0b75ea46fa1b027b3f5c1b9a3e7ffc49 | e3839d29c7814c7938f58e30cecbe8fef36af90c | /Lamdas.py | f09d415f109907e101ab789a2368c4d64fcc7453 | [] | no_license | tec-csf/tc2017-pf-primavera-2020-equipo-3-1 | e17d7942e65030f6dda378e8c10d16614c4dbef7 | ee883beef57655db8217bd9bc3a6f4b2f0e0558f | refs/heads/master | 2022-09-14T19:32:23.495584 | 2020-06-02T16:01:51 | 2020-06-02T16:01:51 | 267,729,608 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,435 | py | import numpy as np
g=open('Probabilidades.txt',"r")
lines=g.readlines()
g.close()
lista = [ ]
cont=0
contelem=0
contex=-1
lin0 = 1
for i in lines:
if contelem==0 and cont>lin0:
contex=contex+1
if cont==0:
lin0=float(i)
else:
w=float(i)
if contex==contelem and ... | [
"noreply@github.com"
] | tec-csf.noreply@github.com |
8b40b20ddc25c39c872e71a072cf13fc2309c050 | afbc5d39cc189de52f5019a5ade8d27125d2bafa | /main.py | 3bd663acaa7116621218387a5c05f66b2c6486b2 | [] | no_license | Alphabetious/qrcode-maker | d950035ec1b034ff5c0b188d7a78f96b9c7342d4 | 5cd90816ca1e14ad9f126f50a8cb1172f983d72a | refs/heads/main | 2023-08-19T00:40:21.706897 | 2021-10-04T04:25:37 | 2021-10-04T04:25:37 | 413,272,031 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 334 | py | #You can add an additional package to this project named "pypng" if you want to save the qr code in a png format.....
#If you use a python IDE, it would be better
import pyqrcode
from pyqrcode import QRCode
s = "website link here"
url = pyqrcode.create(s)
url.svg("urpic.svg", scale = 8)
url.png('urpic.png... | [
"noreply@github.com"
] | Alphabetious.noreply@github.com |
11fb9d36c40c720438b72a603de3e62ce81150f1 | 095de609dab3f2602848a5c4328402a8ad886f7d | /examples/external_satisfy/sigma.py | fa2f63d4782cb02dfaac570f18799b0350cf2160 | [
"LicenseRef-scancode-other-permissive",
"MIT"
] | permissive | maxtuno/PEQNP | 6147be6742ce8ea17e09532f9aa8db72cdbeb430 | 2b5732f9edb18d68ebb1efdba4962420bcca7501 | refs/heads/master | 2021-10-04T06:11:46.404468 | 2021-09-25T19:32:01 | 2021-09-25T19:32:01 | 230,134,649 | 15 | 0 | null | null | null | null | UTF-8 | Python | false | false | 259 | py | import peqnp as pn
pn.engine(16)
x = pn.integer(key='x')
n = pn.integer(key='n')
pn.sigma(lambda k: k ** 2, 1, n) == x
while pn.external_satisfy(key='sigma', solver='java -jar -Xmx4g blue.jar'):
print(x, n, sum(k ** 2 for k in range(1, n.value + 1)))
| [
"oscar.riveros@peqnp.science"
] | oscar.riveros@peqnp.science |
173b57ad8c786518ac5f21dc5279642ca3cbd0c6 | d7526252d3264e33affc4622a5a244b3c8581b52 | /lib/geocode_to_small.py | 368de3c8460b2c98aafdffe57d2382841351f1b5 | [] | no_license | kogalex/tzeva_adom | d18256a69afcbb649ca5744dc8dfbc00f444030b | 3d1520223ed28915979cbedda97de4fb21478ab9 | refs/heads/master | 2020-04-17T07:53:13.740689 | 2014-07-21T20:10:10 | 2014-07-21T20:10:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 479 | py | # -*- coding: utf8 -*-
import json, requests, time
cities_json = open('city_geocode.json')
CITY_LIST = json.load(cities_json)
cities_to_geocode = {}
for k, v in CITY_LIST.items():
if v['status'] == 'OK':
try:
cities_to_geocode[k] = v['results'][0]['geometry']['location']
except Exce... | [
"kogalex@gmail.com"
] | kogalex@gmail.com |
24c00d0849b82f31a85ab6bb874148598107ac92 | afad4d43af53de357f16166f8502c204194222e3 | /Class Yapıları/deneme03.py | 1702cc4cf7188c36072feecff20175aae7640e17 | [] | no_license | erolkahraman/python | d1b1530172345a716eab8c6dae8aed89d788a8f6 | 09f797a38071db393ca8c796e4b03f7515ae8c8e | refs/heads/master | 2022-07-26T10:01:12.696273 | 2022-07-17T12:20:42 | 2022-07-17T12:20:42 | 162,548,964 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,151 | py | class Basketci():
def __init__(self,ad,soyad,boy,basket_ortalamasi,maas):
self.ad = ad
self.soyad = soyad
self.boy = boy
self.basket_ortalamasi = basket_ortalamasi
self.maas = maas
def bilgileri_goster(self):
print("""
Basketçi Özellikleri
Ad \t\t\... | [
"erol.kahraman@gmail.com"
] | erol.kahraman@gmail.com |
0c2c84e403e9f20d2561782a26be0c73590ce960 | 179d9ba63d0a9b1e07cc342534eac061ff941d94 | /facial_recognition/src/facial_node.py | b284e860fadc913c69222fe6acf40957aa9f14cc | [] | no_license | asad9520/MTRX5700_Baxter | b08d00c09076bf36bc0fa530cea694147df1effc | a21150ce54b63bea0af6a3f00d54dfb24f881323 | refs/heads/main | 2023-05-16T17:06:47.020560 | 2021-06-13T07:38:07 | 2021-06-13T07:38:07 | 367,002,290 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 781 | py | #!/usr/bin/env python
import sys
import rospy
import cv2
from std_msgs.msg import String
from sensor_msgs.msg import Image
from cv_bridge import CvBridge, CvBridgeError
class image_converter:
def __init__(self):
self.bridge = CvBridge()
self.image_sub = rospy.Subscriber("/cameras/right_hand_camera/image",I... | [
"noreply@github.com"
] | asad9520.noreply@github.com |
46e2d193b97424d1a2d8772664b01e36c0c0284e | db37fa6d91f7d3584acb3dc9a49e037215e3db76 | /training_digit.py | f6c0cd65a792ee91fe028e32938741ec91553921 | [] | no_license | Dat0309/Handwritten-Digit-Recognition | 6a61e6203f4a9234ec1d03dcd58497d839b1fd3f | baaffb666db041c2ee349b9f4f47a73aace7d093 | refs/heads/main | 2023-06-07T21:33:06.578379 | 2021-06-28T12:53:59 | 2021-06-28T12:53:59 | 380,740,593 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,766 | py |
from tensorflow import keras
from tensorflow.keras.datasets import mnist
from tensorflow.keras.models import Sequential
from tensorflow.keras.layers import Dense, Dropout, Flatten
from tensorflow.keras.layers import Conv2D, MaxPooling2D
from tensorflow.keras import backend as K
from matplotlib import pyplot as plt
imp... | [
"71766267+Dat0309@users.noreply.github.com"
] | 71766267+Dat0309@users.noreply.github.com |
fd2354fc5f8639df779bc4aed1d45cd7fb001518 | 45e68db43b2774efaf210c0de55e78a6edc9dbee | /test_system/apps/my_tests/migrations/0008_auto_20200630_1802.py | 3d3ffdf53a05ef52385f455b5109921b78969f67 | [] | no_license | AnonymCybercik/nazorat-ishi | 1d08f4abc98b71aacf2d7d3bb969028051ac40d6 | a8368e9e3a0b8b489d5027677544028d188e7c90 | refs/heads/master | 2023-02-27T12:34:33.806530 | 2021-02-05T12:19:49 | 2021-02-05T12:19:49 | 277,541,666 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 582 | py | # Generated by Django 3.0.7 on 2020-06-30 13:02
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('my_tests', '0007_auto_20200629_1257'),
]
operations = [
migrations.AddField(
model_name='student',
nam... | [
"noreply@github.com"
] | AnonymCybercik.noreply@github.com |
667dcfcdda94d91eb701455fb1c3d0c63ac7ca7e | fd09328dbd4cf8120b2af2908205c763ffb35941 | /20.py | b41e59f89dd2bfd2745cd410e7ff0bf34d9186af | [] | no_license | divyank0/euler_project | 7cc3d33f35b6fbaa585ae0ffb2e566321e42a733 | e87866471525f0e54bc69c4971115e2cef3bfc8d | refs/heads/master | 2021-01-01T03:55:13.660836 | 2016-05-03T08:32:13 | 2016-05-03T08:32:13 | 57,953,263 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 256 | py | def d (n):
summ=0;
for i in range(1,n):
if n%i==0:
summ=summ+i;
return(summ)
murgi=0;
for j in range(2,10000):
dn=d(j);
if d(dn)==j and dn!=j:
murgi=murgi+j;
print(j);
print(murgi);
| [
"divyank.agarwal1993@gmail.com"
] | divyank.agarwal1993@gmail.com |
86a50ebbc2aa2bf4ea319da0ffd475469bbd1399 | 392f9194b7d85234e19c3dae21bed193e2713014 | /美团爬虫/main.py | c8f9cdda3fd17d94c3fb11e80377a57d6f53e1ed | [] | no_license | anjia0532/reptitlesDemo | 681d91e7e61f48b6036d16bca1d95c072cb324d3 | 709e8705f011b68659302761f4218b9c7e657c42 | refs/heads/master | 2023-01-10T03:40:28.585755 | 2020-11-14T11:29:24 | 2020-11-14T11:29:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,100 | py | # -*- coding: utf-8 -*-
import time
import random
import asyncio
from exe_js import *
from pyppeteer import launch
class MeiTuan_Spider():
def __init__(self):
pass
@classmethod
async def create_browser(cls):
self = MeiTuan_Spider()
self.browser = await launch({
... | [
"65542675@qq.com"
] | 65542675@qq.com |
f0e71dab23c9d10b9ed81e223aeb65c5444569bd | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02784/s847410997.py | fd50024c37c9f2ef3942f98bcea7d5ff189e9a6b | [] | 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 | 228 | py | import sys
from itertools import accumulate
H, N = map(int, next(sys.stdin.buffer).split())
A = map(int, next(sys.stdin.buffer).split())
ans = any(map(lambda v: v >= H, accumulate(A, initial=0)))
print('Yes' if ans else 'No') | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
b523b9185d17a4f3efa4b361d2a69eff1f0dae5a | 83792f662d06bd940f3eb63bdd3107512c314d0a | /tests/ignite/contrib/handlers/test_mlflow_logger.py | cfc090538a5fda3d6eb1f25409851b5eb060643c | [
"BSD-3-Clause"
] | permissive | anmolsjoshi/ignite | 5c040af9969ed479ed4a7cc90af6a813c2099d7c | 1566604081c95905c9488a89a563b1998c6b3069 | refs/heads/master | 2022-06-22T10:27:56.765690 | 2022-06-15T13:15:14 | 2022-06-15T13:15:14 | 143,375,830 | 0 | 0 | null | 2018-08-03T04:02:32 | 2018-08-03T04:02:32 | null | UTF-8 | Python | false | false | 12,472 | py | import sys
from unittest.mock import call, MagicMock
import pytest
import torch
from ignite.contrib.handlers.mlflow_logger import (
global_step_from_engine,
MLflowLogger,
OptimizerParamsHandler,
OutputHandler,
)
from ignite.engine import Engine, Events, State
def test_output_handler_with_wrong_logge... | [
"noreply@github.com"
] | anmolsjoshi.noreply@github.com |
725ae5cb559adac73aa5ac94b2f193dbed895a91 | a2b7fba22a16f379ccca2e38d9d6291b9562abc3 | /Graph Theory/Connectivity/Biconnected_Components.py | 4967813f98137ae85ef4c6f0d35ab613b52ff0ee | [] | no_license | neelamy/Algorithm | 565c1cea72715745653e90a3dabbba1e9e283fd8 | 7c9f53ff27bcb840b9dbc20d520f003f4d76fe17 | refs/heads/master | 2020-06-10T15:53:12.967832 | 2017-07-18T07:59:32 | 2017-07-18T07:59:32 | 75,953,017 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,445 | py | # Python program to find biconnected components in a given
# undirected graph
#Complexity : O(V+E)
from collections import defaultdict
#This class represents an directed graph using adjacency list representation
class Graph:
def __init__(self,vertices):
self.V= vertices #No. of vertices
self.graph = defaul... | [
"neelamyadav.jss@gmail.com"
] | neelamyadav.jss@gmail.com |
5bd3e4e252e0b99cd0c55de795d0f9c35040dfb7 | ad2704933de4502ae9de91e6d915f9dbe010b446 | /Shi-ma/chapter07/knock63.py | c5110290b021e62eb7c1702fce7c0a42df7f114d | [] | no_license | tmu-nlp/100knock2017 | 266e68917d8d5a7f5d0c064f1bc2da5fa402a253 | 629bd1155d0fe78cd9302ae9a7cdf0922b778fe7 | refs/heads/master | 2021-01-19T17:36:53.328997 | 2017-07-24T07:09:54 | 2017-07-24T07:09:54 | 88,334,932 | 8 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,156 | py | import json
import gzip
import plyvel
import pickle
def make_name_tags_DB(data_js_path):
with gzip.open(data_js_path, 'r') as data_js:
name_tags_db = plyvel.DB('result/knock63_result.ldb', create_if_missing=True)
for line in data_js:
data_dict = json.loads(line.decode('utf-8'))
... | [
"Shimanaka_Hiroki@shima-no-MacBook-Air.local"
] | Shimanaka_Hiroki@shima-no-MacBook-Air.local |
951c2be72ed4095a14de2755f92fc75cc2bef855 | dc148a54f239a0818e6771d34f883d6b97232728 | /generate_tfrecord.py | c562508b4cb6fc2ef3da9bd3eaf178b5004af4d8 | [] | no_license | khoale95/SatImageParkingLotFinder | dfe32b8901a36a4d1ed8263745efe4ea9acdeeaf | 6b2fafcd1b5c5cb58aa681da59dd5cad158ab04f | refs/heads/master | 2021-05-03T12:01:13.250946 | 2018-05-03T03:29:49 | 2018-05-03T03:29:49 | 120,492,851 | 3 | 2 | null | null | null | null | UTF-8 | Python | false | false | 3,332 | py | """
Usage:
# From tensorflow/models/
# Create train data:
python generate_tfrecord.py --csv_input=data/train_labels.csv --output_path=train.record
# Create test data:
python generate_tfrecord.py --csv_input=data/test_labels.csv --output_path=test.record
"""
from __future__ import division
from __future__ im... | [
"twolfe99"
] | twolfe99 |
799e21a3097e1e3d725c443cdac5c82df799111d | 2faf4925329ff950fe4a898c83b4ec03f16beed2 | /Project_2/lunar_lander/environment.py | 8edc43d543f70142f16ca6d56c96c257c8a6663b | [] | no_license | rushidesai1/ReinforcementLearningProjects | 86a2893f460b11432ab494bbf86da3bda623d1ea | 006e6c45b1b99daf1028d596c5be19f67a103a1a | refs/heads/master | 2023-07-29T00:46:34.871917 | 2021-07-26T09:05:49 | 2021-07-26T09:05:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,163 | py | class Environment:
def __init__(self, env):
"""
Setup for the environment called when the environment first starts
"""
super().__init__()
self.env = env
self.env.seed(0)
self.reward_state_is_done = (0.0, None, False)
def reset(self):
"""
T... | [
"rushidesai1@gmail.com"
] | rushidesai1@gmail.com |
f0943fa2d2d87420311e0473ddf9c5fb8cbf71c8 | 87f84f65d74af6dc7b8e7eeb3d15c927944f5db3 | /SCRIPTS/svm linear pred 2.py | 6df12bac2beadd2e4a5d41b6d93225fe0fa3f134 | [] | no_license | panjoel4/ML-missingWellLogPrediction | 9c12ddc616f772dca5465fc473ba9b46f8bcf147 | 751a9a024c5f0d7eec97273c3b96f0bf653c40dd | refs/heads/master | 2023-08-15T06:55:56.761004 | 2021-10-02T06:20:51 | 2021-10-02T06:20:51 | 264,474,028 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,043 | py | # -*- coding: utf-8 -*-
"""
Created on Sun Apr 26 17:23:14 2020
@author: ASUS
"""
"""
heatmap (correlation matrix)
polinomial and radial
using trained data in 2 well
compare the mean square error between previous and new model
plot ditimpa
"""
import pandas as pd
import matplotlib.pyplot as plt
imp... | [
"noreply@github.com"
] | panjoel4.noreply@github.com |
0adfeb27a80172b94835a6caa48499f98a23fa10 | 653132f7cd602caa1a6035e31caec46b1e534120 | /not-comparison/metrics-token/tokens-single-file.py | af025bd5a24afd4f3db0756f2a5782fe34ada62b | [
"Apache-2.0"
] | permissive | deib-polimi/katena | ca4c5eb322f5e3685bd0d41a66e02ea07f4ae753 | 2afbb3fa83fda5082db2dd0ca545553dd53d2a42 | refs/heads/main | 2023-09-03T15:30:05.083094 | 2022-10-27T18:05:59 | 2022-10-27T18:05:59 | 472,717,537 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 727 | py | import argparse
import re
import sys
import glob
def tokens(code):
return re.findall(r'\w+', code)
def get_tokens_in_file(filename: str) -> int:
with open(filename) as f:
file = f.read().replace('\n', ' ')
return len(tokens(file))
def get_YAML_in_directory(dir_path: str) -> list:
return ... | [
"terraccianoluca@gmail.com"
] | terraccianoluca@gmail.com |
311cc87a3b20d8b6748d58c460a77d6164fb510b | e6dab5aa1754ff13755a1f74a28a201681ab7e1c | /.parts/lib/django-1.2/tests/regressiontests/test_client_regress/urls.py | ede4a3681af80b4442b4d39b9ee1f20d85f729a7 | [] | no_license | ronkagan/Euler_1 | 67679203a9510147320f7c6513eefd391630703e | 022633cc298475c4f3fd0c6e2bde4f4728713995 | refs/heads/master | 2021-01-06T20:45:52.901025 | 2014-09-06T22:34:16 | 2014-09-06T22:34:16 | 23,744,842 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 115 | py | /home/action/.parts/packages/googleappengine/1.9.4/lib/django-1.2/tests/regressiontests/test_client_regress/urls.py | [
"ron.y.kagan@gmail.com"
] | ron.y.kagan@gmail.com |
5514351cc2be4c6c7ebba14ab3a196cc67fa6b0c | 11a71b12d2a2520935d50e0ad35e3dfc1eefbe39 | /stocks/migrations/0003_remove_stockitem_slug.py | ed9adec91255eec63259d0ca38e68ff83b61c622 | [] | no_license | absolutedevelop/stockmanagement | c6bd4bdae11f523b9d60a5597078366848d84bdb | d7c2dc834d625be6107b87c43b95988154899a1c | refs/heads/master | 2023-04-20T14:53:42.895472 | 2021-05-14T11:59:57 | 2021-05-14T11:59:57 | 364,081,042 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 326 | py | # Generated by Django 3.2 on 2021-05-05 22:27
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('stocks', '0002_auto_20210505_2116'),
]
operations = [
migrations.RemoveField(
model_name='stockitem',
name='slug',
),
... | [
"mathalefortunate5@gmail.com"
] | mathalefortunate5@gmail.com |
e506bf720c7d527c574f30e8d79bae17303d912e | 673adb50ef81fbd3f604e398dfe70f4c2170126d | /structuredPrediction/modelMakers/dropModel.py | 17c512f7036abe77d5a526066009b2040f1cdd25 | [] | no_license | leeleavitt/cellTypePredictor | d6f7fc2307bf7c767aa2362ed9f95c974be00f31 | 3b5b364596fffdf9bc927163bf0976120a138251 | refs/heads/master | 2023-01-28T03:15:47.130683 | 2020-12-04T18:37:04 | 2020-12-04T18:37:04 | 258,028,863 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,831 | py | import pandas as pd
import numpy as np
import py.main
from py.main import imageLoader
import tensorflow as tf
from scipy.stats import describe
from tensorflow.keras.models import Sequential
from tensorflow.keras.layers import Dense, Activation, Dropout, Flatten, Conv2D, MaxPooling2D
from tensorflow.keras.layers import ... | [
"lee.leavitt.u@gmail.com"
] | lee.leavitt.u@gmail.com |
c273060f4e5c1d789d3172c4728a9d14e155ee66 | 9eea7714f7830dbf98e82836d614a8d625d10c6c | /calender/migrations/0001_initial.py | 0d762fa861e6f02267cfbb04208f1e24089ffd08 | [] | no_license | munyiv/DjangoSystem | 30cbf3f6036b4a3fa3791805dc2228f3822beca4 | 0a86b77225255d2f855a7b22a7c4c046df9b5579 | refs/heads/master | 2023-08-15T19:08:51.140434 | 2021-10-22T04:56:24 | 2021-10-22T04:56:24 | 388,866,970 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 735 | py | # Generated by Django 3.2.5 on 2021-08-15 07:40
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Calender',
fields=[
('id', models.BigAutoFi... | [
"audreymunyiva@gmail.com"
] | audreymunyiva@gmail.com |
24191fdc79d441024fb6475e576a61287f8d1b50 | 2843523c4e85133ceca0fa895a67c9286c994d85 | /mysubmission/model.py | 579a8ea87afff83eb20aceb9735f34a32f42ec71 | [
"Apache-2.0"
] | permissive | shuangyumo/AutoSpeech2020 | 387cdcadf8509f38644dfc72fa4e6885844d0ec5 | 0b4c035dac937638c18dd34d842b18f6534b2bab | refs/heads/master | 2022-08-07T16:00:58.530996 | 2020-05-18T15:14:00 | 2020-05-18T15:14:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,937 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# Created by HazzaCheng on 2019-09-22
import os
import tensorflow as tf
from tensorflow.python.keras.backend import set_session
from data_manager import DataManager
from model_manager import ModelManager
from tools import log, timeit
import res34_model
config = tf.ConfigPro... | [
"279632990@qq.com"
] | 279632990@qq.com |
2e424e970f298b6e3f96fe5aaf6fdb58c9648820 | ee4265c3c6c99f189e2202e7f0d2b5a78475376d | /code_forces/Accommodation.py | 58c0a2f2021e7ef312b1bdda00f5506ed981caeb | [] | no_license | akashgkrishnan/HackerRank_Solutions | 96f762848a77b731748d3331d17314f5e343abae | 75eeb5bd0f6e81c62ecd2898eb7de9b540e98b46 | refs/heads/master | 2023-03-18T18:01:21.402781 | 2020-09-30T18:08:43 | 2020-09-30T18:08:43 | 271,615,533 | 1 | 0 | null | 2021-03-20T05:03:59 | 2020-06-11T18:09:23 | Python | UTF-8 | Python | false | false | 143 | py | count = 0
for _ in range(int(input())):
p, q = list(map(int, input().split()))
if q - p >= 2:
count += 1
print(count)
| [
"krishnanag1996@gmail.com"
] | krishnanag1996@gmail.com |
82ae6081af92203e7de8a4eae701c34ca3048032 | fb0c02a5529f41384598dab941180152f39fa10e | /dopzad.py | d4825d0e0ef8fa4c07a4e4ec12b31c244ee1f015 | [] | no_license | Sezimm/Problem2 | 951200c92dcdbd43da3daefd32491c8850184745 | 0a3f392f025d22db4ef2ca8045c6d8a770b54f9f | refs/heads/main | 2023-02-22T02:03:25.424031 | 2021-01-26T15:49:45 | 2021-01-26T15:49:45 | 333,133,588 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 250 | py |
#2
'''
text = input()
l = text.split()
q=""
for i in sorted(l,key=lambda a: len(a)):
q = q + " " + i
print(q)
'''
p = input("vedite dannye cherez probel: \n")
s = int(input("vedite shag: "))
x = p.split()
for j in range(int(len(x))):
| [
"you@example.com"
] | you@example.com |
072f7e19cd98ce5065f789934b7814ea37d91782 | 2fdce8cd7ba299049b78f619fdf64cd65909328d | /mac/shop/admin.py | 7f7f79340971254d7532fe4657d7783907b96605 | [] | no_license | OneSakib/Ecommerce-Website-Demo-using-Djang-Framework | 7ae45822cf12f9336ff841c8723358e207534daa | cc19a54c1fd25d016dc0dceb98976a5e45651f0b | refs/heads/master | 2023-06-27T01:41:58.594218 | 2021-07-31T11:55:35 | 2021-07-31T11:55:35 | 389,879,110 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 244 | py | from django.contrib import admin
from .models import Product, Contact, Orders, OrderUpdate
# Register your models here.
admin.site.register(Product),
admin.site.register(Contact),
admin.site.register(Orders),
admin.site.register(OrderUpdate)
| [
"maliksakib347@gmail.com"
] | maliksakib347@gmail.com |
577618aff1bb4740987b1b69a5f59941d0390c84 | c3897f243ee55949de5a12d5e0952c393b9166b2 | /v0.5.0/google/cloud_v2.512/resnet-tpuv2-512/code/resnet/model/staging/models/rough/nmt_gpu/nmt.py | 8b52d4d22d6aceee063d64099deb7ebe702f584e | [
"Apache-2.0"
] | permissive | myelintek/results | f189267475ee1fc2d02f6e0572d2185bfd8a1acd | 11c38436a158c453e3011f8684570f7a55c03330 | refs/heads/master | 2020-05-29T19:28:54.838290 | 2019-07-31T05:58:31 | 2019-07-31T05:58:31 | 189,329,589 | 0 | 0 | Apache-2.0 | 2019-05-30T02:14:08 | 2019-05-30T02:14:07 | null | UTF-8 | Python | false | false | 46,512 | py | # Copyright 2017 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or a... | [
"vbittorf@google.com"
] | vbittorf@google.com |
2c5be723c0c1f69bc419b022a6a4f2ac99391dca | ba670e0a7ecd9913e517d87091c6be4c905885ee | /sudoku.py | 2b7e2f4c7658f4bb01bb1da8e420519ffa469535 | [] | no_license | avcourt/sudoku-validator | 0c2e2cf9b1c0961a3aeaf31fe6fefcd8b3f22fbe | 039bc0d083e76ec86ba9ac1dd55de20e5539cbe9 | refs/heads/master | 2020-11-26T16:46:24.951871 | 2019-12-19T22:04:26 | 2019-12-19T22:04:26 | 229,144,681 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,738 | py | """A quick and dirty Sudoku grid validator
Uses numpy for matrix operations:
- extracting submatrices in validate_square()
- transpose
All functions return immediately upon detecting invalidity.
Operates correctly on Sudoku grid dimensions that are perfect squares.
"""
import math
import numpy as np
def valid... | [
"andrew.vcourt@gmail.com"
] | andrew.vcourt@gmail.com |
e71c26708fa1dac89ce425302946faba0f6cdd88 | e1a2c6ed4a4b93b4697974e3b0a32a4d67daa6f6 | /venv/Lib/site-packages/pybrain/structure/modules/biasunit.py | a85d6212c196f190500ec537e31bc49c033bddc8 | [
"MIT"
] | permissive | ishatserka/MachineLearningAndDataAnalysisCoursera | cdf0f23a58617e17d6b938e3a9df17daae8585e4 | e82e772df2f4aec162cb34ac6127df10d14a625a | refs/heads/master | 2021-09-11T01:39:26.228392 | 2018-04-05T14:33:39 | 2018-04-05T14:33:39 | 117,153,454 | 0 | 0 | MIT | 2018-03-27T05:20:37 | 2018-01-11T21:05:33 | Python | UTF-8 | Python | false | false | 387 | py | __author__ = 'Tom Schaul, tom@idsia.ch'
from neuronlayer import NeuronLayer
from module import Module
class BiasUnit(NeuronLayer):
"""A simple bias unit with a single constant output."""
dim = 1
def __init__(self, name=None):
Module.__init__(self, 0, 1, name = name)
def _fo... | [
"shatserka@gmail.com"
] | shatserka@gmail.com |
fbdb6d8535e241017238bb38664de7ece301a539 | 20e562ec5b4c5fe09387b608c1d3bc745ab82a64 | /Partial-Recall/v0.2/encode_faces.py | b563bb89383cae837f76eb629fffc624be4fe7e1 | [] | no_license | CosminMares/ImageRecognition | fa9279dbcd9e376b8e04927dadebf3130552dd63 | f2575df2e2b0991447db84b40d179106997e878b | refs/heads/master | 2020-03-30T06:58:03.782922 | 2018-10-16T21:06:05 | 2018-10-16T21:06:05 | 150,903,822 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,243 | py | # USAGE
# When encoding on laptop, desktop, or GPU (slower, more accurate):
# python encode_faces.py --dataset dataset --encodings encodings.pickle --detection-method cnn
# When encoding on Raspberry Pi (faster, more accurate):
# python encode_faces.py --dataset dataset --encodings encodings.pickle --detection-method h... | [
"mares_leo2000@yahoo.com"
] | mares_leo2000@yahoo.com |
1452e939bb0b5275d0c58f559df9650d3c71a041 | 9dbf8de0e123849180ca945db653de42de417642 | /FGSM/model.py | b0bce995e749b86e32eaef4ef1f348fd965eccbd | [] | no_license | KevinHuang841006/AI_Security_training | 60c73ce8044ecda937ad89b922f19fd0f580c305 | 93ece6d3503d24494d9a5b2d3e1388fe710d8ded | refs/heads/master | 2020-03-22T13:09:12.850141 | 2018-09-27T08:20:31 | 2018-09-27T08:20:31 | 140,087,219 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,190 | py | import keras
from keras.utils import np_utils
from keras.models import Sequential
from keras.layers import Dense, Activation, Flatten
from keras.layers import Conv2D
def conv_2d(filters, kernel_shape, strides, padding, input_shape=None):
"""
Defines the right convolutional layer according to the
version... | [
"noreply@github.com"
] | KevinHuang841006.noreply@github.com |
393946c087e0bf9714c2426d6b9b0cbe78b993ba | df976ab4970a5fd8de22e7f16a825c0edae4571f | /test/test_projects_api.py | 61b0969e7ffda0bc53d288b0f3249f6846ed5f13 | [] | no_license | kondratov-saritasa/ucb-python-client | 67d0cbf694575669fdc9ee8088f5de5f933a12a3 | fcfe5263c632c60f177dd23aeb725647881365b9 | refs/heads/master | 2023-03-02T05:00:44.268038 | 2021-02-08T17:26:26 | 2021-02-08T17:26:26 | 336,761,064 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,809 | py | # coding: utf-8
"""
Unity Cloud Build
This API is intended to be used in conjunction with the Unity Cloud Build service. A tool for building your Unity projects in the Cloud. See https://developer.cloud.unity3d.com for more information. ## Making requests This website is built to allow requests to be made a... | [
"s.kondratov@saritasa.com"
] | s.kondratov@saritasa.com |
f7e85081c01c0d0ff1d7433a15547ad8c29ece32 | afbbd9f0f3647193779cca964a20891fca6afd89 | /postprocess.py | ca0f899afc465eea6073237a9e3480f265f37b67 | [
"MIT"
] | permissive | DFKI-NLP/lrv | b884a131445ee6d300c567f9900be01b3487c8d2 | e0dfd2f994257125fb359fe5cc165f1d671ba9e7 | refs/heads/master | 2021-06-17T14:47:34.419960 | 2019-09-25T10:41:39 | 2019-09-25T10:41:39 | 210,299,791 | 12 | 2 | MIT | 2021-06-02T00:26:59 | 2019-09-23T08:12:58 | Python | UTF-8 | Python | false | false | 10,793 | py | import copy
import os
import pickle
import ujson
from argparse import ArgumentParser
import matplotlib.pyplot as plt
from sklearn.metrics import f1_score
from tqdm import tqdm
from explain import normalize_explanations, relevance_matrix
from helpers.config import config
from helpers.log import log
from train import P... | [
"robert.schwarzenberg@dfki.de"
] | robert.schwarzenberg@dfki.de |
aa2c00344a3dceca94a75e0d8068d23040ff87f0 | b956d3450e604dcfa1f9a7c024dccb434b1e441f | /Ch03/variable/02_variable1.py | b47a03c8e66d2114c4c09deb6cdfc4551322a1d6 | [] | no_license | min0201ji/PythonStudy | 51516a0fbe6b0383f6e49b43e96e928a1d5be4a9 | 2d840119c6594a6b0494590c82c6c8a7b97a543f | refs/heads/master | 2023-07-07T10:27:30.985303 | 2021-08-12T16:37:31 | 2021-08-12T16:37:31 | 395,382,679 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,475 | py | # 변수는 할당해놓고 사용하지 않으면 메모리 공간을 차지하게 됨
# 변수 삭제 명령어 : del
# del 변수명
c_var = 100
print(c_var)
del c_var
#print(c_var)
# 코드 블럭 주석처리: ctrl + / (window), command+/(mac)
# 무자열 값 저장
# 문자열은 큰따옴표 사용(작은따옴표도 가능)
# 여러 종류의 따옴표를 사용시에는 짝을 맞춰야 함
name = '박민지'
std_name = '박민정'
pro_name = "박춘식 '교수'"
print(name)
print(std_name)
print(pro... | [
"ymcm2468@gmail.com"
] | ymcm2468@gmail.com |
0675fa79cb50d6f70ae4d1f4b9bfa46070797d0a | 67b0379a12a60e9f26232b81047de3470c4a9ff9 | /slideshow/admin.py | 365cd2affc5bde2acbcc881b16c1a4523658de1c | [] | no_license | vintkor/whitemandarin | 8ea9022b889fac718e0858873a07c586cf8da729 | 5afcfc5eef1bb1cc2febf519b04a4819a7b9648f | refs/heads/master | 2021-05-06T03:35:09.367375 | 2017-12-20T15:43:08 | 2017-12-20T15:43:08 | 114,904,110 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 431 | py | from django.contrib import admin
from .models import *
from content.fields import AdminImageWidget
from django.db import models
class SlidAdmin(admin.ModelAdmin):
list_display = ('name', 'pic', 'published', 'ordering')
list_editable = ('published', 'ordering')
formfield_overrides = {
models.ImageF... | [
"alkv84@yandex.ru"
] | alkv84@yandex.ru |
017da9a2d269a4079ab77126e8058cd5bf518208 | 24d6790dedd7473002513b2d58aa7e03e1b9b7c2 | /Week1/week1-lessonfiles/pymongo_getting_started.py | 81fe146f624219d5d865c1e2443447eab3d70129 | [
"MIT"
] | permissive | italoag/M101P | 3b50ddcc9935f6977d95f23dfc5aa7ee56a716e7 | 708bdd793735228f820f3f50f57c44ce8fc637ef | refs/heads/master | 2021-01-01T20:01:30.181394 | 2013-09-24T02:29:58 | 2013-09-24T02:29:58 | 12,883,560 | 0 | 0 | MIT | 2020-08-13T20:06:29 | 2013-09-17T01:43:13 | Python | UTF-8 | Python | false | false | 232 | py | import pymongo
from pymongo import MongoClient
# connect to database
connection = MongoClient('localhost', 27017)
db = connection.test
# handle to names collection
names = db.names
item = names.find_one()
print item['name']
| [
"italo@amorimgomes.com.br"
] | italo@amorimgomes.com.br |
62ce97e4549f62a710d4263d3e8b54ea8f210ac6 | cf3561ff0cd52d12216aa2a688281bab4dc2b7e5 | /src/models/train_model.py | e756c0bd9b6c74a34038290f910bf600c534fab0 | [] | no_license | chris-lovejoy/PitDepthPrediction | 624571f31932d20a32c226e714e7ce47687425b4 | b63ba406633bcc19ef429dbb82acfe7e5393a208 | refs/heads/master | 2023-01-23T07:53:38.527479 | 2023-01-17T12:08:08 | 2023-01-17T12:08:08 | 262,115,507 | 3 | 0 | null | 2023-01-17T12:08:09 | 2020-05-07T17:28:25 | Jupyter Notebook | UTF-8 | Python | false | false | 21,305 | py | import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
import random
from sklearn.preprocessing import StandardScaler
from sklearn.model_selection import train_test_split
from sklearn.linear_model import LassoCV, RidgeCV, LinearRegression, ElasticNetCV
from sklearn.metrics import mean_absolute_error
fro... | [
"noreply@github.com"
] | chris-lovejoy.noreply@github.com |
082ffed8db361c3d31eac76e28dc30c952cd5487 | 537c4ff86d11dad58c6d9fbc0506d3361e9eef88 | /aocpy/__init__.py | f180f8756dc42ad8ee2560aea431c2dbd55899c8 | [] | no_license | SteadBytes/aocpy | cd92e833d9f67747611588acaaabca550a237e15 | 948e8872f685b8ac0c76d673651dd3a26fedbd96 | refs/heads/master | 2022-12-15T14:26:28.485773 | 2020-12-06T19:09:07 | 2020-12-06T19:09:07 | 159,924,086 | 1 | 2 | null | 2022-12-08T03:13:39 | 2018-12-01T08:23:05 | Python | UTF-8 | Python | false | false | 114 | py | from aocpy.puzzle import Puzzle
from aocpy.generate import generate_day
from aocpy.templates.cli import input_cli
| [
"steadmanben1@gmail.com"
] | steadmanben1@gmail.com |
1a230e1f33accf74fd62ae3f668ea5f86518bb7f | 17ac294835d62e64cc76add4f90c713a34122c0a | /applications/flaskapp/src/views/views.py | 5d85e58b84736306340eca9dba63c8e8e02bdb6e | [] | no_license | rachhtordoff/docker-base | 0c6a60f988a21b2e83aa1e6bbc054c33bdd53794 | 33795c246ad7c2c49dcf3141597e07bc336fd327 | refs/heads/master | 2020-07-02T17:00:27.765064 | 2016-11-21T13:18:05 | 2016-11-21T13:18:05 | 74,295,094 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 112 | py | from hello import app
@app.route('/')
def index():
return 'Hello World! This is the Fldkfdjhfjassdsk App!'
| [
"rachael.tordoff@digital.landregistry.gov.uk"
] | rachael.tordoff@digital.landregistry.gov.uk |
ccd14549e5a112a8f3debc9aad43bc9bbe62c0c1 | deaaee1bf000ffd6576c3e57f663b8381163ce2f | /bot.py | ba131647828244ed8b46fc359263960b1597219c | [] | no_license | Jaculabilis/engine-hearth | ccfddb68757ca88d4208c3d472f2e63e9a04f891 | 17c924ed2f2b1a4ae4cdc0a8f35d6f9639cfe71f | refs/heads/master | 2023-05-07T10:28:55.383723 | 2021-05-16T05:27:30 | 2021-05-16T05:27:30 | 367,709,690 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 669 | py | from importlib import reload
import discord
import config
import processor
client = discord.Client()
@client.event
async def on_ready():
print('Engine Hearth logged in as {0.user}'.format(client))
@client.event
async def on_message(message):
# No self-reply
if message.author == client.user:
... | [
"Jaculabilis@users.noreply.github.com"
] | Jaculabilis@users.noreply.github.com |
93ee7482eeedef17bad15864a88d4e24c7563673 | 02eb2f6387a30347081e226598fe46954de1017e | /python/scripts/batch_decode.py | 0fe4b70cbd245e5254a82052df060dc991500bf1 | [
"Apache-2.0"
] | permissive | seyuf/kaldi-serve-1 | 45b2552926e2f05c46a17beee2c089d574b0531d | 6be4ea3375ed64176d4638cc2252909136c95b3d | refs/heads/master | 2020-12-14T15:02:24.969199 | 2020-01-18T20:36:21 | 2020-01-18T20:36:21 | 234,778,981 | 0 | 0 | Apache-2.0 | 2020-01-18T18:32:43 | 2020-01-18T18:32:42 | null | UTF-8 | Python | false | false | 3,618 | py | """
Script for transcribing audios in batches using Kaldi-Serve ASR server.
Usage:
batch_decode.py <audio_paths_file> [--model=<model>] [--lang=<lang>] [--num-proc=<num-proc>] [--output-json=<output-json>] [--transcripts-only]
Options:
--model=<model> Name of the model to hit [default: general]
--... | [
"pskrunner14@gmail.com"
] | pskrunner14@gmail.com |
ffc496c1178675c25948aa989646fc4987941540 | 94abab503b3cb7164a0553170216cda1aed2110c | /iggybase/core/table_collection.py | 6b0ac00fdaf7d60cff8543a161f6b9616e1a8e98 | [] | no_license | harvardinformatics/iggybase | 2f66c92e83589fc3f4d0126887e6194ce7eb7b88 | 6f48a61c2748ab9fc1dc120dd75e892f2b24f691 | refs/heads/master | 2021-01-24T08:06:59.735889 | 2017-06-08T21:18:23 | 2017-06-08T21:18:23 | 38,822,302 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,156 | py | from iggybase.core.table_data import TableData
from collections import OrderedDict
from iggybase import g_helper
from flask import abort
import logging
class TableCollection():
def __init__(self, table_names = [], depth = 2):
self.role_access_control = g_helper.get_role_access_control()
self.organ... | [
"mbreneiser@g.harvard.edu"
] | mbreneiser@g.harvard.edu |
2c4a1eda1cdf0cca1eda7df5f81a7d2c40200495 | 899cb8acb78cb528090532687218315dcaae2582 | /ssdmultibox/predict.py | 28e34d4aaa1cb8d1a2528ac5595c82dc6d7d13a5 | [
"MIT"
] | permissive | aaronlelevier/ssd-pytorch | e26f1720e572e3be0319e51894b56c82dfec4fc1 | 2663d32e072dd5928c60f39fef71af4774d1c596 | refs/heads/master | 2020-04-10T00:37:30.757252 | 2018-12-31T15:15:53 | 2018-12-31T15:16:37 | 160,690,914 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,455 | py | """
NMS final predictions module
"""
import torch
from ssdmultibox.config import cfg
from ssdmultibox.datasets import NUM_CLASSES, device
class Predict:
"""
Methods for making NMS predictions
"""
@classmethod
def all(cls, preds, index=0, conf_thresh=cfg.NMS_CONF_THRESH):
"""
Calc... | [
"aaron.lelevier@gmail.com"
] | aaron.lelevier@gmail.com |
ba16348c57a2554b922ba70d3ca766334cd8a281 | c07524550036222110ca600da8b1f65b5c3701b6 | /main.py | 985e2764cb554681e4d9eda6eb34448f81a3fae5 | [] | no_license | mt5225/uinnova_weekly | df09549c9aec23955e6ab66bc2d4ccc4c04ecf39 | 827e22373699047936f675ee93990efe336ae26b | refs/heads/master | 2021-01-21T21:19:54.432826 | 2017-09-26T00:18:08 | 2017-09-26T00:18:08 | 84,262,440 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,157 | py | from time import gmtime, strftime, sleep
import os
from datetime import datetime, timedelta
import pandas as pd
import numpy as np
import glob
from jinja2 import Environment, FileSystemLoader
import paramiko
import logging
# create logger
logging.basicConfig(level=logging.INFO, format='%(asctime)s - %(name)s - %(level... | [
"mt5225@gmail.com"
] | mt5225@gmail.com |
c91ea1861504524d9c48bbf06c6c426309fc28cf | 2478b6b11c33f6210c057da01397d9ff557b2d90 | /BiliUtil/bili_user.py | 7f19d00adab5bf03af500d54d054b4730f200982 | [
"MIT"
] | permissive | cumulus27/bilibili_video | 56db29e4da7d730cc359fd014117c84a2bec773a | 8c651a137cb825c0e6de81cad672fe3c904aab7f | refs/heads/master | 2020-04-26T10:04:37.929173 | 2019-03-07T04:33:18 | 2019-03-07T04:33:18 | 173,476,669 | 0 | 0 | MIT | 2019-03-07T04:33:19 | 2019-03-02T17:17:59 | Python | UTF-8 | Python | false | false | 7,892 | py | import os
import re
import json
import requests
from urllib import parse
import BiliUtil.static_value as v
import BiliUtil.static_func as f
from BiliUtil.bili_album import Album
from BiliUtil.bili_channel import Channel
class User:
cookie = None
uid = None
name = None
birthday = None
coin = Non... | [
"zhaopy27@gmail.com"
] | zhaopy27@gmail.com |
0495d7d550fc2f26ef08d7b1b944e40a049e7945 | bca67a91d4d73d3acdecf301443c847390cf5eb4 | /test_polynominal.py | 428339e9e797e4b06de3bc0511b8ba5fd39aa200 | [] | no_license | senwen616/Algorithm | 0512f8d417cc324f1235f972e11a6b1ab50cc4b9 | aadf869e66b766720632d69a3689bbb155e1c92d | refs/heads/master | 2023-02-24T11:25:42.674303 | 2021-01-30T13:24:12 | 2021-01-30T13:24:12 | 296,201,230 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 248 | py | #!/usr/bin/python
# -* - coding: UTF-8 -* -
#!python
#coding:utf-8
from sklearn.preprocessing import PolynomialFeatures
import numpy as np
X = np.arange(20).reshape(2, 10)
poly = PolynomialFeatures(degree=2)
res = poly.fit_transform(X)
print res
| [
"sunwenping@qianxin.com"
] | sunwenping@qianxin.com |
3433c82e629bfe16c15262b3012ea380799f93a1 | 6713b68c912af377c741b26fe31db0fe6f6194d4 | /1st Term/Data_Structure_and_Algorithms/Codes/Exercises/ses07/tests/recap.py | ad9b6e78d422a95dedfce25d228c43c11c8d1e21 | [] | no_license | Lanottez/IC_BA_2020 | 820e8d9c1dbb473ed28520450ec702f00c6684ed | 8abd40c6a5720e75337c20fa6ea89ce4588016af | refs/heads/master | 2023-08-25T05:52:08.259239 | 2021-11-03T07:27:11 | 2021-11-03T07:27:11 | 298,837,917 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,099 | py | test = {
'name': 'Recap Lists and Dictionaries',
'points': 0,
'suites': [
{
'cases': [
{
'code': r"""
>>> d = {'dog': 'bone', 'cat': 'mouse', 'bird': 'work', 'cow': 'grass'}
>>> 'mouse' in d
284955ce13007698ae8d35f81082c68b
# locked
"""... | [
"z727629029@gmail.com"
] | z727629029@gmail.com |
9effb16c43bd2e316d863b588a3dd31e196935cb | 142d22846b0dc90763d9006aa4e972cb022de351 | /twiceredis/client.py | b348d6225d8797e37dca9408133e6ac133876e86 | [
"Apache-2.0"
] | permissive | alanquillin/twiceredis | 43d1ae93e618b60a7a3b183c4fea6421dbe398fc | 3bd3e960b0249e40d1c99f23b3e147543c945da3 | refs/heads/master | 2020-12-25T09:47:17.391998 | 2015-07-31T04:11:28 | 2015-07-31T04:11:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,421 | py | # -*- coding: utf-8 -*-
#
# Copyright 2015 Trey Morris
#
# 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 appl... | [
"treyemorris@gmail.com"
] | treyemorris@gmail.com |
998f53a8b19e40d1c9ab0da166b3dc7494fc3c8a | cfa0dac500a120526cca197d8d201e2bba7724d0 | /alien_invasion/bullet.py | e78349a3588d404ac02f8ef38c0bff037ce990ae | [] | no_license | jinglebelly/alien_invasion-py | 2dad8e81aa80816e399af00a3b1ef0b02a3f15ac | a8dff36773d85ccb29688142f2f83b89ec915038 | refs/heads/master | 2020-04-01T04:37:00.523124 | 2018-10-13T12:48:13 | 2018-10-13T12:48:13 | 152,870,421 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,017 | py | import pygame
from pygame.sprite import Sprite
class Bullet(Sprite):
"""一个对飞船发射的子弹进行管理的类"""
def __init__(self,ai_settings,screen,ship):
"""在飞船所处的位置创建一个子弹对象"""
super(Bullet, self).__init__()
self.screen = screen
# 在(0,0)处创建一个表示子弹的矩形,再设置正确的位置
self.rect = pygame.Rect(0, 0, ai_settings.bullet_wid... | [
"noreply@github.com"
] | jinglebelly.noreply@github.com |
a472871209ba36dddc71717632c40210ffcdb40d | ad0d092d26b126ebf9c5f79a0254e79320a4d732 | /avgtest_pico.py | 8801fc479c10cafaf34933348fe63907e7b0caf7 | [
"MIT"
] | permissive | peterhinch/micropython-filters | be9bcbc3ace92987a1ef23fca5faa90af2391d35 | 4e0b737574073bab36ec1c776e8dfb80b8fe5f9f | refs/heads/master | 2022-02-07T23:01:52.492287 | 2022-01-26T18:29:34 | 2022-01-26T18:29:34 | 30,693,766 | 59 | 13 | null | null | null | null | UTF-8 | Python | false | false | 874 | py | # Demo program for moving average filter
# Author: Peter Hinch
# Released under the MIT License (MIT). See LICENSE.
# Copyright (c) 2021 Peter Hinch
# 16th Dec 2021
import array
from time import ticks_us, ticks_diff
from avg_pico import avg
data = array.array('i', (0 for _ in range(19))) # Average over 16 samples
dat... | [
"peter@hinch.me.uk"
] | peter@hinch.me.uk |
9ba88f9b386ad10642120c245525438f08dd9c0b | d15bdaddab59d1cfea76790004cbad3e5f0c2c55 | /batkin/build_isolated/move_slow_and_clear/catkin_generated/generate_cached_setup.py | e0ab70b36efd40a0bb19f5981e56650cf00a794b | [] | no_license | gychen-n/robot | 4265a1ff469d22550b6b537d1c81aa846ee7641a | 0663a33aea2c2de9e3ac5863307619091e5b5959 | refs/heads/main | 2023-04-10T13:32:06.623682 | 2021-04-16T00:41:04 | 2021-04-16T00:41:04 | 358,431,232 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,820 | py | # -*- coding: utf-8 -*-
from __future__ import print_function
import os
import stat
import sys
# find the import for catkin's python package - either from source space or from an installed underlay
if os.path.exists(os.path.join('/opt/ros/kinetic/share/catkin/cmake', 'catkinConfig.cmake.in')):
sys.path.insert(0, ... | [
"gyc@autolabor-host.autolabor-domain"
] | gyc@autolabor-host.autolabor-domain |
8ebe1144e95ccdfe54a4fbadf30f57bdde4f75e6 | a9dd6474a4c79e096a6b84697e7abc31095602c7 | /tests/tests.py | a1628c7e2bdccd88d0a35cfaf904e988f2aee4eb | [
"MIT"
] | permissive | canarduck/django-versatileimagefield | 037d3161f5566ccc3edd936b2c4ed83f6629346f | 3eefff9aceb35eb8c5971b8ec14644332159fa46 | refs/heads/master | 2021-01-21T07:44:57.179345 | 2016-03-04T13:43:11 | 2016-03-04T13:43:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 40,172 | py | from __future__ import division
from __future__ import unicode_literals
from functools import reduce
import math
import operator
import os
from shutil import rmtree
from django import VERSION as DJANGO_VERSION
from django.conf import settings
from django.contrib.auth.models import User
from django.core.cache import c... | [
"jonathan_ellenberger@wgbh.org"
] | jonathan_ellenberger@wgbh.org |
83746c2f8f8c278e1647782695f53eca9c354ff6 | 249ef744ece1167f6e5bf7edc0b3ce5b1a31e66a | /EnvCmp.py | baea40b8a0e3cacfae52fdb69bb066dfb621da57 | [] | no_license | ftakanashi/EnvCmpWeb | dba2b9bec6a0c3dc5a2a623f52257c3a56ca957c | 692164d341ae7d6aeff946a7e89c3ceabc96b6e3 | refs/heads/master | 2020-03-21T17:41:47.209949 | 2018-07-11T11:04:25 | 2018-07-11T11:04:25 | 138,847,521 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,275 | py | #!/usr/bin/env python
# coding=utf8
# @author:weiyz
import os
import uuid
import threading
import tarfile
import shutil
import socket
import time
from filecmp import dircmp
### beg 20180111 重设系统编码为GBK保证可以读取中文字符 ###
import sys
reload(sys)
sys.setdefaultencoding('gbk')
### end 20180111 ###
def get_sub_dic(lst, key):
... | [
"wyzypa@gmail.com"
] | wyzypa@gmail.com |
c045d46e66a4f04621788b28c78761a1223a3cee | acb8e84e3b9c987fcab341f799f41d5a5ec4d587 | /langs/8/uon.py | 949b044bc5d13f037b1b044c161086ca0f3cc3ab | [] | no_license | G4te-Keep3r/HowdyHackers | 46bfad63eafe5ac515da363e1c75fa6f4b9bca32 | fb6d391aaecb60ab5c4650d4ae2ddd599fd85db2 | refs/heads/master | 2020-08-01T12:08:10.782018 | 2016-11-13T20:45:50 | 2016-11-13T20:45:50 | 73,624,224 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 486 | py | import sys
def printFunction(lineRemaining):
if lineRemaining[0] == '"' and lineRemaining[-1] == '"':
if len(lineRemaining) > 2:
#data to print
lineRemaining = lineRemaining[1:-1]
print ' '.join(lineRemaining)
else:
print
def main(fileName):
with open(fileName) as f:
for line in f:
... | [
"juliettaylorswift@gmail.com"
] | juliettaylorswift@gmail.com |
89699a3f5c0a09f40f6a3e407c26b6854482f88f | d30b5f255157a27d088d4d02d9b94c400e533101 | /app.py | eeacdc16f90a0a3cb23ede4625520c4bda77c209 | [] | no_license | JosephineKantawiria/MA346_FinalProject | f746a4bb095d4c8cc3e272e41111d566eff5ffb6 | e0c3ec9bb2701e850739a2c8c432566c8f882feb | refs/heads/main | 2023-06-06T02:34:13.583910 | 2021-06-29T18:21:58 | 2021-06-29T18:21:58 | 381,443,057 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,317 | py | # Load packages
import pandas as pd
import numpy as np
from sklearn import preprocessing
import streamlit as st
# Load data
df1 = pd.read_csv('Most-Recent-Cohorts-All-Data-Elements.csv')
df2 = pd.read_csv('World_University_Rank_2020.csv')
# Filter rows and columns
df2 = df2.loc[df2["Country"] == "United States"][["Ra... | [
"kantawi_jose@bentley.edu"
] | kantawi_jose@bentley.edu |
c8b543cdeadf9fb95eb43e57df6ec30172d49e3e | 20d9eea39eb73f069e22b780d61fc1dc8277ce25 | /discobolus/server/views.py | ada91538b22da59d9694c8b150816e863b70ffce | [] | no_license | holandes22/discobolus | 93ce2a0758ce8188aae42d89071bb83f8e6a5ee0 | e05f8ac54a3f96f889c08ff6693cec61e794a3c6 | refs/heads/master | 2020-12-24T13:28:55.644617 | 2012-10-10T22:01:37 | 2012-10-10T22:01:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,075 | py | import rpyc
from django.http import HttpResponse, HttpResponseRedirect
from django.views.generic import ListView, UpdateView
from django.contrib.formtools.wizard.views import CookieWizardView
from django.contrib.auth.decorators import login_required
from django.shortcuts import get_object_or_404
from discobolus.core.m... | [
"pabloklijnjan@il.ibm.com"
] | pabloklijnjan@il.ibm.com |
2bc1edafefe685826dff39c42d7e69e9c67e1523 | 10f2f0c06d213d9272de256d5da47473c885b448 | /Demo3/data_preprocess.py | 898d19be2d4212d97eb9092141a34ab844b524fe | [
"MIT"
] | permissive | kinglai/compare-aggregate | 9cb3d60050dcd7903da1b1836c205694c2b355de | 2544468842ac0f991bede858c6cc4943ae22d640 | refs/heads/master | 2022-02-13T14:00:34.761738 | 2019-07-25T12:45:17 | 2019-07-25T12:45:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 19,840 | py | # -*- coding: utf-8 -*-
# @Time : 2019/1/23 14:35
# @Author : Alan
# @Email : xiezhengwen2013@163.com
# @File : data_preprocess.py
# @Software: PyCharm
import sys
import numpy as np
import random
from collections import namedtuple
import pickle
import time
random.seed(1337)
np.random.seed(1337)
ModelParam ... | [
"xiezhengwen2013@163.com"
] | xiezhengwen2013@163.com |
5fc2963a91359afbb15ebff966137ed30388b2bd | e3a8e77c84be5f3f1a5c29d1bea388d75732a37d | /get_git.py | 1d6c1e3ff0146b9e0d3c3cff1e83605ace61d3b0 | [] | no_license | sumairz/clone-git-repos-on-local-drive-python | 349bd4a4c4dbcacf04aa57d02a54fabc4865afed | d384cdfc6daf0cc6592c704192f25bfaabd1809d | refs/heads/master | 2020-05-30T02:01:42.476643 | 2015-02-10T17:11:03 | 2015-02-10T17:11:03 | 30,603,260 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,821 | py | # Modules Requirements
# module: BeautifulSoup
# module: gitpython
# module: urllib
from BeautifulSoup import BeautifulSoup
from functions import saveHtml
from git import Repo
import shutil
import stat
import urllib
import sys
import os
import re
count = len(sys.argv)
if (count > 1):
configFile = sys.argv[1]
... | [
"sumairz@gmail.com"
] | sumairz@gmail.com |
4067df6deabc0c09665985515f58a01b388540cf | 0fb9e72ca0e41a06b08dd03c49f340a5c3af583d | /main.py | e579bc240cf9a2dc0834118f9a3bd25c531290f8 | [] | no_license | osmlab/routerelationranger | 74146da70cad1f989f0bff764859e4b43112b998 | 1fcd00493ca6e612fcc0ce6b2878a0749fb6e869 | refs/heads/master | 2020-06-14T06:35:33.626186 | 2016-12-13T18:53:05 | 2016-12-13T18:53:05 | 75,222,534 | 8 | 1 | null | 2016-12-13T19:22:04 | 2016-11-30T20:05:44 | HTML | UTF-8 | Python | false | false | 3,206 | py | from flask import Flask, render_template, jsonify, request
import requests
import json
import pycountry
import us
app = Flask(__name__)
route_type = ''
@app.route("/")
def index():
return render_template('index.html')
@app.route('/countries')
def get_countries():
return json.dumps([[c.alpha_2, c.name] for c ... | [
"m@rtijn.org"
] | m@rtijn.org |
207a9991e8cb9429d32159efa22844a2b24c6035 | aa65d43b8775b1eb49fa5cf3c23e6ce6f7aefb7b | /src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/express_route/gateway/_show.py | e7ccfe86f71ea0e67350f48b228dc22a5f0f2027 | [
"MIT",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"GPL-1.0-or-later",
"MPL-2.0",
"LGPL-2.1-only",
"Apache-2.0",
"LGPL-2.1-or-later",
"BSD-2-Clause"
] | permissive | yungezz/azure-cli | 8acef71d30d937f2fc48981804fa66fd9e1c980d | 5a80d3507270cc3b9313a3e6e60daf291489a80d | refs/heads/dev | 2023-03-15T14:22:26.085920 | 2023-03-03T08:13:04 | 2023-03-03T08:13:04 | 279,810,977 | 0 | 1 | MIT | 2021-02-08T08:09:06 | 2020-07-15T08:26:59 | Python | UTF-8 | Python | false | false | 11,694 | py | # --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
#
# Code generated by aaz-dev-tools
# --------------------------------... | [
"noreply@github.com"
] | yungezz.noreply@github.com |
2ab9f3d2c96125aa0a725add5dba7b55a918e0d2 | 894ea5f3087894c10288f65f32b7c4f667ce79f5 | /opencv_learning/ssd/layers/functions/detection.py | a96e11a688c1f8d74494e4eb77de44d1e0911241 | [] | no_license | j32u4ukh/CupoyLearning | dfe1af1992c38329ce9f7fa99aa9154a45e9b982 | 1d813a72b0f1456bc4019d42ac207d51883f892f | refs/heads/main | 2023-02-16T23:51:10.084030 | 2021-01-18T16:05:33 | 2021-01-18T16:05:33 | 319,019,881 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,715 | py | import torch
from torch.autograd import Function
from ..box_utils import decode, nms
from opencv_learning.ssd.data import voc as cfg
class Detect(Function):
"""At test time, Detect is the final layer of ssd. Decode location preds,
apply non-maximum suppression to location predictions based on conf
scores... | [
"j32u4ukh@gmail.com"
] | j32u4ukh@gmail.com |
618242b7cf28a1f63f4d52d764eb0fc1002682ac | de059a4aaac527f81c654bf859715c9ddfcba986 | /contact/views.py | 166d191334f2ed76ea3f8859bf01af297d1044a4 | [] | no_license | theegichuki/django-jobportal | 7907f88f1d684e7b551cdd96c7e26ba1b58e5a11 | 46361884a0780fd5727d19304cb78df7fcdd3c29 | refs/heads/master | 2022-09-21T14:42:23.060129 | 2019-12-05T17:05:44 | 2019-12-05T17:05:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 141 | py | from django.shortcuts import render
# Create your views here.
def contact_page(request):
return render(request, 'contact/contact.html')
| [
"sajib1066@gmail.com"
] | sajib1066@gmail.com |
48d2cf630d83fc2b014ffccb6d9f2932204a3ca3 | 24877bcb3fb730eae81864ac71f2c0629800cad1 | /target/venv/test/cpython-3.6.9.final.0/bin/easy_install-3.6 | 2586182add6a42584ac77eb035612c31574ac824 | [] | no_license | TrellixVulnTeam/EPIDEMIOLOGY_MODELING_7BS9 | a507b97a25f8c9342d78ba76fd214e5428ad5f10 | a18e8458cfe203cd8f511f68677fa63f7351e283 | refs/heads/master | 2023-03-20T03:04:56.445266 | 2020-06-26T12:31:06 | 2020-06-26T12:31:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 281 | 6 | #!/mnt/d/NewProject/target/venv/test/cpython-3.6.9.final.0/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from setuptools.command.easy_install import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"simranhora912@gmail.com"
] | simranhora912@gmail.com |
5e4a606c99d717163a4cad4ae5c4b7084c445181 | 89ed1bb240f05c947b5c9d9fcaf7ac5d19c00426 | /cs443/demo/turtle-threads.py | 79768025c89e1acdfdce7c22870a1b5b29dc3624 | [] | no_license | rmedinahu/rmedinahu.github.io | 4f739f12154942f9b17b1f85506e86fa56685d74 | f47573a639fcd9b281af8ff40892216f4a8f4a58 | refs/heads/master | 2020-05-21T03:05:36.992414 | 2017-05-08T22:20:10 | 2017-05-08T22:20:10 | 50,816,452 | 1 | 4 | null | null | null | null | UTF-8 | Python | false | false | 1,144 | py | # turtle-threads.py
import threading
import time
import random
DATA = 0
class ThreadA(threading.Thread):
def __init__(self, e):
threading.Thread.__init__(self)
self.runtime = e
def run(self):
while self.runtime.is_set():
# time.sleep(2)
threadLock.acqui... | [
"richardmedina@CSMB01.local"
] | richardmedina@CSMB01.local |
45f3e431d0f8f9499337bb119a19afef3dfa0cf0 | 09dfb4f05f85c81405b544676ece658a37487cf2 | /project.py | 5e77a562c77abde25750963735866d055cd2cb65 | [] | no_license | vishalk1995/Social-Media-Mining | 3f55d432a0d52c872c549a63564be6bdf4cd77c4 | e390ae23a80f03bcb832331bacb6fe254eb4b43e | refs/heads/master | 2020-12-08T13:58:28.644666 | 2020-01-10T08:27:04 | 2020-01-10T08:27:04 | 233,000,607 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,650 | py | # -*- coding: utf-8 -*-
"""
Created on Mon Nov 25 16:21:55 2019
Name:Vishal Kumar
ASU ID: 1215200480
"""
import numpy as np
import pandas as pd
import keras
from keras.models import Sequential, Model
from keras.layers import Input, Dense, Flatten, Embedding, merge, concatenate
from keras.preprocessing.text... | [
"noreply@github.com"
] | vishalk1995.noreply@github.com |
86887e32b273a41d0f0ca93190b85e6ffa573efa | 980cf7d6da1878fbd590a6a87ad2544051490c13 | /flagr/api/export_api.py | 62b75e1fb4e86c25f8a6fbe57a121df5ee6bd8b8 | [] | no_license | checkr/pyflagr | 4dca479e1883e9fa3141208bfee336d00e15431b | c2af160275208cdba135385cc52acafea5f3ecb7 | refs/heads/master | 2022-11-23T10:59:10.375874 | 2020-07-20T17:52:35 | 2020-07-20T17:52:35 | 114,043,761 | 17 | 6 | null | 2020-07-20T17:52:36 | 2017-12-12T22:02:44 | Python | UTF-8 | Python | false | false | 7,918 | py | # coding: utf-8
"""
Flagr
Flagr is a feature flagging, A/B testing and dynamic configuration microservice. The base path for all the APIs is \"/api/v1\". # noqa: E501
OpenAPI spec version: 1.1.10
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import abso... | [
"zhuojie@checkr.com"
] | zhuojie@checkr.com |
b8a6594af13161b22203a8b0697de3c7725a8518 | 6e93a2a8a39e735e83874a4558f111bda00534d8 | /Project_Tuples_Alpha/__init__.py | f5058802e41a1fe02b77ab8ec0226f81fc5aeb2b | [
"MIT"
] | permissive | sm2x/Keyboard-Biometric-Project | 9b9f6d11ba8c3cf774353b6b6572623fcd68b2f3 | 0cdc0fef65b34624e80a5e96e2457c9cf958fb6d | refs/heads/master | 2020-04-24T01:05:13.873293 | 2018-02-22T15:18:37 | 2018-02-22T15:18:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 305 | py | """THIRD PARTY LIBRARY IMPORTS"""
import win32api
"""LOCAL LIBRARY IMPORTS"""
from moduleForFindingTuplesTime import create_dict
from moduleForFindingPressTimes import create_dict
from moduleForRecordingTimelines import start_recording
__verison__ = '1.0'
__author__ = 'Matthew Nowak and Zachary Nowak' | [
"zacandcheese@icloud.com"
] | zacandcheese@icloud.com |
65f9e5229c6c9a6a1e020096dd3b187b66fcee09 | e86fa6b618822fc800bdc699b95efd404065509e | /python/practice/matrixMultiplication.py | 475810eb7ae26f8568fb5ce2c80ae20e1d8d212e | [] | no_license | KimYeong-su/programmers | 97b0ba53833176690bf5f87243d4e98402526f86 | caf3bcb824c4199832ca94b073340b8c49ada31d | refs/heads/master | 2021-08-29T07:06:12.936109 | 2021-08-06T12:40:02 | 2021-08-06T12:40:02 | 251,619,326 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 474 | py | '''
# zip(a) 표현과 zip(*a) unpacking 표현을 잘 기억하자..
def solution(arr1, arr2):
return [[sum(a*b for a, b in zip(A_row,B_col)) for B_col in zip(*arr2)] for A_row in arr1]
'''
def solution(arr1, arr2):
answer = [[0 for _ in range(len(arr2[0]))]for _ in range(len(arr1))]
for i in range(len(arr1)):
for j in... | [
"suwon0521@naver.com"
] | suwon0521@naver.com |
415e9aff0e41ea9efb16210beebbbc50f8b72b6e | f71d94e4a933f42817594b9ed4c3e06f48b7e186 | /cv02/cv02_ZnovupouzBariera_NabitieTurniketu.py | 6456fcf490ed40fbba234f9bcc2f065693756a24 | [] | no_license | SkaAnn/PPDS-2020 | c5433cdbf869948b43ec65c9da3e2f8de988d295 | 126f63dc29cfa6ee2fce29aa374ce12074f49e6b | refs/heads/master | 2022-07-03T23:37:00.040887 | 2020-05-14T18:43:52 | 2020-05-14T18:43:52 | 242,393,795 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,660 | py | # sl 141 prednaska02
from fei.ppds import *
import random
from time import sleep
# DVOJFAZOVA BARIERA
# pomocou nabijania turniketu
class DoubleBarrier:
def __init__(self, N):
self.N = N # pocet vlaken ktore sa maju stretnut
self.counter = 0 # pocitadlo vlaken
self.mutex = Mutex... | [
"xskachova@stuba.sk"
] | xskachova@stuba.sk |
455310b9dfe29696c6f940236e19322517b714c7 | 792f751a26a57255bd12d83e2fc23a3eb26c3a1d | /venv/Scripts/pip-script.py | 001b6184e36a2383f22930e268e5da74ea426608 | [] | no_license | stutipandey/stutipandey.github.io | bba92a366cdf3bfbdd5cd4d32d0ca6d24f2b5feb | d242f30aa9ed3478f937148393503c40c253716b | refs/heads/master | 2020-04-18T02:56:51.118033 | 2019-01-23T14:54:04 | 2019-01-23T14:54:04 | 167,146,785 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 417 | py | #!"C:\Users\Stuti Pandey\PycharmProjects\HTML\venv\Scripts\python.exe"
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==10.0.1','console_scripts','pip'
__requires__ = 'pip==10.0.1'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.... | [
"46956171+stutipandey@users.noreply.github.com"
] | 46956171+stutipandey@users.noreply.github.com |
5cef3812cd14d92a333ea5bb8b587cc5c4bb238a | cd4ed0f3b31a4bc32afcfb38963b01a7a9a754b1 | /简单图像操作代码集合/work.py | 63a5134bb3f75a7d96634049d9fdb8d45e62ab24 | [] | no_license | caomengnb/Python_example | 0cc7f6d3fc2a3d28b8fd192b6bfe18dad2b40f2f | 0f752aee9258785d0e543b94b0628b6849ed456d | refs/heads/master | 2022-11-08T12:53:42.069600 | 2020-06-30T09:51:37 | 2020-06-30T09:51:37 | 275,985,545 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 29,895 | py | import cmath
import numpy as np
import cv2
import matplotlib.pyplot as plt
import random
import time
import datetime
import glob
from imutils.object_detection import non_max_suppression
pai = 3.1415926
img = cv2.imread("1.jpg", 1)
height, width, mode = img.shape
print('图像尺寸:',height,width,mode)
#--------------------... | [
"1596105877@qq.com"
] | 1596105877@qq.com |
c6dba07fa35fb7da21b6d1e7211428aac6344e3a | 485e504dbfd189b72cfd9846d39ecffd69bcd0ef | /ScriptsPython/borrar_productos.py | 1bb5fd5b28af2de2457d20d385d9f22bab97400e | [] | no_license | StevenGarc/DrogueriaEspecial | 172f7ce3d19afce17ad55b76dca8b223d83e5d7e | e1cf76a7efdb0429f8fb2e487668b38c1d5384ed | refs/heads/main | 2023-08-05T15:26:39.308436 | 2021-09-27T23:20:17 | 2021-09-27T23:20:17 | 410,965,381 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,403 | py | import csv
from requests import NullHandler
from requests.api import options
from woocommerce import API
"""Configuracion Produccion"""
"""
wcapi = API(
url="https://www.drogueriaespecial.com/", # Your store URL
consumer_key="ck_cace5342881a49681854b8ece5561bac9a204ea5", # Your consumer key
consumer_sec... | [
"jalejo999@gmail.com"
] | jalejo999@gmail.com |
cde830d7a4274d28fb3f1d7f4f807e7245e65ec0 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/otherforms/_omens.py | 6723d6d1487e28f10d04f20ab87de03a0fc7e444 | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 214 | py |
#calss header
class _OMENS():
def __init__(self,):
self.name = "OMENS"
self.definitions = omen
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.basic = ['omen']
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
81f7ada4406402517a9e3f78517657606142658e | 479b217448e5333804ce313b04245db734128992 | /Basic/rough.py | 285492cf5904d726d7ba6705bb6ac811d35164fd | [] | no_license | hakepg/operations | ffbded083e0c52861d9f5ca9a3a94c728ef7dc0f | 494c4951760faee25ea9713edc07496d349d7a5d | refs/heads/master | 2020-06-16T20:03:09.791458 | 2019-07-07T19:09:45 | 2019-07-07T19:09:45 | 195,687,572 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,428 | py | # class Student:
#
# def __init__(self,id,nm,age,sal):
# self.sid=id
# self.stname=nm
# self.stage=age
# self.stusalary=sal
#
# def __str__(self):
# return f'{self.__dict__}'
#
# def address(self,add1):
# self.addr= add1
#
#
# s1=Student(id=1,nm='ppp',age=25,s... | [
"pratimaghake@gmail.com"
] | pratimaghake@gmail.com |
6cba431650ee8b74baa8310c144321b2e587155e | 21f61f8a8c34b78176351bde07cca4576b98cabf | /cartesien _product_example.py | c187e2c35f28ae419d2b51eb3c25ce951330891a | [] | no_license | manojkumar00158/python_training_deepaksir | b7defea9f0c0bdc373ba51efd7524bf62bf8edf5 | 1a8877b48f0eaf763113c8cfb2a3ddda859cf29d | refs/heads/main | 2023-01-31T03:15:15.749430 | 2020-12-18T03:38:27 | 2020-12-18T03:38:27 | 317,113,730 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 601 | py | list_1 = ['color','white','black']#taking the colors of t-shirts as input
list_2 = ['short','medium','large','xl']#taking sizes of t-shirts as input
for color in list_1:
for size in list_2:
#using cartesien product asking to give output as the combinations of color and size of t-shirts we ... | [
"noreply@github.com"
] | manojkumar00158.noreply@github.com |
7c57b93130facbb562560b0291719c78c022eebc | e6a60c7f91bb38f9be7e762665f4aae412668aaf | /rwmutex/__init__.py | 63bb88378cc43a8b0e73ecf4b840e4064dbdd70d | [
"MIT"
] | permissive | BenJetson/py-rwmutex | 774f54394474cc6680a141be3aa3b22868f87617 | 5890b1089336569ca7f25dbb0a21a9e299010954 | refs/heads/main | 2023-02-09T02:15:55.791177 | 2021-01-05T03:57:17 | 2021-01-05T03:57:17 | 326,859,904 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 24 | py | from .mux import RWLock
| [
"BenJetson@users.noreply.github.com"
] | BenJetson@users.noreply.github.com |
5c9fa7d4fd757aaaf8048f435a7047661ebea2c9 | 9de6d0967bd79a31073b9c6a9d4cd318b7d7b13e | /myside/rgnbgn/apps.py | 7babc5ceee213c3ad837eed08fdb79791a029bc8 | [] | no_license | FSchierok/schierok.de_alt | 9684af3a7147bb643306fa97d4c470c849c56407 | 7bb205599508203a8cbb76aa4bf962323b0adfa4 | refs/heads/master | 2021-10-18T06:07:34.331231 | 2019-02-13T06:51:24 | 2019-02-13T06:51:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 87 | py | from django.apps import AppConfig
class RgnbgnConfig(AppConfig):
name = 'rgnbgn'
| [
"root@localhost.localdomain"
] | root@localhost.localdomain |
d72aa754ffe1f1d7b2b56e808fc23e76259a2bc2 | 88f118be10a11b91b5cb7bb6ee896e0ab7a628b9 | /practica_for.py | bc20fb7c2325e987774ed0c8486930c94d63579e | [] | no_license | arieldelga/learning-python | cef303e6ae03587677cb8fabef3cf4e88c3ac29f | 22d97ee0741cbf2e00d661fd8094b1c491c52cca | refs/heads/master | 2022-12-22T09:06:02.355675 | 2020-10-05T00:43:27 | 2020-10-05T00:43:27 | 299,448,446 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 300 | py | arroba = False
punto = False
correo = input("Introduza correo electrónico: ")
for i in correo:
if (i=="@"):
arroba=True
print("hay arroba")
else:
if (i=="."):
punto=True
print("hay punto")
if (arroba and punto):
print("El email es correcto.")
else:
print("El email es incorrecto.")
| [
"arieldelgadillo444@gmail.com"
] | arieldelgadillo444@gmail.com |
a560ecc38e31cad1b8691eef247786c33d3b4091 | 7e4b0b3713356128d1f1978851e9a7d387f7da9b | /picxi/migrations/0007_remove_outpic_seg_id.py | df37c2a1fb3f802bb2bbccae60df1ad71cd851a3 | [] | no_license | prography/humony | db4838502c6813be1c5cb61b9df2ee24e7891d50 | e08fb509cde0ea0850843ff4c57e16966059d9f5 | refs/heads/master | 2022-12-10T10:48:57.039624 | 2019-07-24T23:20:16 | 2019-07-24T23:20:16 | 173,412,836 | 2 | 1 | null | 2022-12-08T05:00:29 | 2019-03-02T06:35:44 | Python | UTF-8 | Python | false | false | 331 | py | # Generated by Django 2.1.7 on 2019-06-14 15:37
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('picxi', '0006_remove_inpic_color_list'),
]
operations = [
migrations.RemoveField(
model_name='outpic',
name='seg_id',
... | [
"jun@bigpearl.io"
] | jun@bigpearl.io |
b7b2c1c4acf39cba5c2d878df855c8f86419e84d | e0e5a46f26a11034d32e19cda70be4ec7bdc3328 | /API/languages/migrations/0002_auto_20190601_2010.py | 5dee4a70240342cc42bcf20d153dddd5005d123e | [] | no_license | vincentmwanza/Sample-api | 0c9bc3d321e4a858a2655c8fa253161e00b2b823 | 7cfe795e3368dd362b945a4da7ce1dc4aad3272f | refs/heads/master | 2020-05-30T17:49:59.142775 | 2019-06-03T16:52:49 | 2019-06-03T16:52:49 | 189,884,170 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 330 | py | # Generated by Django 2.2.1 on 2019-06-01 17:10
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('languages', '0001_initial'),
]
operations = [
migrations.RenameModel(
old_name='Language',
new_name='LanguageModel',
... | [
"vincentm591@gmail.com"
] | vincentm591@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.