blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 616 | 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 777
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 149
values | src_encoding stringclasses 26
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 3 10.2M | extension stringclasses 188
values | content stringlengths 3 10.2M | authors listlengths 1 1 | author_id stringlengths 1 132 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
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 |
9f3cd031f03253caf758dfc0a181691eccf8fc40 | 9e0001c88b79f8d4b209ec1a9e22b06e71b91905 | /system.d/library/tools_installer/tools_to_install/impacket/impacket/dcerpc/v5/epm.py | 7eafcf27520d9a030b3c5779781307217d21244a | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0",
"Apache-1.1",
"BSD-2-Clause",
"MIT"
] | permissive | drolim/PiBunny | c46f5da995c9d224e5f822963fedd00059eb18d3 | 1ee5ddb2f1562d6f3ced31261b6b2f63cad26d0f | refs/heads/master | 2020-06-16T01:37:52.323000 | 2019-07-07T17:55:31 | 2019-07-07T17:55:31 | 195,445,899 | 0 | 0 | MIT | 2019-07-05T17:27:35 | 2019-07-05T17:27:34 | null | UTF-8 | Python | false | false | 92,341 | py | # Copyright (c) 2003-2016 CORE Security Technologies
#
# This software is provided under under a slightly modified version
# of the Apache Software License. See the accompanying LICENSE file
# for more information.
#
# Author: Alberto Solino (@agsolino)
#
# Description:
# [MS-RPCE]-C706 Interface implementation for t... | [
"tholum@couleetechlink.com"
] | tholum@couleetechlink.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 |
04a15cf95f586c5bfff5798b237645b30f6659ab | a4bfa020711dfa2b777771c4587fa9ade46881e0 | /virtual/bin/wheel | 081cfd3b7532968dd75fe7e2890a6ff22d80b545 | [] | no_license | bertocarl/pitch-app | 128a9406ec19ad8bcff35879bc2a9c96ba7b806b | 1ba0e1e8795a5d1dd986eab0a3a2e64ec0b40eee | refs/heads/master | 2022-12-16T06:10:17.426932 | 2019-02-14T08:40:29 | 2019-02-14T08:40:29 | 169,742,550 | 0 | 0 | null | 2022-12-08T01:36:06 | 2019-02-08T13:55:57 | Python | UTF-8 | Python | false | false | 244 | #!/home/berto/Desktop/Pitch-App/virtual/bin/python2
# -*- coding: utf-8 -*-
import re
import sys
from wheel.cli import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"aomware@gmail.com"
] | aomware@gmail.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 |
67ece1377656b66ef5c154913e2c6d9818cd79ce | b35cbeccd24e223ed17edef9f357481d97cffd96 | /core/api.py | 2afe42d746780bf1297475db843c960f0dc6214d | [
"Apache-2.0"
] | permissive | SnowplowSoil/Watcher3 | 94a2fffd0960926e61b0eddda0af409092e0b8ce | 01375036dc7b333b293a751f4c79f68a66aa3529 | refs/heads/master | 2020-03-10T02:39:05.962480 | 2018-04-17T02:09:17 | 2018-04-17T02:09:17 | 129,141,811 | 0 | 0 | null | 2018-04-11T19:09:18 | 2018-04-11T19:09:16 | null | UTF-8 | Python | false | false | 11,072 | py | import core
from core.movieinfo import TMDB
import cherrypy
import threading
import os
import json
import logging
logging = logging.getLogger(__name__)
api_version = 2.3
''' API
All methods output a json object:
{'response': true}
A 'true' response indicates that the request was valid and returns useful data.
A 'f... | [
"nosmokingbandit@gmail.com"
] | nosmokingbandit@gmail.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 |
59a238235928eb1e1fa1b93d7156e2901d262f0e | aea2d95dc65d859b54696fa377344ff0ae319d48 | /test/test_trezor.py | 366ee1765978dcca6504b0d1b6635acfbd9046b9 | [
"MIT"
] | permissive | lontivero/HWI | ad87a4412ecfc9a2ab2ed7a8b8e562bc8916972a | c628206d310364132c9f4a5364e2edd47f1c5eac | refs/heads/master | 2020-05-16T02:18:17.614970 | 2019-04-21T23:16:03 | 2019-04-21T23:16:22 | 182,626,372 | 0 | 0 | MIT | 2019-04-22T05:06:30 | 2019-04-22T05:06:29 | null | UTF-8 | Python | false | false | 11,425 | py | #! /usr/bin/env python3
import argparse
import atexit
import json
import os
import socket
import subprocess
import sys
import time
import unittest
from bitcoinrpc.authproxy import AuthServiceProxy, JSONRPCException
from hwilib.devices.trezorlib.transport import enumerate_devices
from hwilib.devices.trezorlib.transpor... | [
"achow101-github@achow101.com"
] | achow101-github@achow101.com |
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 |
2eb830a36996f6e589327c9c49ddf6418af0f420 | 5da5473ff3026165a47f98744bac82903cf008e0 | /packages/google-cloud-vmwareengine/samples/generated_samples/vmwareengine_v1_generated_vmware_engine_get_private_connection_async.py | ece7bf0c33630e6a1c93ff19c19fd3d9d99cd96a | [
"Apache-2.0"
] | permissive | googleapis/google-cloud-python | ed61a5f03a476ab6053870f4da7bc5534e25558b | 93c4e63408c65129422f65217325f4e7d41f7edf | refs/heads/main | 2023-09-04T09:09:07.852632 | 2023-08-31T22:49:26 | 2023-08-31T22:49:26 | 16,316,451 | 2,792 | 917 | Apache-2.0 | 2023-09-14T21:45:18 | 2014-01-28T15:51:47 | Python | UTF-8 | Python | false | false | 1,916 | py | # -*- coding: utf-8 -*-
# Copyright 2023 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | [
"noreply@github.com"
] | googleapis.noreply@github.com |
2558159b00708e853d17eac1ae2fa44e2db80994 | bb10a3d5811f80c812eae031545863f684069472 | /site/frontend/util/AntiFraud.py | 5e030089e44fe2d3101690db488effb00376841c | [
"CC-BY-3.0"
] | permissive | fidlej/jakybyt | dd27067de965b5fd22bf34ef7d4a69765d1ea7e7 | e7e74c0f3cfb2803fddcd5ff3eca4255d6d04b80 | refs/heads/master | 2021-01-15T13:45:08.501896 | 2013-01-27T22:20:37 | 2013-01-27T22:20:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 22 | py | ../../src/AntiFraud.py | [
"ivo@danihelka.net"
] | ivo@danihelka.net |
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 |
201e4d5f5c3db81b9c4a0266df5aa3a1bd5b4166 | 8d22a2c290959eefe9578e1109ec7e72ab92b82b | /virtual-3.6/bin/django-admin | c857cf0fbcaf1afe6b071d5ca97a9c9b469c6a14 | [] | no_license | SanuRajan/MovieReviewsite | b9dd9cba863bea0d3cff1543009fe64a0b58262d | 1028b907fde291c757734891bc35e20901c28dd8 | refs/heads/master | 2020-04-19T22:37:51.780377 | 2019-01-31T06:27:26 | 2019-01-31T06:27:26 | 168,474,249 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 300 | #!/home/sa/Documents/folder/virtual-3.6/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from django.core.management import execute_from_command_line
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(execute_from_command_line())
| [
"you@example.com"
] | you@example.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 |
b061ce54f3123440781c557ba38abe59fede8abc | ba694353a3cb1cfd02a6773b40f693386d0dba39 | /sdk/python/pulumi_google_native/cloudresourcemanager/v3/get_organization_iam_policy.py | d2ae9fb81d88103973586bb3540ea9cd013af203 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | pulumi/pulumi-google-native | cc57af8bd3d1d6b76f1f48333ed1f1b31d56f92b | 124d255e5b7f5440d1ef63c9a71e4cc1d661cd10 | refs/heads/master | 2023-08-25T00:18:00.300230 | 2023-07-20T04:25:48 | 2023-07-20T04:25:48 | 323,680,373 | 69 | 16 | Apache-2.0 | 2023-09-13T00:28:04 | 2020-12-22T16:39:01 | Python | UTF-8 | Python | false | false | 6,709 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import copy
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from ... import _u... | [
"noreply@github.com"
] | pulumi.noreply@github.com |
a15ecd5a2814173547eedb9e505c902dcdc74051 | 54b8fa244ff0dae2018efedcb81e1bb03376e5e2 | /test/functional/wallet_listsinceblock.py | 80ffc6a4c935c5665f44966a434ccd169c60e7b0 | [
"MIT"
] | permissive | afghany/castletmp | e15677a88f9a1878486b6becf93d26c0ee9dbeaf | 9d0daed2a6abaf7d93f9308f5c602db6eeb42c8b | refs/heads/master | 2022-11-27T14:58:47.802781 | 2020-08-08T21:26:12 | 2020-08-08T21:26:12 | 284,464,002 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,823 | py | #!/usr/bin/env python3
# Copyright (c) 2017 The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
"""Test the listsincelast RPC."""
from test_framework.test_framework import CastleTestFramework
from test_fram... | [
"shagolo@gmail.com"
] | shagolo@gmail.com |
2c66cce1e422ecc6fb514ac4ad299929f9d0dad6 | 57ebc2073dd6f43bc32299ae708d021b78b03f91 | /venv/bin/easy_install | 7f2856e7d7edd5ea92d809ed577ea8ae530fbf58 | [] | no_license | sumank55/Querysetexample | 6be51e1cd933d5f33b417f44876ca9e97a0d01ca | dcc4ef9bc905a24bf7dc3a0984865fc36ebec67b | refs/heads/master | 2023-08-29T15:06:19.148993 | 2021-10-11T14:21:52 | 2021-10-11T14:21:52 | 415,959,283 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 255 | #!/home/ts/querysetpractice/venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from setuptools.command.easy_install import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"sumankumariideal@gmail.com"
] | sumankumariideal@gmail.com | |
3ff880dfcf2650a68e646146f5a39a2844a36fa4 | 344e2956b4e2a30a8ef7532d951f96d995d1dd1e | /18_mmaction/lib/mmcv/tests/data/config/f.py | c626885f31a4c7c468595c706bc5b81db0eb8613 | [
"Apache-2.0",
"LGPL-3.0-only",
"MIT",
"LicenseRef-scancode-proprietary-license",
"BSD-3-Clause",
"GPL-3.0-only"
] | permissive | karndeepsingh/Monk_Object_Detection | e64199705326e4cd65e4b29946cae210a4ef9649 | 425fa50a3236cb9097389646275da06bf9185f6b | refs/heads/master | 2022-12-22T18:26:53.933397 | 2020-09-28T12:49:50 | 2020-09-28T12:49:50 | 299,307,843 | 1 | 1 | Apache-2.0 | 2020-09-28T12:52:18 | 2020-09-28T12:52:17 | null | UTF-8 | Python | false | false | 49 | py | _base_ = './d.py'
item4 = 'test_recursive_bases'
| [
"abhishek4273@gmail.com"
] | abhishek4273@gmail.com |
e4940301b92a243c6c770f1f398bd25885e6008c | 01c05c6cf8e8eebc880502c92605d9c91c8dd95e | /backend/src/baserow/contrib/database/api/views/views.py | 6ad955b78466f78a58c5b5465904a4bad6f82656 | [
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | younghai/baserow | 28fd29c3b4634914982e4b28a2ec2fd48c4e848b | 7b35e81f75166d914d07ef4ad0c30c625b6bb396 | refs/heads/master | 2023-03-16T19:34:43.083883 | 2021-03-01T22:46:14 | 2021-03-01T22:46:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 29,102 | py | from django.db import transaction
from rest_framework.views import APIView
from rest_framework.response import Response
from rest_framework.permissions import IsAuthenticated
from drf_spectacular.utils import extend_schema
from drf_spectacular.openapi import OpenApiParameter, OpenApiTypes
from baserow.api.decorators... | [
"bramw@protonmail.com"
] | bramw@protonmail.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 |
9220ce1b42bf01419dabfb05cb829ac918efb1da | fffda6e06cb979e83db15e9142db7c9994400e2f | /language/bert_extraction/steal_bert_classifier/utils/model_diff_dataset.py | b3f2f33dabcd14b34aa6fb3200d3341aa4b0d485 | [
"LicenseRef-scancode-generic-cla",
"Apache-2.0"
] | permissive | ZachT1711/language | b48e551555a41bf269cc20f22871a9e4c47aacc9 | de84080fc8a239a7271aad1d447fcb38a895790b | refs/heads/master | 2023-01-05T21:36:59.194404 | 2020-04-14T17:19:25 | 2020-04-14T17:30:20 | 250,185,870 | 1 | 0 | Apache-2.0 | 2022-12-23T20:28:38 | 2020-03-26T07:09:01 | Python | UTF-8 | Python | false | false | 10,375 | py | # coding=utf-8
# Copyright 2018 The Google AI Language Team Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by ... | [
"kentonl@google.com"
] | kentonl@google.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 |
08d2099da9c9f41b8b2697c0b21787d68994e12d | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02400/s682499791.py | 60475c801bdd4008329adf8e24b9591dd7c959ca | [] | 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 | 80 | py | import math
p = math.pi
r = float(input())
print("{} {}".format(r*r*p, 2*r*p))
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.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 |
5259f05d37bd7773b6055f54930cfb1b4f85cce0 | 71012df2815a4666203a2d574f1c1745d5a9c6dd | /4 Django/solutions/lab4pokedex/lab4pokedex/wsgi.py | 02e85caceaba6a3666344a4d9ddb62c2bba2c74e | [] | no_license | PdxCodeGuild/class_mouse | 6c3b85ccf5ed4d0c867aee70c46af1b22d20a9e8 | 40c229947260134a1f9da6fe3d7073bee3ebb3f7 | refs/heads/main | 2023-03-23T14:54:39.288754 | 2021-03-20T01:48:21 | 2021-03-20T01:48:21 | 321,429,925 | 1 | 7 | null | null | null | null | UTF-8 | Python | false | false | 399 | py | """
WSGI config for lab4pokedex 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.1/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_S... | [
"anthony@Anthonys-MBP.lan"
] | anthony@Anthonys-MBP.lan |
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 |
9b85e39e9c303eddb8da1b4ce340cf39516c841e | 8f8ac99fd3ed9ceb36778b404f6fdd0b6899d3f4 | /pyobjc-core/PyObjCTest/test_number_proxy.py | 81749dc16648407be4ddc2b4d628a599e2679dbc | [
"MIT"
] | permissive | strogo/pyobjc | ac4201c7742eb75348328eeecb7eedf4e3458de3 | 2579c5eaf44b0c5af77ee195c417d2c65e72dfda | refs/heads/master | 2023-07-13T00:41:56.448005 | 2021-08-24T06:42:53 | 2021-08-24T06:42:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 29,556 | py | """
Tests for the proxy of Python numbers
NOTE: Decimal conversion is not tested, the required proxy is part of
the Foundation bindings :-(
"""
import sys
import warnings
import objc
from PyObjCTest.fnd import NSNumber, NSNumberFormatter
from PyObjCTest.pythonnumber import OC_TestNumber
from PyObjCTools.TestSupport i... | [
"ronaldoussoren@mac.com"
] | ronaldoussoren@mac.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 |
3eabb7d8426a9c415efb9a3309dda951ac6459e6 | fd56c7e9a98f864352493b0f9a97aa040131e6e9 | /bin/easy_install | b10c0bf7503b469ccfdf9e080fb1936dab770e7d | [] | no_license | KatyaLima/my-first-blog | 8f363ac8a5455b9d51bafeca808e0bdc0fe74cb0 | deaa1e3e9a5f81ac04556366d6d8e3f3aa074d0a | refs/heads/master | 2020-03-19T16:47:25.442186 | 2018-07-02T11:26:30 | 2018-07-02T11:26:30 | 132,768,319 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 270 | #!/home/rostel_wifi1972/djangogirls/myvenv/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from setuptools.command.easy_install import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"you@example.com"
] | you@example.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 |
b641c8e8c5bda77cef41333e46e7301b2ee8d862 | 1b862f34c125ce200244dd79e4fda4b5b605ce2e | /.history/ML_EO_20210607002757.py | 509439634fde89b1b533bfb960e495db49c2f524 | [] | no_license | edwino26/CoreImages | 26085a49cf1cb79442ae563a88354b2fdceace87 | 6bf6e68cac8ab36c87b1e6ea702bfe6882b0f40e | refs/heads/master | 2023-06-22T12:53:37.344895 | 2021-07-21T04:31:44 | 2021-07-21T04:31:44 | 309,553,247 | 0 | 4 | null | 2021-04-29T23:23:15 | 2020-11-03T02:45:07 | Lasso | UTF-8 | Python | false | false | 24,647 | py | # # lectura de los xlsx del procesamiento de imagenes
# y la informacion obtenida de los registros por pozo
# %%
import numpy as np
import pandas as pd
import os
import os.path
import matplotlib.pyplot as plt # GRAPHS
from mlxtend.plotting import scatterplotmatrix
import glob
import seaborn as sns
import missingno a... | [
"ortega.edwin.y@gmail.com"
] | ortega.edwin.y@gmail.com |
67c90483a23d514b09a6d9b5bd47b0c37c1d77f3 | 17032b7326510e360adbc61d8566c42ce8a0483a | /python2.7/site-packages/pykickstart/commands/raid.py | c23a737eb8fb36c60839aa8f1af2445c73b44ede | [] | no_license | noslin005/wzz | d220f8ed84fe2bc8dca9b764ccc72ee807740fbc | 3a4e9fd377076b3a21730af9fca82e4b2e61702b | refs/heads/master | 2021-11-03T09:33:47.126484 | 2019-04-15T01:19:02 | 2019-04-15T01:19:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,960 | py | #
# Chris Lumens <clumens@redhat.com>
#
# Copyright 2005, 2006, 2007, 2008, 2011 Red Hat, Inc.
#
# This copyrighted material is made available to anyone wishing to use, modify,
# copy, or redistribute it subject to the terms and conditions of the GNU
# General Public License v.2. This program is distributed in the hop... | [
"wuzhengzhong@ruiec.cn"
] | wuzhengzhong@ruiec.cn |
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 |
0383fb34eb2db255aebf5e35a74445f2f4f2d794 | 0e25dc15ae9efce8bfd716d4d2041da07767968b | /qbench/benchmarks/QLib/OPENQL_converted/cuccaroAdder_42b.py | 0353d8408cff23adbfa00e731271217bfdd79404 | [] | no_license | alxhotel/crossbar-bench | f608fc0062b4f8a5162ec33d61c0204aaf27b6ff | 3bf7536e7697d29c3089b0ba564ba22d39698b88 | refs/heads/master | 2021-07-13T16:06:50.085838 | 2020-10-04T23:39:05 | 2020-10-04T23:39:05 | 213,409,122 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 10,508 | py | from openql import openql as ql
import os
import argparse
def circuit(config_file, new_scheduler='yes', scheduler='ASAP', uniform_sched= 'no', sched_commute = 'yes', mapper='base', moves='no', maptiebreak='random', initial_placement='no', output_dir_name='test_output', optimize='no', measurement=True, log_level='LOG_W... | [
"alxmorais8@msn.com"
] | alxmorais8@msn.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 |
0b63578e080c2a2a1015bf3f2f8b34ec9b23b5fa | 75566ef3423c72fe9e73075dfe29df172b65a28c | /src/info/views/group.py | 74764c48450d3307e7522001a3ce7d3bdafd67ac | [] | no_license | bicsi/cpaggregator | 7020663305eeff8690e92da64fc796926b12fe31 | b6459fe33c19dc2020b29470e457f0666b0ff212 | refs/heads/master | 2022-12-12T10:24:38.756844 | 2020-11-11T13:53:30 | 2020-11-11T13:53:30 | 153,731,264 | 2 | 1 | null | 2022-12-08T01:15:28 | 2018-10-19T05:33:06 | CSS | UTF-8 | Python | false | false | 11,659 | py | import json
from django.contrib.auth.mixins import LoginRequiredMixin
from django.contrib.auth.models import User
from django.db.models import Count
from django.http import HttpResponseForbidden
from django.shortcuts import get_object_or_404, redirect
from django.urls import reverse_lazy
from django.views import gener... | [
"lucianbicsi@gmail.com"
] | lucianbicsi@gmail.com |
c718539262186b21e4af769d0f7ff24e4a5429f0 | 03e3138f99f275d15d41a5c5bfb212f85d64d02e | /source/res/scripts/client/gui/Scaleform/locale/PERSONAL_MISSIONS.py | f99dd40de109beba4c116f0cc41b2157e643eaf8 | [] | no_license | TrenSeP/WorldOfTanks-Decompiled | e428728e7901146d0b599d02c930d70532232a97 | 1faa748acec1b7e435b657fd054ecba23dd72778 | refs/heads/1.4.1 | 2020-04-27T08:07:49.813023 | 2019-03-05T17:37:06 | 2019-03-05T17:37:06 | 174,159,837 | 1 | 0 | null | 2019-03-06T14:33:33 | 2019-03-06T14:24:36 | Python | UTF-8 | Python | false | false | 36,280 | py | # Python bytecode 2.7 (decompiled from Python 2.7)
# Embedded file name: scripts/client/gui/Scaleform/locale/PERSONAL_MISSIONS.py
from debug_utils import LOG_WARNING
class PERSONAL_MISSIONS(object):
DETAILEDVIEW_TOOLTIPS_COMMONCONDITIONS = '#personal_missions:detailedView/tooltips/commonConditions'
DETAILEDVIE... | [
"StranikS_Scan@mail.ru"
] | StranikS_Scan@mail.ru |
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 |
8cc40a87099592d60f54b2ff1997256c19a9dc50 | 03ab77761c1efa3977d18239879dbeb81502e1a0 | /yields.py | 90059b7f2d2d1c81bba392f6f49fe6de6f8b55bc | [] | no_license | alexji/chemmix | 3df24eb9f829de6601ece9002e410dcc09c22bfc | 97274b13baf75d51e75e485ccbe5551d41001e30 | refs/heads/master | 2021-01-21T19:19:38.558224 | 2014-08-18T21:50:28 | 2014-08-18T21:50:28 | 19,949,072 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,836 | py | import numpy as np
import pylab as plt
import os
import karlsson
import hw10
def map_elemnames_to_elemmass(elemnames):
elemmap = {'C': 12.0, 'O': 16.0,
'Mg': 24.3, 'Si': 28.1,
'Ca': 40.1, 'Fe': 55.8}
return np.array([elemmap[elem] for elem in elemnames])
def map_elemnames_to_aspl... | [
"alexji@mit.edu"
] | alexji@mit.edu |
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 |
e496f10936379d6f917374bdfd01fda90b3e710f | c7027edceeae907ce7d21112336e84f101eeb89b | /airflow/providers/google/cloud/hooks/bigtable.py | 66a13bb885ef7336a822c122db4f4298201e020a | [
"Apache-2.0",
"BSD-3-Clause",
"MIT"
] | permissive | jao6693/airflow | 0a8027ce33e20ee8f6032facb1b8ab453c2d20d4 | 269b608246b015c55e6cae4ed0f50b1e2bb0fa95 | refs/heads/main | 2023-01-30T18:53:23.431745 | 2022-11-05T14:59:27 | 2022-11-05T14:59:27 | 320,338,180 | 0 | 0 | Apache-2.0 | 2020-12-10T17:08:36 | 2020-12-10T17:08:35 | null | UTF-8 | Python | false | false | 12,263 | 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... | [
"fabien.beuret@delaware.pro"
] | fabien.beuret@delaware.pro |
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 |
1d02cc159c0966d74806daca56060b219d8d69d7 | 9f112cd0aeb1447dee06ded576d99b61701cbdc3 | /ec-backend/src/ad/admin.py | 58507b77a4b7ed5f11c8550e643662aec7b60d62 | [] | no_license | ForeverDreamer/embarrassment-cyclopedia | 44e13fbd7210ebc634d0fbab321c0f4598072ff3 | f69bc88a6a8e734cbb3d37ab173f557708653789 | refs/heads/master | 2023-01-10T17:20:44.181077 | 2020-07-15T03:20:27 | 2020-07-15T03:20:27 | 206,903,622 | 0 | 0 | null | 2023-01-07T09:30:23 | 2019-09-07T02:22:09 | JavaScript | UTF-8 | Python | false | false | 90 | py | from django.contrib import admin
from .models import AdInfo
admin.site.register(AdInfo)
| [
"499361328@qq.com"
] | 499361328@qq.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 |
e65c898487f2c24890a01ec81bde686687de81a6 | f4b60f5e49baf60976987946c20a8ebca4880602 | /lib/python2.7/site-packages/acimodel-1.3_2j-py2.7.egg/cobra/modelimpl/lldp/instsendtask.py | 25c9b0d61fd6189ee05ac1d1bb98c16b1fa1e80b | [] | no_license | cqbomb/qytang_aci | 12e508d54d9f774b537c33563762e694783d6ba8 | a7fab9d6cda7fadcc995672e55c0ef7e7187696e | refs/heads/master | 2022-12-21T13:30:05.240231 | 2018-12-04T01:46:53 | 2018-12-04T01:46:53 | 159,911,666 | 0 | 0 | null | 2022-12-07T23:53:02 | 2018-12-01T05:17:50 | Python | UTF-8 | Python | false | false | 3,982 | py | # coding=UTF-8
# **********************************************************************
# Copyright (c) 2013-2016 Cisco Systems, Inc. All rights reserved
# written by zen warriors, do not modify!
# **********************************************************************
from cobra.mit.meta import ClassMeta
from cobra.m... | [
"collinsctk@qytang.com"
] | collinsctk@qytang.com |
bcb0e559bfd49f09d9fe43514030c42a7bffb417 | 016089e3b1ef4a8b5266d9ed6b292d8c9efd2e6d | /chapter3/scpt3-12.py | 1d1b10bd2234a8cec8de426278e5b4a62f72e378 | [] | no_license | sdzr/cookbook_study | c4435ea7bba75d899bfff1e4f365c23badf1f3f8 | 8fa488f79a7c23244513bf577c3bc01caab858e4 | refs/heads/master | 2020-04-27T05:01:05.068668 | 2019-07-03T13:45:23 | 2019-07-03T13:45:23 | 174,070,622 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 83 | py | # 时间换算, 利用timedelta进行实践换算
from datetime import timedelta
| [
"290701331@qq.com"
] | 290701331@qq.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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.