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
5058a659f6e4dc1a48c20f38edcd31a2bf106d6a
3fd3da4f11a251cc43d44d1d61ff2ffe5c82a4ce
/dlp/book/chp03/exp2/lgr_engine.py
6e307c04289c466a1b67139e8df65e8dc7c2e6ae
[]
no_license
dumpinfo/TsBook
d95faded917bce3e024e77ff06afd30717ed9ef4
8fadfcd2ebf935cd49784fd27d66b2fd9f307fbd
refs/heads/master
2023-05-27T07:56:24.149421
2019-07-31T20:51:52
2019-07-31T20:51:52
198,481,031
1
3
null
2023-05-22T21:13:31
2019-07-23T17:47:19
Jupyter Notebook
UTF-8
Python
false
false
5,491
py
import sys import numpy as np import argparse import matplotlib.pyplot as plt from skimage import io import tensorflow as tf from tensorflow.examples.tutorials.mnist import input_data class Lgr_Engine(object): # 采用习惯用法定义常量 TRAIN_MODE_NEW = 1 TRAIN_MODE_CONTINUE = 2 def __init__(self, datasets_dir)...
[ "twtravel@126.com" ]
twtravel@126.com
c0d0a3329106c66219a7078bc9372c1b203870a3
2ea1faced9e1b43bcd8535d1807ee34cc2f18ab6
/custom/characters/pi_creature.py
664d5c7017e192cc7ae5845e6f715f29f5b383f9
[ "MIT" ]
permissive
Kef-ke/videos
f77373211e0b80636e2b94f885f225a57b522ab9
7121ec623bc23a7c79374b709ce10f202290d105
refs/heads/master
2023-02-26T04:28:02.424619
2021-02-04T20:08:13
2021-02-04T20:08:13
null
0
0
null
null
null
null
UTF-8
Python
false
false
11,936
py
import os import logging import numpy as np from manimlib.constants import * from manimlib.mobject.mobject import Mobject from manimlib.mobject.geometry import Circle from manimlib.mobject.svg.drawings import ThoughtBubble from manimlib.mobject.svg.svg_mobject import SVGMobject from manimlib.mobject.svg.tex_mobject i...
[ "grant@3blue1brown.com" ]
grant@3blue1brown.com
1b6633abda8f6241647b674c67f2f43effcf6e68
f576f0ea3725d54bd2551883901b25b863fe6688
/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2022_09_01/_resource_management_client.py
78c46093f660ccc637bdf93cc660e03d54559b91
[ "LicenseRef-scancode-generic-cla", "MIT", "LGPL-2.1-or-later" ]
permissive
Azure/azure-sdk-for-python
02e3838e53a33d8ba27e9bcc22bd84e790e4ca7c
c2ca191e736bb06bfbbbc9493e8325763ba990bb
refs/heads/main
2023-09-06T09:30:13.135012
2023-09-06T01:08:06
2023-09-06T01:08:06
4,127,088
4,046
2,755
MIT
2023-09-14T21:48:49
2012-04-24T16:46:12
Python
UTF-8
Python
false
false
6,359
py
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
[ "noreply@github.com" ]
Azure.noreply@github.com
8a67ee7c687543144a61a92a83fe45b0e6e5cf6e
8130c34d546c323d6d5d2ca6b4a67330af08828f
/.history/menu_app/views_20210104163517.py
ed67bdb0daefc707cb835fb862f30af6f17daa73
[]
no_license
lienusrob/final
ba2dad086fc97b21b537ef12df834dfadd222943
f2726e31f1d51450e4aed8c74021c33679957b28
refs/heads/master
2023-02-15T01:36:54.463034
2021-01-07T12:47:05
2021-01-07T12:47:05
327,279,792
0
0
null
null
null
null
UTF-8
Python
false
false
4,074
py
from .models import Cart, CartItem, MenuItem, ItemsCategory, Order, Orders, generate_order_id, Extras from account_app.models import Profile from .forms import AddToCartForm from django.views.generic import ListView from django.shortcuts import render, get_object_or_404, redirect from django.urls import reverse fr...
[ "lienus.rob@hotmail.de" ]
lienus.rob@hotmail.de
c647ad69aaad7140f1fedb9b7a3ffe1d2e0cfc13
5a52ccea88f90dd4f1acc2819997fce0dd5ffb7d
/alipay/aop/api/domain/AlipayOpenMiniPluginuseconfigUpgradeCancelModel.py
3118ea8237e4729922c09e91e03d17afe994b1f6
[ "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
2,039
py
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.constant.ParamConstants import * class AlipayOpenMiniPluginuseconfigUpgradeCancelModel(object): def __init__(self): self._bundle_id = None self._plugin_dev_version = None self._plugin_id = None @property ...
[ "jishupei.jsp@alibaba-inc.com" ]
jishupei.jsp@alibaba-inc.com
652d58b139e28f1b7cf055b112beb886032bfb02
24fe1f54fee3a3df952ca26cce839cc18124357a
/servicegraph/lib/python2.7/site-packages/acimodel-4.0_3d-py2.7.egg/cobra/modelimpl/actrl/rulehitpart15min.py
66e58d61d7c73ba7ae0d1bd9e6f7ff7d89f67e18
[]
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
37,639
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
46ff6892318a8f620f3f5a4253283571209c1306
244ecfc2017a48c70b74556be8c188e7a4815848
/res/scripts/client/gui/scaleform/genconsts/store_types.py
fd089635ab42147325cfbdd74cf841ef9186c6c0
[]
no_license
webiumsk/WOT-0.9.12
c1e1259411ba1e6c7b02cd6408b731419d3174e5
5be5fd9186f335e7bae88c9761c378ff5fbf5351
refs/heads/master
2021-01-10T01:38:36.523788
2015-11-18T11:33:37
2015-11-18T11:33:37
46,414,438
1
0
null
null
null
null
WINDOWS-1250
Python
false
false
435
py
# 2015.11.18 11:55:31 Střední Evropa (běžný čas) # Embedded file name: scripts/client/gui/Scaleform/genConsts/STORE_TYPES.py class STORE_TYPES(object): SHOP = 'shop' INVENTORY = 'inventory' # okay decompyling c:\Users\PC\wotsources\files\originals\res\scripts\client\gui\scaleform\genconsts\store_types.pyc # ...
[ "info@webium.sk" ]
info@webium.sk
4baf5c50a2b3b76c1f6eb06176ca93783ae8eb87
920b9cb23d3883dcc93b1682adfee83099fee826
/pipeline/contrib/periodic_task/migrations/0005_merge_20200721_1915.py
dd9b8e04c3328ae58b83bfd74e8fef32005589b9
[ "MIT", "LGPL-2.1-or-later", "LGPL-3.0-only" ]
permissive
TencentBlueKing/bk-itsm
f817fb166248d3059857b57d03e8b5ec1b78ff5b
2d708bd0d869d391456e0fb8d644af3b9f031acf
refs/heads/master
2023-08-31T23:42:32.275836
2023-08-22T08:17:54
2023-08-22T08:17:54
391,839,825
100
86
MIT
2023-09-14T08:24:54
2021-08-02T06:35:16
Python
UTF-8
Python
false
false
351
py
# -*- coding: utf-8 -*- # Generated by Django 1.11.24 on 2020-07-21 19:15 from __future__ import unicode_literals from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('periodic_task', '0003_auto_20200212_1554'), ('periodic_task', '0004_auto_20191213_0828'), ...
[ "1758504262@qq.com" ]
1758504262@qq.com
953270f8770e55eef35a29e9e2d9cd7532043179
3b786d3854e830a4b46ee55851ca186becbfa650
/SystemTesting/pylib/vmware/vsphere/vm/vnic/vnic_facade.py
3e8f86aea57fcd931d31e4c7a6ca06c8170a1f71
[]
no_license
Cloudxtreme/MyProject
d81f8d38684333c22084b88141b712c78b140777
5b55817c050b637e2747084290f6206d2e622938
refs/heads/master
2021-05-31T10:26:42.951835
2015-12-10T09:57:04
2015-12-10T09:57:04
null
0
0
null
null
null
null
UTF-8
Python
false
false
760
py
import vmware.common.base_facade as base_facade import vmware.common.constants as constants import vmware.vsphere.vm.vnic.vnic as vnic import vmware.vsphere.vm.vnic.api.vnic_api_client as vnic_api_client class VnicFacade(vnic.Vnic, base_facade.BaseFacade): DEFAULT_EXECUTION_TYPE = constants.ExecutionType.API ...
[ "bpei@vmware.com" ]
bpei@vmware.com
90340784aa83accff596d01938aa9bc70f8cd620
75958745f7fc39a58dd16c69ae724eb99e5c015b
/networker/io/__init__.py
ec666c75737f197f39e1883d75c402d59f115216
[]
no_license
juniorsilver/networker
6fd5cd1ab0f05db0cd790816f76626458c69939e
fc7593e3a8abfea16819fac80c40b9b28b35e176
refs/heads/master
2021-01-21T09:29:29.331558
2015-05-13T21:12:13
2015-05-13T21:12:13
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,128
py
# -*- coding: utf-8 -*- import ogr import osr import networkx as nx import networker.geomath as gm from networker.classes.geograph import GeoGraph import warnings import os """ Package for reading/writing networkx based GeoGraphs Note: these wrap existing networkx functions for custom behavior """ # TEMPORARY FIX: ...
[ "chris.natali@gmail.com" ]
chris.natali@gmail.com
ea12ee8caa50588efc9407f94edb961a4ff55ef2
3325f16c04ca8e641cbd58e396f983542b793091
/Seção 07 - Coleções Python/Exercícios da Seção/Exercício_14.py
afcb1f6ca938a930471c3ebe3d938afd917f6b6c
[]
no_license
romulovieira777/Programacao_em_Python_Essencial
ac929fbbd6a002bcc689b8d6e54d46177632c169
e81d219db773d562841203ea370bf4f098c4bd21
refs/heads/master
2023-06-11T16:06:36.971113
2021-07-06T20:57:25
2021-07-06T20:57:25
269,442,342
0
0
null
null
null
null
UTF-8
Python
false
false
361
py
""" 14) Faça um programa que leia um vetor de 10 posições e verifique se existem valores iguais e os escreva na tela. """ lista = [] checks = [] for i in range(10): lista.append(int(input("Enter the value: "))) if lista[i] in checks: print(f"The value {lista [i]} already exists in the vector") c...
[ "romulo.vieira777@gmail.com" ]
romulo.vieira777@gmail.com
2dab7e137e8f4ce07a2241870aa8300e2688caa5
62d6a37e1fb1b224b53e14a1cf151ef0571aa20f
/orun/core/paginator.py
b34da7224a42d3c452f339c2b884d3ab4cb4fc02
[]
no_license
katrid/orun
4fa0f291a1ef43f16bc1857a170fc0b2e5e06739
bfc6dae06182124ba75b1f3761d81ba8ca387dea
refs/heads/master
2023-08-30T03:58:34.570527
2023-08-09T04:05:30
2023-08-09T04:05:30
66,562,767
14
4
null
2023-01-06T22:29:37
2016-08-25T14:01:44
Python
UTF-8
Python
false
false
6,192
py
import collections.abc import inspect import warnings from math import ceil from orun.utils.deprecation import RemovedInOrun31Warning from orun.utils.functional import cached_property from orun.utils.inspect import method_has_no_args from orun.utils.translation import gettext_lazy as _ class UnorderedObjectListWarni...
[ "alexandre@katrid.com" ]
alexandre@katrid.com
b7be1bb6ca41c76df7120293824688bb0ad8bff7
a06b3954649799a1021334d24fd149913893f644
/pythonData/pygal_learn/die_visual.py
d756be7100f4f80ae5023407cf9ce0e180603944
[]
no_license
Ggzzhh/python_data_ex
25e1ee9fa67c1f827db6cb8d2ba1736c0f3fedd7
e5006455190d2a09b47b4b00bced82044b45733d
refs/heads/master
2020-12-30T15:30:05.561267
2017-05-13T09:30:48
2017-05-13T09:30:48
91,149,413
0
0
null
null
null
null
UTF-8
Python
false
false
960
py
#!/usr/bin/env python3 # -*- coding:utf-8 -*- import pygal from die import Die # 创建一个D6一个骰子 die_1 = Die() die_2 = Die() die_3 = Die() # 投掷几次骰子 并将结果存储在一个列表中 results = [die_1.roll() + die_2.roll() + die_3.roll() for x in range(50000)] # for roll_num in range(50000): # result = die_1.roll() + die_2.roll() # res...
[ "471992509@qq.com" ]
471992509@qq.com
cc318a58adee12f9231e872ba1ea0d55e540c90f
c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c
/cases/synthetic/sieve-big-8976.py
b78a447312f85a1fee31ba8b0a7055678a29662b
[]
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
31,756
py
# A resizable list of integers class Vector(object): items: [int] = None size: int = 0 def __init__(self:"Vector"): self.items = [0] # Returns current capacity def capacity(self:"Vector") -> int: return len(self.items) # Increases capacity of vector by one element def incr...
[ "647530+Virtlink@users.noreply.github.com" ]
647530+Virtlink@users.noreply.github.com
564d659a7905c56ee291356e4ab6c7b8230bd84f
8ad60ba96e1896eee7242376f6104ca8b2779355
/writeNotes.py
b4696544ea318da45d8acb77f4eb33a75829ff30
[]
no_license
capalmer1013/Music-Gen
00517c0e78012e18bb211f6eccac776b3f5f0639
eede84b6d809f8ef2e59a940c27b09849ad3fb01
refs/heads/master
2021-01-10T12:59:45.373697
2016-09-20T23:15:05
2016-09-20T23:15:05
51,187,074
6
0
null
null
null
null
UTF-8
Python
false
false
3,397
py
from music21 import * import random def adjustNotes(musicStream, noteGraph, noteStates, scaleOfNotes): currentState = 0 firstTime = True firstNone = True previousNote = None for element in musicStream: if type(element) is note.Note: if noteStates[currentState].nextNoteInterval i...
[ "capalmer1013@gmail.com" ]
capalmer1013@gmail.com
35575e57bc432e8efb6cec9918b0df4b24742bd2
9e0105505f4746d5872090885df6064ad772b3e5
/data/__init__.py
2a0ace94d275f89a08d56a36549c691e06380765
[]
no_license
wwwbq/PyTorch_YOLOv1
568afa4f8f508dabd9bcb35404a634985bf4a8ae
2e86c64577e24193b117582c07a4941c2eeba8cc
refs/heads/main
2023-08-08T00:08:42.466820
2021-09-13T06:25:09
2021-09-13T06:25:09
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,442
py
from .voc0712 import VOCDetection, VOCAnnotationTransform, VOC_CLASSES, VOC_ROOT from .cocodataset import coco_class_index, coco_class_labels, COCODataset, coco_root from .config import * import torch import cv2 import numpy as np def detection_collate(batch): """Custom collate fn for dealing with batches of image...
[ "1394571815@qq.com" ]
1394571815@qq.com
d3f55a32557e033ef38da81b09b7cb4100bed793
75cf6a9fd035883b64ca2309382e0178cf370b43
/Empirical/python/Python-Machine-Learning-Cookbook/Chapter09/operating_on_images.py
624f6bd593a6502d9548724902e41bf76257d6d1
[ "MIT" ]
permissive
ygtfrdes/Program
171b95b9f32a105185a7bf8ec6c8c1ca9d1eda9d
1c1e30230f0df50733b160ca73510c41d777edb9
refs/heads/master
2022-10-08T13:13:17.861152
2019-11-06T04:53:27
2019-11-06T04:53:27
219,560,170
1
2
null
2022-09-30T19:51:17
2019-11-04T17:39:52
HTML
UTF-8
Python
false
false
840
py
#!/usr/bin/python import sys import cv2 import numpy as np # Load and display an image -- 'forest.jpg' input_file = sys.argv[1] img = cv2.imread(input_file) cv2.imshow('Original', img) # Cropping an image h, w = img.shape[:2] start_row, end_row = int(0.21*h), int(0.73*h) start_col, end_col= int(0.37*w), int(0.92*w) ...
[ "githubfortyuds@gmail.com" ]
githubfortyuds@gmail.com
a7a4adefb01c6cb1323e7cdef21c873d7480722b
4b44a299bafbd4ca408ce1c89c9fe4a449632783
/python3/13_OOP/45_Stack_Implementation.py
54e259b309ec4357f1ef7a90f62e146d97ff0e7a
[]
no_license
umunusb1/PythonMaterial
ecd33d32b2de664eaaae5192be7c3f6d6bef1d67
1e0785c55ccb8f5b9df1978e1773365a29479ce0
refs/heads/master
2023-01-23T23:39:35.797800
2020-12-02T19:29:00
2020-12-02T19:29:00
null
0
0
null
null
null
null
UTF-8
Python
false
false
797
py
#!/usr/bin/python """ Purpose: Stack Abstract Data Type (ADT) Implementation """ __author__ = 'Udhay Prakash' class Stack(object): def __init__(self): self.items = [] def is_empty(self): return self.items == [] def push(self, item): self.items.append(item) def pop(self): ...
[ "uday3prakash@gmail.com" ]
uday3prakash@gmail.com
edae65986d6a1560729eb48d8220695d8cbc2c46
c8c77f6cc6c032daf179ea2138e4dda5473b426b
/greengrass/connector-splunk-integration-usage.py
6ca2bd9ed2c8f2150e56d40427b78be9c0870c50
[]
no_license
arunmastermind/AWS-examples-using-BOTO3
b411a6c96011ab58a66952a53fa2938cb58d5135
e8390094374c10902bab016a21caba75ea179b5a
refs/heads/master
2020-09-30T13:34:33.657621
2019-12-11T12:37:44
2019-12-11T12:37:44
227,297,211
0
2
null
null
null
null
UTF-8
Python
false
false
584
py
import greengrasssdk import time import json iot_client = greengrasssdk.client('iot-data') send_topic = 'splunk/logs/put' def create_request_with_all_fields(): return { "request": { "event": "Access log test message." }, "id" : "req_123" } def publish_basic_message(): ...
[ "arunmastermind.sci@gmail.com" ]
arunmastermind.sci@gmail.com
54dbb2a8873737736442a128a492910cd1652952
f0d713996eb095bcdc701f3fab0a8110b8541cbb
/bHTb8p5nybCrjFPze_14.py
986430a967f0a35a93008b2621730ca57dff17c3
[]
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
972
py
""" Write a function that, given the start `start_num` and end `end_num` values, return a list containing all the numbers **inclusive** to that range. See examples below. ### Examples inclusive_list(1, 5) ➞ [1, 2, 3, 4, 5] inclusive_list(2, 8) ➞ [2, 3, 4, 5, 6, 7, 8] inclusive_list(10, 20) ➞ ...
[ "daniel.reich@danielreichs-MacBook-Pro.local" ]
daniel.reich@danielreichs-MacBook-Pro.local
2fce0f82079f858b53ea55fa3b7abaf269ea7f25
e5e61ff01a648a7cc7e05b56cd4ed2e2898c9f4b
/ner/ner.py
4ddbbad0eef31b7b22cfdbf69c4edfe5eb2c4900
[]
no_license
mhw32/adaware-nlp
7eb3792b58ffa72e8f850a5d7a7b530fdd806ceb
b6233ee3d9bc3ac9f09763e05482e858d9e258c9
refs/heads/master
2021-06-13T10:06:47.146317
2016-12-09T01:36:57
2016-12-09T01:36:57
67,244,971
4
0
null
null
null
null
UTF-8
Python
false
false
9,392
py
''' Name Entity Recognition Model: Convolutional Neural Network - Conv --> Pool --> Conv --> Pool --> FNN - input: n-gram*300 - conv(1): 4 kernels (2*41 size) - pool(1): horiz. and vert pooling dim = 2 - conv(2): 8 kernels (1*21 size) - pool(2): horiz = 2, vert = 1 ...
[ "me@mikewuis.me" ]
me@mikewuis.me
6ee7e8d71711d7de51f8b41a2130d42a5b7b2729
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03576/s733417101.py
3b883f7667b43f3b4f02016818ff5c5fb7e59ba4
[]
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
1,307
py
if __name__ == "__main__": INF = 40 ** 18 + 1 N, K = map(int, input().split()) Point = list() for i in range(N): Point.append(list(map(int, input().split()))) # 四角形の頂点を2点選んでその中にK点含まれてて、面積が小さければ更新 ans = INF # iは1点目のx, jは1点目のy、kは2点目のx, lは2点目のy for i in range(N): for j in r...
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
a9657a280df47d5ead4b0972b0bf0e1deaee626d
9d29861e44389e02762e6eb0457c6a415a54e26c
/tests/unit/test_http.py
5239efe9763b7c536eea06607cd6968610a55ab9
[ "MIT" ]
permissive
itsmemattchung/pyrax
e787d67f8a79036834575f951f8c9e81d64d8b8f
e8eff127a5c9b6e64a9a42593d5e889c3c03f81d
refs/heads/master
2021-01-18T10:14:31.752469
2015-05-16T16:44:35
2015-05-16T16:44:35
21,360,598
0
0
null
null
null
null
UTF-8
Python
false
false
5,112
py
#!/usr/bin/env python # -*- coding: utf-8 -*- import json import random import unittest from mock import patch from mock import MagicMock as Mock import pyrax import pyrax.utils as utils import pyrax.exceptions as exc from pyrax import client from pyrax import fakes class HttpTest(unittest.TestCase): def __in...
[ "ed@leafe.com" ]
ed@leafe.com
792f58bb57d4fcd9caf0673f8a6ae7374b56de03
760fbdca58de7e2fb146ec60905ded7497b1812b
/ibm_whcs_sdk/insights_for_medical_literature/tests/integration/test_corpus_info.py
f187770d387893ef54954a858a34595585593035
[ "Apache-2.0" ]
permissive
dmansjur/whcs-python-sdk
c5d28742cefc65e19a7eb5de0027fe9f59b1e689
110a847c91d5779df91c6562394bde557ee132e5
refs/heads/master
2021-05-26T21:49:44.515561
2020-04-07T17:17:36
2020-04-07T17:17:36
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,178
py
# coding: utf-8 # Copyright 2018 IBM 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 applicabl...
[ "dcweber@us.ibm.com" ]
dcweber@us.ibm.com
4856af7c2432ee0f2279b881f2179a4db4e49b2e
d8f49e95a3ac86019e729c12c1f476b632ddb284
/simple_compare.py
fcd403b978bdf9952613c3ac2e2725982a2cb613
[]
no_license
Ogweno/seismtools
f068ea98f55e59d62f2fd0fb93e719f72628eef2
8c263461ef61e2bb1fb4ea8e39fab2a0dc86a704
refs/heads/master
2021-04-15T06:52:20.149486
2018-03-22T18:18:58
2018-03-22T18:18:58
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,559
py
#!/usr/bin/env python """ # ============================================================================== # The program is to plot a simple comparison among timeseries files # ============================================================================== """ from __future__ import division, print_function import os im...
[ "fsilva@usc.edu" ]
fsilva@usc.edu
5625a58e477a788afe595f68337073388c16e03f
cd94613036a3f265156d53bc79424a58288c07bf
/jirafapp/contrib/sites/migrations/0003_set_site_domain_and_name.py
47e1ef87361ad75a8eaf376af86666cf1da97d6e
[ "MIT" ]
permissive
aleducode/jirafapp
5dad50bcd85a7519be04f1c8ca36151119e382b7
94f9dd59061b153c0feaa1cd0b38b58170ab4d93
refs/heads/master
2021-07-12T18:11:29.561640
2020-05-14T14:13:51
2020-05-14T14:13:51
216,982,168
0
0
MIT
2020-10-27T22:01:32
2019-10-23T06:16:25
Python
UTF-8
Python
false
false
1,007
py
""" To understand why this file is here, please read: http://cookiecutter-django.readthedocs.io/en/latest/faq.html#why-is-there-a-django-contrib-sites-directory-in-cookiecutter-django """ from django.conf import settings from django.db import migrations def update_site_forward(apps, schema_editor): """Set site d...
[ "ducode@outlook.com" ]
ducode@outlook.com
d503520919c2dc6ddde8924d7a544216455109ec
5ed389c1f3fc175aa73478fc3dcba4101520b80b
/python/spoonacular/com/spoonacular/client/model/inline_response20034.py
4b13d18f19f2ea72909d30d2797eabbd8bd20bd8
[ "MIT" ]
permissive
jvenlin/spoonacular-api-clients
fae17091722085017cae5d84215d3b4af09082aa
63f955ceb2c356fefdd48ec634deb3c3e16a6ae7
refs/heads/master
2023-08-04T01:51:19.615572
2021-10-03T13:30:26
2021-10-03T13:30:26
null
0
0
null
null
null
null
UTF-8
Python
false
false
8,038
py
# coding: utf-8 """ spoonacular API The spoonacular Nutrition, Recipe, and Food API allows you to access over 380,000 recipes, thousands of ingredients, 800,000 food products, and 100,000 menu items. Our food ontology and semantic recipe search engine makes it possible to search for recipes using natural lang...
[ "davidurbansky@gmail.com" ]
davidurbansky@gmail.com
baa17fdbd83b763d86144c90baa419787f9607e7
338376a8fbafb0e1064a3885054ad1f1428e8906
/PythonProjects/教师学生登陆注册模块/LoginandRegiest.py
2eaebb5c0d6a1cf032b43c962a5c625d42a0bb72
[]
no_license
li-mo-feng/Python
2ed6eaf7dcc28989a24f8683ae43c700d6c75b40
5bc50cd3217e5e9a4da447d4db4cc14b35486f3e
refs/heads/master
2020-03-30T00:20:47.681578
2018-09-27T02:36:12
2018-09-27T02:36:12
150,518,054
0
0
null
null
null
null
UTF-8
Python
false
false
6,776
py
# 教师端注册与登陆 # 先定义老师这个类的各种属性 # 然后定义登陆系统 # 首先连接数据库 # 之后对于输入值的判断,因为只要密码对应账号在库内找不到就可以直接返回"密码或者账号错误" # 如果找得到那么提示登陆成功 import pymysql from Teacher_infor import Teacher from connsql import conn_infor #TF是我将教师这个类独立成包 # class Teacher():#先定义一个类,叫做老师 # # def __init__(self,teacher_name,teacher_password):#然后初始化对象 # sel...
[ "li-mo-feng@outlook.com" ]
li-mo-feng@outlook.com
98b73fffa8bb1d5b6338f90798d6397fa40c31a3
c1f6de6ba19e5d288e3b3ed60ba731992549d090
/triggerflow/service/eventsources/rabbit.py
7953aaab8ed4cead71faae66cfa0ff4385d8ae5c
[ "Apache-2.0" ]
permissive
aslom/triggerflow
2d74ad6996806418fdd54d47111028a7d60e5e74
861c32f5a6004c6e55e270d24e19f58adbf3bfff
refs/heads/master
2022-11-06T03:20:54.860109
2020-06-23T12:45:30
2020-06-23T12:45:30
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,520
py
import json import pika import logging from multiprocessing import Queue from threading import Thread from .model import EventSourceHook logging.getLogger('pika').setLevel(logging.CRITICAL) class RabbitMQEventSource(EventSourceHook): def __init__(self, event_queue: Queue, amqp_...
[ "aitor.a98@gmail.com" ]
aitor.a98@gmail.com
e849b0cace7a406a2d69f5f4f28bcd8c6e600e50
255e19ddc1bcde0d3d4fe70e01cec9bb724979c9
/dockerized-gists/9478366/snippet.py
bccbc0261205470d6a8c9cdc16908bb1536818ac
[ "MIT" ]
permissive
gistable/gistable
26c1e909928ec463026811f69b61619b62f14721
665d39a2bd82543d5196555f0801ef8fd4a3ee48
refs/heads/master
2023-02-17T21:33:55.558398
2023-02-11T18:20:10
2023-02-11T18:20:10
119,861,038
76
19
null
2020-07-26T03:14:55
2018-02-01T16:19:24
Python
UTF-8
Python
false
false
2,262
py
""" Implement a queue with two stacks Interview practice from coding for interviews - March 2014 """ class Staqueue(object): """ Implements a queue with two stacks One stack is used for enqueing, and the other dequeing. If an enqueue is requested while the dequeue stack is populated, all items are popp...
[ "gistshub@gmail.com" ]
gistshub@gmail.com
02eca684692e4b7720bc4402dfdf215a05ac8173
5164ce3d286d6be1153337cda8c358283733e45a
/pytorch_forecasting/utils.py
310a85634c913420b0f960cb758e61232add7d26
[ "MIT" ]
permissive
JakeForsey/pytorch-forecasting
f439444aa40f47fdcf82b507b3e7aa1a01b14d04
e5291df3dd8f8d72ecd2b21869f69cebf9456028
refs/heads/master
2023-03-04T13:16:27.595268
2021-02-05T17:28:22
2021-02-05T17:28:22
309,814,275
0
0
MIT
2021-02-05T17:28:23
2020-11-03T21:43:19
Python
UTF-8
Python
false
false
10,480
py
""" Helper functions for PyTorch forecasting """ from contextlib import redirect_stdout import os from typing import Any, Callable, List, Tuple, Union import torch from torch.fft import irfft, rfft import torch.nn.functional as F from torch.nn.utils import rnn def integer_histogram( data: torch.LongTensor, min: ...
[ "beitner.jan@bcg.com" ]
beitner.jan@bcg.com
d947167232dff30c06d07691e5727c60e2db5f56
bdb1c323968cd9d5441a187a29ed7e25a2e4f07e
/slave_server/runner/test_scripts/bxtp_ivi_o/script/Sysbench_perf/Perf_bench.py
a7f428a8c89c417ac78922e71a7269d435c8da1e
[]
no_license
liangzhaowang/automation_system
beee351dd9f09a51e2b81617ac5bee63023ea9b8
f77ef433c2366253dc9d9fdb7c54911cb38ed3e8
refs/heads/master
2022-02-19T11:07:44.047000
2019-09-23T02:16:00
2019-09-23T02:16:00
209,732,359
0
1
null
null
null
null
UTF-8
Python
false
false
3,369
py
#! /usr/bin/env python # coding=utf-8 import os import sys import time from runner.operation_lib.base_lib.exception_operation import kill_adb_uiautomator_block from runner.operation_lib.base_lib.UI_interface_operation import ui_operation from ATF import TestResult, TestLogger def prepare_data(ui_operat, log): kil...
[ "zhaowangx.liang@intel.com" ]
zhaowangx.liang@intel.com
391f5cb88f8d236192328a9c90436d37df6b5afa
fdf4c826d369c8c53f500a20a7b5d4f5399600c2
/apps/eplace/models.py
e6892b1a2bcd0d986c3b5b003995567345f99dc6
[]
no_license
yunmanger1/attendance-board
bd806ac06cfb08972af0d19a34831b17ee8f602c
05279002d1b02fe81356a97c9c7d3779d176ccf4
refs/heads/master
2016-09-05T11:31:11.086613
2010-09-05T10:00:04
2010-09-05T10:00:04
889,336
0
0
null
null
null
null
UTF-8
Python
false
false
7,320
py
from django.db import models from django.contrib.auth.models import User, Group as UserGroup from django.conf import settings import datetime class Subject(models.Model): short_name = models.CharField(max_length=10) full_name = models.CharField(max_length=100) def __unicode__(self): ...
[ "germanilyin@gmail.com" ]
germanilyin@gmail.com
5b8e9e53f3dd0b34578ef2a51b83d416e34fe13b
f0d713996eb095bcdc701f3fab0a8110b8541cbb
/3XtrKPMbxAf86QjjS_19.py
f7d0b7530bd7e207b1512a0faf0ec83b27b76171
[]
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
420
py
""" Create a function that returns `True` if an input string contains only uppercase or only lowercase letters. ### Examples same_case("hello") ➞ True same_case("HELLO") ➞ True same_case("Hello") ➞ False same_case("ketcHUp") ➞ False ### Notes N/A """ def same_case(txt): if txt...
[ "daniel.reich@danielreichs-MacBook-Pro.local" ]
daniel.reich@danielreichs-MacBook-Pro.local
683b143d59344f0af195608d2c55cdb8435418fc
f0d713996eb095bcdc701f3fab0a8110b8541cbb
/7AQgJookgCdbom2Zd_13.py
0af10b472532cc8592c516d3c078bd73c254325a
[]
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
1,368
py
""" Create a function that takes a string of words and moves the first letter of each word to the end of it, then adds 'ay' to the end of the word. This is called "Pig Latin" and it gets more complicated than the rules in this particular challenge. I've intentionally kept things simple, otherwise this would turn int...
[ "daniel.reich@danielreichs-MacBook-Pro.local" ]
daniel.reich@danielreichs-MacBook-Pro.local
b6fe05640600e2953c43c9bf6f0609c4f8b6dfb5
caaf56727714f8c03be38710bc7d0434c3ec5b11
/tests/components/ozw/test_services.py
1460e69b9c9d1f5e1c7fc06d8dca796c0bdb2e39
[ "Apache-2.0" ]
permissive
tchellomello/home-assistant
c8db86880619d7467901fd145f27e0f2f1a79acc
ed4ab403deaed9e8c95e0db728477fcb012bf4fa
refs/heads/dev
2023-01-27T23:48:17.550374
2020-09-18T01:18:55
2020-09-18T01:18:55
62,690,461
8
1
Apache-2.0
2023-01-13T06:02:03
2016-07-06T04:13:49
Python
UTF-8
Python
false
false
3,212
py
"""Test Z-Wave Services.""" from .common import setup_ozw async def test_services(hass, light_data, sent_messages, light_msg, caplog): """Test services on lock.""" await setup_ozw(hass, fixture=light_data) # Test set_config_parameter list by label await hass.services.async_call( "ozw", ...
[ "noreply@github.com" ]
tchellomello.noreply@github.com
f835f313d3ddb9f8e83293d2ad72d06ef09c203f
4fca17a3dbc3e74ba7e46bd7869eb6d138e4c422
/_1614_Maximum_Nesting_Depth_of_the_Parentheses.py
7498606a1bb178418562c090204942df438de06b
[]
no_license
mingweihe/leetcode
a2cfee0e004627b817a3c0321bb9c74128f8c1a7
edff905f63ab95cdd40447b27a9c449c9cefec37
refs/heads/master
2021-06-19T07:46:46.897952
2021-05-02T05:13:17
2021-05-02T05:13:17
205,740,338
3
0
null
null
null
null
UTF-8
Python
false
false
369
py
class Solution(object): def maxDepth(self, s): """ :type s: str :rtype: int """ cur, res = 0, 0 for c in s: if c not in ('(', ')'): continue if c == ')': res = max(res, cur) cur -= 1 e...
[ "hemingwei2017@gmail.com" ]
hemingwei2017@gmail.com
33a26514c6145168595462d0cc84f0708ec971a9
1a24def8879972f21d846ffb3813632070e1cf12
/Chapter09/0912-special.py
5756d44e994b904406aaa4513bf0b7e8c60dc8b5
[]
no_license
mushahiroyuki/beginning-python
03bb78c8d3f678ce39662a44046a308c99f29916
4d761d165203dbbe3604173c404f70a3eb791fd8
refs/heads/master
2023-08-16T12:44:01.336731
2023-07-26T03:41:22
2023-07-26T03:41:22
238,684,870
5
4
null
2023-09-06T18:34:01
2020-02-06T12:33:26
Python
UTF-8
Python
false
false
682
py
#@@range_begin(list1) # ←この行は無視してください。本文に引用するためのものです。 #ファイル名 Chapter09/0912-special.py class Rectangle: def __init__ (self): self.width = 0 self.height = 0 def __setattr__(self, name, value): if name == 'size': self.width, self.height = value else: self. ...
[ "hmusha@gmail.com" ]
hmusha@gmail.com
49c55d916b39ee674bf0e2656fa4e7a82c82c83a
aef08a7c30c80d24a1ba5708f316153541b841d9
/Leetcode 1399. Count Largest Group.py
4ccd17cc52587087e221e1e977cad297a6a39e60
[]
no_license
Chaoran-sjsu/leetcode
65b8f9ba44c074f415a25989be13ad94505d925f
6ff1941ff213a843013100ac7033e2d4f90fbd6a
refs/heads/master
2023-03-19T02:43:29.022300
2020-11-03T02:33:25
2020-11-03T02:33:25
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,057
py
""" 1399. Count Largest Group Given an integer n. Each number from 1 to n is grouped according to the sum of its digits. Return how many groups have the largest size. Example 1: Input: n = 13 Output: 4 Explanation: There are 9 groups in total, they are grouped according sum of its digits of numbers from 1 to 13...
[ "wangpeng4515@gmail.com" ]
wangpeng4515@gmail.com
96dbce39b001d1a9f5f5e5ae161ee98a4982d151
13fb51b1febb4e38633df0d7381e33a6bbfcab69
/iRBM/misc/utils.py
bfc32512ac5eef939f12cd10e9b417571646dc90
[]
no_license
milestonesvn/iRBM
cd977685bd7b681804ec51f1158ca916bd46c8b0
f9ba2e2799a9334afa4ee6d2a5b0273302596668
refs/heads/master
2020-05-29T09:52:09.065262
2015-11-13T22:36:59
2015-11-13T22:36:59
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,467
py
from __future__ import division, print_function import sys import json import hashlib from time import time import theano.tensor as T def generate_uid_from_string(value): """ Creates unique identifier from a string. """ return hashlib.sha256(value).hexdigest() def save_dict_to_json_file(path, dictionary...
[ "marc.cote.19@gmail.com" ]
marc.cote.19@gmail.com
7a0de7c70ec0ca991153ccec2463bccb2b8fbd5f
703a60185bb6d7607d3bff5afda2bbadfa96229c
/ctb/apps.py
d69668b86508ca89be86493b5c2e395e6d2444ee
[]
no_license
Eduardo-Lucas/contabilidade
07b07f63272e564034fcd418310222a78b28c3c1
c42d1ee2178d70a7301b57fe68329e732621abed
refs/heads/master
2021-09-07T23:47:16.142421
2018-03-03T14:09:17
2018-03-03T14:09:17
102,148,759
0
0
null
null
null
null
UTF-8
Python
false
false
484
py
from ctb.signals import aumenta_saldo, diminui_saldo, cria_saldo_contabil from django.apps import AppConfig from django.db.models.signals import post_save, pre_delete from ctb.models import LancamentoContabil, Conta class CtbConfig(AppConfig): name = 'ctb' def ready(self): post_save.connect(aumenta_...
[ "eduardolucas40@gmail.com" ]
eduardolucas40@gmail.com
bd7d91ea314794b1572bf99381008be3c53f3a14
5aad0901bba97bdec3e8ad576abdcb780cc7f99e
/experiment/surprise/prediction_algorithms/item_topics.py
3d94605f09eea26c30bc49fb4d36ae3fcce4991a
[]
no_license
HelloYym/Cross-TTCF
544f2322d25855586bf517bb769e94ffd112e847
d4504af02a7d0dcc1b5c59aba33ba9bc897e381d
refs/heads/master
2021-06-19T01:04:32.401074
2017-06-07T05:53:29
2017-06-07T05:53:29
86,427,595
3
4
null
null
null
null
UTF-8
Python
false
false
9,331
py
from __future__ import (absolute_import, division, print_function, unicode_literals) import numpy as np from six.moves import range import copy from .algo_base import AlgoBase import lda class ItemTopics(AlgoBase): def __init__(self, n_factors=100, n_epochs=20, biased=True, lr_all=.005, ...
[ "yangym@zju.edu.cn" ]
yangym@zju.edu.cn
04d4126d333774500063b3ff3cfc0350fa960981
f5933c76f80025ac5b438b22da33ebc8438befa1
/telethon/tl/custom/conversation.py
dbc3e1af6113d23499e6e8e3f525795045f34255
[ "MIT" ]
permissive
PeterG75/Telethon
6379477fab91dfdb43af5c16ebbd3ceaf67ff664
f4b9c9d6d40673132248d037a4a289b3ff13f384
refs/heads/master
2020-03-26T17:18:35.886049
2018-08-14T17:14:13
2018-08-14T17:14:13
null
0
0
null
null
null
null
UTF-8
Python
false
false
14,563
py
import asyncio import itertools import time from .chatgetter import ChatGetter from ... import utils class Conversation(ChatGetter): """ Represents a conversation inside an specific chat. A conversation keeps track of new messages since it was created until its exit and easily lets you query the ...
[ "totufals@hotmail.com" ]
totufals@hotmail.com
3fb3d00241b7a826c1877f53f07dbd99252a91f5
2a54e8d6ed124c64abb9e075cc5524bb859ba0fa
/.history/4-functional-programming/3-filter()_20200422143908.py
cc36b10d99ce949c789636d3d6b363743649b35d
[]
no_license
CaptainStorm21/Python-Foundation
01b5fbaf7a913506518cf22e0339dd948e65cea1
a385adeda74f43dd7fb2d99d326b0be23db25024
refs/heads/master
2021-05-23T01:29:18.885239
2020-04-23T19:18:06
2020-04-23T19:18:06
253,171,611
0
0
null
null
null
null
UTF-8
Python
false
false
47
py
# return odd numbers def check_odd(item):
[ "tikana4@yahoo.com" ]
tikana4@yahoo.com
d63be6e85c2fed1699b0b3053a704aa61eca9e9a
0c4e79d0ca5427fa83ff7abd0ec060f4a2de121d
/examples/atbash.py
40ab6b4a9ac983f0dcc429efcf8f72667ccf5d6b
[ "MIT" ]
permissive
discrete-void/secretpy
d5fab9643c568af72e64b6da416b33da72e08455
94fec3bcb4074c623ff749727f0f073f0e253ce7
refs/heads/master
2022-01-29T07:26:52.636575
2019-04-07T16:12:27
2019-04-07T16:12:27
181,974,347
1
0
null
null
null
null
UTF-8
Python
false
false
809
py
#!/usr/bin/python # -*- encoding: utf-8 -*- from secretpy import Atbash from secretpy import CryptMachine from secretpy import alphabet import secretpy.cmdecorators as md def encdec(machine, plaintext): print(plaintext) enc = machine.encrypt(plaintext) print(enc) dec = machine.decrypt(enc) print(...
[ "maxvetrov555@yandex.ru" ]
maxvetrov555@yandex.ru
e01cbc42c609bec4cce334d833c4814be3f00560
f2da63de512183804290bfcabfa60eaca3649e05
/exercises/ML/NLP/lane-NLP-in-action/02-vocabulary/src/DownloadFiles.py
73ee39c0e5ce461a716d4cf3b6f5daef10239571
[]
no_license
paradisepilot/statistics
a94bb57ebe453d49c06815c523e8f633423cb68e
50daf644baca1f40253edf91083ed42d4c5f9342
refs/heads/master
2022-07-25T16:19:07.751886
2022-06-26T21:18:38
2022-06-26T21:18:38
5,012,656
0
2
null
2019-04-22T06:52:55
2012-07-13T01:11:42
HTML
UTF-8
Python
false
false
1,405
py
import os from urllib import request def getBigTxt( BigTxtFILE ): if os.path.isfile(path = BigTxtFILE) == False : print("downloading http://norvig.com/big.txt from Internet ...") my_download( url = "http://norvig.com/big.txt" , file = BigTxtFILE ) return( None ) def getBabyNames( BabyNamesFIL...
[ "paradisepilot@gmail.com" ]
paradisepilot@gmail.com
77100f1c9fbfea6f3b749136eab0c8f42bc33bf6
4d0f3e2d7455f80caea978e4e70621d50c6c7561
/Network/TCP/Basic/Server.py
ff706a253e45d530201d836ca089c083c1bd8f2d
[]
no_license
mhdr/PythonSamples
66940ee2353872d2947c459e3865be42140329c6
1a9dccc05962033ea02b081a39cd67c1e7b29d0c
refs/heads/master
2020-04-14T01:10:13.033940
2016-05-28T15:33:52
2016-05-28T15:33:52
30,691,539
1
0
null
null
null
null
UTF-8
Python
false
false
439
py
# Echo server program import socket HOST = '' # Symbolic name meaning all available interfaces PORT = 50007 # Arbitrary non-privileged port s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) s.bind((HOST, PORT)) s.listen(1) conn, addr = s.accept() print('Connected by', addr) while True:...
[ "ramzani.mahmood@gmail.com" ]
ramzani.mahmood@gmail.com
c438004fdd7c6b4cc069340efc636b7addec8fad
6b2a8dd202fdce77c971c412717e305e1caaac51
/solutions_2458486_0/Python/Tez/dfs_hunter.py
3026328f4778ca0789f5fef210e6af8754e53c1e
[]
no_license
alexandraback/datacollection
0bc67a9ace00abbc843f4912562f3a064992e0e9
076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf
refs/heads/master
2021-01-24T18:27:24.417992
2017-05-23T09:23:38
2017-05-23T09:23:38
84,313,442
2
4
null
null
null
null
UTF-8
Python
false
false
1,798
py
import sys from copy import copy def dfs_hunt(keys, chests): if not keys and chests: return None elif not chests: return [] #keys is a list of keys #chests is a list of tuples: (chest_num, key_type, has_keys), where has_keys is a list of key_nums for c in chests: if c[1] i...
[ "eewestman@gmail.com" ]
eewestman@gmail.com
a9346abfc44c16acd60907c02d816f25e96f7805
77090c3eaf15342505edc228ea19769ab219e0f7
/CNVbenchmarkeR/output/manta-datasetall/set11/workspace/pyflow.data/state/make_pyflow_task_graph.py
9f35c7f50a86a2ff29419411662a16a71b8ad772
[ "MIT" ]
permissive
robinwijngaard/TFM_code
046c983a8eee7630de50753cff1b15ca3f7b1bd5
d18b3e0b100cfb5bdd9c47c91b01718cc9e96232
refs/heads/main
2023-06-20T02:55:52.071899
2021-07-13T13:18:09
2021-07-13T13:18:09
345,280,544
0
0
null
null
null
null
UTF-8
Python
false
false
7,716
py
#!/usr/bin/env python # # This is a script to create a dot graph from pyflow state files. # Usage: $script >| task_graph.dot # # Note that script assumes the default pyflow state files are in the script directory. # # This file was autogenerated by process: '/home/robin/Documents/Project/TFM_code/CNVbenchmarkeR-master'...
[ "robinwijngaard@gmail.com" ]
robinwijngaard@gmail.com
cf852a04385b24b364b56d6f98b7469cc666d323
8c3755e907a8f7fbae4e5e3334aa9332f8f705bb
/python_example_scripts/exception_sorted.py
eeb41b21018d003bdd842982a1ff2ffc22f4505d
[]
no_license
xaneon/PythonProgrammingBasics
20c9db82f621a41735856a0b008bf2c328d8e4b5
accf4d16034d33e616b5ebe46f69c1130b09f85e
refs/heads/master
2020-06-13T13:47:02.995326
2019-07-01T13:45:29
2019-07-01T13:45:29
194,235,103
0
0
null
null
null
null
UTF-8
Python
false
false
840
py
numbers = [13, 9, 5, 14] words = ["mad", "dp", "bh", "bc"] mixed_list = [1, "c", 3, 2, "a", 8, "b", 4] numbers.sort() words.sort() # mixed_list.sort() # this was possible in Python2 print(numbers) print(words) print(mixed_list) try: mixed_list_sorted = sorted(mixed_list) # mixed_list.sort() except TypeError...
[ "bonne.habekost@gmail.com" ]
bonne.habekost@gmail.com
8537c7bcc344812976a7f291991843fce98d598e
b19dfd6a3ba5d107d110fb936de2e91d1d92bb99
/venv/bin/pyreverse
7334ac05246abf737b03210ae9291b66ff3a1a3a
[]
no_license
siddhant3030/djangoecommerce
d8f5b21f29d17d2979b073fd9389badafc993b5c
b067cb1155c778fece4634d0a98631a0646dacff
refs/heads/master
2022-12-13T15:28:39.229377
2019-09-28T10:30:02
2019-09-28T10:30:02
207,240,716
2
1
null
2022-12-11T01:34:25
2019-09-09T06:35:36
Python
UTF-8
Python
false
false
276
#!/Users/apple/Documents/projects/djangoecommerce/venv/bin/python3.7 # -*- coding: utf-8 -*- import re import sys from pylint import run_pyreverse if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) sys.exit(run_pyreverse())
[ "ssiddhant3030@gmail.com" ]
ssiddhant3030@gmail.com
59ba18fe8a02f922ad3ac9773874e9d7c07b11d1
4544f04da8dd6faf602af706e523f4929941ba41
/oandapyV20/endpoints/orders.py
8c52ed20b81007834572955df057f031111201dd
[ "MIT" ]
permissive
hpsilva/oanda-api-v20
78febf98384945ded213f517ed1bf00d696e5dcb
a8d82dff91787bde08a4d8733283a62ecd0ef7f3
refs/heads/master
2021-01-12T11:43:45.763974
2016-10-22T16:34:46
2016-10-22T16:34:46
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,622
py
# -*- encoding: utf-8 -*- """Handle orders and pendingOrders endpoints.""" from .apirequest import APIRequest from .decorators import dyndoc_insert, endpoint, abstractclass, extendargs from .definitions.orders import definitions # flake8: noqa # responses serve both testing purpose aswell as dynamic docstring repla...
[ "f.brekeveld@gmail.com" ]
f.brekeveld@gmail.com
f626c0efc00adb2c59a247d54ba7c9096a41311d
7b76e80f2057d78a721373e8818e153eecebe8f0
/Examples/basic demos.py
ead9048195db7876a719dfb373328331fab7486d
[]
no_license
dev-area/Python
c744cf6eb416a74a70ad55d2bcfa8a6166adc45d
1421a1f154fe314453d2da8b0fafae79aa5086a6
refs/heads/master
2023-02-01T10:37:47.796198
2020-10-15T19:33:49
2020-10-15T19:33:49
86,337,870
35
44
null
2023-01-12T09:02:59
2017-03-27T13:20:49
Jupyter Notebook
UTF-8
Python
false
false
1,486
py
#!/usr/bin/env python2 # -*- coding: utf-8 -*- """ Created on Thu May 11 12:04:21 2017 @author: parallels """ def dup_strg(val, times): global res res = str(val) * times return res def dup_str(val, times): res = str(val) * times return res def print_vat(gross, vatpc=17.5, message='Summary:...
[ "liranbh@gmail.com" ]
liranbh@gmail.com
1886e9691cbc35cc628e4805fa75b84a4574da17
cfc7eed97d4987dbe80026205b7a127f89974d51
/ebcli/lib/kms.py
2d1313e20122e9d2d349791c666edeb407969de0
[ "LicenseRef-scancode-unknown-license-reference", "Apache-2.0" ]
permissive
stefansundin/awsebcli
bf71872328c4d94f073d5d0ae0740a0316d56fcf
8e17c8ad3d24e3c4cef9a4c5dfc6cae61bd7066d
refs/heads/main
2022-12-06T06:34:52.601029
2022-02-04T05:40:53
2022-11-20T01:38:26
230,182,128
0
0
null
null
null
null
UTF-8
Python
false
false
956
py
# Copyright 2019 Amazon.com, Inc. or its affiliates. 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. A copy of # the License is located at # # http://aws.amazon.com/apache2.0/ # # or in the "license" file...
[ "aws-eb-cli@amazon.com" ]
aws-eb-cli@amazon.com
520603f5f0f146e930ddd4204db08daa7cb2c778
163bbb4e0920dedd5941e3edfb2d8706ba75627d
/Code/CodeRecords/2928/60693/266976.py
dd790109bbb1fce0eb4d48d0322fbb8568bca38d
[]
no_license
AdamZhouSE/pythonHomework
a25c120b03a158d60aaa9fdc5fb203b1bb377a19
ffc5606817a666aa6241cfab27364326f5c066ff
refs/heads/master
2022-11-24T08:05:22.122011
2020-07-28T16:21:24
2020-07-28T16:21:24
259,576,640
2
1
null
null
null
null
UTF-8
Python
false
false
576
py
def paint_numbers(arr,v): mincost=min(arr) if mincost>v:return -1 max_dig=v//mincost if v % mincost==0: for i in range(8,-1,-1): if arr[i]==mincost: return str(i+1)*max_dig highest_bit=v-mincost*(max_dig-1) res='' for i in range(8,-1,-1): if arr[i]...
[ "1069583789@qq.com" ]
1069583789@qq.com
edef4ab794b02dfa679a484d15985e4b6b9b1f24
a72cb4d00528fb3d2d47f99a1ccca1b8b9b41ff7
/scripts/addons_extern/render_appleseed/ui/world.py
fa910f9bf5944d7dfd75a6db832c70c37001b391
[]
no_license
talocan/blenderpython
b05204881183ff901ec189916a3bcc1d3e9d3e20
056ac37e76a1b410696c9efe4fe0ea09fdc68c0e
refs/heads/master
2021-01-18T05:16:47.221786
2014-07-11T17:01:53
2014-07-11T17:01:53
21,749,332
1
0
null
null
null
null
UTF-8
Python
false
false
6,302
py
# # This source file is part of appleseed. # Visit http://appleseedhq.net/ for additional information and resources. # # This software is released under the MIT license. # # Copyright (c) 2013 Franz Beaune, Joel Daniels, Esteban Tovagliari. # # Permission is hereby granted, free of charge, to any person obtaining a co...
[ "super3dblender@yahoo.com" ]
super3dblender@yahoo.com
4aecc6ce184c9a7e3d27944696003de833acd480
0341265e8887842a3850c0efc6a8003f30fbb1a4
/factor10/test.py
0bca26bf774ca392982e02f126b16fcc06f0cbb7
[]
no_license
ukamoy/factors-eight
36e30ac3e2ef4d44aec9ad6a15313a17a68508df
972b3351120ce02c206f53ce858ad130dbbebeee
refs/heads/master
2020-03-13T12:45:33.881692
2018-05-01T17:35:41
2018-05-01T17:35:41
130,490,215
0
0
null
null
null
null
UTF-8
Python
false
false
2,250
py
import pandas as pd def get_dv(start = 20170101,end = 20180101): import jaqs_fxdayu jaqs_fxdayu.patch_all() from jaqs.data import DataView from jaqs_fxdayu.data.dataservice import LocalDataService import warnings warnings.filterwarnings("ignore") #-------------------------------...
[ "rinzia@msn.com" ]
rinzia@msn.com
ce00d93b6deb99cd50dec54c1583883d8f0c1e67
7137161629a1003583744cc3bd0e5d3498e0a924
/airflow/triggers/temporal.py
7cd67e21f200cb18a12f09bc1ae76db2befd7c14
[ "Apache-2.0", "BSD-3-Clause", "MIT" ]
permissive
jbampton/airflow
3fca85975854eb916f16143b659a9119af143963
dcfa14d60dade3fdefa001d10013466fe4d77f0d
refs/heads/master
2023-05-25T22:31:49.104069
2021-09-18T19:18:32
2021-09-18T19:18:32
247,645,744
3
0
Apache-2.0
2020-03-16T08:12:58
2020-03-16T08:12:57
null
UTF-8
Python
false
false
3,072
py
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
[ "noreply@github.com" ]
jbampton.noreply@github.com
618fd6d861c1ca717ba8937184538551b7c32f92
47ae8ae533ac0053302c2e92e3ea0e9e15b3104d
/2FinalProject/5face/206face_recognition_video.py
ffc714a33e7b8bb63ae521dd2cfa12b6986a698d
[]
no_license
bluedawn123/Study
ac039a8d549be4cd71de9084d3659315e588ac73
7db87e197ce13b07f2f9aeab8e74077525323e5a
refs/heads/master
2022-12-03T21:47:07.559963
2020-08-27T10:23:04
2020-08-27T10:23:04
271,180,979
2
0
null
null
null
null
UTF-8
Python
false
false
3,984
py
import cv2 import face_recognition import pickle import time file_name = './2FinalProject/data/son_02.mp4' encoding_file = 'encodings.pickle' unknown_name = 'Unknown' # Either cnn or hog. The CNN method is more accurate but slower. HOG is faster but less accurate. model_method = 'cnn' output_name = 'video/output_' + ...
[ "haemilyjh@gmail.com" ]
haemilyjh@gmail.com
d08715ca4343224c62f92c4f5765e642cf1de222
042bd40e554ac7fcd618c334ae98b4f43248a250
/examples/python/cpu/tensors/tensor_dealloc_01.py
492d94a1a21a1c90e90c05cf2f28afba95cef804
[ "Apache-2.0" ]
permissive
kant/ocean-tensor-package
8a62df968335de2057ff095f0910e5ad5fcff8e1
fb3fcff8bba7f4ef6cd8b8d02f0e1be1258da02d
refs/heads/master
2020-03-29T04:01:22.064480
2018-09-19T19:17:19
2018-09-19T19:17:19
149,511,923
0
0
Apache-2.0
2018-09-19T21:03:14
2018-09-19T21:03:14
null
UTF-8
Python
false
false
112
py
import pyOcean_cpu as ocean a = ocean.zeros([3,4],ocean.float) print(a) a.dealloc() print(a) print(a.storage)
[ "evandenberg@us.ibm.com" ]
evandenberg@us.ibm.com
4ed6f2f2b151adc1ec2121b43dca0bcb07bce5b0
4273f6c264fa5a7267557c5e0d338a2cbd27789e
/AIE23/20191103_tensorflow/Cheat/imporve.py
1e3c8ee0d568605f86939db02c5c9377f4debbcb
[]
no_license
shcqupc/Alg_study
874d37954ed8ed2cdb3bd492d59cd071836946f5
462ee12c72b7f84c5ae45aaf0f65b812d7c1ada1
refs/heads/master
2020-07-10T15:26:40.603300
2020-03-27T12:53:16
2020-03-27T12:53:16
204,298,238
2
0
null
null
null
null
UTF-8
Python
false
false
443
py
def full_layer(input_tensor, out_dim, name='full'): with tf.variable_scope(name): shape = input_tensor.get_shape().as_list() W = tf.get_variable('W', (shape[1], out_dim), dtype=tf.float32, initializer=tf.truncated_normal_initializer(stddev=0.1)) b = tf.get_variable('b', [out_dim], dtype=tf.f...
[ "253848296@qq.com" ]
253848296@qq.com
fb16629aed91d4bf2bb7d5116bf9f60bb9a6a635
fdbb74a95924e2677466614f6ab6e2bb13b2a95a
/third_party/python/Lib/test/test_email/__init__.py
f1646d55958d43d5b1924d98540b7c6c055041d5
[ "Python-2.0", "GPL-1.0-or-later", "LicenseRef-scancode-python-cwi", "LicenseRef-scancode-free-unknown", "LicenseRef-scancode-other-copyleft", "ISC" ]
permissive
jart/cosmopolitan
fb11b5658939023977060a7c6c71a74093d9cb44
0d748ad58e1063dd1f8560f18a0c75293b9415b7
refs/heads/master
2023-09-06T09:17:29.303607
2023-09-02T03:49:13
2023-09-02T03:50:18
272,457,606
11,887
435
ISC
2023-09-14T17:47:58
2020-06-15T14:16:13
C
UTF-8
Python
false
false
6,295
py
import os import unittest import collections import email from email.message import Message from email._policybase import compat32 from test.support import load_package_tests landmark = __file__ # Load all tests in package def load_tests(*args): return load_package_tests(os.path.dirname(__file__), *args) # help...
[ "jtunney@gmail.com" ]
jtunney@gmail.com
22132e7e3d0e34d4e63dd8a7b2c3fba0be01b588
e3e3f2ce1bdc04c55ac167c06b69be57e3fcd72b
/UBloggerApp/sitemap.py
33e8a32f3daf0238c5ca546c48a4b6f691edc4e3
[ "MIT" ]
permissive
Kolynes/BlogEngine
d3766e2c6ab12f78f7cc53cf71ea7ef1f550046c
93a77b47a954113dccf25de1469391d4fc681277
refs/heads/master
2022-12-13T23:01:41.419135
2021-02-04T22:08:20
2021-02-04T22:08:20
193,998,911
0
0
MIT
2022-12-07T09:39:41
2019-06-27T01:06:53
JavaScript
UTF-8
Python
false
false
293
py
from django.contrib.sitemaps import Sitemap from . import models class BlogEngineAppSitemap(Sitemap): changefreq = "never" priority = "0.5" # def location(self, obj): # return "b" def items(self): return models.Article.objects.filter(published=True)
[ "kolyneschinedu@gmail.com" ]
kolyneschinedu@gmail.com
7536b4ac963ad8a7283685890c8170deef67f9dc
1c6283303ceb883add8de4ee07c5ffcfc2e93fab
/Jinja2/lib/python3.7/site-packages/ixnetwork_restpy/testplatform/sessions/ixnetwork/vport/protocols/targetpeer_d7cc221539f0f14696e2588a1ed5bda7.py
9f27503694feb7edbccfa5b1a19ae05960bc8dd1
[]
no_license
pdobrinskiy/devcore
0f5b3dfc2f3bf1e44abd716f008a01c443e14f18
580c7df6f5db8c118990cf01bc2b986285b9718b
refs/heads/main
2023-07-29T20:28:49.035475
2021-09-14T10:02:16
2021-09-14T10:02:16
405,919,390
0
0
null
null
null
null
UTF-8
Python
false
false
9,318
py
# MIT LICENSE # # Copyright 1997 - 2020 by IXIA Keysight # # 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 use, copy, ...
[ "pdobrinskiy@yahoo.com" ]
pdobrinskiy@yahoo.com
1aa5b5c1020ffa5cb4760367c085bde0ee739260
2cb44b6525952f03cbcd8f53609df1c6737ec6fa
/imgsrv/utils.py
3fbbe8324727dea666a2085d780a6f185e60d7ab
[ "MIT" ]
permissive
joefutrelle/habcam-image-service
420a6bbbba81b99192f5b9a84a89b97bbd016096
18341583508f24279acc93fbd872edf96c186e41
refs/heads/master
2020-04-15T11:38:42.312804
2015-08-25T15:23:13
2015-08-25T15:23:13
41,109,664
0
0
null
null
null
null
UTF-8
Python
false
false
655
py
import re from werkzeug.routing import BaseConverter def parse_params(path): """Parse a path fragment and convert to a list of tuples. Slashes separate alternating keys and values. For example /a/3/b/5 -> [ ['a', '3'], ['b', '5'] ].""" parts = re.split('/',path) keys = parts[:-1:2] values= par...
[ "joefutrelle@gmail.com" ]
joefutrelle@gmail.com
70fabb86cb0af025df29c398214b15b6c4af93c3
975b2d421d3661e6770b601929d5f11d981d8985
/msgraph/generated/models/security/evidence_remediation_status.py
0b0237f8284d0559d5bf293aa0f8a942d06ade5c
[ "MIT" ]
permissive
microsoftgraph/msgraph-sdk-python
a7c551b85daadeebf76ec4ae12668664ea639b42
27de7ccbe688d7614b2f6bde0fdbcda4bc5cc949
refs/heads/main
2023-09-03T21:45:27.989672
2023-08-31T06:22:18
2023-08-31T06:22:18
534,665,999
135
18
MIT
2023-09-14T11:04:11
2022-09-09T14:00:17
Python
UTF-8
Python
false
false
247
py
from enum import Enum class EvidenceRemediationStatus(str, Enum): None_ = "none", Remediated = "remediated", Prevented = "prevented", Blocked = "blocked", NotFound = "notFound", UnknownFutureValue = "unknownFutureValue",
[ "GraphTooling@service.microsoft.com" ]
GraphTooling@service.microsoft.com
5964fa44bf88e2c300c470a7fe092be1b2593260
ce1543388c2065f6dfd3f776bdb6caf70a83a8a1
/forms_plus/urls.py
75167670352cb03119693923bf8dd04005c80764
[]
no_license
JesusAnaya/mezzanine-forms-plus
711f4b71d7d2819e1810d22724cfb81941b75a3c
8378caa106ca2fd6eba465e326ffd45c88df5df8
refs/heads/master
2020-12-23T14:40:13.783659
2014-09-12T22:53:22
2014-09-12T22:53:22
64,798,849
0
0
null
null
null
null
UTF-8
Python
false
false
314
py
from django.conf.urls import patterns, url urlpatterns = patterns("forms_plus.views", url(r"^entries_list/$", "entries_list_view", name="entries_list"), url(r"^(?P<form_id>\d+)/entries/$", "entries_view", name="form_entries"), url(r"^file/(?P<field_entry_id>\d+)/$", "file_view", name="form_file"), )
[ "jesus.anaya.dev@gmail.com" ]
jesus.anaya.dev@gmail.com
46841659ac0c5ed65d65011da0a0c61b5ad7e680
10fa94591c6cecddf37ddb6d39e7beea46c84d60
/swagger_server/models/ws05_response_data_referenti.py
f7655d0487a4ed636bdce402435561237d9a82fe
[]
no_license
ioggstream/indicepa-proxy
22b7a31943d4a44bcf8de73389c923efad7fc333
9e1f5770fa98fdf5e7580043ed82bae02d206e7c
refs/heads/master
2020-03-09T06:49:14.419628
2018-04-08T10:08:58
2018-05-13T19:23:03
128,649,322
0
0
null
null
null
null
UTF-8
Python
false
false
2,679
py
# coding: utf-8 from __future__ import absolute_import from datetime import date, datetime # noqa: F401 from typing import List, Dict # noqa: F401 from swagger_server.models.base_model_ import Model from swagger_server import util class WS05ResponseDataReferenti(Model): """NOTE: This class is auto generated ...
[ "robipolli@gmail.com" ]
robipolli@gmail.com
bbd54ada0b5dee8aeef370d4284e844c97a212de
539bbf40f66dd67fd2a470d9ca7c48bf186c8636
/Lab11/Assignment08/PyStanNormNormTest.py
47012e70f8011bf7d576a12536118fc7443fb00c
[]
no_license
dbcarrasco/LabResources
2254e75c092ff8dc9b8641653accb6c6b01c7ff8
818cc3302654e177347dd82b408d67eb82e53b14
refs/heads/master
2020-03-13T14:28:35.902840
2018-04-20T23:15:15
2018-04-20T23:15:15
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,448
py
""" Test an installation of PyStan using a simple normal mean estimation problem. The script does a Stan fit to simulated data from a normal distribution, estimating the mean with a normal prior/normal sampling dist'n model. It prints summaries of the posterior to the terminal, and plots two figures showing traceplot...
[ "loredo@astro.cornell.edu" ]
loredo@astro.cornell.edu
4389dea8e6f479412daa8eaf5150dede8b0bb571
5eb703a0406224dae56557e32d86ef8dad173041
/stib/geojson_dump.py
5705443db364cd761f5270494d1327f2f244be79
[]
no_license
C4ptainCrunch/open-transport-be
b798f6a246925cbe045c1c2388e4ccf1bff8b8b1
78946dc066368ea2ab1051a09dc40402c54b2e02
refs/heads/master
2021-01-23T10:00:30.926636
2014-11-01T18:07:28
2014-11-01T18:07:28
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,014
py
import geojson def stops_to_geojson(stops): features = [] for stop in stops: g = geojson.Point(stop["point"].coords[0]) f = geojson.Feature(geometry=g, properties={"name": stop["name_fr"]}) features.append(f) return geojson.FeatureCollection(features) def lines_to_geojson(lines): ...
[ "nikita.marchant@gmail.com" ]
nikita.marchant@gmail.com
9eca912d25cd7ecea58f52e43659f0d89e17bdca
f94c1d222d37da3bdbdd9012a6e3e8aa3d423166
/creator/unit.py
73ec33428218b9b2191e3d70723759709b1b3537
[ "MIT" ]
permissive
gitter-badger/creator
67a06d62c0e43e8d956de93e8ab13ecfcc08754f
1e86bb2ed200c4f32fa516fd1e7c80f78a8aa238
refs/heads/master
2020-04-11T05:57:45.559427
2015-08-03T13:38:19
2015-08-03T13:38:19
40,133,619
1
1
null
2015-08-03T15:51:46
2015-08-03T15:51:45
Python
UTF-8
Python
false
false
29,941
py
# Copyright (C) 2015 Niklas Rosenstein # # 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 use, copy, modify, merge, publish, d...
[ "rosensteinniklas@gmail.com" ]
rosensteinniklas@gmail.com
4a7ae23ad9d9cc63c3e244d7126f0f964f64c978
9c9707e4ad2a184c15c3c9ae5240b7e41c94b3aa
/app/views/async/cve.py
86ab6024b258fd14266d312bdc207475cfeec6c6
[]
no_license
Depado/LostInNetwork
02d5fc528435d2d1dc19ddf957805459b523a2fa
429c0c730466d660617f3b92a283e091224afac3
refs/heads/master
2021-06-17T11:11:04.894148
2021-03-24T09:17:19
2021-03-24T09:17:19
27,167,709
6
3
null
2021-03-24T09:17:20
2014-11-26T08:50:43
Python
UTF-8
Python
false
false
1,593
py
# -*- coding: utf-8 -*- import redis from flask import jsonify from flask_login import login_required from app import app from app.tasks.cve import cve_async, CVE_LOCK, CVE_KEY from .lock import lock_available @app.route('/start/cve_update', methods=['POST']) @login_required def async_cve_update(): """ Sta...
[ "paul.lhussiez@gmail.com" ]
paul.lhussiez@gmail.com
829d6e8547912f91360086a51890cffa597ff14a
6e99df860ef3ab96cafa0b73873d6ce92bb5370d
/caas-test/app.py
42b820fa856463299939fb45f097007f768c9e4a
[]
no_license
tonicbupt/caas-test
804e604678aaf04cb55a69e47512fc2d155d930f
46cbeb014d69d8b9fcb2e99f7f2522509ccaa869
refs/heads/master
2018-12-28T16:21:28.623028
2015-09-11T08:26:29
2015-09-11T08:26:51
42,294,193
0
0
null
null
null
null
UTF-8
Python
false
false
328
py
# coding: utf-8 from flask import Flask app = Flask(__name__) @app.route('/') def index(): return 'index' @app.route('/<message>/') def echo(message): return 'echo %s' % message @app.route('/exception/') def exception(): raise if __name__ == '__main__': app.run(host='0.0.0.0', port=5000, debu...
[ "tonicbupt@gmail.com" ]
tonicbupt@gmail.com
8530257718c62fa6385906586fb1c0f44e0424f5
669a292ef23e777a9a7e22d53e5ad309261b5a92
/gestao/urls.py
0e8b021f7d4bdf6259e8a9a93152a0eeddc847a9
[]
no_license
Elicarlos/sistema_gestao
d2443f2f74a925ceadbeddcacdb479cf9e9f9e02
3f3daf9bc04fe56ef0ad2745c8164dcf42ff1965
refs/heads/master
2022-05-03T04:19:32.802534
2019-11-02T06:45:09
2019-11-02T06:45:09
216,487,710
0
0
null
2022-04-22T22:33:09
2019-10-21T05:51:43
Python
UTF-8
Python
false
false
922
py
"""gestao URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.2/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-based ...
[ "elicarlosantos_@hotmail.com" ]
elicarlosantos_@hotmail.com
10aff3bb1a50750dc2c4e4b71690cde502e92ee6
392b6c727d91eb219b828a239f05d181c2be0724
/tests/transactional_transport/test_reliability_transport.py
d0d8a9b8a372a49490e8d98b0d3329af80107675
[ "MIT" ]
permissive
rizplate/lightbus
ace3e365b1efd0107fb80fa616dccb2d99b24732
1e5977146ff29a4fe46533767bd7f3ed24456fe4
refs/heads/master
2020-03-27T02:28:17.817686
2018-08-21T11:32:47
2018-08-21T11:32:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,463
py
import asyncio import logging import pytest from lightbus.transports.transactional import lightbus_set_database pytestmark = pytest.mark.reliability @pytest.mark.asyncio async def test_multiple_connections( transactional_bus, # Ensure migrations get run transactional_bus_factory, pg_kwargs, test_...
[ "adam@adamcharnock.com" ]
adam@adamcharnock.com
a83f5e2e92491549301a1d640b46d667821eb959
9743d5fd24822f79c156ad112229e25adb9ed6f6
/xai/brain/wordbase/otherforms/_slivering.py
10f98ea87ed899be8d0cb2c48701c6c71ab9d4dc
[ "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
226
py
#calss header class _SLIVERING(): def __init__(self,): self.name = "SLIVERING" self.definitions = sliver self.parents = [] self.childen = [] self.properties = [] self.jsondata = {} self.basic = ['sliver']
[ "xingwang1991@gmail.com" ]
xingwang1991@gmail.com
ceadcf7c00e2c85f48f2b887832679d7ae669570
f07900334326d809a80f3619197769ea63b84c17
/Python-Advanced/01-Lists-as-Stacks-and-Queues-Lab/02-Matching-Brackets.py
8fb9acf4d811f28a6a19ee3f004b09e7a814a29c
[]
no_license
SJeliazkova/SoftUni
394a0da0041bcf2d2be6c5ac18264d52df0f8ad1
5f2c7a9641495e75297d642346dd881de6bfc424
refs/heads/main
2023-02-27T19:11:35.637028
2021-02-06T18:55:58
2021-02-06T18:55:58
332,763,499
0
0
null
null
null
null
UTF-8
Python
false
false
206
py
data = input() s = [] for i in range(len(data)): current_char = data[i] if current_char == '(': s.append(i) elif current_char == ')': j = s.pop() print(data[j:i + 1])
[ "77019056+SJeliazkova@users.noreply.github.com" ]
77019056+SJeliazkova@users.noreply.github.com
536bcd74b731049570a0d52b83cab812979002c4
f0d713996eb095bcdc701f3fab0a8110b8541cbb
/LyzKTyYdKF4oDf5bG_10.py
b0b42d28ccf7d2fa4b8940f6900526c830bb7542
[]
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
1,172
py
""" Write a **recursive** function that will return the longest word in a sentence. In cases where more than one word is found, return the first one. ### Examples find_longest("I will and ever will be gratefully and perpetually loving you Tesh!") ➞ "perpetually" find_longest("A thing of beauty is a jo...
[ "daniel.reich@danielreichs-MacBook-Pro.local" ]
daniel.reich@danielreichs-MacBook-Pro.local
928112b4e3c624083bb17e1c25fdaf031f635e3a
f0b5917fe0cb6c263e892d2dda6a541094123a16
/grammar-generator/Content/TemplateResolver.py
097840107dfbd3a4b39af57c5f1057f7c9cc46ce
[ "MIT" ]
permissive
afronski/grammar-generator
61a7de686ecc65dfa73f29a000bfed8b699de9ae
231bf88e28dd02b2cd2a79e0d42cb0613a90501a
refs/heads/master
2016-09-05T10:16:33.228488
2014-04-27T20:09:29
2014-04-27T20:09:29
null
0
0
null
null
null
null
UTF-8
Python
false
false
313
py
import string class TemplateResolver: def __init__(self, templateRepository, templateName): self.templateName = templateName self.templateRepository = templateRepository def fill(self, dictionaryData): return string.Template(self.templateRepository[self.templateName]).safe_substitute(dictionaryData)
[ "afronski@gmail.com" ]
afronski@gmail.com
89f65215bd5151e085b95ac31845fd2ca098737e
f58936d3d01b014131b9038616d6f3573dd94f44
/preprocessing_tools/corenlp/commons.py
f9d87829b2c51b1510daecbe4651cb00ece2b9c5
[]
no_license
niteshsurtani/Personal_Assistant
69f591d03200ad9f8e66533f6968c7fb2a1d8667
363a65b3e3438b5824d8abb6caee53a70eefa024
refs/heads/master
2022-11-20T00:13:09.289399
2017-10-13T17:32:00
2017-10-13T17:32:00
106,283,072
0
1
null
2020-07-23T18:18:29
2017-10-09T12:50:48
Python
UTF-8
Python
false
false
437
py
import re def coreNLPDataParser(corenlp_time): tokens = [] parse = [] lines = corenlp_time.split("\n") for line in lines: if "<parse>" in line: parse.append(line.strip()) else: tokens.append(line.rstrip()) return tokens, parse def removeSpecialCharacters(query): return ''.join(e for e i...
[ "nitesh.surtani0606@gmail.com" ]
nitesh.surtani0606@gmail.com
f29e0575f55c03dffb2507a1646dc1403bff109f
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03075/s795149061.py
d75a35b47b32a67ad693f078b64736073f4bb885
[]
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
246
py
import sys a = int(sys.stdin.readline()) b = int(sys.stdin.readline()) c = int(sys.stdin.readline()) d = int(sys.stdin.readline()) e = int(sys.stdin.readline()) k = int(sys.stdin.readline()) if e - a > k: print(":(") else: print("Yay!")
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
e4e6c81ac4d0e17d7d4581320566cdec53e100c9
56f64af82fdf0d7da8a036af269528a0be7f3084
/beachball-service/launch_server.py
e2d8941eabfe2e4cd0bfb484505e9f5f5fe9c3bf
[]
no_license
krischer/docker_beachball_service
b8544292cb49ac59954fe1117e828018c16af4c6
c84f910360e16ea6a786b6c9b5081e396840b6e3
refs/heads/master
2021-01-12T10:51:10.691344
2016-11-03T10:25:31
2016-11-03T10:25:31
72,733,890
3
0
null
null
null
null
UTF-8
Python
false
false
2,944
py
#!/usr/bin/env python # -*- coding: utf-8 -*- import argparse import io import flask from flask_cache import Cache import matplotlib.pyplot as plt from matplotlib.colors import hex2color from obspy.imaging.beachball import beach plt.switch_backend("agg") app = flask.Flask(__name__) cache = Cache(app, config={'CACHE...
[ "krischer@geophysik.uni-muenchen.de" ]
krischer@geophysik.uni-muenchen.de
d48cae880a25d6cac4dc67f75d908634ba025c1d
d8c105a11cc3cc58a8b5fecb9d819814730aa990
/tests/test_data_type_filtering.py
4d68168ada40f108da86006834e85683a0a12f1a
[ "BSD-3-Clause" ]
permissive
greenelab/mpmp
d0cd805884dd7a08239985839f328ef37dccc64b
d2b2860b4c84dd12916759549ee49c542956b790
refs/heads/master
2023-08-06T22:43:58.508727
2022-07-07T18:48:09
2022-07-07T18:48:09
317,636,076
3
4
BSD-3-Clause
2022-07-07T18:48:10
2020-12-01T18:45:36
Jupyter Notebook
UTF-8
Python
false
false
2,963
py
""" Test cases for data type filtering in tcga_utilities.py """ import pytest import numpy as np import pandas as pd import mpmp.config as cfg import mpmp.utilities.tcga_utilities as tu @pytest.fixture(scope='module') def expression_data(): """Load gene expression and sample info data from files""" expression...
[ "jjc2718@gmail.com" ]
jjc2718@gmail.com
36b121f33e18142bda11eeb528a58262d702fa09
b26c41926fa3a7c2c061132d80e91a2750f2f468
/spinoffs/inference_gym/inference_gym/tools/stan/logistic_regression.py
92e637b649624848e47501d02d9472e6cc8c2b97
[ "Apache-2.0" ]
permissive
tensorflow/probability
22e679a4a883e408f8ef237cda56e3e3dfa42b17
42a64ba0d9e0973b1707fcd9b8bd8d14b2d4e3e5
refs/heads/main
2023-09-04T02:06:08.174935
2023-08-31T20:30:00
2023-08-31T20:31:33
108,053,674
4,055
1,269
Apache-2.0
2023-09-13T21:49:49
2017-10-23T23:50:54
Jupyter Notebook
UTF-8
Python
false
false
4,071
py
# Copyright 2020 The TensorFlow Probability 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 o...
[ "gardener@tensorflow.org" ]
gardener@tensorflow.org
0ebb2e18b6b968ed0efbe7c3d973d2e06d8dce1b
48e70c0496453a5bb07d966ba15b5a7e8d0acf13
/High Performance/Threading/helloPythonWithThread.py
448223925daea0e111e87be344876902c92fb8eb
[]
no_license
RichardcLee/Py_Notes
52e27996bf6bb18f55334aa0ea6151baa0022d2b
4bd5ad589301c5697a216e86a1321d32bb0bddca
refs/heads/master
2021-01-05T06:20:59.336876
2020-04-14T10:58:10
2020-04-14T10:58:10
240,911,389
0
0
null
null
null
null
UTF-8
Python
false
false
636
py
from threading import Thread from time import sleep from os import getpid class CookBook(Thread): def __init__(self): Thread.__init__(self) self.message = 'Hello python cookbook!\n' def print_message(self): print(self.message) def run(self): print('Thread %s starting!\n' ...
[ "0yunhow@gmail.com" ]
0yunhow@gmail.com
4f878a8f78d08fc41757739ec42b909edcc55e5d
a94770c70704c22590c72d7a90f38e3a7d2e3e5c
/Algo/LeadToOffer/48_AddTwoNumber.py
d0e9e22755e868937e709325f8e18969aa105482
[]
no_license
lawy623/Algorithm_Interview_Prep
00d8a1c0ac1f47e149e95f8655d52be1efa67743
ca8b2662330776d14962532ed8994dfeedadef70
refs/heads/master
2023-03-22T16:19:12.382081
2023-03-21T02:42:05
2023-03-21T02:42:05
180,056,076
2
0
null
null
null
null
UTF-8
Python
false
false
351
py
class Solution(object): def add(self, a, b): """ :type a: int :type b: int :rtype: int """ while b > 0: sum_no_carry = a ^ b # actually not correct for python, use c++ instead carry = (a&b) << 1 a = sum_no_carry ...
[ "leoyluo@tencent.com" ]
leoyluo@tencent.com
f5b245ac4186227abed996bebf9ddfebe69efa92
d6f9ca1eff35358dde1a0ef0c553123d322d9c69
/amrlib/alignments/rbw_aligner/match_candidates.py
6264c91ffd444f2ab9c90e2eec7c36c98525953f
[ "MIT" ]
permissive
bzhao2718/amrlib
9b91997a98f19b0d800be13013926749bdce4cb7
cd37abc637c431e3c781f554e34fba3066f987ce
refs/heads/master
2023-03-08T13:43:28.480230
2021-02-17T16:54:45
2021-02-17T16:54:45
339,616,014
0
0
MIT
2021-02-17T04:59:44
2021-02-17T04:59:44
null
UTF-8
Python
false
false
3,281
py
from word2number import w2n # Convert months to numeric values # AMR graphs always use the integer value of the month, not the word month2num = {'january':'1', 'february':'2', 'march':'3', 'april':'4', 'may':'5', 'june':'6', 'july':'7', 'august':'8', 'september':'9', 'october':'10', 'november':'11', ...
[ "bjascob@msn.com" ]
bjascob@msn.com
310facfcc32cb96b8652ebbfdd50e9576cf275e7
846a7668ac964632bdb6db639ab381be11c13b77
/android/tools/test/connectivity/acts/tests/google/tel/lab/TelLabDataRoamingTest.py
59d0964ef54d4880584e7f4829bf6f6a32556719
[]
no_license
BPI-SINOVOIP/BPI-A64-Android8
f2900965e96fd6f2a28ced68af668a858b15ebe1
744c72c133b9bf5d2e9efe0ab33e01e6e51d5743
refs/heads/master
2023-05-21T08:02:23.364495
2020-07-15T11:27:51
2020-07-15T11:27:51
143,945,191
2
0
null
null
null
null
UTF-8
Python
false
false
12,044
py
#/usr/bin/env python3.4 # # Copyright 2017 - 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 # # ...
[ "mingxin.android@gmail.com" ]
mingxin.android@gmail.com
b89c425e46b4867577dd962ccbbe27e0b33b2808
da9c4a9a92d49d2fb2983a54e0f64c2a1ce8aa19
/lte/gateway/python/magma/pipelined/tests/test_check_quota.py
8f6292c34bc1d1829abd7037e19eb2f5f7f4bdb6
[ "BSD-3-Clause", "Apache-2.0" ]
permissive
rohan-prasad/magma
347c370347724488215a0783504788eac41d8ec7
2c1f36d2fd04eae90366cc8b314eaab656d7f8ad
refs/heads/master
2022-10-14T14:08:14.067593
2020-06-11T23:52:03
2020-06-11T23:54:27
271,671,835
0
0
NOASSERTION
2020-06-12T00:20:23
2020-06-12T00:17:39
null
UTF-8
Python
false
false
6,232
py
""" Copyright (c) 2019-present, Facebook, Inc. All rights reserved. This source code is licensed under the BSD-style license found in the LICENSE file in the root directory of this source tree. An additional grant of patent rights can be found in the PATENTS file in the same directory. """ import unittest import warn...
[ "facebook-github-bot@users.noreply.github.com" ]
facebook-github-bot@users.noreply.github.com
611bacec8ed2cb745eb63de1e81b1c0ce0403e55
f65be574caf751a50cca2dc61a035dad9829d27c
/algorithm/nothing/Analysis.py
9db543d4a3f14c3b6e98255349c89aca7fa4f4de
[]
no_license
Chen-Gu/slp
295810b597810f386c0d96038a5bae0d178c5ae0
db242fdc01f42a916a9c1c295548a03c94e56948
refs/heads/master
2021-08-28T11:37:52.906728
2021-08-11T15:00:25
2021-08-11T15:00:25
237,653,729
0
0
null
2020-02-01T17:49:44
2020-02-01T17:49:44
null
UTF-8
Python
false
false
735
py
from data.analysis import AnalyzerCommon algorithm_module = __import__(__package__, globals(), locals(), ['object']) class Analyzer(AnalyzerCommon): def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs) def results_header(self): d = self.common_results_header(algorithm_modul...
[ "MBradbury@users.noreply.github.com" ]
MBradbury@users.noreply.github.com
aa4dcde49632899503a4588d84ad5e789de9e04f
ba694353a3cb1cfd02a6773b40f693386d0dba39
/sdk/python/pulumi_google_native/binaryauthorization/v1/policy_iam_binding.py
137769bc7c941dd9519f93d2aedd185fc819529f
[ "BSD-3-Clause", "Apache-2.0" ]
permissive
pulumi/pulumi-google-native
cc57af8bd3d1d6b76f1f48333ed1f1b31d56f92b
124d255e5b7f5440d1ef63c9a71e4cc1d661cd10
refs/heads/master
2023-08-25T00:18:00.300230
2023-07-20T04:25:48
2023-07-20T04:25:48
323,680,373
69
16
Apache-2.0
2023-09-13T00:28:04
2020-12-22T16:39:01
Python
UTF-8
Python
false
false
11,993
py
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import copy import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _u...
[ "noreply@github.com" ]
pulumi.noreply@github.com
2af2cc669a929f8b614e920cb038b43c7dbe0b1e
797408b76a86a0db38479c6c0670114e3cd3532f
/tests/test_array.py
248447185ad35e4d4df77528086c76651871d86c
[ "BSD-3-Clause" ]
permissive
guyver2/picamera
2f9d364ce84a17fac6ea9adfe06c709c2b5bfca6
2a1ce13f88b226d75a604b6cb57fe6c8fcba4f59
refs/heads/master
2021-01-20T17:37:08.062725
2015-07-22T14:03:39
2015-07-22T14:03:39
39,509,187
1
0
null
2015-07-22T13:57:32
2015-07-22T13:57:32
null
UTF-8
Python
false
false
10,683
py
# vim: set et sw=4 sts=4 fileencoding=utf-8: # # Python camera library for the Rasperry-Pi camera module # Copyright (c) 2013-2015 Dave Jones <dave@waveform.org.uk> # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # ...
[ "dave@waveform.org.uk" ]
dave@waveform.org.uk
ce2c73495bec071ee0a60e5ddb1ecf86e92a0ce0
ce01aec82099388a15ea57b113b91127902fc349
/code/RPi/lockCheck.py
abb81aedecfbfe4b9a89afe1b58d8067981d94cb
[]
no_license
SeanDHammond99/SafeHome
8691746e56ee9023dcb2d9106cf97a7451dc6563
6b5898c1a0a30985601c007f3d5dcc68144bd0ca
refs/heads/master
2023-06-21T18:23:58.128664
2021-07-05T20:31:32
2021-07-05T20:31:32
383,247,297
0
0
null
null
null
null
UTF-8
Python
false
false
4,383
py
import requests import time import json import RPi.GPIO as GPIO GPIO.setmode(GPIO.BOARD) GPIO.setup(7,GPIO.OUT) p = GPIO.PWM(7,50) p.start(7.5) p.ChangeDutyCycle(0) sleepTime = 5 with open("lockname.txt") as f: lockKey = f.read() with open("lockstatus.txt") as f: lockStatus = f.read() print(lockKey)...
[ "unconfigured@null.spigotmc.org" ]
unconfigured@null.spigotmc.org
4e6162e5738bcb6910e2f2843f8749e4d29e92d4
9743d5fd24822f79c156ad112229e25adb9ed6f6
/xai/brain/wordbase/verbs/_rewrite.py
1d8389d9ce07e118e26d4cb426edb10b51ba8fdb
[ "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
405
py
#calss header class _REWRITE(): def __init__(self,): self.name = "REWRITE" self.definitions = [u'to write something such as a book or speech again, in order to improve it or change it because new information is available '] self.parents = [] self.childen = [] self.properties = [] self.jsondata = {} ...
[ "xingwang1991@gmail.com" ]
xingwang1991@gmail.com
15bf372f3fe35e2bb8e104af704e3afdf86b8a7e
f07a42f652f46106dee4749277d41c302e2b7406
/Data Set/bug-fixing-5/66c3e9bb9bb33e54d23ebbaa7e3d7db49003438c-<check_base_rule_args>-bug.py
7955c02f381791a8b48292d2d74a95c316f583e4
[]
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
7,028
py
def check_base_rule_args(self): ' Check base rule invalid args ' need_cfg = False find_flag = False self.cur_base_rule_cfg['base_rule_info'] = [] if self.acl_name: if (self.state == 'absent'): if (not self.rule_name): self.module.fail_json(msg='Error: Please input...
[ "dg1732004@smail.nju.edu.cn" ]
dg1732004@smail.nju.edu.cn
f3cd2057bbe36c1aa2246e13432a02f9c97d49c5
a5747577f1f4b38823f138ec0fbb34a0380cd673
/18/mc/ExoDiBosonResonances/EDBRTreeMaker/test/crab3_analysiscase2_off_3000.py
f4fd133f1496c8735935be2319680d7fae94f298
[]
no_license
xdlyu/fullRunII_ntuple
346fc1da4cec9da4c404aa1ec0bfdaece6df1526
aa00ca4ce15ae050c3096d7af779de44fc59141e
refs/heads/master
2020-08-03T07:52:29.544528
2020-01-22T14:18:12
2020-01-22T14:18:12
211,673,739
0
3
null
null
null
null
UTF-8
Python
false
false
2,173
py
from WMCore.Configuration import Configuration name = 'WWW' steam_dir = 'xulyu' config = Configuration() config.section_("General") config.General.requestName = 'case2_3000_off' config.General.transferLogs = True config.section_("JobType") config.JobType.pluginName = 'Analysis' config.JobType.inputFiles = ['Autumn...
[ "XXX@cern.ch" ]
XXX@cern.ch
052b1f013ce3252b3ae22ec5299dd19d0d3ff8d9
5c94794612147e29a9c6348a7cc046743efda7d1
/test/test_veteran_status_enum.py
ac5a2f40d965199d4aebb0f486020a10522e86b6
[]
no_license
dan-merge/merge-ats-python
9f328bd3aad0bf27554255a296fe9c15febccd9a
bcd628e462faac50ce43e6909413571b05898fa4
refs/heads/main
2023-04-11T06:03:34.868878
2021-04-21T23:55:29
2021-04-21T23:55:29
null
0
0
null
null
null
null
UTF-8
Python
false
false
826
py
""" Merge ATS API The unified API for building rich integrations with multiple Applicant Tracking System platforms. # noqa: E501 The version of the OpenAPI document: 1.0 Contact: hello@merge.dev Generated by: https://openapi-generator.tech """ import sys import unittest import MergeATSClient f...
[ "dan@merge.dev" ]
dan@merge.dev
4103625edaa1868cef84a052c4a1d703393c69c7
07ff45cd54deae354a727c6bf3e009353d5d1eca
/permutation/sol.py
a7bd3ad46858b3d6d1820ea450d424d478235d5b
[]
no_license
onlybeijing6/CodeSprint2012
0589cac4eb027b1a58355708f8b08b0a75241e25
661df79cd098237ad1b0cab432b3dee65c82d90b
refs/heads/master
2021-01-15T21:07:09.610696
2012-01-09T19:10:45
2012-01-09T19:10:45
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,214
py
def get_input(input_): n, v = None, [] for i, line in enumerate(input_): if i > 0: row = tuple(int(i) for i in line.strip().split()) assert len(row) == n v.append(row) else: n = int(line) assert n <= 50 assert len(v) == n return n, tuple(v) def chunk(li, n): for i, e i...
[ "cbautista2010@gmail.com" ]
cbautista2010@gmail.com
e72896e09c1513e0b29dcd176dcef1bff6a3f9e7
2e682fd72e3feaa70e3f7bf2a3b83c50d783ec02
/ACL_PyTorch/contrib/cv/super_resolution/SRCNN/test/parse.py
b9c74f41d7848e1250356f14472b237a18bb3489
[ "Apache-2.0", "BSD-2-Clause", "MIT", "BSD-3-Clause", "LicenseRef-scancode-generic-cla", "LicenseRef-scancode-unknown-license-reference", "GPL-1.0-or-later" ]
permissive
Ascend/ModelZoo-PyTorch
4c89414b9e2582cef9926d4670108a090c839d2d
92acc188d3a0f634de58463b6676e70df83ef808
refs/heads/master
2023-07-19T12:40:00.512853
2023-07-17T02:48:18
2023-07-17T02:48:18
483,502,469
23
6
Apache-2.0
2022-10-15T09:29:12
2022-04-20T04:11:18
Python
UTF-8
Python
false
false
1,417
py
# Copyright 2021 Huawei Technologies Co., Ltd # # 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 ...
[ "wangjiangben@huawei.com" ]
wangjiangben@huawei.com
b2f78d07cb0d7845c3121b8ecfc52b95498d5a88
7805c8332545109bf5f1cefed71d50488b627d89
/core/engine/distributed_engine.py
21410df2ac8bddc5414dada0bf3d44d9cf6651d9
[ "Apache-2.0" ]
permissive
dddlli/DynamicActivation
5ff1f9ec20759a00d03eb1abcf36b5af166e756b
7dce57cdf018a8b2acdb1d7291dfbc33be6dde78
refs/heads/master
2023-04-11T09:35:37.553043
2021-05-09T10:16:00
2021-05-09T10:16:00
361,779,401
1
0
Apache-2.0
2021-04-26T14:25:20
2021-04-26T14:25:19
null
UTF-8
Python
false
false
4,861
py
import os import torch import torch.backends.cudnn as cudnn import torch.distributed as dist import torch.nn as nn import torch.nn.parallel import torch.optim import torch.utils.data import torch.utils.data.distributed # from core.datasets.classify_dataset import classify_dataset_sample from core.engine.base import va...
[ "2684109034@qq.com" ]
2684109034@qq.com