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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
bd78505b0cfbc80351ec303ebf0a8a3b65befbfb | 75d318b2f125ec1d08195f12f8cc3870b3aa3056 | /tests/importer/test_springer_dojson.py | 9842bcd989109623adacf2194c5674ceffdd1352 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | topless/cds-books | d496913da2fdbcc42bf7bc7987fe60f80d6af35a | e587fec6c191fddebce3c3f9f61aae625db31254 | refs/heads/master | 2023-01-24T19:19:25.923716 | 2020-11-25T13:20:48 | 2020-11-26T07:49:11 | 257,366,115 | 0 | 0 | MIT | 2020-04-20T18:12:40 | 2020-04-20T18:12:39 | null | UTF-8 | Python | false | false | 3,655 | py | import os
from cds_dojson.marc21.utils import create_record
from cds_ils.importer.providers.springer.springer import model
marcxml = (
"""<collection xmlns="http://www.loc.gov/MARC21/slim">"""
"""<record>{0}</record></collection>"""
)
def check_transformation(marcxml_body, json_body):
"""Check transfor... | [
"38131488+kprzerwa@users.noreply.github.com"
] | 38131488+kprzerwa@users.noreply.github.com |
affe4860d2c5900e87b8d5ca7f0a608119533a85 | 46ac0965941d06fde419a6f216db2a653a245dbd | /sdks/python/test/test_DistributionGroupUserGetResponse.py | f382222ea7f9f529b0ed88420c679534d6be68a3 | [
"MIT",
"Unlicense"
] | permissive | b3nab/appcenter-sdks | 11f0bab00d020abb30ee951f7656a3d7ed783eac | bcc19c998b5f648a147f0d6a593dd0324e2ab1ea | refs/heads/master | 2022-01-27T15:06:07.202852 | 2019-05-19T00:12:43 | 2019-05-19T00:12:43 | 187,386,747 | 0 | 3 | MIT | 2022-01-22T07:57:59 | 2019-05-18T17:29:21 | Python | UTF-8 | Python | false | false | 1,066 | py | # coding: utf-8
"""
App Center Client
Microsoft Visual Studio App Center API # noqa: E501
OpenAPI spec version: preview
Contact: benedetto.abbenanti@gmail.com
Project Repository: https://github.com/b3nab/appcenter-sdks
"""
from __future__ import absolute_import
import unittest
import appcente... | [
"b3nab@users.noreply.github.com"
] | b3nab@users.noreply.github.com |
60c9114f98ec2437c232bbed5e91ca263ce743d2 | a6432a0443b0f32b68baa4632397bc83abb0dfd4 | /ugali/scratch/PlotValidation.py | 764c76c047d5df17b9d1da20201c34dfbead05b6 | [
"MIT"
] | permissive | norashipp/ugali | d795c016e52d8c9639b214bd83ca610d052cb10f | 812bd9222737b9ffd36cfc2f2d058d948fc0522a | refs/heads/master | 2021-01-19T17:06:08.030637 | 2016-07-08T14:14:57 | 2016-07-08T14:14:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,430 | py | #!/usr/bin/env python
from os.path import splitext,basename
import pylab as plt
import numpy as np
if __name__ == "__main__":
from optparse import OptionParser
usage = "Usage: %prog [options] input"
description = "python script"
parser = OptionParser(usage=usage,description=description)
(opts, a... | [
"kadrlica@fnal.gov"
] | kadrlica@fnal.gov |
3166b0f241324912b43ecb7470e3cd06ddf95705 | 7d5641f61e9317984dc656ae43658f9f09a3d2c5 | /72.py | bec0164cd0e98e23a3695b3ae6615592e2bebae6 | [
"MIT"
] | permissive | r9y9/nlp100 | 51ec6b1a13128a53eeda9ff110d122211f0fceba | 391ca6c4fb8afc074ed825404d4ad4efc4467f05 | refs/heads/master | 2021-01-25T09:00:54.021853 | 2017-06-09T17:32:52 | 2017-06-09T17:32:52 | 93,770,527 | 18 | 8 | null | null | null | null | UTF-8 | Python | false | false | 1,709 | py | from stemming.porter2 import stem
import sys
import numpy as np
vocab = {}
with open("sentiment.txt") as f:
lines = f.readlines()
for line in lines:
line = line[:-1].lower()
words = line.split(" ")[1:]
words = list(map(stem, words))
for word in words:
if word in voca... | [
"zryuichi@gmail.com"
] | zryuichi@gmail.com |
603f0a1c5a4fbe205d9f940387c07dbb827e0755 | d780df6e068ab8a0f8007acb68bc88554a9d5b50 | /python/g1/messaging/tests/test_servers.py | 712fd78186bd0542a9ffc468cae2f57cbe9277a7 | [
"MIT"
] | permissive | clchiou/garage | ed3d314ceea487b46568c14b51e96b990a50ed6f | 1d72863d3a5f5d620b170f4dd36f605e6b72054f | refs/heads/master | 2023-08-27T13:57:14.498182 | 2023-08-15T07:09:57 | 2023-08-15T19:53:52 | 32,647,497 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,217 | py | import unittest
import unittest.mock
import uuid
from g1.asyncs import kernels
from g1.asyncs.bases import tasks
from g1.messaging import reqrep
from g1.messaging.reqrep import clients
from g1.messaging.reqrep import servers
from g1.messaging.wiredata import jsons
class InvalidRequestError(Exception):
pass
c... | [
"clchiou@gmail.com"
] | clchiou@gmail.com |
e17e6c8ecbe5505cbafb9db285c12c2de832cc48 | 62def70e2d802375b1ad28b0ac85fee2010ee0a9 | /flask/server/app2-BBIO.py | 6f563a5c2b1d5a7dd221b84ec1d0f31098dcec96 | [] | no_license | MarkAYoder/BeagleBoard-exercises | c48028b6e919d8c04dedfd2040a133c760f0f567 | 2fab7c7f7aa09bf101168dfb279e690bc43a6514 | refs/heads/master | 2023-07-22T08:06:19.482358 | 2023-07-12T19:24:51 | 2023-07-12T19:24:51 | 5,111,513 | 48 | 41 | null | 2021-07-29T18:02:29 | 2012-07-19T15:07:14 | JavaScript | UTF-8 | Python | false | false | 668 | py | #!/usr/bin/env python3
# From: https://towardsdatascience.com/python-webserver-with-flask-and-raspberry-pi-398423cc6f5d
'''
Raspberry Pi GPIO Status and Control
'''
import Adafruit_BBIO.GPIO as GPIO
from flask import Flask, render_template
app = Flask(__name__)
button = "P9_11"
buttonSts = GPIO.LOW
# Set button as ... | [
"Mark.A.Yoder@Rose-Hulman.edu"
] | Mark.A.Yoder@Rose-Hulman.edu |
346179e283175d7b6d77bf0f1c6eb55cd7503df9 | acb8e84e3b9c987fcab341f799f41d5a5ec4d587 | /langs/2/fc8.py | 4b833c69ff0ca02bdfddeccb42554670e3953c1a | [] | 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 |
233f0d40f307d09932e85c5edd77a34aeee76a96 | d0efa2026b7ed22ff4f9aa76c27ae2474c30f26d | /test/test_footer.py | 3535a50683a08f16c069762bca0020279cf550fd | [] | no_license | begum-akbay/Python | 2075650e0ddbf1c51823ebd749742646bf221603 | fe8b47e29aae609b7510af2d21e53b8a575857d8 | refs/heads/master | 2023-03-28T00:11:00.997194 | 2021-03-25T16:38:17 | 2021-03-25T16:38:17 | 351,499,957 | 0 | 0 | null | 2021-03-25T16:38:17 | 2021-03-25T16:15:16 | Python | UTF-8 | Python | false | false | 1,022 | py | # coding: utf-8
"""
Payment Gateway API Specification.
The documentation here is designed to provide all of the technical guidance required to consume and integrate with our APIs for payment processing. To learn more about our APIs please visit https://docs.firstdata.com/org/gateway. # noqa: E501
The ve... | [
"emargules@bluepay.com"
] | emargules@bluepay.com |
65fc44fd2cb52915fa25c53464419caacae2ac56 | 2b6fa34dac030ec1f2918b1377956bf791219d22 | /leetcode/medium/search-a-2d-matrix.py | 172983011abfef17fc0165532c2d6bed9454af6f | [
"MIT"
] | permissive | rainzhop/cumulus-tank | aa13fb8f14c27893838a67d2eb69fdd2ac3d6450 | 09ebc7858ea53630e30606945adfea856a80faa3 | refs/heads/master | 2020-06-06T23:24:37.498966 | 2020-01-06T09:52:16 | 2020-01-06T09:52:16 | 192,874,778 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,074 | py | # https://leetcode.com/problems/search-a-2d-matrix/
#
# Write an efficient algorithm that searches for a value in an m x n matrix.
# This matrix has the following properties:
#
# Integers in each row are sorted from left to right.
# The first integer of each row is greater than the last integer of the previous row.
#
#... | [
"rainzhop@gmail.com"
] | rainzhop@gmail.com |
87565ac9145b88260426230d9548b3bfc3db3b37 | edbb63696580638af0084ee318d2c9bc9e8c7e79 | /text_wc_2.py | 8cd11af58e5aef643a13ed0776bd13036ca2bad0 | [] | no_license | awaddell77/Scrapers | fef34e34b8e039f4992497cae75135cdb57b2581 | 0a36fb2c99f2d7b90533834b29c0ba8f27c13a85 | refs/heads/master | 2020-05-21T13:44:06.524855 | 2020-03-16T23:00:45 | 2020-03-16T23:00:45 | 62,753,048 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 483 | py | def text_wc(x,output='listoutput.txt', directory = 'C:\\Users\\Owner\\', v = 0):#takes list writes to text
n_l = x
name = directory + output
with open(name, 'w') as wf:
for i in range(0, len(n_l)):
if v != 0:
print(n_l[i])
new = n_l[i]
wf.w... | [
"waddell.andrew@gmail.com"
] | waddell.andrew@gmail.com |
7b296749e9a4ef07b6b90aa915c8778c1bd21a26 | 9f951479d5eda96e7fecbbbd0b3b7e4f5e83360d | /webtest/全栈课程代码学员版/Level2Code/Level2Code/lesson6URL/LessonCode/firstsite/firstapp/views.py | 8f9b6e20978ccae64d476c71c7351b075f6ff647 | [] | no_license | lianbo2006/Project | 44c5b6fcab4fe31b80bfff467b3e0e31fd2da8ba | 5d13923817a1d4cffe7d4abbb5873277ce28bb87 | refs/heads/master | 2021-01-11T18:24:47.597849 | 2017-04-25T03:44:47 | 2017-04-25T03:44:47 | 79,539,300 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,635 | py | from django.shortcuts import render, HttpResponse, redirect
from firstapp.models import Aritcle, Comment
from django.template import Context, Template
from firstapp.form import CommentForm
def index(request):
print(request)
print('==='*30)
print(dir(request))
print('==='*30)
print(type(request))
... | [
"513748889@qq.com"
] | 513748889@qq.com |
77080eb1b0672d0647b0341846a888bc476e3a0a | d18d7f86a1e701caada063d09ee00fe08a95e353 | /test/kapp/sys/ys/calc/calc_mpi_openmp_stategen/intel/runtest.py | 047f4715d694e464ec32c28be77152923524d7a0 | [
"BSD-3-Clause"
] | permissive | E3SM-Project/KGen | 2e097b2ef979b42b094089f337d49240838aa13b | c0035c93d21286da6519a74ff527b6a009781de4 | refs/heads/master | 2021-02-14T00:01:10.939108 | 2020-06-15T18:49:58 | 2020-06-15T18:49:58 | 244,747,822 | 3 | 0 | NOASSERTION | 2020-03-03T21:43:57 | 2020-03-03T21:43:56 | null | UTF-8 | Python | false | false | 1,790 | py | import sys
from kapp_sys_ys_calc_calc_mpi_openmp_stategen_test import KAppSysYSCalcCOSTest
import time
class Test(KAppSysYSCalcCOSTest):
def generate(self, myname, result):
workdir = result['mkdir_task']['workdir']
tmpsrc = result['download_task']['tmpsrc']
srcfile = '%s/bridge_mod.F90'%t... | [
"youngsun@ucar.edu"
] | youngsun@ucar.edu |
67281564909457dc70bb7145aa9e43a1ee83e5a7 | d1bca991935232035b5a373e7b9199a73182fa3f | /0x09-utf8_validation/0-validate_utf8.py | 68d494f4f9fb3e74f157dc50405c7d48f6fa0897 | [] | no_license | felipeserna/holbertonschool-interview | 49ab15a099f5bf29e19d33e4ef738df4fd99d446 | d42763f7a82e551c9effcf2f0e9cf60f959559cd | refs/heads/main | 2023-07-14T08:28:52.457126 | 2021-08-26T16:14:50 | 2021-08-26T16:14:50 | 319,788,365 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 339 | py | #!/usr/bin/python3
"""
Determines if a given data set represents a valid UTF-8 encoding
"""
def validUTF8(data):
"""
Return: True if data is a valid UTF-8 encoding, else return False
"""
try:
bytes(number & 0xFF for number in data).decode()
return True
except UnicodeDecodeError:
... | [
"feserna86@gmail.com"
] | feserna86@gmail.com |
a51a1efb119669822af956ee1e58c9ac91795d6f | c16ea32a4cddb6b63ad3bacce3c6db0259d2bacd | /google/ads/googleads/v5/googleads-py/google/ads/googleads/v5/services/services/shopping_performance_view_service/client.py | 4acced62df938f070c61171501f714223c0d70f9 | [
"Apache-2.0"
] | permissive | dizcology/googleapis-gen | 74a72b655fba2565233e5a289cfaea6dc7b91e1a | 478f36572d7bcf1dc66038d0e76b9b3fa2abae63 | refs/heads/master | 2023-06-04T15:51:18.380826 | 2021-06-16T20:42:38 | 2021-06-16T20:42:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,536 | py | # -*- coding: utf-8 -*-
# Copyright 2020 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... | [
"bazel-bot-development[bot]@users.noreply.github.com"
] | bazel-bot-development[bot]@users.noreply.github.com |
55c9cd30b623e0a078ad1d54a62099bb5c2984c0 | 80edae503da03b3350fe458553860ea44a1a74dd | /backend/tasker_business/migrations/0001_initial.py | 1becb346c243dade1b06e637926556b3c9397ec7 | [] | no_license | crowdbotics-apps/our-protection-26031 | e4059bd616eff63f0d67ec869b49b9f6530fd2e6 | 7dbeef820b127efdf5c2a87d47a934b06c0ba87e | refs/heads/master | 2023-04-15T14:38:17.312365 | 2021-04-29T22:45:17 | 2021-04-29T22:45:17 | 362,954,302 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,277 | py | # Generated by Django 2.2.19 on 2021-04-29 22:42
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
("task_category", "0001_initial"),
("task_profile", "0001_initial"),
]
operations = [
... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
4a97cb424cf33bfbbc4a39b5a6c9b7b242fab2db | 272032c7604e0e9627f4cf42967aa3230a8facbc | /lect7dendropy/pars.py | c5af0dc1b8f6ece33455f2e44c9d8135f55c2585 | [] | no_license | mtholder/eebprogramming | 78ebaf5ca2163cc7da977b411087bf164fce6059 | b7478643b4cb3ce91c299753eb346626640c3378 | refs/heads/master | 2021-01-01T18:34:27.502098 | 2010-05-06T16:26:50 | 2010-05-06T16:26:50 | 493,047 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 4,577 | py | #!/usr/bin/env python
import sys, logging
from dendropy.utility.messaging import get_logger
_LOG = get_logger('sankoff')
from dendropy import DataSet
_DEBUGGING = True
verbose = False
def get_min_edge_costs(cost_row, costs_for_one_child):
min_score = cost_row[0] + costs_for_one_child[0]
for i in xrange(1, le... | [
"mtholder@gmail.com"
] | mtholder@gmail.com |
541d1592cf2ae6cebfff7a7b20f3462f581214cc | 30fb85c14e18956fe5690f4224e55d3fa34651ce | /ml_neural_networks_pybrain_hidden_layers.py | 74540ed511b295a20436d4a35911af2b1d035e41 | [] | no_license | TiagoArrazi/Semantix-Internship | 1d39cc310b75be3b395d3a7df1dde7543fa4db84 | 87f93db82e9594ce0911b4e6264a4981e4f0ac14 | refs/heads/master | 2020-04-02T22:53:25.937133 | 2020-01-17T12:58:40 | 2020-01-17T12:58:40 | 154,848,050 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,010 | py | #! /usr/bin/env python3
# Classification with PyBrain - 3D XOR
from pybrain.datasets import SupervisedDataSet
from pybrain.tools.shortcuts import buildNetwork
from pybrain.supervised import BackpropTrainer
dataset = SupervisedDataSet(3, 1)
dataset.addSample([0, 0, 0], [0])
dataset.addSample([0, 0, 1], [1])
dataset.a... | [
"tiago_arrazi98@outlook.com"
] | tiago_arrazi98@outlook.com |
0cf22fe3aa57e99a7fbc6dc4b130ea7deb1c47ac | 23e844d75a0214ed5ad48885d008e23516383610 | /toughio/_utils/relative_permeability/_fatt_klikoff.py | 4ce84e87d5101ff08fb032c15715b9972bbe9848 | [
"MIT"
] | permissive | codacy-badger/toughio | dc1b138a5defa7b00b0833526d67c372d9b6d1f5 | 8d4f3d8408d5507a83f65e7f393b13be08d42aca | refs/heads/master | 2021-02-04T21:32:49.721095 | 2020-02-28T07:49:33 | 2020-02-28T07:49:33 | 243,711,552 | 0 | 0 | MIT | 2020-02-28T08:15:36 | 2020-02-28T08:15:36 | null | UTF-8 | Python | false | false | 920 | py | from ._base import BaseRelativePermeability
__all__ = [
"FattKlikoff",
]
class FattKlikoff(BaseRelativePermeability):
"""Fatt and Klikoff's function.
After Fatt and Klikoff (1959).
Parameters
----------
slr : scalar
Irreducible liquid saturation (RP(1)).
"""
_id = 7
_n... | [
"keurfonluu@outlook.com"
] | keurfonluu@outlook.com |
318d451e5e9baa4b1d4cc02121cf2c36efd4eab3 | 959a7b17884aa9af1d38d9c6b0afe2045a9be5d2 | /Online Stock Span.py | 47a2706584a1006572a38de6b4dcb896fef431dd | [] | no_license | dumavit/leetcode | a1c998f4c56411b061995d939093b03f7aae366b | 866689f564125ca4152dc1b6b3d268991d7ec89a | refs/heads/master | 2022-02-07T20:44:17.388121 | 2022-01-31T21:02:28 | 2022-01-31T21:02:28 | 252,981,197 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 389 | py | class StockSpanner:
def __init__(self):
self.stack = []
def next(self, price):
res = 1
while self.stack and self.stack[-1][0] <= price:
res += self.stack.pop()[1]
self.stack.append([price, res])
return res
# Your StockSpanner object will be instantiated an... | [
"vitalii.duma@corva.ai"
] | vitalii.duma@corva.ai |
631803569c7f82f06c6e7ae6b7b80050c78627b2 | 3b4f985759e44dc169134ae7dcee8e92747c4b01 | /tests/tests_fabric/test_fabric.py | 076f6515acf2bd3aecd6863fe1b3dab512ebab32 | [
"Apache-2.0"
] | permissive | SkafteNicki/pytorch-lightning | 4b09863bf222241ca7128d13df94ff60b71e50aa | 7df627b43746a85aa87671bec3e6dada0d98b556 | refs/heads/master | 2023-07-15T21:20:02.468216 | 2023-05-04T08:12:33 | 2023-05-04T08:12:33 | 248,216,299 | 3 | 1 | Apache-2.0 | 2023-07-10T02:40:24 | 2020-03-18T11:44:20 | Python | UTF-8 | Python | false | false | 39,347 | py | # Copyright The Lightning AI team.
#
# 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 wri... | [
"noreply@github.com"
] | SkafteNicki.noreply@github.com |
72400439926869248265447bf85cbabdb44fbf32 | 25b0e82ec0ba2b667e6ae429e59e19333a641723 | /Python/NPTEL/src/Week7/P10.py | 6a2578fdb3ed31ec6069f5236a04636495a1740f | [] | no_license | donkhan/msc | cf897a6dbfd72845074d13842351e49ebcf04557 | 73bc12fd3ad86e6915f51adc08af836dfdc52747 | refs/heads/master | 2021-07-10T06:43:52.687825 | 2020-11-09T06:54:14 | 2020-11-09T06:54:14 | 211,588,078 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 563 | py | def func():
print()
c = 10
i = 3
while i <= 6:
j = 0
while j <= 20:
if j >= 10-i and j <= 10+i:
print("*",end = " ")
else:
print(" ",end = " ")
j = j + 1
print("\n")
i = i + 1
i = 6
while i >= 3:... | [
"donkhan"
] | donkhan |
a551061f954363fe867ae576ead48d3683dcf790 | 0f1bec24ebc7eab0a29ce433aef9ef937c91ebb7 | /commands/raxmon-monitoring-zones-traceroute | 1cc7f381fa91003d853fdb73e52ad896a86c003a | [] | no_license | bravelittlescientist/rackspace-monitoring-cli | d3f178cd1cb6e0b5675b6d2b46b0ecdaa9dcb210 | 600b08956e93fc8b61a095e4eaac45b7a637e8c1 | refs/heads/master | 2021-01-17T23:10:47.752809 | 2014-07-01T09:03:56 | 2014-07-01T09:03:56 | 21,474,623 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,677 | #!/usr/bin/env python
# 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 "Licen... | [
"tomaz@tomaz.me"
] | tomaz@tomaz.me | |
841aba801d2d071d8dab9e4d3c0c83c024477335 | 09a8648805c390594be0908da3188f287dedc471 | /src/fundamental/accessMySQL.py | 3f65949cbc8cda3b336ba5d34b37f441ec62c19a | [
"Apache-2.0"
] | permissive | lgonline/mp | 9d17abbb41ff42fbaf1666059504e2377485c6a9 | 21ef1bfb2feacf6a7abda858c083e0c49878f889 | refs/heads/master | 2020-12-29T02:36:32.332387 | 2019-11-16T03:02:02 | 2019-11-16T03:02:02 | 44,308,720 | 1 | 1 | null | 2015-10-20T16:24:08 | 2015-10-15T09:50:46 | Python | UTF-8 | Python | false | false | 1,190 | py | __author__ = 'Administrator'
import os,sys
import pymysql
def sampleConnMysql():
try:
conn = pymysql.connect(host='localhost',user='root',passwd='123456',db='bm',port=3306,charset='utf8')
cur=conn.cursor()
cur.execute('select userid,name,password from userinfo')
data=cur.fetchall()... | [
"lg_online@hotmail.com"
] | lg_online@hotmail.com |
b4e3b4667c69118029a269934e52e7bb9da1a061 | a6c0f3914395569cdd637d9bdc2f83406977f7e6 | /yarp/temporal.py | d966a1c6cbae5fc866a5392ef97c90fdd00128e4 | [] | no_license | mossblaser/yarp | 524bb0b5275a37b8d34b54c0cd84bf6636ab5cab | 236892b4ee6b58c8b9c59c61b17b259c35851d43 | refs/heads/master | 2022-12-11T08:45:29.308116 | 2018-12-24T23:07:36 | 2018-12-24T23:07:36 | 121,685,509 | 4 | 1 | null | 2022-12-07T01:21:16 | 2018-02-15T21:34:48 | Python | UTF-8 | Python | false | false | 10,141 | py | """
Temporal filters for :py:class:`Value` values.
"""
import asyncio
from yarp import NoValue, Value, ensure_value
__names__ = [
"delay",
"time_window",
"rate_limit",
]
def delay(source_value, delay_seconds, loop=None):
r"""
Produce a time-delayed version of a :py:class:`Value`.
Suppor... | [
"mail@jhnet.co.uk"
] | mail@jhnet.co.uk |
44e1074a660ff7b36fd8603cd447819137ad3819 | ead9779110c2a0371ba3354b4bae4c5aa351424f | /project/project-template/project_name/woot/settings/staging.py | b6fed3aa53e84f0dc8406a81501e98ee93d19af0 | [] | no_license | NicholasPiano/django-skeleton-templates | 744ced68cd0efb3cf3b2c05cc447c25ffdbc2bfb | 3677ac05acd48fe14fc1292452b909c2ca7d4a85 | refs/heads/master | 2021-01-20T04:30:19.676492 | 2015-03-28T19:09:12 | 2015-03-28T19:09:12 | 25,471,712 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,710 | py | # {{project_name}}.settings.staging
# django
# local
from woot.settings.common import *
# util
from os import environ
########## DEBUG CONFIGURATION
# See: https://docs.djangoproject.com/en/dev/ref/settings/#debug
DEBUG = True
# See: https://docs.djangoproject.com/en/dev/ref/settings/#template-debug
TEMPLATE_DEBUG ... | [
"nicholas.d.piano@gmail.com"
] | nicholas.d.piano@gmail.com |
9033c26e3bd828fc81eef756c10dad8deec587df | 4cc22dad5cd0e05ea22f5aa1177e5a85fb6471ad | /gokart_pipeliner/pipeliner.py | efe905e6e831fd4237b6b801e771b0537b963537 | [
"MIT"
] | permissive | hirosassa/gokart-pipeliner | 2029544626bb17e207fdc3a19a238139a8c2617d | ec9aef9228e0de2363520974a266c069ddea0e37 | refs/heads/main | 2023-02-01T01:09:19.001282 | 2020-12-12T13:03:51 | 2020-12-12T13:03:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,157 | py | from typing import List
import luigi
import gokart
from gokart_pipeliner.instantiation_task import InstantiationTask
from gokart_pipeliner.enum import TYPING
from gokart_pipeliner.config_manager import ConfigManager
class GokartPipeliner:
def __init__(self,
params: TYPING.PARAMS = dict(),
... | [
"6syun9@gmail.com"
] | 6syun9@gmail.com |
e0b7ad7303a8e55c71905b535a4ea019af5c1c13 | 727a528cb2361ef7ea2043f66daa8dfc02f1d56e | /movies_project/movies/management/commands/remove_unused_movies.py | 2aa804936cdeb24280b884a72b9a80e6d94ec7c2 | [
"MIT"
] | permissive | TonyGu423/movies | a6e11fb7b4c1b2feb3bc928cace77b8f7ab6e79f | dbdb234119f88939ee485df69536bdbc091b8909 | refs/heads/master | 2021-01-16T20:43:36.121985 | 2015-10-26T12:24:00 | 2015-10-26T12:24:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 340 | py | from movies.models import Movie
from django.core.management.base import BaseCommand
class Command(BaseCommand):
help = 'Removes unused movies'
def handle(self, *args, **options):
for movie in Movie.objects.all():
if not movie.records.exists():
movie.delete()
... | [
"desecho@gmail.com"
] | desecho@gmail.com |
9f91e065dafd1449d8ae3bcc61105cccd7df254c | c41f97ac62188860534da88e7c809036857b1876 | /02-Code.py | 967d6c25ccf9d511d4796b3bca591b409288a54a | [] | no_license | ravi4all/AdvPython_March | 210280594bc4651583fc22ef7a6d45deecbce2fc | b6385d7f19025cdb1f061046603c66fdcfebc57a | refs/heads/master | 2020-04-29T07:59:04.193110 | 2019-03-23T12:41:38 | 2019-03-23T12:41:38 | 175,970,678 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 352 | py | class Student():
id = None
name = None
marks = None
standard = 8
data = []
def showStudent(self,id,name,marks):
self.data.append([id,name,marks,self.standard])
print(self.data)
s_1 = Student()
s_1.standard = 9
s_1.showStudent(101,'Ram',78.6)
s_2 = Student()
s_2... | [
"noreply@github.com"
] | ravi4all.noreply@github.com |
490864555c3152ac58cf916babb377112092e85c | 116acf603f5db8d626247355bf786c339ba95ea9 | /apps/inforguide/handler.py | 3a910bddbbc0ec0c4702466cf035bc334848fd3f | [] | no_license | dahunuaa/ZhihuiSMB_python3 | 0857afeec2337b44571986a9c70c26e716142ccb | 8db2708efccd5eefa393738500e326bd7fb65c21 | refs/heads/master | 2021-01-25T14:32:32.201879 | 2018-03-11T05:59:10 | 2018-03-11T05:59:10 | 123,703,184 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,324 | py | # -*- coding:utf-8 -*-
from ZhihuiSMB.apps.base.handler import MultiStandardHandler,SingleStandardHanler,TokenHandler
from ZhihuiSMB.libs.oauthlib import get_provider
from ZhihuiSMB.libs.loglib import get_logger
logger = get_logger("debug")
class InforguideListHandler(MultiStandardHandler,TokenHandler):
_model =... | [
"dahu yao"
] | dahu yao |
8544d26a3c301bbbd0ba99500ab5335cb78b23ce | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02382/s791282888.py | a561149827dff37dff5d772184eb82b93aeb25a2 | [] | 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 | 604 | py | #! python 3
# distance_ii.py
import math
def minkovski(a, b, p):
if p == 'inf':
tmp_arr = [abs(x-y) for x, y in zip(a, b)]
max_val = tmp_arr[0]
for i in range(1, len(a)):
if max_val < tmp_arr[i]:
max_val = tmp_arr[i]
return max_val
else:
dst ... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
abfea447ccb5dcc8cb7ef7aa9371f594739c1616 | 29f8b7f92eb22cc3134a16c439d3180e254df4bb | /chp12_flasktaskr_part05/project/__init__.py | d30a310dfbec437928b7a6cfbcc4ed4aac395547 | [] | no_license | Hemie143/realpython2 | 7df80dd5f61ce7cd8c31b8bf78111b8507cbdb36 | b8535ffe97594e1b18233bcd9aa0de664257cb09 | refs/heads/master | 2022-12-12T04:51:53.120131 | 2021-01-03T19:52:32 | 2021-01-03T19:52:32 | 208,735,855 | 0 | 0 | null | 2023-08-17T05:45:32 | 2019-09-16T07:22:16 | Python | UTF-8 | Python | false | false | 494 | py | # project/__init__.py
from flask import Flask
from flask_sqlalchemy import SQLAlchemy
app = Flask(__name__)
app.config.from_pyfile('_config.py')
db = SQLAlchemy(app)
from chp12_flasktaskr_part05.project.users.views import users_blueprint
from chp12_flasktaskr_part05.project.tasks.views import tasks_blueprint
# from ... | [
"hemie143@gmail.com"
] | hemie143@gmail.com |
0928fa1442304f1c65bdf6a271a83d62dfef9e80 | dca0bd2e04dda3801d395c2a6ab2f9d95be79551 | /Python/SmallProject/three_stooges.py | 63eb8eccae942e5a7de0c7bd84bf4411c7b65899 | [] | no_license | A-khateeb/Full-Stack-Development-Path | ab8c86abea2f983fb8e0046a65b99772416c754c | 5a5eaa198367cc95a6b5638e9740f4ad564dec23 | refs/heads/master | 2021-06-01T23:52:04.965494 | 2020-05-01T22:59:20 | 2020-05-01T22:59:20 | 89,286,943 | 2 | 0 | null | 2017-12-22T22:21:52 | 2017-04-24T21:04:07 | Shell | UTF-8 | Python | false | false | 445 | py |
p = 'Hello world'
Stooges = ['Moe', 'Larry', 'Curly']
print (Stooges)
Stooges[2] = 'Shemp'
print (Stooges)
q= Stooges
q[2]= "!"
print (q)
print (Stooges)
Stooges.append('Shemp22')
print(Stooges)
print (len(['a',['b',["c"]]]))
print (len([0,1]))
print (len(["Udacity"]))
list1= [1,2]
list2 =[3,4]
list1.append(list2)
... | [
"khateebafeef@gmail.com"
] | khateebafeef@gmail.com |
9902394669267c37d5bd08bb34edc9919258b642 | 48e6a442f35cace8df3a87e1660e4539a084b39e | /cluster_2/90_10/A1_pod100/traffic_matrix_1/A1_1.py | ff9e5eb1a6848b9195753f8fd17b0ca8dfe69ad7 | [] | no_license | LiYan1988/kthjocn | 9056c05e5095a93b47a22c9e027458f410c0d8f3 | 7e5de3b3fb2a48c6dcaf6d7788ab823c5c743845 | refs/heads/master | 2021-01-01T03:56:47.251908 | 2018-06-08T07:27:33 | 2018-06-08T07:27:33 | 77,261,359 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,740 | py | # -*- coding: utf-8 -*-
"""
Created on Thu Aug 4 15:15:10 2016
@author: li
optimize both throughput and connections
"""
#import sys
#sys.path.insert(0, '/home/li/Dropbox/KTH/numerical_analysis/ILPs')
from sdm import *
from gurobipy import *
import pandas as pd
np.random.seed(2010)
num_cores=5
num_... | [
"li.yan.ly414@gmail.com"
] | li.yan.ly414@gmail.com |
fe051cda5eea45aaa1903b017a8c2a6d1ee5e14c | d5ee6e6bd1df32a123558e6e4a79c3ad17db19bc | /news/managers.py | 0c53ab2888fd1d4280c4654b067893967f34b36b | [] | no_license | trailhawks/lawrencetrailhawks.com | 06d9f3f0753f0529718a14540858637b5bdfae3d | b250c131cd655e9b43b27834db702e3a853df88b | refs/heads/master | 2021-06-10T11:22:20.435575 | 2016-12-23T08:58:08 | 2016-12-23T08:58:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 794 | py | import datetime
from django.db.models import Manager
from django.db.models.query import QuerySet
from django.utils import timezone
class NewsQuerySet(QuerySet):
def draft(self):
return self.filter(status__exact=self.model.STATUS_DRAFT)
def public(self):
return self.filter(status__exact=self... | [
"jeff.triplett@gmail.com"
] | jeff.triplett@gmail.com |
0e4a2e05b6a37082a2b8121508a8530e3042edee | 0be484378e45f67a8ab7675498cbc80b51df8461 | /bt5/erp5_ui_test_core/SkinTemplateItem/portal_skins/erp5_ui_test_core/Zuite_setPreference.py | 1eb1be5e08970ec882a4fcc3af5d6feaed8d8519 | [] | no_license | uhml/erp5 | 7ba69b43d0f6c36e4e1b1116351788e75135889d | 41bae8338b238267d60e57a7c7aaa91b32ee0826 | refs/heads/master | 2021-01-14T13:21:27.340016 | 2016-08-18T10:10:56 | 2016-08-18T11:12:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,306 | py | """Set subversion working copy list and enable preference.
This script is called by Products.ERP5Type.tests.runFunctionalTest to set
subversion working copy paths and conversion server address.
It's not meant to be called by zelenium tests directly.
"""
pref = getattr(context.portal_preferences, "erp5_ui_test_prefere... | [
"georgios.dagkakis@nexedi.com"
] | georgios.dagkakis@nexedi.com |
1460e4adc0eaf45d2f00362cbf7115fb97d33bd3 | 507b4ffbdc19614603da9c5c6ea31910fdbbf288 | /interface/labeler_client.py | c5c2eab0889b1d1660528d177857cd573207b2fd | [
"Apache-2.0"
] | permissive | jerryli27/TwinGANFrontendTemporary | 755a0e39f6f92522687cd1bd916549acd2295fd0 | 24f9327d1c50f7b54198a8d74073ca7507d715fb | refs/heads/master | 2020-03-14T12:22:12.950810 | 2018-04-30T15:14:14 | 2018-04-30T15:14:14 | 131,610,369 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,788 | py | import os
import util_io
import util_misc
import interface_utils
class LabelerClient(object):
def __init__(self,):
self.image_paths = []
self.sketch_paths = []
self.index = 0
self.done_image_paths = set()
self.done_image_txt_path = ''
self.sketch_folder = ''
def set_image_paths(self, ima... | [
"jerrylijiaming@gmail.com"
] | jerrylijiaming@gmail.com |
7908f51adf44b6200b10a9cc53f37fa511f66531 | f6439b5ed1614fd8db05fa963b47765eae225eb5 | /chrome/browser/extensions/api/push_messaging/DEPS | 8c7d15a911d33d64d98ca56406d3c0a18c5d4e0f | [
"BSD-3-Clause"
] | permissive | aranajhonny/chromium | b8a3c975211e1ea2f15b83647b4d8eb45252f1be | caf5bcb822f79b8997720e589334266551a50a13 | refs/heads/master | 2021-05-11T00:20:34.020261 | 2018-01-21T03:31:45 | 2018-01-21T03:31:45 | 118,301,142 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 199 | include_rules = [
"+components/invalidation",
"+google/cacheinvalidation/types.pb.h",
"+sync/internal_api/public/base/invalidation.h",
"+sync/internal_api/public/base/invalidation_util.h",
]
| [
"jhonnyjosearana@gmail.com"
] | jhonnyjosearana@gmail.com | |
68095f0f7e56c2373879c98c67cf6bbf375b3bf3 | 40dd8330e5f78c4348bbddc2c5acfd59d793dd51 | /projects/medical/2d_image/dermoscopy/isic2017_task1/configs/fcn-unet-s5-d16_unet_1xb16-0.0001-20k_isic2017-task1-512x512.py | 58d0a125d33a1948802b1bbc104095f9fdd28f54 | [
"Apache-2.0"
] | permissive | open-mmlab/mmsegmentation | 0d12092312e2c465ede1fd7dd9847b6f2b37049c | 30a3f94f3e2916e27fa38c67cc3b8c69c1893fe8 | refs/heads/main | 2023-09-04T10:54:52.299711 | 2023-07-24T07:28:21 | 2023-07-24T07:28:21 | 272,133,018 | 6,534 | 2,375 | Apache-2.0 | 2023-09-14T01:22:32 | 2020-06-14T04:32:33 | Python | UTF-8 | Python | false | false | 606 | py | _base_ = [
'mmseg::_base_/models/fcn_unet_s5-d16.py', './isic2017-task1_512x512.py',
'mmseg::_base_/default_runtime.py',
'mmseg::_base_/schedules/schedule_20k.py'
]
custom_imports = dict(imports='datasets.isic2017-task1_dataset')
img_scale = (512, 512)
data_preprocessor = dict(size=img_scale)
optimizer = di... | [
"noreply@github.com"
] | open-mmlab.noreply@github.com |
1cc43dc39860b3db828c76db2404cf44159f7da6 | 08ace4e8d7b2fcfa4ff4983e643873fd9c01f6de | /tools/pinject.py | ef71dd321b6524c40bc31b51194ec46cd83e3890 | [] | no_license | 0x90/winappdbg | 87d2e769707ec4ca482af0c946e02f77976314a2 | 5acffe77379836622042385460411ef4dc751d46 | refs/heads/master | 2020-09-26T08:19:10.600353 | 2019-12-06T00:42:52 | 2019-12-06T00:42:52 | 226,215,022 | 6 | 1 | null | 2019-12-06T00:41:16 | 2019-12-06T00:41:15 | null | UTF-8 | Python | false | false | 3,301 | py | #!/bin/env python
# -*- coding: utf-8 -*-
# Acknowledgements:
# Nicolas Economou, for his ptool suite on which this tool is inspired.
# http://tinyurl.com/nicolaseconomou
# Process DLL injector
# Copyright (c) 2009-2018, Mario Vilas
# All rights reserved.
#
# Redistribution and use in source and binary f... | [
"mvilas@gmail.com"
] | mvilas@gmail.com |
b634f92f48233fa93f99b45521e9ff384f0ae8cf | abaa004b41f63aa489be12a6e4be8f92ef2ef6d3 | /csvfetch/csvfetch/asgi.py | 10359ee6cee1be3538ccdfe026ad2c360aa606c2 | [] | no_license | vshaladhav97/django_practise_projects | 30dcc8dd909626c1d624d9c5895fc90ad55c79d0 | 83455c50e2ee910f03db47fbe1420d1cbd7eb292 | refs/heads/master | 2023-03-28T14:08:08.244694 | 2021-03-26T03:56:56 | 2021-03-26T03:56:56 | 351,655,547 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 393 | py | """
ASGI config for csvfetch project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO_SETT... | [
"adhavv0@gmail.com"
] | adhavv0@gmail.com |
a585f7468c544e99b02615287e02c85f662132d5 | a56a74b362b9263289aad96098bd0f7d798570a2 | /venv/lib/python3.8/site-packages/mpl_toolkits/axisartist/grid_helper_curvelinear.py | 93336b8d648bea6ead4190aa02ed7fd51c938de7 | [
"MIT"
] | permissive | yoonkt200/ml-theory-python | 5812d06841d30e1068f6592b5730a40e87801313 | 7643136230fd4f291b6e3dbf9fa562c3737901a2 | refs/heads/master | 2022-12-21T14:53:21.624453 | 2021-02-02T09:33:07 | 2021-02-02T09:33:07 | 132,319,537 | 13 | 14 | MIT | 2022-12-19T17:23:57 | 2018-05-06T08:17:45 | Python | UTF-8 | Python | false | false | 14,384 | py | """
An experimental support for curvilinear grid.
"""
from itertools import chain
import numpy as np
from matplotlib.path import Path
from matplotlib.transforms import Affine2D, IdentityTransform
from .axislines import AxisArtistHelper, GridHelperBase
from .axis_artist import AxisArtist
from .grid_finder import GridF... | [
"kitae.yoon@deliveryhero.co.kr"
] | kitae.yoon@deliveryhero.co.kr |
2d5720190dc89d57eaf284a81c58774922bfc172 | 896b5a6aab6cb6c1e3ee2e59aad0128226471871 | /third_party/blink/renderer/bindings/scripts/bind_gen/code_node_test.py | 2b8c7c82ad64f97f787868ffd7237cee89a8def7 | [
"LGPL-2.0-or-later",
"LicenseRef-scancode-warranty-disclaimer",
"LGPL-2.1-only",
"GPL-1.0-or-later",
"GPL-2.0-only",
"LGPL-2.0-only",
"BSD-2-Clause",
"LicenseRef-scancode-other-copyleft",
"BSD-3-Clause",
"MIT",
"Apache-2.0"
] | permissive | bkueppers/chromium | 86f09d32b7cb418f431b3b01a00ffe018e24de32 | d160b8b58d58120a9b2331671d0bda228d469482 | refs/heads/master | 2023-03-14T10:41:52.563439 | 2019-11-08T13:33:40 | 2019-11-08T13:33:40 | 219,389,734 | 0 | 0 | BSD-3-Clause | 2019-11-04T01:05:37 | 2019-11-04T01:05:37 | null | UTF-8 | Python | false | false | 9,142 | py | # Copyright 2019 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import unittest
from .code_node import FunctionDefinitionNode
from .code_node import LikelyExitNode
from .code_node import LiteralNode
from .code_node impor... | [
"commit-bot@chromium.org"
] | commit-bot@chromium.org |
db4906b126e1ee3ff257b3bb20c776ab64d9a31b | 90ec9a009d84dd7eebbd93de4f4b9de553326a39 | /app/config/enums.py | a558f22c18fe955f066b40058f21e00a46fa4fc0 | [] | no_license | alexiuasse/NipponArDjango | 18a86bb108b9d72b36c8adf7c4344398cc4ca6b2 | ddc541a8d7e4428bde63c56f44354d6f82e0f40d | refs/heads/master | 2023-08-03T12:16:56.431870 | 2021-07-15T23:43:33 | 2021-07-15T23:43:33 | 278,093,323 | 0 | 0 | null | 2021-09-22T20:04:15 | 2020-07-08T13:13:22 | CSS | UTF-8 | Python | false | false | 391 | py | # Created by Alex Matos Iuasse.
# Copyright (c) 2020. All rights reserved.
# Last modified 10/08/2020 10:14.
from enum import Enum
class ContextualEnum(Enum):
VERDE = "success"
AZUL = "primary"
CIANO = "info"
AMARELO = "warning"
VERMELHO = "danger"
CINZA = "default"
@classmethod
d... | [
"alexiuasse@gmail.com"
] | alexiuasse@gmail.com |
8c91a1c95584126d62eb15a000e7d8c552c05140 | 60aee65d7d40f2886a4c15e08e50f145c809aff6 | /experiment/Keras Machine Learning Model/function/imgCrop.py | 419986e7616c7aa5477d0e5bd51844dd9b815006 | [] | no_license | tshahria/DreamCatcher | 2fdabd90add46eb86a20fe1aa1b5bb4d4a58ddb1 | 3880b120f8ed857462d565fbf48d320076bff73a | refs/heads/master | 2021-05-06T10:19:18.634656 | 2017-12-08T20:31:44 | 2017-12-08T20:31:44 | 114,164,133 | 0 | 1 | null | 2017-12-13T20:09:44 | 2017-12-13T20:09:43 | null | UTF-8 | Python | false | false | 2,849 | py | import sys
from PIL import Image, ImageDraw
try:
import cv2 as cv
except ImportError:
print('Could not import cv, trying opencv')
import opencv.cv as cv
def main():
source_image = Image.open('function/ppl.jpg')
source_width, source_height = source_image.size
print('Image is {}x{}'.format(sou... | [
"jeffreykam0415@gmail.com"
] | jeffreykam0415@gmail.com |
dfb78191a7e2e45e05ba8a63e31ddffa103108f6 | 504efba4ab5ba1721ab3388144b16fa5f24833e7 | /07_Chroma_Scan_SC_NoRF/01_05/Make_SLURM_submission_script.py | 884a2e4ed4160053f6c9bacba40ba1044ad8a6a7 | [
"MIT"
] | permissive | HaroonRafique/PS_Transfer | b568fe41c98357877c3bc63b2ca89f8724439da0 | 59ed8a0978ba4699f34c9f7a2500e0026759a2b6 | refs/heads/master | 2023-05-25T21:13:36.586605 | 2020-07-10T07:41:40 | 2020-07-10T07:41:40 | 213,405,455 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,317 | py | #!/usr/bin/env python
# Python script to create a SLURM submission script for PyORBIT
# 21 March 2019 Haroon Rafique CERN BE-ABP-HSI
import os
#-----------------------------------------------------------------------
# SETTINGS
#-----------------------------------------------------------------------
script_name =... | [
"haroon.rafique@protonmail.com"
] | haroon.rafique@protonmail.com |
e4da44a87446e6be726c46a697a1b2f50bba2bff | 2ff7e53d5e512cd762217ca54317982e07a2bb0c | /eve-8.51.857815/carbonui/util/settings.py | 9ec58d3fedc0bf851a67f8bbbabc77cf1a491343 | [] | no_license | nanxijw/Clara-Pretty-One-Dick | 66d3d69426642b79e8fd4cc8e0bec23adeeca6d6 | 50de3488a2140343c364efc2615cf6e67f152be0 | refs/heads/master | 2021-01-19T09:25:07.555284 | 2015-02-17T21:49:33 | 2015-02-17T21:49:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,146 | py | #Embedded file name: carbonui/util\settings.py
"""
Does persisted settings with last-accessed cache feature and such.
"""
import blue
import os
from carbonui.util.bunch import Bunch
import defaultsetting
import types
import yaml
import traceback
import uthread
from carbon.common.script.util.timerstuff import AutoTimer
... | [
"billchang.e@gmail.com"
] | billchang.e@gmail.com |
470279f1566f761e2fe269c7fa4a6b4f68c48f35 | 060ce17de7b5cdbd5f7064d1fceb4ded17a23649 | /fn_aws_utilities/tests/test_funct_fn_get_step_function_execution.py | 69e85aa6d5a7b8b7d1d865e924e6b6f2ada73d71 | [
"MIT"
] | permissive | ibmresilient/resilient-community-apps | 74bbd770062a22801cef585d4415c29cbb4d34e2 | 6878c78b94eeca407998a41ce8db2cc00f2b6758 | refs/heads/main | 2023-06-26T20:47:15.059297 | 2023-06-23T16:33:58 | 2023-06-23T16:33:58 | 101,410,006 | 81 | 107 | MIT | 2023-03-29T20:40:31 | 2017-08-25T14:07:33 | Python | UTF-8 | Python | false | false | 3,073 | py | # -*- coding: utf-8 -*-
"""Tests using pytest_resilient_circuits"""
import fn_aws_utilities
from mock import patch
import pytest
from resilient_circuits.util import get_config_data, get_function_definition
from resilient_circuits import SubmitTestFunction, FunctionResult
from .mock_artifacts import mock_constants, moc... | [
"travis@example.org"
] | travis@example.org |
08a1e71a298632f21bbaf6a642b26963207b28c4 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2234/60636/265682.py | 7f5892bbcb14ddbeb52302932a7f2c3a611488fa | [] | 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,292 | py | from itertools import combinations
n=int(input())
p=int(input())
jiandie=[]
starts=[]
for i in range(n):
jiandie.append(0)
for i in range(p):
x=input().split(" ")
starts.append(int(x[0])-1)
jiandie[int(x[0])-1]=int(x[1])
r=int(input())
sources=[]
for i in range(n):
source=[]
for j in range(n):
... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
cdfe3f9d3039f42e476a4efec7a3cb47ff8b2c02 | b00840e56173dc2a196442bd354b9e3cc13b17df | /code_fargo/tutorial/compareMigrationRates.py | 55fbadae5550691b2f011813952e4c8a78bbc715 | [] | no_license | Sportsfan77777/vortex | 56c28fb760f6c98de4a7c8fdcf1168d78b4e57af | 780ec14937d1b79e91a367d58f75adc905b8eef2 | refs/heads/master | 2023-08-31T02:50:09.454230 | 2023-08-24T10:55:05 | 2023-08-24T10:55:05 | 41,785,163 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,181 | py | """
plots torque over time
*** uses a smoothing function ***
"""
import sys
import os
import subprocess
import pickle
import numpy as np
from matplotlib import pyplot as plot
from matplotlib import rcParams as rc
from scipy import signal as sig
from scipy.ndimage import filters as ff
import util
## Choose direct... | [
"mhammer44444@gmail.com"
] | mhammer44444@gmail.com |
c83f3d3773151f469f78e72a467dd0805bf68c6e | eb40da8906c1a03a22c4c6e2a9eb09ea8f87953c | /api/areas/areas.py | daebbec8e355ce5917c4d364ebeaa1884fad0515 | [
"MIT"
] | permissive | ufosoftwarellc/cannlytics | 677d149f64ee165c2e2adc0f3f39e618c3b2cc10 | 236bd597e30530666400fef6dceaae6de6aa587b | refs/heads/main | 2023-06-02T02:09:01.425087 | 2021-06-19T06:41:12 | 2021-06-19T06:41:12 | 377,613,147 | 0 | 0 | MIT | 2021-06-16T20:00:49 | 2021-06-16T20:00:48 | null | UTF-8 | Python | false | false | 3,025 | py | """
Areas Endpoints | Cannlytics API
Created: 5/8/2021
Updated: 5/8/2021
API endpoints to interface with areas.
"""
# External imports
from rest_framework import status
from rest_framework.decorators import api_view
from rest_framework.response import Response
# Internal imports
from api.auth import auth
@api_view... | [
"keeganskeate@gmail.com"
] | keeganskeate@gmail.com |
708fa4196fbd2dce037bb0ce89e5baf445a9155a | cce6101c03686898310405f089c529e65c8f68fe | /skyline/webapp/backend.py | 444984820f369ac59bdcb48ea002dc787f06ca88 | [
"MIT"
] | permissive | angry-tony/skyline | db5b776f41793eae86063a3a62ffea955eb973ab | 7ff481e2fc37831e539d431f6380b5bc6f4f75aa | refs/heads/master | 2023-03-27T10:13:55.905344 | 2021-03-09T18:08:37 | 2021-03-09T18:08:37 | 350,996,635 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 50,058 | py | import logging
from os import path
import string
import operator
import time
import re
import traceback
from flask import request
# import mysql.connector
# from mysql.connector import errorcode
# @added 20180720 - Feature #2464: luminosity_remote_data
# Added redis and msgpack
from redis import StrictRedis
from msgp... | [
"gary.wilson@of-networks.co.uk"
] | gary.wilson@of-networks.co.uk |
4566d265de8c9de17ff705716fb33d9a946acd40 | 255e19ddc1bcde0d3d4fe70e01cec9bb724979c9 | /dockerized-gists/2632280/snippet.py | 2c3e53153055035e65c3c069b7b509579d65212b | [
"MIT"
] | permissive | gistable/gistable | 26c1e909928ec463026811f69b61619b62f14721 | 665d39a2bd82543d5196555f0801ef8fd4a3ee48 | refs/heads/master | 2023-02-17T21:33:55.558398 | 2023-02-11T18:20:10 | 2023-02-11T18:20:10 | 119,861,038 | 76 | 19 | null | 2020-07-26T03:14:55 | 2018-02-01T16:19:24 | Python | UTF-8 | Python | false | false | 2,057 | py | #!/usr/bin/python
#
import sys
import os
import copy
import random
deck = [1,2,3,4,5,6,7,8,9,0,0,0,0]
deck = [1,2,3,4,5,6,7,8,9,0,0,0,0]
results = {
'bank': 0,
'player': 0,
'tie': 0,
}
def generate_deck(n=1):
decks = deck * 4 * n
random.shuffle(decks)
return decks
def simulate_game(decks):
... | [
"gistshub@gmail.com"
] | gistshub@gmail.com |
40ad77e61a4e82b015bf0da7e66515953ad9eed4 | 2b5fd9d436a97726f852a12bab58b8d367f4866a | /apps/CMDB/model/oracle_modles.py | 85cecdfda15e7e6ac6002550d0218e5453001bc2 | [] | no_license | lxlzyf/roe | 07ff551b142c0411acb7ca6f759ea98b40ad9b72 | 2d7f1b01e2456875d14a75c90d8397965215bcd3 | refs/heads/master | 2020-03-27T06:00:43.587235 | 2018-08-20T10:47:47 | 2018-08-20T10:47:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,361 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models
from CMDB.model.yewutree_model import YewuTree
from django.contrib.auth.models import User
#群,一定属于某一个产品线,可能属于多个组,一个节点也是群
class OracleCluster(models.Model):
arch = (
(u"主从", u"主从"),
(u"单机", u"单击"),
... | [
"flc009@163.com"
] | flc009@163.com |
3a349a33e9e4531c9a6cddd12c53e9f0b04d76cf | e592f12040848bedbe6ffe309cceb757366d1887 | /Spotify_main.py | caf867bcdd3b05c8dbc58e7780a1c9cffd8349ef | [] | no_license | Hadryan/Spotify_music_recommender-1 | 02a3f0e1b8545f99643bbc9ee72dd2869366d5c1 | dcaf6a518c29f7c12062fc7bc8e143d8edc9d588 | refs/heads/main | 2023-03-05T21:49:59.022693 | 2021-02-10T05:18:32 | 2021-02-10T05:18:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,582 | py | # -*- coding: utf-8 -*-
"""
Created on Mon Feb 8 15:43:03 2021
@author: Victor
"""
import Spotify_Authorization
import spotipy
import pandas as pd
class Spotify_app():
def __init__(self):
self.auth = Spotify_Authorization.auth()
self.spotify = spotipy.Spotify(auth_manager=s... | [
"noreply@github.com"
] | Hadryan.noreply@github.com |
07aebc8436388522c9187ba82736dcfd7ad184a5 | a142b049668648f5a3ffb4714a9d472ff9f5e5e8 | /keras1/keras51_Tokenizer.py | f3f733838bea78c799af6bc85922b82620ebdf72 | [] | no_license | yunnyisgood/Tensorflow | 237944a3251b608bd688f1096618e55317265037 | 6af04eca3c51815509e53d65d03e471177b9e02f | refs/heads/main | 2023-08-09T14:35:28.939447 | 2021-09-13T14:02:20 | 2021-09-13T14:02:20 | 384,322,092 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 830 | py | from tensorflow.keras.preprocessing.text import Tokenizer
from tensorflow.keras.utils import to_categorical
text = '나는 진짜 매우 맛있는 밥을 진짜 마구 마구 먹었다.'
token = Tokenizer()
token.fit_on_texts([text])
print(token.word_index)
# {'진짜': 1, '마구': 2, '나는': 3, '매우': 4, '맛있는': 5, '밥을': 6, '먹었다': 7}
x = token.texts_to_sequences([... | [
"cyeon0801@gmail.com"
] | cyeon0801@gmail.com |
4149763b5973c1df83a28fbbfac81d7ff11885af | 7fdf4c04baed5f429110045d555e384dc71e08f1 | /python/modules.py | 3e63a5694605d15b25b2648b1729092cf52fa80b | [] | no_license | andrsj/Python-Edu | 8f3d336fc35c325ca546fb508d49f7ee892b5b7d | a2f09876b977f071ff11576ad987af477b0889c6 | refs/heads/master | 2021-03-18T22:20:27.854983 | 2020-04-23T18:05:04 | 2020-04-23T18:05:04 | 247,105,092 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,574 | py | # MODULES
m.__dict__ # Атрибути модуля
m.__doc__ # Doc
m.__name__ # Name
m.__file__ # File
m.__path__ # Path
# module: spam.py
__all__ = [ ‘bar’, ‘Spam’ ]
# Ці імена будуть імпортовані при команді from spam import *
# Перевірити, чи модуль був запущений як програма
if __name__ == "__main__":
pass
else:
# Ф... | [
"61803449+andrsj@users.noreply.github.com"
] | 61803449+andrsj@users.noreply.github.com |
052f814055a4ea1b0c87f9a67983858539c629f3 | 781e2692049e87a4256320c76e82a19be257a05d | /all_data/exercism_data/python/matrix/03621ea5957641a2ad11d0d2303103e5.py | 5c1164e155a96298fac1d2fac55d3c2c202a80e4 | [] | 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 | 1,857 | py | class Matrix:
def __init__(self, data):
"""Create a matrix object and fill it with the provided data.
The data must be the matrix in ASCII format, with embedded newlines,
e.g. '1 2 3\n4 5 6'.
"""
self.height = 0
self.width = 0
self._data = []
for row ... | [
"rrc@berkeley.edu"
] | rrc@berkeley.edu |
77c0e37ed35697f5c5bdcd4b5739f3cce73b4472 | ffd0603413ec537e14f977196b564f4523e29545 | /mysite/mysite/settings.py | 0fa56d38541987273f522ac81761da22f61ab163 | [] | no_license | sorwarduet/blog_project_new | 3b58d407c22bf3f4fbfe796356cc073082f80c9a | 98c37fb474860971dc28a5a1730826d31c9d6f6c | refs/heads/master | 2021-08-23T11:53:14.324873 | 2017-12-04T20:07:05 | 2017-12-04T20:07:05 | 113,047,510 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,331 | py | """
Django settings for mysite project.
Generated by 'django-admin startproject' using Django 1.11.2.
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/
"""
import os
... | [
"esorwar.cse@gmail.com"
] | esorwar.cse@gmail.com |
50a976545023e2867694a4b0470c533b5ec610fb | a1794eabcc58e65cf49087c846a8cf1e7ee83941 | /desktop/core/ext-py/pysaml2-2.4.0/src/saml2/eptid.py | b2551b44f6ce3ae5220ca03de959043a020dbc10 | [
"Apache-2.0"
] | permissive | BelieveDjango/hue | 22502a5f250d5df4c3adc1afa2e3b659e8888089 | d6cbec42d8bcb1e9c0f729b5a22a38abb2c6dee4 | refs/heads/master | 2023-08-31T01:20:23.906783 | 2016-05-19T23:51:28 | 2016-05-19T23:51:28 | 59,281,298 | 0 | 0 | Apache-2.0 | 2023-08-11T05:06:18 | 2016-05-20T09:16:05 | Python | UTF-8 | Python | false | false | 1,368 | py | # An eduPersonTargetedID comprises
# the entity name of the identity provider, the entity name of the service
# provider, and a opaque string value.
# These strings are separated by "!" symbols. This form is advocated by
# Internet2 and may overtake the other form in due course.
import hashlib
import shelve
import lo... | [
"erickt@cloudera.com"
] | erickt@cloudera.com |
0ac1d93bb67a120a72ecf7874363b5562af9dee2 | cdd499a39bc4c5152ade3b106abf0eddfea2a133 | /analysis.py | 691bec189d8b79e88a843ea347462c50ddaefefc | [] | no_license | joel99/illusions | 307f7f7b94061ad67ca90702529e64cc49fc21e5 | 3f4adeebc38e94ef15a1b6f169754a3274319c3a | refs/heads/main | 2023-04-29T21:16:23.418173 | 2021-05-05T00:00:36 | 2021-05-05T00:00:36 | 352,145,024 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 7,524 | py | #%%
from pathlib import Path
import os.path as osp
from yacs.config import CfgNode as CN
import matplotlib.pyplot as plt
from PIL import Image
import torch
import torch.nn.functional as F
from config.default import get_config
from model import SaccadingRNN
from dataset import UniformityDataset
seed = 0
config = './c... | [
"joelye9@gmail.com"
] | joelye9@gmail.com |
6021df1a5e4afffdf7611d6391b4abe981929627 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2845/60765/274571.py | e890da8bf65c177ac99bcb7981532e0c0a99bf23 | [] | 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 | 437 | py | #!/usr/bin/env python
# -*- coding:utf-8 -*-
n=input()
# n,t=list(map(int,input().split()))
#serial=input().split()
a=list(map(int,input().split()))
b=list(map(int,input().split()))
n=len(b)
c=[[a[i],b[i]] for i in range(n)]
c.sort(key=lambda x:x[0])
# print(c)
result=[c[i][1]-c[i+1][1] for i in range(n-1)]
for i in r... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
c6406ced2221fb7e2c50769c42574bc91280dd5a | 0adb68bbf576340c8ba1d9d3c07320ab3bfdb95e | /regexlib/2021-5-15/python_re_test_file/regexlib_7745.py | ffca8351109d1a4bdc6278e4c8266b6f3ecf2f39 | [
"MIT"
] | permissive | agentjacker/ReDoS-Benchmarks | c7d6633a3b77d9e29e0ee2db98d5dfb60cde91c6 | f5b5094d835649e957bf3fec6b8bd4f6efdb35fc | refs/heads/main | 2023-05-10T13:57:48.491045 | 2021-05-21T11:19:39 | 2021-05-21T11:19:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 475 | py | # 7745
# ^\w*[-]*\w*\\\w*$
# POLYNOMIAL
# nums:4
# POLYNOMIAL AttackString:""+"0"*10000+"! _1_POA(i)"
import re
from time import perf_counter
regex = """^\w*[-]*\w*\\\w*$"""
REGEX = re.compile(regex)
for i in range(0, 150000):
ATTACK = "" + "0" * i * 10000 + "! _1_POA(i)"
LEN = len(ATTACK)
BEGIN = perf_co... | [
"liyt@ios.ac.cn"
] | liyt@ios.ac.cn |
9cd31045bab54a275a87b2929087052987ccfdcd | 04b1803adb6653ecb7cb827c4f4aa616afacf629 | /third_party/blink/web_tests/external/wpt/xhr/resources/inspect-headers.py | e71f671ced34ff3d447467ea4098e6e000ffd8f7 | [
"LGPL-2.0-or-later",
"LicenseRef-scancode-warranty-disclaimer",
"LGPL-2.1-only",
"GPL-1.0-or-later",
"GPL-2.0-only",
"LGPL-2.0-only",
"BSD-2-Clause",
"LicenseRef-scancode-other-copyleft",
"MIT",
"Apache-2.0",
"BSD-3-Clause"
] | permissive | Samsung/Castanets | 240d9338e097b75b3f669604315b06f7cf129d64 | 4896f732fc747dfdcfcbac3d442f2d2d42df264a | refs/heads/castanets_76_dev | 2023-08-31T09:01:04.744346 | 2021-07-30T04:56:25 | 2021-08-11T05:45:21 | 125,484,161 | 58 | 49 | BSD-3-Clause | 2022-10-16T19:31:26 | 2018-03-16T08:07:37 | null | UTF-8 | Python | false | false | 1,356 | py | def get_response(raw_headers, filter_value, filter_name):
result = ""
for line in raw_headers.headers:
if line[-2:] != '\r\n':
return "Syntax error: missing CRLF: " + line
line = line[:-2]
if ': ' not in line:
return "Syntax error: no colon and space found: " + l... | [
"sunny.nam@samsung.com"
] | sunny.nam@samsung.com |
69e8b76324acdc71454c9bed7115bb9276cc104c | 09f205f74070c53e694d52f0bc72e203a2fd224f | /docs_src/query_params/tutorial006.py | d764c2a863e0809462be935bbc57ab24d2df9b29 | [
"MIT"
] | permissive | RunningIkkyu/fastapi | 53c02fed44b9e30e8617c94ec902be7ca579e42b | 05736c40d3fbb008fd9cdbe1adb8fcef7676e0c6 | refs/heads/master | 2021-05-18T07:58:33.640797 | 2020-05-21T01:36:47 | 2020-05-21T01:36:47 | 251,189,158 | 2 | 0 | MIT | 2020-05-21T01:36:49 | 2020-03-30T03:13:43 | Python | UTF-8 | Python | false | false | 256 | py | from fastapi import FastAPI
app = FastAPI()
@app.get("/items/{item_id}")
async def read_user_item(item_id: str, needy: str, skip: int = 0, limit: int = None):
item = {"item_id": item_id, "needy": needy, "skip": skip, "limit": limit}
return item
| [
"tiangolo@gmail.com"
] | tiangolo@gmail.com |
0556fc6274db7bf87fb08c6b7c4833091be52242 | c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c | /cases/synthetic/tree-big-7522.py | 0de294240c35bc14c520c5cb061c04af8134d8d0 | [] | no_license | Virtlink/ccbench-chocopy | c3f7f6af6349aff6503196f727ef89f210a1eac8 | c7efae43bf32696ee2b2ee781bdfe4f7730dec3f | refs/heads/main | 2023-04-07T15:07:12.464038 | 2022-02-03T15:42:39 | 2022-02-03T15:42:39 | 451,969,776 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 23,291 | py | # Binary-search trees
class TreeNode(object):
value:int = 0
left:"TreeNode" = None
right:"TreeNode" = None
def insert(self:"TreeNode", x:int) -> bool:
if x < self.value:
if self.left is None:
self.left = makeNode(x)
return True
else:
... | [
"647530+Virtlink@users.noreply.github.com"
] | 647530+Virtlink@users.noreply.github.com |
9f5f60cd24bb4ba0a3ed8fc4a7b797829f8a4512 | 181af10fcf40b824fe92d3b8f72fd15d6d1490c2 | /Biweekly Contests/51-100/biweek 98/2568. Minimum Impossible OR/Minimum Impossible OR.py | 6bbcc085906cb358f19e80cbfef2653c5595026a | [] | no_license | wangyendt/LeetCode | 402c59a0b7b7f5b3a672231ea5dad8056ade36af | 4a3ba15284c45b2d8bf38306c8c8526ae174615c | refs/heads/master | 2023-08-10T06:27:54.995152 | 2023-08-10T02:22:27 | 2023-08-10T02:22:27 | 176,651,399 | 6 | 0 | null | null | null | null | UTF-8 | Python | false | false | 518 | py | """
@author: wangye(Wayne)
@license: Apache Licence
@file: Minimum Impossible OR.py
@time: 20230330
@contact: wang121ye@hotmail.com
@site: wangyendt@github.com
@software: PyCharm
# code is far away from bugs.
"""
from typing import *
class Solution:
def minImpossibleOR(self, nums: List[int]) -> int:
nu... | [
"905317742@qq.com"
] | 905317742@qq.com |
160bdd13a34885811fabe3e183291048859c9306 | 4296cb5b97a69382d1fe6b73753a2ffcd1d154c5 | /tenkei90/064.py | 05309a40d520930ec7dd6c78e4e01ef920de1155 | [] | no_license | tokuD/atcoder | a199a5fe92be54d0b66ceaf6158116984f52cd01 | a95a0380af129109fcf48eb1d4994bbb52925320 | refs/heads/master | 2023-08-28T10:28:55.763895 | 2021-11-13T15:49:38 | 2021-11-13T15:49:38 | 371,675,666 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 635 | py | def main():
N,Q = map(int,input().split())
A = list(map(int,input().split()))
LRV = [list(map(int,input().split())) for i in range(Q)]
dif = []
ans = 0
for i in range(N-1):
dif.append(A[i+1]-A[i])
for i in range(N-1):
ans += abs(dif[i])
for i in range(Q):
L,R,V = ... | [
"megumu112851@gmail.com"
] | megumu112851@gmail.com |
5b09999136264f3b86f6cc291e202df18999fb3c | 5fd59608e3b0ea2a92ac19f9104f7a9a7c10bd03 | /apps/components/floors/models.py | 1d6656253db58a9a35934385d3f2eefc22f5ecc2 | [] | no_license | tmac408/makahiki | 47251470e1db3ee2fa6a7fdfd5ac83153dd7945a | c489bc6870a755bcb4c830be9c112047afde9fbe | refs/heads/master | 2021-01-10T20:35:27.096381 | 2011-07-05T04:27:54 | 2011-07-05T04:27:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,973 | py | import datetime
from django.db import models
from django.contrib.auth.models import User
from django.template.defaultfilters import slugify
from django.db.models import Sum, Max, Q
from components.makahiki_base import get_floor_label, get_current_round
# Create your models here.
class Dorm(models.Model):
# Automa... | [
"keoki.lee@gmail.com"
] | keoki.lee@gmail.com |
19047e76956f8fedb8ea5ec36d0d5e187ac40374 | 21aa8c66a53e425b7ab3169c481a472d090ecdc0 | /xcp_abcd/workflow/postprocessing.py | 1ec3523d21f86d5d810b95391862ccf877a48b69 | [
"MIT"
] | permissive | a3sha2/xcp_abcd | 0d1d0a34ce6497f3d3c7fb56f5d0268a9e35748d | 76e8fce12bf445c11a89d1b9de2efdcfa2174dc5 | refs/heads/main | 2023-04-23T20:35:47.949940 | 2021-05-18T12:39:19 | 2021-05-18T12:39:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,283 | py | # emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
# vi: set ft=python sts=4 ts=4 sw=4 et:
"""
post processing the bold/cifti
^^^^^^^^^^^^^^^^^^^^^^^^
.. autofunction:: init_post_process_wf
"""
import numpy as np
from nipype.pipeline import engine as pe
from templateflow.api import get as get_te... | [
"azeez.adebimpe@outlook.com"
] | azeez.adebimpe@outlook.com |
45e77e2a9c803a25003af8d423e528ff7874eea9 | bd9a09a3f1a8b2b5166c540ada93cc5b30591605 | /scanner/plugins/cms/shop7z/shop7z_order_checknoprint_sqli.py | 85f9412e216939cff4178425a6cdb8666ba5093a | [
"MIT"
] | permissive | iceyhexman/onlinetools | 3cb6e349fc30c515f96429abeab5fbcc430ac0cc | 61f2df7ff8e6ad97ca7901728c3ab749679a2bd0 | refs/heads/master | 2023-08-06T19:31:51.328657 | 2022-10-28T04:01:38 | 2022-10-28T04:01:38 | 119,565,769 | 1,662 | 358 | MIT | 2023-03-31T14:34:13 | 2018-01-30T16:51:46 | Python | UTF-8 | Python | false | false | 1,414 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
'''
name: shop7z order_checknoprint.asp SQL注入
referer: http://www.wooyun.org/bugs/wooyun-2010-068345
author: Lucifer
description: 文件order_checknoprint.asp中,参数id存在SQL注入。
'''
import sys
import requests
class shop7z_order_checknoprint_sqli_BaseVerify:
def __init__(self,... | [
"834430486@qq.com"
] | 834430486@qq.com |
0fbf2d8f2f31b5556b486c568da417a2ac0933a1 | 4b379051aa3430eb2d8931f6055772731dcb199d | /512-Python_основы_и_применение/24471/stepik-512_24471-step7.py | 8ead90784919d275251ba0e63a734f6a778ab201 | [] | no_license | dmikos/stepikCourse | 1416614ef51a4352374f37e86e3211c3b42cbaf6 | 3faeabfdc56cac597fb6b1495e7bb38a7f2a6816 | refs/heads/master | 2021-01-12T17:06:37.720050 | 2016-11-21T14:37:20 | 2016-11-21T14:37:20 | 69,057,420 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,043 | py | import requests
import re
from urllib.parse import urlparse
# link = input()
link = "http://hosting.ukrtelecom.ua/stepik-512_24471-step7.html"
# link = "http://pastebin.com/raw/2mie4QYa"
#test3
# link = "http://pastebin.com/raw/7543p0ns"
# link = "http://hosting.ukrtelecom.ua/stepik-512_24471-step7-test3.html"
patter... | [
"dkostinov@gmail.com"
] | dkostinov@gmail.com |
67aa0ecaa841b2950f17b83d5e2e87f4235094b3 | 0a1e4f7105aba084054eaf32e2000efaa564a3cd | /Chap 7/viet_hoa_ten.py | b59b4001c9bd0093bfc5f8ef44fe983fb78fbcb8 | [] | no_license | tucpy/basic_python | b322cf4def209b165a4cd84994f13c41d14d3ec7 | 28adf05c1ef3f81dbcc034daea370d5e5b7b6ad6 | refs/heads/master | 2020-03-29T01:13:52.067014 | 2018-10-27T01:31:15 | 2018-10-27T01:31:15 | 149,378,072 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 208 | py |
chuoi = str(input("Nhap ho va ten: "))
list_tu = chuoi.split()
print(list_tu)
chuoi_xu_ly =""
for tu in list_tu:
tu_xu_ly = tu.capitalize()
chuoi_xu_ly += tu_xu_ly +" "
print(chuoi_xu_ly) | [
"phtu05@gmail.com"
] | phtu05@gmail.com |
310e7dc1e96517addbe6292968c00ff9d8f7b730 | 0b25dc3f9b4ef736e739aadddec33b96dd65a0c8 | /测试/data_time.py | 90ddb7902f29abef8a0087c5857877da14ba8b25 | [] | no_license | ttp55/LearnPy | b123f44a74e4364771491c572705742c15eb33ff | 1530e158bde152e5c585f496dd1e5ffcffdb73bc | refs/heads/master | 2023-05-11T13:02:30.157285 | 2023-05-08T07:13:57 | 2023-05-08T07:13:57 | 196,953,630 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 117 | py | # @time: 2019/8/12 15:49
# @author: WZG
# encoding: utf-8
import datetime
d = datetime.datetime.now()
print(d.hour) | [
"1047697347@qq.com"
] | 1047697347@qq.com |
5b7439666b70413e97fe6747a21e163c2f742c3b | 62e9fb33329fbefa89287e5bc343cb9c120306a1 | /tensorflow_probability/python/distributions/generalized_pareto.py | 8bf088dc807a7e15c4528a51130642d4c7d02d93 | [
"Apache-2.0"
] | permissive | npfp/probability | 3c103d4b9d7a72d3d16eb79b1e4f648afbaca057 | 3911f4463cdcca6cc118633742430885fb0c88cb | refs/heads/master | 2022-05-01T14:23:40.504258 | 2022-04-07T20:08:45 | 2022-04-07T20:10:58 | 246,853,846 | 0 | 0 | Apache-2.0 | 2020-03-12T14:23:04 | 2020-03-12T14:23:03 | null | UTF-8 | Python | false | false | 13,489 | py | # Copyright 2018 The TensorFlow Probability 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 applicable law o... | [
"gardener@tensorflow.org"
] | gardener@tensorflow.org |
630141755dcdf5e0317aa3414d0bb6b99e0586e3 | 12b34dcd389dec2095ef454d9dc89976ff7c7215 | /code/one_max_multiprocessing.py | 402d190d1a000a9391c9f19e047fb9994c41ae2f | [] | no_license | mariosky/PPSN2014 | ce0d64a3f61b36b467acab33297481a7e590dcf0 | a2ce8971951e2af311146d74cb043e68ff90cc67 | refs/heads/master | 2020-05-30T12:03:01.086997 | 2014-11-23T17:01:41 | 2014-11-23T17:01:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,192 | py | __author__ = 'mariosky'
from multiprocessing import Pool
import one_max
import time, yaml
config = yaml.load(open("conf/conf.yaml"))
experiment = "w%d-%d-p%d" % (config["NUMBER_OF_WORKERS"],config["SAMPLE_SIZE"],config["POPULATION_SIZE"])
experiment_id = experiment + "-%d" % round(time.time(),0)
datafile = ope... | [
"mariosky@gmail.com"
] | mariosky@gmail.com |
614d791a27c148a546020e8be0519f9e59df2dd7 | 23f5ef8f31ff54f7166c98f76c00c6fef0dd9caa | /tests/pytests/unit/test_beacons.py | 27940c6f65e5d151e712147a056ff67a91c4cbd1 | [
"Apache-2.0",
"MIT",
"BSD-2-Clause"
] | permissive | afischer-opentext-com/salt | 42bfe2e6e1a86bf8dd30b5a6db4d8e575ac9ca99 | b011a4ed6b29e3d2e8242e5909721dcda75d14df | refs/heads/master | 2022-10-25T00:01:07.138687 | 2021-09-27T16:24:02 | 2021-09-27T16:46:43 | 407,080,050 | 0 | 0 | Apache-2.0 | 2021-09-16T08:12:53 | 2021-09-16T08:12:52 | null | UTF-8 | Python | false | false | 2,476 | py | """
unit tests for the beacon_module parameter
"""
import logging
import salt.config
from tests.support.mock import MagicMock, call, patch
log = logging.getLogger(__name__)
def test_beacon_process():
"""
Test the process function in the beacon class
returns the correct information when an exception
... | [
"mwilhite@vmware.com"
] | mwilhite@vmware.com |
d3cf863162bbc543d350c11218e6b2157ca672c3 | 23759c9e64e6ce82f4d7472b1f9c027b2d34bdad | /01 - News App(Unfinished)/webapp/main/migrations/0004_auto_20200809_0023.py | 50b59513ae34d90868220ea3c96f81de63aa7d3f | [] | no_license | TanimSk/Django-Archive | 77ce5912da5108ff5fd7d95d4e66d1961a3a5bb9 | 69710877df284a85f7b66e9ddb14b8bbb3c90eef | refs/heads/master | 2023-01-29T15:08:41.478146 | 2020-12-05T09:14:41 | 2020-12-05T09:14:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 690 | py | # Generated by Django 3.1 on 2020-08-08 18:23
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('main', '0003_auto_20200807_1810'),
]
operations = [
migrations.AddField(
model_name='main_start',
name='facebook',
... | [
"61817579+baseplate-admin@users.noreply.github.com"
] | 61817579+baseplate-admin@users.noreply.github.com |
9ea3047f9eafa6f106e1402425b14554e09a4be8 | 962fb0927fd2dc998f17a59809b0a508bb043ec0 | /tests/test_app.py | 0351d91848f829e2d4c0cab03b15c6faffbc6b66 | [
"MIT"
] | permissive | mozillazg/tinyq | 9653680c20e00cf973df68cd1c7224a5d8380dcf | fd9ecc593931c9b315c4aeb9150389b3e4ae670e | refs/heads/master | 2023-08-23T21:18:37.207385 | 2017-06-19T14:03:06 | 2017-06-19T14:03:06 | 72,210,812 | 14 | 2 | null | null | null | null | UTF-8 | Python | false | false | 409 | py | # -*- coding: utf-8 -*-
def test_app_delay(app):
@app.task()
def count(x, y):
return x + y
count.delay(1, 2)
assert len(app.schedule_queue.connection.keys('*')) == 1
assert app.schedule_queue.dequeue()
def test_app_call(app):
@app.task()
def count(x, y):
return x + y
... | [
"mozillazg101@gmail.com"
] | mozillazg101@gmail.com |
67569ed3a331217728b35b752ffc10ee42b26f69 | 7394e662a54b5df7307dc0f7a0a7d4ef4d1c045f | /event/models.py | 582a91fee88950db874c607e4109f7b03de98e24 | [] | no_license | Aman563/spectrum-server | a16660c043d7c98a80cf94296e9535cab50e9297 | f41cc13735f1e3a79f22be380bb9ed55489bed03 | refs/heads/master | 2020-04-21T20:58:33.367627 | 2018-01-23T14:34:24 | 2018-01-23T14:34:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,545 | py | from __future__ import unicode_literals
from django.db import models
# Create your models here.
from register.models import UserData
class EventData(models.Model):
name = models.CharField(max_length=120, blank=True, null=True)
round_name = models.CharField(max_length=120, blank=True, null=True)
# rules... | [
"ujjwal.iitism@gmail.com"
] | ujjwal.iitism@gmail.com |
ddfc0ba313bcc76af69e40d2021eb67ef443f3b8 | f3f616801184633a40d767c7f71b3e375fd166d1 | /hackerearth/events/june_circuits/set-2/little_boruto_and_rail_ways/test.py | d1209cc7da862a3d413d6c58a2469cbd1232519c | [
"MIT"
] | permissive | amarish-kumar/coding-challenges | cf0668114929c4cccd92944c1b8cb9c6e029ab9d | d5f998c738058d06a0217fb54f9f03a646384bce | refs/heads/master | 2020-03-21T10:26:08.919197 | 2017-05-20T13:58:50 | 2017-05-20T13:58:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,056 | py | from unittest import TestCase, main as ut_main
import solution as sol
class TestSolution(TestCase):
def test_detect_disjoint_graph(self):
n = 3
edges = [[1, 2], [2, 3]]
graph, nodes = self.make_graph_and_node_list(n, edges)
self.assertEqual(self.start1(sol.detect_disjoint_graph(nodes, graph, n)), [1, 2, 3... | [
"babaiscool@gmail.com"
] | babaiscool@gmail.com |
523cecdfdf690e90f4c33ca6a4f3482ee0066c0b | 6d4c5e79bb36785d5bb127e263aac50cb6729a88 | /venv/Lib/site-packages/jwt/api_jws.py | 5accb1b50077b0d06551fb01ff2c4efebc8b14cc | [] | no_license | Galymbekov/BackWebDevProject | a7683fc205d467629f4ad132370ff4b5ac535277 | 3343fd277bc8994bec3d484072a8ed5f1d99b6bb | refs/heads/main | 2023-04-14T14:06:13.888793 | 2021-04-30T12:12:37 | 2021-04-30T12:12:37 | 362,004,719 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,095 | py | import binascii
import json
import warnings
try:
# import required by mypy to perform type checking, not used for normal execution
from typing import Callable, Dict, List, Optional, Union # NOQA
except ImportError:
pass
from .algorithms import (
Algorithm, get_default_algorithms, has_crypto, requires_c... | [
"47265977+Galymbekov@users.noreply.github.com"
] | 47265977+Galymbekov@users.noreply.github.com |
eb6cddd566669ce91d865ba2e42ef6b5cef7277d | 517a904955033092aec11288151d725548226abc | /pandas_tutorial/data_io/to_json.py | a0ffb8e0237c8dd06a3f62e4a2bca9ba237e9763 | [] | no_license | MinSu-Kim/python_tutorial | ae0a4e3570aa4cb411626cefbc031777364764d5 | ed0c08892822d7054161c9e8f98841370868e82d | refs/heads/master | 2021-06-16T16:15:30.349719 | 2021-05-26T04:59:47 | 2021-05-26T04:59:47 | 207,266,202 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 511 | py | import pandas as pd
# 판다스 DataFrame() 함수로 데이터프레임 변환. 변수 df에 저장
data = {'name': ['Jerry', 'Riah', 'Paul'],
'algol': ["A", "A+", "B"],
'basic': ["C", "B", "B+"],
'c++': ["B+", "C", "C+"],
}
df = pd.DataFrame(data)
df.set_index('name', inplace=True) # name 열을 인덱스로 지정
print(df)
print("#... | [
"net94.teacher@gmail.com"
] | net94.teacher@gmail.com |
fa10145e9aa1763d721507e88caccee956b9b069 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/nouns/_snag.py | 346b4d7003fc041b6b0c9bffbf125482ebf69e9b | [
"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 | 445 | py |
#calss header
class _SNAG():
def __init__(self,):
self.name = "SNAG"
self.definitions = [u'a problem, difficulty, or disadvantage: ', u'a tear, hole, or loose thread in a piece of clothing or cloth caused by a sharp or rough object: ', u'informal for sausage ']
self.parents = []
self.childen = []
self.p... | [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
992ef5c5a51c47b4863fce8bcfdfbd2c973bb95d | be0f3dfbaa2fa3d8bbe59229aef3212d032e7dd1 | /Gauss_v45r9/Gen/DecFiles/options/14103050.py | 600b4f3f3becc10dbe313d0fbf4ba87e67483ba9 | [] | no_license | Sally27/backup_cmtuser_full | 34782102ed23c6335c48650a6eaa901137355d00 | 8924bebb935b96d438ce85b384cfc132d9af90f6 | refs/heads/master | 2020-05-21T09:27:04.370765 | 2018-12-12T14:41:07 | 2018-12-12T14:41:07 | 185,989,173 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 751 | py | # file /home/hep/ss4314/cmtuser/Gauss_v45r9/Gen/DecFiles/options/14103050.py generated: Fri, 27 Mar 2015 16:10:10
#
# Event Type: 14103050
#
# ASCII decay Descriptor: [B_c+ -> (B0 -> K+ K-) pi+]cc
#
from Configurables import Generation
Generation().EventType = 14103050
Generation().SampleGenerationTool = "Special"
from... | [
"slavomirastefkova@b2pcx39016.desy.de"
] | slavomirastefkova@b2pcx39016.desy.de |
1626fb780031dc410b6a61f8a143c903187cca5f | 3922e9b41bf8bf5dd0a0d9abc8852d147a02db0f | /articles/build/lib.linux-i686-2.7/migrations/0007_article_details_time.py | 9db06b6092089d394cf6015df2b0f59025538157 | [] | no_license | levi-p/market | 3ddd0ca20818139c96fa102256f21249d85f104f | 5deb8dbf83ddeb07415bd21703b57f3c3d54aa54 | refs/heads/master | 2020-07-10T18:03:30.316598 | 2017-01-20T15:00:39 | 2017-01-20T15:00:39 | 67,126,320 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 517 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.4 on 2016-08-22 16:14
from __future__ import unicode_literals
import datetime
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('articles', '0006_auto_20160808_1530'),
]
operations = [
migr... | [
"levipda@gmail.com"
] | levipda@gmail.com |
3d80d6041c56250f6eb099cbf6605149393ecf7f | c7386a7a7aafabe9feb8368c42b607cff70dcfe7 | /GPy-devel/setup.py | 2f1dc25f90eaa53cea5e489880498d0ae4ee1b51 | [
"BSD-3-Clause"
] | permissive | dechamoungsri/Prosody_modeling | 8f3d603af6c54786cb048186bab65cfcd5b441f1 | 7895a032dde1c2c34cf42b7c362ca2b61ada0f37 | refs/heads/master | 2021-08-31T02:32:42.813986 | 2017-12-20T06:42:36 | 2017-12-20T06:42:36 | 114,848,055 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,878 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#===============================================================================
# Copyright (c) 2012 - 2014, GPy authors (see AUTHORS.txt).
# Copyright (c) 2014, James Hensman, Max Zwiessele
# Copyright (c) 2015, Max Zwiessele
#
# All rights reserved.
#
# Redistribution a... | [
"mamegomaday@gmail.com"
] | mamegomaday@gmail.com |
386e9f87de2b8a14c1f22d2e81b9b26ff7240681 | e76fda1fba459456c4bc105e7a6dcc6277a1a26c | /a_bite_of_python/20-keyword_only.py | e71eba82c6f9c7dd4676247a610cbae522e006aa | [] | no_license | lafabo/i-love-tutorials | 6bb2a684a201975ab523d9721b02761a6269853c | eafcd47fd62e770107c7e1f08e0d6d60a539f1ec | refs/heads/master | 2021-01-21T04:46:56.365199 | 2016-07-20T17:38:03 | 2016-07-20T17:38:03 | 47,709,568 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 216 | py | def total(initial=5, *numbers, extra_number):
count = initial
for number in numbers:
count += number
count += extra_number
print(count)
total(10, 1, 2, 3, extra_number=50)
total(10, 1, 2 ,3)
| [
"lazyfatboy@ya.ru"
] | lazyfatboy@ya.ru |
528f2d2fd54dc7fe09e75f50c0c94d71c27c51db | 505f1c36d931d4388a0a4f8c57fbd8bd9ab4d821 | /ImageAnalysis/ImageAnalysis/python/docs/conf.py | 4bd685e97dd796c81348cf542b1c3ba2c06100fd | [
"MIT"
] | permissive | mikebourbeauart/perler-printer | 9e43a51b82cb9b08d35c81e680ea7ef2624fda2e | 8c5023de6bb9b3cbe2bc28c1c823030dfd708db4 | refs/heads/master | 2022-12-01T18:46:37.632443 | 2020-05-04T00:41:11 | 2020-05-04T00:41:11 | 98,070,537 | 0 | 1 | MIT | 2022-11-22T05:58:34 | 2017-07-23T02:49:35 | Python | UTF-8 | Python | false | false | 5,452 | py | # -*- coding: utf-8 -*-
#
# Perler Printer documentation build configuration file, created by
# sphinx-quickstart on Mon Oct 09 14:05:44 2017.
#
# This file is execfile()d with the current directory set to its
# containing dir.
#
# Note that not all possible configuration values are present in this
# autogenerated file... | [
"borbs727@gmail.com"
] | borbs727@gmail.com |
c0ca7088e2f0c17f756d8e622ffba7be75a25e7d | a2e673ba5797c242af20821075d76e84113d9503 | /Capitulo 2/Capitulo2-Decisoes.py | f55b8678aac544b2a5f1b22568957305bbdef20a | [] | no_license | Elvis-Lopes/Python-Fiap | ac0a09f44c67b9106a607b7e8082ce0248000316 | 1c10015155f84c8ddee5c8dbd7b21712741e1d1c | refs/heads/master | 2023-06-02T04:37:54.723196 | 2021-06-23T20:37:56 | 2021-06-23T20:37:56 | 377,885,889 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 348 | py | nome = input("Digite o nome: ")
idade = int(input("Digite a idade: "))
prioridade = "Não"
if idade >= 65:
prioridade = "Sim"
print(f'paciente: {nome}\n'
f'Idade: {idade} anos\n'
f'Prioridade: {prioridade}')
else:
print(f'paciente: {nome}\n'
f'Idade: {idade} anos\n'
f... | [
"elvislopes1996@hotmail.com"
] | elvislopes1996@hotmail.com |
8823445b94c9ad0e843e1f5cf51ff814a3180a57 | 32eeb97dff5b1bf18cf5be2926b70bb322e5c1bd | /benchmark/amme/testcase/firstcases/testcase6_025.py | 874c6af813752507bf19190adc33729e91e453ef | [] | no_license | Prefest2018/Prefest | c374d0441d714fb90fca40226fe2875b41cf37fc | ac236987512889e822ea6686c5d2e5b66b295648 | refs/heads/master | 2021-12-09T19:36:24.554864 | 2021-12-06T12:46:14 | 2021-12-06T12:46:14 | 173,225,161 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,763 | py | #coding=utf-8
import os
import subprocess
import time
import traceback
from appium import webdriver
from appium.webdriver.common.touch_action import TouchAction
from selenium.common.exceptions import NoSuchElementException, WebDriverException
desired_caps = {
'platformName' : 'Android',
'deviceName' : 'Android Emulat... | [
"prefest2018@gmail.com"
] | prefest2018@gmail.com |
2670acdaad0515f6c6a13dbfbff6a59c8b062e01 | 500bca3e22bd0c30c79b74918e9847742b3c428e | /sdk/python/endpoints/online/llm/src/sk/app.py | 6c4efd2ff36aeba32c63d59cd924d39133854683 | [
"MIT"
] | permissive | Azure/azureml-examples | 2304c862fd2e36e6640ecc4d09f69c5ed93b48ab | e5f7b247d4753f115a8f7da30cbe25294f71f9d7 | refs/heads/main | 2023-08-31T00:10:14.107509 | 2023-08-30T17:29:22 | 2023-08-30T17:29:22 | 289,334,021 | 1,219 | 1,074 | MIT | 2023-09-14T16:00:55 | 2020-08-21T18:04:26 | Jupyter Notebook | UTF-8 | Python | false | false | 4,917 | py | from __future__ import annotations
import sys, os, json
from flask import Flask, request
import semantic_kernel as sk
import semantic_kernel.connectors.ai.open_ai as sk_oai
from semantic_kernel.planning.basic_planner import BasicPlanner
from semantic_kernel.planning.plan import Plan
from azure.identity import DefaultAz... | [
"noreply@github.com"
] | Azure.noreply@github.com |
415bc40d799acf97c2acf3a2e6cdcadc3d2ab377 | fdb5c8d71839ad15c7942d1367972524d2243573 | /sciwing/infer/seq_label_inference/seq_label_inference.py | 54a7ad00f66c41a732e0b26e794539a37bbfedf5 | [
"MIT"
] | permissive | abhinavkashyap/sciwing | b752b779053a2444f64bcdbc64e2bdc6a0d55ed6 | 1c061b99a35a9d8b565d9762aaaf5db979b50112 | refs/heads/master | 2023-05-12T16:00:08.210458 | 2022-03-25T01:19:00 | 2022-03-25T01:19:00 | 187,997,438 | 58 | 11 | MIT | 2023-05-01T21:26:41 | 2019-05-22T08:36:14 | Python | UTF-8 | Python | false | false | 15,664 | py | import torch.nn as nn
from typing import Optional, Union, Dict, Any, List
import torch
from sciwing.data.datasets_manager import DatasetsManager
from sciwing.data.line import Line
from sciwing.data.seq_label import SeqLabel
from sciwing.infer.seq_label_inference.BaseSeqLabelInference import (
BaseSeqLabelInference,... | [
"abhinav@comp.nus.edu.sg"
] | abhinav@comp.nus.edu.sg |
66494b274cf67dfca2dac51e878dee4bf7d43575 | c8e6cf760a78ec45dbc2d3b6452e352d12da1f43 | /components/unified_consent/DEPS | 42423010fe2e8b1d84ae25a6998fb403a18a2558 | [
"BSD-3-Clause"
] | permissive | tojoyccnu/chromium | 15479d1d9e8159d5eecd61571d33effa78e573b7 | 8cba72403a712767289acb2c7cd06d1116db42cc | refs/heads/master | 2023-03-04T11:55:25.131615 | 2018-06-26T13:34:07 | 2018-06-26T13:34:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 240 | include_rules = [
"+components/autofill/core/common",
"+components/browser_sync",
"+components/keyed_service/core",
"+components/pref_registry",
"+components/prefs",
"+components/sync/base",
"+services/identity/public/cpp",
]
| [
"commit-bot@chromium.org"
] | commit-bot@chromium.org | |
4bfcfba3cd42fe4b8758370453ea882fa441832f | 09e57dd1374713f06b70d7b37a580130d9bbab0d | /data/p4VQE/R3/benchmark/startPyquil724.py | ea617cb370afcd2e188b6722dbf150be0426ed29 | [
"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 | 1,254 | py | # qubit number=4
# total number=15
import pyquil
from pyquil.api import local_forest_runtime, QVMConnection
from pyquil import Program, get_qc
from pyquil.gates import *
import numpy as np
conn = QVMConnection()
def make_circuit()-> Program:
prog = Program() # circuit begin
prog += H(0) # number=1
pr... | [
"wangjiyuan123@yeah.net"
] | wangjiyuan123@yeah.net |
fe019310e5d9258fe9c864c492fea1db00791b9c | c9dc1ddbcf752318ab5ee42bc997493fbe6c6689 | /electrum_mue/plugins/ledger/cmdline.py | 5c7be960031d3f307d6ba4ea81368a298583e087 | [
"MIT"
] | permissive | Hser2bio/electrum-mue | 7ea770bda0ddfbf81bdda6627e4be2745700ec00 | 5369056b54e862826b6c3132d15ecd3a3d6b6bc0 | refs/heads/master | 2020-12-10T15:13:15.878787 | 2020-01-13T15:37:30 | 2020-01-13T15:37:30 | 233,629,634 | 0 | 0 | MIT | 2020-01-13T15:36:34 | 2020-01-13T15:36:33 | null | UTF-8 | Python | false | false | 402 | py | from electrum_mue.plugin import hook
from .ledger import LedgerPlugin
from ..hw_wallet import CmdLineHandler
class Plugin(LedgerPlugin):
handler = CmdLineHandler()
@hook
def init_keystore(self, keystore):
if not isinstance(keystore, self.keystore_class):
return
keystore.handler ... | [
"sotblad@monetaryunit.org"
] | sotblad@monetaryunit.org |
1db9f9e97f277b0a457c123937a3ea8789882f42 | 30258c8e9c35a21fa3ef13c68dfddd23c56568d6 | /interview_bit/arrays/anti_diagnolas.py | fdf867d0fdc3c9ea09ddccd923fa617706d4387d | [] | no_license | venkatachiranjeevi/algorithms | 3e6d525be36ee34f969d49959df1aaad35fcb1d5 | 83724f647102acba00dd028a81e09888ce980785 | refs/heads/master | 2021-06-11T05:23:57.080523 | 2020-04-14T05:16:20 | 2020-04-14T05:16:20 | 128,548,617 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 440 | py | __author__ = 'venkat'
class Solution:
def diagonal(self, a):
n = len(a)
if n < 2 :
return a
res = []
for i in range((2*(n-1))+1):
temp = []
for j in range(i+1):
if j < n and i-j< n:
temp.append(a[j][i-j])
... | [
"chiranjeevi.kokku@tjnovandi.com"
] | chiranjeevi.kokku@tjnovandi.com |
f4cd19786978a0c6c8debd52439fa372b7109bce | a8750439f200e4efc11715df797489f30e9828c6 | /LeetCodeContests/53/53_691.py | 511d5fe0c21fd406c29fae78a7dd7384e353ebbe | [] | no_license | rajlath/rkl_codes | f657174305dc85c3fa07a6fff1c7c31cfe6e2f89 | d4bcee3df2f501349feed7a26ef9828573aff873 | refs/heads/master | 2023-02-21T10:16:35.800612 | 2021-01-27T11:43:34 | 2021-01-27T11:43:34 | 110,989,354 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,441 | py | '''
691. Stickers to Spell Word
User Accepted: 81
User Tried: 374
Total Accepted: 86
Total Submissions: 948
Difficulty: Hard
We are given N different types of stickers. Each sticker has a lowercase English word on it.
You would like to spell out the given target string by cutting individual letters from your collecti... | [
"raj.lath@gmail.com"
] | raj.lath@gmail.com |
9d8f8b6b297bf6b3d3394f9bb85ee1b6ec510681 | e3365bc8fa7da2753c248c2b8a5c5e16aef84d9f | /indices/nnascet.py | 66f37df8ca8a54d0f67848e02c441b22984b608c | [] | no_license | psdh/WhatsintheVector | e8aabacc054a88b4cb25303548980af9a10c12a8 | a24168d068d9c69dc7a0fd13f606c080ae82e2a6 | refs/heads/master | 2021-01-25T10:34:22.651619 | 2015-09-23T11:54:06 | 2015-09-23T11:54:06 | 42,749,205 | 2 | 3 | null | 2015-09-23T11:54:07 | 2015-09-18T22:06:38 | Python | UTF-8 | Python | false | false | 373 | py | ii = [('BentJDO2.py', 2), ('WilbRLW.py', 1), ('LeakWTI2.py', 1), ('LeakWTI3.py', 6), ('LyttELD.py', 1), ('CoopJBT2.py', 2), ('AinsWRR3.py', 1), ('CoolWHM.py', 1), ('ClarGE.py', 1), ('NewmJLP.py', 1), ('CoopJBT.py', 1), ('LeakWTI4.py', 1), ('MedwTAI2.py', 7), ('HogaGMM.py', 1), ('CoolWHM3.py', 1), ('ClarGE3.py', 2), ('T... | [
"varunwachaspati@gmail.com"
] | varunwachaspati@gmail.com |
308783007d464e193ded9e1583032d78d99f45ff | c3a3ae45f6fb22bdb3c622498c7ff1c2c2732f6a | /day16/s12day16/app01/urls.py | d745ed753408795ea2d072a92291eb19df1d6edb | [] | no_license | huyuedong/S12 | df6b56cf05bb9f9c4a6e54b6a5228f1715e20245 | 61aa6d91f4e70f87c9b4c4b1e2042d5eeb2e2c3d | refs/heads/master | 2020-12-14T08:50:57.514965 | 2016-07-30T01:45:03 | 2016-07-30T01:45:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 871 | py | """s12day16 URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.9/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Class-ba... | [
"liwenzhou7@gmail.com"
] | liwenzhou7@gmail.com |
a12029068bf685dcc7c11d2d1ccc4063dd8dbc54 | c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c | /cases/pa3/sample/object_attr_get-108.py | e8818fd053b17f5f19744393b5a5a6900ba499ca | [] | no_license | Virtlink/ccbench-chocopy | c3f7f6af6349aff6503196f727ef89f210a1eac8 | c7efae43bf32696ee2b2ee781bdfe4f7730dec3f | refs/heads/main | 2023-04-07T15:07:12.464038 | 2022-02-03T15:42:39 | 2022-02-03T15:42:39 | 451,969,776 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 182 | py | class A(object):
a:int = 42
class B(A):
b:bool = True
def __init__(self:"B"):
print("B")
a:A = None
b:B = None
a = b = B()
print(a.a)
print(b.$ID)
print(b.b)
| [
"647530+Virtlink@users.noreply.github.com"
] | 647530+Virtlink@users.noreply.github.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.