blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 213
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 246
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
14202107145a13a0fa75ccb3e8d7190f116eab9f | bd52b885516589cfb5b3bf79cbf684e435d04141 | /presentation/imgsrc/images.py | 6ebac28eed22a77cf6e5188829da9e6d9f538bae | [
"CC-BY-4.0"
] | permissive | gertingold/feynman-intro | 6ce0aaca3d57858588977ef3f7f74d8ac1734a92 | d5132df951f67ec989f18dc014940e4a47924fd6 | refs/heads/master | 2023-07-20T02:20:28.676554 | 2019-08-25T20:55:17 | 2019-08-25T20:55:17 | 200,374,019 | 6 | 0 | NOASSERTION | 2023-07-06T21:42:06 | 2019-08-03T12:38:56 | TeX | UTF-8 | Python | false | false | 1,750 | py | from pyx import canvas, color, deco, path, style, text, unit
boxwidth = 3
height = 4
qi = 0.2*boxwidth
qf = 0.7*boxwidth
linecolor1 = color.rgb(0.8, 0, 0)
linecolor2 = color.rgb(0, 0, 0.8)
text.set(engine=text.LatexEngine)
text.preamble(r'''\usepackage[sfdefault,scaled=.85]{FiraSans}
\usepackage{new... | [
"gert.ingold@physik.uni-augsburg.de"
] | gert.ingold@physik.uni-augsburg.de |
6bf08a5eeb7496d01194cd95a6a6b984dc689343 | 129afd7e69b9105c1a80e1b51d73c2cd6a582025 | /uniquewords.py | 608c31e0a5f742fc028ced615d40e264c86d878a | [] | no_license | sailskisurf23/sidepeices | 736d977e7194843827e8cf6b0a9402fbe63ea580 | 582d40b761d7c6e215a3b27e6fb1665fce492948 | refs/heads/master | 2021-09-25T10:09:40.864109 | 2018-10-20T19:02:01 | 2018-10-20T19:02:01 | 101,957,825 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 184 | py | #userinput = "enter comma-seperated list of words: "
userinput = 'hello, there, how, are, you, hello, you'
set1 = set([x.strip() for x in userinput.split(',')])
print(", ".join(set1))
| [
"colinbrochard@Colins-Air.attlocal.net"
] | colinbrochard@Colins-Air.attlocal.net |
986cfd2a0e57ba7345c23320f792cfa5cd7efc76 | 1959ac24c8be1c7f42e51dc4fb74b1fc1d4cf754 | /news/nav_processor.py | ce102aed7f4eead8536cb944c0b79f3de0627831 | [] | no_license | nanerleee/minicms | 7123882aedf500bbc3fe055987814d74d7543dcd | ae941da82fb5b7ecf69c0e3ccc9736111503e69b | refs/heads/master | 2021-01-12T07:48:44.080577 | 2016-12-21T06:46:33 | 2016-12-21T06:46:33 | 77,024,429 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 176 | py | from .models import Column
nav_display_columns = Column.objects.filter(nav_display=True)
def nav_column(request):
return {'nav_display_columns': nav_display_columns}
| [
"nan987@qq.com"
] | nan987@qq.com |
74eecca1ef7048bcade095ea953f638485e935bf | 997aac631c5d3442077c755b26cc948a3860dd1a | /vertex_cover_approximation/2_lognapprox.py | 0fb9366e265059aa4fe719fbe72c1f0148ed1528 | [] | no_license | arkadiuss/algorithms_for_computationally_hard_problems | 7657fdbba621a3f21fe9a3f856a2cc12e5b0222e | b15bb03cb3f2a32298177423b60a4fa3370d12bb | refs/heads/master | 2022-11-11T19:53:37.746769 | 2020-07-02T22:43:16 | 2020-07-02T22:43:16 | 249,685,654 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,360 | py | import sys
from dimacs import *
from itertools import combinations
def remove_edge(G, S):
Gc = G.copy()
for i in range(0, len(G)):
Gc[i] = G[i].copy() - S
for s in S:
Gc[s] = set()
return Gc
def find_one(G):
for i in range(1, len(G)):
if len(G[i])==1:
return lis... | [
"arkadius.kraus@gmail.com"
] | arkadius.kraus@gmail.com |
8b672339668cec234c5434af9ba27be18894617a | ae74a7d1ef50f27cad108915d2879e01217934d4 | /01-QT/06-Dialog/InputDialog.py | 81afd8203dd0c98684bd8887c15158b2f83ec1b3 | [] | no_license | dyyzqz1015/python_learn | 0f9a585b782018559d8cb8a35f7b0bd1fc21a8ff | 62ee8c49e1e551d9d6bb881c553e8602f3a2c054 | refs/heads/master | 2021-06-10T18:50:36.761950 | 2019-12-11T08:40:14 | 2019-12-11T08:40:14 | 135,088,754 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,073 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Project : 01-QT
# @Time : 2018/5/26 17:12
# @Author : QinZai
# @File : InputDialog.py
# @Software: PyCharm
from PyQt5.QtWidgets import (QWidget, QPushButton, QLineEdit,
QInputDialog, QApplication)
import sys
class Examp... | [
"noreply@github.com"
] | dyyzqz1015.noreply@github.com |
7caaba5f6d3bc82752e4d751b5c5e178037ab7f7 | 74951991a9e1dbe92d4999da9060409a9492bdc3 | /palindrome-number/palindrome-number.py | 3155e839eb464780b9d419ca27c1b6a61a2bf6d4 | [] | no_license | drpuig/Leetcode-1 | fd800ee2f13c7ce03fa57c8a1d10b3aa6976d7c0 | 4ee104f3069c380e1756dd65f6ff6004554e6c0e | refs/heads/main | 2023-07-15T08:57:32.971194 | 2021-08-21T08:29:24 | 2021-08-21T08:29:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 245 | py | class Solution:
def isPalindrome(self, num: int) -> bool:
if num < 0: return False
r, x = 0, num
while x > 0:
r = r * 10 + x % 10
x //= 10
return r == num
| [
"32110646+trungnguyencs@users.noreply.github.com"
] | 32110646+trungnguyencs@users.noreply.github.com |
85bb81e5e17872fc46fd3611bd88d10b73e77db0 | 297d426d5519c669b210e82d4aff479a51949e52 | /routines/flat_frames.py | 9cb1d822913380b9855f37540a8e5a5c7d5178d6 | [] | no_license | PulkitMalhotra15/Lunar-Eclipse-Analysis | 4722d6779bad00f107a553dccd4335051dde570b | d07f6b36eec79fea1f10e3129d8c6b72bc669521 | refs/heads/master | 2020-08-21T22:27:14.922373 | 2019-10-19T21:09:11 | 2019-10-19T21:09:11 | 216,261,023 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 829 | py | #!/usr/bin/env python2
# -*- coding: utf-8 -*-
"""
Created on Tue Jul 31 11:23:59 2018
@author: sid
"""
import numpy as np
import astropy.io.fits as fit
import glob
wdir = '/home/atom/2018_07_27 TLE Jaisalmer/2018_07_28 TLE Jaisalmer/dark frames/'
lists = [[],[],[],[]]
lists[0] += glob.glob(wdir+'flat_bl*.fit')
li... | [
"noreply@github.com"
] | PulkitMalhotra15.noreply@github.com |
adb83d2082bc73049549cba58dc5fc6e9f3f0997 | 29afb48dd73bfd988864218aa5bf9e0acf219d0f | /src/sandBox/analysisFunctionDevelopment/SpikeCountCode.py | 55d8adcd4b7d37e65b257bf09c223e73c23bb0f6 | [] | no_license | alx5246/srnnetTraining | b18623ae2b2bc80476dc273af615ba7d784443d4 | 416a0f7f30ac55b094120abef370c7c4c166fdc8 | refs/heads/master | 2022-11-04T14:42:50.082172 | 2016-11-19T20:07:02 | 2016-11-19T20:07:02 | 59,118,134 | 1 | 1 | null | 2022-10-12T10:10:49 | 2016-05-18T13:29:42 | Python | UTF-8 | Python | false | false | 4,842 | py | # S. Pickard
# June 2016
# (Using python 3.4.4, and brian2 2.0rc)
#
# DESCRIPTION
# Function/method that produces an output vector of averaged spike counts across neurons per time step
# This analysis was inspired by Lazar et al.(2009) Figure 5.b
# Goal is to find how many spike occur in each sub time interval
i... | [
"shanelpickard@gmail.com"
] | shanelpickard@gmail.com |
bc3f8deb23057022860cae89ea139e479b4f287f | ece92e753aa944e38c3b8a94ddee8d87856a2696 | /p018.py | a6a9b9c788e3dafe8e5a32811cd817ab83e163e2 | [] | no_license | hugowxyz/proj-euler-python | c0ef6ba224e27f101a23a0b4e139aeb138adbd5c | b6f98dbb5f508372f1c43c4a2722825f46171dca | refs/heads/master | 2023-02-06T02:49:06.305509 | 2020-12-19T16:22:11 | 2020-12-19T16:22:11 | 312,874,821 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 884 | py | triangle = """75
95 64
17 47 82
18 35 87 10
20 04 82 47 65
19 01 23 75 03 34
88 02 77 73 07 63 67
99 65 04 28 06 16 70 92
41 41 26 56 83 40 80 70 33
41 48 72 33 47 32 37 16 94 29
53 71 44 65 25 43 91 52 97 51 14
70 11 33 28 77 73 17 78 39 68 17 57
91 71 52 38 17 14 91 43 58 50 27 29 48
63 66 04 68 89 53 67... | [
"phanhuyhugo@gmail.com"
] | phanhuyhugo@gmail.com |
7eb9e41beacc32274f19363e57b7522cb3378335 | a59d1faced9fe7348ca7143d2a8643e0ebad2132 | /pyvisdk/do/invalid_profile_reference_host.py | 8adf31269e62041bb94e93f6a596abce09a3a869 | [
"MIT"
] | permissive | Infinidat/pyvisdk | c55d0e363131a8f35d2b0e6faa3294c191dba964 | f2f4e5f50da16f659ccc1d84b6a00f397fa997f8 | refs/heads/master | 2023-05-27T08:19:12.439645 | 2014-07-20T11:49:16 | 2014-07-20T11:49:16 | 4,072,898 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,295 | py |
import logging
from pyvisdk.exceptions import InvalidArgumentError
########################################
# Automatically generated, do not edit.
########################################
log = logging.getLogger(__name__)
def InvalidProfileReferenceHost(vim, *args, **kwargs):
'''A InvalidProfileReferenceHost f... | [
"guy@rzn.co.il"
] | guy@rzn.co.il |
14ee1cfd9991911f379fd0efca9e20b82d78db54 | 65e3bd4e1f155402c1a00198dacde4ee8668dd51 | /networks/cvaegan_conv.py | 1978466ff79211f8132c104fba720a598dcd453f | [] | no_license | shijy07/deep-learning-project | b3bc1c80d0f1f967f7155e468e105d4836146599 | 27f1ce6deaa3ed0ac2ac869bdde6a8f05dffa0df | refs/heads/master | 2020-04-09T06:10:21.064728 | 2016-12-15T01:19:17 | 2016-12-15T01:19:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,646 | py | import numpy as np
import tensorflow as tf
# from ops import *
slim = tf.contrib.slim
class Encoder:
def __init__(self, hidden_dim = 100):
self.hidden_dim = hidden_dim
def __call__(self, x, y, z_dim, batch_size=100, x_width=28):
"""
The probabilistic encoder which computes the mean and... | [
"billyluefang@gmail.com"
] | billyluefang@gmail.com |
a6b04f1468e584f07faee05a9f0038e74e17f645 | e527efa21057bdab7aff6a6b8c753171e75c6bfe | /quetzalcoatl/settings/celery/prod.py | b940474cf5d70d73314d43a75ecee8d4c48b1ffa | [
"WTFPL"
] | permissive | dem4ply/quetzalcoatl | cb49d6cbf0260ebdb127f6d95d39d299684291c6 | f9f72dc72f0da4f264c33128dc01b79f9fda5f2a | refs/heads/master | 2022-01-10T14:37:08.985767 | 2020-03-14T07:47:27 | 2020-03-14T07:47:27 | 235,905,684 | 0 | 0 | WTFPL | 2021-09-22T18:28:28 | 2020-01-23T23:19:15 | Python | UTF-8 | Python | false | false | 1,131 | py | import os
# from kombu import Exchange, Queue
# from celery.schedules import crontab
# from datetime import timedelta
url_key = os.environ[ 'QUETZALCOATL__RABBITMQ__KEY__URL' ]
celery_url = os.environ[ url_key ]
BROKER_URL = celery_url
RESULT_BACKEND = celery_url
CELERY_RESULT_BACKEND = celery_url
'''
task_annota... | [
"dem4ply@gmail.com"
] | dem4ply@gmail.com |
498b161763e04089ca2bc69b627c2c265422a62b | e23b28fc3ed196866a04af4e790c1c16b1b5183e | /django/portfolio/apps/portfolio_app/urls.py | 73a949e99ec0e9b82a53e892a13c8fb1443a2aa5 | [] | no_license | diazmc/Python | 6f47e7fcfb8c263eb154d59a5a9b3866e2c9d6a8 | 89e3d54eeb2b0ed7dc7af24103ace6fb6e45d65e | refs/heads/master | 2021-01-20T01:18:23.954877 | 2017-08-24T10:39:19 | 2017-08-24T10:39:19 | 101,283,627 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 146 | py | from django.conf.urls import url
from . import views
urlpatterns = [
url(r'^$', views.index),
url(r'^testimonials$', views.testimonial)
]
| [
"mc.arthur_d@hotmail.com"
] | mc.arthur_d@hotmail.com |
41aab887f5b4c35a78397323e316aa412cbfc975 | da934e0010380fdc6894063540f61b0ebc2c9ded | /vendor/lockfile/lockfile/linklockfile.py | f8aeaefcfc16578a51a1d2fb4c86a762e01c4047 | [
"Apache-2.0",
"MIT"
] | permissive | bopopescu/cc-2 | ed4f1dfe3c98f476ff619058d99855a16272d36b | 37444fb16b36743c439b0d6c3cac2347e0cc0a94 | refs/heads/master | 2022-11-23T03:57:12.255817 | 2014-10-02T06:10:46 | 2014-10-02T06:10:46 | 282,512,589 | 0 | 0 | Apache-2.0 | 2020-07-25T19:36:05 | 2020-07-25T19:36:05 | null | UTF-8 | Python | false | false | 2,419 | py | from __future__ import absolute_import
import time
import os
from . import (LockBase, LockFailed, NotLocked, NotMyLock, LockTimeout,
AlreadyLocked)
class LinkLockFile(LockBase):
"""Lock access to a file using atomic property of link(2).
>>> lock = LinkLockFile('somefile')
>>> lock = LinkL... | [
"anotherjesse@gmail.com"
] | anotherjesse@gmail.com |
1ff6570048b201ffe5b06a087dde354ba9152ec6 | 8b46615f2c9148a45bd6969f91070baa759ff6af | /books/admin.py | 91e75c32d724807d78cf2518ff26e3a7e023f0f6 | [
"MIT"
] | permissive | jamesbond007dj/blog-api2 | 59d52b2138bc04e365ad06a00aae94dc98f82946 | b4e1170f448c27528c48c955fde5998304e239d9 | refs/heads/master | 2022-05-31T19:41:05.867332 | 2020-01-24T01:37:52 | 2020-01-24T01:37:52 | 235,566,438 | 1 | 0 | MIT | 2022-05-25T03:56:24 | 2020-01-22T12:13:59 | Python | UTF-8 | Python | false | false | 87 | py | from django.contrib import admin
from .models import Books
admin.site.register(Books)
| [
"ilkerzaimoglu@gmail.com"
] | ilkerzaimoglu@gmail.com |
1bcb62c73a7864c830cfa531b0bf446869c0fc9e | 867cf8bec4365efd0d26729220dc84181792a35b | /snickerdoodle/lib/facebook/chat.py | 5656ab353f1a0579433c0411a8f1c944a368068e | [] | no_license | zach-taylor/snickerdoodle | 40ff50b908b54e867741a5c74889be2be1f24c07 | 03ae87cffa5e18c8d0100a3d7ac249ab3582cdea | refs/heads/master | 2016-09-11T08:10:12.200233 | 2014-05-01T23:11:17 | 2014-05-01T23:11:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,405 | py | import sys
import logging
import threading
import sleekxmpp
if sys.version_info < (3, 0):
from sleekxmpp.util.misc_ops import setdefaultencoding
setdefaultencoding('utf8')
#
# Debug Level:
# CRITICAL
# ERROR
# WARNING
# INFO
# DEBUG
# NOTSET
LOG_LEVEL = logging.WARNING
FACEBOOK_SERVER = ('chat.fa... | [
"josh@joshldavis.com"
] | josh@joshldavis.com |
54320cc144accbbc19a2366c523173264961565a | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02922/s040859855.py | c93462013926489db291dd42664757224e2579ba | [] | 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 | 245 | py | import sys
import math
from collections import deque
def input():
return sys.stdin.readline().rstrip()
def main():
A, B = map(int, input().split())
a = math.ceil((B-1)/(A-1))
print(a)
if __name__ == "__main__":
main()
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
06759d38b9ed7938096cb3cc98d884003725ef74 | 9febc42ff885c49d657fbc5c5f03de231b080431 | /pymoo/cpp/hypervolume/setup.py | 331cd97de2d43c5d77ee8a1cf29f5370f4992628 | [
"MIT"
] | permissive | yashvesikar/pymoo | 06a6bec9dc55610d150c77700d7c93ea63ed7643 | 8ce725671d95df580654568fa9bc0e53268aff5d | refs/heads/master | 2020-03-18T22:35:59.638447 | 2018-06-20T17:18:06 | 2018-06-20T17:18:06 | 135,353,905 | 0 | 0 | MIT | 2018-05-29T21:16:52 | 2018-05-29T21:16:52 | null | UTF-8 | Python | false | false | 2,743 | py | import os
import re
import sys
import platform
import subprocess
from setuptools import setup, Extension
from setuptools.command.build_ext import build_ext
from distutils.version import LooseVersion
class CMakeExtension(Extension):
def __init__(self, name, sourcedir=''):
Extension.__init__(self, name, so... | [
"yashvesikar@gmail.com"
] | yashvesikar@gmail.com |
77f7b6ff72973d6db987794ba6c47a95707cc074 | 16a6a0f6088cedea0433743610cf2b13fde3fe46 | /sortedLLtoBST.py | 079447d0812bd01ad52e9e5dec5089ec9bbde1b3 | [] | no_license | VineeshaKasam/Leetcode | e05b57f3d6215f076e6343851b30af539a45b7b5 | 2b70b0a514e51b092daf4aecd86a932cd8d8dabe | refs/heads/master | 2020-03-22T20:14:32.703751 | 2018-11-14T06:53:26 | 2018-11-14T06:53:26 | 140,584,283 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,088 | py | '''
Given a singly linked list where elements are sorted in ascending order, convert it to a height balanced BST.
For this problem, a height-balanced binary tree is defined as a binary tree in which the depth of the two subtrees of
every node never differ by more than 1.
'''
# Definition for singly-linked list.
class... | [
"vkasam@asu.edu"
] | vkasam@asu.edu |
1f8a19985062cc813d27a33bf128600b4da304ef | b5caf842bec794b95c6d8cd2c44437a91943cf67 | /GameClasses/Player.py | 9ad8d39c59a415fb9ad9089dc368b02fbb689937 | [] | no_license | Holthuizen/Final-Project | ade5c50d8f3a1dc935f76eac557577e1f0dfec42 | 150b5b0a1f3efb42c6ca78733ac8033610f90730 | refs/heads/main | 2023-02-13T04:19:09.786406 | 2021-01-25T17:13:21 | 2021-01-25T17:13:21 | 331,402,132 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,037 | py | import random
#player
class Player:
def __init__(self,id,is_player):
self.canmove = False;
self.id = id;
self.hand = []
self.is_player = is_player
def pick_cards(self,deck):
#return [(8,0),(8,1),(8,2)]
for i in range(3):
random.shuffle(deck)
... | [
"45522614+Holthuizen@users.noreply.github.com"
] | 45522614+Holthuizen@users.noreply.github.com |
47e730aa8714ba1f0019d356f40e5f2765ec0b97 | 1ea0e2b4f064ba0de45a73c527ee89a36771e8fc | /tests/network/test_thing.py | a2add8475e00ce4592fce819a3454561158e1a66 | [
"BSD-2-Clause"
] | permissive | atlassian/sentry | 6775e59c317f20f96982e91c2b3c88c02ecbb56b | b937615079d7b24dc225a83b99b1b65da932fc66 | refs/heads/master | 2023-08-27T15:45:47.699173 | 2017-09-18T22:14:55 | 2017-09-18T22:14:55 | 103,999,066 | 1 | 5 | BSD-3-Clause | 2023-04-01T07:49:37 | 2017-09-18T22:38:18 | Python | UTF-8 | Python | false | false | 250 | py | from __future__ import absolute_import
from sentry.constants import INTEGRATION_ID_TO_PLATFORM_DATA
from sentry.testutils import TestCase
class ThingTest(TestCase):
def test_thing(self):
assert len(INTEGRATION_ID_TO_PLATFORM_DATA) > 0
| [
"ehfeng@users.noreply.github.com"
] | ehfeng@users.noreply.github.com |
799bce63cfda70f9ffcd943ab5ca1d08e854a9e0 | 3d59cb4aba11ba06d466de5b3294e26b5c2c06df | /lib/battle/atomic_tasks.py | 02fe5cd5cce235e11fa87c9e3206e2ce23092698 | [] | no_license | tsx1453/FGO_AutoScript | 1a38881ab148cd0ff878a6374cb2d44e9b7da8d9 | a469142dd2a30a5aa86fd8a0296e560e828cf246 | refs/heads/master | 2023-04-03T14:01:16.447575 | 2021-04-15T09:13:45 | 2021-04-15T09:13:45 | 332,457,565 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,689 | py | import random
import time
import numpy
import lib.battle.global_status as global_status
import lib.battle.interfaces as interfaces
from lib.base import cv_util, logger, resources, ui_util
def wait_for(template, step=3, threshold=0.9, max_count=5, extra_resources=None):
if extra_resources is None:
extra_r... | [
"1453918362@qq.com"
] | 1453918362@qq.com |
ad3c565c18ba4ee178c358eeda393a0b5f706bbd | 7df5cd1ba6296913a8bcb0650573dd28cfa66e93 | /emtennis/events/migrations/0004_auto_20190812_1555.py | 00cd2eaad9b997a82079bc6b667fda45f4007d07 | [] | no_license | Seiph59/EM_Tennis_P13 | 95da990962cfd290ec109ec0c77a0541b83d5927 | 889054b749d5f4403cd1282eb3972bacdc64d9e3 | refs/heads/master | 2023-04-28T01:16:33.496653 | 2021-06-07T19:23:22 | 2021-06-07T19:23:22 | 196,996,991 | 0 | 0 | null | 2023-04-21T20:36:31 | 2019-07-15T12:44:42 | JavaScript | UTF-8 | Python | false | false | 378 | py | # Generated by Django 2.2.3 on 2019-08-12 13:55
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('events', '0003_registration_registered'),
]
operations = [
migrations.RenameField(
model_name='registration',
old_name='amou... | [
"chimere_62@hotmail.fr"
] | chimere_62@hotmail.fr |
8ab0a708d2affc01c58ab81049ab025d4170ea28 | b2eeda79302d04e1391ffb40fdd83de53f6b54ef | /app/core/tests/test_admin.py | d6be5a1dee56e35f6c79c2c5dd801dd406eb4d04 | [
"MIT"
] | permissive | Memo2704/recipe-app-api | 7c7286140ab17d5cf83d93216ffb74de9a3b19c2 | 91b441065547991a8027cbe1496aaf5795d56a49 | refs/heads/main | 2023-05-04T08:19:07.306969 | 2021-05-24T16:56:11 | 2021-05-24T16:56:11 | 334,730,964 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,302 | py | from django.test import TestCase, Client
from django.contrib.auth import get_user_model
from django.urls import reverse
class AdminSiteTests(TestCase):
def setUp(self):
self.client = Client()
self.admin_user = get_user_model().objects.create_superuser(
email='admin@blabla.com',
... | [
"tralakat@gmail.com"
] | tralakat@gmail.com |
1d7fcddad197b9c1e5b50b8573b0b569e645370a | 35a1593fbd15c8ef1a20971055774a1cdcd41bce | /test/test_rpc_fork.py | 5e2432f60183e5c5213ef1772931d6b7939ae669 | [
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"Apache-2.0",
"BSD-2-Clause"
] | permissive | sahils2607/pytorch | 884a2da2a613b525522a1615c8c5ecef013e4fb1 | 16454095e09eab2e737d99ad569cd44bb7910f03 | refs/heads/master | 2020-08-07T15:13:53.319183 | 2019-10-07T21:22:42 | 2019-10-07T21:24:34 | 213,499,886 | 1 | 0 | NOASSERTION | 2019-10-07T22:39:43 | 2019-10-07T22:39:43 | null | UTF-8 | Python | false | false | 421 | py | #!/usr/bin/env python3
from __future__ import absolute_import, division, print_function, unicode_literals
from rpc_test import RpcTest
from common_distributed import MultiProcessTestCase
from common_utils import run_tests
class RpcTestWithFork(MultiProcessTestCase, RpcTest):
def setUp(self):
super(RpcTe... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
e6b0e6837166020928a9bfbdf5bc302fa4f86ad8 | 7dfa21d74dae975082c6d5deaa01248bac1dcc26 | /.circleci/cimodel/data/pytorch_build_data.py | 09476a970b40045f3d53a7de2f01f11f71d683ae | [
"BSD-3-Clause",
"BSD-2-Clause",
"LicenseRef-scancode-generic-cla",
"Apache-2.0"
] | permissive | mruberry/pytorch | 88cf536ed58d20a409c1e5119be4ec04ec960082 | 19f73180cfb39eb67110d2a1d541975a49211453 | refs/heads/master | 2022-02-03T16:25:31.070089 | 2019-04-22T17:52:28 | 2019-04-22T17:58:15 | 130,132,886 | 4 | 1 | NOASSERTION | 2020-01-16T16:51:39 | 2018-04-18T23:24:38 | C++ | UTF-8 | Python | false | false | 3,956 | py | #!/usr/bin/env python3
from cimodel.lib.conf_tree import ConfigNode, X
CONFIG_TREE_DATA = [
("trusty", [
(None, [
X("2.7.9"),
X("2.7"),
X("3.5"),
X("nightly"),
]),
("gcc", [
("4.8", [X("3.6")]),
("5.4", [("3.6", [X(Fa... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
f6a87a9dedd704b40464a5040ddb2d851e703ba9 | a9b31181ad6f695a2809018167a52a6d9847c0df | /Chap05-funcoes-frutiferas/compara.py | 2de8e1459dc0075b09a80469e8aaee81d6d62fa9 | [] | no_license | frclasso/Aprendendo_computacao_com_Python | 21cdecdebcdbafad35a48d8425d06e4ec2ba1259 | 40276f396c90d25b301e15e855942a607efd895b | refs/heads/master | 2020-03-12T17:38:04.886153 | 2018-10-11T14:17:13 | 2018-10-11T14:17:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 197 | py | #!/usr/bin/env python3
def compara(x, y):
if x > y:
return 1
elif x == y:
return 0
else:
return -1
print(compara(1,2))
print(compara(3,2))
print(compara(3,3)) | [
"frclasso@yahoo.com.br"
] | frclasso@yahoo.com.br |
71a19a2d5851014c3bdebeb7b4bfc8a4ffcfaabe | 4dca1f7e50ae154a7288cd44c2edfb81063f9eea | /model/utility.py | 66d6008d8035c46920e505f010996326049560f8 | [] | no_license | Cloudxtreme/management_bind9 | 3c789a0ed6d9ef15da32afaccec6a877c093a7a8 | 82fbc9daaf9ca5ed97997cc9f87099e7a9e9d830 | refs/heads/master | 2021-05-27T04:05:41.237871 | 2014-03-14T12:35:26 | 2014-03-14T12:35:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,230 | py | #!/usr/bin/python
#-*-coding:utf-8-*-
#- utility Bind Class
#- AdminServer / System Management Server
#- Copyright (C) 2014 GoldraK & Interhack
# 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 Free Software Foundation, e... | [
"interhack@gmail.com"
] | interhack@gmail.com |
6a70ffe6deffc058b41ac39a1960e5593ee32b95 | 4c53e5174f7a71a00d94c7f91efbbd5cfd7df385 | /aw_names.py | 69c725c3575f91892efe7da83b7f556043f55363 | [] | no_license | peileppe/Apocalypse | 86206804f120032e0dba4bb225b4beba59f604b1 | 04714e44ab688cba73cb25f14af2b6f4038b9d8f | refs/heads/master | 2022-02-07T02:33:20.493973 | 2019-06-24T12:26:25 | 2019-06-24T12:26:25 | 114,765,037 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 6,068 | py | #!/usr/bin/python
# namelist.py
# ===================================================================
import random
names=['Abel', 'Abeline', 'Absinthe', 'Ace', 'Admiz', 'Akountan', 'Alabaster', 'Ambass', 'Amber', 'Ape', 'Applejack', 'Arizona', 'Arrow', 'Avenger', 'Azure', 'Baaba', 'Baiv', 'Banjo', 'Barbarian', 'Bazo... | [
"peileppeproduction@gmail.com"
] | peileppeproduction@gmail.com |
c451c1854b8bfd9dc2aa1c81ff03ee27356279ce | 7822e004b9697e451a9345589a411133ca12d74e | /scripts/createGradientImage.py | 54fb723a814d6d173509a46a8a6458d07aa24bec | [] | no_license | tomwright01/SLOAntsRegistration | 0e6335feff3f97e59728fdca0f174165df582f4a | 5ff0eb100d40604feae62500c5b8e6cd07c00017 | refs/heads/master | 2021-01-04T14:14:11.212043 | 2014-12-09T20:39:12 | 2014-12-09T20:39:12 | 26,826,192 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 621 | py | import subprocess
import logging
import os
def main(dims,outputName,inputName,Sigma,antsPath):
"""Use the ANTs ImageMath to create a gradient image"""
imPath = os.path.join(antsPath,'ImageMath')
cmd = '{0} {1} {2} Grad {3} {4}'.format(imPath,dims,outputName,inputName,Sigma)
logging.info('Creating Gradi... | [
"tom@maladmin.com"
] | tom@maladmin.com |
8266ad2518e69a29b2cf165e690045bfa65ee2c4 | 343ab5dde66ab0314acdc339c08973e62283631c | /accounts/migrations/0006_auto_20200523_1655.py | f17986d7b6f890f687623a26572c9ee9aa04b13f | [] | no_license | pdolawat654/Hospital_Management | 45e400a9376aa3302ca500d20910859429417c5b | e9ee6fe9c6f6a659f69f0a70aaef875c73a8baf7 | refs/heads/master | 2022-10-18T19:08:37.741706 | 2020-06-12T12:35:42 | 2020-06-12T12:35:42 | 271,786,980 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 397 | py | # Generated by Django 3.0.5 on 2020-05-23 11:25
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('accounts', '0005_auto_20200523_1655'),
]
operations = [
migrations.AlterField(
model_name='doctor',
name='verify',
... | [
"36255701+pdolawat654@users.noreply.github.com"
] | 36255701+pdolawat654@users.noreply.github.com |
794b89eb787626fad6961b510e3b80ab272f873e | be5ed8f7efb9cb0856ad1246e26991a47e683916 | /np-learn/xiaoyu.py | 880398b097b3d0a0987fb492435b8a23ecea6c7d | [] | no_license | qbmzc/numpy-pandas | c74dedead9e680b5e12cd71d4bfb4d5cff5a9faf | 114bd4ddb8388878a5c246d20aaddc9aa2991842 | refs/heads/master | 2021-08-10T16:59:35.418229 | 2021-06-28T14:34:08 | 2021-06-28T14:34:08 | 193,911,322 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 873 | py | import pandas as pd
import os
# excel文件的路径
excel_path = 'D://temp/xlsx/'
# csv文件保存的位置
csv_path = 'D://temp/csv/'
# 定义一个转换方法
def excel_to_csv():
# 获取所有的excel文件
files = os.listdir(excel_path)
# 遍历文件,每次获取一个进行操作
for file in files:
# 判断是文件而不是文件夹
if not os.path.isdir(file):
prin... | [
"congco@foxmail.com"
] | congco@foxmail.com |
71dafe2db4bc761973d6704dc92903b815a5d803 | df7f13ec34591fe1ce2d9aeebd5fd183e012711a | /hata/discord/channel/channel_metadata/tests/test__parse_video_quality_mode.py | 1d27462067dbc38950831d7cb97ceae62bdabb9d | [
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | HuyaneMatsu/hata | 63e2f6a2d7a7539fd8f18498852d9d3fe5c41d2e | 53f24fdb38459dc5a4fd04f11bdbfee8295b76a4 | refs/heads/master | 2023-08-20T15:58:09.343044 | 2023-08-20T13:09:03 | 2023-08-20T13:09:03 | 163,677,173 | 3 | 3 | Apache-2.0 | 2019-12-18T03:46:12 | 2018-12-31T14:59:47 | Python | UTF-8 | Python | false | false | 594 | py | import vampytest
from ..preinstanced import VideoQualityMode
from ..fields import parse_video_quality_mode
def test__parse_video_quality_mode():
"""
Tests whether ``parse_video_quality_mode`` works as intended.
"""
for input_data, expected_output in (
({}, VideoQualityMode.auto),
({'v... | [
"re.ism.tm@gmail.com"
] | re.ism.tm@gmail.com |
5501cf2b8e723b983e33f4eb719ece9c00156a65 | 87bdadf1219617b55ca257d617c5258772236e47 | /main.py | e960cee270ee89cd7d902eae0d6ca5e077433dd9 | [] | no_license | haixia-luo/Kaldi-master | 8a268824b16b80a2c83f3979f9b2baba2a057399 | 3716282d4ce716b4a51c45574edd2b3c2bcec393 | refs/heads/master | 2020-12-07T11:05:24.505516 | 2018-09-27T17:08:49 | 2018-09-27T17:08:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,839 | py | import os
import h5py
import librosa
import numpy as np
from extractors import VoiceActivityDetector
from extractors import KaldiMFCCFeatureExtraction
from extractors import KaldiXVectorExtraction
from utils import Utils
from utils import write_wav
from plda.classifier import Classifier
def wav_to_vad(wav_file, vad... | [
"we9697@mail.ru"
] | we9697@mail.ru |
3472469d1a6567b5c42751cad45681f14a096b86 | b9bc60cca34c6b4f8a750af6062f357f18dfcae2 | /tensorflow/contrib/ndlstm/python/lstm2d.py | 3907046ddad48c43fe12f40301240acae3703489 | [
"Apache-2.0"
] | permissive | lidenghui1110/tensorflow-0.12.0-fpga | 7c96753aafab5fe79d5d0c500a0bae1251a3d21b | f536d3d0b91f7f07f8e4a3978d362cd21bad832c | refs/heads/master | 2022-11-20T11:42:11.461490 | 2017-07-28T09:28:37 | 2017-07-28T09:28:37 | 98,633,565 | 3 | 2 | Apache-2.0 | 2022-11-15T05:22:07 | 2017-07-28T09:29:01 | C++ | UTF-8 | Python | false | false | 5,639 | 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 applicable ... | [
"lidenghui@hadoop67.localdomain"
] | lidenghui@hadoop67.localdomain |
ec72ba24df443da46b514225c8fff2567fd507f9 | 6167f6fe448775c3b08aafcfc69b57dd98309548 | /Python_R/machinery.py | e886c336350b4eb8b569ddfbd71df57e71af83c6 | [] | no_license | quinnie-nguyen/Productivity-Changes-of-German-Manufacturing-Firms-and-Its-Components | 390e876b488c94634833bb37d517307ff67cefd2 | 04b63474e2d08794038b398febda38132396f523 | refs/heads/master | 2022-11-20T12:41:00.103261 | 2020-07-23T23:00:32 | 2020-07-23T23:00:32 | 282,074,119 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,454 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Apr 22 16:51:36 2020
@author: DELL
"""
'''
################################## CHEMICALS #################################
chemicals_raw = preda.get_data_chem()
chem =preda.clean_datechem(chemicals_raw)
old_chem, young_chem, newborn_chem = preda.get_f_wrt_age(chem)
newborn_c... | [
"59992431+thanhquyen95@users.noreply.github.com"
] | 59992431+thanhquyen95@users.noreply.github.com |
586c1ef6d174572c3418ab7a6b3d55977d2db9c7 | fa7d56df0d8819fb0a6aa8fccae2e552459122e8 | /data_analysis/概率分布_验证型数据分析.py | e63a747487ff7bc5ab86018122c964c705227e0f | [] | no_license | yelangweiwei/blogApp | 356aca72159db1ee9aff64e47b3dc0995f5f0325 | d1afa6de7260597975074aea604878a0a68e0278 | refs/heads/master | 2021-06-19T16:47:10.286136 | 2021-02-26T07:48:20 | 2021-02-26T07:48:20 | 176,499,102 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,751 | py | import numpy as py
import pandas as pd
from scipy.stats.stats import ttest_1samp,ttest_ind
from statsmodels.stats.weightstats import ztest
def check_z():
#假设检验:
#构造平均值是175,标准差是5,样本量是100,
x = py.random.normal(175,5,100).round(1)
# print(x)
#使用Z检验pval
z,pavel =ztest(x,value=175)
#直接返回pavel,用... | [
"528150249@qq.com"
] | 528150249@qq.com |
eaad56cb2da50e99711c5cc02e7709b1053a7a15 | 485535e03eb3a612c353cec9d88d06dbb2f659bf | /leetcode/insert_bst.py | 72d930a2333f439497854b29e2e7099c006e8f44 | [] | no_license | nkchangliu/puzzles | bef8260aa436102d8ccfde3061f66aea52cb12fb | 19bbf17ab823a7f35c5b6ea365d2d72f2e76c3b9 | refs/heads/master | 2021-08-08T21:56:27.789303 | 2018-11-01T23:20:49 | 2018-11-01T23:20:49 | 133,545,891 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 382 | py | def insert_tree(root, target):
if not root:
root = TreeNode(target)
elif root.val > target:
root.left = insert_tree(root.left, target)
else:
root.right = insert_tree(root.right, target)
return root
class TreeNode:
def __init__(self, val, left=None, right=None):
self.... | [
"nkchangliu@gmail.com"
] | nkchangliu@gmail.com |
987b4b3cbc539214f6c1b21224e16479b498c98e | 4fda808f7a77ea4847b91ac98940b5b33010aa1d | /TestInvoice.py | 79ea82ca5d916ed0331a8439f1efc7167f0ce3e6 | [] | no_license | neastlan/Lab1Part3 | 77647b751d0ace1f1986f698fb5ac65e4fa282db | 019c39cebc22a5430cb891e80741c43696688b52 | refs/heads/master | 2023-03-11T19:44:08.585308 | 2021-03-02T06:22:59 | 2021-03-02T06:22:59 | 343,667,228 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 759 | py | import pytest
from Invoice import Invoice
@pytest.fixture()
def products():
products={'Pen' : {'qnt' : 10, 'unit_price' : 3.75, 'discount' : 5},
'Notebook': {'qnt' : 5, 'unit_price' : 7.5, 'discount': 10}}
return products
@pytest.fixture()
def invoice():
invoice = Invoice()
return invoic... | [
"[neastlan@uncc.edu]"
] | [neastlan@uncc.edu] |
1ca84859582be255db54107b3def0b75db02deb7 | 892dee995ffb3c25ddd0d92d5b0b9777751102ea | /shared_storage.py | 61cb3f6cd76aa444142304331aca1afdb38d3868 | [
"MIT"
] | permissive | goshawk22/muzero-general | 5a7fa73d3bdc12b5ceb97131b0ffb2c86afd3237 | 29ceb1a25c00d46456a87794de602451727a668e | refs/heads/master | 2021-11-29T08:12:57.929343 | 2021-08-11T09:03:38 | 2021-08-11T09:03:38 | 294,471,664 | 2 | 1 | MIT | 2021-01-01T14:42:03 | 2020-09-10T17:02:44 | Python | UTF-8 | Python | false | false | 1,147 | py | import copy
import os
import ray
import torch
@ray.remote
class SharedStorage:
"""
Class which run in a dedicated thread to store the network weights and some information.
"""
def __init__(self, checkpoint, config):
self.config = config
self.current_checkpoint = copy.deepcopy(checkpo... | [
"40442230+werner-duvaud@users.noreply.github.com"
] | 40442230+werner-duvaud@users.noreply.github.com |
881f1c7160691ba11837b3fefa17d2720ce659c9 | e6e8fe0854ef69faa6276c6ee5a24e5978156c56 | /idc/Test.py | 7588cc839ce946ffacd8df0b6c478c43600dadf8 | [] | no_license | prakadambi/masters-vm-2sem | 50f56269dcb56bb749a463e47cf45b3f001df18a | 8b10f49330f0175f075e46d13c7c671e86766dca | refs/heads/master | 2021-06-16T06:41:04.058957 | 2017-05-09T03:14:14 | 2017-05-09T03:14:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 983 | py | #!/usr/bin/env python3
from serial import Serial
import bitarray
import time
import sys; print(sys.version)
print('\nDemonstrating M2M communication using RS232\n')
serialPort = Serial("/dev/ttyUSB0", timeout=5)#timeout after 5 seconds
serialPort.baudrate=input("\nEnter Baud rate: ")#baud rate
serialPort.stopbits=1;#1... | [
"Prashanthi.S.K@iiitb.org"
] | Prashanthi.S.K@iiitb.org |
9fc8a582712f21900f21753e436eb4d0b17709d6 | c3115c59b35eb037cf45831ff3f3ce5ca139e376 | /tango_with_django_project/tango_with_django_project/settings.py | 9fcf7ab1cfab791df08f27bf00c704856782f72b | [] | no_license | GLunPy/rango | df2aa7d74157acb41cd3fce3445f6ac12f6b9be6 | 4699f219fa65143c01fae1aea7e71e5a64954e6a | refs/heads/master | 2021-01-02T22:58:29.318268 | 2015-08-02T15:46:56 | 2015-08-02T15:46:56 | 39,783,745 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,565 | py | """
Django settings for tango_with_django_project project.
For more information on this file, see
https://docs.djangoproject.com/en/1.7/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.7/ref/settings/
"""
# Build paths inside the project like this: os.path.join... | [
"areco.eduardo@gmail.com"
] | areco.eduardo@gmail.com |
9d2646bc3e31926b3990a17fa22fc0cf04de9f50 | f667c8f2f5585e1cd505d0b2a486e4550c12b0a6 | /venv/src/handler/SeafileHandler.py | c22ecfb62e6a11b8e1f8f7ddd95b334653fb4ac3 | [] | no_license | coderlfy/seafileapi | 5f5ed5651a68d20cfa196b5d613432c67b39d3ce | 8cbfaea99147a2c34f2fb031bc2647c661e06a5f | refs/heads/master | 2020-03-21T07:07:14.384814 | 2018-07-07T10:02:31 | 2018-07-07T10:02:31 | 138,261,552 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,442 | py | #-*- coding: utf-8 -*-
import tornado.web
import entity.Result
import bll.Seafile
import HandlerBase
class AddFile(tornado.web.RequestHandler):
def post(self):
filename = HandlerBase.HandlerBase.getparam(self, 'filename')
if filename.success:
self.write(bll.Seafile.Seafile.add(filename... | [
"13403692778@126.com"
] | 13403692778@126.com |
e941d310365b9d5743b86e3c6434440d6a26f351 | 2eb6c4a1293094b63d7a9e204bdc1ba7578b7537 | /webium/tests/test_base_page.py | e6f1dd17a6dfad47a3c72a131e81992a2e6ed768 | [
"MIT",
"LicenseRef-scancode-generic-cla",
"Apache-2.0"
] | permissive | WandyYing/vscode-remote-webium | a60124e1b5439de9bf2cbae161513e73ad21455a | c6291cc6f72cbc9b323221a0ef4bbba3134f7f60 | refs/heads/master | 2020-12-14T23:51:21.499703 | 2020-02-04T11:04:13 | 2020-02-04T11:04:13 | 234,916,849 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 344 | py | import pytest
from unittest import TestCase
from webium.base_page import BasePage
from webium.errors import WebiumException
class PageWithoutUrl(BasePage):
pass
class TestNoUrlValidation(TestCase):
def test_no_url_validation(self):
page = PageWithoutUrl()
with pytest.raises(WebiumException):... | [
"wandy1208@gmail.com"
] | wandy1208@gmail.com |
02870225cf065083ba4335fd8a97915249b45f48 | cf50ea39bfd5a7dee49f10c5889637131bb40c74 | /11-CHAPTER/3-multiple-inheritance.py | f44b08ef42b3cd67a92e4e03882b0df37fad6336 | [] | no_license | Rishi05051997/Python-Notes | 4878b1760731d7b7f5060f320ec9758fc5946536 | 1c7c1d927e1c78be430d7131f569e3272f8e81ad | refs/heads/main | 2023-07-15T03:00:06.498240 | 2021-08-24T05:27:46 | 2021-08-24T05:27:46 | 377,142,221 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 307 | py | class Employee:
company = "Visa"
eCode = 120
class Freelancer:
company = "Fiverr"
level = 0
def upgradeLevel(self):
self.level = self.level + 1
class Programmer(Employee, Freelancer):
name = "Vrushabh"
p = Programmer()
p.upgradeLevel()
print(p.level)
print(p.company)
| [
"vrushabhdhatral10@gmail.com"
] | vrushabhdhatral10@gmail.com |
421c13e8963ffe8366e023f610bb3eea356c8f96 | 86cc944246f0e3085129a0d5bd9f3e66cfaf65f2 | /applications/accel_mpu_9250_esp32/python_udp_server/show_helper.py | 8d31a70d352f11e525389727c48a45a1b84b901d | [] | no_license | DaveTheTroll/arduino_JG | 59b6bd581816db19ef12189ba31e6bf6d6400d64 | 61b21b8785ba9a9a81bd680d17c31f475db65700 | refs/heads/master | 2020-03-22T07:47:22.987845 | 2020-01-28T13:42:31 | 2020-01-28T13:42:31 | 139,724,604 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 620 | py | import threading
from mpl_toolkits.mplot3d import proj3d
import numpy as np
from accel_server import accel_server
import matplotlib.pyplot as plt
def orthogonal_proj(zfront, zback):
a = (zfront+zback)/(zfront-zback)
b = -2*(zfront*zback)/(zfront-zback)
return np.array([[1,0,0,0],
[0... | [
"dave.barnett@redsensors.com"
] | dave.barnett@redsensors.com |
6e44992389889c0388dc181964d4224150695804 | f28f73251faf98ca976425601e2ec65c02fe403c | /oop/objectfromfile_person.py | 78581e93167f7f4aa60291a6129411aa5d6bfa4a | [] | no_license | Keerthanavikraman/Luminarpythonworks | e2bd56fadf6c1a49609b631368da35d1d1e33807 | 9e203eed2c4c24abdaf5c9dbe2a09a2ce6b906b8 | refs/heads/master | 2023-07-08T02:04:55.341462 | 2021-08-11T06:34:03 | 2021-08-11T06:34:03 | 385,262,038 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 451 | py | class Person:
def __init__(self, name, age):
self.name = name
self.age = age
def printval(self):
print("name:",self.name)
print("age:",self.age)
def __str__(self):
return self.name
f=open("person",'r')
for line in f:
#print(line)
data=line.rstrip("\n").split(... | [
"keerthanavikram07@gmail.com"
] | keerthanavikram07@gmail.com |
8e15123ac1006ef3d53de1573baf06184dd75c95 | 48832d27da16256ee62c364add45f21b968ee669 | /res_bw/scripts/common/lib/plat-mac/carbon/lists.py | 4fc2252e450153f6e01beee179948af9cb5f9698 | [] | no_license | webiumsk/WOT-0.9.15.1 | 0752d5bbd7c6fafdd7f714af939ae7bcf654faf7 | 17ca3550fef25e430534d079876a14fbbcccb9b4 | refs/heads/master | 2021-01-20T18:24:10.349144 | 2016-08-04T18:08:34 | 2016-08-04T18:08:34 | 64,955,694 | 0 | 0 | null | null | null | null | WINDOWS-1250 | Python | false | false | 1,082 | py | # 2016.08.04 20:01:15 Střední Evropa (letní čas)
# Embedded file name: scripts/common/Lib/plat-mac/Carbon/Lists.py
def FOUR_CHAR_CODE(x):
return x
listNotifyNothing = FOUR_CHAR_CODE('nada')
listNotifyClick = FOUR_CHAR_CODE('clik')
listNotifyDoubleClick = FOUR_CHAR_CODE('dblc')
listNotifyPreClick = FOUR_CHAR_COD... | [
"info@webium.sk"
] | info@webium.sk |
1dbbd38333e4bdfa695a265eab97dede7839959c | 893a2fea722b77148f1fb1cac066ce476f1afa0a | /codeforces/cf_beta_85/problem2.py | 8c260d049262d5c1c10a34300dcf43695e7bd3a3 | [] | no_license | the-brainiac/contests | feb9f1ee1abdfb3cc9dccd5a69623192b4ec09ed | b95426aa3e54e703f7924fe0f222c2915e07c8f7 | refs/heads/main | 2023-05-12T13:10:11.765678 | 2021-06-03T04:05:50 | 2021-06-03T04:05:50 | 373,376,225 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 838 | py | N = 10**5
is_prime = [1]*N
# We know 0 and 1 are composites
is_prime[0] = 0
is_prime[1] = 0
def sieve():
"""
We cross out all composites from 2 to sqrt(N)
"""
i = 2
# This will loop from 2 to int(sqrt(x))
while i*i <= N:
# If we already crossed out this number, then continue
if ... | [
"shiv71290@gmail.com"
] | shiv71290@gmail.com |
effc3b116d13b73680bc6ee89503bc15bb072e99 | b570f953a932642481051b4f0762de504f25eaeb | /inttest_md.py | 5f12ded508386aee50cbe6dbab0267013b1b809d | [] | no_license | matot830/hands-on-3 | bfd212fbfa11fa34900a1534bcdefe74138e75b6 | a4c5e5b7c44e358a1459ab904782829cc4438cd7 | refs/heads/main | 2022-12-27T08:58:17.879066 | 2020-10-05T15:05:20 | 2020-10-05T15:05:20 | 301,438,501 | 0 | 0 | null | 2020-10-05T15:05:22 | 2020-10-05T14:35:10 | Python | UTF-8 | Python | false | false | 151 | py | import md
import os
import sys
if os.path.exists('cu.traj'):
os.unlink('cu.traj')
md.run_md()
if not os.path.exists('cu.traj'):
sys.exit(1)
| [
"matot830@student.liu.se"
] | matot830@student.liu.se |
ae77f04a39360d46e9678ac92343a924b0ef173e | 8f9aa25d14293be5baab4f9563a17517ab70e9b3 | /AllMedia/models.py | 574432b279a6a6c5462f9c0cd8102321fafc86c6 | [] | no_license | MdAkdas/musicVibe | 0107dbd2385b98f6b5667aac4d437118d3cb5726 | f39f194785251067bd8cad5f77e07b306d62aa25 | refs/heads/master | 2022-11-27T14:05:16.384625 | 2020-07-02T01:01:00 | 2020-07-02T01:01:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 499 | py | from django.db import models
from django.contrib.auth import get_user_model
# Create your models here.
User = get_user_model()
class MediaFiles(models.Model):
user_for_files = models.ForeignKey(User, on_delete=models.CASCADE)
name = models.CharField(max_length=128)
files = models.FileField(upload_to='medi... | [
"osagiedeharrison@yahoo.com"
] | osagiedeharrison@yahoo.com |
15383f8452b8b4d90bb772acf97713ec41c5f3f8 | 4eedda8375df447499348cce1279861c911fc50e | /SConstruct | 0886f2e08662bead22ad1be592e2445a59e92d09 | [
"LicenseRef-scancode-warranty-disclaimer",
"MIT"
] | permissive | DS1SQM/OPKR086_test4 | ee488a8fdd040ea761e746d758f003acf07cccc5 | db60403de9fd5a80580b75fd852aea538d9fd83a | refs/heads/main | 2023-06-16T19:55:11.583400 | 2021-07-14T05:27:41 | 2021-07-14T05:27:41 | 386,856,727 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,247 | import os
import shutil
import subprocess
import sys
import sysconfig
import platform
import numpy as np
TICI = os.path.isfile('/TICI')
Decider('MD5-timestamp')
AddOption('--test',
action='store_true',
help='build test files')
AddOption('--setup',
action='store_true',
help='bu... | [
""
] | ||
1431c6bd5242f083472d3f4131c2ace9a83705a5 | 15655eddf9ab65f17b11ef62fccd24f38d89f58e | /db_create.py | 22f9142ff0ef3ee33af09e6be51021cf6cd984f0 | [] | no_license | nenni/flask_tutorial | 87d8e0c4571ebde116a03cab6d4183893fab8d71 | 71cceee24374db67fa8097dd522768d57dcb3aed | refs/heads/master | 2020-12-31T05:24:52.451558 | 2016-04-27T21:51:23 | 2016-04-27T21:51:23 | 56,140,671 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 499 | py | #!/usr/bin/env python3
from migrate.versioning import api
from config import SQLALCHEMY_DATABASE_URI
from config import SQLALCHEMY_MIGRATE_REPO
from app import db
import os.path
db.create_all()
if not os.path.exists(SQLALCHEMY_MIGRATE_REPO):
api.create(SQLALCHEMY_MIGRATE_REPO, 'database repository')
api.versio... | [
"nikolay.nenchev@gmail.com"
] | nikolay.nenchev@gmail.com |
e9caaed5feffaa2f6965b63e3b19f250be2c80b8 | a311c9c1c3a96b6b96196daba0453fd3388a94ba | /cookbook/chapter8/01_changing_the_string_representation_of_instances.py | 42a21e282cdd2a9db809a7cf8ed46e1bdfa8942a | [] | no_license | foryou7242/smart_study | 2c2ab69f7444fe14ba677f5d646a6b156ad259a0 | d813e59c542f8de66e3479197f64dee6fb04e456 | refs/heads/master | 2020-03-27T17:25:16.225197 | 2018-11-19T06:32:07 | 2018-11-19T06:32:07 | 146,850,340 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 682 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Mon Sep 3 16:48:53 2018
@author: son
"""
class Car1:
def __init__(self, model):
self.model = model;
def __repr__(self):
return 'car({0.model})'.format(self)
def __str__(self):
return 'car model is %s' %(self.model)
... | [
"sjhcome@gmail.com"
] | sjhcome@gmail.com |
fe3bd2b60fe879cd445a2e446ba1b5993ed6a05c | 18e3b17e11c11f67499975fad6b88237f8589ab6 | /CrApp/wsgi.py | e349cc5a158bc7adc41023d45a03f5149540a6fe | [] | no_license | PrashantNigam/Muzique | b95b948d7e8b7022cafbd11ca445a1f856995140 | 1ea59c1d29557d5ab6db28bfd6f37db105dc7125 | refs/heads/master | 2021-03-30T21:13:58.462949 | 2018-09-22T19:51:38 | 2018-09-22T19:51:38 | 124,611,782 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 387 | py | """
WSGI config for CrApp project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/2.0/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_SETTING... | [
"PrashantNigam@users.noreply.github.com"
] | PrashantNigam@users.noreply.github.com |
ea8118a80cd7998d5a78ae88a633e64187567637 | 56c85a5c2c7cbdfcd3137571f0dc79b05e3f25c9 | /agenda/urls.py | 3f9a4ad5ffee43e7119da9691ce7472112f2a43b | [] | no_license | UesleiJf/agenda | ce7fedf6b31515b16d0c195b592b7eafb2e08ad7 | e5436c7a0562adcabcce582621995e18fd42c1b9 | refs/heads/master | 2020-09-05T22:01:05.821951 | 2019-12-01T22:47:44 | 2019-12-01T22:47:44 | 220,226,115 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 916 | py | """agenda URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.2/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-based ... | [
"uesleijf@gmail.com"
] | uesleijf@gmail.com |
36119431fd312a3e8902674067afbe6396c63da9 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/59/usersdata/219/29883/submittedfiles/testes.py | 4f4b4f48b93942c5a8eddaabeee18acfd3de9bd6 | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 301 | py | # -*- coding: utf-8 -*-
#COMECE AQUI ABAIXO
a=int(input('Digite a:'))
b=int(input('Digite b:'))
c=int(input('Digite c:'))
d=int(input('Digite d:'))
if a>=b and a>=c and a>=d:
print(a)
if b<=c and b<=d:
print(b)
elif b>=a and b>=c and b>=d
print(
| [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
2dfb77cb4398fef7572ac2dc4986ea5a0c371b2d | cecd0e679c149f08968254f3196f8d4a6c88564a | /nomadgram/users/models.py | 69f191c2b6a5eb4761bf70761d9a033d8fafb72b | [
"MIT"
] | permissive | cowkong/nomadgram | c9e09441761d74133d0f0355f5fa497956740cb2 | e3b1c3593f0efbb4e766ff6c2b4db51b78371cfa | refs/heads/master | 2021-05-08T10:14:02.165301 | 2018-02-10T03:08:02 | 2018-02-10T03:08:02 | 119,833,571 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,133 | py | from django.contrib.auth.models import AbstractUser
from django.core.urlresolvers import reverse
from django.db import models
from django.utils.encoding import python_2_unicode_compatible
from django.utils.translation import ugettext_lazy as _
@python_2_unicode_compatible
class User(AbstractUser):
"""User model... | [
"a01047079420@gmail.com"
] | a01047079420@gmail.com |
bdf9962736759e44947c2131c36b186465f236ab | fdacb98c24a40fb385d10634b8c5cf4d020a702e | /SMPyBandits/Experiment/Seznec_asymptotic/main.py | 647e5f2923dc05f7cf90950b4b929b6e83ca8a54 | [
"MIT"
] | permissive | varun5001/SMPyBandits | 1649468313fc46c865067fe80ff9e5334a8c2076 | 86c91e6036a23aeefe0731333702d6bbf756c214 | refs/heads/master | 2022-12-02T05:27:30.659372 | 2020-08-17T08:49:27 | 2020-08-17T08:49:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,047 | py | """
author: Julien SEZNEC
Produce the experiment about the (potential) asymptotic optimality of RAW-UCB++
For the thesis manuscript.
"""
from SMPyBandits.Arms import RestedRottingGaussian, UnboundedGaussian as Gaussian
from SMPyBandits.Policies import GreedyOracle, RAWUCB, EFF_RAWUCB, EFF_RAWUCB_pp, EFF_RAWUCB_pp2, M... | [
"julien.seznec@lelivrescolaire.fr"
] | julien.seznec@lelivrescolaire.fr |
0375e087942c2c2346f1f6076ecf3070bb98af45 | 3424fd15a6b4a079c24cb45c896277e3dd7cf0c8 | /plugins/modules/oneview_enclosure_group_facts.py | 15216f74b45c47563922cd7e99e1ea7af0c69bc1 | [
"Apache-2.0"
] | permissive | SHANDCRUZ/test-codecov | e7544c4616e281ada4858f34897b7a1e59be7748 | f7aca851423641570fa86d3f8233235d14c71756 | refs/heads/main | 2023-03-24T01:43:18.048625 | 2021-03-23T12:39:51 | 2021-03-23T12:39:51 | 350,258,321 | 0 | 0 | Apache-2.0 | 2021-03-23T12:47:30 | 2021-03-22T08:07:33 | Python | UTF-8 | Python | false | false | 4,355 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
###
# Copyright (2016-2020) Hewlett Packard Enterprise Development LP
#
# 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/licen... | [
"noreply@github.com"
] | SHANDCRUZ.noreply@github.com |
a38de2894ee0a326653069ed1136de8ad8003727 | 5eb1c28a42fc1f6b8e16d11d6c724839f7a1ae90 | /problem_2/summary.py | 411fe344296d791c84e51c052081c21551bc5e10 | [] | no_license | sjho/PlanetA | 1137a97452fd24c323d0eb6afaeff27516758d51 | 2d1cd4e7328186050a8735020949d1a3b4934ae6 | refs/heads/master | 2023-07-24T19:26:14.414938 | 2021-09-08T14:52:13 | 2021-09-08T14:52:13 | 399,930,142 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 433 | py | import numpy as np
import pandas as pd
temp = pd.read_csv("test_output.csv")
columns = temp.columns
temp = temp.astype(np.float)
result_t = temp.to_numpy()
temp = pd.read_csv("output_LeakyReLU/test_output_100.csv")
result_t += temp.to_numpy()
result = result_t.copy()
print(result)
result[result_t >= 1] = 1
result[re... | [
"sjh2177@gmail.com"
] | sjh2177@gmail.com |
0f3d5dffd8873b5a26473fd63a63e53da38dddd6 | dd242374f1cffb3184b16d9ad24ef7f53c6255cc | /app/module/database/SQLiteDB.py | f6225f41400e4776e2db6cd7d2d1ee948e740787 | [] | no_license | zruibin/zruibin.cn_Comment | 03ac2e1e031f22c0b12b0f78e13e3193a64583b8 | a8af1804c3dfc23aad95971186a53c9659d88f62 | refs/heads/master | 2020-03-28T17:18:47.658487 | 2018-09-17T12:09:17 | 2018-09-17T12:09:17 | 148,776,954 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,604 | py | #! /usr/bin/env python
# -*- coding: utf-8 -*-
#
# SQLiteDB.py
#
# Created by ruibin.chow on 2017/07/31.
# Copyright (c) 2017年 ruibin.chow All rights reserved.
#
from Log import *
import sqlite3
def dict_factory(cursor, row):
return dict((col[0], row[idx]) for idx, col in enumerate(cursor.description))
class S... | [
"ruibin.chow@qq.com"
] | ruibin.chow@qq.com |
f3a32fed002a3701d7b450a5289be2d49cb13fe6 | d9c5d7705864c23a27ba809d915b8910922eda65 | /code/ex00003.py | 2557f14d29b928fbbf1e3bf74108001787b04404 | [] | no_license | xfree86/Python | 1519913e31ab715f44eb6393697bbfe6073d2127 | 79173597f6cbc04e0d98071c6cc298ef35342d8d | refs/heads/master | 2021-01-21T10:59:42.118667 | 2017-04-14T08:28:51 | 2017-04-14T08:28:51 | 83,509,270 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 835 | py | # -*- coding: utf-8 -*-
# 运算符的用法
print "I will now count my chickens:"
print u"我现在数我的鸡:"
print "Hens", 25 + 30 / 6
print "Roosters", 100 - 25 * 3 % 4
print 3 + 2 + 1 - 5 + 4 % 2 - 1 / 4 + 6
print "Is it true that 3 + 2 < 5 - 7?"
print u"3 + 2 < 5 - 7 这是真的吗?"
print 3 + 2 < 5 - 7
print "What is 3 + 2?", 3 + 2
prin... | [
"woshixjr@gmail.com"
] | woshixjr@gmail.com |
61f2b2619c96c01b5dda1b6c9aeb86457872c271 | 0ee8350bedb5c8ac575ee0b634fece214a06646a | /poezio/asyncio.py | 2b02a91ffd66a8b6a9a97f66ca7342e5dcce6026 | [
"Zlib",
"CC-BY-2.0"
] | permissive | LukeMarlin/poezio | 3fcad784d37aa665850b649622d6f8d75cc1fa3f | 884aae28a24d65951cc7d57f6044098f236f52bc | refs/heads/master | 2021-01-09T20:12:18.234842 | 2016-10-28T15:26:02 | 2016-10-28T15:57:38 | 72,423,788 | 1 | 0 | null | 2016-10-31T09:54:48 | 2016-10-31T09:54:48 | null | UTF-8 | Python | false | false | 1,353 | py | """
A module that monkey patches the standard asyncio module to add an
idle_call() method to the main loop. This method is used to execute a
callback whenever the loop is not busy handling anything else. This means
that it is a callback with lower priority than IO, timer, or even
call_soon() ones. These callback are ca... | [
"mathieui@mathieui.net"
] | mathieui@mathieui.net |
eee2ebee536d3981e904ba7a1acd3f627e127252 | d20a55eb8eeb9ae69f00ee221ea2c11a2b3fd21f | /blog/forms.py | 7102121e4b984246a64cd2fce49d32fbc40c95af | [] | no_license | ahmedt1997/mysite | fa31af20f48e2cd34d47b990890118e5e829eadc | 9df34c4a1316ca0cf2ceb00715f21f48c33ee324 | refs/heads/master | 2023-08-07T00:18:05.866405 | 2021-10-04T03:49:28 | 2021-10-04T03:49:28 | 413,265,560 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 416 | py | from django import forms
from blog.models import Comment
class EmailPostForm(forms.Form):
name = forms.CharField(max_length=25)
email = forms.EmailField()
to = forms.EmailField()
comments = forms.CharField(required=False,
widget=forms.Textarea)
class CommentForm(forms... | [
"ahmedbbccaa@gmail.com"
] | ahmedbbccaa@gmail.com |
14a1849af30c0bf50e531e04171634750a80e48e | 37147a1530ee74b347a907777b9e0de29dea0b2c | /offline.py | c145bd9b901b901c6775f0ae7063e0645ed41081 | [] | no_license | brenolf/gmdl-scripts | 5f391cadfb5a263d7a4e9a7fccd563c230ab858d | 70c01f16b4dac46ac357844cc6d4816cf8c0e7c7 | refs/heads/master | 2021-03-27T15:03:03.817955 | 2017-11-19T18:12:58 | 2017-11-19T18:12:58 | 95,069,379 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,873 | py | from os import listdir, environ
from os.path import join, realpath
import argparse
from multiprocessing.dummy import Pool
from itertools import repeat, product
import numpy as np
from aux.GetFold import get_fold
from aux.Metrics import macro, micro
import pandas as pd
import sys
parser = argparse.ArgumentParser(descri... | [
"brenolimadefreitas@gmail.com"
] | brenolimadefreitas@gmail.com |
734ae0fd9511a0bbd0af6d038331aabd1d758efa | fc364e871cdd0132dbc91bea4ce95a26d2ac02ad | /plugins/operators/S3_Redshift.py | 73de4d891027a865e961111dae2ced9ac8c286aa | [] | no_license | NVME-git/NYC-TLC-Data-Engineering | 6912bcfbfa3df1567d66881ac75aca32a53816c4 | 022d1e25597540491d45974ca58f5a8f2109318e | refs/heads/master | 2022-03-06T01:56:36.393665 | 2019-11-09T08:15:36 | 2019-11-09T08:15:36 | 216,543,471 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,761 | py | from airflow.contrib.hooks.aws_hook import AwsHook
from airflow.hooks.postgres_hook import PostgresHook
from airflow.models import BaseOperator
from airflow.utils.decorators import apply_defaults
class S3ToRedshiftOperator(BaseOperator):
"""
S3ToRedshiftOperator controls the movement of csv trip data and json... | [
"nvinity@pm.me"
] | nvinity@pm.me |
ab512419d61466446b1eb72ac84831498db20e06 | 50948d4cb10dcb1cc9bc0355918478fb2841322a | /azure-mgmt-network/azure/mgmt/network/v2018_02_01/operations/express_route_circuits_operations.py | 3f54bb957557bb672da6c0a1511c65b6114abde7 | [
"MIT"
] | permissive | xiafu-msft/azure-sdk-for-python | de9cd680b39962702b629a8e94726bb4ab261594 | 4d9560cfd519ee60667f3cc2f5295a58c18625db | refs/heads/master | 2023-08-12T20:36:24.284497 | 2019-05-22T00:55:16 | 2019-05-22T00:55:16 | 187,986,993 | 1 | 0 | MIT | 2020-10-02T01:17:02 | 2019-05-22T07:33:46 | Python | UTF-8 | Python | false | false | 46,037 | 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 ... | [
"lmazuel@microsoft.com"
] | lmazuel@microsoft.com |
3c288b0c24feff89d6007028f01d23e3a6030c44 | fd3c30fe9afdf03fb2ff627fa19f6b7739075393 | /homeassistant/components/plugwise/__init__.py | f7986f915401c6c2dbc3df607fe1f60618f0245d | [
"Apache-2.0"
] | permissive | uvjustin/home-assistant | 8b761a56c7d98c22395367ce83eb41cf45ccf11a | 223000a9fbd2a46539054ad93a9dd29333205415 | refs/heads/dev | 2023-08-31T04:01:57.353481 | 2020-09-23T15:57:06 | 2020-09-23T15:57:06 | 234,028,164 | 3 | 2 | Apache-2.0 | 2023-01-13T06:03:32 | 2020-01-15T07:56:05 | Python | UTF-8 | Python | false | false | 6,308 | py | """Plugwise platform for Home Assistant Core."""
import asyncio
from datetime import timedelta
import logging
from typing import Dict
from Plugwise_Smile.Smile import Smile
import async_timeout
import voluptuous as vol
from homeassistant.config_entries import ConfigEntry
from homeassistant.const import CONF_HOST, CO... | [
"noreply@github.com"
] | uvjustin.noreply@github.com |
07e5f0e71f423af3c4020570575fed9135c2cab2 | ece651284bb8e98abed1017fb99df84fc404b3fc | /GUI Based Projects (PyQt5)/Basics/CreatingWindowTitle.py | e8cfddf743f0a498e6089533035ba49da261ad00 | [] | no_license | pathakabhi24/Python-Projects | 9f9237c1cc431df1049c675ff429fd2c64a5f180 | 8115f9e91bb0011f16fa1bc1258779c63659aa36 | refs/heads/master | 2023-06-12T23:31:52.598868 | 2021-07-07T06:22:03 | 2021-07-07T06:22:03 | 293,288,542 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 740 | py | import sys
import PyQt5.QtWidgets as qw
def window():
# application object
app = qw.QApplication([])
# application window
win = qw.QMainWindow() # --
# set windows location. The position is the location of top left corner of the window.
# (x_position, y_position, width, height)
win.setG... | [
"noreply@github.com"
] | pathakabhi24.noreply@github.com |
688c1f6ae2c65d4effab4cbba727ba63a81f0fad | 1280eb47426c8760c042376c174047a0176bb886 | /CIV_completed_targets/complete_scripts/RXJ2154.1-4414.py | 2705f474f286d180608b415c2dd79d5b272b3c94 | [] | no_license | ryanlindley/Research | 33cb43acaf68fb2068fa7166fdab5d2a9ed307b4 | 066a65f67778a41301551dea1607d89a61d6d64c | refs/heads/master | 2021-01-04T02:21:17.734053 | 2020-07-31T04:51:52 | 2020-07-31T04:51:52 | 240,336,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,101 | py | #!/usr/bin/env python
# coding: utf-8
# In[1]:
import auto_fitting as auto
import glob
import os
auto.plt.rcParams['figure.figsize'] = [11, 8]
# In[2]:
filenames = glob.glob('/Users/ryanlindley/Research/CIV/*')
CIV_targets = []
for f in filenames:
CIV_targets.append(f.replace('/Users/ryanlindley/Research/CIV... | [
"lindleyr@umich.edu"
] | lindleyr@umich.edu |
be3e729594f07cb038176734a04d4256d967d617 | 3f147cb29b64ae5670813094301d80401fd28204 | /requirements/editor.py | d5dcc6f8fa9eced3f2dc94848846f56b7c506334 | [
"MIT"
] | permissive | venkatesh-sivaraman/fireroad-server | 0542380fc9854ebf7e79a1571ec6b3add8010ecf | 3930bd2bc75b38458efd0912b33ae5b3578e8713 | refs/heads/master | 2023-07-05T20:49:33.805794 | 2023-05-07T00:33:04 | 2023-05-07T00:33:04 | 115,356,031 | 14 | 6 | MIT | 2023-07-02T23:36:03 | 2017-12-25T18:21:53 | Python | UTF-8 | Python | false | false | 16,073 | py | from django.shortcuts import render, redirect, reverse
from django.http import HttpResponse, HttpResponseBadRequest
from django.views.decorators.csrf import csrf_exempt
from django.contrib.admin.views.decorators import staff_member_required
from .models import *
from django.contrib.auth import login, authenticate, logo... | [
"venkatesh.sivaraman.98@gmail.com"
] | venkatesh.sivaraman.98@gmail.com |
52fd37577fe3d760e5a1895cd15f5e333db1388f | 47d1c840f9cb8576614e41470348aac388e9bb51 | /config.py | 26a522bd1ce1c11cf408a1049863060a378634df | [
"Apache-2.0"
] | permissive | Nitinguptadu/Yugen-ai-Heroku | 389d95dc0f97b8b44e6789d5388c1365e545b954 | 7d135fc2625c198c36a11ff4f5cfa565cbc8086e | refs/heads/main | 2022-12-29T03:21:03.127328 | 2020-10-17T19:07:11 | 2020-10-17T19:07:11 | 304,949,836 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 261 | py | from os import environ as env
import multiprocessing
PORT = int(env.get("PORT", 8000))
DEBUG_MODE = int(env.get("DEBUG_MODE", 1))
# Gunicorn config
bind = ":" + str(PORT)
workers = multiprocessing.cpu_count() * 2 + 1
threads = 2 * multiprocessing.cpu_count()
| [
"noreply@github.com"
] | Nitinguptadu.noreply@github.com |
29de0570a9ad8bb2ad28f83511776fa32289b625 | 46753973350f11ccbdfb68acada19035374df626 | /MasterPythonUdemy/18-Tkinter_DesktopApp/18.8-EjercicioCalculadora.py | d7703dfe58ac053914f3529453db7827e6118bc1 | [] | no_license | atehortua1907/Python | c35c67a2052c177fbf64debc344ecef2766e75c4 | a0dc53e233276991b9066fdd444d45e5fe38cb8f | refs/heads/master | 2021-06-09T15:46:42.463043 | 2021-05-25T19:37:11 | 2021-05-25T19:37:11 | 186,865,457 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,055 | py | """
CALCULADORA:
-Dos campos de texto
-4 botones para las operaciones
-Mostrar el resultado en una alerta
"""
from tkinter import *
from tkinter import messagebox as MessageBox
def operaciones(operacion):
numero1 = int(num1.get())
numero2 = int(num2.get())
result = 0
if operacion == ... | [
"jdatehortua@inaltec.com.co"
] | jdatehortua@inaltec.com.co |
40698577f3d6a9e12c305866465dd5726f9b04de | 184b86162199d0288023aef5f44e94bc70e09d24 | /brain_games/games/calc.py | 2479f6527e3ec539e948f0117e31d961a1b64a09 | [] | no_license | Everyday24/python-project-lvl1 | fb38ae876c39d05c62c5f3de9efae22d7801bdca | ccb2488a31ccda7fcc5818b9ee511fc265c829e8 | refs/heads/master | 2022-12-28T02:43:14.298689 | 2020-10-15T04:58:22 | 2020-10-15T04:58:22 | 281,569,062 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 837 | py | """Игра 2. Калькулятор."""
import random
from brain_games.games import logic
def random_ex():
num_1 = random.randint(0, 100)
num_2 = random.randint(0, 100)
sign = random.choice('-+*')
return num_1, num_2, sign
def generate_question_answer_pair_calc():
num_1, num_2, sign = random_ex()
if si... | [
"vorobev.vitalii24@gmail.com"
] | vorobev.vitalii24@gmail.com |
16338fb6e5f473ae3a9162902ef91ac38c0ce3dc | 090487c2d57a368830bea1e0996b263153fceb2f | /crypto_crawler/sql_utils.py | 98a6c57f88d71e3ac741c60cecbd8fb690f6579b | [
"MIT"
] | permissive | stargrep/crypto-crawler | a48f8e9389b81aa590560e4cb4601fcd69740a45 | a567ff6c1eb6e5e6b332fe781558c81558656d12 | refs/heads/master | 2021-06-22T22:05:33.725805 | 2021-05-16T12:34:15 | 2021-05-16T12:34:15 | 216,241,176 | 5 | 3 | MIT | 2020-06-20T05:04:46 | 2019-10-19T17:02:59 | Python | UTF-8 | Python | false | false | 1,222 | py | from sqlite3 import Connection, connect
from typing import Any
def get_connection(db_name: str) -> Connection:
try:
return connect(db_name) # 'test.db'
except RuntimeError as e:
print("I am unable to connect to the database" + str(e))
def read(statement: str, db_name: str) -> []:
conn =... | [
"mikenyc1207@gmail.com"
] | mikenyc1207@gmail.com |
7172aff4a743ab0828967ea16773a8f18ff85c98 | 390fdd1e185fe08a49ce2b9ce6da5475c8cf872d | /ss_admin/lib/verification_code.py | 905008bf5e02d9dd458b6304a3c811a00a48e2df | [
"Apache-2.0"
] | permissive | 19years/shadowsocks-admin | 427bc7a6bede7d1c34c88d60d425e45099dae4d4 | c565518e13ebdeb7821cba62685ca80a380f3815 | refs/heads/master | 2021-06-17T04:39:37.756853 | 2017-06-06T02:25:45 | 2017-06-06T02:25:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,569 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
# author arrti
# ref: https://segmentfault.com/a/1190000002978886
import random, os
from PIL import Image, ImageDraw, ImageFont
current_path = os.path.split(os.path.realpath(__file__))[0]
class VerificationCode(object):
def __init__(self, font_color=(0, 0, 0),
... | [
"godxcgo@foxmail.com"
] | godxcgo@foxmail.com |
7ec7550591ee36f5a1a0f233433ed7580c4809bf | 805c42f8016a8af18f4780a90c4755e6a9e45eed | /coworkings/models.py | 4959f9af5496b787b2b7a7ee1084f0c3e5d6f45c | [] | no_license | Stuffing-code/coworking | b799e457d52aee19073c21f38eee2dac62e0b145 | 9db3f666fe9a354012b8fdb622b1b267da6e217c | refs/heads/main | 2023-03-27T22:04:38.857980 | 2021-03-19T16:01:45 | 2021-03-19T16:01:45 | 347,388,565 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 764 | py | from django.db import models
from datetime import *
# Create your models here.
class NumberOffice(models.Model):
number_office = models.CharField(max_length=40)
def __str__(self):
return self.number_office
def __iter__(self):
return iter(self.number_office)
class Reservation(models.Mode... | [
"stuffingeu56@gmail.com"
] | stuffingeu56@gmail.com |
92612e52e20cfea9a63de031d8883e91b91af44a | a496f49aeb9f9463f76e156ab4cd316346d8b21b | /ips/util/process_variables.py | 2ffd73a76287f3d2a12a5001666db371213486d2 | [] | no_license | cadmiumcat/ips_services | cb9320f2d0831399d8a3ee471e0e1c913ca1ebcf | 274bdc04440a094d1e8a8f9d4d2d6224e6736276 | refs/heads/master | 2020-06-24T17:15:48.030598 | 2019-04-05T12:19:20 | 2019-04-05T12:19:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,257 | py | import random
from ips_common.logging import log
import ips_common_db.sql as db
import numpy as np
# for exec
import math
random.seed(123456)
count = 1
def modify_values(row, pvs, dataset):
"""
Author : Thomas Mahoney
Date : 27 / 03 / 2018
Purpose : Applies the PV rules to the sp... | [
"elinor.thorne@ext.ons.gov.uk"
] | elinor.thorne@ext.ons.gov.uk |
ed177d6ef08407058c4f31e04e9a1b606d58512a | 5c0c393ee727470f5a0570e3508be6b5bd0a6d96 | /myapp/views.py | 7a1b43474540a9c24cd611e3fa54233d5f7769d5 | [] | no_license | lynch829/omp-gynae-brachy | 53b8f0431ec0e725422f9f817c89e183d3d1eefa | 52823a732ba52d62b8e388042931ad64ba39965b | refs/heads/master | 2020-08-11T15:15:25.550527 | 2017-07-17T07:34:15 | 2017-07-17T07:34:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,445 | py | from django.shortcuts import redirect, render
from .forms import PatientForm, DVHDumpForm, PatientNameForm
from .pyTG43.pyTG43 import *
from .oncprost_utilities.oncprost_utilities import *
from django.conf import settings
import dicom
import os
from scipy.interpolate import interp1d
import json
def index(request):
... | [
"leogarcia61@gmail.com"
] | leogarcia61@gmail.com |
88ca9452a4509137e40048ebdbbc850643a241a0 | 04f09d432a28fa50f3b13f5f46bf4b9b62c01e2f | /html-png_code.py | f01c308213943a840d27cc0d717a3587ebecb18e | [
"MIT"
] | permissive | sketch2code-mit/html-png | adfad5884dac50154356ec4b87213f635e4e6f6d | 5808c3a4a1b4784e59dcf4427867a3fe501f29d6 | refs/heads/main | 2023-04-06T09:58:01.806598 | 2021-04-12T00:36:02 | 2021-04-12T00:36:02 | 357,011,484 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,024 | py | # this is the coding for generating html screenshot
# written by Doodle2Code team for MIT 6.962 Applied Machine Learning
import time
from selenium import webdriver
import os
c = 0
n = 0
j = 0
i = 0
for c in range(3):
for n in range(10):
for j in range(10):
for i in range(10):
... | [
"noreply@github.com"
] | sketch2code-mit.noreply@github.com |
b0d4c96a5402e57985cbbb13d21d08abf5b648e9 | 13a4af1f8b7d1445c722bf74d886daf54525c7f1 | /test.py | 7e7f20b1ca5392da1f172978e6ef331997ecee0c | [] | no_license | JiaCheng-Lai/bird-sound | 8caf16fe1d5f7ea876080ffa29f84b1fd5c50236 | 0f8b4493cf42203678a41098fa61a8ff54498500 | refs/heads/main | 2023-01-31T00:59:39.660448 | 2020-12-15T09:49:51 | 2020-12-15T09:49:51 | 321,600,510 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,929 | py | import random
from tqdm import tqdm
import time
import os
import struct
import matplotlib.pyplot as plt
import IPython.display as ipd
import pandas as pd
import numpy as np
import librosa
import librosa.display
from sklearn import manifold
import scipy, pylab
import scipy.io
from scipy.io import wavfile
from scipy.io.w... | [
"M10902148@gapps.ntust.edu.tw"
] | M10902148@gapps.ntust.edu.tw |
0ab91b8fc7a8f722176caa772e62d86f3f98bab8 | ecbf6a7c04b068a4f5606bbab46b974e53bd28d8 | /src/replace_localparam.py | debb116037d08c9f96c454b86e2bebe117057dc9 | [
"MIT"
] | permissive | jamesjiang52/V2SV | 970357be757ba068111645fd6964e8672a72f69f | 4b6109d16482131785b9dfec13fd66452078ae17 | refs/heads/main | 2022-12-30T06:47:27.814305 | 2020-10-18T00:07:39 | 2020-10-18T00:07:39 | 300,928,285 | 1 | 2 | MIT | 2020-10-18T00:06:56 | 2020-10-03T16:41:38 | Python | UTF-8 | Python | false | false | 4,354 | py | def __remove_extra_declarations(module_string, replaced_wires, debug=False):
buffer = module_string[:module_string.index(");") + 2] + "\n"
body_string = module_string[module_string.index(");") + 2:]
statements = body_string.split(";")
# remove the previous declarations of any new enums
for statemen... | [
"jamesjiang52@gmail.com"
] | jamesjiang52@gmail.com |
cbc55fbc3fbf24e5cfc0b0aa7040b77823bd1510 | 845317cb77172ae8499e1debb7958a96bd47ad6e | /gui/multi_XY_plots.py | dd4c861802dcfb7bb3e4157c872cf2851fc09d5a | [] | no_license | nileshshah/optrode | c3e62b26f4a1f52436657f6af24ecda0a472a264 | be085216e501ccfde39df4d42cc4660dd433945e | refs/heads/master | 2021-01-02T22:39:38.773998 | 2015-07-25T03:28:36 | 2015-07-25T03:28:36 | 39,671,173 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,492 | py | #!/usr/bin/env python
import os, sys, csv
from itertools import izip_longest
import numpy as np
from PySide import QtGui, QtCore
import pyqtgraph as pg
from qtgui_util import QColorButton
class Plot_Checkbox(QtGui.QWidget):
def __init__(self,plot_data):
super(Plot_Checkbox, self).__init__()
... | [
"nilesh@integratedplasmonics.com"
] | nilesh@integratedplasmonics.com |
d6f88a51961dfbaff72ba17a232a5e048f814825 | e108a45d456b9e3a2e0f1b0ddd51f552d397f7b2 | /TocTable_algorithm.py | f61e2884603f2ed6d814000d303ddfbd990c93b1 | [
"LicenseRef-scancode-unknown-license-reference",
"CC-BY-4.0"
] | permissive | agiudiceandrea/TocTable | 66efb92195350f9da97d2b19b0d86644224ed9f1 | 7f99457970ac1eef1d8343519bf9cc6511964ed2 | refs/heads/main | 2023-02-24T21:23:14.061388 | 2020-11-30T15:46:29 | 2020-11-30T15:46:29 | 334,705,074 | 0 | 0 | null | 2021-01-31T16:45:06 | 2021-01-31T16:45:05 | null | UTF-8 | Python | false | false | 11,746 | py | # -*- coding: utf-8 -*-
"""
/***************************************************************************
TocTable
A QGIS plugin
TocTable
Generated by Plugin Builder: http://g-sherman.github.io/Qgis-Plugin-Builder/
-------------------
begin ... | [
"MY_NAME@example.comgifattor@libero.it"
] | MY_NAME@example.comgifattor@libero.it |
4455b3a1b142bedf192ae2f451c4ff35db376820 | 176c59cf09d42c66d4101eca52beb9c3ea7362a1 | /pyramid_authsanity/tests/test_includeme.py | ad635c82cfa576e918a2c5fbe5ec15a7f88c8027 | [
"ISC"
] | permissive | stevepiercy/pyramid_authsanity | 146d90abcf7622e1d509eb069bfbbf80ed61acc8 | daf7188a8ab1a8bd215d9e1e1cb6682e87fa8ac7 | refs/heads/master | 2021-07-16T08:33:46.683994 | 2016-01-10T05:48:32 | 2016-01-10T05:48:32 | 51,718,108 | 0 | 0 | null | 2016-02-14T22:53:13 | 2016-02-14T22:53:13 | null | UTF-8 | Python | false | false | 3,043 | py | import pytest
from pyramid.authorization import ACLAuthorizationPolicy
import pyramid.testing
from zope.interface import (
Interface,
implementedBy,
providedBy,
)
from zope.interface.verify import (
verifyClass,
verifyObject
)
from pyramid_services import IServiceClassifier
from... | [
"bertjw@regeer.org"
] | bertjw@regeer.org |
d63408c2d9adafeadf3ac5e64efccfc40b438cae | 025fa245d4cbffdaa422287ed2f31c4d0442ee28 | /menus/models.py | 27649dd15508def3b9d933b9bfa95ba0bc8eb771 | [
"MIT"
] | permissive | elcolie/zero-to-deploy | 01f346ca50b8ccb271faef23934abe6a487baca6 | 6191a33ef55af7c550c0e529a4e373bfe40bc014 | refs/heads/master | 2022-02-08T23:22:17.008555 | 2018-06-15T19:39:06 | 2018-06-15T19:39:06 | 137,083,690 | 0 | 0 | MIT | 2022-01-21T19:35:33 | 2018-06-12T14:28:01 | Python | UTF-8 | Python | false | false | 653 | py | from django.db import models
from djchoices import DjangoChoices, ChoiceItem
from commons.models import AbstractTimestamp
class Menu(AbstractTimestamp):
class BackType(DjangoChoices):
food = ChoiceItem(f"Food")
drink = ChoiceItem(f"Drink")
menu_type = models.CharField(max_length=15, choices=... | [
"sarit@elcolie.com"
] | sarit@elcolie.com |
047f0f6a9df8c5388a7a773194f4e8b8a08c80a4 | 3f8dc5d3bbe5faa9507c3941db4da446fb3b0c5c | /day1/day1-07 operators.py | ed7b46019aadc455e2c90d8617cb8e96d35e6dd1 | [
"MIT"
] | permissive | hajin-kim/2020-HighSchool-Python-Tutoring | 91c626593e097dd703f4e84da6a910192f8eefda | 352025a954bff37d21cc3d59e7d5e0f0269a1f17 | refs/heads/main | 2023-03-12T04:22:57.287110 | 2021-03-01T18:27:28 | 2021-03-01T18:27:28 | 325,773,824 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 72 | py | a = int( input() ) * -1
print(a)
b = int( input() )
print(b * -1)
| [
"kimhajin@yonsei.ac.kr"
] | kimhajin@yonsei.ac.kr |
c5cabb06152a474b0fd33a7d8fdaee8b5d41f662 | 50ec14d4d3a461f4e8cdec500e387054c7702f37 | /equip/analysis/constraint/__init__.py | ff472fc22ea757afd022f7f0776971bedd6d65a7 | [
"Apache-2.0"
] | permissive | ZeoVan/equip | e99377b2a3ef20e0468cbfe83be68135ca9fc732 | 470c168cf26d1d8340aa5ab37a5364d999a0b2f4 | refs/heads/master | 2021-06-11T04:40:01.780587 | 2016-12-14T20:09:27 | 2016-12-14T20:09:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 424 | py | # -*- coding: utf-8 -*-
"""
equip.analysis.constraint
~~~~~~~~~~~~~~~~~~~~~~~~~
Represent code constraints.
:copyright: (c) 2014 by Romain Gaucher (@rgaucher)
:license: Apache 2, see LICENSE for more details.
"""
from .container import Constraint
from .expr import Expr, \
Const, \
... | [
"rgaucher@synopsys.com"
] | rgaucher@synopsys.com |
ab64df24d2ab5994bbd12576db574fa3037e90ec | 22b555ed4a5ce9256e81e78977ae5ab50d4af80c | /apps/profile/migrations/0027_auto_20150916_1417.py | 0bd02d9c79f72dcaeb606eb99bb3ece5e03e0e10 | [] | no_license | kcole16/jobfire | 334cfe3a8a3a7028db543a794387e58414e95548 | f55b719f64312bbc3542624d45cf2fa2802779a4 | refs/heads/master | 2021-07-11T06:44:32.295415 | 2015-09-26T21:20:50 | 2015-09-26T21:20:50 | 39,473,036 | 0 | 0 | null | 2021-06-10T20:27:29 | 2015-07-21T22:30:29 | JavaScript | UTF-8 | Python | false | false | 404 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('profile', '0026_auto_20150915_2314'),
]
operations = [
migrations.AlterField(
model_name='company',
... | [
"kcole16@gmail.com"
] | kcole16@gmail.com |
43a08ccc7487f6dc08dd3dcc5dc285c918aaac1d | 27c1e46f8efdaa0009645d2a02d2822e32493469 | /ReportingTool.py | 80c459180736aed755fdd47ce507ec4c49b869df | [
"MIT"
] | permissive | Nsharma96/FullStack | c593a0d7572f071149ec502d5eac1c87d22696c4 | 17d9a6b549e543ca0a5f3b5e0fd799d91b54a74b | refs/heads/master | 2020-04-24T20:28:09.556801 | 2019-03-13T14:59:39 | 2019-03-13T14:59:39 | 172,244,847 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,804 | py | #!/usr/bin/env python2
import psycopg2
import pandas as pd
pd.set_option("display.colheader_justify", "center")
dbname = "news"
def execute_q(q):
db = psycopg2.connect(database=dbname)
c = db.cursor()
c.execute(q)
return c.fetchall()
db.close()
# The most popular three articles of... | [
"noreply@github.com"
] | Nsharma96.noreply@github.com |
db6f2f09a0d8daefdad6eb9f4f41bd89a4ac860e | e7ca19f01903016680ab7b72debc66bafeb1eaac | /frames_orig.py | f398a70f8250512b5b571162de0653df9718e8cd | [] | no_license | MedSun/count_video | 528816f92bf12c5415dd599480eae146e31bcaff | d8aca296ba427e50f95d1d5af4b68a0b615a43dd | refs/heads/master | 2022-11-30T09:09:13.829684 | 2020-08-13T16:17:29 | 2020-08-13T16:17:29 | 287,324,021 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 778 | py | import json
import os
import cv2
import requests
from app import ROOT_DIR
def frames_from_video(res):
response = json.loads(res)
video_name = response["video_name"]
video_file = response["video_file"]
video_cap = cv2.VideoCapture(video_file)
success, image = video_cap.read()
if success:
... | [
"noreply@github.com"
] | MedSun.noreply@github.com |
13d1d80e09ac2d722d4552d168bf1f004a37ebcc | 9f527d2c7378758ee1d1d3d99257f05c55272447 | /web/models.py | 207b02b1d20031e74ef9c43c6eec7be40c64e696 | [] | no_license | coolestcat/higweb | 7dd4048df252221c761520e7a54ad29bc6105343 | 70667711aca7fd28325a3143ee090c45411f3cbc | refs/heads/master | 2021-01-19T00:30:15.817902 | 2015-04-19T22:57:10 | 2015-04-19T22:57:10 | 32,948,450 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 20,217 | py | from __future__ import unicode_literals
from tastypie.utils.timezone import now
from django.db import models
class Alias(models.Model):
aliassernum = models.IntegerField(db_column='AliasSerNum', primary_key=True) # Field name made lowercase.
aliasname = models.CharField(db_column='AliasName', unique=True, m... | [
"alvinleung94@gmail.com"
] | alvinleung94@gmail.com |
f3e6b51c6adbdde53612d33cbfe7e40f64cd622f | 416e78d220f8ed3ebeca547a9f3619e1593ec5a4 | /common/do_excel.py | 4aead9c15b4499200caea02adec7330ecc2fd3a1 | [] | no_license | juanjuankeke/coco | ca33f00ef7c8475b6eb8b9d97d51e4d8503d6345 | cb88cf3dfb9426ccf6b4d0940e09a34ba7322496 | refs/heads/master | 2022-12-22T19:31:53.735388 | 2019-02-23T07:38:56 | 2019-02-23T07:38:56 | 172,161,232 | 0 | 0 | null | 2022-12-08T01:38:07 | 2019-02-23T02:20:50 | HTML | UTF-8 | Python | false | false | 1,871 | py | from openpyxl import load_workbook # 读写
#case_id 第一行 url 第三行 param 第5 method 6 Expected 7
from common import get_path
import json
class Cases:
def __init__(self): #创建手机容器
self.case_id=None
self.url=None
self.param=None
self.method=None
self.Expected=None
self... | [
"1172118331@qq.com"
] | 1172118331@qq.com |
ff48930557120a3d44fe17e1cef02df767b2ea71 | f47ac27c95b3d75314a5acf15c93ea4dd737d5e6 | /android/performance_esweek_rebuttal/parse_timevalues.py | e38d38345da02bca4426c60bb20b51526a4b466a | [] | no_license | nitthilan/ml_tutorials | 10ecc5e3f54b6fa44abf949e80b8a2a1fa63f0fb | a24266882a0754ce5071f7a7cabd0694aae311aa | refs/heads/master | 2021-05-10T20:18:56.931046 | 2020-03-21T09:57:48 | 2020-03-21T09:57:48 | 118,182,234 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 628 | py | filename = "performance.txt"
with open(filename) as f:
content = f.readlines()
# you may also want to remove whitespace characters like `\n` at the end of each line
content = [x.strip() for x in content]
for line in content:
words = line.split()
if(len(words) and words[0]=="count=50"):
print((float(words[5][... | [
"kannappanjayakodinitthilan@steptoe-10-222-0-112.resnet.wsu.edu"
] | kannappanjayakodinitthilan@steptoe-10-222-0-112.resnet.wsu.edu |
643795f151072295d587adb43db76d88e1683f49 | 1d95859dd9154fa2e7f087f111cbb1e1441fb619 | /Chapter4Lists/Proj1.py | c3b1041acd647d9d30c6072fd7842acc785e9d48 | [] | no_license | mrkruoff/Work_with_Automate_the_boring_stuff | d54906b983269e34106fed2966daf2f4f42f8af6 | 2bcd7e45830301511cf414a2d46db9927520402f | refs/heads/master | 2021-07-06T13:34:41.573065 | 2017-09-26T22:21:46 | 2017-09-27T16:56:37 | 104,943,536 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 336 | py | def comma(inputlist):
outputstring=''
outputstring+=inputlist[0]
for i in range(1,len(inputlist)-1):
outputstring+=','+inputlist[i]
outputstring+=',and '+inputlist[len(inputlist)-1]
return outputstring
mylist=['apples','bananas', 'tofu', 'cats', 'dogs', 'mice', 'yogurt']
string=comma(mylist... | [
"ruoffm@oregonstate.edu"
] | ruoffm@oregonstate.edu |
412e8795ac75a224f067ce73eeb0bb392bea7095 | 1f4d3a1e7a18a18f5621a0e623f814df31784a13 | /Exercise/22.return_function.py | 35996ad1bfb32813ff365804f7d23b7816612841 | [] | no_license | skylarzhs/learn-python | 9b681a22f4fe96b894ede91f2967b5b6fc8c092e | b7a243121515ff95e6ca249c296596aef294d9c8 | refs/heads/master | 2021-07-07T07:20:05.139496 | 2020-07-25T07:57:38 | 2020-07-25T07:57:38 | 155,383,640 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,789 | py | # -*- coding:utf-8 -*-
# 可变参数求和
# def calc_sum(*args):
# ax = 0
# for i in args:
# ax = ax + i
# return ax
# def lazy_sum(*args):
# def sum():
# ax = 0
# for i in args:
# ax = ax + i
# return ax
# return sum
# print(calc_sum(1,2,3,4,5))
# f = lazy_sum... | [
"157519788@qq.com"
] | 157519788@qq.com |
0a0504b0bc50786ad6319cc72a59f6bd7ed5d613 | 8f7c595f2b9d075a89417760b7fbf9abb1fecb72 | /try_enricher.py | e94463b5038fad8d0620db03b893bab816739527 | [
"MIT"
] | permissive | MainakMaitra/trading-utils | 555ed240a20b26d4876f1490fc8a2d9273231fc5 | 3e73091b4d3432e74c385a9677b7f7ca4192c67f | refs/heads/main | 2023-07-04T09:19:40.122188 | 2021-08-08T09:01:37 | 2021-08-08T09:01:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 804 | py | import json
import matplotlib.pyplot as plt
import pandas as pd
from common.analyst import fetch_data_from_cache
plt.ioff()
pd.set_option("display.max_columns", None)
pd.set_option("display.width", None)
ticker = "AAPL"
# weekly_options.set_index('Symbol', inplace=True)
# cboe_options = pd.read_csv(f"data/cboesym... | [
"575441+namuan@users.noreply.github.com"
] | 575441+namuan@users.noreply.github.com |
0d8a1b2b108cc0e64cc844704ad0d367dc981df0 | df256ccf9821df359bfc0a6aba66dbf0639f0d09 | /bin/pip | f39dadc90dc8cecdec615b77118e2fbc1495f0e1 | [] | no_license | samiaellin06/Khawoon | 053381e757a09adc9981405f53ff8c4ca5bbc178 | 0d8f16a957726b8c7db22edc787b60c6895ebfe6 | refs/heads/master | 2022-12-08T11:55:43.207109 | 2020-08-27T11:54:25 | 2020-08-27T11:54:25 | 290,758,400 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 399 | #!/home/kruf/PycharmProjects/khawoon/venv/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==10.0.1','console_scripts','pip'
__requires__ = 'pip==10.0.1'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.e... | [
"noreply@github.com"
] | samiaellin06.noreply@github.com | |
eecf1d418155f7ae27b4dce7f4c4aa384bb413b4 | 808e7d23eb345724d9bc06804f352a7ec40fcf3b | /testDjango/views.py | e15286f548f80dd7333e50fab0e1e1c27c4199aa | [] | no_license | fxma/testDjango | 3718c184d62698e7c8b7e61f75d7c5a4d294fce4 | da2bb8e647d5987e3a7ca3fd58f904e88d2bcf11 | refs/heads/master | 2020-04-11T18:42:05.876201 | 2018-12-16T14:39:23 | 2018-12-16T14:39:23 | 162,008,448 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,228 | py | from django.http import HttpResponse,Http404
import time
import datetime
from django.shortcuts import render
from django.shortcuts import render_to_response
import MySQLdb
# def hello(request):
# return HttpResponse("hello world!")
def hello(request):
context = dict()
context['hello'] = 'Hello World!'
... | [
"ma_fengxin@163.com"
] | ma_fengxin@163.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.