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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
c271d3cf73452571a1c93a1185eb93f88ff3c1bf | 694c187c8a00bee8c670c1690170099bad9b16b3 | /palindrome.py | 220c4d3ad21d12c2a38242879e2e212ed2181a00 | [] | no_license | ajayvenkat10/Competitive | 301f220b6d296f7e34328f192c43c4d7ef208cb1 | 14f2ecebe10eb19f72cc412dd0c414b3b1de9b4d | refs/heads/master | 2022-11-20T14:31:33.590099 | 2020-07-23T15:39:14 | 2020-07-23T15:39:14 | 281,599,951 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 173 | py | n=int(raw_input(""))
count=0
A=[]
a=raw_input("")
a=a.split()
for i in range(n):
b=int(a[i])
A.append(b)
while(len(A)>0):
count = count + pali(A)
print count
| [
"37923623+ajayvenkat10@users.noreply.github.com"
] | 37923623+ajayvenkat10@users.noreply.github.com |
1f799097ea5005fa20c279fd911861d7ad7c5ba5 | f1d1f23b7d94599476ce84afc73e0e8fd9a2dd64 | /drafts/tf_slim/arg_scope_example.py | 858c3572b7072a4a7c35f3d8264d973e5107e84c | [
"MIT"
] | permissive | quanhua92/deeplearning_tutorials | 9a0e1b2da6e85328d2366cf785205c3c163d56c2 | 32fec492ca21c248dd1fb234db0a95a532df3469 | refs/heads/master | 2021-01-19T09:38:30.407784 | 2017-04-24T03:33:17 | 2017-04-24T03:33:17 | 87,777,316 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,696 | py | import tensorflow as tf
from tensorflow.contrib import slim
from utils.debug_print import *
def slim_model(inputs):
with slim.arg_scope([slim.conv2d, slim.fully_connected],
activation_fn=tf.nn.relu,
weights_initializer=tf.truncated_normal_initializer(stddev=0.1),
... | [
"quan@ilawyer.vn"
] | quan@ilawyer.vn |
971770afc1dc96cb8ecd06b14b9dd826f366521d | 13be47f194aa411d793b9742695ff85ed2e761c7 | /python/ClipboardTranslator.py | 6b8ec66badd0f58324880fbfe77e463f23c35c35 | [
"MIT"
] | permissive | reignofmiracle/ClipboardTranslator | 307555caa6305173063e4332085b0b15ed04ba90 | 5bf7f7e6ef740610b482676c26e34b1b99e42958 | refs/heads/master | 2023-01-12T03:32:43.790799 | 2021-02-08T05:22:33 | 2021-02-08T05:22:33 | 123,127,787 | 4 | 0 | MIT | 2022-12-07T23:31:54 | 2018-02-27T12:44:32 | C# | UTF-8 | Python | false | false | 1,469 | py | import tkinter as tk
from googletrans import Translator
import win32clipboard
import time
import threading
class ClipboardTranslator(object):
def __init__(self):
self.root = tk.Tk()
self.root.title('Clipboard Translator')
self.scrollbar = tk.Scrollbar(self.root)
self.scrollbar.pac... | [
"reignofmiracle@gmail.com"
] | reignofmiracle@gmail.com |
8333296535575f966e3964ad6af5aeae4f51e919 | 2a61b351ebfea8396c82912ce835006d03a76951 | /day5.py | b70a23752b0261248d29f3de78a1e8c39fda6016 | [] | no_license | aboutroots/advent-of-code2017 | 51e3ed6d584820a4e962b10a1ae1478145eb6b03 | 4a269bdead79a63113617be54be5a26f45e380b5 | refs/heads/master | 2021-09-03T02:42:09.457055 | 2018-01-05T01:08:19 | 2018-01-05T01:08:19 | 113,052,450 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 862 | py | def escape(filename):
counter = 0
with open(filename) as f:
steps = [int(x.rstrip('\n')) for x in list(f.readlines())]
ptr = 0
while True:
try:
old = ptr
ptr = ptr + steps[ptr]
steps[old] += 1
counter += 1
except IndexError as exc:... | [
"popiel.mw@gmail.com"
] | popiel.mw@gmail.com |
367682c8acc5b8cd22f6acab671192fb050e673b | 552f9f605dabe720fdbb4f77dae7fba4d260de22 | /atmclient.py | 989f8d3c059dfd902c1cf38f57721f110b9b2c55 | [] | no_license | Carl-Be/Python_10_6 | 2282c8c316f1b365e26ce7c0bbf33ce845514325 | 06be9e00a3cfcd6f5a071f06749eb4ff85184382 | refs/heads/master | 2022-04-23T02:35:21.054332 | 2020-04-27T13:53:50 | 2020-04-27T13:53:50 | 258,913,461 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,401 | py | """
Carl Bechie
CIS 185
ex 10.6
"""
from socket import *
from codecs import decode
from breezypythongui import EasyFrame
HOST = "localhost"
PORT = 5000
ADDRESS = (HOST, PORT)
BUFSIZE = 1024
CODE = "ascii"
class ATMClient(EasyFrame):
def __init__(self):
"""Initialize the frame and connect to the server."... | [
"carlbechie@carlbechie.com"
] | carlbechie@carlbechie.com |
0941be994878303a5b65090075c5ca58fd81b2d5 | 5cc034831d8a6045d66f1c9ac233175493395f1c | /kol-vo slov.py | 665dd628d78ffe49954fa3a535836ad91678c9b8 | [] | no_license | MihNick/info_2020_mihailov | efc5f5d335c4dee4650c2fda84ec9fb3e2cb8884 | 5028a2b2f9b285a8ce1c9f964fccca33088ab170 | refs/heads/master | 2023-01-20T10:30:33.969858 | 2020-11-29T15:53:07 | 2020-11-29T15:53:07 | 303,609,924 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 36 | py | s = input()
print(s.count(" ")+1)
| [
"noreply@github.com"
] | noreply@github.com |
772ce498e717848e27b669abd25b6be63ac8f89a | b833c345d57d62b752a0c7619e357760e4b7dae8 | /face_attribute/knn_attribute.py | 47a46464647b0c6eb093b96a79be896be0a5e98c | [
"LicenseRef-scancode-public-domain"
] | permissive | jeremy43/Private_kNN | 3ede148304444b9832ed6e27f18865c081c8395a | 547a1abc0ec2daa5e069134687e15ad76dd0b408 | refs/heads/master | 2022-05-01T02:22:15.450001 | 2022-04-29T17:48:23 | 2022-04-29T17:48:23 | 251,222,171 | 24 | 10 | null | null | null | null | UTF-8 | Python | false | false | 10,364 | py | # Copyright 2016 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | [
"yuqingzhu@ucsb.edu"
] | yuqingzhu@ucsb.edu |
df6d6ee3775c4b6498b4f76fdb3701d0b9e37f5d | 932f76f403542d0cc0b33994d27069d12508499f | /website/test.py | 075785fd04a5ecdbd42a158486282e19e3a5941d | [] | no_license | JailyRancher/TeaBot | 2af222aa32837675b6e856246e2bb57cb55b0804 | fb89d50e79e1595f85cc3e046e86c9024ef3da03 | refs/heads/master | 2021-01-10T16:31:01.771104 | 2015-12-04T05:34:06 | 2015-12-04T05:34:06 | 47,367,712 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 789 | py | from hello import app
import os
import unittest
class Test(unittest.TestCase):
def setUp(self):
self.app = app.test_client()
def test_index(self):
rv = self.app.get('/')
self.assertEqual(200, rv.status_code)
def test_send(self):
rv = self.app.post('/send', data=dict(message= 'message'))
self.assert... | [
"JailyRancher"
] | JailyRancher |
74a405e4533d066f4f2b0483f40b2d479d755081 | b043ed2645ab260c8c7a0fd3ac3d508a7d214d25 | /src/transformers/models/whisper/configuration_whisper.py | 56159eb9359b1487639d97266d05c51b71e487ae | [
"Apache-2.0"
] | permissive | zeinsh/transformers | ac8e8ec38ac6b7c7d2e3db4e8841807c85bdd909 | 59d5edef34ae0fa56065a2e863736d4f133c558b | refs/heads/main | 2023-03-16T03:54:59.478762 | 2023-02-03T21:01:25 | 2023-02-03T21:01:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,725 | py | # coding=utf-8
# Copyright 2022 The HuggingFace Inc. team. 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 r... | [
"noreply@github.com"
] | noreply@github.com |
ce7496e15e265dd8728a7ca0b81b7d914ea7bd5f | e78f1c5347069cec56c42149a1d4de3103936ee7 | /quantum_gates/find_resonant_interactions.py | 3af82839e1fa720a4e958cb7590b7cd4a0762e8b | [] | no_license | twobackfromtheend/CircularStates | 8882627923bdfce42f72d0a9401206acd7043f47 | ab0471362b444620d48a902ac237caead3b18a8f | refs/heads/master | 2023-08-04T13:20:48.494564 | 2021-09-16T19:23:29 | 2021-09-16T19:23:29 | 323,437,296 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 497 | py | import numpy as np
from arc import StarkMapResonances, Rubidium
n = 51
n = 70
n = 90
n = 30
s = 0.5
calculation = StarkMapResonances(
Rubidium(),
[n, n - 1, n - 1 + s, n - 1 + s],
Rubidium(),
[n, n - 1, n - 1 + s, n - 1 + s],
)
n_buffer = 10
calculation.findResonances(
nMin=n - n_buffer, nMax=n + n... | [
"harry1996@gmail.com"
] | harry1996@gmail.com |
eee3f90aeb5ff7365725dbc6667aed9bfd03718d | 69ad6916196cfff60d89767313d8ff269b87be3a | /ua/urls.py | 48946a316854f6c72197501655007f88fa3a8f93 | [] | no_license | frenchbread/mazeapp | b2dcf2a8845e43614722ea3b05fbba18ab91781d | 807803dcb3a4242c7e00f04be7f5749b79102e0d | refs/heads/master | 2020-04-15T06:10:06.301191 | 2014-05-15T10:17:33 | 2014-05-15T10:17:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 697 | py | from django.conf.urls import patterns, include, url
from views import profile, follow, unfollow, profilelikes, profileinfo, profilefollowing, profilefollowers
urlpatterns = patterns('',
url(r'^(?P<username>\w+)/$', profile, name="profile"),
url(r'^(?P<username>\w+)/likes', profilelikes, name="profilelikes"),
... | [
"frenchthebread@gmail.com"
] | frenchthebread@gmail.com |
dfb13215e71434d9e7da6a1dcf760457e130f156 | 6bad1044ee09e8dcd4c36c1cba760882a46fdc9b | /assignment_7/cntdist.py | 0418c95120111fe4a89ca22fee1a1f89c8e3212c | [] | no_license | harshjohar/unacademy_a | 2d55eeb1264845ad69f9326583d6d66ee6d60ff6 | 5974753087bcba3ac723f137450e00cf7d17e192 | refs/heads/master | 2023-04-05T03:39:26.294377 | 2021-03-25T16:42:12 | 2021-03-25T16:42:12 | 326,606,393 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 103 | py | print(2)
n = int(input())
arr = []
for i in range(n):
arr.append(int(input()))
print(len(set(arr))) | [
"50266759+harshjohar@users.noreply.github.com"
] | 50266759+harshjohar@users.noreply.github.com |
833a364acf24f154b6a823a9086baf7f514e0d96 | 9d3925774a6efa964256fec85fbef06bc6812b8c | /tests.py | 8dc658c42fff8868daaf3375f988954414af6e66 | [] | no_license | meredithcat/rotten-potatoes-flask | 3923ea4eb9b484157d7892abb0aeee861cc78e4b | aee8a3c128099c4195fb5d8c6a5fb46a62c95fed | refs/heads/master | 2021-06-21T08:29:50.960563 | 2019-08-17T22:16:56 | 2019-08-17T22:16:56 | 202,935,885 | 0 | 0 | null | 2021-03-29T20:17:42 | 2019-08-17T22:15:23 | Python | UTF-8 | Python | false | false | 2,779 | py | from unittest import TestCase, mock, main as unittest_main
from app import app
from bson.objectid import ObjectId
sample_review_id = ObjectId('5d55cffc4a3d4031f42827a3')
sample_review = {
'title': 'Super Sweet Review',
'movieTitle': 'La La Land',
'description': 'A great review of a lovely movie.'
}
class Review... | [
"meredithcat@gmail.com"
] | meredithcat@gmail.com |
cd420e2ea25a2dec4ee5f35f060b95bc55c64e74 | 1e73da73bdc88144ee69e60498190f8f8448e6d9 | /server01.py | d3a8aa6ee5ded4f40561ec103bc83a3b3bc5c6dd | [] | no_license | hhubibi/WalterSim | 7573e50444e688aef06bff83459efca214777dfb | 0528df61b8cff1aeb0d50c660eeb469763a24add | refs/heads/main | 2023-03-20T07:46:43.547190 | 2020-10-12T15:19:06 | 2020-10-12T15:19:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,542 | py | #!/usr/bin/python3
# -*- coding:utf-8 -*-
# ____ ____ ______________
# | | | | | |
# | | | | |_____ _____|
# | |__| | | |
# | __ | | |
# | | | | | |
# | | | | | |
# |____| |____| |____|
#
# fileName:sit... | [
"Theo_hui@163.com"
] | Theo_hui@163.com |
09fc949aa59fee950e73b5334a4796b8c4013da1 | 23fddc940a266c2d1d0e0b1687c36cdbcc9d54d9 | /gtwisted/test/twisted_test.py | 75f2164247362286e2d7ba3653753983433f88b7 | [] | no_license | Cuick/traversing | 210fcfb1c780037de59343fffeb4fa4d3f2eae32 | c78982580af7f63c8bff4dcb37005b7f7c682b5b | refs/heads/master | 2021-01-10T17:38:37.899460 | 2016-11-18T06:06:55 | 2016-11-18T06:06:55 | 55,397,540 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 968 | py | #coding:utf8
'''
Created on 2014年2月21日
@author: lan (www.9miao.com)
'''
# from twisted.core.greactor import GeventReactor
from twisted.internet import reactor
from twisted.internet.protocol import ServerFactory,Protocol
reactor = reactor
class MyProtocol(Protocol):
def connectionMade(self):
pass
# ... | [
"zxzxck@163.com"
] | zxzxck@163.com |
a3879089f34f9340e432aff69b6deabd76484f16 | cd13b1fede5a668ad2592f04681be34766f6110f | /Getdata/Githubdata.py | 4c7905a8f94f94445ee6d78c4b2dac78663bad39 | [] | no_license | shubhammishra277/Sparkapp | 7cc2553fbcae5bde1a94eaf1b55c2c83e07ae816 | ca5ab7966a187c69c87da286f15db50a5e59620c | refs/heads/master | 2021-04-28T06:27:42.245935 | 2018-11-27T10:49:04 | 2018-11-27T10:49:04 | 122,201,709 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,063 | py | '''
Created on 21-Feb-2018
@author: shubham
'''
from github import Github
from pprint import pprint as pp
from loggingmodule.logger import loggermodule
from configgetter import configparser
import optparse
from bokeh.themes import default
class githubapi(object):
def __init__(self,clientname,platformname,user,re... | [
"shubhammishra160293@gmail.com"
] | shubhammishra160293@gmail.com |
97e079d87acd96d58ed7f045d83d6ec87d1a5fe8 | 7311220f6872323c91d4ed8bac0a52dbfae52bff | /chap6.4.py | bf717d618a7a4cc900c3359dd46c780500cb90f6 | [] | no_license | zhanghao731/DeepLearning | 2f5e6796f0fe0ab0e54c43633854048897c1d4c6 | 1bdbc7934145da432bf6359c4a24eda445d7f02e | refs/heads/master | 2023-06-01T01:24:22.204746 | 2021-06-09T11:12:34 | 2021-06-09T11:12:34 | 357,466,963 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,961 | py | import time
import math
import numpy as np
import torch
from torch import nn, optim
import torch.nn.functional as F
import d2lzh_pytorch as d2l
device = torch.device('cuda' if torch.cuda.is_available() else 'cpu')
(corpus_indices, char_to_idx, idx_to_char, vocab_size) = d2l.load_data_jay_lyrics()
def one_hot(x, n_cl... | [
"986136244@qq.com"
] | 986136244@qq.com |
572825c2ecc2983a74efedb7c53c243a73dbba94 | e7fe29bfa102234b9d2fadbaff20565ecf2fe13c | /Python/even_odd.py | d12ce7a6ec8f95792de3f6b63f05f058e5667a6e | [] | no_license | sagar2002malik/Hacktoberfest-2021-contribute | 199dec374290653ea029629034fb844838d8cd3b | d35fcbac67bbc398650fabd21972f720bc67fd51 | refs/heads/main | 2023-08-26T17:18:00.241982 | 2021-10-07T04:12:08 | 2021-10-07T04:12:08 | 414,456,729 | 0 | 0 | null | 2021-10-07T04:11:23 | 2021-10-07T04:11:22 | null | UTF-8 | Python | false | false | 131 | py | num=int(input("ENter a number: "))
if (num%2==0):
print(f"{num} is an even number")
else:
print(f"{num} is an odd number")
| [
"noreply@github.com"
] | noreply@github.com |
f12aad977459a097080782e65bb5c3bdbb113f65 | 9da1bfe32a23b460efa9defd413e7317567585cb | /cogs/event_cog.py | 7d6c05b4a0bfdee13439a713fd9ab4b304313042 | [] | no_license | idesu/gachiBot | 635e783b322b4ce7a5ac13a206f809f641daad4e | fd1a15005040e236cbdbd6adad06e7afaf581b77 | refs/heads/master | 2020-08-15T18:12:16.772556 | 2020-03-04T12:50:47 | 2020-03-04T12:50:47 | 215,385,816 | 1 | 0 | null | 2019-12-17T14:28:07 | 2019-10-15T20:00:05 | Python | UTF-8 | Python | false | false | 826 | py | import discord
from discord.ext import commands
class EventCog(commands.Cog):
def __init__(self, bot):
self.bot = bot
@commands.Cog.listener()
async def on_ready(self):
print('Logged in as:\n{0} (ID: {0.id})'.format(self.bot.user))
@commands.Cog.listener()
async def on_member_joi... | [
"hds101@gmail.com"
] | hds101@gmail.com |
e1e47dd007eec5191f4a81941e659eca52adfc5e | cc2e13f0d6b317a1562cc4b3bc9796745b76dd8b | /Sudoku_Solver/asgi.py | cdf39efa632dd870cabc85ff446802e9ea0215c3 | [] | no_license | vrajparesh/Sudoku-Solver | 6d98ee44715bf101be3ccd4cd167e520407cacf8 | 96191b136cbc287793385715b1360d2ef4dceb1d | refs/heads/main | 2023-09-04T10:27:42.889855 | 2021-11-01T19:45:37 | 2021-11-01T19:45:37 | 423,588,564 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 403 | py | """
ASGI config for Sudoku_Solver project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO... | [
"kushangshah131@gmail.com"
] | kushangshah131@gmail.com |
567985f97320f24ba8db58217d252edc85fb7af0 | f2eaf4105b789868acc91d8b5e7b286ef2dcb268 | /todo.py | d931dbcd4e497c564deb2a2ada4eaf7b347541d3 | [] | no_license | ahmettzorlutuna/todoapppython | 3265e8eaf230581c5c820ac17f07aab1bddf2474 | 7e18760d5fddf3e4053efdefcfbd6ba93960325b | refs/heads/master | 2023-07-27T10:31:16.235196 | 2021-09-16T20:27:09 | 2021-09-16T20:27:09 | 405,474,885 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,257 | py | from flask import Flask,request,redirect,url_for,render_template
from flask.scaffold import F
from flask_sqlalchemy import SQLAlchemy
app = Flask(__name__)
app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:////todo.db' #databasemiz ile orm yi birleştirmek kısmı sağ tarafta bulunan kısım kendi data base yolumuz
app.con... | [
"ahmettayyip3439@gmail.com"
] | ahmettayyip3439@gmail.com |
75d93a0f6a378ba927cbb63ba3b5989462a961b1 | b9361b801ccd7f4c9e3ab27643e87a68872ceff2 | /venv/Scripts/pip3.7-script.py | f40b4fd9782e0d3b4b812a0e3c3fbce38cdbd65e | [] | no_license | SeReSs52/BOT | 59203b1e7ac22239fe6decc78bbdd0f7ce09e89e | dca9c373e3233825c6eaf026f7d713aae7503a58 | refs/heads/master | 2022-11-11T20:42:53.427198 | 2020-07-07T13:17:20 | 2020-07-07T13:17:20 | 277,815,412 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 413 | py | #!C:\Users\Denis\PycharmProjects\BOT\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==19.0.3','console_scripts','pip3.7'
__requires__ = 'pip==19.0.3'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]... | [
"black.wolf.31@mail.ru"
] | black.wolf.31@mail.ru |
418464640708b824c506f3e90e4f9b8c4ff03368 | 09e57dd1374713f06b70d7b37a580130d9bbab0d | /data/p2DJ/New/program/qiskit/QC/startQiskit_QC67.py | a9d853e26832f658881463c5f7c58a05494423ab | [
"BSD-3-Clause"
] | permissive | UCLA-SEAL/QDiff | ad53650034897abb5941e74539e3aee8edb600ab | d968cbc47fe926b7f88b4adf10490f1edd6f8819 | refs/heads/main | 2023-08-05T04:52:24.961998 | 2021-09-19T02:56:16 | 2021-09-19T02:56:16 | 405,159,939 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,013 | py | # qubit number=2
# total number=7
import cirq
import qiskit
from qiskit import IBMQ
from qiskit import QuantumCircuit, QuantumRegister, ClassicalRegister
from qiskit import BasicAer, execute, transpile
from pprint import pprint
from qiskit.test.mock import FakeVigo
from math import log2,floor, sqrt, pi
import numpy as... | [
"wangjiyuan123@yeah.net"
] | wangjiyuan123@yeah.net |
80c36a7e86e77966f54c631cb257fd0ebc75cc31 | 8edd63a42469bf09fcad1c1070995ceda6e49646 | /env/lib/python2.7/site-packages/observations/r/codling.py | 86cc11b0e65757702630c0d2a4ac144e458b4164 | [] | no_license | silky/bell-ppls | fa0b5418f40dab59de48b7220ff30caba5945b56 | 369e7602c810b694a70ac1e875017480c8910ac8 | refs/heads/master | 2020-04-06T08:40:28.588492 | 2018-11-01T06:51:33 | 2018-11-01T06:51:33 | 157,312,221 | 1 | 0 | null | 2018-11-13T03:04:18 | 2018-11-13T03:04:18 | null | UTF-8 | Python | false | false | 2,203 | py | # -*- coding: utf-8 -*-
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import csv
import numpy as np
import os
import sys
from observations.util import maybe_download_and_extract
def codling(path):
"""Dose-mortality data, for fumigation of codling moth... | [
"akobeid.1@gmail.com"
] | akobeid.1@gmail.com |
41ca9a86277bdad1cfca770d4cbe68b037aa6d29 | f571f604bf6f467d0325a9d2ee0f3032f045b260 | /tests/test_block.py | 23f6352f1bd6577682c800a7fc070d9841bcc55c | [
"MIT"
] | permissive | leaffan/pynhldb | 307fab2cda3a99a6273bb0cbb81bcec5efb2966c | 73586d924060ccf92b0384346a5fc7013dde0b0d | refs/heads/master | 2022-11-27T06:07:48.170879 | 2022-11-14T11:43:10 | 2022-11-14T11:43:10 | 78,532,400 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,100 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from sqlalchemy import distinct
from db.common import session_scope
from db.block import Block
from utils.summary_downloader import SummaryDownloader
from .test_event import get_event_parser
from tests import VALID_SHOT_TYPES
from tests import VALID_ZONES
def test_blo... | [
"leaffan@gmx.net"
] | leaffan@gmx.net |
db2ff24c7f6f940f4b4520a7bd6d0790056628be | c6b3ab6095d3416c952dd08476f73b2576891f60 | /recipes/migrations/0002_register.py | 21b89de385cd7737075f73758a57aa62485b161c | [] | no_license | muralikrishnabijjam/Recipe | efb7de003c397dcaa94189081288d4f6bb1e3a5d | cf2aa01899c0e976688a6df58bebe21c8dd72cf8 | refs/heads/master | 2020-11-24T23:33:00.763777 | 2020-02-16T11:28:29 | 2020-02-16T11:28:29 | 228,388,891 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 697 | py | # Generated by Django 2.2.6 on 2019-11-04 12:18
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('recipes', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='Register',
fields=[
('id',... | [
"muralikrishna.bijjam@gmail.com"
] | muralikrishna.bijjam@gmail.com |
212b34a66d494cb465c9a15fc69d6a9b977d2277 | d50a67ec4aeba428a33cc89d0fe45f492ffac3c5 | /EjerciciosPython/N-20%.py | c2653209826d505c951d35faa22a74a99fd40d83 | [] | no_license | DavidGutierrez1904/Trabajos-Python | 52e3179a2c7ca92a0e83dbea3579d0778a5303de | b1247c726276899bea3594ad5e30e36f1b0fb4d5 | refs/heads/master | 2022-12-09T22:01:31.152948 | 2020-09-04T18:00:20 | 2020-09-04T18:00:20 | 292,915,746 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 99 | py | #Calcular20%
X = int(input("Digite el numero a operar "))
R = X*0.20
print ("Total a pagar es: ",R) | [
"jdgutierrez@misena.edu.co"
] | jdgutierrez@misena.edu.co |
18a95cb7f737377a4a14927481b3d8fafb042894 | bd9e468637bcd7f4c7174111c502919b4f19b745 | /containers.py | e5008845714f0a7d7a18c418b674e5c17e57fd22 | [
"MIT"
] | permissive | teehanming/DiscordGPT-3 | f25d8e74915212d29f5d0ff049cde393e895f29c | b67564dcdef77776ffef557bbf3c61b95600b30c | refs/heads/main | 2023-06-17T18:37:09.601875 | 2021-06-05T07:50:07 | 2021-06-05T07:50:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,221 | py | from dependency_injector import containers, providers
from discord.ext import commands
from Cogs.Maincog import MainCog
from Implementation.ApiClient import ApiClient
from Implementation.DbHandler import DbHandler
from Implementation.LoggingHandler import LoggingHandler
from Services.BotService import BotService
cla... | [
"noreply@github.com"
] | noreply@github.com |
77765688e16fd36e5bfd5f2bbec01638cf132b58 | 27d61e61d6ed9e04190fc1f01d1173ef6fc27ee4 | /String-1/extra_end.py | 550ef498c496da359daaa9f927a00480e511530a | [] | no_license | yazanShat/python | dcb757dbda6f97f2b58a7a384f9122408a3c3812 | 174b0f2c9ce714a49514206abfc2195c5d89ae28 | refs/heads/master | 2020-04-01T11:01:56.425325 | 2018-10-16T18:01:33 | 2018-10-16T18:01:33 | 153,143,761 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 52 | py | def extra_end(str):
return (str[-2]+str[-1])*3; | [
"noreply@github.com"
] | noreply@github.com |
c63f8d1b7538cb08356d3b51e926d1f49d9f2cd4 | 7c8c1850400dd5690e1e284ecf1a9f10dbb7ff5f | /server/ugrade/settings.py | 1d89ef0d0c44c7d265cecf3507b9716c95250b73 | [
"MIT"
] | permissive | ihsansaktia/ugrade | 3b171e6961935a03c9640134f354c8571dce175d | f786f2b49f38c7a4f862d816fad05d100b545a3a | refs/heads/master | 2020-05-03T04:19:29.380200 | 2019-03-29T01:12:48 | 2019-03-29T01:12:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,525 | py | """
Django settings for ugrade project.
Generated by 'django-admin startproject' using Django 2.1.7.
For more information on this file, see
https://docs.djangoproject.com/en/2.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.1/ref/settings/
"""
import os
imp... | [
"jauhararifin10@gmail.com"
] | jauhararifin10@gmail.com |
f4a65e229ad9cd3a20d54e87a9d1935849dda0b9 | d007a98dee65ddf073dce239968b3b21e42cfc2b | /problems/rotate-matrix-lcci.py | 64533931468f36379b471bd3eae5a31e8d6ea985 | [] | no_license | Nigirimeshi/leetcode | 2d0fccb41e8906c544e56a93e53c3958576f1b36 | 6932d69353b94ec824dd0ddc86a92453f6673232 | refs/heads/master | 2023-04-09T16:20:50.629799 | 2021-04-30T02:41:51 | 2021-04-30T02:41:51 | 291,694,070 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,859 | py | """
面试题 01.07 旋转矩阵
链接:https://leetcode-cn.com/problems/rotate-matrix-lcci
给你一幅由 N × N 矩阵表示的图像,其中每个像素的大小为 4 字节。
请你设计一种算法,将图像旋转 90 度。
不占用额外内存空间能否做到?
示例 1:
给定 matrix =
[
[1,2,3],
[4,5,6],
[7,8,9]
],
原地旋转输入矩阵,使其变为:
[
[7,4,1],
[8,5,2],
[9,6,3]
]
示例 2:
给定 matrix =
[
[ 5, 1, 9,11],
[ 2, 4, 8,10],
[13... | [
"steinsgate.yn@gmail.com"
] | steinsgate.yn@gmail.com |
f8e4203e4599a4a52a0ff39c951c4e75e5dc751e | 438fdcc6f5ee2ec952a8ab9f19e52d3219b39ded | /Giratina/functions.py | 1e5afced43ef5a0ad9c5290a3eb5a39c66af730a | [] | no_license | jackh121/shiny-bot-pokemon | 0e2286e0161adc2bfa1458a85af030ed691aa01b | a2c3b6666c46e667f40a8897668bb252e4ff0ff5 | refs/heads/master | 2023-06-21T08:44:08.073631 | 2021-07-25T14:07:12 | 2021-07-25T14:07:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,423 | py | import time
from pynput.keyboard import Key, Controller
import numpy as np
import pyautogui
import imutils
import cv2
#Function for resetting and reloading the game to the save point
def reset_reload():
resetter = Controller()
resetter.press('i')
time.sleep(0.5)
resetter.release('i')
time.sleep(2)
... | [
"prawigya@Prawigyas-MacBook-Pro.local"
] | prawigya@Prawigyas-MacBook-Pro.local |
49b97ca0ff916d42b00436e0a4a9e0851de3a9cb | bc3de32f1198cd64368a773ead37345faba9de1a | /Term1/Project5_Vehicle_Detection_and_Tracking_Project/HOG_classify.py | b64ecb7f36a036cf32b9b1f7583f9965b388a52b | [
"MIT"
] | permissive | patman77/SDCE_nanodegree | b1b94aea4275574066c31e484849b2777211bb9e | 5c8fcd288d3ebe9a5b28ced9614620ace2512445 | refs/heads/master | 2021-06-30T12:28:43.792908 | 2019-04-16T02:59:27 | 2019-04-16T02:59:27 | 116,163,787 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,942 | py | import matplotlib.image as mpimg
import matplotlib.pyplot as plt
import numpy as np
import cv2
import glob
import time
from sklearn.svm import LinearSVC
from sklearn.preprocessing import StandardScaler
from skimage.feature import hog
# NOTE: the next import is only valid for scikit-learn version <= 0.17
# for scikit-le... | [
"info@patman-industries.com"
] | info@patman-industries.com |
04e3144d96710c6b6828eef789a650b899fbbf35 | 2ceef7feafab80b2af627fd3580a0e2576d082c3 | /control.py | cd03f5bff4be15a9d39bb0203a7505abb537eca8 | [] | no_license | Semanti1/agent-loop | ca72618f4ebeee6548aa2b16d71d28955fcd706a | a8fceeae056ecdb791ba53bc008eb2b6c5a9d016 | refs/heads/master | 2020-06-21T14:39:25.098641 | 2016-11-25T20:03:20 | 2016-11-25T20:03:20 | 74,784,984 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,214 | py | #!/usr/bin/env python
import roslib; roslib.load_manifest("is_control")
import rospy
from geometry_msgs.msg import Twist
from is_vision.msg import PioneerPos
'''
This script defines all of the pioneer motion primitives. There
are no encoders on the robot so there is no promise on the distance
the robot will travel. T... | [
"renia.basu1@gmail.com"
] | renia.basu1@gmail.com |
7b619a1e69922d7b6dc1a31d3ad06643b3fe210b | 1b67719834d1386a32a8685dbd604c440d44ce02 | /throw_away.py | d471abd278a87158776483184fb481d6af199590 | [] | no_license | kovacsav/python-training-2021-10-13 | 96f0339fea83135d27b2f4c725b95f3e2effbf18 | f8668acb718514a5ede21ef630a6d52610a45b1e | refs/heads/master | 2023-08-27T18:43:23.514834 | 2021-10-19T14:00:10 | 2021-10-19T14:00:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 65 | py | def get_numbers():
return 1, 2
a, _ = get_numbers()
print(a) | [
"viczian.istvan@gmail.com"
] | viczian.istvan@gmail.com |
1c7b0e7967a0502cdf1489ffed8d4aecf4e0710b | e2144f2e0b9cceeba4001cb5a55c86b510ce8d81 | /kb/tools/processing/processing.py | 322e52707da52c1687801992df3a91827cd136ee | [] | no_license | kb-dk/goobi-scripts | 8d9491c32df4ac8b43dbf0399125454680486354 | 1891071f6c5445cb9470b3d6a896fd6077466a37 | refs/heads/master | 2021-05-31T20:18:02.536314 | 2016-06-27T09:51:07 | 2016-06-27T09:51:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,991 | py | #!/usr/bin/env python
# -*- coding: utf-8
'''
Created on 20/06/2014
@author: jeel
'''
import subprocess
import time
import signal
import os
import shlex
class TimeoutError(Exception):
def __init__(self, value):
self.value = value
def __str__(self):
return repr(self.value)
... | [
"jeel@kb.dk"
] | jeel@kb.dk |
8188ae155d67031691a31533cb4466035dc1c4eb | 83cd1c2ef180d33f72a3bd4b534e18828accf1dd | /main/migrations/0001_initial.py | d1385912368730ba014ab18ba62ab25d7acfc48e | [] | no_license | labworkVl/Address | 91e8d2ff94f0911908d18ba6ab9a1c813eab9cd1 | 69fb01b2e3fd5590ac31aa1c783c3fd3b6872471 | refs/heads/master | 2021-09-13T08:32:36.947748 | 2018-04-27T06:14:10 | 2018-04-27T06:14:10 | 107,383,156 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,541 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.2 on 2017-09-20 07:19
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.Cre... | [
"litab@inbox.ru"
] | litab@inbox.ru |
2ae927007cd3599a2365302b8d151333af023a05 | 9c81c170f03ba925bf3d0682526245c202e384a7 | /tests/unit_tests/databases/dao/dao_tests.py | b792a65336a4e7a5f0df807fae1292ac4bf9de25 | [
"Apache-2.0",
"OFL-1.1"
] | permissive | zcong1993/incubator-superset | 2a08177641eff178dee9db852887ad2d19d70d54 | 269c99293f42089958dc98b5d6e5899509fc3111 | refs/heads/master | 2023-08-17T12:24:59.438120 | 2023-08-17T10:50:24 | 2023-08-17T10:50:24 | 209,522,299 | 0 | 0 | Apache-2.0 | 2023-03-06T08:10:31 | 2019-09-19T10:09:21 | TypeScript | UTF-8 | Python | false | false | 2,188 | py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | [
"noreply@github.com"
] | noreply@github.com |
37ba9ed4370eaf0e92f4bec9ffa8a8614598bd76 | 9247c6081930c215a1543e95a2567cfa60214c5a | /mlsegment/shape.py | fbec3ac1046ffc61ef8dbf4294a320694d26f67d | [] | no_license | luispedro/mlsegment | 5cec535dbb2476f860ae0ab629b62383e0850143 | 13bf1f2b19aa22f82c9bc07fdf7e44d0fefe79af | refs/heads/master | 2020-04-01T21:12:48.459146 | 2010-12-01T19:46:57 | 2010-12-01T20:39:34 | 1,127,228 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 815 | py | # Copyright (C) 2010, Luis Pedro Coelho <lpc@cmu.edu>
# vim: set ts=4 sts=4 sw=4 expandtab smartindent:
# License: MIT
from __future__ import division
import numpy as np
from pyslic.features.hullfeatures import hullfeatures
def shape_features(binimg):
size = binimg.sum()
return np.concatenate(([size], hullfea... | [
"lpc@cmu.edu"
] | lpc@cmu.edu |
b8177f7d390c81f133c2866c0150515d3dae661a | 06f0ae3ecaaf47b1c23e231838afa524d8446f5e | /statscom/sports/mlb.py | 74f82a65f42eb774afe3370c7cb53a7448da98cb | [] | no_license | nakamotohideyoshi/draftboard-web | c20a2a978add93268617b4547654b89eda11abfd | 4796fa9d88b56f80def011e2b043ce595bfce8c4 | refs/heads/master | 2022-12-15T06:18:24.926893 | 2017-09-17T12:40:03 | 2017-09-17T12:40:03 | 224,877,650 | 0 | 0 | null | 2022-12-08T00:02:57 | 2019-11-29T15:20:17 | Python | UTF-8 | Python | false | false | 11,387 | py | from logging import getLogger
import pytz
from scoring.models import StatPoint
from statscom.classes import (
FantasyProjections,
ProjectionsWeekWebhook,
DailyGamesAbstract,
StatsPlayer,
PlayersAbstract)
from statscom.constants import STATPOINT_TO_STATSCOM_MLB
from statscom.player import get_fanta... | [
"nakamoto.guru.0991@gmail.com"
] | nakamoto.guru.0991@gmail.com |
75a7c022a5ff2fd962663b5247d52aef5c11978c | 5a4de5e9c77477866f7c652d438d275712aaef06 | /main_project/CHAPTER 2/Chapter2OrionsBelt/Exercises/CHAPTER2TURTLEGRAPHICScheatsheet.py | 91e13d9dd0ad9c552daa433913451694ec1684ca | [] | no_license | EmmanuelAlmonte/pythonfromscratch | 4a4ff23322044c4e8da04ce8d1701aa9d0217e6c | 44fc0721caf0b47147b623dd1e5fd89b1d9ae6d2 | refs/heads/main | 2023-06-17T22:00:06.867815 | 2021-07-17T03:57:14 | 2021-07-17T03:57:14 | 384,598,607 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,235 | py | """
cheat sheet for turtle.
T = turtle
T.forward # Moves the turtle forward
T.right() # Rotates turtle a certain amount of degrees to the right.
T.left() # Rotates the turtle a certain amount of degress to the left.
T.setheading() #changes the angle of the turtle head.
T.dot() # Creates a dot in the path of the turt... | [
"noreply@github.com"
] | noreply@github.com |
72336542fecb9a9c590de470c00edc229dca9c95 | 5bbcdb6752ecd74a4cd3f3d23f254343a8ccae8e | /get_mem_info.py | 564cc543531c0b31ff2cca72472292e8fc764f73 | [] | no_license | dcn01/getapkstatus | cca6809c0dedf8f20e8e1322415d0230cc305ccf | ca2ab7932e1b427a208eb918183e2bd3b1e6ac7c | refs/heads/master | 2021-08-16T22:42:25.243182 | 2017-11-20T12:16:48 | 2017-11-20T12:16:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 21 | py | __author__ = 'zhua'
| [
"zhaohua@oaserver.dw.gdbbk.com"
] | zhaohua@oaserver.dw.gdbbk.com |
87e1ba74b440849b46e7665104df71a3e45f197a | dddaa0b722e7ff191224ae3b212d1774babf8d79 | /game_contents/BodyColor.py | 5aadef109a07605ba424cbf554482a0a8def9b6e | [
"MIT"
] | permissive | furukawaTakumi/SnakeGameByPython | 7312f9ce0a907f128f4fd1e36d18affdd1705d4f | 4fe768f524ef5b657ed2716db41f1af7abc79771 | refs/heads/master | 2020-08-12T17:22:48.503680 | 2019-11-27T10:46:13 | 2019-11-27T10:46:13 | 214,808,333 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 88 | py | from enum import Enum
class BodyColor(Enum):
BLUE = 0
YELLOW = 1
NONE = 99
| [
"black3moon88@gmail.com"
] | black3moon88@gmail.com |
c4f319cc552d88af43f227b1f826513811c0f29f | 8da91c26d423bacbeee1163ac7e969904c7e4338 | /pyvisdk/do/virtual_usb_remote_client_backing_info.py | 14e557038cd02b58c8e04e8e355118e8cb07b301 | [] | no_license | pexip/os-python-infi-pyvisdk | 5d8f3a3858cdd61fb76485574e74ae525cdc7e25 | 1aadea0afbc306d09f6ecb9af0e683dbbf961d20 | refs/heads/master | 2023-08-28T02:40:28.789786 | 2020-07-16T04:00:53 | 2020-07-16T04:00:53 | 10,032,240 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,060 | py |
import logging
from pyvisdk.exceptions import InvalidArgumentError
########################################
# Automatically generated, do not edit.
########################################
log = logging.getLogger(__name__)
def VirtualUSBRemoteClientBackingInfo(vim, *args, **kwargs):
'''The virtual remote client... | [
"jmb@pexip.com"
] | jmb@pexip.com |
17a1ed2eb5396fedc733960ef8aa36ac901d5023 | c1e4cccc94b8cd9dea58f0a5dabe7025ae8505ed | /test/test_datetime.py | 65b141f3c97930cd1c34c70d730483101ceb6404 | [] | no_license | HwDhyeon/myghub | 31c555e24ee851b21ddff77163edfd20cbe26e1f | fdcbee4745d56966761ff29c22eb7d858b261de2 | refs/heads/master | 2023-07-05T03:45:00.021519 | 2021-09-01T02:02:47 | 2021-09-01T02:02:47 | 383,383,794 | 0 | 0 | null | 2021-09-01T02:01:39 | 2021-07-06T07:45:15 | Python | UTF-8 | Python | false | false | 1,729 | py | import unittest
import datetime
from myghub.dt.timemachine import TimeMachine
class TestTimeMachine(unittest.TestCase):
def setUp(self):
self.timemachine = TimeMachine()
def test_str_to_dt_with_default_format(self):
dt = self.timemachine.str_to_dt('2021-07-07 12:31:59')
self.assertIsI... | [
"youfsk@naver.com"
] | youfsk@naver.com |
01a5a23d3792e41d6fa99f46da85aa81740217e9 | c6c1949c21d263da4d88b9efed02a301350658dc | /recording.py | bdd8b913e57e1b963e625f0d8d29b8593e75cbb4 | [] | no_license | sdpillen/OpenBCI_NFT_Suite | 35ab1801bd45b44efaf6a6efeb3362a7c7edbce3 | 46cbf3ce00e8aa310fe3f622ca7bdadeeed4b74d | refs/heads/master | 2021-04-28T05:27:23.598704 | 2018-02-20T09:26:36 | 2018-02-20T09:26:36 | 122,177,739 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,778 | py | #!/usr/bin/env python
## --------------------------------------------------------------- ##
## RECORDING.py
## --------------------------------------------------------------- ##
## Defines a few widgets that record EEG data during a session.
## --------------------------------------------------------------- ##
## TODO... | [
"stevendpillen@gmail.com"
] | stevendpillen@gmail.com |
f435aa2b121f93f5780e2858c25946185360188a | 09bd584a3eb73ec77693343d135ed664d96b3258 | /server/tests/test_vanilla.py | d874e5410f6400c9d80e978e3f1294ab2a2c35ae | [] | no_license | cameronmaske/pytest-django | ba83c84e74312f47d98f7787f1fb01dda81af825 | 09942d46277bfa6e7a2c71bdafe100a455cf9f2f | refs/heads/master | 2023-03-20T10:17:55.658522 | 2014-06-12T10:39:29 | 2014-06-12T10:39:29 | 20,763,872 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 683 | py | from django.test import TestCase
from base.models import Person, Dog, Tag, SimpleDog
class ModelTestCase(TestCase):
def test_person(self):
person = Person()
print "Vanilla - test_person. Person Count", Person.objects.all()
def test_dog(self):
dog = Dog()
print "Vanilla - test_... | [
"cameronmaske@gmail.com"
] | cameronmaske@gmail.com |
28736bb374cd6ed3529b34c7276e8bbe847200e9 | 0ca39b547228919a73d824ba02e011e6fd085429 | /__manifest__.py | 9bed2cabeab385d7fdf2ecbd4a099ca0f2e9e691 | [] | no_license | Kodoo-Ltd/alcohol-excise | b41a2f8123d764dba69af99c96c4829a87777baf | c1dc7d2ef65121c1511baf413bf476c3a3a9534f | refs/heads/master | 2022-11-12T20:39:26.792407 | 2020-07-04T11:05:18 | 2020-07-04T11:05:18 | 276,296,786 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 682 | py | {
'name':'alcohol-excise',
'description':'Track excise on movements of alcoholic beverages subject to excise',
'author':'James Carr-Saunders',
'website':'kodoo.co.uk',
'license':'LGPL-3',
'category':'Operations',
'depends':['base','product','stock'],
'application':True,
'installable'... | [
"jamescs@btinternet.com"
] | jamescs@btinternet.com |
fefeb5351e984e08102ff0731c93005fa8e8d134 | 5b351b5defa68c42fa71f523d8f90a25c87d408b | /calc_test.py | 819bceda5878b045824c9f931a01d796d51dd8ec | [] | no_license | enesbburgaz/py-test | 563fca68422eed64ce16d0ba0f7e768686dffc3c | cd17d4d7012ef5769b762085bd73fd43355ecac3 | refs/heads/master | 2023-01-09T13:57:42.925583 | 2020-11-13T19:56:58 | 2020-11-13T19:56:58 | 311,457,883 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 491 | py | import unittest
import calc
class TestCalcMethods(unittest.TestCase):
"""
docstring
"""
def test_add(self):
"""
docstring
"""
self.assertEqual(calc.add(3,5), 8)
def test_subtract(self):
self.assertEqual(calc.subtract(5,3),2)
def test_multiply(self):
... | [
"enesbburgaz@gmail.com"
] | enesbburgaz@gmail.com |
10a0b58da5d933cd295f8adef94ceafcdaeb3957 | 85051377ff4ff3f9c11a8c03dbc07b606b49a84f | /process_data_local.py | a8a81922756e7036ff96c548340452e0044b2003 | [] | no_license | jpgard/chicago-restaurant-inspection-googleplaces-mashup | fcd33c48d97ae37002302f5a65b05822d636e640 | 9ad7c0478f8a3a716e2f6c89769a116c48a0fb5c | refs/heads/master | 2021-01-18T23:48:14.654117 | 2016-07-30T01:53:23 | 2016-07-30T01:53:23 | 52,220,844 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,893 | py |
# Code written by Josh Gardner for SI601_W16 at the University of Michigan
# Vader Sentiment Analyzer via :
# Hutto, C.J. & Gilbert, E.E. (2014).
# VADER: A Parsimonious Rule-based Model for Sentiment Analysis of Social Media Text.
# Eighth International Conference on Weblogs and Social Media (ICWSM-14). Ann Arb... | [
"joshua.patrick.gardner@gmail.com"
] | joshua.patrick.gardner@gmail.com |
39e6075bf44dbdddc1e5e560850c34389b8ab8f6 | d91dd7f0e9d30599361e74a03484121130f93f71 | /app/models.py | 4d778e03e8169731f9b26ea01279587b5bc7cd53 | [
"MIT"
] | permissive | rashidaysher/Pitching | c1a0244d93c1ba4e5634991a2aa1a599ef01864b | 3c9da7c4098e1a601c452ffde576bc7e968a52df | refs/heads/master | 2023-08-22T19:07:42.239515 | 2021-09-27T18:46:02 | 2021-09-27T18:46:02 | 407,626,546 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,287 | py | from . import db
from werkzeug.security import generate_password_hash,check_password_hash
from flask_login import UserMixin
from . import login_manager
from datetime import datetime
@login_manager.user_loader
def load_user(user_id):
return User.query.get(int(user_id))
class User(UserMixin,db.Model):
__tablena... | [
"aisha.ahmed@student.moringaschool.com"
] | aisha.ahmed@student.moringaschool.com |
6175493d493dff7971fe4c50080cc7681525482f | afadad0ce56a32714057ffe730d07e35decb285f | /Justinvalcarcel/testpy2.py | 2ec05316469b88df0f5a9dd39848861d047a871e | [] | no_license | kellender/Attacking-Sandboxes | d237e2fade8a0590f9c3079c26eff135fa5d805c | 5fde6f6ce0cba5839395d6c8cdea4cdded94eeee | refs/heads/master | 2016-09-06T13:28:58.207351 | 2015-09-22T21:54:09 | 2015-09-22T21:54:09 | 42,963,084 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 90 | py | __author__ = 'justinvalcarcel'
# powers of 2 code
for x in range(0,128):
print 2**x
| [
"ajyshenoy@gmail.com"
] | ajyshenoy@gmail.com |
90f50bfebc84cd823817012a773583c73aaa9b9b | 6364bb727b623f06f6998941299c49e7fcb1d437 | /msgraph-cli-extensions/src/groupsonenote/azext_groupsonenote/vendored_sdks/groupsonenote/operations/_group_onenote_page_parent_notebook_section_operations.py | 4a5e423d8719d4d682d4b07cf3fd2220cb6a3db6 | [
"MIT"
] | permissive | kanakanaidu/msgraph-cli | 1d6cd640f4e10f4bdf476d44d12a7c48987b1a97 | b3b87f40148fb691a4c331f523ca91f8a5cc9224 | refs/heads/main | 2022-12-25T08:08:26.716914 | 2020-09-23T14:29:13 | 2020-09-23T14:29:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 40,398 | py | # coding=utf-8
# --------------------------------------------------------------------------
# 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 Microsoft (R) AutoRest Code Generator.
# Changes may ... | [
"japhethobalak@gmail.com"
] | japhethobalak@gmail.com |
95b356426471b1afe72a949f674a499ccac4cfc9 | 849e95a72f4f380d6b31573a0a13e9eccd288838 | /data-tool/flows/common/affiliation_queries.py | a8e6b91b8895cf4e643efd69cb521b2eb8a4ba11 | [
"Apache-2.0"
] | permissive | bcgov/lear | d9b27e2b44ba607ca13878357a62a0623d54ddee | d90f11a7b14411b02c07fe97d2c1fc31cd4a9b32 | refs/heads/main | 2023-09-01T11:26:11.058427 | 2023-08-31T20:25:24 | 2023-08-31T20:25:24 | 168,396,249 | 13 | 117 | Apache-2.0 | 2023-09-14T20:52:02 | 2019-01-30T18:49:09 | Python | UTF-8 | Python | false | false | 567 | py | def get_unaffiliated_firms_query(data_load_env: str):
query = f"""
select ap.account_id, ap.corp_num, ap.contact_email, c.admin_email
from affiliation_processing ap
join corporation c on ap.corp_num = c.corp_num
where environment = '{data_load_env}'
... | [
"noreply@github.com"
] | noreply@github.com |
4c7150b2bfea4e19a7b733096678573a72174dc6 | 49e6009574205580361523ca2af2ff7ca0ff5a64 | /SQL/DatabaseOpt.py | f9384a88ffe14e02400047751d5e30ed25c55c57 | [] | no_license | Mcaoy/Experimentation | f0c5f268cd815a75269aa4873473caa6ed15acfc | 241d41ac4885c1fe7f605a56fb16e5222030fe6b | refs/heads/master | 2021-01-19T12:12:04.486121 | 2017-04-29T09:11:21 | 2017-04-29T09:11:21 | 88,026,300 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 891 | py | # -*- coding: utf-8 -*-
"""
Created on Thu Apr 6 10:50:24 2017
@author: LENOVO
"""
import os
class DatabaseOpt(object):
Path = "D:\PythonWorks\SQL"
def createdb(self,dbname):
if os.path.exists("%s\%s" % (DatabaseOpt.Path,dbname)):
print("%s was existed!" % dbname)
else:
... | [
"1198022059@qq.com"
] | 1198022059@qq.com |
836c0a7a20c8f6ef46925f927d31c64a945d039e | 6c8dac6e0e6fc3cca180af8cfbfebbf7608c8637 | /src/pulses.py | 6cb3f767a52d379bbe8300b1ca52a9b4b61588e4 | [] | no_license | Pemy9/BeatingHeart | 5047f7dadfa9d162ac9bd62c891228d90bcb96c6 | fb4e4b2b52d9cb3bc307984ed47f6305c366b626 | refs/heads/master | 2021-01-12T22:39:04.436414 | 2015-12-06T12:06:55 | 2015-12-06T12:06:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 812 | py | import numpy as np
def findBeats(data, ignore, factor):
"""
Finds Beats in data where ignore is the percentage to ignore between
two beats, and the factor is division for the cut off
"""
amp = np.array([])
frames = np.array([])
cut = data[1].max() / factor
ignore = data[1].size ... | [
"jose.filipe.m@gmail.com"
] | jose.filipe.m@gmail.com |
3fa2ec3f7e947fa2481b0da91125eff20d196d3b | b05761d771bb5a85d39d370c649567c1ff3eb089 | /venv/lib/python3.10/site-packages/google/protobuf/internal/symbol_database_test.py | b4fa37fe40064f9e02c9b48bf3a1a5f9a22aae14 | [] | no_license | JawshyJ/Coding_Practice | 88c49cab955eab04609ec1003b6b8c20f103fc06 | eb6b229d41aa49b1545af2120e6bee8e982adb41 | refs/heads/master | 2023-02-19T10:18:04.818542 | 2023-02-06T21:22:58 | 2023-02-06T21:22:58 | 247,788,631 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 96 | py | /home/runner/.cache/pip/pool/fb/52/e7/708e3742aa691c784a82b3c4285c6477288dd5d5aa400d2d7b47c88990 | [
"37465112+JawshyJ@users.noreply.github.com"
] | 37465112+JawshyJ@users.noreply.github.com |
574da7fec78a4cc0ad8063b3b916aaf317b9e7c4 | 004f8f49e335f8e41462eae512bbe20d750fce8c | /rldb/db/repo_rl_baselines_zoo/algo__acktr/entries.py | fdb66c565fec071457d77ed4e07abe3a488e4f34 | [
"MIT"
] | permissive | seungjaeryanlee/rldb | 3ab4317e26a39e6fa9b6e7ed9063907dc6a60070 | 8c471c4666d6210c68f3cb468e439a2b168c785d | refs/heads/master | 2020-04-29T15:50:26.890588 | 2019-12-19T08:31:12 | 2019-12-19T08:31:12 | 176,241,314 | 52 | 2 | MIT | 2019-05-16T06:33:17 | 2019-03-18T08:54:24 | Python | UTF-8 | Python | false | false | 1,280 | py | entries = [
{
'env-title': 'classic-acrobot',
'score': -91.284,
'stddev': 32.515,
},
{
'env-title': 'atari-beam-rider',
'score': 3760.976,
'stddev': 1826.059,
},
{
'env-title': 'atari-breakout',
'score': 448.514,
'stddev': 88.88... | [
"noreply@github.com"
] | noreply@github.com |
9da35b41038706ad71614404f62e1afe9af8e375 | c7a6f8ed434c86b4cdae9c6144b9dd557e594f78 | /ECE364/.PyCharm40/system/python_stubs/348993582/PyQt4/QtGui/QHideEvent.py | cfd848238474f2b4a649fb575cb2b6a102c3dc84 | [] | no_license | ArbalestV/Purdue-Coursework | 75d979bbe72106975812b1d46b7d854e16e8e15e | ee7f86145edb41c17aefcd442fa42353a9e1b5d1 | refs/heads/master | 2020-08-29T05:27:52.342264 | 2018-04-03T17:59:01 | 2018-04-03T17:59:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 312 | py | # encoding: utf-8
# module PyQt4.QtGui
# from /usr/lib64/python2.6/site-packages/PyQt4/QtGui.so
# by generator 1.136
# no doc
# imports
import PyQt4.QtCore as __PyQt4_QtCore
class QHideEvent(__PyQt4_QtCore.QEvent):
# no doc
def __init__(self, *args, **kwargs): # real signature unknown
pass
| [
"pkalita@princeton.edu"
] | pkalita@princeton.edu |
ba5fc7e95e01f7c563abab6ffaaf62b2f487b966 | fc5a47c29c5b59a2384b0a12a2cdbdc80aa6e383 | /OpenCV/q51.py | 122c3e1204993a995d729e31ec3c6a1421b25b2c | [
"MIT"
] | permissive | ronnie7z7z/Autumn-of-Automation-Ronit-Shukla | 88df48c6b3d30a5e47311e068a6b7120386f572a | 3bdafcb512ea40b7caccf9a1b49653cce86f9291 | refs/heads/master | 2022-11-28T22:00:23.552575 | 2020-08-02T22:10:20 | 2020-08-02T22:10:20 | 281,686,251 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,460 | py | import cv2
import numpy as np
capture = cv2.VideoCapture('messi.mp4')
while(True):
ret, frame = capture.read()
img = cv2.cvtColor(frame, cv2.COLOR_BGR2GRAY)
# n=4
# kernel = np.ones((n,n),np.float32)/(n*n)
# img = cv2.filter2D(img,-1,kernel)
img = cv2.GaussianBlur(img,(5,5),0)
ret,th... | [
"ronitrshukla37@gmai.com"
] | ronitrshukla37@gmai.com |
6a654dc962e7539a608bb870cba543ef8952f6d3 | 4b3055c49b7cd559731f4693d438ed701df946f5 | /tutorials/Image_Processing/3_Image_Transformation/Morphological_Transformations.py | 88de4ad96671323ba999b0a89e3e9b397803c912 | [
"MIT"
] | permissive | Hank-Tsou/Computer-Vision-OpenCV-Python | 6c8fec16335e4939d0c107e18e62bf601a329df8 | 171e16d5741bf4cbd3f5078269fc7693f5e49c33 | refs/heads/master | 2020-05-18T21:35:50.297461 | 2019-10-11T21:18:35 | 2019-10-11T21:18:35 | 184,665,808 | 11 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,840 | py |
#------------------------------------#
# Author: Yueh-Lin Tsou #
# Update: 7/10/2019 #
# E-mail: hank630280888@gmail.com #
#------------------------------------#
"""--------------------------------
- Morphological Transformations
- Image erosion
- Image dilation
- Function mor... | [
"hank630280888@gmail.com"
] | hank630280888@gmail.com |
8235bdea4e30ffb021b1b151e95e2bd0d11cf41b | 2930560b7c795f398ce8149e18751529aab00f98 | /batch_separate_units.py | c8d950a06affa73fb89c5b82336c34bac919b90e | [
"Apache-2.0"
] | permissive | ArashAll/macke | 7ed8fac5c26f8fdfa0eb9af27fe70c81a7ded914 | dcc58440033490d1cf0cddb19f720d0896088ecc | refs/heads/master | 2021-01-18T08:12:04.709562 | 2015-12-15T09:00:22 | 2015-12-15T09:00:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,900 | py | import sys
import os
import glob
from optparse import OptionParser, OptionGroup
import re
def invert_dict(orig):
inverted = {}
for key in orig.keys():
for v in orig[key]:
if v not in inverted:
inverted[v] = []
inverted[v].append(key)
return inverted
if __na... | [
"saahil.in@gmail.com"
] | saahil.in@gmail.com |
d28555ec0593f4e9fa1f719f4042a1833efee464 | c063b804ab98ead529c6eb2f72bb9ef163945fd1 | /application/migrations/0002_remove_admission_quantity.py | ee90550bb4f03a72538bcc60071d24cb677da1ab | [] | no_license | milpandaaa/Movie | 735315945931479a8c55144d9f92dfa55940a3ab | a1dffed1afd7cb9d6ff9c4440c8533aaff4ffd59 | refs/heads/master | 2023-01-13T15:37:42.895561 | 2020-11-20T07:12:54 | 2020-11-20T07:12:54 | 314,474,743 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 326 | py | # Generated by Django 3.1.3 on 2020-11-16 20:21
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('application', '0001_initial'),
]
operations = [
migrations.RemoveField(
model_name='admission',
name='quantity',
),
... | [
"milpandaaa@bk.ru"
] | milpandaaa@bk.ru |
3c73a92c9f9ab49c322bc1a248adfb95fc30d1e6 | 8b1b1eb2800f319447a12ddf3bd791891ad54ac8 | /src/searchdata.py | dec351a2aeba44a947de4b63d4269ea656f91c31 | [] | no_license | rainats/youtube_data_api | 648b0499db62a051339dd76593b6851e5da0f2ab | 8e6cd0577bbdcc261ae7ddb6d290259b6fe64fd0 | refs/heads/master | 2023-06-10T09:14:05.032936 | 2021-07-02T06:18:32 | 2021-07-02T06:18:32 | 381,089,923 | 1 | 0 | null | 2021-06-29T08:42:35 | 2021-06-28T16:05:44 | Python | UTF-8 | Python | false | false | 970 | py | # -*- coding: utf-8 -*-
from unicodedata import normalize
def search_list(service_obj,search_param):
search_response = service_obj.search().list(
part=search_param[0],
pageToken=search_param[1],
order=search_param[2],
q=search_param[3],
maxResults=search_param[4],
... | [
"raina.thomas@smail.inf.h-brs.de"
] | raina.thomas@smail.inf.h-brs.de |
643b06420c0837ef1dd43c6fb61c2cc79bde3876 | b425b07872f9fb56b362ae08a11488b80881c41e | /Weather/weather.py | 4770337a5de7a9465e3866394dedb113675ed485 | [] | no_license | dershao/DailyAutomation | e24783e2baa82ef013f20ae9ada3c0b3a8b859f9 | 41bd8822477c564ffea2bf583ffd2022c9c33661 | refs/heads/master | 2021-10-09T23:30:06.890177 | 2019-01-04T14:08:47 | 2019-01-04T14:08:47 | 98,227,179 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,674 | py | #!/usr/bin/env python3
import requests, json, sys
API_key = "a78cb5de3d831abd304abb2ff1d0dcc0"
def displayWeatherData(mJson):
name_city = mJson["name"].upper()
name_country = mJson["sys"]["country"]
cloudiness = mJson["weather"][0]["description"].capitalize()
wind = str(mJson["wind"]["speed"]) + " m/s"
high_... | [
"shao.derek.now@gmail.com"
] | shao.derek.now@gmail.com |
2c31b25c59b165c4ae1d0d10712b7b6783a8bba1 | fe2a08760d0b370f911160a69da37cf0c05d9464 | /ubuild.py | 1704ecb7ba8baec55262968dfedb423b6a2873f3 | [
"MIT"
] | permissive | gsemet/sanic-transmute | bb19daf2503d4c5758efff363ebece500e39be28 | 6df29a47e864b89fb02f85423376c7db4db01a2a | refs/heads/master | 2021-08-26T09:25:49.136628 | 2017-11-22T20:58:17 | 2017-11-22T20:58:17 | 111,616,514 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 980 | py | import os
import subprocess
from uranium import task_requires
def main(build):
build.packages.install(".", develop=True)
@task_requires("main")
def test(build):
build.packages.install("pytest")
build.packages.install("pytest-cov")
build.packages.install("aiohttp")
build.packages.install("pytest-... | [
"yunx@zillowgroup.com"
] | yunx@zillowgroup.com |
c95b03c124f2e3092a3d2f785eff6d1d18c9c838 | 61b63b3aa74cf54222fb6e3be5691d1ad735aa46 | /CodeJam/IO2016/casting.py | 6d6c80e067000939c310b98819dd95a694443fdc | [] | no_license | sharon-lin/Coding-Competitions | b284600441f42976d5370777a042e04dd4d7a0b0 | 394bff1f8cc7214fe9e48ae22e9d4be418f57103 | refs/heads/master | 2021-04-22T11:53:18.179954 | 2017-06-17T04:20:05 | 2017-06-17T04:20:05 | 94,600,161 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 548 | py | #!/usr/bin/env python
for case in range(int(raw_input())):
n = int(raw_input())
map1 = [map(float, raw_input().split())][0]
map_sorted = sorted(map1, reverse=True)
actors = map_sorted[0:n]
under = map_sorted[n:]
total = []
for i in range(len(actors)):
if actors[i] == 1.0000:
... | [
"noreply@github.com"
] | noreply@github.com |
98259f47a27b4879db8e7d2603261df5388ad147 | c6c2f74826be1b3f9d4bb3ccbc883135f4811624 | /backend/Services/Google.py | a6fc14420964d4e5dd12efe37a98f5265b18edb5 | [] | no_license | surreal6/H4ckEvilness | f7307e5f011faa9de4934774fc190ed7c467bb60 | 636548ce266c946922fbc3480ed6d2312cd6d35c | refs/heads/master | 2020-12-13T18:27:19.870816 | 2015-06-30T12:48:51 | 2015-06-30T12:48:51 | 38,034,821 | 1 | 0 | null | 2015-06-25T07:30:24 | 2015-06-25T07:30:22 | Python | UTF-8 | Python | false | false | 2,301 | py | import requests
from pyquery import PyQuery as pq
from Utils.functions import replace_symbols_bis
from servicesWorker.ServiceWorker import ServiceReceiver
class GoogleCrawler(ServiceReceiver):
user_agent = "NokiaN97i/SymbianOS/9.1 Series60/3.0"
headers = {
'User-Agent': user_agent,
}
results... | [
"viperey@gmail.com"
] | viperey@gmail.com |
9884b1de41eab0160fd747542446ca34bf087a80 | 62a6feec359cbb7c587f8a540e09d912443d108f | /xCore/sqlCore.py | ee204a4ac42f454b151a12432c4bdaceb78a096a | [] | no_license | Wang-JiaMing/XMap | 801def220720a331ddc7b8f3b7da775bd2172ba3 | 5d06cb876a4a7baef802393d054c7a13dbb24ec8 | refs/heads/master | 2023-04-15T11:02:17.793609 | 2021-04-21T04:24:17 | 2021-04-21T04:24:17 | 308,187,415 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,331 | py | # -*- coding: utf-8 -*-
"""
@Time 2020/10/27 12:55
@Author wangjiaming
@Version V0.1
@File SqlCore
@Desc:
"""
import xCommon.utils as utils
# '错误日志sql'
def __errSql(vailResult):
sql = []
for vali in vailResult:
sqlStr = "insert into TB_CDA_ERR_LOG(source_id, error_msg) values(\'... | [
"13422192925@163.com"
] | 13422192925@163.com |
379567bb6696d242385dbf40cd7f2902594fe529 | e6f76fbc52d29e486f56cf2699544af3406bf78e | /mnist/dataloader.py | c7630dcdab9706bc27828db3d2df40f9f4d44a50 | [
"Apache-2.0"
] | permissive | rsyamil/geo-selection-inversion | 117fcf9bd9ac835c4ff4e9da4344fb64c5f7db21 | ddb74d4f68fc63de1e073237c2cfd15212a2b9c6 | refs/heads/main | 2023-03-07T08:29:53.569077 | 2021-02-25T01:44:11 | 2021-02-25T01:44:11 | 341,336,348 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,799 | py | import random
import string
import numpy as np
import matplotlib as mpl
import matplotlib.pyplot as plt
import matplotlib.gridspec as gridspec
import os
os.environ['TF_CPP_MIN_LOG_LEVEL'] = '3' # or any {'0', '1', '2'}
import tensorflow as tf
tf.compat.v1.logging.set_verbosity(tf.compat.v1.logging.ERROR)
class DataL... | [
"rsyamil@umich.edu"
] | rsyamil@umich.edu |
e71c6a0b245bef21bf110ca3323be488f556ccff | d230b0e6b4a1290dd4fad650a9259d85b26b61ab | /sohi5.py | 0f98bf39fa0af1729900d91ea88fd8d4b9b5c762 | [] | no_license | BILLAMAFIA101/SOHI5 | c2d2226308dfa087fa35f684685ae8188d14df4b | 86ebb4eae4a2f91dd83dabfc1121f5080b74d96f | refs/heads/main | 2023-03-23T19:50:45.781968 | 2021-03-14T07:56:10 | 2021-03-14T07:56:10 | 347,576,468 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,805 | py | #!/usr/bin/python2
#coding=utf-8
import os,sys,time,datetime,random,hashlib,re,threading,json,urllib,cookielib,requests,mechanize
from multiprocessing.pool import ThreadPool
from requests.exceptions import ConnectionError
from mechanize import Browser
reload(sys)
sys.setdefaultencoding('utf8')
br = mechanize.Browse... | [
"noreply@github.com"
] | noreply@github.com |
f1ef13e3a29e9610c6c28766233462133d4bc086 | 4e08b2fc7a50a2b8fb3d7d5d3585815766f9d86f | /String Validators.py | 93a1c4d6950d1ff54c14817c23f6798a33be0986 | [] | no_license | anudeepvrm/Hackerrank | eca03e9cf16528c58569a68ceeef8db39ad26981 | a6143e0c3eb7413ff69a572c4d0b2d6173421a47 | refs/heads/master | 2016-08-12T04:33:32.496287 | 2015-12-23T12:47:53 | 2015-12-23T12:47:53 | 45,530,934 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 421 | py | number = input()
alphanumeric=False
alphabet=False
digit=False
lowercase=False
uppercase=False
for i in number:
if((i.isalpha())):
alphabet=True
if(i.isalnum()):
alphanumeric=True
if(i.isdigit()):
digit=True
if(i.islower()):
lowercase=True
if(i.isupper()):
... | [
"anudeepvrm@gmail.com"
] | anudeepvrm@gmail.com |
ac64b34973362b7ba0bb20f19fa422398239fe6d | 8613ec7f381a6683ae24b54fb2fb2ac24556ad0b | /boot/hard/divrem.py | c7180bf7bddacb57c97c3650dba1a60803a2326d | [] | no_license | Forest-Y/AtCoder | 787aa3c7dc4d999a71661465349428ba60eb2f16 | f97209da3743026920fb4a89fc0e4d42b3d5e277 | refs/heads/master | 2023-08-25T13:31:46.062197 | 2021-10-29T12:54:24 | 2021-10-29T12:54:24 | 301,642,072 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 243 | py | n = int(input())
ans = 0
def calc(x):
x -= 1
if x <= 0:
return 0
elif n // x == n % x:
return x
return 0
for i in range(1, int(n ** 0.5) + 1):
if n % i == 0:
ans += calc(n // i) + calc(i)
print(ans) | [
"yuuya15009@gmail.com"
] | yuuya15009@gmail.com |
6f906b95dab3f59bdaf57c7c66e43031b13bd885 | b909406a1f838b2bb9e8eca90fd1bdf412e67286 | /13.微信投票机器人/VoteRobot-master/VoteRobot.py | 6f6fee18970cba741315d9928fbbc95582572440 | [] | no_license | kaishuibaicai/mini-Python-Projects | 2f12a5349e389c73080443443fcd293aae04a521 | e18d8bbecb8baaa345720011e67789b123523457 | refs/heads/master | 2021-09-13T02:55:12.429216 | 2018-04-24T04:44:33 | 2018-04-24T04:44:33 | 104,319,805 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,383 | py | #encoding=utf-8
import sys
import time
import random
import string
import httplib
import urllib
# 生成指定位数的随机字符串,字符为字母或数字
def getRandomString(id_length):
charSeq = string.ascii_letters + string.digits
randString = 'owzeBj'
for i in range(id_length):
randString += random.choice(charSeq)
return ... | [
"272251416@qq.com"
] | 272251416@qq.com |
f5da0d359a2950a5309e2631ef994614b76aaeec | 24f75f7ab2c38a028e99466a26b0957ab3a5424b | /pyscf/hessian/rks.py | 93f37e9c6200c821a8f075b97cb93a9274a7ac4b | [
"BSD-2-Clause"
] | permissive | wwjCMP/pyscf | 2a0e5d13ef42b537939e3fd3d63cb3b9cbd1ef28 | 3526cda9537ae2a4d90adee12c707a02dd66d445 | refs/heads/master | 2021-08-28T12:36:07.882737 | 2017-12-12T08:53:37 | 2017-12-12T08:53:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 31,433 | py | #!/usr/bin/env python
#
# Author: Qiming Sun <osirpt.sun@gmail.com>
#
'''
Non-relativistic RKS analytical Hessian
'''
import time
import copy
import tempfile
import numpy
import h5py
from pyscf import lib
from pyscf.lib import logger
from pyscf.scf import _vhf
from pyscf.hessian import rhf
from pyscf.dft import numin... | [
"osirpt.sun@gmail.com"
] | osirpt.sun@gmail.com |
fef28e97b8ed67f09062d72af6796d2870804fc5 | 36a2f18e0631d962d2303a5a1b020431837b9be1 | /UDPClient.py | f04963cd2f9832921ae32852b2c8a20f24ba01c3 | [] | no_license | jc-higuera/Lab3UDP | a49d33562efa8da08ccc12637ab75cf35bb8b0ae | 011c7585c00c04ad46d3f9257fba437a413d1346 | refs/heads/main | 2023-01-04T00:32:44.090116 | 2020-10-28T03:49:11 | 2020-10-28T03:49:11 | 306,975,091 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,294 | py | from socket import *
import sys
import select
import hashlib
def sha256sum(filename):
h = hashlib.sha256()
b = bytearray(64*1024)
mv = memoryview(b)
with open(filename, 'rb', buffering=0) as f:
for n in iter(lambda : f.readinto(mv), 0):
h.update(mv[:n])
return h.hexdigest()
... | [
"jc.higuera@uniandes.edu.co"
] | jc.higuera@uniandes.edu.co |
a35dcd05325d37c665c113d9881f5a39005e123a | 5da856f6cab38339f383e6db773454b5cd4061e2 | /Algorithms/trpo/test.py | 8da4f1ea65e41c1dd2391e7aab4eedf0f714a185 | [] | no_license | SpartmanAvon/DRL_Pybullet_Environments | 41208f84069b0342873b8f097e0ea7ae9db6cee4 | a67209ed4307863a2133de46e898fd31236968f1 | refs/heads/master | 2022-12-27T06:58:07.456789 | 2020-10-03T09:38:02 | 2020-10-03T09:38:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 176 | py | from trpo import TRPO
import gym
import pybullet_envs
# x = TRPO(lambda: gym.make('CartPoleContinuousBulletEnv-v0'))
x = TRPO(lambda: gym.make('CartPole-v0'))
x.learn(1000000) | [
"jasoncky96@gmail.com"
] | jasoncky96@gmail.com |
98324a1d692af19f4b56b351cfa0370f0ca8b470 | e19b2b4c4f3aa5c8acf25b54c3a705d5a537b4a3 | /01-11 Attention/生成图2/generate.py | ecba3cebab6ab02db20c2efb6e88d2dde179777b | [] | no_license | 2805413893/DUAL-ATTENTION-MECHANISMS-WITH-PERCEPTUAL-LOSS-ENSEMBLE-FOR-INFRARED-AND-VISIBLE-IMAGE-FUSION | 2bd32b3bf8acf98c55178034b1ae2b10fa063edc | b5e42b6d0a02f3fe6731bea1866f7b32837374e6 | refs/heads/master | 2022-04-09T21:50:22.700342 | 2020-03-25T03:16:09 | 2020-03-25T03:16:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 23,808 | py | # Use a trained DenseFuse Net to generate fused images
import tensorflow as tf
import numpy as np
import attention
from datetime import datetime
from fusion_l1norm import L1_norm, L1_norm_attention
from densefuse_net import DenseFuseNet
from utils import get_images, save_images, get_train_images, get_train_images_rgb... | [
"49114398+ngujiang@users.noreply.github.com"
] | 49114398+ngujiang@users.noreply.github.com |
ae47ebf4bd9e9ee2b5a327015ca46141aaec74fd | 609444f644b60898e1ae9f8f52679a83b65a5df6 | /afrl/cmasi/__init__.py | 933720cead057b724c263f88da292372fd9ef63b | [] | no_license | sahabi/Shield_exp | 7bdef30f11edc34bf0811445aaa667cb4814f0e1 | 09d601fa1a346e0f780d5a438b6c5fbd3d4b6deb | refs/heads/master | 2021-01-12T05:41:57.468997 | 2016-12-22T20:16:07 | 2016-12-22T20:16:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,557 | py | __all__ = [ "SeriesEnum", "AbstractGeometry", "KeyValuePair", "Location3D", "PayloadAction", "PayloadConfiguration", "PayloadState", "VehicleAction", "Task", "SearchTask", "AbstractZone", "EntityConfiguration", "FlightProfile", "AirVehicleConfiguration", "EntityState", "AirVehicleState", "Wedge", "AreaSearchTask", "Cam... | [
"sahabi@gmail.com"
] | sahabi@gmail.com |
72782ec6a326e41786153576d994a501946d5bf7 | e45fc7951133b50b1c4feee35ac437943672e2e0 | /Tree/min_spaces.py | 5999c681343a723b65e73219337b6d4ba911ff33 | [] | no_license | ducfilan/algorithms-practice | 75b82f9186013d8885b3e999d4b1a7dce614ed9a | dc751c51e3086a18abcb91387eb064d51e69955a | refs/heads/master | 2023-07-06T14:40:08.532362 | 2023-07-04T23:57:29 | 2023-07-04T23:57:29 | 110,446,408 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,603 | py | # Level: HARD
#
# Sample Input: 3141592653589793238462643383279
# Words: ['314', '49', '9001', '15926535897', '14', '9323', '8462643383279', '4', '793']
# Sample Output: 3 (314 15926535897 9323 8462643383279)
class TrieNode:
def __init__(self, value, is_end=False):
self.value = value
self.children... | [
"ducfilan@gmail.com"
] | ducfilan@gmail.com |
b5fec0c17303d93ebe5a9ddfadd8be43f15cfc08 | a5dede159ae74df1a14945c6564ee898303669b0 | /executionEngine/DriverScript.py | 180742ecd01ddd8dc20175157008778b48df63a0 | [] | no_license | dfp1991/AppKeywordDriver | ee8cb12270262f609bae4824a7fcceef4e56188e | 7f94c4540edac3e42fb058ec19702ce235c80f39 | refs/heads/master | 2023-01-14T12:30:01.268969 | 2020-11-23T03:08:11 | 2020-11-23T03:08:11 | 307,378,122 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 546 | py | from config import ActionKeywords
from utility import ExcelUtils
def executeActions():
method = dir(ActionKeywords)
for i in range(len(method)):
if method[i] == sActionKeyword:
func = getattr(ActionKeywords, method[i])
func()
break
if __name__ == '__main__':
ex... | [
"dfp1991@126.com"
] | dfp1991@126.com |
e3dfff3fbe3de66722c69b298816b8157daa40d6 | 02034710c81defbd78d16b1e08dcb3d5eaeffea0 | /random_string_generator.py | 0708d37e5a0ec69b7cccbef86053420b9fe403b6 | [] | no_license | salman-codes/geeksforgeeks | af0ef9eab7c9ff1c2e4657f4b17bfaf505fee114 | b4a90b5027fbcedbae4ae2090c3865d4567fdea1 | refs/heads/master | 2022-11-29T09:52:44.194553 | 2020-08-10T12:45:26 | 2020-08-10T12:45:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,572 | py | # -*- coding: utf-8 -*-
"""
Created on Mon Jul 27 12:47:39 2020
@author: Salman.Akhatar
"""
import string as asc_str
import time
class TheRandom:
def __init__(self):
self.string_uppercase = list(asc_str.ascii_uppercase)
self.string_lowercase = list(asc_str.ascii_lowercase)
self.string = Non... | [
"Salman.Akhatar@telus.com"
] | Salman.Akhatar@telus.com |
5274a8100a7e3bb6179e8b192ebdabeb6409afc3 | d22a23780a717601a7307db7199b98eafa0f0130 | /data_handler.py | f7767ac8da4a1c3f735687ccb36f083a77671cc2 | [] | no_license | gracemoon/deep-learning | 75446a72bebea529ab5a0a9b82e0c0084b11fea7 | 21bc11b51f72018aedfca0876d4e9a90cd577928 | refs/heads/master | 2021-07-22T01:46:28.500316 | 2020-05-12T06:56:05 | 2020-05-12T06:56:05 | 157,706,430 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,201 | py | import pandas
import matplotlib.pyplot as plot
from sklearn.linear_model import LinearRegression
from sklearn.metrics import mean_squared_error
import numpy as np
from sklearn.model_selection import cross_val_score
file_path = 'datasets/housing.csv'
def load_data():
return pandas.read_csv(file_path)
# 数据预处理
# 1... | [
"15921991927@163.com"
] | 15921991927@163.com |
4090b855d38ff1df15e8df2efe8df61b15a3b630 | cd5746f8cc7aee1f20606a65b4fae0d5e8ee78dc | /Python Books/Mastering-Machine-Learning-scikit-learn/NumPy-Cookbook/NumPy Cookbook 2nd Edition_CodeBundle/Final Code/0945OS_05_Final Code/ch5code/memmap.py | cfb0133647aece53a7a0d204bfbeaf4a3dd9f4dd | [] | no_license | theGreenJedi/Path | df24fca355590efef0c6cb5c52e7216c6b5d2464 | b5ed2805dbb046480929e49e550bfd8af5bb4d6f | refs/heads/master | 2023-07-27T14:23:37.694546 | 2021-07-16T01:38:55 | 2021-07-16T01:38:55 | 87,686,563 | 8 | 2 | null | 2023-07-11T22:49:03 | 2017-04-09T05:57:30 | Jupyter Notebook | UTF-8 | Python | false | false | 891 | py | import numpy as np
import matplotlib.pyplot as plt
N = 512
NSQUARES = 30
# Initialize
img = np.zeros((N, N), np.uint8)
centers = np.random.random_integers(0, N, size=(NSQUARES, 2))
radii = np.random.randint(0, N/9, size=NSQUARES)
colors = np.random.randint(100, 255, size=NSQUARES)
# Generate squares
for i in xrange(... | [
"GreenJedi@protonmail.com"
] | GreenJedi@protonmail.com |
f4fcb51f1d823e862ac5ed63374cf870304ed384 | 9b9800b81c905acdfbb3378af19ae11fab6ad5e1 | /Problems and Solutions/sudoku-solver.py | c067c7a9a83072305dedd638b71fc92304fd27fd | [] | no_license | sujink1999/DSA | 5aae165fc1337f258a99a4552a2f7ab3caf85a92 | 64476797bf9499e78bc33e9eda05fa1cb14fbe85 | refs/heads/master | 2023-08-11T08:55:16.352064 | 2021-09-11T18:31:39 | 2021-09-11T18:31:39 | 386,406,932 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,259 | py | # Write a program to solve a Sudoku puzzle by filling the empty cells.
# A sudoku solution must satisfy all of the following rules:
# Each of the digits 1-9 must occur exactly once in each row.
# Each of the digits 1-9 must occur exactly once in each column.
# Each of the digits 1-9 must occur exactly once in each of t... | [
"noreply@github.com"
] | noreply@github.com |
ea758efbb6b2f944c57bb1f2f0ed58065e9a48c6 | a26942949b9a93eb9798272258ee731c3b3df68c | /test/video_pro.py | 9c27efc088df84409897b20a1dbcbbbb71efedba | [] | no_license | functionxu123/use_pycaffe | 8ee7d8a2e4a52dfa3a0f2621f9b54514d832bd46 | 0fc53b44616170202bdfe954db88768796438d8f | refs/heads/master | 2021-10-10T22:06:47.007187 | 2019-01-18T03:19:28 | 2019-01-18T03:19:28 | 111,888,043 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,313 | py | #coding:utf-8
'''
Created on 2018年3月4日
@author:China
'''
import cv2, time
import os, random
import os.path as op
import numpy as np
import cut_video
from multiprocessing import Pool
def cut_video(inpu, output,time_len=10,num_def=1):
videoCapture = cv2.VideoCapture(inpu) # 从文件读取视频
# 判断视频... | [
"root@sherl-desktop"
] | root@sherl-desktop |
1f55ed528984aa255668b43fc89c149e90036a34 | 51a37b7108f2f69a1377d98f714711af3c32d0df | /src/leetcode/P657.py | f83e958ab590ac9a78e88d3a6b8e2222b20faa3e | [] | no_license | stupidchen/leetcode | 1dd2683ba4b1c0382e9263547d6c623e4979a806 | 72d172ea25777980a49439042dbc39448fcad73d | refs/heads/master | 2022-03-14T21:15:47.263954 | 2022-02-27T15:33:15 | 2022-02-27T15:33:15 | 55,680,865 | 7 | 1 | null | null | null | null | UTF-8 | Python | false | false | 458 | py | class Solution:
def judgeCircle(self, moves: str) -> bool:
x = y = 0
for move in moves:
if move == 'U':
x -= 1
if move == 'D':
x += 1
if move == 'L':
y -= 1
if move == 'R':
y += 1
... | [
"stupidchen@foxmail.com"
] | stupidchen@foxmail.com |
17f6e95efbd94b31a0c1cf64eef3d948051bbcbe | c7aefa01fda0a8c06110fbcf31fff49c4362f30b | /apps/demo0/views.py | 36649f97a45880816bb5b1e3a5805a8297b7a392 | [] | no_license | 2267770481/Restful | b627fcdfccd4c4ed28f6b00ab9c3aa9b4a1894b8 | 3b37d2607902bbaae375dc548bed20005690459b | refs/heads/main | 2023-08-11T14:28:36.857533 | 2021-10-04T03:54:45 | 2021-10-04T03:54:45 | 412,759,908 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,043 | py | from django.shortcuts import render
from django.forms.models import model_to_dict
from django.views import View
from django import http
import json
from apps.demo1.models import BookInfo
# Create your views here.
# 列表视图
class BookListView(View):
def get(self, request):
# 查询所有
books = BookInfo.obje... | [
"yalong2020@yeah.net"
] | yalong2020@yeah.net |
10895423ec2e6b074ec1df0e41cd3e34ce642342 | a75682b00cae27d8874fd81845626e5423101181 | /assn2/amr439/2-3-9/huffman.py | 1a1a37b1c6271adf215b79d76905735da82219ba | [] | no_license | AbirRazzak/cs260-data-structures-and-algorithms | 1311721316d25dfc80cd315d384412a5def468e5 | 3fab3a341542359999be4ba8c966eed749c3e75e | refs/heads/master | 2020-03-24T02:24:01.814213 | 2018-09-03T23:32:08 | 2018-09-03T23:32:08 | 142,374,122 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,083 | py | #!/usr/bin/python3
from loctree import *
def find_min(dict):
k = next(iter(dict)) # Gets the first key in dict
min = dict[k] # Set the min to the first value of dict
for key in dict:
if dict[key] < min:
k = key
return k
def huffman(data):
# Find the 2 lowest values in the... | [
"amr439@drexel.edu"
] | amr439@drexel.edu |
d48b6d7c3dab5f1e00db26b7f771c4df2f402dae | 5293b074cb22943a9bc20776be25167347290177 | /demo/meizi.py | 6375593912cf977b75703c269caa28bf3029eb96 | [] | no_license | qlcrmc/Spider-Man | 97bef4202a97dbca5ec8dccad586dd9cf029fdb3 | 36eae3ee16177ba9bb096cb4cf905ebe1750e0e7 | refs/heads/master | 2020-06-23T23:05:38.960165 | 2019-07-25T06:25:30 | 2019-07-25T06:25:30 | 198,779,281 | 1 | 0 | null | 2019-07-25T07:20:20 | 2019-07-25T07:20:19 | null | UTF-8 | Python | false | false | 1,195 | py | # -*- coding: utf-8 -*-
# @Author :junjie
# @Time :2019/7/06 15:24
# @FileName :meizi.py
#IDE :PyCharm
from lxml import html
import requests
import os
def run(page):
url = "https://www.mzitu.com/page/{}/".format(page)
headers = {
"User-Agent": "Mozilla/5.0 (Windows NT 6.1;... | [
"66461581@qq.com"
] | 66461581@qq.com |
8eda126b9ddc871d2c35c095ecc5b5f9c3159fc9 | a2d36e471988e0fae32e9a9d559204ebb065ab7f | /huaweicloud-sdk-cloudide/huaweicloudsdkcloudide/v2/model/show_instance_request.py | 5da7cd5b7264aaf5c265c40ff95920dd44048ea5 | [
"Apache-2.0"
] | permissive | zhouxy666/huaweicloud-sdk-python-v3 | 4d878a90b8e003875fc803a61414788e5e4c2c34 | cc6f10a53205be4cb111d3ecfef8135ea804fa15 | refs/heads/master | 2023-09-02T07:41:12.605394 | 2021-11-12T03:20:11 | 2021-11-12T03:20:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,006 | py | # coding: utf-8
import re
import six
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
class ShowInstanceRequest:
"""
Attributes:
openapi_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The ke... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
307322ee61c93461c4dbe83a4b10a0a481101f45 | 243463ea20252c27c4a5ba2a396e31741c55b8e4 | /gestion_arriendos/manage.py | c7ccafbdb1e62a698c7ee4c3008a40f529206752 | [] | no_license | DanielDi/Arquitectura-de-Software | 7831c066111defd00489489858bd3de3e912d62e | 3d2fceb40fb3c2aed63a415d151ec043869dae8a | refs/heads/master | 2022-12-16T06:31:35.126528 | 2020-09-01T03:08:29 | 2020-09-01T03:08:29 | 290,637,115 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 673 | 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', 'gestion_arriendos.settings')
try:
from django.core.management import execute_from_command_line
e... | [
"selopezre@unal.edu.co"
] | selopezre@unal.edu.co |
228fe9711a634835b106083edcaf290336861b71 | eea1cb923a062a792f8263c38d209df918201905 | /app/libs/error.py | 1485d776eb8ee3cc24d2238ed59474953658aab7 | [] | no_license | xjhello/yushu-api | 220e2ec5676b71b170da773745e88709ecfa7437 | e70bd14e6f1242edb0b33be0a87a23e4a96a3eee | refs/heads/master | 2020-05-29T23:35:38.187462 | 2019-05-30T15:42:00 | 2019-05-30T15:42:00 | 189,440,390 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,180 | py | from flask import request, json
from werkzeug.exceptions import HTTPException
#基类错误对象
class APIException(HTTPException): #重写HTTPException的get_headers和get_body方法
code = 500
msg = 'sorry, we made a mistake (* ̄︶ ̄)!'
error_code = 999
def __init__(self, msg=None, code=None, error_code=None,
... | [
"xu@qq.com"
] | xu@qq.com |
920654021e5e97f058abb675ec4128d76b24d541 | a9e21b43f0c70f12b8c5e10caef3e97ff4675f2d | /myargs.py | 9718052b2a50a844ca947fbfb27f7c882064ec52 | [] | no_license | GarethOLeary/GraphTheory_WeeklyExercises | 19474c267b10fdc5b74c944a21755a9ef951d583 | 3a3055f09792d2d040e42bb2d24aef27dde5d921 | refs/heads/main | 2023-04-13T10:03:40.996916 | 2021-04-26T12:02:55 | 2021-04-26T12:02:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 509 | py | #! /usr/bin/env python3
import argparse
parser = argparse.ArgumentParser(description='Process some integers.')
parser.add_argument('integers', metavar='N', type=int, nargs='+',
help='an integer for the accumulator')
parser.add_argument('--sum', dest='accumulate', action='store_const',
... | [
"G00375321@gmit.ie"
] | G00375321@gmit.ie |
bacb1da7545cd9eba476314710d4b271f50af7c7 | 600283415a6a403b0a12ee8b5b4a3ff5d6aa757a | /templates-demo/venv/bin/pip3 | 50b5431b3c65b767022c0bb2a67f39c43c6248ba | [] | no_license | pixb/flask-demo | 0f2ef9a8bc6315c92e0aec6cac0acfdcf7bc8f03 | a40686eb25df0ca6379bc409ba34ef0425a863f8 | refs/heads/master | 2023-07-25T06:35:08.364038 | 2023-07-11T16:09:49 | 2023-07-11T16:09:49 | 336,691,847 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 423 | #!/home/pix/dev/code/python/python-web-demo/templates-demo/venv/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==19.0.3','console_scripts','pip3'
__requires__ = 'pip==19.0.3'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '',... | [
"tpxsky@163.com"
] | tpxsky@163.com | |
3569bae34c6ebb2d314ee29375d5d6602fba78b4 | 1701ce0ba5e66241e4d96342fb79dad140e555dc | /server.py | 6adfbc3de60824276680f0cb9ac2cf6d90a1cbe1 | [] | no_license | mgori-kenya/intro-to-git | b4d69c69cb8303507711f25797a61d6eabf24576 | 1d4d9023e09229d0bf23f57178e69655710a0c98 | refs/heads/master | 2021-02-23T19:25:56.823474 | 2020-03-06T12:03:45 | 2020-03-06T12:03:45 | 245,408,407 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 32 | py | print("Github tech is awesome")
| [
"mathew.gori@gmail.com"
] | mathew.gori@gmail.com |
a3cc6539d5c6dfd4be2b104e78302f2389a7ebfe | 7cb94b34f697dda9e4453f5522bace040b4e4a05 | /code/emily.py | 503222f38178544aac1934150b6dfe6cd68b5af4 | [] | no_license | emhann/stereopsis | 42078fd57a890afbb23e3461da34d458f7798d99 | 2e25a1d117d123a39490636ab2f3067dc89f288e | refs/heads/master | 2021-01-12T11:30:57.347690 | 2016-11-06T16:26:58 | 2016-11-06T16:26:58 | 72,945,260 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,611 | py | #just some testing stuff
import numpy
from PIL import Image
from mayavi import mlab
from scipy import misc
import cv2
import numpy as np
#cube = misc.imread('../images/left1.JPG')
#misc.imsave('test.png', cube)
#type(cube)
#cube.shape, cube.dtype
#from skimage.feature import corner_harris, corner_subpix, corner_peaks... | [
"emhann@buffalo.edu"
] | emhann@buffalo.edu |
35e39ec4fb59e90eec6f1c73b073a7cbfd839f6e | fe5f86faaec82f7f7706623d7c309a8d0820e387 | /nickedude-java/Day_23/Day_23_2.py | 5ba6b5c60044a230fd7c20c248e40d84400f8bb2 | [] | no_license | Dyr-El/advent_of_code_2017 | 01dac99cff9339d92360e89882aa5f1081e11c4f | 6f09b1c15cc1070a4b3cca951dcb50b33ee5361b | refs/heads/master | 2021-12-24T05:23:19.892898 | 2021-12-22T21:19:33 | 2021-12-22T21:19:33 | 112,791,062 | 1 | 0 | null | 2018-11-13T08:04:23 | 2017-12-01T22:00:31 | C++ | UTF-8 | Python | false | false | 709 | py | b = 57
b = b * 100
b = b - (-100000)
c = b
c = c - (-17000)
f = 0
e = 0
h = 0
d = 0
print(b)
print(c)
while True:
f = 1
d = 2
while True:
e = 2
while True:
g = d
g = g * e
g = g - b
if(g == 0):
f = 0
break
... | [
"niklas.erik.gustafson@gmail.com"
] | niklas.erik.gustafson@gmail.com |
8dcadf9cb0ccc7446858d1968eaa910bab2fd914 | b77fdaaffacc3d1b038a14b9b5710e250a37e8ed | /multirunner/runner.py | c59688d27c406ecbb47c03b2547831e00540b98a | [
"MIT"
] | permissive | cfeenstra67/multirunner | 689a98975ce2acf670981044e4f0ebab84177605 | 7a6ab6f10a4b1d190033d81886f643042c69e1e6 | refs/heads/master | 2020-03-22T14:36:38.923160 | 2018-07-14T21:30:48 | 2018-07-14T21:30:48 | 140,192,106 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,633 | py | from contextlib import contextmanager
from itertools import chain
import json
import logging
import os
import select
from .settings import (
RUNNER_COMMANDS, DEFAULT_MEMORY, DEFAULT_CPU,
ALWAYS_RAISE, RUNNER_HANDLERS, ANALYTICS_ENABLED
)
import signal
import subprocess
import sys
import threading
import time
import t... | [
"cameron.l.feenstra@gmail.com"
] | cameron.l.feenstra@gmail.com |
b2a188f7f610cf761151ec7b3382ab71ee475b77 | 98c6ea9c884152e8340605a706efefbea6170be5 | /examples/data/Assignment_5/byrtre001/question1.py | 6de3673699da383ae564bde3010d5be128888984 | [] | no_license | MrHamdulay/csc3-capstone | 479d659e1dcd28040e83ebd9e3374d0ccc0c6817 | 6f0fa0fa1555ceb1b0fb33f25e9694e68b6a53d2 | refs/heads/master | 2021-03-12T21:55:57.781339 | 2014-09-22T02:22:22 | 2014-09-22T02:22:22 | 22,372,174 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,204 | py | """program to simulate a simple BBS with one stored message and 2 fixed file
Trevor Byaruhanga
15 april 2014"""
# stored message.
a=('Welcome to UCT BBS'+'\n'+
'MENU'+'\n'+
'(E)nter a message'+'\n'+
'(V)iew message'+'\n'+
'(L)ist files'+'\n'+
'(D)isplay file'+'\n'+
'e(X)it')
print(a)
# input question pr... | [
"jarr2000@gmail.com"
] | jarr2000@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.