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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
6895432cdb44dcd345003bed6d3af69f1745cbce | 2c7f99ff86d1786d133df13a630d62e7dcc63fab | /google/cloud/dialogflow_v2/services/conversation_profiles/transports/base.py | 5768948c216410b18bbda0988ae8fa09340f5c83 | [
"Apache-2.0"
] | permissive | rlindao/python-dialogflow | 2141b7181506210c6cfffb27bb9599ad21261c28 | 8958e562bb159b00bb1fc0fa97e5ffd35dea058d | refs/heads/master | 2023-04-06T15:09:14.888871 | 2021-04-16T21:34:24 | 2021-04-16T21:34:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,312 | py | # -*- coding: utf-8 -*-
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... | [
"[email protected]"
] | |
0b9347644b1ad62f3f1deb8668c660a135c70885 | e89509b453632747077bc57dbec265a7703d5c7c | /list/listappend.py | a2ddb719341f157c2047747bdda0aa142f51df03 | [] | no_license | Madhav2108/udemy-python-as | a9dcfdbfdc1bb85471aa66de77957e962a7c5486 | 0bc6a501516618fb3c7ab10be6bc16c047aeec3f | refs/heads/master | 2023-03-30T11:25:16.064592 | 2021-03-30T18:10:46 | 2021-03-30T18:10:46 | 286,001,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 572 | py | List = []
print(List)
List.append(1)
List.append(2)
List.append(4)
print(List)
for i in range(1, 4):
List.append(i)
print(List)
List.append((5, 6))
print(List)
List2 = ['For', 'Geeks']
List.append(List2)
print(List)
List.insert(3, 12)
List.insert(0, 'Geeks')
print(List)
List.extend([8... | [
"[email protected]"
] | |
1ac4822dd02e34f946f4183122d8a6b5ec804d02 | ba949e02c0f4a7ea0395a80bdc31ed3e5f5fcd54 | /problems/greedy/Solution678.py | f37f62721d5aa37063dd666a0d011a7ac22e9daa | [
"MIT"
] | permissive | akaliutau/cs-problems-python | 6bc0a74064f6e9687fe58b13763da1fdf2e1f626 | 9b1bd8e3932be62135a38a77f955ded9a766b654 | refs/heads/master | 2023-05-11T22:19:06.711001 | 2021-06-04T11:14:42 | 2021-06-04T11:14:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,937 | py | """ Given a string containing only three types of characters: '(', ')' and '*',
write a function to check whether trightBoundarys string is valid. We define
the validity of a string by these rules:
Any left parenthesis '(' must have a corresponding right parenthesis ')'. Any
right parenthesis ')' must... | [
"[email protected]"
] | |
9ea9323c06957ea63a4699fe72b9431a47cd9117 | e35fd52fe4367320024a26f2ee357755b5d5f4bd | /leetcode/problems/313.super-ugly-number.py | 704a9e40a9a97991c2693e51d1623cb6c3511bc7 | [] | no_license | liseyko/CtCI | a451967b0a0ce108c491d30b81e88d20ad84d2cd | c27f19fac14b4acef8c631ad5569e1a5c29e9e1f | refs/heads/master | 2020-03-21T14:28:47.621481 | 2019-11-12T22:59:07 | 2019-11-12T22:59:07 | 138,658,372 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,017 | py | #
# @lc app=leetcode id=313 lang=python3
#
# [313] Super Ugly Number
#
# https://leetcode.com/problems/super-ugly-number/description/
#
# algorithms
# Medium (43.02%)
# Total Accepted: 67.2K
# Total Submissions: 156.3K
# Testcase Example: '12\n[2,7,13,19]'
#
# Write a program to find the n^th super ugly number.
#
... | [
"[email protected]"
] | |
81f2637a8ed5c8510fcc5945d5235d911e45462f | 7c68212791621363da7f007b1ef449597937d20c | /day_1/operator_shorthand.py | 7070ebe9f8fe49ba7490762189795e3db53c65f3 | [
"MIT"
] | permissive | anishLearnsToCode/python-workshop-8 | c1ad5c2f06b435b612acc28544180b47c86fb24f | 0f64bfa7cf175283181b6e7f51a5e3b80d4b6b60 | refs/heads/main | 2023-02-07T11:55:48.372944 | 2021-01-03T08:41:33 | 2021-01-03T08:41:33 | 325,730,441 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 184 | py | # variable [operator]= var_2 / value
# i = i + 1 --> i += 1
# result = result + i --> result += i
# var /= 5 --> var = var / 5
# i *= 3--> i = i * 3
# prod %= 10 --> prod = prod % 10
| [
"[email protected]"
] | |
33fbb86f0c1d4774178156a30d673684559ba579 | ced56909016fb7c2175c3911fc8481bd5fdf0800 | /pytext/metric_reporters/disjoint_multitask_metric_reporter.py | 83d419bc152137138df46faa0ff3715e14e05512 | [
"BSD-3-Clause"
] | permissive | coderbyr/pytext | e258a3aae625e6a2fd386b60f25ac44a7b4149fe | 72c1ad835a30bef425494b02a6210f2e3232b1a4 | refs/heads/master | 2022-11-20T09:11:44.991716 | 2020-07-20T22:05:42 | 2020-07-20T22:07:15 | 281,286,078 | 1 | 0 | NOASSERTION | 2020-07-21T03:32:42 | 2020-07-21T03:32:41 | null | UTF-8 | Python | false | false | 4,013 | py | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved
from typing import Dict, Optional
from pytext.common.constants import BatchContext
from .metric_reporter import MetricReporter
AVRG_LOSS = "_avrg_loss"
class DisjointMultitaskMetricReporter(MetricReporter):
lower_is_... | [
"[email protected]"
] | |
a566a7e2e4d20ec72b89062af4c532ed1123f14f | f9d564f1aa83eca45872dab7fbaa26dd48210d08 | /huaweicloud-sdk-hss/huaweicloudsdkhss/v5/model/list_port_statistics_response.py | 13b10f29de59c0c0d34e2530004b515adf013fcb | [
"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,349 | py | # coding: utf-8
import six
from huaweicloudsdkcore.sdk_response import SdkResponse
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
class ListPortStatisticsResponse(SdkResponse):
"""
Attributes:
openapi_types (dict): The key is attribute name
and ... | [
"[email protected]"
] | |
3eab1b761be0160d622ff707caaff063326f4b71 | 6c5ce1e621e0bd140d127527bf13be2093f4a016 | /ex021/venv/Scripts/easy_install-3.7-script.py | e7deca8d0b6f3b28588ce8d8072d461ed000115f | [
"MIT"
] | permissive | ArthurAlesi/Python-Exercicios-CursoEmVideo | 124e2ee82c3476a5a49baafed657788591a232c1 | ed0f0086ddbc0092df9d16ec2d8fdbabcb480cdd | refs/heads/master | 2022-12-31T13:21:30.001538 | 2020-09-24T02:09:23 | 2020-09-24T02:09:23 | 268,917,509 | 0 | 0 | null | null | null | null | ISO-8859-2 | Python | false | false | 508 | py | #!C:\Users\User\Documents\github-MeusRepositórios\Python-Exercicios-CursoEmVideo\ex021\venv\Scripts\python.exe -x
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==40.8.0','console_scripts','easy_install-3.7'
__requires__ = 'setuptools==40.8.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__... | [
"[email protected]"
] | |
a4e86864532a808b15b5e79338f65769c9f59ef7 | a2e638cd0c124254e67963bda62c21351881ee75 | /Extensions/Default/FPythonCode/FOperationsGenerators.py | d6dd072a59bc78f8da23b710047f349b73f6dd9e | [] | 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 | 1,719 | py | """ Compiled: 2020-09-18 10:38:53 """
#__src_file__ = "extensions/operations/etc/FOperationsGenerators.py"
#-------------------------------------------------------------------------
# Generator for generating pairs of related objects.
#-------------------------------------------------------------------------
class Pa... | [
"[email protected]"
] | |
d2ec78700adbdabb41836c5003016d18c394db8a | 4e5b20fdcca20f458322f0a8cd11bbdacb6fb3e5 | /test/promotesale/QueryFullReductionTest.py | 872c46b84243b6ed269a15938975388fe619df59 | [] | no_license | shijingyu/sunningAPI | 241f33b0660dc84635ce39688fed499f5c57a5da | 4a3b2ef7f9bdc4707d1eaff185bc7eb636fe90d5 | refs/heads/master | 2020-04-24T22:15:11.584028 | 2019-02-24T06:41:20 | 2019-02-24T06:41:20 | 172,305,179 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 475 | py | #!usr/bin/python
# -*- coding: utf-8 -*-
'''
Created on 2014-10-17
@author: suning
'''
import sys
import os
basepath = os.path.dirname(os.path.abspath(sys.argv[0]))+"/../../"
sys.path.append(basepath)
import suning.api as api
a=api.QueryFullReductionRequest()
a.pageNo='1'
a.pageSize='2'
a.startTime='2014-09-09 12:... | [
"[email protected]"
] | |
ee987dc97b5aa0a7529752d0e719651d989c6283 | 741ee09b8b73187fab06ecc1f07f46a6ba77e85c | /AutonomousSourceCode/data/raw/sort/d0d3b906-00e8-4b06-aa81-423fdf44d307__mergesort.py | 4121ebe48ffcab855687335df0292d65e95b9edb | [] | no_license | erickmiller/AutomatousSourceCode | fbe8c8fbf215430a87a8e80d0479eb9c8807accb | 44ee2fb9ac970acf7389e5da35b930d076f2c530 | refs/heads/master | 2021-05-24T01:12:53.154621 | 2020-11-20T23:50:11 | 2020-11-20T23:50:11 | 60,889,742 | 6 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,800 | py | # nlogn, divide and conquer
# recursive
def merge_sort(int_array):
# base case
if len(int_array) == 0:
return None
elif len(int_array) == 1:
return int_array
# recursive step
else:
l = len(int_array)/2
first_half = int_array[:l]
second_half = int_array[l:]
... | [
"[email protected]"
] | |
d8e84cf721c759a8fde3138782a033b35746d27f | c09a4b4f02849c03ba536edda2bf920b655be6bc | /wyl/mvis2uvd.py | 915db718f98decc67ab738874bf2d62bda69f28b | [] | no_license | jpober/brownscripts | 33bcc70a31694dfb06f1314adb1402316540108c | c25789ec765b018eaad59d99a0a4264c75655265 | refs/heads/master | 2021-01-23T22:01:19.004636 | 2020-11-12T18:39:14 | 2020-11-12T18:39:14 | 57,912,669 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 4,616 | py | import sys,optparse,aipy,glob
import numpy as np, mp2cal
import pyuvdata.uvdata as uvd
o = optparse.OptionParser()
o.set_usage('mvis2uvd.py [options] obsid') #only takes 1 obsid
o.set_description(__doc__)
o.add_option('-d',dest='datpath',default='/users/wl42/data/wl42/FHD_out/fhd_MWA_PhaseII_EoR0/',type='string', hel... | [
"[email protected]"
] | |
1713babd927c9dfa4224e1ad3277567e37cb7907 | 786027545626c24486753351d6e19093b261cd7d | /ghidra9.2.1_pyi/ghidra/app/util/bin/format/pdb2/pdbreader/symbol/AbstractUnknownMsSymbol.pyi | 09fd912dc8f16775243884f29d4f2ce850338007 | [
"MIT"
] | permissive | kohnakagawa/ghidra_scripts | 51cede1874ef2b1fed901b802316449b4bf25661 | 5afed1234a7266c0624ec445133280993077c376 | refs/heads/main | 2023-03-25T08:25:16.842142 | 2021-03-18T13:31:40 | 2021-03-18T13:31:40 | 338,577,905 | 14 | 1 | null | null | null | null | UTF-8 | Python | false | false | 702 | pyi | import ghidra.app.util.bin.format.pdb2.pdbreader.symbol
import java.lang
class AbstractUnknownMsSymbol(ghidra.app.util.bin.format.pdb2.pdbreader.symbol.AbstractMsSymbol):
def emit(self, __a0: java.lang.StringBuilder) -> None: ...
def equals(self, __a0: object) -> bool: ...
def getClass(self) -> ... | [
"[email protected]"
] | |
cfa3740ba18f9384af22770130b7148306057883 | a96f603b34525f97c4b2fdca9f329aa38ffcc18c | /models/result_time_table_model.py | a705bdd8dd445e922470a4421768a1975e585705 | [] | no_license | mparlaktuna/capraz_sevkiyat2.0 | d1fbdaaeeec4c4113448aa18b0e58457ca2ad0e5 | 3d350826084230e2c71b57e0b587e193d72b2985 | refs/heads/master | 2020-04-06T07:11:14.641477 | 2016-08-26T14:43:25 | 2016-08-26T14:43:25 | 59,899,015 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,724 | py | from PyQt5.QtWidgets import *
from PyQt5.QtCore import *
from PyQt5.QtGui import *
class ResultTimeTableModel(QAbstractTableModel):
def __init__(self, results, number_of_trucks, truck_name):
super(ResultTimeTableModel, self).__init__()
self.times = results.times
try:
self.v_hea... | [
"[email protected]"
] | |
dbdda969b4f93ff83be9126e3528a31fdc8bacf4 | cbc3c3e602996fe5561b06545593f1a9a2401f42 | /heranca/EmpregadoHorista.py | 607bc67e665402c8d950d86dc556ddda133ded26 | [] | no_license | ricdtaveira/poo-python | fc06040acd032975e355edf62a8c2983f1d37972 | 3ecba2ccfcc84f79cfc1ef5247c017e58f36c8d4 | refs/heads/master | 2021-10-24T17:57:57.051213 | 2019-03-27T00:10:47 | 2019-03-27T00:10:47 | 105,895,238 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 484 | py | '''
Classe Empregado Horista
'''
from Empregado import Empregado
class EmpregadoHorista(Empregado):
'''
Empregado Horista
'''
def __init__(self, primeiro_nome, ultimo_nome, salario):
super().__init__(primeiro_nome, ultimo_nome, salario)
self.__horas = 0
def calcular_pagamento(self):
'''
Calcula o Pagam... | [
"[email protected]"
] | |
4ebdf94e0d8f96f9ac8d65ae46ad57e3e7daeee4 | 73332abdcadb62f4f262d0c30856c3c257a9ee7d | /tests/environments/__init__.py | d8f2ee2ede569a4f0b62f68bcf1956da8c7c993e | [
"BSD-2-Clause"
] | permissive | code-google-com/oyprojectmanager | 454435604cc150c1b54ec2c54294e0fa05490f82 | 3085ecbe1cc04a73ec69b4848b789009546feae7 | refs/heads/master | 2021-01-19T02:40:56.342086 | 2015-01-26T16:40:00 | 2015-01-26T16:40:00 | 32,266,400 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 206 | py | # -*- coding: utf-8 -*-
# Copyright (c) 2009-2012, Erkan Ozgur Yilmaz
#
# This module is part of oyProjectManager and is released under the BSD 2
# License: http://www.opensource.org/licenses/BSD-2-Clause
| [
"[email protected]"
] | |
63530f10dc7fdc29a90fb8237fa885a8b7cc9f3b | 590facf811b9ad0e55e5eafbe6a5ed796d76b521 | /apps/meetup/migrations/0003_auto_20190428_1649.py | 607f35d32482cdf39d2c2855c8736906f8e3ef7c | [] | no_license | wangonya/questioner_django | 6193fa779121135b5c903fef599a5bc873107b52 | b598d4337b3acc39adf3ef972e50f2d750376ac0 | refs/heads/develop | 2020-05-16T11:59:16.778797 | 2019-05-01T16:43:29 | 2019-05-01T16:43:29 | 183,032,935 | 2 | 1 | null | 2019-05-01T16:43:30 | 2019-04-23T14:29:33 | Python | UTF-8 | Python | false | false | 1,083 | py | # Generated by Django 2.2 on 2019-04-28 16:49
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('meetup', '0002_auto_201904... | [
"[email protected]"
] | |
50be68b9ed14bc6e7cfa7d618467ffe4b3831cf6 | 1fc35e54ee4723cfa3d13de713895eac30616847 | /baekjun/stage solve/14.sort/2750.py | 5c0dafb7b9d7c5d8d8c61146fee82535d5d55b6e | [] | no_license | yhs3434/Algorithms | 02f55a5dc21085c0a17d9eaec5e3ba0cbd6d651d | 24d234a301077aac1bc4efbb269b41a963cedccf | refs/heads/master | 2021-07-12T19:21:00.446399 | 2021-01-20T01:44:27 | 2021-01-20T01:44:27 | 226,431,877 | 6 | 0 | null | null | null | null | UTF-8 | Python | false | false | 732 | py | # 수 정렬하기
# https://www.acmicpc.net/problem/2750
import sys
sys.setrecursionlimit(1000000)
def solution(nums):
quickSort(nums, 0, len(nums)-1)
return nums
def quickSort(arr, left, right):
if left>=right:
return
pivot = arr[right]
i = left
j = left
while j<right:
if arr[j] ... | [
"[email protected]"
] | |
ac33194bffd378e21c7449116b073668876615e6 | d99ac626d62c663704444a9cce7e7fc793a9e75e | /windows_asm_dump/dump_asm.py | 919d0f476a5fa34c1e8c990412b5ca361122bb57 | [] | no_license | Experiment5X/CryptoFunctionDetection | 3ab32d5573a249d24db1faf772721bc80b8d905d | dac700193e7e84963943593e36844b173211a8a1 | refs/heads/master | 2023-04-19T09:12:35.828268 | 2021-05-13T22:39:27 | 2021-05-13T22:39:27 | 355,299,557 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,802 | py | import os
import re
import subprocess
from pathlib import Path
from collections import OrderedDict
class BinaryCollection:
def __init__(self, in_directory, out_directory):
self.in_directory = in_directory
self.out_directory = out_directory
def process_all(self, limit=500):
binarie... | [
"[email protected]"
] | |
f9f574a4d00a771aa40f9ddee1222b2e1cf2f25b | f693c9c487d31a677f009afcdf922b4e7f7d1af0 | /biomixer-venv/lib/python3.9/site-packages/pylint/checkers/refactoring/recommendation_checker.py | b1175f03e03853db4ae7d542287abf40d715df6b | [
"MIT"
] | permissive | Shellowb/BioMixer | 9048b6c07fa30b83c87402284f0cebd11a58e772 | 1939261589fe8d6584a942a99f0308e898a28c1c | refs/heads/master | 2022-10-05T08:16:11.236866 | 2021-06-29T17:20:45 | 2021-06-29T17:20:45 | 164,722,008 | 1 | 3 | MIT | 2022-09-30T20:23:34 | 2019-01-08T19:52:12 | Python | UTF-8 | Python | false | false | 4,749 | py | # Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html
# For details: https://github.com/PyCQA/pylint/blob/master/LICENSE
import astroid
from pylint import checkers, interfaces
from pylint.checkers import utils
class RecommendationChecker(checkers.BaseChecker):
__implements__ = (inter... | [
"[email protected]"
] | |
47633761925b05cb7b78e248675293d5b8f9b673 | c74c907a32da37d333096e08d2beebea7bea65e7 | /kaikeba/cv/week6/Week 6 coding/model/network.py | 0d65271f2868c98a4052e0036c292fdbae18f056 | [] | no_license | wangqiang79/learn | 6b37cc41140cc2200d928f3717cfc72357d10d54 | e4b949a236fa52de0e199c69941bcbedd2c26897 | refs/heads/master | 2022-12-25T06:24:39.163061 | 2020-07-13T15:43:13 | 2020-07-13T15:43:13 | 231,796,188 | 2 | 2 | null | 2022-12-08T07:03:05 | 2020-01-04T16:45:33 | Jupyter Notebook | UTF-8 | Python | false | false | 1,057 | py | import torch.nn as nn
import torchvision.models as models
from model.module import Block, Bottleneck, DownBottleneck, Layer
#pytorch Torchvision
class ResNet101v2(nn.Module):
'''
ResNet101 model
'''
def __init__(self):
super(ResNet101v2, self).__init__()
#下采样2倍
self.conv1 = Bl... | [
"[email protected]"
] | |
67b5e8386db8e4569b1d1edacc6de547975d3b74 | af626ade966544b91fbfe0ea81fc887f1b8a2821 | /qa/rpc-tests/python-bitcoinrtxrpc/setup.py | fdfe9d34717f62f28824291c40f42b658d4ca311 | [
"MIT"
] | permissive | kunalbarchha/bitcoinrtx-old | 91f2b36a50e009151c61d36e77a563d0c17ab632 | 42c61d652288f183c4607462e2921bb33ba9ec1f | refs/heads/master | 2023-03-13T22:46:36.993580 | 2021-03-04T13:01:00 | 2021-03-04T13:01:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 630 | py | #!/usr/bin/env python2
from distutils.core import setup
setup(name='python-bitcoinrtxrpc',
version='0.1',
description='Enhanced version of python-jsonrpc for use with Bitcoinrtx',
long_description=open('README').read(),
author='Jeff Garzik',
author_email='<[email protected]>',
ma... | [
"[email protected]"
] | |
a54826ebaa280ca23aad774cb3f6aec445632e62 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2561/60639/261665.py | 65b5061f633e844981dc12f1881df53161da5a40 | [] | 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 | 446 | py | def solution(n,x,arr1,arr2):
sum=0
for i in range(n*n):
if x-arr1[i] in arr2:
sum+=1
else:
continue
print(sum)
t=int(input())
for i in range(t):
inp=input().split()
n=int(inp[0])
x=int(inp[1])
arr1=[]
arr2=[]
for i in range(n):
arr1+=l... | [
"[email protected]"
] | |
6c8789550af13191f5d64b9eb7d8bbbced53484a | d2f6140a45b234711c0b6bce9ab98c9468d6041e | /homework/2014-20/similar_hw_3/HenryRueda_primos.py | d98f69dad28fbfccad7005e984d6a50995f81e42 | [] | no_license | ComputoCienciasUniandes/MetodosComputacionalesDatos | 14b6b78655ed23985ecff28550934dec96f6373b | ecc7c21ca13a3b7bbdc7a8ef5715e8c9bf6e48cf | refs/heads/master | 2020-04-10T14:17:03.465444 | 2017-06-09T15:02:57 | 2017-06-09T15:02:57 | 12,526,572 | 0 | 8 | null | null | null | null | UTF-8 | Python | false | false | 1,369 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import sys,math
if len(sys.argv)<2:
print('\nNo hay suficiente información\n'.format(sys.argv[0]))
sys.exit(0)
Maximo=1000000
n=int(sys.argv[1])
if n<0:
print('\nEl número ingresado es negativo\n'.format(Maximo))
if n == 0:
print ('\n{} no es un... | [
"[email protected]"
] | |
d6246ef699c47ce3d1bbcf801835f3fac4236d8f | 3395a234e7c80d011607e79c49cd48bf516f256b | /dependencies/jedi/third_party/typeshed/third_party/2and3/werkzeug/test.pyi | 764b76d8e78bf0f973af8fbcc504bf8dfd79edde | [
"MIT",
"Apache-2.0"
] | permissive | srusskih/SublimeJEDI | 67329b72e184bc9584843968dcc534a002c797a1 | 95c185d778425c04536d53517b0e3fe6dedf8e59 | refs/heads/master | 2023-08-24T11:30:37.801834 | 2022-08-30T09:04:17 | 2022-08-30T09:04:17 | 6,241,108 | 669 | 125 | MIT | 2022-08-30T09:04:18 | 2012-10-16T08:23:57 | Python | UTF-8 | Python | false | false | 5,957 | pyi | import sys
from wsgiref.types import WSGIEnvironment
from typing import Any, Generic, Optional, Text, Tuple, Type, TypeVar, overload
from typing_extensions import Literal
if sys.version_info < (3,):
from urllib2 import Request as U2Request
from cookielib import CookieJar
else:
from urllib.request import Re... | [
"[email protected]"
] | |
5478f0ed6e84d36a081197e9e17ed5b0e151144f | 7fa08c93ff0caa4c86d4fa1727643331e081c0d0 | /brigid_api_client/models/__init__.py | 116e0784876b77021f16b674f520d34edb77dc10 | [
"LicenseRef-scancode-warranty-disclaimer",
"MIT"
] | permissive | caltechads/brigid-api-client | 760768c05280a4fb2f485e27c05f6ae24fbb7c6f | 3e885ac9e7b3c00b8a9e0cc1fb7b53b468d9e10a | refs/heads/master | 2023-03-23T03:11:02.446720 | 2021-03-13T00:47:03 | 2021-03-13T00:47:03 | 338,424,261 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,175 | py | """ Contains all the data models used in inputs/outputs """
from .action_response import ActionResponse
from .action_response_errors import ActionResponseErrors
from .application import Application
from .applications_list_expand import ApplicationsListExpand
from .applications_retrieve_expand import ApplicationsRetrie... | [
"[email protected]"
] | |
ec5779ee0e273f9ab8b597108e3e042acb1ccd27 | 591900bf248906d0c80fbb02174b0c3be6de376f | /torch_scatter/__init__.py | e43f88eefbc902eb16d43b425fbd5f348a6e202f | [
"MIT"
] | permissive | xychen9459/pytorch_scatter | 0e02a2028faa98acc30fa3b7b082ea52cab5f70c | b9570ccd71622f9a7b2d311a1607bb3914801743 | refs/heads/master | 2020-04-17T00:09:30.541736 | 2018-12-27T11:37:55 | 2018-12-27T11:37:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 444 | py | from .add import scatter_add
from .sub import scatter_sub
from .mul import scatter_mul
from .div import scatter_div
from .mean import scatter_mean
from .std import scatter_std
from .max import scatter_max
from .min import scatter_min
__version__ = '1.1.0'
__all__ = [
'scatter_add',
'scatter_sub',
'scatter... | [
"[email protected]"
] | |
a771d28bdbf0a941f858c851bbe836950980bc83 | 2fd0c65aa0f72133f773dac5d9a5c48fe9e26fac | /Python/Core/Lib/idlelib/Bindings.py | 896d83102673640507f98caa05d20c390622944e | [] | no_license | FingerLeakers/DanderSpritz_docs | f5d2430e0b86b1b2f0684f02ddd4fa973a5a7364 | d96b6a71c039b329f9f81544f645857c75360e7f | refs/heads/master | 2021-01-25T13:05:51.732149 | 2018-03-08T01:22:49 | 2018-03-08T01:22:49 | 123,527,268 | 2 | 0 | null | 2018-03-02T03:48:31 | 2018-03-02T03:48:30 | null | UTF-8 | Python | false | false | 3,003 | py | # uncompyle6 version 2.9.10
# Python bytecode 2.7 (62211)
# Decompiled from: Python 2.7.10 (default, Feb 6 2017, 23:53:20)
# [GCC 4.2.1 Compatible Apple LLVM 8.0.0 (clang-800.0.34)]
# Embedded file name: Bindings.py
"""Define the menu contents, hotkeys, and event bindings.
There is additional configuration informati... | [
"[email protected]"
] | |
3992e4cfa297274e2d85355c42f979d6de7326c2 | f52997ac7e1b41f34018c3a0028ced8638072b2b | /src/peoplefinder/migrations/0090_data_person_new_country.py | 1745636c4926fcb0b87247bd92c8f80294e57bf4 | [
"MIT"
] | permissive | uktrade/digital-workspace-v2 | 49fae1fca819b625c6f6949fb5ce51b89fbcab96 | 7e328d0d55c9aa73be61f476823a743d96e792d0 | refs/heads/main | 2023-09-03T12:03:47.016608 | 2023-09-01T12:07:55 | 2023-09-01T12:07:55 | 232,302,840 | 6 | 0 | MIT | 2023-09-13T15:50:24 | 2020-01-07T10:41:18 | Python | UTF-8 | Python | false | false | 820 | py | # Generated by Django 3.2.13 on 2022-05-23 13:15
from django.db import migrations
def insert_person_new_country(apps, schema_editor):
Person = apps.get_model("peoplefinder", "Person")
Country = apps.get_model("countries", "Country")
all_people = Person.objects.select_related("country").all()
country... | [
"[email protected]"
] | |
03960f0f3fa5ef588fe7de7fb3dff054e493b677 | 90e1f9d99ab05ce34380f7b63ec3c6a2f02f3d62 | /src/team503/src/traffic_sign_detect/CNN_3channels_4conv.py | 18f641b42ae797f3a77c79becae44d8dd3b29087 | [] | no_license | sihcpro/The-Number1c-Rac1ng | eb038099c8deb6fbb6e88cde60c7a7f25474e5da | 856434acec52f52a8784199180692abbdb4a49e8 | refs/heads/master | 2020-04-12T10:07:24.182205 | 2019-01-15T22:21:43 | 2019-01-15T22:21:43 | 162,419,934 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,463 | py | import pickle
import cv2
from sklearn.utils import shuffle
import tensorflow as tf
TRAIN_DATA_DIR = "data/raw/training/augmented/"
TEST_DATA_DIR = "data/raw/testing"
# TEST_DATA_DIR = "data/raw/testing/00014"
CNN_MODEL_DIR = "model/CNN/3cnn_4conv.ckpt"
PICKLE_IMGS_DIR = "data/pickle/train_imgs_56.pkl"
PICKLE_LABELS_DI... | [
"[email protected]"
] | |
89fbdba1b70cdb22da26e68b9978fd3abcd9e436 | 6e3e1834eaad3a0c97bf645238e59a0599e047b4 | /blog/feeds.py | 720465e3999af4b68079e03f4bb4db306ed758e4 | [
"JSON"
] | permissive | davogler/davsite | 2dc42bfebb476d94f92520e8829999859deae80b | edd8ceed560690fa2c3eefde236416ffba559a2e | refs/heads/master | 2021-01-19T06:31:20.655909 | 2014-01-03T19:04:13 | 2014-01-03T19:04:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,119 | py | from django.core.exceptions import ObjectDoesNotExist
from django.utils.feedgenerator import Atom1Feed
from django.contrib.sites.models import Site
from django.contrib.syndication.views import Feed
from blog.models import Category, Entry
current_site = Site.objects.get_current()
class LatestEntriesFeed(Feed):
aut... | [
"[email protected]"
] | |
6d935daa518bfb71dc1ec9c4b2da0127e0dcea10 | 2d5d13c4bdc64202a520f32e7d4a44bb75e2004f | /week-02/d04/substr.py | ebcf9c90389536fc31a978afb81cdf52ff7d22e8 | [] | no_license | green-fox-academy/andrasnyarai | 43b32d5cc4ad3792ef8d621328f9593fc9623e0b | 19759a146ba2f63f1c3e4e51160e6111ca0ee9c3 | refs/heads/master | 2021-09-07T16:19:34.636119 | 2018-02-26T00:38:00 | 2018-02-26T00:38:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 391 | py | # Create a function that takes two strings as a parameter
# Returns the starting index where the second one is starting in the first one
# Returns -1 if the second string is not in the first one
input = "this is what I'm searching in"
input_word = "searching"
def searching(sentence, word):
s_index = sentence.fin... | [
"[email protected]"
] | |
27e4ddb0ceff016becbe4500d30ff6f059b91134 | 9fb13659c6c73996581fb252ef33ef589392770b | /test_utilities/src/d1_test/mock_api/tests/test_create.py | ad6d8382c9c6dd166ce7ff5c8bbaf0ca676a6362 | [
"Apache-2.0"
] | permissive | xlia/d1_python | ea9585c462cb1e4f2d50ff1c9ce17a33e7649265 | c4745e70a00b14fc1d8c66c6995a2d150ef69956 | refs/heads/master | 2021-09-07T08:48:02.123106 | 2018-02-20T14:59:33 | 2018-02-20T14:59:33 | 113,352,728 | 0 | 0 | null | 2018-02-20T14:39:00 | 2017-12-06T18:28:20 | Python | UTF-8 | Python | false | false | 2,064 | py | # -*- coding: utf-8 -*-
# This work was created by participants in the DataONE project, and is
# jointly copyrighted by participating institutions in DataONE. For
# more information on DataONE, see our web site at http://dataone.org.
#
# Copyright 2009-2016 DataONE
#
# Licensed under the Apache License, Version 2.0 ... | [
"[email protected]"
] | |
45a1455cad84d3b82f52be1726c8da09b1788c0b | 1b8a99a4ff80da51dc81dd8354bf9bf1cbd25a8b | /2022/special_array_with_x_elements_greater_than_or_equal_x.py | 1eed93272f0a62c0218b8b94b721fe028f723576 | [] | no_license | eronekogin/leetcode | ea639eebe0cd70af9eb4cba59bc68f636d7b3e0c | edb870f83f0c4568cce0cacec04ee70cf6b545bf | refs/heads/master | 2023-08-16T10:35:57.164176 | 2023-08-14T11:25:33 | 2023-08-14T11:25:33 | 163,679,450 | 0 | 0 | null | 2021-09-09T12:04:44 | 2018-12-31T15:33:06 | Python | UTF-8 | Python | false | false | 624 | py | """
https://leetcode.com/problems/special-array-with-x-elements-greater-than-or-equal-x/
"""
class Solution:
def specialArray(self, nums: list[int]) -> int:
sortedNums = sorted(nums, reverse=True)
N = len(nums)
for i in range(N):
x = i + 1
if sortedNums[i] >= x: # ... | [
"[email protected]"
] | |
55d553eca6268f2d5ec4ae4a218148c431371d37 | 68ac39d3f59988f3a5e581041a76d8d6c2f00d5d | /happy/HappyNodeTcpReset.py | 0ff3935eb6ed51ce7a5d6958029ecaa0617f4a7c | [
"Apache-2.0"
] | permissive | emargolis/happy | 62f274ff21e8be66922e239acaf7bbb6f53cea27 | 40d6e216d1a671c14b72e7e59f23b98cbda5d954 | refs/heads/master | 2021-01-16T15:16:25.950683 | 2020-02-26T20:04:06 | 2020-02-26T20:07:05 | 243,164,644 | 0 | 0 | Apache-2.0 | 2020-02-26T04:02:20 | 2020-02-26T04:02:19 | null | UTF-8 | Python | false | false | 4,586 | py | #!/usr/bin/env python
#
# Copyright (c) 2016-2017 Nest Labs, 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/licen... | [
"[email protected]"
] | |
4f410a564f81eef398f188eb979ce9c032a2ffb0 | a2c90d183ac66f39401cd8ece5207c492c811158 | /Solving_Problem/daily_222/1205/4991.py | 93e9003c98ad92771f5ba370d3f2e866995051df | [] | no_license | kwoneyng/TIL | 0498cfc4dbebbb1f2c193cb7c9459aab7ebad02a | c6fbaa609b2e805f298b17b1f9504fd12cb63e8a | refs/heads/master | 2020-06-17T11:53:38.685202 | 2020-03-18T01:29:36 | 2020-03-18T01:29:36 | 195,916,103 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,848 | py | from collections import deque
from heapq import heappop, heappush
near = [[-1,0], [0,1], [1,0], [0,-1]]
def val_cha(st,ed):
temp = [i[:] for i in bd]
sx,sy = ht[st]
ex,ey = ht[ed]
serve = deque()
serve.append([sx,sy])
cnt = 0
while serve:
cnt += 1
for i in range(len(serve))... | [
"[email protected]"
] | |
7c65675d6822a7edaf6bb50bacade930252936a7 | 6e3b8a04a074c30cf4fc43abe7a208f772df795b | /Data Types and Variables - Exercise/Task1.py | c017814f490a499fbf7b164e9cedce6713f5cc9e | [] | no_license | majurski/Softuni_Fundamentals | dc0808fdaab942896eebfb208fb6b291df797752 | bf53a9efdcb45eb911624ab86d762a6281391fb8 | refs/heads/master | 2022-11-29T06:06:06.287984 | 2020-08-10T19:36:18 | 2020-08-10T19:36:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 136 | py | a = int(input())
b = int(input())
c = int(input())
d = int(input())
sum = a + b
division = int(sum / c)
ends = division * d
print(ends) | [
"[email protected]"
] | |
e67f7e37e6cce0a557a8d702c6bab8d31037acd8 | 5b764b91be0016ee703fca41927b1438487e797b | /pygamerogue/tile.py | eda25d37c3805ae806fde03cb4b3db35b0634853 | [
"BSD-3-Clause"
] | permissive | mikolasan/pyroguelike | b33b7a959144b9b115ae4876da0d620b33a28eb3 | d51b01a566b5edb39792b59d683b4bf827399ba4 | refs/heads/master | 2021-07-23T23:06:28.822059 | 2021-01-11T16:57:58 | 2021-01-11T16:57:58 | 179,420,626 | 0 | 1 | BSD-3-Clause | 2021-07-07T15:32:36 | 2019-04-04T04:20:26 | Python | UTF-8 | Python | false | false | 3,755 | py | import pygame
rogue_size = (48, 48)
def map_to_pixel(x, y):
return x * rogue_size[0], y * rogue_size[1]
class Tile:
def __init__(self, size, map_pos, pos, background_color, border_color, symbol, padding, text_color):
self.size = size
self.pos = {}
if map_pos is not None:
... | [
"[email protected]"
] | |
fe98cd8e2fe048a0813b442454d71bc1d015a7fc | acf7457d3a799cb9bff12686d2d616688bcd4b5b | /packages/python/plotly/plotly/validators/heatmap/legendgrouptitle/font/_color.py | 992adc73b123157b72fc2cd128fd797dbab38c2d | [
"MIT"
] | permissive | plotly/plotly.py | f4f61639f08160f16195efc95b5901dc5a937346 | 975a704074f01c078e0fdfa32bdf17130bf89e69 | refs/heads/master | 2023-09-06T06:15:08.340035 | 2023-08-24T12:28:14 | 2023-08-24T12:28:14 | 14,579,099 | 14,751 | 2,989 | MIT | 2023-09-08T19:55:32 | 2013-11-21T05:53:08 | Python | UTF-8 | Python | false | false | 427 | py | import _plotly_utils.basevalidators
class ColorValidator(_plotly_utils.basevalidators.ColorValidator):
def __init__(
self, plotly_name="color", parent_name="heatmap.legendgrouptitle.font", **kwargs
):
super(ColorValidator, self).__init__(
plotly_name=plotly_name,
parent... | [
"[email protected]"
] | |
b104bc898e027c3443ab38096375afb2acb94686 | 9da8754002fa402ad8e6f25659978bd269bbcec8 | /src/25B/cdf_25B.py | 1a7bf3d9cd25f7a4eea1b9be350dfa6db25c93c0 | [
"MIT"
] | permissive | kopok2/CodeforcesSolutionsPython | a00f706dbf368ba0846c8ae86d4145b5dd3e1613 | 35bec0dbcff47765b123b5fe60476014376153df | refs/heads/master | 2023-02-02T03:08:22.097651 | 2020-12-17T22:00:50 | 2020-12-17T22:00:50 | 196,035,812 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 785 | py | class CodeforcesTask25BSolution:
def __init__(self):
self.result = ''
self.n = 0
self.number = ''
def read_input(self):
self.n = int(input())
self.number = input()
def process_task(self):
result = []
if self.n % 2:
result.append(self.numb... | [
"[email protected]"
] | |
8074f01904bff39c1ebfd7683a6d575784de2172 | e0fc7493f4339145792f54bcd7124acea500ca45 | /cpc/utils/ErrorHandler.py | a4971a3eda2ee541bbc19b681e53610fa2d843b3 | [
"BSD-3-Clause"
] | permissive | U-Ar/Cpresto | d52d99e8d44ed01c87c8911614d744cae695d6aa | f723458fb237c9e3e8bc8a6afdf7c81858a65363 | refs/heads/main | 2023-05-14T15:28:38.449783 | 2021-06-06T15:07:14 | 2021-06-06T15:07:14 | 364,445,894 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 937 | py | import sys
class ErrorHandler:
def __init__(self,progid,stream=None):
if stream == None:
self.stream = sys.stderr
else:
self.stream = stream
self.program_id = progid
self.n_error = 0
self.n_warning = 0
def error(self,msg,loc=None):
if... | [
"[email protected]"
] | |
a0ef8d57867120d76e7dd3c1b572137bdeb51bf6 | f7550c4964dc8f3c59dbcebe39e947bd6a264dba | /2.OOPS/Exception Handling.py | 05dac8b2c108980738fc273289f4f8795461eb72 | [] | no_license | Jashwanth-k/Data-Structures-and-Algorithms | db5e2e30932e0a35db578c19ae6cff9f147b7c3d | 1ebf9986999a474cb094f3ab04616a46f2887043 | refs/heads/main | 2023-08-25T02:57:17.394322 | 2021-10-11T15:27:56 | 2021-10-11T15:27:56 | 402,448,718 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 324 | py | while True:
try:
n = int(input('enter the numerator :'))
num = int(n)
n = int(input('enter the denominator :'))
denom = int(n)
value = (num / denom)
print(value)
break
except ValueError:
print('Numerator and Denominator must be integers... | [
"[email protected]"
] | |
9404e5e1138ec41fc2bad63449226d1cd0cc38c6 | 42c48f3178a48b4a2a0aded547770027bf976350 | /google/ads/google_ads/v4/services/domain_category_service_client_config.py | db4f358f4636c9982c5622eefbd7626ab8796369 | [
"Apache-2.0"
] | permissive | fiboknacky/google-ads-python | e989464a85f28baca1f28d133994c73759e8b4d6 | a5b6cede64f4d9912ae6ad26927a54e40448c9fe | refs/heads/master | 2021-08-07T20:18:48.618563 | 2020-12-11T09:21:29 | 2020-12-11T09:21:29 | 229,712,514 | 0 | 0 | Apache-2.0 | 2019-12-23T08:44:49 | 2019-12-23T08:44:49 | null | UTF-8 | Python | false | false | 815 | py | config = {
"interfaces": {
"google.ads.googleads.v4.services.DomainCategoryService": {
"retry_codes": {
"idempotent": [
"DEADLINE_EXCEEDED",
"UNAVAILABLE"
],
"non_idempotent": []
},
"retry_params": {
"default": {
"initial_retry_delay_... | [
"[email protected]"
] | |
9cb938048f68b47602170f1e3f23275c9c1e5941 | 9594585cc05dded72740774a3d6058971386dd9a | /boss/core/exc.py | 80e4e91c50c60fee37aa3030542ce45190324e3a | [
"BSD-3-Clause"
] | permissive | derks/boss | 3a22044d9542ba249f95fd7081e86f3451c16134 | 8b81ddfb9b44dab018329a304a5e5a75fa20b060 | refs/heads/master | 2021-01-18T05:37:47.894064 | 2013-06-27T21:01:20 | 2013-06-27T21:01:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 428 | py | """Boss core exceptions module."""
class BossError(Exception):
"""Generic errors."""
def __init__(self, msg):
Exception.__init__(self)
self.msg = msg
def __str__(self):
return self.msg
class BossConfigError(BossError):
pass
class BossRuntimeError(BossError):
... | [
"[email protected]"
] | |
9bf5e88c23ba62c7ced22432faab87c0a1c3156b | 7a73fef9ae426c48573bae41447cef7cb2b97bf6 | /dynamicserialize/dstypes/com/raytheon/uf/common/activetable/request/MergeActiveTableRequest.py | b3377e84d97d8c41ce0f2b475a4807acc2653016 | [
"LicenseRef-scancode-public-domain",
"BSD-3-Clause"
] | permissive | mjames-upc/python-awips | 7f0a80a04457224c9e195b82a95eef4d9b2b3091 | e2b05f5587b02761df3b6dd5c6ee1f196bd5f11c | refs/heads/master | 2020-03-31T03:00:49.540816 | 2018-10-05T23:15:42 | 2018-10-05T23:15:42 | 53,707,817 | 0 | 0 | null | 2017-04-12T18:00:59 | 2016-03-12T01:46:57 | Python | UTF-8 | Python | false | false | 2,304 | py | ##
##
# File auto-generated against equivalent DynamicSerialize Java class
class MergeActiveTableRequest(object):
def __init__(self, incomingRecords=[], tableName='PRACTICE', site=None,
timeOffset=0.0, xmlSource=None, fromIngestAT=False,
makeBackups=True):
self.incomingR... | [
"[email protected]"
] | |
fa828b53566c090450afc3f58298ab733534ac3e | 11cf40946c55b47886cfe8777916a17db82c2309 | /conways1.py | a2da35410469f1db5aecd4755355f109e8add686 | [] | no_license | dalalsunil1986/python_the_hard_way_exercises | fc669bf2f823a4886f0de717d5f1ca0d0233f6af | bc329999490dedad842e23e8447623fd0321ffe0 | refs/heads/master | 2023-05-03T01:35:24.097087 | 2021-05-16T00:43:56 | 2021-05-16T00:43:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,840 | py | # Conway's Game of Life
import random, time, copy
WIDTH = 60
HEIGHT = 20
# Create a list of list for the cells:
nextCells = []
for x in range(WIDTH):
column = [] # Create a new column.
for y in range(HEIGHT):
if random.randint(0, 1) == 0:
column.append('O') # Add a living cell.
els... | [
"[email protected]"
] | |
c86c98ae72815124b24d3ae32ec5d6a1d90a7dca | 324d9bc6747873173cf457d563665f59005c0efc | /apps/users/views.py | ff8c38e6a8d915aa28bdd5f5db1eb3e22a995a8c | [] | no_license | jzxyouok/movie-1 | fd220618ce8c03bc3dc33d5b39a81547097653b2 | 650c05389aaefb84544d2246bf8436bed7157547 | refs/heads/master | 2020-06-03T16:00:01.479269 | 2018-05-30T09:22:43 | 2018-05-30T09:22:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,829 | py | from django.http import HttpResponse, HttpResponseRedirect
from django.shortcuts import render
from django.urls import reverse
from django.contrib import messages
from django.contrib.auth.mixins import LoginRequiredMixin
from django.contrib.auth import authenticate, login, logout
from django.contrib.auth.hashers import... | [
"[email protected]"
] | |
4b3999bceb135ae43088f2acd45fd813a32aa724 | 330899fd4a9653e05e2a09e0a4f30c119af97ad4 | /python/hidet/tos/modules/nn.py | 3d1c65c10d426d6b2298130ea875a54bbf014694 | [
"Apache-2.0"
] | permissive | yaoyaoding/hidet-artifacts | f8a4707c7fc28aa7bfa4dab3a9f2a9387c020f99 | f2e9767bb2464bd0592a8ec0b276f97481f13df2 | refs/heads/main | 2023-04-30T13:12:57.350002 | 2023-04-24T19:37:34 | 2023-04-24T19:37:34 | 551,692,225 | 3 | 1 | Apache-2.0 | 2022-11-01T23:25:17 | 2022-10-14T22:40:28 | Python | UTF-8 | Python | false | false | 5,063 | py | from typing import Optional, Union, List
import math
from hidet.tos import ops
from hidet.tos.common import normalize
from hidet.tos.module import Module, Tensor
from hidet.tos.tensor import randn, zeros, ones
from hidet.tos.modules.container import Sequential, ModuleList
class Conv2d(Module):
def __init__(self, ... | [
"[email protected]"
] | |
a3b7d2043d073baae61c82a62a7baf513e5463d4 | 117aaf186609e48230bff9f4f4e96546d3484963 | /others/FilterTable/main.py | c18d99d897d4e53baba8675c35fbb4fd3a1f0667 | [
"MIT"
] | permissive | eyllanesc/stackoverflow | 8d1c4b075e578496ea8deecbb78ef0e08bcc092e | db738fbe10e8573b324d1f86e9add314f02c884d | refs/heads/master | 2022-08-19T22:23:34.697232 | 2022-08-10T20:59:17 | 2022-08-10T20:59:17 | 76,124,222 | 355 | 433 | MIT | 2022-08-10T20:59:18 | 2016-12-10T16:29:34 | C++ | UTF-8 | Python | false | false | 1,326 | py | import csv
import sys
from PyQt4 import QtGui
from PyQt4 import uic
from PyQt4.QtCore import QString
from PyQt4.QtGui import QTableWidgetItem
filter_class = uic.loadUiType("filter.ui")[0]
class Filter_window(QtGui.QWidget, filter_class):
def __init__(self, parent=None, *args, **kwargs):
QtGui.QMainWindo... | [
"[email protected]"
] | |
240e6d72e883cd5d44adc7bc87f9e6646c36762c | aa0270b351402e421631ebc8b51e528448302fab | /sdk/paloaltonetworks/azure-mgmt-paloaltonetworksngfw/generated_samples/post_rules_delete_minimum_set_gen.py | 37e8eb6f0bb63131b561033cfb6c8b88a6e137ab | [
"MIT",
"LGPL-2.1-or-later",
"LicenseRef-scancode-generic-cla"
] | permissive | fangchen0601/azure-sdk-for-python | d04a22109d0ff8ff209c82e4154b7169b6cb2e53 | c2e11d6682e368b2f062e714490d2de42e1fed36 | refs/heads/master | 2023-05-11T16:53:26.317418 | 2023-05-04T20:02:16 | 2023-05-04T20:02:16 | 300,440,803 | 0 | 0 | MIT | 2020-10-16T18:45:29 | 2020-10-01T22:27:56 | null | UTF-8 | Python | false | false | 1,613 | 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 ... | [
"[email protected]"
] | |
0eafa771e434cc47da07d9832275df08bc7e0215 | ccd27037d13c0288aae5d94e616c659ce2a713a0 | /donor/migrations/0001_initial.py | b2964b3233b6f9785178e02fc623f4e664a5e3c9 | [] | no_license | AniketShahane/ZeroDay-01 | 99ce4dad366b778851518a07a34ab9d100246ed5 | 2a12c6965fdbc9c1f1db3d2f207861a7ddcb62e8 | refs/heads/master | 2020-04-21T11:14:03.077996 | 2019-02-11T13:21:31 | 2019-02-11T13:21:31 | 169,516,547 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,907 | py | # Generated by Django 2.1.5 on 2019-02-06 08:07
import datetime
from django.db import migrations, models
import django.db.models.deletion
from django.utils.timezone import utc
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
... | [
"[email protected]"
] | |
f8f7e6aff74349c59cce9401e12149fb28ed8f8b | 208bc8b87cb20fc6e57c8c8846cbe947b2eec1f3 | /pyocd/coresight/cortex_m_v8m.py | ca01e71819f240e6e35497dc4209539e8afd50ac | [
"Apache-2.0",
"CC-BY-4.0"
] | permissive | canerbulduk/pyOCD | 28c545f25ef9b2949a1cd49c00faeeda986a26fe | a61e8b8dc2050309510d9fe7ca63680aafe06749 | refs/heads/main | 2023-08-24T21:10:52.427697 | 2021-11-09T15:13:48 | 2021-11-09T15:13:48 | 426,275,463 | 0 | 0 | Apache-2.0 | 2021-11-09T15:08:22 | 2021-11-09T15:08:21 | null | UTF-8 | Python | false | false | 7,538 | py | # pyOCD debugger
# Copyright (c) 2019-2020 Arm Limited
# Copyright (c) 2021 Chris Reed
# 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
#
# http://www... | [
"[email protected]"
] | |
964be754ef86bec5917a57c625ad4ed6a31349f8 | dcafbc9a6eea2b0e9aabc527b93cd97d270a67af | /tests/test_cli.py | 1cc1282f4575e65d72cfcb43033f27022e631d72 | [
"MIT"
] | permissive | bfontaine/edt2ics | 83fbd51540d7887e049be90efb70f382110dafaf | 1245f174694c30a42c489d831970c32ae42c0b0d | refs/heads/master | 2021-05-15T01:55:46.595212 | 2015-01-05T11:31:48 | 2015-01-05T11:31:48 | 24,652,011 | 1 | 0 | MIT | 2021-03-23T09:20:53 | 2014-09-30T19:18:04 | Python | UTF-8 | Python | false | false | 1,722 | py | # -*- coding: UTF-8 -*-
import sys
from tempfile import NamedTemporaryFile
from os import remove
try:
import unittest2 as unittest
from cStringIO import StringIO
except ImportError:
from io import StringIO
import unittest
from edt2ics.cli import write_ical, main, ScheduleScraper
def ctrlC(self, *arg... | [
"[email protected]"
] | |
4344d7b0f4c19f27896dd13ab0f65e65e0e64627 | 7f523c407d45d116860eff67f079e807f2b53339 | /src/third_party/beaengine/tests/0f46.py | 6ad6b5dec2522c38575bfec34ef1d56a52f05929 | [
"LGPL-3.0-only",
"LGPL-2.0-or-later",
"MIT"
] | permissive | 0vercl0k/rp | a352c96bfe3715eb9ce8c5942831123e65289dac | b24e7f58a594aaf0ce3771745bf06862f6ecc074 | refs/heads/master | 2023-08-30T08:03:14.842828 | 2023-08-09T00:41:00 | 2023-08-09T00:41:00 | 3,554,173 | 1,557 | 239 | MIT | 2023-08-09T00:41:02 | 2012-02-26T19:26:33 | C++ | UTF-8 | Python | false | false | 2,862 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This progra... | [
"[email protected]"
] | |
b6c2ce08804c66b293ae4e13ba70f17d93dcfbed | 5465ed0ea2401a8e70d4bbc0ce1e78ca26813c54 | /Dash/example_dropdown.py | 432c0e12326a232ef545016451102df8cf8aca00 | [] | no_license | josephchenhk/learn | 36c49ceb7c8cf8f944ad401b2c7adabf688981a1 | b216bb17570e272555e9da475e4c85eb18139c2a | refs/heads/master | 2023-09-01T04:22:00.984837 | 2023-08-20T01:00:01 | 2023-08-20T01:00:01 | 178,778,957 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 635 | py | # -*- coding: utf-8 -*-
# @Time : 29/3/2021 3:41 PM
# @Author : Joseph Chen
# @Email : [email protected]
# @FileName: example_dropdown.py
# @Software: PyCharm
import dash
import dash_html_components as html
import dash_core_components as dcc
app = dash.Dash(__name__)
app.layout = html.Div(
[
h... | [
"[email protected]"
] | |
0b6e59dc34a33b978dbcf8b8704dd35cdf33c4d7 | f97a38640cce46a0fa4f2e4c05590004cde14d61 | /projectTS/modeControl/automaticFlexibleTime.py | d5e522fff3913cae6daf005105a5ec1dae1889c4 | [] | no_license | nch101/thesis-traffic-signal-control | bb9dcb43836e69fc4cd5954119b58fe74a03b445 | b3bd1676fb2ab440b74d6d7a1846bd4ce6cc4c63 | refs/heads/master | 2023-08-31T11:29:19.415019 | 2020-08-17T05:07:10 | 2020-08-17T05:07:10 | 249,964,030 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,102 | py | # ** automatic control mode **
# * Author: Nguyen Cong Huy *
# ****************************
# - *- coding: utf- 8 - *-
import projectTS.vals as vals
def automaticFlexibleTime():
for index in range(0, vals.nTrafficLights):
if index%2:
setTimeLight(vals.timeGreenFlexibleNS, vals.timeGreenFlexi... | [
"="
] | = |
c8c2388aacf9a93e788c79f3183bb7a4304a4f40 | c6ee7be1479797788dd9f9d3a29c0e76ea020db8 | /apscheduler_yqt/MyTestFile/16celery_rabbitmq/01/test.py | 9f8dba3fe0e8b813e291b135506fa9d9d5a7a897 | [] | no_license | hikekang/apscheduler_yqt | 2966e7231fff1f81c4fa4a75459cf638592aae6a | 0d30c2ef721b8ffeba98dca6b2441613b4ed608d | refs/heads/master | 2023-08-17T05:19:34.345553 | 2021-09-26T03:21:11 | 2021-09-26T03:21:11 | 406,217,786 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 272 | py | #!/usr/bin/python3.x
# -*- coding=utf-8 -*-
"""
Time : 2021/8/24 14:24
Author : hike
Email : [email protected]
File Name : test.py
Description:
Software : PyCharm
"""
from tasks import add
result=add.delay(4,4)
print(result)
print(result.get()) | [
"[email protected]"
] | |
104c925bd6314e637d48b9ae42bec366a68dc578 | 077c91b9d5cb1a6a724da47067483c622ce64be6 | /snapshot_demo_updated_link_failure/interactive_replay_config.py | 8829a94407e3072b87c050c553795abd1f1be3a8 | [] | no_license | Spencerx/experiments | 0edd16398725f6fd9365ddbb1b773942e4878369 | aaa98b0f67b0d0c0c826b8a1565916bf97ae3179 | refs/heads/master | 2020-04-03T10:11:40.671606 | 2014-06-11T23:55:11 | 2014-06-11T23:55:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,044 | py |
from config.experiment_config_lib import ControllerConfig
from sts.topology import *
from sts.control_flow import InteractiveReplayer
from sts.simulation_state import SimulationConfig
from sts.input_traces.input_logger import InputLogger
simulation_config = SimulationConfig(controller_configs=[ControllerConfig(start_... | [
"[email protected]"
] | |
37546155301527fa3625423441749a7d2847e9f0 | 6a89644ca479e1980b88c768bf868a1422fdee8b | /poptimizer/data/adapters/db.py | 0535645631c3afb07276e3d0291c9c74ede11c70 | [
"Unlicense"
] | permissive | chekanskiy/poptimizer | 82e664c2208b54cac63e0c5dac0680ec038da702 | e5d0f2c28de25568e4515b63aaad4aa337e2e522 | refs/heads/master | 2022-12-20T15:09:40.111678 | 2020-10-06T17:11:49 | 2020-10-06T17:11:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,381 | py | """Реализации сессий доступа к базе данных."""
import asyncio
from typing import Iterable, Optional, Tuple, Union
import pandas as pd
from motor import motor_asyncio
from poptimizer.data.adapters import logger
from poptimizer.data.ports import outer
# Коллекция для одиночный записей
MISC = "misc"
def _collection_a... | [
"[email protected]"
] | |
22cb1afffa9f329ebfcbe75c0c93d8c82eaccab7 | f13acd0d707ea9ab0d2f2f010717b35adcee142f | /ABC/abc251-abc300/abc291/a/main.py | 271121f05c994fc6965d9d50bef5b54640e06764 | [
"CC0-1.0",
"LicenseRef-scancode-public-domain"
] | permissive | KATO-Hiro/AtCoder | 126b9fe89fa3a7cffcbd1c29d42394e7d02fa7c7 | bf43320bc1af606bfbd23c610b3432cddd1806b9 | refs/heads/master | 2023-08-18T20:06:42.876863 | 2023-08-17T23:45:21 | 2023-08-17T23:45:21 | 121,067,516 | 4 | 0 | CC0-1.0 | 2023-09-14T21:59:38 | 2018-02-11T00:32:45 | Python | UTF-8 | Python | false | false | 255 | py | # -*- coding: utf-8 -*-
def main():
import sys
input = sys.stdin.readline
s = input().rstrip()
for i, si in enumerate(s, 1):
if si.isupper():
print(i)
exit()
if __name__ == "__main__":
main()
| [
"[email protected]"
] | |
f4889ab3192e5b2391525b80f2cd647d5ffb097f | 61ef327bd1d5ff6db7595221db6823c947dab42b | /FlatData/ScenarioCharacterAction.py | a9f4a598c4032f027b4141bed04cca067ccf7dac | [] | no_license | Aikenfell/Blue-Archive---Asset-Downloader | 88e419686a80b20b57a10a3033c23c80f86d6bf9 | 92f93ffbdb81a47cef58c61ec82092234eae8eec | refs/heads/main | 2023-09-06T03:56:50.998141 | 2021-11-19T12:41:58 | 2021-11-19T12:41:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 262 | py | # automatically generated by the FlatBuffers compiler, do not modify
# namespace: FlatData
class ScenarioCharacterAction(object):
Idle = 0
Shake = 1
Greeting = 2
FalldownLeft = 3
FalldownRight = 4
Stiff = 5
Hophop = 6
Jump = 7
| [
"[email protected]"
] | |
4507b0a0250c6b95f949cf60bfc101f8efbe17ef | 17124c2268d7d7b0e9545a1ddaf293a49fafcf72 | /seq2seq/evaluation/meteor/meteor.py | 4a9c0696a513d24b74e15736ecb66a7501dbe317 | [] | no_license | haxzie-xx/code-to-comment | 56fadaf3b1be36daf2450159740cbd7d660fa438 | 5007d96c0e5ced57dcee7485a200a0e0a2c11e7d | refs/heads/master | 2020-04-28T15:22:14.721580 | 2019-03-13T08:35:06 | 2019-03-13T08:35:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,077 | py | #!/usr/bin/env python
# Python wrapper for METEOR implementation, by Xinlei Chen
# Acknowledge Michael Denkowski for the generous discussion and help
import os
import sys
import subprocess
import threading
# Assumes meteor-1.5.jar is in the same directory as meteor.py. Change as needed.
METEOR_JAR = 'meteor-1.5.ja... | [
"[email protected]"
] | |
3fb6596f25e82ad3306342bc206831a44c1a8f19 | 16f50a812eca90748e87bfe471e0c05f178337fd | /4to_Semestre/Metodos computacionales/Racket/Actividad 3.4 Final/Examples/example.py | 4fb7031bd1d767a5b0850a0aeefe25131ea51227 | [] | no_license | SeaWar741/ITC | 65f73365762366f56cfbd6d0bc788cd384672d12 | 5f75716be58ca6e00bcd8dae7546fd19fe37657f | refs/heads/master | 2023-02-05T23:25:13.972031 | 2022-09-29T10:38:32 | 2022-09-29T10:38:32 | 205,020,772 | 4 | 2 | null | 2023-01-19T15:28:45 | 2019-08-28T20:48:35 | Jupyter Notebook | UTF-8 | Python | false | false | 288 | py | # Python Program to find the factors of a number
# This function computes the factor of the argument passed
def print_factors(x ) :
print( " The factors of " , x , " are: " )
for i in range( 1 , x + 1 ) :
if x % i == 0:
print( i )
num = 320
print_factors( num ) | [
"[email protected]"
] | |
b2c14211005aacceb7b237f92d39b72c2fba2218 | 93ed8dd9576a397912dad7693d63fc081f7651db | /tests/contracts/test_contract_estimateGas.py | 24f7f4f3f3524f15111d642ecfcfbe6c4ad24f7b | [
"MIT"
] | permissive | XertroV/web3.py | 3cf1a1265aa9225fe0391feb99bf6088ecfd1937 | 1c6ead0c271da7b648d20dba8c880b76b436a03c | refs/heads/master | 2021-01-24T20:25:36.578888 | 2016-07-16T19:00:10 | 2016-07-16T19:00:10 | 64,264,819 | 0 | 0 | null | 2016-07-27T00:46:25 | 2016-07-27T00:46:24 | null | UTF-8 | Python | false | false | 1,476 | py | import pytest
from web3.providers.rpc import TestRPCProvider
from web3.utils.abi import (
function_abi_to_4byte_selector,
)
@pytest.fixture(autouse=True)
def wait_for_first_block(web3, wait_for_block):
wait_for_block(web3)
@pytest.fixture()
def math_contract(web3, MATH_ABI, MATH_CODE, MATH_RUNTIME, MATH_SO... | [
"[email protected]"
] | |
31a9497b36cd6a4d54d6959b49c2445df08feb30 | 0adb68bbf576340c8ba1d9d3c07320ab3bfdb95e | /regexlib/python_re_test_file/regexlib_3613.py | 7fbb386b0c1adfa1f8ca79e8518568b2dc33d7fb | [
"MIT"
] | permissive | agentjacker/ReDoS-Benchmarks | c7d6633a3b77d9e29e0ee2db98d5dfb60cde91c6 | f5b5094d835649e957bf3fec6b8bd4f6efdb35fc | refs/heads/main | 2023-05-10T13:57:48.491045 | 2021-05-21T11:19:39 | 2021-05-21T11:19:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 578 | py | # 3613
# <(?<tag>\w*|\w*\.+\w*)>+((.|[\n\t\f\r\s])*?)<\/\k<tag>>
# EXPONENT
# nums:4
# EXPONENT AttackString:"<>"+"\t"*16+"! _1◎@! _1! _1! _1!\n_SLQ_3"
import re
from time import perf_counter
regex = """<(?<tag>\w*|\w*\.+\w*)>+((.|[\n\t\f\r\s])*?)<\/\k<tag>>"""
REGEX = re.compile(regex)
for i in range(0, 150000):
... | [
"[email protected]"
] | |
1680eee25e123cd65af8e484e82f821ffcef73f5 | 72fd091cf4f9ad8c1a6475a8344bb750889e3b53 | /cars/migrations/0001_initial.py | 6f561308a8ce2a3549922aa1b79b89063e822140 | [] | no_license | petrshirin/example-web-app-for-using-db | abe312ab9dee36e5f53b795a2a0bc7529fa245f3 | c625815525cc8427a6e0fc749afc14f126a90e05 | refs/heads/master | 2023-02-18T08:31:03.842057 | 2021-01-14T14:43:11 | 2021-01-14T14:43:11 | 328,006,038 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,449 | py | # Generated by Django 3.1.5 on 2021-01-08 18:02
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='Car',
... | [
"[email protected]"
] | |
222aba3bdc6078a2bbd2e01c79d319ab45d44737 | 30dea47f44695f3eeacb8270496cdced39485cbd | /tonedetect/tones.py | b72f95f4783db9396b689fd9cd31df1dc93ba559 | [] | no_license | cheind/py-tonedetect | 67490d9b6f238226486e0cfa2831c4855e079c07 | 662b5d335ba9e830914cc0d0d2a1515f832f743b | refs/heads/master | 2021-01-10T23:36:59.131599 | 2016-10-29T06:52:37 | 2016-10-29T06:52:37 | 70,419,207 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 880 | py |
import json
import itertools
import math
import numpy as np
class Tones(object):
""" A list of tones """
def __init__(self):
self.items = []
def add_tone(self, frequencies, sym=None):
sym = sym if sym is not None else len(self.items)
self.items.append({'f': frequencies, 'sym': sy... | [
"[email protected]"
] | |
281d0127dbb5560633ec0da580a15c81be6ba978 | 24f29f50988c59785011f3bc2645fa5d2a7a7d97 | /wlct/cogs/ladders.py | 333e6289dac1c32fa28dd01d4fe5d125622fc1c7 | [] | no_license | h-shan/wzclot | d1c0c0f83b0b2916e0352c7cc0bfd25775a632d9 | 88d0e57c053a69a212af43f52168e234f41f6351 | refs/heads/master | 2021-01-07T20:17:04.065980 | 2020-02-19T22:44:18 | 2020-02-19T22:44:18 | 241,809,955 | 0 | 0 | null | 2020-02-20T06:25:12 | 2020-02-20T06:25:11 | null | UTF-8 | Python | false | false | 5,329 | py | import discord
from wlct.models import Clan, Player
from wlct.tournaments import Tournament, TournamentTeam, TournamentPlayer, MonthlyTemplateRotation, get_games_finished_for_team_since, find_tournament_by_id, get_team_data_no_clan, RealTimeLadder, get_real_time_ladder, TournamentGame
from discord.ext import commands, ... | [
"[email protected]"
] | |
58d9f299b2be3ac5b35e101e9d797493adbbab9e | 502fc0002d5575d0a37b4f13706c7072f860033c | /Chapter06/cyclegan/datasets.py | c851a615e497b6d1583f95c8955550f2b29adf88 | [
"MIT"
] | permissive | PacktPublishing/Hands-On-Generative-Adversarial-Networks-with-PyTorch-1.x | 665d9364af54d7fd44787d0753400d7625ac8b82 | beee21343078b607f393bbb1321ac49cf17ffb5f | refs/heads/master | 2023-02-10T22:12:08.980700 | 2023-01-30T09:26:20 | 2023-01-30T09:26:20 | 227,829,701 | 66 | 50 | null | null | null | null | UTF-8 | Python | false | false | 1,129 | py | import glob
import random
import os
import torchvision
from torch.utils.data import Dataset
from PIL import Image
class ImageDataset(Dataset):
def __init__(self, root_dir, transform=None, unaligned=False, mode='train'):
self.transform = torchvision.transforms.Compose(transform)
self.unaligned = ... | [
"[email protected]"
] | |
e65cbf5b64816e289ebbda33044e7070ef649a39 | a5e591dc09e11e88af56fb5a881fae064fb9c495 | /recruitment/recruitment/doctype/sds/test_sds.py | c6cce9a11e7909f1af24d4e5044701cb9cfd6ede | [
"MIT"
] | permissive | barathprathosh/recruitment | 6b61dd1ee9c0b9d7851b0b3e5bab307f7ee2d1b5 | 9660944856e72288e47960e6802ec97a220a656d | refs/heads/master | 2020-04-29T03:03:51.722972 | 2019-03-15T08:58:32 | 2019-03-15T08:58:32 | 175,794,797 | 0 | 0 | NOASSERTION | 2019-03-15T10:00:32 | 2019-03-15T10:00:31 | null | UTF-8 | Python | false | false | 247 | py | # -*- coding: utf-8 -*-
# Copyright (c) 2015, VHRS and Contributors
# See license.txt
from __future__ import unicode_literals
import frappe
import unittest
# test_records = frappe.get_test_records('SDS')
class TestSDS(unittest.TestCase):
pass
| [
"[email protected]"
] | |
a697dce54965d918f7b330653707e0336ac916cc | 4bd4bacecee33cada173e427b5ecb1d758bafaad | /src/scalarizr/storage2/filesystems/ext3.py | db6c14a7eb67d5266be90987c0ab7e3c2a861102 | [] | no_license | kenorb-contrib/scalarizr | 3f2492b20910c42f6ab38749545fdbb79969473f | 3cc8b64d5a1b39c4cf36f5057f1a6a84a9a74c83 | refs/heads/master | 2022-11-26T10:00:58.706301 | 2017-11-02T16:41:34 | 2017-11-02T16:41:34 | 108,550,233 | 0 | 2 | null | 2020-07-24T11:05:36 | 2017-10-27T13:33:46 | Python | UTF-8 | Python | false | false | 1,840 | py | """
Created on Aug 29, 2012
@author: marat
"""
from scalarizr import storage2
from scalarizr.storage2 import filesystems
E2LABEL_EXEC = "/sbin/e2label"
RESIZE2FS_EXEC = "/sbin/resize2fs"
E2FSCK_EXEC = "/sbin/e2fsck"
MAX_LABEL_LENGTH = 16
class ExtFileSystem(filesyste... | [
"[email protected]"
] | |
e2dd3fc6ed5023653573ada2255327ccf464b401 | d694a99c910ce36c8d6981e126548fc91e74046e | /Regression/regression.py | 60bd820898953a66d0998f401bded14011439700 | [] | no_license | YiddishKop/ml_src_adam_compare | 08ac23cf1fb02222da1f04e833e296b1b75ae9af | cfeadebd41f802686828958068c15bcfdfea0be9 | refs/heads/master | 2020-03-25T22:16:19.581690 | 2018-08-09T23:37:31 | 2018-08-09T23:37:31 | 144,213,684 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,177 | py | import numpy as np
import tensorflow as tf
from math import sqrt
from keras import optimizers
from keras.models import Sequential
from keras.layers import Dense, Dropout, Activation, normalization
from keras.backend.tensorflow_backend import set_session
config = tf.ConfigProto()
config.gpu_options.per_process_gpu_memo... | [
"[email protected]"
] | |
5497665447fb033386b2092a63fbef7149fd845b | dddd89637373f455a476431f4fcb7e17b4e9dd57 | /py/display.py | 85bcfe46e59c909fad72f4b04abaf084a127d399 | [] | no_license | DhirManish/Python | 35304eb47dea61934426fb6fc5094e1a83517cf3 | 10df7245d0964340d6c8d14cf26a9cf8f93ecf5d | refs/heads/master | 2020-06-05T07:09:41.856780 | 2015-03-07T12:53:10 | 2015-03-07T12:53:10 | 20,372,496 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 991 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# display.py
#
# Copyright 2014 Ajay Bhatia <ajay@dumb-box>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the Lic... | [
"[email protected]"
] | |
51d3cd83c17924f57928febd4c77f7e11a693a64 | ac42f1d918bdbd229968cea0954ed75250acd55c | /admin/dashboard/openstack_dashboard/test/integration_tests/tests/test_credentials.py | 45c7f9956f3bb90d941ff841ff21f9390cc0aa7a | [
"Apache-2.0"
] | permissive | naanal/product | 016e18fd2f35608a0d8b8e5d2f75b653bac7111a | bbaa4cd60d4f2cdda6ce4ba3d36312c1757deac7 | refs/heads/master | 2020-04-03T22:40:48.712243 | 2016-11-15T11:22:00 | 2016-11-15T11:22:00 | 57,004,514 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,250 | py | # Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# d... | [
"[email protected]"
] | |
8654ed8796db644dd4805d8b68137f4e06de7879 | f2b44af5372c6318a941015f64b279ccf9099a18 | /rest130/wsgi.py | 5726a659e41211d23cf13244551e776d53d36061 | [] | no_license | yuansuixin/Rest-Framework-page-view | c459ca54c1998cde4c0fe207ba6464353471cbdf | a8663c09a00ce4f4d055ca96e3132ae0a4ddea54 | refs/heads/master | 2020-03-13T06:58:12.512163 | 2018-04-25T14:09:15 | 2018-04-25T14:09:15 | 131,015,642 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 392 | py | """
WSGI config for rest130 project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_SETT... | [
"[email protected]"
] | |
fd0e88862a3552ff5a444410f25c478bc09b9ccc | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_185/ch21_2019_09_02_16_11_34_126817.py | caeb588b2448887a21cc708aae209b3242a27c36 | [] | 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 | 138 | py | valor_conta = float(input("Digite o valor da conta"))
valor_10 = valor_conta * 1.1
print("Valor da conta com 10% {.:2f}".format(valor_10)) | [
"[email protected]"
] | |
962e96893571f492778142b708236e00d56b680e | c54f5a7cf6de3ed02d2e02cf867470ea48bd9258 | /pyobjc/pyobjc-framework-Quartz/PyObjCTest/test_cikernel.py | b0db5ef848f5d457400c0faee426365fabfe1997 | [
"MIT"
] | permissive | orestis/pyobjc | 01ad0e731fbbe0413c2f5ac2f3e91016749146c6 | c30bf50ba29cb562d530e71a9d6c3d8ad75aa230 | refs/heads/master | 2021-01-22T06:54:35.401551 | 2009-09-01T09:24:47 | 2009-09-01T09:24:47 | 16,895 | 8 | 5 | null | null | null | null | UTF-8 | Python | false | false | 306 | py |
from PyObjCTools.TestSupport import *
from Quartz.QuartzCore import *
from Quartz import *
class TestCIKernel (TestCase):
def testMethods(self):
self.failUnlessArgIsSEL(CIKernel.setROISelector_, 0, CGRect.__typestr__ + '@:i' + CGRect.__typestr__ + '@')
if __name__ == "__main__":
main()
| [
"ronaldoussoren@f55f28a5-9edb-0310-a011-a803cfcd5d25"
] | ronaldoussoren@f55f28a5-9edb-0310-a011-a803cfcd5d25 |
cbc6351fd46ad8ea36dc9847027121c21c9f0537 | c81d7dfef424b088bf2509a1baf406a80384ea5a | /venv/Lib/site-packages/pandas/tests/indexes/period/test_period_range.py | 49d34248207919814f02e980ff00b963e21dcdd9 | [] | no_license | Goutham2591/OMK_PART2 | 111210d78fc4845481ed55c852b8f2f938918f4a | cb54fb21ebf472bffc6ee4f634bf1e68303e113d | refs/heads/master | 2022-12-10T01:43:08.213010 | 2018-04-05T02:09:41 | 2018-04-05T02:09:41 | 124,828,094 | 0 | 1 | null | 2022-12-07T23:43:03 | 2018-03-12T03:20:14 | Python | UTF-8 | Python | false | false | 3,740 | py | import pytest
import pandas.util.testing as tm
from pandas import date_range, NaT, period_range, Period, PeriodIndex
class TestPeriodRange(object):
@pytest.mark.parametrize('freq', ['D', 'W', 'M', 'Q', 'A'])
def test_construction_from_string(self, freq):
# non-empty
expected = date_... | [
"[email protected]"
] | |
820d4e8465a9ca575fe26c9092050f29834c8f99 | 5891051796778cfb44a255248ce38789bfef9e70 | /DjangoLearn/apps/test_django/models.py | 8820b1517c116ec9de6dbc52b1199d2373a5e12e | [] | no_license | Faithlmy/Python_base | cc546a5d86b123e102a69df1227cde9b6e567493 | 5a43557e6375dc9dbe5f6701d7c10e549873a5ab | refs/heads/master | 2021-01-01T17:07:04.097978 | 2018-03-31T16:44:01 | 2018-03-31T16:44:01 | 98,000,621 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,296 | py | from django.db import models
# Create your models here.
class TbCustomInfo(models.Model):
c_name = models.CharField(max_length=255, blank=True, null=True)
c_name_short = models.CharField(max_length=255, blank=True, null=True)
c_num = models.CharField(max_length=255, blank=True, null=True)
c_type = mode... | [
"[email protected]"
] | |
717bd41fe9b212c3ecf9faf925de10324dd12ab9 | ef48efff7b9022f9745145509193d551f4084376 | /novedades/models.py | f731d1dcb004d9927fff918f8e0a6360dcc718a1 | [] | no_license | ljarufe/incamotors | b5ace5cfb2f5208a31859f06da3e6cf46867b35c | 79926654e286e9fd496bb1be9ce8d03ca218d654 | refs/heads/master | 2020-05-06T12:20:00.996574 | 2013-10-21T16:09:20 | 2013-10-21T16:09:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,527 | py | # -*- coding: utf-8 -*-
from django.db import models
from sorl.thumbnail.fields import ImageWithThumbnailsField
class Novedad(models.Model):
"""
Clase abstracta para todas las novedades
"""
nombre = models.CharField(max_length=100)
descripcion = models.TextField(verbose_name=u"descripción")
... | [
"[email protected]"
] | |
d0da70c270dd71617fd4d3449d199f1a9f94549a | 8004cc465359aecb7a1890617646ea5b49f11d9a | /cnn_models/cnn_dropout.py | 4034ce3be9e2c7aad18f0a543a39bd23928ad07f | [] | no_license | jhyang12345/facial-recognition | 661e34d874986943f50b5b9691d186760957b594 | 2f2ba5cfcbd58efbc9de5b9f0bafc7bc640d9c26 | refs/heads/master | 2020-04-06T09:52:20.932793 | 2018-12-13T08:15:25 | 2018-12-13T08:15:25 | 157,360,076 | 7 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,747 | py | from keras.layers import Input, Convolution2D, SeparableConvolution2D, \
GlobalAveragePooling2D, GlobalMaxPooling2D, MaxPooling2D, \
Dense, Activation, BatchNormalization, Dropout
from keras.models import Sequential, Model
from keras.callbacks import ModelCheckpoint
class CNNDropout:
... | [
"[email protected]"
] | |
6496d16a1187ee2afb1d4f13a192c17ebc29b49a | e71b6d14fbdbc57c7234ca45a47329d7d02fc6f7 | /flask_api/venv/lib/python3.7/site-packages/vsts/work/v4_1/models/board_reference.py | 6e58999b0b5322ab38b6dc0d498ad651c3982709 | [] | no_license | u-blavins/secret_sasquatch_society | c36993c738ab29a6a4879bfbeb78a5803f4f2a57 | 0214eadcdfa9b40254e331a6617c50b422212f4c | refs/heads/master | 2020-08-14T00:39:52.948272 | 2020-01-22T13:54:58 | 2020-01-22T13:54:58 | 215,058,646 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,204 | py | # --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# -----------------------------------------------------------------... | [
"[email protected]"
] | |
e7bab45d83b2b3418bbf9dfb6ebb11ed89573d0a | 13a32b92b1ba8ffb07e810dcc8ccdf1b8b1671ab | /home--tommy--mypy/mypy/lib/python2.7/site-packages/joblib/test/common.py | 038ab537b9faa4cf059cd0c8b2edab674cdc1a7a | [
"Unlicense"
] | permissive | tommybutler/mlearnpy2 | 8ec52bcd03208c9771d8d02ede8eaa91a95bda30 | 9e5d377d0242ac5eb1e82a357e6701095a8ca1ff | refs/heads/master | 2022-10-24T23:30:18.705329 | 2022-10-17T15:41:37 | 2022-10-17T15:41:37 | 118,529,175 | 0 | 2 | Unlicense | 2022-10-15T23:32:18 | 2018-01-22T23:27:10 | Python | UTF-8 | Python | false | false | 3,061 | py | """
Small utilities for testing.
"""
import threading
import signal
import time
import os
import sys
import gc
from joblib._multiprocessing_helpers import mp
from joblib.testing import SkipTest, skipif
# A decorator to run tests only when numpy is available
try:
import numpy as np
def with_numpy(func):
... | [
"[email protected]"
] | |
dae634b72dac458cfa57d1bcb809f4d6d4bedf11 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2790/60730/256936.py | ed7cd9f25137e77fa2fe3809ef5f880ec7402267 | [] | 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 | 450 | py | num_m, num_n = map(int, input().split())
m = list(map(int, input().split()))
n = list(map(int, input().split()))
m.sort(reverse=False)
tmp = 0
for i in range(num_n):
for j in range(num_m):
if (m[j] <= n[i]):
tmp = tmp + 1
if (j == 4):
print(str(tmp))
t... | [
"[email protected]"
] | |
61786e2faf6ca3617cc2547869f76cce86441d76 | b76c6813f2ce2fd24a33175a0249cd9544583fe7 | /acerca_de/url_acerca_de.py | 50417f63558bf4aa93ed35902ad121d612af8286 | [] | no_license | adrianglez2203/nuevo_as | 0074e6d8155a471bb7d81bc3456914acdc7fba98 | df375410e9d6922ebb931645ff8f1c7b3f5cb93b | refs/heads/master | 2022-08-01T23:43:51.328124 | 2020-06-06T15:35:23 | 2020-06-06T15:35:23 | 270,111,577 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 133 | py | from django.urls import path
from acerca_de import views
urlpatterns = [
path('acerca',views.vista , name='acerca_de'),
] | [
"[email protected]"
] | |
ba8c22cf3cea258a5f767182a5ff8dbf68b2b507 | 16b26e6a9e6d6a7db2a20a6327b3d042e2245747 | /bigramas/bigramas.py | dbef177920a9911443ced6ff74a1eed9c8710e79 | [
"Unlicense"
] | permissive | jabaier/iic1103.20152.s4 | 3826b8de35470acc0387c8199b6ecce50d4222bd | 63ddd5f9b73caff218b6744e7392e7a66afba570 | refs/heads/master | 2020-05-27T16:59:32.232746 | 2015-11-20T14:34:21 | 2015-11-20T14:34:21 | 41,114,018 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,540 | py | import sys
import random
class Bigramas:
def __init__(self):
self.bigramas=[] # lista de bigramas
self.nbigramas=0 # numero de bigramas
def buscar(self,palabra):
for par in self.bigramas:
if par[0]==palabra:
return par[1]
# la palabra no está
... | [
"[email protected]"
] | |
11f4ba38d434e1643f04aaf34ec8646b27782520 | 7e0fdfb76cae8145a4bbac0cac0e4cac6b8e3788 | /dingding_shouqi/dingding_shouqi.py | daaee3a0bc4aec488160ca6adf2ad171e17d3204 | [] | no_license | w193241125/dingdingdaka | 603b06323b5c5e3341e0077614e044b2c80c038b | 3d2088d2e876fc4e80fc06bea3eaa5b8833392ed | refs/heads/master | 2020-05-17T21:45:44.276659 | 2019-05-13T10:16:29 | 2019-05-13T10:16:29 | 183,981,037 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,007 | py | #!/usr/local/bin python
# -*- coding: utf-8 -*-
# @Time : 2019/3/5 10:38
# @Author : Larwas
# @Link : [email protected]
# @Site : www.larwas.com
# @File : dingding.py
# @Software: PyCharm
import os
import re
import time
import urllib
import json
import requests
# nameplt = re.compile("package: name='(.*?)'... | [
"[email protected]"
] | |
16d7d093326b863bf363be47886a033059a9f1f4 | 96f181736c9975adfabd45cc776cab7a37d2e7a1 | /transformer/SubLayers.py | 636b67878e40d8e50b27f1d0f49b7d9bf2797668 | [
"MIT"
] | permissive | fangxiaoquan/transformer-pytorch | 6b43fb75635bb512c38c6f2ac8ec306b6e6ba5d9 | c9c5c81151c37ad7a088ea96aa5248fd4f4ad2d1 | refs/heads/master | 2020-05-17T00:36:59.073875 | 2019-03-17T14:42:02 | 2019-03-17T14:42:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,844 | py | ''' Define the sublayers in encoder/decoder layer '''
import numpy as np
import torch.nn as nn
import torch.nn.functional as F
from transformer.Modules import ScaledDotProductAttention
class MultiHeadAttention(nn.Module):
''' Multi-Head Attention module '''
def __init__(self, n_head, d_model, d_k, d_v, dropo... | [
"[email protected]"
] | |
214e9acf4f63476ff161a03f36b9d65e5158d29c | e8c5d8a473a71f88616b692dcdfd2d604485f580 | /test_corrector.py | 1db70ec4aff76eef61b92ad17796f78834360551 | [
"Apache-2.0"
] | permissive | modernYan/corrector | a6907bf1dc0e5e91048704365b4ade7327939592 | 75c86075ea51a53ebe6d649d729e690e3b414f7a | refs/heads/master | 2021-04-03T01:51:33.407724 | 2018-03-07T12:49:45 | 2018-03-07T12:49:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,148 | py | # -*- coding: utf-8 -*-
# Author: XuMing <[email protected]>
# Brief:
import unittest
from pycorrector.cn_spell import correct
class BasicTestSuite(unittest.TestCase):
"""Basic test cases."""
@staticmethod
def test_text1():
error_sentence_1 = '机七学习是人工智能领遇最能体现智能的一个分知'
correct_sent = corr... | [
"[email protected]"
] | |
e0409dc7eb85b5766250889ef408b577012505a7 | 8338bde799fab50fa28b3c9e85035fce12f1e152 | /src/crystal_analysis/fluctuations.py | a31246b51e26e6bab8b8c6c145aa242d5bfe1576 | [
"MIT"
] | permissive | malramsay64/Crystal_Melting | c5941ad261ef71f1357d6064302344b093b22b53 | e8305928b06b536d7293cb751963d058d55627aa | refs/heads/master | 2021-03-24T10:24:23.291821 | 2020-08-07T07:19:09 | 2020-08-07T07:19:09 | 119,946,491 | 0 | 0 | MIT | 2020-02-12T07:35:47 | 2018-02-02T07:13:03 | Python | UTF-8 | Python | false | false | 8,047 | py | #! /usr/bin/env python
# -*- coding: utf-8 -*-
# vim:fenc=utf-8
#
# Copyright © 2019 Malcolm Ramsay <[email protected]>
#
# Distributed under terms of the MIT license.
"""A module to measure the structural fluctuations of each state.
The concept of this module is to understand how much particles within each state... | [
"[email protected]"
] | |
4c2de55d37b6463dc9cb09e1b3fab791b94fb59f | 1842d2e7989b9fb1bdd6edff2b2ce187ca9f27ad | /BIOMD0000000484/model.py | 9d53fe8ba1862ad4b82c03c37bafa36698e3a221 | [
"CC0-1.0"
] | permissive | biomodels/BIOMD0000000484 | cc08199b3d324bf10425829755d70e67d52b155d | 293ac221c1615e7446f55960cff130f784243220 | refs/heads/master | 2016-09-06T17:32:40.282597 | 2014-10-16T05:17:52 | 2014-10-16T05:17:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 427 | py | import os
path = os.path.dirname(os.path.realpath(__file__))
sbmlFilePath = os.path.join(path, 'BIOMD0000000484.xml')
with open(sbmlFilePath,'r') as f:
sbmlString = f.read()
def module_exists(module_name):
try:
__import__(module_name)
except ImportError:
return False
else:
ret... | [
"[email protected]"
] | |
563a9e4d56769ebc277637da90f87d84e0eb46b2 | 16dcbf88ae9514109151fe5ff447b2b653ddf48b | /2016/035-TheasGame/thea.py | 60cf62e1e123e8f303f839ac3e8286c58ec426a6 | [] | no_license | ChristerNilsson/Lab | efa55ef5e79dff84b232dfcf94473eacdb263175 | b1f730f45ec6e901bd14c1e4196aa5e0f591ecd2 | refs/heads/master | 2023-07-06T04:35:09.458936 | 2023-06-24T21:40:54 | 2023-06-24T21:40:54 | 48,474,249 | 8 | 8 | null | 2022-12-10T07:03:31 | 2015-12-23T06:51:11 | JavaScript | UTF-8 | Python | false | false | 690 | py | import pygame
pygame.init()
windowSurface = pygame.display.set_mode((1000, 750), pygame.DOUBLEBUF)
done = False
while not done:
# --- Main event loop
for event in pygame.event.get():
if event.type == pygame.QUIT:
done = True
s = pygame.Surface((1000,750), pygame.SRCALPHA) # per-p... | [
"[email protected]"
] | |
96e362619f5e1ca63b616907a81a83d7ad5268b9 | 7a17f9e6706b6e3f6d55c8e30f0dcec97f495541 | /src/hyperka/hyperbolic/manifold.py | e5bfa0abf060d8a9093cb836b10fa666c81e5cfe | [
"MIT"
] | permissive | HELL-TO-HEAVEN/HyperKA | 8d097c58e0188961de6e4ea74f214e40d9408a04 | cadaf824a739b55211997e73d9948ddbfbe7ce83 | refs/heads/main | 2023-03-30T04:20:31.477323 | 2021-03-25T07:56:55 | 2021-03-25T07:56:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 713 | py | from abc import abstractmethod
from abc import ABC
class Manifold(ABC):
def __init__(self, *args, **kwargs):
pass
@property
def name(self):
raise NotImplementedError
@staticmethod
def dim(dim):
return dim
def normalize(self, u):
return u
@abstractmethod
... | [
"[email protected]"
] | |
4233d111f76ceabf87cbb1c1701d766aeaf5393b | 17e813f4f20a6ce2d82619be9fac517b5176a74b | /Trees/btToLinkedList.py | 84dacb4426c7a87aa171291005e233ea32317e16 | [] | no_license | AryanGanotra07/DSALGO | 0ee86bbca4b345d21f5d6eb60d96c7aff6f1fc93 | 8cbac991ceec43522a57c65d68f00b54ccb6ea3f | refs/heads/master | 2022-12-08T22:33:14.031636 | 2020-09-13T14:05:41 | 2020-09-13T14:05:41 | 283,800,432 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,052 | py | # Definition for a binary tree node
# class TreeNode:
# def __init__(self, x):
# self.val = x
# self.left = None
# self.right = None
import sys
sys.setrecursionlimit(15000000)
def solve(a, b):
if a is None:
return
b.append(a.val)
solve(a.left, b)
solve(a.right, b)
... | [
"[email protected]"
] | |
ee8f01d9ff709d7f69ae6cebd6b938844bdd5ee8 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03290/s821428254.py | d06c09c404c991b8d3ef901f9f4a5f494259ea0e | [] | 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 | 608 | py | from math import ceil
from itertools import product
D,G=map(int,input().split())
pc=[list(map(int,input().split())) for _ in range(D)]
def calc(P):
count = 0
g = G
for i in range(D):
p,c = pc[-1-i]
if P[-1-i]==1:
count += p
g -= (D-i)*100*p+c
if g<=0:
return count
for i in range(... | [
"[email protected]"
] | |
bcf4f86043750b69eed83dad9603a1d113b66fb7 | a176f3705c92ec1974ada17af2a891e0bf763b97 | /core/get_input.py | 21fcd1c9c836417783cbba4c9450586ea9653811 | [
"Apache-2.0"
] | permissive | indrajithbandara/OWASP-Nettacker | 593bdf5426606e67a94e447b4a9534bf79b0396b | 087ce32f06758db03039a34e6e32fbc57fb4ffef | refs/heads/master | 2021-05-08T14:22:54.520184 | 2018-01-27T20:34:59 | 2018-01-27T20:34:59 | 120,082,592 | 1 | 0 | null | 2018-02-03T10:49:34 | 2018-02-03T10:49:33 | null | UTF-8 | Python | false | false | 514 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from core.compatible import version
from core.alert import __input_msg
def __input(msg, default):
if version() is 2:
try:
data = raw_input(__input_msg(msg))
if data == '':
data = default
except:
data... | [
"[email protected]"
] | |
ec0fe22ab52822601adcf965f531dec7895c63aa | 66fb5bbf3cd0f2c7b00db7081271c376812b68dd | /control_planner/scripts/purepursuit.py | c4385ac0777d26b0a19d879eb7b8d5ef81f9ef78 | [] | no_license | freesloth/wecar_2 | d5e95ae67d65bcd78a60ceae95a48161656e4fab | c05888cc70ddd775a3151b722db06aa41705f6b9 | refs/heads/master | 2023-01-22T15:47:39.505150 | 2020-12-10T03:29:36 | 2020-12-10T03:29:36 | 278,523,277 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,179 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import rospy
import rospkg
from sensor_msgs.msg import LaserScan,PointCloud,Imu
from std_msgs.msg import Float64
from vesc_msgs.msg import VescStateStamped
from laser_geometry import LaserProjection
from math import cos,sin,pi,sqrt,pow,atan2
from geometry_msgs.msg import P... | [
"[email protected]"
] | |
a8d0358b14e0899a93fda27fcd872490e907be31 | 5c0a253bf2fb83db01abc99097871c965f4cf565 | /study/machinelearning/clustering/flat/KMeans/kMeansWithScratch.py | 6e509df62cf33b8d8436cb1ad679ecef276bd6d5 | [] | no_license | airuibel/python-1 | 3b16553ede9d069ec56efbb12a89a4de6917a447 | 94f387e2d406fab2128bcfffce6146da720b2ccc | refs/heads/master | 2020-07-05T15:43:00.957221 | 2017-09-17T14:05:48 | 2017-09-17T14:05:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,870 | py | # -*- utf-8 -*-
import matplotlib.pyplot as plt
from matplotlib import style
style.use('ggplot')
import numpy as np
X = np.array([[1, 2],
[1.5, 1.8],
[5, 8],
[8, 8],
[1, 0.6],
[9, 11],
[1, 3],
[8, 9],
[0, ... | [
"[email protected]"
] | |
1fc8c3edd2c2ef3d16c220f36cb7d72c3bcad84f | 5da5473ff3026165a47f98744bac82903cf008e0 | /packages/google-cloud-datalabeling/samples/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_list_annotated_datasets_async.py | 5f3fe6b186baf941dd84aef169d534faaebfa3cf | [
"Apache-2.0"
] | permissive | googleapis/google-cloud-python | ed61a5f03a476ab6053870f4da7bc5534e25558b | 93c4e63408c65129422f65217325f4e7d41f7edf | refs/heads/main | 2023-09-04T09:09:07.852632 | 2023-08-31T22:49:26 | 2023-08-31T22:49:26 | 16,316,451 | 2,792 | 917 | Apache-2.0 | 2023-09-14T21:45:18 | 2014-01-28T15:51:47 | Python | UTF-8 | Python | false | false | 2,012 | py | # -*- coding: utf-8 -*-
# Copyright 2023 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | [
"[email protected]"
] | |
d49d4df253e01b51cbef0fd3337a5d662b8bb43c | 6a2c2af113bb8b4d55db6ceabc6e78a0bbcd1f91 | /genus processing/Shorts Back Pocket Flap.py | c5157eb6d81a0e4a0684d901d89b3339771afb61 | [] | no_license | JinghongM/Everlasting_Data_Cleansing | 4a966aca5cba102961f64338411d76e51f60f51e | 237073980b2bd1697db578013c7463dcbc1492fb | refs/heads/master | 2021-04-26T23:48:38.083155 | 2018-06-21T20:00:11 | 2018-06-21T20:00:11 | 123,861,020 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 495 | py | import pandas as pd
import copy
import os.path
Pattern=6
Material=7
Species=4
CGP = pd.read_excel("../Realdata.xlsx")
for row in range(1,CGP.shape[0]):
genus = str(CGP.iat[row,3])
if "Shorts Back Pocket Flap" == genus:
print(row)
CGP.iat[row,Species] = "Back Pocket"
CGP.iat[row,3] = "Shorts"
i=0 ... | [
"[email protected]"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.