blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 288 | content_id stringlengths 40 40 | detected_licenses listlengths 0 112 | license_type stringclasses 2
values | repo_name stringlengths 5 115 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 684
values | visit_date timestamp[us]date 2015-08-06 10:31:46 2023-09-06 10:44:38 | revision_date timestamp[us]date 1970-01-01 02:38:32 2037-05-03 13:00:00 | committer_date timestamp[us]date 1970-01-01 02:38:32 2023-09-06 01:08:06 | github_id int64 4.92k 681M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 22
values | gha_event_created_at timestamp[us]date 2012-06-04 01:52:49 2023-09-14 21:59:50 ⌀ | gha_created_at timestamp[us]date 2008-05-22 07:58:19 2023-08-21 12:35:19 ⌀ | gha_language stringclasses 147
values | src_encoding stringclasses 25
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 128 12.7k | extension stringclasses 142
values | content stringlengths 128 8.19k | authors listlengths 1 1 | author_id stringlengths 1 132 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
c708699623a08998c1f48501402016f8c1d2ea7f | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_2751486_0/Python/welter/A.py | 8d53d0009b0ba181b05cadab46f53e23c13c5267 | [] | no_license | alexandraback/datacollection | 0bc67a9ace00abbc843f4912562f3a064992e0e9 | 076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf | refs/heads/master | 2021-01-24T18:27:24.417992 | 2017-05-23T09:23:38 | 2017-05-23T09:23:38 | 84,313,442 | 2 | 4 | null | null | null | null | UTF-8 | Python | false | false | 1,077 | py | import sys
vowels = ['a', 'e', 'i', 'o', 'u']
def solve():
t = int(sys.stdin.readline().strip())
for i in xrange(1, t + 1):
word, n = sys.stdin.readline().strip().split()
n = int(n)
res = 0
vow = 0
tab = [0 for k in xrange(len(word))]
for j, let in enumerate(w... | [
"eewestman@gmail.com"
] | eewestman@gmail.com |
9e6d71a51424ab1892ecd43f502ebb09b82c1636 | 3b50605ffe45c412ee33de1ad0cadce2c5a25ca2 | /python/paddle/fluid/tests/unittests/ipu/test_dropout_op_ipu.py | da2514bdc5a950e57f4d1fd39d98f4871c55b182 | [
"Apache-2.0"
] | permissive | Superjomn/Paddle | f5f4072cf75ac9ecb0ff528876ee264b14bbf8d1 | 7a0b0dab8e58b6a3b28b3b82c43d55c9bd3d4188 | refs/heads/develop | 2023-02-04T20:27:54.244843 | 2023-01-26T15:31:14 | 2023-01-26T15:31:14 | 66,896,049 | 4 | 1 | Apache-2.0 | 2023-04-14T02:29:52 | 2016-08-30T01:45:54 | C++ | UTF-8 | Python | false | false | 2,423 | py | # Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appli... | [
"noreply@github.com"
] | Superjomn.noreply@github.com |
2e4cd1c8e49a2617cb7ccac24429c0ad5f09994d | 2b8d4e22d10ca118fba0100cc87af04f3939448f | /odoo app/dymax/dxl_tax_calculation_on/models/purchase.py | e0a883a4534d75159241bf948c2440c963a3e98a | [] | no_license | ahmed-amine-ellouze/personal | f10c0a161da709f689a3254ec20486411102a92d | 4fe19ca76523cf274a3a85c8bcad653100ff556f | refs/heads/master | 2023-03-28T23:17:05.402578 | 2021-03-25T13:33:18 | 2021-03-25T13:33:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,656 | py | # -*- coding: utf-8 -*-
from odoo import fields, models, api
class PurchaseOrderLineTax(models.Model):
_inherit = 'purchase.order.line'
mrp_price = fields.Float(string="MRP Price")
purchase_tax_cal = fields.Selection([('purchase_price', 'Purchase Price'), ('mrp_price', 'MRP Price'), ], string="Purchase Ta... | [
"hussnainsajid08@gmail.com"
] | hussnainsajid08@gmail.com |
3a3c2018d0b4c396c82e816876d6112563223ca4 | 1f12c8f72833440ff198fc19422d035d8005892b | /tests/test_CLI.py | a0b40c25d20e3603f25be0bf4a288bbc987fbf26 | [
"Apache-2.0"
] | permissive | brackend/taurus | 3baa2b2e0aecd2c50c954f953db2fbb8740534f3 | 3e60ac95c4aa3c227c8dfaeb25ec31ba54be2f3f | refs/heads/master | 2021-01-17T14:06:20.662378 | 2015-12-18T13:48:50 | 2015-12-18T13:48:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,761 | py | """ test """
import os
from bzt.cli import CLI
from tests import BZTestCase, __dir__
from tests.mocks import EngineEmul, ModuleMock
class TestCLI(BZTestCase):
def setUp(self):
super(TestCLI, self).setUp()
self.log = os.path.join(os.path.dirname(__file__), "..", "build", "bzt.log")
self.ve... | [
"apc4@ya.ru"
] | apc4@ya.ru |
32f9222e23220b98b573cb68fab75091ad31955b | ee8745928c53c152b532fbd0faaeabfc3221738a | /detector/detector.py | d6715da62c3e250c609fd806dbc03b9d7f3bfce3 | [
"MIT"
] | permissive | Zumbalamambo/probability-driven-realtime-multiple-object-tracking-using-mobiletnet-and-deep-SORT | 5f2fe0f28f631afc082bf86591d1c74c428b74c0 | 20877a40dae14fbe8b0244a634c484e57c00f5a6 | refs/heads/master | 2020-03-25T11:23:10.203097 | 2018-08-06T12:23:19 | 2018-08-06T12:23:19 | 143,730,223 | 6 | 1 | MIT | 2018-08-06T13:09:38 | 2018-08-06T13:09:37 | null | UTF-8 | Python | false | false | 6,070 | py | # -*- coding: utf-8 -*-
"""
Created on Sun Jun 24 10:29:25 2018
@author: Administrator
"""
import configparser
import cv2
import time
from PIL import Image
from .detector_template import Detector_Template
from .mobilenet_ssd import Mobilenet_Ssd
from .mobilenetv2_ssdlite import Mobilenetv2_Ssdlite
from .squeezenetv1... | [
"jason-dean@outlook.com"
] | jason-dean@outlook.com |
ec42c36f3eaf5df51064d50d282aa200622bec0e | aaad70e69d37f92c160c07e4ca03de80becf2c51 | /filesystem/usr/lib/python3.6/macpath.py | d22290630dd62059d52afb6df7d4e7a21d9da3b9 | [] | no_license | OSWatcher/ubuntu-server | 9b4dcad9ced1bff52ec9cdb4f96d4bdba0ad3bb9 | 17cb333124c8d48cf47bb9cec1b4e1305626b17a | refs/heads/master | 2023-02-10T18:39:43.682708 | 2020-12-26T01:02:54 | 2020-12-26T01:02:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 183 | py | {
"MIME": "text/plain",
"inode_type": "REG",
"magic_type": "Python script, ASCII text executable",
"mode": "-rw-r--r--",
"sha1": "0ebd167e80c63980a13543ec054b359928061d8e"
} | [
"mathieu.tarral@protonmail.com"
] | mathieu.tarral@protonmail.com |
916ec2e54b7bc4ab5351347784d9f81a979f7979 | 8f0aa0b8b8a9c9a8884fa6cb769ee34639e2f355 | /lending_library/lender_profile/admin.py | eabb1675a11c16bb713926f92791c860a93113e7 | [] | no_license | datatalking/django-lender-401d7 | 3f9e2b46e73a0efd17c082b87edf4705ad7ddded | 64eae040c4c778cb96e2dedbdb2de5dc2bc1223b | refs/heads/master | 2020-03-11T17:16:31.631481 | 2017-11-30T23:11:14 | 2017-11-30T23:11:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 147 | py | from django.contrib import admin
from lender_profile.models import LenderProfile
# Register your models here.
admin.site.register(LenderProfile)
| [
"nhuntwalker@gmail.com"
] | nhuntwalker@gmail.com |
3bb4024bdb389ac6de67558a31c5838b9af20740 | 534570bbb873293bd2646a1567b63d162fbba13c | /Python/Algorithm/Sorting/Templates/Selection Sort Linked List.py | 2be2aefff08c7124f56431468f5f221a3467c23e | [] | no_license | XinheLIU/Coding-Interview | fa3df0f7167fb1bc6c8831748249ebaa6f164552 | d6034c567cef252cfafca697aa316c7ad4e7d128 | refs/heads/master | 2022-09-17T14:30:54.371370 | 2022-08-19T15:53:35 | 2022-08-19T15:53:35 | 146,382,499 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 705 | py | # Definition for singly-linked list.
# class ListNode(object):
# def __init__(self, x):
# self.val = x
# self.next = None
class Solution(object):
def selectionSort(self, head):
"""
input: ListNode head
return: ListNode
"""
# dummy node
self.next = head
tail = self
w... | [
"LIUXinhe@outlook.com"
] | LIUXinhe@outlook.com |
acd49f2c5790dfe7f075d092399ce0c3ffc0952d | 2e6b87dccfaf95eded0c26215f42b584cc0ce393 | /tina/pars/base.py | 969612e4bc29b4bf5c332687933e52546d948fd2 | [
"MIT"
] | permissive | taichi-dev/taichi_three | 2d3c4022436777bbd6005a38f8cc27cd1f442430 | 62596cf36fba1c5a528796c51942ce44ed76292a | refs/heads/master | 2023-06-20T19:59:09.218689 | 2021-07-10T09:32:09 | 2021-07-10T09:32:09 | 272,924,688 | 204 | 30 | MIT | 2021-07-10T09:32:10 | 2020-06-17T08:52:31 | Python | UTF-8 | Python | false | false | 192 | py | from ..common import *
@ti.data_oriented
class ParsEditBase:
def __init__(self, pars):
self.pars = pars
def __getattr__(self, attr):
return getattr(self.pars, attr)
| [
"1931127624@qq.com"
] | 1931127624@qq.com |
2da0048ffecf1fde1ab3574b1db6a39c2e62713a | 6085df792d31c9bd7a131ce4d6f81d8ac089ba16 | /PsyNeuLink/tests/stroop_conflict_monitoring.py | 339bda3b33cdca1c366403a07a16c6e70afaaea1 | [] | no_license | OpenSourceBrain/PsyNeuLinkShowcase | 9337b946b1751e2ca2fd21c4c5abbbbd5ff88b14 | e7c6dcce92f77db273f71aac2d12300a0b5c619c | refs/heads/master | 2021-07-10T08:38:20.082906 | 2020-11-18T17:01:10 | 2020-11-18T17:01:10 | 218,997,147 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,478 | py | import psyneulink as pnl
import numpy as np
# CONSTRUCT THE MODEL ***********************************
# Construct the color naming pathway:
color_input = pnl.ProcessingMechanism(
name="color_input", size=2
) # Note: default function is Linear
color_input_to_hidden_wts = np.array([[2, -2], [-2, 2]])
color_hidden... | [
"p.gleeson@gmail.com"
] | p.gleeson@gmail.com |
3ef286386748e44a7e28065042ad7167d096f9cd | 47a219e296a9e46fa03d8865e52d733088b9eb31 | /tamuctf2019/pwn/pwn3/exploit.py | 333052d1c7e6f5e2889bcb5a2726a36c514da3c2 | [] | no_license | tripoloski1337/writeup-ctf | c77c63137d25cddfcfe8be74f17efe5daaecad83 | 726670542b4359f8c2f11f17483a9589f146dbd0 | refs/heads/master | 2022-12-11T13:27:16.506620 | 2020-03-27T01:45:13 | 2020-03-27T01:45:13 | 221,480,319 | 2 | 0 | null | 2022-12-08T01:49:55 | 2019-11-13T14:39:25 | Python | UTF-8 | Python | false | false | 480 | py | from pwn import *
r = process("./pwn3")
r = remote("pwn.tamuctf.com",4323)
context(arch="i386",os="linux")
def main():
offset = 302
r.recvuntil("Take this, you might need it on your journey ")
leak = int(r.recv().replace("!",'').strip(),16)
log.info("leaked buffer : " + str(leak))
shell = asm(shellc... | [
"arsalan.dp@gmail.com"
] | arsalan.dp@gmail.com |
f5434038509d87e4271f81d25bae009756d676c5 | 25ebc03b92df764ff0a6c70c14c2848a49fe1b0b | /daily/20200603/example_egoist/02service/util.py | 12364ddd1d55f4d39d0a218cf9d64c714628ea69 | [] | no_license | podhmo/individual-sandbox | 18db414fafd061568d0d5e993b8f8069867dfcfb | cafee43b4cf51a321f4e2c3f9949ac53eece4b15 | refs/heads/master | 2023-07-23T07:06:57.944539 | 2023-07-09T11:45:53 | 2023-07-09T11:45:53 | 61,940,197 | 6 | 0 | null | 2022-10-19T05:01:17 | 2016-06-25T11:27:04 | Python | UTF-8 | Python | false | false | 2,157 | py | import typing as t
import time
import pathlib
import subprocess
import logging
import contextlib
logger = logging.getLogger(__name__)
class ConnectedProcess:
def ping(
self, p: subprocess.Popen, *, sentinel: str, retries: t.List[float]
) -> float:
start_time = time.time()
for wait_t... | [
"ababjam61+github@gmail.com"
] | ababjam61+github@gmail.com |
71f37393d47f76c8d08010b87b89697624ba822a | 026e973496dcafa74f8217adf0fd20ef761a9c9d | /reception/models.py | 351c70da47df0a95e4f25e72f7d2801f5178c907 | [] | no_license | ErickMwazonga/Malaika | b5b9192fc591d4d8035e75510427dd91230560d0 | b5a17c9de84589abeefb67ed513616364ce8ea0b | refs/heads/master | 2021-01-19T14:21:54.512491 | 2018-04-10T12:01:05 | 2018-04-10T12:01:05 | 88,153,501 | 5 | 3 | null | null | null | null | UTF-8 | Python | false | false | 2,003 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.template.defaultfilters import truncatechars
from django.utils import timezone
from django.db import models
# project imports
from core.models import TimeStampedModel
from hospital.models import Person, Room, Diagnose
from staff.models import... | [
"erickmwazonga@gmail.com"
] | erickmwazonga@gmail.com |
ac0a99f5af9bdc1358fb1fabcdc8e603b9fd4bd8 | 5167f77d96d1dc5412a8a0a91c95e3086acd05dc | /test/functional/rpc_dumptxoutset.py | 3789c5335ab181adcb870a900afe0795702e328a | [
"MIT"
] | permissive | ocvcoin/ocvcoin | 04fb0cea7c11bf52e07ea06ddf9df89631eced5f | 79c3803e330f32ed50c02ae657ff9aded6297b9d | refs/heads/master | 2023-04-30T10:42:05.457630 | 2023-04-15T11:49:40 | 2023-04-15T11:49:40 | 406,011,904 | 3 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,999 | py | #!/usr/bin/env python3
# Copyright (c) 2019-2020 The Ocvcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
"""Test the generation of UTXO snapshots using `dumptxoutset`.
"""
from test_framework.blocktools import ... | [
"contact@ocvcoin.com"
] | contact@ocvcoin.com |
ac9b70d73c49a7ca11cd3437a8b1f07e1e63517f | 21a92e72448715510d509ab0ec07af37f388013a | /heightChecker.py | fcee62685b1b64ca813722d456c140fdf281ac0b | [] | no_license | chlee1252/dailyLeetCode | 9758ad5a74997672129c91fb78ecc00092e1cf2a | 71b9e3d82d4fbb58e8c86f60f3741db6691bf2f3 | refs/heads/master | 2023-01-22T02:40:55.779267 | 2020-12-03T15:01:07 | 2020-12-03T15:01:07 | 265,159,944 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 289 | py | class Solution:
def heightChecker(self, heights: [int]) -> int:
# 1-liner
return sum(i != j for i, j in zip(heights, sorted(heights)))
# for loop
# count = 0
# for i, j in zip(heights, sorted(heights)):
# if i != j:
# count += 1
# return count | [
"chlee1252@gmail.com"
] | chlee1252@gmail.com |
0d534499ae9698867c2753f62c62039b30f42d6f | 6e7de1f68bdc9baf4e76b8028228834705796516 | /src/store/models.py | c844a022ca55bb0c8d3b0e102eb3e3c5486b387a | [] | no_license | sainihimanshu1999/nupur-studios | 5f386091a9f4c6240d0168ba5cd988bf9293f12f | 6b4145ebe40f59db89521404d8b9b8332debf6e0 | refs/heads/master | 2022-05-30T06:09:48.492284 | 2020-05-03T12:55:06 | 2020-05-03T12:55:06 | 260,825,836 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 543 | py | from django.db import models
from django.conf import settings
class Profile(models.Model):
firstname = models.CharField(max_length=100)
phone = models.CharField(max_length=11)
email = models.EmailField(max_length=100)
notes = models.TextField(max_length=255)
twitter = models.CharField(max_length=1... | [
"sainihimanshu.1999@gmail.com"
] | sainihimanshu.1999@gmail.com |
6e666b93b7bb48f4205577ae9864d65376e4b9f7 | e6902d223c01b258c4d0c4f9334aa3b349e72d3c | /pandas/tests/series/methods/test_describe.py | ed412e7da3d43d7959fcd95bb6397948919e39fc | [
"BSD-3-Clause"
] | permissive | ivan-vasilev/pandas | a2650c5b4fda66fc217823ad448f07b917cce2c6 | 4071dde86e33434e1bee8304fa62074949f813cc | refs/heads/master | 2020-12-01T15:07:33.001715 | 2020-01-01T23:39:53 | 2020-01-01T23:39:53 | 230,673,502 | 1 | 0 | BSD-3-Clause | 2020-01-01T20:34:35 | 2019-12-28T22:06:08 | Python | UTF-8 | Python | false | false | 2,293 | py | import numpy as np
from pandas import Series, Timestamp, date_range
import pandas.util.testing as tm
class TestSeriesDescribe:
def test_describe(self):
s = Series([0, 1, 2, 3, 4], name="int_data")
result = s.describe()
expected = Series(
[5, 2, s.std(), 0, 1, 2, 3, 4],
... | [
"jeff@reback.net"
] | jeff@reback.net |
705ef7b28eb7e17ce4139a7b7b8ace49b6e33aac | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03607/s215721785.py | e24558e12aef2b67d7d16da9d3d6a94035b628c7 | [] | 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 | 226 | py | N = int(input())
A = [0] * N
for i in range(N):
A[i] = int(input())
from collections import Counter
c = Counter(A)
cc = list(c.values())
ans = 0
for i in range(len(cc)):
if cc[i] % 2 == 1:
ans += 1
print(ans) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
1c2609825ebfd0607ed5edc2aa174be8254c9299 | 964d0b9d67f06ae7f6b29b6fd206e4347b16c15f | /setup.py | 9074e47eb1c6e34b020820a9153af32fb7944f26 | [
"MIT"
] | permissive | githurc/slackchannel2pdf | b6fa22e45f00a5bb8bc1fa44e3fad6a0326ae288 | 20067d7e3874500c48f1fc5bd5d5409088bec461 | refs/heads/master | 2021-01-16T15:41:13.440113 | 2020-01-06T17:09:27 | 2020-01-06T17:09:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 351 | py | from distutils.core import setup
setup(
name='slackchannel2pdf',
version='0.4.0',
author='Erik Kalkoken',
packages=['slackchannel2pdf',],
license='LICENSE',
description='slackchannel2pdf is a command line tool for exporting the text contents of any Slack channel to a PDF file',
long_descrip... | [
"erik.kalkoken@gmail.com"
] | erik.kalkoken@gmail.com |
da4755eb92e28f2125378c1a23502faca25d19e2 | 632dcb4e37cadd87cb7ff8715b0048df5cd0d11b | /CompuCell3D/core/Demos/PyCoreSpecs/AdhesionDemo/Simulation/AdhesionDemo.py | 26c0b8bf6f986e7b583417ffe5f900cda7c38d61 | [
"MIT"
] | permissive | CompuCell3D/CompuCell3D | df638e3bdc96f84b273978fb479842d071de4a83 | 65a65eaa693a6d2b3aab303f9b41e71819f4eed4 | refs/heads/master | 2023-08-26T05:22:52.183485 | 2023-08-19T17:13:19 | 2023-08-19T17:13:19 | 12,253,945 | 51 | 41 | null | 2023-08-27T16:36:14 | 2013-08-20T20:53:07 | C++ | UTF-8 | Python | false | false | 4,321 | py | """
AdhesionFlex Plugin Demo
Adjust the sliders to change the binding energy of two molecules, each of which is only on the surface of a particular
cell type. A third cell type has neither molecule.
Written by T.J. Sego, Ph.D.
Biocomplexity Institute
Indiana University
Bloomington, IN
"""
from cc3d import CompuCellS... | [
"tjsego@gmail.com"
] | tjsego@gmail.com |
6627b9d8fa841021176d1d8363b49e38ef6709d6 | 4fff1f4b6f05a028c633a7863e9b3ca709405fe2 | /solar_pannel_placement.py | f1e0a8237945f808b9424bbf9a2e4f53f7fa0d6a | [] | no_license | Ajax12345/My-Python-Projects | 5805e55a2313a0462dea20c1398126083c57d68c | 4549142190a7e57b6facb510ce58a8abb6c73eae | refs/heads/master | 2021-01-10T23:33:25.934196 | 2019-02-22T00:11:05 | 2019-02-22T00:11:05 | 70,593,019 | 0 | 3 | null | null | null | null | UTF-8 | Python | false | false | 565 | py | def find_maximum(val):
maximum = val[0]
final_list = []
for i, a in enumerate(val):
new_list = [a]
for b in val[i+1:]:
copy = new_list
copy.append(b)
if sum(copy) > maximum:
new_list = copy
final_list.append(new_list)
return ... | [
"noreply@github.com"
] | Ajax12345.noreply@github.com |
9aa4e21ab124587e030f6b2c6fa8782ebf2c88ef | 98c6ea9c884152e8340605a706efefbea6170be5 | /examples/data/Assignment_7/smtjer002/push.py | e30b721dfa0d1f86e777b35c529254cd43719107 | [] | no_license | MrHamdulay/csc3-capstone | 479d659e1dcd28040e83ebd9e3374d0ccc0c6817 | 6f0fa0fa1555ceb1b0fb33f25e9694e68b6a53d2 | refs/heads/master | 2021-03-12T21:55:57.781339 | 2014-09-22T02:22:22 | 2014-09-22T02:22:22 | 22,372,174 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,113 | py | """A list of functions to be used to move the numbers on a grid in the game 2048
by Jeremy Smith SMTJER002
1 May 2014"""
import util
def push_up (grid):
"""merges grid values upwards"""
#moves values upwards
old_grid = [[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0]]
while util.grid_equal(grid,old_... | [
"jarr2000@gmail.com"
] | jarr2000@gmail.com |
51a7a501d1159e8dea924414fb864f4667a0f005 | df55759bac7f788aa0c7ddbc620154ce2625b38a | /odps/ml/metrics/regression.py | 6d07bbd10b871853b610ef4c371aa6ad7024b477 | [
"Apache-2.0"
] | permissive | yjjsdu/aliyun-odps-python-sdk | 7b4bb21583d9fc8132157fd03f0ca7af2e410f26 | 72ba6ecc2e70d50a581385fffb4fedd1950ed285 | refs/heads/master | 2021-01-09T20:04:24.357789 | 2017-01-25T02:13:37 | 2017-01-25T02:13:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,867 | py | # encoding: utf-8
# Copyright 1999-2017 Alibaba Group Holding 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 b... | [
"xuye.qin@alibaba-inc.com"
] | xuye.qin@alibaba-inc.com |
8c3ab7b44d678cc27d84f7ed9cbd41cbbe6fa4e5 | 28dbd53654532cbf887e6a79e07ce98c6eaba4f2 | /adventofcode/problems/days/day09/internal/states/__init__.py | 2b4d521344662dd176e1cb9a4ce6bf1b19f9a503 | [
"Unlicense"
] | permissive | StaNov/AdventOfCode | d41f2c730a19ef6824af2581a77c0bc718af5fa6 | e03ad7343a1380bde66945c96f9b0e5b3d9bd0f0 | refs/heads/master | 2021-07-09T04:34:28.356926 | 2020-09-28T16:50:49 | 2020-09-28T16:50:49 | 75,472,443 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 160 | py | from .lettersprocessorstatecontext import LettersProcessorStateContext
from .lettersprocessorstatecontextrecursive import LettersProcessorStateContextRecursive
| [
"stanovec@gmail.com"
] | stanovec@gmail.com |
c6dd35f04e90c47eac4134ae1d0566a88fe24337 | fbfb781babfb19eba4383e20802fed321c634a92 | /main/rfserver | 187c0394cecb0dd8e0e3fa1b6ae165afe755ccc7 | [] | no_license | pombredanne/scripts-3 | 35acb0417216c33a50456468b81a056302ccda1e | 7347ffee55a23b50d2969cc93ae9a8a22f791134 | refs/heads/master | 2022-03-18T09:57:18.222190 | 2021-06-20T18:31:02 | 2021-06-20T18:38:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 133 | #!/usr/bin/env python3
import sys
from rfuncs import server as rfserver
if __name__ == '__main__':
sys.exit(rfserver.main())
| [
"bryanbugyi34@gmail.com"
] | bryanbugyi34@gmail.com | |
6a87ab4de8535e7443c88d1d9edeff1bcbf98589 | 0b10a214610f94c65acc2bda4a63451c61b04f2c | /pythonforandroid/bootstraps/webview/__init__.py | 392608677b729586d994a051c8c0a2a9003b19c5 | [
"MIT",
"Python-2.0"
] | permissive | luckiday/python-for-android | 66af155bcc9b4515cf071c07fc5409aeebfef8ba | 4d450ddeef914d53bbc5b8bc80b81f778cb17d0a | refs/heads/master | 2020-09-16T05:08:52.066126 | 2020-01-07T02:39:36 | 2020-01-07T02:39:36 | 223,662,967 | 0 | 0 | MIT | 2019-11-23T22:44:25 | 2019-11-23T22:44:24 | null | UTF-8 | Python | false | false | 5,904 | py | from pythonforandroid.toolchain import Bootstrap, shprint, current_directory, info, warning, ArchARM, info_main
from os.path import join, exists, curdir, abspath
from os import walk
import glob
import sh
class WebViewBootstrap(Bootstrap):
name = 'webview'
recipe_depends = ['genericndkbuild', ('python2', 'pyth... | [
"alexanderjohntaylor@gmail.com"
] | alexanderjohntaylor@gmail.com |
b4d7ed92dec0fa1a27ce11994832981540cdd28f | 796bcdb27836176d3c315e46a718fa5f8ec021de | /tuframework/evaluation/add_mean_dice_to_json.py | ab2d8fcdf27b03d6221905d4076b0660f21832a0 | [
"Apache-2.0"
] | permissive | Magnety/tuFramework_win | 8c85c58814e94223dd5a946da821bcce8bcc9919 | 4c49e1fdb292aaf1945c81d5d9bc57db0eea42b3 | refs/heads/master | 2023-05-01T20:51:56.375496 | 2021-05-17T12:50:02 | 2021-05-17T12:50:02 | 368,022,971 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,030 | py | # Copyright 2020 Division of Medical Image Computing, German Cancer Research Center (DKFZ), Heidelberg, Germany
#
# 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://w... | [
"liuyiyao0916@163.com"
] | liuyiyao0916@163.com |
ce10305993bee80046afaf327813b550eda804c9 | 7257d16c3352283a5e0237db74870374531d8e2d | /ch17/ex07.py | 8ae15a32b8145f8c14bb559b684458fa881dbc14 | [] | no_license | EunhyeKIMM/python | 886703a3ace8c51e4cf00d23ae5d6bfd99cd7e92 | b4de600d9fccdd8f5fbef2a387d63f99610b67ed | refs/heads/master | 2023-02-19T05:12:54.500019 | 2021-01-20T15:49:01 | 2021-01-20T15:49:01 | 329,340,972 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 184 | py | def outer(func):
def wrapper():
print("-"*20)
func()
print("-"*20)
return wrapper
@outer
def inner():
print("결과를 출력합니다.")
inner() | [
"kimeunhye0710@gmail.com"
] | kimeunhye0710@gmail.com |
951c40bba42685facdefc9ddf4a6deb77f3b647a | c7e765a9bed33d3bfb21774e3995bf4a09e04add | /adminmgr/media/code/A3/task3/BD_005_105_295_mVVmrf1.py | d44825bb2b81feefc690b57511e86c0ae3557994 | [
"Apache-2.0"
] | permissive | IamMayankThakur/test-bigdata | 13dd2ac7fb76c9baed6c3a0aa943057a22e2d237 | 7f507918c7bec31c92eedcd94491a83486623049 | refs/heads/master | 2022-05-03T00:59:44.127494 | 2022-02-10T19:50:16 | 2022-02-10T19:50:16 | 201,585,028 | 10 | 4 | Apache-2.0 | 2022-04-22T23:39:45 | 2019-08-10T05:34:09 | Python | UTF-8 | Python | false | false | 1,796 | py | import findspark
findspark.init()
from pyspark import SparkConf,SparkContext
from pyspark.streaming import StreamingContext
from pyspark.sql import Row,SQLContext
import sys
import requests
from pyspark.sql.functions import explode
from pyspark.sql.functions import split
from pyspark.sql.functions import lit
def get... | [
"ubuntu@ip-172-31-18-251.ap-south-1.compute.internal"
] | ubuntu@ip-172-31-18-251.ap-south-1.compute.internal |
bf0abb30ef6f7ecec23db9b10b42f8c941234bef | 83e2fe88d4537403ee710b631d7d3e8c65415092 | /services/web__dutchnews_nl.py | f85746b22d953cea15bb78058b433f2510fc8b7e | [] | no_license | ArchiveTeam/NewsGrabber-Services | b01f560b18bd5395673132321c16bcf7602608f1 | 2d52eb06a6ca767f4b1d1e623505fa427b6af459 | refs/heads/master | 2020-01-23T21:40:57.220775 | 2019-07-01T09:56:38 | 2019-07-01T09:56:38 | 74,690,301 | 3 | 8 | null | 2019-06-03T19:49:47 | 2016-11-24T16:41:59 | Python | UTF-8 | Python | false | false | 190 | py | refresh = 300
version = 20161106.01
urls = ['http://www.dutchnews.nl/',
'http://www.dutchnews.nl/feed/?news']
regex = [r'^https?:\/\/[^\/]*dutchnews\.nl']
videoregex = []
liveregex = []
| [
"Arkiver@hotmail.com"
] | Arkiver@hotmail.com |
57383246bfa7da80b35039c0269c3204a5c4ea59 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02747/s138070179.py | bee8fb7203bf452aa559ff1067d8acea91464982 | [] | 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 | 319 | py | S = input()
flg = True
for i in range(len(S)):
if flg == True and S[i] == "h":
flg = False
continue
elif flg == False and S[i] == "i":
flg = True
continue
else:
print("No")
break
else:
if flg == False:
print("No")
else:
print("Yes") | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
e1a8e18b0d8592a68e2e86658d40837c3f539398 | bcc7011cb121e653d831e77206e541675e348337 | /Add_Binary.py | 91f5916301c37b56d4a96ce9d1db7d657e76a29c | [] | no_license | Built00/Leetcode | 2115c20bf91e9f9226ce952293132bc7a852fe86 | ec3c0d4bd368dd1039f0fed2a07bf89e645a89c3 | refs/heads/master | 2020-11-24T09:12:08.172973 | 2018-03-27T01:23:08 | 2018-03-27T01:23:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,310 | py | # -*- encoding:utf-8 -*-
# __author__=='Gan'
# Given two binary strings, return their sum (also a binary string).
#
# For example,
# a = "11"
# b = "1"
# Return "100".
class Solution(object):
def addBinary(self, a, b):
"""
:type a: str
:type b: str
:rtype: str
"""
m... | [
"binwengan@gmail.com"
] | binwengan@gmail.com |
5d34f0b0b41b12a4fa686986aefa462e009d2b77 | a643c2ed78b48e4cacf140776fbedd0191881e18 | /samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_invalid_string_value_for_default_response_body_for_content_types/post.pyi | 98e0646ddd119e12c4570a6106caa9ae9fc1b772 | [
"Apache-2.0"
] | permissive | padamstx/openapi-generator | 5ae41f68a4f9349d76c1db81b9ff82e18e5b4b7c | 00604aff594864447c134ddb1982565136e27857 | refs/heads/master | 2023-03-08T20:11:36.318959 | 2022-09-28T16:34:17 | 2022-09-28T16:34:17 | 160,528,958 | 0 | 1 | Apache-2.0 | 2023-02-24T16:13:11 | 2018-12-05T14:17:50 | Java | UTF-8 | Python | false | false | 4,262 | pyi | # coding: utf-8
"""
Generated by: https://openapi-generator.tech
"""
from dataclasses import dataclass
import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
from unit_test_api import api_client, exceptions
from datetime import date, datetime # noqa: F401
import decimal # noq... | [
"noreply@github.com"
] | padamstx.noreply@github.com |
803c0ec0b2603869ff31c20823e10def5ca08cf8 | a9117d287019a6860693e8f6dbfac152f5e92a75 | /prep/prep_8.py | b2e6f6bc97a20c06009d01197af2f216e281ce0d | [] | no_license | backonhighway/kaggle_elo | 48a2e4eda9ef5025665564b22f99bfe2cf296dc6 | 636c1ecc64d70c9f1375653687679b745b8bf6db | refs/heads/master | 2020-04-29T01:26:23.269169 | 2019-02-28T15:29:39 | 2019-02-28T15:29:39 | 175,730,137 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,331 | py | import os, sys
ROOT = os.path.abspath(os.path.join(os.path.dirname(os.path.abspath(__file__)), '../../'))
sys.path.append(ROOT)
from elo.common import pocket_timer, pocket_logger, pocket_file_io, path_const
from elo.fe import first_last_fe, para_fe2
import pandas as pd
logger = pocket_logger.get_my_logger()
timer = po... | [
"pocketsuteado@gmail.com"
] | pocketsuteado@gmail.com |
623005a530f105b5418e2decdcf9021f58254a6d | c609730a43596a2d3303f072fc97d9cf681fac7b | /cagey/huachen/koubei_gb.py | 4642807768de634e3de791b6648bb74840a94075 | [] | no_license | sinnettluo/ChenProject | 5403311c0c7b78c484145e16d692abff00d2a110 | 0e33ecf1683afb22f1deb4bd54294c41aed8a46b | refs/heads/master | 2023-03-22T23:48:08.430178 | 2020-09-02T15:05:02 | 2020-09-02T15:05:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,612 | py | __author__ = 'cagey'
import pandas as pd
import pymysql
from sqlalchemy import create_engine
from pybloom_live import ScalableBloomFilter
from hashlib import md5
import re
from multiprocessing import Process
from multiprocessing import Pool
import os, time, random
def not_empty(s):
return s and s.strip()
# num = ... | [
"1316446041@qq.com"
] | 1316446041@qq.com |
a7f4f9d04e55b7bae98ec780f12352ff7046d66d | 96a34a048c783a75736bf0ec775df22142f9ee53 | /packages/models-library/src/models_library/utils/docker_compose.py | cec056f02b3e7aca79c633bb3cc30967f1965eac | [
"MIT"
] | permissive | ITISFoundation/osparc-simcore | 77e5b9f7eb549c907f6ba2abb14862154cc7bb66 | f4c57ffc7b494ac06a2692cb5539d3acfd3d1d63 | refs/heads/master | 2023-08-31T17:39:48.466163 | 2023-08-31T15:03:56 | 2023-08-31T15:03:56 | 118,596,920 | 39 | 29 | MIT | 2023-09-14T20:23:09 | 2018-01-23T10:48:05 | Python | UTF-8 | Python | false | false | 1,351 | py | import yaml
from ..service_settings_labels import ComposeSpecLabelDict
from .string_substitution import SubstitutionsDict, TextTemplate
# Notes on below env var names:
# - SIMCORE_REGISTRY will be replaced by the url of the simcore docker registry
# deployed inside the platform
# - SERVICE_VERSION will be replaced by... | [
"noreply@github.com"
] | ITISFoundation.noreply@github.com |
f0040ea735f6b4f1519a5d63cece90812948ab5f | dbfdbe3c1d5e3ad38625d8c971fe8dd45c8c3885 | /device_agent/snmp/libs/pysnmp-4.4.5/pysnmp/hlapi/twisted/transport.py | aeea22da88b3b9d2f0b2251d8bb4ca4af697ac33 | [
"BSD-2-Clause",
"BSD-3-Clause"
] | permissive | fyfdoc/IntegrateTest | a58f6d0ea7cff5f67d79d7e042c0bb39c6b8bbbb | 0d8374406c10c313d6627699879215841e0ebdb6 | refs/heads/master | 2022-12-03T02:32:37.388556 | 2019-01-25T02:36:42 | 2019-01-25T02:36:42 | 167,468,256 | 0 | 1 | null | 2022-11-29T20:58:41 | 2019-01-25T01:59:28 | Python | UTF-8 | Python | false | false | 2,218 | py | #
# This file is part of pysnmp software.
#
# Copyright (c) 2005-2018, Ilya Etingof <etingof@gmail.com>
# License: http://snmplabs.com/pysnmp/license.html
#
import socket, sys
from pysnmp.carrier.twisted.dgram import udp
from pysnmp.hlapi.transport import AbstractTransportTarget
from pysnmp.error import PySnmpError
__... | [
"fengyanfeng@datangmobile.cn"
] | fengyanfeng@datangmobile.cn |
d8496dfd81c5ba45555f64a2179cee60e3eec184 | ad15e673bdaba2b74e37eab459f5f69f77318205 | /3_rockPaperScissor/2_refactoringRPS.py | 17ffdd2f7246354b72483fcae4b9eca35d0eea9e | [] | no_license | RobertNguyen125/Udemy-Python-Bootcamp | a52fa00b26c6051a4b288019b3f2fbb5ce075d17 | efbda03803bb1315c89302ea21d730d3e7d1d4bf | refs/heads/master | 2021-03-03T07:43:10.576325 | 2020-03-09T04:33:35 | 2020-03-09T04:33:35 | 245,943,518 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 604 | py | player1 = input('Player 1:')
print('**No Cheating** \n \n' * 20)
player2 = input('Player 2:')
if player1 == player2:
print("Draw")
elif player1 == 'rock':
if player2 == 'scissor':
print('Player 1 wins')
elif player2 == 'paper':
print("Player 2 wins")
elif player1 == 'scissor':
if playe... | [
"ngaduc92@gmail.com"
] | ngaduc92@gmail.com |
83e72b757b0550fbaadaaab821401f3ea3b2bff5 | a4e59c4f47873daf440374367a4fb0383194d2ce | /Python/438.py | ec732f807e794f4025bac423778e0699a84b5659 | [] | no_license | maxjing/LeetCode | e37cbe3d276e15775ae028f99cf246150cb5d898 | 48cb625f5e68307390d0ec17b1054b10cc87d498 | refs/heads/master | 2021-05-23T17:50:18.613438 | 2021-04-02T17:14:55 | 2021-04-02T17:14:55 | 253,406,966 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 723 | py | class Solution:
def findAnagrams(self, s: str, p: str) -> List[int]:
d = {}
l, matched, res = 0, 0, []
for c in p:
d[c] = d.get(c, 0) + 1
for r in range(len(s)):
rightChar = s[r]
if rightChar in d:
d[rightChar] -= 1
... | [
"tvandcc@gmail.com"
] | tvandcc@gmail.com |
4c8dfa94a469b194f36a38dfb1ad1b0a707f7a20 | 4cc73398ca7bcdc7e074c8bb39d11f4c832a4d15 | /oct2py/tests/test_misc.py | f25e20507d9b38e3998abddba325063cf09eb01c | [
"MIT"
] | permissive | hdfeos/oct2py | 1f400b2a1148bb2b2ca2f481593474cf8640c8b8 | 8b28f29ed573ee2dbbb51bdc0c04bdb6d0ee78c7 | refs/heads/master | 2021-01-13T15:26:34.392517 | 2016-12-27T11:44:05 | 2016-12-27T11:44:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,483 | py | from __future__ import absolute_import, print_function
import glob
import logging
import os
import shutil
import sys
import tempfile
import threading
import time
try:
import thread
except ImportError:
import _thread as thread
import numpy as np
import numpy.testing as test
import oct2py
fr... | [
"steven.silvester@ieee.org"
] | steven.silvester@ieee.org |
ef0857a7193fedb3b0dbd9f34c986873a06f384a | add74ecbd87c711f1e10898f87ffd31bb39cc5d6 | /xcp2k/classes/_program_run_info53.py | a7419ce5a8948bea1e366ae636e7f444a20c3f67 | [] | no_license | superstar54/xcp2k | 82071e29613ccf58fc14e684154bb9392d00458b | e8afae2ccb4b777ddd3731fe99f451b56d416a83 | refs/heads/master | 2021-11-11T21:17:30.292500 | 2021-11-06T06:31:20 | 2021-11-06T06:31:20 | 62,589,715 | 8 | 2 | null | null | null | null | UTF-8 | Python | false | false | 695 | py | from xcp2k.inputsection import InputSection
from xcp2k.classes._each548 import _each548
class _program_run_info53(InputSection):
def __init__(self):
InputSection.__init__(self)
self.Section_parameters = None
self.Add_last = None
self.Common_iteration_levels = None
self.File... | [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
c6f4a1d54083448c072b37ca0fa93a75a90be859 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_190/ch119_2020_04_01_16_09_46_856338.py | 07b47717ee32267f2301ddd83c8164d69a55fd4a | [] | 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 | 168 | py | import math
def calcula_euler(x, n):
i=1
euler=1
while i<n:
y=((x**i)/math.factorial(i))
euler+=y
i+=1
return euler | [
"you@example.com"
] | you@example.com |
c10c1614a346815775f867efbdf0a8c23259293c | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/7/usersdata/67/3681/submittedfiles/esferas.py | 674ab7cf9d36a10ba6ba7aa33a8a18cd81b48b70 | [] | 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 | 248 | py | # -*- coding: utf-8 -*-
from __future__ import division
a=input("Digite o valor de a:")
b=input("Digite o valor de b:")
c=input("Digite o valor de c:")
d=input("Digite o valor de d:")
if a==b+c+d and b+c==d and b==c
print("S")
else
print("N")
| [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
3a7f77e77b573ef39bfc6f29b870585e2e5d0628 | 8c61f5851423ffcf26fb716f628d283672200748 | /exercicios-membros/Raul/Lista_3/ex4.py | b0dd38fe04ed3424861367812d32a3cfe165c7f7 | [] | no_license | ieee-saocarlos/ia-2019 | 8f76bdffc4a5fc102fb7f7159a86763c2a967e43 | 6f9072e5caf9a354e948c9c8dd512c1118c7ebd2 | refs/heads/master | 2022-03-27T05:52:21.428227 | 2019-10-30T08:03:23 | 2019-10-30T08:03:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 712 | py | def imprimir_1 (n):
for x in range(1, n + 1):
for y in range(1, x + 1):
print ('\t {}'.format(y), end = '')
print (end = '\n')
return
def imprimir_2 (n):
for x in range(1, n + 1):
print ('\t {}'.format(x) * x)
return
def imprimir_quad (n):
for linha in range(1... | [
"erictkurachi@gmail.com"
] | erictkurachi@gmail.com |
d7c28ddf7704841597e3f38f8c0a42736f2736fc | ce8c59b637d024424d331c1b2b9df3bd9d91c5a5 | /tasks_26/solutions/26-44.py | e1913b5c27ba08ad8bb7994dd948974f51101cc0 | [] | no_license | htmlprogrammist/kege-2021 | 7ca9155724e8041b807405d23391fb6503a7589b | 4fa3cd9a0cc4213bbdf4576894953452b256b56e | refs/heads/master | 2023-06-03T19:56:09.160795 | 2021-06-25T09:07:31 | 2021-06-25T09:07:31 | 308,915,777 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 450 | py | with open("26-44_.txt") as F:
N = int(F.readline())
data = []
for i in range(N):
data.append( int(F.readline()) )
data.sort()
last = 500
ma = 0
discount = 0
while data:
chunk = [x for x in data if x <= last]
if chunk:
mid = len(chunk)//2
if mid > 0:
discount += sum(chunk[... | [
"badmaeve2511@gmail.com"
] | badmaeve2511@gmail.com |
414844d64105fa5478cc6253ea0092e4e716f9f6 | 5945903ff7b3c0be799d8b228aa96309e8d6b68a | /LeetCode_64.py | 980ede660a5578ba132da2802e64b81e1c9d2e5a | [] | no_license | freesan44/LeetCode | 44fd01fa37e2d7e729ae947da2350b1649c163ae | 2ed9f1955c527d43fe1a02e5bebf5a6f981ef388 | refs/heads/master | 2021-12-07T20:07:02.308097 | 2021-11-01T23:58:11 | 2021-11-01T23:58:11 | 245,178,582 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,010 | py | class Solution:
def minPathSum(self, grid: [[int]]) -> int:
rowLen = len(grid[0])
colLen = len(grid)
countGrid = [[0]*rowLen for i in range(colLen)]#初始化统计步数矩阵
countGrid[0][0] = grid[0][0]
for i in range(1, rowLen):
countGrid[0][i] = countGrid[0][i-1] + grid[0][i]
... | [
"freesan44@163.com"
] | freesan44@163.com |
fadcf185304b8d694e95cb4c75b1eec7009f6fa0 | 773e6eefd35d3fe8f86faed6f8de0470e9da722f | /tests/blockchain/test_merkle.py | 1facf0571e1e8dde5d7b4231e7f1c30df162fb1f | [] | no_license | imnisen/pybtcd | 5a9e13b0461e41958e3d1c948100e20c92459d43 | b89ec2063348805755d9f2c474a1494f0fb6ef46 | refs/heads/master | 2020-03-28T03:11:01.877408 | 2019-11-05T07:07:26 | 2019-11-05T07:07:26 | 147,625,874 | 2 | 2 | null | 2019-11-05T07:07:27 | 2018-09-06T06:09:40 | Python | UTF-8 | Python | false | false | 509 | py | import unittest
import wire
import chainhash
import btcutil
from blockchain.merkle import *
from tests.blockchain.common import *
class TestMerkle(unittest.TestCase):
def test_build_merkle_tree_store(self):
block = btcutil.Block(msg_block=Block100000)
merkles = build_merkle_tree_store(block.get_tr... | [
"imnisen@gmail.com"
] | imnisen@gmail.com |
6ab0475457a3e213a64148355c594eb4da6648f5 | 8578ae5be776b49559fa95ce30f6b45b6a82b73a | /test/functional/wallet_txn_clone.py | c92b09f523c9695c47018979d34c2cda0bfdd2b4 | [
"MIT"
] | permissive | devcoin/core | 3f9f177bd9d5d2cc54ff95a981cfe88671206ae2 | f67e8b058b4316dd491615dc3f8799a45f396f4a | refs/heads/master | 2023-05-25T03:42:03.998451 | 2023-05-24T07:59:22 | 2023-05-24T08:02:14 | 21,529,485 | 16 | 13 | MIT | 2022-01-07T17:04:18 | 2014-07-05T22:42:13 | C | UTF-8 | Python | false | false | 6,114 | py | #!/usr/bin/env python3
# Copyright (c) 2014-2020 The Bitcoin Core and Devcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
"""Test the wallet accounts properly when there are cloned transactions with malleated sc... | [
"fernando@develcuy.com"
] | fernando@develcuy.com |
ce649c8e371f012a7f27b78aada3c44fe7913616 | a1c5b4780f9c13e5d3778ed55b36f856f185fb84 | /ceiling/home/migrations/0012_settings_email_recipients.py | f3e5a781c2c60df5cc13532555fba79d3ae4ff88 | [] | no_license | Wishez/ceiling-citadel | ee8417e30100fde539dd52e61aecb22de34ba84e | c7eb4e18e47c75f71a22470df107b1d29baebc8f | refs/heads/master | 2022-10-07T11:48:20.894167 | 2018-07-10T19:43:57 | 2018-07-10T19:43:57 | 118,719,986 | 0 | 0 | null | 2020-06-05T17:41:11 | 2018-01-24T06:03:30 | JavaScript | UTF-8 | Python | false | false | 651 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.13 on 2018-05-29 19:00
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('home', '0011_settings_is_send_sms'),
]
operations = [
migrations.AddField(... | [
"shiningfinger@list.ru"
] | shiningfinger@list.ru |
66bcff2270b4a6eb2f6283694b29c8fb92aa83f5 | 7d23056a789ded9ff2b9e14f9c57e59295cdfd6d | /zcrmsdk/src/com/zoho/crm/api/currencies/api_exception.py | dfa66a2391c2e3249b9b5f10e0dda8dd1d1b7c47 | [] | no_license | L1nuxFNC/zohocrm-python-sdk | 2e825fe4d7c6fb1374a5747cbd1e39b0dd4b706d | bba7328de07b137d2cb6e2aac31b8f57e0803026 | refs/heads/master | 2023-06-05T09:17:35.549980 | 2021-05-13T12:45:59 | 2021-05-13T12:45:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,149 | py | try:
from zcrmsdk.src.com.zoho.crm.api.exception import SDKException
from zcrmsdk.src.com.zoho.crm.api.util import Choice, Constants
from zcrmsdk.src.com.zoho.crm.api.currencies.action_response import ActionResponse
from zcrmsdk.src.com.zoho.crm.api.currencies.response_handler import ResponseHandler
from zcrmsdk.s... | [
"aswinkumar.m@zohocorp.com"
] | aswinkumar.m@zohocorp.com |
c4582651679e74721246ad1b1fc948f7f6149225 | 0cbd75041fdb5970b9fee283c829f8aca4d7f5a2 | /scripts/configure.py | f7dcb643d309b2eef8e319074aa9f79f0a574904 | [
"MIT"
] | permissive | braceal/DiverseSMILES | 597295b6c4d75eb569d451550860acdeb0298f78 | 5e2e769f485ce130524748b21b7c1369d6f4a21c | refs/heads/master | 2022-12-08T20:57:17.066684 | 2020-08-25T17:25:26 | 2020-08-25T17:25:26 | 287,047,976 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,274 | py | import os
import shutil
def get_root_path():
return os.path.dirname(os.path.dirname(__file__))
def set_repo_name(name: str):
path = get_root_path()
new_path = os.path.join(os.path.dirname(path), name)
shutil.move(path, new_path)
return new_path
def read_file(file: str):
with open(file) as... | [
"braceal@umich.edu"
] | braceal@umich.edu |
089b5247b1a2055d3e74ee8124e805ec4cfd48be | a23fd5bbec014056a0825dbd0a797a326dd9ce4a | /tests/test_webexteamsbot.py | 7022976bd617c4b5055d1cba0db22d3b4a0bdf81 | [
"MIT"
] | permissive | ak-b/webexteamsbot | 10234a870eb0396d69635b92d87afd2fe95cea2a | a86ce2996425f078180d4113f942987049bbff5f | refs/heads/master | 2020-07-07T06:52:57.164358 | 2019-06-03T16:01:43 | 2019-06-03T16:01:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,631 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Tests for `webexteamsbot` package."""
import unittest
from webexteamsbot import TeamsBot
import requests_mock
from .teams_mock import MockTeamsAPI
class TeamsBotTests(unittest.TestCase):
@requests_mock.mock()
def setUp(self, m):
m.get(
"h... | [
"hank.preston@gmail.com"
] | hank.preston@gmail.com |
4c6a53c6a9e757c16e8192413e3fccfcfdb940dc | 82b728e805d887102c0b8c415731b353877690cd | /samples/generated_samples/aiplatform_generated_aiplatform_v1beta1_job_service_resume_model_deployment_monitoring_job_sync.py | eb8d06b88f792ba09b8bf5d8d549eb6eb2abcc57 | [
"Apache-2.0"
] | permissive | geraint0923/python-aiplatform | 90c7742c9bdbde05b9688b117e8e59c0406d6f85 | 7ab05d5e127636d96365b7ea408974ccd6c2f0fe | refs/heads/main | 2023-08-24T05:30:38.519239 | 2021-10-27T20:38:25 | 2021-10-27T20:38:25 | 370,803,114 | 0 | 0 | Apache-2.0 | 2021-05-25T19:15:47 | 2021-05-25T19:15:46 | null | UTF-8 | Python | false | false | 1,737 | 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... | [
"noreply@github.com"
] | geraint0923.noreply@github.com |
15522003eedc358ce21e46c4bdd7688b85d27032 | b47f2e3f3298388b1bcab3213bef42682985135e | /experiments/jacobi-1d/tmp_files/1161.py | 2710238cfb617f58d839aa95dbfbf38d1575e7e9 | [
"BSD-2-Clause"
] | permissive | LoopTilingBenchmark/benchmark | 29cc9f845d323431e3d40e878cbfc6d1aad1f260 | 52a3d2e70216552a498fd91de02a2fa9cb62122c | refs/heads/master | 2020-09-25T09:45:31.299046 | 2019-12-04T23:25:06 | 2019-12-04T23:25:06 | 225,975,074 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 336 | py | from chill import *
source('/uufs/chpc.utah.edu/common/home/u1142914/lib/ytopt_vinu/polybench/polybench-code/stencils/jacobi-1d/kernel.c')
destination('/uufs/chpc.utah.edu/common/home/u1142914/lib/ytopt_vinu/experiments/jacobi-1d/tmp_files/1161.c')
procedure('kernel_jacobi_1d')
loop(0)
known(' n > 2 ')
tile(0,2,64,2)... | [
"nashenruoyang@163.com"
] | nashenruoyang@163.com |
be5711580a8476336de6481b7a7c1468715ebe15 | 376b2a1d39b2d1a72f5d078121882ad5176c6bf3 | /GAES/src/strategy/Mutate.py | 58dd388ca5b4294c995a52d598e69be1c0fa6530 | [] | no_license | wangzb-001/nnga_jxf | bf44fe3837ce1744c82ea61946cc1ad34a95c1a3 | d7a15a5621b92d00fc3820dc5234c89f71c64c4f | refs/heads/main | 2023-04-30T12:54:56.994687 | 2021-05-13T06:28:26 | 2021-05-13T06:28:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,471 | py | import numpy as np
from src.strategy.Utils import func_levy_v, func_levy, Levy
from src.nn.cross_ga_nn import CrossGaModel
def Mutate0(self, pop, gen):
Bound = self.test_func.Bound
# 标准模拟二进制
if np.random.rand() < self.mutation_rate:
temp = np.copy(pop)
for i in range(np.random.randint(1, s... | [
"425776024@qq.com"
] | 425776024@qq.com |
72520dd8e364d5227701c399a48527b7fd3f77fe | f64e31cb76909a6f7fb592ad623e0a94deec25ae | /leetcode/p0084_largest_rectangle_in_histogram.py | dd6c07d51d15c3fd3ec414c9cd41c388c3c54434 | [] | no_license | weak-head/leetcode | 365d635cb985e1d154985188f6728c18cab1f877 | 9a20e1835652f5e6c33ef5c238f622e81f84ca26 | refs/heads/main | 2023-05-11T14:19:58.205709 | 2023-05-05T20:57:13 | 2023-05-05T20:57:13 | 172,853,059 | 0 | 1 | null | 2022-12-09T05:22:32 | 2019-02-27T05:58:54 | Python | UTF-8 | Python | false | false | 470 | py | from typing import List
def largestRectangleArea(heights: List[int]) -> int:
"""
Monotonic stack
Time: O(n)
Space: O(n)
n - length of the array
"""
stack = []
res = 0
heights = [0] + heights + [0]
for i in range(len(heights)):
while stack and heights[i] < heights[... | [
"zinchenko@live.com"
] | zinchenko@live.com |
96b51e45ce2707232307be8088758e00b9de79cb | c3c8ca3481fd83085de630baa450ef9796cdc082 | /Not_fully_implemented/prototype.py | 7858386fc828376a112470575c4db163602db5c2 | [] | no_license | bobo0810/Semi-Siamese-Training | 3245407d93173a33d1b7ea18b138495998b6a6c4 | a7381f6efab92e90812703ae01a95575950e766b | refs/heads/main | 2023-03-09T17:28:55.067141 | 2021-02-20T10:29:02 | 2021-02-20T10:29:02 | 340,619,651 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,530 | py | import torch
from torch.nn import Module
import math
import random
class Prototype(Module):
# 原型 类似分类器
def __init__(self, feat_dim=512, queue_size=16384, scale=30.0, margin=0.0, loss_type='softmax'):
super(Prototype, self).__init__()
self.queue_size = queue_size
self.feat_dim = feat_di... | [
"1055271769@qq.com"
] | 1055271769@qq.com |
0f5c76b872b33c3d1d57dbb9d282ac45c3247edf | 34599596e145555fde0d4264a1d222f951f49051 | /pcat2py/class/25d528ca-5cc5-11e4-af55-00155d01fe08.py | b6063597badbce07a3838cc9967959d150d5a29a | [
"MIT"
] | permissive | phnomcobra/PCAT2PY | dc2fcbee142ce442e53da08476bfe4e68619346d | 937c3b365cdc5ac69b78f59070be0a21bdb53db0 | refs/heads/master | 2021-01-11T02:23:30.669168 | 2018-02-13T17:04:03 | 2018-02-13T17:04:03 | 70,970,520 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,482 | py | #!/usr/bin/python
################################################################################
# 25d528ca-5cc5-11e4-af55-00155d01fe08
#
# Justin Dierking
# justindierking@hardbitsolutions.com
# phnomcobra@gmail.com
#
# 10/24/2014 Original Construction
################################################################... | [
"phnomcobra@gmail.com"
] | phnomcobra@gmail.com |
0ec354af373fc47859f985a83886154bbe5b3617 | c8b541ea4fa7d159b80bef116e5cd232ac61b8c1 | /venv/Lib/test/test_list.py | db686c8c53577d09a4add339200146512762569e | [] | no_license | shengmenghui/knowledge_building | 7a2d8eef040c2d3a45726b3a908be301e922024b | 04fd7784f15535efed917cce44856526f1f0ce48 | refs/heads/master | 2022-12-31T14:18:05.282092 | 2020-10-23T02:51:37 | 2020-10-23T02:51:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,452 | py | import sys
from sql_mode import list_tests
import pickle
import unittest
class ListTest(list_tests.CommonTest):
type2test = list
def test_basic(self):
self.assertEqual(list([]), [])
l0_3 = [0, 1, 2, 3]
l0_3_bis = list(l0_3)
self.assertEqual(l0_3, l0_3_bis)
self.assertTr... | [
"15173342800@163.com"
] | 15173342800@163.com |
965a594c91e07f9e701a98c37390516ae03c9e6e | b8fe7c1769a274964d289d05c1594f2d9f702560 | /devel/.private/mavros_msgs/lib/python2.7/dist-packages/mavros_msgs/msg/_HilControls.py | 42b8edc0b6289d64e3d6a8aa4601f423005071c5 | [] | no_license | amilearning/mavros_ws | f3f19c98562cb6fab00e3735b5798dc8fc65652f | b822676abb0a36fe34f7e4064a162db0ddd75fe5 | refs/heads/master | 2023-06-30T08:27:45.134723 | 2021-07-16T06:52:35 | 2021-07-16T06:52:35 | 386,538,954 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,188 | py | # This Python file uses the following encoding: utf-8
"""autogenerated by genpy from mavros_msgs/HilControls.msg. Do not edit."""
import codecs
import sys
python3 = True if sys.hexversion > 0x03000000 else False
import genpy
import struct
import std_msgs.msg
class HilControls(genpy.Message):
_md5sum = "698148349c3a... | [
"hojin.projects@gmail.com"
] | hojin.projects@gmail.com |
353c6005fe2f165aed45e9109aaa40c5e93d3ed4 | a5e96b2ef2af430c57624c64c5e28705332fafc3 | /tensorflow/python/distribute/saved_model_mixed_api_test.py | d64c75967669fa64c377d818e8f742cf5a2b9860 | [
"Apache-2.0"
] | permissive | jtang7/tensorflow | e85a059469cb7978a22ad5149ad79cd7c54ff9a6 | 4efb0cfb7e782dd3a2ab72b823c4e1ed51395399 | refs/heads/master | 2020-06-03T17:05:33.640344 | 2019-06-12T22:47:13 | 2019-06-12T23:15:48 | 191,657,041 | 1 | 1 | Apache-2.0 | 2019-06-12T23:17:06 | 2019-06-12T23:17:06 | null | UTF-8 | Python | false | false | 3,684 | py | # Copyright 2019 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | [
"gardener@tensorflow.org"
] | gardener@tensorflow.org |
a09f7922060e24b28002a9ae62ebf5896fe906d5 | 5b286674c05332b28819e797f48d7f1757b5bfde | /project_test/tests/test_004_view.py | 03542a37af71ed2735ca44b25d370602058699ee | [
"MIT"
] | permissive | sveetch/rstview | 571d7782aa4666b8f4e8d5c24b805ffe6abf9d45 | a9e157eb8ad99766b82b332d9c7d783490391cd1 | refs/heads/master | 2023-09-04T04:04:45.849021 | 2023-08-18T16:04:34 | 2023-08-18T16:04:34 | 6,507,507 | 3 | 0 | MIT | 2023-08-18T16:04:35 | 2012-11-02T14:47:01 | Python | UTF-8 | Python | false | false | 1,415 | py | import os
import pytest
from django.core.urlresolvers import reverse
from rstview.views import RstViewInvalidException
def test_ping_index(client):
"""Just pinging dummy homepage"""
response = client.get(reverse('home'))
assert response.status_code == 200
@pytest.mark.parametrize("urlname,output_file... | [
"sveetch@gmail.com"
] | sveetch@gmail.com |
e0b921373b8d92939fbfc879612882136540f153 | 39d8961d8e62acaf1a19bc2d7e2a47b4a908cea8 | /django_polls/polls/views.py | 771c2179c3942016f0984f097045ba16998b2142 | [] | no_license | Sasikumar-P/Django-auth | ceff82274e82069c9164b1595614bf58fed9f1d0 | 5281f7f7c66e4516acaac7c031133a800f61e2a4 | refs/heads/master | 2020-03-26T15:40:59.642066 | 2018-08-17T01:48:23 | 2018-08-17T01:48:23 | 145,058,131 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,541 | py | from django.shortcuts import render
# Create your views here.
from django.shortcuts import get_object_or_404, render
from django.http import HttpResponseRedirect
from django.core.urlresolvers import reverse
from django.views import generic
from django.contrib.auth.decorators import login_required
from .models impor... | [
"skp.guptha@gmail.com"
] | skp.guptha@gmail.com |
cff27a9443ff64c11a0c6e5a7ddb2659c3b5f807 | 45e376ae66b78b17788b1d3575b334b2cb1d0b1c | /tests/terraform/checks/resource/azure/test_AzureScaleSetPassword.py | ab88701c30419bdd155711c239c79120aeba1934 | [
"Apache-2.0"
] | permissive | bridgecrewio/checkov | aeb8febed2ed90e61d5755f8f9d80b125362644d | e64cbd27ffb6f09c2c9f081b45b7a821a3aa1a4d | refs/heads/main | 2023-08-31T06:57:21.990147 | 2023-08-30T23:01:47 | 2023-08-30T23:01:47 | 224,386,599 | 5,929 | 1,056 | Apache-2.0 | 2023-09-14T20:10:23 | 2019-11-27T08:55:14 | Python | UTF-8 | Python | false | false | 2,036 | py | import unittest
import hcl2
from checkov.terraform.checks.resource.azure.AzureScaleSetPassword import check
from checkov.common.models.enums import CheckResult
class TestAzureScaleSetPassword(unittest.TestCase):
def test_failure(self):
hcl_res = hcl2.loads("""
resource "azurerm_linux_virtual_ma... | [
"noreply@github.com"
] | bridgecrewio.noreply@github.com |
e3b31a9d97065d2181b5584b48172263ed66d17e | 8c3de0a5098552aa096cae9eb07afbff7d61c588 | /dummy_auth_system_openstack/plugin.py | 03911dbe1f50f0eaca38f56fa3d57240c24ecdde | [] | no_license | chmouel/dummy-auth-system-openstack | ee228771f1d637e23b2d004cf27eddf0d43caaf9 | c7f741d58c4ccb299b9525fcf6bdb7e6ab180e0e | refs/heads/master | 2021-01-15T17:45:26.556200 | 2013-07-10T10:04:12 | 2013-07-10T10:04:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,325 | py | # vim: tabstop=4 shiftwidth=4 softtabstop=4
# Copyright 2013 Spanish National Research Council
#
# 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
... | [
"chmouel@chmouel.com"
] | chmouel@chmouel.com |
cd8d5d1ee9b1e2361cab65a7fd573cdc3c6ceb09 | a838d4bed14d5df5314000b41f8318c4ebe0974e | /sdk/network/azure-mgmt-network/azure/mgmt/network/v2018_07_01/aio/operations/_network_interface_load_balancers_operations.py | c6c327296226c379e949f42e50f1af80bc934007 | [
"MIT",
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later"
] | permissive | scbedd/azure-sdk-for-python | ee7cbd6a8725ddd4a6edfde5f40a2a589808daea | cc8bdfceb23e5ae9f78323edc2a4e66e348bb17a | refs/heads/master | 2023-09-01T08:38:56.188954 | 2021-06-17T22:52:28 | 2021-06-17T22:52:28 | 159,568,218 | 2 | 0 | MIT | 2019-08-11T21:16:01 | 2018-11-28T21:34:49 | Python | UTF-8 | Python | false | false | 5,727 | 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"
] | scbedd.noreply@github.com |
243e3d7057ab0da4bbc65aeeb2796c594c45c613 | 0f52b49c3cb6592000243a41d956f5722d76568e | /venv/Scripts/django-admin.py | 706231e116b821b713b1b435be0e4e503e6021e4 | [] | no_license | bkablam11/Heroku-django-bk001 | 72dd63e5130380bc86aa1b25288354b69009bafd | cee7ec09eab29f81ac4fa67bfa7d5c26b862cda7 | refs/heads/main | 2023-06-29T04:59:04.235142 | 2021-08-04T07:24:10 | 2021-08-04T07:24:10 | 392,378,078 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 721 | py | #!c:\users\simplonco\documents\jupyter-notebook\django\booking\venv\scripts\python.exe
# When the django-admin.py deprecation ends, remove this script.
import warnings
from django.core import management
try:
from django.utils.deprecation import RemovedInDjango40Warning
except ImportError:
raise ImportError(
... | [
"you@example.com"
] | you@example.com |
20be1e63c3e8c048cad682118d7175c1c29eacdd | 25d081c82bf9adc2a8d96c254df0239a9f982a71 | /museum_site/migrations/0027_auto_20190514_0458.py | 54aa5ad6afba8ee5fa54d3cd44717e06d9ec091b | [
"MIT"
] | permissive | asiekierka/z2 | f102de582aaa9fc51b6b598a1fb07c58be4f540f | d926408423dc98d71d5e7fc2fda3202c03c309de | refs/heads/master | 2021-06-15T15:09:41.614135 | 2021-02-23T02:44:54 | 2021-02-23T02:44:54 | 146,348,922 | 1 | 0 | MIT | 2018-08-27T20:14:46 | 2018-08-27T20:14:46 | null | UTF-8 | Python | false | false | 807 | py | # Generated by Django 2.1.7 on 2019-05-14 04:58
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('museum_site', '0026_auto_20190307_0205'),
]
operations = [
migrations.RenameField(
model_name='article',
old_name='t... | [
"doctordos@gmail.com"
] | doctordos@gmail.com |
2ed6d2a55a8ac848d7f7f795cfaa276ecdafbb7c | 0ef2be04c022fdc373732650b9bca2ff0ebd3aeb | /chapter4/index_search.py | 6060ef1db3c843f170f7a65fd34aef58ed972071 | [] | no_license | dengshilong/C100Problem | 61b95d2c0865e4321f5ab4d3bbcb2922e8c4a2af | 989a3591e933cbcaebb4c1aea98fbf6a1ebeaff9 | refs/heads/master | 2020-12-31T04:55:33.917084 | 2019-08-10T08:05:31 | 2019-08-10T08:05:31 | 58,291,981 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 613 | py | # coding: utf-8
def bad_index_search(x):
index = -1
for i in range(0, len(x)):
if x[i] == i + 1:
index = i + 1
break
return index
def index_search(x):
low = 0
high = len(x) - 1
mid = int((high - low) / 2 + low / 2)
index = -1
while low <= high:
... | [
"dengshilong1988@gmail.com"
] | dengshilong1988@gmail.com |
60138d906309480c5145c49e0f63e651c72a2756 | 97713de7485656ac151759b685cb294afef78599 | /memcached_test/memcached_test.py | 9005e3113ff77b3a351e7d0596f8219950a9a2e0 | [] | no_license | haminhcong/CAL-Test | 0ce536aadd658cd950b5d3fcc65da4401a14baab | 6b9e74a2f3c7c7d5418330156e2b1e7fff4c4a8a | refs/heads/master | 2021-07-06T04:20:06.649114 | 2017-09-28T05:57:18 | 2017-09-28T05:57:18 | 104,873,613 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 371 | py | import memcache
import time
client = memcache.Client([('127.0.0.1', 11211)])
sample_obj = {"name": "Soliman", "lang": "Python",
"cluster": {'name': 'cluster_1', "content": '1234'}}
client.set("sample_user", sample_obj)
# print "Stored to memcached, will auto-expire after 5 seconds"
time.sleep(10)
sample_... | [
"haminhcongbkhn@gmail.com"
] | haminhcongbkhn@gmail.com |
cbe48c1a27732520db3d70776171d289a056679f | 4b4d21f6a2aaf8cb0ece595e4aaf9cb705ffdd49 | /api_sales_taobao/models/api/rest/SellercatsListGetRequest.py | 6b38a9e5f5e004372292da9dd42e023618ed5af7 | [] | no_license | sc4you/odoo-project-10.0 | e8c82b4cd42c0672e996561e75e0f9d0717821fa | bca7e400b6316bcbcefe6f0d088cb97a28f644bb | refs/heads/master | 2020-03-21T13:41:08.042847 | 2018-05-15T07:41:58 | 2018-05-15T07:41:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 316 | py | '''
Created by auto_sdk on 2016.03.17
'''
from base import RestApi
class SellercatsListGetRequest(RestApi):
def __init__(self,domain='gw.api.taobao.com',port=80):
RestApi.__init__(self,domain, port)
self.fields = None
self.nick = None
def getapiname(self):
return 'taobao.sellercats.list.get'
| [
"guwenfengvip@163.com"
] | guwenfengvip@163.com |
4b0163c5864d4a782e0e2647a5ee1ba959b9155c | 30399a6d952dd32fefb42fb7a53a14a0eb624c90 | /tests/test_tutorial/test_first_steps/test_tutorial004.py | 5415f4cf324583395b782bc2fef3c90c87c1361f | [
"MIT"
] | permissive | KBoehme/typer | f51a8a00f4c0e0a56377dcc339243bafe5cc12ae | 2a1abdec64c068d7e7c79dc42a9f7930fb578dff | refs/heads/master | 2023-02-03T09:07:20.760645 | 2020-12-16T22:51:23 | 2020-12-16T22:51:23 | 261,249,885 | 0 | 0 | MIT | 2020-05-04T17:21:25 | 2020-05-04T17:21:24 | null | UTF-8 | Python | false | false | 1,139 | py | import subprocess
import typer
from typer.testing import CliRunner
from first_steps import tutorial004 as mod
runner = CliRunner()
app = typer.Typer()
app.command()(mod.main)
def test_1():
result = runner.invoke(app, ["Camila", "Gutiérrez"])
assert result.exit_code == 0
assert "Hello Camila Gutiérrez"... | [
"tiangolo@gmail.com"
] | tiangolo@gmail.com |
f8d1f003d3baa062ddf09a676c684448c5021978 | ffd5e689f88c49ab7af3554c22dc0c36301084fa | /cartesian-plane-function.py | dbe44965a591710c7b475ad1a98bb374ac97870e | [] | no_license | ellismckenzielee/codewars-python | 1710e6f0499047139479de386927c7dbd5f1cdf6 | af3f4b4534798a58115d0565730aae28ce87437e | refs/heads/master | 2023-08-09T13:38:40.964141 | 2023-08-01T14:45:22 | 2023-08-01T14:45:22 | 168,981,376 | 45 | 18 | null | null | null | null | UTF-8 | Python | false | false | 461 | py | #Functions below return the output of functions f (sumin), g (sumax) and h (sumsum)
#See kata 'Functions of Integers on Cartesian Plane' for more information
def sumin(n):
total = 0
for i in range (1,n):
total += ((i*(n+1-i)) + (i*(n-i)))
return total + n
def sumax(n):
total = 0
for i i... | [
"ellismckenzielee@gmail.com"
] | ellismckenzielee@gmail.com |
9b4b7ec7f8aab08fda1177d0c7b098eb7226a4ea | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /HpqLxNqqRvMQoz8ME_21.py | 32f56c687f7fcbf8c08ca8025c994fbbcdc40f2e | [] | no_license | daniel-reich/turbo-robot | feda6c0523bb83ab8954b6d06302bfec5b16ebdf | a7a25c63097674c0a81675eed7e6b763785f1c41 | refs/heads/main | 2023-03-26T01:55:14.210264 | 2021-03-23T16:08:01 | 2021-03-23T16:08:01 | 350,773,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 551 | py | """
Create a function that takes a string and returns a string in which each
character is repeated once.
### Examples
double_char("String") ➞ "SSttrriinngg"
double_char("Hello World!") ➞ "HHeelllloo WWoorrlldd!!"
double_char("1234!_ ") ➞ "11223344!!__ "
### Notes
All test cases contain va... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
c85f10425d843afc4dfce02ec813afb47e814d89 | b605b3dade1aca21b634f37308ac120cce4c7315 | /scripts/counttest.py | 47775d057685f3f215b8a7354561d2989b692b9c | [
"Apache-2.0"
] | permissive | dicarlolab/curiosity | 8db6dc35b31c2426246a9dd816054720d4d5e021 | 469dc4a652b6a0f62a6ccb2ecc595f55fdeb5f6c | refs/heads/master | 2020-04-05T18:55:42.852376 | 2016-07-20T14:10:56 | 2016-07-20T14:10:56 | 55,555,224 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,506 | py | import copy
import numpy as np
import curiosity.utils.base as base
import curiosity.models.obj_detector_feedforward as modelsource
import curiosity.datasources.images_and_counts as datasource
dbname = 'threeworld_count'
colname = 'test'
experiment_id = 'test0_longdr'
model_func = modelsource.get_model
model_func_kwa... | [
"dyamins@gmail.com"
] | dyamins@gmail.com |
c6dc5dfad539888287b0521fb6e96f1774fdb5fb | 7b7c570b30d6d7a0e9b904c7cb378cfb0d0f0e07 | /mlflow/store/artifact/runs_artifact_repo.py | a829359d134878c2eb1bbbe844a804dbec1870be | [
"Apache-2.0"
] | permissive | mlflow/mlflow | ca97bfbbf32f8e59f454e428f5e46eb3d34d062f | 37298ffafcd34002352d01d579d4524790544267 | refs/heads/master | 2023-09-01T13:15:53.902815 | 2023-09-01T09:00:42 | 2023-09-01T09:00:42 | 136,202,695 | 14,102 | 3,748 | Apache-2.0 | 2023-09-14T21:52:42 | 2018-06-05T16:05:58 | Python | UTF-8 | Python | false | false | 6,010 | py | import urllib.parse
from mlflow.exceptions import MlflowException
from mlflow.store.artifact.artifact_repo import ArtifactRepository
from mlflow.utils.uri import (
add_databricks_profile_info_to_artifact_uri,
get_databricks_profile_uri_from_artifact_uri,
)
class RunsArtifactRepository(ArtifactRepository):
... | [
"noreply@github.com"
] | mlflow.noreply@github.com |
7c0b06d947bd1559fca6b705d4f03f42f307bb30 | 7791cae9c097ffbfeefd34dea31586b1963eb675 | /0x07-python-test_driven_development/3-say_my_name.py | 5cf6fce4d5ab39583ccaaedeeb3287d1f6cd9f2a | [] | no_license | jicruz96/holbertonschool-higher_level_programming | a33b6c326e832868be791cad87ac703cccbabd64 | 84361c552b7ba1cb173d1e4bd2ea077bb3999b0d | refs/heads/master | 2022-12-18T06:07:34.248796 | 2020-09-28T22:33:59 | 2020-09-28T22:33:59 | 259,228,049 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 407 | py | #!/usr/bin/python3
""" This module defines the say_my_name function """
def say_my_name(first_name, last_name=""):
""" Prints 'My name is <first_name> <last_name>' """
if type(first_name) != str:
raise TypeError('first_name must be a string')
if type(last_name) != str:
raise TypeError('las... | [
"accounts@jicruz.com"
] | accounts@jicruz.com |
728b5bc2b752859efa553d713caebc37b60e16d8 | a2f67003e0eededb0c2d7645d83243d19af71340 | /exam_subject/Subject/apps/user_operation/views.py | ad8f2da96f82c09304779fd331a1f12a9d23de9c | [] | no_license | john123951/SubjectSystem | c6bf118627aa54ba56bd367f73528e66f51dcd58 | a7f8e6014f81ec4376f3c5f437a280e801ab22e4 | refs/heads/master | 2020-07-13T16:36:15.663952 | 2019-06-19T07:02:14 | 2019-06-19T07:02:14 | 205,115,935 | 7 | 0 | null | 2019-08-29T08:23:00 | 2019-08-29T08:22:59 | null | UTF-8 | Python | false | false | 4,246 | py | from rest_framework.viewsets import GenericViewSet,ModelViewSet
from rest_framework.mixins import CreateModelMixin,ListModelMixin,RetrieveModelMixin,DestroyModelMixin,UpdateModelMixin
from rest_framework.permissions import IsAuthenticated
from rest_framework_jwt.authentication import JSONWebTokenAuthentication
from res... | [
"you@example.com"
] | you@example.com |
cdaa1dcdbc53b424ad84ce70a651d5e19c064ebb | d3bb10af7c7426116e3052e0d2dea44889f30ab9 | /JMBOOK/trianglepath.py | f4fa9fd6cc9be97c64021d7b38e721e097d9cf24 | [] | no_license | limdongjin/ProblemSolving | d9c73a1481b6b225eccf26c0b3879261ed1d5c75 | b3e72f270b8e47618fe546a413c33b754eedd227 | refs/heads/master | 2022-08-24T21:44:11.796317 | 2022-07-24T11:02:21 | 2022-07-24T11:02:21 | 131,372,343 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 633 | py | import sys
input = sys.stdin.readline
def solve(board, n):
cache = [[-1]*(n+1) for _ in range(n+1)]
def _path(y, x):
if y == n - 1:
return board[y][x]
if cache[y][x] != -1:
return cache[y][x]
cache[y][x] = board[y][x] + max(_path(y+1, x), _path(y+1, x+1))
... | [
"geniuslim27@gmail.com"
] | geniuslim27@gmail.com |
d24ccb5f468fe85b50e508bef94c0374b220d869 | 98a7b8c539d17946e361495ebb5eed3d83727e38 | /variation/trunk/web_interface/optilux-code-2007-10-21/chapter-12/optilux/src/optilux.policy/setup.py | ad69f0de9d4db83088dfd155b9104273aefdcd8c | [] | no_license | polyactis/repos | 8a6a9703ca9ec2f9b75fb5bda06d4d29aace19c1 | 7b402496aae81665e6a915b5021b94d56e034c9d | refs/heads/master | 2020-12-08T16:30:24.175800 | 2013-02-27T19:45:20 | 2013-02-27T19:45:20 | 8,463,267 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,043 | py | from setuptools import setup, find_packages
import sys, os
version = '1.0.12'
setup(name='optilux.policy',
version=version,
description="",
long_description="""\
""",
# Get more strings from http://www.python.org/pypi?%3Aaction=list_classifiers
classifiers=[
"Framework :: Plone",... | [
"yh@c5b91a9c-90b7-4db6-b2ac-9ef0fe68db40"
] | yh@c5b91a9c-90b7-4db6-b2ac-9ef0fe68db40 |
977e8d851b300fbd1425233313b6120cc9adf0b9 | 6cd827cc87e4ab61b3553cf19fb8e753c136b3e5 | /Intro to PySimpleGUI/hello_psg.py | 8105e499678c216323780f3a242518ab872b78de | [] | no_license | driscollis/talks | 65052881b9d759fddf7982671d927aa3fb84a80d | 58740f9941183f28a73dbd40afd3d4f386ad4336 | refs/heads/master | 2023-01-05T14:24:34.098400 | 2022-12-20T19:23:57 | 2022-12-20T19:23:57 | 243,657,527 | 17 | 3 | null | null | null | null | UTF-8 | Python | false | false | 366 | py | import PySimpleGUI as sg
layout = [[sg.Text("Hello from PySimpleGUI")], [sg.Button("OK")]]
# Create the window
window = sg.Window("Demo", layout)
# Create an event loop
while True:
event, values = window.read()
# End program if user closes window or
# presses the OK button
if event == "OK" or event =... | [
"mike@pythonlibrary.org"
] | mike@pythonlibrary.org |
5a35951f4aafd4edc019ecb04b27b1c56fcacf19 | 3ff4da2c4fbbf5310695d96bcf7f06a3fdf6d9f5 | /Python/DataCamp/Intro to Python for Data Science/Excercises/E16_Slicing and dicing.py | 2c8ce83bea39b2c2e5d2d7ef2abc8316a7f1e165 | [] | no_license | ivanromanv/manuales | cab14389161cbd3fb6a5d4e2d4e4851f8d1cda16 | a296beb5052712ae3f03a3b492003bfc53d5cbba | refs/heads/master | 2018-10-01T01:01:50.166637 | 2018-07-22T18:55:50 | 2018-07-22T18:55:50 | 106,485,581 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,298 | py | # Subsetting Python lists is a piece of cake. Take the code sample below, which creates a list x and then selects "b" from it. Remember that this is the second element, so it has index 1. You can also use negative indexing.
# x = ["a", "b", "c", "d"]
# x[1]
# x[-3] # same result!
# Remember the areas list from before, ... | [
"“ivanromanv@gmail”"
] | “ivanromanv@gmail” |
22b4b74a08b085eb48f0b2c0dbe12a18f02aa14e | 03f037d0f6371856ede958f0c9d02771d5402baf | /graphics/VTK-7.0.0/Imaging/Core/Testing/Python/TestSimpleImageExample.py | e4e46de5bba825ecfa437412460831add3601981 | [
"BSD-3-Clause"
] | permissive | hlzz/dotfiles | b22dc2dc5a9086353ed6dfeee884f7f0a9ddb1eb | 0591f71230c919c827ba569099eb3b75897e163e | refs/heads/master | 2021-01-10T10:06:31.018179 | 2016-09-27T08:13:18 | 2016-09-27T08:13:18 | 55,040,954 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 557 | py | #!/usr/bin/env python
import vtk
from vtk.test import Testing
from vtk.util.misc import vtkGetDataRoot
VTK_DATA_ROOT = vtkGetDataRoot()
# Image pipeline
reader = vtk.vtkPNGReader()
reader.SetFileName("" + str(VTK_DATA_ROOT) + "/Data/fullhead15.png")
gradient = vtk.vtkSimpleImageFilterExample()
gradient.SetIn... | [
"shentianweipku@gmail.com"
] | shentianweipku@gmail.com |
b7be271ca54fb7b21a8d56300ea593ce33803a39 | d77a0d5a18af141d36005eba1769f7384f5ce1d4 | /mDataAn_venv/Lib/site-packages/scipy/special/tests/test_logsumexp.py | c2270793accbc1934aa52bbe760daba0f08033b3 | [] | no_license | LukasPolon/MData | 32d756d0df8c8847cf45b8def6e5ef760963d895 | 2178a0b2f60c4c638fd696a6e11b0ef801724bf4 | refs/heads/master | 2022-12-11T15:02:07.528855 | 2018-01-07T16:22:58 | 2018-01-07T16:22:58 | 99,687,079 | 1 | 0 | null | 2021-06-01T22:04:39 | 2017-08-08T11:51:11 | Python | UTF-8 | Python | false | false | 4,236 | py | from __future__ import division, print_function, absolute_import
import numpy as np
from numpy.testing import (run_module_suite, assert_almost_equal, assert_equal,
assert_array_almost_equal, assert_)
from scipy.special import logsumexp
def test_logsumexp():
# Test whether lo... | [
"lukaspolon@gmail.com"
] | lukaspolon@gmail.com |
cf5d24586df598bf5f23735cd2fb9227d2326e42 | a7da58ad91b007b3650003708eb91928f1e3684a | /bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/Baobab_getCounterList.py | cdcc5ae9e83bdd995739e7fe25628c16ebf9e6c1 | [] | no_license | jgpjuniorj/j | 042d1bd7710fa2830355d4312a6b76103e29639d | dc02bfa887ffab9841abebc3f5c16d874388cef5 | refs/heads/master | 2021-01-01T09:26:36.121339 | 2020-01-31T10:34:17 | 2020-02-07T04:39:18 | 239,214,398 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 778 | py | # return counter list for a given site and a given vault type
if vault_type is None:
vault_type = ('site/surface/banque_interne', 'site/surface/gros_paiement', 'site/surface/gros_versement', 'site/surface/operations_diverses')
vault_list = context.Delivery_getVaultItemList(vault_type=vault_type, strict_membership ... | [
"georgios.dagkakis@nexedi.com"
] | georgios.dagkakis@nexedi.com |
65f4dc3ad116927349fd892f6b6c853bcfbef4ec | e457376950380dd6e09e58fa7bee3d09e2a0f333 | /plugin/src/test/resources/refactoring/extractmethod/DuplicateCheckParam.after.py | c4f32996921565dc8fce5c291e0faaa12d6df249 | [
"Apache-2.0"
] | permissive | consulo/consulo-python | b816b7b9a4b346bee5d431ef6c39fdffe40adf40 | e191cd28f043c1211eb98af42d3c0a40454b2d98 | refs/heads/master | 2023-08-09T02:27:03.585942 | 2023-07-09T08:33:47 | 2023-07-09T08:33:47 | 12,317,018 | 0 | 0 | Apache-2.0 | 2020-06-05T17:16:50 | 2013-08-23T07:16:43 | Java | UTF-8 | Python | false | false | 165 | py | def foo(a_new):
b1 = do_smth_with(a_new)
return b1
def f():
a = do_smth()
b1 = foo(a)
a = do_smth()
b = foo(a + 1)
do_smth_with(b1, b)
| [
"vistall.valeriy@gmail.com"
] | vistall.valeriy@gmail.com |
3133823b2f314e2679928d7e38ef7485cfbc95e1 | cf4e5165a8408344a4c62e63a0fd2d0fe6308b37 | /00-2017/就业班/01练习/TCP客户端.py | 6c293cebebd73cadd34a505a1e172a8156cbfa54 | [] | no_license | kennycaiguo/Heima-Python-2018 | 5f8c340e996d19f2b5c44d80ee7c144bf164b30e | a8acd798f520ec3d079cc564594ebaccb9c232a0 | refs/heads/master | 2021-01-08T10:54:18.937511 | 2019-09-01T14:37:49 | 2019-09-01T14:37:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 301 | py | #coding=utf-8
from socket import *
tcpClientSocket = socket(AF_INET,SOCK_STREAM)
serverAddr = ("192.168.1.102",8080)
tcpClientSocket.connect(serverAddr)
tcpClientSocket.send("我是胡炎凯".encode("gb2312"))
recvData = tcpClientSocket.recv(1024)
print("recvData:%s"%recvData)
tcpClientSocket.close() | [
"microease@163.com"
] | microease@163.com |
c2bacc37f731ca06b1b781b34f14d4fce1438ba6 | faca6c6bb50113fc8c098fa6118d4d5d4ad0cc8d | /django_pdf/settings.py | 6292191508890ad5fb8099f8a150b6c4c5882a53 | [] | no_license | raomohsinkhan/django_pdf | af1f31e808f0b66ab83c84559779b2b1997209f8 | 6147c8316d02229048ccd1f0be852a720b98aaab | refs/heads/master | 2023-08-23T16:50:18.091051 | 2021-03-04T03:20:45 | 2021-03-04T03:20:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,284 | py | """
Django settings for django_pdf project.
Generated by 'django-admin startproject' using Django 3.0.6.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.0/ref/settings/
"""
import os... | [
"rodrigoddc1@gmail.com"
] | rodrigoddc1@gmail.com |
ebec98debb8a1b7791ec9c98f26a333a847f59ba | f4cf292524aa7e313bb8377192ffed68e17ecc24 | /Utils/feature_engineering/fillna_num_var.py | a5663a164cf2722352579290699aeaec5fe6e4f7 | [] | no_license | dean1977a/pyDataUtils | 73f6073a7a9872b913f7f532e840b8c0127f1c91 | 4cdefe6e7acd396b787e3dc927441f92fbac4a79 | refs/heads/master | 2023-07-08T11:56:08.958040 | 2021-08-04T03:18:54 | 2021-08-04T03:18:54 | 265,597,596 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,197 | py | #https://zhuanlan.zhihu.com/p/122857572
def fillna_num_var(df,col_list,fill_type=None,filled_df=None):
"""
缺失率 5%以下:中位数
缺失率 5%-15%:随机森林填充
缺失率 15%以上:当作一个类别
df:数据集
col_list:变量list集合
fill_type:填充方式:中位数/随机森林/当做一个类别
filled_df :已填充好的数据集,当填充方式为随机森林时 使用
return:已填充好的数据集
"""
df2 = df.... | [
"you@example.com"
] | you@example.com |
87575a528b183da6757852dc599a946a0f2da5af | db720eb25ae32c2000e18a033be74f0dd774c47a | /2019/day 3/P1/wires.py | 0838e45ee9a5856c715e251c6e5d36ae2d083917 | [] | no_license | flifloo/Advent-of-Code | 0a7319c73cd44a366bb533c0660fa12e85d6bdeb | bccd6d0cb699b42c709ed4a1a08fe4dda16dbed4 | refs/heads/master | 2023-01-28T09:46:36.640537 | 2020-12-06T11:23:01 | 2020-12-06T11:23:01 | 225,172,049 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 843 | py | wiers = open("input.txt").read().split("\n")
wiers[0] = wiers[0].split(",")
wiers[1] = wiers[1].split(",")
del wiers[2]
cords = {}
c = 0
for w in wiers:
x = 0
y = 0
c+=1
for i in w:
for j in range(int(i[1:])):
if i[0] == "U":
y+=1
elif i[0] == "D":
... | [
"flifloo@gmail.com"
] | flifloo@gmail.com |
f1d74d5c8b5a914084004e0715686975bb024944 | 25ebc03b92df764ff0a6c70c14c2848a49fe1b0b | /daily/20191228/example_discord/04ng.py | f54d69045b503769b54e623edf3c46ed0afd3e94 | [] | no_license | podhmo/individual-sandbox | 18db414fafd061568d0d5e993b8f8069867dfcfb | cafee43b4cf51a321f4e2c3f9949ac53eece4b15 | refs/heads/master | 2023-07-23T07:06:57.944539 | 2023-07-09T11:45:53 | 2023-07-09T11:45:53 | 61,940,197 | 6 | 0 | null | 2022-10-19T05:01:17 | 2016-06-25T11:27:04 | Python | UTF-8 | Python | false | false | 2,136 | py | import sys
import os
import argparse
import contextlib
import logging
import shlex
from io import StringIO
from dotenv import load_dotenv
from discord.ext import commands
from monogusa import ignore
from monogusa.cli import runtime
logger = logging.getLogger(__name__)
bot = commands.Bot(command_prefix="$")
# ng stack... | [
"ababjam61+github@gmail.com"
] | ababjam61+github@gmail.com |
7e83f2a08ab60b8e8aa97d82b2638106d0398a41 | ea4e3ac0966fe7b69f42eaa5a32980caa2248957 | /download/unzip/pyobjc/pyobjc-14/pyobjc/stable/PyOpenGL-2.0.2.01/OpenGL/GLU/EXT/nurbs_tessellator.py | aee3a5adf8aaa78d460276e743121109362c17c5 | [] | no_license | hyl946/opensource_apple | 36b49deda8b2f241437ed45113d624ad45aa6d5f | e0f41fa0d9d535d57bfe56a264b4b27b8f93d86a | refs/heads/master | 2023-02-26T16:27:25.343636 | 2020-03-29T08:50:45 | 2020-03-29T08:50:45 | 249,169,732 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,122 | py | import string
__version__ = string.split('$Revision: 1.2.12.1 $')[1]
__date__ = string.join(string.split('$Date: 2005/01/03 00:10:48 $')[1:3], ' ')
__author__ = 'Tarn Weisner Burton <twburton@users.sourceforge.net>'
__doc__ = 'http://oss.sgi.com/projects/ogl-sample/registry/EXT/nurbs_tessellator.txt'
__api_version... | [
"hyl946@163.com"
] | hyl946@163.com |
f11b47cd3be0abf9243a2357da0e1781fd29435f | 8b6cd902deb20812fba07f1bd51a4460d22adc03 | /back-end/.history/djreact/users/views_20191221130727.py | bc6d69fbb6ade5c5134ec78aed7c35aba60d1cfe | [] | no_license | vishaldenzil/Django-react- | f3a49d141e0b6882685b7eaa4dc43c84857f335a | 35b6d41f6dacb3bddcf7858aa4dc0d2fe039ff98 | refs/heads/master | 2022-11-08T09:27:02.938053 | 2020-05-29T04:53:52 | 2020-05-29T04:53:52 | 267,768,028 | 0 | 1 | null | 2022-10-15T14:08:30 | 2020-05-29T04:52:20 | Python | UTF-8 | Python | false | false | 775 | py |
class OrganisationUserRegistrationView(CreateAPIView):
permission_classes = [AllowAny]
model = User
queryset = User.objects.all()
serializer_class = OrganisationUserRegistrationSerializer
def post(self, request):
logger.info("requested to post details of Organization User Registrat... | [
"vishal.denzil@ezedox.com"
] | vishal.denzil@ezedox.com |
58df3d4d684b079aef54499bacac2c3ccc2c2982 | 1fa262359f91768f1b98c45944fd4a63645f4567 | /EXAMPLES/qt5/qt_list_of_checkboxes.py | 3830a4de9b68265a2f7676f99a6e3455216a0ec6 | [] | no_license | feleHaile/20190225KAPL | d1a95dd6632ba83b6cd3380d92e2a2a18a5a4942 | 3957c1d738cc3e42d5dac0fb4a6f6071a1bb391a | refs/heads/master | 2020-05-15T22:31:51.881632 | 2019-02-28T20:11:29 | 2019-02-28T20:11:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 563 | py | #!/usr/bin/env python
from PyQt5.QtWidgets import QMainWindow, QApplication, QListView
from PyQt5.QtGui import QStandardItem, QStandardItemModel
from PyQt5.QtCore import Qt
import sys
from random import randint
app = QApplication(sys.argv)
model = QStandardItemModel()
for n in range(10):
item = QStandardItem(... | [
"jstrickler@gmail.com"
] | jstrickler@gmail.com |
3c2786c878fff6496f7d5840ed4246da6d1d80f2 | b5e4c8e8c9ff3fb80f6ac5fed52a13a4d539b614 | /pythonx/cm/cm.py | a6cdee61a752bd58fab04899c79779123f715ab6 | [
"MIT"
] | permissive | katsel/nvim-completion-manager | c1b3a13cf32bdcb1f9c527ced250acd7e03a48a2 | 6456015676e4e20f945519dd17779a41afc8fe1d | refs/heads/master | 2021-01-22T08:05:35.176579 | 2017-02-13T15:59:52 | 2017-02-13T15:59:52 | 81,872,717 | 0 | 0 | null | 2017-02-13T21:18:07 | 2017-02-13T21:18:07 | null | UTF-8 | Python | false | false | 2,785 | py | import re
import logging
import urllib
import http.client
import copy
import importlib
logger = logging.getLogger(__name__)
def register_source(name,abbreviation,priority,scopes=None,cm_refresh_patterns=None,events=[],detach=0):
# implementation is put inside cm_core
#
# cm_core use a trick to only regis... | [
"l"
] | l |
1c9cbecc8b57973e847e038558301225c8cd85b6 | 08504fcf3bb8032d087008a05d309111ec29fd42 | /foodcartapp/migrations/0003_auto_20200619_0838.py | 8199d7d4e65c8d55c9d23a94528dda9ef16ebc20 | [] | no_license | Zed-chi/star-burger | 0e4b29bd0bdf4289a6205dc4d4844510a9b13469 | 660d39f2d34aed4c7604160a794a4b1f04b47aa3 | refs/heads/master | 2023-03-12T00:05:16.611599 | 2021-02-13T17:01:47 | 2021-02-13T17:01:47 | 320,936,255 | 0 | 0 | null | 2020-12-21T22:33:04 | 2020-12-12T22:24:44 | Python | UTF-8 | Python | false | false | 459 | py | # Generated by Django 3.0.7 on 2020-06-19 08:38
from django.conf import settings
from django.db import migrations
class Migration(migrations.Migration):
atomic = False
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
("foodcartapp", "0002_auto_20200619_0836"),
... | [
"zed-chi@mail.ru"
] | zed-chi@mail.ru |
6611eb4fcdb0afaa99d26741f7cd4ae7f79f10b7 | cb35c73cbbce20f5a424a87ba7b51ea0cf184eaf | /models/backbones/dense_head.py | 51730b261763062d3d529f43fdb2d2d459d6184d | [] | no_license | kl456123/instance_detection | 9d3942ab3ba90a6267f282d36eba29e59052cbf8 | 3d4e822e5a5b717b1b5f7071eb85d9a04fcef6ab | refs/heads/master | 2023-03-04T07:37:57.457722 | 2022-03-25T11:09:30 | 2022-03-25T11:09:30 | 191,766,579 | 1 | 0 | null | 2022-11-22T10:22:47 | 2019-06-13T13:17:55 | Python | UTF-8 | Python | false | false | 4,867 | py | # Descartes, basic object detection laboratory
# Support python2.7, python3, based on Pytorch 1.0
# Author: Yang Maoke (maokeyang@deepmotion.ai)
# Copyright (c) 2019-present, DeepMotion
import torch
from torch import nn
from torch.nn import BatchNorm2d as bn
class TwoStageRetinaLayer(nn.Module):
def __init__(sel... | [
"liangxiong@deepmotion.ai"
] | liangxiong@deepmotion.ai |
24cdc3d5b47d47a37af3e3601fc1e37f366d0517 | d57b51ec207002e333b8655a8f5832ed143aa28c | /.history/nanachi_20200627183238.py | f3673e7084849f87ec645aa44bdedfd22cc8b707 | [] | no_license | yevheniir/python_course_2020 | b42766c4278a08b8b79fec77e036a1b987accf51 | a152d400ab4f45d9d98d8ad8b2560d6f0b408c0b | refs/heads/master | 2022-11-15T07:13:24.193173 | 2020-07-11T15:43:26 | 2020-07-11T15:43:26 | 278,890,802 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 762 | py | import telebot
bot = telebot.TeleBot('1128710448:AAERRXGH2X-93HYJpQx5qYJ9unNG47lLbUQ')
def check_all(string, later):
for l in string:
if l != later:
print("NO")
return False
return True
@bot.message_handler(content_types=['text'])
def send_text(message):
print(message.te... | [
"yevheniira@intelink-ua.com"
] | yevheniira@intelink-ua.com |
e6d7db2260b021c6780aa9aba56d8d6b3c2eb330 | 8ef48df4857154a4c10fde82aa99bca30c2f8480 | /sample codes/topic5/py_test8.py | defd57f8eb928bf6c7f517d40c0303c354de3b2b | [] | no_license | tertiarycourses/Full-ROS2-Training | 2cbae3e83ad923600e368f16c24737b38a61c2fb | 97ccdacc6f703ffca747b83d649baf05a8fb18ae | refs/heads/main | 2023-03-21T22:36:16.361083 | 2021-03-10T15:34:40 | 2021-03-10T15:34:40 | 315,093,513 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 621 | py | import rclpy
from rclpy.node import Node
from std_msgs.msg import String
class MyNode(Node):
def __init__(self):
super().__init__('my_eighth_node')
self.subscription = self.create_subscription(
String,
'greeting',
self.callback,
10)
self.subsc... | [
"angch@tertiaryinfotech.com"
] | angch@tertiaryinfotech.com |
bee0810c3567ddf67bee3a9acba6e84bee0a4647 | 7a0039b04431cbd125b5d11c524ff972fa0e8676 | /src/avashell/shell_osx.py | 364adee0afa299dd7ea951e6080f868b9eb89cdd | [
"Apache-2.0"
] | permissive | notmikeb/eavatar-me | 7b3a638267e88788c7376216bc9a71a9e2e34351 | c1f6dc643fd76e36444ac8548d17518be6e829a7 | refs/heads/master | 2020-03-17T02:34:14.408769 | 2015-11-13T07:33:03 | 2015-11-13T07:33:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 252 | py | # -*- coding: utf-8 -*-
from __future__ import absolute_import, print_function, unicode_literals
from ava import wrapper
wrapper.init_app_dir()
if __name__ == '__main__':
from avashell.osx.shell import Shell
shell = Shell()
shell.run()
| [
"sam@eavatar.com"
] | sam@eavatar.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.