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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1bb77fc8dacaeb560a91eefb770e6455bfb58186 | add0bb7a309ea346614d7f560a24e653d3d0ff67 | /Python多线程/多线程.py | 141bbbb34bec2b4895f11d7847ae4c8244b89526 | [] | no_license | 1572903465/PythonProjects | 935aff08d5b3d3f146393764a856369061513d36 | 73576080174f72ea1df9b36d201cf3949419041b | refs/heads/master | 2023-06-10T15:50:49.178112 | 2021-07-05T15:42:53 | 2021-07-05T15:42:53 | 301,328,267 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 801 | py | import time
import threading
#GIL是解释器用于同步线程的一种机制
#它使得任何时刻仅有一个线程在执行 (就算你是多核处理器也一样)
#使用GIL的解释器只允许同一时间执行一个线程
#常见的使用GIL的解释器有 CPython 与 Ruby MRI
#如果你用JPython没有GIL锁
#CPU 多线程
def start():#单纯计算 消耗CPU资源 没有实际意义
data = 0
for _ in range(10000000):#连续加
data += 1
return
if __name__ == "__main__":
t... | [
"1572903465@qq.com"
] | 1572903465@qq.com |
96bdcb9ba0731b60ceb0fa620043c197db1496da | c41432beb80d63d44aead4ae2cb747cafc3316a7 | /modules/wasm.py | 595545ffd82167cfb34979152d1b13f6379d6965 | [
"MIT"
] | permissive | My6UoT9/pdfium-lib | 58fdbfbecb634ead0c9de430a1677374977525d2 | caf775c56ae0362a0b0cf478e18f607b9242a1e8 | refs/heads/master | 2023-02-26T07:31:36.984428 | 2021-02-02T05:20:27 | 2021-02-02T05:20:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 21,842 | py | import glob
import os
import tarfile
from subprocess import check_call
import modules.config as c
import modules.functions as f
def run_task_build_pdfium():
f.debug("Building PDFium...")
target = "linux"
build_dir = os.path.join("build", target)
f.create_dir(build_dir)
target_dir = os.path.join... | [
"paulo@prsolucoes.com"
] | paulo@prsolucoes.com |
8a9f2c084e5fbff4425c903743db38ff3e08f6e7 | e7d1e06b5686f87280db292863b34ce0ea530d94 | /src/examples/func_local.py | 151515b33e59143e74c36eb6b6361a128c4ad393 | [] | no_license | tobereborn/byte-of-python2 | 4e9abdb3c513f8b5aa3955873b7468ddb60c8883 | c7e06be6f246dc6292780d59de0806b19c086943 | refs/heads/master | 2021-01-12T04:25:00.536489 | 2017-02-07T02:06:23 | 2017-02-07T02:06:23 | 77,606,492 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 213 | py | #!/usr/bin/python
# -*- coding:utf-8 -*-
'''
Created on Dec 31, 2016
@author: weizhen
'''
def func(x):
print 'Local x is', x
x = 2
print 'Change local x to', x
x = 50
func(x)
print 'x is still', x
| [
"none"
] | none |
f04925d7a0bf63c4b38d98c0cb08f71f17cc7b9c | 347699fbc16144e45ec9ffb4fbdb01e19cc69329 | /cough2.py | 0187d44d66b5d0a074e7763a7e4e9445b57ae747 | [] | no_license | kevindsteeleii/CS50-Python_Intro_to_CS | e7793f82d0530cd2f22f5b9fae1af0afd9b9ab36 | 6dea7245a27fe540ec9aa2fc878e7b876c4533ef | refs/heads/master | 2020-04-20T14:15:06.223633 | 2019-02-03T00:36:15 | 2019-02-03T00:36:15 | 168,892,517 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 101 | py | # has no special name
def main():
cough()
def cough():
print(3* "cough\n")
main()
# cough() | [
"github email address"
] | github email address |
5725565c8233d54c532088ebda905dca10d51e65 | 9b64f0f04707a3a18968fd8f8a3ace718cd597bc | /huaweicloud-sdk-servicestage/huaweicloudsdkservicestage/v2/model/create_o_auth_request.py | 6759129234f47c48a4eb8652297aba7bde7df202 | [
"Apache-2.0"
] | permissive | jaminGH/huaweicloud-sdk-python-v3 | eeecb3fb0f3396a475995df36d17095038615fba | 83ee0e4543c6b74eb0898079c3d8dd1c52c3e16b | refs/heads/master | 2023-06-18T11:49:13.958677 | 2021-07-16T07:57:47 | 2021-07-16T07:57:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,107 | py | # coding: utf-8
import re
import six
class CreateOAuthRequest:
"""
Attributes:
openapi_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key is attribute name
and the value is json key in... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
e216c2feeb68eba1c8976b72040c3a84d2b3c578 | e2ba1e3d001902e50f1dc9a63baf2a8abcac3ed8 | /InnerEye-DataQuality/InnerEyeDataQuality/datasets/nih_cxr.py | 91776355375965f599295af3453238326df7cff1 | [
"MIT",
"LicenseRef-scancode-generic-cla"
] | permissive | RobinMarshall55/InnerEye-DeepLearning | 81f52e7429f942e8c9845958d5b586e19e14e351 | 8495a2eec3903957e3e81f81a0d2ad842d41dfe2 | refs/heads/main | 2023-08-15T19:46:38.017713 | 2021-10-22T14:13:56 | 2021-10-22T14:13:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,929 | py | # ------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License (MIT). See LICENSE in the repo root for license information.
# -------------------------------------------------------------------... | [
"noreply@github.com"
] | RobinMarshall55.noreply@github.com |
a9adbd9757605899cfcc24ab62f85a0506576082 | 9923e30eb99716bfc179ba2bb789dcddc28f45e6 | /apimatic/python_generic_lib/Samsara+API-Python/samsaraapi/models/tag_1.py | c430f1f458ea4d2ca686481440b43d895aaab5a2 | [
"MIT"
] | permissive | silverspace/samsara-sdks | cefcd61458ed3c3753ac5e6bf767229dd8df9485 | c054b91e488ab4266f3b3874e9b8e1c9e2d4d5fa | refs/heads/master | 2020-04-25T13:16:59.137551 | 2019-03-01T05:49:05 | 2019-03-01T05:49:05 | 172,804,041 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,770 | py | # -*- coding: utf-8 -*-
"""
samsaraapi
This file was automatically generated by APIMATIC v2.0 ( https://apimatic.io ).
"""
class Tag1(object):
"""Implementation of the 'Tag1' model.
TODO: type model description here.
Attributes:
id (long|int): The ID of this tag.
... | [
"greg@samsara.com"
] | greg@samsara.com |
d5a7791ef5d1a16c2f4cfdbc78846c44437f2ad5 | 33327721233dbab4f95226aca5ebf52ec5782ae3 | /ModelInheritance/urls.py | 184bf47cbd9fed6d95c6e1cf7d0f6a88f774f9c9 | [] | no_license | priyankaonly1/ModelInheritance | 0b45e515cb1f9751f76b9639d1aab78369a861f9 | 078dfd24428c8f64ab66da421a1e4afc94b5c14c | refs/heads/main | 2023-07-05T11:55:17.489648 | 2021-09-03T18:56:22 | 2021-09-03T18:56:22 | 402,871,149 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 809 | py | """ModelInheritance URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.1/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')
Cl... | [
"priyankabiswasonly1@gmail.com"
] | priyankabiswasonly1@gmail.com |
22e0f4ddf70d8a6df31ef25ad3c9523dd8105a3a | ac89e5d51d0d15ffdecfde25985c28a2af9c2e43 | /test/test_match_alliance.py | 931bc1a9d817c762a45d35d742fc1774fbbb67f5 | [] | no_license | TBA-API/tba-api-client-python | 20dc4a634be32926054ffc4c52b94027ee40ac7d | 4f6ded8fb4bf8f7896891a9aa778ce15a2ef720b | refs/heads/master | 2021-07-15T16:36:32.234217 | 2020-05-07T00:20:43 | 2020-05-07T00:20:43 | 134,112,743 | 4 | 8 | null | 2019-07-01T03:14:12 | 2018-05-20T02:13:45 | Python | UTF-8 | Python | false | false | 1,191 | py | # coding: utf-8
"""
The Blue Alliance API v3
# Overview Information and statistics about FIRST Robotics Competition teams and events. # Authentication All endpoints require an Auth Key to be passed in the header `X-TBA-Auth-Key`. If you do not have an auth key yet, you can obtain one from your [Account... | [
"travis@example.org"
] | travis@example.org |
8f152a314ef63e887d0f8e569075306ee1396908 | 4ae3b27a1d782ae43bc786c841cafb3ace212d55 | /Test_Slen/Pytest_proj/01/Scripts/rst2latex.py | 61137b0e6f44ef69c8780b8663fadf71a62bbb4b | [] | no_license | bopopescu/Py_projects | c9084efa5aa02fd9ff6ed8ac5c7872fedcf53e32 | a2fe4f198e3ca4026cf2e3e429ac09707d5a19de | refs/heads/master | 2022-09-29T20:50:57.354678 | 2020-04-28T05:23:14 | 2020-04-28T05:23:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 844 | py | #!c:\users\jsun\documents\py_projects\pytest_proj\01\scripts\python.exe
# $Id: rst2latex.py 5905 2009-04-16 12:04:49Z milde $
# Author: David Goodger <goodger@python.org>
# Copyright: This module has been placed in the public domain.
"""
A minimal front end to the Docutils Publisher, producing LaTeX.
"""
try:
im... | [
"sunusd@yahoo.com"
] | sunusd@yahoo.com |
9baf84a3f128fbdc8787947c099b5f83b777bbc7 | 1285703d35b5a37734e40121cd660e9c1a73b076 | /aizu_online_judge/tree/7_d_solution.py | 70efa80577b60594e3d0ffb0dedc8489925e85a8 | [] | no_license | takin6/algorithm-practice | 21826c711f57131108168775f08e4e13d07a3b38 | f4098bea2085a77d11c29e1593b3cc3f579c24aa | refs/heads/master | 2022-11-30T09:40:58.083766 | 2020-08-07T22:07:46 | 2020-08-07T22:07:46 | 283,609,862 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 985 | py | class Node():
def __init__(self, parent = -1, left = -1, right = -1):
self.parent = parent
self.left = left
self.right = right
def postorder(ns, i, post):
if ns[i].left != -1:
postorder(ns, ns[i].left, post)
if ns[i].right != -1:
postorder(ns, ns[i].right, ... | [
"takayukiinoue116@gmail.com"
] | takayukiinoue116@gmail.com |
cd8c39eff00b00f3071855b64494d6159d08584a | 45b64f620e474ac6d6b2c04fbad2730f67a62b8e | /Varsity-Final-Project-by-Django-master/.history/project/quiz/views_20210423112204.py | 7280d320c23c7ccb25ba0eff899768fde6d05502 | [] | no_license | ashimmitra/Final-Project | 99de00b691960e25b1ad05c2c680015a439277e0 | a3e1d3c9d377e7b95b3eaf4dbf757a84a3858003 | refs/heads/master | 2023-04-11T06:12:35.123255 | 2021-04-26T15:41:52 | 2021-04-26T15:41:52 | 361,796,607 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 974 | py | from django.shortcuts import render
from quiz.models import Quiz
from quiz.models import Bangla
from quiz.models import Math
from quiz.models import Science
from quiz.models import GK
#def welcome(request):
#return render(request, 'welcome.html')
def english(request):
questions = Quiz.objects.all()
return... | [
"34328617+ashimmitra@users.noreply.github.com"
] | 34328617+ashimmitra@users.noreply.github.com |
c0ecc3296cd811fe782785ac56a926a7383d5c13 | 128b3bb5e5e3797ea73b8d71ec479b02d2d02b75 | /py/h2o_nodes.py | 55df64bb6144d92806a795cb08cbf9c422050764 | [
"Apache-2.0"
] | permissive | JerryZhong/h2o | 14819b044466dffe4ec461cb154898610f6be8b3 | c8ce6d223786673b5baf28f26d653bf4bd9f4ba9 | refs/heads/master | 2021-01-17T10:12:35.547837 | 2014-11-07T11:05:47 | 2014-11-07T11:05:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 292 | py |
# does the globally visible update behavior on these depend on them being mutables?
# to get rid of circular imports
# should think of managing this differently
print "h2o_nodes"
nodes = []
# used to get a browser pointing to the last RFview
global json_url_history
json_url_history = []
| [
"kevin@0xdata.com"
] | kevin@0xdata.com |
ccedc17ba5f223b2b46ee55cbe835f9f835c7af1 | 2cf1f60d5adcc9fe56366e26b95860a440bcb230 | /Previous Year CodeVita/Travel_Cost.py | 3818cb399113612f5e097dfbda7f072ec2e90394 | [] | no_license | rohanJa/DSA_IMP | 619a7b5c89b55cbff3c77b265242c05ebedd6140 | b0ead018814d53a00cc47cda1915ad0dfe5c30dc | refs/heads/master | 2022-12-23T22:56:32.775027 | 2020-09-01T06:52:25 | 2020-09-01T06:52:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 463 | py | import heapq
N = int(input())
cities = list(map(int, input().split(' ')))
M = int(input())
if(len(cities)<=1 or cities[-1]==-1):
print(-1)
else:
cost = cities[0] + cities[-1]
cities = cities[1:len(cities)-1]
heapq.heapify(cities)
for i in range(0,len(cities)):
if(cities[i]==-1):
... | [
"pkopergaonkar@gmail.com"
] | pkopergaonkar@gmail.com |
741f4f977054d674b6570a9cbd439392f1bdf378 | c8a0f1ee8ca4b27d6b71e1a358f950a5f168b953 | /Sessão 4/Atributos de classe/Encapsulamento.py | cf204b06b1de3f55ff1b2bc2ec9d5e83d5a6d641 | [] | no_license | natanaelfelix/Estudos | 0c3a54903a5ac457c1c1cfbdc22202683c46b62c | 10b33fa7cb8521d63ea6a14c04894a5f7e86ee0c | refs/heads/master | 2022-12-16T12:07:45.088305 | 2020-09-19T19:56:07 | 2020-09-19T19:56:07 | 296,936,330 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,553 | py | #esconde codigos em python
'''
public, # metodos e atributos podem ser acesso dentro e fora da class,
protect # atributos que podem ser acesso apenas dentro da classe ou nas filhas da classe
private # atributo ou metodo só está disponível dentro da classe
em python:
isso é chamado de convenção
_ = é o mesmo que é pr... | [
"natanaelmartinsfelix@hotmail.com"
] | natanaelmartinsfelix@hotmail.com |
597dd8723ef677cd5e0dad4d6aa1daa7d951b79b | 6d4a7f3f069e68a984df61b718e39597370a1131 | /main/getmail | 0b93cfc2d2cab97af7695d7546feb81af95b343b | [] | no_license | nabiuddin6/scripts-1 | d7c32a483c1ed4fcca2df3d68bf29cabf81f69c7 | 7a36fa22cfc369ccc5038332f95779370b12507c | refs/heads/master | 2022-09-01T07:14:31.211758 | 2020-05-30T19:20:02 | 2020-05-30T19:20:02 | 270,788,454 | 1 | 0 | null | 2020-06-08T18:55:19 | 2020-06-08T18:55:18 | null | UTF-8 | Python | false | false | 158 | #!/usr/bin/env python3
from fileinput import input as finput
with open("/tmp/mymail.txt", "w") as f:
for line in finput():
print(line, file=f)
| [
"bryanbugyi34@gmail.com"
] | bryanbugyi34@gmail.com | |
e1fc711cbdafa14788ed3999fffb04e0286d794c | 927cd757e5ad55293406ab21da05805f172c06aa | /pytorch_translate/data/char_data.py | 694dcbccfc79dea90938d52c57cafdc25eed2a4a | [
"BSD-3-Clause"
] | permissive | rohan-varma/translate | 5b0f2a8a645b4bcca9355bdb515773ce89a5bb70 | 56d6e9d53da70104f3ac42f99edb0324af2e2304 | refs/heads/master | 2020-07-05T22:44:30.587754 | 2019-08-14T23:06:40 | 2019-08-14T23:10:19 | 202,805,101 | 0 | 0 | null | 2019-08-16T22:08:43 | 2019-08-16T22:08:42 | null | UTF-8 | Python | false | false | 18,513 | py | #!/usr/bin/env python3
from typing import Any, Dict
import numpy as np
import torch
from fairseq import data, tokenizer
from pytorch_translate import vocab_constants
from pytorch_translate.data.dictionary import TAGS
class InMemoryNumpyWordCharDataset(data.indexed_dataset.IndexedDataset):
"""analogous to fairse... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
29ca22271235f65d4e77228e17670c71e65dcf24 | 6d9fbe6e6a2abfd8455e92f6dba67a5f02d87f41 | /lib/phonenumbers/data/region_NO.py | 209547037b31ee8b2a5a3323313d1cb0da54ac21 | [] | no_license | JamesBrace/InfluenceUWebLaunch | 549d0b48ff3259b139cb891a19cb8b5382ffe2c8 | 332d25940e4b1b45a7a2a8200f77c8413543b199 | refs/heads/master | 2021-09-04T04:08:47.594900 | 2018-01-15T16:49:29 | 2018-01-15T16:49:29 | 80,778,825 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,317 | py | """Auto-generated file, do not edit by hand. NO metadata"""
from ..phonemetadata import NumberFormat, PhoneNumberDesc, PhoneMetadata
PHONE_METADATA_NO = PhoneMetadata(id='NO', country_code=47, international_prefix='00',
general_desc=PhoneNumberDesc(national_number_pattern='0\\d{4}|[2-9]\\d{7}', possible_number_pat... | [
"james.brace@mail.mcgill.ca"
] | james.brace@mail.mcgill.ca |
c0a8764e80dbd852a83561d0dfc1ab421435e6b6 | d12b59b33df5c467abf081d48e043dac70cc5a9c | /ixnetwork_restpy/testplatform/sessions/ixnetwork/vport/protocols/spbmnodebasevidrange_81d2c633816492894c7a12f8e3079130.py | 9d2318916d50cd18a199cb2e1fdd10a83d0ec736 | [
"MIT"
] | permissive | ajbalogh/ixnetwork_restpy | 59ce20b88c1f99f95a980ff01106bda8f4ad5a0f | 60a107e84fd8c1a32e24500259738e11740069fd | refs/heads/master | 2023-04-02T22:01:51.088515 | 2021-04-09T18:39:28 | 2021-04-09T18:39:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,678 | 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, modify,... | [
"andy.balogh@keysight.com"
] | andy.balogh@keysight.com |
847d6cf04f173be81615f171ab5efce76b4cb626 | 7b5828edda7751700ca7002b40a214e39e5f48a8 | /EA/core/sims4/localization/localization_validation.py | 2a309a8565c9d42b05bb9dcda2a6797caada7ad5 | [] | no_license | daniela-venuta/Sims-4-Python-Script-Workspace | 54c33dac02f84daed66f46b7307f222fede0fa62 | f408b28fb34626b2e3b2953152343d591a328d66 | refs/heads/main | 2023-03-29T18:08:39.202803 | 2021-03-30T19:00:42 | 2021-03-30T19:00:42 | 353,111,243 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,400 | py | from protocolbuffers.Localization_pb2 import LocalizedStringToken
import sims4.log
import sims4.reload
logger = sims4.log.Logger('Localization', default_owner='epanero')
with sims4.reload.protected(globals()):
_localized_string_validators = {}
def register_localized_string_validator(validator_gen):
key = va... | [
"44103490+daniela-venuta@users.noreply.github.com"
] | 44103490+daniela-venuta@users.noreply.github.com |
5275b4089eb109d30621e280794a8c6e7ffdb7c3 | 8629f82f971f4e036c2b6358fe353a2c88bfd098 | /scripts/extract_sequences.py | 7c9b28f7fd0a5f74999951dd2fde3dae357dfaa0 | [
"MIT"
] | permissive | mahajrod/MAVR | 92828fa1c191b5f8ed08f1ba33f1684df09742cd | 8c57ff5519f130357e36e6f12868bc997e52a8a7 | refs/heads/master | 2023-08-25T01:02:24.738724 | 2023-08-22T15:13:39 | 2023-08-22T15:13:39 | 21,181,911 | 11 | 6 | null | 2017-09-18T20:25:16 | 2014-06-24T21:45:57 | Python | UTF-8 | Python | false | false | 1,793 | py | #!/usr/bin/env python2
__author__ = 'mahajrod'
import argparse
import os
from Bio import SeqIO
from BCBio import GFF
parser = argparse.ArgumentParser()
parser.add_argument("-g", "--in_gff", action="store", dest="in_gff",
help="input gff file")
parser.add_argument("-i", "--in_fasta", action="stor... | [
"mahajrod@gmail.com"
] | mahajrod@gmail.com |
f6ee5d38a811b0ba42a5f7020eb5532521567215 | f13c586b82224c07f28f7bb7d9dd503e64eb5cb2 | /tests/devices/qubit/test_apply_operation.py | 7895bdba75985e2cdcf0307adf762afe607fd019 | [
"Apache-2.0"
] | permissive | therooler/pennylane | 095f104e40254be2ed3050bc7be9ea9d2ee11ebd | fde1f24bd784d6ee2af5c980c2d5010b4c2bbe54 | refs/heads/master | 2023-04-29T13:32:43.115108 | 2023-04-18T09:41:42 | 2023-04-18T09:41:42 | 202,356,685 | 0 | 0 | Apache-2.0 | 2019-08-14T13:30:39 | 2019-08-14T13:30:38 | null | UTF-8 | Python | false | false | 17,022 | py | # Copyright 2018-2023 Xanadu Quantum Technologies Inc.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or... | [
"noreply@github.com"
] | therooler.noreply@github.com |
c9fa9b364091e379c4cc912b154200787e702303 | 776cf3b0f5865c8639692e1256abb5ad493c9f92 | /__old_stuff/pga/pga_no_sort/maps.py | b5503e9085e62d6d3cdc696a8de88c13ab354728 | [] | no_license | ralphbean/ms-thesis | 90afb1d5729d83f1910d8dec2e6d4c65d0304bc0 | 3fea08aa069d735fb7048afbab37bb429800fb48 | refs/heads/master | 2021-01-19T11:28:14.382925 | 2012-01-25T15:24:54 | 2012-01-25T15:24:54 | 3,265,816 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 666 | py | #!/usr/bin/python
from math import cos, sin, atan2, sqrt
# Some constants:
e = 2.71828183
mu = 5.5
a = 5
b = 25
W = [[ -a, a], [-b, b]]
def sigmoid( x, mu ):
return [( 1 + e**(-mu * ele))**-1 for ele in x]
def logistic( X, mu):
Y = [X[0], X[1]]
Y[0] = Y[0] * ( 1.0 - Y[0]) * mu
Y[1] = Y[1] * ( 1.0 - Y... | [
"ralph.bean@gmail.com"
] | ralph.bean@gmail.com |
7b9565c9c890f3721eb0cfe90417c25a5f7cd443 | f07b0142e37afe0bf8ed4d56399a0a49f5b1801b | /lino_xl/lib/phones/choicelists.py | f28f05d7ebd96e388d405b39764b669f8fb987a4 | [
"BSD-2-Clause"
] | permissive | khchine5/xl | af70fb21e4caeb05ff62e9618113c278d71a75ed | b1634937a9ce87af1e948eb712b934b11f221d9d | refs/heads/master | 2021-01-20T22:51:01.193260 | 2018-08-22T07:47:43 | 2018-08-22T07:47:43 | 52,145,840 | 1 | 0 | BSD-2-Clause | 2018-08-19T12:29:06 | 2016-02-20T09:21:19 | Python | UTF-8 | Python | false | false | 1,501 | py | # Copyright 2017 Luc Saffre
#
# License: BSD (see file COPYING for details)
from django.core.validators import validate_email, URLValidator
from etgen.html import E
from lino.api import dd, _
from lino.modlib.office.roles import OfficeStaff
validate_url = URLValidator()
class ContactDetailType(dd.Choice):
fi... | [
"luc.saffre@gmail.com"
] | luc.saffre@gmail.com |
cdc23af2384a0e3b2df21f4083a35ba0ea45409d | f332e3028a5d8fb8a9c09f7f84e249c063e2a561 | /admit/at/test/integrationtest_moment.py | ae28d020b133d1c2c01fe6aed178cb278bb54aee | [
"MIT"
] | permissive | astroumd/admit | 48098dc0490813467317dda4388c6de832ed8772 | bbf3d79bb6e1a6f7523553ed8ede0d358d106f2c | refs/heads/master | 2023-03-11T17:51:12.944237 | 2020-09-09T16:17:59 | 2020-09-09T16:17:59 | 69,020,469 | 4 | 2 | null | 2018-09-26T21:07:17 | 2016-09-23T11:54:08 | Python | UTF-8 | Python | false | false | 4,739 | py | #! /usr/bin/env casarun
#
#
# you can either use the "import" method from within casapy
# or use the casarun shortcut to run this from a unix shell
# with the argument being the casa image file to be processed
#
""" Right now you need to run this test inside of casapy
This test does the following:
creates an... | [
"teuben@gmail.com"
] | teuben@gmail.com |
3441be0b35ed322cb32bf6ba5f4e7431d88160a2 | acb8e84e3b9c987fcab341f799f41d5a5ec4d587 | /langs/5/nsj.py | f710dc66040e9b9bd32fa4cffb1a45033aa46a3b | [] | no_license | G4te-Keep3r/HowdyHackers | 46bfad63eafe5ac515da363e1c75fa6f4b9bca32 | fb6d391aaecb60ab5c4650d4ae2ddd599fd85db2 | refs/heads/master | 2020-08-01T12:08:10.782018 | 2016-11-13T20:45:50 | 2016-11-13T20:45:50 | 73,624,224 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 486 | py | import sys
def printFunction(lineRemaining):
if lineRemaining[0] == '"' and lineRemaining[-1] == '"':
if len(lineRemaining) > 2:
#data to print
lineRemaining = lineRemaining[1:-1]
print ' '.join(lineRemaining)
else:
print
def main(fileName):
with open(fileName) as f:
for line in f:
... | [
"juliettaylorswift@gmail.com"
] | juliettaylorswift@gmail.com |
760438c3af5adf7bfb936c3a780f4284e5c4c8c5 | bd87d8947878ccb2f5b720e70a22493b00868fd3 | /justpy/02_basics/hello.py | 2888edfd040f2b33e125af2a67c8b73a03f4132e | [] | no_license | damiansp/completePython | 4cbf12ef682a1d4a5498f77e407dc02e44a7d7ac | 3f5e2f14d79c93df5147b82d901190c054535158 | refs/heads/master | 2023-09-01T20:50:03.444440 | 2023-08-28T00:27:57 | 2023-08-28T00:27:57 | 99,197,610 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 131 | py | import justpy as jp
def hello():
wp = jp.WebPage()
p = jp.P(text='Hello, World!', a=wp)
return wp
jp.justpy(hello)
| [
"damiansp@gmail.com"
] | damiansp@gmail.com |
67369667933e56134fd39641a2ff54257295372e | f92dfdebb4bf6bc108f51783333520c35afa66da | /admin-web/src/www/application/modules/exon/actions.py | 0f983721c26d50584b6b180491a8a68d2dd6eca0 | [] | no_license | duytran92-cse/nas-genodata | 4d8659a135913d226842ff6a013324714ead0458 | 80c88f42145f729c5862a5293012e71548182e1d | refs/heads/master | 2022-11-13T17:24:03.769605 | 2020-06-14T18:59:36 | 2020-06-14T18:59:36 | 272,264,593 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,962 | py | from django.http import HttpResponse, HttpResponseRedirect
from django.conf import settings
from notasquare.urad_web import actions, page_contexts, widgets
from notasquare.urad_web_material import renderers
from application import constants
from . import components
import json
class List(actions.crud.ListAction):
... | [
"thanh.tran@etudiant.univ-lr.fr"
] | thanh.tran@etudiant.univ-lr.fr |
387308b74fb49e09ecf27a6ac0913c5f93a7db68 | 03e3138f99f275d15d41a5c5bfb212f85d64d02e | /source/res/scripts/client/gui/shared/gui_items/Vehicle.py | a9de541eb0b94156095065137fb6d9ebcfcb6b47 | [] | no_license | TrenSeP/WorldOfTanks-Decompiled | e428728e7901146d0b599d02c930d70532232a97 | 1faa748acec1b7e435b657fd054ecba23dd72778 | refs/heads/1.4.1 | 2020-04-27T08:07:49.813023 | 2019-03-05T17:37:06 | 2019-03-05T17:37:06 | 174,159,837 | 1 | 0 | null | 2019-03-06T14:33:33 | 2019-03-06T14:24:36 | Python | UTF-8 | Python | false | false | 63,552 | py | # Python bytecode 2.7 (decompiled from Python 2.7)
# Embedded file name: scripts/client/gui/shared/gui_items/Vehicle.py
import math
import random
from copy import copy
from itertools import izip
from operator import itemgetter
from collections import namedtuple
import BigWorld
import constants
from AccountCommands impo... | [
"StranikS_Scan@mail.ru"
] | StranikS_Scan@mail.ru |
cd2b3e03c7d4829e4d97f8148c5adb257164f06b | 9c124f6accd89a3ccf08b4c1205159d78c731f85 | /5/main2.py | 90c084d9fdd727393875c7852c0b3e4be61179b0 | [] | no_license | irongamer54/Sumer_2021 | 5600272dc11bddf6276bb56d0db4cff66ff6b20d | d61348274772cf95f0b06f904bfbb0ec61ebd1b1 | refs/heads/master | 2023-06-26T12:26:41.623768 | 2021-07-23T03:46:18 | 2021-07-23T03:46:18 | 383,372,964 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 196 | py | from tkinter import *
root=Tk()
canvas=Canvas(root,width=500,height=500)
canvas.pack()
pers_obj = PhotoImage(file="pers.png")
canvas.create_image(50,50,anchor= NW, image=pers_obj)
root.mainloop() | [
"you@example.com"
] | you@example.com |
8dfcde4d529883da7fcaa024d87d1e941b74687a | 6caab8d886e8bd302d1994ff663cf5ccb5e11522 | /MyNotes_01/Step01/3-OO/day02_10/demo02.py | af2d3e088e530fe9803b841cfed86c5256b3275a | [] | no_license | ZimingGuo/MyNotes01 | 7698941223c79ee754b17296b9984b731858b238 | 55e6681da1a9faf9c0ec618ed60f5da9ecc6beb6 | refs/heads/master | 2022-07-30T21:30:32.100042 | 2020-05-19T16:59:09 | 2020-05-19T16:59:09 | 265,254,345 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 935 | py | # author: Ziming Guo
# time: 2020/2/15
"""
demo02:
类成员
练习:exercise03.py
"""
class ICBC:
"""
demo02:
工商银行
"""
# 表示总行的钱
total_money = 1000000 # 这不是对象的数据,这是类的数据
# 因为类方法没有对象地址self,所以不能访问实例成员
@classmethod
def print_total_money(cls):
# print(id(cls),id(ICBC))... | [
"guoziming99999@icloud.com"
] | guoziming99999@icloud.com |
cd15735e33041560a98ded732972d3b02180e502 | d6815f4c7774d30c5d12d2205703427693294dec | /tests/unit/more/debian/security/test_selinux.py | af2403dca31f2fdbb42f262bc50c9f76b86bba2a | [
"MIT"
] | permissive | python-provy/provy | 2579bbedc31f559992b7c007a4a2e75424d3507f | ca3d5e96a2210daf3c1fd4b96e047efff152db14 | refs/heads/master | 2021-12-30T12:03:28.083794 | 2019-02-20T16:55:32 | 2019-02-20T16:55:32 | 1,948,340 | 16 | 3 | MIT | 2021-12-26T06:30:37 | 2011-06-24T16:01:45 | Python | UTF-8 | Python | false | false | 4,010 | py | from mock import call, patch
from nose.tools import istest
from provy.more.debian import AptitudeRole, SELinuxRole
from tests.unit.tools.helpers import ProvyTestCase
class SELinuxRoleTest(ProvyTestCase):
def setUp(self):
super(SELinuxRoleTest, self).setUp()
self.role = SELinuxRole(prov=None, cont... | [
"diogobaeder@yahoo.com.br"
] | diogobaeder@yahoo.com.br |
9b6a7efd933b95b6d869bcec2a89469658c6997c | 22f480f1ec13e59f1bcf4a244973db64f875e0db | /coroutine_test.py | 42b3accced3c46d5ec3c57341d831fd9e94cd443 | [] | no_license | xiphodon/spider_hs_code | de3a4a555be2ed9dac295ef93a921c3697a6bc6a | c447c94c367c029fc13af458c668eb1f87a7b67c | refs/heads/master | 2021-12-27T23:11:07.925493 | 2021-12-16T16:41:34 | 2021-12-16T16:41:34 | 105,999,246 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,598 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 2019/5/10 9:45
# @Author : GuoChang
# @Site : https://github.com/xiphodon
# @File : coroutine_test.py
# @Software: PyCharm
"""协程测试"""
def consumer():
print('==== c_A ====')
r = ''
while True:
print('==== c_B ====')
n = yiel... | [
"827789895@qq.com"
] | 827789895@qq.com |
c6fd884951bb2eeb1d9b7ce2023f5052fe299ee0 | a1504798a55d652c9c0705cc507fe2cb9678ea4f | /Adavnce_CRUD/MySQL_Index/main.py | d3dc0fb9d8d0d67cb6cb139875050e8b004effdf | [] | no_license | ritikapatel1410/Python_MySql | a4a952abd7b0394eafc071de0f55efd6a7a3b359 | d90da25391243d5c08156a9184727c3e42e43517 | refs/heads/main | 2023-03-21T01:24:02.465879 | 2021-03-18T07:55:04 | 2021-03-18T07:55:04 | 347,563,406 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,533 | py | """
@Author: Ritika Patidar
@Date: 2021-03-15 00:10:10
@Last Modified by: Ritika Patidar
@Last Modified time: 2021-03-15 00:10:38
@Title : main code of perform index operation
"""
import sys
import os
sys.path.insert(0,os.path.relpath("LogFile"))
import loggerfile
from Mysql_Index import Index_Operation
def main(... | [
"patelrit1410@gmail.com"
] | patelrit1410@gmail.com |
19caeba9c0e61aa8f31b56683c06fdeaf2f2a064 | 6ed034d0a5e239d7b0c528b287451409ffb4a494 | /mmpose/models/heads/temporal_regression_head.py | 97a07f9cf2c9ef0497380ca5c602142b206f3b52 | [
"Apache-2.0"
] | permissive | ViTAE-Transformer/ViTPose | 8f9462bd5bc2fb3e66de31ca1d03e5a9135cb2bf | d5216452796c90c6bc29f5c5ec0bdba94366768a | refs/heads/main | 2023-05-23T16:32:22.359076 | 2023-03-01T06:42:22 | 2023-03-01T06:42:22 | 485,999,907 | 869 | 132 | Apache-2.0 | 2023-03-01T06:42:24 | 2022-04-27T01:09:19 | Python | UTF-8 | Python | false | false | 12,400 | py | # Copyright (c) OpenMMLab. All rights reserved.
import numpy as np
import torch.nn as nn
from mmcv.cnn import build_conv_layer, constant_init, kaiming_init
from mmcv.utils.parrots_wrapper import _BatchNorm
from mmpose.core import (WeightNormClipHook, compute_similarity_transform,
fliplr_regres... | [
"annblessus@gmail.com"
] | annblessus@gmail.com |
f70e05449d250838b42f4c3df78e59421ddc3543 | a2f9d55d686425c4b47ce150aa1a23ea933055cc | /apps/tinymce/views.py | 12c563915b667935e080b56611e1df8b35b9ad48 | [] | no_license | wd5/blombum | b31c581f2c36c220164901189be1ba95a8341e0e | fe11efb369fe2cec67af1e79bc8935a266df2f80 | refs/heads/master | 2020-12-25T02:23:30.297939 | 2010-06-29T10:03:31 | 2010-06-29T10:03:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 435 | py | import re
from django.shortcuts import render_to_response
from django.template import RequestContext
from django.http import Http404, HttpResponseRedirect
from settingsDB.utils import SettingsCached
def read_path(request, path):
if re.search('(jpg|png|jpeg|gif)$', path):
return HttpResponseRedirect(Settings... | [
"nide@inbox.ru"
] | nide@inbox.ru |
b7bf34e25705b43a0a78936098833e47fe524ace | 96fe7cb1495928a9699ade24200b445755e47f3b | /tests/unit/model/test_code_element_role.py | 62f8ec8dfa551f1d335a31db5755fcbc031c51df | [
"Apache-2.0"
] | permissive | Midnighter/structurizr-python | ab4a9f71c01d1febde5c6e61a3a961953f1ef440 | 31f1dcadb3ff113d8a77ce132657237ea01c307b | refs/heads/devel | 2023-02-08T19:43:22.344155 | 2023-01-21T10:12:49 | 2023-01-21T10:12:49 | 144,895,441 | 61 | 16 | Apache-2.0 | 2023-01-21T09:53:35 | 2018-08-15T19:35:01 | Python | UTF-8 | Python | false | false | 1,037 | py | # Copyright (c) 2020, Moritz E. Beber.
#
# 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
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to i... | [
"midnighter@posteo.net"
] | midnighter@posteo.net |
32a23f9df83cc51dbe7edb439bd22dbc167ade77 | 13d222bc3332378d433835914da26ed16b583c8b | /src/pemjh/challenge116/main.py | 83123ed7d1f367503d574aa5a8a7a8a0a060e775 | [] | no_license | mattjhussey/pemjh | c27a09bab09cd2ade31dc23fffac07374bea9366 | 2ebb0a525d2d1c0ee28e83fdc2638c2bec97ac99 | refs/heads/master | 2023-04-16T03:08:59.390698 | 2023-04-08T10:54:00 | 2023-04-08T10:54:00 | 204,912,926 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 916 | py | """ Challenge116 """
# pylint: disable=missing-docstring
from pemjh.function_tools import memoize
@memoize()
def num_variations(blocks, tile_size, dec=True):
num = 0
if blocks > 1:
# work out with tile here
if blocks >= tile_size:
num += num_variations(blocks - tile_si... | [
"matthew.hussey@googlemail.com"
] | matthew.hussey@googlemail.com |
02eaf3db773ab02db6f4b89bf7367f023bcb00d3 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/adjectives/_aggregated.py | fad5b0d4f6fa9ecaef3cf929a8aed423b13aacbd | [
"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 | 269 | py |
from xai.brain.wordbase.adjectives._aggregate import _AGGREGATE
#calss header
class _AGGREGATED(_AGGREGATE, ):
def __init__(self,):
_AGGREGATE.__init__(self)
self.name = "AGGREGATED"
self.specie = 'adjectives'
self.basic = "aggregate"
self.jsondata = {}
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
bd0ddc98cc185bd0c345391c4fd04ccb8f855b0f | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /rnvBtoNMBtznXLhs8_24.py | 3666f1e694da00a3301b67e01f1e0199407af097 | [] | no_license | daniel-reich/ubiquitous-fiesta | 26e80f0082f8589e51d359ce7953117a3da7d38c | 9af2700dbe59284f5697e612491499841a6c126f | refs/heads/master | 2023-04-05T06:40:37.328213 | 2021-04-06T20:17:44 | 2021-04-06T20:17:44 | 355,318,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 313 | py |
def win_round(you, opp):
res = []
for item in [you, opp]:
first = max(item)
item.remove(first)
second = max(item)
res.append(int(str(first) + str(second)))
you_score, opp_score = res
if you_score > opp_score:
return True
return False
| [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
297a221039f6223d99486f0a5574016946b8bb72 | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_5670465267826688_1/Python/Saaber/saber_dijkstra.py | 07db2c9ea613fb670076171aa5363a1bcd777e85 | [] | 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 | 2,509 | py | d = {'11':'1', '1i':'i', '1j':'j', '1k':'k', \
'i1':'i', 'ii':'-1' , 'ij':'k', 'ik':'-j', \
'j1':'j', 'ji':'-k' , 'jj':'-1', 'jk':'i', \
'k1':'k', 'ki':'j' , 'kj':'-i', 'kk':'-1' }
def evaluate(s1, s2):
neg1, neg2 = s1.count('-') , s2.count('-')
t1, t2 = s1.replace('-',''), s2.replace('-','')
neg = neg1 + n... | [
"eewestman@gmail.com"
] | eewestman@gmail.com |
03ee163b9ac703119f8282805997115dac007738 | b6e5a79533b23404bf1582e9c66f4d1a9500b992 | /backend/usa_2_go_27981/wsgi.py | 067e6d4e56f68e483302e5793560ba8a17439f18 | [] | no_license | crowdbotics-apps/usa-2-go-27981 | 766add8314ebdeddfcc90ba2fe0185f66f247493 | 18ba1fa997814462fc7810b01c413cd7655c758b | refs/heads/master | 2023-05-27T10:25:39.406088 | 2021-06-15T01:03:53 | 2021-06-15T01:03:53 | 376,992,929 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 405 | py | """
WSGI config for usa_2_go_27981 project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANG... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
fa02064419c1a25d7bb488b52884e661e606158d | 24e390b6b3ac60baa5ee784cc017848e7e6e8426 | /old_exercises/backup/plotlable.py | 78c3ebcb682d03d9a38f071e66fad895ae411985 | [] | no_license | tertiarycourses/NumpySciPyTraining | 6c83d91f7164e9cd3020fd987c55d15d93f2fcf3 | 0b45296cf07751938594973dd7fdc39d0daa04a1 | refs/heads/master | 2021-01-23T00:40:12.393829 | 2018-05-17T09:10:51 | 2018-05-17T09:10:51 | 92,831,280 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 173 | py | import numpy
import matplotlib.pyplot as plt
x=numpy.linspace(0,2*numpy.pi,32)
plt.plot(x, numpy.sin(x))
plt.xlabel('x')
plt.ylabel('y')
plt.title('Sine Curve')
plt.show()
| [
"angch@tertiaryinfotech.com"
] | angch@tertiaryinfotech.com |
9b0c90269a0a5ff5f89369b8ca2e2d59d97665fe | 7c0acdc46cfce5dc116d394f6990ee5ab1c0fa0c | /venv/lib/python3.7/site-packages/buildsystem/setup.py | 3e4ac13dece62dd1ea8f1f0ac6fe7d644541d600 | [
"MIT"
] | permissive | Vatansever27/ExchangeCode | 84fb4a02371fdda7cd94d00971be76bcd1068be0 | ab284653a337937139a9a28c036efe701fb376c7 | refs/heads/master | 2020-04-07T16:38:59.819929 | 2018-11-21T12:18:30 | 2018-11-21T12:18:30 | 158,537,067 | 0 | 0 | null | 2018-11-21T12:18:31 | 2018-11-21T11:22:14 | null | UTF-8 | Python | false | false | 1,093 | py | from .base import BaseBuilder, task
import os
class SetupBuilder(BaseBuilder):
setupdir = '.'
setupscript = None
product_title = 'Setup'
@task('compile_setup')
def do_compile_setup(self):
'''Compiles the Inno Setup Script `setupscript` into directory `setupdir` if `setupscript... | [
"doguhan@puentedev.io"
] | doguhan@puentedev.io |
c88e91b305ed920b0d4f97c56d7ec0ebf48c216c | 20c67cd43a484819b13cb120f145def9bc1317d8 | /usermage/views.py | d3063cfebd5ca6ec7725f323504b5493b4885c36 | [] | no_license | totota/trade | 03c019f92df8846f47a1cee2a1c2b16fbcb5a50c | b690d51f05316d0b6f4cdcb01806ad79d3c1f4be | refs/heads/master | 2021-09-02T06:43:49.175307 | 2017-10-16T11:04:01 | 2017-10-16T11:04:01 | 108,209,337 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,379 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.http import HttpResponseRedirect,HttpResponse
from django.shortcuts import render
from .forms import registeruser,loginform
from dms.models import city,location,security,campus,user,commodity,collection,indent,delegation,delegation_order
def ad... | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
75e67f9d2f99485e02e71e9d13c80edfe59d577a | 42c63d5f9c724c99ba93f77bdead51891fcf8623 | /OpenStack-Mitaka-src/cinder/cinder/volume/drivers/ibm/storwize_svc/storwize_svc_common.py | f5e43d96d19eda583d719b33f56058a3e20c740f | [
"Apache-2.0"
] | permissive | liyongle/openstack-mitaka | 115ae819d42ed9bf0922a8c0ab584fa99a3daf92 | 5ccd31c6c3b9aa68b9db1bdafcf1b029e8e37b33 | refs/heads/master | 2021-07-13T04:57:53.488114 | 2019-03-07T13:26:25 | 2019-03-07T13:26:25 | 174,311,782 | 0 | 1 | null | 2020-07-24T01:44:47 | 2019-03-07T09:18:55 | Python | UTF-8 | Python | false | false | 139,105 | py | # Copyright 2015 IBM Corp.
# 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 app... | [
"yongle.li@gmail.com"
] | yongle.li@gmail.com |
99f0114229968dc89da64649302a272cb8b61dd7 | 19308c971669b903fd1ee9862948e482ab37ce56 | /open_window.py | 74ac07da4a769f11e7c9ef3afdd4005bad3c1154 | [
"MIT"
] | permissive | crazcalm/learn_tkinter_canvas | 9634716275061d56282c1062a9d58cdac5761869 | b798a6f2217a478e9222bb6eaa2afec3d28a2758 | refs/heads/master | 2021-01-03T04:33:25.134059 | 2020-03-02T01:07:28 | 2020-03-02T01:07:28 | 239,924,031 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 57 | py | import tkinter as tk
window = tk.Tk()
window.mainloop() | [
"crazcalm@gmail.com"
] | crazcalm@gmail.com |
12ffc04da6d5d1f0f1212995f33e58915d501bc0 | a964f0f3f93a84d5195042d3c1bb2288e8b62161 | /muddery/server/typeclasses/locked_exit.py | 0451335dae27a4647d7d453f79f9d35569d9f04e | [
"BSD-3-Clause"
] | permissive | nobodxbodon/muddery | 474433791b75d2f2130e6b758fb3126e2d56230b | 4b4c6c0dc5cc237a5df012a05ed260fad1a793a7 | refs/heads/master | 2023-06-19T19:28:39.252340 | 2021-07-14T15:07:47 | 2021-07-14T15:07:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,770 | py | """
Exits
Exits are connectors between Rooms. An exit always has a destination property
set and has a single command defined on itself with the same name as its key,
for allowing Characters to traverse the exit to its destination.
"""
from muddery.server.statements.statement_handler import STATEMENT_HANDLER
from mud... | [
"luyijun999@gmail.com"
] | luyijun999@gmail.com |
bffdd5605e70c0218027950b2a97ca075262aee1 | 66dead2e38d06f5ca06463d669515876f7eb1771 | /{{cookiecutter.project_name}}/tests/test_server/test_urls.py | abb5b5626aa423ead2e752d00c266d5a31417071 | [
"MIT"
] | permissive | viktortat/wemake-django-template | 349920117d008e545db162ea11c4235fdf4bf0df | 991bbb8b34ed4b705d38080caa1ffa3893362520 | refs/heads/master | 2020-03-21T10:32:01.894036 | 2018-06-22T09:41:22 | 2018-06-22T09:41:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 844 | py | # -*- coding: utf-8 -*-
def test_admin_unauthorized(client):
"""This test ensures that admin panel requires auth."""
response = client.get('/admin/')
assert response.status_code == 302
def test_admin_authorized(admin_client):
"""This test ensures that admin panel is accessible."""
response = ad... | [
"mail@sobolevn.me"
] | mail@sobolevn.me |
d2f8a19b3de851ef689fddf518cebea8c37b91ec | 17fe32a70be82d9fd6c3268b840226b5567c8b29 | /torchtuples/utils.py | bb86e8e2b7557ada3baedd86a27b975d4f3b2644 | [
"MIT",
"BSD-2-Clause"
] | permissive | georgehc/dksa | dbb7161a75b8206d3d469bb5b966ed7a0f84d86c | bcd9eab6c9ded47f5b166cf1351b06e26e0c8f90 | refs/heads/master | 2023-08-02T06:15:12.472386 | 2021-10-01T17:47:25 | 2021-10-01T17:47:25 | 282,355,975 | 11 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,855 | py | import time
import random
import numpy as np
import torch
from torchtuples import tuplefy, TupleTree
def make_name_hash(name='', file_ending='.pt'):
year, month, day, hour, minute, second = time.localtime()[:6]
ascii_letters_digits = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'
random_h... | [
"georgechen@cmu.edu"
] | georgechen@cmu.edu |
8da334eb44c9ea9052929ef18f09fca3bede6dbe | 65348a4305d10b88c3b4e34eb00d66cf5db6aba7 | /main.py | 225446846dea7cdde0668e429d65088b5214d266 | [] | no_license | lailacampos/Simple-GUI-Kivy | a3671b9dd7f39c6b1efb3c0521753a8a99f32fa8 | 19b0ed9ff7ad4039d842b2d4223a7d79ffb56dc2 | refs/heads/main | 2023-08-22T03:08:48.696503 | 2021-09-22T02:19:27 | 2021-09-22T02:19:27 | 407,191,579 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 773 | py | # Useful links:
# https://kivy.org/doc/stable/guide/basic.html#quickstart
# https://kivy.org/doc/stable/api-kivy.app.html
# https://youtu.be/YDp73WjNISc
from kivy.app import App
from kivy.uix.label import Label
# The MyMainApp() class is derived from the App() class of the kivy.app repository.
# The App() class is t... | [
"enders.game1990@gmail.com"
] | enders.game1990@gmail.com |
4d3122b6a5a76c30a85ea82eef87b31bb9ff3d7f | 9bcb5032d27ca321f489c035f7d46019ffdf4b85 | /numericalFunctions/ptwXY/Python/Test/Flat/binaryMath/flatMath.py | 46871d9e915089e2d32588a84b4438372de42ec5 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | LLNL/gidiplus | 128ef4d4acbcb264e31794a535cd95e8c77d8a96 | e1c6f0e4de51bc4d7616c5c4676b9818c4b9817c | refs/heads/master | 2023-08-31T06:21:14.519577 | 2023-02-13T18:35:20 | 2023-02-13T18:35:20 | 187,251,526 | 10 | 3 | NOASSERTION | 2021-12-23T00:28:07 | 2019-05-17T16:48:24 | C++ | UTF-8 | Python | false | false | 5,300 | py | # <<BEGIN-copyright>>
# Copyright 2019, Lawrence Livermore National Security, LLC.
# See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: MIT
# <<END-copyright>>
import os
from numericalFunctions import pointwiseXY_C
accuracy = 1e-2
biSectionMax = 0.
if( 'CHECKOPTIONS' in os.environ ) :
o... | [
"mattoon1@llnl.gov"
] | mattoon1@llnl.gov |
718209cd4e9b8129270bfd7cfce002ecbefdd48f | e49b654d3db99773390c5b9686df9c99fbf92b2a | /linked_lists/remove_nth_from_end.py | df9193a1a375cfc8ab394f07106bc5c85074e045 | [] | no_license | hao89/diary_of_programming_puzzles | 467e8264d0ad38768ba5ac3cfb45301293d79943 | 0e05d3716f28075f99bbd7b433d16a383209e57c | refs/heads/master | 2021-01-16T00:49:38.956102 | 2015-08-25T13:44:53 | 2015-08-25T13:44:53 | 41,692,587 | 1 | 0 | null | 2015-08-31T18:20:38 | 2015-08-31T18:20:36 | Python | UTF-8 | Python | false | false | 1,207 | py | """
Given a linked list, remove the nth node from the end of the list and return
its head.
For example,
Given the linked list: 1->2->3->4->5, and n = 2.
After removing the second node from the end, the linked list becomes
1->2->3->5.
Note:
Given n will always be valid.
Try to do this in one pass
"""
# @param head ... | [
"me@davidadamojr.com"
] | me@davidadamojr.com |
ae5fa2cf162831595429963b02bdc5cfc7fb8baf | 7e9daf6a2a3ebfb969e793f92afc0dc5f1c2fc35 | /venv/bin/pip | f925d1739221b77a3093bdff330b2aded4106b0b | [] | no_license | NARESHSWAMI199/5-Star-On-Hacker-Rank-Python | e43ce5cb3429d2a683c37e6f4ba6440d073d47c2 | 51f245d1d0966de21ddf861b22fe3379e7c8a0a7 | refs/heads/main | 2023-02-25T03:05:25.330205 | 2021-01-19T13:49:27 | 2021-01-19T13:49:27 | 325,296,957 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 256 | #!/home/naresh/Documents/django/hrank/venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from pip._internal.cli.main import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"swaminaresh993@gmail.com"
] | swaminaresh993@gmail.com | |
105ea887fde8976e0371b1515151cd874df939cd | 39dc5f1ffa71ad5e7aab5e92bb118bddf3ddae44 | /ats/users/urls.py | 63a22a7046e3bb8a9decd34439b0530732abd1fc | [
"MIT"
] | permissive | MahmoudFarid/ats | 14422a136c574d33745ac874e02e2211cce8bf14 | 1f882168cba2f34451cbb9bba1e37ce93ef0c465 | refs/heads/master | 2023-08-28T09:08:49.860168 | 2020-07-28T20:35:00 | 2020-07-28T20:35:00 | 278,744,279 | 0 | 0 | MIT | 2021-11-12T15:22:34 | 2020-07-10T22:23:07 | Python | UTF-8 | Python | false | false | 358 | py | from django.urls import path
from ats.users.views import (
user_detail_view,
user_redirect_view,
user_update_view,
)
app_name = "users"
urlpatterns = [
path("~redirect/", view=user_redirect_view, name="redirect"),
path("~update/", view=user_update_view, name="update"),
path("<str:email>/", vie... | [
"mahmoud.farid.94@gmail.com"
] | mahmoud.farid.94@gmail.com |
21c2ff1c781282e130ce340af0483a9cecda2ee7 | ced2fe3abf39bf14519feb809f5cd4e56c828b46 | /notebooks/solution/control.py | 1225ebf7d93259de25bc077dcf008f6d1f42287a | [
"CC-BY-4.0"
] | permissive | nanounanue/pydy-tutorial-pycon-2014 | f68fb8bb967f6229743151c023b0b6da50d46f24 | 9a111ada7478a16c41ab75253e631a400febb083 | refs/heads/master | 2020-12-25T16:25:38.826055 | 2014-06-20T14:54:37 | 2014-06-20T14:54:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,454 | py | #!/usr/bin/env python
# Controller Design
from numpy import zeros, matrix, eye, dot, asarray
from numpy.linalg import inv
from scipy.linalg import solve_continuous_are
from .utils import controllable
from .visualization import *
equilibrium_point = zeros(len(coordinates + speeds))
equilibrium_dict = dict(zip(coordi... | [
"moorepants@gmail.com"
] | moorepants@gmail.com |
a18b2132c6645e3c3e8102f1e3acf82ca7ee3c73 | bc441bb06b8948288f110af63feda4e798f30225 | /tuna_service_sdk/model/easy_flow/task_pb2.pyi | 99c3f43d6dca4676b4ba29fcf6e453c206047933 | [
"Apache-2.0"
] | permissive | easyopsapis/easyops-api-python | 23204f8846a332c30f5f3ff627bf220940137b6b | adf6e3bad33fa6266b5fa0a449dd4ac42f8447d0 | refs/heads/master | 2020-06-26T23:38:27.308803 | 2020-06-16T07:25:41 | 2020-06-16T07:25:41 | 199,773,131 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,667 | pyi | # @generated by generate_proto_mypy_stubs.py. Do not edit!
import sys
from google.protobuf.descriptor import (
Descriptor as google___protobuf___descriptor___Descriptor,
)
from google.protobuf.internal.containers import (
RepeatedCompositeFieldContainer as google___protobuf___internal___containers___RepeatedC... | [
"service@easyops.cn"
] | service@easyops.cn |
6b7b060513cf603782ed5bf499c61bedf4ab8776 | 43ff15a7989576712d0e51f0ed32e3a4510273c0 | /tools/pocs/bugscan/exp_602.py | 9d51ac6e5eea714832eab404bedc4db5c96a7b00 | [] | no_license | v1cker/kekescan | f2b51d91a9d6496e2cdc767eb6a600171f513449 | 3daa1775648439ba9e0003a376f90b601820290e | refs/heads/master | 2020-09-19T16:26:56.522453 | 2017-06-15T02:55:24 | 2017-06-15T02:55:24 | 94,495,007 | 6 | 3 | null | null | null | null | UTF-8 | Python | false | false | 1,189 | py | # -*- coding: utf-8 -*-
from dummy import *
from miniCurl import Curl
curl = Curl()
#!/usr/bin/env python
# -*- coding: utf-8 -*-
__author__ = 'tyq'
# Name: Wordpress Work the flow file upload 2.5.2 Shell Upload Vulnerability
# Refer: https://www.bugscan.net/#!/x/21599
def assign(service, arg):
... | [
"liyueke@huobi.com"
] | liyueke@huobi.com |
fcbbaec32e58baf63051f622962e9ba754e5e366 | 908655251066427f654ee33ebdf804f9f302fcc3 | /Tests/Pedestrian/Pedestrian_AS.py | 6fca7c3c2b9f432c82c945dd4a51c48690014dc8 | [] | no_license | maxiaoba/MCTSPO | be567f80f1dcf5c35ac857a1e6690e1ac599a59d | eedfccb5a94e089bd925b58f3d65eef505378bbc | refs/heads/main | 2023-07-05T02:20:16.752650 | 2021-07-06T06:04:40 | 2021-07-06T06:04:40 | 381,811,407 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,548 | py | import mcts.AdaptiveStressTestingActionSpace as AST_AS
import mcts.ASTSim as ASTSim
import mcts.MCTSdpw as MCTSdpw
import mcts.AST_MCTS as AST_MCTS
import numpy as np
from Pedestrian.av_simulator import AVSimulator
from Pedestrian.av_reward import AVReward
from Pedestrian.av_spaces import AVSpaces
from mylab.envs.ast_... | [
"xiaobaima@DNab421bb2.stanford.edu"
] | xiaobaima@DNab421bb2.stanford.edu |
f66d367cd6e818d2f464c01786bf01dada756def | fae0230fae5f2e762e299785cbd66ebf7330d937 | /watchtower/_io.py | 9474a5b819d01bd7b9c93eb35a3e6ecabc9bf44c | [] | no_license | NelleV/watchtower | e4bb6c178cfaf9bf909018692662769153a64d2b | 39b5ab198ed03cf4e0b11aa766683b244125bd58 | refs/heads/master | 2022-10-09T18:32:36.344014 | 2022-09-28T10:02:10 | 2022-09-28T10:02:10 | 80,778,407 | 1 | 3 | null | 2017-04-10T18:32:18 | 2017-02-02T23:19:39 | Python | UTF-8 | Python | false | false | 651 | py | import pandas as pd
import os
def _update_and_save(filename, raw, old_raw=None):
"""
"""
if old_raw is not None:
raw = pd.concat([raw, old_raw], ignore_index=True)
if "id" in raw.columns:
subset_column = "id"
elif "sha" in raw.columns:
subset_column = "sha"
... | [
"nelle.varoquaux@gmail.com"
] | nelle.varoquaux@gmail.com |
c340f5ae35cb6ada1d2fe7cae70e4fcd2150d17a | ac5e52a3fc52dde58d208746cddabef2e378119e | /exps-gsn-edf/gsn-edf_ut=2.5_rd=0.8_rw=0.06_rn=4_u=0.075-0.35_p=harmonic-2/sched=RUN_trial=32/sched.py | 95f1fd42aa48e0981658416011cf8039490df40a | [] | no_license | ricardobtxr/experiment-scripts | 1e2abfcd94fb0ef5a56c5d7dffddfe814752eef1 | 7bcebff7ac2f2822423f211f1162cd017a18babb | refs/heads/master | 2023-04-09T02:37:41.466794 | 2021-04-25T03:27:16 | 2021-04-25T03:27:16 | 358,926,457 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 294 | py | -X FMLP -Q 0 -L 3 85 400
-X FMLP -Q 0 -L 3 62 200
-X FMLP -Q 0 -L 3 61 200
-X FMLP -Q 1 -L 2 55 300
-X FMLP -Q 1 -L 2 54 175
-X FMLP -Q 1 -L 2 35 200
-X FMLP -Q 2 -L 1 32 125
-X FMLP -Q 2 -L 1 25 100
-X FMLP -Q 3 -L 1 25 175
-X FMLP -Q 3 -L 1 22 100
14 150
10 250
| [
"ricardo.btxr@gmail.com"
] | ricardo.btxr@gmail.com |
9ebb16b914fced04b98c5b6a064841ca987a4e17 | ccf94dcb6b1500fcbbd56964ae8c4832a496b8b3 | /python/baiduads-sdk-auto/test/test_negative_word_packet.py | 2d84a0b0df973bbdbe590260f3d6719c3f2cf800 | [
"Apache-2.0"
] | permissive | baidu/baiduads-sdk | 24c36b5cf3da9362ec5c8ecd417ff280421198ff | 176363de5e8a4e98aaca039e4300703c3964c1c7 | refs/heads/main | 2023-06-08T15:40:24.787863 | 2023-05-20T03:40:51 | 2023-05-20T03:40:51 | 446,718,177 | 16 | 11 | Apache-2.0 | 2023-06-02T05:19:40 | 2022-01-11T07:23:17 | Python | UTF-8 | Python | false | false | 688 | py | """
dev2 api schema
'dev2.baidu.com' api schema # noqa: E501
Generated by: https://openapi-generator.tech
"""
import sys
import unittest
import baiduads
from baiduads.negativeword.model.negative_word_packet import NegativeWordPacket
class TestNegativeWordPacket(unittest.TestCase):
"""NegativeWordPac... | [
"tokimekiyxp@foxmail.com"
] | tokimekiyxp@foxmail.com |
5979042ecef7aab7fc251af4efd1c0f05b6ca7eb | 9a28e0cecdf71cdb4eccdfc7df2554bd421fa69f | /src/hio/core/udp/udping.py | bff163c93346be5c63bb8cf904ea68b1a1ca4e35 | [
"Apache-2.0"
] | permissive | cellofellow/hio | a1700f3c8abc8100926dc4fc0af87efc294f6917 | 1296d196543ad01829dcb86844dfd5881af5a038 | refs/heads/master | 2023-04-04T01:27:01.449465 | 2021-04-08T17:26:01 | 2021-04-08T17:26:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,837 | py | # -*- encoding: utf-8 -*-
"""
hio.core.udping Module
"""
import sys
import os
import errno
import socket
from binascii import hexlify
UDP_MAX_DATAGRAM_SIZE = (2 ** 16) - 1 # 65535
UDP_MAX_SAFE_PAYLOAD = 548 # IPV4 MTU 576 - udp headers 28
# IPV6 MTU is 1280 but headers are bigger
UDP_MAX_PACKET_SIZE = min(1024, UD... | [
"smith.samuel.m@gmail.com"
] | smith.samuel.m@gmail.com |
3c52afe069397e41486a991fd1e98c2ef777447d | 3d989666e6ceb2abc9175dcf7b1d0c1f8c76d205 | /py_solution/p172_factorial_trailing_zeroes.py | 2e88229ace7c046a24203162ad16036725347fd1 | [] | no_license | dengshilong/leetcode | 00ae0898b4645efd1de69a13f2fa92606e899297 | 5ab258f04771db37a3beb3cb0c490a06183f7b51 | refs/heads/master | 2021-01-10T11:58:10.396399 | 2020-04-10T12:10:54 | 2020-04-10T12:10:54 | 47,912,974 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 480 | py | class Solution(object):
def trailingZeroes(self, n):
"""
:type n: int
:rtype: int
"""
res = 0
while n >= 5:
temp = n // 5
res += temp
n = temp
return res
if __name__ == "__main__":
solution = Solution()
assert sol... | [
"dengshilong1988@gmail.com"
] | dengshilong1988@gmail.com |
76eeb3e354352d6dfd8a7b6d6e3e27b30af289a5 | 43eb7f8581a8dbfa1298b4e6d84fc7b7a552e335 | /python/kserve/kserve/models/v1beta1_inference_service_status.py | f509e6bb2db9b1958db1fd812b355ccd0c7546b0 | [
"Apache-2.0"
] | permissive | Suresh-Nakkeran/kserve | c2d114f7258a70b4c8ddeb8ee8c584d4eee0f81b | d3910e0fc6af4bf73156a53bd912d6e4acc87533 | refs/heads/master | 2023-07-29T00:17:28.900100 | 2021-09-11T08:04:54 | 2021-09-11T08:04:54 | 406,243,335 | 0 | 0 | Apache-2.0 | 2021-09-14T05:59:05 | 2021-09-14T05:59:04 | null | UTF-8 | Python | false | false | 9,203 | py | # Copyright 2020 kubeflow.org.
#
# 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 writing,... | [
"noreply@github.com"
] | Suresh-Nakkeran.noreply@github.com |
2b7a2c90bae671eb7855d16bc122acb73d9dafdc | a16f3f148455395596405fd7b11df62932f3937d | /career/rabbit/send2.py | 8701013073a594d7af24fe5ebb5aa71253c6e7c5 | [] | no_license | wyzane/skill-general | 8eeb5984c42ec2bcb59c634c7f7bca7c2476977b | 6e5a498dd5b63117a6a20aa81ac67a1999d8ac21 | refs/heads/master | 2020-05-22T21:51:18.061659 | 2019-10-18T15:56:26 | 2019-10-18T15:56:26 | 186,535,789 | 0 | 0 | null | 2019-10-18T15:52:54 | 2019-05-14T03:12:39 | Python | UTF-8 | Python | false | false | 619 | py | import sys
import pika
conn = pika.BlockingConnection(pika.ConnectionParameters(host='localhost'))
channel = conn.channel()
channel.queue_declare(queue='task_queue',
durable=True) # 消息持久化,重启rabbitmq消息不会丢失
message = ' '.join(sys.argv[1:]) or "hello world"
channel.basic_publish(exchange='',
... | [
"wyzane1207@163.com"
] | wyzane1207@163.com |
57fba70996c5020d941fdc5ac32be0f9eb38101e | e6acc3021714e47345213d13d6344e2d89d4a960 | /streamlit_analytics/__init__.py | 52fbbd335c80c4ce6d68b508bce9a1106a4d77f0 | [
"MIT"
] | permissive | napoles-uach/streamlit-analytics | 157aa7521647dbe490c75af893361aa6e0ff613b | fe5a7855889a66cf8d6f3eabf8841f5c00e9b492 | refs/heads/main | 2023-03-01T20:42:58.361148 | 2021-01-29T23:32:28 | 2021-01-29T23:32:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 86 | py | __version__ = "0.2.1"
from .main import track, start_tracking, stop_tracking, counts
| [
"johannes.rieke@gmail.com"
] | johannes.rieke@gmail.com |
a51fd66e325e13d07571a0145b88b73ff676b50b | a2d36e471988e0fae32e9a9d559204ebb065ab7f | /huaweicloud-sdk-drs/huaweicloudsdkdrs/v3/model/update_database_object_req.py | 698caaaa0fef8649ba108b232f7219fc181dd69a | [
"Apache-2.0"
] | permissive | zhouxy666/huaweicloud-sdk-python-v3 | 4d878a90b8e003875fc803a61414788e5e4c2c34 | cc6f10a53205be4cb111d3ecfef8135ea804fa15 | refs/heads/master | 2023-09-02T07:41:12.605394 | 2021-11-12T03:20:11 | 2021-11-12T03:20:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,360 | py | # coding: utf-8
import re
import six
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
class UpdateDatabaseObjectReq:
"""
Attributes:
openapi_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): Th... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
a0fe504dc7c1f9b916085038b62f0c6730b2f12e | 4f1144a15ba86cc183c5c69e578db8019133e660 | /src/official/transformer/v2/optgen_v13.py | 4d5704a53d28e02a0633f5fa29f6e7462359e4ca | [
"MIT"
] | permissive | AspirinCode/cmg | 244b718c64659cde505cedc449a5b65e5ede7c6d | fe5b4d8778df7bd85f78ec463d85185415a1c591 | refs/heads/main | 2023-01-03T09:42:47.433393 | 2020-10-26T21:39:29 | 2020-10-26T21:39:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 30,494 | py | # Copyright 2018 The TensorFlow Authors. 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 applica... | [
"nomolos79@gmail.com"
] | nomolos79@gmail.com |
3642d4130b2a6948154873329d6f8ed1f4a69df7 | 4f408d65db60911f56110c351cb3b64835e0c5fb | /caffe2/python/net_printer_test.py | 2d6f5a172326cc0d170bb65254e0db72b09f873c | [
"Apache-2.0",
"MIT",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"BSD-2-Clause"
] | permissive | KeyKy/caffe2_SSD | a02c065aef2dbcfd00faae8be0440d7a4ff0fb76 | 7235688ea5e212dbe8609d780dd94c8c7d9fef54 | refs/heads/master | 2021-09-18T14:36:11.247427 | 2018-07-10T09:59:35 | 2018-07-10T09:59:35 | 89,928,918 | 8 | 5 | null | 2018-07-27T02:14:38 | 2017-05-01T14:04:20 | Jupyter Notebook | UTF-8 | Python | false | false | 2,901 | py | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
from caffe2.python import net_printer
from caffe2.python.checkpoint import Job
from caffe2.python.net_builder import ops
from caffe2.python.task import Task, final_output... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
549746b4c2e4c7057bd7732d19f58753950efb1d | 5a3c4b802ea7d5ce380c38415929ebaa8799eb06 | /tests/test_analyze_gifs.py | 700b9bad30c536d79dd4ab352c4a24dcff1e0a73 | [
"MIT"
] | permissive | get-wrecked/gifalyzer | fe18855c83b2b9e2188faef92b317fa81e913b4d | 0731d03766cfecf3fc6c64cc17022563da09b85b | refs/heads/master | 2022-04-10T10:57:35.602500 | 2019-06-10T22:32:04 | 2019-06-10T22:32:04 | 93,275,859 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 514 | py | import os
import pytest
from gifalyzer import analyze_gif
def test_analyze_gifs_normal():
report = analyze_gif(get_sample('200x202-26-130-130-0.gif'))
assert report['dimensions'] == (200, 202)
assert report['frame_count'] == 26
assert report['frame_delay_ms'] == 130
assert report['last_frame_del... | [
"git@thusoy.com"
] | git@thusoy.com |
ee57158af40112b19388d679d38127b30806d32a | c9ad6ad969de505b3c8471c6f46dfd782a0fb498 | /0x05-python-exceptions/0-safe_print_list.py | 16119623870bda212d1982f12fcd78d50aa22dde | [] | no_license | enterpreneur369/holbertonschool-higher_level_programming | 002fd5a19b40c8b1db06b34c4344e307f24c17ac | dd7d3f14bf3bacb41e2116d732ced78998a4afcc | refs/heads/master | 2022-06-20T00:57:27.736122 | 2020-05-06T14:26:10 | 2020-05-06T14:26:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 344 | py | #!/usr/bin/python3
""" safe_print_list
Python function to print the elements of a list
"""
def safe_print_list(my_list=[], x=0):
i, p = 0, 0
try:
for i in range(x):
print("{}".format(my_list[i]), end="")
p = p + 1
except IndexError as err:
pass
finally:
... | [
"jose.calderon@holbertonschool.com"
] | jose.calderon@holbertonschool.com |
8a1230827541d821262fb3f1280ea53c87565736 | 8c618e16b15ad33a6ab6dcc4e0511e7a3acba094 | /remcall/schema/__init__.py | 8eb3a63f088ff55fb93ab052c031ca2d24a80f9d | [
"MIT"
] | permissive | luphord/remcall | 0bef9bbf13be697645f7b93fbd9a5e3ee9afd97b | 31419ff0f5c21ea2d90f9cabdaec85b6eebcaa12 | refs/heads/trunk | 2021-12-25T23:44:39.888706 | 2021-12-03T08:15:58 | 2021-12-03T08:15:58 | 165,920,464 | 0 | 0 | MIT | 2021-12-03T08:15:59 | 2019-01-15T20:42:12 | Python | UTF-8 | Python | false | false | 634 | py | from .core import Type, Interface, Enum, Record, Primitive, Method, \
string, int8, int16, int32, int64, uint8, uint16, \
uint32, uint64, float32, float64, void, boolean, \
date, datetime, time, primitive_types, Array, Schema
from .base import assert_name
__all__ =... | [
"luphord@protonmail.com"
] | luphord@protonmail.com |
7dd54bed4c22108fdd325ab8efa1459e4fdd1d11 | a47192d5abd5f34f63b2c0e27b954ae07de47302 | /day20/range.py | d17de1cba89cc621b63647419a191c9a16be7aa0 | [] | no_license | Godsmith/adventofcode2016 | 46639af6e015f0a024cde32ba0a1f98268899f4f | e036fb68bb53b9c79aa143b6c4645db218f77862 | refs/heads/master | 2020-06-15T04:21:21.012830 | 2017-01-10T21:52:30 | 2017-01-10T21:52:30 | 75,330,889 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 641 | py | class Range:
def __init__(self, low, high):
self.low = low
self.high = high
def __repr__(self):
return 'Range<%s-%s>' % (self.low, self.high)
def __hash__(self):
return hash(tuple([self.low, self.high]))
def __eq__(self, other):
return self.low == other.low and... | [
"filip.lange@gmail.com"
] | filip.lange@gmail.com |
cc748c6aadec1a2627e7132cfd476d19c690933c | f7127398e6bc60cdece53014dfebb58aa99c0fbd | /aiogram_dialog/widgets/kbd/checkbox.py | b6a4e010a29614fdc9277b51a146f248f8d6f885 | [] | no_license | drforse/aiogram_dialog | 25fcae2579e9b37c43a41303232d009e04316c6a | 984496ee7818d7896235d20f30bb662f56293385 | refs/heads/master | 2023-02-28T21:39:53.331894 | 2021-02-05T05:50:15 | 2021-02-05T05:50:15 | 336,158,550 | 0 | 0 | null | 2021-02-05T03:58:44 | 2021-02-05T03:58:43 | null | UTF-8 | Python | false | false | 1,300 | py | from typing import Callable, Optional, Union, Dict, Awaitable
from aiogram.types import CallbackQuery
from aiogram_dialog.manager.manager import DialogManager
from aiogram_dialog.widgets.text import Text, Case
from .button import Button
OnStateChanged = Callable[[CallbackQuery, "Checkbox", DialogManager], Awaitable]... | [
"tishka17@mail.ru"
] | tishka17@mail.ru |
fef0f186e3b388ef8dbb58d698766de6b8a4cbb0 | dee9432b12b8d5667ba3f58889344f89a032229d | /food/robots.py | 62e74a1df46393c50327b29f48029c5a8199bdf9 | [] | no_license | rolllyroman/lucas | a39743d697483f962617428bc61bfc053e9b4095 | e219ed3fc69ad36132ac4361c1766b279269323c | refs/heads/master | 2020-04-16T06:48:55.329438 | 2019-01-24T06:20:44 | 2019-01-24T06:20:44 | 150,229,829 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,006 | py | #coding:utf-8
import requests
import time
from lxml import etree
import json
# import MySQLdb
import pymysql
import random
import sys
reload(sys)
sys.setdefaultencoding( "utf-8" )
from constant import USER_AGENT
from selenium import webdriver
from selenium.webdriver.chrome.options import Options
chromeOptions = w... | [
"1983654762@qq.com"
] | 1983654762@qq.com |
8c8b678d13701ba585b3238bd029821548cc4783 | f7550c4964dc8f3c59dbcebe39e947bd6a264dba | /1.Recorsions - 1/String into Int.py | 49eb468cd5f79f87fb2aa7dff14c15aa4c47eb1d | [] | no_license | Jashwanth-k/Data-Structures-and-Algorithms | db5e2e30932e0a35db578c19ae6cff9f147b7c3d | 1ebf9986999a474cb094f3ab04616a46f2887043 | refs/heads/main | 2023-08-25T02:57:17.394322 | 2021-10-11T15:27:56 | 2021-10-11T15:27:56 | 402,448,718 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 229 | py | def str_to_int(s):
l = len(s)
if l == 1:
return ord(s[0]) - ord('0')
a = str_to_int(s[1:])
b = ord(s[0]) - ord('0')
output = b*(10**(l-1)) + a
return output
s = ''
print(str_to_int(s)) | [
"noreply@github.com"
] | Jashwanth-k.noreply@github.com |
2aa7e05f460ae0b7d0f6ea6a66312db082a1ce07 | da052c0bbf811dc4c29a83d1b1bffffd41becaab | /core/serial_number_expired_date/models/stock_picking.py | 6b51aa2baf397a198e54c46a84b406b3800e23da | [] | no_license | Muhammad-SF/Test | ef76a45ad28ac8054a4844f5b3826040a222fb6e | 46e15330b5d642053da61754247f3fbf9d02717e | refs/heads/main | 2023-03-13T10:03:50.146152 | 2021-03-07T20:28:36 | 2021-03-07T20:28:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,983 | py | # -*- coding: utf-8 -*-
import logging
from odoo import models, fields, api , _
import datetime
# from dateutil.relativedelta import relativedelta
from odoo.tools import DEFAULT_SERVER_DATETIME_FORMAT, float_compare, float_round
class PackOperation(models.Model):
_inherit = 'stock.pack.operation.lot'
expi... | [
"jbalu2801@gmail.com"
] | jbalu2801@gmail.com |
1939165261e9bc871d33a3d26d3408e0baaf61a6 | cd0591c773702d66d964e325f494b17918617949 | /hgvs/utils/altseq_to_hgvsp.py | f47725b71196b3a2abc09f81931572745eaf3ced | [
"Apache-2.0"
] | permissive | SunbyMoon/hgvs | 9de0f1a2ddc134f072e490b989982d6e90bd164a | 2f348d53ee542576d0035a54757daa5dcd077e6b | refs/heads/master | 2020-03-22T15:51:35.995761 | 2018-07-03T04:19:09 | 2018-07-03T04:19:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,292 | py | # -*- coding: utf-8 -*-
"""Utility class for creating an hgvsp SequenceVariant object,
given a transcript with variants applied.
Used in hgvsc to hgvsp conversion.
"""
from __future__ import absolute_import, division, print_function, unicode_literals
import hgvs
from ..edit import (AAExt, AAFs, AARefAlt, AASub, Dup)... | [
"reecehart@gmail.com"
] | reecehart@gmail.com |
20dd8bac432917f44ec65e02ad42a37c002d8dc7 | dd6c759081c1490c624de00f9519216613de5293 | /src/ui/__init__.py | 02186177946aec017837c2690ac545a6690800ea | [
"MIT"
] | permissive | forcemain/SwarmOps | 76151fd31dff5288f3bc66a24c03547c6d9bb142 | 07675b362c83ce74bae13cb1c9ee627dc4ee25ed | refs/heads/master | 2021-06-18T12:41:11.960706 | 2017-05-10T01:04:44 | 2017-05-10T01:04:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,826 | py | # -*- coding:utf-8 -*-
#
# SwarmOps views for ui
#
from flask import Blueprint, render_template, url_for, redirect, g, abort
from utils.public import logger, login_required
ui_blueprint = Blueprint("ui", __name__, template_folder="templates", static_folder='static')
''' swarm route'''
@ui_blueprint.route("/")
@ui_bl... | [
"staugur@vip.qq.com"
] | staugur@vip.qq.com |
b783d5bf51d4bb8dd0b44dab30f43382f53dfeb2 | bb9ab2b88c990377e58fd2b719a60f2e4a4689ce | /est-sfs/01_vcf_to_estsfs.py | 8304ae2a0ee0641c79e0ee2e8fe764171fc6c5b3 | [] | no_license | silvewheat/biocal-cli | 7ded0e05c134c932a7dd45130c546cd607b443b9 | 134a0bf4f0d318de50a92a1e72d18c13580e64e2 | refs/heads/master | 2022-12-11T21:04:25.240272 | 2022-11-28T02:40:02 | 2022-11-28T02:40:02 | 147,090,111 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,551 | py | # -*- coding: utf-8 -*-
"""
Created on 2022 10-14
@author: Yudongcai
@Email: yudong_cai@163.com
"""
import re
import typer
import numpy as np
from cyvcf2 import VCF
from collections import Counter, defaultdict
def convert_gts(gt_bases):
gt_split = re.compile(r'[/|]')
bases = []
for base in gt_bases:
... | [
"silverwheat@163.com"
] | silverwheat@163.com |
80c66729e6cbcb7721e17efef2dc1381872cf87d | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/otherforms/_minefields.py | 9a6f4d39f05827d2da9dbb885032211575fb3e49 | [
"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 | 234 | py |
#calss header
class _MINEFIELDS():
def __init__(self,):
self.name = "MINEFIELDS"
self.definitions = minefield
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.basic = ['minefield']
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
469e38e83b1d2afb5cf82b1f1a90849485818ff4 | fa08376603d6136ec81f958510a363192c8ced83 | /site-packages/amuse/community/huayno/interface.py | b5b2c5802b0f60328edef50762add7d292694ac4 | [] | no_license | BrianTCook/amuse_env | e8da14e0bfd917179c3973e54daab1f980ae434c | 2e7eff89e82a859020604b692fb94bdd67ed7798 | refs/heads/master | 2021-05-18T21:14:52.897911 | 2020-04-04T16:11:58 | 2020-04-04T16:11:58 | 251,420,587 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,952 | py | from amuse.community import *
from amuse.community.interface.gd import GravitationalDynamicsInterface,GravityFieldInterface
from amuse.community.interface.gd import GravitationalDynamics,GravityFieldCode
class HuaynoInterface(CodeInterface,
LiteratureReferencesMixIn,
Gravita... | [
"btcook@umich.edu"
] | btcook@umich.edu |
df42fb81ab121a9776879d10e34a82753afc05d5 | 8cf5d738aa1bf604c1215bff0e57aef0218a5194 | /0x1F-pascal_triangle/0-pascal_triangle.py | 570ddb16f491d2e0ae1e2b7f26f319cb0f7f6d38 | [] | no_license | PilarPinto/holbertonschool-interview | 3493bdb41fbc437e4dcf58db99cebcc350c2029f | b58bbce825426e9a15fee67dec65768f0ae0d724 | refs/heads/master | 2023-07-13T09:28:56.071905 | 2021-08-27T03:29:44 | 2021-08-27T03:29:44 | 281,306,960 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 472 | py | #!/usr/bin/python3
'''
Module where the integers representing the Pascal’s triangle
'''
def pascal_triangle(n):
'''Pascal priniting functions'''
if n <= 0:
return []
pas_r = [[1]]
if n > 1:
pas_r.append([1, 1])
for ind in range(3, n + 1):
pas_r.append([1] + list(ma... | [
"piapintoch@unal.edu.co"
] | piapintoch@unal.edu.co |
1b4daeedaade35bbdf704edc9591e83126e98f90 | 3805c40a5f037cb6439798f4ffc6babc5cddc004 | /dogpile/__init__.py | 345ce1cbe636b5f78423505e2638f10c3e99b39a | [
"BSD-2-Clause",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | thestick613/dogpile.cache | ba1df3a8e71b7f22cc4b3bc52f32a7d90555b125 | a0939e132dc0964a315137787903a561f5fa5f06 | refs/heads/master | 2022-07-15T13:34:37.923493 | 2022-06-23T08:02:02 | 2022-06-23T08:02:02 | 205,935,922 | 0 | 0 | NOASSERTION | 2022-06-23T08:02:03 | 2019-09-02T21:00:39 | Python | UTF-8 | Python | false | false | 106 | py | __version__ = "0.7.2"
from .lock import Lock # noqa
from .lock import NeedRegenerationException # noqa
| [
"mike_mp@zzzcomputing.com"
] | mike_mp@zzzcomputing.com |
f10521bec9c35ed9de1f626cde80d9f4c3eccfd2 | 3b5c46ce2daa75e1e157838d0f6cfd92469471a0 | /plastering/inferencers/scrabble/ground_truth_gen.py | 06262e23e98f035aa786f957245812f56a341b1c | [
"MIT"
] | permissive | plastering/plastering | 1b4e9c04fce4b26b22fe5ade05af9baf644b4eaa | 26ffeecb38844ebb122fde5d9bd2276a7b4150a0 | refs/heads/master | 2023-04-04T07:50:59.087529 | 2021-05-17T23:31:40 | 2021-05-17T23:31:40 | 149,086,461 | 37 | 17 | MIT | 2023-03-24T23:19:24 | 2018-09-17T07:32:17 | Python | UTF-8 | Python | false | false | 3,069 | py | import pdb
import json
import argparse
parser = argparse.ArgumentParser()
parser.add_argument(choices=['ap_m','ebu3b', 'bml'], dest='building')
args = parser.parse_args()
import pandas as pd
from brick_parser import equipTagsetList as equip_tagsets, \
locationTagsetList as location_tagsets,\
... | [
"bk7749@gmail.com"
] | bk7749@gmail.com |
12e23d45d86604712c62c27d9d5d24bbd21d6e2f | c325866c577343752f0d4394c3d96e599674df0e | /models/nosis_configuracion.py | b133bf8a84cf2a4d4f2ff5dd7f1a714f0cc0ee4e | [] | no_license | levislibra/financiera_nosis | ff11f4f8417917d48220d40c1524f91d5f1a4d24 | 3227e9258e2f8519880081232070734e929af3f8 | refs/heads/master | 2023-01-05T20:23:01.509995 | 2022-12-22T18:33:05 | 2022-12-22T18:33:05 | 236,527,122 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,340 | py | # -*- coding: utf-8 -*-
from openerp import models, fields, api
from datetime import datetime, timedelta
from dateutil import relativedelta
from openerp.exceptions import UserError, ValidationError
import time
import requests
ENDPOINT_NOSIS = 'https://ws01.nosis.com/rest/variables'
class FinancieraNosisConfiguracion... | [
"levislibra@hotmail.com"
] | levislibra@hotmail.com |
563eba447c671fd512d395f592dacda7801a7acf | 1b9075ffea7d4b846d42981b41be44238c371202 | /2008/devel/applications/office/abiword/actions.py | e75fb6419d91ba18ae0f32bc78933b9d14e7ebfc | [] | no_license | pars-linux/contrib | bf630d4be77f4e484b8c6c8b0698a5b34b3371f4 | 908210110796ef9461a1f9b080b6171fa022e56a | refs/heads/master | 2020-05-26T20:35:58.697670 | 2011-07-11T11:16:38 | 2011-07-11T11:16:38 | 82,484,996 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 848 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 2
# See the file http://www.gnu.org/copyleft/gpl.txt
from pisi.actionsapi import autotools
from pisi.actionsapi import pisitools
from pisi.actionsapi import get
def setup():
autotools.configure("--with-x \
... | [
"MeW@a748b760-f2fe-475f-8849-a8a11d7a3cd2"
] | MeW@a748b760-f2fe-475f-8849-a8a11d7a3cd2 |
c805b342485e670743486773449b5dfe5ee5d797 | 5c269629ca7d5ffb3a6035d056ae88f90fd8153a | /pandas/tests/series/test_dtypes.py | 6864eac603ded8a41a02dd6bd6d298bf10d41607 | [
"BSD-3-Clause",
"LicenseRef-scancode-other-permissive",
"BSD-2-Clause"
] | permissive | bdrosen96/pandas | 416e5cb1941b21cee38a30346056a257b7d2b0ce | 506520bd35331aa82db50686c07d96594cac0c10 | refs/heads/master | 2021-01-15T09:20:22.851970 | 2016-07-19T02:06:18 | 2016-07-19T02:06:23 | 63,601,381 | 0 | 0 | NOASSERTION | 2019-11-21T13:08:56 | 2016-07-18T12:31:49 | Python | UTF-8 | Python | false | false | 5,127 | py | # coding=utf-8
# pylint: disable-msg=E1101,W0612
import sys
from datetime import datetime
import string
from numpy import nan
import numpy as np
from pandas import Series
from pandas.tseries.index import Timestamp
from pandas.tseries.tdi import Timedelta
from pandas.compat import lrange, range, u
from pandas import... | [
"jeff@reback.net"
] | jeff@reback.net |
f982f49bded21d3ec480ed23147785cb1e622b6f | e4007870b4d75ba23c2f12ac6646f272cf17865c | /Types/Detection_3D.py | 33c52d337085600db6cc52e4e9c38d9631902223 | [
"MIT"
] | permissive | knut0815/PythonUtility | 385ce332ff34501be7ad21ac7948eb609770e72a | 0062e1e60dc151776b963d13bc4c1763eb90d333 | refs/heads/master | 2023-01-10T09:58:14.619531 | 2020-11-10T12:22:47 | 2020-11-10T12:22:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,453 | py | import numpy as np
from Utility.Classes.Frozen_Class import FrozenClass
class Detection3D(FrozenClass):
def __init__(self, frame, track_id, detection_type, truncation, occlusion, obs_angle, bbox, dimensions, location, rotation_y, score):
self.frame = frame
self.track_id = track_id
# detec... | [
"sebastian.bullinger@iosb.fraunhofer.de"
] | sebastian.bullinger@iosb.fraunhofer.de |
b649bb21ea563e3765210bd62d99d5b730a5b950 | 8fb2668de046fb47ffb3e0964746b400e75b7c83 | /crawl/fake_spider/tushare/kData.py | 79515c39159d08946ce04bb198cc6e7d8deaf6af | [] | no_license | reinhardtken/backtest-py | 5d8f080861851882d954f4bb944a8d374220498e | 6d14b10918c018081ab228030d2b3ac38eea267c | refs/heads/master | 2020-12-06T17:01:33.284011 | 2020-02-11T15:07:42 | 2020-02-11T15:07:42 | 232,512,884 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,473 | py | # -*- encoding: utf-8 -*-
# sys
import json
import datetime
# thirdpart
import pandas as pd
import tushare as ts
from pymongo import MongoClient
# this project
##########################
import util.crawl as util
import const.crawl as const
#http://tushare.org/classifying.html#id8
# code :股票代码
# name :股票名称
# date ... | [
"reinhardtken@hotmail.com"
] | reinhardtken@hotmail.com |
d6b66c5898c3f0ff071147ca16a962d71c7d3fe2 | f9d564f1aa83eca45872dab7fbaa26dd48210d08 | /huaweicloud-sdk-cae/huaweicloudsdkcae/v1/model/component_snapshot_context.py | 4520d2f8150fd8c09f48b38ca2704f273519d7c8 | [
"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 | 20,094 | py | # coding: utf-8
import six
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
class ComponentSnapshotContext:
"""
Attributes:
openapi_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key is att... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
4408f2da3cc0458926f976eb6d208f94a4dbb331 | 05a2097cbc167c0d8cfde5a039600c6994a34232 | /custom/penn_state/constants.py | 74aac3cb2025c0fd4a0abd1312f7931d10a6287f | [] | no_license | shashanks/commcare-hq | 9c641a4d830cd523410be150c2d341c4edbce38a | 44c2bd56bcb746f1f6c7b624ddefbe4215fc791c | refs/heads/master | 2020-12-11T06:12:36.705418 | 2013-12-17T08:35:23 | 2013-12-17T08:35:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 314 | py | DOMAIN = 'psu-legacy-together'
DAILY_DATA_XMLNS = 'http://openrosa.org/formdesigner/B6E92793-CB42-449C-ACE7-99B0E65FE3AE'
COACH_RESPONSE_XMLNS = 'http://openrosa.org/formdesigner/D42C8CAB-F17C-4E9C-921C-CA47E6AECE15'
WEEKLY_SCHEDULE_XMLNS = 'http://openrosa.org/formdesigner/F2F7A739-BDEF-4D14-B60F-371AFE901B71'
| [
"esoergel@gmail.com"
] | esoergel@gmail.com |
952498fe3ce65449fb818515ea9a956611e27c3a | 37f48a90a33015a6e51d8b4ad839f5741a0c320f | /NoSQL_Cassandra/4_where_clause.py | 68a612d995a381451d49b6fabe6b8caf595c9534 | [] | no_license | Hadryan/Data_Engineering | 90376170a9a6a9700d1a1f32ea4b6efe6cdcbd98 | f02db4f2ffb592277b44c2807884443c910725b1 | refs/heads/master | 2020-12-14T11:01:33.399933 | 2019-12-21T15:36:33 | 2019-12-21T15:36:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,248 | py | # Since NoSQL has no JOINs, where becomes imperative
import cassandra
from cassandra.cluster import Cluster
print('create connection to database \n')
try:
cluster = Cluster(['127.0.0.1'])
session = cluster.connect()
except Exception as e:
print(e)
print('create keyspace/database \n')
try... | [
"noreply@github.com"
] | Hadryan.noreply@github.com |
4088843b646eab6f6b40d2158cddb8ac622154dd | f0acc407f95b758fa734f5ed5f6506a8b20d2706 | /tests/test_tutorial/test_options/test_name/test_tutorial004_an.py | 087b436d55d07adedb8c0365657f3f42ab29d946 | [
"MIT"
] | permissive | shnups/typer | ede6d86c5b169e8caa7823b0552f8531ed041f84 | e0b207f3f577cb2e59fdd60da39686a2f5ed0e77 | refs/heads/master | 2023-08-31T01:54:21.168547 | 2023-08-01T09:36:09 | 2023-08-01T09:36:09 | 313,047,732 | 0 | 0 | MIT | 2020-11-15T14:22:06 | 2020-11-15T14:22:05 | null | UTF-8 | Python | false | false | 1,018 | py | import subprocess
import sys
import typer
from typer.testing import CliRunner
from docs_src.options.name import tutorial004_an as mod
runner = CliRunner()
app = typer.Typer()
app.command()(mod.main)
def test_option_help():
result = runner.invoke(app, ["--help"])
assert result.exit_code == 0
assert "-n... | [
"noreply@github.com"
] | shnups.noreply@github.com |
177511eb917f0c04de3ac00852473301adffedd1 | 55c250525bd7198ac905b1f2f86d16a44f73e03a | /Python/Scraper/scrapy/tests/test_command_version.py | f8c4ac141c2766133ad886ccb9a77791d7dbb1dc | [
"BSD-3-Clause"
] | permissive | NateWeiler/Resources | 213d18ba86f7cc9d845741b8571b9e2c2c6be916 | bd4a8a82a3e83a381c97d19e5df42cbababfc66c | refs/heads/master | 2023-09-03T17:50:31.937137 | 2023-08-28T23:50:57 | 2023-08-28T23:50:57 | 267,368,545 | 2 | 1 | null | 2022-09-08T15:20:18 | 2020-05-27T16:18:17 | null | UTF-8 | Python | false | false | 129 | py | version https://git-lfs.github.com/spec/v1
oid sha256:73dce6f404541d9151c420cb22ff641258ce3d66e825df13aa289ff4a5c1f1ad
size 1058
| [
"nateweiler84@gmail.com"
] | nateweiler84@gmail.com |
eb6a8f7da9c4bcaff2db10a52426f6a119af66c9 | a1c9c55e1520356113a320be18e8fcb31654a944 | /archive/0.9/generated/seaborn-violinplot-1.py | 87adeb3dba3ac608c3ceeb5db1a699327d0c16bb | [] | no_license | seaborn/seaborn.github.io | bac12a9255b41c7971e9e94ea393d372ef66ef62 | f70445bc3456f0216169806c2daf03452ca1eba4 | refs/heads/master | 2023-01-06T10:50:10.789810 | 2022-12-30T19:59:55 | 2022-12-30T19:59:55 | 70,731,605 | 16 | 5 | null | 2022-06-28T00:32:07 | 2016-10-12T18:56:12 | HTML | UTF-8 | Python | false | false | 123 | py | import seaborn as sns
sns.set(style="whitegrid")
tips = sns.load_dataset("tips")
ax = sns.violinplot(x=tips["total_bill"])
| [
"mwaskom@nyu.edu"
] | mwaskom@nyu.edu |
2e74d353ab354e12d997f17a482999f383cf75ab | 68c421b58f43c82ba1f7c5b95138f76094a44f8e | /telemetry_tempest_plugin/scenario/test_gnocchi.py | e283d2f288d9f71f0080f2164111e4f39526039b | [
"Apache-2.0"
] | permissive | NeCTAR-RC/telemetry-tempest-plugin | 37c986541ccad951e2cd7db3394a76a58ea1ce14 | fc990c4ada71ca3c45df2d4733bb1fb4b7f7c9e5 | refs/heads/master | 2021-06-27T03:24:35.519246 | 2019-05-24T06:21:57 | 2019-05-24T06:47:41 | 194,606,282 | 0 | 0 | null | 2019-07-01T05:36:00 | 2019-07-01T05:36:00 | null | UTF-8 | Python | false | false | 1,659 | py | # 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 writing, software
# d... | [
"sileht@sileht.net"
] | sileht@sileht.net |
d35548b0e453cd2577815b23e395954965d3dc5b | 6584124fee86f79ce0c9402194d961395583d6c3 | /blog/migrations/0008_auto_20150603_0708.py | 3f31a14ba2dcb128cea981661d996c147b8152a8 | [] | no_license | janusnic/webman | fdcffb7ed2f36d0951fd18bbaa55d0626cd271e1 | 2e5eaadec64314fddc19f27d9313317f7a236b9e | refs/heads/master | 2018-12-28T18:21:00.291717 | 2015-06-05T11:49:00 | 2015-06-05T11:49:00 | 35,676,834 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,550 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
import blog.models
class Migration(migrations.Migration):
dependencies = [
('blog', '0007_page'),
]
operations = [
migrations.CreateModel(
name='Slide',
field... | [
"janusnic@gmail.com"
] | janusnic@gmail.com |
6e62b6a94f556f56721f4c83e23b79e90a9d3e9e | 9d01e03d2e1ff388aad8331280892192e02c0f9d | /limix_genetics/test/test_mvnorm.py | 3fe54045b300c7d796064df3b8d5a0c6ef22f528 | [
"MIT"
] | permissive | limix/limix-genetics | a1dd7e18f55ce62265ca3deaeac0b83ff71239d8 | 9c69a59a61e030243a9f865a7f7ae8842859eaee | refs/heads/master | 2021-01-20T11:00:16.974644 | 2017-02-14T13:26:48 | 2017-02-14T13:26:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 364 | py | from limix_genetics import mvn_ecdf, mvn_eicdf
from numpy.testing import assert_allclose
def test_mvnorm():
x = [1, 2]
mean = [1.0, -0.3]
cov = [[1.5, 0.2],
[0.2, 0.7]]
cdf = mvn_ecdf(x, mean, cov)
icdf = mvn_eicdf(cdf, mean, cov)
assert_allclose(cdf, 0.98032128770733662)
asse... | [
"danilo.horta@gmail.com"
] | danilo.horta@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.