blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 288 | content_id stringlengths 40 40 | detected_licenses listlengths 0 112 | license_type stringclasses 2
values | repo_name stringlengths 5 115 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 684
values | visit_date timestamp[us]date 2015-08-06 10:31:46 2023-09-06 10:44:38 | revision_date timestamp[us]date 1970-01-01 02:38:32 2037-05-03 13:00:00 | committer_date timestamp[us]date 1970-01-01 02:38:32 2023-09-06 01:08:06 | github_id int64 4.92k 681M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 22
values | gha_event_created_at timestamp[us]date 2012-06-04 01:52:49 2023-09-14 21:59:50 ⌀ | gha_created_at timestamp[us]date 2008-05-22 07:58:19 2023-08-21 12:35:19 ⌀ | gha_language stringclasses 147
values | src_encoding stringclasses 25
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 128 12.7k | extension stringclasses 142
values | content stringlengths 128 8.19k | authors listlengths 1 1 | author_id stringlengths 1 132 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
1d1b78db722c6280f4266071cd6bb65075151339 | 0a0b75df10cb4643a2a9124750239f85bb0abadf | /training/scripts/models/bart_deep.py | 050eda1736d01687ef1a60a5c054e2aaa2d446b3 | [
"MIT"
] | permissive | baotg080599/passage-ordering | 1d8eaac939c08f21c398425af819f49544af809d | f63b993dfd5b7e6475e7fb8950c23c3f22951979 | refs/heads/main | 2023-09-05T21:04:05.172285 | 2021-11-22T11:18:26 | 2021-11-22T11:18:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,137 | py | from dataclasses import dataclass
from typing import Dict, List, Optional, Tuple
import numpy as np
import torch
import torch.nn.functional as F
from torch import Tensor, nn
from torch.nn import CrossEntropyLoss
from transformers import PretrainedBartModel, BartModel, BartConfig
from transformers.modeling_outputs imp... | [
"remi.calizzano@gmail.com"
] | remi.calizzano@gmail.com |
066b7d778529e2823f3f9a4ac9a20dd06bcb06dd | f9d564f1aa83eca45872dab7fbaa26dd48210d08 | /huaweicloud-sdk-cc/huaweicloudsdkcc/v3/model/list_network_instances_response.py | f397c0080037b7fef6d610b9ad0c9ca72b2d1ed3 | [
"Apache-2.0"
] | permissive | huaweicloud/huaweicloud-sdk-python-v3 | cde6d849ce5b1de05ac5ebfd6153f27803837d84 | f69344c1dadb79067746ddf9bfde4bddc18d5ecf | refs/heads/master | 2023-09-01T19:29:43.013318 | 2023-08-31T08:28:59 | 2023-08-31T08:28:59 | 262,207,814 | 103 | 44 | NOASSERTION | 2023-06-22T14:50:48 | 2020-05-08T02:28:43 | Python | UTF-8 | Python | false | false | 5,358 | py | # coding: utf-8
import six
from huaweicloudsdkcore.sdk_response import SdkResponse
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
class ListNetworkInstancesResponse(SdkResponse):
"""
Attributes:
openapi_types (dict): The key is attribute name
an... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
3eb6721812ac57c6b30133edda84905a3376aefd | 7713cabbddd22eb4ccfdb757c3820def721e3c07 | /runners/summarize_GO_terms_md_fix.py | 18fc108a6333446c13fc6c5519d52106c411890a | [] | no_license | hag007/nn_sb | bb652ba3adee503d7ecf272ced565165c5d9bea4 | 3b491efb648006b03ae04f603eb8c972e141271d | refs/heads/master | 2021-06-20T15:31:09.066580 | 2021-03-03T08:39:22 | 2021-03-03T08:39:22 | 168,480,686 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,433 | py | import sys
sys.path.insert(0, '../')
import utils.add_GO_terms_metadata_fix
import pandas as pd
import numpy as np
import os
import constants
datasets=["TNFa_2","HC12", "SHERA", "ROR_1", "SHEZH_1", "ERS_1", "IEM"] # , "IEM" , "IES", "ROR_2", "SHEZH_1", "SHEZH_2", "ERS_1", "ERS_2"] # "SOC"
algos=["jactivemodules_greedy... | [
"hagai.levi.007@gmail.com"
] | hagai.levi.007@gmail.com |
526e44f538e69e097d344dc18b3eeee78a83173b | 53ab530408135b31dce247ec76d5c70d143cae69 | /commands/deviot_select_boards.py | 50017008c4269806715008787cf51e502d71a301 | [
"Apache-2.0"
] | permissive | hoat23/Deviot | d3ede1b5884cb421fa17832cc7fe56dcc598ce44 | 77a9e08059f9226ebf23a216b00c6ebb5b1cd054 | refs/heads/master | 2021-07-22T20:25:07.840839 | 2017-10-07T19:53:21 | 2017-10-07T19:53:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 188 | py | from sublime_plugin import WindowCommand
from ..libraries.quick_menu import QuickMenu
class DeviotSelectBoardsCommand(WindowCommand):
def run(self):
QuickMenu().quick_boards() | [
"guillermoepd@hotmail.com"
] | guillermoepd@hotmail.com |
9d1128d2601b79a37527ce71cc07fb05beb0a1bb | 9977e4a5cb94760b380bd0de0faab9c04a3d94db | /mtw/tests/test_mtw.py | 2c5da73649f68b35a823a4fe09b672881dff4921 | [] | no_license | vishalbelsare/mtw | 82e76826f1382b9602eadad835a9b6355923505c | e15e918774bb5b1e020c5b87572004a552eb571e | refs/heads/master | 2022-11-28T18:57:55.045921 | 2019-08-07T21:55:16 | 2019-08-07T21:55:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,818 | py | from mtw.examples_utils import generate_dirac_images, gaussian_design
import numpy as np
from numpy.testing import assert_allclose
from mtw import MTW, utils
import pytest
from itertools import product
@pytest.mark.parametrize("positive, alpha, epsilon",
product([False, True], [10., 0.], [5.,... | [
"hicham.janati@inria.fr"
] | hicham.janati@inria.fr |
5e5412e83e136d9071118c07c8745c96f9e52b4e | 1cbcf8660d3ea833b0a9aa3d36fe07839bc5cfc5 | /apps/sources/apis/partner.py | 9f64a801ea68a1ca0dbb409fc900e36a9156f8e1 | [] | no_license | zhanghe06/migration_project | f77776969907740494281ac6d7485f35d4765115 | 0264b292873b211bfeca0d645cc41abc9efe883f | refs/heads/master | 2022-12-12T10:55:43.475939 | 2019-09-29T09:19:13 | 2019-09-29T09:19:13 | 185,584,884 | 0 | 1 | null | 2022-12-08T05:04:58 | 2019-05-08T10:31:57 | Python | UTF-8 | Python | false | false | 2,876 | py | #!/usr/bin/env python
# encoding: utf-8
"""
@author: zhanghe
@software: PyCharm
@file: partner.py
@time: 2019-04-26 00:25
"""
from libs.db_orm_id import DbInstance
from apps.databases.db_source import source_db
from apps.models.db_source.aa_partner import AAPartner
db_instance = DbInstance(source_db)
def get_part... | [
"zhang_he06@163.com"
] | zhang_he06@163.com |
dd91440cc5a2451ef99409d8c36c99b7bcea8afa | 583b97d48b06488ee6be4555a989816d06012915 | /001-025/euler005.py | aaf8effa3ed818182ca9945a5256aeed77de6fd6 | [] | no_license | mn113/projecteuler-solutions | fa362869a5f32399a63cc8aac382dcd45f8579f8 | 5710dc2e31069530ecf6e6a885eb8e5d7298ce7c | refs/heads/master | 2021-01-12T12:58:45.101621 | 2016-11-21T13:28:19 | 2016-11-21T13:28:19 | 69,765,688 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 138 | py |
#2*2*5
19
#2*3*3
17
#2*2*2*2
#3*5
#2*7
13
#2*2*3
11
#2*5
3*3
2*2*2
7
#2*3
5
#2*2
#3
2
n = 2 * 5 * 7 * 8 * 9 * 11 * 13 * 17 * 19
print n | [
"recyclebing+github@gmail.com"
] | recyclebing+github@gmail.com |
8b4e6d16c1ada64e12ecb818a7dde3446f307c8d | 9b722ca41671eb2cea19bac5126d0920639261bd | /.history/app_20201124122040.py | e0d213e84be4bf15ad9633bac70f373cd68ab848 | [] | no_license | thawalk/db_flask_server | 7928fd481f99d30bdccc60d97f02db78324cfdbe | cd55f1c9bf84c734457ee02d9f64a6833e295fad | refs/heads/master | 2023-01-25T02:40:19.097457 | 2020-12-06T07:45:50 | 2020-12-06T07:45:50 | 314,229,480 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,685 | py | import json
import pymongo
from flask import Flask, jsonify, url_for, request, redirect,Response,Request
import pymongo
from bson.json_util import dumps
import mysql.connector
from werkzeug.serving import run_simple
import os
from dotenv import load_dotenv
import datetime
import time
app = Flask(__name__)
test_collec... | [
"akmal_hakim_teo@hotmail.com"
] | akmal_hakim_teo@hotmail.com |
77cc50dfe2ee2ed1ab0d4282fe3e9480e3c36edf | 38efe804f2a070737984b5f4306ef9f09cbdf9c2 | /Class_TRY.py | 9ea7d3d8d49147cf10f8352fd15fcfc4ac48f317 | [] | no_license | krm9c/HierarchicalDimensionReduction | 0bd59248035159c3d9fb8c9c407a3cecba7635d8 | 6af1455be32abf2e06667e7c264f52c76329ffee | refs/heads/master | 2020-05-27T21:10:03.027472 | 2018-02-04T22:49:25 | 2018-02-04T22:49:25 | 83,605,507 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,772 | py | import operator
def bayes_classifier(x_vec, kdes):
"""
Classifies an input sample into class w_j determined by
maximizing the class conditional probability for p(x|w_j).
Keyword arguments:
x_vec: A dx1 dimensional numpy array representing the sample.
kdes: List of the gausssian_kde (ker... | [
"krm9c@mst.edu"
] | krm9c@mst.edu |
ddd59fc3fb7e31a5d22e1450fb1d300170e7d6a7 | 06c54acbc3d93601182170eef1c8f69396644003 | /glTools-master/utils/__init__.py | 7afbd86083045caae0ef385258712015158640cb | [] | no_license | moChen0607/pubTool | bfb05b7ba763c325b871a60d1a690bd67d6ad888 | 16337badb6d1b4266f31008ceb17cfd70fec3623 | refs/heads/master | 2021-05-31T17:59:06.840382 | 2016-06-06T07:11:42 | 2016-06-06T07:11:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 410 | py | import attach
import attribute
import base
import blendShape
import colorize
#import component
import constraint
import curve
import curveConstraint
import deformer
import geometry
import ik
import joint
import mathUtils
import matrix
import mesh
import nDynamics
import resolution
import skinCluster
import string
impor... | [
"auqeyjf@163.com"
] | auqeyjf@163.com |
95f1e1b3ca67f84b3c35eb7a93102c9300ec26d6 | 78d35bb7876a3460d4398e1cb3554b06e36c720a | /sdk/monitor/azure-mgmt-monitor/azure/mgmt/monitor/v2017_04_01/aio/_monitor_management_client.py | b23f3b73ad1abc333d0c31e4bac5ab3728ba94c0 | [
"MIT",
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later"
] | permissive | catchsrinivas/azure-sdk-for-python | e35f59b60318a31b3c940a7a3a07b61b28118aa5 | 596227a7738a5342274486e30489239d539b11d1 | refs/heads/main | 2023-08-27T09:08:07.986249 | 2021-11-11T11:13:35 | 2021-11-11T11:13:35 | 427,045,896 | 0 | 0 | MIT | 2021-11-11T15:14:31 | 2021-11-11T15:14:31 | null | UTF-8 | Python | false | false | 4,057 | 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"
] | catchsrinivas.noreply@github.com |
269455119dd4bc1a0334425f96dda18c6dcfed4b | 38b6a57fee837e2e502c7d6bc2f708aa1cd772a8 | /distribution/views.py | fb49237aa520e0e7b24a8c63b6c9354602d081ed | [] | no_license | ArtusU/ecf_store | 54c5479efa5fe4c85ae3084b74ce7fcceaf94c89 | c94edea13cf2515426890362df4937a1aebbaea9 | refs/heads/master | 2023-05-03T13:15:43.034031 | 2021-05-06T13:22:54 | 2021-05-06T13:22:54 | 354,247,685 | 0 | 0 | null | 2021-04-22T14:48:14 | 2021-04-03T09:14:04 | CSS | UTF-8 | Python | false | false | 3,666 | py | from django.db.models import Q
from django.contrib.auth.mixins import LoginRequiredMixin
from django.shortcuts import get_object_or_404, redirect, render
from django.views import generic
from cart import models
from distribution.models import OrderDistribution
from cart.models import Order, Payment
from distribution.... | [
"artusrock@hotmail.com"
] | artusrock@hotmail.com |
a6016c17a3c2a93cdcb03fad7d92f076fac155c0 | 18ed8b732dda8c4c0bd2b652f9cf3b06e956262d | /setup.py | 814d98b17e5a06803ad1fd320517c9c6783531ec | [
"MIT"
] | permissive | skurhse/aturan-calendar-bot | 1466fbafffbf56a4afbb65d69dd93a335e050c64 | 4854aa4af17da16aec8ac4cc11de09bffe2e7238 | refs/heads/master | 2023-03-10T17:11:01.067909 | 2021-02-23T21:54:41 | 2021-02-23T21:54:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,816 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# Note: To use the 'upload' functionality of this file, you must:
# $ pip install twine
import os
import sys
from shutil import rmtree
from os.path import basename
from os.path import splitext
from glob import glob
from setuptools import find_packages, setup, Command
f... | [
"sauerc@gmail.com"
] | sauerc@gmail.com |
ad023965a7185e82612c4adfc51e391b7f1009e5 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2209/61406/285378.py | 501a7499b1c07cf3fa50b5fc3ddf92d278d98f0b | [] | 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 | 972 | py | L = int(input())
source = input()
arr = ""
for i in range(0,len(source)):
arr = arr+"1"
lists = []
listlen = []
for a in range(0,L):
word = input()
lists.append(word)
listlen.append(len(word))
count = 0
loopnum = 0
flag = False
while not flag:
length = max(listlen)
index = listlen.index(length)
... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
4d72a69120786117811fc686e577de399d82656b | 5e9bda2d6082f62d889df1c28973436af905faaa | /demo/TreeCtrl.py | 4b7ceb545a762c70b8220d050957654c31336b89 | [] | no_license | FXCMAPI/Phoenix | cab74db4e8f141f4d27b4b2e3d5bab06994b2e52 | 040763282f04a5b98f89c054b254993d1a8ca618 | refs/heads/master | 2020-03-16T15:42:10.660845 | 2018-05-09T01:41:51 | 2018-05-09T01:45:33 | 132,755,174 | 1 | 1 | null | 2018-05-09T12:41:54 | 2018-05-09T12:41:53 | null | UTF-8 | Python | false | false | 7,761 | py | #!/usr/bin/env python
import string
import wx
import images
#---------------------------------------------------------------------------
class MyTreeCtrl(wx.TreeCtrl):
def __init__(self, parent, id, pos, size, style, log):
wx.TreeCtrl.__init__(self, parent, id, pos, size, style)
self.log = log... | [
"robin@alldunn.com"
] | robin@alldunn.com |
474b2f8538426e83b74762ef7e0925a0b3bb3d23 | bcf6a8d1282dd95191501840b34609a932d83933 | /seahobo/settings/base.py | d56000c6691235aa086cfe977f9f8958785a8b65 | [] | no_license | reinbach/seahobo | db08bcb7710669e6f9ba183c71a979386ec40ff1 | f48af6e06f7282a27e6d82816927623cb3671f13 | refs/heads/master | 2021-01-23T08:10:37.204533 | 2013-05-08T22:22:28 | 2013-05-08T22:22:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,824 | py | import os
SETTINGS_DIR = os.path.dirname(__file__)
PROJECT_ROOT = os.path.abspath(os.path.dirname(SETTINGS_DIR))
DEBUG = False
TEMPLATE_DEBUG = DEBUG
ADMINS = (
('greg', 'greg@reinbach.com'),
)
MANAGERS = ADMINS
TIME_ZONE = None
LANGUAGE_CODE = 'en-us'
SITE_ID = 1
USE_I18N = True
MEDIA_ROOT = os.path.realpat... | [
"greg@reinbach.com"
] | greg@reinbach.com |
7fd39a7a4806f86d3a483d3dda4979991185941f | f9d564f1aa83eca45872dab7fbaa26dd48210d08 | /huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/model/batch_offline_request.py | 76e5094518bbb31a851323267854e8a92820c49a | [
"Apache-2.0"
] | permissive | huaweicloud/huaweicloud-sdk-python-v3 | cde6d849ce5b1de05ac5ebfd6153f27803837d84 | f69344c1dadb79067746ddf9bfde4bddc18d5ecf | refs/heads/master | 2023-09-01T19:29:43.013318 | 2023-08-31T08:28:59 | 2023-08-31T08:28:59 | 262,207,814 | 103 | 44 | NOASSERTION | 2023-06-22T14:50:48 | 2020-05-08T02:28:43 | Python | UTF-8 | Python | false | false | 3,935 | py | # coding: utf-8
import six
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
class BatchOfflineRequest:
"""
Attributes:
openapi_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key is attribut... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
9dfeb051329b90fc5c66cb25e7675547037df129 | 68002ae9f124d808395b51944b616da298068b62 | /Data_Visualization/Plot/Matplotlib/FT748/Ch15/Ch15_5_2.py | 7481bd228f0756c2b17fb3827bae1b00491fa83c | [] | no_license | supergravity/PythonLearning- | b4dd51205470f27e1ba92ec19b1fa1c967101545 | eb53b048650a7272819b45943d3dd40fa91d2297 | refs/heads/master | 2023-01-04T23:15:59.945385 | 2020-11-06T13:35:15 | 2020-11-06T13:35:15 | 82,797,936 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,062 | py | from bokeh.plotting import figure, output_file, show
from bokeh.plotting import ColumnDataSource
from bokeh.models import HoverTool
import pandas as pd
df = pd.read_csv("Kobe_stats.csv")
data = pd.DataFrame()
data["Season"] = pd.to_datetime(df["Season"])
data["PTS"] = df["PTS"]
data["AST"] = df["AST"]
data["... | [
"liamlin@Liams-MacBook-Pro.local"
] | liamlin@Liams-MacBook-Pro.local |
438e6457e9264a3214f630c25db9dee214b11e99 | ef1458fae5fbd6b7a9281ccd4d9bc8289f3dd38b | /examples/constraint1_example01.py | 45326b8560ad0759e8d38c85a0a6a730cc4e2cf9 | [
"BSD-3-Clause"
] | permissive | vt100/mystic | a42910537c3de90d1c2a5637bad5d866308e8863 | 7589eee4b9a7cb6056114ee6770579d173d9007b | refs/heads/master | 2021-01-17T22:28:57.743493 | 2015-07-17T15:25:35 | 2015-07-17T15:25:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,202 | py | #!/usr/bin/env python
#
# Author: Mike McKerns (mmckerns @caltech and @uqfoundation)
# Copyright (c) 1997-2015 California Institute of Technology.
# License: 3-clause BSD. The full license text is available at:
# - http://trac.mystic.cacr.caltech.edu/project/mystic/browser/mystic/LICENSE
"""
Example:
- Minimize R... | [
"mmckerns@968178ea-60bd-409e-af13-df8a517b6005"
] | mmckerns@968178ea-60bd-409e-af13-df8a517b6005 |
33a7638b67755cc06542e66c3b6fd04fbf74fc3a | 163bad17c2ba0aeeb05e29d1a7f870e675ee28eb | /hikyuu/flat/SpotList.py | 8475b0629bab4fcfac47dba505166eb096cdb890 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | fasiondog/hikyuu | 8b7bc4fd99ff915c621586a480c3663ef3fae464 | 86b0fa5b0e847d9a04905bca93660a7a33fc9fc2 | refs/heads/master | 2023-09-03T15:04:33.983389 | 2023-09-03T11:17:46 | 2023-09-03T11:17:46 | 5,103,141 | 1,884 | 547 | MIT | 2023-09-06T16:53:51 | 2012-07-18T23:21:42 | C++ | UTF-8 | Python | false | false | 1,643 | py | # automatically generated by the FlatBuffers compiler, do not modify
# namespace: flat
import flatbuffers
from flatbuffers.compat import import_numpy
np = import_numpy()
class SpotList(object):
__slots__ = ['_tab']
@classmethod
def GetRootAsSpotList(cls, buf, offset):
n = flatbuffers.encode.Get(... | [
"fasiondog@163.com"
] | fasiondog@163.com |
9b74a72f158fbbc4a9fb981b3cfdabe4c52c5899 | 5407e718bf2e688d1335fe0cafaa8abd33e628ff | /gameserver/Daemonize.py | 09ced687ebf763d96271b5808656c21e328de9d3 | [
"MIT"
] | permissive | cash2one/assignment1 | 0bd6582963f6a6a843c270cb2235c624ae5beccb | 56923b4afa8a10e61b339fbea5cfb49279023f81 | refs/heads/master | 2021-01-12T16:51:09.894575 | 2015-01-25T18:33:40 | 2015-01-25T18:33:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 388 | py | # Copyright (c) 2015 SpinPunch. All rights reserved.
# Use of this source code is governed by an MIT-style license that can be
# found in the LICENSE file.
import os
import sys
def daemonize():
if os.fork() > 0:
sys.exit(0)
os.setsid()
fd = os.open('/dev/null', os.O_RDWR)
os.dup2(fd, 0)
os... | [
"dmaas@spinpunch.com"
] | dmaas@spinpunch.com |
4c0505b29e8b011cc717c2e7f2f023020058346f | 9f7c9201b86128d2459e463d3bb1c60b7e434a78 | /deep_cloud/layers/query.py | c06a9fa3ad89f4e4a6e148c1ce09d1a2e2b60750 | [] | no_license | jackd/deep-cloud | b4a171a290c22a113b8a6dd3a49c875afae84b93 | 9adb25bfcdfd1f2faf3820378cc27a952aa90f9d | refs/heads/master | 2020-07-05T19:32:38.824051 | 2019-10-25T04:04:43 | 2019-10-25T04:04:43 | 202,748,871 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,642 | py | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import tensorflow as tf
from deep_cloud.ops import query as qops
from more_keras.ragged.layers import ragged_lambda
def _query_pairs(args, **kwargs):
if isinstance(args, tf.Tensor):
args = args,
... | [
"thedomjack@gmail.com"
] | thedomjack@gmail.com |
784a47efa22789630f5e2e48fba8c8ca0a920202 | f4c33584169ac671215de4797ee9849ce0583e2e | /kzcapi/urls.py | dedeb5111fa9cc57e022a8fcbd4fe16a77425302 | [] | no_license | baliguan163/FlaskDemo | c479c7ae262a059b21ffb4a7ef65e7d8f2547563 | 28b096b9f99de8827d084325e539981c55abdf2a | refs/heads/master | 2020-03-06T22:33:52.744604 | 2018-03-28T08:24:54 | 2018-03-28T08:24:54 | 127,106,417 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,578 | py | from django.conf.urls import url
from kzcapi import BatchCode, PlasticBox, BatteryShell
from . import views
urlpatterns = [
# url(r'^ccddata/$', views.ccddata, name='ccddata'),
#
# url(r'^datasave/$', views.datasave, name='datasave'),
#--------------------------------------------------------------
... | [
"baliguan163@163.com"
] | baliguan163@163.com |
c8e5923b6ceab95b8e0ac6eb08509d7e469242b3 | 85ef27cfe69bf8f4c65ecf4a382742984d91ae12 | /Python/Strings/split_method.py | dfdd56fefbaadfc5324394a195e28ad9ef1455d5 | [] | no_license | SenthilKumar009/100DaysOfCode-DataScience | 7fc0d404e486b2aa1da3a242def0a307fec50f47 | dd2d44363960c9078b73956b6587961de0185f16 | refs/heads/master | 2023-07-17T04:38:21.404964 | 2021-08-27T12:56:55 | 2021-08-27T12:56:55 | 191,664,483 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 725 | py | def mysplit(strng):
#newlst = [strng.split(' ')]
newlst = []
start = 0
if strng.isspace():
return newlst
for i in range(len(strng)):
if strng[i] == ' ':
space = i
word = strng[start:space]
newlst.append(word)
start = space + 1
... | [
"senthilkumark.nitt@gmail.com"
] | senthilkumark.nitt@gmail.com |
0a13e95361e35e07d185a75ce6a388ab4010df83 | 7125dc225b692bfe961b5cb431397341abb3f644 | /biosteam/units/_molecular_sieve.py | 3143c3f9b329e8572e67008bd7470330d335445a | [
"LicenseRef-scancode-unknown-license-reference",
"MIT",
"NCSA"
] | permissive | yonghe1979/biosteam | 9048e67055ea18201f36d0aef16171a2ba5b8661 | 874efdc4ff978a3943d7348ffbce5a8cb2612a88 | refs/heads/master | 2023-02-27T22:58:22.370513 | 2021-01-25T00:46:03 | 2021-01-25T00:46:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,847 | py | # -*- coding: utf-8 -*-
# BioSTEAM: The Biorefinery Simulation and Techno-Economic Analysis Modules
# Copyright (C) 2020, Yoel Cortes-Pena <yoelcortes@gmail.com>
#
# This module is under the UIUC open-source license. See
# github.com/BioSTEAMDevelopmentGroup/biosteam/blob/master/LICENSE.txt
# for license details.
"""... | [
"yoelcortes@gmail.com"
] | yoelcortes@gmail.com |
a167cebf1b04559f38f41fd33baf774706e59343 | d3efc82dfa61fb82e47c82d52c838b38b076084c | /Autocase_Result/TSZLMM_bak/YW_GPMM_SHXJ_072.py | 8eec5de875d918556a8eefba769f9d04c84c524d | [] | no_license | nantongzyg/xtp_test | 58ce9f328f62a3ea5904e6ed907a169ef2df9258 | ca9ab5cee03d7a2f457a95fb0f4762013caa5f9f | refs/heads/master | 2022-11-30T08:57:45.345460 | 2020-07-30T01:43:30 | 2020-07-30T01:43:30 | 280,388,441 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,293 | py | #!/usr/bin/python
# -*- encoding: utf-8 -*-
import sys
sys.path.append("/home/yhl2/workspace/xtp_test/xtp/api")
from xtp_test_case import *
sys.path.append("/home/yhl2/workspace/xtp_test/service")
from ServiceConfig import *
from mainService import *
from QueryStkPriceQty import *
from log import *
sys.path.append("/h... | [
"418033945@qq.com"
] | 418033945@qq.com |
933e3e43a3667fa5ad8c129dcc364f00955fe9ed | 4273f162abb12ef1939271c2aabee9547ac6afee | /studio_usd_pipe/gui/asset_push.py | 8cc880afc32369c14be45dd8cb8abfcc992d7520 | [] | no_license | xiyuhao/subins_tutorials | 2717c47aac0adde099432e5dfd231606bf45a266 | acbe4fe16483397e9b0f8e240ca23bdca652b92d | refs/heads/master | 2023-07-28T13:42:41.445399 | 2021-09-12T11:02:37 | 2021-09-12T11:02:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,159 | py | #!/usr/bin/python
import sys
from PySide2 import QtWidgets
from studio_usd_pipe.resource.ui import asset_push
reload(asset_push)
def show_window(standalone=True):
if not standalone:
from studio_usd_pipe.core import smaya
reload(smaya)
from studio_usd_pipe.api import studioMaya... | [
"subing85@gmail.com"
] | subing85@gmail.com |
ba689e22dcb1d66564f51d1f4b4b81b2788988a0 | 3e8a962fb414880b0e06ccbd55edf52861c98600 | /c7n/resources/health.py | 753c31f7781f79c8902a7118a33481e7a3c77312 | [
"Apache-2.0"
] | permissive | cliffpracht/cloud-custodian | 6e62669445cf63e008e011e658ae74f2fe87a72f | 3965c550d0197d8ffef99e241c1644dda6e79015 | refs/heads/master | 2020-03-14T17:01:30.887778 | 2018-05-12T13:12:20 | 2018-05-12T13:12:20 | 131,710,551 | 0 | 0 | Apache-2.0 | 2018-05-09T17:15:36 | 2018-05-01T12:27:38 | Python | UTF-8 | Python | false | false | 5,023 | py | # Copyright 2017 Capital One Services, 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 agreed to in... | [
"kapilt@gmail.com"
] | kapilt@gmail.com |
990fe733d33c7dbe633b4899e10131304dca3370 | 3eee551ab3d4cfdfe82eff48ec5984ed19e794a4 | /source/DoublyLinkedListTest.py | 39274051485fab810cf4c65ebd29402451b7bda2 | [] | no_license | matthewharrilal/CS-3-Core-Data-Structures | 56d308ab76185f66d8afea5bfbd4d59358f47dd7 | cd3245c0c87e0e7a7f9ab2b3dc5df84a4d4bd391 | refs/heads/master | 2021-05-13T17:47:31.681259 | 2018-02-14T22:18:38 | 2018-02-14T22:18:38 | 116,835,776 | 0 | 0 | null | 2018-01-09T15:44:01 | 2018-01-09T15:44:01 | null | UTF-8 | Python | false | false | 1,906 | py | from doubly_linked_list import Doubly, Binary_Node
import unittest
class DoublyLinkedListTest(unittest.TestCase):
def test_delete(self):
ll = Doubly(['A', 'B', 'C'])
ll.delete('A')
assert ll.length_of_linked_list() == 2
assert ll.head.data == "B"
assert ll.is_empty() == Fals... | [
"matthewharrilal@gmail.com"
] | matthewharrilal@gmail.com |
6592f32e951954065cc21c17eae30a4ea5a7557d | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03371/s495494567.py | e8d19753d647fb4043ac7e8316b62b0b9c6d6a83 | [] | 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 | 447 | py | a,b,c,x,y = map(int,input().split())
smallestSum = 0
tempSum = 0
smallestSum = a * x + b * y
if x < y:
tempSum = c * x * 2 + b * (y - x)
if tempSum < smallestSum:
smallestSum = tempSum
tempSum = c * y * 2
if tempSum < smallestSum:
smallestSum = tempSum
else:
tempSum = c * y * 2 + a * (x - y)
if tempSum < s... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
a0471b72d7ec92b4d4353b4846c89e3fbe8b0905 | 218c0813fae1e347b9db748e3b51dce38105ef1c | /appprofile/apps.py | ef4710f730ff2b7b21585e567878c51407535f20 | [] | no_license | ECellNitrr/ECellWeb2k18 | f39ab71924555cf2ff412cae9f8477f8fa66da60 | d249a8f4b60f758506fc77ee14363a52a4b4b669 | refs/heads/master | 2021-06-11T07:39:53.146879 | 2019-07-19T07:59:50 | 2019-07-19T07:59:50 | 133,259,196 | 2 | 6 | null | 2018-08-19T11:38:57 | 2018-05-13T17:25:59 | Python | UTF-8 | Python | false | false | 130 | py | from django.apps import AppConfig
class AppprofileConfig(AppConfig):
name = 'appprofile'
verbose_name = ("App Profile")
| [
"pisdak79@gmail.com"
] | pisdak79@gmail.com |
4313b08c8fdae9f3d8fd12621b162a3d19778529 | 16b389c8dcace7f7d010c1fcf57ae0b3f10f88d3 | /docs/jnpr_healthbot_swagger/test/test_tlive_kafka_ocs_schema.py | f381222d9e122ce5c690812452de5999a9b05899 | [
"Apache-2.0"
] | permissive | Juniper/healthbot-py-client | e4e376b074920d745f68f19e9309ede0a4173064 | 0390dc5d194df19c5845b73cb1d6a54441a263bc | refs/heads/master | 2023-08-22T03:48:10.506847 | 2022-02-16T12:21:04 | 2022-02-16T12:21:04 | 210,760,509 | 10 | 5 | Apache-2.0 | 2022-05-25T05:48:55 | 2019-09-25T05:12:35 | Python | UTF-8 | Python | false | false | 956 | py | # coding: utf-8
"""
Healthbot APIs
API interface for Healthbot application # noqa: E501
OpenAPI spec version: 1.0.0
Contact: healthbot-hackers@juniper.net
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import unittest
import swagge... | [
"nitinkr@juniper.net"
] | nitinkr@juniper.net |
93d48be004dd4b9552f14cd4f80519278487aa15 | e767702a56a8aaa3df8d301ca7c453e53a1a0cea | /orch/city_map.py | 9dae95dcfac28cecb433b73762b1fb5147be87e9 | [
"Apache-2.0"
] | permissive | Shifuddin/edge_orchestrator | 510a79689a99a55f26cc5f4d6bfea319ce2985e0 | aa8ae7334f8d0e806eb27c24c902a9f1c828d2e3 | refs/heads/master | 2020-03-22T07:23:11.939607 | 2018-07-14T16:48:21 | 2018-07-14T16:48:21 | 139,696,965 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,499 | py | #!/usr/bin/env python2
# -*- coding: utf-8 -*-
"""
Created on Sun Jul 8 15:38:54 2018
@author: shifu
"""
graph_adjacency_list_80805 = {'Alte Heide 1': set([ 'Alte Heide 2', 'Frottmaninger Str 1']),
'Alte Heide 2': set(['Alte Heide 1', 'Alte Heide 3', 'Frottmaninger Str 2']),
'Alte Heide 3': set(['Alt... | [
"shifuddin.masud@gmail.com"
] | shifuddin.masud@gmail.com |
abeb699cfc90eb856b470248567094dc35f55206 | 1c962341f3b580f2be0529a2d5804d49804470f6 | /judge_1113.py | ebf569edaabec4031e70bb5c042852d81d27b21f | [] | no_license | andersonmarquees/-uri_python | 7bc14b50198bd238f9594b37a86553ecfb277f76 | 379518cd17433725d6a859526de356162b26aa40 | refs/heads/master | 2020-05-05T09:08:51.483638 | 2019-04-14T16:42:24 | 2019-04-14T16:42:24 | 179,892,376 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 205 | py | while True:
entrada = input().split()
x = int(entrada[0])
y = int(entrada[1])
if x == y:
break
if x > y:
print("Decrescente")
else:
print("Crescente")
| [
"anderson_fisico@yahoo.com.br"
] | anderson_fisico@yahoo.com.br |
c5afb3250ba8887349ab62a349b8d21a00af7404 | bfc25f1ad7bfe061b57cfab82aba9d0af1453491 | /data/external/repositories_2to3/137656/blundercheck-master/prepare_run.py | 8c8f809da6f4d71fdb7f502d2cd7c09d825f9045 | [
"MIT"
] | permissive | Keesiu/meta-kaggle | 77d134620ebce530d183467202cf45639d9c6ff2 | 87de739aba2399fd31072ee81b391f9b7a63f540 | refs/heads/master | 2020-03-28T00:23:10.584151 | 2018-12-20T19:09:50 | 2018-12-20T19:09:50 | 147,406,338 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,884 | py | #!env python
import chess.pgn, urllib.request, urllib.parse, urllib.error, boto, time, json
import sys
def write_batch(pgn_string, inputs_bucket, batch_name, batch_num):
games_key = '%s/%d.pgn' % (batch_name, batch_num)
results_key = '%s/%d.txt' % (batch_name, batch_num)
key = inputs_bucket.new_ke... | [
"keesiu.wong@gmail.com"
] | keesiu.wong@gmail.com |
cc20830a93ffa896e82481abfb537c58435f03d8 | 9c911b15cc174a314572a8d74f4bd00fceb6c987 | /detect.py | 9ab9122c6ee2c42ba3c690f60c46dab14b343001 | [] | no_license | abhinavjha98/Python_Image_OpenCV | f5b007953a05f695c38ca68a5762ef2362cfc159 | 86fff5a1c565a3e4dd0236cb6a5bc522b2db5726 | refs/heads/master | 2023-02-16T17:01:02.012137 | 2021-01-13T17:21:06 | 2021-01-13T17:21:06 | 326,019,512 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,496 | py | import cv2
import numpy as np
from matplotlib import pyplot as plt
img = cv2.imread('12.jpg',0)
hist = cv2.calcHist([img],[0],None,[256],[0,256])
# Area occupied by black region
black_area = np.true_divide(hist[0],np.prod(img.shape))[0]*100
# extract no black parts
thresh = cv2.threshold(img,60,255,cv2.THRESH_BINARY... | [
"abhinavjha98ald@gmail.com"
] | abhinavjha98ald@gmail.com |
eb48189b75e08d53020aed4db3570decb69023a0 | 37027d31595171b7fbdaeec33dab261719553001 | /android/pdk/apps/CameraITS/tests/test_param_tonemap_mode.py | 40002920f8995c25c92b740ada1c7cd66e01d75c | [
"Apache-2.0"
] | permissive | hqctfl/BPI-A20-Android-4.4 | 00aa341659dc0b3a07759e7808b0d5436b4810a1 | 8fe0d48d9ddc84b9821dc767f064edea403e1145 | refs/heads/master | 2022-06-02T15:10:33.870424 | 2018-06-25T03:06:04 | 2018-06-25T03:06:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,213 | py | # Copyright 2013 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 a... | [
"mingxin.android@gmail.com"
] | mingxin.android@gmail.com |
b9c79a06a98863cc6a75f6cd65f31d548a12444d | 60a831fb3c92a9d2a2b52ff7f5a0f665d4692a24 | /IronPythonStubs/release/stubs.min/Autodesk/Revit/DB/__init___parts/ListType.py | ef3884d0b1a23a03c7516d3975f4f67378af8396 | [
"MIT"
] | permissive | shnlmn/Rhino-Grasshopper-Scripts | a9411098c5d1bbc55feb782def565d535b27b709 | 0e43c3c1d09fb12cdbd86a3c4e2ba49982e0f823 | refs/heads/master | 2020-04-10T18:59:43.518140 | 2020-04-08T02:49:07 | 2020-04-08T02:49:07 | 161,219,695 | 11 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,135 | py | class ListType(Enum,IComparable,IFormattable,IConvertible):
"""
An enumerated type indicating the style of list item
for paragraphs that are part of ordered or unordered lists
in FormattedText.
enum ListType,values: ArabicNumbers (3),Bullet (2),LowerCaseLetters (4),Mixed (0),None (1),UpperCaseLetters (... | [
"magnetscoil@gmail.com"
] | magnetscoil@gmail.com |
c5150b5cea16411ed84160982627aea4529a5521 | 55f60b7ec448eb48b75118b01b3878c8345242bb | /tests/env/packages/env_test_sphinxcontrib-mermaid.py | 98a74c13ae8b9657e5eeea44e255488e36cfc448 | [
"BSD-3-Clause",
"CC-BY-4.0"
] | permissive | dd-rrc-ps/foxbms-2 | cd8d272afa24187c85c6fa747226bebed4cefc5e | 555704a9c4af3dd1c2213e6f0be9860f34e2b1b3 | refs/heads/master | 2023-08-18T13:49:42.503755 | 2021-10-21T12:15:09 | 2021-10-21T12:15:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,753 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# Copyright (c) 2010 - 2021, Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e.V.
# All rights reserved.
#
# SPDX-License-Identifier: BSD-3-Clause
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provid... | [
"info@foxbms.org"
] | info@foxbms.org |
80d13ce621d16d707a64d68649198da71f19ec9f | f4c041e7e3b4a9f6649093a774e7b9038645b77d | /dataviso_sequencer/lib/data.py | a7ad36c2b98c79f8d235de49f813887a398ec8b2 | [] | no_license | radeksvarz/datapumps_isolated | dc90e061492a0551dc2ce878096a4e5100407c3e | 913c52716b42735f53cba42cf9e3a3192163e5d7 | refs/heads/master | 2016-09-05T18:54:37.574946 | 2015-10-22T19:41:24 | 2015-10-22T19:41:24 | 35,110,417 | 1 | 0 | null | 2015-06-09T10:58:34 | 2015-05-05T16:16:13 | Python | UTF-8 | Python | false | false | 4,833 | py | # -*- encoding: utf-8 -*-
# ! python2
"""
All data base classes.
"""
from __future__ import unicode_literals
from __future__ import print_function
from __future__ import absolute_import
import abc
from ..types.types import LogSeverity
class File(object):
"""
File created during:
- step execution;... | [
"vaclav.dohnal@gmail.com"
] | vaclav.dohnal@gmail.com |
f3902c6a3900862b67c3db50210d1ef6703bad70 | f576f0ea3725d54bd2551883901b25b863fe6688 | /sdk/eventgrid/azure-mgmt-eventgrid/generated_samples/event_subscriptions_get_for_custom_topic_storage_queue_destination.py | 5465ecff972f6f309a8b1a1a3cd86a244239dec1 | [
"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 | 1,768 | 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 |
3bbaa3c5b35862c4147ffeabe9abf7c1d1a699c5 | c0f72a4c87794df5c4c239ddfc0392f7b9295d3f | /top/api/rest/WlbNotifyMessageConfirmRequest.py | aa35f7443239147fab289f7feb3a3bf6edfb6eb6 | [
"MIT"
] | permissive | chenluzhong150394/taobao-top-python3_version | c37ec2093726212b49a84598becd183b9104bd99 | 61b262c46e48504754a9427986595bce0ae0e373 | refs/heads/master | 2020-11-27T16:28:46.526318 | 2020-06-29T14:32:16 | 2020-06-29T14:32:16 | 229,528,970 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 319 | py | '''
Created by auto_sdk on 2013-06-03 16:32:57
'''
from top.api.base import RestApi
class WlbNotifyMessageConfirmRequest(RestApi):
def __init__(self,domain='gw.api.taobao.com',port=80):
RestApi.__init__(self,domain, port)
self.message_id = None
def getapiname(self):
return 'taobao.wlb.notify.message.confirm'
| [
"18438128833@163.com"
] | 18438128833@163.com |
def11e4971334d3fbda3903782c2ae7ebca36a84 | 46f44f80d63c13fcb61dacf7e08d072fb85b58dc | /MostCommonQuestions/33.minStack.py | 5cc0ed5a2effff85d8979457249bdd12c0218d89 | [] | no_license | bzamith/MySDEInterviewStudies | ef6d7add97596bded460023a74ba8b77dcebf350 | 9eea12cc8da3f51532140ed9423ce2a8be9fbdfa | refs/heads/master | 2023-02-25T11:41:28.877263 | 2021-02-01T10:51:48 | 2021-02-01T10:51:48 | 265,734,795 | 12 | 3 | null | 2020-10-05T22:21:57 | 2020-05-21T02:25:15 | Python | UTF-8 | Python | false | false | 1,060 | py | # Source: https://leetcode.com/problems/min-stack/submissions/
# Problem: "Min Stack"
# Design a stack that supports push, pop, top, and retrieving the minimum element in constant time.
# push(x) -- Push element x onto stack.
# pop() -- Removes the element on top of the stack.
# top() -- Get the top element.... | [
"noreply@github.com"
] | bzamith.noreply@github.com |
146ce10470d977abd8092d9ebcaf4263c08b8613 | 7deda455ff08b2a539da64c3a02d4d8079b5e9e3 | /niftynet/utilities/user_parameters_regex.py | 337dbdcc1bd4d0f44f9ecad3d848a09b6695d8d4 | [
"Apache-2.0"
] | permissive | 12SigmaTechnologies/NiftyNet-1 | f66a4b068a482a6ddeaa6b44d9346ca53a315425 | 84dd0f85c9a1ab8a72f4c55fcf073379acf5ae1b | refs/heads/12Sigma_niftynet4 | 2020-04-04T08:32:47.162234 | 2019-03-05T20:47:40 | 2019-03-05T20:47:40 | 155,785,358 | 2 | 1 | Apache-2.0 | 2019-01-29T18:15:50 | 2018-11-01T22:51:24 | Python | UTF-8 | Python | false | false | 2,230 | py | # -*- coding: utf-8 -*-
"""
regular expressions to match tuples from user inputs
kindly provided by
Luis Carlos Garcia Peraza Herrera <luis.herrera.14@ucl.ac.uk>
"""
from __future__ import unicode_literals
import re
INT = r'(?:[-+]?\d+)'
FLOAT = r'(?:[-+]?\d*\.\d+|' + INT + r')'
LITERAL = r'(?:[-_a-zA-Z0-9 \\:\.]+)'
... | [
"wenqi.li@ucl.ac.uk"
] | wenqi.li@ucl.ac.uk |
08a913f272e6b46c73b0e346606505625344746d | dc86c45b40cde90fa6fc0604f4dca8b5ae56d6cb | /foodshop/accounts/views.py | c234839ef5cfb3d9dfbb4227e49255fbbf4dd188 | [] | no_license | ayoub-smayen/fooddjangoshoppy | 6d1973e3ef413c7d8b998dec226425d46d28c025 | 9e88d3893ba849e7aa7a8bcd96ad29ac650c93a2 | refs/heads/master | 2023-06-17T16:35:21.077353 | 2021-07-21T17:14:21 | 2021-07-21T17:14:21 | 388,190,340 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,455 | py | from django.shortcuts import render, redirect
from django.contrib.auth.forms import AuthenticationForm
from django.contrib.auth import login, logout
from .forms import NewUSerForm
from customers.models import Profile
def signup_view(request):
if request.method == 'POST':
form = NewUSerForm(request.POST)
... | [
"ayoubjobs.2019@gmail.com"
] | ayoubjobs.2019@gmail.com |
b92987331b695c9db283edc015bc5ff119559ccb | 33e006f5ae711d44d796a0e3ca384caefe1ec299 | /Wprowadzenie do algorytmow - ksiazka/rozdzial 15/bottom-up-cut-rod.py | f4d34e9d5efb45b17a796c0b17f1020a0e78fc7a | [] | no_license | Cozoob/Algorithms_and_data_structures | 959b188f8cef3e6b7b1fd2a6c45a5e169d8f41fe | f786a397964f71e2938d9fd6268d3428e3ed7992 | refs/heads/main | 2023-08-05T02:23:43.565651 | 2021-09-17T10:52:14 | 2021-09-17T10:52:14 | 407,532,105 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 741 | py | # cosik nie dziala xd
def bottom_up_cut_rod(p, n):
r = [0 for _ in range(n + 1)]
r[0] = 0
for j in range(1, n + 1):
q = -1
if j == 1:
q = max(q, p[j] + r[0])
for i in range(1, j + 1):
if i == len(p):
break
q = max(q... | [
"kozubmarcin10@gmail.com"
] | kozubmarcin10@gmail.com |
2fe4fd0cef0c7e6650cc56bcc1258468b84d33ec | 7a9f6e01c0450173a0a45bd70816a4be38021eda | /utiles/serializers.py | ccc81c3bbbc43769cef74fc3f8b078993347e563 | [] | no_license | ryujiin/lovizdigital | 6137726349e6bd1de866054ce37de90f783a3b38 | 9f14c83b976e1e47a2558b508396139145b67bf2 | refs/heads/master | 2021-01-10T03:54:41.460708 | 2016-10-14T02:10:32 | 2016-10-14T02:10:32 | 45,559,176 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 228 | py | from rest_framework import serializers
from models import *
class ColorSerializer(serializers.ModelSerializer):
class Meta:
model = Color
class TallaSerializer(serializers.ModelSerializer):
class Meta:
model = Talla
| [
"ryujiin22@gmail.com"
] | ryujiin22@gmail.com |
01a1815afb1f71084672a9addc621806157576f0 | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_5708921029263360_0/Python/CptLemonZ/test.py | 34b429e299647cd829ddbdbe8a3723ac6c2fe981 | [] | 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 | 733 | py | infile = open('C-small-attempt5.in', 'r')
outfile = open('test.out', 'w')
T = int(infile.readline())
for t in range(1, T+1):
J, P, S, K = map(int, infile.readline().split(' '))
jp_table = [[0]*P for j in range(J)]
ps_table = [[0]*S for p in range(P)]
sj_table = [[0]*J for s in range(S)]
s_lst = []
... | [
"alexandra1.back@gmail.com"
] | alexandra1.back@gmail.com |
7788e4b642c8ef26cce9cf5cbb349bba877dd726 | 4bab98acf65c4625a8b3c757327a8a386f90dd32 | /ros2-windows/Lib/site-packages/rqt_py_common/rqt_ros_graph.py | 1f48f1a3cfd8b1c8b3c4c675182751c36cbd2772 | [] | no_license | maojoejoe/Peach-Thinning-GTRI-Agricultural-Robotics-VIP | e2afb08b8d7b3ac075e071e063229f76b25f883a | 8ed707edb72692698f270317113eb215b57ae9f9 | refs/heads/master | 2023-01-15T06:00:22.844468 | 2020-11-25T04:16:15 | 2020-11-25T04:16:15 | 289,108,482 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,506 | py | # Software License Agreement (BSD License)
#
# Copyright (c) 2012, Willow Garage, Inc.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# * Redistributions of source code must retain the above... | [
"aidencfarrar@gmail.com"
] | aidencfarrar@gmail.com |
3fc7c86760348b1930c089e4dae2017d00b53f5a | f90be265a7f0f1ea5ee35f30d90a283290c455fd | /Playground/compile.py | 60ae4c8ddb969767e7649ba23df2a6d14416b945 | [] | no_license | sparshjaincs/codingalphasproduction | c65e986217bab18d566ba11a162ef5dec8a1a644 | 012d33c4040e5a69859197ad8206c55c10670894 | refs/heads/master | 2023-03-05T10:17:38.166690 | 2021-02-02T04:46:32 | 2021-02-02T04:46:32 | 333,665,467 | 1 | 0 | null | 2021-02-03T03:09:21 | 2021-01-28T06:20:26 | JavaScript | UTF-8 | Python | false | false | 1,255 | py | import subprocess
class Python:
def __init__(self):
pass
def process(self,lang):
proc = subprocess.Popen(['python',"python_run.py"],stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE,encoding="utf-8")
val = proc.communicate()
return val
... | [
"sparshjaincs@gmail.com"
] | sparshjaincs@gmail.com |
4cb1ca808a40e97d20f37817c15b7f467d28b439 | 491bd7a305859b380d777f3420b099d4790ca807 | /pumpwerk/food/migrations/0049_auto_20201026_1346.py | b4806e987ac4f0917491c83887b2a8f20139807d | [
"MIT"
] | permissive | bruecksen/pumpwerk | 65103eb741c49691b203b419e9752dad996fd089 | e76df6bedee3e338b10106565f0f6139fa63994c | refs/heads/master | 2023-05-31T20:59:24.721234 | 2022-11-16T15:20:36 | 2022-11-16T15:20:36 | 251,088,621 | 0 | 0 | MIT | 2023-05-10T01:56:30 | 2020-03-29T17:17:49 | Python | UTF-8 | Python | false | false | 496 | py | # Generated by Django 2.2.11 on 2020-10-26 12:46
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('food', '0048_auto_20201008_1400'),
]
operations = [
migrations.RemoveField(
model_name='bill',
name='is_notified',
... | [
"hi@brueck.io"
] | hi@brueck.io |
343da4ea472c4d4ddedd8d24b35d67813541e370 | 11ab3ef01059d9f27f204fa5cc491b0da2f82934 | /Project3/code/breast_cancer/breast_lda_EM_kmeans.py | 6c6ad9948e203008581de4486b0ff798630faa3a | [] | no_license | melisandezonta/ML_CS7641 | c2b5c8e84144277f0544a70bc4fcac87d156b5bb | 54cffb53b70e6f814e32f17377cdb54b00448735 | refs/heads/master | 2020-04-03T13:19:37.830775 | 2019-06-19T06:26:48 | 2019-06-19T06:26:48 | 155,281,571 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,711 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
#username : mzr3
"""
Created on Sat Apr 1 01:25:23 2017
@author: melisandezonta
"""
from sklearn import datasets, mixture, decomposition, discriminant_analysis
import KMeansTestCluster as kmtc
import EM as em
import pandas as pd
import matplotlib.pyplot as plt
import n... | [
"melisande.zonta-roudes@gatech.edu"
] | melisande.zonta-roudes@gatech.edu |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.