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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
83a7cf76438adbf0701b18c3ad90a86a5c6c7c4f | 880a56c0eebcce3376d1969bb8b084d82b90f535 | /xos/tosca/resources/vcpeservice.py | 2a6a56db92968457ed9e7b053b4e159a17d86f92 | [
"Apache-2.0"
] | permissive | digideskio/xos | 9f590a3a2703198c4d5b9b2fa27a3b9a94c14b96 | 9c98f28793ce4b2e4be96665e7f06b9cf9b59315 | refs/heads/master | 2020-12-03T08:13:08.982841 | 2016-04-06T00:39:06 | 2016-04-06T00:39:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 631 | py | import os
import pdb
import sys
import tempfile
sys.path.append("/opt/tosca")
from translator.toscalib.tosca_template import ToscaTemplate
from services.cord.models import VSGService
from service import XOSService
class XOSVsgService(XOSService):
provides = "tosca.nodes.VSGService"
xos_model = VSGService
... | [
"smbaker@gmail.com"
] | smbaker@gmail.com |
d2d18338371df02f19a8aa511ed62c3486298a71 | 50008b3b7fb7e14f793e92f5b27bf302112a3cb4 | /recipes/Python/437116_Wrapper_class_heapq/recipe-437116.py | 0d8f07bdf229fd1e0efdc4a367c438cd088d4c8f | [
"MIT",
"Python-2.0"
] | 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 | 3,197 | py | import heapq
class Heap(list):
"""This is a wrapper class for the heap functions provided
by the heapq module.
"""
__slots__ = ()
def __init__(self, t=[]):
self.extend(t)
self.heapify()
push = heapq.heappush
popmin = heapq.heappop
replace = heapq.heapreplace
he... | [
"betty@qburst.com"
] | betty@qburst.com |
07429b6879f054b600fb5a4eef6ac5a978e6a3c6 | b22588340d7925b614a735bbbde1b351ad657ffc | /athena/Tools/RunTimeTester/share/RTTRegression.py | 19c13f5f565c3c5ef12dd5971cc99fc2fc4f666e | [] | no_license | rushioda/PIXELVALID_athena | 90befe12042c1249cbb3655dde1428bb9b9a42ce | 22df23187ef85e9c3120122c8375ea0e7d8ea440 | refs/heads/master | 2020-12-14T22:01:15.365949 | 2020-01-19T03:59:35 | 2020-01-19T03:59:35 | 234,836,993 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,958 | py | ######################################################
# #
# Do NOT bind any objects (self.xxx) which contain #
# file objects (such as self.logger in this class #
# otherwise cannit shelve the objects #
# Instead, unload the necessary variables in ... | [
"rushioda@lxplus754.cern.ch"
] | rushioda@lxplus754.cern.ch |
170b5974377c2010e0e6ae80d052cc8a08dec18a | 781e2692049e87a4256320c76e82a19be257a05d | /all_data/exercism_data/python/bob/4dab219f99ff457d92c76f4fa70ad98f.py | 52042ea3de170bc5f8eedc4c2b7c186736a74912 | [] | 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 | 308 | py | #
# Skeleton file for the Python "Bob" exercise.
#
def hey(what):
if what.upper() == what and what.lower() != what:
return 'Whoa, chill out!'
elif what.endswith('?'):
return 'Sure.'
elif what.strip() == '':
return 'Fine. Be that way!'
else:
return 'Whatever.'
| [
"rrc@berkeley.edu"
] | rrc@berkeley.edu |
45db6168ca6a0ad2f3120d8dba3898a85cf52fd8 | 8f1dbd7c032a57c74a36f07690b2ecc80fb3e665 | /scratch/follow-ball.piborg.py | 09741060a051a0ba26472b3e1a30bbafa4e92cae | [
"MIT"
] | permissive | westpark/piwars-2018 | 6b861ff46366a76cbf8bfbec11d255e31d471b3a | a2e1cb67e5fcc8f65ed17975d076088a9f92da2a | refs/heads/master | 2021-04-28T10:57:42.294132 | 2018-04-19T10:35:24 | 2018-04-19T10:35:24 | 122,079,822 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,143 | py | #!/usr/bin/env python
# coding: utf-8
# Load library functions we want
import time
import os
import sys
import ThunderBorg
import io
import threading
import picamera
import picamera.array
import cv2
import numpy
print 'Libraries loaded'
# Global values
global running
global TB
global camera
global processor
runni... | [
"mail@timgolden.me.uk"
] | mail@timgolden.me.uk |
c6c9f8053ce7426d8e40844b29b1a9736d500e03 | 777a972966fa29a1b5a1a0c5d507a3137de007fc | /stock_pick_batch/__manifest__.py | cfbf3abdc520bc1242de59ad4d6ad1cd7d0cc3c3 | [] | no_license | suningwz/ruvati | 1d1ace30fb2929f686f368fb8d8c51ae76a71190 | 9b15373125139cab1d26294c218685c5b87b9709 | refs/heads/master | 2023-08-15T22:28:18.499733 | 2021-10-12T12:16:56 | 2021-10-12T12:16:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 753 | py | # -*- coding: utf-8 -*-
{
"name": "Stock Picking Batch",
"version": "1.1",
"category": 'Inventory',
'complexity': "normal",
'author': 'Confianz Global,Inc.',
'description': """
Batch transfer in inventory
""",
'website': 'http://www.confianzit.com',
"depends": ['base', 'delivery_ex... | [
"vinod@confianzit.biz"
] | vinod@confianzit.biz |
f58261daab0df0e28c03fbe345a6d2e337fdc477 | 45b159e64114d8759c0e2987bd0a6f02f60daf4d | /Python/APL/ch14/distanceThreeArrays.py | 80483127107e3734d02efe667945abcd5ac19af1 | [] | no_license | afcarl/Coding_Interview_Problems | 45b24b849a90581db5327811c5ab78237f4d5ac0 | 1256d4394d506aec875e9e19300404a9b32a4eb1 | refs/heads/master | 2020-03-16T20:16:54.706152 | 2015-02-11T05:51:56 | 2015-02-11T05:51:56 | 132,953,286 | 1 | 0 | null | 2018-05-10T20:54:14 | 2018-05-10T20:54:14 | null | UTF-8 | Python | false | false | 274 | py | '''
Created on Jan 24, 2015
@author: Ben Athiwaratkun (pa338)
'''
#from __future__ import division
#import numpy as np
def findMin(A,B,C):
pass
def main():
A = [1,2,3]
B = [4,1,8]
C = [3,2,7]
findMin(A,B,C)
if __name__ == "__main__":
main() | [
"ben.athiwaratkun@gmail.com"
] | ben.athiwaratkun@gmail.com |
11689979f2e6aaa273058e3b89ba57a7a4d578c0 | 1fa265a01400c23f9ca494a1d9ef55b6cef85cdc | /inventory/migrations/0102_auto_20200131_1454.py | ac78634fc95dc9da549ec9a25ce03a0aaf6d0ca9 | [] | no_license | dipesh779/posbackend | 523660b40be4d5deaff6b6c267c65fa9caba00de | 06effb004448dbb6d99077790ceb4738875e6505 | refs/heads/master | 2022-04-25T09:15:12.081266 | 2020-05-04T04:45:56 | 2020-05-04T04:45:56 | 261,082,375 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,522 | py | # Generated by Django 2.2.7 on 2020-01-31 09:09
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('inventory', '0101_auto_20200131_0911'),
]
operations = [
migrations.AlterField(
model_name='stockcomputation',
name=... | [
"dipesh@perplexsolutions.com"
] | dipesh@perplexsolutions.com |
836dc051ae842d3fb098afe67dd219518fdf722b | 2aa47f47fb81798afdf41437844cbbea8e9de66c | /02pythonBase/day12/day11_exercise/factorial_sum.py | d9c669a1112be4d4c20c74aede6742f36eab15e2 | [] | no_license | nykh2010/python_note | 83f2eb8979f2fb25b4845faa313dbd6b90b36f40 | 5e7877c9f7bf29969072f05b98277ef3ba090969 | refs/heads/master | 2020-04-27T23:10:16.578094 | 2019-03-23T02:43:14 | 2019-03-23T02:43:14 | 174,765,151 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 299 | py | # 3. 写程序算出 1 ~ 20 的阶乘的和
# 1! + 2! + 3! + 4! + ..... + 20!
# 方法1
# def myfac(n):
# if n == 1:
# return 1
# return n * myfac(n - 1)
# s = 0
# for x in range(1, 21):
# s += myfac(x)
# print(s)
import math
print(sum(map(math.factorial, range(1, 21))))
| [
"xulingfeng@boe.com.cn"
] | xulingfeng@boe.com.cn |
ef7cfcbb15eaf35f6cd7f8058281eb80959721bb | 40fc1d38f2d4b643bc99df347c4ff3a763ba65e3 | /arcade/infiniworld/src/infiniworld/__init__.py | 77165064cf85d6cbd506c2db160a29d5cf41a5cf | [] | no_license | alecordev/pygaming | 0be4b7a1c9e7922c63ce4cc369cd893bfef7b03c | 35e479b703acf038f47c2151b3759ad852781e4c | refs/heads/master | 2023-05-14T05:03:28.484678 | 2021-06-03T10:11:08 | 2021-06-03T10:11:08 | 372,768,733 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 317 | py | """The infiniworld package contains the entire game engine: Models Views and
Controllers, but also physics, geometry, time management, etc.
"""
from . import controllers
from . import events
from . import evtman
from . import geometry
from . import log
from . import models
from . import physics
from . import time_
| [
"alecor.dev@gmail.com"
] | alecor.dev@gmail.com |
b81680590f118a2d347e1fb05c0986f14e401d1d | 5d0edf31b17c5375faf6126c1a7be8e79bfe2ab8 | /buildout-cache/eggs/plone.formwidget.contenttree-1.0.14-py2.7.egg/plone/formwidget/contenttree/demo.py | 57b8a81802b37b1a271061de3b3b447da24627fd | [] | no_license | renansfs/Plone_SP | 27cba32ebd9fc03dae3941ec23cf1bf0a7b6667a | 8a7bdbdb98c3f9fc1073c6061cd2d3a0ec80caf5 | refs/heads/master | 2021-01-15T15:32:43.138965 | 2016-08-24T15:30:19 | 2016-08-24T15:30:19 | 65,313,812 | 0 | 3 | null | null | null | null | UTF-8 | Python | false | false | 1,759 | py | from zope.component import adapts
from zope.interface import Interface, implements
from zope import schema
from plone.z3cform import layout
from z3c.form import form, button, field
from plone.formwidget.contenttree import ContentTreeFieldWidget
from plone.formwidget.contenttree import MultiContentTreeFieldWidget
fro... | [
"renansfs@gmail.com"
] | renansfs@gmail.com |
2d3850df0c094eeb7f706d70aa509e5e2011f721 | 772b0df2635b95644ea3eb370103174804024167 | /scripts/process_file.py | cfce2bb5b07aee825c3a76f0632392eb3a6e3579 | [
"MIT"
] | permissive | 4dn-dcic/clodius | ec909bda90a9df13fa1b85472951f6cf149213a5 | aa31b3d90a5a9fec883c20cab31ad4d347cd52cd | refs/heads/develop | 2020-04-17T23:31:32.114043 | 2019-04-02T14:01:46 | 2019-04-02T14:01:46 | 167,038,915 | 0 | 0 | MIT | 2019-03-28T20:10:46 | 2019-01-22T17:43:32 | Python | UTF-8 | Python | false | false | 2,597 | py | from __future__ import print_function
import argparse
import os.path as op
import subprocess as sp
import sys
import tempfile as tf
def main():
usage = """
python make_tiles.py input_file
Create tiles for all of the entries in the JSON file.
"""
parser = argparse.ArgumentParser()
parser.add_... | [
"pkerpedjiev@gmail.com"
] | pkerpedjiev@gmail.com |
512c1fce60003522e98e0f5f3d8278c65001a88e | 437428a48278b4e9bc04e1b8acbb33199f409376 | /modules/exploit/unix/dvr/camera_credentials_disclosure.py | 563adb10d9ee37945d96f06681ce86ece688b976 | [
"MIT"
] | permissive | happylaodu/HatSploit | 06d18ba2590456241ba61273d9f3d662a8bb26ec | 9d53f3db85ce38483c6e7d16570ac233c5dd93cf | refs/heads/main | 2023-04-30T20:18:37.090185 | 2021-06-02T20:23:08 | 2021-06-02T20:23:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,120 | py | #!/usr/bin/env python3
#
# MIT License
#
# Copyright (c) 2020-2021 EntySec
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to... | [
"enty8080@gmail.com"
] | enty8080@gmail.com |
84cb538f8850e3ffa7072e85d2b0228a7d713a47 | 356f3f1b7caf0ccb20cc830d40821dfb2cbda046 | /sfit/workout/doctype/workout_day/test_workout_day.py | 8696ffbb32d632dbc281ece67008a9e16deb779d | [
"MIT"
] | permissive | vignesharumainayagam/sfit | f4b75b9a8b2de08d0eaa4eadbcd3d5e432ffba56 | a96afbf35b0e1635e44cb5f83d7f86c83abedb8f | refs/heads/master | 2021-09-05T18:22:43.494208 | 2018-01-30T07:23:02 | 2018-01-30T07:23:02 | 104,332,803 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 216 | py | # -*- coding: utf-8 -*-
# Copyright (c) 2017, Valiant Systems and Contributors
# See license.txt
from __future__ import unicode_literals
import frappe
import unittest
class TestWorkoutDay(unittest.TestCase):
pass
| [
"vigneshwaran@valiantsystems.com"
] | vigneshwaran@valiantsystems.com |
1f3e82b1570f82ea3bdfef2515882a87a08ed13e | 8efe9a6c9489d798b5f5b610eb531d86924a1548 | /src/products/migrations/0030_auto_20180305_0204.py | 5a7d07b9df8306b0e3108784bcba1e778c6e7200 | [] | no_license | MarekBiczysko/naklisze_public | e8e6f7e61cdb83b74ea68862b40c061c0253767b | e53c0e8fefffbcfc3a8859976eb7b81cf6270847 | refs/heads/master | 2022-12-12T02:27:09.824803 | 2019-07-23T10:54:47 | 2019-07-23T10:54:47 | 198,410,666 | 0 | 0 | null | 2022-12-08T01:03:08 | 2019-07-23T10:46:57 | Python | UTF-8 | Python | false | false | 1,518 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2018-03-05 01:04
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('products', '0029_auto_20180305_0150'),
]
operations = [
migrations.AlterField... | [
"marek.biczysko@stxnext.pl"
] | marek.biczysko@stxnext.pl |
edb41ced91b448c477e1ff798421c4a836d02c1c | 971e0efcc68b8f7cfb1040c38008426f7bcf9d2e | /tests/artificial/transf_None/trend_Lag1Trend/cycle_5/ar_/test_artificial_128_None_Lag1Trend_5__0.py | a2712b0471685b35c3361d00197c36c4f8dea080 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | antoinecarme/pyaf | a105d172c2e7544f8d580d75f28b751351dd83b6 | b12db77cb3fa9292e774b2b33db8ce732647c35e | refs/heads/master | 2023-09-01T09:30:59.967219 | 2023-07-28T20:15:53 | 2023-07-28T20:15:53 | 70,790,978 | 457 | 77 | BSD-3-Clause | 2023-03-08T21:45:40 | 2016-10-13T09:30:30 | Python | UTF-8 | Python | false | false | 258 | py | import pyaf.Bench.TS_datasets as tsds
import tests.artificial.process_artificial_dataset as art
art.process_dataset(N = 128 , FREQ = 'D', seed = 0, trendtype = "Lag1Trend", cycle_length = 5, transform = "None", sigma = 0.0, exog_count = 0, ar_order = 0); | [
"antoine.carme@laposte.net"
] | antoine.carme@laposte.net |
d1774ad51874a5675a3520841566cae2f5f090ea | ad5d38fce4785037c108186f17eb1c64380355ef | /sddsd/google-cloud-sdk/lib/googlecloudsdk/third_party/apis/billingbudgets/v1/billingbudgets_v1_messages.py | 8a611f89deb6f766bb26aafda35e58789808ab8b | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | saranraju90/multik8s | 75864b605a139ddb7947ed4de4ae8466bdd49acb | 428576dedef7bb9cd6516e2c1ab2714581e1137c | refs/heads/master | 2023-03-03T21:56:14.383571 | 2021-02-20T14:56:42 | 2021-02-20T14:56:42 | 339,665,231 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 19,575 | py | """Generated message classes for billingbudgets version v1.
The Cloud Billing Budget API stores Cloud Billing budgets, which define a
budget plan and the rules to execute as spend is tracked against that plan.
"""
# NOTE: This file is autogenerated and should not be edited by hand.
from __future__ import absolute_imp... | [
"saranraju90@gmail.com"
] | saranraju90@gmail.com |
0482372da6150f93732ef9dbfe0fc9cd5bd63da0 | 0d49ae2184f2e88e4aefb423ae36578b8931e415 | /intersight/apis/hyperflex_sys_config_policy_api.py | 80f2f896c2898755c1e83ad7cac5bbd4a96f156e | [
"Apache-2.0"
] | permissive | sonogong777/intersight-python | 0477c7e96cdd81e1e30a188d74948b5db4e41b04 | af45333b23b0048029aeafcb0077f1d0a6ffe105 | refs/heads/master | 2021-04-30T03:29:46.680831 | 2018-02-12T20:22:10 | 2018-02-12T20:22:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 32,729 | py | # coding: utf-8
"""
UCS Starship API
This is the UCS Starship REST API
OpenAPI spec version: 1.0.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import sys
import os
import re
# python 2 and python 3 compatibility library
from six... | [
"“dsoper@cisco.com”"
] | “dsoper@cisco.com” |
5afe09e31c7ddd461bd0ca9ead432738d103c647 | 148072ce210ca4754ea4a37d83057e2cf2fdc5a1 | /src/core/w3af/w3af/plugins/attack/db/sqlmap/waf/netscaler.py | 04b6d4eca5614726a9e6be0a151109dfc48cf07b | [] | no_license | ycc1746582381/webfuzzer | 8d42fceb55c8682d6c18416b8e7b23f5e430c45f | 0d9aa35c3218dc58f81c429cae0196e4c8b7d51b | refs/heads/master | 2021-06-14T18:46:59.470232 | 2017-03-14T08:49:27 | 2017-03-14T08:49:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 812 | py | #!/usr/bin/env python
"""
Copyright (c) 2006-2015 sqlmap developers (http://sqlmap.org/)
See the file 'doc/COPYING' for copying permission
"""
import re
from lib.core.enums import HTTP_HEADER
from lib.core.settings import WAF_ATTACK_VECTORS
__product__ = "NetScaler (Citrix Systems)"
def detect(get_page):
retv... | [
"everping@outlook.com"
] | everping@outlook.com |
c62bf5e407c19bc1d3059d7e8ee9abbaba6d7100 | eb74806869a4340a6d8a2623bbe72bd4e64dcde8 | /apps/rss_feeds/migrations/0006_feed_fs_size_bytes.py | cebc86363ae3a0e11564538d0d6f2f78ab934930 | [
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | sictiru/NewsBlur | a0874a1044926d2268ba07a928e62fce5c9a8310 | 1ab88e4cc34775d00a1ac90ee08bc2498577e773 | refs/heads/sictiru | 2023-08-19T20:24:20.638019 | 2023-08-15T03:52:09 | 2023-08-15T03:52:09 | 250,445,213 | 1 | 0 | MIT | 2023-03-06T15:34:38 | 2020-03-27T05:05:44 | Objective-C | UTF-8 | Python | false | false | 409 | py | # Generated by Django 3.1.10 on 2022-05-11 17:10
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('rss_feeds', '0005_feed_archive_subscribers'),
]
operations = [
migrations.AddField(
model_name='feed',
name='fs_siz... | [
"samuel@ofbrooklyn.com"
] | samuel@ofbrooklyn.com |
3b30a770bc9971f15e4f4a4cd43afbcdce5c6da2 | cc9cf69b1534dc0d9530b4ff485084162a404e34 | /leetcode/pass/leetcode_90.py | 74fc6a05142615a6ecb6b64f80b6893234b2b510 | [] | no_license | NASA2333/study | 99a58b2c9979201e9a4fae0c797391a538de6f45 | ba63bc18f3c788090e43406315497329b00ec0a5 | refs/heads/master | 2021-05-03T22:26:52.541760 | 2018-02-07T02:24:55 | 2018-02-07T02:24:55 | 104,988,265 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 615 | py | '''
Given a collection of integers that might contain duplicates, nums, return all possible subsets (the power set).
Note: The solution set must not contain duplicate subsets.
For example,
If nums = [1,2,2], a solution is:
[
[2],
[1],
[1,2,2],
[2,2],
[1,2],
[]
]
'''
from itertools import permutations
l... | [
"422282539@qq.com"
] | 422282539@qq.com |
8261febe86d08207fffb746dc4ea9b8bb4edf2f7 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/128/usersdata/195/33234/submittedfiles/al6.py | a43d19a9835509d9bcff514428b8a373c0912704 | [] | 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 | 211 | py | # -*- coding: utf-8 -*-
n=int(input('digite n:'))
contador=0
i=2
while i<=n:
if n%i==0:
contador=contador+1
print(i)
i=i+1
if contador==0:
print('PRIMO')
else:
print('NÃO PRIMO') | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
a07fae45caf888b5a1f8594235788961f53f595f | 17f527d6936397270183a35d7097e0a99de16cb5 | /AtCoder/ABC/yomikomi.py | d7eac4e0bf82827b1dc0460a58ae586376914767 | [] | no_license | ryosuke071111/algorithms | e942f043d08c7c7e2c926ed332ee2b8c44bdf0c5 | 867764450cc0f2a709fa2f743d9a0d95001e9296 | refs/heads/master | 2020-05-14T17:14:39.314064 | 2019-04-17T12:58:12 | 2019-04-17T12:58:12 | 181,888,623 | 11 | 0 | null | null | null | null | UTF-8 | Python | false | false | 108 | py | with open('goi.txt') as f:
a=f.readlines()
count=0
for i in a:
if "・" in i:
count+=1
print(count)
| [
"ryosuke0711993@gmail.com"
] | ryosuke0711993@gmail.com |
a7331b3ee43605f606716e225b6f3a8427eb2df6 | 4ae7cdc9292009398a292bdf6bee61428559fdfd | /SourceCodeTools/mltools/torch/__init__.py | 3cf41a14372e44768224cab38988ebb371ea39dc | [] | no_license | VitalyRomanov/method-embedding | 52a4e6e7bf726b4db0872902a0eaf1d8cb82b4a8 | 1c8f0fc04eb1f495555272d9747fd2fea68525e1 | refs/heads/master | 2023-08-31T17:39:04.051912 | 2023-01-08T05:02:52 | 2023-01-08T05:02:52 | 219,153,628 | 5 | 7 | null | 2023-07-22T20:27:20 | 2019-11-02T12:54:12 | Python | UTF-8 | Python | false | false | 308 | py | import torch
def compute_accuracy(pred_, true_):
return torch.sum(pred_ == true_).item() / len(true_)
def to_numpy(tensor):
return tensor.cpu().detach().numpy()
def get_length_mask(target, lens):
mask = torch.arange(target.size(1)).to(target.device)[None, :] < lens[:, None]
return mask | [
"mortiv16@gmail.com"
] | mortiv16@gmail.com |
759b4b822b6a931f35052cc8ae753ec5e73d26ef | fab14fae2b494068aa793901d76464afb965df7e | /benchmarks/f3_wrong_hints/scaling_nonlinear_software/3-19_35.py | 57bc6dce8fac1bc637a307a76bce16e0d73a5015 | [
"MIT"
] | permissive | teodorov/F3 | 673f6f9ccc25acdfdecbfc180f439253474ba250 | c863215c318d7d5f258eb9be38c6962cf6863b52 | refs/heads/master | 2023-08-04T17:37:38.771863 | 2021-09-16T07:38:28 | 2021-09-16T07:38:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,903 | py | from typing import FrozenSet, Tuple
import pysmt.typing as types
from pysmt.environment import Environment as PysmtEnv
from pysmt.fnode import FNode
from utils import symb_to_next
from hint import Hint, Location
def transition_system(env: PysmtEnv) -> Tuple[FrozenSet[FNode], FNode, FNode,
... | [
"en.magnago@gmail.com"
] | en.magnago@gmail.com |
0c430c6aecd9750cc42ba607375c8993c00e350c | 0b420532815a3841b74335e1e6ab9f3d533225c3 | /day_night.py | a9501b87541c63bc5ae6e47f5b599ce2137cbdd2 | [] | no_license | akuhnregnier/npower | 3d7ec12e2e21a6e23db96714391986d372e0e6e0 | bf3d842cde9b2e311cd415a8da7786ed36909645 | refs/heads/master | 2021-06-11T21:23:55.221317 | 2016-11-17T16:32:06 | 2016-11-17T16:32:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,808 | py | # -*- coding: utf-8 -*-
"""
Created on Thu Nov 03 17:08:37 2016
@author: ahk114
"""
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
#import seaborn as sns
import cPickle as pickle
import os
from numpy.fft import fft
from numpy.fft import fftfreq
import scipy.optimize as opt
import copy
plt.clos... | [
"ahf.kuhnregnier@gmail.com"
] | ahf.kuhnregnier@gmail.com |
fa9bb76e3d49340273e92d5342b1d42d76847abc | be0171a5e8d2d81c4b6872d180a7e376ca7ac6f7 | /src/prepare_data/get_faces.py | e0e63248aab01ec17afb9f50b0bd9adff5a162cf | [] | no_license | fitrialif/emotion-and-gender-classification | 09ba7b6bf1d81950970eaad3442485cd051fc661 | 0415b18313c079d9d6769d03179c6b47ac8e495a | refs/heads/master | 2020-03-23T09:02:12.525932 | 2018-05-28T13:33:20 | 2018-05-28T13:33:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 53,008 | py | import tensorflow as tf
import numpy as np
import os
#from print_ckpt import print_ckpt
from tensorflow.contrib import slim
import sys
from easydict import EasyDict as edict
import argparse
import cv2
import time
config = edict()
config.BATCH_SIZE = 256
config.CLS_OHEM = True
config.CLS_OHEM_RATIO = 0.7
config.BBOX_O... | [
"lixiaoyu283284@163.com"
] | lixiaoyu283284@163.com |
35bad535a079fa4d1c260581d0e8fc3ca1dd433a | 59b72b8f662cd605b3ce31f54779c17e5ca066d0 | /interview_q/leet_code/子集.py | d6aa3df0e62c43481165dd5041958cface2a3827 | [] | no_license | dongyang2/hello-world | c1f5853ccafd6b8f23836192547ab36f898e0891 | 1f859b53e2b21ed5a648da09b84950f03ec1b370 | refs/heads/master | 2022-12-11T22:07:22.853912 | 2022-11-24T03:52:35 | 2022-11-24T03:52:35 | 119,025,960 | 0 | 0 | null | 2018-01-26T10:09:58 | 2018-01-26T08:28:10 | null | UTF-8 | Python | false | false | 2,388 | py | # https://leetcode-cn.com/problems/subsets/
# coding: utf-8
# Python 3
# 给定一组不含重复元素的整数数组,返回该数组所有可能的子集,包括空集。
#
# 思路:直接使用“组合.py”文件的函数。
# 优化方法,观察输入n=10时的结果,发现后面的结果等于输入数组与前面的结果的差集。如,长度为9的子集,一定等于长度为10的子集减长度为1的子集的结果。
# 边界条件:
def erg_new_new(li, k, tmp, com):
n = len(tmp)
if n == k:
com.append(tmp)
else:... | [
"dongyangzhao@outlook.com"
] | dongyangzhao@outlook.com |
e25d5c6d44603dfc1ac7be40c0f5e63bce951fac | 332ac6deaed8b8917cf874f04fc77246378bdb44 | /setup.py | 4db61d01cd37dbb3dd83d18bdb2eb0d4634cfe76 | [
"MIT",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | hestela/fauxmo | 5a435399eca61c525502dc90333ee73cff0d3d15 | f2246b952a0246bf0dcd74e770c9daea0dcaa763 | refs/heads/master | 2020-03-11T15:45:48.414168 | 2018-04-19T00:56:27 | 2018-04-19T01:08:35 | 130,095,227 | 0 | 0 | null | 2018-04-18T16:58:43 | 2018-04-18T16:58:43 | null | UTF-8 | Python | false | false | 1,755 | py | import re
from setuptools import setup, find_packages
try:
import pypandoc
readme = pypandoc.convert('README.md', 'rst')
history = pypandoc.convert('CHANGELOG.md', 'rst')
except ImportError:
with open('README.md') as readme_file, \
open('CHANGELOG.md') as history_file:
readme = read... | [
"nate@n8henrie.com"
] | nate@n8henrie.com |
5e9b31b9c658c18ee03c3afdab9042716a92b89b | 24fe1f54fee3a3df952ca26cce839cc18124357a | /servicegraph/lib/python2.7/site-packages/acimodel-4.0_3d-py2.7.egg/cobra/modelimpl/vz/ctrctentitydef.py | cf877348cdffddd74f0ba1250b5de389e328ad62 | [] | no_license | aperiyed/servicegraph-cloudcenter | 4b8dc9e776f6814cf07fe966fbd4a3481d0f45ff | 9eb7975f2f6835e1c0528563a771526896306392 | refs/heads/master | 2023-05-10T17:27:18.022381 | 2020-01-20T09:18:28 | 2020-01-20T09:18:28 | 235,065,676 | 0 | 0 | null | 2023-05-01T21:19:14 | 2020-01-20T09:36:37 | Python | UTF-8 | Python | false | false | 15,939 | py | # coding=UTF-8
# **********************************************************************
# Copyright (c) 2013-2019 Cisco Systems, Inc. All rights reserved
# written by zen warriors, do not modify!
# **********************************************************************
from cobra.mit.meta import ClassMeta
from cobra.m... | [
"rrishike@cisco.com"
] | rrishike@cisco.com |
8f2804428b63e25c8e704fb9def3a459ee42e87d | 3b1053429de896731fe659b8ea09efe5f8bdc4cb | /src/db/DBStpHardware.py | 902519e353ffa62e3425ec8e2b8cb150f10325d0 | [] | no_license | rajgu/machine-master | 57bb6f05fce5dfa512ecd10bc5e7bb31bbd76b8a | f1a6081c9bfde1937341a1a55478c08d48005f05 | refs/heads/master | 2020-03-26T22:09:14.058722 | 2018-08-20T15:42:00 | 2018-08-20T15:42:00 | 145,435,570 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,012 | py | from src.db.Crud import Crud
class DBStpHardware(Crud):
_table_name = 'stp_hardware'
_table_struct = {
'stp_id' : {'type' : 'integer', 'validate' : True},
'type' : {'type' : 'text', 'validate' : True},
'name' : {'type' : 'text', 'validate' : True},
'serial_number': {'type' : ... | [
"="
] | = |
d57266dab8d5af22860b6ec60667e9dc907af33f | 0fccee4c738449f5e0a8f52ea5acabf51db0e910 | /genfragments/ThirteenTeV/MSSM_HiggsToMuMu/fragment_mhmodp_MA400_tb20_bbH.py | 29e5b0fcac451a27f7c6bbc2d0d18d8dbe8f4c9b | [] | no_license | cms-sw/genproductions | f308ffaf3586c19b29853db40e6d662e937940ff | dd3d3a3826343d4f75ec36b4662b6e9ff1f270f4 | refs/heads/master | 2023-08-30T17:26:02.581596 | 2023-08-29T14:53:43 | 2023-08-29T14:53:43 | 11,424,867 | 69 | 987 | null | 2023-09-14T12:41:28 | 2013-07-15T14:18:33 | Python | UTF-8 | Python | false | false | 18,020 | py | COM_ENERGY = 13000.0 # GeV
CROSS_SECTION = 1 # pb
PROCESS = 'HiggsBSM:gg2H2bbbar = on'
SLHA_TABLE = """BLOCK SPINFO
1 FeynHiggs
2 2.12.0
2 built on ott 13, 2016
BLOCK MODSEL
1 0 # Model
2 1 # GridPts
3 0 # Content
... | [
"pietro.vischia@gmail.com"
] | pietro.vischia@gmail.com |
aba2a884d4f2b0a73725dccefc5950fbfc7e745e | 74afe97073a0693042d31567ba1a5741bcdebf72 | /tests/utils.py | 82762100c4b3ab85ace2b7d2ff312d3fe836d466 | [
"Apache-2.0"
] | permissive | bruvio/tinyber | 82aa34a5cdf842caa0f863540b249e37ae09fc78 | d20d33341f9e74ba9b699553a8cf6448c167dec9 | refs/heads/master | 2021-05-29T23:07:58.841678 | 2015-07-23T23:24:52 | 2015-07-23T23:24:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 894 | py | from asn1ate import parser
from asn1ate.sema import *
from tinyber.walker import Walker
from tinyber.py_nodes import PythonBackend as Backend
from tinyber import py_nodes as nodes
def generate(infilename, outfilename):
class FakeArgs(object):
no_standalone = False
import os
with open(infilename)... | [
"mark@peek.org"
] | mark@peek.org |
7aa513a018f1f1887b44be7689dd657b6c9f8ed5 | fc20620a1fe41c83cb4c17ce36e5d3e6d5dd58fa | /src/python/dicomifier/__main__.py | b0fac30dd2023b3cfec7b87015b30eef36314d09 | [
"LicenseRef-scancode-cecill-b-en"
] | permissive | lamyj/dicomifier | bdd3ad5756563365fe59a31166cbcaa14f98603f | 8601760917f7ef47d87fbd61d2c647c3d9cbeb3e | refs/heads/master | 2023-04-28T15:45:52.571809 | 2023-04-20T15:50:03 | 2023-04-20T15:50:03 | 32,533,252 | 33 | 11 | NOASSERTION | 2022-09-12T16:53:20 | 2015-03-19T16:28:40 | Python | UTF-8 | Python | false | false | 1,955 | py | #########################################################################
# Dicomifier - Copyright (C) Universite de Strasbourg
# Distributed under the terms of the CeCILL-B license, as published by
# the CEA-CNRS-INRIA. Refer to the LICENSE file or to
# http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html
# for... | [
"lamy@unistra.fr"
] | lamy@unistra.fr |
1b103e18ecb604e87e2f579cf645558421707b91 | 8690ca0028c54b62d68badf1753fc6151ae03525 | /Part3 Levels of Aggregation/fse_data/AllROIs/tpot_mnist_pipeline_triangulateAggregationLevelParticipantSplitaggr_2_groups4.py | 7d1fc2a6145b7665e8206ac0c752c83a15062340 | [] | no_license | brains-on-code/conducting-and-analyzing-human-studies | fd74ee77fdc56cc61bdc1e0cf9bf423780f5dddc | 548e7443f4d2bdb2db1f2858289b7d3518593c59 | refs/heads/master | 2021-06-26T21:30:56.386121 | 2020-12-22T13:49:16 | 2020-12-22T13:49:16 | 195,975,817 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 830 | py | import numpy as np
import pandas as pd
from sklearn.ensemble import RandomForestClassifier
from sklearn.model_selection import train_test_split
# NOTE: Make sure that the class is labeled 'target' in the data file
tpot_data = pd.read_csv('PATH/TO/DATA/FILE', sep='COLUMN_SEPARATOR', dtype=np.float64)
features = tpot_da... | [
"fmriml@fmriml.com"
] | fmriml@fmriml.com |
5594d738155165df35681f20b39b82b9a8c92c1f | c9ab605cdd2dbf92c9de05768ade0ecf1718be02 | /03_Django/04_django_crud_review/jobs/views.py | 92e5f3400502a07e8cddaa907118983276b91bed | [] | no_license | PyeongGang-Kim/TIL | 42d69308cf99d2e07644b51d7636e1b64551a697 | 8711501d131ee7d78fdaac544dda2008adf820a1 | refs/heads/master | 2023-01-12T21:10:38.027946 | 2021-10-23T07:19:48 | 2021-10-23T07:19:48 | 195,937,990 | 10 | 1 | null | 2023-01-07T11:25:30 | 2019-07-09T05:22:45 | HTML | UTF-8 | Python | false | false | 2,489 | py | from django.shortcuts import render
from .models import Job
from faker import Faker
from decouple import config
import requests
from IPython import embed
from pprint import pprint
# Create your views here.
def index(request):
return render(request, 'jobs/index.html')
def past_life(request):
name = request.PO... | [
"pyeonggangkim@gmail.com"
] | pyeonggangkim@gmail.com |
51849e9e5ed14906063e583aaea90f63365bc874 | 51f887286aa3bd2c3dbe4c616ad306ce08976441 | /pybind/nos/v6_0_2f/mac/access_list/extended/__init__.py | 67d76ccc440658bdb11c3eea1c1eb7f28e382ffa | [
"Apache-2.0"
] | permissive | b2220333/pybind | a8c06460fd66a97a78c243bf144488eb88d7732a | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | refs/heads/master | 2020-03-18T09:09:29.574226 | 2018-04-03T20:09:50 | 2018-04-03T20:09:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,533 | py |
from operator import attrgetter
import pyangbind.lib.xpathhelper as xpathhelper
from pyangbind.lib.yangtypes import RestrictedPrecisionDecimalType, RestrictedClassType, TypedListType
from pyangbind.lib.yangtypes import YANGBool, YANGListType, YANGDynClass, ReferenceType
from pyangbind.lib.base import PybindBase
from d... | [
"badaniya@brocade.com"
] | badaniya@brocade.com |
8d8bd2733afc957d19afad643b783047d417c231 | b40fbe6d0012a299b0e771d2e5f0cfca3fe5be2b | /gen_bulk.py | f4fad52f721f76c134105cc0a87572a95af0cbb3 | [] | no_license | olimpiadi-informatica/randomtex | e8555776daa3761b6014cdf006b9c903db7f0fb2 | 1da019715c44db6a51135cb02dbf5a4e52586a95 | refs/heads/main | 2023-04-14T15:15:25.641932 | 2021-04-26T13:57:47 | 2021-04-26T14:13:03 | 358,237,479 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,612 | py | #!/usr/bin/env python3
import argparse
import csv
import datetime
import json
import logging
import multiprocessing.dummy as mp
import os
import random
import shutil
import tempfile
import progressbar
import compilation
import utils
progressbar.streams.wrap_stderr()
logger = logging.getLogger("gen_bulk")
def proc... | [
"williamdiluigi@gmail.com"
] | williamdiluigi@gmail.com |
658f73dbac10be5eab3b65886b7d63510a3112a7 | 37f3759ca34f20d065ed62c9f892004f3468d869 | /first.py | 9aac5b66135641c05b038a41b8fab12fcb597621 | [] | no_license | cmc5953/cmc5953 | faf0d4d17714ffae10c1d9017b88734bb0f171ba | 76a33411ed305ffa2b5d312699f747591e4147ef | refs/heads/master | 2022-04-05T20:51:10.914382 | 2020-03-02T00:30:18 | 2020-03-02T00:30:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18 | py | print("firstfile") | [
"you@example.com"
] | you@example.com |
f8938e7c7df3a92df60e420a4429cb058096a7e6 | 4be5c172c84e04c35677f5a327ab0ba592849676 | /python/data_structures/array/sll/sll.py | dbdb9af0a8277d797c590e960437f9b0ac88de97 | [] | no_license | niranjan-nagaraju/Development | 3a16b547b030182867b7a44ac96a878c14058016 | d193ae12863971ac48a5ec9c0b35bfdf53b473b5 | refs/heads/master | 2023-04-06T20:42:57.882882 | 2023-03-31T18:38:40 | 2023-03-31T18:38:40 | 889,620 | 9 | 2 | null | 2019-05-27T17:00:29 | 2010-09-05T15:58:46 | Python | UTF-8 | Python | false | false | 5,315 | py | '''
A SLL implemented using regular arrays
SLL corresponding to
78 -> 10 -> 41 -> 36 -> 21
is represented below
| Index | Node | Node |
| | data | next |
|-------+------+------|
| 0 | 10 | 7 |
| 1 | | |
| 2 | 36 | 9 ... | [
"vinithepooh@gmail.com"
] | vinithepooh@gmail.com |
2553bc5ec831453cc73c3732fdbffe014c7cf7ce | e82b761f53d6a3ae023ee65a219eea38e66946a0 | /All_In_One/addons/mc-animation-blender/operator_anim_export.py | 503e83160184e749fd854f38b8b1ff3864169f8f | [] | no_license | 2434325680/Learnbgame | f3a050c28df588cbb3b14e1067a58221252e2e40 | 7b796d30dfd22b7706a93e4419ed913d18d29a44 | refs/heads/master | 2023-08-22T23:59:55.711050 | 2021-10-17T07:26:07 | 2021-10-17T07:26:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,913 | py | import bpy
import math
import json
# ExportHelper is a helper class, defines filename and
# invoke() function which calls the file selector.
from bpy_extras.io_utils import ExportHelper
from bpy.props import StringProperty, BoolProperty, EnumProperty
from bpy.types import Operator
class operator_anim_export(Operato... | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
5270fd8590b0db70b57d80c3f96aa6bf2f4b6bb5 | 1ece2cecace68fb1f8879fbe705f615256bba77d | /src/web_mirror/_constants.py | b785a9cd9ad8586bd46d47fcfd619ae9946bece2 | [
"MIT"
] | permissive | nuuuwan/web_mirror | 7ac07d5ed2f11f2dc57bb5c3641311f08d6ffca7 | 52330f9869a2fbb95a9f5309d58e5d5953e6a693 | refs/heads/main | 2023-07-16T17:17:39.219621 | 2021-09-04T06:36:15 | 2021-09-04T06:36:15 | 402,963,316 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 65 | py | """Constants."""
CACHE_NAME = 'web_mirror'
CACHE_TIMEOUT = 3600
| [
"nuuuwan@gmail.com"
] | nuuuwan@gmail.com |
936b3abfafeee8de92355161e81f2cf35625caf2 | 2d8d7fef8f914f1b2337ee5d6a2e7c61dab9ec4e | /基础知识/1.语法基础/13.dict字典-增删改查.py | 8ea74ff8b009cb80334f8c2c6f4eb2ba593b1051 | [] | no_license | kuaikang/python3 | bb5bb8d807c4a8818b18f0d4e598232cc73ab3af | 60ca72662c7a6e718190ffa6139a129c1412a3fb | refs/heads/master | 2021-04-28T10:32:25.416550 | 2018-07-06T01:59:47 | 2018-07-06T01:59:47 | 122,068,697 | 13 | 11 | null | null | null | null | UTF-8 | Python | false | false | 658 | py | print("字典是key-value的数据类型".center(50, "-"))
print("字典是无序的,key不能重复")
info = {"stu1": "tom", "stu2": "jack", "stu3": "lucy"}
print(info)
# 添加
info["stu4"] = "bob"
# 修改
info["stu1"] = "zhang"
# 删除
# info.pop("stu2") # 标准删除方法
# del info["stu3"]
# 查找
print('-----',info.get("stu11")) # 不存在的时候返回
# print(info["stu0"]) # 不存在时会报... | [
"359405466@qq.com"
] | 359405466@qq.com |
9b1336a598319774d6c7b2b0860e876c933a8cbc | c1fe97208afe479b7ae1ee67d69866a6911564ca | /Login/profilecreate/forms.py | 99f047fe4e0523e89dce7b7d71637698624e0c1c | [] | no_license | jaindhairyahere/Python_Django | a0a46c57b6ca60d0942ae181fe28ea56bb1ee948 | f170a2e38b78df698a02821a454a3baea0c358a6 | refs/heads/master | 2020-06-18T09:17:56.364928 | 2019-11-02T18:34:12 | 2019-11-02T18:34:12 | 196,249,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 633 | py | from django import forms
from django.contrib.auth.admin import User
from .models import Alumni
from django.core import validators
def check_PhoneNumber(value):
if len(value) != 10:
raise forms.ValidationError("Not a phone Number")
class UserForm(forms.ModelForm):
password = forms.CharField(widget = forms.PasswordI... | [
"jaindhairya2001@gmail.com"
] | jaindhairya2001@gmail.com |
e946bbe4ccbf8914231a25812913ff77829d1f28 | 545afb3cfe89f82b558faa5b5b28c28b8e3effce | /venv/Lib/site-packages/grpc/_plugin_wrapping.py | 6c925826d6f4cb8b3a86acd5ac23cf15ebe0b1e0 | [
"MIT"
] | permissive | parthpankajtiwary/keras-groundup | 24ad45a4b872e6d77fff8a6f4a3a6d60124a0628 | 0df0844e7d9dca741fad0965761a12f72ee51f07 | refs/heads/master | 2022-11-09T22:34:35.716466 | 2019-10-01T11:01:59 | 2019-10-01T11:01:59 | 210,914,101 | 0 | 1 | MIT | 2022-10-25T06:47:55 | 2019-09-25T18:31:49 | Python | UTF-8 | Python | false | false | 3,527 | py | # Copyright 2015 gRPC 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 applicable law or agreed to in... | [
"parthpankajtiwary@gmail.com"
] | parthpankajtiwary@gmail.com |
7a4ccc2502dab8ff8f1958d5055642f4c92c18ce | bd9a09a3f1a8b2b5166c540ada93cc5b30591605 | /scanner/plugins/cms/piaoyou/piaoyou_six2_sqli.py | eec921a1b177ff73dbc2f527350a99da77615bf5 | [
"MIT"
] | permissive | iceyhexman/onlinetools | 3cb6e349fc30c515f96429abeab5fbcc430ac0cc | 61f2df7ff8e6ad97ca7901728c3ab749679a2bd0 | refs/heads/master | 2023-08-06T19:31:51.328657 | 2022-10-28T04:01:38 | 2022-10-28T04:01:38 | 119,565,769 | 1,662 | 358 | MIT | 2023-03-31T14:34:13 | 2018-01-30T16:51:46 | Python | UTF-8 | Python | false | false | 1,390 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
'''
name: 票友机票预订系统6处SQL注入2(绕过)
referer: http://www.wooyun.org/bugs/wooyun-2015-0116851
author: Lucifer
description: multi sqli。
'''
import sys
import requests
class piaoyou_six2_sqli_BaseVerify:
def __init__(self, url):
self.url = url
def run(self):
... | [
"834430486@qq.com"
] | 834430486@qq.com |
f0af40b807555df49c70d1410197dbfebf56faea | 46d2bb5c6d2ea91ac8a3fda0168cc99501b1abe4 | /middleware/client_test.py | 23a21e179175a2942d8e6f0cd79747b4b0f65bdf | [
"Apache-2.0"
] | permissive | Time1ess/VES | 2fe0a1c3371e243a377ad6a31df5d3b4651ddf4d | fe608b8ae469f81cc23b1ea30f02a1e68fac13ee | refs/heads/master | 2021-01-18T21:36:21.864535 | 2016-06-15T12:21:42 | 2016-06-15T12:21:42 | 52,199,990 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,793 | py | #!/usr/bin/python
# coding:utf-8
# Author: David
# Email: youchen.du@gmail.com
# Created: 2016-04-04 14:10
# Last modified: 2016-04-11 10:01
# Filename: client_test.py
# Description:
import socket
import time
import sys
import select
from random import randint
def Check_Identity(data):
if data == "VES":
r... | [
"youchen.du@gmail.com"
] | youchen.du@gmail.com |
5e9365cd8fcdc3c33017a4fb7808aa0e14bf48f8 | 2e3e256bcc0086a61cbb0e082dc61290196e35d2 | /dragon/common/custom_backend_auth.py | c06f172b49bf3edcc9fa4ad9cf008c2682719502 | [
"Apache-2.0"
] | permissive | miradam/openstack-workload-disaster-recovery | 79dcdb15ebf95d89157751c750a5dbab1557b942 | 854a3952bb9278cc08017ada97ff150b12b1c687 | refs/heads/master | 2020-03-24T15:36:46.808591 | 2016-12-15T12:32:17 | 2016-12-15T12:32:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,087 | py | # vim: tabstop=4 shiftwidth=4 softtabstop=4
# Copyright (C) 2012, Red Hat, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless r... | [
"OSHRITF@il.ibm.com"
] | OSHRITF@il.ibm.com |
a216e6e27226559c893a544e64f063b65a73dc33 | e3bbbb5018baad3cd2a2daf10e315a2e12aec974 | /ichnaea/async/schedule.py | 129cd2fffdcfed4b50627ec2d05e94d081463a88 | [
"Apache-2.0"
] | permissive | ingle/ichnaea | 5980de0532b012af7e48fa89bad7516adb84d24e | ed467538b6e61cf7c7921cd4aacb32ee039d13aa | refs/heads/master | 2021-01-17T14:23:32.369530 | 2016-01-12T20:29:38 | 2016-01-12T20:29:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,476 | py | """
Contains the `Celery Beat schedule
<http://celery.rtfd.org/en/latest/userguide/periodic-tasks.html>`_.
"""
from datetime import timedelta
from celery.schedules import crontab
from ichnaea.models import (
CellShard,
DataMap,
WifiShard,
)
def celerybeat_schedule(app_config):
"""Return the celery ... | [
"hanno@hannosch.eu"
] | hanno@hannosch.eu |
8dd2e0625d7cddc0360585244105d243400bfd8c | 62e58c051128baef9452e7e0eb0b5a83367add26 | /x12/6010/504006010.py | f720a213c867cbaeb745d5d7e34ed4a67527b198 | [] | no_license | dougvanhorn/bots-grammars | 2eb6c0a6b5231c14a6faf194b932aa614809076c | 09db18d9d9bd9d92cefbf00f1c0de1c590fe3d0d | refs/heads/master | 2021-05-16T12:55:58.022904 | 2019-05-17T15:22:23 | 2019-05-17T15:22:23 | 105,274,633 | 0 | 0 | null | 2017-09-29T13:21:21 | 2017-09-29T13:21:21 | null | UTF-8 | Python | false | false | 844 | py | from bots.botsconfig import *
from records006010 import recorddefs
syntax = {
'version': '00601',
'functionalgroup': 'CC',
}
structure = [
{ID: 'ST', MIN: 1, MAX: 1, LEVEL: [
{ID: 'BGN', MIN: 1, MAX: 1},
{ID: 'N1', MIN: 0, MAX: 99999, LEVEL: [
{ID: 'N2', MIN: 0, MAX: 2},
{ID: 'N3',... | [
"doug.vanhorn@tagglogistics.com"
] | doug.vanhorn@tagglogistics.com |
9c0840e858c444ea844208b24a2948f9ad7256f6 | aad4481e8a54e311982d638c1b42a86180726970 | /examples/event-loop-stuff/timeout-clock.py | b5a2076df4b5ee032662cafab72effec9061d0ae | [
"Unlicense",
"Zlib"
] | permissive | jiangguoqing/tkinter-tutorial | 5639b11cfc2f339df3776410dbd7078ee07fac54 | c6fee61ee915cf0894125e5b5eeb7249237d3a6b | refs/heads/master | 2021-05-05T12:02:13.912298 | 2017-06-18T10:51:33 | 2017-06-18T10:51:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 443 | py | import tkinter as tk
import time
# this must return soon after starting this
def change_text():
label['text'] = time.asctime()
# now we need to run this again after one second, there's no better
# way to do this than timeout here
root.after(1000, change_text)
root = tk.Tk()
label = tk.Label(root, t... | [
"akuviljanen17@gmail.com"
] | akuviljanen17@gmail.com |
cd515ac2fb82afb70c385e634c68f7f523290d90 | 1097ed333a4000634e68a590ee6ffc6129ae61e3 | /287.寻找重复数.py | f7574fcf8c3ef85cc24ac1beab25979bd36b19d0 | [
"MIT"
] | permissive | AutuanLiu/Code-Storm2019 | 1bbe890c7ca0d033c32348173bfebba612623a90 | 8efc7c5475fd888f7d86c3b08a3c1c9e55c1ac30 | refs/heads/master | 2020-04-23T07:03:08.975232 | 2019-10-24T08:56:26 | 2019-10-24T08:56:26 | 170,995,032 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,679 | py | #
# @lc app=leetcode.cn id=287 lang=python3
#
# [287] 寻找重复数
#
# https://leetcode-cn.com/problems/find-the-duplicate-number/description/
#
# algorithms
# Medium (60.60%)
# Likes: 246
# Dislikes: 0
# Total Accepted: 17.2K
# Total Submissions: 28.4K
# Testcase Example: '[1,3,4,2,2]'
#
# 给定一个包含 n + 1 个整数的数组 nums,其数字... | [
"autuanliu@163.com"
] | autuanliu@163.com |
56bb1b8a3d238c6c89226c5276b91e8649ac0852 | 660e3a2bb5f127908549d52ebc62d0d67725f832 | /Algorithm_python/최소반복.py | 289ccfc40280f63b62c7f53a788273646c84b529 | [] | no_license | dygksquf5/python_study | b56f8548bea7e31a484301bb97ddefe44d931c80 | 282126b0104dae9f9f8f63e613cc968a2f998ef1 | refs/heads/master | 2023-02-21T03:46:16.673962 | 2021-01-24T14:08:47 | 2021-01-24T14:08:47 | 294,593,923 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 742 | py | # 주어진 수가 커서, 나머지 테스트케이스는 전부 에러ㅓㅓㅓ
def solution(arr):
answer = 0
id = [0] * len(set(str(arr)))
visited = [False] * len(id)
for i in range(len(arr)):
if not visited[arr[i] - 1]:
id[arr[i] - 1] = i
visited[arr[i] - 1] = True
continue
if visited[arr[i]... | [
"66229916+dygksquf5@users.noreply.github.com"
] | 66229916+dygksquf5@users.noreply.github.com |
eb884160b46e9b642bf272c7dd14832b474646d7 | b5e4958bd1c4770297108947e7b7441020b2e9cc | /topi/tests/python_cpp/test_topi_relu.py | f214266351210bcd11b71be64cdebdfc98b25ba6 | [
"Apache-2.0"
] | permissive | Markz2z/tvm | 06a20dcdf76111b64242940323ba998432ffbffb | 3921b938c2a14017c2624f149983e86a7f9a4e94 | refs/heads/master | 2021-09-07T22:13:37.234511 | 2018-02-27T23:14:58 | 2018-02-27T23:14:58 | 124,998,633 | 1 | 0 | Apache-2.0 | 2018-03-13T05:45:19 | 2018-03-13T05:45:19 | null | UTF-8 | Python | false | false | 2,070 | py | """Test code for relu activation"""
import os
import numpy as np
import tvm
import topi
from topi.util import get_const_tuple
def verify_relu(m, n, dtype):
A = tvm.placeholder((m, n), name='A', dtype=dtype)
B = topi.cpp.nn.relu(A)
assert B.dtype == dtype
a_np = np.random.uniform(size=get_const_tuple(A... | [
"tqchen@users.noreply.github.com"
] | tqchen@users.noreply.github.com |
9855a9a453ba14cf06e3fe967deea374c8fe1a86 | c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c | /cases/synthetic/tree-big-677.py | bb26289d2195905caac5c6473919fe4679455e63 | [] | no_license | Virtlink/ccbench-chocopy | c3f7f6af6349aff6503196f727ef89f210a1eac8 | c7efae43bf32696ee2b2ee781bdfe4f7730dec3f | refs/heads/main | 2023-04-07T15:07:12.464038 | 2022-02-03T15:42:39 | 2022-02-03T15:42:39 | 451,969,776 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 22,911 | py | # Binary-search trees
class TreeNode(object):
value:int = 0
left:"TreeNode" = None
right:"TreeNode" = None
def insert(self:"TreeNode", x:int) -> bool:
if x < self.value:
if self.left is None:
self.left = makeNode(x)
return True
else:
... | [
"647530+Virtlink@users.noreply.github.com"
] | 647530+Virtlink@users.noreply.github.com |
ed3556874e717bbaf477fea4cadc0f06772d039c | 5e324af46c554b88b97ee26886b05c88457ff0f5 | /core/settings/production.py | 0514fd109ac361f269a79a6f0a4dcb5a3202ba61 | [] | no_license | doubleclickdetroit/dindintonight | 1bda8851e49782d4dc16ca77d46e4b1f431c2b52 | 9769e1a96730b02511d25af8828b075dff5c35b5 | refs/heads/master | 2016-08-04T22:01:08.083566 | 2014-07-26T18:58:58 | 2014-07-26T18:58:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,383 | py | """Production settings and globals."""
from os import environ
from base import *
# Normally you should not import ANYTHING from Django directly
# into your settings, but ImproperlyConfigured is an exception.
from django.core.exceptions import ImproperlyConfigured
def get_env_setting(setting):
""" Get the envir... | [
"rgarrison3@gmail.com"
] | rgarrison3@gmail.com |
f1d0e4bc2bf2a727d168359cf8886cbca2f8e324 | 25ebc03b92df764ff0a6c70c14c2848a49fe1b0b | /daily/20190406/example_tinyloop/06generator.py | d865c30ed0ec9c763671dcf57f05205d0cd393bb | [] | no_license | podhmo/individual-sandbox | 18db414fafd061568d0d5e993b8f8069867dfcfb | cafee43b4cf51a321f4e2c3f9949ac53eece4b15 | refs/heads/master | 2023-07-23T07:06:57.944539 | 2023-07-09T11:45:53 | 2023-07-09T11:45:53 | 61,940,197 | 6 | 0 | null | 2022-10-19T05:01:17 | 2016-06-25T11:27:04 | Python | UTF-8 | Python | false | false | 240 | py | def f():
x = yield 1
print("@", x)
y = yield 2
print("@", y)
return x, y
itr = f()
v = next(itr)
print("!", v)
v = itr.send([v])
print("!", v)
try:
print(itr.send([v]))
except StopIteration as e:
print(e.args)
| [
"ababjam61+github@gmail.com"
] | ababjam61+github@gmail.com |
43b6ce6cceabe1e527d08133bda8568d38084a2c | 8156f7278a568531f808edfa3cb9cc64090eba17 | /dmhy/getTracker.py | e56307b6feebcbc45cfbffcc4109d0bd8007886d | [] | no_license | DeSireFire/My_Spyder_Pool | 8ef3cfad7911e9e66e0993fb3fa73d10d75e4a7d | ead5d90fd8d532c3f96fb02ac8a1aa15697d8196 | refs/heads/master | 2023-04-06T00:41:12.706009 | 2021-04-29T13:20:59 | 2021-04-29T13:20:59 | 109,140,291 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,351 | py | import requests
URLS = {
'trackers_best':'https://raw.githubusercontent.com/ngosang/trackerslist/master/trackers_best.txt',
'trackers_all':'https://raw.githubusercontent.com/ngosang/trackerslist/master/trackers_all.txt',
'trackers_all_udp':'https://raw.githubusercontent.com/ngosang/trackerslist/master/trac... | [
"1025212779@qq.com"
] | 1025212779@qq.com |
f0c660265b92498d1ba0c1172e8fe861bbba7312 | 4649cce3d8da661ddb204428e21f714a502d36f9 | /src/ensae_teaching_cs/faq/faq_pandas.py | e7794b4e40526ab1f81f343648af19a2bd63b895 | [
"MIT"
] | permissive | xugonglei/ensae_teaching_cs | 10a7b97003e7d833dd0faaae939813bf1e134575 | f06d4ce7ea24338b5b217f6c46ff7980eac7e653 | refs/heads/master | 2020-04-30T11:10:47.368520 | 2015-10-29T21:41:23 | 2015-10-29T21:41:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,936 | py | # -*- coding: utf-8 -*-
"""
@file
@brief Quelques problèmes récurrents avec `pandas <http://pandas.pydata.org/>`_.
"""
def read_csv(filepath_or_buffer, encoding="utf8", sep="\t", **args):
"""
Calls function `read_csv <http://pandas.pydata.org/pandas-docs/stable/generated/pandas.read_csv.html?highlight=read_cs... | [
"xavier.dupre@ensae.fr"
] | xavier.dupre@ensae.fr |
1a7add79983d9aaaa4ac9d383db387f438a20b30 | 3abe14e934f775aca6dba588a9da5c908808daec | /setuptools/tests/test_depends.py | e0cfa88049d7ab7e93b8af06cdac45ee96c0714d | [
"MIT"
] | permissive | IronLanguages/setuptools | e1d6d6aaf990a2691f79ce3a4ca21b87e2f10a1a | 20aa9400b3d44df952c362217d3c5a1c3988467f | refs/heads/master | 2020-03-19T04:21:15.955081 | 2018-06-02T13:26:55 | 2018-06-02T13:26:55 | 135,819,098 | 2 | 1 | MIT | 2018-06-02T13:17:01 | 2018-06-02T13:17:01 | null | UTF-8 | Python | false | false | 374 | py | import sys
from setuptools import depends
class TestGetModuleConstant:
def test_basic(self):
"""
Invoke get_module_constant on a module in
the test package.
"""
mod_name = 'setuptools.tests.mod_with_constant'
val = depends.get_module_constant(mod_name, 'value')
assert val == 'three, sir!'
assert 's... | [
"jaraco@jaraco.com"
] | jaraco@jaraco.com |
c03e87ec7816e07b685894a92fa3274d5414db6c | e80393d0e32358d68e60b5119406c654d2373e1f | /encoding/models/aca2.py | 83cbbae9f07d7dbe332b8679537ef97e0f8d8c86 | [
"MIT",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | yougoforward/Fast_psaa | 3e333fb31743bda7684cc0bdae378bf40d839f63 | 68e99cd5bcf3bf5ab45ea604c3898fabc458c020 | refs/heads/master | 2022-11-04T02:01:03.694010 | 2019-11-30T07:53:01 | 2019-11-30T07:53:01 | 224,800,023 | 1 | 1 | NOASSERTION | 2022-10-26T23:53:43 | 2019-11-29T07:27:43 | Python | UTF-8 | Python | false | false | 7,162 | py | from __future__ import division
import torch
import torch.nn as nn
import torch.nn.functional as F
from .mask_softmax import Mask_Softmax
from .fcn import FCNHead
from .base import BaseNet
__all__ = ['ACA2Net', 'get_aca2net']
class ACA2Net(BaseNet):
def __init__(self, nclass, backbone, aux=True, se_loss=False,... | [
"908865817@qq.com"
] | 908865817@qq.com |
74181cfa74ae35c7c13033e73dd6978c8ffce412 | 07f837d8c5236fe5e75ef510cd296814452370ce | /py/h2o_jobs.py | 311baeb46561a756eefb1ed044efe40f6157e30d | [
"Apache-2.0"
] | permissive | vkuznet/h2o | 6f9006a5186b964bac266981d9082aec7bc1067c | e08f7014f228cbaecfb21f57379970e6a3ac0756 | refs/heads/master | 2021-08-28T11:37:52.099953 | 2021-08-10T22:43:34 | 2021-08-10T22:43:34 | 20,032,996 | 0 | 0 | Apache-2.0 | 2021-08-10T22:43:35 | 2014-05-21T18:46:27 | Java | UTF-8 | Python | false | false | 9,555 | py | import time, sys
import h2o, h2o_browse as h2b
def pollStatsWhileBusy(timeoutSecs=300, pollTimeoutSecs=15, retryDelaySecs=5):
busy = True
trials = 0
start = time.time()
polls = 0
statSum = {}
# just init for worst case 64 nodes?
lastUsedMemBytes = [1 for i in range(64)]
while busy:
... | [
"kevin@0xdata.com"
] | kevin@0xdata.com |
3c145b8ef4e538afdc8b05b7dc35000c6cd14bde | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/429/usersdata/321/107581/submittedfiles/jogoDaVelha.py | b5f5699b08831f08b81685112bfe8cf9f27f5873 | [] | 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 | 962 | py | # -*- coding: utf-8 -*-
from jogoDaVelha_BIB import *
# COLOQUE SEU PROGRAMA A PARTIR DAQUI
print('Bem vindo ao JogoDaVelha do grupo 8 [Iara, Ingrid, Luiz Otávio, Tatiane]\n')
a=nome()
b=solicitaSimboloDoHumano()
sort=sorteioPrimeiraJogada(a)
if sort==0:
if b == 'X':
c = ' O '
else:
c = ' X... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
af8822c01c2eae258d213fcd4fb4dabd0f0f483b | 9a9e0398f26cee9864d48c4618c0a482e5475e83 | /Python/code/design_browser_history.py | 21040767673ace8a3036f93a95df6462006bd225 | [] | no_license | CNife/leetcode | 92693c653bb41780ee431293286c3e909009e9b0 | 7cdd61692ecb52dd1613169e80b924dd39d35996 | refs/heads/main | 2021-06-22T21:22:12.997253 | 2021-03-18T07:07:15 | 2021-03-18T07:07:15 | 206,955,329 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,124 | py | from typing import List
class BrowserHistory:
def __init__(self, homepage: str):
self.stack: List[str] = [homepage]
self.pointer: int = 0
def visit(self, url: str) -> None:
if self.pointer < len(self.stack) - 1:
self.stack[self.pointer + 1] = url
del self.stack... | [
"CNife@vip.qq.com"
] | CNife@vip.qq.com |
6e5c1b6b90f3961a988d8bfcdf41f2994f72480b | b6c4c71dd1544bfc6bc364b4242e9b76401e7372 | /ebicochineal/yukicoder/g81.py | 2e1d5cfc8ad06f1f4c36fda82b6ff2d262b58410 | [] | no_license | ebi-cp/golf | b248f9a7b1a09e6d6c90e141ae5ce1cacbf7c665 | 4ea8f8456fd926051aadc1e88e4014585f483997 | refs/heads/master | 2020-03-17T20:53:06.910302 | 2019-06-20T01:47:59 | 2019-06-20T01:47:59 | 133,932,902 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 110 | py | #! /usr/bin/env python3
from decimal import*
print('{:.10f}'.format(eval("+Decimal(input())"*int(input()))))
| [
"yz94588@gmail.com"
] | yz94588@gmail.com |
8f531582e923fb0fb0831e88beb903ecdecbc8a3 | b521802cca8e4ee4ff5a5ffe59175a34f2f6d763 | /maya/maya-utils/Scripts/Animation/2019-2-15 Tim Cam_Route_Manager/.history/Cam_Main/Cam_Main/Cam_Item_Layout_20190119190257.py | 89fe9b62ef2019192a357e1a4849c612a4a637d1 | [] | no_license | all-in-one-of/I-Do-library | 2edf68b29558728ce53fe17168694ad0353a076e | 8972ebdcf1430ccc207028d8482210092acf02ce | refs/heads/master | 2021-01-04T06:58:57.871216 | 2019-12-16T04:52:20 | 2019-12-16T04:52:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,985 | py | # -*- coding:utf-8 -*-
# Require Header
import os
import json
from functools import partial
# Sys Header
import sys
import traceback
import subprocess
import plugin.Qt as Qt
from Qt.QtCore import *
from Qt.QtGui import *
from Qt.QtWidgets import *
def loadUiType(uiFile):
import plugin.Qt as Qt
if Qt.__bindin... | [
"2595715768@qq.com"
] | 2595715768@qq.com |
ab8798f43f4e62010d729812993d84aa181dc52b | 14373275670c1f3065ce9ae195df142146e2c1a4 | /stubs/python-jose/jose/jws.pyi | 777770ae62ba7928c9ecd32abfe7fdcce15fb17d | [
"Apache-2.0",
"MIT"
] | permissive | sobolevn/typeshed | eb7af17c06a9722f23c337e6b9a4726223155d58 | d63a82640390a9c130e0fe7d409e8b0b836b7c31 | refs/heads/master | 2023-08-04T05:59:29.447015 | 2023-06-14T21:27:53 | 2023-06-14T21:27:53 | 216,265,622 | 2 | 0 | Apache-2.0 | 2022-02-08T10:40:53 | 2019-10-19T20:21:25 | Python | UTF-8 | Python | false | false | 939 | pyi | from collections.abc import Container, Mapping
from typing import Any
from .backends.base import Key
def sign(
payload: bytes | Mapping[str, Any],
# Internally it's passed down to jwk.construct(), which explicitly checks for
# key as dict instance, instead of a Mapping
key: str | bytes | dict[str, Any... | [
"noreply@github.com"
] | sobolevn.noreply@github.com |
83dee180bba344ba4431b5eddabacca981be46a9 | ea378480ba678eb123ef826e3ca0c3eb8f4e538f | /py ref/agg:PIL/05-snowflake.py | 685698ad5cd2aee1ad26a0569fba738e94d596b8 | [] | no_license | msarch/py | 67235643666b1ed762d418263f7eed3966d3f522 | dcd25e633a87cdb3710e90224e5387d3516c1cd3 | refs/heads/master | 2021-01-01T05:21:58.175043 | 2017-05-25T08:15:26 | 2017-05-25T08:15:26 | 87,453,820 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,443 | py | # Snowflake Simulation Using Reiter Cellular Automata
# Source: "A Local Cellular Model for Snow Crystal Growth" by Cliff Reiter
# FB36 - 20130107
import math
import random
from PIL import Image, ImageDraw
imgx = 500; imgy = 500 # image size
imgx1 = imgx - 1; imgy1 = imgy - 1
image = Image.new("RGB", (imgx, imgy))
draw... | [
"msarch@free.fr"
] | msarch@free.fr |
c26ce4af3e3326663a505c3563633472e49af3ec | f87f51ec4d9353bc3836e22ac4a944951f9c45c0 | /.history/HW06_20210715232125.py | 82e83460b2b3572ef7ede77011ce58249bbfcda0 | [] | no_license | sanjayMamidipaka/cs1301 | deaffee3847519eb85030d1bd82ae11e734bc1b7 | 9ddb66596497382d807673eba96853a17884d67b | refs/heads/main | 2023-06-25T04:52:28.153535 | 2021-07-26T16:42:44 | 2021-07-26T16:42:44 | 389,703,530 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,842 | py | """
Georgia Institute of Technology - CS1301
HW06 - Text Files & CSV
Collaboration Statement:
"""
#########################################
"""
Function Name: findCuisine()
Parameters: filename (str), cuisine (str)
Returns: list of restaurants (list)
"""
#########################################
########## WRITE FUN... | [
"sanjay.mamidipaka@gmail.com"
] | sanjay.mamidipaka@gmail.com |
8498795049bcc029a2c71a310a2525dd63063293 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/otherforms/_commoners.py | ba7756247f776e21069b78a695be616e5b343ce5 | [
"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 | 230 | py |
#calss header
class _COMMONERS():
def __init__(self,):
self.name = "COMMONERS"
self.definitions = commoner
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.basic = ['commoner']
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
cc560822ef2d48813402158877c3e00ff38a8fb7 | 96dcea595e7c16cec07b3f649afd65f3660a0bad | /tests/components/dsmr/test_config_flow.py | 8ad7c7214a3c8c39e9e6f051c5814db922a12dea | [
"Apache-2.0"
] | permissive | home-assistant/core | 3455eac2e9d925c92d30178643b1aaccf3a6484f | 80caeafcb5b6e2f9da192d0ea6dd1a5b8244b743 | refs/heads/dev | 2023-08-31T15:41:06.299469 | 2023-08-31T14:50:53 | 2023-08-31T14:50:53 | 12,888,993 | 35,501 | 20,617 | Apache-2.0 | 2023-09-14T21:50:15 | 2013-09-17T07:29:48 | Python | UTF-8 | Python | false | false | 19,514 | py | """Test the DSMR config flow."""
import asyncio
from itertools import chain, repeat
import os
from unittest.mock import DEFAULT, AsyncMock, MagicMock, patch, sentinel
import serial
import serial.tools.list_ports
from homeassistant import config_entries, data_entry_flow
from homeassistant.components.dsmr import DOMAIN... | [
"noreply@github.com"
] | home-assistant.noreply@github.com |
da3148eda0d51e3d5d6c53ed95cca7d8fd467839 | 75ce5b7fee397fe4e67ed15a58f4cd42e0f8de9f | /PythonMasterclass/OOP/oop.py | 8f9a4c844627350a4a88b461ec85cf8bb780bbce | [] | no_license | lukbast/stuff | 7fd03b7e035394802c307682a25621dfd667960b | 160e1d77d1b592fac099b9c7139fb4e2f7f8dbbe | refs/heads/main | 2023-08-06T21:39:55.334812 | 2021-09-23T17:37:47 | 2021-09-23T17:37:47 | 409,684,114 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 798 | py | class Kettle(object):
power_source = 'electricity'
def __init__(self, make, price):
self.make = make
self.price = price
self.on = False
def turn_on(self):
self.on = True
philips = Kettle('Philips', 420)
kenwood = Kettle('Kenwood', 9.99)
kenwood.price = 666
print(kenwood... | [
"jaimperator99@gmail.com"
] | jaimperator99@gmail.com |
3e64394d796a026c719123cf7ef89bcb82365121 | 9e988c0dfbea15cd23a3de860cb0c88c3dcdbd97 | /sdBs/AllRun/sdssj_120408.22+153609.7/sdB_sdssj_120408.22+153609.7_lc.py | 45c4a65ca1273ffe327210776740e7315636db7c | [] | no_license | tboudreaux/SummerSTScICode | 73b2e5839b10c0bf733808f4316d34be91c5a3bd | 4dd1ffbb09e0a599257d21872f9d62b5420028b0 | refs/heads/master | 2021-01-20T18:07:44.723496 | 2016-08-08T16:49:53 | 2016-08-08T16:49:53 | 65,221,159 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 370 | py | from gPhoton.gAperture import gAperture
def main():
gAperture(band="NUV", skypos=[181.03425,15.602694], stepsz=30., csvfile="/data2/fleming/GPHOTON_OUTPU/LIGHTCURVES/sdBs/sdB_sdssj_120408.22+153609.7/sdB_sdssj_120408.22+153609.7_lc.csv", maxgap=1000., overwrite=True, radius=0.00555556, annulus=[0.005972227,0.010388897... | [
"thomas@boudreauxmail.com"
] | thomas@boudreauxmail.com |
8d062e70c1250414eb462291082fec9b977fc54e | 80199ed4dd0d072140160a785932c35952105b19 | /miller/api/serializers/__init__.py | c25a1b7e375a9e4c48c04feabf33e4b2f2d6833d | [] | no_license | C2DH/miller | 7d90bb6bdfec0ab37cea80480c783dc850e33d19 | 5263a9e392249f6515e74dd45b92957bd6e9e1a7 | refs/heads/miller-v2 | 2023-06-01T20:51:37.167091 | 2023-05-15T13:48:03 | 2023-05-15T13:48:03 | 89,341,967 | 1 | 3 | null | 2023-05-15T13:46:16 | 2017-04-25T09:23:29 | Python | UTF-8 | Python | false | false | 41 | py | from .story import CreateStorySerializer
| [
"gui.daniele@gmail.com"
] | gui.daniele@gmail.com |
ce9e81e2b51bb97642a79f8b467a2770571ede66 | eea1be5dbac7fa10167eae167eb6712e3937f53a | /voidcoin/settings/dev.py | 70ec86d6e913a5df701dd36881e48c14a73f0cf7 | [] | no_license | chidimo/Voidcoin | 40962e46661b2a7106bd8e60d0830c3b9629b8fa | 227c160dfa671818522781aab013f2d1fcb098a9 | refs/heads/develop | 2022-12-09T17:40:26.294425 | 2019-07-04T08:32:20 | 2019-07-04T08:32:20 | 135,197,447 | 5 | 2 | null | 2022-12-08T02:08:45 | 2018-05-28T18:45:19 | Python | UTF-8 | Python | false | false | 1,964 | py | from .base import *
DEBUG = True
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.postgresql_psycopg2',
'NAME': 'voidcoin',
'USER': 'postgres',
'PASSWORD': config('DEV_DB_PASSWORD'),
'HOST': 'localhost',
'PORT': 5432
}
}
EMAIL_BACKEND = 'django.core.mai... | [
"orjichidi95@gmail.com"
] | orjichidi95@gmail.com |
3f4d4b142fe225bb204064c1dbfc8857e1c172fe | 93a613f09d564a1d45ecc01b54b73745ce2850b7 | /majora2/forms.py | 6adcc2da009d17ffe9c9c4e06700d45aa3e7b5d8 | [] | no_license | pythseq/majora | fa17c77fa8a916c688fd2b40744d768dd851b99b | 40b918d32b4061cddee5f7279f97e70eb894623d | refs/heads/master | 2022-12-23T20:09:41.233844 | 2020-09-28T18:18:42 | 2020-09-28T18:18:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 35,308 | py | import datetime
from django import forms
from django.contrib.auth.models import User
from django.db.models import Q
from django.utils import timezone
from crispy_forms.helper import FormHelper
from crispy_forms.layout import Layout, Fieldset, Submit, Row, Column
from crispy_forms.bootstrap import FormActions
from .... | [
"samstudio8@gmail.com"
] | samstudio8@gmail.com |
6066c82429a06cfc912a197d31d676903f1d208e | cd50ed5464a5397b4e5bafc36efebf88f14b2d8b | /models/rnn_theano.py | cd97581f15b5bc82263db599c4e65f8f297ca657 | [] | no_license | millatidy/hit400_lstm | cc6db62c68f18296e40a75395725a8112d4632e8 | 38bce32bd8bec5c20e373957526bfecf79a3a761 | refs/heads/master | 2021-06-18T01:20:17.006138 | 2017-05-09T01:44:24 | 2017-05-09T01:44:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,909 | py | import numpy as np
import theano as theano
import theano.tensor as T
from utils import *
import operator
class RNN_THEANO:
'''
input_dim is the array size of the input data
hidden_dim is the array size of the hidden input_dim
output_dim is the array size of the output
# input weight... | [
"tidymilla@gmail.com"
] | tidymilla@gmail.com |
d119951e1a0327b0d9524d4b51562c44cbcf814c | b2c04e31a4eeb4b512512ef6731049fa65f4407c | /presidentspeech/lib/python3.6/site-packages/joblib/_parallel_backends.py | c78750667edb93004442e2a058d88459b9fda75d | [
"MIT"
] | permissive | aless80/Presidentspeech | 805f4da59a9d3e150db752f64f5b9ca0d5b04223 | 39349a4e6fa5a51a181a418bdc85f00878b4c6e4 | refs/heads/master | 2022-11-29T08:52:02.405580 | 2018-10-07T19:45:21 | 2018-10-07T19:45:21 | 102,866,762 | 1 | 0 | MIT | 2022-11-22T03:03:33 | 2017-09-08T13:54:01 | Python | UTF-8 | Python | false | false | 23,014 | py | """
Backends for embarrassingly parallel code.
"""
import gc
import os
import sys
import warnings
import threading
import functools
import contextlib
from abc import ABCMeta, abstractmethod
from .format_stack import format_exc
from .my_exceptions import WorkerInterrupt, TransportableException
from ._multiprocessing_h... | [
"AlessandroMarin80@gmail.com"
] | AlessandroMarin80@gmail.com |
f7563abdb8f484051174f08311f015a78de85abb | a01e7f87a0088965e2e0a02476d2df12a49a1a18 | /package/vpntfi/build/lib/vpnmodule/lib/ipsec.py | ec9ef5f7c46a4f3932aa7db489e96b7baad3399c | [] | no_license | gsrr/IFT_jerry | 0456a8a1fb98f84ad5c26dc36bdf32e2d85c750c | 4c2f6900dfd7ae7f6b3cc2150b1c1be236b4c95c | refs/heads/master | 2020-04-04T05:30:10.544252 | 2019-08-22T09:12:03 | 2019-08-22T09:12:03 | 48,145,836 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,828 | py | import sys
import os
import configLoader
import mcommon
def make_replace_func(src, dst):
def wrap_func(items):
with open(src, "r") as fr:
with open(dst, "w") as fw:
for line in fr.readlines():
line = line.strip()
for key in items.keys():
... | [
"jerrycheng1128@gmail.com"
] | jerrycheng1128@gmail.com |
04a5ac227ff16d908d6ea9c43ed65181b56820de | 46b432cd3557038c454601367b878f889c9b6a8f | /kiyuna/tutorial07/tutorial07.py | cd07ce259e448005ecafb1d76d2ccac03e4a9643 | [] | no_license | tmu-nlp/NLPtutorial2019 | 84ceec06568fd9d899a686658fb8851466133375 | d77d199c50cd37d70e462209a7bfcd4dee9140a1 | refs/heads/master | 2020-05-14T13:34:05.336594 | 2019-09-25T02:25:41 | 2019-09-25T02:25:41 | 181,814,723 | 1 | 0 | null | 2019-08-01T18:53:54 | 2019-04-17T04:04:06 | Python | UTF-8 | Python | false | false | 478 | py | from train_nn import *
from test_nn import *
import subprocess
train_path = '../../data/titles-en-train.labeled'
train_nn(train_path, layer_num=1, node_num=2, epoch_num=1, λ=0.1)
test_path = '../../data/titles-en-test.word'
out_path = './out.txt'
test_nn(test_path, out_path)
script_path = '../../script/grade-predict... | [
"kyuna.prog@gmail.com"
] | kyuna.prog@gmail.com |
54af5cd1a521f7e55d1fc43f8010b47de5507d7a | 67325192c1e528a39d457f11e61b480d68826708 | /mods/mcpython/Commands/paststructur.py | 117c93e349a2e464fbdd360aea9102a06eae33c7 | [
"MIT"
] | permissive | vashistaarav1611/mcpython-a-minecraft-clone-in-python | 5851b377b54fd2b28c106112c7b18f397b71ab50 | c16cd66f319efdeec4130e1a43f5a857caf1ea13 | refs/heads/master | 2023-02-01T22:48:51.787106 | 2020-12-21T15:02:25 | 2020-12-21T15:02:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 693 | py | # todo: remove
from . import Command
import structures
import globals as G
class paststructur(Command.Command):
@staticmethod
def getHelp():
return "/paststructur <name> <x> <y> <z>"
@staticmethod
def isCommand(line):
return line.split(" ")[0] == "/paststructur"
@staticmethod
... | [
"baulukas1301@googlemail.com"
] | baulukas1301@googlemail.com |
d86340a6767ed274ae880923b13b4c21609393f6 | 047fbc11cd389e56865034cf473807db8718d92e | /assignment_test.py | 46933b2148fcdc536230cfb6950f6b105b7d6bba | [] | no_license | SDSS-Computing-Studies/002b-basic-math-Sebastianmaudee | 5c07d14dd2f13a6de8674d08c36f614defd1d84a | ae9826096b03ba4cf0d45fa27ec4acf9449570b7 | refs/heads/master | 2023-08-28T23:20:37.346270 | 2021-10-21T21:16:41 | 2021-10-21T21:16:41 | 406,925,526 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 277 | py | #! python3
import a1, a2, a3, a4, a5, a6
def test1():
assert a1.answer == 14
def test2():
assert a2.answer == 3
def test3():
assert a3.answer == 10
def test4():
assert a4.answer == 2.5
def test5():
assert a5.answer == 1
def test6():
assert a6.answer == 25
| [
"66690702+github-classroom[bot]@users.noreply.github.com"
] | 66690702+github-classroom[bot]@users.noreply.github.com |
ee9703daa5cc3632e67a2217d830eed7463293cf | 48fab33def7dfaed44dbf0a2c5c148798a10c4c8 | /test/onnx_converter_test/hugectr2onnx_wdl_test.py | 7577b6ee48494f469b7d97b2915f797fb76344de | [
"Apache-2.0"
] | permissive | js-ts/HugeCTR | 787fa22e8643cbfe7c6b9dac4414a70eb37f322c | 085b2e8ad2abaee5578e7bf43b8394d0b8473b58 | refs/heads/master | 2023-08-16T11:29:57.490236 | 2021-10-21T02:31:24 | 2021-10-21T02:31:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,851 | py | #
# Copyright (c) 2021, NVIDIA CORPORATION.
#
# 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 agreed... | [
"zehuanw@nvidia.com"
] | zehuanw@nvidia.com |
41d3c3423049d66be5d5a676da6f65fc11ccee96 | 3117852233ea6c2644e723587a7b28d6d6518d95 | /Calculator_Gamma.py | 56834b8c0142138f9ff1356056dec9729eb49cbb | [] | no_license | harishravi121/Pythoncodes | d70059a3b7785d668a4b03f3ec85b0777b33706f | 1d6d6ca0ed6348b6c5d07d27d24668fb567527ca | refs/heads/master | 2023-07-07T11:58:03.741814 | 2023-07-01T08:01:56 | 2023-07-01T08:01:56 | 211,642,477 | 3 | 0 | null | 2020-01-13T06:45:25 | 2019-09-29T10:00:32 | Python | UTF-8 | Python | false | false | 4,117 | py | #The ALU has digital circuits for sum, subtraction, multiplication and comparision.
#The challenge here would be to write the code for division, square root, trignometric and other fuctions
#The following python code just needs python install of 30 MB
x='25'; #2 digit number
y='14'; #2 digit number
#Doing repr... | [
"noreply@github.com"
] | harishravi121.noreply@github.com |
caf7ec1a93c4ba7f19938d29664e3db866008a9a | 0add7953d3e3ce2df9e8265102be39b758579753 | /built-in/TensorFlow/Official/cv/image_classification/ResnetVariant_for_TensorFlow/automl/vega/core/trainer/distributed_worker.py | 5d9fc4bf51e66b007308d25784eede866bf0e020 | [
"Apache-2.0",
"MIT"
] | permissive | Huawei-Ascend/modelzoo | ae161c0b4e581f8b62c77251e9204d958c4cf6c4 | df51ed9c1d6dbde1deef63f2a037a369f8554406 | refs/heads/master | 2023-04-08T08:17:40.058206 | 2020-12-07T08:04:57 | 2020-12-07T08:04:57 | 319,219,518 | 1 | 1 | Apache-2.0 | 2023-03-24T22:22:00 | 2020-12-07T06:01:32 | Python | UTF-8 | Python | false | false | 9,223 | py | # -*- coding: utf-8 -*-
# Copyright (C) 2020. Huawei Technologies Co., Ltd. All rights reserved.
# This program is free software; you can redistribute it and/or modify
# it under the terms of the MIT License.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the... | [
"1571856591@qq.com"
] | 1571856591@qq.com |
4ba94ad8d63b1aded9da71576d77fa7a6caafdec | 159d4ae61f4ca91d94e29e769697ff46d11ae4a4 | /venv/lib/python3.9/site-packages/pandas/tests/groupby/test_min_max.py | 25a57d24e04ef974fbd644249e8114cbe40588c9 | [
"MIT"
] | permissive | davidycliao/bisCrawler | 729db002afe10ae405306b9eed45b782e68eace8 | f42281f35b866b52e5860b6a062790ae8147a4a4 | refs/heads/main | 2023-05-24T00:41:50.224279 | 2023-01-22T23:17:51 | 2023-01-22T23:17:51 | 411,470,732 | 8 | 0 | MIT | 2023-02-09T16:28:24 | 2021-09-28T23:48:13 | Python | UTF-8 | Python | false | false | 5,733 | py | import numpy as np
import pytest
from pandas._libs.tslibs import iNaT
import pandas as pd
from pandas import (
DataFrame,
Index,
Series,
)
import pandas._testing as tm
def test_max_min_non_numeric():
# #2700
aa = DataFrame({"nn": [11, 11, 22, 22], "ii": [1, 2, 3, 4], "ss": 4 * ["mama"]})
re... | [
"davidycliao@gmail.com"
] | davidycliao@gmail.com |
fd14a8d1149199664afe6d1f9f84b157b93b7cfb | bc1b9455826f2e07976c04b20515ac4a45eaf6b6 | /pyrax/resource.py | da570dcd342c43305fcae4a4a1f9c5ba3598bcd5 | [] | no_license | gondoi/pyrax | b3df411d4c1ed8d8e1e0151e9378f7400ff782fc | 4a917f55e706b650774a305a424ed456da773f02 | refs/heads/master | 2021-01-18T11:21:13.557056 | 2012-12-19T22:49:52 | 2012-12-19T22:49:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,352 | py | # Copyright 2010 Jacob Kaplan-Moss
# Copyright 2011 OpenStack LLC.
# Copyright 2012 Rackspace
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# htt... | [
"ed@leafe.com"
] | ed@leafe.com |
705bb752a9258e3bc2c8ee9f16145cfd532bc894 | 60c0ca4ef3ad20bad04311473b2f4044f54739d2 | /store/api/migrations/0005_order_sold_at.py | af648d3a29d3d09976b8254d48088c4f4700c7c2 | [] | no_license | Jimiliani/rainforest | 361915024cc2a93a9bb8621372627b2d84176271 | b1bf65ee4441d1a4980a2e65ce2cfc629b9d6a7a | refs/heads/main | 2023-06-19T18:10:38.879924 | 2021-07-21T14:54:05 | 2021-07-21T14:54:05 | 387,679,460 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 376 | py | # Generated by Django 3.1.5 on 2021-07-20 19:10
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('api', '0004_auto_20210720_2159'),
]
operations = [
migrations.AddField(
model_name='order',
name='sold_at',
... | [
"dikorolyov@mail.ru"
] | dikorolyov@mail.ru |
c724c19fb17cb22589d49e60505ecf79ee04e7c5 | d1742451b25705fc128acc245524659628ab3e7d | /Data Structure & Algorithm/Disjoint Set Union/10685 - Nature.py | b0b9ec8421bcfe7e9e623074eb4e6f6e4a873ba0 | [] | no_license | Shovon588/Programming | ebab793a3c97aedddfcad5ea06e7e22f5c54a86e | e4922c9138998358eed09a1be7598f9b060c685f | refs/heads/master | 2022-12-23T18:29:10.141117 | 2020-10-04T17:29:32 | 2020-10-04T17:29:32 | 256,915,133 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 935 | py | def makeset(n):
par[n] = n
def find(r):
if par[r]==r:
return r
par[r] = find(par[r])
return find(par[r])
def joint(a,b):
u = find(a)
v = find(b)
if u!=v:
par[u] = v
def generate_result(dic):
res = -1
for i in range(1,n+1):
temp = find(i)
if temp ... | [
"mainulislam588@gmail.com"
] | mainulislam588@gmail.com |
f386a2baff367c7b94051355314792f3ac231a3d | 09e57dd1374713f06b70d7b37a580130d9bbab0d | /data/p3BR/R2/benchmark/startQiskit_QC200.py | 254dea7ab62da21d4456472998e9b8a1d0c8d255 | [
"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 | 6,300 | py | # qubit number=3
# total number=37
import numpy as np
from qiskit import QuantumCircuit, execute, Aer, QuantumRegister, ClassicalRegister, transpile, BasicAer, IBMQ
from qiskit.visualization import plot_histogram
from typing import *
from pprint import pprint
from math import log2
from collections import Counter
from... | [
"wangjiyuan123@yeah.net"
] | wangjiyuan123@yeah.net |
76eb0ff4bccebf9ef628e4a625ec26945dffb10d | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02573/s607211232.py | a15ccc098a97d0f2076b85071f021635d77845ac | [] | 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 | 735 | py | class UnionFind:
def __init__(self, n):
self.r = [-1] * n
def root(self, x):
if self.r[x] < 0:
return x
self.r[x] = self.root(self.r[x])
return self.r[x]
def merge(self, x, y):
x, y = self.root(x), self.root(y)
if x == y:
return F... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
762b1c64e435700c7347877040a1ae4aaaaabfe8 | f51a03fee097195911c1577e8510908d02784853 | /src/data/reg_ex/poker_888.py | 9df00e106415573e9384ed7598704598977a71a5 | [] | no_license | aaaaaa2493/poker-engine | fc04cc4b93ad73189adf99b2f864d12a99a34dce | 52aebf8572f87378fa78c999c252d60fcc80f5ce | refs/heads/master | 2020-08-31T17:38:28.477260 | 2019-10-31T12:16:40 | 2019-10-31T12:16:40 | 218,746,090 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,701 | py | from re import compile
class Poker888:
name = '[a-zA-Z0-9_\-@\'.,$*`áàåäãçéèêíîóöôõšüúžÄÁÃÅÉÍÖÔÓÜØø´<^>+&' \
'\\\/()Ѐ£¼ñ®™~#!%\[\]|°¿?:"=ß{}æ©«»¯²¡; ]+'
identifier = compile('^\*\*\*\*\* 888poker Hand History')
identifier_snap = compile('^Snap Poker Hand History')
hand_border = compile('... | [
"aaaaaa2493@yandex.ru"
] | aaaaaa2493@yandex.ru |
992d9b74e952ecd7516429a0554f8e5e86d3a855 | 6f594cc963795c69d8da3c30ca580c0405ef2d6e | /other/57InsertInterval.py | d1fb32163788f8998b4a82b8be2a45e9a2d0316a | [] | no_license | lo-tp/leetcode | 25933c5b25f64f881d43748d8b2763f69614a97f | 4cc4d76c64e9d9aa3f53c5e9574e488c93e10a50 | refs/heads/master | 2022-09-07T20:32:58.487759 | 2022-09-05T03:39:50 | 2022-09-07T13:39:50 | 116,555,892 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 789 | py | class Solution(object):
def insert(self, intervals, newInterval):
res = []
if intervals:
start, end = newInterval
for s, e in intervals:
if start != -1:
# 1
if e < start:
res.append([s, e])
... | [
"regesteraccount@hotmail.com"
] | regesteraccount@hotmail.com |
e31c2e26ec440d62747103a26caeb3e97c34bdc3 | 2da6b95fe4237cc00014f80c45d268ab62fc90cd | /OSR/DFP_end3/cifar100.py | ce07f74fad4fe9ce0e53a4f74e28977d3e9bb80e | [] | no_license | lvzongyao/Open-Set-Recognition-1 | 7e26cd1d97f67b6c075f4e64296ce7a82d479168 | 26a8a1cca199f4e23df98abca6893e3eef3307da | refs/heads/master | 2023-08-19T09:15:16.119377 | 2021-09-13T04:21:18 | 2021-09-13T04:21:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,458 | py | from __future__ import print_function
import torch
import torch.nn as nn
import math
import torch.optim as optim
import torch.nn.functional as F
import torch.backends.cudnn as cudnn
import torchvision
import numpy as np
import torchvision.transforms as transforms
import os
import argparse
import sys
# from models i... | [
"xuma@my.unt.edu"
] | xuma@my.unt.edu |
7e072a572581f6627fca07bcdcad06f5612d2500 | 44990e9f4630aa9efc8e0fa56f2c5dbd836cddc6 | /nao_vacila/wsgi.py | b4a7dcfe74eda774e16c8596df6bc9f14e247473 | [] | no_license | kallebefelipe/webserver-nao-vacila | 33c61461d73b7f9e649a93406eb032014f3b983c | 57e972a44a4eb68e5253d38d320051723d33a924 | refs/heads/master | 2022-12-14T19:18:22.670018 | 2017-09-06T13:00:02 | 2017-09-06T13:00:02 | 95,972,976 | 0 | 0 | null | 2022-12-07T23:58:58 | 2017-07-01T15:40:23 | Python | UTF-8 | Python | false | false | 489 | py | """
WSGI config for nao_vacila 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/1.11/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
from whitenoise.django import Dj... | [
"kallebefelipe@gmail.com"
] | kallebefelipe@gmail.com |
c2ea2cc2352bfd9d8b9ad888ff3c0fb82997b816 | 22954a0c13d7bf1824320802e802aa8166f16d76 | /web_scraping/rhiphopheads/items.py | ca9af6e29328930a755afe5a2a604dbaed917dd5 | [] | no_license | luke-zhu/cs1951a-data | e0c7a96c7e100c278722419ba3bc845f6a5326c4 | 925c3263988db1de815589c5e47ddd918c345b25 | refs/heads/master | 2021-01-20T07:40:21.372377 | 2017-05-02T21:47:08 | 2017-05-02T21:47:08 | 90,025,042 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 291 | py | # -*- coding: utf-8 -*-
# Define here the models for your scraped items
#
# See documentation in:
# http://doc.scrapy.org/en/latest/topics/items.html
import scrapy
class RhiphopheadsItem(scrapy.Item):
# define the fields for your item here like:
# name = scrapy.Field()
pass
| [
"luke_zhu@brown.edu"
] | luke_zhu@brown.edu |
dc8835c6dec0140fcb1852faa09d8e70a7cdeaaf | c397d4899fbb5e34b90a2650be2e6aa6f5725972 | /blog/migrations/0037_reviewimage_thumbnail.py | 805c17f73adb43f3b5a343a908788a464aa1d064 | [] | no_license | CCCodes/ProConDuck | aa68e6e89c3c71ddf7832d35f51688fddc379b10 | c4ce19e62d5b50b3da9d258fa4e40831e159f2f7 | refs/heads/master | 2023-02-16T18:55:27.766465 | 2021-01-17T16:49:37 | 2021-01-17T16:49:37 | 96,048,162 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 457 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.3 on 2017-08-23 00:31
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('blog', '0036_auto_20170822_0803'),
]
operations = [
migrations.AddField(
... | [
"caitlinchou@gmail.com"
] | caitlinchou@gmail.com |
a91390c161f40656d0f323b1525d55125c72c02a | 0b279c246179bc6a76ad17f055ad1dce3402b045 | /private_production/eft/2018/crab_INT_MINIAODSIM.py | e9a3be5b74809d1efea5713aa88eb353e315e3d7 | [] | no_license | UniMiBAnalyses/CMSSWGeneration | a55e6ad840e4f7f9fae6b46a4bb939a288492f10 | a7acf1a780eeb30e14616fef90ccf389e4367668 | refs/heads/master | 2023-09-01T02:01:44.746469 | 2022-01-31T11:01:29 | 2022-01-31T11:01:29 | 212,852,677 | 0 | 2 | null | 2022-06-16T15:23:25 | 2019-10-04T15:57:27 | Python | UTF-8 | Python | false | false | 838 | py | from CRABClient.UserUtilities import config, getUsernameFromSiteDB
config = config()
config.General.requestName = 'VBS_SSWW_INT_MINIAODSIM'
config.General.workArea = 'crab_projects'
config.General.transferOutputs = True
config.General.transferLogs = False
config.JobType.pluginName = 'Analysis'
config.JobType.psetName... | [
"jiexiao@pku.edu.cn"
] | jiexiao@pku.edu.cn |
8bc9ba267ab55211234f1b8531b5d213ec6c7238 | 2315afb8435de656afcc5789ec1ddde21135f658 | /todo_project/todo_app/models.py | dbe2eb3e5521a50750030086908baa842542c537 | [] | no_license | DeanDupalov/Front-End-Basics | 9754315cce8417cb86fbe33c76886df70e9d8ea4 | acac5b03f55aff03620bd2d527a96c0d453e07d9 | refs/heads/master | 2023-04-22T08:58:28.124375 | 2021-05-13T13:11:18 | 2021-05-13T13:11:18 | 357,648,531 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 279 | py | from django.db import models
# Create your models here.
class Todo(models.Model):
title = models.CharField(max_length=10)
description = models.TextField(max_length=100)
is_done = models.BooleanField(default=False)
def __str__(self):
return self.title
| [
"75751527+DeanDupalov@users.noreply.github.com"
] | 75751527+DeanDupalov@users.noreply.github.com |
48887c30ff50b09604e6af7c99af845d18f9c3aa | 8dca64dd11b23a7d59413ac8e28e92a0ab80c49c | /504. Base 7/solution.py | 298b59aa9f66b91ba715bc108c1bf1b2171775ae | [] | no_license | huangruihaocst/leetcode-python | f854498c0a1d257698e10889531c526299d47e39 | 8f88cae7cc982ab8495e185914b1baeceb294060 | refs/heads/master | 2020-03-21T20:52:17.668477 | 2018-10-08T20:29:35 | 2018-10-08T20:29:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 579 | py | class Solution(object):
def convertToBase7(self, num):
"""
:type num: int
:rtype: str
"""
if -6 <= num <= 6:
return str(num)
def helper(n): # n >= 7
li = list()
while n >= 7:
li.append(n % 7)
n //= ... | [
"huangruihaocst@126.com"
] | huangruihaocst@126.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.