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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
c5c99755f83c77bbb115fd5e364be87b9f009220 | b049a961f100444dde14599bab06a0a4224d869b | /sdk/python/pulumi_azure_native/containerregistry/v20190601preview/_enums.py | d0e595ad3fef9d9ce637c62acc0fa0a0ab83b51f | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | pulumi/pulumi-azure-native | b390c88beef8381f9a71ab2bed5571e0dd848e65 | 4c499abe17ec6696ce28477dde1157372896364e | refs/heads/master | 2023-08-30T08:19:41.564780 | 2023-08-28T19:29:04 | 2023-08-28T19:29:04 | 172,386,632 | 107 | 29 | Apache-2.0 | 2023-09-14T13:17:00 | 2019-02-24T20:30:21 | Python | UTF-8 | Python | false | false | 2,852 | py | # coding=utf-8
# *** WARNING: this file was generated by pulumi. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
from enum import Enum
__all__ = [
'Architecture',
'BaseImageTriggerType',
'OS',
'ResourceIdentityType',
'SecretObjectType',
'SourceControlType',... | [
"github@mikhail.io"
] | github@mikhail.io |
9c4bf09d819e17fe582f6b48d0e82b956fa722d2 | bdfb6084a33e4b443ffc2a97673ecbfa736d947b | /.history/vision/tensorflow_object_detect/scripts/detect_lane_20210224132019.py | 517152289cafe1d8a511b7cb127705ebdbd59333 | [
"MIT"
] | permissive | robcn/Autopilot-Demo | 5c830a0f721d3e8df864c0fcb26e9ea280bbe3fe | 0b7178ae3f417f529d7015373a1e51eb71df28ab | refs/heads/master | 2023-03-16T00:20:31.498672 | 2021-02-24T13:34:06 | 2021-02-24T13:34:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,127 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
import rospy
import numpy as np
import cv2
from cv_bridge import CvBridge
from std_msgs.msg import UInt8, Float64
from sensor_msgs.msg import Image, CompressedImage
import time
# from vision_msgs.msg import Center
class DetectLane():
def __init__(self):
self.... | [
"hemingshan_1999@163.com"
] | hemingshan_1999@163.com |
9196ebb5aec8baa5f60c3c5cf2fb5d3011f98fff | c16d4c86ef1f874b701c707b5a01556d36fa0d4f | /test/test_ipamsvc_create_option_code_response.py | dc4d9225dc29304f6595bb33cef120d70bfe5095 | [] | no_license | uuand/ibcsp_ipamsvc | 7f9f4c2509ce9049e2ab39d1072e9d1d31a5165c | 94a5475b11997551f732ceffcbd627d27ac37b2c | refs/heads/master | 2022-11-21T07:22:12.131660 | 2020-07-24T08:38:55 | 2020-07-24T08:38:55 | 281,871,334 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,583 | py | # coding: utf-8
"""
IP Address Management API
The IPAM/DHCP Application is a BloxOne DDI service providing IP address management and DHCP protocol features. The IPAM component provides visibility into and provisioning tools to manage networking spaces, monitoring and reporting of entire IP address infrastruct... | [
"jens-peter.wand@metrosystems.net"
] | jens-peter.wand@metrosystems.net |
1b51955dcd03e031fd0e85fcc4b87bdab823692d | 53784d3746eccb6d8fca540be9087a12f3713d1c | /res/packages/scripts/scripts/client/gui/Scaleform/daapi/view/battle/shared/siege_component.py | 73f51182224a9c1ece84e7e55c2e91739f7e0985 | [] | no_license | webiumsk/WOT-0.9.17.1-CT | 736666d53cbd0da6745b970e90a8bac6ea80813d | d7c3cf340ae40318933e7205bf9a17c7e53bac52 | refs/heads/master | 2021-01-09T06:00:33.898009 | 2017-02-03T21:40:17 | 2017-02-03T21:40:17 | 80,870,824 | 0 | 0 | null | null | null | null | WINDOWS-1250 | Python | false | false | 5,817 | py | # 2017.02.03 21:49:10 Střední Evropa (běžný čas)
# Embedded file name: scripts/client/gui/Scaleform/daapi/view/battle/shared/siege_component.py
import BigWorld
from gui.shared.utils.TimeInterval import TimeInterval
from constants import VEHICLE_SIEGE_STATE
class _ComponentUpdater(object):
"""
This is a base up... | [
"info@webium.sk"
] | info@webium.sk |
3a2072c419b039df9feecca52bca18f6bb7d8ad4 | c81d0270a4e924357735dd955b9cd463c5fa87e7 | /note/migrations/0009_notes_title_salt.py | 9c3192de173d8d6a48c40bbf2396b30beca46347 | [
"MIT"
] | permissive | pyprism/Hiren-Notes | 25210384ee8ef777f1e05bb6e32a1bde2d6c4f31 | 7548ef8927cdac4342ab54e72cf949fd484342be | refs/heads/master | 2021-06-05T04:17:24.229239 | 2019-04-12T16:17:22 | 2019-04-12T16:17:22 | 19,016,855 | 1 | 0 | MIT | 2021-03-19T21:58:00 | 2014-04-22T04:16:53 | JavaScript | UTF-8 | Python | false | false | 409 | py | # Generated by Django 2.0.2 on 2018-03-02 10:27
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('note', '0008_auto_20180302_1025'),
]
operations = [
migrations.AddField(
model_name='notes',
name='title_salt',
... | [
"git.pyprism@gmail.com"
] | git.pyprism@gmail.com |
14f22c74f6937fb2d3e1b639b5efb8a0673e5765 | bb150497a05203a718fb3630941231be9e3b6a32 | /framework/e2e/jit/test_SELU_1.py | a2c481e2d501436f0c628320c52c9085d53004f5 | [] | no_license | PaddlePaddle/PaddleTest | 4fb3dec677f0f13f7f1003fd30df748bf0b5940d | bd3790ce72a2a26611b5eda3901651b5a809348f | refs/heads/develop | 2023-09-06T04:23:39.181903 | 2023-09-04T11:17:50 | 2023-09-04T11:17:50 | 383,138,186 | 42 | 312 | null | 2023-09-13T11:13:35 | 2021-07-05T12:44:59 | Python | UTF-8 | Python | false | false | 602 | py | #!/bin/env python
# -*- coding: utf-8 -*-
# encoding=utf-8 vi:ts=4:sw=4:expandtab:ft=python
"""
test jit cases
"""
import os
import sys
sys.path.append(os.path.abspath(os.path.dirname(os.getcwd())))
sys.path.append(os.path.join(os.path.abspath(os.path.dirname(os.getcwd())), "utils"))
from utils.yaml_loader import Ya... | [
"825276847@qq.com"
] | 825276847@qq.com |
8d4da3d22d15ab100ea55a5fc8e0ff016faad178 | 55c250525bd7198ac905b1f2f86d16a44f73e03a | /Python/Scripts/Windows Screen Grabber.py | ad25866ec1abc82b1fb1290512d123242b04df15 | [] | no_license | NateWeiler/Resources | 213d18ba86f7cc9d845741b8571b9e2c2c6be916 | bd4a8a82a3e83a381c97d19e5df42cbababfc66c | refs/heads/master | 2023-09-03T17:50:31.937137 | 2023-08-28T23:50:57 | 2023-08-28T23:50:57 | 267,368,545 | 2 | 1 | null | 2022-09-08T15:20:18 | 2020-05-27T16:18:17 | null | UTF-8 | Python | false | false | 129 | py | version https://git-lfs.github.com/spec/v1
oid sha256:d42d1123aca40cb02062035961a92fbd679ac421ced273e1fe467c16558b125b
size 1194
| [
"nateweiler84@gmail.com"
] | nateweiler84@gmail.com |
3a1984fc6224def23eb696ddb9f5dad7ba49d56a | 62e58c051128baef9452e7e0eb0b5a83367add26 | /edifact/D09B/RPCALLD09BUN.py | 1841fa1a0ab031e47d5def4db3d66a6b4b480a92 | [] | no_license | dougvanhorn/bots-grammars | 2eb6c0a6b5231c14a6faf194b932aa614809076c | 09db18d9d9bd9d92cefbf00f1c0de1c590fe3d0d | refs/heads/master | 2021-05-16T12:55:58.022904 | 2019-05-17T15:22:23 | 2019-05-17T15:22:23 | 105,274,633 | 0 | 0 | null | 2017-09-29T13:21:21 | 2017-09-29T13:21:21 | null | UTF-8 | Python | false | false | 1,502 | py | #Generated by bots open source edi translator from UN-docs.
from bots.botsconfig import *
from edifact import syntax
from recordsD09BUN import recorddefs
structure = [
{ID: 'UNH', MIN: 1, MAX: 1, LEVEL: [
{ID: 'BGM', MIN: 1, MAX: 1},
{ID: 'DTM', MIN: 1, MAX: 99},
{ID: 'RFF', MIN: 0, MAX: 9999, LEVEL: [
... | [
"jason.capriotti@gmail.com"
] | jason.capriotti@gmail.com |
3314d516df6394caddba78195cce8da8b6f91c13 | 69f1529b5b4ef46f0b5a963667b9c00fd484487b | /docassemble_webapp/docassemble/webapp/restart.py | 0a665feeb0fba0085fc5bc2769f202a86083772f | [
"MIT"
] | permissive | vfulco/docassemble | 571e9e0e5140cc8c667cb51d4308744107b1c214 | 482aae3217dd80e018a670588142cf694c300fc9 | refs/heads/master | 2021-01-11T04:56:25.263813 | 2016-12-15T03:58:15 | 2016-12-15T03:58:15 | 76,629,690 | 1 | 0 | null | 2016-12-16T06:53:07 | 2016-12-16T06:53:07 | null | UTF-8 | Python | false | false | 800 | py | import sys
import os
import docassemble.base.config
from docassemble.base.config import daconfig, s3_config, S3_ENABLED
if __name__ == "__main__":
docassemble.base.config.load(arguments=sys.argv)
WEBAPP_PATH = daconfig.get('webapp', '/usr/share/docassemble/webapp/docassemble.wsgi')
def main():
if S3_ENABLED:
... | [
"jpyle@philalegal.org"
] | jpyle@philalegal.org |
dd97068117e43a24fd426e68dc7383d79d6320fa | 7945fefc483129a486e0e856a478979cfc26d011 | /hcp/azure/task_dki_hcp_variability.py | 6129df7817e41a20ee436966241d04e234a62c3f | [] | no_license | dipy/dipy-dki-paper | dfc6f0e662f1e845d17c3929591203454f3d3343 | af6a65d8880cf589ccb069d6b1b7ce9bcc437d71 | refs/heads/master | 2021-07-01T15:08:54.805406 | 2021-06-01T20:31:31 | 2021-06-01T20:31:31 | 236,548,899 | 2 | 1 | null | 2021-06-01T20:30:40 | 2020-01-27T17:26:11 | Jupyter Notebook | UTF-8 | Python | false | false | 12,437 | py |
import argparse
import logging
from AFQ.data import fetch_hcp
import s3fs
import nibabel as nib
from dipy.core.gradients import gradient_table
import os.path as op
import AFQ.data as afd
from dipy.reconst import dti, dki
import time
import numpy as np
def hcp_dki(subject, aws_access_key, aws_secret_key, hcp_aws_acc... | [
"arokem@gmail.com"
] | arokem@gmail.com |
e9adcfea412be35def881f9ad89b9d1f617a9db5 | 50948d4cb10dcb1cc9bc0355918478fb2841322a | /azure-mgmt-media/azure/mgmt/media/models/image.py | 494ef17110669de589fc08332b0dc0c445d6da6d | [
"MIT"
] | permissive | xiafu-msft/azure-sdk-for-python | de9cd680b39962702b629a8e94726bb4ab261594 | 4d9560cfd519ee60667f3cc2f5295a58c18625db | refs/heads/master | 2023-08-12T20:36:24.284497 | 2019-05-22T00:55:16 | 2019-05-22T00:55:16 | 187,986,993 | 1 | 0 | MIT | 2020-10-02T01:17:02 | 2019-05-22T07:33:46 | Python | UTF-8 | Python | false | false | 3,591 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes ... | [
"lmazuel@microsoft.com"
] | lmazuel@microsoft.com |
6aad7ad5c4ed7a14ea13239ee6e47bfdae400035 | a2da53c90ed7876c8e790b525a66818df6fc57ac | /main.py | 0ace4937af7ab9dd166d73930f96c69dc2312714 | [] | no_license | Rishi05051997/flask-learning | 103a82378e37370a78c01c2e8a95f4032b13b0f5 | 4109fe641283bf6c86178ece72a1444580b3c101 | refs/heads/main | 2023-06-18T14:27:20.940448 | 2021-07-20T10:42:04 | 2021-07-20T10:42:04 | 387,658,735 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 420 | py | from flask import Flask, render_template
app = Flask(__name__, template_folder='templates')
@app.route("/")
def home():
return render_template('index.html')
@app.route("/about")
def about():
return render_template('about.html')
@app.route('/contact')
def contact():
return render_template('contact.ht... | [
"vrushabhdhatral10@gmail.com"
] | vrushabhdhatral10@gmail.com |
3ad7f1f5cd34f8b6e9246a83cf38e08f43df17c2 | e6fac8e0289d9f82369d2eb8e22bc175c6f51b3b | /Arcade/Intro/Level 9/Knapsack Light/code.py | ab01c71d4bb8495d7fb0d3ce190f55db1992bf6f | [] | no_license | Zahidsqldba07/CodeFights-9 | f361c15d24f96afa26de08af273a7f8f507ced4a | 6c5d152b1ad35cf178dd74acbc44ceb5fdcdf139 | refs/heads/master | 2023-03-18T23:52:43.274786 | 2017-05-12T07:28:08 | 2017-05-12T07:28:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 434 | py | # Uh... these problems are kind of trivial.
def knapsackLight(value1, weight1, value2, weight2, maxW):
if weight1 + weight2 <= maxW:
return value1 + value2
if weight1 > maxW or weight2 > maxW:
if weight1 > maxW and weight2 > maxW:
return 0
if weight1 > maxW:
retu... | [
"hallosputnik@gmail.com"
] | hallosputnik@gmail.com |
e3c83cbf552b41004b3b9b6a6caa62486ed99d3b | 83fd7f0b557b40d0c00bdcf33f8a4d5a39fba919 | /modules/Tkinter/tkinter_examples.py | 6f983ba3bf6d58018eac6f08d211c987b334c0ae | [] | no_license | stradtkt/Python-Examples | 2ad6eef5e651803976ae05ce92a0e98944e10d13 | 6e700a23e65ba37d61ef7f3ff3da5feb1da3b33f | refs/heads/master | 2020-03-09T22:22:31.437381 | 2018-04-14T03:56:49 | 2018-04-14T03:56:49 | 129,032,586 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,991 | py | try:
import tkinter
except ImportError:
import Tkinter as tkinter
# tkinter._test()
# mainWindow = tkinter.Tk()
# mainWindow.title("Hello world")
# mainWindow.geometry('640x480+8+400')
# label = tkinter.Label(mainWindow, text="Hello World")
# label.pack(side='top')
# leftFrame = tkinter.Frame(mainWindow)
# left... | [
"stradtkt22@gmail.com"
] | stradtkt22@gmail.com |
60d249fc4269358356d06893e79b8dffc1366916 | 81d635211686b1bc87af5892bd9e0fb95cc2ddb8 | /adwords api/googleads-python-lib-master/examples/dfp/v201502/custom_targeting_service/update_custom_targeting_keys.py | 365f935de4fca4a2f72a434162745dcabdd01844 | [
"Apache-2.0"
] | permissive | analyticsbot/Python-Code---Part-2 | de2f0581258b6c8b8808b4ef2884fe7e323876f0 | 12bdcfdef4472bcedc77ae61707c25a4a09cba8a | refs/heads/master | 2021-06-04T05:10:33.185766 | 2016-08-31T13:45:45 | 2016-08-31T13:45:45 | 66,679,512 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,344 | py | #!/usr/bin/python
#
# 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 b... | [
"ravi.shankar1788@gmail.com"
] | ravi.shankar1788@gmail.com |
4ecbb5094d9e12a552d5a5feb96339bc971ade3b | 52b5773617a1b972a905de4d692540d26ff74926 | /.history/minWindow_20200618151102.py | c6c0994a2195ff78f8088916365811c2e25eeb39 | [] | no_license | MaryanneNjeri/pythonModules | 56f54bf098ae58ea069bf33f11ae94fa8eedcabc | f4e56b1e4dda2349267af634a46f6b9df6686020 | refs/heads/master | 2022-12-16T02:59:19.896129 | 2020-09-11T12:05:22 | 2020-09-11T12:05:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 769 | py | # for this question we have two pointers
# left pointer
# right pointer
# we move the right pointer and maintain the position of the left pointer
# when we find the word we move the left pointer
# store that word its shortest form
# we keep moving the right pointer
# sz,azjskfzts
def minWindow(str1,str2):
le... | [
"mary.jereh@gmail.com"
] | mary.jereh@gmail.com |
02bc1425fec78e9b004e5d15542a8180ac5f69b1 | 4e6fbaabd7d8e2504c9ac75dda322327f5514fb1 | /rooms/views.py | c2a54f88f2101396ae080809a5d610c300223da4 | [] | no_license | amrebrahem22/lavish | bd82d0131a6923f1749b53b7bd5f54c2ebc08be0 | d3a9d492f93f441aafeb2082f2d627c9d4f16769 | refs/heads/master | 2023-01-09T03:00:54.881316 | 2020-11-16T23:04:21 | 2020-11-16T23:04:21 | 300,782,449 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,112 | py | from django.views.generic import ListView, DetailView, View, UpdateView, FormView
from django.shortcuts import render, redirect, reverse
from django.core.paginator import Paginator
from django.contrib.auth.decorators import login_required
from django.contrib import messages
from django.http import Http404
from django.c... | [
"amrebrahem226@gmail.com"
] | amrebrahem226@gmail.com |
c60efcd71d1eaff4867f2a16f1e709d21fde306d | 2827d7a837eb29c3cb07793ab6d3d5a753e18669 | /alipay/aop/api/request/AlipayOpenPublicLabelUserQueryRequest.py | d7190c5a4e866c01cc8ea08ddd9e55c82f9a8d1f | [
"Apache-2.0"
] | permissive | shaobenbin/alipay-sdk-python | 22e809b8f5096bec57d2bb25414f64bdc87fa8b3 | 5232ad74dff2e8a6e0e7646ab3318feefa07a37d | refs/heads/master | 2020-03-21T04:51:39.935692 | 2018-06-21T07:03:31 | 2018-06-21T07:03:31 | 138,131,022 | 0 | 0 | null | 2018-06-21T06:50:24 | 2018-06-21T06:50:24 | null | UTF-8 | Python | false | false | 3,980 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.FileItem import FileItem
from alipay.aop.api.constant.ParamConstants import *
from alipay.aop.api.domain.AlipayOpenPublicLabelUserQueryModel import AlipayOpenPublicLabelUserQueryModel
class AlipayOpenPublicLabelUserQueryRequest(object):
... | [
"liuqun.lq@alibaba-inc.com"
] | liuqun.lq@alibaba-inc.com |
1137b8d72fb9f4c1d45625d4c93ff119b780a6cf | bb150497a05203a718fb3630941231be9e3b6a32 | /models/PaddleHub/hub_all_func/all_module/all_hrnet48_imagenet_ssld.py | 4e18dac3eaa0bf62f908389b457657a2fc4cccee | [] | no_license | PaddlePaddle/PaddleTest | 4fb3dec677f0f13f7f1003fd30df748bf0b5940d | bd3790ce72a2a26611b5eda3901651b5a809348f | refs/heads/develop | 2023-09-06T04:23:39.181903 | 2023-09-04T11:17:50 | 2023-09-04T11:17:50 | 383,138,186 | 42 | 312 | null | 2023-09-13T11:13:35 | 2021-07-05T12:44:59 | Python | UTF-8 | Python | false | false | 520 | py | """hrnet48_imagenet_ssld"""
import os
import paddle
import paddlehub as hub
if paddle.is_compiled_with_cuda():
paddle.set_device("gpu")
use_gpu = True
else:
paddle.set_device("cpu")
use_gpu = False
def test_hrnet48_imagenet_ssld_predict():
"""hrnet48_imagenet_ssld predict"""
os.system("hub i... | [
"noreply@github.com"
] | PaddlePaddle.noreply@github.com |
7120ce421c25f5d5078df1119fe035cdf4506131 | 75dcb56e318688499bdab789262839e7f58bd4f6 | /The Complete Data Structures and Algorithms Course in Python/src/Section 18 Cracking Linked List Interview Questions/Q1_RemoveDups.py | 179d364fc062a36387c167b262f78109862dcb5d | [] | 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 | 1,143 | py | # Created by Elshad Karimov on 17/05/2020.
# Copyright © 2020 AppMillers. All rights reserved.
# Question 1 - Remove Dups : Write a code to remove duplicates from an unsorted linked list.
from LinkedList import LinkedList
def removeDups(ll):
if ll.head is None:
return
else:
currentNode ... | [
"sergejyurskyj@yahoo.com"
] | sergejyurskyj@yahoo.com |
b4ae7da39f3c9febb2d2ccb2a33598d86c4aa524 | 2eeeefe48c56d0dfae4fd568dbaee3c8d2cf3463 | /0Demo/RqDemo/tests/test_worker.py | bae0f6fbdb0addf77fb0f6f45319bc0b693d4259 | [] | no_license | lijianmingCN/pybase | f6377f7944c043f7241452fcffccc3f49ef0cef9 | 7286a022ff7f40a7289cf69d73e8418a1ecf7b88 | refs/heads/master | 2021-01-02T08:10:42.215672 | 2017-08-01T03:16:29 | 2017-08-01T03:16:29 | 98,953,479 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 21,835 | py | # -*- coding: utf-8 -*-
from __future__ import (absolute_import, division, print_function,
unicode_literals)
import os
from datetime import timedelta
from time import sleep
import signal
import time
from multiprocessing import Process
from tests import RQTestCase, slow
from tests.fixtures impo... | [
"lijianming@baidu.com"
] | lijianming@baidu.com |
6618e38830a00f90c991e5818fa906b046a6e345 | acb8e84e3b9c987fcab341f799f41d5a5ec4d587 | /langs/3/ida.py | d5269f1e50109ec477e4ea38f4bbf72cde13df52 | [] | 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 |
148e21cdaebd61c3d3edd7f4b8df1223f60239a5 | 78d160bba37805d9ce1f55a02f17d8923e43fcfc | /learning_resources/models_test.py | d45a238691389f6e87fa206396b2e3b5c1649b6c | [
"BSD-3-Clause"
] | permissive | mitodl/mit-open | a79a4d55533d7abecedda48b62aec23a6b3086f0 | 51636099fb2bfaa77cd8c2154f7bcb09f3d36f71 | refs/heads/main | 2023-08-30T19:24:08.426942 | 2023-08-30T17:03:09 | 2023-08-30T17:03:09 | 672,068,771 | 0 | 0 | BSD-3-Clause | 2023-09-14T20:34:23 | 2023-07-28T20:54:37 | Python | UTF-8 | Python | false | false | 3,884 | py | """Tests for learning_resources.models"""
import pytest
from learning_resources import constants
from learning_resources.constants import LearningResourceType
from learning_resources.factories import (
CourseFactory,
LearningResourceFactory,
LearningResourcePlatformFactory,
LearningResourceRunFactory,
... | [
"noreply@github.com"
] | mitodl.noreply@github.com |
be167ab810c8d83a44feb646cfcaa0d54a7e0268 | 747974d83629a8ba28fcb3f4a33a17319002f169 | /tensorflow/python/distribute/strategy_combinations.py | 2a7afabf166e23f716a11d831268ee87318a510b | [
"Apache-2.0"
] | permissive | ayushmankumar7/tensorflow | 72f60290e4187644b4b254d25ec3033c9fda0c55 | 69a7d3abbbf5be791d1db397fcfea5d8e6efc4b9 | refs/heads/master | 2022-06-19T01:14:46.563563 | 2020-10-19T10:13:23 | 2020-10-19T10:13:23 | 244,302,166 | 2 | 0 | Apache-2.0 | 2022-05-21T12:44:00 | 2020-03-02T06:58:50 | C++ | UTF-8 | Python | false | false | 15,864 | py | # Copyright 2018 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | [
"gardener@tensorflow.org"
] | gardener@tensorflow.org |
fdc763851d07a181c2b83e74f4ee362cdc352308 | c50e7eb190802d7849c0d0cea02fb4d2f0021777 | /src/elastic-san/azext_elastic_san/aaz/latest/elastic_san/_delete.py | 683649b4034cb0874134a924fa1b1467b4df0263 | [
"LicenseRef-scancode-generic-cla",
"MIT"
] | permissive | Azure/azure-cli-extensions | c1615b19930bba7166c282918f166cd40ff6609c | b8c2cf97e991adf0c0a207d810316b8f4686dc29 | refs/heads/main | 2023-08-24T12:40:15.528432 | 2023-08-24T09:17:25 | 2023-08-24T09:17:25 | 106,580,024 | 336 | 1,226 | MIT | 2023-09-14T10:48:57 | 2017-10-11T16:27:31 | Python | UTF-8 | Python | false | false | 5,340 | py | # --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
#
# Code generated by aaz-dev-tools
# --------------------------------... | [
"noreply@github.com"
] | Azure.noreply@github.com |
a98253484df11ef7cbc32bafc3d54614999236ed | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03738/s260957685.py | c50252035879f7823dd92792c49d4e20f4d40741 | [] | 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 | 108 | py | # -*- coding: utf-8 -*-
A, B = map(int, open(0))
print('GREATER' if A > B else 'LESS' if A < B else 'EQUAL') | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
39969c1880d5f4bd42afe17981b473f757389342 | 52a15d4fabf68bf23a23799312ae40465764908c | /src/maintenance/dumppreferences.py | 963258beee0d9b9d24e4a3c25021bdff41c3da25 | [
"MIT",
"Apache-2.0"
] | permissive | jensl/critic | 2071a1b0600051967323df48f4d3a5656a5d2bb8 | c2d962b909ff7ef2f09bccbeb636333920b3659e | refs/heads/stable/1 | 2022-05-28T03:51:15.108944 | 2018-03-27T18:47:46 | 2018-03-29T15:08:30 | 6,430,552 | 224 | 36 | NOASSERTION | 2023-05-29T15:38:00 | 2012-10-28T18:26:04 | Python | UTF-8 | Python | false | false | 4,036 | py | # -*- mode: python; encoding: utf-8 -*-
#
# Copyright 2012 Jens Lindström, Opera Software ASA
#
# 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... | [
"jl@opera.com"
] | jl@opera.com |
78b36772d1120f0b4fc1cc8b334f2d27170c12da | c698fb03aa2bf034904a0310931b473b6da66fdc | /com/study/algorithm/offer/面试题 04.02. 最小高度树.py | cba62dda0a65f8ccc1bc044898548fa4d9b03b0a | [] | no_license | pi408637535/Algorithm | e46df1d07a519ab110e4f97755f461a1b2b7c308 | 75f4056ec6da01f7466a272871a7f7db579166b4 | refs/heads/master | 2021-08-29T19:19:53.368953 | 2021-08-22T16:30:32 | 2021-08-22T16:30:32 | 213,289,503 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 659 | py | # Definition for a binary tree node.
class TreeNode(object):
def __init__(self, x):
self.val = x
self.left = None
self.right = None
class Solution(object):
def sortedArrayToBST(self, nums):
"""
:type nums: List[int]
:rtype: TreeNode
"""
if not nu... | [
"piguanghua@163.com"
] | piguanghua@163.com |
47a1919e488e11c462b12e89fd858ceb063b0bc4 | 9a5438bdb8e84d0167ddea5458a7f729fdd54121 | /dataproviders/serializers/EndpointSerializer.py | cdc9b598acdf3c773cfc7c4d32fc9060ea968bde | [] | no_license | Grusinator/MetaDataApi | 740fd2be4cb97b670f827a071a0ac8c50f79f8ff | 081f881c735466ed1dbbd68646b821299c5168f8 | refs/heads/master | 2023-07-25T23:58:22.179717 | 2020-03-15T09:36:05 | 2020-03-15T09:36:05 | 149,087,967 | 5 | 1 | null | 2023-07-25T15:39:12 | 2018-09-17T07:45:09 | CSS | UTF-8 | Python | false | false | 368 | py | from rest_framework import serializers
from dataproviders.models import Endpoint
class EndpointSerializer(serializers.ModelSerializer):
class Meta:
model = Endpoint
exclude = ["id", "data_provider"]
def create(self, validated_data):
validated_data.pop("data_fetches")
return s... | [
"grusinator@gmail.com"
] | grusinator@gmail.com |
844c09cc9e371c8dfe2d5499cd6f071d91fda930 | 722de5766ccf7e7a2d63c425a0c8dd78287f1853 | /homework7/Ex3.py | 7756cb00992285fba8a460dc1fe621d60707ee8a | [] | no_license | Alice-Avetisyan/project | 79a61bbd0ce3f5d8571a3c1d112f078f85583e0b | eb51676cdce1ff787738317aacb4c869a001b769 | refs/heads/master | 2020-07-30T09:04:07.555681 | 2019-12-15T17:15:05 | 2019-12-15T17:15:05 | 210,166,222 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 670 | py | employees = {'Jack Smith': 'Engineer', 'Hideo Kojima': 'Director', 'Yoji Shinkawa': 'Art_director', 'John Anderson': 'Engineer'}
def find_employee(employees):
keys = list(employees.keys())
count = 0
for key in keys:
if key[:4] == 'John':
count += 1
print("There is/are {0} em... | [
"noreply@github.com"
] | Alice-Avetisyan.noreply@github.com |
2f6f7434f4f404d3c911fc7cebf7efb8705a4e22 | 292d23019c18d0b724aed88f04a0f20b5b616bb9 | /date20190110/V3/testcase/test_login.py | 33890fbf02875157430929453396eba0ee274ed2 | [] | no_license | RedAnanas/macbendi | 6f1f6fd41ed1fe8b71408dffa0b964464bd00aa8 | 8d5aa39d9389937f0e0c3f7a7d6532537f33cda8 | refs/heads/master | 2023-06-11T18:57:31.061009 | 2021-06-29T15:04:56 | 2021-06-29T15:04:56 | 380,759,110 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,169 | py | #!/usr/bin/env python
#-*- coding:utf-8 -*-
# author:Administrator
# datetime:2019/1/10 20:36
# software: PyCharm
from date20190110.V3.common.browser_manager import BrowserManager
from date20190110.V3.common.login import Login
with open("D:\Python\date20190110\V3\data\login.txt","r") as f:
lines = f.readl... | [
"1315157388@qq.com"
] | 1315157388@qq.com |
73cbe5cf938fa4c42f221b7766cf9eff7a249e5e | 88332700e893553ed52247b83f7ae8e542e67239 | /test/test_livenodesnagiosplugin.py | f65af48119016c5cce45e6333bff12c7b1222c23 | [] | no_license | zhuohuwu0603/pylib | 3857a8ec3954d09e58c21c14d683bc95cb7f9d23 | 02b0a343b055dfd6bed4d64c40aa77ed8394c1b2 | refs/heads/master | 2020-08-12T02:55:35.956301 | 2019-10-09T23:08:58 | 2019-10-09T23:08:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,593 | py | # vim:ts=4:sts=4:sw=4:et
#
# Author: Hari Sekhon
# Date: 2014-09-15 20:49:22 +0100 (Mon, 15 Sep 2014)
#
# https://github.com/harisekhon/pylib
#
# License: see accompanying Hari Sekhon LICENSE file
#
# If you're using my code you're welcome to connect with me on LinkedIn and optionally send me feedback
# to help ... | [
"harisekhon@gmail.com"
] | harisekhon@gmail.com |
520d31450393ae8cbefdc361225a76ce4ee9f826 | 310a832285e3eb9b0ed13bf24b96f509295649cd | /python/pyspark/sql/dataframe.pyi | 1351c59470c9dbf172aa25665d01befa4e2bf8f5 | [
"LGPL-2.0-or-later",
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference",
"CC0-1.0",
"Apache-2.0",
"LicenseRef-scancode-public-domain",
"Python-2.0",
"MIT",
"CDDL-1.1",
"EPL-2.0",
"CDDL-1.0",
"BSD-2-Clause",
"GCC-exception-3.1",
"LicenseRef-scancode-generic-cla",
"CC-BY-SA-3.... | permissive | Shopify/spark | 7b83550a1b6c398b4296cccf2d9ffc3b465080a5 | 88ced28141beb696791ae67eac35219de942bf31 | refs/heads/master | 2023-08-26T03:22:46.659368 | 2021-02-08T12:08:34 | 2021-02-08T12:08:34 | 103,296,198 | 4 | 3 | Apache-2.0 | 2023-07-16T05:26:23 | 2017-09-12T16:38:54 | Scala | UTF-8 | Python | false | false | 12,275 | pyi | #
# 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... | [
"gurwls223@apache.org"
] | gurwls223@apache.org |
564310cd4df822c020ea2b749d187050a4ea21e3 | 68e65df90da9169733025dfede0a8b30a5e3d7e3 | /Loops_in_python/15_practice_test7.py | c665f2ca8055e909e438a0c795745fb2d1d0d25f | [] | no_license | shubam-garg/Python-Beginner | 290346cbb309a28d28d6ac04034cb084b71ccbc6 | 30742006c380a0a18aff574567a95c8b8c694754 | refs/heads/main | 2023-05-06T07:11:29.943475 | 2021-05-29T20:35:59 | 2021-05-29T20:35:59 | 354,527,532 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 124 | py | ''' Write a program to print following pattern
*
* *
* * * '''
for i in range(0,4):
print(" * " * i)
| [
"81907680+shubam-garg@users.noreply.github.com"
] | 81907680+shubam-garg@users.noreply.github.com |
268dcec0173a7fd2959befc6e084e29c3a918513 | d488f052805a87b5c4b124ca93494bc9b78620f7 | /google-cloud-sdk/.install/.backup/lib/googlecloudsdk/third_party/apis/containeranalysis/v1alpha1/containeranalysis_v1alpha1_client.py | e7c73ecf4740a744ca2afd8627a5a073a9206f82 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | PacktPublishing/DevOps-Fundamentals | 5ce1fc938db66b420691aa8106ecfb3f9ceb1ace | 60597e831e08325c7e51e8557591917f7c417275 | refs/heads/master | 2023-02-02T04:48:15.346907 | 2023-01-30T08:33:35 | 2023-01-30T08:33:35 | 131,293,311 | 13 | 19 | null | null | null | null | UTF-8 | Python | false | false | 46,756 | py | """Generated client library for containeranalysis version v1alpha1."""
# NOTE: This file is autogenerated and should not be edited by hand.
from apitools.base.py import base_api
from googlecloudsdk.third_party.apis.containeranalysis.v1alpha1 import containeranalysis_v1alpha1_messages as messages
class Containeranalys... | [
"saneetk@packtpub.com"
] | saneetk@packtpub.com |
857994885a60be47a6073d60ecb803208b9d6203 | a9e60d0e5b3b5062a81da96be2d9c748a96ffca7 | /configurations/i16-config/scripts/diffractometer/calc/Rotations.py | 0e9a9194d69dc76b3538e46850b2d5a1c0f31ba7 | [] | no_license | openGDA/gda-diamond | 3736718596f47607335ada470d06148d7b57526e | bbb64dcfd581c30eddb210c647db5b5864b59166 | refs/heads/master | 2023-08-16T08:01:11.075927 | 2023-08-15T16:01:52 | 2023-08-15T16:01:52 | 121,757,699 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,225 | py | import java
import math
from math import *
#class Rotations(java.lang.Object):
# def __init__(self):
# self.rrrr=0.0
def R_x_l(alpha):
"@sig public double R_x_l(double alpha)"
# phi=phi*pi/180.0
ALPHA=[[1.0, 0.0, 0.0],[0.0, cos(alpha), sin(alpha)], [0.0, -sin(alpha), cos(alpha)]]
re... | [
"matthew.webber@diamond.ac.uk"
] | matthew.webber@diamond.ac.uk |
10e9d60fe572976b31b043e91b1f37ebfe91e3cc | 021dcf39f7cfb303ff427d7344026004f9d4cfdd | /bookit/users/models.py | d0d670ddce49d8602444e4a6ff2ca76b0307716c | [
"MIT"
] | permissive | kamranhossain/bookit | dfaca266b93e0ee8a50e88a2a7702a6f5ece35f1 | 4189a0ed620d7a595de2c113bb3a2d435d66d5f0 | refs/heads/master | 2021-05-11T23:36:00.630917 | 2017-08-16T20:30:33 | 2017-08-16T20:30:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 695 | py | from django.contrib.auth.models import AbstractUser
from django.core.urlresolvers import reverse
from django.db import models
from django.utils.encoding import python_2_unicode_compatible
from django.utils.translation import ugettext_lazy as _
@python_2_unicode_compatible
class User(AbstractUser):
# First Name a... | [
"aniruddha@adhikary.net"
] | aniruddha@adhikary.net |
7845b036d7efd63ae70213db83a48143f7ba9111 | 07e750cb558de03104f7c033286329b69bbdfc23 | /Chapter2_TimeFrequency_ShortTime/enframe.py | 73b2105d3c4ebfbe12af01200251ac78b583cdb7 | [
"MIT"
] | permissive | BarryZM/Python_Speech_SZY | d1e2fb6eadd6b10cfa5a65a622ae73f578d2f6d1 | 0074ad1d519387a75d5eca42c77f4d6966eb0a0e | refs/heads/master | 2023-03-09T21:47:54.465905 | 2021-03-02T17:21:32 | 2021-03-02T17:21:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,100 | py | # 分帧
from scipy.io import wavfile
import numpy as np
import matplotlib.pyplot as plt
def enframe(x, win, inc=None):
nx = len(x)
if isinstance(win, np.ndarray):
nwin = len(win)
nlen = nwin # 帧长=窗长
elif isinstance(win, int):
nwin = 1
nlen = win # 设置为帧长
if inc is None:
... | [
"you@example.com"
] | you@example.com |
bada7cdd5041895620cc70ad02fc19f09856c9f5 | b25e66b3588bad601cc7b0fb5cf0ab5a015e2812 | /python_td6/colors.py | 50a35127da411b509486472c51a09eafaf335291 | [] | no_license | bentoonsmurf/bi423 | 93f4eb7ce8c4f73fab4bed0ece34113b4bbc757e | ca3aa7b6028b4ae932819e5a8d4e962e23a2aa90 | refs/heads/master | 2021-01-23T08:09:35.807316 | 2017-04-25T14:32:30 | 2017-04-25T14:32:30 | 80,526,632 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,677 | py | def color(text, **user_styles):
styles = {
# styles
'reset': '\033[0m',
'bold': '\033[01m',
'disabled': '\033[02m',
'underline': '\033[04m',
'reverse': '\033[07m',
'strike_through': '\033[09m',
'invisible': '\033[08m',
# text colors
'f... | [
"you@example.com"
] | you@example.com |
f21f81beb5eb2e2a0a9ad5f5247d386a4eadad56 | f3b233e5053e28fa95c549017bd75a30456eb50c | /tyk2_input/42/42-50_MD_NVT_rerun/set_1ns_equi_1.py | c1682e2c05fa1d504664d4e98fb47ce4b66a087c | [] | no_license | AnguseZhang/Input_TI | ddf2ed40ff1c0aa24eea3275b83d4d405b50b820 | 50ada0833890be9e261c967d00948f998313cb60 | refs/heads/master | 2021-05-25T15:02:38.858785 | 2020-02-18T16:57:04 | 2020-02-18T16:57:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 925 | py | import os
dir = '/mnt/scratch/songlin3/run/tyk2/L42/MD_NVT_rerun/ti_one-step/42_50/'
filesdir = dir + 'files/'
temp_equiin = filesdir + 'temp_equi_1.in'
temp_pbs = filesdir + 'temp_1ns_equi_1.pbs'
lambd = [ 0.00922, 0.04794, 0.11505, 0.20634, 0.31608, 0.43738, 0.56262, 0.68392, 0.79366, 0.88495, 0.95206, 0.99078]
for... | [
"songlin3@msu.edu"
] | songlin3@msu.edu |
61f00b19422267995d747b0f748d6fe5b85b1257 | a5a99f646e371b45974a6fb6ccc06b0a674818f2 | /Validation/RecoParticleFlow/python/caloTauBenchmarkGeneric_cfi.py | cb53cbdcfc487688393622fee092cd1df46a79bb | [
"Apache-2.0"
] | permissive | cms-sw/cmssw | 4ecd2c1105d59c66d385551230542c6615b9ab58 | 19c178740257eb48367778593da55dcad08b7a4f | refs/heads/master | 2023-08-23T21:57:42.491143 | 2023-08-22T20:22:40 | 2023-08-22T20:22:40 | 10,969,551 | 1,006 | 3,696 | Apache-2.0 | 2023-09-14T19:14:28 | 2013-06-26T14:09:07 | C++ | UTF-8 | Python | false | false | 762 | py | import FWCore.ParameterSet.Config as cms
#'tauGenJets'
caloTauBenchmarkGeneric = cms.EDAnalyzer("GenericBenchmarkAnalyzer",
OutputFile = cms.untracked.string('benchmark.root'),
InputTruthLabel = cms.InputTag(''),
minEta = cms.double(-1),
maxEta = cms.double(2.8),
recPt = cms.double(10.0),
delt... | [
"giulio.eulisse@gmail.com"
] | giulio.eulisse@gmail.com |
7202984ea6bdd4793307700d6d3f9ba888bb1692 | 4be5c172c84e04c35677f5a327ab0ba592849676 | /python/interviewbit/arrays/simple_queries/simple_queries.py | e3d4eaeabebf74094a6312db15aea1592f2a2ba7 | [] | no_license | niranjan-nagaraju/Development | 3a16b547b030182867b7a44ac96a878c14058016 | d193ae12863971ac48a5ec9c0b35bfdf53b473b5 | refs/heads/master | 2023-04-06T20:42:57.882882 | 2023-03-31T18:38:40 | 2023-03-31T18:38:40 | 889,620 | 9 | 2 | null | 2019-05-27T17:00:29 | 2010-09-05T15:58:46 | Python | UTF-8 | Python | false | false | 3,221 | py | '''
https://www.interviewbit.com/problems/simple-queries/
Simple Queries
You are given an array A having N integers.
You have to perform the following steps in a given order.
1. generate all subarrays of A.
2. take the maximum element from each subarray of A and insert it into a new array G.
3. replace every ele... | [
"vinithepooh@gmail.com"
] | vinithepooh@gmail.com |
22b7fb80baf0b76de06030f5189cd3e98926630e | ad0857eaba945c75e705594a53c40dbdd40467fe | /leetCode/three_sum.py | e8e07df23fe4316b0c6ff752ff301e5f14a276a6 | [
"MIT"
] | permissive | yskang/AlgorithmPractice | c9964d463fbd0d61edce5ba8b45767785b0b5e17 | 3efa96710e97c8740d6fef69e4afe7a23bfca05f | refs/heads/master | 2023-05-25T13:51:11.165687 | 2023-05-19T07:42:56 | 2023-05-19T07:42:56 | 67,045,852 | 0 | 0 | null | 2021-06-20T02:42:27 | 2016-08-31T14:40:10 | Python | UTF-8 | Python | false | false | 27,019 | py | # https://leetcode.com/problems/3sum/description/
class Solution(object):
def threeSum(self, nums):
"""
:type nums: List[int]
:rtype: List[List[int]]
"""
if not nums:
return []
elif len(nums) < 3:
return []
nums = sorted(nums)
... | [
"yongsung.kang@gmail.com"
] | yongsung.kang@gmail.com |
95ddec165981568dae2b31d941760a612ec760ab | ab1c920583995f372748ff69d38a823edd9a06af | /shultais_courses/data_types/type_conversion/full_tank_cost.py | a3ff76560da0e4080668d6d3de29664a45c0667c | [] | no_license | adyadyat/pyprojects | 5e15f4e33892f9581b8ebe518b82806f0cd019dc | c8f79c4249c22eb9e3e19998d5b504153faae31f | refs/heads/master | 2022-11-12T16:59:17.482303 | 2020-07-04T09:08:18 | 2020-07-04T09:08:18 | 265,461,663 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 987 | py | import sys
# Получаем данные.
price = float(sys.argv[1])
full = float(sys.argv[2])
busy = float(sys.argv[3])
# Делаем финальный расчет.
amount = (full - busy) * price
# Выводим результат.
print(amount)
"""
СТОИМОСТЬ ПОЛНОГО БАКА
Начинающий разработчик написал программу для расчета стоимости заправки автомобиля до п... | [
"omorbekov.a@gmail.com"
] | omorbekov.a@gmail.com |
79a9f6f9308b9bdc741eb0617b42712e08bbd3a2 | 98a86ec3182e9eef7e21db734118f15f2514cd5c | /python/pygl/test1.py | 63b6d54c074494e0cc7f03575710532256e0a820 | [
"MIT"
] | permissive | icefoxen/lang | ad3d4d2bdb162f95416e9d805c29951cc812b6f6 | 628185020123aabe4753f96c6ab4378637a2dbf5 | refs/heads/master | 2020-07-03T12:04:05.512367 | 2017-01-27T18:05:00 | 2017-01-27T18:05:00 | 74,171,174 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,253 | py | # Okay.
# THANK you.
# Now, let's get to hacking Python OpenGL.
# Foist, we want to create a shape and move it with da arrow keys.
from OpenGL.GL import *
from OpenGL.GLU import *
import pygame
from pygame.locals import *
translatex = -1.5
translatey = 0.0
translatez = -6.0
tRot = hRot = 0.0
def setSizeGL( (width, ... | [
"icefoxen@gmail.com"
] | icefoxen@gmail.com |
08f4a816cfb1b292a9d05ce8682450615698b86a | ac0894b411507bfd027696b6bf11b5e384ed68fc | /need-to-do/python3------download-problem--of--leetcode/518.coin-change-2.py | bb27135b95f304b145ea54cd5c448d0346f160c8 | [] | no_license | mkzpd/leetcode-solution | 1d19554628c34c74012fa52582c225e6dccb345c | 60c9b218683bcdee86477a910c58ec702185c726 | refs/heads/master | 2020-05-31T05:56:48.985529 | 2019-09-20T09:10:49 | 2019-09-20T09:10:49 | 190,128,627 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,170 | py | #
# @lc app=leetcode id=518 lang=python3
#
# [518] Coin Change 2
#
# https://leetcode.com/problems/coin-change-2/description/
#
# algorithms
# Medium (44.22%)
# Total Accepted: 56.2K
# Total Submissions: 127.1K
# Testcase Example: '5\n[1,2,5]'
#
# You are given coins of different denominations and a total amount of... | [
"sodgso262@gmail.com"
] | sodgso262@gmail.com |
5a18ecad0b7d2b084aa63bc977407eed2c5e79a6 | 09e57dd1374713f06b70d7b37a580130d9bbab0d | /data/p2DJ/New/R2/benchmark/startQiskit_QC108.py | b2ba0c7d4c4750e3ffdad273d797ff0ae74a0d0c | [
"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 | 3,068 | py | # qubit number=2
# total number=9
import cirq
import qiskit
from qiskit import IBMQ
from qiskit import QuantumCircuit, QuantumRegister, ClassicalRegister
from qiskit import BasicAer, execute, transpile
from pprint import pprint
from qiskit.test.mock import FakeVigo
from math import log2,floor, sqrt, pi
import numpy as... | [
"wangjiyuan123@yeah.net"
] | wangjiyuan123@yeah.net |
beeb0da85923f1b285686879a18c74bd2d14ecba | 44cb2643ec3474eebcd1015108e074e73b318c07 | /hike_schedule/admin.py | 782deaf69f4a47c6c521c43ac08bda403daa77b3 | [] | no_license | kdechant/hike-schedule | 010211b6b23c8e129e812710468c458c74bf5cef | 95a0653145d19e992025bbecb6f1d95423a26450 | refs/heads/master | 2021-01-10T08:52:40.940894 | 2016-02-12T07:05:29 | 2016-02-12T07:05:29 | 44,289,843 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 594 | py | from django.contrib import admin
from .models import *
@admin.register(EventType)
class EventTypeAdmin(admin.ModelAdmin):
list_display = ['name']
@admin.register(Event)
class EventAdmin(admin.ModelAdmin):
list_display = ['event_type', 'title', 'event_date', 'status']
list_filter = ['event_type', 'route_i... | [
"keith.dechant@gmail.com"
] | keith.dechant@gmail.com |
13df13c4bfbd6372e9b6e913d210ced255442e76 | 575cd8511fde538c3912e7ff33dea2a10f195f25 | /portfolio/views.py | 4b991c0bcff6b6c493393a8a1570ba2955b0b518 | [] | no_license | jakiiii/jqurity.com | 710959e07bb115d3178c72891bd92f7d377964c5 | fc7119c258fdbed1deaddbf56ebacfc293c470e8 | refs/heads/master | 2020-04-11T17:24:25.643981 | 2018-12-16T18:30:48 | 2018-12-16T18:30:48 | 161,959,589 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,382 | py | from django.urls import reverse_lazy
from django.views.generic import DetailView, CreateView
from django.views.generic.edit import FormMixin
from contact.forms import ContactForm
from .models import (
Slider,
Ayat,
Experience,
Familiar,
Interest,
Portfolio
)
from about.models import (
Abou... | [
"me.jaki@outlook.com"
] | me.jaki@outlook.com |
3f872bd081b1053662722f47e8bd43eb38def392 | be73248aa4f1171e81b65cf955c4bd6110d56095 | /plugins/__init__.py | f6a247f3cb53e13670b4621dc27bc7acf3d1692d | [] | no_license | rogerhoward/lambot | 781c158e58bd71e2f3eb480aab31f181aee55e62 | d5588041fc92b779ba88479d8657f9b8a4916692 | refs/heads/development | 2022-02-18T05:03:23.911978 | 2017-06-22T03:22:11 | 2017-06-22T03:22:11 | 86,493,856 | 1 | 1 | null | 2022-02-04T15:04:55 | 2017-03-28T18:30:43 | Python | UTF-8 | Python | false | false | 170 | py |
from pluginbase import PluginBase
plugin_source = PluginBase(package='plugins').make_plugin_source(searchpath=['./plugins'])
plugin_names = plugin_source.list_plugins() | [
"rogerhoward@mac.com"
] | rogerhoward@mac.com |
03b17a1ec30dbc3ca1b0a583753b6290d482c239 | 73320add14214fa860e9dfdd6ea4dfa3862f7806 | /Logistic/logistic.py | 51485f84bc4585d084b96a7166bcd9167422d091 | [] | no_license | mayk93/DeepLearning | 5aa52df3175f38f5b7fa95f33f929ac937409770 | d7db13f5a46b3abb853dab9a4469f81386f27109 | refs/heads/master | 2020-07-02T14:30:05.542467 | 2016-11-20T21:33:15 | 2016-11-20T21:33:15 | 74,298,459 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,536 | py | import tensorflow as tf
import numpy as np
try:
from tqdm import tqdm
except ImportError:
def tqdm(x, *args, **kwargs):
return x
# Load data
data = np.load('data_with_labels.npz')
train = data['arr_0']/255.
labels = data['arr_1']
# Look at some data
print(train[0])
print(labels[0])
# If you have mat... | [
"mihai.mandrescu@gmail.com"
] | mihai.mandrescu@gmail.com |
a97ae738d52d67ff57849264badfff4ac984c976 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03006/s651349603.py | ab084aa71596b708f5dc27efe7169f4f7b9f0fe0 | [] | 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 | 925 | py | # ベクトルを固定して全探索まではわかる 実装がわからん
# いやべつに順番は関係ないのか? 「残っているボールを 1つ選んで回収する。」
n = int(input())
if n == 1:
print(1) # 「ただし、1つ目に選んだボールについては必ずコスト 1かかる。」
exit()
points = []
for _ in range(n):
points.append(list(map(int, input().split())))
ans = 10**18
for p in range(n):
for q in range(n):
if p == q:
... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
99f9d3e10ae4a78ea585e3d71cd708bc9bcf35ba | f282ed1fa6776b52d0b11a375067c9c2e1ef2db3 | /qsome/ext_methods/ext_factory.py | 3b56d2a11095de73a08fb47949efb3b5de0f778d | [
"Apache-2.0"
] | permissive | Goodpaster/QSoME | fc96d87fecab3c13771121b3986f3fc909e8c8b5 | 7f95524665602821c9b1030cebe2e97af057c056 | refs/heads/master | 2022-06-16T03:45:08.893218 | 2022-03-09T21:47:16 | 2022-03-09T21:47:16 | 150,792,671 | 8 | 2 | Apache-2.0 | 2021-08-16T14:24:54 | 2018-09-28T20:43:54 | Python | UTF-8 | Python | false | false | 1,015 | py | from qsome.ext_methods.molpro_ext import MolproExt
from qsome.ext_methods.openmolcas_ext import OpenMolCASExt
from qsome.ext_methods.psi4_ext import Psi4Ext
#from ext_methods.bagel_ext import BagelExt
class ExtFactory:
def get_ext_obj(self, ext_prgm, mol_obj, method_name, ext_pot, core_ham=None, filename='temp', w... | [
"dan.s.graham@gmail.com"
] | dan.s.graham@gmail.com |
2a24c302a4ffc32edf996f5e2b129bfaa4593284 | af4d80ad935f1aedae6e43bc39def7c58bedd332 | /benchdev/config.py | 715f49c5a01cbde4ce3fc3b2467df9a0a7eb8217 | [
"LicenseRef-scancode-hdf5",
"LicenseRef-scancode-generic-cla",
"BSD-2-Clause"
] | permissive | Qi-max/automatminer | 39a96d63a7235870401fde4e34a8ab47d8bfbf6c | a366709798c5886350f5b71cc7d06f474122c2f3 | refs/heads/master | 2020-05-02T17:00:11.506603 | 2019-03-27T22:45:11 | 2019-03-27T22:45:11 | 178,085,605 | 1 | 0 | NOASSERTION | 2019-03-27T22:43:34 | 2019-03-27T22:43:33 | null | UTF-8 | Python | false | false | 3,730 | py | """
The environment variables you need for this all to work are:
- AMM_BENCH_DIR: where to store benchmarks
- AMM_DATASET_DIR: where to store datasets
- AMM_CODE_DIR: where to run tests
"""
from fireworks import LaunchPad
from automatminer.utils.ml import AMM_CLF_NAME, AMM_REG_NAME
from hmte.db import get_connection
... | [
"ardunn@lbl.gov"
] | ardunn@lbl.gov |
3e44fd3291ef6dfd06a19d5ff8552b9b0b34fe1f | 7cb3e5e16fd93e6f8a1c07c211cee16dc248ef5d | /venv/lib/python3.6/site-packages/django/contrib/gis/gdal/raster/source.py | 777d21e156c61858642b38c84d83aeee7462724a | [
"BSD-3-Clause"
] | permissive | JustynaJBroniszewska/Blog | d74a8cb19fa037b834f5218522ff1397eb60d370 | cfd8efbcce3e23c7ebeea82b2e732de63c663ac8 | refs/heads/master | 2022-11-03T22:01:07.165652 | 2020-06-05T14:25:01 | 2020-06-05T14:25:01 | 266,791,768 | 0 | 0 | null | 2020-06-05T14:25:02 | 2020-05-25T13:52:19 | Python | UTF-8 | Python | false | false | 17,214 | py | import json
import os
import sys
import uuid
from ctypes import (
addressof,
byref,
c_buffer,
c_char_p,
c_double,
c_int,
c_void_p,
string_at,
)
from django.contrib.gis.gdal.driver import Driver
from django.contrib.gis.gdal.error import GDALException
from django.contrib.gis.gdal.prototyp... | [
"jj.broniszewska@gmail.com"
] | jj.broniszewska@gmail.com |
0f7268d500044e8de9c6efbe2e15524605de5aee | ef6229d281edecbea3faad37830cb1d452d03e5b | /ucsmsdk/mometa/firmware/FirmwareDistributableFsm.py | 873821edf14e6a45bdc8b39f0b6b9027e21e636e | [
"Apache-2.0"
] | permissive | anoop1984/python_sdk | 0809be78de32350acc40701d6207631322851010 | c4a226bad5e10ad233eda62bc8f6d66a5a82b651 | refs/heads/master | 2020-12-31T00:18:57.415950 | 2016-04-26T17:39:38 | 2016-04-26T17:39:38 | 57,148,449 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,353 | py | """This module contains the general information for FirmwareDistributableFsm ManagedObject."""
import sys, os
from ...ucsmo import ManagedObject
from ...ucscoremeta import UcsVersion, MoPropertyMeta, MoMeta
from ...ucsmeta import VersionMeta
class FirmwareDistributableFsmConsts():
COMPLETION_TIME_ = ""
CURRE... | [
"test@cisco.com"
] | test@cisco.com |
b50d9d5a961b736d337ce61c6c85eb2536d3ab26 | 1d75146a66245dc046dc216bb602129208e00733 | /closed/Lenovo/code/dlrm/tensorrt/scripts/data_utils.py | 5eb2b32cc8c359829175331116b96458d6e54723 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | georgelyuan/inference_results_v1.1 | febf287bd5967bf7f087355a81f06a2bd298cbfe | 3196a5587887c39203ee3ac246fa5dbe789d9085 | refs/heads/main | 2023-08-16T08:49:45.274284 | 2021-09-23T20:57:17 | 2021-09-23T20:57:17 | 409,773,141 | 0 | 0 | NOASSERTION | 2021-09-23T23:36:37 | 2021-09-23T23:36:37 | null | UTF-8 | Python | false | false | 49,005 | py | # Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
#
# Description: generate inputs and targets for the DLRM benchmark
#
# Utility function(s) to download and pre-process public data sets
# - ... | [
"tjablin@google.com"
] | tjablin@google.com |
cb84e3be8cebdfd17fa883614c4b5d74c60c74ef | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03387/s553318326.py | 2e8b35e38961aeb83e521ce2f6135fcdf35594fd | [] | 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 | 380 | py | # coding=utf-8
import math
if __name__ == '__main__':
A, B, C = map(int, input().split())
MV = max(A, B, C) * 3
SumABC = A + B + C
if MV % 2 == 0 and SumABC % 2 == 0:
ans = (MV - SumABC) / 2
elif MV % 2 == 1 and SumABC % 2 == 1:
ans = math.ceil(MV - SumABC) / 2
else:
... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
3d200a378f11ca1e8627ffe56b6ec0d71913e106 | 38941ac80bb2473baa8558d870daa53459688f35 | /tests/api/test_api_predictors.py | 6af555d356479721a5a9585545f184d80c82cdd9 | [] | no_license | waxiao1214/flask | 15ce2a710322e4b288c444bef9e365492fdbb626 | f2f8aa551a9236ed9c64bc27d62741b363c043a8 | refs/heads/master | 2022-04-06T00:28:58.500293 | 2020-02-05T17:47:34 | 2020-02-05T17:47:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 52,614 | py | import json
from solariat_bottle.db.predictors.base_predictor import BasePredictor, TYPE_AGENTS, HYBRID, ERROR_NO_ACTIVE_MODELS
from solariat_bottle.db.predictors.models.linucb import ModelState
from solariat_bottle.db.predictors.operators import UNIQ_OPERATORS, DB_OPERATORS, OPERATOR_REGISTRY
import unittest
from sola... | [
"henryza1994@outlook.com"
] | henryza1994@outlook.com |
5d9ef8ec652fcaaa445cf31edc0e29f45e7c8046 | 4e5141121d8b4015db233cbc71946ec3cfbe5fe6 | /samples/basic/crud/models/openconfig/openconfig-lldp/nc-create-config-lldp-20-ydk.py | 511c445106d13e34a5fd9a0ae7386f7c0a536ce3 | [
"Apache-2.0"
] | permissive | itbj/ydk-py-samples | 898c6c9bad9d6f8072892300d42633d82ec38368 | c5834091da0ebedbb11af7bbf780f268aad7040b | refs/heads/master | 2022-11-20T17:44:58.844428 | 2020-07-25T06:18:02 | 2020-07-25T06:18:02 | 282,382,442 | 1 | 0 | null | 2020-07-25T06:04:51 | 2020-07-25T06:04:50 | null | UTF-8 | Python | false | false | 2,632 | py | #!/usr/bin/env python
#
# Copyright 2016 Cisco Systems, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicab... | [
"deom119@gmail.com"
] | deom119@gmail.com |
061f3b653e2531aaab6be7deac110e76ea9b4b75 | 9a3262882123a0937d5b713919688ba7c580ae9f | /eslearn/visualization/lc_scatterplot.py | bba48c93e72b3c2f8a6240a8987344545dda8ac5 | [
"MIT"
] | permissive | sysunwenbo/easylearn | fa7f6dd6cf2e0e66780469dc7046b46e486574fd | 145274cb374c0337b7ec5aed367841663c527a6f | refs/heads/master | 2022-04-18T00:16:56.263547 | 2020-04-16T15:45:07 | 2020-04-16T15:45:07 | 256,792,139 | 0 | 1 | MIT | 2020-04-18T15:49:10 | 2020-04-18T15:49:09 | null | UTF-8 | Python | false | false | 2,569 | py | # -*- coding: utf-8 -*-
"""
Created on Tue Jul 3 15:29:02 2018
sns.set(stynamele='ticks', palette='muted', color_codes=True, font_scale=1.5)
sns.set_stynamele('dark')
主题 stynamele:darkgrid, whitegrid, dark, white, ticks,默认为darkgrid。
sns.set_palette:deep, muted, bright, pastel, dark, colorblind
sns.set_contexnamet('not... | [
"you@example.com"
] | you@example.com |
b3d4d7e07e5de3d880910b6037db32cf7729422c | 71fafe9fb2190b6acf09f109105ca362bb9018c2 | /jcsbms/lottery/migrations/0007_auto_20160426_1919.py | 9c521e85586a5c412a25d51a1cb6aada2a875126 | [] | no_license | zhangyibo007/bms | 1f43ca98057a72f1b62769719cb4aefbb4ffb289 | 1ae88e90415f0495d3a647112de0876da0b18e5e | refs/heads/master | 2021-06-21T05:40:24.468473 | 2017-08-02T12:35:08 | 2017-08-02T12:35:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 873 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.5 on 2016-04-26 11:19
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('lottery', '0006_auto_20151223_1530'),
]
operations = [
migrations.CreateMode... | [
"zhangyibo@caifuzhinan.com"
] | zhangyibo@caifuzhinan.com |
640284a8f9ab1215ae55d163b7b3ebdf170c1771 | d032bc0c01a7cd598481644e22043de8df4c71c4 | /consultad/routing.py | 6c3b0ea360f97d12db2ccd7bfdf474c4dd9c66f3 | [] | no_license | amrit-kumar/project-for-engineering | eb5f410cd2f0a271633fb6c24132a36e6215f0e0 | 7e975866e540ab4625e735009fdba971df74e393 | refs/heads/master | 2020-12-03T01:49:02.429186 | 2017-06-30T09:09:46 | 2017-06-30T09:09:46 | 95,863,800 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 762 | py | from channels.routing import route
# from consultant_app.consumers import ws_add, ws_message, ws_disconnect
from consultant_app.consumers import ws_connect, ws_message, ws_disconnect,repeat_me
from consultant_app.consumers import ws_message
from django.conf.urls import url,include
# channel_routing = [
# route("ht... | [
"kumaramrit38@gmail.com"
] | kumaramrit38@gmail.com |
802e8ff796848053362c0ffc27d0950a0150d1ef | e415323eec1a2dd547d988465c9174355b4a4f4c | /setup.py | 5fd8e98a10a230dea5667ce80ca3c3001218f4f6 | [
"MIT"
] | permissive | mjuenema/micropython-bitstring | 5e87d054d445ee0368acfe4e01c90dfa79245016 | 500c5fe987e7205dd9f937b5d5e0a8f4505a1f11 | refs/heads/master | 2021-01-21T22:06:12.469623 | 2017-06-26T13:33:34 | 2017-06-26T13:33:34 | 95,167,519 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,418 | py | from ubitstring import __version__
import sys
# Remove current dir from sys.path, otherwise setuptools will peek up our
# module instead of system's.
sys.path.pop(0)
from setuptools import setup
sys.path.append("..")
kwds = {'long_description': open('README.rst').read()}
if sys.version_info[0] < 2:
raise Excepti... | [
"markus@juenemann.net"
] | markus@juenemann.net |
fa210d6b01ae3ecaabdd4162852c0f7eb986306f | 34f365117eb1d846fa922c24f3fc650188ce9746 | /bin/bed2removeNeighbors.py | cd193585aa637fee5aa5499c7c8172c90c2db7fb | [
"MIT"
] | permissive | PinarSiyah/NGStoolkit | 53ac6d87a572c498414a246ae051785b40fbc80d | b360da965c763de88c9453c4fd3d3eb7a61c935d | refs/heads/master | 2021-10-22T04:49:51.153970 | 2019-03-08T08:03:28 | 2019-03-08T08:03:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 363 | py | #!/usr/bin/env python
import argparse
import bed
PARSER = argparse.ArgumentParser(description='removes neighboring intervals')
PARSER.add_argument('-i', required=True, help='input')
PARSER.add_argument('-d', required=True, help='neighbor distance')
ARGS = PARSER.parse_args()
bedFile = ARGS.i
distance = int(ARGS.d)
... | [
"adebali@users.noreply.github.com"
] | adebali@users.noreply.github.com |
e10b665b0f221ffa1d49d77e5e8df9c3f842961c | 8997a0bf1e3b6efe5dd9d5f307e1459f15501f5a | /get_dir_total_size__examples/get_dir_total_size__using__os_walk.py | aca823f1b36c9c1fb9b74ad826f6c01cf9aca6fc | [
"CC-BY-4.0"
] | permissive | stepik/SimplePyScripts | 01092eb1b2c1c33756427abb2debbd0c0abf533f | 3259d88cb58b650549080d6f63b15910ae7e4779 | refs/heads/master | 2023-05-15T17:35:55.743164 | 2021-06-11T22:59:07 | 2021-06-11T22:59:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 768 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
__author__ = 'ipetrash'
# SOURCE: https://docs.python.org/3/library/os.html#os.walk
from os.path import join, getsize
from common import sizeof_fmt
def get_dir_total_size(dir_name: str) -> (int, str):
total_size = 0
for root, dirs, files in os.walk(dir_nam... | [
"ilya.petrash@inbox.ru"
] | ilya.petrash@inbox.ru |
d4eccb9f13bce33a5aae052b88b3c3fbddc99723 | 5f58ee3c7e5c4cca0310f33335fb36ec61ffd8cf | /build/sensing/drivers/camera/packages/hexacam/catkin_generated/pkg.develspace.context.pc.py | 2d4ec2266029d6ad3ed98f5a1b0fbc3bdc0c8a59 | [] | no_license | qqsskk/p3dx_velodyne_slam | 4bad90ea64fb50539982a44f3df7abd0041516db | cafe3f81eb17bc5e8c8edc6b83b84a8d5fbf2805 | refs/heads/master | 2021-06-08T17:05:52.386391 | 2016-10-26T09:44:05 | 2016-10-26T09:44:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 383 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "".split(';') if "" != "" else []
PROJECT_CATKIN_DEPENDS = "".replace(';', ' ')
PKG_CONFIG_LIBRARIES_WITH_PREFIX = "-lhexacam".split(';') if "-lhexacam" != "" else []
PROJECT_NAME = "hexacam"
PROJECT_SP... | [
"jhjune91@gmail.com"
] | jhjune91@gmail.com |
f44ea363fb79cfff9b558fcc7d02d4f6e0133279 | bc647095de9c9dd658b82179ff9e398029f53756 | /tests/unit/test_action.py | aa46b2efe960852218b762f3cbf13cea1662f4c3 | [
"BSD-3-Clause"
] | permissive | ettoreleandrotognoli/python-ami | 2b9711bd484ceaf524f0b2109ac665ed4271065a | 9922ccae5db73d0ee248942b8cfab9f939962024 | refs/heads/master | 2023-04-28T08:30:18.603575 | 2022-05-04T13:25:03 | 2022-05-04T14:02:28 | 43,763,556 | 112 | 68 | BSD-3-Clause | 2023-04-25T09:25:30 | 2015-10-06T16:36:48 | Python | UTF-8 | Python | false | false | 1,804 | py | import unittest
from asterisk.ami import LoginAction, LogoffAction, SimpleAction
class AMIActionTest(unittest.TestCase):
def compare_actions(self, a1, a2):
a1 = str(a1).split('\r\n')
a2 = str(a2).split('\r\n')
self.assertEqual(a1[0], a2[0])
self.assertSetEqual(set(a1[1:]), set(a2[... | [
"ettore.leandro.tognoli@gmail.com"
] | ettore.leandro.tognoli@gmail.com |
f0e290020c43602881ec59fc0628c8cbd0ac225a | 365967082720f3fda31afccfc237b7a67e8ffc07 | /sorting_searching/quick_sort.py | d95e226eb91824833e53fcd1a73f4ebdd12112a5 | [] | no_license | hulaba/geekInsideYou | ec68dee3fa24d63f5470aa40b600ef34d37c5da1 | 72c1f1b4fbf115db91c908a68c9ac3ca4cb22a4f | refs/heads/master | 2022-12-11T11:11:03.149336 | 2020-09-12T16:12:40 | 2020-09-12T16:12:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,530 | py | '''
parition() function is called as follows:
def quickSort(arr,low,high):
if low < high:
# pi is partitioning index, arr[p] is now
# at right place
pi = partition(arr,low,high)
# Separately sort elements before
# partition and after partition
quickSort(arr, low... | [
"nainamehta2110@gmail.com"
] | nainamehta2110@gmail.com |
cb3f0f4aa798ac93644ed624c67bc75ba6fa96cf | b44a984ac8cfd183e218d56e1ec5d0d3e72d20fd | /High_Frequency/two_pointers/计数双指针/Substring With At Least K Distinct Characters/sliding_window.py | e968ee945eebc7729c33d701cc0cff334db3d4e9 | [] | no_license | atomextranova/leetcode-python | 61381949f2e78805dfdd0fb221f8497b94b7f12b | 5fce59e6b9c4079b49e2cfb2a6d2a61a0d729c56 | refs/heads/master | 2021-07-15T20:32:12.592607 | 2020-09-21T00:10:27 | 2020-09-21T00:10:27 | 207,622,038 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 747 | py | class Solution:
"""
@param s: a string
@param k: an integer
@return: the number of substrings there are that contain at least k distinct characters
"""
def kDistinctCharacters(self, s, k):
# Write your code here
if len(s) < k:
return 0
cur_chars = dict()
... | [
"atomextranova@gmail.com"
] | atomextranova@gmail.com |
5d655badb02d2592a799ffa107983c0328663925 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03567/s531693844.py | 3ed11284ed2f73c3d938aa72611285b742a6c509 | [] | 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 | 109 | py | S = input().strip()
for i in range(len(S)-1):
if S[i:i+2] == 'AC':
print('Yes')
exit()
print('No')
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
66cf4ff262f64c8cbf47aea01229c40a532336c3 | a81d21f98dd558416f8731f001cb8151d8309f4f | /interviewbit/test/test_excel_column_number.py | e1b9a6d25f15bc235f307c800a1150e10dc893e6 | [] | no_license | marquesarthur/programming_problems | 1128c38e65aade27e2435f7987d7ee2b328fda51 | 2f7df25d0d735f726b7012e4aa2417dee50526d9 | refs/heads/master | 2022-01-25T18:19:02.575634 | 2022-01-18T02:07:06 | 2022-01-18T02:07:06 | 32,213,919 | 2 | 0 | null | 2020-10-13T01:29:08 | 2015-03-14T13:44:06 | Python | UTF-8 | Python | false | false | 1,026 | py | import unittest
from interviewbit.math import excel_column_number
class TestExcelColumnNumber(unittest.TestCase):
def test_base_case(self):
s = excel_column_number.Solution()
A = 'A'
B = 1
result = s.titleToNumber(A)
self.assertEqual(result, B)
A = 'B'
B... | [
"marques.art@gmail.com"
] | marques.art@gmail.com |
8234cbe836cb2e4d9efcf0914b8cd6810e01c590 | 71217d0679438a49749f7e1a0dda2d0aab8f6c00 | /sdk/python/kfp/cli/cli.py | 3c3f497dfbac037f01f99c66ea4da57808cda171 | [
"Apache-2.0"
] | permissive | RedbackThomson/pipelines | 65e8c7411e32419404d9c0729798a8bf63c3280d | a5b3e7e3f00feb8dc908b84db4158409c20aa594 | refs/heads/master | 2023-01-30T00:46:02.086217 | 2020-04-28T16:42:06 | 2020-04-28T16:42:06 | 255,702,063 | 1 | 0 | Apache-2.0 | 2020-04-14T19:11:53 | 2020-04-14T19:11:52 | null | UTF-8 | Python | false | false | 1,978 | py | # Copyright 2018 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 agreed to in writing, ... | [
"k8s-ci-robot@users.noreply.github.com"
] | k8s-ci-robot@users.noreply.github.com |
0e599945ce4472d58f9866a53ab0704c0f221798 | e811a08b8b653da94e516ca147ec49b534f74a62 | /inflearn/selenium/youtube_crawling.py | 5ee1344531250a2e894b10b021c4dc663b4896ac | [] | no_license | HoYaStudy/Python_Study | 0feb4a9ba7e68ebea6b2db15b20a3680f979a4de | 59c2cc093ae8ae87c8e07365cc432d87ded29ccc | refs/heads/master | 2023-02-07T23:40:16.135565 | 2023-01-24T06:17:58 | 2023-01-24T06:17:58 | 200,445,372 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,630 | py | import time
import urllib.request as req
from bs4 import BeautifulSoup
from selenium import webdriver
from selenium.webdriver.chrome.options import Options
from selenium.webdriver.common.by import By
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.support import expected_conditions as EC
from se... | [
"hoya128@gmail.com"
] | hoya128@gmail.com |
0741ed35c4873218e7ae43cd5ed12585cd1c90a2 | 1c1ae14f9bcbac9761d9486209cd6100098db5df | /poem/core/keypoint_profiles.py | 81ce607cab6bb5ffc2b520c9284921ff45e7deed | [
"CC-BY-4.0",
"Apache-2.0"
] | permissive | TopHK/google-research | 15aa6323217414c88502cad7aa5a412cbf06b68f | 501208f069810f2024febed13a9972dea75c8020 | refs/heads/master | 2022-12-04T14:11:43.324779 | 2020-08-14T06:31:35 | 2020-08-14T06:35:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 46,899 | py | # coding=utf-8
# Copyright 2020 The Google Research Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicab... | [
"copybara-worker@google.com"
] | copybara-worker@google.com |
06059aed5c5948562a19955d6daf315d91ff4e1f | f87f51ec4d9353bc3836e22ac4a944951f9c45c0 | /.history/test_20210719160759.py | 39a3c495535fc8cbd8e9c4ea3de97d83e654feef | [] | no_license | sanjayMamidipaka/cs1301 | deaffee3847519eb85030d1bd82ae11e734bc1b7 | 9ddb66596497382d807673eba96853a17884d67b | refs/heads/main | 2023-06-25T04:52:28.153535 | 2021-07-26T16:42:44 | 2021-07-26T16:42:44 | 389,703,530 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,537 | py | print(("Good",) + (4,) + ("You",))
print([["Solar", "Power"]] * 2)
print("pitch perfect" in ["pitch", "perfect"])
print({print("scary"): "hours", 2: ";p"}[None])
print(( "Surf's Up", {"The": "Beach Boys"[2], "Beach": [2]} ) [1] ["The"] * 3)
# aList = ["Dolly Parton", "Arlo Guthrie", "Paul Simon"]
# cList = aList
#... | [
"sanjay.mamidipaka@gmail.com"
] | sanjay.mamidipaka@gmail.com |
28a643bf09bcd27175187850ab9c60376afe9b41 | 3a22d9a1c4a8d5530208f4b9af004711bd620111 | /reinforcement_learning/rl_hvac_ray_energyplus/source/hvac_ray_launcher.py | 01a94ec321cd97d3d0981453d39be0e9264c3571 | [
"Apache-2.0"
] | permissive | jme3192/amazon-sagemaker-examples | 45fae7b1e2a8b8c0b8149eb1195caa8fd701a12a | 93cd954b6f57c8f905340479b92eaca17b2527ff | refs/heads/master | 2023-04-29T02:40:42.483934 | 2021-05-11T21:31:59 | 2021-05-11T21:31:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,722 | py | # Copyright 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://www.apache.org/licenses/LICENSE-2.0
#
# or in the "license" fil... | [
"noreply@github.com"
] | jme3192.noreply@github.com |
4f5cae61a674637eef37f4ce0af3e1cecb883c8c | 5dccb539427d6bd98b4b4eab38b524dc930229c7 | /monai/bundle/config_parser.py | 613ad4e44aa80f678ca9ed2f28e6764a4f2a70e4 | [
"Apache-2.0"
] | permissive | Warvito/MONAI | 794aca516e6b3ed365ee912164743a3696735cf3 | 8eceabf281ab31ea4bda0ab8a6d2c8da06027e82 | refs/heads/dev | 2023-04-27T19:07:56.041733 | 2023-03-27T09:23:53 | 2023-03-27T09:23:53 | 512,893,750 | 0 | 0 | Apache-2.0 | 2022-08-05T16:51:05 | 2022-07-11T20:04:47 | null | UTF-8 | Python | false | false | 22,265 | py | # Copyright (c) MONAI Consortium
# 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, so... | [
"noreply@github.com"
] | Warvito.noreply@github.com |
0429f7a6497c3ad8beb348791d38ddfb746c4c92 | 91dfd2193d73d4c0f547706bb1a954025dd8c9fd | /autolens/pipeline/phase/imaging/result.py | 925f183b193e70609d45b35b8d5a11c8055b42dc | [
"MIT"
] | permissive | FreeworkEarth/PyAutoLens | 13913d6a8b9696f225e85164e62dff3251aa7831 | 434f4bb329c93bcdc11b1f87962e7e2bd1097d9b | refs/heads/master | 2023-03-21T19:51:58.245105 | 2021-03-18T14:32:13 | 2021-03-18T14:32:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,075 | py | from autoconf import conf
import autoarray as aa
import numpy as np
from autogalaxy.galaxy import galaxy as g
from autolens.pipeline.phase import dataset
class Result(dataset.Result):
@property
def max_log_likelihood_fit(self):
hyper_image_sky = self.analysis.hyper_image_sky_for_instance(
... | [
"james.w.nightingale@durham.ac.uk"
] | james.w.nightingale@durham.ac.uk |
932d48399c77d21d7a6888b2120007a165bd202e | 38f9e6dc2643d955dbf04c4cfd5430c441f72b44 | /pyweb/css/__init__.py | b56e53aab520ef3401bc5eae0c36e5413fe1c3df | [
"MIT"
] | permissive | Dmunch04/PyWeb | 0119b3eaf4e456376603a3b43b17c1a4dc8eb5f2 | 459d3953e4a31a91619d1911d9eda2b2e14b721c | refs/heads/master | 2022-07-29T00:27:55.383733 | 2022-07-13T21:30:56 | 2022-07-13T21:30:56 | 177,850,308 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 295 | py | from pyweb.css.animation import *
from pyweb.css.backdropfilter import *
from pyweb.css.border import *
from pyweb.css.color import *
from pyweb.css.gradient import *
from pyweb.css.position import *
from pyweb.css.style_value import *
from pyweb.css.style import *
from pyweb.css.unit import *
| [
"daniellmunch@gmail.com"
] | daniellmunch@gmail.com |
84e7f1e74bf3f7a0b387804908de4724c54b6157 | 128d593efd591dc83a3aef2d4bfad39e73ee637e | /python_code/complete/no032 | f900a4b44d95b290e9c26d3ca7550214d7c86d20 | [] | no_license | jwan/ProjectEuler | 93be87d89cc58516d503dd5ed53bdbd706748cda | 65aec4f87b8899db6bad94a36412a28a4b4527e9 | refs/heads/master | 2021-01-17T08:21:46.654529 | 2011-05-02T23:11:35 | 2011-05-02T23:11:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,469 | #!/usr/bin/env python
# an n-digit number is >= 10^(n-1)
# n*m >= 10^(n+m-2), must have at least n + m - 1 digits
#subsets of cardinality 5,6
from python_code.decorators import euler_timer
def all_orderings(list_):
if len(list_) == 1:
return [list_]
result = []
for elt in list_:
sublis... | [
"dan@counsyl.com"
] | dan@counsyl.com | |
0d3c14efd033d21a13c78aebe4b02a60e3327ca1 | 7fb469e93ff89b1c697d5a53a39188127e50d272 | /utils/migration_gitlab.py | d1c48ce75256887b1e71426bfbd77b6e43a5bfee | [] | no_license | seekplum/seekplum | fde98f93145a78fc030032a4499090583aba154a | 9e66f5e62214e566528003d434ef2b74877419fd | refs/heads/master | 2023-02-13T19:00:49.866130 | 2023-01-31T08:55:19 | 2023-02-02T04:33:45 | 182,075,292 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 6,358 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import logging
import logging.handlers
import os
import shutil
import subprocess
import uuid
from datetime import datetime
from multiprocessing import Process
color = lambda c, s: "\033[3%sm%s\033[0m" % (c, s)
red = lambda s: color(1, s)
green = lambda s: color(2, s)
d... | [
"1131909224@qq.com"
] | 1131909224@qq.com |
de5d5f1bc08a672e7ae40f702255876007218523 | 0a2cc497665f2a14460577f129405f6e4f793791 | /sdk/formrecognizer/azure-ai-formrecognizer/tests/test_invoice_from_url.py | d083e353c82ae6db4c8b4cf95f772515f99ba3bc | [
"LicenseRef-scancode-generic-cla",
"MIT",
"LGPL-2.1-or-later"
] | permissive | hivyas/azure-sdk-for-python | 112158aa9e1dd6e30cf6b3dde19f5db6ea2a577b | 8b3258fa45f5dc25236c22ad950e48aa4e1c181c | refs/heads/master | 2023-06-17T12:01:26.392186 | 2021-05-18T19:56:01 | 2021-05-18T19:56:01 | 313,761,277 | 1 | 1 | MIT | 2020-12-02T17:48:22 | 2020-11-17T22:42:00 | Python | UTF-8 | Python | false | false | 13,880 | py | # coding=utf-8
# ------------------------------------
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
# ------------------------------------
import pytest
import functools
from io import BytesIO
from datetime import date, time
from azure.core.exceptions import ClientAuthenticationError, Servic... | [
"noreply@github.com"
] | hivyas.noreply@github.com |
acb8459364de29de9dc72b61525dc9fdfba1d32b | 94a2c4417c1fdd8577a75b09a17912ebae129e6c | /test/test_props.py | efa2d0c3525309dfcb01666e5b8b0fe8ed37bda3 | [
"MIT"
] | permissive | slavaGanzin/ramda.py | ad88a3cf6e7eb1461d4a09aad35ae1c18ca32db8 | 634bfbe0dcb300315ded327756cb3e33241589b8 | refs/heads/master | 2023-01-23T04:43:48.485314 | 2023-01-06T10:11:53 | 2023-01-06T10:11:53 | 142,413,822 | 68 | 7 | MIT | 2021-12-22T13:59:56 | 2018-07-26T08:43:31 | Python | UTF-8 | Python | false | false | 469 | py | from ramda.private.asserts import *
from ramda import *
def test_props():
assert_equal(props(["x", "y"], {"x": 1, "y": 2}), [1, 2])
assert_equal(props(["c", "a", "b"], {"b": 2, "a": 1}), [None, 1, 2])
full_name = compose(join(" "), props(["first", "last"]))
full_name({"last": "Bullet-Tooth", "age": ... | [
"slava.ganzin@gmail.com"
] | slava.ganzin@gmail.com |
5b10d745f5ec3e972d48224fa8217d4cc56ab1a6 | 4ae7cdc9292009398a292bdf6bee61428559fdfd | /SourceCodeTools/models/graph/NodeEmbedder.py | 28ab60152da81c09bc37998d1ef4801169fe359f | [] | no_license | VitalyRomanov/method-embedding | 52a4e6e7bf726b4db0872902a0eaf1d8cb82b4a8 | 1c8f0fc04eb1f495555272d9747fd2fea68525e1 | refs/heads/master | 2023-08-31T17:39:04.051912 | 2023-01-08T05:02:52 | 2023-01-08T05:02:52 | 219,153,628 | 5 | 7 | null | 2023-07-22T20:27:20 | 2019-11-02T12:54:12 | Python | UTF-8 | Python | false | false | 15,753 | py | from SourceCodeTools.nlp import token_hasher
import torch
import torch.nn as nn
class NodeEmbedder(nn.Module):
def __init__(self, nodes, emb_size, dtype=None, n_buckets=500000, pretrained=None):
super(NodeEmbedder, self).__init__()
self.init(nodes, emb_size, dtype, n_buckets, pretrained)
def... | [
"mortiv16@gmail.com"
] | mortiv16@gmail.com |
63b52855ad46d1f9d67fc5e651b85dde89e2167d | 01dd174a3a7d26226564711e32711f137513663f | /pyscf/hessian/uhf.py | 296a0eaaf11d64e93b1f94a8cf1dc1ffa109f934 | [
"Apache-2.0"
] | permissive | cherishyli/pyscf | 00cb09c873edc8890be8501414678cdfa54b177e | 468a4bfc4ce067eb7dab6f9289d71122b219609e | refs/heads/master | 2020-04-18T11:40:00.398066 | 2019-01-24T23:07:36 | 2019-01-24T23:07:36 | 167,508,739 | 1 | 0 | Apache-2.0 | 2019-01-25T08:00:12 | 2019-01-25T08:00:12 | null | UTF-8 | Python | false | false | 20,315 | py | #!/usr/bin/env python
# Copyright 2014-2018 The PySCF Developers. 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
#
# U... | [
"osirpt.sun@gmail.com"
] | osirpt.sun@gmail.com |
f106117df3ad5eb8f234be7b240431f878d123cf | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/75/usersdata/247/39815/submittedfiles/maiormenor.py | 214f114523f4a56308de11ca5ddbcce30d0dc097 | [] | 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 | 478 | py | # -*- coding: utf-8 -*-
import math
a = int(input('Digite o número 1: '))
b = int(input('Digite o número 2: '))
c = int(input('Digite o número 3: '))
d = int(input('Digite o número 4: '))
e = int(input('Digite o número 5: '))
if a>b>c>d>e:
print('%d'%a)
print('%d'%e)
if d>b>c>d>e:
print('%d'%a)
print('... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
b8ec637cf8622bb6e117563c1cb3f60b0272b2f9 | 1b36425f798f484eda964b10a5ad72b37b4da916 | /posthog/migrations/0163_insights_favorited_updatedat_tags.py | c5a40dcc94e66a2437a01cb833cff674ba5315e1 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | dorucioclea/posthog | 0408baa2a7ae98e5bea352c516f741ddc17c0a3e | 8848981baf237117fb22d28af0770a0165881423 | refs/heads/master | 2023-01-23T11:01:57.942146 | 2023-01-13T09:03:00 | 2023-01-13T09:03:00 | 241,222,000 | 0 | 0 | MIT | 2020-02-17T22:34:37 | 2020-02-17T22:34:36 | null | UTF-8 | Python | false | false | 902 | py | # Generated by Django 3.1.12 on 2021-08-05 12:24
import django.contrib.postgres.fields
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("posthog", "0162_organization_is_member_join_email_enabled"),
]
operations = [
migrations.AddField(
... | [
"noreply@github.com"
] | dorucioclea.noreply@github.com |
e148e7a991356e2098a861f3df4ded833d05c410 | 4e5141121d8b4015db233cbc71946ec3cfbe5fe6 | /samples/basic/codec/models/cisco-ios-xr/Cisco-IOS-XR-ipv4-bgp-cfg/cd-encode-xr-ipv4-bgp-cfg-40-ydk.py | deae332d3af6766cbb63dddd700f23a1d621ed68 | [
"Apache-2.0"
] | permissive | itbj/ydk-py-samples | 898c6c9bad9d6f8072892300d42633d82ec38368 | c5834091da0ebedbb11af7bbf780f268aad7040b | refs/heads/master | 2022-11-20T17:44:58.844428 | 2020-07-25T06:18:02 | 2020-07-25T06:18:02 | 282,382,442 | 1 | 0 | null | 2020-07-25T06:04:51 | 2020-07-25T06:04:50 | null | UTF-8 | Python | false | false | 4,034 | py | #!/usr/bin/env python
#
# Copyright 2016 Cisco Systems, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicab... | [
"saalvare@cisco.com"
] | saalvare@cisco.com |
2b1f0d7ff4f43be0da442ede0ce52cd16efbfa97 | 0ec8af8988245d864c63d923e5524403090cd7e0 | /policy_gov_mianyang/policy_gov_mianyang/mongo_work.py | fe86d89c1e9ee93962704279f654c52647018315 | [] | no_license | radtek/Spider | d26b685cb5e41c67c6a7ce0d632072f3cac5f061 | 5a419e8ec77915804d3e659631f09b19aa90a088 | refs/heads/master | 2022-10-30T13:13:29.736256 | 2020-06-11T03:34:58 | 2020-06-11T03:34:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,431 | py | # coding: utf-8
# Author:houszhou
# Date :2020/6/2 14:03
# Tool :PyCharm
import pymongo
import re
def obj_first(obj, error=''):
return obj[0] if obj else error
def format_file_type(doc_no: str):
file_first = obj_first(re.findall(r'^(.*?)[〔\[【]', doc_no))
if file_first:
file_type = file_first
... | [
"1733776802@qq.com"
] | 1733776802@qq.com |
4cec18da9c0917f7fa06dacea09aba3fbf63a37f | 0225e57cc4c579bb0e1ccff01e69823b6bfebf4e | /wxmplot/stackedplotframe.py | 5894edf1f56ddfbcbbf27b02bee4bed6c94e1190 | [
"MIT"
] | permissive | tula32/wxmplot | c40e0ee2b0c111f43a7dc601e189a8143f0642a0 | 0c770e980e2b314ae0d1f2c4be2c001be588c3f6 | refs/heads/master | 2020-05-01T13:30:57.505719 | 2019-01-25T03:30:20 | 2019-01-25T03:30:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,431 | py | #!/usr/bin/python
##
## StackedPlotFrame: a wx.Frame for 2 PlotPanels, top and bottom
## with the top panel being the main panel and the lower panel
## being 1/4 the height (configurable) and the dependent panel
import wx
import numpy as np
import matplotlib
from matplotlib.ticker import NullFormatter, NullLocator... | [
"newville@cars.uchicago.edu"
] | newville@cars.uchicago.edu |
e7d1c7da90d8fe9d28b8cfeebb52df3c85988b16 | d1c605e89fe3f33ba34bc3d29c4f34946cf4835c | /src/openfermion/utils/_trotter_error.py | 02b6d27bfa4935fdcc5921b98841bf874d436e1f | [
"LicenseRef-scancode-generic-cla",
"Apache-2.0"
] | permissive | nkkchem/OpenFermion | 0bdf776fd2efb3ed19172ddccbc41ecfa15060e0 | 35ca4b389438a63eebf97cf492c135811c1923a6 | refs/heads/master | 2020-03-26T07:07:49.276600 | 2018-08-11T06:34:01 | 2018-08-11T06:34:01 | 144,637,497 | 1 | 0 | Apache-2.0 | 2018-08-13T21:51:34 | 2018-08-13T21:51:34 | null | UTF-8 | Python | false | false | 6,763 | py | # Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distribu... | [
"ryanbabbush@gmail.com"
] | ryanbabbush@gmail.com |
c869ed5f559a50650b263874da13d49651ae4d91 | e7e34e2726790686a1f239e22487fe7c957e179f | /homeassistant/components/tuya/const.py | 44b66b576e34756b7d4357dfe4e22767bdd5d40b | [
"Apache-2.0"
] | permissive | AlexxIT/home-assistant | 68a17b49644c5d943b204dc75e1f11fe3b701161 | 8de7966104911bca6f855a1755a6d71a07afb9de | refs/heads/dev | 2022-03-22T14:37:18.774214 | 2021-10-09T16:10:43 | 2021-10-09T16:10:43 | 100,278,871 | 9 | 0 | Apache-2.0 | 2022-01-31T06:18:02 | 2017-08-14T14:50:46 | Python | UTF-8 | Python | false | false | 10,193 | py | """Constants for the Tuya integration."""
from dataclasses import dataclass
DOMAIN = "tuya"
CONF_AUTH_TYPE = "auth_type"
CONF_PROJECT_TYPE = "tuya_project_type"
CONF_ENDPOINT = "endpoint"
CONF_ACCESS_ID = "access_id"
CONF_ACCESS_SECRET = "access_secret"
CONF_USERNAME = "username"
CONF_PASSWORD = "password"
CONF_COUNT... | [
"noreply@github.com"
] | AlexxIT.noreply@github.com |
194b57951d3551b17b1e5082928f57cc5902ee37 | f072d766c00c0931b753a9cc50e36994400153c0 | /plot_lnumass_lhe.py | e0a85908f54d6c53307dd67989977f191b379d32 | [] | no_license | UniMiBAnalyses/Utils | 475208a32bc77dfc43c78048f1652a0c96144704 | d0375a5c8debcba4e39c7187ca7933c810d68357 | refs/heads/master | 2021-06-27T10:02:01.438794 | 2020-11-16T23:29:36 | 2020-11-16T23:29:36 | 177,773,784 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,393 | py | import ROOT as R
import os
import sys
import utils
from math import cosh
from itertools import combinations
from operator import itemgetter
file = R.TFile("/afs/cern.ch/work/d/dvalsecc/private/CMSSW_10_2_0/src/LatinoTreesGEN/GenDumper/test/output_lhe.root", "READ")
tree = file.Get("Analyzer/myTree")
h_lnujjmass= ... | [
"davide.valsecchi@cern.ch"
] | davide.valsecchi@cern.ch |
8f255a8f0063b635ed375927facb346c0ad8997e | 209a7a4023a9a79693ec1f6e8045646496d1ea71 | /COMP0016_2020_21_Team12-datasetsExperimentsAna/pwa/FADapp/pythonScripts/venv/Lib/site-packages/aniso8601/builders/python.py | 51335bef2b1ed9d4e1bb73acd4e705af9f776a82 | [
"MIT"
] | permissive | anzhao920/MicrosoftProject15_Invictus | 5e2347015411bbffbdf0ceb059df854661fb240c | 15f44eebb09561acbbe7b6730dfadf141e4c166d | refs/heads/main | 2023-04-16T13:24:39.332492 | 2021-04-27T00:47:13 | 2021-04-27T00:47:13 | 361,913,170 | 0 | 0 | MIT | 2021-04-26T22:41:56 | 2021-04-26T22:41:55 | null | UTF-8 | Python | false | false | 17,874 | py | # -*- coding: utf-8 -*-
# Copyright (c) 2021, Brandon Nielsen
# All rights reserved.
#
# This software may be modified and distributed under the terms
# of the BSD license. See the LICENSE file for details.
import datetime
from aniso8601.builders import BaseTimeBuilder, TupleBuilder
from aniso8601.exceptions import... | [
"ana.kapros@yahoo.ro"
] | ana.kapros@yahoo.ro |
a15f316975d4df0d503c6776c28a8a97f11bddd6 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03229/s182952830.py | f7d0cdedb254735814e092d73da13fd79ac65aaf | [] | 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 | 534 | py | n = int(input())
a = [int(input()) for _ in range(n)]
a.sort()
front = a[n - 1]
back = a[n - 1]
i = 0
j = n - 2
ans = 0
while i <= j:
diff1 = abs(front - a[i])
diff2 = abs(back - a[i])
diff3 = abs(front - a[j])
diff4 = abs(back - a[j])
mx = max(diff1, diff2, diff3, diff4)
ans += mx
if mx == ... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
85aed72f0bd6e3d1dde024e704cac846d3c294a1 | 03c9cd5bd96874d6117fb17c37ac4d7450c15933 | /django-tutorial/chapter04/orm_intro_demo/book/models.py | fbfa5a5d79b26d829f5b15b1c5f0278bcae96c54 | [] | no_license | atiger808/opencv-tutorial | 603de35e97679d6beae104298ae355edfdd9036a | 2ea9bb3818284fb75f85697e36fde37b6479d1c6 | refs/heads/master | 2020-05-29T23:16:30.462022 | 2019-11-05T10:08:20 | 2019-11-05T10:08:20 | 189,425,004 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 620 | py | from django.db import models
# Create your models here.
class Book(models.Model):
id = models.AutoField(primary_key=True)
title = models.CharField(max_length=100, null=False)
author = models.CharField(max_length=100, null=False)
price= models.FloatField(null=False, default=0)
# 1 makemigrations命令 生成迁移... | [
"atiger0614@163.com"
] | atiger0614@163.com |
3faa5711aeeb59f4ef00fa91833c41f63cacdad4 | 3027ca01be33d07d7acd3a08f8bc812fed71544c | /docs/source/conf.py | 6fddb100fbcd2cc38db5bc457f8c7508d827c92f | [] | no_license | hirune924/ayniy | 016c32e34bf61d074554b4bdd4339d76d14d718f | 10537ab50283144fa6267afd912b387e75f3790c | refs/heads/master | 2022-11-29T02:45:16.474280 | 2020-08-09T05:56:08 | 2020-08-09T05:56:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,030 | py | # Configuration file for the Sphinx documentation builder.
#
# This file only contains a selection of the most common options. For a full
# list see the documentation:
# http://www.sphinx-doc.org/en/master/config
# -- Path setup --------------------------------------------------------------
# If extensions (or module... | [
"upura0@gmail.com"
] | upura0@gmail.com |
afb43707671fdb41caaf35d21da658269313c95c | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02642/s476928460.py | 64de74dd01fb109dd7acd2a9fb2b1a7c2da06fd8 | [] | 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 | 476 | py | import collections
import heapq
import math
import random
import sys
input = sys.stdin.readline
sys.setrecursionlimit(500005)
ri = lambda: int(input())
rl = lambda: list(map(int, input().split()))
rs = lambda: input().rstrip()
n = ri()
a = rl()
N = 1000000
f = [0] * (N + 10)
for v in a:
f[v] += 1
for i in range(N,... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
ddfab1ad5bd41515b7cf094827c444e373346c86 | 8d9318a33afc2c3b5ca8ac99fce0d8544478c94a | /Books/Casandra DB/opscenter-5.1.0/lib/py-redhat/2.6/shared/amd64/twisted/web/_auth/__init__.py | 524586111ac0dd58ada6b7fbb553571f8252aa93 | [] | no_license | tushar239/git-large-repo | e30aa7b1894454bf00546312a3fb595f6dad0ed6 | 9ee51112596e5fc3a7ab2ea97a86ec6adc677162 | refs/heads/master | 2021-01-12T13:48:43.280111 | 2016-11-01T22:14:51 | 2016-11-01T22:14:51 | 69,609,373 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 60 | py | ../../../../../../../py-unpure/twisted/web/_auth/__init__.py | [
"tushar239@gmail.com"
] | tushar239@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.