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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
a410f6e281c8139f127daf8c8cac5080cc40c306 | a0e777ea7e0d00c061068db132a30a8fa545cc75 | /EffectivePython/item4.py | 793758a82e0f7d72f099d9da42934bf39b0aae5f | [] | no_license | aadisetyaa/Python-Cookbook | 87215b64d2d3631d6b18e90a68a09400e7d80919 | a8df0343a39725312686423296bfd860dbaf70ad | refs/heads/master | 2022-04-08T13:41:27.255352 | 2017-11-27T03:54:29 | 2017-11-27T03:54:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 902 | py | from urllib.parse import parse_qs
my_values = parse_qs('red=5&blue=0&green=', keep_blank_values=True)
#print(repr(my_values))
#print('Red: ', my_values.get('red', ['']))
#print('Green: ', my_values.get('green'))
#print('Opacity: ', my_values.get('opacity'))
#red = int(my_values.get('red', [''])[0] or 0)
#green ... | [
"wpr101@hotmail.com"
] | wpr101@hotmail.com |
ca87ff0a336058adb8d8daa3ec98166ca00c8011 | 40fc10c31449faca8a3235d34b422c322db8af6e | /src/pyasl/asl/binning.py | 54c5604387cecbbd9b56c5d52f171313d02642cf | [
"MIT"
] | permissive | voneiden/PyAstronomy | 93d27e9d82bd54ecaf55b8fcbcba5ecbe7021997 | d7e92fb84aad0995bc9c3e38538f44d1d9fa6200 | refs/heads/master | 2021-01-16T20:52:04.139625 | 2013-07-04T14:00:12 | 2013-07-04T14:00:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,488 | py | # -*- coding: utf-8 -*-
from PyAstronomy.pyaC import pyaErrors as PE
import numpy as np
def binningx0dt(x, y, yerr=None, x0=None, dt=None, nbins=None, reduceBy=None, removeEmpty=True, \
removeNoError=False, useBinCenter=True):
"""
A simple binning algorithm.
This algorithm uses a fi... | [
"stefan.czesla@hs.uni-hamburg.de"
] | stefan.czesla@hs.uni-hamburg.de |
665e2dbb2e727b9f06db39c73e7338cd30f993c1 | c0046aa23b6260b1fce3dc8932b62c638fe6aa46 | /HcalTasks/python/HcalNoiseTask.py | 99a28865cf5c4433de438d8508c875eb02ac42e4 | [] | no_license | HCALDQM/DQM | 8c9f08fe89b844054069aba2ca893a831356b0ef | fa36a791f0527d0e3e96bd70c0776697a630b67c | refs/heads/master | 2020-04-06T07:05:20.336782 | 2015-10-14T07:46:58 | 2015-10-14T07:46:58 | 41,037,040 | 0 | 5 | null | null | null | null | UTF-8 | Python | false | false | 2,900 | py | import FWCore.ParameterSet.Config as cms
import DQM.HcalCommon.HcalDQStandard as standard
StandardSet = standard.StandardSet.clone()
# List of FEDs
lFEDs = [x+700 for x in range(32)] + [929, 1118, 1120, 1122]
moduleName = "HcalNoiseTask"
# Modify whatever is in StandardSet importing
StandardSet.moduleParameters.nam... | [
"vdkhristenko1991@gmail.com"
] | vdkhristenko1991@gmail.com |
7aeb14ec178c1278a0ad73d90f369a0ce020c9c0 | c46cbaefaf2ddce20f4d69d79dc8ad786c71ca9b | /src/keystore/javacard/applets/securechannel.py | 082793c09dbd69499c1bf5a407261c4cbf17bb6c | [
"MIT",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | xavierfiechter/specter-diy | eeca22ca1984051edeef5abd1863d8b6b25f22e1 | 2c7b6244aca54eca19c60fad9d44f4884ba0ad62 | refs/heads/master | 2023-03-29T23:54:31.340395 | 2021-03-30T12:52:54 | 2021-03-30T12:52:54 | 343,566,546 | 0 | 0 | MIT | 2021-03-30T12:40:30 | 2021-03-01T21:48:30 | Python | UTF-8 | Python | false | false | 7,364 | py | from ..util import encode
import secp256k1
import hashlib, hmac
from io import BytesIO
from rng import get_random_bytes
from ucryptolib import aes
from binascii import hexlify
AES_BLOCK = 16
IV_SIZE = 16
MAC_SIZE = 14
AES_CBC = 2
class SecureError(Exception):
"""
Raised when something went wrong with the
... | [
"snigirev.stepan@gmail.com"
] | snigirev.stepan@gmail.com |
0933399c858eea92a5d926f9873e527890ee7eee | 471a036309c05b59243033f2480e27e19268ec55 | /src/london/london/apps/notifications/engines/session.py | 9840893b6a787cb3beb43026428db35a08c4bbf5 | [
"BSD-2-Clause"
] | permissive | avelino/votacao_paredao_bbb | 1bbf33b9ec00f033db5b1d558190135315d50b03 | 875ac157b207fee80be6841f9b17c41b7069e15d | refs/heads/master | 2021-01-20T12:17:48.362512 | 2012-07-13T05:41:44 | 2012-07-13T05:41:44 | 4,928,781 | 0 | 0 | null | 2020-07-27T11:05:32 | 2012-07-06T17:51:03 | Python | UTF-8 | Python | false | false | 892 | py | import logging
from london.apps.notifications.engines.base import BasePool
from london.apps.notifications.app_settings import SESSION_KEY
class SessionPool(BasePool):
def add_message_pool(self, request, message, level=logging.NOTSET):
request.session[SESSION_KEY] = request.session[SESSION_KEY] or []
... | [
"thiagoavelinoster@gmail.com"
] | thiagoavelinoster@gmail.com |
4098559e3d5ca21f8b0ace8663ad6833d5192dc3 | 482e28dccb663459e50ac601e8cc376f2441b0f7 | /src/ch05/rtda/LocalVars.py | aa2c43c0799c56ab03c9df750cc8fef69b0720b8 | [] | no_license | wlj5240/JVMByPython | 1487d4f4b8367e9e31d71b60a9d06ff4996ad1b7 | 53502f10f4f19741646d871c46014e023ccad4a5 | refs/heads/master | 2022-10-05T19:55:50.381307 | 2019-10-20T05:03:38 | 2019-10-20T05:03:38 | 270,003,703 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 825 | py | #!/usr/bin/env python
# encoding: utf-8
"""
@author: HuRuiFeng
@file: LocalVars.py
@time: 2019/9/15 16:22
@desc: 局部变量表,用于python的列表能存储任何数据类型,所以将基本数据类型和引用类型都用一个Slot表示。
"""
from rtda.Slot import Slot
class LocalVars:
def __init__(self, max_locals):
self.slots = []
if max_locals > 0:
self... | [
"huruifeng1202@163.com"
] | huruifeng1202@163.com |
3cd3a0490007878e66ee2502a82d81cb04e6a0e3 | 18219d0fc95936ded56fe44f9a65ecb27f015232 | /148 dictionary items.py | a63a3687830fdc6ac0f0f71e6705986048d579d8 | [] | no_license | JDavid121/Script-Curso-Cisco-Python | 20a61b91b09376dcaef54f8ae5f86fe252de5c33 | 6d68c17ff3c3826e9fc609d110ce9d0e6ebf718b | refs/heads/master | 2021-05-18T04:54:59.948970 | 2020-03-29T20:19:53 | 2020-03-29T20:19:53 | 251,120,139 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 578 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Feb 26 09:58:15 2020
DICTIONARY ITEMS
@author: David
"""
dict3 = {1:"beta",2:"gamma",4:"iota",3:"theta",9:"zeta",5:"eta"}
# items() method
# This method returns a "class" of tuples.
# Each tuple is a key,value pair
print(dict3.items())
print("*****************... | [
"noreply@github.com"
] | JDavid121.noreply@github.com |
c418f5064c035680c4a33f021984341aae2d73ca | 42051d7c4dd80bb827f10905a6c89b7187448697 | /cfxdb/gen/KeyValue.py | 2067857559a4defa3aa6a5407a5f4eb3fc7d0ba7 | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | om26er/cfxdb | 1f1d195e5e5d37be08d05364518fb6d2cf13f4e4 | ade48d664a0b4fb99d02836dc77e8e8a43076a07 | refs/heads/master | 2021-04-05T03:30:19.212037 | 2020-04-02T20:05:17 | 2020-04-02T20:05:17 | 248,516,500 | 0 | 0 | NOASSERTION | 2020-03-19T13:55:56 | 2020-03-19T13:55:56 | null | UTF-8 | Python | false | false | 1,436 | py | # automatically generated by the FlatBuffers compiler, do not modify
# namespace:
import flatbuffers
from flatbuffers.compat import import_numpy
np = import_numpy()
# A key-value pair with string keys & values.
class KeyValue(object):
__slots__ = ['_tab']
@classmethod
def GetRootAsKeyValue(cls, buf, of... | [
"tobias.oberstein@crossbario.com"
] | tobias.oberstein@crossbario.com |
b334b94929f6f34e58add9421156267e499fec17 | 334172bb2d17dd0ab0506e054fea207383c50042 | /condonsax/hiddenalbum/models.py | bb7d66dfb30198dc11f2a27a742526de775edb78 | [] | no_license | JayWelborn/condonsax | 1336dd1258a4b348d145a8e1603abf73c7c20947 | 6689db0b5c35420286587531b2e6eaac5f3c3bb7 | refs/heads/master | 2021-01-19T22:41:04.818558 | 2017-05-19T18:52:27 | 2017-05-19T18:52:27 | 88,843,128 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 442 | py | from django.db import models
from albums.models import Album
class HiddenAlbum(models.Model):
album = models.ForeignKey(Album)
slug = models.SlugField('URL slug', max_length=100, db_index=True)
def get_absolute_url(self):
"""
Defines primary key and slug as components of url
... | [
"jesse.welborn@gmail.com"
] | jesse.welborn@gmail.com |
006d8aa3c250bfd18c9ae5ac8b4bea0fc073de5f | b15d2787a1eeb56dfa700480364337216d2b1eb9 | /samples/cli/accelbyte_py_sdk_cli/ugc/_admin_get_tag.py | f1d4a69d7577f3d4b4c8875fb982147bb1483e49 | [
"MIT"
] | permissive | AccelByte/accelbyte-python-sdk | dedf3b8a592beef5fcf86b4245678ee3277f953d | 539c617c7e6938892fa49f95585b2a45c97a59e0 | refs/heads/main | 2023-08-24T14:38:04.370340 | 2023-08-22T01:08:03 | 2023-08-22T01:08:03 | 410,735,805 | 2 | 1 | MIT | 2022-08-02T03:54:11 | 2021-09-27T04:00:10 | Python | UTF-8 | Python | false | false | 2,329 | py | # Copyright (c) 2021 AccelByte Inc. All Rights Reserved.
# This is licensed software from AccelByte Inc, for limitations
# and restrictions contact your company contract manager.
#
# Code generated. DO NOT EDIT!
# template_file: python-cli-command.j2
# AGS Ugc Service (2.11.3)
# pylint: disable=duplicate-code
# pyli... | [
"elmernocon@gmail.com"
] | elmernocon@gmail.com |
c2519ef6d7e3ea9351129a217f76116d3a604cf9 | fba81be05c6665690ab7bd35d1fb7c2bdaf72fce | /backend/standard_casualty_p_26548/urls.py | 939afdacf8f0c94508920656ffbdcaaee9c65eb2 | [] | no_license | crowdbotics-apps/standard-casualty-p-26548 | 5ff4e4433b340a47854bdd5b7d0fa52eb71ba127 | f8de2e6d3c55f7a68457afe84532be4cdb4fbacf | refs/heads/master | 2023-04-29T18:27:50.111889 | 2021-05-11T13:54:12 | 2021-05-11T13:54:12 | 366,399,402 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,302 | py | """standard_casualty_p_26548 URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.2/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
f82fc162a15b808dfc58d3ae84fd370ab77132b3 | f4434c85e3814b6347f8f8099c081ed4af5678a5 | /sdk/communication/azure-communication-administration/azure/communication/administration/_phonenumber/_generated/aio/__init__.py | 6ec72fc665b13e79f13317f3a017845a99847c9a | [
"LicenseRef-scancode-generic-cla",
"MIT",
"LGPL-2.1-or-later"
] | permissive | yunhaoling/azure-sdk-for-python | 5da12a174a37672ac6ed8e3c1f863cb77010a506 | c4eb0ca1aadb76ad892114230473034830116362 | refs/heads/master | 2022-06-11T01:17:39.636461 | 2020-12-08T17:42:08 | 2020-12-08T17:42:08 | 177,675,796 | 1 | 0 | MIT | 2020-03-31T20:35:17 | 2019-03-25T22:43:40 | Python | UTF-8 | Python | false | false | 604 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | [
"noreply@github.com"
] | yunhaoling.noreply@github.com |
4df438883771aae9c61194134f1d97f85de32a2a | 5ed63c425f4bcc7a82c91920e58f03d60a8d9b3c | /bid/constants.py | f0cbc77421dd0be6068ef06a4196e2a1ab0ae806 | [] | no_license | cesslab/winners_curse_v7 | 33d0f021d5e8fd5dee3aad99438b750ec7b3959f | 4e096cf97dc027d727aad567c7cc859a3ba125f3 | refs/heads/master | 2023-09-05T03:57:02.065977 | 2021-10-13T21:33:47 | 2021-10-13T21:33:47 | 355,645,442 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 285 | py |
class Constants:
name_in_url = "bid"
players_per_group = None
PART_NUMBER = 1
PART_ONE = 1
MIN_VALUATION = 0
MAX_VALUATION = 100
NUM_LOTTERIES = 4
ROUNDS_PER_LOTTERY = 10
num_rounds = NUM_LOTTERIES * ROUNDS_PER_LOTTERY
PREFIX = "bid_lottery_"
| [
"anwarruff@gmail.com"
] | anwarruff@gmail.com |
1cee4617947c4877e2784a1c7ca58acba24dbcee | 786de89be635eb21295070a6a3452f3a7fe6712c | /pyana/tags/V00-00-10/src/input.py | 5aeb783cb0a06ff78ca4f1306da3746ced1206b1 | [] | no_license | connectthefuture/psdmrepo | 85267cfe8d54564f99e17035efe931077c8f7a37 | f32870a987a7493e7bf0f0a5c1712a5a030ef199 | refs/heads/master | 2021-01-13T03:26:35.494026 | 2015-09-03T22:22:11 | 2015-09-03T22:22:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,690 | py | #
# $Id$
#
# Copyright (c) 2010 SLAC National Accelerator Laboratory
#
import logging
import threading
import Queue
from pypdsdata import io
_log = logging.getLogger("pyana.input")
def dgramGen(names):
""" Datagram generator """
# group files by run number
runfiles = {}
for n in names :
... | [
"salnikov@b967ad99-d558-0410-b138-e0f6c56caec7"
] | salnikov@b967ad99-d558-0410-b138-e0f6c56caec7 |
0cec27060bbaa91ea8a2fe8be0588bddeb3ec1ff | 525c0cd60cf07e36c378539472703aa1e8354a86 | /app/users/models.py | 53f8eb8d9ff3a3a4b9ef50ac9285c68cfdbe417e | [] | no_license | yatimisi/bookkeeping-server | a4575b871eb18886bb53ec0fe314f41801983978 | 272710aa0066711ec605755226b4387286c7e404 | refs/heads/master | 2020-11-30T13:38:18.194740 | 2019-12-30T01:27:04 | 2019-12-30T01:27:04 | 230,407,853 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,627 | py | import os
import time
from django.db import models
from django.contrib.auth.models import AbstractUser, UserManager as AuthUerManager
from django.contrib.auth.tokens import default_token_generator
from django.template import loader
from django.utils.encoding import force_bytes
from django.utils.http import urlsafe_bas... | [
"mea9096@gmail.com"
] | mea9096@gmail.com |
c4b2387b95248fcc29f632db6c3466309d2568f4 | e98a1e360e947a0f91edc3cb603d915a3630cfbc | /easy/1017_160_**intersection_of_two_linked_list.py | 75d55c3e5c95d14a9f8c63cf3633510d95adf202 | [] | no_license | myungwooko/algorithm | 3a6a05cf7efa469aa911fe04871ef368ab98bb65 | 673e51199a2d07198894a283479d459bef0272c5 | refs/heads/master | 2021-07-04T01:17:41.787653 | 2020-12-25T00:59:33 | 2020-12-25T00:59:33 | 213,865,632 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,996 | py | """
160. Intersection of Two Linked Lists
Easy
Write a program to find the node at which the intersection of two singly linked lists begins.
For example, the following two linked lists:
begin to intersect at node c1.
Example 1:
Input: intersectVal = 8, listA = [4,1,8,4,5], listB = [5,0,1,8,4,5], skipA = 2, skipB... | [
"myungwoo.ko@gmail.com"
] | myungwoo.ko@gmail.com |
2b6f169bba089af91ccf40e5c920c1520be4b508 | fb0dd23271a274a9b622183b2f66bdd40c46169e | /todo/decorators.py | 3b30554e25d05f21b6f661c6b5fa71845c3b78ea | [] | no_license | adeelehsan/rest-todo-app | 826e7639353ec8e2bd4d61fa673fd75e6c6ce846 | ced2c819587b783eaeb90ba220fb46e6f796056e | refs/heads/master | 2020-12-02T07:51:08.398935 | 2017-07-13T04:41:05 | 2017-07-13T04:41:05 | 96,734,896 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 361 | py | # from .models import Task
#
# def user_has_perm(function):
# def wrap(request):
# if request.user.has_perm('todo.can_view'):
# task = Task.objects.all()
# return function(request, task)
# else:
# task = Task.objects.filter(user=request.user)
# return ... | [
"adeel.ehsan@arbisoft.com"
] | adeel.ehsan@arbisoft.com |
8b3c3535ec1c8228fdf9be210a9644992f4e1033 | 90b2b50be27da77b6680f4c7b9cfea53267f2f6d | /CodingInterviews/46.把数字翻译成字符串.py | c6fe0263f14df73e786772453b4d6bc777200922 | [
"Apache-2.0"
] | permissive | xuhuasheng/algorithm-python | 22cd3007d0b63d169d8f84b9b88787d6883e9c76 | 9c47c1add8da1ccfbee8882057883d90615d27b5 | refs/heads/master | 2023-01-18T22:52:22.027636 | 2020-11-20T09:48:23 | 2020-11-20T09:48:23 | 313,158,561 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,192 | py | # 给定一个数字,按照如下规则翻译成字符串:0翻译成“a”,1翻译成“b”…25翻译成“z”。
# 一个数字有多种翻译可能,例如12258一共有5种,分别是bccfi,bwfi,bczi,mcfi,mzi。
# 实现一个函数,用来计算一个数字有多少种不同的翻译方法。
# 递归地思考问题,自底向上地解决问题
# f(n)表示从右边数第n位的结果
# f(0) = 1
# f(1) = 1
# f(n) = f(n-1) + g(n, n-1)f(n-2)
# 当str(n)x10+str(n-1)在10-25时,g=1,否则=0
# 动态规划:实质是自底向上地计算并储存复用结果
# 时间复杂度:o(n)
# 空间复杂度:o(n... | [
"xu_watson@163.com"
] | xu_watson@163.com |
582600a5132f6e92437d624e360e300171afc73d | 7a28b09805e6a925bb8fff2a06258c42cf9957f7 | /parallel_wavegan/bin/compute_statistics.py | 21f1d4d10af30691ffdd7f4b0e5ae3664bed6f9e | [
"MIT"
] | permissive | tantk/ParallelWaveGAN | cf55d4533e6899b51a6a44afb3247d14b5d83196 | a204ac47357066c58a9662b8e9b619f53d19d043 | refs/heads/master | 2020-09-03T19:30:24.068755 | 2019-11-04T12:32:42 | 2019-11-04T12:32:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,287 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
# Copyright 2019 Tomoki Hayashi
# MIT License (https://opensource.org/licenses/MIT)
"""Calculate statistics of feature files."""
import argparse
import logging
import os
import numpy as np
import yaml
from sklearn.preprocessing import StandardScaler
from tqdm import ... | [
"hayashi.tomoki@g.sp.m.is.nagoya-u.ac.jp"
] | hayashi.tomoki@g.sp.m.is.nagoya-u.ac.jp |
a7c1e6b42ee79fdf0c4da37853f738ecb2cb846d | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_43/137.py | 32bf9aa7b435162a23c136394f5bfa91268e72dc | [] | 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 | 996 | py | def print_2d(tab):
for e in tab:
print(e)
if __name__ == '__main__':
fin = open("./test.in", "r")
fout = open("./test.out", "w")
line = fin.readline()
N = int(line)
for test in range(0, N):
total = 0
num = fin.readline().replace("\n", "")
base =... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
5267c5cfb4bed1233a56ac7d2f2c81af75cc887d | 9beac2738b54468e108b34e3d4f1455276b5885d | /saral_debug4.py | 891b4251273f529ae74d6b96680d6c30d491e7c8 | [] | no_license | preetising/Dictinory | f6c1d7186698a91de641fc5d899ecf8367ea0e2f | f681933d4b1dc23e8e1aff5168bd599314930af7 | refs/heads/main | 2023-08-20T19:56:59.696642 | 2021-10-10T08:21:43 | 2021-10-10T08:21:43 | 415,525,407 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 154 | py | s={'umesh':21,'bijender':54,'amar':67,'peter':89,'sonu':56}
a={'python':20,"gaurav":300,'dev':34,"karan":43}
c={}
for i in (s,a):
c.update(i)
print(c) | [
"noreply@github.com"
] | preetising.noreply@github.com |
161947c50d199b8842683b5136d3eeaaf338567d | 3109e3a7f2f2dccc5a806695f0adbe0fed879112 | /ecommerce/Loma/migrations/0029_auto_20190205_1945.py | 335430bc000f2b635c63fc5a7519215234a82de3 | [] | no_license | Maheshwari2604/ecommercee | 9ebbf18b4fbf933a0d9641009f7f17ce836de587 | 4411e7e10eccda907711200d2c0d873db3d7f803 | refs/heads/master | 2020-04-20T18:03:49.575124 | 2019-02-12T16:02:05 | 2019-02-12T16:02:05 | 169,007,411 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 397 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.16 on 2019-02-05 14:15
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('Loma', '0028_daily_price_list_loma_id'),
]
operations = [
migrations.RenameModel(
... | [
"maheshwarishivam2604@gmail.com"
] | maheshwarishivam2604@gmail.com |
f322e0b9b3bbf0ddf6522dc18c005c0b41c7478a | a57130d75ad75520217b92d3bd977394846501f7 | /test.py | b983df123bd16dc281079046f1465292f05469d3 | [] | no_license | gittygupta/slp | 15153b9cb580ed8d35d6be4b157ed94ac41d4a4f | c43fc9a01ae67dfd28d147dc4ffc2f0a70e60199 | refs/heads/master | 2022-12-18T08:51:42.266621 | 2020-09-28T16:46:31 | 2020-09-28T16:46:31 | 293,038,095 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,379 | py | import tensorflow as tf
import numpy as np
from model import *
from attention import *
from data_utils import *
from bert_utils import *
# Global variables
num_decoder_blocks = 6
num_heads = 8
d_model = 256
d_ffn = 256
d_out = 154
# models
bert = Bert(max_sequence_length=80)
decoder = Decoder(num_de... | [
"noreply@github.com"
] | gittygupta.noreply@github.com |
aebc43e38204ef38f0a134e24421cf6b5df8c018 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03003/s239952205.py | 9e63871a10ccf805a11575b5567761e5e95c710d | [] | 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 | 790 | py | def count_cs(str1, str2, MOD):
"""文字列str1, str2の共通部分列(Common Subsequence, CS)を数え上げる。
添字が異なる場合は異なる部分列として考える。
計算量 O(|str1||str2|)
"""
dp = [[0] * (len(str2) + 1) for _ in range(len(str1) + 1)]
for i in range(len(str1)):
for j in range(len(str2)):
if str1[i] == str2[j]:
... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
3e6fc91d43aac579360e7c6d3e082c7d2104718e | bf099f3425b590f6cbb39e8305eac5489e558e26 | /笔记/re/python-trade/trade.py | ef4f03b4ad241931859eff03cbe3c3e8247eaceb | [] | no_license | Imtinmin/Note | 399a08e185bf11e2ca9fbbe4823477e86e86ebe2 | 8f99a4c180b921baf46a838997bcce64c688fd70 | refs/heads/master | 2023-01-27T23:25:43.763941 | 2020-01-01T15:24:08 | 2020-01-01T15:24:08 | 188,774,377 | 1 | 1 | null | 2023-01-04T13:55:52 | 2019-05-27T05:07:47 | PHP | UTF-8 | Python | false | false | 651 | py | #!/usr/bin/env python
# encoding: utf-8
# 如果觉得不错,可以推荐给你的朋友!http://tool.lu/pyc
import base64
def encode(message):
s = ''
for i in message:
x = ord(i) ^ 32
x = x + 16
s += chr(x)
return base64.b64encode(s)
def decode(message):
a = base64.b64decode(message)
s = ''
for... | [
"954093370@qq.com"
] | 954093370@qq.com |
8987f8644e2e99713f75adc99ac002c8bbce3e86 | 22bcb68759d516eea70d18116cd434fcd0a9d842 | /scrap/infibeam_mobiles_scrap.py | f6a2586c2a736359955ad15e0a9a1b85a49fdc82 | [] | no_license | lovesh/abhiabhi-web-scrapper | 1f5da38c873fea74870d59f61c3c4f52b50f1886 | b66fcadc56377276f625530bdf8e739a01cbe16b | refs/heads/master | 2021-01-01T17:16:51.577914 | 2014-10-18T15:56:42 | 2014-10-18T15:56:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,656 | py | import downloader
import dom
import urllib
import re
import datetime
import math
import simplejson as json
import pymongo
from collections import defaultdict
import util
siteurl='http://www.infibeam.com'
referer='http://www.infibeam.com/Mobiles/search'
ajax_url='http://www.infibeam.com/Mobiles/Search_ajax.action?store... | [
"lovesh.bond@gmail.com"
] | lovesh.bond@gmail.com |
4fdf0eea5655ddf62a21084ec572485b7d410a69 | 5f4e13201d4c5b7edc8dbbda289380682a187bec | /nlpfr/nltk/test/doctest_nose_plugin.py | 8b0dfecae97f59fa3dc62cfbe8b1662d9c2cd18f | [] | no_license | intellivoid/CoffeeHousePy | 92f4fb344de757837c3d3da05cb5513e90408039 | 57c453625239f28da88b88ddd0ae5f1ecdd4de3c | refs/heads/master | 2023-02-23T14:32:01.606630 | 2021-01-28T02:57:10 | 2021-01-28T02:57:10 | 324,419,067 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 6,250 | py | # -*- coding: utf-8 -*-
from __future__ import print_function
import re
import sys
import os
import codecs
import doctest
from nose.util import tolist, anyp
from nose.plugins.base import Plugin
from nose.suite import ContextList
from nose.plugins.doctests import Doctest, log, DocFileCase
ALLOW_UNICODE = do... | [
"netkas@intellivoid.info"
] | netkas@intellivoid.info |
db70a141cfb4f03bf7d9c154bdb978495ede765f | e5d5fa28999bcc6c642bb42dda93afd38e272b81 | /LeetCode/1020. Number of Enclaves/solve1.py | 65d26252539eea884af9a4350e4badff1630d7a4 | [] | no_license | chiahsun/problem_solving | cd3105969983d16d3d5d416d4a0d5797d4b58e91 | 559fafa92dd5516058bdcea82a438eadf5aa1ede | refs/heads/master | 2023-02-05T06:11:27.536617 | 2023-01-26T10:51:23 | 2023-01-26T10:51:23 | 30,732,382 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 874 | py | class Solution:
def numEnclaves(self, grid: List[List[int]]) -> int:
M, N = len(grid), len(grid[0])
def fill(grid, x, y):
grid[x][y] = 0
for dx, dy in [[1, 0], [-1, 0], [0, 1], [0, -1]]:
nx, ny = x+dx, y+dy
if nx >= 0 and nx < M and ny >= 0 an... | [
"chiahsun0814@gmail.com"
] | chiahsun0814@gmail.com |
f6752c0fb6fb382f2304473c74d1b6030f7c9ae9 | 092dd56a1bf9357466c05d0f5aedf240cec1a27b | /tests/pytests/topology/TestMeshGenerator.py | ea7d044b789593815e26b703c24303b498c72894 | [
"MIT"
] | permissive | rwalkerlewis/pylith | cef02d5543e99a3e778a1c530967e6b5f1d5dcba | c5f872c6afff004a06311d36ac078133a30abd99 | refs/heads/main | 2023-08-24T18:27:30.877550 | 2023-06-21T22:03:01 | 2023-06-21T22:03:01 | 154,047,591 | 0 | 0 | MIT | 2018-10-21T20:05:59 | 2018-10-21T20:05:59 | null | UTF-8 | Python | false | false | 1,078 | py | #!/usr/bin/env nemesis
#
# ======================================================================
#
# Brad T. Aagaard, U.S. Geological Survey
# Charles A. Williams, GNS Science
# Matthew G. Knepley, University at Buffalo
#
# This code was developed as part of the Computational Infrastructure
# for Geodynamics (http://g... | [
"baagaard@usgs.gov"
] | baagaard@usgs.gov |
346ffe2563d7b5009ca8d5426353249ca86ced67 | b252d1f8ec5f68bf5f935c000e0bb011718ea691 | /virtualenvs/ninetyseven/src/savoy/contrib/events/.svn/text-base/admin.py.svn-base | 0a3e21da84e64ebedc6f1ae3b91e7b3694c532de | [] | no_license | syncopated/97bottles | 2ceace7ed6a852bef61796733a08eb878b045152 | 08f4210e3de77c4564fcc8c1a2e9b47a0088249f | refs/heads/master | 2016-08-05T07:48:51.109089 | 2012-12-02T17:38:35 | 2012-12-02T17:38:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,318 | from django.contrib import admin
from savoy.contrib.events.models import *
class OneOffEventTimeInline(admin.TabularInline):
model = OneOffEventTime
extra = 3
class AllDayEventTimeInline(admin.TabularInline):
model = AllDayEventTime
extra = 3
class WeeklyEventTimeInline(admin.TabularInline):
model = We... | [
"keith@dkeithrobinson.com"
] | keith@dkeithrobinson.com | |
55fad1ea837d7346b46547d70e497c4f672c2024 | a86ca34e23afaf67fdf858df9e47847606b23e0c | /lib/temboo/Library/Klout/ListTopics.py | 306595bee299af4f646bec8c2a32e475e9fa0bbc | [] | no_license | miriammelnick/dont-get-mugged | 6026ad93c910baaecbc3f5477629b0322e116fa8 | 1613ee636c027ccc49c3f84a5f186e27de7f0f9d | refs/heads/master | 2021-01-13T02:18:39.599323 | 2012-08-12T23:25:47 | 2012-08-12T23:25:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,864 | py |
###############################################################################
#
# ListTopics
# Retrieves a list of the top three topics for Twitter users you specify.
#
# Python version 2.6
#
###############################################################################
from temboo.core.choreography import Choreog... | [
"miriam@famulus"
] | miriam@famulus |
9221dbcaffe38d0448eee87f5f3ed8162b467596 | 8a69c886a8bde80c0b8f1f0c03b0de6f31b784dd | /tests/functional/parsing/test_parsing_insert.py | f593edf1130db39e74abbcec79f249ed2e9401ad | [
"BSD-3-Clause"
] | permissive | bouthilx/kleio | c774a85b851081f264a8bbae0f45cd45ebf3fa82 | bf6291f95d9c35774194e3d9ed678db4544ca345 | refs/heads/develop | 2020-03-28T00:43:02.218807 | 2018-08-19T02:26:35 | 2018-08-19T02:26:35 | 139,289,100 | 1 | 1 | null | 2018-08-19T02:26:35 | 2018-07-01T00:18:04 | Python | UTF-8 | Python | false | false | 1,086 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Perform functional tests for the parsing of the different commands."""
import argparse
import os
import pytest
from kleio.core.cli import insert
def _create_parser(need_subparser=True):
parser = argparse.ArgumentParser()
if need_subparser:
subparsers... | [
"xavier.bouthillier@umontreal.ca"
] | xavier.bouthillier@umontreal.ca |
56008640a4a20567e577c9b682e01646a60c0ea3 | 16c4d625ad9e945471a2a267e9992c7e9260214f | /criterium/forms.py | 4a77f9477282f7224cc15e9e7c0b8948627cbecb | [
"BSD-2-Clause"
] | permissive | andywar65/rp_repo | 8cea1c81533250b49a4036fb9b0ff6e93a0dde66 | 726c1426d738b962cabeabd8995aa35767df0c41 | refs/heads/master | 2023-05-26T13:47:48.329624 | 2021-06-05T08:35:05 | 2021-06-05T08:35:05 | 255,056,987 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,064 | py | from django import forms
from django.forms import ModelForm
from .models import Race, Athlete
from cronache.models import Event
from users.models import User
class RaceForm(ModelForm):
event = forms.ModelChoiceField(label="Evento", required = False,
queryset = Event.objects.filter(tags__name__in = ['criter... | [
"andy.war1965@gmail.com"
] | andy.war1965@gmail.com |
c671f526cdc219ba9326376d219ae533bae11376 | 33836016ea99776d31f7ad8f2140c39f7b43b5fe | /fip_collab/2016_07_07_ideas_md3/plot_linkage_check.py | fa41cb4110e8f87b1600d492c07e5f189351bd32 | [] | no_license | earthexploration/MKS-Experimentation | 92a2aea83e041bfe741048d662d28ff593077551 | 9b9ff3b468767b235e7c4884b0ed56c127328a5f | refs/heads/master | 2023-03-17T23:11:11.313693 | 2017-04-24T19:24:35 | 2017-04-24T19:24:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,795 | py | import numpy as np
import matplotlib.pyplot as plt
import functions as rr
from constants import const
import h5py
def plot_check(par, n_pc, n_poly, H):
C = const()
# colormat = np.random.rand(len(set_id_set), 3)
colormat = np.array([[.3, .3, 1.],
[.3, 1., .3],
... | [
"noahhpaulson@gmail.com"
] | noahhpaulson@gmail.com |
fe007eb975a9d674a4485a4870ad52f056034e72 | d63b1b36634b68070f6f3c017c0250a7ea646e6f | /SMC/GEM5/gem5/src/dev/x86/Pc.py | 1f1f3ca89ba3a345f277583ed85d6800e4ecccc7 | [
"MIT",
"BSD-3-Clause",
"LicenseRef-scancode-proprietary-license",
"LGPL-2.0-or-later"
] | permissive | jiwon-choe/Brown-SMCSim | ccf506d34d85fb3d085bf50ed47de8b4eeaee474 | ff3d9334c1d5c8d6a00421848c0d51e50e6b67f8 | refs/heads/master | 2021-06-30T00:15:57.128209 | 2020-11-24T03:11:41 | 2020-11-24T03:11:41 | 192,596,189 | 15 | 8 | MIT | 2019-06-20T15:43:00 | 2019-06-18T18:53:40 | C++ | UTF-8 | Python | false | false | 3,388 | py | # Copyright (c) 2008 The Regents of The University of Michigan
# 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 ... | [
"brandnew7th@gmail.com"
] | brandnew7th@gmail.com |
aa873476e46a8e79f0c40ca8c00123eeb3510f1e | 4297f48daaa2aa0f5e4058bbeee111bf9236790e | /cv/hyper-network/residual_network_on_cifar10.py | cc01d12854cfb994273a508ce822eadd70d0987e | [] | no_license | HQ01/fast-weight | 21d9c379c8bccc29aced911d35f3b0784a072c8f | e0d9afe15c05fca966bb03a5b571a5486d6629c6 | refs/heads/master | 2021-01-21T11:54:54.423127 | 2017-05-15T13:08:42 | 2017-05-15T13:08:42 | 91,762,993 | 0 | 1 | null | 2017-05-19T03:46:09 | 2017-05-19T03:46:09 | null | UTF-8 | Python | false | false | 3,661 | py | import mx_layers as layers
def _convolution(**kwargs):
defaults = {'kernel_shape' : (3, 3), 'stride' : (1, 1), 'pad' : (1, 1), 'no_bias' : True}
defaults.update(kwargs)
return layers.convolution(**defaults)
def _normalized_convolution(network, **kwargs):
network = layers.batch_normalization(network, fix_gamma... | [
"yg1246@nyu.edu"
] | yg1246@nyu.edu |
796bdbddda266ec0bbdc64183fe18db01383609b | ceb620c4be8b34f4aa08156226187db081fc3b55 | /loca_13/ext_personalizacion_lanta/model/models.py | b02f0c3f8c6077ee5b65dd0c562cef2f423c005a | [] | no_license | hjrhjr/entrenamiento_13_odoo_ref | f73e292b91d085473283f63a88ccd2363a03d9bf | 9a492c006d9c0aab68d0b095281dafda97ebdfda | refs/heads/main | 2023-08-25T06:46:39.075724 | 2021-10-19T14:51:27 | 2021-10-19T14:51:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,563 | py | # -*- coding: utf-8 -*-
import logging
import json
from odoo.tools import float_is_zero, float_compare, safe_eval, date_utils, email_split, email_escape_char, email_re
from odoo import fields, models, api, exceptions, _
from odoo.exceptions import UserError, ValidationError
_logger = logging.getLogger('__name__')
... | [
"inmldrsolucionestecnologicas@gmail.com"
] | inmldrsolucionestecnologicas@gmail.com |
c696330ec9c2433c9e5367b330c460090a719861 | f9d564f1aa83eca45872dab7fbaa26dd48210d08 | /huaweicloud-sdk-vas/huaweicloudsdkvas/v2/model/start_task_request.py | fc412068b562f5923f2f59232c150d5fd5cb53c2 | [
"Apache-2.0"
] | permissive | huaweicloud/huaweicloud-sdk-python-v3 | cde6d849ce5b1de05ac5ebfd6153f27803837d84 | f69344c1dadb79067746ddf9bfde4bddc18d5ecf | refs/heads/master | 2023-09-01T19:29:43.013318 | 2023-08-31T08:28:59 | 2023-08-31T08:28:59 | 262,207,814 | 103 | 44 | NOASSERTION | 2023-06-22T14:50:48 | 2020-05-08T02:28:43 | Python | UTF-8 | Python | false | false | 3,825 | py | # coding: utf-8
import six
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
class StartTaskRequest:
"""
Attributes:
openapi_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key is attribute n... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
6cc38a6ccf3295ef06d5d0013c3c4c686aec7aa5 | e23a4f57ce5474d468258e5e63b9e23fb6011188 | /110_concurrency_parallelism/001_asynchronous/_exercises/templates/Async Techniques and Examples in Python/09-built-on-asyncio/the_unsync/nosync.py | c927d59cbe969ccdd7bff7d4f230fce878fb7974 | [] | no_license | syurskyi/Python_Topics | 52851ecce000cb751a3b986408efe32f0b4c0835 | be331826b490b73f0a176e6abed86ef68ff2dd2b | refs/heads/master | 2023-06-08T19:29:16.214395 | 2023-05-29T17:09:11 | 2023-05-29T17:09:11 | 220,583,118 | 3 | 2 | null | 2023-02-16T03:08:10 | 2019-11-09T02:58:47 | Python | UTF-8 | Python | false | false | 1,112 | py | # ______ da..
# ______ ma..
# ______ ti..
# ______ re..
#
#
# ___ main
# t0 _ d_t_.d_t_.n..
#
# c..
# c..
# c..
# d..
# d..
# d_s_m..
# d_s_m..
# w..
# w..
# w..
# w..
#
# dt _ d_t_.d_t_.n.. - t0
# print("Synchronous version done in |:,.2_ seconds.".f.. ?.t_s..
#
... | [
"sergejyurskyj@yahoo.com"
] | sergejyurskyj@yahoo.com |
9478c584e8720ca8e131eae84299c0383e0e907d | ad08ee023345fcc42fdac6fab527809b2d502fa5 | /peek_plugin_diagram/_private/tuples/location_index/LocationIndexUpdateDateTuple.py | 3ed190106e964d14ae31c9201f88e18f70586ab8 | [] | no_license | Synerty/peek-plugin-diagram | fcaefc414334e4584976d0b0567712bb47a3082a | 8efffa2bb3877b7fcd3736b80df53adc784ca69c | refs/heads/master | 2021-07-03T17:42:17.129328 | 2020-10-27T04:55:52 | 2020-10-27T04:55:52 | 191,874,585 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 873 | py | from typing import Dict
from peek_abstract_chunked_index.private.tuples.ACIUpdateDateTupleABC import \
ACIUpdateDateTupleABC
from peek_plugin_diagram._private.PluginNames import diagramTuplePrefix
from vortex.Tuple import addTupleType, TupleField, Tuple
#: This the type of the data that we get when the clients ... | [
"jarrod.chesney@synerty.com"
] | jarrod.chesney@synerty.com |
3109118228c8de62a74220aa01d858cbd0adb4b1 | 4b660991e5c9c93c83dccccdd3ea91531201e8a3 | /DSA/string/practise/find_left_most_char_that_repeat.py | 07b8bae3a720ad130348c7581e41db275e14f38b | [
"MIT"
] | permissive | RohanMiraje/DSAwithPython | 2a1515fa5f9e5cc76b08a3e6f0ce34e451fb6f4b | ea4884afcac9d6cc2817a93e918c829dd10cef5d | refs/heads/master | 2022-09-24T08:57:04.695470 | 2021-10-21T01:06:06 | 2021-10-21T01:06:06 | 238,381,770 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,613 | py | import sys
"""
Find index of leftmost char that repeats
Naive approach-TC:O(n^2) SC:O(1)
start string travers from left:
check if curr left index value is repeating
at its right remaining string by traversing:
if found repeated then result curr left index
return -1 if no repeated found
better approach:... | [
"rohanmiraje19@gmail.com"
] | rohanmiraje19@gmail.com |
8791d022fce2f7641b74d13eb5342d85e53225e5 | 12db1c76e5411708fefd207c6a819e8e95551fe7 | /User/migrations/0013_auto_20201102_0842.py | d63358a6842a9e951c6e82abd5b55e74766b429b | [] | no_license | Jyonn/Saying | 5bbfffa06895211f44ae6c424223a400cd9d9223 | a32848560bc524011c1da47f509d94343f63ee59 | refs/heads/master | 2023-01-06T15:59:33.394067 | 2020-11-04T12:15:51 | 2020-11-04T12:15:51 | 123,360,151 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,473 | py | # Generated by Django 3.0.6 on 2020-11-02 08:42
import SmartDjango.models.fields
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('User', '0012_auto_20180301_0040'),
]
operations = [
migrations.AlterModelO... | [
"lqj679ssn@qq.com"
] | lqj679ssn@qq.com |
962e2ee557ca80df05cdb6c53d37554fb019dc11 | 93e058780c3fd4d7f40dbcac263fb58f63b51b6f | /integration_test/test_logging.py | 0d6fdb368d86e31734f05f185e19f07bea7a1d96 | [
"Apache-2.0"
] | permissive | multiscale/muscle3 | 2b6ffc34240b92bb2ade3e28e4dde1b6d3f8e3e7 | be8b21cfe97218d2a941b63d5762387716a9b3f8 | refs/heads/develop | 2023-07-12T06:12:03.510684 | 2023-07-06T20:11:41 | 2023-07-06T20:11:41 | 122,876,985 | 24 | 15 | Apache-2.0 | 2023-09-01T19:47:16 | 2018-02-25T21:07:17 | Fortran | UTF-8 | Python | false | false | 1,717 | py | import ymmsl
from ymmsl import Reference
from libmuscle.logging import LogLevel, LogMessage, Timestamp
from libmuscle.manager.manager import Manager
from libmuscle.mmp_client import MMPClient
def test_logging(log_file_in_tmpdir, caplog):
ymmsl_text = (
'ymmsl_version: v0.1\n'
'model:\n'
... | [
"l.veen@esciencecenter.nl"
] | l.veen@esciencecenter.nl |
116dcc95d5b9a8bebd5e1bde8ab774eb1b84fd88 | 03c00aa07607c1f206c0fb3cf00fc5c510d7a4bf | /Infoplus/models/order_load_program.py | 000ac0c33ad65779c78e6b4df5d3c844be7667a4 | [] | no_license | infopluscommerce/infoplus-python-client | 748cc9af739615036c52adce70aa7f4303601b97 | bde657057fedb5396ecf6c42e8ba668456bd1c43 | refs/heads/master | 2023-08-23T11:32:01.160320 | 2017-03-17T14:43:15 | 2017-03-17T14:43:15 | 58,404,638 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 3,719 | py | # coding: utf-8
"""
Copyright 2016 SmartBear Software
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... | [
"kdonnelly@infopluscommerce.com"
] | kdonnelly@infopluscommerce.com |
4f08dc744434feff1d32cee783de86333bb13fb9 | 76787cd4117d71377bd27d251b6d30b41922ff67 | /tests/integration/response/schema/test_countries.py | 34f80377ee2c79759a4d9a4a17217fb723874f4e | [
"MIT"
] | permissive | jaebradley/draftkings_client | 50ba0f25e38b78f75d92a57660bfb110e3a27e69 | 2184e2e3cf66bfe9e4cc6f6d577c80602ab7121a | refs/heads/v3 | 2022-12-09T14:35:50.263181 | 2022-01-19T06:36:24 | 2022-01-19T06:36:24 | 73,451,976 | 138 | 47 | MIT | 2022-12-08T01:23:13 | 2016-11-11T06:29:44 | Python | UTF-8 | Python | false | false | 2,712 | py | import os
from unittest import TestCase
from draft_kings.response.objects.countries import Country, Countries
from draft_kings.response.schema.countries import CountriesSchema
from tests.config import ROOT_DIRECTORY
class TestCountries(TestCase):
def setUp(self) -> None:
with open(os.path.join(ROOT_DIREC... | [
"noreply@github.com"
] | jaebradley.noreply@github.com |
92f0d23f55c9015d1f365d9e204979a391d1b0e4 | 5a8214b3a452c574e6c883bf5d90ba58ba87c461 | /leetcode/48.rotate-image.py | db4b09988b60fd7639cb9e4e1bf241fac3a2f0ad | [] | no_license | phlalx/algorithms | 69a3c8519687816e3c6333ec12b40659d3e3167f | f4da5a5dbda640b9bcbe14cb60a72c422b5d6240 | refs/heads/master | 2023-02-03T10:30:30.181735 | 2020-12-26T09:47:38 | 2020-12-26T09:47:38 | 129,254,618 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,563 | py | # TAGS implem
# make a drawing
#
# @lc app=leetcode id=48 lang=python3
#
# [48] Rotate Image
#
# https://leetcode.com/problems/rotate-image/description/
#
# algorithms
# Medium (50.40%)
# Likes: 2053
# Dislikes: 179
# Total Accepted: 307.7K
# Total Submissions: 596.5K
# Testcase Example: '[[1,2,3],[4,5,6],[7,8,9... | [
"phlalx@users.noreply.github.com"
] | phlalx@users.noreply.github.com |
e2611d1cd34427015fc98b5c6c870673d634990c | b2cfcacbd898f758a56d095f2140681934205d89 | /GeekShop_mentor/src_lesson_7/step_1(own_admin_start)/geekshop/adminapp/views.py | e33e89d0dc71607f5a2ff803da6531ffe1ed0eda | [] | no_license | AndreySperansky/Django_1 | 7d3be3ea2ede8e46d932fdae146ce4a7c4e300b4 | 0fec0a9a02b887fd8b45a5b763b7da5dc6377208 | refs/heads/master | 2022-12-15T19:56:23.611288 | 2020-09-21T17:40:40 | 2020-09-21T17:40:40 | 284,131,625 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,625 | py | from django.shortcuts import render, get_object_or_404
from authapp.models import ShopUser
from mainapp.models import ProductCategory, Product
def users(request):
title = 'админка/пользователи'
users_list = ShopUser.objects.all().order_by('-is_active', '-is_superuser', '-is_staff', 'username')
c... | [
"andrey.speransky@gmail.com"
] | andrey.speransky@gmail.com |
91af10910e07ae524e190b9ebf9a91f72007e792 | 32150af04590afe11f5c1229faf840e2e8c2a9ab | /Assignments/AS03/Week 5 HMEQ CART.py | b21ea8103f32726716f239ee33861966908b788a | [] | no_license | nsbgit/IIT-S21-CS-484 | f595f67dd72e0c0f65f9cbaafe581ab41ea4cab3 | 1850f0e571d0c72d875baedf87aae3d6943af382 | refs/heads/main | 2023-05-06T23:26:30.687201 | 2021-05-31T23:40:22 | 2021-05-31T23:40:22 | 332,584,584 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,725 | py | # Load the necessary libraries
import matplotlib.pyplot as plt
import matplotlib.ticker as mticker
import numpy
import pandas
# Define a function to visualize the percent of a particular target category by a nominal predictor
def TargetPercentByNominal (
targetVar, # target variable
targetCat, # targ... | [
"nsbgit@users.noreply.github.com"
] | nsbgit@users.noreply.github.com |
3676f283e395d049f59998b475e78308256c0321 | db0fe327ae984b7a461c02be74c439fe7d41c220 | /Question_repo/libs/repo_data.py | 47c31cbbfeb20ee14e0a507f5b9489b3cc15dd93 | [] | no_license | xingzhe1998/T_QUE | 4da80366bc721cc0cd222f7f7fde8331c6df85ee | 4c0d39402659b7c8fc448165c784ab125c700b41 | refs/heads/master | 2020-06-24T16:29:22.652765 | 2019-07-26T12:55:45 | 2019-07-26T12:55:45 | 199,016,012 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,309 | py | from apps.repo.models import Answers, User, Questions
from django.db.models import Count
def check_rank(data):
return data["id__count"]
def user_answer_data(user):
# 答题数量及总量
# count=> 计数
answer_num = Answers.objects.filter(user=user).count()
question_all = Questions.objects.all().__len__()
# 用... | [
"apple@appledeMacBook-Air.local"
] | apple@appledeMacBook-Air.local |
8560eab3f2fc20fb2784b79adb1f3d5c9ff9d7c8 | d1742451b25705fc128acc245524659628ab3e7d | /Data Structure & Algorithm/Segment Tree/Segment Tree Query.py | 2c6201ceabaf2ce509db9d2239a70e8e6527bab1 | [] | no_license | Shovon588/Programming | ebab793a3c97aedddfcad5ea06e7e22f5c54a86e | e4922c9138998358eed09a1be7598f9b060c685f | refs/heads/master | 2022-12-23T18:29:10.141117 | 2020-10-04T17:29:32 | 2020-10-04T17:29:32 | 256,915,133 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 663 | py | def func(node,low,high):
if low==high:
tree[node]=a[low-1]
return
left=2*node
right=(2*node)+1
mid=(low+high)//2
func(left,low,mid)
func(right,mid+1,high)
tree[node]=tree[left]+tree[right]
def query(node,b,e,i,j):
if b>=i and e<=j:
return tree[node]
if... | [
"mainulislam588@gmail.com"
] | mainulislam588@gmail.com |
af2538c02b261ca582200a1d3a1e2fe9f4d58da2 | 8b54951abdc4a8c119b057c5231adf65fdd5a915 | /lock_signal.py | fef29effd8931853c5369ee4e80d6ecf89fc05d7 | [] | no_license | larago/gevent | 0a645fbc97ec1f7f85c6a3a961b82739d1e64c7a | b41360ca8ebf6fbad8463d5128bb7b4bf837a7b9 | refs/heads/master | 2021-01-11T14:58:55.860636 | 2017-01-28T09:34:38 | 2017-01-28T09:34:38 | 80,270,162 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 516 | py | # encoding=utf8
from gevent import sleep
from gevent.pool import Pool
from gevent.lock import BoundedSemaphore
sem = BoundedSemaphore(2)
def worker1(n):
sem.acquire()
print 'Worker %s acquired semaphore' % n
sleep(0)
sem.release()
print 'Worker %s releasedd semaphore' % n
def worker2(n):
wit... | [
"bingeye@foxmail.com"
] | bingeye@foxmail.com |
20ec50dbb59c877aabc53633286aa894e4a4907c | f9d564f1aa83eca45872dab7fbaa26dd48210d08 | /huaweicloud-sdk-codecraft/huaweicloudsdkcodecraft/v5/model/register_competition_info_response.py | c351c82d2c877b2af1bf58f524e51d1749af18c2 | [
"Apache-2.0"
] | permissive | huaweicloud/huaweicloud-sdk-python-v3 | cde6d849ce5b1de05ac5ebfd6153f27803837d84 | f69344c1dadb79067746ddf9bfde4bddc18d5ecf | refs/heads/master | 2023-09-01T19:29:43.013318 | 2023-08-31T08:28:59 | 2023-08-31T08:28:59 | 262,207,814 | 103 | 44 | NOASSERTION | 2023-06-22T14:50:48 | 2020-05-08T02:28:43 | Python | UTF-8 | Python | false | false | 4,282 | py | # coding: utf-8
import six
from huaweicloudsdkcore.sdk_response import SdkResponse
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
class RegisterCompetitionInfoResponse(SdkResponse):
"""
Attributes:
openapi_types (dict): The key is attribute name
... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
3043c42d97729db02e9e2dfc1c55597e1cf93c21 | 80afa26ba73b53f38e3fc21bf395030762fe8981 | /200. Number of Islands.py | ae34d2da127bdf85debe74d5795951cefd3b567d | [] | no_license | iamshivamgoswami/Random-DSA-Questions | 45b402063dbd2e31da2eee7590b6991aa624637d | e36250d08cf0de59cd0a59b4f3293e55793b1a6f | refs/heads/main | 2023-07-15T15:48:36.363321 | 2021-08-26T03:40:47 | 2021-08-26T03:40:47 | 392,702,686 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 535 | py | class Solution:
def numIslands(self, grid: List[List[str]]) -> int:
def dfs(i, j):
grid[i][j] = "0"
for x, y in [(i + 1, j), (i - 1, j), (i, j + 1), (i, j - 1)]:
if 0 <= x < len(grid) and 0 <= y < len(grid[0]) and grid[x][y] == "1":
dfs(x, y)
... | [
"shivamgoswami12@gmail.com"
] | shivamgoswami12@gmail.com |
5e8b05b53016ffca5bed18a5013345269a00b769 | 7549c5f2e2b8ecc6d8f7ccc8030e005ffdf15018 | /modules/python_base/09/9.1.3/finally.py | 6c930a0a22b024c92df588cea78ced2a5f4298f0 | [] | no_license | gao634209276/myPython | d16bbf53645531e03cd2da4f211e783d0b93f703 | 40b4e8dcd329c34a73808a51743131d554832ab6 | refs/heads/master | 2020-06-20T22:21:55.521914 | 2017-09-01T14:27:31 | 2017-09-01T14:27:31 | 74,817,170 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 522 | py | #!/usr/bin/python
# -*- coding: UTF-8 -*-
# finally错误的用法
# try:
# f = file("hello2.txt", "r")
# print "读文件"
# except IOError: # 捕获IOError异常
# print "文件不存在"
# finally: # 其他异常情况
# f.close()
# try...except...finally
try:
f = open("hello.txt", "r")
try:
print f.read(5)
except:
... | [
"634209276@qq.com"
] | 634209276@qq.com |
535ad5ea0cc874c6d7e51ccadc8482f2f6343596 | 2309fbe9f9b86685f533706e6877ac3cfae99632 | /tests/src/Regression_Testing/Test_Scripts/Click_on_TAR.py | 099c02daa09fc1944c2154963b58662a39772477 | [
"MIT"
] | permissive | komathi1607/cQube | 909a8834608ce19989347863be538022bfaacd84 | 6cc629a600075a1e5332f84f8ffa940a3eebfcd0 | refs/heads/master | 2022-11-15T07:46:19.314371 | 2020-06-05T00:55:17 | 2020-06-05T00:55:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 779 | py | import time
import unittest
from selenium import webdriver
from Data.parameters import Data
from TS.reuse_func import cqube
from get_dir import pwd
class test_TAR(unittest.TestCase):
def setUp(self):
driver_path = pwd()
self.driver = webdriver.Chrome(executable_path=driver_path.get_driver_path()... | [
"laxmikanth.vattamvar@tibilsolutions.com"
] | laxmikanth.vattamvar@tibilsolutions.com |
81ed140b023ae1c2e0ee981bb65a3c175e059052 | 3356ecffb180dd617a8ded3bca89a067122e9d65 | /lab1/task_7.py | 0c781a6c6f9d656ecab036074ee523467f7bbfbe | [] | no_license | python-practice-b02-927/TodorovRV | bae93783b15e6e0397c7dfae018dfac58b719a03 | d6765f8b65ae88b2d0ca021340ff1848d4b3605a | refs/heads/master | 2020-07-22T20:18:45.296515 | 2019-11-19T11:46:03 | 2019-11-19T11:46:03 | 207,315,122 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 293 | py | #!/usr/bin/python3
from pyrob.api import *
@task
def task_5_4():
while not wall_is_beneath():
move_down()
while wall_is_beneath():
move_right()
move_down()
move_left()
while wall_is_above() and (not wall_is_on_the_left()):
move_left()
if __name__ == '__main__':
run_tasks()
| [
"noreply@github.com"
] | python-practice-b02-927.noreply@github.com |
38613ed23f71373e77774283f60636d3ef9b8b70 | e87c04d6c2bbba383f9c75620b16f02358039ab5 | /200826프로/Re최소비용구하기_G5.py | d8fd01ea1428cd215e57f2eb2c491840f6e2f32f | [] | no_license | yoonwoo123/Algorithm | 2bf6e103009572cbcf3abfd783f6c28762529340 | 5d1e76f1bf6c2fc6acb25dc5296d62b2ca453ec6 | refs/heads/master | 2022-06-18T14:06:06.248906 | 2022-05-29T10:41:15 | 2022-05-29T10:41:15 | 221,483,283 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,240 | py | # 0628백준 못풀었던 최소비용구하기 재도전
import sys, heapq
sys.stdin = open("최소비용_input.txt")
input = sys.stdin.readline
def dijkstra(graph, start, end):
distances = {node : float('inf') for node in graph}
distances[start] = 0
queue = []
heapq.heappush(queue, [distances[start], start])
while queue:
cur... | [
"lkkjasd@korea.ac.kr"
] | lkkjasd@korea.ac.kr |
39c80ed7609de255a1d4095a62be36b57429a380 | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /XjgoXNmnz59txiQp3_20.py | 5a5eb8ffec5c428b019e2cbaa644d2f512144599 | [] | no_license | daniel-reich/ubiquitous-fiesta | 26e80f0082f8589e51d359ce7953117a3da7d38c | 9af2700dbe59284f5697e612491499841a6c126f | refs/heads/master | 2023-04-05T06:40:37.328213 | 2021-04-06T20:17:44 | 2021-04-06T20:17:44 | 355,318,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 176 | py |
def split(number):
if (number < 5):
return number
rem = number % 3
div3 = number//3
if (rem == 2):
return 3 ** (div3) * 2
return 3 ** (div3-1) * (3 + rem)
| [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
86e9fa6a8c3ed0a7e6035870f5d3efbab277cffc | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_35/202.py | 85cf40d5f4d6c4e8f2519c5092793cfc5a85d792 | [] | 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,956 | py | #!/usr/bin/python
MAX_ALT = 11000
def is_valid_index(i, j, alts):
return i >= 0 and j >= 0 and i < len(alts) and j < len(alts[i])
def find_flow_dir(i, j, alts):
dirs = [(alts[i][j], (i, j)),
(alts[i - 1][j] if is_valid_index(i - 1, j, alts) else MAX_ALT, (i - 1, j)),
(alts[i][j - 1] if is_val... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
c891b8067ded9d4dbe6bf8eef18d752dd94634f4 | 78137d5e4e688749399bbb386b26536e4ac6d9fa | /pytorch3d/renderer/camera_conversions.py | 9fb73e5fcc8140e159b9f0ae21645212077e7ee4 | [
"MIT",
"BSD-3-Clause"
] | permissive | bruinxiong/pytorch3d | 4235681c6356f7e69fa506d8474a3c7cf83d9fe6 | 18a3c5cbb9055bcda44590d39db65bb0c74db799 | refs/heads/master | 2022-06-18T16:28:39.589229 | 2022-05-18T20:11:36 | 2022-05-18T20:11:36 | 238,892,798 | 0 | 0 | NOASSERTION | 2022-05-18T20:11:37 | 2020-02-07T10:04:39 | Python | UTF-8 | Python | false | false | 6,893 | py | # Copyright (c) Meta Platforms, Inc. and affiliates.
# All rights reserved.
#
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree.
import logging
from typing import Tuple
import torch
from ..transforms import matrix_to_rotation_6d
from .cam... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
24a344875f69d03d0e0a3a6a855fce30a6b147d7 | 6b0f007ca1d3426c71b2298adac853ddce996b49 | /Schoolwebsite/schoolapp/migrations/0030_auto_20201223_1852.py | ff5d81f44974039c5d2f45fb26b161bd10c597f6 | [] | no_license | AbdurRahman111/Full_School_Management_System | 49b37e8615b94bc20aeabc3ef41e468cf2dd9b47 | 0508fa6ba7b529429c4dae2feeb19a991547457e | refs/heads/master | 2023-02-27T04:24:13.272126 | 2021-02-05T16:17:44 | 2021-02-05T16:17:44 | 336,323,426 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,037 | py | # Generated by Django 3.1.4 on 2020-12-23 12:52
import datetime
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('schoolapp', '0029_auto_20201223_1031'),
]
operations = [
migrations.AlterField(
... | [
"mdabdurrahmanchowdhury1122@gmail.com"
] | mdabdurrahmanchowdhury1122@gmail.com |
62fdac76001172e852e91825b8e6245b3d0c843a | 69d2627942a554d6914ba05de097a290fed66bad | /vb2py/targets/pythoncard/vbcontrols/vbtextfield.py | c37d1f300778de7e1e6b1ae23f4e6f2c677da7be | [
"BSD-3-Clause"
] | permissive | rayzamgh/sumurProjection | 0fcef39cc75e620057b012f1bd35cae1c49a5554 | 847ce71e85093ea5ee668ec61dbfba760ffa6bbd | refs/heads/master | 2020-07-23T23:33:26.621550 | 2019-12-22T05:31:24 | 2019-12-22T05:31:24 | 207,738,494 | 1 | 0 | null | 2019-10-28T16:00:07 | 2019-09-11T06:23:43 | Python | UTF-8 | Python | false | false | 831 | py | from vb2py.targets.pythoncard.controlclasses import VBWrapped, VBWidget
from vb2py.targets.pythoncard import Register
import vb2py.logger
log = vb2py.logger.getLogger("VBTextField")
from PythonCard.components import textfield
import wx
import sys
from PythonCard import event, registry, widget
class VBTextField(VBWid... | [
"rayzaganteng@gmail.com"
] | rayzaganteng@gmail.com |
1951975481074fd5d822438ba56fe73946a2f7b6 | c0baa78917da5bf81cd04758b127a8d3c5d27da6 | /vize/160401025/client/client.py | c993aad9b32dc6e608e41e9816a5ed83282d47a3 | [
"Unlicense"
] | permissive | nyucel/blm304 | 9e3049e2743e2e9055e8e067724a966e82579d07 | e23f28674229470b5f110ea37428f9c1ca13ac51 | refs/heads/master | 2022-11-07T12:36:12.620417 | 2020-06-27T11:09:59 | 2020-06-27T11:09:59 | 259,326,143 | 14 | 207 | Unlicense | 2020-06-27T11:10:00 | 2020-04-27T13:14:48 | Python | UTF-8 | Python | false | false | 4,818 | py | # -*- coding: utf-8 -*-
"""
@author: Halil İbrahim Koç
"""
import socket
import time
import os
import sys
port=42
buffer=4096
if len(sys.argv) != 2:
print("Host bilgisi girilmelidir.")
sys.exit()
try:
socket.gethostbyname(sys.argv[1])
except socket.error:
print("Host bilgisi ... | [
"noreply@github.com"
] | nyucel.noreply@github.com |
eac3e5d6c2b6049b58d419a252bf24a4d5f309b5 | 90c6262664d013d47e9a3a9194aa7a366d1cabc4 | /tests/opcodes/cases/test_set_size_149.py | 2290405a5f8b27eb8d84dfab529207a21fb3edd7 | [
"MIT"
] | permissive | tqtezos/pytezos | 3942fdab7aa7851e9ea81350fa360180229ec082 | a4ac0b022d35d4c9f3062609d8ce09d584b5faa8 | refs/heads/master | 2021-07-10T12:24:24.069256 | 2020-04-04T12:46:24 | 2020-04-04T12:46:24 | 227,664,211 | 1 | 0 | MIT | 2020-12-30T16:44:56 | 2019-12-12T17:47:53 | Python | UTF-8 | Python | false | false | 829 | py | from unittest import TestCase
from tests import abspath
from pytezos.repl.interpreter import Interpreter
from pytezos.michelson.converter import michelson_to_micheline
from pytezos.repl.parser import parse_expression
class OpcodeTestset_size_149(TestCase):
def setUp(self):
self.maxDiff = None
s... | [
"mz@baking-bad.org"
] | mz@baking-bad.org |
46ae0f16489d49d88a5abf519a6add085e10a25d | 36959b56e506dbbe2d3c381cdccfe16965c14d24 | /Django/alms/leave/models.py | 020e39c03be6ec8eadabbc804613a01e862b778e | [] | no_license | Sathishkumar-M/Django | e2935fe0c69acb4cb39be2bc0504fd3d5619d002 | e54038ef70295274639b6207efe8e7e3939cbe36 | refs/heads/master | 2020-03-21T20:22:48.684770 | 2018-06-28T10:42:51 | 2018-06-28T10:42:51 | 139,003,364 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,293 | py | from django.db import models
from django.contrib.auth.models import User
from django.utils import timezone
import datetime
# Create your models here.
class LeaveRules(models.Model):
leave_type = models.CharField(max_length=256,blank=False)
leave_rules = models.TextField(blank=True,default='')
created_date =... | [
"sathishkumar.appiness@gmail.com"
] | sathishkumar.appiness@gmail.com |
c95ef593fefb765b7876720245730eeb8f614d53 | 89155ebee895cbd04e4eb7a9d079a820d90ffd7e | /viewset_modelviewset_application/app/migrations/0004_auto_20210122_0531.py | 7d4d27a8ea437a57f34a859481d6f08daaf624ca | [] | no_license | mahmudgithub/Rest-api-playground | 822c0671b534fc057461703711ef980d9d31ce56 | a452a329d60c9104afdeadde13f7493741e4914a | refs/heads/master | 2023-03-31T17:23:13.605754 | 2021-04-11T14:10:31 | 2021-04-11T14:10:31 | 331,842,045 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 368 | py | # Generated by Django 3.1.4 on 2021-01-22 13:31
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('app', '0003_one_city'),
]
operations = [
migrations.AlterField(
model_name='one',
name='city',
field=mod... | [
"mahmudhossain838@gmail.com"
] | mahmudhossain838@gmail.com |
28cce25feb029f8c2e58daa7e26b3c7c31e89446 | 56f5b2ea36a2258b8ca21e2a3af9a5c7a9df3c6e | /CMGTools/H2TauTau/prod/25aug_corrMC/up/mc/DY1JetsToLL_M-50_TuneZ2Star_8TeV-madgraph/Summer12_DR53X-PU_S10_START53_V7A-v1/AODSIM/V5_B/PAT_CMG_V5_16_0_1377544841/HTT_24Jul_newTES_manzoni_Up_Jobs/Job_165/run_cfg.py | 4b626943fbef786d0d255b19f5fe1f78243bbfcc | [] | no_license | rmanzoni/HTT | 18e6b583f04c0a6ca10142d9da3dd4c850cddabc | a03b227073b2d4d8a2abe95367c014694588bf98 | refs/heads/master | 2016-09-06T05:55:52.602604 | 2014-02-20T16:35:34 | 2014-02-20T16:35:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,499 | py | import FWCore.ParameterSet.Config as cms
import os,sys
sys.path.append('/afs/cern.ch/user/m/manzoni/summer13/CMGTools/CMSSW_5_3_9/src/CMGTools/H2TauTau/prod/25aug_corrMC/up/mc/DY1JetsToLL_M-50_TuneZ2Star_8TeV-madgraph/Summer12_DR53X-PU_S10_START53_V7A-v1/AODSIM/V5_B/PAT_CMG_V5_16_0_1377544841/HTT_24Jul_newTES_manzoni_... | [
"riccardo.manzoni@cern.ch"
] | riccardo.manzoni@cern.ch |
849e4f1ba87609eb8511f0ba7b7db5d349078f29 | 8b44c7f5f9c2264fd5bfe91ea324fdbd53813413 | /algorithms/DQN/train_DQN.py | 0d2c4954ac20e0ad3bed569e5108a376d106f5d8 | [
"MIT"
] | permissive | syd951186545/reinforce_py | ee33a63d6c8c94c3318877460a49470ef7788036 | 46769da50aea65346cd3a300b55306d25f1f2683 | refs/heads/master | 2020-05-14T13:54:32.067888 | 2018-06-08T14:43:45 | 2018-06-08T14:43:45 | 181,823,264 | 1 | 0 | MIT | 2019-04-17T05:31:04 | 2019-04-17T05:31:00 | Python | UTF-8 | Python | false | false | 5,083 | py | from __future__ import print_function
from __future__ import division
import os
import argparse
import gym
import tensorflow as tf
import numpy as np
import matplotlib.pyplot as plt
from agent import DQN
def main(args):
set_random_seed(args.seed)
env = gym.make('CartPole-v0')
agent = DQN(env, args)
... | [
"badbobobo@gmail.com"
] | badbobobo@gmail.com |
26dd0cdf3db785f86670a75ed04fad31e9b09252 | 8202512dc4fef386dc927fa60c22596e149fb6f0 | /venv/bin/gunicorn | 0092995224d9586509475559b4ecc8a8608582ec | [] | no_license | dimoka777/tv | 6e8d6e754383a897588ddd203e0670650c22245e | 8159cb76c695802efb4a30ecc2cc5a71960a23c0 | refs/heads/master | 2020-06-19T05:18:59.333318 | 2019-07-13T15:19:50 | 2019-07-13T15:19:50 | 196,577,844 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 242 | #!/home/dimoka/Django/tv/venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from gunicorn.app.wsgiapp import run
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(run())
| [
"dimokavip777@gmail.com"
] | dimokavip777@gmail.com | |
e278ef7ff6ed2f42a6e7361f4d93862a94eec361 | 6c96601d64a02c4050410c5e45efa6e1bd8253f6 | /wikked/web.py | c300577283de746aa268b31b14b5208e90308176 | [
"Apache-2.0"
] | permissive | ludovicchabant/Wikked | 7c0627f513f5ccbe052484dcb1ae89336e552cf4 | 02ec3c0361ac90b0366e7a90f8928a54d40616b5 | refs/heads/master | 2022-12-03T08:12:08.621371 | 2019-03-09T07:41:40 | 2019-03-09T07:41:40 | 15,740,703 | 17 | 0 | Apache-2.0 | 2022-12-03T01:25:58 | 2014-01-08T16:17:33 | Python | UTF-8 | Python | false | false | 7,577 | py | import os
import os.path
import logging
import urllib.parse
from werkzeug import SharedDataMiddleware
from flask import Flask, abort, g
from wikked.wiki import Wiki, WikiParameters
# Create the main app.
static_folder = os.path.join(os.path.dirname(__file__), 'static')
app = Flask(
'wikked',
static_fo... | [
"ludovic@chabant.com"
] | ludovic@chabant.com |
656e3ca9877621760222278ef164bbd08c56b93f | a870e1db82fbf8f57b9d5fb4ebdc5f205df1a063 | /web/settings_local.py | 5c9f3553952426e2191ef7bf823ec68d679890c2 | [] | no_license | mireq/django-frontend-template | 36692d705dd84513e1389379219bdb619c9d1f8a | 9f3bd4e3e9374deb77586374a6ed62f6e6ccb316 | refs/heads/master | 2023-08-16T19:23:09.761808 | 2023-08-13T04:12:38 | 2023-08-13T04:12:38 | 50,784,205 | 0 | 1 | null | 2023-08-13T04:12:40 | 2016-01-31T16:44:42 | Python | UTF-8 | Python | false | false | 167 | py | # pylint: disable=wildcard-import,unused-wildcard-import
from .settings import *
COMPRESS_POSTCSS_BINARY = 'postcss' # path to postcss binary
ALLOWED_HOSTS = ['*']
| [
"miroslav.bendik@gmail.com"
] | miroslav.bendik@gmail.com |
1375c8329253029ffd84e0e0fcc00fa5367fdf5d | 480e33f95eec2e471c563d4c0661784c92396368 | /GeneratorInterface/PomwigInterface/python/POMWIG_SingleDiffractiveMinusWmunu_10TeV_cff.py | b86f148ed4e8c4c5f1a7b01056222a8797b3ed6e | [
"Apache-2.0"
] | permissive | cms-nanoAOD/cmssw | 4d836e5b76ae5075c232de5e062d286e2026e8bd | 4eccb8a758b605875003124dd55ea58552b86af1 | refs/heads/master-cmsswmaster | 2021-01-23T21:19:52.295420 | 2020-08-27T08:01:20 | 2020-08-27T08:01:20 | 102,867,729 | 7 | 14 | Apache-2.0 | 2022-05-23T07:58:09 | 2017-09-08T14:03:57 | C++ | UTF-8 | Python | false | false | 1,323 | py | import FWCore.ParameterSet.Config as cms
herwig6Parameters = cms.PSet(
comEnergy = cms.double(10000.0),
useJimmy = cms.bool(False),
doMPInteraction = cms.bool(False),
herwigHepMCVerbosity = cms.untracked.bool(False),
herwigVerbosity = cms.untracked.int32(1),
printCards = cms.untracked.bool(True),
maxEventsToPr... | [
"giulio.eulisse@gmail.com"
] | giulio.eulisse@gmail.com |
f27b89cf6bda2b7d42a99756ab87727eb21adda5 | 76c40ae54b4985cdb0b4692106795ded8115da42 | /train_cross_domain.py | 78924d5ad3718d7470998843a2f82cac444aec26 | [] | no_license | leosampaio/keras-generative | 1b23ea6b18af8c09bdf08c30dc6a0428c06eb385 | ffafbae19d24c0ce7e812f610c4754a343400a9e | refs/heads/master | 2021-05-09T09:04:43.636608 | 2018-11-21T17:26:28 | 2018-11-21T17:26:28 | 119,418,618 | 1 | 1 | null | 2018-01-29T17:48:49 | 2018-01-29T17:48:49 | null | UTF-8 | Python | false | false | 4,264 | py | import os
import sys
import math
import argparse
from keras import backend as K
import numpy as np
from sklearn.preprocessing import LabelBinarizer
os.environ['TF_CPP_MIN_LOG_LEVEL'] = '3'
import matplotlib
matplotlib.use('Agg')
from models import models
from datasets import load_dataset
def main():
# Parsing... | [
"leo.sampaio.ferraz.ribeiro@gmail.com"
] | leo.sampaio.ferraz.ribeiro@gmail.com |
04b1d77dab59666059f65cc7262e758d96a4570f | 8afb5afd38548c631f6f9536846039ef6cb297b9 | /MY_REPOS/PYTHON_PRAC/python-mega-algo/conversions/hexadecimal_to_decimal.py | beb1c2c3ded67ee5fca164a33d6462fa7c495ebb | [
"MIT"
] | permissive | bgoonz/UsefulResourceRepo2.0 | d87588ffd668bb498f7787b896cc7b20d83ce0ad | 2cb4b45dd14a230aa0e800042e893f8dfb23beda | refs/heads/master | 2023-03-17T01:22:05.254751 | 2022-08-11T03:18:22 | 2022-08-11T03:18:22 | 382,628,698 | 10 | 12 | MIT | 2022-10-10T14:13:54 | 2021-07-03T13:58:52 | null | UTF-8 | Python | false | false | 1,509 | py | hex_table = {hex(i)[2:]: i for i in range(16)} # Use [:2] to strip off the leading '0x'
def hex_to_decimal(hex_string: str) -> int:
"""
Convert a hexadecimal value to its decimal equivalent
#https://www.programiz.com/python-programming/methods/built-in/hex
>>> hex_to_decimal("a")
10
>>> hex_... | [
"bryan.guner@gmail.com"
] | bryan.guner@gmail.com |
f69c7a91af50182b1bf902e53170333407c5b9b3 | d145eb9a03200855caddbf53da53ee092386f93f | /python/etcd/test4.py | 40b212bbfbc7814103a5054b2c71eebf234395df | [] | no_license | oberstet/scratchbox | 0ecb44df40664526c4eab6dae69837735e8cf7fe | 87ac59b98782c70888df24b633f890e3305e7c8c | refs/heads/master | 2022-11-08T03:36:36.108804 | 2022-10-22T09:52:20 | 2022-10-22T09:52:20 | 3,698,059 | 26 | 8 | null | null | null | null | UTF-8 | Python | false | false | 1,843 | py | from twisted.internet.task import react
from twisted.internet.defer import inlineCallbacks
from autobahn.twisted.util import sleep
import etcd
import txaio
@inlineCallbacks
def main(reactor):
# a Twisted etcd client
client = etcd.Client(reactor, u'http://localhost:2379')
# get etcd status
status =... | [
"tobias.oberstein@tavendo.de"
] | tobias.oberstein@tavendo.de |
769f7cb542a82ef942a57683d24a36f3ba41cbc1 | 0be644ba0208b1f9f93018f74580fd5047618a3b | /src/industries/power_plant.py | aa022bf8d0e6cd3ab277a822db436cfdd9905568 | [] | no_license | ebla71/XIS | 1ba48f019c063132b561d8c2e469634349b96aae | 9f96b8f210b91da29ce0d3b34e896f629fc7dede | refs/heads/main | 2023-08-22T11:45:22.723296 | 2021-10-05T09:11:11 | 2021-10-05T09:11:11 | 355,645,289 | 0 | 0 | null | 2021-09-25T21:51:01 | 2021-04-07T18:29:02 | Python | UTF-8 | Python | false | false | 4,892 | py | from industry import IndustryTertiary, TileLocationChecks
industry = IndustryTertiary(id='power_plant',
accept_cargo_types=['COAL', 'PETR', 'PEAT'],
prod_cargo_types=[],
prob_in_game='3',
prob_random='5',
... | [
"jake.dander@gmail.com"
] | jake.dander@gmail.com |
13d0d57dd8b47b5a6e7bcc2d381ee1431205e156 | 84e13b07d2c1c2ee9bc670bbc78a677358f4713d | /0x07-python-test_driven_development/4-print_square.py | 6541eb37b96a7ee8c04013627e37407eb14cc943 | [] | no_license | thegermanblob/holbertonschool-higher_level_programming | b3ad5da5e120df1bced24313af50e2399f43a75c | f1b91a6cc1b9c3dd51dbcf83e61f0a084253c0be | refs/heads/main | 2023-09-05T09:00:56.464406 | 2021-11-22T14:58:37 | 2021-11-22T14:58:37 | 361,759,191 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 461 | py | #!/usr/bin/python3
""" Module that contains square """
def print_square(size):
""" Function that prints a square and validates size """
if type(size) is not int:
raise TypeError("size must be an integer")
if size < 0:
raise ValueError("size must be >= 0")
if size == 0:
print(... | [
"thegermanblob@gmail.com"
] | thegermanblob@gmail.com |
0264140fed967a1644148682d47d81f3fd7b0d4b | 89a015d681c109801be843492dbbc76349fc8d24 | /setup.py | 4c5c6668172d3ad63eafbd7fcb7660ae259bb009 | [
"MIT"
] | permissive | chmouel/tekton-neat | 2d4eba1116f98aed1334bb9768514200ce6c71fd | 8714a0e673a7eb4c5670f4acbb61701719423cdd | refs/heads/main | 2023-01-06T03:46:37.275733 | 2020-11-06T10:43:09 | 2020-11-06T10:43:09 | 310,533,512 | 4 | 2 | MIT | 2020-11-06T10:37:46 | 2020-11-06T08:15:15 | Python | UTF-8 | Python | false | false | 1,515 | py | #!/usr/bin/env python
"""The setup script."""
from setuptools import setup, find_packages
with open('README.rst') as readme_file:
readme = readme_file.read()
with open('HISTORY.rst') as history_file:
history = history_file.read()
requirements = []
setup_requirements = ['pyyaml']
test_requirements = [
... | [
"chmouel@chmouel.com"
] | chmouel@chmouel.com |
fe4d5bc55a87020fa99d3ab6ac248746bcac93f7 | ad9bd58a3ec8fa08dfcc994d4101ee815a9f5bc0 | /02_algorithm/baekjoon/all_problem/1967.py | 7869d00865f64f47645925bb25b3fd2d27997977 | [] | no_license | wally-wally/TIL | 93fc1d0e3bc7d030341ed54155294c68c48b4c7d | 936783bc86f563646c0398c24e2fcaa707f0ed23 | refs/heads/master | 2023-04-28T08:59:48.235747 | 2023-04-12T12:06:52 | 2023-04-12T12:06:52 | 195,918,111 | 40 | 7 | null | 2020-09-29T16:20:46 | 2019-07-09T02:31:02 | Python | UTF-8 | Python | false | false | 1,243 | py | import sys
sys.stdin = open('input_1967.txt', 'r')
from collections import deque
def find_farthest_vertex(start_node):
distance, farthest_vertex = 0, start_node
dq = deque()
dq.append((start_node, 0))
visited = [False for _ in range(n + 1)]
visited[start_node] = True
while dq:
pop_node... | [
"wallys0213@gmail.com"
] | wallys0213@gmail.com |
e28df1d439e040246ab819554cc779df88495db5 | b13b603bf8f07da1100b7fcb2e505f9c389e5764 | /level2/구명보트.py | b2937d51318cf687b8b938b9224531f55a5bf9f3 | [] | no_license | 123qpq/programers | 3a499646f65bed9f15b0db3e66d7445536579942 | 970b62210f6c29ea0d13bd381fb1e0a9b997143f | refs/heads/main | 2023-06-20T12:00:10.681082 | 2021-07-20T04:36:46 | 2021-07-20T04:36:46 | 322,791,861 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 355 | py | from collections import deque
def solution(people, limit):
boats = 0
people.sort()
people = deque(people)
while people:
boats += 1
if len(people) == 1:
break
if people[0] + people[-1] <= limit:
people.popleft()
people.pop()
else:
... | [
"45002168+123qpq@users.noreply.github.com"
] | 45002168+123qpq@users.noreply.github.com |
594ba8fc903636d753d54513ba19fe91419f506c | 6502929152acc82097c6bb9fa9b211a30b23b6c0 | /2_anomaly_detection_nyc.py | 446aea1c4757dddf1487d6ef315105b8176e12b4 | [
"Apache-2.0"
] | permissive | lulzzz/RNN-Time-series-Anomaly-Detection | ceec98a902b3504224834c03a22e7e7673f11470 | 194a20100749bae0f18b7a9681055b92f892c7e9 | refs/heads/master | 2020-03-10T03:37:45.860990 | 2018-04-11T01:38:42 | 2018-04-11T01:38:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,349 | py | import argparse
import torch
import torch.nn as nn
from torch.autograd import Variable
import preprocess_data
from model import model
from torch import optim
from matplotlib import pyplot as plt
import numpy as np
from anomalyDetector import fit_norm_distribution_param
from anomalyDetector import anomalyScore
from skle... | [
"jmpark@rit.kaist.ac.kr"
] | jmpark@rit.kaist.ac.kr |
252b8ee31d1bd50da52453b3ffc3d15607759ff3 | e8bf00dba3e81081adb37f53a0192bb0ea2ca309 | /domains/nav/problems/auto/problem1083_SD.py | 44761016946ddef7cbb4c415a70a66f745d3cab7 | [
"BSD-3-Clause"
] | permissive | patras91/rae_release | 1e6585ee34fe7dbb117b084df982ca8a8aed6795 | 0e5faffb7eb732fdb8e3bbf2c6d2f2cbd520aa30 | refs/heads/master | 2023-07-13T20:09:41.762982 | 2021-08-11T17:02:58 | 2021-08-11T17:02:58 | 394,797,515 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,135 | py | __author__ = 'patras'
from domain_springDoor import *
from timer import DURATION
from state import state, rv
DURATION.TIME = {
'unlatch1': 5,
'unlatch2': 5,
'holdDoor': 2,
'passDoor': 3,
'releaseDoor': 2,
'closeDoors': 3,
'move': 7,
'take': 2,
'put': 2,
}
DURATION.COUNTER = {
... | [
"patras@umd.edu"
] | patras@umd.edu |
0b0c4aff2067846b9dd29a167bd9b9af5c1b88d7 | aa6985deb43e26732899d06ee39fd6cb4befc2ae | /strongmotionfetch/retriever.py | 78bb5088fde03bef4274155037a08d13e372b0ae | [
"LicenseRef-scancode-public-domain-disclaimer"
] | permissive | jnf0910/strongmotionfetch | 2592396183a651799b3ae3a33c77a2b25128d85d | c9e6f30797e6893bf60506b24096c52537a0110b | refs/heads/master | 2020-12-25T09:28:53.617747 | 2016-06-23T20:48:39 | 2016-06-23T20:48:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,020 | py | class Retriever(object):
def __init__(self,rawfolder,inputfolder):
self._inputfolder = inputfolder
self._rawfolder = rawfolder
def getData(self,time,lat,lon,timewindow,radius):
self.fetch(time,lat,lon,timewindow,radius) #find files online, download to raw folder
traces = self.re... | [
"mhearne@usgs.gov"
] | mhearne@usgs.gov |
b76c818f8bfb550baeb076a2434b1a8e483f19e2 | 36b388d25580e60068da2d6cab88d94f90959749 | /lib/datasets/SearchDatasetWrap.py | f7925b3c9235992b325687ea7c761c732570e971 | [
"MIT"
] | permissive | z-x-yang/NAS-Projects | 4b733b381e325819f958d9af684267b9d4f7fac8 | 54ecec7f750e11077b2ecc60ddcd74ce417434ac | refs/heads/master | 2020-09-08T14:45:13.712958 | 2019-11-09T16:04:05 | 2019-11-09T16:04:05 | 221,163,104 | 3 | 0 | MIT | 2019-11-12T08:05:37 | 2019-11-12T08:05:34 | null | UTF-8 | Python | false | false | 1,186 | py | import torch, copy, random
import torch.utils.data as data
class SearchDataset(data.Dataset):
def __init__(self, name, data, train_split, valid_split, check=True):
self.datasetname = name
self.data = data
self.train_split = train_split.copy()
self.valid_split = valid_split.copy()
if chec... | [
"280835372@qq.com"
] | 280835372@qq.com |
c6269ba6d485726a565012d1258590f2aa850778 | 1e4eefff1c19ffb81016ce99f2284fb657293f65 | /sorting/test/insertion_sort.py | 0bc84a94a6f9223c9f3bc60740800fc4d84f4a58 | [] | no_license | Solero93/bcn-algorithm-club-py | 5e1edf15f087e0edf2cf7ba0859fb5e4523525ad | 1edf407498756e7ba36534387bb4241b8b455c4f | refs/heads/master | 2020-03-28T09:06:30.328130 | 2019-03-25T10:38:48 | 2019-03-25T10:38:48 | 148,014,386 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 340 | py | from unittest import TestCase
from src.insertion_sort import insertion_sort
from test.fixtures import test_cases
class BuiltInSortTest(TestCase):
def test_sort(self):
for case in test_cases:
self.assertEqual(insertion_sort(case), sorted(case),
msg=f'{case} should ... | [
"solero93@gmail.com"
] | solero93@gmail.com |
00610e1274a588c4ba24de9621ed3e9c8cb3f68e | 781e2692049e87a4256320c76e82a19be257a05d | /assignments/python/wc/src/99.py | 126258ad6d501e7e292a6de1f96af9a0b43e54a6 | [] | 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 | 169 | py | def word_count(input):
counts = {}
for word in input.split():
if not word in counts:
counts[word] = 1
else:
counts[word] = counts[word] + 1
return counts
| [
"rrc@berkeley.edu"
] | rrc@berkeley.edu |
1a4b29df1d245f93801fe603eb728d890f2ba45e | adc6d8ee596e4710c3241332758bb6990bdd8914 | /Trabajo de grado_final/Anexos/Codigos/test_todoRE.py | b3e6bc0cdb7029307a37568546836197b0bdb655 | [] | no_license | NatalyTinoco/Trabajo-de-grado_Artefactos | cf9491c47a8a23ce5bab7c52498093a61319f834 | 5cc4e009f94c871c7ed0d820eb113398ac66ec2f | refs/heads/master | 2022-03-20T00:51:48.420253 | 2019-11-24T19:10:40 | 2019-11-24T19:10:40 | 197,964,659 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,752 | py | # -*- coding: utf-8 -*-
"""
Created on Sat Oct 5 12:53:35 2019
@author: Daniela y Nataly
Descripción del código: Código donde se une toda la metodología para identificación de Reflejos especulares (mRE).
*Entrada: imagePath1(ruta de la imagen)
*Salida: predic (predicción del clasificador (1-RE y 0-OTROS)), origina... | [
"51056570+NatalyTinoco@users.noreply.github.com"
] | 51056570+NatalyTinoco@users.noreply.github.com |
ddd21339f6ece5a9cfaea4ecafc2c753eb9eee93 | a2e638cd0c124254e67963bda62c21351881ee75 | /Extensions/Adaptiv XVA/FPythonCode/HedgingCostHooksTemplate.py | 9674f7e8d046ad05bf4c5c7fab47c7b123fe95f4 | [] | no_license | webclinic017/fa-absa-py3 | 1ffa98f2bd72d541166fdaac421d3c84147a4e01 | 5e7cc7de3495145501ca53deb9efee2233ab7e1c | refs/heads/main | 2023-04-19T10:41:21.273030 | 2021-05-10T08:50:05 | 2021-05-10T08:50:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,164 | py | """ Compiled: 2020-09-18 10:38:50 """
#__src_file__ = "extensions/cva/adaptiv_xva/./etc/HedgingCostHooksTemplate.py"
'''---------------------------------------------------------------------
All functions in HedgingCostHooksTemplate can be
overridden in a HedgingCostHooks module. To do so, create a module called Hedgi... | [
"81222178+nenchoabsa@users.noreply.github.com"
] | 81222178+nenchoabsa@users.noreply.github.com |
581247815b035fa94285115f1360f3627bd39e61 | c012d16bbb77853bc39973d920da94b70000dc01 | /Admins/migrations/0001_initial.py | bcd34f16091d2c29f5fe1ceda6ea5f1c88c388ed | [] | no_license | OverLoadedBurden/Dynamiet | 68c7e88d900581bdd53f1e51756c14db65359fd2 | 1988bbeeb73c313cf07c750fba5adb7739445012 | refs/heads/master | 2020-11-25T01:20:34.645831 | 2020-03-14T01:17:57 | 2020-03-14T01:17:57 | 228,428,056 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 653 | py | # Generated by Django 2.2.5 on 2020-02-14 21:21
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='User',
fields=[
('name', models.CharField(m... | [
"overloadedburden@gmail.com"
] | overloadedburden@gmail.com |
c9dc89b118798fc71c4cb566d283176f2deeaf07 | 23382d130e2a020ac90d7b88ab045b34f7719565 | /setup.py | e14c95a9495bc2105d2b1bc69d26a302ae7755d6 | [
"MIT"
] | permissive | dunossauro/sfp | f2967f519017e9c9a8f95ff6dccd09293775c72a | 944e78ff453aba692ed5b6a3cf7855093d6e987a | refs/heads/master | 2021-04-06T13:03:18.403904 | 2018-06-22T17:16:44 | 2018-06-22T17:16:44 | 124,821,555 | 4 | 2 | MIT | 2018-07-10T21:32:27 | 2018-03-12T02:16:11 | Python | UTF-8 | Python | false | false | 314 | py | from setuptools import setup
setup(name='sfp',
version='0.0.1',
description='Simple Functional programming',
url='https://github.com/z4r4tu5tr4/sfp',
author='Eduardo Mendes',
author_email='mendesxeduardo@gmail.com',
license='MIT',
packages=['sfp'],
zip_safe=False)
| [
"mendesxeduardo@gmail.com"
] | mendesxeduardo@gmail.com |
5f975472428eedee10faaba92c1b0d561dcc4e86 | a5a99f646e371b45974a6fb6ccc06b0a674818f2 | /PhysicsTools/PatAlgos/python/selectionLayer1/electronCountFilter_cfi.py | 80af141c59547eefb55cd53baaca26468ed67b02 | [
"Apache-2.0"
] | permissive | cms-sw/cmssw | 4ecd2c1105d59c66d385551230542c6615b9ab58 | 19c178740257eb48367778593da55dcad08b7a4f | refs/heads/master | 2023-08-23T21:57:42.491143 | 2023-08-22T20:22:40 | 2023-08-22T20:22:40 | 10,969,551 | 1,006 | 3,696 | Apache-2.0 | 2023-09-14T19:14:28 | 2013-06-26T14:09:07 | C++ | UTF-8 | Python | false | false | 262 | py | import FWCore.ParameterSet.Config as cms
# module to filter on the number of Electrons
countPatElectrons = cms.EDFilter("PATCandViewCountFilter",
minNumber = cms.uint32(0),
maxNumber = cms.uint32(999999),
src = cms.InputTag("cleanPatElectrons")
)
| [
"giulio.eulisse@gmail.com"
] | giulio.eulisse@gmail.com |
901a4aed1e3a9151da4ec4c0e44368812347fc74 | bdde5ee603138399475ef42eeca67701f0d910ae | /mycoplasma_home/views/pagelets/public/HomePagelet.py | cfb042b9323db49d62695f1ed3c8d37cf7719204 | [] | no_license | idoerg/MyDIG | 63c19f980df8246a4a0b1c4e93fdd28bf69b97e9 | 88cc8f24a5d4b248dff1aafb54713e44537c611f | refs/heads/master | 2021-01-10T20:38:46.336870 | 2012-11-30T02:45:08 | 2012-11-30T02:45:08 | 5,939,219 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,095 | py | '''
Pagelet for the Home Page
Author: Andrew Oberlin
Date: July 23, 2012
'''
from renderEngine.PageletBase import PageletBase
from mycoplasma_home.models import Organism, OrganismWithImages, OrganismWithGenome, OrganismWithTags
class HomePagelet(PageletBase):
'''
Renders the center of the home page ... | [
"andyoberlin@gmail.com"
] | andyoberlin@gmail.com |
898f544645356394e471bd139055540ae348b4ee | 3fbd28e72606e5358328bfe4b99eb0349ca6a54f | /.history/a_games_20210607183048.py | 6937ef94493d7d66c872ea111a2a66ef9fd75b41 | [] | no_license | Tarun1001/codeforces | f0a2ef618fbd45e3cdda3fa961e249248ca56fdb | 576b505d4b8b8652a3f116f32d8d7cda4a6644a1 | refs/heads/master | 2023-05-13T04:50:01.780931 | 2021-06-07T21:35:26 | 2021-06-07T21:35:26 | 374,399,423 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 447 | py | n= int(input())
jer=[]
for _ in range(0, n):
h, a = map(int, input().split(""))
jer.append((h, a))
def sol(jer) :
count=0
for i in range(0,len(jer)):
for j in range(0,len(jer)):
if i==j:
continue
hometeamHomejersey= jer[i][0]
awayteam... | [
"tarunsivasai8@gmail.com"
] | tarunsivasai8@gmail.com |
d6b7ff2786b8b58ae1df6bcc85b8c85ca3d12c8c | d0f21d669a1099fe7138d763985d0c392968f93f | /tests/test_visitors/test_ast/test_imports/test_protected_import.py | d27ec451dcc7abe58ea249e088f9f20d2d4a5fc7 | [
"MIT"
] | permissive | jigi-33/wemake-python-styleguide | 3aab4f13023d3a882b19e65a9967f8abe2a72db1 | 1239a4726b91de588b20b268c47485373bf125a1 | refs/heads/master | 2021-01-08T19:24:11.454562 | 2020-02-28T20:09:58 | 2020-02-29T05:39:16 | 242,120,262 | 1 | 0 | MIT | 2020-02-29T05:39:18 | 2020-02-21T11:08:25 | Python | UTF-8 | Python | false | false | 2,032 | py | # -*- coding: utf-8 -*-
import pytest
from wemake_python_styleguide.violations.best_practices import (
ProtectedModuleMemberViolation,
ProtectedModuleViolation,
)
from wemake_python_styleguide.visitors.ast.imports import WrongImportVisitor
import_public = 'import public'
import_protected = 'import _protected... | [
"mail@sobolevn.me"
] | mail@sobolevn.me |
be8508f0365a7e8e553b47eb14de29e6433f5c5c | 14324a581c4f22c7ea8a96cc79725cdb84960e43 | /trees/migrations/0001_initial.py | 3c8b0a061d9d005b156b6ecbbccf9c5d97f9ef14 | [] | no_license | dogger123/django-treeapi | a3f141f87bb515e4af4f820a80daf6bacc40199d | 942da122d6c9909c21321a1aea2849428ba47120 | refs/heads/master | 2020-05-22T13:20:22.798164 | 2019-05-13T06:45:13 | 2019-05-13T06:45:13 | 186,357,054 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,374 | py | # Generated by Django 2.2 on 2019-05-10 11:03
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='DataSet',
... | [
"="
] | = |
a53aa1a02c0c228ee59d066579a76805bac6c7cf | 0ac2dbd8427971ae05a2ba80b625c5c027b6c978 | /hue.py | a3e50a905eb8ff81ede8b96487f90edd6620a9ca | [
"MIT"
] | permissive | kalliope-project/kalliope_neuron_hue | 02b783e92170cc1d23516478df8a5b1770bac759 | 12729702c7c4827f0945c6bf71ef030dee8f4058 | refs/heads/master | 2021-01-11T20:11:33.053097 | 2020-07-29T15:33:46 | 2020-07-29T15:33:46 | 79,062,591 | 2 | 3 | null | null | null | null | UTF-8 | Python | false | false | 6,534 | py | import ipaddress
import logging
from kalliope.core.NeuronModule import NeuronModule, MissingParameterException, InvalidParameterException
from phue import Bridge
logging.basicConfig()
logger = logging.getLogger("kalliope")
class Hue(NeuronModule):
def __init__(self, **kwargs):
super(Hue, self).__init__(*... | [
"nico.marcq@gmail.com"
] | nico.marcq@gmail.com |
0176a59c63441c166cfeb79c09e228a5f8d8e60a | f62fd455e593a7ad203a5c268e23129473d968b6 | /murano-3.2.0/murano/tests/unit/engine/system/test_workflowclient.py | e109fe367da54e038fac1b25d37a1fb6d2067d9d | [
"Apache-2.0"
] | permissive | MinbinGong/OpenStack-Ocata | 5d17bcd47a46d48ff9e71e2055f667836174242f | 8b7650128cfd2fdf5d6c8bc4613ac2e396fb2fb3 | refs/heads/master | 2021-06-23T05:24:37.799927 | 2017-08-14T04:33:05 | 2017-08-14T04:33:05 | 99,709,985 | 0 | 2 | null | 2020-07-22T22:06:22 | 2017-08-08T15:48:44 | Python | UTF-8 | Python | false | false | 6,229 | py | # Copyright (c) 2016 AT&T
# 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 agr... | [
"gongwayne@hotmail.com"
] | gongwayne@hotmail.com |
9afe0a1a5bce3f2082734a16953c0bbd764400f5 | f305f84ea6f721c2391300f0a60e21d2ce14f2a5 | /7_graph/二分图/无权二部图最大匹配问题/lcp4覆盖.py | 61be67685f06f8a62381a377bfa0e43cbe726510 | [] | no_license | 981377660LMT/algorithm-study | f2ada3e6959338ae1bc21934a84f7314a8ecff82 | 7e79e26bb8f641868561b186e34c1127ed63c9e0 | refs/heads/master | 2023-09-01T18:26:16.525579 | 2023-09-01T12:21:58 | 2023-09-01T12:21:58 | 385,861,235 | 225 | 24 | null | null | null | null | UTF-8 | Python | false | false | 764 | py | from typing import List
from 匈牙利算法 import Hungarian
DIR4 = [(0, 1), (1, 0), (0, -1), (-1, 0)]
class Solution:
def domino(self, row: int, col: int, broken: List[List[int]]) -> int:
H = Hungarian()
grid = [[0] * col for _ in range(row)]
for r, c in broken:
grid[r][c] ... | [
"lmt2818088@gmail.com"
] | lmt2818088@gmail.com |
8fe1be9af65e823f2f90637c4f4eac341e0fec56 | 70d39e4ee19154a62e8c82467ef75b601e584738 | /devops/terminate_exact_ec2.py | 631b42526a94ae6b2852b48145767358a038e527 | [
"Apache-2.0"
] | permissive | babywyrm/sysadmin | 6f2724be13ae7e5b9372278856a8c072073beffb | 2a5f3d29c7529bc917d4ff9be03af30ec23948a5 | refs/heads/master | 2023-08-16T03:50:38.717442 | 2023-08-16T03:05:55 | 2023-08-16T03:05:55 | 210,228,940 | 10 | 5 | null | 2023-05-01T23:15:31 | 2019-09-22T23:42:50 | PowerShell | UTF-8 | Python | false | false | 320 | py | #!/usr/bin/python3
##
##
##
########################################3
import sys
import boto3
##
##
#### _input_instance_id_to_kill_it__
##
##
ec2 = boto3.resource('ec2')
for instance_id in sys.argv[1:]:
instance = ec2.Instance(instance_id)
response = instance.terminate()
print(response)
###########
##
##
##
| [
"noreply@github.com"
] | babywyrm.noreply@github.com |
3a37b7b47d59f49963becb153844bc7c178688c7 | 1bd073f585706c31c406bceb81eb400f8ac27c1d | /tools/Polygraphy/polygraphy/tools/convert/convert.py | aa2311a379ccc4b9e4dc8acfdfe187ee41b5a4f9 | [
"BSD-3-Clause",
"MIT",
"ISC",
"Apache-2.0",
"BSD-2-Clause"
] | permissive | neevaco/TensorRT | 7b5e54c6a7cc6d0fc545e47ab7cf6656f23d5e19 | 650a4a6ed29403bec1a55663b48ef41a075d0b3c | refs/heads/neeva | 2023-05-29T19:20:26.431716 | 2022-08-19T23:09:26 | 2022-08-26T19:09:39 | 526,771,012 | 0 | 0 | Apache-2.0 | 2022-08-19T23:09:27 | 2022-08-19T22:49:25 | null | UTF-8 | Python | false | false | 4,377 | py | #
# SPDX-FileCopyrightText: Copyright (c) 1993-2022 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
#
# 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... | [
"rajeevsrao@users.noreply.github.com"
] | rajeevsrao@users.noreply.github.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.