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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
6f7b09b3bc0afa1b87897d8811dee37992af9e92 | 09e57dd1374713f06b70d7b37a580130d9bbab0d | /benchmark/startPyquil1566.py | adf7d2e0df4b68ca67d20975984b7e68e9320ea4 | [
"BSD-3-Clause"
] | permissive | UCLA-SEAL/QDiff | ad53650034897abb5941e74539e3aee8edb600ab | d968cbc47fe926b7f88b4adf10490f1edd6f8819 | refs/heads/main | 2023-08-05T04:52:24.961998 | 2021-09-19T02:56:16 | 2021-09-19T02:56:16 | 405,159,939 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,272 | py | # qubit number=5
# total number=52
import pyquil
from pyquil.api import local_forest_runtime, QVMConnection
from pyquil import Program, get_qc
from pyquil.gates import *
import numpy as np
conn = QVMConnection()
def make_circuit()-> Program:
prog = Program() # circuit begin
prog += H(0) # number=3
pr... | [
"wangjiyuan123@yeah.net"
] | wangjiyuan123@yeah.net |
908076fe749518b81a5d792a64a0ac250dc8aa67 | 083ca3df7dba08779976d02d848315f85c45bf75 | /LongestSubstringwithAtLeastKRepeatingCharacters5.py | 424c18652d21975839cddc18e43a9e0b3e29a8f8 | [] | no_license | jiangshen95/UbuntuLeetCode | 6427ce4dc8d9f0f6e74475faced1bcaaa9fc9f94 | fa02b469344cf7c82510249fba9aa59ae0cb4cc0 | refs/heads/master | 2021-05-07T02:04:47.215580 | 2020-06-11T02:33:35 | 2020-06-11T02:33:35 | 110,397,909 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 954 | py | class Solution:
def longestSubstring(self, s, k):
"""
:type s: str
:type k: int
:rtype: int
"""
i = 0
res = 0
while i + k <= len(s):
if i > 0 and s[i] == s[i - 1]:
i += 1
continue
m = {}
... | [
"jiangshen95@163.com"
] | jiangshen95@163.com |
7a7b0cb2ba35a1718311a5ace7ffe70e9f8f71bf | 7b221a4981edad73991cf1e357274b46c4054eff | /stacks/XIAOMATECH/1.0/services/NIFI/package/scripts/nifi_cli.py | e82f05e871857ac17cf7d7bf280d1558ca7ca3dc | [
"Apache-2.0"
] | permissive | aries-demos/dataops | a4e1516ef6205ad1ac5f692822e577e22ee85c70 | 436c6e89a1fdd0593a17815d3ec79c89a26d48f1 | refs/heads/master | 2020-05-29T17:20:12.854005 | 2019-05-22T06:06:00 | 2019-05-22T06:06:00 | 189,270,801 | 2 | 3 | Apache-2.0 | 2019-05-29T17:35:25 | 2019-05-29T17:35:24 | null | UTF-8 | Python | false | false | 6,474 | py | import json
import time
from resource_management.core import shell
from resource_management.core.exceptions import Fail
from resource_management.core.logger import Logger
from resource_management.libraries.functions import format
import nifi_toolkit_util_common
def nifi_cli(command=None,
subcommand=Non... | [
"xianhuawei@MacBook-Air.local"
] | xianhuawei@MacBook-Air.local |
ef18e320c181d7603f6cc50f8b4c007b64c977e5 | b8d2f095a4b7ea567ccc61ee318ba879318eec3d | /二分查找/287. 寻找重复数.py | 69bdb06bf5dbca40a1db1643ecf3e21552f93868 | [] | no_license | f1amingo/leetcode-python | a3ef78727ae696fe2e94896258cfba1b7d58b1e3 | b365ba85036e51f7a9e018767914ef22314a6780 | refs/heads/master | 2021-11-10T16:19:27.603342 | 2021-09-17T03:12:59 | 2021-09-17T03:12:59 | 205,813,698 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 621 | py | from typing import List
class Solution:
# 从[1, n]中猜一个数,再遍历一遍原数组
def findDuplicate(self, nums: List[int]) -> int:
n = len(nums) - 1
lt, rt = 1, n
while lt < rt:
mid = (lt + rt) // 2
count = 0
for num in nums:
if num <= mid:... | [
"zsjperiod@foxmail.com"
] | zsjperiod@foxmail.com |
028d4012be6e2dba637d5afdafcded11bfba6024 | fd8d33572656edf9e1133a72ad4e2fa090f90a5f | /packages/OpenCV/nodes/OpenCV___YUV_YV120/OpenCV___YUV_YV120___METACODE.py | fd27f158254de61c8a19e271393e77c1740baba6 | [
"MIT"
] | permissive | ChristianHohlfeld/Ryven | a01c2eafa79a80883a9490efb5f043fd35f53484 | 53bf7e57a7b0fa25a704cd0d2214a7f76096d4dd | refs/heads/master | 2022-12-12T22:03:57.122034 | 2020-08-31T13:45:45 | 2020-08-31T13:45:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,153 | py | from NIENV import *
import cv2
# USEFUL
# self.input(index) <- access to input data
# self.outputs[index].set_val(val) <- set output data port value
# self.main_widget <- access to main widget
class %NODE_TITLE%_NodeInstance(NodeInstance):
def __init__(self, parent_node... | [
"leon.thomm@gmx.de"
] | leon.thomm@gmx.de |
ce4f4de3c6cd53f78a77f8f7d171a222a593ea7e | 4a28e3e3afb28c0455ea21cfb983c3a8284dc5dd | /Reverse.py | bc387ecd0eea4a1c2e6fe9318772782e900f4b58 | [] | no_license | omdeshmukh20/Python-3-Programming | 60f6bc4e627de9d643a429e64878a636f3875cae | 9fb4c7fa54bc26d18b69141493c7a72e0f68f7d0 | refs/heads/main | 2023-08-28T04:37:27.001888 | 2021-10-29T17:03:34 | 2021-10-29T17:03:34 | 370,008,995 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 674 | py | #Discription: Accept Number From User And Return Reverse Of That Number Using For-Loop
#Date: 14/08/21
#Author : Om Deshmukh
# Reverse Operation
def Reverse(iValue1):
iDigit = 0
iRev = 0
if iValue1 < 0:
exit("Invalid Input! | Note : Give Input Greater Than 0")
for _ in range(iValue1):
... | [
"noreply@github.com"
] | omdeshmukh20.noreply@github.com |
4497e161d8e06316103a36d717fe15e66be3c951 | 3b504a983f1807ae7c5af51078bfab8c187fc82d | /client/input/InputSubsystem/JoyInput.py | 03a21fda604012c74ea881e2b4fdb3fcfdc8f167 | [] | no_license | SEA-group/wowp_scripts | 7d35fd213db95ea6b3dbd1ec6d3e0f13de86ba58 | 2fe54a44df34f2dcaa6860a23b835dcd8dd21402 | refs/heads/master | 2021-09-07T23:10:13.706605 | 2018-03-02T17:23:48 | 2018-03-02T17:23:48 | 117,280,141 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,816 | py | # Embedded file name: scripts/client/input/InputSubsystem/JoyInput.py
import Keys
import BWPersonality
import InputMapping
import math
from MathExt import *
from consts import ROLL_AXIS, VERTICAL_AXIS, HORIZONTAL_AXIS, FORCE_AXIS, FLAPS_AXIS, INPUT_SYSTEM_STATE
from input.InputSubsystem.InputSubsystemBase import InputS... | [
"55k@outlook.com"
] | 55k@outlook.com |
f817dc9cd7b0ee5cb3fb0d8da067107e84fabd08 | c380976b7c59dadaccabacf6b541124c967d2b5a | /.history/src/data/data_20191021130626.py | 54a8374208393201a7d3ecf5fa63dc428630f047 | [
"MIT"
] | permissive | bkraft4257/kaggle_titanic | b83603563b4a3c995b631e8142fe72e1730a0e2e | f29ea1773773109a867278c001dbd21a9f7b21dd | refs/heads/master | 2020-08-17T12:45:28.653402 | 2019-11-15T16:20:04 | 2019-11-15T16:20:04 | 215,667,760 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,770 | py | import pandas as pd
import numpy as np
from typing import Union
from pathlib import Path
from nameparser import HumanName
class ExtractData:
def __init__(self, filename: Union[str, Path], age_bins = None, drop_columns=None):
# """Extract Training Data from file or Path
# Arguments:
# ... | [
"bob.kraft@infiniteleap.net"
] | bob.kraft@infiniteleap.net |
0684d234e85f6b170a94bbdd8fe260adcc0f1b90 | 0296bc69a0d9608ed826ad7a719395f019df098f | /old_modules/render_model_1.py | 9fc3f68c9e69607c41d3e1a6f72240c17d64ea5e | [] | no_license | jcn16/Blender_HDRmap_render | c0486a77e04c5b41a6f75f123dbdb3d10c682367 | 50e6cdb79fef83081de9830e7105dd425a235a9e | refs/heads/main | 2023-07-19T22:22:53.622052 | 2021-08-20T06:29:10 | 2021-08-20T06:29:10 | 377,757,283 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,746 | py | from math import radians, sin, cos, pi
import mathutils, bpy, argparse, random, time, os,logging
def generate_rand(a=0, b=1, only_positive=False):
x = (random.random()-0.5) * 2*b
if abs(x) < a or (only_positive and x<0):
return generate_rand(a, b, only_positive)
else:
return x
def point_at(obj, target, roll=... | [
"591599635@qq.com"
] | 591599635@qq.com |
5b66423e71498cd6180f23934fe7cc35d8fdb9e0 | 9b64f0f04707a3a18968fd8f8a3ace718cd597bc | /huaweicloud-sdk-rms/huaweicloudsdkrms/v1/model/list_resources_response.py | dacd35a56aafb9e80f1c69849e3d804d2346de25 | [
"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 | 3,605 | py | # coding: utf-8
import re
import six
from huaweicloudsdkcore.sdk_response import SdkResponse
class ListResourcesResponse(SdkResponse):
"""
Attributes:
openapi_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key is ... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
4ca9bd19679fbb30fc5ed30b750ee022fc94c075 | 5ffdf4ddee5700e6bb3b062a07c1a9cf7e6adbc1 | /PYTHON/Strings/capitalize.py | 8cc94026d63e0fa32d0b508f4cfd21061a7f66e7 | [
"MIT"
] | permissive | byung-u/HackerRank | 23df791f9460970c3b4517cb7bb15f615c5d47d0 | 4c02fefff7002b3af774b99ebf8d40f149f9d163 | refs/heads/master | 2021-05-05T13:05:46.722675 | 2018-03-30T08:07:36 | 2018-03-30T08:07:36 | 104,960,152 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 383 | py | #!/usr/bin/env python3
def capitalize(string):
s = string.split(' ')
for i in range(0, len(s)):
if len(s[i]) == 0:
continue
if len(s[i][0]) != 0 and s[i][0].isalpha():
s[i] = s[i].title()
return ' '.join(s)
if __name__ == '__main__':
string = input()
capital... | [
"iam.byungwoo@gmail.com"
] | iam.byungwoo@gmail.com |
e3c98e936946924d57a64be20bd0d6c76705512b | e55480007fde8acea46fe8eeb3ee7193c25ba113 | /src/leetcode/1-99/09.py | 4b14b2dee65b6c8465f1912a9386dbbec7fe586c | [] | no_license | Annihilation7/Ds-and-Al | 80301bf543ec2eb4b3a9810f5fc25b0386847fd3 | a0bc5f5ef4a92c0e7a736dcff77df61d46b57409 | refs/heads/master | 2020-09-24T05:04:41.250051 | 2020-02-15T10:31:10 | 2020-02-15T10:31:10 | 225,669,366 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,191 | py | # -*- coding: utf-8 -*-
# Email: 763366463@qq.com
# Created: 2019-12-09 12:11am
'''
判断一个整数是否是回文数。回文数是指正序(从左向右)和倒序(从右向左)读都是一样的整数。
示例 1:
输入: 121
输出: true
示例 2:
输入: -121
输出: false
解释: 从左向右读, 为 -121 。 从右向左读, 为 121- 。因此它不是一个回文数。
示例 3:
输入: 10
输出: false
解释: 从右向左读, 为 01 。因此它不是一个回文数。
'''
class Solution:
def isPalindr... | [
"763366463@qq.com"
] | 763366463@qq.com |
64be974da5067480a0088094c5764bb85d240db1 | 3b9b4049a8e7d38b49e07bb752780b2f1d792851 | /src/ui/webui/resources/PRESUBMIT.py | 2ac87faf2b09787c19200dad102e395811d7661e | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | webosce/chromium53 | f8e745e91363586aee9620c609aacf15b3261540 | 9171447efcf0bb393d41d1dc877c7c13c46d8e38 | refs/heads/webosce | 2020-03-26T23:08:14.416858 | 2018-08-23T08:35:17 | 2018-09-20T14:25:18 | 145,513,343 | 0 | 2 | Apache-2.0 | 2019-08-21T22:44:55 | 2018-08-21T05:52:31 | null | UTF-8 | Python | false | false | 1,001 | py | # Copyright 2016 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import re
def PostUploadHook(cl, change, output_api):
rietveld_obj = cl.RpcServer()
description = rietveld_obj.get_description(cl.issue)
existing_bo... | [
"changhyeok.bae@lge.com"
] | changhyeok.bae@lge.com |
1ecae13285e6b4e11101cf69d5d4f92b64b71913 | 8fd55e7a0f8764b3fe894d927c39173507f03855 | /sms/urls.py | f75a34a656dee837302b3de1b925fe0d38081e04 | [] | no_license | bogdal/django-sms | 2ed97cbafd7c2a9b4b1521c766e89b2514b63e75 | fa0ed8369228b2b3160e8b577b6377587ce1fe5a | refs/heads/master | 2020-04-05T08:22:29.864245 | 2013-04-24T09:28:34 | 2013-04-24T09:28:34 | 3,496,819 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 410 | py | from django.conf.urls import patterns, url
from sms.decorators import ip_restrictions
from sms.views import callback_received_sms, callback_delivery_report
urlpatterns = patterns('',
url(r'^callback/received-sms/$', ip_restrictions(callback_received_sms), name='callback-received-sms'),
url(r'^callback/delivery... | [
"adam@bogdal.pl"
] | adam@bogdal.pl |
09e8055fcdcf2ad2dec55459c099ab811ed32068 | fffabb9f3025e89f7d1e71e2bea1e1f93ca95c98 | /gevent_-master/monkey_test.py | ca9512a34827effed846c0722e796fa03555f070 | [] | no_license | kagxin/recipe | 2a880b77e56bae25e9793b13a8ebdeeea19b716c | 70af9c949b9e4b476585b2b650fba416a9d3ebb2 | refs/heads/master | 2021-09-11T18:58:46.295928 | 2018-04-11T03:11:05 | 2018-04-11T03:11:05 | 86,281,134 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 129 | py | import gevent.monkey
gevent.monkey.patch_socket()
import gevent
import urllib
import json
def fetch(pid):
pass
fetch()
| [
"123@163.com"
] | 123@163.com |
8ada0608c934b48b2abbcdeb5aa1350a01506751 | 0a004fc3fe8e36fd7ce0ed2cc7e8140982315e03 | /supervised_learning/0x0F-word_embeddings/0-bag_of_words.py | 58f174f5ee6192922d3b2ccf12ba7882281f6654 | [] | no_license | pafuentess/holbertonschool-machine_learning | 266ed4f05e106e194cdafe39544e48904f6538f4 | 3bffd1391b3fc790f0137d0afbe90eb8e2f7d713 | refs/heads/master | 2023-03-26T15:12:14.721409 | 2021-03-20T20:28:15 | 2021-03-20T20:28:15 | 279,388,813 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 455 | py | #!/usr/bin/env python3
""" doc """
from sklearn.feature_extraction.text import CountVectorizer
def bag_of_words(sentences, vocab=None):
""" doc """
if vocab is None:
vectorizer = CountVectorizer()
X = vectorizer.fit_transform(sentences)
vocab = vectorizer.get_feature_names()
else:... | [
"pafuentess@unal.edu.co"
] | pafuentess@unal.edu.co |
d132455b70c174d99968af7351962cf9ba6070a0 | f07a42f652f46106dee4749277d41c302e2b7406 | /Data Set/bug-fixing-1/30cae1c356d7341ef3c3a049b435b2da9bbd5588-<main>-bug.py | 1207a332ae96f47a64d09b9b87303bc66e73535b | [] | 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 | 1,799 | py |
def main():
module = AnsibleModule(argument_spec=dict(script=dict(required=True, type='str'), url=dict(required=False, type='str', default='http://localhost:8080'), validate_certs=dict(required=False, type='bool', default=True), user=dict(required=False, no_log=True, type='str', default=None), password=dict(requi... | [
"dg1732004@smail.nju.edu.cn"
] | dg1732004@smail.nju.edu.cn |
26724562ddaf5b84d3514df2553cf578c11097ff | e262e64415335060868e9f7f73ab8701e3be2f7b | /.history/pytest_test_20201123174255.py | 71d84ac3ea86d52edcf7b63ed99b1d05e2cfeaed | [] | no_license | Allison001/developer_test | 6e211f1e2bd4287ee26fd2b33baf1c6a8d80fc63 | b8e04b4b248b0c10a35e93128a5323165990052c | refs/heads/master | 2023-06-18T08:46:40.202383 | 2021-07-23T03:31:54 | 2021-07-23T03:31:54 | 322,807,303 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 254 | py | import pytest
class Test_A:
@pytest.mark.parametrize('a,b',[(10,20),(5,5)])
def test_data1(self,a,b):
print(a + b)
def test_data2(self):
a = 5
b = 5
print(a+b)
if __name__ == '__main__':
pytest.main
| [
"zhangyingxbba@gmail.com"
] | zhangyingxbba@gmail.com |
81031853fd92e573bbec0a772457ebba3f43bb7a | e229456b9effa99e906d5cdfe08200ca5e1920a4 | /lib/modules/exfiltration/invoke-exfiltration.py | b64b4fe4bcca83a42b5941dd3559df04ae7ff47c | [
"BSD-3-Clause"
] | permissive | nerbix/Empire | cff3620f589d38a4967737458b7f4b56acabd64c | f45d5f35ff459df22ef0bd55236b7ffd9cef6f45 | refs/heads/master | 2020-05-22T09:27:59.693741 | 2017-03-08T18:18:13 | 2017-03-08T18:18:13 | 84,344,747 | 0 | 0 | null | 2017-03-08T16:54:42 | 2017-03-08T16:54:42 | null | UTF-8 | Python | false | false | 4,857 | py | from lib.common import helpers
class Module:
def __init__(self, mainMenu, params=[]):
# metadata info about the module, not modified during runtime
self.info = {
# name for the module that will appear in module menus
'Name': 'Invoke-Exfiltration',
# list of on... | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
afb957284892edf8fcd63b07feef00c82584970b | 4a7ca643f2bb681a14105fdfba2b696c14f8fb19 | /alphamind/tests/analysis/test_quantilieanalysis.py | fd31eaf64d67c0a4e71bef2c786c696b2e91e3ae | [
"MIT"
] | permissive | iLampard/alpha-mind | 84bb490eaa515a147b2a31deff305b2e6423c76f | c99ba7b2b082d7bf07263fde0cca57b1a8bcb7de | refs/heads/master | 2020-03-22T02:32:28.489547 | 2018-08-22T03:01:26 | 2018-08-22T03:01:26 | 126,668,894 | 0 | 0 | MIT | 2018-06-26T03:37:20 | 2018-03-25T05:53:51 | Python | UTF-8 | Python | false | false | 3,087 | py | # -*- coding: utf-8 -*-
"""
Created on 2017-8-16
@author: cheng.li
"""
import unittest
import numpy as np
import pandas as pd
from alphamind.analysis.quantileanalysis import er_quantile_analysis
from alphamind.analysis.quantileanalysis import quantile_analysis
from alphamind.data.processing import factor_processing
f... | [
"scrappedprince.li@gmail.com"
] | scrappedprince.li@gmail.com |
e23182c952b026b3073f17d87b07c6f0b5a98c59 | e3ffd1f17819ab8a7b95b63f4a30cbbe85d7c44d | /week_4/contacts_short_41.py | 6a866c20b264e1243963c70d3d82ae7fb3e9efe3 | [] | no_license | jamesoneill54/programming_2 | 77d105f0eb3be7c1af3fe6ca89cf291aca4e0c95 | 8c8d7e4551894b773f52ee1e4785fe324b974ac9 | refs/heads/master | 2021-01-22T04:18:22.654154 | 2017-05-25T23:46:31 | 2017-05-25T23:46:31 | 92,451,317 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 365 | py | import sys
with open(sys.argv[1], 'r') as f:
contacts = {}
for line in f:
[name, phone] = line.strip().split()
contacts[name] = phone
for line in sys.stdin:
if line.strip() in contacts:
print('Name:', line.strip())
print('Phone:', contacts[line.strip()])
else:
print('Name:',... | [
"noreply@github.com"
] | jamesoneill54.noreply@github.com |
57790357a11b82f693fabb647bd204391e2a5368 | a9e3f3ad54ade49c19973707d2beb49f64490efd | /Part-03-Understanding-Software-Crafting-Your-Own-Tools/models/edx-platform/lms/djangoapps/commerce/api/v1/views.py | c85719eccde259580a7818f846c5cf0d12d2b7f5 | [
"AGPL-3.0-only",
"AGPL-3.0-or-later",
"MIT"
] | permissive | luque/better-ways-of-thinking-about-software | 8c3dda94e119f0f96edbfe5ba60ca6ec3f5f625d | 5809eaca7079a15ee56b0b7fcfea425337046c97 | refs/heads/master | 2021-11-24T15:10:09.785252 | 2021-11-22T12:14:34 | 2021-11-22T12:14:34 | 163,850,454 | 3 | 1 | MIT | 2021-11-22T12:12:31 | 2019-01-02T14:21:30 | JavaScript | UTF-8 | Python | false | false | 3,600 | py | """
Commerce views
"""
import logging
from django.contrib.auth.models import User # lint-amnesty, pylint: disable=imported-auth-user
from django.http import Http404
from edx_rest_api_client import exceptions
from edx_rest_framework_extensions.auth.jwt.authentication import JwtAuthentication
from rest_framework.auth... | [
"rafael.luque@osoco.es"
] | rafael.luque@osoco.es |
a8b587769f572f0e5f80a0878307423b27a05b90 | 28aed3120411fd7558fc08b47274f5ced5d5069c | /UIAutomation/tests/Utils/test_envsettingreader.py | c9533f87b7fe7e555380cf537766a0f96e5fc602 | [
"MIT",
"Apache-2.0"
] | permissive | SirCYong/long_long_ago | 8e181310267836774b50824e873adb7959f80080 | 6dfe9a9eb9d0f25a55bccd22b66878bde1a2fd6b | refs/heads/master | 2020-03-16T02:58:18.161981 | 2018-05-07T15:17:54 | 2018-05-07T15:17:54 | 132,477,192 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 663 | py | import unittest
from nose.tools import assert_equal
from UIAutomation.Utils import get_setting_configuration, get_env_script_runs_on
class TestEnvSettingReader(unittest.TestCase):
def test_get_setting_configuration(self):
assert_equal('Android', get_setting_configuration('android', 'platformName'))
... | [
"649803977@qq.com"
] | 649803977@qq.com |
c90939194ffd9a0ae033eda433c4412b90e34be4 | 2bcc6c45a28251dcde72bb8b003b5592350dc208 | /exams/models.py | 5909bafe70117024d9487d86d13b9a60bbab0dba | [] | no_license | amanjhurani/university_dost | 153d1a245df4338be60df3e9980e0238408e40ad | 41f6119c88d36f0153fbf1a5be1913e2c45d9751 | refs/heads/master | 2021-10-08T22:23:42.252577 | 2018-12-18T11:22:10 | 2018-12-18T11:22:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,291 | py | from django.urls import reverse
from config.settings.base import AUTH_USER_MODEL
from django.db import models
from universities.models import Subject
from config.utils import random_string_generator
from markdownx.models import MarkdownxField
class Exam(models.Model):
# Choices
MONTH_CHOICES = (
('ja... | [
"dhaval.savalia6@gmail.com"
] | dhaval.savalia6@gmail.com |
49f552812ae2ebc0e2cb7111c0f72e6044fd22b7 | d96f75610758fd6e193d575a2c5ba72c420d90e8 | /blog/migrations/0001_initial.py | ae82676f9c48d490aaed6c97ff64cd7594a38393 | [] | no_license | barlapelican/my-first-blog | 4a20ef5f3723209225510436513321b10b5d9fcf | 1594006935765d288434d4542502deb3e954f974 | refs/heads/master | 2020-06-17T06:06:07.116828 | 2019-07-08T13:53:25 | 2019-07-08T13:53:25 | 195,823,812 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 987 | py | # Generated by Django 2.0.13 on 2019-07-08 13:06
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AU... | [
"du@example.com"
] | du@example.com |
9e1d8e2de437c05c4bfb0801655ea47bebb855fb | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/otherforms/_palls.py | dbff538f21fd450bb0e9c7a702715178521cdfad | [
"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 | 214 | py |
#calss header
class _PALLS():
def __init__(self,):
self.name = "PALLS"
self.definitions = pall
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.basic = ['pall']
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
3f395841d95506c7c4b11095f96b073ae8043dea | b5a7c9ae13c81d655c176ceb0b8a73b4399cbf7a | /practico_02/ejercicio_01.py | 847b669e2c61394631d2e994bc0d7f2731006427 | [
"MIT"
] | permissive | ELC/TUPPython | 7459f4af5eb0306da1a61fd1e175ca4a68e5ac46 | 0115ece1dfdd599626f1cdeb410245fbee2aa4f8 | refs/heads/master | 2023-06-07T21:03:12.151001 | 2021-03-17T22:31:51 | 2021-03-17T22:31:51 | 338,466,855 | 1 | 1 | MIT | 2021-02-28T02:48:20 | 2021-02-13T00:36:50 | Python | UTF-8 | Python | false | false | 856 | py | """Módulos
Antes de realizar este TP, se recomienda ver el siguiente video:
https://youtu.be/A47sszUdTsM
En este archivo se deben importar los módulos:
- main.py as main
- source/util.py as util
- source/controller/controller.py as controller
Los imports deben hacerse de forma tal que funcionen con TODAS las formas... | [
"elcg@gmx.com"
] | elcg@gmx.com |
1719fe5138986b05ab207d3c7b30490116f74c96 | e980e13bd0d264b3880705fb53a795a89fb5cfe6 | /sales_order/repair_order.py | f6ba01e2762bf878cdbc8480aa7f1e1f9f8ddf80 | [] | no_license | qianpeng-shen/u8 | 8e430ccab5390254b6660cbd047fc2ac495a04ca | 7fd28399dbf921826c1ef024800994412ab1b623 | refs/heads/master | 2020-05-13T20:28:16.764800 | 2019-04-16T09:29:58 | 2019-04-16T09:29:58 | 181,657,315 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,972 | py | # -*- coding:utf-8 -*-
#解析维修类维修工单数据
def analysis_repair(data):
repair_list = []
for repair in range(1,data.nrows):
repair_dict = {}
repair_dict['Status'] = data.cell(repair,1).value
repair_dict['UserID_ZDR'] = data.cell(repair,7).value
repair_dict['AdgoupID'] = data.cell(repa... | [
"shenqianpeng@chengfayun.com"
] | shenqianpeng@chengfayun.com |
fbe657576a5f4817faee93631a0c29bd41fef7fd | 43461f999228079c9bfee03f0e4043f08426051f | /python_zero/飞机大战/hm_11_监听退出事件.py | ac165dcc7445e849fe8d415791911b793b4875e3 | [] | no_license | MapleStoryBoy/spider | f9af844ae9812fe21141060213ac2677e719ac73 | b014d81d52805f9317e85b66024d047e73d59053 | refs/heads/master | 2020-05-21T18:27:50.585790 | 2019-07-12T10:11:58 | 2019-07-12T10:11:58 | 186,132,575 | 6 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,376 | py | import pygame
# 游戏的初始化
pygame.init()
# 创建游戏的窗口 480 * 700
screen = pygame.display.set_mode((480, 700))
# 绘制背景图像
bg = pygame.image.load("./images/background.png")
screen.blit(bg, (0, 0))
# pygame.display.update()
# 绘制英雄的飞机
hero = pygame.image.load("./images/me1.png")
screen.blit(hero, (150, 300))
# 可以在所有绘制工作完成之后,统一调... | [
"MapleStoryBoy@163.com"
] | MapleStoryBoy@163.com |
db4bc9a1b1db2b8a2081ccbfc57774f296f255e9 | 1f9e643698f683e77ed5f253cafda776b204f5d2 | /backend/franchise_guru_4345/urls.py | 5f0e09df865079b377bc64581a60b6f4c1dedb06 | [] | no_license | crowdbotics-apps/franchise-guru-4345 | ca907aaed1618abd5828ce20c108a90f01f09af7 | 53712fe881aa94579121e1c7384ab3e039fccd9d | refs/heads/master | 2022-12-12T06:50:11.577025 | 2019-06-06T20:54:46 | 2019-06-06T20:54:46 | 190,648,540 | 0 | 0 | null | 2022-12-06T16:07:16 | 2019-06-06T20:54:42 | JavaScript | UTF-8 | Python | false | false | 1,074 | py | """franchise_guru_4345 URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.11/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='hom... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
4fed6cdfbfd5f2a72de1850169ab92171fcb5f2b | ded46c3a86c2a70328a63d779ac038d636ae5906 | /_WSpython/Pandas06_04_GroupByChkPop_최임정.py | 25b7e2d0123dcbc8d13c20046ed655462fdfe522 | [] | no_license | imjoung/hongik_univ | 82d0e7ea31763713f51bbde9d45e4aae5cb73849 | 82a3a77605d74d13eb76b915b215f6e245968180 | refs/heads/main | 2023-06-24T12:49:46.087083 | 2021-07-15T06:31:57 | 2021-07-15T06:31:57 | 379,128,178 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 233 | py |
# coding: utf-8
# In[19]:
import pandas as pd
df=pd.read_csv('../data/gapminder.tsv','\t')
# In[20]:
uniqueList=df['year'].unique()
for idx in uniqueList:
yearList=df[df['year'] == idx]
print(yearList['pop'].mean())
| [
"noreply@github.com"
] | imjoung.noreply@github.com |
5ec23bfac0f13f11f9935fea8caf3b8b1e956401 | c4af67db4c523d20f2d55aef90ba77db1fb53c38 | /CMFCalendar/testing.py | 0918f04c86d1a5fb9cdbaaf7709a9ab261d013b7 | [] | no_license | dtgit/dtedu | e59b16612d7d9ea064026bf80a44657082ef45a3 | d787885fe7ed0de6f9e40e9b05d852a0e9d60677 | refs/heads/master | 2020-04-06T05:22:50.025074 | 2009-04-08T20:13:20 | 2009-04-08T20:13:20 | 171,351 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,008 | py | ##############################################################################
#
# Copyright (c) 2006 Zope Corporation and Contributors. All Rights Reserved.
#
# This software is subject to the provisions of the Zope Public License,
# Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution.
# THIS SOFT... | [
"ron@domU-12-31-39-02-65-03.compute-1.internal"
] | ron@domU-12-31-39-02-65-03.compute-1.internal |
6485d44a97f1ed29a4fa36480a7c390436e0aa7f | 2b25aae9266437b657e748f3d6fea4db9e9d7f15 | /CMU/6lab/coroutines1.py | a44559612b62e023d62943e13b80f94a5246447f | [] | no_license | Zilby/Stuy-Stuff | b1c3bc23abf40092a8a7a80e406e7c412bd22ae0 | 5c5e375304952f62667d3b34b36f0056c1a8e753 | refs/heads/master | 2020-05-18T03:03:48.210196 | 2018-11-15T04:50:03 | 2018-11-15T04:50:03 | 24,191,397 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 202 | py | s="The quick brown fox jumped over the lazy old dog."
def capitalize():
while True:
value=yield
print value.upper()
c=capitalize()
c.next()
for word in s.split():
c.send(word)
| [
"azilby@gmail.com"
] | azilby@gmail.com |
0aefadcd0195f3d016d2f2e73d810a3fa481c9bf | 42c48f3178a48b4a2a0aded547770027bf976350 | /google/ads/google_ads/v3/proto/errors/keyword_plan_keyword_error_pb2.py | 72f053c63c315f0883e175fbdc4ef1c9f7dc2a89 | [
"Apache-2.0"
] | permissive | fiboknacky/google-ads-python | e989464a85f28baca1f28d133994c73759e8b4d6 | a5b6cede64f4d9912ae6ad26927a54e40448c9fe | refs/heads/master | 2021-08-07T20:18:48.618563 | 2020-12-11T09:21:29 | 2020-12-11T09:21:29 | 229,712,514 | 0 | 0 | Apache-2.0 | 2019-12-23T08:44:49 | 2019-12-23T08:44:49 | null | UTF-8 | Python | false | true | 5,055 | py | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: google/ads/googleads_v3/proto/errors/keyword_plan_keyword_error.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.prot... | [
"noreply@github.com"
] | fiboknacky.noreply@github.com |
f69a5854f33bc30eb43daf851f9e43ceb207ec1a | b7948d60834c4c6fe58d8d665177511cb6db53e2 | /Outpass Webapp + Api's - Django/student/migrations/0008_auto_20190815_0023.py | 08405388f8bb2400e3756da54e002813b1d1e8b2 | [] | no_license | abhinavsharma629/Outpass-Generator | 4a2ebc2c7d0fc678b2afd10a36c6cbcbc6583d60 | f363d49c47543c70e2c114ab7d48ffaef83b5de4 | refs/heads/master | 2022-02-24T15:07:58.171462 | 2019-10-05T16:05:09 | 2019-10-05T16:05:09 | 205,933,273 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,289 | py | # Generated by Django 2.2.4 on 2019-08-14 18:53
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('student', '0007_registeredcolleges_logo'),
]
operations = [
migrations.AlterField(
model_name='student',
name='bed_n... | [
"abhinavsharma629@gmail.com"
] | abhinavsharma629@gmail.com |
7d5a0bdd30acb51aa2d53b292d0cadc6076e129e | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03068/s875123408.py | 7ebd0a3af325dded24435da6029b158873c69c05 | [] | 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 | 166 | py | n = int(input())
s = list(input())
k = int(input())
ans = ''
for i in range(n):
if s[i] != s[k-1]:
s[i] = '*'
else:
continue
print(*s, sep='') | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
f3bb6fb019a485fe0bec264817b74915c0530643 | 7323b8039f47c0457ae90173c963549b7d1e6823 | /sandbox/src1/histdemo.py | a8514133c69af80b7c5f510d812d969b0da96add | [
"LicenseRef-scancode-public-domain",
"BSD-2-Clause"
] | permissive | sniemi/SamPy | abce0fb941f011a3264a8d74c25b522d6732173d | e048756feca67197cf5f995afd7d75d8286e017b | refs/heads/master | 2020-05-27T18:04:27.156194 | 2018-12-13T21:19:55 | 2018-12-13T21:19:55 | 31,713,784 | 5 | 2 | null | null | null | null | UTF-8 | Python | false | false | 361 | py | from matplotlib import rcParams
from pylab import *
mu, sigma = 100, 15
x = mu + sigma*randn(10000)
# the histogram of the data
n, bins, patches = hist(x, 100, normed=1)
# add a 'best fit' line
y = normpdf(bins, mu, sigma)
l = plot(bins, y, 'r--', linewidth=2)
xlim(40, 160)
xlabel('Smarts')
ylabel('P')
title(r'$\r... | [
"niemi@stsci.edu"
] | niemi@stsci.edu |
d8b1f7b564f9c8a9889d070590faa58b2928a4d8 | c6d22cf128819af1d48d02972bb9296a1687b9bb | /venv/Lib/site-packages/pyface/ui/wx/image_widget.py | 2e50ff64cb90378c94caab22abc79b27e902d0f7 | [
"BSD-3-Clause"
] | permissive | GenomePhD/Bio1-HIV | 92808a1e7e6339da6d07190ba3e1a2071f3e8428 | b5059e7f121e4abb6888893f91f95dd79aed9ca4 | refs/heads/master | 2022-10-28T21:55:42.998205 | 2018-04-16T18:52:32 | 2018-04-16T18:52:32 | 129,792,081 | 0 | 1 | null | 2022-10-05T18:36:22 | 2018-04-16T19:03:26 | Python | UTF-8 | Python | false | false | 7,447 | py | #------------------------------------------------------------------------------
# Copyright (c) 2005, Enthought, Inc.
# All rights reserved.
#
# This software is provided without warranty under the terms of the BSD
# license included in enthought/LICENSE.txt and may be redistributed only
# under the conditions describe... | [
"stevetmat@users.noreply.github.com"
] | stevetmat@users.noreply.github.com |
dd23f81f0523a7ea828de9f8aa5f5cc5ce00d2d7 | c9952dcac5658940508ddc139344a7243a591c87 | /tests/lab18/test_ch018_t01_why_use_classes.py | 89a74ccf8952816be596452943f8010beaf6bc90 | [] | no_license | wongcyrus/ite3101_introduction_to_programming | 5da1c15212528423b3df91997327fe148abef4de | 7cd76d0861d5355db5a6e2e171735bee2e78f829 | refs/heads/master | 2023-08-31T17:27:06.193049 | 2023-08-21T08:30:26 | 2023-08-21T08:30:26 | 136,574,036 | 3 | 2 | null | 2023-08-21T08:30:28 | 2018-06-08T06:06:49 | Python | UTF-8 | Python | false | false | 1,037 | py | import unittest
from tests.unit_test_helper import is_answer
class TestOutput(unittest.TestCase):
def setUp(self):
if is_answer:
from lab.lab18.ch018_t01_why_use_classes_ans import Fruit
else:
from lab.lab18.ch018_t01_why_use_classes import Fruit
self.fruit = Fru... | [
"cywong@vtc.edu.hk"
] | cywong@vtc.edu.hk |
537dd076c49ad2ccafc435e3f66ed76126ba6de6 | b1ddcf4bac9ca603a7a2333912eb29da8bf2cb7b | /modelViewset/api/views.py | 7a9e893c1dd960e695c5c68e31de55adba80160d | [] | no_license | sankethalake/django_practice | e9477ae0beee4923cd6758cc6d37517ea5979610 | 9877304f0c6415ae8979e5cc13a49559155fdd9d | refs/heads/main | 2023-07-07T07:07:35.598657 | 2021-08-14T06:26:23 | 2021-08-14T06:26:23 | 389,917,128 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 243 | py | from .models import Student
from .serializers import StudentSerializer
from rest_framework import viewsets
class StudentModelViewset(viewsets.ModelViewSet):
queryset = Student.objects.all()
serializer_class = StudentSerializer
| [
"sankethalake@gmail.com"
] | sankethalake@gmail.com |
cc47947af7cebae7fdc2b5543d4508a2c820c757 | cf74a48db45d0fa8c9ae58931a9368672d07fa19 | /utils/zgrep.py | b587690671719faa84d712598846558189a92885 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | razikallayi/NewsBlur | fdb7549d73dfd6765e2cf2e4007f1b9cfb39002f | a266d9f585400c506fa9727796a5dddba0e69ffb | refs/heads/master | 2021-01-18T08:12:02.738442 | 2015-05-27T00:58:45 | 2015-05-27T00:58:45 | 36,501,810 | 1 | 0 | null | 2015-05-29T12:01:58 | 2015-05-29T12:01:56 | null | UTF-8 | Python | false | false | 3,581 | py | #!/usr/bin/env python
import os
import time
import select
import subprocess
import sys
from optparse import OptionParser
from requests.exceptions import ConnectionError
sys.path.insert(0, '/srv/newsblur')
os.environ['DJANGO_SETTINGS_MODULE'] = 'settings'
import fabfile
NEWSBLUR_USERNAME = 'sclay'
IGNORE_HOSTS = [
... | [
"samuel@ofbrooklyn.com"
] | samuel@ofbrooklyn.com |
e2328cbb036a2a53d77b6c6cc430606a33cc18a4 | c9a4e88111d05cf9db399eba3ae83ddb3b0ad2da | /myapp/models.py | 801590a2819433ea0630630a9b407a91b5cbd1d0 | [] | no_license | Django-TOPS/07JanPython | 7861d9a515e9da951b14f8caa5b1bb0578d99557 | b101e7b2b457250153aedb6a95354e10824ecec5 | refs/heads/master | 2023-04-12T17:08:44.644228 | 2021-05-20T03:30:10 | 2021-05-20T03:30:10 | 369,140,333 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 574 | py | from django.db import models
# Create your models here.
class signup(models.Model):
firstname=models.CharField(max_length=20)
lastname=models.CharField(max_length=20)
username=models.EmailField()
password=models.CharField(max_length=20)
city=models.CharField(max_length=20)
state=models.CharFie... | [
"sanketiosonline@gmail.com"
] | sanketiosonline@gmail.com |
a2895c375cdca0634a6d85a52cc1838a3c58292c | 092f2dd962c9c393904fd9886a726c611f8aa811 | /palletsprojects_tutorial/tests/test_blog.py | dc6550b7ef96d8db0bc0fc4e69758814b26112df | [] | no_license | iAnafem/flask_tutorial_projects | b5d2b4f7e2eb68ed54de3938d9006889c9fe76fb | c0f77fe4056b8f7c4ab16bb9cbc75f4fe90d4bde | refs/heads/master | 2022-12-13T07:13:56.415457 | 2019-08-28T20:14:35 | 2019-08-28T20:16:11 | 200,421,166 | 0 | 0 | null | 2022-12-08T06:00:55 | 2019-08-03T21:09:25 | Python | UTF-8 | Python | false | false | 2,609 | py | import pytest
from flaskr.db import get_db
def test_index(client, auth):
response = client.get('/')
assert b'Log In' in response.data
assert b'Register' in response.data
auth.login()
response = client.get('/')
assert b'Log Out' in response.data
assert b'test title' in response.data
as... | [
"DPronkin@mostro.ru"
] | DPronkin@mostro.ru |
d7f6722540037a29c7c6722f0fca5d042b7c0552 | 45d6b7739ef7e61779d778b16e2d2cb9b92a08c0 | /test/run_in_parallel-200PU-grow/SUB-Analyzer-44.py | 153296b77ea28b2b6bcea87c4d79a9a5af001630 | [] | no_license | isobelojalvo/phase2L1TauAnalyzer | 40b545baec97bf287a8d8ab26bea70546bf9f6f8 | 98ef6d31a523698ba0de48763cadee1d5b2ce695 | refs/heads/master | 2021-01-22T08:38:17.965156 | 2019-07-25T17:25:51 | 2019-07-25T17:25:51 | 92,623,686 | 0 | 1 | null | 2019-07-23T19:43:55 | 2017-05-27T20:56:25 | Python | UTF-8 | Python | false | false | 6,667 | py | # Auto generated configuration file
# using:
# Revision: 1.19
# Source: /local/reps/CMSSW/CMSSW/Configuration/Applications/python/ConfigBuilder.py,v
# with command line options: step2 --python_filename=rerun_step2_L1_onMCL1_FEVTHLTDEBUG.py --no_exec -s L1 --datatier GEN-SIM-DIGI-RAW -n 1 --era Phase2_timing --eventc... | [
"ojalvo@wisc.edu"
] | ojalvo@wisc.edu |
4069cf696c9532eef3b0edf6220845339f5f76ec | 786027545626c24486753351d6e19093b261cd7d | /ghidra9.2.1_pyi/ghidra/app/util/bin/format/dwarf4/next/DWARFRegisterMappingsManager.pyi | ba1a1bbc88343e1b810e395de5dbfa5da91fb33f | [
"MIT"
] | permissive | kohnakagawa/ghidra_scripts | 51cede1874ef2b1fed901b802316449b4bf25661 | 5afed1234a7266c0624ec445133280993077c376 | refs/heads/main | 2023-03-25T08:25:16.842142 | 2021-03-18T13:31:40 | 2021-03-18T13:31:40 | 338,577,905 | 14 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,592 | pyi | import generic.jar
import ghidra.app.util.bin.format.dwarf4.next
import ghidra.program.model.lang
import java.lang
import org.jdom
class DWARFRegisterMappingsManager(object):
"""
Factory class to instantiate and cache DWARFRegisterMappings objects.
"""
def __init__(self): ...
def equals(s... | [
"tsunekou1019@gmail.com"
] | tsunekou1019@gmail.com |
2e1ce2b1f525c0e9d47d6fbdb67c819a692334fb | 245b92f4140f30e26313bfb3b2e47ed1871a5b83 | /airflow/providers/google_vendor/googleads/v12/services/services/customer_feed_service/transports/base.py | 023d30df6c5c442ea4db3635f9ad24a98bee2a10 | [
"Apache-2.0",
"BSD-3-Clause",
"MIT"
] | permissive | ephraimbuddy/airflow | 238d6170a0e4f76456f00423124a260527960710 | 3193857376bc2c8cd2eb133017be1e8cbcaa8405 | refs/heads/main | 2023-05-29T05:37:44.992278 | 2023-05-13T19:49:43 | 2023-05-13T19:49:43 | 245,751,695 | 2 | 1 | Apache-2.0 | 2021-05-20T08:10:14 | 2020-03-08T04:28:27 | null | UTF-8 | Python | false | false | 5,984 | py | # -*- coding: utf-8 -*-
# Copyright 2022 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | [
"noreply@github.com"
] | ephraimbuddy.noreply@github.com |
d2be3ec81f8f049e8a70a3c02bca4c7f5d207554 | 96e38b89fa057fa0c1cf34e498b4624041dfc6e2 | /BOJ/String/Python/4583.py | a995a37188226e83d4452414ace1a0952986cac9 | [] | no_license | malkoG/polyglot-cp | 66059246b01766da3c359dbd16f04348d3c7ecd2 | 584763144afe40d73e72dd55f90ee1206029ca8f | refs/heads/master | 2021-11-24T13:33:49.625237 | 2019-10-06T07:42:49 | 2019-10-06T07:42:49 | 176,255,722 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 409 | py | mirror=dict()
mirror['b'] = 'd'
mirror['d'] = 'b'
mirror['q'] = 'p'
mirror['p'] = 'q'
for ch in 'iovwx':
mirror[ch] = ch
while True:
s=input()
if s =="#":
break
result = ''
flag = True
for ch in s:
try:
s += mirror[ch]
except:
flag = False
... | [
"rijgndqw012@gmail.com"
] | rijgndqw012@gmail.com |
e3d149b7b7cf48fd12d2013aefb000ecade6610f | 5d32d0e65aa3bfa677fd1b8c92569e07e9b82af1 | /Section 5 - Programming Logic/Guess game v3 - multiple if.py | 1136fb613ad7c5b24b6249a57be9343f93a90ebf | [
"CC0-1.0"
] | permissive | pdst-lccs/lccs-python | b74ef2a02ac8ad2637f713fff5559f4e56c9827d | 95cb7ece05716521e9951d7a40de8fb20a88021f | refs/heads/master | 2023-05-28T00:46:57.313972 | 2023-05-22T10:16:43 | 2023-05-22T10:16:43 | 240,501,524 | 21 | 18 | null | null | null | null | UTF-8 | Python | false | false | 687 | py | # Event: LCCS Python Fundamental Skills Workshop
# Date: May 2018
# Author: Joe English, PDST
# eMail: computerscience@pdst.ie
# Name: Guessing Game v3
# Purpose: A program to demonstrate the multiple if statement
import random
number = random.randint(1, 10)
# The next line can be commented out later ...
p... | [
"noreply@github.com"
] | pdst-lccs.noreply@github.com |
85c8a05dbc3ccd700e56696411f9f0987cab48a8 | 8e8ea9e41032398fa8b1c54d73475a54aa11d293 | /page/quarter/quarter_statistic/quarter_statistic.py | 3df8bda70c25e22d603ec3c1cedd4f084dcf02b2 | [] | no_license | xmaimiao/wmPC_quarter | 6b69812b42039101d89076923c329d8e5952308b | 255666ccb5d2cac38b6975c0ae1ab055caabe41f | refs/heads/master | 2023-03-28T02:41:21.347163 | 2021-03-29T07:12:44 | 2021-03-29T07:12:44 | 352,538,443 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,686 | py | from common.contants import quarter_statistic_dir
from page.base.basepage import BasePage
from page.quarter.quarter_statistic.quarter_statistic_detail import Quarter_Statistic_Detail
class Quarter_Statistic(BasePage):
def wait_sleep(self,sleeps):
self.sleep(sleeps)
return self
def simple_sea... | [
"765120214@qq.com"
] | 765120214@qq.com |
1f6ecc9a87a9cf8415c9d78c3fb3778a97bf9c3f | 255e7b37e9ce28bbafba5a3bcb046de97589f21c | /leetcode_everyday/pastqing_491.py | d6d078bb2db9b5627bf0299def84a620217e9fd1 | [] | no_license | dog2humen/ForTheCoffee | 697d2dc8366921aa18da2fa3311390061bab4b6f | 2f940aa9dd6ce35588de18db08bf35a2d04a54f4 | refs/heads/master | 2023-04-15T09:53:54.711659 | 2021-04-28T13:49:13 | 2021-04-28T13:49:13 | 276,009,709 | 2 | 2 | null | 2020-07-01T08:29:33 | 2020-06-30T05:50:01 | Python | UTF-8 | Python | false | false | 849 | py | # coding:utf8
from typing import List
class Solution:
def findSubsequences(self, nums: List[int]) -> List[List[int]]:
return self.findSubsequences_v1(nums)
def findSubsequences_v1(self, nums: List[int]) -> List[List[int]]:
res = []
self.helper(nums, 0, [], res)
return res
... | [
"116676671@qq.com"
] | 116676671@qq.com |
921f2814602574d17fbd234becf4865925f0b64f | 488e0934b8cd97e202ae05368c855a57b299bfd1 | /Django/advanced/test_Blog/test_bookblog/book_app/migrations/0004_auto_20190408_1955.py | b4880c98ea624c5db12cdd69a946c614d2cc847a | [] | no_license | didemertens/udemy_webdev | 4d96a5e7abeec1848ecedb97f0c440cd50eb27ac | 306215571be8e4dcb939e79b18ff6b302b75c952 | refs/heads/master | 2020-04-25T00:24:45.654136 | 2019-04-13T16:00:47 | 2019-04-13T16:00:47 | 172,377,429 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 363 | py | # Generated by Django 2.1.7 on 2019-04-08 19:55
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('book_app', '0003_blog_intro'),
]
operations = [
migrations.AlterField(
model_name='blog',
name='intro',
... | [
"d.g.j.mertens@gmail.com"
] | d.g.j.mertens@gmail.com |
6a7cc2d596827c9bde48ed3927efac4efb6ee38c | 1ffbdfff2c9632fa8ecd6288578e1d02f740ee23 | /2020_/07/LeetCodeBitManipulation/03E_1356. Sort Integers by The Number of 1 Bits.py | dc2f4d00cc3f90c25830cf14864e295c482b40d1 | [] | no_license | taesookim0412/Python-Algorithms | c167c130adbe04100d42506c86402e729f95266c | c6272bbcab442ef32f327f877a53ee6e66d9fb00 | refs/heads/main | 2023-05-01T09:40:44.957618 | 2021-05-12T10:52:30 | 2021-05-12T10:52:30 | 366,682,846 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 780 | py | import collections
import numpy as np
from typing import List
#Runtime: 72 ms, faster than 68.71% of Python3 online submissions for Sort Integers by The Number of 1 Bits.
#Memory Usage: 13.8 MB, less than 86.25% of Python3 online submissions for Sort Integers by The Number of 1 Bits.
class Solution:
def sortByBits... | [
"taesoo.kim0412@gmail.com"
] | taesoo.kim0412@gmail.com |
faa0ab004c18bd45116e831d5433c6c545aaedb2 | 2f418a0f2fcca40f84ec0863b31ff974b574350c | /scripts/addons_extern/nodes_io/attributes.py | 5763cb541cfaa72d6cdbe4733176fefca15e8fb1 | [] | no_license | JT-a/blenderpython279 | 57a81b55564218f3b1417c2ffa97f5161897ec79 | 04846c82f794c22f87d677d9eb8cec1d05c48cda | refs/heads/master | 2021-06-25T06:58:07.670613 | 2017-09-11T11:14:36 | 2017-09-11T11:14:36 | 103,723,697 | 4 | 2 | null | 2017-09-16T04:09:31 | 2017-09-16T04:09:31 | null | UTF-8 | Python | false | false | 3,621 | py | #!/usr/bin/python3
# --------------------------------------------------
# ATTRIBUTES
# --------------------------------------------------
defaults = [
"bl_idname",
# "type", # read-only
"name",
"label",
# "parent",
"select",
"location",
# "dimensions", # read-only
"width",
"... | [
"meta.androcto1@gmail.com"
] | meta.androcto1@gmail.com |
9da6da5fba9daedf9b2e92c80aa332916e18eeae | 659653ebdff3d70e0c04cd0292e489dc537b4112 | /setup.py | 709ece69ddc3e6068b1178071932256215b94e81 | [] | no_license | vangheem/clouddrive | 48de3dd21f66c4ea207e6cbfefff630825349bb3 | 1b0e74dd4e9cd3dc838a3c13866ccef8a3920b63 | refs/heads/master | 2021-01-10T02:11:52.997944 | 2016-09-20T02:30:51 | 2016-09-20T02:30:51 | 48,830,570 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 863 | py | # -*- coding: utf-8 -*-
import os
from setuptools import setup
from setuptools import find_packages
def read(*rnames):
return open(os.path.join(os.path.dirname(__file__), *rnames)).read()
setup(
name='clouddrive',
version='0.1.dev0',
description='',
long_description='',
classifiers=[
... | [
"vangheem@gmail.com"
] | vangheem@gmail.com |
0f907498ef454193d80fa1dbac7f4ef357cb0485 | f9308d5a8efe2dbb48e9cc87cd06405b60a9dc7b | /samples/python/apidocs/ee_featurecollection_aggregate_total_var.py | 6f681ac3fa4a89f5f1bdf70d9c5cf99b8aef7c56 | [
"Apache-2.0",
"CC-BY-4.0"
] | permissive | google/earthengine-community | 4e054b421f66f03507d58668084aee981062fc24 | ce931040c518860f8788b4888c0acfdebd2952fc | refs/heads/master | 2023-09-01T14:47:54.812703 | 2023-08-31T23:01:00 | 2023-08-31T23:01:39 | 200,732,820 | 428 | 552 | Apache-2.0 | 2023-09-13T21:46:51 | 2019-08-05T21:42:11 | Jupyter Notebook | UTF-8 | Python | false | false | 1,021 | py | # Copyright 2023 The Google Earth Engine Community 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
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable... | [
"copybara-worker@google.com"
] | copybara-worker@google.com |
d6447c5e8113bc3dfba69e31df59d4e3c714b954 | 5257652fc34ec87fe45d390ba49b15b238860104 | /single_cell_atacseq_preprocessing/pseudorep_peaks_supported_by_30percent_of_bioreps_in_same_region/get_number_of_samples_that_support_each_regional_peak.py | 47f15d19a533484f6a223eea9579cbdf122b1557 | [] | no_license | thekingofall/alzheimers_parkinsons | cd247fa2520c989e8dd853ed22b58a9bff564391 | 4ceae6ea3eb4c58919ff41aed8803855bca240c8 | refs/heads/master | 2022-11-30T22:36:37.201334 | 2020-08-12T01:23:55 | 2020-08-12T01:23:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,190 | py | #using IDR optimal peaks from the pseudoreplicate set, calculate the number of biological replicates (based on biorep IDR optimal peak sets) that support each peak
import argparse
import pybedtools
import gzip
def parse_args():
parser=argparse.ArgumentParser(description="using IDR optimal peaks from the pseudore... | [
"annashcherbina@gmail.com"
] | annashcherbina@gmail.com |
6793a7e2ed84de8b67e05f62dbff2c37d60be349 | 6c0beed4cd8719bf48982a853183121cea35cadf | /thread_syn_scanr_final.py | a312b10f43247c3ca188d52d82f490d1d797ed92 | [] | no_license | vicky288/pythonScripts | c90406dd2addc7a72275be0526daae7eba7d8c29 | 2b31c726b5924314b31a37f3a4eb86c132816859 | refs/heads/master | 2021-04-30T16:35:30.739238 | 2017-02-09T00:06:16 | 2017-02-09T00:06:16 | 80,077,402 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,356 | py | #!/usr/bin/env python
import threading
import Queue
import time
from scapy.all import *
class WorkerThread(threading.Thread) :
def __init__(self, queue, tid) :
threading.Thread.__init__(self)
self.queue = queue
self.tid = tid
print "Worker %d Reporting for Service Sir!" %self.tid
def run(self) :
total_p... | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
3822dc71dbe9d74b56a67f934b2b21851a2d04bd | 19da1a56f137a08772c347cf974be54e9c23c053 | /lib/adafruit_boardtest/boardtest_voltage_monitor.py | bcdd23695e093d6d8bed54eddee6c02a1518167c | [] | no_license | mk53202/mk53202-timeclock-pyportal | d94f45a9d186190a4bc6130077baa6743a816ef3 | 230a858d429f8197c00cab3e67dcfd3b295ffbe0 | refs/heads/master | 2021-02-04T05:38:25.533292 | 2020-02-27T22:45:56 | 2020-02-27T22:45:56 | 243,626,362 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,216 | py | # The MIT License (MIT)
#
# Copyright (c) 2018 Shawn Hymel for Adafruit Industries
#
# 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 th... | [
"mkoster@stack41.com"
] | mkoster@stack41.com |
a0322b2f81ed8ef731da2cc2a758f162c0d92b65 | 9b36652dafb58888b7a584806ee69a33fcb609d5 | /objutils/pickleif.py | fd210c74a9e0aa035425e908bbf6ad39a83c3423 | [] | no_license | pySART/objutils | db33e4576cf68111cb4debbafec06a0204844938 | 5ba4631b2245caae80d4dbe0053db0f2706ba53f | refs/heads/master | 2020-06-29T03:35:24.485977 | 2016-11-21T14:21:56 | 2016-11-21T14:21:56 | 74,451,500 | 5 | 2 | null | 2016-11-22T08:36:10 | 2016-11-22T08:36:10 | null | UTF-8 | Python | false | false | 1,385 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
__version__ = "0.1.0"
__copyright__ = """
pyObjUtils - Object file library for Python.
(C) 2010-2013 by Christoph Schueler <github.com/Christoph2,
cpu12.gems@googlemail.com>
All Rights Reserved
This program is free so... | [
"cpu12.gems@googlemail.com"
] | cpu12.gems@googlemail.com |
34c69a2e6e5163f82c16f2066cc150e2915edd2e | 13a416a2694d1f6aa1a68cd47610236bf61cafbc | /CodePractice/Turtle/circleturtle.py | a465b8fe30527faaecef0725052e7c92e49ae8e1 | [] | no_license | Highjune/Python | c637f7d0f9e5d1ac9d6ad87b4e54833b8ff4ae11 | 1be43816d22f5f3b8679cf0cd3939e9d9f54497a | refs/heads/master | 2022-11-24T01:20:54.470172 | 2020-07-27T18:01:47 | 2020-07-27T18:01:47 | 263,271,337 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 170 | py | import turtle as t
t.shape("turtle")
num = int(input('num : '))
go = int((num-1)/2)
for i in range(1,num):
for j in range(1,i):
t.forward(1)
t.right(90)
| [
"highjune37@gmail.com"
] | highjune37@gmail.com |
f546e9e52b380e7d078d7a83b9522f48799bf1fb | 6e172edee44d5985d19327cf61865d861395d595 | /2020/11/y2020_d11_p01.py | 14c61f5a7ba331bb0fdd890b3ea3476e58d1cce5 | [] | no_license | rHermes/adventofcode | bbac479ec1c84c55484effa2cd94889d621b3718 | 4cbe7a952678c5f09438702562b7f6f673a1cf83 | refs/heads/master | 2023-01-14T07:05:35.769426 | 2023-01-01T09:53:11 | 2023-01-01T10:13:29 | 225,170,580 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,699 | py | import fileinput
import itertools as it
# Let's build a jump table
def jumptbl(M, ROWS, COLS, x, y):
arounds = []
for dy, dx in [(-1,-1), (-1, 0), (-1, 1), (0,-1), (0, 1), (1,-1), (1,0), (1,1)]:
zx = x + dx
zy = y + dy
idx = zy*COLS + zx
if 0 <= zx < COLS and 0 <= zy < ROWS and ... | [
"teodor@spaeren.no"
] | teodor@spaeren.no |
8eabc5915442c74698de459405acdb8a6cb90fa6 | 18b3ad3b0e1f7f10969738251e1201d01dfbc6bf | /backup_files/practice/rect.py | 00e007de1004f6dc31ae22f14c65ace2161a43fa | [] | no_license | sahthi/backup2 | 11d509b980e731c73733b1399a8143780779e75a | 16bed38f0867fd7c766c2a008c8d43b0660f0cb0 | refs/heads/master | 2020-03-21T12:39:56.890129 | 2018-07-09T08:12:46 | 2018-07-09T08:12:46 | 138,565,151 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 352 | py | #!/usr/bin/python
class rectangle:
def __init__(self,length,breadth):
self.length=length
self.breadth=breadth
def area(self):
return self.breadth*self.length
a=input("enter the length of rectangle:")
b=input("enter the breadth of rectangle:")
obj=rectangle(a,b)
print("area of rectan... | [
"siddamsetty.sahithi@votarytech.com"
] | siddamsetty.sahithi@votarytech.com |
70252ccd8d751ddb991b9baf48cccda96d0787ae | 00758be070825c33d9178c8a50d1a59ee2c3c790 | /ppci/format/pefile/pefile.py | 9828d6c93963c5f9a97d85c328a03344460d59d7 | [
"BSD-2-Clause"
] | permissive | jsdelivrbot/ppci-mirror | d2a87f21a735a9495ad1130959b599ab317a62f6 | 67195d628275e2332ceaf44c9e13fc58d0877157 | refs/heads/master | 2020-04-10T06:23:38.964744 | 2018-12-07T17:05:05 | 2018-12-07T17:05:05 | 160,853,011 | 0 | 0 | BSD-2-Clause | 2018-12-07T17:07:00 | 2018-12-07T17:07:00 | null | UTF-8 | Python | false | false | 312 | py | from .headers import DosHeader, CoffHeader, PeOptionalHeader64
from .headers import ImageSectionHeader, PeHeader, DataDirectoryHeader
from .headers import ImportDirectoryTable
class PeFile:
""" Pe (exe) file """
def __init__(self):
self.pe_header = PeHeader()
class ExeFile(PeFile):
pass
| [
"windel@windel.nl"
] | windel@windel.nl |
79dc973cef96d3e5eef6f7cd3552f8a91bf78cb4 | b71f656374293c5f1238fcb449aa4dde78632861 | /eudplib/utils/blockstru.py | c3e9a5159a3ca9e5b4b729aab409a5ff123314d1 | [
"MIT"
] | permissive | tobeinged/eudplib | ce1cdc15f7ec6af857b4b64b5c826b3dd95d3e48 | 066c0faa200dc19e70cdb6979daf8f008b8ae957 | refs/heads/master | 2023-05-04T08:49:01.180147 | 2019-03-18T14:30:29 | 2019-03-18T14:30:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,549 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
'''
Copyright (c) 2014 trgk
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, mo... | [
"phu54321@naver.com"
] | phu54321@naver.com |
a4056e610f35a5a1bfbe93990398a2a61a725fde | b7620d0f1a90390224c8ab71774b9c906ab3e8e9 | /aliyun-python-sdk-imm/aliyunsdkimm/request/v20200930/CreateFigureClusteringTaskRequest.py | cfa9780027b8c39cc94abaae16dbba18b98bda90 | [
"Apache-2.0"
] | permissive | YaoYinYing/aliyun-openapi-python-sdk | e9c62940baee1a35b9ec4a9fbd1e4eb0aaf93b2f | e9a93cc94bd8290d1b1a391a9cb0fad2e6c64627 | refs/heads/master | 2022-10-17T16:39:04.515562 | 2022-10-10T15:18:34 | 2022-10-10T15:18:34 | 117,057,304 | 0 | 0 | null | 2018-01-11T06:03:02 | 2018-01-11T06:03:01 | null | UTF-8 | Python | false | false | 2,476 | 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... | [
"sdk-team@alibabacloud.com"
] | sdk-team@alibabacloud.com |
7d99e26a6d7d4b0a7f916ad07f46105c644061c7 | ac2f43c8e0d9649a7f063c59b3dffdfed9fd7ed7 | /tests2/common/base_slaac_test.py | 459b17fe8aebffa9efbf641b36e553aada1068c0 | [] | no_license | facebook/openbmc | bef10604ced226288600f55248b7f1be9945aea4 | 32777c66a8410d767eae15baabf71c61a0bef13c | refs/heads/helium | 2023-08-17T03:13:54.729494 | 2023-08-16T23:24:18 | 2023-08-16T23:24:18 | 31,917,712 | 684 | 331 | null | 2023-07-25T21:19:08 | 2015-03-09T19:18:35 | C | UTF-8 | Python | false | false | 2,578 | py | #!/usr/bin/env python3
#
# Copyright 2018-present Facebook. All Rights Reserved.
#
# This program file is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the
# Free Software Foundation; version 2 of the License.
#
# This program is distributed ... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
6b6b8ed46de995cb4125b9f3eae5ad6f987cb563 | 1ff9adfdb9d559e6f81ed9470467bab25e93b5ab | /src/ta_lib/_vendor/tigerml/core/reports/lib.py | e68184e54ad7fe935d6209b79f71931a46f2af5f | [] | no_license | Seemant-tiger/housing-price-prediction | a39dbefcb11bc460edeeee92e6becf77d35ff3a8 | be5d8cca769c7e267cfee1932eb82b70c2855bc1 | refs/heads/main | 2023-06-24T00:25:49.776720 | 2021-07-18T16:44:28 | 2021-07-18T16:44:28 | 387,222,852 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 594 | py | def create_report(
contents, name="", path="", format=".html", split_sheets=True, tiger_template=False
):
if format == ".xlsx":
from .excel import create_excel_report
create_excel_report(contents, name=name, path=path, split_sheets=split_sheets)
elif format == ".pptx":
from .ppt.lib... | [
"seemantsingh1199@gmail.com"
] | seemantsingh1199@gmail.com |
23e3ad4e01e0f76661ea461347891416a38d216c | a71a756203a07ccaece6db440410493b3b7ff77f | /helios/plugins/builtin/rpc_websocket_proxy_through_ipc_socket/plugin.py | f25a485fbaf58be719639402aa3e72f7562385ca | [
"MIT"
] | permissive | Helios-Protocol/py-helios-node | 73735dc24cd4c816d55649ed2f5df822efabfdce | 691b378938f0a36bf8774dc1ee4e4370b6cf7c63 | refs/heads/master | 2021-08-19T23:05:18.841604 | 2020-01-18T19:38:33 | 2020-01-18T19:38:33 | 134,452,574 | 21 | 10 | MIT | 2019-06-09T04:43:14 | 2018-05-22T17:39:10 | Python | UTF-8 | Python | false | false | 1,344 | py | from argparse import (
ArgumentParser,
_SubParsersAction,
)
from helios.extensibility import (
BaseIsolatedPlugin,
)
from .websocket_proxy_server import Proxy as rpc_websocket_proxy
###
# This one is not used anymore because it is synchronous. There is a new asynchronous one in the json_rpc folder
# This... | [
"admin@hyperevo.com"
] | admin@hyperevo.com |
6d4d1d60f2c789f78d8d5f3257764908e635553d | 809f263b77b525549cd945c39c4c9cf2b8e6a167 | /pqcrypto/sign/sphincs_shake256_192s_simple.py | 6a45aa9c023c21f67bb3b6b83ca198236bb3e8f7 | [
"BSD-3-Clause"
] | permissive | Kayuii/pqcrypto | bdf5014b7590dfe363baedbf47171f4b4cb25349 | dd8c56fd876a397caef06a00d35537a4f9c1db28 | refs/heads/master | 2022-12-14T00:34:36.632689 | 2020-09-08T10:40:26 | 2020-09-08T10:40:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 447 | py | from .._sign.sphincs_shake256_192s_simple import ffi as __ffi, lib as __lib
from .common import _sign_generate_keypair_factory, _sign_sign_factory, _sign_verify_factory
PUBLIC_KEY_SIZE = __lib.CRYPTO_PUBLICKEYBYTES
SECRET_KEY_SIZE = __lib.CRYPTO_SECRETKEYBYTES
SIGNATURE_SIZE = __lib.CRYPTO_BYTES
generate_keypair = _s... | [
"inbox@philonas.net"
] | inbox@philonas.net |
13afaec093ca5dbb37ccc72918e13c91b3555344 | 2bb90b620f86d0d49f19f01593e1a4cc3c2e7ba8 | /pardus/tags/2011/util/shell/command-not-found/actions.py | fd6ae5ea60b235f2996161b9d5463089b352de0a | [] | no_license | aligulle1/kuller | bda0d59ce8400aa3c7ba9c7e19589f27313492f7 | 7f98de19be27d7a517fe19a37c814748f7e18ba6 | refs/heads/master | 2021-01-20T02:22:09.451356 | 2013-07-23T17:57:58 | 2013-07-23T17:57:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 647 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Copyright 2008-2010 TUBITAK/UEKAE
# Licensed under the GNU General Public License, version 2.
# See the file http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt
from pisi.actionsapi import pisitools
from pisi.actionsapi import get
def install():
pisitools.dobin("src/... | [
"yusuf.aydemir@istanbul.com"
] | yusuf.aydemir@istanbul.com |
57f0473df75e076251d0ff6afe0e60431dd1b124 | 5259532bb41382bc05c7f311fdee65c67f67990e | /Tools/SampleTool/UI_SampleMainForm.py | 233a453909cfe5c2f121227d1c0c5bfe19a1f080 | [] | no_license | csjy309450/MLTools_PyQt4 | 57905cc78284d87349eda511fc78c43f3527bbeb | d1af57c279fd12428cda303d22e7a732db3ff257 | refs/heads/master | 2021-04-29T10:36:54.792400 | 2018-02-28T17:03:08 | 2018-02-28T17:03:08 | 77,835,494 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,513 | py | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'SampleToolWidget.ui'
#
# Created by: PyQt4 UI code generator 4.11.4
#
# WARNING! All changes made in this file will be lost!
from PyQt4 import QtCore, QtGui
import CopyForm as cf
try:
_fromUtf8 = QtCore.QString.fromUtf8
except Attribut... | [
"="
] | = |
d615b3f87e95f821b1ad96c4a961165d3dcfb242 | 1924da60fa3298e386acc6dac9bd390784a9b5bb | /test18.py | 2eaca7b55757608822e1ea3f6eebcce199ba5a68 | [] | no_license | yukitomo/NLP100DrillExercises | c8a177b56f798cef225ace540e965809a1fc1fbc | ea2ceb366de1fa1f27d084e3b9328cc6f34ac1dd | refs/heads/master | 2020-06-01T02:55:11.423238 | 2015-06-10T15:39:03 | 2015-06-10T15:39:03 | 37,205,750 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 425 | py | #!/usr/bin/python
#-*-coding:utf-8-*-
#(18) 仙台市の住所らしき表現にマッチする正規表現を各自で設計し,抽出せよ.
#python test18.py tweet.txt
import sys
import re
pattern = re.compile(u'(仙台市)([^\s\w\d ]{1,20}[\d0-9〇一-九十上下東西]+)*')
for line in sys.stdin:
line = line.decode("utf-8")
match=pattern.search(line)
if match:
print match.group(0).encode... | [
"over.the.tr0ouble@gmail.com"
] | over.the.tr0ouble@gmail.com |
742a110bb63077d24dc9f3b001ade6455c465a66 | 0b85fbdd58eab30cf2ed5676a9c331c1ab6152f6 | /cdp_viz/handlers/services/dl.py | a59f386a88dc13816e7f7bb9a1accba49a601a15 | [] | no_license | pymonger/cdp-viz-pyramid | 82ddac3552a0da9c1a831959ff28fdb3b21c126f | 32c5f3d6f1d63c1e7e6131876da9a19ab3d25e93 | refs/heads/master | 2020-03-28T23:46:17.564043 | 2013-02-06T17:48:29 | 2013-02-06T17:48:29 | 149,307,796 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,392 | py | import logging, simplejson, pprint, re, os, sys
from urllib2 import urlopen
from urllib import urlencode
from datetime import datetime
from string import Template
from Levenshtein import ratio, median
from pyramid.httpexceptions import HTTPFound
from pyramid_handlers import action
from beaker.cache import CacheManage... | [
"pymonger@gmail.com"
] | pymonger@gmail.com |
5c970dffe7023ba46848e3b65f0ad476cbb2b53e | 29145db13229d311269f317bf2819af6cba7d356 | /april circuits/shifts.py | bb24c3d034ba66dfbb7a8eba41e99923e3127ea4 | [] | no_license | rocket3989/hackerEarth2019 | 802d1ca6fd03e80657cbe07a3f123e087679af4d | 42c0a7005e52c3762496220136cc5c1ee93571bb | refs/heads/master | 2021-07-05T01:32:42.203964 | 2020-12-22T03:40:20 | 2020-12-22T03:40:20 | 211,607,143 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 252 | py | for tc in range(int(input())):
N, M, c = input().split()
N = int(N)
M = int(M)
N = bin(N)[2:].zfill(16)
if c == 'L':
print(int(N[M:] + N[:M], 2))
else:
print(int(N[16 - M:] + N[:16 - M], 2))
| [
"rocket3989@gmail.com"
] | rocket3989@gmail.com |
37918bdb0d4e31428108d8434477b8686f64c19d | f75609812d20d46a9f94ee0cfdb91c321d26b63d | /flask/flask_fundamentals/Number_Game/server.py | 6830ce31939d2a6ef2ce63d2e02eb346853fbccf | [] | no_license | IanAranha/Python2021 | eff47a20451f61b144b17f48321a7b06308aadca | d9769b8b387b77753b77f6efe3a9a270a1f158d3 | refs/heads/main | 2023-04-02T08:20:24.382913 | 2021-04-10T22:27:10 | 2021-04-10T22:27:10 | 345,918,060 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 865 | py | from flask import Flask, redirect, render_template, session, request
import random
app = Flask(__name__)
app.secret_key = "0004ThisIsASecretKey"
@app.route("/")
def index():
if "random_number" not in session:
session["random_number"] = random.randrange(0, 101)
return render_template("index.html")
@app.route("... | [
"ianorama@gmail.com"
] | ianorama@gmail.com |
243c193623591d29bb3fa6344bb1b2d31f4adb6f | 2753757e2d13f5dd0d1faf1264031d476e162975 | /others/assignment/temp.py | ae6d46f2f1fb03391ed5c73d858f9a215d0d38a0 | [] | no_license | florije1988/Suggestions | c8846dd089eab816051ecc1fc43a7fcc07580194 | 23718968acc16fa243c248a6ac3d4715c53daaa1 | refs/heads/master | 2020-05-20T07:01:54.292081 | 2014-08-11T07:52:02 | 2014-08-11T07:52:02 | 21,298,258 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,279 | py | # -*- coding: utf-8 -*-
__author__ = 'florije'
import time
def reverse_str(str_arg):
if len(str_arg) == 1:
return str_arg
else:
return str_arg[-1] + reverse_str(str_arg[:-1])
if __name__ == '__main__':
# s_arg = input('list:')
# print s_arg
# print type(s_arg)
# for i in ran... | [
"florije1988@gmail.com"
] | florije1988@gmail.com |
7f44ed7c492048c7a2268982590b8ef20b58f77e | 75dcb56e318688499bdab789262839e7f58bd4f6 | /_algorithms_challenges/practicepython/python-exercises-master/07-list-comprehension/exercise.py | 894ad5cd07e85383178aea3f7a25e85196b75242 | [] | no_license | syurskyi/Algorithms_and_Data_Structure | 9a1f358577e51e89c862d0f93f373b7f20ddd261 | 929dde1723fb2f54870c8a9badc80fc23e8400d3 | refs/heads/master | 2023-02-22T17:55:55.453535 | 2022-12-23T03:15:00 | 2022-12-23T03:15:00 | 226,243,987 | 4 | 1 | null | 2023-02-07T21:01:45 | 2019-12-06T04:14:10 | Jupyter Notebook | UTF-8 | Python | false | false | 270 | py | # /#! /urs/bin/env python
if __name__ == '__main__':
all = [1, 4, 9, 16, 25, 36, 49, 64, 81, 100]
odd = [number for number in all if number % 2 == 1]
even = [number for number in all if number % 2 == 0]
print("All: " + str(all) + '\nOdd: ' + str(odd))
| [
"sergejyurskyj@yahoo.com"
] | sergejyurskyj@yahoo.com |
b5fc5c27bf55103c13421385e42b252a54f84749 | 0c1d6b8dff8bedfffa8703015949b6ca6cc83f86 | /lib/worklists/operator/CT/v4.0/business/GPON_2+1/QoS_DSCP/script.py | 8027050e03e5cef79e0d59b75c244127b0de19af | [] | no_license | samwei8/TR069 | 6b87252bd53f23c37186c9433ce4d79507b8c7dd | 7f6b8d598359c6049a4e6cb1eb1db0899bce7f5c | refs/heads/master | 2021-06-21T11:07:47.345271 | 2017-08-08T07:14:55 | 2017-08-08T07:14:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,812 | py | #coding:utf-8
# -----------------------------rpc --------------------------
import os
import sys
#debug
DEBUG_UNIT = False
if (DEBUG_UNIT):
g_prj_dir = os.path.dirname(__file__)
parent1 = os.path.dirname(g_prj_dir)
parent2 = os.path.dirname(parent1)
parent3 = os.path.dirname(parent2)
parent4 = os... | [
"zhaojunhhu@gmail.com"
] | zhaojunhhu@gmail.com |
06e91545546c5d5f9f8c5ae573bbd5682f098d9e | e7b7cc34f77c71e61aa0fa05bcc62f54fc2fc0e1 | /Array/test_q056_merge_intervals.py | 144e68cff13f68e05cc835a31a46718e9c0dfad5 | [] | no_license | sevenhe716/LeetCode | 41d2ef18f5cb317858c9b69d00bcccb743cbdf48 | 4a1747b6497305f3821612d9c358a6795b1690da | refs/heads/master | 2020-03-16T16:12:27.461172 | 2019-04-22T13:27:54 | 2019-04-22T13:27:54 | 130,221,784 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 498 | py | import unittest
from Array.q056_merge_intervals import Solution
from common import Interval
class TestMergeIntervals(unittest.TestCase):
"""Test q056_merge_intervals.py"""
def test_merge_intervals(self):
s = Solution()
self.assertEqual([[1, 6], [8, 10], [15, 18]], s.merge([Interval(1, 3), In... | [
"429134862@qq.com"
] | 429134862@qq.com |
2b9e1a91205de5663111b9f61c7cc6a51b919853 | 53faa0ef3496997412eb5e697bc85eb09a28f8c9 | /supervised_learning/0x06-keras/5-main.py | 4c36d29b9b95d170647282429ea17053b98b29ca | [] | no_license | oran2527/holbertonschool-machine_learning | aaec2ffe762b959573f98a5f4e002272a5d643a3 | 8761eb876046ad3c0c3f85d98dbdca4007d93cd1 | refs/heads/master | 2023-08-14T00:37:31.163130 | 2021-09-20T13:34:33 | 2021-09-20T13:34:33 | 330,999,053 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,440 | py | #!/usr/bin/env python3
"""
Main file
"""
# Force Seed - fix for Keras
SEED = 0
import os
os.environ['PYTHONHASHSEED'] = str(SEED)
import random
random.seed(SEED)
import numpy as np
np.random.seed(SEED)
import tensorflow as tf
tf.set_random_seed(SEED)
import tensorflow.keras as K
session_conf = tf.ConfigProto(intra_op... | [
"orlago250183@gmail.com"
] | orlago250183@gmail.com |
a2d10d6ff44f902b929f0b62b703589f1f7756f7 | 19d43b8c175bb5304393cf9c259eacb7110dd4fc | /objectModel/Python/cdm/resolvedmodel/resolved_attribute.py | 77b50937eb6d60885c0362dca92be9f242d7eb5e | [
"CC-BY-4.0",
"MIT"
] | permissive | bissont/CDM | 3fd814566ea1bf9d19e300cd5b438b384ce4bcba | 0cffb140e0b41e526be072b547cae91a03c4cd6f | refs/heads/master | 2020-12-29T12:55:23.822187 | 2020-02-05T02:19:27 | 2020-02-05T02:19:27 | 238,614,156 | 1 | 0 | null | 2020-02-06T05:21:51 | 2020-02-06T05:21:50 | null | UTF-8 | Python | false | false | 5,092 | py | # ----------------------------------------------------------------------
# Copyright (c) Microsoft Corporation.
# All rights reserved.
# ----------------------------------------------------------------------
from typing import Any, cast, Optional, Union, TYPE_CHECKING
from cdm.resolvedmodel.resolved_trait_set import... | [
"nebanfic@microsoft.com"
] | nebanfic@microsoft.com |
990db47ec28843c8eb2d8542de7e375dbb43c859 | 9c37742bdd09ccfb02da09be79e20b7333694d9b | /pyswagger/tests/v1_2/test_app.py | d65c18e48ea45b37e6f89ececb380e1a155dc7f9 | [
"MIT"
] | permissive | simudream/pyswagger | 72eea9a24140d3dfbb4f6a4537e10a9b07c4d09f | 1dcf7ab291d9535dfdb705e0cb0e2c6f2b0fb474 | refs/heads/master | 2020-12-11T05:32:38.335378 | 2015-01-22T11:39:10 | 2015-01-22T11:39:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,178 | py | from pyswagger import SwaggerApp, errs
from ..utils import get_test_data_folder
from pyswagger.spec.v2_0.objects import (
Schema,
Operation,
)
import unittest
import httpretty
import os
import six
class HTTPGetterTestCase(unittest.TestCase):
""" test HTTPGetter """
@httpretty.activate
def test_ht... | [
"missionaryliao@gmail.com"
] | missionaryliao@gmail.com |
4403e503e127c23cb397fe72eb4aca8267bc9fc4 | a2d36e471988e0fae32e9a9d559204ebb065ab7f | /huaweicloud-sdk-cloudrtc/huaweicloudsdkcloudrtc/v2/model/update_url_auth_request.py | 8044913f81326b931d750d21e5b323e8a54d90bf | [
"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 | 6,802 | py | # coding: utf-8
import re
import six
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
class UpdateUrlAuthRequest:
"""
Attributes:
openapi_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The k... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
a448c9227d0b822d8e2f908cfc10bd93e53162b2 | eacfc1c0b2acd991ec2cc7021664d8e79c9e58f6 | /ccpnmr2.4/python/memops/gui/DataEntry.py | e60cff844461888a85150c46163e540f8db69eb0 | [] | no_license | edbrooksbank/ccpnmr2.4 | cfecb0896dcf8978d796e6327f7e05a3f233a921 | f279ca9bb2d972b1ce075dad5fcc16e6f4a9496c | refs/heads/master | 2021-06-30T22:29:44.043951 | 2019-03-20T15:01:09 | 2019-03-20T15:01:09 | 176,757,815 | 0 | 1 | null | 2020-07-24T14:40:26 | 2019-03-20T14:59:23 | HTML | UTF-8 | Python | false | false | 5,930 | py |
"""
======================COPYRIGHT/LICENSE START==========================
DataEntry.py: <write function here>
Copyright (C) 2005 Wayne Boucher, Rasmus Fogh, Tim Stevens and Wim Vranken (University of Cambridge and EBI/MSD)
=======================================================================
This library is fr... | [
"ejb66@le.ac.uk"
] | ejb66@le.ac.uk |
a605dfcfc2f4d00faa17e9fbac69fb61a709b560 | b35469b3a3ef3ecb8da35a178ba0994bae2989b3 | /kubevirt/models/v1_pci_host_device.py | 65d45e6884a716731c600aef51e52b927476c143 | [
"Apache-2.0"
] | permissive | CHsixnine/client-python | 4802d76bbe3761a1311038665d931349298bcd81 | 315335602923dacbc3b73b23339002d69a5a41cc | refs/heads/master | 2023-03-20T22:45:25.578704 | 2021-03-17T07:34:18 | 2021-03-17T07:34:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,120 | py | # coding: utf-8
"""
KubeVirt API
This is KubeVirt API an add-on for Kubernetes.
OpenAPI spec version: 1.0.0
Contact: kubevirt-dev@googlegroups.com
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from pprint import pformat
from six import iteritems
import re
class V1PciHos... | [
"travis@travis-ci.org"
] | travis@travis-ci.org |
374fb7f9548ddb214ed23c9f91baa6f51c6ecd9a | eb722922339781fa6bd9937e69383fcd06256738 | /day1/kapua-python-client/swagger_client/models/user_query.py | f40b1b68ccf746a9a9f1ae2d1ffd2154a5689df1 | [
"MIT"
] | permissive | mrsrinivas/diec | 6a0c5da26ff23170b71217bfbc810bb98a897a83 | ae9a5203b506d5cc18cb381666351bf9ce6b9b6c | refs/heads/master | 2021-01-05T05:41:19.394898 | 2020-01-15T06:24:33 | 2020-01-15T06:24:33 | 240,901,175 | 1 | 0 | MIT | 2020-02-16T13:59:53 | 2020-02-16T13:59:52 | null | UTF-8 | Python | false | false | 6,757 | py | # coding: utf-8
"""
Eclipse Kapua REST API
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
OpenAPI spec version: 1.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re # noqa: F401
i... | [
"noreply@github.com"
] | mrsrinivas.noreply@github.com |
a65ad9748193a80ca6ea3a3b9948f43ba7938fbe | 60a831fb3c92a9d2a2b52ff7f5a0f665d4692a24 | /IronPythonStubs/release/stubs.min/System/ComponentModel/__init___parts/DataObjectAttribute.py | fa31cc9ac8a0bb5e911aa72b7329df96aa63c06d | [
"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 | 2,065 | py | class DataObjectAttribute(Attribute,_Attribute):
"""
Identifies a type as an object suitable for binding to an System.Web.UI.WebControls.ObjectDataSource object. This class cannot be inherited.
DataObjectAttribute()
DataObjectAttribute(isDataObject: bool)
"""
def Equals(self,obj):
"""
Equals(self: DataOb... | [
"magnetscoil@gmail.com"
] | magnetscoil@gmail.com |
960c42bb96022428399d3f6c90afa9aafe47ae6a | 09e8c92187ff8d7a726727041e2dd80850dcce3d | /leetcode/965_univalued_binary_tree.py | e0da41251305a9165e61a661dbd73b04870d0e67 | [] | no_license | kakru/puzzles | 6dd72bd0585f526e75d026f3ba2446b0c14f60e0 | b91bdf0e68605f7e517446f8a00b1e0f1897c24d | refs/heads/master | 2020-04-09T09:47:31.341475 | 2019-05-03T21:24:41 | 2019-05-03T21:24:41 | 160,246,660 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 970 | py | #!/usr/bin/env python3
# Definition for a binary tree node.
class TreeNode(object):
def __init__(self, x, left=None, right=None):
self.val = x
self.left = left
self.right = right
class Solution(object):
def isUnivalTree(self, root):
"""
:type root: TreeNode
:rty... | [
"karol@kruzelecki.com"
] | karol@kruzelecki.com |
cc1b9a672163c2594baee1485636929c3ba41bf0 | 3955c3f367a3a60f8602dcb4609faec9898438bb | /graylog/apis/systemshutdown_api.py | 255334f55b57fe4bd65f0fe6abe937ca07111116 | [
"Apache-2.0"
] | permissive | MinhKMA/graylog.py | e89c34defa5422d59d0a501355058f5eb2dfe68c | 3118f4a49c91c2cbbd660523b0ab99e56fbfd861 | refs/heads/master | 2021-05-06T21:03:06.946509 | 2016-09-23T04:31:13 | 2016-09-23T04:31:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,316 | py | # coding: utf-8
"""
No descripton provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
OpenAPI spec version: 2.1.1+01d50e5
Generated by: https://github.com/swagger-api/swagger-codegen.git
Licensed under the Apache License, Version 2.0 (the "License");
you m... | [
"on99@users.noreply.github.com"
] | on99@users.noreply.github.com |
77cfd36b65d609b44e3fa1b960fbfb54748bfadd | e9172452ed3777653ec7a4c7ef6d2269a2309a4c | /pandasRollingStats.py | 30244426f797b5c72c4db22f9f4bba209db9fc6a | [] | no_license | aiporre/QuinoaMarketForecast | ec7163ea52e7c63c34448c302d4539b96270a3dd | b76bf5380b930859392a7c6c46eade2464a94143 | refs/heads/master | 2021-09-24T09:20:13.704502 | 2016-10-03T06:51:14 | 2016-10-03T06:51:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,524 | py |
import pandas as pd
import quandl
import matplotlib.pyplot as plt
from matplotlib import style
style.use('fivethirtyeight')
def get_zinc_price():
api_key = open('data/myApiKey.txt', 'r').read()
gold = quandl.get('ODA/PZINC_USD', authtoken=api_key)
pd.DataFrame(gold).to_pickle('data/zinc.pickle')
def ge... | [
"ariel.iporre.rivas@gmail.com"
] | ariel.iporre.rivas@gmail.com |
039b5a5d6166730f71fa8dbae29bca022fb667b1 | a3cc7286d4a319cb76f3a44a593c4a18e5ddc104 | /lib/surface/logging/metrics/delete.py | 0fce2d106ce17d119936f16b3a3b14351d2e6cd1 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | jordanistan/Google-Cloud-SDK | f2c6bb7abc2f33b9dfaec5de792aa1be91154099 | 42b9d7914c36a30d1e4b84ae2925df7edeca9962 | refs/heads/master | 2023-09-01T01:24:53.495537 | 2023-08-22T01:12:23 | 2023-08-22T01:12:23 | 127,072,491 | 0 | 1 | NOASSERTION | 2023-08-22T01:12:24 | 2018-03-28T02:31:19 | Python | UTF-8 | Python | false | false | 1,918 | py | # Copyright 2015 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ag... | [
"jordan.robison@gmail.com"
] | jordan.robison@gmail.com |
70e4497255159185bbd2c4946a1eb958f6f1520f | 4178f2916d2da72cbb45454fbed941dcfe8f6460 | /POM_test/TestCase/Detail_Profile/TC_005.py | a8f7d88a1374eb3444ef223474fdf03a291f71c2 | [] | no_license | maxcrup007/Selenium_Webdriver_Python | 15196cb04ba5cafdc5b776c26d167f0b48fb0e14 | 6be7f0b9f53df1ba592957029e8a4d22e409d1c4 | refs/heads/main | 2023-03-24T21:04:31.976451 | 2021-03-22T09:16:04 | 2021-03-22T09:16:04 | 349,379,454 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,008 | py |
# ทดสอบการเข้าใช้งานของ "ข้อมูลส่วนตัว"
import time
import unittest
import sys
from selenium import webdriver
from selenium.webdriver import ActionChains
from POM_test.login import *
from POM_test.profilePage import *
from POM_test.scrollbar import *
import os
sys.path.append(os.path.join(os.path.dirname(__file__... | [
"36732487+maxcrup007@users.noreply.github.com"
] | 36732487+maxcrup007@users.noreply.github.com |
2a1e29bb5786850365a0cf5fca0e7f577085fec3 | 36e593943be060ca5ea74a3d45923aba422ad2c9 | /ThinkBayes/code/dungeons.py | 0df9ed07edd9dfe1089ba8c63d598987c192d448 | [] | no_license | xjr7670/book_practice | a73f79437262bb5e3b299933b7b1f7f662a157b5 | 5a562d76830faf78feec81bc11190b71eae3a799 | refs/heads/master | 2023-08-28T19:08:52.329127 | 2023-08-24T09:06:00 | 2023-08-24T09:06:00 | 101,477,574 | 3 | 1 | null | 2021-06-10T18:38:54 | 2017-08-26T09:56:02 | Python | UTF-8 | Python | false | false | 2,831 | py | """This file contains code for use with "Think Bayes",
by Allen B. Downey, available from greenteapress.com
Copyright 2012 Allen B. Downey
License: GNU GPLv3 http://www.gnu.org/licenses/gpl.html
"""
import random
import thinkbayes
import thinkplot
FORMATS = ['pdf', 'eps', 'png']
class Die(thinkbayes.Pmf):
"""... | [
"xjr30226@126.com"
] | xjr30226@126.com |
9cdb76e81612b5b87a3078f6f2c985f285dbbe6e | be7a79f3c590f0923f1e793c6a36cfebd9ca4d01 | /brocolli/converter/onnx_layers/concat_func.py | 32b54e65699b614aff8c4d4dff1d7f195fd89e83 | [
"MIT"
] | permissive | inisis/brocolli | f255d44dc9148fd2b3bc82f6a21e429a579399b4 | 46a3d8c5e19e481746a9c8a85c5e9a71a49b846c | refs/heads/master | 2023-07-22T09:37:19.480983 | 2023-07-17T14:25:35 | 2023-07-17T14:25:35 | 168,733,444 | 326 | 72 | MIT | 2023-06-04T17:03:43 | 2019-02-01T17:17:22 | Python | UTF-8 | Python | false | false | 905 | py | from loguru import logger
from onnx import helper
from onnx import TensorProto as tp
from .base_layer import BaseLayer
class ConcatFunc(BaseLayer):
def __init__(self, source_node, module=None, auto_gen=True):
super(ConcatFunc, self).__init__(source_node, module, auto_gen)
def get_concat_attr(self):... | [
"desmond.yao@buaa.edu.cn"
] | desmond.yao@buaa.edu.cn |
a0a83028a3a6053fbf17d8665c12eeb4ad4e51ef | c47340ae6bcac6002961cc2c6d2fecb353c1e502 | /test/test_passwords_object.py | f302c422a7a0449e34de00837f7cdeffa116807f | [
"MIT"
] | permissive | rafaeldelrey/controlm_py | 6d9f56b8b6e72750f329d85b932ace6c41002cbd | ed1eb648d1d23e587321227217cbfcc5065535ab | refs/heads/main | 2023-04-23T09:01:32.024725 | 2021-05-19T00:25:53 | 2021-05-19T00:25:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 911 | py | # coding: utf-8
"""
Control-M Services
Provides access to BMC Control-M Services # noqa: E501
OpenAPI spec version: 9.20.115
Contact: customer_support@bmc.com
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import unittest
import con... | [
"dcompane@gmail.com"
] | dcompane@gmail.com |
5231b1176e669d8aa95fff862a57be460421e78e | ae2695f60480aa9dbe2acf68309d7918b67c6954 | /alembic/versions/aca6937e73_committee_summary_te.py | d71879fcec60efa04167e13acbb5c7c1a6ddbb46 | [
"MIT"
] | permissive | mgax/mptracker | 0853dd11a7b15bce8d535eb86f65c1e37596a4e6 | e8d3c489aed36c70f81e89626f02e735e5890435 | refs/heads/master | 2023-02-22T03:53:26.481927 | 2020-08-19T09:25:58 | 2020-08-19T09:25:58 | 11,983,896 | 4 | 6 | MIT | 2023-02-02T07:16:26 | 2013-08-08T18:52:45 | Python | UTF-8 | Python | false | false | 278 | py | revision = 'aca6937e73'
down_revision = '58f2cb9046f'
from alembic import op
import sqlalchemy as sa
def upgrade():
op.add_column('committee_summary',
sa.Column('text', sa.Text(), nullable=True))
def downgrade():
op.drop_column('committee_summary', 'text')
| [
"alex@grep.ro"
] | alex@grep.ro |
f510be9f877cf397ceb2bf6817365f456d8d5106 | 6490638f15a2dfbe0cec9725186f9784d57c92f0 | /SCOS/__init__.py | a6e179ad6b3b0a273223cde1aa960d4a7e93d834 | [
"MIT"
] | permissive | khawatkom/SpacePyLibrary | af9c490ef796b9d37a13298c41df1fb5bf6b3cee | c94415e9d85519f345fc56938198ac2537c0c6d0 | refs/heads/master | 2020-05-14T21:52:39.388979 | 2019-04-17T17:06:04 | 2019-04-17T17:06:04 | 181,970,668 | 1 | 0 | null | 2019-04-17T21:26:44 | 2019-04-17T21:26:44 | null | UTF-8 | Python | false | false | 1,145 | py | #******************************************************************************
# (C) 2018, Stefan Korner, Austria *
# *
# The Space Python Library is free software; you can redistribute it and/or *
... | [
"korner-hajek@gmx.at"
] | korner-hajek@gmx.at |
e4ce7e967120ec413c360cfb38e9419d4965a57c | 5abf069ff84cb7ea465069c258c144460649da35 | /desktop/toolkit/qscintilla2/actions.py | 813c39c4e18bf77a3179ae66180e0b5080e6f9a0 | [] | no_license | poyraz76/Packages-Systemd | 7628cf6f6a8808f8766735551956e3dd8da9a2a9 | a515ea0275dc0d8ec38fb6eaacc85904dde9f286 | refs/heads/master | 2021-01-09T05:51:48.542336 | 2017-02-04T10:25:22 | 2017-02-04T10:25:22 | 80,849,530 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,161 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 3.
# See the file http://www.gnu.org/licenses/gpl.txt
from pisi.actionsapi import autotools
from pisi.actionsapi import pisitools
from pisi.actionsapi import shelltools
from pisi.actionsapi import pythonmodules
from pi... | [
"ergunsalman@hotmail.com"
] | ergunsalman@hotmail.com |
a46e60ebdf24c5dc1a7a082a563e503deea9c428 | 9977e4a5cb94760b380bd0de0faab9c04a3d94db | /examples/plot_simulation2d.py | 84f7ae9dcd7f6be0d65082772180cb538387b9ec | [] | 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,779 | py | """
====================
MTW synthetic images
====================
This example generates 3 synthetic sparse images (as regression coefficients)
which are fed to random gaussian matrices X. Increasing the Wasserstein
hyperparameter increases consistency across regression coefficients.
"""
import numpy as np
import ma... | [
"hicham.janati@inria.fr"
] | hicham.janati@inria.fr |
8e75b88201a1a9c29a76c8dbb9c96749e65847cc | 5a52ccea88f90dd4f1acc2819997fce0dd5ffb7d | /alipay/aop/api/response/AlipayOpenAppOpenidBatchqueryResponse.py | 852a2cc617b5cca9294234c0928fbc32c01da61e | [
"Apache-2.0"
] | permissive | alipay/alipay-sdk-python-all | 8bd20882852ffeb70a6e929038bf88ff1d1eff1c | 1fad300587c9e7e099747305ba9077d4cd7afde9 | refs/heads/master | 2023-08-27T21:35:01.778771 | 2023-08-23T07:12:26 | 2023-08-23T07:12:26 | 133,338,689 | 247 | 70 | Apache-2.0 | 2023-04-25T04:54:02 | 2018-05-14T09:40:54 | Python | UTF-8 | Python | false | false | 1,574 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.response.AlipayResponse import AlipayResponse
from alipay.aop.api.domain.OpenIdValue import OpenIdValue
class AlipayOpenAppOpenidBatchqueryResponse(AlipayResponse):
def __init__(self):
super(AlipayOpenAppOpenidBatchqueryRespon... | [
"jishupei.jsp@alibaba-inc.com"
] | jishupei.jsp@alibaba-inc.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.