blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 288 | content_id stringlengths 40 40 | detected_licenses listlengths 0 112 | license_type stringclasses 2
values | repo_name stringlengths 5 115 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 684
values | visit_date timestamp[us]date 2015-08-06 10:31:46 2023-09-06 10:44:38 | revision_date timestamp[us]date 1970-01-01 02:38:32 2037-05-03 13:00:00 | committer_date timestamp[us]date 1970-01-01 02:38:32 2023-09-06 01:08:06 | github_id int64 4.92k 681M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 22
values | gha_event_created_at timestamp[us]date 2012-06-04 01:52:49 2023-09-14 21:59:50 ⌀ | gha_created_at timestamp[us]date 2008-05-22 07:58:19 2023-08-21 12:35:19 ⌀ | gha_language stringclasses 147
values | src_encoding stringclasses 25
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 128 12.7k | extension stringclasses 142
values | content stringlengths 128 8.19k | authors listlengths 1 1 | author_id stringlengths 1 132 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
21b6d57d62ed2dc0b70f2ca1c93fb04ae5e83bf7 | 51aa2894c317f60726fe9a778999eb7851b6be3e | /140_gui/pyqt_pyside/examples/PyQt_PySide_book/004_Main components/005_Single-line text field/199_Signals - toClass.py | 1ed06d494720f1b7641cfbbcbcb6a9a59f3764d5 | [] | no_license | pranaymate/Python_Topics | dd7b288ab0f5bbee71d57080179d6481aae17304 | 33d29e0a5bf4cde104f9c7f0693cf9897f3f2101 | refs/heads/master | 2022-04-25T19:04:31.337737 | 2020-04-26T00:36:03 | 2020-04-26T00:36:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,636 | py | # -*- coding: utf-8 -*-
from PyQt4 import QtGui
import sys
class SampleWindow(QtGui.QWidget):
def __init__(self):
super(SampleWindow, self).__init__()
self.init_ui()
def init_ui(self):
self.setWindowTitle("Class QLineEdit")
self.resize(300, 100)
self.lineEdit = QtGui.Q... | [
"sergejyurskyj@yahoo.com"
] | sergejyurskyj@yahoo.com |
9cac945a95a8fbd277f48ac5d25a6184294cac51 | 1e8e9f7e1d20b463d92b49261f69d9a659604372 | /sytools/system.py | 0de547862d34c03e92d8cce348b7515f8c437a3b | [
"MIT"
] | permissive | steinnymir/sytools | 40afb2b2df94f6be1181027efe36a0cf77fc6366 | 89d1dcb7dd4e00ee39bad125e5b40f6ebed36d12 | refs/heads/master | 2021-10-26T01:29:47.498565 | 2021-10-20T07:22:34 | 2021-10-20T07:22:34 | 207,303,354 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,319 | py | # -*- coding: utf-8 -*-
"""
@author: Steinn Ymir Agustsson
Copyright (C) 2018 Steinn Ymir Agustsson
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, either version 3 of the License, ... | [
"sagustss@uni-mainz.de"
] | sagustss@uni-mainz.de |
2001ae046de07f29e900485fdc5446da00557a47 | 7f2821183e73b0f95130b7b3b32a19373b1a1813 | /intensity_ratio_experiment_Sunday_20_05_18/calc_gaussian.py | e7d3d90fd64832e5b7614c4f7756bbc3ee20f0a1 | [] | no_license | Pooleyo/intensity_ratio | ca1875c28b6fd8ef72c434a0e046596ba86b5895 | 1dc790907d6aae2035192295eb05b5b08f40e883 | refs/heads/master | 2020-04-04T20:04:23.575007 | 2018-11-05T14:31:25 | 2018-11-05T14:31:25 | 156,232,981 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 418 | py | def run(ansatz, gsqr):
import numpy as np
def gaussian(x, a, x0, sigma):
gaussian = a*np.exp(-(x-x0)**2/(2*sigma**2))
return gaussian
gaussian_intensity = []
for i in gsqr:
current_gaussian_intensity = gaussian(i, ansatz[0], ansatz[1], ansatz[2])
... | [
"ajp560@york.ac.uk"
] | ajp560@york.ac.uk |
815d795e65ee5de343fdce6048fcac429ef14b42 | b7b2f80ab5e1ee0ea028576e3014b62b8d3a8d7e | /pyalarm/pyala-000/pyalapop.py | 5a031205325b4f2f19c1ab31e19ae6398a344ff8 | [] | no_license | pglen/pgpygtk | 4d1405478a714f003984cf3e3db04ff1f767470b | 33f58010e304f1a312f2356de453ecedb7aa21ef | refs/heads/master | 2021-01-22T01:18:52.238415 | 2019-01-01T01:37:24 | 2019-01-01T01:37:24 | 102,215,955 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,332 | py | #!/usr/bin/env python
# ------------------------------------------------------------------------
# Python Alarm. Pop up window and execute instructions.
import os, sys, getopt, signal
import gobject, gtk, pango
import random, time, warnings
def parseline(strx):
#print "strx", strx
if strx[0].startswith("#"):... | [
"peterglen99@gmail.com"
] | peterglen99@gmail.com |
41dfbc4b0176ee8a2d063f18ae5d880d404baca4 | bc2742cac4347eb8652295a0d4aeb8633eea7c1b | /examples/cnn/load_cifar10.py | f54d046d978ce584f99d2dba94e0dbd00c292eaf | [
"MIT"
] | permissive | temp3rr0r/neupy | 933648658cc2a5e85e0fc3955de0a3de65ea97c1 | f36071f5f46bf79ffd18485acca941db578656e8 | refs/heads/master | 2023-05-25T09:55:10.654122 | 2018-12-17T16:56:30 | 2018-12-17T16:56:30 | 163,117,180 | 0 | 0 | MIT | 2023-05-22T21:44:38 | 2018-12-25T23:24:17 | Python | UTF-8 | Python | false | false | 2,270 | py | import os
import tarfile
import numpy as np
import six
from six.moves.urllib.request import urlretrieve
from six.moves import cPickle as pickle
from imagenet_tools import FILES_DIR
CIFAR10_URL = "https://www.cs.toronto.edu/~kriz/cifar-10-python.tar.gz"
CIFAR10_TAR_PATH = os.path.join(FILES_DIR, "cifar-10-python.tar... | [
"mail@itdxer.com"
] | mail@itdxer.com |
f5568a3818954bc4b337c53d099e610f3ba9ee45 | f8c537649f1858742c271097063af7ea42343916 | /models/cl/continual_learner.py | 435b3f9faef5c7aabf11ceab423cb1e8f88c53fe | [] | no_license | msrocean/incremental_cifar100 | 5604e48fde1c201a768402f08a8986d95166b4e0 | c5b13406966a98d4b5ca1b3a61f516701e3031da | refs/heads/master | 2022-04-07T21:50:36.791039 | 2020-03-11T15:40:45 | 2020-03-11T15:40:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,916 | py | import abc
import torch
from torch import nn
class ContinualLearner(nn.Module, metaclass=abc.ABCMeta):
'''Abstract module to add continual learning (CL) capabilities to a classifier.
Adds methods/attributes for various CL methods (SI, LwF, BI-R) to its subclasses.'''
def __init__(self):
super()... | [
"gidovandeven@gmail.com"
] | gidovandeven@gmail.com |
f5f20b3c4722c9747bfad90b38e663bd6f57bf78 | f6ebfe28c30d83b58342e8825f12f44e4164ef4f | /app/models/User.py | 7800a631d9333bc1d186e8e2bc4aae315e9c31e6 | [] | no_license | xssChauhan/philter | 48a81e0850ae7d72a2705d72a8c5afd500e491d7 | eefa4e13d5a3fb59d53450a3ac4aa9835ad0f3ea | refs/heads/master | 2021-01-19T21:06:54.124746 | 2016-11-18T21:01:09 | 2016-11-18T21:01:09 | 88,609,525 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,371 | py | from app import db
from sqlalchemy.dialects.postgresql import JSON
import os
class UserStatus(db.Model):
__tablename__ = "user_status"
id = db.Column(db.Integer,primary_key = True)
fbid = db.Column(db.String(64))
status = db.Column(db.String)
time = db.Column(db.DateTime)
@classmethod
def getLastStep(self,id):... | [
"shikhar.chauhan@live.com"
] | shikhar.chauhan@live.com |
c51c7247f2aa1cbe8e96cbcf8c5dc933fb3945c7 | dd1d4a2b022ddc3212a54c90f626d22fbee77b1f | /check_gradient.py | d84ab5f964aa67c914a83c51a54801c6d3aa93d5 | [
"MIT"
] | permissive | rlowrance/mlpack | 2f56fa9d8ae049611a3bd6284ce86bc51e3292cb | 4a09987fd5efb9736284c94d90aa51b34d4bce7f | refs/heads/master | 2020-05-17T00:52:53.498995 | 2015-04-16T12:14:37 | 2015-04-16T12:14:37 | 34,053,643 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,143 | py | import pdb
import random_sample
import numpy as np
import unittest
from numeric_gradient import numeric_gradient
if False:
pdb.set_trace()
def bottou(w, x, y, loss, gradient, delta, tolerance, debug=False):
'''Use Bottou's recommended approach to check gradient wrt w at x,y.
Check that loss(w', x, y) ~=... | [
"roy.lowrance@gmail.com"
] | roy.lowrance@gmail.com |
358b354abc19214dc2f3611fcc2a0b41d0ebcc48 | a234ecbf8a71075ba90c84f19443d2235c0f4234 | /ScientificComputingWithPython/13/aviread.py | 5f4de06497353b97cf38ac23138a13c542097174 | [] | no_license | hkxIron/hkx_tf_practice | b9b58f7c52b07d4f10709804efc964cf17e5e3ff | 76d0c12750d66b17e71a7102263e1d1fc637611a | refs/heads/master | 2023-08-04T16:51:30.852650 | 2023-08-04T13:05:35 | 2023-08-04T13:05:35 | 118,223,247 | 10 | 13 | null | 2022-12-07T23:32:58 | 2018-01-20T08:14:06 | Jupyter Notebook | UTF-8 | Python | false | false | 663 | py | # -*- coding: utf-8 -*-
"""
播放水波动画
"""
import pyopencv as cv
def show_video(fileorid):
cv.namedWindow(str(fileorid), cv.CV_WINDOW_AUTOSIZE)
video = cv.VideoCapture(fileorid)
img = cv.Mat()
img2 = cv.Mat()
while video.grab():
video.retrieve(img, 0)
#cv.cvtCol... | [
"hukexin0000@126.com"
] | hukexin0000@126.com |
b1e24c027df503fa82fc4f4cbc942663685931e9 | a65e5dc54092a318fc469543c3b96f6699d0c60b | /Personel/Chandrakar/Python/08june/bst_01.py | 0c86275699dd3b790b05849f00c3d9a3a851fdce | [] | no_license | shankar7791/MI-10-DevOps | e15bfda460ffd0afce63274f2f430445d04261fe | f0b9e8c5be7b28298eb6d3fb6badf11cd033881d | refs/heads/main | 2023-07-04T15:25:08.673757 | 2021-08-12T09:12:37 | 2021-08-12T09:12:37 | 339,016,230 | 1 | 0 | null | 2021-08-12T09:12:37 | 2021-02-15T08:50:08 | JavaScript | UTF-8 | Python | false | false | 1,403 | py | from queue import Queue
class bsf :
def __init__(self,aj_list) :
self.aj_list = aj_list
self.visited = {}
self.level = {}
self.parent = {}
self.bfs_traversal = []
self.queue = Queue()
print(f"adjestion list is : {self.aj_list}")
def graph(self) :
... | [
"chandrakarbhagat222@gmail.com"
] | chandrakarbhagat222@gmail.com |
d5d3d226c459d888fc3165c7e0f75da712236391 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03578/s275426829.py | 188b21e5c261c5e0350aa179568a62004a885f7f | [] | 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 | 283 | py | from collections import defaultdict
n = int(input())
d = tuple(map(int, input().split()))
m = int(input())
t = tuple(map(int, input().split()))
l = defaultdict(int)
for x in d:
l[x] += 1
for y in t:
if l[y] == 0:
print('NO')
exit()
l[y] -= 1
print('YES')
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
d8c75d868557761ceca35cbd27414cf2bd6d783b | 9372026aec32fa10896225813986346e472f7a7c | /Algorithm/class43_nypc/S_or_I.py | bf49a80331a744c265eb7a5580a1f53aad6b57ea | [] | no_license | mjsong0712/learn_python | 5809df5b0366b37836633f5fa5e2d96a9cb99798 | 1cc31ca750e76b436596e3a4f6b8f39d7b873624 | refs/heads/master | 2022-05-17T00:54:17.975679 | 2022-05-01T08:07:33 | 2022-05-01T08:07:33 | 235,795,862 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 276 | py | def sir(L):
L1 = L[:4]
L2 = L[4:]
if sum(L1) > sum(L2) and max(L1) <= max(L2):
return "S"
elif sum(L1) <= sum(L2) and max(L1) > max(L2):
return "I"
return "R"
tc = int(raw_input())
for i in range(tc):
v = raw_input().split()
v = list(map(int, v))
print sir(v) | [
"mjsong070712@gmail.com"
] | mjsong070712@gmail.com |
01871cfa2f5e9ab7d038bbd6ac21ba27065f9f38 | f9d564f1aa83eca45872dab7fbaa26dd48210d08 | /huaweicloud-sdk-er/huaweicloudsdker/v3/model/create_route.py | 3569cc6d6841a06e05d30de51e3120c22e4ac201 | [
"Apache-2.0"
] | permissive | huaweicloud/huaweicloud-sdk-python-v3 | cde6d849ce5b1de05ac5ebfd6153f27803837d84 | f69344c1dadb79067746ddf9bfde4bddc18d5ecf | refs/heads/master | 2023-09-01T19:29:43.013318 | 2023-08-31T08:28:59 | 2023-08-31T08:28:59 | 262,207,814 | 103 | 44 | NOASSERTION | 2023-06-22T14:50:48 | 2020-05-08T02:28:43 | Python | UTF-8 | Python | false | false | 4,868 | py | # coding: utf-8
import six
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
class CreateRoute:
"""
Attributes:
openapi_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key is attribute name
... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
8c47cf514869af826cbe348649faeaa9a12d7ef5 | 83de24182a7af33c43ee340b57755e73275149ae | /aliyun-python-sdk-dataworks-public/aliyunsdkdataworks_public/request/v20200518/DeleteMetaCollectionEntityRequest.py | af47b9ea38c36b62f20992c057a6e5c7e72723d9 | [
"Apache-2.0"
] | permissive | aliyun/aliyun-openapi-python-sdk | 4436ca6c57190ceadbc80f0b1c35b1ab13c00c7f | 83fd547946fd6772cf26f338d9653f4316c81d3c | refs/heads/master | 2023-08-04T12:32:57.028821 | 2023-08-04T06:00:29 | 2023-08-04T06:00:29 | 39,558,861 | 1,080 | 721 | NOASSERTION | 2023-09-14T08:51:06 | 2015-07-23T09:39:45 | Python | UTF-8 | Python | false | false | 1,828 | 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... | [
"sdk-team@alibabacloud.com"
] | sdk-team@alibabacloud.com |
1252ff0e0bb20138a17668864a4f6a6679327a28 | 5e8832e7a49e121c4db1f57d036fe39b4250246a | /construct_binary_tree_from_inorder_and_postorder_traversal.py | d7d1fadfe29b47feb89fe0c5370250c3fd682cee | [] | no_license | shaniavina/Leetcode_Python | 9e80477794cd80e00a399d65b76088eea41d80d1 | 185bf1542265f5f4feca2e937d1d36a7bb4a5d2b | refs/heads/master | 2022-10-12T10:56:23.476219 | 2022-09-21T01:53:40 | 2022-09-21T01:53:40 | 52,979,850 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,010 | py | # Definition for a binary tree node.
# class TreeNode(object):
# def __init__(self, x):
# self.val = x
# self.left = None
# self.right = None
class Solution(object):
def buildTree(self, inorder, postorder):
"""
:type inorder: List[int]
:type postorder: List[int]
... | [
"noreply@github.com"
] | shaniavina.noreply@github.com |
83634139f263d82e4c3566c63f167c0fcbe24b73 | 592961def9fe287a31e117649f1ac1e97b085a9b | /venv/lib/python2.7/site-packages/werkzeug/contrib/profiler.py | 06b72c15ac23e9f6bb59f15bbd8a26d81759340f | [] | no_license | Rushin95/The_Trip_Planner-Lyft_vs_Uber | 62f03a1df8c6a0268089f50f4e80ec3d9b6b9870 | 4eeea4029eb4df047471b92065455a6828232293 | refs/heads/master | 2021-01-19T11:52:47.766019 | 2018-05-03T23:59:58 | 2018-05-03T23:59:58 | 82,268,914 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,197 | py | # -*- coding: utf-8 -*-
"""
werkzeug.contrib.profiler
~~~~~~~~~~~~~~~~~~~~~~~~~
This module provides a simple WSGI profiler middleware for finding
bottlenecks in web application. It uses the :mod:`profile` or
:mod:`cProfile` module to do the profiling and writes the stats to the
stream provide... | [
"juancpinzone@hotmail.com"
] | juancpinzone@hotmail.com |
a4f959c4510d787173944f0a70c852ff9f4cb9ef | 3ff62666a034c4ff3f9f241e806bd29d787b7244 | /pykrs/event/models.py | 71c6ae039e7e98fca64f18eb95caaaff91fc6326 | [] | no_license | lqez/seminar | f421b8657d1fd31f8d8a02cd5def1d97523f9fec | e035f76465424672a4874b86c76498b5d7859c0e | refs/heads/master | 2021-01-22T02:53:16.664739 | 2014-10-15T04:58:01 | 2014-10-15T04:58:01 | 25,199,045 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,512 | py | # -*- coding: utf-8 -*-
from django.db import models
from django.utils import timezone
from random import randint
import re
class Event(models.Model):
title = models.CharField(max_length=200, db_index=True)
desc = models.TextField(blank=True, null=True)
capacity = models.IntegerField()
available_fro... | [
"ez@smartstudy.co.kr"
] | ez@smartstudy.co.kr |
2979e42453b9fdc66e16aedacc0f361289e72f06 | 266ffd65306f964c2c7cd50d9e8c3c409eee73ee | /thedeployer/libs/XSV/compile/AnyAttribute.py | 99b19cc83bd85ad5688f3e74a63e73f77a290447 | [] | no_license | vimov/Deployer | 3d543dd5c53c675217f0e3c7fc7034c86bffae75 | dbcdde0d83ee49a2812d4f65bb13ff78ce865da9 | refs/heads/master | 2021-01-25T04:52:49.317670 | 2012-09-17T15:24:37 | 2012-09-17T15:24:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 611 | py | """Schema compilation: AnyAttribute component"""
__version__="$Revision: 1.1 $"
# $Id: AnyAttribute.py,v 1.1 2002-06-28 09:40:22 ht Exp $
from Component import Component
class AnyAttribute(Component):
namespace=None
def __init__(self,sschema,xrpr,wildcard):
Component.__init__(self,sschema,xrpr,None)
self... | [
"ahmed@manhag.org"
] | ahmed@manhag.org |
702ec03e604043fa66644b43e4ea52c9d45b48e8 | 6e3cf63bef81b0a80ea229c55ac196de3730ac3f | /16 Moderate/16-2 wod frequencies.py | 112e4b43b2a499db0859a32adc8add6ebfece285 | [] | no_license | AsadullahFarooqi/CTCI | 8e32bfa9d5f990e435c38e49f22fb5a98e3352fb | 7ea8c62b65607d8888529cc1de84a2b4a7249d98 | refs/heads/master | 2020-05-30T17:18:45.938270 | 2019-11-06T07:31:01 | 2019-11-06T07:31:01 | 189,868,300 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 666 | py | def solution(book):
# brute force way
wfht = {} # word frequency hash table
start = 0
end = 0
while end < len(book):
if book[end] == " " and book[start:end] in wfht:
wfht[book[start:end]] += 1
start = end+1
end = end+2
continue
elif bo... | [
"asadullah.itcgcs@gmail.com"
] | asadullah.itcgcs@gmail.com |
f4e0aa1ffb67409261270e716a7d138870965ccd | d41d18d3ea6edd2ec478b500386375a8693f1392 | /plotly/validators/heatmap/hoverlabel/font/_family.py | 7c23bb8a77081938502aac25379d4c83573e149e | [
"MIT"
] | permissive | miladrux/plotly.py | 38921dd6618650d03be9891d6078e771ffccc99a | dbb79e43e2cc6c5762251537d24bad1dab930fff | refs/heads/master | 2020-03-27T01:46:57.497871 | 2018-08-20T22:37:38 | 2018-08-20T22:37:38 | 145,742,203 | 1 | 0 | MIT | 2018-08-22T17:37:07 | 2018-08-22T17:37:07 | null | UTF-8 | Python | false | false | 528 | py | import _plotly_utils.basevalidators
class FamilyValidator(_plotly_utils.basevalidators.StringValidator):
def __init__(
self,
plotly_name='family',
parent_name='heatmap.hoverlabel.font',
**kwargs
):
super(FamilyValidator, self).__init__(
plotly_name=plotly_n... | [
"adam.kulidjian@gmail.com"
] | adam.kulidjian@gmail.com |
3be11e801b06c50ff0ec56264d4766e191da1e93 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/153/usersdata/274/65447/submittedfiles/ex1.py | e3eda8506f8fba5673cb2d30e06d5355de1b0be7 | [] | 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 | 325 | py | # -*- coding: utf-8 -*-
from __future__ import division
a = float(input('Digite a: '))
b = float(input('Digite b: '))
c = float(input('Digite c: '))
#COMECE A PARTIR DAQUI!
delta = (b**2)-(4*a*c)
if delta>=0:
x1=(-(b)+((delta)**(1/2)))/2
x2=(-(b)-((delta)**(1/2)))/2
print(x1)
print(x2)
else:
print("... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
871b857949acaf4ec941f9759345b32185eac64a | ff9de8e4945b69438f6b2f9874a7b9c240966e82 | /examples/simpleflask/test.py | b743a7a1898691cecc3258454ddd2e4001ff3fb4 | [] | no_license | magma2003/pythontraining | 70ed88377697c7beaafd5175a908a90fd2ab2d20 | 320845620f3a725ab7f2962e8013e7ad1f76070c | refs/heads/master | 2021-10-22T22:31:16.077237 | 2019-03-13T03:08:49 | 2019-03-13T03:08:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 822 | py | import unittest
import app
class SimpleFlaskTester(unittest.TestCase):
def setUp(self):
print('SimpleFlaskTester SetUp Loaded')
self.app = app.app.test_client(self)
# propagate the exceptions to the test client
self.app.testing = True
def tearDown(self):
print('Simpl... | [
"user.nuage@gmail.com"
] | user.nuage@gmail.com |
ddc592e01b6ebd5fb823e84634c41af41d694b14 | ae7f4a70a0bdb2e98d13c996c75d274241c25278 | /leetcode/67.py | 5d23ae5362c0b558886c6e9708e047372e20090d | [
"MIT"
] | permissive | zi-NaN/algorithm_exercise | 5d17e1f6c3cae89ed3c7523b344e55c5a10e3e62 | 817916a62774145fe6387b715f76c5badbf99197 | refs/heads/master | 2020-03-30T12:00:46.694490 | 2019-06-23T11:04:34 | 2019-06-23T11:04:34 | 151,204,296 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 796 | py | class Solution:
def addBinary(self, a, b):
"""
:type a: str
:type b: str
:rtype: str
"""
i = len(a) - 1
j = len(b) - 1
plus_one = 0
digits = []
while(i >= 0 and j >= 0):
digits.append(str(int(a[i])^int(b[j])^plus_one))
... | [
"zinanzhao2-c@my.cityu.edu.hk"
] | zinanzhao2-c@my.cityu.edu.hk |
c787ccff140ce6b98256b8593f22bf91f1d3b949 | 33a5095d107c2ae4c94a67c9eec64874ecefca8a | /genesis/src/test.py | 586edb3913d6213e30da2d75b11d21f21f510ec3 | [
"Apache-2.0"
] | permissive | freight-trust/besu-toolchain | 8efed67ceaf545946d10e2b0dae4b983e3012099 | 92787a7c2575b0693a08f37a96dac0d67714f4d3 | refs/heads/master | 2023-01-12T00:11:46.687288 | 2020-11-14T04:17:30 | 2020-11-14T04:17:30 | 273,159,380 | 0 | 0 | Apache-2.0 | 2020-08-28T09:53:23 | 2020-06-18T06:28:29 | Scala | UTF-8 | Python | false | false | 6,554 | py | #!/usr/bin/env python3
# For help:
#
# - Run with no arguments.
# - Ask Everett Hildenbrandt (@ehildenb).
# Goals:
#
# - Validate test inputs with JSON Schemas.
# - Check that tests have been filled.
# - Filter tests based on properties.
# - Convert between various test filler formats.
# Non-goals:
#
# - Test fillin... | [
"sam@freighttrust.com"
] | sam@freighttrust.com |
97a29b6f6a8f20cc7e3d0be4f787426559eca623 | e4818e82ee99c174347a30c387df79c6a9dc795d | /2_1/Initialization_Regularization_Gradient_Checking/Initialization/2_1.py | 46b5f6b8f518b5386d752d30e9d2a4f9fd9bf013 | [] | no_license | liuwei881/Andrew_Ng_deeplearning | 09601aac66a64c11e531b81df930b4d5c2019919 | 00429bf5b5d7e45d48bc7fd1a968c9e2a32072df | refs/heads/master | 2020-04-10T21:01:02.862354 | 2019-01-16T08:53:04 | 2019-01-16T08:53:04 | 161,285,571 | 10 | 1 | null | null | null | null | UTF-8 | Python | false | false | 6,793 | py | # coding=utf-8
import numpy as np
import matplotlib.pyplot as plt
import sklearn
import sklearn.datasets
from init_utils import sigmoid, relu, compute_loss, forward_propagation, backward_propagation
from init_utils import update_parameters, predict, load_dataset, plot_decision_boundary, predict_dec
train_X, train_Y, ... | [
"liuweia@mail.open.com.cn"
] | liuweia@mail.open.com.cn |
95b266ce892227f4d57b150ae22942b8b528cfb4 | cbaf98027e93643680a53288c8f8aa8f3034775e | /src/huaytools/pytorch/modules/wrapper/encoder.py | 85937ef8cf73887b2bfd1135623226b3fb1b7d53 | [] | no_license | liufqing/studies | 752f83619d9e5ca0e8c37f324687c70305ee35ac | c670a1e1e5c0e857930973cf6f50d2aa3801c6bf | refs/heads/master | 2023-08-21T05:40:13.625830 | 2021-10-27T13:39:05 | 2021-10-27T13:39:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,556 | py | #!/usr/bin/env python
# -*- coding:utf-8 -*-
"""
Time: 2021-10-23 9:29 下午
Author: huayang
Subject:
"""
import os
import sys
import json
import doctest
from typing import *
from collections import defaultdict
from typing import Callable
from torch import Tensor, nn as nn
def default_encode_wrapper(encoder, inputs... | [
"imhuay@163.com"
] | imhuay@163.com |
af0bf8a32167b972f52035738e34073b99d7365b | 96907061fa01c92b8c2eb22a1100354d6c197515 | /hostmanager/urls.py | b82a19a10078ea9acdc0d2bfc36a40c9fb80d220 | [
"MIT"
] | permissive | kingsdigitallab/devops-django | b4120bc29d5fa77fe78ac8df7a239c5b53e6fd5a | faaa58a413d3e763c82ccd7a27a1bd27586fe9dd | refs/heads/master | 2021-07-05T14:01:10.744952 | 2017-09-29T22:18:59 | 2017-09-29T22:18:59 | 105,320,684 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 544 | py | from django.conf.urls import url
from .views.overview import (OverviewIndex)
from .views.servers import (ServersIndex, ServersAdd, ServersSubnetScan)
urlpatterns = [
url(r'^$', OverviewIndex.as_view(), name='overview'),
url(r'^servers/$', ServersIndex.as_view(), name='servers'),
url(r'^servers/add/$', Se... | [
"brian.maher@kcl.ac.uk"
] | brian.maher@kcl.ac.uk |
d0a8d950a2bd033a091f4f639c7f638f032d59c9 | 786027545626c24486753351d6e19093b261cd7d | /ghidra9.2.1_pyi/ghidra/program/model/lang/ParallelInstructionLanguageHelper.pyi | 7b15a9895e01ce5c81fb433c90caf29bbdc2f4b5 | [
"MIT"
] | permissive | kohnakagawa/ghidra_scripts | 51cede1874ef2b1fed901b802316449b4bf25661 | 5afed1234a7266c0624ec445133280993077c376 | refs/heads/main | 2023-03-25T08:25:16.842142 | 2021-03-18T13:31:40 | 2021-03-18T13:31:40 | 338,577,905 | 14 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,756 | pyi | import ghidra.program.model.listing
import java.lang
class ParallelInstructionLanguageHelper(object):
"""
ParallelInstructionLanguageHelper provides the ability via a language
specified property to identify certain parallel instruction attributes.
Implementations must define a public default constru... | [
"tsunekou1019@gmail.com"
] | tsunekou1019@gmail.com |
e869b78bc85b4271714c8b89ead5fc1502bfe70b | 1573857cc75adf40eb53cbc688ab7ac76d49754d | /operators/fsklConverter.py | 8fa1618c8ffdcf4117d39e17c142a8d357db4a4f | [] | no_license | Silvris/Monster-Hunter-Frontier-Importer | a92a2f2e039ea937eb0bf88d050dc46a5ef8264f | bfa350bb881cf71b3e1993b10f18b16c14336f56 | refs/heads/master | 2022-12-07T16:57:36.321134 | 2020-08-19T04:51:19 | 2020-08-19T04:51:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,441 | py | # -*- coding: utf-8 -*-
"""
Created on Tue Aug 18 23:29:33 2020
@author: AsteriskAmpersand
"""
# -*- coding: utf-8 -*-
"""
Created on Tue Aug 18 22:47:34 2020
@author: AsteriskAmpersand
"""
import bpy
from mathutils import Vector, Matrix
from collections import OrderedDict
from bpy.types import Operator
MACHINE_EPS... | [
"a20122661@pucp.pe"
] | a20122661@pucp.pe |
25c2289a47aa55439915d67f9e4f74d944301d7d | e1c5b001b7031d1ff204d4b7931a85366dd0ce9c | /DY/reskim/2018/filescount.py | a83268aa844d211fc7b8c278c3e3a167d639ed9d | [] | no_license | fdzyffff/IIHE_code | b9ff96b5ee854215e88aec43934368af11a1f45d | e93a84777afad69a7e63a694393dca59b01c070b | refs/heads/master | 2020-12-30T16:03:39.237693 | 2020-07-13T03:06:53 | 2020-07-13T03:06:53 | 90,961,889 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 526 | py | import os
import sys
def my_walk_dir(my_dir,my_list):
for tmp_file in os.listdir(my_dir):
tmp_file_name = my_dir+'/'+tmp_file
if os.path.isfile(tmp_file_name):
if 'failed' in tmp_file_name:continue
# if not '_skimed' in tmp_file_name:continue
if not '.root' in ... | [
"1069379433@qq.com"
] | 1069379433@qq.com |
34d22462299fb3c89f5fc8769d8a3089c4bdb61c | bdf86d69efc1c5b21950c316ddd078ad8a2f2ec0 | /venv/Lib/site-packages/scrapy/linkextractors/regex.py | 6a52a9eeb46e5f743c84ca1efe06afedcf4ce7d0 | [] | no_license | DuaNoDo/PythonProject | 543e153553c58e7174031b910fd6451399afcc81 | 2c5c8aa89dda4dec2ff4ca7171189788bf8b5f2c | refs/heads/master | 2020-05-07T22:22:29.878944 | 2019-06-14T07:44:35 | 2019-06-14T07:44:35 | 180,941,166 | 1 | 1 | null | 2019-06-04T06:27:29 | 2019-04-12T06:05:42 | Python | UTF-8 | Python | false | false | 1,365 | py | import re
from scrapy.link import Link
from six.moves.urllib.parse import urljoin
from w3lib.html import remove_tags, replace_entities, replace_escape_chars, get_base_url
from .sgml import SgmlLinkExtractor
linkre = re.compile(
"<a\s.*?href=(\"[.#]+?\"|\'[.#]+?\'|[^\s]+?)(>|\s.*?>)(.*?)<[/ ]?a>",
re.... | [
"teadone@naver.com"
] | teadone@naver.com |
30ce898e25e535d7428c80c9b9b85d70cf232859 | d64a4e2e983893633fdbedc407cf0df5a7c27b0a | /django/cbv/person/models.py | d3173b6766850a3da5ffaa3aae4f3d918ce36bc3 | [] | no_license | hgkang9/TIL_C9 | b60fa0a228093b542fcc7c57a3174cd6f8684526 | ac06a2a22d23b2dcd8c3d9ccdaea1ed819a5b5a7 | refs/heads/master | 2020-04-17T17:17:55.475230 | 2019-05-02T03:08:37 | 2019-05-02T03:08:37 | 166,777,125 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 395 | py | from django.db import models
from django.core.validators import EmailValidator, MinValueValidator
class Person(models.Model):
last_name=models.CharField(max_length=50)
email=models.CharField(max_length=100, validators=[EmailValidator(message='이메일 형식에 맞지 않습니다.')])
age=models.IntegerField(validators=[MinValu... | [
"hgkang822@gmail.com"
] | hgkang822@gmail.com |
05be808171c3c49a12580576900c631654bcd973 | 6268a19db5d7806b3a91d6350ec2777b3e13cee6 | /old_stuff/code/hpe-feb2019/qi2016/from_shanxin/src_more_detail/src/prepare_data/Preproc_Ego_test_3.py | f0772b80c15295b3307676cc5f3ce253f1aa5ab6 | [] | no_license | aaronlws95/phd_2019 | 3ae48b4936f039f369be3a40404292182768cf3f | 22ab0f5029b7d67d32421d06caaf3e8097a57772 | refs/heads/master | 2023-03-22T14:38:18.275184 | 2021-03-21T11:39:29 | 2021-03-21T11:39:29 | 186,387,381 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,760 | py | __author__ = 'Shanxin'
__author__ = 'Shanxin'
import numpy
from PIL import Image
import scipy.io
import matplotlib.pyplot as plt
import matplotlib.colors as colors
import scipy.ndimage.interpolation as interplt
from matplotlib import pylab
import h5py
from src.utils import convert
import csv
from mpl_toolkits.mplot3d... | [
"aaronlws95@gmail.com"
] | aaronlws95@gmail.com |
c8013f7f4ff0c25513cde62e447ea32cdeda5540 | 97724145652ba49c5aacaf66d54a89f71c3f6426 | /03-Attributes-and-Methods-Exercise/document_management/category.py | bca2930234151904edc8c3b588e3dfd2ded6b9ea | [] | no_license | l-damyanov/Python-OOP---February-2021 | c0d729c99d6af44a55ee7f7a05cf66fb6d69876b | e92417ed38f1b24405973b2027c11201d09ddb83 | refs/heads/main | 2023-03-31T07:45:09.347412 | 2021-04-01T20:24:27 | 2021-04-01T20:24:27 | 341,599,115 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 232 | py | class Category:
def __init__(self, id, name,):
self.id = id
self.name = name
def edit(self, new_name):
self.name = new_name
def __repr__(self):
return f"Category {self.id}: {self.name}"
| [
"l_l_damyanov@abv.bg"
] | l_l_damyanov@abv.bg |
7f5c3f597abbd07c874d19750851884628025ae1 | 866dee1b3d01b863c31332ec81330d1b5ef5c6fa | /openquake.hazardlib/openquake/hazardlib/tests/gsim/bindi_2014_test.py | 9989a0a50e5ebf25e857890a69f528d8ff867e52 | [
"MIT",
"AGPL-3.0-only"
] | permissive | rainzhop/ConvNetQuake | 3e2e1a040952bd5d6346905b83f39889c6a2e51a | a3e6de3f7992eac72f1b9883fec36b8c7fdefd48 | refs/heads/master | 2020-08-07T16:41:03.778293 | 2019-11-01T01:49:00 | 2019-11-01T01:49:00 | 213,527,701 | 0 | 0 | MIT | 2019-10-08T02:08:00 | 2019-10-08T02:08:00 | null | UTF-8 | Python | false | false | 5,536 | py | # -*- coding: utf-8 -*-
# vim: tabstop=4 shiftwidth=4 softtabstop=4
#
# Copyright (C) 2014-2016 GEM Foundation
#
# OpenQuake is free software: you can redistribute it and/or modify it
# under the terms of the GNU Affero General Public License as published
# by the Free Software Foundation, either version 3 of the Licen... | [
"rainzhop@gmail.com"
] | rainzhop@gmail.com |
b48fe66a1fb7cc4ce0c9f36bc36820aac0dd727a | 2479345dafbf0ac1118f34fbd3471871a3ac5c11 | /demo/exhand/stack.py | e6cb5a39bfee408e693542ae6c8a20354bbc812f | [] | no_license | srikanthpragada/PYTHON_06_MAY_2021 | e2fc4d32a38f085658f87d35f31df65ee837a440 | f30a3c4541e0fc15d157446721b514f791602919 | refs/heads/master | 2023-06-02T23:13:53.786444 | 2021-06-16T03:00:38 | 2021-06-16T03:00:38 | 365,402,518 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,269 | py | class StackFullError(Exception):
def __str__(self):
return "Stack is full!"
class StackEmptyError(Exception):
def __str__(self):
return "Stack is empty!"
# Iterator
class Stack_Iterator:
def __init__(self, data):
self.data = data
self.pos = len(data) - 1
def __next__... | [
"srikanthpragada@gmail.com"
] | srikanthpragada@gmail.com |
78e597331294a86f67b4abe9f37e1f15edf62f09 | 2d10f7e8966c118f02989909551ae6a4fe24e370 | /tests/helpers/polls/api/commands.py | d82727a4ffff0684c7f8d3daf2f2ec4530d14009 | [
"BSD-2-Clause"
] | permissive | gitter-badger/dependencies | 62f23069b5e54eaf266ab37b1d6a8331f5505191 | b7d96dfe8c2cf74f7a3003cbb4ba5c6dbe1d57f0 | refs/heads/master | 2020-04-04T20:52:05.964575 | 2018-10-29T00:36:27 | 2018-10-29T00:36:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,990 | py | from django.contrib.admin.models import ADDITION, CHANGE, DELETION, LogEntry
from django.contrib.auth.models import User
from django.db.models import Model
from rest_framework.renderers import DocumentationRenderer
from rest_framework.request import Request
from rest_framework.response import Response
from rest_framewo... | [
"proofit404@gmail.com"
] | proofit404@gmail.com |
1dc61eaafeef2104295ae55424cc472e012a9fe2 | 12f18662719d04d2404396b9059b60525528f557 | /findsportsordermanagement-master/marketplace/urls.py | d5267449d3b6ec279c395c07dc9a05198a782504 | [] | no_license | ujjalgoswami/ordermanagementcustomdashboard | 0bf4a5770d1913b257a43858d778e630e671a342 | acd18510b0934601d30bd717ea4b3fbb61ecfb5c | refs/heads/master | 2021-02-04T10:04:27.380674 | 2020-02-28T01:37:35 | 2020-02-28T01:37:35 | 243,653,613 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 365 | py | from django.urls import path
from . import views
urlpatterns = [
path('', views.index, name='index'),
path('uploadcsv',views.file_upload, name='uploadcsv'),
path('viewjson',views.viewjson, name='viewjson'),
path('viewjsonerrors',views.viewjsonerrors, name='viewjsonerrors'),
path('simple_upload',vie... | [
"ujjalgoswami92@gmail.com"
] | ujjalgoswami92@gmail.com |
d4afbc736929ec716d9807c489b3c3e4943f353b | 9a60a4e2709e43051f0432808c0a37d1e38cb5f0 | /笔试题 记录/春招/美团点评/No_1.py | 7c1771eeee48a136710d59d5b9d997122b708c68 | [] | no_license | wuyaqiang/Algorithm_Learn | 82eede27e3e4a5f04e49d58dba3484f86d62808c | 0c938ebaef19b7d5ed911fe46681a372c1df64cd | refs/heads/master | 2020-05-02T14:25:24.019395 | 2019-09-23T03:27:13 | 2019-09-23T03:27:13 | 178,010,385 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,805 | py |
if __name__ == "__main__":
nums = [int(x) for x in input().split()]
n = nums[0]
m = nums[1]
matrix = []
for i in range(n):
row = [int(x) for x in input().split()]
matrix.append(row)
list1 = []
list2 = []
dict1 = {}
dict2 = {}
for i in range(n):
for j in ... | [
"wuyaqiang0202@outlook.com"
] | wuyaqiang0202@outlook.com |
1a8dbe55b2df2a795acb306f3c9e085b369d9cee | 2bcd6b3080905a34968a8684f60e184f7b1cf879 | /gmn/src/d1_gmn/app/migrations/0008_chainidtopersistentid.py | 9787d7b3c89d8425dd140b0cd0b73bbafad08f98 | [
"Apache-2.0"
] | permissive | tomsaleeba/d1_python | 8fdccfa2fefa94f96f2dc738b3353c2bc94f3549 | f9b53cadaa00fea96bc706d07e35f2d708a1bc98 | refs/heads/master | 2020-03-12T19:46:46.418913 | 2018-11-20T04:06:20 | 2018-11-20T04:06:20 | 122,432,518 | 0 | 0 | Apache-2.0 | 2018-02-22T23:45:04 | 2018-02-22T04:55:35 | Python | UTF-8 | Python | false | false | 573 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.1 on 2017-06-03 03:04
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('app', '0007_delete_chainidtopersistentid'),
]
operations = [
migrations.CreateModel(
name='ChainIdToPe... | [
"git@dahlsys.com"
] | git@dahlsys.com |
4771679371c919e94ab48a19fe59c2d34dcd87a0 | 74d09d69be561b845e85c94515f5e08f232c5bd1 | /examples/download_all_medias.py | 37b33dbbd7832dd0ed734ef43ccba17ddadb6d5d | [
"MIT"
] | permissive | bedefaced/instagrapi | 402e61f0513f3cf22364f0eb2aa51d14e4e6a3db | 14922b4038de0b693c6dd396c7ee0b57e626f32e | refs/heads/master | 2023-06-20T21:54:24.204845 | 2021-08-03T09:21:31 | 2021-08-03T09:21:31 | 389,445,935 | 1 | 0 | MIT | 2021-07-26T10:47:57 | 2021-07-25T21:42:06 | null | UTF-8 | Python | false | false | 1,575 | py | import os
from instagrapi import Client
ACCOUNT_USERNAME = os.environ.get("IG_USERNAME")
ACCOUNT_PASSWORD = os.environ.get("IG_PASSWORD")
def main(username: str, amount: int = 5) -> dict:
"""
Download all medias from instagram profile
"""
amount = int(amount)
cl = Client()
cl.login(ACCOUNT_U... | [
"x11org@gmail.com"
] | x11org@gmail.com |
30f7ea4ae71026a4715eab30a3434ccd7aa92a4b | 27b017b0c181d681124c5ddd70d8496c0cfa16cf | /nn/model.py | 745199b851cad6663d722a461894eba740896e5f | [
"Unlicense"
] | permissive | AP-Atul/nn | 70fb035853f38f5ce3e1d7732a3fb70297e0abc6 | 231cddc373a68ab5321b1a29ff8deeaa67994abc | refs/heads/main | 2023-04-08T07:34:01.899797 | 2021-04-19T05:38:13 | 2021-04-19T05:38:13 | 359,051,810 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,238 | py | import numpy as np
from . import mul, add, softmax, tanh
class Model:
def __init__(self, layers_dim, epochs=2000, epsilon=0.01, reg=0.01, debug=False):
(self.b, self.W, self.epochs,
self.epsilon, self.reg, self.debug) = (list(), list(), epochs,
epsi... | [
"atulpatare99@gmail.com"
] | atulpatare99@gmail.com |
dac7b95984972c7c484f444d4c6e3970d70e5867 | 855501a4cb8a54e0c977d53e6f5d76d8938f99cb | /Permuting Two Arrays.py | c0645c7a802a5ee59d5d6c6392702d4d12f5401c | [] | no_license | Beowulfdgo/HackerRank | 3d7713f68a595af76d857ac9955ae55565b8391f | e4384253f27eee296e0cad39a402cadf47c90164 | refs/heads/master | 2023-05-31T05:30:21.425792 | 2021-06-29T08:47:11 | 2021-06-29T08:47:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 310 | py | n=int(input())
for _ in range(n):
size,k=map(int,input().split())
l1=list(map(int,input().split()))
l2=list(map(int,input().split()))
l1.sort()
l2.sort(reverse=True)
for i in range(size):
if l1[i]+l2[i]<k:
print("NO")
break
else:
print("YES") | [
"54479676+CormacKrum@users.noreply.github.com"
] | 54479676+CormacKrum@users.noreply.github.com |
41d50b901c7050826550a8a8be4502f893d43d2e | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_211/ch117_2020_03_30_12_44_23_292620.py | b4ddce4fe714b0d749183d2d53c892a3305cab27 | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 137 | py | import math
def snell_descartes(n1,n2,teta1):
seno=(n1)*(1/n2)*(math.sin(math.radians(teta1)))
x=math.asin(seno)
return x
| [
"you@example.com"
] | you@example.com |
a76dcdf4a6f8185086bd4d21f280e2fdc133cbdd | 325fde42058b2b82f8a4020048ff910cfdf737d7 | /src/maintenance/azext_maintenance/vendored_sdks/maintenance/aio/operations_async/_operation_operations_async.py | 3f727b6422e4d32653a4ebf49d62751dd8de38bc | [
"LicenseRef-scancode-generic-cla",
"MIT"
] | permissive | ebencarek/azure-cli-extensions | 46b0d18fe536fe5884b00d7ffa30f54c7d6887d1 | 42491b284e38f8853712a5af01836f83b04a1aa8 | refs/heads/master | 2023-04-12T00:28:44.828652 | 2021-03-30T22:34:13 | 2021-03-30T22:34:13 | 261,621,934 | 2 | 5 | MIT | 2020-10-09T18:21:52 | 2020-05-06T01:25:58 | Python | UTF-8 | Python | false | false | 4,662 | 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 ... | [
"noreply@github.com"
] | ebencarek.noreply@github.com |
b8bbe3b8070e9744bfef933cf628b483decc966f | ad6681ec221fddc78956d45182f22bd8f1aae8e1 | /装饰器/类做装饰器.py | 0b068b1b089cf2e12d8df4a51612e62092583331 | [] | no_license | caoxp930/MyPythonCode | cb2428fd7078100df0b118f64713b7db76fe1e23 | 6b7e17b23fbaddcc69812ba7a14a0a5ad548ad4b | refs/heads/master | 2023-03-15T01:22:17.847582 | 2021-03-02T12:37:09 | 2021-03-02T12:37:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 920 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# author:fei time:2019/7/1 21:09
# def outer(func):
# def inner(*args, **kwargs):
# print("前增加")
# func(*args, **kwargs)
# print("后增")
#
# return inner
class Test:
"""这是一个用来做装饰器的类"""
def __init__(self, func):
self.func = fu... | [
"jxxaizwt@icloud.com"
] | jxxaizwt@icloud.com |
d45eaebe6e2f7708d08b3d2d9bb098cb1dad82c3 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/otherforms/_stocked.py | 60f7530fc73c92f34f7d07ba79f0d04d95f1f454 | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 220 | py |
#calss header
class _STOCKED():
def __init__(self,):
self.name = "STOCKED"
self.definitions = stock
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.basic = ['stock']
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
945b1db667c29a93b10b530c20f76a5209ffa01d | 09e57dd1374713f06b70d7b37a580130d9bbab0d | /benchmark/startPyquil3032.py | c587f9a6dfab2b3dc6a69d84946f21ab22077e40 | [
"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 | 1,915 | py | # qubit number=4
# total number=42
import pyquil
from pyquil.api import local_forest_runtime, QVMConnection
from pyquil import Program, get_qc
from pyquil.gates import *
import numpy as np
conn = QVMConnection()
def make_circuit()-> Program:
prog = Program() # circuit begin
prog += H(3) # number=16
prog... | [
"wangjiyuan123@yeah.net"
] | wangjiyuan123@yeah.net |
23b131adf2333ea3b3c61010aaf3a189ee46405e | d7016f69993570a1c55974582cda899ff70907ec | /sdk/apimanagement/azure-mgmt-apimanagement/generated_samples/api_management_get_api_export_in_open_api3dot0.py | e92557f9fa9f2888d9e10a8982aec7bf3a6cc968 | [
"LicenseRef-scancode-generic-cla",
"MIT",
"LGPL-2.1-or-later"
] | permissive | kurtzeborn/azure-sdk-for-python | 51ca636ad26ca51bc0c9e6865332781787e6f882 | b23e71b289c71f179b9cf9b8c75b1922833a542a | refs/heads/main | 2023-03-21T14:19:50.299852 | 2023-02-15T13:30:47 | 2023-02-15T13:30:47 | 157,927,277 | 0 | 0 | MIT | 2022-07-19T08:05:23 | 2018-11-16T22:15:30 | Python | UTF-8 | Python | false | false | 1,655 | 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 ... | [
"noreply@github.com"
] | kurtzeborn.noreply@github.com |
4892dda320dba0a9b728d706fac502247417fe4a | 2f85a77fd3c0945fa69f75fc1bcf0c97ddf88fda | /server/datasources/__init__.py | 96280d9e3d7cd8c815cb35244318478ea1cc560d | [
"MIT"
] | permissive | rhlobo/bigtempo_server | 0f0950663e8f99573d4b4c0a0141c0b833342704 | 29f327dc03ab7145dc2b12207b06bf9724d4f460 | refs/heads/master | 2016-08-04T11:09:33.952055 | 2015-01-31T18:55:48 | 2015-01-31T18:55:48 | 29,748,256 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 433 | py | import os
import bigtempo.core
import flask_bigtempo
store = None
engine = bigtempo.core.DatasourceEngine()
__all__ = []
for module in os.listdir(os.path.dirname(__file__)):
basename, extension = os.path.splitext(module)
if module == '__init__.py' or extension.lower() not in ['.py']:
continue
_... | [
"rhlobo+github@gmail.com"
] | rhlobo+github@gmail.com |
2b25681c64fa0de3d7e14eb64d22b074c22d20c6 | 29a5c2a7759e4874f658f99a0ce0840cf608bc79 | /bpm_client/tests/list_task_waiting_event_names_test.py | 21ef5495708a8cfade96f75840a9fcc7fb399921 | [] | no_license | TeamNext/bpm-client | 06ed50447ac025809a80c839dd440c878dc3f16a | 5e42ac918055ec15ae3f1eb5fd9bb7827e7c1e78 | refs/heads/master | 2016-09-06T09:51:16.951710 | 2016-03-02T09:52:03 | 2016-03-02T09:52:03 | 12,051,230 | 0 | 0 | null | 2014-07-08T07:43:47 | 2013-08-12T08:25:17 | Python | UTF-8 | Python | false | false | 780 | py | from django.test import TestCase
from bpm.kernel.tests.helper import *
from bpm_client.client import *
from .client_test_helper import run_test_server
class ListTaskWaitingEventNamesTest(TestCase):
def setUp(self):
super(ListTaskWaitingEventNamesTest, self).setUp()
apply_context(self, run_test_se... | [
"taowen@gmail.com"
] | taowen@gmail.com |
879f65c99f6513683ef604ebad105b9d29aedf62 | c7f488ab27d71e0dfbb75c75577ca830926f9515 | /sentinel.py | 16959b3171f17c37aed751c6071667e16126e59f | [
"MIT"
] | permissive | sourcery-ai-bot/sentinel | 2e2bb6e73b3cb078c641c9ad21251fbccfdbfffc | 72e4efe764dfcb85b633e59fbebd3aa82a95f6de | refs/heads/master | 2022-03-08T05:37:17.571580 | 2019-10-22T03:05:09 | 2019-10-22T03:05:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,733 | py | #!/usr/bin/env python
# coding: utf-8
"""
Create sentinel and singleton objects.
Copyright 2014 © Eddie Antonio Santos. MIT licensed.
"""
import inspect
__all__ = ['create']
__version__ = '0.1.2'
def get_caller_module():
"""
Returns the name of the caller's module as a string.
>>> get_caller_module()... | [
"easantos@ualberta.ca"
] | easantos@ualberta.ca |
25efe5dd4dd254b03d9f3839ec9bab6b1362e937 | 3d19e1a316de4d6d96471c64332fff7acfaf1308 | /Users/P/psychemedia/gviz_demo.py | eff3eabfd88bcd36d878178f019fcad409361efc | [] | no_license | BerilBBJ/scraperwiki-scraper-vault | 4e98837ac3b1cc3a3edb01b8954ed00f341c8fcc | 65ea6a943cc348a9caf3782b900b36446f7e137d | refs/heads/master | 2021-12-02T23:55:58.481210 | 2013-09-30T17:02:59 | 2013-09-30T17:02:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,010 | py | import scraperwiki
import gviz_api
#Example of:
## how to use the Google gviz Python library to cast Scraperwiki data into the Gviz format
## how to render the gviz data format using the Google Visualization library
#Based on the code example at:
#http://code.google.com/apis/chart/interactive/docs/dev/gviz_api_lib.ht... | [
"pallih@kaninka.net"
] | pallih@kaninka.net |
d650fba931f58d666c4e87ae27ea2641c257a9ba | f368b66a14d4bf0bfae2e07abf5744f238bf3790 | /python/p37_threading01.py | d02ad1c3ee966e811fa098c204b38596c128d724 | [] | no_license | impelfin/rpi_with_iot | 5f41ab89cdaf9c96b9b620fa27c3569942166179 | d5f9e63ea4a08032378994c004164805fa2562ab | refs/heads/master | 2023-04-26T02:13:31.831256 | 2021-04-28T13:31:52 | 2021-04-28T13:31:52 | 317,713,012 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 215 | py | import threading
def sum(low, high):
total = 0
for i in range(low, high):
total += i
print('Sub Thread', total)
t = threading.Thread(target=sum, args=(1, 100000))
t.start()
print('Main Thread') | [
"impelfin@gmail.com"
] | impelfin@gmail.com |
959b30f809e6bd07cd57cc6e0e149a771f646427 | 18d6f2f7992d74c92508c96d33c115731da50b06 | /web/migrations/0006_organizationmember_user.py | fb0cfce29af113dfb6d0b9d8d1c812f73c732919 | [
"Apache-2.0"
] | permissive | zinaukarenku/zkr-platform | 3ccb41bc28d7156430cdfec05c0fff098e7093d1 | 8daf7d1206c482f1f8e0bcd54d4fde783e568774 | refs/heads/master | 2022-12-09T21:00:12.364617 | 2021-03-14T07:51:38 | 2021-03-14T07:51:38 | 144,894,184 | 2 | 0 | Apache-2.0 | 2022-11-22T06:28:43 | 2018-08-15T19:21:07 | Python | UTF-8 | Python | false | false | 568 | py | # Generated by Django 2.1 on 2018-08-20 14:53
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('web', '0005_user_photo'),
]
operations = [
migrations.AddField(
... | [
"k.vycius@gmail.com"
] | k.vycius@gmail.com |
204e970d3ab9f519e01559b87c8f391e63763e3c | ec61946a176935044d08cf1244d2185f2460df32 | /pyleecan/Methods/Slot/HoleM58/check.py | 4f756fef81a5d7a41af431baa83e520e87966fc0 | [
"Apache-2.0"
] | permissive | Lunreth/pyleecan | d3974a144cb8a6c332339ab0426f1630b7516fc9 | 1faedde4b24acc6361fa1fdd4e980eaec4ca3a62 | refs/heads/master | 2023-06-07T01:46:32.453763 | 2021-07-01T21:29:51 | 2021-07-01T21:29:51 | 383,880,732 | 1 | 0 | Apache-2.0 | 2021-07-07T17:47:01 | 2021-07-07T17:47:01 | null | UTF-8 | Python | false | false | 1,162 | py | # -*- coding: utf-8 -*-
from numpy import arcsin, pi
from ....Methods.Slot.Slot import SlotCheckError
from ....Methods.Slot.HoleM58 import *
def check(self):
"""Check that the HoleM58 object is correct
Parameters
----------
self : HoleM58
A HoleM58 object
Returns
-------
None
... | [
"pierre.bonneel@gmail.com"
] | pierre.bonneel@gmail.com |
749da7b22ae63e5c190d1ca296eaabec2234d087 | 7c86bbe4fd7106896f3359142ca53c45b78c72a1 | /environment/__init__.py | 1b8ac647d14a374e3881320b86caea583d64eeae | [] | no_license | DropD/pylatex | 4aaa65fe5fbacb6eaf000f1a4f623494a11adcd2 | 3836c1bc5a5639f7035c11949d98b40e0af3b944 | refs/heads/master | 2016-09-06T04:36:07.360857 | 2012-08-06T21:59:53 | 2012-08-06T21:59:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 173 | py | from pylatex import command
from pylatex import text
#import pylatex.tools.is_latex
from environment import environment
from doc_env import doc_env
__all__ = [environment]
| [
"r.haeuselmann@gmx.ch"
] | r.haeuselmann@gmx.ch |
d0109c3fd25bd5d5cf7cc701f9a5ae24199d38e9 | 14f455693213cae4506a01b7d0591e542c38de79 | /vendor/paypal/standard/pdt/forms.py | 075e63458268485da916ab5d35f80cf225bcfab1 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | Cvalladares/Newsblur_Instrumented | f0b14d063759973330f202108a7eed3a29bcc033 | 4d6ee6aa9713879b1e2550ea5f2dbd819c73af12 | refs/heads/master | 2022-12-29T15:19:29.726455 | 2019-09-03T17:09:04 | 2019-09-03T17:09:04 | 206,130,022 | 0 | 0 | MIT | 2022-12-10T06:00:26 | 2019-09-03T17:07:04 | Python | UTF-8 | Python | false | false | 248 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from paypal.standard.forms import PayPalStandardBaseForm
from paypal.standard.pdt.models import PayPalPDT
class PayPalPDTForm(PayPalStandardBaseForm):
class Meta:
model = PayPalPDT | [
"Cvalladares4837@gmail.com"
] | Cvalladares4837@gmail.com |
d51c2071200b024d5511d241c92c27e21e191b39 | 27d7b99866a0bb16883ff2efebbe5ca4b3b27855 | /cherrypy/_json.py | 0c2a0f0e0a127292b37bfb70cd184b8fd25fc2dd | [
"BSD-3-Clause"
] | permissive | cherrypy/cherrypy | f85e054251d55583c34f381baf6570760d5af4c1 | 0050ed1e75f375d7790efcf69a954c25a9896c7b | refs/heads/main | 2023-09-02T23:02:21.291624 | 2023-08-04T13:52:17 | 2023-08-04T13:52:17 | 57,436,777 | 1,934 | 497 | BSD-3-Clause | 2023-05-14T04:47:02 | 2016-04-30T10:09:26 | Python | UTF-8 | Python | false | false | 440 | py | """
JSON support.
Expose preferred json module as json and provide encode/decode
convenience functions.
"""
try:
# Prefer simplejson
import simplejson as json
except ImportError:
import json
__all__ = ['json', 'encode', 'decode']
decode = json.JSONDecoder().decode
_encode = json.JSONEncoder().iterenco... | [
"jaraco@jaraco.com"
] | jaraco@jaraco.com |
bd4ebfcc27cfa661fd3d60f22a06403443ce287d | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /PMbf4ktWRLTrh4YQA_17.py | 5969c786cb45a5cd115af4945cb1b60a3fc11952 | [] | no_license | daniel-reich/ubiquitous-fiesta | 26e80f0082f8589e51d359ce7953117a3da7d38c | 9af2700dbe59284f5697e612491499841a6c126f | refs/heads/master | 2023-04-05T06:40:37.328213 | 2021-04-06T20:17:44 | 2021-04-06T20:17:44 | 355,318,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 258 | py |
from datetime import datetime, timedelta
def add_n_days_to_a_date(date: str, n: int) -> str:
day, month, year = int(date[:2]), int(date[2:4]), int(date[4:])
end = datetime(year, month, day) + timedelta(days=n)
return end.strftime('%d%m%Y')
| [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
553f7b882ceac057c4dae506eec2116f9abbde99 | e8cbb671a2954def16e624c279da2dbfeab41618 | /statistics/log_likelihood_normal_two_parameters.py | fb5fd6959ce0c8c49bc0a0490553a422d6337472 | [] | no_license | stevalang/Data-Science-Lessons | f89fb1a5f006442d727f095532ef5107ff8a72c4 | eada1d8cce18e4e7071713bff437bc11764a499b | refs/heads/main | 2023-04-03T12:43:15.153845 | 2021-04-14T08:52:16 | 2021-04-14T08:52:16 | 320,352,403 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 814 | py | from scipy.stats import norm
import numpy as np
def log_likehood_normal_two_parameters(mu, sigma_sq, data_in):
"""
Consume the parameters
Args:
mu ([type]): [mean]
sigma_sq ([type]): [variance]
data_in ([type]): [likelihood of a fixed dataset]
"""
normal = norm(mu, np.sqrt(... | [
"rbeecommerce@gmail.com"
] | rbeecommerce@gmail.com |
1aeffff5a75a7bf281a50c93ff533ab0c183814b | fdb0dfffaa7689c20191f933ca12e0efb463f2b7 | /regwall/tests/articles/apps.py | db850eed51a77c431624feca15abf5c3e966f86e | [
"BSD-3-Clause"
] | permissive | richardcornish/django-registrationwall | e6d34500e5207562aa601266403565c793f391bc | 56eaa99b720905797137c9c0de7428ac469ffda6 | refs/heads/master | 2021-06-24T11:13:26.102807 | 2017-08-30T18:51:20 | 2017-08-30T18:51:20 | 47,536,524 | 9 | 2 | null | null | null | null | UTF-8 | Python | false | false | 191 | py | from __future__ import unicode_literals
from django.apps import AppConfig
from django.utils.translation import ugettext_lazy as _
class ArticlesConfig(AppConfig):
name = _('articles')
| [
"richardcornish@gmail.com"
] | richardcornish@gmail.com |
3698d68561c93dd5204fed9bbf751bd134052634 | 0af30c2e3ddcc80a19ea9cfaad9d7e1fedf8b876 | /210118/DFS/음료수 얼려먹기/이동재.py | 2a4ae20fde0c0a051c9c027154ebc04320214d60 | [] | no_license | winterash2/algorithm_study_2021_1 | d1cd6077f71f68e7fc3eb6dfae7b2cc220885e4c | c1fee62c7e5e560c3bf7ae5e6166866d0147f23f | refs/heads/master | 2023-04-02T20:11:04.169856 | 2021-04-05T11:18:22 | 2021-04-05T11:18:22 | 327,563,535 | 1 | 2 | null | 2021-01-24T14:17:40 | 2021-01-07T09:28:08 | Python | UTF-8 | Python | false | false | 712 | py | # N, M = [int(x) for x in input().split()] # 세로, 가로
# ice_map = []
# for _ in range(N):
# ice_map.append([int(x) for x in input()])
N, M = 4, 5
ice_map = [[0, 0, 1, 1, 0], [0, 0, 0, 1, 1], [1, 1, 1, 1, 1], [0, 0, 0, 0, 0]]
def grassfire(ice_map, i, j):
global N, M
if ice_map[i][j] == 1:
return
... | [
"winterash2@naver.com"
] | winterash2@naver.com |
068b594b9c77bd11166ed8ea49c53db2f4845831 | ee88d3aaba1708bbb7779aab5ca696ff26b626dc | /python/residual_learning/residual_state_machines.py | b8bacf9a0179b6e99da00a98b3f339a38cea8431 | [
"BSD-3-Clause"
] | permissive | cbschaff/benchmark-rrc | f72a4e507940a615c75cd68ecef50dcafc22e573 | 6fb12eecbaa778c60c5728dba4414330c901b09b | refs/heads/master | 2023-06-28T07:29:53.683087 | 2021-08-03T15:31:30 | 2021-08-03T15:31:30 | 363,255,977 | 12 | 4 | BSD-3-Clause | 2021-08-04T09:10:31 | 2021-04-30T20:50:58 | Python | UTF-8 | Python | false | false | 3,311 | py | from .residual_state import ResidualState
from mp.state_machines import MPStateMachine
from cic.states.custom_state_machines import CICStateMachineLvl2, CICStateMachineLvl4
from cpc.state_machine import CPCStateMachine, CPCStateMachineL4
import os
MP_LVL3_LOGDIR = os.path.join(os.path.dirname(__file__), 'models/mp_lvl... | [
"cbschaff@ttic.edu"
] | cbschaff@ttic.edu |
286f0a21656e1debf5f4246769e9f2b4527e5d87 | 3f4a0515f207e93de156667adc8c74109cdded43 | /mpl_imshow_height_ratio_no_gaps/mpl_imshow_AB_panel_no_gaps.py | a94c53c5aca3a148d9c0666d1fd8b83d07676886 | [] | no_license | khx0/mpl-benchmarks | 32fde150f3b27d7311672d570c99b56e1dc269fd | 848a2626ea057a91deb1556c6fc6ad1da3b23e64 | refs/heads/master | 2021-08-15T02:33:40.141534 | 2021-08-09T18:15:54 | 2021-08-09T18:15:54 | 125,873,309 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,680 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
##########################################################################################
# adapted by: Nikolas Schnellbaecher
# contact: khx0@posteo.net
# date: 2021-05-14
# file: mpl_imshow_AB_panel_no_gaps.py
# tested with python 3.7.6 in conjunction with mpl version 3.4.2
... | [
"khx0@posteo.net"
] | khx0@posteo.net |
85357c5b98de5abc9d97ac6cb2ebeb2f28d10778 | 7453e57d3ebad93ad0f0dbb3035a35250cf9bbc2 | /Part I - Basics/Chapter 10 - Testing your Code/Problems/11-1/test_cities.py | e47b659b2e996fd0b34995538f9365838a818136 | [] | no_license | brewswain/PCC | cc115544d21e2907592d6c57bfefd551585cb32a | bbbc9d14e76d4a504b8c4c5c00b0140e9983cc27 | refs/heads/master | 2022-05-15T15:36:12.121121 | 2022-03-08T22:20:05 | 2022-03-08T22:20:05 | 188,480,294 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 385 | py | import unittest
from city_functions import city_details
class CityTestCase(unittest.TestCase):
"""Tests for city_functions.py."""
def test_city_country(self):
"""Does function work when population is withheld??"""
formatted_details = city_details('tacarigua', 'trinidad')
self.assertEq... | [
"brandonlee2543@hotmail.com"
] | brandonlee2543@hotmail.com |
01be6ed0e96acad5e8df80bbe8de45bbd7027cf1 | 4bffa932ee2466b7ab6aa805857b9f389874a9ae | /quart/flask_patch/__init__.py | 8697b2fe61ff39aa71af050c202a684d6b11e571 | [
"MIT"
] | permissive | async-talks/quart | 95abfb2bfaa7c77852c5a33351f5e3dcab6e02a8 | 85b9a5877f23ba03e932087bbe28709ab082a2b8 | refs/heads/master | 2021-09-01T22:14:14.797346 | 2017-12-28T18:00:15 | 2017-12-28T20:42:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,369 | py | import asyncio
# This patches asyncio to add a sync_wait method to the event
# loop. This method can then be called from within a task including a
# synchronous function called from a task. Sadly it requires the
# python Task and Future implementations, which invokes some
# performance cost.
asyncio.Task = asyncio.tas... | [
"philip.graham.jones@googlemail.com"
] | philip.graham.jones@googlemail.com |
5cfd482803e82d6670cbfc8aad8c883155223707 | e7d5306d764faa082ceb5382fda8e0299e3a6a41 | /backend/users/migrations/0002_auto_20210210_2207.py | e3ad19612f4130349fdc94b11e4446d3aed1f39c | [] | no_license | crowdbotics-apps/the-regency-communi-24439 | 1574c0f6f8508182817f48c7351487bae7c9286c | 3a065fdf65149a27c62e84522eeeabd4fd73bb1f | refs/heads/master | 2023-03-03T07:16:24.230876 | 2021-02-11T13:46:49 | 2021-02-11T13:46:49 | 337,866,553 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,275 | py | # Generated by Django 2.2.18 on 2021-02-10 22:07
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("users", "0001_initial"),
]
operations = [
migrations.AddField(
model_name="user",
name="last_updated",
... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
5dd6b702219fc2b0a8a4a7730b2302350c47738d | 3d221dd5d03f41bf03ccbecce7aeaabd7f27a3f1 | /integration-tests/features/steps/component_analysis.py | de049ef67ea23ce8cecaa2f641db74d2f465be4b | [
"Apache-2.0"
] | permissive | miteshvp/fabric8-analytics-common | 1387e42160daa6a78e03d4666eb8c072af1b889d | bc6ecc0aa350d6429e7b2829333a59748550476a | refs/heads/master | 2021-05-05T07:40:14.326280 | 2018-01-25T06:00:58 | 2018-01-25T06:00:58 | 89,997,478 | 0 | 0 | null | 2017-05-02T06:08:04 | 2017-05-02T06:08:03 | null | UTF-8 | Python | false | false | 7,714 | py | """Tests for API endpoints that performs component search and component analysis."""
import requests
from behave import given, then, when
from urllib.parse import urljoin
from src.parsing import *
from src.utils import *
from src.authorization_tokens import *
@given('Component search service is running')
def runnin... | [
"ptisnovs@redhat.com"
] | ptisnovs@redhat.com |
1709e92dbb07c369d92000c5b6d51be4228e6a56 | 1ddbe64e41ba648bb60a8758be6764e19b1c418a | /.svn/pristine/17/1709e92dbb07c369d92000c5b6d51be4228e6a56.svn-base | a071ff4e36a8c2aa317a32e668cf0b29e7812860 | [] | no_license | zhaozw/freetime5 | 9bc3d0671a594822cc82e04b69c8016b7afd0554 | 99c47ad235583e765c35627ba34d4f496ccccbe4 | refs/heads/master | 2020-03-08T04:09:15.293616 | 2020-02-11T06:06:29 | 2020-02-11T06:06:29 | 127,913,013 | 0 | 0 | null | 2018-04-03T13:31:36 | 2018-04-03T13:31:35 | null | UTF-8 | Python | false | false | 4,175 | # -*- coding=utf-8 -*-
'''
Created on 2015年9月25日
@author: liaoxx
'''
import copy
from majiang2.entity.uploader import uploadVideo as naviteUploadVideo
from tuyoo5.core import tyconfig
from tuyoo5.core import tyglobal
from freetime5.util import ftlog
ROUND_COUNT = 'roundCount'
REMAIN_MAX_TIME = 'continueSeconds'
ROO... | [
"tuyoo@tuyoodeMac-mini-8.local"
] | tuyoo@tuyoodeMac-mini-8.local | |
c12db976a879bc9db0b2c603caeda6fc8291cc99 | bbf7787d94e97d4e0c9bceb46203c08939e6e67d | /django-python/urlpatterns/urlpatterns/wsgi.py | 250dadc9ec7a9684efec05cd2b1824fbccccf9ec | [] | no_license | llanoxdewa/python | 076e6fa3ed2128c21cdd26c1be6bc82ee6917f9c | 6586170c5f48827a5e1bcb35656870b5e4eed732 | refs/heads/main | 2023-06-16T05:31:52.494796 | 2021-07-09T09:04:30 | 2021-07-09T09:04:30 | 362,782,196 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 399 | py | """
WSGI config for urlpatterns project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_S... | [
"llanoxdew4@gmail.com"
] | llanoxdew4@gmail.com |
618901099b5e93fb385f3297a6cd0e1ad1bd2be0 | 338298474c517e28d9a214c3525b9709625fa438 | /YouWeesh/Mocks/mockNotifications.py | 678ccdaf546689607c5d01c90d05031d9d426e5f | [] | no_license | vincehar/Backend | f5a8f0e264de2ba7ccadba3bce015f3a30e9c478 | fb143c6c70cb65018d0436bf5b891cb72620208d | refs/heads/master | 2023-07-06T10:37:50.057555 | 2023-06-28T13:04:36 | 2023-06-28T13:04:36 | 73,698,999 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,080 | py | # Send to single device.
from pyfcm import FCMNotification
push_service = FCMNotification(api_key="AIzaSyCmXqLvUggroOQvuCFObVTdo7KnVffqzeo")
# Your api-key can be gotten from: https://console.firebase.google.com/project/<project-name>/settings/cloudmessaging
registration_id = "csv4GAoEDEw:APA91bGK8tE7X1ezvDVL1QPR43... | [
"you@example.com"
] | you@example.com |
fe6e60fa197de0759bb2d2e2eb4641cba26b3bd8 | 6680af9871865f9bf3e87d6cb0f51f387dbfa11d | /demo/just_a_test.py | 4c8492a1f27d301eabb72b17aff39375b7fa354c | [] | no_license | kuntzer/sclas | 3dbea5d8ddd1a68cef4df8547ad8565388d0a38b | 9fc19c33d4a7931f297b7389fa47fe0a9b14b988 | refs/heads/master | 2020-05-21T22:47:17.915457 | 2016-10-07T08:08:02 | 2016-10-07T08:08:02 | 64,305,298 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,817 | py | import sclas
import os
import numpy as np
import logging
logging.basicConfig(format='%(asctime)s %(levelname)s: %(name)s(%(funcName)s): %(message)s', level=logging.DEBUG)
stellar_types = ['O', 'B', 'A', 'F', 'G', 'K', 'M']
all_stellar_types = ['%s%s' % (letter, ii * 5) for letter in stellar_types for ii in range(2)]
a... | [
"thibault.kuntzer@epfl.ch"
] | thibault.kuntzer@epfl.ch |
d8a3766627f0bce23d481794131696eba58c8ef2 | a19a1a5c5b7ab45075a5ca1822c584056acdadc7 | /config/settings/local.py | f61c96b5ef5b23ed3f498c90361de80fe3ed271c | [
"MIT"
] | permissive | aashiqms/ask | 9a6ee1f3224e7eaecf46b171a97c087fa598e817 | ce7c73f9a28f346fc266a3eaf57771a91dc6928a | refs/heads/master | 2022-07-20T05:13:25.574889 | 2020-05-11T18:43:25 | 2020-05-11T18:43:25 | 262,261,423 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,190 | py | from .base import * # noqa
from .base import env
# GENERAL
# ------------------------------------------------------------------------------
# https://docs.djangoproject.com/en/dev/ref/settings/#debug
DEBUG = True
# https://docs.djangoproject.com/en/dev/ref/settings/#secret-key
SECRET_KEY = env(
"DJANGO_SECRET_KEY... | [
"aashiqms@outlook.com"
] | aashiqms@outlook.com |
25db5e22fa04a36b5cee5269cd32c3e8077a0ec9 | dd4d2589d1f14303cacd3b7ee1dd5f6bacd3bf3c | /company/amazon/tree/zigzag.py | a13bbe56b070688dfd764a14d6c39707ed2f605e | [] | no_license | salujaharkirat/ds-algo | ec22eaae81bdb78f2818248508325a536aedbb7b | 819b5971826d97ec600b92776c5158518c9cbf22 | refs/heads/master | 2023-05-02T17:20:49.425484 | 2021-05-23T07:54:29 | 2021-05-23T07:54:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,040 | py | # Definition for a binary tree node
# class TreeNode:
# def __init__(self, x):
# self.val = x
# self.left = None
# self.right = None
from collections import deque
class Solution:
# @param A : root node of tree
# @return a list of list of integers
def zigzagLevelOrder(self, A):... | [
"saluja.harkirat@gmail.com"
] | saluja.harkirat@gmail.com |
b09f905971a374ff556c7f7a7017d41882207be5 | 64f64590d3abf99d1c3f2103f677cfaba57cdc63 | /care/status/migrations/0003_status_image.py | f5533bf9fb328d2fe222047ee752cc69705ba26d | [] | no_license | the-coders-hub/fbhack | a3196532465239c099399025853a8db5f75283f2 | 6860bfdf8c3c93a2e7e3b709a80708bca7d8e2ab | refs/heads/master | 2020-04-10T11:05:25.851733 | 2015-03-15T02:56:48 | 2015-03-15T02:56:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 457 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('status', '0002_auto_20150314_2027'),
]
operations = [
migrations.AddField(
model_name='status',
name... | [
"dheeru.rathor14@gmail.com"
] | dheeru.rathor14@gmail.com |
63cfb1332e8c33cdd6eb80bf587d81de9eb70227 | f9f78c5e2ef8db7c00851ac5f2a0a5eaade1c52f | /label_add.py | 11d362d96d01ef0359f313a0681d6cc89e37e1f5 | [] | no_license | SnowMasaya/jubatus_hackathon | 48fe87668d3973d1a959598e63f8b3395755628c | 962717d1b65b7730b012b3ccc908b128831a2d0e | refs/heads/master | 2021-01-01T16:19:36.077183 | 2015-08-23T22:58:37 | 2015-08-23T22:58:37 | 41,234,770 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,567 | py | #!/usr/bin/env python
#-*- coding:utf-8 -*-
import re
f1 = open("minister_exp_count.csv", "r")
key_data = ()
election_data = {}
for line in f1.readlines():
split_data = line.split(',')
split_data[0] = re.sub(r'_[0-9]', "" , split_data[0])
split_data[2] = re.sub(r'\n', "" , split_data[2])
key_data = (s... | [
"snow.akogi.pgel@gmail.com"
] | snow.akogi.pgel@gmail.com |
00b98f2f8daf89455d1ec3542e0a0cb10215efce | 602516f95f6285d7c86191957710110f993a60a3 | /pytorch_practice_15.py | 78f4950c59d79c4d9dddae9cd1d4ac7dc2c7aa49 | [] | no_license | OlgaBelitskaya/kaggle_pytorch | 428f580ba7efe3a0f3cebb9d855c2d48ec77f30c | 1de8058702b1e4d1bcb379c011177933f1cd7085 | refs/heads/main | 2023-01-02T09:07:16.396605 | 2020-10-28T16:59:57 | 2020-10-28T16:59:57 | 307,856,449 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,831 | py | # -*- coding: utf-8 -*-
"""pytorch-practice-15.ipynb
Automatically generated by Colaboratory.
Original file is located at
https://colab.research.google.com/drive/1AB7GS0OMixGCCJEofCBax31Vyg4Fbtke
Reading classics [Deep Learning Models](https://nbviewer.jupyter.org/github/rasbt/deeplearning-models/blob/master/pyt... | [
"safuolga@gmail.com"
] | safuolga@gmail.com |
d2d5a1321674de2d2d92bd1205a8d8658eeda7a7 | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_2652486_0/Python/JongMan/luck1.py | dca2efdbb1fedde31b11e2a5709d803ae3527033 | [] | no_license | alexandraback/datacollection | 0bc67a9ace00abbc843f4912562f3a064992e0e9 | 076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf | refs/heads/master | 2021-01-24T18:27:24.417992 | 2017-05-23T09:23:38 | 2017-05-23T09:23:38 | 84,313,442 | 2 | 4 | null | null | null | null | UTF-8 | Python | false | false | 1,125 | py | import sys
rl = sys.stdin.readline
t = int(rl())
R, N, M, K = map(int, rl().split())
print 'Case #1:'
cnt = {}
for i in xrange((M-1)**N):
choice = i
cards = []
for j in xrange(N):
cards.append((choice % (M-1)) + 2)
choice /= (M-1)
cards = tuple(sorted(cards))
cnt[cards] = cnt.get(... | [
"eewestman@gmail.com"
] | eewestman@gmail.com |
0fe6454956f4984a877a2ce578d72b4da81acdc7 | a7b0d36ed471f48b549355430eb474d1f212fed4 | /app/urls.py | 5377aff00526714ba27015adadf9402c83bdb881 | [
"MIT"
] | permissive | Yezz123-Archive/E-Commerce-Boilerplate | 93fd1aca5fb462c44915aeb60a1e89284c15ad0a | c57196b92ae5395bbfa0ef97f50425904fe2ead2 | refs/heads/main | 2023-05-07T05:08:59.232857 | 2021-06-05T11:56:51 | 2021-06-05T11:56:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 862 | py | from django.conf.urls import url, include
from django.contrib import admin
from django.conf import settings
from products.views import products_fill
from accounts import urls as urlpatterns
from products import urls as urls_products
from cart import urls as urls_cart
from search import urls as urls_search
from checkout... | [
"yasserth19@gmail.com"
] | yasserth19@gmail.com |
1ef4514fadea1b1f2dd7b8aa5283fa88650c126c | 7950c4faf15ec1dc217391d839ddc21efd174ede | /problems/0724.0_Find_Pivot_Index.py | 4196ecd06e15e1db3a33445ba172058d0625f3d7 | [] | no_license | lixiang2017/leetcode | f462ecd269c7157aa4f5854f8c1da97ca5375e39 | f93380721b8383817fe2b0d728deca1321c9ef45 | refs/heads/master | 2023-08-25T02:56:58.918792 | 2023-08-22T16:43:36 | 2023-08-22T16:43:36 | 153,090,613 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 620 | py | '''
Success
Details
Runtime: 116 ms, faster than 93.10% of Python online submissions for Find Pivot Index.
Memory Usage: 14.5 MB, less than 27.83% of Python online submissions for Find Pivot Index.
'''
class Solution(object):
def pivotIndex(self, nums):
"""
:type nums: List[int]
:rtype: in... | [
"838255715@qq.com"
] | 838255715@qq.com |
840c00c0f7046e249164c880621a431e30e64f88 | 05de1cbbd24ae7d1bf151300f0508406a02dbec3 | /service/migrations/0001_initial.py | d17d447099ac71f079f91c65db12710f6a3f0f9e | [] | no_license | ziaurjoy/my-portfolio-site | 4872e218731a96109f8e5db2e58dca5076528aa5 | 22f849e222793b30f79477e1000d5a89e6569c4c | refs/heads/master | 2023-04-03T14:18:49.830927 | 2021-04-21T07:03:16 | 2021-04-21T07:03:16 | 355,043,552 | 0 | 0 | null | 2021-04-06T17:21:23 | 2021-04-06T03:22:10 | JavaScript | UTF-8 | Python | false | false | 624 | py | # Generated by Django 3.2 on 2021-04-16 15:27
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Service',
fields=[
('id', models.BigAutoField... | [
"ziaurjoy802@gmail.com"
] | ziaurjoy802@gmail.com |
88f81387c8dabbba21650c65f16ae48cc4510730 | c57d5416278e60b5f326ac914ccda40ad52cdb85 | /default/tasks.py | b3905990197ba9fd0b78ed6155c9d72d3a0d0ab5 | [] | no_license | guluzadef/Yemake | 5f303dfe153454cfa94356216962d31afe780e61 | ede535d38227ff462d160b232e6574c4bc0e6a09 | refs/heads/master | 2022-11-28T23:23:36.758736 | 2019-10-02T16:20:21 | 2019-10-02T16:20:21 | 211,689,279 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 589 | py | from __future__ import absolute_import, unicode_literals
from celery import shared_task
from django.core.mail import EmailMultiAlternatives
def send_mail_task(to_mail,link):
subject, from_email, to = 'hello', 'elxjd.2014@gmail.com', to_mail
text_content = 'Кликните по ссылке,чтобы активировать аккаунт'
htm... | [
"you@example.com"
] | you@example.com |
769c31a43db0a6059d7503c227a2672a172665fb | e4ec5b6cf3cfe2568ef0b5654c019e398b4ecc67 | /azure-cli/2.0.18/libexec/lib/python3.6/site-packages/azure/mgmt/compute/v2017_03_30/models/additional_unattend_content.py | 795ae9359da0f9bcd3399a4e37463668d2eb6f9c | [] | no_license | EnjoyLifeFund/macHighSierra-cellars | 59051e496ed0e68d14e0d5d91367a2c92c95e1fb | 49a477d42f081e52f4c5bdd39535156a2df52d09 | refs/heads/master | 2022-12-25T19:28:29.992466 | 2017-10-10T13:00:08 | 2017-10-10T13:00:08 | 96,081,471 | 3 | 1 | null | 2022-12-17T02:26:21 | 2017-07-03T07:17:34 | null | UTF-8 | Python | false | false | 2,493 | 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 ... | [
"Raliclo@gmail.com"
] | Raliclo@gmail.com |
99a48bff18d32076ccd62e6c1a35c7217e195c5d | c1e31f49a59beb6089328d09040f6f48d2e12cde | /lib/python2.7/init_dbus.py | 32aaefecdfb924ce841f5ffaf776bd7e1850f469 | [
"Python-2.0"
] | permissive | kernsuite-debian/casalite | 3d81761e0d8ae497f97ea242e98d4357618a7591 | b620981f14f4ba5b77f347f649cd2c16d498db04 | refs/heads/master | 2021-06-22T16:22:51.765703 | 2021-02-25T13:28:05 | 2021-02-25T13:28:05 | 80,822,139 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,995 | py | ## ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ----
## first try to find executables using casapyinfo...
## (since system area versions may be incompatible)...
## next try likely system areas...
## ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ----
##
## note: hosts which have ... | [
"gijs@pythonic.nl"
] | gijs@pythonic.nl |
ed1ae999aefa0ff7bce0bae6d90dd29b8ef54960 | 50008b3b7fb7e14f793e92f5b27bf302112a3cb4 | /recipes/Python/334665_Dependable_URL_startfile_Windows/recipe-334665.py | c05bf761f3533bd1fb544f64bccb3abaabf4a0c6 | [
"Python-2.0",
"MIT"
] | permissive | betty29/code-1 | db56807e19ac9cfe711b41d475a322c168cfdca6 | d097ca0ad6a6aee2180d32dce6a3322621f655fd | refs/heads/master | 2023-03-14T08:15:47.492844 | 2021-02-24T15:39:59 | 2021-02-24T15:39:59 | 341,878,663 | 0 | 0 | MIT | 2021-02-24T15:40:00 | 2021-02-24T11:31:15 | Python | UTF-8 | Python | false | false | 746 | py | import os
always_works = 0
def starturl(url, dwell=0, add_msg="", tempfile = "name_ending_in.html"):
html = "<html><head>\r\n<meta http-equiv=refresh "
html += 'content="%s; url=%s">' % (dwell, url)
html += "\r\n</head><body bgcolor=#d0d0d0>\r\n"
html += "<h2>Loading .... "
html += "... | [
"betty@qburst.com"
] | betty@qburst.com |
104bf5175b2d30e710a25bb3fa067107ce42dc7d | f7c07caa1210d2a08e8433cdd854b1232efa88e3 | /Directory-And-File-Modules/Filecmp-Module/dircmp/report.py | 3969efd6eec3eea669354bf3b98e5e7399e9da17 | [] | no_license | rchicoli/ispycode-python | c2fbecc28bf32933150986d24f77b7297f50b78e | fa27f2377943ac2e4d983065406578151091e3f5 | refs/heads/master | 2020-03-20T11:34:59.698618 | 2018-06-14T21:14:02 | 2018-06-14T21:14:02 | 137,407,150 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 161 | py |
import filecmp
# Construct a new directory comparison object
dc = filecmp.dircmp('/tmp/dir1','/tmp/dir2')
# Print (to sys.stdout) comparison
dc.report()
| [
"rafaelchicoli@hotmail.com"
] | rafaelchicoli@hotmail.com |
a1802b510c039583df5c066757e5ed39821f366f | 781e2692049e87a4256320c76e82a19be257a05d | /assignments/python/wc/src/811.py | 6e3b4d209fe57b9672202deb5b7e4f71af648cb5 | [] | no_license | itsolutionscorp/AutoStyle-Clustering | 54bde86fe6dbad35b568b38cfcb14c5ffaab51b0 | be0e2f635a7558f56c61bc0b36c6146b01d1e6e6 | refs/heads/master | 2020-12-11T07:27:19.291038 | 2016-03-16T03:18:00 | 2016-03-16T03:18:42 | 59,454,921 | 4 | 0 | null | 2016-05-23T05:40:56 | 2016-05-23T05:40:56 | null | UTF-8 | Python | false | false | 157 | py | from collections import Counter
def word_count(text):
"""Counts the occurences of each word, returning a dict."""
return dict(Counter(text.split()))
| [
"rrc@berkeley.edu"
] | rrc@berkeley.edu |
96a86ef747fad78f28593d0c534dd741ebbfac46 | 3b9338d99cf8090387418e32ca81617f072c39fb | /demos/vala/wscript | 18194cf63b1002843b3cbdd78bd443696a523440 | [] | no_license | sillsdevarchive/wsiwaf | 8ca14c286bafceb9ee6fad740b64ad7131282dc3 | 2dcddafc3602a7220acbe995df4ba85abb06b767 | refs/heads/master | 2020-12-30T17:10:21.701380 | 2017-05-12T05:12:17 | 2017-05-12T05:12:17 | 91,052,898 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 677 | #! /usr/bin/env python
# encoding: utf-8
# Jaap Haitsma, 2008
# the following two variables are used by the target "waf dist"
VERSION = '0.0.1'
APPNAME = 'vala-gtk-example'
# these variables are mandatory ('/' are converted automatically)
top = '.'
out = 'build'
def options(opt):
opt.load('compiler_c')
opt.load('v... | [
"tnagy1024@f0382ac9-c320-0410-b3f0-b508d59f5a85"
] | tnagy1024@f0382ac9-c320-0410-b3f0-b508d59f5a85 | |
e9e59d6a35f77fbcd2dc48fa29787139e7cd9d20 | 5942e3e75ef7dc22a67b04fb1f12e14658a2093d | /documentation_files/repr.py | aa3d612d417ad45d88668b2867dbc79eb983d86f | [] | no_license | the-factory/kdevelop-python | 9e94d2a4d4906a31a4d2a8a08300766e02d41a59 | 1e91f2cb4c94d9455a2ee22fef13df680aeed1ab | refs/heads/master | 2021-01-18T08:57:16.707711 | 2012-04-09T22:37:47 | 2012-04-09T22:37:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,657 | py | #!/usr/bin/env python2.7
# -*- coding: utf-8 -*-
""":synopsis: Alternate repr() implementation with size limits.
"""
class Repr:
"""
Class which provides formatting services useful in implementing functions
similar to the built-in :func:`repr`; size limits for different object types
are added to avoid the genera... | [
"svenbrauch@googlemail.com"
] | svenbrauch@googlemail.com |
c0fb3cb949f46c8e09a54ade419da93a7cdd0dd8 | 3c8b1153a702810f0c939050c1851182d34d25a1 | /assets/migrations/0002_auto_20141011_1326.py | afdb3296f82f7f31691e39538ac365eec75c3fed | [] | no_license | Brachamul/profit | 42e1232b983e4b5223b225d3ce81869a53d15e58 | 348daaaafb97b4e1380a2ebc9bcd2f7e64902be7 | refs/heads/master | 2016-09-11T00:21:37.678513 | 2015-03-03T07:31:13 | 2015-03-03T07:31:13 | 22,314,023 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 580 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('assets', '0001_initial'),
]
operations = [
migrations.RemoveField(
model_name='feature',
name='illus... | [
"barnaby.brachamul@gmail.com"
] | barnaby.brachamul@gmail.com |
b00a30e78a50180dcee40bba44fa7e400094157f | 63c02e307e5b2a1c6f9c74c16365c0482c976b50 | /docket/resources/registration.py | 0ad40373e8ee05c84bf787f0bb3b1e7b1b462507 | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | siq-legacy/docket | f127c164e0d13960f0af2f7e27961b669db5ce1f | dbc1c9cd5297c9efe84780aadc0d8204a7b9af9b | refs/heads/master | 2021-03-12T20:22:05.452492 | 2013-05-17T15:10:10 | 2013-05-17T15:10:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,427 | py | from mesh.standard import *
from scheme import *
from docket.resources.entity import Entity
__all__ = ('Registration',)
StandardEntity = Structure(Entity[1].mirror_schema('entity defunct'))
class Registration(Resource):
"""An entity registration."""
name = 'registration'
version = 1
requests = 'cre... | [
"mccoy.jordan@gmail.com"
] | mccoy.jordan@gmail.com |
edbdb789fe2175dc9b44c6132adcc56fc4d9ee9c | b61b09f684a2193cafcb4161e06be37feea81f09 | /chariot/transformer/text/__init__.py | d85ce655caa1e165d92bf4eee1f39470868d3d53 | [
"Apache-2.0"
] | permissive | upura/chariot | 854691dd6b76df6c7a96a8c85a36c56dec1ad5ef | 75f503ae7f4e4dd6ac31ba51031640c514646be7 | refs/heads/master | 2020-04-24T18:29:51.856498 | 2019-02-21T07:13:11 | 2019-02-21T07:13:11 | 172,181,379 | 0 | 0 | Apache-2.0 | 2019-02-23T06:43:21 | 2019-02-23T06:43:17 | Jupyter Notebook | UTF-8 | Python | false | false | 136 | py | from .unicode_normalizer import UnicodeNormalizer
from .symbol_filter import SymbolFilter
from .lower_normalizer import LowerNormalizer
| [
"icoxfog417@yahoo.co.jp"
] | icoxfog417@yahoo.co.jp |
9662a5e6b29c33f8f6068537e8b5560f3dfa69c1 | 5a394c53a7099bc871401e32cf3fc782546f9f7d | /.history/lab1/Graph_20210130221140.py | b1e1a1e04a71e95430bb1f74471a084c1dc65fa1 | [] | no_license | ajaygc95/advPy | fe32d67ee7910a1421d759c4f07e183cb7ba295b | 87d38a24ef02bcfe0f050840179c6206a61384bd | refs/heads/master | 2023-03-27T10:10:25.668371 | 2021-03-23T08:28:44 | 2021-03-23T08:28:44 | 334,614,292 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 361 | py | from matplotlib import pyplot as plt
class Graph:
def __init__(self) -> None:
self.plot = plt
def plotGraph(self, x, y):
plt.plot(x,y)
plt.xlabel('Year')
plt.ylabel('Change in Temperature')
plt.title('Temperature change by year')
plt.legend('Change')
... | [
"gcajay95@gmail.com"
] | gcajay95@gmail.com |
c40e905516b3e2fc6a5aac2a34c14527f735211c | 11812a0cc7b818292e601ecdd4aa4c4e03d131c5 | /GIL_test/hm_03_两个进程死循环.py | 4b2ec0d866713d68923f5f7284c2e902d6517100 | [] | no_license | SunshineFaxixi/Python_Learning | f1e55adcfa898489cc9146ccfb220f0b48a31a22 | ab3ca44d013311b6de02124091acc4c36a83c4d9 | refs/heads/master | 2021-08-16T05:47:29.963118 | 2021-01-04T13:48:30 | 2021-01-04T13:48:30 | 238,857,341 | 1 | 0 | null | 2020-03-03T13:53:08 | 2020-02-07T06:21:46 | HTML | UTF-8 | Python | false | false | 209 | py | #coding=utf-8
import multiprocessing
def deadLoop():
while True:
pass
# 子进程死循环
p1 = multiprocessing.Process(target=deadLoop)
p1.start()
# 主进程死循环
while True:
pass
| [
"xxhan2018@163.com"
] | xxhan2018@163.com |
ceac2756f727c631755ebb0796637f01d126fd67 | f0a62605171bc62eb68dd884c77cf146657ec5cb | /library/f5bigip_ltm_policy.py | 78e4b484dfad4454f6f0afc210993461fef7de2f | [
"Apache-2.0"
] | permissive | erjac77/ansible-role-f5 | dd5cc32c4cc4c79d6eba669269e0d6e978314d66 | c45b5d9d5f34a8ac6d19ded836d0a6b7ee7f8056 | refs/heads/master | 2020-04-06T08:13:14.095083 | 2020-02-16T23:44:13 | 2020-02-16T23:44:13 | 240,129,047 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,700 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
# Copyright 2016 Eric Jacob <erjac77@gmail.com>
#
# 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
#... | [
"erjac77@gmail.com"
] | erjac77@gmail.com |
7e42707e9abe7a8365e4cf3ef24684ac950342d6 | 72d20e0bd6605d7a49f86c0ef9e127f27e85023c | /Project/Server/routes/api/student/apply/goingout.py | 5fe1fdc5e454a74d7c85f39c3526ccc9acb66336 | [
"MIT"
] | permissive | JoMingyu/DMS-Migrates-to-Python | 431355481a207e7e3ed67905d01b3396e04d8553 | b659507e4bec9881f87f2c4ec0b563b3f75148fc | refs/heads/master | 2021-06-30T14:30:10.088144 | 2017-09-22T02:42:56 | 2017-09-22T02:42:56 | 103,612,949 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,046 | py | from flask import request, session
from flask_restful import Resource
from support.user.user_manager import get_uuid_from_request
from database.mongodb import goingout
class Goingout(Resource):
"""
외출신청(POST, GET, DELETE available)
"""
def post(self):
uuid = get_uuid_from_request(request, se... | [
"city7310@naver.com"
] | city7310@naver.com |
088e2aec53ee47b93eb6fd7a41ab695a1bacb0e6 | 351cb3b4e4e61890d0c4cb79348fd527dece43b0 | /extract_submissions.py | c99791f9eb38756a486484affc2173536abd36dc | [
"MIT"
] | permissive | litpuvn/MOSS-winnowing-seqMatcher | 3cb319fca12eb8fc8db5652bb38fa49908638571 | fad4d676e6f9fcdede3fbbbe8fa7e7846ddea4ea | refs/heads/master | 2020-08-02T12:35:25.635115 | 2019-10-09T21:54:26 | 2019-10-09T21:54:26 | 211,355,190 | 0 | 1 | MIT | 2019-09-27T15:59:33 | 2019-09-27T15:59:32 | null | UTF-8 | Python | false | false | 2,430 | py | import argparse
import os
import zipfile
from fnmatch import fnmatch
from shutil import copyfile
def get_parser():
"""Get parser for command line arguments."""
parser = argparse.ArgumentParser(description="Plagiarism Check")
parser.add_argument("-i",
"--input",
... | [
"litpuvn@gmail.com"
] | litpuvn@gmail.com |
60dc0d8e91dac0c527f8e3cc50c8dbc1cd39b96b | 407977aa9601a6b1ba63693a19c61408079c64d3 | /users/apis/serializers.py | 1356e9225741448d29633080f46b83e87a19c472 | [] | no_license | imobanco/dry-rest-permission-ddd-example | 1f6baaca9703c80bc89ea99aa1604677be3f8139 | a5affe6ccc5518c873fd8624995fddbccf0e3e5c | refs/heads/main | 2023-03-29T00:12:57.754575 | 2021-04-05T01:03:35 | 2021-04-05T01:03:35 | 354,661,421 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 397 | py | from core.rest_framework.serializers import ServiceSerializer
from users.models import User
class UserSerializer(ServiceSerializer):
class Meta:
model = User
fields = [
"username",
"email",
"is_superuser",
"is_staff",
"id",
"c... | [
"rodrigondec@gmail.com"
] | rodrigondec@gmail.com |
f7837f1395e58cdc0203adf4ed0dd00d8bf08101 | f8095636248bac9e2b018ed3b06f36502edffb0b | /frontend_issuu_autotest_replica/tests_free_account/TestUserSettingsFREE.py | 7909ff7749b240e3d0e2e38f44a0238aa6740ff7 | [] | no_license | slashsorin/auto-fe-test | deb1c696767b1c31125970679aa8ce4364fa956a | 266f3d7badb14c388edc63139bf659f60e09ac64 | refs/heads/master | 2016-08-04T10:22:18.123109 | 2013-11-22T09:16:57 | 2013-11-22T09:16:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,745 | py | import sys, time, os
#sys.path.append('/Users/Sorin/Issuu/new_eclipse_ws/frontend-issuu-autotest/autotest_framework/')
sys.path.append('../autotest_framework')
import SeleniumTestCase, make_platform_classes
import SetTestStatus as sts
import cfg
import unittest, xmlrunner
class TestUserSettingsFREE(SeleniumTestCase... | [
"sorin.dimo@yahoo.com"
] | sorin.dimo@yahoo.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.