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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
35264d72969241f81b66b9d5a4b9c691c83f4953 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03147/s721564434.py | 2d4d71c12e237e3c8db09fbb5ea107d30f69bc5b | [] | 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 | 136 | py | n =int(input())
h=list(map(int,input().split()))
ans=0
p=0
for i in range(n):
if h[i]>=p:
ans+=h[i]-p
p=h[i]
print(ans) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
acc77520c22c42f333191aa95a4b6817dbac255d | 29d1e5d1190ddd6cdf1e1b97b91f442765905454 | /Chapter 2/demo_str/demo_split.py | 056d3e3c61bab0e7d590ab3dc4357f41524963ed | [] | no_license | SkewwG/SCIP_Python_Learn | abe199e1701022c1491c9e5d6de98d653c267ab9 | 11216e958f5a77c90c0583ca5cfdb1ec9fb2896c | refs/heads/master | 2021-09-13T18:40:42.426924 | 2018-05-03T07:33:52 | 2018-05-03T07:33:52 | 116,967,610 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 784 | py |
'''
split(...)
通过指定分隔符对字符串进行切片,如果参数num有指定值,则仅分隔 num 个子字符串
S.split(sep=None, maxsplit=-1) -> list of strings
Return a list of the words in S, using sep as the
delimiter string. If maxsplit is given, at most maxsplit
splits are done. If sep is not specified or is None, any
whitespace string is ... | [
"446106525@qq.com"
] | 446106525@qq.com |
810083db87880c4c4b1795f932349768dc679df6 | 84ecc3f416647b4c6e40faa6d5392421bc13a4ec | /exercise3.py | 372b35f405eb76c6295a87135502cea961c1395d | [] | no_license | Deer5000/DebuggingExercise1_4 | b358670708c1b74125b3badea256ee980aef6672 | 35caeeeb8fce0480aa99ea3f7ee1de05624cf9df | refs/heads/master | 2023-02-28T15:41:41.475716 | 2021-01-24T23:55:45 | 2021-01-24T23:55:45 | 332,583,383 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,561 | py | """
Exercise 3
"""
# PART 1: Gather Information
#
# TODO: Gather information about the source of the error and paste your findings here. E.g.:
# - What is the expected vs. the actual output?
# - expected a sorted number but got an error instead
# - What error message (if any) is there?
# - Error message is "IndexE... | [
"khidrbrinkley32@gmail.com"
] | khidrbrinkley32@gmail.com |
bfbbe25dbfa3f0b2ae468d54e782e2f14c642e75 | ecdf9256853e11d6105e2b9ad92ba912602d97d7 | /hackerrank/implementation/utopian_tree.py | 3925093946f80b538058215341cddd8a3778c7ea | [] | no_license | rgsriram/Algorithms | 364fda568356834e32ec247438d21202bebc838d | d4f9acb1a60bd098a601d8173dfdad447a02fd74 | refs/heads/master | 2021-01-10T05:11:05.688731 | 2019-03-20T04:59:10 | 2019-03-20T04:59:10 | 49,176,180 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 490 | py | __author__ = 'sriram'
"""
Problem from: HackerRank
Domain: Algorithms
Name: Utopian Tree
"""
def get_height(seasons, initial_height=1):
for i in xrange(1, (seasons+1), 1):
if i % 2 == 0:
initial_height += 1
else:
initial_height *= 2
return initial_height
def main():
... | [
"srignsh22@gmail.com"
] | srignsh22@gmail.com |
20ea3f691afaf1a27832eb25dcf13739aaf16da2 | 48e124e97cc776feb0ad6d17b9ef1dfa24e2e474 | /sdk/python/pulumi_azure_native/cdn/get_afd_origin_group.py | 58b27e3e39791dc9915dc08b3fec02a847d3968e | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | bpkgoud/pulumi-azure-native | 0817502630062efbc35134410c4a784b61a4736d | a3215fe1b87fba69294f248017b1591767c2b96c | refs/heads/master | 2023-08-29T22:39:49.984212 | 2021-11-15T12:43:41 | 2021-11-15T12:43:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,379 | 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 warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from .. import _utilities
from... | [
"noreply@github.com"
] | bpkgoud.noreply@github.com |
92d61573f163cc264a1c3357554348a137fda00e | cfc9bb332f6c18c52f941aa4919e80a736b33453 | /code/set_1_array/287_find_the_duplicate_number.py | 897e247c171be6235bb10e77d7132c6e689772ae | [] | no_license | JagritiG/interview-questions-answers-python | 8992c64b754d81c76f4d2d29f92fbd9abe522a15 | 411536a94d4a2f9a64e4f06a41dc8aef4111e80f | refs/heads/master | 2022-11-23T21:38:53.986360 | 2020-08-02T22:17:13 | 2020-08-02T22:17:13 | 267,738,880 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,532 | py | # Find the Duplicate Number
# Given an array nums containing n + 1 integers where each integer is between 1 and n (inclusive),
# prove that at least one duplicate number must exist. Assume that there is only one duplicate number,
# find the duplicate one.
# Example 1:
# Input: [1,3,4,2,2]
# Output: 2
# Example 2:
# I... | [
"jagritigoswami84@gmail.com"
] | jagritigoswami84@gmail.com |
20c60c4ab3ffcaef59f386754bf8ec8172462fd8 | 404fafd24140a474b868a3f19681ffae80f3cef6 | /oregoninvasiveshotline/reports/search_indexes.py | 787f067cc9ac921ecf001df3ed123fe526b6738d | [] | no_license | wylee/oregoninvasiveshotline | 50590c2684c4445c58574e773d47936cbccb2d47 | 221f4c5f0307d0e5ffd3f46b8048b5a826388f98 | refs/heads/develop | 2020-12-03T09:11:14.606417 | 2017-04-14T17:22:46 | 2017-04-14T17:56:02 | 43,166,993 | 0 | 0 | null | 2015-09-25T18:06:50 | 2015-09-25T18:06:49 | JavaScript | UTF-8 | Python | false | false | 2,198 | py | from haystack import indexes
from .models import Report
class ReportIndex(indexes.SearchIndex, indexes.Indexable):
text = indexes.CharField(document=True, use_template=True)
report_id = indexes.IntegerField(model_attr='report_id', boost=1.125)
title = indexes.CharField(model_attr='title', boost=1.125)... | [
"wbaldwin@pdx.edu"
] | wbaldwin@pdx.edu |
b5bd8cc19f966c69bb896f02648f30ff4beea112 | fbfc0e4d72e2d42b079804775f717833b946fab5 | /conda_build/main_index.py | e64aefc6bba616b7a323c37c83953a0de17cb27e | [] | no_license | minrk/conda-build | a13eb0a6ebc3a66e276b1ab20ffa97b035434c71 | 71b561831665ca7b8c906f87789ea8ffc38c6ce5 | refs/heads/master | 2023-06-08T09:51:37.787222 | 2014-02-13T23:48:42 | 2014-02-13T23:48:42 | 16,822,417 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 830 | py | from __future__ import print_function, division, absolute_import
import os
from os.path import abspath
from optparse import OptionParser
from conda_build.index import update_index
def main():
p = OptionParser(
usage="usage: %prog [options] DIR [DIR ...]",
description="display useful information ... | [
"ilanschnell@gmail.com"
] | ilanschnell@gmail.com |
51b9750566b082570f8361843c139be599d70dc7 | 32ac0ae3eea0d8d8fd60ddee956c6ef864f7a8ae | /oop_examples.py | 51c58bda09af0e691e691f2275baa0428605164a | [] | no_license | EricSchles/oop_py | 1867778c70597a7d91da256be0cf93017e4627df | 52e30b0e804e4fc925935f95357cedb58da7d06c | refs/heads/master | 2016-09-06T16:37:35.052549 | 2015-07-28T21:30:54 | 2015-07-28T21:30:54 | 39,858,771 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,554 | py | class Node:
def __init__(self,data,next=None):
self.data = data
self.next = next
def __str__(self):
return repr(self.data)
class Vertex(Node):
def __init__(self,data,edges=[]):
self.data = data
self.edges = edges
def __eq__(self,other):
if isinstance(oth... | [
"ericschles@gmail.com"
] | ericschles@gmail.com |
11f8d9bd50de3aebf2e3913dfc21c0fa4d160fe5 | a6e4a6f0a73d24a6ba957277899adbd9b84bd594 | /sdk/python/pulumi_azure_native/databricks/outputs.py | 38d7ae4b7b6fd0d09214308325c1c546fb631b0e | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | MisinformedDNA/pulumi-azure-native | 9cbd75306e9c8f92abc25be3f73c113cb93865e9 | de974fd984f7e98649951dbe80b4fc0603d03356 | refs/heads/master | 2023-03-24T22:02:03.842935 | 2021-03-08T21:16:19 | 2021-03-08T21:16:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 21,199 | 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 warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union
from .. import _utilities, _tables
from ... | [
"noreply@github.com"
] | MisinformedDNA.noreply@github.com |
d7a11c0110515f3c629a354c016735846c02be79 | e3365bc8fa7da2753c248c2b8a5c5e16aef84d9f | /indices/nndemocrat.py | e29865bb1ed861ed5bd1e71e81987879494e61ba | [] | no_license | psdh/WhatsintheVector | e8aabacc054a88b4cb25303548980af9a10c12a8 | a24168d068d9c69dc7a0fd13f606c080ae82e2a6 | refs/heads/master | 2021-01-25T10:34:22.651619 | 2015-09-23T11:54:06 | 2015-09-23T11:54:06 | 42,749,205 | 2 | 3 | null | 2015-09-23T11:54:07 | 2015-09-18T22:06:38 | Python | UTF-8 | Python | false | false | 712 | py | ii = [('CookGHP3.py', 29), ('MarrFDI.py', 7), ('SadlMLP.py', 1), ('WilbRLW.py', 1), ('WilbRLW4.py', 6), ('MartHSI2.py', 12), ('LeakWTI2.py', 1), ('WilbRLW5.py', 2), ('MarrFDI3.py', 4), ('WilbRLW2.py', 20), ('WilkJMC2.py', 1), ('CarlTFR.py', 12), ('CookGHP2.py', 3), ('RoscTTI2.py', 1), ('MarrFDI2.py', 40), ('ClarGE.py',... | [
"varunwachaspati@gmail.com"
] | varunwachaspati@gmail.com |
45580a16f6a18dad43e707e5d56a5ccb7cd5c775 | ced1068f3cbab76399490b5e1b2e7c496555639c | /pslist2.py | 9f6a763d1d733c047656acd196021f722920f3de | [] | no_license | ravijaya/july23 | 744d5e88ed5ab414a1097a107ef9577664da8b73 | e29ca509ac2bb38a3ddc93e2185daf54832722c3 | refs/heads/master | 2020-06-23T01:04:50.985147 | 2019-07-24T11:43:52 | 2019-07-24T11:43:52 | 198,453,808 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 286 | py | # delete by index
items = [2.2, 'pam', .98, 'tim', 'pat', 1.2, 'kim', .67]
print(items)
print()
value = items.pop()
print(value)
print(items)
print()
items = [2.2, 'pam', .98, 'tim', 'pat', 1.2, 'kim', .67]
print(items)
print()
value = items.pop(5)
print(value)
print(items)
print() | [
"ravijaya@localhost.localdomain"
] | ravijaya@localhost.localdomain |
e6946326b32ac4520b6a43c8ce3fbe9617677612 | f3b5c4a5ce869dee94c3dfa8d110bab1b4be698b | /tools/sandesh/library/common/test/SConscript | 96a9520dcf0fe554cf04fa620990b5020f8b8421 | [
"Apache-2.0"
] | permissive | pan2za/ctrl | 8f808fb4da117fce346ff3d54f80b4e3d6b86b52 | 1d49df03ec4577b014b7d7ef2557d76e795f6a1c | refs/heads/master | 2021-01-22T23:16:48.002959 | 2015-06-17T06:13:36 | 2015-06-17T06:13:36 | 37,454,161 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 866 | # -*- mode: python; -*-
#
# Copyright (c) 2013 Juniper Networks, Inc. All rights reserved.
#
Import('SandeshEnv')
env = SandeshEnv.Clone()
env.Append(CPPPATH = [
Dir('#build/include').abspath,
Dir('#controller/src').abspath,
Dir('#tools').abspath,
])
SandeshBufferTestGenCppFiles = e... | [
"pan2za@live.com"
] | pan2za@live.com | |
887e2b6ff01a0510044a6bf19ef7078447cafaab | d063684dd03293eb0f980568af088d26ab087dbe | /debadmin/migrations/0093_user_addon_cart_item_cart_id.py | e3e4b69f8eb6eac7dc10b7c7fc76391b4bee6345 | [] | no_license | abhaysantra/debscientific | ce88e5ef44da8d6771c3652ed0ad02900ccd8ed2 | 88ec65616fd24052bbdbba8b00beba85493f5aea | refs/heads/master | 2020-11-26T22:09:33.820247 | 2019-12-20T07:58:43 | 2019-12-20T07:58:43 | 229,213,810 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 419 | py | # Generated by Django 2.2.6 on 2019-11-27 08:51
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('debadmin', '0092_user_addon_cart_item'),
]
operations = [
migrations.AddField(
model_name='user_addon_cart_item',
... | [
"abhay.santra@gmail.com"
] | abhay.santra@gmail.com |
87a879348653c2883060d095fafc694a1aa3b3ff | e6c65e2e354336a4bea5b6a4ccbccd3682915fe2 | /out-bin/py/google/fhir/models/model_test.runfiles/pypi__tensorflow_1_12_0/tensorflow-1.12.0.data/purelib/tensorflow/contrib/rnn/python/ops/__init__.py | c760019ae94c14bdf37bf38b2431b81e7cd9315d | [
"Apache-2.0"
] | permissive | rasalt/fhir-datalab | c30ab773d84983dd04a37e9d0ddec8bf2824b8a4 | 3e329fc8b4226d3e3a4a7c23c306a86e7a9ea0de | refs/heads/master | 2021-10-09T05:51:04.593416 | 2018-12-21T18:11:03 | 2018-12-22T05:38:32 | 162,744,237 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 186 | py | /home/rkharwar/.cache/bazel/_bazel_rkharwar/0ddaa3627472ad9d1367a008236ce2f5/external/pypi__tensorflow_1_12_0/tensorflow-1.12.0.data/purelib/tensorflow/contrib/rnn/python/ops/__init__.py | [
"ruchika.kharwar@gmail.com"
] | ruchika.kharwar@gmail.com |
77fcce991ed41ab5f767912e8b9655c8c7323165 | a91948971d4ade6fa3f315ced47f6867398ba34b | /PracticeProblems/dict_of_squares.py | f4ae7ead4f8b8163a092f965c87cdab1eabe01b3 | [] | no_license | randolchance/PythonProjects | 10cb4c457ad475e227394d5b4ce7939d51af7f86 | d484ec4fc2c9089b9544c01d3af51fbfc84b7340 | refs/heads/master | 2018-12-02T19:49:19.478640 | 2018-09-06T18:30:31 | 2018-09-06T18:30:31 | 119,735,576 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 104 | py | square_dict = {}
x = int(input())
for y in range(1,x+1):
square_dict[y] = y*y
print(square_dict)
| [
"dan.c.cook@gmail.com"
] | dan.c.cook@gmail.com |
35a67b282264036588f8a8fee11b90cbf8a73faf | 0e478f3d8b6c323c093455428c9094c45de13bac | /src/OTLMOW/OTLModel/Classes/Installatie/Ecovallei.py | 2b15e33f943ef57001d14f6a606039fb858c4be9 | [
"MIT"
] | permissive | davidvlaminck/OTLMOW | c6eae90b2cab8a741271002cde454427ca8b75ba | 48f8c357c475da1d2a1bc7820556843d4b37838d | refs/heads/main | 2023-01-12T05:08:40.442734 | 2023-01-10T15:26:39 | 2023-01-10T15:26:39 | 432,681,113 | 3 | 1 | MIT | 2022-06-20T20:36:00 | 2021-11-28T10:28:24 | Python | UTF-8 | Python | false | false | 642 | py | # coding=utf-8
from OTLMOW.OTLModel.Classes.ImplementatieElement.AIMObject import AIMObject
from OTLMOW.GeometrieArtefact.VlakGeometrie import VlakGeometrie
# Generated with OTLClassCreator. To modify: extend, do not edit
class Ecovallei(AIMObject, VlakGeometrie):
"""Een vallei onder de verkeersbrug waar het land... | [
"david.vlaminck@mow.vlaanderen.be"
] | david.vlaminck@mow.vlaanderen.be |
b70d805e1f5ae369892c503ffe7cb69f881a3ed5 | c78b20665068e712917558dbdd512641b0b90c80 | /rebecca/fanstatic/apis.py | 1cf4b8101d5b6c332c1f6db3af54c37e02c1f3c1 | [
"MIT"
] | permissive | rebeccaframework/rebecca.fanstatic | 9d60cb29f4bee5e5a1dbc8cfcc43e3ac4c723c43 | 9f71d5f7d0a605b0c9ad165b20958d88cfdbcf69 | refs/heads/master | 2016-09-06T14:08:34.278688 | 2012-03-20T08:23:42 | 2012-03-20T08:23:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,464 | py | from fanstatic import get_library_registry
from zope.interface import implementer
from .interfaces import IFanstaticSet
def get_fanstatic_set(request):
reg = request.registry
fanstatic_set = reg.queryUtility(IFanstaticSet)
return fanstatic_set
def need_fanstatic(request, renderer_name):
fanstatic_set ... | [
"aodagx@gmail.com"
] | aodagx@gmail.com |
49c1a6ffb77eb42628a14c31a91f6da58b557a6d | 10e8fa6e43a54b3bbb89326a7d5786d50a625551 | /04. Inheritance/venv/Scripts/pip3.8-script.py | 49afacc31ed499f32cbf17a0824ad4d92a2dd157 | [] | no_license | ramona-2020/Python-OOP | cbc7e5fadfdc907e51c83313e0ffb1f4f5f83f70 | 7404908f50d30c533f0fca2fd08d0290526686a5 | refs/heads/master | 2023-03-20T18:43:18.389720 | 2020-06-07T15:20:00 | 2020-06-07T15:20:00 | 523,400,905 | 1 | 0 | null | 2022-08-10T15:38:09 | 2022-08-10T15:38:08 | null | UTF-8 | Python | false | false | 447 | py | #!"D:\User\Desktop\Python Projects_SoftUni\Python-OOP\04. Inheritance\venv\Scripts\python.exe"
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==19.0.3','console_scripts','pip3.8'
__requires__ = 'pip==19.0.3'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-scrip... | [
"rossavelrs@yahoo.com"
] | rossavelrs@yahoo.com |
6f2cafd43a0d793c14a963dee3e2c6ede3bc62b3 | a88207cf67ad0d65afdd57d5f5144cbc09995f60 | /test/pPb/step2_RAW2DIGI_L1Reco_RECO.py | bd20aa632197a2c164cdf5066199385358db4aa7 | [] | no_license | pfs/TopFromHeavyIons | 211184bad34e4ae11e6216689e5141a132e14542 | a75ed1fc68d24682dad3badacf2726dc2b7ff464 | refs/heads/master | 2020-12-29T02:44:30.348481 | 2017-06-16T14:53:35 | 2017-06-16T14:53:35 | 37,029,781 | 1 | 1 | null | 2015-10-11T08:28:35 | 2015-06-07T19:47:07 | Python | UTF-8 | Python | false | false | 3,477 | py | # Auto generated configuration file
# using:
# Revision: 1.19
# Source: /local/reps/CMSSW/CMSSW/Configuration/Applications/python/ConfigBuilder.py,v
# with command line options: step2 --filein file:step1.root --fileout file:step2.root --mc --eventcontent AODSIM --datatier AODSIM --conditions 80X_mcRun2_pA_v4 --custo... | [
"psilva@cern.ch"
] | psilva@cern.ch |
457d08945aaab8688e20d9b67d9f662e622f45c7 | 05083d24088bbb3bfb7cdd162c101c72e18bc3a6 | /containers/failures/router/failure1/myapp.py | 91a0fcf8f0bc567cc5d9e9642a2f9910e038d684 | [
"Apache-2.0"
] | permissive | crossbario/crossbar-examples | f5e14b62db0f14e20ab54346cd4e8c3276aa6449 | aa31d9fe3abcb4b797931356b5a2ceeac64229c3 | refs/heads/master | 2023-01-11T02:36:00.883034 | 2023-01-03T11:12:06 | 2023-01-03T11:12:06 | 28,035,551 | 100 | 122 | Apache-2.0 | 2023-01-03T11:12:07 | 2014-12-15T12:23:02 | HTML | UTF-8 | Python | false | false | 371 | py | from twisted.logger import Logger
from autobahn.twisted.wamp import ApplicationSession
class MySession(ApplicationSession):
log = Logger()
def __init__(self, config):
self.log.info("MySession.__init__()")
ApplicationSession.__init__(self, config)
@inlineCallbacks
def onJoin(self, det... | [
"tobias.oberstein@tavendo.de"
] | tobias.oberstein@tavendo.de |
45aeeec4bced02a189d55b9a5a3b75962906bfd3 | 457e2f5b2a26877df739e314ec1560e8a3ecfb97 | /rebind/baseRig/util/nodePVpos.py | c0fe805be2194bfad4641759e25560502c3f02dd | [] | no_license | mappp7/tools | f6685d9a682bd540d59c1bff0cebb60f79fd6556 | c537e7648112c51ba4f44225418e773ee6b8be6c | refs/heads/master | 2021-01-14T16:40:44.450790 | 2020-10-30T05:30:27 | 2020-10-30T05:30:27 | 242,682,763 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,772 | py | import maya.cmds as cmds
import util.homeNul as HN
# Node base PV position !
# 3 joint list
#jnt = cmds.ls( sl=True, type='joint' )
def nodePVconnect( jnt ):
#decomposeMatrix
rootJdecompose = cmds.createNode( 'decomposeMatrix', n=jnt[0].replace( 'JNT', 'DCM' ) )
middleJdecompose = cmds.createNode( 'deco... | [
"56536931+mappp7@users.noreply.github.com"
] | 56536931+mappp7@users.noreply.github.com |
5f536b3a0467f3d3de997f12b88faf81f8d924e4 | 1cde7c8612aadfcebe4fab4191caafc0618351d2 | /examples/withRaycing/12_Multilayer/BalderDMM.py | b64b106008474af054ba2c9d5e9d84da4c7a36a7 | [
"MIT"
] | permissive | mrakitin/xrt | 9927599998fc4add57201eca903ecab67a9c6461 | aef2f8e15a6639bc54ce79e8c717a75fd74dce29 | refs/heads/master | 2023-07-25T22:21:29.531887 | 2022-09-08T14:15:44 | 2022-09-08T14:15:44 | 210,162,051 | 0 | 0 | MIT | 2019-09-22T14:37:11 | 2019-09-22T14:37:10 | null | UTF-8 | Python | false | false | 13,622 | py | # -*- coding: utf-8 -*-
"""This module describes the beamline CLÆSS to be imported by
``traceBalderBL.py`` script."""
__author__ = "Konstantin Klementiev", "Roman Chernikov"
__date__ = "07 Jan 2016"
import math
import numpy as np
import os, sys; sys.path.append(os.path.join('..', '..', '..')) # analysis:ignore
impor... | [
"konstantin.klementiev@gmail.com"
] | konstantin.klementiev@gmail.com |
ccd3779c71d37763c623e43b835d92aefa84dc55 | e6dab5aa1754ff13755a1f74a28a201681ab7e1c | /.parts/lib/django-1.4/tests/regressiontests/localflavor/ca/tests.py | a6a3680b6ae007f3eb304949651f0ae93c78ee84 | [] | no_license | ronkagan/Euler_1 | 67679203a9510147320f7c6513eefd391630703e | 022633cc298475c4f3fd0c6e2bde4f4728713995 | refs/heads/master | 2021-01-06T20:45:52.901025 | 2014-09-06T22:34:16 | 2014-09-06T22:34:16 | 23,744,842 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 111 | py | /home/action/.parts/packages/googleappengine/1.9.4/lib/django-1.4/tests/regressiontests/localflavor/ca/tests.py | [
"ron.y.kagan@gmail.com"
] | ron.y.kagan@gmail.com |
254ed8cda97709dce065bb81769ae14f0c9b9b70 | b2b79cc61101ddf54959b15cf7d0887d114fb4e5 | /web/pgadmin/tools/schema_diff/tests/test_schema_diff_comp.py | 4231bcad3453af4b2874d3891849c0bfd8b1d472 | [
"PostgreSQL"
] | permissive | 99Percent/pgadmin4 | 8afe737eb2ec1400ab034ad1d8a4f7c4ba4c35c8 | 5e0c113c7bc4ffefbec569e7ca5416d9acf9dd8a | refs/heads/master | 2021-10-10T20:08:48.321551 | 2021-09-30T12:51:43 | 2021-09-30T12:51:43 | 165,702,958 | 0 | 0 | NOASSERTION | 2019-01-14T17:18:40 | 2019-01-14T17:18:39 | null | UTF-8 | Python | false | false | 8,735 | py | ##########################################################################
#
# pgAdmin 4 - PostgreSQL Tools
#
# Copyright (C) 2013 - 2021, The pgAdmin Development Team
# This software is released under the PostgreSQL Licence
#
##########################################################################
import uuid
impor... | [
"akshay.joshi@enterprisedb.com"
] | akshay.joshi@enterprisedb.com |
8a351a0a17dd9c9e820ad0a3ce4ed47c32bbad79 | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /CMDy4pvnTZkFwJmmx_17.py | eb2c62d15f7a683e86ff3af378adbe04730786b4 | [] | no_license | daniel-reich/turbo-robot | feda6c0523bb83ab8954b6d06302bfec5b16ebdf | a7a25c63097674c0a81675eed7e6b763785f1c41 | refs/heads/main | 2023-03-26T01:55:14.210264 | 2021-03-23T16:08:01 | 2021-03-23T16:08:01 | 350,773,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,319 | py | """
Create a class `Sudoku` that takes a **string** as an argument. The string
will contain the numbers of a regular 9x9 sudoku board **left to right and top
to bottom** , with zeros filling up the empty cells.
### Attributes
An instance of the class `Sudoku` will have one attribute:
* `board`: a list represent... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
2dc0161a4729cda94a80a95977ad4a8515d70974 | 938a496fe78d5538af94017c78a11615a8498682 | /algorithms/901-/1104.path-in-zigzag-labelled-binary-tree.py | 2b2367b8413873d7a0cf319fc2d88320522f4c2d | [] | no_license | huilizhou/Leetcode-pyhton | 261280044d15d0baeb227248ade675177efdb297 | 6ae85bf79c5a21735e3c245c0c256f29c1c60926 | refs/heads/master | 2020-03-28T15:57:52.762162 | 2019-11-26T06:14:13 | 2019-11-26T06:14:13 | 148,644,059 | 8 | 1 | null | null | null | null | UTF-8 | Python | false | false | 901 | py | # 二叉树寻路
class Solution(object):
def pathInZigZagTree(self, label):
"""
:type label: int
:rtype: List[int]
"""
"""
我们会发现一个规律,在偶数行,原索引和逆序后的索引值加在一起,
等于该行最小索引和最大索引的值(因为每一行都是一个等差数列),
而这个值也恰好等于该行最小索引值的3倍减去1(因为下一行开始的索引是前一行开始索引的2倍)。
"""
if lab... | [
"2540278344@qq.com"
] | 2540278344@qq.com |
a1edc42591bba80bbc072e3e8e1a466e37df2340 | 8adaec7baeb4b6ef02e162f5f8d437e19c6feee5 | /tests/mappers/test_java_mapper.py | fb7bc1672ebafc7a83985ab4e5e5364615effc9a | [
"Apache-2.0"
] | permissive | GoogleCloudPlatform/oozie-to-airflow | 3722e6a344e9592f213d901609f7dac51acd4314 | 5a329965d24c543853e081c16d19daf35c7f6dc0 | refs/heads/master | 2023-08-16T21:30:34.758058 | 2023-08-10T11:00:04 | 2023-08-10T11:00:04 | 162,367,272 | 69 | 44 | Apache-2.0 | 2023-09-12T18:59:53 | 2018-12-19T01:43:38 | Python | UTF-8 | Python | false | false | 11,211 | py | # -*- coding: utf-8 -*-
# Copyright 2019 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 agr... | [
"noreply@github.com"
] | GoogleCloudPlatform.noreply@github.com |
3b77497dd6907b028972597fae49f10765bf24f5 | 32b9ed968247fd0f5b2291307059f2de4288a951 | /utils/FID/fid_score.py | 5b9b252f9100fdfbae96a778a53c5f0ec824979e | [] | no_license | jshi31/T2ONet | 4aaf57636e2caf8f8d93ba742be8b4ebaaefe30d | 928cdc3311e887f3676a55db5d544fee5ac71a3f | refs/heads/master | 2023-05-25T22:14:54.441849 | 2023-05-10T06:45:02 | 2023-05-10T06:45:02 | 247,373,510 | 18 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,533 | py | #!/usr/bin/env python3
"""Calculates the Frechet Inception Distance (FID) to evalulate GANs
The FID metric calculates the distance between two distributions of images.
Typically, we have summary statistics (mean & covariance matrix) of one
of these distributions, while the 2nd distribution is given by a GAN.
When run... | [
"j.shi@rochester.edu"
] | j.shi@rochester.edu |
456e7e165ba3a548ac23e58a170994066a37145e | 42b30769e4c676014d3fd8753bc4b1bbcc2a3e3c | /database/compiled_templates/tagging_common.mako.py | d004b47abc9ed5a4ac6dd4028d233e554384040c | [
"CC-BY-2.5",
"AFL-2.1",
"AFL-3.0",
"CC-BY-3.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | psnehal/MethylSig | 4e510685349b1712c92667d40e795fa798ee1702 | 5efad71e71ff2515feff2e49579c856ef9a1bbd8 | refs/heads/master | 2020-05-18T21:03:51.240410 | 2015-09-03T20:23:30 | 2015-09-03T20:23:30 | 26,826,252 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,996 | py | # -*- encoding:ascii -*-
from mako import runtime, filters, cache
UNDEFINED = runtime.UNDEFINED
__M_dict_builtin = dict
__M_locals_builtin = locals
_magic_number = 6
_modified_time = 1415293119.109046
_template_filename=u'templates/tagging_common.mako'
_template_uri=u'/tagging_common.mako'
_template_cache=cache.Cache(_... | [
"snehal@lnx-306501.(none)"
] | snehal@lnx-306501.(none) |
727b274021936dbec7e423339760a2a165e22cd7 | a70e4ba37ff2267b23a4d70282577f03086ab98d | /setup.py | 0cd40d03a9499c1619570decacc6446dafc521f1 | [
"MIT"
] | permissive | i5o/xo-retroscope | b731b8511054a2b8144e85a9b545dea8d02d494b | 0e61b8eb41828356e6a49402f1bdb93c285486f4 | refs/heads/master | 2016-09-05T14:58:04.088218 | 2014-01-03T19:39:47 | 2014-01-03T19:39:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 169 | py | #!/usr/bin/env python
try:
from sugar3.activity import bundlebuilder
bundlebuilder.start()
except ImportError:
print "Error: sugar.activity.Bundlebuilder not found."
| [
"ignacio@sugarlabs.org"
] | ignacio@sugarlabs.org |
01bf3ba6e3fdeb2cfdc75acfd7cae65d5ce05eba | 15cb0ddd678abe1e1f7a905fab0305079bfc4007 | /source/vsm-dashboard/vsm_dashboard/dashboards/vsm/monitor-status/tables.py | 785a28bfaa382c1d8a76a769ccba4105a78ac32b | [
"MIT",
"Apache-2.0"
] | permissive | ramkrsna/virtual-storage-manager | 3563baf9763a0925af77cc13245e0896c20a2ced | 78125bfb4dd4d78ff96bc3274c8919003769c545 | refs/heads/master | 2023-02-18T08:52:56.769486 | 2016-07-01T06:46:53 | 2016-07-01T06:46:53 | 63,155,952 | 0 | 0 | NOASSERTION | 2023-02-07T06:07:38 | 2016-07-12T12:27:16 | Python | UTF-8 | Python | false | false | 4,595 | py | # vim: tabstop=4 shiftwidth=4 softtabstop=4
# Copyright 2014 Intel Corporation, All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.or... | [
"yaguang.wang@intel.com"
] | yaguang.wang@intel.com |
75aa59ccac8e96f75f760fc5720ee19d5dbb3fc4 | 26771494974942f4ab18d2cd8247506c344e1d14 | /133-v2-cloneGraph.py | da32838a0365c7696c37221dfa93c8d27f7d203e | [] | no_license | wangyunpengbio/LeetCode | 9f4c6076e067c5e847d662679483f737d40e8ca5 | cec1fd11fe43177abb2d4236782c0f116e6e8bce | refs/heads/master | 2020-04-29T22:28:25.899420 | 2020-04-03T07:37:26 | 2020-04-03T07:37:26 | 176,448,957 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,326 | py | """
# Definition for a Node.
class Node:
def __init__(self, val, neighbors):
self.val = val
self.neighbors = neighbors
"""
class Solution:
def cloneGraph(self, node: 'Node') -> 'Node':
# 深度优先遍历 非递归
if node == None :return None
resNode2CopyNode = {}
stack = [node]
... | [
"wangyunpeng_bio@qq.com"
] | wangyunpeng_bio@qq.com |
0f61efa724ff6f8c229649cf3b50c92d8bd7b5b1 | 7ba22c9826a1574777a08fb634ff15c56de6cb98 | /syntaxnet/dragnn/tools/evaluator.py | ae60e5d4f8beeb1996dd1633c94b9a5e2710e180 | [] | no_license | dhanya1/full_cyclist | 02b85b8331f8ca9364169484ab97b32920cbbd14 | dd12c8d8a3deaaea15041e54f2e459a5041f11c2 | refs/heads/master | 2022-10-17T13:36:51.886476 | 2018-07-30T15:46:02 | 2018-07-30T15:46:02 | 142,896,293 | 0 | 1 | null | 2022-10-05T10:11:01 | 2018-07-30T15:46:15 | Python | UTF-8 | Python | false | false | 6,917 | py | # Copyright 2017 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or a... | [
"dhanyasj01@gmail.com"
] | dhanyasj01@gmail.com |
728b1bb43e0f48712ecc6c99f97521da32ede5ca | c16ea32a4cddb6b63ad3bacce3c6db0259d2bacd | /google/cloud/aiplatform/v1beta1/aiplatform-v1beta1-py/tests/unit/gapic/aiplatform_v1beta1/test_vizier_service.py | af7d96df843df62f9e5ae00a3f86d2b6d0c6f798 | [
"Apache-2.0"
] | permissive | dizcology/googleapis-gen | 74a72b655fba2565233e5a289cfaea6dc7b91e1a | 478f36572d7bcf1dc66038d0e76b9b3fa2abae63 | refs/heads/master | 2023-06-04T15:51:18.380826 | 2021-06-16T20:42:38 | 2021-06-16T20:42:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 170,703 | py | # -*- coding: utf-8 -*-
# Copyright 2020 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... | [
"bazel-bot-development[bot]@users.noreply.github.com"
] | bazel-bot-development[bot]@users.noreply.github.com |
e6d3fec8c37847d142a76d9494d85199977bdfc9 | e2423781704811bf0a0ecc07f9cb29d0a044ac48 | /tensorflow_datasets/core/tfrecords_reader_test.py | ca950a0f7a0654dfc139f11a1da23d7102447b4a | [
"Apache-2.0"
] | permissive | mbbessa/datasets | af2506a8cf5c46c33143d6e0266ba50d8b4c3fcc | 2a7e8e793197637948ea0e0be4aa02a6aa2f7f55 | refs/heads/master | 2021-11-30T22:28:55.825453 | 2021-11-19T20:49:49 | 2021-11-19T20:52:42 | 171,528,015 | 0 | 0 | Apache-2.0 | 2019-02-19T18:34:26 | 2019-02-19T18:34:26 | null | UTF-8 | Python | false | false | 25,137 | py | # coding=utf-8
# Copyright 2021 The TensorFlow Datasets 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 appl... | [
"copybara-worker@google.com"
] | copybara-worker@google.com |
787e0215434095aa0b3afec689844c5bea7ff1fc | 82c73b70c2002f647bdc254125f0bdb18f0b79d2 | /openstack_dashboard/dashboards/admin/volumes/urls.py | 4a6a4c23b4007ad736bdeacbe29791aa6810287d | [
"Apache-2.0"
] | permissive | xuweiliang/Codelibrary | cfb5755ced54c65cacdb3e35ab2b98385f8d5f8e | 54e45b2daa205132c05b0ff5a2c3db7fca2853a7 | refs/heads/master | 2021-05-04T00:31:42.025238 | 2018-03-20T07:05:20 | 2018-03-20T07:05:20 | 71,852,078 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,999 | py | # Copyright 2012 Nebula, 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 required by applicable law or agree... | [
"root@newton.com"
] | root@newton.com |
a88e8898471f969bb19e173853e19c315c95f494 | 52b5773617a1b972a905de4d692540d26ff74926 | /.history/perm_20200622013142.py | 721353b76d5da3353229c7518531f035e0fa2219 | [] | no_license | MaryanneNjeri/pythonModules | 56f54bf098ae58ea069bf33f11ae94fa8eedcabc | f4e56b1e4dda2349267af634a46f6b9df6686020 | refs/heads/master | 2022-12-16T02:59:19.896129 | 2020-09-11T12:05:22 | 2020-09-11T12:05:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 129 | py | def sequence(n,k):
newArr = []
for i in range(1,n+1):
newArr.append(i)
print(newArr)
sequence(3,3) | [
"mary.jereh@gmail.com"
] | mary.jereh@gmail.com |
26eb47fa8e30d61647f5fb7f6b7ecabb24d49630 | fd463a0526c3a23916ce4fe32307e80472a0f25c | /mesa.py | 337f0a4d9b34d2b38324a43bee8defa7f9804e87 | [
"MIT"
] | permissive | aiedward/mesa | 5ae516380dcd04c5416227d2074ec1dd26c5cde6 | ce685958a506fa8b877ecbf5c97d0d28a4f102c6 | refs/heads/master | 2022-11-08T01:17:14.379005 | 2020-06-26T17:31:45 | 2020-06-26T17:31:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,453 | py | # -*- coding: utf-8 -*-
"""
Created on Sat Feb 8 02:27:20 2020
@author: ZhiningLiu1998
mailto: zhining.liu@outlook.com / v-zhinli@microsoft.com
"""
import os
import torch
import pandas as pd
import numpy as np
from gym import spaces
from sac_src.sac import SAC
from sac_src.replay_memory import ReplayMemo... | [
"noreply@github.com"
] | aiedward.noreply@github.com |
dfe31c4e723e17ac685d9e2a451abd83f0774db5 | b0cdbad299f6174bfdb0fba173dbcf3889b82209 | /Modules/sys/38_sys.py | 09e80a1a040cbbf4490bac86fe593db7821a7af8 | [] | no_license | deesaw/PythonD-06 | a33e676f1e0cfc13b4ea645c8b60547b198239ac | 3c6f065d7be2e3e10cafb6cef79d6cae9d55a7fa | refs/heads/master | 2023-03-18T08:24:42.030935 | 2021-03-02T14:15:09 | 2021-03-02T14:15:09 | 343,797,605 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 373 | py | import sys
print("Length:",len(sys.argv))
if (len(sys.argv)>2):
sum=0
for i in sys.argv[1:]:
sum=sum+int(i)
print(sum)
else:
total=0
no_Values=int(input("How many values has to be added:"))
for val in range(no_Values):
print(val)
num=int(input("Enter Value:")... | [
"69420960+deesaw@users.noreply.github.com"
] | 69420960+deesaw@users.noreply.github.com |
29958a6140724765938a648ad8144e723a3f67dc | fecc1daf3ee945191dee561dd501e9e17a36685d | /projectile.py | 77b4eb35dcd119c7c25ba9c514b258c87ce31e60 | [] | no_license | tt-n-walters/tt19-pytue-game | 856d9bb4a2c4260d88b1ef6fb63426f648c4808f | 2fe4ca47180b617f0d1d72046753fa5e914a2809 | refs/heads/master | 2022-10-23T11:35:03.150595 | 2020-06-16T17:03:49 | 2020-06-16T17:03:49 | 267,097,729 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 705 | py | from arcade import Sprite, draw_rectangle_filled, color
from math import sin, cos, radians
class Projectile(Sprite):
def __init__(self, image_filename, direction, speed):
super().__init__(filename=image_filename, scale=4)
self.angle = direction
self.change_x = speed * cos(radians(direction... | [
"nico.walters@techtalents.es"
] | nico.walters@techtalents.es |
44851354a019a77a82c2a8e957f0ee79172d10cd | 2fff43f976e55c31e448e56b2809c36a0b154684 | /blog/views.py | b2aac913895a07b61be54fae4394fae8a9ac7c18 | [] | permissive | omar115/first_blog_application | 60f48c859f7b2d5be30f6d4abc34564b2dc7cd08 | c87ae74bdeabc72fc12162528a966ef1295184e6 | refs/heads/main | 2023-02-16T12:20:24.513085 | 2021-01-14T11:57:00 | 2021-01-14T11:57:00 | 329,451,779 | 0 | 0 | MIT | 2021-01-14T10:20:55 | 2021-01-13T22:56:54 | null | UTF-8 | Python | false | false | 145 | py | from django.shortcuts import render
# Create your views here.
def post_list(request):
return render(request, 'blog/post_list.html', {})
| [
"omarhasan115@gmail.com"
] | omarhasan115@gmail.com |
2fad9418b56e80ca01ab03f50a5629b955b26ddb | e1efc8e0b0e4629dea61504fbc816c0527691bd9 | /8.thread线程/1.线程基础/1_线程基本概念.py | 63dc04d2e753d0495c412dff0504ed2dee2325fc | [] | no_license | xiongmengmeng/xmind-technology | 2bb67a0bf92cfd660cac01f8ab3a2454423ccba5 | e2fdb6987ef805a65f0a4feb52d84383853f4b77 | refs/heads/main | 2023-07-31T07:10:29.868120 | 2021-09-11T08:18:17 | 2021-09-11T08:18:17 | 307,636,242 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,390 | py | import os,sys
parentdir = os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
sys.path.insert(0,parentdir)
import xmind
from xmind.core.markerref import MarkerId
xmind_name="thread"
w = xmind.load(os.path.dirname(os.path.abspath(__file__))+"\\"+xmind_name+".xmind")
s2=w.createSheet()
s2.se... | [
"xiongmengmeng@qipeipu.com"
] | xiongmengmeng@qipeipu.com |
39dd022361eeff4b26dc76375bafd21c5b91e869 | b22588340d7925b614a735bbbde1b351ad657ffc | /athena/Simulation/ISF/ISF_Geant4/ISF_Geant4CommonTools/python/ISF_Geant4CommonToolsConfigDb.py | 57bc594f8edc61ff1211ce0259aa17ceaa7dbae2 | [] | 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 | 890 | py | # Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
"""
Configuration database for ISF_Geant4CommonTools
Elmar Ritsch, 31/10/2014
"""
from AthenaCommon.CfgGetter import addTool, addToolClone, addService, addAlgorithm, \
addTypesToExcludeIfDefaultValue, addNamesToExcludeIfDefaultValue, addFu... | [
"rushioda@lxplus754.cern.ch"
] | rushioda@lxplus754.cern.ch |
4c5c9b5b065e80fca6d1741d5b52a87f50e94787 | b8ba0f496b3e89af32c11503b8bb87b1917c4c36 | /mutant/__init__.py | 862b1670352ecd904a7b646a269bdae676ea1330 | [
"MIT"
] | permissive | torchingloom/django-mutant | 21a3bbb076668c88e855725e74163442810e4817 | 7bf396071f22c7339098b7ec57e0629750cf57c8 | refs/heads/master | 2021-01-21T20:19:04.029964 | 2016-01-14T05:02:13 | 2016-01-14T05:02:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 258 | py | from __future__ import unicode_literals
import logging
from django.utils.version import get_version
VERSION = (0, 2, 2, 'alpha', 0)
__version__ = get_version(VERSION)
logger = logging.getLogger('mutant')
default_app_config = 'mutant.apps.MutantConfig'
| [
"charette.s@gmail.com"
] | charette.s@gmail.com |
1d5a1ceca4a37df1c9413d3bd9f77be6dcc74c75 | bb93784aad5933329118cc2ed86357045e535c51 | /setup.py | d92ebe3852c13ffa729b201b45376444bae1511e | [] | no_license | garaemon/pr_style_review | 3f69ddee8a93d3422955fa96f42c754a4c3c1a43 | 2ae6e400ae68746fc6d385f642d01cbaaa9c19c2 | refs/heads/master | 2020-04-24T22:11:07.173809 | 2019-02-28T16:01:57 | 2019-02-28T16:01:57 | 172,303,383 | 0 | 0 | null | 2019-02-28T16:01:58 | 2019-02-24T06:15:43 | Python | UTF-8 | Python | false | false | 135 | py | from setuptools import setup
setup(
name='pr_style_review',
version='0.0.0',
install_requires=['GitPython', 'github3.py'])
| [
"garaemon@gmail.com"
] | garaemon@gmail.com |
e53912616396c13d4e09af02972f7af0a5d56051 | babff7df289cb7173a22be1f68feec51f71d9269 | /manage.py | 0436a4c994071feac690f1a81989b12038390b25 | [
"MIT"
] | permissive | jwestgard/prange-db | 9d1a6817dd9f94d8a4dc380cefe8846dd8b20312 | 27535271cd902d18673c187f4277e47327563556 | refs/heads/master | 2021-01-10T21:20:50.583769 | 2015-10-11T17:21:04 | 2015-10-11T17:21:04 | 42,461,824 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 726 | py | #!/usr/bin/env python
import os
from app import create_app, db
from app.models import User, Role
from flask.ext.script import Manager, Shell
from flask.ext.migrate import Migrate, MigrateCommand
app = create_app(os.getenv('FLASK_CONFIG') or 'default')
manager = Manager(app)
migrate = Migrate(app, db)
def make_shell_... | [
"jwestgard@mac.com"
] | jwestgard@mac.com |
79c9b3bb46711849e3535454e5043208d663f50b | c1f732ebeceb8c4103454f8ed8c5be3f02589b3f | /run.py | 571c2e31c096ff2f91563919165a8d25630100b9 | [
"MIT"
] | permissive | Roychela/Password-Locker | 828cab4ba678f11beeee602cf2a475e52e45e147 | 67e16580ea9283ede593c5cf6eadcfde877a70d2 | refs/heads/master | 2020-06-04T06:01:37.011996 | 2019-06-17T12:23:38 | 2019-06-17T12:23:38 | 191,897,776 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,172 | py | #!/usr/bin/env python3.6
from user_credentials import User
from user_credentials import Credentials
def create_user(uname,password):
'''
Function to create a new user
'''
new_user = User(uname, password)
return new_user
def save_user(user):
'''
Function to save a new user
'''
user.s... | [
"roychela@gmail.com"
] | roychela@gmail.com |
e8f6439fd172538a4266d571ee451f4d67e64297 | 94b59529bc24bd219b5e4ce4ac2f11ea357833d8 | /ayush_crowdbotics_202/settings.py | df56ecf4864bf3e5b67bb39177f3270a51f76cf6 | [] | no_license | payush/ayush-crowdbotics-202 | 1a285f25866731830b0800549865d7dbb90f34f5 | dd582ac5962c9fc99e3a91508e7ec344aebe091c | refs/heads/master | 2020-03-23T09:53:58.430867 | 2018-07-18T09:37:25 | 2018-07-18T09:37:25 | 141,413,738 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,130 | py | """
Django settings for ayush_crowdbotics_202 project.
Generated by 'django-admin startproject' using Django 1.11.5.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.11/ref/settings/
... | [
"ayushpuroheet@gmail.com"
] | ayushpuroheet@gmail.com |
5934915c4f56931289cac74101259879de684988 | 544cfadc742536618168fc80a5bd81a35a5f2c99 | /tools/acloud/setup/setup.py | c424318b97c03083e60d2b51c27384c8c788fcfc | [
"Apache-2.0"
] | permissive | ZYHGOD-1/Aosp11 | 0400619993b559bf4380db2da0addfa9cccd698d | 78a61ca023cbf1a0cecfef8b97df2b274ac3a988 | refs/heads/main | 2023-04-21T20:13:54.629813 | 2021-05-22T05:28:21 | 2021-05-22T05:28:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,732 | py | # Copyright 2018 - The Android Open Source Project
#
# 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 ... | [
"rick_tan@qq.com"
] | rick_tan@qq.com |
acbce51fdf30e8e35483b45bfa30cab872f2a061 | 5a52ccea88f90dd4f1acc2819997fce0dd5ffb7d | /alipay/aop/api/request/AlipayEcoMycarMaintainShopCreateRequest.py | 8f013befa1d34da14c72c2d2b98cc509b5ff4468 | [
"Apache-2.0"
] | permissive | alipay/alipay-sdk-python-all | 8bd20882852ffeb70a6e929038bf88ff1d1eff1c | 1fad300587c9e7e099747305ba9077d4cd7afde9 | refs/heads/master | 2023-08-27T21:35:01.778771 | 2023-08-23T07:12:26 | 2023-08-23T07:12:26 | 133,338,689 | 247 | 70 | Apache-2.0 | 2023-04-25T04:54:02 | 2018-05-14T09:40:54 | Python | UTF-8 | Python | false | false | 3,992 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.FileItem import FileItem
from alipay.aop.api.constant.ParamConstants import *
from alipay.aop.api.domain.AlipayEcoMycarMaintainShopCreateModel import AlipayEcoMycarMaintainShopCreateModel
class AlipayEcoMycarMaintainShopCreateRequest(obj... | [
"liuqun.lq@alibaba-inc.com"
] | liuqun.lq@alibaba-inc.com |
02d209733f4ae22362411e874febaf105049cc1f | 6ad2fb13c42b6bb483189b0931bcca8bb117b5dc | /tests/ci/unittests/sdk/internal/agent/agent_client_test.py | e547c5dfca11df49d80a961c5e0ba687426d719c | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | woodywan/python-sdk | aac2a2527f07c8900a01b4336f890c603a1c8d4c | b8583a8abf3bdc1f978fad6f692e980de00bc7ea | refs/heads/master | 2023-01-14T03:23:12.291230 | 2020-11-20T15:18:41 | 2020-11-20T15:18:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,223 | py | # Copyright 2020 TestProject (https://testproject.io)
#
# 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 ... | [
"bas@ontestautomation.com"
] | bas@ontestautomation.com |
9aebea7c51c967d87dbf4f648217c77a7eb52dda | c268dcf432f3b7171be6eb307aafbe1bd173285a | /reddit2telegram/channels/~inactive/r_linuxmemes/app.py | 7c7c338a5ee9f373aadc9306f10466ee14873922 | [
"MIT"
] | permissive | Fillll/reddit2telegram | a7162da2cc08c81bcc8078ea4160d4ee07461fee | 5d8ee3097e716734d55a72f5a16ce3d7467e2ed7 | refs/heads/master | 2023-08-09T10:34:16.163262 | 2023-07-30T18:36:19 | 2023-07-30T18:36:19 | 67,726,018 | 258 | 205 | MIT | 2023-09-07T02:36:36 | 2016-09-08T17:39:46 | Python | UTF-8 | Python | false | false | 143 | py | #encoding:utf-8
subreddit = 'linuxmemes'
t_channel = '@r_linuxmemes'
def send_post(submission, r2t):
return r2t.send_simple(submission)
| [
"git@fillll.ru"
] | git@fillll.ru |
9faffe3153372843ef972e1783f126a5c1a982cf | 10d98fecb882d4c84595364f715f4e8b8309a66f | /structformer/utils.py | 5bfcdbe7fcd76e6958692bae860d3f0ecf877937 | [
"CC-BY-4.0",
"Apache-2.0"
] | permissive | afcarl/google-research | 51c7b70d176c0d70a5ee31ea1d87590f3d6c6f42 | 320a49f768cea27200044c0d12f394aa6c795feb | refs/heads/master | 2021-12-02T18:36:03.760434 | 2021-09-30T20:59:01 | 2021-09-30T21:07:02 | 156,725,548 | 1 | 0 | Apache-2.0 | 2018-11-08T15:13:53 | 2018-11-08T15:13:52 | null | UTF-8 | Python | false | false | 1,703 | py | # coding=utf-8
# Copyright 2021 The Google Research 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 applicab... | [
"copybara-worker@google.com"
] | copybara-worker@google.com |
335a739b77ad9f9f6b858847ac0bd3526d3b033c | 2ed2dd917afb05d194e87f989d78953b31a5781b | /lesson8/mission1.py | c0a03c9b4c67ea4473ebbb1e9fc2e4bbd98d5c46 | [] | no_license | RenegaDe1288/pythonProject | 4058d549db7c37652f77438c31f8b31476497d98 | 801c06f3be22ed63214987b11d6f1b3fd2fe5b44 | refs/heads/master | 2023-08-17T13:20:50.777842 | 2021-10-05T10:51:00 | 2021-10-05T10:51:00 | 393,145,207 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 366 | py | import random
cereal = random.randint(20, 100)
print('Всего кг гречки = ', cereal)
for num in range(1, 10):
if cereal >= 4:
cereal -= 4
print('Месяц = ', num)
print('На конец месяца Осталось гречки', cereal)
else:
print('Вы здохли на месяце ', num)
break
| [
"D121188@yandex.ru"
] | D121188@yandex.ru |
801079f7f2054c5a86f12bc6b180ae002b113965 | de9b8b7192a0a81e9249823bb2b86f0b7e452863 | /.history/main_20171106225556.py | 2fd686058e6c52f591c4b1270ab859ab28dbd2df | [
"MIT"
] | permissive | reecebenson/uwe-dadsa-tennis-a | f5eaeb1b96d4e61f29279514e68eeea8ad6533db | d0763f819b300fcd0ce27041f5bc4ef0519c00bf | refs/heads/master | 2023-07-08T16:13:23.963348 | 2017-11-30T12:07:01 | 2017-11-30T12:07:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,361 | py | # DADSA - Assignment 1
# Reece Benson
import random
from classes import Menu as Menu
from classes import Handler as Handler
class App():
# Define the variables we will be using
debug = True
handler = None
# Define all of the properties we will need to use
def __init__(self):
# Load our ha... | [
"me@reecebenson.me"
] | me@reecebenson.me |
c7c12ce39667b16703c21aca62a7e62b8faaaf14 | df7f13ec34591fe1ce2d9aeebd5fd183e012711a | /hata/ext/plugin_loader/__init__.py | 69f22e8d027110d53bfe40fdda2a90f6223048a0 | [
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | HuyaneMatsu/hata | 63e2f6a2d7a7539fd8f18498852d9d3fe5c41d2e | 53f24fdb38459dc5a4fd04f11bdbfee8295b76a4 | refs/heads/master | 2023-08-20T15:58:09.343044 | 2023-08-20T13:09:03 | 2023-08-20T13:09:03 | 163,677,173 | 3 | 3 | Apache-2.0 | 2019-12-18T03:46:12 | 2018-12-31T14:59:47 | Python | UTF-8 | Python | false | false | 781 | py | from .import_overwrite import *
from .plugin_tree import *
from .snapshot import *
from .utils import *
from .client_extension import *
from .constants import *
from .exceptions import *
from .plugin import *
from .plugin_extractor import *
from .plugin_loader import *
from .plugin_root import *
from .helpers import *... | [
"re.ism.tm@gmail.com"
] | re.ism.tm@gmail.com |
96526cb71cfcf833e6e090c692e8579be40537a1 | 9264cda8d9bb152e4fed4923e6403a2334abbe89 | /laxy_backend/tasks/orchestration.py | 7d20f917adbe162b19ff3f10a961e7eaf4300c7a | [
"Apache-2.0"
] | permissive | MonashBioinformaticsPlatform/laxy | b228d93690f7cb9c0658af44013497f6c756167c | bee9d283d0932dd845cbc9c7c090dde794d2ecbc | refs/heads/master | 2023-08-26T06:25:11.188255 | 2023-08-22T05:13:09 | 2023-08-22T05:13:09 | 104,432,675 | 3 | 2 | Apache-2.0 | 2023-06-27T23:34:18 | 2017-09-22T04:48:54 | Python | UTF-8 | Python | false | false | 1,434 | py | from django.conf import settings
from django.core.mail import EmailMultiAlternatives
from celery.utils.log import get_task_logger
from celery import shared_task
from celery import Celery, states, chain, group
from celery.exceptions import (Ignore,
InvalidTaskError,
... | [
"ajperry@pansapiens.com"
] | ajperry@pansapiens.com |
97e03d5ce5a1b878b9cc44e984b6afd2fed84a1b | e96cc817c768915eeff46027ded14e759e8042ff | /Python编程/系统编程/线程/thread_lock_stu.py | 021d30991b4e9dbbb4127f5a6df3225f838428b2 | [] | no_license | fovegage/learn-python | e22a32207cf513ba0f8c3428e9c00138987c2359 | 93b8d3513769a0b7d492a7b515f289fe3f1efc4a | refs/heads/master | 2023-06-08T13:44:57.274677 | 2023-05-29T05:52:35 | 2023-05-29T05:52:35 | 148,493,932 | 6 | 0 | null | null | null | null | UTF-8 | Python | false | false | 968 | py | # -*- coding: utf-8 -*-
# @Author: fovegage
# @File: thread_lock_stu.py
# @Email: fovegage@gmail.com
# @Date: 2018-09-21 16:41:02
# @Last Modified time: 2018-09-21 16:41:07
import threading
# 可以加锁 也可以延时
num = 0
class My_Thread_1(threading.Thread):
def run(self):
global num
for i... | [
"fovegage@gmail.com"
] | fovegage@gmail.com |
af36a65541b839c6bbb15fa9e1fd4ff8e5374673 | c09a4b4f02849c03ba536edda2bf920b655be6bc | /wyl/add_noise.py | 6dc8a805bf7045866c98b4283c6c4910ad3bc427 | [] | no_license | jpober/brownscripts | 33bcc70a31694dfb06f1314adb1402316540108c | c25789ec765b018eaad59d99a0a4264c75655265 | refs/heads/master | 2021-01-23T22:01:19.004636 | 2020-11-12T18:39:14 | 2020-11-12T18:39:14 | 57,912,669 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,388 | py | import numpy as np, pyuvdata.uvdata as uvd, sys, optparse, aipy
import capo
from aipy.const import k
import glob, matplotlib.pyplot as plt
from scipy.io.idl import readsav
from IPython import embed
o = optparse.OptionParser()
o.set_usage('add_noise.py [options] obs')
o.add_option('-o', dest='outpath', help='Destinatio... | [
"wenyang_li@brown.edu"
] | wenyang_li@brown.edu |
cc828390d5d25140f299b141f0bee2892c95787d | 0028a9a0d3fb346c44a386d507579fa6288ec0b9 | /payment_receipt_invoice/__manifest__.py | 95b995d758d7ba810d0d58fbc761aebded2fac62 | [] | no_license | rpsjr/extra-addons | 283a7e54c3dc67ba2cab2b28e03e2cd8e3bfbe2d | 9f8906b7908ad373cc26405c6aea54b0cd5031cb | refs/heads/master | 2022-07-31T21:19:04.013649 | 2020-05-16T19:12:19 | 2020-05-16T19:12:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,543 | py | # -*- coding: utf-8 -*-
##############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
# Copyright (C) 2017-TODAY Cybrosys Technologies(<http://www.cybrosys.com>).
# Author: Niyas Raphy,Fasluca(<http://www.cybrosys.com>)
# you can modify it under the terms... | [
"user@localhost.localdomain"
] | user@localhost.localdomain |
645ed88cfcfdedfaa7b157819933b2a425965edf | e35fd52fe4367320024a26f2ee357755b5d5f4bd | /leetcode/problems/599.minimum-index-sum-of-two-lists.py | 9f64bc499ff33c39eaa7f998f6fc339d5a9d0027 | [] | no_license | liseyko/CtCI | a451967b0a0ce108c491d30b81e88d20ad84d2cd | c27f19fac14b4acef8c631ad5569e1a5c29e9e1f | refs/heads/master | 2020-03-21T14:28:47.621481 | 2019-11-12T22:59:07 | 2019-11-12T22:59:07 | 138,658,372 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,646 | py | #
# @lc app=leetcode id=599 lang=python3
#
# [599] Minimum Index Sum of Two Lists
#
# https://leetcode.com/problems/minimum-index-sum-of-two-lists/description/
#
# algorithms
# Easy (49.05%)
# Total Accepted: 69.6K
# Total Submissions: 141.9K
# Testcase Example: '["Shogun","Tapioca Express","Burger King","KFC"]\n' ... | [
"liseyko@gmail.com"
] | liseyko@gmail.com |
33f997ce05ea563ef525d2f8526b25d76942c1fa | 201335e99ac66a1e404bda38c3ca0fe1006835ce | /network_model/builder/pytorch_builder.py | f79ef81e35cfc7bea464818473a06e9cb57bd13e | [
"MIT"
] | permissive | yuga-n/ModelLearner | 507c701cb5beea30e096a51c2ae1296cdc699f8b | 3193efd5eb15172ba8231a34829942040fcb0fc5 | refs/heads/main | 2023-08-14T04:03:23.338993 | 2021-09-10T14:15:30 | 2021-09-10T14:15:30 | 406,409,911 | 0 | 0 | MIT | 2021-09-14T14:52:28 | 2021-09-14T14:52:27 | null | UTF-8 | Python | false | false | 5,276 | py | # -*- coding: utf-8 -*-
import keras.engine.training
from typing import Callable
from typing import Tuple
from typing import List
from typing import Union
from util_types import types_of_loco
from network_model.distillation.distillation_model_builder import DistllationModelIncubator
from network_model.build_model impor... | [
"hamakaze181and189amarube@gmail.com"
] | hamakaze181and189amarube@gmail.com |
787c0af6845645273f03f517cdc63b368ff78526 | 00820b522cc16bf996f1ef44a94a2f31989c4065 | /abc/abc151/b.py | 83c9ebfb2c76f96625755c32b514c9fb111b83c2 | [] | no_license | yamato1992/at_coder | 6dffd425163a37a04e37507743a15f67b29239fc | 6e0ec47267ed3cae62aebdd3d149f6191fdcae27 | refs/heads/master | 2020-08-31T11:17:03.500616 | 2020-06-12T15:45:58 | 2020-06-12T15:45:58 | 218,678,043 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 201 | py | N, K, M = map(int, input().split())
scores = list(map(int, input().split()))
req_score = N * M - sum(scores)
if req_score > K:
print(-1)
elif req_score < 0:
print(0)
else:
print(req_score)
| [
"yamato.mitsui.orleans@gmail.com"
] | yamato.mitsui.orleans@gmail.com |
00fd44fd4c9944de27295296d9220003e0054ebc | 1fb2da0e6f73652f0b0126c82a84562f6a8d3535 | /946. Validate Stack Sequences.py | 0e3b5ae404154d83fdb8c28dd8ada0394f1e5dfd | [] | no_license | JaylenZhang19/Leetcode | be3456fcb45270c8aad797f965f4c7a1781c0e61 | 178546686aa3ae8f5da1ae845417f86fab9a644d | refs/heads/master | 2023-02-27T06:08:58.818435 | 2021-01-31T20:28:10 | 2021-01-31T20:28:10 | 287,661,146 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 382 | py | class Solution:
def validateStackSequences(self, pushed: List[int], popped: List[int]) -> bool:
stack = []
while pushed:
stack.append(pushed.pop(0))
while stack and popped and stack[-1] == popped[0]:
stack.pop()
popped.pop(0)
... | [
"noreply@github.com"
] | JaylenZhang19.noreply@github.com |
a1ffff01cb8f903d88835b5e17535542b975e3e5 | e553161c3adba5c1b19914adbacd58f34f27788e | /ambari/ambari-server/src/main/resources/common-services/YARN/3.0.0.3.0/package/scripts/resourcemanager.py | 91d7b89d107edf99c0874d1987c0c8b9b5b1a8c3 | [
"Apache-2.0"
] | permissive | ReedOei/dependent-tests-experiments | 57daf82d1feb23165651067b7ac004dd74d1e23d | 9fccc06ec13ff69a1ac8fb2a4dd6f93c89ebd29b | refs/heads/master | 2020-03-20T02:50:59.514767 | 2018-08-23T16:46:01 | 2018-08-23T16:46:01 | 137,126,354 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,768 | 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 use this ... | [
"oei.reed@gmail.com"
] | oei.reed@gmail.com |
badf4d8ee3241875395d8cab7be4c5abe4aae39e | cbdef2e8ed259adc4653ade34db12d8bcc0cea9f | /dominion/cards/Card_Capital_City.py | 8fd93365fb68c55deab0a00b7b76f4a9f427e947 | [] | no_license | dwagon/pydominion | 8dd5afef8ec89c63ade74c4ae6c7473cd676799f | 545709f0a41529de74f33aa83b106c456900fa5b | refs/heads/main | 2023-08-29T10:02:26.652032 | 2023-08-23T02:25:00 | 2023-08-23T02:25:00 | 18,776,204 | 1 | 0 | null | 2023-08-23T02:25:02 | 2014-04-14T20:49:28 | Python | UTF-8 | Python | false | false | 3,191 | py | #!/usr/bin/env python
import unittest
from dominion import Game, Card, Piles
###############################################################################
class Card_Capital_City(Card.Card):
def __init__(self):
Card.Card.__init__(self)
self.cardtype = Card.CardType.ACTION
self.base = Ca... | [
"dougal.scott@gmail.com"
] | dougal.scott@gmail.com |
408b989cffaf6b1aff9bdfb917de8fa0987870c2 | bbeba16730eca05a897e46e771b8e9dc2a61e044 | /testflows/_core/contrib/pygments/lexers/basic.py | f7359403d676c6fc69eb4c7737770aa0243ffaac | [
"BSD-2-Clause",
"Apache-2.0"
] | permissive | testflows/TestFlows-Core | 47d3e5b8890fcf73024c91f4ea293363c29f422b | 7dd2d3af19f6930257bd53133286edb78bf490ab | refs/heads/master | 2023-08-16T15:42:08.888323 | 2023-08-15T11:35:09 | 2023-08-15T11:35:09 | 215,418,320 | 5 | 4 | NOASSERTION | 2023-04-26T19:28:55 | 2019-10-15T23:59:26 | Python | UTF-8 | Python | false | false | 27,648 | py | # -*- coding: utf-8 -*-
"""
pygments.lexers.basic
~~~~~~~~~~~~~~~~~~~~~
Lexers for BASIC like languages (other than VB.net).
:copyright: Copyright 2006-2019 by the Pygments team, see AUTHORS.
:license: BSD, see LICENSE for details.
"""
import re
from testflows._core.contrib.pygments.lexer import... | [
"vzakaznikov@protonmail.com"
] | vzakaznikov@protonmail.com |
31426e105b712e14f2356ac3431be2d91963cd4c | 2ef009eaa4cc0a6a6d1aee6794f43d8409c99711 | /python和linux高级编程阶段/05-多任务-协程/04-协程-greenlet.py | 7df153bb2e4c8366df336493e6ef2e926ae83870 | [] | no_license | vkhaibao/PyProject | 6ae833cef09d7000af00dd7c842d2db29a1cd0cc | 2a733b34f337d4497051660f473a4cfb977fc15b | refs/heads/master | 2022-11-22T07:41:22.630002 | 2019-07-29T01:17:17 | 2019-07-29T01:17:17 | 173,897,429 | 1 | 3 | null | 2020-07-22T23:14:22 | 2019-03-05T07:32:41 | Python | UTF-8 | Python | false | false | 489 | py | # coding=utf8
from greenlet import greenlet
import time
import os
def test1():
while True:
print("%s" % os.getpid())
print("%s" % os.getppid())
print("---A--")
gr2.switch()
time.sleep(0.5)
def test2():
while True:
print("%s" % os.getpid())
print("%s" %... | [
"280764069@qq.com"
] | 280764069@qq.com |
eed197eb1c8885c234bee2ca408f919a4654981f | 43ae032297b492fbdf2df478588d2367f59d0b6b | /3 - Types/3.3 - InbuiltTypes-DictionarySetArray/10-dictions-methods-setdefault.py | 9a824b12c8c37a47ca2b3db55ee9176d4dbd8697 | [] | no_license | thippeswamydm/python | 59fa4dbb2899894de5481cb1dd4716040733c378 | db03b49eb531e75b9f738cf77399a9813d16166b | refs/heads/master | 2020-07-05T06:57:18.575099 | 2019-10-23T04:30:27 | 2019-10-23T04:30:27 | 202,562,414 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 434 | py | # Describes the assigning, working, and method usages of dictionaries
obj = {'name': 'Ganesh', 'age': 5}
# Add a key value pair
if 'color' not in obj:
obj['color'] = 'light-brown'
obj = {'name': 'Ganesh', 'age': 5}
# Using setdefault function
obj.setdefault('color', 'light-brown')
# 'light-brown'
print(obj)
# ... | [
"ganeshsurfs@gmail.com"
] | ganeshsurfs@gmail.com |
e74bd9c8df9754782584f12a29542e54c31d5b05 | 210ecd63113ce90c5f09bc2b09db3e80ff98117a | /AbletonLive9_RemoteScripts/_Framework/ControlSurfaceComponent.py | f03b0d3222874fbb3521aac557d4e52d63bdf4e6 | [] | no_license | ajasver/MidiScripts | 86a765b8568657633305541c46ccc1fd1ea34501 | f727a2e63c95a9c5e980a0738deb0049363ba536 | refs/heads/master | 2021-01-13T02:03:55.078132 | 2015-07-16T18:27:30 | 2015-07-16T18:27:30 | 38,516,112 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,835 | py | #Embedded file name: /Users/versonator/Jenkins/live/Binary/Core_Release_64_static/midi-remote-scripts/_Framework/ControlSurfaceComponent.py
from __future__ import absolute_import
import Live
from . import Task
from .Control import ControlManager
from .Dependency import dependency, depends
from .SubjectSlot import Subje... | [
"admin@scoopler.com"
] | admin@scoopler.com |
c860c4759252bb1e15565c399acfdcac7a7de65c | f3d80a90a6688aa05c11e488e0eb52a53bc5c713 | /python/ccxt/async_support/bitpanda.py | e3fb53ae49e50088eced4b1a000427f326c064b7 | [
"MIT"
] | permissive | woododoCode/ccxt | 1da09329b53fabed9d1628b16bd027ab4f5668b3 | 51d23b4c54b132fe381aea4b88ea2d1da2a2a6f8 | refs/heads/master | 2023-04-15T05:51:12.056281 | 2021-04-22T18:31:34 | 2021-04-22T18:31:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 74,047 | py | # -*- coding: utf-8 -*-
# PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN:
# https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code
from ccxt.async_support.base.exchange import Exchange
from ccxt.base.errors import ExchangeError
from ccxt.base.errors import Authenticatio... | [
"travis@travis-ci.org"
] | travis@travis-ci.org |
c39858057a3901c9d072ff45806c19924868a44f | c4e3a57511eb7a39425847bdcd38a2207e560a13 | /Algorithm/1026_Maximum_Difference_Between_NodeAncestor.py | 7d5e3de66de692beca64df48a2fddd569d79d7de | [] | no_license | Gi1ia/TechNoteBook | 57af562b78278b7f937b906d1154b19f2c077ebd | 1a3c1f4d6e9d3444039f087763b93241f4ba7892 | refs/heads/master | 2021-06-03T02:31:24.986063 | 2020-07-16T22:25:56 | 2020-07-16T22:25:56 | 141,761,958 | 7 | 1 | null | 2018-11-05T01:09:46 | 2018-07-20T22:06:12 | HTML | UTF-8 | Python | false | false | 2,042 | py | """Given the root of a binary tree,
find the maximum value V for which there exists different nodes A and B where
V = |A.val - B.val| and A is an ancestor of B.
(A node A is an ancestor of B if either: any child of A is equal to B,
or any child of A is an ancestor of B.)
Input: [8,3,10,1,6,null,14,null,null,4,7,13... | [
"41492334+Gi1ia@users.noreply.github.com"
] | 41492334+Gi1ia@users.noreply.github.com |
3de59b86a04b9a0c4689617def82d2aab258a76b | b586cec578da0e1904d07468a7f49dacc0af5e99 | /chapter_4/util/Checker.py | 497c6bddf812359153f10ce45072330700e03e0d | [
"MIT"
] | permissive | LifeOfGame/mongodb_redis | bf21b989eeb95eeb39f684363f9436677252a63e | 834fbdd65d4ea9e1e0056b711781e5f27a40333b | refs/heads/master | 2021-06-22T17:01:19.497132 | 2019-08-20T06:54:21 | 2019-08-20T06:54:21 | 203,295,895 | 0 | 0 | MIT | 2021-03-20T01:37:02 | 2019-08-20T03:53:06 | Jupyter Notebook | UTF-8 | Python | false | false | 1,253 | py | import re
class Checker(object):
FIELD_LIST = {'name', 'age', 'birthday', 'origin_home', 'current_home'}
def check_add_fields_exists(self, dict_tobe_inserted):
if not dict_tobe_inserted:
return False
return self.FIELD_LIST == set(dict_tobe_inserted.keys())
def check_update_fi... | [
"greensouth@foxmail.com"
] | greensouth@foxmail.com |
c91d77705d5b2a34a90a236ac8a1c0bc868f67b7 | e6c65e2e354336a4bea5b6a4ccbccd3682915fe2 | /out-bin/py/google/fhir/models/run_locally.runfiles/com_google_fhir/external/pypi__protobuf_3_6_1/google/protobuf/message.py | d36659371345f52866d822bd56c3eab76f705a14 | [
"Apache-2.0"
] | permissive | rasalt/fhir-datalab | c30ab773d84983dd04a37e9d0ddec8bf2824b8a4 | 3e329fc8b4226d3e3a4a7c23c306a86e7a9ea0de | refs/heads/master | 2021-10-09T05:51:04.593416 | 2018-12-21T18:11:03 | 2018-12-22T05:38:32 | 162,744,237 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 133 | py | /home/rkharwar/.cache/bazel/_bazel_rkharwar/0ddaa3627472ad9d1367a008236ce2f5/external/pypi__protobuf_3_6_1/google/protobuf/message.py | [
"ruchika.kharwar@gmail.com"
] | ruchika.kharwar@gmail.com |
122b4ac2a57cb41be1d2e24441f5237816146664 | f9a2e67dd2f40b37d8ff81bf6cdce47c38d2dee4 | /.c9/metadata/environment/ib_miniprojects_backend/project_management_portal_auth/storages/storage_implementation.py | bd52c8d1194655779f57bcac57789941d2efeb35 | [] | no_license | mohan277/backend_repo | 4eae065cf0fffa29866a2b549028cb8df4c97643 | 25dbb4d0f1c174b6da95f4c73737e49db9978429 | refs/heads/master | 2022-11-13T00:08:37.600743 | 2020-07-09T04:36:44 | 2020-07-09T04:36:44 | 278,259,585 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,597 | py | {"filter":false,"title":"storage_implementation.py","tooltip":"/ib_miniprojects_backend/project_management_portal_auth/storages/storage_implementation.py","undoManager":{"mark":61,"position":61,"stack":[[{"start":{"row":2,"column":5},"end":{"row":2,"column":17},"action":"remove","lines":["fb_post_auth"],"id":2},{"start... | [
"senammohanakrishna@gmail.com"
] | senammohanakrishna@gmail.com |
55e6472b2b061c94777f53c74adbd2c5e99bbe6c | ae8a1631f1b0da3cbe7a61cc6ad8c4839d3017e2 | /experiments/experiments_toy/grid_search/run_grid_search_bnmtf_gibbs.py | c2d9d99fbb2d5384a7f33b6803e3ced4b49aef4a | [
"Apache-2.0"
] | permissive | hansaimlim/BNMTF | ce3a5734feed209d284d98b5db508f944781c880 | 9cf8ad6475dac5dc7ece9d6dffb7f6f59a71ac18 | refs/heads/master | 2021-01-19T18:47:41.870310 | 2017-02-08T16:26:39 | 2017-02-08T16:26:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,030 | py | """
Run the grid search method for finding the best values for K and L for BNMTF.
We use the parameters for the true priors.
For BNMTF I find that the BIC is a better estimator - the log likelihood is
high for higher values for K and L than the true ones, same for the AIC. With
the BIC we get a nice peak just below t... | [
"tab43@cam.ac.uk"
] | tab43@cam.ac.uk |
88e4e6f9370a324cb7e546f9137cdd10522425d3 | f07a42f652f46106dee4749277d41c302e2b7406 | /Data Set/bug-fixing-5/ac07c6b5e6bef82642d0ebb9c8574e011f298ec7-<dispatch>-fix.py | 1845d2bcd937c3ee3fdd46301e50a4e77389de52 | [] | no_license | wsgan001/PyFPattern | e0fe06341cc5d51b3ad0fe29b84098d140ed54d1 | cc347e32745f99c0cd95e79a18ddacc4574d7faa | refs/heads/main | 2023-08-25T23:48:26.112133 | 2021-10-23T14:11:22 | 2021-10-23T14:11:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 847 | py | @ensure_connected
def dispatch(self, rpc_command=None, source=None, filter=None):
"\n Execute rpc on the remote device eg. dispatch('clear-arp-table')\n :param rpc_command: specifies rpc command to be dispatched either in plain text or in xml element format (depending on command)\n :param sourc... | [
"dg1732004@smail.nju.edu.cn"
] | dg1732004@smail.nju.edu.cn |
2a4f4d986db59052b27d1c83c4126eaa341aae86 | 95c71453ed6cc6f9b94f38a3c1655680618d71a4 | /kickstart/2019/RoundB/C/C-solve.py | c5fc44ebd49349f2f21430820232d8ea2d77f83c | [] | no_license | ZX1209/gl-algorithm-practise | 95f4d6627c1dbaf2b70be90149d897f003f9cb3a | dd0a1c92414e12d82053c3df981897e975063bb8 | refs/heads/master | 2020-05-16T14:56:34.568878 | 2019-12-27T07:37:11 | 2019-12-27T07:37:11 | 183,116,501 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 991 | py | import logging
logging.basicConfig(level=logging.INFO)
from collections import Counter
def Count(i, j, counters, S):
ans = 0
tmpCounter = counters[j + 1] - counters[i]
for v in tmpCounter.values():
if v <= S:
ans += v
return ans
def main():
T = int(input())
for t in ran... | [
"1404919041@qq.com"
] | 1404919041@qq.com |
1e7fd7a6ddd8dfbb09be12e0e07a753cc3d0c789 | a6155458f58f2e40e2583557cf807eda52a0013b | /catalog/project.py | 1dd22dfbdb35631cbd11ea846986af4f79fa6d8b | [] | no_license | georgeplusplus-ZZ/udacity-project-2 | ab6c80052cc601508743fd5003ae5d09103d8fbb | 5442f1f99808af2f8663d59fdbd02be7dd7e425a | refs/heads/master | 2021-10-26T02:47:28.841918 | 2019-04-10T01:52:40 | 2019-04-10T01:52:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,782 | py | from flask import Flask
from flask import render_template
from flask import request
from flask import redirect
from flask import url_for
from flask import jsonify
from flask import flash
from flask import abort
from flask import session as login_session
from sqlalchemy import create_engine, desc
from sqlalc... | [
"vagrant@vagrant.vm"
] | vagrant@vagrant.vm |
73737b1228d0aa26332236f0bed3f9f92b2e599c | 47175228ce25812549eb5203fc8b86b76fec6eb9 | /API_scripts/dfp/dfp_python3/v201502/custom_targeting_service/create_custom_targeting_keys_and_values.py | 4217821f245fa2d62bbcf1f3aa0132710d6031de | [] | no_license | noelleli/documentation | c1efe9c2bdb169baa771e9c23d8f4e2683c2fe20 | a375698b4cf0776d52d3a9d3c17d20143bd252e1 | refs/heads/master | 2021-01-10T05:41:30.648343 | 2016-02-13T05:46:31 | 2016-02-13T05:46:31 | 51,477,460 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,204 | py | #!/usr/bin/python
#
# Copyright 2015 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required b... | [
"noelle@makermedia.com"
] | noelle@makermedia.com |
1e7fe6c92b81c4aea805851ef702489814f31b83 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/303/usersdata/289/78183/submittedfiles/testes.py | 5e9a5aefdf3d8285ef690f3498545979c9f5af98 | [] | 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 | 178 | py | idade = int(input("Digite sua idade: "))
print('A idade do indivíduo é %d' % idade)
altura = float(input("Digite sua altura: ")
print('A altura do indivíduo eh %.2f' %altura)
| [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
9e23792c94cee031550934457cf9eebd418a436d | cdcd71b8bb238ae1084e08d8d7c21c3c5595ba5b | /warriors.test.py | 9a3fae86babebf5d3d72be28581a6952cd39558d | [] | no_license | linnil1/2020pdsa | 7118be250286aaa6831a21fd71e9de62d919ca6c | 772a560bc5ce88eb052e102df7e0437372fd7ac1 | refs/heads/master | 2023-03-13T20:10:10.596073 | 2021-03-12T01:52:16 | 2021-03-12T01:52:16 | 295,599,510 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,088 | py | import sys
import json
from pprint import pprint
from concurrent.futures import ProcessPoolExecutor, as_completed
import numpy as np
from tqdm import tqdm
import imp
Warriors = imp.load_source("Warriors", 'warriors.sol.py').Warriors
def quesion(n):
# init
np.random.seed()
st = np.random.choice(1000, s... | [
"linnil1.886@gmail.com"
] | linnil1.886@gmail.com |
a3a7309b43e957fe90d03cf2bd26952fd25d1a50 | 90419da201cd4948a27d3612f0b482c68026c96f | /sdk/python/pulumi_azure_nextgen/appconfiguration/v20200701preview/key_value.py | 0abcd6b95f09374cd0ce483a2ef8107baf4d53a8 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | test-wiz-sec/pulumi-azure-nextgen | cd4bee5d70cb0d332c04f16bb54e17d016d2adaf | 20a695af0d020b34b0f1c336e1b69702755174cc | refs/heads/master | 2023-06-08T02:35:52.639773 | 2020-11-06T22:39:06 | 2020-11-06T22:39:06 | 312,993,761 | 0 | 0 | Apache-2.0 | 2023-06-02T06:47:28 | 2020-11-15T09:04:00 | null | UTF-8 | Python | false | false | 7,486 | 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 warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union
from ... import _utilities, _tables
__a... | [
"noreply@github.com"
] | test-wiz-sec.noreply@github.com |
0e5f9524a6311e8ca3f114cb22491e4aaff80c2b | 5da5473ff3026165a47f98744bac82903cf008e0 | /packages/google-cloud-datastream/samples/generated_samples/datastream_v1alpha1_generated_datastream_delete_private_connection_async.py | d0a8f20842e7cadf8600231215035ef761fa4c53 | [
"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 | 2,035 | 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 |
01324a0b0027287231b714660b00a89d2561d10a | a04c9e34c8abb6eb5857cb6e35fbbed0743ea8d4 | /sample_db_funtions.py | aa1286b28047be47190becff32df50450902f654 | [] | no_license | SrikanthAmudala/PythonWorkShopConcordia | a2fd0a3103524733913c00767907bafecd1c6ad6 | d2e383a89bc995d96313fd0723c064a0a45db6f9 | refs/heads/master | 2021-05-19T13:02:42.173832 | 2020-05-27T21:48:34 | 2020-05-27T21:48:34 | 251,713,287 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,509 | py | db = {
"user_table": {
"sunny": {
"password": "sunny1234",
"books_reg": {
"COMPUTER SCIENCE": [],
"CIISE": []
}
},
"rohit": {
"password": "rohit",
"books_reg": {
"COMPUTER SCIENCE": [],
"CIISE": []
}
},
"negar": {
"passwo... | [
"srikanthamudala95@gmail.com"
] | srikanthamudala95@gmail.com |
4de7f4a672e43e92de4f70c0c5f4218db2023f8e | e16d7d8f60145c68640b25aa7c259618be60d855 | /1-100/34.py | 0fd3383f668beabf94a8c8f161a9febe2ef79fc5 | [] | no_license | zongqiqi/mypython | bbe212223002dabef773ee0dbeafbad5986b4639 | b80f3ce6c30a0677869a7b49421a757c16035178 | refs/heads/master | 2020-04-21T07:39:59.594233 | 2017-12-11T00:54:44 | 2017-12-11T00:54:44 | 98,426,286 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 125 | py | """练习函数调用"""
def hello():
print('Hello World')
def many():
for a in range(3):
hello()
many()
| [
"544136329@qq.com"
] | 544136329@qq.com |
50534e04bd484b27316b647b50f6e6c2f9ee131e | ca101e77a77cd86561c4e34553dbd3578a87a8b2 | /transaction/urls.py | 01537875c84f1a09282b06841208d3e55e7f4e96 | [] | no_license | vmgabriel/app-cycle-money | 001c1baa1b1c77c6e965beaee6d1d7c4cd45c699 | 4381fb9c8288fe37cbcd1c9ecef14e6e8299b680 | refs/heads/master | 2023-08-13T19:07:19.065576 | 2020-07-26T22:23:35 | 2020-07-26T22:23:35 | 281,472,685 | 0 | 0 | null | 2021-09-22T19:28:41 | 2020-07-21T18:20:36 | CSS | UTF-8 | Python | false | false | 2,181 | py | # Develop: vmgabriel
"""Module that Define all Rooute of the module"""
from django.urls import path
from . import views
app_name = 'transactions'
urlpatterns = [
# Priorities Routes
path(
'priorities/',
views.PriorityEntityView.as_view(),
name='priorities_list',
),
path(
... | [
"vmgabriel96@gmail.com"
] | vmgabriel96@gmail.com |
586486eb94a499645daff8e3b832c1c44d56ffb7 | 257b1d32488ff8a3e9b5f148839d042512d5de83 | /testing/pandas_rollup_plugin_test.py | 0105128b05ec100dffb941d4e6991c6d74a469be | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | hellios78/mldb | 200ba8b38e2509585d563403c4d4d12543e00dc9 | 5f869dcfca1f8bcce3418138f130321656a0970c | refs/heads/master | 2020-04-06T04:10:38.369452 | 2015-12-23T22:06:08 | 2015-12-23T22:06:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,400 | py | # This file is part of MLDB. Copyright 2015 Datacratic. All rights reserved.
import os, socket, time
#import csv
#import json
#import datetime
from multiprocessing import Process
from py_connectors.mldb_connector import MldbConnectorAdHoc
#from mldb.data import DFrame
def startMldb():
s = socket.socket()
s.b... | [
"nicolas@datacratic.com"
] | nicolas@datacratic.com |
bb79e60db39edda2427b197f26b4fc40bf317f28 | ba2dbc19e899faaa17b994a1224e455a3de5b9ad | /01_jump to python/CHAP03/range.py | dcb8ae404e040165481136248bd6939ddcadcd0c | [] | no_license | xsky21/bigdata2019 | 52d3dc9379a05ba794c53a28284de2168d0fc366 | 19464a6f8862b6e6e3d4e452e0dab85bdd954e40 | refs/heads/master | 2020-04-21T10:56:34.637812 | 2019-04-16T04:16:27 | 2019-04-16T04:16:27 | 169,503,618 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 37 | py | for a in range(19,0,-2):
print(a) | [
"studerande5@gmail.com"
] | studerande5@gmail.com |
c10e69f9a1357a6a97db16ffe61328333a3c305f | 5b1022e257e3825a2d4ddcd7fa071367bf1be073 | /广铁新闻/IPPool.py | 98f961ce3071371d98c290a958b47146a9bd310c | [] | no_license | KwinnerChen/zkjw | 465d36fb583ac474ce12ced831b890ed938767d6 | 9dd577e73144f51bde6fd1af9715cf162f32799a | refs/heads/master | 2020-05-27T22:35:07.613419 | 2019-06-03T10:08:43 | 2019-06-03T10:08:43 | 188,807,246 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,135 | py | #! usr/bin/env python3
# -*- coding: utf-8 -*-
# python: v3.6.4
from storage import Oracle
from queue import Queue
from threading import Thread
from time import sleep
from random import random
class IPPool(Queue):
'''
实例化时生成一个自更新的代理IP列队
'''
def __init__(self, user, password, host, table_name, *args,... | [
"chenkai.c.k@hotmail.com"
] | chenkai.c.k@hotmail.com |
d66838e90d413055054c3233f6efc543b06dd338 | 4a191e5aecd53c4cea28482a0179539eeb6cd74b | /comments/migrations/0001_initial.py | ec8c8dbcf06824eb238de80f5a28b2174fec528e | [] | no_license | jiangjingwei/blogproject | 631a2e8e2f72420cce45ddaf152174852376d831 | daf14e88092dc030a3ab0c295ee06fb6b2164372 | refs/heads/master | 2020-03-14T23:29:08.052253 | 2018-05-10T11:35:59 | 2018-05-10T11:35:59 | 131,846,149 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 968 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.6 on 2018-05-04 02:25
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('blog', '0001_initial'),
]
oper... | [
"270159429@qq.com"
] | 270159429@qq.com |
ecb0fe2d62c99430e0ba64d6400e35067c997735 | eae3d77ac72c168cee7701462f1fc45d7d4dcd91 | /List2/setSum.py | 8d52e5e5a41b404427d4eb439220cf486c7187e5 | [] | no_license | ByeongjunCho/Algorithm-TIL | ed2f018d50bd2483bd1175ff9bf7e91913c14766 | ad79125a1498915fe97c1d57ee6860b06c410958 | refs/heads/master | 2022-07-19T15:12:23.689319 | 2020-05-18T08:37:09 | 2020-05-18T08:37:09 | 256,399,493 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 21 | py | def setSum(arr):
| [
"jjgk91@naver.com"
] | jjgk91@naver.com |
f0b8047aadd151aeaac9c8760e4f603bfda43cde | d697c1d45e96bd440be9c17ab14243a5882b1f52 | /qianfeng/高级/测试/单元测试/myTest.py | 44d63133e889f79192b9e8b1dae90e67d5ad0f8d | [] | no_license | ithjl521/python | 9eeda2e60dda97ee36e8764c06400eb12818689f | f4fe50799501c483cb64445fd05ee0f30f56576c | refs/heads/master | 2020-07-12T23:10:53.608276 | 2019-11-08T08:59:35 | 2019-11-08T08:59:35 | 204,931,359 | 0 | 0 | null | null | null | null | GB18030 | Python | false | false | 429 | py | # coding=gbk
import unittest
from 对函数进行单元测试 import mySum
from 对函数进行单元测试 import mySub
class Test(unittest.TestCase):
def setUp(self):
print("开始测试时自动调用")
def tearDown(self):
print("结束测试时自动调用")
# 为了测试mySum
def test_mySum(self):
self.assertEqual(mySum(1,2),3,"加法有误")
if __name__ == "__main__... | [
"it_hjl@163.com"
] | it_hjl@163.com |
45782f035e83c50f3e0b1a8b06450a74442b6049 | f9892f6d55c79e65b40ba1da909779f355fb60f7 | /tools/build_pytorch_libs.py | ff9eee3b3e953649973c1df5790b7c725894cbdf | [
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"Apache-2.0",
"BSD-2-Clause"
] | permissive | bigmb/pytorch | a5bf2f75678e5cb47936784cdc7550a8191aa90f | d68802ba473602c3c66cad80d724f01386780753 | refs/heads/master | 2020-05-21T10:39:23.090476 | 2019-05-10T14:57:46 | 2019-05-10T15:00:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,389 | py | from .setup_helpers.env import (IS_64BIT, IS_DARWIN, IS_WINDOWS,
DEBUG, REL_WITH_DEB_INFO, USE_MKLDNN,
check_env_flag, check_negative_env_flag)
import os
import sys
import distutils
import distutils.sysconfig
from subprocess import check_call, check_outpu... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
73fe0f0f7dffea7edbcb3cb0f2ed6a763c1067ac | 580905861e3bdd1990cde76ba2b057c898e6f088 | /task_scheduler/src/task_scheduler/urls.py | 198511a3938452d4bb45a734c9d9fe1dd61e2ebc | [
"MIT"
] | permissive | muhammad-mamdouh/Django_Projects | 14eddfdc25aa4be43c5d35e30c5efb146e255101 | 1f31e12aefb36b33474256db40a2c551882f445e | refs/heads/master | 2022-12-10T20:02:38.918760 | 2019-12-14T21:24:08 | 2019-12-14T21:24:08 | 198,602,869 | 0 | 1 | null | 2022-11-22T04:13:34 | 2019-07-24T09:28:59 | Python | UTF-8 | Python | false | false | 834 | py | """task_scheduler URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.2/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Clas... | [
"mahammad.mamdouh@gmail.com"
] | mahammad.mamdouh@gmail.com |
b82fb7fe8747e8f913ed23b9afd7587c9d26b697 | 024b554051b873e255b98d862b5985ffa0ae1db6 | /backend/manage.py | 08f3c54bf4da786dcb5b14fca0ce27fac3556d68 | [] | no_license | crowdbotics-apps/test-4895-dev-16173 | 74171d867ea95703a66c8870ad338b1536d52fcd | 15668ad1df225f9e06e02ddd15f933574e732073 | refs/heads/master | 2023-01-21T08:21:32.469480 | 2020-12-03T07:54:52 | 2020-12-03T07:54:52 | 318,115,597 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 639 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "test_4895_dev_16173.settings")
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
a9d1d757bf0eda6e44becfa0aa2e67aa7c86121a | a1517979b20286311bdac7cd153f698498e04223 | /application/modules/tache/__init__.py | ee94819f39cb45b3b25e3ca5ba08fcdc39e07b59 | [] | no_license | wilrona/Gesacom_mongoDB | 441367029b899ceb0304879fd808fb8dbdbfb457 | d043136889c5f2c3e10ace8ebacf55c11b91b4c0 | refs/heads/master | 2020-12-25T14:23:39.343917 | 2017-07-07T16:38:26 | 2017-07-07T16:38:26 | 67,689,398 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 161 | py | __author__ = 'Ronald'
from views_tache import *
app.register_blueprint(prefix_projet, url_prefix='/projet')
app.register_blueprint(prefix, url_prefix='/tache') | [
"wilrona@gmail.com"
] | wilrona@gmail.com |
aa9fd9f921e0e3d5e66dcd6281d0202037000305 | 75dcb56e318688499bdab789262839e7f58bd4f6 | /_algorithms_challenges/leetcode/LeetcodePythonProject/leetcode_0701_0750/LeetCode728_SelfDividingNumbers.py | 25a4ba8beb3af61a5e6a91825a9811b22e069d64 | [] | no_license | syurskyi/Algorithms_and_Data_Structure | 9a1f358577e51e89c862d0f93f373b7f20ddd261 | 929dde1723fb2f54870c8a9badc80fc23e8400d3 | refs/heads/master | 2023-02-22T17:55:55.453535 | 2022-12-23T03:15:00 | 2022-12-23T03:15:00 | 226,243,987 | 4 | 1 | null | 2023-02-07T21:01:45 | 2019-12-06T04:14:10 | Jupyter Notebook | UTF-8 | Python | false | false | 929 | py | '''
Created on Mar 4, 2018
@author: tongq
'''
class Solution(object):
def selfDividingNumbers(self, left, right):
"""
:type left: int
:type right: int
:rtype: List[int]
"""
res = []
for num in range(left, right+1):
if self.isSelfDividing(num):
... | [
"sergejyurskyj@yahoo.com"
] | sergejyurskyj@yahoo.com |
1dd0de92808d94d40c70083b3d598435fd4edaad | 8e24e8bba2dd476f9fe612226d24891ef81429b7 | /geeksforgeeks/algorithm/expert_algo/2_20.py | 8e3be8d2091b9b978bf541ef81f355ccec8d2e40 | [] | no_license | qmnguyenw/python_py4e | fb56c6dc91c49149031a11ca52c9037dc80d5dcf | 84f37412bd43a3b357a17df9ff8811eba16bba6e | refs/heads/master | 2023-06-01T07:58:13.996965 | 2021-06-15T08:39:26 | 2021-06-15T08:39:26 | 349,059,725 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 6,917 | py | Number of ways to reach the end of matrix with non-zero AND value
Given an **N * N** matrix **arr[][]** consisting of non-negative integers, the
task is to find the number of ways to reach **arr[N – 1][N – 1]** with a non-
zero AND value starting from the **arr[0][0]** by going down or right in every
move. Wh... | [
"qmnguyenw@gmail.com"
] | qmnguyenw@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.