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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
d8604f174194d617ea021a36342e8bb56ed872f3 | 555cf712793ecf24ee32b3b8193b88f9380b6681 | /cybox-2.0.0b6/cybox/objects/x509_certificate_object.py | e7f038c63312e96356b96c60d55f2faf550603ce | [] | no_license | bopopescu/crits_dependencies | b198d45d75d0ce2f60867d26bd4fda232fa5b78a | 112e380b203069fe97e13a20bce1e926ffe18ba5 | refs/heads/master | 2022-11-21T15:01:42.761440 | 2014-06-02T22:18:38 | 2014-06-02T22:18:38 | 282,258,349 | 0 | 0 | null | 2020-07-24T15:43:44 | 2020-07-24T15:43:43 | null | UTF-8 | Python | false | false | 26,783 | py | # Copyright (c) 2013, The MITRE Corporation. All rights reserved.
# See LICENSE.txt for complete terms.
import cybox
import cybox.utils as utils
import cybox.bindings.x509_certificate_object as x509_certificate_binding
from cybox.common import ObjectProperties, String, Integer, DateTime, NonNegativeInteger
class X50... | [
"mgoffin@mitre.org"
] | mgoffin@mitre.org |
936659eb3cb90c1c27b8111c87ddf145a71c6bca | 31a5a003c25d3cd034fe39bff38d871c7e854994 | /decision_tree/dt_author_id.py | d0eaf26499f0755dc5aa375a53e046c8d75edc43 | [] | no_license | abhiishekporwal/ud120-projects-solutions | 3a5546f586d29403ac55f2d4b85128f57fed2dd6 | 920e2d852682ebe5337583c86af2f4170f9e6278 | refs/heads/master | 2023-01-30T08:30:45.248701 | 2020-12-12T13:10:37 | 2020-12-12T13:10:37 | 282,191,954 | 0 | 2 | null | 2020-12-12T13:10:38 | 2020-07-24T10:34:54 | DIGITAL Command Language | UTF-8 | Python | false | false | 1,117 | py | #!/usr/bin/python3
"""
this is the code to accompany the Lesson 3 (decision tree) mini-project
use an DT to identify emails from the Enron corpus by their authors
Sara has label 0
Chris has label 1
"""
import sys
from time import time
sys.path.append("../tools/")
from email_preprocess impo... | [
"abhiishekporwal@gmail.com"
] | abhiishekporwal@gmail.com |
c00894ef0c8a747b7a9d05f73efe554aa75785e6 | 5111b0c881c8d86705f2b237e14024396e34091a | /task_check_list/models/task_check_list.py | 88812aad7bc1b21e05fae5f1a896ebb05a2373dd | [] | no_license | odoomates/odooapps | a22fa15346694563733008c42549ebc0da7fc9f6 | 68061b6fa79818d17727ef620e28fff44b48df72 | refs/heads/16.0 | 2023-08-11T15:25:28.508718 | 2023-08-10T17:58:45 | 2023-08-10T17:58:45 | 173,598,986 | 182 | 306 | null | 2023-08-10T17:58:46 | 2019-03-03T16:20:23 | Python | UTF-8 | Python | false | false | 1,019 | py | # -*- coding: utf-8 -*-
from odoo import models, fields, api
class ProjectTask(models.Model):
_inherit = 'project.task'
@api.depends('task_checklist')
def checklist_progress(self):
total_len = self.env['task.checklist'].search_count([])
for rec in self:
if total_len != 0:
... | [
"odoomates@gmail.com"
] | odoomates@gmail.com |
726e067767a6d38da564279f2bc6a9685ab0f66a | 3ed8373c4716542f7edff56515fb3e1ac0cac42f | /mediascrape.py | 7734415a92248416331e6a9d41f7127eefbea8c4 | [] | no_license | Montana/twitscrape | 87884ff7a4e04b27a4ddbc2ea6f01747e741b4dc | b484bb68166573f5ed21d9fb138b40c1eaa2a635 | refs/heads/master | 2021-08-16T02:30:37.881065 | 2017-11-18T20:19:57 | 2017-11-18T20:19:57 | 111,235,805 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,360 | py | import requests
requests.packages.urllib3.disable_warnings()
import ssl
import TwitterMediaSearch
import os
import urllib.request
import argparse
from pathlib import Path
try:
_create_unverified_https_context = ssl._create_unverified_context
except AttributeError:
pass
else:
ssl._create_default_... | [
"montana@getprowl.com"
] | montana@getprowl.com |
6ec7a3b98f8fdcf1af9a4a4eb857d4b3e4ce4fa4 | 9f3d972f372dff980c941b61f64951b30ad62465 | /dbrequests/views.py | 9014d864cbf701912a2aa35bc447d51c5d9557df | [] | no_license | KuTTuZoV/betarchive | cf9a38fc5b8f91390505d4148b89b65cb6ca3390 | 63390d872621ce1dc7754d1feab263c1afb7a8ee | refs/heads/master | 2021-03-18T04:31:58.774044 | 2020-03-13T10:27:00 | 2020-03-13T10:27:00 | 247,045,954 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,012 | py | from django.shortcuts import render
from django.http import HttpResponse
import psycopg2
import json
import numpy
def index(request):
return HttpResponse("Index")
def getEventFactors(request):
conn = psycopg2.connect(dbname='eventData', user='postgres',
password='12345678', host=... | [
"«antonkacko@gmail.com»"
] | «antonkacko@gmail.com» |
5836a231469d4ba7b3c3ed3ca3411c40cd46e25c | b742c6d9869819247157adcd2dd1149f74aa537e | /frc2020/src/commands/shoot.py | d0df96c2ac09e44a06d756957fe4ec4a02988b3f | [
"MIT"
] | permissive | Garrett215/obstacle_bot | 87929a3640473cce6cecb14db70af9c3f662bacb | 7529128c37fda65562e9a5993ab24e7dcfde664a | refs/heads/main | 2023-03-04T20:05:56.228689 | 2021-02-16T00:39:46 | 2021-02-16T00:39:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,179 | py | #!/usr/bin/env python3
'''Drive differentially with an Xbox controller.'''
from wpilib.command import Command
class Shoot(Command):
'''Drive differentially with an Xbox controller.'''
def __init__(self, robot):
'''Save the robot object and pull in the drivetrain subsystem.'''
super().__init__(... | [
"lanefisherr@gmail.com"
] | lanefisherr@gmail.com |
69729b36949e741a9c7edf3832821394f61312c9 | 44f216cc3bb4771c8186349013ff0ed1abc98ea6 | /torch/distributed/_shard/sharded_tensor/_ops/math_ops.py | 6d3ed59da38cc711b1b67bbf8fd16e507d64083c | [
"BSD-2-Clause",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"BSL-1.0",
"Apache-2.0"
] | permissive | eiphy/pytorch | a8fc21a3c0552b392ed8c3a1d69f7ed8660c56ac | 104f0bf09ec7609d1c5626a7d7953ade4f8c9007 | refs/heads/master | 2022-05-23T02:10:13.158924 | 2022-05-07T21:26:00 | 2022-05-07T21:26:00 | 244,914,898 | 2 | 0 | NOASSERTION | 2020-03-04T14:00:53 | 2020-03-04T14:00:53 | null | UTF-8 | Python | false | false | 3,242 | py | import torch
from torch import Tensor
from torch.distributed._shard.sharded_tensor import (
ShardedTensor,
sharded_op_impl
)
from torch.distributed._shard.replicated_tensor import ReplicatedTensor
from torch.distributed._shard._utils import narrow_tensor
def binary_math_op_impl(op, types, args=(), kwargs=None... | [
"pytorchmergebot@users.noreply.github.com"
] | pytorchmergebot@users.noreply.github.com |
203d06c8f37d8ddfadc7d7efe8923a5d280dabd5 | 54969a1b5e6416d3a0dd501e53458bf46a16efb2 | /queue/queue.py | 08d066329448789cb8fb6929aced839f0e368443 | [] | no_license | Khislatz/Data-Structures | 32ff0bfc7409b3a52de9056d26967ec753c84f5b | 650c45c0bf5154a4b71cf3ceb1d01687a947973c | refs/heads/master | 2022-12-17T16:51:07.847962 | 2020-09-23T03:05:57 | 2020-09-23T03:05:57 | 296,206,211 | 0 | 0 | null | 2020-09-17T03:12:52 | 2020-09-17T03:12:51 | null | UTF-8 | Python | false | false | 2,470 | py | """
A queue is a data structure whose primary purpose is to store and
return elements in First In First Out order.
1. Implement the Queue class using an array as the underlying storage structure.
Make sure the Queue tests pass.
2. Re-implement the Queue class, this time using the linked list implementation
... | [
"noreply@github.com"
] | noreply@github.com |
5a550153513b94a01048af88834afdf84e3b3eb0 | 060d34bead5b8a9cd1ea0f7f42b355ee143e607e | /racing car.py | 7de675ac556abdbcbb653eca0d8f989a040edec8 | [] | no_license | kazu0821/Python-Projects | 76b1e6e2f9219992600d56223c1e1a99c753b228 | b5921572e014aae34f4f66fdf26f6c4b36b77bcd | refs/heads/master | 2020-05-17T22:19:00.788585 | 2019-04-29T04:04:54 | 2019-04-29T04:04:54 | 183,997,272 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,138 | py | from tkinter import * # Import tkinter
class AnimationDemo:
def __init__(self):
window = Tk() # Create a window
window.title("Animation Demo") # Set a title
width = 1250 # Width of the canvas
self.canvas = Canvas(window, bg = "green", width = 1250, height = 1500)
... | [
"noreply@github.com"
] | noreply@github.com |
35d9082fc4b7e6e7826836addca22beeb0593ac7 | f3986ca3bdf5ada5fa6112ecd569792e86d6f66d | /eval.py | 9cbdf7a9db3f20e6ab76c7478bb2a4bad6ca1e73 | [] | no_license | dkasuga/occupancy_networks_tf | 5233a5654c704c3b50beb329f692a1780611fd3d | 93019777baf65c43936f9d27a1752460ec86a338 | refs/heads/master | 2023-07-23T22:47:10.558805 | 2023-06-02T23:07:16 | 2023-06-02T23:07:16 | 267,267,839 | 3 | 0 | null | 2023-07-06T21:28:11 | 2020-05-27T08:46:55 | Python | UTF-8 | Python | false | false | 2,933 | py | # Copyright 2020 The TensorFlow Authors
#
# 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
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to i... | [
"benjamin.at.mac@gmail.com"
] | benjamin.at.mac@gmail.com |
e1367b7f47939e43f70a860dbc9a7ef347a25799 | 7866139b3dd6b465638bb819a19dfe88c5ea2667 | /sistema-banco-oo/interface.py | d26c34dc606571f6328849e787de1e93b8447369 | [] | no_license | H1ra1/cursoEH | e543190c0cc3cf6534b0c90ea18bc0097feae770 | 3633136d26f1331890ecdd79bd9479e39b803acf | refs/heads/master | 2023-05-01T10:33:57.014982 | 2019-07-26T14:59:39 | 2019-07-26T14:59:39 | 194,686,434 | 0 | 1 | null | 2023-04-21T20:34:02 | 2019-07-01T14:16:26 | Python | UTF-8 | Python | false | false | 1,107 | py | from classes import Cliente, Conta
class CaixaEletronico():
def __init__(self):
nome = input('Digite seu nome: ')
cpf = input('Digite seu CPF: ')
cliente = Cliente(nome, cpf)
self._conta = Conta(cliente)
print(f'Olá, {self._conta.titular.nome}, sua conta é {self._conta.numero}')
def exibir_m... | [
"hlira96@gmail.com"
] | hlira96@gmail.com |
d976cffb307b86d7a02e0d9adfc1806aca79bde6 | 335862509eb793fb1bdd075c03e6849c13267ee6 | /secondproject/secondapp/DBConnection.py | 1b5f177d6150d3cb40d3ac8821ed5e7dc3f8698a | [] | no_license | Kartik-CR7/Kartik_3sep2019 | f63b254b8f72d8782bca8a67d6aad446a5dbd921 | 01fa7ac1f303bf3bfd0034ea5b959224e2c59b8a | refs/heads/master | 2020-07-18T00:27:59.328752 | 2019-12-31T13:52:49 | 2019-12-31T13:52:49 | 206,133,499 | 0 | 0 | null | 2019-12-31T13:52:15 | 2019-09-03T17:25:29 | Python | UTF-8 | Python | false | false | 172 | py | import cx_Oracle
con = cx_Oracle.connect('testuser1/pass@123@10.1.6.66/orcl')
cur = con.cursor()
cur.execute("create table pragati(id number primary key,age number(10))")
| [
"kartik.sharma@qualtechedge.com"
] | kartik.sharma@qualtechedge.com |
9146fdb15e312df0af416aadbdfb57682bf9a77b | 0828f3b098343d73ba04b63c9a36a9ffc2880349 | /string/can_make_one_from_another_rally.py | f9f572558fbf8c38d2297122fe74c4823f1150ec | [] | no_license | kannanParamasivam/datastructures_and_algorithm | 27e4f5cc0b64c9baa91273a20d72cf4651d7a897 | dfab4e8167690d226bfb23a8fcd63e561642d9e7 | refs/heads/master | 2023-02-24T16:12:47.141666 | 2021-01-31T02:36:09 | 2021-01-31T02:36:09 | 202,063,364 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 795 | py | # you can write to stdout for debugging purposes, e.g.
# print("this is a debug message")
def solution(S, T):
s1 = convert_to_string(S)
s2 = convert_to_string(T)
if len(s1) != len(s2):
return False
for i, c in enumerate(s1):
if c != '?' and s2[i] != '?' and c != s2[i]:
... | [
"kannan.paramasivam@live.comx"
] | kannan.paramasivam@live.comx |
639352824e62fb004ba1510bda6aad1babb20041 | e6dab5aa1754ff13755a1f74a28a201681ab7e1c | /.parts/lib/django-1.4/tests/regressiontests/custom_columns_regress/__init__.py | b7533f1e4ee752db1b64d6e4502cd93c5563b205 | [] | 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 | 122 | py | /home/action/.parts/packages/googleappengine/1.9.4/lib/django-1.4/tests/regressiontests/custom_columns_regress/__init__.py | [
"ron.y.kagan@gmail.com"
] | ron.y.kagan@gmail.com |
50a4aa9cfcccc1e4f762802aeab4c1d0c615195b | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p04019/s609202447.py | 9cd2c625f2777b825900b773714a1f4e6fb7849b | [] | 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 | 326 | py | S=input()
n=0
s=0
w=0
e=0
for i in range(len(S)):
if S[i]=="N":
n+=1
if S[i]=="S":
s+=1
if S[i]=="W":
w+=1
if S[i]=="E":
e+=1
if n!=0 and s!=0 and w!=0 and e!=0 or n==0 and s==0 and w!=0 and e!=0 or n!=0 and s!=0 and w==0 and e==0:
print("Yes")
else:
print("No")... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
1c68bb6b8863c584a3f0728adcaa19a31159f831 | 754d26af3d5fa0900d1dbfc934f3b9f0970e2a47 | /unchained/community/announcement/views.py | da9977b7d41c7f38d2fd2e479fe5ec88fbdaba8e | [] | no_license | live-wire/community | 8a7bfdb4e2d6562d12be334ba0e655ffe041bb5f | 7b2efa7b78465134138ee08fc557f4fedf678394 | refs/heads/master | 2021-07-11T10:26:31.535653 | 2020-03-20T02:37:30 | 2020-03-20T02:37:30 | 140,683,308 | 3 | 2 | null | 2020-06-06T12:03:38 | 2018-07-12T08:17:50 | JavaScript | UTF-8 | Python | false | false | 1,121 | py | from django.shortcuts import render
from rest_framework import generics
from rest_framework import mixins
from django.contrib.auth.models import User
from rest_framework import permissions
from rest_framework.decorators import api_view
from rest_framework.response import Response
from rest_framework.reverse import r... | [
"dhruv.life@hotmail.com"
] | dhruv.life@hotmail.com |
dcb4426c63d6078fb4f8014c3c418f8b6a9dbfa6 | 4b0a0793238d31413b95b71b3af8fc37ac883427 | /tools/crash_server.py | e10273e43c04f2656507d2911736c2f74ddc52b0 | [
"BSD-3-Clause"
] | permissive | sarthak-saxena/cef_node_webkit | a408c8b4b620923e5546dab5d05c7431de7e81f4 | cca786066cdc635d2bcfb67315a70a1c40c5d77a | refs/heads/master | 2023-05-04T22:09:59.270934 | 2021-05-16T14:19:43 | 2021-05-16T14:19:43 | 367,562,455 | 1 | 0 | NOASSERTION | 2021-05-15T07:04:05 | 2021-05-15T06:58:07 | C++ | UTF-8 | Python | false | false | 11,992 | py | #!/usr/bin/env python
# Copyright 2017 The Chromium Embedded Framework Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be found
# in the LICENSE file.
"""
This script implements a simple HTTP server for receiving crash report uploads
from a Breakpad/Crashpad cli... | [
"magreenblatt@gmail.com"
] | magreenblatt@gmail.com |
12e2c2d8f72e9a5e405b65c7f9995d0f53a7a994 | 26f1189f23d8b04c914b93eb17bbcc15e31a07ef | /crash_course/ch3/3-9dinnerGuest.py | bec1315eec9951ba811b46fac487daa998b499f6 | [] | no_license | mauregato/pyscript | 0fd210f5768a5fc8f0a5ad9f119da2ba600b2f19 | deb8872aae66191e751f879b6345204ece308557 | refs/heads/master | 2021-12-22T21:36:26.292213 | 2021-12-17T15:15:01 | 2021-12-17T15:15:01 | 24,657,268 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,151 | py | dinner_people = [ 'Paul', 'Tom', 'Ruth' ]
print ("Dear " + dinner_people[0] + " you are invite to dinner this night")
print ("Dear " + dinner_people[1] + " you are invite to dinner this night")
print ("Dear " + dinner_people[2] + " you are invite to dinner this night")
print("Unfourtunately " + dinner_people[1] + " ca... | [
"hideo03@gmail.com"
] | hideo03@gmail.com |
9276fdb795dc6a212f09adb455ed7474d2c183e1 | a85f7c0b538d1d3d8bc7e33bcd1782aa31885916 | /Python Study/ex/ex33.py | 4515a45a08d3b9430692b9a7db71a9e99cfd1904 | [] | no_license | xiaosuan2b/MyFirstProject | b83677f92a6fffec8a266490960a0693a125fa97 | f4a3516fc33dabc584b5eeddce67d61832c5b7ed | refs/heads/master | 2022-11-15T15:34:07.305807 | 2020-07-14T04:01:55 | 2020-07-14T04:01:55 | 275,582,993 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 344 | py | def loop(num):
'''
@parem 循环次数
'''
i = 0
numbers = []
while i<num:
print(f"At the top i is {i}")
numbers.append(i)
i = i + 1
print("Numbers now:",numbers)
print(f"At the botton i is {i}")
print("The numbers:")
for num in numbers:
print(... | [
"a3109809244@163.com"
] | a3109809244@163.com |
96df2462240b880242a521c7a6728ce366df98c0 | 553b34a101c54090e68f540d96369ac7d5774d95 | /python/python_koans/python2/koans/about_list_assignments.py | aa05dc5b8a69e50728be9798b3455af462f5c023 | [
"MIT"
] | permissive | topliceanu/learn | fd124e1885b5c0bfea8587510b5eab79da629099 | 1c5b1433c3d6bfd834df35dee08607fcbdd9f4e3 | refs/heads/master | 2022-07-16T19:50:40.939933 | 2022-06-12T15:40:20 | 2022-06-12T15:40:20 | 21,684,180 | 26 | 12 | MIT | 2020-03-26T20:51:35 | 2014-07-10T07:22:17 | JavaScript | UTF-8 | Python | false | false | 947 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Based on AboutArrayAssignments in the Ruby Koans
#
from runner.koan import *
class AboutListAssignments(Koan):
def test_non_parallel_assignment(self):
names = ["John", "Smith"]
self.assertEqual(['John', 'Smith'], names)
def test_parallel_ass... | [
"alexandru.topliceanu@gmail.com"
] | alexandru.topliceanu@gmail.com |
315cb4e843472edef341aa184384fea3328505fb | b126ebfec67ff31021638ccca04d9140e3b13e4f | /form_app/form.py | b08acaefcc7d13d28cd7646c7698d5554e400d6e | [] | no_license | xuhaibo2017/form_kf | 3c6b807e4f217710fe5ed61d05927f8b18233e7a | f905421ea3e68d0536ca77284a8f79d15a83e4fd | refs/heads/master | 2020-07-05T03:48:41.391062 | 2019-08-16T02:17:15 | 2019-08-16T02:21:59 | 202,512,462 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 364 | py | __author__ = 'xuhb'
from .models import User
from django import forms
class UserListForm(forms.ModelForm):
class Meta:
model = User
fields = ('username', 'password')
widgets = {
'username': forms.TextInput(attrs={'class': 'form-control'}),
'password': forms.TextInput(a... | [
"18915990737@163.com"
] | 18915990737@163.com |
9a611100fd8c649b87b08fd20ab671b5a3185eac | 19a0be40dafd8f390e0a1c6aba0202b8d8580fb9 | /titleDetial.py | 0ef3c0e09f2b1b42279f82e27aab3440463f1071 | [] | no_license | sarawell/python | 40e0da1edadc0254816d88f403ce41205a01d738 | a1d7a1250122d141294435ab197a9e7095775e84 | refs/heads/master | 2020-04-08T01:59:47.017698 | 2018-12-25T02:59:10 | 2018-12-25T02:59:10 | 158,918,097 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,107 | py | import random
import queue
from urllib import request
from urllib import error
import threading
import sqlite3
import json
from lxml import etree
user_agent_pools=[
'Mozilla/5.0 (Windows NT 6.2) AppleWebKit/536.3 (KHTML, like Gecko) Chrome/19.0.1062.0 Safari/536.3',
'Mozilla/5.0 (Windows NT 6.1... | [
"664943056@qq.com"
] | 664943056@qq.com |
6e6659a6f53259de2025093f8661da24cb7ee2dd | 23f3e2ce21a7fb81c3b3173ede34e1260a4f476f | /NNT3/nn_t3.py | f569cab3b74c78615be5c34e3434612ff0b74508 | [
"MIT"
] | permissive | hanooka/ml_algos_implementations | 321810d5f190206329de7db4bcaecadd40fbd3a8 | fc22d98d88aa79b21bfe858f8ea16fd487f9d1e2 | refs/heads/master | 2020-03-24T13:02:04.011313 | 2018-12-02T14:28:58 | 2018-12-02T14:28:58 | 142,732,960 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 12,945 | py | import numpy as np
import h5py
import matplotlib.pyplot as plt
from testCases_v2 import *
from dnn_utils_v2 import sigmoid, sigmoid_backward, relu, relu_backward
plt.rcParams['figure.figsize'] = (5.0, 4.0) # set default size of plots
plt.rcParams['image.interpolation'] = 'nearest'
plt.rcParams['image.cmap'] = 'gray'
... | [
"ernmse@gmail.com"
] | ernmse@gmail.com |
7a94cee8c072f4d26a22c602b911ae95caabdd58 | 64c9339c239f050fbd64dda9b211cc4933261480 | /trestle/oscal/component.py | 0f83a8c2ba59b24c825b0b38335744d43dfbd1ca | [
"Apache-2.0"
] | permissive | degenaro/compliance-trestle | e094f4d19b4b4a5d9483ee4c6cb99ef85cdb57fb | 253b17bf7eaf944a32df96f49f4dab9b5d0ec3b2 | refs/heads/main | 2023-04-12T20:44:33.487559 | 2021-05-13T07:12:22 | 2021-05-13T07:12:22 | 368,640,007 | 0 | 0 | Apache-2.0 | 2021-05-18T19:07:26 | 2021-05-18T19:07:25 | null | UTF-8 | Python | false | false | 24,220 | py | # generated by datamodel-codegen:
# filename: oscal_component_schema.json
from __future__ import annotations
from datetime import datetime
from enum import Enum
from typing import Any, Dict, List, Optional
from pydantic import AnyUrl, EmailStr, Field, conint, constr
from trestle.core.base_model import OscalBaseMo... | [
"noreply@github.com"
] | noreply@github.com |
33e76d5adb60cd3f8bd9a0d3330c8b9d21ed42c2 | 8c5318317a48ffdc76e7aac9956b98f004430225 | /venv/Scripts/easy_install-script.py | 10eff57d19e8a7e7108ec071cae53d3648552e2a | [] | no_license | YazCodes/makeupAPI_app | 0cdc4b8e9a02cad252d97b1d954d0f31c4a0cdad | de75117db4cd13c12569f985d3b50d8503dab30b | refs/heads/master | 2022-06-28T20:53:52.616484 | 2020-05-14T16:50:34 | 2020-05-14T16:50:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 450 | py | #!C:\Users\yasmi\PycharmProjects\API_App\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==40.8.0','console_scripts','easy_install'
__requires__ = 'setuptools==40.8.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.... | [
"yjones@spartaglobal.com"
] | yjones@spartaglobal.com |
774aa9c707a5cf85fe8c6516260f179afdb6fa9f | df58f44e253b72a635cd23336ec4ebb6101b87b1 | /PYTHONTRAINNING/module6/user_exception.py | 1fa7835b55737c6eba106c72dc7840ee4975e242 | [] | no_license | prachi464/Python-assignment | 99564e3c59fdcc68cfb32cd959e11860ff811c58 | bf5b7d9f875d8f7d724851ceff274138b3f80452 | refs/heads/master | 2020-12-20T19:24:41.865825 | 2020-01-25T15:48:04 | 2020-01-25T15:48:04 | 236,186,915 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 250 | py | class MyError(Exception):
def __init__(self,value):
self.value=value
def __str__(self):
return(repr(self.value))
try:
raise(MyError(3*2))
except MyError as error:
print('A new Exception occured:',error.value)
| [
"noreply@github.com"
] | noreply@github.com |
b883d4613806a95ab753103d22f2fcd096a20b3f | 2e682fd72e3feaa70e3f7bf2a3b83c50d783ec02 | /PyTorch/contrib/cv/others/Pix2Pix/util/__init__.py | 4de848e30b5a486d7214bec80276e35a3a4d0d04 | [
"BSD-3-Clause",
"BSD-2-Clause",
"Apache-2.0",
"MIT",
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-unknown-license-reference",
"GPL-1.0-or-later"
] | permissive | Ascend/ModelZoo-PyTorch | 4c89414b9e2582cef9926d4670108a090c839d2d | 92acc188d3a0f634de58463b6676e70df83ef808 | refs/heads/master | 2023-07-19T12:40:00.512853 | 2023-07-17T02:48:18 | 2023-07-17T02:48:18 | 483,502,469 | 23 | 6 | Apache-2.0 | 2022-10-15T09:29:12 | 2022-04-20T04:11:18 | Python | UTF-8 | Python | false | false | 667 | py | # Copyright 2021 Huawei Technologies Co., Ltd
#
# Licensed under the BSD 3-Clause License (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://opensource.org/licenses/BSD-3-Clause
#
# Unless required by applicable law or agreed to in ... | [
"wangjiangben@huawei.com"
] | wangjiangben@huawei.com |
c417845b9f1b3acde43139ff6ab1888da30c27c4 | 3138d8b7cf40e8095931dde3c3e507359124ed7a | /url_gui_file.py | 127dcfc5d70996f34ec1d87d2e2d05b97f0d533f | [] | no_license | KevinLu19/URL-Shortener | 501c0be89a0162a35e8786dee0d2e4f0782ef243 | c6f02f2bb24e2deecc452361bbb377a9d20f4a1f | refs/heads/master | 2023-01-29T18:57:43.772914 | 2020-12-05T20:36:00 | 2020-12-05T20:36:00 | 309,700,616 | 0 | 0 | null | 2020-12-05T20:36:02 | 2020-11-03T13:49:38 | Python | UTF-8 | Python | false | false | 4,074 | py | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'url_gui.ui'
#
# Created by: PyQt5 UI code generator 5.15.1
#
# WARNING: Any manual changes made to this file will be lost when pyuic5 is
# run again. Do not edit this file unless you know what you are doing.
from PyQt5 import QtCore, QtGu... | [
"Kevinxz01@gmail.com"
] | Kevinxz01@gmail.com |
108aff9c807cdf60daab73492b868bce94678beb | dea9307c0635367a837a33fb6c379e5372fe7bd0 | /reapy/tools/network/web_interface.pyi | e67e4433ecfc34a17b57d83d780cd3ff7a571ed1 | [
"MIT"
] | permissive | RCJacH/reapy | e9f8329dddbb39f2bfd8d162196b2965b10ec32a | 2028d01f35d982d04d13070258af8856ea4cc555 | refs/heads/master | 2021-03-23T00:49:02.206714 | 2020-03-08T21:50:33 | 2020-03-08T21:50:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 784 | pyi | from reapy.errors import DisabledDistAPIError, UndefinedExtStateError
from reapy.tools import json
from urllib import request
from urllib.error import URLError
import reapy
import typing as ty
class WebInterface:
_url: str
ext_state: ExtState
def __init__(self, port: int) -> None:
... | [
"pianoist@ya.ru"
] | pianoist@ya.ru |
5a94022cc57cf0d92cd41b172980b2fda91202ae | 89c0b0e800b0079e3f4227a9b6f730cff06b8ba7 | /attendance_custom/reports/daily_attendance_report.py | 4bfea6ae9118ac0df599ebbad54e699aa9ce42f6 | [] | no_license | mudathirdev/almanna-erp-project | 27b90c6328f0a6ffdf385b44e3f003451af2e953 | 08cf67899ec54e49b2c131092324c291d8728a2d | refs/heads/master | 2023-02-23T12:37:25.322460 | 2021-01-30T22:16:41 | 2021-01-30T22:16:41 | 278,242,627 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,409 | py | # -*- coding: utf-8 -*-
import base64
import io
from datetime import datetime
from webcolors import rgb_to_hex
from odoo import models
from odoo.fields import Datetime as ODT
class AttendanceXLSX(models.AbstractModel):
_name = 'report.attendance_custom.daily_attendance_report'
_inherit = 'report.report_xlsx... | [
"bashier.mustafa@iatl-sd.com"
] | bashier.mustafa@iatl-sd.com |
98e752f4dc298c1294ecddca7f10414d52cafae2 | 4f034cd7bd8c4dd6825207c42eb476026df34774 | /sphinx/conf.py | b84c056a3ec57f7932e4e3d38308fb24c822c89d | [] | no_license | ImperialCollegeLondon/CCITK | 5e5c351a4b6f317a21dca8d2c6dc609a72e5a2de | 1818f91deaf0bf56a159dc80ea047a03231257ba | refs/heads/master | 2023-04-19T02:05:16.847410 | 2023-03-31T13:45:50 | 2023-03-31T13:45:50 | 574,995,107 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,270 | py | # Configuration file for the Sphinx documentation builder.
#
# For the full list of built-in configuration values, see the documentation:
# https://www.sphinx-doc.org/en/master/usage/configuration.html
# -- Project information -----------------------------------------------------
# https://www.sphinx-doc.org/en/master... | [
"lisurui6@gmail.com"
] | lisurui6@gmail.com |
f10558c3ce38710d78fcfffc21dda605820129e7 | eae4038397ea0b0b1ea56424888f53369a1e4282 | /moai/parameters/optimization/optimizers/adam_srt.py | 3c7177f5e0e17de45e0f93db114d5f7383798fe5 | [
"Apache-2.0"
] | permissive | iampakos/moai-0.1.0a2 | b2378e9e0a84b85c0e2251a419d39d3da7ea17f9 | 2f066bffc66faca0bdc9af53e7992df34d09ce5d | refs/heads/main | 2023-03-13T13:27:54.318498 | 2021-04-01T14:36:52 | 2021-04-01T14:36:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,401 | py | import functools
import math
import torch
import typing
__all__ = ['AdamSRT', 'AdamS']
#NOTE: from https://github.com/ymontmarin/adamsrt/blob/master/adamsrt/optimizers/adam_srt.py
class AdamSRT(torch.optim.Optimizer):
"""Implements the AdamSRT algorithm.
- **Paper**: [Spherical Perspective on Learning with ... | [
"pakos@ai-in-motion.dev"
] | pakos@ai-in-motion.dev |
1fc7466c2092f11c763d286a9b3b2cffd0fff50c | 0cfd072b7c4d91016862ea7964dd60f57a20cea8 | /setup.py | ff51a6989dd6001de513e5ad4eedcaf724db4404 | [
"MIT"
] | permissive | thejayhaykid/babysitter-kata | 98de1769d4d93639d0b87bef09ca8d69a346edf3 | a6496e0758c449f9f9d627e96cbc5f18c0cceda8 | refs/heads/master | 2022-01-22T08:10:51.550580 | 2019-07-26T01:51:10 | 2019-07-26T01:51:10 | 198,310,045 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 672 | py | # -*- coding: utf-8 -*-
from setuptools import setup, find_packages
with open('README.md') as f:
readme = f.read()
with open('LICENSE') as f:
license = f.read()
setup(
name='babysitter',
version='0.1.0',
description='Simulate a babysitter working and getting paid for one night.',
long_descr... | [
"jayhay28324@gmail.com"
] | jayhay28324@gmail.com |
88f43d7c059927bc0229ff3e721887724a001662 | bf94cb3dcac8a4dd5097dd06f9386986e08b9590 | /app.py | a10563b4a266a8c09afaaabd8d031f5cd1248426 | [] | no_license | VioletViolaVi/Flask-Mini-Project-Task-Manager | 96038685a650f70e39e39c8514c0c62277f9fbb4 | 1422463d552037d2545e02154fbb10cdaaca1741 | refs/heads/master | 2023-05-12T09:53:26.746585 | 2020-08-04T16:59:30 | 2020-08-04T16:59:30 | 284,043,784 | 1 | 0 | null | 2023-05-01T21:45:09 | 2020-07-31T13:32:16 | HTML | UTF-8 | Python | false | false | 6,694 | py | import os
from flask import (
Flask, flash, render_template,
redirect, request, session, url_for)
from flask_pymongo import PyMongo
from bson.objectid import ObjectId
from werkzeug.security import generate_password_hash, check_password_hash
if os.path.exists("env.py"):
import env
app = Flask(__name__)
a... | [
"vivian.v18723@gmail.com"
] | vivian.v18723@gmail.com |
b983fe96b16b5b9107bb8bc1ca1ccc642f4e0edc | 6e3ad2c8ddcdc863216e77bcbbe115af80d39b10 | /about_ui.py | dade713f86236d132a207c1f46c4a9dc0f65e246 | [] | no_license | heric/qPlurk | 2358c853c48da06fd4694292066105520bb93f44 | 2543278bef4c27a7ff8782143a9d02c14771a715 | refs/heads/master | 2020-05-16T18:07:15.940241 | 2009-05-21T07:04:56 | 2009-05-21T07:04:56 | 206,560 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,903 | py | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'about.ui'
#
# Created: Sun May 17 20:21:35 2009
# by: PyQt4 UI code generator 4.4.4
#
# WARNING! All changes made in this file will be lost!
from PyQt4 import QtCore, QtGui
class Ui_About(object):
def setupUi(self, About):
... | [
"heri.cahyono@gmail.com"
] | heri.cahyono@gmail.com |
9799fc1e45fda27dcb34396f2c32441b21f2b4ae | 2acffe7b6cc92ffa10debd8109e5e831846685e6 | /code/06_make_plot_from_db.py | 81129cd7881ac7b32eb4624753e5918b699e5ade | [] | no_license | Chenghan-Sun/AMP-ANN | 0e407d1a31ce74de60e271d73f0c82104c28dff6 | b8824962b093669531991fd03ecb4cb18d9a6717 | refs/heads/master | 2020-04-18T21:10:13.903940 | 2020-02-07T18:44:20 | 2020-02-07T18:44:20 | 167,757,759 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,851 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
This file:
Making plot from stored database
"""
import sys
import shutil
import os
from ase.db import connect
sys.path.insert(0, '../src/') # relative path
from plot_utils import fitting_energy_plot
from plot_utils import fitting_force_plot
from plot_utils import... | [
"sunchenghan1995@gmail.com"
] | sunchenghan1995@gmail.com |
76e97572b6c206cf3f00580cb32aa0665567c95b | d5df2e08a1d4064d0c34db7e1e23823b44fa62fa | /api/project/infrastructure/drivers/apm/connector.py | 2bfaf84ee1599c7ed8159fa27eac2130781db85c | [
"MIT"
] | permissive | sharof2000/ms-fastapi-template | 42c1f68f3260e8facad6984abada9f3d56363e05 | 5bbd6903305db07cc18330ec86fb04ca518e9dab | refs/heads/main | 2023-07-06T21:28:13.558790 | 2021-08-13T13:52:12 | 2021-08-13T13:52:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,608 | py | import uuid
from elasticapm.base import Client
from project.infrastructure.environments.loader import Configs
from project.infrastructure.monitoring_layer.aplication_general_log import Log
log = Log()
class Apm(object):
def __init__(self) -> None:
"""
Na inicialização da classe de conexão com... | [
"farlley@live.com"
] | farlley@live.com |
f898d853b4ec13c2059132fe246db0fd8af36a96 | a831c5ebe4ba7b423c8d413ed1e590154efb8ac4 | /lemudim1/manage.py | 67a3a3507353fcab9578d35ce04a5515da11dd3a | [] | no_license | AbuAlzen/Team17_Project | 27ef834b5ceca9f35c83949c25fc1140c70af09e | 2bc35740f8fd2613bfc0cd6f1b47b89b0cf6cdf1 | refs/heads/main | 2023-05-06T06:21:14.459663 | 2021-04-04T13:38:46 | 2021-04-04T13:38:46 | 373,271,838 | 0 | 0 | null | 2021-06-02T18:49:53 | 2021-06-02T18:49:52 | null | UTF-8 | Python | false | false | 664 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
"""Run administrative tasks."""
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'lemudim1.settings')
try:
from django.core.management import execute_from_command_line
except Imp... | [
"baselme@ac.sce.ac.il"
] | baselme@ac.sce.ac.il |
dff7bbe98971ffdb3c3cbf46dcd27dd587faf52e | 75f45278006fe833aab248c00a05fb099d5de96b | /20201129-pyconchina/typeschema_parser.py | fddb1a0516bca51c609914c26662e08ea5fc1cbe | [
"MIT"
] | permissive | thautwarm/Slides | 851acbed5e3f39eab1ab624a4bdda82c3f8127fe | f88832c1dcc38b9a7afdbb2986515c9a58d2b077 | refs/heads/master | 2021-07-03T13:59:51.895168 | 2020-12-02T12:33:18 | 2020-12-02T12:33:18 | 203,609,797 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 31,907 | py |
"""
Copyright thautwarm (c) 2019
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the foll... | [
"twshere@outlook.com"
] | twshere@outlook.com |
0a6d677d3bfe4d9fc3186df61d42fd1449051a94 | cb0e7d6493b23e870aa625eb362384a10f5ee657 | /solutions/python3/0239.py | 9306b2072110eb6570e723b0a84bc6ed856cb9dd | [] | no_license | sweetpand/LeetCode-1 | 0acfa603af254a3350d457803449a91322f2d1a7 | 65f4ef26cb8b2db0b4bf8c42bfdc76421b479f94 | refs/heads/master | 2022-11-14T07:01:42.502172 | 2020-07-12T12:25:56 | 2020-07-12T12:25:56 | 279,088,171 | 1 | 0 | null | 2020-07-12T15:03:20 | 2020-07-12T15:03:19 | null | UTF-8 | Python | false | false | 530 | py | class Solution:
def maxSlidingWindow(self, nums: List[int], k: int) -> List[int]:
ans = []
decreasingQueue = collections.deque()
for i, num in enumerate(nums):
while decreasingQueue and num > decreasingQueue[-1]:
decreasingQueue.pop()
decreasingQueue.... | [
"walkccray@gmail.com"
] | walkccray@gmail.com |
9c439dd90703b73edc146cfbc628fab4e7984a37 | cfa08425d0a457e0c673543b6e16f0a02effe05f | /projects/admm_4bus/data/sixbus/plot.py | 86a8e56d3602f498a28cb6b6409a2bb9500fe2cf | [] | no_license | missinglpf/Distributed_optimization | 5b3dfea8b2a29225761537531322e421be83d7a8 | 84040eebd3f04acf4c09e5e4ff2e59e752bf3fae | refs/heads/master | 2020-08-01T03:42:36.455932 | 2018-06-25T15:59:44 | 2018-06-25T15:59:44 | 210,850,421 | 1 | 0 | null | 2019-09-25T13:20:11 | 2019-09-25T13:20:10 | null | UTF-8 | Python | false | false | 4,376 | py | import matplotlib.pyplot as plt
import pandas as pd
import numpy as np
from datetime import datetime
# df0 = pd.read_csv('lamda300/data_A_0.csv')
# df1 = pd.read_csv('lamda300/data_A_0.csv')
# df0 = pd.read_csv('lamda200/data_A_0.csv')
# df3 = pd.read_csv('lamda100/data_A_0.csv')
df0 = pd.read_csv('lamda50/... | [
"tunglam87@gmail.com"
] | tunglam87@gmail.com |
06a339d1dc8660a0fcd65260544e8a8f55867d64 | c8570770a94aea0b43c6407cdeba06d1d8d20e92 | /choreizo.wsgi | e853a2fc309976f6abed8147e91b0de29ec178a2 | [] | no_license | persones/chore-izo | cabde5874f036f1867a7c88e529319590fafbe95 | 7e04a8c6ed6da85042c222b1497f4b0edafdc379 | refs/heads/master | 2022-09-02T19:02:27.598305 | 2021-08-19T06:32:31 | 2021-08-19T06:32:31 | 241,438,466 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 113 | wsgi | #!/usr/bin/python
import sys
sys.path.insert(0,"/home/person/choreizo/")
from choreizo import app as application
| [
"eyal.person.shahar@gmail.com"
] | eyal.person.shahar@gmail.com |
4ef8c9268cce2e9905159a437bd05b86df8adad0 | 295bd9cc7943395e2e05b9aaac34e0e3d8d7490e | /experiments/fevals_experiment.py | 7b3f000b4cf40158057f21c7dd8d53d80428bf8f | [
"MIT"
] | permissive | ALFA-group/reckless-minimax | df8abe36203aab215536aa82fff205c5c2351d4e | 938f0ad5c1818475c90cbde125ad4421325c3547 | refs/heads/master | 2020-03-21T22:59:17.841374 | 2018-07-02T12:52:30 | 2018-07-02T12:52:30 | 139,159,487 | 1 | 2 | MIT | 2018-08-23T14:16:40 | 2018-06-29T14:32:28 | Python | UTF-8 | Python | false | false | 6,342 | py | """
Experiments on the Robust DE problems
"""
import numpy as np
import pandas as pd
from test_suite.robust_de_problems import RobustDEProblem
from methods.reckless import Reckless
from methods.coev import CoevAlternating, CoevParallel
from methods.mmde_2017 import MMDE
from utils.latex_tbl import df_2_tex
from utils.... | [
"aldujail@mit.edu"
] | aldujail@mit.edu |
1aeda076e9cf0db4f835dec755caca32bbe6c42e | b1249f4bae1106570601870d9e50f946fb1600f2 | /0x08-python-more_classes/3-rectangle.py | 51fab9f157532d83c1709ff022a55b84cfa89543 | [] | no_license | Eltotino/holbertonschool-higher_level_programming | 275a1661589666194ffc3666bb9af8c1ec314983 | 5972c0d86f6a03f41861b35716276d79e1ccfe8b | refs/heads/main | 2023-06-22T23:36:54.168404 | 2021-07-12T15:42:14 | 2021-07-12T15:42:14 | 259,333,569 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,249 | py | #!/usr/bin/python3
""" Rectangle module """
class Rectangle:
"""
Class that defines a Rectangle
Attributes:
width: width of the rectangle
height: height of the rectangle
"""
def __init__(self, width=0, height=0):
"""
Init method is the constructor of the class ... | [
"totojaber1@gmail.com"
] | totojaber1@gmail.com |
d2b595fb70592bef1d4684b87e397b295f0e4f49 | c8042a46e9a5f46fe4a787410305ba08900e7d98 | /roster/migrations/0001_initial.py | cdfbd758c32ff4b5714f5c19d3e697b4ef436145 | [] | no_license | DejanDavidovic/Euroleague | aafe6cd263694decfe021c679755abd3ade69859 | cf8b7af869b1c7d951ce71265221c0d3922d4ec6 | refs/heads/master | 2021-04-30T04:06:48.716887 | 2018-06-05T08:24:10 | 2018-06-05T08:24:10 | 121,529,780 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,717 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.6 on 2017-12-22 10:32
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.Crea... | [
"dddejan1989@gmail.com"
] | dddejan1989@gmail.com |
afb02e97b0e4004e14d9c672ec1972d124005491 | f1bff0e018463081513c30258a67f238f5d08396 | /finalizing.py | b5105ab4545ed0f1ea81bf1665dca4f52c311693 | [] | no_license | bellyfat/speaker-Identification | cfcedd86ea634d5df19e560acea250c5b8dbc5d0 | 34c9ce12c6400f116e04a0d1be75e0e79228d599 | refs/heads/master | 2022-04-07T12:23:59.446618 | 2019-08-26T07:59:44 | 2019-08-26T07:59:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,290 | py | from recoder import *
import glob, os
import wave
import pylab
def training():
get_model()
print("training complete....")
# getting the audio
def getAudio():
rec = Recorder()
print("Start recording")
rec.start()
time.sleep(11)
print("Stop recording")
rec.stop()
print("Saving")
rec... | [
"noreply@github.com"
] | noreply@github.com |
d9b9202f7b62193882d517eee79922fec8ffec65 | dfc8a69e9a03ca4b48f2107acfe38553e3247544 | /python/04crawler/2.py | 221a8a8ec9469e35ffd1bfb85b79d77389b478a5 | [] | no_license | Leap-Zhao/skills_program | ec943c6d68fcb8a01aee1b8ed970a82c86f44e63 | 11faf8b51aa1b7b9bee7e68a7fac98c030e6aac2 | refs/heads/master | 2018-11-15T10:21:57.663875 | 2018-09-20T10:20:23 | 2018-09-20T10:20:23 | 83,137,789 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,314 | py | #coding=utf-8
import urllib
import urllib2
# 爬取贴吧的页面
def loadPage(url,filename):
"""
从url中加载网页
url:
filename:
"""
print("正在加载 %s" % filename)
ua_headers = {"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko)"}
request = urllib2.Request(url,headers = ua_headers... | [
"zhaofeiyue1234@163.com"
] | zhaofeiyue1234@163.com |
8e725276edde728b56862510da106778c1da2780 | 7f57c12349eb4046c40c48acb35b0f0a51a344f6 | /2017/002_AddTwoNumbers_v1.py | 1ea044ab8f4b389954d82f3afbf3dffdd586c7d5 | [] | no_license | everbird/leetcode-py | 0a1135952a93b93c02dcb9766a45e481337f1131 | b093920748012cddb77258b1900c6c177579bff8 | refs/heads/master | 2022-12-13T07:53:31.895212 | 2022-12-10T00:48:39 | 2022-12-10T00:48:39 | 11,116,752 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,639 | py | #!/usr/bin/env python
# encoding: utf-8
class ListNode:
def __init__(self, x):
self.val = x
self.next = None
class Solution:
# @param {ListNode} l1
# @param {ListNode} l2
# @return {ListNode}
def addTwoNumbers(self, l1, l2):
head = p = None
carry = 0
while l... | [
"stephen.zhuang@gmail.com"
] | stephen.zhuang@gmail.com |
1f5bfa3b56f3350f47d2fc9a211a3fc86d107e99 | 39993aea9d6c6a4a762d65695063ad9632d7bd9a | /0.8 Loops.py | b38f1cbdcd138aaa25127f5fc76e4795dd6f8e27 | [] | no_license | tarushsinha/pyLearn | 7bafb889fd04a47a44c6f50e5c69ff942a7fc788 | 413d5bf84018a1897eac17a1376d6fad28aa5dfa | refs/heads/master | 2020-12-09T13:11:33.616219 | 2020-03-23T19:41:55 | 2020-03-23T19:41:55 | 233,314,939 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 864 | py | ## Loops - can be used to perform code on each item in a list
## each code operation on an item of the list is called an iteration
nums = [1, 2, 3, 4]
print(nums)
## if we want to square each number in nums, we can use a while loop, and a counter
numCounter = 0
while numCounter < len(nums):
nums[numCounter] **= 2... | [
"tarush.sinha@gmail.com"
] | tarush.sinha@gmail.com |
35adf4736501fca640db244a785e03e12817d82c | 26e338246124660aac0c140f243969ec6d71db21 | /ExcelLezen.py | 95cf217d5c4b8f99a8e6e2e5117e71e1605bea09 | [] | no_license | paul-versteeg/Oefen | 27c7c5fe1aea960833b8a370c8b3c52edf603871 | de9cdcd0029986e68824057e78a8bd46d4bdc30a | refs/heads/master | 2020-04-09T05:21:12.313532 | 2018-12-15T21:11:19 | 2018-12-15T21:11:19 | 160,061,172 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 189 | py | from openpyxl import *
wb=load_workbook('/home/dev/test.xlsx')
for sheet in wb.sheetnames:
ws=wb[sheet]
for row in ws.rows:
for cell in row:
print(cell.value)
| [
"noreply@github.com"
] | noreply@github.com |
aa335995ab6880d81045360cb7057f0aa0027d3e | 4819ed98a31fce25ea53ba8368e817a3c4165768 | /Estructuras repetitivas/complementarios/TP1.py | d9f6361ed4110a4d0294673b3a0651ee529bd48a | [] | no_license | Lusius045/LucioRP | 155e929549cd528e7bc9eda82567555ca1295734 | 0df07f596887e8743426317cd468aafff4e4a9eb | refs/heads/master | 2022-10-10T18:36:12.728135 | 2022-09-13T14:03:35 | 2022-09-13T14:03:35 | 243,602,573 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 361 | py | print("-------------------------------------------------------")
print("100 NÚMEROS PARES.")
print("-------------------------------------------------------")
cont = 0
print("Ingrese 10 números:")
for i in range (1,10 + 1):
num = int(input("Número:"))
if num % 2 == 0:
cont = cont+1
p... | [
"noreply@github.com"
] | noreply@github.com |
d62efc83eb2431fa40802568e257a73875ffb234 | c8ff2470532cdac50d2d3974e14528a0644392a3 | /src/train_transfer.py | e002e9fe62a9f8b9b866a728a7807fdf150358c6 | [] | no_license | niusilong/competition_inception_v4 | c1c55121e8d5926e14e2baaae0c4fb3f369d4f43 | d24dabe82151ec513a49dd357edc760a2fc0f667 | refs/heads/master | 2020-04-11T06:04:45.455812 | 2018-12-13T02:24:35 | 2018-12-13T02:24:35 | 161,569,653 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,763 | py | #coding=utf-8
import glob
import os.path
import numpy as np
import tensorflow as tf
from tensorflow.python.platform import gfile
import tensorflow.contrib.slim as slim
import change_image_util
from tensorflow.python.framework import graph_util
#加载通过Tensorflow-Slim定义好的inception_v3模型
from nets import inception_v4
import... | [
"niusilong2006@163.com"
] | niusilong2006@163.com |
61f0d940e0be707a4e8b350b845a65d6547f2c95 | 1c4a406177d7e0ae58b284fd999a21034ef7ea5a | /slack/version.py | c23ca1c4cac964caa33a86a4b6f8538659f2d17f | [
"MIT"
] | permissive | taras-y/python-slackclient | b374acc70f8d06a1c3675d7f3139064c8e243a00 | 3706b0811c3fa569f039eb9d7158f4bf8c8f0223 | refs/heads/master | 2021-07-19T12:20:23.008646 | 2020-09-19T11:23:58 | 2020-09-19T11:23:58 | 215,239,132 | 0 | 0 | MIT | 2020-09-19T11:23:59 | 2019-10-15T07:50:52 | null | UTF-8 | Python | false | false | 100 | py | # see: http://legacy.python.org/dev/peps/pep-0440/#public-version-identifiers
__version__ = "2.9.0"
| [
"seratch@gmail.com"
] | seratch@gmail.com |
47fc7609c7840f44a8a36732191723aaed6399c9 | 45c170fb0673deece06f3055979ece25c3210380 | /toontown/coghq/BossbotCountryClubKartRoom_Battle00.py | 6209ace14272197b5d427ec788369610888baf8c | [] | no_license | MTTPAM/PublicRelease | 5a479f5f696cfe9f2d9dcd96f378b5ce160ec93f | 825f562d5021c65d40115d64523bb850feff6a98 | refs/heads/master | 2021-07-24T09:48:32.607518 | 2018-11-13T03:17:53 | 2018-11-13T03:17:53 | 119,129,731 | 2 | 6 | null | 2018-11-07T22:10:10 | 2018-01-27T03:43:39 | Python | UTF-8 | Python | false | false | 1,780 | py | #Embedded file name: toontown.coghq.BossbotCountryClubKartRoom_Battle00
from toontown.coghq.SpecImports import *
GlobalEntities = {1000: {'type': 'levelMgr',
'name': 'LevelMgr',
'comment': '',
'parentEntId': 0,
'cogLevel': 0,
'farPlaneDistance': 1500,
'modelFilename': 'ph... | [
"linktlh@gmail.com"
] | linktlh@gmail.com |
d70d2dc857f13ed79aa546aa0435ac7ad9a67b32 | 5059dd81358e4a6acf5ec5c0acaac49f834b1726 | /classes/banList.py | 6c54581d422fd9293fa449cd7eefa55c67e3e6fd | [
"MIT"
] | permissive | VMAJSTER/openstreamingplatform | 4e41267f7f1b0f687733525d0e02e9bcc9e9d315 | f002246db922dab9a3f019f46001f3901326feaf | refs/heads/master | 2023-03-25T04:04:25.057061 | 2021-02-24T18:02:57 | 2021-02-24T18:02:57 | 350,442,822 | 0 | 0 | MIT | 2021-03-22T18:38:24 | 2021-03-22T18:08:25 | null | UTF-8 | Python | false | false | 1,365 | py | from .shared import db
class banList(db.Model):
id = db.Column(db.Integer,primary_key=True)
channelLoc = db.Column(db.String(255))
userID = db.Column(db.Integer, db.ForeignKey('user.id'))
def __init__(self,channelLoc,userID):
self.channelLoc = channelLoc
self.userID = userID
def _... | [
"dave.r.lockwood@gmail.com"
] | dave.r.lockwood@gmail.com |
61baf08de92c44a24177eefcad97d419303970ea | 8f867ab98a5687f46619c2598de51eaecdaeb759 | /KNN.py | a227416268f61964876b69cedbf7fc21bb468b17 | [] | no_license | gongjizhang/KNN | b81ad1716ee7b7d2ffaf7fbe872539e0f8e3b6ae | db968b06b342697cf230c7052f8a065a071ca4ab | refs/heads/master | 2020-06-20T13:21:58.737167 | 2016-11-27T01:58:00 | 2016-11-27T01:58:00 | 74,860,827 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,442 | py | from numpy import *
import operator
import matplotlib
import matplotlib.pyplot as plt
from os import listdir
def creatDataset():
group =array([[1.0,1.1],[1.0,1.0],[0,0],[0,0.1]])
labels = ['A','A','B','B']
return group,labels
def file2matrix(filename):
fr = open(filename)
arrayOLines = fr.readline... | [
"zgj19910831@163.com"
] | zgj19910831@163.com |
cff0eb8c7f28cde3b6bc97e28413c5fd6c50e9ba | c63857f81061d8dd1b26fc4c18e1fdb890370447 | /printer.py | 2fe748e30e0bc4255def1608f35a37e695034b55 | [] | no_license | davish/pi-clock | df48094c9cdd99407bd1aa9f126c5106bc6dd523 | 9d9a9b7db2ca7527b9c23513c4144a96cbd706d2 | refs/heads/main | 2023-08-13T12:40:55.189944 | 2021-10-12T02:51:08 | 2021-10-12T02:51:08 | 355,730,859 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 773 | py | #!/usr/bin/env python3
import requests
from bs4 import BeautifulSoup
from PIL import Image
import io
from Adafruit_Thermal import *
printer = Adafruit_Thermal("/dev/serial0", 9600, timeout=5)
def get_xkcd():
r = requests.get('https://xkcd.com/atom.xml')
xml_soup = BeautifulSoup(r.text)
latest = xml_soup... | [
"davis.haupt@gmail.com"
] | davis.haupt@gmail.com |
5eebf063f9a4e6f551fb16fe20c87df19bf637c9 | 3861d748011a287816a232b92d2031fdefb01a2b | /fresnel_reflectance.py | 550c358634f01693c34cd48716f3ff2935b95788 | [] | no_license | sumukhvaidya/RadianceModellingScattering | 1746dc4f8974025c352fce4ac0f0dd28d483aced | 3596b4e47d26432a487947e6a38343636d1e4591 | refs/heads/master | 2020-06-12T20:45:50.960188 | 2019-07-06T09:18:31 | 2019-07-06T09:18:31 | 194,420,481 | 0 | 1 | null | 2019-06-29T18:40:24 | 2019-06-29T15:28:56 | Python | UTF-8 | Python | false | false | 463 | py | def reflectance(n1, n2, c):
# c = 3.0e8
M1 = n1 * sqrt(1 - (n1/n2 * sqrt(1-c**2))**2);
# print("M1:")
# print(M1)
M2 = n2 * sqrt(1 - (n1/n2 * sqrt(1-c**2))**2);
# print("M2:")
# print(M2)
Rs = ((n1*c - M2)/(n1*c + M2))**2;
print("Rs:")
print(Rs)
Rp = ((n2*c - M1)/(n... | [
"noreply@github.com"
] | noreply@github.com |
32fbc34676edaf7762916c0f922239ef9616fb55 | adb193b8d87b81d9169d4c15c5ee2ef42c02a184 | /SARBEE.py | f98933e10b2c683a0e7cd812bc5d835391f2ff78 | [] | no_license | zhuhaoran1987/BLOCKCHAIN | 0e3ecd54627b7ab2f605c279b99442b2e95c848e | 921740dcce8874595540c2cdfbc889ec096cbe53 | refs/heads/master | 2020-04-08T00:04:08.483708 | 2018-11-24T02:27:54 | 2018-11-24T02:27:54 | 158,836,447 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 31 | py | import pandas as pd
asdfa
daf
| [
"noreply@github.com"
] | noreply@github.com |
05971f8af30a77128c08fc4edbabb6d6dbf8d33c | 3bb8fbc13b957767409405b158297925fd586662 | /deep_Learning/deep-learning-myself/3/3.2.7.py | d3ce5f51ebaf338a9a500d81b1f4fc7c2cca1805 | [] | no_license | SoutaTanaka/my_pyhton | 5cf704e9585013ff1ebd30768c8d665cabdb9461 | c410339523c2454143f1b1b9d59a73684ce6fddd | refs/heads/master | 2020-03-17T20:27:58.510618 | 2018-05-18T06:14:43 | 2018-05-18T06:14:43 | 133,911,199 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 161 | py | import numpy as np
import matplotlib.pylab as plt
def relu(x):
return np.maximum(0, x)
x = np.arange(-5.0, 5.0, 0.1)
y = relu(x)
plt.plot(x, y)
plt.show()
| [
"SoutaTanaka@tanakasouta-no-MacBook-Pro.local"
] | SoutaTanaka@tanakasouta-no-MacBook-Pro.local |
6cedc11b21eb576d025e57da6ccc3febbc2bb6c4 | d2c80cd70f3220165c7add7ed9a103c0ed1ab871 | /python/HOMEWORK/5th_Session/Answers/Class/1/1.py | 37d69bb2650fbd94bf752634ed7bc727c291f579 | [] | no_license | nervaishere/DashTeam | 2a786af8a871200d7facfa3701a07f97230b706e | a57b34a601f74b06a7be59f2bfe503cbd2a6c15f | refs/heads/master | 2023-08-24T12:24:18.081164 | 2021-10-09T21:10:54 | 2021-10-09T21:10:54 | 393,689,874 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 485 | py | a=int(input("enter your first number:" ))
b=int(input("enter your second number:" ))
c=int(input("enter your third number:" ))
maximum=max(a,b,c)
minimum=min(a,b,c)
if a==maximum and b==minimum:
print(a, c, b)
elif a==maximum and c==minimum:
print(a, b, c)
elif b==maximum and a==minimum:
print(b, ... | [
"athenajafari34@gmail.com"
] | athenajafari34@gmail.com |
777ffbf266467e0ceb8a71bb70445652547f6406 | cad91ae76d2746a6c28ddda0f33a58f9d461378f | /PyTorch/Forecasting/TFT/triton/runner/maintainer/docker/containers/__init__.py | cef46b3b10a7504c38e16e3ddf806649f598489b | [
"LicenseRef-scancode-generic-cla",
"Apache-2.0"
] | permissive | NVIDIA/DeepLearningExamples | fe677521e7e2a16e3cb0b77e358f9aab72f8c11a | a5388a45f71a949639b35cc5b990bd130d2d8164 | refs/heads/master | 2023-08-31T20:57:08.798455 | 2023-08-23T10:09:12 | 2023-08-23T10:09:12 | 131,881,622 | 11,838 | 3,124 | null | 2023-08-28T16:57:33 | 2018-05-02T17:04:05 | Jupyter Notebook | UTF-8 | Python | false | false | 673 | py | # Copyright (c) 2021-2022, NVIDIA CORPORATION. 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 a... | [
"kkudrynski@nvidia.com"
] | kkudrynski@nvidia.com |
7461637d40a3096ec3e12766fc5d9198b8cb2fdb | 3e4bb5b4036a66d25a72793c1deaa4f5572d37bf | /apps/pyvcal/tests/independent/revision.py | 8c3bae6df8ddd6187220622f0a6e5e8f2e1e65fd | [
"MIT"
] | permissive | hbussell/pinax-tracker | f7f7eb0676d01251d7d8832557be14665755844d | 4f6538324b2e1f7a8b14c346104d2f1bd8e1556b | refs/heads/master | 2021-01-20T12:06:29.630850 | 2010-02-03T00:39:05 | 2010-02-03T00:39:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,092 | py | import modulespecific
import unittest
class TestRevision(modulespecific.ModuleSpecificTestCase):
"""Test the Revision interface."""
def setUp(self):
"""Create and connect to a repository."""
self.basic_repo = self.test_module.BasicRepository()
self.repo = self.basic_repo.repo()
... | [
"harley@harley-desktop.(none)"
] | harley@harley-desktop.(none) |
56d9d598741edda218bd913431fb7d0130404c0d | df1039817b167e7b5802723ed37c4fcb53965f45 | /home/views.py | 9ccc9aef92e4c24d81f794ba26a20b3f0e7f3912 | [] | no_license | chetanpawar19/ichetanpawar | 5c5eea25ff597f9187d3f34c74e73c20e6fa65b0 | 9b4c95c5de8ba0fb04ec94a39322765d6b827561 | refs/heads/master | 2020-11-27T17:50:01.783707 | 2019-12-22T10:45:47 | 2019-12-22T10:45:47 | 229,549,586 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 195 | py | from django.shortcuts import render
from .models import Highlights
def home(request):
highlights = Highlights.objects
return render(request, 'home/index.html',{'highlights':highlights})
| [
"chetanpawar19@outlook.com"
] | chetanpawar19@outlook.com |
85549cb1de5f2779d9073304686111d2c76e3609 | 1bd559f85447d9ce1e10f5db5be89d9fef109356 | /d.py | 9182727686bf6fb58e75db2a307494bf9817c7cb | [
"MIT"
] | permissive | chengkaihao/test2 | 312854af99caa7a8ee7ae455fd5b80e63ba18463 | 43663a845c512ef24364263182351ce2ec0a2566 | refs/heads/master | 2020-11-29T05:50:37.963266 | 2019-12-25T04:19:31 | 2019-12-25T04:19:31 | 230,037,342 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9 | py | print(d)
| [
"112233@163.com"
] | 112233@163.com |
b1c6b9c7b78745be3b9380a12448397bc501cc3e | 69cd021099f51a59c2bb2469393de3db62a4e1cd | /URIOnlineJudge/iniciante/1038.py | 23f861d7e532d61707dc25c757b47d3f1e0efcf6 | [] | no_license | cesaralmeida93/programacao-treino | 6302bfff13ed99229aa9b082650a98df0f5d847c | c737fc235b80fe8aec82e283c946ff0ff5f050a9 | refs/heads/master | 2023-08-30T19:53:02.177510 | 2023-08-29T13:51:22 | 2023-08-29T13:51:22 | 196,032,849 | 0 | 0 | null | 2022-08-09T10:40:52 | 2019-07-09T15:09:55 | Python | UTF-8 | Python | false | false | 667 | py | '''Com base na tabela abaixo, escreva um programa que leia o código de um item e a quantidade deste item. A seguir, calcule e mostre o valor da conta a pagar.
Entrada
O arquivo de entrada contém dois valores inteiros correspondentes ao código e à quantidade de um item conforme tabela acima.
Saída
O arquivo de saída... | [
"ocesaralmeida@gmail.com"
] | ocesaralmeida@gmail.com |
d8194a910febb338161234dd2ca1b0ca28446a04 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03129/s416237729.py | 26351727aeb63985e21352d846400af1977248dc | [] | 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 | 129 | py | n,k = input().split()
n = int(n)
k = int(k)
for l in range(k):
l = 2*l +1
c = l
if c <= n:
print('YES')
else:
print('NO') | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
6aaecee0c1775aae2c4e82a23e1daf750a33f3e5 | b4348654b7dc7b73015977d03c7464af8a1c57e8 | /meetups/admin.py | 141ad6c96960b0fbdcef2c0c00d6fa8f8fab126f | [] | no_license | gr8guyrabi/meetups | 6b698fb4de0531634c45b57de6a48935679844c8 | 3ae6ac5550abd4e6fe3974740c7a37245ec135b4 | refs/heads/master | 2023-07-18T09:06:09.425049 | 2021-09-07T07:22:57 | 2021-09-07T07:22:57 | 402,676,758 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 730 | py | from django.contrib import admin
from .models import Meetup, Location, Participant
# Register your models here.
class MeetupAdmin(admin.ModelAdmin):
list_display = ('title', 'location', 'date', )
list_filter = ('location', 'date',)
prepopulated_fields = {'slug': ('title',)}
search_fields = ('title', ... | [
"gr8guyrabi@gmail.com"
] | gr8guyrabi@gmail.com |
86afd457c842b29e419998349f8353c18483ab10 | 54ab0f79f5d68f4732ca7d205f72ecef99862303 | /benchmarks/distributed/rpc/parameter_server/metrics/ProcessedMetricsPrinter.py | 7ff8c3171a83336b367299649c37b08f416d7ca2 | [
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"BSL-1.0",
"Apache-2.0",
"BSD-2-Clause"
] | permissive | csarofeen/pytorch | a9dd0f8ffa0642d72df2d5e109a8b4d9c2389cbc | e8557ec5e064608577f81e51ccfe7c36c917cb0f | refs/heads/devel | 2023-04-30T02:42:13.558738 | 2023-03-14T00:50:01 | 2023-03-14T00:50:01 | 88,071,101 | 35 | 10 | NOASSERTION | 2023-06-21T17:37:30 | 2017-04-12T16:02:31 | C++ | UTF-8 | Python | false | false | 3,206 | py | import statistics
import pandas as pd
from tabulate import tabulate
class ProcessedMetricsPrinter:
def print_data_frame(self, name, processed_metrics):
print(f"metrics for {name}")
data_frame = self.get_data_frame(processed_metrics)
print(tabulate(data_frame, showindex=False, headers=dat... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
dec0fc3d8920bc931a612023d6fc3a6fcefe614e | 0b802202e93909707fbaeca3fc6407fb00a9572d | /BloodDonorSolution.py | 5dc134a3796e0ab9778de78dae6941cc54b8ff52 | [] | no_license | TheDreamSaver/BloodDonorProblem | 4a546c13f17f2fefd3318c38a873248358178a3b | f9df5c96c2580de830f1fb22e49a9c66a0483eae | refs/heads/master | 2021-01-20T13:03:56.631158 | 2017-05-06T06:17:55 | 2017-05-06T06:17:55 | 90,441,052 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,097 | py | import collections
#The donors that the patients prefer
preferred_rankings_patients = {
'P1': ['D1', 'D2', 'D3', 'D4'],
'P2': ['D2', 'D1', 'D4', 'D3'],
'P3': ['D2', 'D4', 'D3', 'D1'],
'P4': ['D1', 'D2', 'D3', 'D4']
}
#The patients that the donors prefer
preferred_rankings_donors = {... | [
"noreply@github.com"
] | noreply@github.com |
5a4363a9436c011576955ef846fbf77df59d9c99 | 810005132cfd85e853864bc0368c32c4642c1821 | /association/migrations/0003_auto_20210215_1000.py | 058602f0669142befe077446c38ea22419dd9b92 | [
"BSD-3-Clause"
] | permissive | bpprc/database | 8473a598f1922d20f6644c8efd76c3b3a6da9256 | 6e8302729793ddf840630840bd08c96ddd35a52e | refs/heads/master | 2023-07-12T17:28:17.780278 | 2021-08-18T21:58:56 | 2021-08-18T21:58:56 | 311,465,038 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 449 | py | # Generated by Django 3.1.4 on 2021-02-15 15:00
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
("association", "0002_auto_20210213_1536"),
]
operations = [
migrations.RemoveField(
model_name="association",
name="accession... | [
"sureshcbt@gmail.com"
] | sureshcbt@gmail.com |
1e37527f29c2854833479d5163c8d36cd581c455 | f6af03b78f53d59e37afb62e0cd30a209bd4c780 | /escherauth/__init__.py | 0af1b5bd2c279008ffa94a6fbd0f65f153987f22 | [
"MIT"
] | permissive | emartech/escher-python | 182f9993f28f60c6b74894204fae2f03472c0686 | c909c8e99fc5ad7f7b0e88679762ecbaaa4c84ef | refs/heads/master | 2022-04-30T00:46:10.640479 | 2022-04-25T13:54:14 | 2022-04-25T13:54:14 | 25,729,171 | 4 | 6 | MIT | 2021-11-15T14:28:01 | 2014-10-25T11:25:21 | Python | UTF-8 | Python | false | false | 25 | py | from escherauth import *
| [
"knagy@emarsys.com"
] | knagy@emarsys.com |
373acc2bcb313e92d96b6a0047fef866c1c722f7 | 7bc54bae28eec4b735c05ac7bc40b1a8711bb381 | /src/scratch/code2023/namespace.py | 99715efdf2a7cd185fc763fdba1aab4033c39f8a | [] | no_license | clover3/Chair | 755efd4abbd5f3f2fb59e9b1bc6e7bc070b8d05e | a2102ebf826a58efbc479181f1ebb5de21d1e49f | refs/heads/master | 2023-07-20T17:29:42.414170 | 2023-07-18T21:12:46 | 2023-07-18T21:12:46 | 157,024,916 | 0 | 0 | null | 2023-02-16T05:20:37 | 2018-11-10T21:55:29 | Python | UTF-8 | Python | false | false | 5,654 | py | import logging
import os
from tensorflow.python.ops.summary_ops_v2 import create_file_writer
import trainer_v2.per_project.transparency.mmp.probe.probe_common
from cpath import output_path
from misc_lib import path_join
from trainer_v2.custom_loop.modeling_common.adam_decay import AdamWeightDecay
from trainer_v2.cus... | [
"lesterny@gmail.com"
] | lesterny@gmail.com |
3387ae1b1d0a34336e4ea23eb4760242a75c0806 | 1c56881af22e27749b1583f75e40b1a7442b8e8b | /basics/ejercicio1.py | 6f1e5dcea62a8d8109e0d020f8258efa1b84287c | [] | no_license | sergioc6/python-course | 41a086fa95d9356beef65ecdf44c9caa770f806e | 75b9dca32f546ac47c7b56e4f6a3328e70fc21cc | refs/heads/master | 2023-01-30T16:17:41.568704 | 2020-12-07T21:20:30 | 2020-12-07T21:20:30 | 319,414,117 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 241 | py | #Ejercicio 1
a = float(input("Ingrese el valor de a: "))
b = float(input("Ingrese el valor de b: "))
c = float(input("Ingrese el valor de c: "))
result = (pow(a, 3) * (pow(b, 2) - (2 * a * c))) / (2*b)
print(f"El resultado es: {result}")
| [
"sergiocabral.1990@gmail.com"
] | sergiocabral.1990@gmail.com |
0ed61ea3ffb98ede87fe820e72353dc9572ec5f2 | 651f3abf179dd90ff4b6ba3e9af7c6714d4a4435 | /Data-driven Celebrity Evaluation System/code/source_code/WeiboRawDataCrawl.py | 7115758cb2804b996cc98e0a52a0566342e54405 | [] | no_license | kehuanW/Data-driven-Celebrity-Evaluation-System | 1baa6817fa07cc7d59057b6f07b0e8907e2f43f8 | 7817975760124eb1688662f7d94be50609858be1 | refs/heads/master | 2023-02-05T02:58:16.451115 | 2020-12-27T07:03:13 | 2020-12-27T07:03:13 | 324,703,016 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,868 | py | import os
import time
import pickle
from tqdm import *
from selenium import webdriver
from bs4 import BeautifulSoup
import pandas as pd
def run():
path = os.getcwd()
csvPath = path + '/WeiboRawData.csv'
# create dataframe
df = pd.DataFrame(columns=('Num.', 'Type', 'Content', 'Likes', 'Repost', 'Commen... | [
"kehuanwang123@gmail.com"
] | kehuanwang123@gmail.com |
182aa32be776173939d43c2e1a016e21db36adfc | 1544aa582a5f50b4af779520e4a8d52a049bc87b | /commentapp/decorators.py | e347cfd9af1c5f546f235be77b8d85b0c72111d2 | [] | no_license | tae00909/gis_1 | 4f8d09fe00c44da10ed5b449663f9caa2204b885 | 4335e7046dbf2d024f25dc2a71fb584c8028fe5a | refs/heads/master | 2023-08-11T07:50:41.683263 | 2021-09-28T01:33:54 | 2021-09-28T01:33:54 | 382,189,982 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 475 | py |
# 데코리이더 목적이 함수를 받아서 꾸며주는 것
from django.http import HttpResponseForbidden
from commentapp.models import Comment
def comment_ownership_required(func):
def decorated(request, *args, **kwargs):
target_comment = Comment.objects.get(pk=kwargs['pk'])
if target_comment.writer == request.user:
... | [
"rlaxogud0909@likelion.org"
] | rlaxogud0909@likelion.org |
cd379920cc5ea4db3c55bde8b17ea7fcbd430749 | 4f9294ada23e929ade7c8df2bf6e2602f76c06b6 | /main_OUT.py | b851776e514ffc4c1cd61006d3aebe548ff978d8 | [] | no_license | Ninecl/FaceSpy | cfc14f951cfd306c58d0ce98f0e97d43caa616b2 | 1a6a7a2d71d53625815643d074a41b0cac2225eb | refs/heads/master | 2020-05-18T12:49:16.413439 | 2019-05-28T08:49:41 | 2019-05-28T08:49:41 | 184,417,096 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,648 | py | # -*- coding: utf-8 -*-
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from multiprocessing import Process, Queue, Lock, Event
import video_recieve
import video_detect
import video_process
import cnt
import updateModel
import os
# 创建读取摄像头视频流的队列
rightFrame... | [
"732052923@qq.com"
] | 732052923@qq.com |
802092cc93d2c4f6bff433d02903d66411dd3997 | 40581462ee9d2a417084ee21527f6984eead573a | /beesdoo_easy_my_coop/models/subscription_request.py | 9d186534990a4005c0eb6f491808401dd8874381 | [] | no_license | coopiteasy/Obeesdoo | 8b3f3420dc910c6c8c3846ce9fd32105fea39cb5 | f246aae0eb031227097379b66fd4a46174858f6f | refs/heads/9.0 | 2021-06-13T14:02:37.349971 | 2020-04-08T16:17:49 | 2020-04-08T16:17:49 | 157,566,980 | 1 | 1 | null | 2020-06-26T12:34:55 | 2018-11-14T15:10:44 | Python | UTF-8 | Python | false | false | 907 | py | # -*- coding: utf-8 -*-
# Copyright 2019 Coop IT Easy SCRLfs
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from openerp import api, fields, models, _
class SubscriptionRequest(models.Model):
_inherit = 'subscription.request'
info_session_confirmed = fields.Boolean(
string="Confirm... | [
"remytaymans@gmail.com"
] | remytaymans@gmail.com |
f69562cac75625cb75192aeaa20d1ce0a62a7d05 | f4d79ff6aedf17a19fd1e58a078205c755d5ddb1 | /imagezmq.py | 1f07188ad9d417f9311ba0c447f9f6e25a153450 | [] | no_license | khw11044/oldprojectdir | 1b56753f4e265583bb74fef48a2bc529b7e4aeb7 | 058ddf914c83084a38f020fbca80f9fc38ff1e40 | refs/heads/master | 2022-11-28T19:39:32.294017 | 2020-08-07T08:22:58 | 2020-08-07T08:22:58 | 285,777,282 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,456 | py | """ imagezmq: Transport OpenCV images via ZMQ.
Classes that transport OpenCV images from one computer to another. For example,
OpenCV images gathered by a Raspberry Pi camera could be sent to another
computer for displaying the images using cv2.imshow() or for further image
processing. See API and Usage Examples for d... | [
"khw11044@gmail.com"
] | khw11044@gmail.com |
bce8748b7248cdfe9ebb78421253eb40baef5620 | 9feacae54b852982e791699131a5dced342fd134 | /python/pythonCoding/day1/lab3.py | 06321eefe1fc206ca95bc3da31e264a01fae66d0 | [] | no_license | hoyeongkwak/workspace | bd89f981e73f4aff2eb4a7d8c914925968651af3 | c70d8dcd18a401af04296f71f02335ac3048240f | refs/heads/master | 2023-06-23T01:54:13.608849 | 2021-07-23T13:48:22 | 2021-07-23T13:48:22 | 276,769,601 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 415 | py | import sys
def input_data():
readl = sys.stdin.readline
N = int(readl())
num = [float(readl()) for _ in range(N)]
return N, num
sol = 0.0
# 입력받는 부분
N, num = input_data()
# 여기서부터 작성
nMax = 0
for i in range(N-1):
n = num[i]
for j in range(i+1,N):
n = n * num[j]
if n > nMax:
... | [
"ghy2002@gmail.com"
] | ghy2002@gmail.com |
01d6ccd971f9dbd73ae848ef6dd8b55fe677a1e8 | bd9435fb18fe3100f1616d10db50ebccf47e415c | /main.py | 22199055bc3266c1f486bdceb85aeffd86229d4c | [] | no_license | nzivkovi/Mathbot_RPi | 5d95bf6ffbae3a834ed97232b62ca14bd22d810b | aa6df0c8c691629cfbfe3b4be631cf417cb8d974 | refs/heads/master | 2020-05-07T11:26:55.207811 | 2019-04-09T22:59:38 | 2019-04-09T22:59:38 | 180,461,872 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,516 | py | import math
import time
from threading import Thread
# from plot.plot import DynamicPlot
from controllers.go_to_goal import GoToGoal, Goal
from controllers.follow_wall import FollowWall
from controllers.avoid_obstacles import AvoidObstacles
from helpers.body import State
from robots.mathbot import Mathbot... | [
"nikola.z1994@gmail.com"
] | nikola.z1994@gmail.com |
64a2f6689e74b94b8ed76e6cae0bed317078440b | bfc25f1ad7bfe061b57cfab82aba9d0af1453491 | /data/external/repositories_2to3/204509/kaggle-liberty-mutual-group-master/code/correlation.py | b6f3c6e3fd83c3c6656f2ae5fe14cd5de6b86512 | [
"MIT"
] | permissive | Keesiu/meta-kaggle | 77d134620ebce530d183467202cf45639d9c6ff2 | 87de739aba2399fd31072ee81b391f9b7a63f540 | refs/heads/master | 2020-03-28T00:23:10.584151 | 2018-12-20T19:09:50 | 2018-12-20T19:09:50 | 147,406,338 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 422 | py | # -*- coding: utf-8 -*-
"""
simple code to calculate Pearson correlation between two results
"""
import pandas as pd
import numpy as np
print('Reading data...')
xgb1 = pd.read_csv("../output/xgboost_1.csv")
xgb2 = pd.read_csv("../output/xgboost_2.csv")
rf = pd.read_csv("../output/rf.csv")
gbm = pd.read_... | [
"keesiu.wong@gmail.com"
] | keesiu.wong@gmail.com |
132e9db9543813842f995f2fd654ceafcae79d6a | 772fad3efdf2625c7d66d5c8e6fe4d7ce1be7f33 | /tests/test_parser_base.py | 1bd3ad2ba0b03081f1ee13e8bbda711a10c5c421 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | sfischer13/python-arpa | 314227e4b839d616c5ca743bdc31089fc5630fd4 | 861a19b8cf7c64100a12f24440f2267626195c01 | refs/heads/master | 2023-08-29T03:29:52.081728 | 2021-04-10T15:15:12 | 2021-04-10T15:15:12 | 37,779,505 | 45 | 17 | MIT | 2022-12-08T07:42:35 | 2015-06-20T17:49:22 | Python | UTF-8 | Python | false | false | 332 | py | from arpa.models.base import ARPAModel
from arpa.models.simple import ARPAModelSimple
from arpa.parsers.quick import ARPAParserQuick
from test_arpa import TEST_ARPA
def test_parse():
with open(TEST_ARPA, 'rt') as fp:
result = ARPAParserQuick(ARPAModelSimple).parse(fp)[0]
assert isinstance(result,... | [
"sfischer13@ymail.com"
] | sfischer13@ymail.com |
7dca6901ca72687c869f83116cdfb7077f26f6d8 | 2d5bbe4bae62eb3f29bcfe870905da03457dad90 | /portfolio/migrations/0006_auto_20200512_2012.py | fdd15b377838077340066a92fcec9445a24cdfe5 | [] | no_license | rodrigoneumann/photographer-ms4 | f9ebec22704620a11fd8c10d1c139773e516b9ea | 4bdba82e34cf9d94c8c2d194210753a222eb68c0 | refs/heads/master | 2022-12-14T22:39:25.815711 | 2022-03-17T08:48:30 | 2022-03-17T08:48:30 | 252,980,806 | 0 | 2 | null | 2022-12-08T09:59:39 | 2020-04-04T11:38:39 | HTML | UTF-8 | Python | false | false | 568 | py | # Generated by Django 3.0.5 on 2020-05-12 20:12
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('portfolio', '0005_auto_20200508_1046'),
]
operations = [
migrations.AlterField(
model_name='photo',
name='category',... | [
"rneumann@MacBook-Pro-de-Rodrigo.local"
] | rneumann@MacBook-Pro-de-Rodrigo.local |
dc8cf357950b741f36efa615cb05491abdb5b30b | 59d185bb0304fdc92b0b0d99dcfa1d026b9e3765 | /Day3/part2.py | ebde47db94771b97a1f56f3acd3312653c73daa4 | [] | no_license | dorisch/Advent-of-code-2020 | 45c2abf32e2e644f355895f9c2c5b0fa58b472ff | 568c783cb62ae261b63f5ad1dd5cdb336a26709c | refs/heads/main | 2023-01-27T22:30:36.746939 | 2020-12-07T22:01:23 | 2020-12-07T22:01:23 | 317,458,661 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 928 | py | with open ("input.txt") as f:
items = []
for x in f:
x = x.replace("\n", "")
items.append(x)
def get_new_list():
length_items = len(items)
new_list = []
for i in items:
new_list.append(i*length_items)
return new_list
def count_trees(trajectory_list, right, down):
tr... | [
"dorota.chudzik@giss.pl"
] | dorota.chudzik@giss.pl |
5ffe8d3f56f7eb09c4a816b755d0902bd66390ff | e8c79e95aa003cb9827903d30027fc456517d64e | /Seguimientos/Seguimiento1/N1038414799/Segimineto1.py | f327b4da5f22598bee25442dc9a77ab5ba3235bc | [] | no_license | jotadram6/CUFICO_2020_1 | f6fd691ead45cdc95666beecbb87eeabfc53878c | 4390a1e11b0c061343b3c67a1d4295d97062a559 | refs/heads/master | 2021-01-02T15:35:44.690797 | 2020-04-29T00:26:59 | 2020-04-29T00:26:59 | 239,684,574 | 2 | 18 | null | 2020-04-18T15:39:28 | 2020-02-11T05:33:49 | C++ | UTF-8 | Python | false | false | 934 | py | #!/home/jhoan_eusse/anaconda3/bin/python
from mpl_toolkits import mplot3d
import numpy as np
import matplotlib.pyplot as plt
class Particula:
cargada=True
def __init__(self,x,y,z,vx,vy,vz,m,C):
self.X=x
self.Y=y
self.Z=z
self.VX=vx
self.VY=vy
self.VZ=vz
... | [
"camilo.eusse@udea.edu.co"
] | camilo.eusse@udea.edu.co |
b45f6f5085189ab782f19607fc233d9e94a96ac7 | 5787ebf0512ec220c421752c0e52851ce7ce6c01 | /Dictionary Revision/vowel4.py | 85d66245905d2542a934c995af519b88a56e0680 | [] | no_license | sandeep-sb/100DaysOfCode | 6d3c321ebe6581236329bed51862794245d743f9 | eddd705babf197cc189cec66f2214a7fff5f53fe | refs/heads/master | 2023-07-22T21:46:36.637505 | 2021-09-01T17:28:03 | 2021-09-01T17:28:03 | 362,458,951 | 1 | 0 | null | 2021-04-29T11:08:57 | 2021-04-28T12:26:55 | Python | UTF-8 | Python | false | false | 358 | py | vowels = ['a', 'e', 'i', 'o', 'u']
word = input('Provide a word to search for a vowel: ')
found = {}
found['a'] = 0
found['e'] = 0
found['i'] = 0
found['o'] = 0
found['u'] = 0
for letter in word:
if letter in vowels:
found[letter] += 1
for key,value in sorted(found.items()):
print(... | [
"noreply@github.com"
] | noreply@github.com |
2dfa082a8ee4bdea727e6bff44141db784b96d04 | 9302230d217aac48bdd23e7f81fa4962e35ddd26 | /experiments/oracles.py | b497209794da75056c42ae645077fcd1f1509bde | [
"MIT"
] | permissive | xiamenwcy/wcep-mds-dataset | 13004af9af616762947a8e530272fc50f30bbfcb | c4153e2595be1bfd4d2bc40e86bdbbe718570c15 | refs/heads/master | 2023-04-02T00:05:23.555383 | 2021-04-01T23:42:22 | 2021-04-01T23:42:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,710 | py | import argparse
from collections import Counter
from nltk import word_tokenize, ngrams
from summarizer import Summarizer
import utils
def compute_rouge_n(hyp, ref, rouge_n=1, tokenize=True):
hyp_words = word_tokenize(hyp) if tokenize else hyp
ref_words = word_tokenize(ref) if tokenize else ref
if rouge_n... | [
"demian@aylien.com"
] | demian@aylien.com |
258d5f63199a5795a9b31736c81936fc853df0ee | a890dbb3dca651dd99455b265c15ffea9f80ce3a | /backend/blog/urls.py | 2598a4847b4502a614cd320df0964c97fee3afec | [] | no_license | WillV1/django-blog | 6f9633781fba5ec1c670b8441eb93da58da6fe0b | 98efc382293e6284f4750ec3299c35adad9812df | refs/heads/main | 2023-02-04T01:39:33.256115 | 2020-12-15T21:28:53 | 2020-12-15T21:28:53 | 319,420,121 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 175 | py | from rest_framework import routers
from .views import BlogViewSet
router = routers.DefaultRouter()
router.register('api/blog', BlogViewSet, 'blog')
urlpatterns = router.urls | [
"wmvanhook@gmail.com"
] | wmvanhook@gmail.com |
9ea97ed1995601d2a76c286e13f44eb8bb22857b | 75eb288af995f2159162061e94baa1dba194e2fe | /Assignment3/relevance_feedback.py | 4415cc51d3685ff30b04cf726f7c4912f1e16dbf | [] | no_license | isha-goel/MCA | a108016abd7520fa3c7f1c045d936e8b3cb75bc0 | 5dafed743fffe69e837259e2ed9b838e5808b227 | refs/heads/master | 2022-07-06T18:50:35.664578 | 2020-05-19T08:19:49 | 2020-05-19T08:19:49 | 263,124,940 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,295 | py | def relevance_feedback(vec_docs, vec_queries, sim, gt, n=10):
"""
relevance feedback
Parameters
----------
vec_docs: sparse array,
tfidf vectors for documents. Each row corresponds to a document.
vec_queries: sparse array,
tfidf vectors for queries. Each row c... | [
"noreply@github.com"
] | noreply@github.com |
b93d87ce70a495573dabee85a40df6df8b43d875 | fdfeea83edbf239230a5aee558641efdf3531724 | /basic/python_Data_Structure/search/sequence_search.py | a6917b4cabe1c23d1689f977b653b32684e9226d | [] | no_license | jszheng/PyChild | 192cdb57a9d2c87bdcb5b20c110c82521a2a02b8 | 02ab3959f067a246674ad29dbf7a0929babae57e | refs/heads/master | 2021-05-16T03:22:00.010716 | 2020-07-03T14:08:16 | 2020-07-03T14:08:16 | 39,426,062 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 359 | py | def Seqencesearch(target, alist):
pos = 0
found = False
while pos < len(alist) and not found:
temp = alist[pos]
if temp == target:
found = True
else:
pos = pos + 1
return found
testlist = [1, 2, 32, 8, 17, 19, 42, 13, 0]
print(Seqencesearch(3, testlis... | [
"zyz@hotmail.com"
] | zyz@hotmail.com |
4eb8f8958f9e8d9b8576e86c25788c16faa7e5ef | 8423252233a60b0ae0bd64fa80670df6352e4f79 | /bug_bounty_domains.py | c38677b97b04baabec1920c3c6305b7c83c3e3f9 | [] | no_license | Yrassim/Black-Hat-Python | 9cab981a635c74163999219ee53de6acc9199961 | 26c8bf22ded7a67ad22a76c5df931f4d44e6498a | refs/heads/master | 2023-04-01T17:04:02.361087 | 2021-04-09T23:09:31 | 2021-04-09T23:09:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 294 | py | site_list = open("bug-bounty-sites.txt", "r")
sites = site_list.readlines()
domain_list = open("bug-bounty-domains.txt", "w")
for site in sites:
if not 'mailto' in site:
split_site = site.split('/')
if len(split_site) > 1:
domain_list.write(split_site[2] + '\n') | [
"socx@protonmail.com"
] | socx@protonmail.com |
e1777a1bf88087f70635240d8c7855eca9233d1a | cb35fffaab9650a8b89019a0269ad7cdf772f757 | /news/migrations/0001_initial.py | 849f2c75fec1aa5d94778cd7ca1fc5ab0994583d | [] | no_license | amazing22/my-second-blog | 6c75dddae2650269805edfa9c0f2b89ba6f1db48 | a5cc02663badcbb2efcaf6d291a634edbdb8a009 | refs/heads/master | 2021-08-08T03:19:58.404245 | 2017-11-09T12:32:22 | 2017-11-09T12:32:22 | 102,439,698 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,180 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.6 on 2017-10-11 05:06
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.Crea... | [
"you@example.com"
] | you@example.com |
7b9aa1d7952c370899e3c66a831dfd9c00be18a3 | 84249d799ca6a29b564a6c080b9027225a1bc374 | /Linked_List.py | 3ecef56d4ce2517a9cf4c914debf21835c7c115f | [] | no_license | pruksmhc/buzzfeedAPI | 8f9417fcbe16e66961cb4e21f5ec92b5b31d694d | 228f37d0667771539cf87e023742fb2f5de3d874 | refs/heads/master | 2021-01-10T04:38:01.492874 | 2016-08-26T00:14:08 | 2016-08-26T00:14:08 | 46,350,448 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,021 | py | from LinkedListNode import LinkedListNode
class LinkedList(object):
def __init__(self, head):
self.head =head
def getHead(self):
return self.head
def setHead(self, head):
self.head= head
def insertFirst(self, LLNode):
if self.getHead() == None:
self.head = LLNode
# print ("There is no head")... | [
"pruks22y@mtholyoke.edu"
] | pruks22y@mtholyoke.edu |
b018c86a7c6c80f8fa48f8ac5dcca77ac0fc80bc | d8c50195fe04a09bd98e12f0b18a84dbe4a3dfe2 | /zeus/tasks/process_artifact.py | a16482e42a4078a95b72babb1012eb62ace1e806 | [
"Apache-2.0"
] | permissive | keegancsmith/zeus | 44eeac0e9c99635f21bfa7ec744c84be7b40525e | e7bfe3db564ad1bbf449d8197f7d663fe41dd60a | refs/heads/master | 2021-09-04T04:34:47.747175 | 2018-01-12T17:24:11 | 2018-01-12T21:55:31 | 117,591,379 | 0 | 0 | null | 2018-01-15T20:19:57 | 2018-01-15T20:19:57 | null | UTF-8 | Python | false | false | 2,120 | py | from flask import current_app
from zeus import auth
from zeus.artifacts import manager as default_manager
from zeus.config import celery, db
from zeus.constants import Result
from zeus.models import Artifact, Job, Status
from zeus.utils import timezone
from .aggregate_job_stats import aggregate_build_stats_for_job
... | [
"dcramer@gmail.com"
] | dcramer@gmail.com |
abb40f6104d91f9d09907f53c15d22b40b43d962 | 6f1e1c378997bf76942ce6e203e720035169ce27 | /104-maximum-depth-of-binary-tree.py | 7c47b2cce48c405645fdc77aba59813e9127047c | [
"MIT"
] | permissive | yuenliou/leetcode | a489b0986b70b55f29d06c2fd7545294ba6e7ee5 | e8a1c6cae6547cbcb6e8494be6df685f3e7c837c | refs/heads/main | 2021-06-16T07:47:39.103445 | 2021-05-11T09:16:15 | 2021-05-11T09:16:15 | 306,536,421 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,927 | py | #!/usr/local/bin/python3.7
# -*- coding: utf-8 -*-
from collections import deque
from datatype.tree_node import TreeNode
class Solution:
def maxDepth(self, root: TreeNode) -> int:
"""dfs"""
if not root:
return 0
else:
l = self.maxDepth(root.left)
r = self... | [
"liuyuan@aplum.com.cn"
] | liuyuan@aplum.com.cn |
4e71953ea5d17920c540d29e944877d704f20cc5 | 4ee4c2cafad449dd60032630bdd249e63d70b5ac | /plugins/xevents/Xlib/xauth.py | 4755b353f1bc01bc186ea50603860a9c1df9ddec | [
"MIT",
"GPL-2.0-only"
] | permissive | rrojasPy/TurtleBots.activity | 4c44ed90b1aadbd0788cdb091fc647deac28d8e8 | c18e64cc817b2bd8d8cd80a538ff703f580bbe42 | refs/heads/master | 2022-10-20T20:46:27.304452 | 2020-06-17T15:57:11 | 2020-06-17T15:57:11 | 273,014,877 | 0 | 1 | MIT | 2020-06-17T15:57:12 | 2020-06-17T15:44:15 | null | UTF-8 | Python | false | false | 4,168 | py | # $Id: xauth.py,v 1.5 2007/06/10 14:11:58 mggrant Exp $
#
# Xlib.xauth -- ~/.Xauthority access
#
# Copyright (C) 2000 Peter Liljenberg <petli@ctrl-c.liu.se>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the F... | [
"rodneyrrs@hotmail.com"
] | rodneyrrs@hotmail.com |
81a752a7e22699e6619a42174d22df8090a70778 | 0c4304cb8da073a05258dd7c4ec0565c6cef9dea | /greater.py | 0fdb20e8b5c378c630e4042cd9c3da8fc033f5da | [] | no_license | UdayakumarU/python_work | d975bf1e7fe20e7533d791321794c9e4b5a3c93c | 74eed5ec9b5f6168b6528bfc72a6a3f0b0c3d422 | refs/heads/master | 2020-03-22T21:16:35.535071 | 2018-07-12T09:37:52 | 2018-07-12T09:37:52 | 140,673,373 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 132 | py | a = int(input())
b = int(input())
c = int(input())
if (a>b and a>c):
print(a)
elif(b>a and b>c):
print(b)
else :
print(c)
| [
"noreply@github.com"
] | noreply@github.com |
79800080c4d9f0483f339e63026999badf2cd752 | 4522fc52bc43654aadd30421a75bae00a09044f0 | /alfa/diannad.py | f52594100e43207f34f304fe117f59a727bc3de3 | [] | no_license | qesoalpe/anelys | 1edb8201aa80fedf0316db973da3a58b67070fca | cfccaa1bf5175827794da451a9408a26cd97599d | refs/heads/master | 2020-04-07T22:39:35.344954 | 2018-11-25T05:23:21 | 2018-11-25T05:23:21 | 158,779,332 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 779 | py | from sarah.acp_bson import Recipient
from base64 import b64decode
import json
ff = open('dianna_file', 'rb')
config = json.loads(b64decode(ff.read()).decode())
ff.close()
def handle_request(msg):
if 'request_type' in msg:
if msg['request_type'] == 'get':
if msg['get'] == 'dianna/local_device'... | [
"qesoalpe@gmail.com"
] | qesoalpe@gmail.com |
5798d06030285a366239004b9efbbf2e57eedf93 | 5864e86954a221d52d4fa83a607c71bacf201c5a | /spacecomponents/server/components/itemtrader.py | d137971475932934dac6aa414f5db1d9685da1b9 | [] | no_license | connoryang/1v1dec | e9a2303a01e5a26bf14159112b112be81a6560fd | 404f2cebf13b311e754d45206008918881496370 | refs/heads/master | 2021-05-04T02:34:59.627529 | 2016-10-19T08:56:26 | 2016-10-19T08:56:26 | 71,334,417 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,402 | py | #Embedded file name: e:\jenkins\workspace\client_SERENITY\branches\release\SERENITY\packages\spacecomponents\server\components\itemtrader.py
from spacecomponents.common.components.component import Component
from spacecomponents.common.componentregistry import ExportCall
import evetypes
class ItemTrader(Component):
... | [
"le02005@163.com"
] | le02005@163.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.