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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
8784376ce31a46be2c05206123c930ddf194fe3e | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02647/s859893924.py | b7a5f89ad9134aca7f48b2fea3ed6d9c328bf803 | [] | 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 | 361 | py |
N, K = map(int, input().split())
X = list(map(int, input().split()))
x = X[:] + [0]
for _ in range(K):
if all(v == N for v in x[:-1]):
break
new = [0] * (N + 1)
for i in range(N):
new[max(0, i - x[i])] += 1
new[min(N, i + x[i] + 1)] -= 1
for i in range(N):
new[i + 1] ... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
55a1df8b16de071a6b02d9c975016f71d3624f6f | e780a5bd72f98ca2513c993d64a85b08578166a6 | /buildout-cache/eggs/Zope2-2.13.26-py2.7.egg/ZPublisher/Response.py | 6d53ae1b336ce36cbd7a4dbc8d7c879da21c538d | [] | no_license | vedantc98/Plone-test | 023246597ffe848e2a49b9f65742ff49127b190b | 9fd520fc78481e2c0b9b7ec427821e7f961c777e | refs/heads/master | 2021-03-30T22:14:33.368739 | 2018-03-11T19:22:58 | 2018-03-11T19:22:58 | 124,671,713 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 699 | py | ##############################################################################
#
# Copyright (c) 2002 Zope Foundation and Contributors.
#
# This software is subject to the provisions of the Zope Public License,
# Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution.
# THIS SOFTWARE IS PROVIDED... | [
"vedantc98@gmail.com"
] | vedantc98@gmail.com |
fd32e50ab4ceb5d7ae87fb02b262fd5d491c6dbd | 09b58578dfac5c703c2c78823bebe2d8a2f70e37 | /pmp_shield/employees/views.py | bb6f187644ee3a7512b66ba20083d17c16cca620 | [
"MIT"
] | permissive | luiscberrocal/pmp_shield | 8bd043be22f7e55747a4b8b487e46be680eea88d | bbac85af8eea2db2e8f3570ac9ff1a6ff4870665 | refs/heads/master | 2020-04-12T08:54:42.751123 | 2016-10-03T10:53:32 | 2016-10-03T10:53:32 | 64,802,898 | 0 | 2 | null | 2016-10-03T10:45:04 | 2016-08-03T00:54:41 | Python | UTF-8 | Python | false | false | 1,463 | py | from braces.views import LoginRequiredMixin
from django.shortcuts import render
# Create your views here.
from django.views.generic import ListView, DetailView
from .models import Employee, OrganizationUnit
class EmployeeListView(LoginRequiredMixin, ListView):
model = Employee
def get_context_data(self, **... | [
"luis.berrocal.1942@gmail.com"
] | luis.berrocal.1942@gmail.com |
69afac4745b7947ed1a48f8e7737d475717d00ca | 71dea7d99e3619f133826a134f8d4bb644fa3f91 | /libs/groupdocs_conversion_cloud/models/image_load_options.py | 142884dcf0b62850cfe5b242ce132d99d5df5aa2 | [
"MIT"
] | permissive | rocketbot-cl/pdf2word | cd26aa77a2e38efaebd2180e8b097a4e9d947950 | 794d929651673155a96330b8b45d0f7c69856076 | refs/heads/master | 2022-12-30T16:16:12.908538 | 2022-12-12T22:08:08 | 2022-12-12T22:08:08 | 230,915,875 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,538 | py | # coding: utf-8
# -----------------------------------------------------------------------------------
# <copyright company="Aspose Pty Ltd" file="ImageLoadOptions.py">
# Copyright (c) 2003-2019 Aspose Pty Ltd
# </copyright>
# <summary>
# Permission is hereby granted, free of charge, to any person obtaining a copy
... | [
"marce.rotten@gmail.com"
] | marce.rotten@gmail.com |
a5dd8bca6684e85e30d01a89075fbbe37ccc936f | 19bcb4784f2ddda66d5ccf9eb268c45baf1f122c | /python/label_standardise/ftnbc_label.py | 04c248cfb89bd6469e906d37887cfe2076ddf3ef | [
"MIT"
] | permissive | PeterJackNaylor/AutomaticWSI | bb76f9983479b1a1a6d7ad089eb9bb098da91136 | a26f3d8efff005dcf2d1a14705785579ce5484c8 | refs/heads/master | 2023-09-04T09:12:48.946814 | 2023-08-30T09:24:17 | 2023-08-30T09:24:17 | 226,664,370 | 1 | 1 | MIT | 2020-03-19T10:49:47 | 2019-12-08T12:30:52 | Python | UTF-8 | Python | false | false | 2,701 | py | import os
import pandas as pd
from glob import glob
def get_options():
import argparse
parser = argparse.ArgumentParser(
description='Creating training on heatmaps')
parser.add_argument('--input_table',
metavar="str", type=str,
help='original xml ta... | [
"peter.naylor@mines-paristech.fr"
] | peter.naylor@mines-paristech.fr |
583961220cb70bdd0a2fe66a743ef7d59d9b2be3 | 66c3eb5a49b6b674e72ffeac00a221f16e224806 | /LX_API_TEST/study/sorted_study.py | 70b7ea21a1c01b01631eb36f99d6f7596e1fb376 | [] | no_license | fan966/LX_AT_TEST | 20ad5793ef9ab6fe9070d046935b90450321ff0b | 7e95a399140567ff601205f8d83babbe56279ab6 | refs/heads/master | 2022-12-31T15:11:04.972185 | 2020-10-23T11:58:46 | 2020-10-23T11:58:46 | 258,690,216 | 0 | 1 | null | 2020-04-26T07:00:43 | 2020-04-25T04:53:19 | Python | UTF-8 | Python | false | false | 389 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# sorted() 可以对可迭代对象进行排序
dic = {'Headers': {'ValidateToken': '_fb6feb46f67f4139b077ee0e9c0ad58c'}, 'NewVerifParmsData': {'UserName': 'hctest001'},'age':'tets'}
d = sorted(dic)
print(d)
t = {'ValidateToken': '_fb6feb46f67f4139b077ee0e9c0ad58c'}
tt = sorted(t)
print(tt)
... | [
"664340382@qq.com"
] | 664340382@qq.com |
42d77654dd970296c7204cb71e9ada31e3a3a035 | caf6ae544fce3b332b40a03462c0646a32c913e1 | /master/python/test/test_succ_coin_ref_data.py | bef6bc00dab44bcde522069ed75f5e5b951eaf8f | [
"Apache-2.0"
] | permissive | coinsecure/plugins | 827eb0ce03a6a23b4819a618ee47600161bec1c7 | ad6f08881020c268b530d5242d9deed8d2ec84de | refs/heads/master | 2020-05-30T07:17:56.255709 | 2016-11-27T22:22:23 | 2016-11-27T22:22:23 | 63,496,663 | 3 | 5 | null | null | null | null | UTF-8 | Python | false | false | 1,757 | py | # coding: utf-8
"""
Coinsecure Api Documentation
To generate an API key, please visit <a href='https://coinsecure.in/api' target='_new' class='homeapi'>https://coinsecure.in/api</a>.<br>Guidelines for use can be accessed at <a href='https://api.coinsecure.in/v1/guidelines'>https://api.coinsecure.in/v1/guideli... | [
"vivek0@users.noreply.github.com"
] | vivek0@users.noreply.github.com |
97d3ec17fac92c185142bf549b8cf3f933ab1a4a | 806b292a5434b29138666529be6411ac4aa9edc6 | /tests/test_column.py | 506cd872e7be4d5ee859046a6f2de941f1f764e3 | [
"MIT"
] | permissive | mlesfield/table_enforcer | 38dfc35e374976d767ea6fb38a0286475b98c629 | 6986ad6e0a5edc84d32a73218b2c4817b6b0fe96 | refs/heads/master | 2021-08-15T07:57:38.423936 | 2017-11-17T16:11:23 | 2017-11-17T16:11:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 202 | py | """Test the unit: Enforcer."""
from .conftest import col4 # noqa: F401
def test_init(col4):
assert col4.name == 'col4'
assert col4.dtype == str
assert col4.unique == False # noqa: E712
| [
"w.gus.dunn@gmail.com"
] | w.gus.dunn@gmail.com |
12ff43bbcc07391fe266420d960e2e1913a36ba2 | bf93b4566df944084f3dbd5aac0f98f7e7f1c471 | /awkward-cpp/awkward/cpp/__init__.py | 39dd1d2f255811ad8dcff268333934ac8d211b83 | [
"BSD-3-Clause"
] | permissive | masonproffitt/awkward-array | cedd8cc094126ed9a162e9de6e03d1108f28038b | a66ea6136dd21fd1a883da55f6454367411c20d8 | refs/heads/master | 2020-05-20T01:24:56.999791 | 2019-06-02T11:14:40 | 2019-06-02T11:14:40 | 185,310,578 | 0 | 0 | BSD-3-Clause | 2019-05-07T03:01:34 | 2019-05-07T03:01:32 | null | UTF-8 | Python | false | false | 224 | py | #!/usr/bin/env python
# BSD 3-Clause License; see https://github.com/scikit-hep/awkward-array/blob/master/LICENSE
import numpy
from awkward.cpp.array.jagged import JaggedArrayCpp as JaggedArray
__all__ = ["JaggedArray"]
| [
"jpivarski@gmail.com"
] | jpivarski@gmail.com |
7567e285c2baccf40b9bac3c0d2fb666ee3fb30e | 2fb15911e6df763e99971458bb0b0a27eecfbc9d | /myobject/myadmin/views/shop.py | 52ef6388e50b39e57538e8dc36456bdb592b481e | [] | no_license | yishishizi/web | 0269dab154125f3ecb0329053244997d12f34c24 | 769d12c57c49b09e4ea436775cdc065431a4c6f1 | refs/heads/master | 2023-07-11T13:56:31.434691 | 2021-08-07T07:32:18 | 2021-08-07T07:32:18 | 387,641,945 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,876 | py | from django.shortcuts import render
from django.http import HttpResponse
from django.core.paginator import Paginator
from myadmin.models import Shop
from datetime import datetime
import hashlib,random
import time
# Create your views here.
def index(request,pindex=1):
"""浏览信息"""
smod=Shop.objects
... | [
"1151768033@qq.com"
] | 1151768033@qq.com |
ad049b0ce9a642deba0c0d9dd008779fcd43b3f3 | d2c229f74a3ca61d6a22f64de51215d9e30c5c11 | /test/python/circuit/gate_utils.py | 83e884bb724b9835fb9028449dc7b8cbcc60beb3 | [
"Apache-2.0"
] | permissive | 1ucian0/qiskit-terra | 90e8be8a7b392fbb4b3aa9784c641a818a180e4c | 0b51250e219ca303654fc28a318c21366584ccd3 | refs/heads/main | 2023-08-31T07:50:33.568824 | 2023-08-22T01:52:53 | 2023-08-22T01:52:53 | 140,555,676 | 6 | 1 | Apache-2.0 | 2023-09-14T13:21:54 | 2018-07-11T09:52:28 | Python | UTF-8 | Python | false | false | 1,203 | py | # This code is part of Qiskit.
#
# (C) Copyright IBM 2017, 2020.
#
# This code is licensed under the Apache License, Version 2.0. You may
# obtain a copy of this license in the LICENSE.txt file in the root directory
# of this source tree or at http://www.apache.org/licenses/LICENSE-2.0.
#
# Any modifications or derivat... | [
"noreply@github.com"
] | 1ucian0.noreply@github.com |
27e71018170f8c20f6b15f61fee07f6aa23d45af | 1d22e0cc8db1ddbdab6c06a049ccc15f35dfff99 | /hmm_class/hmmd.py | 29d1b98ec4aca2f5e4bedda22ac58d43e9624ba1 | [] | no_license | JiaxinYu/machine_learning_examples | 59f37335407d9b9523a6879602ad3d58eac7da77 | db49879ca5efd34e7d2ad6c3ddf1fb4854c24429 | refs/heads/master | 2020-06-11T07:24:29.871826 | 2016-11-27T17:54:19 | 2016-11-27T17:54:19 | 75,734,758 | 1 | 0 | null | 2016-12-06T13:39:27 | 2016-12-06T13:39:27 | null | UTF-8 | Python | false | false | 7,186 | py | # https://udemy.com/unsupervised-machine-learning-hidden-markov-models-in-python
# http://lazyprogrammer.me
# Discrete Hidden Markov Model (HMM)
import numpy as np
import matplotlib.pyplot as plt
def random_normalized(d1, d2):
x = np.random.random((d1, d2))
return x / x.sum(axis=1, keepdims=True)
class HMM:... | [
"sublime.balloon@gmail.com"
] | sublime.balloon@gmail.com |
2b30096219cffdf5d9b8562873d4ff3c91cc264b | 3fe272eea1c91cc5719704265eab49534176ff0d | /scripts/field/go1010100.py | 4bc5f5f3e40652e3b21e21cd40687a377a1046ab | [
"MIT"
] | permissive | Bratah123/v203.4 | e72be4843828def05592298df44b081515b7ca68 | 9cd3f31fb2ef251de2c5968c75aeebae9c66d37a | refs/heads/master | 2023-02-15T06:15:51.770849 | 2021-01-06T05:45:59 | 2021-01-06T05:45:59 | 316,366,462 | 1 | 0 | MIT | 2020-12-18T17:01:25 | 2020-11-27T00:50:26 | Java | UTF-8 | Python | false | false | 133 | py | # Created by MechAviv
# ID :: [4000022]
# Maple Road : Adventurer Training Center 1
sm.showFieldEffect("maplemap/enter/1010100", 0)
| [
"pokesmurfuwu@gmail.com"
] | pokesmurfuwu@gmail.com |
0048e208d6f3f141df71a7af1b7e87db39973345 | 2384f25e7f5e6d3b5fe15d06509ee6d9ba6b8c1f | /testing/test_widget_descriptor.py | 3536f414e67acaf32e04a19cae3c470471dcd45c | [
"Apache-2.0"
] | permissive | bsquizz/widgetastic.core | 25ddeea277ce7249bdeed4b9d945a9701b19cc5d | e2b053b9b64e8210cb9c6a89fa238ee51d7331dd | refs/heads/master | 2020-04-28T19:25:11.378172 | 2019-03-08T15:36:36 | 2019-03-08T15:36:36 | 175,510,427 | 0 | 0 | NOASSERTION | 2019-03-13T22:48:38 | 2019-03-13T22:48:37 | null | UTF-8 | Python | false | false | 1,257 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from widgetastic.widget import WidgetDescriptor
def test_can_create_descriptor():
class MyClass(object):
pass
desc = WidgetDescriptor(MyClass, 1, 2, foo='bar')
assert desc.klass is MyClass
assert desc.args == (1, 2)
assert d... | [
"mfalesni@redhat.com"
] | mfalesni@redhat.com |
8849f1d428d3a9dfcfa06f609ead334ec0cf56dd | fb5c5d50d87a6861393d31911b9fae39bdc3cc62 | /Scripts/sims4communitylib/utils/sims/common_sim_walkstyle_utils.py | 4aaaeeda99843de4ac05cc579c89ec0fc473380a | [
"CC-BY-4.0"
] | permissive | ColonolNutty/Sims4CommunityLibrary | ee26126375f2f59e5567b72f6eb4fe9737a61df3 | 58e7beb30b9c818b294d35abd2436a0192cd3e82 | refs/heads/master | 2023-08-31T06:04:09.223005 | 2023-08-22T19:57:42 | 2023-08-22T19:57:42 | 205,197,959 | 183 | 38 | null | 2023-05-28T16:17:53 | 2019-08-29T15:48:35 | Python | UTF-8 | Python | false | false | 2,211 | py | """
The Sims 4 Community Library is licensed under the Creative Commons Attribution 4.0 International public license (CC BY 4.0).
https://creativecommons.org/licenses/by/4.0/
https://creativecommons.org/licenses/by/4.0/legalcode
Copyright (c) COLONOLNUTTY
"""
from typing import Union
from routing.walkstyle.walkstyle_t... | [
"ColonolNutty@hotmail.com"
] | ColonolNutty@hotmail.com |
5a231f88f5666bce3501755a50c41ed6c25e9dec | 404a8596d3c4a55efe57e6fe5f2f19747a487e28 | /programmers/LCM.py | ac62518113486f3f802de3ccd9af9ed76608877a | [] | no_license | taehwan920/Algorithm | 370b72e48ba404ae1fb7a7786165b88a8daf090a | f837034d0c2f7cac370eb8cceacb8b3827ec62f9 | refs/heads/master | 2021-08-17T07:14:33.594428 | 2021-01-01T14:26:35 | 2021-01-01T14:26:35 | 237,892,425 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 466 | py | from math import gcd
def solution(arr):
arr.sort()
while len(arr) > 1:
temp = arr[0] * arr[1] // gcd(arr[0], arr[1])
arr.pop(0)
arr.pop(0)
arr = [temp] + arr
return arr[0]
# 최소공약수는 math모듈에 내장 메소드로 있음.
# 최대 공약수는 두 수를 곱해서 최대공약수로 나눠주면 구할 수 있음.
# 여러 수의 최소 공배수는 두개씩 짝지어 최소공배수를 구... | [
"taehwan920@gmail.com"
] | taehwan920@gmail.com |
46d6f17e7b91e2b543c4f28f3a42ea789fd57ebc | 600df3590cce1fe49b9a96e9ca5b5242884a2a70 | /third_party/grpc/tools/distrib/python/submit.py | f581b7705c48cde62744d49ddd1404084797cd90 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference",
"LGPL-2.0-or-later",
"GPL-1.0-or-later",
"MIT",
"Apache-2.0"
] | permissive | metux/chromium-suckless | efd087ba4f4070a6caac5bfbfb0f7a4e2f3c438a | 72a05af97787001756bae2511b7985e61498c965 | refs/heads/orig | 2022-12-04T23:53:58.681218 | 2017-04-30T10:59:06 | 2017-04-30T23:35:58 | 89,884,931 | 5 | 3 | BSD-3-Clause | 2022-11-23T20:52:53 | 2017-05-01T00:09:08 | null | UTF-8 | Python | false | false | 3,760 | py | #!/usr/bin/env python2.7
# Copyright 2015, Google Inc.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# * Redistributions of source code must retain the above copyright
# notice, this lis... | [
"enrico.weigelt@gr13.net"
] | enrico.weigelt@gr13.net |
e1bd2e751a2adffd4d3049e4fad1b27d763fead9 | b8b8bcfe55650930a419fd19ef9d34cd3ab7b67a | /typings/ansicolor/__init__.pyi | a421d21b4d50e2956c6cdb733329ca41d6b63924 | [
"MIT"
] | permissive | Josef-Friedrich/audiorename | 64d090d9f29f4f639599a5cf491adf3e2ee95ae0 | 64e142040b56935d72c0bbfc18e2f059072e7b3b | refs/heads/main | 2023-08-14T07:45:35.704494 | 2023-08-09T15:56:46 | 2023-08-09T15:56:46 | 63,544,822 | 14 | 1 | MIT | 2023-08-09T15:57:48 | 2016-07-17T17:46:58 | Python | UTF-8 | Python | false | false | 1,371 | pyi | """
This type stub file was generated by pyright.
"""
from __future__ import absolute_import
from ansicolor.ansicolor import (
Colors,
colordiff,
colorize,
colorize_v2,
get_code,
get_code_v2,
get_highlighter,
highlight_string,
justify_formatted,
set_term_title,
strip_escape... | [
"josef@friedrich.rocks"
] | josef@friedrich.rocks |
f4fe52bb4c5a76eee7cef1fb636380be412d7d48 | 5ac7ea7e67da7726dbf7cec59a7b45ece9c935f9 | /Module 10/6.1 delete commanad.py | 5f9bfe0788adea9d52e7a105f9edfe035049a63b | [] | no_license | Vipulhere/Python-practice-Code | 61cc7a0246a28506c29857589e6b90dd5cbf952b | d47362241474527061e1beccb3d60f12ab7e2e5a | refs/heads/main | 2023-08-13T04:45:43.819247 | 2021-10-15T09:27:15 | 2021-10-15T09:27:15 | 313,358,144 | 7 | 3 | null | null | null | null | UTF-8 | Python | false | false | 295 | py | import sqlite3
conn=sqlite3.connect("database.db")
query="DELETE FROM STD WHERE name='BOB';"
try:
cursor=conn.cursor()
cursor.execute(query)
conn.commit()
print("Record is successfully deleted")
except:
print("error into deletion of record")
conn.rollback()
conn.close()
| [
"noreply@github.com"
] | Vipulhere.noreply@github.com |
e3cf96fc9ee8b4a065d928c347a9981329c7a024 | a1599e8c35b1abcbde8ecd3968f517cf8bbc2fe5 | /tiddlyweb/web/handler/chronicle.py | b7c1bfbb232807c721f8a66349edfecb76764044 | [
"BSD-3-Clause"
] | permissive | nasingfaund/tiddlyweb | 3afdebc21bcb0eb71c0a77a4e00dfb935ba731c5 | 376bcad280e24d2de4d74883dc4d8369abcb2c28 | refs/heads/master | 2023-07-09T04:44:00.119606 | 2021-08-18T15:48:25 | 2021-08-18T15:48:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,489 | py | """
A chronicle is a stack of :py:class:`tiddlers
<tiddlyweb.model.tiddler.Tiddler>`, usually revisions of
one tiddler. By POSTing a chronicle of tiddlers originally
named A to tiddler B, it is possible to rename a tiddler
while preserving revision history.
"""
import simplejson
from httpexceptor import HTTP400, HTTP... | [
"chris.dent@gmail.com"
] | chris.dent@gmail.com |
237ef281c475486cc478e2e5f7df11af402d8e01 | 1726b02eaa58c4849de36c54cbf8a86fd3cec6eb | /polyaxon/libs/views.py | 15cd03e14e2e72a94855b9feff18fd266cec331f | [
"MIT"
] | permissive | hephaex/polyaxon | 41768df51017fa5d7574918d97d396897b7f8d3d | d89fce57e1a0d515133d657fe60e9fc8ff695cdd | refs/heads/master | 2021-05-08T17:21:52.959071 | 2018-01-30T00:37:01 | 2018-01-30T00:37:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 421 | py | # -*- coding: utf-8 -*-
from __future__ import absolute_import, division, print_function
from rest_framework import generics
class ListCreateAPIView(generics.ListCreateAPIView):
create_serializer_class = None
def get_serializer_class(self):
if self.create_serializer_class and self.request.method.low... | [
"mouradmourafiq@gmail.com"
] | mouradmourafiq@gmail.com |
8e6fea043e8a07a19c5f7f79716be8c2e4c5f093 | ff62ac78e34cdaf6d5d3bc7230a4f4aee740b142 | /basic/primeno.py | 6a418a6016c448bf034210a031f065859bf4683c | [] | no_license | suriyaganesh97/pythonbasicprogs | 7ff67ca6193150d9c61e1eb10e2727694d9b7c6e | ffb599f1804654785757fea4b0f36b11094a4fae | refs/heads/master | 2022-01-03T22:07:27.625938 | 2022-01-02T11:35:28 | 2022-01-02T11:35:28 | 253,271,886 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 592 | py | a = int(input("enter a number: "))
if a > 1:
# Iterating over the given number with for loop enough to check upto half of the numbers
#here we are using 'for else' condition
for j in range(2, int(a / 2) + 1):
# If the given number is divisible or not even if one num divides cleanly then not a prime ... | [
"63084594+suriyaganesh97@users.noreply.github.com"
] | 63084594+suriyaganesh97@users.noreply.github.com |
09ad18dc51c3b2d72b021186215bd4f0610973dd | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_092/ch31_2020_03_04_22_02_38_951515.py | d7f43586d26fd2f5942b34fa0f1dbab5d4ad2ab5 | [] | 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 | 159 | py | t = 2
def eh_primo(x):
if x<t
eh_primo = False
else:
while(t<x):
if (x%t==0):
eh_primo = False
| [
"you@example.com"
] | you@example.com |
1d5e8720db3ba4a53104959f90113e8a0a050622 | 551b75f52d28c0b5c8944d808a361470e2602654 | /huaweicloud-sdk-mpc/huaweicloudsdkmpc/v1/model/delete_merge_channels_task_request.py | 667c33f0f7c5a7f9a376566b4682107bceb5c1cd | [
"Apache-2.0"
] | permissive | wuchen-huawei/huaweicloud-sdk-python-v3 | 9d6597ce8ab666a9a297b3d936aeb85c55cf5877 | 3683d703f4320edb2b8516f36f16d485cff08fc2 | refs/heads/master | 2023-05-08T21:32:31.920300 | 2021-05-26T08:54:18 | 2021-05-26T08:54:18 | 370,898,764 | 0 | 0 | NOASSERTION | 2021-05-26T03:50:07 | 2021-05-26T03:50:07 | null | UTF-8 | Python | false | false | 2,783 | py | # coding: utf-8
import pprint
import re
import six
class DeleteMergeChannelsTaskRequest:
"""
Attributes:
openapi_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key is attribute name
a... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
6abe86f0073be0ef6358989e95eccde951adc160 | 1726cc4fc7628f1825c8095547250449f2a1f4b4 | /python/jittor/test/test_example.py | 5565f094c3b553e00a77d8bbf324c65800f911f5 | [
"Apache-2.0"
] | permissive | llehtahw/jittor | 4296675e8e4f9e89a2254f3e28dd840bc6933168 | d83389117fd026a0881dd713e658ce5ae2a75bcb | refs/heads/master | 2022-11-23T15:26:20.371078 | 2020-07-27T14:26:37 | 2020-07-27T14:26:37 | 283,149,529 | 0 | 0 | Apache-2.0 | 2020-07-28T08:26:57 | 2020-07-28T08:26:57 | null | UTF-8 | Python | false | false | 2,598 | py | # ***************************************************************
# Copyright (c) 2020 Jittor. Authors: Dun Liang <randonlang@gmail.com>. All Rights Reserved.
# This file is subject to the terms and conditions defined in
# file 'LICENSE.txt', which is part of this source code package.
# ********************************... | [
"randonlang@gmail.com"
] | randonlang@gmail.com |
bc4a54281a96856cf714b14c921325b62c570f18 | 36bbaf7cefef19ed1ff2ff27c1030acb6f2630c4 | /dictdata.py | 07cced4c57fff6feed853443ff92945b1d5f825a | [] | no_license | MineRobber9000/mafiabot | 3b715140a9310d4d754e2edfa11e6d5fe70e1e0c | 0586bdfafc6ff35c89670c972a0a898d7165854a | refs/heads/master | 2022-12-21T00:42:17.207010 | 2020-09-26T21:46:31 | 2020-09-26T21:46:31 | 298,904,791 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 474 | py | import plugin
class DictData(plugin.JSONData):
def __init__(self,filename,**kwargs):
plugin.JSONData.__init__(self,kwargs)
self.filename = filename
self.load(self.filename)
def __getitem__(self,k):
self.load(self.filename)
return self.value[k]
def __setitem__(self,k,v):
self.value[k]=v
self.save(self.f... | [
"khuxkm@ttm.sh"
] | khuxkm@ttm.sh |
79e0777c82685b82a0d681430d346041db7d9f16 | 6527b66fd08d9e7f833973adf421faccd8b765f5 | /yuancloud/plugin/wx_base/models/wx_thirdplatform.py | d207a726dbea7eb1ecd4fbb2c33fd3d5eb6d733e | [] | no_license | cash2one/yuancloud | 9a41933514e57167afb70cb5daba7f352673fb4d | 5a4fd72991c846d5cb7c5082f6bdfef5b2bca572 | refs/heads/master | 2021-06-19T22:11:08.260079 | 2017-06-29T06:26:15 | 2017-06-29T06:26:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 802 | py | # -*- coding: utf-8 -*-
from yuancloud import models, fields, api, _
class ycloud_wx_thirdplatform(models.Model):
_name = 'wx.third_platform'
_rec_name = 'auth_component_platformname'
auth_component_appid=fields.Char("第三方平台Appid")
auth_component_appsecret=fields.Char("第三方平台Appsecret")
auth_compone... | [
"liuganghao@lztogether.com"
] | liuganghao@lztogether.com |
ea0ad42e32cbe706a47cf2687cdb906db6234940 | 0fd92b7d882a1edb5542f6600bb177dcad67ed50 | /powerful104/2875.py | 7e894b0f1b73f37542ad165ab60feac6c7a64cd3 | [] | no_license | alpha-kwhn/Baekjun | bce71fdfbbc8302ec254db5901109087168801ed | f8b4136130995dab78f34e84dfa18736e95c8b55 | refs/heads/main | 2023-08-02T11:11:19.482020 | 2021-03-09T05:34:01 | 2021-03-09T05:34:01 | 358,347,708 | 0 | 0 | null | 2021-04-15T17:56:14 | 2021-04-15T17:56:13 | null | UTF-8 | Python | false | false | 166 | py | a, b, c= map(int, input().split())
rest=a+b
ans=0
while a>1 and b>0:
if (rest-3)<c:
break
a=a-2
b=b-1
rest=a+b
ans+=1
print(ans) | [
"noreply@github.com"
] | alpha-kwhn.noreply@github.com |
06500b593a611adbabe120fe00cbe252614683cc | e07732e5f37e4ea947692cd5aef54370e6706c1b | /third_party/catapult/experimental/bisect_lib/fetch_intervening_revisions_test.py | e0e3e2911aa563ee09a3155d6b5f06067648a88f | [
"BSD-3-Clause",
"MIT"
] | permissive | davehorner/Prelude | 5270a7da950fd0cb9d681b2debc4143321160c49 | bd005acdcffcb54564597246a6ee613b21fa592f | refs/heads/master | 2022-01-06T20:42:51.030436 | 2019-03-10T22:57:37 | 2019-03-10T22:57:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,979 | py | #!/usr/bin/env python
# Copyright 2015 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 os
import unittest
# pylint: disable=wrong-import-position
import mock
from bisect_lib import fetch_intervening_revisions
# py... | [
"xzwang2005@gmail.com"
] | xzwang2005@gmail.com |
6f0aa21fd1abb9f6ceee4f8027f1c20c29158aea | bda0ecadb1fdede0a8935b35d5bb6eaa745d092a | /src/cosmosdb-preview/azext_cosmosdb_preview/vendored_sdks/azure_mgmt_cosmosdb/aio/operations/_database_account_region_operations.py | 16cef787b1dec410a4fd95b1b916331e035b2b88 | [
"MIT",
"LicenseRef-scancode-generic-cla"
] | permissive | jongio/azure-cli-extensions | 059c785e01c6dc5ec89bf7f4d9d2c42ed8cebea3 | c2f1e4be94c65451a1d060291ae661a597531fd2 | refs/heads/master | 2021-11-23T23:49:26.690924 | 2021-10-23T14:09:49 | 2021-10-23T14:09:49 | 224,203,634 | 0 | 0 | MIT | 2020-06-16T16:26:32 | 2019-11-26T13:52:09 | null | UTF-8 | Python | false | false | 6,361 | 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"
] | jongio.noreply@github.com |
f599455bfa6a6917667f8cd0f4f5803feac0b30f | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_209/385.py | f836480f26f961b7cde467068ea0dfd1cb70da9b | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,270 | py |
from collections import namedtuple
from math import pi
Pancake = namedtuple('Pancacke', ['radius', 'height'])
def top(pcake):
return pi * pcake.radius ** 2
def side(pcake):
return pi * pcake.radius * 2 * pcake.height
def solve(data):
k = data['k']
pancakes = sorted(data['pancakes'])
guess = [pa... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
9a3576ae1653abe3cb8225bca9432e87ebd1127b | b6d8049568e8068422bc4ac2b957972dc1ee0ab7 | /blueprints/azure_queue/cit/azure_storage_queues_test.py | 14234b15bb7cfb8155670aab31420d74862f81c9 | [
"Apache-2.0"
] | permissive | CloudBoltSoftware/cloudbolt-forge | a6dffd52bd074ad48a61527502fcddf8113508ff | a5584a84841be49bea69df506a91d18cb3f215d8 | refs/heads/master | 2023-08-11T08:08:07.730807 | 2023-08-10T11:40:07 | 2023-08-10T11:40:07 | 39,207,603 | 37 | 44 | Apache-2.0 | 2023-09-14T20:06:44 | 2015-07-16T16:18:02 | Python | UTF-8 | Python | false | false | 4,971 | py | """Verify that the Azure Queue BP is working as expected.
"""
import json
import logging
import re
import uuid
from api.api_samples.python_client.api_client import CloudBoltAPIClient
from api.api_samples.python_client.samples.api_helpers import wait_for_order_completion
from common.methods import set_progress
from a... | [
"klaratta@cloudboltsoftware.com"
] | klaratta@cloudboltsoftware.com |
7c438496032f1ace7df866061cae1d10ef6d9901 | 0f710bcb33761f230d5b368437efb529f29a2d00 | /portfolio/portfolio/settings.py | 00665b33016b35aae2736c0a3f61c707ecbcf156 | [] | no_license | liberbell/dj01 | e46f623b684655be59568e9b57ee3787f5d0aa87 | a98cc7f37685807d56d5bae4d561c4ba3a6c7719 | refs/heads/master | 2020-07-12T11:15:20.513865 | 2019-09-02T22:49:12 | 2019-09-02T22:49:12 | 204,803,540 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,294 | py | """
Django settings for portfolio project.
Generated by 'django-admin startproject' using Django 2.2.4.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/
"""
import os
... | [
"liberbell@gmail.com"
] | liberbell@gmail.com |
dd8693e32f613ad27c1e239dc7992579bd39b5d6 | d851e959ed58900e0382b85c064922604d5243ac | /doc/admin.py | 00904f211b5965297de55a607044ce7ccd856118 | [] | no_license | htlcnn/docman | 8ca5c99fa3372fb7d9806cec962f6a1e82f992fd | 9a88d4a4e58fd546a140c0d76b5ce398af2cc9a8 | refs/heads/master | 2021-01-23T01:18:34.304293 | 2017-03-26T11:25:45 | 2017-03-26T11:25:45 | 85,898,562 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,324 | py | from django.contrib import admin
from import_export import resources
from import_export.admin import ImportExportModelAdmin
from django.contrib.admin.helpers import ActionForm
from django import forms
from .models import Document, SaveLocation, Project, Collection
from django.db import IntegrityError
# Register your mo... | [
"hoangthanhlong@gmail.com"
] | hoangthanhlong@gmail.com |
a4d1d1ff75baec303cde5e2ccb6803645647dd25 | caf135d264c4c1fdd320b42bf0d019e350938b2d | /04_Algorithms/Leetcode/L752. Open the Lock.py | 11ec47ab804c076a2acec0ad7ab014a058ea40b4 | [] | no_license | coolxv/DL-Prep | 4243c51103bdc38972b8a7cbe3db4efa93851342 | 3e6565527ee8479e178852fffc4ccd0e44166e48 | refs/heads/master | 2022-12-31T22:42:20.806208 | 2020-10-23T10:19:19 | 2020-10-23T10:19:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,209 | py | from collections import deque
class Solution:
def openLock(self, deadends, target: str) -> int:
start = '0000'
deadends = set(deadends)
if start in deadends:
return -1
def neighbors(numstr):
for i in range(4):
yield numstr[:i] + str((int(num... | [
"1574572981@qq.com"
] | 1574572981@qq.com |
63be5f3bc0c6887403755ff1294f040fd33a4890 | 6bb45c5892b4c9692dcc44116fb73dc9e7ab90ff | /sagemaker-jumpstart/multimodal_tabtext/code/inference.py | 6d34c6191f43b1460b3df67cde97497532a2b4f8 | [
"Apache-2.0",
"BSD-2-Clause"
] | permissive | aws/amazon-sagemaker-examples | 8359afe544e873662bda5b8d2b07399c437213c9 | 43dae4b28531cde167598f104f582168b0a4141f | refs/heads/main | 2023-08-26T04:42:52.342776 | 2023-08-25T14:37:19 | 2023-08-25T14:37:19 | 107,937,815 | 4,797 | 3,519 | Apache-2.0 | 2023-09-14T19:47:03 | 2017-10-23T05:55:22 | Jupyter Notebook | UTF-8 | Python | false | false | 2,072 | py | import csv
import json
import numpy as np
import pandas as pd
import sys
from autogluon.tabular import TabularPredictor
csv.field_size_limit(int(sys.maxsize/10)) # Avoid csv.Error: field larger than field limit (131072)
def model_fn(model_dir):
"""Load the AutoGluon model. Called when the hosting service start... | [
"noreply@github.com"
] | aws.noreply@github.com |
39a7992897c9f11198a05fb4cf75d2d848d34e44 | 524591f2c4f760bc01c12fea3061833847a4ff9a | /arm/opt/ros/kinetic/lib/python2.7/dist-packages/shape_msgs/msg/_MeshTriangle.py | 8de15109177d8f052417dc60b6e39b77394cdf33 | [
"BSD-3-Clause"
] | permissive | Roboy/roboy_plexus | 6f78d45c52055d97159fd4d0ca8e0f32f1fbd07e | 1f3039edd24c059459563cb81d194326fe824905 | refs/heads/roboy3 | 2023-03-10T15:01:34.703853 | 2021-08-16T13:42:54 | 2021-08-16T13:42:54 | 101,666,005 | 2 | 4 | BSD-3-Clause | 2022-10-22T13:43:45 | 2017-08-28T16:53:52 | C++ | UTF-8 | Python | false | false | 3,664 | py | # This Python file uses the following encoding: utf-8
"""autogenerated by genpy from shape_msgs/MeshTriangle.msg. Do not edit."""
import sys
python3 = True if sys.hexversion > 0x03000000 else False
import genpy
import struct
class MeshTriangle(genpy.Message):
_md5sum = "23688b2e6d2de3d32fe8af104a903253"
_type = "... | [
"simon.trendel@tum.de"
] | simon.trendel@tum.de |
93e5daffe4eb41acba3f95563b85984677f198e9 | 4562c825c45ddf8d5dd27f827ebc9fe2871c92f9 | /properties/models.py | ff19025f31ae0ecafd6751285c490a8ace5d9107 | [] | no_license | naeem23/To-let | 88a6112b1958caa6346623f3e82fe38dc5623991 | 3e6b92791e6c0b4ccd6df63afc6ae910adc391bd | refs/heads/master | 2020-07-01T05:14:53.687253 | 2019-08-07T13:42:27 | 2019-08-07T13:42:27 | 201,058,366 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,079 | py | from django.db import models
from django.utils.text import slugify
from django.urls import reverse
from django.utils.timezone import now
class Category(models.Model):
name = models.CharField(max_length=25, default='', blank=True)
slug = models.SlugField(unique=True)
class Meta:
verbose_name = 'Category'
ver... | [
"sddqnaeem@gmail.com"
] | sddqnaeem@gmail.com |
2c4f946feabcd6ef13fc6ac1abf1d7683020389e | 61ba1d073fdbb34ad2ae4e9d0ae1b88083faeb02 | /Sem I/Programarea Algoritmilor/tutoriat/71.py | 40c7a1a1082848c7f75a9335e136af0cec6eca99 | [] | no_license | CosminHorjea/fmi | d899b639a085203963413918d2c508307cb9ba60 | 6b4911cdec64929710d984223385c1e8e36d5c7c | refs/heads/master | 2023-07-09T01:04:24.418286 | 2023-06-22T21:50:00 | 2023-06-22T21:50:00 | 213,064,779 | 7 | 1 | null | null | null | null | UTF-8 | Python | false | false | 274 | py | def lungime(s):
if len(s)<=10:
return s
else :
s2=""
s2+=s[0]
s2+=str(len(s)-2)
s2+=s[-1]
return s2
n=int(input())
stringuri=[]
for i in range(n):
stringuri.append(input())
for s in stringuri:
print(lungime(s)) | [
"horjeacosmin@yahoo.com"
] | horjeacosmin@yahoo.com |
f9c32d7e0bce699fc00844c0d7b6d1e06c2e09d9 | d537a6d0fe814eef94234b915a4dd892d8ede863 | /authors/apps/notifications/renderers.py | c333065c0917f0bc2f4574481258a0bbbbf91a02 | [
"BSD-3-Clause"
] | permissive | Jajabenit250/ah-backend-summer | d58189b291bce48e4091c78bf2ec50aabdf96920 | f842a3e02f8418f123dc5de36809ad67557b1c1d | refs/heads/develop | 2022-12-12T15:28:30.836688 | 2019-03-27T20:17:22 | 2019-03-27T20:17:22 | 253,634,800 | 1 | 0 | BSD-3-Clause | 2022-11-19T04:01:49 | 2020-04-06T23:00:08 | null | UTF-8 | Python | false | false | 1,202 | py | from rest_framework.renderers import JSONRenderer
from rest_framework.utils import json
class NotificationSettingsRenderer(JSONRenderer):
"""The ArticleJSONRenderer returns a Json object of notifications
"""
charset = "utf-8"
def render(self, data, media_type=None, renderer_context=None):
... | [
"ephraim.malinga@gmail.com"
] | ephraim.malinga@gmail.com |
69d71543bace28ad562132d51ce9b7e737dc9947 | f1e9f557c5d724dcabbfa17903de93bb82767e35 | /py_ffmpeg_video_2.py | 049583dfeb4d1fb239307747b3ef00e3b9f03e69 | [] | no_license | gregsheu/python | e5e9ff83dc0ce90541591e726c940e8a1f71a3d4 | 4a77295d58a522974ee85b201ab99cdbe410fd08 | refs/heads/master | 2023-08-18T08:30:15.611727 | 2023-08-08T06:55:44 | 2023-08-08T06:55:44 | 181,270,205 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,338 | py | import requests
import ffmpeg
import os
import json
from PIL import Image
from requests.auth import HTTPDigestAuth
import boto3
img = Image.new('RGB', (1920, 1080), (255, 255, 255))
img.save('blank.jpg', 'JPEG')
in1 = None
in2 = None
in3 = None
in4 = None
try:
#r1 = ffmpeg.input('rtsp://admin:admin12345@166.167.6.... | [
"greg@mymacpro.bluefinops.io"
] | greg@mymacpro.bluefinops.io |
0166c17d4433d238c693aec7326e757a938ac991 | 3a891a79be468621aae43defd9a5516f9763f36e | /desktop/core/ext-py/PyYAML-3.12/tests/lib3/test_appliance.py | b6f956dbfbc9d108422885d11b1b2e725ab6b889 | [
"Apache-2.0",
"MIT"
] | permissive | oyorooms/hue | b53eb87f805063a90f957fd2e1733f21406269aa | 4082346ef8d5e6a8365b05752be41186840dc868 | refs/heads/master | 2020-04-15T20:31:56.931218 | 2019-01-09T19:02:21 | 2019-01-09T19:05:36 | 164,998,117 | 4 | 2 | Apache-2.0 | 2019-01-10T05:47:36 | 2019-01-10T05:47:36 | null | UTF-8 | Python | false | false | 5,182 | py |
import sys, os, os.path, types, traceback, pprint
DATA = 'tests/data'
def find_test_functions(collections):
if not isinstance(collections, list):
collections = [collections]
functions = []
for collection in collections:
if not isinstance(collection, dict):
collection = vars(co... | [
"ranade@cloudera.com"
] | ranade@cloudera.com |
62d5907c051812e27bb45d359853f52e046c44e7 | 1a2ca64839723ede3134a0781128b0dc0b5f6ab8 | /ExtractFeatures/Data/kracekumar/SnakeBite.py | f0f39202c8fa68bce96539264a0400d116a0b21e | [] | no_license | vivekaxl/LexisNexis | bc8ee0b92ae95a200c41bd077082212243ee248c | 5fa3a818c3d41bd9c3eb25122e1d376c8910269c | refs/heads/master | 2021-01-13T01:44:41.814348 | 2015-07-08T15:42:35 | 2015-07-08T15:42:35 | 29,705,371 | 9 | 3 | null | null | null | null | UTF-8 | Python | false | false | 3,962 | py | #! /usr/bin/env python
"""
SnakeBite - by PyMike
Released to the Public Domain
Created and documented on September 2nd, 2008 in 50 minutes.
"""
#import standard python modules
import os, random
#import uber cool pygame module
import pygame
from pygame.locals import *
#I'm hunnnnngry I neeeed ssssssome fruitsssss
cl... | [
"vivekaxl@gmail.com"
] | vivekaxl@gmail.com |
76888f84d2c59a55ab1addeac57ef9dc42dfc519 | ef5fc89fdbe27b493e8b0750ddebdf59508eb933 | /zerver/migrations/0263_stream_stream_post_policy.py | b7644ad737ef55c16128d7259a43b4580ca5c769 | [
"Apache-2.0",
"LicenseRef-scancode-free-unknown"
] | permissive | Szhixiang/zulip | ed6ddb8664a22fad254fa61f90c91ad00a1a8558 | f250293d5afa7947ca95211518a402521f5d719b | refs/heads/master | 2021-03-10T00:09:26.573881 | 2020-03-10T20:53:40 | 2020-03-10T20:53:40 | 246,396,764 | 1 | 0 | Apache-2.0 | 2020-03-10T20:04:59 | 2020-03-10T20:04:58 | null | UTF-8 | Python | false | false | 476 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.26 on 2020-01-27 22:03
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('zerver', '0262_mutedtopic_date_muted'),
]
operations = [
migrations.AddFie... | [
"tabbott@zulipchat.com"
] | tabbott@zulipchat.com |
3583206aa17d52474e4969b96a388fcd6a3de9ea | be55991401aef504c42625c5201c8a9f14ca7c3b | /leetcode/tree/easy/range_sum_of_bst/tests/__init__.py | 3c33cb4749086c0cd8791113f57147017b359c87 | [
"Apache-2.0"
] | permissive | BillionsRichard/pycharmWorkspace | adc1f8bb15b58ded489fc8dec0df397601823d2c | 709e2681fc6d85ff52fb25717215a365f51073aa | refs/heads/master | 2021-09-14T21:12:59.839963 | 2021-08-08T09:05:37 | 2021-08-08T09:05:37 | 143,610,481 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 209 | py | # encoding: utf-8
"""
@version: v1.0
@author: Richard
@license: Apache Licence
@contact: billions.richard@qq.com
@site:
@software: PyCharm
@time: 2019/10/1 14:43
"""
from pprint import pprint as pp | [
"295292802@qq.com"
] | 295292802@qq.com |
868e1b839013850b9f3f77fcfbf96af44109f8bd | 9cc6721acb439db2e7cff8eb4dbff4b6e14040d5 | /programmers/level2/24.다음큰숫자.py | e7dee2c44a3b3e4a3171c350fa6d168a6a7d337a | [] | no_license | young31/Algorithm | 35c6ec6b6d9b192f9d0e6e6f6484f33c92100232 | bfcccfa798d031a930490efa24d9b2263bd4b984 | refs/heads/master | 2021-11-04T14:01:53.827508 | 2021-10-25T06:35:24 | 2021-10-25T06:35:24 | 196,034,851 | 0 | 3 | null | null | null | null | UTF-8 | Python | false | false | 860 | py | n = 15
def binarize(n):
res = []
i = 1
while n > 0:
k = n%(2**i)
res.append(k//(2**(i-1)))
n -= res[-1]*(2**(i-1))
i += 1
return res
def rev_bin(arr):
ans = 0
for i, n in enumerate(arr):
ans += n*(2**i)
return ans
# print(rev_bin(binarize(15)))
# ... | [
"migael38317@gmail.com"
] | migael38317@gmail.com |
4fdcaf11146811e1733a1d82a36cdfc21c42516c | 01733042e84a768b77f64ec24118d0242b2f13b8 | /ixnetwork_restpy/testplatform/sessions/ixnetwork/vport/protocols/instruction_2ea701c64dd7c771b8df298ca6f96902.py | 8883b389261f188e2255a1052092c49d38fd4c4c | [
"MIT"
] | permissive | slieberth/ixnetwork_restpy | e95673905854bc57e56177911cb3853c7e4c5e26 | 23eeb24b21568a23d3f31bbd72814ff55eb1af44 | refs/heads/master | 2023-01-04T06:57:17.513612 | 2020-10-16T22:30:55 | 2020-10-16T22:30:55 | 311,959,027 | 0 | 0 | NOASSERTION | 2020-11-11T12:15:34 | 2020-11-11T12:06:00 | null | UTF-8 | Python | false | false | 4,905 | py | # MIT LICENSE
#
# Copyright 1997 - 2020 by IXIA Keysight
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"),
# to deal in the Software without restriction, including without limitation
# the rights to use, copy, ... | [
"andy.balogh@keysight.com"
] | andy.balogh@keysight.com |
c706bb4f12bede9cc5ff203089be039559ed73f1 | 1f32e7e26bd26bdd2cf4a19faa59c140ad07469e | /jackknife/jk_stats.py | d99134209b0bf4e8e3261ebab47aa317412997e0 | [
"MIT"
] | permissive | kmedian/jackknife | a96d1477cc24e9a8a76c81676aab8af8404bd6ec | 5edf2704b2b4aca10fc5e73fa7f82a704200f5d3 | refs/heads/master | 2020-04-04T17:17:39.845597 | 2019-09-16T07:42:29 | 2019-09-16T07:42:29 | 156,114,887 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,231 | py |
import scipy.stats
import numpy as np
def jk_stats(theta_subs, theta_full, N=None, d=1):
"""Compute Jackknife Estimates, SE, Bias, t-scores, p-values
Parameters:
-----------
theta_subs : ndarray
The metrics, estimates, parameters, etc. of
the model (see "func") for each subsample.
... | [
"554c46@gmail.com"
] | 554c46@gmail.com |
b5150ae08b1de88cb09b8649d5af96f088bb3e91 | 98a7b8c539d17946e361495ebb5eed3d83727e38 | /variation/trunk/src/AddPopulationInfo.py | 09f5d36476a6af2b9eb90675f55ab85ea2ca4646 | [] | 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 | 2,486 | py | #!/usr/bin/env python
"""
Examples:
AddPopulationInfo.py -i /Network/Data/250k/db/reference_dataset/149SNP -l popid2ecotypeid_50 -o bin/structure_test/149_popid2ecotypeid_50.csv
Description:
Replace 2nd column with population info. If no population info, the row is removed.
"""
from __init__ import *
class AddP... | [
"yh@c5b91a9c-90b7-4db6-b2ac-9ef0fe68db40"
] | yh@c5b91a9c-90b7-4db6-b2ac-9ef0fe68db40 |
0a99b871d92eb09b257142f079ae14e451207fd7 | ab0fdb8c87437ad74562d0cd47fc8345acf68fbe | /OPEINROB/opeinrobduino.py | a4d4f7120fa485cf2992aac0896f753ec142b95f | [] | no_license | FredThx/OPEINROB | 0988017dbad25bc758c372a185f3c6cd9b841843 | ed3663151d0e0c03b99e27be308503c22281da19 | refs/heads/master | 2023-01-23T01:37:52.692403 | 2020-12-06T15:28:57 | 2020-12-06T15:28:57 | 316,773,183 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,952 | py | #!/usr/bin/env python
# -*- coding:utf-8 -*
import logging, serial, time
from bitarray import bitarray
from threading import RLock
class OPeinRobDuino():
'''Un arduino sur lequel est connecté
- commande pistolets de peinture
- capteur monte&baisse
- fin de course monte&baisse
- capt... | [
"fredthx@gmail.com"
] | fredthx@gmail.com |
277d8cad8335e0337aeed02219d5c2c538889988 | 772562e0adff366596e771d15251f5be2a5ef97f | /Utils/confusion_matrix.py | b42fe887283b79492f7923481ea3bdac1cd69799 | [] | no_license | awhitbeck/ldmx_analysis | 0ae74106226d9b24e45b518e3557923068403864 | aa0c26059953e8af9fa5eba80ab23139b892b375 | refs/heads/master | 2020-03-24T09:39:29.146878 | 2019-12-19T21:37:11 | 2019-12-19T21:37:11 | 142,634,516 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,771 | py | import ROOT as r
from ldmx_container import *
import pandas as pd
r.gStyle.SetOptStat(0)
r.gROOT.ProcessLine(".L ~/tdrstyle.C")
r.gROOT.ProcessLine("setTDRStyle()")
import numpy as np
#import pandas as pd
r.gROOT.SetBatch(True)
def print_hits(electrons, hits):
colored_print=["\033[91m{0}\033[00m",
... | [
"whitbeck.andrew@gmail.com"
] | whitbeck.andrew@gmail.com |
1d56d0ba1a8ea402b3d5f2dbdd3e798977806a92 | 628cb25f3439a267c835c128e682e9852440e083 | /problem-120.py | fa162c21e805bae9fedefb9adb4b4498d3b3cac5 | [] | no_license | hghimanshu/Project-Euler | 57d4add27ecc1c81e24c8c14d4d158db445ebe57 | fabcc6e603d98483c3b132f3417be9ca7824a079 | refs/heads/master | 2020-07-31T15:18:32.992381 | 2019-11-26T06:11:41 | 2019-11-26T06:11:41 | 210,651,271 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 232 | py | def expression(A, rem):
if A %2 ==0:
rem += A*(A - 2)
else:
rem += A*(A - 1)
return rem
if __name__ == "__main__":
rem = 0
for i in range(3, 1001):
rem = expression(i, rem)
print(rem) | [
"hghimanshu81@gmail.com"
] | hghimanshu81@gmail.com |
1d404c62b68c157450c0ebef29ee89b1f3b0396c | 781e2692049e87a4256320c76e82a19be257a05d | /all_data/exercism_data/python/saddle-points/d2db878ee5d64deeae1ee393f794b300.py | 8f811e3a1ec385387bcaec310c83b752c352f3dc | [] | 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 | 853 | py | from itertools import product
def saddle_points(matrix):
# Just renaming
rows = matrix
# Raise a ValueError on irregular matrices
validate_matrix(matrix)
# Grab the columns of the matrix
columns = [list(column) for column in zip(*rows)]
# Iterate over the rows and columns, checking to
... | [
"rrc@berkeley.edu"
] | rrc@berkeley.edu |
2e84ce89cfd81e41325f1088d5989cacdee9f262 | a7748b3984155450d17cb05a79ef736a228e4b71 | /app/models/orders.py | 0d3bd9a9323c48992ad7d169488235137760df8d | [] | no_license | tomekmatuszewski/Food_Delivery_API | b01247faadc9c90b548fda45a95d25c5728ebf6f | e8fbb2f707c0da038efd341d2527b8ecad275412 | refs/heads/master | 2023-01-08T02:49:27.865274 | 2020-11-14T12:41:09 | 2020-11-14T12:41:09 | 307,487,339 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,340 | py | from sqlalchemy import Column, Date, Float, ForeignKey, Integer, String, Text
from sqlalchemy.orm import relationship
from app.database import Base
class Order(Base):
__tablename__ = "order"
id = Column(Integer, primary_key=True, index=True)
employee_id = Column(Integer, ForeignKey("employee.id"))
c... | [
"tomasz_matuszewski@o2.pl"
] | tomasz_matuszewski@o2.pl |
d3e80722b8d290042e4970140312d2af128b6a21 | 476c989bfda64cbb23d36d7056aabe6474f49361 | /glazier/lib/title.py | e52e986a4ebbb4818e1fcd47da38885f4fb366db | [
"Apache-2.0"
] | permissive | google/glazier | 77f41697a449708490252a4831f7e87a3f4bb2bd | ec44cb163f54d1393b0a2c2730d5d0d9d0fc8515 | refs/heads/master | 2023-09-03T22:23:55.657479 | 2023-08-30T16:37:43 | 2023-08-30T16:38:16 | 79,817,356 | 1,311 | 116 | Apache-2.0 | 2023-09-12T20:14:24 | 2017-01-23T15:30:21 | Python | UTF-8 | Python | false | false | 2,987 | py | # Copyright 2019 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ag... | [
"copybara-worker@google.com"
] | copybara-worker@google.com |
3e4049b25c7d17df028ab1970a25f5dcd257e42d | 5aa27e52058d014bf4fb784d63a70c7d1f565330 | /Final/Proto1.py | d439320af11aefa1fee8731c22a9e0fd8af76e08 | [] | no_license | a5vh/AdPro | 2e5c5f952bb917d3b98c277a512670b67ce0718f | 595c1c3e5088ae3cfb85078282dffceb44c1901e | refs/heads/master | 2020-04-11T00:16:37.088549 | 2019-05-05T19:24:53 | 2019-05-05T19:24:53 | 161,381,037 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,954 | py | '''
Created on Feb 10, 2017
@author: 19augusthummert
'''
import sys, pygame, math, time, random
from pygame import *
def print_text(font, x, y, text, color=(255,255,255)):
imgText = font.render(text, True, color)
screen.blit(imgText, (x,y))
pygame.init()
screen = pygame.display.set_mode((1280, 720))
pygame.... | [
"august.hummert5@gmail.com"
] | august.hummert5@gmail.com |
0a06a0926506519ca505e92eaf9e779cd5610e90 | 67d436ae8a88ebc0b0110d712759453be695a6b8 | /src/formatters/base.py | 366866e924388bb02ac16ecfac26b4b2454fe051 | [
"BSD-3-Clause"
] | permissive | v-legoff/pa-poc3 | 906ccfda7fdb50e0daa97e967545685a0b5e0121 | f459733c9307c2f843dd9ad5d1d82feafc065816 | refs/heads/master | 2016-08-06T08:38:15.825794 | 2013-07-09T13:22:40 | 2013-07-09T13:22:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,176 | py | # Copyright (c) 2012 LE GOFF Vincent
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of source code must retain the above copyright notice, this
# list of conditions and ... | [
"vincent.legoff.srs@gmail.com"
] | vincent.legoff.srs@gmail.com |
3e673b9c6646afcace59fb82874ccfd9b1aca600 | b8518f30ab48d1dc1d538ba0ff0f31e3c3747a56 | /tests/estimator/classifier/SVC/SVCJavaTest.py | 5ce1b43612dfff05ecd61b08dc03cb3160d9cbe2 | [
"MIT"
] | permissive | zhangqiking/sklearn-porter | cca7210f42572171c28852c5a8d30b3ac2726d62 | d0cff98080d02b0f30d74cc0c3ca6047748d3de3 | refs/heads/master | 2021-08-26T06:41:31.664658 | 2017-11-21T23:32:44 | 2017-11-21T23:32:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,895 | py | # -*- coding: utf-8 -*-
import unittest
import numpy as np
from sklearn.svm.classes import SVC
from tests.estimator.classifier.Classifier import Classifier
from tests.language.Java import Java
class SVCJavaTest(Java, Classifier, unittest.TestCase):
def setUp(self):
super(SVCJavaTest, self).setUp()
... | [
"darius.morawiec@nok.onl"
] | darius.morawiec@nok.onl |
25b274dacae667733d0458fc6a18235601afb51a | fe59a93906febde6eeb9d86a235faa74f35fb62b | /blog/views.py | a98ee026955cff66b46271ad81f6bfc93162c256 | [] | no_license | blacktyger/epicentral_lab | b4812a31b26be07d84bb4c4f71bc30bac1e8edff | 24dbea90755af906cf94ff38be5d2af35f9093ee | refs/heads/master | 2023-03-07T09:19:45.547692 | 2021-02-17T18:00:48 | 2021-02-17T18:00:48 | 332,540,239 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,279 | py | from django.shortcuts import render, get_object_or_404, redirect
from django.contrib.auth.mixins import LoginRequiredMixin, UserPassesTestMixin
from django.contrib.auth.models import User
from django.views.generic import (
ListView,
DetailView,
CreateView,
UpdateView,
DeleteView
)
from .forms i... | [
"blacktyg3r@gmail.com"
] | blacktyg3r@gmail.com |
cd0ab3419ee69672c3d483194742c5a390c2c481 | 2e682fd72e3feaa70e3f7bf2a3b83c50d783ec02 | /PyTorch/contrib/cv/detection/FSAF_for_Pytorch/mmdetection/tests/test_models/test_dense_heads/test_corner_head.py | 0c43e01f1ef115ba3e47ce7b5e4b17799258e88e | [
"Apache-2.0",
"GPL-1.0-or-later",
"BSD-2-Clause",
"MIT",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | Ascend/ModelZoo-PyTorch | 4c89414b9e2582cef9926d4670108a090c839d2d | 92acc188d3a0f634de58463b6676e70df83ef808 | refs/heads/master | 2023-07-19T12:40:00.512853 | 2023-07-17T02:48:18 | 2023-07-17T02:48:18 | 483,502,469 | 23 | 6 | Apache-2.0 | 2022-10-15T09:29:12 | 2022-04-20T04:11:18 | Python | UTF-8 | Python | false | false | 7,301 | py | # Copyright 2021 Huawei Technologies Co., Ltd
#
# Licensed under the Apache License, Version 2.0 (the License);
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed ... | [
"wangjiangben@huawei.com"
] | wangjiangben@huawei.com |
4d0602caa9373cfd48c8a5c506686070c7b3b783 | 41c824ce983c2a400ca6484b365d6f7ee077c8a3 | /tools/dlrobot/common/dl_robot_round.py | 960cf3ec510b1955ef1d4cc49796c0ff33e6094e | [] | no_license | TI-Russia/smart_parser | 2c84c12906e308229037c2bc75299a4b227e795e | 7428904975b2cf88cb329b8da11017cdebe8fa03 | refs/heads/master | 2022-12-10T06:40:43.852974 | 2022-08-05T11:06:18 | 2022-08-05T11:06:18 | 129,266,366 | 16 | 4 | null | 2022-12-08T11:18:29 | 2018-04-12T14:44:23 | HTML | UTF-8 | Python | false | false | 1,467 | py | import datetime
import json
import os
class BadFormat(Exception):
def __init__(self, message="bad format"):
"""Initializer."""
self.message = message
def __str__(self):
return self.message
class TDeclarationRounds:
default_dlrobot_round_path = os.path.join(os.path.dirname(__file... | [
"sokirko@yandex.ru"
] | sokirko@yandex.ru |
4c1dd253f63ed260e05644b350c1997cbcbba181 | e2992e19ebc728387125a70c72a702a076de7a12 | /Python/01_My_Programs_Hv/14_Decorator/170_closures_practice.py | 574b19e54ec0dcdbbddedfdbe03fcd584f6d40d7 | [] | no_license | harsh1915/Machine_Learning | c9c32ed07df3b2648f7796f004ebb38726f13ae4 | c68a973cfbc6c60eeb94e253c6f2ce34baa3686e | refs/heads/main | 2023-08-27T15:01:16.430869 | 2021-11-15T07:53:36 | 2021-11-15T07:53:36 | 377,694,941 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 137 | py | def power(p):
def number(n):
return n** p
return number
square= power(2)
print(square(3))
cube= power(3)
print(cube(3)) | [
"“hdjethva6@gmail.com”"
] | “hdjethva6@gmail.com” |
8e5252106c15fc7905c14628d4ae96a1b67ca48d | 9600445d43ed32ee103214485e3d5a9ad854610d | /FMcommands/copy.py | 8fc83cb1452538d8ebfd021ff8069161f2f8b87f | [
"MIT"
] | permissive | themilkman/FileManager | 276e0b36bcdef2c18f7c1b4b2b6d4ee674f34aff | 1c28c3dba6d8afb4382432beb45b3ae1f4433ea7 | refs/heads/master | 2020-12-08T13:32:09.479380 | 2020-01-09T01:08:23 | 2020-01-09T01:12:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 866 | py | # -*- encoding: utf-8 -*-
from ..sublimefunctions import *
from .appcommand import AppCommand
class FmCopyCommand(AppCommand):
def run(self, which, paths=None):
self.view = get_view()
self.window = get_window()
if paths is None:
paths = [self.view.file_name()]
text = ... | [
"australie.p@gmail.com"
] | australie.p@gmail.com |
ace506e1ad0894cabe2c763c20a83e46c5aa74ad | 802a6090711ac37f29acbe9e9a1a8861b435e421 | /find_a_supplier/migrations/0062_auto_20180817_1630_squashed_0065_auto_20180829_1027.py | f23d60edfd322ad3e1b5d51d59e4a32cc89cc0bb | [
"MIT"
] | permissive | thibaudcolas/directory-cms | 9dc74b0e5b1c1e179102e5a91b35e97bf2984be6 | d958360fe5491a92977d754cfd0d7f8a4695639e | refs/heads/develop | 2020-04-30T17:21:21.506753 | 2019-03-21T09:18:48 | 2019-03-21T09:18:48 | 176,976,880 | 0 | 0 | MIT | 2019-03-21T16:00:33 | 2019-03-21T15:46:31 | Python | UTF-8 | Python | false | false | 2,155 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.15 on 2018-10-09 13:53
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('find_a_supplier', '0061_auto_20180604_1344'),
]
operations = [
migrations.... | [
"alessandro.denoia@digital.trade.gov.uk"
] | alessandro.denoia@digital.trade.gov.uk |
453efbc9ad9d5bf04ec010cb5246918e77466a6d | 05805ab879654cdcf61df3653847f435b624dc77 | /Dictator_service/Simple_Logger.py | 9e40676cf149eaaec0161842dae7f85dfe5a740d | [] | no_license | Wuwqhnsya/Dictator | 3d57db6bc0138464884ddc9fe7378907ab86e3ef | 45388fec03a4acdac3620611b3bccfa3c991d65f | refs/heads/master | 2020-04-28T21:57:39.309165 | 2019-01-28T19:10:28 | 2019-01-28T19:10:28 | 175,600,478 | 1 | 0 | null | 2019-03-14T10:34:02 | 2019-03-14T10:34:02 | null | UTF-8 | Python | false | false | 545 | py | """
@Author :Furqan Khan
@Email :furqankhan08@gmail.com
@Date :1/2/2017
Objective :
The purpose of this file /module /Class is to log the execution flow in a text file in unformatted way
"""
import time
class SimpleLogger:
def __init__(self):
self.logger=None
self.Log_file=None
self.loggerInfo=None
def l... | [
"furqankhan08@gmail.com"
] | furqankhan08@gmail.com |
3cd0e65a763e0dcbb6b8cf8ab17cc6684f9b8482 | f576f0ea3725d54bd2551883901b25b863fe6688 | /sdk/logic/azure-mgmt-logic/generated_samples/get_partners_by_integration_account_name.py | 82c61f3c14b2333a69973ce315198d850046f898 | [
"LicenseRef-scancode-generic-cla",
"MIT",
"LGPL-2.1-or-later"
] | permissive | Azure/azure-sdk-for-python | 02e3838e53a33d8ba27e9bcc22bd84e790e4ca7c | c2ca191e736bb06bfbbbc9493e8325763ba990bb | refs/heads/main | 2023-09-06T09:30:13.135012 | 2023-09-06T01:08:06 | 2023-09-06T01:08:06 | 4,127,088 | 4,046 | 2,755 | MIT | 2023-09-14T21:48:49 | 2012-04-24T16:46:12 | Python | UTF-8 | Python | false | false | 1,645 | 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"
] | Azure.noreply@github.com |
3704c2003b4bf2c3197bb637d11b8f84172d1ef7 | 1b48b3980abbe11691310a7f35efef62bc0ae831 | /_msic/py/ZODB/tuturoial/class/class.py | 8fbafed6bba79c38127eea3b1c748a1a226862a3 | [] | no_license | FXTD-ODYSSEY/MayaScript | 7619b1ebbd664988a553167262c082cd01ab80d5 | 095d6587d6620469e0f1803d59a506682714da17 | refs/heads/master | 2022-11-05T08:37:16.417181 | 2022-10-31T11:50:26 | 2022-10-31T11:50:26 | 224,664,871 | 45 | 11 | null | null | null | null | UTF-8 | Python | false | false | 1,963 | py | from ZODB import DB
from ZODB.FileStorage import FileStorage
from ZODB.PersistentMapping import PersistentMapping
from persistent import Persistent
import transaction
class Employee(Persistent):
"""An employee"""
def __init__(self, name, manager=None):
self.name = name
self.manager = manager... | [
"timmyliang@tencent.com"
] | timmyliang@tencent.com |
8d68404c790773914895237e78424f45eb3f387d | cea019c25a4644acfbbe96bb1e5737aab8b7b156 | /apps/client_projects/urls.py | bbcc3f26b8792fef05a1d7885477855aee53816a | [] | no_license | nielschristiank/verbose-chainsaw | 103ff4565b9f6099a14a8ef973cd1804d913ba7e | b1e5b13415636a42d46d585a2cdab8bcae648048 | refs/heads/master | 2021-01-23T01:56:20.088666 | 2017-05-31T03:39:58 | 2017-05-31T03:39:58 | 92,901,413 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 642 | py | from django.conf.urls import url
from . import views
urlpatterns = [
url(r'^$', views.index, name="index"),
url(r'^client/add$', views.show_add_client, name="show_add_client"),
url(r'^client/add/add_client$', views.add_client, name="add_client"),
url(r'^client/(?P<client_id>\d+)$', views.show_client, n... | [
"nielschristiankielland@gmail.com"
] | nielschristiankielland@gmail.com |
91d8928272e3fb1fb123c8a35e02e59aa876f284 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/111/usersdata/197/63966/submittedfiles/av2_p3_m2.py | cf59b36418d6791376f1ebd8162ee6989b12c547 | [] | 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 | 1,313 | py | # -*- coding: utf-8 -*-
import numpy as np
n=int(input('Digite o numero de linhas e colunas:'))
a=np.zeros((n,n))
for i in range (0,a.shape[0],1):
for j in range (0,a.shape[1],1):
a[i,j]=int(input('Digite o valor de um numero da matriz:'))
def somalinha(b):
soma=0
lista=[]
for i in range (0,b.s... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
0d2de21b70737289cfd6a15ca92d5c2a231213c9 | 7eeae8e8c39f09b4c95a72574e6bba722358d4a6 | /scripts/ifconfig.py | ae137fb4829a76cef6feffdbc510c1c5a1b762ab | [
"BSD-3-Clause"
] | permissive | maxsu/psutil | 3227e8a69ce6612eac2e1ff5b0bbc9c0611b4d41 | e7ce5ecf63ba00e9b0be6752a0f3b78c2a1782b3 | refs/heads/master | 2023-01-24T14:06:05.480267 | 2020-11-20T15:14:17 | 2020-11-20T15:14:17 | 314,588,855 | 1 | 0 | BSD-3-Clause | 2020-11-20T15:14:19 | 2020-11-20T15:10:42 | null | UTF-8 | Python | false | false | 3,328 | py | #!/usr/bin/env python3
# Copyright (c) 2009, Giampaolo Rodola'. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""
A clone of 'ifconfig' on UNIX.
$ python3 scripts/ifconfig.py
lo:
stats : speed=0MB, duplex=?, mtu=65536, up=yes
... | [
"g.rodola@gmail.com"
] | g.rodola@gmail.com |
f6055fc219190d06f5a1b48679692152a28802f2 | 879c36c98dc1f385032eefd2584247d35a1a6b79 | /script/agg_zip.py | a829f3d6fe3c78ff07289ea793646e47583935cc | [] | no_license | danbikle/fx411 | fe0493a572897b14437a93308b72bedc68c1ae5a | b16a9793d82f6d5d9e5b6dffe3f3ddbdc13ec36a | refs/heads/master | 2021-01-12T10:59:46.266714 | 2017-02-07T03:48:50 | 2017-02-07T03:48:50 | 72,785,021 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 995 | py | # agg_zip.py
# This script should read zip files.
# For each file it should compute current price from (bid+ask)/2.
# Next, it should groupby timestamps truncated to 5 minute boundries.
# Finally it should output a CSV file with mean of current_price for each 5 minute boundry.
import pandas as pd
import glob
fn_l = s... | [
"bikle@bikle.com"
] | bikle@bikle.com |
f8de1a847dfabfdbda205e6f492356d62f4a6d58 | 81fe7f2faea91785ee13cb0297ef9228d832be93 | /HackerRank/Contests/AdInfinitum15/k-element_sequences.py | 6c9128935f3b25345c9cb3f7dd3e919114f9bfd9 | [] | no_license | blegloannec/CodeProblems | 92349c36e1a35cfc1c48206943d9c2686ea526f8 | 77fd0fa1f1a519d4d55265b9a7abf12f1bd7d19e | refs/heads/master | 2022-05-16T20:20:40.578760 | 2021-12-30T11:10:25 | 2022-04-22T08:11:07 | 54,330,243 | 5 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,558 | py | #!/usr/bin/env python
import sys
# P(n,k) = nb de listes de taille k dont la somme vaut n
# P(n,k) = sum(P(n-i,k-1), i=1..n) # par choix du dernier element
# ce que l'on peut reformuler :
# P(n,k) = P(n-1,k-1)+P(n-1,k)
# on retrouve la formule du binom et on remarque que
# P(n,k) = k-1 parmi n-1
## Justification dire... | [
"blg@gmx.com"
] | blg@gmx.com |
def63653a2b539653154a64072a279a983fcc9bd | c78ce4f66cc964c230ad60fbf2ced6b4811eab89 | /0x11-python-network_1/6-post_email.py | e202a0bbcfde2f723ad20c25ff183770373f30cf | [] | no_license | jebichii/holbertonschool-higher_level_programming-1 | 89026557909851dd775ae355f036db89ebd9adb9 | 741953aa479af90e8eac6f1315415eff4a20224f | refs/heads/master | 2023-03-15T14:58:27.062528 | 2020-06-11T07:21:23 | 2020-06-11T07:21:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 363 | py | #!/usr/bin/python3
'''
Send an email to a URL using a POST request and display the response body
'''
import sys
import requests
if __name__ == '__main__':
if len(sys.argv) != 3:
print('Usage: ', __file__, 'URL', 'email', file=sys.stderr)
sys.exit(1)
resp = requests.post(sys.argv[1], data={'... | [
"pdeyoreo@gmail.com"
] | pdeyoreo@gmail.com |
8ca5c141a5e4787d957906a9b1e4a13a0ac65284 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2535/58822/246489.py | b1bfaf0817e8e8ae1d2ae6eef9c0c9b0cf8e2c3d | [] | 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 | 144 | py | n=input()
n=n[1:len(n)-1]
list=n.split(',')
res=len(list)
for i in range(0,len(list)-1):
if(list[i]>list[i+1]):
res=res-1
print(res) | [
"1069583789@qq.com"
] | 1069583789@qq.com |
1d82775bb3dff0c94649bf67bd1e37e4bb1c6722 | b68fea9d645de59ee31da970d3dc435460fde9de | /projectgroupemailitem/views_edit.py | 65b00fd5482dd5fa5b114957dda74bcc300c5870 | [
"BSD-3-Clause"
] | permissive | shagun30/djambala-2 | 03fde4d1a5b2a17fce1b44f63a489c30d0d9c028 | 06f14e3dd237d7ebf535c62172cfe238c3934f4d | refs/heads/master | 2021-01-10T04:20:30.735479 | 2008-05-22T05:02:08 | 2008-05-22T05:02:08 | 54,959,603 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,595 | py | # -*- coding: utf-8 -*-
"""
/dms/projectgroupemailitem/views_edit.py
.. enthaelt den View zum Aendern der Eigenschaften eines Rundschreibens
Django content Management System
Hans Rauch
hans.rauch@gmx.net
Die Programme des dms-Systems koennen frei genutzt und den spezifischen
Beduerfnissen entsprechend angep... | [
"hans.rauch@gmx.net"
] | hans.rauch@gmx.net |
1757df740d5019c181779274f0cd08e290d65989 | 7ec44a7d6a061931c0c82e2ffd8a691010b77208 | /plot_simulation_convergence_num_obs.py | d36f826e9a665bde7558cc0e8716a38ebf2d7548 | [] | no_license | jingxuanyang/spinn | 70e96b768187b3e86c50fe0e3aac2e9d38197232 | 4abab78bd86830988ae30e0e165d374cd029f273 | refs/heads/master | 2023-07-20T07:40:21.377713 | 2020-07-29T17:51:30 | 2020-07-29T17:51:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,773 | py | import sys
import os
import argparse
import pickle
import numpy as np
import matplotlib
matplotlib.use('Agg')
from matplotlib import pyplot as plt
import seaborn as sns
import pandas as pd
import statsmodels.api as sm
from plot_simulation_general import read_method_result
from common import process_params, make_params... | [
"jean.feng@gmail.com"
] | jean.feng@gmail.com |
45950e622fb74efb238142bae985781b33fcf5f8 | 55764d1ba14c324662efe2f37dcd0c45bca8bc56 | /bartpy/diagnostics/sampling.py | 9caef1b6de7a5eae1f7a333632885dce79de8c9b | [
"MIT"
] | permissive | trivialfis/bartpy | 02de7201341d1b099a468e0cc8f3a3719b98b512 | 3aa678405dadbe392df2c24dc258ffc72f175dbb | refs/heads/master | 2020-05-15T21:28:01.944291 | 2019-04-20T06:07:41 | 2019-04-20T06:07:41 | 182,499,485 | 1 | 0 | MIT | 2019-04-21T06:42:50 | 2019-04-21T06:42:50 | null | UTF-8 | Python | false | false | 427 | py | from matplotlib import pyplot as plt
from bartpy.sklearnmodel import SklearnModel
def plot_tree_mutation_acceptance_rate(model: SklearnModel, ax=None):
if ax is None:
fig, ax = plt.subplots(1, 1)
ax.plot([x["Tree"] for x in model.acceptance_trace])
ax.set_title("Tree Mutation Acceptance Rate")
... | [
"jakecoltman@sky.com"
] | jakecoltman@sky.com |
c2074e5899b511196d3dab7cd934f270c7b59736 | fa4f3cc156a2f77eeb6699b2501f2de2a27d4b8b | /common_configs/logging/stdlib.py | 9d7e317f7d0de24f500008f7cdb0340e7f190a57 | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | nigma/django-common-configs | 3bdaa1d36fdf1ad3762dccb8188aee37b2a07618 | b4499415c71ffd317f395896f97b0fc96b1ad7bd | refs/heads/master | 2021-01-15T12:25:57.218877 | 2014-01-23T15:50:42 | 2014-01-23T15:50:42 | 16,013,235 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,503 | py | #-*- coding: utf-8 -*-
"""
Django logging configuration
Defined loggers:
- <catch all>
- django
- django.startup
- django.request
- django.db.backends
- django.commands
- django.security.DisallowedHost
- app.* - for project app loggers
- boto
- celery
- requests
- rave... | [
"en@ig.ma"
] | en@ig.ma |
88ac3716930b4563f701c6097877abd1a1f093f9 | 73bb9d0d50b96b3d7ee48e2d97b1d8128a5f2b1e | /backjoon/34/4354.py | c5b0efa04798354d10b6156a26b2b1c2a26b8bc7 | [] | no_license | Hoon94/Algorithm | a0ef211d72a2b78e08249501d197875065392084 | 6f6969214bbb6bacd165313b6d8c0feb1caa8963 | refs/heads/master | 2023-05-11T13:12:11.585285 | 2023-05-08T14:38:47 | 2023-05-08T14:38:47 | 244,936,260 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 509 | py | import sys
def getPi(P):
pi = [0 for _ in range(0, len(P))]
j = 0
for i in range(1, len(P)):
while j > 0 and P[i] != P[j]:
j = pi[j - 1]
if (P[i] == P[j]):
j += 1
pi[i] = j
return pi[-1]
while True:
S = sys.stdin.readline().rstrip('\n')
... | [
"dleognsdl1@naver.com"
] | dleognsdl1@naver.com |
91658a27c8a0dd98b31e26fa48ddcaac64baed78 | 6c5c6871fc5c37247b4059c956f3ac9d7cdeb714 | /.venv/bin/python-config | f59da01a546e74da1c3c7d8001513830edf0d4e9 | [] | no_license | masa48326/homework_c | 6596f91849b86ab4655712e4dddf2805231d5df3 | 86c9b83476ee5b18c5edef473f483a4336428d3c | refs/heads/master | 2020-09-05T16:12:09.051967 | 2019-11-07T04:39:47 | 2019-11-07T04:39:47 | 220,152,904 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,373 | #!/Users/shibatamasayuki/PycharmProjects/classrevia/.venv/bin/python
import sys
import getopt
import sysconfig
valid_opts = ['prefix', 'exec-prefix', 'includes', 'libs', 'cflags',
'ldflags', 'help']
if sys.version_info >= (3, 2):
valid_opts.insert(-1, 'extension-suffix')
valid_opts.append('abif... | [
"masayuki.shibata.0831@gmail.com"
] | masayuki.shibata.0831@gmail.com | |
0e219d1a3a16bbc59fc8515634e402147f5f3988 | 14d8418ca5990217be67aee89fdaa310db03fbba | /models/generate_report_result.py | 5fb76026b99f639572a7a3b460d23851b913d21e | [
"Apache-2.0"
] | permissive | sachanta/lm-sdk-python | 3a16457bd2d5b880a0d238a88a9d1d5b8d9675f0 | e476d415c7279457f79b5d032a73d950af2fe96b | refs/heads/master | 2023-08-03T08:39:42.842790 | 2021-09-13T07:20:56 | 2021-09-13T07:20:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,517 | py | # coding: utf-8
"""
LogicMonitor REST API
LogicMonitor is a SaaS-based performance monitoring platform that provides full visibility into complex, hybrid infrastructures, offering granular performance monitoring and actionable data and insights. logicmonitor_sdk enables you to manage your LogicMonitor account... | [
"bamboo@build01.us-west-1.logicmonitor.net"
] | bamboo@build01.us-west-1.logicmonitor.net |
399b9eca614d164284b0319c1dceb590d9b6acfd | c53d57b6ea5b117d8fa260a29942cf9422a46063 | /examples/DeepBlueAI/AutoSpeech/PASA_NJU/models/model_LR.py | 1c6e1f872eb3570b0a4439999ab39dfd2692ffa7 | [
"Apache-2.0"
] | permissive | zichuan-scott-xu/automl-workflow | c52ee6c7c01347274a6b1d6801a7889daa35a40d | d108e55da943775953b9f1801311a86ac07e58a0 | refs/heads/main | 2023-04-01T16:20:10.885273 | 2021-04-14T05:44:48 | 2021-04-14T05:44:48 | 327,514,705 | 0 | 0 | Apache-2.0 | 2021-01-07T05:41:38 | 2021-01-07T05:41:38 | null | UTF-8 | Python | false | false | 1,318 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time: 2019/9/24 15:12
# @Author: Mecthew
from sklearn.linear_model import logistic
import numpy as np
import abc
class ModelBase(object):
@abc.abstractmethod
def init_model(self, **kwargs):
pass
@abc.abstractmethod
def fit(self, ... | [
"zhengying.liu@polytechnique.edu"
] | zhengying.liu@polytechnique.edu |
6ee7099a8967c307dbeb014fa437b151b87e31c9 | 14f4d045750f7cf45252838d625b2a761d5dee38 | /argo/argo/models/io_k8s_api_coordination_v1beta1_lease_spec.py | 4b070bc3d68ddf9751e39d53eccf64f3698d95b9 | [] | no_license | nfillot/argo_client | cf8d7413d728edb4623de403e03d119fe3699ee9 | c8cf80842f9eebbf4569f3d67b9d8eff4ba405fa | refs/heads/master | 2020-07-11T13:06:35.518331 | 2019-08-26T20:54:07 | 2019-08-26T20:54:07 | 204,546,868 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,093 | py | # coding: utf-8
"""
Kubernetes
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
OpenAPI spec version: v1.14.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re # noqa: F401
import six... | [
"nfillot@weborama.com"
] | nfillot@weborama.com |
454ae422e35aab4072a4b1af55b1112ac1fdf903 | 1c6283303ceb883add8de4ee07c5ffcfc2e93fab | /Jinja2/lib/python3.7/site-packages/ixnetwork_restpy/testplatform/sessions/ixnetwork/statistics/view/formulacatalog/formulacatalog.py | 800c3f884fb2aee3ad7d7d7dc699e90b495a2f50 | [] | no_license | pdobrinskiy/devcore | 0f5b3dfc2f3bf1e44abd716f008a01c443e14f18 | 580c7df6f5db8c118990cf01bc2b986285b9718b | refs/heads/main | 2023-07-29T20:28:49.035475 | 2021-09-14T10:02:16 | 2021-09-14T10:02:16 | 405,919,390 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,497 | py | # MIT LICENSE
#
# Copyright 1997 - 2020 by IXIA Keysight
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"),
# to deal in the Software without restriction, including without limitation
# the rights to use, copy, ... | [
"pdobrinskiy@yahoo.com"
] | pdobrinskiy@yahoo.com |
b050f298f3366d4ef3f7c9e2c8387b96ceed0f80 | 2d6003c2a8bccc85e1e197b82efb84de344e973b | /wiki_learner_lr.py | e9752f9bf134c51ac1beacf0bfef22a5a9cf2c34 | [] | no_license | ddlricardo/Image_Retrieval | c2208ccba2d70c8f8dd3a945673c161d6b2d4a61 | 72e26065e309708aca90de1bae391714a578b51d | refs/heads/master | 2016-09-14T06:49:03.759259 | 2016-05-22T03:03:03 | 2016-05-22T03:03:03 | 59,392,150 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,164 | py | import numpy as np
from sklearn import svm
from sklearn import linear_model
from sklearn import metrics
from sklearn import preprocessing
from sklearn import ensemble
import threading as td
import pickle
import copy
import wiki_trainer
def trainerb(traindata, trainlabel):
clf = ensemble.BaggingClassifier(
... | [
"randonlang@gmail.com"
] | randonlang@gmail.com |
16e0e66cf912be13b93cc61c08171579923972c6 | b332e9e5b63db27b23250ddbbb85b470ceaf92a1 | /List/restoreString.py | 81b03e78c0ce141b31069d4611b724d7bc69a032 | [] | no_license | huangketsudou/leetcode_python | 66fcc695b0a4f94a35cc52e161ae4bfdb1138dc2 | e983f42d245b69f9bddd9855f51ee59648a2039e | refs/heads/master | 2021-08-07T23:25:45.532458 | 2020-08-23T06:15:22 | 2020-08-23T06:15:22 | 214,324,229 | 2 | 0 | null | 2020-04-12T14:40:47 | 2019-10-11T02:16:43 | Python | UTF-8 | Python | false | false | 297 | py | from typing import List
class Solution:
def restoreString(self, s: str, indices: List[int]) -> str:
n = len(s)
l = [0] * n
for c, i in zip(s, indices):
l[i] = c
return "".join(l)
k = Solution()
print(k.restoreString(s="art", indices=[1, 0, 2]))
| [
"1941161938@qq.com"
] | 1941161938@qq.com |
97c93885cb90a347b9f08204aab7c5032841dbfa | 74816b6afef2f57d59432b184d068e072fc68dea | /config/trafficlight.py | 1184c2c0dd2eba0f7eb0441df1434b4e142dbe6d | [] | no_license | shanto268/comprehensive_simulation_traffic_analysis_software | a087e56d775e218941efc6c619ff09df8c313c29 | f5454763faf2bfdf9a6520336dcb1b49c566bdf2 | refs/heads/master | 2022-11-07T13:08:39.845053 | 2020-06-22T18:46:15 | 2020-06-22T18:46:15 | 257,077,402 | 20 | 4 | null | null | null | null | UTF-8 | Python | false | false | 1,947 | py | import random
from simulation.speedLimits import *
from simulation.trafficGenerators import *
import pygame
import sys
data = ["test_trial.txt", 24, 5, 5, 4, 2, 1, 0.6, 0, 0.4, 7, 50]# low density aware and oppo
maxFps= 40
size = width, heigth = 500 , 800
# in miliseconds
updateFrame = 500
seed = None
lanes = 3
le... | [
"sadman-ahmed.shanto@ttu.edu"
] | sadman-ahmed.shanto@ttu.edu |
a5dabc1b1569d83d5483efb310cf625783042883 | db2f6cd878e787fdb2bf27e8f2c151a6ce723217 | /exam_prep/exam_19_12_2020/project/medicine/salve.py | f6db768877a2156dfc8246abf4b0f7ae026f2100 | [] | no_license | beats4myvan/py_oop | f56930911cdcbf508ed667a42b0c84691a41c9e5 | a0186b3d601bd9b98fea018ee652e0ef79492703 | refs/heads/main | 2023-04-12T20:34:41.019503 | 2021-05-16T08:36:39 | 2021-05-16T08:36:39 | 341,820,277 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 170 | py | from project.medicine.medicine import Medicine
class Salve(Medicine):
HEALTH_INCREASE = 50
def __init__(self):
super().__init__(Salve.HEALTH_INCREASE)
| [
"georgidimitrov90@yahoo.bg"
] | georgidimitrov90@yahoo.bg |
25cddacde27594562f64e327d5325661ef4367f3 | 4111c9d14daacf19826c6021b25f990cb005d607 | /evodynamic/connection/random_boolean_net.py | 7870ebada9813f6232a095d3516ee20ee647f69b | [
"Apache-2.0"
] | permissive | shahrokhx/EvoDynamic | 6b348c6ade1157d38c41da6b11676907ae2bcf69 | c69419e49632ca0fecc6e8a1a53ea00e457b0dbe | refs/heads/master | 2022-12-13T09:20:44.114494 | 2020-04-27T18:57:57 | 2020-04-27T18:57:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,104 | py | """ Connections for random Boolean network """
import tensorflow as tf
import numpy as np
import random
def create_pattern_neighbors(width, n_states=2):
return [n_states**p for p in range(width)[::-1]]
def create_conn_matrix(name, width, n_neighbors=3, n_states=2, is_sparse = True):
pattern_neighbors = create_pa... | [
"sidneypontesf@gmail.com"
] | sidneypontesf@gmail.com |
8bda564afe7243bc4b6e48b401ecc76020e5fe2a | 2f55c3474042c0f46efee0799209be0691f64d96 | /semana4/dia1/venv/Scripts/django-admin.py | 8d84084a629f8555024b9fb73841bf93766955d0 | [] | no_license | FabioMenacho/backend | 5244fcb0ccb0c95ddd9b710efbeeb2fbe07d0a61 | df735ce9c85872135c0c8a5dc23bc56ac02d1ba8 | refs/heads/master | 2023-08-20T02:09:52.416018 | 2021-09-23T03:26:08 | 2021-09-23T03:26:08 | 388,661,406 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 704 | py | #!d:\fabio\tecsup\clases\backend\semana4\dia1\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(
'django-ad... | [
"fmenacho@uni.pe"
] | fmenacho@uni.pe |
5d4e6e880fa777fee1116c1fe0cb3a672d2d6bb3 | 83003007b7bc12493e2bca2b5c78be5ea86df56c | /Day16-Day30/Day23/05.py | 30adc40f900e5a165016ce1f2a4c2250b86a24bc | [] | no_license | a6361117/code | fa7fe2f33c522ad38d92e6c429b50ef8a271bb1e | bd8bf877416acc5400dbda90212b7e83020ff643 | refs/heads/master | 2022-09-07T22:22:24.765271 | 2020-05-26T14:27:47 | 2020-05-26T14:27:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,235 | py | #python 中定义实例方法
class Person(object):
def __init__(self,name):
self.__name = name
def get__name(self):
return self.__name
p1 = Person('Bob')
print(p1.get__name()) #self不需要显示传入
#给Person,增加一个私有属性__score
class Person(object):
def __init__(self,name,score):
self.name = name
... | [
"46365521+Becky-nuo@users.noreply.github.com"
] | 46365521+Becky-nuo@users.noreply.github.com |
ca9a64f8fa76011de7866449818197f4f43bdd7d | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03095/s604864096.py | 2b8ec372703d916a1a8c09ec1c4985f0bc01d054 | [] | 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 | 156 | py | from collections import Counter
N=int(input())
S=input()
mod = 10**9+7
d = Counter(S)
ans = 1
for v in d.values():
ans *= v+1
ans %=mod
print(ans-1) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
25772ffdd99216724736a5ee7a931452651d8754 | e3b42e43555cb34e9a7f44c5e1e42b06c89e2b49 | /envi/tests/msp430/iclrz.py | 90ec1f1aae4b20a502f69d5f570bf8d73515d240 | [
"Apache-2.0"
] | permissive | bat-serjo/vivisect-py3 | 77eed20e8e78ff0f5bbde57eb7709c68617aeb1d | 75d58115b09c209a042713736181888fad31482c | refs/heads/master | 2021-01-11T21:54:42.853791 | 2019-01-08T20:15:57 | 2019-01-08T20:15:57 | 78,873,268 | 12 | 2 | null | null | null | null | UTF-8 | Python | false | false | 266 | py | checks = [
# CLRZ
(
'CLRZ',
{ 'regs': [], 'flags': [(SR_N, 1), (SR_Z, 1), (SR_C, 1), (SR_V, 1)], 'code': "22c3", 'data': "" },
{ 'regs': [], 'flags': [(SR_N, 1), (SR_Z, 0), (SR_C, 1), (SR_V, 1)], 'code': "22c3", 'data': "" }
),
]
| [
"jroi.martin@gmail.com"
] | jroi.martin@gmail.com |
b6dcf70944811b4dad5b78e226a22970b0214cd4 | 5a7a3447d434a458a7bb63f2aa11b64c284d5492 | /min_test/min.py | 7a75f774cd739523c07d47a383f2f4a4f67a6ab8 | [] | no_license | woshimayi/mypython | 35792e12036a7a05f12d3ef7006637b2b03f0e2e | 7f1eb38e8585bf6d2f21d3ad0f64dace61425875 | refs/heads/master | 2023-09-01T08:59:12.301836 | 2023-08-30T05:30:54 | 2023-08-30T05:30:54 | 130,017,052 | 4 | 0 | null | 2018-12-02T16:18:14 | 2018-04-18T06:50:36 | HTML | UTF-8 | Python | false | false | 369 | py | # coding=utf-8
#
print(' I am ', __name__)
def minmax(test, *args):
res = args[0]
for arg in args[1:]:
if test(arg, res):
res = arg
return res
def lessthan(x, y): return x < y
def grtrthan(x, y): return x > y
if __name__ == '__main__':
print(minmax(lessthan, 4, 2, 1, 5, 6, 3... | [
"woshidamayi@Gmail.com"
] | woshidamayi@Gmail.com |
f685c5fc3dc016f02e8c77fd413883d97b1b7dcc | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03062/s815934213.py | 4da49a8a9c191611838d968fa1ecc7e4b16ae06b | [] | 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 | 316 | py | N = int(input())
A = list(map(int, input().split()))
A_tmp = sorted(A, key=abs, reverse=True,)
total = 0
for i,v in enumerate(A_tmp):
if (v <= 0) and (i < len(A_tmp)-1):
A_tmp[i] = (-1) * A_tmp[i]
A_tmp[i+1] = (-1) * A_tmp[i+1]
total += A_tmp[i]
else:
total += v
print(total) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
b9a681d5217a366e92eb360656ca0cdce1986446 | 087f431fefdc79e9da86d703c9c782d73db0cee7 | /ex02.py | a6d780523208fa37f42eea469d7c598221270189 | [] | no_license | ajaybhatia/programming-in-python-session-2020 | 1fd5a79c601856a1a462c91cd038988b08f23052 | 8c02e437e24c8d482703a57e6be0a176635ebf12 | refs/heads/master | 2023-01-03T11:18:16.775032 | 2020-10-26T03:47:13 | 2020-10-26T03:47:13 | 284,872,939 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 198 | py | '''
Write a script in python to find all multiples of 3, 5 and 7 upto 1 million
'''
for num in range(1, 1000001):
if num % 3 == 0 and num % 5 == 0 and num % 7 == 0:
print(num, end=",")
| [
"prof.ajaybhatia@gmail.com"
] | prof.ajaybhatia@gmail.com |
7eebfd79e9067eb295a32e18875d23571e37f406 | 08296e4f0139bd23ec73836996e3637eda666a68 | /templatesDemo/templateApp/views.py | 405c34dbe85f290015ddf246c5683d575b339ee1 | [] | no_license | 146789/projects | 4589efd8f2f11a1beb487ef06a7556d49ed95c72 | a288e39cd088ea2717017285fd68d8b42cf4d493 | refs/heads/main | 2023-02-02T13:54:34.360222 | 2020-12-19T08:16:11 | 2020-12-19T08:16:11 | 322,798,535 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 362 | py | from django.shortcuts import render
# Create your views here.
def renderTemplate(request):
mydict = {"name": "naveen"}
return render(request, 'templatesApp/firsttemplate.html', context=mydict)
def renderEmployee(request):
mydict1 = {"id": 123, "name": "naveen", "salary": 10000}
return render(reques... | [
"34913079+146789@users.noreply.github.com"
] | 34913079+146789@users.noreply.github.com |
3e3ed7f60ab1727d13f10be57fccd46aab9b8870 | 941cbcc815da9927c16291fd0cf341fdf26d4b4b | /Web網頁框架/框架(Django)/200427_全局上下文/mysite/mysite/urls.py | f800945fda61b332ba24bc5e7b61a0ba63749a42 | [] | no_license | narru888/PythonWork-py37- | 27de004157efdf42972f66b20872e17de8bc676c | f9cb1670fb84b9eb8aaaf7cd5cf9139ab4ef4053 | refs/heads/master | 2022-12-09T04:58:06.068302 | 2020-09-23T09:47:40 | 2020-09-23T09:47:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 204 | py | from django.contrib import admin
from django.urls import path, re_path
from app01 import views
urlpatterns = [
path('admin/', admin.site.urls),
re_path(r'^index/', views.Index_View.as_view()),
]
| [
"as124122323@gmail.com"
] | as124122323@gmail.com |
81ca87a225319ecd5c57d17c0f93d35ad7b92a1e | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02755/s287335041.py | d5b352ed2cfa3a182302d8780446b190949d7885 | [] | 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 | 326 | py | a,b = map(int,input().split())
# 8% -> [a,a+1)
# 10% -> [b,b+1)
# max(a*100/8, b*10) <= 元の価格 < min((a+1)*100/8, (b+1)*10)
min8 = a*(100/8)
max8 = (a+1)*(100/8)
min10 = b*10
max10 = (b+1)*10
mi = int(max(min8, min10) - 0.001) + 1
ma = int(min(max8, max10) - 0.001)
if mi > ma:
ans = -1
else:
ans = mi
print(ans) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
c8882a471f34cc21550c962626476826d07e8c1b | e437d5ff9990f51f45e14aebffefd37d4fca9241 | /marchCOMMENTS/admin.py | a1c40386e5be1047f06c20921644aa1f64342205 | [] | no_license | siavashMehran/MarchMedical-OnlineShop | fea10bfe0e0a649676a011f6cd38fb1983b6ad4c | 57b87204cd047ae6637ed4ad60e9ebc7fdd69b9b | refs/heads/main | 2023-05-30T12:51:30.565529 | 2021-06-02T12:38:27 | 2021-06-02T12:38:27 | 360,004,120 | 0 | 0 | null | 2021-06-01T11:22:59 | 2021-04-21T02:03:10 | JavaScript | UTF-8 | Python | false | false | 133 | py | from marchCOMMENTS.models import Comment
from django.contrib import admin
# Register your models here.
admin.site.register(Comment) | [
"sia.dev.acc@gmail.com"
] | sia.dev.acc@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.