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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
7a144841bd9fe8ec5e8663356c33fac86b2dbf31 | acb082b215e6d214a5065f76c0454dcf1fb2a533 | /src/cobra/core/auth/access.py | e3881977e6cf7cd7420cdef66f2da916e6890e6d | [
"Apache-2.0"
] | permissive | lyoniionly/django-cobra | 130b25cd897cc94b6a8da722e9a83ecea3b00c49 | 2427e5cf74b7739115b1224da3306986b3ee345c | refs/heads/master | 2016-09-06T10:23:10.607025 | 2016-02-22T14:16:49 | 2016-02-22T14:16:49 | 29,646,851 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,147 | py | from __future__ import absolute_import
from cobra.core.loading import get_model
__all__ = ['from_user', 'from_member', 'DEFAULT', 'SCOPES']
OrganizationMember = get_model('organization', 'OrganizationMember')
SCOPES = set([
'org:read',
'org:write',
'org:delete',
'team:read',
'team:write',
'... | [
"beihua_445566@126.com"
] | beihua_445566@126.com |
59620cdbfa9167aeb555cca708e1f7ede5412081 | 7d31324f874130bc5059314048193f474f2a820a | /gui.py | 6a41ea6e86f10145d7f19d02e451b0a0f571e17f | [] | no_license | deshudiosh/PyTSF | 2ae13c9724b6e290016aad6329db5c175bd319fa | 6c3a8b6b35a4fc602f10aa10aff72d9bc887ccdb | refs/heads/master | 2021-01-20T01:36:11.138441 | 2017-10-27T18:57:31 | 2017-10-27T18:57:31 | 89,306,166 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,025 | py | import remi.gui as gui
from remi import start, App
class PyTsfGui(App):
def __init__(self, *args):
super(PyTsfGui, self).__init__(*args)
def main(self):
# margin 0px auto allows to center the app to the screen
container = gui.VBox(width=400, margin='0px auto')
container.style[... | [
"deshudiosh@gmail.com"
] | deshudiosh@gmail.com |
2bc3743b880efe5c8a8739a55179572019820af5 | c31e46965ea47cdb0c61a6b525aecea45dbf4d0b | /gram/views.py | b442f39e96c2ad10dff14a8042bb03981ca1e2de | [] | no_license | marysinaida/-Instagram | 687563c7b9a44adcdd09217ed02ff5c2c24623d2 | cb0768ad24b7650db6b7fbfd9d445232b154cece | refs/heads/master | 2022-12-06T07:02:55.786066 | 2020-01-08T06:57:47 | 2020-01-08T06:57:47 | 228,771,439 | 0 | 0 | null | 2022-11-22T05:13:53 | 2019-12-18T06:16:03 | Python | UTF-8 | Python | false | false | 2,960 | py | from django.shortcuts import render,get_object_or_404
from django.utils import timezone
from .forms import PostForm
from .models import Post,Profile
from django.contrib.auth.models import User
from django.views.generic import (ListView,CreateView,DetailView)
from django.http import HttpResponse
from django.contrib.aut... | [
"marydorcassinaida54@gmail.com"
] | marydorcassinaida54@gmail.com |
e0d376cdb3b6cbbbbeea5b2ea6c2a81b88fbf34c | 422c9cc1c5ef7eba24610e66d6a74ec2e16bf39e | /install_isolated/lib/python2.7/dist-packages/turtle_actionlib/msg/_ShapeFeedback.py | 332cdc621b2cf527210a07a88ad56ccb86dca474 | [] | no_license | twighk/ROS-Pi3 | 222c735d3252d6fce43b427cdea3132f93025002 | 9f2912c44ae996040f143c1e77e6c714162fc7d2 | refs/heads/master | 2021-01-01T05:16:20.278770 | 2016-05-08T19:24:15 | 2016-05-08T19:24:15 | 58,306,257 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,927 | py | # This Python file uses the following encoding: utf-8
"""autogenerated by genpy from turtle_actionlib/ShapeFeedback.msg. Do not edit."""
import sys
python3 = True if sys.hexversion > 0x03000000 else False
import genpy
import struct
class ShapeFeedback(genpy.Message):
_md5sum = "d41d8cd98f00b204e9800998ecf8427e"
_... | [
"twighk@outlook.com"
] | twighk@outlook.com |
10103e3ce17a1843505618c2c3c6c0c49ea5b1c2 | 36163a05070a9cd0daab7c8b18b49053e0365bed | /src/python/WMCore/TaskQueue/TQComp/Apis/TQStateApi.py | cd257a2580c452ccf40cd98fd09fb388cf4f34cd | [] | no_license | sryufnal/WMCore | 472b465d1e9cff8af62b4f4a4587fd3927f82786 | 9575691bd7383e4de8bcdf83714ec71b3fec6aa7 | refs/heads/master | 2021-01-16T00:27:39.208561 | 2011-09-09T20:36:15 | 2011-09-09T20:36:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,529 | py | #!/usr/bin/env python
"""
API to query the TQ queue about its state.
It inherits the ability to connect to the TQ database
from TQComp.Apis.TQApi.
"""
__all__ = []
#import logging
import threading
import time
from inspect import stack
from TQComp.Apis.TQApi import TQApi
from TQComp.Apis.TQApiData import TASK_FIE... | [
"metson@4525493e-7705-40b1-a816-d608a930855b"
] | metson@4525493e-7705-40b1-a816-d608a930855b |
36da4a1a8ee737c91a2e4cfd313a97f8c36a836a | 56482e0b2ce6517fff41d0f78e0c0ed000d977a1 | /fmcapi/api_objects/helper_functions.py | 73723b685d3181277032d2a1b3b56c4c54e1fb90 | [
"BSD-3-Clause"
] | permissive | banzigaga/fmcapi | ab4d7aaaf4be4f2b0686d07b6272f8b9531577da | fd924de96e200ca8e0d5088b27a5abaf6f915bc6 | refs/heads/master | 2020-12-11T14:45:07.896571 | 2019-12-12T20:02:07 | 2019-12-12T20:02:07 | 233,876,405 | 1 | 0 | BSD-3-Clause | 2020-01-14T15:46:26 | 2020-01-14T15:46:26 | null | UTF-8 | Python | false | false | 4,316 | py | """Misc methods/functions that are used by the fmcapi package's modules."""
import re
import ipaddress
import json
import logging
logging.debug(f"In the {__name__} module.")
def syntax_correcter(value, permitted_syntax="""[.\w\d_\-]""", replacer="_"):
"""
Check 'value' for invalid characters (identified by ... | [
"dmickels@cisco.com"
] | dmickels@cisco.com |
258e3bc17596939fef5f5019ea6b0ffe123d50ca | a512b8893b0d2de827d6292e810f3a98b41e132c | /Week3/Day4/Solutions/Python/prog4.py | d6cc6209f9f236ad8243f6ba1b9ee1e54bfd07d1 | [] | no_license | Audarya07/Daily-Flash-Codes | d771079fd0d470e2d3e05679f17f32fb64b4f426 | cf96ca2b1676b038e243fac67be778381492ffeb | refs/heads/master | 2022-11-06T15:37:47.180729 | 2020-06-25T16:20:55 | 2020-06-25T16:20:55 | 274,960,651 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 109 | py | x = 7
for i in range(4):
for j in range(i+1):
print(x,end=" ")
x-=1
x+=1
print()
| [
"audiuttarwar2000@gmail.com"
] | audiuttarwar2000@gmail.com |
7036e36ad6e119dac97c2175715c6b24857595cf | 5a52ccea88f90dd4f1acc2819997fce0dd5ffb7d | /alipay/aop/api/response/AnttechOceanbaseVerificationcodeVerifyResponse.py | 2808330b22ff50c4c507563278735baa72cdba13 | [
"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 | 479 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.response.AlipayResponse import AlipayResponse
class AnttechOceanbaseVerificationcodeVerifyResponse(AlipayResponse):
def __init__(self):
super(AnttechOceanbaseVerificationcodeVerifyResponse, self).__init__()
def parse_res... | [
"jishupei.jsp@alibaba-inc.com"
] | jishupei.jsp@alibaba-inc.com |
ca482b4f1f57cfad75b936c220d8d2f4d27aa7ae | acb8e84e3b9c987fcab341f799f41d5a5ec4d587 | /langs/2/f6a.py | b76a37dd4ff530a849fa7cefd2685a4fec605875 | [] | 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 |
f5c468beecaa5a2685e310d47134afa02ab63714 | 386d5d4f8f102e701d02b326cd066f520e3dff9f | /ProjectApplication/project_core/migrations/0166_organisation_long_name_english.py | 3e520cccaf379fa51b06988bbdeee96f5063231b | [
"MIT"
] | permissive | Swiss-Polar-Institute/project-application | ae2561c3ae2c1d5412d165d959ce2e5886135e0a | 7dc4a9f7e0f8d28c89977b85f99bc5e35ea77d43 | refs/heads/master | 2023-08-31T04:01:23.492272 | 2023-08-25T14:33:02 | 2023-08-25T14:33:02 | 206,330,401 | 7 | 5 | MIT | 2023-09-13T08:03:53 | 2019-09-04T13:49:39 | Python | UTF-8 | Python | false | false | 496 | py | # Generated by Django 3.2.3 on 2021-05-24 14:47
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('project_core', '0165_callcareerstage_enabled'),
]
operations = [
migrations.AddField(
model_name='organisation',
nam... | [
"jenny_t152@yahoo.co.uk"
] | jenny_t152@yahoo.co.uk |
09499b5a40b99525ef5398364dfabc50873929aa | d69995905dcd2522e53082c32c10f582b6779cba | /apps/testsuites/utils.py | 046c1755163e1f7524679acbd2cd94c4a979ed31 | [] | no_license | liqi629/learn_nm_drf | 010b35ab4254267a601a13f29e2ea3adb3be615e | ad0eef6fe2b338d613974850977de51b9d82ccc6 | refs/heads/master | 2023-02-10T14:33:33.521450 | 2021-01-13T09:14:23 | 2021-01-13T09:14:23 | 324,942,039 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 854 | py |
import re
from datetime import datetime
from apps.testcases.models import Testcases
def modify_output(results):
datas_list = []
for item in results:
mtch = re.search(r'(.*)T(.*)\..*?',item['create_time'])
item['create_time'] = mtch.group(1) +' '+mtch.group(2)
mtch = re.search(r'... | [
"liqi_629@163.com"
] | liqi_629@163.com |
cb5c4ccba717cd9c2920942e071419e95cf3aa0d | 2d276785c3663d4798be462115291c4706dbd255 | /Python从菜鸟到高手/chapter2/demo2.03.py | 5e0bf41280f733cc7bad2b80a3e3d347a440b9a8 | [] | no_license | bupthl/Python | 81c92433bd955663e6cda5fe7cab5ea3d067c3de | bdb33aeeb179a43100b9ef7129a925c63a133fd3 | refs/heads/master | 2022-02-21T11:02:40.195265 | 2019-08-16T05:49:18 | 2019-08-16T05:49:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,049 | py | '''
--------《Python从菜鸟到高手》源代码------------
欧瑞科技版权所有
作者:李宁
如有任何技术问题,请加QQ技术讨论群:264268059
或关注“极客起源”订阅号或“欧瑞科技”服务号或扫码关注订阅号和服务号,二维码在源代码根目录
如果QQ群已满,请访问https://geekori.com,在右侧查看最新的QQ群,同时可以扫码关注公众号
“欧瑞学院”是欧瑞科技旗下在线IT教育学院,包含大量IT前沿视频课程,
请访问http://geekori.com/edu或关注前面提到的订阅号和服务号,进入移动版的欧瑞学院
“极客题库”是欧瑞科技旗下在线题库,请扫描源代码根目录中的小程序码安装“极客... | [
"registercn@outlook.com"
] | registercn@outlook.com |
90f5d0ecdb0f132e76809d77dca276ad9a766253 | f576f0ea3725d54bd2551883901b25b863fe6688 | /sdk/eventhub/azure-eventhub-checkpointstoretable/azure/eventhub/extensions/checkpointstoretable/_vendor/data/tables/aio/_base_client_async.py | 06b3136394d128cf3c39652676f430c56596b3be | [
"LicenseRef-scancode-generic-cla",
"MIT",
"LGPL-2.1-or-later"
] | permissive | Azure/azure-sdk-for-python | 02e3838e53a33d8ba27e9bcc22bd84e790e4ca7c | c2ca191e736bb06bfbbbc9493e8325763ba990bb | refs/heads/main | 2023-09-06T09:30:13.135012 | 2023-09-06T01:08:06 | 2023-09-06T01:08:06 | 4,127,088 | 4,046 | 2,755 | MIT | 2023-09-14T21:48:49 | 2012-04-24T16:46:12 | Python | UTF-8 | Python | false | false | 6,981 | py | # -------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
# --------------------------------------------------------------------------
from typi... | [
"noreply@github.com"
] | Azure.noreply@github.com |
feb64c06c982a14449c43ee53cc8a6183106fe90 | 093b7b3ce929fa1383d5c1571271807f171aec23 | /rocket/entities/api/endpoint.py | 971b53d78b7948b93078e3f8e4b2b12806ebba05 | [] | no_license | takaaki-mizuno/smart-rocket-cli | fa728a13bc80781aea182922f7a0ee2c546518b1 | 1b4a522c54e94857803f9be246f0c480e50dae3d | refs/heads/master | 2020-03-21T02:06:54.115723 | 2018-06-25T22:43:32 | 2018-06-25T22:43:32 | 137,980,655 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 934 | py | from .parameter import Parameter
from .response import Reference
class Endpoint:
def __init__(self, path, method, definition, spec):
self.path = path
self.method = method
self.definition = definition
self.spec = spec
self.parameters = []
self.response = None
... | [
"takaaki.mizuno@gmail.com"
] | takaaki.mizuno@gmail.com |
8d5c12675fbee82c4d20320e48951b0b9f1842e2 | f716ec8240b775170283cb6d43da50d0ff3561b7 | /testkraken/testing_functions/check_output.py | 9eeb9c524b75d5c5bbe91ba9471dee63bc318ab0 | [] | no_license | jdkent/testkraken | 63493df89a5ae427dab9da14fc794de96cda6cef | 3b5d83f0eeaad7969902cfa867e6b4a1d4d7e691 | refs/heads/master | 2020-06-01T11:39:57.286709 | 2019-06-07T09:55:16 | 2019-06-07T09:55:16 | 190,766,540 | 0 | 0 | null | 2019-06-07T15:24:49 | 2019-06-07T15:24:49 | null | UTF-8 | Python | false | false | 3,766 | py | #/usr/bin/env python
from __future__ import division
import json
import os, inspect
from glob import glob
import pandas as pd
import numpy as np
import pdb
def creating_dataframe(files_list):
""" reads every json file from the files_list and creates one data frame """
outputmap = {0: 'voxels', 1: 'volume'}
... | [
"djarecka@gmail.com"
] | djarecka@gmail.com |
533ca7f861f7a6a34ff0265d601d017f0f9835f7 | b6d82335dfe93f86977e4cbafe592eff32536712 | /src/aws_hashicorp_packer_reaper/schema.py | f028da830fb0a93c2da236b6aabc65f3a6ed1a36 | [
"Apache-2.0"
] | permissive | felixubierar/aws-hashicorp-packer-reaper | 2bb9709b3c95c53d519fa5d009cbafc48232b1b4 | 9b29f6896f43a01f47d2a894059e4afa191a8ff2 | refs/heads/master | 2023-05-19T17:01:23.872830 | 2021-06-14T08:57:50 | 2021-06-14T08:57:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,835 | py | import durations
from aws_hashicorp_packer_reaper.logger import log
from jsonschema.exceptions import ValidationError
from jsonschema import validators, Draft7Validator, FormatChecker, validators
schema = {
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"mo... | [
"mark.van.holsteijn@gmail.com"
] | mark.van.holsteijn@gmail.com |
3d6fae9b8527d4f8823a630b37b8fecb7d2d8207 | b9f21bc90eed396dde950c30a1b482be0fb8ba30 | /AtCoder/ABC/114-B_1.py | 85c142e193b383c2ee95f438be3c37a3edec97b1 | [] | no_license | nanigasi-san/nanigasi | 127a21db1b31759908fd74cebabe240e5abf8267 | 5e3c3e78344dd9558cafe439beb272b9a80d0f3a | refs/heads/master | 2020-04-03T18:57:40.132489 | 2019-06-19T15:03:38 | 2019-06-19T15:03:38 | 155,504,101 | 1 | 0 | null | 2019-02-20T09:40:05 | 2018-10-31T05:33:11 | Python | UTF-8 | Python | false | false | 155 | py | S = list(input())
list = []
for _ in range(len(S)-2):
Sx = S[_]+S[_+1]+S[_+2]
sa = int(Sx)-753
list.append(abs(sa))
list.sort()
print(list[0])
| [
"nanigasi.py@gmail.com"
] | nanigasi.py@gmail.com |
55cd6829443eff74f5355c68f65b9b11ca2a37db | 1ac99f8065a2646bdb8ea9003fd5930341fb0cf4 | /flow_of_controls/while_basicprogram.py | 5e2dae225febd8aa313d2dcaf587b41771c78bb9 | [] | no_license | krishnanunni-pr/Pyrhon-Django | 894547f3d4d22dce3fff14e88815122c12c145b5 | c59471f947ceb103bb27a19e8a2a160e8ada529b | refs/heads/master | 2023-07-29T19:40:38.199104 | 2021-09-09T18:12:24 | 2021-09-09T18:12:24 | 385,128,009 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 47 | py | #print i
i=10
while i>0:
print(i)
i-=1 | [
"krishna@gmail.com"
] | krishna@gmail.com |
a4f92fc07660a377a8f5ca8b05dec21c348b7a8e | 2caa47f0bdb2f03469a847c3ba39496de315d992 | /Contest/ABC086/c/main.py | 1e87c7d1f6b031f11c2f42d5104c63354529a69a | [
"CC0-1.0"
] | permissive | mpses/AtCoder | 9023e44885dc67c4131762281193c24b69d3b6da | 9c101fcc0a1394754fcf2385af54b05c30a5ae2a | refs/heads/master | 2023-03-23T17:00:11.646508 | 2021-03-20T12:21:19 | 2021-03-20T12:21:19 | 287,489,233 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 233 | py | #!/usr/bin/env python3
n, *a = map(int, open(0).read().split())
a = [0]*3 + a
for i in range(n):
i *= 3
t, x, y = map(lambda j:abs(a[i+3+j]-a[i+j]), [0,1,2])
d = x+y
if d>t or d%2-t%2: print("No"); exit()
print("Yes") | [
"nsorangepv@gmail.com"
] | nsorangepv@gmail.com |
dd7863b3fccfeb68a73493c51a60650a5878a877 | be0f3dfbaa2fa3d8bbe59229aef3212d032e7dd1 | /DaVinciDev_v38r1p1/Phys/StrippingArchive/python/StrippingArchive/Stripping13/StrippingB0q2DplusMuX.py | 14901f74eb54b516839193dda755bc482337e0e4 | [] | no_license | Sally27/backup_cmtuser_full | 34782102ed23c6335c48650a6eaa901137355d00 | 8924bebb935b96d438ce85b384cfc132d9af90f6 | refs/heads/master | 2020-05-21T09:27:04.370765 | 2018-12-12T14:41:07 | 2018-12-12T14:41:07 | 185,989,173 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,405 | py | # $Id: StrippingB0q2DplusMuX.py,v 1.6 2010-09-03 00:05:35 rlambert Exp $
"""
Module for constuction of B0q->DplusMuNuX lines
==== Description of the lines ====
B0q->DplusMuNuX0 with X0 being neutrino, gamma, pi0, whatever,
Dq->KKpi, as required for Afs analysis in semileptonics.
(Ds+->KKpi, D+->KKpi)
There are three... | [
"slavomirastefkova@b2pcx39016.desy.de"
] | slavomirastefkova@b2pcx39016.desy.de |
26523c4e362f033a64402149db1156139b7ddef3 | 8fcc27160f8700be46296568260fa0017a0b3004 | /client/carbonui/control/browser/browserutil.py | f1123476fb25f4a4385f9b0fdc156e55cad377b4 | [] | no_license | connoryang/dec-eve-serenity | 5d867f4eedfa896a4ef60f92556356cafd632c96 | b670aec7c8b4514fc47cd52e186d7ccf3aabb69e | refs/heads/master | 2021-01-22T06:33:16.303760 | 2016-03-16T15:15:32 | 2016-03-16T15:15:32 | 56,389,750 | 1 | 0 | null | 2016-04-16T15:05:24 | 2016-04-16T15:05:24 | null | UTF-8 | Python | false | false | 44,014 | py | #Embedded file name: e:\jenkins\workspace\client_SERENITY\branches\release\SERENITY\packages\carbonui\control\browser\browserutil.py
from carbonui.primitives.frame import FrameCoreOverride as Frame
import blue
import urllib2
import urllib
import urlparse
from carbonui.primitives.container import Container
from c... | [
"masaho.shiro@gmail.com"
] | masaho.shiro@gmail.com |
671f43d908baa3c118b7e3e44c09aee84552f4d5 | ff58ba25d940ed34d9684efab04adef85d1e1c0f | /ENV/lib/python2.6/site-packages/gunicorn/app/pasterapp.py | 388478181468378e0cb86f5300a8946ea4738159 | [] | no_license | afsmith/Kneto-Sello | e9046a81ff83652531adc55aab3f90f77af5b5be | a1b12daf8a04ef485ddcaa2944b2d87878a8cdd0 | refs/heads/master | 2021-03-27T17:31:23.830989 | 2013-06-04T07:29:58 | 2013-06-04T07:29:58 | 6,720,999 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,270 | py | # -*- coding: utf-8 -
#
# This file is part of gunicorn released under the MIT license.
# See the NOTICE for more information.
import logging
import os
import pkg_resources
import sys
import ConfigParser
from paste.deploy import loadapp, loadwsgi
SERVER = loadwsgi.SERVER
from gunicorn.app.base import Application
fr... | [
"andrew.smith@kneto.fi"
] | andrew.smith@kneto.fi |
4cc88ed87b6aaa38699ceb8033c67c89bfceda02 | fdafe3308a26359559c61cb8b561363771100788 | /src/models/cifir10_classification/data/DataImage.py | 1a6b74d8b32a380b0ebf61ed349777290783247e | [] | no_license | yyHaker/tensorflow_study | e18ff3107365081643f8ea8c48a99c82a60c2000 | 7ea658444db9aa37b9c2d9b1e71dabe7f493be7c | refs/heads/master | 2021-09-13T16:52:11.142932 | 2018-05-02T10:27:42 | 2018-05-02T10:27:42 | 115,399,878 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,047 | py | # -*- coding:utf-8 -*-
"""
read the image data from the data file
"""
import numpy as np
from scipy import misc
import matplotlib.pyplot as plt
import os
import cv2
import logging
import csv
import random
# reproduce
np.random.seed(1)
class DataImage(object):
"""the image data object
vocabs below:
self.... | [
"572176750@qq.com"
] | 572176750@qq.com |
16291f7291e7ead6e270a41e3cc62a5634ed2532 | d25a8b0e9f8a4f48504a49e094085f92d8d8e08a | /tests/__init__.py | f5c12299b95821cfd20dc9d1f9152536d6790db3 | [
"MIT"
] | permissive | William-Lake/doc_db | c7ad963bc0ff3a75b9a690bf44025e2aa6d1773b | 022b3e08d10d104fd838c7a094091e78d771ebe1 | refs/heads/master | 2020-03-31T01:34:59.815672 | 2019-01-30T18:36:39 | 2019-01-30T18:36:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 61 | py | # -*- coding: utf-8 -*-
"""Unit test package for doc_db."""
| [
"noreply"
] | noreply |
1382dcbea411dd5c7a5227efcd1b1545775e46c7 | 8ecf97e0f12037ccd0b63f265fddd3bf84229d7a | /keras/inception_autoencoder_predict.py | 966fa0964b70a98e8e0ee7e382925390c8b2781a | [] | no_license | ArifSohaib/video_collission_detection | 158af02ce55d8e7f39b532417010b882106bdb2f | 79ac145f4a3d0386ffac4f4fc2cc6efda056e53f | refs/heads/master | 2021-09-11T01:36:09.085256 | 2018-04-05T19:44:40 | 2018-04-05T19:44:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,739 | py | from inception_autoencoder import build_autoencoder
import numpy as np
import pickle
import matplotlib.pyplot as plt
from sklearn import preprocessing
def main():
impact_data = np.loadtxt('../data/features/impacts_period1.npy')
full_data = np.loadtxt('../data/features/period1_full.npy')
min_max_scaler = p... | [
"arif_sohaib@outlook.com"
] | arif_sohaib@outlook.com |
490e204bc88e69d4ea255b9c9b4e172ee01ae582 | eb26f2a53339cc9880c193225919bd37078113aa | /flask/mysite/app.py | 1ce6098bfcafb1745e57a8640c7e316044ddd05d | [] | no_license | nnyong/TIL-c9 | c2590ea94c13221a45f274beb22a0f03b09bf6d4 | 2e2803ee60467ffbad7d9a704b0029476ebead0b | refs/heads/master | 2020-04-17T17:17:53.798516 | 2019-05-02T03:08:56 | 2019-05-02T03:08:56 | 166,777,119 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,614 | py | import os, csv
from flask import Flask, render_template, request
app=Flask(__name__)
@app.route('/')
def index():
return 'Hello World!'
@app.route('/greeting/<string:name>')
def greeting(name):
return f'반갑습니다! {name}님!'
@app.route('/cube/<int:num>')
def cube(num):
result=num**3
return str(res... | [
"jo.youthful@gmail.com"
] | jo.youthful@gmail.com |
382f5f8646b4091b64a3993e4837f70508663a68 | 1d928c3f90d4a0a9a3919a804597aa0a4aab19a3 | /python/gensim/2018/12/keyedvectors.py | 0b2be1d732c1683206a01a2df672c98c0f737f6a | [] | no_license | rosoareslv/SED99 | d8b2ff5811e7f0ffc59be066a5a0349a92cbb845 | a062c118f12b93172e31e8ca115ce3f871b64461 | refs/heads/main | 2023-02-22T21:59:02.703005 | 2021-01-28T19:40:51 | 2021-01-28T19:40:51 | 306,497,459 | 1 | 1 | null | 2020-11-24T20:56:18 | 2020-10-23T01:18:07 | null | UTF-8 | Python | false | false | 85,738 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Author: Shiva Manne <manneshiva@gmail.com>
# Copyright (C) 2018 RaRe Technologies s.r.o.
# Licensed under the GNU LGPL v2.1 - http://www.gnu.org/licenses/lgpl.html
"""This module implements word vectors and their similarity look-ups.
Since trained word vectors are ind... | [
"rodrigosoaresilva@gmail.com"
] | rodrigosoaresilva@gmail.com |
e9ec52b3a17bacb2dda1181371225ad96a07f778 | 90e4fe85b70221ae82f99ca6930da980ef8f674a | /Anul_1/Semestru_1/FundamentalsOfProg/Seminar/s08p1_I6/src/store/ui/console.py | e9bdf474e451dc086c98f9ea7956991ddff0ca45 | [] | no_license | stefangeorgescu970/university-assignments | 108235e047b963efb6cd1b952f6b96849e1dc3d3 | 9253cc084b74a62035c96a4a2accfbba43812c16 | refs/heads/master | 2022-12-10T14:49:20.299356 | 2020-04-28T14:05:41 | 2020-04-28T14:05:41 | 259,648,446 | 0 | 0 | null | 2022-12-07T20:33:05 | 2020-04-28T13:43:02 | C++ | UTF-8 | Python | false | false | 2,116 | py | """
@author: radu
"""
import traceback
from store.domain.dto import OrderDTO
from store.domain.validators import StoreException
from util.common import MyUtil
class Console(object):
def __init__(self, product_controller, order_controller, statistics_controller):
self.__product_controller = product_cont... | [
"stefan.georgescu.970@gmail.com"
] | stefan.georgescu.970@gmail.com |
b65f85e32d7186281a2604cc160bd674c86d13a5 | 7aecab27c231c5207f26a1682543b0d6c5093c06 | /server/dancedeets/util/korean_dates.py | c6c4fe2fe48b14f79ae353c0f2e1153c24e04d9e | [] | no_license | mikelambert/dancedeets-monorepo | 685ed9a0258ea2f9439ae4ed47ebf68bb5f89256 | 4eff1034b9afd3417d168750ea3acfaecd20adc6 | refs/heads/master | 2022-08-10T07:16:32.427913 | 2018-04-15T22:05:58 | 2018-04-15T22:05:58 | 75,126,334 | 24 | 2 | null | 2022-07-29T22:28:45 | 2016-11-29T22:04:44 | Python | UTF-8 | Python | false | false | 2,382 | py | # -*-*- encoding: utf-8 -*-*-
import datetime
import re
DAWN = 6 # sun rises at 6am-ish
_DATETIME_SPAN_SEPARATOR = ur'(?:~|/|부터)' # '부터' = 'from'
_D_DATE = ur'(?P<day>\d+)[일\(]'
_MD_DATE = ur'(?:(?P<month>\d+)월\s*)?' + _D_DATE
_YMD_DATE = ur'(?:(?P<year>\d+)[년녀]\s*)?' + _MD_DATE
# WEEKDAY = r'(?:\(.\)| ..일)?'
_... | [
"mlambert@gmail.com"
] | mlambert@gmail.com |
220ac4e18bfaea6b2a5fc122ae8bcc38836508db | fafb89a3552e4dbb47d134966462ef5f3f37f576 | /KEMP/v0.6_ovelap_ok/fdtd3d/cpu/test/pbc_multi_plot.py | 218f06c00053697b3fa19d4b987ec597ccaa7b61 | [] | no_license | EMinsight/fdtd_accelerate | 78fa1546df5264550d12fba3cf964838b560711d | a566c60753932eeb646c4a3dea7ed25c7b059256 | refs/heads/master | 2021-12-14T03:26:52.070069 | 2012-07-25T08:25:21 | 2012-07-25T08:25:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,528 | py | import numpy as np
import sys, os
sys.path.append( os.path.expanduser('~') )
from kemp.fdtd3d.cpu import QueueTask, Fields, Core, Pbc, IncidentDirect
tmax = 150
tfunc = lambda tstep: np.sin(0.05 * tstep)
# plot
import matplotlib.pyplot as plt
import matplotlib as mpl
mpl.rc('image', interpolation='nearest', origin=... | [
"kh.kim@kiaps.org"
] | kh.kim@kiaps.org |
b04305f109a7f6222d39d666b9d65f277cae3196 | ce972e94fcdf19d6809d94c2a73595233d1f741d | /catkin_ws/build/tf/cmake/tf-genmsg-context.py | 552ade3ed0568d977725f0742c6cd2ff5e746bcd | [] | no_license | WilliamZipanHe/reward_shaping_ttr | cfa0e26579f31837c61af3e09621b4dad7eaaba2 | df56cc0153147bb067bc3a0eee0e1e4e1044407f | refs/heads/master | 2022-02-23T05:02:00.120626 | 2019-08-07T21:52:50 | 2019-08-07T21:52:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 830 | py | # generated from genmsg/cmake/pkg-genmsg.context.in
messages_str = "/local-scratch/xlv/catkin_ws/src/geometry/tf/msg/tfMessage.msg"
services_str = "/local-scratch/xlv/catkin_ws/src/geometry/tf/srv/FrameGraph.srv"
pkg_name = "tf"
dependencies_str = "geometry_msgs;sensor_msgs;std_msgs"
langs = "gencpp;geneus;genlisp;gen... | [
"xlv@cs-mars-01.cmpt.sfu.ca"
] | xlv@cs-mars-01.cmpt.sfu.ca |
93ec3d2ea48c1385a38a8b7ceeee9acbb8f10be1 | fa0f12a6d63be22b588133bfb9c130f1eeecab3d | /myvenv/lib/python3.7/site-packages/pip/_internal/operations/freeze.py | 6d6ca7f62ca26deb7b07837a5ea2382969478da6 | [] | no_license | 8th-caulion/high-hat | 6b2c455be14b5e617bf993cfb67c68975df3aa65 | fc1f9793747892b7b58f066c45ab95d3f0269db9 | refs/heads/master | 2023-08-02T12:07:36.540488 | 2020-06-03T17:36:32 | 2020-06-03T17:36:32 | 267,542,957 | 0 | 6 | null | 2021-09-22T19:09:26 | 2020-05-28T09:04:29 | Python | UTF-8 | Python | false | false | 14,660 | py | <<<<<<< HEAD
# The following comment should be removed at some point in the future.
# mypy: strict-optional=False
# mypy: disallow-untyped-defs=False
=======
>>>>>>> 71358189c5e72ee2ac9883b408a2f540a7f5745e
from __future__ import absolute_import
import collections
import logging
import os
<<<<<<< HEAD
=======
import ... | [
"rldnjs9347@gmail.com"
] | rldnjs9347@gmail.com |
c1f2cdad0c15be0461cfad4fc0ce8cad5a672d6f | eca90951b53822740812e40572e209728f71c261 | /models.py | a109ee157f955568d9590b918a0010e3fee55a02 | [] | no_license | tungvx/reporting | b7117879be773fccd90dbdb36a9e1220edc1d202 | 98f54c821aad761c0ab0ab83a8faad232ece1b41 | refs/heads/master | 2021-01-16T18:20:46.613907 | 2012-03-25T13:42:06 | 2012-03-25T13:42:06 | 3,491,504 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,661 | py | # -*- coding: utf-8 -*-
import datetime
from django.db import models
from django import forms
class Upload(models.Model): #Upload files table in databases
filename = models.CharField(max_length=255)
upload_time = models.DateTimeField('time uploaded')
description = models.Cha... | [
"toilatung90@gmail.com"
] | toilatung90@gmail.com |
ba265bb9d96f3ceeec3b311c1c36ce36f9c18206 | f50114692187a054bf2627695c6380d5ac79a20c | /q0028.py | 26642f410f3a67d77ed2d7e0af65fad57a49ecc3 | [] | no_license | petitepirate/interviewQuestions | c0cb8775932f90ff5c8e4ef80be468ef4155052f | 209322c1f1ddbe8111dc2c5e9c35aaf787e0196a | refs/heads/master | 2023-07-17T12:15:22.847440 | 2021-06-14T02:32:39 | 2021-06-14T02:32:39 | 286,884,022 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,685 | py | # This problem was asked by Palantir.
# Write an algorithm to justify text. Given a sequence of words and an integer line length
# k, return a list of strings which represents each line, fully justified.
# More specifically, you should have as many words as possible in each line. There should
# be at least one ... | [
"msmeganmcmanus@gmail.com"
] | msmeganmcmanus@gmail.com |
ede19815e880082d79936d9cd70e6f8e3e80d2d2 | 0ceb9ffeb2c087b8ae75c1a1179387fe36379f17 | /test_users.py | 31f33f5ba427527d4314a2b07fc4c576bc50f3d0 | [] | no_license | chetat/eveno | 47a3a99ebe4c5ea10252e1a21c45129e61b3e2ba | dbc138cde6e48039614cea52d3dc7bcad869a1dd | refs/heads/master | 2022-12-09T13:51:46.923622 | 2021-03-09T10:21:25 | 2021-03-09T10:21:25 | 224,212,711 | 0 | 0 | null | 2022-09-16T18:20:10 | 2019-11-26T14:34:12 | Python | UTF-8 | Python | false | false | 1,623 | py | import os
import json
from app import create_app, sqlalchemy as db
from sqlalchemy import create_engine, text
from flask_sqlalchemy import SQLAlchemy
from app.config import TestingConfig
from models import initialize_db
import unittest
class UsersTestCase(unittest.TestCase):
"""This class represents the Event App... | [
"yekuwilfred@gmail.com"
] | yekuwilfred@gmail.com |
0cc046943de4f6e8e84509edc6055886e1602b1e | 024a515e8741ecc88b4cc20c067a5ef7785375f2 | /preproc_dataset.py | 0241efc2f5bb8f421152bf5b2a64df8c226e9aa6 | [
"MIT"
] | permissive | PCJohn/maml | e3752a842557210e955f68479e0a056766647d54 | 17362ed5f9d85863ead5774c3e08e163c260bd16 | refs/heads/master | 2020-03-28T11:37:42.014350 | 2018-10-01T17:08:12 | 2018-10-01T17:08:12 | 148,232,484 | 0 | 0 | null | 2018-09-10T23:35:04 | 2018-09-10T23:35:03 | null | UTF-8 | Python | false | false | 1,756 | py | import os
import numpy as np
from PIL import Image
dataset = 'miniimagenet'
train_count = 10 # train samples per class
val_count = 590 # val samples per class
mnist_dir = '/home/prithvi/dsets/MNIST/trainingSet/'
omniglot_dir = '/home/prithvi/dsets/Omniglot/train'
miniimagenet_dir = '/home/prithvi/dsets/miniimagenet/t... | [
"prithvichakra@gmail.com"
] | prithvichakra@gmail.com |
976fe04075eb0ae35fbceb4cf4f95288fd19f182 | 9a0ada115978e9600ad7f1eab65fcc8825f637cf | /work_in_progress/kezhi_paper/classification/intermedia_classification_WT_new.py | 23736c730b2fe6d41790fd9dfaa294059b6a9fd6 | [] | no_license | ver228/work-in-progress | c1971f8d72b9685f688a10e4c5a1b150fa0812da | ef5baecc324da4550f81edb0513d38f039ee3429 | refs/heads/master | 2018-12-16T22:18:55.457290 | 2018-09-14T09:27:49 | 2018-09-14T09:27:49 | 56,165,301 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,223 | py | # -*- coding: utf-8 -*-
"""
Created on Tue Jun 06 16:16:01 2017
@author: kezhili
"""
import numpy as np
import tables
from sklearn.ensemble import RandomForestClassifier
from sklearn.model_selection import cross_val_score
no_neuron = 1040 # step size in the mesh
no_fea = 30
fea_no = 30
names = ["Near... | [
"ver228@gmail.com"
] | ver228@gmail.com |
694c9e252cceb994dcb65e0a0c42be5b6500d395 | 10e89eb922a5c122079a55234169e5b0e7af0819 | /histore/cli/base.py | 06f81c1b370a21633cbbc13230aeb3a0d81faa09 | [
"BSD-3-Clause"
] | permissive | Sandy4321/histore | 5753dd0008d1ae3400506181f22789aa9fdb43ba | d600052514a1c5f672137f76a6e1388184b17cd4 | refs/heads/master | 2023-04-15T07:57:49.762415 | 2021-04-28T11:12:31 | 2021-04-28T11:12:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,101 | py | # This file is part of the History Store (histore).
#
# Copyright (C) 2018-2021 New York University.
#
# The History Store (histore) is released under the Revised BSD License. See
# file LICENSE for full license details.
"""Command line interface to interact with a manager for archives on the local
file system.
"""
i... | [
"heiko.muller@gmail.com"
] | heiko.muller@gmail.com |
d605f5ceb43331ec9fadb7f52b44bb25329cddd3 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03860/s390012203.py | a8bd0d3f0f60bc1222c64af89e721898ed697180 | [] | 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 | 68 | py | a = input()
initial_middle = a[8]
print('A'+ initial_middle +'C')
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
8c8c0f407803a6d1d73f88221236034dfd1a132e | 7325479ff4074cb71096a1b192cb8bfce9729189 | /19 Python Built-in Functions/Python bytearray.py | 6fecd53cd7405429ce7c0fbcf99041653ae82c6a | [] | no_license | riyadhswe/Python_Javatpoint | 2220ab3818d7eb9b25f07e3b70e5c9f46f3cccbc | e42953c3fe0567040de850dddd0656b3ed1a17c2 | refs/heads/master | 2023-02-02T02:56:07.974814 | 2020-12-15T11:45:38 | 2020-12-15T11:45:38 | 293,787,032 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 120 | py | string = "Python is programming language."
# string with encoding 'utf-8'
arr = bytearray(string, 'utf-8')
print(arr) | [
"riyadhswe@gmail.com"
] | riyadhswe@gmail.com |
7b4029c8b2039d20fcfa67a38e0af84120540d04 | 21e35e3889cd0064474343a3b84aa289a01f8fac | /third_example_flask_app/classes.py | 89d5863ab289c20518eb2bebec2bf9439ba3ca5f | [] | no_license | EricSchles/learn_python | b8fbc2b38647efb8e7176ac0d20708ffe1691007 | 8a5eb76aa333253a6c01f76d36dacad6bcf931ea | refs/heads/master | 2021-01-13T16:45:53.606240 | 2017-01-31T21:10:53 | 2017-01-31T21:10:53 | 77,006,920 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 368 | py | class Integer:
def __init__(self,number):
self.number = number
def add(self,other_integer):
self.number += other_integer
def subtract(self,other_integer):
self.number -= other_integer
def __str__(self):
return repr(self.number)
if __name__ == '__main__':
number =... | [
"ericschles@gmail.com"
] | ericschles@gmail.com |
9629e60fd5a07f4f2ca46385317661d71bf72660 | 26d5c795d8aa83bf5cb3f228675ff51e2f704f57 | /scripts/s3stream-dl | 7676dcc4c1287bba92fbf83a97df5657a705d475 | [] | no_license | binarymachines/mercury | 8e13bb10c67a056fe88e02f558d73f1f1b95d028 | db3e2425f4e77a44a97c740f7fff90312a1bd33f | refs/heads/master | 2023-07-08T11:35:26.867494 | 2023-06-25T00:46:23 | 2023-06-25T00:46:23 | 94,708,610 | 2 | 6 | null | 2023-02-15T21:50:06 | 2017-06-18T19:31:50 | Python | UTF-8 | Python | false | false | 8,504 | #!/usr/bin/env python
'''
Usage:
s3stream-dl --manifest_uri <s3_uri> --format=<fmt> --list
s3stream-dl --manifest_uri <s3_uri> --format=<fmt> [--delimiter=<delimiter>]
s3stream-dl [-p] --path <s3_uri> --pfx <prefix> --format <fmt> [--d=<delimiter>] --xcfg=<xfile_cfg> --xmap=<xfile_map> --ncfg=<ngst_cfg> ... | [
"binarymachineshop@gmail.com"
] | binarymachineshop@gmail.com | |
6c81ceed055c2d375b64725926e5208cb180263e | 4e96f383d4703ad8ee58869ed91a0c8432c8a051 | /Cura/Cura/plugins/VersionUpgrade/VersionUpgrade25to26/__init__.py | c74b3218b6ee2cb2b18f90149702826398f3ef7d | [
"GPL-3.0-only",
"LGPL-3.0-only"
] | permissive | flight7788/3d-printing-with-moveo-1 | b2dba26010c4fa31815bc1d2d0966161a8600081 | 7fcb9c6b5da9245d54ac917de8c2a7f5148e42b0 | refs/heads/Feature_Marlin_with_AlanBoy | 2022-08-30T18:36:44.785058 | 2020-05-30T07:52:58 | 2020-05-30T07:52:58 | 212,583,912 | 0 | 0 | MIT | 2020-05-16T07:39:47 | 2019-10-03T13:13:01 | C | UTF-8 | Python | false | false | 2,027 | py | # Copyright (c) 2018 Ultimaker B.V.
# Cura is released under the terms of the LGPLv3 or higher.
from typing import Any, Dict, TYPE_CHECKING
from . import VersionUpgrade25to26
if TYPE_CHECKING:
from UM.Application import Application
upgrade = VersionUpgrade25to26.VersionUpgrade25to26()
def getMetaData() -> Dict... | [
"t106360212@ntut.org.tw"
] | t106360212@ntut.org.tw |
6d9ced454145fc2b7691e9934b6e754a3ceb726d | 18536f8145457a193b976eec44ee92535f588e54 | /tests/functional/s3api/test_select_object_content.py | 87750a30e5124bb75e76a8d9613cd5c8052055b8 | [
"Apache-2.0"
] | permissive | jamsheedsaeed/awsapp | 07e4ec6b9e07f679106db8e61f104ee9065e6af0 | 5498a3652b1d471a8695e14ca9739140e88a4b29 | refs/heads/master | 2023-01-01T23:44:16.181967 | 2020-06-19T06:56:48 | 2020-06-19T06:56:48 | 273,418,893 | 0 | 0 | NOASSERTION | 2022-12-26T20:16:39 | 2020-06-19T06:16:31 | Python | UTF-8 | Python | false | false | 4,758 | py | #!/usr/bin/env python
# Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"). You
# may not use this file except in compliance with the License. A copy of
# the License is located at
#
# http://aws.amazon.com/apache2.0/
#
# or in ... | [
"jamsheedsaeed786@gmail.com"
] | jamsheedsaeed786@gmail.com |
d9fe6f00109d7ea449564f348bea0fbcf2feca43 | 001184c168b93118f0429b11bab55fe108928b5d | /Week 3- Programming Assignments/Orientation2.py | 533af81246e273eec244ce942ae5e3e9300f2085 | [] | no_license | harrypotter0/ml-robot | caee1f9695427b8a83f64a41420f89b948fdb801 | 06e6672ba47fd73d4077ff5a6f48bdfafaea6597 | refs/heads/master | 2021-09-14T04:28:31.987037 | 2018-05-08T14:30:04 | 2018-05-08T14:30:04 | 115,803,231 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,177 | py | # In this exercise, write a program that will
# run your previous code twice.
# Please only modify the indicated area below!
from math import *
import random
landmarks = [[20.0, 20.0], [80.0, 80.0], [20.0, 80.0], [80.0, 20.0]]
world_size = 100.0
class robot:
def __init__(self):
self.x = random.random() ... | [
"9654263057akashkandpal@gmail.com"
] | 9654263057akashkandpal@gmail.com |
d91241e28a7781f4e1b8d3e0aaae4e0162f0622f | a3eccc652f83815318bdb033a33573c5b1e073e9 | /nac/crm/views/add_lead.py | 7d6cf4cdf3c36cb198817a0d24a038fb42afd38d | [] | no_license | jsvelu/coms-dev--old | 8139fa511e2985b4d71550f1c59402069d09edf3 | de300ad6ef947d29380972a6efe809f4ef05d7e1 | refs/heads/main | 2023-07-17T20:44:36.101738 | 2021-09-04T21:56:38 | 2021-09-04T21:56:38 | 403,158,834 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,615 | py | from authtools.views import resolve_url_lazy
from django.urls import reverse_lazy
from django.views.generic.edit import FormView
from rules.contrib.views import PermissionRequiredMixin
from crm.forms.lead import LeadForm
from customers.models import Customer
from dealerships.models import Dealership
class AddLeadVie... | [
"velu@qrsolutions.in"
] | velu@qrsolutions.in |
987eefa3b4567bac22ef4aa1bb712480e2cf395b | e7669caf1a4ce9053bb720bcfa2d85a4ee35ea65 | /pyrosetta_toolkit/window_modules/protocol_builder/ProtocolBuilder.py | 9317ac4215847ebde667e595866fa8e5255693b9 | [
"BSD-3-Clause"
] | permissive | SchiefLab/Jade | f81190321df061f8317db869a64a7b87a13d664a | 791d26892aacf21bca733aa9c1c6ea3f2be51958 | refs/heads/master | 2023-01-10T15:14:08.431470 | 2018-11-07T17:11:02 | 2018-11-07T17:11:02 | 41,381,258 | 7 | 2 | NOASSERTION | 2022-12-26T20:35:53 | 2015-08-25T18:39:20 | Python | UTF-8 | Python | false | false | 25,209 | py | #!/usr/bin/env python
#
# (c) Copyright Rosetta Commons Member Institutions.
# (c) This file is part of the Rosetta software suite and is made available under license.
# (c) The Rosetta software is developed by the contributing members of the Rosetta Commons.
# (c) For more information, see http://www.rosettacommons.or... | [
"jadolfbr@gmail.com"
] | jadolfbr@gmail.com |
f2df0a5b18ace630467007d86e19afacb3556e85 | 673f9b85708affe260b892a4eb3b1f6a0bd39d44 | /Botnets/App/App Web/PDG-env/lib/python3.6/site-packages/scapy/utils.py | 5b1a8f7bb5902f7ffccbf08702bef25a0a6f3395 | [
"MIT"
] | permissive | i2tResearch/Ciberseguridad_web | feee3fe299029bef96b158d173ce2d28ef1418e4 | e6cccba69335816442c515d65d9aedea9e7dc58b | refs/heads/master | 2023-07-06T00:43:51.126684 | 2023-06-26T00:53:53 | 2023-06-26T00:53:53 | 94,152,032 | 14 | 0 | MIT | 2023-09-04T02:53:29 | 2017-06-13T00:21:00 | Jupyter Notebook | UTF-8 | Python | false | false | 61,921 | py | # This file is part of Scapy
# See http://www.secdev.org/projects/scapy for more information
# Copyright (C) Philippe Biondi <phil@secdev.org>
# This program is published under a GPLv2 license
"""
General utility functions.
"""
from __future__ import absolute_import
from __future__ import print_function
from decimal ... | [
"ulcamilo@gmail.com"
] | ulcamilo@gmail.com |
77388ef09898130d90f9cc56214733cdd9160d06 | 4b60c34ba37e7c0611257e7934791fb43d01e254 | /src/Lib/pysparseSuperLU.py | 2524ee2635966f53d120c079893e98ac0bbfb303 | [] | no_license | regmi/pysparse | 0913ff69b5d07b58c20deb5b6f44caeaa8498d64 | ebc2ad045382c69e6bb41217c9431e51736ac4a0 | refs/heads/master | 2021-01-01T16:20:10.075871 | 2010-04-09T22:56:51 | 2010-04-09T22:56:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,502 | py | """
A framework for solving sparse linear systems of equations using an LU
factorization, by means of the supernodal sparse LU factorization package
SuperLU ([DEGLL99]_, [DGL99]_, [LD03]_).
This package is appropriate for factorizing sparse square unsymmetric or
rectangular matrices.
See [SLU]_ for more information.
... | [
"regmisk@gmail.com"
] | regmisk@gmail.com |
9824125bb2e5cc4986006dddbe094514e3617d37 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2975/60678/236000.py | f7743095883cfe2fd3eb8728f8d5bdd8c431f04d | [] | no_license | AdamZhouSE/pythonHomework | a25c120b03a158d60aaa9fdc5fb203b1bb377a19 | ffc5606817a666aa6241cfab27364326f5c066ff | refs/heads/master | 2022-11-24T08:05:22.122011 | 2020-07-28T16:21:24 | 2020-07-28T16:21:24 | 259,576,640 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 92 | py | a=input()
j=0
b=[];
for i in a:
b.append(i)
b.sort()
a=''
for i in b:
a=a+i
print(a) | [
"1069583789@qq.com"
] | 1069583789@qq.com |
5e3f127541774244db776a2ad4ca2f70cd1d14b9 | dfdbc9118742bc09d7c7fe6fe42f53b7d1d7977a | /spacegame_ii/parralax.py | 3ef67de9c8ce5c05576be44f185131d62e7cf4e6 | [] | no_license | 602p/spacegame | d1c3a34233ed7c7128d5cbe4c470c168a84700ac | 1350beeb6df2b65a0c041f512fa944cbae4dba2b | refs/heads/master | 2021-01-10T19:28:19.220218 | 2015-04-27T20:37:14 | 2015-04-27T20:37:14 | 27,309,904 | 0 | 0 | null | 2015-04-20T15:12:11 | 2014-11-29T17:39:59 | Python | UTF-8 | Python | false | false | 1,454 | py | from __future__ import division
import pygame, random
import logging
module_logger=logging.getLogger("sg.parralax")
debug, info, warning, error, critical = module_logger.debug, module_logger.info, module_logger.warning, module_logger.error, module_logger.critical
class StarfieldLayer:
def __init__(self, density, col... | [
"louis@goessling.com"
] | louis@goessling.com |
fe3657f499c9f10b71a26ef58326f2f95d5634cb | 6c4486ab599fd5dea9006e41cdb89db54b47b77c | /tests/products/NGP_OBLIC_Create_Ballpark.py | 92f3d21ced7693e315f188073ea8a95c59c80077 | [] | no_license | kenito2050/Python-Page-Object-Framework-Example | 28ba61cdc1498374be4fc088a1348e0acb754dc2 | 2a3a3e6c74dc7ec7c9acce41030e9487925b9b0c | refs/heads/master | 2020-04-02T15:52:24.286208 | 2018-10-25T01:46:24 | 2018-10-25T01:46:24 | 154,587,117 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,830 | py | from xml.etree import ElementTree as ET
import xlrd
import time
from pages.producer_center.ballpark.ballpark_Indication import BallPark_Indication
from pages.producer_center.ballpark.ballpark_PAF import BallPark_PAF
from pages.producer_center.ballpark.ballpark_download_send import BallPark_Download_Send
from pages.prod... | [
"kvillarruel@nasinsurance.com"
] | kvillarruel@nasinsurance.com |
0d6f16c184e2ce478047763e87b14aba93f6cafa | 2b86301d5ad3fecaa5a300cabfe6b4dfc82b78ed | /venv/Lib/site-packages/tornado/web.py | bb2684eb81a0c172288230f3ed046e2ddf4ec3c2 | [
"MIT"
] | permissive | sserrot/champion_relationships | 72823bbe73e15973007e032470d7efdf72af3be0 | 91315d6b7f6e7e678d9f8083b4b3e63574e97d2b | refs/heads/master | 2022-12-21T05:15:36.780768 | 2021-12-05T15:19:09 | 2021-12-05T15:19:09 | 71,414,425 | 1 | 2 | MIT | 2022-12-18T07:42:59 | 2016-10-20T01:35:56 | Python | UTF-8 | Python | false | false | 138,290 | py | #
# Copyright 2009 Facebook
#
# 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, s... | [
"sserrot@users.noreply.github.com"
] | sserrot@users.noreply.github.com |
ce8bc8e8c5475a8d2ed27e43305f5fd02ca3d509 | da481ac79daaa68df0219e92b0d80a1a7aed1bf6 | /python/example/run_all_tests.py | 747477c1ca24629cf95203798b913aa2369a40a8 | [] | no_license | PeterZhouSZ/diff_pd | 5ebad8f8d361a3ac4b8c7fb25c923b85e01c8a31 | 45bf74bc1b601d0aba7cc5becc3d2582136b5c0b | refs/heads/master | 2023-07-06T10:56:59.660391 | 2021-08-13T04:21:07 | 2021-08-13T04:21:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,144 | py | import sys
sys.path.append('../')
from importlib import import_module
from py_diff_pd.common.common import print_ok, print_error
if __name__ == '__main__':
# If you want to add a new test, simply add its name here --- you can find their names from README.md.
tests = [
# Utilities.
'render_quad... | [
"taodu@csail.mit.edu"
] | taodu@csail.mit.edu |
2958eecfff5d168b9defe4a24e536c251c58de46 | db331fb24e5b95131413c8d5cebc880674dd30f7 | /foundation/migrations/0009_title_img2.py | d49553924ebcef455145509d19762fb843f2a4e0 | [] | no_license | kmvit/personalsite | 78fb18f428e3c95219d9145cb22bdefdf8896bf9 | 5da20e853055affdad4e6d21f36bae6cfe7507b7 | refs/heads/master | 2021-06-18T13:34:03.800622 | 2017-04-07T12:40:24 | 2017-04-07T12:40:24 | 27,366,313 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 464 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('foundation', '0008_auto_20141201_2156'),
]
operations = [
migrations.AddField(
model_name='title',
n... | [
"kmv-it@yandex.ru"
] | kmv-it@yandex.ru |
a27f3a20b6fa8d1ba378c1d002f8540193ad314f | e547f7a92e7a1c1d79f8631f9e8ee8a93879a4eb | /src/repairs/orig_10.py | c3ab8fcb1de9b539ab3376dd8e20fd33d3a46618 | [] | no_license | gsakkas/seq2parse | 3c33ec7bc6cc6e4abd9e4981e53efdc173b7a7b9 | 7ae0681f1139cb873868727f035c1b7a369c3eb9 | refs/heads/main | 2023-04-09T12:29:37.902066 | 2023-01-18T21:32:12 | 2023-01-18T21:32:12 | 417,597,310 | 7 | 1 | null | null | null | null | UTF-8 | Python | false | false | 47 | py | a = 5
if 0 =< a < 10:
print("test passé")
| [
"george.p.sakkas@gmail.com"
] | george.p.sakkas@gmail.com |
366b123835d76c2d1d9da799e97242bd5b6eb115 | 051c3ee44478265c4510530888335335ec9f7fdf | /ML_Applications/CNNs/Mutants/Mutants_generated_by_MutPy_(code)/mutants_resnet/mutants_resnet_model_VERML_basedOn_nas_fix4_deterministic/227.py | db2b7a8e3c4f11397abeacd5d10e97ec30844aa5 | [] | no_license | PinjiaHe/VerifyML | b581c016012c62d8439adfce0caef4f098b36d5e | 3bd7c49e45720c1cdfe0af4ac7dd35b201056e65 | refs/heads/master | 2020-03-25T19:40:39.996370 | 2018-01-30T08:58:58 | 2018-01-30T08:58:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,666 | py | """Contains definitions for the preactivation form of Residual Networks.
Residual networks (ResNets) were originally proposed in:
[1] Kaiming He, Xiangyu Zhang, Shaoqing Ren, Jian Sun
Deep Residual Learning for Image Recognition. arXiv:1512.03385
The full preactivation 'v2' ResNet variant implemented in this modu... | [
"anurag.bms@gmail.com"
] | anurag.bms@gmail.com |
79b729366e1e6dd4733ec4c9c4f4199ddbfb9d6a | 7b91755b1c777248050f3cadf23ed34d1f10adef | /Section3/14.py | 86af53d07f05b5c224b8112a78a39b964bf71c05 | [] | no_license | JAntonioMarin/PythonBootcamp | ef2976be0204df44e0c56a521628c73a5d274008 | 6e4af15b725913d3fda60599792e17d7d43d61d2 | refs/heads/master | 2021-01-06T16:52:57.537678 | 2020-03-26T17:36:50 | 2020-03-26T17:36:50 | 241,406,222 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 236 | py | print('hello')
print("world")
print('this is also a string')
print(" I'm going on a run ")
print('hello \nworld')
print('hello \tworld')
print(len('hello'))
print(len('I am'))
# Coding Exercise 2: Quic Print Check
print("Hello World")
| [
"avalanch.psp@gmail.com"
] | avalanch.psp@gmail.com |
9591b223d52310912c74667e3148d1398f10c830 | 124fe233f9cc86898756b3c0fc2988c69001f670 | /tests/test_stat.py | 212f9eec83cf924d08398be7ee3032045c77594c | [
"MIT"
] | permissive | jon-rd/jc | 0c4e043ccc40fdf7a0771d48cec4d86321fc4588 | 1e18dd30a824b0463f0cad86e0da7094c47d34f9 | refs/heads/master | 2023-04-16T01:39:16.961164 | 2021-03-05T19:50:37 | 2021-03-05T19:50:37 | 351,145,638 | 0 | 0 | MIT | 2021-04-14T14:13:28 | 2021-03-24T16:14:42 | null | UTF-8 | Python | false | false | 2,659 | py | import os
import json
import unittest
import jc.parsers.stat
THIS_DIR = os.path.dirname(os.path.abspath(__file__))
class MyTests(unittest.TestCase):
def setUp(self):
# input
with open(os.path.join(THIS_DIR, os.pardir, 'tests/fixtures/centos-7.7/stat.out'), 'r', encoding='utf-8') as f:
... | [
"kellyjonbrazil@gmail.com"
] | kellyjonbrazil@gmail.com |
3e8474ef201455aa5739a31fe47a4749d1b82850 | e6f4e3afd16a7ee5c7a8fb61f7ed697ce88ef4c4 | /Pro2/abcpp/abcpp/treeplot.py | c8a4ebaadf40cfd0ca32ddbb58e1a29142193621 | [] | no_license | xl0418/Code | 01b58d05f7fae1a5fcfec15894ce0ed8c833fd1a | 75235b913730714d538d6d822a99297da54d3841 | refs/heads/master | 2021-06-03T21:10:31.578731 | 2020-11-17T07:50:48 | 2020-11-17T07:50:48 | 136,896,128 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,549 | py | import sys, os
import platform
if platform.system() == 'Windows':
sys.path.append('C:/Liang/abcpp_master8/abcpp')
elif platform.system() == 'Darwin':
sys.path.append('/Users/dudupig/Documents/GitHub/Code/Pro2/Python_p2')
from dvtraitsim_py import DVSim
from dvtraitsim_shared import DVTreeData, DVParam
import n... | [
"xl0418@gmail.com"
] | xl0418@gmail.com |
a823d40e45f948799c58daf72f5a9314e5da1b4c | 25e481ef7fba79285f4c8a7fa2e81c8b2b7f9cce | /saleor/core/permissions.py | 093869518cad2dc41e345780942a66464273b61a | [
"BSD-2-Clause"
] | permissive | arslanahmd/Ghar-Tameer | 59e60def48a14f9452dfefe2edf30e362878191d | 72401b2fc0079e6d52e844afd8fcf57122ad319f | refs/heads/master | 2023-01-31T04:08:26.288332 | 2018-06-07T18:02:01 | 2018-06-07T18:02:01 | 136,231,127 | 0 | 0 | NOASSERTION | 2023-01-11T22:21:42 | 2018-06-05T20:28:11 | Python | UTF-8 | Python | false | false | 957 | py | from django.contrib.auth.models import Permission
MODELS_PERMISSIONS = [
'order.view_order',
'order.edit_order',
'product.view_category',
'product.edit_category',
'product.view_product',
'product.edit_product',
'product.view_properties',
'product.edit_properties',
'product.view_sto... | [
"arslanahmad085@gmail.com"
] | arslanahmad085@gmail.com |
9a9f2f15e46689e698a6cf1af6e148036e507196 | 0444e53f4908454e2e8ab9f70877ec76be9f872c | /reportng/migrations/0025_auto_20161204_2336.py | 76552396407602970196277f9a8d5e618d06029d | [
"MIT"
] | permissive | dedayoa/keepintouch | c946612d6b69a20a92617354fef2ce6407382be5 | 2551fc21bb1f6055ab0fc2ec040c6ba874c2838f | refs/heads/master | 2020-03-22T12:53:44.488570 | 2018-08-17T13:00:51 | 2018-08-17T13:00:51 | 140,069,262 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 487 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.10 on 2016-12-04 22:36
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('reportng', '0024_auto_20161204_2123'),
]
operations = [
migrations.AlterFie... | [
"dedayoa@gmail.com"
] | dedayoa@gmail.com |
f6200c41fbfc26030afb9f8196b7c6948fbc18be | ecf0d106831b9e08578845674a457a166b6e0a14 | /OOP/inheritance_EXERCISE/restaurant/project/food/dessert.py | 6f120937221db42a44dd44819bf082a0f5df016c | [] | no_license | ivo-bass/SoftUni-Solutions | 015dad72cff917bb74caeeed5e23b4c5fdeeca75 | 75612d4bdb6f41b749e88f8d9c512d0e00712011 | refs/heads/master | 2023-05-09T23:21:40.922503 | 2021-05-27T19:42:03 | 2021-05-27T19:42:03 | 311,329,921 | 8 | 5 | null | null | null | null | UTF-8 | Python | false | false | 288 | py | from project.food.food import Food
class Dessert(Food):
def __init__(self, name: str, price: float, grams: float, calories: float):
super().__init__(name, price, grams)
self.__calories = calories
@property
def calories(self):
return self.__calories
| [
"ivailo.ignatoff@gmail.com"
] | ivailo.ignatoff@gmail.com |
b0dd547c60357b7f4540d9f1064f30da3da49bfb | 3b89c0a97ac6b58b6923a213bc8471e11ad4fe69 | /python/CodingExercises/Median.py | 9fca643773716391f6ec77c8b200529cd534e8b8 | [] | no_license | ksayee/programming_assignments | b187adca502ecf7ff7b51dc849d5d79ceb90d4a6 | 13bc1c44e1eef17fc36724f20b060c3339c280ea | refs/heads/master | 2021-06-30T07:19:34.192277 | 2021-06-23T05:11:32 | 2021-06-23T05:11:32 | 50,700,556 | 1 | 3 | null | null | null | null | UTF-8 | Python | false | false | 454 | py | # Find median of an Array of numbers
def Median(ary):
ary.sort()
print(ary)
if len(ary)%2!=0:
mid=int(len(ary)/2)
return ary[mid]
else:
idx1=int(len(ary)/2)-1
idx2=int(len(ary)/2)
return (ary[idx1]+ary[idx2])/2
def main():
ary=[5, 89, 20, 64, 20, 45]
... | [
"kartiksayee@gmail.com"
] | kartiksayee@gmail.com |
66598ec0257be4760b1dc38c8228fa5050235c13 | 6929a33a7259dad9b45192ca088a492085ed2953 | /solutions/0062-unique-paths/unique-paths.py | 1ac2c0fb3f2cb34e18806ccd977c68cdb4bb37c1 | [] | no_license | moqi112358/leetcode | 70366d29c474d19c43180fd4c282cc02c890af03 | fab9433ff7f66d00023e3af271cf309b2d481722 | refs/heads/master | 2022-12-10T01:46:14.799231 | 2021-01-14T05:00:09 | 2021-01-14T05:00:09 | 218,163,960 | 3 | 0 | null | 2022-07-06T20:26:38 | 2019-10-28T23:26:47 | Python | UTF-8 | Python | false | false | 1,747 | py | # A robot is located at the top-left corner of a m x n grid (marked 'Start' in the diagram below).
#
# The robot can only move either down or right at any point in time. The robot is trying to reach the bottom-right corner of the grid (marked 'Finish' in the diagram below).
#
# How many possible unique paths are there?... | [
"983028670@qq.com"
] | 983028670@qq.com |
8c987f3e7fcca91265fa510ed17ea01cb6f62bab | b2487a96bb865cfa0d1906c4e66a4aea9b613ce0 | /pynfb/setup.py | fa813e333cb6ac1dadf94028ece66e8e86523568 | [] | no_license | gurasog/nfb | 1ccbbc7d507525cff65f5d5c756afd98ad86a7c6 | 9ff2c736c5d764f48d921bad3942c4db93390a5d | refs/heads/master | 2022-12-14T23:06:56.523586 | 2020-09-07T07:36:01 | 2020-09-07T07:36:01 | 273,970,746 | 0 | 0 | null | 2020-06-21T19:30:38 | 2020-06-21T19:30:37 | null | UTF-8 | Python | false | false | 164 | py | from cx_Freeze import setup, Executable
setup(
name = "pynfb",
version = "0.1",
description = "Python NFB",
executables = [Executable("main.py")]
) | [
"smtnm@ya.ru"
] | smtnm@ya.ru |
65ba12265ec9faffe3d18ec718e81ba5893e0a1e | d659810b24ebc6ae29a4d7fbb3b82294c860633a | /aliyun-python-sdk-unimkt/aliyunsdkunimkt/request/v20181212/ScanCodeNotificationRequest.py | 5835e1a20aefefe670ace4df8bd671a5268d659a | [
"Apache-2.0"
] | permissive | leafcoder/aliyun-openapi-python-sdk | 3dd874e620715173b6ccf7c34646d5cb8268da45 | 26b441ab37a5cda804de475fd5284bab699443f1 | refs/heads/master | 2023-07-31T23:22:35.642837 | 2021-09-17T07:49:51 | 2021-09-17T07:49:51 | 407,727,896 | 0 | 0 | NOASSERTION | 2021-09-18T01:56:10 | 2021-09-18T01:56:09 | null | UTF-8 | Python | false | false | 5,343 | 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 |
3f017622fbfb44222dc155a544b055feccde4336 | 61aa319732d3fa7912e28f5ff7768498f8dda005 | /src/arch/x86/isa/insts/x87/control/__init__.py | 01a1e68baf2dbd685876e00b5d56637618e0e383 | [
"BSD-3-Clause",
"LicenseRef-scancode-proprietary-license",
"LGPL-2.0-or-later",
"MIT"
] | permissive | TeCSAR-UNCC/gem5-SALAM | 37f2f7198c93b4c18452550df48c1a2ab14b14fb | c14c39235f4e376e64dc68b81bd2447e8a47ff65 | refs/heads/main | 2023-06-08T22:16:25.260792 | 2023-05-31T16:43:46 | 2023-05-31T16:43:46 | 154,335,724 | 62 | 22 | BSD-3-Clause | 2023-05-31T16:43:48 | 2018-10-23T13:45:44 | C++ | UTF-8 | Python | false | false | 2,479 | py | # Copyright (c) 2007 The Hewlett-Packard Development Company
# All rights reserved.
#
# The license below extends only to copyright in the software and shall
# not be construed as granting a license to any other intellectual
# property including but not limited to intellectual property relating
# to a hardware implemen... | [
"sroger48@uncc.edu"
] | sroger48@uncc.edu |
2bebb31050c1eea8eec0d868ef0ad1ce49749f7d | 38bee274b237e508175be4c37bf357621ed50195 | /pde/pdes/allen_cahn.py | f1a80a46cb539fbec959f00de2c5a1ab654a3641 | [
"MIT"
] | permissive | anna-11/py-pde | 26f0110266fdb21803e665447b1204bedb401d78 | 5b596af5f224e3ec2a7fbea8f87fab3896c19642 | refs/heads/master | 2023-06-17T09:13:34.026794 | 2021-07-09T12:10:36 | 2021-07-09T12:10:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,296 | py | """
A Allen-Cahn equation
.. codeauthor:: David Zwicker <david.zwicker@ds.mpg.de>
"""
from typing import Callable # @UnusedImport
import numpy as np
from ..fields import ScalarField
from ..grids.boundaries.axes import BoundariesData
from ..tools.docstrings import fill_in_docstring
from ..tools.numba import jit, n... | [
"david.zwicker@ds.mpg.de"
] | david.zwicker@ds.mpg.de |
c2568db3ed9af7c59ba95dc30e283b4abd83d2a1 | e9adf4bb294b22add02c997f750e36b6fea23cdc | /nw/nw_logic/nw_rules_bank.py | 432c3a0479a0241af1dc0f9ec9c891ae0851037a | [
"BSD-3-Clause"
] | permissive | bairoliyaprem/python-rules | 5aa70dbf6d9efde0d95dda4b6397e36788c22cfa | ca7ab0addf60179ea61fddad6cd65c77a6792de1 | refs/heads/master | 2022-12-17T22:15:47.745660 | 2020-09-29T00:39:03 | 2020-09-29T00:39:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,863 | py | import sqlalchemy
from sqlalchemy_utils import get_mapper
from python_rules.exec_row_logic.logic_row import LogicRow
from python_rules.rule import Rule
from python_rules.rule_bank.rule_bank import RuleBank
from nw.nw_logic import models
from nw.nw_logic.models import Customer, OrderDetail, Product, Order, Employee
d... | [
"valjhuber@gmail.com"
] | valjhuber@gmail.com |
d9c24e51040b6a9a2ca86262d7b8e28bd164dc56 | e82b761f53d6a3ae023ee65a219eea38e66946a0 | /All_In_One/addons/learnbgame_jewelcraft/ops_asset/asset_ops.py | 18a52b2efc2714e9fb91c211f43e87e2ceb22cbf | [] | no_license | 2434325680/Learnbgame | f3a050c28df588cbb3b14e1067a58221252e2e40 | 7b796d30dfd22b7706a93e4419ed913d18d29a44 | refs/heads/master | 2023-08-22T23:59:55.711050 | 2021-10-17T07:26:07 | 2021-10-17T07:26:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,608 | py | # ##### BEGIN GPL LICENSE BLOCK #####
#
# JewelCraft jewelry design toolkit for Blender.
# Copyright (C) 2015-2019 Mikhail Rachinskiy
#
# This program 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, eith... | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
7ca0ee05969af630f9b2b5a8871790f4991b5c08 | d55f3f715c00bcbd60badb3a31696a1a629600e2 | /students/maks/9/site2/page/management/commands/hello.py | 014dfc85a65d4e56ef7b7b974c84bd8f9de0f150 | [] | no_license | zdimon/wezom-python-course | ea0adaa54444f6deaca81ce54ee8334297f2cd1a | 5b87892102e4eb77a4c12924d2d71716b9cce721 | refs/heads/master | 2023-01-29T02:22:54.220880 | 2020-12-05T11:27:48 | 2020-12-05T11:27:48 | 302,864,112 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 523 | py | from django.core.management.base import BaseCommand, CommandError
from page.models import Page
class Command(BaseCommand):
def handle(self, *args, **options):
print('Hello command!!!')
Page.objects.all().delete()
page1 = Page()
page1.title = 'Index page'
... | [
"you@example.com"
] | you@example.com |
4df98b423cb6c082c08b54fdbf134f6143af4b37 | cb6f314d0c8f1a943718caa46b47bbe5ef9908f5 | /test/drawings/draw_hmab.py | 21c985c2897367265b4cd012a1bfb34b55a9bbce | [
"MIT"
] | permissive | yunx-z/soln-ml | d702d5afef7d9204c89bdcba44e26f89a68b8923 | f97c991c2ad287e8d295d3058b4a9b1fd50d847b | refs/heads/master | 2022-12-26T18:00:51.457311 | 2020-09-13T08:31:58 | 2020-09-13T08:31:58 | 296,199,472 | 0 | 0 | MIT | 2020-09-17T02:37:20 | 2020-09-17T02:37:20 | null | UTF-8 | Python | false | false | 1,574 | py | import os
import sys
import time
import pickle
import argparse
import numpy as np
import autosklearn.classification
sys.path.append(os.getcwd())
parser = argparse.ArgumentParser()
dataset_set = 'diabetes,spectf,credit,ionosphere,lymphography,pc4,' \
'messidor_features,winequality_red,winequality_white,sp... | [
"1225646303@qq.com"
] | 1225646303@qq.com |
dce5217f537b1368245960c5d19597735d145b4a | b6fc54cff7037f5e4ef26cb4a645d5ea5a6fecdf | /001146StepikPyBegin/Stepik001146PyBeginсh07p01st01T01_for_20200420.py | e9b62e163ccebe48ce59797d086fef7a96ccb3fa | [
"Apache-2.0"
] | permissive | SafonovMikhail/python_000577 | 5483eaf2f7c73bc619ce1f5de67d8d689d2e7dd4 | f2dccac82a37df430c4eb7425b5d084d83520409 | refs/heads/master | 2022-12-08T10:53:57.202746 | 2022-12-07T09:09:51 | 2022-12-07T09:09:51 | 204,713,341 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 203 | py | # реализация множественного ввода
for i in range(5):
num1 = int(input())
print("Квадрат числа равен:", num1 ** 2)
print("Цикл завершен")
| [
"ms33@inbox.ru"
] | ms33@inbox.ru |
884a0b600ab0d1c224f04dbc9a3f59c3b47ca4f1 | fcd965c9333ee328ec51bc41f5bc0300cc06dc33 | /Coding Patterns/Fast & Slow Pointers/Palindrome LinkedList.py | 8e1dc912eb07d240edfe2d100acd686917699403 | [] | no_license | henrylin2008/Coding_Problems | 699bb345481c14dc3faa8bab439776c7070a1cb0 | 281067e872f73a27f76ae10ab0f1564916bddd28 | refs/heads/master | 2023-01-11T11:55:47.936163 | 2022-12-24T07:50:17 | 2022-12-24T07:50:17 | 170,151,972 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,389 | py | # Problem Challenge 1: Palindrome LinkedList (medium)
# https://designgurus.org/path-player?courseid=grokking-the-coding-interview&unit=grokking-the-coding-interview_1628743582805_17Unit
# Problem Statement
#
# Given the head of a Singly LinkedList, write a method to check if the LinkedList is a palindrome or not.
#
#... | [
"henrylin2008@yahoo.com"
] | henrylin2008@yahoo.com |
dcb3980fb3389f1967bc679b30b0ca7aa6b476c9 | 08d316151302f7ba4ae841c15b7adfe4e348ddf1 | /reviewboard/hostingsvcs/tests/test_fogbugz.py | 97cccab17520fd5b84e7a49e97c38afd16cd410c | [
"MIT"
] | permissive | LloydFinch/reviewboard | aa8cd21fac359d49b3dfc5a68c42b857c0c04bd8 | 563c1e8d4dfd860f372281dc0f380a0809f6ae15 | refs/heads/master | 2020-08-10T20:02:32.204351 | 2019-10-02T20:46:08 | 2019-10-02T20:46:08 | 214,411,166 | 2 | 0 | MIT | 2019-10-11T10:44:55 | 2019-10-11T10:44:54 | null | UTF-8 | Python | false | false | 952 | py | """Unit tests for the FogBugz hosting service."""
from __future__ import unicode_literals
from reviewboard.hostingsvcs.testing import HostingServiceTestCase
class FogBugzTests(HostingServiceTestCase):
"""Unit tests for the FogBugz hosting service."""
service_name = 'fogbugz'
fixtures = ['test_scmtools'... | [
"christian@beanbaginc.com"
] | christian@beanbaginc.com |
a3ed4c22c27ef24b07b4ce76b60d632ea251f1f0 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/212/usersdata/265/87081/submittedfiles/av1_3.py | 1d4a47463f8274d69023d764799f71ec143c55a0 | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 365 | py | # -*- coding: utf-8 -*-
import math
a = int(input('digite o valor de a: '))
b = int(input('digite o valor de b: '))
c = int(input('digite o valor de c: '))
i=2
j=2
k=2
while i<=a:
if a%i==0:
divisor_a=i
i=1+i
print(i)
while j<=b:
if b%j==0:
divisor_b=j
j=1+j
print(j)
while k<=c:
if c... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
1849bac316628694ea87ff00774d2816a84a04ce | 6e4e395988c641856aa13aa3b68db838f0d47cc0 | /Trying out DB-API.py | 7a7c01c86e3f781089783e9aaf81459aec431027 | [
"MIT"
] | permissive | fatih-iver/Intro-to-Relational-Databases | 2669d060fd2f9c8884e936e541373eecfbe8634e | 28528132378436d6dd1f1bdec96d1e7e285b4e4d | refs/heads/master | 2020-03-16T11:26:54.090473 | 2018-05-09T21:32:38 | 2018-05-09T21:32:38 | 132,648,541 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 667 | py | # To see how the various functions in the DB-API work, take a look at this code,
# then the results that it prints when you press "Test Run".
#
# Then modify this code so that the student records are fetched in sorted order
# by student's name.
#
import sqlite3
# Fetch some student records from the database.... | [
"noreply@github.com"
] | fatih-iver.noreply@github.com |
fa1d83149490bbaaf6e2373771de847c30a4191b | 10326daa458342fd992f4bd2f9c63c9469ae5a11 | /.graal-git-repo | 419b5f2ded2ecc3adce67832c5ddb0e5577ca1db | [
"MIT",
"CC-BY-SA-4.0"
] | permissive | charig/black-diamonds | b08c1d9dab528a9c9c935414e6af4faf2d5773fb | 0fd46caeec41f57b621143be1e4bd22d5a9a7348 | refs/heads/master | 2020-04-12T20:04:36.490970 | 2018-09-22T13:39:03 | 2018-09-22T13:39:03 | 162,725,323 | 0 | 0 | MIT | 2018-12-21T14:47:34 | 2018-12-21T14:47:34 | null | UTF-8 | Python | false | false | 2,522 | #!/usr/bin/python
# This is a self-updating script encoding the Graal+Truffle and mx repos and
# revision used for testing on CI. We don't use submodules to avoid a hard
# dependency that might bloat the repository of users of BlackDiamonds
#
# To checkout the repos, at the specified version for this version of the cod... | [
"git@stefan-marr.de"
] | git@stefan-marr.de | |
d0fc14fbec55dd1b1228445716ac3f914c23cd1f | 8d375652e44b67d73102fee7abc1abaab4cb4329 | /m-old-versions-2/m6/compiler/m6c.py | ab63561b6f0615eda6cd3412281e8f697c1403cd | [
"MIT"
] | permissive | paulscottrobson/old-m-versions | 6d2061e36f2a5aaef388a4786406f876f0a06e0b | c2edb4200d32e066223ace4fd05837a485302645 | refs/heads/master | 2020-04-04T03:09:25.399283 | 2018-11-01T12:14:57 | 2018-11-01T12:14:57 | 155,709,691 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,854 | py | # ****************************************************************************************
# ****************************************************************************************
#
# Name: m6c.py
# Purpose: Simple M6 Compiler.
# Date: 15th August 2018
# Author: Paul Robson (paul@robsons.org.uk)
#
# **********... | [
"paul@robsons.org.uk"
] | paul@robsons.org.uk |
967c4163dd3b2b4b3fccef187338d4d020e0e693 | 7c63a96fad4257f4959ffeba0868059fc96566fb | /py/m_lutz-programming_python-4_ed/code/ch_01/step_06/01-cgi_basics/cgi-bin/cgi101.py | 73cd3dab161b31965720666610c168715c174345 | [
"MIT"
] | permissive | ordinary-developer/education | b426148f5690f48e0ed4853adfc3740bd038b72c | 526e5cf86f90eab68063bb7c75744226f2c54b8d | refs/heads/master | 2023-08-31T14:42:37.237690 | 2023-08-30T18:15:18 | 2023-08-30T18:15:18 | 91,232,306 | 8 | 0 | null | null | null | null | UTF-8 | Python | false | false | 270 | py | #!/usr/local/bin/python3
import cgi
form = cgi.FieldStorage()
print('Content-type: text/html\n')
print('<title>Reply Page</title>')
if not 'user' in form:
print('<h1>Who are you?</h1>')
else:
print('<h1>Hello <i>%s</i>!</h1>' % cgi.escape(form['user'].value))
| [
"merely.ordinary.developer@gmail.com"
] | merely.ordinary.developer@gmail.com |
5f3d1d59dddfd4fbccd0763620228091d57a6323 | eb2668b93899637f04e4c93e01063d0c8175ccde | /Irises_classification/iris_KNN_GridSearch_2_parameters.py | a8ae8beebc2f04cb715db123dca90df089536532 | [] | no_license | D-Katt/AI-Machine-Learning | aad1fe1c8f3f901cb7829919d1b69a106f0ddfab | 1868c92366dccabf8c86c559eee640645b51bb51 | refs/heads/master | 2021-12-19T21:59:04.403188 | 2021-12-07T13:07:46 | 2021-12-07T13:07:46 | 235,104,866 | 3 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,161 | py | # Пример классификации объектов 'iris dataset' с использованием модели KNN.
# Инструмент GridSearchCV используется для настройки 2 гиперпараметров -
# количества "соседей" и весов.
import pandas as pd
from sklearn.datasets import load_iris
from sklearn.neighbors import KNeighborsClassifier
from sklearn.model_... | [
"noreply@github.com"
] | D-Katt.noreply@github.com |
1773433480c17f06c09757f6251e684035134844 | 75dff087b6bec301193b2c145579d38b28249d22 | /Leetcode_Algorithm/Python3/280_Wiggle_Sort.py | 2735d66046a732cbb77e5f70e0db75a365eae4b8 | [] | no_license | ChihYunPai/Data-Structure-and-Algorithms | 2d3d930d8374b62287f7cc8c3741a1d7b3d227b6 | 27a85e20605393a5eca3f8bd7d42c389612493d5 | refs/heads/master | 2023-06-07T04:04:57.186920 | 2021-07-03T03:28:29 | 2021-07-03T03:28:29 | 119,465,269 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 717 | py | """
Given an unsorted array nums, reorder it in-place such that nums[0] <= nums[1] >= nums[2] <= nums[3]....
For example, given nums = [3, 5, 2, 1, 6, 4], one possible answer is [1, 6, 2, 5, 3, 4].
"""
class Solution(object):
def wiggleSort(self, nums):
"""
:type nums: List[int]
:rtype: vo... | [
"tonypaiwhite@gmail.com"
] | tonypaiwhite@gmail.com |
cf198967e5721ff051b551643c1902e36c065adf | d66818f4b951943553826a5f64413e90120e1fae | /hackerrank/Python/Validating Roman Numerals/solution.py | 4d3307da4a8b34976111672247c145435592a77a | [
"MIT"
] | permissive | HBinhCT/Q-project | 0f80cd15c9945c43e2e17072416ddb6e4745e7fa | 19923cbaa3c83c670527899ece5c3ad31bcebe65 | refs/heads/master | 2023-08-30T08:59:16.006567 | 2023-08-29T15:30:21 | 2023-08-29T15:30:21 | 247,630,603 | 8 | 1 | MIT | 2020-07-22T01:20:23 | 2020-03-16T06:48:02 | Python | UTF-8 | Python | false | false | 169 | py | import re
regex_pattern = r'(?<=^)M{0,3}(C[MD]|D?C{0,3})(X[CL]|L?X{0,3})(I[VX]|V?I{0,3})(?=$)' # Do not delete 'r'.
print(str(bool(re.match(regex_pattern, input()))))
| [
"hbinhct@gmail.com"
] | hbinhct@gmail.com |
45db51e7b815934ce09e02643904239397422470 | ee974d693ca4c4156121f8cb385328b52eaac07c | /env/lib/python3.6/site-packages/sklearn/externals/joblib/disk.py | 56b6fcc6e11c358e17de25c0a80e8b29c5e5b103 | [] | no_license | ngonhi/Attendance_Check_System_with_Face_Recognition | f4531cc4dee565d0e45c02217f73f3eda412b414 | 92ff88cbc0c740ad48e149033efd38137c9be88d | refs/heads/main | 2023-03-12T07:03:25.302649 | 2021-02-26T15:37:33 | 2021-02-26T15:37:33 | 341,493,686 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 129 | py | version https://git-lfs.github.com/spec/v1
oid sha256:3d0a5346f8b6ea081d787ef43f9520d3be4604ea7341ac86e5950a80c51c19d4
size 3938
| [
"Nqk180998!"
] | Nqk180998! |
d5778be7d85fc4bd898845b67be6e04539e54fd0 | a5af73a980c08eef311cda1a27645f57dc07e0eb | /formApp/templatetags/my_extras.py | 01796028288dc2c86b336e3dfbfc5c09aab23b48 | [] | no_license | pritamSarkar123/django2020-pracTwo | c38ef08537cd48d884a6d75eef67277c38ad49d0 | 84e32249bc5c7d0ba89cd0e1070fee05e2523183 | refs/heads/master | 2022-07-08T21:02:21.124866 | 2020-05-15T04:39:23 | 2020-05-15T04:39:23 | 264,003,427 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 198 | py | from django import template
register = template.Library()
@register.filter(name='cut')
def cut(value, arg):
"""
cuts all the values same as args
"""
return value.replace(arg, '')
| [
"pritamsarkar84208220@gmail.com"
] | pritamsarkar84208220@gmail.com |
47057d9275b82dbfea7d0349e2bd1350c848700a | 25404f4cfb9be3e6f1b3fe31a1554459eb200813 | /my_redis/why_use_redis/count_realtime_users.py | fa7fa21aaed3c6586f1802c58a13f2b7ef57700f | [] | no_license | nightimero/annal_report_test | 1c6eb4b71482f870c753f5084212afd071929f57 | 7bbc76ba703527ba8f4b84fbdb94fd57b37b9887 | refs/heads/master | 2021-09-06T21:18:59.534963 | 2018-02-11T15:31:21 | 2018-02-11T15:31:21 | 103,259,391 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,747 | py | # -*- coding:utf-8 -*-
# todo: http://www.cnblogs.com/clover-siyecao/p/5600078.html
# todo: http://debugo.com/python-redis/
# todo: http://flask.pocoo.org/snippets/71/
# todo: https://www.google.com/search?q=python+redis+应用 以后需要搜索加上 应用 2字,更实例。
import time
from redis import Redis
from datetime import datetime
ONLINE_LA... | [
"chenxiang@aiknown.com"
] | chenxiang@aiknown.com |
45a3de2385c5bb0e77f6e3f913a5e766c392cf7a | 7b15c40c00ba2008024979d0e520a922bc2f8229 | /1st_try/144_Binary_Tree_Preorder_Traversal_1st_try.py | ac7a9b6c27275d70ef87a3427e2ff0de3860a3c6 | [] | no_license | axd8911/Leetcode | aa9875a5b55c7d5e961d9a3ea55823d06eb08a88 | 1c6cab14f4dac4f3f29f1b5ce13bb5289724fdb4 | refs/heads/master | 2022-07-07T12:59:38.251218 | 2021-06-22T06:27:05 | 2021-06-22T06:27:05 | 173,857,144 | 0 | 1 | null | 2022-06-22T01:22:30 | 2019-03-05T02:23:42 | Python | UTF-8 | Python | false | false | 1,143 | py | '''
98.6%
'''
#Iteration
# Definition for a binary tree node.
# class TreeNode:
# def __init__(self, x):
# self.val = x
# self.left = None
# self.right = None
class Solution:
def preorderTraversal(self, root: TreeNode) -> List[int]:
output = []
node = [root]
... | [
"noreply@github.com"
] | axd8911.noreply@github.com |
e97b22133de8154a10a062cd7a9804c4b2e0ce3c | d9257c051591b63533fe53d5e6996689d3a93c50 | /ocean_lib/ocean/ocean_auth.py | d6dfa779bcfb2334876b5d6a83cd12e1f3183c70 | [
"Apache-2.0"
] | permissive | PosthumanMarket/Posthuman.py | 87e79fa826d50584b9cb2d722afa359aa6026e46 | 66538c29bfeb1c31199629b68bc10cc36caa3376 | refs/heads/master | 2023-08-26T06:35:47.866562 | 2021-06-06T18:51:34 | 2021-06-06T18:51:34 | 346,468,458 | 6 | 1 | Apache-2.0 | 2021-06-05T02:03:27 | 2021-03-10T19:27:37 | Python | UTF-8 | Python | false | false | 4,131 | py | """Ocean module."""
# Copyright 2018 Ocean Protocol Foundation
# SPDX-License-Identifier: Apache-2.0
import logging
from datetime import datetime
from ocean_lib.config_provider import ConfigProvider
from ocean_lib.web3_internal.utils import add_ethereum_prefix_and_hash_msg
from ocean_lib.web3_internal.web3_provider... | [
"travis@travis-ci.org"
] | travis@travis-ci.org |
48168d4ee1ba9c5390d4058ed3fbe9b827386801 | c6431cdf572dd10f0f4d45839e6081124b246f90 | /code/lc297.py | 1bf7215362b793eb944544a277e85f8c3b4e766e | [] | no_license | bendanwwww/myleetcode | 1ec0285ea19a213bc629e0e12fb8748146e26d3d | 427846d2ad1578135ef92fd6549235f104f68998 | refs/heads/master | 2021-09-27T19:36:40.111456 | 2021-09-24T03:11:32 | 2021-09-24T03:11:32 | 232,493,899 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,916 | py | """
序列化是将一个数据结构或者对象转换为连续的比特位的操作,进而可以将转换后的数据存储在一个文件或者内存中,同时也可以通过网络传输到另一个计算机环境,采取相反方式重构得到原数据。
请设计一个算法来实现二叉树的序列化与反序列化。这里不限定你的序列 / 反序列化算法执行逻辑,你只需要保证一个二叉树可以被序列化为一个字符串并且将这个字符串反序列化为原始的树结构。
示例:
你可以将以下二叉树:
1
/ \
2 3
/ \
4 5
序列化为 "[1,2,3,null,null,4,5]"
提示: 这与 LeetCode 目前使用的方式一致,详情请参阅 LeetCode 序列化二叉树的格式。... | [
"461806307@qq.com"
] | 461806307@qq.com |
f3767eaf83ee7afc2f14b3755b237dcea3de3fcb | bf9d6b1ce9b034df2a034ff93f526638720d359f | /accounts/migrations/0004_auto_20170808_0547.py | c1f288ce918585ca8463578033cdb7e088121853 | [] | no_license | toluwanicareer/lms | fc2b1c2c8b728826180f27f461cec5ea95adbd59 | 41de904043d951843ed748d6bf2cffc98462f99d | refs/heads/master | 2021-07-09T13:58:46.986986 | 2017-09-28T05:59:50 | 2017-09-28T05:59:50 | 105,106,347 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,040 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.2 on 2017-08-08 04:47
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_depende... | [
"abiodun.toluwanii@gmail.com"
] | abiodun.toluwanii@gmail.com |
79ba2577fcaceca179c1a325377f6431a58f4b35 | c21faf85627b1cfd96494aac73cc40e5f11ebb46 | /results/test_493.py | 99c59e55336937519e7b0be46fe1bf943072d26a | [] | no_license | ekkya/Cyclomatic-Complexity | d02c61e009087e7d51738e60605875741532b878 | 172db2efdd974f5abad964e335552aec974b47cb | refs/heads/master | 2021-08-28T17:13:14.718314 | 2017-12-12T22:04:13 | 2017-12-12T22:04:13 | 112,042,202 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 26,546 | py | # Script Name : osinfo.py
# Author : Craig Richards
# Created : 5th April 2012
# Last Modified :
# Version : 1.0
# Modifications :
# Description : Displays some information about the OS you are running this script on
import platform
profile = [
platform.architecture(),
platform.dist(),
platform.libc... | [
"ekkya@tcd.ie"
] | ekkya@tcd.ie |
1c5a6b732f8b3b71d5f22a5564bcde3bd8ae4ce6 | 348bd616afd274425ad9737964f37d0b13583310 | /docs/source/conf.py | 0f22d1d4e0dc4ed7d10c0bfe6756e0cbb8a1d009 | [] | no_license | whitews/ReFlow | d2062ab03b62c82e250599557a29e86f61e51957 | 27bd33ac3824de6234952d56cbb66b0e77f076a1 | refs/heads/master | 2020-12-25T16:58:41.540154 | 2019-05-01T16:40:53 | 2019-05-01T16:40:53 | 7,260,054 | 4 | 2 | null | 2015-05-15T13:50:24 | 2012-12-20T15:44:52 | JavaScript | UTF-8 | Python | false | false | 7,898 | py | # -*- coding: utf-8 -*-
#
# ReFlow documentation build configuration file, created by
# sphinx-quickstart on Wed Jan 23 19:50:53 2013.
#
# This file is execfile()d with the current directory set to its containing dir.
#
# Note that not all possible configuration values are present in this
# autogenerated file.
#
# All ... | [
"whitews@gmail.com"
] | whitews@gmail.com |
dcd336548a0441e2da97d87c3d7fe4acf89333ba | b5e4c4e3abb7f87bfd70ecd912810e2562cecdc5 | /section6/venv/Lib/encodings/cp856.py | 82a2816233075e676cbdfa68ce0b10b47978a778 | [] | no_license | chandshilpa/flaskapi | a89822707dc02f9c588af04f1f33f82a55b627b3 | 5f229d59d155e68e026566919d292c831ea00ed4 | refs/heads/master | 2022-12-09T10:59:14.563256 | 2019-01-08T17:33:46 | 2019-01-08T17:33:46 | 164,698,842 | 0 | 1 | null | 2022-12-07T16:24:53 | 2019-01-08T17:21:32 | Python | UTF-8 | Python | false | false | 11,586 | py | """ Python Character Mapping Codec cp856 generated from 'MAPPINGS/VENDORS/MISC/CP856.TXT' with gencodec.py.
""" # "
import codecs
### Codec APIs
class Codec(codecs.Codec):
def encode(self, input, errors="strict"):
return codecs.charmap_encode(input, errors, encoding_table)
def decode(self, input,... | [
"chandsandeep700@gmail.com"
] | chandsandeep700@gmail.com |
493325b68e5cee35062e2a15547d5355bb645658 | 3365e4d4fc67bbefe4e8c755af289c535437c6f4 | /.history/src/core/dialogs/swimmer_dialog_20170810151903.py | 4281b0f5b05eac3a5ee208c260614a79152a8016 | [] | no_license | kiranhegde/OncoPlotter | f3ab9cdf193e87c7be78b16501ad295ac8f7d2f1 | b79ac6aa9c6c2ca8173bc8992ba3230aa3880636 | refs/heads/master | 2021-05-21T16:23:45.087035 | 2017-09-07T01:13:16 | 2017-09-07T01:13:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,751 | py | from matplotlib.backends.backend_qt5agg import FigureCanvasQTAgg as FigureCanvas
from matplotlib.backends.backend_qt5agg import NavigationToolbar2QT as NavigationToolbar
import matplotlib.pyplot as plt
from PyQt5.QtWidgets import (QApplication, QDialog, QWidget, QPushButton, QVBoxLayout, QTreeWidget, QTreeWidgetItem)
... | [
"ngoyal95@terpmail.umd.edu"
] | ngoyal95@terpmail.umd.edu |
4f56e6665110bb50afcfad478ddd605eaf21e59c | 976efd2cf265ff8e5549edbaeaef4c12233117c5 | /reprounzip-vagrant/reprounzip/unpackers/vagrant/__init__.py | 604927aeea5fae4552017827640ca323e40a05db | [
"BSD-3-Clause"
] | permissive | koconne8/reprozip | 30c0e522012ebfe5d476d8ba32ad90253f99ebb1 | c655a7a52670085329dc4fc0f3a8818aaab60196 | refs/heads/master | 2021-01-09T06:52:19.125710 | 2016-05-11T03:53:48 | 2016-05-11T03:53:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 32,359 | py | # Copyright (C) 2014-2016 New York University
# This file is part of ReproZip which is released under the Revised BSD License
# See file LICENSE for full license details.
"""Vagrant plugin for reprounzip.
This files contains the 'vagrant' unpacker, which builds a Vagrant template
from a reprozip pack. That template c... | [
"remirampin@gmail.com"
] | remirampin@gmail.com |
b173f68c5c45adaaeffd0c75d7eebf3022350c31 | d177addc1830153404c71fa115a5584f94a392c3 | /N1539_KthMissingPositiveNumber.py | ec2a85adf987c4c2c541611169e916af013faa56 | [] | no_license | zerghua/leetcode-python | 38a84452f60a360e991edf90c8156de03a949000 | 02726da394971ef02616a038dadc126c6ff260de | refs/heads/master | 2022-10-25T11:36:22.712564 | 2022-10-02T19:56:52 | 2022-10-02T19:56:52 | 61,502,010 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,298 | py | #
# Create by Hua on 4/3/22.
#
"""
Given an array arr of positive integers sorted in a strictly increasing order, and an integer k.
Find the kth positive integer that is missing from this array.
Example 1:
Input: arr = [2,3,4,7,11], k = 5
Output: 9
Explanation: The missing positive integers are [1,5,6,8,9,10,12,1... | [
"zerghua@gmail.com"
] | zerghua@gmail.com |
6d856f492bd4e381bfaf4ac7158cb061c4a9f63b | 6b9084d234c87d7597f97ec95808e13f599bf9a1 | /Dataset/MOT/Seed/PathTrack.py | 593c78a035dd677424dfafa90338eb09be91d69b | [] | no_license | LitingLin/ubiquitous-happiness | 4b46234ce0cb29c4d27b00ec5a60d3eeb52c26fc | aae2d764e136ca4a36c054212b361dd7e8b22cba | refs/heads/main | 2023-07-13T19:51:32.227633 | 2021-08-03T16:02:03 | 2021-08-03T16:02:03 | 316,664,903 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 649 | py | # https://www.trace.ethz.ch/publications/2017/pathtrack/index.html
from Dataset.Base.factory_seed import BaseSeed
from Dataset.Type.data_split import DataSplit
class PathTrack_Seed(BaseSeed):
def __init__(self, root_path: str=None, data_split: DataSplit=DataSplit.Training | DataSplit.Validation):
name = ... | [
"linliting06@live.com"
] | linliting06@live.com |
75565b4e4f3520375386cf6faaf8f0755753e4f6 | 362765585815165ca3625895d4a675600efdb518 | /orchestrator.py | 67e314397be339554e940e42475881ae9f5046a7 | [] | no_license | obulpathi/notifications | 00e7decd479685d10e815b9ada7b1f774862f0f9 | 131b784d5e40310cdfc98587e0ceaff4cca4cf03 | refs/heads/master | 2021-03-12T20:23:05.143662 | 2014-07-08T18:58:44 | 2014-07-08T18:58:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,665 | py | import os
import sys
from jinja2 import Environment, FileSystemLoader, meta
def render(sense, action):
env = Environment(loader=FileSystemLoader('/src/templates/sense'))
template_source = env.loader.get_source(env, sense+'.py')[0]
parsed_content = env.parse(template_source)
vars = meta.find_undeclared... | [
"obulpathi@gmail.com"
] | obulpathi@gmail.com |
3095707d0fd46be66dd4cba60697331cad3d4d77 | 5b57fa09b08e72ccb10de1bf341b556c00b4be42 | /Server/src/pyticas_tetres/da/incident_iris.py | 46a5025a883e4a2eedf26a6be2d1dd3019d017ac | [] | no_license | mnit-rtmc/tetres | 6f331e463f90e1608c6e47d72c232e3f6b8d5d33 | 4935d82ffe5f51284f08749b27f48491a62d9968 | refs/heads/master | 2022-10-02T02:45:13.860004 | 2021-12-08T23:14:51 | 2021-12-08T23:14:51 | 200,887,049 | 3 | 6 | null | 2022-09-16T18:07:46 | 2019-08-06T16:25:02 | Python | UTF-8 | Python | false | false | 3,784 | py | # -*- coding: utf-8 -*-
__author__ = 'Chongmyung Park (chongmyung.park@gmail.com)'
import datetime
from sqlalchemy import and_
from pyticas_tetres.da.base import DataAccessBase
from pyticas_tetres.db.iris import model, conn
from pyticas_tetres.ttypes import IrisIncidentInfo
class IrisIncidentDataAccess(object):
... | [
"beau1eth@tmsdev5.dot.state.mn.us"
] | beau1eth@tmsdev5.dot.state.mn.us |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.