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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
43866c23e7957b764f0b579688d0275579b2fd44 | ef2e2a40c9e03173ee936f6672a90a794db5b2a0 | /app/search.py | 5dbfba175888cd77005d66737abc91a5e3083ee9 | [] | no_license | crazynayan/flask-tutorial | fc2fbc3bd7e7f30d48dd2abce5ea05ef3168fc6b | 6e51323bf086cadd39a4860388e07b047b8c6fbe | refs/heads/master | 2022-12-13T23:13:08.832155 | 2019-10-30T12:16:54 | 2019-10-30T12:16:54 | 182,255,340 | 0 | 0 | null | 2022-12-08T05:01:38 | 2019-04-19T11:36:10 | Python | UTF-8 | Python | false | false | 969 | py | from flask import current_app
def add_to_index(index, model):
if not current_app.elasticsearch:
return
payload = {}
for field in model.__searchable__:
payload[field] = getattr(model, field)
current_app.elasticsearch.index(index=index, id=model.id, body=payload)
def remove_from_index(... | [
"nayan@crazyideas.co.in"
] | nayan@crazyideas.co.in |
7b98acc53d76f81399ffb120b7e715a6c5608d0a | 00c9701cfc7b1b0bff6a72319d02cd59dc1eca9c | /ros_ws/src/regulation_imugps/src/regulation_from_err_alpha_dist.py | 146f95c8f23cd620b7aa61a5194cd0db3ac032a3 | [] | no_license | EnstaBretagneClubRobo/GuerledanDamScanning | ae80340556898ec6a39395e11975e21272c16c31 | 4309412f0dc883db3e5e4415539f38b5baaa762d | refs/heads/master | 2021-06-14T16:11:16.907465 | 2017-03-03T14:10:51 | 2017-03-03T14:10:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,085 | py | #!/usr/bin/env python
"""
This regulateur is just a template and publish a forward command only
"""
import rospy
from geometry_msgs.msg import Twist
from std_msgs.msg import Float32
from math import atan, pi, tan
def update_err_d(msg):
global eD
eD = msg.data
def update_err_cap(msg):
global ecap
eca... | [
"ejalaa12@gmail.com"
] | ejalaa12@gmail.com |
264248272a1c358a4acd5d74b1c03580e66eaedb | 7807d8d9d109a3e272fffed91bf841201da39256 | /trans_ITP1_8_A/tsuru_aji_ITP1_8_A_kotonoha.py | 235487016630d8bb7d2384be3761ff1a3e9e983b | [] | no_license | y-akinobu/AOJ_to_Kotonoha | 0e8df43393964fcdd5df06c75545091bd6c0c2e2 | 5a694a55a3d85e3fbc4a07b57edc4374556db9a1 | refs/heads/main | 2023-02-05T15:33:16.581177 | 2020-12-30T16:14:44 | 2020-12-30T16:14:44 | 325,524,216 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 160 | py | # strと入力された文字列の英大文字を英小文字、英小文字を英大文字に変換した文字列を出力する
print(str.swapcase(input())) | [
"sx2_vn_yuka@outlook.jp"
] | sx2_vn_yuka@outlook.jp |
ebbdd594ec1e0b143441c4a911fcf81481ed0acf | 4ae1879c21a4193da3df6ae740674ee0655a8beb | /drawDeviation.py | a8b9efe078feb123768f809991f2275a25cac77e | [] | no_license | cynerelee/collision-avoidance | 68bccce1a54009ce7b3bee1bf2adc571b6cde956 | c269b7040b68b91eb5e7e1134feb8363da1091f0 | refs/heads/master | 2023-07-09T02:40:23.760176 | 2023-06-24T03:44:02 | 2023-06-24T03:44:02 | 281,842,101 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,147 | py | import matplotlib.pyplot as plt
import matplotlib
import numpy as np
import xlrd #读取excel的库
x=np.arange(0, 2.01,0.01)
#print(x)
#print(x.shape)
data1 = xlrd.open_workbook("deviation_k1.xlsx")
table1 = data1.sheet_by_index(0)
line=table1.col_values(0)
base=np.array(line)
base=base.T
resArray=[] #先声明一个空list
data = xlrd... | [
"l"
] | l |
3a2127cf485882ad716605f78202ae8536f46498 | f453897fccafc2278f959010c6bad52c7802a2fe | /sidebarUpdate.py | ec7becd648760176a127d1c08e6db75bb5c76b28 | [] | no_license | ColinHaley/Python | 4977c325c13652251386e5a5e3f65d55a3f13a07 | bbef9fc8c4e1d31fe5e1142cf7506fc4738295dd | refs/heads/master | 2021-01-25T08:28:17.231365 | 2018-05-09T21:46:32 | 2018-05-09T21:46:32 | 42,951,804 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,866 | py | """
__author__ = 'Colin Haley, aka Kazra'
__purpose__ = 'Update the /r/asov sidebar with online players from asov Vanilla'
Steps:
1. Create upload variables: [string]CSS, [string]Sidebar
2. Get current players
a. If 0:
i. Clear Sidebar Playerheads
ii. Set to "No Players Online.... | [
"unconfigured@null.spigotmc.org"
] | unconfigured@null.spigotmc.org |
8ad0f2dc3caaa8c82153abee8dbfd4ae141503a1 | 9321d3460ffbbb6cd7917b2bac77ce8321e04737 | /contributions/Legacy/JPlus/Old/EDMFunctions with infiltration not working.py | 0e4abdb725c1f2e288370fefe3c7374edd491e9d | [
"MIT"
] | permissive | muehleisen/CEAforArcGIS | b820d837cd5373b95851b4e5dda609d69f054b97 | b6aeca5a9d70835381625a9162d5695714e1a02b | refs/heads/master | 2021-01-11T21:24:18.482264 | 2017-01-06T05:28:48 | 2017-01-06T05:28:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 73,097 | py | # -*- coding: utf-8 -*-
# <nbformat>3.0</nbformat>
# <markdowncell>
# ####MODULES
# <codecell>
from __future__ import division
import arcpy
from arcpy import sa
import sys,os
import pandas as pd
import datetime
import jdcal
import numpy as np
import math
import sympy as sp
import scipy
import scipy.optimize
sys.pat... | [
"fonseca@arch.ethz.ch"
] | fonseca@arch.ethz.ch |
78449bf47c907409436262751fab4a0327e9bb74 | ad5d38fce4785037c108186f17eb1c64380355ef | /sddsd/google-cloud-sdk.staging/lib/googlecloudsdk/api_lib/cloudbuild/cloudbuild_util.py | c5720e7008ffdafaf648390fa1b04db8874cdcd5 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | saranraju90/multik8s | 75864b605a139ddb7947ed4de4ae8466bdd49acb | 428576dedef7bb9cd6516e2c1ab2714581e1137c | refs/heads/master | 2023-03-03T21:56:14.383571 | 2021-02-20T14:56:42 | 2021-02-20T14:56:42 | 339,665,231 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,887 | py | # -*- coding: utf-8 -*- #
# Copyright 2016 Google LLC. 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 requir... | [
"saranraju90@gmail.com"
] | saranraju90@gmail.com |
2c827b70acdad62ca67fd30e1824c1fba685a3ec | 492c1e1dabb84ec4efb874b3d9228d31a675a38f | /121.py | bd46672c3c29a00f05e67a8d9d5a65edbc8accd8 | [] | no_license | ksnt/leet | 65f3c36c8a524e1cc1a5d00bb7a840222ecc9dfe | 6680ff978b88d3c44e538b4d5f0e6805ed85f9cf | refs/heads/master | 2022-09-24T10:59:18.740314 | 2022-09-01T19:06:12 | 2022-09-01T19:06:12 | 136,970,152 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 494 | py | import sys
class Solution:
def maxProfit(self,prices):
"""
:type prices: List[int]
:rtype: int
"""
if len(prices) == 0: return 0
min_price = sys.maxsize
max_profit = 0
length = len(prices)
for i in range(length):
if prices[i] < min_... | [
"ksn0215@gmail.com"
] | ksn0215@gmail.com |
33bd9813fab74f630b0d6986aa9f4747cd2d0f9b | 18f2d1458103e1aacaaa14d9ff52654da0154dc8 | /src/layers/cnn.py | a65eefba9fdcd3fd3a51a8020d43ef2cd3f172b7 | [] | no_license | yamad07/IADA | 4fbda5b2e7cdb5efd83f2bd2960bfb8dcfd0d455 | 7dbda1eb336f44e57567f4541e14b31304a4e381 | refs/heads/master | 2020-04-10T23:18:01.809883 | 2019-01-30T16:05:21 | 2019-01-30T16:05:21 | 161,347,800 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 598 | py | import torch.nn as nn
def conv_layer(in_dim, out_dim, kernel_size):
return nn.Sequential(
nn.Conv2d(in_dim, out_dim, kernel_size=kernel_size, padding=int((kernel_size - 1)/2)),
nn.ELU(inplace=True),
nn.Conv2d(out_dim, out_dim, kernel_size=kernel_size, padding=int((kernel_size - ... | [
"yuhsukeshootsfc@gmail.com"
] | yuhsukeshootsfc@gmail.com |
a82c891c8c753024768d78e5716329e714114205 | cf5b2850dc9794eb0fc11826da4fd3ea6c22e9b1 | /xlsxwriter/test/comparison/test_chart_drop_lines01.py | 6e303f1bb4c31e9ce82494adcc98a6d81795dacb | [
"BSD-2-Clause"
] | permissive | glasah/XlsxWriter | bcf74b43b9c114e45e1a3dd679b5ab49ee20a0ec | 1e8aaeb03000dc2f294ccb89b33806ac40dabc13 | refs/heads/main | 2023-09-05T03:03:53.857387 | 2021-11-01T07:35:46 | 2021-11-01T07:35:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,470 | py | ###############################################################################
#
# Tests for XlsxWriter.
#
# SPDX-License-Identifier: BSD-2-Clause
# Copyright (c), 2013-2021, John McNamara, jmcnamara@cpan.org
#
from ..excel_comparison_test import ExcelComparisonTest
from ...workbook import Workbook
class TestCompar... | [
"jmcnamara@cpan.org"
] | jmcnamara@cpan.org |
440d85991f4a5c63c993bfa5575e75c0fe80b2eb | f281d0d6431c1b45c6e5ebfff5856c374af4b130 | /DAY001~099/DAY25-BOJ1068-트리/shinjam.py | 7db78b4398a5df90c58f272225b3fb2e50d4feb0 | [] | no_license | tachyon83/code-rhino | ec802dc91dce20980fac401b26165a487494adb4 | b1af000f5798cd12ecdab36aeb9c7a36f91c1101 | refs/heads/master | 2022-08-13T09:10:16.369287 | 2022-07-30T11:27:34 | 2022-07-30T11:27:34 | 292,142,812 | 5 | 6 | null | null | null | null | UTF-8 | Python | false | false | 612 | py | from collections import defaultdict
N = int(input())
input_nodes = map(int, input().split())
del_node = int(input())
nodes = defaultdict(list)
stack = []
visited = [0] * N
for idx, val in enumerate(input_nodes):
if del_node in [idx, val]:
continue
if val == -1:
stack.append(idx)
cont... | [
"noreply@github.com"
] | tachyon83.noreply@github.com |
c27db6a1a5fe6540f5fe1c700d2b2ee27a972c38 | 21b39d50e4df56ea01453001845d1580729af1df | /jdcloud_sdk/services/waf/models/WafConf.py | 27441dad49c7751c59eb9cce3518e52ea22c2365 | [
"Apache-2.0"
] | permissive | Tanc009/jdcloud-sdk-python | ef46eac7731aa8a1839b1fc1efd93249b7a977f0 | 8b045c99bc5b73ca7348e950b6f01e03a27982f5 | refs/heads/master | 2021-08-09T14:49:16.177709 | 2021-06-25T02:38:41 | 2021-06-25T02:38:41 | 141,714,695 | 0 | 0 | Apache-2.0 | 2018-07-20T13:21:17 | 2018-07-20T13:21:16 | null | UTF-8 | Python | false | false | 1,201 | py | # coding=utf8
# Copyright 2018 JDCLOUD.COM
#
# 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 ... | [
"tancong@jd.com"
] | tancong@jd.com |
4a59a6d730c7d42759eeb4c97d075bd0b74a5420 | 3c000380cbb7e8deb6abf9c6f3e29e8e89784830 | /venv/Lib/site-packages/cobra/modelimpl/vns/rsvdevdomainrefconttodomainref.py | 6f6631bb9d8ebd61481610df7c86e13fd1a69120 | [] | no_license | bkhoward/aciDOM | 91b0406f00da7aac413a81c8db2129b4bfc5497b | f2674456ecb19cf7299ef0c5a0887560b8b315d0 | refs/heads/master | 2023-03-27T23:37:02.836904 | 2021-03-26T22:07:54 | 2021-03-26T22:07:54 | 351,855,399 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,979 | py | # coding=UTF-8
# **********************************************************************
# Copyright (c) 2013-2020 Cisco Systems, Inc. All rights reserved
# written by zen warriors, do not modify!
# **********************************************************************
from cobra.mit.meta import ClassMeta
from cobra.m... | [
"bkhoward@live.com"
] | bkhoward@live.com |
2599f43c702b477847beae310b71941347de3dfc | d5492bcc77824e29669400622fd89b1349c90caf | /python网络数据采集/my_爬虫_进阶_之路/scrapy框架/my_spiders/电商项目/阿里1688_淘宝_天猫_京东_折800_卷皮_拼多多/my_flask_server/tools/时间戳_to_时间.py | bb9790a02ba469733ed07993cf5d5bc247faef0e | [] | no_license | XCodeAny/python | d88980682ba4db839911a5de8c073fa33a63da80 | 35991daf6c7eff4197662b9d07cb9fcdee6a0c02 | refs/heads/master | 2021-08-30T20:00:14.231120 | 2017-12-19T07:55:15 | 2017-12-19T07:55:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,009 | py | # coding:utf-8
'''
@author = super_fazai
@File : 时间戳_to_时间.py
@Time : 2017/11/15 17:13
@connect : superonesfazai@gmail.com
'''
import time
def timestamp_to_regulartime(timestamp):
'''
将时间戳转换成时间
'''
# 利用localtime()函数将时间戳转化成localtime的格式
# 利用strftime()函数重新格式化时间
# 转换成localtime
time_loc... | [
"superonesfazai@gmail.com"
] | superonesfazai@gmail.com |
44bf8f5d04ab2ef20b3544249cd1b6392eb19290 | 1e9c9f2a9639db7cdb032aae69cb4d99aef1d3a5 | /w3schools/python/reference/builtInFunctions.py | b9e411f63673bbb33d19faf1d68a200cdb99c7a9 | [
"MIT"
] | permissive | sagarnikam123/learnNPractice | f0da3f8acf653e56c591353ab342765a6831698c | 1b3b0cb2cff2f478006626a4c37a99102acbb628 | refs/heads/master | 2023-02-04T11:21:18.211654 | 2023-01-24T14:47:52 | 2023-01-24T14:47:52 | 61,184,927 | 2 | 1 | MIT | 2022-03-06T11:07:18 | 2016-06-15T06:57:19 | Python | UTF-8 | Python | false | false | 3,948 | py | # Built in Functions
# abs()-Returns the absolute value of a number
print(abs(-7.52))
print(abs(3+5j))
# all()-Returns True if all items in an iterable object are true
mylist = [True, True, True]
print(all(mylist)) # True
print(all([1, 1, 1])) # True
print(all([0, 1, 1])) # False
print(all([])) # True
print(all((... | [
"sagarnikam123@gmail.com"
] | sagarnikam123@gmail.com |
05bf10e915b53d57bb3f0174801892d61daffed8 | f4434c85e3814b6347f8f8099c081ed4af5678a5 | /sdk/search/azure-search-documents/azure/search/documents/_internal/_generated/aio/__init__.py | fa69578ea7f244621643bd7e1b4c113301d9ff0d | [
"LicenseRef-scancode-generic-cla",
"MIT",
"LGPL-2.1-or-later"
] | permissive | yunhaoling/azure-sdk-for-python | 5da12a174a37672ac6ed8e3c1f863cb77010a506 | c4eb0ca1aadb76ad892114230473034830116362 | refs/heads/master | 2022-06-11T01:17:39.636461 | 2020-12-08T17:42:08 | 2020-12-08T17:42:08 | 177,675,796 | 1 | 0 | MIT | 2020-03-31T20:35:17 | 2019-03-25T22:43:40 | Python | UTF-8 | Python | false | false | 552 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | [
"noreply@github.com"
] | yunhaoling.noreply@github.com |
ae18e15d31cb04495f56ec8136afcdb8cbf22861 | 6ecf8227cc63ea5c8f05fdd6a7d28b3167119367 | /blueking_forum/wsgi.py | 9b85fd8c45ff19aed7455d4ee3ba00e35d2a3b0a | [] | no_license | doraemonext/blueking_forum | 5ad0f46780e785a5af4db6f171654e351f509aa1 | f5737dcdeaef15c37b37a0988aa1be98f6283834 | refs/heads/master | 2020-12-28T21:29:19.982785 | 2015-11-04T04:15:20 | 2015-11-04T04:15:20 | 44,859,369 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 405 | py | """
WSGI config for blueking_forum project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/1.8/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANG... | [
"doraemonext@gmail.com"
] | doraemonext@gmail.com |
9d8eef47748cb50afa81f15fa27c8d75bfaca146 | 08351ac650385e2ee0f4fc08ab8ef0978bc5bf3c | /Module2_HTTP/Request_response/Request.py | 981163757b7ae56b101453c505885d2f3f2dcdcd | [] | no_license | tertiarycourses/PythonNetworkingTraining | d3c02488e91d318874558130a89fb112a2c95d55 | 9c5f223a4b83d21a791ac0d322306c3a78c4122f | refs/heads/master | 2019-07-13T07:59:49.241235 | 2017-05-11T14:48:19 | 2017-05-11T14:48:19 | 83,748,786 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,087 | py | #Requests with urllib
# from urllib.request import urlopen
# from urllib.request import Request
# response = urlopen('http://www.debian.org')
# print(response)
# print(response.readline())
# ##response object
# print(response.url)
# print(response.status)
# print(response.headers['content-type'])
#r... | [
"angch@tertiaryinfotech.com"
] | angch@tertiaryinfotech.com |
e223b08659d04f02b9ff57fd9cc627a0bfbc4420 | 63ba933a294865f65409635f62e0f1d59f725f37 | /src/arrays/bagOfTokensScore.py | 86ce1032d9eb0987f1da6b22e658f67679b0f34d | [
"CC0-1.0"
] | permissive | way2arun/datastructures_algorithms | fc4302bdbb923ef8912a4acf75a286f2b695de2a | 4ea4c1579c28308455be4dfa02bd45ebd88b2d0a | refs/heads/master | 2021-12-07T04:34:35.732026 | 2021-09-30T12:11:32 | 2021-09-30T12:11:32 | 203,658,808 | 1 | 0 | null | 2020-08-08T15:55:09 | 2019-08-21T20:23:46 | Python | UTF-8 | Python | false | false | 2,716 | py | """
Bag of Tokens
You have an initial power of P, an initial score of 0, and a bag of tokens where tokens[i] is the value of the ith token (0-indexed).
Your goal is to maximize your total score by potentially playing each token in one of two ways:
If your current power is at least tokens[i], you may play the ith toke... | [
"way2aru@yahoo.com"
] | way2aru@yahoo.com |
a8b32038a3ade070c8f67b3eed0e66408c072e48 | 25d4c31d5ebe470118b14beb84f3cd1e53d99c15 | /01_Tutorials/PyQt5_GUI_Tutorial/09_2_Tutorial_Progressbar_Button.py | 195496bbd802cc5cf6756f04db46337e8a71d385 | [] | no_license | daltdoerfer/Python_Templates-1 | ea4b59489feb7b7617e81b7c94d4375dbf25def3 | c2471cebeaf20bbfdfd3fd263d458e5a67ad8d1e | refs/heads/master | 2023-05-10T15:07:10.109280 | 2021-06-08T06:45:53 | 2021-06-08T06:45:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,012 | py | # Dieses Tutorial beinhaltet das einfügen von:
# Progressbar mit ButtonS und (Multi-)Threading (Programm muss weiterlaufen und lagert andere Prozesse aus)
# https://riptutorial.com/pyqt5/example/29500/basic-pyqt-progress-bar
import sys
import time
from PyQt5 import *
from PyQt5.QtWidgets import *
from PyQt5.QtGui imp... | [
"daltdoerfer@yahoo.com"
] | daltdoerfer@yahoo.com |
78b480c59e1129fef3f5117392043d5251f5e5cb | 7c551e749064b25af706b9167211050f8c6ad0a9 | /signatures/windows/trojan_rovnix.py | f9b6b29446060b6a111cd040ea82c6e53ff79178 | [] | no_license | dashjuvi/Cuckoo-Sandbox-vbox-win7 | fa382828b4895c5e1ee60b37a840edd395bf1588 | a3a26b539b06db15176deadeae46fc0476e78998 | refs/heads/master | 2020-03-12T08:33:06.231245 | 2019-01-14T23:09:02 | 2019-01-14T23:09:02 | 130,529,882 | 6 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,606 | py | # Copyright (C) 2010-2015 Cuckoo Foundation.
# This file is part of Cuckoo Sandbox - http://www.cuckoosandbox.org
# See the file 'docs/LICENSE' for copying permission.
from lib.cuckoo.common.abstracts import Signature
class Rovnix(Signature):
name = "rovnix"
description = "Rovnix Trojan"
severity = 3
... | [
"diegovm14@gmail.com"
] | diegovm14@gmail.com |
e243451ce164809caa479471221ee886f2b8c8da | 41c605bf3a002a757cb2344cff526d7a7ae56ea9 | /plotly/validators/choropleth/unselected/__init__.py | 6b386c7525f160cb5f23f28d158a37c663b847da | [
"MIT"
] | permissive | Jonathan-MW/plotly.py | 9674b90b5de11fd9089e6afefd04b57bc4587829 | 7528c00772f44dee24c0df7e15d70a4852f171a8 | refs/heads/master | 2020-05-30T06:04:13.621478 | 2019-05-31T10:34:15 | 2019-05-31T10:34:15 | 189,571,988 | 2 | 0 | MIT | 2019-05-31T09:59:53 | 2019-05-31T09:59:53 | null | UTF-8 | Python | false | false | 684 | py |
import _plotly_utils.basevalidators
class MarkerValidator(_plotly_utils.basevalidators.CompoundValidator):
def __init__(
self,
plotly_name='marker',
parent_name='choropleth.unselected',
**kwargs
):
super(MarkerValidator, self).__init__(
plotly_name=plotly... | [
"noreply@github.com"
] | Jonathan-MW.noreply@github.com |
75b7140688bd7f5663275f7481f344ba0990f781 | 4e04f819e376c3fba7b6a57c228c289b2c3dde12 | /compass/ocean/tests/global_ocean/mesh/so12to60/dynamic_adjustment/__init__.py | c183fae208713987c10bf3bf3c959e87c5ac2da9 | [
"LicenseRef-scancode-warranty-disclaimer",
"BSD-2-Clause"
] | permissive | Rihui-L/compass | 65e88253f24240a4376a9f04c047c2756848a45a | 4446f76222be26996fc44569a2047bdfb22e33ff | refs/heads/master | 2023-06-19T12:45:30.190857 | 2021-07-20T19:48:43 | 2021-07-20T19:48:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,066 | py | from compass.ocean.tests.global_ocean.dynamic_adjustment import \
DynamicAdjustment
from compass.ocean.tests.global_ocean.forward import ForwardStep
class SO12to60DynamicAdjustment(DynamicAdjustment):
"""
A test case performing dynamic adjustment (dissipating fast-moving waves)
from an initial conditi... | [
"xylarstorm@gmail.com"
] | xylarstorm@gmail.com |
06dec5bffda4f9bce976bfa3abf34ab323768695 | c29de7ce2d91f572aeb4da56801de7a1dc034054 | /st2/experiments/cifar10/exp011.py | f2fd3d516a219c49e1c585326c4a98eaf1043f51 | [] | no_license | kzky/works | 18b8d754bfc2b1da22022926d882dfe92ea785e6 | b8708c305e52f924ea5a7071e0dfe5f2feb7a0a3 | refs/heads/master | 2021-01-10T08:04:44.831232 | 2018-03-01T15:09:47 | 2018-03-01T15:09:47 | 54,316,791 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,121 | py | import nnabla as nn
import nnabla.functions as F
import nnabla.parametric_functions as PF
import nnabla.solvers as S
import nnabla
from nnabla.contrib.context import extension_context
import numpy as np
import os
import time
import argparse
from st2.cifar10.cnn_model_011 import cnn_model_003, ce_loss, sr_loss, er_loss,... | [
"rkzfilter@gmail.com"
] | rkzfilter@gmail.com |
fb4055ed05dc497e1fbf506797c4d8371e6725f6 | bd053d2bf5444ab8f0b8b0ff56772fa75281e38d | /qchem/tests/test_observable.py | 09b74d615188f94b288e790d8fe1d3a885eb13cd | [
"Apache-2.0"
] | permissive | johannesjmeyer/pennylane | bcb762583e95537b04a9b38756369571f957d2e5 | 8f602312baea107d5248267fb3dc1593722810e0 | refs/heads/master | 2023-07-11T18:21:31.086858 | 2021-08-14T19:21:42 | 2021-08-14T19:21:42 | 341,190,636 | 3 | 1 | Apache-2.0 | 2021-06-16T09:01:58 | 2021-02-22T12:19:10 | Python | UTF-8 | Python | false | false | 4,359 | py | import os
import numpy as np
import pytest
from pennylane import qchem
from openfermion import FermionOperator, QubitOperator
t = FermionOperator("0^ 0", 0.5) + FermionOperator("1^ 1", -0.5)
v = (
FermionOperator("0^ 0^ 0 0", 0.25)
+ FermionOperator("0^ 1^ 1 0", -0.25)
+ FermionOperator("1^ 0^ 0 1", -0... | [
"noreply@github.com"
] | johannesjmeyer.noreply@github.com |
c94b2c053a007e87154dc677ea8df2d8d6db02e4 | e63c1e59b2d1bfb5c03d7bf9178cf3b8302ce551 | /uri/uri_python/iniciante/p1038.py | e994b8738d0a17022bb596d11005b2a23996e826 | [] | no_license | GabrielEstevam/icpc_contest_training | b8d97184ace8a0e13e1c0bf442baa36c853a6837 | 012796c2ceb901cf7aa25d44a93614696a7d9c58 | refs/heads/master | 2020-04-24T06:15:16.826669 | 2019-10-08T23:13:15 | 2019-10-08T23:13:15 | 171,758,893 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 160 | py | valor = input().split(" ")
codigo = int(valor[0])
quantidade = int(valor[1])
preco = [4, 4.5, 5, 2, 1.5]
print("Total: R$ %.2f" % (quantidade*preco[codigo-1]))
| [
"gabrielestevam@hotmail.com"
] | gabrielestevam@hotmail.com |
98e5bb02b2f1e5c29f9b110dae3b25cd10b004f1 | d75703c2083dfc508c5608c4c35167b67d1a4308 | /2nd Chapter/graphTwo.py | 13107201655ba9be1fc0423142010b1927106346 | [] | no_license | vubon/Python-core | e8159763d281152a1b64da3a0534899fd3def2b5 | a415ef3c6159f0c85afa3240a762a00b2c68bd02 | refs/heads/master | 2020-07-03T17:08:10.091827 | 2016-12-09T19:26:51 | 2016-12-09T19:26:51 | 67,540,882 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 213 | py | import networkx as nx
G=nx.Graph()
G.add_node("A")
G.add_node("B")
G.add_none("C")
G.add_edge("A","B")
G.add_edge("B", "C")
G.add_edge("C", "A")
print("Nodes: " + str(G.nodes()))
print("Edges: " + str(G.edge()))
| [
"vubon.roy@gmail.com"
] | vubon.roy@gmail.com |
354596a7e215dbda43d8b2a0e5becc1707e1fa44 | e3946d91dc5fe71989c2f4b6390232865fcb5d1b | /fjord/flags/tests/test_tasks.py | cc907a579b61d1e71e3621331f63e2dfa138d835 | [
"LicenseRef-scancode-unknown-license-reference",
"BSD-3-Clause"
] | permissive | zeusintuivo/fjord | 61b632fd6df0e1b3508e628fe4f682a937cc0244 | 3bd227004d369df1fdc39f06acff12ebc8f0fe34 | refs/heads/master | 2021-01-16T18:28:52.564638 | 2014-09-24T21:02:51 | 2014-09-24T21:02:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,983 | py | from mock import patch
from nose.tools import eq_
# These tests require that tasks be imported so that the post_save
# signal is connected. Don't remove this.
import fjord.flags.tasks # noqa
from fjord.base.tests import TestCase
from fjord.feedback.tests import ResponseFactory
from fjord.flags.spicedham_utils import... | [
"willkg@mozilla.com"
] | willkg@mozilla.com |
ff0180f0924a802c747f04609234a645c5b90d6f | 69c33fcad69a2e61cc60209401215530d033e712 | /Python/Python Basics/32.opr.py | dae93683c4b9860393bb38c99d87a73107461c88 | [] | no_license | KULDEEPMALIKM41/Practices | 7659b895ea959c7df2cdbc79c0b982b36f2bde63 | 193abe262ff281a384aac7895bb66dc39ee6e88d | refs/heads/master | 2023-08-17T11:01:11.694282 | 2021-09-30T08:12:41 | 2021-09-30T08:12:41 | 289,527,102 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 509 | py | # 4.Logical Operator => and , or, not
# and or not
# A B A and B | A B A or B | A not(A)
# F F F F F F T F
# F T F F T T
# T F F T F T F T
# T T T T T T
a,b,c=10,20,5
res= b>a and b>c
print('result : ',res)
a,b,c=10,5,15... | [
"Kuldeepmalikm41@gmail.com"
] | Kuldeepmalikm41@gmail.com |
42c2877963f0980cf4683bb135d63c3593ccd77c | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_267/ch3_2020_04_10_19_31_46_547518.py | f2b28c9beb403cc065d37ef9eac91b50609cac83 | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 173 | py | import math
def calcula_gaussiana(x, mi, sigma):
a = sigma*((2*math.pi)**(1/2))
b = -0.5*((x-mi)/sigma)**2
gaussiana = ((1/a)*(math.exp**b))
return gaussiana | [
"you@example.com"
] | you@example.com |
459af06cd809435cbcaf4c1ecd35e0e3e713e427 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2981/60712/256536.py | 0d28d89f2d62c8f4b6a26f95305cd6fb99293d9d | [] | 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 | 1,321 | py |
import re
p =list(map(int,input().split()))
s=re.split(r"([-])",input())
for i in range(len(s)):
if s[i]=='-':
pre = list(s[i-1])
pres =0
post=list(s[i+1])
posts=0
if 'a'<=pre[len(pre)-1]<='z':
pres=1
else:
pres=2
if 'a'<=post[0]<='z... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
e1c57de141179aa79660288b3b8d5125a1fa9cbc | 027a6b2db66fad3a0242fe92124400fc013b16f2 | /SConstruct | b6cfd439ce8889defd6482e6239f07baae37e3cc | [] | no_license | cfobel/cpp_simple_serialize | aa091e9ebe14bfe8972e7d07a5afbf337147f332 | 63fcb68d784b5b87276340e1b4c703c8e9708794 | refs/heads/master | 2021-01-22T04:49:19.677185 | 2010-12-16T04:42:39 | 2010-12-16T04:42:39 | 1,833,261 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 32 | Program('simple_serialize.cpp')
| [
"christian@fobel.net"
] | christian@fobel.net | |
2cb05fd34b8861c334ba7dbc9667a5c72875a592 | 9e3f3c377018a8b04ad8d96a71b2e9cc1e7e82c6 | /python/gr_digital_rf/raster.py | 473de938a1daf09c6161ba0e0dd45c63928f9137 | [
"BSD-3-Clause"
] | permissive | w2naf/digital_rf | 8079fa391eee246d9031849df719345b949c39fd | 482608dcc5608b9d9a0aacf77e75f83edbec1f0e | refs/heads/master | 2020-03-28T02:17:07.717118 | 2019-05-02T15:00:03 | 2019-05-02T15:00:03 | 147,560,147 | 0 | 0 | NOASSERTION | 2019-05-02T15:00:04 | 2018-09-05T18:10:47 | Python | UTF-8 | Python | false | false | 22,768 | py | # ----------------------------------------------------------------------------
# Copyright (c) 2018 Massachusetts Institute of Technology (MIT)
# All rights reserved.
#
# Distributed under the terms of the BSD 3-clause license.
#
# The full license is in the LICENSE file, distributed with this software.
# -------------... | [
"rvolz@mit.edu"
] | rvolz@mit.edu |
4e23d1b44a12c5b9a789d8eec13f30ebec60eef8 | 750c45da795fe15d7ef40d09660742b650631967 | /snippet_builder/settings.py | 7b0c8a5ce9b385cd0ef5bb27441918dd22218181 | [] | no_license | John-W-Stevens/django_snippet_builder | cd984b69b3499136c4757bbae11d3f4701ef132e | 58d2ecd2432d1c288969cffdd6de5c0ad546306e | refs/heads/master | 2022-11-12T06:48:35.642128 | 2020-07-06T17:18:49 | 2020-07-06T17:18:49 | 258,379,535 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,143 | py | """
Django settings for snippet_builder project.
Generated by 'django-admin startproject' using Django 2.2.10.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/
"""
imp... | [
"john.william.stevens1@gmail.com"
] | john.william.stevens1@gmail.com |
3e263de797c280c76236971f3eb0a070cc15d6d8 | 559e336386e02c0e5ebc7316424c3b4a41380d99 | /fullstack/python/github_examples/magenta/generating_piano_music_with_transformer.py | ada7b928d7c7edc9bb5153e667d08f3de6b87097 | [] | no_license | maranemil/howto | edf1e294544ef6980894dcd345d73160d8aa9620 | f6270ed0affcdbd899dd8a2ff9b0b98625e63a5a | refs/heads/master | 2023-09-05T03:02:18.526914 | 2023-09-04T11:27:52 | 2023-09-04T11:27:52 | 22,177,757 | 48 | 26 | null | 2022-10-17T19:43:31 | 2014-07-23T21:04:50 | Python | UTF-8 | Python | false | false | 14,457 | py | # -*- coding: utf-8 -*-
"""Generating Piano Music with Transformer.ipynb
Automatically generated by Colaboratory.
Original file is located at
https://colab.research.google.com/notebooks/magenta/piano_transformer/piano_transformer.ipynb
##### Copyright 2019 Google LLC.
Licensed under the Apache License, Version ... | [
"maran.emil@gmail.com"
] | maran.emil@gmail.com |
a0857f8022a9592f8bee88c3e97a5859915ed831 | 55647a80c8b412af9df0ba3f50595cc2f29c25e6 | /res/scripts/client/gui/Scaleform/daapi/settings/__init__.py | 9aa47f81067051a2e6f0d8d3d3e359503585fce2 | [] | no_license | cnsuhao/WOT-0.9.17-CT | 0035eb6070fb4fab8d8ee9f8bbc676c10d511cfb | d1f932d8cabaf8aa21708622e87f83c8d24d6451 | refs/heads/master | 2021-06-08T18:11:07.039293 | 2016-11-19T19:12:37 | 2016-11-19T19:12:37 | null | 0 | 0 | null | null | null | null | WINDOWS-1250 | Python | false | false | 494 | py | # 2016.11.19 19:49:21 Střední Evropa (běžný čas)
# Embedded file name: scripts/client/gui/Scaleform/daapi/settings/__init__.py
class BUTTON_LINKAGES(object):
BUTTON_BLACK = 'ButtonBlack'
BUTTON_RED = 'ButtonRed'
BUTTON_NORMAL = 'ButtonNormal'
# okay decompyling c:\Users\PC\wotsources\files\originals\res\s... | [
"info@webium.sk"
] | info@webium.sk |
6796605bf711e664aab04f2e9738a8154d274c11 | 5851bfab6684e49c808bcc724437a601107d17a8 | /cnova_api_lojista_v2/model/TicketStatus.py | daf055a860a0629849121960142851503970bdd2 | [] | no_license | ballke-dev/ViaVarejoSDK | 18e3224a9d1faebfa00803dd41d4e70fe392e51e | 90875423e4a5382faac926036de3cbc243a5c97f | refs/heads/master | 2020-04-17T17:57:12.034404 | 2019-01-21T11:55:24 | 2019-01-21T11:55:24 | 166,805,846 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 476 | py | #!/usr/bin/env python
class TicketStatus:
def __init__(self):
self.swaggerTypes = {
'ticket_status': 'str'
}
self.attributeMap = {
'ticket_status': 'ticketStatus'
}
#Novo status desejado do Ticket. Fechado <st... | [
"ti2@ballke.com.br"
] | ti2@ballke.com.br |
642d2eb59544d36fa4596d933f4e433abb98af6d | 3fc3c2707a4618f81cc308a15abeea11c3d0101e | /neural_network.py | 2b4d75fd9475c6b50031f7e57050c11e451422b3 | [] | no_license | Louis-Saglio/Connect4 | 734fdfcf8c68f452db03f7f91827a02a8ae9049a | bbf7538ebd03c9b3be996b915546951cde15d209 | refs/heads/master | 2023-07-15T09:27:31.423144 | 2021-09-04T19:35:05 | 2021-09-04T19:35:05 | 385,692,431 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,784 | py | from __future__ import annotations
import random
from typing import Iterable
import numpy as np
def sigmoid(array):
return 1/(1+np.exp(-array))
def relu(array):
return np.maximum(0, array)
class NeuralNetwork:
def __init__(self, input_size: int, layers_size: Iterable[int]):
self.layers = []
... | [
"louis.saglio@sfr.fr"
] | louis.saglio@sfr.fr |
2aad9c9d2778ce0c1f3d99e883d37d9ca996fc08 | f1cb02057956e12c352a8df4ad935d56cb2426d5 | /LeetCode/1928. Minimum Cost to Reach Destination in Time/Solution.py | cdd9f72047c03732266a7e77c97893623d41598b | [] | no_license | nhatsmrt/AlgorithmPractice | 191a6d816d98342d723e2ab740e9a7ac7beac4ac | f27ba208b97ed2d92b4c059848cc60f6b90ce75e | refs/heads/master | 2023-06-10T18:28:45.876046 | 2023-05-26T07:46:42 | 2023-05-26T07:47:10 | 147,932,664 | 15 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,575 | py | class Solution:
def minCost(self, maxTime: int, edges: List[List[int]], passingFees: List[int]) -> int:
# Time Complexity: O(V' + E')
# where V' = maxTime x V, and E' = maxTime x E
# Space Complexity: O(V')
# Construct an augmented graph, whose nodes are (node, time)
# and i... | [
"nphamcs@gmail.com"
] | nphamcs@gmail.com |
20ddf389d4c12ba065c2b68d113e910ddc480ebe | cc411c170c37397480d4ec2e290ffb66a57fefb5 | /src/cfd/demo.py | 984aeeffd301e42e563e1fd44d6e3fe3ea3d1ebe | [] | no_license | chenmaoshan/xmw_seismic | 0ab8c6672e4cced75c4dc3341a7d4c679146fa48 | c45d6795d74f657aba1ca7e291f533e9a21341ab | refs/heads/master | 2021-01-17T08:43:46.733403 | 2016-07-08T15:26:18 | 2016-07-08T15:26:18 | 62,929,578 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 29,766 | py | """
Demonstrate simultaneous multiple-well ties
Author: Xinming Wu, Colorado School of Mines
Version: 2016.05.11
"""
from utils import *
setupForSubset("cfd2007")
s1,s2,s3 = getSamplings()
n1,n2,n3 = s1.count,s2.count,s3.count
d1,d2,d3 = s1.delta,s2.delta,s3.delta
f1,f2,f3 = s1.first,s2.first,s3.first
# Names and des... | [
"xinwucwp@gmail.com"
] | xinwucwp@gmail.com |
bcf5a5f0b3af1dc80a764845106316ccaa7392fc | 3939c1fc17fc5ad77b28c3da3b18ac3aeafc0fa8 | /neighbour/migrations/0009_auto_20210726_2340.py | f38682d79eed9cc3ad4caba45fb83916b383eb65 | [
"MIT"
] | permissive | ObadiaH123/neighbour | 1bca1ba7e9ecbc330f4c8b9337b05bdba1b0e1da | e30085236ddb2048f751400805784241eec44d9f | refs/heads/master | 2023-06-27T19:08:46.054615 | 2021-07-26T22:34:30 | 2021-07-26T22:34:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 950 | py | # Generated by Django 3.1.7 on 2021-07-26 20:40
import cloudinary.models
from django.db import migrations, models
import django.utils.timezone
class Migration(migrations.Migration):
dependencies = [
('neighbour', '0008_auto_20210726_2221'),
]
operations = [
migrations.CreateModel(
... | [
"ronohkelvin99@gmail.com"
] | ronohkelvin99@gmail.com |
0db13be2b7ae900ae80f4762afe3fbd131182e3b | d4a4b42fc7ce9f88f241f884d1b8f9f227c92b33 | /examples/neq/loopunreach300/loopunreach300_1.py | da08d79d547395ba0c9a2859fa093f5647795141 | [] | no_license | Client-Specific-Equivalence-Checker/CLEVER | a5cabcc6a127c80b7e8193f885bca8e5cf64b204 | 44a9027be67dcd94e0b4a30eb3cb5e7aeb0ab163 | refs/heads/master | 2022-02-13T04:23:29.654278 | 2019-02-06T17:10:48 | 2019-02-06T17:10:48 | 114,670,863 | 5 | 5 | null | null | null | null | UTF-8 | Python | false | false | 216 | py | def lib(a, b):
c = 0
if a < 0:
i = 1
while i <= a:
c += b
i += 1
return c
def loopunreach300(x):
if x >= 273 and x < 327:
return lib(x, 300)
return 0
| [
"fmorarocha@gmail.com"
] | fmorarocha@gmail.com |
c1c6117e9c201aada7c6b6791f1d3dbfd252238e | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /N5JhvabK6DTD5t6gS_15.py | f6baaf716744a9bad75f70f01fe4407df3c0b5a2 | [] | no_license | daniel-reich/ubiquitous-fiesta | 26e80f0082f8589e51d359ce7953117a3da7d38c | 9af2700dbe59284f5697e612491499841a6c126f | refs/heads/master | 2023-04-05T06:40:37.328213 | 2021-04-06T20:17:44 | 2021-04-06T20:17:44 | 355,318,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 231 | py |
import string
def markdown(symb):
def func(sentence, word):
return ' '.join([symb+w+symb if w.lower().translate(str.maketrans('', '', string.punctuation)) == word.lower() else w for w in sentence.split(' ')])
return func
| [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
2a06d8169969719f56f6c0c63ed1ca5648bc7854 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02959/s028217014.py | 14c06dba3326e2507be8d625653369abe7bef9af | [] | 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 | 257 | py | N = int(input())
A = list(map(int, input().split()))
B = list(map(int, input().split()))
ans = 0
for i in range(N+1):
if i >= 1:
p = min(A[i], B[i-1])
ans += p
A[i] -= p
if i < N:
p = min(A[i], B[i])
ans += p
B[i] -= p
print(ans) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
2c80a63e8968899fc9de36d41cef0107e0562572 | ee4db47ccecd23559b3b6f3fce1822c9e5982a56 | /Build Chatbots/ChunkVerbPhrase.py | a1dfee73cfa4abcf2db55bb45550a1293288388d | [] | no_license | meoclark/Data-Science-DropBox | d51e5da75569626affc89fdcca1975bed15422fd | 5f365cedc8d0a780abeb4e595cd0d90113a75d9d | refs/heads/master | 2022-10-30T08:43:22.502408 | 2020-06-16T19:45:05 | 2020-06-16T19:45:05 | 265,558,242 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 791 | py | from nltk import RegexpParser
from pos_tagged_oz import pos_tagged_oz
from vp_chunk_counter import vp_chunk_counter
# define verb phrase chunk grammar here
chunk_grammar = "VP: {<VB.*><DT>?<JJ>*<NN><RB.?>?}"
#chunk_grammar = "VP: {<DT>?<JJ>*<NN><VB.*><RB.?>?}"
# create RegexpParser object here
chunk_parser = RegexpPa... | [
"oluchukwuegbo@gmail.com"
] | oluchukwuegbo@gmail.com |
0e4aaae67303557ecd576180c2a28859058ec15e | 0cb38adedbe3a5192076de420e1aa0fd10ae3311 | /returned_items/urls.py | 6100088eab96c5170acd4668bd1525d0d7c18808 | [] | no_license | fogcitymarathoner/rma | 73ada816b98f068b6c00b2e1fcf39461259453fa | 133d6026f99820d0702f0578b8a3b4574671f888 | refs/heads/master | 2021-01-11T00:32:47.797673 | 2016-10-10T18:34:54 | 2016-10-10T18:35:11 | 70,516,821 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 970 | py | from django.conf.urls import patterns, include, url
from returned_items.views import index
from returned_items.views import move_items
from returned_items.views import ReturnedItemCreateView
from returned_items.views import ReturnedItemUpdateView
from returned_items.views import ReturnedItemDeleteView
from returned_ite... | [
"marc@fogtest.com"
] | marc@fogtest.com |
4ecdb5f970f3ac775afb8cb4bbf3db8350538c59 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/nouns/_tb.py | d43de208d660ddec2bbd491b4d2a8ecbfce158ae | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 343 | py |
#calss header
class _TB():
def __init__(self,):
self.name = "TB"
self.definitions = [u'abbreviation for tuberculosis ', u'written abbreviation for terabyte ']
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.specie = 'nouns'
def run(self, obj1 = [], obj2 = []):
... | [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
fd357530dfd0ab6b2300482b496fcc90edc6ae81 | 1491bc7c6c1a8e025f84e7ceaeb389f109b3d37c | /Eapp/modals/product.py | e04b28b97bcb9f6ce8df74429d25969063f27c9c | [] | no_license | Taraltinu/Second-project | 47516dbce9255e0b0a9452accce178e7a2a9ec55 | e052457afb1559b572331f5e62840f78d5b07b07 | refs/heads/master | 2022-12-29T18:15:19.251268 | 2020-10-02T17:40:20 | 2020-10-02T17:40:20 | 300,688,143 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 786 | py | from django.db import models
from django.contrib.auth.models import User
from Eapp.modals.category import CategoryModel
class ProductModel(models.Model):
seller = models.ForeignKey(User,on_delete=models.CASCADE)
product_name = models.CharField(max_length=250)
product_Cat = models.ForeignKey(CategoryMode... | [
"tinu1316@gmail.com"
] | tinu1316@gmail.com |
6abdc35a733f4947b3ff36352ec09f4ccde3faeb | a1cbf221a6befed3891d75c69e2a546effd2499d | /payroll/models.py | 12882e648d086a944362c8df582726c35acbbf23 | [] | no_license | Coder339/V-django-newCRM | 9a93efbb252ba814241076ece17088af8dd15935 | 2182266204f54d301b7c087a99627d441e00fe54 | refs/heads/master | 2022-12-24T15:12:47.081949 | 2020-08-24T12:15:13 | 2020-08-24T12:15:13 | 247,274,031 | 0 | 2 | null | 2022-12-08T04:19:35 | 2020-03-14T12:39:13 | Python | UTF-8 | Python | false | false | 2,281 | py | from django.db import models
from authentication.models import EmployeeProfile
class EmployeePackage(models.Model): # to be send
# months = (
# ('JAN','JAN'),('FEB','FEB'),('MAR','MAR'),('APR','APR'),
# ('MAY','MAY'),('JUN','JUN'),('JULY','JULY'),('AUG','AUG'),
# ('SEP','SEP'),('OCT',... | [
"amanpreet.leanvia@gmail.com"
] | amanpreet.leanvia@gmail.com |
9d52bc51d884bd0bd422bf9fc7be75aa01e5af19 | 1538320b5419539879c76f923206753fc0746b4a | /proteus/tests/SWFlows/dam3Bumps.py | dc0732ed3e744a0559ff73677e586e6efa738a5a | [
"MIT"
] | permissive | dloney/proteus | 829169228221e2ca8bffad2c518d8d858da6af48 | 615cdf57f765b2e99bac904bb6eb71e39e58ab56 | refs/heads/master | 2020-06-30T00:05:53.816553 | 2019-08-01T07:41:15 | 2019-08-01T07:41:15 | 200,662,475 | 0 | 0 | MIT | 2019-08-05T13:38:18 | 2019-08-05T13:38:17 | null | UTF-8 | Python | false | false | 3,481 | py | from __future__ import division
from builtins import object
from past.utils import old_div
from proteus import *
from proteus.default_p import *
from proteus.mprans import SW2D
from proteus.mprans import SW2DCV
from proteus.Domain import RectangularDomain
import numpy as np
from proteus import (Domain, Context,
... | [
"cekees@gmail.com"
] | cekees@gmail.com |
05c338ef5fbde0852cfd563177a583f42c08bcd4 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/380/usersdata/308/85637/submittedfiles/testes.py | b124f9a58f1dbe095c14a4e1a353c59ee692bba3 | [] | 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 | 514 | py | # -*- coding: utf-8 -*-
#COMECE AQUI ABAIXO
n = int(input("Digite a quantidade de vezes: "))
for i in range (0, n+1, 1):
print('Olá mundo')
"""
visual = [[' ',' ', ' '], [' ', ' ',' '], [' ', ' ', ' ']]
for i in range(0, 10, 1):
a = str(input('Selecione a posição: '))
if i%2==0:
visual[int(a[0])][in... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
cc2cdf4e5ff6349c49bcbc52e970a773bbc84e63 | 8c917dc4810e2dddf7d3902146280a67412c65ea | /v_7/NISS/shamil_v3/fuel_management/wizard/fuel_slice_report.py | 65ec4386e868bb9ae0da2e2aba4d26c188ce0b93 | [] | no_license | musabahmed/baba | d0906e03c1bbd222d3950f521533f3874434b993 | 0b997095c260d58b026440967fea3a202bef7efb | refs/heads/master | 2021-10-09T02:37:32.458269 | 2018-12-20T06:00:00 | 2018-12-20T06:00:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,407 | py | # -*- coding: utf-8 -*-
##############################################################################
#
# NCTR, Nile Center for Technology Research
# Copyright (C) 2016-2017 NCTR (<http://www.nctr.sd>).
#
##############################################################################
from osv import fields, osv... | [
"bakry@exp-sa.com"
] | bakry@exp-sa.com |
86ca81dd397b3c5d0ab8e21eff47015b9d41eb08 | 629090051b975b5814b4b48e2cb2c784fa6705e4 | /ossdbtoolsservice/disaster_recovery/contracts/backup.py | 6ca7b7260d3d8d9ca0367e9874f41da05f6cd99f | [
"MIT"
] | permissive | microsoft/pgtoolsservice | 3d3597821c7cae1d216436d4f8143929e2c8a82a | 24a048226f7f30c775bbcbab462d499a465be5da | refs/heads/master | 2023-08-28T12:55:47.817628 | 2023-08-25T22:47:53 | 2023-08-25T22:47:53 | 80,681,087 | 68 | 35 | NOASSERTION | 2023-09-13T21:46:55 | 2017-02-02T01:00:33 | Python | UTF-8 | Python | false | false | 14,673 | py | # --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------... | [
"noreply@github.com"
] | microsoft.noreply@github.com |
94b322e6f3fc89092bd1e3c38f205837a8b9d53b | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/otherforms/_sundowns.py | e5bbcdb49d823bb48b71f7c94f658c3e6ef988cd | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 226 | py |
#calss header
class _SUNDOWNS():
def __init__(self,):
self.name = "SUNDOWNS"
self.definitions = sundown
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.basic = ['sundown']
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
3899deffeb67cb5493f8f39cb8bfcdca7f348d1b | 1ed4e96c20da03fbd3aa4f18d4b004a59d8f89e5 | /Repo/venv/Lib/site-packages/torch/optim/lbfgs.py | 171d214d6abc7cc4e02bd5840c49216bdc2d65d6 | [] | no_license | donhatkha/CS2225.CH1501 | eebc854864dc6fe72a3650f640787de11d4e82b7 | 19d4dd3b11f8c9560d0d0a93882298637cacdc80 | refs/heads/master | 2023-07-19T13:27:17.862158 | 2021-02-08T07:19:05 | 2021-02-08T07:19:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,724 | py | import torch
from functools import reduce
from .optimizer import Optimizer
def _cubic_interpolate(x1, f1, g1, x2, f2, g2, bounds=None):
# ported from https://github.com/torch/optim/blob/master/polyinterp.lua
# Compute bounds of interpolation area
if bounds is not None:
xmin_bound, xmax_bo... | [
"59596379+khado2359@users.noreply.github.com"
] | 59596379+khado2359@users.noreply.github.com |
a9cb150fe24e6d478a7062b79a9926b1c2c792b8 | bd6fd6bb82bf3179a4571c7a2ca3a030f5684c5c | /mundo3-EstruturasCompostas/081-ExtraindoDadosDeUmaLista.py | bad61e35e4d14143637f0d9408833e3179835979 | [
"MIT"
] | permissive | jonasht/CursoEmVideo-CursoDePython3 | b3e70cea1df9f33f409c4c680761abe5e7b9e739 | a1bbf1fe4226b1828213742ee5a440278d903fd1 | refs/heads/master | 2023-08-27T12:12:38.103023 | 2021-10-29T19:05:01 | 2021-10-29T19:05:01 | 276,724,139 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 571 | py | lista = []
print('type s to exit\ndigite s para sair')
while 1:
num = input('N: ')
if num == 's': break
else: lista.append(int(num))
lista.reverse()
print('lista reversa', lista)
print('foram digitados', len(lista), ' numeros')
print('numero 5 foi digitado' if 5 in lista else 'sem 5')
#Exercício Python 0... | [
"jhenriquet@outlook.com.br"
] | jhenriquet@outlook.com.br |
1e3ed3f3fd8d5b2c94d100304c32df7f9ac83452 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/72/usersdata/212/39304/submittedfiles/tomadas.py | ef757877e9f3f17521a58f298b71fb444b7e3dab | [] | 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 | 377 | py | # -*- coding: utf-8 -*-
import math
#COMECE SEU CODIGO AQUI
t1=int(input('digite o número de tomadas da régua do integrante 1:'))
t2=int(input('digite o número de tomadas da régua do integrante 2:'))
t3=int(input('digite o número de tomadas da régua do integrante 3:'))
t4=int(input('digite o número de tomadas da régua... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
a3fa214725782f13d23188575d3fb3f8a5983142 | c554fc8b12fb893b6782d64e7d7f856742297ca8 | /scripts/draw_tmaps.py | 37b2d17f7d2ad203cf6004b1db7669e031825cf5 | [
"MIT"
] | permissive | AdamWu1979/dwilib | 81d3f746d6575cb77831e36f15404447d536f5f9 | 6655eea21037977ed528b992b3a8471393127b77 | refs/heads/master | 2022-02-15T12:12:04.734050 | 2019-08-28T10:39:18 | 2019-08-28T10:39:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,308 | py | #!/usr/bin/python3
"""Draw some texture maps with focus on lesions."""
# This is for the MedPhys texturepaper.
import argparse
import logging
import numpy as np
import dwi.files
import dwi.mask
import dwi.patient
import dwi.paths
import dwi.plot
from dwi.types import ImageMode, Path, TextureSpec
import dwi.util
... | [
"jupito@iki.fi"
] | jupito@iki.fi |
1024a326cae1b15ef82188bdaf3d59809f4f0394 | 77353aa80cefff9856c423acdb1313f6f7239bc4 | /dictionary/dict_count_item.py | d5935917c6b69b866c300d20b63c95f6c0688023 | [] | no_license | upasek/python-learning | ed21bc555bd684fbb432d852a274dc5a8fff38de | 026c73fe8369254bffb3f78cfd80fb152648cffa | refs/heads/master | 2023-03-18T19:34:11.297607 | 2021-03-12T17:51:54 | 2021-03-12T17:51:54 | 284,996,974 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 346 | py | #Write a Python program to count number of items in a dictionary value that is a list.
dict = {'Alex': ['subj1', 'subj2', 'subj3'], 'David': ['subj1', 'subj2', 'subj3']}
print("Original dictionary :",dict)
count = 0
for values in dict.values():
count += len(values)
print("Number of items in a dictionary value th... | [
"kvsupase@gmail.com"
] | kvsupase@gmail.com |
e8e60e921e6a70c094582e28cb843115b58d78a3 | a7901e211b781e55eec8e2ecb1a7ad3b37b82fa8 | /datapackage_pipelines_budgetkey/pipelines/budgetkey/elasticsearch/activity_fetch_extra_data.py | e32cf6f4c3be7c9be95015ad6762010446924dc9 | [] | no_license | inbalme/budgetkey-data-pipelines | 1c3a23d666e4643e6f4e5399a76625ab6129b2e1 | 6b219f4286d29fcaa1ac539187606c77cb397344 | refs/heads/master | 2023-01-09T08:06:39.939480 | 2020-10-20T18:24:13 | 2020-10-20T18:24:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,193 | py | import os
from decimal import Decimal
import json
from sqlalchemy import create_engine
from sqlalchemy.sql import text
import dataflows as DF
engine = None
MAPPINGS = {
'activities/שירות חברתי/משרד החינוך/תכנית קדם עתידים': [
dict(code='0020460242', year=2019, part=100)
],
'activities/שירות חב... | [
"adam.kariv@gmail.com"
] | adam.kariv@gmail.com |
5e6c0294c8f9f716e5347736ce9e9ba02b6e07b6 | 09e7c3aab7cd34c6caf701ec7224581f68c246b0 | /zkmanager/filters.py | 2743c148ad9fe1cd62398f3656f2e839414f9f73 | [] | no_license | itimor/kaoqin | d383430b29b67152469cf652690aa1ad4fd3c4eb | 8113f393c5375295494890a5d17fea2d47b30599 | refs/heads/master | 2021-04-15T03:49:19.965242 | 2018-05-03T05:38:24 | 2018-05-03T05:38:24 | 126,454,042 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 359 | py | # -*- coding: utf-8 -*-
# author: itimor
from .models import Punch
from django_filters import rest_framework as filters
from django_filters import DateFromToRangeFilter
class PunchFilter(filters.FilterSet):
create_date = DateFromToRangeFilter()
class Meta:
model = Punch
fields =... | [
"kevin@126.com"
] | kevin@126.com |
a5e568a740bc7c1933dca314a4f0ac92f09cf855 | 68ee9027d4f780e1e5248a661ccf08427ff8d106 | /extra/unused/pxfuncs.py | 4a2657a3ec4be89c1f254a3781efc76635d6c2af | [
"MIT"
] | permissive | whyjz/CARST | 87fb9a6a62d39fd742bb140bddcb95a2c15a144c | 4fc48374f159e197fa5a9dbf8a867b0a8e0aad3b | refs/heads/master | 2023-05-26T20:27:38.105623 | 2023-04-16T06:34:44 | 2023-04-16T06:34:44 | 58,771,687 | 17 | 4 | MIT | 2021-03-10T01:26:04 | 2016-05-13T20:54:42 | Python | UTF-8 | Python | false | false | 42,430 | py | #!/usr/bin/python
# Author: Andrew Kenneth Melkonian
# All rights reserved
#import calendar;
#import fileinput;
from makeAzo import *;
import math;
import numpy;
import os;
#from pxfuncs import *;
import pylab;
import re;
import scipy;
import shutil;
import subprocess;
#import sys;
#import time;
def adjustPhase... | [
"wz278@cornell.edu"
] | wz278@cornell.edu |
f72f5f0f60b80e25ca104b1a21939043d23487b3 | 133e8c9df1d1725d7d34ea4317ae3a15e26e6c66 | /Selenium/QQ/robot.py | 28a88422bf9a82f59aec6f1ccfb9be5e67243631 | [
"Apache-2.0"
] | permissive | 425776024/Learn | dfa8b53233f019b77b7537cc340fce2a81ff4c3b | 3990e75b469225ba7b430539ef9a16abe89eb863 | refs/heads/master | 2022-12-01T06:46:49.674609 | 2020-06-01T08:17:08 | 2020-06-01T08:17:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,793 | py | import os
import cv2
import time
import uuid
import traceback
from selenium import webdriver
from pyvirtualdisplay import Display
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.firefox.firefox_binary import FirefoxBinary
from selenium.webdriver.common.desired_capabilities import Desire... | [
"cheng.yang@salezoom.io"
] | cheng.yang@salezoom.io |
7bd962e4114a78c5aa9d3f87534c875261886917 | 13f33343e701fbfb4306c6835c24877e81dba12e | /backend/epic_kidz_3889/settings.py | 0e8f599bee2d8fae95582265c65cfb7a1d4d5a77 | [] | no_license | crowdbotics-apps/epic-kidz-3889 | 386f8b944b2c31438a6e5ae277c866ac0eb87921 | 64ced56bcffe1fa0e7d4d17de7b60e26ad1a7f91 | refs/heads/master | 2022-12-12T21:07:15.985176 | 2019-05-27T02:47:13 | 2019-05-27T02:47:13 | 188,760,034 | 0 | 0 | null | 2022-12-03T11:08:16 | 2019-05-27T02:47:10 | JavaScript | UTF-8 | Python | false | false | 4,752 | py | """
Django settings for epic_kidz_3889 project.
Generated by 'django-admin startproject' using Django 1.11.16.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.11/ref/settings/
"""
i... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
db04a848e4b84dbd17930a7c2f34b562f45e428c | b13a1a96e9f1dddb3a3a44b636ca939b85962899 | /LevelFive/template_project/app_template/views.py | 76972ad28a08916481e475c5e6e8f27f5d09afed | [] | no_license | jspw/Django-Test | f266331c73c34b83b1189811a163567b6b4cc60b | 13a6d0146c9c78f8fa03c269e4546b5bbdb146bd | refs/heads/master | 2021-03-23T17:50:21.764636 | 2020-10-18T09:21:23 | 2020-10-18T09:21:23 | 247,472,132 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,923 | py | from django.shortcuts import render
from app_template.forms import UserProfileInfoForm,UserForm
from django.core import validators
from django import forms
#
from django.contrib.auth import authenticate,login,logout
from django.http import HttpResponseRedirect,HttpResponse
# from django.core.urlresolvers import reve... | [
"mhshifat757@gmail.com"
] | mhshifat757@gmail.com |
66a1617fd944f84ba67cfff2a6a9a9b743131465 | 786027545626c24486753351d6e19093b261cd7d | /ghidra9.2.1_pyi/ghidra/util/state/FunctionAnalyzer.pyi | 8ef7e534299b278b57e27b3297e6d55cfed74262 | [
"MIT"
] | permissive | kohnakagawa/ghidra_scripts | 51cede1874ef2b1fed901b802316449b4bf25661 | 5afed1234a7266c0624ec445133280993077c376 | refs/heads/main | 2023-03-25T08:25:16.842142 | 2021-03-18T13:31:40 | 2021-03-18T13:31:40 | 338,577,905 | 14 | 1 | null | null | null | null | UTF-8 | Python | false | false | 6,284 | pyi | from typing import List
import ghidra.program.model.address
import ghidra.program.model.pcode
import ghidra.program.model.symbol
import ghidra.util.state
import ghidra.util.task
import java.lang
class FunctionAnalyzer(object):
def dataReference(self, op: ghidra.program.model.pcode.PcodeOp, instrOpIndex: i... | [
"tsunekou1019@gmail.com"
] | tsunekou1019@gmail.com |
3fb9d6f478528789a6f211aea81aac01dd9a6fe1 | b7eb41b068614e04f38a969326f43d8f8119cb05 | /897__increasing_order_search_tree.py | 82e08117e36c06d7d355bd81c0c774907a48e697 | [] | no_license | YI-DING/daily-leetcode | ddfb6985bf5014886cba8d6219da243e0aa28d71 | a6d3898d900f2063302dc1ffc3dafd61eefa79b7 | refs/heads/master | 2020-05-19T06:07:21.557077 | 2019-07-19T16:31:46 | 2019-07-19T16:31:46 | 184,866,366 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,475 | py | # Definition for a binary tree node.
# class TreeNode:
# def __init__(self, x):
# self.val = x
# self.left = None
# self.right = None
class Solution:
def increasingBST(self, root: TreeNode):
print(f'{root.val} is what we are examining. Its left is {None if not root.left... | [
"yiding1@uchicago.edu"
] | yiding1@uchicago.edu |
05d317851bc0a3a46cc148bd399a725b7cd60215 | ace30d0a4b1452171123c46eb0f917e106a70225 | /filesystems/vnx_rootfs_lxc_ubuntu64-16.04-v025-openstack-compute/rootfs/usr/lib/python2.7/dist-packages/neutron/plugins/ml2/ovo_rpc.py | ec7d84d2665cd4773f8a00eb74734e919975206b | [
"Python-2.0"
] | permissive | juancarlosdiaztorres/Ansible-OpenStack | e98aa8c1c59b0c0040c05df292964520dd796f71 | c01951b33e278de9e769c2d0609c0be61d2cb26b | refs/heads/master | 2022-11-21T18:08:21.948330 | 2018-10-15T11:39:20 | 2018-10-15T11:39:20 | 152,568,204 | 0 | 3 | null | 2022-11-19T17:38:49 | 2018-10-11T09:45:48 | Python | UTF-8 | Python | false | false | 6,363 | 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
# distributed under ... | [
"jcdiaztorres96@gmail.com"
] | jcdiaztorres96@gmail.com |
04054e64b66cefba84ca094869841104b29f8fdb | 14d8adc86adc14c1d64a5550b1bbd5663e984545 | /链条/reverse_linked_list.py | 2a4d84cb454b930a26ef0694c55d5098cf8338e6 | [] | no_license | milllu/leetcode | e1b68ef7774cc0c1b49325ec1b87280d27570d94 | 458b3e72cd82a203b10bdca747c4c3ba85708f75 | refs/heads/master | 2020-03-30T23:41:46.180308 | 2018-10-11T01:08:31 | 2018-10-11T01:08:31 | 151,709,941 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 785 | py | """
反转一个单链表。
示例:
输入: 1->2->3->4->5->NULL
输出: 5->4->3->2->1->NULL
"""
# Definition for singly-linked list.
# class ListNode(object):
# def __init__(self, x):
# self.val = x
# self.next = None
class Solution(object):
def reverseList(self, head):
"""
迭代
"""
res = ... | [
"3351440959@qq.com"
] | 3351440959@qq.com |
6b78d7a78da0104dfaf801b0a3d4c88df879eda6 | d68766d43725c4ba69b34a408f6aff9868eb0fc7 | /minimal_mypy_import/__init__.py | ac6633309814c3bd808d3a526d310f2b07505cad | [] | no_license | saulshanabrook/minimal_mypy_import | f04e347519ccef405c58f5c89106a58dd630f16a | a7f27c751ae9f1062ae926bf0d71aabad083eea8 | refs/heads/master | 2020-04-21T22:37:47.124351 | 2019-02-09T22:04:32 | 2019-02-09T22:04:32 | 169,918,459 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 26 | py | from .a import *
a_value
| [
"s.shanabrook@gmail.com"
] | s.shanabrook@gmail.com |
cb474534c6555535ead6b6ef459893799675e547 | 463c053bcf3f4a7337b634890720ea9467f14c87 | /python/ray/tune/tests/test_trial_executor_inheritance.py | 0ced35aff17c1af561f0108d7e295cdf648f720c | [
"BSD-3-Clause",
"MIT",
"Apache-2.0"
] | permissive | pdames/ray | e8faddc4440976211a6bcead8f8b6e62c1dcda01 | 918d3601c6519d333f10910dc75eb549cbb82afa | refs/heads/master | 2023-01-23T06:11:11.723212 | 2022-05-06T22:55:59 | 2022-05-06T22:55:59 | 245,515,407 | 1 | 1 | Apache-2.0 | 2023-01-14T08:02:21 | 2020-03-06T20:59:04 | Python | UTF-8 | Python | false | false | 1,700 | py | import unittest
class TestTrialExecutorInheritance(unittest.TestCase):
def test_direct_inheritance_not_ok(self):
from ray.tune.trial_executor import TrialExecutor
msg = (
"_MyTrialExecutor inherits from TrialExecutor, which is being "
"deprecated. "
"RFC: http... | [
"noreply@github.com"
] | pdames.noreply@github.com |
3508427df51b9b799e24ea86dfef9e9c939e0510 | 9d5c9d9373002ab4ed1b493136517e8b4ab160e5 | /saas/backend/apps/role/filters.py | f626398fc2b1aff6f2a1f372c0d99597f01bf2aa | [
"MIT"
] | permissive | robert871126/bk-iam-saas | f8299bb632fc853ef0131d445f84c6084fc84aba | 33c8f4ffe8697081abcfc5771b98a88c0578059f | refs/heads/master | 2023-08-23T19:23:01.987394 | 2021-10-22T09:45:28 | 2021-10-22T09:45:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,213 | py | # -*- coding: utf-8 -*-
"""
TencentBlueKing is pleased to support the open source community by making 蓝鲸智云-权限中心(BlueKing-IAM) available.
Copyright (C) 2017-2021 THL A29 Limited, a Tencent company. All rights reserved.
Licensed under the MIT License (the "License"); you may not use this file except in compliance with th... | [
"zhu327@gmail.com"
] | zhu327@gmail.com |
1beee7a48a2061f0237ff1299fb0a91d09dcbc80 | c85aede0797e73dd719646a0f7671594b0d4e4e9 | /sbin/coveragerc_manager.py | 9292485b449a1bbfe9fe5d1bd624d95e573d4a61 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | mtiid/putil | c0493535ed5ee7694546ee9193cad0a764c440fc | a99c84ee781aa9eb6e45272f95b82ac35648ba4b | refs/heads/master | 2021-01-18T09:05:50.437577 | 2016-01-20T16:01:12 | 2016-01-20T16:01:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,345 | py | #!/usr/bin/env python
# coveragerc_manager.py
# Copyright (c) 2013-2016 Pablo Acosta-Serafini
# See LICENSE for details
# pylint: disable=C0111
# Standard library imports
from __future__ import print_function
import os
import sys
###
# Global variables
###
SUBMODULES_LIST = ['plot', 'pcsv']
###
# Functions
###
def... | [
"pmasdev@gmail.com"
] | pmasdev@gmail.com |
02819e4ca0fafdcbf588137cb8f2f08f7272563b | f8da830331428a8e1bbeadf23345f79f1750bd98 | /msgraph-cli-extensions/beta/financials_beta/azext_financials_beta/vendored_sdks/financials/operations/_financial_company_purchase_invoice_vendor_operations.py | 4c592ab1e83677392acd8cf0a20451bc68ba9288 | [
"MIT"
] | permissive | ezkemboi/msgraph-cli | e023e1b7589461a738e42cbad691d9a0216b0779 | 2ceeb27acabf7cfa219c8a20238d8c7411b9e782 | refs/heads/main | 2023-02-12T13:45:03.402672 | 2021-01-07T11:33:54 | 2021-01-07T11:33:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 55,208 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | [
"japhethobalak@gmail.com"
] | japhethobalak@gmail.com |
696ddcda78f4d5e20f42851f7bec6f166409b249 | c127946e261f7a1739f998bab5126825bb3c1399 | /osext/test/__main__.py | 6fa395430c40f7e4a7a30d3674dedfcae7be7c5b | [
"MIT"
] | permissive | Tatsh/osext | a9763aa87d357f90169a2595caff01616558d066 | d375990eee1b66fd2cd7bdde0d9313e2340eee3c | refs/heads/master | 2020-03-30T13:11:08.709090 | 2015-01-09T20:32:16 | 2015-01-09T20:32:16 | 28,982,701 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 233 | py | from osext.test import argparse_actions_test, pushdtest
import unittest
for test in (pushdtest, argparse_actions_test):
suite = unittest.TestLoader().loadTestsFromModule(test)
unittest.TextTestRunner(verbosity=2).run(suite)
| [
"audvare@gmail.com"
] | audvare@gmail.com |
08a264c9708f0dee374d65a90f0a2fc828e0b770 | 8afe87c4e26e08b1dc24090a39fbedd7fa84210a | /sdnmpi/topology.py | 61ce97e6272298ba52328eaa2955b933ae0546c1 | [] | no_license | keichi/sdn-mpi-router | ca1cc128fa4fff11b61851d34fae0b21ed4b65ab | b20be81d39363cc28a9a0a5826a4450f9946d9d9 | refs/heads/master | 2023-01-10T00:29:03.959435 | 2016-02-09T01:03:07 | 2016-02-09T01:03:07 | 56,743,429 | 1 | 0 | null | 2022-12-26T20:03:41 | 2016-04-21T04:50:56 | Python | UTF-8 | Python | false | false | 7,216 | py | from ryu.base import app_manager
from ryu.controller.handler import MAIN_DISPATCHER, set_ev_cls
from ryu.controller.event import EventRequestBase, EventReplyBase
from ryu.topology import event, switches
from ryu.controller import ofp_event
from ryu.lib.mac import haddr_to_bin, BROADCAST_STR, BROADCAST
from ryu.lib.pack... | [
"keichi.t@me.com"
] | keichi.t@me.com |
609168d13020a0c809176ddcb3d7c7dc19e27ab8 | 5c6a8cd15955f7ca5f822b17b56c37c36ca4144d | /networks/cnn_pathnet.py | b180e502fad140c272e3f43dd85b7daf79977d15 | [] | no_license | xavoliva/CAT | 57e48eb958d10f17071797645f4836ed33ae74a7 | 5f32ada1eed4bf4de4488840bd3ae7163e9dd22b | refs/heads/main | 2023-01-22T16:06:40.200292 | 2020-12-08T17:38:30 | 2020-12-08T17:38:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,851 | py | import sys
import torch
import numpy as np
import utils
class Net(torch.nn.Module):
def __init__(self,inputsize,taskcla,nhid,args=0):
super(Net,self).__init__()
ncha,size,_=inputsize
self.taskcla=taskcla
self.ntasks = len(self.taskcla)
"""
# Config of Sec 2.5 in t... | [
"15011700342Xuan"
] | 15011700342Xuan |
f8eb3d68f2d770a036a28684ef69c41aea31c054 | cd876d32aa66112892dc9550837ad843e3e03afd | /env_carzone/Lib/site-packages/django/core/management/commands/createcachetable.py | a12ceb3830b2b8047936d89d1ddde2574dd92d98 | [
"BSD-3-Clause"
] | permissive | viplavdube/Car-Yard-App | 7665b7e6e54f3b0e4a4da563151f85d65c225cef | 65381a50f828e80f31d25d4f35e497f51c2d224d | refs/heads/master | 2023-04-19T03:49:18.991604 | 2021-04-27T17:51:10 | 2021-04-27T17:51:10 | 349,094,392 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,591 | py | from django.conf import settings
from django.core.cache import caches
from django.core.cache.backends.db import BaseDatabaseCache
from django.core.management.base import BaseCommand, CommandError
from django.db import (
DEFAULT_DB_ALIAS,
connections,
models,
router,
transaction,
)
from django.db.uti... | [
"viplav45@gmail.com"
] | viplav45@gmail.com |
91aac8630957a94f0230668552c2631f5d11b48e | c999562ec8e3ee6952e82a0b20626301f00a6e02 | /manage.py | ad701bdeffeac39576301824e2b17a2145b0f201 | [] | no_license | shobhit1215/Calorie_Tracker | 5e3a4e1c326b912588d48fc7be871634be7ee242 | 175788d2febe90c473c1a5321e02c2bbd8a3e4cb | refs/heads/main | 2023-06-03T06:20:16.955410 | 2021-06-16T04:39:25 | 2021-06-16T04:39:25 | 377,042,289 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 669 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
"""Run administrative tasks."""
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'calorie_meter.settings')
try:
from django.core.management import execute_from_command_line
excep... | [
"imshobhit.sb@gmail.com"
] | imshobhit.sb@gmail.com |
574e2bed1cd21db75ad93f26f6a4d3ef13c1fe29 | e04dbc32247accf073e3089ed4013427ad182c7c | /ABC170/ABC170E.py | 1c214969afcd03042c9fd6af3e054cba88882ed0 | [] | no_license | twobooks/atcoder_training | 9deb237aed7d9de573c1134a858e96243fb73ca0 | aa81799ec87cc9c9d76de85c55e99ad5fa7676b5 | refs/heads/master | 2021-10-28T06:33:19.459975 | 2021-10-20T14:16:57 | 2021-10-20T14:16:57 | 233,233,854 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,115 | py | # from math import factorial,sqrt,ceil #,gcd
# from itertools import permutations,combinations,combinations_with_replacement
# from collections import deque,Counter
# from bisect import bisect_left
# from heapq import heappush,heappop
# from numba import njit
# from functools import lru_cache # 簡単メモ化 @lru_cache(maxsize... | [
"twobookscom@gmail.com"
] | twobookscom@gmail.com |
87c35588bb28261faa867bd3a2eda366f4c81ac3 | 8dfa4c0626768e27fe474cfdfbdb9d7a1b14fa56 | /test.py | 2d9a37fe208e3a8a5c525017ebfec150893325ae | [] | no_license | MilanTagline2021/selenium | 7207a5c6e87b9b677120ac7289b1752df4d90d73 | 7f174592a1f99d0938b1bc52eaec4b79c2b2c5ab | refs/heads/master | 2023-08-27T19:31:04.752040 | 2021-10-12T04:16:37 | 2021-10-12T04:16:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,053 | py | import time
import unittest
from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
from selenium.webdriver.support.ui import Select
from selenium.webdriver import ActionChains
d... | [
"milans.tagline@gmail.com"
] | milans.tagline@gmail.com |
9e6391d2d0d23d34224673b134a21aec53a8b1e5 | 781e2692049e87a4256320c76e82a19be257a05d | /all_data/exercism_data/python/atbash-cipher/732cc5e5db4b4586a3bb7cffc064fcb3.py | ba9e3ac694f7d1f30189a304637ff582b21d8087 | [] | no_license | itsolutionscorp/AutoStyle-Clustering | 54bde86fe6dbad35b568b38cfcb14c5ffaab51b0 | be0e2f635a7558f56c61bc0b36c6146b01d1e6e6 | refs/heads/master | 2020-12-11T07:27:19.291038 | 2016-03-16T03:18:00 | 2016-03-16T03:18:42 | 59,454,921 | 4 | 0 | null | 2016-05-23T05:40:56 | 2016-05-23T05:40:56 | null | UTF-8 | Python | false | false | 580 | py | from string import (maketrans, translate, ascii_letters, ascii_lowercase,
punctuation)
atbash_cipher_trans = maketrans(ascii_letters, ascii_lowercase[::-1] * 2)
def encode(msg):
# Puts message in lower case, translates it
# and removes the whitespace and punctuation.
msg = ms... | [
"rrc@berkeley.edu"
] | rrc@berkeley.edu |
3c4e22716c2bd1accf2c11a6210fd7e12e7a2bcc | 64cd09628f599fe18bf38528309349f7ac0df71e | /Introduction/02_Introduction_numpy/10 Numpy functions/expand_dims.py | c146781e6b7b57ef3ce33ab609f0f9f00c00b100 | [] | no_license | JunyoungJang/Python | 958c057b2fd37c03876d3cf566ee27ee637bb020 | 76d4cd441deff8061e10608e0848360bc4f34490 | refs/heads/master | 2021-01-19T21:54:42.208469 | 2020-02-14T09:54:17 | 2020-02-14T09:54:17 | 83,768,220 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 168 | py | import numpy as np
a = np.array([1,2])
print a.shape # (2,)
b = np.expand_dims(a, axis=0)
print b.shape # (1, 2)
c = np.expand_dims(a, axis=1)
print c.shape # (2, 1) | [
"lakino@yonsei.ac.kr"
] | lakino@yonsei.ac.kr |
b341250e3493fa69cf8be8acb62e237338fb0222 | 687928e5bc8d5cf68d543005bb24c862460edcfc | /nssrc/com/citrix/netscaler/nitro/resource/config/appfw/appfwfieldtype.py | a7eeddfd3107010e03dfb92f96518c642a302ad5 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference",
"Python-2.0"
] | permissive | mbs91/nitro | c6c81665d6abd04de8b9f09554e5e8e541f4a2b8 | be74e1e177f5c205c16126bc9b023f2348788409 | refs/heads/master | 2021-05-29T19:24:04.520762 | 2015-06-26T02:03:09 | 2015-06-26T02:03:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,384 | py | #
# Copyright (c) 2008-2015 Citrix 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 applicable l... | [
"bensassimaha@gmail.com"
] | bensassimaha@gmail.com |
1457d81c66584c121fee49988a618a9ad2e4f5dd | 22749c6a569661b2637233cc0aebdc1701033b26 | /src/python/pants/engine/target.py | e52a74a90bd5e2e1ca8ff6ba66c765ecffe03ec5 | [
"Apache-2.0"
] | permissive | akk5597/pants | 2eceb226c39b8ef7f603dfa96684b7522e1a9065 | 7ad295f71d2990eebbbe9c778bbf70f7d9e66584 | refs/heads/main | 2023-08-27T02:40:54.753545 | 2021-11-10T03:42:18 | 2021-11-10T03:42:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 91,783 | py | # Copyright 2020 Pants project contributors (see CONTRIBUTORS.md).
# Licensed under the Apache License, Version 2.0 (see LICENSE).
from __future__ import annotations
import collections.abc
import itertools
import logging
import os.path
from abc import ABC, ABCMeta, abstractmethod
from collections import deque
from da... | [
"noreply@github.com"
] | akk5597.noreply@github.com |
cb3f6f45cc319404055a4824bd21acb67168c260 | 6def5721d5c7c6a9cde32a19c58ec129d2c7c6b2 | /Week_3/socket.py | ef9afd70ca80bee32b0565b18c6528d74234e23e | [
"MIT"
] | permissive | Sid2697/Python-to-access-web-data | 9d054a7e5c6d2300ec3652f367f85e355a4702c5 | 74b61339cc9060263e3f2d22e9ed90281276ab50 | refs/heads/master | 2021-05-01T17:42:27.894592 | 2018-02-12T11:36:52 | 2018-02-12T11:36:52 | 120,995,037 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 331 | py | import socket
mysock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
mysock.connect(('data.pr4e.org', 80))
cmd = 'GET http://data.pr4e.org/intro-short.txt HTTP/1.0\r\n\r\n'.encode()
mysock.send(cmd)
while True:
data = mysock.recv(512)
if (len(data) < 1):
break
print(data.decode(),end='')
myso... | [
"noreply@github.com"
] | Sid2697.noreply@github.com |
d6e26c537e5b3b7cc83493da35a8217f0921a9d8 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02995/s716079488.py | cb1f2ffe4fe50d37290c4cfff656f2583b7f8e62 | [] | 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 | 167 | py | import math
a, b, c, d = map(int, input().split())
m = b//c + (-a//c)
n = b//d + (-a//d)
g = c * d // math.gcd(c, d)
p = b//g + (-a//g)
print(b-a+1-(m+1+n+1-(p+1))) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
d536705ebdb63f9f5fae564e726d40728978b813 | 2e682fd72e3feaa70e3f7bf2a3b83c50d783ec02 | /PyTorch/built-in/cv/detection/SSD_for_PyTorch/tests/test_utils/test_assigner.py | 5520ef27b71306926c228341d365453d24b4dc28 | [
"GPL-1.0-or-later",
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | Ascend/ModelZoo-PyTorch | 4c89414b9e2582cef9926d4670108a090c839d2d | 92acc188d3a0f634de58463b6676e70df83ef808 | refs/heads/master | 2023-07-19T12:40:00.512853 | 2023-07-17T02:48:18 | 2023-07-17T02:48:18 | 483,502,469 | 23 | 6 | Apache-2.0 | 2022-10-15T09:29:12 | 2022-04-20T04:11:18 | Python | UTF-8 | Python | false | false | 23,656 | py | # Copyright 2022 Huawei Technologies Co., Ltd.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed... | [
"chenyong84@huawei.com"
] | chenyong84@huawei.com |
a8c3c9123e66db1f7cb29f5b7e0b69ccab0c0c28 | b0210f0320e47e3384c43c56e686844081374c6d | /tyk2_input/L31/31-46_wat/run.py | 03974c39662571c19c71e562bc7471b25406fdc3 | [] | no_license | taisung/MSU_Rutgers-GTI | 2531a9346e82131a38dfdef727380f1c100f5def | 3914a07a6be9af6d3d968288b9d4c3049fc10066 | refs/heads/master | 2021-09-14T05:45:38.906495 | 2018-05-08T17:42:16 | 2018-05-08T17:42:16 | 114,943,688 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,083 | py | import os
dir = '/mnt/scratch/songlin3/run/tyk2/L31/wat/ti_one-step/31_46/'
filesdir = dir + 'files/'
temp_equiin = filesdir + 'temp_equi.in'
temp_prodin = filesdir + 'temp_prod.in'
temp_pbs = filesdir + 'temp.pbs'
lambd = [ 0.00922, 0.04794, 0.11505, 0.20634, 0.31608, 0.43738, 0.56262, 0.68392, 0.79366, 0.88495, 0.9... | [
"songlin3@msu.edu"
] | songlin3@msu.edu |
f2c37c2304e5871aa5b2d791a0ac8b0d94018f0b | 4ae775089e78aa6362545ae1f3b1beeb9dbba748 | /offset-game/envs/base_env.py | b546f66d8ed51eec258014406aa613eb4ab30903 | [
"MIT"
] | permissive | JosephDistefano/offset-human-interface | 9a3da267becaf1a2c2fafa20fd48684726e97c2c | 88ba05554c289f2c966f663b11930f37fc938a83 | refs/heads/master | 2020-09-14T17:52:53.198045 | 2019-11-19T01:51:42 | 2019-11-19T01:51:42 | 223,205,679 | 0 | 0 | MIT | 2019-11-21T15:31:41 | 2019-11-21T15:31:40 | null | UTF-8 | Python | false | false | 2,448 | py | import math
import numpy as np
import pybullet as p
import pybullet_data
import pybullet_utils.bullet_client as bc
class BaseEnv(object):
def __init__(self, config):
self.config = config
# Usage mode
if config['simulation']['headless']:
self.p = bc.BulletClient(connection_mod... | [
"hemanthm2277@gmail.com"
] | hemanthm2277@gmail.com |
d32ed17280ed2172a5ce234c61ad8de6e9779b1b | b0c8bdf5f8045ca5c0322d8e1ca685d3c0d4944a | /download_soundcloud_playlist_to_wav.py | 544d86183ba1a30ba6945c2895977c04a0630028 | [
"MIT"
] | permissive | 255BITS/DCGAN-tensorflow | 428525fbd59f90f4ff54482f43e981ba82b72629 | 684a24da17d1359606d05a36b97c82a33b3fa4da | refs/heads/master | 2020-12-13T23:30:32.728196 | 2016-03-31T06:42:17 | 2016-03-31T06:42:17 | 54,516,766 | 0 | 0 | null | 2016-03-22T23:50:15 | 2016-03-22T23:50:15 | null | UTF-8 | Python | false | false | 537 | py | import os
import sys
import glob
import time
def do(command):
print("Running " + command)
print(os.system(command))
i = 0
if(len(sys.argv) > 1):
do("cd training/to_process && scdl -c -a -l "+sys.argv[1])
for file in glob.glob('training/to_process/**/*.mp3'):
wav_out = 'training/wav'+str(i)+'-... | [
"mikkel@255bits.com"
] | mikkel@255bits.com |
2ffd314ff2cf58180b30587ccf95ac157863664e | 618f7f381ef68cf6b4384ad2a544202f0f4d286e | /Plugins/ChatLikeCMD/ChatLikeCMD.py | bec65332609d49bcedccbb4344171b9b49370934 | [
"MIT"
] | permissive | Lao-Tzu-Taoism/EasierLife | bc7b4bed8cc79f9e348a34d13827b4e53d274ac8 | 1a6bb691f99c6075e92cf1e566529b9074f3edab | refs/heads/master | 2021-08-29T23:27:43.248207 | 2017-12-15T08:26:38 | 2017-12-15T08:26:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,974 | py | #coding=utf8
import thread, time, sys, os, platform
try:
import termios, tty
termios.tcgetattr, termios.tcsetattr
import threading
OS = 'Linux'
except (ImportError, AttributeError):
try:
import msvcrt
OS = 'Windows'
except ImportError:
raise Exception('Mac i... | [
"i7meavnktqegm1b@qq.com"
] | i7meavnktqegm1b@qq.com |
e9d20af65be43f8bf9ec9fb4ea874002c82bf2e2 | 22b906ca2dab20d8b88e58a5bc862ddc15960f05 | /src/python/app/controllers/sample_controller.py | 951eda108863580add8f7a796efcc5e2b11da0e3 | [] | no_license | itsumura-h/speed_test | 3705d7e587362f14ed7cbc33e0e5b6463e3d94da | 57c999e7833cfc1e3abb48bf46e77df48732e1a1 | refs/heads/master | 2022-12-15T13:11:15.125585 | 2019-09-03T14:14:53 | 2019-09-03T14:14:53 | 204,280,512 | 0 | 0 | null | 2022-04-22T22:15:41 | 2019-08-25T10:42:30 | Python | UTF-8 | Python | false | false | 268 | py | from django.http.response import JsonResponse
from ..services.domain_services.sample_service import SampleService
class SampleController:
def fib(self, num):
new_num = int(num)
data = SampleService().fib(new_num)
return JsonResponse(data)
| [
"dumblepy@gmail.com"
] | dumblepy@gmail.com |
f9529e9350359629ea1dd8c1d73962ffbc7413c0 | d930edd227427e03931a9d4be2997bfaea8cb3a6 | /unit_10/talk.py | 6e153a52f84943baf0c4afb8752eed45e8b71b7f | [] | no_license | mikeselezniov/python-21v | 2d95c5a87c9d1e9371577127d4dfbc03a1b77d7f | 8c5753ccdc07492ea9cf46acac643c9e9674d4c7 | refs/heads/master | 2020-12-28T04:38:54.456159 | 2015-07-05T19:06:24 | 2015-07-05T19:06:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 856 | py | # -*- coding:utf-8 -*-
# функция в Python'e может быть определена… внутри другой функции!
def talk():
# Внутри определения функции "talk" мы можем определить другую...
def whisper(word="да"):
return word.lower()+"...";
# ... и сразу же её использовать!
print whisper()
# Теперь, КАЖДЫЙ Р... | [
"janusnic@gmail.com"
] | janusnic@gmail.com |
05a625ebd18925ce38954b5a657ed70269ef23fd | f7c82725ae83896385109ffa1476eb98e411b13e | /setup.py | cee2f8da328b2ae8f2a02d7dd08b28374400aa18 | [
"MIT"
] | permissive | myousefi2016/vtkInterface | f173fda29648ee28fb8e0ba39d3724a6d4ef6205 | 3c18f4a5fe25b67f918809fd0589b80bbf3bff1d | refs/heads/master | 2021-06-20T03:41:42.666862 | 2017-08-04T12:44:52 | 2017-08-04T12:44:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,742 | py | """
Installation file for python vtkInterface module
"""
from setuptools import setup
import os
from io import open as io_open
package_name = 'vtkInterface'
# Get version from tqdm/_version.py
__version__ = None
version_file = os.path.join(os.path.dirname(__file__), package_name, '_version.py')
with io_... | [
"akascap@gmail.com"
] | akascap@gmail.com |
deda3cc678f53a878cd15528c706ad51a410a119 | eb9f655206c43c12b497c667ba56a0d358b6bc3a | /python/testData/copyPaste/Indent7709.dst.py | 3080b8a3c10dc880fcbc82fe92a34df9b8dd2b6c | [
"Apache-2.0"
] | permissive | JetBrains/intellij-community | 2ed226e200ecc17c037dcddd4a006de56cd43941 | 05dbd4575d01a213f3f4d69aa4968473f2536142 | refs/heads/master | 2023-09-03T17:06:37.560889 | 2023-09-03T11:51:00 | 2023-09-03T12:12:27 | 2,489,216 | 16,288 | 6,635 | Apache-2.0 | 2023-09-12T07:41:58 | 2011-09-30T13:33:05 | null | UTF-8 | Python | false | false | 21 | py | a = 1
<caret>
b = 2
| [
"Ekaterina.Tuzova@jetbrains.com"
] | Ekaterina.Tuzova@jetbrains.com |
be70b94decd74015163cc6d0d9c11389e0116e44 | 0bb1d74bac2872b76fb7ae5bfb40e36ecac7cfa2 | /py/funcion.py | 5e4a47cda6a6e1d6f2f02f8dbe8ac97b457d41d4 | [] | no_license | antalcides/migit | 965349fa53f4e2c99419fc15ae2e3c2e6c9cc3cf | e9b611e1ba91a63d52b14efb9963eec7f4c20d75 | refs/heads/master | 2021-07-13T04:59:38.732109 | 2020-09-05T03:39:24 | 2020-09-05T03:39:24 | 74,794,023 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 233 | py | # -*- coding: utf-8 -*-
"""
Created on Fri Oct 16 16:09:00 2015
@author: antalcides
"""
from math import* # in main
def f(x):
e = exp(-0.1*x)
s = sin(6*pi*x)
return e*s # in main
x = 2
y = f(x)
print 'f(%g)=%g' % (x, y) | [
"antalcides@gmail.com"
] | antalcides@gmail.com |
7fa8c4b0e4c9540f36fbf566ad99d48e913d1c26 | 885feec0699da96fcfa1e118adffbc94b4f31fd1 | /src/tbm_utils/path.py | dc75a16cd2a6428dad91d7e6043bacbfaaea12e7 | [
"MIT"
] | permissive | ddboline/tbm-utils | d48bfdb98737a4a45def81143bf13fa11f00f6d3 | 7f77bc25651079bc8884de1cfcb45e28d672fb16 | refs/heads/master | 2020-08-29T11:43:49.571204 | 2019-10-16T20:05:55 | 2019-10-16T20:05:55 | 218,022,543 | 0 | 0 | MIT | 2019-10-28T10:34:34 | 2019-10-28T10:34:34 | null | UTF-8 | Python | false | false | 664 | py | __all__ = [
'UNIX_PATH_RE',
'convert_unix_path'
]
import re
from pathlib import Path
UNIX_PATH_RE = re.compile(r'(/(cygdrive/)?)(.*)')
"""Regex pattern matching UNIX-style filepaths."""
def convert_unix_path(filepath):
"""Convert Unix filepath string from Unix to Windows format.
Parameters:
filepath (str, o... | [
"mail@thebigmunch.me"
] | mail@thebigmunch.me |
6bbd6c656d8161a8b8be3d02844a8220aa9d5b9f | 077c91b9d5cb1a6a724da47067483c622ce64be6 | /onos_id_bug_fixed_ids_file_blackbox_mcs2/interreplay_10_l_3/replay_config.py | 82595f379760b10766728d353bd972790e96556f | [] | no_license | Spencerx/experiments | 0edd16398725f6fd9365ddbb1b773942e4878369 | aaa98b0f67b0d0c0c826b8a1565916bf97ae3179 | refs/heads/master | 2020-04-03T10:11:40.671606 | 2014-06-11T23:55:11 | 2014-06-11T23:55:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,585 | py |
from config.experiment_config_lib import ControllerConfig
from sts.topology import *
from sts.control_flow.replayer import Replayer
from sts.simulation_state import SimulationConfig
from sts.input_traces.input_logger import InputLogger
simulation_config = SimulationConfig(controller_configs=[ControllerConfig(start_cm... | [
"a.hassany@gmail.com"
] | a.hassany@gmail.com |
522ca045013c70ddf30198f05b93ecc0ea09d608 | 33524b5c049f934ce27fbf046db95799ac003385 | /Дистанционная_подготовка/Программирование_на_python/11_Арифметика/zadacha_G.py | dab1de67ae08f8d442d48ab597d13da15fe422b7 | [] | no_license | mgbo/My_Exercise | 07b5f696d383b3b160262c5978ad645b46244b70 | 53fb175836717493e2c813ecb45c5d5e9d28dd23 | refs/heads/master | 2022-12-24T14:11:02.271443 | 2020-10-04T04:44:38 | 2020-10-04T04:44:38 | 291,413,440 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 289 | py |
'''
Сумма двух квадратов
'''
n = int(input())
def square(n):
return n*n
for i in range(1, 20):
x1 = square(i)
if x1 > n:
break
for j in range(1, 20):
value = x1 + square(j)
if value == n:
print (i,j)
elif value > n:
print ('Imposible')
break
| [
"mgbo433@gmail.com"
] | mgbo433@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.